@gotza02/sequential-thinking 2026.3.3 → 2026.3.5
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.js +3 -3
- package/package.json +1 -1
package/dist/lib.js
CHANGED
|
@@ -445,13 +445,13 @@ ${typeof wrappedThought === 'string' && wrappedThought.startsWith('│') ? wrapp
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
// --- 📊 FEATURE 4: Meta-Cognition Score Check ---
|
|
448
|
-
if (this.confidenceScore < 50) {
|
|
448
|
+
if (this.confidenceScore < 50 && input.thoughtType !== 'reflexion' && input.thoughtType !== 'analysis') {
|
|
449
449
|
return {
|
|
450
450
|
content: [{
|
|
451
451
|
type: "text",
|
|
452
452
|
text: JSON.stringify({
|
|
453
453
|
status: "CRITICAL_STOP",
|
|
454
|
-
feedback: ["🚨 CONFIDENCE TOO LOW (<50). Please
|
|
454
|
+
feedback: ["🚨 CONFIDENCE TOO LOW (<50). Execution blocked. Please use 'reflexion' or 'analysis' to self-correct, or request human intervention."],
|
|
455
455
|
confidenceScore: this.confidenceScore
|
|
456
456
|
}, null, 2)
|
|
457
457
|
}],
|
|
@@ -619,7 +619,7 @@ ${typeof wrappedThought === 'string' && wrappedThought.startsWith('│') ? wrapp
|
|
|
619
619
|
if (input.thoughtType === 'observation') {
|
|
620
620
|
const isError = input.toolResult?.toLowerCase().includes('error');
|
|
621
621
|
if (isError)
|
|
622
|
-
this.confidenceScore -=
|
|
622
|
+
this.confidenceScore -= 10;
|
|
623
623
|
else
|
|
624
624
|
this.confidenceScore = Math.min(100, this.confidenceScore + 5);
|
|
625
625
|
}
|