Skip to content

chore: rename CLI package to @leanspec/cli (Part of #254)#311

Merged
tikazyq merged 1 commit into
mainfrom
chore/scoped-cli-name
May 20, 2026
Merged

chore: rename CLI package to @leanspec/cli (Part of #254)#311
tikazyq merged 1 commit into
mainfrom
chore/scoped-cli-name

Conversation

@tikazyq
Copy link
Copy Markdown
Contributor

@tikazyq tikazyq commented May 20, 2026

Summary

Recover from the failed second publish attempt (run 26144025632). npm rejected the unscoped leanspec name with:

Package name too similar to existing package lean-spec; try renaming your package to '@crawlab/leanspec' and publishing with 'npm publish --access=public' instead

Use the scoped name @leanspec/cli, consistent with the existing @leanspec/{mcp,http-server,cli-{platform}} family on npm. The binary stays named leanspec (Rust [[bin]] name), so user-facing commands (leanspec board, leanspec init, MCP config) are unchanged. Only the install command changes:

# Before (not publishable)
npm install -g leanspec

# After
npm install -g @leanspec/cli

Updated:

  • packages/cli/package.json name
  • scripts/prepare-publish.ts workspace pkgMap
  • README.md Quick Start
  • packages/README.md catalog + per-package section + dev command

Not touching the verification scripts (scripts/verify-npm-publish.ts, scripts/verify-npm-packages.mjs) — they still reference the unscoped leanspec for warning checks, but they're non-fatal and pre-date the rename. Follow-up cleanup.

State of partial publish: @leanspec/{cli,mcp,http}-{platform}@0.3.0 are on npm. @leanspec/mcp@0.3.0 and @leanspec/http-server@0.3.0 are on npm. @leanspec/cli@0.3.0 needs this PR + a re-trigger of publish.yml. @leanspec/ui@0.3.0 probably also still pending.

Part of #254.

Test plan

  • After merge + workflow re-run: npm view @leanspec/cli version returns 0.3.0
  • npm install -g @leanspec/cli && leanspec --help works end-to-end

🤖 Generated with Claude Code

npm rejected `leanspec` with 403 in workflow run 26144025632:
> Package name too similar to existing package lean-spec

Fall back to the scoped name `@leanspec/cli`, which sits in the same
scope as `@leanspec/mcp`, `@leanspec/http-server`, and the already-
published `@leanspec/cli-{platform}@0.3.0` binary packages. The binary
itself stays named `leanspec` so post-install usage is unchanged
(`leanspec board`, `leanspec init`, etc.).

Update prepare-publish's workspace pkgMap, README quick-start install
command, and the packages/README catalog accordingly.

Part of #254 — unblocks the second publish attempt.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 20, 2026 07:20
@tikazyq tikazyq merged commit 783cf3f into main May 20, 2026
1 check passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR renames the npm CLI package from the unscoped leanspec to the scoped @leanspec/cli to enable publishing (while keeping the installed binary name leanspec unchanged). It updates publishing preparation logic and user-facing docs so installs and examples reference the new scoped package name.

Changes:

  • Rename packages/cli package name to @leanspec/cli.
  • Update scripts/prepare-publish.ts workspace package map to resolve @leanspec/cli.
  • Update root README and packages/README.md install/usage instructions to use @leanspec/cli.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
scripts/prepare-publish.ts Updates workspace package name mapping to resolve versions for @leanspec/cli.
README.md Updates Quick Start install/run commands to use @leanspec/cli.
packages/README.md Updates package catalog/usage instructions for the scoped CLI package name.
packages/cli/package.json Renames the published package to @leanspec/cli.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/README.md
### Development

```bash
cd rust && cargo build --release
Comment thread README.md

# Or try with a tutorial project
npx leanspec init --example dark-theme
npx -p @leanspec/cli leanspec init --example dark-theme
@tikazyq tikazyq deleted the chore/scoped-cli-name branch May 20, 2026 07:24
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.

2 participants