@synth-coder/memhub 0.1.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.
Files changed (104) hide show
  1. package/.eslintrc.cjs +46 -0
  2. package/.github/workflows/ci.yml +74 -0
  3. package/.iflow/commands/opsx-apply.md +152 -0
  4. package/.iflow/commands/opsx-archive.md +157 -0
  5. package/.iflow/commands/opsx-explore.md +173 -0
  6. package/.iflow/commands/opsx-propose.md +106 -0
  7. package/.iflow/skills/openspec-apply-change/SKILL.md +156 -0
  8. package/.iflow/skills/openspec-archive-change/SKILL.md +114 -0
  9. package/.iflow/skills/openspec-explore/SKILL.md +288 -0
  10. package/.iflow/skills/openspec-propose/SKILL.md +110 -0
  11. package/.prettierrc +11 -0
  12. package/README.md +171 -0
  13. package/README.zh-CN.md +169 -0
  14. package/dist/src/contracts/index.d.ts +7 -0
  15. package/dist/src/contracts/index.d.ts.map +1 -0
  16. package/dist/src/contracts/index.js +10 -0
  17. package/dist/src/contracts/index.js.map +1 -0
  18. package/dist/src/contracts/mcp.d.ts +194 -0
  19. package/dist/src/contracts/mcp.d.ts.map +1 -0
  20. package/dist/src/contracts/mcp.js +112 -0
  21. package/dist/src/contracts/mcp.js.map +1 -0
  22. package/dist/src/contracts/schemas.d.ts +1153 -0
  23. package/dist/src/contracts/schemas.d.ts.map +1 -0
  24. package/dist/src/contracts/schemas.js +246 -0
  25. package/dist/src/contracts/schemas.js.map +1 -0
  26. package/dist/src/contracts/types.d.ts +328 -0
  27. package/dist/src/contracts/types.d.ts.map +1 -0
  28. package/dist/src/contracts/types.js +30 -0
  29. package/dist/src/contracts/types.js.map +1 -0
  30. package/dist/src/index.d.ts +8 -0
  31. package/dist/src/index.d.ts.map +1 -0
  32. package/dist/src/index.js +8 -0
  33. package/dist/src/index.js.map +1 -0
  34. package/dist/src/server/index.d.ts +5 -0
  35. package/dist/src/server/index.d.ts.map +1 -0
  36. package/dist/src/server/index.js +5 -0
  37. package/dist/src/server/index.js.map +1 -0
  38. package/dist/src/server/mcp-server.d.ts +80 -0
  39. package/dist/src/server/mcp-server.d.ts.map +1 -0
  40. package/dist/src/server/mcp-server.js +263 -0
  41. package/dist/src/server/mcp-server.js.map +1 -0
  42. package/dist/src/services/index.d.ts +5 -0
  43. package/dist/src/services/index.d.ts.map +1 -0
  44. package/dist/src/services/index.js +5 -0
  45. package/dist/src/services/index.js.map +1 -0
  46. package/dist/src/services/memory-service.d.ts +105 -0
  47. package/dist/src/services/memory-service.d.ts.map +1 -0
  48. package/dist/src/services/memory-service.js +447 -0
  49. package/dist/src/services/memory-service.js.map +1 -0
  50. package/dist/src/storage/frontmatter-parser.d.ts +69 -0
  51. package/dist/src/storage/frontmatter-parser.d.ts.map +1 -0
  52. package/dist/src/storage/frontmatter-parser.js +207 -0
  53. package/dist/src/storage/frontmatter-parser.js.map +1 -0
  54. package/dist/src/storage/index.d.ts +6 -0
  55. package/dist/src/storage/index.d.ts.map +1 -0
  56. package/dist/src/storage/index.js +6 -0
  57. package/dist/src/storage/index.js.map +1 -0
  58. package/dist/src/storage/markdown-storage.d.ts +76 -0
  59. package/dist/src/storage/markdown-storage.d.ts.map +1 -0
  60. package/dist/src/storage/markdown-storage.js +193 -0
  61. package/dist/src/storage/markdown-storage.js.map +1 -0
  62. package/dist/src/utils/index.d.ts +5 -0
  63. package/dist/src/utils/index.d.ts.map +1 -0
  64. package/dist/src/utils/index.js +5 -0
  65. package/dist/src/utils/index.js.map +1 -0
  66. package/dist/src/utils/slugify.d.ts +24 -0
  67. package/dist/src/utils/slugify.d.ts.map +1 -0
  68. package/dist/src/utils/slugify.js +56 -0
  69. package/dist/src/utils/slugify.js.map +1 -0
  70. package/docs/architecture.md +349 -0
  71. package/docs/contracts.md +119 -0
  72. package/docs/prompt-template.md +79 -0
  73. package/docs/proposal-close-gates.md +58 -0
  74. package/docs/tool-calling-policy.md +107 -0
  75. package/package.json +53 -0
  76. package/src/contracts/index.ts +12 -0
  77. package/src/contracts/mcp.ts +303 -0
  78. package/src/contracts/schemas.ts +311 -0
  79. package/src/contracts/types.ts +414 -0
  80. package/src/index.ts +8 -0
  81. package/src/server/index.ts +5 -0
  82. package/src/server/mcp-server.ts +352 -0
  83. package/src/services/index.ts +5 -0
  84. package/src/services/memory-service.ts +548 -0
  85. package/src/storage/frontmatter-parser.ts +243 -0
  86. package/src/storage/index.ts +6 -0
  87. package/src/storage/markdown-storage.ts +236 -0
  88. package/src/utils/index.ts +5 -0
  89. package/src/utils/slugify.ts +63 -0
  90. package/test/contracts/schemas.test.ts +313 -0
  91. package/test/contracts/types.test.ts +21 -0
  92. package/test/frontmatter-parser-more.test.ts +94 -0
  93. package/test/server/mcp-server-internals.test.ts +257 -0
  94. package/test/server/mcp-server.test.ts +97 -0
  95. package/test/services/memory-service-edge.test.ts +248 -0
  96. package/test/services/memory-service.test.ts +279 -0
  97. package/test/storage/frontmatter-parser.test.ts +223 -0
  98. package/test/storage/markdown-storage.test.ts +217 -0
  99. package/test/storage/storage-edge.test.ts +238 -0
  100. package/test/utils/slugify-edge.test.ts +94 -0
  101. package/test/utils/slugify.test.ts +68 -0
  102. package/tsconfig.json +26 -0
  103. package/tsconfig.test.json +8 -0
  104. package/vitest.config.ts +27 -0
@@ -0,0 +1,1153 @@
1
+ /**
2
+ * Zod schemas for runtime validation
3
+ * All schemas correspond to types defined in types.ts
4
+ */
5
+ import { z } from 'zod';
6
+ /** UUID v4 validation schema */
7
+ export declare const UUIDSchema: z.ZodBranded<z.ZodString, "UUID">;
8
+ /** ISO 8601 timestamp validation */
9
+ export declare const ISO8601TimestampSchema: z.ZodBranded<z.ZodString, "ISO8601">;
10
+ /** Slug validation (URL-friendly string) */
11
+ export declare const SlugSchema: z.ZodString;
12
+ /** Tag name validation */
13
+ export declare const TagSchema: z.ZodString;
14
+ /** Category name validation */
15
+ export declare const CategorySchema: z.ZodString;
16
+ /** Importance level validation (1-5) */
17
+ export declare const ImportanceSchema: z.ZodNumber;
18
+ /** STM memory entry type */
19
+ export declare const MemoryEntryTypeSchema: z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>;
20
+ /** Memory front matter schema (YAML portion) */
21
+ export declare const MemoryFrontMatterSchema: z.ZodObject<{
22
+ id: z.ZodBranded<z.ZodString, "UUID">;
23
+ created_at: z.ZodBranded<z.ZodString, "ISO8601">;
24
+ updated_at: z.ZodBranded<z.ZodString, "ISO8601">;
25
+ session_id: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
26
+ entry_type: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
27
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
28
+ category: z.ZodDefault<z.ZodString>;
29
+ importance: z.ZodDefault<z.ZodNumber>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ importance: number;
32
+ category: string;
33
+ tags: string[];
34
+ id: string & z.BRAND<"UUID">;
35
+ created_at: string & z.BRAND<"ISO8601">;
36
+ updated_at: string & z.BRAND<"ISO8601">;
37
+ session_id?: (string & z.BRAND<"UUID">) | undefined;
38
+ entry_type?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
39
+ }, {
40
+ id: string;
41
+ created_at: string;
42
+ updated_at: string;
43
+ importance?: number | undefined;
44
+ category?: string | undefined;
45
+ tags?: string[] | undefined;
46
+ session_id?: string | undefined;
47
+ entry_type?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
48
+ }>;
49
+ /** Complete memory schema */
50
+ export declare const MemorySchema: z.ZodObject<{
51
+ id: z.ZodBranded<z.ZodString, "UUID">;
52
+ createdAt: z.ZodBranded<z.ZodString, "ISO8601">;
53
+ updatedAt: z.ZodBranded<z.ZodString, "ISO8601">;
54
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
55
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
56
+ tags: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
57
+ category: z.ZodString;
58
+ importance: z.ZodNumber;
59
+ title: z.ZodString;
60
+ content: z.ZodString;
61
+ }, "strip", z.ZodTypeAny, {
62
+ createdAt: string & z.BRAND<"ISO8601">;
63
+ updatedAt: string & z.BRAND<"ISO8601">;
64
+ title: string;
65
+ importance: number;
66
+ category: string;
67
+ tags: readonly string[];
68
+ id: string & z.BRAND<"UUID">;
69
+ content: string;
70
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
71
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
72
+ }, {
73
+ createdAt: string;
74
+ updatedAt: string;
75
+ title: string;
76
+ importance: number;
77
+ category: string;
78
+ tags: readonly string[];
79
+ id: string;
80
+ content: string;
81
+ sessionId?: string | undefined;
82
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
83
+ }>;
84
+ /** Memory file schema */
85
+ export declare const MemoryFileSchema: z.ZodObject<{
86
+ path: z.ZodString;
87
+ filename: z.ZodString;
88
+ content: z.ZodString;
89
+ modifiedAt: z.ZodBranded<z.ZodString, "ISO8601">;
90
+ }, "strip", z.ZodTypeAny, {
91
+ path: string;
92
+ content: string;
93
+ filename: string;
94
+ modifiedAt: string & z.BRAND<"ISO8601">;
95
+ }, {
96
+ path: string;
97
+ content: string;
98
+ filename: string;
99
+ modifiedAt: string;
100
+ }>;
101
+ /** Search result schema */
102
+ export declare const SearchResultSchema: z.ZodObject<{
103
+ memory: z.ZodObject<{
104
+ id: z.ZodBranded<z.ZodString, "UUID">;
105
+ createdAt: z.ZodBranded<z.ZodString, "ISO8601">;
106
+ updatedAt: z.ZodBranded<z.ZodString, "ISO8601">;
107
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
108
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
109
+ tags: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
110
+ category: z.ZodString;
111
+ importance: z.ZodNumber;
112
+ title: z.ZodString;
113
+ content: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ createdAt: string & z.BRAND<"ISO8601">;
116
+ updatedAt: string & z.BRAND<"ISO8601">;
117
+ title: string;
118
+ importance: number;
119
+ category: string;
120
+ tags: readonly string[];
121
+ id: string & z.BRAND<"UUID">;
122
+ content: string;
123
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
124
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
125
+ }, {
126
+ createdAt: string;
127
+ updatedAt: string;
128
+ title: string;
129
+ importance: number;
130
+ category: string;
131
+ tags: readonly string[];
132
+ id: string;
133
+ content: string;
134
+ sessionId?: string | undefined;
135
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
136
+ }>;
137
+ score: z.ZodNumber;
138
+ matches: z.ZodArray<z.ZodString, "many">;
139
+ }, "strip", z.ZodTypeAny, {
140
+ memory: {
141
+ createdAt: string & z.BRAND<"ISO8601">;
142
+ updatedAt: string & z.BRAND<"ISO8601">;
143
+ title: string;
144
+ importance: number;
145
+ category: string;
146
+ tags: readonly string[];
147
+ id: string & z.BRAND<"UUID">;
148
+ content: string;
149
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
150
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
151
+ };
152
+ score: number;
153
+ matches: string[];
154
+ }, {
155
+ memory: {
156
+ createdAt: string;
157
+ updatedAt: string;
158
+ title: string;
159
+ importance: number;
160
+ category: string;
161
+ tags: readonly string[];
162
+ id: string;
163
+ content: string;
164
+ sessionId?: string | undefined;
165
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
166
+ };
167
+ score: number;
168
+ matches: string[];
169
+ }>;
170
+ /** List result schema */
171
+ export declare const ListResultSchema: z.ZodObject<{
172
+ memories: z.ZodArray<z.ZodObject<{
173
+ id: z.ZodBranded<z.ZodString, "UUID">;
174
+ createdAt: z.ZodBranded<z.ZodString, "ISO8601">;
175
+ updatedAt: z.ZodBranded<z.ZodString, "ISO8601">;
176
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
177
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
178
+ tags: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
179
+ category: z.ZodString;
180
+ importance: z.ZodNumber;
181
+ title: z.ZodString;
182
+ content: z.ZodString;
183
+ }, "strip", z.ZodTypeAny, {
184
+ createdAt: string & z.BRAND<"ISO8601">;
185
+ updatedAt: string & z.BRAND<"ISO8601">;
186
+ title: string;
187
+ importance: number;
188
+ category: string;
189
+ tags: readonly string[];
190
+ id: string & z.BRAND<"UUID">;
191
+ content: string;
192
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
193
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
194
+ }, {
195
+ createdAt: string;
196
+ updatedAt: string;
197
+ title: string;
198
+ importance: number;
199
+ category: string;
200
+ tags: readonly string[];
201
+ id: string;
202
+ content: string;
203
+ sessionId?: string | undefined;
204
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
205
+ }>, "many">;
206
+ total: z.ZodNumber;
207
+ hasMore: z.ZodBoolean;
208
+ }, "strip", z.ZodTypeAny, {
209
+ memories: {
210
+ createdAt: string & z.BRAND<"ISO8601">;
211
+ updatedAt: string & z.BRAND<"ISO8601">;
212
+ title: string;
213
+ importance: number;
214
+ category: string;
215
+ tags: readonly string[];
216
+ id: string & z.BRAND<"UUID">;
217
+ content: string;
218
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
219
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
220
+ }[];
221
+ total: number;
222
+ hasMore: boolean;
223
+ }, {
224
+ memories: {
225
+ createdAt: string;
226
+ updatedAt: string;
227
+ title: string;
228
+ importance: number;
229
+ category: string;
230
+ tags: readonly string[];
231
+ id: string;
232
+ content: string;
233
+ sessionId?: string | undefined;
234
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
235
+ }[];
236
+ total: number;
237
+ hasMore: boolean;
238
+ }>;
239
+ /** Create result schema */
240
+ export declare const CreateResultSchema: z.ZodObject<{
241
+ id: z.ZodBranded<z.ZodString, "UUID">;
242
+ filePath: z.ZodString;
243
+ memory: z.ZodObject<{
244
+ id: z.ZodBranded<z.ZodString, "UUID">;
245
+ createdAt: z.ZodBranded<z.ZodString, "ISO8601">;
246
+ updatedAt: z.ZodBranded<z.ZodString, "ISO8601">;
247
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
248
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
249
+ tags: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
250
+ category: z.ZodString;
251
+ importance: z.ZodNumber;
252
+ title: z.ZodString;
253
+ content: z.ZodString;
254
+ }, "strip", z.ZodTypeAny, {
255
+ createdAt: string & z.BRAND<"ISO8601">;
256
+ updatedAt: string & z.BRAND<"ISO8601">;
257
+ title: string;
258
+ importance: number;
259
+ category: string;
260
+ tags: readonly string[];
261
+ id: string & z.BRAND<"UUID">;
262
+ content: string;
263
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
264
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
265
+ }, {
266
+ createdAt: string;
267
+ updatedAt: string;
268
+ title: string;
269
+ importance: number;
270
+ category: string;
271
+ tags: readonly string[];
272
+ id: string;
273
+ content: string;
274
+ sessionId?: string | undefined;
275
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
276
+ }>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ id: string & z.BRAND<"UUID">;
279
+ memory: {
280
+ createdAt: string & z.BRAND<"ISO8601">;
281
+ updatedAt: string & z.BRAND<"ISO8601">;
282
+ title: string;
283
+ importance: number;
284
+ category: string;
285
+ tags: readonly string[];
286
+ id: string & z.BRAND<"UUID">;
287
+ content: string;
288
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
289
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
290
+ };
291
+ filePath: string;
292
+ }, {
293
+ id: string;
294
+ memory: {
295
+ createdAt: string;
296
+ updatedAt: string;
297
+ title: string;
298
+ importance: number;
299
+ category: string;
300
+ tags: readonly string[];
301
+ id: string;
302
+ content: string;
303
+ sessionId?: string | undefined;
304
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
305
+ };
306
+ filePath: string;
307
+ }>;
308
+ /** Update result schema */
309
+ export declare const UpdateResultSchema: z.ZodObject<{
310
+ memory: z.ZodObject<{
311
+ id: z.ZodBranded<z.ZodString, "UUID">;
312
+ createdAt: z.ZodBranded<z.ZodString, "ISO8601">;
313
+ updatedAt: z.ZodBranded<z.ZodString, "ISO8601">;
314
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
315
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
316
+ tags: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
317
+ category: z.ZodString;
318
+ importance: z.ZodNumber;
319
+ title: z.ZodString;
320
+ content: z.ZodString;
321
+ }, "strip", z.ZodTypeAny, {
322
+ createdAt: string & z.BRAND<"ISO8601">;
323
+ updatedAt: string & z.BRAND<"ISO8601">;
324
+ title: string;
325
+ importance: number;
326
+ category: string;
327
+ tags: readonly string[];
328
+ id: string & z.BRAND<"UUID">;
329
+ content: string;
330
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
331
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
332
+ }, {
333
+ createdAt: string;
334
+ updatedAt: string;
335
+ title: string;
336
+ importance: number;
337
+ category: string;
338
+ tags: readonly string[];
339
+ id: string;
340
+ content: string;
341
+ sessionId?: string | undefined;
342
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
343
+ }>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ memory: {
346
+ createdAt: string & z.BRAND<"ISO8601">;
347
+ updatedAt: string & z.BRAND<"ISO8601">;
348
+ title: string;
349
+ importance: number;
350
+ category: string;
351
+ tags: readonly string[];
352
+ id: string & z.BRAND<"UUID">;
353
+ content: string;
354
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
355
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
356
+ };
357
+ }, {
358
+ memory: {
359
+ createdAt: string;
360
+ updatedAt: string;
361
+ title: string;
362
+ importance: number;
363
+ category: string;
364
+ tags: readonly string[];
365
+ id: string;
366
+ content: string;
367
+ sessionId?: string | undefined;
368
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
369
+ };
370
+ }>;
371
+ /** Delete result schema */
372
+ export declare const DeleteResultSchema: z.ZodObject<{
373
+ success: z.ZodBoolean;
374
+ filePath: z.ZodString;
375
+ }, "strip", z.ZodTypeAny, {
376
+ filePath: string;
377
+ success: boolean;
378
+ }, {
379
+ filePath: string;
380
+ success: boolean;
381
+ }>;
382
+ /** Sort field enum */
383
+ export declare const SortFieldSchema: z.ZodEnum<["createdAt", "updatedAt", "title", "importance"]>;
384
+ /** Sort order enum */
385
+ export declare const SortOrderSchema: z.ZodEnum<["asc", "desc"]>;
386
+ /** Memory filter schema */
387
+ export declare const MemoryFilterSchema: z.ZodObject<{
388
+ category: z.ZodOptional<z.ZodString>;
389
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
390
+ fromDate: z.ZodOptional<z.ZodBranded<z.ZodString, "ISO8601">>;
391
+ toDate: z.ZodOptional<z.ZodBranded<z.ZodString, "ISO8601">>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ category?: string | undefined;
394
+ tags?: string[] | undefined;
395
+ fromDate?: (string & z.BRAND<"ISO8601">) | undefined;
396
+ toDate?: (string & z.BRAND<"ISO8601">) | undefined;
397
+ }, {
398
+ category?: string | undefined;
399
+ tags?: string[] | undefined;
400
+ fromDate?: string | undefined;
401
+ toDate?: string | undefined;
402
+ }>;
403
+ /** Pagination options schema */
404
+ export declare const PaginationOptionsSchema: z.ZodObject<{
405
+ limit: z.ZodDefault<z.ZodNumber>;
406
+ offset: z.ZodDefault<z.ZodNumber>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ limit: number;
409
+ offset: number;
410
+ }, {
411
+ limit?: number | undefined;
412
+ offset?: number | undefined;
413
+ }>;
414
+ /** Sort options schema */
415
+ export declare const SortOptionsSchema: z.ZodObject<{
416
+ sortBy: z.ZodDefault<z.ZodEnum<["createdAt", "updatedAt", "title", "importance"]>>;
417
+ sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ sortBy: "createdAt" | "updatedAt" | "title" | "importance";
420
+ sortOrder: "asc" | "desc";
421
+ }, {
422
+ sortBy?: "createdAt" | "updatedAt" | "title" | "importance" | undefined;
423
+ sortOrder?: "asc" | "desc" | undefined;
424
+ }>;
425
+ /** Create memory input schema */
426
+ export declare const CreateMemoryInputSchema: z.ZodObject<{
427
+ title: z.ZodString;
428
+ content: z.ZodString;
429
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
430
+ category: z.ZodDefault<z.ZodString>;
431
+ importance: z.ZodDefault<z.ZodNumber>;
432
+ }, "strip", z.ZodTypeAny, {
433
+ title: string;
434
+ importance: number;
435
+ category: string;
436
+ tags: string[];
437
+ content: string;
438
+ }, {
439
+ title: string;
440
+ content: string;
441
+ importance?: number | undefined;
442
+ category?: string | undefined;
443
+ tags?: string[] | undefined;
444
+ }>;
445
+ /** Read memory input schema */
446
+ export declare const ReadMemoryInputSchema: z.ZodObject<{
447
+ id: z.ZodBranded<z.ZodString, "UUID">;
448
+ }, "strip", z.ZodTypeAny, {
449
+ id: string & z.BRAND<"UUID">;
450
+ }, {
451
+ id: string;
452
+ }>;
453
+ /** Update memory input schema */
454
+ export declare const UpdateMemoryInputSchema: z.ZodObject<{
455
+ id: z.ZodBranded<z.ZodString, "UUID">;
456
+ title: z.ZodOptional<z.ZodString>;
457
+ content: z.ZodOptional<z.ZodString>;
458
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
459
+ category: z.ZodOptional<z.ZodString>;
460
+ importance: z.ZodOptional<z.ZodNumber>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ id: string & z.BRAND<"UUID">;
463
+ title?: string | undefined;
464
+ importance?: number | undefined;
465
+ category?: string | undefined;
466
+ tags?: string[] | undefined;
467
+ content?: string | undefined;
468
+ }, {
469
+ id: string;
470
+ title?: string | undefined;
471
+ importance?: number | undefined;
472
+ category?: string | undefined;
473
+ tags?: string[] | undefined;
474
+ content?: string | undefined;
475
+ }>;
476
+ /** Delete memory input schema */
477
+ export declare const DeleteMemoryInputSchema: z.ZodObject<{
478
+ id: z.ZodBranded<z.ZodString, "UUID">;
479
+ }, "strip", z.ZodTypeAny, {
480
+ id: string & z.BRAND<"UUID">;
481
+ }, {
482
+ id: string;
483
+ }>;
484
+ /** List memory input schema */
485
+ export declare const ListMemoryInputSchema: z.ZodObject<{
486
+ category: z.ZodOptional<z.ZodString>;
487
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
488
+ fromDate: z.ZodOptional<z.ZodBranded<z.ZodString, "ISO8601">>;
489
+ toDate: z.ZodOptional<z.ZodBranded<z.ZodString, "ISO8601">>;
490
+ limit: z.ZodOptional<z.ZodNumber>;
491
+ offset: z.ZodOptional<z.ZodNumber>;
492
+ sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "title", "importance"]>>;
493
+ sortOrder: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
494
+ }, "strip", z.ZodTypeAny, {
495
+ category?: string | undefined;
496
+ tags?: string[] | undefined;
497
+ fromDate?: (string & z.BRAND<"ISO8601">) | undefined;
498
+ toDate?: (string & z.BRAND<"ISO8601">) | undefined;
499
+ limit?: number | undefined;
500
+ offset?: number | undefined;
501
+ sortBy?: "createdAt" | "updatedAt" | "title" | "importance" | undefined;
502
+ sortOrder?: "asc" | "desc" | undefined;
503
+ }, {
504
+ category?: string | undefined;
505
+ tags?: string[] | undefined;
506
+ fromDate?: string | undefined;
507
+ toDate?: string | undefined;
508
+ limit?: number | undefined;
509
+ offset?: number | undefined;
510
+ sortBy?: "createdAt" | "updatedAt" | "title" | "importance" | undefined;
511
+ sortOrder?: "asc" | "desc" | undefined;
512
+ }>;
513
+ /** Search memory input schema */
514
+ export declare const SearchMemoryInputSchema: z.ZodObject<{
515
+ query: z.ZodString;
516
+ limit: z.ZodOptional<z.ZodNumber>;
517
+ category: z.ZodOptional<z.ZodString>;
518
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
519
+ }, "strip", z.ZodTypeAny, {
520
+ query: string;
521
+ category?: string | undefined;
522
+ tags?: string[] | undefined;
523
+ limit?: number | undefined;
524
+ }, {
525
+ query: string;
526
+ category?: string | undefined;
527
+ tags?: string[] | undefined;
528
+ limit?: number | undefined;
529
+ }>;
530
+ /** memory_load input schema */
531
+ export declare const MemoryLoadInputSchema: z.ZodObject<{
532
+ id: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
533
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
534
+ date: z.ZodOptional<z.ZodString>;
535
+ query: z.ZodOptional<z.ZodString>;
536
+ category: z.ZodOptional<z.ZodString>;
537
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
538
+ limit: z.ZodOptional<z.ZodNumber>;
539
+ scope: z.ZodOptional<z.ZodEnum<["stm", "all"]>>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ category?: string | undefined;
542
+ tags?: string[] | undefined;
543
+ limit?: number | undefined;
544
+ query?: string | undefined;
545
+ id?: (string & z.BRAND<"UUID">) | undefined;
546
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
547
+ date?: string | undefined;
548
+ scope?: "stm" | "all" | undefined;
549
+ }, {
550
+ category?: string | undefined;
551
+ tags?: string[] | undefined;
552
+ limit?: number | undefined;
553
+ query?: string | undefined;
554
+ id?: string | undefined;
555
+ sessionId?: string | undefined;
556
+ date?: string | undefined;
557
+ scope?: "stm" | "all" | undefined;
558
+ }>;
559
+ /** memory_update (upsert/append) input schema */
560
+ export declare const MemoryUpdateInputV2Schema: z.ZodObject<{
561
+ id: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
562
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
563
+ mode: z.ZodDefault<z.ZodEnum<["append", "upsert"]>>;
564
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
565
+ title: z.ZodOptional<z.ZodString>;
566
+ content: z.ZodString;
567
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
568
+ category: z.ZodOptional<z.ZodString>;
569
+ importance: z.ZodOptional<z.ZodNumber>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ content: string;
572
+ mode: "append" | "upsert";
573
+ title?: string | undefined;
574
+ importance?: number | undefined;
575
+ category?: string | undefined;
576
+ tags?: string[] | undefined;
577
+ id?: (string & z.BRAND<"UUID">) | undefined;
578
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
579
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
580
+ }, {
581
+ content: string;
582
+ title?: string | undefined;
583
+ importance?: number | undefined;
584
+ category?: string | undefined;
585
+ tags?: string[] | undefined;
586
+ id?: string | undefined;
587
+ sessionId?: string | undefined;
588
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
589
+ mode?: "append" | "upsert" | undefined;
590
+ }>;
591
+ /** Create memory output schema */
592
+ export declare const CreateMemoryOutputSchema: z.ZodObject<{
593
+ id: z.ZodBranded<z.ZodString, "UUID">;
594
+ filePath: z.ZodString;
595
+ memory: z.ZodObject<{
596
+ id: z.ZodBranded<z.ZodString, "UUID">;
597
+ createdAt: z.ZodBranded<z.ZodString, "ISO8601">;
598
+ updatedAt: z.ZodBranded<z.ZodString, "ISO8601">;
599
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
600
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
601
+ tags: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
602
+ category: z.ZodString;
603
+ importance: z.ZodNumber;
604
+ title: z.ZodString;
605
+ content: z.ZodString;
606
+ }, "strip", z.ZodTypeAny, {
607
+ createdAt: string & z.BRAND<"ISO8601">;
608
+ updatedAt: string & z.BRAND<"ISO8601">;
609
+ title: string;
610
+ importance: number;
611
+ category: string;
612
+ tags: readonly string[];
613
+ id: string & z.BRAND<"UUID">;
614
+ content: string;
615
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
616
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
617
+ }, {
618
+ createdAt: string;
619
+ updatedAt: string;
620
+ title: string;
621
+ importance: number;
622
+ category: string;
623
+ tags: readonly string[];
624
+ id: string;
625
+ content: string;
626
+ sessionId?: string | undefined;
627
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
628
+ }>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ id: string & z.BRAND<"UUID">;
631
+ memory: {
632
+ createdAt: string & z.BRAND<"ISO8601">;
633
+ updatedAt: string & z.BRAND<"ISO8601">;
634
+ title: string;
635
+ importance: number;
636
+ category: string;
637
+ tags: readonly string[];
638
+ id: string & z.BRAND<"UUID">;
639
+ content: string;
640
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
641
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
642
+ };
643
+ filePath: string;
644
+ }, {
645
+ id: string;
646
+ memory: {
647
+ createdAt: string;
648
+ updatedAt: string;
649
+ title: string;
650
+ importance: number;
651
+ category: string;
652
+ tags: readonly string[];
653
+ id: string;
654
+ content: string;
655
+ sessionId?: string | undefined;
656
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
657
+ };
658
+ filePath: string;
659
+ }>;
660
+ /** Read memory output schema */
661
+ export declare const ReadMemoryOutputSchema: z.ZodObject<{
662
+ memory: z.ZodObject<{
663
+ id: z.ZodBranded<z.ZodString, "UUID">;
664
+ createdAt: z.ZodBranded<z.ZodString, "ISO8601">;
665
+ updatedAt: z.ZodBranded<z.ZodString, "ISO8601">;
666
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
667
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
668
+ tags: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
669
+ category: z.ZodString;
670
+ importance: z.ZodNumber;
671
+ title: z.ZodString;
672
+ content: z.ZodString;
673
+ }, "strip", z.ZodTypeAny, {
674
+ createdAt: string & z.BRAND<"ISO8601">;
675
+ updatedAt: string & z.BRAND<"ISO8601">;
676
+ title: string;
677
+ importance: number;
678
+ category: string;
679
+ tags: readonly string[];
680
+ id: string & z.BRAND<"UUID">;
681
+ content: string;
682
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
683
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
684
+ }, {
685
+ createdAt: string;
686
+ updatedAt: string;
687
+ title: string;
688
+ importance: number;
689
+ category: string;
690
+ tags: readonly string[];
691
+ id: string;
692
+ content: string;
693
+ sessionId?: string | undefined;
694
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
695
+ }>;
696
+ }, "strip", z.ZodTypeAny, {
697
+ memory: {
698
+ createdAt: string & z.BRAND<"ISO8601">;
699
+ updatedAt: string & z.BRAND<"ISO8601">;
700
+ title: string;
701
+ importance: number;
702
+ category: string;
703
+ tags: readonly string[];
704
+ id: string & z.BRAND<"UUID">;
705
+ content: string;
706
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
707
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
708
+ };
709
+ }, {
710
+ memory: {
711
+ createdAt: string;
712
+ updatedAt: string;
713
+ title: string;
714
+ importance: number;
715
+ category: string;
716
+ tags: readonly string[];
717
+ id: string;
718
+ content: string;
719
+ sessionId?: string | undefined;
720
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
721
+ };
722
+ }>;
723
+ /** Update memory output schema */
724
+ export declare const UpdateMemoryOutputSchema: z.ZodObject<{
725
+ memory: z.ZodObject<{
726
+ id: z.ZodBranded<z.ZodString, "UUID">;
727
+ createdAt: z.ZodBranded<z.ZodString, "ISO8601">;
728
+ updatedAt: z.ZodBranded<z.ZodString, "ISO8601">;
729
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
730
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
731
+ tags: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
732
+ category: z.ZodString;
733
+ importance: z.ZodNumber;
734
+ title: z.ZodString;
735
+ content: z.ZodString;
736
+ }, "strip", z.ZodTypeAny, {
737
+ createdAt: string & z.BRAND<"ISO8601">;
738
+ updatedAt: string & z.BRAND<"ISO8601">;
739
+ title: string;
740
+ importance: number;
741
+ category: string;
742
+ tags: readonly string[];
743
+ id: string & z.BRAND<"UUID">;
744
+ content: string;
745
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
746
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
747
+ }, {
748
+ createdAt: string;
749
+ updatedAt: string;
750
+ title: string;
751
+ importance: number;
752
+ category: string;
753
+ tags: readonly string[];
754
+ id: string;
755
+ content: string;
756
+ sessionId?: string | undefined;
757
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
758
+ }>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ memory: {
761
+ createdAt: string & z.BRAND<"ISO8601">;
762
+ updatedAt: string & z.BRAND<"ISO8601">;
763
+ title: string;
764
+ importance: number;
765
+ category: string;
766
+ tags: readonly string[];
767
+ id: string & z.BRAND<"UUID">;
768
+ content: string;
769
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
770
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
771
+ };
772
+ }, {
773
+ memory: {
774
+ createdAt: string;
775
+ updatedAt: string;
776
+ title: string;
777
+ importance: number;
778
+ category: string;
779
+ tags: readonly string[];
780
+ id: string;
781
+ content: string;
782
+ sessionId?: string | undefined;
783
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
784
+ };
785
+ }>;
786
+ export declare const MemoryLoadOutputSchema: z.ZodObject<{
787
+ items: z.ZodArray<z.ZodObject<{
788
+ id: z.ZodBranded<z.ZodString, "UUID">;
789
+ createdAt: z.ZodBranded<z.ZodString, "ISO8601">;
790
+ updatedAt: z.ZodBranded<z.ZodString, "ISO8601">;
791
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
792
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
793
+ tags: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
794
+ category: z.ZodString;
795
+ importance: z.ZodNumber;
796
+ title: z.ZodString;
797
+ content: z.ZodString;
798
+ }, "strip", z.ZodTypeAny, {
799
+ createdAt: string & z.BRAND<"ISO8601">;
800
+ updatedAt: string & z.BRAND<"ISO8601">;
801
+ title: string;
802
+ importance: number;
803
+ category: string;
804
+ tags: readonly string[];
805
+ id: string & z.BRAND<"UUID">;
806
+ content: string;
807
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
808
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
809
+ }, {
810
+ createdAt: string;
811
+ updatedAt: string;
812
+ title: string;
813
+ importance: number;
814
+ category: string;
815
+ tags: readonly string[];
816
+ id: string;
817
+ content: string;
818
+ sessionId?: string | undefined;
819
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
820
+ }>, "many">;
821
+ total: z.ZodNumber;
822
+ }, "strip", z.ZodTypeAny, {
823
+ total: number;
824
+ items: {
825
+ createdAt: string & z.BRAND<"ISO8601">;
826
+ updatedAt: string & z.BRAND<"ISO8601">;
827
+ title: string;
828
+ importance: number;
829
+ category: string;
830
+ tags: readonly string[];
831
+ id: string & z.BRAND<"UUID">;
832
+ content: string;
833
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
834
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
835
+ }[];
836
+ }, {
837
+ total: number;
838
+ items: {
839
+ createdAt: string;
840
+ updatedAt: string;
841
+ title: string;
842
+ importance: number;
843
+ category: string;
844
+ tags: readonly string[];
845
+ id: string;
846
+ content: string;
847
+ sessionId?: string | undefined;
848
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
849
+ }[];
850
+ }>;
851
+ export declare const MemoryUpdateOutputSchema: z.ZodObject<{
852
+ id: z.ZodBranded<z.ZodString, "UUID">;
853
+ sessionId: z.ZodBranded<z.ZodString, "UUID">;
854
+ filePath: z.ZodString;
855
+ created: z.ZodBoolean;
856
+ updated: z.ZodBoolean;
857
+ memory: z.ZodObject<{
858
+ id: z.ZodBranded<z.ZodString, "UUID">;
859
+ createdAt: z.ZodBranded<z.ZodString, "ISO8601">;
860
+ updatedAt: z.ZodBranded<z.ZodString, "ISO8601">;
861
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
862
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
863
+ tags: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
864
+ category: z.ZodString;
865
+ importance: z.ZodNumber;
866
+ title: z.ZodString;
867
+ content: z.ZodString;
868
+ }, "strip", z.ZodTypeAny, {
869
+ createdAt: string & z.BRAND<"ISO8601">;
870
+ updatedAt: string & z.BRAND<"ISO8601">;
871
+ title: string;
872
+ importance: number;
873
+ category: string;
874
+ tags: readonly string[];
875
+ id: string & z.BRAND<"UUID">;
876
+ content: string;
877
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
878
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
879
+ }, {
880
+ createdAt: string;
881
+ updatedAt: string;
882
+ title: string;
883
+ importance: number;
884
+ category: string;
885
+ tags: readonly string[];
886
+ id: string;
887
+ content: string;
888
+ sessionId?: string | undefined;
889
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
890
+ }>;
891
+ }, "strip", z.ZodTypeAny, {
892
+ id: string & z.BRAND<"UUID">;
893
+ sessionId: string & z.BRAND<"UUID">;
894
+ memory: {
895
+ createdAt: string & z.BRAND<"ISO8601">;
896
+ updatedAt: string & z.BRAND<"ISO8601">;
897
+ title: string;
898
+ importance: number;
899
+ category: string;
900
+ tags: readonly string[];
901
+ id: string & z.BRAND<"UUID">;
902
+ content: string;
903
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
904
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
905
+ };
906
+ filePath: string;
907
+ created: boolean;
908
+ updated: boolean;
909
+ }, {
910
+ id: string;
911
+ sessionId: string;
912
+ memory: {
913
+ createdAt: string;
914
+ updatedAt: string;
915
+ title: string;
916
+ importance: number;
917
+ category: string;
918
+ tags: readonly string[];
919
+ id: string;
920
+ content: string;
921
+ sessionId?: string | undefined;
922
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
923
+ };
924
+ filePath: string;
925
+ created: boolean;
926
+ updated: boolean;
927
+ }>;
928
+ /** Delete memory output schema */
929
+ export declare const DeleteMemoryOutputSchema: z.ZodObject<{
930
+ success: z.ZodBoolean;
931
+ filePath: z.ZodString;
932
+ }, "strip", z.ZodTypeAny, {
933
+ filePath: string;
934
+ success: boolean;
935
+ }, {
936
+ filePath: string;
937
+ success: boolean;
938
+ }>;
939
+ /** List memory output schema */
940
+ export declare const ListMemoryOutputSchema: z.ZodObject<{
941
+ memories: z.ZodArray<z.ZodObject<{
942
+ id: z.ZodBranded<z.ZodString, "UUID">;
943
+ createdAt: z.ZodBranded<z.ZodString, "ISO8601">;
944
+ updatedAt: z.ZodBranded<z.ZodString, "ISO8601">;
945
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
946
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
947
+ tags: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
948
+ category: z.ZodString;
949
+ importance: z.ZodNumber;
950
+ title: z.ZodString;
951
+ content: z.ZodString;
952
+ }, "strip", z.ZodTypeAny, {
953
+ createdAt: string & z.BRAND<"ISO8601">;
954
+ updatedAt: string & z.BRAND<"ISO8601">;
955
+ title: string;
956
+ importance: number;
957
+ category: string;
958
+ tags: readonly string[];
959
+ id: string & z.BRAND<"UUID">;
960
+ content: string;
961
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
962
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
963
+ }, {
964
+ createdAt: string;
965
+ updatedAt: string;
966
+ title: string;
967
+ importance: number;
968
+ category: string;
969
+ tags: readonly string[];
970
+ id: string;
971
+ content: string;
972
+ sessionId?: string | undefined;
973
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
974
+ }>, "many">;
975
+ total: z.ZodNumber;
976
+ hasMore: z.ZodBoolean;
977
+ }, "strip", z.ZodTypeAny, {
978
+ memories: {
979
+ createdAt: string & z.BRAND<"ISO8601">;
980
+ updatedAt: string & z.BRAND<"ISO8601">;
981
+ title: string;
982
+ importance: number;
983
+ category: string;
984
+ tags: readonly string[];
985
+ id: string & z.BRAND<"UUID">;
986
+ content: string;
987
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
988
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
989
+ }[];
990
+ total: number;
991
+ hasMore: boolean;
992
+ }, {
993
+ memories: {
994
+ createdAt: string;
995
+ updatedAt: string;
996
+ title: string;
997
+ importance: number;
998
+ category: string;
999
+ tags: readonly string[];
1000
+ id: string;
1001
+ content: string;
1002
+ sessionId?: string | undefined;
1003
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
1004
+ }[];
1005
+ total: number;
1006
+ hasMore: boolean;
1007
+ }>;
1008
+ /** Search memory output schema */
1009
+ export declare const SearchMemoryOutputSchema: z.ZodObject<{
1010
+ results: z.ZodArray<z.ZodObject<{
1011
+ memory: z.ZodObject<{
1012
+ id: z.ZodBranded<z.ZodString, "UUID">;
1013
+ createdAt: z.ZodBranded<z.ZodString, "ISO8601">;
1014
+ updatedAt: z.ZodBranded<z.ZodString, "ISO8601">;
1015
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
1016
+ entryType: z.ZodOptional<z.ZodEnum<["decision", "preference", "knowledge", "todo", "state_change"]>>;
1017
+ tags: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
1018
+ category: z.ZodString;
1019
+ importance: z.ZodNumber;
1020
+ title: z.ZodString;
1021
+ content: z.ZodString;
1022
+ }, "strip", z.ZodTypeAny, {
1023
+ createdAt: string & z.BRAND<"ISO8601">;
1024
+ updatedAt: string & z.BRAND<"ISO8601">;
1025
+ title: string;
1026
+ importance: number;
1027
+ category: string;
1028
+ tags: readonly string[];
1029
+ id: string & z.BRAND<"UUID">;
1030
+ content: string;
1031
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
1032
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
1033
+ }, {
1034
+ createdAt: string;
1035
+ updatedAt: string;
1036
+ title: string;
1037
+ importance: number;
1038
+ category: string;
1039
+ tags: readonly string[];
1040
+ id: string;
1041
+ content: string;
1042
+ sessionId?: string | undefined;
1043
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
1044
+ }>;
1045
+ score: z.ZodNumber;
1046
+ matches: z.ZodArray<z.ZodString, "many">;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ memory: {
1049
+ createdAt: string & z.BRAND<"ISO8601">;
1050
+ updatedAt: string & z.BRAND<"ISO8601">;
1051
+ title: string;
1052
+ importance: number;
1053
+ category: string;
1054
+ tags: readonly string[];
1055
+ id: string & z.BRAND<"UUID">;
1056
+ content: string;
1057
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
1058
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
1059
+ };
1060
+ score: number;
1061
+ matches: string[];
1062
+ }, {
1063
+ memory: {
1064
+ createdAt: string;
1065
+ updatedAt: string;
1066
+ title: string;
1067
+ importance: number;
1068
+ category: string;
1069
+ tags: readonly string[];
1070
+ id: string;
1071
+ content: string;
1072
+ sessionId?: string | undefined;
1073
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
1074
+ };
1075
+ score: number;
1076
+ matches: string[];
1077
+ }>, "many">;
1078
+ total: z.ZodNumber;
1079
+ }, "strip", z.ZodTypeAny, {
1080
+ total: number;
1081
+ results: {
1082
+ memory: {
1083
+ createdAt: string & z.BRAND<"ISO8601">;
1084
+ updatedAt: string & z.BRAND<"ISO8601">;
1085
+ title: string;
1086
+ importance: number;
1087
+ category: string;
1088
+ tags: readonly string[];
1089
+ id: string & z.BRAND<"UUID">;
1090
+ content: string;
1091
+ sessionId?: (string & z.BRAND<"UUID">) | undefined;
1092
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
1093
+ };
1094
+ score: number;
1095
+ matches: string[];
1096
+ }[];
1097
+ }, {
1098
+ total: number;
1099
+ results: {
1100
+ memory: {
1101
+ createdAt: string;
1102
+ updatedAt: string;
1103
+ title: string;
1104
+ importance: number;
1105
+ category: string;
1106
+ tags: readonly string[];
1107
+ id: string;
1108
+ content: string;
1109
+ sessionId?: string | undefined;
1110
+ entryType?: "decision" | "preference" | "knowledge" | "todo" | "state_change" | undefined;
1111
+ };
1112
+ score: number;
1113
+ matches: string[];
1114
+ }[];
1115
+ }>;
1116
+ /** Get categories output schema */
1117
+ export declare const GetCategoriesOutputSchema: z.ZodObject<{
1118
+ categories: z.ZodArray<z.ZodString, "many">;
1119
+ }, "strip", z.ZodTypeAny, {
1120
+ categories: string[];
1121
+ }, {
1122
+ categories: string[];
1123
+ }>;
1124
+ /** Get tags output schema */
1125
+ export declare const GetTagsOutputSchema: z.ZodObject<{
1126
+ tags: z.ZodArray<z.ZodString, "many">;
1127
+ }, "strip", z.ZodTypeAny, {
1128
+ tags: string[];
1129
+ }, {
1130
+ tags: string[];
1131
+ }>;
1132
+ /** Configuration schema */
1133
+ export declare const ConfigSchema: z.ZodObject<{
1134
+ storagePath: z.ZodString;
1135
+ logLevel: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error"]>>;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ storagePath: string;
1138
+ logLevel: "debug" | "info" | "warn" | "error";
1139
+ }, {
1140
+ storagePath: string;
1141
+ logLevel?: "debug" | "info" | "warn" | "error" | undefined;
1142
+ }>;
1143
+ /** Inferred Memory type from schema */
1144
+ export type MemoryFromSchema = z.infer<typeof MemorySchema>;
1145
+ /** Inferred CreateInput type from schema */
1146
+ export type CreateMemoryInputFromSchema = z.infer<typeof CreateMemoryInputSchema>;
1147
+ /** Inferred UpdateInput type from schema */
1148
+ export type UpdateMemoryInputFromSchema = z.infer<typeof UpdateMemoryInputSchema>;
1149
+ /** Inferred ListInput type from schema */
1150
+ export type ListMemoryInputFromSchema = z.infer<typeof ListMemoryInputSchema>;
1151
+ /** Inferred SearchInput type from schema */
1152
+ export type SearchMemoryInputFromSchema = z.infer<typeof SearchMemoryInputSchema>;
1153
+ //# sourceMappingURL=schemas.d.ts.map