Skip to content

docs: refresh CLAUDE.md CLI coverage and fix stale release runbook - #3

Merged
masterleopold merged 3 commits into
mainfrom
docs/cli-templates-and-release-runbook
Jul 26, 2026
Merged

docs: refresh CLAUDE.md CLI coverage and fix stale release runbook#3
masterleopold merged 3 commits into
mainfrom
docs/cli-templates-and-release-runbook

Conversation

@masterleopold

@masterleopold masterleopold commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Documentation-only accuracy pass. No source or config changes.

CLAUDE.md

meter oauth-proxy and the Cloudflare template trees landed in 0.4.0/0.4.1 but were never described. Adds them, notes that npm run typecheck also compiles examples/ and the CLI templates, and records what verify-sdk-release.mjs actually pins.

The template internals then move to docs/CLI_TEMPLATES.md, keeping the always-loaded file focused. One fact stays inline because it needs to be known before opening anything: nothing under templates/cloudflare-oauth/ is compiled or executed by npm run verify — it sits outside typecheck:templates (deliberately: it needs @cloudflare/workers-oauth-provider, @cloudflare/workers-types, and vitest, and uses bundler-style extensionless imports), and its proxy.test.ts does not run here either. Verified with tsc --listFiles: zero cloudflare-oauth files reach the template typecheck.

docs/SDK_RELEASE.md

The runbook had drifted in three ways that would each mislead someone following it:

  • Wrong repository slug. It named masterleopold/meter-sdk; the remote and the repository.url that scripts/verify-sdk-release.mjs asserts are both VoxTechnologies/meter-sdk. The npm trust --repo commands as written would have bound trusted publishing to the wrong repository.
  • Missing the fourth package. @meter-mcp/cli was absent from the package list, bootstrap publishes, trust registrations, publish order, and the "all three packages" verification step, even though sdk-publish.yml publishes it.
  • Wrong npm scope. Written as @meter; the packages are @meter-mcp/*.

Also replaces guarantees the publish workflow does not make ("dirty generated output, malformed tarballs") with what it enforces, and records the public-repo preflight and the skip-if-already-published re-run safety.

🤖 Generated with Claude Code


View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled.

masterleopold and others added 3 commits July 27, 2026 06:54
CLAUDE.md had not caught up with `meter oauth-proxy` or the three
scaffolding template trees, and it described `verify` more narrowly than
it runs. Add the missing surface, then move the template internals to
docs/CLI_TEMPLATES.md so the always-loaded file keeps only what most
sessions need.

The one template fact that stays inline is the trap: nothing under
templates/cloudflare-oauth/ is compiled or executed by `npm run verify`,
because it sits outside typecheck:templates and needs dependencies this
repo does not install. Its proxy.test.ts never runs here either.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…book

The runbook named `masterleopold/meter-sdk`, but the remote and the
`repository.url` that verify-sdk-release.mjs asserts are both
`VoxTechnologies/meter-sdk`. Running the `npm trust --repo` commands as
written would have bound trusted publishing to the wrong repository.

It also predated @meter-mcp/cli: the package list, bootstrap publishes,
trust registrations, publish order, and the "all three packages" check
all omitted it, and the scope was written as `@meter` rather than
`@meter-mcp`.

Describe what the publish workflow actually enforces (version parity,
exact `sdk-v<version>` tag, publishConfig/repository, then the full
verify gate) in place of guarantees it does not make, and record the
public-repo preflight and the skip-if-already-published re-run safety.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The npm audit --audit-level=low gate in npm run verify (audit:release)
started failing on three advisories in the dev-only
@modelcontextprotocol/sdk@1.29.0 tree:
- GHSA-frvp-7c67-39w9 (moderate) in @hono/node-server <2.0.5
- GHSA-v2hh-gcrm-f6hx (high) in fast-uri 3.0.0 - 3.1.3 (via ajv)

1.29.0 is the latest sdk and still pins the vulnerable ranges, so a
bump can't fix it. Pin the transitive deps to patched versions via
overrides (matching the existing esbuild override). These packages are
only used to typecheck the CLI templates and ship in no published
package; verify passes end-to-end including typecheck:templates.

Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
@masterleopold
masterleopold merged commit 0b59de7 into main Jul 26, 2026
5 checks passed
@masterleopold
masterleopold deleted the docs/cli-templates-and-release-runbook branch July 26, 2026 22:02
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