name: startup-triage description: Debug startup and runtime-loading issues in diagram-tours. Use when investigating CLI path handling, wizard vs direct startup differences, host or port behavior, source-target resolution, single-file preview, Markdown Mermaid loading, or startup smoke failures.
Startup Triage
Trace the startup path from CLI input to loaded runtime entry.
Follow this order
- Identify the requested startup mode:
- no-arg wizard
- direct directory target
- direct file target
- Markdown-backed target
- Inspect the relevant sources:
packages/cli/src/lib/args.tspackages/cli/src/lib/target.tspackages/cli/src/lib/wizard.tspackages/cli/src/lib/server.tspackages/web-player/src/routes/+layout.server.tspackages/web-player/src/lib/source-target.tsdocs/runtime-loading.md
- Compare the intended flow with:
packages/web-player/smoke/startup-modes.spec.tspackages/web-player/smoke/payment-flow.spec.ts
- Reproduce with the smallest command that shows the issue.
- Check whether the problem is:
- target validation
- env handoff
- parser loading
- route selection
- printed URL or browser-open behavior
Good commands
bun run buildbun run smokenode packages/cli/dist/bin/diagram-tours.js ./examples --host 127.0.0.1 --port 4173 --no-openbun run dev ./examplesbun run dev:interactive
Output
- State the failing startup mode.
- Name the first broken boundary in the chain.
- Mention the smallest reproducer.
- List the smoke tests or docs that should change if behavior is intentional.