| Code | Meaning |
|---|
| 0 | Success |
| 1 | Validation / data error (bad JSON, invalid capture, unknown command) |
| 2 | Filesystem error (file not found, permission denied, I/O error) |
WebSketch CLI works with WebSketch IR capture files (JSON). Each capture is a tree of UINode objects where every node carries:
- role — One of 23 UI primitives (PAGE, BUTTON, NAV, CARD, INPUT, etc.)
- bbox — Viewport-relative bounding box
[x, y, w, h] in [0, 1] range
- text — Text signal with hash, length, and classification
- children — Nested child nodes
| Aspect | Detail |
|---|
| Data touched | WebSketch IR JSON files (read), rendered ASCII/diff/fingerprint output (write to stdout/files) |
| Data NOT touched | No telemetry, no analytics, no network calls, no credential storage |
| Permissions | Read: input JSON files. Write: output files to user-specified paths |
| Network | None — fully offline CLI tool |