@gotza02/seq-thinking 1.1.22 → 1.1.24

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 (38) hide show
  1. package/README.md +234 -89
  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.js +1 -1
  18. package/dist/utils/llm-adapter.d.ts +4 -4
  19. package/dist/utils/llm-adapter.d.ts.map +1 -1
  20. package/dist/utils/llm-adapter.js +25 -23
  21. package/dist/utils/llm-adapter.js.map +1 -1
  22. package/dist/utils/persistence.d.ts +17 -0
  23. package/dist/utils/persistence.d.ts.map +1 -1
  24. package/dist/utils/persistence.js +60 -5
  25. package/dist/utils/persistence.js.map +1 -1
  26. package/dist/validation/index.d.ts +6 -0
  27. package/dist/validation/index.d.ts.map +1 -0
  28. package/dist/validation/index.js +6 -0
  29. package/dist/validation/index.js.map +1 -0
  30. package/dist/validation/schemas.d.ts +793 -0
  31. package/dist/validation/schemas.d.ts.map +1 -0
  32. package/dist/validation/schemas.js +340 -0
  33. package/dist/validation/schemas.js.map +1 -0
  34. package/dist/validation/schemas.test.d.ts +6 -0
  35. package/dist/validation/schemas.test.d.ts.map +1 -0
  36. package/dist/validation/schemas.test.js +171 -0
  37. package/dist/validation/schemas.test.js.map +1 -0
  38. package/package.json +7 -6
@@ -0,0 +1,278 @@
1
+ /**
2
+ * Core Type Definitions for MCP Sequential Thinking System
3
+ * @module types
4
+ * @version 1.0.0
5
+ */
6
+ /**
7
+ * Enumeration of thought types for classification and routing
8
+ */
9
+ export var ThoughtType;
10
+ (function (ThoughtType) {
11
+ /** Proposed explanation or theory */
12
+ ThoughtType["HYPOTHESIS"] = "hypothesis";
13
+ /** Breaking down complex information */
14
+ ThoughtType["ANALYSIS"] = "analysis";
15
+ /** Combining multiple thoughts */
16
+ ThoughtType["SYNTHESIS"] = "synthesis";
17
+ /** Final determination */
18
+ ThoughtType["CONCLUSION"] = "conclusion";
19
+ /** Thinking about the thinking process */
20
+ ThoughtType["META_REASONING"] = "meta_reasoning";
21
+ /** Identifying and fixing errors */
22
+ ThoughtType["SELF_CORRECTION"] = "self_correction";
23
+ /** Expressing doubt or unknowns */
24
+ ThoughtType["UNCERTAINTY"] = "uncertainty";
25
+ /** Inquiry to explore */
26
+ ThoughtType["QUESTION"] = "question";
27
+ /** Supporting information */
28
+ ThoughtType["EVIDENCE"] = "evidence";
29
+ /** Opposing viewpoint */
30
+ ThoughtType["COUNTERARGUMENT"] = "counterargument";
31
+ /** Base premise */
32
+ ThoughtType["ASSUMPTION"] = "assumption";
33
+ /** Where parallel paths diverge */
34
+ ThoughtType["BRANCH_POINT"] = "branch_point";
35
+ /** Where paths converge */
36
+ ThoughtType["MERGE_POINT"] = "merge_point";
37
+ /** Modified version of prior thought */
38
+ ThoughtType["REVISION"] = "revision";
39
+ })(ThoughtType || (ThoughtType = {}));
40
+ /**
41
+ * Enumeration of agent types
42
+ */
43
+ export var AgentType;
44
+ (function (AgentType) {
45
+ /** Reasoning agent */
46
+ AgentType["REASONER"] = "reasoner";
47
+ /** Critic/Evaluation agent */
48
+ AgentType["CRITIC"] = "critic";
49
+ /** Synthesis agent */
50
+ AgentType["SYNTHESIZER"] = "synthesizer";
51
+ /** Domain specialist agent */
52
+ AgentType["SPECIALIST"] = "specialist";
53
+ /** Meta-reasoning agent */
54
+ AgentType["META_REASONING"] = "meta_reasoning";
55
+ /** Utility agent */
56
+ AgentType["UTILITY"] = "utility";
57
+ })(AgentType || (AgentType = {}));
58
+ /**
59
+ * Enumeration of reasoning strategies
60
+ */
61
+ export var ReasoningStrategy;
62
+ (function (ReasoningStrategy) {
63
+ /** Step-by-step reasoning */
64
+ ReasoningStrategy["CHAIN_OF_THOUGHT"] = "chain_of_thought";
65
+ /** Explore multiple paths */
66
+ ReasoningStrategy["TREE_OF_THOUGHT"] = "tree_of_thought";
67
+ /** Reason by analogy */
68
+ ReasoningStrategy["ANALOGICAL"] = "analogical";
69
+ /** Inference to best explanation */
70
+ ReasoningStrategy["ABDUCTIVE"] = "abductive";
71
+ })(ReasoningStrategy || (ReasoningStrategy = {}));
72
+ /**
73
+ * Enumeration of critic types
74
+ */
75
+ export var CriticType;
76
+ (function (CriticType) {
77
+ /** Check logical consistency */
78
+ CriticType["LOGICAL"] = "logical";
79
+ /** Verify factual accuracy */
80
+ CriticType["FACTUAL"] = "factual";
81
+ /** Detect cognitive biases */
82
+ CriticType["BIAS"] = "bias";
83
+ /** Check safety concerns */
84
+ CriticType["SAFETY"] = "safety";
85
+ })(CriticType || (CriticType = {}));
86
+ /**
87
+ * Enumeration of synthesizer types
88
+ */
89
+ export var SynthesizerType;
90
+ (function (SynthesizerType) {
91
+ /** Build consensus */
92
+ SynthesizerType["CONSENSUS"] = "consensus";
93
+ /** Creative combination */
94
+ SynthesizerType["CREATIVE"] = "creative";
95
+ /** Resolve conflicts */
96
+ SynthesizerType["CONFLICT_RESOLUTION"] = "conflict_resolution";
97
+ })(SynthesizerType || (SynthesizerType = {}));
98
+ /**
99
+ * Enumeration of message types
100
+ */
101
+ export var MessageType;
102
+ (function (MessageType) {
103
+ /** Task assignment message */
104
+ MessageType["TASK_ASSIGNMENT"] = "task_assignment";
105
+ /** Task result message */
106
+ MessageType["TASK_RESULT"] = "task_result";
107
+ /** Broadcast to all agents */
108
+ MessageType["BROADCAST"] = "broadcast";
109
+ /** Direct message to specific agent */
110
+ MessageType["DIRECT"] = "direct";
111
+ /** Request for consensus */
112
+ MessageType["CONSENSUS_REQUEST"] = "consensus_request";
113
+ /** Consensus vote */
114
+ MessageType["CONSENSUS_VOTE"] = "consensus_vote";
115
+ /** Conflict notification */
116
+ MessageType["CONFLICT_NOTIFICATION"] = "conflict_notification";
117
+ /** Heartbeat/ping */
118
+ MessageType["HEARTBEAT"] = "heartbeat";
119
+ })(MessageType || (MessageType = {}));
120
+ /**
121
+ * Enumeration of consensus algorithms
122
+ */
123
+ export var ConsensusAlgorithm;
124
+ (function (ConsensusAlgorithm) {
125
+ /** Simple majority vote */
126
+ ConsensusAlgorithm["MAJORITY_VOTE"] = "majority_vote";
127
+ /** Weighted by expertise/confidence */
128
+ ConsensusAlgorithm["WEIGHTED_VOTE"] = "weighted_vote";
129
+ /** Borda count ranking */
130
+ ConsensusAlgorithm["BORDA_COUNT"] = "borda_count";
131
+ /** Condorcet method */
132
+ ConsensusAlgorithm["CONDORCET"] = "condorcet";
133
+ /** Iterative Delphi method */
134
+ ConsensusAlgorithm["DELPHI_METHOD"] = "delphi_method";
135
+ /** Prediction market style */
136
+ ConsensusAlgorithm["PREDICTION_MARKET"] = "prediction_market";
137
+ })(ConsensusAlgorithm || (ConsensusAlgorithm = {}));
138
+ /**
139
+ * Enumeration of conflict resolution strategies
140
+ */
141
+ export var ConflictResolutionStrategy;
142
+ (function (ConflictResolutionStrategy) {
143
+ /** Facilitated discussion */
144
+ ConflictResolutionStrategy["MEDIATION"] = "mediation";
145
+ /** Third-party decision */
146
+ ConflictResolutionStrategy["ARBITRATION"] = "arbitration";
147
+ /** Voting-based resolution */
148
+ ConflictResolutionStrategy["VOTING"] = "voting";
149
+ /** Escalate to expert */
150
+ ConflictResolutionStrategy["EXPERT_ESCALATION"] = "expert_escalation";
151
+ /** Find middle ground */
152
+ ConflictResolutionStrategy["COMPROMISE"] = "compromise";
153
+ /** Evidence-based resolution */
154
+ ConflictResolutionStrategy["EVIDENCE_BASED"] = "evidence_based";
155
+ })(ConflictResolutionStrategy || (ConflictResolutionStrategy = {}));
156
+ /**
157
+ * Enumeration of task statuses
158
+ */
159
+ export var TaskStatus;
160
+ (function (TaskStatus) {
161
+ /** Task is pending */
162
+ TaskStatus["PENDING"] = "pending";
163
+ /** Task is assigned to agent */
164
+ TaskStatus["ASSIGNED"] = "assigned";
165
+ /** Task is in progress */
166
+ TaskStatus["IN_PROGRESS"] = "in_progress";
167
+ /** Task is completed */
168
+ TaskStatus["COMPLETED"] = "completed";
169
+ /** Task failed */
170
+ TaskStatus["FAILED"] = "failed";
171
+ /** Task was cancelled */
172
+ TaskStatus["CANCELLED"] = "cancelled";
173
+ })(TaskStatus || (TaskStatus = {}));
174
+ /**
175
+ * Enumeration of agent statuses
176
+ */
177
+ export var AgentStatus;
178
+ (function (AgentStatus) {
179
+ /** Agent is idle */
180
+ AgentStatus["IDLE"] = "idle";
181
+ /** Agent is busy */
182
+ AgentStatus["BUSY"] = "busy";
183
+ /** Agent is offline */
184
+ AgentStatus["OFFLINE"] = "offline";
185
+ /** Agent is error state */
186
+ AgentStatus["ERROR"] = "error";
187
+ /** Agent is initializing */
188
+ AgentStatus["INITIALIZING"] = "initializing";
189
+ })(AgentStatus || (AgentStatus = {}));
190
+ /**
191
+ * Enumeration of branch statuses
192
+ */
193
+ export var BranchStatus;
194
+ (function (BranchStatus) {
195
+ /** Branch is active */
196
+ BranchStatus["ACTIVE"] = "active";
197
+ /** Branch is completed */
198
+ BranchStatus["COMPLETED"] = "completed";
199
+ /** Branch is merged */
200
+ BranchStatus["MERGED"] = "merged";
201
+ /** Branch is pruned */
202
+ BranchStatus["PRUNED"] = "pruned";
203
+ /** Branch is abandoned */
204
+ BranchStatus["ABANDONED"] = "abandoned";
205
+ })(BranchStatus || (BranchStatus = {}));
206
+ /**
207
+ * Enumeration of session statuses
208
+ */
209
+ export var SessionStatus;
210
+ (function (SessionStatus) {
211
+ /** Session is initializing */
212
+ SessionStatus["INITIALIZING"] = "initializing";
213
+ /** Session is active */
214
+ SessionStatus["ACTIVE"] = "active";
215
+ /** Session is paused */
216
+ SessionStatus["PAUSED"] = "paused";
217
+ /** Session is converging */
218
+ SessionStatus["CONVERGING"] = "converging";
219
+ /** Session is completed */
220
+ SessionStatus["COMPLETED"] = "completed";
221
+ /** Session is abandoned */
222
+ SessionStatus["ABANDONED"] = "abandoned";
223
+ })(SessionStatus || (SessionStatus = {}));
224
+ /**
225
+ * Enumeration of conflict statuses
226
+ */
227
+ export var ConflictStatus;
228
+ (function (ConflictStatus) {
229
+ /** Conflict is detected */
230
+ ConflictStatus["DETECTED"] = "detected";
231
+ /** Conflict is being analyzed */
232
+ ConflictStatus["ANALYZING"] = "analyzing";
233
+ /** Conflict is being resolved */
234
+ ConflictStatus["RESOLVING"] = "resolving";
235
+ /** Conflict is resolved */
236
+ ConflictStatus["RESOLVED"] = "resolved";
237
+ /** Conflict resolution failed */
238
+ ConflictStatus["FAILED"] = "failed";
239
+ })(ConflictStatus || (ConflictStatus = {}));
240
+ // ============================================================================
241
+ // Error Classes
242
+ // ============================================================================
243
+ /**
244
+ * Base error class for sequential thinking errors
245
+ */
246
+ export class SequentialThinkingError extends Error {
247
+ constructor(message) {
248
+ super(message);
249
+ this.name = 'SequentialThinkingError';
250
+ }
251
+ }
252
+ /**
253
+ * Validation error
254
+ */
255
+ export class ValidationError extends SequentialThinkingError {
256
+ constructor(message) {
257
+ super(message);
258
+ this.name = 'ValidationError';
259
+ }
260
+ }
261
+ /**
262
+ * Not found error
263
+ */
264
+ export class NotFoundError extends SequentialThinkingError {
265
+ constructor(message) {
266
+ super(message);
267
+ this.name = 'NotFoundError';
268
+ }
269
+ }
270
+ /**
271
+ * Timeout error
272
+ */
273
+ export class TimeoutError extends SequentialThinkingError {
274
+ constructor(message) {
275
+ super(message);
276
+ this.name = 'TimeoutError';
277
+ }
278
+ }
@@ -0,0 +1,93 @@
1
+ /**
2
+ * LLM Adapter to call external CLI tools via child_process
3
+ * @module utils/llm-adapter
4
+ */
5
+ import { execFile } from 'child_process';
6
+ import { promisify } from 'util';
7
+ import { Logger } from './logger.js';
8
+ const execFileAsync = promisify(execFile);
9
+ export class LLMAdapter {
10
+ /**
11
+ * Main entry point to call an LLM based on provider pool
12
+ */
13
+ static async call(prompt, systemPrompt, providerOverride) {
14
+ const providerEnv = process.env.provider || 'gemini';
15
+ const providers = providerOverride ? [providerOverride] : providerEnv.split(',').map(p => p.trim());
16
+ let lastError = '';
17
+ for (const provider of providers) {
18
+ const combinedPrompt = systemPrompt ? `${systemPrompt}\n\nUser: ${prompt}` : prompt;
19
+ // For testing/development: If MOCK_LLM is set, return mock data
20
+ if (process.env.MOCK_LLM === 'true') {
21
+ Logger.debug('LLM Mock Call', { provider, promptLength: prompt.length });
22
+ return { content: `[MOCK RESPONSE from ${provider}] I have analyzed your request: ${prompt.substring(0, 50)}...` };
23
+ }
24
+ Logger.info('LLM Call initiated', { provider });
25
+ try {
26
+ let response;
27
+ switch (provider.toLowerCase()) {
28
+ case 'gemini':
29
+ response = await this.execLLM('gemini', ['ask', combinedPrompt]);
30
+ break;
31
+ case 'claude':
32
+ response = await this.execLLM('claude', [combinedPrompt, '--non-interactive']);
33
+ break;
34
+ case 'kimi':
35
+ response = await this.execLLM('kimi', ['--quiet', '--prompt', combinedPrompt]);
36
+ break;
37
+ case 'opencode':
38
+ response = await this.execLLM('opencode', ['ask', combinedPrompt]);
39
+ break;
40
+ default:
41
+ response = { content: '', error: `Unsupported provider: ${provider}` };
42
+ }
43
+ if (response.content && !response.error) {
44
+ return response; // Success!
45
+ }
46
+ lastError = response.error || 'Unknown error';
47
+ Logger.warn(`Provider ${provider} failed, trying next...`, { error: lastError });
48
+ }
49
+ catch (error) {
50
+ lastError = error.message;
51
+ Logger.error(`LLM Adapter Error with ${provider}`, { error: lastError });
52
+ }
53
+ }
54
+ return { content: '', error: `All providers failed. Last error: ${lastError}` };
55
+ }
56
+ /**
57
+ * Execute LLM command using execFile (secure, no shell injection)
58
+ */
59
+ static async execLLM(command, args) {
60
+ try {
61
+ // Check if command exists before executing
62
+ const exists = await this.checkCommandExists(command);
63
+ if (!exists) {
64
+ const error = `CLI tool '${command}' not found or not in PATH. Please install and login.`;
65
+ Logger.warn('CLI tool missing', { command });
66
+ return { content: '', error };
67
+ }
68
+ const { stdout, stderr } = await execFileAsync(command, args, {
69
+ timeout: 60000 // 60 second timeout
70
+ });
71
+ if (stderr && stderr.trim()) {
72
+ Logger.debug('CLI Stderr output', { command, stderr: stderr.substring(0, 100) });
73
+ }
74
+ return { content: stdout.trim() };
75
+ }
76
+ catch (error) {
77
+ Logger.error('Execution failed', { command, args: args.slice(0, 2), error: error.message });
78
+ return { content: '', error: error.message };
79
+ }
80
+ }
81
+ /**
82
+ * Check if a command exists in PATH
83
+ */
84
+ static async checkCommandExists(command) {
85
+ try {
86
+ await execFileAsync('command', ['-v', command], { timeout: 5000 });
87
+ return true;
88
+ }
89
+ catch {
90
+ return false;
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Simple Structured Logging Utility
3
+ * @module utils/logger
4
+ */
5
+ export var LogLevel;
6
+ (function (LogLevel) {
7
+ LogLevel[LogLevel["DEBUG"] = 0] = "DEBUG";
8
+ LogLevel[LogLevel["INFO"] = 1] = "INFO";
9
+ LogLevel[LogLevel["WARN"] = 2] = "WARN";
10
+ LogLevel[LogLevel["ERROR"] = 3] = "ERROR";
11
+ })(LogLevel || (LogLevel = {}));
12
+ export class Logger {
13
+ static level = LogLevel.INFO;
14
+ static setLevel(level) {
15
+ this.level = level;
16
+ }
17
+ static debug(message, context = {}) {
18
+ if (this.level <= LogLevel.DEBUG) {
19
+ this.log('DEBUG', message, context);
20
+ }
21
+ }
22
+ static info(message, context = {}) {
23
+ if (this.level <= LogLevel.INFO) {
24
+ this.log('INFO', message, context);
25
+ }
26
+ }
27
+ static warn(message, context = {}) {
28
+ if (this.level <= LogLevel.WARN) {
29
+ this.log('WARN', message, context);
30
+ }
31
+ }
32
+ static error(message, context = {}) {
33
+ if (this.level <= LogLevel.ERROR) {
34
+ this.log('ERROR', message, context);
35
+ }
36
+ }
37
+ static log(level, message, context) {
38
+ const timestamp = new Date().toISOString();
39
+ const logEntry = {
40
+ timestamp,
41
+ level,
42
+ message,
43
+ ...context
44
+ };
45
+ // Write to stderr to avoid interfering with MCP stdio protocol
46
+ process.stderr.write(JSON.stringify(logEntry) + '\n');
47
+ }
48
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Constants for MCP Sequential Thinking
3
+ * @module constants
4
+ */
5
+ /** LLM call timeout in milliseconds */
6
+ export declare const LLM_TIMEOUT_MS = 60000;
7
+ /** Default maximum time for task execution */
8
+ export declare const DEFAULT_MAX_TIME_MS = 30000;
9
+ /** Base delay for retry calculations */
10
+ export declare const RETRY_DELAY_BASE_MS = 500;
11
+ /** Default minimum confidence for agent tasks */
12
+ export declare const DEFAULT_MIN_CONFIDENCE = 0.6;
13
+ /** Default initial confidence score */
14
+ export declare const DEFAULT_INITIAL_CONFIDENCE = 0.5;
15
+ /** Default minimum agreement ratio for consensus */
16
+ export declare const DEFAULT_MIN_AGREEMENT_RATIO = 0.67;
17
+ /** Threshold for high uncertainty detection */
18
+ export declare const UNCERTAINTY_THRESHOLD = 0.4;
19
+ /** Threshold for detecting similar thoughts */
20
+ export declare const SIMILARITY_THRESHOLD = 0.7;
21
+ /** Default maximum number of branches per session */
22
+ export declare const DEFAULT_MAX_BRANCHES = 5;
23
+ /** Default maximum depth for reasoning chains */
24
+ export declare const DEFAULT_MAX_DEPTH = 20;
25
+ /** Maximum number of retries for failed tasks */
26
+ export declare const MAX_RETRIES = 3;
27
+ /** Maximum number of IDs to generate in tests */
28
+ export declare const MAX_TEST_IDS = 1000;
29
+ /** Maximum length for IDs */
30
+ export declare const MAX_ID_LENGTH = 256;
31
+ /** Maximum content length for thoughts/messages */
32
+ export declare const MAX_CONTENT_LENGTH = 100000;
33
+ /** Default LLM providers */
34
+ export declare const DEFAULT_PROVIDERS: string[];
35
+ /** Default log level */
36
+ export declare const DEFAULT_LOG_LEVEL = "INFO";
37
+ /** Default data directory */
38
+ export declare const DEFAULT_DATA_DIR = "./data";
39
+ /** Package version - MUST match package.json */
40
+ export declare const VERSION = "1.1.24";
41
+ /** Regex pattern for valid IDs (alphanumeric, hyphen, underscore) */
42
+ export declare const ID_REGEX: RegExp;
43
+ /** Regex pattern for complex terms that need higher granularity */
44
+ export declare const COMPLEX_TERMS_REGEX: RegExp;
45
+ /** Minimum step detail level */
46
+ export declare const MIN_STEP_DETAIL = 0.1;
47
+ /** Maximum step detail level */
48
+ export declare const MAX_STEP_DETAIL = 1;
49
+ /** Complexity threshold for triggering high granularity */
50
+ export declare const COMPLEXITY_THRESHOLD = 0.7;
51
+ /** Weight for logical consistency in overall confidence */
52
+ export declare const WEIGHT_LOGICAL_CONSISTENCY = 0.3;
53
+ /** Weight for factual accuracy in overall confidence */
54
+ export declare const WEIGHT_FACTUAL_ACCURACY = 0.25;
55
+ /** Weight for reasoning quality in overall confidence */
56
+ export declare const WEIGHT_REASONING_QUALITY = 0.25;
57
+ /** Weight for evidence strength in overall confidence */
58
+ export declare const WEIGHT_EVIDENCE_STRENGTH = 0.2;
59
+ /** Default confidence threshold for sessions */
60
+ export declare const DEFAULT_CONFIDENCE_THRESHOLD = 0.6;
61
+ /** Whether self-correction is enabled by default */
62
+ export declare const DEFAULT_ENABLE_SELF_CORRECTION = true;
63
+ /** Whether meta-reasoning is enabled by default */
64
+ export declare const DEFAULT_ENABLE_META_REASONING = true;
65
+ /** Whether parallel hypotheses are enabled by default */
66
+ export declare const DEFAULT_ENABLE_PARALLEL_HYPOTHESES = true;
67
+ /** Whether adaptive granularity is enabled by default */
68
+ export declare const DEFAULT_ADAPTIVE_GRANULARITY = true;
69
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,uCAAuC;AACvC,eAAO,MAAM,cAAc,QAAQ,CAAC;AAEpC,8CAA8C;AAC9C,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AAEzC,wCAAwC;AACxC,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAMvC,iDAAiD;AACjD,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,uCAAuC;AACvC,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,oDAAoD;AACpD,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD,+CAA+C;AAC/C,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAMzC,+CAA+C;AAC/C,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAMxC,qDAAqD;AACrD,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,iDAAiD;AACjD,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,iDAAiD;AACjD,eAAO,MAAM,WAAW,IAAI,CAAC;AAE7B,iDAAiD;AACjD,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,6BAA6B;AAC7B,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC,mDAAmD;AACnD,eAAO,MAAM,kBAAkB,SAAS,CAAC;AAMzC,4BAA4B;AAC5B,eAAO,MAAM,iBAAiB,UAAa,CAAC;AAE5C,wBAAwB;AACxB,eAAO,MAAM,iBAAiB,SAAS,CAAC;AAExC,6BAA6B;AAC7B,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAEzC,gDAAgD;AAChD,eAAO,MAAM,OAAO,WAAW,CAAC;AAMhC,qEAAqE;AACrE,eAAO,MAAM,QAAQ,QAAqB,CAAC;AAE3C,mEAAmE;AACnE,eAAO,MAAM,mBAAmB,QAA4E,CAAC;AAM7G,gCAAgC;AAChC,eAAO,MAAM,eAAe,MAAM,CAAC;AAEnC,gCAAgC;AAChC,eAAO,MAAM,eAAe,IAAM,CAAC;AAEnC,2DAA2D;AAC3D,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAMxC,2DAA2D;AAC3D,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,wDAAwD;AACxD,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C,yDAAyD;AACzD,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAE7C,yDAAyD;AACzD,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAM5C,gDAAgD;AAChD,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAEhD,oDAAoD;AACpD,eAAO,MAAM,8BAA8B,OAAO,CAAC;AAEnD,mDAAmD;AACnD,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAElD,yDAAyD;AACzD,eAAO,MAAM,kCAAkC,OAAO,CAAC;AAEvD,yDAAyD;AACzD,eAAO,MAAM,4BAA4B,OAAO,CAAC"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Constants for MCP Sequential Thinking
3
+ * @module constants
4
+ */
5
+ // ============================================================================
6
+ // Timeouts (milliseconds)
7
+ // ============================================================================
8
+ /** LLM call timeout in milliseconds */
9
+ export const LLM_TIMEOUT_MS = 60000;
10
+ /** Default maximum time for task execution */
11
+ export const DEFAULT_MAX_TIME_MS = 30000;
12
+ /** Base delay for retry calculations */
13
+ export const RETRY_DELAY_BASE_MS = 500;
14
+ // ============================================================================
15
+ // Confidence Thresholds
16
+ // ============================================================================
17
+ /** Default minimum confidence for agent tasks */
18
+ export const DEFAULT_MIN_CONFIDENCE = 0.6;
19
+ /** Default initial confidence score */
20
+ export const DEFAULT_INITIAL_CONFIDENCE = 0.5;
21
+ /** Default minimum agreement ratio for consensus */
22
+ export const DEFAULT_MIN_AGREEMENT_RATIO = 0.67;
23
+ /** Threshold for high uncertainty detection */
24
+ export const UNCERTAINTY_THRESHOLD = 0.4;
25
+ // ============================================================================
26
+ // Similarity Thresholds
27
+ // ============================================================================
28
+ /** Threshold for detecting similar thoughts */
29
+ export const SIMILARITY_THRESHOLD = 0.7;
30
+ // ============================================================================
31
+ // Limits
32
+ // ============================================================================
33
+ /** Default maximum number of branches per session */
34
+ export const DEFAULT_MAX_BRANCHES = 5;
35
+ /** Default maximum depth for reasoning chains */
36
+ export const DEFAULT_MAX_DEPTH = 20;
37
+ /** Maximum number of retries for failed tasks */
38
+ export const MAX_RETRIES = 3;
39
+ /** Maximum number of IDs to generate in tests */
40
+ export const MAX_TEST_IDS = 1000;
41
+ /** Maximum length for IDs */
42
+ export const MAX_ID_LENGTH = 256;
43
+ /** Maximum content length for thoughts/messages */
44
+ export const MAX_CONTENT_LENGTH = 100000;
45
+ // ============================================================================
46
+ // Defaults
47
+ // ============================================================================
48
+ /** Default LLM providers */
49
+ export const DEFAULT_PROVIDERS = ['gemini'];
50
+ /** Default log level */
51
+ export const DEFAULT_LOG_LEVEL = 'INFO';
52
+ /** Default data directory */
53
+ export const DEFAULT_DATA_DIR = './data';
54
+ /** Package version - MUST match package.json */
55
+ export const VERSION = '1.1.24';
56
+ // ============================================================================
57
+ // Validation
58
+ // ============================================================================
59
+ /** Regex pattern for valid IDs (alphanumeric, hyphen, underscore) */
60
+ export const ID_REGEX = /^[a-zA-Z0-9_-]+$/;
61
+ /** Regex pattern for complex terms that need higher granularity */
62
+ export const COMPLEX_TERMS_REGEX = /\b(system|architecture|framework|optimization|deep learning|quantum)\b/i;
63
+ // ============================================================================
64
+ // Granularity Settings
65
+ // ============================================================================
66
+ /** Minimum step detail level */
67
+ export const MIN_STEP_DETAIL = 0.1;
68
+ /** Maximum step detail level */
69
+ export const MAX_STEP_DETAIL = 1.0;
70
+ /** Complexity threshold for triggering high granularity */
71
+ export const COMPLEXITY_THRESHOLD = 0.7;
72
+ // ============================================================================
73
+ // Confidence Weights
74
+ // ============================================================================
75
+ /** Weight for logical consistency in overall confidence */
76
+ export const WEIGHT_LOGICAL_CONSISTENCY = 0.3;
77
+ /** Weight for factual accuracy in overall confidence */
78
+ export const WEIGHT_FACTUAL_ACCURACY = 0.25;
79
+ /** Weight for reasoning quality in overall confidence */
80
+ export const WEIGHT_REASONING_QUALITY = 0.25;
81
+ /** Weight for evidence strength in overall confidence */
82
+ export const WEIGHT_EVIDENCE_STRENGTH = 0.2;
83
+ // ============================================================================
84
+ // Session Settings
85
+ // ============================================================================
86
+ /** Default confidence threshold for sessions */
87
+ export const DEFAULT_CONFIDENCE_THRESHOLD = 0.6;
88
+ /** Whether self-correction is enabled by default */
89
+ export const DEFAULT_ENABLE_SELF_CORRECTION = true;
90
+ /** Whether meta-reasoning is enabled by default */
91
+ export const DEFAULT_ENABLE_META_REASONING = true;
92
+ /** Whether parallel hypotheses are enabled by default */
93
+ export const DEFAULT_ENABLE_PARALLEL_HYPOTHESES = true;
94
+ /** Whether adaptive granularity is enabled by default */
95
+ export const DEFAULT_ADAPTIVE_GRANULARITY = true;
96
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"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"}
package/dist/index.d.ts CHANGED
@@ -9,6 +9,8 @@ export { SessionManager, ThoughtGraph, MetaReasoningEngine, SelfCorrectionEngine
9
9
  export { SwarmCoordinator, AgentRegistry, MessageBroker, TaskQueueManager, TaskAssigner, ConsensusEngine, ConflictResolver } from './swarm-coordinator.js';
10
10
  export { BaseAgent, ReasonerAgent, CriticAgent, SynthesizerAgent, MetaReasoningAgent } from './agents/index.js';
11
11
  export * from './types/index.js';
12
+ export * from './constants.js';
13
+ export * from './validation/index.js';
12
14
  export { generateId, generateUUID, generateShortId, clamp, clampConfidence, lerp, roundTo, extractWords, calculateJaccardSimilarity, calculateSimilarity, calculateCosineSimilarity, extractNGrams, calculateNGramSimilarity, calculateMean, calculateWeightedAverage, calculateMedian, calculateStandardDeviation, calculateVariance, findMin, findMax, normalizeValues, calculatePercentile, formatDuration, formatTimestamp, formatRelativeTime, deepClone, deepCloneWithDates, deepMerge, deepEqual, pick, omit, validateUUID, isNonEmptyString, isPositiveNumber, isInRange, isNonEmptyArray, isPlainObject, sanitizeString, truncateString, toCamelCase, toPascalCase, toSnakeCase, toKebabCase, escapeRegExp, unique, uniqueBy, groupBy, partition, shuffle, sample, chunk, flatten, deepFlatten, sleep, createTimeoutPromise, withTimeout, retry, debounce, throttle, tryCatch, tryCatchAsync, createError } from './utils/index.js';
13
15
  /**
14
16
  * Library version
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EACL,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,SAAS,EACT,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAG3B,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EACL,UAAU,EACV,YAAY,EACZ,eAAe,EACf,KAAK,EACL,eAAe,EACf,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,0BAA0B,EAC1B,mBAAmB,EACnB,yBAAyB,EACzB,aAAa,EACb,wBAAwB,EACxB,aAAa,EACb,wBAAwB,EACxB,eAAe,EACf,0BAA0B,EAC1B,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,EACZ,WAAW,EACX,WAAW,EACX,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,EACP,MAAM,EACN,KAAK,EACL,OAAO,EACP,WAAW,EACX,KAAK,EACL,oBAAoB,EACpB,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,eAAO,MAAM,OAAO,WAAW,CAAC;AAEhC;;GAEG;AACH,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EACL,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,SAAS,EACT,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAG3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AAGtC,OAAO,EACL,UAAU,EACV,YAAY,EACZ,eAAe,EACf,KAAK,EACL,eAAe,EACf,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,0BAA0B,EAC1B,mBAAmB,EACnB,yBAAyB,EACzB,aAAa,EACb,wBAAwB,EACxB,aAAa,EACb,wBAAwB,EACxB,eAAe,EACf,0BAA0B,EAC1B,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,EACZ,WAAW,EACX,WAAW,EACX,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,EACP,MAAM,EACN,KAAK,EACL,OAAO,EACP,WAAW,EACX,KAAK,EACL,oBAAoB,EACpB,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,eAAO,MAAM,OAAO,WAAW,CAAC;AAEhC;;GAEG;AACH,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -14,6 +14,8 @@ export { SwarmCoordinator, AgentRegistry, MessageBroker, TaskQueueManager, TaskA
14
14
  export { BaseAgent, ReasonerAgent, CriticAgent, SynthesizerAgent, MetaReasoningAgent } from './agents/index.js';
15
15
  // Export all types
16
16
  export * from './types/index.js';
17
+ export * from './constants.js';
18
+ export * from './validation/index.js';
17
19
  // Export utilities (avoiding Result conflict)
18
20
  export { generateId, generateUUID, generateShortId, clamp, clampConfidence, lerp, roundTo, extractWords, calculateJaccardSimilarity, calculateSimilarity, calculateCosineSimilarity, extractNGrams, calculateNGramSimilarity, calculateMean, calculateWeightedAverage, calculateMedian, calculateStandardDeviation, calculateVariance, findMin, findMax, normalizeValues, calculatePercentile, formatDuration, formatTimestamp, formatRelativeTime, deepClone, deepCloneWithDates, deepMerge, deepEqual, pick, omit, validateUUID, isNonEmptyString, isPositiveNumber, isInRange, isNonEmptyArray, isPlainObject, sanitizeString, truncateString, toCamelCase, toPascalCase, toSnakeCase, toKebabCase, escapeRegExp, unique, uniqueBy, groupBy, partition, shuffle, sample, chunk, flatten, deepFlatten, sleep, createTimeoutPromise, withTimeout, retry, debounce, throttle, tryCatch, tryCatchAsync, createError } from './utils/index.js';
19
21
  /**
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,oBAAoB;AACpB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,wCAAwC;AACxC,OAAO,EACL,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAElC,sCAAsC;AACtC,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAEhC,gBAAgB;AAChB,OAAO,EACL,SAAS,EACT,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAE3B,mBAAmB;AACnB,cAAc,kBAAkB,CAAC;AAEjC,8CAA8C;AAC9C,OAAO,EACL,UAAU,EACV,YAAY,EACZ,eAAe,EACf,KAAK,EACL,eAAe,EACf,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,0BAA0B,EAC1B,mBAAmB,EACnB,yBAAyB,EACzB,aAAa,EACb,wBAAwB,EACxB,aAAa,EACb,wBAAwB,EACxB,eAAe,EACf,0BAA0B,EAC1B,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,EACZ,WAAW,EACX,WAAW,EACX,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,EACP,MAAM,EACN,KAAK,EACL,OAAO,EACP,WAAW,EACX,KAAK,EACL,oBAAoB,EACpB,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAEhC;;GAEG;AACH,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,oBAAoB;AACpB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,wCAAwC;AACxC,OAAO,EACL,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAElC,sCAAsC;AACtC,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAEhC,gBAAgB;AAChB,OAAO,EACL,SAAS,EACT,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAE3B,mBAAmB;AACnB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AAEtC,8CAA8C;AAC9C,OAAO,EACL,UAAU,EACV,YAAY,EACZ,eAAe,EACf,KAAK,EACL,eAAe,EACf,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,0BAA0B,EAC1B,mBAAmB,EACnB,yBAAyB,EACzB,aAAa,EACb,wBAAwB,EACxB,aAAa,EACb,wBAAwB,EACxB,eAAe,EACf,0BAA0B,EAC1B,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,EACZ,WAAW,EACX,WAAW,EACX,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,EACP,MAAM,EACN,KAAK,EACL,OAAO,EACP,WAAW,EACX,KAAK,EACL,oBAAoB,EACpB,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAEhC;;GAEG;AACH,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
@@ -111,7 +111,7 @@ export class MCPServer {
111
111
  else {
112
112
  Logger.setLevel(1); // LogLevel.INFO
113
113
  }
114
- this.server = new Server({ name: 'mcp-sequential-thinking', version: '1.1.21' }, { capabilities: { tools: {} } });
114
+ this.server = new Server({ name: 'mcp-sequential-thinking', version: '1.1.24' }, { capabilities: { tools: {} } });
115
115
  this.sessionManager = new SessionManager(this.dataDir);
116
116
  this.swarmCoordinator = new SwarmCoordinator(this.dataDir);
117
117
  this.setupHandlers();