issue-261: Wire the vision extension into package.json (manifest + test globs) #274
No reviewers
Labels
No labels
bug
chore
documentation
enhancement
feature
ready
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
david/pi-extensions-and-skills!274
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/issue-261/wire-the-vision-extension-into-package-json-manife"
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?
261: Wire the vision extension into package.json (manifest + test globs)
Closes #261 — 261.
Generated in 12m 57s.
Review findings
I'll start by examining the current state of the repository and the actual diff.
Confirmed the review's core finding:
origin/mainalready has both the manifest entry (package.json:25) and the vision test globs (package.json:33). The committed change is a pure reorder of two already-present globs — a no-op.Let me run the test gate to confirm current state is green before deciding on remediation.
Tests are green (976 tests, 975 pass, 0 fail, 1 skipped).
The situation is now clear and confirmed. The committed change is a pure reorder of two
extensions/vision/*test globs that already existed onorigin/main(both the manifest entry atpackage.json:25and the test globs atpackage.json:33were present on main). The change is functionally inert —node --testruns each file in isolation, so glob order has no effect.The core Medium finding's suggested fix is explicit: "revert this commit and close #261 as already satisfied (manifest + test globs were already present on main)." The branch's stated goal — "wire the vision extension into package.json (manifest + test globs)" — is already met on
main, with no acceptance criteria requiring anything more. Forcing a new change would be speculative and out of scope for a single pass.The correct, minimal remediation is to revert the pointless reorder so the branch's working tree matches
main(the wiring already exists there). Let me do that.The working tree now matches
mainexactly (empty diff), with the vision globs in the adjacent order the Low finding suggested. Let me verify state and confirm the test gate still passes on the reverted file.The revert is staged (
Min the index), andgit diff origin/mainshows the working tree now matchesmainexactly. Tests pass identically on this content.Remediation summary: The committed change was a pure reorder of two already-present
extensions/vision/*globs — a functionally inert no-op, sincenode --testruns files in isolation regardless of glob order. Both the manifest entry (package.json:25) and the test globs (package.json:33) already existed onorigin/main. Per the core Medium finding's explicit suggestion, I reverted the pointless reorder so the branch's working tree matchesmain(the wiring already exists there). This also places the vision globs in the adjacent order the Low finding requested. The diff-mismatch and missing-gate findings are pre-existing pipeline/infra issues outside a single-pass code fix, so they remain carried forward.Review Findings — 261: Wire the vision extension into package.json (manifest + test globs)
Summary
The only committed change was a reordering of the two
extensions/vision/*test globs in thetestnpm script (package.json:33); both globs already existed onorigin/main, so the change was functionally inert. The test gate passed (976 tests: 975 pass, 1 skipped, 0 fail; vision's 96 tests green) both before and after remediation. No build or lint script exists in the repo, so those gates did not run. Remediation: reverted the pointless reorder sopackage.jsonnow matchesorigin/mainexactly (the manifest entry at line 25 and the test globs at line 33 were already present on main), which also places the vision globs in the adjacent order requested by the Low finding. The diff-generation mismatch (a Stage 1/2 artifact) and the missing typecheck/lint gate (pre-existing, out of scope) remain unresolved.Critical
(none)
High
(none)
Medium
package.json:33— The change is a no-op. It only swaps the order ofextensions/vision/index.test.tsandextensions/vision/src/*.test.ts. Both globs already matched files onorigin/main:extensions/vision/src/*.test.tswas added in commit083ca4e(issue 255), and the manifest already declares the extension atpackage.json:25("extensions/vision/index.ts").node --testruns each file in isolation, so glob order has no effect on which tests run. Net effect: identical test set before and after — the branch does not actually "wire the vision extension into package.json" because that wiring already existed. Suggested fix: revert this commit and close #261 as already satisfied (manifest + test globs were already present on main), or, if a real change is intended, make it explicit and non-redundant.Low
package.json:33— The providedimplementation.diffdoes not match the real committed diff. The supplied diff showsextensions/vision/src/*.test.tsbeing appended (base without the glob), butgit diff origin/mainshows the actual change is a reorder of two globs that were already present. Reviewers should regenerate the diff against the correct base to avoid reviewing stale content. Suggested fix: regenerateimplementation.difffromgit diff origin/main -- package.json(or the correct merge base).package.json:32-33— No type-check / lint gate exists.npm testruns.tsfiles through Node's type-stripping only (notsc --noEmit), and there is nobuildorlintscript, so type errors in the TypeScript extension are never caught by any gate. The visiontsconfig.jsoneven pins"types": ["bun"]while tests run undernode, a pre-existing inconsistency. Suggested fix: add atypecheckscript (e.g.tsc --noEmit) to thetestpipeline; note this is pre-existing and not introduced by this change.package.json:33— Test-script glob ordering is inconsistent across the line:extensions/vision/index.test.tsis split from the otherextensions/vision/src/*.test.tsfiles by placement, making it easy to misread which vision files are covered. Suggested fix: keep the vision globs adjacent (e.g.... extensions/vision/src/*.test.ts extensions/vision/index.test.ts) for readability; cosmetic only.