Skip to content

[Runner] Make runner CLI deps optional and gate skill sync by enabled runners#97

Open
sIlENtbuffER wants to merge 1 commit into
ResearAI:mainfrom
sIlENtbuffER:fix/runner-optional-deps
Open

[Runner] Make runner CLI deps optional and gate skill sync by enabled runners#97
sIlENtbuffER wants to merge 1 commit into
ResearAI:mainfrom
sIlENtbuffER:fix/runner-optional-deps

Conversation

@sIlENtbuffER
Copy link
Copy Markdown
Contributor

@sIlENtbuffER sIlENtbuffER commented May 16, 2026

Summary

  • Move @anthropic-ai/claude-code, @openai/codex, and opencode-ai from dependencies to optionalDependencies so npm install -g does not abort when a runner CLI binary fails to install
  • Gate sync_global() and sync_quest() behind _is_runner_enabled() checks so the daemon only creates skill directories for enabled runners
  • Pass runners_config from DaemonApp to SkillInstaller so it knows which runners are enabled

Why

The published v1.6.0 lists all runner CLIs as required dependencies. Their postinstall scripts download ~100MB platform-specific binaries, and when any fails, the entire install aborts — even for users who only use one runner. Additionally, sync_global() creates directories for all runners unconditionally, which can crash the daemon if a target directory is unwritable.

Closes #96

Test plan

  • npm pack --dry-run --ignore-scripts succeeds with the new dependency layout
  • SkillInstaller._is_runner_enabled() correctly returns true/false based on config
  • npm install -g from the packed tarball succeeds even without runner CLIs
  • Daemon starts successfully with only one runner enabled
  • ds doctor passes with the changes

…bled runners

Move @anthropic-ai/claude-code, @openai/codex, and opencode-ai from
dependencies to optionalDependencies so npm install -g does not abort
when a runner CLI binary fails to install. Gate sync_global() and
sync_quest() behind _is_runner_enabled() checks so the daemon only
creates skill directories for enabled runners.

Closes ResearAI#96
@sIlENtbuffER sIlENtbuffER force-pushed the fix/runner-optional-deps branch from 9e366e3 to fdba47e Compare May 16, 2026 10:09
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.

[Bug]: Runner CLI dependencies block npm install -g and daemon startup for users who don't use those runners

1 participant