@sparkleideas/cli 3.1.0-alpha.21 → 3.1.0-alpha.22
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/dist/src/appliance/rvfa-builder.js +4 -4
- package/dist/src/appliance/rvfa-format.d.ts +1 -1
- package/dist/src/appliance/rvfa-format.js +1 -1
- package/dist/src/appliance/rvfa-runner.js +8 -8
- package/dist/src/commands/agent.js +15 -15
- package/dist/src/commands/analyze.js +52 -52
- package/dist/src/commands/appliance-advanced.js +1 -1
- package/dist/src/commands/appliance.js +16 -16
- package/dist/src/commands/benchmark.js +14 -14
- package/dist/src/commands/categories.js +1 -1
- package/dist/src/commands/claims.js +16 -16
- package/dist/src/commands/completions.js +37 -37
- package/dist/src/commands/config.js +9 -9
- package/dist/src/commands/daemon.js +21 -21
- package/dist/src/commands/deployment.js +15 -15
- package/dist/src/commands/doctor.js +26 -26
- package/dist/src/commands/embeddings.js +48 -48
- package/dist/src/commands/guidance.js +22 -22
- package/dist/src/commands/hive-mind.js +21 -21
- package/dist/src/commands/hooks.js +105 -105
- package/dist/src/commands/init.js +32 -32
- package/dist/src/commands/issues.js +6 -6
- package/dist/src/commands/mcp.js +13 -13
- package/dist/src/commands/memory.js +35 -35
- package/dist/src/commands/migrate.js +6 -6
- package/dist/src/commands/neural.js +31 -31
- package/dist/src/commands/performance.js +13 -13
- package/dist/src/commands/plugins.js +26 -26
- package/dist/src/commands/process.js +32 -32
- package/dist/src/commands/progress.js +5 -5
- package/dist/src/commands/providers.js +13 -13
- package/dist/src/commands/route.js +26 -26
- package/dist/src/commands/ruvector/backup.js +9 -9
- package/dist/src/commands/ruvector/benchmark.js +4 -4
- package/dist/src/commands/ruvector/import.d.ts +3 -3
- package/dist/src/commands/ruvector/import.js +11 -11
- package/dist/src/commands/ruvector/index.js +9 -9
- package/dist/src/commands/ruvector/init.js +7 -7
- package/dist/src/commands/ruvector/migrate.js +5 -5
- package/dist/src/commands/ruvector/optimize.js +7 -7
- package/dist/src/commands/ruvector/setup.d.ts +3 -3
- package/dist/src/commands/ruvector/setup.js +9 -9
- package/dist/src/commands/ruvector/status.js +4 -4
- package/dist/src/commands/security.js +19 -19
- package/dist/src/commands/session.js +13 -13
- package/dist/src/commands/start.js +13 -13
- package/dist/src/commands/status.js +9 -9
- package/dist/src/commands/swarm.js +7 -7
- package/dist/src/commands/task.js +9 -9
- package/dist/src/commands/transfer-store.js +16 -16
- package/dist/src/commands/update.js +2 -2
- package/dist/src/commands/workflow.js +13 -13
- package/dist/src/config-adapter.js +3 -3
- package/dist/src/index.js +1 -1
- package/dist/src/init/claudemd-generator.js +1 -1
- package/dist/src/init/executor.js +6 -6
- package/dist/src/init/helpers-generator.js +4 -4
- package/dist/src/init/mcp-generator.js +6 -6
- package/dist/src/init/settings-generator.js +4 -4
- package/dist/src/init/statusline-generator.js +12 -12
- package/dist/src/init/types.d.ts +4 -4
- package/dist/src/init/types.js +3 -3
- package/dist/src/mcp-server.js +2 -2
- package/dist/src/mcp-tools/auto-install.js +5 -5
- package/dist/src/mcp-tools/hooks-tools.js +1 -1
- package/dist/src/mcp-tools/neural-tools.js +6 -6
- package/dist/src/mcp-tools/security-tools.js +2 -2
- package/dist/src/memory/memory-bridge.d.ts +4 -4
- package/dist/src/memory/memory-bridge.js +15 -15
- package/dist/src/memory/memory-initializer.js +10 -10
- package/dist/src/plugins/manager.js +8 -8
- package/dist/src/plugins/tests/demo-plugin-store.js +6 -6
- package/dist/src/ruvector/enhanced-model-router.js +3 -3
- package/dist/src/services/agentic-flow-bridge.d.ts +11 -11
- package/dist/src/services/agentic-flow-bridge.js +11 -11
- package/dist/src/services/container-worker-pool.js +2 -2
- package/dist/src/services/worker-queue.js +1 -1
- package/dist/src/suggest.js +1 -1
- package/dist/src/transfer/models/seraphine.js +1 -1
- package/dist/src/transfer/serialization/cfp.js +1 -1
- package/dist/src/transfer/store/discovery.js +1 -1
- package/dist/src/types.d.ts +1 -1
- package/dist/src/update/validator.js +1 -1
- package/package.json +1 -1
|
@@ -340,7 +340,7 @@ export declare function bridgeHealthCheck(dbPath?: string): Promise<{
|
|
|
340
340
|
* Store to hierarchical memory with tier.
|
|
341
341
|
* Valid tiers: working, episodic, semantic
|
|
342
342
|
*
|
|
343
|
-
* Real HierarchicalMemory API (
|
|
343
|
+
* Real HierarchicalMemory API (agentdb alpha.10+):
|
|
344
344
|
* store(content, importance?, tier?, options?) → Promise<string>
|
|
345
345
|
* Stub API (fallback):
|
|
346
346
|
* store(key, value, tier) — synchronous
|
|
@@ -354,7 +354,7 @@ export declare function bridgeHierarchicalStore(params: {
|
|
|
354
354
|
/**
|
|
355
355
|
* Recall from hierarchical memory.
|
|
356
356
|
*
|
|
357
|
-
* Real HierarchicalMemory API (
|
|
357
|
+
* Real HierarchicalMemory API (agentdb alpha.10+):
|
|
358
358
|
* recall(query: MemoryQuery) → Promise<MemoryItem[]>
|
|
359
359
|
* where MemoryQuery = { query, tier?, k?, threshold?, context?, includeDecayed? }
|
|
360
360
|
* Stub API (fallback):
|
|
@@ -368,7 +368,7 @@ export declare function bridgeHierarchicalRecall(params: {
|
|
|
368
368
|
/**
|
|
369
369
|
* Run memory consolidation.
|
|
370
370
|
*
|
|
371
|
-
* Real MemoryConsolidation API (
|
|
371
|
+
* Real MemoryConsolidation API (agentdb alpha.10+):
|
|
372
372
|
* consolidate() → Promise<ConsolidationReport>
|
|
373
373
|
* ConsolidationReport = { episodicProcessed, semanticCreated, memoriesForgotten, ... }
|
|
374
374
|
* Stub API (fallback):
|
|
@@ -398,7 +398,7 @@ export declare function bridgeContextSynthesize(params: {
|
|
|
398
398
|
}): Promise<any>;
|
|
399
399
|
/**
|
|
400
400
|
* Route via SemanticRouter.
|
|
401
|
-
* Available since
|
|
401
|
+
* Available since agentdb 3.0.0-alpha.10 — uses @ruvector/router for
|
|
402
402
|
* semantic matching with keyword fallback.
|
|
403
403
|
*/
|
|
404
404
|
export declare function bridgeSemanticRoute(params: {
|
|
@@ -233,10 +233,10 @@ async function logAttestation(registry, operation, entryId, metadata) {
|
|
|
233
233
|
* Returns null if not available.
|
|
234
234
|
*/
|
|
235
235
|
function getDb(registry) {
|
|
236
|
-
const
|
|
237
|
-
if (
|
|
236
|
+
const agentdb = registry.getAgentDB();
|
|
237
|
+
if (!agentdb?.database)
|
|
238
238
|
return null;
|
|
239
|
-
const db =
|
|
239
|
+
const db = agentdb.database;
|
|
240
240
|
// Ensure memory_entries table exists (idempotent)
|
|
241
241
|
try {
|
|
242
242
|
db.exec(`CREATE TABLE IF NOT EXISTS memory_entries (
|
|
@@ -267,7 +267,7 @@ function getDb(registry) {
|
|
|
267
267
|
catch {
|
|
268
268
|
// Table already exists or db is read-only — that's fine
|
|
269
269
|
}
|
|
270
|
-
return { db,
|
|
270
|
+
return { db, agentdb };
|
|
271
271
|
}
|
|
272
272
|
// ===== Bridge functions — match memory-initializer.ts signatures =====
|
|
273
273
|
/**
|
|
@@ -657,8 +657,8 @@ export async function bridgeGenerateEmbedding(text, dbPath) {
|
|
|
657
657
|
if (!registry)
|
|
658
658
|
return null;
|
|
659
659
|
try {
|
|
660
|
-
const
|
|
661
|
-
const embedder =
|
|
660
|
+
const agentdb = registry.getAgentDB();
|
|
661
|
+
const embedder = agentdb?.embedder;
|
|
662
662
|
if (!embedder)
|
|
663
663
|
return null;
|
|
664
664
|
const emb = await embedder.embed(text);
|
|
@@ -684,8 +684,8 @@ export async function bridgeLoadEmbeddingModel(dbPath) {
|
|
|
684
684
|
if (!registry)
|
|
685
685
|
return null;
|
|
686
686
|
try {
|
|
687
|
-
const
|
|
688
|
-
const embedder =
|
|
687
|
+
const agentdb = registry.getAgentDB();
|
|
688
|
+
const embedder = agentdb?.embedder;
|
|
689
689
|
if (!embedder)
|
|
690
690
|
return null;
|
|
691
691
|
// Verify embedder works by generating a test embedding
|
|
@@ -1269,7 +1269,7 @@ export async function bridgeHealthCheck(dbPath) {
|
|
|
1269
1269
|
* Store to hierarchical memory with tier.
|
|
1270
1270
|
* Valid tiers: working, episodic, semantic
|
|
1271
1271
|
*
|
|
1272
|
-
* Real HierarchicalMemory API (
|
|
1272
|
+
* Real HierarchicalMemory API (agentdb alpha.10+):
|
|
1273
1273
|
* store(content, importance?, tier?, options?) → Promise<string>
|
|
1274
1274
|
* Stub API (fallback):
|
|
1275
1275
|
* store(key, value, tier) — synchronous
|
|
@@ -1285,7 +1285,7 @@ export async function bridgeHierarchicalStore(params) {
|
|
|
1285
1285
|
const tier = params.tier || 'working';
|
|
1286
1286
|
// Detect real HierarchicalMemory (has async store returning id) vs stub
|
|
1287
1287
|
if (typeof hm.getStats === 'function' && typeof hm.promote === 'function') {
|
|
1288
|
-
// Real
|
|
1288
|
+
// Real agentdb HierarchicalMemory
|
|
1289
1289
|
const id = await hm.store(params.value, params.importance || 0.5, tier, {
|
|
1290
1290
|
metadata: { key: params.key },
|
|
1291
1291
|
tags: [params.key],
|
|
@@ -1303,7 +1303,7 @@ export async function bridgeHierarchicalStore(params) {
|
|
|
1303
1303
|
/**
|
|
1304
1304
|
* Recall from hierarchical memory.
|
|
1305
1305
|
*
|
|
1306
|
-
* Real HierarchicalMemory API (
|
|
1306
|
+
* Real HierarchicalMemory API (agentdb alpha.10+):
|
|
1307
1307
|
* recall(query: MemoryQuery) → Promise<MemoryItem[]>
|
|
1308
1308
|
* where MemoryQuery = { query, tier?, k?, threshold?, context?, includeDecayed? }
|
|
1309
1309
|
* Stub API (fallback):
|
|
@@ -1319,7 +1319,7 @@ export async function bridgeHierarchicalRecall(params) {
|
|
|
1319
1319
|
return { results: [], error: 'HierarchicalMemory not available' };
|
|
1320
1320
|
// Detect real HierarchicalMemory vs stub
|
|
1321
1321
|
if (typeof hm.getStats === 'function' && typeof hm.promote === 'function') {
|
|
1322
|
-
// Real
|
|
1322
|
+
// Real agentdb HierarchicalMemory — recall takes MemoryQuery object
|
|
1323
1323
|
const memoryQuery = {
|
|
1324
1324
|
query: params.query,
|
|
1325
1325
|
k: params.topK || 5,
|
|
@@ -1344,7 +1344,7 @@ export async function bridgeHierarchicalRecall(params) {
|
|
|
1344
1344
|
/**
|
|
1345
1345
|
* Run memory consolidation.
|
|
1346
1346
|
*
|
|
1347
|
-
* Real MemoryConsolidation API (
|
|
1347
|
+
* Real MemoryConsolidation API (agentdb alpha.10+):
|
|
1348
1348
|
* consolidate() → Promise<ConsolidationReport>
|
|
1349
1349
|
* ConsolidationReport = { episodicProcessed, semanticCreated, memoriesForgotten, ... }
|
|
1350
1350
|
* Stub API (fallback):
|
|
@@ -1435,7 +1435,7 @@ export async function bridgeContextSynthesize(params) {
|
|
|
1435
1435
|
// Detect real HierarchicalMemory (MemoryQuery object) vs stub (string, number)
|
|
1436
1436
|
let recalled;
|
|
1437
1437
|
if (typeof hm.promote === 'function') {
|
|
1438
|
-
// Real
|
|
1438
|
+
// Real agentdb HierarchicalMemory
|
|
1439
1439
|
recalled = await hm.recall({ query: params.query, k: params.maxEntries || 10 });
|
|
1440
1440
|
}
|
|
1441
1441
|
else {
|
|
@@ -1458,7 +1458,7 @@ export async function bridgeContextSynthesize(params) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
/**
|
|
1460
1460
|
* Route via SemanticRouter.
|
|
1461
|
-
* Available since
|
|
1461
|
+
* Available since agentdb 3.0.0-alpha.10 — uses @ruvector/router for
|
|
1462
1462
|
* semantic matching with keyword fallback.
|
|
1463
1463
|
*/
|
|
1464
1464
|
export async function bridgeSemanticRoute(params) {
|
|
@@ -922,7 +922,7 @@ export async function checkAndMigrateLegacy(options) {
|
|
|
922
922
|
* a singleton ControllerRegistry and initializes it with the given dbPath.
|
|
923
923
|
* After this call, all enabled controllers are ready for immediate use.
|
|
924
924
|
*
|
|
925
|
-
* Failures are isolated: if @sparkleideas/memory or
|
|
925
|
+
* Failures are isolated: if @sparkleideas/memory or agentdb is not installed,
|
|
926
926
|
* this returns an empty result without throwing.
|
|
927
927
|
*/
|
|
928
928
|
async function activateControllerRegistry(dbPath, verbose) {
|
|
@@ -1287,11 +1287,11 @@ export async function loadEmbeddingModel(options) {
|
|
|
1287
1287
|
loadTime: Date.now() - startTime
|
|
1288
1288
|
};
|
|
1289
1289
|
}
|
|
1290
|
-
// Fallback: Check for
|
|
1291
|
-
const reasoningBank = await import('
|
|
1290
|
+
// Fallback: Check for agentic-flow ReasoningBank embeddings (v3)
|
|
1291
|
+
const reasoningBank = await import('agentic-flow/reasoningbank').catch(() => null);
|
|
1292
1292
|
if (reasoningBank?.computeEmbedding) {
|
|
1293
1293
|
if (verbose) {
|
|
1294
|
-
console.log('Loading
|
|
1294
|
+
console.log('Loading agentic-flow ReasoningBank embedding model...');
|
|
1295
1295
|
}
|
|
1296
1296
|
embeddingModelState = {
|
|
1297
1297
|
loaded: true,
|
|
@@ -1302,15 +1302,15 @@ export async function loadEmbeddingModel(options) {
|
|
|
1302
1302
|
return {
|
|
1303
1303
|
success: true,
|
|
1304
1304
|
dimensions: 768,
|
|
1305
|
-
modelName: '
|
|
1305
|
+
modelName: 'agentic-flow/reasoningbank',
|
|
1306
1306
|
loadTime: Date.now() - startTime
|
|
1307
1307
|
};
|
|
1308
1308
|
}
|
|
1309
|
-
// Legacy fallback: Check for
|
|
1310
|
-
const agenticFlow = await import('
|
|
1309
|
+
// Legacy fallback: Check for agentic-flow core embeddings
|
|
1310
|
+
const agenticFlow = await import('agentic-flow').catch(() => null);
|
|
1311
1311
|
if (agenticFlow && agenticFlow.embeddings) {
|
|
1312
1312
|
if (verbose) {
|
|
1313
|
-
console.log('Loading
|
|
1313
|
+
console.log('Loading agentic-flow embedding model...');
|
|
1314
1314
|
}
|
|
1315
1315
|
embeddingModelState = {
|
|
1316
1316
|
loaded: true,
|
|
@@ -1321,7 +1321,7 @@ export async function loadEmbeddingModel(options) {
|
|
|
1321
1321
|
return {
|
|
1322
1322
|
success: true,
|
|
1323
1323
|
dimensions: 768,
|
|
1324
|
-
modelName: '
|
|
1324
|
+
modelName: 'agentic-flow',
|
|
1325
1325
|
loadTime: Date.now() - startTime
|
|
1326
1326
|
};
|
|
1327
1327
|
}
|
|
@@ -1648,7 +1648,7 @@ export async function storeEntry(options) {
|
|
|
1648
1648
|
const dbPath = customPath || path.join(swarmDir, 'memory.db');
|
|
1649
1649
|
try {
|
|
1650
1650
|
if (!fs.existsSync(dbPath)) {
|
|
1651
|
-
return { success: false, id: '', error: 'Database not initialized. Run:
|
|
1651
|
+
return { success: false, id: '', error: 'Database not initialized. Run: claude-flow memory init' };
|
|
1652
1652
|
}
|
|
1653
1653
|
// Ensure schema has all required columns (migration for older DBs)
|
|
1654
1654
|
await ensureSchemaColumns(dbPath);
|
|
@@ -114,10 +114,10 @@ export class PluginManager {
|
|
|
114
114
|
if (fs.existsSync(packageJsonPath)) {
|
|
115
115
|
const pkg = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
116
116
|
installedVersion = pkg.version;
|
|
117
|
-
// Check for
|
|
118
|
-
if (pkg['
|
|
119
|
-
commands = pkg['
|
|
120
|
-
hooks = pkg['
|
|
117
|
+
// Check for claude-flow plugin metadata
|
|
118
|
+
if (pkg['claude-flow']) {
|
|
119
|
+
commands = pkg['claude-flow'].commands || [];
|
|
120
|
+
hooks = pkg['claude-flow'].hooks || [];
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
// Create plugin entry
|
|
@@ -177,8 +177,8 @@ export class PluginManager {
|
|
|
177
177
|
enabled: true,
|
|
178
178
|
source: 'local',
|
|
179
179
|
path: absolutePath,
|
|
180
|
-
commands: pkg['
|
|
181
|
-
hooks: pkg['
|
|
180
|
+
commands: pkg['claude-flow']?.commands || [],
|
|
181
|
+
hooks: pkg['claude-flow']?.hooks || [],
|
|
182
182
|
};
|
|
183
183
|
// Save to manifest
|
|
184
184
|
this.manifest.plugins[packageName] = plugin;
|
|
@@ -338,8 +338,8 @@ export class PluginManager {
|
|
|
338
338
|
if (fs.existsSync(packageJsonPath)) {
|
|
339
339
|
const pkg = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
340
340
|
existing.version = pkg.version;
|
|
341
|
-
existing.commands = pkg['
|
|
342
|
-
existing.hooks = pkg['
|
|
341
|
+
existing.commands = pkg['claude-flow']?.commands || existing.commands;
|
|
342
|
+
existing.hooks = pkg['claude-flow']?.hooks || existing.hooks;
|
|
343
343
|
}
|
|
344
344
|
await this.saveManifest();
|
|
345
345
|
console.log(`[PluginManager] Upgraded ${packageName} to ${existing.version}`);
|
|
@@ -93,7 +93,7 @@ async function demo() {
|
|
|
93
93
|
console.log('');
|
|
94
94
|
}
|
|
95
95
|
console.log(' To install:');
|
|
96
|
-
console.log(' $
|
|
96
|
+
console.log(' $ claude-flow plugins install -n plugin-creator');
|
|
97
97
|
console.log('');
|
|
98
98
|
}
|
|
99
99
|
// Summary
|
|
@@ -112,11 +112,11 @@ async function demo() {
|
|
|
112
112
|
console.log(' ✅ Content-addressed storage (CID)');
|
|
113
113
|
console.log('');
|
|
114
114
|
console.log(' CLI Commands:');
|
|
115
|
-
console.log(' $
|
|
116
|
-
console.log(' $
|
|
117
|
-
console.log(' $
|
|
118
|
-
console.log(' $
|
|
119
|
-
console.log(' $
|
|
115
|
+
console.log(' $ claude-flow plugins list # List all plugins');
|
|
116
|
+
console.log(' $ claude-flow plugins list --official # Official only');
|
|
117
|
+
console.log(' $ claude-flow plugins search -q neural # Search plugins');
|
|
118
|
+
console.log(' $ claude-flow plugins info -n plugin-creator');
|
|
119
|
+
console.log(' $ claude-flow plugins install -n plugin-creator');
|
|
120
120
|
console.log('');
|
|
121
121
|
}
|
|
122
122
|
demo().catch(err => {
|
|
@@ -430,10 +430,10 @@ export class EnhancedModelRouter {
|
|
|
430
430
|
};
|
|
431
431
|
const instruction = intentToInstruction[intent.type];
|
|
432
432
|
const language = intent.language || 'javascript';
|
|
433
|
-
// Try local
|
|
433
|
+
// Try local agentic-flow agent-booster (v3 — no npx needed)
|
|
434
434
|
// Note: agent-booster export declared but dist missing in alpha.1; use intelligence path as fallback
|
|
435
|
-
const boosterModule = await import('
|
|
436
|
-
.catch(() => import(/* @vite-ignore */ '
|
|
435
|
+
const boosterModule = await import('agentic-flow/agent-booster')
|
|
436
|
+
.catch(() => import(/* @vite-ignore */ 'agentic-flow/intelligence/agent-booster-enhanced'))
|
|
437
437
|
.catch(() => null);
|
|
438
438
|
if (boosterModule?.enhancedApply) {
|
|
439
439
|
const result = await boosterModule.enhancedApply({
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* agentic-flow v3 integration bridge
|
|
3
3
|
*
|
|
4
|
-
* Provides a single lazy-loading entry point for all
|
|
5
|
-
* subpath exports. Every accessor returns `null` when
|
|
4
|
+
* Provides a single lazy-loading entry point for all agentic-flow v3
|
|
5
|
+
* subpath exports. Every accessor returns `null` when agentic-flow is
|
|
6
6
|
* not installed — callers never throw on missing optional dependency.
|
|
7
7
|
*
|
|
8
8
|
* @module agentic-flow-bridge
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* Load the ReasoningBank module (4-step learning pipeline).
|
|
12
|
-
* Returns null if
|
|
12
|
+
* Returns null if agentic-flow is not installed.
|
|
13
13
|
* Race-safe: concurrent callers share the same import Promise.
|
|
14
14
|
*/
|
|
15
|
-
export declare function getReasoningBank(): Promise<typeof import("
|
|
15
|
+
export declare function getReasoningBank(): Promise<typeof import("agentic-flow/reasoningbank") | null>;
|
|
16
16
|
/**
|
|
17
17
|
* Load the ModelRouter module (multi-provider LLM routing).
|
|
18
|
-
* Returns null if
|
|
18
|
+
* Returns null if agentic-flow is not installed.
|
|
19
19
|
*/
|
|
20
|
-
export declare function getRouter(): Promise<typeof import("
|
|
20
|
+
export declare function getRouter(): Promise<typeof import("agentic-flow/router") | null>;
|
|
21
21
|
/**
|
|
22
22
|
* Load the Orchestration module (workflow engine).
|
|
23
|
-
* Returns null if
|
|
23
|
+
* Returns null if agentic-flow is not installed.
|
|
24
24
|
*/
|
|
25
|
-
export declare function getOrchestration(): Promise<typeof import("
|
|
25
|
+
export declare function getOrchestration(): Promise<typeof import("agentic-flow/orchestration") | null>;
|
|
26
26
|
/**
|
|
27
27
|
* Compute an embedding vector via ReasoningBank, falling back to null.
|
|
28
28
|
*/
|
|
@@ -34,11 +34,11 @@ export declare function retrieveMemories(query: string, opts?: {
|
|
|
34
34
|
k?: number;
|
|
35
35
|
}): Promise<any[]>;
|
|
36
36
|
/**
|
|
37
|
-
* Check whether
|
|
37
|
+
* Check whether agentic-flow v3 is available at runtime.
|
|
38
38
|
*/
|
|
39
39
|
export declare function isAvailable(): Promise<boolean>;
|
|
40
40
|
/**
|
|
41
|
-
* Return a summary of available
|
|
41
|
+
* Return a summary of available agentic-flow v3 capabilities.
|
|
42
42
|
*/
|
|
43
43
|
export declare function capabilities(): Promise<{
|
|
44
44
|
available: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* agentic-flow v3 integration bridge
|
|
3
3
|
*
|
|
4
|
-
* Provides a single lazy-loading entry point for all
|
|
5
|
-
* subpath exports. Every accessor returns `null` when
|
|
4
|
+
* Provides a single lazy-loading entry point for all agentic-flow v3
|
|
5
|
+
* subpath exports. Every accessor returns `null` when agentic-flow is
|
|
6
6
|
* not installed — callers never throw on missing optional dependency.
|
|
7
7
|
*
|
|
8
8
|
* @module agentic-flow-bridge
|
|
@@ -18,32 +18,32 @@ let _orchestrationP = null;
|
|
|
18
18
|
// ---------------------------------------------------------------------------
|
|
19
19
|
/**
|
|
20
20
|
* Load the ReasoningBank module (4-step learning pipeline).
|
|
21
|
-
* Returns null if
|
|
21
|
+
* Returns null if agentic-flow is not installed.
|
|
22
22
|
* Race-safe: concurrent callers share the same import Promise.
|
|
23
23
|
*/
|
|
24
24
|
export function getReasoningBank() {
|
|
25
25
|
if (_reasoningBankP === null) {
|
|
26
|
-
_reasoningBankP = import('
|
|
26
|
+
_reasoningBankP = import('agentic-flow/reasoningbank').catch(() => null);
|
|
27
27
|
}
|
|
28
28
|
return _reasoningBankP;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Load the ModelRouter module (multi-provider LLM routing).
|
|
32
|
-
* Returns null if
|
|
32
|
+
* Returns null if agentic-flow is not installed.
|
|
33
33
|
*/
|
|
34
34
|
export function getRouter() {
|
|
35
35
|
if (_routerP === null) {
|
|
36
|
-
_routerP = import('
|
|
36
|
+
_routerP = import('agentic-flow/router').catch(() => null);
|
|
37
37
|
}
|
|
38
38
|
return _routerP;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* Load the Orchestration module (workflow engine).
|
|
42
|
-
* Returns null if
|
|
42
|
+
* Returns null if agentic-flow is not installed.
|
|
43
43
|
*/
|
|
44
44
|
export function getOrchestration() {
|
|
45
45
|
if (_orchestrationP === null) {
|
|
46
|
-
_orchestrationP = import('
|
|
46
|
+
_orchestrationP = import('agentic-flow/orchestration').catch(() => null);
|
|
47
47
|
}
|
|
48
48
|
return _orchestrationP;
|
|
49
49
|
}
|
|
@@ -69,14 +69,14 @@ export async function retrieveMemories(query, opts) {
|
|
|
69
69
|
return rb.retrieveMemories(query, opts);
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
* Check whether
|
|
72
|
+
* Check whether agentic-flow v3 is available at runtime.
|
|
73
73
|
*/
|
|
74
74
|
export async function isAvailable() {
|
|
75
75
|
const rb = await getReasoningBank();
|
|
76
76
|
return rb !== null;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Return a summary of available
|
|
79
|
+
* Return a summary of available agentic-flow v3 capabilities.
|
|
80
80
|
*/
|
|
81
81
|
export async function capabilities() {
|
|
82
82
|
const [rb, router, orch] = await Promise.all([
|
|
@@ -447,9 +447,9 @@ export class ContainerWorkerPool extends EventEmitter {
|
|
|
447
447
|
* Build worker command for container execution
|
|
448
448
|
*/
|
|
449
449
|
buildWorkerCommand(options) {
|
|
450
|
-
// Use npx to run
|
|
450
|
+
// Use npx to run claude-flow daemon trigger
|
|
451
451
|
return [
|
|
452
|
-
'npx', '
|
|
452
|
+
'npx', 'claude-flow@v3alpha',
|
|
453
453
|
'daemon', 'trigger',
|
|
454
454
|
'-w', options.workerType,
|
|
455
455
|
'--headless',
|
|
@@ -23,7 +23,7 @@ import { randomUUID } from 'crypto';
|
|
|
23
23
|
// ============================================
|
|
24
24
|
const DEFAULT_CONFIG = {
|
|
25
25
|
redisUrl: 'redis://localhost:6379',
|
|
26
|
-
queuePrefix: '
|
|
26
|
+
queuePrefix: 'claude-flow:queue',
|
|
27
27
|
defaultTimeoutMs: 300000, // 5 minutes
|
|
28
28
|
maxRetries: 3,
|
|
29
29
|
resultTtlSeconds: 86400, // 24 hours
|
package/dist/src/suggest.js
CHANGED
|
@@ -174,7 +174,7 @@ export function suggestCommand(unknownCommand, availableCommands) {
|
|
|
174
174
|
if (suggestions.length === 0) {
|
|
175
175
|
return {
|
|
176
176
|
suggestions: [],
|
|
177
|
-
message: 'Run "
|
|
177
|
+
message: 'Run "claude-flow --help" to see available commands.'
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
180
|
if (suggestions.length === 1) {
|
|
@@ -277,7 +277,7 @@ export class PatternDiscovery {
|
|
|
277
277
|
categories: ['routing', 'coordination'],
|
|
278
278
|
tags: ['genesis', 'foundational', 'routing', 'swarm', 'coordination', 'multi-agent', 'hello-world'],
|
|
279
279
|
language: 'typescript',
|
|
280
|
-
framework: '
|
|
280
|
+
framework: 'claude-flow',
|
|
281
281
|
downloads: 1000,
|
|
282
282
|
rating: 5.0,
|
|
283
283
|
ratingCount: 42,
|
package/dist/src/types.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ export interface SwarmConfig {
|
|
|
77
77
|
healthCheckInterval: number;
|
|
78
78
|
}
|
|
79
79
|
export interface MemoryConfig {
|
|
80
|
-
backend: '
|
|
80
|
+
backend: 'agentdb' | 'sqlite' | 'memory' | 'hybrid';
|
|
81
81
|
persistPath: string;
|
|
82
82
|
cacheSize: number;
|
|
83
83
|
enableHNSW: boolean;
|
|
@@ -15,7 +15,7 @@ const COMPATIBILITY_MATRIX = {
|
|
|
15
15
|
},
|
|
16
16
|
'@sparkleideas/integration': {
|
|
17
17
|
'@sparkleideas/cli': { minVersion: '3.0.0-alpha.70' },
|
|
18
|
-
'
|
|
18
|
+
'agentic-flow': { minVersion: '3.0.0-alpha.1' },
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
// Known breaking changes by version
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparkleideas/cli",
|
|
3
|
-
"version": "3.1.0-alpha.
|
|
3
|
+
"version": "3.1.0-alpha.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Claude Flow CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
6
6
|
"main": "dist/src/index.js",
|