agentic-flow 3.0.0 โ 3.2.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/.agents/skills/agentic-flow-ecosystem/SKILL.md +50 -0
- package/.claude/skills/agentic-flow-ecosystem/skill.md +58 -0
- package/.claude/skills/agentic-flow-quickstart/skill.md +6 -6
- package/.claude/skills/hooks-automation/skill.md +11 -11
- package/.claude/skills/memory-patterns/skill.md +7 -7
- package/.claude/skills/sparc-methodology/skill.md +13 -13
- package/.claude/skills/swarm-coordination/skill.md +5 -5
- package/.claude/skills/worker-benchmarks/skill.md +5 -5
- package/.claude/skills/worker-integration/skill.md +5 -5
- package/.claude/statusline.mjs +22 -5
- package/CHANGELOG.md +48 -0
- package/README.md +83 -71
- package/dist/.tsbuildinfo +1 -1
- package/dist/cli/commands/hooks.d.ts.map +1 -1
- package/dist/cli/commands/hooks.js +17 -17
- package/dist/cli/commands/hooks.js.map +1 -1
- package/dist/cli/commands/init.d.ts +2 -5
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +11 -15
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/swarm.d.ts.map +1 -1
- package/dist/cli/commands/swarm.js +3 -2
- package/dist/cli/commands/swarm.js.map +1 -1
- package/dist/core/agentdb-fast.d.ts +21 -11
- package/dist/core/agentdb-fast.d.ts.map +1 -1
- package/dist/core/agentdb-fast.js +39 -14
- package/dist/core/agentdb-fast.js.map +1 -1
- package/dist/integrations/agent-booster.d.ts +35 -0
- package/dist/integrations/agent-booster.d.ts.map +1 -0
- package/dist/integrations/agent-booster.js +45 -0
- package/dist/integrations/agent-booster.js.map +1 -0
- package/dist/integrations/index.d.ts +15 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/index.js +11 -0
- package/dist/integrations/index.js.map +1 -0
- package/dist/integrations/onnx-wasm-embedder.d.ts +59 -0
- package/dist/integrations/onnx-wasm-embedder.d.ts.map +1 -0
- package/dist/integrations/onnx-wasm-embedder.js +145 -0
- package/dist/integrations/onnx-wasm-embedder.js.map +1 -0
- package/dist/integrations/optional.d.ts +44 -0
- package/dist/integrations/optional.d.ts.map +1 -0
- package/dist/integrations/optional.js +107 -0
- package/dist/integrations/optional.js.map +1 -0
- package/dist/integrations/prompt-injection.d.ts +52 -0
- package/dist/integrations/prompt-injection.d.ts.map +1 -0
- package/dist/integrations/prompt-injection.js +126 -0
- package/dist/integrations/prompt-injection.js.map +1 -0
- package/dist/integrations/sublinear.d.ts +71 -0
- package/dist/integrations/sublinear.d.ts.map +1 -0
- package/dist/integrations/sublinear.js +227 -0
- package/dist/integrations/sublinear.js.map +1 -0
- package/dist/integrations/task-partition.d.ts +40 -0
- package/dist/integrations/task-partition.d.ts.map +1 -0
- package/dist/integrations/task-partition.js +173 -0
- package/dist/integrations/task-partition.js.map +1 -0
- package/dist/mcp/mcp-policy.d.ts.map +1 -1
- package/dist/mcp/mcp-policy.js +2 -0
- package/dist/mcp/mcp-policy.js.map +1 -1
- package/dist/mcp/standalone-stdio.js +12 -26
- package/dist/mcp/standalone-stdio.js.map +1 -1
- package/dist/mcp/tools/ecosystem-tools.d.ts +49 -0
- package/dist/mcp/tools/ecosystem-tools.d.ts.map +1 -0
- package/dist/mcp/tools/ecosystem-tools.js +126 -0
- package/dist/mcp/tools/ecosystem-tools.js.map +1 -0
- package/dist/proxy/anthropic-to-gemini.d.ts.map +1 -1
- package/dist/proxy/anthropic-to-gemini.js +10 -14
- package/dist/proxy/anthropic-to-gemini.js.map +1 -1
- package/dist/proxy/anthropic-to-openrouter.d.ts.map +1 -1
- package/dist/proxy/anthropic-to-openrouter.js +6 -25
- package/dist/proxy/anthropic-to-openrouter.js.map +1 -1
- package/dist/proxy/anthropic-to-requesty.d.ts.map +1 -1
- package/dist/proxy/anthropic-to-requesty.js +8 -10
- package/dist/proxy/anthropic-to-requesty.js.map +1 -1
- package/dist/proxy/sse-lines.d.ts +9 -0
- package/dist/proxy/sse-lines.d.ts.map +1 -0
- package/dist/proxy/sse-lines.js +37 -0
- package/dist/proxy/sse-lines.js.map +1 -0
- package/dist/reasoningbank/index.d.ts +2 -1
- package/dist/reasoningbank/index.d.ts.map +1 -1
- package/dist/reasoningbank/index.js +1 -1
- package/dist/reasoningbank/index.js.map +1 -1
- package/dist/reasoningbank/utils/embeddings.d.ts +17 -0
- package/dist/reasoningbank/utils/embeddings.d.ts.map +1 -1
- package/dist/reasoningbank/utils/embeddings.js +48 -17
- package/dist/reasoningbank/utils/embeddings.js.map +1 -1
- package/dist/routing/SemanticRouter.d.ts +25 -9
- package/dist/routing/SemanticRouter.d.ts.map +1 -1
- package/dist/routing/SemanticRouter.js +63 -12
- package/dist/routing/SemanticRouter.js.map +1 -1
- package/dist/utils/input-validator.d.ts +10 -2
- package/dist/utils/input-validator.d.ts.map +1 -1
- package/dist/utils/input-validator.js +30 -2
- package/dist/utils/input-validator.js.map +1 -1
- package/dist/utils/model-cache.d.ts.map +1 -1
- package/dist/utils/model-cache.js +6 -25
- package/dist/utils/model-cache.js.map +1 -1
- package/dist/utils/package-version.d.ts +9 -0
- package/dist/utils/package-version.d.ts.map +1 -0
- package/dist/utils/package-version.js +39 -0
- package/dist/utils/package-version.js.map +1 -0
- package/dist/wasm/onnx-embeddings-wasm.d.ts.map +1 -1
- package/dist/wasm/onnx-embeddings-wasm.js +21 -10
- package/dist/wasm/onnx-embeddings-wasm.js.map +1 -1
- package/docs/docker-tests/TEST-V1.7.8.Dockerfile +2 -2
- package/docs/docker-tests/TEST-V1.7.9-NODE20.Dockerfile +2 -2
- package/docs/docker-tests/TEST-V1.7.9.Dockerfile +2 -2
- package/docs/guides/CLAUDE-CODE-INTEGRATION.md +25 -8
- package/docs/guides/PROXY-ARCHITECTURE-AND-EXTENSION.md +22 -9
- package/docs/guides/STANDALONE_PROXY_GUIDE.md +16 -6
- package/docs/integrations/FASTMCP_CLI_INTEGRATION.md +1 -1
- package/docs/plans/requesty/02-architecture.md +5 -6
- package/docs/plans/requesty/03-implementation-phases.md +3 -4
- package/docs/plans/requesty/05-migration-guide.md +2 -2
- package/package.json +12 -7
- package/scripts/validate-providers.sh +7 -4
|
@@ -133,9 +133,8 @@ private async startRequestyProxy(modelOverride?: string): Promise<void> {
|
|
|
133
133
|
|
|
134
134
|
process.env.ANTHROPIC_BASE_URL = `http://localhost:${this.proxyPort}`;
|
|
135
135
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
136
|
+
// The proxy rejects requests without its per-run token (3.0.0+)
|
|
137
|
+
process.env.ANTHROPIC_API_KEY = proxy.getAuthToken();
|
|
139
138
|
|
|
140
139
|
console.log(`๐ Proxy Mode: Requesty`);
|
|
141
140
|
console.log(`๐ง Proxy URL: http://localhost:${this.proxyPort}`);
|
|
@@ -478,7 +477,7 @@ User CLI Command
|
|
|
478
477
|
โ
|
|
479
478
|
โโ> Set Environment Variables
|
|
480
479
|
โ โโ ANTHROPIC_BASE_URL = http://localhost:3000
|
|
481
|
-
โ โโ ANTHROPIC_API_KEY =
|
|
480
|
+
โ โโ ANTHROPIC_API_KEY = <proxy's per-run token>
|
|
482
481
|
โ
|
|
483
482
|
โโ> Execute Agent (claudeAgent.ts)
|
|
484
483
|
โ
|
|
@@ -932,12 +931,12 @@ Support running Requesty proxy as standalone server:
|
|
|
932
931
|
|
|
933
932
|
```bash
|
|
934
933
|
# Terminal 1 - Run proxy
|
|
934
|
+
export REQUESTY_API_KEY=requesty-xxxxx
|
|
935
935
|
npx agentic-flow proxy --provider requesty --port 3000 --model "openai/gpt-4o-mini"
|
|
936
936
|
|
|
937
937
|
# Terminal 2 - Use with Claude Code
|
|
938
938
|
export ANTHROPIC_BASE_URL=http://localhost:3000
|
|
939
|
-
export ANTHROPIC_API_KEY=
|
|
940
|
-
export REQUESTY_API_KEY=requesty-xxxxx
|
|
939
|
+
export ANTHROPIC_API_KEY='<token printed by the proxy>'
|
|
941
940
|
claude
|
|
942
941
|
```
|
|
943
942
|
|
|
@@ -286,10 +286,9 @@ private async startRequestyProxy(modelOverride?: string): Promise<void> {
|
|
|
286
286
|
// Set ANTHROPIC_BASE_URL to proxy
|
|
287
287
|
process.env.ANTHROPIC_BASE_URL = `http://localhost:${this.proxyPort}`;
|
|
288
288
|
|
|
289
|
-
//
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
}
|
|
289
|
+
// The proxy rejects requests without its per-run token (3.0.0+);
|
|
290
|
+
// the upstream call still uses REQUESTY_API_KEY
|
|
291
|
+
process.env.ANTHROPIC_API_KEY = proxy.getAuthToken();
|
|
293
292
|
|
|
294
293
|
console.log(`๐ Proxy Mode: Requesty`);
|
|
295
294
|
console.log(`๐ง Proxy URL: http://localhost:${this.proxyPort}`);
|
|
@@ -258,6 +258,7 @@ npx agentic-flow --agent coder \
|
|
|
258
258
|
#### Terminal 1 - Start Proxy
|
|
259
259
|
|
|
260
260
|
```bash
|
|
261
|
+
export REQUESTY_API_KEY="requesty-xxxxx"
|
|
261
262
|
npx agentic-flow proxy --provider requesty --port 3000
|
|
262
263
|
```
|
|
263
264
|
|
|
@@ -265,8 +266,7 @@ npx agentic-flow proxy --provider requesty --port 3000
|
|
|
265
266
|
|
|
266
267
|
```bash
|
|
267
268
|
export ANTHROPIC_BASE_URL="http://localhost:3000"
|
|
268
|
-
export ANTHROPIC_API_KEY="
|
|
269
|
-
export REQUESTY_API_KEY="requesty-xxxxx"
|
|
269
|
+
export ANTHROPIC_API_KEY="<token printed by the proxy>" # the proxy rejects any other key (3.0.0+)
|
|
270
270
|
|
|
271
271
|
claude
|
|
272
272
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-flow",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "The agentic meta-harness โ freeze the model, evolve the harness. An open runtime that routes each query to the cost-optimal model, evolves its own harness (planner/context/reviewer/retry/tool/memory/score policy) and autonomously repairs code, then orchestrates 66 specialized agents, 213 MCP tools, ReasoningBank memory, and multi-agent swarms on top. Built by @ruvnet on the Claude Agent SDK.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"./agent-booster": "./dist/agent-booster/index.js",
|
|
31
31
|
"./transport/quic": "./dist/transport/quic.js",
|
|
32
32
|
"./embeddings": "./dist/embeddings/index.js",
|
|
33
|
+
"./integrations": "./dist/integrations/index.js",
|
|
33
34
|
"./transport/loader": "./dist/transport/quic-loader.js"
|
|
34
35
|
},
|
|
35
36
|
"scripts": {
|
|
@@ -70,8 +71,9 @@
|
|
|
70
71
|
"benchmark:embeddings": "tsx src/benchmarks/embeddings-benchmark.ts",
|
|
71
72
|
"test:orchestration": "vitest run tests/orchestration/ --reporter=verbose",
|
|
72
73
|
"test:security": "vitest run tests/security tests/mcp/mcp-policy.test.ts tests/transport/quic-loader.test.ts",
|
|
73
|
-
"test:governance": "vitest run tests/harness/provenance.test.ts tests/harness/flywheel-governance.test.ts tests/mcp/mcp-policy.test.ts tests/mcp/package-surface.test.ts tests/embeddings/huggingface-offline.test.ts tests/repair/darwin-repair.test.ts",
|
|
74
|
-
"test:orchestration:smoke": "tsx tests/orchestration/orchestration-api.smoke.ts && tsx tests/orchestration/loop-policy.smoke.ts && tsx tests/orchestration/memory-plane.smoke.ts"
|
|
74
|
+
"test:governance": "vitest run tests/harness/provenance.test.ts tests/harness/flywheel-governance.test.ts tests/mcp/mcp-policy.test.ts tests/mcp/package-surface.test.ts tests/embeddings/huggingface-offline.test.ts tests/repair/darwin-repair.test.ts tests/integrations",
|
|
75
|
+
"test:orchestration:smoke": "tsx tests/orchestration/orchestration-api.smoke.ts && tsx tests/orchestration/loop-policy.smoke.ts && tsx tests/orchestration/memory-plane.smoke.ts",
|
|
76
|
+
"test:integrations": "vitest run tests/integrations"
|
|
75
77
|
},
|
|
76
78
|
"keywords": [
|
|
77
79
|
"meta-harness",
|
|
@@ -168,14 +170,12 @@
|
|
|
168
170
|
"@anthropic-ai/claude-agent-sdk": "^0.1.5",
|
|
169
171
|
"@anthropic-ai/sdk": "^0.65.0",
|
|
170
172
|
"@google/genai": "^1.22.0",
|
|
173
|
+
"@huggingface/transformers": "^4.2.0",
|
|
171
174
|
"@metaharness/router": "^0.3.2",
|
|
172
|
-
"@ruvector/core": "^0.1.29",
|
|
173
175
|
"@ruvector/edge-full": "^0.1.0",
|
|
174
176
|
"@ruvector/router": "^0.1.30",
|
|
175
|
-
"@ruvector/ruvllm": "^2.5.5",
|
|
176
177
|
"@ruvector/tiny-dancer": "^0.1.17",
|
|
177
178
|
"@supabase/supabase-js": "^2.78.0",
|
|
178
|
-
"@huggingface/transformers": "^4.2.0",
|
|
179
179
|
"agentdb": "^3.0.0",
|
|
180
180
|
"axios": "^1.12.2",
|
|
181
181
|
"dotenv": "^16.4.5",
|
|
@@ -195,11 +195,15 @@
|
|
|
195
195
|
"optionalDependencies": {
|
|
196
196
|
"@rollup/rollup-darwin-arm64": "^4.59.0",
|
|
197
197
|
"@ruvector/attention": "^0.1.4",
|
|
198
|
+
"@ruvector/mincut-wasm": "^2.3.0",
|
|
198
199
|
"@ruvector/sona": "^0.1.4",
|
|
200
|
+
"agent-booster": "^0.2.2",
|
|
201
|
+
"aidefence": "^3.0.1",
|
|
199
202
|
"better-sqlite3": "^11.10.0",
|
|
200
203
|
"onnxruntime-node": "^1.23.2",
|
|
201
204
|
"sharp": "^0.35.5",
|
|
202
|
-
"sql.js": "^1.11.0"
|
|
205
|
+
"sql.js": "^1.11.0",
|
|
206
|
+
"sublinear-time-solver": "^1.7.2"
|
|
203
207
|
},
|
|
204
208
|
"overrides": {
|
|
205
209
|
"protobufjs": ">=7.5.5",
|
|
@@ -223,6 +227,7 @@
|
|
|
223
227
|
"dist",
|
|
224
228
|
"docs",
|
|
225
229
|
".claude",
|
|
230
|
+
".agents/skills",
|
|
226
231
|
"validation",
|
|
227
232
|
"scripts",
|
|
228
233
|
"wasm",
|
|
@@ -7,6 +7,9 @@ echo "๐งช Agentic Flow - Provider Validation Suite"
|
|
|
7
7
|
echo "==========================================="
|
|
8
8
|
echo ""
|
|
9
9
|
|
|
10
|
+
# Exactly this checkout's version (override with AGENTIC_FLOW_SPEC), never a dist-tag
|
|
11
|
+
AF_SPEC="${AGENTIC_FLOW_SPEC:-agentic-flow@$(node -p "require('$(cd "$(dirname "$0")/.." && pwd)/package.json').version")}"
|
|
12
|
+
|
|
10
13
|
# Colors
|
|
11
14
|
GREEN='\033[0;32m'
|
|
12
15
|
BLUE='\033[0;34m'
|
|
@@ -15,7 +18,7 @@ NC='\033[0m' # No Color
|
|
|
15
18
|
# Test 1: Anthropic Provider
|
|
16
19
|
if [ -n "$ANTHROPIC_API_KEY" ]; then
|
|
17
20
|
echo -e "${BLUE}1๏ธโฃ Testing Anthropic Provider...${NC}"
|
|
18
|
-
npx
|
|
21
|
+
npx "$AF_SPEC" --agent coder --task "Write hello world" --provider anthropic 2>&1 | grep -q "Completed" && \
|
|
19
22
|
echo -e "${GREEN}โ
Anthropic provider works${NC}" || \
|
|
20
23
|
echo "โ Anthropic provider failed"
|
|
21
24
|
else
|
|
@@ -27,19 +30,19 @@ echo ""
|
|
|
27
30
|
# Test 2: OpenRouter Provider - Meta Llama
|
|
28
31
|
if [ -n "$OPENROUTER_API_KEY" ]; then
|
|
29
32
|
echo -e "${BLUE}2๏ธโฃ Testing OpenRouter - Meta Llama 3.1...${NC}"
|
|
30
|
-
npx
|
|
33
|
+
npx "$AF_SPEC" --agent coder --task "Write hello world" --model "meta-llama/llama-3.1-8b-instruct" 2>&1 | grep -q "Completed" && \
|
|
31
34
|
echo -e "${GREEN}โ
OpenRouter (Meta Llama) works${NC}" || \
|
|
32
35
|
echo "โ OpenRouter (Meta Llama) failed"
|
|
33
36
|
|
|
34
37
|
echo ""
|
|
35
38
|
echo -e "${BLUE}3๏ธโฃ Testing OpenRouter - DeepSeek...${NC}"
|
|
36
|
-
npx
|
|
39
|
+
npx "$AF_SPEC" --agent coder --task "Write hello world" --model "deepseek/deepseek-chat" 2>&1 | grep -q "Completed" && \
|
|
37
40
|
echo -e "${GREEN}โ
OpenRouter (DeepSeek) works${NC}" || \
|
|
38
41
|
echo "โ OpenRouter (DeepSeek) failed"
|
|
39
42
|
|
|
40
43
|
echo ""
|
|
41
44
|
echo -e "${BLUE}4๏ธโฃ Testing OpenRouter - Gemini Free...${NC}"
|
|
42
|
-
npx
|
|
45
|
+
npx "$AF_SPEC" --agent coder --task "Write hello world" --model "google/gemini-2.0-flash-exp:free" 2>&1 | grep -q "Completed" && \
|
|
43
46
|
echo -e "${GREEN}โ
OpenRouter (Gemini) works${NC}" || \
|
|
44
47
|
echo "โ OpenRouter (Gemini) failed"
|
|
45
48
|
else
|