@ran-sh/dsh-crew 1.0.3 → 1.1.1
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/codex/AGENTS.md +101 -92
- package/docs/ui-surfaces.md +48 -21
- package/lib/client.js +68 -44
- package/official-web-bridge/lib/client.js +368 -4709
- package/official-web-bridge/package.json +1 -2
- package/package.json +130 -67
- package/scripts/build-client.mjs +30 -15
- package/scripts/remove-legacy-official-bridge.ps1 +89 -0
- package/scripts/setup.mjs +152 -140
- package/scripts/verify-npm-install.mjs +311 -310
- package/scripts/verify-official-bridge-e2e.mjs +12 -1
- package/src/client/host-readiness.mjs +62 -59
- package/src/client/index.tsx +35 -30
- package/src/client/quick-entry.tsx +10 -0
- package/src/client/quick-panel.tsx +295 -0
- package/src/client/surface-detection.mjs +43 -30
- package/src/dsh-cli-runtime.mjs +500 -40
- package/src/dsh-cohort.mjs +20 -0
- package/src/hub/index.mjs +1602 -1485
- package/src/install/npx-lifecycle.mjs +1568 -111
- package/src/install/official-web.mjs +36 -73
- package/src/jobs.mjs +20 -24
- package/src/official-web-bridge.mjs +329 -249
- package/src/provider-profile-store.mjs +12 -0
- package/src/provider-settings-store.mjs +347 -5
- package/src/runtime-identity.mjs +23 -1
- package/src/supervisor/restart-request.mjs +202 -0
- package/windows/start-dsh-crew.ps1 +792 -370
- package/worker.cordis.yml +32 -46
- package/zcode/AGENTS.md +35 -26
package/worker.cordis.yml
CHANGED
|
@@ -1,77 +1,63 @@
|
|
|
1
|
-
# dsh-crew
|
|
1
|
+
# dsh-crew worker overlay over the official sdk-minimal profile.
|
|
2
|
+
# Boot with: node <dsh/lib/bin.js> --profile sdk-minimal --patch worker.cordis.yml
|
|
2
3
|
# stdout is reserved for JSON-RPC frames; never add a console logger here.
|
|
3
|
-
#
|
|
4
|
+
# Same-id rows replace the base row's whole config; insert rows add Crew-only rows.
|
|
4
5
|
|
|
5
6
|
- id: sdk-jsonrpc-server
|
|
6
|
-
name: '@deepseek-ai/dsh-sdk-jsonrpc-server'
|
|
7
7
|
config:
|
|
8
8
|
maxTokensAsSuccess: true
|
|
9
9
|
|
|
10
10
|
- id: llm-deepseek
|
|
11
|
-
name: '@deepseek-ai/dsh-llm-deepseek'
|
|
12
11
|
config:
|
|
13
12
|
apiKeyEnv: DEEPSEEK_API_KEY
|
|
14
13
|
thinking: enabled
|
|
15
14
|
reasoningEffort: !!js process.env.DSH_REASONING_EFFORT ?? 'high'
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
name: '@deepseek-ai/dsh-sandbox-local'
|
|
15
|
+
defaultContextWindow: !!js Number(process.env.DSH_CONTEXT_WINDOW ?? 1000000)
|
|
16
|
+
streamIdleTimeoutMs: 172800000
|
|
19
17
|
|
|
20
18
|
- id: sandbox-policy
|
|
21
|
-
name: '@deepseek-ai/dsh-sandbox-policy'
|
|
22
19
|
config:
|
|
23
20
|
mode: !!js process.env.DSH_SANDBOX_MODE ?? 'workspace-write'
|
|
24
21
|
workspaceRoot: !!js process.env.DSH_CWD ?? process.cwd()
|
|
25
22
|
|
|
26
|
-
- id:
|
|
27
|
-
name: '@deepseek-ai/dsh-subprocess-local'
|
|
28
|
-
|
|
29
|
-
- id: bash
|
|
30
|
-
name: '@deepseek-ai/dsh-bash-local'
|
|
23
|
+
- id: fs-local
|
|
31
24
|
config:
|
|
32
25
|
cwd: !!js process.env.DSH_CWD ?? process.cwd()
|
|
33
|
-
timeoutMs: 300000
|
|
34
26
|
|
|
35
|
-
- id:
|
|
36
|
-
name: '@deepseek-ai/dsh-agent-spine-demo'
|
|
27
|
+
- id: system-prompt
|
|
37
28
|
config:
|
|
29
|
+
includeHarnessIdentity: false
|
|
30
|
+
includeRuntimeContext: false
|
|
38
31
|
persona: !!js process.env.DSH_SYSTEM_PROMPT ?? 'You are a focused coding worker. Complete the assigned task, then summarize what you did in your final message.'
|
|
39
|
-
workspaceContext: false
|
|
40
|
-
skills:
|
|
41
|
-
enabled: false
|
|
42
|
-
toolBash:
|
|
43
|
-
enableRunInBackground: false
|
|
44
|
-
toolJobs: false
|
|
45
32
|
|
|
46
|
-
- id:
|
|
47
|
-
name: '@deepseek-ai/dsh-fs-local'
|
|
33
|
+
- id: agent-loop
|
|
48
34
|
config:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
- id: fs-observation-policy
|
|
52
|
-
name: '@deepseek-ai/dsh-fs-observation-policy'
|
|
53
|
-
|
|
54
|
-
- id: tool-fs
|
|
55
|
-
name: '@deepseek-ai/dsh-tool-fs'
|
|
56
|
-
|
|
57
|
-
- id: tool-todo
|
|
58
|
-
name: '@deepseek-ai/dsh-tool-todo'
|
|
59
|
-
config:
|
|
60
|
-
allowParallelInProgress: true
|
|
35
|
+
agents: []
|
|
61
36
|
|
|
62
37
|
- id: sessions
|
|
63
|
-
name: '@deepseek-ai/dsh-session-persistence-jsonl'
|
|
64
38
|
config:
|
|
65
39
|
root: !!js process.env.DSH_SESSION_ROOT ?? './.sessions'
|
|
66
40
|
compression: zstd
|
|
67
41
|
|
|
68
|
-
-
|
|
69
|
-
|
|
42
|
+
- insert:
|
|
43
|
+
- id: fs-observation-policy
|
|
44
|
+
name: '@deepseek-ai/dsh-fs-observation-policy'
|
|
70
45
|
|
|
71
|
-
- id:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
46
|
+
- id: tool-fs
|
|
47
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
48
|
+
|
|
49
|
+
- id: tool-todo
|
|
50
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
51
|
+
config:
|
|
52
|
+
allowParallelInProgress: true
|
|
53
|
+
|
|
54
|
+
- id: token-meter
|
|
55
|
+
name: '@deepseek-ai/dsh-token-meter'
|
|
56
|
+
|
|
57
|
+
- id: compaction-basic
|
|
58
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
59
|
+
config:
|
|
60
|
+
thresholdRatio: 0.8
|
|
61
|
+
retainRatio: 0.16
|
|
62
|
+
maxTokens: 8192
|
|
63
|
+
compactionRetries: 1
|
package/zcode/AGENTS.md
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
|
-
# Global capability-aware delegation policy for ZCode
|
|
2
|
-
|
|
3
|
-
ZCode is a host adapter for DSH Crew. Use the `dsh-crew` MCP server for Crew
|
|
4
|
-
work only after its live capability and readiness surfaces have been checked.
|
|
5
|
-
|
|
6
|
-
- Discover the current Crew configuration, capabilities, activation state and
|
|
7
|
-
readiness before delegating substantial work. Installed, configured, enabled
|
|
8
|
-
and callable are different states; do not infer one from another.
|
|
9
|
-
- Match a bounded work unit to an available Crew role/model and preserve the
|
|
10
|
-
repository/worktree and Result Contract boundaries. Keep planning, ambiguous
|
|
11
|
-
requirements, integration, external side effects and final communication in
|
|
12
|
-
the host agent.
|
|
13
|
-
- Dispatch selected work asynchronously with `dsh_spawn_worker`, save its
|
|
14
|
-
workflow ID, and poll that same workflow with `dsh_worker_result` using
|
|
15
|
-
`wait_seconds: 10`. A bounded wait that returns a nonterminal state is not a
|
|
16
|
-
failure when `dsh_worker_status` confirms that workflow is still running;
|
|
17
|
-
continue polling it and never start a duplicate workflow.
|
|
18
|
-
- If Crew is selected and any required capability is unavailable, non-callable,
|
|
19
|
-
or returns an unknown/runtime/configuration/credential/routing/timeout error,
|
|
20
|
-
pause. Report the evidence and wait for the operator to choose repair Crew or
|
|
21
|
-
continue locally; never silently fall back or retry blindly.
|
|
22
|
-
- Validate returned evidence, changed scope, tests and completion state before
|
|
23
|
-
accepting delegated work. Do not expose credentials or raw provider payloads.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
# Global capability-aware delegation policy for ZCode
|
|
2
|
+
|
|
3
|
+
ZCode is a host adapter for DSH Crew. Use the `dsh-crew` MCP server for Crew
|
|
4
|
+
work only after its live capability and readiness surfaces have been checked.
|
|
5
|
+
|
|
6
|
+
- Discover the current Crew configuration, capabilities, activation state and
|
|
7
|
+
readiness before delegating substantial work. Installed, configured, enabled
|
|
8
|
+
and callable are different states; do not infer one from another.
|
|
9
|
+
- Match a bounded work unit to an available Crew role/model and preserve the
|
|
10
|
+
repository/worktree and Result Contract boundaries. Keep planning, ambiguous
|
|
11
|
+
requirements, integration, external side effects and final communication in
|
|
12
|
+
the host agent.
|
|
13
|
+
- Dispatch selected work asynchronously with `dsh_spawn_worker`, save its
|
|
14
|
+
workflow ID, and poll that same workflow with `dsh_worker_result` using
|
|
15
|
+
`wait_seconds: 10`. A bounded wait that returns a nonterminal state is not a
|
|
16
|
+
failure when `dsh_worker_status` confirms that workflow is still running;
|
|
17
|
+
continue polling it and never start a duplicate workflow.
|
|
18
|
+
- If Crew is selected and any required capability is unavailable, non-callable,
|
|
19
|
+
or returns an unknown/runtime/configuration/credential/routing/timeout error,
|
|
20
|
+
pause. Report the evidence and wait for the operator to choose repair Crew or
|
|
21
|
+
continue locally; never silently fall back or retry blindly.
|
|
22
|
+
- Validate returned evidence, changed scope, tests and completion state before
|
|
23
|
+
accepting delegated work. Do not expose credentials or raw provider payloads.
|
|
24
|
+
|
|
25
|
+
## Harness upgrade redlines
|
|
26
|
+
|
|
27
|
+
- Never install, update, register, unlink, repair, or mutate anything under ~/.dsh.
|
|
28
|
+
- DSH Crew runtime upgrades must go through the Crew-owned installer and DSH_HOME.
|
|
29
|
+
- Never use direct pnpm/npm/dsh plugin operations against the official web profile.
|
|
30
|
+
- Preparing a Harness upgrade must not restart 3080 or 3210.
|
|
31
|
+
- Standalone workers launch through the official DSH SDK profile contract; dsh-sdk-jsonrpc-demo is obsolete.
|
|
32
|
+
- Legacy 3080 bridge must never be used for 3210 lifecycle/restart/rollback.
|
|
33
|
+
|
|
34
|
+
This file is installed as a managed block in `~/.zcode/AGENTS.md`; user-authored
|
|
35
|
+
instructions outside the block are preserved.
|