mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
Rename the tool-presentation transport from code-mode to ptc everywhere that is not written into session logs: the mode config value becomes 'ptc', the preset directory/id becomes ptc, the demo becomes demo:ptc, the dispatch waterfall becomes tools/ptc-dispatch-log (types PtcDispatch*), the prompt rule becomes tools:ptc-only, source/test files become ptc.ts etc., and prose says PTC mode / PTC 模式. The session-persistent vocabulary (durable events tool/code-dispatch*, logged plugin name tools-code-mode, sub-call id segment :code:) intentionally stays and moves in the stacked persistence PR, which is blocked until the SESSION_FORMAT_VERSION v0→v1 migration lands with it. run_code, its code parameter, CodeSdkLanguage, CodeRunFailedError, the dsh-code-runtime family, third-party codex names, and frozen archived notes keep their names.
31 lines
1.1 KiB
YAML
31 lines
1.1 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}}.
|
|
|
|
- id: tools
|
|
config:
|
|
# Keep the same temporary process-wide PTC mode opt-in as the Web surface.
|
|
mode: !!js process.env.DSH_TOOLS_MODE
|
|
|
|
- insert:
|
|
# PTC mode is a core execution capability, not a Web component.
|
|
- id: code-runtime
|
|
name: '@deepseek-ai/dsh-code-runtime-worker-thread'
|
|
|
|
- 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
|