Files
ruflo/scripts
randRuFlo 0f1bbe88a5 feat(init): skip what installed ruflo plugins already ship (#2640)
With the ruflo Claude Code plugins installed (ruflo-core@ruflo installed and
not switched off in enabledPlugins), `ruflo init` copied a full shadow copy of
the agents, commands and skills those plugins ship, and registered a second,
standalone `claude-flow` MCP server next to the plugin's.

- init/plugin-dedup.ts: read-only detection via Claude Code's own records
  (installed_plugins.json through mods/plugin-resolve installedState, plus
  enabledPlugins in local/project/user settings). It lists the agents,
  commands and skills of every installed *@ruflo plugin. A missing or
  malformed record means "no plugin": today's behaviour.
- executor: skips those agents/commands/skills (per file inside category
  dirs; a dir left empty is not created) and the standalone `claude-flow`
  MCP entry, keeping any other server the preset asks for. The skip list is
  returned as result.pluginDedup; `ruflo init` prints it with the reason and
  the opt-out.
- `deferToPlugins` is on in the default/minimal presets and off in
  FULL_INIT_OPTIONS, so `init --full` keeps today's full copy.
- Renamed the 3 init commands whose names collided with plugin commands:
  memory/neural -> memory-neural (ruflo-intelligence), stream-chain/run ->
  stream-chain-run (ruflo-ruos), swarm/swarm -> swarm-orchestrate
  (ruflo-swarm).
- smoke-init-bundle-invariants: assertion 4, no init/plugin command-name
  collision.
- Two existing init tests now pin CLAUDE_CONFIG_DIR so the plugins installed
  on the machine running them cannot change what init writes.

Fixes #2640

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:55:18 -05:00
..
2026-10-20 02:11:26 -04:00
2026-01-04 19:30:59 +00:00