agentic-flow 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/config/claudeFlow.d.ts +1 -1
- package/dist/intelligence/RuVectorIntelligence.d.ts +4 -2
- package/dist/intelligence/RuVectorIntelligence.d.ts.map +1 -1
- package/dist/intelligence/RuVectorIntelligence.js +35 -10
- package/dist/intelligence/RuVectorIntelligence.js.map +1 -1
- package/dist/mcp/claudeFlowSdkServer.d.ts.map +1 -1
- package/dist/mcp/claudeFlowSdkServer.js +3 -1
- package/dist/mcp/claudeFlowSdkServer.js.map +1 -1
- package/dist/mcp/fastmcp/tools/swarm/p2p-swarm-tools.d.ts +29 -121
- package/dist/mcp/fastmcp/tools/swarm/p2p-swarm-tools.d.ts.map +1 -1
- package/dist/mcp/fastmcp/tools/swarm/p2p-swarm-tools.js +1 -1
- package/dist/mcp/fastmcp/tools/swarm/p2p-swarm-tools.js.map +1 -1
- package/dist/mcp/sdk-tool-schema.d.ts +20 -0
- package/dist/mcp/sdk-tool-schema.d.ts.map +1 -0
- package/dist/mcp/sdk-tool-schema.js +31 -0
- package/dist/mcp/sdk-tool-schema.js.map +1 -0
- package/dist/optimizations/configuration-tuning.d.ts +1 -1
- package/dist/utils/agentdb-runtime-patch.js +2 -2
- package/dist/utils/agentdb-runtime-patch.js.map +1 -1
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [3.4.0] - 2026-11-06
|
|
6
|
+
|
|
7
|
+
Moves the package to zod 4. MCP clients see different default validation messages; see Changed.
|
|
8
|
+
|
|
9
|
+
### Security
|
|
10
|
+
- **`zod` `^3.25.76` → `^4.6.7`** ([GHSA-mrhx-c7xc-m3w5](https://github.com/advisories/GHSA-mrhx-c7xc-m3w5): memory exhaustion while validating oversized constrained collections; no 3.x release is fixed). To reach zod 4 everywhere, `@anthropic-ai/claude-agent-sdk` `^0.1.5` → `^0.1.77` (first release whose peer range accepts zod 4). `aidefence` 3.0.1 still declares `zod ^3.22.4`, so an `overrides` entry puts it on the top-level zod 4; its schemas and the `aidefence/dist/detection` entry point agentic-flow uses were checked under zod 4. The lockfile now holds a single zod copy, 4.6.7. (zod migration by @proffesor-for-testing, #244.)
|
|
11
|
+
- **`glob` `^13.0.0` → `^14.0.4`**, which also moves `minimatch` 10.2.6 → 11.0.5. This closes the glob AbortSignal cancellation bypass (`>=9.0.0 <=14.0.1`) and the minimatch globparts DoS (`>=7.0.0 <11.0.1`). glob is only loaded by the worker file scanners, through `import('glob')`; the API they use is unchanged.
|
|
12
|
+
- `tests/mcp/zod4-migration.test.ts` (in `test:governance`) fails if any zod 3, glob ≤ 14.0.1 or minimatch < 11.0.1 copy comes back into the lockfile.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- **zod 4 validation behaviour seen by MCP clients.** Default error texts and issue codes differ (`Required` → `Invalid input: expected string, received undefined`, `invalid_enum_value` → `invalid_value`); custom `refine` messages are unchanged. `z.number()` rejects `Infinity`, `.int()` rejects integers outside ±2^53 and advertises safe-integer bounds, and FastMCP `tools/list` schemas no longer emit `additionalProperties: false` (unknown keys are still stripped). The in-process claude-agent-sdk server keeps every parameter description (`withPortableDescriptions`) and, with SDK 0.1.77, reports invalid `tools/call` arguments as an `isError` result instead of a JSON-RPC `-32602` error.
|
|
16
|
+
- `p2p_swarm_publish.payload` stays optional under zod 4.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- **The AgentDB runtime patch looks for `dist/src/controllers/index.js`**, where agentdb 3.x ships it, so loading agentic-flow no longer prints `[AgentDB Patch] Controller index not found`. (@MediaPushai, #133.)
|
|
20
|
+
|
|
21
|
+
## [3.3.1] - 2026-11-06
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
- **`RuVectorIntelligence` now runs the native `@ruvector/attention` kernels it is configured for.** Six call shapes did not match the 2.x API, so each threw, the error was swallowed and the work went to the JS fallback:
|
|
25
|
+
- `attentionType: 'flash'`: `new FlashAttention(dim)` → `new FlashAttention(dim, 64)` (2.x requires the block size).
|
|
26
|
+
- `attentionType: 'graph'`: `new GraphRoPeAttention(dim, 10000)` → `new GraphRoPeAttention({ dim, maxPosition: 10000 })`. `routeTask` also had no `'graph'` branch, so even a constructed instance was never used.
|
|
27
|
+
- `attentionType: 'dual'`: positional `DualSpaceAttention(dim, c, 0.5, 0.5)` → `{ dim, curvature, euclideanWeight, hyperbolicWeight }`.
|
|
28
|
+
- `computeAttentionAsync(q, k, v)` (and `'standard'`): passed `AttentionType.MultiHead`, which does not exist, where the native function takes `dim`. It is native scaled dot-product attention.
|
|
29
|
+
- `computeAttentionAsync(..., 'flash')`: now passes `dim` and the block size; `'hyperbolic'` now passes `dim` before `curvature`.
|
|
30
|
+
|
|
31
|
+
`'moe'` (the default), `'multi_head'` and `'hyperbolic'` were already correct. A new test (`tests/integrations/native-attention.test.ts`) loads the real package and asserts the native `compute` ran and the fallback did not; it failed 6 of 10 cases on 3.3.0.
|
|
32
|
+
|
|
33
|
+
This is a correctness fix, not a speed-up. The configured algorithm now runs, but for routing-sized inputs the JS fallback (a different, cosine-weighted average) is faster: flash at dim 384 measured 19.8 µs native vs 17.1 µs JS with 20 keys, and 3.4 ms vs 0.73 ms with 1000 keys.
|
|
34
|
+
|
|
35
|
+
### Security
|
|
36
|
+
- **`@ruvector/sona` `^0.1.10` → `^0.1.11`.** 0.1.11 validates engine sizes (`new SonaEngine(0)` now throws instead of aborting), wraps every sync NAPI entry point in `catch_unwind` so a remaining panic surfaces as a JS `Error`, and bounds in-flight trajectories (10,000 per engine, 4,096 steps each). The lockfile now resolves 0.1.11 for every copy, including the ones under `agentdb` and `ruvector`. `sona-loader`'s LoRA length guard stays. (GHSA-c27m-v4wg-f9qj covers < 0.1.9 and was already excluded by 3.3.0's floor.)
|
|
37
|
+
|
|
38
|
+
### Removed
|
|
39
|
+
- `tests/agentdb/frontier-features.test.ts`, a byte-identical copy of `src/agentdb/tests/frontier-features.test.ts` whose relative imports could not resolve from `tests/`.
|
|
40
|
+
|
|
5
41
|
## [3.3.0] - 2026-11-05
|
|
6
42
|
|
|
7
43
|
Replaces the optional `sublinear-time-solver` with its zero-dependency core, `@ruvnet/sublinear-core@^1.0.0`, and drops the workarounds 3.2.0 needed for sublinear-time-solver 1.7.2.
|