Repository navigation
Staged CLI finds the skill installer through a recorded app bundle - #3867
Merged
Merged
Conversation
The app records the bundled nodespace path in ~/.nodespace/bin/.nodespace.bundle and the CLI, when its own directory has no installer, looks in that bundle (sidecar beside it, skill resources under Contents/Resources). Refs #3831 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mstomar125
force-pushed
the
issue-3831-staged-cli-installer
branch
from
October 22, 2026 04:59
98ad3c9 to
3ab3cf0
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.
Refs #3831
Finishes the remainder #3861 left: the copy of the CLI staged in
~/.nodespace/binnow finds the skill installer.Design
When the app stages the CLI it also records the path of the bundled
nodespaceit copied from, in~/.nodespace/bin/.nodespace.bundle. The CLI keeps its existing lookup (own directory, canonicalized directory, app-bundle resource layout) and, if that finds nothing, reads the marker beside it and runs the same lookup on the recorded bundle directory. The installer sidecar andskill/resources are used where they already are; nothing is copied.Why this over copying the sidecar and
skill/next to the staged CLI: nothing new is staged, signed, stamped or quarantine-cleared, so the daemon/launcher path (source stamp, restart decision from #3835/#3853/#3863) is not touched. The marker is written only when its content differs, never touches the staged binary or its stamp, and a failure to write it is logged and ignored, so it cannot restart an unchanged daemon or block start-up. The skill resources also always match the installed app instead of a second copy that could go stale.The not-found message now also lists the recorded bundle directories searched. A marker pointing at a moved or deleted app, or a relative path, is ignored and the existing error is shown.
Tests (each mutation-checked: removing the behavior makes it fail)
cargo test -p nodespace-cli --lib skill::(45 pass),cargo test -p nodespace-app-lib --lib daemon_setup::(104 pass), clippy-D warningsand fmt on both crates.Not done
.pkgor.appinstall (no app launch on the build machine); only synthetic directory layouts..pkginstall registers the daemon machine-wide and the app returns before staging, so no staged CLI is written there; unchanged and out of scope.🤖 Generated with Claude Code