Repository navigation
feat(install): install and upgrade from GitHub Releases without npm - #327
Merged
Merged
Conversation
- Bundles ship a codegraph-vba launcher next to codegraph, and install.sh links both, so agent MCP configs and Dysflow resolve it without npm. - codegraph-vba install runs the GitHub installer script instead of npm. - The release workflow publishes to npm only when NPM_TOKEN is set, and an npm failure no longer fails the release. - README and CLI hints lead with the GitHub installer. Closes #326
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.
Closes #326
What changes
scripts/build-bundle.shaddsbin/codegraph-vba(POSIX) andbin/codegraph-vba.cmd(Windows) next tocodegraph.install.shlinks both and--uninstallremoves both.install.ps1needs no change because it puts the wholebindir on PATH. Agent MCP configs and Dysflow launchcodegraph-vba, which until now only the npm package provided.codegraph-vba install: installs the CLI with the GitHub installer (install.ps1/install.sh) instead ofnpm install -g. On failure it prints the exact command to run by hand.NPM_TOKENis set, andcontinue-on-errorkeeps an npm failure from failing a release whose GitHub Release already shipped.cliInstallCommand, a single source for the command).Not changed
pack-npm.sh, shim, SDK entry). It still publishes while the token works.codegraph-vba upgradefor bundle installs, which already used GitHub Releases only.Verification
npm run buildpasses.upgrade.test.ts,installer-targets.test.tsandexternal-integration-doc.test.tspass.bundle-launchers.test.ts/install-sh-prune.test.tsare POSIX-only and run in CI. I also ran the same marker blocks by hand in Git Bash: both launchers are created,codegraph-vba.cmdmatchescodegraph.cmdbyte for byte, both links are created, and an older bundle leaves no dangling link.release.ymlparses as YAML. The no-token path will only be exercised by a real release.codegraph-vba.cmduntil the next release.🤖 Generated with Claude Code