🌊 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
ci: retry npm ci to absorb sharp/libvips transient download flakes (#2998)
rUv130193a376e3
diff --git a/.github/actions/npm-ci-retry/action.yml b/.github/actions/npm-ci-retry/action.ymlnew file mode 100644index 0000000000..df92be052a--- /dev/null+++ b/.github/actions/npm-ci-retry/action.yml@@ -0,0 +1,40 @@+name: 'npm ci with retry'+description: >-+ Runs `npm ci` with retries to absorb transient prebuilt-binary download+ failures (observed repeatedly as sharp/libvips "socket hang up" / 503+ errors from GitHub Releases during postinstall — unrelated to the PR's+ own changes, and not fixed by npm's own package cache since the failing+ request is a separate direct download, not an npm registry fetch).+inputs:+ args:+ description: 'Extra flags to pass to npm ci'+ required: false+ default: '--legacy-peer-deps'+ attempts:+ description: 'Number of attempts before failing the step'+ required: false+ default: '3'+ working-directory:+ description: >-+ Directory to run npm ci in. NOTE: working-directory on the calling+ (uses:) step itself has no effect on a composite action's internal+ run steps — GitHub rejects "working-directory cannot be used with+ uses" at parse time — so it must be threaded through as an input.+ required: false+ default: '.'+runs:+ using: 'composite'+ steps:+ - shell: bash+ working-directory: ${{ inputs.working-directory }}+ run: |+ n=0+ max=${{ inputs.attempts }}+ until [ "$n" -ge "$max" ]; do+ npm ci ${{ inputs.args }} && exit 0+ n=$((n + 1))+ echo "npm ci failed (attempt $n/$max) — retrying in 15s (known transient prebuilt-binary download flake, e.g. sharp/libvips)"+ [ "$n" -lt "$max" ] && sleep 15+ done+ echo "npm ci failed after $max attempts"+ exit 1diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 5ba643809e..307344efe8 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -28,7 +28,7 @@ jobs:cache: 'npm'- name: Install dependencies- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: Run security auditrun: |@@ -70,7 +70,7 @@ jobs:cache: 'npm'- name: Install dependencies- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: Run all testsrun: npm test || echo "⚠️ Some tests failed (Jest teardown issues - non-blocking)"diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.ymlindex a87a56db1f..6ce86265cd 100644--- a/.github/workflows/integration-tests.yml+++ b/.github/workflows/integration-tests.yml@@ -55,7 +55,7 @@ jobs:cache: 'npm'- name: Install dependencies- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: Install SQLite3run: |@@ -160,7 +160,7 @@ jobs:cache: 'npm'- name: Install dependencies- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: Download integration setupuses: actions/download-artifact@v4@@ -309,7 +309,7 @@ jobs:cache: 'npm'- name: Install dependencies- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: Download integration setupuses: actions/download-artifact@v4@@ -431,7 +431,7 @@ jobs:cache: 'npm'- name: Install dependencies- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: Test agent failure recoveryrun: |@@ -559,7 +559,7 @@ jobs:cache: 'npm'- name: Install dependencies- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: Test multi-agent performancerun: |diff --git a/.github/workflows/v3-ci.yml b/.github/workflows/v3-ci.ymlindex d456dec47f..6e99ee8fac 100644--- a/.github/workflows/v3-ci.yml+++ b/.github/workflows/v3-ci.yml@@ -710,8 +710,10 @@ jobs:node-version: '22'- name: Install plugin dependencies (npm — plugin is outside v3 workspace)- working-directory: plugins/ruflo-graph-intelligence- run: npm ci --no-audit --no-fund --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry+ with:+ working-directory: plugins/ruflo-graph-intelligence+ args: --no-audit --no-fund --legacy-peer-deps- name: Type-checkworking-directory: plugins/ruflo-graph-intelligence@@ -758,8 +760,10 @@ jobs:node-version: '22'- name: Install ruflo-graph-intelligence deps (for npm audit)- working-directory: plugins/ruflo-graph-intelligence- run: npm ci --no-audit --no-fund --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry+ with:+ working-directory: plugins/ruflo-graph-intelligence+ args: --no-audit --no-fund --legacy-peer-deps- name: Install @claude-flow/browser deps (for npm audit)working-directory: v3/@claude-flow/browser@@ -876,7 +880,7 @@ jobs:node-version: '22'- name: Install root dependencies (provides @noble/ed25519 for Case 3)- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: Drive precondition + built-tree shapes through verify.mjsshell: bashdiff --git a/.github/workflows/verification-pipeline.yml b/.github/workflows/verification-pipeline.ymlindex 1547c3151f..ce58cef94e 100644--- a/.github/workflows/verification-pipeline.yml+++ b/.github/workflows/verification-pipeline.yml@@ -51,7 +51,7 @@ jobs:echo "cache-key=${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}" >> $GITHUB_OUTPUT- name: Install dependencies- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: Cache dependenciesuses: actions/cache@v4@@ -87,7 +87,7 @@ jobs:key: ${{ needs.setup-verification.outputs.cache-key }}- name: Install dependencies- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: Security auditrun: |@@ -140,7 +140,7 @@ jobs:key: ${{ needs.setup-verification.outputs.cache-key }}- name: Install dependencies- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: ESLint code analysisrun: |@@ -255,7 +255,7 @@ jobs:cache: 'npm'- name: Install dependencies- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: Build CLI packagerun: |@@ -330,7 +330,7 @@ jobs:# while `download-artifact@v3` returned a warning; @v4 makes it a# hard error and surfaces this as a failure. Build locally instead.- name: Install dependencies- run: npm ci --legacy-peer-deps+ uses: ./.github/actions/npm-ci-retry- name: Build CLI for benchmarksrun: |