fix: init.sh fallback for Hermes consumers + skills:install alias#25
Merged
fix: init.sh fallback for Hermes consumers + skills:install alias#25
Conversation
…nstall - Plugin falls back to node_modules/strray-ai/.opencode/init.sh when postinstall skips .opencode/ copy (Hermes consumers) - Reorder cloneRepo: try gh repo clone FIRST when authenticated, then tarball fallback, then git clone. Previously gh was buried after tarball and never fired (tarball always succeeds for public repos) - Applied to both src/ and .opencode/plugin/ (the shipped artifact) Tested: npm pack → clean install → gh fires first, init.sh fallback works
976ec1b to
01b4ab3
Compare
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.
Problem
init.sh not showing version banner: postinstall skips
.opencode/copy entirely when~/.hermesis detected. The OpenCode plugin then silently skips init.sh because it only checks the project-local path.skills:installnot recognized: onlyskill:install(singular) was registered. Users naturally type the plural.Fix
node_modules/strray-ai/.opencode/init.shwhen the project-local copy doesn't exist..alias('skills:install')to the commander registration.Tested
Packed the branch as
.tgz, installed in clean/tmp/strray-pr-test/:npx strray-ai skills:install --help→ works (shows both names)npx strray-ai skill:install <github-url>→ gh repo clone fires, installs 31 skillsnpx strray-ai health/validate/version→ all pass