gthinking 1.0.0
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/README.md +283 -0
- package/analysis.ts +986 -0
- package/creativity.ts +1002 -0
- package/dist/analysis.d.ts +52 -0
- package/dist/analysis.d.ts.map +1 -0
- package/dist/analysis.js +792 -0
- package/dist/analysis.js.map +1 -0
- package/dist/creativity.d.ts +80 -0
- package/dist/creativity.d.ts.map +1 -0
- package/dist/creativity.js +778 -0
- package/dist/creativity.js.map +1 -0
- package/dist/engine.d.ts +76 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +675 -0
- package/dist/engine.js.map +1 -0
- package/dist/examples.d.ts +7 -0
- package/dist/examples.d.ts.map +1 -0
- package/dist/examples.js +506 -0
- package/dist/examples.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +126 -0
- package/dist/index.js.map +1 -0
- package/dist/learning.d.ts +72 -0
- package/dist/learning.d.ts.map +1 -0
- package/dist/learning.js +615 -0
- package/dist/learning.js.map +1 -0
- package/dist/planning.d.ts +58 -0
- package/dist/planning.d.ts.map +1 -0
- package/dist/planning.js +824 -0
- package/dist/planning.js.map +1 -0
- package/dist/reasoning.d.ts +72 -0
- package/dist/reasoning.d.ts.map +1 -0
- package/dist/reasoning.js +792 -0
- package/dist/reasoning.js.map +1 -0
- package/dist/search-discovery.d.ts +73 -0
- package/dist/search-discovery.d.ts.map +1 -0
- package/dist/search-discovery.js +505 -0
- package/dist/search-discovery.js.map +1 -0
- package/dist/types.d.ts +535 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +77 -0
- package/dist/types.js.map +1 -0
- package/engine.ts +928 -0
- package/examples.ts +717 -0
- package/index.ts +106 -0
- package/learning.ts +779 -0
- package/package.json +51 -0
- package/planning.ts +1028 -0
- package/reasoning.ts +1019 -0
- package/search-discovery.ts +654 -0
- package/tsconfig.json +25 -0
- package/types.ts +674 -0
package/index.ts
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sequential Thinking System - Main Export
|
|
3
|
+
* A comprehensive intelligent thinking framework
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// ============================================================================
|
|
7
|
+
// CORE TYPES
|
|
8
|
+
// ============================================================================
|
|
9
|
+
|
|
10
|
+
export * from './types';
|
|
11
|
+
|
|
12
|
+
// ============================================================================
|
|
13
|
+
// ENGINES
|
|
14
|
+
// ============================================================================
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
SearchDiscoveryEngine,
|
|
18
|
+
searchEngine
|
|
19
|
+
} from './search-discovery';
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
AnalysisEngine,
|
|
23
|
+
analysisEngine
|
|
24
|
+
} from './analysis';
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
ReasoningEngine,
|
|
28
|
+
reasoningEngine
|
|
29
|
+
} from './reasoning';
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
LearningEngine,
|
|
33
|
+
learningEngine
|
|
34
|
+
} from './learning';
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
PlanningEngine,
|
|
38
|
+
planningEngine
|
|
39
|
+
} from './planning';
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
CreativityEngine,
|
|
43
|
+
creativityEngine
|
|
44
|
+
} from './creativity';
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
SequentialThinkingEngine,
|
|
48
|
+
thinkingEngine
|
|
49
|
+
} from './engine';
|
|
50
|
+
|
|
51
|
+
// ============================================================================
|
|
52
|
+
// CONVENIENCE EXPORTS
|
|
53
|
+
// ============================================================================
|
|
54
|
+
|
|
55
|
+
import { SequentialThinkingEngine } from './engine';
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Default thinking engine instance
|
|
59
|
+
*/
|
|
60
|
+
export default SequentialThinkingEngine;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Quick start function for simple queries
|
|
64
|
+
*/
|
|
65
|
+
export async function think(query: string): Promise<string> {
|
|
66
|
+
const { thinkingEngine } = await import('./engine');
|
|
67
|
+
const response = await thinkingEngine.think({
|
|
68
|
+
id: `quick_${Date.now()}`,
|
|
69
|
+
query
|
|
70
|
+
});
|
|
71
|
+
return response.finalAnswer;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Deep analysis function
|
|
76
|
+
*/
|
|
77
|
+
export async function analyze(query: string, context?: string): Promise<string> {
|
|
78
|
+
const { thinkingEngine } = await import('./engine');
|
|
79
|
+
const response = await thinkingEngine.deepAnalysis(query, context);
|
|
80
|
+
return response.finalAnswer;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Creative problem solving function
|
|
85
|
+
*/
|
|
86
|
+
export async function solveCreatively(problem: string): Promise<string> {
|
|
87
|
+
const { thinkingEngine } = await import('./engine');
|
|
88
|
+
const response = await thinkingEngine.creativeSolve(problem);
|
|
89
|
+
return response.finalAnswer;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Search function
|
|
94
|
+
*/
|
|
95
|
+
export async function search(query: string) {
|
|
96
|
+
const { searchEngine } = await import('./search-discovery');
|
|
97
|
+
return searchEngine.search(query);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Create plan function
|
|
102
|
+
*/
|
|
103
|
+
export async function createPlan(goal: string) {
|
|
104
|
+
const { thinkingEngine } = await import('./engine');
|
|
105
|
+
return thinkingEngine.createPlan(goal);
|
|
106
|
+
}
|