@dsh-enhanced/personal-assistant 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 +20 -0
- package/bin/dsh-model-setup.js +8 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -28,6 +28,26 @@ patch 会完整覆盖上游 `permission` 行,并挂载唯一的 `dsh-enhanced-
|
|
|
28
28
|
|
|
29
29
|
需要收紧时可添加显式 deny,或使用安装器的 `--agent-tools disable` 移除托管的 foreground grant;先在测试 profile 使用 `--dump-config` 检查最终 patch。
|
|
30
30
|
|
|
31
|
+
## 配置默认模型
|
|
32
|
+
|
|
33
|
+
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。
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
# DeepSeek 官方(缺省模型 deepseek-v4-flash)
|
|
37
|
+
dsh-model-setup --provider deepseek-official --model deepseek-v4-flash
|
|
38
|
+
|
|
39
|
+
# 自定义网关(缺省协议 openai-completions)
|
|
40
|
+
dsh-model-setup --provider super-relay --model glm5.2 \
|
|
41
|
+
--base-url https://super-relay.example/v1 --api openai-completions
|
|
42
|
+
|
|
43
|
+
# 本机 TraeX(agent route,无 API Key):写默认选择并在指定 profile 启用 route
|
|
44
|
+
dsh-model-setup --provider traex-agent --enable-in-profile web
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
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` 解析。
|
|
48
|
+
|
|
49
|
+
`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#配置默认模型)。
|
|
50
|
+
|
|
31
51
|
## 权限与数据
|
|
32
52
|
|
|
33
53
|
meta-bundle 不引入一套独立于上游 Host 的 OS capability、网络 API、凭据、浏览器或安装脚本权限;四个子包的实际权限和数据边界分别见其 README。新 session 从 `workspace-write + ask` 开始;若确实需要 `danger-full-access + never`,必须在原生 selector 中明确选择,或使用安装器的 `--permission danger-full-access --confirm-dangerous-full-access`。完全访问会允许 Host sandbox 访问任意文件与网络且不逐次询问;已有兼容的用户设置始终优先。
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.1.
|
|
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.
|
|
1
|
+
export const version = '0.1.17';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-enhanced/personal-assistant",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
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",
|
|
7
7
|
"main": "./lib/index.js",
|
|
8
8
|
"types": "./lib/index.d.ts",
|
|
9
9
|
"bin": {
|
|
10
|
-
"dsh-permission-setup": "./bin/dsh-permission-setup.js"
|
|
10
|
+
"dsh-permission-setup": "./bin/dsh-permission-setup.js",
|
|
11
|
+
"dsh-model-setup": "./bin/dsh-model-setup.js"
|
|
11
12
|
},
|
|
12
13
|
"exports": {
|
|
13
14
|
".": {
|
|
@@ -47,10 +48,10 @@
|
|
|
47
48
|
},
|
|
48
49
|
"dependencies": {
|
|
49
50
|
"@deepseek-ai/schemastery": "3.18.1",
|
|
50
|
-
"@dsh-enhanced/assistant-policy": "0.1.
|
|
51
|
-
"@dsh-enhanced/personal-memory": "0.1.
|
|
52
|
-
"@dsh-enhanced/
|
|
53
|
-
"@dsh-enhanced/
|
|
51
|
+
"@dsh-enhanced/assistant-policy": "0.1.17",
|
|
52
|
+
"@dsh-enhanced/personal-memory": "0.1.17",
|
|
53
|
+
"@dsh-enhanced/personal-wiki": "0.1.17",
|
|
54
|
+
"@dsh-enhanced/assistant-automations": "0.1.17"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
56
57
|
"@deepseek-ai/cordis": "^4.0.1"
|