Repository navigation
Guide the CLI-missing skill failure to install.sh; wire its version pin into the release pipeline - #2160
Merged
Conversation
…version pin into the release pipeline
SKILL.md's `command not found: nodespace` failure-recovery row dead-ended
("Do not proceed") -- it now proposes the curl | sh --no-gui one-liner and
requires explicit user confirmation before running it, reusing the same
script the copy-paste one-liner and `brew install --cask nodespace` both
rely on rather than inventing a second install path. The same stale
`cargo install`/DMG-only guidance is updated in packages/skill's installer
warning and the desktop app's cli_warning() (shown when the GUI can't find
`nodespace` on $PATH), so all three surfaces tell an agent or user the same
thing for the same underlying problem.
skill_setup.rs gains a module-doc section documenting how the GUI's
first-launch skill installer and install.sh's skill-triggered CLI install
coexist: install.sh never touches SKILL.md or an agent's skill directory,
and the only shared state is ~/.nodespace/setup.json's skill_installed
flag, already guarded by this module's existing idempotency check.
Adds scripts/publish-install-script.ts, a sibling of
update-homebrew-cask.ts: after a release's build-headless job confirms the
headless CLI binaries actually uploaded, it pins nodespace-website's
install.sh to that release rather than leaving it hand-edited or floating
to "latest" (which can point at a release whose assets haven't finished
uploading yet, since release.yml's `release: created` trigger fires before
any build job starts). Wired into release.yml as sync-install-script, a
sibling of sync-homebrew-cask, gated on a WEBSITE_DEPLOY_TOKEN secret that
still needs to be provisioned (same situation HOMEBREW_TAP_TOKEN was in
before #2114).
Co-Authored-By: Claude <[email protected]>
…markdown, and script robustness - release.yml: sync-install-script no longer gates on build-headless's aggregate matrix result (a 5-leg fail-fast:false matrix where only 3 legs are actually required by publish-install-script.ts). An unrelated leg failing (e.g. windows-x86, which install.sh never downloads) was silently skipping the whole job with no signal. Now runs whenever build-headless finished at all and lets publish-install-script.ts's own checkReleaseAssets() -- which re-verifies the specific assets this job needs -- be the real gate, failing loudly and specifically if any are missing. - installer.ts / cli_warning() / SKILL.md: the three "CLI not on PATH" surfaces had drifted from each other (one still said `cargo install nodespace-cli`, the others didn't; the brew suggestions were a bare `brew install --cask nodespace`, which requires a tap step this repo's own Homebrew tap README documents as necessary -- the fully-qualified `nodespaceai/nodespace/nodespace` form used elsewhere auto-taps and needed to be used here too). All three now agree. - SKILL.md: the failure-recovery table cell embedded a raw `|` inside an inline code span, escaped for GFM table parsing (`\|`) -- but backslash escapes aren't processed inside code spans per CommonMark, so an agent reading the raw file (SKILL.md's actual consumption mode) would copy a literal backslash into the command, breaking the pipe. Restructured to the `sh -c "$(curl ...)" -- --no-gui` form, which needs no pipe character at all. Also added guidance for the case where the retried command still fails because the current shell hasn't picked up the updated $PATH. - publish-install-script.ts: pushInstallScriptUpdate now reads and patches install.sh from its own fresh `git clone` rather than reusing an earlier CDN-cached preview read, closing a window where a concurrent legitimate edit could be silently overwritten by a patch built from stale content. The version-pin regex gained a `g` flag so a second, stray pin line is *detected* (and refused) rather than left stale after only the first occurrence is patched. The two independent network calls in main() now run concurrently via Promise.all. Removed GitHub issue-number references from comments per this repo's documentation convention (describe the constraint directly). Co-Authored-By: Claude <[email protected]>
Contributor
Author
Update after adversarial review (10-angle pass)Fixed all real findings:
All tests re-verified green after the fixes ( |
Closed
16 tasks
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.
Summary
Part of #2146 (the nodespace-core third of a 3-repo change; the other two —
nodespace-website'sinstall.sh/_headers/_redirectsandhomebrew-nodespace's newnodespace-cliformula — are separate PRs against those repos, opened from a fork since this account has read-only access there).packages/skill/SKILL.md'scommand not found: nodespacefailure-recovery row no longer dead-ends ("Do not proceed"). It now proposescurl -fsSL https://nodespace.ai/install.sh | sh -s -- --no-gui, gated on explicit user confirmation, reusing the same script every other entry point uses rather than a second implementation.cargo install nodespace-cli" guidance is updated inpackages/skill/src/installer.ts's WARNING text andskill_setup.rs'scli_warning()(shown in the GUI whennodespaceisn't on$PATH) — all three surfaces now point at the same one-liner.skill_setup.rsgains a module-doc section documenting how the GUI's first-launch skill installer andinstall.sh's skill-triggered CLI install coexist:install.shnever touchesSKILL.md/agent skill directories, and the only shared state between the two is~/.nodespace/setup.json'sskill_installedflag, already guarded by this module's existing idempotency check.scripts/publish-install-script.ts(sibling ofscripts/update-homebrew-cask.ts): after a release's headless CLI binaries are confirmed uploaded, pinsnodespace-website'sinstall.shto that release rather than "latest" (which can point at a release whose assets haven't finished uploading —release.yml'srelease: createdtrigger fires before any build job starts). Wired in as a newsync-install-scriptjob inrelease.yml, gated on aWEBSITE_DEPLOY_TOKENsecret that still needs to be provisioned (same situationHOMEBREW_TAP_TOKENwas in before Homebrew tap is two months stale (v0.1.6 vs v0.2.0): cask is hand-maintained instead of generated on release #2114).Testing
bun run --cwd packages/desktop-app test— 222 files / 4743 tests passcargo test -p nodespace-app --lib skill_setup— 5/5 pass (2 new:cli_warning_mentions_install_script,cli_warning_is_none_when_cli_on_path)cargo clippy --all-targets --package nodespace-app -- -D warnings— cleancargo fmt --checkon the touched file — clean (pre-existing drift exists elsewhere inpackages/agent/, untouched by this PR, out of scope)bun test scripts/— 111/111 pass (8 new inpublish-install-script.test.ts, including a caught-and-fixed regex bug where\s*$was swallowing the pin line's trailing newline)bun run scripts/publish-install-script.ts 0.2.0(dry run against the real v0.2.0 release) — correctly verifies the release's headless CLI assets, then fails cleanly with an HTTP 404 fetchingnodespace-website'sinstall.sh(expected — that file doesn't exist onmainthere yet, pending the sibling PR)test-gate.ts): fulltest:all+cargo build --bin nodespaced+test:e2e— all greenAcceptance criteria (from #2146, this repo's slice)
SKILL.md'scommand not found: nodespacerow offers a guided install instead of dead-endingWEBSITE_DEPLOY_TOKENprovisioned to actually run end to end)🤖 Generated with Claude Code