From 5f520efbbbe94316985f285fb1d0867b2da267b9 Mon Sep 17 00:00:00 2001 From: LingSiewWin Date: Thu, 11 Jun 2026 18:00:43 +0800 Subject: [PATCH] Bump marketplace to 0.1.3 + make dist guard deterministic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - marketplace.json advertised 0.1.2 in both metadata.version and plugins[0].version, so existing installs saw no update available even though main ships plugin 0.1.3. Bumped both. - dist-check: pin bun 1.3.3 and exclude content-hashed dist/connect web assets from the staleness diff — the guard failed every run since 2026-06-09 on a connect-bundle filename rename, which is alarm fatigue, not staleness. It now guards exactly the five runtime bundles. --- .claude-plugin/marketplace.json | 4 ++-- .github/workflows/dist-check.yml | 14 +++++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 470c59f..1021bd3 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -6,14 +6,14 @@ }, "metadata": { "description": "Sovereign, decay-aware memory for AI coding agents on Arkiv. Your sessions become a memory your agent owns.", - "version": "0.1.2" + "version": "0.1.3" }, "plugins": [ { "name": "cortex-memory", "source": "./cortex-plugin", "description": "Every Claude Code session becomes a memory node: auto-captured before the context compacts and written to Arkiv (wallet-encrypted), recalled at session start so you never re-explain your project. Adds the cortex_recall / cortex_act / cortex_store_document / cortex_summarize_session MCP tools and a recall→cite→store working-agreement skill.", - "version": "0.1.2", + "version": "0.1.3", "keywords": ["memory", "arkiv", "recall", "sovereign", "agent-memory"] } ] diff --git a/.github/workflows/dist-check.yml b/.github/workflows/dist-check.yml index ce5e98c..f4ac18d 100644 --- a/.github/workflows/dist-check.yml +++ b/.github/workflows/dist-check.yml @@ -24,14 +24,22 @@ jobs: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v2 with: - bun-version: latest + # Pinned: a different bun minifier emits different content-hashed + # filenames for the dist/connect web assets, which made every run red + # (false "stale" on a file-rename diff) — alarm fatigue that would mask + # a real stale-dist regression. Keep in sync with local bun. + bun-version: "1.3.3" - run: bun install --frozen-lockfile - name: Rebuild plugin bundles run: bun run build:plugin - name: Fail if committed dist is stale run: | - if ! git diff --exit-code -- cortex-plugin/dist; then + # Guard the five RUNTIME bundles (hooks, drain, auth, mcp) — the code + # marketplace installs actually execute. dist/connect/* are content- + # hashed browser assets whose filenames vary across bun builds; a + # rename there is not staleness, so exclude them from the diff. + if ! git diff --exit-code -- cortex-plugin/dist ':(exclude)cortex-plugin/dist/connect'; then echo "::error::cortex-plugin/dist is out of date with src. Run 'bun run build:plugin' and commit the result." exit 1 fi - echo "✓ cortex-plugin/dist matches a fresh build from src." + echo "✓ cortex-plugin/dist runtime bundles match a fresh build from src."