@nahisaho/katashiro-analyzer 0.2.2 → 0.2.4

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.
Files changed (153) hide show
  1. package/dist/factcheck/ClaimParser.d.ts +41 -0
  2. package/dist/factcheck/ClaimParser.d.ts.map +1 -0
  3. package/dist/factcheck/ClaimParser.js +149 -0
  4. package/dist/factcheck/ClaimParser.js.map +1 -0
  5. package/dist/factcheck/ConsistencyChecker.d.ts +56 -0
  6. package/dist/factcheck/ConsistencyChecker.d.ts.map +1 -0
  7. package/dist/factcheck/ConsistencyChecker.js +184 -0
  8. package/dist/factcheck/ConsistencyChecker.js.map +1 -0
  9. package/dist/factcheck/EvidenceCollector.d.ts +89 -0
  10. package/dist/factcheck/EvidenceCollector.d.ts.map +1 -0
  11. package/dist/factcheck/EvidenceCollector.js +222 -0
  12. package/dist/factcheck/EvidenceCollector.js.map +1 -0
  13. package/dist/factcheck/FactChecker.d.ts +81 -0
  14. package/dist/factcheck/FactChecker.d.ts.map +1 -0
  15. package/dist/factcheck/FactChecker.js +302 -0
  16. package/dist/factcheck/FactChecker.js.map +1 -0
  17. package/dist/factcheck/TrustedSourceRegistry.d.ts +47 -0
  18. package/dist/factcheck/TrustedSourceRegistry.d.ts.map +1 -0
  19. package/dist/factcheck/TrustedSourceRegistry.js +208 -0
  20. package/dist/factcheck/TrustedSourceRegistry.js.map +1 -0
  21. package/dist/factcheck/VerdictGenerator.d.ts +36 -0
  22. package/dist/factcheck/VerdictGenerator.d.ts.map +1 -0
  23. package/dist/factcheck/VerdictGenerator.js +154 -0
  24. package/dist/factcheck/VerdictGenerator.js.map +1 -0
  25. package/dist/factcheck/index.d.ts +15 -0
  26. package/dist/factcheck/index.d.ts.map +1 -0
  27. package/dist/factcheck/index.js +14 -0
  28. package/dist/factcheck/index.js.map +1 -0
  29. package/dist/factcheck/types.d.ts +265 -0
  30. package/dist/factcheck/types.d.ts.map +1 -0
  31. package/dist/factcheck/types.js +18 -0
  32. package/dist/factcheck/types.js.map +1 -0
  33. package/dist/index.d.ts +5 -0
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +10 -0
  36. package/dist/index.js.map +1 -1
  37. package/dist/interpreter/CodeInterpreter.d.ts +119 -0
  38. package/dist/interpreter/CodeInterpreter.d.ts.map +1 -0
  39. package/dist/interpreter/CodeInterpreter.js +241 -0
  40. package/dist/interpreter/CodeInterpreter.js.map +1 -0
  41. package/dist/interpreter/CodeValidator.d.ts +57 -0
  42. package/dist/interpreter/CodeValidator.d.ts.map +1 -0
  43. package/dist/interpreter/CodeValidator.js +283 -0
  44. package/dist/interpreter/CodeValidator.js.map +1 -0
  45. package/dist/interpreter/ExecutionEngine.d.ts +73 -0
  46. package/dist/interpreter/ExecutionEngine.d.ts.map +1 -0
  47. package/dist/interpreter/ExecutionEngine.js +273 -0
  48. package/dist/interpreter/ExecutionEngine.js.map +1 -0
  49. package/dist/interpreter/ResultFormatter.d.ts +72 -0
  50. package/dist/interpreter/ResultFormatter.d.ts.map +1 -0
  51. package/dist/interpreter/ResultFormatter.js +187 -0
  52. package/dist/interpreter/ResultFormatter.js.map +1 -0
  53. package/dist/interpreter/SandboxManager.d.ts +111 -0
  54. package/dist/interpreter/SandboxManager.d.ts.map +1 -0
  55. package/dist/interpreter/SandboxManager.js +215 -0
  56. package/dist/interpreter/SandboxManager.js.map +1 -0
  57. package/dist/interpreter/SessionManager.d.ts +101 -0
  58. package/dist/interpreter/SessionManager.d.ts.map +1 -0
  59. package/dist/interpreter/SessionManager.js +184 -0
  60. package/dist/interpreter/SessionManager.js.map +1 -0
  61. package/dist/interpreter/index.d.ts +13 -0
  62. package/dist/interpreter/index.d.ts.map +1 -0
  63. package/dist/interpreter/index.js +13 -0
  64. package/dist/interpreter/index.js.map +1 -0
  65. package/dist/interpreter/types.d.ts +311 -0
  66. package/dist/interpreter/types.d.ts.map +1 -0
  67. package/dist/interpreter/types.js +91 -0
  68. package/dist/interpreter/types.js.map +1 -0
  69. package/dist/moa/AgentOrchestrator.d.ts +53 -0
  70. package/dist/moa/AgentOrchestrator.d.ts.map +1 -0
  71. package/dist/moa/AgentOrchestrator.js +164 -0
  72. package/dist/moa/AgentOrchestrator.js.map +1 -0
  73. package/dist/moa/ConsensusCalculator.d.ts +76 -0
  74. package/dist/moa/ConsensusCalculator.d.ts.map +1 -0
  75. package/dist/moa/ConsensusCalculator.js +221 -0
  76. package/dist/moa/ConsensusCalculator.js.map +1 -0
  77. package/dist/moa/MoAEngine.d.ts +97 -0
  78. package/dist/moa/MoAEngine.d.ts.map +1 -0
  79. package/dist/moa/MoAEngine.js +303 -0
  80. package/dist/moa/MoAEngine.js.map +1 -0
  81. package/dist/moa/ResponseAggregator.d.ts +65 -0
  82. package/dist/moa/ResponseAggregator.d.ts.map +1 -0
  83. package/dist/moa/ResponseAggregator.js +274 -0
  84. package/dist/moa/ResponseAggregator.js.map +1 -0
  85. package/dist/moa/TaskAnalyzer.d.ts +30 -0
  86. package/dist/moa/TaskAnalyzer.d.ts.map +1 -0
  87. package/dist/moa/TaskAnalyzer.js +116 -0
  88. package/dist/moa/TaskAnalyzer.js.map +1 -0
  89. package/dist/moa/index.d.ts +19 -0
  90. package/dist/moa/index.d.ts.map +1 -0
  91. package/dist/moa/index.js +18 -0
  92. package/dist/moa/index.js.map +1 -0
  93. package/dist/moa/types.d.ts +261 -0
  94. package/dist/moa/types.d.ts.map +1 -0
  95. package/dist/moa/types.js +70 -0
  96. package/dist/moa/types.js.map +1 -0
  97. package/dist/research/ConvergenceDetector.d.ts +37 -0
  98. package/dist/research/ConvergenceDetector.d.ts.map +1 -0
  99. package/dist/research/ConvergenceDetector.js +62 -0
  100. package/dist/research/ConvergenceDetector.js.map +1 -0
  101. package/dist/research/DeepResearchOrchestrator.d.ts +63 -0
  102. package/dist/research/DeepResearchOrchestrator.d.ts.map +1 -0
  103. package/dist/research/DeepResearchOrchestrator.js +283 -0
  104. package/dist/research/DeepResearchOrchestrator.js.map +1 -0
  105. package/dist/research/FindingIntegrator.d.ts +42 -0
  106. package/dist/research/FindingIntegrator.d.ts.map +1 -0
  107. package/dist/research/FindingIntegrator.js +239 -0
  108. package/dist/research/FindingIntegrator.js.map +1 -0
  109. package/dist/research/GapAnalyzer.d.ts +41 -0
  110. package/dist/research/GapAnalyzer.d.ts.map +1 -0
  111. package/dist/research/GapAnalyzer.js +145 -0
  112. package/dist/research/GapAnalyzer.js.map +1 -0
  113. package/dist/research/QueryGenerator.d.ts +38 -0
  114. package/dist/research/QueryGenerator.d.ts.map +1 -0
  115. package/dist/research/QueryGenerator.js +79 -0
  116. package/dist/research/QueryGenerator.js.map +1 -0
  117. package/dist/research/index.d.ts +14 -0
  118. package/dist/research/index.d.ts.map +1 -0
  119. package/dist/research/index.js +13 -0
  120. package/dist/research/index.js.map +1 -0
  121. package/dist/research/types.d.ts +215 -0
  122. package/dist/research/types.d.ts.map +1 -0
  123. package/dist/research/types.js +18 -0
  124. package/dist/research/types.js.map +1 -0
  125. package/dist/trend/ForecastEngine.d.ts +65 -0
  126. package/dist/trend/ForecastEngine.d.ts.map +1 -0
  127. package/dist/trend/ForecastEngine.js +260 -0
  128. package/dist/trend/ForecastEngine.js.map +1 -0
  129. package/dist/trend/TimeSeriesCollector.d.ts +42 -0
  130. package/dist/trend/TimeSeriesCollector.d.ts.map +1 -0
  131. package/dist/trend/TimeSeriesCollector.js +172 -0
  132. package/dist/trend/TimeSeriesCollector.js.map +1 -0
  133. package/dist/trend/TrendAnalyzer.d.ts +72 -0
  134. package/dist/trend/TrendAnalyzer.d.ts.map +1 -0
  135. package/dist/trend/TrendAnalyzer.js +291 -0
  136. package/dist/trend/TrendAnalyzer.js.map +1 -0
  137. package/dist/trend/TrendDetector.d.ts +67 -0
  138. package/dist/trend/TrendDetector.d.ts.map +1 -0
  139. package/dist/trend/TrendDetector.js +325 -0
  140. package/dist/trend/TrendDetector.js.map +1 -0
  141. package/dist/trend/VisualizationGenerator.d.ts +75 -0
  142. package/dist/trend/VisualizationGenerator.d.ts.map +1 -0
  143. package/dist/trend/VisualizationGenerator.js +294 -0
  144. package/dist/trend/VisualizationGenerator.js.map +1 -0
  145. package/dist/trend/index.d.ts +16 -0
  146. package/dist/trend/index.d.ts.map +1 -0
  147. package/dist/trend/index.js +18 -0
  148. package/dist/trend/index.js.map +1 -0
  149. package/dist/trend/types.d.ts +279 -0
  150. package/dist/trend/types.d.ts.map +1 -0
  151. package/dist/trend/types.js +17 -0
  152. package/dist/trend/types.js.map +1 -0
  153. package/package.json +4 -2
@@ -0,0 +1,265 @@
1
+ /**
2
+ * FactChecker 型定義
3
+ *
4
+ * @requirement REQ-ANALYZE-006
5
+ * @design DES-ANALYZE-006-FactChecker
6
+ */
7
+ /**
8
+ * 検証ソースの種類
9
+ */
10
+ export type VerificationSourceType = 'trusted_news' | 'academic' | 'government' | 'factcheck_org' | 'statistics' | 'primary_source';
11
+ /**
12
+ * 判定ラベル
13
+ */
14
+ export type VerdictLabel = 'true' | 'mostly_true' | 'half_true' | 'mostly_false' | 'false' | 'unverifiable' | 'misleading' | 'outdated' | 'lacks_context';
15
+ /**
16
+ * エビデンスの関係性
17
+ */
18
+ export type EvidenceRelation = 'supports' | 'contradicts' | 'partially_supports' | 'neutral' | 'context';
19
+ /**
20
+ * 厳密さのレベル
21
+ */
22
+ export type StrictnessLevel = 'lenient' | 'moderate' | 'strict';
23
+ /**
24
+ * ファクトチェックリクエスト
25
+ */
26
+ export interface FactCheckRequest {
27
+ /** 検証対象の主張 */
28
+ readonly claim: string;
29
+ /** 主張の出典 */
30
+ readonly source?: string;
31
+ /** 主張がなされた日付 */
32
+ readonly claimDate?: Date;
33
+ /** 追加のコンテキスト */
34
+ readonly context?: string;
35
+ /** 使用する検証ソースの種類 */
36
+ readonly verificationSources?: VerificationSourceType[];
37
+ /** 厳密さレベル */
38
+ readonly strictnessLevel?: StrictnessLevel;
39
+ /** 必要な最小エビデンス数 */
40
+ readonly minEvidence?: number;
41
+ /** 言語 */
42
+ readonly language?: string;
43
+ }
44
+ /**
45
+ * 判定結果
46
+ */
47
+ export interface Verdict {
48
+ /** 判定ラベル */
49
+ readonly label: VerdictLabel;
50
+ /** スコア (-1 to 1) */
51
+ readonly score: number;
52
+ /** 判定理由 */
53
+ readonly rationale: string;
54
+ /** 注意事項 */
55
+ readonly caveats: string[];
56
+ }
57
+ /**
58
+ * エビデンス
59
+ */
60
+ export interface Evidence {
61
+ /** エビデンスID */
62
+ readonly id: string;
63
+ /** ソース名 */
64
+ readonly sourceName: string;
65
+ /** ソースURL */
66
+ readonly sourceUrl: string;
67
+ /** ソースの種類 */
68
+ readonly sourceType: VerificationSourceType;
69
+ /** 抜粋 */
70
+ readonly excerpt: string;
71
+ /** 主張との関係 */
72
+ readonly relation: EvidenceRelation;
73
+ /** 信頼性スコア (0-1) */
74
+ readonly credibilityScore: number;
75
+ /** 公開日 */
76
+ readonly publishedDate?: Date;
77
+ /** 取得日 */
78
+ readonly retrievedAt: Date;
79
+ }
80
+ /**
81
+ * 検証詳細
82
+ */
83
+ export interface VerificationDetails {
84
+ /** 調査したソースの数 */
85
+ readonly sourcesExamined: number;
86
+ /** 支持するエビデンスの数 */
87
+ readonly supportingEvidence: number;
88
+ /** 矛盾するエビデンスの数 */
89
+ readonly contradictingEvidence: number;
90
+ /** 一貫性スコア */
91
+ readonly consistencyScore: number;
92
+ /** 調査の制限事項 */
93
+ readonly limitations: string[];
94
+ }
95
+ /**
96
+ * 参考文献
97
+ */
98
+ export interface Reference {
99
+ /** 参照ID */
100
+ readonly id: string;
101
+ /** タイトル */
102
+ readonly title: string;
103
+ /** URL */
104
+ readonly url: string;
105
+ /** 著者 */
106
+ readonly author?: string;
107
+ /** 公開日 */
108
+ readonly publishedDate?: Date;
109
+ /** ソースの種類 */
110
+ readonly sourceType: VerificationSourceType;
111
+ }
112
+ /**
113
+ * 既存のファクトチェック結果
114
+ */
115
+ export interface ExistingFactCheck {
116
+ /** 組織名 */
117
+ readonly organization: string;
118
+ /** 判定 */
119
+ readonly verdict: string;
120
+ /** URL */
121
+ readonly url: string;
122
+ /** 日付 */
123
+ readonly date: Date;
124
+ }
125
+ /**
126
+ * メタデータ
127
+ */
128
+ export interface FactCheckMetadata {
129
+ /** チェック日時 */
130
+ readonly checkedAt: Date;
131
+ /** 処理時間(ms) */
132
+ readonly processingTimeMs: number;
133
+ /** 使用した検証ソース */
134
+ readonly verificationSourcesUsed: VerificationSourceType[];
135
+ /** バージョン */
136
+ readonly version: string;
137
+ }
138
+ /**
139
+ * ファクトチェック結果
140
+ */
141
+ export interface FactCheckResultDetail {
142
+ /** 元の主張 */
143
+ readonly claim: string;
144
+ /** 正規化された主張 */
145
+ readonly normalizedClaim: string;
146
+ /** 判定 */
147
+ readonly verdict: Verdict;
148
+ /** 確信度 (0-1) */
149
+ readonly confidenceScore: number;
150
+ /** エビデンス一覧 */
151
+ readonly evidence: Evidence[];
152
+ /** 検証詳細 */
153
+ readonly verificationDetails: VerificationDetails;
154
+ /** 要約 */
155
+ readonly summary: string;
156
+ /** 詳細説明 */
157
+ readonly explanation: string;
158
+ /** 参考文献 */
159
+ readonly references: Reference[];
160
+ /** 既存のファクトチェック結果 */
161
+ readonly existingFactChecks?: ExistingFactCheck[];
162
+ /** メタデータ */
163
+ readonly metadata: FactCheckMetadata;
164
+ }
165
+ /**
166
+ * クイックチェック結果
167
+ */
168
+ export interface QuickCheckResult {
169
+ /** 判定ラベル */
170
+ readonly verdict: VerdictLabel;
171
+ /** 確信度 */
172
+ readonly confidence: number;
173
+ /** 主要な理由 */
174
+ readonly reason: string;
175
+ /** 主要なソース */
176
+ readonly topSources: string[];
177
+ }
178
+ /**
179
+ * 抽出された主張
180
+ */
181
+ export interface ExtractedClaim {
182
+ /** 主張の原文 */
183
+ readonly original: string;
184
+ /** 正規化された主張 */
185
+ readonly normalized: string;
186
+ /** 主張に含まれるエンティティ */
187
+ readonly entities: string[];
188
+ /** 主張の種類 */
189
+ readonly type: ClaimType;
190
+ /** 検証可能性 */
191
+ readonly verifiability: 'high' | 'medium' | 'low';
192
+ /** コンテキスト */
193
+ readonly context?: string;
194
+ }
195
+ /**
196
+ * 主張の種類
197
+ */
198
+ export type ClaimType = 'factual' | 'statistical' | 'quote' | 'prediction' | 'opinion';
199
+ /**
200
+ * 主張の検証結果
201
+ */
202
+ export interface ClaimVerification {
203
+ /** 対象の主張 */
204
+ readonly claim: ExtractedClaim;
205
+ /** 検証されたか */
206
+ readonly verified: boolean | null;
207
+ /** エビデンス */
208
+ readonly evidence: Evidence[];
209
+ /** 追加の注記 */
210
+ readonly notes: string[];
211
+ }
212
+ /**
213
+ * 信頼できるソースの設定
214
+ */
215
+ export interface TrustedSourceConfig {
216
+ /** ソースの名前 */
217
+ readonly name: string;
218
+ /** ドメイン */
219
+ readonly domain: string;
220
+ /** ソースの種類 */
221
+ readonly sourceType: VerificationSourceType;
222
+ /** 基本信頼度スコア */
223
+ readonly baseCredibility: number;
224
+ /** 専門分野 */
225
+ readonly specialties?: string[];
226
+ /** 言語 */
227
+ readonly language?: string;
228
+ }
229
+ /**
230
+ * VerdictGenerator入力
231
+ */
232
+ export interface VerdictInput {
233
+ /** 主張の検証結果 */
234
+ readonly claimVerifications: ClaimVerification[];
235
+ /** 一貫性スコア */
236
+ readonly consistencyScore: number;
237
+ /** エビデンス数 */
238
+ readonly evidenceCount: number;
239
+ /** 厳密さレベル */
240
+ readonly strictnessLevel: StrictnessLevel;
241
+ /** 既存のファクトチェック結果 */
242
+ readonly existingFactChecks?: ExistingFactCheck[];
243
+ }
244
+ /**
245
+ * ファクトチェッカーの設定
246
+ */
247
+ export interface FactCheckerConfig {
248
+ /** デフォルトの厳密さレベル */
249
+ readonly defaultStrictnessLevel: StrictnessLevel;
250
+ /** デフォルトの最小エビデンス数 */
251
+ readonly defaultMinEvidence: number;
252
+ /** 検索タイムアウト(ms) */
253
+ readonly searchTimeoutMs: number;
254
+ /** 最大同時検索数 */
255
+ readonly maxConcurrentSearches: number;
256
+ /** 信頼できるソース一覧 */
257
+ readonly trustedSources: TrustedSourceConfig[];
258
+ /** 言語 */
259
+ readonly language: string;
260
+ }
261
+ /**
262
+ * デフォルトのファクトチェッカー設定
263
+ */
264
+ export declare const DEFAULT_FACTCHECKER_CONFIG: FactCheckerConfig;
265
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/factcheck/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC9B,cAAc,GACd,UAAU,GACV,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,gBAAgB,CAAC;AAErB;;GAEG;AACH,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,aAAa,GACb,WAAW,GACX,cAAc,GACd,OAAO,GACP,cAAc,GACd,YAAY,GACZ,UAAU,GACV,eAAe,CAAC;AAEpB;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,aAAa,GACb,oBAAoB,GACpB,SAAS,GACT,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,cAAc;IACd,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,YAAY;IACZ,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB;IAChB,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;IAC1B,gBAAgB;IAChB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB;IACnB,QAAQ,CAAC,mBAAmB,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACxD,aAAa;IACb,QAAQ,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;IAC3C,kBAAkB;IAClB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC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E,MAAM,CAAC;IACvC,iBAAiB;IACjB,QAAQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,CAAC;IAC/C,SAAS;IACT,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,iBAOxC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * FactChecker 型定義
3
+ *
4
+ * @requirement REQ-ANALYZE-006
5
+ * @design DES-ANALYZE-006-FactChecker
6
+ */
7
+ /**
8
+ * デフォルトのファクトチェッカー設定
9
+ */
10
+ export const DEFAULT_FACTCHECKER_CONFIG = {
11
+ defaultStrictnessLevel: 'moderate',
12
+ defaultMinEvidence: 3,
13
+ searchTimeoutMs: 30000,
14
+ maxConcurrentSearches: 5,
15
+ trustedSources: [],
16
+ language: 'en',
17
+ };
18
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/factcheck/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA4SH;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAsB;IAC3D,sBAAsB,EAAE,UAAU;IAClC,kBAAkB,EAAE,CAAC;IACrB,eAAe,EAAE,KAAK;IACtB,qBAAqB,EAAE,CAAC;IACxB,cAAc,EAAE,EAAE;IAClB,QAAQ,EAAE,IAAI;CACf,CAAC"}
package/dist/index.d.ts CHANGED
@@ -16,4 +16,9 @@ export { TopicModeler, type Topic, type TopicDistribution, type SimilarDocument,
16
16
  export { QualityScorer, type QualityDimension, type QualityScore, type QualityReport, } from './quality/index.js';
17
17
  export { FrameworkAnalyzer, type SWOTAnalysis, type SWOTItem, type CrossSWOTStrategy, type SWOTInput, type SWOTItemInput, type ThreeCAnalysis, type ThreeCElement, type ThreeCFactor, type ThreeCInput, type ThreeCFactorInput, type FourPAnalysis, type FourPElement, type FourPInput, type FourPElementInput, type FiveForcesAnalysis, type ForceAnalysis, type FiveForcesInput, type ForceInput, type ValueChainAnalysis, type ValueChainActivity, type CostItem, type ValueChainInput, type ActivityInput, type MECEAnalysis, type MECECategory, type LogicTree, type LogicTreeNode, type HypothesisFramework, type SubHypothesis, type ValidationStep, type IssueTree, type Issue, type PrioritizedIssue, } from './framework/index.js';
18
18
  export { MultiSourceComparator, type SourceForComparison, type ExtractedClaim, type ClaimComparison, type ComparisonResult, } from './comparator/index.js';
19
+ export { DeepResearchOrchestrator, GapAnalyzer, ConvergenceDetector, QueryGenerator, FindingIntegrator, type DeepResearchQuery, type DeepResearchResult, type ResearchProgress, type ResearchPhase, type SimpleKnowledgeGraph, type KeyFinding, type ImportanceLevel, type SourceReference, type IterationRecord, type KnowledgeGap, type GapType, type GapPriority, type UserGuidance, type IntegrationResult, type DeepResearchStatistics, type CompletionReason, } from './research/index.js';
20
+ export { TrendAnalyzer, TimeSeriesCollector, TrendDetector, ForecastEngine, VisualizationGenerator, DEFAULT_TREND_CONFIG, type TrendAnalysisQuery, type TrendAnalysisResult, type TrendAnalyzerConfig, type TrendAnalysisError, type TimeSeriesData, type CollectionQuery, type SampleDocument, type DetectedTrend, type TrendType, type TrendDetectorConfig, type TrendSummary, type ForecastData, type ForecastConfig, type ForecastMethod, type VisualizationData, type LineChartData, type HeatmapData, type PieChartData, type TopicComparison, type TrendMetadata, type TrendSource, type TimeGranularity, } from './trend/index.js';
21
+ export { FactChecker, ClaimParser, TrustedSourceRegistry, EvidenceCollector, ConsistencyChecker, VerdictGenerator, DEFAULT_FACTCHECKER_CONFIG, type FactCheckError, type FactCheckErrorCode, type SearchClient, type Scraper, type SearchResultItem, type ScrapedPage, type EvidenceCollectorConfig, type ConsistencyResult, type VerificationSourceType, type VerdictLabel, type EvidenceRelation, type StrictnessLevel, type FactCheckRequest, type Verdict, type Evidence, type VerificationDetails, type Reference, type ExistingFactCheck, type FactCheckMetadata, type FactCheckResultDetail, type QuickCheckResult, type ExtractedClaim as FactCheckExtractedClaim, type ClaimType, type ClaimVerification, type TrustedSourceConfig, type VerdictInput, type FactCheckerConfig, } from './factcheck/index.js';
22
+ export { MoAEngine, TaskAnalyzer, AgentOrchestrator, ResponseAggregator, ConsensusCalculator, AGENT_PRESETS, DEFAULT_MOA_CONFIG, type MoARequest, type MoAResult, type MoAConfig, type AgentConfig, type AgentType, type AgentParameters, type AgentResponse, type PeerScore, type TokenUsage, type AggregationStrategy, type AggregationDetails, type AgentContribution, type RoundResult, type MoAMetadata, type MoAEngineOptions, type LLMProvider, type TaskAnalysis, type AggregationResult, type ConsensusAnalysis, type ConsensusLevel, } from './moa/index.js';
23
+ export { CodeInterpreter, CodeValidator, SandboxManager, ExecutionEngine, ResultFormatter, SessionManager, DEFAULT_EXECUTION_CONFIG, BLOCKED_PYTHON_MODULES, ALLOWED_PYTHON_MODULES, INTERPRETER_ERROR_CODES, CodeInterpreterError, type SupportedLanguage, type ExecutionMode, type ErrorType, type SessionState, type InputFile, type OutputFile, type GeneratedImage, type ExecutionLog, type ExecutionError, type SecurityConstraints, type ExecutionMetadata, type ExecutionRequest, type ExecutionResult, type CodeAnalysis, type ValidationResult, type SessionHistoryEntry, type ExecutionSession, type SandboxConfig, type SandboxExecutionResult, type SandboxInstance, type ExecutionOptions, type FormatOptions, } from './interpreter/index.js';
19
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EACV,WAAW,EACX,YAAY,EACZ,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,UAAU,GACX,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EACV,OAAO,EACP,eAAe,EACf,UAAU,EACV,aAAa,EACb,SAAS,EACT,eAAe,EACf,WAAW,GACZ,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,iBAAiB,EACjB,KAA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Aa,EACb,kBAAkB,EAClB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,cAAc,GACpB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,eAAe,EACf,aAAa,EACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB,MAAM,wBAAwB,CAAC"}
package/dist/index.js CHANGED
@@ -17,4 +17,14 @@ export { QualityScorer, } from './quality/index.js';
17
17
  export { FrameworkAnalyzer, } from './framework/index.js';
18
18
  // Comparator (v0.2.0)
19
19
  export { MultiSourceComparator, } from './comparator/index.js';
20
+ // Deep Research (v0.2.3)
21
+ export { DeepResearchOrchestrator, GapAnalyzer, ConvergenceDetector, QueryGenerator, FindingIntegrator, } from './research/index.js';
22
+ // Trend Analysis (v0.2.3)
23
+ export { TrendAnalyzer, TimeSeriesCollector, TrendDetector, ForecastEngine, VisualizationGenerator, DEFAULT_TREND_CONFIG, } from './trend/index.js';
24
+ // Fact Checker (v0.2.3)
25
+ export { FactChecker, ClaimParser, TrustedSourceRegistry, EvidenceCollector, ConsistencyChecker, VerdictGenerator, DEFAULT_FACTCHECKER_CONFIG, } from './factcheck/index.js';
26
+ // MoA Engine (v0.2.3)
27
+ export { MoAEngine, TaskAnalyzer, AgentOrchestrator, ResponseAggregator, ConsensusCalculator, AGENT_PRESETS, DEFAULT_MOA_CONFIG, } from './moa/index.js';
28
+ // Code Interpreter (v0.2.3)
29
+ export { CodeInterpreter, CodeValidator, SandboxManager, ExecutionEngine, ResultFormatter, SessionManager, DEFAULT_EXECUTION_CONFIG, BLOCKED_PYTHON_MODULES, ALLOWED_PYTHON_MODULES, INTERPRETER_ERROR_CODES, CodeInterpreterError, } from './interpreter/index.js';
20
30
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAsBH,KAAK;AACL,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,iBAAiB,GAQlB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,eAAe,GAGhB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,gBAAgB,GAOjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,YAAY,GAKb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,aAAa,GAId,MAAM,oBAAoB,CAAC;AAE5B,kBAAkB;AAClB,OAAO,EACL,iBAAiB,GA2ClB,MAAM,sBAAsB,CAAC;AAE9B,sBAAsB;AACtB,OAAO,EACL,qBAAqB,GAKtB,MAAM,uBAAuB,CAAC"}
1
+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B,EACvB,oBAAoB,GAuBrB,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Code Interpreter
3
+ * メインオーケストレータークラス
4
+ * REQ-ANALYZE-009: コードインタープリタ機能
5
+ */
6
+ import { Result } from '@nahisaho/katashiro-core';
7
+ import { ExecutionRequest, ExecutionResult, ExecutionSession, SupportedLanguage, CodeAnalysis } from './types.js';
8
+ /**
9
+ * Code Interpreter
10
+ *
11
+ * サンドボックス環境でコードを安全に実行する。
12
+ * Python, JavaScript, TypeScript, Shell をサポート。
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * const interpreter = new CodeInterpreter();
17
+ *
18
+ * // Pythonコードの実行
19
+ * const result = await interpreter.execute({
20
+ * code: `
21
+ * numbers = [1, 2, 3, 4, 5]
22
+ * print(f"Sum: {sum(numbers)}")
23
+ * print(f"Average: {sum(numbers) / len(numbers)}")
24
+ * `,
25
+ * language: 'python',
26
+ * });
27
+ *
28
+ * if (isOk(result) && result.value.success) {
29
+ * console.log(result.value.stdout);
30
+ * // "Sum: 15"
31
+ * // "Average: 3.0"
32
+ * }
33
+ *
34
+ * // データ可視化
35
+ * const vizResult = await interpreter.execute({
36
+ * code: `
37
+ * import matplotlib.pyplot as plt
38
+ * import numpy as np
39
+ *
40
+ * x = np.linspace(0, 2 * np.pi, 100)
41
+ * plt.plot(x, np.sin(x))
42
+ * plt.savefig('sine_wave.png')
43
+ * `,
44
+ * language: 'python',
45
+ * });
46
+ *
47
+ * // 入力データを渡す
48
+ * const dataResult = await interpreter.execute({
49
+ * code: `
50
+ * import json
51
+ * data = json.loads(input_data)
52
+ * total = sum(item['price'] * item['quantity'] for item in data['items'])
53
+ * print(f"Total: ${total:.2f}")
54
+ * `,
55
+ * language: 'python',
56
+ * inputs: {
57
+ * input_data: JSON.stringify({
58
+ * items: [
59
+ * { name: 'Apple', price: 1.5, quantity: 3 },
60
+ * { name: 'Banana', price: 0.8, quantity: 5 },
61
+ * ],
62
+ * }),
63
+ * },
64
+ * });
65
+ * ```
66
+ */
67
+ export declare class CodeInterpreter {
68
+ private validator;
69
+ private sandboxManager;
70
+ private executionEngine;
71
+ private resultFormatter;
72
+ private sessionManager;
73
+ constructor();
74
+ /**
75
+ * コードを実行
76
+ */
77
+ execute(request: ExecutionRequest): Promise<Result<ExecutionResult, Error>>;
78
+ /**
79
+ * REPLセッションを開始
80
+ */
81
+ startSession(language: SupportedLanguage): Promise<Result<ExecutionSession, Error>>;
82
+ /**
83
+ * セッションでコードを実行
84
+ */
85
+ executeInSession(sessionId: string, code: string): Promise<Result<ExecutionResult, Error>>;
86
+ /**
87
+ * セッションを終了
88
+ */
89
+ endSession(sessionId: string): Promise<void>;
90
+ /**
91
+ * セッションを取得
92
+ */
93
+ getSession(sessionId: string): ExecutionSession | undefined;
94
+ /**
95
+ * アクティブなセッション一覧
96
+ */
97
+ listSessions(): ExecutionSession[];
98
+ /**
99
+ * コードを分析(実行せず)
100
+ */
101
+ analyze(code: string, language: SupportedLanguage): Promise<CodeAnalysis>;
102
+ /**
103
+ * コードを検証
104
+ */
105
+ validate(code: string, language: SupportedLanguage): {
106
+ valid: boolean;
107
+ errors: string[];
108
+ warnings: string[];
109
+ };
110
+ /**
111
+ * サポートされる言語
112
+ */
113
+ getSupportedLanguages(): SupportedLanguage[];
114
+ /**
115
+ * クリーンアップ
116
+ */
117
+ cleanup(): Promise<void>;
118
+ }
119
+ //# sourceMappingURL=CodeInterpreter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeInterpreter.d.ts","sourceRoot":"","sources":["../../src/interpreter/CodeInterpreter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAW,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EAIb,MAAM,YAAY,CAAC;AAOpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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