@dsh-enhanced/traex-acp-provider 0.1.12 → 0.1.17

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
@@ -31,6 +31,18 @@ dsh --profile web --dump-config
31
31
 
32
32
  该实验性 route 默认关闭。确认本机版本、登录和 ACP 入口后设置 `enabled: true`,再在 DSH 的 provider/model 选择处选择 `traex-agent`。首次打开模型选择器时,`listModels` 会自动执行一次不提交 prompt 的只读 ACP discovery,展示当前账号完整模型目录;并发查询共享同一次发现,短 TTL 内直接复用,过期后刷新。`default` 沿用 TraeX 当前模型。具体模型和 effort 都通过 ACP session config option 选择,不会拼进 shell 命令。
33
33
 
34
+ ### 设为部署默认模型
35
+
36
+ 除了在选择器里临时选用,也可把 `traex-agent` 设为该 profile 的部署默认模型。个人助理套件的 `dsh-model-setup`(见 [`personal-assistant`](../personal-assistant/README.md#配置默认模型))会把 `agent-default-model` 指向 `traex-agent`,并在指定 profile 的 patch 层把本 route 置为 `enabled: true`:
37
+
38
+ ```sh
39
+ dsh-model-setup --provider traex-agent --enable-in-profile web
40
+ ```
41
+
42
+ 一键安装器同样支持:本机存在 `traex`/`trae-cli` 时交互向导会出现「本机 TraeX」选项,或直接 `./scripts/install/install-local.sh --model-provider traex-agent`——它会自动把本 bundle 加入安装集、把全局 `agent-default-model` 指向 `traex-agent`、在该 profile 启用 route,并探测 `traex login status`(未登录仅提示,不中断)。
43
+
44
+ 关键区别:`agent-default-model` 是**全局唯一**的 settings 段,被所有 profile 共享;而本 route 的**适配器按 profile 注册**,只在启用了本 bundle 的 profile 里存在。因此把默认设为 `traex-agent` 后,只有已启用本 route 的 profile(默认 `web`)能解析它,`headless` 等未安装本 bundle 的 profile 会报 `NO_ADAPTER`。安装器的 `--model-route verify` 因此对 agent route 采用结构化验证(校验目标 profile 已注册适配器 + `traex login status`),不发模型请求、不消耗额度。`enabled` 仍是本 bundle 的最终开关。
45
+
34
46
  ## 快速开始(5 步)
35
47
 
36
48
  1. **确认 ACP 可用**:`traex acp serve --help` 能打开、`traex login status` 输出 `Logged in using Trae`。命令名是 `trae-cli` 时用它替换下面的 `traex`。
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "0.1.12";
1
+ export declare const version = "0.1.17";
2
2
  //# sourceMappingURL=version.d.ts.map
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const version = '0.1.12';
1
+ export const version = '0.1.17';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-enhanced/traex-acp-provider",
3
- "version": "0.1.12",
3
+ "version": "0.1.17",
4
4
  "description": "Use a local TraeX coding agent as a DeepSeek Harness model provider over ACP.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -48,7 +48,7 @@
48
48
  "@agentclientprotocol/sdk": "0.25.1",
49
49
  "@deepseek-ai/schemastery": "3.18.1",
50
50
  "zod": "4.4.3",
51
- "@dsh-enhanced/llm-route-capabilities": "0.1.12"
51
+ "@dsh-enhanced/llm-route-capabilities": "0.1.17"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@deepseek-ai/cordis": "^4.0.1",