Covers the full embedded orchestrator path as it runs in production: raw <op_tool> response → tryParseElementToolOutput → dispatcher → document-store. Nothing mocked between parser and store. Cases: happy-path element tool lands as text node with correct content; parent_id targets seeded container; stale parent_id fails without write; batch_design fallback detected + HTTP attempted (fetch stubbed to fail); multi-tag response batches into one undo entry; malformed tag returns null (orchestrator falls to legacy JSONL); uncovered tool name short-circuits before HTTP; <think> wrapper stripped (reasoning models); ctx.defaultParentId applied when payload is rootless. Pairs with the isolated dispatcher / parser / shim tests — this one's the "everything wired together" proof. Full repo: 2052 tests across 212 files. |
||
|---|---|---|
| .. | ||
| public | ||
| server | ||
| src | ||
| CLAUDE.md | ||
| components.json | ||
| dev.ts | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||