@duke-dsh-plugins/dsh-agent-approval 1.3.0
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/LICENSE +21 -0
- package/README.md +111 -0
- package/client.js +523 -0
- package/cordis.patch.yml +29 -0
- package/index.js +912 -0
- package/package.json +48 -0
- package/typert.host.js +361 -0
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# dsh bundle patch: inserts this plugin into a profile's layer stack and
|
|
2
|
+
# registers the Agent 审批 preset in the permission menu.
|
|
3
|
+
- insert:
|
|
4
|
+
- id: agent-approval
|
|
5
|
+
name: 'dsh-agent-approval'
|
|
6
|
+
|
|
7
|
+
# --- dsh-agent-approval: register the Agent 审批 preset in the permission menu ---
|
|
8
|
+
# Restates the full presets table because a patch REPLACES the `permission`
|
|
9
|
+
# row's whole config; re-sync with dsh-base when upgrading DSH. Declaration
|
|
10
|
+
# order IS menu order: agent-approval sits between workspace-write and
|
|
11
|
+
# danger-full-access (above Full access).
|
|
12
|
+
- id: permission
|
|
13
|
+
name: '@deepseek-ai/dsh-permission-presets'
|
|
14
|
+
config:
|
|
15
|
+
presets:
|
|
16
|
+
read-only:
|
|
17
|
+
sandbox: read-only
|
|
18
|
+
approval: ask
|
|
19
|
+
workspace-write:
|
|
20
|
+
sandbox: workspace-write
|
|
21
|
+
approval: ask
|
|
22
|
+
agent-approval:
|
|
23
|
+
sandbox: workspace-write
|
|
24
|
+
approval: ask
|
|
25
|
+
name: Agent 审批
|
|
26
|
+
description: workspace-write base; an independent approval agent judges every escalation, risky ones are rejected.
|
|
27
|
+
danger-full-access:
|
|
28
|
+
sandbox: danger-full-access
|
|
29
|
+
approval: never
|