lib/tool-views/: group the tool-view modules (machine-tool-view misnomer fixed) #124
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "glen/refactor-lib-tool-views"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The last mechanical item from the maintainability review (#123) — a pure move-and-rename, zero behavior change.
What: the eight tool-view normalizer modules scattered at
lib/root now live underlib/tool-views/, and themachine-tool-viewmisnomer is fixed — machines were deleted by 0037 phase 5; the module is the generic inspect/exec/transition result normalizer, nowtool-views/inspect.ts(with a two-line rename note). Mapping:machine-tool-view→inspect,info-tool-view→info,file-tool-view→file,list-tool-view→list,bash-view→bash,web-tool-view→web,tool-fields→fields,tool-groups→groups. All viagit mv(history follows; two files byte-identical, six changed only in import paths + prose comment names). 10 importer files updated, 5 test files renamed (import paths only), one AGENTS.md line.Deliberately untouched:
TransitionCard,transitionOf, and theharness-session-viewtransition arm — they render historicalharness_eventsrows, so their fate belongs to 0048's option A/B decision, not this pass.Verification: fresh-eyes review child confirmed all eight moves clean (byte-diffs vs old paths), zero stale references repo-wide, test files import-only, gates exact: tsc clean, eslint 0 new warnings, 777 passed / 13 skipped. Verdict: ship.
Implemented by pi, reviewed by a fresh child thread, verified in-thread.