Files
ruflo/v3/@claude-flow
ruv b0e4a45581 fix(release): bundle plugins/ruflo-metaharness in @claude-flow/cli pkg (3.12.1)
3.12.0 shipped the CLI dispatcher + 9 MCP tools but DID NOT ship the
plugin scripts that the dispatcher delegates to. Real-user impact:

   $ npx ruflo metaharness score --path .
   metaharness: plugins/ruflo-metaharness/scripts/ not found.
     Install ruflo with `npm i ruflo` or run from the ruflo repo.

The CLI's locator walks 8+ paths looking for the plugin under
node_modules/@claude-flow/cli/plugins/ruflo-metaharness/scripts/, but
@claude-flow/cli's package.json `files` field only listed dist/, bin/,
scripts/, .claude/, README.md — plugins/ never made it into the
published tarball.

Fix is two-part:

  1. files[] — add "plugins" so npm pack includes the dir
  2. prepublishOnly — copy ../../../plugins/ruflo-metaharness into
     local plugins/ before pack, since the source lives at repo root
     not inside the cli package directory

End-to-end verified on a fresh npm install:

  $ npm install ruflo@3.12.1
  $ find node_modules -path "*ruflo-metaharness/scripts*" | head
    node_modules/@claude-flow/cli/plugins/ruflo-metaharness/scripts
    node_modules/@claude-flow/cli/plugins/ruflo-metaharness/scripts/score.mjs
    ...
  $ npx ruflo metaharness score --path .
  { "harnessFit": 53, ... } ✓

Tarball size: 1310 → 1348 files (+38 plugin scripts).

Published 3.12.1 to all 3 packages × 3 dist-tags in lockstep.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-06-17 18:09:17 -04:00
..