@dsh-enhanced/personal-assistant 0.1.3 → 0.1.4

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
@@ -20,7 +20,7 @@ patch 会完整覆盖上游 `permission` 行,并挂载唯一的 `dsh-enhanced-
20
20
 
21
21
  ## 默认安全状态
22
22
 
23
- - 原生 Permission selector 固定显示 `workspace-write`(请求批准)、`auto`(帮我批准)和 `danger-full-access`(完全访问)三项;前两项共享 `workspace-write + ask` 执行 bundle,但保留不同选择意图。没有用户层设置的新安装默认 `danger-full-access`。已有 `settings.yaml` 的 `permission.defaultPreset` 仍由 DSH Settings 用户层优先,不会被 bundle 强制覆盖。
23
+ - 原生 Permission selector 固定显示 `workspace-write`(请求批准)、`auto`(帮我批准)和 `danger-full-access`(完全访问)三项;前两项共享 `workspace-write + ask` 执行 bundle,但保留不同选择意图。没有用户层设置的新安装默认 `workspace-write`。已有 `settings.yaml` 的 `permission.defaultPreset` 仍由 DSH Settings 用户层优先,不会被 bundle 强制覆盖。
24
24
  - policy 默认写入一条 `dsh-enhanced-foreground-capability-*`:本机 Web/direct 的 foreground Agent 可访问 profile 已挂载的全部技能、工具与插件动作,后续动态挂载也无需逐项补 allow;它不会安装尚未安装的插件,也不授权 background 或飞书 external 身份。显式 deny、紧急停止、身份/预算检查仍优先。`budgets` 默认留空。
25
25
  - automations scheduler 默认关闭;创建并审批 automation 后仍需由部署者显式启用 scheduler。
26
26
  - Memory、Wiki、Policy、Automations 使用各自的 DSH home 私有路径和独立真源。
@@ -30,7 +30,7 @@ patch 会完整覆盖上游 `permission` 行,并挂载唯一的 `dsh-enhanced-
30
30
 
31
31
  ## 权限与数据
32
32
 
33
- meta-bundle 不引入一套独立于上游 Host 的 OS capability、网络 API、凭据、浏览器或安装脚本权限;四个子包的实际权限和数据边界分别见其 README。需要特别注意:为了符合本地默认完全控制的安装目标,没有用户层设置的新 session 会选择 `danger-full-access + never`,因此 Host sandbox 可不受限制地访问文件与网络,且工具调用不再逐次询问。这是有意启用的高风险默认值,而不是“安装能力不等于授权”的延伸含义;不需要完全控制时,请在原生 selector 中改回 `workspace-write` 或 `auto`。已有兼容的用户设置始终优先,安装器不会强制覆盖。
33
+ 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 访问任意文件与网络且不逐次询问;已有兼容的用户设置始终优先。
34
34
 
35
35
  ## 兼容性
36
36
 
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { runPermissionSetup } from '@dsh-enhanced/assistant-policy/permission-setup'
4
+
5
+ void runPermissionSetup().catch(error => {
6
+ process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`)
7
+ process.exitCode = 1
8
+ })
package/cordis.patch.yml CHANGED
@@ -14,7 +14,11 @@
14
14
  sandbox: danger-full-access
15
15
  approval: never
16
16
  name: 完全访问权限
17
- defaultPreset: danger-full-access
17
+ # A fresh profile must be useful without silently granting the Host
18
+ # unrestricted filesystem/network access. The owner can explicitly pick
19
+ # `danger-full-access` in DSH's native selector (or via the installer
20
+ # confirmation) after understanding the consequence.
21
+ defaultPreset: workspace-write
18
22
 
19
23
  - insert:
20
24
  - id: dsh-enhanced-personal-assistant
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "0.1.3";
1
+ export declare const version = "0.1.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const version = '0.1.3';
1
+ export const version = '0.1.4';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@dsh-enhanced/personal-assistant",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
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
+ "bin": {
10
+ "dsh-permission-setup": "./bin/dsh-permission-setup.js"
11
+ },
9
12
  "exports": {
10
13
  ".": {
11
14
  "types": "./lib/index.d.ts",
@@ -15,6 +18,7 @@
15
18
  "./package.json": "./package.json"
16
19
  },
17
20
  "files": [
21
+ "bin",
18
22
  "lib",
19
23
  "cordis.patch.yml",
20
24
  "README.md",
@@ -43,10 +47,10 @@
43
47
  },
44
48
  "dependencies": {
45
49
  "@deepseek-ai/schemastery": "3.18.1",
46
- "@dsh-enhanced/assistant-automations": "0.1.3",
47
- "@dsh-enhanced/assistant-policy": "0.1.3",
48
- "@dsh-enhanced/personal-memory": "0.1.3",
49
- "@dsh-enhanced/personal-wiki": "0.1.3"
50
+ "@dsh-enhanced/assistant-automations": "0.1.4",
51
+ "@dsh-enhanced/assistant-policy": "0.1.4",
52
+ "@dsh-enhanced/personal-memory": "0.1.4",
53
+ "@dsh-enhanced/personal-wiki": "0.1.4"
50
54
  },
51
55
  "peerDependencies": {
52
56
  "@deepseek-ai/cordis": "^4.0.1"