deepthinking-mcp 5.0.0 → 5.0.1
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/index.js +71 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -840,6 +840,47 @@ var init_recommendations = __esm({
|
|
|
840
840
|
*/
|
|
841
841
|
recommendModes(characteristics) {
|
|
842
842
|
const recommendations = [];
|
|
843
|
+
const isPhilosophical = characteristics.domain.toLowerCase().includes("metaphysics") || characteristics.domain.toLowerCase().includes("theology") || characteristics.domain.toLowerCase().includes("philosophy") || characteristics.domain.toLowerCase().includes("epistemology") || characteristics.domain.toLowerCase().includes("ethics");
|
|
844
|
+
if (characteristics.complexity === "high" && (characteristics.requiresExplanation || characteristics.hasAlternatives || isPhilosophical)) {
|
|
845
|
+
recommendations.push({
|
|
846
|
+
mode: "hybrid" /* HYBRID */,
|
|
847
|
+
score: 0.92,
|
|
848
|
+
reasoning: "Complex problem benefits from multi-modal synthesis combining inductive, deductive, and abductive reasoning",
|
|
849
|
+
strengths: ["Comprehensive analysis", "Combines empirical and logical approaches", "Maximum evidential strength", "Convergent validation"],
|
|
850
|
+
limitations: ["Time-intensive", "Requires understanding of multiple reasoning types"],
|
|
851
|
+
examples: ["Philosophical arguments", "Scientific theories", "Complex decision-making", "Metaphysical questions"]
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
if (!characteristics.requiresProof && (characteristics.requiresQuantification || characteristics.hasIncompleteInfo || isPhilosophical)) {
|
|
855
|
+
recommendations.push({
|
|
856
|
+
mode: "inductive" /* INDUCTIVE */,
|
|
857
|
+
score: isPhilosophical ? 0.85 : 0.8,
|
|
858
|
+
reasoning: "Problem requires pattern recognition and generalization from observations",
|
|
859
|
+
strengths: ["Empirical grounding", "Pattern detection", "Probabilistic reasoning", "Scientific discovery"],
|
|
860
|
+
limitations: ["Cannot prove with certainty", "Vulnerable to black swans", "Sample size dependent"],
|
|
861
|
+
examples: ["Scientific hypotheses", "Trend analysis", "Empirical arguments", "Data-driven insights"]
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
if (characteristics.requiresProof || isPhilosophical) {
|
|
865
|
+
recommendations.push({
|
|
866
|
+
mode: "deductive" /* DEDUCTIVE */,
|
|
867
|
+
score: characteristics.requiresProof ? 0.9 : 0.75,
|
|
868
|
+
reasoning: "Problem requires logical derivation from general principles to specific conclusions",
|
|
869
|
+
strengths: ["Logical validity", "Rigorous inference", "Exposes contradictions", "Formal reasoning"],
|
|
870
|
+
limitations: ["Soundness depends on premise truth", "Vulnerable to definitional disputes", "May not handle uncertainty well"],
|
|
871
|
+
examples: ["Logical proofs", "Mathematical theorems", "Philosophical arguments", "Formal verification"]
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
if (characteristics.requiresExplanation || isPhilosophical) {
|
|
875
|
+
recommendations.push({
|
|
876
|
+
mode: "abductive" /* ABDUCTIVE */,
|
|
877
|
+
score: isPhilosophical ? 0.9 : 0.87,
|
|
878
|
+
reasoning: "Problem requires finding best explanations through comparative hypothesis evaluation",
|
|
879
|
+
strengths: ["Hypothesis generation", "Comparative evaluation", "Explanatory power assessment", "Handles competing theories"],
|
|
880
|
+
limitations: ["May miss non-obvious explanations", "Explanatory power is subjective"],
|
|
881
|
+
examples: ["Scientific explanation", "Debugging", "Diagnosis", "Theory selection", "Metaphysical arguments"]
|
|
882
|
+
});
|
|
883
|
+
}
|
|
843
884
|
if (characteristics.timeDependent) {
|
|
844
885
|
recommendations.push({
|
|
845
886
|
mode: "temporal" /* TEMPORAL */,
|
|
@@ -860,26 +901,16 @@ var init_recommendations = __esm({
|
|
|
860
901
|
examples: ["Competitive analysis", "Auction design", "Negotiation"]
|
|
861
902
|
});
|
|
862
903
|
}
|
|
863
|
-
if (characteristics.hasIncompleteInfo && characteristics.uncertainty === "high") {
|
|
904
|
+
if (characteristics.hasIncompleteInfo && characteristics.uncertainty === "high" && !isPhilosophical) {
|
|
864
905
|
recommendations.push({
|
|
865
906
|
mode: "evidential" /* EVIDENTIAL */,
|
|
866
|
-
score: 0.
|
|
867
|
-
reasoning: "Problem has incomplete information and high uncertainty",
|
|
907
|
+
score: 0.82,
|
|
908
|
+
reasoning: "Problem has incomplete information and high uncertainty requiring Dempster-Shafer belief functions",
|
|
868
909
|
strengths: ["Handles ignorance", "Evidence combination", "Uncertainty intervals"],
|
|
869
|
-
limitations: ["Computational complexity", "Requires careful mass assignment"],
|
|
910
|
+
limitations: ["Computational complexity", "Requires careful mass assignment", "Better for sensor fusion than philosophical reasoning"],
|
|
870
911
|
examples: ["Sensor fusion", "Diagnostic reasoning", "Intelligence analysis"]
|
|
871
912
|
});
|
|
872
913
|
}
|
|
873
|
-
if (characteristics.requiresExplanation) {
|
|
874
|
-
recommendations.push({
|
|
875
|
-
mode: "abductive" /* ABDUCTIVE */,
|
|
876
|
-
score: 0.87,
|
|
877
|
-
reasoning: "Problem requires finding best explanations",
|
|
878
|
-
strengths: ["Hypothesis generation", "Root cause analysis", "Explanation quality"],
|
|
879
|
-
limitations: ["May miss non-obvious explanations"],
|
|
880
|
-
examples: ["Debugging", "Diagnosis", "Scientific discovery"]
|
|
881
|
-
});
|
|
882
|
-
}
|
|
883
914
|
if (characteristics.timeDependent && characteristics.requiresExplanation) {
|
|
884
915
|
recommendations.push({
|
|
885
916
|
mode: "causal" /* CAUSAL */,
|
|
@@ -967,6 +998,16 @@ var init_recommendations = __esm({
|
|
|
967
998
|
*/
|
|
968
999
|
recommendCombinations(characteristics) {
|
|
969
1000
|
const combinations = [];
|
|
1001
|
+
const isPhilosophical = characteristics.domain.toLowerCase().includes("metaphysics") || characteristics.domain.toLowerCase().includes("theology") || characteristics.domain.toLowerCase().includes("philosophy") || characteristics.domain.toLowerCase().includes("epistemology") || characteristics.domain.toLowerCase().includes("ethics");
|
|
1002
|
+
if (isPhilosophical || characteristics.complexity === "high" && characteristics.requiresExplanation && characteristics.hasAlternatives) {
|
|
1003
|
+
combinations.push({
|
|
1004
|
+
modes: ["inductive" /* INDUCTIVE */, "deductive" /* DEDUCTIVE */, "abductive" /* ABDUCTIVE */],
|
|
1005
|
+
sequence: "hybrid",
|
|
1006
|
+
rationale: "Synthesize empirical patterns, logical derivations, and explanatory hypotheses for maximum evidential strength",
|
|
1007
|
+
benefits: ["Convergent validation from three independent methods", "Empirical grounding + logical rigor + explanatory power", "Highest achievable confidence through multi-modal synthesis", "Exposes both empirical patterns and logical contradictions"],
|
|
1008
|
+
synergies: ["Inductive patterns inform abductive hypotheses", "Deductive logic tests hypothesis validity", "Abductive explanations guide inductive search", "All three methods converge on same conclusion"]
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
970
1011
|
if (characteristics.timeDependent && characteristics.requiresExplanation) {
|
|
971
1012
|
combinations.push({
|
|
972
1013
|
modes: ["temporal" /* TEMPORAL */, "causal" /* CAUSAL */],
|
|
@@ -1012,15 +1053,6 @@ var init_recommendations = __esm({
|
|
|
1012
1053
|
synergies: ["Temporal events as game stages", "Strategies evolve over timeline"]
|
|
1013
1054
|
});
|
|
1014
1055
|
}
|
|
1015
|
-
if (characteristics.requiresExplanation && characteristics.complexity === "high") {
|
|
1016
|
-
combinations.push({
|
|
1017
|
-
modes: ["analogical" /* ANALOGICAL */, "abductive" /* ABDUCTIVE */],
|
|
1018
|
-
sequence: "parallel",
|
|
1019
|
-
rationale: "Use analogies to inspire hypotheses while systematically generating explanations",
|
|
1020
|
-
benefits: ["Creative hypothesis generation", "Cross-domain insights"],
|
|
1021
|
-
synergies: ["Analogies suggest hypotheses", "Hypotheses validated by analogical reasoning"]
|
|
1022
|
-
});
|
|
1023
|
-
}
|
|
1024
1056
|
if (characteristics.requiresProof && characteristics.complexity === "high") {
|
|
1025
1057
|
combinations.push({
|
|
1026
1058
|
modes: ["shannon" /* SHANNON */, "mathematics" /* MATHEMATICS */],
|
|
@@ -1038,8 +1070,23 @@ var init_recommendations = __esm({
|
|
|
1038
1070
|
*/
|
|
1039
1071
|
quickRecommend(problemType) {
|
|
1040
1072
|
const typeMap = {
|
|
1073
|
+
// Core reasoning modes
|
|
1074
|
+
"explanation": "abductive" /* ABDUCTIVE */,
|
|
1075
|
+
"hypothesis": "abductive" /* ABDUCTIVE */,
|
|
1076
|
+
"inference": "abductive" /* ABDUCTIVE */,
|
|
1077
|
+
"pattern": "inductive" /* INDUCTIVE */,
|
|
1078
|
+
"generalization": "inductive" /* INDUCTIVE */,
|
|
1079
|
+
"empirical": "inductive" /* INDUCTIVE */,
|
|
1080
|
+
"logic": "deductive" /* DEDUCTIVE */,
|
|
1081
|
+
"proof": "deductive" /* DEDUCTIVE */,
|
|
1082
|
+
"derivation": "deductive" /* DEDUCTIVE */,
|
|
1083
|
+
"complex": "hybrid" /* HYBRID */,
|
|
1084
|
+
"synthesis": "hybrid" /* HYBRID */,
|
|
1085
|
+
"philosophical": "hybrid" /* HYBRID */,
|
|
1086
|
+
"metaphysical": "hybrid" /* HYBRID */,
|
|
1087
|
+
// Specialized modes
|
|
1041
1088
|
"debugging": "abductive" /* ABDUCTIVE */,
|
|
1042
|
-
"
|
|
1089
|
+
"mathematical": "mathematics" /* MATHEMATICS */,
|
|
1043
1090
|
"timeline": "temporal" /* TEMPORAL */,
|
|
1044
1091
|
"strategy": "gametheory" /* GAMETHEORY */,
|
|
1045
1092
|
"uncertainty": "evidential" /* EVIDENTIAL */,
|