Repository navigation
build(knowledge): bump typescript to 7.0.2 in the extraction packages - #8495
Conversation
Applies the Dependabot bumps from #8357 (course-digest) and #8361 (video-digest), regenerated on current main. TypeScript 7 no longer treats a JSDoc `object` as open or widens a `null`-initialized local, so the checkJs build failed with 47 errors. Give those sites real types: - course-digest: new lib/types.js with PlatformConfig, Course, CourseModule and CourseLesson, used by the auth-session input, the browser and player-presence helpers, classify-frames and the validators; the regression summary and hotmart's frame and HLS base get their real shapes. - video-digest: the watch slice's watch is a WatchState, the quality audit doc and promotion-decisions doc carry their row shapes, and the nullable locals in x.js, queue-claim.js and run-watch.js are typed. tsc --noEmit is clean and vitest passes in both packages. Co-authored-by: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security issues found in PR #8495 at e84acf3. The PR bumps
|
|
claude-review reviewed No findings on head e84acf3. I read the whole diff (21 files) and the PR context. Both Dependabot bumps (#8357, #8361) are referenced with
I could not run |
A change to an extraction file no shell suite names, such as course-digest/extraction/classify-frames.js, failed the selector as UNMAPPED. The test-node job's knowledge blocks install, typecheck and test both packages, so record that lane as their coverage. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WyWcv2NwzrPQ4dChfwFjM7
TypeScript 7 no longer widens a null-initialized local, so `let cleanup = null` failed tsc (TS2322) once this branch met main's TS7 bump (#8495) in the merge queue. The local now carries its JSDoc type. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WyWcv2NwzrPQ4dChfwFjM7
Refs: #8357
Refs: #8361
Summary
Takes TypeScript 7.0.2 in both knowledge extraction packages, as the owner decided on #8357: one attended upgrade PR covering the course-digest bump (#8357) and the video-digest bump (#8361). The Dependabot PRs stay open until this one merges and supersedes them.
Fix
course-digest/extractionandvideo-digest/extraction:typescript^6.0.3to^7.0.2, lockfiles regenerated withnpm installon current main (the Dependabot lockfiles predate later bumps to@types/nodeandvitest).objectand no longer widens anull-initialized local, sotsc --noEmitreported 36 errors in course-digest and 11 in video-digest. Each site now carries a real type, noanycasts:lib/types.jswithPlatformConfig,Course,CourseModule,CourseLesson, used byadapters/auth-session.js,lib/browser.js,lib/player-presence.js,classify-frames.jsandlib/validators.js; the regression summary shape inlib/validators.js;hotmartFrameas a PlaywrightFrameandhlsBaseasstring | nullinlib/players/hotmart.js.watchis the existingWatchState; the quality-audit doc and the promotion-decisions doc carry their row shapes; nullable locals typed inadapters/x.js,watch/queue-claim.js,watch/run-watch.jsandwatch/merge-triage-json.js.knowledgechangelog fragments (patch), one per package, fromscripts/new-changelog-fragment.sh.Verification
npm run build(tsc --noEmit) in both packages: 0 errors (was 36 and 11).npm test(vitest): course-digest 156 passed, video-digest 748 passed.scripts/check-affected.sh: 6 passed, 2 skipped.Related
#8357, #8361
🤖 Generated with Claude Code