Skip to content

fix(engine): restore missing export brace and drop unresolvable node:util import - #2855

Merged
JSONbored merged 1 commit into
mainfrom
fix/gittensory-engine-export-splice
Jul 3, 2026
Merged

fix(engine): restore missing export brace and drop unresolvable node:util import#2855
JSONbored merged 1 commit into
mainfrom
fix/gittensory-engine-export-splice

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

  • `packages/gittensory-engine/src/index.ts`: PR feat(miner-discovery): goal model — translate MinerGoalSpec into ranker weights #2787's inserted export block landed between PR feat(miner): add governor event ledger schema and writer #2795's export block and its own body, eating the opening `export {` for the `contributor-fit.js` re-export. This is a hard TS1005/TS1109 syntax error that currently breaks `npm run typecheck` (and therefore `npm run test:ci`) on `main` for everyone.
  • `packages/gittensory-engine/src/governor-ledger.ts`: imports `isDeepStrictEqual` from `node:util`, but this package's `tsconfig.json` deliberately sets `types: []` (keeping Node ambient types out of its public `.d.ts` surface for downstream consumers), so the module's type declarations never resolve — `npm run build:miner` fails with TS2307. Replaced with a small local structural-equality check scoped to the JSON-safe values this one call site (`serializePayload`, already `v8 ignore`d) actually compares.

Scope

Validation

  • `npm run typecheck` (repo root) — clean
  • `npm run build:miner` (repo root) — clean
  • `npm test` inside `packages/gittensory-engine` — 70/70 passing (was failing to even build before this fix)

Safety

  • No secrets/wallets/hotkeys/trust-scores/reward values touched
  • No public API surface change (same exports, same names)

…util import

Two independently-merged PRs (#2787, #2795) landed a build-breaking
state on main: a spliced-in export block ate the opening brace of the
adjacent contributor-fit re-export (TS1005/TS1109), and governor-ledger.ts
imports node:util under this package's types:[] tsconfig, which never
resolves the module's type declarations. Both broke `tsc --noEmit` and
`build:miner` for every contributor. Replaced isDeepStrictEqual with a
small local structural-equality check scoped to the JSON-safe values this
one call site actually compares.
@cloudflare-workers-and-pages

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
gittensory-ui 857dcd8 Commit Preview URL

Branch Preview URL
Jul 03 2026, 11:29 PM

@JSONbored JSONbored self-assigned this Jul 3, 2026
@JSONbored
JSONbored merged commit e81dbb3 into main Jul 3, 2026
11 checks passed
@JSONbored
JSONbored deleted the fix/gittensory-engine-export-splice branch July 3, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant