@danielmarbach/mnemonic-mcp 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 (64) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/LICENSE +201 -0
  3. package/README.md +395 -0
  4. package/build/config.d.ts +34 -0
  5. package/build/config.d.ts.map +1 -0
  6. package/build/config.js +141 -0
  7. package/build/config.js.map +1 -0
  8. package/build/consolidate.d.ts +7 -0
  9. package/build/consolidate.d.ts.map +1 -0
  10. package/build/consolidate.js +42 -0
  11. package/build/consolidate.js.map +1 -0
  12. package/build/embeddings.d.ts +4 -0
  13. package/build/embeddings.d.ts.map +1 -0
  14. package/build/embeddings.js +32 -0
  15. package/build/embeddings.js.map +1 -0
  16. package/build/git.d.ts +70 -0
  17. package/build/git.d.ts.map +1 -0
  18. package/build/git.js +196 -0
  19. package/build/git.js.map +1 -0
  20. package/build/import.d.ts +14 -0
  21. package/build/import.d.ts.map +1 -0
  22. package/build/import.js +41 -0
  23. package/build/import.js.map +1 -0
  24. package/build/index.d.ts +3 -0
  25. package/build/index.d.ts.map +1 -0
  26. package/build/index.js +2753 -0
  27. package/build/index.js.map +1 -0
  28. package/build/markdown.d.ts +6 -0
  29. package/build/markdown.d.ts.map +1 -0
  30. package/build/markdown.js +51 -0
  31. package/build/markdown.js.map +1 -0
  32. package/build/migration.d.ts +65 -0
  33. package/build/migration.d.ts.map +1 -0
  34. package/build/migration.js +372 -0
  35. package/build/migration.js.map +1 -0
  36. package/build/project-introspection.d.ts +5 -0
  37. package/build/project-introspection.d.ts.map +1 -0
  38. package/build/project-introspection.js +28 -0
  39. package/build/project-introspection.js.map +1 -0
  40. package/build/project-memory-policy.d.ts +17 -0
  41. package/build/project-memory-policy.d.ts.map +1 -0
  42. package/build/project-memory-policy.js +16 -0
  43. package/build/project-memory-policy.js.map +1 -0
  44. package/build/project.d.ts +32 -0
  45. package/build/project.d.ts.map +1 -0
  46. package/build/project.js +125 -0
  47. package/build/project.js.map +1 -0
  48. package/build/recall.d.ts +10 -0
  49. package/build/recall.d.ts.map +1 -0
  50. package/build/recall.js +18 -0
  51. package/build/recall.js.map +1 -0
  52. package/build/storage.d.ts +58 -0
  53. package/build/storage.d.ts.map +1 -0
  54. package/build/storage.js +269 -0
  55. package/build/storage.js.map +1 -0
  56. package/build/structured-content.d.ts +1818 -0
  57. package/build/structured-content.d.ts.map +1 -0
  58. package/build/structured-content.js +267 -0
  59. package/build/structured-content.js.map +1 -0
  60. package/build/vault.d.ts +54 -0
  61. package/build/vault.d.ts.map +1 -0
  62. package/build/vault.js +144 -0
  63. package/build/vault.js.map +1 -0
  64. package/package.json +46 -0
@@ -0,0 +1,1818 @@
1
+ import { z } from "zod";
2
+ import type { NoteLifecycle, RelationshipType } from "./storage.js";
3
+ export interface PersistenceStatus {
4
+ notePath: string;
5
+ embeddingPath: string;
6
+ embedding: {
7
+ status: "written" | "skipped";
8
+ model: string;
9
+ reason?: string;
10
+ };
11
+ git: {
12
+ commit: "committed" | "skipped";
13
+ push: "pushed" | "skipped";
14
+ commitMessage?: string;
15
+ commitBody?: string;
16
+ commitReason?: string;
17
+ pushReason?: string;
18
+ };
19
+ durability: "local-only" | "committed" | "pushed";
20
+ }
21
+ export interface StructuredResponse {
22
+ content: Array<{
23
+ type: "text";
24
+ text: string;
25
+ }>;
26
+ structuredContent?: Record<string, unknown>;
27
+ }
28
+ export interface RememberResult extends Record<string, unknown> {
29
+ action: "remembered";
30
+ id: string;
31
+ title: string;
32
+ project?: {
33
+ id: string;
34
+ name: string;
35
+ };
36
+ scope: "project" | "global";
37
+ vault: "project-vault" | "main-vault";
38
+ tags: string[];
39
+ lifecycle: NoteLifecycle;
40
+ timestamp: string;
41
+ persistence: PersistenceStatus;
42
+ }
43
+ export interface RecallResult extends Record<string, unknown> {
44
+ action: "recalled";
45
+ query: string;
46
+ scope: "project" | "global" | "all";
47
+ results: Array<{
48
+ id: string;
49
+ title: string;
50
+ score: number;
51
+ boosted: number;
52
+ project?: string;
53
+ projectName?: string;
54
+ vault: "project-vault" | "main-vault";
55
+ tags: string[];
56
+ lifecycle: NoteLifecycle;
57
+ updatedAt: string;
58
+ }>;
59
+ }
60
+ export interface ListResult extends Record<string, unknown> {
61
+ action: "listed";
62
+ count: number;
63
+ scope: "project" | "global" | "all";
64
+ storedIn: "project-vault" | "main-vault" | "any";
65
+ project?: {
66
+ id: string;
67
+ name: string;
68
+ };
69
+ notes: Array<{
70
+ id: string;
71
+ title: string;
72
+ project?: string;
73
+ projectName?: string;
74
+ tags: string[];
75
+ lifecycle: NoteLifecycle;
76
+ vault: "project-vault" | "main-vault";
77
+ updatedAt: string;
78
+ hasRelated?: boolean;
79
+ }>;
80
+ options?: {
81
+ includeRelations?: boolean;
82
+ includePreview?: boolean;
83
+ includeStorage?: boolean;
84
+ includeUpdated?: boolean;
85
+ };
86
+ }
87
+ export interface GetResult extends Record<string, unknown> {
88
+ action: "got";
89
+ count: number;
90
+ notes: Array<{
91
+ id: string;
92
+ title: string;
93
+ content: string;
94
+ project?: string;
95
+ projectName?: string;
96
+ tags: string[];
97
+ lifecycle: NoteLifecycle;
98
+ relatedTo?: Array<{
99
+ id: string;
100
+ type: RelationshipType;
101
+ }>;
102
+ createdAt: string;
103
+ updatedAt: string;
104
+ vault: "project-vault" | "main-vault";
105
+ }>;
106
+ notFound: string[];
107
+ }
108
+ export interface RelateResult extends Record<string, unknown> {
109
+ action: "related" | "unrelated";
110
+ fromId: string;
111
+ toId: string;
112
+ type: RelationshipType;
113
+ bidirectional: boolean;
114
+ notesModified: string[];
115
+ }
116
+ export interface MoveResult extends Record<string, unknown> {
117
+ action: "moved";
118
+ id: string;
119
+ fromVault: "project-vault" | "main-vault";
120
+ toVault: "project-vault" | "main-vault";
121
+ projectAssociation: string;
122
+ title: string;
123
+ metadataRewritten?: boolean;
124
+ persistence: PersistenceStatus;
125
+ }
126
+ export interface UpdateResult extends Record<string, unknown> {
127
+ action: "updated";
128
+ id: string;
129
+ title: string;
130
+ fieldsModified: string[];
131
+ timestamp: string;
132
+ project?: string;
133
+ projectName?: string;
134
+ lifecycle: NoteLifecycle;
135
+ persistence: PersistenceStatus;
136
+ }
137
+ export interface ForgetResult extends Record<string, unknown> {
138
+ action: "forgotten";
139
+ id: string;
140
+ title: string;
141
+ project?: string;
142
+ projectName?: string;
143
+ relationshipsCleaned: number;
144
+ vaultsModified: string[];
145
+ }
146
+ export interface SyncResult extends Record<string, unknown> {
147
+ action: "synced";
148
+ vaults: Array<{
149
+ vault: "main" | "project";
150
+ hasRemote: boolean;
151
+ pulled: number;
152
+ deleted: number;
153
+ pushed: number;
154
+ embedded: number;
155
+ failed: string[];
156
+ }>;
157
+ }
158
+ export interface ReindexResult extends Record<string, unknown> {
159
+ action: "reindexed";
160
+ vaults: Array<{
161
+ vault: "main" | "project";
162
+ rebuilt: number;
163
+ failed: string[];
164
+ }>;
165
+ }
166
+ export interface ConsolidateResult extends Record<string, unknown> {
167
+ action: "consolidated";
168
+ strategy: string;
169
+ project?: string;
170
+ projectName?: string;
171
+ notesProcessed: number;
172
+ notesModified: number;
173
+ warnings?: string[];
174
+ persistence?: PersistenceStatus;
175
+ }
176
+ export interface ProjectIdentityResult extends Record<string, unknown> {
177
+ action: "project_identity_set" | "project_identity_shown" | "project_identity_detected";
178
+ project?: {
179
+ id: string;
180
+ name: string;
181
+ source: string;
182
+ remoteName?: string;
183
+ };
184
+ identityOverride?: {
185
+ remoteName: string;
186
+ updatedAt: string;
187
+ };
188
+ defaultProject?: {
189
+ id: string;
190
+ name: string;
191
+ remoteName?: string;
192
+ };
193
+ }
194
+ export interface MigrationListResult extends Record<string, unknown> {
195
+ action: "migration_list";
196
+ vaults: Array<{
197
+ path: string;
198
+ type: "main" | "project";
199
+ version: string;
200
+ pending: number;
201
+ }>;
202
+ available: Array<{
203
+ name: string;
204
+ description: string;
205
+ }>;
206
+ }
207
+ export interface MigrationExecuteResult extends Record<string, unknown> {
208
+ action: "migration_executed";
209
+ migration: string;
210
+ dryRun: boolean;
211
+ vaultsProcessed: number;
212
+ vaultResults: Array<{
213
+ path: string;
214
+ notesProcessed: number;
215
+ notesModified: number;
216
+ errors: Array<{
217
+ noteId: string;
218
+ error: string;
219
+ }>;
220
+ warnings: string[];
221
+ }>;
222
+ }
223
+ export interface PolicyResult extends Record<string, unknown> {
224
+ action: "policy_set" | "policy_shown";
225
+ project: {
226
+ id: string;
227
+ name: string;
228
+ };
229
+ defaultScope?: string;
230
+ consolidationMode?: string;
231
+ updatedAt?: string;
232
+ }
233
+ export interface WhereIsResult extends Record<string, unknown> {
234
+ action: "located";
235
+ id: string;
236
+ title: string;
237
+ project?: string;
238
+ projectName?: string;
239
+ vault: "project-vault" | "main-vault";
240
+ updatedAt: string;
241
+ relatedCount: number;
242
+ }
243
+ export interface MemoryGraphResult extends Record<string, unknown> {
244
+ action: "graph_shown";
245
+ project?: string;
246
+ projectName?: string;
247
+ nodes: Array<{
248
+ id: string;
249
+ title: string;
250
+ edges: Array<{
251
+ toId: string;
252
+ type: RelationshipType;
253
+ }>;
254
+ }>;
255
+ limit: number;
256
+ truncated: boolean;
257
+ }
258
+ export interface RecentResult extends Record<string, unknown> {
259
+ action: "recent_shown";
260
+ project?: string;
261
+ projectName?: string;
262
+ count: number;
263
+ limit: number;
264
+ notes: Array<{
265
+ id: string;
266
+ title: string;
267
+ project?: string;
268
+ projectName?: string;
269
+ tags: string[];
270
+ lifecycle: NoteLifecycle;
271
+ vault: "project-vault" | "main-vault";
272
+ updatedAt: string;
273
+ preview?: string;
274
+ }>;
275
+ }
276
+ export interface ProjectSummaryResult extends Record<string, unknown> {
277
+ action: "project_summary_shown";
278
+ project: {
279
+ id: string;
280
+ name: string;
281
+ };
282
+ notes: {
283
+ total: number;
284
+ projectVault: number;
285
+ mainVault: number;
286
+ privateProject: number;
287
+ };
288
+ themes: Record<string, number>;
289
+ recent: Array<{
290
+ id: string;
291
+ title: string;
292
+ updatedAt: string;
293
+ }>;
294
+ }
295
+ export declare const PersistenceStatusSchema: z.ZodObject<{
296
+ notePath: z.ZodString;
297
+ embeddingPath: z.ZodString;
298
+ embedding: z.ZodObject<{
299
+ status: z.ZodEnum<["written", "skipped"]>;
300
+ model: z.ZodString;
301
+ reason: z.ZodOptional<z.ZodString>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ status: "skipped" | "written";
304
+ model: string;
305
+ reason?: string | undefined;
306
+ }, {
307
+ status: "skipped" | "written";
308
+ model: string;
309
+ reason?: string | undefined;
310
+ }>;
311
+ git: z.ZodObject<{
312
+ commit: z.ZodEnum<["committed", "skipped"]>;
313
+ push: z.ZodEnum<["pushed", "skipped"]>;
314
+ commitMessage: z.ZodOptional<z.ZodString>;
315
+ commitBody: z.ZodOptional<z.ZodString>;
316
+ commitReason: z.ZodOptional<z.ZodString>;
317
+ pushReason: z.ZodOptional<z.ZodString>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ push: "skipped" | "pushed";
320
+ commit: "committed" | "skipped";
321
+ commitMessage?: string | undefined;
322
+ commitBody?: string | undefined;
323
+ commitReason?: string | undefined;
324
+ pushReason?: string | undefined;
325
+ }, {
326
+ push: "skipped" | "pushed";
327
+ commit: "committed" | "skipped";
328
+ commitMessage?: string | undefined;
329
+ commitBody?: string | undefined;
330
+ commitReason?: string | undefined;
331
+ pushReason?: string | undefined;
332
+ }>;
333
+ durability: z.ZodEnum<["local-only", "committed", "pushed"]>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ git: {
336
+ push: "skipped" | "pushed";
337
+ commit: "committed" | "skipped";
338
+ commitMessage?: string | undefined;
339
+ commitBody?: string | undefined;
340
+ commitReason?: string | undefined;
341
+ pushReason?: string | undefined;
342
+ };
343
+ notePath: string;
344
+ embeddingPath: string;
345
+ embedding: {
346
+ status: "skipped" | "written";
347
+ model: string;
348
+ reason?: string | undefined;
349
+ };
350
+ durability: "committed" | "pushed" | "local-only";
351
+ }, {
352
+ git: {
353
+ push: "skipped" | "pushed";
354
+ commit: "committed" | "skipped";
355
+ commitMessage?: string | undefined;
356
+ commitBody?: string | undefined;
357
+ commitReason?: string | undefined;
358
+ pushReason?: string | undefined;
359
+ };
360
+ notePath: string;
361
+ embeddingPath: string;
362
+ embedding: {
363
+ status: "skipped" | "written";
364
+ model: string;
365
+ reason?: string | undefined;
366
+ };
367
+ durability: "committed" | "pushed" | "local-only";
368
+ }>;
369
+ export declare const RememberResultSchema: z.ZodObject<{
370
+ action: z.ZodLiteral<"remembered">;
371
+ id: z.ZodString;
372
+ title: z.ZodString;
373
+ project: z.ZodOptional<z.ZodObject<{
374
+ id: z.ZodString;
375
+ name: z.ZodString;
376
+ }, "strip", z.ZodTypeAny, {
377
+ id: string;
378
+ name: string;
379
+ }, {
380
+ id: string;
381
+ name: string;
382
+ }>>;
383
+ scope: z.ZodEnum<["project", "global"]>;
384
+ vault: z.ZodEnum<["project-vault", "main-vault"]>;
385
+ tags: z.ZodArray<z.ZodString, "many">;
386
+ lifecycle: z.ZodEnum<["temporary", "permanent"]>;
387
+ timestamp: z.ZodString;
388
+ persistence: z.ZodObject<{
389
+ notePath: z.ZodString;
390
+ embeddingPath: z.ZodString;
391
+ embedding: z.ZodObject<{
392
+ status: z.ZodEnum<["written", "skipped"]>;
393
+ model: z.ZodString;
394
+ reason: z.ZodOptional<z.ZodString>;
395
+ }, "strip", z.ZodTypeAny, {
396
+ status: "skipped" | "written";
397
+ model: string;
398
+ reason?: string | undefined;
399
+ }, {
400
+ status: "skipped" | "written";
401
+ model: string;
402
+ reason?: string | undefined;
403
+ }>;
404
+ git: z.ZodObject<{
405
+ commit: z.ZodEnum<["committed", "skipped"]>;
406
+ push: z.ZodEnum<["pushed", "skipped"]>;
407
+ commitMessage: z.ZodOptional<z.ZodString>;
408
+ commitBody: z.ZodOptional<z.ZodString>;
409
+ commitReason: z.ZodOptional<z.ZodString>;
410
+ pushReason: z.ZodOptional<z.ZodString>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ push: "skipped" | "pushed";
413
+ commit: "committed" | "skipped";
414
+ commitMessage?: string | undefined;
415
+ commitBody?: string | undefined;
416
+ commitReason?: string | undefined;
417
+ pushReason?: string | undefined;
418
+ }, {
419
+ push: "skipped" | "pushed";
420
+ commit: "committed" | "skipped";
421
+ commitMessage?: string | undefined;
422
+ commitBody?: string | undefined;
423
+ commitReason?: string | undefined;
424
+ pushReason?: string | undefined;
425
+ }>;
426
+ durability: z.ZodEnum<["local-only", "committed", "pushed"]>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ git: {
429
+ push: "skipped" | "pushed";
430
+ commit: "committed" | "skipped";
431
+ commitMessage?: string | undefined;
432
+ commitBody?: string | undefined;
433
+ commitReason?: string | undefined;
434
+ pushReason?: string | undefined;
435
+ };
436
+ notePath: string;
437
+ embeddingPath: string;
438
+ embedding: {
439
+ status: "skipped" | "written";
440
+ model: string;
441
+ reason?: string | undefined;
442
+ };
443
+ durability: "committed" | "pushed" | "local-only";
444
+ }, {
445
+ git: {
446
+ push: "skipped" | "pushed";
447
+ commit: "committed" | "skipped";
448
+ commitMessage?: string | undefined;
449
+ commitBody?: string | undefined;
450
+ commitReason?: string | undefined;
451
+ pushReason?: string | undefined;
452
+ };
453
+ notePath: string;
454
+ embeddingPath: string;
455
+ embedding: {
456
+ status: "skipped" | "written";
457
+ model: string;
458
+ reason?: string | undefined;
459
+ };
460
+ durability: "committed" | "pushed" | "local-only";
461
+ }>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ id: string;
464
+ title: string;
465
+ tags: string[];
466
+ lifecycle: "temporary" | "permanent";
467
+ vault: "project-vault" | "main-vault";
468
+ action: "remembered";
469
+ scope: "project" | "global";
470
+ timestamp: string;
471
+ persistence: {
472
+ git: {
473
+ push: "skipped" | "pushed";
474
+ commit: "committed" | "skipped";
475
+ commitMessage?: string | undefined;
476
+ commitBody?: string | undefined;
477
+ commitReason?: string | undefined;
478
+ pushReason?: string | undefined;
479
+ };
480
+ notePath: string;
481
+ embeddingPath: string;
482
+ embedding: {
483
+ status: "skipped" | "written";
484
+ model: string;
485
+ reason?: string | undefined;
486
+ };
487
+ durability: "committed" | "pushed" | "local-only";
488
+ };
489
+ project?: {
490
+ id: string;
491
+ name: string;
492
+ } | undefined;
493
+ }, {
494
+ id: string;
495
+ title: string;
496
+ tags: string[];
497
+ lifecycle: "temporary" | "permanent";
498
+ vault: "project-vault" | "main-vault";
499
+ action: "remembered";
500
+ scope: "project" | "global";
501
+ timestamp: string;
502
+ persistence: {
503
+ git: {
504
+ push: "skipped" | "pushed";
505
+ commit: "committed" | "skipped";
506
+ commitMessage?: string | undefined;
507
+ commitBody?: string | undefined;
508
+ commitReason?: string | undefined;
509
+ pushReason?: string | undefined;
510
+ };
511
+ notePath: string;
512
+ embeddingPath: string;
513
+ embedding: {
514
+ status: "skipped" | "written";
515
+ model: string;
516
+ reason?: string | undefined;
517
+ };
518
+ durability: "committed" | "pushed" | "local-only";
519
+ };
520
+ project?: {
521
+ id: string;
522
+ name: string;
523
+ } | undefined;
524
+ }>;
525
+ export declare const RecallResultSchema: z.ZodObject<{
526
+ action: z.ZodLiteral<"recalled">;
527
+ query: z.ZodString;
528
+ scope: z.ZodEnum<["project", "global", "all"]>;
529
+ results: z.ZodArray<z.ZodObject<{
530
+ id: z.ZodString;
531
+ title: z.ZodString;
532
+ score: z.ZodNumber;
533
+ boosted: z.ZodNumber;
534
+ project: z.ZodOptional<z.ZodString>;
535
+ projectName: z.ZodOptional<z.ZodString>;
536
+ vault: z.ZodEnum<["project-vault", "main-vault"]>;
537
+ tags: z.ZodArray<z.ZodString, "many">;
538
+ lifecycle: z.ZodEnum<["temporary", "permanent"]>;
539
+ updatedAt: z.ZodString;
540
+ }, "strip", z.ZodTypeAny, {
541
+ id: string;
542
+ title: string;
543
+ tags: string[];
544
+ lifecycle: "temporary" | "permanent";
545
+ updatedAt: string;
546
+ vault: "project-vault" | "main-vault";
547
+ score: number;
548
+ boosted: number;
549
+ project?: string | undefined;
550
+ projectName?: string | undefined;
551
+ }, {
552
+ id: string;
553
+ title: string;
554
+ tags: string[];
555
+ lifecycle: "temporary" | "permanent";
556
+ updatedAt: string;
557
+ vault: "project-vault" | "main-vault";
558
+ score: number;
559
+ boosted: number;
560
+ project?: string | undefined;
561
+ projectName?: string | undefined;
562
+ }>, "many">;
563
+ }, "strip", z.ZodTypeAny, {
564
+ results: {
565
+ id: string;
566
+ title: string;
567
+ tags: string[];
568
+ lifecycle: "temporary" | "permanent";
569
+ updatedAt: string;
570
+ vault: "project-vault" | "main-vault";
571
+ score: number;
572
+ boosted: number;
573
+ project?: string | undefined;
574
+ projectName?: string | undefined;
575
+ }[];
576
+ action: "recalled";
577
+ scope: "project" | "global" | "all";
578
+ query: string;
579
+ }, {
580
+ results: {
581
+ id: string;
582
+ title: string;
583
+ tags: string[];
584
+ lifecycle: "temporary" | "permanent";
585
+ updatedAt: string;
586
+ vault: "project-vault" | "main-vault";
587
+ score: number;
588
+ boosted: number;
589
+ project?: string | undefined;
590
+ projectName?: string | undefined;
591
+ }[];
592
+ action: "recalled";
593
+ scope: "project" | "global" | "all";
594
+ query: string;
595
+ }>;
596
+ export declare const ListResultSchema: z.ZodObject<{
597
+ action: z.ZodLiteral<"listed">;
598
+ count: z.ZodNumber;
599
+ scope: z.ZodEnum<["project", "global", "all"]>;
600
+ storedIn: z.ZodEnum<["project-vault", "main-vault", "any"]>;
601
+ project: z.ZodOptional<z.ZodObject<{
602
+ id: z.ZodString;
603
+ name: z.ZodString;
604
+ }, "strip", z.ZodTypeAny, {
605
+ id: string;
606
+ name: string;
607
+ }, {
608
+ id: string;
609
+ name: string;
610
+ }>>;
611
+ notes: z.ZodArray<z.ZodObject<{
612
+ id: z.ZodString;
613
+ title: z.ZodString;
614
+ project: z.ZodOptional<z.ZodString>;
615
+ projectName: z.ZodOptional<z.ZodString>;
616
+ tags: z.ZodArray<z.ZodString, "many">;
617
+ lifecycle: z.ZodEnum<["temporary", "permanent"]>;
618
+ vault: z.ZodEnum<["project-vault", "main-vault"]>;
619
+ updatedAt: z.ZodString;
620
+ hasRelated: z.ZodOptional<z.ZodBoolean>;
621
+ }, "strip", z.ZodTypeAny, {
622
+ id: string;
623
+ title: string;
624
+ tags: string[];
625
+ lifecycle: "temporary" | "permanent";
626
+ updatedAt: string;
627
+ vault: "project-vault" | "main-vault";
628
+ project?: string | undefined;
629
+ projectName?: string | undefined;
630
+ hasRelated?: boolean | undefined;
631
+ }, {
632
+ id: string;
633
+ title: string;
634
+ tags: string[];
635
+ lifecycle: "temporary" | "permanent";
636
+ updatedAt: string;
637
+ vault: "project-vault" | "main-vault";
638
+ project?: string | undefined;
639
+ projectName?: string | undefined;
640
+ hasRelated?: boolean | undefined;
641
+ }>, "many">;
642
+ options: z.ZodOptional<z.ZodObject<{
643
+ includeRelations: z.ZodOptional<z.ZodBoolean>;
644
+ includePreview: z.ZodOptional<z.ZodBoolean>;
645
+ includeStorage: z.ZodOptional<z.ZodBoolean>;
646
+ includeUpdated: z.ZodOptional<z.ZodBoolean>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ includeRelations?: boolean | undefined;
649
+ includePreview?: boolean | undefined;
650
+ includeStorage?: boolean | undefined;
651
+ includeUpdated?: boolean | undefined;
652
+ }, {
653
+ includeRelations?: boolean | undefined;
654
+ includePreview?: boolean | undefined;
655
+ includeStorage?: boolean | undefined;
656
+ includeUpdated?: boolean | undefined;
657
+ }>>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ notes: {
660
+ id: string;
661
+ title: string;
662
+ tags: string[];
663
+ lifecycle: "temporary" | "permanent";
664
+ updatedAt: string;
665
+ vault: "project-vault" | "main-vault";
666
+ project?: string | undefined;
667
+ projectName?: string | undefined;
668
+ hasRelated?: boolean | undefined;
669
+ }[];
670
+ action: "listed";
671
+ scope: "project" | "global" | "all";
672
+ count: number;
673
+ storedIn: "project-vault" | "main-vault" | "any";
674
+ project?: {
675
+ id: string;
676
+ name: string;
677
+ } | undefined;
678
+ options?: {
679
+ includeRelations?: boolean | undefined;
680
+ includePreview?: boolean | undefined;
681
+ includeStorage?: boolean | undefined;
682
+ includeUpdated?: boolean | undefined;
683
+ } | undefined;
684
+ }, {
685
+ notes: {
686
+ id: string;
687
+ title: string;
688
+ tags: string[];
689
+ lifecycle: "temporary" | "permanent";
690
+ updatedAt: string;
691
+ vault: "project-vault" | "main-vault";
692
+ project?: string | undefined;
693
+ projectName?: string | undefined;
694
+ hasRelated?: boolean | undefined;
695
+ }[];
696
+ action: "listed";
697
+ scope: "project" | "global" | "all";
698
+ count: number;
699
+ storedIn: "project-vault" | "main-vault" | "any";
700
+ project?: {
701
+ id: string;
702
+ name: string;
703
+ } | undefined;
704
+ options?: {
705
+ includeRelations?: boolean | undefined;
706
+ includePreview?: boolean | undefined;
707
+ includeStorage?: boolean | undefined;
708
+ includeUpdated?: boolean | undefined;
709
+ } | undefined;
710
+ }>;
711
+ export declare const UpdateResultSchema: z.ZodObject<{
712
+ action: z.ZodLiteral<"updated">;
713
+ id: z.ZodString;
714
+ title: z.ZodString;
715
+ fieldsModified: z.ZodArray<z.ZodString, "many">;
716
+ timestamp: z.ZodString;
717
+ project: z.ZodOptional<z.ZodString>;
718
+ projectName: z.ZodOptional<z.ZodString>;
719
+ lifecycle: z.ZodEnum<["temporary", "permanent"]>;
720
+ persistence: z.ZodObject<{
721
+ notePath: z.ZodString;
722
+ embeddingPath: z.ZodString;
723
+ embedding: z.ZodObject<{
724
+ status: z.ZodEnum<["written", "skipped"]>;
725
+ model: z.ZodString;
726
+ reason: z.ZodOptional<z.ZodString>;
727
+ }, "strip", z.ZodTypeAny, {
728
+ status: "skipped" | "written";
729
+ model: string;
730
+ reason?: string | undefined;
731
+ }, {
732
+ status: "skipped" | "written";
733
+ model: string;
734
+ reason?: string | undefined;
735
+ }>;
736
+ git: z.ZodObject<{
737
+ commit: z.ZodEnum<["committed", "skipped"]>;
738
+ push: z.ZodEnum<["pushed", "skipped"]>;
739
+ commitMessage: z.ZodOptional<z.ZodString>;
740
+ commitBody: z.ZodOptional<z.ZodString>;
741
+ commitReason: z.ZodOptional<z.ZodString>;
742
+ pushReason: z.ZodOptional<z.ZodString>;
743
+ }, "strip", z.ZodTypeAny, {
744
+ push: "skipped" | "pushed";
745
+ commit: "committed" | "skipped";
746
+ commitMessage?: string | undefined;
747
+ commitBody?: string | undefined;
748
+ commitReason?: string | undefined;
749
+ pushReason?: string | undefined;
750
+ }, {
751
+ push: "skipped" | "pushed";
752
+ commit: "committed" | "skipped";
753
+ commitMessage?: string | undefined;
754
+ commitBody?: string | undefined;
755
+ commitReason?: string | undefined;
756
+ pushReason?: string | undefined;
757
+ }>;
758
+ durability: z.ZodEnum<["local-only", "committed", "pushed"]>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ git: {
761
+ push: "skipped" | "pushed";
762
+ commit: "committed" | "skipped";
763
+ commitMessage?: string | undefined;
764
+ commitBody?: string | undefined;
765
+ commitReason?: string | undefined;
766
+ pushReason?: string | undefined;
767
+ };
768
+ notePath: string;
769
+ embeddingPath: string;
770
+ embedding: {
771
+ status: "skipped" | "written";
772
+ model: string;
773
+ reason?: string | undefined;
774
+ };
775
+ durability: "committed" | "pushed" | "local-only";
776
+ }, {
777
+ git: {
778
+ push: "skipped" | "pushed";
779
+ commit: "committed" | "skipped";
780
+ commitMessage?: string | undefined;
781
+ commitBody?: string | undefined;
782
+ commitReason?: string | undefined;
783
+ pushReason?: string | undefined;
784
+ };
785
+ notePath: string;
786
+ embeddingPath: string;
787
+ embedding: {
788
+ status: "skipped" | "written";
789
+ model: string;
790
+ reason?: string | undefined;
791
+ };
792
+ durability: "committed" | "pushed" | "local-only";
793
+ }>;
794
+ }, "strip", z.ZodTypeAny, {
795
+ id: string;
796
+ title: string;
797
+ lifecycle: "temporary" | "permanent";
798
+ action: "updated";
799
+ timestamp: string;
800
+ persistence: {
801
+ git: {
802
+ push: "skipped" | "pushed";
803
+ commit: "committed" | "skipped";
804
+ commitMessage?: string | undefined;
805
+ commitBody?: string | undefined;
806
+ commitReason?: string | undefined;
807
+ pushReason?: string | undefined;
808
+ };
809
+ notePath: string;
810
+ embeddingPath: string;
811
+ embedding: {
812
+ status: "skipped" | "written";
813
+ model: string;
814
+ reason?: string | undefined;
815
+ };
816
+ durability: "committed" | "pushed" | "local-only";
817
+ };
818
+ fieldsModified: string[];
819
+ project?: string | undefined;
820
+ projectName?: string | undefined;
821
+ }, {
822
+ id: string;
823
+ title: string;
824
+ lifecycle: "temporary" | "permanent";
825
+ action: "updated";
826
+ timestamp: string;
827
+ persistence: {
828
+ git: {
829
+ push: "skipped" | "pushed";
830
+ commit: "committed" | "skipped";
831
+ commitMessage?: string | undefined;
832
+ commitBody?: string | undefined;
833
+ commitReason?: string | undefined;
834
+ pushReason?: string | undefined;
835
+ };
836
+ notePath: string;
837
+ embeddingPath: string;
838
+ embedding: {
839
+ status: "skipped" | "written";
840
+ model: string;
841
+ reason?: string | undefined;
842
+ };
843
+ durability: "committed" | "pushed" | "local-only";
844
+ };
845
+ fieldsModified: string[];
846
+ project?: string | undefined;
847
+ projectName?: string | undefined;
848
+ }>;
849
+ export declare const ForgetResultSchema: z.ZodObject<{
850
+ action: z.ZodLiteral<"forgotten">;
851
+ id: z.ZodString;
852
+ title: z.ZodString;
853
+ project: z.ZodOptional<z.ZodString>;
854
+ projectName: z.ZodOptional<z.ZodString>;
855
+ relationshipsCleaned: z.ZodNumber;
856
+ vaultsModified: z.ZodArray<z.ZodString, "many">;
857
+ }, "strip", z.ZodTypeAny, {
858
+ id: string;
859
+ title: string;
860
+ action: "forgotten";
861
+ relationshipsCleaned: number;
862
+ vaultsModified: string[];
863
+ project?: string | undefined;
864
+ projectName?: string | undefined;
865
+ }, {
866
+ id: string;
867
+ title: string;
868
+ action: "forgotten";
869
+ relationshipsCleaned: number;
870
+ vaultsModified: string[];
871
+ project?: string | undefined;
872
+ projectName?: string | undefined;
873
+ }>;
874
+ export declare const MoveResultSchema: z.ZodObject<{
875
+ action: z.ZodLiteral<"moved">;
876
+ id: z.ZodString;
877
+ fromVault: z.ZodEnum<["project-vault", "main-vault"]>;
878
+ toVault: z.ZodEnum<["project-vault", "main-vault"]>;
879
+ projectAssociation: z.ZodString;
880
+ title: z.ZodString;
881
+ metadataRewritten: z.ZodOptional<z.ZodBoolean>;
882
+ persistence: z.ZodObject<{
883
+ notePath: z.ZodString;
884
+ embeddingPath: z.ZodString;
885
+ embedding: z.ZodObject<{
886
+ status: z.ZodEnum<["written", "skipped"]>;
887
+ model: z.ZodString;
888
+ reason: z.ZodOptional<z.ZodString>;
889
+ }, "strip", z.ZodTypeAny, {
890
+ status: "skipped" | "written";
891
+ model: string;
892
+ reason?: string | undefined;
893
+ }, {
894
+ status: "skipped" | "written";
895
+ model: string;
896
+ reason?: string | undefined;
897
+ }>;
898
+ git: z.ZodObject<{
899
+ commit: z.ZodEnum<["committed", "skipped"]>;
900
+ push: z.ZodEnum<["pushed", "skipped"]>;
901
+ commitMessage: z.ZodOptional<z.ZodString>;
902
+ commitBody: z.ZodOptional<z.ZodString>;
903
+ commitReason: z.ZodOptional<z.ZodString>;
904
+ pushReason: z.ZodOptional<z.ZodString>;
905
+ }, "strip", z.ZodTypeAny, {
906
+ push: "skipped" | "pushed";
907
+ commit: "committed" | "skipped";
908
+ commitMessage?: string | undefined;
909
+ commitBody?: string | undefined;
910
+ commitReason?: string | undefined;
911
+ pushReason?: string | undefined;
912
+ }, {
913
+ push: "skipped" | "pushed";
914
+ commit: "committed" | "skipped";
915
+ commitMessage?: string | undefined;
916
+ commitBody?: string | undefined;
917
+ commitReason?: string | undefined;
918
+ pushReason?: string | undefined;
919
+ }>;
920
+ durability: z.ZodEnum<["local-only", "committed", "pushed"]>;
921
+ }, "strip", z.ZodTypeAny, {
922
+ git: {
923
+ push: "skipped" | "pushed";
924
+ commit: "committed" | "skipped";
925
+ commitMessage?: string | undefined;
926
+ commitBody?: string | undefined;
927
+ commitReason?: string | undefined;
928
+ pushReason?: string | undefined;
929
+ };
930
+ notePath: string;
931
+ embeddingPath: string;
932
+ embedding: {
933
+ status: "skipped" | "written";
934
+ model: string;
935
+ reason?: string | undefined;
936
+ };
937
+ durability: "committed" | "pushed" | "local-only";
938
+ }, {
939
+ git: {
940
+ push: "skipped" | "pushed";
941
+ commit: "committed" | "skipped";
942
+ commitMessage?: string | undefined;
943
+ commitBody?: string | undefined;
944
+ commitReason?: string | undefined;
945
+ pushReason?: string | undefined;
946
+ };
947
+ notePath: string;
948
+ embeddingPath: string;
949
+ embedding: {
950
+ status: "skipped" | "written";
951
+ model: string;
952
+ reason?: string | undefined;
953
+ };
954
+ durability: "committed" | "pushed" | "local-only";
955
+ }>;
956
+ }, "strip", z.ZodTypeAny, {
957
+ id: string;
958
+ title: string;
959
+ action: "moved";
960
+ persistence: {
961
+ git: {
962
+ push: "skipped" | "pushed";
963
+ commit: "committed" | "skipped";
964
+ commitMessage?: string | undefined;
965
+ commitBody?: string | undefined;
966
+ commitReason?: string | undefined;
967
+ pushReason?: string | undefined;
968
+ };
969
+ notePath: string;
970
+ embeddingPath: string;
971
+ embedding: {
972
+ status: "skipped" | "written";
973
+ model: string;
974
+ reason?: string | undefined;
975
+ };
976
+ durability: "committed" | "pushed" | "local-only";
977
+ };
978
+ fromVault: "project-vault" | "main-vault";
979
+ toVault: "project-vault" | "main-vault";
980
+ projectAssociation: string;
981
+ metadataRewritten?: boolean | undefined;
982
+ }, {
983
+ id: string;
984
+ title: string;
985
+ action: "moved";
986
+ persistence: {
987
+ git: {
988
+ push: "skipped" | "pushed";
989
+ commit: "committed" | "skipped";
990
+ commitMessage?: string | undefined;
991
+ commitBody?: string | undefined;
992
+ commitReason?: string | undefined;
993
+ pushReason?: string | undefined;
994
+ };
995
+ notePath: string;
996
+ embeddingPath: string;
997
+ embedding: {
998
+ status: "skipped" | "written";
999
+ model: string;
1000
+ reason?: string | undefined;
1001
+ };
1002
+ durability: "committed" | "pushed" | "local-only";
1003
+ };
1004
+ fromVault: "project-vault" | "main-vault";
1005
+ toVault: "project-vault" | "main-vault";
1006
+ projectAssociation: string;
1007
+ metadataRewritten?: boolean | undefined;
1008
+ }>;
1009
+ export declare const RelateResultSchema: z.ZodObject<{
1010
+ action: z.ZodEnum<["related", "unrelated"]>;
1011
+ fromId: z.ZodString;
1012
+ toId: z.ZodString;
1013
+ type: z.ZodEnum<["related-to", "explains", "example-of", "supersedes"]>;
1014
+ bidirectional: z.ZodBoolean;
1015
+ notesModified: z.ZodArray<z.ZodString, "many">;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ action: "related" | "unrelated";
1018
+ fromId: string;
1019
+ toId: string;
1020
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1021
+ bidirectional: boolean;
1022
+ notesModified: string[];
1023
+ }, {
1024
+ action: "related" | "unrelated";
1025
+ fromId: string;
1026
+ toId: string;
1027
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1028
+ bidirectional: boolean;
1029
+ notesModified: string[];
1030
+ }>;
1031
+ export declare const RecentResultSchema: z.ZodObject<{
1032
+ action: z.ZodLiteral<"recent_shown">;
1033
+ project: z.ZodOptional<z.ZodString>;
1034
+ projectName: z.ZodOptional<z.ZodString>;
1035
+ count: z.ZodNumber;
1036
+ limit: z.ZodNumber;
1037
+ notes: z.ZodArray<z.ZodObject<{
1038
+ id: z.ZodString;
1039
+ title: z.ZodString;
1040
+ project: z.ZodOptional<z.ZodString>;
1041
+ projectName: z.ZodOptional<z.ZodString>;
1042
+ tags: z.ZodArray<z.ZodString, "many">;
1043
+ lifecycle: z.ZodEnum<["temporary", "permanent"]>;
1044
+ vault: z.ZodEnum<["project-vault", "main-vault"]>;
1045
+ updatedAt: z.ZodString;
1046
+ preview: z.ZodOptional<z.ZodString>;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ id: string;
1049
+ title: string;
1050
+ tags: string[];
1051
+ lifecycle: "temporary" | "permanent";
1052
+ updatedAt: string;
1053
+ vault: "project-vault" | "main-vault";
1054
+ project?: string | undefined;
1055
+ projectName?: string | undefined;
1056
+ preview?: string | undefined;
1057
+ }, {
1058
+ id: string;
1059
+ title: string;
1060
+ tags: string[];
1061
+ lifecycle: "temporary" | "permanent";
1062
+ updatedAt: string;
1063
+ vault: "project-vault" | "main-vault";
1064
+ project?: string | undefined;
1065
+ projectName?: string | undefined;
1066
+ preview?: string | undefined;
1067
+ }>, "many">;
1068
+ }, "strip", z.ZodTypeAny, {
1069
+ notes: {
1070
+ id: string;
1071
+ title: string;
1072
+ tags: string[];
1073
+ lifecycle: "temporary" | "permanent";
1074
+ updatedAt: string;
1075
+ vault: "project-vault" | "main-vault";
1076
+ project?: string | undefined;
1077
+ projectName?: string | undefined;
1078
+ preview?: string | undefined;
1079
+ }[];
1080
+ action: "recent_shown";
1081
+ count: number;
1082
+ limit: number;
1083
+ project?: string | undefined;
1084
+ projectName?: string | undefined;
1085
+ }, {
1086
+ notes: {
1087
+ id: string;
1088
+ title: string;
1089
+ tags: string[];
1090
+ lifecycle: "temporary" | "permanent";
1091
+ updatedAt: string;
1092
+ vault: "project-vault" | "main-vault";
1093
+ project?: string | undefined;
1094
+ projectName?: string | undefined;
1095
+ preview?: string | undefined;
1096
+ }[];
1097
+ action: "recent_shown";
1098
+ count: number;
1099
+ limit: number;
1100
+ project?: string | undefined;
1101
+ projectName?: string | undefined;
1102
+ }>;
1103
+ export declare const MemoryGraphResultSchema: z.ZodObject<{
1104
+ action: z.ZodLiteral<"graph_shown">;
1105
+ project: z.ZodOptional<z.ZodString>;
1106
+ projectName: z.ZodOptional<z.ZodString>;
1107
+ nodes: z.ZodArray<z.ZodObject<{
1108
+ id: z.ZodString;
1109
+ title: z.ZodString;
1110
+ edges: z.ZodArray<z.ZodObject<{
1111
+ toId: z.ZodString;
1112
+ type: z.ZodEnum<["related-to", "explains", "example-of", "supersedes"]>;
1113
+ }, "strip", z.ZodTypeAny, {
1114
+ toId: string;
1115
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1116
+ }, {
1117
+ toId: string;
1118
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1119
+ }>, "many">;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ id: string;
1122
+ title: string;
1123
+ edges: {
1124
+ toId: string;
1125
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1126
+ }[];
1127
+ }, {
1128
+ id: string;
1129
+ title: string;
1130
+ edges: {
1131
+ toId: string;
1132
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1133
+ }[];
1134
+ }>, "many">;
1135
+ limit: z.ZodNumber;
1136
+ truncated: z.ZodBoolean;
1137
+ }, "strip", z.ZodTypeAny, {
1138
+ action: "graph_shown";
1139
+ nodes: {
1140
+ id: string;
1141
+ title: string;
1142
+ edges: {
1143
+ toId: string;
1144
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1145
+ }[];
1146
+ }[];
1147
+ limit: number;
1148
+ truncated: boolean;
1149
+ project?: string | undefined;
1150
+ projectName?: string | undefined;
1151
+ }, {
1152
+ action: "graph_shown";
1153
+ nodes: {
1154
+ id: string;
1155
+ title: string;
1156
+ edges: {
1157
+ toId: string;
1158
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1159
+ }[];
1160
+ }[];
1161
+ limit: number;
1162
+ truncated: boolean;
1163
+ project?: string | undefined;
1164
+ projectName?: string | undefined;
1165
+ }>;
1166
+ export declare const ProjectSummaryResultSchema: z.ZodObject<{
1167
+ action: z.ZodLiteral<"project_summary_shown">;
1168
+ project: z.ZodObject<{
1169
+ id: z.ZodString;
1170
+ name: z.ZodString;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ id: string;
1173
+ name: string;
1174
+ }, {
1175
+ id: string;
1176
+ name: string;
1177
+ }>;
1178
+ notes: z.ZodObject<{
1179
+ total: z.ZodNumber;
1180
+ projectVault: z.ZodNumber;
1181
+ mainVault: z.ZodNumber;
1182
+ privateProject: z.ZodNumber;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ total: number;
1185
+ projectVault: number;
1186
+ mainVault: number;
1187
+ privateProject: number;
1188
+ }, {
1189
+ total: number;
1190
+ projectVault: number;
1191
+ mainVault: number;
1192
+ privateProject: number;
1193
+ }>;
1194
+ themes: z.ZodRecord<z.ZodString, z.ZodNumber>;
1195
+ recent: z.ZodArray<z.ZodObject<{
1196
+ id: z.ZodString;
1197
+ title: z.ZodString;
1198
+ updatedAt: z.ZodString;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ id: string;
1201
+ title: string;
1202
+ updatedAt: string;
1203
+ }, {
1204
+ id: string;
1205
+ title: string;
1206
+ updatedAt: string;
1207
+ }>, "many">;
1208
+ }, "strip", z.ZodTypeAny, {
1209
+ project: {
1210
+ id: string;
1211
+ name: string;
1212
+ };
1213
+ notes: {
1214
+ total: number;
1215
+ projectVault: number;
1216
+ mainVault: number;
1217
+ privateProject: number;
1218
+ };
1219
+ action: "project_summary_shown";
1220
+ themes: Record<string, number>;
1221
+ recent: {
1222
+ id: string;
1223
+ title: string;
1224
+ updatedAt: string;
1225
+ }[];
1226
+ }, {
1227
+ project: {
1228
+ id: string;
1229
+ name: string;
1230
+ };
1231
+ notes: {
1232
+ total: number;
1233
+ projectVault: number;
1234
+ mainVault: number;
1235
+ privateProject: number;
1236
+ };
1237
+ action: "project_summary_shown";
1238
+ themes: Record<string, number>;
1239
+ recent: {
1240
+ id: string;
1241
+ title: string;
1242
+ updatedAt: string;
1243
+ }[];
1244
+ }>;
1245
+ export declare const SyncResultSchema: z.ZodObject<{
1246
+ action: z.ZodLiteral<"synced">;
1247
+ vaults: z.ZodArray<z.ZodObject<{
1248
+ vault: z.ZodEnum<["main", "project"]>;
1249
+ hasRemote: z.ZodBoolean;
1250
+ pulled: z.ZodNumber;
1251
+ deleted: z.ZodNumber;
1252
+ pushed: z.ZodNumber;
1253
+ embedded: z.ZodNumber;
1254
+ failed: z.ZodArray<z.ZodString, "many">;
1255
+ }, "strip", z.ZodTypeAny, {
1256
+ pushed: number;
1257
+ hasRemote: boolean;
1258
+ vault: "project" | "main";
1259
+ pulled: number;
1260
+ deleted: number;
1261
+ embedded: number;
1262
+ failed: string[];
1263
+ }, {
1264
+ pushed: number;
1265
+ hasRemote: boolean;
1266
+ vault: "project" | "main";
1267
+ pulled: number;
1268
+ deleted: number;
1269
+ embedded: number;
1270
+ failed: string[];
1271
+ }>, "many">;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ action: "synced";
1274
+ vaults: {
1275
+ pushed: number;
1276
+ hasRemote: boolean;
1277
+ vault: "project" | "main";
1278
+ pulled: number;
1279
+ deleted: number;
1280
+ embedded: number;
1281
+ failed: string[];
1282
+ }[];
1283
+ }, {
1284
+ action: "synced";
1285
+ vaults: {
1286
+ pushed: number;
1287
+ hasRemote: boolean;
1288
+ vault: "project" | "main";
1289
+ pulled: number;
1290
+ deleted: number;
1291
+ embedded: number;
1292
+ failed: string[];
1293
+ }[];
1294
+ }>;
1295
+ export declare const ReindexResultSchema: z.ZodObject<{
1296
+ action: z.ZodLiteral<"reindexed">;
1297
+ vaults: z.ZodArray<z.ZodObject<{
1298
+ vault: z.ZodEnum<["main", "project"]>;
1299
+ rebuilt: z.ZodNumber;
1300
+ failed: z.ZodArray<z.ZodString, "many">;
1301
+ }, "strip", z.ZodTypeAny, {
1302
+ vault: "project" | "main";
1303
+ failed: string[];
1304
+ rebuilt: number;
1305
+ }, {
1306
+ vault: "project" | "main";
1307
+ failed: string[];
1308
+ rebuilt: number;
1309
+ }>, "many">;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ action: "reindexed";
1312
+ vaults: {
1313
+ vault: "project" | "main";
1314
+ failed: string[];
1315
+ rebuilt: number;
1316
+ }[];
1317
+ }, {
1318
+ action: "reindexed";
1319
+ vaults: {
1320
+ vault: "project" | "main";
1321
+ failed: string[];
1322
+ rebuilt: number;
1323
+ }[];
1324
+ }>;
1325
+ export declare const GetResultSchema: z.ZodObject<{
1326
+ action: z.ZodLiteral<"got">;
1327
+ count: z.ZodNumber;
1328
+ notes: z.ZodArray<z.ZodObject<{
1329
+ id: z.ZodString;
1330
+ title: z.ZodString;
1331
+ content: z.ZodString;
1332
+ project: z.ZodOptional<z.ZodString>;
1333
+ projectName: z.ZodOptional<z.ZodString>;
1334
+ tags: z.ZodArray<z.ZodString, "many">;
1335
+ lifecycle: z.ZodEnum<["temporary", "permanent"]>;
1336
+ relatedTo: z.ZodOptional<z.ZodArray<z.ZodObject<{
1337
+ id: z.ZodString;
1338
+ type: z.ZodEnum<["related-to", "explains", "example-of", "supersedes"]>;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ id: string;
1341
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1342
+ }, {
1343
+ id: string;
1344
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1345
+ }>, "many">>;
1346
+ createdAt: z.ZodString;
1347
+ updatedAt: z.ZodString;
1348
+ vault: z.ZodEnum<["project-vault", "main-vault"]>;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ id: string;
1351
+ title: string;
1352
+ tags: string[];
1353
+ lifecycle: "temporary" | "permanent";
1354
+ createdAt: string;
1355
+ updatedAt: string;
1356
+ content: string;
1357
+ vault: "project-vault" | "main-vault";
1358
+ project?: string | undefined;
1359
+ projectName?: string | undefined;
1360
+ relatedTo?: {
1361
+ id: string;
1362
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1363
+ }[] | undefined;
1364
+ }, {
1365
+ id: string;
1366
+ title: string;
1367
+ tags: string[];
1368
+ lifecycle: "temporary" | "permanent";
1369
+ createdAt: string;
1370
+ updatedAt: string;
1371
+ content: string;
1372
+ vault: "project-vault" | "main-vault";
1373
+ project?: string | undefined;
1374
+ projectName?: string | undefined;
1375
+ relatedTo?: {
1376
+ id: string;
1377
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1378
+ }[] | undefined;
1379
+ }>, "many">;
1380
+ notFound: z.ZodArray<z.ZodString, "many">;
1381
+ }, "strip", z.ZodTypeAny, {
1382
+ notes: {
1383
+ id: string;
1384
+ title: string;
1385
+ tags: string[];
1386
+ lifecycle: "temporary" | "permanent";
1387
+ createdAt: string;
1388
+ updatedAt: string;
1389
+ content: string;
1390
+ vault: "project-vault" | "main-vault";
1391
+ project?: string | undefined;
1392
+ projectName?: string | undefined;
1393
+ relatedTo?: {
1394
+ id: string;
1395
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1396
+ }[] | undefined;
1397
+ }[];
1398
+ action: "got";
1399
+ count: number;
1400
+ notFound: string[];
1401
+ }, {
1402
+ notes: {
1403
+ id: string;
1404
+ title: string;
1405
+ tags: string[];
1406
+ lifecycle: "temporary" | "permanent";
1407
+ createdAt: string;
1408
+ updatedAt: string;
1409
+ content: string;
1410
+ vault: "project-vault" | "main-vault";
1411
+ project?: string | undefined;
1412
+ projectName?: string | undefined;
1413
+ relatedTo?: {
1414
+ id: string;
1415
+ type: "supersedes" | "related-to" | "explains" | "example-of";
1416
+ }[] | undefined;
1417
+ }[];
1418
+ action: "got";
1419
+ count: number;
1420
+ notFound: string[];
1421
+ }>;
1422
+ export declare const WhereIsResultSchema: z.ZodObject<{
1423
+ action: z.ZodLiteral<"located">;
1424
+ id: z.ZodString;
1425
+ title: z.ZodString;
1426
+ project: z.ZodOptional<z.ZodString>;
1427
+ projectName: z.ZodOptional<z.ZodString>;
1428
+ vault: z.ZodEnum<["project-vault", "main-vault"]>;
1429
+ updatedAt: z.ZodString;
1430
+ relatedCount: z.ZodNumber;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ id: string;
1433
+ title: string;
1434
+ updatedAt: string;
1435
+ vault: "project-vault" | "main-vault";
1436
+ action: "located";
1437
+ relatedCount: number;
1438
+ project?: string | undefined;
1439
+ projectName?: string | undefined;
1440
+ }, {
1441
+ id: string;
1442
+ title: string;
1443
+ updatedAt: string;
1444
+ vault: "project-vault" | "main-vault";
1445
+ action: "located";
1446
+ relatedCount: number;
1447
+ project?: string | undefined;
1448
+ projectName?: string | undefined;
1449
+ }>;
1450
+ export declare const ConsolidateResultSchema: z.ZodObject<{
1451
+ action: z.ZodLiteral<"consolidated">;
1452
+ strategy: z.ZodString;
1453
+ project: z.ZodOptional<z.ZodString>;
1454
+ projectName: z.ZodOptional<z.ZodString>;
1455
+ notesProcessed: z.ZodNumber;
1456
+ notesModified: z.ZodNumber;
1457
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1458
+ persistence: z.ZodOptional<z.ZodObject<{
1459
+ notePath: z.ZodString;
1460
+ embeddingPath: z.ZodString;
1461
+ embedding: z.ZodObject<{
1462
+ status: z.ZodEnum<["written", "skipped"]>;
1463
+ model: z.ZodString;
1464
+ reason: z.ZodOptional<z.ZodString>;
1465
+ }, "strip", z.ZodTypeAny, {
1466
+ status: "skipped" | "written";
1467
+ model: string;
1468
+ reason?: string | undefined;
1469
+ }, {
1470
+ status: "skipped" | "written";
1471
+ model: string;
1472
+ reason?: string | undefined;
1473
+ }>;
1474
+ git: z.ZodObject<{
1475
+ commit: z.ZodEnum<["committed", "skipped"]>;
1476
+ push: z.ZodEnum<["pushed", "skipped"]>;
1477
+ commitMessage: z.ZodOptional<z.ZodString>;
1478
+ commitBody: z.ZodOptional<z.ZodString>;
1479
+ commitReason: z.ZodOptional<z.ZodString>;
1480
+ pushReason: z.ZodOptional<z.ZodString>;
1481
+ }, "strip", z.ZodTypeAny, {
1482
+ push: "skipped" | "pushed";
1483
+ commit: "committed" | "skipped";
1484
+ commitMessage?: string | undefined;
1485
+ commitBody?: string | undefined;
1486
+ commitReason?: string | undefined;
1487
+ pushReason?: string | undefined;
1488
+ }, {
1489
+ push: "skipped" | "pushed";
1490
+ commit: "committed" | "skipped";
1491
+ commitMessage?: string | undefined;
1492
+ commitBody?: string | undefined;
1493
+ commitReason?: string | undefined;
1494
+ pushReason?: string | undefined;
1495
+ }>;
1496
+ durability: z.ZodEnum<["local-only", "committed", "pushed"]>;
1497
+ }, "strip", z.ZodTypeAny, {
1498
+ git: {
1499
+ push: "skipped" | "pushed";
1500
+ commit: "committed" | "skipped";
1501
+ commitMessage?: string | undefined;
1502
+ commitBody?: string | undefined;
1503
+ commitReason?: string | undefined;
1504
+ pushReason?: string | undefined;
1505
+ };
1506
+ notePath: string;
1507
+ embeddingPath: string;
1508
+ embedding: {
1509
+ status: "skipped" | "written";
1510
+ model: string;
1511
+ reason?: string | undefined;
1512
+ };
1513
+ durability: "committed" | "pushed" | "local-only";
1514
+ }, {
1515
+ git: {
1516
+ push: "skipped" | "pushed";
1517
+ commit: "committed" | "skipped";
1518
+ commitMessage?: string | undefined;
1519
+ commitBody?: string | undefined;
1520
+ commitReason?: string | undefined;
1521
+ pushReason?: string | undefined;
1522
+ };
1523
+ notePath: string;
1524
+ embeddingPath: string;
1525
+ embedding: {
1526
+ status: "skipped" | "written";
1527
+ model: string;
1528
+ reason?: string | undefined;
1529
+ };
1530
+ durability: "committed" | "pushed" | "local-only";
1531
+ }>>;
1532
+ }, "strip", z.ZodTypeAny, {
1533
+ action: "consolidated";
1534
+ notesModified: number;
1535
+ strategy: string;
1536
+ notesProcessed: number;
1537
+ project?: string | undefined;
1538
+ projectName?: string | undefined;
1539
+ persistence?: {
1540
+ git: {
1541
+ push: "skipped" | "pushed";
1542
+ commit: "committed" | "skipped";
1543
+ commitMessage?: string | undefined;
1544
+ commitBody?: string | undefined;
1545
+ commitReason?: string | undefined;
1546
+ pushReason?: string | undefined;
1547
+ };
1548
+ notePath: string;
1549
+ embeddingPath: string;
1550
+ embedding: {
1551
+ status: "skipped" | "written";
1552
+ model: string;
1553
+ reason?: string | undefined;
1554
+ };
1555
+ durability: "committed" | "pushed" | "local-only";
1556
+ } | undefined;
1557
+ warnings?: string[] | undefined;
1558
+ }, {
1559
+ action: "consolidated";
1560
+ notesModified: number;
1561
+ strategy: string;
1562
+ notesProcessed: number;
1563
+ project?: string | undefined;
1564
+ projectName?: string | undefined;
1565
+ persistence?: {
1566
+ git: {
1567
+ push: "skipped" | "pushed";
1568
+ commit: "committed" | "skipped";
1569
+ commitMessage?: string | undefined;
1570
+ commitBody?: string | undefined;
1571
+ commitReason?: string | undefined;
1572
+ pushReason?: string | undefined;
1573
+ };
1574
+ notePath: string;
1575
+ embeddingPath: string;
1576
+ embedding: {
1577
+ status: "skipped" | "written";
1578
+ model: string;
1579
+ reason?: string | undefined;
1580
+ };
1581
+ durability: "committed" | "pushed" | "local-only";
1582
+ } | undefined;
1583
+ warnings?: string[] | undefined;
1584
+ }>;
1585
+ export declare const ProjectIdentityResultSchema: z.ZodObject<{
1586
+ action: z.ZodEnum<["project_identity_set", "project_identity_shown", "project_identity_detected"]>;
1587
+ project: z.ZodOptional<z.ZodObject<{
1588
+ id: z.ZodString;
1589
+ name: z.ZodString;
1590
+ source: z.ZodString;
1591
+ remoteName: z.ZodOptional<z.ZodString>;
1592
+ }, "strip", z.ZodTypeAny, {
1593
+ source: string;
1594
+ id: string;
1595
+ name: string;
1596
+ remoteName?: string | undefined;
1597
+ }, {
1598
+ source: string;
1599
+ id: string;
1600
+ name: string;
1601
+ remoteName?: string | undefined;
1602
+ }>>;
1603
+ identityOverride: z.ZodOptional<z.ZodObject<{
1604
+ remoteName: z.ZodString;
1605
+ updatedAt: z.ZodString;
1606
+ }, "strip", z.ZodTypeAny, {
1607
+ remoteName: string;
1608
+ updatedAt: string;
1609
+ }, {
1610
+ remoteName: string;
1611
+ updatedAt: string;
1612
+ }>>;
1613
+ defaultProject: z.ZodOptional<z.ZodObject<{
1614
+ id: z.ZodString;
1615
+ name: z.ZodString;
1616
+ remoteName: z.ZodOptional<z.ZodString>;
1617
+ }, "strip", z.ZodTypeAny, {
1618
+ id: string;
1619
+ name: string;
1620
+ remoteName?: string | undefined;
1621
+ }, {
1622
+ id: string;
1623
+ name: string;
1624
+ remoteName?: string | undefined;
1625
+ }>>;
1626
+ }, "strip", z.ZodTypeAny, {
1627
+ action: "project_identity_set" | "project_identity_shown" | "project_identity_detected";
1628
+ project?: {
1629
+ source: string;
1630
+ id: string;
1631
+ name: string;
1632
+ remoteName?: string | undefined;
1633
+ } | undefined;
1634
+ defaultProject?: {
1635
+ id: string;
1636
+ name: string;
1637
+ remoteName?: string | undefined;
1638
+ } | undefined;
1639
+ identityOverride?: {
1640
+ remoteName: string;
1641
+ updatedAt: string;
1642
+ } | undefined;
1643
+ }, {
1644
+ action: "project_identity_set" | "project_identity_shown" | "project_identity_detected";
1645
+ project?: {
1646
+ source: string;
1647
+ id: string;
1648
+ name: string;
1649
+ remoteName?: string | undefined;
1650
+ } | undefined;
1651
+ defaultProject?: {
1652
+ id: string;
1653
+ name: string;
1654
+ remoteName?: string | undefined;
1655
+ } | undefined;
1656
+ identityOverride?: {
1657
+ remoteName: string;
1658
+ updatedAt: string;
1659
+ } | undefined;
1660
+ }>;
1661
+ export declare const MigrationListResultSchema: z.ZodObject<{
1662
+ action: z.ZodLiteral<"migration_list">;
1663
+ vaults: z.ZodArray<z.ZodObject<{
1664
+ path: z.ZodString;
1665
+ type: z.ZodEnum<["main", "project"]>;
1666
+ version: z.ZodString;
1667
+ pending: z.ZodNumber;
1668
+ }, "strip", z.ZodTypeAny, {
1669
+ type: "project" | "main";
1670
+ path: string;
1671
+ version: string;
1672
+ pending: number;
1673
+ }, {
1674
+ type: "project" | "main";
1675
+ path: string;
1676
+ version: string;
1677
+ pending: number;
1678
+ }>, "many">;
1679
+ available: z.ZodArray<z.ZodObject<{
1680
+ name: z.ZodString;
1681
+ description: z.ZodString;
1682
+ }, "strip", z.ZodTypeAny, {
1683
+ name: string;
1684
+ description: string;
1685
+ }, {
1686
+ name: string;
1687
+ description: string;
1688
+ }>, "many">;
1689
+ }, "strip", z.ZodTypeAny, {
1690
+ action: "migration_list";
1691
+ vaults: {
1692
+ type: "project" | "main";
1693
+ path: string;
1694
+ version: string;
1695
+ pending: number;
1696
+ }[];
1697
+ available: {
1698
+ name: string;
1699
+ description: string;
1700
+ }[];
1701
+ }, {
1702
+ action: "migration_list";
1703
+ vaults: {
1704
+ type: "project" | "main";
1705
+ path: string;
1706
+ version: string;
1707
+ pending: number;
1708
+ }[];
1709
+ available: {
1710
+ name: string;
1711
+ description: string;
1712
+ }[];
1713
+ }>;
1714
+ export declare const MigrationExecuteResultSchema: z.ZodObject<{
1715
+ action: z.ZodLiteral<"migration_executed">;
1716
+ migration: z.ZodString;
1717
+ dryRun: z.ZodBoolean;
1718
+ vaultsProcessed: z.ZodNumber;
1719
+ vaultResults: z.ZodArray<z.ZodObject<{
1720
+ path: z.ZodString;
1721
+ notesProcessed: z.ZodNumber;
1722
+ notesModified: z.ZodNumber;
1723
+ errors: z.ZodArray<z.ZodObject<{
1724
+ noteId: z.ZodString;
1725
+ error: z.ZodString;
1726
+ }, "strip", z.ZodTypeAny, {
1727
+ error: string;
1728
+ noteId: string;
1729
+ }, {
1730
+ error: string;
1731
+ noteId: string;
1732
+ }>, "many">;
1733
+ warnings: z.ZodArray<z.ZodString, "many">;
1734
+ }, "strip", z.ZodTypeAny, {
1735
+ notesModified: number;
1736
+ notesProcessed: number;
1737
+ warnings: string[];
1738
+ path: string;
1739
+ errors: {
1740
+ error: string;
1741
+ noteId: string;
1742
+ }[];
1743
+ }, {
1744
+ notesModified: number;
1745
+ notesProcessed: number;
1746
+ warnings: string[];
1747
+ path: string;
1748
+ errors: {
1749
+ error: string;
1750
+ noteId: string;
1751
+ }[];
1752
+ }>, "many">;
1753
+ }, "strip", z.ZodTypeAny, {
1754
+ vaultsProcessed: number;
1755
+ action: "migration_executed";
1756
+ migration: string;
1757
+ dryRun: boolean;
1758
+ vaultResults: {
1759
+ notesModified: number;
1760
+ notesProcessed: number;
1761
+ warnings: string[];
1762
+ path: string;
1763
+ errors: {
1764
+ error: string;
1765
+ noteId: string;
1766
+ }[];
1767
+ }[];
1768
+ }, {
1769
+ vaultsProcessed: number;
1770
+ action: "migration_executed";
1771
+ migration: string;
1772
+ dryRun: boolean;
1773
+ vaultResults: {
1774
+ notesModified: number;
1775
+ notesProcessed: number;
1776
+ warnings: string[];
1777
+ path: string;
1778
+ errors: {
1779
+ error: string;
1780
+ noteId: string;
1781
+ }[];
1782
+ }[];
1783
+ }>;
1784
+ export declare const PolicyResultSchema: z.ZodObject<{
1785
+ action: z.ZodEnum<["policy_set", "policy_shown"]>;
1786
+ project: z.ZodObject<{
1787
+ id: z.ZodString;
1788
+ name: z.ZodString;
1789
+ }, "strip", z.ZodTypeAny, {
1790
+ id: string;
1791
+ name: string;
1792
+ }, {
1793
+ id: string;
1794
+ name: string;
1795
+ }>;
1796
+ defaultScope: z.ZodOptional<z.ZodString>;
1797
+ consolidationMode: z.ZodOptional<z.ZodString>;
1798
+ updatedAt: z.ZodOptional<z.ZodString>;
1799
+ }, "strip", z.ZodTypeAny, {
1800
+ project: {
1801
+ id: string;
1802
+ name: string;
1803
+ };
1804
+ action: "policy_set" | "policy_shown";
1805
+ updatedAt?: string | undefined;
1806
+ defaultScope?: string | undefined;
1807
+ consolidationMode?: string | undefined;
1808
+ }, {
1809
+ project: {
1810
+ id: string;
1811
+ name: string;
1812
+ };
1813
+ action: "policy_set" | "policy_shown";
1814
+ updatedAt?: string | undefined;
1815
+ defaultScope?: string | undefined;
1816
+ consolidationMode?: string | undefined;
1817
+ }>;
1818
+ //# sourceMappingURL=structured-content.d.ts.map