claude-flow 3.67.0 → 3.68.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/.claude-plugin/marketplace.json +22 -0
- package/README.md +2 -0
- package/node_modules/@claude-flow/codex/dist/cli.js +0 -0
- package/node_modules/@claude-flow/plugin-agent-federation/dist/bin.js +0 -0
- package/package.json +2 -2
- package/v3/@claude-flow/cli/README.md +2 -0
- package/v3/@claude-flow/cli/catalog-manifest.json +3 -3
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.d.ts +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.js +57 -1
- package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts +44 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.js +143 -40
- package/v3/@claude-flow/cli/package.json +2 -2
- package/v3/@claude-flow/shared/dist/core/config/schema.d.ts +96 -96
- package/.claude/.proven-config-version +0 -1
- package/.claude/proven-config.json +0 -42
|
@@ -62,6 +62,28 @@
|
|
|
62
62
|
},
|
|
63
63
|
"description": "Agentic QE (external: maintained in proffesor-for-testing/agentic-qe, pinned to v3.15.17): a quality-engineering fleet with 11 QE agents, 9 skills, 9 commands, the agentic-qe MCP server pinned to the plugin version, and the aqe-mod guard that refuses destructive operations on AQE learning data"
|
|
64
64
|
},
|
|
65
|
+
{
|
|
66
|
+
"name": "agentdb",
|
|
67
|
+
"source": {
|
|
68
|
+
"source": "git-subdir",
|
|
69
|
+
"url": "https://github.com/ruvnet/agentdb.git",
|
|
70
|
+
"path": "plugins/agentdb",
|
|
71
|
+
"ref": "plugin-v3.2.0",
|
|
72
|
+
"sha": "ba52d10bbe32fdf186e2a264305a08d30246a5aa"
|
|
73
|
+
},
|
|
74
|
+
"description": "AgentDB (external: maintained in ruvnet/agentdb, pinned to plugin-v3.2.0): agentdb's own standalone MCP server pinned to agentdb@3.2.0 (vector memory with hybrid keyword + vector episode search and an opt-in local cross-encoder, reflexion, skills, outcome feedback, capabilities report), a memory-specialist agent, 3 skills, /agentdb-status, and the agentdb mod guard that keeps secrets out of memory and refuses delete/reset unless allowed. Complements ruflo-agentdb, which reaches AgentDB through ruflo's server"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "agentic-flow",
|
|
78
|
+
"source": {
|
|
79
|
+
"source": "git-subdir",
|
|
80
|
+
"url": "https://github.com/ruvnet/agentic-flow.git",
|
|
81
|
+
"path": "plugins/agentic-flow",
|
|
82
|
+
"ref": "plugin-v3.1.0",
|
|
83
|
+
"sha": "2c86073bf55a105282bbdd4476fc18f5b7e6f97d"
|
|
84
|
+
},
|
|
85
|
+
"description": "agentic-flow (external: maintained in ruvnet/agentic-flow, pinned to plugin-v3.1.0): the agentic-flow MCP server pinned to agentic-flow@3.1.0 (ReasoningBank learning, multi-provider routing, autopilot learning; readonly profile by default, no tool pre-approved), 2 agents, 3 skills, /agentic-flow-status, and a mod guard on agentic_flow_agent with /agentic-flow-guard"
|
|
86
|
+
},
|
|
65
87
|
{
|
|
66
88
|
"name": "ruflo-docs",
|
|
67
89
|
"source": "./plugins/ruflo-docs",
|
package/README.md
CHANGED
|
@@ -245,6 +245,8 @@ This adds slash commands and agent definitions. `ruflo-core` (installed above) d
|
|
|
245
245
|
| [**ruflo-jujutsu**](plugins/ruflo-jujutsu/README.md) | Analyze git diffs, score risk, suggest reviewers |
|
|
246
246
|
| [**ruflo-docs**](plugins/ruflo-docs/README.md) | Generate and maintain documentation automatically |
|
|
247
247
|
| [**agentic-qe-fleet**](https://github.com/proffesor-for-testing/agentic-qe/tree/v3.15.17/plugins/agentic-qe-fleet) | External, maintained by [Agentic QE](https://github.com/proffesor-for-testing/agentic-qe): 11 QE agents, test generation, coverage, chaos and TDD skills, the `agentic-qe` MCP server, and a guard for AQE learning data (`/plugin install agentic-qe-fleet@ruflo`). Install it from one marketplace only, `agentic-qe` or `ruflo`: enabled from both, its mod and commands load twice |
|
|
248
|
+
| [**agentdb**](https://github.com/ruvnet/agentdb/tree/plugin-v3.2.0/plugins/agentdb) | External, maintained in [ruvnet/agentdb](https://github.com/ruvnet/agentdb): agentdb's own MCP server (pinned `agentdb@3.2.0`: hybrid keyword + vector search, opt-in cross-encoder rerank), a memory-specialist agent, vector-memory / learning / diagnostics skills, `/agentdb-status`, and a guard that keeps secrets out of memory and refuses delete/reset unless allowed (`/plugin install agentdb@ruflo`). Use `ruflo-agentdb` instead if you want AgentDB through ruflo's server; the two can coexist. Install it from one marketplace only, `agentdb` or `ruflo` |
|
|
249
|
+
| [**agentic-flow**](https://github.com/ruvnet/agentic-flow/tree/plugin-v3.1.0/plugins/agentic-flow) | External, maintained in [ruvnet/agentic-flow](https://github.com/ruvnet/agentic-flow): the agentic-flow MCP server (pinned `agentic-flow@3.1.0`, `readonly` profile by default, nothing pre-approved), ReasoningBank and model-router agents, routing / learning / autopilot skills, `/agentic-flow-status`, and a guard on `agentic_flow_agent` (`/plugin install agentic-flow@ruflo`). Install it from one marketplace only, `agentic-flow` or `ruflo` |
|
|
248
250
|
|
|
249
251
|
#### Security & Compliance
|
|
250
252
|
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-flow",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.68.0",
|
|
4
4
|
"workspaces": [
|
|
5
5
|
"v3/@claude-flow/codex",
|
|
6
6
|
"v3/@claude-flow/mcp",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@ruvector/router": "^0.1.31",
|
|
105
105
|
"@ruvector/router-linux-x64-gnu": "^0.1.31",
|
|
106
106
|
"@ruvector/sona": "^0.1.5",
|
|
107
|
-
"agentdb": "^3.
|
|
107
|
+
"agentdb": "^3.2.0",
|
|
108
108
|
"agentic-flow": "^3.0.0",
|
|
109
109
|
"better-sqlite3": "12.9.0"
|
|
110
110
|
},
|
|
@@ -245,6 +245,8 @@ This adds slash commands and agent definitions. `ruflo-core` (installed above) d
|
|
|
245
245
|
| [**ruflo-jujutsu**](plugins/ruflo-jujutsu/README.md) | Analyze git diffs, score risk, suggest reviewers |
|
|
246
246
|
| [**ruflo-docs**](plugins/ruflo-docs/README.md) | Generate and maintain documentation automatically |
|
|
247
247
|
| [**agentic-qe-fleet**](https://github.com/proffesor-for-testing/agentic-qe/tree/v3.15.17/plugins/agentic-qe-fleet) | External, maintained by [Agentic QE](https://github.com/proffesor-for-testing/agentic-qe): 11 QE agents, test generation, coverage, chaos and TDD skills, the `agentic-qe` MCP server, and a guard for AQE learning data (`/plugin install agentic-qe-fleet@ruflo`). Install it from one marketplace only, `agentic-qe` or `ruflo`: enabled from both, its mod and commands load twice |
|
|
248
|
+
| [**agentdb**](https://github.com/ruvnet/agentdb/tree/plugin-v3.2.0/plugins/agentdb) | External, maintained in [ruvnet/agentdb](https://github.com/ruvnet/agentdb): agentdb's own MCP server (pinned `agentdb@3.2.0`: hybrid keyword + vector search, opt-in cross-encoder rerank), a memory-specialist agent, vector-memory / learning / diagnostics skills, `/agentdb-status`, and a guard that keeps secrets out of memory and refuses delete/reset unless allowed (`/plugin install agentdb@ruflo`). Use `ruflo-agentdb` instead if you want AgentDB through ruflo's server; the two can coexist. Install it from one marketplace only, `agentdb` or `ruflo` |
|
|
249
|
+
| [**agentic-flow**](https://github.com/ruvnet/agentic-flow/tree/plugin-v3.1.0/plugins/agentic-flow) | External, maintained in [ruvnet/agentic-flow](https://github.com/ruvnet/agentic-flow): the agentic-flow MCP server (pinned `agentic-flow@3.1.0`, `readonly` profile by default, nothing pre-approved), ReasoningBank and model-router agents, routing / learning / autopilot skills, `/agentic-flow-status`, and a guard on `agentic_flow_agent` (`/plugin install agentic-flow@ruflo`). Install it from one marketplace only, `agentic-flow` or `ruflo` |
|
|
248
250
|
|
|
249
251
|
#### Security & Compliance
|
|
250
252
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"generation": 7,
|
|
4
|
-
"generatedAt": "2026-
|
|
5
|
-
"gitSha": "
|
|
4
|
+
"generatedAt": "2026-11-01T04:34:21.063Z",
|
|
5
|
+
"gitSha": "2b1a3927",
|
|
6
6
|
"catalog": {
|
|
7
7
|
"agents": 177,
|
|
8
|
-
"tools":
|
|
8
|
+
"tools": 446,
|
|
9
9
|
"skills": 34
|
|
10
10
|
},
|
|
11
11
|
"benchmark": null
|
|
@@ -20,6 +20,7 @@ export declare const agentdbCausalEdge: MCPTool;
|
|
|
20
20
|
export declare const agentdbRoute: MCPTool;
|
|
21
21
|
export declare const agentdbSessionStart: MCPTool;
|
|
22
22
|
export declare const agentdbSessionEnd: MCPTool;
|
|
23
|
+
export declare const agentdbEpisodeRecall: MCPTool;
|
|
23
24
|
export declare const agentdbHierarchicalStore: MCPTool;
|
|
24
25
|
export declare const agentdbHierarchicalRecall: MCPTool;
|
|
25
26
|
export declare const agentdbConsolidate: MCPTool;
|
|
@@ -633,12 +633,16 @@ export const agentdbRoute = {
|
|
|
633
633
|
// ===== agentdb_session_start — Session with ReflexionMemory =====
|
|
634
634
|
export const agentdbSessionStart = {
|
|
635
635
|
name: 'agentdb_session-start',
|
|
636
|
-
description: 'Start a session with ReflexionMemory episodic replay Use when generic memory_* tools are wrong because you need AgentDB-specific controllers (HNSW vector search, hierarchical tiers, causal-graph links, pattern store/recall, RaBitQ quantization). For simple key-value persistence, memory_store/memory_retrieve are simpler. For unrelated file work, native Read/Write are fine.',
|
|
636
|
+
description: 'Start a session with ReflexionMemory episodic replay. Set recall=true with a context to get back past session episodes relevant to it (keyword + vector search; rerank=true adds a local cross-encoder, ~200 ms). Use when generic memory_* tools are wrong because you need AgentDB-specific controllers (HNSW vector search, hierarchical tiers, causal-graph links, pattern store/recall, RaBitQ quantization). For simple key-value persistence, memory_store/memory_retrieve are simpler. For unrelated file work, native Read/Write are fine.',
|
|
637
637
|
inputSchema: {
|
|
638
638
|
type: 'object',
|
|
639
639
|
properties: {
|
|
640
640
|
sessionId: { type: 'string', description: 'Session identifier' },
|
|
641
641
|
context: { type: 'string', description: 'Session context for pattern retrieval' },
|
|
642
|
+
recall: { type: 'boolean', description: 'Also return past session episodes relevant to context', default: false },
|
|
643
|
+
k: { type: 'number', description: 'Episodes to recall (1-50)', default: 5 },
|
|
644
|
+
hybrid: { type: 'boolean', description: 'Keyword + vector search; false = vector only', default: true },
|
|
645
|
+
rerank: { type: 'boolean', description: 'Rerank with a local cross-encoder (~200 ms, 23 MB model on first use)', default: false },
|
|
642
646
|
},
|
|
643
647
|
required: ['sessionId'],
|
|
644
648
|
},
|
|
@@ -659,6 +663,10 @@ export const agentdbSessionStart = {
|
|
|
659
663
|
const result = await bridge.bridgeSessionStart({
|
|
660
664
|
sessionId,
|
|
661
665
|
context: validateString(params.context, 'context', 10_000) ?? undefined,
|
|
666
|
+
recall: params.recall === true,
|
|
667
|
+
k: validatePositiveInt(params.k, 5, 50),
|
|
668
|
+
hybrid: params.hybrid !== false,
|
|
669
|
+
rerank: params.rerank === true,
|
|
662
670
|
});
|
|
663
671
|
return result ?? { success: false, error: 'AgentDB bridge not available. Use memory_store/memory_search instead.' };
|
|
664
672
|
}
|
|
@@ -706,6 +714,53 @@ export const agentdbSessionEnd = {
|
|
|
706
714
|
}
|
|
707
715
|
},
|
|
708
716
|
};
|
|
717
|
+
// ===== agentdb_episode-recall — agentdb 3.2 hybrid episode retrieval (ADR-519) =====
|
|
718
|
+
export const agentdbEpisodeRecall = {
|
|
719
|
+
name: 'agentdb_episode-recall',
|
|
720
|
+
description: 'Recall past episodes (session summaries, distilled trajectories) relevant to a task, ranked by keyword + vector search. rerank=true adds a local cross-encoder for better ordering at ~200 ms per call. Use when you want what happened last time on similar work; for key-value entries use memory_search.',
|
|
721
|
+
inputSchema: {
|
|
722
|
+
type: 'object',
|
|
723
|
+
properties: {
|
|
724
|
+
query: { type: 'string', description: 'What you are about to work on' },
|
|
725
|
+
k: { type: 'number', description: 'Episodes to return (1-50)', default: 5 },
|
|
726
|
+
hybrid: { type: 'boolean', description: 'Keyword + vector search; false = vector only', default: true },
|
|
727
|
+
rerank: { type: 'boolean', description: 'Rerank with a local cross-encoder (~200 ms, 23 MB model on first use)', default: false },
|
|
728
|
+
onlySuccesses: { type: 'boolean', description: 'Only episodes recorded as successes' },
|
|
729
|
+
onlyFailures: { type: 'boolean', description: 'Only episodes recorded as failures' },
|
|
730
|
+
minReward: { type: 'number', description: 'Minimum reward (0-1)' },
|
|
731
|
+
timeWindowDays: { type: 'number', description: 'Only episodes from the last N days' },
|
|
732
|
+
},
|
|
733
|
+
required: ['query'],
|
|
734
|
+
},
|
|
735
|
+
handler: async (params) => {
|
|
736
|
+
try {
|
|
737
|
+
const vQuery = validateText(params.query, 'query', 10_000);
|
|
738
|
+
if (!vQuery.valid)
|
|
739
|
+
return { success: false, error: vQuery.error };
|
|
740
|
+
const query = validateString(params.query, 'query', 10_000);
|
|
741
|
+
if (!query || !query.trim())
|
|
742
|
+
return { success: false, error: 'query is required (non-empty string)' };
|
|
743
|
+
if (params.onlySuccesses === true && params.onlyFailures === true) {
|
|
744
|
+
return { success: false, error: 'onlySuccesses and onlyFailures are mutually exclusive' };
|
|
745
|
+
}
|
|
746
|
+
const bridge = await getBridge();
|
|
747
|
+
const result = await bridge.bridgeRecallEpisodes({
|
|
748
|
+
task: query,
|
|
749
|
+
k: validatePositiveInt(params.k, 5, 50),
|
|
750
|
+
hybrid: params.hybrid !== false,
|
|
751
|
+
rerank: params.rerank === true,
|
|
752
|
+
onlySuccesses: params.onlySuccesses === true,
|
|
753
|
+
onlyFailures: params.onlyFailures === true,
|
|
754
|
+
...(typeof params.minReward === 'number' && Number.isFinite(params.minReward) ? { minReward: validateScore(params.minReward, 0) } : {}),
|
|
755
|
+
...(params.timeWindowDays !== undefined ? { timeWindowDays: validatePositiveInt(params.timeWindowDays, 30, 3650) } : {}),
|
|
756
|
+
});
|
|
757
|
+
return result ?? { success: false, error: 'AgentDB ReflexionMemory not available. Use memory_search instead.' };
|
|
758
|
+
}
|
|
759
|
+
catch (error) {
|
|
760
|
+
return { success: false, error: sanitizeError(error) };
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
};
|
|
709
764
|
// ===== agentdb_hierarchical_store — Store to hierarchical memory =====
|
|
710
765
|
export const agentdbHierarchicalStore = {
|
|
711
766
|
name: 'agentdb_hierarchical-store',
|
|
@@ -1547,6 +1602,7 @@ export const agentdbTools = [
|
|
|
1547
1602
|
agentdbRoute,
|
|
1548
1603
|
agentdbSessionStart,
|
|
1549
1604
|
agentdbSessionEnd,
|
|
1605
|
+
agentdbEpisodeRecall, // ADR-519
|
|
1550
1606
|
agentdbHierarchicalStore,
|
|
1551
1607
|
agentdbHierarchicalRecall,
|
|
1552
1608
|
agentdbHierarchicalDelete,
|
|
@@ -507,6 +507,43 @@ export declare function bridgeDeleteCausalNode(options: {
|
|
|
507
507
|
guarded?: boolean;
|
|
508
508
|
error?: string;
|
|
509
509
|
} | null>;
|
|
510
|
+
export interface RecalledEpisode {
|
|
511
|
+
id?: number;
|
|
512
|
+
sessionId: string;
|
|
513
|
+
task: string;
|
|
514
|
+
critique?: string;
|
|
515
|
+
reward: number;
|
|
516
|
+
success: boolean;
|
|
517
|
+
similarity?: number;
|
|
518
|
+
tags?: string[];
|
|
519
|
+
ts?: number;
|
|
520
|
+
}
|
|
521
|
+
export interface EpisodeRecallOptions {
|
|
522
|
+
task: string;
|
|
523
|
+
k?: number;
|
|
524
|
+
/** Keyword + vector fusion. Default true (agentdb's own default). */
|
|
525
|
+
hybrid?: boolean;
|
|
526
|
+
/** Cross-encoder rerank. Default false: ~200 ms on CPU, 23 MB model on first use. */
|
|
527
|
+
rerank?: boolean;
|
|
528
|
+
onlySuccesses?: boolean;
|
|
529
|
+
onlyFailures?: boolean;
|
|
530
|
+
minReward?: number;
|
|
531
|
+
timeWindowDays?: number;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Recall past episodes relevant to a task. Episodes come from session ends
|
|
535
|
+
* and from `memory distill`. Ranking is agentdb's keyword + vector fusion,
|
|
536
|
+
* optionally reranked by a local cross-encoder.
|
|
537
|
+
*/
|
|
538
|
+
export declare function bridgeRecallEpisodes(options: EpisodeRecallOptions & {
|
|
539
|
+
dbPath?: string;
|
|
540
|
+
}): Promise<{
|
|
541
|
+
success: boolean;
|
|
542
|
+
controller: string;
|
|
543
|
+
episodes: RecalledEpisode[];
|
|
544
|
+
hybrid: boolean;
|
|
545
|
+
rerank: boolean;
|
|
546
|
+
} | null>;
|
|
510
547
|
/**
|
|
511
548
|
* Start a session with ReflexionMemory episodic replay.
|
|
512
549
|
* Loads relevant past session patterns for the new session.
|
|
@@ -515,11 +552,17 @@ export declare function bridgeSessionStart(options: {
|
|
|
515
552
|
sessionId: string;
|
|
516
553
|
context?: string;
|
|
517
554
|
dbPath?: string;
|
|
555
|
+
/** Recall past session episodes relevant to `context`. Default false. */
|
|
556
|
+
recall?: boolean;
|
|
557
|
+
k?: number;
|
|
558
|
+
hybrid?: boolean;
|
|
559
|
+
rerank?: boolean;
|
|
518
560
|
}): Promise<{
|
|
519
561
|
success: boolean;
|
|
520
562
|
controller: string;
|
|
521
563
|
restoredPatterns: number;
|
|
522
564
|
sessionId: string;
|
|
565
|
+
episodes?: RecalledEpisode[];
|
|
523
566
|
} | null>;
|
|
524
567
|
/**
|
|
525
568
|
* End a session and persist episodic summary to ReflexionMemory.
|
|
@@ -534,6 +577,7 @@ export declare function bridgeSessionEnd(options: {
|
|
|
534
577
|
success: boolean;
|
|
535
578
|
controller: string;
|
|
536
579
|
persisted: boolean;
|
|
580
|
+
episodeId?: number;
|
|
537
581
|
} | null>;
|
|
538
582
|
/**
|
|
539
583
|
* Route a task via AgentDB's SemanticRouter.
|
|
@@ -2952,6 +2952,64 @@ export async function bridgeDeleteCausalNode(options) {
|
|
|
2952
2952
|
return null;
|
|
2953
2953
|
}
|
|
2954
2954
|
}
|
|
2955
|
+
// ===== Episode recall (agentdb 3.2 hybrid retrieval, ADR-519) =====
|
|
2956
|
+
const EPISODE_TASK_MAX = 4_000;
|
|
2957
|
+
const EPISODE_TEXT_MAX = 2_000;
|
|
2958
|
+
const EPISODE_RECALL_MAX = 50;
|
|
2959
|
+
/** Null when the registry has no ReflexionMemory with retrieveRelevant. */
|
|
2960
|
+
async function recallEpisodesFrom(registry, options) {
|
|
2961
|
+
const reflexion = registry.get('reflexion');
|
|
2962
|
+
if (!reflexion || typeof reflexion.retrieveRelevant !== 'function')
|
|
2963
|
+
return null;
|
|
2964
|
+
const k = Math.min(Math.max(Math.trunc(options.k ?? 5), 1), EPISODE_RECALL_MAX);
|
|
2965
|
+
const rows = await reflexion.retrieveRelevant({
|
|
2966
|
+
task: options.task,
|
|
2967
|
+
k,
|
|
2968
|
+
hybrid: options.hybrid !== false,
|
|
2969
|
+
rerank: options.rerank === true,
|
|
2970
|
+
...(options.onlySuccesses ? { onlySuccesses: true } : {}),
|
|
2971
|
+
...(options.onlyFailures ? { onlyFailures: true } : {}),
|
|
2972
|
+
...(typeof options.minReward === 'number' ? { minReward: options.minReward } : {}),
|
|
2973
|
+
...(typeof options.timeWindowDays === 'number' ? { timeWindowDays: options.timeWindowDays } : {}),
|
|
2974
|
+
});
|
|
2975
|
+
if (!Array.isArray(rows))
|
|
2976
|
+
return [];
|
|
2977
|
+
// Drop the embedding (1.5 KB of floats per row) and bound the text fields:
|
|
2978
|
+
// this goes back over MCP.
|
|
2979
|
+
return rows.slice(0, k).map(r => ({
|
|
2980
|
+
...(typeof r.id === 'number' ? { id: r.id } : {}),
|
|
2981
|
+
sessionId: String(r.sessionId ?? ''),
|
|
2982
|
+
task: String(r.task ?? '').slice(0, EPISODE_TEXT_MAX),
|
|
2983
|
+
...(r.critique ? { critique: String(r.critique).slice(0, EPISODE_TEXT_MAX) } : {}),
|
|
2984
|
+
reward: Number(r.reward ?? 0),
|
|
2985
|
+
success: !!r.success,
|
|
2986
|
+
...(typeof r.similarity === 'number' ? { similarity: Math.round(r.similarity * 1e4) / 1e4 } : {}),
|
|
2987
|
+
...(Array.isArray(r.tags) ? { tags: r.tags.slice(0, 20) } : {}),
|
|
2988
|
+
...(typeof r.ts === 'number' ? { ts: r.ts } : {}),
|
|
2989
|
+
}));
|
|
2990
|
+
}
|
|
2991
|
+
/**
|
|
2992
|
+
* Recall past episodes relevant to a task. Episodes come from session ends
|
|
2993
|
+
* and from `memory distill`. Ranking is agentdb's keyword + vector fusion,
|
|
2994
|
+
* optionally reranked by a local cross-encoder.
|
|
2995
|
+
*/
|
|
2996
|
+
export async function bridgeRecallEpisodes(options) {
|
|
2997
|
+
if (!operationContext.getStore()?.active)
|
|
2998
|
+
return withBridgeOperation(() => bridgeRecallEpisodes(options));
|
|
2999
|
+
const registry = await getRegistry(options.dbPath);
|
|
3000
|
+
if (!registry)
|
|
3001
|
+
return null;
|
|
3002
|
+
const episodes = await recallEpisodesFrom(registry, options);
|
|
3003
|
+
if (!episodes)
|
|
3004
|
+
return null;
|
|
3005
|
+
return {
|
|
3006
|
+
success: true,
|
|
3007
|
+
controller: 'reflexion',
|
|
3008
|
+
episodes,
|
|
3009
|
+
hybrid: options.hybrid !== false,
|
|
3010
|
+
rerank: options.rerank === true,
|
|
3011
|
+
};
|
|
3012
|
+
}
|
|
2955
3013
|
// ===== Phase 5: ReflexionMemory session lifecycle =====
|
|
2956
3014
|
/**
|
|
2957
3015
|
* Start a session with ReflexionMemory episodic replay.
|
|
@@ -2966,20 +3024,36 @@ export async function bridgeSessionStart(options) {
|
|
|
2966
3024
|
try {
|
|
2967
3025
|
let restoredPatterns = 0;
|
|
2968
3026
|
let controller = 'none';
|
|
2969
|
-
//
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
}
|
|
3027
|
+
// Episodic replay: past session episodes relevant to this session's
|
|
3028
|
+
// context, ranked by agentdb's keyword + vector search (agentdb ADR-016).
|
|
3029
|
+
// Opt-in, because a recall costs an embedding call and a generic context
|
|
3030
|
+
// ("new session") matches nothing in particular.
|
|
3031
|
+
let episodes;
|
|
3032
|
+
if (options.recall && options.context) {
|
|
3033
|
+
const recalled = await recallEpisodesFrom(registry, {
|
|
3034
|
+
task: options.context, k: options.k, hybrid: options.hybrid, rerank: options.rerank,
|
|
3035
|
+
});
|
|
3036
|
+
if (recalled) {
|
|
3037
|
+
episodes = recalled;
|
|
3038
|
+
controller = 'reflexion';
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
// Load recent patterns from past sessions. A failure here must not
|
|
3042
|
+
// discard episodes already recalled above.
|
|
3043
|
+
let searchResult = null;
|
|
3044
|
+
try {
|
|
3045
|
+
searchResult = await bridgeSearchEntries({
|
|
3046
|
+
query: options.context || 'session patterns',
|
|
3047
|
+
namespace: 'session',
|
|
3048
|
+
limit: 10,
|
|
3049
|
+
threshold: 0.2,
|
|
3050
|
+
dbPath: options.dbPath,
|
|
3051
|
+
});
|
|
3052
|
+
}
|
|
3053
|
+
catch (err) {
|
|
3054
|
+
if (!episodes)
|
|
3055
|
+
throw err;
|
|
3056
|
+
}
|
|
2983
3057
|
if (searchResult?.results) {
|
|
2984
3058
|
restoredPatterns = searchResult.results.length;
|
|
2985
3059
|
}
|
|
@@ -2988,6 +3062,7 @@ export async function bridgeSessionStart(options) {
|
|
|
2988
3062
|
controller: controller === 'none' ? 'bridge-search' : controller,
|
|
2989
3063
|
restoredPatterns,
|
|
2990
3064
|
sessionId: options.sessionId,
|
|
3065
|
+
...(episodes ? { episodes } : {}),
|
|
2991
3066
|
};
|
|
2992
3067
|
}
|
|
2993
3068
|
catch {
|
|
@@ -3006,35 +3081,63 @@ export async function bridgeSessionEnd(options) {
|
|
|
3006
3081
|
try {
|
|
3007
3082
|
let controller = 'none';
|
|
3008
3083
|
let persisted = false;
|
|
3009
|
-
//
|
|
3084
|
+
// Store the session summary as a ReflexionMemory episode so a later
|
|
3085
|
+
// session can recall it. Only a real summary is worth recalling. The
|
|
3086
|
+
// outcome is unverified, so it is stored neutral (reward 0, not a success)
|
|
3087
|
+
// and can never count as evidence that an approach worked (ADR-171).
|
|
3088
|
+
let episodeId;
|
|
3010
3089
|
const reflexion = registry.get('reflexion');
|
|
3011
|
-
if (reflexion && typeof reflexion.
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3090
|
+
if (options.summary && reflexion && typeof reflexion.storeEpisode === 'function') {
|
|
3091
|
+
try {
|
|
3092
|
+
const id = await reflexion.storeEpisode({
|
|
3093
|
+
sessionId: options.sessionId,
|
|
3094
|
+
task: options.summary.slice(0, EPISODE_TASK_MAX),
|
|
3095
|
+
reward: 0,
|
|
3096
|
+
success: false,
|
|
3097
|
+
tags: ['session-end'],
|
|
3098
|
+
metadata: {
|
|
3099
|
+
source: 'session-end',
|
|
3100
|
+
provenance: 'session-summary',
|
|
3101
|
+
tasksCompleted: options.tasksCompleted ?? 0,
|
|
3102
|
+
patternsLearned: options.patternsLearned ?? 0,
|
|
3103
|
+
},
|
|
3104
|
+
});
|
|
3105
|
+
if (typeof id === 'number' && Number.isFinite(id)) {
|
|
3106
|
+
episodeId = id;
|
|
3107
|
+
controller = 'reflexion';
|
|
3108
|
+
persisted = true;
|
|
3109
|
+
}
|
|
3110
|
+
}
|
|
3111
|
+
catch { /* non-fatal: the memory entry below still records the session */ }
|
|
3112
|
+
}
|
|
3113
|
+
// Persist session summary as memory entry. A failure here must not hide
|
|
3114
|
+
// an episode that was already stored above.
|
|
3115
|
+
let entryStored = false;
|
|
3116
|
+
try {
|
|
3117
|
+
await bridgeStoreEntry({
|
|
3118
|
+
key: `session-${options.sessionId}`,
|
|
3119
|
+
value: JSON.stringify({
|
|
3120
|
+
sessionId: options.sessionId,
|
|
3121
|
+
summary: options.summary || 'Session ended',
|
|
3122
|
+
tasksCompleted: options.tasksCompleted ?? 0,
|
|
3123
|
+
patternsLearned: options.patternsLearned ?? 0,
|
|
3124
|
+
endedAt: new Date().toISOString(),
|
|
3125
|
+
}),
|
|
3126
|
+
namespace: 'session',
|
|
3127
|
+
tags: ['session-end'],
|
|
3128
|
+
upsert: true,
|
|
3129
|
+
dbPath: options.dbPath,
|
|
3016
3130
|
});
|
|
3017
|
-
|
|
3131
|
+
entryStored = true;
|
|
3132
|
+
}
|
|
3133
|
+
catch (err) {
|
|
3134
|
+
if (episodeId === undefined)
|
|
3135
|
+
throw err;
|
|
3136
|
+
}
|
|
3137
|
+
if (entryStored) {
|
|
3138
|
+
controller = controller === 'none' ? 'bridge-store' : controller + '+bridge-store';
|
|
3018
3139
|
persisted = true;
|
|
3019
3140
|
}
|
|
3020
|
-
// Persist session summary as memory entry
|
|
3021
|
-
await bridgeStoreEntry({
|
|
3022
|
-
key: `session-${options.sessionId}`,
|
|
3023
|
-
value: JSON.stringify({
|
|
3024
|
-
sessionId: options.sessionId,
|
|
3025
|
-
summary: options.summary || 'Session ended',
|
|
3026
|
-
tasksCompleted: options.tasksCompleted ?? 0,
|
|
3027
|
-
patternsLearned: options.patternsLearned ?? 0,
|
|
3028
|
-
endedAt: new Date().toISOString(),
|
|
3029
|
-
}),
|
|
3030
|
-
namespace: 'session',
|
|
3031
|
-
tags: ['session-end'],
|
|
3032
|
-
upsert: true,
|
|
3033
|
-
dbPath: options.dbPath,
|
|
3034
|
-
});
|
|
3035
|
-
if (controller === 'none')
|
|
3036
|
-
controller = 'bridge-store';
|
|
3037
|
-
persisted = true;
|
|
3038
3141
|
// Phase 3: Trigger NightlyLearner consolidation if available
|
|
3039
3142
|
const nightlyLearner = registry.get('nightlyLearner');
|
|
3040
3143
|
if (nightlyLearner && typeof nightlyLearner.consolidate === 'function') {
|
|
@@ -3044,7 +3147,7 @@ export async function bridgeSessionEnd(options) {
|
|
|
3044
3147
|
}
|
|
3045
3148
|
catch { /* non-fatal */ }
|
|
3046
3149
|
}
|
|
3047
|
-
return { success: true, controller, persisted };
|
|
3150
|
+
return { success: true, controller, persisted, ...(episodeId !== undefined ? { episodeId } : {}) };
|
|
3048
3151
|
}
|
|
3049
3152
|
catch {
|
|
3050
3153
|
return null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.68.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ruflo 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",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"@metaharness/radio": "~0.1.0",
|
|
140
140
|
"@metaharness/turn-credit": "~0.1.0",
|
|
141
141
|
"@napi-rs/keyring": "1.3.0",
|
|
142
|
-
"agentdb": "^3.
|
|
142
|
+
"agentdb": "^3.2.0",
|
|
143
143
|
"agentic-flow": "^3.0.0",
|
|
144
144
|
"better-sqlite3": "^12.9.0",
|
|
145
145
|
"ruvector": "^0.2.27",
|
|
@@ -39,41 +39,41 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
39
39
|
}>>;
|
|
40
40
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
capabilities: string[];
|
|
43
|
-
priority: number;
|
|
44
|
-
name: string;
|
|
45
42
|
type: string;
|
|
46
43
|
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
capabilities: string[];
|
|
47
46
|
maxConcurrentTasks: number;
|
|
48
|
-
|
|
49
|
-
resources?: {
|
|
50
|
-
maxMemoryMb?: number | undefined;
|
|
51
|
-
maxCpuPercent?: number | undefined;
|
|
52
|
-
} | undefined;
|
|
47
|
+
priority: number;
|
|
53
48
|
timeout?: number | undefined;
|
|
54
49
|
retryPolicy?: {
|
|
55
50
|
maxRetries: number;
|
|
56
51
|
backoffMs: number;
|
|
57
52
|
backoffMultiplier: number;
|
|
58
53
|
} | undefined;
|
|
54
|
+
resources?: {
|
|
55
|
+
maxMemoryMb?: number | undefined;
|
|
56
|
+
maxCpuPercent?: number | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
metadata?: Record<string, unknown> | undefined;
|
|
59
59
|
}, {
|
|
60
|
-
name: string;
|
|
61
60
|
type: string;
|
|
62
61
|
id: string;
|
|
62
|
+
name: string;
|
|
63
63
|
capabilities?: string[] | undefined;
|
|
64
|
+
maxConcurrentTasks?: number | undefined;
|
|
64
65
|
priority?: number | undefined;
|
|
65
|
-
metadata?: Record<string, unknown> | undefined;
|
|
66
|
-
resources?: {
|
|
67
|
-
maxMemoryMb?: number | undefined;
|
|
68
|
-
maxCpuPercent?: number | undefined;
|
|
69
|
-
} | undefined;
|
|
70
66
|
timeout?: number | undefined;
|
|
71
|
-
maxConcurrentTasks?: number | undefined;
|
|
72
67
|
retryPolicy?: {
|
|
73
68
|
maxRetries?: number | undefined;
|
|
74
69
|
backoffMs?: number | undefined;
|
|
75
70
|
backoffMultiplier?: number | undefined;
|
|
76
71
|
} | undefined;
|
|
72
|
+
resources?: {
|
|
73
|
+
maxMemoryMb?: number | undefined;
|
|
74
|
+
maxCpuPercent?: number | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
metadata?: Record<string, unknown> | undefined;
|
|
77
77
|
}>;
|
|
78
78
|
/**
|
|
79
79
|
* Task configuration schema
|
|
@@ -94,53 +94,53 @@ export declare const TaskConfigSchema: z.ZodObject<{
|
|
|
94
94
|
childTaskIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
95
95
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
critical?: boolean | undefined;
|
|
98
|
-
retryCount?: number | undefined;
|
|
99
|
-
requiredCapabilities?: string[] | undefined;
|
|
100
97
|
maxRetries?: number | undefined;
|
|
98
|
+
requiredCapabilities?: string[] | undefined;
|
|
99
|
+
retryCount?: number | undefined;
|
|
100
|
+
critical?: boolean | undefined;
|
|
101
101
|
parentTaskId?: string | undefined;
|
|
102
102
|
childTaskIds?: string[] | undefined;
|
|
103
103
|
tags?: string[] | undefined;
|
|
104
104
|
}, {
|
|
105
|
-
critical?: boolean | undefined;
|
|
106
|
-
retryCount?: number | undefined;
|
|
107
|
-
requiredCapabilities?: string[] | undefined;
|
|
108
105
|
maxRetries?: number | undefined;
|
|
106
|
+
requiredCapabilities?: string[] | undefined;
|
|
107
|
+
retryCount?: number | undefined;
|
|
108
|
+
critical?: boolean | undefined;
|
|
109
109
|
parentTaskId?: string | undefined;
|
|
110
110
|
childTaskIds?: string[] | undefined;
|
|
111
111
|
tags?: string[] | undefined;
|
|
112
112
|
}>>;
|
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
|
-
description: string;
|
|
115
|
-
priority: number;
|
|
116
114
|
type: string;
|
|
115
|
+
priority: number;
|
|
116
|
+
description: string;
|
|
117
|
+
timeout?: number | undefined;
|
|
117
118
|
metadata?: {
|
|
118
|
-
critical?: boolean | undefined;
|
|
119
|
-
retryCount?: number | undefined;
|
|
120
|
-
requiredCapabilities?: string[] | undefined;
|
|
121
119
|
maxRetries?: number | undefined;
|
|
120
|
+
requiredCapabilities?: string[] | undefined;
|
|
121
|
+
retryCount?: number | undefined;
|
|
122
|
+
critical?: boolean | undefined;
|
|
122
123
|
parentTaskId?: string | undefined;
|
|
123
124
|
childTaskIds?: string[] | undefined;
|
|
124
125
|
tags?: string[] | undefined;
|
|
125
126
|
} | undefined;
|
|
126
127
|
assignedAgent?: string | undefined;
|
|
127
|
-
timeout?: number | undefined;
|
|
128
128
|
input?: Record<string, unknown> | undefined;
|
|
129
129
|
}, {
|
|
130
|
-
description: string;
|
|
131
130
|
type: string;
|
|
131
|
+
description: string;
|
|
132
132
|
priority?: number | undefined;
|
|
133
|
+
timeout?: number | undefined;
|
|
133
134
|
metadata?: {
|
|
134
|
-
critical?: boolean | undefined;
|
|
135
|
-
retryCount?: number | undefined;
|
|
136
|
-
requiredCapabilities?: string[] | undefined;
|
|
137
135
|
maxRetries?: number | undefined;
|
|
136
|
+
requiredCapabilities?: string[] | undefined;
|
|
137
|
+
retryCount?: number | undefined;
|
|
138
|
+
critical?: boolean | undefined;
|
|
138
139
|
parentTaskId?: string | undefined;
|
|
139
140
|
childTaskIds?: string[] | undefined;
|
|
140
141
|
tags?: string[] | undefined;
|
|
141
142
|
} | undefined;
|
|
142
143
|
assignedAgent?: string | undefined;
|
|
143
|
-
timeout?: number | undefined;
|
|
144
144
|
input?: Record<string, unknown> | undefined;
|
|
145
145
|
}>;
|
|
146
146
|
/**
|
|
@@ -211,7 +211,7 @@ export declare const SwarmConfigSchema: z.ZodObject<{
|
|
|
211
211
|
}>>;
|
|
212
212
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
213
213
|
}, "strip", z.ZodTypeAny, {
|
|
214
|
-
topology: "hierarchical
|
|
214
|
+
topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
|
|
215
215
|
maxAgents: number;
|
|
216
216
|
metadata?: Record<string, unknown> | undefined;
|
|
217
217
|
autoScale?: {
|
|
@@ -235,9 +235,9 @@ export declare const SwarmConfigSchema: z.ZodObject<{
|
|
|
235
235
|
flushIntervalMs: number;
|
|
236
236
|
} | undefined;
|
|
237
237
|
}, {
|
|
238
|
-
topology: "hierarchical
|
|
239
|
-
maxAgents?: number | undefined;
|
|
238
|
+
topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
|
|
240
239
|
metadata?: Record<string, unknown> | undefined;
|
|
240
|
+
maxAgents?: number | undefined;
|
|
241
241
|
autoScale?: {
|
|
242
242
|
maxAgents?: number | undefined;
|
|
243
243
|
enabled?: boolean | undefined;
|
|
@@ -422,8 +422,8 @@ export declare const MCPServerConfigSchema: z.ZodObject<{
|
|
|
422
422
|
experimental?: Record<string, boolean> | undefined;
|
|
423
423
|
}>>;
|
|
424
424
|
}, "strip", z.ZodTypeAny, {
|
|
425
|
-
name: string;
|
|
426
425
|
version: string;
|
|
426
|
+
name: string;
|
|
427
427
|
transport: {
|
|
428
428
|
type: "stdio" | "http" | "websocket";
|
|
429
429
|
path?: string | undefined;
|
|
@@ -444,6 +444,8 @@ export declare const MCPServerConfigSchema: z.ZodObject<{
|
|
|
444
444
|
host?: string | undefined;
|
|
445
445
|
port?: number | undefined;
|
|
446
446
|
};
|
|
447
|
+
version?: string | undefined;
|
|
448
|
+
name?: string | undefined;
|
|
447
449
|
capabilities?: {
|
|
448
450
|
resources?: boolean | undefined;
|
|
449
451
|
tools?: boolean | undefined;
|
|
@@ -451,8 +453,6 @@ export declare const MCPServerConfigSchema: z.ZodObject<{
|
|
|
451
453
|
logging?: boolean | undefined;
|
|
452
454
|
experimental?: Record<string, boolean> | undefined;
|
|
453
455
|
} | undefined;
|
|
454
|
-
name?: string | undefined;
|
|
455
|
-
version?: string | undefined;
|
|
456
456
|
}>;
|
|
457
457
|
/**
|
|
458
458
|
* Orchestrator configuration schema
|
|
@@ -504,17 +504,17 @@ export declare const OrchestratorConfigSchema: z.ZodObject<{
|
|
|
504
504
|
maxSpawnRetries?: number | undefined;
|
|
505
505
|
}>;
|
|
506
506
|
}, "strip", z.ZodTypeAny, {
|
|
507
|
+
session: {
|
|
508
|
+
persistSessions: boolean;
|
|
509
|
+
dataDir: string;
|
|
510
|
+
sessionRetentionMs: number;
|
|
511
|
+
};
|
|
507
512
|
health: {
|
|
508
513
|
checkInterval: number;
|
|
509
514
|
historyLimit: number;
|
|
510
515
|
degradedThreshold: number;
|
|
511
516
|
unhealthyThreshold: number;
|
|
512
517
|
};
|
|
513
|
-
session: {
|
|
514
|
-
persistSessions: boolean;
|
|
515
|
-
dataDir: string;
|
|
516
|
-
sessionRetentionMs: number;
|
|
517
|
-
};
|
|
518
518
|
lifecycle: {
|
|
519
519
|
maxConcurrentAgents: number;
|
|
520
520
|
spawnTimeout: number;
|
|
@@ -522,17 +522,17 @@ export declare const OrchestratorConfigSchema: z.ZodObject<{
|
|
|
522
522
|
maxSpawnRetries: number;
|
|
523
523
|
};
|
|
524
524
|
}, {
|
|
525
|
+
session: {
|
|
526
|
+
persistSessions?: boolean | undefined;
|
|
527
|
+
dataDir?: string | undefined;
|
|
528
|
+
sessionRetentionMs?: number | undefined;
|
|
529
|
+
};
|
|
525
530
|
health: {
|
|
526
531
|
checkInterval?: number | undefined;
|
|
527
532
|
historyLimit?: number | undefined;
|
|
528
533
|
degradedThreshold?: number | undefined;
|
|
529
534
|
unhealthyThreshold?: number | undefined;
|
|
530
535
|
};
|
|
531
|
-
session: {
|
|
532
|
-
persistSessions?: boolean | undefined;
|
|
533
|
-
dataDir?: string | undefined;
|
|
534
|
-
sessionRetentionMs?: number | undefined;
|
|
535
|
-
};
|
|
536
536
|
lifecycle: {
|
|
537
537
|
maxConcurrentAgents?: number | undefined;
|
|
538
538
|
spawnTimeout?: number | undefined;
|
|
@@ -593,17 +593,17 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
593
593
|
maxSpawnRetries?: number | undefined;
|
|
594
594
|
}>;
|
|
595
595
|
}, "strip", z.ZodTypeAny, {
|
|
596
|
+
session: {
|
|
597
|
+
persistSessions: boolean;
|
|
598
|
+
dataDir: string;
|
|
599
|
+
sessionRetentionMs: number;
|
|
600
|
+
};
|
|
596
601
|
health: {
|
|
597
602
|
checkInterval: number;
|
|
598
603
|
historyLimit: number;
|
|
599
604
|
degradedThreshold: number;
|
|
600
605
|
unhealthyThreshold: number;
|
|
601
606
|
};
|
|
602
|
-
session: {
|
|
603
|
-
persistSessions: boolean;
|
|
604
|
-
dataDir: string;
|
|
605
|
-
sessionRetentionMs: number;
|
|
606
|
-
};
|
|
607
607
|
lifecycle: {
|
|
608
608
|
maxConcurrentAgents: number;
|
|
609
609
|
spawnTimeout: number;
|
|
@@ -611,17 +611,17 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
611
611
|
maxSpawnRetries: number;
|
|
612
612
|
};
|
|
613
613
|
}, {
|
|
614
|
+
session: {
|
|
615
|
+
persistSessions?: boolean | undefined;
|
|
616
|
+
dataDir?: string | undefined;
|
|
617
|
+
sessionRetentionMs?: number | undefined;
|
|
618
|
+
};
|
|
614
619
|
health: {
|
|
615
620
|
checkInterval?: number | undefined;
|
|
616
621
|
historyLimit?: number | undefined;
|
|
617
622
|
degradedThreshold?: number | undefined;
|
|
618
623
|
unhealthyThreshold?: number | undefined;
|
|
619
624
|
};
|
|
620
|
-
session: {
|
|
621
|
-
persistSessions?: boolean | undefined;
|
|
622
|
-
dataDir?: string | undefined;
|
|
623
|
-
sessionRetentionMs?: number | undefined;
|
|
624
|
-
};
|
|
625
625
|
lifecycle: {
|
|
626
626
|
maxConcurrentAgents?: number | undefined;
|
|
627
627
|
spawnTimeout?: number | undefined;
|
|
@@ -786,8 +786,8 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
786
786
|
experimental?: Record<string, boolean> | undefined;
|
|
787
787
|
}>>;
|
|
788
788
|
}, "strip", z.ZodTypeAny, {
|
|
789
|
-
name: string;
|
|
790
789
|
version: string;
|
|
790
|
+
name: string;
|
|
791
791
|
transport: {
|
|
792
792
|
type: "stdio" | "http" | "websocket";
|
|
793
793
|
path?: string | undefined;
|
|
@@ -808,6 +808,8 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
808
808
|
host?: string | undefined;
|
|
809
809
|
port?: number | undefined;
|
|
810
810
|
};
|
|
811
|
+
version?: string | undefined;
|
|
812
|
+
name?: string | undefined;
|
|
811
813
|
capabilities?: {
|
|
812
814
|
resources?: boolean | undefined;
|
|
813
815
|
tools?: boolean | undefined;
|
|
@@ -815,8 +817,6 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
815
817
|
logging?: boolean | undefined;
|
|
816
818
|
experimental?: Record<string, boolean> | undefined;
|
|
817
819
|
} | undefined;
|
|
818
|
-
name?: string | undefined;
|
|
819
|
-
version?: string | undefined;
|
|
820
820
|
}>>;
|
|
821
821
|
swarm: z.ZodOptional<z.ZodObject<{
|
|
822
822
|
topology: z.ZodEnum<["hierarchical", "mesh", "ring", "star", "adaptive", "pheromone-adaptive", "hierarchical-mesh"]>;
|
|
@@ -883,7 +883,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
883
883
|
}>>;
|
|
884
884
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
885
885
|
}, "strip", z.ZodTypeAny, {
|
|
886
|
-
topology: "hierarchical
|
|
886
|
+
topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
|
|
887
887
|
maxAgents: number;
|
|
888
888
|
metadata?: Record<string, unknown> | undefined;
|
|
889
889
|
autoScale?: {
|
|
@@ -907,9 +907,9 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
907
907
|
flushIntervalMs: number;
|
|
908
908
|
} | undefined;
|
|
909
909
|
}, {
|
|
910
|
-
topology: "hierarchical
|
|
911
|
-
maxAgents?: number | undefined;
|
|
910
|
+
topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
|
|
912
911
|
metadata?: Record<string, unknown> | undefined;
|
|
912
|
+
maxAgents?: number | undefined;
|
|
913
913
|
autoScale?: {
|
|
914
914
|
maxAgents?: number | undefined;
|
|
915
915
|
enabled?: boolean | undefined;
|
|
@@ -979,17 +979,17 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
979
979
|
maxSpawnRetries?: number | undefined;
|
|
980
980
|
}>;
|
|
981
981
|
}, "strip", z.ZodTypeAny, {
|
|
982
|
+
session: {
|
|
983
|
+
persistSessions: boolean;
|
|
984
|
+
dataDir: string;
|
|
985
|
+
sessionRetentionMs: number;
|
|
986
|
+
};
|
|
982
987
|
health: {
|
|
983
988
|
checkInterval: number;
|
|
984
989
|
historyLimit: number;
|
|
985
990
|
degradedThreshold: number;
|
|
986
991
|
unhealthyThreshold: number;
|
|
987
992
|
};
|
|
988
|
-
session: {
|
|
989
|
-
persistSessions: boolean;
|
|
990
|
-
dataDir: string;
|
|
991
|
-
sessionRetentionMs: number;
|
|
992
|
-
};
|
|
993
993
|
lifecycle: {
|
|
994
994
|
maxConcurrentAgents: number;
|
|
995
995
|
spawnTimeout: number;
|
|
@@ -997,17 +997,17 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
997
997
|
maxSpawnRetries: number;
|
|
998
998
|
};
|
|
999
999
|
}, {
|
|
1000
|
+
session: {
|
|
1001
|
+
persistSessions?: boolean | undefined;
|
|
1002
|
+
dataDir?: string | undefined;
|
|
1003
|
+
sessionRetentionMs?: number | undefined;
|
|
1004
|
+
};
|
|
1000
1005
|
health: {
|
|
1001
1006
|
checkInterval?: number | undefined;
|
|
1002
1007
|
historyLimit?: number | undefined;
|
|
1003
1008
|
degradedThreshold?: number | undefined;
|
|
1004
1009
|
unhealthyThreshold?: number | undefined;
|
|
1005
1010
|
};
|
|
1006
|
-
session: {
|
|
1007
|
-
persistSessions?: boolean | undefined;
|
|
1008
|
-
dataDir?: string | undefined;
|
|
1009
|
-
sessionRetentionMs?: number | undefined;
|
|
1010
|
-
};
|
|
1011
1011
|
lifecycle: {
|
|
1012
1012
|
maxConcurrentAgents?: number | undefined;
|
|
1013
1013
|
spawnTimeout?: number | undefined;
|
|
@@ -1172,8 +1172,8 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1172
1172
|
experimental?: Record<string, boolean> | undefined;
|
|
1173
1173
|
}>>;
|
|
1174
1174
|
}, "strip", z.ZodTypeAny, {
|
|
1175
|
-
name: string;
|
|
1176
1175
|
version: string;
|
|
1176
|
+
name: string;
|
|
1177
1177
|
transport: {
|
|
1178
1178
|
type: "stdio" | "http" | "websocket";
|
|
1179
1179
|
path?: string | undefined;
|
|
@@ -1194,6 +1194,8 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1194
1194
|
host?: string | undefined;
|
|
1195
1195
|
port?: number | undefined;
|
|
1196
1196
|
};
|
|
1197
|
+
version?: string | undefined;
|
|
1198
|
+
name?: string | undefined;
|
|
1197
1199
|
capabilities?: {
|
|
1198
1200
|
resources?: boolean | undefined;
|
|
1199
1201
|
tools?: boolean | undefined;
|
|
@@ -1201,8 +1203,6 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1201
1203
|
logging?: boolean | undefined;
|
|
1202
1204
|
experimental?: Record<string, boolean> | undefined;
|
|
1203
1205
|
} | undefined;
|
|
1204
|
-
name?: string | undefined;
|
|
1205
|
-
version?: string | undefined;
|
|
1206
1206
|
}>>;
|
|
1207
1207
|
swarm: z.ZodOptional<z.ZodObject<{
|
|
1208
1208
|
topology: z.ZodEnum<["hierarchical", "mesh", "ring", "star", "adaptive", "pheromone-adaptive", "hierarchical-mesh"]>;
|
|
@@ -1269,7 +1269,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1269
1269
|
}>>;
|
|
1270
1270
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1271
1271
|
}, "strip", z.ZodTypeAny, {
|
|
1272
|
-
topology: "hierarchical
|
|
1272
|
+
topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
|
|
1273
1273
|
maxAgents: number;
|
|
1274
1274
|
metadata?: Record<string, unknown> | undefined;
|
|
1275
1275
|
autoScale?: {
|
|
@@ -1293,9 +1293,9 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1293
1293
|
flushIntervalMs: number;
|
|
1294
1294
|
} | undefined;
|
|
1295
1295
|
}, {
|
|
1296
|
-
topology: "hierarchical
|
|
1297
|
-
maxAgents?: number | undefined;
|
|
1296
|
+
topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
|
|
1298
1297
|
metadata?: Record<string, unknown> | undefined;
|
|
1298
|
+
maxAgents?: number | undefined;
|
|
1299
1299
|
autoScale?: {
|
|
1300
1300
|
maxAgents?: number | undefined;
|
|
1301
1301
|
enabled?: boolean | undefined;
|
|
@@ -1365,17 +1365,17 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1365
1365
|
maxSpawnRetries?: number | undefined;
|
|
1366
1366
|
}>;
|
|
1367
1367
|
}, "strip", z.ZodTypeAny, {
|
|
1368
|
+
session: {
|
|
1369
|
+
persistSessions: boolean;
|
|
1370
|
+
dataDir: string;
|
|
1371
|
+
sessionRetentionMs: number;
|
|
1372
|
+
};
|
|
1368
1373
|
health: {
|
|
1369
1374
|
checkInterval: number;
|
|
1370
1375
|
historyLimit: number;
|
|
1371
1376
|
degradedThreshold: number;
|
|
1372
1377
|
unhealthyThreshold: number;
|
|
1373
1378
|
};
|
|
1374
|
-
session: {
|
|
1375
|
-
persistSessions: boolean;
|
|
1376
|
-
dataDir: string;
|
|
1377
|
-
sessionRetentionMs: number;
|
|
1378
|
-
};
|
|
1379
1379
|
lifecycle: {
|
|
1380
1380
|
maxConcurrentAgents: number;
|
|
1381
1381
|
spawnTimeout: number;
|
|
@@ -1383,17 +1383,17 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1383
1383
|
maxSpawnRetries: number;
|
|
1384
1384
|
};
|
|
1385
1385
|
}, {
|
|
1386
|
+
session: {
|
|
1387
|
+
persistSessions?: boolean | undefined;
|
|
1388
|
+
dataDir?: string | undefined;
|
|
1389
|
+
sessionRetentionMs?: number | undefined;
|
|
1390
|
+
};
|
|
1386
1391
|
health: {
|
|
1387
1392
|
checkInterval?: number | undefined;
|
|
1388
1393
|
historyLimit?: number | undefined;
|
|
1389
1394
|
degradedThreshold?: number | undefined;
|
|
1390
1395
|
unhealthyThreshold?: number | undefined;
|
|
1391
1396
|
};
|
|
1392
|
-
session: {
|
|
1393
|
-
persistSessions?: boolean | undefined;
|
|
1394
|
-
dataDir?: string | undefined;
|
|
1395
|
-
sessionRetentionMs?: number | undefined;
|
|
1396
|
-
};
|
|
1397
1397
|
lifecycle: {
|
|
1398
1398
|
maxConcurrentAgents?: number | undefined;
|
|
1399
1399
|
spawnTimeout?: number | undefined;
|
|
@@ -1558,8 +1558,8 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1558
1558
|
experimental?: Record<string, boolean> | undefined;
|
|
1559
1559
|
}>>;
|
|
1560
1560
|
}, "strip", z.ZodTypeAny, {
|
|
1561
|
-
name: string;
|
|
1562
1561
|
version: string;
|
|
1562
|
+
name: string;
|
|
1563
1563
|
transport: {
|
|
1564
1564
|
type: "stdio" | "http" | "websocket";
|
|
1565
1565
|
path?: string | undefined;
|
|
@@ -1580,6 +1580,8 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1580
1580
|
host?: string | undefined;
|
|
1581
1581
|
port?: number | undefined;
|
|
1582
1582
|
};
|
|
1583
|
+
version?: string | undefined;
|
|
1584
|
+
name?: string | undefined;
|
|
1583
1585
|
capabilities?: {
|
|
1584
1586
|
resources?: boolean | undefined;
|
|
1585
1587
|
tools?: boolean | undefined;
|
|
@@ -1587,8 +1589,6 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1587
1589
|
logging?: boolean | undefined;
|
|
1588
1590
|
experimental?: Record<string, boolean> | undefined;
|
|
1589
1591
|
} | undefined;
|
|
1590
|
-
name?: string | undefined;
|
|
1591
|
-
version?: string | undefined;
|
|
1592
1592
|
}>>;
|
|
1593
1593
|
swarm: z.ZodOptional<z.ZodObject<{
|
|
1594
1594
|
topology: z.ZodEnum<["hierarchical", "mesh", "ring", "star", "adaptive", "pheromone-adaptive", "hierarchical-mesh"]>;
|
|
@@ -1655,7 +1655,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1655
1655
|
}>>;
|
|
1656
1656
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1657
1657
|
}, "strip", z.ZodTypeAny, {
|
|
1658
|
-
topology: "hierarchical
|
|
1658
|
+
topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
|
|
1659
1659
|
maxAgents: number;
|
|
1660
1660
|
metadata?: Record<string, unknown> | undefined;
|
|
1661
1661
|
autoScale?: {
|
|
@@ -1679,9 +1679,9 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1679
1679
|
flushIntervalMs: number;
|
|
1680
1680
|
} | undefined;
|
|
1681
1681
|
}, {
|
|
1682
|
-
topology: "hierarchical
|
|
1683
|
-
maxAgents?: number | undefined;
|
|
1682
|
+
topology: "hierarchical" | "mesh" | "ring" | "star" | "adaptive" | "pheromone-adaptive" | "hierarchical-mesh";
|
|
1684
1683
|
metadata?: Record<string, unknown> | undefined;
|
|
1684
|
+
maxAgents?: number | undefined;
|
|
1685
1685
|
autoScale?: {
|
|
1686
1686
|
maxAgents?: number | undefined;
|
|
1687
1687
|
enabled?: boolean | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
sha256:6141a8ea990c5063b77e090ae8f37f9c539d8aa8f58dcceb30f3a82f97e57319
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"adoptedAt": 1793472285081,
|
|
3
|
-
"championId": "sha256:6141a8ea990c5063b77e090ae8f37f9c539d8aa8f58dcceb30f3a82f97e57319",
|
|
4
|
-
"manifest": {
|
|
5
|
-
"schema": "ruflo.proven-config/v1",
|
|
6
|
-
"policy": {
|
|
7
|
-
"ref": "sha256:6141a8ea990c5063b77e090ae8f37f9c539d8aa8f58dcceb30f3a82f97e57319",
|
|
8
|
-
"value": {
|
|
9
|
-
"alpha": 0.3,
|
|
10
|
-
"subjectWeight": 1,
|
|
11
|
-
"mmrLambda": 0.5,
|
|
12
|
-
"bodyWeight": 1.5,
|
|
13
|
-
"typePenaltyFactor": 0.5
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"layer": "framework/node-cli",
|
|
17
|
-
"compatibility": {
|
|
18
|
-
"ruflo": ">=3.24.0"
|
|
19
|
-
},
|
|
20
|
-
"benchmark": {
|
|
21
|
-
"corpus": "ADR-081-labelled-v1",
|
|
22
|
-
"corpusHash": "sha256:2f700b5c363e20a3bd88ce2bc9b87bbbbaa61732c6177894c6ec37890f888982"
|
|
23
|
-
},
|
|
24
|
-
"receipt": {
|
|
25
|
-
"heldOutDelta": 0.07381404928570845,
|
|
26
|
-
"redblue": "PASS",
|
|
27
|
-
"drift": 0,
|
|
28
|
-
"canary": {
|
|
29
|
-
"rollbackRate": 0,
|
|
30
|
-
"latencyP95": 244.612458000076,
|
|
31
|
-
"costPerTask": 0
|
|
32
|
-
},
|
|
33
|
-
"receiptCoverage": 1
|
|
34
|
-
},
|
|
35
|
-
"platform": [
|
|
36
|
-
"linux",
|
|
37
|
-
"macOS",
|
|
38
|
-
"windows"
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
"previous": ""
|
|
42
|
-
}
|