feat: commandcode-pi 0.1.0 — Command Code Go provider over /alpha/generate
从 ~/.pi/agent/extensions/ 的本地实验文件收编为独立 pi 包: - extensions/commandcode-go.ts:provider commandcode-go,只走 CLI 内部端点 POST /alpha/generate;启动拉 /provider/v1/models 并过滤出 Go 套餐可用的 DeepSeek 模型;凭据按 env → ~/.commandcode/auth.json → pi auth.json 顺序验活 - extensions/commandcode-transient-retry.ts:把网关签名明确的偶发 400 改写为 可重试,复用 pi 内置退避重试 - 文档:README(安装/凭据/模型/风险/排查)、docs/protocol.md(线协议)、 LICENSE(MIT + 上游署名)
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "commandcode-pi",
|
||||
"version": "0.1.0",
|
||||
"description": "pi provider for the Command Code Go plan: registers DeepSeek models and streams over the CLI /alpha/generate transport",
|
||||
"type": "module",
|
||||
"keywords": [
|
||||
"pi-package",
|
||||
"pi-extension",
|
||||
"commandcode",
|
||||
"provider",
|
||||
"deepseek"
|
||||
],
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@git.cat-shark.xyz:2222/cat-shark/commandcode-pi.git"
|
||||
},
|
||||
"pi": {
|
||||
"extensions": [
|
||||
"./extensions/commandcode-go.ts",
|
||||
"./extensions/commandcode-transient-retry.ts"
|
||||
],
|
||||
"changelogPath": "./CHANGELOG.md"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@earendil-works/pi-ai": "*",
|
||||
"@earendil-works/pi-coding-agent": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user