@gotza02/seq-thinking 1.1.21 → 1.1.23

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.
Files changed (40) hide show
  1. package/README.md +98 -86
  2. package/SYSTEM_INSTRUCTIONS.md +35 -35
  3. package/dist/__tests__/agents/base-agent.js +215 -0
  4. package/dist/__tests__/agents/specialist-agent.js +75 -0
  5. package/dist/__tests__/specialist-agent.test.js +653 -30
  6. package/dist/__tests__/types/index.js +278 -0
  7. package/dist/__tests__/utils/llm-adapter.js +93 -0
  8. package/dist/__tests__/utils/logger.js +48 -0
  9. package/dist/constants.d.ts +69 -0
  10. package/dist/constants.d.ts.map +1 -0
  11. package/dist/constants.js +96 -0
  12. package/dist/constants.js.map +1 -0
  13. package/dist/index.d.ts +2 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +2 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/mcp-server.d.ts.map +1 -1
  18. package/dist/mcp-server.js +16 -2
  19. package/dist/mcp-server.js.map +1 -1
  20. package/dist/utils/llm-adapter.d.ts +4 -4
  21. package/dist/utils/llm-adapter.d.ts.map +1 -1
  22. package/dist/utils/llm-adapter.js +25 -23
  23. package/dist/utils/llm-adapter.js.map +1 -1
  24. package/dist/utils/persistence.d.ts +17 -0
  25. package/dist/utils/persistence.d.ts.map +1 -1
  26. package/dist/utils/persistence.js +60 -5
  27. package/dist/utils/persistence.js.map +1 -1
  28. package/dist/validation/index.d.ts +6 -0
  29. package/dist/validation/index.d.ts.map +1 -0
  30. package/dist/validation/index.js +6 -0
  31. package/dist/validation/index.js.map +1 -0
  32. package/dist/validation/schemas.d.ts +793 -0
  33. package/dist/validation/schemas.d.ts.map +1 -0
  34. package/dist/validation/schemas.js +340 -0
  35. package/dist/validation/schemas.js.map +1 -0
  36. package/dist/validation/schemas.test.d.ts +6 -0
  37. package/dist/validation/schemas.test.d.ts.map +1 -0
  38. package/dist/validation/schemas.test.js +171 -0
  39. package/dist/validation/schemas.test.js.map +1 -0
  40. package/package.json +7 -6
@@ -0,0 +1,793 @@
1
+ /**
2
+ * Zod validation schemas for MCP Sequential Thinking
3
+ * @module validation/schemas
4
+ */
5
+ import { z } from 'zod';
6
+ export declare const ThoughtTypeEnum: z.ZodEnum<{
7
+ hypothesis: "hypothesis";
8
+ analysis: "analysis";
9
+ synthesis: "synthesis";
10
+ conclusion: "conclusion";
11
+ meta_reasoning: "meta_reasoning";
12
+ self_correction: "self_correction";
13
+ uncertainty: "uncertainty";
14
+ question: "question";
15
+ evidence: "evidence";
16
+ counterargument: "counterargument";
17
+ assumption: "assumption";
18
+ branch_point: "branch_point";
19
+ merge_point: "merge_point";
20
+ revision: "revision";
21
+ }>;
22
+ export declare const AgentTypeEnum: z.ZodEnum<{
23
+ meta_reasoning: "meta_reasoning";
24
+ reasoner: "reasoner";
25
+ critic: "critic";
26
+ synthesizer: "synthesizer";
27
+ specialist: "specialist";
28
+ utility: "utility";
29
+ }>;
30
+ export declare const ReasoningStrategyEnum: z.ZodEnum<{
31
+ chain_of_thought: "chain_of_thought";
32
+ tree_of_thought: "tree_of_thought";
33
+ analogical: "analogical";
34
+ abductive: "abductive";
35
+ }>;
36
+ export declare const CriticTypeEnum: z.ZodEnum<{
37
+ logical: "logical";
38
+ factual: "factual";
39
+ bias: "bias";
40
+ safety: "safety";
41
+ }>;
42
+ export declare const SynthesizerTypeEnum: z.ZodEnum<{
43
+ consensus: "consensus";
44
+ creative: "creative";
45
+ conflict_resolution: "conflict_resolution";
46
+ }>;
47
+ export declare const ConsensusAlgorithmEnum: z.ZodEnum<{
48
+ majority_vote: "majority_vote";
49
+ weighted_vote: "weighted_vote";
50
+ borda_count: "borda_count";
51
+ condorcet: "condorcet";
52
+ delphi_method: "delphi_method";
53
+ prediction_market: "prediction_market";
54
+ }>;
55
+ export declare const ConflictResolutionStrategyEnum: z.ZodEnum<{
56
+ mediation: "mediation";
57
+ arbitration: "arbitration";
58
+ voting: "voting";
59
+ expert_escalation: "expert_escalation";
60
+ compromise: "compromise";
61
+ evidence_based: "evidence_based";
62
+ }>;
63
+ export declare const AssignmentStrategyEnum: z.ZodEnum<{
64
+ round_robin: "round_robin";
65
+ capability_based: "capability_based";
66
+ load_balanced: "load_balanced";
67
+ performance_based: "performance_based";
68
+ adaptive: "adaptive";
69
+ cost_based: "cost_based";
70
+ fastest_first: "fastest_first";
71
+ }>;
72
+ export declare const MessageTypeEnum: z.ZodEnum<{
73
+ task_assignment: "task_assignment";
74
+ task_result: "task_result";
75
+ broadcast: "broadcast";
76
+ direct: "direct";
77
+ consensus_request: "consensus_request";
78
+ consensus_vote: "consensus_vote";
79
+ conflict_notification: "conflict_notification";
80
+ heartbeat: "heartbeat";
81
+ }>;
82
+ export declare const BranchStatusEnum: z.ZodEnum<{
83
+ completed: "completed";
84
+ active: "active";
85
+ merged: "merged";
86
+ pruned: "pruned";
87
+ abandoned: "abandoned";
88
+ }>;
89
+ export declare const SessionStatusEnum: z.ZodEnum<{
90
+ completed: "completed";
91
+ initializing: "initializing";
92
+ active: "active";
93
+ abandoned: "abandoned";
94
+ paused: "paused";
95
+ converging: "converging";
96
+ }>;
97
+ export declare const AgentStatusEnum: z.ZodEnum<{
98
+ idle: "idle";
99
+ busy: "busy";
100
+ offline: "offline";
101
+ error: "error";
102
+ initializing: "initializing";
103
+ }>;
104
+ export declare const TaskStatusEnum: z.ZodEnum<{
105
+ pending: "pending";
106
+ assigned: "assigned";
107
+ in_progress: "in_progress";
108
+ completed: "completed";
109
+ failed: "failed";
110
+ cancelled: "cancelled";
111
+ }>;
112
+ export declare const ConflictStatusEnum: z.ZodEnum<{
113
+ failed: "failed";
114
+ detected: "detected";
115
+ analyzing: "analyzing";
116
+ resolving: "resolving";
117
+ resolved: "resolved";
118
+ }>;
119
+ export declare const IdSchema: z.ZodString;
120
+ export declare const SessionIdSchema: z.ZodString;
121
+ export declare const ThoughtIdSchema: z.ZodString;
122
+ export declare const AgentIdSchema: z.ZodString;
123
+ export declare const BranchIdSchema: z.ZodString;
124
+ export declare const TaskIdSchema: z.ZodString;
125
+ export declare const ConflictIdSchema: z.ZodString;
126
+ export declare const ContentSchema: z.ZodString;
127
+ export declare const ConfidenceSchema: z.ZodOptional<z.ZodNumber>;
128
+ export declare const TagsSchema: z.ZodOptional<z.ZodArray<z.ZodString>>;
129
+ export declare const AssumptionsSchema: z.ZodOptional<z.ZodArray<z.ZodString>>;
130
+ export declare const DependenciesSchema: z.ZodOptional<z.ZodArray<z.ZodString>>;
131
+ export declare const CapabilitiesSchema: z.ZodOptional<z.ZodArray<z.ZodString>>;
132
+ export declare const InitializeSchema: z.ZodObject<{
133
+ operation: z.ZodLiteral<"initialize">;
134
+ sessionId: z.ZodOptional<z.ZodUndefined>;
135
+ topic: z.ZodString;
136
+ settings: z.ZodOptional<z.ZodAny>;
137
+ }, z.core.$strip>;
138
+ export declare const AddThoughtSchema: z.ZodObject<{
139
+ operation: z.ZodLiteral<"add_thought">;
140
+ sessionId: z.ZodString;
141
+ content: z.ZodString;
142
+ thoughtType: z.ZodOptional<z.ZodEnum<{
143
+ hypothesis: "hypothesis";
144
+ analysis: "analysis";
145
+ synthesis: "synthesis";
146
+ conclusion: "conclusion";
147
+ meta_reasoning: "meta_reasoning";
148
+ self_correction: "self_correction";
149
+ uncertainty: "uncertainty";
150
+ question: "question";
151
+ evidence: "evidence";
152
+ counterargument: "counterargument";
153
+ assumption: "assumption";
154
+ branch_point: "branch_point";
155
+ merge_point: "merge_point";
156
+ revision: "revision";
157
+ }>>;
158
+ parentThoughtId: z.ZodOptional<z.ZodString>;
159
+ branchId: z.ZodOptional<z.ZodString>;
160
+ confidence: z.ZodOptional<z.ZodNumber>;
161
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
162
+ assumptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
163
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
164
+ }, z.core.$strip>;
165
+ export declare const ReviseThoughtSchema: z.ZodObject<{
166
+ operation: z.ZodLiteral<"revise_thought">;
167
+ sessionId: z.ZodOptional<z.ZodUndefined>;
168
+ thoughtId: z.ZodString;
169
+ newContent: z.ZodString;
170
+ revisionReason: z.ZodString;
171
+ }, z.core.$strip>;
172
+ export declare const BranchThoughtSchema: z.ZodObject<{
173
+ operation: z.ZodLiteral<"branch_thought">;
174
+ sessionId: z.ZodString;
175
+ parentThoughtId: z.ZodString;
176
+ branchName: z.ZodString;
177
+ branchDescription: z.ZodOptional<z.ZodString>;
178
+ initialContent: z.ZodString;
179
+ }, z.core.$strip>;
180
+ export declare const MergeBranchesSchema: z.ZodObject<{
181
+ operation: z.ZodLiteral<"merge_branches">;
182
+ sessionId: z.ZodOptional<z.ZodUndefined>;
183
+ targetBranchId: z.ZodString;
184
+ sourceBranchId: z.ZodString;
185
+ mergeContent: z.ZodString;
186
+ }, z.core.$strip>;
187
+ export declare const PruneBranchSchema: z.ZodObject<{
188
+ operation: z.ZodLiteral<"prune_branch">;
189
+ sessionId: z.ZodOptional<z.ZodUndefined>;
190
+ branchId: z.ZodString;
191
+ reason: z.ZodString;
192
+ }, z.core.$strip>;
193
+ export declare const SelfCorrectSchema: z.ZodObject<{
194
+ operation: z.ZodLiteral<"self_correct">;
195
+ sessionId: z.ZodString;
196
+ thoughtId: z.ZodString;
197
+ }, z.core.$strip>;
198
+ export declare const AddMetaThoughtSchema: z.ZodObject<{
199
+ operation: z.ZodLiteral<"add_meta_thought">;
200
+ sessionId: z.ZodOptional<z.ZodUndefined>;
201
+ thoughtId: z.ZodString;
202
+ content: z.ZodOptional<z.ZodString>;
203
+ }, z.core.$strip>;
204
+ export declare const GetThinkingPathSchema: z.ZodObject<{
205
+ operation: z.ZodLiteral<"get_thinking_path">;
206
+ sessionId: z.ZodOptional<z.ZodUndefined>;
207
+ thoughtId: z.ZodString;
208
+ }, z.core.$strip>;
209
+ export declare const GetBranchComparisonSchema: z.ZodObject<{
210
+ operation: z.ZodLiteral<"get_branch_comparison">;
211
+ sessionId: z.ZodOptional<z.ZodUndefined>;
212
+ branchIds: z.ZodArray<z.ZodString>;
213
+ }, z.core.$strip>;
214
+ export declare const CalibrateConfidenceSchema: z.ZodObject<{
215
+ operation: z.ZodLiteral<"calibrate_confidence">;
216
+ sessionId: z.ZodOptional<z.ZodUndefined>;
217
+ thoughtId: z.ZodString;
218
+ feedback: z.ZodOptional<z.ZodBoolean>;
219
+ }, z.core.$strip>;
220
+ export declare const AdjustGranularitySchema: z.ZodObject<{
221
+ operation: z.ZodLiteral<"adjust_granularity">;
222
+ sessionId: z.ZodString;
223
+ }, z.core.$strip>;
224
+ export declare const GetSessionStateSchema: z.ZodObject<{
225
+ operation: z.ZodLiteral<"get_session_state">;
226
+ sessionId: z.ZodString;
227
+ }, z.core.$strip>;
228
+ export declare const CompleteSessionSchema: z.ZodObject<{
229
+ operation: z.ZodLiteral<"complete_session">;
230
+ sessionId: z.ZodString;
231
+ }, z.core.$strip>;
232
+ export declare const DelegateToSwarmSchema: z.ZodObject<{
233
+ operation: z.ZodLiteral<"delegate_to_swarm">;
234
+ sessionId: z.ZodString;
235
+ thoughtId: z.ZodString;
236
+ taskType: z.ZodString;
237
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
238
+ modelProvider: z.ZodOptional<z.ZodString>;
239
+ }, z.core.$strip>;
240
+ export declare const RegisterAgentSchema: z.ZodObject<{
241
+ operation: z.ZodLiteral<"register_agent">;
242
+ name: z.ZodString;
243
+ agentType: z.ZodEnum<{
244
+ meta_reasoning: "meta_reasoning";
245
+ reasoner: "reasoner";
246
+ critic: "critic";
247
+ synthesizer: "synthesizer";
248
+ specialist: "specialist";
249
+ utility: "utility";
250
+ }>;
251
+ type: z.ZodOptional<z.ZodEnum<{
252
+ meta_reasoning: "meta_reasoning";
253
+ reasoner: "reasoner";
254
+ critic: "critic";
255
+ synthesizer: "synthesizer";
256
+ specialist: "specialist";
257
+ utility: "utility";
258
+ }>>;
259
+ subtype: z.ZodOptional<z.ZodString>;
260
+ capabilities: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodAny>]>>;
261
+ payload: z.ZodOptional<z.ZodAny>;
262
+ }, z.core.$strip>;
263
+ export declare const UnregisterAgentSchema: z.ZodObject<{
264
+ operation: z.ZodLiteral<"unregister_agent">;
265
+ agentId: z.ZodString;
266
+ }, z.core.$strip>;
267
+ export declare const ListAgentsSchema: z.ZodObject<{
268
+ operation: z.ZodLiteral<"list_agents">;
269
+ }, z.core.$strip>;
270
+ export declare const GetAgentStatusSchema: z.ZodObject<{
271
+ operation: z.ZodLiteral<"get_agent_status">;
272
+ agentId: z.ZodString;
273
+ }, z.core.$strip>;
274
+ export declare const AssignTaskSchema: z.ZodObject<{
275
+ operation: z.ZodLiteral<"assign_task">;
276
+ taskType: z.ZodString;
277
+ description: z.ZodString;
278
+ input: z.ZodUnknown;
279
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
280
+ strategy: z.ZodOptional<z.ZodEnum<{
281
+ round_robin: "round_robin";
282
+ capability_based: "capability_based";
283
+ load_balanced: "load_balanced";
284
+ performance_based: "performance_based";
285
+ adaptive: "adaptive";
286
+ cost_based: "cost_based";
287
+ fastest_first: "fastest_first";
288
+ }>>;
289
+ }, z.core.$strip>;
290
+ export declare const GetTaskStatusSchema: z.ZodObject<{
291
+ operation: z.ZodLiteral<"get_task_status">;
292
+ taskId: z.ZodString;
293
+ }, z.core.$strip>;
294
+ export declare const ReachConsensusSchema: z.ZodObject<{
295
+ operation: z.ZodLiteral<"reach_consensus">;
296
+ proposal: z.ZodUnknown;
297
+ options: z.ZodArray<z.ZodUnknown>;
298
+ algorithm: z.ZodOptional<z.ZodEnum<{
299
+ majority_vote: "majority_vote";
300
+ weighted_vote: "weighted_vote";
301
+ borda_count: "borda_count";
302
+ condorcet: "condorcet";
303
+ delphi_method: "delphi_method";
304
+ prediction_market: "prediction_market";
305
+ }>>;
306
+ participatingAgents: z.ZodOptional<z.ZodArray<z.ZodString>>;
307
+ minAgreementRatio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
308
+ maxRounds: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
309
+ }, z.core.$strip>;
310
+ export declare const IdentifyConflictSchema: z.ZodObject<{
311
+ operation: z.ZodLiteral<"identify_conflict">;
312
+ conflictType: z.ZodString;
313
+ description: z.ZodString;
314
+ positions: z.ZodArray<z.ZodObject<{
315
+ agentId: z.ZodString;
316
+ position: z.ZodUnknown;
317
+ confidence: z.ZodNumber;
318
+ reasoning: z.ZodOptional<z.ZodString>;
319
+ evidence: z.ZodOptional<z.ZodArray<z.ZodString>>;
320
+ }, z.core.$strip>>;
321
+ }, z.core.$strip>;
322
+ export declare const ResolveConflictSchema: z.ZodObject<{
323
+ operation: z.ZodLiteral<"resolve_conflict">;
324
+ conflictId: z.ZodString;
325
+ resolutionStrategy: z.ZodOptional<z.ZodEnum<{
326
+ mediation: "mediation";
327
+ arbitration: "arbitration";
328
+ voting: "voting";
329
+ expert_escalation: "expert_escalation";
330
+ compromise: "compromise";
331
+ evidence_based: "evidence_based";
332
+ }>>;
333
+ resolverAgentId: z.ZodOptional<z.ZodString>;
334
+ }, z.core.$strip>;
335
+ export declare const BroadcastMessageSchema: z.ZodObject<{
336
+ operation: z.ZodLiteral<"broadcast_message">;
337
+ senderId: z.ZodString;
338
+ payload: z.ZodAny;
339
+ }, z.core.$strip>;
340
+ export declare const SendDirectMessageSchema: z.ZodObject<{
341
+ operation: z.ZodLiteral<"send_direct_message">;
342
+ senderId: z.ZodString;
343
+ recipientId: z.ZodString;
344
+ payload: z.ZodAny;
345
+ }, z.core.$strip>;
346
+ export declare const GetSwarmStatsSchema: z.ZodObject<{
347
+ operation: z.ZodLiteral<"get_swarm_stats">;
348
+ }, z.core.$strip>;
349
+ export declare const SequentialThinkingSchema: z.ZodUnion<readonly [z.ZodObject<{
350
+ operation: z.ZodLiteral<"initialize">;
351
+ sessionId: z.ZodOptional<z.ZodUndefined>;
352
+ topic: z.ZodString;
353
+ settings: z.ZodOptional<z.ZodAny>;
354
+ }, z.core.$strip>, z.ZodObject<{
355
+ operation: z.ZodLiteral<"add_thought">;
356
+ sessionId: z.ZodString;
357
+ content: z.ZodString;
358
+ thoughtType: z.ZodOptional<z.ZodEnum<{
359
+ hypothesis: "hypothesis";
360
+ analysis: "analysis";
361
+ synthesis: "synthesis";
362
+ conclusion: "conclusion";
363
+ meta_reasoning: "meta_reasoning";
364
+ self_correction: "self_correction";
365
+ uncertainty: "uncertainty";
366
+ question: "question";
367
+ evidence: "evidence";
368
+ counterargument: "counterargument";
369
+ assumption: "assumption";
370
+ branch_point: "branch_point";
371
+ merge_point: "merge_point";
372
+ revision: "revision";
373
+ }>>;
374
+ parentThoughtId: z.ZodOptional<z.ZodString>;
375
+ branchId: z.ZodOptional<z.ZodString>;
376
+ confidence: z.ZodOptional<z.ZodNumber>;
377
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
378
+ assumptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
379
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
380
+ }, z.core.$strip>, z.ZodObject<{
381
+ operation: z.ZodLiteral<"revise_thought">;
382
+ sessionId: z.ZodOptional<z.ZodUndefined>;
383
+ thoughtId: z.ZodString;
384
+ newContent: z.ZodString;
385
+ revisionReason: z.ZodString;
386
+ }, z.core.$strip>, z.ZodObject<{
387
+ operation: z.ZodLiteral<"branch_thought">;
388
+ sessionId: z.ZodString;
389
+ parentThoughtId: z.ZodString;
390
+ branchName: z.ZodString;
391
+ branchDescription: z.ZodOptional<z.ZodString>;
392
+ initialContent: z.ZodString;
393
+ }, z.core.$strip>, z.ZodObject<{
394
+ operation: z.ZodLiteral<"merge_branches">;
395
+ sessionId: z.ZodOptional<z.ZodUndefined>;
396
+ targetBranchId: z.ZodString;
397
+ sourceBranchId: z.ZodString;
398
+ mergeContent: z.ZodString;
399
+ }, z.core.$strip>, z.ZodObject<{
400
+ operation: z.ZodLiteral<"prune_branch">;
401
+ sessionId: z.ZodOptional<z.ZodUndefined>;
402
+ branchId: z.ZodString;
403
+ reason: z.ZodString;
404
+ }, z.core.$strip>, z.ZodObject<{
405
+ operation: z.ZodLiteral<"self_correct">;
406
+ sessionId: z.ZodString;
407
+ thoughtId: z.ZodString;
408
+ }, z.core.$strip>, z.ZodObject<{
409
+ operation: z.ZodLiteral<"add_meta_thought">;
410
+ sessionId: z.ZodOptional<z.ZodUndefined>;
411
+ thoughtId: z.ZodString;
412
+ content: z.ZodOptional<z.ZodString>;
413
+ }, z.core.$strip>, z.ZodObject<{
414
+ operation: z.ZodLiteral<"get_thinking_path">;
415
+ sessionId: z.ZodOptional<z.ZodUndefined>;
416
+ thoughtId: z.ZodString;
417
+ }, z.core.$strip>, z.ZodObject<{
418
+ operation: z.ZodLiteral<"get_branch_comparison">;
419
+ sessionId: z.ZodOptional<z.ZodUndefined>;
420
+ branchIds: z.ZodArray<z.ZodString>;
421
+ }, z.core.$strip>, z.ZodObject<{
422
+ operation: z.ZodLiteral<"calibrate_confidence">;
423
+ sessionId: z.ZodOptional<z.ZodUndefined>;
424
+ thoughtId: z.ZodString;
425
+ feedback: z.ZodOptional<z.ZodBoolean>;
426
+ }, z.core.$strip>, z.ZodObject<{
427
+ operation: z.ZodLiteral<"adjust_granularity">;
428
+ sessionId: z.ZodString;
429
+ }, z.core.$strip>, z.ZodObject<{
430
+ operation: z.ZodLiteral<"get_session_state">;
431
+ sessionId: z.ZodString;
432
+ }, z.core.$strip>, z.ZodObject<{
433
+ operation: z.ZodLiteral<"complete_session">;
434
+ sessionId: z.ZodString;
435
+ }, z.core.$strip>, z.ZodObject<{
436
+ operation: z.ZodLiteral<"delegate_to_swarm">;
437
+ sessionId: z.ZodString;
438
+ thoughtId: z.ZodString;
439
+ taskType: z.ZodString;
440
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
441
+ modelProvider: z.ZodOptional<z.ZodString>;
442
+ }, z.core.$strip>]>;
443
+ export declare const SwarmCoordinationSchema: z.ZodUnion<readonly [z.ZodObject<{
444
+ operation: z.ZodLiteral<"register_agent">;
445
+ name: z.ZodString;
446
+ agentType: z.ZodEnum<{
447
+ meta_reasoning: "meta_reasoning";
448
+ reasoner: "reasoner";
449
+ critic: "critic";
450
+ synthesizer: "synthesizer";
451
+ specialist: "specialist";
452
+ utility: "utility";
453
+ }>;
454
+ type: z.ZodOptional<z.ZodEnum<{
455
+ meta_reasoning: "meta_reasoning";
456
+ reasoner: "reasoner";
457
+ critic: "critic";
458
+ synthesizer: "synthesizer";
459
+ specialist: "specialist";
460
+ utility: "utility";
461
+ }>>;
462
+ subtype: z.ZodOptional<z.ZodString>;
463
+ capabilities: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodAny>]>>;
464
+ payload: z.ZodOptional<z.ZodAny>;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ operation: z.ZodLiteral<"unregister_agent">;
467
+ agentId: z.ZodString;
468
+ }, z.core.$strip>, z.ZodObject<{
469
+ operation: z.ZodLiteral<"list_agents">;
470
+ }, z.core.$strip>, z.ZodObject<{
471
+ operation: z.ZodLiteral<"get_agent_status">;
472
+ agentId: z.ZodString;
473
+ }, z.core.$strip>, z.ZodObject<{
474
+ operation: z.ZodLiteral<"assign_task">;
475
+ taskType: z.ZodString;
476
+ description: z.ZodString;
477
+ input: z.ZodUnknown;
478
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
479
+ strategy: z.ZodOptional<z.ZodEnum<{
480
+ round_robin: "round_robin";
481
+ capability_based: "capability_based";
482
+ load_balanced: "load_balanced";
483
+ performance_based: "performance_based";
484
+ adaptive: "adaptive";
485
+ cost_based: "cost_based";
486
+ fastest_first: "fastest_first";
487
+ }>>;
488
+ }, z.core.$strip>, z.ZodObject<{
489
+ operation: z.ZodLiteral<"get_task_status">;
490
+ taskId: z.ZodString;
491
+ }, z.core.$strip>, z.ZodObject<{
492
+ operation: z.ZodLiteral<"reach_consensus">;
493
+ proposal: z.ZodUnknown;
494
+ options: z.ZodArray<z.ZodUnknown>;
495
+ algorithm: z.ZodOptional<z.ZodEnum<{
496
+ majority_vote: "majority_vote";
497
+ weighted_vote: "weighted_vote";
498
+ borda_count: "borda_count";
499
+ condorcet: "condorcet";
500
+ delphi_method: "delphi_method";
501
+ prediction_market: "prediction_market";
502
+ }>>;
503
+ participatingAgents: z.ZodOptional<z.ZodArray<z.ZodString>>;
504
+ minAgreementRatio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
505
+ maxRounds: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
506
+ }, z.core.$strip>, z.ZodObject<{
507
+ operation: z.ZodLiteral<"identify_conflict">;
508
+ conflictType: z.ZodString;
509
+ description: z.ZodString;
510
+ positions: z.ZodArray<z.ZodObject<{
511
+ agentId: z.ZodString;
512
+ position: z.ZodUnknown;
513
+ confidence: z.ZodNumber;
514
+ reasoning: z.ZodOptional<z.ZodString>;
515
+ evidence: z.ZodOptional<z.ZodArray<z.ZodString>>;
516
+ }, z.core.$strip>>;
517
+ }, z.core.$strip>, z.ZodObject<{
518
+ operation: z.ZodLiteral<"resolve_conflict">;
519
+ conflictId: z.ZodString;
520
+ resolutionStrategy: z.ZodOptional<z.ZodEnum<{
521
+ mediation: "mediation";
522
+ arbitration: "arbitration";
523
+ voting: "voting";
524
+ expert_escalation: "expert_escalation";
525
+ compromise: "compromise";
526
+ evidence_based: "evidence_based";
527
+ }>>;
528
+ resolverAgentId: z.ZodOptional<z.ZodString>;
529
+ }, z.core.$strip>, z.ZodObject<{
530
+ operation: z.ZodLiteral<"broadcast_message">;
531
+ senderId: z.ZodString;
532
+ payload: z.ZodAny;
533
+ }, z.core.$strip>, z.ZodObject<{
534
+ operation: z.ZodLiteral<"send_direct_message">;
535
+ senderId: z.ZodString;
536
+ recipientId: z.ZodString;
537
+ payload: z.ZodAny;
538
+ }, z.core.$strip>, z.ZodObject<{
539
+ operation: z.ZodLiteral<"get_swarm_stats">;
540
+ }, z.core.$strip>]>;
541
+ export declare const MCPOperationSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
542
+ operation: z.ZodLiteral<"initialize">;
543
+ sessionId: z.ZodOptional<z.ZodUndefined>;
544
+ topic: z.ZodString;
545
+ settings: z.ZodOptional<z.ZodAny>;
546
+ }, z.core.$strip>, z.ZodObject<{
547
+ operation: z.ZodLiteral<"add_thought">;
548
+ sessionId: z.ZodString;
549
+ content: z.ZodString;
550
+ thoughtType: z.ZodOptional<z.ZodEnum<{
551
+ hypothesis: "hypothesis";
552
+ analysis: "analysis";
553
+ synthesis: "synthesis";
554
+ conclusion: "conclusion";
555
+ meta_reasoning: "meta_reasoning";
556
+ self_correction: "self_correction";
557
+ uncertainty: "uncertainty";
558
+ question: "question";
559
+ evidence: "evidence";
560
+ counterargument: "counterargument";
561
+ assumption: "assumption";
562
+ branch_point: "branch_point";
563
+ merge_point: "merge_point";
564
+ revision: "revision";
565
+ }>>;
566
+ parentThoughtId: z.ZodOptional<z.ZodString>;
567
+ branchId: z.ZodOptional<z.ZodString>;
568
+ confidence: z.ZodOptional<z.ZodNumber>;
569
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
570
+ assumptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
571
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
572
+ }, z.core.$strip>, z.ZodObject<{
573
+ operation: z.ZodLiteral<"revise_thought">;
574
+ sessionId: z.ZodOptional<z.ZodUndefined>;
575
+ thoughtId: z.ZodString;
576
+ newContent: z.ZodString;
577
+ revisionReason: z.ZodString;
578
+ }, z.core.$strip>, z.ZodObject<{
579
+ operation: z.ZodLiteral<"branch_thought">;
580
+ sessionId: z.ZodString;
581
+ parentThoughtId: z.ZodString;
582
+ branchName: z.ZodString;
583
+ branchDescription: z.ZodOptional<z.ZodString>;
584
+ initialContent: z.ZodString;
585
+ }, z.core.$strip>, z.ZodObject<{
586
+ operation: z.ZodLiteral<"merge_branches">;
587
+ sessionId: z.ZodOptional<z.ZodUndefined>;
588
+ targetBranchId: z.ZodString;
589
+ sourceBranchId: z.ZodString;
590
+ mergeContent: z.ZodString;
591
+ }, z.core.$strip>, z.ZodObject<{
592
+ operation: z.ZodLiteral<"prune_branch">;
593
+ sessionId: z.ZodOptional<z.ZodUndefined>;
594
+ branchId: z.ZodString;
595
+ reason: z.ZodString;
596
+ }, z.core.$strip>, z.ZodObject<{
597
+ operation: z.ZodLiteral<"self_correct">;
598
+ sessionId: z.ZodString;
599
+ thoughtId: z.ZodString;
600
+ }, z.core.$strip>, z.ZodObject<{
601
+ operation: z.ZodLiteral<"add_meta_thought">;
602
+ sessionId: z.ZodOptional<z.ZodUndefined>;
603
+ thoughtId: z.ZodString;
604
+ content: z.ZodOptional<z.ZodString>;
605
+ }, z.core.$strip>, z.ZodObject<{
606
+ operation: z.ZodLiteral<"get_thinking_path">;
607
+ sessionId: z.ZodOptional<z.ZodUndefined>;
608
+ thoughtId: z.ZodString;
609
+ }, z.core.$strip>, z.ZodObject<{
610
+ operation: z.ZodLiteral<"get_branch_comparison">;
611
+ sessionId: z.ZodOptional<z.ZodUndefined>;
612
+ branchIds: z.ZodArray<z.ZodString>;
613
+ }, z.core.$strip>, z.ZodObject<{
614
+ operation: z.ZodLiteral<"calibrate_confidence">;
615
+ sessionId: z.ZodOptional<z.ZodUndefined>;
616
+ thoughtId: z.ZodString;
617
+ feedback: z.ZodOptional<z.ZodBoolean>;
618
+ }, z.core.$strip>, z.ZodObject<{
619
+ operation: z.ZodLiteral<"adjust_granularity">;
620
+ sessionId: z.ZodString;
621
+ }, z.core.$strip>, z.ZodObject<{
622
+ operation: z.ZodLiteral<"get_session_state">;
623
+ sessionId: z.ZodString;
624
+ }, z.core.$strip>, z.ZodObject<{
625
+ operation: z.ZodLiteral<"complete_session">;
626
+ sessionId: z.ZodString;
627
+ }, z.core.$strip>, z.ZodObject<{
628
+ operation: z.ZodLiteral<"delegate_to_swarm">;
629
+ sessionId: z.ZodString;
630
+ thoughtId: z.ZodString;
631
+ taskType: z.ZodString;
632
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
633
+ modelProvider: z.ZodOptional<z.ZodString>;
634
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
635
+ operation: z.ZodLiteral<"register_agent">;
636
+ name: z.ZodString;
637
+ agentType: z.ZodEnum<{
638
+ meta_reasoning: "meta_reasoning";
639
+ reasoner: "reasoner";
640
+ critic: "critic";
641
+ synthesizer: "synthesizer";
642
+ specialist: "specialist";
643
+ utility: "utility";
644
+ }>;
645
+ type: z.ZodOptional<z.ZodEnum<{
646
+ meta_reasoning: "meta_reasoning";
647
+ reasoner: "reasoner";
648
+ critic: "critic";
649
+ synthesizer: "synthesizer";
650
+ specialist: "specialist";
651
+ utility: "utility";
652
+ }>>;
653
+ subtype: z.ZodOptional<z.ZodString>;
654
+ capabilities: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodAny>]>>;
655
+ payload: z.ZodOptional<z.ZodAny>;
656
+ }, z.core.$strip>, z.ZodObject<{
657
+ operation: z.ZodLiteral<"unregister_agent">;
658
+ agentId: z.ZodString;
659
+ }, z.core.$strip>, z.ZodObject<{
660
+ operation: z.ZodLiteral<"list_agents">;
661
+ }, z.core.$strip>, z.ZodObject<{
662
+ operation: z.ZodLiteral<"get_agent_status">;
663
+ agentId: z.ZodString;
664
+ }, z.core.$strip>, z.ZodObject<{
665
+ operation: z.ZodLiteral<"assign_task">;
666
+ taskType: z.ZodString;
667
+ description: z.ZodString;
668
+ input: z.ZodUnknown;
669
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
670
+ strategy: z.ZodOptional<z.ZodEnum<{
671
+ round_robin: "round_robin";
672
+ capability_based: "capability_based";
673
+ load_balanced: "load_balanced";
674
+ performance_based: "performance_based";
675
+ adaptive: "adaptive";
676
+ cost_based: "cost_based";
677
+ fastest_first: "fastest_first";
678
+ }>>;
679
+ }, z.core.$strip>, z.ZodObject<{
680
+ operation: z.ZodLiteral<"get_task_status">;
681
+ taskId: z.ZodString;
682
+ }, z.core.$strip>, z.ZodObject<{
683
+ operation: z.ZodLiteral<"reach_consensus">;
684
+ proposal: z.ZodUnknown;
685
+ options: z.ZodArray<z.ZodUnknown>;
686
+ algorithm: z.ZodOptional<z.ZodEnum<{
687
+ majority_vote: "majority_vote";
688
+ weighted_vote: "weighted_vote";
689
+ borda_count: "borda_count";
690
+ condorcet: "condorcet";
691
+ delphi_method: "delphi_method";
692
+ prediction_market: "prediction_market";
693
+ }>>;
694
+ participatingAgents: z.ZodOptional<z.ZodArray<z.ZodString>>;
695
+ minAgreementRatio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
696
+ maxRounds: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
697
+ }, z.core.$strip>, z.ZodObject<{
698
+ operation: z.ZodLiteral<"identify_conflict">;
699
+ conflictType: z.ZodString;
700
+ description: z.ZodString;
701
+ positions: z.ZodArray<z.ZodObject<{
702
+ agentId: z.ZodString;
703
+ position: z.ZodUnknown;
704
+ confidence: z.ZodNumber;
705
+ reasoning: z.ZodOptional<z.ZodString>;
706
+ evidence: z.ZodOptional<z.ZodArray<z.ZodString>>;
707
+ }, z.core.$strip>>;
708
+ }, z.core.$strip>, z.ZodObject<{
709
+ operation: z.ZodLiteral<"resolve_conflict">;
710
+ conflictId: z.ZodString;
711
+ resolutionStrategy: z.ZodOptional<z.ZodEnum<{
712
+ mediation: "mediation";
713
+ arbitration: "arbitration";
714
+ voting: "voting";
715
+ expert_escalation: "expert_escalation";
716
+ compromise: "compromise";
717
+ evidence_based: "evidence_based";
718
+ }>>;
719
+ resolverAgentId: z.ZodOptional<z.ZodString>;
720
+ }, z.core.$strip>, z.ZodObject<{
721
+ operation: z.ZodLiteral<"broadcast_message">;
722
+ senderId: z.ZodString;
723
+ payload: z.ZodAny;
724
+ }, z.core.$strip>, z.ZodObject<{
725
+ operation: z.ZodLiteral<"send_direct_message">;
726
+ senderId: z.ZodString;
727
+ recipientId: z.ZodString;
728
+ payload: z.ZodAny;
729
+ }, z.core.$strip>, z.ZodObject<{
730
+ operation: z.ZodLiteral<"get_swarm_stats">;
731
+ }, z.core.$strip>]>]>;
732
+ export type InitializeInput = z.infer<typeof InitializeSchema>;
733
+ export type AddThoughtInput = z.infer<typeof AddThoughtSchema>;
734
+ export type ReviseThoughtInput = z.infer<typeof ReviseThoughtSchema>;
735
+ export type BranchThoughtInput = z.infer<typeof BranchThoughtSchema>;
736
+ export type MergeBranchesInput = z.infer<typeof MergeBranchesSchema>;
737
+ export type PruneBranchInput = z.infer<typeof PruneBranchSchema>;
738
+ export type SelfCorrectInput = z.infer<typeof SelfCorrectSchema>;
739
+ export type AddMetaThoughtInput = z.infer<typeof AddMetaThoughtSchema>;
740
+ export type GetThinkingPathInput = z.infer<typeof GetThinkingPathSchema>;
741
+ export type GetBranchComparisonInput = z.infer<typeof GetBranchComparisonSchema>;
742
+ export type CalibrateConfidenceInput = z.infer<typeof CalibrateConfidenceSchema>;
743
+ export type AdjustGranularityInput = z.infer<typeof AdjustGranularitySchema>;
744
+ export type GetSessionStateInput = z.infer<typeof GetSessionStateSchema>;
745
+ export type CompleteSessionInput = z.infer<typeof CompleteSessionSchema>;
746
+ export type DelegateToSwarmInput = z.infer<typeof DelegateToSwarmSchema>;
747
+ export type RegisterAgentInput = z.infer<typeof RegisterAgentSchema>;
748
+ export type UnregisterAgentInput = z.infer<typeof UnregisterAgentSchema>;
749
+ export type ListAgentsInput = z.infer<typeof ListAgentsSchema>;
750
+ export type GetAgentStatusInput = z.infer<typeof GetAgentStatusSchema>;
751
+ export type AssignTaskInput = z.infer<typeof AssignTaskSchema>;
752
+ export type GetTaskStatusInput = z.infer<typeof GetTaskStatusSchema>;
753
+ export type ReachConsensusInput = z.infer<typeof ReachConsensusSchema>;
754
+ export type IdentifyConflictInput = z.infer<typeof IdentifyConflictSchema>;
755
+ export type ResolveConflictInput = z.infer<typeof ResolveConflictSchema>;
756
+ export type BroadcastMessageInput = z.infer<typeof BroadcastMessageSchema>;
757
+ export type SendDirectMessageInput = z.infer<typeof SendDirectMessageSchema>;
758
+ export type GetSwarmStatsInput = z.infer<typeof GetSwarmStatsSchema>;
759
+ /**
760
+ * Validate sequential thinking input
761
+ */
762
+ export declare function validateSequentialThinking(input: unknown): {
763
+ success: true;
764
+ data: z.infer<typeof SequentialThinkingSchema>;
765
+ } | {
766
+ success: false;
767
+ error: string;
768
+ };
769
+ /**
770
+ * Validate swarm coordination input
771
+ */
772
+ export declare function validateSwarmCoordination(input: unknown): {
773
+ success: true;
774
+ data: z.infer<typeof SwarmCoordinationSchema>;
775
+ } | {
776
+ success: false;
777
+ error: string;
778
+ };
779
+ /**
780
+ * Validate any MCP operation
781
+ */
782
+ export declare function validateMCPOperation(toolName: string, input: unknown): {
783
+ success: true;
784
+ data: unknown;
785
+ } | {
786
+ success: false;
787
+ error: string;
788
+ };
789
+ /**
790
+ * Safe validation that returns null on error
791
+ */
792
+ export declare function safeValidate<T>(schema: z.ZodSchema<T>, input: unknown): T | null;
793
+ //# sourceMappingURL=schemas.d.ts.map