Skip to content

fix: revert to binary commands, add setup --force, add npm publish CI#77

Merged
George-iam merged 1 commit intomainfrom
fix/revert-npx-to-binary-20260408
Apr 8, 2026
Merged

fix: revert to binary commands, add setup --force, add npm publish CI#77
George-iam merged 1 commit intomainfrom
fix/revert-npx-to-binary-20260408

Conversation

@George-iam
Copy link
Copy Markdown
Contributor

Summary

  1. Revert npx → binary: .mcp.json, templates/mcp.json, hook commands all back to axme-code (binary). Plugin marketplace uses npm source type which installs via npm install putting binary in PATH — npx not needed.

  2. Setup --force: axme-code setup --force re-runs LLM scan. Without --force, already-initialized projects show "Already initialized (skipped LLM scan)" instead of misleading LLM output.

  3. 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

  • Build clean, lint clean, 413 tests pass
  • Binary flow: axme-code status ✓, axme-code hook pre-tool-use blocks git push --force
  • npm install -g flow: binary in PATH ✓, status ✓, hook blocks rm -rf /
  • No npx references in .mcp.json, templates, or cli.ts

After merge

🤖 Generated with Claude Code

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>
@George-iam George-iam merged commit e153ec3 into main Apr 8, 2026
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