fix: revert to binary commands, add setup --force, add npm publish CI#77
Merged
George-iam merged 1 commit intomainfrom Apr 8, 2026
Merged
fix: revert to binary commands, add setup --force, add npm publish CI#77George-iam merged 1 commit intomainfrom
George-iam merged 1 commit intomainfrom
Conversation
Revert npx-based commands back to binary "axme-code" for .mcp.json, templates/mcp.json, and hook commands in cli.ts. Plugin marketplace uses npm source type which installs binary globally — no npx needed. Changes: - .mcp.json, templates/mcp.json: "axme-code serve" (was npx) - src/cli.ts hooks: "axme-code hook ..." (was npx) - src/cli.ts setup: --force flag for re-scan, skip output when already initialized, fixed mcpEntry (was still hardcoded) - .github/workflows/npm-publish.yml: auto-publish to npm on GitHub release (build + lint + test + publish) Verified: binary flow (status, hooks), npm install -g flow (status, hooks), 413 tests pass. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Apr 8, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Revert npx → binary:
.mcp.json,templates/mcp.json, hook commands all back toaxme-code(binary). Plugin marketplace usesnpmsource type which installs vianpm installputting binary in PATH — npx not needed.Setup --force:
axme-code setup --forcere-runs LLM scan. Without --force, already-initialized projects show "Already initialized (skipped LLM scan)" instead of misleading LLM output.npm publish CI:
.github/workflows/npm-publish.yml— on GitHub release published → build + lint + test +npm publish. Syncs binary releases (GitHub) with npm releases automatically.Test plan
axme-code status✓,axme-code hook pre-tool-useblocksgit push --force✓rm -rf /✓After merge
NPM_TOKENsecret in GitHub repo settings (for CI npm publish)gh release create→ CI auto-publishes to npm🤖 Generated with Claude Code