mirror of
https://ghproxy.cflmy.top/https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-12-03 02:21:29 +08:00
* fix(headless): preserve preset selection and release closed turn state * fix(agent-presets): report invalid preset selections and keep stored headers Validate only agent-preset/selected records in the agentPreset projection and name the event sequence in the failure. The state and view schemas accept every header value the Session validator admits, so an empty stored header no longer fails restoration. * fix(agent-presets): keep trusting logged preset selections Restore the agentPreset projection, its tests, and the Agent Note consequence to their master state. Writers record non-empty preset IDs only, and Session format admission owns payload validation for stored events, so the projection does not re-validate the typed event payload.
51 lines
1.7 KiB
YAML
51 lines
1.7 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>"`), Session identity, permission and output
|
|
# options, and this app's --help, then the direct driver creates a fresh Agent, or adopts
|
|
# the exact Session the flag names, through the core registry and prints its
|
|
# durable result.
|
|
|
|
- id: system-prompt
|
|
config:
|
|
personaPrefix: >-
|
|
You are a coding agent powered by the {{model}} model.
|
|
|
|
# Session adoption reads the registry's projection. An earlier bundle may supply its default.
|
|
- id: agent-preset-registry
|
|
disabled: false
|
|
|
|
- insert:
|
|
- id: headless-startup
|
|
name: '@deepseek-ai/dsh-headless/startup'
|
|
|
|
# Reads its task and run options from the ordinary headlessStartup provider.
|
|
- id: headless-runner
|
|
name: '@deepseek-ai/dsh-headless'
|
|
inject: [headlessStartup]
|
|
config:
|
|
task: !!js ctx.headlessStartup.task
|
|
sessionId: !!js ctx.headlessStartup.sessionId
|
|
json: !!js ctx.headlessStartup.json
|
|
|
|
# Replacing config retains the base mode/root defaults while adding the CLI grants.
|
|
- id: sandbox-policy
|
|
inject: [headlessStartup]
|
|
config:
|
|
mode: !!js process.env.DSH_PERMISSION_MODE ?? 'workspace-write'
|
|
workspaceRoot: !!js process.cwd()
|
|
additionalWritableRoots: !!js ctx.headlessStartup.additionalWritableRoots
|
|
|
|
- id: hmr
|
|
disabled: true
|
|
|
|
# One-shot jobs use launch-time credentials instead of the interactive store.
|
|
- id: credentials
|
|
disabled: true
|
|
|
|
- id: authorization
|
|
disabled: true
|
|
|
|
- id: deepseek-account
|
|
disabled: true
|