Files
deepseek-harness/examples/desktop/config/daemon-echo.yml
ZiyaZhang e8f5c0b51b feat(desktop): DSH Electron desktop shell — harness internals visualized
Minimal Electron shell over the DSH JSON-RPC runtime — a first-look at
what a ChatGPT.app-style host on top of the DeepSeek Harness looks
like, with the harness's normally-invisible internals (trace timeline,
context surface, subagent tree, compaction, plugin registry, rubrics)
brought forward as first-class UI surfaces so plugin authors and
researchers can see what the agent is actually doing.

Runs against three keyless-to-live profiles (stdio-echo works on
master out of the box; daemon-echo / daemon-vibe-echo activate once
the daemon-demo lands; stdio-deepseek and daemon-vibe hit the real
DeepSeek API when you supply a key). HARNESS_DEV auto-resolves to the
in-repo runtime when this shell ships under examples/desktop/, so a
fresh clone launches without config; env DSH_DEV_ROOT overrides for
custom layouts, and a sibling deepseek-harness-dev/ checkout is the
original dev workflow.

Cold-clone gate (P0 fixes for first-time-clone usability):
- HARNESS_DEV: 3-candidate resolver (env → walk-up in-repo marker →
  sibling), unit-tested via mock fs so ordering is locked without
  needing either real layout on disk.
- config yml leaves rewritten at assemble time so the sibling-clone
  paths (../../deepseek-harness-dev/examples/echo-agent/…) become
  the in-repo paths (../../echo-agent/…) in the released tree —
  source yml stays usable for local dev, released tree ships a
  working shape.
- pnpm-workspace.yaml allowBuilds.electron = true (was placeholder).
- missing-key card in stdio-deepseek offers a one-click switch to
  stdio-echo (the keyless profile that works on master) rather than
  daemon-echo (blocked on the not-yet-shipped daemon-demo).
- assemble-oss-release.sh rewrites the source-side breadcrumb name
  'dsh-desktop-demo' → 'dsh-desktop' for the released package.json.

FOUC guard on the onboarding gate (41fc5df carried) keeps the
first-launch splash from flashing before the runtime probe finishes.

Test suite (1634 tests in source, 3990 in the runtime repo) covers
resolver ordering, renderer classifiers, trace timeline shape,
compaction diff rendering, rubric parity, and the missing-key
onboarding paths.
2026-07-18 12:59:34 -07:00

45 lines
1.9 KiB
YAML

# Daemon-hosted JSON-RPC serving config for the desktop demo — keyless echo.
#
# The daemon bin (packages/examples/daemon-demo) binds the unix socket at
# $DSH_DAEMON_SOCKET_PATH and holds the lockfile at $DSH_DAEMON_LOCKFILE_PATH.
# Both env values are required so misconfiguration fails loud rather than
# silently binding a fixed default under $HOME.
#
# The leaf mirrors examples/daemon-agent/cordis.yml from the dev clone,
# with paths rewritten so relative plugin imports still resolve against the
# echo-agent leaf inside the dev clone.
# Mock adapter and echo tool from the echo-agent leaf; keyless.
- id: mock-llm
name: '../../echo-agent/src/mock-llm.ts'
- id: echo-tool
name: '../../echo-agent/src/echo-tool.ts'
# Bash executor — required by the spine's bash tool schema.
- id: bash
name: '@deepseek-ai/dsh-bash-local'
# session-query backs session/list metadata (title, running, lastEventTime)
# and the sidebar tree; without it the daemon errors on session/list. Same
# load pattern as the dev clone's integration-smoke.mjs.
- id: session-query
name: '@deepseek-ai/dsh-session-query'
# NOTE (2026-07-16): user-interaction is NOT loaded here — the
# `dsh-daemon-demo` bundle below already imports it and installs the
# interrupt bridge internally (see the "spine + jsonrpc-net + JSONL
# persistence + user-interaction" line below and daemon-demo/src/index.ts).
# Loading it again at the top level would double-mount the service and
# fail loud on daemon start. The stdio profile (echo-jsonrpc.yml) does
# load it, because that profile has no bundle to piggyback on.
# The daemon app bundle: spine + jsonrpc-net + JSONL persistence + user-interaction.
- id: daemon-agent
name: '@deepseek-ai/dsh-daemon-demo'
config:
socketPath: !!js process.env.DSH_DAEMON_SOCKET_PATH
lockfilePath: !!js process.env.DSH_DAEMON_LOCKFILE_PATH
persona: 'You are a mock daemon agent.'
persistenceRoot: !!js process.env.DSH_DAEMON_SESSIONS_ROOT ?? './.sessions'