GeezerVison is showing github.com — feat(pm-console): type-check the console before it is deployed by dezren39 · Pull Request #13628 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Closes #13498.
The console's ~20k lines of TypeScript are now type-checked before they are deployed:
pm-stack/console/tsconfig.json — as the issue specifies: strict, noEmit, moduleResolution: bundler, allowImportingTsExtensions, skipLibCheck, allowJs, types bun + @cloudflare/workers-types, covering src, edge/src, test, scripts. One addition the spec's layout needs: typeRoots points into edge/node_modules, because the dependencies live in edge/ (where the deploy runs npm ci) while the tsconfig sits one level up.
- Dev dependencies in
pm-stack/console/edge: typescript ^7.0.2 (the version npm resolves today; pm-stack/voice-line-worker already pins ^7.0.2), @types/bun ^1.4.5, @cloudflare/workers-types ^5.20261123.1.
- Gate steps: "Type-check the console" runs before the tests in
pm-console-edge-deploy.yml (after an npm ci step for the tools) and in the nightly pm-stack-tests.yml before "Test console".
- The complaints are fixed: 56 on current main (53 when the issue was filed; main moved). By class, as the issue predicted: byte arrays meeting the newer
BufferSource (the base64url helpers and HKDF now say Uint8Array<ArrayBuffer>; casts at the remaining WebCrypto boundaries), the fetch stand-ins kept as typeof fetch (the platform's fetch value lacks bun's preconnect, so plain(...)'s result is asserted to typeof fetch — the same shape as direct.ts's existing cast), unknown JSON in tests given shapes, literal widening in test fixtures, and one real type worth fixing at the source: Work.task's rows now declare Row & { url: string | null }, so board()'s rows carry the fields the tests always read. All type-only except one behaviour-identical change: a cached public file's bytes are copied into a fresh Uint8Array when read from disk.
Verification (laptop, this branch):
npm ci from the committed lockfile, then npx tsc --noEmit -p ../tsconfig.json → exit 0, zero errors (the exact sequence the new workflow steps run).
node build.mjs in edge/ → builds.
bun test in pm-stack/console: 364 tests. The first full run under heavy host load (load average 105–217 from the lane fleet) showed 7 timing failures — four 5 s timeouts and timing-sensitive races; every one passes on re-run, the full edge.test.ts passes 108/108 on this branch and on a pristine-main control worktree, and the platform/release files pass clean. No assertion was weakened and no test was changed in behaviour — test edits are annotations and casts only.
Lane OC3, under Drew's 2026-11-23 12:09 CST approval of this item. Lane AAN's flagged worktree was not touched; this work was recreated fresh.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add pm-stack/console/tsconfig.json (strict, noEmit, bundler module
resolution, allowImportingTsExtensions, skipLibCheck, allowJs, bun +
workers types over src, edge/src, test and scripts; typeRoots point
into edge/node_modules, where the deploy installs). Add typescript,
@types/bun and @cloudflare/workers-types as devDependencies of
pm-stack/console/edge, and a "Type-check the console" step before the
tests in pm-console-edge-deploy.yml and in the nightly
pm-stack-tests.yml.
Fix the 56 complaints tsc had on 2026-11-23, none of them a fault:
byte arrays typed for the newer BufferSource, the fetch stand-ins
kept as typeof fetch, unknown JSON in tests given shapes, and the
board rows' type in work.ts made honest. Type-only throughout; the
one runtime-adjacent change copies the bytes of a public file into a
fresh Uint8Array when it is cached, which changes nothing it serves.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 47 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
7f915a52-b2aa-419b-92c5-2e346ce99442
Commits
-
Reviewing files that changed from the base of the PR and between ad14746 and 0724cdc.
Files ignored due to path filters: 1
-
pm-stack/console/edge/package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 20
-
.github/workflows/pm-console-edge-deploy.yml
.github/workflows/pm-stack-tests.yml
pm-stack/console/edge/package.json
pm-stack/console/edge/src/edge.ts
pm-stack/console/edge/src/entry.ts
pm-stack/console/src/auth.ts
pm-stack/console/src/edge-proto.ts
pm-stack/console/src/push.ts
pm-stack/console/src/server.ts
pm-stack/console/src/sync.ts
pm-stack/console/src/work.ts
pm-stack/console/test/app.test.ts
pm-stack/console/test/console.test.ts
pm-stack/console/test/edge.test.ts
pm-stack/console/test/plan.test.ts
pm-stack/console/test/platform.test.ts
pm-stack/console/test/push.test.ts
pm-stack/console/test/support.ts
pm-stack/console/test/work.test.ts
pm-stack/console/tsconfig.json
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|