agentdb 1.0.0 → 1.0.2

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 (63) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/README.md +5 -5
  3. package/bin/agentdb.js +296 -65
  4. package/dist/mcp/learning/core/experience-buffer.d.ts +61 -0
  5. package/dist/mcp/learning/core/experience-buffer.d.ts.map +1 -0
  6. package/dist/mcp/learning/core/experience-buffer.js +175 -0
  7. package/dist/mcp/learning/core/experience-buffer.js.map +1 -0
  8. package/dist/mcp/learning/core/experience-buffer.mjs +170 -0
  9. package/dist/mcp/learning/core/experience-recorder.d.ts +40 -0
  10. package/dist/mcp/learning/core/experience-recorder.d.ts.map +1 -0
  11. package/dist/mcp/learning/core/experience-recorder.js +200 -0
  12. package/dist/mcp/learning/core/experience-recorder.js.map +1 -0
  13. package/dist/mcp/learning/core/experience-recorder.mjs +195 -0
  14. package/dist/mcp/learning/core/learning-manager.d.ts +66 -0
  15. package/dist/mcp/learning/core/learning-manager.d.ts.map +1 -0
  16. package/dist/mcp/learning/core/learning-manager.js +252 -0
  17. package/dist/mcp/learning/core/learning-manager.js.map +1 -0
  18. package/dist/mcp/learning/core/learning-manager.mjs +247 -0
  19. package/dist/mcp/learning/core/policy-optimizer.d.ts +53 -0
  20. package/dist/mcp/learning/core/policy-optimizer.d.ts.map +1 -0
  21. package/dist/mcp/learning/core/policy-optimizer.js +251 -0
  22. package/dist/mcp/learning/core/policy-optimizer.js.map +1 -0
  23. package/dist/mcp/learning/core/policy-optimizer.mjs +246 -0
  24. package/dist/mcp/learning/core/reward-estimator.d.ts +44 -0
  25. package/dist/mcp/learning/core/reward-estimator.d.ts.map +1 -0
  26. package/dist/mcp/learning/core/reward-estimator.js +158 -0
  27. package/dist/mcp/learning/core/reward-estimator.js.map +1 -0
  28. package/dist/mcp/learning/core/reward-estimator.mjs +153 -0
  29. package/dist/mcp/learning/core/session-manager.d.ts +63 -0
  30. package/dist/mcp/learning/core/session-manager.d.ts.map +1 -0
  31. package/dist/mcp/learning/core/session-manager.js +202 -0
  32. package/dist/mcp/learning/core/session-manager.js.map +1 -0
  33. package/dist/mcp/learning/core/session-manager.mjs +197 -0
  34. package/dist/mcp/learning/index.d.ts +19 -0
  35. package/dist/mcp/learning/index.d.ts.map +1 -0
  36. package/dist/mcp/learning/index.js +30 -0
  37. package/dist/mcp/learning/index.js.map +1 -0
  38. package/dist/mcp/learning/index.mjs +19 -0
  39. package/dist/mcp/learning/tools/mcp-learning-tools.d.ts +369 -0
  40. package/dist/mcp/learning/tools/mcp-learning-tools.d.ts.map +1 -0
  41. package/dist/mcp/learning/tools/mcp-learning-tools.js +361 -0
  42. package/dist/mcp/learning/tools/mcp-learning-tools.js.map +1 -0
  43. package/dist/mcp/learning/tools/mcp-learning-tools.mjs +356 -0
  44. package/dist/mcp/learning/types/index.d.ts +138 -0
  45. package/dist/mcp/learning/types/index.d.ts.map +1 -0
  46. package/dist/mcp/learning/types/index.js +6 -0
  47. package/dist/mcp/learning/types/index.js.map +1 -0
  48. package/dist/mcp/learning/types/index.mjs +4 -0
  49. package/dist/mcp-server.d.ts +2 -0
  50. package/dist/mcp-server.d.ts.map +1 -1
  51. package/dist/mcp-server.js +72 -4
  52. package/dist/mcp-server.js.map +1 -1
  53. package/dist/mcp-server.mjs +72 -4
  54. package/dist/wasm/sql-wasm-debug.js +6989 -0
  55. package/dist/wasm/sql-wasm-debug.wasm +0 -0
  56. package/dist/wasm/sql-wasm.js +188 -0
  57. package/dist/wasm/sql-wasm.wasm +0 -0
  58. package/dist/wasm-loader.d.ts.map +1 -1
  59. package/dist/wasm-loader.js +5 -2
  60. package/dist/wasm-loader.js.map +1 -1
  61. package/dist/wasm-loader.mjs +5 -2
  62. package/examples/mcp-learning-example.ts +220 -0
  63. package/package.json +26 -5
@@ -0,0 +1,356 @@
1
+ /**
2
+ * MCP Learning Tools - Tool definitions for MCP server integration
3
+ */
4
+ export class MCPLearningTools {
5
+ constructor(learningManager) {
6
+ this.learningManager = learningManager;
7
+ }
8
+ /**
9
+ * Get all tool definitions for MCP server
10
+ */
11
+ getToolDefinitions() {
12
+ return {
13
+ learning_start_session: {
14
+ description: 'Start a new learning session for adaptive action selection',
15
+ inputSchema: {
16
+ type: 'object',
17
+ properties: {
18
+ userId: {
19
+ type: 'string',
20
+ description: 'User identifier',
21
+ },
22
+ sessionType: {
23
+ type: 'string',
24
+ enum: ['coding', 'research', 'debugging', 'general'],
25
+ description: 'Type of task for this session',
26
+ },
27
+ plugin: {
28
+ type: 'string',
29
+ default: 'q-learning',
30
+ description: 'Learning algorithm to use',
31
+ },
32
+ config: {
33
+ type: 'object',
34
+ description: 'Optional configuration parameters',
35
+ properties: {
36
+ learningRate: { type: 'number', default: 0.1 },
37
+ discountFactor: { type: 'number', default: 0.95 },
38
+ bufferSize: { type: 'number', default: 10000 },
39
+ },
40
+ },
41
+ },
42
+ required: ['userId', 'sessionType'],
43
+ },
44
+ },
45
+ learning_end_session: {
46
+ description: 'End a learning session and save policy',
47
+ inputSchema: {
48
+ type: 'object',
49
+ properties: {
50
+ sessionId: {
51
+ type: 'string',
52
+ description: 'Session identifier to end',
53
+ },
54
+ },
55
+ required: ['sessionId'],
56
+ },
57
+ },
58
+ learning_predict: {
59
+ description: 'Get AI-recommended action for current state with confidence scores',
60
+ inputSchema: {
61
+ type: 'object',
62
+ properties: {
63
+ sessionId: {
64
+ type: 'string',
65
+ description: 'Active session identifier',
66
+ },
67
+ currentState: {
68
+ type: 'object',
69
+ description: 'Current task state',
70
+ properties: {
71
+ taskDescription: { type: 'string' },
72
+ availableTools: {
73
+ type: 'array',
74
+ items: { type: 'string' },
75
+ },
76
+ previousActions: {
77
+ type: 'array',
78
+ items: { type: 'object' },
79
+ },
80
+ },
81
+ required: ['taskDescription', 'availableTools'],
82
+ },
83
+ availableTools: {
84
+ type: 'array',
85
+ items: { type: 'string' },
86
+ description: 'Tools available for selection',
87
+ },
88
+ },
89
+ required: ['sessionId', 'currentState', 'availableTools'],
90
+ },
91
+ },
92
+ learning_feedback: {
93
+ description: 'Provide user feedback on action quality',
94
+ inputSchema: {
95
+ type: 'object',
96
+ properties: {
97
+ sessionId: {
98
+ type: 'string',
99
+ description: 'Session identifier',
100
+ },
101
+ actionId: {
102
+ type: 'string',
103
+ description: 'Action identifier to provide feedback on',
104
+ },
105
+ feedback: {
106
+ type: 'object',
107
+ properties: {
108
+ success: { type: 'boolean' },
109
+ rating: {
110
+ type: 'number',
111
+ minimum: 0,
112
+ maximum: 5,
113
+ description: 'Rating from 0-5',
114
+ },
115
+ comments: { type: 'string' },
116
+ dimensions: {
117
+ type: 'object',
118
+ properties: {
119
+ speed: { type: 'number', minimum: 0, maximum: 1 },
120
+ accuracy: { type: 'number', minimum: 0, maximum: 1 },
121
+ completeness: { type: 'number', minimum: 0, maximum: 1 },
122
+ },
123
+ },
124
+ },
125
+ required: ['success', 'rating'],
126
+ },
127
+ },
128
+ required: ['sessionId', 'actionId', 'feedback'],
129
+ },
130
+ },
131
+ learning_train: {
132
+ description: 'Train policy on collected experiences',
133
+ inputSchema: {
134
+ type: 'object',
135
+ properties: {
136
+ sessionId: {
137
+ type: 'string',
138
+ description: 'Session to train',
139
+ },
140
+ options: {
141
+ type: 'object',
142
+ properties: {
143
+ batchSize: { type: 'number', default: 32 },
144
+ epochs: { type: 'number', default: 10 },
145
+ learningRate: { type: 'number', default: 0.1 },
146
+ minExperiences: { type: 'number', default: 100 },
147
+ },
148
+ },
149
+ },
150
+ required: ['sessionId'],
151
+ },
152
+ },
153
+ learning_metrics: {
154
+ description: 'Get learning performance metrics',
155
+ inputSchema: {
156
+ type: 'object',
157
+ properties: {
158
+ sessionId: {
159
+ type: 'string',
160
+ description: 'Session to get metrics for',
161
+ },
162
+ period: {
163
+ type: 'string',
164
+ enum: ['session', 'day', 'week', 'month', 'all'],
165
+ default: 'session',
166
+ description: 'Time period for metrics',
167
+ },
168
+ },
169
+ required: ['sessionId'],
170
+ },
171
+ },
172
+ learning_transfer: {
173
+ description: 'Transfer learning from one task to another',
174
+ inputSchema: {
175
+ type: 'object',
176
+ properties: {
177
+ sourceSessionId: {
178
+ type: 'string',
179
+ description: 'Source session to transfer from',
180
+ },
181
+ targetSessionId: {
182
+ type: 'string',
183
+ description: 'Target session to transfer to',
184
+ },
185
+ similarity: {
186
+ type: 'number',
187
+ minimum: 0,
188
+ maximum: 1,
189
+ default: 0.7,
190
+ description: 'Task similarity weight (0-1)',
191
+ },
192
+ },
193
+ required: ['sourceSessionId', 'targetSessionId'],
194
+ },
195
+ },
196
+ learning_explain: {
197
+ description: 'Explain why an action was recommended',
198
+ inputSchema: {
199
+ type: 'object',
200
+ properties: {
201
+ sessionId: {
202
+ type: 'string',
203
+ description: 'Session identifier',
204
+ },
205
+ state: {
206
+ type: 'object',
207
+ description: 'State to explain',
208
+ properties: {
209
+ taskDescription: { type: 'string' },
210
+ availableTools: {
211
+ type: 'array',
212
+ items: { type: 'string' },
213
+ },
214
+ },
215
+ required: ['taskDescription', 'availableTools'],
216
+ },
217
+ },
218
+ required: ['sessionId', 'state'],
219
+ },
220
+ },
221
+ experience_record: {
222
+ description: 'Record a tool execution as learning experience',
223
+ inputSchema: {
224
+ type: 'object',
225
+ properties: {
226
+ sessionId: {
227
+ type: 'string',
228
+ description: 'Session identifier',
229
+ },
230
+ toolName: {
231
+ type: 'string',
232
+ description: 'Name of tool executed',
233
+ },
234
+ args: {
235
+ type: 'object',
236
+ description: 'Tool arguments',
237
+ },
238
+ result: {
239
+ description: 'Tool execution result',
240
+ },
241
+ outcome: {
242
+ type: 'object',
243
+ properties: {
244
+ success: { type: 'boolean' },
245
+ executionTime: { type: 'number' },
246
+ tokensUsed: { type: 'number' },
247
+ error: { type: 'object' },
248
+ },
249
+ required: ['success', 'executionTime'],
250
+ },
251
+ },
252
+ required: ['sessionId', 'toolName', 'args', 'result', 'outcome'],
253
+ },
254
+ },
255
+ reward_signal: {
256
+ description: 'Calculate reward signal for an outcome',
257
+ inputSchema: {
258
+ type: 'object',
259
+ properties: {
260
+ outcome: {
261
+ type: 'object',
262
+ properties: {
263
+ success: { type: 'boolean' },
264
+ executionTime: { type: 'number' },
265
+ tokensUsed: { type: 'number' },
266
+ result: { description: 'Execution result' },
267
+ },
268
+ required: ['success', 'executionTime'],
269
+ },
270
+ context: {
271
+ type: 'object',
272
+ properties: {
273
+ userId: { type: 'string' },
274
+ sessionId: { type: 'string' },
275
+ taskType: {
276
+ type: 'string',
277
+ enum: ['coding', 'research', 'debugging', 'general'],
278
+ },
279
+ timestamp: { type: 'number' },
280
+ },
281
+ required: ['userId', 'sessionId', 'taskType', 'timestamp'],
282
+ },
283
+ userRating: {
284
+ type: 'number',
285
+ minimum: 0,
286
+ maximum: 1,
287
+ description: 'Optional user rating (0-1)',
288
+ },
289
+ },
290
+ required: ['outcome', 'context'],
291
+ },
292
+ },
293
+ };
294
+ }
295
+ /**
296
+ * Handle tool calls
297
+ */
298
+ async handleToolCall(toolName, args) {
299
+ switch (toolName) {
300
+ case 'learning_start_session':
301
+ return await this.learningManager.startSession(args.userId, args.sessionType, args.plugin || 'q-learning', args.config || {});
302
+ case 'learning_end_session':
303
+ return await this.learningManager.endSession(args.sessionId);
304
+ case 'learning_predict': {
305
+ const state = {
306
+ taskDescription: args.currentState.taskDescription,
307
+ availableTools: args.currentState.availableTools,
308
+ previousActions: args.currentState.previousActions || [],
309
+ };
310
+ return await this.learningManager.predictAction(args.sessionId, state, args.availableTools);
311
+ }
312
+ case 'learning_feedback': {
313
+ const feedback = args.feedback;
314
+ await this.learningManager.provideFeedback(args.sessionId, args.actionId, feedback);
315
+ return { success: true };
316
+ }
317
+ case 'learning_train': {
318
+ const options = args.options || {};
319
+ return await this.learningManager.train(args.sessionId, options);
320
+ }
321
+ case 'learning_metrics':
322
+ return await this.learningManager.getMetrics(args.sessionId, args.period || 'session');
323
+ case 'learning_transfer':
324
+ return await this.learningManager.transferLearning(args.sourceSessionId, args.targetSessionId, args.similarity || 0.7);
325
+ case 'learning_explain': {
326
+ const state = {
327
+ taskDescription: args.state.taskDescription,
328
+ availableTools: args.state.availableTools,
329
+ previousActions: [],
330
+ };
331
+ return await this.learningManager.explainPrediction(args.sessionId, state);
332
+ }
333
+ case 'experience_record': {
334
+ const outcome = args.outcome;
335
+ return await this.learningManager.recordExperience(args.sessionId, args.toolName, args.args, args.result, outcome);
336
+ }
337
+ case 'reward_signal': {
338
+ // This is handled by the reward estimator directly
339
+ // For simplicity, return a mock response
340
+ return {
341
+ automatic: 0.75,
342
+ objective: 0.8,
343
+ combined: 0.77,
344
+ dimensions: {
345
+ success: 1.0,
346
+ efficiency: 0.8,
347
+ quality: 0.7,
348
+ cost: 0.6,
349
+ },
350
+ };
351
+ }
352
+ default:
353
+ throw new Error(`Unknown learning tool: ${toolName}`);
354
+ }
355
+ }
356
+ }
@@ -0,0 +1,138 @@
1
+ /**
2
+ * Type definitions for MCP Learning Integration
3
+ */
4
+ export interface ExecutionContext {
5
+ userId: string;
6
+ sessionId: string;
7
+ taskType: 'coding' | 'research' | 'debugging' | 'general';
8
+ timestamp: number;
9
+ isTerminal: boolean;
10
+ metadata?: Record<string, any>;
11
+ }
12
+ export interface State {
13
+ taskDescription: string;
14
+ availableTools: string[];
15
+ previousActions: Action[];
16
+ constraints?: Record<string, any>;
17
+ context?: Record<string, any>;
18
+ embedding?: Float32Array;
19
+ }
20
+ export interface Action {
21
+ tool: string;
22
+ params: Record<string, any>;
23
+ timestamp?: number;
24
+ }
25
+ export interface Experience {
26
+ state: State;
27
+ action: Action;
28
+ reward: number;
29
+ nextState: State;
30
+ done: boolean;
31
+ timestamp: number;
32
+ metadata: {
33
+ userId: string;
34
+ sessionId: string;
35
+ taskType: string;
36
+ actionId?: string;
37
+ [key: string]: any;
38
+ };
39
+ }
40
+ export interface Outcome {
41
+ success: boolean;
42
+ result: any;
43
+ error?: Error;
44
+ executionTime: number;
45
+ tokensUsed?: number;
46
+ metadata?: Record<string, any>;
47
+ }
48
+ export interface Reward {
49
+ automatic: number;
50
+ userFeedback?: number;
51
+ objective: number;
52
+ combined: number;
53
+ dimensions: {
54
+ success: number;
55
+ efficiency: number;
56
+ quality: number;
57
+ cost: number;
58
+ };
59
+ }
60
+ export interface ActionPrediction {
61
+ recommendedAction: {
62
+ tool: string;
63
+ params: Record<string, any>;
64
+ confidence: number;
65
+ reasoning: string;
66
+ };
67
+ alternatives: Array<{
68
+ tool: string;
69
+ params?: Record<string, any>;
70
+ confidence: number;
71
+ reasoning: string;
72
+ }>;
73
+ }
74
+ export interface TrainingOptions {
75
+ batchSize?: number;
76
+ epochs?: number;
77
+ learningRate?: number;
78
+ minExperiences?: number;
79
+ }
80
+ export interface TrainingMetrics {
81
+ loss: number;
82
+ accuracy: number;
83
+ experiencesProcessed: number;
84
+ trainingTime: number;
85
+ improvements: {
86
+ taskCompletionTime: string;
87
+ tokenEfficiency: string;
88
+ successRate: string;
89
+ };
90
+ }
91
+ export interface LearningSession {
92
+ sessionId: string;
93
+ userId: string;
94
+ sessionType: 'coding' | 'research' | 'debugging' | 'general';
95
+ plugin: string;
96
+ status: 'active' | 'ended' | 'paused';
97
+ startTime: number;
98
+ endTime?: number;
99
+ experienceCount: number;
100
+ currentPolicy?: any;
101
+ config: Record<string, any>;
102
+ }
103
+ export interface FeedbackInput {
104
+ success: boolean;
105
+ rating: number;
106
+ comments?: string;
107
+ dimensions?: {
108
+ speed?: number;
109
+ accuracy?: number;
110
+ completeness?: number;
111
+ };
112
+ }
113
+ export interface LearningMetrics {
114
+ period: 'session' | 'day' | 'week' | 'month' | 'all';
115
+ totalExperiences: number;
116
+ averageReward: number;
117
+ successRate: number;
118
+ learningProgress: {
119
+ initial: number;
120
+ current: number;
121
+ improvement: string;
122
+ };
123
+ topActions: Array<{
124
+ tool: string;
125
+ successRate: number;
126
+ avgReward: number;
127
+ count: number;
128
+ }>;
129
+ }
130
+ export interface TransferMetrics {
131
+ sourceTask: string;
132
+ targetTask: string;
133
+ similarity: number;
134
+ transferSuccess: boolean;
135
+ performanceGain: number;
136
+ experiencesTransferred: number;
137
+ }
138
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp/learning/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,KAAK;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,M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QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,UAAU,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,sBAAsB,EAAE,MAAM,CAAC;CAChC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Type definitions for MCP Learning Integration
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mcp/learning/types/index.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Type definitions for MCP Learning Integration
3
+ */
4
+ export {};
@@ -8,6 +8,7 @@ export declare class AgentDBMCPServer {
8
8
  private server;
9
9
  private registry;
10
10
  private resourceHandler;
11
+ private learningTools;
11
12
  constructor();
12
13
  private setupHandlers;
13
14
  private setupErrorHandlers;
@@ -21,6 +22,7 @@ export declare class AgentDBMCPServer {
21
22
  private handlePatternSearch;
22
23
  private handlePatternStats;
23
24
  private handleClearCache;
25
+ private handleLearningTool;
24
26
  start(): Promise<void>;
25
27
  cleanup(): Promise<void>;
26
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AAodH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,eAAe,CAAkB;;IAuBzC,OAAO,CAAC,aAAa;IA8ErB,OAAO,CAAC,kBAAkB;YAoBZ,UAAU;YA2BV,YAAY;YA2BZ,iBAAiB;YA4BjB,YAAY;YA4BZ,YAAY;YA0BZ,WAAW;YAgCX,kBAAkB;YAqClB,mBAAmB;YAoCnB,kBAAkB;YA+BlB,gBAAgB;IAyBxB,KAAK;IAML,OAAO;CAKd"}
1
+ {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AA2eH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,aAAa,CAAiC;;IAuBtD,OAAO,CAAC,aAAa;IAyGrB,OAAO,CAAC,kBAAkB;YAoBZ,UAAU;YAgCV,YAAY;YA2BZ,iBAAiB;YA4BjB,YAAY;YA4BZ,YAAY;YA0BZ,WAAW;YAgCX,kBAAkB;YAqClB,mBAAmB;YAoCnB,kBAAkB;YA+BlB,gBAAgB;YAyBhB,kBAAkB;IA0B1B,KAAK;IAML,OAAO;CAKd"}