From 3252b2dcae01f3e90f1ef3ff92e48fd7f8da88b3 Mon Sep 17 00:00:00 2001 From: r Date: Mon, 9 Nov 2026 02:49:40 -0500 Subject: [PATCH 1/9] fix(shared): zod ^4.6.7 (GHSA-mrhx-c7xc-m3w5), express floor; shared 3.0.8 zod < 4.6.6 can exhaust memory validating oversized constrained collections (GHSA-mrhx-c7xc-m3w5, high); there is no 3.x fix. @claude-flow/shared is the most-installed zod 3 holdout (~286k downloads/month, a dependency of the cli, hooks, claims, guidance, testing, deployment and the iot/federation plugins). - config validator: ZodError.errors -> .issues; foreign ZodErrors are recognised by shape; z.ZodType (port from #4535 by Dragan Spiridonov) - schema: one-argument z.record(value) -> z.record(z.string(), value) - express ^4.22.2 || ^5.0.0 -> ^4.22.3 || ^5.1.0: 4.22.2 and 5.0.0-5.0.1 are inside GHSA-qw6h-vgh9-j6wx - advisory-ranges test over the manifest (zod, express, ws) - ADR-356 metadata (homepage, repository with directory, bugs, keywords) and a README quickstart verified against a packed tarball, with a flow SVG shared is a registry-resolved leaf of @claude-flow/cli, so this PR also needs the cli pin ("@claude-flow/shared": "3.0.8") and the claude-flow root pin from the release lane, after 3.0.8 is on the registry. Co-authored-by: Dragan Spiridonov Co-Authored-By: claude-flow --- v3/@claude-flow/shared/README.md | 39 ++++++++ .../shared/__tests__/advisory-ranges.test.ts | 70 ++++++++++++++ .../__tests__/zod4-config-validator.test.ts | 91 +++++++++++++++++++ v3/@claude-flow/shared/assets/shared-flow.svg | 22 +++++ v3/@claude-flow/shared/package.json | 29 +++++- .../shared/src/core/config/schema.ts | 8 +- .../shared/src/core/config/validator.ts | 33 +++++-- v3/pnpm-lock.yaml | 44 ++++----- 8 files changed, 296 insertions(+), 40 deletions(-) create mode 100644 v3/@claude-flow/shared/__tests__/advisory-ranges.test.ts create mode 100644 v3/@claude-flow/shared/__tests__/zod4-config-validator.test.ts create mode 100644 v3/@claude-flow/shared/assets/shared-flow.svg diff --git a/v3/@claude-flow/shared/README.md b/v3/@claude-flow/shared/README.md index 0b5cae844c..b613ceaa0e 100644 --- a/v3/@claude-flow/shared/README.md +++ b/v3/@claude-flow/shared/README.md @@ -1,5 +1,38 @@ # @claude-flow/shared + +![Animated diagram: raw config is validated by Zod schemas into typed config that flows through the EventBus to other packages](https://raw.githubusercontent.com/ruvnet/ruflo/main/v3/@claude-flow/shared/assets/shared-flow.svg) + +**@claude-flow/shared** — Shared types, Zod config schemas and validators, the event bus and resilience helpers that the other `@claude-flow` packages build on. + +**Supported environments:** Node.js 20+ · ESM · Linux, macOS, Windows (pure JavaScript) + +## Quickstart + +```bash +npm install @claude-flow/shared +``` + +```js +import { validateAgentConfig } from '@claude-flow/shared'; + +const ok = validateAgentConfig({ id: 'coder-1', name: 'Coder', type: 'coder' }); +console.log(ok.success, ok.data.maxConcurrentTasks, ok.data.priority); + +const bad = validateAgentConfig({ id: 'coder-1', name: 'Coder', type: 'coder', priority: 500 }); +console.log(bad.success, bad.errors.map((e) => `${e.path}: ${e.code}`).join(', ')); +``` + +Expected output: + +```text +true 5 50 +false priority: too_big +``` + +Next: [`@claude-flow/hooks`](https://www.npmjs.com/package/@claude-flow/hooks) builds its lifecycle hooks on these types. + + [![npm version](https://img.shields.io/npm/v/@claude-flow/shared.svg)](https://www.npmjs.com/package/@claude-flow/shared) [![npm downloads](https://img.shields.io/npm/dm/@claude-flow/shared.svg)](https://www.npmjs.com/package/@claude-flow/shared) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) @@ -321,3 +354,9 @@ This package is a dependency of all other @claude-flow modules: ## License MIT + + +--- + +Built by [rUv](https://ruv.io) · [ruv.io](https://ruv.io) · [Source](https://github.com/ruvnet/ruflo/tree/main/v3/@claude-flow/shared) + diff --git a/v3/@claude-flow/shared/__tests__/advisory-ranges.test.ts b/v3/@claude-flow/shared/__tests__/advisory-ranges.test.ts new file mode 100644 index 0000000000..11061c832d --- /dev/null +++ b/v3/@claude-flow/shared/__tests__/advisory-ranges.test.ts @@ -0,0 +1,70 @@ +/** + * Regression guard: the published dependency ranges must not admit versions + * with known advisories. Each row is (field, package, versions that must be + * rejected, versions that must be admitted). + * + * Ranges are restricted to `^X.Y.Z` alternatives joined by `||`, so the check + * below is exact without pulling semver into the package. + */ + +import { readFileSync } from 'node:fs'; +import { dirname, join } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { describe, it, expect } from 'vitest'; + +const here = dirname(fileURLToPath(import.meta.url)); +const manifest = JSON.parse(readFileSync(join(here, '..', 'package.json'), 'utf8')) as Record< + string, + Record | undefined +>; + +type Version = { major: number; minor: number; patch: number; pre: boolean }; + +function parse(v: string): Version { + const m = /^(\d+)\.(\d+)\.(\d+)(-.+)?$/.exec(v); + if (!m) throw new Error(`not a version: ${v}`); + return { major: +m[1], minor: +m[2], patch: +m[3], pre: m[4] !== undefined }; +} + +function cmp(a: Version, b: Version): number { + return a.major - b.major || a.minor - b.minor || a.patch - b.patch; +} + +/** Caret semantics for X >= 1: same major, >= floor, no prereleases. */ +function satisfies(version: string, range: string): boolean { + const v = parse(version); + return range.split('||').some((part) => { + const m = /^\s*\^(\d+\.\d+\.\d+)\s*$/.exec(part); + if (!m) throw new Error(`unsupported range form: ${part.trim()}`); + const floor = parse(m[1]); + return !v.pre && v.major === floor.major && floor.major >= 1 && cmp(v, floor) >= 0; + }); +} + +const rows: Array<[field: string, name: string, advisory: string, rejected: string[], admitted: string[]]> = [ + ['dependencies', 'zod', 'GHSA-mrhx-c7xc-m3w5', ['3.22.4', '3.25.76', '4.6.5'], ['4.6.7']], + ['dependencies', 'express', 'GHSA-qw6h-vgh9-j6wx', ['4.22.2', '5.0.1'], ['4.22.3', '5.1.0', '5.3.0']], + ['dependencies', 'ws', 'GHSA-96hv-2xvq-fx4p', ['8.20.1'], ['8.21.0']], +]; + +describe('advisory-free dependency ranges', () => { + for (const [field, name, advisory, rejected, admitted] of rows) { + const range = manifest[field]?.[name]; + + it(`${field}.${name} is declared`, () => { + expect(range).toBeTypeOf('string'); + }); + + for (const v of rejected) { + it(`${field}.${name} rejects ${v} (${advisory})`, () => { + expect(satisfies(v, range!)).toBe(false); + }); + } + + for (const v of admitted) { + it(`${field}.${name} admits ${v}`, () => { + expect(satisfies(v, range!)).toBe(true); + }); + } + } +}); diff --git a/v3/@claude-flow/shared/__tests__/zod4-config-validator.test.ts b/v3/@claude-flow/shared/__tests__/zod4-config-validator.test.ts new file mode 100644 index 0000000000..0413c65f3e --- /dev/null +++ b/v3/@claude-flow/shared/__tests__/zod4-config-validator.test.ts @@ -0,0 +1,91 @@ +/** + * Config validation under zod 4. + * + * zod 4 removed `ZodError.errors` (use `.issues`). The validator mapped + * `error.errors`, so every invalid config threw a TypeError out of the + * validator instead of returning `{ success: false, errors }`. + */ + +import { describe, it, expect } from 'vitest'; +import { + validateAgentConfig, + validateSwarmConfig, + ConfigValidator, +} from '../src/core/config/validator.js'; +import { AgentConfigSchema } from '../src/core/config/schema.js'; + +describe('config validator under zod 4', () => { + it('returns structured errors for an invalid agent config', () => { + const result = validateAgentConfig({ id: '', name: 'x' }); + expect(result.success).toBe(false); + expect(result.errors?.length).toBeGreaterThan(0); + const paths = result.errors?.map((e) => e.path) ?? []; + expect(paths).toContain('id'); + expect(paths).toContain('type'); + for (const e of result.errors ?? []) { + expect(typeof e.message).toBe('string'); + expect(typeof e.code).toBe('string'); + } + }); + + it('returns structured errors for an invalid swarm topology', () => { + const result = validateSwarmConfig({ topology: 'not-a-topology' }); + expect(result.success).toBe(false); + expect(result.errors?.[0]?.path).toBe('topology'); + }); + + it('still applies defaults on a valid agent config', () => { + const result = validateAgentConfig({ id: 'a1', name: 'A', type: 'coder' }); + expect(result.success).toBe(true); + expect(result.data).toMatchObject({ + capabilities: [], + maxConcurrentTasks: 5, + priority: 50, + }); + }); + + it('treats a ZodError from another zod copy as a validation failure', () => { + // A caller-supplied schema built with a different zod (e.g. zod 3) throws + // a ZodError that is not an instance of this package's z.ZodError. + const foreign = { + parse() { + throw Object.assign(new Error('foreign'), { + name: 'ZodError', + issues: [{ path: ['x'], message: 'Expected string', code: 'invalid_type' }], + }); + }, + }; + expect(ConfigValidator.isValid(foreign as never, 42)).toBe(false); + }); + + it('does not mistake an operational error named ZodError for a validation failure', () => { + const impostor = { + parse() { + throw Object.assign(new Error('database failed'), { name: 'ZodError', issues: [] }); + }, + }; + expect(() => ConfigValidator.isValid(impostor as never, {})).toThrow('database failed'); + }); + + it('reports symbol path segments instead of throwing', () => { + const sym = Symbol('meta'); + const foreign = { + parse() { + throw Object.assign(new Error('foreign'), { + name: 'ZodError', + issues: [{ path: ['metadata', sym], message: 'bad key', code: 'invalid_key' }], + }); + }, + }; + expect(() => ConfigValidator.validateOrThrow(foreign as never, {}, 'agent')).toThrow( + /- metadata\.Symbol\(meta\): bad key/, + ); + }); + + it('validateAgentOrThrow reports the invalid fields, not a TypeError', () => { + expect(AgentConfigSchema.safeParse({}).success).toBe(false); + expect(() => ConfigValidator.validateAgentOrThrow({ id: '' })).toThrow( + /Invalid agent configuration:\n {2}- id: /, + ); + }); +}); diff --git a/v3/@claude-flow/shared/assets/shared-flow.svg b/v3/@claude-flow/shared/assets/shared-flow.svg new file mode 100644 index 0000000000..1ebd042bfb --- /dev/null +++ b/v3/@claude-flow/shared/assets/shared-flow.svg @@ -0,0 +1,22 @@ + +@claude-flow/shared: validated config to typed events +Raw configuration is checked by Zod schemas in ConfigValidator, becomes typed config, and flows through the EventBus and EventStore to the other @claude-flow packages. + + +@claude-flow/shared: validated config to typed events + +Raw configJSON / objectZod schemasConfigValidatorTyped configdefaults appliedEventBusEventStoreConsumershooks, plugins, cli + + diff --git a/v3/@claude-flow/shared/package.json b/v3/@claude-flow/shared/package.json index ba795d5f9d..b8c53a570e 100644 --- a/v3/@claude-flow/shared/package.json +++ b/v3/@claude-flow/shared/package.json @@ -1,8 +1,8 @@ { "name": "@claude-flow/shared", - "version": "3.0.7", + "version": "3.0.8", "type": "module", - "description": "Shared module - common types, events, utilities, core interfaces", + "description": "Shared types, event bus, config schemas and validators, MCP transport helpers and resilience utilities used by the Ruflo (claude-flow) V3 packages.", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { @@ -30,11 +30,11 @@ "dependencies": { "@types/ws": "^8.5.10", "cors": "^2.8.5", - "express": "^4.22.2 || ^5.0.0", + "express": "^4.22.3 || ^5.1.0", "helmet": "^7.2.0", "sql.js": "^1.10.3", "ws": "^8.21.0", - "zod": "^3.22.4" + "zod": "^4.6.7" }, "devDependencies": { "@types/cors": "^2.8.17", @@ -45,5 +45,26 @@ }, "publishConfig": { "access": "public" + }, + "keywords": [ + "ruflo", + "claude-flow", + "shared", + "types", + "event-bus", + "config-validation", + "zod", + "mcp", + "resilience", + "typescript" + ], + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "v3/@claude-flow/shared" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" } } diff --git a/v3/@claude-flow/shared/src/core/config/schema.ts b/v3/@claude-flow/shared/src/core/config/schema.ts index 1c281f945d..06131914f9 100644 --- a/v3/@claude-flow/shared/src/core/config/schema.ts +++ b/v3/@claude-flow/shared/src/core/config/schema.ts @@ -25,7 +25,7 @@ export const AgentConfigSchema = z.object({ maxMemoryMb: z.number().int().positive().optional(), maxCpuPercent: z.number().min(0).max(100).optional(), }).optional(), - metadata: z.record(z.unknown()).optional(), + metadata: z.record(z.string(), z.unknown()).optional(), }); /** @@ -37,7 +37,7 @@ export const TaskConfigSchema = z.object({ priority: z.number().int().min(0).max(100).default(50), timeout: z.number().int().positive().optional(), assignedAgent: z.string().optional(), - input: z.record(z.unknown()).optional(), + input: z.record(z.string(), z.unknown()).optional(), metadata: z.object({ requiredCapabilities: z.array(z.string()).optional(), retryCount: z.number().int().min(0).optional(), @@ -75,7 +75,7 @@ export const SwarmConfigSchema = z.object({ batchSize: z.number().int().positive().default(10), flushIntervalMs: z.number().int().positive().default(100), }).optional(), - metadata: z.record(z.unknown()).optional(), + metadata: z.record(z.string(), z.unknown()).optional(), }); /** @@ -127,7 +127,7 @@ export const MCPServerConfigSchema = z.object({ resources: z.boolean().default(true), prompts: z.boolean().default(true), logging: z.boolean().default(true), - experimental: z.record(z.boolean()).optional(), + experimental: z.record(z.string(), z.boolean()).optional(), }).optional(), }); diff --git a/v3/@claude-flow/shared/src/core/config/validator.ts b/v3/@claude-flow/shared/src/core/config/validator.ts index 134b82f57d..60b154b468 100644 --- a/v3/@claude-flow/shared/src/core/config/validator.ts +++ b/v3/@claude-flow/shared/src/core/config/validator.ts @@ -42,20 +42,37 @@ export interface ValidationError { /** * Convert Zod error to validation errors */ -function zodErrorToValidationErrors(error: ZodError): ValidationError[] { - return error.errors.map((e) => ({ - path: e.path.join('.'), +function zodErrorToValidationErrors(error: Pick): ValidationError[] { + return error.issues.map((e) => ({ + path: e.path.map(String).join('.'), message: e.message, code: e.code, })); } +function isZodErrorLike(error: unknown): error is Pick { + if (!(error instanceof Error) || error.name !== 'ZodError') return false; + const issues = (error as { issues?: unknown }).issues; + return ( + Array.isArray(issues) && + issues.length > 0 && + issues.every( + (i) => + i !== null && + typeof i === 'object' && + Array.isArray((i as { path?: unknown }).path) && + typeof (i as { message?: unknown }).message === 'string' && + typeof (i as { code?: unknown }).code === 'string', + ) + ); +} + /** * Generic validation function * Uses parse + try/catch to get output types with defaults applied */ function validate( - schema: z.ZodType, + schema: z.ZodType, data: unknown ): ValidationResult { try { @@ -65,7 +82,9 @@ function validate( data: parsed, }; } catch (error) { - if (error instanceof z.ZodError) { + // Callers may pass a schema built with another zod copy (e.g. zod 3), + // whose ZodError is not an instance of this one. Match on shape. + if (error instanceof z.ZodError || isZodErrorLike(error)) { return { success: false, errors: zodErrorToValidationErrors(error), @@ -132,7 +151,7 @@ export class ConfigValidator { * Validate and throw on error */ static validateOrThrow( - schema: z.ZodType, + schema: z.ZodType, data: unknown, configName: string ): TOutput { @@ -201,7 +220,7 @@ export class ConfigValidator { * Check if data matches schema */ static isValid( - schema: z.ZodType, + schema: z.ZodType, data: unknown ): boolean { return validate(schema, data).success; diff --git a/v3/pnpm-lock.yaml b/v3/pnpm-lock.yaml index f445cf880b..9686fc6969 100644 --- a/v3/pnpm-lock.yaml +++ b/v3/pnpm-lock.yaml @@ -137,7 +137,7 @@ importers: version: link:../security '@claude-flow/shared': specifier: 3.0.7 - version: link:../shared + version: 3.0.7 '@electron/asar': specifier: ^4.3.1 version: 4.3.1 @@ -658,8 +658,8 @@ importers: specifier: ^8.21.0 version: 8.21.1 zod: - specifier: ^3.22.4 - version: 3.25.76 + specifier: ^4.6.7 + version: 4.6.7 devDependencies: '@types/cors': specifier: ^2.8.17 @@ -955,6 +955,22 @@ packages: resolution: {integrity: sha512-k7vvKPbf7J2fZ5klGRD9AeKfUvojuZIQ3BT5u7Jfv+puwXkUBUT5PVyMDfJZpy30CBDXGMgw7fguK/lpOMBvgw==} requiresBuild: true + /@claude-flow/shared@3.0.7: + resolution: {integrity: sha512-eX/JdzywhVFxL+BQaMOphPBVL95icFJgf3piNzTyGy2nT8zFqdDQ34qpS+RfFv3Yjpo00NDj/4CzoqRTni7ImA==} + dependencies: + '@types/ws': 8.18.1 + cors: 2.8.6 + express: 5.2.1 + helmet: 7.2.0 + sql.js: 1.14.1 + ws: 8.21.1 + zod: 3.25.76 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: false + /@cognitum-one/sdk@0.2.1(multicast-dns@7.2.5): resolution: {integrity: sha512-ZIYKq6Tqc7zcDQRSrxphm0Uji497Mf1bi7azn2aTM4F0k+IEdPpTmAngGVaXX/hR7DYhOQ5gkUCja0DiOJLOJw==} engines: {node: '>=18'} @@ -6175,8 +6191,6 @@ packages: peerDependencies: typescript: '>=5.0.0' peerDependenciesMeta: - agentic-flow: - optional: true typescript: optional: true dependencies: @@ -10442,34 +10456,14 @@ packages: '@ruvector/ruvllm': ^4.1.0 rvlite: ^0.2.0 peerDependenciesMeta: - '@metaharness/darwin': - optional: true - '@metaharness/flywheel': - optional: true - '@metaharness/harness': - optional: true - '@metaharness/redblue': - optional: true - '@metaharness/router': - optional: true - '@metaharness/weight-eft': - optional: true - '@metaharness/workspace-lens': - optional: true - '@metaharness/workspace-probe': - optional: true '@ruvector/diskann': optional: true '@ruvector/pi-brain': optional: true - '@ruvector/rabitq-wasm': - optional: true '@ruvector/router': optional: true '@ruvector/ruvllm': optional: true - metaharness: - optional: true rvlite: optional: true dependencies: From dfc87e5c034c48881c973812f9b561f33927bb6a Mon Sep 17 00:00:00 2001 From: ruv Date: Mon, 9 Nov 2026 19:45:00 -0500 Subject: [PATCH 2/9] chore(npm): canonical repository, homepage and keywords for 12 packages; verified quickstarts for memory and security Package metadata only (ADR-356 distribution lane). No version bumps, no dependency, script or source changes; it ships with each package's next release. - homepage https://ruv.io, repository {url ruvnet/ruflo, directory}, bugs ruvnet/ruflo/issues on @claude-flow/{memory,security,embeddings, swarm,testing,plugins,performance,providers,deployment, plugin-agent-federation,plugin-iot-cognitum} and ruflo-graph-intelligence. Nine of these had no repository field at all, so their npm pages link nowhere. - 10-12 keywords per package, taken from each package's README features. - ruflo-graph-intelligence description trimmed to 160 chars. - memory and security READMEs: one-line job statement, supported environments, a quickstart run against the published 3.3.0 / 3.0.7 with its real output, a link to the next package, and an animated SVG (2.5 KB / 2.1 KB, prefers-reduced-motion aware) that shows that run. Packages in #4897 (aidefence, browser, cli-core, guidance, neural, teammate-plugin) are left alone to avoid conflicting with it. Co-Authored-By: claude-flow --- .../packages/memory-hnsw-quickstart.svg | 11 +++++ .../packages/security-boundary-quickstart.svg | 10 +++++ plugins/ruflo-graph-intelligence/package.json | 25 ++++++----- v3/@claude-flow/deployment/package.json | 21 +++++++++ v3/@claude-flow/embeddings/package.json | 23 +++++++--- v3/@claude-flow/memory/README.md | 42 +++++++++++++++++- v3/@claude-flow/memory/package.json | 23 ++++++++++ v3/@claude-flow/performance/package.json | 22 ++++++++++ .../plugin-agent-federation/package.json | 20 +++++++-- .../plugin-iot-cognitum/package.json | 23 +++++++--- v3/@claude-flow/plugins/package.json | 22 +++++++--- v3/@claude-flow/providers/package.json | 22 +++++++--- v3/@claude-flow/security/README.md | 43 +++++++++++++++++++ v3/@claude-flow/security/package.json | 23 ++++++++++ v3/@claude-flow/swarm/package.json | 19 ++++++-- v3/@claude-flow/testing/package.json | 17 +++++++- 16 files changed, 320 insertions(+), 46 deletions(-) create mode 100644 docs/assets/readme/packages/memory-hnsw-quickstart.svg create mode 100644 docs/assets/readme/packages/security-boundary-quickstart.svg diff --git a/docs/assets/readme/packages/memory-hnsw-quickstart.svg b/docs/assets/readme/packages/memory-hnsw-quickstart.svg new file mode 100644 index 0000000000..eba2e33ef6 --- /dev/null +++ b/docs/assets/readme/packages/memory-hnsw-quickstart.svg @@ -0,0 +1,11 @@ +@claude-flow/memory HNSW quickstartThree 8-dimensional vectors doc-a, doc-b and doc-c are added to an HNSWIndex; a cosine query returns doc-a at distance 0 and doc-b at distance 0.0061, the output of the README quickstart run on Node 22. + + +AGENT MEMORY · HNSW@claude-flow/memoryVector memory for agents: add, search, persist. +addPoint('doc-a', [1,0,0,…])addPoint('doc-b', [0.9,0.1,0,…])addPoint('doc-c', [0,1,0,…]) + +HNSWIndexdim 8 · cosineM 16 +search(query, 2) + +doc-a distance 0doc-b distance 0.0061 + diff --git a/docs/assets/readme/packages/security-boundary-quickstart.svg b/docs/assets/readme/packages/security-boundary-quickstart.svg new file mode 100644 index 0000000000..9c1c90efaf --- /dev/null +++ b/docs/assets/readme/packages/security-boundary-quickstart.svg @@ -0,0 +1,10 @@ +@claude-flow/security boundary quickstartThe README recipe run on Node 22: user@example.com passes the email schema, not-an-email is rejected with a ZodError, a bcrypt hash with cost 12 verifies true, and a 48-character ck_live_ API key is generated. + + +SECURITY · SYSTEM BOUNDARY@claude-flow/securityValidate input, hash secrets, mint keys. + +validate 'user@example.com'ok +validate 'not-an-email'rejected: ZodError +bcrypt hash (rounds 12) → $2b$12$…verify: true +generateApiKey('ck_live_')ck_live_… (48 chars) + diff --git a/plugins/ruflo-graph-intelligence/package.json b/plugins/ruflo-graph-intelligence/package.json index 6748720f49..9bd55c190b 100644 --- a/plugins/ruflo-graph-intelligence/package.json +++ b/plugins/ruflo-graph-intelligence/package.json @@ -1,7 +1,16 @@ { "name": "ruflo-graph-intelligence", "version": "0.1.0-alpha.1", - "description": "RuFlo Graph Intelligence Engine — real-time relationship intelligence with complexity-aware execution. Single-entry personalized PageRank, streaming delta updates, witness-signed reasoning artifacts over RuFlo's substrate graphs.", + "description": "RuFlo Graph Intelligence Engine: single-entry personalized PageRank, streaming delta updates and witness-signed reasoning artifacts over RuFlo substrate graphs.", + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "plugins/ruflo-graph-intelligence" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" + }, "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -34,23 +43,19 @@ "vitest": "^4.0.16" }, "keywords": [ - "ruflo", + "graph", "graph-intelligence", "pagerank", - "sublinear", - "complexity-aware", "personalized-pagerank", - "agent-substrate", + "sublinear", + "graph-algorithms", "mcp", + "claude-code", + "ruflo", "claude-flow" ], "author": "ruvnet", "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/ruvnet/ruflo.git", - "directory": "plugins/ruflo-graph-intelligence" - }, "engines": { "node": ">=20.0.0" } diff --git a/v3/@claude-flow/deployment/package.json b/v3/@claude-flow/deployment/package.json index 468627a0e9..61f100b9bf 100644 --- a/v3/@claude-flow/deployment/package.json +++ b/v3/@claude-flow/deployment/package.json @@ -3,6 +3,27 @@ "version": "3.0.0", "type": "module", "description": "Deployment module - Release management, CI/CD, versioning", + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "v3/@claude-flow/deployment" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" + }, + "keywords": [ + "release-management", + "deployment", + "versioning", + "semver", + "changelog", + "conventional-commits", + "npm-publish", + "ci-cd", + "claude-flow", + "ruflo" + ], "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { diff --git a/v3/@claude-flow/embeddings/package.json b/v3/@claude-flow/embeddings/package.json index 7b03b3241a..5fbdb92e0d 100644 --- a/v3/@claude-flow/embeddings/package.json +++ b/v3/@claude-flow/embeddings/package.json @@ -2,6 +2,15 @@ "name": "@claude-flow/embeddings", "version": "3.0.0-alpha.18", "description": "V3 Embedding Service - OpenAI, Transformers.js, Agentic-Flow (ONNX), Mock providers with hyperbolic embeddings, normalization, and chunking", + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "v3/@claude-flow/embeddings" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" + }, "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", @@ -24,17 +33,17 @@ }, "keywords": [ "embeddings", + "vector-embeddings", "openai", "transformers", - "vector", - "similarity", - "claude-flow", - "v3", - "hyperbolic", + "onnx", + "hyperbolic-embeddings", "poincare", - "normalization", "chunking", - "neural-substrate" + "semantic-search", + "vector-search", + "claude-flow", + "ruflo" ], "author": "Claude Flow Team", "license": "MIT", diff --git a/v3/@claude-flow/memory/README.md b/v3/@claude-flow/memory/README.md index fb642da657..6fb2feb2d5 100644 --- a/v3/@claude-flow/memory/README.md +++ b/v3/@claude-flow/memory/README.md @@ -1,5 +1,9 @@ +

@claude-flow/memory quickstart: three vectors go into an HNSWIndex and a cosine query returns doc-a (distance 0) and doc-b (distance 0.0061).

+ # @claude-flow/memory +**Persistent vector memory for AI agents:** store embeddings, search them with HNSW, and keep them across restarts, from one `MemoryService` API. + [![npm version](https://img.shields.io/npm/v/@claude-flow/memory.svg)](https://www.npmjs.com/package/@claude-flow/memory) [![Ecosystem downloads](https://img.shields.io/badge/ecosystem%20downloads-22.2M%2B-blue.svg)](https://github.com/ruvnet/ruflo/blob/main/data/clone-data.proof.json) [![Git clones (14d)](https://img.shields.io/badge/git%20clones%2014d-115k-blueviolet.svg)](https://github.com/ruvnet/ruflo/blob/main/data/clone-data.ledger.json) @@ -46,6 +50,42 @@ This release closes out [ADR-125 — Memory Consolidation](../../../v3/docs/adr/ npm install @claude-flow/memory ``` + +## Supported environments + +- Node.js, ESM (`import`). The quickstart below was run on Node 22 (Linux x64). +- Storage: `sql.js` (WebAssembly SQLite, no native build). `better-sqlite3` is an optional dependency. +- Works standalone. The Ruflo CLI (`@claude-flow/cli`) isn't required. + +## Quickstart (verified) + +```bash +npm install @claude-flow/memory +``` + +```js +// quickstart.mjs +import { HNSWIndex } from '@claude-flow/memory'; + +const index = new HNSWIndex({ dimensions: 8, M: 16, efConstruction: 200, metric: 'cosine' }); +await index.addPoint('doc-a', new Float32Array([1, 0, 0, 0, 0, 0, 0, 0])); +await index.addPoint('doc-b', new Float32Array([0.9, 0.1, 0, 0, 0, 0, 0, 0])); +await index.addPoint('doc-c', new Float32Array([0, 1, 0, 0, 0, 0, 0, 0])); + +console.log(await index.search(new Float32Array([1, 0, 0, 0, 0, 0, 0, 0]), 2)); +``` + +Expected output (`node quickstart.mjs`, @claude-flow/memory 3.3.0): + +```text +[ + { id: 'doc-a', distance: 0 }, + { id: 'doc-b', distance: 0.006116271018981934 } +] +``` + +**Next:** turn text into vectors for this index with [`@claude-flow/embeddings`](https://www.npmjs.com/package/@claude-flow/embeddings). + ## Standalone use (without the Ruflo CLI) This package works on its own — you don't need `@claude-flow/cli` or the @@ -74,7 +114,7 @@ await index.addPoint('doc-c', new Float32Array([0, 1, 0, 0, 0, 0, 0, 0])); // Search — top 2 nearest to "doc-a"-shaped query const hits = await index.search(new Float32Array([1, 0, 0, 0, 0, 0, 0, 0]), 2); -console.log(hits); // [{ id: 'doc-a', distance: 0 }, { id: 'doc-b', distance: ~0.005 }] +console.log(hits); // [{ id: 'doc-a', distance: 0 }, { id: 'doc-b', distance: 0.0061… }] ``` ### Recipe 2 — Drive the controller registry against your own AgentDB diff --git a/v3/@claude-flow/memory/package.json b/v3/@claude-flow/memory/package.json index d732b0c1dc..86f0ebf762 100644 --- a/v3/@claude-flow/memory/package.json +++ b/v3/@claude-flow/memory/package.json @@ -3,6 +3,29 @@ "version": "3.3.0", "type": "module", "description": "Memory module - AgentDB unification, HNSW indexing, vector search, hybrid SQLite+AgentDB backend (ADR-009)", + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "v3/@claude-flow/memory" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" + }, + "keywords": [ + "agent-memory", + "vector-search", + "vector-database", + "hnsw", + "semantic-search", + "embeddings", + "agentdb", + "sqlite", + "ai-agents", + "claude-flow", + "ruflo", + "typescript" + ], "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { diff --git a/v3/@claude-flow/performance/package.json b/v3/@claude-flow/performance/package.json index 541cf59803..ee30bff783 100644 --- a/v3/@claude-flow/performance/package.json +++ b/v3/@claude-flow/performance/package.json @@ -3,6 +3,28 @@ "version": "3.0.2", "type": "module", "description": "Performance module - benchmarking, Flash Attention validation, optimization", + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "v3/@claude-flow/performance" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" + }, + "keywords": [ + "benchmark", + "benchmarking", + "performance", + "regression-detection", + "memory-profiling", + "statistics", + "flash-attention", + "ai-agents", + "claude-flow", + "ruflo", + "typescript" + ], "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { diff --git a/v3/@claude-flow/plugin-agent-federation/package.json b/v3/@claude-flow/plugin-agent-federation/package.json index 22900156c6..2ad0b7042d 100644 --- a/v3/@claude-flow/plugin-agent-federation/package.json +++ b/v3/@claude-flow/plugin-agent-federation/package.json @@ -2,7 +2,15 @@ "name": "@claude-flow/plugin-agent-federation", "version": "1.0.7", "description": "Cross-installation agent federation with zero-trust security, PII-gated data flow, and compliance-grade audit trails.", - "homepage": "https://github.com/ruvnet/ruflo", + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "v3/@claude-flow/plugin-agent-federation" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" + }, "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -49,11 +57,15 @@ "keywords": [ "federation", "multi-agent", - "trust", + "ai-agents", + "zero-trust", "pii", "security", - "audit", - "compliance" + "audit-trail", + "compliance", + "claude-flow-plugin", + "claude-flow", + "ruflo" ], "author": "Claude Flow Team", "license": "MIT" diff --git a/v3/@claude-flow/plugin-iot-cognitum/package.json b/v3/@claude-flow/plugin-iot-cognitum/package.json index 9920aa3070..06c694f496 100644 --- a/v3/@claude-flow/plugin-iot-cognitum/package.json +++ b/v3/@claude-flow/plugin-iot-cognitum/package.json @@ -2,7 +2,15 @@ "name": "@claude-flow/plugin-iot-cognitum", "version": "1.0.0", "description": "IoT Cognitum Seed device-agent bridge — treat every Seed as a Ruflo agent. Get a Seed at https://cognitum.one.", - "homepage": "https://cognitum.one", + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "v3/@claude-flow/plugin-iot-cognitum" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" + }, "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -39,12 +47,15 @@ }, "keywords": [ "iot", + "edge-devices", + "device-fleet", "cognitum", - "seed", - "device", - "fleet", - "agent", - "swarm" + "cognitum-seed", + "ai-agents", + "swarm", + "claude-flow-plugin", + "claude-flow", + "ruflo" ], "author": "Claude Flow Team", "license": "MIT" diff --git a/v3/@claude-flow/plugins/package.json b/v3/@claude-flow/plugins/package.json index 05f9383d09..25e99f7450 100644 --- a/v3/@claude-flow/plugins/package.json +++ b/v3/@claude-flow/plugins/package.json @@ -2,6 +2,15 @@ "name": "@claude-flow/plugins", "version": "3.0.3", "description": "Unified Plugin SDK for Claude Flow V3 - Worker, Hook, and Provider Integration", + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "v3/@claude-flow/plugins" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" + }, "main": "dist/index.js", "types": "dist/index.d.ts", "type": "module", @@ -70,19 +79,18 @@ "vitest": "^4.1.0" }, "keywords": [ - "claude-flow", "plugins", + "plugin-sdk", "sdk", - "workers", "hooks", - "agentic-flow", - "agentdb", + "workers", + "llm-providers", "ai-agents", + "agentdb", "ruvector", - "hnsw", "vector-search", - "lora", - "neural-adaptation" + "claude-flow", + "ruflo" ], "author": "Claude Flow Team", "license": "MIT", diff --git a/v3/@claude-flow/providers/package.json b/v3/@claude-flow/providers/package.json index e6568c698b..2bd4ede0ef 100644 --- a/v3/@claude-flow/providers/package.json +++ b/v3/@claude-flow/providers/package.json @@ -2,6 +2,15 @@ "name": "@claude-flow/providers", "version": "3.0.1", "description": "Multi-LLM Provider System for Claude Flow V3", + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "v3/@claude-flow/providers" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" + }, "main": "dist/index.js", "module": "dist/index.js", "types": "dist/index.d.ts", @@ -28,17 +37,18 @@ "typecheck": "tsc --noEmit" }, "keywords": [ - "claude-flow", "llm", - "provider", + "llm-providers", + "multi-provider", "anthropic", "openai", - "google", - "cohere", + "gemini", "ollama", - "multi-provider", + "failover", "load-balancing", - "failover" + "claude", + "claude-flow", + "ruflo" ], "author": "Claude Flow Team", "license": "MIT", diff --git a/v3/@claude-flow/security/README.md b/v3/@claude-flow/security/README.md index 31a4236c6d..71727356b1 100644 --- a/v3/@claude-flow/security/README.md +++ b/v3/@claude-flow/security/README.md @@ -1,5 +1,9 @@ +

@claude-flow/security quickstart: a valid email passes, an invalid one is rejected with a ZodError, a bcrypt hash verifies, and a 48-character API key is generated.

+ # @claude-flow/security +**Security primitives for the system boundary of an agent app:** validate input, hash passwords, generate credentials, and block command injection and path traversal. + [![npm version](https://img.shields.io/npm/v/@claude-flow/security.svg)](https://www.npmjs.com/package/@claude-flow/security) [![npm downloads](https://img.shields.io/npm/dm/@claude-flow/security.svg)](https://www.npmjs.com/package/@claude-flow/security) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) @@ -24,6 +28,45 @@ npm install @claude-flow/security ``` + +## Supported environments + +- Node.js, ESM (`import`). The quickstart below was run on Node 22 (Linux x64). +- Pure JavaScript dependencies (`bcryptjs`, `zod`, `@noble/ed25519`). No native build step. +- Works standalone. The Ruflo CLI (`@claude-flow/cli`) isn't required. + +## Quickstart (verified) + +```bash +npm install @claude-flow/security +``` + +```js +// quickstart.mjs +import { InputValidator, EmailSchema, PasswordHasher, createCredentialGenerator } from '@claude-flow/security'; + +console.log('email ok:', InputValidator.validate(EmailSchema, 'user@example.com')); +try { InputValidator.validate(EmailSchema, 'not-an-email'); } catch (e) { console.log('rejected:', e.constructor.name); } + +const hasher = new PasswordHasher({ rounds: 12 }); +const hash = await hasher.hash('CorrectHorseBatteryStaple9'); +console.log('hash prefix:', hash.slice(0, 7), 'verify:', await hasher.verify('CorrectHorseBatteryStaple9', hash)); + +const apiKey = createCredentialGenerator().generateApiKey('ck_live_'); +console.log('api key prefix:', apiKey.key.slice(0, 8), 'length:', apiKey.key.length); +``` + +Expected output (`node quickstart.mjs`, @claude-flow/security 3.0.7): + +```text +email ok: user@example.com +rejected: ZodError +hash prefix: $2b$12$ verify: true +api key prefix: ck_live_ length: 48 +``` + +**Next:** add prompt-injection and jailbreak detection for LLM input with [`@claude-flow/aidefence`](https://www.npmjs.com/package/@claude-flow/aidefence). + ## Standalone use (without the Ruflo CLI) This is a plain library — every primitive (`PasswordHasher`, diff --git a/v3/@claude-flow/security/package.json b/v3/@claude-flow/security/package.json index 66b7e273b7..3b071615a7 100644 --- a/v3/@claude-flow/security/package.json +++ b/v3/@claude-flow/security/package.json @@ -3,6 +3,29 @@ "version": "3.0.7", "type": "module", "description": "Security module - CVE fixes, input validation, path security", + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "v3/@claude-flow/security" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" + }, + "keywords": [ + "security", + "input-validation", + "path-traversal", + "command-injection", + "password-hashing", + "bcrypt", + "credential-management", + "zod", + "ai-agents", + "claude-flow", + "ruflo", + "typescript" + ], "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/v3/@claude-flow/swarm/package.json b/v3/@claude-flow/swarm/package.json index da65597a9d..be0b513270 100644 --- a/v3/@claude-flow/swarm/package.json +++ b/v3/@claude-flow/swarm/package.json @@ -3,6 +3,15 @@ "version": "3.0.5", "type": "module", "description": "Standalone swarm coordination - up to 100+ agents, 4 topologies, hive-mind, consensus", + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "v3/@claude-flow/swarm" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" + }, "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ @@ -24,11 +33,15 @@ "keywords": [ "swarm", "multi-agent", - "coordination", + "multi-agent-systems", + "agent-orchestration", "consensus", "hive-mind", - "distributed", - "ai-agents" + "distributed-systems", + "ai-agents", + "claude-flow", + "ruflo", + "typescript" ], "publishConfig": { "access": "public" diff --git a/v3/@claude-flow/testing/package.json b/v3/@claude-flow/testing/package.json index 2fde20483c..babdcefb30 100644 --- a/v3/@claude-flow/testing/package.json +++ b/v3/@claude-flow/testing/package.json @@ -3,6 +3,15 @@ "version": "3.0.0", "type": "module", "description": "Testing module - TDD London School framework, test utilities, fixtures, and mock services for V3 Claude-Flow", + "homepage": "https://ruv.io", + "repository": { + "type": "git", + "url": "git+https://github.com/ruvnet/ruflo.git", + "directory": "v3/@claude-flow/testing" + }, + "bugs": { + "url": "https://github.com/ruvnet/ruflo/issues" + }, "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { @@ -37,13 +46,17 @@ "typecheck": "tsc --noEmit" }, "keywords": [ - "claude-flow", "testing", "vitest", "tdd", "london-school", "mocks", - "fixtures" + "test-fixtures", + "test-utilities", + "ai-agents", + "claude-flow", + "ruflo", + "typescript" ], "peerDependencies": { "@claude-flow/memory": "^3.0.0", From 39812bb5ed489f15994391dfa5bd03d5e66c22a0 Mon Sep 17 00:00:00 2001 From: PerryLink Date: Tue, 10 Nov 2026 21:06:25 +0800 Subject: [PATCH 3/9] fix(memory): resolve insight keys in onInsightAccessed and update by entry id (#4911) `onInsightAccessed()` resolved its argument with `backend.get(entryId)`, but the bridge's callers address insights by the key they were stored under (AutoMemoryBridge.storeInsightInAgentDB), while `createDefaultEntry` mints the internal `entry.id` independently. A key lookup missed silently: no confidence boost, no post-consolidation trajectory reopen. The same mismatch passed the key to `backend.update()`, which expects the id. Resolve with `getByKey(insightNamespace, entryId)` first and fall back to `get(entryId)` for id callers, then update by `entry.id`. Adds a regression test that stores an entry under its key, accesses it by that key, and asserts the boost is applied to the internal entry. --- .../memory/src/learning-bridge.test.ts | 18 ++++++++++++++++++ v3/@claude-flow/memory/src/learning-bridge.ts | 19 +++++++++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/v3/@claude-flow/memory/src/learning-bridge.test.ts b/v3/@claude-flow/memory/src/learning-bridge.test.ts index c14b770ef7..09d2939e0e 100644 --- a/v3/@claude-flow/memory/src/learning-bridge.test.ts +++ b/v3/@claude-flow/memory/src/learning-bridge.test.ts @@ -331,6 +331,24 @@ describe('LearningBridge', () => { }); }); + it('should resolve a stored key and update the entry by its internal id', async () => { + const entry = createTestEntry({ + id: 'internal-1', + key: 'insight:debugging:12345:0', + metadata: { confidence: 0.5 }, + }); + backend.storedEntries.push(entry); + + await bridge.onInsightAccessed(entry.key); + + expect(backend.getByKey).toHaveBeenCalledWith('learnings', entry.key); + expect(backend.get).not.toHaveBeenCalled(); + expect(backend.update).toHaveBeenCalledWith('internal-1', { + metadata: expect.objectContaining({ confidence: 0.53 }), + }); + expect(entry.metadata?.confidence).toBeCloseTo(0.53); + }); + it('should cap confidence at maxConfidence', async () => { const entry = createTestEntry({ metadata: { confidence: 0.99 } }); (backend.get as any).mockResolvedValueOnce(entry); diff --git a/v3/@claude-flow/memory/src/learning-bridge.ts b/v3/@claude-flow/memory/src/learning-bridge.ts index ec621eca3d..2c0ae28681 100644 --- a/v3/@claude-flow/memory/src/learning-bridge.ts +++ b/v3/@claude-flow/memory/src/learning-bridge.ts @@ -218,7 +218,7 @@ export class LearningBridge extends EventEmitter { async onInsightAccessed(entryId: string): Promise { if (!this.config.enabled || this.destroyed) return; - const entry = await this.backend.get(entryId); + const entry = await this.getInsightEntry(entryId); if (!entry) return; const currentConf = (entry.metadata?.confidence as number) ?? 0.5; @@ -227,7 +227,7 @@ export class LearningBridge extends EventEmitter { currentConf + this.config.accessBoostAmount, ); - await this.backend.update(entryId, { + await this.backend.update(entry.id, { metadata: { ...entry.metadata, confidence: newConf }, }); @@ -251,6 +251,21 @@ export class LearningBridge extends EventEmitter { this.emit('insight:accessed', { entryId, newConfidence: newConf }); } + /** + * Resolve an insight the caller addresses by the key it was stored under. + * `get()` only knows the backend's internal `entry.id`, and + * `createDefaultEntry` mints that id independently of the caller's key, so a + * key lookup must go through `getByKey` first; fall back to `get()` for + * callers that really pass an id. + */ + private async getInsightEntry(entryId: string): Promise { + if (typeof this.backend.getByKey === 'function') { + const byKey = await this.backend.getByKey(this.config.insightNamespace, entryId); + if (byKey) return byKey; + } + return this.backend.get(entryId); + } + /** * Consolidate active trajectories by completing them in the neural system. * Only runs when there are enough active trajectories to justify the cost. From e3dbd8b21644e1f67d8cce94ecc289244e8d5dbb Mon Sep 17 00:00:00 2001 From: r Date: Tue, 10 Nov 2026 13:05:57 -0500 Subject: [PATCH 4/9] chore(cli): pin @claude-flow/shared 3.0.8 (zod 4) in cli and root shared 3.0.8 is on npm, built from this branch's head 824b38a75 (dist byte-identical to a local build of that commit). The cli importer now links the workspace shared; the orphaned registry shared@3.0.7 entry is dropped from the pnpm lock. Co-Authored-By: RuFlo --- package-lock.json | 28 ++++++++++++++++++++-------- package.json | 2 +- v3/@claude-flow/cli/package.json | 2 +- v3/pnpm-lock.yaml | 20 ++------------------ 4 files changed, 24 insertions(+), 28 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5f7b948cfb..4ba4961d23 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@claude-flow/neural": "3.0.3", "@claude-flow/plugin-agent-federation": "1.0.7", "@claude-flow/security": "3.0.7", - "@claude-flow/shared": "3.0.7", + "@claude-flow/shared": "3.0.8", "@electron/asar": "^4.3.1", "@iarna/toml": "^2.2.5", "@noble/ed25519": "2.3.0", @@ -283,11 +283,26 @@ "link": true }, "node_modules/@claude-flow/shared": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@claude-flow/shared/-/shared-3.0.7.tgz", - "integrity": "sha512-eX/JdzywhVFxL+BQaMOphPBVL95icFJgf3piNzTyGy2nT8zFqdDQ34qpS+RfFv3Yjpo00NDj/4CzoqRTni7ImA==", + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@claude-flow/shared/-/shared-3.0.8.tgz", + "integrity": "sha512-MeQY5KQpWTaRvF5mmFlV6vaogj6qN6SBNoK77D0/4sfUQrByAVMscpXq2KUZCMre8tdVE+r9+NW1ZQklyREpcw==", "dependencies": { - "sql.js": "^1.10.3" + "@types/ws": "^8.5.10", + "cors": "^2.8.5", + "express": "^4.22.3 || ^5.1.0", + "helmet": "^7.2.0", + "sql.js": "^1.10.3", + "ws": "^8.21.0", + "zod": "^4.6.7" + } + }, + "node_modules/@claude-flow/shared/node_modules/zod": { + "version": "4.6.7", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" } }, "node_modules/@electron/asar": { @@ -5228,7 +5243,6 @@ "version": "20.19.27", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.27.tgz", "integrity": "sha512-N2clP5pJhB2YnZJ3PIHFk5RkygRX5WO/5f0WC08tp0wd+sv0rsJk3MqWn3CbNmT2J505a5336jaQj4ph1AdMug==", - "devOptional": true, "license": "MIT", "dependencies": { "undici-types": "~6.21.0" @@ -5303,7 +5317,6 @@ "version": "8.18.1", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==", - "devOptional": true, "license": "MIT", "dependencies": { "@types/node": "*" @@ -13244,7 +13257,6 @@ "version": "6.21.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "devOptional": true, "license": "MIT" }, "node_modules/unicorn-magic": { diff --git a/package.json b/package.json index d396f6647f..7f51a40eeb 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "@claude-flow/neural": "3.0.3", "@claude-flow/plugin-agent-federation": "1.0.7", "@claude-flow/security": "3.0.7", - "@claude-flow/shared": "3.0.7", + "@claude-flow/shared": "3.0.8", "@electron/asar": "^4.3.1", "@iarna/toml": "^2.2.5", "@noble/ed25519": "2.3.0", diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json index eeff7bfc6c..1056e4fa4d 100644 --- a/v3/@claude-flow/cli/package.json +++ b/v3/@claude-flow/cli/package.json @@ -107,7 +107,7 @@ "@claude-flow/neural": "3.0.3", "@claude-flow/plugin-agent-federation": "1.0.7", "@claude-flow/security": "3.0.7", - "@claude-flow/shared": "3.0.7", + "@claude-flow/shared": "3.0.8", "@iarna/toml": "^2.2.5", "@metaharness/darwin": "~0.13.0", "@noble/ed25519": "2.3.0", diff --git a/v3/pnpm-lock.yaml b/v3/pnpm-lock.yaml index ec4e28feaf..b0eca9f516 100644 --- a/v3/pnpm-lock.yaml +++ b/v3/pnpm-lock.yaml @@ -136,8 +136,8 @@ importers: specifier: 3.0.7 version: link:../security '@claude-flow/shared': - specifier: 3.0.7 - version: 3.0.7 + specifier: 3.0.8 + version: link:../shared '@electron/asar': specifier: ^4.3.1 version: 4.3.1 @@ -983,22 +983,6 @@ packages: '@napi-rs/keyring': 1.3.0 dev: false - /@claude-flow/shared@3.0.7: - resolution: {integrity: sha512-eX/JdzywhVFxL+BQaMOphPBVL95icFJgf3piNzTyGy2nT8zFqdDQ34qpS+RfFv3Yjpo00NDj/4CzoqRTni7ImA==} - dependencies: - '@types/ws': 8.18.1 - cors: 2.8.6 - express: 5.2.1 - helmet: 7.2.0 - sql.js: 1.14.1 - ws: 8.21.1 - zod: 3.25.76 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - dev: false - /@cognitum-one/sdk@0.2.1(multicast-dns@7.2.5): resolution: {integrity: sha512-ZIYKq6Tqc7zcDQRSrxphm0Uji497Mf1bi7azn2aTM4F0k+IEdPpTmAngGVaXX/hR7DYhOQ5gkUCja0DiOJLOJw==} engines: {node: '>=18'} From e89236b0ec25f74922613c02aa135035057ef8b8 Mon Sep 17 00:00:00 2001 From: r Date: Tue, 10 Nov 2026 13:08:07 -0500 Subject: [PATCH 5/9] =?UTF-8?q?chore(memory):=203.3.1=20=E2=80=94=20onInsi?= =?UTF-8?q?ghtAccessed=20key=20lookup=20(#4942)=20+=20package=20metadata?= =?UTF-8?q?=20(#4932)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps @claude-flow/memory to 3.3.1 and moves the CLI's exact pin. Must not merge before @claude-flow/memory@3.3.1 is on npm (audit-leaf-versions-published). Co-Authored-By: RuFlo --- v3/@claude-flow/cli/package.json | 4 ++-- v3/@claude-flow/memory/package.json | 2 +- v3/pnpm-lock.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json index 2e693f58d4..12d51280dc 100644 --- a/v3/@claude-flow/cli/package.json +++ b/v3/@claude-flow/cli/package.json @@ -130,12 +130,12 @@ "ws": "^8.21.0", "yaml": "^2.8.0", "zod": "^3.22.0", - "@claude-flow/memory": "3.3.0" + "@claude-flow/memory": "3.3.1" }, "optionalDependencies": { "@agntcy/slim-bindings": "2.1.1", "@claude-flow/aidefence": "3.2.1", - "@claude-flow/memory": "3.3.0", + "@claude-flow/memory": "3.3.1", "@metaharness/flywheel": "~0.1.10", "@metaharness/radio": "~0.1.0", "@metaharness/turn-credit": "~0.1.0", diff --git a/v3/@claude-flow/memory/package.json b/v3/@claude-flow/memory/package.json index 86f0ebf762..b98ec62033 100644 --- a/v3/@claude-flow/memory/package.json +++ b/v3/@claude-flow/memory/package.json @@ -1,6 +1,6 @@ { "name": "@claude-flow/memory", - "version": "3.3.0", + "version": "3.3.1", "type": "module", "description": "Memory module - AgentDB unification, HNSW indexing, vector search, hybrid SQLite+AgentDB backend (ADR-009)", "homepage": "https://ruv.io", diff --git a/v3/pnpm-lock.yaml b/v3/pnpm-lock.yaml index b1a48e0b89..4b93c6ee26 100644 --- a/v3/pnpm-lock.yaml +++ b/v3/pnpm-lock.yaml @@ -224,7 +224,7 @@ importers: specifier: 3.2.1 version: link:../aidefence '@claude-flow/memory': - specifier: 3.3.0 + specifier: 3.3.1 version: link:../memory '@metaharness/flywheel': specifier: ~0.1.10 From dad3aeb365eeac0a1d11e3d39cb6200a8e185577 Mon Sep 17 00:00:00 2001 From: r Date: Tue, 10 Nov 2026 14:06:49 -0500 Subject: [PATCH 6/9] =?UTF-8?q?chore(swarm):=203.0.6=20=E2=80=94=20Raft=20?= =?UTF-8?q?legacy=20requestVote=20vote-once=20and=20log=20checks=20(#4938)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Published to npm from this commit. Co-Authored-By: RuFlo --- v3/@claude-flow/swarm/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3/@claude-flow/swarm/package.json b/v3/@claude-flow/swarm/package.json index da65597a9d..da7212271a 100644 --- a/v3/@claude-flow/swarm/package.json +++ b/v3/@claude-flow/swarm/package.json @@ -1,6 +1,6 @@ { "name": "@claude-flow/swarm", - "version": "3.0.5", + "version": "3.0.6", "type": "module", "description": "Standalone swarm coordination - up to 100+ agents, 4 topologies, hive-mind, consensus", "main": "dist/index.js", From b05b7a640d4426df403ef14069d1120e18c2fe3f Mon Sep 17 00:00:00 2001 From: r Date: Tue, 10 Nov 2026 14:07:33 -0500 Subject: [PATCH 7/9] chore(ruflo-graph-intelligence): bump plugin to 0.3.0 Co-Authored-By: RuFlo --- plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json b/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json index 201c179d17..bbe69ce7aa 100644 --- a/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json +++ b/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "ruflo-graph-intelligence", "description": "RuFlo Graph Intelligence Engine — real-time relationship intelligence with complexity-aware execution. Single-entry personalized PageRank, streaming delta updates, witness-signed reasoning artifacts, federation-distributable PR vectors. Declares the zero-dependency @ruvnet/sublinear-core as its solver; ships a sublinear-core skill for PPR, local push and sparse solves.", - "version": "0.3.0-alpha.1", + "version": "0.3.0", "author": { "name": "ruvnet", "url": "https://github.com/ruvnet" From 8421e873222302f77052763173984cf634a1fae9 Mon Sep 17 00:00:00 2001 From: r Date: Tue, 10 Nov 2026 14:09:19 -0500 Subject: [PATCH 8/9] chore(release): 3.75.3 @claude-flow/cli, claude-flow and ruflo 3.75.3. Carries #4905 (shared 3.0.8, zod 4), #4947 (memory 3.3.1 pin), #4943, #4935, #4934, #4936 and #4938. ruflo-graph-intelligence plugin 0.3.1 (the version audit ignores prerelease tags, so 0.3.0 did not count as a raise over 0.3.0-alpha.1). Co-Authored-By: RuFlo --- package-lock.json | 4 ++-- package.json | 2 +- plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json | 2 +- ruflo/package.json | 4 ++-- ruflo/server.json | 4 ++-- v3/@claude-flow/cli/package.json | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 370d80e973..2d0df89e91 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "claude-flow", - "version": "3.75.2", + "version": "3.75.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "claude-flow", - "version": "3.75.2", + "version": "3.75.3", "bundleDependencies": [ "@claude-flow/codex", "@claude-flow/mcp", diff --git a/package.json b/package.json index 37fa97e89c..46bfe5993d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claude-flow", - "version": "3.75.2", + "version": "3.75.3", "workspaces": [ "v3/@claude-flow/codex", "v3/@claude-flow/mcp", diff --git a/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json b/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json index bbe69ce7aa..7d7fd4f136 100644 --- a/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json +++ b/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "ruflo-graph-intelligence", "description": "RuFlo Graph Intelligence Engine — real-time relationship intelligence with complexity-aware execution. Single-entry personalized PageRank, streaming delta updates, witness-signed reasoning artifacts, federation-distributable PR vectors. Declares the zero-dependency @ruvnet/sublinear-core as its solver; ships a sublinear-core skill for PPR, local push and sparse solves.", - "version": "0.3.0", + "version": "0.3.1", "author": { "name": "ruvnet", "url": "https://github.com/ruvnet" diff --git a/ruflo/package.json b/ruflo/package.json index 8f2bc9c97a..52c195ab91 100644 --- a/ruflo/package.json +++ b/ruflo/package.json @@ -1,7 +1,7 @@ { "name": "ruflo", "mcpName": "io.github.ruvnet/ruflo", - "version": "3.75.2", + "version": "3.75.3", "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.75.2" + "@claude-flow/cli": "3.75.3" }, "optionalDependencies": {}, "overrides": { diff --git a/ruflo/server.json b/ruflo/server.json index 5ef4461c88..79f7832bf5 100644 --- a/ruflo/server.json +++ b/ruflo/server.json @@ -9,12 +9,12 @@ "subfolder": "ruflo" }, "websiteUrl": "https://github.com/ruvnet/ruflo", - "version": "3.75.2", + "version": "3.75.3", "packages": [ { "registryType": "npm", "identifier": "ruflo", - "version": "3.75.2", + "version": "3.75.3", "runtimeHint": "npx", "transport": { "type": "stdio" diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json index caefe920fd..7582e5079c 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.75.2", + "version": "3.75.3", "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", From de84eef06d30bbbaf1568cf4b5f55462d17e0179 Mon Sep 17 00:00:00 2001 From: r Date: Tue, 10 Nov 2026 16:02:48 -0500 Subject: [PATCH 9/9] docs(ruflo-graph-intelligence): changelog entry for 0.3.1 The console's ADR-478 check parses a plugin's changelog once its version is stable semver; every heading here was a prerelease, so the file didn't parse. Co-Authored-By: RuFlo --- plugins/ruflo-graph-intelligence/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/ruflo-graph-intelligence/CHANGELOG.md b/plugins/ruflo-graph-intelligence/CHANGELOG.md index ecd7ba5d3c..81f1f67b7b 100644 --- a/plugins/ruflo-graph-intelligence/CHANGELOG.md +++ b/plugins/ruflo-graph-intelligence/CHANGELOG.md @@ -2,6 +2,9 @@ Newest first. One `## — ` heading per version, then `feat:`, `fix:`, `breaking:` and `chore:` bullets (ADR-478). Built from git history; this is the whole history. +## 0.3.1 — 2026-11-10 +- chore: first stable version. The npm manifest gains a canonical repository, homepage and bug-tracker link, and a shorter description. No code changes + ## 0.3.0-alpha.1 — 2026-11-05 - chore: the declared solver dependency moves from `sublinear-time-solver` ^1.7.0 to `@ruvnet/sublinear-core` ^1.0.0 (zero runtime dependencies). The engine never imported the old package (forward-push and CG run in-process), so results are unchanged: `tsc --noEmit` clean, vitest 104/104. The lockfile drops from 1,015 to 77 packages; `.github/supply-chain/allowed-deps.json` lists the new dependency - feat: new `sublinear-core` skill: personalized PageRank, local forward/backward push, `solve` and `estimateEntry`, with when to use `agentdb_graph-pathfinder` or the full `sublinear-time-solver` instead