Skip to content

nodespace skill: installer-not-found error prints the CI build path, and the installer is not found from an app bundle or symlink #3831

Closed

Description

@mstomar125

What happens

nodespace skill status|install|remove fails on an installed CLI with:

Skill installer not found. Expected a compiled nodespace-skill-installer sidecar beside this binary, or a built /Users/runner/work/nodespace-core/.../packages/cli/../skill/dist/install.js (run bun run build:skill from a source checkout).

The second path comes from env!("CARGO_MANIFEST_DIR") baked in at build time (resolve_script_installer in packages/cli/src/commands/skill.rs), so a user sees the CI runner's path and a source-checkout instruction that does not apply to them.

Related lookup gaps in the same code (compiled_installer_beside, fed by current_exe()):

  • It looks only in the executable's own directory for nodespace-skill-installer and skill/SKILL.md. current_exe() is not canonicalized, so a symlinked CLI (link/nodespace -> ../real/nodespace) looks in link/, not where the real binary lives.
  • In the macOS app bundle the sidecar is in Contents/MacOS/ but the skill resources are in Contents/Resources/resources/skill, never in Contents/MacOS/skill. So NodeSpace.app/Contents/MacOS/nodespace skill status fails, as does the copy staged in ~/.nodespace/bin/nodespace (it has neither the sidecar nor skill/ beside it).

Expected

  • The error names the directories actually searched on this machine and says what to do (reinstall NodeSpace, or run the app once to set the skill up). It never prints a build-time path. The source-checkout hint is shown only in a debug build or when that path exists.
  • The CLI also finds the installer when run from inside an app bundle (<...>.app/Contents/MacOS -> ../Resources/resources/skill) and via a symlink (also try the canonicalized exe directory), keeping the current sibling lookup first.

Acceptance criteria

  • The not-found message lists the searched directories and contains no CARGO_MANIFEST_DIR path in a release build.
  • compiled_installer_beside / its caller also accepts the app-bundle resource layout and the canonicalized exe directory.
  • Tests for the message and for the bundle and symlink layouts.
  • Optional: make the ~/.nodespace/bin staging copy find the installer too (copy the sidecar and skill/ beside it, or use the bundle lookup).

Why it matters

A user of the macOS pkg, the app bundle or a symlinked CLI cannot install or check the skill from the terminal, and the message points at a machine they never had.

Where

packages/cli/src/commands/skill.rs: compiled_installer_beside, resolve_script_installer.

Activity

  1. self-assigned this
    on Oct 16, 2026
  2. added
    bug
    on Oct 16, 2026
  3. mstomar125 commented on Oct 20, 2026

    @mstomar125
    ContributorAuthor

    Planned for core v0.3.9.

  4. mstomar125 commented on Oct 22, 2026

    @mstomar125
    ContributorAuthor

    Remaining criterion done in #3867 (merged): the staged CLI in ~/.nodespace/bin finds the installer through a .nodespace.bundle marker the app writes; the error lists the recorded bundle directory too. Not verified on a real install (needs the physical Mac); on a .pkg install no staged copy is written, unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions