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.
162 lines
4.5 KiB
JSON
162 lines
4.5 KiB
JSON
[
|
|
{
|
|
"_mock": true,
|
|
"_mockReason": "#162 rec 22-bis: one full turn showing the pi rhythm — reasoning → text → tool-row → tool-result → reasoning → text — all as sealed acts (replay path, no deltas). Used for shot 24 (turn container). Seqs increment monotonically inside the turn."
|
|
},
|
|
{
|
|
"type": "user/message",
|
|
"time": 1721400000050,
|
|
"seq": 501,
|
|
"data": {
|
|
"content": [
|
|
{ "type": "text", "text": "Add a comment header to src/lib/main.ts explaining its role, then verify the file still parses." }
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "step/start",
|
|
"time": 1721400000100,
|
|
"seq": 502,
|
|
"data": { "turn": 5, "step": 0 }
|
|
},
|
|
{
|
|
"type": "request/header",
|
|
"time": 1721400000150,
|
|
"seq": 503,
|
|
"data": {
|
|
"header": {
|
|
"model": "deepseek-chat",
|
|
"system": "You are DeepSeek Harness — a research coding agent.",
|
|
"tools": [
|
|
{ "name": "read", "description": "Read a file." },
|
|
{ "name": "edit", "description": "Edit a file by string replacement." },
|
|
{ "name": "bash", "description": "Run a shell command." }
|
|
],
|
|
"config": { "temperature": 0.3, "maxTokens": 4096 }
|
|
},
|
|
"reason": "step-start"
|
|
}
|
|
},
|
|
{
|
|
"type": "assistant/message",
|
|
"time": 1721400000400,
|
|
"seq": 504,
|
|
"data": {
|
|
"content": [
|
|
{ "type": "reasoning", "text": "I should first inspect the current top of the file so my header sits in the right position, then edit, then check parsing with a syntax-only run." },
|
|
{ "type": "text", "text": "I'll read the file, add the header, and verify it parses." }
|
|
],
|
|
"usage": { "inputTokens": 620, "outputTokens": 84, "reasoningTokens": 41 }
|
|
}
|
|
},
|
|
{
|
|
"type": "tool/call",
|
|
"time": 1721400000450,
|
|
"seq": 505,
|
|
"data": {
|
|
"callId": "call_read_5",
|
|
"name": "read",
|
|
"arguments": "{\"path\":\"src/lib/main.ts\"}"
|
|
}
|
|
},
|
|
{
|
|
"type": "tool/result",
|
|
"time": 1721400000520,
|
|
"seq": 506,
|
|
"data": {
|
|
"callId": "call_read_5",
|
|
"content": [
|
|
{ "type": "text", "text": "import { App } from './app'\nnew App().run()\n" }
|
|
],
|
|
"isError": false,
|
|
"meta": { "card": "generic", "durationMs": 62 }
|
|
}
|
|
},
|
|
{
|
|
"type": "tool/call",
|
|
"time": 1721400000560,
|
|
"seq": 507,
|
|
"data": {
|
|
"callId": "call_edit_5",
|
|
"name": "edit",
|
|
"arguments": "{\"path\":\"src/lib/main.ts\",\"old\":\"import { App } from './app'\",\"new\":\"// main.ts — entry point: boots the App composition root.\\nimport { App } from './app'\"}"
|
|
}
|
|
},
|
|
{
|
|
"type": "tool/result",
|
|
"time": 1721400000610,
|
|
"seq": 508,
|
|
"data": {
|
|
"callId": "call_edit_5",
|
|
"content": [ { "type": "text", "text": "edit applied (1 replacement)" } ],
|
|
"isError": false,
|
|
"meta": { "card": "diff", "durationMs": 44 }
|
|
}
|
|
},
|
|
{
|
|
"type": "assistant/message",
|
|
"time": 1721400000720,
|
|
"seq": 509,
|
|
"data": {
|
|
"content": [
|
|
{ "type": "reasoning", "text": "Now I need a cheap parse check that does not execute the boot chain — node --check on the file is enough." },
|
|
{ "type": "text", "text": "Header added. Verifying parse now." }
|
|
],
|
|
"usage": { "inputTokens": 700, "outputTokens": 60, "reasoningTokens": 28 }
|
|
}
|
|
},
|
|
{
|
|
"type": "tool/call",
|
|
"time": 1721400000740,
|
|
"seq": 510,
|
|
"data": {
|
|
"callId": "call_bash_5",
|
|
"name": "bash",
|
|
"arguments": "{\"cmd\":\"node --check src/lib/main.ts\"}"
|
|
}
|
|
},
|
|
{
|
|
"type": "tool/result",
|
|
"time": 1721400000880,
|
|
"seq": 511,
|
|
"data": {
|
|
"callId": "call_bash_5",
|
|
"content": [ { "type": "text", "text": "(no output; exit 0)" } ],
|
|
"isError": false,
|
|
"meta": { "card": "terminal", "durationMs": 138 }
|
|
}
|
|
},
|
|
{
|
|
"type": "assistant/message",
|
|
"time": 1721400000940,
|
|
"seq": 512,
|
|
"data": {
|
|
"content": [
|
|
{ "type": "text", "text": "Done. Header added, file still parses cleanly." }
|
|
],
|
|
"usage": {
|
|
"inputTokens": 780,
|
|
"outputTokens": 34,
|
|
"cacheReadTokens": 512,
|
|
"reasoningTokens": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "step/end",
|
|
"time": 1721400001000,
|
|
"seq": 513,
|
|
"data": { "turn": 5, "step": 0 }
|
|
},
|
|
{
|
|
"type": "turn/end",
|
|
"time": 1721400001050,
|
|
"seq": 514,
|
|
"data": {
|
|
"turn": 5,
|
|
"reason": { "kind": "stop" },
|
|
"usage": { "inputTokens": 780, "outputTokens": 178, "cacheReadTokens": 512, "reasoningTokens": 81 }
|
|
}
|
|
}
|
|
]
|