@slorenzot/memento-mcp-server 0.7.0 → 0.9.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/dist/index.js CHANGED
@@ -7,6 +7,27 @@ const zod_1 = require("zod");
7
7
  const memento_core_1 = require("@slorenzot/memento-core");
8
8
  const fs_1 = require("fs");
9
9
  const path_1 = require("path");
10
+ // Helper function to handle errors in tool execution
11
+ function handleToolError(error) {
12
+ console.error('Tool execution error:', error.message);
13
+ let hint = 'An error occurred during operation';
14
+ if (!engine.isHealthy()) {
15
+ const initError = engine.getInitError();
16
+ hint = `Database initialization failed: ${initError?.message || 'Unknown error'}. Check configuration and permissions.`;
17
+ }
18
+ return {
19
+ content: [
20
+ {
21
+ type: 'text',
22
+ text: JSON.stringify({
23
+ success: false,
24
+ error: error.message,
25
+ hint,
26
+ }, null, 2),
27
+ },
28
+ ],
29
+ };
30
+ }
10
31
  const config = (0, memento_core_1.loadConfig)();
11
32
  const dbPath = (0, memento_core_1.resolveDbPath)(config);
12
33
  const projectId = (0, memento_core_1.getProjectId)(config);
@@ -27,33 +48,39 @@ server.tool('mem_save', 'Save an observation to memory. Types: decision, bug, di
27
48
  project_id: zod_1.z.string().optional().describe('Project identifier'),
28
49
  metadata: zod_1.z.record(zod_1.z.unknown()).optional().describe('Additional metadata'),
29
50
  }, async ({ title, content, type, topic_key, project_id, metadata }) => {
30
- let sessionId = activeSessionId;
31
- if (!sessionId) {
32
- const session = await engine.createSession({
33
- projectId,
34
- endedAt: null,
35
- metadata: {},
51
+ try {
52
+ const currentProjectId = project_id || projectId;
53
+ let sessionId = activeSessionId;
54
+ if (!sessionId) {
55
+ const session = await engine.createSession({
56
+ projectId: currentProjectId,
57
+ endedAt: null,
58
+ metadata: {},
59
+ });
60
+ sessionId = session.id;
61
+ activeSessionId = sessionId;
62
+ }
63
+ const obs = await engine.createObservation({
64
+ sessionId,
65
+ title,
66
+ content,
67
+ type: type || 'note',
68
+ topicKey: topic_key || null,
69
+ projectId: currentProjectId,
70
+ metadata: metadata || {},
36
71
  });
37
- sessionId = session.id;
38
- activeSessionId = sessionId;
72
+ return {
73
+ content: [
74
+ {
75
+ type: 'text',
76
+ text: JSON.stringify({ id: obs.id, uuid: obs.uuid, success: true }, null, 2),
77
+ },
78
+ ],
79
+ };
80
+ }
81
+ catch (error) {
82
+ return handleToolError(error);
39
83
  }
40
- const obs = await engine.createObservation({
41
- sessionId,
42
- title,
43
- content,
44
- type: type || 'note',
45
- topicKey: topic_key || null,
46
- projectId,
47
- metadata: metadata || {},
48
- });
49
- return {
50
- content: [
51
- {
52
- type: 'text',
53
- text: JSON.stringify({ id: obs.id, uuid: obs.uuid, success: true }, null, 2),
54
- },
55
- ],
56
- };
57
84
  });
58
85
  server.tool('mem_search', 'Search observations using text matching.', {
59
86
  query: zod_1.z.string().optional().describe('Search query'),
@@ -63,22 +90,27 @@ server.tool('mem_search', 'Search observations using text matching.', {
63
90
  limit: zod_1.z.number().optional(),
64
91
  offset: zod_1.z.number().optional(),
65
92
  }, async ({ query, type, project_id, topic_key, limit, offset }) => {
66
- const result = await engine.search({
67
- query,
68
- type: type,
69
- projectId: project_id,
70
- topicKey: topic_key,
71
- limit,
72
- offset,
73
- });
74
- return {
75
- content: [
76
- {
77
- type: 'text',
78
- text: JSON.stringify(result, null, 2),
79
- },
80
- ],
81
- };
93
+ try {
94
+ const result = await engine.search({
95
+ query,
96
+ type: type,
97
+ projectId: project_id,
98
+ topicKey: topic_key,
99
+ limit,
100
+ offset,
101
+ });
102
+ return {
103
+ content: [
104
+ {
105
+ type: 'text',
106
+ text: JSON.stringify(result, null, 2),
107
+ },
108
+ ],
109
+ };
110
+ }
111
+ catch (error) {
112
+ return handleToolError(error);
113
+ }
82
114
  });
83
115
  server.tool('mem_get_observation', 'Get a specific observation by ID.', {
84
116
  id: zod_1.z.number().describe('Observation ID'),
@@ -229,23 +261,32 @@ server.tool('mem_stats', 'Get memory statistics.', {}, async () => {
229
261
  };
230
262
  });
231
263
  server.tool('mem_health', 'Check system health.', {}, async () => {
232
- const result = await engine.search({});
233
- return {
234
- content: [
235
- {
236
- type: 'text',
237
- text: JSON.stringify({
238
- status: 'healthy',
239
- version: '0.5.0',
240
- storage: 'sqlite-persistent',
241
- databasePath: dbPath,
242
- projectId: projectId,
243
- observations: result.total,
244
- activeSession: activeSessionId,
245
- }, null, 2),
246
- },
247
- ],
248
- };
264
+ try {
265
+ const isHealthy = engine.isHealthy();
266
+ const result = isHealthy ? await engine.search({}) : { total: 0, observations: [] };
267
+ const initError = engine.getInitError();
268
+ return {
269
+ content: [
270
+ {
271
+ type: 'text',
272
+ text: JSON.stringify({
273
+ status: isHealthy ? 'healthy' : 'unhealthy',
274
+ version: '0.7.0',
275
+ storage: 'sqlite-persistent',
276
+ databasePath: dbPath,
277
+ projectId: projectId,
278
+ databaseHealth: isHealthy ? 'ok' : 'failed',
279
+ ...(initError && { initError: initError.message }),
280
+ observations: result.total,
281
+ activeSession: activeSessionId,
282
+ }, null, 2),
283
+ },
284
+ ],
285
+ };
286
+ }
287
+ catch (error) {
288
+ return handleToolError(error);
289
+ }
249
290
  });
250
291
  server.tool('mem_config', 'Get current memento configuration and system status.', {}, async () => {
251
292
  const searchResult = await engine.search({});
@@ -292,7 +333,6 @@ server.tool('mem_config', 'Get current memento configuration and system status.'
292
333
  };
293
334
  });
294
335
  function getDatabaseStats(dbPath) {
295
- const path = require('path');
296
336
  const fs = require('fs');
297
337
  let totalSize = 0;
298
338
  let walSize = 0;
@@ -366,15 +406,29 @@ const BANNER = `
366
406
  `;
367
407
  async function main() {
368
408
  console.error(BANNER);
409
+ // Check database health and show warnings if needed
410
+ if (!engine.isHealthy()) {
411
+ const initError = engine.getInitError();
412
+ console.error('\n⚠️ WARNING: Database initialization failed');
413
+ console.error(` Error: ${initError?.message || 'Unknown error'}`);
414
+ console.error(` Database path: ${dbPath}`);
415
+ console.error('\n The server will start, but database operations will fail.');
416
+ console.error(' Please check:');
417
+ console.error(' - Directory permissions');
418
+ console.error(' - Disk space');
419
+ console.error(' - Path configuration in .mementorc\n');
420
+ }
369
421
  const transport = new stdio_js_1.StdioServerTransport();
370
422
  await server.connect(transport);
371
423
  console.error('\n✓ Memento MCP Server started successfully');
372
424
  console.error(` Database: ${dbPath}`);
373
425
  console.error(` Project: ${projectId}`);
426
+ console.error(` Health: ${engine.isHealthy() ? '✓ Healthy' : '✗ Unhealthy'}`);
374
427
  console.error(` Ready to accept connections...\n`);
375
428
  }
376
429
  main().catch((err) => {
377
- console.error('Fatal error:', err);
430
+ console.error('Fatal error during server startup:', err);
431
+ console.error('\nThe server failed to start. Please check the error above.');
378
432
  process.exit(1);
379
433
  });
380
434
  //# 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":";;;AAEA,oEAAoE;AACpE,wEAAiF;AACjF,6BAAwB;AACxB,0DAAgG;AAChG,2BAAgC;AAChC,+BAA4B;AAE5B,MAAM,MAAM,GAAG,IAAA,yBAAU,GAAE,CAAC;AAC5B,MAAM,MAAM,GAAG,IAAA,4BAAa,EAAC,MAAM,CAAC,CAAC;AACrC,MAAM,SAAS,GAAG,IAAA,2BAAY,EAAC,MAAM,CAAC,CAAC;AAEvC,MAAM,MAAM,GAAG,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC;AACxC,IAAI,eAAe,GAAkB,IAAI,CAAC;AAE1C,MAAM,MAAM,GAAG,IAAI,kBAAS,CAAC;IAC3B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,IAAI,CACT,UAAU,EACV,uEAAuE,EACvE;IACE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAClD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAA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AkB,CAAC,CAAC;QAClC,OAAO,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAC5C,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACjC,OAAO,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC3D,CAAC;IAED,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAEhC,OAAO,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAC;IAC7D,OAAO,CAAC,KAAK,CAAC,eAAe,MAAM,EAAE,CAAC,CAAC;IACvC,OAAO,CAAC,KAAK,CAAC,cAAc,SAAS,EAAE,CAAC,CAAC;IACzC,OAAO,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC;IAC/E,OAAO,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAC;AACtD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,GAAG,CAAC,CAAC;IACzD,OAAO,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;IAC7E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@slorenzot/memento-mcp-server",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "MCP server implementation for Memento with SQLite, flexible config via .mementorc, and ASCII banner",
5
- "keywords": ["mcp", "memento", "memory", "model-context-protocol", "sqlite", "config", "mementorc", "banner"],
5
+ "keywords": [
6
+ "mcp",
7
+ "memento",
8
+ "memory",
9
+ "model-context-protocol",
10
+ "sqlite",
11
+ "config",
12
+ "mementorc",
13
+ "banner"
14
+ ],
6
15
  "license": "CC-BY-NC-ND-4.0",
7
16
  "author": "Soulberto Lorenzo",
8
17
  "type": "commonjs",
@@ -19,7 +28,7 @@
19
28
  },
20
29
  "dependencies": {
21
30
  "@modelcontextprotocol/sdk": "^1.25.1",
22
- "@slorenzot/memento-core": "^0.5.0",
31
+ "@slorenzot/memento-core": "^0.6.0",
23
32
  "zod": "^3.22.4"
24
33
  },
25
34
  "devDependencies": {
package/src/index.ts CHANGED
@@ -6,6 +6,35 @@ import { z } from 'zod';
6
6
  import { MemoryEngine, loadConfig, resolveDbPath, getProjectId } from '@slorenzot/memento-core';
7
7
  import { existsSync } from 'fs';
8
8
  import { join } from 'path';
9
+ import * as fs from 'fs';
10
+
11
+ // Helper function to handle errors in tool execution
12
+ function handleToolError(error: any): any {
13
+ console.error('Tool execution error:', error.message);
14
+
15
+ let hint = 'An error occurred during operation';
16
+ if (!engine.isHealthy()) {
17
+ const initError = engine.getInitError();
18
+ hint = `Database initialization failed: ${initError?.message || 'Unknown error'}. Check configuration and permissions.`;
19
+ }
20
+
21
+ return {
22
+ content: [
23
+ {
24
+ type: 'text',
25
+ text: JSON.stringify(
26
+ {
27
+ success: false,
28
+ error: error.message,
29
+ hint,
30
+ },
31
+ null,
32
+ 2
33
+ ),
34
+ },
35
+ ],
36
+ };
37
+ }
9
38
 
10
39
  const config = loadConfig();
11
40
  const dbPath = resolveDbPath(config);
@@ -34,36 +63,41 @@ server.tool(
34
63
  metadata: z.record(z.unknown()).optional().describe('Additional metadata'),
35
64
  },
36
65
  async ({ title, content, type, topic_key, project_id, metadata }) => {
37
- let sessionId = activeSessionId;
38
-
39
- if (!sessionId) {
40
- const session = await engine.createSession({
41
- projectId,
42
- endedAt: null,
43
- metadata: {},
66
+ try {
67
+ const currentProjectId = project_id || projectId;
68
+ let sessionId = activeSessionId;
69
+
70
+ if (!sessionId) {
71
+ const session = await engine.createSession({
72
+ projectId: currentProjectId,
73
+ endedAt: null,
74
+ metadata: {},
75
+ });
76
+ sessionId = session.id;
77
+ activeSessionId = sessionId;
78
+ }
79
+
80
+ const obs = await engine.createObservation({
81
+ sessionId,
82
+ title,
83
+ content,
84
+ type: (type as any) || 'note',
85
+ topicKey: topic_key || null,
86
+ projectId: currentProjectId,
87
+ metadata: metadata || {},
44
88
  });
45
- sessionId = session.id;
46
- activeSessionId = sessionId;
47
- }
48
89
 
49
- const obs = await engine.createObservation({
50
- sessionId,
51
- title,
52
- content,
53
- type: (type as any) || 'note',
54
- topicKey: topic_key || null,
55
- projectId,
56
- metadata: metadata || {},
57
- });
58
-
59
- return {
60
- content: [
61
- {
62
- type: 'text',
63
- text: JSON.stringify({ id: obs.id, uuid: obs.uuid, success: true }, null, 2),
64
- },
65
- ],
66
- };
90
+ return {
91
+ content: [
92
+ {
93
+ type: 'text',
94
+ text: JSON.stringify({ id: obs.id, uuid: obs.uuid, success: true }, null, 2),
95
+ },
96
+ ],
97
+ };
98
+ } catch (error: any) {
99
+ return handleToolError(error);
100
+ }
67
101
  }
68
102
  );
69
103
 
@@ -79,23 +113,27 @@ server.tool(
79
113
  offset: z.number().optional(),
80
114
  },
81
115
  async ({ query, type, project_id, topic_key, limit, offset }) => {
82
- const result = await engine.search({
83
- query,
84
- type: type as any,
85
- projectId: project_id,
86
- topicKey: topic_key,
87
- limit,
88
- offset,
89
- });
116
+ try {
117
+ const result = await engine.search({
118
+ query,
119
+ type: type as any,
120
+ projectId: project_id,
121
+ topicKey: topic_key,
122
+ limit,
123
+ offset,
124
+ });
90
125
 
91
- return {
92
- content: [
93
- {
94
- type: 'text',
95
- text: JSON.stringify(result, null, 2),
96
- },
97
- ],
98
- };
126
+ return {
127
+ content: [
128
+ {
129
+ type: 'text',
130
+ text: JSON.stringify(result, null, 2),
131
+ },
132
+ ],
133
+ };
134
+ } catch (error: any) {
135
+ return handleToolError(error);
136
+ }
99
137
  }
100
138
  );
101
139
 
@@ -310,28 +348,36 @@ server.tool('mem_stats', 'Get memory statistics.', {}, async () => {
310
348
  });
311
349
 
312
350
  server.tool('mem_health', 'Check system health.', {}, async () => {
313
- const result = await engine.search({});
351
+ try {
352
+ const isHealthy = engine.isHealthy();
353
+ const result = isHealthy ? await engine.search({}) : { total: 0, observations: [] };
354
+ const initError = engine.getInitError();
314
355
 
315
- return {
316
- content: [
317
- {
318
- type: 'text',
319
- text: JSON.stringify(
320
- {
321
- status: 'healthy',
322
- version: '0.5.0',
323
- storage: 'sqlite-persistent',
324
- databasePath: dbPath,
325
- projectId: projectId,
326
- observations: result.total,
327
- activeSession: activeSessionId,
328
- },
329
- null,
330
- 2
331
- ),
332
- },
333
- ],
334
- };
356
+ return {
357
+ content: [
358
+ {
359
+ type: 'text',
360
+ text: JSON.stringify(
361
+ {
362
+ status: isHealthy ? 'healthy' : 'unhealthy',
363
+ version: '0.7.0',
364
+ storage: 'sqlite-persistent',
365
+ databasePath: dbPath,
366
+ projectId: projectId,
367
+ databaseHealth: isHealthy ? 'ok' : 'failed',
368
+ ...(initError && { initError: initError.message }),
369
+ observations: result.total,
370
+ activeSession: activeSessionId,
371
+ },
372
+ null,
373
+ 2
374
+ ),
375
+ },
376
+ ],
377
+ };
378
+ } catch (error: any) {
379
+ return handleToolError(error);
380
+ }
335
381
  });
336
382
 
337
383
  server.tool('mem_config', 'Get current memento configuration and system status.', {}, async () => {
@@ -387,9 +433,6 @@ server.tool('mem_config', 'Get current memento configuration and system status.'
387
433
  });
388
434
 
389
435
  function getDatabaseStats(dbPath: string) {
390
- const path = require('path');
391
- const fs = require('fs');
392
-
393
436
  let totalSize = 0;
394
437
  let walSize = 0;
395
438
  let shmSize = 0;
@@ -464,15 +507,31 @@ const BANNER = `
464
507
  async function main() {
465
508
  console.error(BANNER);
466
509
 
510
+ // Check database health and show warnings if needed
511
+ if (!engine.isHealthy()) {
512
+ const initError = engine.getInitError();
513
+ console.error('\n⚠️ WARNING: Database initialization failed');
514
+ console.error(` Error: ${initError?.message || 'Unknown error'}`);
515
+ console.error(` Database path: ${dbPath}`);
516
+ console.error('\n The server will start, but database operations will fail.');
517
+ console.error(' Please check:');
518
+ console.error(' - Directory permissions');
519
+ console.error(' - Disk space');
520
+ console.error(' - Path configuration in .mementorc\n');
521
+ }
522
+
467
523
  const transport = new StdioServerTransport();
468
524
  await server.connect(transport);
525
+
469
526
  console.error('\n✓ Memento MCP Server started successfully');
470
527
  console.error(` Database: ${dbPath}`);
471
528
  console.error(` Project: ${projectId}`);
529
+ console.error(` Health: ${engine.isHealthy() ? '✓ Healthy' : '✗ Unhealthy'}`);
472
530
  console.error(` Ready to accept connections...\n`);
473
531
  }
474
532
 
475
533
  main().catch((err) => {
476
- console.error('Fatal error:', err);
534
+ console.error('Fatal error during server startup:', err);
535
+ console.error('\nThe server failed to start. Please check the error above.');
477
536
  process.exit(1);
478
537
  });
@@ -1 +0,0 @@
1
- {"fileNames":["../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/typealiases.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/index.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/zoderror.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseutil.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/enumutil.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorutil.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/partialutil.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/standard-schema.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.d.cts","../../node_modules/.bun/zod@3.25.76/node_modules/zod/index.d.cts","../../node_modules/.bun/@modelcontextprotocol+sdk@0.4.0/node_modules/@modelcontextprotocol/sdk/dist/types.d.ts","../../node_modules/.bun/@modelcontextprotocol+sdk@0.4.0/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.d.ts","../../node_modules/.bun/@modelcontextprotocol+sdk@0.4.0/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.d.ts","../../node_modules/.bun/@modelcontextprotocol+sdk@0.4.0/node_modules/@modelcontextprotocol/sdk/dist/server/index.d.ts","../../node_modules/.bun/@modelcontextprotocol+sdk@0.4.0/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.d.ts","../core/dist/types.d.ts","../core/dist/memoryengine.d.ts","../core/dist/index.d.ts","./src/mcpserver.ts","./src/index.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/compatibility/disposable.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/compatibility/indexable.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/compatibility/iterators.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/compatibility/index.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/globals.typedarray.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/buffer.buffer.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/globals.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/web-globals/domexception.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/web-globals/events.d.ts","../../node_modules/.bun/buffer@5.7.1/node_modules/buffer/index.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../node_modules/.bun/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/web-globals/fetch.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/assert.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/buffer.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/child_process.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/cluster.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/console.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/constants.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/crypto.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/dgram.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/dns.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/domain.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/events.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/fs.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/http.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/http2.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/https.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/inspector.generated.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/module.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/net.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/os.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/path.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/process.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/punycode.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/querystring.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/readline.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/readline/promises.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/repl.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/sea.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/stream.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/stream/web.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/test.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/timers.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/tls.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/trace_events.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/tty.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/url.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/util.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/v8.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/vm.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/wasi.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/zlib.d.ts","../../node_modules/.bun/@types+node@20.19.39/node_modules/@types/node/index.d.ts"],"fileIdsList":[[71,72,74,87,134],[72,73,87,134,164],[71,72,73,87,134],[72,87,134],[71,87,134],[87,131,134],[87,133,134],[134],[87,134,139,167],[87,134,135,140,145,153,164,175],[87,134,135,136,145,153],[87,134],[82,83,84,87,134],[87,134,137,176],[87,134,138,139,146,154],[87,134,139,164,172],[87,134,140,142,145,153],[87,133,134,141],[87,134,142,143],[87,134,144,145],[87,133,134,145],[87,134,145,146,147,164,175],[87,134,145,146,147,160,164,167],[87,134,142,145,148,153,164,175],[87,134,145,146,148,149,153,164,172,175],[87,134,148,150,164,172,175],[85,86,87,88,89,90,91,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181],[87,134,145,151],[87,134,152,175,180],[87,134,142,145,153,164],[87,134,154],[87,134,155],[87,133,134,156],[87,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181],[87,134,158],[87,134,159],[87,134,145,160,161],[87,134,160,162,176,178],[87,134,145,164,165,167],[87,134,166,167],[87,134,164,165],[87,134,167],[87,134,168],[87,131,134,164,169],[87,134,145,170,171],[87,134,170,171],[87,134,139,153,164,172],[87,134,173],[87,134,153,174],[87,134,148,159,175],[87,134,139,176],[87,134,164,177],[87,134,152,178],[87,134,179],[87,129,134],[87,129,134,145,147,156,164,167,175,178,180],[87,134,164,181],[87,101,105,134,175],[87,101,134,164,175],[87,96,134],[87,98,101,134,172,175],[87,134,153,172],[87,134,182],[87,96,134,182],[87,98,101,134,153,175],[87,93,94,97,100,134,145,164,175],[87,101,108,134],[87,93,99,134],[87,101,122,123,134],[87,97,101,134,167,175,182],[87,122,134,182],[87,95,96,134,182],[87,101,134],[87,95,96,97,98,99,100,101,102,103,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,123,124,125,126,127,128,134],[87,101,116,134],[87,101,108,109,134],[87,99,101,109,110,134],[87,100,134],[87,93,96,101,134],[87,101,105,109,110,134],[87,105,134],[87,99,101,104,134,175],[87,93,98,101,108,134],[87,134,164],[87,96,101,122,134,180,182],[70,87,134],[61,62,87,134],[58,59,61,63,64,69,87,134],[59,61,87,134],[69,87,134],[61,87,134],[58,59,61,64,65,66,67,68,87,134],[58,59,60,87,134],[77,78,87,134],[77,87,134],[75,76,79,87,134],[72,75,76,79,87,134]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","impliedFormat":1},{"version":"08b2fae7b0f553ad9f79faec864b179fc58bc172e295a70943e8585dd85f600c","impliedFormat":1},{"version":"f12edf1672a94c578eca32216839604f1e1c16b40a1896198deabf99c882b340","impliedFormat":1},{"version":"e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","impliedFormat":1},{"version":"dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"4fdb529707247a1a917a4626bfb6a293d52cd8ee57ccf03830ec91d39d606d6d","impliedFormat":1},{"version":"a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","impliedFormat":1},{"version":"5780b706cece027f0d4444fbb4e1af62dc51e19da7c3d3719f67b22b033859b9","impliedFormat":1},{"version":"540347761a93d2dd061d1594ba61c83185c04c17e8e7a0d999cf8e661f2aa81f","impliedFormat":99},{"version":"4b06d2c1ddce8387bc67a943b16adbb7e001867587c7f9f90d15bcb871ceb3d7","impliedFormat":99},{"version":"81c883f5e61b93cd8d1647d22603f1e15dedc32ac8952e1302d436c492fd21cb","impliedFormat":99},{"version":"d15274f3ce06507fe41563232dda62de64370ef16ab01786f25f37bb415cda42","impliedFormat":99},{"version":"c9409ea389b2733ad153decd98696090ad2b37e610c9a23b360eb4330cd7c72f","impliedFormat":99},{"version":"2ca4d93c73b7ef1add391d6a76310f3f8ff69c97fe54ada411e25bbfb4191421","impliedFormat":1},{"version":"734fbc171866d6cf8ec9001c6f5cc375997ebb1d8959f1b10a66738cda12c044","impliedFormat":1},{"version":"587235d1451b063a4279b2d8c4a5833260b9aaa69ab38ba1dcaef58aeb97e06c","impliedFormat":1},{"version":"a29ff2c54339a5e0fc2a179580b5b5d72216e03fe17f150304e983acc6eeae27","signature":"38b2a5079916a0722f90bd2db90c4c12d80316b779cd8877ccd5c81b1aa9c156","impliedFormat":1},{"version":"43904bc0441ed67615b3f77c84f01e75d1b1ce61000679bf45b372afe28d9528","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012","impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"ba481bca06f37d3f2c137ce343c7d5937029b2468f8e26111f3c9d9963d6568d","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d9ef24f9a22a88e3e9b3b3d8c40ab1ddb0853f1bfbd5c843c37800138437b61","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2677634fe27e87348825bb041651e22d50a613e2fdf6a4a3ade971d71bac37e","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f","impliedFormat":1},{"version":"8cd19276b6590b3ebbeeb030ac271871b9ed0afc3074ac88a94ed2449174b776","affectsGlobalScope":true,"impliedFormat":1},{"version":"696eb8d28f5949b87d894b26dc97318ef944c794a9a4e4f62360cd1d1958014b","impliedFormat":1},{"version":"3f8fa3061bd7402970b399300880d55257953ee6d3cd408722cb9ac20126460c","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"68bd56c92c2bd7d2339457eb84d63e7de3bd56a69b25f3576e1568d21a162398","affectsGlobalScope":true,"impliedFormat":1},{"version":"3e93b123f7c2944969d291b35fed2af79a6e9e27fdd5faa99748a51c07c02d28","impliedFormat":1},{"version":"9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","impliedFormat":1},{"version":"87aad3dd9752067dc875cfaa466fc44246451c0c560b820796bdd528e29bef40","impliedFormat":1},{"version":"4aacb0dd020eeaef65426153686cc639a78ec2885dc72ad220be1d25f1a439df","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"8db0ae9cb14d9955b14c214f34dae1b9ef2baee2fe4ce794a4cd3ac2531e3255","affectsGlobalScope":true,"impliedFormat":1},{"version":"15fc6f7512c86810273af28f224251a5a879e4261b4d4c7e532abfbfc3983134","impliedFormat":1},{"version":"58adba1a8ab2d10b54dc1dced4e41f4e7c9772cbbac40939c0dc8ce2cdb1d442","impliedFormat":1},{"version":"641942a78f9063caa5d6b777c99304b7d1dc7328076038c6d94d8a0b81fc95c1","impliedFormat":1},{"version":"714435130b9015fae551788df2a88038471a5a11eb471f27c4ede86552842bc9","impliedFormat":1},{"version":"855cd5f7eb396f5f1ab1bc0f8580339bff77b68a770f84c6b254e319bbfd1ac7","impliedFormat":1},{"version":"5650cf3dace09e7c25d384e3e6b818b938f68f4e8de96f52d9c5a1b3db068e86","impliedFormat":1},{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true,"impliedFormat":1},{"version":"7e20d899c28ca26a2a7afc98beaa69e63ff7fba0a8bc47b4e3bf3ede5e09e424","impliedFormat":1},{"version":"2d2fcaab481b31a5882065c7951255703ddbe1c0e507af56ea42d79ac3911201","impliedFormat":1},{"version":"a192fe8ec33f75edbc8d8f3ed79f768dfae11ff5735e7fe52bfa69956e46d78d","impliedFormat":1},{"version":"ca867399f7db82df981d6915bcbb2d81131d7d1ef683bc782b59f71dda59bc85","affectsGlobalScope":true,"impliedFormat":1},{"version":"372413016d17d804e1d139418aca0c68e47a83fb6669490857f4b318de8cccb3","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"6e70e9570e98aae2b825b533aa6292b6abd542e8d9f6e9475e88e1d7ba17c866","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"085f552d005479e2e6a7311cdbbe5d8c55c497b4d19274285df161ee9684cd9c","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"007faacc9268357caa21d24169f3f3f2497af3e9241308df2d89f6e6d9bb3f2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"74cf591a0f63db318651e0e04cb55f8791385f86e987a67fd4d2eaab8191f730","impliedFormat":1},{"version":"5eab9b3dc9b34f185417342436ec3f106898da5f4801992d8ff38ab3aff346b5","impliedFormat":1},{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","impliedFormat":1},{"version":"809821b8a065e3234a55b3a9d7846231ed18d66dd749f2494c66288d890daf7f","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"c3b41e74b9a84b88b1dca61ec39eee25c0dbc8e7d519ba11bb070918cfacf656","affectsGlobalScope":true,"impliedFormat":1},{"version":"4737a9dc24d0e68b734e6cfbcea0c15a2cfafeb493485e27905f7856988c6b29","affectsGlobalScope":true,"impliedFormat":1},{"version":"36d8d3e7506b631c9582c251a2c0b8a28855af3f76719b12b534c6edf952748d","impliedFormat":1},{"version":"1ca69210cc42729e7ca97d3a9ad48f2e9cb0042bada4075b588ae5387debd318","impliedFormat":1},{"version":"f5ebe66baaf7c552cfa59d75f2bfba679f329204847db3cec385acda245e574e","impliedFormat":1},{"version":"ed59add13139f84da271cafd32e2171876b0a0af2f798d0c663e8eeb867732cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7c5e2ea4a9749097c347454805e933844ed207b6eefec6b7cfd418b5f5f7b28","impliedFormat":1},{"version":"b1810689b76fd473bd12cc9ee219f8e62f54a7d08019a235d07424afbf074d25","impliedFormat":1}],"root":[80,81],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"alwaysStrict":true,"checkJs":false,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./dist","removeComments":true,"rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"strictBindCallApply":true,"strictFunctionTypes":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":9},"referencedMap":[[75,1],[76,2],[74,3],[73,4],[72,5],[131,6],[132,6],[133,7],[87,8],[134,9],[135,10],[136,11],[82,12],[85,13],[83,12],[84,12],[137,14],[138,15],[139,16],[140,17],[141,18],[142,19],[143,19],[144,20],[145,21],[146,22],[147,23],[88,12],[86,12],[148,24],[149,25],[150,26],[182,27],[151,28],[152,29],[153,30],[154,31],[155,32],[156,33],[157,34],[158,35],[159,36],[160,37],[161,37],[162,38],[163,12],[164,39],[166,40],[165,41],[167,42],[168,43],[169,44],[170,45],[171,46],[172,47],[173,48],[174,49],[175,50],[176,51],[177,52],[178,53],[179,54],[89,12],[90,12],[91,12],[130,55],[180,56],[181,57],[92,12],[56,12],[57,12],[11,12],[10,12],[2,12],[12,12],[13,12],[14,12],[15,12],[16,12],[17,12],[18,12],[19,12],[3,12],[20,12],[21,12],[4,12],[22,12],[26,12],[23,12],[24,12],[25,12],[27,12],[28,12],[29,12],[5,12],[30,12],[31,12],[32,12],[33,12],[6,12],[37,12],[34,12],[35,12],[36,12],[38,12],[7,12],[39,12],[44,12],[45,12],[40,12],[41,12],[42,12],[43,12],[8,12],[49,12],[46,12],[47,12],[48,12],[50,12],[9,12],[51,12],[52,12],[53,12],[55,12],[54,12],[1,12],[108,58],[118,59],[107,58],[128,60],[99,61],[98,62],[127,63],[121,64],[126,65],[101,66],[115,67],[100,68],[124,69],[96,70],[95,63],[125,71],[97,72],[102,73],[103,12],[106,73],[93,12],[129,74],[119,75],[110,76],[111,77],[113,78],[109,79],[112,80],[122,63],[104,81],[105,82],[114,83],[94,84],[117,75],[116,73],[120,12],[123,85],[71,86],[63,87],[70,88],[65,12],[66,12],[64,89],[67,90],[58,12],[59,12],[60,86],[62,91],[68,12],[69,92],[61,93],[79,94],[78,95],[77,12],[81,96],[80,97]],"semanticDiagnosticsPerFile":[[81,[{"start":4665,"length":7,"messageText":"Cannot redeclare block-scoped variable 'session'.","category":1,"code":2451},{"start":4876,"length":7,"messageText":"Cannot redeclare block-scoped variable 'session'.","category":1,"code":2451},{"start":4665,"length":7,"messageText":"Cannot redeclare block-scoped variable 'session'.","category":1,"code":2451},{"start":5280,"length":7,"messageText":"Cannot redeclare block-scoped variable 'session'.","category":1,"code":2451},{"start":382,"length":20,"code":2345,"category":1,"messageText":"Argument of type 'string' is not assignable to parameter of type 'ZodObject<{ method: ZodLiteral<string>; }, UnknownKeysParam, ZodTypeAny, { method: string; }, { method: string; }>'."},{"start":461,"length":12,"code":2345,"category":1,"messageText":"Argument of type 'string' is not assignable to parameter of type 'ZodObject<{ method: ZodLiteral<string>; }, UnknownKeysParam, ZodTypeAny, { method: string; }, { method: string; }>'."},{"start":3423,"length":12,"code":2345,"category":1,"messageText":"Argument of type 'string' is not assignable to parameter of type 'ZodObject<{ method: ZodLiteral<string>; }, UnknownKeysParam, ZodTypeAny, { method: string; }, { method: string; }>'."},{"start":3481,"length":6,"code":2339,"category":1,"messageText":"Property 'params' does not exist on type '{ method: string; }'."},{"start":3517,"length":6,"code":2339,"category":1,"messageText":"Property 'params' does not exist on type '{ method: string; }'."},{"start":3645,"length":164,"code":2345,"category":1,"messageText":{"messageText":"Argument of type '{ title: string; content: string; type: \"note\"; projectId: string; }' is not assignable to parameter of type '{ sessionId: number; title: string; content: string; type: \"note\" | \"decision\" | \"bug\" | \"discovery\"; topicKey: string | null; projectId: string; metadata: Record<string, unknown>; }'.","category":1,"code":2345,"next":[{"messageText":"Type '{ title: string; content: string; type: \"note\"; projectId: string; }' is missing the following properties from type '{ sessionId: number; title: string; content: string; type: \"note\" | \"decision\" | \"bug\" | \"discovery\"; topicKey: string | null; projectId: string; metadata: Record<string, unknown>; }': sessionId, topicKey, metadata","category":1,"code":2739}]}},{"start":4696,"length":86,"code":2345,"category":1,"messageText":{"messageText":"Argument of type '{ projectId: string; metadata: {}; }' is not assignable to parameter of type '{ projectId: string; endedAt: Date | null; metadata: Record<string, unknown>; }'.","category":1,"code":2345,"next":[{"messageText":"Property 'endedAt' is missing in type '{ projectId: string; metadata: {}; }' but required in type '{ projectId: string; endedAt: Date | null; metadata: Record<string, unknown>; }'.","category":1,"code":2741}]},"relatedInformation":[{"file":"../core/dist/memoryengine.d.ts","start":1182,"length":7,"messageText":"'endedAt' is declared here.","category":3,"code":2728}]},{"start":4810,"length":4,"code":2339,"category":1,"messageText":"Property 'uuid' does not exist on type 'Promise<Session>'.","relatedInformation":[{"start":4810,"length":4,"messageText":"Did you forget to use 'await'?","category":1,"code":2773}]},{"start":4939,"length":7,"messageText":"Variable 'session' is used before being assigned.","category":1,"code":2454},{"start":4947,"length":4,"code":2339,"category":1,"messageText":"Property 'uuid' does not exist on type 'Promise<Session>'.","relatedInformation":[{"start":4947,"length":4,"messageText":"Did you forget to use 'await'?","category":1,"code":2773}]},{"start":5033,"length":12,"code":2339,"category":1,"messageText":"Property 'listSessions' does not exist on type 'MemoryEngine'."},{"start":5358,"length":7,"messageText":"Variable 'session' is used before being assigned.","category":1,"code":2454},{"start":5453,"length":16,"code":2551,"category":1,"messageText":"Property 'listObservations' does not exist on type 'MemoryEngine'. Did you mean 'getObservation'?","relatedInformation":[{"file":"../core/dist/memoryengine.d.ts","start":793,"length":14,"messageText":"'getObservation' is declared here.","category":3,"code":2728}]},{"start":5652,"length":16,"code":2551,"category":1,"messageText":"Property 'listObservations' does not exist on type 'MemoryEngine'. Did you mean 'getObservation'?","relatedInformation":[{"file":"../core/dist/memoryengine.d.ts","start":793,"length":14,"messageText":"'getObservation' is declared here.","category":3,"code":2728}]}]]],"version":"5.9.3"}