Skip to content

build(scripts): convert the last 14 standalone .mjs scripts to real .ts - #7751

Merged
JSONbored merged 2 commits into
mainfrom
claude/scripts-remaining-mjs-cleanup
Jul 21, 2026
Merged

build(scripts): convert the last 14 standalone .mjs scripts to real .ts#7751
JSONbored merged 2 commits into
mainfrom
claude/scripts-remaining-mjs-cleanup

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

Stacked on #7705 (needs that one merged/rebased first — this branch depends on its orb-release-core.ts, mcp-release-candidate-core.ts, forbidden-content.ts, and the "compiled miner/mcp output is no longer committed" model).

Closes out the scripts/ TypeScript migration #7705 started: that PR converted every scripts/*.mjs file that had a paired hand-maintained *.d.mts declaration, but 14 files had no .d.mts twin (so were out of that PR's stated scope) and were left running as untyped .mjs. This PR converts the rest, so scripts/ is now 100% real .ts with zero untyped files.

Converted: actionlint, build-selfhost, check-migrations, compute-test-shards, rees-coverage, smoke-observability-{metrics,traces}, smoke-ui-browser, check-{mcp,miner}-package, check-mcp-release-candidate, check-orb-{release,stable-release}-due, check-changelog.

Every consumer updated to match: package.json scripts, the orb-beta-release/orb-stable-release-pr/publish-miner/release-selfhost/selfhost/test-timing-refresh workflows, the Dockerfile and .dockerignore, deploy-selfhost-prebuilt.sh, and comment-only references in src/queue/processors.ts, the miner deny-hooks, the selfhost stub files, and the self-hosting docs pages.

A script invoked directly as a subprocess (no same-directory .ts import) keeps plain node --experimental-strip-types; one that imports another local .ts file (e.g. check-orb-release-due.tsorb-release-core.ts) needs tsx instead, since only tsx — not node's native strip-types — resolves a .js-suffixed specifier to a sibling .ts transitively.

Also includes one fix picked up from #7705's own CI (rebased on top of it here): validate-tests only ever built @loopover/engine before running tests, never @loopover/mcp/@loopover/miner, so once compiled output stopped being committed, every mcp-cli-*/miner-* test that spawns the real CLI binary failed with MODULE_NOT_FOUND across all 3 shards. Fixed by mirroring validate-code's own "Build MCP"/"Build miner CLI" steps.

Test plan

  • npm run typecheck clean
  • npm run actionlint / npm run lint:composite-actions clean
  • npm run db:migrations:check / npm run db:schema-drift:check clean (touched by the check-migrations/check-schema-drift conversion)
  • Full relevant test-file sweep green: compute-test-shards, codecov-policy, check-{mcp,miner}-package, generate-mcp-changelog-script, orb-release, docs-selfhost-update-rollback, selfhost-sentry-release, observability-release-fetch-timeout, selfhost-observability-config, ci-engine-miner-filters, forbidden-content — 12 files, 129/129 tests
  • Real invocations against this repo's own state: check-migrations/check-schema-drift against real migrations/; check-orb-release-due/check-orb-stable-release-due against real git tags; check-mcp-release-candidate/rees:coverage (full rees:test build + coverage harvest, 1346/1346 REES tests); build-selfhost.ts --all (real esbuild bundle); smoke-ui-browser.ts against the live production site (read-only)
  • Repo-wide sweep for any remaining reference to the 14 old filenames (workflows, package.json, docs, comments, test describe() titles) — zero left
  • Confirmed the rees-coverage.ts analyzer-metadata.json ENOENT (root cwd vs. relative-path read) is pre-existing on the original .mjs (byte-diffed) and already tolerated via || true in ci.yml — not introduced by this conversion

@JSONbored JSONbored self-assigned this Jul 21, 2026
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
loopover-ui 284beb8 Commit Preview URL

Branch Preview URL
Jul 21 2026, 02:21 PM

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Bundle Report

Changes will decrease total bundle size by 10 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
loopover-ui 7.43MB -10 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: loopover-ui

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/add-scalar-classes-Ci-7AKSn.js (New) 2.17MB 2.17MB 100.0% 🚀
assets/tanstack-vendor-BDzBPTCx.js (New) 810.42kB 810.42kB 100.0% 🚀
assets/docs.fumadocs-spike-api-reference-Coofx-j6.js (New) 442.92kB 442.92kB 100.0% 🚀
assets/AgentScalarChatInterface.vue-ABwqU2zb.js (New) 201.71kB 201.71kB 100.0% 🚀
assets/modal-DQvxKNFg.js (New) 184.38kB 184.38kB 100.0% 🚀
assets/client-CesVbGqP.js (New) 146.06kB 146.06kB 100.0% 🚀
assets/self-hosting-operations-D6ssSC0V.js (New) 128.92kB 128.92kB 100.0% 🚀
assets/self-hosting-configuration-CILDH_MR.js (New) 81.9kB 81.9kB 100.0% 🚀
assets/maintainer-panel-B_432GyA.js (New) 78.53kB 78.53kB 100.0% 🚀
assets/ui-vendor-iBwYRrSJ.js (New) 57.04kB 57.04kB 100.0% 🚀
assets/routes-vwiqAllr.js (New) 34.83kB 34.83kB 100.0% 🚀
assets/owner-panel-Bs9ywBT4.js (New) 27.26kB 27.26kB 100.0% 🚀
assets/app-D9n7c6u4.js (New) 25.65kB 25.65kB 100.0% 🚀
assets/app.runs-JrLGTAJA.js (New) 23.55kB 23.55kB 100.0% 🚀
assets/miner-panel-Bo89W9xy.js (New) 20.25kB 20.25kB 100.0% 🚀
assets/api._op-iX7FRdpV.js (New) 17.55kB 17.55kB 100.0% 🚀
assets/self-hosting-docs-audit-DZEDxWGS.js (New) 16.63kB 16.63kB 100.0% 🚀
assets/app.index-BlU7OFuW.js (New) 15.62kB 15.62kB 100.0% 🚀
assets/playground-panel-Cl73xRE8.js (New) 14.49kB 14.49kB 100.0% 🚀
assets/self-hosting-releases-BHb_daTk.js (New) 12.01kB 12.01kB 100.0% 🚀
assets/app.audit-zVI5go9g.js (New) 10.11kB 10.11kB 100.0% 🚀
assets/extension-EaMAoePy.js (New) 10.04kB 10.04kB 100.0% 🚀
assets/app.config-generator-1ZkmtFHB.js (New) 9.89kB 9.89kB 100.0% 🚀
assets/fairness-BRYg9Qsh.js (New) 8.34kB 8.34kB 100.0% 🚀
assets/maintainers-BJEsZMku.js (New) 8.03kB 8.03kB 100.0% 🚀
assets/miners-B4UFg5-v.js (New) 7.85kB 7.85kB 100.0% 🚀
assets/agents-CT4-G47N.js (New) 7.76kB 7.76kB 100.0% 🚀
assets/commands-panel-B5bmzBR8.js (New) 6.65kB 6.65kB 100.0% 🚀
assets/maintainer-workflow-Ca_8Nayb.js (New) 6.5kB 6.5kB 100.0% 🚀
assets/ams-env-reference-DkFgrMww.js (New) 6.48kB 6.48kB 100.0% 🚀
assets/roadmap-CzJfhSEY.js (New) 6.33kB 6.33kB 100.0% 🚀
assets/digest-panel-SUfJAzDo.js (New) 6.18kB 6.18kB 100.0% 🚀
assets/repos._owner._repo.quality-BKforG5t.js (New) 6.14kB 6.14kB 100.0% 🚀
assets/docs.index-GIYEwlbJ.js (New) 5.55kB 5.55kB 100.0% 🚀
assets/api.index-C1GSF9t9.js (New) 4.7kB 4.7kB 100.0% 🚀
assets/api-CBhYevGr.js (New) 2.69kB 2.69kB 100.0% 🚀
assets/docs-C8qpDItG.js (New) 2.67kB 2.67kB 100.0% 🚀
assets/app.workbench-Dzxcy9Hq.js (New) 1.58kB 1.58kB 100.0% 🚀
assets/session-CMK-OPzC.js (New) 1.45kB 1.45kB 100.0% 🚀
assets/tooltip-iVSwWdAq.js (New) 1.45kB 1.45kB 100.0% 🚀
assets/tabs-BGsttF0i.js (New) 1.39kB 1.39kB 100.0% 🚀
assets/app.repos-CacDD6Jk.js (New) 1.07kB 1.07kB 100.0% 🚀
assets/input-SFXS7SQ2.js (New) 796 bytes 796 bytes 100.0% 🚀
assets/file-cog-Drec1ab4.js (New) 758 bytes 758 bytes 100.0% 🚀
assets/docs.ai-summaries-DGLGc0DY.js (New) 506 bytes 506 bytes 100.0% 🚀
assets/app.maintainer-B2AhJPao.js (New) 502 bytes 502 bytes 100.0% 🚀
assets/docs.branch-analysis-sDh48HlL.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.scoreability-BPNweHc6.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.upstream-drift-DHmPCBBN.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.federated-fleet-intelligence-Ck77O9mq.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.maintainer-install-trust-VHQ3b0O3.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-ai-providers-1n6W8-EW.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-backup-scaling-BOPSuhQD.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-configuration-D8VubNrD.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-docs-audit-DXvlfeL1.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-github-app-DynCE0u4.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-quickstart-BSYZa2oM.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-rag-BE9qDxPi.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-rees-BdUHFQGn.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-rees-analyzers-tVaQbXIG.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-release-checklist-Cjq-CqBf.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-releases-CNuJRvD9.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-security-_s4v_IWf.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-troubleshooting-CxBzs6RE.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-unified-ams-orb-DngshnjP.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.ams-config-precedence-DLmGIiLN.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-deployment-Bnj45Qz1.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-discovery-plane-Ba0xbLdz.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-env-reference-BltyOSau.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-fleet-manifest-CUrDQNif.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-goal-spec-BBBtgWGq.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-kill-switch-incident-Bg3_hx0P.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-observability-Cvd6ZLMQ.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-operations-runbook-B3D88ehH.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-sizing-DtgyPBNB.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-unattended-scheduling-iaFecaZ2.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.beta-onboarding-BCkLJPTl.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.capacity-Bdb-hJ3B.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.maintainer-self-hosting-E4AVR4zy.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.mcp-clients-tvwMwTil.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.owner-checklist-DSLbpoq4.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.quickstart-BXsDujSd.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.github-app-aY67MWw-.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.maintainer-workflow-cI8ocHBn.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.privacy-security-Df1gTKta.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.troubleshooting-DnsV1E12.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.tuning-CSBjm_hg.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.loopover-commands-BTotXWO9.js (New) 494 bytes 494 bytes 100.0% 🚀
assets/sparkles-Br7f6heF.js (New) 494 bytes 494 bytes 100.0% 🚀
assets/docs.how-reviews-work-DUddvwCX.js (New) 493 bytes 493 bytes 100.0% 🚀
assets/app.owner-DztYCj6b.js (New) 474 bytes 474 bytes 100.0% 🚀
assets/app.commands-DbMnRO2V.js (New) 455 bytes 455 bytes 100.0% 🚀
assets/app.playground-Dot7KUIu.js (New) 442 bytes 442 bytes 100.0% 🚀
assets/reveal-v7GxGicx.js (New) 442 bytes 442 bytes 100.0% 🚀
assets/index-N689U5Et.js (New) 438 bytes 438 bytes 100.0% 🚀
assets/app.digest-WAT52kVA.js (New) 430 bytes 430 bytes 100.0% 🚀
assets/eye-off-Dx1ROQAm.js (New) 430 bytes 430 bytes 100.0% 🚀
assets/app.miner-IvmvGCUr.js (New) 422 bytes 422 bytes 100.0% 🚀
assets/key-round-BdSexI_n.js (New) 355 bytes 355 bytes 100.0% 🚀
assets/bot-tgSMkFCd.js (New) 328 bytes 328 bytes 100.0% 🚀
assets/trash-2-BWQ52mdZ.js (New) 328 bytes 328 bytes 100.0% 🚀
assets/save-Bt7q55L8.js (New) 327 bytes 327 bytes 100.0% 🚀
assets/git-pull-request-arrow-JUkM-NCl.js (New) 321 bytes 321 bytes 100.0% 🚀
assets/wrench-aYw40x4F.js (New) 303 bytes 303 bytes 100.0% 🚀
assets/list-checks-BiN92ilg.js (New) 279 bytes 279 bytes 100.0% 🚀
assets/shield-B6pKOkr4.js (New) 272 bytes 272 bytes 100.0% 🚀
assets/workflow-ZNrj1RN_.js (New) 265 bytes 265 bytes 100.0% 🚀
assets/compass-5S6m5dzQ.js (New) 251 bytes 251 bytes 100.0% 🚀
assets/history-CqEocAnq.js (New) 237 bytes 237 bytes 100.0% 🚀
assets/activity-D9z0GPQb.js (New) 234 bytes 234 bytes 100.0% 🚀
assets/message-square-CqMqzyLI.js (New) 233 bytes 233 bytes 100.0% 🚀
assets/lock-ApdJhxJQ.js (New) 206 bytes 206 bytes 100.0% 🚀
assets/rotate-cw-CMxrCPa2.js (New) 201 bytes 201 bytes 100.0% 🚀
assets/play-cqrWloRk.js (New) 190 bytes 190 bytes 100.0% 🚀
assets/circle-check-CLIKSHui.js (New) 178 bytes 178 bytes 100.0% 🚀
assets/search-DISuxNUC.js (New) 174 bytes 174 bytes 100.0% 🚀
assets/circle-D_mwv2Tj.js (New) 130 bytes 130 bytes 100.0% 🚀
assets/add-scalar-classes-D2pCda31.js (Deleted) -2.17MB 0 bytes -100.0% 🗑️
assets/tanstack-vendor-Ck_r-mZQ.js (Deleted) -810.42kB 0 bytes -100.0% 🗑️
assets/docs.fumadocs-spike-api-reference-BLgtJgti.js (Deleted) -442.92kB 0 bytes -100.0% 🗑️
assets/AgentScalarChatInterface.vue-DZmiABpK.js (Deleted) -201.71kB 0 bytes -100.0% 🗑️
assets/modal-D8_e5k5V.js (Deleted) -184.38kB 0 bytes -100.0% 🗑️
assets/client-BZsXx-2p.js (Deleted) -146.06kB 0 bytes -100.0% 🗑️
assets/self-hosting-operations-CVi6rIgP.js (Deleted) -128.93kB 0 bytes -100.0% 🗑️
assets/self-hosting-configuration-C-CyizC5.js (Deleted) -81.9kB 0 bytes -100.0% 🗑️
assets/maintainer-panel-CAy3alig.js (Deleted) -78.53kB 0 bytes -100.0% 🗑️
assets/ui-vendor-D773i6rF.js (Deleted) -57.04kB 0 bytes -100.0% 🗑️
assets/routes-CbLVM88e.js (Deleted) -34.83kB 0 bytes -100.0% 🗑️
assets/owner-panel-DBUFsx2N.js (Deleted) -27.26kB 0 bytes -100.0% 🗑️
assets/app-CzqDmk9W.js (Deleted) -25.65kB 0 bytes -100.0% 🗑️
assets/app.runs-DT0_NdWy.js (Deleted) -23.55kB 0 bytes -100.0% 🗑️
assets/miner-panel-DdMbxOg3.js (Deleted) -20.25kB 0 bytes -100.0% 🗑️
assets/api._op-BPdjiVnE.js (Deleted) -17.55kB 0 bytes -100.0% 🗑️
assets/self-hosting-docs-audit-DKp2_n4r.js (Deleted) -16.63kB 0 bytes -100.0% 🗑️
assets/app.index-BZ2cp1vi.js (Deleted) -15.62kB 0 bytes -100.0% 🗑️
assets/playground-panel-D4U07bav.js (Deleted) -14.49kB 0 bytes -100.0% 🗑️
assets/self-hosting-releases-A-lrMpSS.js (Deleted) -12.01kB 0 bytes -100.0% 🗑️
assets/app.audit-CmWkaIMq.js (Deleted) -10.11kB 0 bytes -100.0% 🗑️
assets/extension-BkEinpAl.js (Deleted) -10.04kB 0 bytes -100.0% 🗑️
assets/app.config-generator-CrAND2Ai.js (Deleted) -9.89kB 0 bytes -100.0% 🗑️
assets/fairness-BXsTgDAE.js (Deleted) -8.34kB 0 bytes -100.0% 🗑️
assets/maintainers-DIQlzwSL.js (Deleted) -8.03kB 0 bytes -100.0% 🗑️
assets/miners-BVOZf5Xh.js (Deleted) -7.85kB 0 bytes -100.0% 🗑️
assets/agents-B1pgjHYK.js (Deleted) -7.76kB 0 bytes -100.0% 🗑️
assets/commands-panel-C--XxM3j.js (Deleted) -6.65kB 0 bytes -100.0% 🗑️
assets/maintainer-workflow-tfoo2hUg.js (Deleted) -6.5kB 0 bytes -100.0% 🗑️
assets/ams-env-reference-CsfGt45V.js (Deleted) -6.48kB 0 bytes -100.0% 🗑️
assets/roadmap-DBYkdZvx.js (Deleted) -6.33kB 0 bytes -100.0% 🗑️
assets/digest-panel-oPwO4aXm.js (Deleted) -6.18kB 0 bytes -100.0% 🗑️
assets/repos._owner._repo.quality-sUv2_tpw.js (Deleted) -6.14kB 0 bytes -100.0% 🗑️
assets/docs.index-Dc2tRKUV.js (Deleted) -5.55kB 0 bytes -100.0% 🗑️
assets/api.index-DjA_F6Hf.js (Deleted) -4.7kB 0 bytes -100.0% 🗑️
assets/api-CuCsu2PJ.js (Deleted) -2.69kB 0 bytes -100.0% 🗑️
assets/docs-DA3uf-8K.js (Deleted) -2.67kB 0 bytes -100.0% 🗑️
assets/app.workbench-wg0b1C50.js (Deleted) -1.58kB 0 bytes -100.0% 🗑️
assets/session-B2jS2mP8.js (Deleted) -1.45kB 0 bytes -100.0% 🗑️
assets/tooltip-CfjXsXPU.js (Deleted) -1.45kB 0 bytes -100.0% 🗑️
assets/tabs-HEcUxSsm.js (Deleted) -1.39kB 0 bytes -100.0% 🗑️
assets/app.repos-DVl2UXG0.js (Deleted) -1.07kB 0 bytes -100.0% 🗑️
assets/input-tgJLxLQ9.js (Deleted) -796 bytes 0 bytes -100.0% 🗑️
assets/file-cog-Dm70UnD8.js (Deleted) -758 bytes 0 bytes -100.0% 🗑️
assets/docs.ai-summaries-B1BPS_aB.js (Deleted) -506 bytes 0 bytes -100.0% 🗑️
assets/app.maintainer-DCDNylyZ.js (Deleted) -502 bytes 0 bytes -100.0% 🗑️
assets/docs.branch-analysis-D1gHJQHt.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.scoreability-BoL3RdBj.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.upstream-drift-qcEjutuq.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.federated-fleet-intelligence-delntBxH.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.maintainer-install-trust-CzYToZsu.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-ai-providers-Byu4cNGx.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-backup-scaling-Bqcp-eCc.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-configuration-xdjh_yL6.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-docs-audit-xCXXYcR1.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-github-app-Bcvbph0t.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-quickstart-DDy4My4c.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-rag-Bf3nKbQj.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-rees-B2oPfrNH.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-rees-analyzers-PdPMHDF8.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-release-checklist-CrWnjFAy.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-releases-Wsh7BPtV.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-security-BqHAQ8bp.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-troubleshooting-B0jUZioE.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-unified-ams-orb-D0Vj_2Db.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-config-precedence-DWJxEJgy.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-deployment-CM9fCNVA.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-discovery-plane-BdwYiEVN.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-env-reference-xAzgSqvh.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-fleet-manifest-DZyDtrxE.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-goal-spec-C_aP9DJ9.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-kill-switch-incident-CMf3mf9e.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-observability-B_QpGQsr.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-operations-runbook-QkHDJ9-I.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-sizing-45azxFCQ.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-unattended-scheduling-CSK_DQmN.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.beta-onboarding-Bx576bTq.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.capacity-CoN7m5wV.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.maintainer-self-hosting-BCBMsVjK.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.mcp-clients-C_ZtSm4s.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.owner-checklist-B3q0nSMd.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.quickstart-Mm-Qn7Kn.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.github-app-DodGq3oS.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.maintainer-workflow-mP1CPn5Y.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.privacy-security-Bkalb70w.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.troubleshooting-C9oe_glQ.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.tuning-DGtJIzFT.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.loopover-commands-Cv7Ylcly.js (Deleted) -494 bytes 0 bytes -100.0% 🗑️
assets/sparkles-Ca2CZED0.js (Deleted) -494 bytes 0 bytes -100.0% 🗑️
assets/docs.how-reviews-work-ChkmdiSi.js (Deleted) -493 bytes 0 bytes -100.0% 🗑️
assets/app.owner-C4FsTiG_.js (Deleted) -474 bytes 0 bytes -100.0% 🗑️
assets/app.commands-CVgWov0e.js (Deleted) -455 bytes 0 bytes -100.0% 🗑️
assets/app.playground-CQMckPLI.js (Deleted) -442 bytes 0 bytes -100.0% 🗑️
assets/reveal-D60UQ9Dl.js (Deleted) -442 bytes 0 bytes -100.0% 🗑️
assets/index-awhlMjCd.js (Deleted) -438 bytes 0 bytes -100.0% 🗑️
assets/app.digest-BThgHU5V.js (Deleted) -430 bytes 0 bytes -100.0% 🗑️
assets/eye-off-MVPm9eb6.js (Deleted) -430 bytes 0 bytes -100.0% 🗑️
assets/app.miner-BpdMt-CM.js (Deleted) -422 bytes 0 bytes -100.0% 🗑️
assets/key-round-r_HGAOyh.js (Deleted) -355 bytes 0 bytes -100.0% 🗑️
assets/bot-CqvfkyC6.js (Deleted) -328 bytes 0 bytes -100.0% 🗑️
assets/trash-2-DnWb-0HE.js (Deleted) -328 bytes 0 bytes -100.0% 🗑️
assets/save-Cx4eycYR.js (Deleted) -327 bytes 0 bytes -100.0% 🗑️
assets/git-pull-request-arrow-B0yTfaLU.js (Deleted) -321 bytes 0 bytes -100.0% 🗑️
assets/wrench-CSeTgVmZ.js (Deleted) -303 bytes 0 bytes -100.0% 🗑️
assets/list-checks-lzKVB5Ho.js (Deleted) -279 bytes 0 bytes -100.0% 🗑️
assets/shield-BrVRoWIp.js (Deleted) -272 bytes 0 bytes -100.0% 🗑️
assets/workflow-DeL3Piem.js (Deleted) -265 bytes 0 bytes -100.0% 🗑️
assets/compass-2ozr8KyU.js (Deleted) -251 bytes 0 bytes -100.0% 🗑️
assets/history-CN5JcvqY.js (Deleted) -237 bytes 0 bytes -100.0% 🗑️
assets/activity-nwgLPIbO.js (Deleted) -234 bytes 0 bytes -100.0% 🗑️
assets/message-square-D9ASE2fI.js (Deleted) -233 bytes 0 bytes -100.0% 🗑️
assets/lock-KvPxsEdf.js (Deleted) -206 bytes 0 bytes -100.0% 🗑️
assets/rotate-cw-KpgKR_ns.js (Deleted) -201 bytes 0 bytes -100.0% 🗑️
assets/play-CNbH2nfg.js (Deleted) -190 bytes 0 bytes -100.0% 🗑️
assets/circle-check-vurP0joq.js (Deleted) -178 bytes 0 bytes -100.0% 🗑️
assets/search-DgKg_Y_x.js (Deleted) -174 bytes 0 bytes -100.0% 🗑️
assets/circle-DKXFUg49.js (Deleted) -130 bytes 0 bytes -100.0% 🗑️

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.37%. Comparing base (9d95c96) to head (284beb8).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7751   +/-   ##
=======================================
  Coverage   91.37%   91.37%           
=======================================
  Files         729      729           
  Lines       74671    74671           
  Branches    22791    22791           
=======================================
  Hits        68229    68229           
  Misses       5396     5396           
  Partials     1046     1046           
Flag Coverage Δ
control-plane 99.45% <ø> (ø)
rees 88.56% <ø> (ø)
shard-1 54.50% <ø> (+<0.01%) ⬆️
shard-2 55.18% <ø> (ø)
shard-3 51.33% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
packages/loopover-engine/src/miner/deny-hooks.ts 100.00% <ø> (ø)
src/db/migration-collisions.ts 100.00% <ø> (ø)
src/db/migration-column-extraction.ts 100.00% <ø> (ø)
src/queue/processors.ts 95.77% <ø> (ø)
src/review/visual/image-downscale.ts 100.00% <ø> (ø)
src/review/visual/pixel-diff.ts 100.00% <ø> (ø)
src/review/visual/scroll-gif.ts 100.00% <ø> (ø)

@JSONbored
JSONbored force-pushed the claude/scripts-remaining-mjs-cleanup branch from e14217c to 430b033 Compare July 21, 2026 12:46
@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 21, 2026
@loopover-orb

loopover-orb Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Warning

⏸️ LoopOver review result - manual review recommended

Review updated: 2026-07-21 14:39:08 UTC

67 files · 1 AI reviewer · 2 blockers · CI green · unknown

⏸️ Suggested Action - Manual Review

Review summary
This PR is a mechanical .mjs→.ts conversion of the last 14 untyped scripts, adding type annotations and non-null assertions to existing logic without changing behavior, plus updating every consumer (package.json, workflows, Dockerfile, .dockerignore, deploy script, comments) to match the renamed files. The conversions look faithful to the original .mjs logic (e.g. check-migrations.ts, compute-test-shards.ts, check-orb-*-due.ts preserve their algorithms verbatim, just typed), and the node vs tsx invocation choice is correctly threaded through based on whether a script imports a sibling local .ts file. The CI failures (validate, validate-tests (1)) have no detail provided and the branch is 4 commits behind default, which is a plausible innocent explanation rather than a diff defect.

Nits — 5 non-blocking
  • scripts/check-migrations.ts:150 uses a non-null assertion (`extractMigrationNumber(file)!`) justified only by a comment reasoning about the preceding fail() call — worth double-checking that reasoning holds if the malformed-check logic ever changes.
  • The PR description says the base branch depends on build(mcp,miner): stop committing compiled .js/.d.ts entirely #7705 being merged/rebased first, so this diff can't be merged standalone — worth confirming the merge order is actually enforced rather than left to reviewer memory.
  • scripts/smoke-observability-{metrics,traces}.ts inline a template-literal script executed in a separate Node process; the added comment clarifies this is intentional but it's still effectively untyped code embedded as a string, worth flagging for future readers.
  • test/unit/check-migrations-script.test.ts and similar test files still reference `.mjs` in some comments per the diff (e.g. 'scripts/check-migrations.mjs's NAME regex' in migration-collisions.ts before the fix) — verify no other stray .mjs references were missed repo-wide.
  • Given the file count (64 files) but almost entirely mechanical rename+type-annotation churn plus consumer updates, consider whether this could have been split into the script conversions and the workflow/Dockerfile/doc reference updates for easier review, though given the tight coupling (renamed files break callers immediately) a single PR is defensible.

Concerns raised — review before merging

  • No linked issue detected: No closing reference or linked issue number was found in the PR metadata/body. — If this PR is intended to solve an issue, link it explicitly in the PR body.
  • Maintainer requires a linked issue: This repo's maintainer focus manifest requires every PR to reference a tracked issue. — Link the relevant issue (for example Closes #123) before opening the PR.
📋 Copy for AI agents — paste into your coding agent
Fix the following blocker(s) from this PR review:

1. No linked issue detected: No closing reference or linked issue number was found in the PR metadata/body. — If this PR is intended to solve an issue, link it explicitly in the PR body.

2. Maintainer requires a linked issue: This repo's maintainer focus manifest requires every PR to reference a tracked issue. — Link the relevant issue (for example `Closes #123`) before opening the PR.

Decision drivers

  • ❌ Code review — 2 blockers (1 reviewer)
  • ❌ Gate result — Blocking (Repo-configured hard blocker found.)
Context & advisory signals — never blocks the verdict
Signal Result Evidence
Linked issue ⚠️ Missing No linked issue or no-issue rationale found.
Related work ✅ No active overlap found No same-issue or scoped active PR overlap found.
Change scope ✅ 20/20 Low review scope from cached public metadata (no linked issue context).
Validation posture ✅ 25/25 PR body includes validation/test evidence.
Contributor workload ✅ 10/10 Author activity: 21 registered-repo PR(s), 14 merged, 347 issue(s).
Contributor context ✅ Confirmed Gittensor contributor JSONbored; Gittensor profile; 21 PR(s), 347 issue(s).
Improvement ✅ Minor risk: clean · value: minor
Review context
  • Author: JSONbored
  • Role context: owner (maintainer lane)
  • Public audience mode: oss maintainer
  • Lane context: Repository is configured for direct PR review.
  • Public profile languages: Python, TypeScript, Ruby, Go, JavaScript, MDX, Shell, Solidity
  • Official Gittensor activity: 21 PR(s), 347 issue(s).
  • PR-specific overlap: none found.
Contributor next steps
  • Start here: Treat this as maintainer-lane context rather than normal contributor-lane activity.
  • Then work through the remaining 2 steps in the Signals table above.
Signal definitions
  • Related work = same linked issue, overlapping active PRs, or title/path similarity.
  • Change scope = cached public metadata such as size labels, draft state, and review-burden hints.
  • Validation posture = whether the PR provides enough public validation/test evidence for maintainer review.
  • Contributor workload = public contributor activity and cleanup pressure, not a repo-wide quality failure.
  • Contributor context = public GitHub/Gittensor identity context; non-Gittensor status is not a blocker.
🧪 Chat with LoopOver

Ask LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.

  • @loopover ask &lt;question&gt; answers contribution-quality Q&A with source citations and freshness.
  • @loopover chat &lt;question&gt; answers in natural prose from cached decision-pack facts via local inference (maintainer/collaborator; read-only).
  • A plain-language @loopover mention with a real question is routed to the closest matching read-only command automatically — no exact syntax required.

Full command reference: https://loopover.ai/docs/loopover-commands

🧪 Experimental — new and may change.

Visual preview
Route Viewport Before (production) After (this PR's preview) Diff
/ desktop before /
before /
after /
after /
/ mobile before / (mobile)
before / (mobile)
after / (mobile)
after / (mobile)

Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy.

Scroll preview
Route Before (production) After (this PR's preview)
/ before / (scroll)
before / (scroll)
after / (scroll)
after / (scroll)

A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show.

🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed


💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →.

Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.

  • Re-run LoopOver review

@loopover-orb loopover-orb Bot added the manual-review Gittensor contributor context label Jul 21, 2026
@JSONbored
JSONbored force-pushed the claude/scripts-remaining-mjs-cleanup branch from 430b033 to fce38af Compare July 21, 2026 13:14
@JSONbored
JSONbored force-pushed the claude/scripts-remaining-mjs-cleanup branch from fce38af to 330d684 Compare July 21, 2026 13:33
@JSONbored
JSONbored force-pushed the claude/js-ts-migration-analysis-f409fd branch from 74c0ec6 to 4ac3aff Compare July 21, 2026 13:50
@JSONbored
JSONbored force-pushed the claude/scripts-remaining-mjs-cleanup branch from 330d684 to 37bbea1 Compare July 21, 2026 13:59
@JSONbored
JSONbored force-pushed the claude/js-ts-migration-analysis-f409fd branch from 4ac3aff to 2e1249b Compare July 21, 2026 14:06
@JSONbored
JSONbored force-pushed the claude/scripts-remaining-mjs-cleanup branch from 37bbea1 to 461e065 Compare July 21, 2026 14:12
Base automatically changed from claude/js-ts-migration-analysis-f409fd to main July 21, 2026 14:14
Same motivation as the prior commit, extended to scripts/: a hand-maintained
.d.mts alongside a .mjs is exactly the duplicated-declaration problem the
TypeScript migration was supposed to eliminate, and it can silently drift
from the real implementation with no compiler ever checking it. Converts
all 39 remaining scripts/*.mjs files that had one -- the mcp-release/
orb-release family, every docs/settings/schema drift checker, and the rest
of the standalone generators -- to real .ts, inferring each function's
types from its actual behavior rather than trusting the old declaration,
per the pattern proven out on the miner/mcp packages. Nothing in scripts/
was ever part of Codecov's coverage surface, so this adds no coverage
obligation; it's a straight type-safety and drift-elimination win.

Real drift the old .d.mts files had already accumulated, found while
converting:
- check-schema-drift.ts read a table's name via SQLiteTable.Symbol.Name,
  an @internal drizzle-orm symbol never in its public type exports (which
  is exactly why the old hand-written declaration typed it without
  complaint) -- switched to the public getTableName().
- ci-duration-report.ts's WorkflowRun type was missing the `event` field
  the code actually filters on.
- orb-release-core.ts's IMAGE_RELEVANT_PREFIXES still named two sibling
  scripts by their old .mjs filenames, now renamed here too -- a commit
  touching either file under its real name would have silently stopped
  counting as image-relevant.

Every consumer updated to match: .js-suffixed import specifiers (Vite/
esbuild/Wrangler already resolve these to the sibling .ts, same as the
prior commit), test imports, and every real invocation site. A script
whose own file stays .mjs but now imports something converted here (e.g.
check-mcp-package.mjs importing forbidden-content.ts) needs tsx instead
of plain node, since only tsx (not node --experimental-strip-types)
resolves a same-directory .ts import transitively; a script with zero
local imports uses --experimental-strip-types directly, cheaper than
spawning tsx. Covers every affected npm script, the three release-watch
GitHub workflows (which previously needed no npm install at all --
added ./.github/actions/setup-workspace to each), the Dockerfile, and
deploy-selfhost-prebuilt.sh.

That last category caught two live regressions already sitting on this
branch from the prior commit, beyond the one this commit's own
check-miner-deployment-docs.ts conversion fixes (that one's what's been
failing this PR's own CI): packages/loopover-miner/scripts/
generate-env-reference.mjs (npm run miner:env-reference, part of
test:ci) and the Dockerfile/deploy-selfhost-prebuilt.sh's
validate-selfhost-sourcemap invocations were both silently broken the
same way -- caught by grepping for every remaining literal .mjs
reference to a converted filename repo-wide, not by any test, since the
one existing test for the miner env-reference generator imports it
through Vite (which already tolerates the mismatch) rather than
spawning it as the real subprocess the npm script actually runs.
Closes out the scripts/ TypeScript migration this branch's base commit
started: every remaining scripts/*.mjs file that had no paired .d.mts
(so wasn't covered by the prior "convert every .mjs/.d.mts pair"
commit) is now real .ts, type-checked against its actual behavior
instead of running untyped. Covers the actionlint/build-selfhost/
check-migrations/compute-test-shards/rees-coverage/smoke-observability-
{metrics,traces}/smoke-ui-browser/check-{mcp,miner}-package/
check-mcp-release-candidate/check-orb-{release,stable-release}-due/
check-changelog families.

Every consumer updated to match: package.json scripts, GitHub
workflows (orb-beta-release, orb-stable-release-pr, publish-miner,
release-selfhost, selfhost, test-timing-refresh), the Dockerfile and
.dockerignore, deploy-selfhost-prebuilt.sh, and comment-only references
across src/queue/processors.ts, packages/loopover-engine's deny-hooks,
the selfhost stub files, and the self-hosting docs pages. A script
invoked directly as a subprocess (not a same-directory .ts import)
keeps plain `node --experimental-strip-types`; one that imports another
local .ts file (e.g. check-orb-release-due.ts importing
orb-release-core.ts) needs tsx instead, since only tsx -- not node's
native strip-types -- resolves a `.js`-suffixed specifier to a sibling
.ts transitively.

Real invocations verified for every converted script against this
repo's own state (migrations, git tags, the packed npm tarballs, a
live loopover.ai smoke check, actionlint/composite-action lint), not
just typecheck -- including reproducing rees-coverage.ts's one
pre-existing, already-tolerated (`|| true` in ci.yml) analyzer-metadata
ENOENT quirk against the original .mjs to confirm it predates this
conversion rather than being introduced by it.

# Conflicts:
#	scripts/check-changelog.ts
@JSONbored
JSONbored force-pushed the claude/scripts-remaining-mjs-cleanup branch from 461e065 to 284beb8 Compare July 21, 2026 14:19
@JSONbored
JSONbored merged commit 17ae3e6 into main Jul 21, 2026
18 checks passed
@JSONbored
JSONbored deleted the claude/scripts-remaining-mjs-cleanup branch July 21, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. manual-review Gittensor contributor context

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant