@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/worker.cordis.yml CHANGED
@@ -1,77 +1,63 @@
1
- # dsh-crew: unattended coding-worker composition for dsh-jsonrpc-agent.
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
- # Model/provider arrive per process via the SDK initialize handshake.
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
- - id: sandbox
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: subprocess
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: agent-spine
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: fs-local
47
- name: '@deepseek-ai/dsh-fs-local'
33
+ - id: agent-loop
48
34
  config:
49
- cwd: !!js process.env.DSH_CWD ?? process.cwd()
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
- - id: token-meter
69
- name: '@deepseek-ai/dsh-token-meter'
42
+ - insert:
43
+ - id: fs-observation-policy
44
+ name: '@deepseek-ai/dsh-fs-observation-policy'
70
45
 
71
- - id: compaction-basic
72
- name: '@deepseek-ai/dsh-compaction-basic'
73
- config:
74
- thresholdRatio: 0.8
75
- retainRatio: 0.16
76
- maxTokens: 8192
77
- compactionRetries: 1
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
- This file is installed as a managed block in `~/.zcode/AGENTS.md`; user-authored
26
- instructions outside the block are preserved.
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.