helium-rapid-prune
v0.1.1774453174
Published
CLI to iteratively prune unused Helium Rapid DSL functions, units, and lang entries using language-server diagnostics.
Maintainers
Readme
helium-rapid-prune
CLI that iteratively removes unused Helium Rapid DSL functions, single-unit .mez files, and .lang entries, driven by the same unused diagnostics as the Helium language server.
Maintainer npm user: ajgreyling (unscoped package).
Install
npm install -g helium-rapid-pruneUsage
With npx (no global install):
npx helium-rapid-prune /path/to/repo
npx helium-rapid-prune /path/to/repo --max-passes=25With a project root (non-interactive):
helium-rapid-prune /path/to/repo
helium-rapid-prune /path/to/repo --max-passes=25Without arguments (prompts for project root and max passes):
helium-rapid-pruneDefault max passes is 5 when --max-passes is not provided.
Environment:
PROJECT_ROOT— used as the project root when no positional argument is given (still runs non-interactively for the other options unless you only set this and want prompts; if both env and no argv positionals, env wins before prompts).
Behaviour
- Uses the path you pass (or enter at the prompt) as the Helium Rapid DSL project root — it does not append
dslor any other segment.
Publishing (maintainers)
From this directory:
chmod +x publish.sh
./publish.shThis builds helium-dsl-language-server, bundles it via bundleDependencies, bumps the version with an epoch build number, publishes to npm, then restores package.json version.
npm publish also runs prepack, which re-bundles the language server before pack.
Related tooling
- Language server (bundled by this CLI)
- MCP server
- Extension
- Build pipeline
- Repository overview
License
MIT
