Render Mermaid diagrams and worktree images in agent Markdown
This commit is contained in:
@@ -25,7 +25,7 @@ These are requirements, not preferences. Changing one needs the owner's agreemen
|
||||
|
||||
## Web UI code
|
||||
|
||||
- Frameworkless. TypeScript in `web/src/`, compiled file-by-file to ES modules in `web/dist/` with `tsc`. No bundler, no framework, no runtime dependencies.
|
||||
- Frameworkless. TypeScript in `web/src/`, compiled file-by-file to ES modules in `web/dist/` with `tsc`. No bundler, no framework, no runtime dependencies. The one exception is vendored Mermaid, lazy-loaded: `web/vendor/mermaid.min.js`, loaded only when a diagram appears.
|
||||
- API types come from `api/openapi.yaml` via `openapi-typescript` (`web/src/api.gen.ts`); call the API through the typed client in `web/src/api.ts`, never raw `fetch`.
|
||||
- `web/dist/` is committed so `go install` needs no Node. Regenerate it with `go generate ./web` whenever `web/src/` or the spec changes.
|
||||
- Every view mounted into a pane returns a dispose function that removes its state subscriptions.
|
||||
|
||||
Reference in New Issue
Block a user