cccmemory 1.8.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/LICENSE +21 -0
- package/README.md +349 -0
- package/dist/ConversationMemory.d.ts +231 -0
- package/dist/ConversationMemory.d.ts.map +1 -0
- package/dist/ConversationMemory.js +357 -0
- package/dist/ConversationMemory.js.map +1 -0
- package/dist/cache/QueryCache.d.ts +215 -0
- package/dist/cache/QueryCache.d.ts.map +1 -0
- package/dist/cache/QueryCache.js +294 -0
- package/dist/cache/QueryCache.js.map +1 -0
- package/dist/cli/commands.d.ts +9 -0
- package/dist/cli/commands.d.ts.map +1 -0
- package/dist/cli/commands.js +954 -0
- package/dist/cli/commands.js.map +1 -0
- package/dist/cli/help.d.ts +16 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/help.js +361 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/index.d.ts +30 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +111 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/context/ContextInjector.d.ts +38 -0
- package/dist/context/ContextInjector.d.ts.map +1 -0
- package/dist/context/ContextInjector.js +235 -0
- package/dist/context/ContextInjector.js.map +1 -0
- package/dist/documentation/CodeAnalyzer.d.ts +29 -0
- package/dist/documentation/CodeAnalyzer.d.ts.map +1 -0
- package/dist/documentation/CodeAnalyzer.js +122 -0
- package/dist/documentation/CodeAnalyzer.js.map +1 -0
- package/dist/documentation/ConversationAnalyzer.d.ts +19 -0
- package/dist/documentation/ConversationAnalyzer.d.ts.map +1 -0
- package/dist/documentation/ConversationAnalyzer.js +157 -0
- package/dist/documentation/ConversationAnalyzer.js.map +1 -0
- package/dist/documentation/CrossReferencer.d.ts +67 -0
- package/dist/documentation/CrossReferencer.d.ts.map +1 -0
- package/dist/documentation/CrossReferencer.js +247 -0
- package/dist/documentation/CrossReferencer.js.map +1 -0
- package/dist/documentation/DocumentationGenerator.d.ts +22 -0
- package/dist/documentation/DocumentationGenerator.d.ts.map +1 -0
- package/dist/documentation/DocumentationGenerator.js +57 -0
- package/dist/documentation/DocumentationGenerator.js.map +1 -0
- package/dist/documentation/MarkdownFormatter.d.ts +26 -0
- package/dist/documentation/MarkdownFormatter.d.ts.map +1 -0
- package/dist/documentation/MarkdownFormatter.js +301 -0
- package/dist/documentation/MarkdownFormatter.js.map +1 -0
- package/dist/documentation/types.d.ts +176 -0
- package/dist/documentation/types.d.ts.map +1 -0
- package/dist/documentation/types.js +5 -0
- package/dist/documentation/types.js.map +1 -0
- package/dist/embeddings/ConfigManager.d.ts +46 -0
- package/dist/embeddings/ConfigManager.d.ts.map +1 -0
- package/dist/embeddings/ConfigManager.js +177 -0
- package/dist/embeddings/ConfigManager.js.map +1 -0
- package/dist/embeddings/EmbeddingConfig.d.ts +39 -0
- package/dist/embeddings/EmbeddingConfig.d.ts.map +1 -0
- package/dist/embeddings/EmbeddingConfig.js +132 -0
- package/dist/embeddings/EmbeddingConfig.js.map +1 -0
- package/dist/embeddings/EmbeddingGenerator.d.ts +51 -0
- package/dist/embeddings/EmbeddingGenerator.d.ts.map +1 -0
- package/dist/embeddings/EmbeddingGenerator.js +157 -0
- package/dist/embeddings/EmbeddingGenerator.js.map +1 -0
- package/dist/embeddings/EmbeddingProvider.d.ts +34 -0
- package/dist/embeddings/EmbeddingProvider.d.ts.map +1 -0
- package/dist/embeddings/EmbeddingProvider.js +6 -0
- package/dist/embeddings/EmbeddingProvider.js.map +1 -0
- package/dist/embeddings/ModelRegistry.d.ts +48 -0
- package/dist/embeddings/ModelRegistry.d.ts.map +1 -0
- package/dist/embeddings/ModelRegistry.js +170 -0
- package/dist/embeddings/ModelRegistry.js.map +1 -0
- package/dist/embeddings/VectorStore.d.ts +114 -0
- package/dist/embeddings/VectorStore.d.ts.map +1 -0
- package/dist/embeddings/VectorStore.js +393 -0
- package/dist/embeddings/VectorStore.js.map +1 -0
- package/dist/embeddings/providers/OllamaEmbeddings.d.ts +38 -0
- package/dist/embeddings/providers/OllamaEmbeddings.d.ts.map +1 -0
- package/dist/embeddings/providers/OllamaEmbeddings.js +125 -0
- package/dist/embeddings/providers/OllamaEmbeddings.js.map +1 -0
- package/dist/embeddings/providers/OpenAIEmbeddings.d.ts +40 -0
- package/dist/embeddings/providers/OpenAIEmbeddings.d.ts.map +1 -0
- package/dist/embeddings/providers/OpenAIEmbeddings.js +129 -0
- package/dist/embeddings/providers/OpenAIEmbeddings.js.map +1 -0
- package/dist/embeddings/providers/TransformersEmbeddings.d.ts +38 -0
- package/dist/embeddings/providers/TransformersEmbeddings.d.ts.map +1 -0
- package/dist/embeddings/providers/TransformersEmbeddings.js +115 -0
- package/dist/embeddings/providers/TransformersEmbeddings.js.map +1 -0
- package/dist/handoff/SessionHandoffStore.d.ts +80 -0
- package/dist/handoff/SessionHandoffStore.d.ts.map +1 -0
- package/dist/handoff/SessionHandoffStore.js +314 -0
- package/dist/handoff/SessionHandoffStore.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +115 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp-server.d.ts +27 -0
- package/dist/mcp-server.d.ts.map +1 -0
- package/dist/mcp-server.js +157 -0
- package/dist/mcp-server.js.map +1 -0
- package/dist/memory/WorkingMemoryStore.d.ts +83 -0
- package/dist/memory/WorkingMemoryStore.d.ts.map +1 -0
- package/dist/memory/WorkingMemoryStore.js +318 -0
- package/dist/memory/WorkingMemoryStore.js.map +1 -0
- package/dist/memory/types.d.ts +192 -0
- package/dist/memory/types.d.ts.map +1 -0
- package/dist/memory/types.js +8 -0
- package/dist/memory/types.js.map +1 -0
- package/dist/parsers/CodexConversationParser.d.ts +51 -0
- package/dist/parsers/CodexConversationParser.d.ts.map +1 -0
- package/dist/parsers/CodexConversationParser.js +301 -0
- package/dist/parsers/CodexConversationParser.js.map +1 -0
- package/dist/parsers/ConversationParser.d.ts +286 -0
- package/dist/parsers/ConversationParser.d.ts.map +1 -0
- package/dist/parsers/ConversationParser.js +795 -0
- package/dist/parsers/ConversationParser.js.map +1 -0
- package/dist/parsers/DecisionExtractor.d.ts +144 -0
- package/dist/parsers/DecisionExtractor.d.ts.map +1 -0
- package/dist/parsers/DecisionExtractor.js +434 -0
- package/dist/parsers/DecisionExtractor.js.map +1 -0
- package/dist/parsers/GitIntegrator.d.ts +156 -0
- package/dist/parsers/GitIntegrator.d.ts.map +1 -0
- package/dist/parsers/GitIntegrator.js +348 -0
- package/dist/parsers/GitIntegrator.js.map +1 -0
- package/dist/parsers/MistakeExtractor.d.ts +151 -0
- package/dist/parsers/MistakeExtractor.d.ts.map +1 -0
- package/dist/parsers/MistakeExtractor.js +460 -0
- package/dist/parsers/MistakeExtractor.js.map +1 -0
- package/dist/parsers/RequirementsExtractor.d.ts +166 -0
- package/dist/parsers/RequirementsExtractor.d.ts.map +1 -0
- package/dist/parsers/RequirementsExtractor.js +338 -0
- package/dist/parsers/RequirementsExtractor.js.map +1 -0
- package/dist/realtime/ConversationWatcher.d.ts +87 -0
- package/dist/realtime/ConversationWatcher.d.ts.map +1 -0
- package/dist/realtime/ConversationWatcher.js +204 -0
- package/dist/realtime/ConversationWatcher.js.map +1 -0
- package/dist/realtime/IncrementalParser.d.ts +83 -0
- package/dist/realtime/IncrementalParser.d.ts.map +1 -0
- package/dist/realtime/IncrementalParser.js +232 -0
- package/dist/realtime/IncrementalParser.js.map +1 -0
- package/dist/realtime/LiveExtractor.d.ts +72 -0
- package/dist/realtime/LiveExtractor.d.ts.map +1 -0
- package/dist/realtime/LiveExtractor.js +288 -0
- package/dist/realtime/LiveExtractor.js.map +1 -0
- package/dist/search/SemanticSearch.d.ts +121 -0
- package/dist/search/SemanticSearch.d.ts.map +1 -0
- package/dist/search/SemanticSearch.js +823 -0
- package/dist/search/SemanticSearch.js.map +1 -0
- package/dist/storage/BackupManager.d.ts +58 -0
- package/dist/storage/BackupManager.d.ts.map +1 -0
- package/dist/storage/BackupManager.js +223 -0
- package/dist/storage/BackupManager.js.map +1 -0
- package/dist/storage/ConversationStorage.d.ts +341 -0
- package/dist/storage/ConversationStorage.d.ts.map +1 -0
- package/dist/storage/ConversationStorage.js +792 -0
- package/dist/storage/ConversationStorage.js.map +1 -0
- package/dist/storage/DeletionService.d.ts +70 -0
- package/dist/storage/DeletionService.d.ts.map +1 -0
- package/dist/storage/DeletionService.js +253 -0
- package/dist/storage/DeletionService.js.map +1 -0
- package/dist/storage/GlobalIndex.d.ts +133 -0
- package/dist/storage/GlobalIndex.d.ts.map +1 -0
- package/dist/storage/GlobalIndex.js +310 -0
- package/dist/storage/GlobalIndex.js.map +1 -0
- package/dist/storage/SQLiteManager.d.ts +114 -0
- package/dist/storage/SQLiteManager.d.ts.map +1 -0
- package/dist/storage/SQLiteManager.js +636 -0
- package/dist/storage/SQLiteManager.js.map +1 -0
- package/dist/storage/migrations.d.ts +54 -0
- package/dist/storage/migrations.d.ts.map +1 -0
- package/dist/storage/migrations.js +285 -0
- package/dist/storage/migrations.js.map +1 -0
- package/dist/storage/schema.sql +436 -0
- package/dist/tools/ToolDefinitions.d.ts +946 -0
- package/dist/tools/ToolDefinitions.d.ts.map +1 -0
- package/dist/tools/ToolDefinitions.js +937 -0
- package/dist/tools/ToolDefinitions.js.map +1 -0
- package/dist/tools/ToolHandlers.d.ts +791 -0
- package/dist/tools/ToolHandlers.d.ts.map +1 -0
- package/dist/tools/ToolHandlers.js +3262 -0
- package/dist/tools/ToolHandlers.js.map +1 -0
- package/dist/types/ToolTypes.d.ts +824 -0
- package/dist/types/ToolTypes.d.ts.map +1 -0
- package/dist/types/ToolTypes.js +6 -0
- package/dist/types/ToolTypes.js.map +1 -0
- package/dist/utils/Logger.d.ts +70 -0
- package/dist/utils/Logger.d.ts.map +1 -0
- package/dist/utils/Logger.js +131 -0
- package/dist/utils/Logger.js.map +1 -0
- package/dist/utils/McpConfig.d.ts +54 -0
- package/dist/utils/McpConfig.d.ts.map +1 -0
- package/dist/utils/McpConfig.js +136 -0
- package/dist/utils/McpConfig.js.map +1 -0
- package/dist/utils/ProjectMigration.d.ts +82 -0
- package/dist/utils/ProjectMigration.d.ts.map +1 -0
- package/dist/utils/ProjectMigration.js +416 -0
- package/dist/utils/ProjectMigration.js.map +1 -0
- package/dist/utils/constants.d.ts +75 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +105 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/safeJson.d.ts +37 -0
- package/dist/utils/safeJson.d.ts.map +1 -0
- package/dist/utils/safeJson.js +48 -0
- package/dist/utils/safeJson.js.map +1 -0
- package/dist/utils/sanitization.d.ts +45 -0
- package/dist/utils/sanitization.d.ts.map +1 -0
- package/dist/utils/sanitization.js +153 -0
- package/dist/utils/sanitization.js.map +1 -0
- package/dist/utils/worktree.d.ts +15 -0
- package/dist/utils/worktree.d.ts.map +1 -0
- package/dist/utils/worktree.js +86 -0
- package/dist/utils/worktree.js.map +1 -0
- package/package.json +98 -0
- package/scripts/changelog-check.sh +62 -0
- package/scripts/check-node.js +17 -0
- package/scripts/dev-config.js +56 -0
- package/scripts/postinstall.js +117 -0
|
@@ -0,0 +1,824 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for MCP Tool arguments and responses
|
|
3
|
+
* Replaces 'any' types with proper interfaces for type safety
|
|
4
|
+
*/
|
|
5
|
+
export interface IndexConversationsArgs {
|
|
6
|
+
project_path?: string;
|
|
7
|
+
session_id?: string;
|
|
8
|
+
include_thinking?: boolean;
|
|
9
|
+
enable_git?: boolean;
|
|
10
|
+
exclude_mcp_conversations?: boolean | 'self-only' | 'all-mcp';
|
|
11
|
+
exclude_mcp_servers?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface SearchConversationsArgs {
|
|
14
|
+
query: string;
|
|
15
|
+
limit?: number;
|
|
16
|
+
offset?: number;
|
|
17
|
+
date_range?: [number, number];
|
|
18
|
+
scope?: 'current' | 'all' | 'global';
|
|
19
|
+
conversation_id?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GetDecisionsArgs {
|
|
22
|
+
query: string;
|
|
23
|
+
file_path?: string;
|
|
24
|
+
limit?: number;
|
|
25
|
+
offset?: number;
|
|
26
|
+
scope?: 'current' | 'all' | 'global';
|
|
27
|
+
conversation_id?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface CheckBeforeModifyArgs {
|
|
30
|
+
file_path: string;
|
|
31
|
+
}
|
|
32
|
+
export interface GetFileEvolutionArgs {
|
|
33
|
+
file_path: string;
|
|
34
|
+
include_decisions?: boolean;
|
|
35
|
+
include_commits?: boolean;
|
|
36
|
+
limit?: number;
|
|
37
|
+
offset?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface LinkCommitsToConversationsArgs {
|
|
40
|
+
query?: string;
|
|
41
|
+
conversation_id?: string;
|
|
42
|
+
limit?: number;
|
|
43
|
+
offset?: number;
|
|
44
|
+
scope?: 'current' | 'all' | 'global';
|
|
45
|
+
}
|
|
46
|
+
export interface SearchMistakesArgs {
|
|
47
|
+
query: string;
|
|
48
|
+
mistake_type?: string;
|
|
49
|
+
limit?: number;
|
|
50
|
+
offset?: number;
|
|
51
|
+
scope?: 'current' | 'all' | 'global';
|
|
52
|
+
conversation_id?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface GetRequirementsArgs {
|
|
55
|
+
component: string;
|
|
56
|
+
type?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface GetToolHistoryArgs {
|
|
59
|
+
tool_name?: string;
|
|
60
|
+
file_path?: string;
|
|
61
|
+
limit?: number;
|
|
62
|
+
offset?: number;
|
|
63
|
+
include_content?: boolean;
|
|
64
|
+
max_content_length?: number;
|
|
65
|
+
date_range?: [number, number];
|
|
66
|
+
conversation_id?: string;
|
|
67
|
+
errors_only?: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface FindSimilarSessionsArgs {
|
|
70
|
+
query: string;
|
|
71
|
+
limit?: number;
|
|
72
|
+
offset?: number;
|
|
73
|
+
scope?: 'current' | 'all' | 'global';
|
|
74
|
+
conversation_id?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface GenerateDocumentationArgs {
|
|
77
|
+
project_path?: string;
|
|
78
|
+
session_id?: string;
|
|
79
|
+
scope?: 'full' | 'architecture' | 'decisions' | 'quality';
|
|
80
|
+
module_filter?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface IndexConversationsResponse {
|
|
83
|
+
success: boolean;
|
|
84
|
+
project_path: string;
|
|
85
|
+
indexed_folders?: string[];
|
|
86
|
+
database_path?: string;
|
|
87
|
+
stats: {
|
|
88
|
+
conversations: {
|
|
89
|
+
count: number;
|
|
90
|
+
};
|
|
91
|
+
messages: {
|
|
92
|
+
count: number;
|
|
93
|
+
};
|
|
94
|
+
decisions: {
|
|
95
|
+
count: number;
|
|
96
|
+
};
|
|
97
|
+
mistakes: {
|
|
98
|
+
count: number;
|
|
99
|
+
};
|
|
100
|
+
git_commits: {
|
|
101
|
+
count: number;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
embeddings_generated?: boolean;
|
|
105
|
+
embedding_error?: string;
|
|
106
|
+
message: string;
|
|
107
|
+
}
|
|
108
|
+
export interface SearchResult {
|
|
109
|
+
conversation_id: string;
|
|
110
|
+
message_id: string;
|
|
111
|
+
timestamp: string;
|
|
112
|
+
similarity: number;
|
|
113
|
+
snippet: string;
|
|
114
|
+
git_branch?: string;
|
|
115
|
+
message_type: string;
|
|
116
|
+
role?: string;
|
|
117
|
+
}
|
|
118
|
+
export interface SearchConversationsResponse {
|
|
119
|
+
query: string;
|
|
120
|
+
results: SearchResult[];
|
|
121
|
+
total_found: number;
|
|
122
|
+
has_more: boolean;
|
|
123
|
+
offset: number;
|
|
124
|
+
scope: 'current' | 'all' | 'global';
|
|
125
|
+
}
|
|
126
|
+
export interface DecisionResult {
|
|
127
|
+
decision_id: string;
|
|
128
|
+
decision_text: string;
|
|
129
|
+
rationale?: string;
|
|
130
|
+
alternatives_considered: string[];
|
|
131
|
+
rejected_reasons: Record<string, string>;
|
|
132
|
+
context?: string;
|
|
133
|
+
related_files: string[];
|
|
134
|
+
related_commits: string[];
|
|
135
|
+
timestamp: string;
|
|
136
|
+
similarity: number;
|
|
137
|
+
}
|
|
138
|
+
export interface GetDecisionsResponse {
|
|
139
|
+
query: string;
|
|
140
|
+
file_path?: string;
|
|
141
|
+
decisions: DecisionResult[];
|
|
142
|
+
total_found: number;
|
|
143
|
+
has_more: boolean;
|
|
144
|
+
offset: number;
|
|
145
|
+
scope: 'current' | 'all' | 'global';
|
|
146
|
+
}
|
|
147
|
+
export interface EditInfo {
|
|
148
|
+
timestamp: string;
|
|
149
|
+
conversation_id: string;
|
|
150
|
+
}
|
|
151
|
+
export interface CommitInfo {
|
|
152
|
+
hash: string;
|
|
153
|
+
message: string;
|
|
154
|
+
timestamp: string;
|
|
155
|
+
}
|
|
156
|
+
export interface DecisionInfo {
|
|
157
|
+
decision_text: string;
|
|
158
|
+
rationale?: string;
|
|
159
|
+
timestamp: string;
|
|
160
|
+
}
|
|
161
|
+
export interface MistakeInfo {
|
|
162
|
+
what_went_wrong: string;
|
|
163
|
+
correction?: string;
|
|
164
|
+
mistake_type: string;
|
|
165
|
+
}
|
|
166
|
+
export interface CheckBeforeModifyResponse {
|
|
167
|
+
file_path: string;
|
|
168
|
+
warning: string;
|
|
169
|
+
recent_changes: {
|
|
170
|
+
edits: EditInfo[];
|
|
171
|
+
commits: CommitInfo[];
|
|
172
|
+
};
|
|
173
|
+
related_decisions: DecisionInfo[];
|
|
174
|
+
mistakes_to_avoid: MistakeInfo[];
|
|
175
|
+
}
|
|
176
|
+
export interface TimelineEvent {
|
|
177
|
+
type: 'edit' | 'commit' | 'decision';
|
|
178
|
+
timestamp: string;
|
|
179
|
+
data: Record<string, unknown>;
|
|
180
|
+
}
|
|
181
|
+
export interface GetFileEvolutionResponse {
|
|
182
|
+
file_path: string;
|
|
183
|
+
total_edits: number;
|
|
184
|
+
timeline: TimelineEvent[];
|
|
185
|
+
has_more: boolean;
|
|
186
|
+
}
|
|
187
|
+
export interface CommitResult {
|
|
188
|
+
hash: string;
|
|
189
|
+
full_hash: string;
|
|
190
|
+
message: string;
|
|
191
|
+
author?: string;
|
|
192
|
+
timestamp: string;
|
|
193
|
+
branch?: string;
|
|
194
|
+
files_changed: string[];
|
|
195
|
+
conversation_id?: string;
|
|
196
|
+
}
|
|
197
|
+
export interface LinkCommitsToConversationsResponse {
|
|
198
|
+
query?: string;
|
|
199
|
+
conversation_id?: string;
|
|
200
|
+
commits: CommitResult[];
|
|
201
|
+
total_found: number;
|
|
202
|
+
has_more: boolean;
|
|
203
|
+
offset: number;
|
|
204
|
+
scope: 'current' | 'all' | 'global';
|
|
205
|
+
}
|
|
206
|
+
export interface MistakeResult {
|
|
207
|
+
mistake_id: string;
|
|
208
|
+
mistake_type: string;
|
|
209
|
+
what_went_wrong: string;
|
|
210
|
+
correction?: string;
|
|
211
|
+
user_correction_message?: string;
|
|
212
|
+
files_affected: string[];
|
|
213
|
+
timestamp: string;
|
|
214
|
+
}
|
|
215
|
+
export interface SearchMistakesResponse {
|
|
216
|
+
query: string;
|
|
217
|
+
mistake_type?: string;
|
|
218
|
+
mistakes: MistakeResult[];
|
|
219
|
+
total_found: number;
|
|
220
|
+
has_more: boolean;
|
|
221
|
+
offset: number;
|
|
222
|
+
scope: 'current' | 'all' | 'global';
|
|
223
|
+
}
|
|
224
|
+
export interface RequirementResult {
|
|
225
|
+
requirement_id: string;
|
|
226
|
+
type: string;
|
|
227
|
+
description: string;
|
|
228
|
+
rationale?: string;
|
|
229
|
+
affects_components: string[];
|
|
230
|
+
timestamp: string;
|
|
231
|
+
}
|
|
232
|
+
export interface GetRequirementsResponse {
|
|
233
|
+
component: string;
|
|
234
|
+
type?: string;
|
|
235
|
+
requirements: RequirementResult[];
|
|
236
|
+
total_found: number;
|
|
237
|
+
}
|
|
238
|
+
export interface ToolUseResult {
|
|
239
|
+
tool_use_id: string;
|
|
240
|
+
tool_name: string;
|
|
241
|
+
tool_input: Record<string, unknown>;
|
|
242
|
+
result: {
|
|
243
|
+
content?: string;
|
|
244
|
+
is_error: boolean;
|
|
245
|
+
stdout?: string;
|
|
246
|
+
stderr?: string;
|
|
247
|
+
content_truncated?: boolean;
|
|
248
|
+
stdout_truncated?: boolean;
|
|
249
|
+
stderr_truncated?: boolean;
|
|
250
|
+
};
|
|
251
|
+
timestamp: string;
|
|
252
|
+
}
|
|
253
|
+
export interface GetToolHistoryResponse {
|
|
254
|
+
tool_name?: string;
|
|
255
|
+
file_path?: string;
|
|
256
|
+
tool_uses: ToolUseResult[];
|
|
257
|
+
total_found: number;
|
|
258
|
+
total_in_database: number;
|
|
259
|
+
has_more: boolean;
|
|
260
|
+
offset: number;
|
|
261
|
+
}
|
|
262
|
+
export interface RelevantMessage {
|
|
263
|
+
message_id: string;
|
|
264
|
+
snippet: string;
|
|
265
|
+
similarity: number;
|
|
266
|
+
}
|
|
267
|
+
export interface SessionResult {
|
|
268
|
+
conversation_id: string;
|
|
269
|
+
project_path: string;
|
|
270
|
+
first_message_at: string;
|
|
271
|
+
message_count: number;
|
|
272
|
+
git_branch?: string;
|
|
273
|
+
relevance_score: number;
|
|
274
|
+
relevant_messages: RelevantMessage[];
|
|
275
|
+
}
|
|
276
|
+
export interface FindSimilarSessionsResponse {
|
|
277
|
+
query: string;
|
|
278
|
+
sessions: SessionResult[];
|
|
279
|
+
total_found: number;
|
|
280
|
+
has_more: boolean;
|
|
281
|
+
offset: number;
|
|
282
|
+
scope: 'current' | 'all' | 'global';
|
|
283
|
+
}
|
|
284
|
+
export interface RecallAndApplyArgs {
|
|
285
|
+
query: string;
|
|
286
|
+
context_types?: Array<"conversations" | "decisions" | "mistakes" | "file_changes" | "commits">;
|
|
287
|
+
file_path?: string;
|
|
288
|
+
date_range?: [number, number];
|
|
289
|
+
limit?: number;
|
|
290
|
+
offset?: number;
|
|
291
|
+
scope?: 'current' | 'all' | 'global';
|
|
292
|
+
conversation_id?: string;
|
|
293
|
+
}
|
|
294
|
+
export interface RecalledContext {
|
|
295
|
+
conversations?: Array<{
|
|
296
|
+
session_id: string;
|
|
297
|
+
timestamp: string;
|
|
298
|
+
snippet: string;
|
|
299
|
+
relevance_score?: number;
|
|
300
|
+
}>;
|
|
301
|
+
decisions?: Array<{
|
|
302
|
+
decision_id: string;
|
|
303
|
+
type: string;
|
|
304
|
+
description: string;
|
|
305
|
+
rationale?: string;
|
|
306
|
+
alternatives?: string[];
|
|
307
|
+
rejected_approaches?: string[];
|
|
308
|
+
affects_components: string[];
|
|
309
|
+
timestamp: string;
|
|
310
|
+
}>;
|
|
311
|
+
mistakes?: Array<{
|
|
312
|
+
mistake_id: string;
|
|
313
|
+
type: string;
|
|
314
|
+
description: string;
|
|
315
|
+
what_happened: string;
|
|
316
|
+
how_fixed?: string;
|
|
317
|
+
lesson_learned?: string;
|
|
318
|
+
files_affected: string[];
|
|
319
|
+
timestamp: string;
|
|
320
|
+
}>;
|
|
321
|
+
file_changes?: Array<{
|
|
322
|
+
file_path: string;
|
|
323
|
+
change_count: number;
|
|
324
|
+
last_modified: string;
|
|
325
|
+
related_conversations: string[];
|
|
326
|
+
}>;
|
|
327
|
+
commits?: Array<{
|
|
328
|
+
commit_hash: string;
|
|
329
|
+
message: string;
|
|
330
|
+
timestamp: string;
|
|
331
|
+
files_affected: string[];
|
|
332
|
+
}>;
|
|
333
|
+
}
|
|
334
|
+
export interface RecallAndApplyResponse {
|
|
335
|
+
query: string;
|
|
336
|
+
context_summary: string;
|
|
337
|
+
recalled_context: RecalledContext;
|
|
338
|
+
application_suggestions: string[];
|
|
339
|
+
total_items_found: number;
|
|
340
|
+
}
|
|
341
|
+
export interface GenerateDocumentationResponse {
|
|
342
|
+
success: boolean;
|
|
343
|
+
project_path: string;
|
|
344
|
+
scope: string;
|
|
345
|
+
documentation: string;
|
|
346
|
+
statistics: {
|
|
347
|
+
modules: number;
|
|
348
|
+
decisions: number;
|
|
349
|
+
mistakes: number;
|
|
350
|
+
commits: number;
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
export interface ConversationRow {
|
|
354
|
+
id: string;
|
|
355
|
+
project_path: string;
|
|
356
|
+
first_message_at: number;
|
|
357
|
+
last_message_at: number;
|
|
358
|
+
message_count: number;
|
|
359
|
+
git_branch?: string;
|
|
360
|
+
claude_version?: string;
|
|
361
|
+
metadata: string;
|
|
362
|
+
created_at: number;
|
|
363
|
+
updated_at: number;
|
|
364
|
+
}
|
|
365
|
+
export interface MessageRow {
|
|
366
|
+
id: string;
|
|
367
|
+
conversation_id: string;
|
|
368
|
+
parent_id?: string;
|
|
369
|
+
message_type: string;
|
|
370
|
+
role?: string;
|
|
371
|
+
content?: string;
|
|
372
|
+
timestamp: number;
|
|
373
|
+
is_sidechain: number;
|
|
374
|
+
agent_id?: string;
|
|
375
|
+
request_id?: string;
|
|
376
|
+
git_branch?: string;
|
|
377
|
+
cwd?: string;
|
|
378
|
+
metadata: string;
|
|
379
|
+
}
|
|
380
|
+
export interface DecisionRow {
|
|
381
|
+
id: string;
|
|
382
|
+
conversation_id: string;
|
|
383
|
+
message_id: string;
|
|
384
|
+
decision_text: string;
|
|
385
|
+
rationale?: string;
|
|
386
|
+
alternatives_considered: string;
|
|
387
|
+
rejected_reasons: string;
|
|
388
|
+
context?: string;
|
|
389
|
+
related_files: string;
|
|
390
|
+
related_commits: string;
|
|
391
|
+
timestamp: number;
|
|
392
|
+
}
|
|
393
|
+
export interface MistakeRow {
|
|
394
|
+
id: string;
|
|
395
|
+
conversation_id: string;
|
|
396
|
+
message_id: string;
|
|
397
|
+
mistake_type: string;
|
|
398
|
+
what_went_wrong: string;
|
|
399
|
+
correction?: string;
|
|
400
|
+
user_correction_message?: string;
|
|
401
|
+
files_affected: string;
|
|
402
|
+
timestamp: number;
|
|
403
|
+
}
|
|
404
|
+
export interface GitCommitRow {
|
|
405
|
+
hash: string;
|
|
406
|
+
message: string;
|
|
407
|
+
author?: string;
|
|
408
|
+
timestamp: number;
|
|
409
|
+
branch?: string;
|
|
410
|
+
files_changed: string;
|
|
411
|
+
conversation_id?: string;
|
|
412
|
+
related_message_id?: string;
|
|
413
|
+
metadata: string;
|
|
414
|
+
}
|
|
415
|
+
export interface RequirementRow {
|
|
416
|
+
id: string;
|
|
417
|
+
type: string;
|
|
418
|
+
description: string;
|
|
419
|
+
rationale?: string;
|
|
420
|
+
affects_components: string;
|
|
421
|
+
conversation_id: string;
|
|
422
|
+
message_id: string;
|
|
423
|
+
timestamp: number;
|
|
424
|
+
}
|
|
425
|
+
export interface ToolUseRow {
|
|
426
|
+
id: string;
|
|
427
|
+
message_id: string;
|
|
428
|
+
tool_name: string;
|
|
429
|
+
tool_input: string;
|
|
430
|
+
timestamp: number;
|
|
431
|
+
result_content?: string;
|
|
432
|
+
is_error: number;
|
|
433
|
+
stdout?: string;
|
|
434
|
+
stderr?: string;
|
|
435
|
+
}
|
|
436
|
+
export interface DiscoverOldConversationsArgs {
|
|
437
|
+
current_project_path?: string;
|
|
438
|
+
}
|
|
439
|
+
export interface OldConversationCandidate {
|
|
440
|
+
folder_name: string;
|
|
441
|
+
folder_path: string;
|
|
442
|
+
stored_project_path: string | null;
|
|
443
|
+
score: number;
|
|
444
|
+
stats: {
|
|
445
|
+
conversations: number;
|
|
446
|
+
messages: number;
|
|
447
|
+
files: number;
|
|
448
|
+
last_activity: number | null;
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
export interface DiscoverOldConversationsResponse {
|
|
452
|
+
success: boolean;
|
|
453
|
+
current_project_path: string;
|
|
454
|
+
candidates: OldConversationCandidate[];
|
|
455
|
+
message: string;
|
|
456
|
+
}
|
|
457
|
+
export interface MigrateProjectArgs {
|
|
458
|
+
source_folder: string;
|
|
459
|
+
old_project_path: string;
|
|
460
|
+
new_project_path: string;
|
|
461
|
+
dry_run?: boolean;
|
|
462
|
+
mode?: "migrate" | "merge";
|
|
463
|
+
}
|
|
464
|
+
export interface MigrateProjectResponse {
|
|
465
|
+
success: boolean;
|
|
466
|
+
source_folder: string;
|
|
467
|
+
target_folder: string;
|
|
468
|
+
files_copied: number;
|
|
469
|
+
database_updated: boolean;
|
|
470
|
+
backup_created: boolean;
|
|
471
|
+
message: string;
|
|
472
|
+
}
|
|
473
|
+
export interface ForgetByTopicArgs {
|
|
474
|
+
keywords: string[];
|
|
475
|
+
project_path?: string;
|
|
476
|
+
confirm?: boolean;
|
|
477
|
+
}
|
|
478
|
+
export interface ForgetByTopicResponse {
|
|
479
|
+
success: boolean;
|
|
480
|
+
preview_mode: boolean;
|
|
481
|
+
conversations_found: number;
|
|
482
|
+
conversations_deleted: number;
|
|
483
|
+
messages_deleted: number;
|
|
484
|
+
decisions_deleted: number;
|
|
485
|
+
mistakes_deleted: number;
|
|
486
|
+
backup_path: string | null;
|
|
487
|
+
conversation_summaries: Array<{
|
|
488
|
+
id: string;
|
|
489
|
+
session_id: string;
|
|
490
|
+
created_at: string;
|
|
491
|
+
message_count: number;
|
|
492
|
+
}>;
|
|
493
|
+
message: string;
|
|
494
|
+
}
|
|
495
|
+
export interface SearchByFileArgs {
|
|
496
|
+
file_path: string;
|
|
497
|
+
limit?: number;
|
|
498
|
+
}
|
|
499
|
+
export interface SearchByFileResponse {
|
|
500
|
+
file_path: string;
|
|
501
|
+
discussions: Array<{
|
|
502
|
+
id: string;
|
|
503
|
+
conversation_id: string;
|
|
504
|
+
content: string;
|
|
505
|
+
timestamp: number;
|
|
506
|
+
role: string;
|
|
507
|
+
}>;
|
|
508
|
+
decisions: Array<{
|
|
509
|
+
id: string;
|
|
510
|
+
decision_text: string;
|
|
511
|
+
rationale?: string;
|
|
512
|
+
context?: string;
|
|
513
|
+
timestamp: number;
|
|
514
|
+
}>;
|
|
515
|
+
mistakes: Array<{
|
|
516
|
+
id: string;
|
|
517
|
+
mistake_type: string;
|
|
518
|
+
what_went_wrong: string;
|
|
519
|
+
correction?: string;
|
|
520
|
+
timestamp: number;
|
|
521
|
+
}>;
|
|
522
|
+
total_mentions: number;
|
|
523
|
+
message: string;
|
|
524
|
+
}
|
|
525
|
+
export interface ListRecentSessionsArgs {
|
|
526
|
+
limit?: number;
|
|
527
|
+
offset?: number;
|
|
528
|
+
project_path?: string;
|
|
529
|
+
}
|
|
530
|
+
export interface ListRecentSessionsResponse {
|
|
531
|
+
sessions: Array<{
|
|
532
|
+
id: string;
|
|
533
|
+
session_id: string;
|
|
534
|
+
project_path: string;
|
|
535
|
+
created_at: number;
|
|
536
|
+
message_count: number;
|
|
537
|
+
first_message_preview?: string;
|
|
538
|
+
}>;
|
|
539
|
+
total_sessions: number;
|
|
540
|
+
has_more: boolean;
|
|
541
|
+
message: string;
|
|
542
|
+
}
|
|
543
|
+
export interface IndexAllProjectsArgs {
|
|
544
|
+
include_codex?: boolean;
|
|
545
|
+
include_claude_code?: boolean;
|
|
546
|
+
codex_path?: string;
|
|
547
|
+
claude_projects_path?: string;
|
|
548
|
+
/** If true, only index files modified since last indexing */
|
|
549
|
+
incremental?: boolean;
|
|
550
|
+
}
|
|
551
|
+
export interface IndexAllProjectsResponse {
|
|
552
|
+
success: boolean;
|
|
553
|
+
global_index_path: string;
|
|
554
|
+
projects_indexed: number;
|
|
555
|
+
claude_code_projects: number;
|
|
556
|
+
codex_projects: number;
|
|
557
|
+
total_messages: number;
|
|
558
|
+
total_conversations: number;
|
|
559
|
+
total_decisions: number;
|
|
560
|
+
total_mistakes: number;
|
|
561
|
+
projects: Array<{
|
|
562
|
+
project_path: string;
|
|
563
|
+
source_type: 'claude-code' | 'codex';
|
|
564
|
+
message_count: number;
|
|
565
|
+
conversation_count: number;
|
|
566
|
+
}>;
|
|
567
|
+
errors: Array<{
|
|
568
|
+
project_path: string;
|
|
569
|
+
error: string;
|
|
570
|
+
}>;
|
|
571
|
+
message: string;
|
|
572
|
+
}
|
|
573
|
+
export interface SearchAllConversationsArgs {
|
|
574
|
+
query: string;
|
|
575
|
+
limit?: number;
|
|
576
|
+
offset?: number;
|
|
577
|
+
date_range?: [number, number];
|
|
578
|
+
source_type?: 'claude-code' | 'codex' | 'all';
|
|
579
|
+
}
|
|
580
|
+
export interface GlobalSearchResult extends SearchResult {
|
|
581
|
+
project_path: string;
|
|
582
|
+
source_type: 'claude-code' | 'codex';
|
|
583
|
+
}
|
|
584
|
+
export interface SearchAllConversationsResponse {
|
|
585
|
+
query: string;
|
|
586
|
+
results: GlobalSearchResult[];
|
|
587
|
+
total_found: number;
|
|
588
|
+
has_more: boolean;
|
|
589
|
+
offset: number;
|
|
590
|
+
projects_searched: number;
|
|
591
|
+
projects_succeeded?: number;
|
|
592
|
+
failed_projects?: string[];
|
|
593
|
+
search_stats: {
|
|
594
|
+
claude_code_results: number;
|
|
595
|
+
codex_results: number;
|
|
596
|
+
};
|
|
597
|
+
message: string;
|
|
598
|
+
}
|
|
599
|
+
export interface GetAllDecisionsArgs {
|
|
600
|
+
query: string;
|
|
601
|
+
file_path?: string;
|
|
602
|
+
limit?: number;
|
|
603
|
+
offset?: number;
|
|
604
|
+
source_type?: 'claude-code' | 'codex' | 'all';
|
|
605
|
+
}
|
|
606
|
+
export interface GlobalDecision extends DecisionResult {
|
|
607
|
+
project_path: string;
|
|
608
|
+
source_type: 'claude-code' | 'codex';
|
|
609
|
+
}
|
|
610
|
+
export interface GetAllDecisionsResponse {
|
|
611
|
+
query: string;
|
|
612
|
+
decisions: GlobalDecision[];
|
|
613
|
+
total_found: number;
|
|
614
|
+
has_more: boolean;
|
|
615
|
+
offset: number;
|
|
616
|
+
projects_searched: number;
|
|
617
|
+
message: string;
|
|
618
|
+
}
|
|
619
|
+
export interface SearchAllMistakesArgs {
|
|
620
|
+
query: string;
|
|
621
|
+
mistake_type?: string;
|
|
622
|
+
limit?: number;
|
|
623
|
+
offset?: number;
|
|
624
|
+
source_type?: 'claude-code' | 'codex' | 'all';
|
|
625
|
+
}
|
|
626
|
+
export interface GlobalMistake extends MistakeResult {
|
|
627
|
+
project_path: string;
|
|
628
|
+
source_type: 'claude-code' | 'codex';
|
|
629
|
+
}
|
|
630
|
+
export interface SearchAllMistakesResponse {
|
|
631
|
+
query: string;
|
|
632
|
+
mistakes: GlobalMistake[];
|
|
633
|
+
total_found: number;
|
|
634
|
+
has_more: boolean;
|
|
635
|
+
offset: number;
|
|
636
|
+
projects_searched: number;
|
|
637
|
+
message: string;
|
|
638
|
+
}
|
|
639
|
+
export interface MemoryItem {
|
|
640
|
+
id: string;
|
|
641
|
+
key: string;
|
|
642
|
+
value: string;
|
|
643
|
+
context?: string;
|
|
644
|
+
tags: string[];
|
|
645
|
+
created_at: string;
|
|
646
|
+
updated_at: string;
|
|
647
|
+
expires_at?: string;
|
|
648
|
+
}
|
|
649
|
+
export interface MemoryItemWithSimilarity extends MemoryItem {
|
|
650
|
+
similarity: number;
|
|
651
|
+
}
|
|
652
|
+
export interface RememberArgs {
|
|
653
|
+
key: string;
|
|
654
|
+
value: string;
|
|
655
|
+
context?: string;
|
|
656
|
+
tags?: string[];
|
|
657
|
+
ttl?: number;
|
|
658
|
+
project_path?: string;
|
|
659
|
+
}
|
|
660
|
+
export interface RememberResponse {
|
|
661
|
+
success: boolean;
|
|
662
|
+
item?: MemoryItem;
|
|
663
|
+
message: string;
|
|
664
|
+
}
|
|
665
|
+
export interface RecallArgs {
|
|
666
|
+
key: string;
|
|
667
|
+
project_path?: string;
|
|
668
|
+
}
|
|
669
|
+
export interface RecallResponse {
|
|
670
|
+
success: boolean;
|
|
671
|
+
found: boolean;
|
|
672
|
+
item?: MemoryItem;
|
|
673
|
+
message: string;
|
|
674
|
+
}
|
|
675
|
+
export interface RecallRelevantArgs {
|
|
676
|
+
query: string;
|
|
677
|
+
limit?: number;
|
|
678
|
+
project_path?: string;
|
|
679
|
+
}
|
|
680
|
+
export interface RecallRelevantResponse {
|
|
681
|
+
success: boolean;
|
|
682
|
+
items: MemoryItemWithSimilarity[];
|
|
683
|
+
total_found?: number;
|
|
684
|
+
message: string;
|
|
685
|
+
}
|
|
686
|
+
export interface ListMemoryArgs {
|
|
687
|
+
tags?: string[];
|
|
688
|
+
limit?: number;
|
|
689
|
+
offset?: number;
|
|
690
|
+
project_path?: string;
|
|
691
|
+
}
|
|
692
|
+
export interface ListMemoryResponse {
|
|
693
|
+
success: boolean;
|
|
694
|
+
items: MemoryItem[];
|
|
695
|
+
total_count: number;
|
|
696
|
+
has_more: boolean;
|
|
697
|
+
offset: number;
|
|
698
|
+
message: string;
|
|
699
|
+
}
|
|
700
|
+
export interface ForgetArgs {
|
|
701
|
+
key: string;
|
|
702
|
+
project_path?: string;
|
|
703
|
+
}
|
|
704
|
+
export interface ForgetResponse {
|
|
705
|
+
success: boolean;
|
|
706
|
+
message: string;
|
|
707
|
+
}
|
|
708
|
+
export interface PrepareHandoffArgs {
|
|
709
|
+
session_id?: string;
|
|
710
|
+
include?: Array<"decisions" | "files" | "tasks" | "memory">;
|
|
711
|
+
context_summary?: string;
|
|
712
|
+
project_path?: string;
|
|
713
|
+
}
|
|
714
|
+
export interface HandoffSummary {
|
|
715
|
+
id: string;
|
|
716
|
+
from_session_id: string;
|
|
717
|
+
project_path: string;
|
|
718
|
+
created_at: string;
|
|
719
|
+
summary: string;
|
|
720
|
+
decisions_count: number;
|
|
721
|
+
files_count: number;
|
|
722
|
+
tasks_count: number;
|
|
723
|
+
memory_count: number;
|
|
724
|
+
}
|
|
725
|
+
export interface HandoffDocument {
|
|
726
|
+
id: string;
|
|
727
|
+
from_session_id: string;
|
|
728
|
+
project_path: string;
|
|
729
|
+
created_at: string;
|
|
730
|
+
summary: string;
|
|
731
|
+
decisions: Array<{
|
|
732
|
+
text: string;
|
|
733
|
+
rationale?: string;
|
|
734
|
+
timestamp: string;
|
|
735
|
+
}>;
|
|
736
|
+
active_files: Array<{
|
|
737
|
+
path: string;
|
|
738
|
+
last_action: string;
|
|
739
|
+
}>;
|
|
740
|
+
pending_tasks: Array<{
|
|
741
|
+
description: string;
|
|
742
|
+
status: string;
|
|
743
|
+
}>;
|
|
744
|
+
memory_items: Array<{
|
|
745
|
+
key: string;
|
|
746
|
+
value: string;
|
|
747
|
+
}>;
|
|
748
|
+
}
|
|
749
|
+
export interface PrepareHandoffResponse {
|
|
750
|
+
success: boolean;
|
|
751
|
+
handoff?: HandoffSummary;
|
|
752
|
+
message: string;
|
|
753
|
+
}
|
|
754
|
+
export interface ResumeFromHandoffArgs {
|
|
755
|
+
handoff_id?: string;
|
|
756
|
+
new_session_id?: string;
|
|
757
|
+
inject_context?: boolean;
|
|
758
|
+
project_path?: string;
|
|
759
|
+
}
|
|
760
|
+
export interface ResumeFromHandoffResponse {
|
|
761
|
+
success: boolean;
|
|
762
|
+
found: boolean;
|
|
763
|
+
handoff?: HandoffDocument;
|
|
764
|
+
message: string;
|
|
765
|
+
}
|
|
766
|
+
export interface ListHandoffsArgs {
|
|
767
|
+
limit?: number;
|
|
768
|
+
include_resumed?: boolean;
|
|
769
|
+
project_path?: string;
|
|
770
|
+
}
|
|
771
|
+
export interface ListHandoffsResponse {
|
|
772
|
+
success: boolean;
|
|
773
|
+
handoffs: Array<{
|
|
774
|
+
id: string;
|
|
775
|
+
from_session_id: string;
|
|
776
|
+
created_at: string;
|
|
777
|
+
resumed_by?: string;
|
|
778
|
+
resumed_at?: string;
|
|
779
|
+
summary: string;
|
|
780
|
+
}>;
|
|
781
|
+
total_count: number;
|
|
782
|
+
message: string;
|
|
783
|
+
}
|
|
784
|
+
export interface GetStartupContextArgs {
|
|
785
|
+
query?: string;
|
|
786
|
+
max_tokens?: number;
|
|
787
|
+
sources?: Array<"history" | "decisions" | "memory" | "handoffs">;
|
|
788
|
+
project_path?: string;
|
|
789
|
+
}
|
|
790
|
+
export interface GetStartupContextResponse {
|
|
791
|
+
success: boolean;
|
|
792
|
+
context: {
|
|
793
|
+
handoff?: HandoffDocument;
|
|
794
|
+
decisions: Array<{
|
|
795
|
+
id: string;
|
|
796
|
+
text: string;
|
|
797
|
+
rationale?: string;
|
|
798
|
+
timestamp: string;
|
|
799
|
+
}>;
|
|
800
|
+
memory: MemoryItem[];
|
|
801
|
+
recent_files: Array<{
|
|
802
|
+
path: string;
|
|
803
|
+
last_action: string;
|
|
804
|
+
timestamp: string;
|
|
805
|
+
}>;
|
|
806
|
+
summary: string;
|
|
807
|
+
};
|
|
808
|
+
token_estimate: number;
|
|
809
|
+
message: string;
|
|
810
|
+
}
|
|
811
|
+
export interface InjectRelevantContextArgs {
|
|
812
|
+
message: string;
|
|
813
|
+
max_tokens?: number;
|
|
814
|
+
sources?: Array<"history" | "decisions" | "memory" | "handoffs">;
|
|
815
|
+
project_path?: string;
|
|
816
|
+
}
|
|
817
|
+
export interface InjectRelevantContextResponse {
|
|
818
|
+
success: boolean;
|
|
819
|
+
injected_context: string;
|
|
820
|
+
sources_used: string[];
|
|
821
|
+
token_count: number;
|
|
822
|
+
message: string;
|
|
823
|
+
}
|
|
824
|
+
//# sourceMappingURL=ToolTypes.d.ts.map
|