dsh-packycode-api 1.4.12 → 1.4.13

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.13
4
+
5
+ - **Claude Code history rebuilds use the gateway compatibility setting.** With Claude Code 2.1.325, resuming a transcript rebuilt from DSH's history can add a `role: "system", content: []` control message carrying `output_config.effort` and the `per-turn-control-2026-07-01` beta. A gateway that cannot pass through the pair rejects it with `messages.1: system content must contain at least one block`; even one previous user/assistant exchange can trigger the shape. The CLI child environment now sets `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1` directly, so no isolated-settings workaround is needed. Inherited Claude environment variables are still filtered, and neither personal nor project configuration is changed.
6
+ - **The compatibility scope is explicit.** The [official setting](https://code.claude.com/docs/en/llm-gateway-protocol#disable-pre-release-capabilities) removes pre-release headers and paired fields, including per-turn effort, experimental context management, structured-output format, task budget, some tool-schema fields and MCP tool search. Top-level effort, adaptive thinking and nonempty mid-conversation system messages remain. Both READMEs explain this tradeoff; group-based routing, the CLI's own prompt and tools, and DSH's permission, plan and question bridges are unchanged.
7
+ - Validation, 2026-11-15:
8
+ - **Offline:** 582 tests, both rebuilt bundles and the versioned tarball. A regression test requires the child compatibility setting for fresh and continued turns even when the parent sets it to `0`; transport tests check the actual fresh, resumed and rebuilt process environments. With the real Claude Code 2.1.325 and a loopback endpoint that rejects empty system entries, fresh, resumed, short rebuilt and 743-message rebuilt histories all passed under the default configuration and with the old isolated-settings workaround. No per-turn beta, message-level effort or empty control entry remained; top-level `max` and adaptive thinking stayed. Before the fix, both rebuild cases returned the same 400 in this harness.
9
+ - **Live, stored `cc` key and Claude Code 2.1.325:** `scripts/claude-check.mjs --transport cli` ran read, approved edit, denied deletion, plan review, question, image and title scenarios on Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5. Of 28 scenarios, 22 passed first time; six hit `ECONNRESET` (56 transport requests overall). Re-running only those six passed all of them in 15 transport requests. Both summaries counted zero client-anomaly and anti-abuse refusals. Separately, Opus 5.5 at `max` answered an inventory calculation correctly on a fresh session, after restarting and resuming it, and after rebuilding a short DSH history; all three returned 200 without the empty-system error. All checks used scratch workspaces and isolated CLI directories.
10
+ - **Not checked:** the original private long conversation or the desktop app's GUI. The real gateway's internal handling of per-turn controls was not inspected. Personal Claude settings, existing DSH sessions and credentials were not modified.
11
+
3
12
  ## 1.4.12
4
13
 
5
14
  - **Gemini 4 Carbon joins the catalog.** The plugin's stored key lists `gemini-4-carbon` in PackyCode's `/v1/models` with only the native `gemini` endpoint. The model uses `google-generative-ai` at `https://cf.api.fan/v1beta`, with text/image input, 1,048,576 context and 65,536 output per stream, following [Google's model page](https://aistudio.google.com/docs/models/gemini-4-carbon). Its thinking map offers `low` / `medium` / `high`, with no off, and the native SDK defaults to `medium`, following [Google's migration guide](https://aistudio.google.com/docs/whats-new-gemini-4-carbon). Longer output requires a separate continuation flow that this route does not implement.
package/README.en.md CHANGED
@@ -48,10 +48,10 @@ You need **DeepSeek Harness** and a **PackyCode (PackyAPI) API key**. For DSH se
48
48
  Open the desktop application's **Plugins** page, click **Add plugin**, and enter the package name **with a version** as the **package name or address**:
49
49
 
50
50
  ```text
51
- dsh-packycode-api@1.4.12
51
+ dsh-packycode-api@1.4.13
52
52
  ```
53
53
 
54
- Choose the **official** install source, then click **Install**. `1.4.12` was the latest release when this was written; the [npm page](https://www.npmjs.com/package/dsh-packycode-api) shows the current one.
54
+ Choose the **official** install source, then click **Install**. `1.4.13` was the latest release when this was written; the [npm page](https://www.npmjs.com/package/dsh-packycode-api) shows the current one.
55
55
 
56
56
  > **Always include the version.** With a bare `dsh-packycode-api`, the install prompt shows the newest version on npm, but DSH's bundled pnpm by default installs only versions published at least 24 hours ago, so you can end up several releases behind with no sign of it in the prompt. With an exact version, pnpm installs that version and adds it to the profile's `minimumReleaseAgeExclude` itself. Afterwards, check **Current version** under **Settings → PackyCode → Plugin version**.
57
57
 
@@ -72,7 +72,7 @@ Choose a model from the `PackyCode` group. Of the fifteen models, Claude runs th
72
72
 
73
73
  The **Plugins** page shows the installed state and version, and is also where you enable, disable, or uninstall.
74
74
 
75
- **For non-desktop profiles only:** `dsh plugin --profile <name> add dsh-packycode-api@1.4.12`. Do not use it for `desktop` — the CLI refuses it (`profile "desktop" is managed exclusively by the Electron application`).
75
+ **For non-desktop profiles only:** `dsh plugin --profile <name> add dsh-packycode-api@1.4.13`. Do not use it for `desktop` — the CLI refuses it (`profile "desktop" is managed exclusively by the Electron application`).
76
76
 
77
77
  For a local checkout, keep the `link:` prefix: `dsh plugin --profile <name> add link:/path/to/dsh-packycode-api`. **Do not pass a bare path or `file:`** — that install copies the whole checkout, `node_modules` included, into the profile, where it then shadows the packages the DSH installation itself provides and the plugin looks uninstalled; see the FAQ. If you already installed that way, uninstall first and reinstall as above.
78
78
 
@@ -142,6 +142,7 @@ PackyCode's `cc` group (“claude code专用”) only serves the official Claude
142
142
  - **Plan mode and questions happen in DSH.** After `/plan`, Claude Code enters its own plan mode, writes the plan to a file and submits it; DSH shows it in its own plan review, approval continues under the preset, and “keep planning” sends your feedback back for revision. Claude Code's questions appear in DSH's question UI.
143
143
  - **One Claude Code session per DSH session.** A DSH session keeps one long-lived CLI process; after it idles out (20 minutes), DSH restarts, or the model or key changes, the next request resumes Claude Code's own saved session. After an edited message, a fork, or a switch from another model, a new Claude Code session starts from DSH's history. When you add a note while Claude Code is working, the plugin stops its current request and gives it the note as its next message. Compaction DSH starts is answered with a local summary; Claude Code compacts its own context itself.
144
144
  - **Isolated from your own Claude Code.** It runs with its own config home, `~/.dsh/packycode-claude-cli`, and reads neither `~/.claude` settings and logins nor a project's `.claude/settings.json`, hooks or `.mcp.json`; only the key stored in the plugin is passed to the child. Auto-update, telemetry, auto-memory, background tasks and model fallback are off, and retries are left to DSH's retry policy, which rotates keys.
145
+ - **Gateway compatibility is enabled by default.** The plugin sets `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1` in the CLI child process so rebuilding conversation history does not send empty per-turn effort control messages that the gateway rejects with `system content must contain at least one block`. No manual configuration is needed. This [official compatibility setting](https://code.claude.com/docs/en/llm-gateway-protocol#disable-pre-release-capabilities) also disables experimental context management, structured-output format, task budget, some tool-schema fields and MCP tool search; top-level effort, adaptive thinking and ordinary nonempty system messages remain. It affects only Claude Code processes started by the plugin, without changing your Claude settings or other models' HTTP requests.
145
146
  - **An outdated CLI is one click away from current.** The plugin needs Claude Code 2.1.259 or later (tested from that release on with the permission prompts and mode switches the plugin uses). An older CLI is stopped before the request with an explanation, and the CLI card marks it too old and offers **Update Claude Code CLI**: an install from the official installer (`~/.local/bin/claude`) runs `claude update`; an npm global install runs `npm install -g @anthropic-ai/claude-code@latest --allow-scripts=@anthropic-ai/claude-code`, because npm 12 skips install scripts by default and `claude update` does not allow them on an npm install, which leaves a CLI that cannot run. When the CLI works but is not the latest release, the card names the new version and offers the same button: the plugin reads `latest` of `@anthropic-ai/claude-code` from npm on this device (the same version as the native installer's `latest` channel), at most once every 30 minutes, and again when you click Check again; without an answer it offers nothing. Your Claude Code is only updated when you click that button.
146
147
  - **Failures say why.** A missing CLI, an outdated CLI, and a request the gateway still refuses as a client anomaly each get their own explanation; nothing switches to another route or provider, and no key is disabled.
147
148
 
@@ -283,9 +284,9 @@ DeepSeek Flash uses the gateway's Responses endpoint (`/api/pricing` lists `open
283
284
 
284
285
  ## Update and uninstall
285
286
 
286
- > **Upgrading from 1.3.2 or earlier:** install `dsh-packycode-api@1.4.12` on the Plugins page instead of clicking **Update plugin** in the old settings card. The old button bypasses pnpm's release-age policy: if the version it installs is less than 24 hours old, the profile refuses every other plugin install until that version is 24 hours old. After the install and a restart, the button is the fixed one, and later updates can use it.
287
+ > **Upgrading from 1.3.2 or earlier:** install `dsh-packycode-api@1.4.13` on the Plugins page instead of clicking **Update plugin** in the old settings card. The old button bypasses pnpm's release-age policy: if the version it installs is less than 24 hours old, the profile refuses every other plugin install until that version is 24 hours old. After the install and a restart, the button is the fixed one, and later updates can use it.
287
288
 
288
- **Update:** open **Settings → PackyCode** and, when a newer version is listed, click **Update plugin**. It installs that exact version into the owning profile with DSH's bundled pnpm and reads `package.json` back before reporting success. The install keeps pnpm's release-age policy instead of overriding it: by default pnpm installs the version at once and records it in the profile's `minimumReleaseAgeExclude`; under a stricter pnpm policy the button says when the update can run. The newer version is read from npm, while pnpm downloads it from the profile's own install source: right after a release that source (a regional mirror in particular) may not have it yet, and the button asks you to update again in a few minutes; when the source cannot be reached, it asks you to check the network or proxy. A local `link:` checkout does not get the button. Then quit and reopen the desktop application. A page refresh does not reload the Host. Reinstalling from the **Plugins** page works too, again with the version in the package name (for example `dsh-packycode-api@1.4.12`); without it you may get a version that is merely the newest one published at least 24 hours ago.
289
+ **Update:** open **Settings → PackyCode** and, when a newer version is listed, click **Update plugin**. It installs that exact version into the owning profile with DSH's bundled pnpm and reads `package.json` back before reporting success. The install keeps pnpm's release-age policy instead of overriding it: by default pnpm installs the version at once and records it in the profile's `minimumReleaseAgeExclude`; under a stricter pnpm policy the button says when the update can run. The newer version is read from npm, while pnpm downloads it from the profile's own install source: right after a release that source (a regional mirror in particular) may not have it yet, and the button asks you to update again in a few minutes; when the source cannot be reached, it asks you to check the network or proxy. A local `link:` checkout does not get the button. Then quit and reopen the desktop application. A page refresh does not reload the Host. Reinstalling from the **Plugins** page works too, again with the version in the package name (for example `dsh-packycode-api@1.4.13`); without it you may get a version that is merely the newest one published at least 24 hours ago.
289
290
 
290
291
  **Coming back from a local-path install, uninstall first.** An update is a `pnpm add`: it rewrites the files inside the package directory and leaves a `node_modules` that an earlier local-path install left there. That older tree keeps shadowing the packages the DSH installation provides, so the plugin row fails to load with no visible reason. **Uninstall** runs `pnpm remove`, which deletes the package directory outright — only a reinstall after that is clean. `node scripts/install-check.mjs` reports whether a profile is in that state.
291
292
 
@@ -301,7 +302,7 @@ ls ~/.dsh/profiles/desktop/node_modules/dsh-packycode-api/node_modules
301
302
 
302
303
  Output means a leftover tree: a registry install ships no `node_modules`, so this one usually comes from an earlier local-path install (`file:`, or a bare path instead of `link:`). It sits inside the profile directory, and DSH resolves a plugin's imports from inside the profile first, so the plugin gets those old copies — for example `@deepseek-ai/schemastery` 3.18.2, which has no `Schema.volatile()`, so the module throws while it is imported. When an import fails the Loader creates no fiber for that row and no client bundle is composed either, so the model route, the RPC channel, and the settings panel all stay absent.
303
304
 
304
- Recovery: **uninstall** the plugin on the **Plugins** page, **install** it again with the version in the package name (for example `dsh-packycode-api@1.4.12`), then quit and reopen the desktop application. Uninstall runs `pnpm remove` and deletes the whole package directory; reinstalling or clicking **Update** only rewrites files and keeps the leftover tree. Deleting that `node_modules` by hand and restarting works too.
305
+ Recovery: **uninstall** the plugin on the **Plugins** page, **install** it again with the version in the package name (for example `dsh-packycode-api@1.4.13`), then quit and reopen the desktop application. Uninstall runs `pnpm remove` and deletes the whole package directory; reinstalling or clicking **Update** only rewrites files and keeps the leftover tree. Deleting that `node_modules` by hand and restarting works too.
305
306
 
306
307
  **Right after a first install, every card in Settings shows `transport failure for /packycode-api/…: HTTP 405`?** The installed version is 1.1.6 or earlier, usually because only the bare package name was entered: the install prompt shows the newest version, but pnpm installs the newest one published at least 24 hours ago (see **Install the plugin**). Those older versions can register their settings channel only after DSH restarts and rebuilds its `connection` service. So right after a first install `/packycode-api` does not exist yet, requests fall through to the static page, and it answers 405; the model route and the settings panel itself load normally. From 1.1.7 on, a first install needs no restart. Check which version was installed:
307
308
 
package/README.md CHANGED
@@ -48,10 +48,10 @@
48
48
  打开桌面应用的**插件**页,点击**添加插件**,在**包名或地址**中填入**带版本号**的包名:
49
49
 
50
50
  ```text
51
- dsh-packycode-api@1.4.12
51
+ dsh-packycode-api@1.4.13
52
52
  ```
53
53
 
54
- 在**安装源**中选择**官方源**,然后点击**安装**。`1.4.12` 是写这份说明时的最新版,当前最新版本号以 [npm 页面](https://www.npmjs.com/package/dsh-packycode-api) 为准。
54
+ 在**安装源**中选择**官方源**,然后点击**安装**。`1.4.13` 是写这份说明时的最新版,当前最新版本号以 [npm 页面](https://www.npmjs.com/package/dsh-packycode-api) 为准。
55
55
 
56
56
  > **一定要带版本号。** 只填 `dsh-packycode-api` 时,安装前的提示显示的是 npm 上的最新版,但 DSH 自带的 pnpm 默认只安装发布满 24 小时的版本,实际装上的可能是好几个版本之前的旧版,而安装提示里看不出这一点。填写精确版本时,pnpm 会直接安装这个版本,并自动把它加入 profile 的 `minimumReleaseAgeExclude`。装好后可以在 **设置 → PackyCode → 插件版本** 核对「当前版本」。
57
57
 
@@ -72,7 +72,7 @@ dsh-packycode-api@1.4.12
72
72
 
73
73
  桌面应用的**插件**页可以看到已安装状态与版本,也可以在那里启用、停用或卸载。
74
74
 
75
- **仅用于非 desktop profile:** `dsh plugin --profile <name> add dsh-packycode-api@1.4.12`。不要对 `desktop` 使用它 —— CLI 会直接拒绝(`profile "desktop" is managed exclusively by the Electron application`)。
75
+ **仅用于非 desktop profile:** `dsh plugin --profile <name> add dsh-packycode-api@1.4.13`。不要对 `desktop` 使用它 —— CLI 会直接拒绝(`profile "desktop" is managed exclusively by the Electron application`)。
76
76
 
77
77
  本地开发要加 `link:` 前缀:`dsh plugin --profile <name> add link:/path/to/dsh-packycode-api`。**不要直接写路径(或 `file:`)** —— 那样的安装会把整个仓库目录(连同 `node_modules`)复制进 profile,之后它会在 profile 内部挡住 DSH 自带的包,插件看起来像没装,见「常见问题」。已经那样装过的话,先卸载再按上面的方式重装。
78
78
 
@@ -142,6 +142,7 @@ PackyCode 的 `cc` 分组(「claude code专用」)只接受官方 Claude Cod
142
142
  - **计划模式和提问也在 DSH 里完成。** `/plan` 后 Claude Code 进入它自己的计划模式,把计划写成文件再提交;DSH 用自己的计划审阅界面展示,批准后按预设继续,选「继续规划」时你的反馈会交给它修改。Claude Code 向你提问时,问题出现在 DSH 的提问界面。
143
143
  - **一个 DSH 会话对应一个 Claude Code 会话。** 同一个 DSH 会话复用一个常驻 CLI 进程;进程空闲 20 分钟结束、DSH 重启、换模型或换 Key 后,用 Claude Code 自己保存的会话记录续接。编辑过历史消息、分叉会话或从别的模型切过来时,用 DSH 的历史新开一个 Claude Code 会话。你在 Claude Code 工作时插话,插件会停下它当前的请求,把这句话作为下一条消息交给它。DSH 发起的历史压缩在本地生成摘要,Claude Code 自己的上下文由它自己压缩。
144
144
  - **与你自己的 Claude Code 隔离。** 使用独立配置目录 `~/.dsh/packycode-claude-cli`,不读取 `~/.claude` 的设置和登录状态,也不读项目里的 `.claude/settings.json`、hooks 和 `.mcp.json`;只把插件保存的 Key 交给子进程。自动更新、遥测、自动记忆、后台任务和模型回退都关闭,失败重试交还给 DSH 的重试策略(会按 Key 轮换)。
145
+ - **默认启用网关兼容设置。** 插件在 CLI 子进程中设置 `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1`,避免重建会话历史时,逐轮 effort 产生的空 `system` 控制消息被网关以 `system content must contain at least one block` 拒绝,无需手动编辑配置。这个[官方兼容开关](https://code.claude.com/docs/en/llm-gateway-protocol#disable-pre-release-capabilities)也会关闭实验性 context management、结构化输出格式、task budget、部分工具 schema 字段及 MCP 工具搜索;顶层 effort、adaptive thinking 和普通非空 system 消息保留。它只影响插件启动的 Claude Code,不修改你的 Claude 设置或其它模型的 HTTP 请求。
145
146
  - **版本过低一键更新。** 插件需要 Claude Code 2.1.259 或更新版本(实测从这一版起支持插件用到的授权请求和权限模式切换)。更旧的 CLI 在请求发出前就被拦下并说明原因,CLI 卡片标出「版本过低」并提供「更新 Claude Code CLI」:官方安装器(`~/.local/bin/claude`)装的执行 `claude update`;npm 全局安装的执行 `npm install -g @anthropic-ai/claude-code@latest --allow-scripts=@anthropic-ai/claude-code`,因为 npm 12 默认不运行安装脚本,而 `claude update` 在 npm 安装上不会放行脚本,会留下一个无法运行的 CLI。CLI 能用但不是最新版时,卡片也会提示新版本并提供同一个按钮:插件在本机读取 npm 上 `@anthropic-ai/claude-code` 的 `latest`(与官方安装器的 `latest` 通道是同一版本),30 分钟内最多读一次,点「重新检测」立即重读;读不到时不提示。只有点这个按钮时才会更新你的 Claude Code。
146
147
  - **出错会说清原因。** 未安装 CLI、CLI 版本过旧、请求仍被网关判为客户端异常,分别给出说明和下一步,不会改走其它通道或提供商,也不会停用 Key。
147
148
 
@@ -283,9 +284,9 @@ DeepSeek Flash 走网关的 Responses 接口(`/api/pricing` 列出 `openai-res
283
284
 
284
285
  ## 更新与卸载
285
286
 
286
- > **从 1.3.2 或更早版本升级:** 请在插件页填写 `dsh-packycode-api@1.4.12` 安装,不要点旧版设置页里的「更新插件」。旧按钮安装时会绕过 pnpm 的发布冷却期:装到的版本如果发布还不满 24 小时,这个 profile 在它满 24 小时之前就装不了其他插件。装好并重启后,按钮就换成了修好的版本,以后直接点即可。
287
+ > **从 1.3.2 或更早版本升级:** 请在插件页填写 `dsh-packycode-api@1.4.13` 安装,不要点旧版设置页里的「更新插件」。旧按钮安装时会绕过 pnpm 的发布冷却期:装到的版本如果发布还不满 24 小时,这个 profile 在它满 24 小时之前就装不了其他插件。装好并重启后,按钮就换成了修好的版本,以后直接点即可。
287
288
 
288
- **更新:** 打开 **设置 → PackyCode**,有新版本时点「更新插件」。它会在当前 profile 目录里用 DSH 自带的 pnpm 安装精确版本,并读回 `package.json` 确认版本落地。安装遵守 pnpm 的发布冷却策略,不会绕过它:默认情况下 pnpm 会直接装上这个版本,并把它记进 profile 的 `minimumReleaseAgeExclude`;如果你给 pnpm 配了更严格的策略,按钮会提示什么时候可以更新。新版本号是从 npm 读到的,pnpm 却从 profile 配置的安装源下载:刚发布的版本,安装源(尤其是国内镜像)可能还没同步到,这时按钮会提示过几分钟再更新;连不上安装源时,会提示检查网络或代理。本地 `link:` 开发安装不会出现这个按钮。完成后完全退出并重新打开桌面应用。只刷新页面不会重载 Host。也可以在**插件**页重新安装,同样要填写带版本号的包名(例如 `dsh-packycode-api@1.4.12`),否则装上的可能是发布满 24 小时的旧版。
289
+ **更新:** 打开 **设置 → PackyCode**,有新版本时点「更新插件」。它会在当前 profile 目录里用 DSH 自带的 pnpm 安装精确版本,并读回 `package.json` 确认版本落地。安装遵守 pnpm 的发布冷却策略,不会绕过它:默认情况下 pnpm 会直接装上这个版本,并把它记进 profile 的 `minimumReleaseAgeExclude`;如果你给 pnpm 配了更严格的策略,按钮会提示什么时候可以更新。新版本号是从 npm 读到的,pnpm 却从 profile 配置的安装源下载:刚发布的版本,安装源(尤其是国内镜像)可能还没同步到,这时按钮会提示过几分钟再更新;连不上安装源时,会提示检查网络或代理。本地 `link:` 开发安装不会出现这个按钮。完成后完全退出并重新打开桌面应用。只刷新页面不会重载 Host。也可以在**插件**页重新安装,同样要填写带版本号的包名(例如 `dsh-packycode-api@1.4.13`),否则装上的可能是发布满 24 小时的旧版。
289
290
 
290
291
  **从本地路径安装切回官方源时,必须先卸载。** 「更新」是 `pnpm add`,它只重写包目录里的文件,不会删除更早一次本地路径安装留在包目录内的 `node_modules`;那份旧依赖会继续挡住 DSH 自带的包,插件行加载失败且看不出原因。「卸载」执行的是 `pnpm remove`,会删掉整个包目录,重装才是干净的。用 `node scripts/install-check.mjs` 可以确认当前 profile 是否处于这个状态。
291
292
 
@@ -301,7 +302,7 @@ ls ~/.dsh/profiles/desktop/node_modules/dsh-packycode-api/node_modules
301
302
 
302
303
  有输出就是残留:从 npm 安装的包不会自带 `node_modules`,这一份通常来自更早一次「本地路径」安装(`file:` 或直接写路径,而不是 `link:`)。它位于 profile 目录内部,而 DSH 解析插件导入时优先使用 profile 内的副本,所以插件拿到的仍是那份旧依赖 —— 例如 `@deepseek-ai/schemastery` 3.18.2 没有 `Schema.volatile()`,模块在导入阶段就抛错。导入失败时 Loader 不会为这一行创建 fiber,客户端 bundle 也不会被组合,于是模型路由、RPC 通道和设置页全都不会出现。
303
304
 
304
- 修复:到**插件**页**卸载**本插件,再用带版本号的包名重新**安装**(例如 `dsh-packycode-api@1.4.12`),然后完全退出并重新打开桌面应用。卸载执行的是 `pnpm remove`,会删掉整个包目录;直接重装或点「更新」只重写文件,不会清掉这份残留。也可以手动删掉上面那个 `node_modules` 再重启。
305
+ 修复:到**插件**页**卸载**本插件,再用带版本号的包名重新**安装**(例如 `dsh-packycode-api@1.4.13`),然后完全退出并重新打开桌面应用。卸载执行的是 `pnpm remove`,会删掉整个包目录;直接重装或点「更新」只重写文件,不会清掉这份残留。也可以手动删掉上面那个 `node_modules` 再重启。
305
306
 
306
307
  **首次安装后,设置页每张卡片都显示 `transport failure for /packycode-api/…: HTTP 405`?** 实际装上的是 1.1.6 或更早的版本,通常是因为安装时只填了包名:安装提示显示的是最新版,pnpm 实际装的却是发布满 24 小时的旧版(见「安装插件」)。这些旧版要等 DSH 重启、重建它的 `connection` 服务之后,才能注册设置通道。所以首次安装后 `/packycode-api` 通道还不存在,请求落到静态页面,返回 405;模型路由和设置页本身照常加载。1.1.7 起首次安装不需要重启。先确认装上的版本:
307
308
 
package/lib/index.js CHANGED
@@ -3731,6 +3731,7 @@ function buildCliEnvironment({ baseUrl, apiKey, configDir, maxTokens, continues
3731
3731
  DISABLE_ERROR_REPORTING: "1",
3732
3732
  DISABLE_BUG_COMMAND: "1",
3733
3733
  CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: "1",
3734
+ CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1",
3734
3735
  CLAUDE_CODE_MAX_RETRIES: "0",
3735
3736
  CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK: "1",
3736
3737
  CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK: "1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-packycode-api",
3
- "version": "1.4.12",
3
+ "version": "1.4.13",
4
4
  "description": "Use PackyCode API keys in DeepSeek Harness with multi-protocol models, image generation and editing, separate key rings, and balance display",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",