Design decisions

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.rs and loaded by the site and the VS Code webview; node tests and a headless-Chrome browser test cover it. plan/DOMAINS.md names it instead of a web/packages/trace-viewer that never existed.
  • Why. Offline traces from cpl run --trace and 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.