Repository navigation
Releases: Plocr/dsh-commandcode-goat
Release list
v0.7.5 — recover a refused upstream request instead of capping the window
把 Command Code 订阅(Go / GOAT / Pro / Max)发布为 DeepSeek Harness 的一等模型供应商路由:它不自己写适配器,而是把 provider 配置写进官方 llm-pi-ai 设置区,流式、工具调用、思考与图片处理都交给 harness 自带的适配器。
0.7.5 — 让上游的拒绝变成一次「压缩 + 重试」
- 网关那句
a single path expansion cannot exceed 512 candidates的 400,此前既不在重试白名单里,也不是CONTEXT_WINDOW_EXCEEDED,于是每一轮都在第一发请求上自锁。本版在插件内部补上这次分类(lib/recovery.js):第一次被拒用 harness 自己的剪枝器剪掉超长工具结果后重试(纯本地,不花上游调用),第二次被拒压缩一个区段再重试,仍被拒则原样抛出原错误。每个会话预算 2 次。 - 窗口保持厂商声明的 1M:只有网关真的拒绝之后才会缩小会话,而不是预先锁死。0.7.4 的「预先压窗口」方向已废弃——它既没有阻止失败,又把订阅本身的窗口永久压掉了。
- 开关
recoverUpstreamOverflow(默认开)。 - 296 个离线用例:
npm test。
安装
# 从源码(无构建步骤)
dsh plugin --profile web add github:Plocr/dsh-commandcode-goat
# 或预构建 tarball——免 allowBuilds 构建授权
dsh plugin --profile web add "https://github.com/Plocr/dsh-commandcode-goat/releases/latest/download/dsh-commandcode-goat.tgz"在 设置 → 模型 里为生成的供应商配置 API key(或设 COMMANDCODE_API_KEY)。路由会在行加载后几秒自动写入;autoSync: false 可改成只在点按钮时写。
Publishes a Command Code subscription (Go / GOAT / Pro / Max) as first-party llm-pi-ai provider routes — the plugin owns no adapter, so streaming, tool calling, reasoning and image handling come from the adapter the harness already ships.
0.7.5
- Classifies the gateway's
512 candidates400 inside the plugin (lib/recovery.js): the harness prunes oversized tool results and retries once, then compacts one region on a second refusal; after that the original error stands. Two attempts per session. - Keeps the vendor's declared context window — the session is reduced only after the gateway actually refuses.
recoverUpstreamOverflow(default on) toggles it.- 296 offline tests pass (
npm test).
Install
dsh plugin --profile web add github:Plocr/dsh-commandcode-goat
# or the prebuilt tarball:
dsh plugin --profile web add "https://github.com/Plocr/dsh-commandcode-goat/releases/latest/download/dsh-commandcode-goat.tgz"Configure the API key on the generated provider under Settings → Models, or set COMMANDCODE_API_KEY.
Note on this release's asset name
The attached tarball is named dsh-commandcode-goat.tgz on purpose — no version in the filename. releases/latest/download/ resolves latest per request but takes the filename literally, so a versioned asset name would 404 the moment the next release is cut. Keep the asset name version-free in future releases.