Skip to content

chore(release): @claude-flow/swarm 3.0.0-alpha.9 (ESM-importable build, alpha.8 export parity, files allowlist) - #3452

Merged
ruvnet merged 1 commit into
mainfrom
release/swarm-alpha.9
Sep 26, 2026
Merged

ruvnet merged 1 commit into
mainfrom
release/swarm-alpha.9

Conversation

@ruvnet

@ruvnet ruvnet commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Summary

Prepares @claude-flow/swarm@3.0.0-alpha.9, which ships the swarm fixes merged since alpha.8: #3357 (hierarchical/centralized/hybrid leader edges), #3378 (event-driven UnifiedSwarmCoordinator wait, landed via #3443), #3123, #3086, #3243 and #3062. @claude-flow/cli does not depend on @claude-flow/swarm, so these fixes reach users only through a standalone publish. No CLI re-release is needed. 3.46.0 is already live.

Problems found while preparing the tarball

  1. main's swarm build was not ESM-importable. coordination/{agent-registry,task-orchestrator,swarm-hub}.ts used extensionless relative imports. A plain tsc build of main throws ERR_MODULE_NOT_FOUND on import('@claude-flow/swarm'). This PR adds the .js suffixes.
  2. Export parity with alpha.8. alpha.8 (published 2026-05-17) has gitHead main@f8ab5a325, but its tarball contains uncommitted work that was later committed as dacbe0e on feat/hive-mind-federation-transport and never merged. That work re-exported the ADR-095 G2.2 transport API from the root entry (LocalTransport, LocalTransportRegistry, defaultLocalRegistry, FederationTransport, generateNodeKeyPair, signMessage, verifyMessage, canonicalizeForSigning, messageDigest, plus types). All of these already exist in main's consensus/index.ts. This PR restores the root re-export, so alpha.9's runtime export set is identical to alpha.8's.
  3. Tarball hygiene. alpha.8 shipped src/, __tests__/, tmp.json, tsconfig.tsbuildinfo, a 1.5 MB ruvector.db, and .claude-flow/ runtime state (smoke-test hive state, plus edit logs containing a contributor's local paths). None of it contained credentials. This PR adds files: [dist, README.md, MIGRATION.md], which takes the tarball from 209 files / 3.4 MB to 135 files / 1.1 MB.
  4. The repo version was stuck at alpha.7 while npm had alpha.8. It is now alpha.9, and the v3 lockfile workspace entry is updated to match.

Verification (local)

  • Clean build (rm -rf dist *.tsbuildinfo && tsc; note that incremental + composite in the base config means a stale tsbuildinfo emits a partial dist).
  • vitest run: 13 files, 237 tests pass.
  • node plugins/ruflo-core/scripts/test-consensus-transport.mjs: all ADR-095 G2 checks pass.
  • Installed the packed tarball in an empty ESM project. The root import works, createUnifiedSwarmCoordinator init/shutdown works, generateNodeKeyPair works, subpath imports resolve, and the export names diff against alpha.8 is empty.

Publish plan: after merge, publish from the merge commit with dist-tags latest/alpha/v3alpha, matching alpha.8.

🤖 Generated with claude-flow

Ships the swarm fixes merged since alpha.8 (#3357 hierarchical leader
edges, #3378 event-driven UnifiedSwarmCoordinator wait, #3123, #3086,
#3243, #3062). The CLI does not depend on @claude-flow/swarm, so they
reach users only through this standalone publish.

Publishability fixes found while preparing the tarball:
- coordination/{agent-registry,task-orchestrator,swarm-hub}.ts used
  extensionless relative imports, so a plain `tsc` build of main
  throws ERR_MODULE_NOT_FOUND on `import('@claude-flow/swarm')`.
  Add the `.js` suffixes (the package is "type": "module").
- Restore the ADR-095 G2.2 transport re-exports on the root entry.
  alpha.8 was published from main@f8ab5a325 plus uncommitted work
  (later dacbe0e, never merged) that exported LocalTransport,
  FederationTransport, signMessage, etc. from the root. Without this,
  alpha.9 would silently drop 9 runtime exports alpha.8 users have.
- Add a `files` allowlist (dist, README.md, MIGRATION.md). alpha.8
  shipped src/, __tests__/, tmp.json, tsconfig.tsbuildinfo, a 1.5 MB
  ruvector.db and .claude-flow/ runtime state from a contributor's
  machine.
- Record the repo version as alpha.9 (repo was stuck at alpha.7 while
  npm had alpha.8).

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet
ruvnet merged commit 4f66bd9 into main Sep 26, 2026
110 checks passed
ruvnet added a commit that referenced this pull request Sep 27, 2026
…-run-gap notes

Records the 2026-09-26 batch merge clearing #3330/#3350/#3352/#3357/#3385/#3395
(GitHub-verified via pull_request_read), #3378's landing via batch PR #3443 +
npm publish #3452, and a new confirmed no-run gap on 2026-09-23/25/26. Appends
tonight's row (#3475/#3476, ACCEPT-scoped).

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_017NSCBLZggg81jUaa8RvZV7
ruvnet added a commit that referenced this pull request Oct 9, 2026
…-run-gap notes

Records the 2026-09-26 batch merge clearing #3330/#3350/#3352/#3357/#3385/#3395
(GitHub-verified via pull_request_read), #3378's landing via batch PR #3443 +
npm publish #3452, and a new confirmed no-run gap on 2026-09-23/25/26. Appends
tonight's row (#3475/#3476, ACCEPT-scoped).

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_017NSCBLZggg81jUaa8RvZV7
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