@gotza02/sequential-thinking 2026.3.6 → 2026.3.7
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 +6 -2
- package/package.json +1 -1
package/dist/lib.js
CHANGED
|
@@ -615,13 +615,17 @@ ${typeof wrappedThought === 'string' && wrappedThought.startsWith('│') ? wrapp
|
|
|
615
615
|
}
|
|
616
616
|
// --- 📊 Update Confidence Score ---
|
|
617
617
|
if (warnings.length > 0)
|
|
618
|
-
this.confidenceScore -= (
|
|
618
|
+
this.confidenceScore -= (5 * warnings.length);
|
|
619
619
|
if (input.thoughtType === 'observation') {
|
|
620
620
|
const isError = input.toolResult?.toLowerCase().includes('error');
|
|
621
621
|
if (isError)
|
|
622
622
|
this.confidenceScore -= 10;
|
|
623
623
|
else
|
|
624
|
-
this.confidenceScore = Math.min(100, this.confidenceScore +
|
|
624
|
+
this.confidenceScore = Math.min(100, this.confidenceScore + 10);
|
|
625
|
+
}
|
|
626
|
+
else if (input.thoughtType === 'solution' && warnings.length === 0) {
|
|
627
|
+
// Bonus for clean solution
|
|
628
|
+
this.confidenceScore = Math.min(100, this.confidenceScore + 20);
|
|
625
629
|
}
|
|
626
630
|
// C. Update State
|
|
627
631
|
this.addToMemory(input);
|