Fixes the only real TS18048 ('m' is possibly 'undefined') at webview/packages/hud/src/hud/SegmentedRing.tsx:92. Used a non-null assertion because the loop bound (i < tickCount) and initialMatrices (also derived from tickCount) make initialMatrices[i] provably defined — TS just can't track that relationship.
The other ~30 errors reported in CI run 25797533005 were all downstream of TS2307: Cannot find module '@jarvis/bus'. They disappear automatically once pnpm install + bash scripts/build-webview.sh produces the bus package's dist/index.d.ts. CI already runs build-webview.sh before typecheck (see ci.yml comments), so no further changes needed.
Verification
pnpm -r typecheck exits 0 (was: 30+ errors).
pnpm -r test — 138 tests passing across 13 test files.
Once this lands, a one-line follow-up should flip continue-on-error: true → false on the Typecheck step in .github/workflows/ci.yml (line ~around the typecheck step) to make typecheck blocking. Held back from this PR to avoid conflict with the parallel CI Green Doctor agent.
## Summary
- Fixes the only real TS18048 (`'m' is possibly 'undefined'`) at `webview/packages/hud/src/hud/SegmentedRing.tsx:92`. Used a non-null assertion because the loop bound (`i < tickCount`) and `initialMatrices` (also derived from `tickCount`) make `initialMatrices[i]` provably defined — TS just can't track that relationship.
- The other ~30 errors reported in CI run 25797533005 were all downstream of `TS2307: Cannot find module '@jarvis/bus'`. They disappear automatically once `pnpm install` + `bash scripts/build-webview.sh` produces the bus package's `dist/index.d.ts`. CI already runs `build-webview.sh` before typecheck (see ci.yml comments), so no further changes needed.
## Verification
- `pnpm -r typecheck` exits 0 (was: 30+ errors).
- `pnpm -r test` — 138 tests passing across 13 test files.
- `bash scripts/check-app-builds.sh` — App target compiles cleanly.
- All 18 boundary gates green.
## Follow-up
Once this lands, a one-line follow-up should flip `continue-on-error: true` → `false` on the Typecheck step in `.github/workflows/ci.yml` (line ~around the typecheck step) to make typecheck blocking. Held back from this PR to avoid conflict with the parallel CI Green Doctor agent.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
'm' is possibly 'undefined') atwebview/packages/hud/src/hud/SegmentedRing.tsx:92. Used a non-null assertion because the loop bound (i < tickCount) andinitialMatrices(also derived fromtickCount) makeinitialMatrices[i]provably defined — TS just can't track that relationship.TS2307: Cannot find module '@jarvis/bus'. They disappear automatically oncepnpm install+bash scripts/build-webview.shproduces the bus package'sdist/index.d.ts. CI already runsbuild-webview.shbefore typecheck (see ci.yml comments), so no further changes needed.Verification
pnpm -r typecheckexits 0 (was: 30+ errors).pnpm -r test— 138 tests passing across 13 test files.bash scripts/check-app-builds.sh— App target compiles cleanly.Follow-up
Once this lands, a one-line follow-up should flip
continue-on-error: true→falseon the Typecheck step in.github/workflows/ci.yml(line ~around the typecheck step) to make typecheck blocking. Held back from this PR to avoid conflict with the parallel CI Green Doctor agent.Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com