claude-flow 3.66.0 → 3.66.1
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/node_modules/@claude-flow/codex/dist/cli.js +0 -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 +31 -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/package.json +1 -1
- package/node_modules/@claude-flow/security/dist/input-validator.d.ts +6 -6
- package/package.json +2 -2
- package/v3/@claude-flow/cli/catalog-manifest.json +2 -2
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js +14 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.js +21 -1
- package/v3/@claude-flow/cli/dist/src/mods/command-registry/schema.d.ts +6 -6
- package/v3/@claude-flow/cli/package.json +4 -4
- package/v3/@claude-flow/shared/dist/core/config/schema.d.ts +96 -96
- package/node_modules/@claude-flow/plugin-agent-federation/dist/a2a/agent-card.d.ts +0 -130
- package/node_modules/@claude-flow/plugin-agent-federation/dist/a2a/consume.d.ts +0 -34
- package/node_modules/@claude-flow/plugin-agent-federation/dist/a2a/planner-descriptor.d.ts +0 -40
- package/node_modules/@claude-flow/plugin-agent-federation/dist/a2a/well-known.d.ts +0 -46
- package/node_modules/@claude-flow/plugin-agent-federation/dist/application/claim-checker.d.ts +0 -27
- package/node_modules/@claude-flow/plugin-agent-federation/dist/application/federation-breaker-service.d.ts +0 -192
- package/node_modules/@claude-flow/plugin-agent-federation/dist/application/federation-coordinator.d.ts +0 -211
- package/node_modules/@claude-flow/plugin-agent-federation/dist/application/inbound-dispatcher.d.ts +0 -113
- package/node_modules/@claude-flow/plugin-agent-federation/dist/application/policy-engine.d.ts +0 -41
- package/node_modules/@claude-flow/plugin-agent-federation/dist/application/spend-reporter.d.ts +0 -150
- package/node_modules/@claude-flow/plugin-agent-federation/dist/application/trust-evaluator.d.ts +0 -74
- package/node_modules/@claude-flow/plugin-agent-federation/dist/bin.d.ts +0 -13
- package/node_modules/@claude-flow/plugin-agent-federation/dist/cli-commands.d.ts +0 -7
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/entities/federation-envelope.d.ts +0 -45
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/entities/federation-node.d.ts +0 -104
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/entities/federation-session.d.ts +0 -55
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/entities/trust-level.d.ts +0 -17
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/services/audit-service.d.ts +0 -69
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/services/discovery-service.d.ts +0 -76
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/services/handshake-service.d.ts +0 -62
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/services/pii-pipeline-service.d.ts +0 -65
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/services/routing-service.d.ts +0 -54
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/services/wg-firewall-service.d.ts +0 -71
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/services/wg-mesh-service.d.ts +0 -156
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/services/wg-witness-service.d.ts +0 -98
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/value-objects/federation-budget.d.ts +0 -89
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/value-objects/federation-node-state.d.ts +0 -92
- package/node_modules/@claude-flow/plugin-agent-federation/dist/domain/value-objects/wg-config.d.ts +0 -70
- package/node_modules/@claude-flow/plugin-agent-federation/dist/index.d.ts +0 -24
- package/node_modules/@claude-flow/plugin-agent-federation/dist/mcp-tools.d.ts +0 -10
- package/node_modules/@claude-flow/plugin-agent-federation/dist/plugin.d.ts +0 -19
- package/node_modules/@claude-flow/plugin-agent-federation/dist/transport/midstream-aware-loader.d.ts +0 -72
- package/node_modules/@claude-flow/plugin-agent-federation/dist/version.d.ts +0 -3
|
@@ -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,130 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A2A (Agent2Agent, Linux Foundation) Agent Card adapter — cards only.
|
|
3
|
-
*
|
|
4
|
-
* Maps ruflo's bespoke federation identity (`FederationManifest` /
|
|
5
|
-
* `FederationNode`) to and from a spec-compliant A2A Agent Card so ruflo
|
|
6
|
-
* nodes are discoverable by A2A peers and A2A peers appear in federation
|
|
7
|
-
* discovery. This is an ADAPTER over the existing federation schema, not a
|
|
8
|
-
* rewrite — A2A Tasks/messaging are deliberately out of scope.
|
|
9
|
-
*
|
|
10
|
-
* Spec: A2A Protocol 1.0.0 — https://a2a-protocol.org/latest/specification/
|
|
11
|
-
* (schema source of truth: specification/a2a.proto in a2aproject/A2A).
|
|
12
|
-
* Required AgentCard fields per spec §4.4.1: name, description,
|
|
13
|
-
* supportedInterfaces, version, capabilities, defaultInputModes,
|
|
14
|
-
* defaultOutputModes, skills.
|
|
15
|
-
*/
|
|
16
|
-
import { FederationNode } from '../domain/entities/federation-node.js';
|
|
17
|
-
import type { FederationManifest } from '../domain/services/discovery-service.js';
|
|
18
|
-
/** A2A protocol version this adapter targets. */
|
|
19
|
-
export declare const A2A_PROTOCOL_VERSION = "1.0";
|
|
20
|
-
/**
|
|
21
|
-
* Well-known URI for Agent Card discovery (A2A 1.0 §8.2 + IANA registration
|
|
22
|
-
* §14). NOTE: earlier drafts used `/.well-known/agent.json`; 0.3.0+ settled
|
|
23
|
-
* on `agent-card.json`.
|
|
24
|
-
*/
|
|
25
|
-
export declare const A2A_WELL_KNOWN_PATH = "/.well-known/agent-card.json";
|
|
26
|
-
/**
|
|
27
|
-
* Open-form protocol binding string advertising ruflo's federation wire
|
|
28
|
-
* (Ed25519-signed envelopes over WebSocket/QUIC). Spec §4.4.6 explicitly
|
|
29
|
-
* allows non-core bindings: "This is an open form string, to be easily
|
|
30
|
-
* extended for other protocol bindings."
|
|
31
|
-
*/
|
|
32
|
-
export declare const RUFLO_FEDERATION_BINDING = "RUFLO-FEDERATION";
|
|
33
|
-
/**
|
|
34
|
-
* Extension URI carrying the bespoke federation identity inside the card
|
|
35
|
-
* (spec §4.6 AgentExtension). Enables lossless round-trip in fromAgentCard.
|
|
36
|
-
*/
|
|
37
|
-
export declare const RUFLO_FEDERATION_EXTENSION_URI = "urn:ruflo:federation:manifest:v1";
|
|
38
|
-
export interface A2AAgentInterface {
|
|
39
|
-
readonly url: string;
|
|
40
|
-
readonly protocolBinding: string;
|
|
41
|
-
readonly protocolVersion: string;
|
|
42
|
-
readonly tenant?: string;
|
|
43
|
-
}
|
|
44
|
-
export interface A2AAgentSkill {
|
|
45
|
-
readonly id: string;
|
|
46
|
-
readonly name: string;
|
|
47
|
-
readonly description: string;
|
|
48
|
-
readonly tags: readonly string[];
|
|
49
|
-
readonly examples?: readonly string[];
|
|
50
|
-
readonly inputModes?: readonly string[];
|
|
51
|
-
readonly outputModes?: readonly string[];
|
|
52
|
-
}
|
|
53
|
-
export interface A2AAgentExtension {
|
|
54
|
-
readonly uri: string;
|
|
55
|
-
readonly description?: string;
|
|
56
|
-
readonly required?: boolean;
|
|
57
|
-
readonly params?: Record<string, unknown>;
|
|
58
|
-
}
|
|
59
|
-
export interface A2AAgentCapabilities {
|
|
60
|
-
readonly streaming?: boolean;
|
|
61
|
-
readonly pushNotifications?: boolean;
|
|
62
|
-
readonly extensions?: readonly A2AAgentExtension[];
|
|
63
|
-
readonly extendedAgentCard?: boolean;
|
|
64
|
-
}
|
|
65
|
-
export interface A2AAgentProvider {
|
|
66
|
-
readonly url: string;
|
|
67
|
-
readonly organization: string;
|
|
68
|
-
}
|
|
69
|
-
export interface A2AAgentCard {
|
|
70
|
-
readonly name: string;
|
|
71
|
-
readonly description: string;
|
|
72
|
-
readonly supportedInterfaces: readonly A2AAgentInterface[];
|
|
73
|
-
readonly version: string;
|
|
74
|
-
readonly capabilities: A2AAgentCapabilities;
|
|
75
|
-
readonly defaultInputModes: readonly string[];
|
|
76
|
-
readonly defaultOutputModes: readonly string[];
|
|
77
|
-
readonly skills: readonly A2AAgentSkill[];
|
|
78
|
-
readonly provider?: A2AAgentProvider;
|
|
79
|
-
readonly documentationUrl?: string;
|
|
80
|
-
readonly iconUrl?: string;
|
|
81
|
-
readonly securitySchemes?: Record<string, unknown>;
|
|
82
|
-
readonly securityRequirements?: readonly Record<string, readonly string[]>[];
|
|
83
|
-
readonly signatures?: readonly {
|
|
84
|
-
protected: string;
|
|
85
|
-
signature: string;
|
|
86
|
-
}[];
|
|
87
|
-
}
|
|
88
|
-
export interface ToAgentCardOptions {
|
|
89
|
-
/** Human-readable agent name; defaults to `ruflo-federation/<nodeId>`. */
|
|
90
|
-
readonly name?: string;
|
|
91
|
-
/** Human-readable description override. */
|
|
92
|
-
readonly description?: string;
|
|
93
|
-
readonly provider?: A2AAgentProvider;
|
|
94
|
-
readonly documentationUrl?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Extra spec-core interfaces to advertise ahead of the federation binding
|
|
97
|
-
* (e.g. a JSONRPC endpoint once A2A messaging lands). First entry is the
|
|
98
|
-
* preferred interface per spec.
|
|
99
|
-
*/
|
|
100
|
-
readonly additionalInterfaces?: readonly A2AAgentInterface[];
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Generate a spec-compliant A2A Agent Card from a ruflo federation manifest.
|
|
104
|
-
* Every agent type becomes an AgentSkill; the federation endpoint becomes a
|
|
105
|
-
* `RUFLO-FEDERATION` interface; the bespoke identity (nodeId, publicKey,
|
|
106
|
-
* complianceModes, manifest signature) rides in a spec §4.6 extension so
|
|
107
|
-
* `fromAgentCard` can restore it.
|
|
108
|
-
*/
|
|
109
|
-
export declare function toAgentCard(manifest: FederationManifest, options?: ToAgentCardOptions): A2AAgentCard;
|
|
110
|
-
export interface AgentCardValidation {
|
|
111
|
-
readonly valid: boolean;
|
|
112
|
-
readonly errors: readonly string[];
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Structural validation against the A2A 1.0 AgentCard REQUIRED fields.
|
|
116
|
-
* Intentionally strict on required shape, lenient on unknown extra fields
|
|
117
|
-
* (forward compatibility with future spec minors).
|
|
118
|
-
*/
|
|
119
|
-
export declare function validateAgentCard(value: unknown): AgentCardValidation;
|
|
120
|
-
/**
|
|
121
|
-
* Map a validated remote A2A Agent Card into the bespoke federation registry
|
|
122
|
-
* shape (a `FederationNode`) so A2A peers appear in federation discovery.
|
|
123
|
-
*
|
|
124
|
-
* Trust posture: A2A cards are self-describing metadata, NOT authenticated
|
|
125
|
-
* federation manifests — consumed peers always enter at
|
|
126
|
-
* `TrustLevel.UNTRUSTED` regardless of embedded identity claims. Trust is
|
|
127
|
-
* earned afterwards through the normal handshake + TrustEvaluator path.
|
|
128
|
-
*/
|
|
129
|
-
export declare function fromAgentCard(card: A2AAgentCard, sourceUrl?: string): FederationNode;
|
|
130
|
-
//# sourceMappingURL=agent-card.d.ts.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A2A Agent Card consumption — fetch + validate a remote card and map it
|
|
3
|
-
* into the bespoke federation registry so A2A peers appear in federation
|
|
4
|
-
* discovery. Cards only (no A2A Tasks/messaging in this iteration).
|
|
5
|
-
*/
|
|
6
|
-
import type { DiscoveryService } from '../domain/services/discovery-service.js';
|
|
7
|
-
import type { FederationNode } from '../domain/entities/federation-node.js';
|
|
8
|
-
import { type A2AAgentCard } from './agent-card.js';
|
|
9
|
-
export interface FetchAgentCardOptions {
|
|
10
|
-
/** Injectable fetch for tests / restricted environments. Default: globalThis.fetch. */
|
|
11
|
-
readonly fetchImpl?: typeof fetch;
|
|
12
|
-
readonly timeoutMs?: number;
|
|
13
|
-
/** Response size cap in bytes (defense against decompression floods). Default 256 KiB. */
|
|
14
|
-
readonly maxBytes?: number;
|
|
15
|
-
}
|
|
16
|
-
export interface FetchAgentCardResult {
|
|
17
|
-
readonly card: A2AAgentCard;
|
|
18
|
-
readonly sourceUrl: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Resolve the card URL: a bare base URL (`https://host[:port]` or a path-less
|
|
22
|
-
* URL) gets the A2A well-known path appended; anything already pointing at a
|
|
23
|
-
* JSON document is used as-is.
|
|
24
|
-
*/
|
|
25
|
-
export declare function resolveAgentCardUrl(baseOrCardUrl: string): string;
|
|
26
|
-
/** Fetch and structurally validate a remote A2A Agent Card. */
|
|
27
|
-
export declare function fetchAgentCard(baseOrCardUrl: string, options?: FetchAgentCardOptions): Promise<FetchAgentCardResult>;
|
|
28
|
-
/**
|
|
29
|
-
* Fetch a remote Agent Card and register the peer in federation discovery.
|
|
30
|
-
* The peer enters at TrustLevel.UNTRUSTED (see fromAgentCard) — the card is
|
|
31
|
-
* self-asserted metadata, and trust is earned through the normal handshake.
|
|
32
|
-
*/
|
|
33
|
-
export declare function consumeAgentCard(discovery: DiscoveryService, baseOrCardUrl: string, options?: FetchAgentCardOptions): Promise<FederationNode>;
|
|
34
|
-
//# sourceMappingURL=consume.d.ts.map
|