claude-flow 3.67.0 → 3.69.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/skills/agentdb-advanced/SKILL.md +1 -1
- package/.claude/skills/agentdb-learning/SKILL.md +1 -1
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +1 -1
- package/.claude/skills/agentdb-optimization/SKILL.md +1 -1
- package/.claude/skills/agentdb-vector-search/SKILL.md +1 -1
- package/.claude/skills/hooks-automation/SKILL.md +1 -1
- package/.claude/skills/pair-programming/SKILL.md +1 -1
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +1 -1
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +1 -1
- package/.claude/skills/skill-builder/SKILL.md +1 -1
- package/.claude/skills/swarm-orchestration/SKILL.md +1 -1
- package/.claude/skills/v3-cli-modernization/SKILL.md +1 -1
- package/.claude/skills/v3-core-implementation/SKILL.md +1 -1
- package/.claude/skills/v3-ddd-architecture/SKILL.md +1 -1
- package/.claude/skills/v3-integration-deep/SKILL.md +1 -1
- package/.claude/skills/v3-mcp-optimization/SKILL.md +1 -1
- package/.claude/skills/v3-memory-unification/SKILL.md +1 -1
- package/.claude/skills/v3-performance-optimization/SKILL.md +1 -1
- package/.claude/skills/v3-security-overhaul/SKILL.md +1 -1
- package/.claude/skills/v3-swarm-coordination/SKILL.md +1 -1
- package/.claude/skills/verification-quality/SKILL.md +1 -1
- package/.claude-plugin/marketplace.json +22 -0
- package/README.md +2 -0
- package/node_modules/@claude-flow/plugin-agent-federation/dist/application/policy-engine.d.ts +1 -0
- package/node_modules/@claude-flow/plugin-agent-federation/dist/application/policy-engine.d.ts.map +1 -1
- package/node_modules/@claude-flow/plugin-agent-federation/dist/application/policy-engine.js +8 -0
- package/node_modules/@claude-flow/plugin-agent-federation/dist/application/policy-engine.js.map +1 -1
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/entities/trust-level.d.ts.map +1 -1
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/entities/trust-level.js +9 -2
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/entities/trust-level.js.map +1 -1
- package/node_modules/@claude-flow/security/dist/input-validator.d.ts +6 -6
- package/package.json +3 -3
- 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/commands/hooks.js +18 -4
- package/v3/@claude-flow/cli/dist/src/commands/workflow.js +3 -1
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js +31 -14
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agentdb-episode-tools.d.ts +16 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agentdb-episode-tools.js +214 -0
- 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 +59 -1
- package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.js +7 -3
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.js +48 -22
- package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.js +5 -2
- package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.js +12 -5
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js +46 -7
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.js +15 -2
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.js +9 -4
- package/v3/@claude-flow/cli/dist/src/memory/episode-crud.d.ts +70 -0
- package/v3/@claude-flow/cli/dist/src/memory/episode-crud.js +114 -0
- package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.js +19 -1
- package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts +49 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.js +181 -43
- package/v3/@claude-flow/cli/dist/src/mods/command-registry/schema.d.ts +6 -6
- package/v3/@claude-flow/cli/package.json +5 -5
- package/.claude/.proven-config-version +0 -1
- package/.claude/proven-config.json +0 -42
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: agentdb-advanced
|
|
3
3
|
description: "Master advanced AgentDB features including QUIC synchronization, multi-database management, custom distance metrics, hybrid search, and distributed systems integration. Use when building distributed AI systems, multi-agent coordination, or advanced vector search applications."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: agentdb-learning
|
|
3
3
|
description: "Create and train AI learning plugins with AgentDB's 9 reinforcement learning algorithms. Includes Decision Transformer, Q-Learning, SARSA, Actor-Critic, and more. Use when building self-learning agents, implementing RL, or optimizing agent behavior through experience."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: agentdb-memory-patterns
|
|
3
3
|
description: "Implement persistent memory patterns for AI agents using AgentDB. Includes session memory, long-term storage, pattern learning, and context management. Use when building stateful agents, chat systems, or intelligent assistants."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: agentdb-optimization
|
|
3
3
|
description: "Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch operations. Use when optimizing memory usage, improving search speed, or scaling to millions of vectors."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: agentdb-vector-search
|
|
3
3
|
description: "Implement semantic vector search with AgentDB for intelligent document retrieval, similarity matching, and context-aware querying. Use when building RAG systems, semantic search engines, or intelligent knowledge bases."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: hooks-automation
|
|
3
3
|
description: Automated coordination, formatting, and learning from Claude Code operations using intelligent hooks with MCP integration. Includes pre/post task hooks, session management, Git integration, memory coordination, and neural pattern training for enhanced development workflows.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: pair-programming
|
|
3
3
|
description: AI-assisted pair programming with multiple modes (driver/navigator/switch), real-time verification, quality monitoring, and comprehensive testing. Supports TDD, debugging, refactoring, and learning sessions. Features automatic role switching, continuous code review, security scanning, and performance optimization with truth-score verification.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: reasoningbank-agentdb
|
|
3
3
|
description: "Implement ReasoningBank adaptive learning with AgentDB's 150x faster vector database. Includes trajectory tracking, verdict judgment, memory distillation, and pattern recognition. Use when building self-learning agents, optimizing decision-making, or implementing experience replay systems."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: reasoningbank-intelligence
|
|
3
3
|
description: "Implement adaptive learning with ReasoningBank for pattern recognition, strategy optimization, and continuous improvement. Use when building self-learning agents, optimizing workflows, or implementing meta-cognitive systems."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: skill-builder
|
|
3
3
|
description: "Create new Claude Code Skills with proper YAML frontmatter, progressive disclosure structure, and complete directory organization. Use when you need to build custom skills for specific workflows, generate skill templates, or understand the Claude Skills specification."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: swarm-orchestration
|
|
3
3
|
description: "Orchestrate multi-agent swarms with agentic-flow for parallel task execution, dynamic topology, and intelligent coordination. Use when scaling beyond single agents, implementing complex workflows, or building distributed AI systems."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: v3-cli-modernization
|
|
3
3
|
description: "CLI modernization and hooks system enhancement for claude-flow v3. Implements interactive prompts, command decomposition, enhanced hooks integration, and intelligent workflow automation."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: v3-core-implementation
|
|
3
3
|
description: "Core module implementation for claude-flow v3. Implements DDD domains, clean architecture patterns, dependency injection, and modular TypeScript codebase with comprehensive testing."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: v3-mcp-optimization
|
|
3
3
|
description: "MCP server optimization and transport layer enhancement for claude-flow v3. Implements connection pooling, load balancing, tool registry optimization, and performance monitoring for sub-100ms response times."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: v3-performance-optimization
|
|
3
3
|
description: "Achieve aggressive v3 performance targets: 2.49x-7.47x Flash Attention speedup, 150x-12,500x search improvements, 50-75% memory reduction. Comprehensive benchmarking and optimization suite."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: v3-security-overhaul
|
|
3
3
|
description: "Complete security architecture overhaul for claude-flow v3. Addresses critical CVEs (CVE-1, CVE-2, CVE-3) and implements secure-by-default patterns. Use for security-first v3 implementation."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: v3-swarm-coordination
|
|
3
3
|
description: "15-agent hierarchical mesh coordination for v3 implementation. Orchestrates parallel execution across security, core, and integration domains following 10 ADRs with 14-week timeline."
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: verification-quality
|
|
3
3
|
description: |
|
|
4
4
|
Check code quality and change risk with ruflo's shipped analysis commands (analyze diff, analyze complexity, analyze code), and run or extend ruflo's own CI regression guards. Use when assessing a change's risk, finding complexity hot spots, or adding a regression guard to ruflo. The truth-scoring and auto-rollback commands described later in this file are design notes, not shipped CLI commands.
|
|
5
5
|
---
|
|
@@ -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.3.0",
|
|
72
|
+
"sha": "d3df60d4f94f29199373fd45e837085c0d92a2b2"
|
|
73
|
+
},
|
|
74
|
+
"description": "AgentDB (external: maintained in ruvnet/agentdb, pinned to plugin-v3.3.0): agentdb's own standalone MCP server pinned to agentdb@3.3.0 (vector memory with get/list/update/delete for records, patterns and skills, 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
|
|
package/node_modules/@claude-flow/plugin-agent-federation/dist/application/policy-engine.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface SecurityPolicy {
|
|
|
11
11
|
readonly minTrustLevelForWrite: TrustLevel;
|
|
12
12
|
readonly minTrustLevelForMemory: TrustLevel;
|
|
13
13
|
readonly minTrustLevelForSpawn: TrustLevel;
|
|
14
|
+
readonly minTrustLevelForAdmin: TrustLevel;
|
|
14
15
|
}
|
|
15
16
|
export interface PolicyEvaluationResult {
|
|
16
17
|
readonly allowed: boolean;
|
package/node_modules/@claude-flow/plugin-agent-federation/dist/application/policy-engine.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy-engine.d.ts","sourceRoot":"","sources":["../../src/application/policy-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,mCAAmC,CAAC;AACnF,OAAO,EAAE,KAAK,SAAS,EAAgB,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,4CAA4C,CAAC;AACnI,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,2CAA2C,CA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AgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,GACnB,sBAAsB;IAsEzB,oBAAoB,CAAC,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,GAAG,SAAS;IAWhF,mBAAmB,CACjB,YAAY,EAAE,UAAU,EACxB,aAAa,EAAE,UAAU,GACxB;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,qBAAqB,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IAgCvE,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,0BAA0B;CA4BnC"}
|
|
@@ -12,6 +12,7 @@ const DEFAULT_SECURITY_POLICY = {
|
|
|
12
12
|
minTrustLevelForWrite: TrustLevel.ATTESTED,
|
|
13
13
|
minTrustLevelForMemory: TrustLevel.TRUSTED,
|
|
14
14
|
minTrustLevelForSpawn: TrustLevel.PRIVILEGED,
|
|
15
|
+
minTrustLevelForAdmin: TrustLevel.TRUSTED,
|
|
15
16
|
};
|
|
16
17
|
const POLICY_CATEGORY_FOR_MESSAGE_TYPE = {
|
|
17
18
|
'task-assignment': 'write',
|
|
@@ -21,6 +22,8 @@ const POLICY_CATEGORY_FOR_MESSAGE_TYPE = {
|
|
|
21
22
|
'memory-response': 'memory',
|
|
22
23
|
'agent-spawn': 'spawn',
|
|
23
24
|
'agent-handoff': 'spawn',
|
|
25
|
+
'trust-change': 'admin',
|
|
26
|
+
'topology-change': 'admin',
|
|
24
27
|
};
|
|
25
28
|
function policyThresholdForCategory(policy, category) {
|
|
26
29
|
switch (category) {
|
|
@@ -30,6 +33,8 @@ function policyThresholdForCategory(policy, category) {
|
|
|
30
33
|
return policy.minTrustLevelForMemory;
|
|
31
34
|
case 'spawn':
|
|
32
35
|
return policy.minTrustLevelForSpawn;
|
|
36
|
+
case 'admin':
|
|
37
|
+
return policy.minTrustLevelForAdmin;
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
40
|
const CLAIMS_FOR_MESSAGE_TYPE = {
|
|
@@ -197,6 +202,9 @@ export class PolicyEngine {
|
|
|
197
202
|
return 'send';
|
|
198
203
|
case 'agent-spawn':
|
|
199
204
|
return 'remote-spawn';
|
|
205
|
+
case 'trust-change':
|
|
206
|
+
case 'topology-change':
|
|
207
|
+
return 'admin-change';
|
|
200
208
|
case 'status-broadcast':
|
|
201
209
|
return 'status';
|
|
202
210
|
case 'heartbeat':
|
package/node_modules/@claude-flow/plugin-agent-federation/dist/application/policy-engine.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy-engine.js","sourceRoot":"","sources":["../../src/application/policy-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"policy-engine.js","sourceRoot":"","sources":["../../src/application/policy-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAiCnF,MAAM,uBAAuB,GAAmB;IAC9C,mBAAmB,EAAE,SAAS;IAC9B,oBAAoB,EAAE,GAAG;IACzB,mBAAmB,EAAE;QACnB,iBAAiB,EAAE,cAAc,EAAE,iBAAiB;QACpD,eAAe,EAAE,kBAAkB,EAAE,WAAW;QAChD,cAAc,EAAE,iBAAiB,EAAE,aAAa;KACjD;IACD,cAAc,EAAE,IAAI;IACpB,oBAAoB,EAAE,IAAI;IAC1B,qBAAqB,EAAE,UAAU,CAAC,QAAQ;IAC1C,sBAAsB,EAAE,UAAU,CAAC,OAAO;IAC1C,qBAAqB,EAAE,UAAU,CAAC,UAAU;IAC5C,qBAAqB,EAAE,UAAU,CAAC,OAAO;CAC1C,CAAC;AAYF,MAAM,gCAAgC,GAAgE;IACpG,iBAAiB,EAAE,OAAO;IAC1B,eAAe,EAAE,OAAO;IACxB,aAAa,EAAE,OAAO;IACtB,cAAc,EAAE,QAAQ;IACxB,iBAAiB,EAAE,QAAQ;IAC3B,aAAa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package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/entities/trust-level.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trust-level.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/trust-level.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,UAAU,IAAI;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAIhF,CAAC;
|
|
1
|
+
{"version":3,"file":"trust-level.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/trust-level.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,UAAU,IAAI;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAIhF,CAAC;AASF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAMlE,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAGrF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAS5D"}
|
package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/entities/trust-level.js
CHANGED
|
@@ -11,12 +11,19 @@ export const TRUST_TRANSITION_THRESHOLDS = {
|
|
|
11
11
|
'2->3': { upgradeScore: 0.85, downgradeScore: 0.65, minInteractions: 500 },
|
|
12
12
|
'3->4': { upgradeScore: 0.95, downgradeScore: 0.8, minInteractions: 5000 },
|
|
13
13
|
};
|
|
14
|
+
// 'admin-change' gates trust-change/topology-change — control-plane operations
|
|
15
|
+
// that mutate a peer's trust level or the mesh topology itself, as opposed to
|
|
16
|
+
// the data-plane operations (send/receive/query-redacted) available from
|
|
17
|
+
// ATTESTED. Granted from TRUSTED, matching this table's existing floor for
|
|
18
|
+
// other sensitive capabilities (share-context, collaborative-task); this is
|
|
19
|
+
// the hardcoded floor a SecurityPolicy.minTrustLevelForAdmin override cannot
|
|
20
|
+
// loosen below, same defense-in-depth shape as remote-spawn/PRIVILEGED.
|
|
14
21
|
export const CAPABILITY_GATES = {
|
|
15
22
|
[TrustLevel.UNTRUSTED]: ['discovery'],
|
|
16
23
|
[TrustLevel.VERIFIED]: ['discovery', 'status', 'ping'],
|
|
17
24
|
[TrustLevel.ATTESTED]: ['discovery', 'status', 'ping', 'send', 'receive', 'query-redacted'],
|
|
18
|
-
[TrustLevel.TRUSTED]: ['discovery', 'status', 'ping', 'send', 'receive', 'query-redacted', 'share-context', 'collaborative-task'],
|
|
19
|
-
[TrustLevel.PRIVILEGED]: ['discovery', 'status', 'ping', 'send', 'receive', 'query-redacted', 'share-context', 'collaborative-task', 'full-memory', 'remote-spawn'],
|
|
25
|
+
[TrustLevel.TRUSTED]: ['discovery', 'status', 'ping', 'send', 'receive', 'query-redacted', 'share-context', 'collaborative-task', 'admin-change'],
|
|
26
|
+
[TrustLevel.PRIVILEGED]: ['discovery', 'status', 'ping', 'send', 'receive', 'query-redacted', 'share-context', 'collaborative-task', 'full-memory', 'remote-spawn', 'admin-change'],
|
|
20
27
|
};
|
|
21
28
|
export function isOperationAllowed(trustLevel, operation) {
|
|
22
29
|
const allowed = CAPABILITY_GATES[trustLevel];
|
package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/entities/trust-level.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trust-level.js","sourceRoot":"","sources":["../../../src/domain/entities/trust-level.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,qDAAa,CAAA;IACb,mDAAY,CAAA;IACZ,mDAAY,CAAA;IACZ,iDAAW,CAAA;IACX,uDAAc,CAAA;AAChB,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB;AAQD,MAAM,CAAC,MAAM,2BAA2B,GAA6C;IACnF,MAAM,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,eAAe,EAAE,EAAE,EAAE;IACvE,MAAM,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE;IAC1E,MAAM,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE;CAC3E,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAA0C;IACrE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC,WAAW,CAAC;IACrC,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,MAAM,CAAC;IACtD,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,CAAC;IAC3F,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"trust-level.js","sourceRoot":"","sources":["../../../src/domain/entities/trust-level.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAMX;AAND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EAAE,cAAc,EAAE,cAAc,CAAC;CACpL,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,UAAsB,EAAE,SAAiB;IAC1E,MAAM,OAAO,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAC7C,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,KAAiB;IAClD,MAAM,MAAM,GAA+B;QACzC,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,WAAW;QACnC,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,UAAU;QACjC,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,UAAU;QACjC,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,SAAS;QAC/B,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,YAAY;KACtC,CAAC;IACF,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -159,14 +159,14 @@ export declare const SpawnAgentSchema: z.ZodObject<{
|
|
|
159
159
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
160
160
|
}, "strip", z.ZodTypeAny, {
|
|
161
161
|
type: "coder" | "reviewer" | "tester" | "planner" | "researcher" | "security-architect" | "security-auditor" | "memory-specialist" | "swarm-specialist" | "integration-architect" | "performance-engineer" | "core-architect" | "test-architect" | "queen-coordinator" | "project-coordinator";
|
|
162
|
-
id?: string | undefined;
|
|
163
162
|
config?: Record<string, unknown> | undefined;
|
|
164
163
|
timeout?: number | undefined;
|
|
164
|
+
id?: string | undefined;
|
|
165
165
|
}, {
|
|
166
166
|
type: "coder" | "reviewer" | "tester" | "planner" | "researcher" | "security-architect" | "security-auditor" | "memory-specialist" | "swarm-specialist" | "integration-architect" | "performance-engineer" | "core-architect" | "test-architect" | "queen-coordinator" | "project-coordinator";
|
|
167
|
-
id?: string | undefined;
|
|
168
167
|
config?: Record<string, unknown> | undefined;
|
|
169
168
|
timeout?: number | undefined;
|
|
169
|
+
id?: string | undefined;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
172
172
|
* Task input schema
|
|
@@ -181,13 +181,13 @@ export declare const TaskInputSchema: z.ZodObject<{
|
|
|
181
181
|
taskId: string;
|
|
182
182
|
content: string;
|
|
183
183
|
agentType: "coder" | "reviewer" | "tester" | "planner" | "researcher" | "security-architect" | "security-auditor" | "memory-specialist" | "swarm-specialist" | "integration-architect" | "performance-engineer" | "core-architect" | "test-architect" | "queen-coordinator" | "project-coordinator";
|
|
184
|
-
priority?: "
|
|
184
|
+
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
185
185
|
metadata?: Record<string, unknown> | undefined;
|
|
186
186
|
}, {
|
|
187
187
|
taskId: string;
|
|
188
188
|
content: string;
|
|
189
189
|
agentType: "coder" | "reviewer" | "tester" | "planner" | "researcher" | "security-architect" | "security-auditor" | "memory-specialist" | "swarm-specialist" | "integration-architect" | "performance-engineer" | "core-architect" | "test-architect" | "queen-coordinator" | "project-coordinator";
|
|
190
|
-
priority?: "
|
|
190
|
+
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
191
191
|
metadata?: Record<string, unknown> | undefined;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
@@ -234,16 +234,16 @@ export declare const ExecutorConfigSchema: z.ZodObject<{
|
|
|
234
234
|
cwd: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
235
235
|
allowSudo: z.ZodDefault<z.ZodBoolean>;
|
|
236
236
|
}, "strip", z.ZodTypeAny, {
|
|
237
|
-
timeout: number;
|
|
238
237
|
allowedCommands: string[];
|
|
238
|
+
timeout: number;
|
|
239
239
|
maxBuffer: number;
|
|
240
240
|
allowSudo: boolean;
|
|
241
241
|
blockedPatterns?: string[] | undefined;
|
|
242
242
|
cwd?: string | undefined;
|
|
243
243
|
}, {
|
|
244
244
|
allowedCommands: string[];
|
|
245
|
-
timeout?: number | undefined;
|
|
246
245
|
blockedPatterns?: string[] | undefined;
|
|
246
|
+
timeout?: number | undefined;
|
|
247
247
|
maxBuffer?: number | undefined;
|
|
248
248
|
cwd?: string | undefined;
|
|
249
249
|
allowSudo?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-flow",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.69.0",
|
|
4
4
|
"workspaces": [
|
|
5
5
|
"v3/@claude-flow/codex",
|
|
6
6
|
"v3/@claude-flow/mcp",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@claude-flow/cli-core": "3.7.5",
|
|
73
73
|
"@claude-flow/codex": "3.0.5",
|
|
74
74
|
"@claude-flow/mcp": "3.1.5",
|
|
75
|
-
"@claude-flow/neural": "3.0.
|
|
75
|
+
"@claude-flow/neural": "3.0.2",
|
|
76
76
|
"@claude-flow/plugin-agent-federation": "1.0.4",
|
|
77
77
|
"@claude-flow/security": "3.0.6",
|
|
78
78
|
"@claude-flow/shared": "3.0.6",
|
|
@@ -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.3.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-01T17:53:15.719Z",
|
|
5
|
+
"gitSha": "3c30ee3f",
|
|
6
6
|
"catalog": {
|
|
7
7
|
"agents": 177,
|
|
8
|
-
"tools":
|
|
8
|
+
"tools": 450,
|
|
9
9
|
"skills": 34
|
|
10
10
|
},
|
|
11
11
|
"benchmark": null
|
|
@@ -3725,7 +3725,9 @@ const statuslineCommand = {
|
|
|
3725
3725
|
const securityCompact = security.findings > 0
|
|
3726
3726
|
? `Findings:${security.findings}`
|
|
3727
3727
|
: `Security:${security.status}`;
|
|
3728
|
-
|
|
3728
|
+
// #1047: this tier is derived from memory pattern-count thresholds, not
|
|
3729
|
+
// Domain-Driven-Design domain completion — label it for what it is.
|
|
3730
|
+
const line = `Learning:${progress.domainsCompleted}/${progress.totalDomains} ${securityCompact} Swarm:${swarm.activeAgents}/${swarm.maxAgents} Ctx:${system.contextPct}% Int:${system.intelligencePct}%`;
|
|
3729
3731
|
output.writeln(line);
|
|
3730
3732
|
return { success: true, data: statusData };
|
|
3731
3733
|
}
|
|
@@ -3895,7 +3897,10 @@ const statuslineCommand = {
|
|
|
3895
3897
|
const patternsK = progress.patternsLearned >= 1000 ? `${(progress.patternsLearned / 1000).toFixed(1)}k` : String(progress.patternsLearned);
|
|
3896
3898
|
perfIndicator = `${c.brightYellow}📚 ${patternsK} patterns${c.reset}`;
|
|
3897
3899
|
}
|
|
3898
|
-
|
|
3900
|
+
// #1047: renamed from "DDD Domains" — this tier comes from memory
|
|
3901
|
+
// pattern-count thresholds (see getV3Progress above), not actual
|
|
3902
|
+
// Domain-Driven-Design domain completion. "Learning Tier" says what it is.
|
|
3903
|
+
const line1 = `${c.brightCyan}🏗️ Learning Tier${c.reset} ${progressBar(progress.domainsCompleted, progress.totalDomains)} ` +
|
|
3899
3904
|
`${domainsColor}${progress.domainsCompleted}${c.reset}/${c.brightWhite}${progress.totalDomains}${c.reset} ` +
|
|
3900
3905
|
perfIndicator;
|
|
3901
3906
|
const swarmIndicator = swarm.coordinationActive ? `${c.brightGreen}◉${c.reset}` : `${c.dim}○${c.reset}`;
|
|
@@ -3909,10 +3914,19 @@ const statuslineCommand = {
|
|
|
3909
3914
|
`${securityIcon} ${securityColor}${security.findings > 0 ? `Findings ${security.findings}` : `Security ${security.status}`}${c.reset} ` +
|
|
3910
3915
|
`${c.brightCyan}💾 ${system.memoryMB}MB${c.reset} ` +
|
|
3911
3916
|
`${c.brightPurple}🧠 ${String(system.intelligencePct).padStart(3)}%${c.reset}`;
|
|
3912
|
-
|
|
3917
|
+
// #1047: "DDD ●XX%" previously showed a fake architecture-progress
|
|
3918
|
+
// percentage that was really just the memory pattern count run through
|
|
3919
|
+
// getV3Progress's bucket thresholds — it has no connection to actual DDD
|
|
3920
|
+
// domain completion. Show the real number it was derived from instead,
|
|
3921
|
+
// per the issue's own recommendation ("Memory entries: 290" instead of
|
|
3922
|
+
// "DDD ●80%").
|
|
3923
|
+
const memoryColor = progress.patternsLearned >= 50 ? c.brightGreen : progress.patternsLearned > 0 ? c.yellow : c.red;
|
|
3924
|
+
const patternsDisplay = progress.patternsLearned >= 1000
|
|
3925
|
+
? `${(progress.patternsLearned / 1000).toFixed(1)}k`
|
|
3926
|
+
: String(progress.patternsLearned);
|
|
3913
3927
|
const line3 = `${c.brightPurple}🔧 Architecture${c.reset} ` +
|
|
3914
3928
|
`${c.cyan}ADRs${c.reset} ${c.dim}●0/0${c.reset} ${c.dim}│${c.reset} ` +
|
|
3915
|
-
`${c.cyan}
|
|
3929
|
+
`${c.cyan}Memory${c.reset} ${memoryColor}●${patternsDisplay}${c.reset} ${c.dim}│${c.reset} ` +
|
|
3916
3930
|
`${c.cyan}Security${c.reset} ${securityColor}●${security.status}${c.reset}`;
|
|
3917
3931
|
const vectorColor = agentdbStats.vectorCount > 0 ? c.brightGreen : c.dim;
|
|
3918
3932
|
const testColor = testStats.testFiles > 0 ? c.brightGreen : c.dim;
|
|
@@ -121,7 +121,7 @@ const runCommand = {
|
|
|
121
121
|
spinner.succeed('Workflow validated successfully');
|
|
122
122
|
}
|
|
123
123
|
else {
|
|
124
|
-
spinner.succeed('Workflow
|
|
124
|
+
spinner.succeed('Workflow created');
|
|
125
125
|
}
|
|
126
126
|
if (ctx.flags.format === 'json') {
|
|
127
127
|
output.printJson(result);
|
|
@@ -149,6 +149,8 @@ const runCommand = {
|
|
|
149
149
|
});
|
|
150
150
|
if (!dryRun) {
|
|
151
151
|
output.writeln();
|
|
152
|
+
// #4609: workflow_run only creates the workflow; workflow_execute runs it.
|
|
153
|
+
output.printInfo(`Start it: claude-flow mcp exec -t workflow_execute -p '{"workflowId":"${result.workflowId}"}'`);
|
|
152
154
|
output.printInfo(`Track progress: claude-flow workflow status ${result.workflowId}`);
|
|
153
155
|
}
|
|
154
156
|
return { success: true, data: result };
|
|
@@ -303,35 +303,52 @@ export const agentTools = [
|
|
|
303
303
|
...(routingResult.openrouterModel ? { openrouterModel: routingResult.openrouterModel } : {}),
|
|
304
304
|
};
|
|
305
305
|
const store = loadAgentStore();
|
|
306
|
-
store
|
|
307
|
-
|
|
308
|
-
//
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
// all topologies (hierarchical, mesh, etc.).
|
|
306
|
+
// #2085 — the agent is also pushed to the swarm store's agents array so
|
|
307
|
+
// that swarm_status reports it. Resolve that swarm first: #4572 — an
|
|
308
|
+
// active swarm already holding maxAgents live agents refuses the spawn.
|
|
309
|
+
let swarmTools;
|
|
310
|
+
let swarmStore;
|
|
311
|
+
let targetSwarmId = input.swarmId || '';
|
|
313
312
|
try {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
let targetSwarmId = input.swarmId || '';
|
|
313
|
+
swarmTools = await import('./swarm-tools.js');
|
|
314
|
+
swarmStore = swarmTools.loadSwarmStore();
|
|
317
315
|
if (!targetSwarmId) {
|
|
318
316
|
// Default to the most-recently-created swarm.
|
|
319
317
|
const all = Object.values(swarmStore.swarms);
|
|
320
318
|
const latest = all.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime())[0];
|
|
321
319
|
targetSwarmId = latest?.swarmId || '';
|
|
322
320
|
}
|
|
323
|
-
|
|
324
|
-
|
|
321
|
+
}
|
|
322
|
+
catch { /* swarm store unavailable — agent still registered globally */ }
|
|
323
|
+
const swarm = targetSwarmId ? swarmStore?.swarms[targetSwarmId] : undefined;
|
|
324
|
+
const members = Array.isArray(swarm?.agents) ? swarm.agents : [];
|
|
325
|
+
if (swarm && swarm.status !== 'terminated' && !members.includes(agentId)) {
|
|
326
|
+
// Terminated agents stay listed in swarm.agents; they no longer hold a slot.
|
|
327
|
+
const live = members.filter((id) => store.agents[id] && store.agents[id].status !== 'terminated').length;
|
|
328
|
+
if (live >= swarm.maxAgents) {
|
|
329
|
+
return {
|
|
330
|
+
success: false,
|
|
331
|
+
error: `Swarm ${swarm.swarmId} is full: ${live}/${swarm.maxAgents} agents. Terminate an agent (agent_terminate) or init a swarm with a larger maxAgents.`,
|
|
332
|
+
swarmId: swarm.swarmId,
|
|
333
|
+
agentCount: live,
|
|
334
|
+
maxAgents: swarm.maxAgents,
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
store.agents[agentId] = agent;
|
|
339
|
+
saveAgentStore(store);
|
|
340
|
+
if (swarm && swarmTools && swarmStore) {
|
|
341
|
+
try {
|
|
325
342
|
if (!Array.isArray(swarm.agents))
|
|
326
343
|
swarm.agents = [];
|
|
327
344
|
// Idempotent — don't duplicate if agent_spawn is retried.
|
|
328
345
|
if (!swarm.agents.includes(agentId)) {
|
|
329
346
|
swarm.agents.push(agentId);
|
|
330
|
-
|
|
347
|
+
swarmTools.saveSwarmStore(swarmStore);
|
|
331
348
|
}
|
|
332
349
|
}
|
|
350
|
+
catch { /* swarm store unwritable — agent still registered globally */ }
|
|
333
351
|
}
|
|
334
|
-
catch { /* swarm store unavailable — agent still registered globally */ }
|
|
335
352
|
// Record agent in graph database (ADR-087, best-effort)
|
|
336
353
|
try {
|
|
337
354
|
const { addNode } = await import('../ruvector/graph-backend.js');
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* agentdb_episode-get / -list / -update / -delete (ADR-520).
|
|
3
|
+
*
|
|
4
|
+
* Episodes are the records session ends and `memory distill` write and that
|
|
5
|
+
* agentdb_episode-recall searches. Needs agentdb >= 3.3.0 (in-place update that keeps the id
|
|
6
|
+
* and re-indexes); older builds get a clear error instead of a partial operation.
|
|
7
|
+
*
|
|
8
|
+
* @module v3/cli/mcp-tools/agentdb-episode-tools
|
|
9
|
+
*/
|
|
10
|
+
import type { MCPTool } from './types.js';
|
|
11
|
+
export declare const agentdbEpisodeGet: MCPTool;
|
|
12
|
+
export declare const agentdbEpisodeList: MCPTool;
|
|
13
|
+
export declare const agentdbEpisodeUpdate: MCPTool;
|
|
14
|
+
export declare const agentdbEpisodeDelete: MCPTool;
|
|
15
|
+
export declare const agentdbEpisodeCrudTools: MCPTool[];
|
|
16
|
+
//# sourceMappingURL=agentdb-episode-tools.d.ts.map
|