agentic-flow 2.0.14 → 2.1.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 +87 -0
- package/README.md +376 -186
- package/dist/.tsbuildinfo +1 -1
- package/dist/agent-booster/index.d.ts +14 -0
- package/dist/agent-booster/index.d.ts.map +1 -0
- package/dist/agent-booster/index.js +25 -0
- package/dist/agent-booster/index.js.map +1 -0
- package/dist/harness/provenance.d.ts +72 -0
- package/dist/harness/provenance.d.ts.map +1 -0
- package/dist/harness/provenance.js +92 -0
- package/dist/harness/provenance.js.map +1 -0
- package/dist/mcp/standalone-stdio.js +4 -0
- package/dist/mcp/standalone-stdio.js.map +1 -1
- package/dist/mcp/tools/harness-tools.d.ts +28 -0
- package/dist/mcp/tools/harness-tools.d.ts.map +1 -0
- package/dist/mcp/tools/harness-tools.js +90 -0
- package/dist/mcp/tools/harness-tools.js.map +1 -0
- package/dist/optimizations/configuration-tuning.d.ts +1 -1
- package/dist/repair/cli.d.ts +24 -0
- package/dist/repair/cli.d.ts.map +1 -0
- package/dist/repair/cli.js +69 -0
- package/dist/repair/cli.js.map +1 -0
- package/dist/repair/darwin-repair.d.ts +80 -0
- package/dist/repair/darwin-repair.d.ts.map +1 -0
- package/dist/repair/darwin-repair.js +81 -0
- package/dist/repair/darwin-repair.js.map +1 -0
- package/dist/router/cost-optimal-router.d.ts +89 -0
- package/dist/router/cost-optimal-router.d.ts.map +1 -0
- package/dist/router/cost-optimal-router.js +94 -0
- package/dist/router/cost-optimal-router.js.map +1 -0
- package/dist/router/router.d.ts +29 -0
- package/dist/router/router.d.ts.map +1 -1
- package/dist/router/router.js +83 -0
- package/dist/router/router.js.map +1 -1
- package/dist/router/types.d.ts +1 -1
- package/dist/router/types.d.ts.map +1 -1
- package/dist/router/types.js.map +1 -1
- package/dist/transport/quic-loader.d.ts +33 -0
- package/dist/transport/quic-loader.d.ts.map +1 -1
- package/dist/transport/quic-loader.js +95 -0
- package/dist/transport/quic-loader.js.map +1 -1
- package/package.json +17 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,87 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [2.1.0] - 2026-06-23
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **Cost-optimal model routing (ADR-073).** New `CostOptimalRouter`
|
|
10
|
+
(`src/router/cost-optimal-router.ts`) wrapping
|
|
11
|
+
[`@metaharness/router`](https://www.npmjs.com/package/@metaharness/router):
|
|
12
|
+
routes each query to the _cheapest model predicted to clear a quality bar_,
|
|
13
|
+
learned from eval logs via k-NN / kernel-ridge (optional native FastGRNN via
|
|
14
|
+
the already-bundled `@ruvector/tiny-dancer`). Build from a flat
|
|
15
|
+
`(embedding → per-model quality)` dataset or explicit candidates; resolves
|
|
16
|
+
`"<provider>/<model>"` ids to concrete provider/model bindings.
|
|
17
|
+
- **`ModelRouter.enableCostOptimalRouting({ router, embed })`** adds a new
|
|
18
|
+
`'cost-optimal'` routing mode that embeds the query, picks the cost-optimal
|
|
19
|
+
model, and steers `params.model` — with a graceful fallback to the existing
|
|
20
|
+
cost heuristic when unconfigured or on error (routing never hard-fails). The
|
|
21
|
+
previous rule-based `'cost-optimized'` mode is unchanged.
|
|
22
|
+
- Bounded LRU embedding cache on the cost-optimal hot path (embedding dominates
|
|
23
|
+
latency vs the µs-scale k-NN; recurring prompts are common).
|
|
24
|
+
- Benchmark (`benchmarks/cost-optimal-router-benchmark.mjs`) and tests
|
|
25
|
+
(`tests/router/cost-optimal-router.test.ts`). Measured on a 3-tier lineup
|
|
26
|
+
(1000-query held-out test, bar=0.8): **28.5% cheaper than always-opus** while
|
|
27
|
+
holding **98.1%** of queries at/above the bar; routing latency **p50 73µs /
|
|
28
|
+
p99 125µs**.
|
|
29
|
+
- **Autonomous repair via Darwin Mode (ADR-074).** New `repair()` wrapper
|
|
30
|
+
(`src/repair/darwin-repair.ts`) and `agentic-flow-repair` CLI over
|
|
31
|
+
[`@metaharness/darwin`](https://www.npmjs.com/package/@metaharness/darwin):
|
|
32
|
+
freeze the model and evolve the harness (planner/context/reviewer/retry/tool/
|
|
33
|
+
memory/score policy), keeping only variants that measurably improve under a
|
|
34
|
+
frozen scorer + safety gate. Defaults to Test-Driven Repair (`'real'` sandbox —
|
|
35
|
+
the repo's own tests gate promotion, run shell-free with a scrubbed env);
|
|
36
|
+
`'mock'` is a deterministic, Docker-free substrate for hermetic tests. The full
|
|
37
|
+
SWE-bench-Lite TDR product (Docker grading) is run via Darwin's own CLI — see
|
|
38
|
+
ADR-074. New exports `agentic-flow/repair` and `agentic-flow/router/cost-optimal`.
|
|
39
|
+
- **Harness evolution MCP tools + provenance (ADR-075).** New `harness_repair`,
|
|
40
|
+
`harness_manifest`, and `harness_verify` MCP tools (`src/mcp/tools/harness-tools.ts`,
|
|
41
|
+
registered in the stdio server), mirroring claude-flow's `metaharness_*`. Plus an
|
|
42
|
+
Ed25519 **witness manifest** module (`src/harness/provenance.ts`, exported as
|
|
43
|
+
`agentic-flow/harness/provenance`): sign a sha256 manifest over harness/agent
|
|
44
|
+
config files and verify it + on-disk drift — built on Node's `crypto`, no deps.
|
|
45
|
+
- **Repositioned as the agentic meta-harness (ADR-076)** — README hero +
|
|
46
|
+
four-pillar framing (route / evolve / orchestrate / verify), `package.json`
|
|
47
|
+
description and keywords. Docs/positioning only; no behavior change.
|
|
48
|
+
- ADR-073/074/075/076 documenting the metaharness integration (all implemented).
|
|
49
|
+
|
|
50
|
+
### Dependencies
|
|
51
|
+
|
|
52
|
+
- Added `@metaharness/router` and `@metaharness/darwin` (both dependency-free;
|
|
53
|
+
optional `@ruvector/tiny-dancer` peer already present).
|
|
54
|
+
|
|
55
|
+
## [2.0.15] - 2026-06-23
|
|
56
|
+
|
|
57
|
+
### Fixed
|
|
58
|
+
|
|
59
|
+
- **#167 — `agentic-flow/agent-booster` subpath export pointed at a missing file.**
|
|
60
|
+
The `./agent-booster` export resolved to `dist/agent-booster/index.js`, which
|
|
61
|
+
was never emitted (the booster code lives under `intelligence/` and
|
|
62
|
+
`optimizations/`), so `import 'agentic-flow/agent-booster'` failed with
|
|
63
|
+
`ERR_MODULE_NOT_FOUND`. Added the missing barrel entrypoint
|
|
64
|
+
(`src/agent-booster/index.ts`) which re-exports the booster API and provides
|
|
65
|
+
the documented `AgentBooster` name (alias of `EnhancedAgentBooster`).
|
|
66
|
+
- **#162 — WebSocket fallback transport: stale-route `EHOSTUNREACH` after idle
|
|
67
|
+
on a direct point-to-point link.** `WebSocketFallbackTransport` now reuses an
|
|
68
|
+
already-open inbound (server-accepted) socket for replies before dialing a
|
|
69
|
+
fresh outbound connection — the full-duplex inbound direction stays healthy
|
|
70
|
+
when a new outbound dial would hit a per-process stale scoped route. Added a
|
|
71
|
+
liveness ping/pong heartbeat that terminates stale sockets, driven by
|
|
72
|
+
`maxIdleTimeoutMs` (previously accepted but unused — ping cadence is 1/6 of
|
|
73
|
+
it, default 30000ms → 5000ms).
|
|
74
|
+
|
|
75
|
+
### Notes
|
|
76
|
+
|
|
77
|
+
- **#146 (Ollama provider in config-wizard)** was already resolved in the 2.0.x
|
|
78
|
+
line: `OLLAMA_API_KEY`, `OLLAMA_BASE_URL`, and `'ollama'` are accepted by the
|
|
79
|
+
config wizard. The remaining asks in that issue (agentdb controller
|
|
80
|
+
prerequisites) are tracked in the `agentdb` package.
|
|
81
|
+
|
|
5
82
|
## [2.0.1-alpha.4] - 2025-12-03
|
|
6
83
|
|
|
7
84
|
### Added
|
|
85
|
+
|
|
8
86
|
- **SONA v0.1.4 Federated Learning Integration**: Complete integration with AgentDB
|
|
9
87
|
- Updated AgentDB dependency to 2.0.0-alpha.2.16
|
|
10
88
|
- Full support for `EphemeralLearningAgent`, `FederatedLearningCoordinator`, and `FederatedLearningManager`
|
|
@@ -12,15 +90,18 @@ All notable changes to this project will be documented in this file.
|
|
|
12
90
|
- Large-scale federation (50+ agents with configurable limits)
|
|
13
91
|
|
|
14
92
|
### Changed
|
|
93
|
+
|
|
15
94
|
- **Dependencies Updated**:
|
|
16
95
|
- `agentdb`: 2.0.0-alpha.2.15 → 2.0.0-alpha.2.16 (SONA v0.1.4 federated learning)
|
|
17
96
|
|
|
18
97
|
### Documentation
|
|
98
|
+
|
|
19
99
|
- Comprehensive federated learning guide available in AgentDB package
|
|
20
100
|
- 5 detailed use cases for distributed learning
|
|
21
101
|
- API documentation and performance tuning recommendations
|
|
22
102
|
|
|
23
103
|
### Tested
|
|
104
|
+
|
|
24
105
|
- ✅ Complete federated learning workflow with 50+ agents
|
|
25
106
|
- ✅ Quality filtering and weighted consolidation
|
|
26
107
|
- ✅ Multi-agent coordination and automatic aggregation
|
|
@@ -31,6 +112,7 @@ All notable changes to this project will be documented in this file.
|
|
|
31
112
|
## [1.10.2] - 2025-01-10
|
|
32
113
|
|
|
33
114
|
### Fixed
|
|
115
|
+
|
|
34
116
|
- **Critical Bug**: Fixed ANTHROPIC_API_KEY overriding `--provider` CLI argument ([#60](https://github.com/ruvnet/agentic-flow/issues/60))
|
|
35
117
|
- CLI arguments (`--provider`, `--openrouter-key`, `--anthropic-key`, `--model`) now properly propagate to environment variables
|
|
36
118
|
- Removed silent fallback to `ANTHROPIC_API_KEY` for non-Anthropic providers (OpenRouter, Gemini, Requesty)
|
|
@@ -38,11 +120,13 @@ All notable changes to this project will be documented in this file.
|
|
|
38
120
|
- CLI arguments now correctly override environment variables as expected
|
|
39
121
|
|
|
40
122
|
### Added
|
|
123
|
+
|
|
41
124
|
- Comprehensive test suite for provider CLI argument handling
|
|
42
125
|
- Clear error messages when provider-specific API keys are missing
|
|
43
126
|
- Logging for provider selection from CLI arguments
|
|
44
127
|
|
|
45
128
|
### Changed
|
|
129
|
+
|
|
46
130
|
- **Breaking Change**: Providers now require their specific API keys (no fallback to ANTHROPIC_API_KEY)
|
|
47
131
|
- OpenRouter requires `OPENROUTER_API_KEY` or `--openrouter-key`
|
|
48
132
|
- Gemini requires `GOOGLE_GEMINI_API_KEY`
|
|
@@ -50,7 +134,9 @@ All notable changes to this project will be documented in this file.
|
|
|
50
134
|
- Anthropic continues to require `ANTHROPIC_API_KEY` or `--anthropic-key`
|
|
51
135
|
|
|
52
136
|
### Migration Guide
|
|
137
|
+
|
|
53
138
|
If you were relying on the fallback behavior:
|
|
139
|
+
|
|
54
140
|
```bash
|
|
55
141
|
# Before (relied on ANTHROPIC_API_KEY fallback)
|
|
56
142
|
export ANTHROPIC_API_KEY=sk-ant-...
|
|
@@ -65,4 +151,5 @@ npx agentic-flow --provider openrouter --openrouter-key sk-or-... --task "test"
|
|
|
65
151
|
```
|
|
66
152
|
|
|
67
153
|
## [1.10.0] - Previous Release
|
|
154
|
+
|
|
68
155
|
- See git history for previous changes
|