@gotza02/sequential-thinking 2026.3.1 → 2026.3.3
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/dist/lib.d.ts +1 -0
- package/dist/lib.js +3 -0
- package/dist/tools/thinking.js +7 -4
- package/package.json +1 -1
package/dist/lib.d.ts
CHANGED
package/dist/lib.js
CHANGED
package/dist/tools/thinking.js
CHANGED
|
@@ -79,9 +79,9 @@ If you have tried to fix the same problem 3 times and failed:
|
|
|
79
79
|
'analysis', 'planning', 'critique', 'execution', 'observation',
|
|
80
80
|
'hypothesis', 'reflexion', 'solution',
|
|
81
81
|
'generation', 'evaluation', 'selection'
|
|
82
|
-
])).describe("The structural role of this thought (see THOUGHT TYPES above)"),
|
|
83
|
-
thoughtNumber: z.number().int().min(1).describe("Current thought number (e.g., 1, 2, 3)"),
|
|
84
|
-
totalThoughts: z.number().int().min(1).describe("Estimated total thoughts needed (can be adjusted)"),
|
|
82
|
+
]).default('analysis')).describe("The structural role of this thought (see THOUGHT TYPES above)"),
|
|
83
|
+
thoughtNumber: z.number().int().min(1).optional().describe("Current thought number (e.g., 1, 2, 3)"),
|
|
84
|
+
totalThoughts: z.number().int().min(1).optional().describe("Estimated total thoughts needed (can be adjusted)"),
|
|
85
85
|
nextThoughtNeeded: z.boolean().optional().default(true).describe("True if more thinking/action is needed"),
|
|
86
86
|
// New Interleaved Fields
|
|
87
87
|
blockId: z.string().optional().describe("ID for the current topic block (e.g., 'auth-debug', 'api-research'). Keep same ID to stay in context."),
|
|
@@ -98,7 +98,10 @@ If you have tried to fix the same problem 3 times and failed:
|
|
|
98
98
|
options: z.array(z.string()).optional().describe("List of options for generation type"),
|
|
99
99
|
selectedOption: z.string().optional().describe("The option selected for selection type")
|
|
100
100
|
}, async (args) => {
|
|
101
|
-
const
|
|
101
|
+
const thoughtNumber = args.thoughtNumber ?? (thinkingServer.getHistoryLength() + 1);
|
|
102
|
+
const totalThoughts = args.totalThoughts ?? (thoughtNumber + 5);
|
|
103
|
+
const input = { ...args, thoughtNumber, totalThoughts };
|
|
104
|
+
const result = await thinkingServer.processThought(input);
|
|
102
105
|
return {
|
|
103
106
|
content: result.content,
|
|
104
107
|
isError: result.isError
|