claude-flow 3.68.0 → 3.70.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 +3 -3
- package/node_modules/@claude-flow/codex/dist/cli.js +0 -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/bin.js +0 -0
- 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/catalog-manifest.json +3 -3
- package/v3/@claude-flow/cli/dist/src/commands/context-plan.d.ts +4 -0
- package/v3/@claude-flow/cli/dist/src/commands/context-plan.js +36 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.js +20 -4
- package/v3/@claude-flow/cli/dist/src/commands/workflow.js +3 -1
- package/v3/@claude-flow/cli/dist/src/index.d.ts +4 -0
- package/v3/@claude-flow/cli/dist/src/index.js +3 -0
- 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.js +2 -0
- 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 +5 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.js +38 -3
- package/v3/@claude-flow/cli/dist/src/mods/command-registry/schema.d.ts +6 -6
- package/v3/@claude-flow/cli/dist/src/services/anthropic-context-adapter.d.ts +81 -0
- package/v3/@claude-flow/cli/dist/src/services/anthropic-context-adapter.js +257 -0
- package/v3/@claude-flow/cli/dist/src/services/context-delegation.d.ts +107 -0
- package/v3/@claude-flow/cli/dist/src/services/context-delegation.js +193 -0
- package/v3/@claude-flow/cli/package.json +5 -5
- package/v3/@claude-flow/shared/dist/core/config/schema.d.ts +96 -96
|
@@ -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
|
---
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"source": "git-subdir",
|
|
69
69
|
"url": "https://github.com/ruvnet/agentdb.git",
|
|
70
70
|
"path": "plugins/agentdb",
|
|
71
|
-
"ref": "plugin-v3.
|
|
72
|
-
"sha": "
|
|
71
|
+
"ref": "plugin-v3.3.0",
|
|
72
|
+
"sha": "d3df60d4f94f29199373fd45e837085c0d92a2b2"
|
|
73
73
|
},
|
|
74
|
-
"description": "AgentDB (external: maintained in ruvnet/agentdb, pinned to plugin-v3.
|
|
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
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"name": "agentic-flow",
|
|
File without changes
|
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,CAAC;AAEvF,MAAM,MAAM,mBAAmB,GAC3B,qBAAqB,GACrB,oBAAoB,GACpB,iBAAiB,GACjB,kBAAkB,GAClB,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,CAAC;AAEvB,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,mBAAmB,EAAE,SAA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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,EAAE,OAAO;IACtB,eAAe,EAAE,OAAO;IACxB,cAAc,EAAE,OAAO;IACvB,iBAAiB,EAAE,OAAO;CAC3B,CAAC;AAEF,SAAS,0BAA0B,CAAC,MAAsB,EAAE,QAA6B;IACvF,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,OAAO;YACV,OAAO,MAAM,CAAC,qBAAqB,CAAC;QACtC,KAAK,QAAQ;YACX,OAAO,MAAM,CAAC,sBAAsB,CAAC;QAC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,EAAE,CAAC;YACnD,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,CAAC,KAAK,EAAE,CAAC;QAChB,OAAO,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,cAAc,CAAC,oBAAoB,CAAC;IACnE,CAAC;IAEO,0BAA0B,CAAC,WAAkC;QACnE,QAAQ,WAAW,EAAE,CAAC;YACpB,KAAK,cAAc,CAAC;YACpB,KAAK,iBAAiB;gBACpB,OAAO,gBAAgB,CAAC;YAC1B,KAAK,eAAe;gBAClB,OAAO,eAAe,CAAC;YACzB,KAAK,iBAAiB;gBACpB,OAAO,MAAM,CAAC;YAChB,KAAK,aAAa;gBAChB,OAAO,cAAc,CAAC;YACxB,KAAK,cAAc,CAAC;YACpB,KAAK,iBAAiB;gBACpB,OAAO,cAAc,CAAC;YACxB,KAAK,kBAAkB;gBACrB,OAAO,QAAQ,CAAC;YAClB,KAAK,WAAW,CAAC;YACjB,KAAK,WAAW,CAAC;YACjB,KAAK,oBAAoB,CAAC;YAC1B,KAAK,gBAAgB,CAAC;YACtB,KAAK,kBAAkB,CAAC;YACxB,KAAK,kBAAkB,CAAC;YACxB,KAAK,mBAAmB;gBACtB,OAAO,MAAM,CAAC;YAChB;gBACE,OAAO,MAAM,CAAC;QAClB,CAAC;IACH,CAAC;CACF"}
|
|
File without changes
|
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,UAA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;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.70.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
|
},
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"generation": 7,
|
|
4
|
-
"generatedAt": "2026-11-
|
|
5
|
-
"gitSha": "
|
|
4
|
+
"generatedAt": "2026-11-01T19:14:23.757Z",
|
|
5
|
+
"gitSha": "a3d45e64",
|
|
6
6
|
"catalog": {
|
|
7
7
|
"agents": 177,
|
|
8
|
-
"tools":
|
|
8
|
+
"tools": 450,
|
|
9
9
|
"skills": 34
|
|
10
10
|
},
|
|
11
11
|
"benchmark": null
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { planContextRead } from '../services/context-delegation.js';
|
|
2
|
+
/** Metadata-only planning surface. Does not read files or launch a model. */
|
|
3
|
+
export const contextPlanCommand = {
|
|
4
|
+
name: 'context-plan',
|
|
5
|
+
description: 'Plan bounded bulk-read delegation from metadata (no file reads or model calls)',
|
|
6
|
+
options: [
|
|
7
|
+
{ name: 'bytes', type: 'number', required: true, description: 'Total source UTF-8 bytes' },
|
|
8
|
+
{ name: 'files', type: 'number', default: 1, description: 'Source file count' },
|
|
9
|
+
{ name: 'mode', type: 'string', default: 'legacy', choices: ['legacy', 'observe', 'enforce'], description: 'Routing mode' },
|
|
10
|
+
{ name: 'intent', type: 'string', default: 'analysis', choices: ['analysis', 'edit', 'debug', 'architecture'], description: 'Read purpose' },
|
|
11
|
+
{ name: 'worker-available', type: 'boolean', default: false, description: 'Host has a governed worker adapter' },
|
|
12
|
+
{ name: 'offset', type: 'number', description: 'Targeted read offset' },
|
|
13
|
+
{ name: 'limit', type: 'number', description: 'Targeted read limit' },
|
|
14
|
+
{ name: 'depth', type: 'number', default: 0, description: 'Current delegation depth' },
|
|
15
|
+
],
|
|
16
|
+
action: async (ctx) => {
|
|
17
|
+
try {
|
|
18
|
+
const f = ctx.flags;
|
|
19
|
+
const plan = planContextRead({
|
|
20
|
+
inputBytes: Number(f.bytes), fileCount: Number(f.files ?? 1),
|
|
21
|
+
mode: (f.mode ?? 'legacy'), intent: (f.intent ?? 'analysis'),
|
|
22
|
+
// The parser camelCases flag names; accept both spellings like the other hooks commands.
|
|
23
|
+
workerAvailable: f['worker-available'] === true || f.workerAvailable === true, depth: Number(f.depth ?? 0),
|
|
24
|
+
...(f.offset === undefined ? {} : { offset: Number(f.offset) }),
|
|
25
|
+
...(f.limit === undefined ? {} : { limit: Number(f.limit) }),
|
|
26
|
+
});
|
|
27
|
+
console.log(JSON.stringify(plan));
|
|
28
|
+
return { success: true, data: plan };
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
console.error('Invalid context planning metadata');
|
|
32
|
+
return { success: false, message: 'Invalid context planning metadata', exitCode: 1 };
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=context-plan.js.map
|
|
@@ -8,6 +8,7 @@ import { output } from '../output.js';
|
|
|
8
8
|
import { confirm } from '../prompt.js';
|
|
9
9
|
import { callMCPTool, MCPClientError } from '../mcp-client.js';
|
|
10
10
|
import { storeCommand } from './transfer-store.js';
|
|
11
|
+
import { contextPlanCommand } from './context-plan.js';
|
|
11
12
|
import { readFileSync, statSync } from 'node:fs';
|
|
12
13
|
import { getSecurityStatus as sharedGetSecurityStatus, getSwarmStatus as sharedGetSwarmStatus, getGitUncommittedCount as sharedGetGitUncommittedCount, } from '../funnel/local-signals.js';
|
|
13
14
|
/**
|
|
@@ -3725,7 +3726,9 @@ const statuslineCommand = {
|
|
|
3725
3726
|
const securityCompact = security.findings > 0
|
|
3726
3727
|
? `Findings:${security.findings}`
|
|
3727
3728
|
: `Security:${security.status}`;
|
|
3728
|
-
|
|
3729
|
+
// #1047: this tier is derived from memory pattern-count thresholds, not
|
|
3730
|
+
// Domain-Driven-Design domain completion — label it for what it is.
|
|
3731
|
+
const line = `Learning:${progress.domainsCompleted}/${progress.totalDomains} ${securityCompact} Swarm:${swarm.activeAgents}/${swarm.maxAgents} Ctx:${system.contextPct}% Int:${system.intelligencePct}%`;
|
|
3729
3732
|
output.writeln(line);
|
|
3730
3733
|
return { success: true, data: statusData };
|
|
3731
3734
|
}
|
|
@@ -3895,7 +3898,10 @@ const statuslineCommand = {
|
|
|
3895
3898
|
const patternsK = progress.patternsLearned >= 1000 ? `${(progress.patternsLearned / 1000).toFixed(1)}k` : String(progress.patternsLearned);
|
|
3896
3899
|
perfIndicator = `${c.brightYellow}📚 ${patternsK} patterns${c.reset}`;
|
|
3897
3900
|
}
|
|
3898
|
-
|
|
3901
|
+
// #1047: renamed from "DDD Domains" — this tier comes from memory
|
|
3902
|
+
// pattern-count thresholds (see getV3Progress above), not actual
|
|
3903
|
+
// Domain-Driven-Design domain completion. "Learning Tier" says what it is.
|
|
3904
|
+
const line1 = `${c.brightCyan}🏗️ Learning Tier${c.reset} ${progressBar(progress.domainsCompleted, progress.totalDomains)} ` +
|
|
3899
3905
|
`${domainsColor}${progress.domainsCompleted}${c.reset}/${c.brightWhite}${progress.totalDomains}${c.reset} ` +
|
|
3900
3906
|
perfIndicator;
|
|
3901
3907
|
const swarmIndicator = swarm.coordinationActive ? `${c.brightGreen}◉${c.reset}` : `${c.dim}○${c.reset}`;
|
|
@@ -3909,10 +3915,19 @@ const statuslineCommand = {
|
|
|
3909
3915
|
`${securityIcon} ${securityColor}${security.findings > 0 ? `Findings ${security.findings}` : `Security ${security.status}`}${c.reset} ` +
|
|
3910
3916
|
`${c.brightCyan}💾 ${system.memoryMB}MB${c.reset} ` +
|
|
3911
3917
|
`${c.brightPurple}🧠 ${String(system.intelligencePct).padStart(3)}%${c.reset}`;
|
|
3912
|
-
|
|
3918
|
+
// #1047: "DDD ●XX%" previously showed a fake architecture-progress
|
|
3919
|
+
// percentage that was really just the memory pattern count run through
|
|
3920
|
+
// getV3Progress's bucket thresholds — it has no connection to actual DDD
|
|
3921
|
+
// domain completion. Show the real number it was derived from instead,
|
|
3922
|
+
// per the issue's own recommendation ("Memory entries: 290" instead of
|
|
3923
|
+
// "DDD ●80%").
|
|
3924
|
+
const memoryColor = progress.patternsLearned >= 50 ? c.brightGreen : progress.patternsLearned > 0 ? c.yellow : c.red;
|
|
3925
|
+
const patternsDisplay = progress.patternsLearned >= 1000
|
|
3926
|
+
? `${(progress.patternsLearned / 1000).toFixed(1)}k`
|
|
3927
|
+
: String(progress.patternsLearned);
|
|
3913
3928
|
const line3 = `${c.brightPurple}🔧 Architecture${c.reset} ` +
|
|
3914
3929
|
`${c.cyan}ADRs${c.reset} ${c.dim}●0/0${c.reset} ${c.dim}│${c.reset} ` +
|
|
3915
|
-
`${c.cyan}
|
|
3930
|
+
`${c.cyan}Memory${c.reset} ${memoryColor}●${patternsDisplay}${c.reset} ${c.dim}│${c.reset} ` +
|
|
3916
3931
|
`${c.cyan}Security${c.reset} ${securityColor}●${security.status}${c.reset}`;
|
|
3917
3932
|
const vectorColor = agentdbStats.vectorCount > 0 ? c.brightGreen : c.dim;
|
|
3918
3933
|
const testColor = testStats.testFiles > 0 ? c.brightGreen : c.dim;
|
|
@@ -4726,6 +4741,7 @@ export const hooksCommand = {
|
|
|
4726
4741
|
coverageGapsCommand,
|
|
4727
4742
|
// Token optimization
|
|
4728
4743
|
tokenOptimizeCommand,
|
|
4744
|
+
contextPlanCommand,
|
|
4729
4745
|
// Model routing (tiny-dancer integration)
|
|
4730
4746
|
modelRouteCommand,
|
|
4731
4747
|
modelOutcomeCommand,
|
|
@@ -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 };
|
|
@@ -81,4 +81,8 @@ export type { CircuitBreakerConfig, CircuitState, } from './production/circuit-b
|
|
|
81
81
|
export { MonitoringHooks, createMonitor, getMonitor, } from './production/monitoring.js';
|
|
82
82
|
export type { MonitorConfig, MetricEvent, HealthStatus, PerformanceMetrics, } from './production/monitoring.js';
|
|
83
83
|
export default CLI;
|
|
84
|
+
export { planContextRead, delegateContextRead, DEFAULT_CONTEXT_LIMITS } from './services/context-delegation.js';
|
|
85
|
+
export type { ContextMode, ContextIntent, ContextRead, ContextLimits, ContextPlan, ContextSource, ContextEvidence, ContextWorkerRequest, ContextWorkerReply, ContextAdapter, ContextReceipt, ContextResult } from './services/context-delegation.js';
|
|
86
|
+
export { createAnthropicContextAdapter } from './services/anthropic-context-adapter.js';
|
|
87
|
+
export type { AnthropicContextAdapterOptions, AnthropicContextAuthorization, AnthropicContextPricing, AnthropicContextUsage, AnthropicContextCallReceipt, GovernedAnthropicContextAdapter } from './services/anthropic-context-adapter.js';
|
|
84
88
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -611,4 +611,7 @@ export { CircuitBreaker, getCircuitBreaker, getAllCircuitStats, resetAllCircuits
|
|
|
611
611
|
export { MonitoringHooks, createMonitor, getMonitor, } from './production/monitoring.js';
|
|
612
612
|
// Default export
|
|
613
613
|
export default CLI;
|
|
614
|
+
// Bounded, provider-neutral context delegation. Hosts retain policy and budget authority.
|
|
615
|
+
export { planContextRead, delegateContextRead, DEFAULT_CONTEXT_LIMITS } from './services/context-delegation.js';
|
|
616
|
+
export { createAnthropicContextAdapter } from './services/anthropic-context-adapter.js';
|
|
614
617
|
//# sourceMappingURL=index.js.map
|