dsh-chief 1.2.1 → 1.4.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/CHANGELOG.md +76 -15
- package/README.en.md +143 -114
- package/README.md +134 -140
- package/api-routes.js +1291 -0
- package/archive-cabinets.js +766 -0
- package/archive-core.js +761 -0
- package/archive-dossiers.js +1185 -0
- package/archive-precipitated.js +428 -0
- package/archives.js +63 -2991
- package/board-actions.js +1950 -0
- package/board-schema.js +580 -0
- package/board-store.js +392 -0
- package/chief-approvals.js +1001 -0
- package/chief-archives.js +940 -0
- package/chief-commands.js +3020 -0
- package/chief-compaction.js +591 -0
- package/chief-executor.js +280 -382
- package/chief-models.js +578 -0
- package/chief-network.js +869 -0
- package/chief-review.js +1096 -0
- package/chief-state.js +2193 -0
- package/chief-view.js +568 -0
- package/chief.js +94 -8541
- package/client.js +13294 -11651
- package/index.js +154 -6363
- package/model-tools.js +831 -0
- package/package.json +59 -21
- package/runtime-hooks.js +735 -0
- package/safety/audit-log.js +95 -0
- package/safety/command-analyzer.js +339 -0
- package/safety/guard-walls.js +993 -0
- package/safety/index.js +78 -0
- package/safety/invariant-guards.js +280 -0
- package/safety/path-guard.js +227 -0
- package/safety/policy-engine.js +387 -0
- package/safety/policy-plugin.js +391 -0
- package/safety/tool-gate.js +278 -0
- package/subagent-runtime.js +1406 -0
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-chief",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"icon": "icon.svg",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "Right-sidebar supervisor for DeepSeek Harness (DSH): prevents context-compaction amnesia, monitors subagent DAGs, gates file edits and shell commands behind per-action approvals, breaks runaway loops, and hands off long sessions without bloating prompt tokens.",
|
|
7
7
|
"author": "gluztm",
|
|
8
8
|
"license": "AGPL-3.0-only",
|
|
9
9
|
"repository": {
|
|
@@ -19,27 +19,37 @@
|
|
|
19
19
|
"deepseek-harness",
|
|
20
20
|
"dsh",
|
|
21
21
|
"dsh-plugin",
|
|
22
|
-
"ai-manager",
|
|
23
|
-
"ai管家",
|
|
24
|
-
"ai-orchestrator",
|
|
25
|
-
"ai-supervisor",
|
|
26
|
-
"no-babysitting",
|
|
27
|
-
"免监工",
|
|
28
|
-
"autonomous-agents",
|
|
29
|
-
"agent-orchestration",
|
|
30
|
-
"multi-agent",
|
|
31
|
-
"subagent",
|
|
32
|
-
"dag",
|
|
33
|
-
"session-management",
|
|
34
|
-
"long-session",
|
|
35
|
-
"workflow-automation",
|
|
36
22
|
"context-compaction",
|
|
23
|
+
"compaction-amnesia",
|
|
24
|
+
"context-loss",
|
|
25
|
+
"context-window",
|
|
26
|
+
"token-saving",
|
|
27
|
+
"agent-loop",
|
|
28
|
+
"infinite-loop",
|
|
29
|
+
"unattended-agent",
|
|
30
|
+
"overnight-coding",
|
|
31
|
+
"auto-continue",
|
|
32
|
+
"stop-babysitting",
|
|
33
|
+
"session-handoff",
|
|
34
|
+
"chat-too-long",
|
|
37
35
|
"cross-session-memory",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
36
|
+
"subagent-monitor",
|
|
37
|
+
"multi-agent",
|
|
38
|
+
"task-dag",
|
|
39
|
+
"approval-gate",
|
|
40
|
+
"human-in-the-loop",
|
|
41
|
+
"read-only-mode",
|
|
42
|
+
"command-guardrails",
|
|
43
|
+
"workspace-safety",
|
|
44
|
+
"guard-walls",
|
|
45
|
+
"pre-execute-guard",
|
|
46
|
+
"事前拦截",
|
|
47
|
+
"压缩失忆",
|
|
48
|
+
"挂机跑任务",
|
|
49
|
+
"跨窗口交接",
|
|
50
|
+
"防死循环",
|
|
51
|
+
"只读护栏",
|
|
52
|
+
"ai-manager",
|
|
43
53
|
"superagent"
|
|
44
54
|
],
|
|
45
55
|
"engines": {
|
|
@@ -47,6 +57,13 @@
|
|
|
47
57
|
"dsh": ">=0.2.2-rc.2"
|
|
48
58
|
},
|
|
49
59
|
"main": "./index.js",
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build:client": "node ./scripts/build-client.mjs",
|
|
62
|
+
"check:client": "node ./scripts/build-client.mjs --check",
|
|
63
|
+
"check:syntax": "node -e \"const fs=require('fs'),path=require('path'),cp=require('child_process');const walk=d=>{for(const e of fs.readdirSync(d,{withFileTypes:true})){const p=path.join(d,e.name);if(e.isDirectory()&&(e.name==='safety'||e.name==='src'||e.name==='client'))walk(p);else if(e.isFile()&&e.name.endsWith('.js'))cp.execFileSync(process.execPath,['--check',p]);}};walk('.');\"",
|
|
64
|
+
"test:ci": "npm run check:client && npm run check:syntax && node ./tests/verify-v130-release-gate.mjs && node ./tests/verify-v140-safety-gate.mjs && node ./tests/verify-v140-collab-gate.mjs",
|
|
65
|
+
"test": "node ./tests/verify-v130-release-gate.mjs && node ./tests/verify-v140-safety-gate.mjs && node ./tests/verify-v140-collab-gate.mjs && node -e \"const fs=require('fs'),path=require('path'),cp=require('child_process');if(fs.existsSync('../tools')){for(const s of ['verify-chief-facade-split.mjs','verify-index-modular-split.mjs','verify-archives-modular-split.mjs','verify-client-modular-build.mjs','verify-v121-permissions-and-ui.mjs','verify-compaction-and-blank-chat.mjs','check-action-surface.mjs','verify-v130-four-chains.mjs']){cp.execFileSync(process.execPath,[path.resolve('..','tools',s)],{stdio:'inherit'});}}\""
|
|
66
|
+
},
|
|
50
67
|
"exports": {
|
|
51
68
|
".": "./index.js",
|
|
52
69
|
"./client": "./client.js",
|
|
@@ -57,11 +74,32 @@
|
|
|
57
74
|
},
|
|
58
75
|
"files": [
|
|
59
76
|
"index.js",
|
|
77
|
+
"board-schema.js",
|
|
78
|
+
"board-store.js",
|
|
79
|
+
"board-actions.js",
|
|
80
|
+
"subagent-runtime.js",
|
|
81
|
+
"api-routes.js",
|
|
82
|
+
"model-tools.js",
|
|
83
|
+
"runtime-hooks.js",
|
|
60
84
|
"client.js",
|
|
61
85
|
"chief.js",
|
|
86
|
+
"chief-state.js",
|
|
87
|
+
"chief-models.js",
|
|
88
|
+
"chief-network.js",
|
|
89
|
+
"chief-view.js",
|
|
90
|
+
"chief-archives.js",
|
|
91
|
+
"chief-compaction.js",
|
|
92
|
+
"chief-commands.js",
|
|
93
|
+
"chief-review.js",
|
|
94
|
+
"chief-approvals.js",
|
|
62
95
|
"chief-executor.js",
|
|
96
|
+
"safety/*.js",
|
|
63
97
|
"auto-continue.js",
|
|
64
98
|
"archives.js",
|
|
99
|
+
"archive-core.js",
|
|
100
|
+
"archive-cabinets.js",
|
|
101
|
+
"archive-precipitated.js",
|
|
102
|
+
"archive-dossiers.js",
|
|
65
103
|
"idle-guard.js",
|
|
66
104
|
"memory.js",
|
|
67
105
|
"digest.js",
|