llmcc-cli
v0.2.65
Published
llmcc brings multi-depth architecture graphs for code understanding and generation.
Maintainers
Readme
npm Package Distribution
This directory contains the npm package configuration for distributing llmcc via npm.
Installation
npm install -g llmccHow It Works
- On
npm install, the postinstall script downloads the pre-built binary for your platform from GitHub releases - The shell wrapper (
bin/llmcc) detects your OS/architecture and executes the correct binary
Package Structure
npm/
├── package.json # Main package configuration
├── bin/
│ ├── llmcc # Shell wrapper (Unix)
│ └── llmcc.cmd # Batch wrapper (Windows)
├── scripts/
│ └── postinstall.js # Downloads binary from GitHub releases
└── README.mdSupported Platforms
| Platform | Binary Name | |----------|-------------| | macOS ARM64 (Apple Silicon) | llmcc-darwin-arm64 | | macOS x64 (Intel) | llmcc-darwin-x64 | | Linux ARM64 | llmcc-linux-arm64 | | Linux x64 | llmcc-linux-x64 | | Windows x64 | llmcc-win32-x64.exe |
Publishing
Prerequisites
- Build binaries for all platforms (via GitHub Actions)
- Create a GitHub release with binaries attached
- npm token configured
Release Process
- Update version in
Cargo.tomlandnpm/package.json - Build binaries:
just npm-build - Create GitHub release
v0.2.51with binaries attached - Publish to npm:
cd npm npm publish
GitHub Actions (Automated)
The workflow at .github/workflows/npm-publish.yml will:
- Build binaries for all platforms
- Create GitHub release with binaries
- Publish to npm
Local Development
# Build for current platform
cargo build --release
# Copy binary to npm/bin for testing
cp target/release/llmcc npm/bin/llmcc-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m | sed 's/x86_64/x64/' | sed 's/aarch64/arm64/')
# Test locally
cd npm && npm link
llmcc --help