mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-10-26 16:55:08 +00:00
53 lines
1.7 KiB
YAML
53 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.
|
|
|
|
- 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:
|
|
- 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
|
|
approvalPolicy: !!js ctx.headlessStartup.approvalPolicy
|
|
|
|
# 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
|