diff --git a/package-lock.json b/package-lock.json index 808f8c5528..e93516371f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "claude-flow", - "version": "3.79.1", + "version": "3.80.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "claude-flow", - "version": "3.79.1", + "version": "3.80.0", "bundleDependencies": [ "@claude-flow/codex", "@claude-flow/mcp", @@ -13770,7 +13770,7 @@ } }, "v3/@claude-flow/codex": { - "version": "3.0.8", + "version": "3.0.9", "license": "MIT", "dependencies": { "@claude-flow/security": "^3.0.0", diff --git a/package.json b/package.json index 9fbeae4639..772e93f968 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claude-flow", - "version": "3.79.1", + "version": "3.80.0", "workspaces": [ "v3/@claude-flow/codex", "v3/@claude-flow/mcp", diff --git a/plugins/ruflo-metaharness/.claude-plugin/plugin.json b/plugins/ruflo-metaharness/.claude-plugin/plugin.json index 667b023762..40c8ac4b6b 100644 --- a/plugins/ruflo-metaharness/.claude-plugin/plugin.json +++ b/plugins/ruflo-metaharness/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "ruflo-metaharness", "description": "MetaHarness integration for ruflo — surfaces score/genome/mint/mcp-scan/threat-model via skills; pairs with @metaharness/router (ADR-148/149) for cost-optimal model routing; honors ADR-150's architectural constraint that MetaHarness remains an optional augmentation, never a required runtime dependency. As a mod (ADR-445): confirms flywheel promotion, keeps secrets out of inputs, /metaharness-mod, and a status file the console shows", - "version": "0.5.2", + "version": "0.5.3", "repository": "https://github.com/ruvnet/ruflo", "author": { "name": "ruvnet", diff --git a/plugins/ruflo-metaharness/scripts/_darwin.mjs b/plugins/ruflo-metaharness/scripts/_darwin.mjs index b04b5f5568..1aa47f6127 100644 --- a/plugins/ruflo-metaharness/scripts/_darwin.mjs +++ b/plugins/ruflo-metaharness/scripts/_darwin.mjs @@ -2,7 +2,7 @@ // // Mirrors `_harness.mjs` for the umbrella `metaharness` / `harness` binaries, // but targets the separate darwin binary (`metaharness-darwin`) which is -// published as its own npm package (`@metaharness/darwin@~0.14.0`). +// published as its own npm package (`@metaharness/darwin@~0.16.0`). // // Shared plumbing (degraded classification, --json injection, trailing-JSON // parse, degraded emitter) lives in `_invoke.mjs`. What stays here is the @@ -68,7 +68,7 @@ const DEFAULT_TIMEOUT_MS = 60_000; // gepa cache fallback installs; scripts/check-metaharness-pins.mjs now fails // when it no longer covers the declared range. const DARWIN_PKG = '@metaharness/darwin'; -const DARWIN_PIN_VERSION = '~0.14.0'; +const DARWIN_PIN_VERSION = '~0.16.0'; const DARWIN_PIN = `${DARWIN_PKG}@${DARWIN_PIN_VERSION}`; const REASON_PREFIX = 'metaharness-darwin'; diff --git a/ruflo/package.json b/ruflo/package.json index 1f6037a9e9..42801f930c 100644 --- a/ruflo/package.json +++ b/ruflo/package.json @@ -1,7 +1,7 @@ { "name": "ruflo", "mcpName": "io.github.ruvnet/ruflo", - "version": "3.79.1", + "version": "3.80.0", "description": "Ruflo - Enterprise AI agent orchestration platform. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration", "main": "bin/ruflo.js", "type": "module", @@ -40,7 +40,7 @@ "package:rvf": "bash src/scripts/package-rvf.sh" }, "dependencies": { - "@claude-flow/cli": "3.79.1" + "@claude-flow/cli": "3.80.0" }, "optionalDependencies": {}, "overrides": { diff --git a/ruflo/server.json b/ruflo/server.json index 63f56e9d1d..4f03bd4c4b 100644 --- a/ruflo/server.json +++ b/ruflo/server.json @@ -9,12 +9,12 @@ "subfolder": "ruflo" }, "websiteUrl": "https://github.com/ruvnet/ruflo", - "version": "3.79.1", + "version": "3.80.0", "packages": [ { "registryType": "npm", "identifier": "ruflo", - "version": "3.79.1", + "version": "3.80.0", "runtimeHint": "npx", "transport": { "type": "stdio" diff --git a/v3/@claude-flow/cli/.claude/helpers/helpers.manifest.json b/v3/@claude-flow/cli/.claude/helpers/helpers.manifest.json index b201dd2ef6..c8b1016cde 100644 --- a/v3/@claude-flow/cli/.claude/helpers/helpers.manifest.json +++ b/v3/@claude-flow/cli/.claude/helpers/helpers.manifest.json @@ -1,6 +1,6 @@ { "manifest": { - "version": "3.79.1", + "version": "3.80.0", "files": { "auto-memory-hook.mjs": "83775ccec13ed5e63bafdd27d429535608b4626805b3f063ad8f434cd5c64518", "hook-handler.cjs": "f736cb7092030568ab80a1b17a2afb1e0d52e0e16f407d86393f619ae29fec90", @@ -12,6 +12,6 @@ "memory.cjs": "2ef989f4640e357c1ac3eae09330242c1f6b037e6ef676a5999b8a7c11d53c33" } }, - "signature": "/Q/IGSpJxJHz3BLmrgi/eMe6a6l8ussPS19V83AwWCySn7uVhXFShIUSq/QDa3LaTtXy8hDeCzCuPucRFsiSBA==", + "signature": "eSgtUFX3ZniFlNn6XZos4oGn/Qk+SQbQQtvhf4bFjt9o0lvM+5kt+xiFRaUgPQqEpFXPOwphMqD4JF6ju2IJBQ==", "algorithm": "ed25519" } diff --git a/v3/@claude-flow/cli/__tests__/model-router-openrouter-alts-4957.test.ts b/v3/@claude-flow/cli/__tests__/model-router-openrouter-alts-4957.test.ts index 445c878e97..33a65b9a0e 100644 --- a/v3/@claude-flow/cli/__tests__/model-router-openrouter-alts-4957.test.ts +++ b/v3/@claude-flow/cli/__tests__/model-router-openrouter-alts-4957.test.ts @@ -29,7 +29,8 @@ describe('openrouter-alts.json resolves from the package, not the cwd (#4957)', rmSync(outside, { recursive: true, force: true }); }); - it('routes an OpenRouter user to the bundled per-tier alternate with cwd outside the repo', async () => { + it('routes an OpenRouter user to the bundled per-tier alternate with cwd outside the repo when opted in', async () => { + vi.stubEnv('CLAUDE_FLOW_ROUTER_OPENROUTER_ALTS', 'bundled'); expect(process.cwd()).toBe(outside); const { createModelRouter } = await import('../src/ruvector/model-router.js'); const router = createModelRouter({ statePath: join(outside, 'state.json'), autoSaveInterval: 1_000_000 }); @@ -38,11 +39,11 @@ describe('openrouter-alts.json resolves from the package, not the cwd (#4957)', expect(result.openrouterModel).toBe(ALTS.tiers[result.model].openrouter_alt); }); - it('an explicit CLAUDE_FLOW_ROUTER_OPENROUTER_ALTS that does not exist still falls back to the bundled file', async () => { - vi.stubEnv('CLAUDE_FLOW_ROUTER_OPENROUTER_ALTS', join(outside, 'missing.json')); + it('leaves npm installs on no alternate by default (opt-in until a maintainer decides)', async () => { const { createModelRouter } = await import('../src/ruvector/model-router.js'); const router = createModelRouter({ statePath: join(outside, 'state.json'), autoSaveInterval: 1_000_000 }); const result = await router.route('fix a typo in the readme'); - expect(result.openrouterModel).toBe(ALTS.tiers[result.model].openrouter_alt); + expect(result.provider).toBe('openrouter'); + expect(result.openrouterModel).toBeUndefined(); }); }); diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json index 175201a411..3148700376 100644 --- a/v3/@claude-flow/cli/package.json +++ b/v3/@claude-flow/cli/package.json @@ -1,6 +1,6 @@ { "name": "@claude-flow/cli", - "version": "3.79.1", + "version": "3.80.0", "type": "module", "description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code", "main": "dist/src/index.js", @@ -117,7 +117,7 @@ "@claude-flow/security": "3.0.7", "@claude-flow/shared": "3.0.10", "@iarna/toml": "^2.2.5", - "@metaharness/darwin": "~0.14.0", + "@metaharness/darwin": "~0.16.0", "@noble/ed25519": "2.3.0", "@ruvector/rabitq-wasm": "0.1.2", "agentic-flow": "^3.0.0", diff --git a/v3/@claude-flow/cli/src/ruvector/model-router.ts b/v3/@claude-flow/cli/src/ruvector/model-router.ts index 9da81cc60a..dc1ae90a76 100644 --- a/v3/@claude-flow/cli/src/ruvector/model-router.ts +++ b/v3/@claude-flow/cli/src/ruvector/model-router.ts @@ -94,14 +94,16 @@ function loadOpenRouterAlts(): OpenRouterAlts | null { if (_altsProbeDone) return _altsCache; _altsProbeDone = true; try { - // Probe candidate paths: explicit env override, then the copy bundled with - // this package, then cwd-relative paths for a repo checkout. + // Probe candidate paths: explicit env override (or the bundled copy), then + // cwd-relative paths for a repo checkout. + // #4957: the copy bundled with the package is opt-in for now + // (CLAUDE_FLOW_ROUTER_OPENROUTER_ALTS=bundled). Loading it by default would + // change which OpenRouter models npm users are billed for, so that default + // waits for a maintainer decision. Any other value is a path to the file. const explicit = process.env.CLAUDE_FLOW_ROUTER_OPENROUTER_ALTS; const candidates: string[] = []; - if (explicit) candidates.push(explicit); - // #4957: resolve package-relative, as neural-router.ts does. Probing only - // process.cwd() meant an npm install never found the file. - candidates.push(...packageAltsPaths()); + if (explicit?.trim().toLowerCase() === 'bundled') candidates.push(...packageAltsPaths()); + else if (explicit) candidates.push(explicit); candidates.push(join(process.cwd(), 'v3', '@claude-flow', 'cli', 'assets', 'model-router', 'openrouter-alts.json')); candidates.push(join(process.cwd(), 'assets', 'model-router', 'openrouter-alts.json')); for (const p of candidates) { diff --git a/v3/@claude-flow/cli/src/services/distill-oracle.ts b/v3/@claude-flow/cli/src/services/distill-oracle.ts index a3286a18c0..ead541ed4b 100644 --- a/v3/@claude-flow/cli/src/services/distill-oracle.ts +++ b/v3/@claude-flow/cli/src/services/distill-oracle.ts @@ -53,7 +53,7 @@ import { // lock-step with the optionalDependencies pin in package.json and the plugin // darwin cache (versioned by the plugin's own `~0.14.0` pin in _darwin.mjs; // both are checked by scripts/check-metaharness-pins.mjs — #3366). -export const MH_DARWIN_PIN = '0.14.0'; +export const MH_DARWIN_PIN = '0.16.0'; // ── Provenance ───────────────────────────────────────────────────────────── diff --git a/v3/@claude-flow/codex/package.json b/v3/@claude-flow/codex/package.json index acd8069f8e..85a7885fff 100644 --- a/v3/@claude-flow/codex/package.json +++ b/v3/@claude-flow/codex/package.json @@ -1,6 +1,6 @@ { "name": "@claude-flow/codex", - "version": "3.0.8", + "version": "3.0.9", "description": "Codex CLI integration for Ruflo (claude-flow) - OpenAI Codex platform adapter", "type": "module", "main": "./dist/index.js", diff --git a/v3/@claude-flow/codex/src/index.ts b/v3/@claude-flow/codex/src/index.ts index 1bd739d7c2..778334c4a7 100644 --- a/v3/@claude-flow/codex/src/index.ts +++ b/v3/@claude-flow/codex/src/index.ts @@ -93,7 +93,7 @@ export { /** * Package version */ -export const VERSION = '3.0.8'; +export const VERSION = '3.0.9'; /** * Package metadata diff --git a/v3/pnpm-lock.yaml b/v3/pnpm-lock.yaml index 300439e1c9..bf45b04973 100644 --- a/v3/pnpm-lock.yaml +++ b/v3/pnpm-lock.yaml @@ -145,8 +145,8 @@ importers: specifier: ^2.2.5 version: 2.2.5 '@metaharness/darwin': - specifier: ~0.14.0 - version: 0.14.0 + specifier: ~0.16.0 + version: 0.16.0 '@metaharness/router': specifier: ^0.4.0 version: 0.4.0(@ruvector/tiny-dancer@0.1.22) @@ -2183,13 +2183,16 @@ packages: dependencies: '@babel/parser': 7.29.13 - /@metaharness/darwin@0.14.0: - resolution: {integrity: sha512-rkn+HI4/fFJo2R+2UaNAUFEG6vJYg52siD/izwteQ6zJDPrLPrWeJK4U1pukjeCZ1VndtUsMbGbELJpsctUAXQ==} + /@metaharness/darwin@0.16.0: + resolution: {integrity: sha512-qZxwvnSIgOKX1t6XXkicXeptE5LiL+ZjZpgZ7vhfRULk/z1WHBtew9XfcqDIgOOefKhOewH6jXjkIJVPMWMJoA==} engines: {node: '>=20.0.0'} hasBin: true peerDependencies: + '@ruvector/rvf': '>=0.2.0' ruv-fann: 0.1.2 peerDependenciesMeta: + '@ruvector/rvf': + optional: true ruv-fann: optional: true dependencies: