Add a headless text viewer with graphical viewer information parity
Add a discoverable CLI inspection interface for LLMs using structured JSON text without starting Wayland/Vulkan. Reuse the graphical viewer model for frame ordering, names, region ranking, and timing semantics. Expose capture metadata/warnings, paginated frames and regions, exact region/pass details including counters, attachments, operations, groups, pipelines, effective draw state/resources, and raw trace events as a lossless fallback. Use stable frame/event/scope selectors that distinguish repeated pass uses; validate selectors and pagination. Preserve missing/unknown/truncated data and explain timing limitations. Acceptance: headless CLI navigation reaches all captured UI data; shared-model regression tests and CLI validation cover repeated passes, legacy/missing detail, warnings, unknown data, pagination and invalid selectors. Run workspace formatting/check/tests and a real trace CLI smoke test if available. No commits. Implemented wayrender inspect with info, paginated frames/regions/draws/events, frame queue timelines/pass-use selectors, region details, and individual draws. Shared GUI model moved to src/model.rs; graphical behavior unchanged. Draw output resolves interned effective state and friendly pipeline/resource names. Region output preserves all metadata except separately paginated draws; raw events provide every decoded field. README documents navigation and timing/completeness semantics. Verified: cargo fmt --all -- --check, cargo check --workspace, cargo test --workspace (57 passed including seven new inspection regressions), cargo build -p wayrender, package-only strict Clippy and git diff --check passed. Real /tmp/prk-debug-utils-window.wrtrace navigation passed with DISPLAY empty, invalid WAYLAND_DISPLAY and nonexistent Vulkan ICD: 12 frames, all 24 final-frame pass details/draw inventories, 58 regions, raw events and invalid-selector/limit exit behavior. Workspace-wide strict Clippy is blocked by a pre-existing collapsible_match warning in crates/trace/src/lib.rs:177; unrelated source was not modified. No new GPU capture or native graphical smoke run; existing UI interaction tests passed.
Checklist
2 of 2 complete- Implement shared-model headless inspection and document navigation, selectors, completeness and timing semantics.
- Verify parity/navigation regressions, invalid inputs and pagination, workspace checks/tests and headless CLI smoke tests.
- Area
- Personal tooling
- Project
- Wayrender
- Kind
- Feature
- Task ID
tsk_zermh4wvmd- Updated