Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.1

- **dsh 0.2.1.** Runs on dsh 0.2.1-rc.2 as well as 0.1.7-rc.2: `engines.dsh` and the dsh peers are `^0.1.7-rc.2 || ^0.2.1-rc.2`. dsh 0.2.1 refuses 0.2.0 and 0.3.0, which only declare `^0.1.7-rc.2`; if you upgraded dsh with one of them installed, remove the plugin and add it again.

## 0.3.0

Built on refkit core 0.10 and the provider releases that go with it; they come in as dependencies, nothing to install by hand.
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ dsh plugin --profile web add @refkit/dsh-plugin
dsh plugin --profile web add github:refkitjs/dsh-plugin
```

Restart the dsh web host once so the profile picks up the bundle. Tested against `@deepseek-ai/dsh` 0.1.7-rc.2. Requires dsh 0.1.x from 0.1.7-rc.2 on (`^0.1.7-rc.2`); dsh refuses to load it on older releases and on the 0.2.0 pre-releases (`next`) until support is widened. dsh is in developer preview and its plugin API changes between release candidates.
Restart the dsh web host once so the profile picks up the bundle. Tested against `@deepseek-ai/dsh` 0.1.7-rc.2 and 0.2.1-rc.2. Requires dsh 0.1.x from 0.1.7-rc.2 on, or 0.2.x from 0.2.1-rc.2 on (`^0.1.7-rc.2 || ^0.2.1-rc.2`); dsh refuses to load it on older releases and on the 0.2.0 pre-releases. dsh is in developer preview and its plugin API changes between release candidates.

Upgraded dsh to 0.2.1 with refkit 0.2.0 or 0.3.0 installed? dsh 0.2.1 refuses both, so remove the plugin and add it again: `dsh plugin --profile web remove @refkit/dsh-plugin`, then `dsh plugin --profile web add @refkit/dsh-plugin`.

## Configuration

Expand Down
4 changes: 3 additions & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ dsh plugin --profile web add @refkit/dsh-plugin
dsh plugin --profile web add github:refkitjs/dsh-plugin
```

重启一次 dsh web host,让该 profile 加载该 bundle。已在 `@deepseek-ai/dsh` 0.1.7-rc.2 上测试通过;要求 dsh 0.1.x 且不低于 0.1.7-rc.2(`^0.1.7-rc.2`),更低版本以及 0.2.0 预发布版(`next` 频道)的 dsh 会拒绝加载该插件,直到后续版本放宽支持范围。dsh 目前处于开发者预览阶段,其插件 API 在各个 release candidate 之间会发生变化。
重启一次 dsh web host,让该 profile 加载该 bundle。已在 `@deepseek-ai/dsh` 0.1.7-rc.2 和 0.2.1-rc.2 上测试通过;要求 dsh 0.1.x 且不低于 0.1.7-rc.2,或 0.2.x 且不低于 0.2.1-rc.2(`^0.1.7-rc.2 || ^0.2.1-rc.2`),更低版本以及 0.2.0 预发布版的 dsh 会拒绝加载该插件。dsh 目前处于开发者预览阶段,其插件 API 在各个 release candidate 之间会发生变化。

装着 refkit 0.2.0 或 0.3.0 时把 dsh 升级到了 0.2.1?dsh 0.2.1 会拒绝这两个版本,先移除再重新添加即可:`dsh plugin --profile web remove @refkit/dsh-plugin`,然后 `dsh plugin --profile web add @refkit/dsh-plugin`。

## 配置

Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { wikimediaCommons } from "@refkit/provider-wikimedia-commons";
import { defineTool } from "@deepseek-ai/dsh-tools";
//#region src/config.ts
/** Kept in sync with package.json by tests/config.test.ts. */
const PLUGIN_VERSION = "0.3.0";
const PLUGIN_VERSION = "0.3.1";
const KEY_FIELDS = [
"unsplashAccessKey",
"pexelsApiKey",
Expand Down Expand Up @@ -85,7 +85,7 @@ function resolveConfig(config, env = process.env) {
timeoutMs: clampInt(config.timeoutMs, DEFAULTS.timeoutMs, 1e3, 6e4),
rerank: config.rerank ?? DEFAULTS.rerank,
sourceConfidence: config.sourceConfidence ?? DEFAULTS.sourceConfidence,
userAgent: nonEmpty(config.userAgent) ?? `refkit-dsh-plugin/0.3.0`
userAgent: nonEmpty(config.userAgent) ?? `refkit-dsh-plugin/0.3.1`
};
}
const k = (cfg, field) => cfg.keys[field] ?? "";
Expand Down
2 changes: 1 addition & 1 deletion lib/types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import z from '@deepseek-ai/schemastery';
import { type ReferenceProvider, type RefkitClient, type RefkitOptions } from '@refkit/core';
import type { Modality } from './core/outcome.ts';
/** Kept in sync with package.json by tests/config.test.ts. */
export declare const PLUGIN_VERSION = "0.3.0";
export declare const PLUGIN_VERSION = "0.3.1";
export declare const KEY_FIELDS: readonly ["unsplashAccessKey", "pexelsApiKey", "pixabayKey", "flickrApiKey", "smithsonianApiKey", "braveToken", "freesoundToken", "jamendoClientId", "europeanaApiKey", "openverseToken"];
export type KeyField = (typeof KEY_FIELDS)[number];
/** Environment names per key, first match wins. The nine keyed sources mirror @refkit/mcp's CLI. */
Expand Down
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@refkit/dsh-plugin",
"version": "0.3.0",
"version": "0.3.1",
"description": "DeepSeek Harness plugin for refkit: license-normalized creative reference search across 24 sources from 19 provider packages and 4 modalities, a strict-deny use-gate, and a web card with license and use-verdict badges (refkit_search / refkit_rights).",
"icon": "./icon.svg",
"type": "module",
Expand All @@ -9,7 +9,7 @@
"repository": { "type": "git", "url": "git+https://github.com/refkitjs/dsh-plugin.git" },
"homepage": "https://github.com/refkitjs/dsh-plugin#readme",
"bugs": "https://github.com/refkitjs/dsh-plugin/issues",
"engines": { "node": "^22.19.0 || >=24.0.0" },
"engines": { "node": "^22.19.0 || >=24.0.0", "dsh": "^0.1.7-rc.2 || ^0.2.1-rc.2" },
"packageManager": "pnpm@10.32.1",
"main": "lib/index.js",
"types": "lib/types/index.d.ts",
Expand Down Expand Up @@ -61,9 +61,9 @@
},
"peerDependencies": {
"@deepseek-ai/cordis": "^4.0.4",
"@deepseek-ai/dsh-settings": "^0.1.7-rc.2",
"@deepseek-ai/dsh-system-prompt": "^0.1.7-rc.2",
"@deepseek-ai/dsh-tools": "^0.1.7-rc.2",
"@deepseek-ai/dsh-settings": "^0.1.7-rc.2 || ^0.2.1-rc.2",
"@deepseek-ai/dsh-system-prompt": "^0.1.7-rc.2 || ^0.2.1-rc.2",
"@deepseek-ai/dsh-tools": "^0.1.7-rc.2 || ^0.2.1-rc.2",
"@deepseek-ai/schemastery": "^3.18.4",
"react": "^18.2.0"
},
Expand All @@ -73,21 +73,21 @@
"react": { "optional": true }
},
"devDependencies": {
"@deepseek-ai/cordis": "~4.0.4",
"@deepseek-ai/cordis-plugin-loader": "~1.0.5",
"@deepseek-ai/dsh-api-remotes": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-chat": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-settings": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.2",
"@deepseek-ai/dsh-client-ui-tool": "0.1.7-rc.2",
"@deepseek-ai/dsh-settings": "0.1.7-rc.2",
"@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2",
"@deepseek-ai/dsh-tools": "0.1.7-rc.2",
"@deepseek-ai/schemastery": "~3.18.4",
"@deepseek-ai/cordis": "~4.0.5",
"@deepseek-ai/cordis-plugin-loader": "~1.0.6",
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.2",
"@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.2",
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.2",
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.1-rc.2",
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.2",
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.2",
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.2",
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.2",
"@deepseek-ai/dsh-client-ui-tool": "0.2.1-rc.2",
"@deepseek-ai/dsh-settings": "0.2.1-rc.2",
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.2",
"@deepseek-ai/dsh-tools": "0.2.1-rc.2",
"@deepseek-ai/schemastery": "~3.18.5",
"@types/node": "^22.20.0",
"@types/react": "~18.3.1",
"@types/react-dom": "~18.3.0",
Expand Down
Loading
Loading