Files
ruflo/v3/@claude-flow/cli/src/plugins
ruv d941846e78 feat(metaharness): harness type in ruflo plugin registry (iter 6, Phase 2)
ADR-150 Phase 2 lights up the third major surface: the ruflo plugin
registry now accepts `type: 'harness'` entries. Community-built or
internally-minted MetaHarness harnesses surface alongside plugins in:

  npx ruflo plugins list --type harness     # filter to harnesses only
  npx ruflo plugins list                    # see both plugins + harnesses
  npx ruflo plugins search <query>          # cross-cuts both

The schemas were designed to be compatible by the upstream
`buildRegistryEntry()` doc comment: "Mirrors the ruflo plugin registry
shape so the same UI can browse it." This change makes that contract
real on the consumer side.

CHANGES
- v3/@claude-flow/cli/src/plugins/store/types.ts: added 'harness' to
  the PluginType union with an ADR-150 anchor comment. search.ts's
  type filter (`plugins.filter(p => p.type === options.type)`)
  automatically supports the new value with no code change required.
- v3/@claude-flow/cli/src/plugins/store/discovery.ts: added 'harness'
  to the demoPluginRegistry's `categories[]` block. pluginCount: 0
  initially — populated by the IPFS-pinned registry when MetaHarness
  publishes harness entries upstream.

ADR-150 ARCHITECTURAL CONSTRAINT
This is purely a schema extension — no runtime import, no
dependency. The plugin store continues to work identically when
`@metaharness/*` is absent; `--type harness` filter just returns zero
results. Rule #3 (graceful degradation) satisfied by construction.

SMOKE STEP 17b
- Asserts 'harness' is in the PluginType union
- Asserts ADR-150 anchor comment present (drift guard)
- Asserts 'harness' category present in demoPluginRegistry

Smoke: 17 → 18. Fleet: 33/33. tsc clean.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-06-16 13:47:45 -04:00
..
2026-01-08 19:35:43 +00:00