Skip to content

Commit 4e002ae

Browse files
Dhravyaclaude
andauthored
ci: verify the bundled CLI command surface before publishing (#107)
`node bin/cli.mjs --version` passes on a bundle that has silently lost commands. That is exactly how `supermemory local` disappeared in 5.0.0-rc.1: the Speakeasy migration swapped the checked-in bin/cli for a bundle built from the monorepo, the launcher shim went with it, and the publish smoke test noticed nothing. Runs the surface check the CLI owns in mono, which diffs the built bundle's own `help --json` against a committed ledger of tracked commands. Against the published 5.0.0-rc.3 artifact it fails with the missing `local`. Requires supermemoryai/mono#3220. Claude-Session: https://claude.ai/code/session_01XfVCx97GJvfMGzv88pVvNU Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent e8ad71a commit 4e002ae

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ jobs:
8282
chmod +x bin/cli.mjs
8383
node bin/cli.mjs --version
8484
85+
- name: Verify CLI command surface
86+
if: steps.meta.outputs.publish == 'true'
87+
run: bun ../mono/apps/cli/scripts/verify-surface.ts "$(pwd)/bin/cli.mjs"
88+
8589
- name: Verify tarball contents
8690
if: steps.meta.outputs.publish == 'true'
8791
run: |

0 commit comments

Comments
 (0)