A fast one-shot can request exit through ctx.appExit while the launcher still awaits its watcher setup; the failure guard now also swallows the resulting rejections when the tree is no longer live, not only on signal shutdown. Sync the app-boot README and headless bundle comment with unconditional patch watching, and bring the two Agent Notes still asserting the --dev row append and the headlessIo slot current.
36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
# The dsh-headless bundle patch: one-shot task mode directly over dsh-base.
|
|
# It mounts no Host, HTTP server, Web runtime, or browser plugin. An ordinary
|
|
# provider plugin injects `cmdlineArgs`, parses the task positional
|
|
# (`dsh --profile headless "<task>"`) and this app's --help, then the direct
|
|
# driver creates an Agent through the core registry and prints its durable result.
|
|
|
|
- id: system-prompt
|
|
config:
|
|
persona: >-
|
|
You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
|
|
|
|
# The shared module-reload HMR row stays off; the launcher's watch-only
|
|
# fallback still keeps the user patch layers live until the run exits.
|
|
- id: hmr
|
|
disabled: true
|
|
|
|
- id: tools
|
|
config:
|
|
# Keep the same temporary process-wide Code Mode opt-in as the Web surface.
|
|
mode: !!js process.env.DSH_TOOLS_MODE
|
|
|
|
- insert:
|
|
# Code Mode is a core execution capability, not a Web component.
|
|
- id: code-runtime
|
|
name: '@deepseek-ai/dsh-code-runtime-worker'
|
|
|
|
- id: headless-startup
|
|
name: '@deepseek-ai/dsh-headless/startup'
|
|
|
|
# Reads its task from the ordinary headlessStartup provider.
|
|
- id: headless-runner
|
|
name: '@deepseek-ai/dsh-headless'
|
|
inject: [headlessStartup]
|
|
config:
|
|
task: !!js ctx.headlessStartup.task
|