dsh-workspace-api-key 0.2.13 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -79,7 +79,7 @@ The command forwards its arguments to pnpm inside the profile directory, so the
79
79
  pnpm add dsh-workspace-api-key # or: npm install dsh-workspace-api-key
80
80
  ```
81
81
 
82
- Pin a version with `dsh-workspace-api-key@0.2.13`, or install straight from the repository with `dsh-workspace-api-key@github:COH2357/dsh-workspace-api-key` (a git-hosted plugin is built from source on install).
82
+ Pin a version with `dsh-workspace-api-key@0.2.14`, or install straight from the repository with `dsh-workspace-api-key@github:COH2357/dsh-workspace-api-key` (a git-hosted plugin is built from source on install).
83
83
 
84
84
  Then add `"dsh-workspace-api-key"` to `dsh.profile.bundles` in that profile's `package.json` and restart DSH. For local development, use a link instead:
85
85
 
@@ -90,7 +90,7 @@ Then add `"dsh-workspace-api-key"` to `dsh.profile.bundles` in that profile's `p
90
90
  ## Tests
91
91
 
92
92
  ```sh
93
- node test/host.test.mjs # 175 assertions
93
+ node test/host.test.mjs # 177 assertions
94
94
  node test/client.test.mjs # 173 assertions
95
95
  ```
96
96
 
package/README.zh.md CHANGED
@@ -79,7 +79,7 @@ dsh plugin --profile web add dsh-workspace-api-key
79
79
  pnpm add dsh-workspace-api-key # 或者:npm install dsh-workspace-api-key
80
80
  ```
81
81
 
82
- 锁版本用 `dsh-workspace-api-key@0.2.13`;直接从仓库装则用 `dsh-workspace-api-key@github:COH2357/dsh-workspace-api-key`(git 来源的插件会在安装时现场构建)。
82
+ 锁版本用 `dsh-workspace-api-key@0.2.14`;直接从仓库装则用 `dsh-workspace-api-key@github:COH2357/dsh-workspace-api-key`(git 来源的插件会在安装时现场构建)。
83
83
 
84
84
  然后把 `"dsh-workspace-api-key"` 加进该 profile `package.json` 的 `dsh.profile.bundles`,重启 DSH。本地开发用 link 代替:
85
85
 
@@ -90,7 +90,7 @@ pnpm add dsh-workspace-api-key # 或者:npm install dsh-workspace-api
90
90
  ## 测试
91
91
 
92
92
  ```sh
93
- node test/host.test.mjs # 175 条断言
93
+ node test/host.test.mjs # 177 条断言
94
94
  node test/client.test.mjs # 173 条断言
95
95
  ```
96
96
 
package/lib/index.js CHANGED
@@ -940,7 +940,11 @@ async function searchWarnings(ctx, state, web) {
940
940
 
941
941
  // 2c) 搜索默认 key 已保存,但官方网页搜索页还指向聊天那把 → 官方页看不到它,
942
942
  // 一键同步就能让两处共用同一个 ref。
943
- if (searchDefaultRef === SEARCH_DEFAULT_REF && searchDefaultConfigured) {
943
+ //
944
+ // officialRef 这一条不能省:官方配置一旦被指到 DEEPSEEK_API_KEY_SEARCH
945
+ // (插件接管之后就是这样),searchDefaultRefOf() 同样返回它,
946
+ // 只看前两个条件就会一直误报「官方页还指着聊天那把」。
947
+ if (searchDefaultRef === SEARCH_DEFAULT_REF && searchDefaultConfigured && officialRef === DEFAULT_API_KEY_REF) {
944
948
  out.push({
945
949
  code: 'search-official-shared',
946
950
  level: 'warn',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-workspace-api-key",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "description": "A DeepSeek Harness plugin that binds a separate DeepSeek API key to each workspace, or to a single session, so the spend of one key stays with the sessions you choose.",
5
5
  "type": "module",
6
6
  "license": "MIT",