hex/tests/fixtures/annotations/marked-v1.json
Kit Langton e088e95035
feat(annotate): save new annotations as Hex packages (#1944)
Write new Annotate captures as atomic .hexannotation packages under Hex's machine-local annotations folder (<support>/annotations, %LOCALAPPDATA%\hex\annotations on Windows) while reading existing .scrawl libraries in place without copying, mutating, pruning, or retrying them.

- Preserve unknown additive v1 fields on both Package and ScrawlBundle plus validated cleanFrames paths for non-destructive ink editing without a formatVersion break
- Bind .hex-annotate-v1 Paste Last receipts to canonical path, directory (dev, ino), generation, ready_at, and manifest identity while accepting pre-cutover .scrawl receipts in place and rejecting copies across Unified History and Paste Last
- Isolate private retry receipts under RouterDirs::retries with deterministic per-bundle keys and immediate forget on redirect or undo
- Support .hexannotation across annotate_read inspect --json, screenshots recording audio muxing, delayed speech re-transcription, router eval, and editor trim
2026-11-25 02:13:50 -08:00

11 lines
976 B
JSON

{
"version": 1, "id": "chart-note", "createdAtMs": 1777000000123, "durationMs": 3200,
"target": {"mode":"window","app":"Example","displayId":1,"frame":{"x":0,"y":0,"width":400,"height":300,"scale":1}},
"transcript": {"source":"hex","text":"Move this","segments":[{"t0":400,"t1":1050,"text":"Move this"}],"words":[{"t0":400,"t1":650,"text":"Move"},{"t0":700,"t1":1050,"text":"this"}]},
"strokes": [{"t0":600,"t1":790,"fw":400,"fh":300,"pts":[1000,2000,0,5000,2000,190]}],
"marks": [{"id":"m1","strokes":[0],"t0":600,"t1":790,"boxNorm":[0.1,0.2,0.5,0.2],"shape":"line","description":"underline","frame":"frames/frame-01.png"}],
"events": [],
"keyframes": [{"index":1,"t":790,"reason":"mark","file":"frames/frame-01.png","event":"underline","markId":"m1"}],
"contactSheet":"contact-sheet.png","video":"recording.mp4","videoOffsetMs":120,"audio":"audio.wav","audioStoppedAtMs":3000,
"destination":{"session":"example-session","title":"Example","via":"chosen"}
}