Integrate the Commander argument adapter with master's safe session-resume feature and dsh web --dev flag. - args.ts: add --dev to the web parser. - tui.ts: keep master's process.execve in-place resume handoff, but take the adapter's parsed (config, resume); inject the resume id through boot's prepare(ctx) hook via ctx.provide(RESUME_SESSION_ID_KEY, id) instead of the RESUME_SESSION_ID env var; rebuild the re-exec argv as `dsh --resume <id>`. - app-boot: drop master's replaceResumeArg (no longer needed) alongside the already-removed parseResumeArg; add RESUME_SESSION_ID_KEY. - the four tui-agent/cordis configs read the ctx-provided resumeSessionId via a typeof-guarded !!js expression, so resume needs no env var. - web.ts: keep master's client roster and --dev watch, take parsed host/port/dev.
33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
# Code Mode keeps the TUI composition while adding the worker runtime and
|
|
# reducing the model-facing registry to the `run_code` transport.
|
|
- id: base
|
|
name: '@cordisjs/plugin-include'
|
|
config:
|
|
path: ./cordis.yml
|
|
patches:
|
|
- id: tui-agent
|
|
name: '@deepseek-ai/dsh-tui-demo'
|
|
config:
|
|
provider: deepseek
|
|
model: deepseek-v4-pro
|
|
resumeSessionId: !!js "typeof resumeSessionId === 'string' ? resumeSessionId : undefined"
|
|
persistenceRoot: './.sessions'
|
|
resumeCommand: 'dsh --resume {session}'
|
|
workspaceContext:
|
|
maxBytes: 65536
|
|
tools:
|
|
mode: code
|
|
welcome: 'TUI Code Mode ready. Give it a multi-tool task.'
|
|
ui:
|
|
showReasoning: true
|
|
maxToolOutputLines: 6
|
|
persona: |
|
|
You are a coding agent powered by the {{model}} model.
|
|
|
|
You work by writing TypeScript programs for run_code: batch related
|
|
tool work into one program, loop and branch where it helps, and print
|
|
or return ONLY the findings that matter.
|
|
- insert:
|
|
- id: code-runtime
|
|
name: '@deepseek-ai/dsh-code-runtime-worker'
|