mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
* feat(mods): load ruflo plugins in headless claude -p workers (ADR-510) claude -p on a fresh config loads no marketplace plugins, so ruflo's own headless workers ran without ruflo-mods' guard, routing and learning loop. - resolvePluginPaths: --source local checkout, then the marketplace clone, then the install cache; a folder without .claude-plugin/plugin.json is reported missing, never returned; honours CLAUDE_CONFIG_DIR. - The daemon's HeadlessWorkerExecutor and `hive-mind work` add --plugin-dir <ruflo-mods> and CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 (unless set), never duplicate a caller's own --plugin-dir, and record a missing plugin (logged once) as missingPlugins on the result. - `ruflo plugins paths [--json]` for Agent SDK callers; README section. - `ruflo doctor --component headless-plugins` runs a real claude -p and checks the init event, plugin_errors and the mod heartbeat (runner injectable; skipped without a model credential). Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-510 status names PR #4586 Co-Authored-By: RuFlo <ruv@ruv.net> * fix(mods): headless plugin paths never come from project settings; stage hive-mind spawn -p (ADR-510) - resolvePluginPaths no longer reads extraKnownMarketplaces from the project's .claude/settings.json or settings.local.json. A cloned repo could point every daemon worker and `hive-mind work` at its own folder, loaded via --plugin-dir with function hooks on and no trust prompt, in place of the user's ruflo-mods. "Local" is now only a directory marketplace in Claude Code's user-level known_marketplaces.json, and a relative path is rejected. - `hive-mind spawn --claude --non-interactive` builds a `claude -p` worker too: it now goes through withHeadlessPlugins (staged before the prompt) and reports missingPlugins on data.claude. Interactive launch unchanged. - Tests: project-scope settings (absolute or ./x) resolve to clone/cache, never the repo; relative path rejected; spawn-mocked hive-mind spawn test. All four new assertions fail on the previous commit. Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-510 trust-boundary note records the live resolver check Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x>