Skip to content

Ship the locked skills installer instead of executing npx - #30185

Merged
nwparker merged 4 commits into
mainfrom
nwparker/deps-locked-skill-installer
Oct 18, 2026
Merged

nwparker merged 4 commits into
mainfrom
nwparker/deps-locked-skill-installer

Conversation

@nwparker

@nwparker nwparker commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​498 $\color{#cf222e}{\Huge{\mathbf{−}}}$​246 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​252
Prod 18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​511 $\color{#cf222e}{\Huge{\mathbf{−}}}$​172 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​339

ELI5

Installing Orca’s agent skills currently downloads and runs an npm program outside Orca’s lockfile. This change ships the reviewed installer with Orca, so an install or update runs the same locked code on every machine.

What Changed

  • Lock [email protected] and bundle its published CLI and dependencies into desktop and SSH builds. The build rejects missing dependencies and includes the actual bundled packages’ license notices.
  • Run that artifact with Orca’s runtime for managed updates and orca skills install/update. Settings and onboarding now produce guarded orca skills install commands, preserving the target picker and the source commit for the running build.
  • Keep installation on the intended host: Windows WSL commands reenter the shipped CLI inside the selected distro, including UNC workspaces. JSON output excludes login banners. Installer children receive agent locations, proxies, and certificate settings without application API keys, package tokens, or Node loaders.
  • Missing artifacts fail with a build/update instruction. Generated commands reject older Orca CLIs rather than falling back to an npm download.

Why

An exact top-level npx version still resolves and executes dependencies outside the app’s lockfile. Bundling the published package keeps upstream’s existing agent placement and interactive behavior while making executable bytes part of the reviewed build. Orca adds no pnpm overrides and keeps cancellation and post-update verification intact.

The upstream boundary in docs/agent-skill-sharing-implementation-checklist.md applies to Orca’s first-party shared-skill implementation. This change wraps the existing community installation rails with a normal locked npm build dependency; it copies or mechanically translates no upstream installer source, tests, fixtures, registry entries, or path tables into tracked code. First-party shared-skill transactions are unchanged.

Linked Issue

Internal supply-chain follow-up; no separate issue.

Visual Proof

N/A — command generation, execution, and packaging change; no rendered layout or styling changes. The existing setup components’ command behavior is covered by automated tests.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

On macOS, with ORCA_BACKGROUND_LAUNCH=1:

  • 227 focused tests across 14 suites passed, covering CLI selection and exit behavior, managed cancellation/outcomes, custom agent roots and environment filtering, WSL contracts, setup command generation, artifact inventory, and packaging.
  • A real relocated installer installed and replaced a selected local skill in a temporary HOME, without a registry executable download or access to the checkout’s node_modules. A separately bundled SSH CLI resolved the deployed installer and passed a real dry-run.
  • pnpm tc:cli, pnpm tc:node, pnpm tc:web, changed-code quality, and staged-file lint passed.
  • Built CLI output and pnpm run build:electron-vite passed. pnpm run verify:built-skills-cli verified 1,049 runtime files and six real commands, including installer version and CLI dry-runs.

Windows/WSL and live SSH hosts were not available locally; their forwarding behavior is covered by contract tests and the standalone packaging test. Old remote Orca CLIs must be updated before using the new guarded copied commands. A guest using its own Node needs 22.20.0 or later and gets an explicit version error otherwise.

Review

Self-reviewed build output, runtime dependency closure, source commit validation, explicit agent targets, local/global scope, secret filtering, and missing-artifact failures. The existing isolated upstream compatibility probe intentionally still downloads an upstream baseline in tests; product installation paths do not.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

The published installer retains its existing installation and overwrite behavior. This does not add transaction or rollback guarantees to the community installation rails. Its optional interactive offer to install the community find-skills skill also remains upstream behavior.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 85dad526-152d-4260-ac6e-8c10d9c55881
📥 Commits

Reviewing files that changed from the base of the PR and between ed40719 and a412f91.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 30
  • config/process-host-direct-import-baseline.txt
  • config/scripts/build-orcad.mjs
  • config/scripts/build-skills-installer.mjs
  • config/scripts/build-skills-installer.test.mjs
  • config/scripts/electron-builder-runtime-resources.test.mjs
  • config/scripts/verify-skills-cli-runtime.cjs
  • config/scripts/verify-skills-cli-runtime.test.mjs
  • package.json
  • src/cli/handlers/skills-wsl-forward.test.ts
  • src/cli/handlers/skills-wsl-forward.ts
  • src/cli/handlers/skills.ts
  • src/cli/root-help-text-primary.ts
  • src/cli/skills.test.ts
  • src/cli/specs/skills.ts
  • src/main/ipc/skills.ts
  • src/main/skills/skill-update-run.test.ts
  • src/main/skills/skill-update-run.ts
  • src/renderer/src/components/onboarding/onboarding-feature-setup.test.ts
  • src/renderer/src/components/settings/CliSkillRuntimeSetup.test.tsx
  • src/renderer/src/components/settings/CliSkillRuntimeSetup.tsx
  • src/renderer/src/components/settings/OrchestrationPane.test.tsx
  • src/renderer/src/components/settings/linear-agent-skill-install-cta.test.tsx
  • src/renderer/src/components/sidebar/LinearAgentSkillSetupPrompt.test.tsx
  • src/shared/agent-feature-install-commands.test.ts
  • src/shared/agent-feature-install-commands.ts
  • src/shared/bundled-skills-installer.test.ts
  • src/shared/bundled-skills-installer.ts
  • src/shared/cli-argument-boundary.ts
  • src/shared/orcad-artifacts.ts
  • src/shared/skill-freshness.ts
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit ffb818b into main Oct 18, 2026
69 checks passed
nwparker added a commit that referenced this pull request Oct 18, 2026
Reverts #30185 so the separate installer project can proceed. The restored shared command already pins [email protected] for CLI, desktop updates, and setup commands.
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.

1 participant