mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
Move the agent-spine bundle and the stdio/ACP/JSON-RPC app packages out of core/ and ui/ into a new packages/examples/ group, renamed with a -demo suffix so the npm name marks them as non-product surface: core/agent-core -> examples/agent-spine-demo (dsh-agent-spine-demo) ui/stdio-agent -> examples/stdio-demo (dsh-stdio-demo) ui/acp-agent -> examples/acp-demo (dsh-acp-demo) ui/jsonrpc-agent -> examples/jsonrpc-demo (dsh-jsonrpc-demo) Update every code/config/test reference and reference-only doc mentions, and regenerate module-graph, config-catalog, and doc-graphs. The jsonrpc bin (dsh-jsonrpc-agent) and single-file exe (dsh-jsonrpc-agent-pkg) keep their names; the SDK runtime-startup surface is reconciled separately.
33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
# Stdio agent with the network-free `mock-echo` adapter and example-local `echo`
|
|
# tool. The app bundle supplies the spine; this leaf selects backends, HMR, and app config.
|
|
# No API key: the `mock-echo` adapter never touches the network.
|
|
|
|
# Hot-module reload for the dev/demo loop (a leaf entry, not baked into
|
|
# dsh-stdio-demo — it needs `node --expose-internals`, which `demo:echo` passes).
|
|
- id: hmr
|
|
name: '@cordisjs/plugin-hmr'
|
|
config:
|
|
root: ['.']
|
|
|
|
# Example-local model and tool plugins resolve relative to this file.
|
|
- id: mock-llm
|
|
name: './src/mock-llm.ts'
|
|
|
|
- id: echo-tool
|
|
name: './src/echo-tool.ts'
|
|
|
|
# Local bash executor: agent-core ships the `tool-bash` consumer schema, so the
|
|
# leaf provides the executor it runs on (the echo demo doesn't drive bash, but
|
|
# the tool is part of the shared spine).
|
|
- id: bash
|
|
name: '@deepseek-ai/dsh-bash-local'
|
|
|
|
# The app pre-creates `main` on the mock model and supplies logging, persistence, and readline UI.
|
|
- id: stdio-agent
|
|
name: '@deepseek-ai/dsh-stdio-demo'
|
|
config:
|
|
model: mock-echo
|
|
persona: 'You are echo-agent, a demo agent.'
|
|
welcome: 'echo-agent ready. Type a message ("echo <text>" triggers the tool).'
|
|
persistenceRoot: './.sessions'
|