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(deps): zod 4.6.7 in graph-intelligence and browser, time-boxed accepted entries for nested zod 3 (#4442) (#4444)

rUv2bc73c0994d8
diff --git a/.github/supply-chain/accepted-findings.json b/.github/supply-chain/accepted-findings.json
index bafb9e9368..e7bf8595ed 100644
--- a/.github/supply-chain/accepted-findings.json
+++ b/.github/supply-chain/accepted-findings.json
@@ -49,6 +49,26 @@
"trackingIssue": "https://github.com/ruvnet/ruflo/issues/2412",
"expiresAt": "2026-11-25",
"rationale": "Peer-dependency-only β€” the plugin does not redistribute cli's transitives. [email protected] ships its own audit on each publish. Re-audit and drop this entry once either (a) the peer is removed in favor of a slim interface package or (b) cli's tree no longer reports HIGH transitives."
+ },
+ {
+ "package": "plugins/ruflo-graph-intelligence",
+ "depName": "zod",
+ "severity": "high",
+ "via": ["GHSA-mrhx-c7xc-m3w5"],
+ "tracking": "ruflo#4442 β€” Zod <4.6.6 can exhaust memory validating oversized constrained collections (GHSA-mrhx-c7xc-m3w5). This project's OWN zod dependency is upgraded to ^4.6.7 (locked 4.6.7), so the schemas this project defines are patched. The audit still reports the package name `zod` because the lockfile also holds zod 3.25.76 copies NESTED inside other packages (@claude-flow/cli, hooks, security, plugin-gastown-bridge, and agentic-flow), none of which is this project's code; zod 3.x has no patched release.",
+ "trackingIssue": "https://github.com/ruvnet/ruflo/issues/4442",
+ "expiresAt": "2026-11-23",
+ "rationale": "The remaining 3.x copies belong to sibling @claude-flow/* packages and agentic-flow, which still depend on zod 3; moving them is a repo-wide zod 4 migration (each package's schemas and tests), tracked in #4442, not something to force through npm overrides here (zod 4 changes z.record and error APIs that code written for zod 3 relies on, and that cannot be tested from this project). Expires 2026-11-23 so the audit fails again and forces the decision."
+ },
+ {
+ "package": "v3/@claude-flow/browser",
+ "depName": "zod",
+ "severity": "high",
+ "via": ["GHSA-mrhx-c7xc-m3w5"],
+ "tracking": "ruflo#4442 β€” Zod <4.6.6 can exhaust memory validating oversized constrained collections (GHSA-mrhx-c7xc-m3w5). This project's OWN zod dependency is upgraded to ^4.6.7 (locked 4.6.7), so the schemas this project defines are patched. The audit still reports the package name `zod` because the lockfile also holds zod 3.25.76 copies NESTED inside other packages (@claude-flow/cli, hooks, security, plugin-gastown-bridge, and agentic-flow), none of which is this project's code; zod 3.x has no patched release.",
+ "trackingIssue": "https://github.com/ruvnet/ruflo/issues/4442",
+ "expiresAt": "2026-11-23",
+ "rationale": "The remaining 3.x copies belong to sibling @claude-flow/* packages and agentic-flow, which still depend on zod 3; moving them is a repo-wide zod 4 migration (each package's schemas and tests), tracked in #4442, not something to force through npm overrides here (zod 4 changes z.record and error APIs that code written for zod 3 relies on, and that cannot be tested from this project). Expires 2026-11-23 so the audit fails again and forces the decision."
}
],
"lockfile": [
diff --git a/plugins/ruflo-graph-intelligence/package-lock.json b/plugins/ruflo-graph-intelligence/package-lock.json
index 7e8783363b..7e601dbba2 100644
--- a/plugins/ruflo-graph-intelligence/package-lock.json
+++ b/plugins/ruflo-graph-intelligence/package-lock.json
@@ -10,7 +10,7 @@
"license": "MIT",
"dependencies": {
"sublinear-time-solver": "^1.7.0",
- "zod": "^3.22.4"
+ "zod": "^4.6.7"
},
"devDependencies": {
"@types/node": "^20.10.0",
@@ -1175,6 +1175,17 @@
"better-sqlite3": "^11.8.1"
}
},
+ "node_modules/@claude-flow/cli/node_modules/agentic-flow/node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
"node_modules/@claude-flow/cli/node_modules/ansi-regex": {
"version": "6.2.2",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
@@ -1513,17 +1524,6 @@
}
}
},
- "node_modules/@claude-flow/cli/node_modules/fastmcp/node_modules/zod": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
- "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
- "license": "MIT",
- "optional": true,
- "peer": true,
- "funding": {
- "url": "https://github.com/sponsors/colinhacks"
- }
- },
"node_modules/@claude-flow/cli/node_modules/finalhandler": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",
@@ -1618,6 +1618,17 @@
"node": ">=18"
}
},
+ "node_modules/@claude-flow/cli/node_modules/jose": {
+ "version": "5.10.0",
+ "resolved": "https://registry.npmjs.org/jose/-/jose-5.10.0.tgz",
+ "integrity": "sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==",
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/panva"
+ }
+ },
"node_modules/@claude-flow/cli/node_modules/media-typer": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
@@ -2106,6 +2117,17 @@
"@claude-flow/shared": "^3.0.0-alpha.1"
}
},
+ "node_modules/@claude-flow/hooks/node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
"node_modules/@claude-flow/mcp": {
"version": "3.0.0-alpha.9",
"resolved": "https://registry.npmjs.org/@claude-flow/mcp/-/mcp-3.0.0-alpha.9.tgz",
@@ -4410,6 +4432,17 @@
}
}
},
+ "node_modules/@claude-flow/plugin-gastown-bridge/node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
"node_modules/@claude-flow/security": {
"version": "3.0.0-alpha.10",
"resolved": "https://registry.npmjs.org/@claude-flow/security/-/security-3.0.0-alpha.10.tgz",
@@ -4422,6 +4455,17 @@
"zod": "^3.22.0"
}
},
+ "node_modules/@claude-flow/security/node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
"node_modules/@claude-flow/shared": {
"version": "3.0.0-alpha.8",
"resolved": "https://registry.npmjs.org/@claude-flow/shared/-/shared-3.0.0-alpha.8.tgz",
@@ -7260,9 +7304,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -7280,9 +7321,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -7300,9 +7338,6 @@
"ppc64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -7320,9 +7355,6 @@
"s390x"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -7340,9 +7372,6 @@
"x64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -7360,9 +7389,6 @@
"x64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -12006,9 +12032,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -12030,9 +12053,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -12054,9 +12074,6 @@
"x64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -12078,9 +12095,6 @@
"x64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -15375,9 +15389,9 @@
}
},
"node_modules/zod": {
- "version": "3.25.76",
- "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
- "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "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"
diff --git a/plugins/ruflo-graph-intelligence/package.json b/plugins/ruflo-graph-intelligence/package.json
index 602d4329a8..93420c27dc 100644
--- a/plugins/ruflo-graph-intelligence/package.json
+++ b/plugins/ruflo-graph-intelligence/package.json
@@ -20,7 +20,7 @@
},
"dependencies": {
"sublinear-time-solver": "^1.7.0",
- "zod": "^3.22.4"
+ "zod": "^4.6.7"
},
"overrides": {
"ws": ">=8.21.0"
diff --git a/plugins/ruflo-graph-intelligence/src/domain/types.ts b/plugins/ruflo-graph-intelligence/src/domain/types.ts
index 6a147bf60a..aba8d88231 100644
--- a/plugins/ruflo-graph-intelligence/src/domain/types.ts
+++ b/plugins/ruflo-graph-intelligence/src/domain/types.ts
@@ -27,7 +27,7 @@ export const SparseMatrixSchema = z.object({
/** Non-zero entries. */
entries: z.array(SparseEntrySchema),
/** Node-id β†’ row-index lookup so callers can talk in domain identifiers. */
- nodeIndex: z.record(z.number().int().nonnegative()),
+ nodeIndex: z.record(z.string(), z.number().int().nonnegative()),
/** Reverse lookup row-index β†’ node-id. */
indexNode: z.array(z.string()),
/** When the snapshot was taken (ISO). */
diff --git a/v3/@claude-flow/browser/package-lock.json b/v3/@claude-flow/browser/package-lock.json
index 41a845b7ca..1c7bf50ae7 100644
--- a/v3/@claude-flow/browser/package-lock.json
+++ b/v3/@claude-flow/browser/package-lock.json
@@ -12,7 +12,7 @@
"dependencies": {
"agent-browser": "^0.39.0",
"agentic-flow": "^2.0.13",
- "zod": "^3.22.4"
+ "zod": "^4.6.7"
},
"devDependencies": {
"@types/node": "^20.10.0",
@@ -425,6 +425,17 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
+ "node_modules/@claude-flow/cli/node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
"node_modules/@claude-flow/codex": {
"version": "3.0.0-alpha.12",
"resolved": "https://registry.npmjs.org/@claude-flow/codex/-/codex-3.0.0-alpha.12.tgz",
@@ -563,6 +574,17 @@
"@claude-flow/shared": "^3.0.0-alpha.1"
}
},
+ "node_modules/@claude-flow/hooks/node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
"node_modules/@claude-flow/mcp": {
"version": "3.0.0-alpha.9",
"resolved": "https://registry.npmjs.org/@claude-flow/mcp/-/mcp-3.0.0-alpha.9.tgz",
@@ -1366,6 +1388,17 @@
}
}
},
+ "node_modules/@claude-flow/plugin-gastown-bridge/node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
"node_modules/@claude-flow/security": {
"version": "3.0.0-alpha.10",
"resolved": "https://registry.npmjs.org/@claude-flow/security/-/security-3.0.0-alpha.10.tgz",
@@ -1378,6 +1411,17 @@
"zod": "^3.22.0"
}
},
+ "node_modules/@claude-flow/security/node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
"node_modules/@claude-flow/shared": {
"version": "3.0.0-alpha.8",
"resolved": "https://registry.npmjs.org/@claude-flow/shared/-/shared-3.0.0-alpha.8.tgz",
@@ -1604,9 +1648,6 @@
"cpu": [
"arm"
],
- "libc": [
- "glibc"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1624,9 +1665,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "glibc"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1644,9 +1682,6 @@
"cpu": [
"x64"
],
- "libc": [
- "glibc"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1664,9 +1699,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "musl"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1684,9 +1716,6 @@
"cpu": [
"x64"
],
- "libc": [
- "musl"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -1704,9 +1733,6 @@
"cpu": [
"arm"
],
- "libc": [
- "glibc"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1730,9 +1756,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "glibc"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1756,9 +1779,6 @@
"cpu": [
"x64"
],
- "libc": [
- "glibc"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1782,9 +1802,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "musl"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1808,9 +1825,6 @@
"cpu": [
"x64"
],
- "libc": [
- "musl"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -2148,9 +2162,6 @@
"cpu": [
"ppc64"
],
- "libc": [
- "glibc"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -2167,9 +2178,6 @@
"cpu": [
"riscv64"
],
- "libc": [
- "glibc"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -2186,9 +2194,6 @@
"cpu": [
"s390x"
],
- "libc": [
- "glibc"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -2297,9 +2302,6 @@
"cpu": [
"ppc64"
],
- "libc": [
- "glibc"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -2322,9 +2324,6 @@
"cpu": [
"riscv64"
],
- "libc": [
- "glibc"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -2347,9 +2346,6 @@
"cpu": [
"s390x"
],
- "libc": [
- "glibc"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -3684,9 +3680,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -3704,9 +3697,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -3724,9 +3714,6 @@
"ppc64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -3744,9 +3731,6 @@
"s390x"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -3764,9 +3748,6 @@
"x64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -3784,9 +3765,6 @@
"x64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -4289,9 +4267,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -4308,9 +4283,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -4327,9 +4299,6 @@
"cpu": [
"x64"
],
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -4346,9 +4315,6 @@
"cpu": [
"x64"
],
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -4548,9 +4514,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "glibc"
- ],
"license": "MIT OR Apache-2.0",
"optional": true,
"os": [
@@ -4567,9 +4530,6 @@
"cpu": [
"x64"
],
- "libc": [
- "glibc"
- ],
"license": "MIT OR Apache-2.0",
"optional": true,
"os": [
@@ -4888,9 +4848,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -4907,9 +4864,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -4926,9 +4880,6 @@
"cpu": [
"x64"
],
- "libc": [
- "glibc"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -4945,9 +4896,6 @@
"cpu": [
"x64"
],
- "libc": [
- "musl"
- ],
"license": "MIT",
"optional": true,
"os": [
@@ -5581,9 +5529,6 @@
"cpu": [
"arm"
],
- "libc": [
- "glibc"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -5600,9 +5545,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "glibc"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -5619,9 +5561,6 @@
"cpu": [
"x64"
],
- "libc": [
- "glibc"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -5638,9 +5577,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "musl"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -5657,9 +5593,6 @@
"cpu": [
"x64"
],
- "libc": [
- "musl"
- ],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
@@ -5676,9 +5609,6 @@
"cpu": [
"arm"
],
- "libc": [
- "glibc"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -5701,9 +5631,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "glibc"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -5726,9 +5653,6 @@
"cpu": [
"x64"
],
- "libc": [
- "glibc"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -5751,9 +5675,6 @@
"cpu": [
"arm64"
],
- "libc": [
- "musl"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -5776,9 +5697,6 @@
"cpu": [
"x64"
],
- "libc": [
- "musl"
- ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -6139,6 +6057,15 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/agentic-flow/node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
"node_modules/ajv": {
"version": "8.20.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",
@@ -7583,15 +7510,6 @@
"node": "^20.19.0 || ^22.12.0 || >=23"
}
},
- "node_modules/fastmcp/node_modules/zod": {
- "version": "4.4.3",
- "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
- "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/colinhacks"
- }
- },
"node_modules/fdir": {
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
@@ -8939,9 +8857,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -8963,9 +8878,6 @@
"arm64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -8987,9 +8899,6 @@
"x64"
],
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -9011,9 +8920,6 @@
"x64"
],
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -11869,9 +11775,9 @@
}
},
"node_modules/zod": {
- "version": "3.25.76",
- "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
- "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "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"
diff --git a/v3/@claude-flow/browser/package.json b/v3/@claude-flow/browser/package.json
index 28206b8671..db15500822 100644
--- a/v3/@claude-flow/browser/package.json
+++ b/v3/@claude-flow/browser/package.json
@@ -28,7 +28,7 @@
"dependencies": {
"agent-browser": "^0.39.0",
"agentic-flow": "^2.0.13",
- "zod": "^3.22.4"
+ "zod": "^4.6.7"
},
"overrides": {
"@opentelemetry/sdk-node": ">=0.218.0",
diff --git a/v3/@claude-flow/browser/src/domain/mcts-branch.ts b/v3/@claude-flow/browser/src/domain/mcts-branch.ts
index bcc0bcf665..ebb2459733 100644
--- a/v3/@claude-flow/browser/src/domain/mcts-branch.ts
+++ b/v3/@claude-flow/browser/src/domain/mcts-branch.ts
@@ -36,7 +36,7 @@ export const McTsBranchSchema = z.object({
/** Action this branch represents (open/click/fill/...). */
action: z.string().min(1),
/** Inputs for that action. */
- input: z.record(z.unknown()),
+ input: z.record(z.string(), z.unknown()),
/** Depth in the tree (root = 0). */
depth: z.number().int().nonnegative(),
/** Number of times this branch has been selected by UCB1. */
diff --git a/v3/@claude-flow/browser/src/domain/session-capsule.ts b/v3/@claude-flow/browser/src/domain/session-capsule.ts
index 8946f9367a..1d603ef6db 100644
--- a/v3/@claude-flow/browser/src/domain/session-capsule.ts
+++ b/v3/@claude-flow/browser/src/domain/session-capsule.ts
@@ -93,8 +93,8 @@ export const InlineStateSchema = z.object({
secure: z.boolean().optional(),
sameSite: z.enum(['Strict', 'Lax', 'None']).optional(),
})),
- localStorage: z.record(z.string()).default({}),
- sessionStorage: z.record(z.string()).default({}),
+ localStorage: z.record(z.string(), z.string()).default({}),
+ sessionStorage: z.record(z.string(), z.string()).default({}),
/** Metadata only β€” IndexedDB *contents* never leave the origin. */
indexedDbMeta: z.array(z.object({ dbName: z.string(), version: z.number().int() })).default([]),
});
diff --git a/v3/@claude-flow/browser/src/domain/signed-trajectory.ts b/v3/@claude-flow/browser/src/domain/signed-trajectory.ts
index df4f02c4ee..0a6289e5ea 100644
--- a/v3/@claude-flow/browser/src/domain/signed-trajectory.ts
+++ b/v3/@claude-flow/browser/src/domain/signed-trajectory.ts
@@ -36,7 +36,7 @@ export const SignedTrajectoryPayloadSchema = z.object({
verdict: z.string().optional(),
}),
/** Content hashes of screenshots referenced by steps (path β†’ sha256 hex). */
- screenshotHashes: z.record(z.string().regex(/^[0-9a-f]{64}$/)),
+ screenshotHashes: z.record(z.string(), z.string().regex(/^[0-9a-f]{64}$/)),
/** Final snapshot at endTrajectory β€” deterministic enough to drive replay. */
finalSnapshot: z.unknown().optional(),
/** When this envelope was sealed. */
diff --git a/v3/@claude-flow/browser/src/domain/types.ts b/v3/@claude-flow/browser/src/domain/types.ts
index 68bb603b07..cace15458c 100644
--- a/v3/@claude-flow/browser/src/domain/types.ts
+++ b/v3/@claude-flow/browser/src/domain/types.ts
@@ -164,7 +164,7 @@ export const OpenInputSchema = z.object({
url: z.string().url(),
session: z.string().optional(),
waitUntil: z.enum(['load', 'domcontentloaded', 'networkidle']).optional(),
- headers: z.record(z.string()).optional(),
+ headers: z.record(z.string(), z.string()).optional(),
timeout: z.number().positive().optional(),
});
export type OpenInput = z.infer<typeof OpenInputSchema>;
@@ -260,7 +260,7 @@ export const NetworkRouteInputSchema = z.object({
abort: z.boolean().optional(),
body: z.union([z.string(), z.object({})]).optional(),
status: z.number().int().optional(),
- headers: z.record(z.string()).optional(),
+ headers: z.record(z.string(), z.string()).optional(),
});
export type NetworkRouteInput = z.infer<typeof NetworkRouteInputSchema>;
diff --git a/v3/pnpm-lock.yaml b/v3/pnpm-lock.yaml
index 9f86754174..629d8b7464 100644
--- a/v3/pnpm-lock.yaml
+++ b/v3/pnpm-lock.yaml
@@ -77,8 +77,8 @@ importers:
specifier: ^2.0.13
version: 2.0.13(@types/[email protected])
zod:
- specifier: ^3.22.4
- version: 3.25.76
+ specifier: ^4.6.7
+ version: 4.6.7
devDependencies:
'@types/node':
specifier: ^20.10.0
@@ -13749,3 +13749,6 @@ packages:
resolution: {integrity: sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g==}
+
+ resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==}