From 983951294c6a746ba70f395d48d9b2cf28662e32 Mon Sep 17 00:00:00 2001 From: Jarvis Date: Sun, 5 Apr 2026 09:22:46 -0500 Subject: [PATCH] fix: bump stale sub-package versions (brain/forge/log) to republish M5 exports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same systemic bug as the macp fix in the previous commit. After M5 added `registerBrainCommand`, `registerForgeCommand`, `registerLogCommand` to packages/brain, packages/forge, packages/log, the publish workflow silently skipped republishing those packages because their versions stayed at 0.0.2 (already on the registry). Result: @mosaicstack/mosaic imports `registerBrainCommand` (etc.) from @mosaicstack/brain, but the registry copy of brain@0.0.2 predates M5 and does not contain that export, causing: SyntaxError: Named export 'registerBrainCommand' not found. The requested module '@mosaicstack/brain' is a CommonJS module... Fix: - @mosaicstack/brain 0.0.2 → 0.0.3 - @mosaicstack/forge 0.0.2 → 0.0.3 - @mosaicstack/log 0.0.2 → 0.0.3 - @mosaicstack/mosaic 0.0.22 → 0.0.23 (deps changed) @mosaicstack/auth was NOT bumped — mosaic CLI defines `registerAuthCommand` locally in packages/mosaic/src/commands/auth.ts rather than importing from @mosaicstack/auth, so the stale auth@0.0.2 on the registry is not in the critical path. memory, queue, storage, macp were already bumped in their respective M5 PRs and are not affected. After merge: - Delete old dist-tag entries for brain/forge/log@0.0.2 from Gitea npm registry so fresh installs resolve to 0.0.3. - No new git tag needed — 0.0.23 subsumes 0.0.22. Co-Authored-By: Claude Opus 4.6 --- packages/brain/package.json | 2 +- packages/forge/package.json | 2 +- packages/log/package.json | 2 +- packages/mosaic/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/brain/package.json b/packages/brain/package.json index 4005827..26e867a 100644 --- a/packages/brain/package.json +++ b/packages/brain/package.json @@ -1,6 +1,6 @@ { "name": "@mosaicstack/brain", - "version": "0.0.2", + "version": "0.0.3", "repository": { "type": "git", "url": "https://git.mosaicstack.dev/mosaicstack/mosaic-stack.git", diff --git a/packages/forge/package.json b/packages/forge/package.json index ee64970..b3a591a 100644 --- a/packages/forge/package.json +++ b/packages/forge/package.json @@ -1,6 +1,6 @@ { "name": "@mosaicstack/forge", - "version": "0.0.2", + "version": "0.0.3", "repository": { "type": "git", "url": "https://git.mosaicstack.dev/mosaicstack/mosaic-stack.git", diff --git a/packages/log/package.json b/packages/log/package.json index 0601f48..2a19483 100644 --- a/packages/log/package.json +++ b/packages/log/package.json @@ -1,6 +1,6 @@ { "name": "@mosaicstack/log", - "version": "0.0.2", + "version": "0.0.3", "repository": { "type": "git", "url": "https://git.mosaicstack.dev/mosaicstack/mosaic-stack.git", diff --git a/packages/mosaic/package.json b/packages/mosaic/package.json index 9d3b7f9..6da86f2 100644 --- a/packages/mosaic/package.json +++ b/packages/mosaic/package.json @@ -1,6 +1,6 @@ { "name": "@mosaicstack/mosaic", - "version": "0.0.22", + "version": "0.0.23", "repository": { "type": "git", "url": "https://git.mosaicstack.dev/mosaicstack/mosaic-stack.git", -- 2.49.1