Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

fix(metaharness-ci): build cli's workspace deps first via pnpm -F ... (iter 119)

ruvcaf1a263510a
diff --git a/.github/workflows/metaharness-ci.yml b/.github/workflows/metaharness-ci.yml
index fea88d012a..91db958f8a 100644
--- a/.github/workflows/metaharness-ci.yml
+++ b/.github/workflows/metaharness-ci.yml
@@ -138,13 +138,16 @@ jobs:
run: |
# iter 117 β€” `npm install` in a single v3 workspace pkg fails with
# EUNSUPPORTEDPROTOCOL "workspace:*" because the workspace uses pnpm
- # (v3/pnpm-workspace.yaml). Install at workspace root with pnpm, then
- # cd into the pkg to build. [email protected] matches v3/package.json's
- # packageManager pin (newer pnpm would emit a v9+ lockfile format).
+ # (v3/pnpm-workspace.yaml). Install at workspace root with pnpm.
+ # iter 119 β€” cli imports from `@claude-flow/cli-core/types` etc., so
+ # the workspace siblings cli depends on must be built FIRST. The
+ # `-F @claude-flow/cli...` filter (note trailing ellipsis) builds
+ # cli plus all its workspace dependencies in topological order.
+ # [email protected] matches v3/package.json's packageManager pin.
cd v3
npx -y [email protected] install --frozen-lockfile --reporter=append-only
+ npx -y [email protected] -F "@claude-flow/cli..." run build
cd @claude-flow/cli
- npx -y [email protected] run build
cd ../../..
node plugins/ruflo-metaharness/scripts/test-mcp-tools.mjs
@@ -194,13 +197,16 @@ jobs:
run: |
# iter 117 β€” `npm install` in a single v3 workspace pkg fails with
# EUNSUPPORTEDPROTOCOL "workspace:*" because the workspace uses pnpm
- # (v3/pnpm-workspace.yaml). Install at workspace root with pnpm, then
- # cd into the pkg to build. [email protected] matches v3/package.json's
- # packageManager pin (newer pnpm would emit a v9+ lockfile format).
+ # (v3/pnpm-workspace.yaml). Install at workspace root with pnpm.
+ # iter 119 β€” cli imports from `@claude-flow/cli-core/types` etc., so
+ # the workspace siblings cli depends on must be built FIRST. The
+ # `-F @claude-flow/cli...` filter (note trailing ellipsis) builds
+ # cli plus all its workspace dependencies in topological order.
+ # [email protected] matches v3/package.json's packageManager pin.
cd v3
npx -y [email protected] install --frozen-lockfile --reporter=append-only
+ npx -y [email protected] -F "@claude-flow/cli..." run build
cd @claude-flow/cli
- npx -y [email protected] run build
- name: eject dry-run produces a valid plan
run: |
@@ -353,13 +359,16 @@ jobs:
run: |
# iter 117 β€” `npm install` in a single v3 workspace pkg fails with
# EUNSUPPORTEDPROTOCOL "workspace:*" because the workspace uses pnpm
- # (v3/pnpm-workspace.yaml). Install at workspace root with pnpm, then
- # cd into the pkg to build. [email protected] matches v3/package.json's
- # packageManager pin (newer pnpm would emit a v9+ lockfile format).
+ # (v3/pnpm-workspace.yaml). Install at workspace root with pnpm.
+ # iter 119 β€” cli imports from `@claude-flow/cli-core/types` etc., so
+ # the workspace siblings cli depends on must be built FIRST. The
+ # `-F @claude-flow/cli...` filter (note trailing ellipsis) builds
+ # cli plus all its workspace dependencies in topological order.
+ # [email protected] matches v3/package.json's packageManager pin.
cd v3
npx -y [email protected] install --frozen-lockfile --reporter=append-only
+ npx -y [email protected] -F "@claude-flow/cli..." run build
cd @claude-flow/cli
- npx -y [email protected] run build
- name: CLI dispatcher round-trip β€” `node bin/cli.js metaharness similarity` (iter 36)
# Proves the iter-36 SUBCOMMANDS entry actually dispatches at the
@@ -446,13 +455,16 @@ jobs:
set -e
# iter 117 β€” `npm install` in a single v3 workspace pkg fails with
# EUNSUPPORTEDPROTOCOL "workspace:*" because the workspace uses pnpm
- # (v3/pnpm-workspace.yaml). Install at workspace root with pnpm, then
- # cd into the pkg to build. [email protected] matches v3/package.json's
- # packageManager pin (newer pnpm would emit a v9+ lockfile format).
+ # (v3/pnpm-workspace.yaml). Install at workspace root with pnpm.
+ # iter 119 β€” cli imports from `@claude-flow/cli-core/types` etc., so
+ # the workspace siblings cli depends on must be built FIRST. The
+ # `-F @claude-flow/cli...` filter (note trailing ellipsis) builds
+ # cli plus all its workspace dependencies in topological order.
+ # [email protected] matches v3/package.json's packageManager pin.
cd v3
npx -y [email protected] install --frozen-lockfile --reporter=append-only
+ npx -y [email protected] -F "@claude-flow/cli..." run build
cd @claude-flow/cli
- npx -y [email protected] run build
cd ../../../
OUT=$(node v3/@claude-flow/cli/bin/cli.js metaharness score --path . --format json)
echo "$OUT" | grep -q '"harnessFit"' || { echo "FAIL: score dispatcher dropped harnessFit"; exit 1; }