@dsh-enhanced/personal-assistant 0.1.48 → 0.1.49
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 +7 -3
- package/cordis.patch.yml +0 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +12 -8
package/README.md
CHANGED
|
@@ -20,11 +20,13 @@ patch 会完整覆盖上游 `permission` 行,并挂载唯一的 `dsh-enhanced-
|
|
|
20
20
|
|
|
21
21
|
## 默认安全状态
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
`auto` 是上游保留的动态档位:`assistant-policy` 激活后通过 `permissionPresets.registerAuto()` 注册,卸载或权限服务换代时撤销。patch 不再配置静态 `auto`。
|
|
24
|
+
|
|
25
|
+
- 原生 Permission selector 有 `workspace-write`(请求批准)和 `danger-full-access`(完全访问);Policy 就绪时动态加入 `auto`(帮我批准)。上游 Auto 固定为 `danger-full-access + ask`,低风险且满足 Policy 检查的可逆动作由隔离 reviewer 自动批准,其余仍交人工。没有用户层设置的新安装默认 `danger-full-access`(Full access):可访问任意文件与网络,不逐次请求批准。已有 `settings.yaml` 的 `permission.defaultPreset` 仍由 DSH Settings 用户层优先,不会被 bundle 强制覆盖。
|
|
24
26
|
- policy 默认写入一条 `dsh-enhanced-foreground-capability-*`:本机 Web/direct 的 foreground Agent 可访问 profile 已挂载的全部技能、工具与插件动作,后续动态挂载也无需逐项补 allow;它不会安装尚未安装的插件,也不授权 background 或飞书 external 身份。显式 deny、紧急停止、身份/预算检查仍优先。`budgets` 默认留空。
|
|
25
27
|
- automations scheduler 默认关闭;创建并审批 automation 后仍需由部署者显式启用 scheduler。
|
|
26
28
|
- Memory、Wiki、Policy、Automations 使用各自的 DSH home 私有路径和独立真源。
|
|
27
|
-
- meta 入口先等待 Policy 完成激活,再依次挂载 Memory、Wiki 与 Automations
|
|
29
|
+
- meta 入口先等待 Policy 完成激活,再依次挂载 Memory、Wiki 与 Automations;启动不依赖同步构造或 YAML 行序碰巧成功。
|
|
28
30
|
|
|
29
31
|
需要收紧时可添加显式 deny,或使用安装器的 `--agent-tools disable` 移除托管的 foreground grant;先在测试 profile 使用 `--dump-config` 检查最终 patch。
|
|
30
32
|
|
|
@@ -48,10 +50,12 @@ API Key 绝不作为参数传入:加 `--store-key` 时,值只从 `DSH_ENHANC
|
|
|
48
50
|
|
|
49
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#配置默认模型)。
|
|
50
52
|
|
|
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 的即时全局设置。
|
|
54
|
+
|
|
51
55
|
## 权限与数据
|
|
52
56
|
|
|
53
57
|
meta-bundle 不引入一套独立于上游 Host 的 OS capability、网络 API、凭据、浏览器或安装脚本权限;四个子包的实际权限和数据边界分别见其 README。没有用户覆盖的新 session 从 `danger-full-access + never` 开始,reviewer 为 `none`。完全访问允许 Host sandbox 访问任意文件与网络且不逐次询问;请仅在信任的运行环境使用。已有兼容的用户设置和已记录的会话权限不会被升级或重启覆盖。用户可在原生 Web Permission selector 切换当前会话;飞书发送 `/permission` 打开交互卡片,或使用 `/permission ask`、`/permission auto`、`/permission full confirm`。安装时用 `--permission workspace-write` 或 `--permission auto` 设置更严格的后续会话默认值;显式覆盖既有默认为完全访问仍使用 `--permission danger-full-access --confirm-dangerous-full-access`。权限档位不绕过 Policy 显式拒绝、紧急停止、身份校验和预算硬门。
|
|
54
58
|
|
|
55
59
|
## 兼容性
|
|
56
60
|
|
|
57
|
-
|
|
61
|
+
当前适配 DeepSeek Harness `0.2.0-rc.2`;完整宿主安装需按[兼容性文档](../../docs/compatibility.md)验证。
|
package/cordis.patch.yml
CHANGED
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.1.
|
|
1
|
+
export declare const version = "0.1.49";
|
|
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.49';
|
|
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.
|
|
3
|
+
"version": "0.1.49",
|
|
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,22 +47,26 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@deepseek-ai/schemastery": "3.18.
|
|
51
|
-
"@dsh-enhanced/assistant-
|
|
52
|
-
"@dsh-enhanced/assistant-
|
|
53
|
-
"@dsh-enhanced/personal-wiki": "0.1.
|
|
54
|
-
"@dsh-enhanced/personal-memory": "0.1.
|
|
50
|
+
"@deepseek-ai/schemastery": "3.18.4",
|
|
51
|
+
"@dsh-enhanced/assistant-policy": "0.1.49",
|
|
52
|
+
"@dsh-enhanced/assistant-automations": "0.1.49",
|
|
53
|
+
"@dsh-enhanced/personal-wiki": "0.1.49",
|
|
54
|
+
"@dsh-enhanced/personal-memory": "0.1.49"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@deepseek-ai/cordis": "^4.0.1"
|
|
57
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
58
|
+
"@deepseek-ai/dsh-permission-presets": "0.2.0-rc.2"
|
|
58
59
|
},
|
|
59
60
|
"peerDependenciesMeta": {
|
|
60
61
|
"@deepseek-ai/cordis": {
|
|
61
62
|
"optional": true
|
|
63
|
+
},
|
|
64
|
+
"@deepseek-ai/dsh-permission-presets": {
|
|
65
|
+
"optional": true
|
|
62
66
|
}
|
|
63
67
|
},
|
|
64
68
|
"devDependencies": {
|
|
65
|
-
"@deepseek-ai/cordis": "4.0.
|
|
69
|
+
"@deepseek-ai/cordis": "4.0.4",
|
|
66
70
|
"@types/node": "22.20.0",
|
|
67
71
|
"typescript": "6.0.3",
|
|
68
72
|
"vitest": "4.1.8"
|