Skip to content

Commit 71ec8aa

Browse files
author
Michael Lin
committed
feat(playground): add debug tracing and inline source specifier support
1 parent d65843b commit 71ec8aa

File tree

7 files changed

+1013
-53
lines changed

7 files changed

+1013
-53
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ pnpm cli -- render-plan examples/runtime/counter-plan.json
196196

197197
# Browser playground
198198
pnpm playground
199+
pnpm cli -- playground --debug
200+
RENDERIFY_PLAYGROUND_DEBUG=1 pnpm playground
199201

200202
# Optional security env
201203
RENDERIFY_SECURITY_PROFILE=strict pnpm playground
@@ -223,6 +225,8 @@ RENDERIFY_RUNTIME_BROWSER_SANDBOX_FAIL_CLOSED=true pnpm playground
223225
RENDERIFY_LLM_USE_STRUCTURED_OUTPUT=false pnpm playground
224226
```
225227

228+
When debug mode is enabled, playground logs key inbound/outbound request summaries and exposes `GET /api/debug/stats` for request distribution diagnostics.
229+
226230
### Playground Hash Deep-Link
227231

228232
The playground can auto-render from URL hash payloads:

packages/cli/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ renderify run <prompt> # Render prompt and print HTML
2929
renderify plan <prompt> # Print RuntimePlan JSON
3030
renderify probe-plan <file> # Probe plan dependencies and policy compatibility
3131
renderify render-plan <file> # Execute RuntimePlan JSON file and print HTML
32-
renderify playground [port] # Start browser playground server
32+
renderify playground [port] [--debug] # Start browser playground server
3333
```
3434

3535
## Quick Start
@@ -53,6 +53,9 @@ renderify render-plan ./examples/runtime/recharts-dashboard-plan.json
5353
- `RENDERIFY_LLM_MODEL`
5454
- `RENDERIFY_LLM_BASE_URL`
5555
- `RENDERIFY_SECURITY_PROFILE` (`strict`, `balanced`, `relaxed`)
56+
- `RENDERIFY_PLAYGROUND_DEBUG` (`1`, `true`, `yes`, `on`)
57+
58+
When debug mode is enabled, playground prints key inbound/outbound request logs and exposes `/api/debug/stats` for request distribution snapshots.
5659

5760
See `../../docs/getting-started.md` and `../../docs/security.md` for runtime and policy options.
5861

0 commit comments

Comments
 (0)