Skip to content

fix: let the staged CLI find the skill installer in the Windows install layout - #4249

Merged
mstomar125 merged 1 commit into
mainfrom
issue-3929-skill-marker
Nov 5, 2026
Merged

mstomar125 merged 1 commit into
mainfrom
issue-3929-skill-marker

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Closes #3929

What I found (Windows layout)

Read-only inspection of the published v0.3.11 NodeSpace_0.3.11_x64_en-US.msi (file list only, nothing installed; no NodeSpace is installed on the test PC): everything sits flat in one install directory:
NodeSpace\nodespace-app.exe, nodespaced.exe, nodespace.exe, nodespace-skill-installer.exe and NodeSpace\resources\skill\SKILL.md (plus dist\, plugins\, references\). So the staged copy in ~/.nodespace/bin has neither the installer nor skill/ beside it, and the old reader would not have found resources\skill even from the install directory (it looked for skill\ only).

What changed

  • nodespace-types::app_bundle: new is_app_install_exe = the macOS .app/Contents/MacOS rule OR is_windows_install_exe (nodespace.exe in a directory that also holds nodespace-app.exe). The rule reads names and one sibling file, so it holds for \\?\ canonical paths and is testable on any platform.
  • The app records the marker for that layout on Windows (record_bundle_marker), and the CLI reader trusts it (recorded_bundle_exe); the debug/warn split uses the same rule.
  • resource_root_candidates also looks at <dir>\resources\skill, so the installer is found from the install directory too.
  • macOS behaviour unchanged.

Verification on the real Windows 11 PC

  • Harness crate compiling the real app_bundle.rs plus the real recorded_bundle_exe/exe_dirs/resource_root_candidates/installer_in_dir/compiled_installer_beside/searched_locations text and the new tests from this branch (host toolchain gnu): 8 passed, including a Windows-only test that canonicalize yields a \\?\C:\... path, that the rule accepts it, and that the marker round-trips to the installer and resources\skill. With the new rule disabled, 3 of the 8 fail.
  • cargo check -p nodespace-app-lib (gnu toolchain, this branch's daemon_setup.rs applied together with the other two Windows PRs) passed, and cargo test -p nodespace-types --lib app_bundle there: 4 passed.

Tests (Mac)

  • nodespace-types app_bundle: 4 passed; nodespace-cli commands::skill: 51 passed (new: Windows layout direct, staged copy via marker, untrusted nodespace.exe without the app beside it); nodespace-app-lib bundle_marker: 6 passed (new: Windows install directory is recorded, a lone nodespace.exe is not).
  • Mutation checks: Windows rule off fails 1 + 1 tests; resources/skill candidate removed fails 2; reader macOS-only fails 1.
  • cargo fmt --check, cargo clippy -p nodespace-types -p nodespace-cli -p nodespace-app-lib --all-targets -D warnings clean.

What only a full Windows app run could prove

That the app, installed from the MSI/NSIS package, writes the marker at startup and nodespace skill ... from ~\.nodespace\bin then succeeds end to end; the app and installer sidecars could not be built or installed on the PC. The layout facts come from the published MSI file list. The NSIS -setup.exe was not inspected (same bundler, same layout expected).

🤖 Generated with Claude Code

…ll layout

The Windows installer places nodespace.exe, nodespace-skill-installer.exe
and resources/skill beside nodespace-app.exe. Trust a recorded bundle path
that is nodespace.exe next to the app executable (is_app_install_exe, in
addition to the macOS .app/Contents/MacOS layout), record it on Windows the
same way as on macOS, and search resources/skill beside a sidecar so the
installer is found from the install directory and from the staged copy in
~/.nodespace/bin.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@mstomar125
mstomar125 force-pushed the issue-3929-skill-marker branch from 336c6d1 to 456b460 Compare November 5, 2026 10:55
@mstomar125
mstomar125 merged commit 2c9b624 into main Nov 5, 2026
@mstomar125
mstomar125 deleted the issue-3929-skill-marker branch November 5, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nodespace skill from the staged CLI may not find the installer on Windows (bundle marker is macOS-only)

1 participant