Repository navigation
ci(mcpx): pinned TypeScript lint + type-check for the opencode plugin (#5151) - #5174
Conversation
|
Warning Review limit reachedYou'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 39 minutes. View limit details
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. CodeRabbit Verify
|
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. |
|
Stale-PR warden: no activity for 3 days. Resolution task: #6914 — this PR should be merged, fixed, or closed. |
|
🤖 Agent note · done
Outcome — PR #5174 mergedFresh recheck this run before merging: PR #5174 was OPEN, not draft, Merged PR #5174 with a merge commit: |
What
Implements #5151: a dedicated, pinned lint + type-check CI leg for the mcpx-owned TypeScript plugin sources.
plugin-tsjob in.github/workflows/mcpx-test.yml(basic: mcpx-test plugin-ts), wired intoci-ok's needs. It runs on the samepkgs/mcpx/**push/PR triggers as the rest of the workflow.pkgs/mcpx/plugin/opencode/package.json+ committedbun.lock, installed in CI withbun install --frozen-lockfile:@biomejs/biome2.5.15,typescript5.9.3,@types/bun1.4.4,@opencode-ai/plugin1.19.5 (types for the plugin entry; opencode still provides it at runtime).biome lint mcpx/under the repo-rootbiome.json. A nestedpkgs/mcpx/plugin/opencode/mcpx/biome.jsonextends the root config and disables onlysuspicious/noAssignInExpressions—daemon.tsparses Go durations with the canonicalwhile ((m = re.exec(s)) !== null)loop, where the assignment is the loop condition by construction.tsc --noEmit(strict) underpkgs/mcpx/plugin/opencode/tsconfig.json, coveringmcpx/*.tsplusmcpx-session.ts(the plugin entry the session tests import). The config lives atplugin/opencode/level because module resolution formcpx-session.ts's@opencode-ai/pluginimport walks up from there, never down intomcpx/.Why not Deno
Evaluated first, since the workflow already sets Deno up for the Go legs (the issue names it the expected route):
deno checkfails on these sources inside its tsc host while resolving type directives, anddeno lint's default rules flag the daemon wire code's established patterns wholesale (24 findings: 17no-explicit-any, 7require-await). The repo's existing biome + tsc pair (pkgs/id web, pm-stack aggregator) fits the codebase's conventions, so it is the pinned equivalent the issue allows.Source changes (two, both provably behaviour-identical)
noPrecisionLoss: the Go-duration ceiling literal9_223_372_036_854.776indaemon.tsanddaemon.test.tsis respelled9_223_372_036_854.775— the exact double the old spelling already rounded to at runtime (biome's own diagnostic prints that value). The boundary tests indaemon.test.ts(largest Go duration parses, beyond-ceiling rejected) pass unchanged in behaviour.No other source changes. No formatter enforcement (repo-wide formatting stays with the non-blocking auto-format policy in
.github/ci-policy.md), no runtime behaviour change, Go lint debt (#2836) untouched.Verification (laptop worktree, base
464467b7d)bun install --frozen-lockfile && bun run checkfrom a clean tree: exit 0 (biome lint: 0 errors; tsc strict: clean).bun test plugin/opencode/mcpx/frompkgs/mcpx: 58 tests, 0 fail (5 skips are the live-socket ops tests, skipped by design withoutOPS_LIVE_SOCKET).ci-okneeds now[init, unit, lint, plugin-ts, e2e].mcpx-tui.tsxis deliberately out of scope: it is a separate TUI surface with its own UI dependencies, and #5151 names themcpx/sources.Queue task 8832 (lane code-b). Closes #5151 on merge.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.