agentic-flow 1.7.0 → 1.7.3
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/.claude/agents/test-neural.md +5 -0
- package/.claude/settings.json +20 -19
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +166 -0
- package/.claude/skills/agentdb-vector-search/SKILL.md +126 -0
- package/.claude/skills/agentic-flow/agentdb-memory-patterns/SKILL.md +166 -0
- package/.claude/skills/agentic-flow/agentdb-vector-search/SKILL.md +126 -0
- package/.claude/skills/agentic-flow/reasoningbank-intelligence/SKILL.md +201 -0
- package/.claude/skills/agentic-flow/swarm-orchestration/SKILL.md +179 -0
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
- package/.claude/skills/skill-builder/README.md +308 -0
- package/.claude/skills/skill-builder/SKILL.md +910 -0
- package/.claude/skills/skill-builder/docs/SPECIFICATION.md +358 -0
- package/.claude/skills/skill-builder/resources/schemas/skill-frontmatter.schema.json +41 -0
- package/.claude/skills/skill-builder/resources/templates/full-skill.template +118 -0
- package/.claude/skills/skill-builder/resources/templates/minimal-skill.template +38 -0
- package/.claude/skills/skill-builder/scripts/generate-skill.sh +334 -0
- package/.claude/skills/skill-builder/scripts/validate-skill.sh +198 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
- package/CHANGELOG.md +117 -0
- package/README.md +81 -17
- package/dist/cli-proxy.js +33 -2
- package/dist/mcp/standalone-stdio.js +4 -200
- package/dist/reasoningbank/index.js +4 -0
- package/dist/utils/cli.js +22 -0
- package/docs/AGENTDB_INTEGRATION.md +379 -0
- package/package.json +4 -4
- package/.claude/answer.md +0 -1
- package/dist/agentdb/benchmarks/comprehensive-benchmark.js +0 -664
- package/dist/agentdb/benchmarks/frontier-benchmark.js +0 -419
- package/dist/agentdb/benchmarks/reflexion-benchmark.js +0 -370
- package/dist/agentdb/cli/agentdb-cli.js +0 -717
- package/dist/agentdb/controllers/CausalMemoryGraph.js +0 -322
- package/dist/agentdb/controllers/CausalRecall.js +0 -281
- package/dist/agentdb/controllers/EmbeddingService.js +0 -118
- package/dist/agentdb/controllers/ExplainableRecall.js +0 -387
- package/dist/agentdb/controllers/NightlyLearner.js +0 -382
- package/dist/agentdb/controllers/ReflexionMemory.js +0 -239
- package/dist/agentdb/controllers/SkillLibrary.js +0 -276
- package/dist/agentdb/controllers/frontier-index.js +0 -9
- package/dist/agentdb/controllers/index.js +0 -8
- package/dist/agentdb/index.js +0 -32
- package/dist/agentdb/optimizations/BatchOperations.js +0 -198
- package/dist/agentdb/optimizations/QueryOptimizer.js +0 -225
- package/dist/agentdb/optimizations/index.js +0 -7
- package/dist/agentdb/tests/frontier-features.test.js +0 -665
- package/dist/memory/SharedMemoryPool.js +0 -211
- package/dist/memory/index.js +0 -6
- package/dist/reasoningbank/AdvancedMemory.js +0 -67
- package/dist/reasoningbank/HybridBackend.js +0 -91
- package/dist/reasoningbank/index-new.js +0 -87
- package/docs/AGENTDB_TESTING.md +0 -411
- package/scripts/run-validation.sh +0 -165
- package/scripts/test-agentdb.sh +0 -153
package/scripts/test-agentdb.sh
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# AgentDB CLI Quick Test Script
|
|
3
|
-
|
|
4
|
-
set -e
|
|
5
|
-
|
|
6
|
-
echo "🧪 AgentDB CLI Testing Script"
|
|
7
|
-
echo "=============================="
|
|
8
|
-
echo ""
|
|
9
|
-
|
|
10
|
-
# Set test database path
|
|
11
|
-
export AGENTDB_PATH="./test-agentdb.db"
|
|
12
|
-
|
|
13
|
-
# Clean up old test database
|
|
14
|
-
if [ -f "$AGENTDB_PATH" ]; then
|
|
15
|
-
echo "🗑️ Removing old test database..."
|
|
16
|
-
rm "$AGENTDB_PATH"
|
|
17
|
-
fi
|
|
18
|
-
|
|
19
|
-
echo "📍 Current directory: $(pwd)"
|
|
20
|
-
echo "💾 Database path: $AGENTDB_PATH"
|
|
21
|
-
echo ""
|
|
22
|
-
|
|
23
|
-
# Test 1: Help command
|
|
24
|
-
echo "1️⃣ Testing help command..."
|
|
25
|
-
echo ""
|
|
26
|
-
node dist/agentdb/cli/agentdb-cli.js --help | head -20
|
|
27
|
-
echo ""
|
|
28
|
-
echo "✅ Help command works!"
|
|
29
|
-
echo ""
|
|
30
|
-
|
|
31
|
-
# Test 2: Store a successful episode
|
|
32
|
-
echo "2️⃣ Storing a successful episode..."
|
|
33
|
-
node dist/agentdb/cli/agentdb-cli.js reflexion store \
|
|
34
|
-
"test-session-1" \
|
|
35
|
-
"implement_authentication" \
|
|
36
|
-
0.95 \
|
|
37
|
-
true \
|
|
38
|
-
"Successfully implemented OAuth2 with JWT tokens" \
|
|
39
|
-
"User login requirement" \
|
|
40
|
-
"Working auth system with refresh tokens" \
|
|
41
|
-
1200 \
|
|
42
|
-
5000
|
|
43
|
-
echo ""
|
|
44
|
-
|
|
45
|
-
# Test 3: Store a failed episode
|
|
46
|
-
echo "3️⃣ Storing a failed episode..."
|
|
47
|
-
node dist/agentdb/cli/agentdb-cli.js reflexion store \
|
|
48
|
-
"test-session-1" \
|
|
49
|
-
"implement_authentication" \
|
|
50
|
-
0.35 \
|
|
51
|
-
false \
|
|
52
|
-
"Forgot to validate token expiration" \
|
|
53
|
-
"User login requirement" \
|
|
54
|
-
"Insecure auth system" \
|
|
55
|
-
800 \
|
|
56
|
-
3000
|
|
57
|
-
echo ""
|
|
58
|
-
|
|
59
|
-
# Test 4: Retrieve episodes
|
|
60
|
-
echo "4️⃣ Retrieving episodes..."
|
|
61
|
-
node dist/agentdb/cli/agentdb-cli.js reflexion retrieve \
|
|
62
|
-
"authentication" \
|
|
63
|
-
5 \
|
|
64
|
-
0.3
|
|
65
|
-
echo ""
|
|
66
|
-
|
|
67
|
-
# Test 5: Get critique summary
|
|
68
|
-
echo "5️⃣ Getting critique summary (failures only)..."
|
|
69
|
-
node dist/agentdb/cli/agentdb-cli.js reflexion critique-summary \
|
|
70
|
-
"authentication" \
|
|
71
|
-
true
|
|
72
|
-
echo ""
|
|
73
|
-
|
|
74
|
-
# Test 6: Create a skill
|
|
75
|
-
echo "6️⃣ Creating a skill..."
|
|
76
|
-
node dist/agentdb/cli/agentdb-cli.js skill create \
|
|
77
|
-
"jwt_authentication" \
|
|
78
|
-
"Generate and validate JWT tokens for user authentication" \
|
|
79
|
-
"function generateJWT(payload, secret) { return jwt.sign(payload, secret, { expiresIn: '1h' }); }"
|
|
80
|
-
echo ""
|
|
81
|
-
|
|
82
|
-
# Test 7: Search skills
|
|
83
|
-
echo "7️⃣ Searching for skills..."
|
|
84
|
-
node dist/agentdb/cli/agentdb-cli.js skill search \
|
|
85
|
-
"authentication" \
|
|
86
|
-
5
|
|
87
|
-
echo ""
|
|
88
|
-
|
|
89
|
-
# Test 8: Add a causal edge
|
|
90
|
-
echo "8️⃣ Adding a causal edge..."
|
|
91
|
-
node dist/agentdb/cli/agentdb-cli.js causal add-edge \
|
|
92
|
-
"add_unit_tests" \
|
|
93
|
-
"code_quality_score" \
|
|
94
|
-
0.25 \
|
|
95
|
-
0.95 \
|
|
96
|
-
100
|
|
97
|
-
echo ""
|
|
98
|
-
|
|
99
|
-
# Test 9: Create an experiment
|
|
100
|
-
echo "9️⃣ Creating an A/B experiment..."
|
|
101
|
-
node dist/agentdb/cli/agentdb-cli.js causal experiment create \
|
|
102
|
-
"test-coverage-vs-bugs" \
|
|
103
|
-
"test_coverage" \
|
|
104
|
-
"bug_rate"
|
|
105
|
-
echo ""
|
|
106
|
-
|
|
107
|
-
# Test 10: Add experiment observations
|
|
108
|
-
echo "🔟 Adding experiment observations..."
|
|
109
|
-
echo " - Treatment group (high test coverage)..."
|
|
110
|
-
node dist/agentdb/cli/agentdb-cli.js causal experiment add-observation \
|
|
111
|
-
1 \
|
|
112
|
-
true \
|
|
113
|
-
0.15 \
|
|
114
|
-
'{"coverage": 0.85, "lines": 5000}'
|
|
115
|
-
echo " - Control group (low test coverage)..."
|
|
116
|
-
node dist/agentdb/cli/agentdb-cli.js causal experiment add-observation \
|
|
117
|
-
1 \
|
|
118
|
-
false \
|
|
119
|
-
0.35 \
|
|
120
|
-
'{"coverage": 0.45, "lines": 5000}'
|
|
121
|
-
echo ""
|
|
122
|
-
|
|
123
|
-
# Test 11: Calculate experiment uplift
|
|
124
|
-
echo "1️⃣1️⃣ Calculating experiment uplift..."
|
|
125
|
-
node dist/agentdb/cli/agentdb-cli.js causal experiment calculate 1
|
|
126
|
-
echo ""
|
|
127
|
-
|
|
128
|
-
# Test 12: Query causal edges
|
|
129
|
-
echo "1️⃣2️⃣ Querying causal edges..."
|
|
130
|
-
node dist/agentdb/cli/agentdb-cli.js causal query \
|
|
131
|
-
"" \
|
|
132
|
-
"" \
|
|
133
|
-
0.5 \
|
|
134
|
-
0.1 \
|
|
135
|
-
10
|
|
136
|
-
echo ""
|
|
137
|
-
|
|
138
|
-
# Test 13: Database stats
|
|
139
|
-
echo "1️⃣3️⃣ Getting database statistics..."
|
|
140
|
-
node dist/agentdb/cli/agentdb-cli.js db stats
|
|
141
|
-
echo ""
|
|
142
|
-
|
|
143
|
-
# Summary
|
|
144
|
-
echo "=============================="
|
|
145
|
-
echo "✅ All 13 tests completed successfully!"
|
|
146
|
-
echo ""
|
|
147
|
-
echo "📊 Test database created at: $AGENTDB_PATH"
|
|
148
|
-
echo "📁 Size: $(du -h "$AGENTDB_PATH" | cut -f1)"
|
|
149
|
-
echo ""
|
|
150
|
-
echo "🔍 You can now explore the database or run individual commands:"
|
|
151
|
-
echo " node dist/agentdb/cli/agentdb-cli.js --help"
|
|
152
|
-
echo " AGENTDB_PATH=$AGENTDB_PATH node dist/agentdb/cli/agentdb-cli.js reflexion retrieve authentication 5"
|
|
153
|
-
echo ""
|