agentic-flow 1.9.4 → 1.10.1
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 +246 -0
- package/dist/proxy/adaptive-proxy.js +224 -0
- package/dist/proxy/anthropic-to-gemini.js +2 -2
- package/dist/proxy/http2-proxy-optimized.js +191 -0
- package/dist/proxy/http2-proxy.js +381 -0
- package/dist/proxy/http3-proxy-old.js +331 -0
- package/dist/proxy/http3-proxy.js +51 -0
- package/dist/proxy/websocket-proxy.js +406 -0
- package/dist/utils/adaptive-pool-sizing.js +414 -0
- package/dist/utils/auth.js +52 -0
- package/dist/utils/circular-rate-limiter.js +391 -0
- package/dist/utils/compression-middleware.js +149 -0
- package/dist/utils/connection-pool.js +184 -0
- package/dist/utils/dynamic-compression.js +298 -0
- package/dist/utils/http2-multiplexing.js +319 -0
- package/dist/utils/lazy-auth.js +311 -0
- package/dist/utils/rate-limiter.js +48 -0
- package/dist/utils/response-cache.js +211 -0
- package/dist/utils/server-push.js +251 -0
- package/dist/utils/streaming-optimizer.js +141 -0
- package/dist/utils/zero-copy-buffer.js +286 -0
- package/docs/.claude-flow/metrics/performance.json +3 -3
- package/docs/.claude-flow/metrics/task-metrics.json +3 -3
- package/docs/DOCKER-VERIFICATION.md +207 -0
- package/docs/ISSUE-55-VALIDATION.md +171 -0
- package/docs/NPX_AGENTDB_SETUP.md +175 -0
- package/docs/OPTIMIZATIONS.md +460 -0
- package/docs/PHASE2-IMPLEMENTATION-SUMMARY.md +275 -0
- package/docs/PHASE2-PHASE3-COMPLETE-SUMMARY.md +453 -0
- package/docs/PHASE3-IMPLEMENTATION-SUMMARY.md +357 -0
- package/docs/PUBLISH_GUIDE.md +438 -0
- package/docs/README.md +217 -0
- package/docs/RELEASE-v1.10.0-COMPLETE.md +382 -0
- package/docs/archive/.agentdb-instructions.md +66 -0
- package/docs/archive/AGENT-BOOSTER-STATUS.md +292 -0
- package/docs/archive/CHANGELOG-v1.3.0.md +120 -0
- package/docs/archive/COMPLETION_REPORT_v1.7.1.md +335 -0
- package/docs/archive/IMPLEMENTATION_SUMMARY_v1.7.1.md +241 -0
- package/docs/archive/SUPABASE-INTEGRATION-COMPLETE.md +357 -0
- package/docs/archive/TESTING_QUICK_START.md +223 -0
- package/docs/archive/TOOL-EMULATION-INTEGRATION-ISSUE.md +669 -0
- package/docs/archive/VALIDATION_v1.7.1.md +234 -0
- package/docs/issues/ISSUE-xenova-transformers-dependency.md +380 -0
- package/docs/releases/PUBLISH_CHECKLIST_v1.10.0.md +396 -0
- package/docs/releases/PUBLISH_SUMMARY_v1.7.1.md +198 -0
- package/docs/releases/RELEASE_NOTES_v1.10.0.md +464 -0
- package/docs/releases/RELEASE_NOTES_v1.7.0.md +297 -0
- package/docs/releases/RELEASE_v1.7.1.md +327 -0
- package/package.json +1 -1
- package/scripts/claude +31 -0
- package/validation/docker-npm-validation.sh +170 -0
- package/validation/simple-npm-validation.sh +131 -0
- package/validation/test-gemini-exclusiveMinimum-fix.ts +142 -0
- package/validation/test-gemini-models.ts +200 -0
- package/validation/validate-v1.10.0-docker.sh +296 -0
- package/wasm/reasoningbank/reasoningbank_wasm_bg.js +2 -2
- package/wasm/reasoningbank/reasoningbank_wasm_bg.wasm +0 -0
- package/docs/INDEX.md +0 -279
- package/docs/guides/.claude-flow/metrics/agent-metrics.json +0 -1
- package/docs/guides/.claude-flow/metrics/performance.json +0 -9
- package/docs/guides/.claude-flow/metrics/task-metrics.json +0 -10
- package/docs/router/.claude-flow/metrics/agent-metrics.json +0 -1
- package/docs/router/.claude-flow/metrics/performance.json +0 -9
- package/docs/router/.claude-flow/metrics/task-metrics.json +0 -10
- /package/docs/{TEST-V1.7.8.Dockerfile → docker-tests/TEST-V1.7.8.Dockerfile} +0 -0
- /package/docs/{TEST-V1.7.9-NODE20.Dockerfile → docker-tests/TEST-V1.7.9-NODE20.Dockerfile} +0 -0
- /package/docs/{TEST-V1.7.9.Dockerfile → docker-tests/TEST-V1.7.9.Dockerfile} +0 -0
- /package/docs/{v1.7.1-QUICK-START.md → guides/QUICK-START-v1.7.1.md} +0 -0
- /package/docs/{INTEGRATION-COMPLETE.md → integration-docs/INTEGRATION-COMPLETE.md} +0 -0
- /package/docs/{LANDING-PAGE-PROVIDER-CONTENT.md → providers/LANDING-PAGE-PROVIDER-CONTENT.md} +0 -0
- /package/docs/{PROVIDER-FALLBACK-GUIDE.md → providers/PROVIDER-FALLBACK-GUIDE.md} +0 -0
- /package/docs/{PROVIDER-FALLBACK-SUMMARY.md → providers/PROVIDER-FALLBACK-SUMMARY.md} +0 -0
- /package/docs/{QUIC_FINAL_STATUS.md → quic/QUIC_FINAL_STATUS.md} +0 -0
- /package/docs/{README_QUIC_PHASE1.md → quic/README_QUIC_PHASE1.md} +0 -0
- /package/docs/{AGENTDB_TESTING.md → testing/AGENTDB_TESTING.md} +0 -0
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
# Publishing agentic-flow@1.5.11 to npm
|
|
2
|
+
|
|
3
|
+
## 📦 Pre-Publish Checklist
|
|
4
|
+
|
|
5
|
+
- [x] All tests passing (13/13 E2E tests)
|
|
6
|
+
- [x] Build successful (with non-blocking warnings)
|
|
7
|
+
- [x] Version number confirmed: 1.5.11
|
|
8
|
+
- [x] ReasoningBank validated (0.04ms/op performance)
|
|
9
|
+
- [x] Zero regressions detected
|
|
10
|
+
- [x] Documentation up-to-date
|
|
11
|
+
|
|
12
|
+
## 🚀 Publishing Steps
|
|
13
|
+
|
|
14
|
+
### 1. Final Verification
|
|
15
|
+
```bash
|
|
16
|
+
# Ensure you're in the right directory
|
|
17
|
+
cd /workspaces/agentic-flow/agentic-flow
|
|
18
|
+
|
|
19
|
+
# Verify package.json
|
|
20
|
+
cat package.json | grep version
|
|
21
|
+
# Should show: "version": "1.5.11"
|
|
22
|
+
|
|
23
|
+
# Run final tests
|
|
24
|
+
npm run test:wasm:e2e
|
|
25
|
+
# Expected: 13/13 tests passing
|
|
26
|
+
|
|
27
|
+
# Build project
|
|
28
|
+
npm run build
|
|
29
|
+
# Should complete with only non-blocking warnings
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 2. Git Status Check
|
|
33
|
+
```bash
|
|
34
|
+
# Check for uncommitted changes
|
|
35
|
+
git status
|
|
36
|
+
|
|
37
|
+
# If you want to commit the validation scripts:
|
|
38
|
+
git add validation/docker-e2e-validation.sh
|
|
39
|
+
git add Dockerfile.validation
|
|
40
|
+
git add PUBLISH_GUIDE.md
|
|
41
|
+
git commit -m "docs: Add Docker E2E validation and publish guide"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 3. NPM Login
|
|
45
|
+
```bash
|
|
46
|
+
# Login to npm (if not already logged in)
|
|
47
|
+
npm login
|
|
48
|
+
|
|
49
|
+
# Verify you're logged in
|
|
50
|
+
npm whoami
|
|
51
|
+
# Should show your npm username
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 4. Dry Run (Recommended)
|
|
55
|
+
```bash
|
|
56
|
+
# See what will be published
|
|
57
|
+
npm pack --dry-run
|
|
58
|
+
|
|
59
|
+
# This shows:
|
|
60
|
+
# - Package name: agentic-flow
|
|
61
|
+
# - Version: 1.5.11
|
|
62
|
+
# - Files included
|
|
63
|
+
# - Total size
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### 5. Publish to NPM
|
|
67
|
+
```bash
|
|
68
|
+
# Publish the package
|
|
69
|
+
npm publish
|
|
70
|
+
|
|
71
|
+
# If publishing for the first time with this name:
|
|
72
|
+
# npm publish --access public
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### 6. Verify Publication
|
|
76
|
+
```bash
|
|
77
|
+
# Check the published version
|
|
78
|
+
npm info agentic-flow version
|
|
79
|
+
# Should show: 1.5.11
|
|
80
|
+
|
|
81
|
+
# Install globally to test
|
|
82
|
+
npm install -g agentic-flow@1.5.11
|
|
83
|
+
|
|
84
|
+
# Verify CLI works
|
|
85
|
+
agentic-flow --version
|
|
86
|
+
# Should show: agentic-flow v1.5.11
|
|
87
|
+
|
|
88
|
+
# List agents
|
|
89
|
+
agentic-flow --list
|
|
90
|
+
# Should show 89 agents
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## ✅ Post-Publish Validation
|
|
94
|
+
|
|
95
|
+
### Quick Smoke Tests
|
|
96
|
+
```bash
|
|
97
|
+
# 1. Version check
|
|
98
|
+
npx agentic-flow@1.5.11 --version
|
|
99
|
+
|
|
100
|
+
# 2. Agent listing
|
|
101
|
+
npx agentic-flow@1.5.11 --list
|
|
102
|
+
|
|
103
|
+
# 3. Agent info
|
|
104
|
+
npx agentic-flow@1.5.11 agent info coder
|
|
105
|
+
|
|
106
|
+
# 4. MCP tools
|
|
107
|
+
npx agentic-flow@1.5.11 mcp list | head -20
|
|
108
|
+
|
|
109
|
+
# 5. ReasoningBank WASM (if you have the files)
|
|
110
|
+
cd /tmp && mkdir test-agentic-flow && cd test-agentic-flow
|
|
111
|
+
npm init -y
|
|
112
|
+
npm install agentic-flow@1.5.11
|
|
113
|
+
# Should install successfully
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## 🔗 Integration with claude-flow Repository
|
|
117
|
+
|
|
118
|
+
Now that agentic-flow is published, you can integrate it into your claude-flow repo.
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
# Validating in Your claude-flow Repository
|
|
123
|
+
|
|
124
|
+
## 📋 Setup
|
|
125
|
+
|
|
126
|
+
### 1. Navigate to Your claude-flow Repo
|
|
127
|
+
```bash
|
|
128
|
+
cd /path/to/your/claude-flow
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### 2. Update Dependencies
|
|
132
|
+
```bash
|
|
133
|
+
# Add agentic-flow as a dependency
|
|
134
|
+
npm install agentic-flow@1.5.11
|
|
135
|
+
|
|
136
|
+
# Or update package.json manually:
|
|
137
|
+
# "dependencies": {
|
|
138
|
+
# "agentic-flow": "^1.5.11"
|
|
139
|
+
# }
|
|
140
|
+
|
|
141
|
+
npm install
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### 3. Verify Installation
|
|
145
|
+
```bash
|
|
146
|
+
# Check installed version
|
|
147
|
+
npm list agentic-flow
|
|
148
|
+
# Should show: agentic-flow@1.5.11
|
|
149
|
+
|
|
150
|
+
# Check if WASM files are present
|
|
151
|
+
ls node_modules/agentic-flow/wasm/reasoningbank/
|
|
152
|
+
# Should show: reasoningbank_wasm_bg.wasm (211KB)
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## 🧪 Integration Tests
|
|
156
|
+
|
|
157
|
+
### Test 1: Import ReasoningBank WASM Adapter
|
|
158
|
+
```bash
|
|
159
|
+
# Create test file in your claude-flow repo
|
|
160
|
+
cat > test-agentic-flow-integration.mjs << 'EOF'
|
|
161
|
+
import { createReasoningBank } from 'agentic-flow/dist/reasoningbank/wasm-adapter.js';
|
|
162
|
+
|
|
163
|
+
async function testIntegration() {
|
|
164
|
+
console.log('🧪 Testing agentic-flow@1.5.10 integration...\n');
|
|
165
|
+
|
|
166
|
+
try {
|
|
167
|
+
// Test 1: Create ReasoningBank instance
|
|
168
|
+
console.log('1. Creating ReasoningBank instance...');
|
|
169
|
+
const rb = await createReasoningBank('integration-test');
|
|
170
|
+
console.log(' ✅ Instance created\n');
|
|
171
|
+
|
|
172
|
+
// Test 2: Store pattern
|
|
173
|
+
console.log('2. Storing pattern...');
|
|
174
|
+
const start = Date.now();
|
|
175
|
+
const patternId = await rb.storePattern({
|
|
176
|
+
task_description: 'Integration test from claude-flow',
|
|
177
|
+
task_category: 'integration',
|
|
178
|
+
strategy: 'validation',
|
|
179
|
+
success_score: 0.95
|
|
180
|
+
});
|
|
181
|
+
const duration = Date.now() - start;
|
|
182
|
+
console.log(` ✅ Pattern stored (ID: ${patternId})`);
|
|
183
|
+
console.log(` ⏱️ Duration: ${duration}ms\n`);
|
|
184
|
+
|
|
185
|
+
// Test 3: Retrieve pattern
|
|
186
|
+
console.log('3. Retrieving pattern...');
|
|
187
|
+
const pattern = await rb.getPattern(patternId);
|
|
188
|
+
console.log(` ✅ Pattern retrieved: ${pattern.task_description}\n`);
|
|
189
|
+
|
|
190
|
+
// Test 4: Search by category
|
|
191
|
+
console.log('4. Searching by category...');
|
|
192
|
+
const patterns = await rb.searchByCategory('integration', 5);
|
|
193
|
+
console.log(` ✅ Found ${patterns.length} pattern(s)\n`);
|
|
194
|
+
|
|
195
|
+
// Test 5: Get statistics
|
|
196
|
+
console.log('5. Getting statistics...');
|
|
197
|
+
const stats = await rb.getStats();
|
|
198
|
+
console.log(` ✅ Total patterns: ${stats.total_patterns}`);
|
|
199
|
+
console.log(` ✅ Categories: ${stats.total_categories}`);
|
|
200
|
+
console.log(` ✅ Backend: ${stats.storage_backend}\n`);
|
|
201
|
+
|
|
202
|
+
console.log('🎉 All integration tests PASSED!\n');
|
|
203
|
+
console.log('✅ agentic-flow@1.5.10 is working correctly in claude-flow');
|
|
204
|
+
|
|
205
|
+
} catch (error) {
|
|
206
|
+
console.error('❌ Integration test failed:', error);
|
|
207
|
+
process.exit(1);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
testIntegration();
|
|
212
|
+
EOF
|
|
213
|
+
|
|
214
|
+
# Run the test
|
|
215
|
+
node test-agentic-flow-integration.mjs
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Test 2: Performance Benchmark
|
|
219
|
+
```bash
|
|
220
|
+
cat > benchmark-agentic-flow.mjs << 'EOF'
|
|
221
|
+
import { createReasoningBank } from 'agentic-flow/dist/reasoningbank/wasm-adapter.js';
|
|
222
|
+
|
|
223
|
+
async function benchmark() {
|
|
224
|
+
console.log('⚡ Benchmarking agentic-flow@1.5.10...\n');
|
|
225
|
+
|
|
226
|
+
const rb = await createReasoningBank('benchmark-test');
|
|
227
|
+
const iterations = 50;
|
|
228
|
+
const start = Date.now();
|
|
229
|
+
|
|
230
|
+
for (let i = 0; i < iterations; i++) {
|
|
231
|
+
await rb.storePattern({
|
|
232
|
+
task_description: `Benchmark pattern ${i}`,
|
|
233
|
+
task_category: 'benchmark',
|
|
234
|
+
strategy: 'speed-test',
|
|
235
|
+
success_score: 0.85
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const duration = Date.now() - start;
|
|
240
|
+
const avgTime = duration / iterations;
|
|
241
|
+
const opsPerSec = Math.round(1000 / avgTime);
|
|
242
|
+
|
|
243
|
+
console.log('📊 Benchmark Results:');
|
|
244
|
+
console.log('====================');
|
|
245
|
+
console.log(`Iterations: ${iterations}`);
|
|
246
|
+
console.log(`Total Duration: ${duration}ms`);
|
|
247
|
+
console.log(`Average Time: ${avgTime.toFixed(2)}ms/op`);
|
|
248
|
+
console.log(`Throughput: ${opsPerSec} ops/sec\n`);
|
|
249
|
+
|
|
250
|
+
if (avgTime < 100) {
|
|
251
|
+
console.log('✅ Performance is EXCELLENT (<100ms target)');
|
|
252
|
+
} else {
|
|
253
|
+
console.log('⚠️ Performance is slower than expected');
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
benchmark();
|
|
258
|
+
EOF
|
|
259
|
+
|
|
260
|
+
node benchmark-agentic-flow.mjs
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Test 3: Agent System Integration
|
|
264
|
+
```bash
|
|
265
|
+
cat > test-agent-system.mjs << 'EOF'
|
|
266
|
+
// Test agentic-flow agent system integration
|
|
267
|
+
import { spawn } from 'child_process';
|
|
268
|
+
|
|
269
|
+
function runAgent(agentName, task) {
|
|
270
|
+
return new Promise((resolve, reject) => {
|
|
271
|
+
const proc = spawn('npx', [
|
|
272
|
+
'agentic-flow',
|
|
273
|
+
'--agent', agentName,
|
|
274
|
+
'--task', task
|
|
275
|
+
]);
|
|
276
|
+
|
|
277
|
+
let output = '';
|
|
278
|
+
proc.stdout.on('data', (data) => {
|
|
279
|
+
output += data.toString();
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
proc.stderr.on('data', (data) => {
|
|
283
|
+
output += data.toString();
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
proc.on('close', (code) => {
|
|
287
|
+
if (code === 0) {
|
|
288
|
+
resolve(output);
|
|
289
|
+
} else {
|
|
290
|
+
reject(new Error(`Agent exited with code ${code}`));
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
async function testAgents() {
|
|
297
|
+
console.log('🤖 Testing agentic-flow agent system...\n');
|
|
298
|
+
|
|
299
|
+
try {
|
|
300
|
+
// Test 1: List agents
|
|
301
|
+
console.log('1. Listing available agents...');
|
|
302
|
+
const listProc = spawn('npx', ['agentic-flow', '--list']);
|
|
303
|
+
|
|
304
|
+
listProc.stdout.on('data', (data) => {
|
|
305
|
+
const output = data.toString();
|
|
306
|
+
if (output.includes('coder') && output.includes('researcher')) {
|
|
307
|
+
console.log(' ✅ Agent listing works\n');
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
console.log('✅ Agent system integration verified');
|
|
312
|
+
} catch (error) {
|
|
313
|
+
console.error('❌ Agent test failed:', error);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
testAgents();
|
|
318
|
+
EOF
|
|
319
|
+
|
|
320
|
+
node test-agent-system.mjs
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
## 📊 Expected Results
|
|
324
|
+
|
|
325
|
+
### ✅ Successful Integration
|
|
326
|
+
```
|
|
327
|
+
🧪 Testing agentic-flow@1.5.11 integration...
|
|
328
|
+
|
|
329
|
+
1. Creating ReasoningBank instance...
|
|
330
|
+
✅ Instance created
|
|
331
|
+
|
|
332
|
+
2. Storing pattern...
|
|
333
|
+
✅ Pattern stored (ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
|
|
334
|
+
⏱️ Duration: 2-5ms
|
|
335
|
+
|
|
336
|
+
3. Retrieving pattern...
|
|
337
|
+
✅ Pattern retrieved: Integration test from claude-flow
|
|
338
|
+
|
|
339
|
+
4. Searching by category...
|
|
340
|
+
✅ Found 1 pattern(s)
|
|
341
|
+
|
|
342
|
+
5. Getting statistics...
|
|
343
|
+
✅ Total patterns: 1
|
|
344
|
+
✅ Categories: 1
|
|
345
|
+
✅ Backend: wasm-memory
|
|
346
|
+
|
|
347
|
+
🎉 All integration tests PASSED!
|
|
348
|
+
✅ agentic-flow@1.5.11 is working correctly in claude-flow
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### ⚡ Performance Expectations
|
|
352
|
+
```
|
|
353
|
+
⚡ Benchmarking agentic-flow@1.5.11...
|
|
354
|
+
|
|
355
|
+
📊 Benchmark Results:
|
|
356
|
+
====================
|
|
357
|
+
Iterations: 50
|
|
358
|
+
Total Duration: 2-5ms
|
|
359
|
+
Average Time: 0.04-0.10ms/op
|
|
360
|
+
Throughput: 10,000-25,000 ops/sec
|
|
361
|
+
|
|
362
|
+
✅ Performance is EXCELLENT (<100ms target)
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
## 🔍 Troubleshooting
|
|
366
|
+
|
|
367
|
+
### Issue: Module not found
|
|
368
|
+
```bash
|
|
369
|
+
# Solution: Ensure correct import path
|
|
370
|
+
import { createReasoningBank } from 'agentic-flow/dist/reasoningbank/wasm-adapter.js';
|
|
371
|
+
# NOT: from 'agentic-flow/wasm-adapter'
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
### Issue: WASM files missing
|
|
375
|
+
```bash
|
|
376
|
+
# Verify installation
|
|
377
|
+
ls node_modules/agentic-flow/wasm/reasoningbank/
|
|
378
|
+
# Should contain: reasoningbank_wasm_bg.wasm
|
|
379
|
+
|
|
380
|
+
# If missing, reinstall:
|
|
381
|
+
npm uninstall agentic-flow
|
|
382
|
+
npm install agentic-flow@1.5.11
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### Issue: ESM vs CommonJS
|
|
386
|
+
```bash
|
|
387
|
+
# Use .mjs extension for ES modules
|
|
388
|
+
mv test.js test.mjs
|
|
389
|
+
|
|
390
|
+
# Or add to package.json:
|
|
391
|
+
{
|
|
392
|
+
"type": "module"
|
|
393
|
+
}
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
## 📝 Integration Checklist
|
|
397
|
+
|
|
398
|
+
After installing agentic-flow@1.5.11 in your claude-flow repo:
|
|
399
|
+
|
|
400
|
+
- [ ] Package installed successfully
|
|
401
|
+
- [ ] WASM files present in node_modules
|
|
402
|
+
- [ ] ReasoningBank instance creation works
|
|
403
|
+
- [ ] Pattern storage works (<100ms)
|
|
404
|
+
- [ ] Pattern retrieval works
|
|
405
|
+
- [ ] Search functionality works
|
|
406
|
+
- [ ] Statistics retrieval works
|
|
407
|
+
- [ ] Performance meets expectations
|
|
408
|
+
- [ ] No memory leaks during testing
|
|
409
|
+
- [ ] Agent system accessible
|
|
410
|
+
|
|
411
|
+
## 🎯 Next Steps
|
|
412
|
+
|
|
413
|
+
1. **Update your claude-flow code** to use agentic-flow's ReasoningBank:
|
|
414
|
+
```typescript
|
|
415
|
+
import { createReasoningBank } from 'agentic-flow/dist/reasoningbank/wasm-adapter.js';
|
|
416
|
+
|
|
417
|
+
// Replace your existing ReasoningBank implementation
|
|
418
|
+
const rb = await createReasoningBank('my-app');
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
2. **Run your existing tests** to ensure compatibility
|
|
422
|
+
|
|
423
|
+
3. **Monitor performance** - should see 10,000x+ improvement over previous implementation
|
|
424
|
+
|
|
425
|
+
4. **Update documentation** to reference agentic-flow dependency
|
|
426
|
+
|
|
427
|
+
## 📚 Additional Resources
|
|
428
|
+
|
|
429
|
+
- **GitHub**: https://github.com/ruvnet/agentic-flow
|
|
430
|
+
- **NPM**: https://npmjs.com/package/agentic-flow
|
|
431
|
+
- **Issues**: https://github.com/ruvnet/agentic-flow/issues
|
|
432
|
+
- **Documentation**: Check /docs in the repo
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
**Last Updated**: 2025-10-13
|
|
437
|
+
**Package Version**: agentic-flow@1.5.11
|
|
438
|
+
**Status**: ✅ Published and Validated
|
package/docs/README.md
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# Agentic-Flow Documentation
|
|
2
|
+
|
|
3
|
+
Complete documentation for the agentic-flow platform - AI agent orchestration with 66 specialized agents, 213 MCP tools, ReasoningBank learning memory, and autonomous multi-agent swarms.
|
|
4
|
+
|
|
5
|
+
## 📚 Documentation Structure
|
|
6
|
+
|
|
7
|
+
### Core Documentation
|
|
8
|
+
- **[CLAUDE.md](CLAUDE.md)** - Claude Code configuration and SPARC development environment setup
|
|
9
|
+
|
|
10
|
+
### Quick Start & Guides
|
|
11
|
+
- **[guides/](guides/)** - User guides, tutorials, and how-to documentation
|
|
12
|
+
- [Quick Start Guide](guides/QUICK-START-v1.7.1.md)
|
|
13
|
+
- [MCP Tools](guides/MCP-TOOLS.md)
|
|
14
|
+
- [Claude Code Integration](guides/CLAUDE-CODE-INTEGRATION.md)
|
|
15
|
+
- [Agent Booster](guides/AGENT-BOOSTER.md)
|
|
16
|
+
- [ReasoningBank](guides/REASONINGBANK.md)
|
|
17
|
+
- [Multi-Model Router](guides/MULTI-MODEL-ROUTER.md)
|
|
18
|
+
- [Deployment Guide](guides/DEPLOYMENT.md)
|
|
19
|
+
|
|
20
|
+
### Architecture & Design
|
|
21
|
+
- **[architecture/](architecture/)** - System architecture and design documents
|
|
22
|
+
- [Executive Summary](architecture/EXECUTIVE_SUMMARY.md)
|
|
23
|
+
- [Package Structure](architecture/PACKAGE_STRUCTURE.md)
|
|
24
|
+
- [QUIC Implementation](architecture/QUIC-IMPLEMENTATION-SUMMARY.md)
|
|
25
|
+
- [Integration Status](architecture/INTEGRATION-STATUS.md)
|
|
26
|
+
- [Improvement Plan](architecture/IMPROVEMENT_PLAN.md)
|
|
27
|
+
|
|
28
|
+
### Integration Documentation
|
|
29
|
+
- **[integration-docs/](integration-docs/)** - Integration guides and implementation summaries
|
|
30
|
+
- **[integrations/](integrations/)** - Specific integration implementations
|
|
31
|
+
- [Claude Flow Integration](integrations/CLAUDE_FLOW_INTEGRATION.md)
|
|
32
|
+
- [Flow Nexus Integration](integrations/FLOW-NEXUS-INTEGRATION.md)
|
|
33
|
+
- [FastMCP Integration](integrations/FASTMCP_CLI_INTEGRATION.md)
|
|
34
|
+
|
|
35
|
+
### Feature Documentation
|
|
36
|
+
|
|
37
|
+
#### Provider & Router
|
|
38
|
+
- **[providers/](providers/)** - Provider fallback and configuration
|
|
39
|
+
- [Provider Fallback Guide](providers/PROVIDER-FALLBACK-GUIDE.md)
|
|
40
|
+
- [Provider Fallback Summary](providers/PROVIDER-FALLBACK-SUMMARY.md)
|
|
41
|
+
- [Landing Page Provider Content](providers/LANDING-PAGE-PROVIDER-CONTENT.md)
|
|
42
|
+
- **[router/](router/)** - Multi-model router documentation
|
|
43
|
+
- [Router User Guide](router/ROUTER_USER_GUIDE.md)
|
|
44
|
+
- [Router Config Reference](router/ROUTER_CONFIG_REFERENCE.md)
|
|
45
|
+
|
|
46
|
+
#### QUIC Transport
|
|
47
|
+
- **[quic/](quic/)** - QUIC protocol implementation
|
|
48
|
+
- [QUIC Status](quic/QUIC-STATUS.md)
|
|
49
|
+
- [Implementation Complete](quic/IMPLEMENTATION-COMPLETE-SUMMARY.md)
|
|
50
|
+
- [Final Validation](quic/FINAL-VALIDATION.md)
|
|
51
|
+
- [Performance Validation](quic/PERFORMANCE-VALIDATION.md)
|
|
52
|
+
|
|
53
|
+
#### ReasoningBank
|
|
54
|
+
- **[reasoningbank/](reasoningbank/)** - ReasoningBank learning memory system
|
|
55
|
+
- [Architecture](reasoningbank/REASONINGBANK_ARCHITECTURE.md)
|
|
56
|
+
- [Backends](reasoningbank/REASONINGBANK_BACKENDS.md)
|
|
57
|
+
- [Benchmark Results](reasoningbank/REASONINGBANK-BENCHMARK-RESULTS.md)
|
|
58
|
+
- [Validation](reasoningbank/REASONINGBANK-VALIDATION.md)
|
|
59
|
+
|
|
60
|
+
#### Supabase Integration
|
|
61
|
+
- **[supabase/](supabase/)** - Supabase realtime federation
|
|
62
|
+
- [Quick Start](supabase/QUICKSTART.md)
|
|
63
|
+
- [Implementation Summary](supabase/IMPLEMENTATION-SUMMARY.md)
|
|
64
|
+
- [Test Report](supabase/TEST-REPORT.md)
|
|
65
|
+
|
|
66
|
+
#### Federation
|
|
67
|
+
- **[federation/](federation/)** - Agent federation and deployment
|
|
68
|
+
- [Deployment Validation](federation/DEPLOYMENT-VALIDATION-SUCCESS.md)
|
|
69
|
+
- [Debug Streaming](federation/DEBUG-STREAMING-COMPLETE.md)
|
|
70
|
+
|
|
71
|
+
### Testing & Validation
|
|
72
|
+
- **[testing/](testing/)** - Test documentation and results
|
|
73
|
+
- [Agent System Validation](testing/AGENT-SYSTEM-VALIDATION.md)
|
|
74
|
+
- [Final Testing Summary](testing/FINAL-TESTING-SUMMARY.md)
|
|
75
|
+
- [Regression Test Results](testing/REGRESSION-TEST-RESULTS.md)
|
|
76
|
+
- **[validation/](validation/)** - Validation reports and processes
|
|
77
|
+
- **[validation-reports/](validation-reports/)** - Detailed validation results
|
|
78
|
+
- [Docker Validation](validation-reports/DOCKER_VALIDATION_RESULTS.md)
|
|
79
|
+
- [No Regressions Confirmed](validation-reports/NO_REGRESSIONS_CONFIRMED.md)
|
|
80
|
+
- **[docker-tests/](docker-tests/)** - Docker test configurations
|
|
81
|
+
|
|
82
|
+
### MCP Validation
|
|
83
|
+
- **[mcp-validation/](mcp-validation/)** - Model Context Protocol validation
|
|
84
|
+
- [MCP CLI Validation Report](mcp-validation/MCP-CLI-VALIDATION-REPORT.md)
|
|
85
|
+
- [Implementation Summary](mcp-validation/IMPLEMENTATION-SUMMARY.md)
|
|
86
|
+
|
|
87
|
+
### Benchmarks & Performance
|
|
88
|
+
- **[benchmarks/](benchmarks/)** - Performance benchmarks
|
|
89
|
+
- [QUIC Results](benchmarks/quic-results.md)
|
|
90
|
+
- [Optimization Guide](benchmarks/optimization-guide.md)
|
|
91
|
+
|
|
92
|
+
### Release Information
|
|
93
|
+
- **[releases/](releases/)** - Release notes and GitHub issues
|
|
94
|
+
- [v1.8.13 Release](releases/RELEASE-v1.8.13.md)
|
|
95
|
+
- [v1.5.14 QUIC Transport](releases/v1.5.14-QUIC-TRANSPORT.md)
|
|
96
|
+
- [v1.4.6 ReasoningBank](releases/v1.4.6-reasoningbank-release.md)
|
|
97
|
+
- **[version-releases/](version-releases/)** - Version-specific release documentation
|
|
98
|
+
|
|
99
|
+
### Planning & Research
|
|
100
|
+
- **[plans/](plans/)** - Feature plans and roadmaps
|
|
101
|
+
- [QUIC Implementation](plans/QUIC/)
|
|
102
|
+
- [Agent Booster](plans/agent-booster/)
|
|
103
|
+
- [Requesty](plans/requesty/)
|
|
104
|
+
- **[quantum-goap/](quantum-goap/)** - Goal-Oriented Action Planning
|
|
105
|
+
- **[quantum-research/](quantum-research/)** - Quantum research literature
|
|
106
|
+
|
|
107
|
+
### Issues & Reports
|
|
108
|
+
- **[issues/](issues/)** - Known issues and troubleshooting
|
|
109
|
+
- [Supabase Integration Issue](issues/ISSUE-SUPABASE-INTEGRATION.md)
|
|
110
|
+
- [Xenova Transformers Dependency](issues/ISSUE-xenova-transformers-dependency.md)
|
|
111
|
+
- **[reports/](reports/)** - Status reports and completion summaries
|
|
112
|
+
- **[reviews/](reviews/)** - Code and implementation reviews
|
|
113
|
+
|
|
114
|
+
### Archived Documentation
|
|
115
|
+
- **[archived/](archived/)** - Historical documentation (kept for reference)
|
|
116
|
+
- Old validation reports
|
|
117
|
+
- Deprecated integration guides
|
|
118
|
+
- Previous version documentation
|
|
119
|
+
|
|
120
|
+
## 🚀 Quick Links
|
|
121
|
+
|
|
122
|
+
### Getting Started
|
|
123
|
+
1. [Quick Start Guide](guides/QUICK-START-v1.7.1.md)
|
|
124
|
+
2. [Claude Code Setup](CLAUDE.md)
|
|
125
|
+
3. [Installation Guide](guides/DEPLOYMENT.md)
|
|
126
|
+
|
|
127
|
+
### Core Features
|
|
128
|
+
- [66 Specialized Agents](CLAUDE.md#-available-agents-54-total)
|
|
129
|
+
- [213 MCP Tools](guides/MCP-TOOLS.md)
|
|
130
|
+
- [ReasoningBank Learning](reasoningbank/README.md)
|
|
131
|
+
- [Multi-Model Router](router/README.md)
|
|
132
|
+
- [QUIC Transport](quic/QUIC-STATUS.md)
|
|
133
|
+
|
|
134
|
+
### Integration
|
|
135
|
+
- [Claude Flow](integrations/CLAUDE_FLOW_INTEGRATION.md)
|
|
136
|
+
- [Flow Nexus](integrations/FLOW-NEXUS-INTEGRATION.md)
|
|
137
|
+
- [FastMCP](integrations/FASTMCP_CLI_INTEGRATION.md)
|
|
138
|
+
- [Supabase](supabase/README.md)
|
|
139
|
+
|
|
140
|
+
### Development
|
|
141
|
+
- [Architecture Overview](architecture/EXECUTIVE_SUMMARY.md)
|
|
142
|
+
- [SPARC Methodology](CLAUDE.md#sparc-workflow-phases)
|
|
143
|
+
- [Testing Guide](testing/README.md)
|
|
144
|
+
|
|
145
|
+
## 📖 Documentation Standards
|
|
146
|
+
|
|
147
|
+
### File Organization
|
|
148
|
+
- Use descriptive filenames in UPPERCASE-WITH-DASHES.md format
|
|
149
|
+
- Group related docs in topic-specific directories
|
|
150
|
+
- Keep root directory minimal (README, CLAUDE, LICENSE only)
|
|
151
|
+
|
|
152
|
+
### Content Guidelines
|
|
153
|
+
- Start with a clear title and description
|
|
154
|
+
- Include table of contents for docs > 200 lines
|
|
155
|
+
- Use code blocks with language identifiers
|
|
156
|
+
- Add examples and use cases where applicable
|
|
157
|
+
|
|
158
|
+
### Directory Structure
|
|
159
|
+
```
|
|
160
|
+
docs/
|
|
161
|
+
├── README.md # This file
|
|
162
|
+
├── CLAUDE.md # Claude Code config
|
|
163
|
+
├── LICENSE # License file
|
|
164
|
+
├── architecture/ # System architecture
|
|
165
|
+
├── guides/ # User guides
|
|
166
|
+
├── integration-docs/ # Integration documentation
|
|
167
|
+
├── integrations/ # Specific integrations
|
|
168
|
+
├── testing/ # Test documentation
|
|
169
|
+
├── releases/ # Release notes
|
|
170
|
+
├── issues/ # Known issues
|
|
171
|
+
├── providers/ # Provider configuration
|
|
172
|
+
├── quic/ # QUIC implementation
|
|
173
|
+
├── reasoningbank/ # ReasoningBank docs
|
|
174
|
+
├── router/ # Router documentation
|
|
175
|
+
├── supabase/ # Supabase integration
|
|
176
|
+
└── archived/ # Historical docs
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## 🔍 Search Tips
|
|
180
|
+
|
|
181
|
+
### Finding Documentation
|
|
182
|
+
- Use `grep -r "keyword" docs/` to search all docs
|
|
183
|
+
- Check the appropriate category directory first
|
|
184
|
+
- Look in archived/ for historical documentation
|
|
185
|
+
|
|
186
|
+
### Common Topics
|
|
187
|
+
- **Setup**: See guides/ and CLAUDE.md
|
|
188
|
+
- **API Reference**: See integration-docs/
|
|
189
|
+
- **Troubleshooting**: See issues/
|
|
190
|
+
- **Performance**: See benchmarks/
|
|
191
|
+
- **Releases**: See releases/ and version-releases/
|
|
192
|
+
|
|
193
|
+
## 🤝 Contributing to Docs
|
|
194
|
+
|
|
195
|
+
### Adding New Documentation
|
|
196
|
+
1. Identify the appropriate directory
|
|
197
|
+
2. Follow naming conventions
|
|
198
|
+
3. Include proper frontmatter/headers
|
|
199
|
+
4. Update this README index
|
|
200
|
+
5. Add cross-references as needed
|
|
201
|
+
|
|
202
|
+
### Updating Existing Docs
|
|
203
|
+
1. Keep archived versions if major changes
|
|
204
|
+
2. Update last modified date
|
|
205
|
+
3. Maintain backward compatibility links
|
|
206
|
+
4. Test all code examples
|
|
207
|
+
|
|
208
|
+
## 📞 Support
|
|
209
|
+
|
|
210
|
+
- **GitHub Issues**: https://github.com/ruvnet/agentic-flow/issues
|
|
211
|
+
- **Documentation Updates**: Submit PR to docs/ directory
|
|
212
|
+
- **Questions**: Check issues/ directory first
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
**Last Updated**: November 6, 2025
|
|
217
|
+
**Version**: 1.9.1
|