@dsh-enhanced/personal-assistant 0.1.54 → 0.1.57

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
@@ -32,25 +32,11 @@ patch 会完整覆盖上游 `permission` 行,并挂载唯一的 `dsh-enhanced-
32
32
 
33
33
  ## 配置默认模型
34
34
 
35
- meta-bundle 附带 `dsh-model-setup`(同时以 `@dsh-enhanced/assistant-policy/model-setup` 导出),把部署默认模型写入 DSH `settings.yaml` 的 `agent-default-model`;自定义 OpenAI 兼容网关另写 `llm-pi-ai.providers.<route>`。它只写模型选择与 provider profile,不改权限、不动 channel。
35
+ 日常添加 API 模型请使用 **Web → 设置 → 模型**;在 Web 聊天选择器或飞书 `/model` 中切换当前会话。完整步骤见[模型配置](../../docs/models.md),无需改动插件代码或把 API Key 写入项目。
36
36
 
37
- ```sh
38
- # DeepSeek 官方(缺省模型 deepseek-v4-flash)
39
- dsh-model-setup --provider deepseek-official --model deepseek-v4-flash
40
-
41
- # 自定义网关(缺省协议 openai-completions)
42
- dsh-model-setup --provider super-relay --model glm5.2 \
43
- --base-url https://super-relay.example/v1 --api openai-completions
44
-
45
- # 本机 TraeX(agent route,无 API Key):写默认选择并在指定 profile 启用 route
46
- dsh-model-setup --provider traex-agent --enable-in-profile web
47
- ```
48
-
49
- API Key 绝不作为参数传入:加 `--store-key` 时,值只从 `DSH_ENHANCED_MODEL_API_KEY` 或按 provider 派生的凭据引用(`deepseek-official` 为 `DEEPSEEK_API_KEY`,其余形如 `SUPER_RELAY_API_KEY`)读取,并原子写入 `$DSH_HOME/.credentials.yaml`(`0600`,目录 `0700`),密钥缺失时 fail-closed 且不改动 `settings.yaml`。不加 `--store-key` 则只写 route 选择,凭据仍按 DSH 运行时的环境/`.credentials.yaml` 解析。
50
-
51
- `traex-agent` 是 **agent route**:不需要 API Key(也拒绝 `--store-key` 与网关传输字段),由本机已登录的 TraeX 通过 [`@dsh-enhanced/traex-acp-provider`](../traex-acp-provider/README.md) 提供。它把全局 `agent-default-model` 指向 `traex-agent`,并用 `--enable-in-profile <profile>` 在该 profile 的 `cordis.patch.yml` 里把 provider 行置为 `enabled: true`(保留其它行/注释/`!!js`,仅在缺失时补默认 `cwd`)。注意 `agent-default-model` 是全局唯一段、被所有 profile 共享,而该 route 的适配器只在启用了本 bundle 的 profile 里注册;因此只有已启用的 profile(如 `web`)能解析 `traex-agent`,`headless` 等未装该 bundle 的 profile 会 `NO_ADAPTER`。安装器的模型配置引导即调用此工具,详见[安装脚本文档](../../scripts/install/README.md#配置默认模型)。
37
+ 安装器会保留已有默认选择;发现已登录的 TraeX 且没有明确默认值时,为当前 profile 选择 `traex-agent`。TraeX 只在已启用其插件的 profile 中可用,见[TraeX 帮助](../traex-acp-provider/README.md)。
52
38
 
53
- 自动安装使用 `--profile <profile> --default-if-absent --enable-in-profile <profile>`:保留 settings、home patch 和 profile patch 中已有的显式模型选择,只在没有选择时写入当前 profile 默认模型;`--enable-only` 只启用 route。检测到的命令通过 `--agent-command` 补入缺失字段,已有 command/cwd 保留。手动设置也应传 `--profile`;不带 profile 的旧写法产生待导入的 settings 文件,不再是跨 profile 的即时全局设置。
39
+ 部署脚本可通过本包附带的 `dsh-model-setup` 设置默认值,参数和作用范围见[高级模型配置](../../scripts/install/maintenance.md#配置默认模型)。这与“添加一个可选模型”不同;手动调用应显式指定 `--profile`,避免生成旧版全局待导入设置。
54
40
 
55
41
  ## 权限与数据
56
42
 
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "0.1.54";
1
+ export declare const version = "0.1.57";
2
2
  //# sourceMappingURL=version.d.ts.map
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const version = '0.1.54';
1
+ export const version = '0.1.57';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-enhanced/personal-assistant",
3
- "version": "0.1.54",
3
+ "version": "0.1.57",
4
4
  "description": "A core-only meta-bundle for the DSH personal assistant policy, memory, Wiki, and automations plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -47,15 +47,15 @@
47
47
  }
48
48
  },
49
49
  "dependencies": {
50
- "@deepseek-ai/schemastery": "3.18.4",
51
- "@dsh-enhanced/assistant-automations": "0.1.54",
52
- "@dsh-enhanced/assistant-policy": "0.1.54",
53
- "@dsh-enhanced/personal-wiki": "0.1.54",
54
- "@dsh-enhanced/personal-memory": "0.1.54"
50
+ "@deepseek-ai/schemastery": "3.18.5",
51
+ "@dsh-enhanced/assistant-automations": "0.1.57",
52
+ "@dsh-enhanced/assistant-policy": "0.1.57",
53
+ "@dsh-enhanced/personal-memory": "0.1.57",
54
+ "@dsh-enhanced/personal-wiki": "0.1.57"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@deepseek-ai/cordis": "^4.0.1",
58
- "@deepseek-ai/dsh-permission-presets": "0.2.0-rc.2"
58
+ "@deepseek-ai/dsh-permission-presets": "0.2.1-rc.2"
59
59
  },
60
60
  "peerDependenciesMeta": {
61
61
  "@deepseek-ai/cordis": {
@@ -66,7 +66,7 @@
66
66
  }
67
67
  },
68
68
  "devDependencies": {
69
- "@deepseek-ai/cordis": "4.0.4",
69
+ "@deepseek-ai/cordis": "4.0.5",
70
70
  "@types/node": "22.20.0",
71
71
  "typescript": "6.0.3",
72
72
  "vitest": "4.1.8"