274. The trace viewer stays one self-contained file, tools/trace/index.html (2026-11-22)
- Decision. For v0.3 the viewer is one offline HTML file with inline CSS and JS and no build step, inlined by
crates/cpl-cli/src/trace.rsand loaded by the site and the VS Code webview; node tests and a headless-Chrome browser test cover it.plan/DOMAINS.mdnames it instead of aweb/packages/trace-viewerthat never existed. - Why. Offline traces from
cpl run --traceand VS Code need no build. Revisit (a TypeScript package that builds the same single file) once the file passes about 3000 lines or needs components shared with the site. - Reverse. Move
tools/trace/into a package with a build step whose output the CLI includes.