gthinking 1.2.0 → 1.2.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/README.md +5 -0
- package/dist/engine.d.ts +15 -1
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +9 -11
- package/dist/engine.js.map +1 -1
- package/dist/llm-service.d.ts +1 -0
- package/dist/llm-service.d.ts.map +1 -1
- package/dist/llm-service.js +34 -16
- package/dist/llm-service.js.map +1 -1
- package/dist/types/analysis.d.ts +54 -0
- package/dist/types/analysis.d.ts.map +1 -0
- package/dist/types/analysis.js +3 -0
- package/dist/types/analysis.js.map +1 -0
- package/dist/types/core.d.ts +66 -0
- package/dist/types/core.d.ts.map +1 -0
- package/dist/types/core.js +61 -0
- package/dist/types/core.js.map +1 -0
- package/dist/types/creativity.d.ts +58 -0
- package/dist/types/creativity.d.ts.map +1 -0
- package/dist/types/creativity.js +3 -0
- package/dist/types/creativity.js.map +1 -0
- package/dist/types/engine.d.ts +55 -0
- package/dist/types/engine.d.ts.map +1 -0
- package/dist/types/engine.js +3 -0
- package/dist/types/engine.js.map +1 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +26 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/learning.d.ts +62 -0
- package/dist/types/learning.d.ts.map +1 -0
- package/dist/types/learning.js +3 -0
- package/dist/types/learning.js.map +1 -0
- package/dist/types/planning.d.ts +78 -0
- package/dist/types/planning.d.ts.map +1 -0
- package/dist/types/planning.js +3 -0
- package/dist/types/planning.js.map +1 -0
- package/dist/types/reasoning.d.ts +83 -0
- package/dist/types/reasoning.d.ts.map +1 -0
- package/dist/types/reasoning.js +13 -0
- package/dist/types/reasoning.js.map +1 -0
- package/dist/types/search.d.ts +56 -0
- package/dist/types/search.d.ts.map +1 -0
- package/dist/types/search.js +3 -0
- package/dist/types/search.js.map +1 -0
- package/dist/types/synthesis.d.ts +39 -0
- package/dist/types/synthesis.d.ts.map +1 -0
- package/dist/types/synthesis.js +3 -0
- package/dist/types/synthesis.js.map +1 -0
- package/dist/types.d.ts +1 -530
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +15 -70
- package/dist/types.js.map +1 -1
- package/engine.ts +22 -8
- package/llm-service.ts +39 -18
- package/package.json +1 -1
- package/types/analysis.ts +69 -0
- package/types/core.ts +90 -0
- package/types/creativity.ts +72 -0
- package/types/engine.ts +60 -0
- package/types/index.ts +9 -0
- package/types/learning.ts +69 -0
- package/types/planning.ts +85 -0
- package/types/reasoning.ts +92 -0
- package/types/search.ts +58 -0
- package/types/synthesis.ts +42 -0
- package/types.ts +1 -669
package/types/search.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { SourceType } from './core';
|
|
2
|
+
|
|
3
|
+
export interface SearchQuery {
|
|
4
|
+
id: string;
|
|
5
|
+
query: string;
|
|
6
|
+
sources: SourceType[];
|
|
7
|
+
filters: SearchFilters;
|
|
8
|
+
maxResults: number;
|
|
9
|
+
timeout: number;
|
|
10
|
+
timestamp: Date;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface SearchFilters {
|
|
14
|
+
dateRange?: { start: Date; end: Date };
|
|
15
|
+
domains?: string[];
|
|
16
|
+
excludeDomains?: string[];
|
|
17
|
+
language?: string;
|
|
18
|
+
contentType?: ('article' | 'video' | 'image' | 'pdf' | 'forum')[];
|
|
19
|
+
minCredibility?: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface SearchResult {
|
|
23
|
+
id: string;
|
|
24
|
+
title: string;
|
|
25
|
+
url: string;
|
|
26
|
+
snippet: string;
|
|
27
|
+
source: SourceType;
|
|
28
|
+
credibility: number;
|
|
29
|
+
relevance: number;
|
|
30
|
+
timestamp: Date;
|
|
31
|
+
metadata: ResultMetadata;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface ResultMetadata {
|
|
35
|
+
author?: string;
|
|
36
|
+
publishDate?: Date;
|
|
37
|
+
wordCount?: number;
|
|
38
|
+
readingTime?: number;
|
|
39
|
+
relatedTopics?: string[];
|
|
40
|
+
citations?: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface SearchSession {
|
|
44
|
+
id: string;
|
|
45
|
+
queries: SearchQuery[];
|
|
46
|
+
results: SearchResult[];
|
|
47
|
+
aggregatedResults: AggregatedResult[];
|
|
48
|
+
startTime: Date;
|
|
49
|
+
endTime?: Date;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface AggregatedResult {
|
|
53
|
+
topic: string;
|
|
54
|
+
results: SearchResult[];
|
|
55
|
+
consensusScore: number;
|
|
56
|
+
conflictingInfo: boolean;
|
|
57
|
+
keyInsights: string[];
|
|
58
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Priority } from './core';
|
|
2
|
+
|
|
3
|
+
export interface SynthesisResult {
|
|
4
|
+
id: string;
|
|
5
|
+
sources: string[];
|
|
6
|
+
summary: string;
|
|
7
|
+
keyInsights: string[];
|
|
8
|
+
recommendations: Recommendation[];
|
|
9
|
+
confidence: number;
|
|
10
|
+
gaps: string[];
|
|
11
|
+
uncertainties: string[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface Recommendation {
|
|
15
|
+
id: string;
|
|
16
|
+
action: string;
|
|
17
|
+
rationale: string;
|
|
18
|
+
priority: Priority;
|
|
19
|
+
expectedOutcome: string;
|
|
20
|
+
risks: string[];
|
|
21
|
+
confidence: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface EvaluationResult {
|
|
25
|
+
id: string;
|
|
26
|
+
target: string;
|
|
27
|
+
criteria: EvaluationCriteria[];
|
|
28
|
+
scores: Record<string, number>;
|
|
29
|
+
overallScore: number;
|
|
30
|
+
strengths: string[];
|
|
31
|
+
weaknesses: string[];
|
|
32
|
+
improvements: string[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface EvaluationCriteria {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
weight: number;
|
|
39
|
+
description: string;
|
|
40
|
+
minScore: number;
|
|
41
|
+
maxScore: number;
|
|
42
|
+
}
|