Instrument detection (instlist)
#18
Notifications
Due Date
No due date set.
Depends on
#50 Stage 3 prompt stream never updates handheld UI (#19 blocker)
gronod/iccery-v2-mac
Reference: gronod/iccery-v2-mac#18
Reference in New Issue
Block a user
Summary
Spawn
instlistwith empty argv, idinstlist, cwd inherited.Spec refs
docs/15-stage3-chartread.md, 05-argyll-fork.md §4, 04-argyll-binaries.md §4. #111 #116 #134.
Scope
In: spawn, JSON-first parse, regex fallback, XY marker, Auto option.
Out: chartread session.
Implementation notes
Accumulate stdout. Parse pretty JSON
{event:"instruments",devices:[{port,name,type}]}.Regex fallback
/^(\d+)[\s:=]+'?([^'\n]+)'?…/requiring known-instrument tokens (i1|ColorMunki|Spyder|spectro|Display|Huey|DTP|SpectroScan|Smile|Klein).portis the comm-port forchartread -c. Port1/ Auto → empty option → omit-c. NEVER pass array index.XY flag when name/type matches
/spectro\s?scan|i1io/i→· XY Table.Duplicate Detect while running → exclusive-id error.
Rewrite invariants
#111 port ≠ index. #134 JSON-first. #116 exclusive id
instlist.Dependencies
Blocks-on: 2, 3.
Unblocks: 19.
Test
Acceptance criteria
-cin the chartread builder (tested with issue 19 goldens).