Skip to content

chore(0.31.1): republish — fix stale dist on v0.31.0 npm artifact#68

Merged
tangletools merged 2 commits into
mainfrom
chore/0.31.1-republish
May 20, 2026
Merged

chore(0.31.1): republish — fix stale dist on v0.31.0 npm artifact#68
tangletools merged 2 commits into
mainfrom
chore/0.31.1-republish

Conversation

@tangletools
Copy link
Copy Markdown
Contributor

The v0.31.0 tag's published tarball shipped a stale dist/ predating the source merge for JudgeScoresRecord:

  • dist/index.d.ts missing the type re-export → consumer pnpm install @tangle-network/agent-eval@0.31.0 typecheck-fails on RunOutcome.judgeScores
  • dist/index.js missing the recordOutcome.judgeScores = outcome.judgeScores propagation line → silent drop on the wire even when consumers worked around the type

Cause: a build artifact picked up by the publish workflow predated the source merge for #66, even though the tagged commit 51f6e74 has the right source. Reproducing the workflow locally (git clone, git checkout v0.31.0, pnpm install --frozen-lockfile, pnpm build) produces a correct dist/index.d.ts. The published artifact does not match. Likely a stale cached dist/ was bundled by the publish step.

No source change beyond the version bump. The retag forces a clean rebuild + republish.

Verified post-build

  • dist/index.d.ts contains JudgeScoresRecord
  • dist/index.js carries recordOutcome.judgeScores = … end-to-end propagation ✓
  • pnpm typecheck && pnpm test clean (1220/1220) ✓
  • Version bump in lockstep (package.json + pyproject.toml + Python __init__.py) ✓

After merge: tag v0.31.1 to trigger the publish workflow, then bump @tangle-network/agent-eval ^0.31.0 → ^0.31.1 in any consumer that relies on JudgeScoresRecord (agent-builder is the only known consumer today; will land as a follow-up bump after publish completes).

drewstone added 2 commits May 20, 2026 09:05
Pin ws to ^8.20.1 via pnpm override to close GHSA-58qx-3vcg-4xpx
(CVE-2026-45736, "Uninitialized memory disclosure", medium severity).

ws is a transitive dependency pulled by viem (peer of
@tangle-network/tcloud and @tangle-network/sandbox). Direct deps do not
expose ws, so the fix is applied via pnpm.overrides rather than a
direct-dep bump.

Versions:
- ws: 8.18.3 -> 8.20.1 (vulnerable range was >=8.0.0 <8.20.1)

Verification: typecheck + 1220 tests + build all green.
The v0.31.0 tag's published tarball shipped a dist/ predating the
source merge for JudgeScoresRecord. dist/index.d.ts was missing the
type re-export and dist/index.js was missing the
`recordOutcome.judgeScores = outcome.judgeScores` propagation line in
the campaign runner — even though the tagged commit had both.

Consumers that bumped to ^0.31.0 got a typecheck failure on
RunOutcome.judgeScores and a silent drop on the wire.

No source change beyond the version bump. The retag forces a clean
pnpm build and republish. Post-republish verification:
  - dist/index.d.ts contains JudgeScoresRecord
  - dist/index.js carries the recordOutcome.judgeScores assignment
  - pnpm typecheck + pnpm test clean (1220/1220)
@tangletools tangletools merged commit f7a567f into main May 20, 2026
1 check passed
@tangletools tangletools deleted the chore/0.31.1-republish branch May 20, 2026 15:17
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.

2 participants