@lore-co/core 0.2.14 → 0.2.16

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 (91) hide show
  1. package/dist/builtin-skills.d.ts +3 -0
  2. package/dist/builtin-skills.d.ts.map +1 -0
  3. package/dist/builtin-skills.js +4 -0
  4. package/dist/builtin-skills.js.map +1 -0
  5. package/dist/capture-conflict.d.ts +10 -0
  6. package/dist/capture-conflict.d.ts.map +1 -0
  7. package/dist/capture-conflict.js +10 -0
  8. package/dist/capture-conflict.js.map +1 -0
  9. package/dist/engine.d.ts +6 -1
  10. package/dist/engine.d.ts.map +1 -1
  11. package/dist/engine.js +44 -11
  12. package/dist/engine.js.map +1 -1
  13. package/dist/guard-evaluation.d.ts +22 -1
  14. package/dist/guard-evaluation.d.ts.map +1 -1
  15. package/dist/guard-evaluation.js +159 -4
  16. package/dist/guard-evaluation.js.map +1 -1
  17. package/dist/guard-schemas.d.ts +45 -12
  18. package/dist/guard-schemas.d.ts.map +1 -1
  19. package/dist/guard-schemas.js +3 -1
  20. package/dist/guard-schemas.js.map +1 -1
  21. package/dist/in-memory-repository.d.ts.map +1 -1
  22. package/dist/in-memory-repository.js +7 -4
  23. package/dist/in-memory-repository.js.map +1 -1
  24. package/dist/index.d.ts +4 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +4 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/injected-context.d.ts +2 -0
  29. package/dist/injected-context.d.ts.map +1 -1
  30. package/dist/injected-context.js +4 -0
  31. package/dist/injected-context.js.map +1 -1
  32. package/dist/integration-contract.d.ts +16 -16
  33. package/dist/knowledge-quality.d.ts.map +1 -1
  34. package/dist/knowledge-quality.js +3 -0
  35. package/dist/knowledge-quality.js.map +1 -1
  36. package/dist/learning-drafts.d.ts +90 -0
  37. package/dist/learning-drafts.d.ts.map +1 -1
  38. package/dist/learning-drafts.js +7 -1
  39. package/dist/learning-drafts.js.map +1 -1
  40. package/dist/learning-governance.d.ts +5 -0
  41. package/dist/learning-governance.d.ts.map +1 -1
  42. package/dist/learning-governance.js +11 -0
  43. package/dist/learning-governance.js.map +1 -1
  44. package/dist/pilot-schemas.d.ts +198 -0
  45. package/dist/pilot-schemas.d.ts.map +1 -1
  46. package/dist/pilot-schemas.js +9 -0
  47. package/dist/pilot-schemas.js.map +1 -1
  48. package/dist/ports.d.ts +4 -0
  49. package/dist/ports.d.ts.map +1 -1
  50. package/dist/prepared-context.d.ts +1 -0
  51. package/dist/prepared-context.d.ts.map +1 -1
  52. package/dist/prepared-context.js +7 -2
  53. package/dist/prepared-context.js.map +1 -1
  54. package/dist/product-usage.d.ts +2 -2
  55. package/dist/reliability-schemas.d.ts +23 -3
  56. package/dist/reliability-schemas.d.ts.map +1 -1
  57. package/dist/reliability-schemas.js +13 -0
  58. package/dist/reliability-schemas.js.map +1 -1
  59. package/dist/repository-location.d.ts +2 -0
  60. package/dist/repository-location.d.ts.map +1 -1
  61. package/dist/repository-location.js +76 -0
  62. package/dist/repository-location.js.map +1 -1
  63. package/dist/schemas.d.ts +612 -3
  64. package/dist/schemas.d.ts.map +1 -1
  65. package/dist/schemas.js +21 -5
  66. package/dist/schemas.js.map +1 -1
  67. package/dist/session-purpose.d.ts +2 -0
  68. package/dist/session-purpose.d.ts.map +1 -1
  69. package/dist/session-purpose.js +12 -0
  70. package/dist/session-purpose.js.map +1 -1
  71. package/dist/session-schemas.d.ts +83 -12
  72. package/dist/session-schemas.d.ts.map +1 -1
  73. package/dist/session-schemas.js +5 -0
  74. package/dist/session-schemas.js.map +1 -1
  75. package/dist/skill-context.d.ts +7 -0
  76. package/dist/skill-context.d.ts.map +1 -0
  77. package/dist/skill-context.js +35 -0
  78. package/dist/skill-context.js.map +1 -0
  79. package/dist/skills.d.ts +206 -0
  80. package/dist/skills.d.ts.map +1 -0
  81. package/dist/skills.js +129 -0
  82. package/dist/skills.js.map +1 -0
  83. package/dist/snapshot-schemas.d.ts +348 -0
  84. package/dist/snapshot-schemas.d.ts.map +1 -1
  85. package/dist/snapshot-schemas.js +4 -1
  86. package/dist/snapshot-schemas.js.map +1 -1
  87. package/dist/user-message.d.ts +5 -0
  88. package/dist/user-message.d.ts.map +1 -1
  89. package/dist/user-message.js +19 -0
  90. package/dist/user-message.js.map +1 -1
  91. package/package.json +11 -2
package/dist/schemas.d.ts CHANGED
@@ -1,4 +1,20 @@
1
1
  import { z } from "zod";
2
+ export declare const GuardRuleSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
+ version: z.ZodLiteral<1>;
4
+ action: z.ZodLiteral<"push">;
5
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ }, z.core.$strict>, z.ZodObject<{
7
+ version: z.ZodLiteral<1>;
8
+ action: z.ZodLiteral<"edit">;
9
+ path: z.ZodString;
10
+ }, z.core.$strict>, z.ZodObject<{
11
+ version: z.ZodLiteral<1>;
12
+ action: z.ZodEnum<{
13
+ shell: "shell";
14
+ deploy: "deploy";
15
+ commit: "commit";
16
+ }>;
17
+ }, z.core.$strict>], "action">;
2
18
  export declare const MemoryCategorySchema: z.ZodEnum<{
3
19
  architecture: "architecture";
4
20
  convention: "convention";
@@ -393,6 +409,22 @@ export declare const MemorySchema: z.ZodObject<{
393
409
  required: "required";
394
410
  advisory: "advisory";
395
411
  }>>;
412
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
413
+ version: z.ZodLiteral<1>;
414
+ action: z.ZodLiteral<"push">;
415
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
416
+ }, z.core.$strict>, z.ZodObject<{
417
+ version: z.ZodLiteral<1>;
418
+ action: z.ZodLiteral<"edit">;
419
+ path: z.ZodString;
420
+ }, z.core.$strict>, z.ZodObject<{
421
+ version: z.ZodLiteral<1>;
422
+ action: z.ZodEnum<{
423
+ shell: "shell";
424
+ deploy: "deploy";
425
+ commit: "commit";
426
+ }>;
427
+ }, z.core.$strict>], "action">>>;
396
428
  reconciliationKey: z.ZodOptional<z.ZodString>;
397
429
  fingerprint: z.ZodString;
398
430
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -451,6 +483,22 @@ export declare const LearningSchema: z.ZodObject<{
451
483
  required: "required";
452
484
  advisory: "advisory";
453
485
  }>>;
486
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
487
+ version: z.ZodLiteral<1>;
488
+ action: z.ZodLiteral<"push">;
489
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
490
+ }, z.core.$strict>, z.ZodObject<{
491
+ version: z.ZodLiteral<1>;
492
+ action: z.ZodLiteral<"edit">;
493
+ path: z.ZodString;
494
+ }, z.core.$strict>, z.ZodObject<{
495
+ version: z.ZodLiteral<1>;
496
+ action: z.ZodEnum<{
497
+ shell: "shell";
498
+ deploy: "deploy";
499
+ commit: "commit";
500
+ }>;
501
+ }, z.core.$strict>], "action">>>;
454
502
  reconciliationKey: z.ZodOptional<z.ZodString>;
455
503
  fingerprint: z.ZodString;
456
504
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -479,16 +527,31 @@ export declare const RecordProposalConflictDtoSchema: z.ZodObject<{
479
527
  }, z.core.$strict>;
480
528
  }, z.core.$strict>;
481
529
  export type RecordProposalConflictDto = z.infer<typeof RecordProposalConflictDtoSchema>;
530
+ export declare const ReviewProposalInputSchema: z.ZodObject<{
531
+ decision: z.ZodEnum<{
532
+ approve: "approve";
533
+ use_proposal: "use_proposal";
534
+ keep_both: "keep_both";
535
+ reject: "reject";
536
+ }>;
537
+ reason: z.ZodOptional<z.ZodString>;
538
+ targetMemoryId: z.ZodOptional<z.ZodUUID>;
539
+ scope: z.ZodOptional<z.ZodObject<{
540
+ organization: z.ZodOptional<z.ZodString>;
541
+ project: z.ZodOptional<z.ZodString>;
542
+ repo: z.ZodOptional<z.ZodString>;
543
+ path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
544
+ component: z.ZodOptional<z.ZodString>;
545
+ }, z.core.$strict>>;
546
+ }, z.core.$strict>;
482
547
  export declare const ReviewProposalDtoSchema: z.ZodObject<{
483
- proposalMemoryId: z.ZodUUID;
484
548
  decision: z.ZodEnum<{
485
549
  approve: "approve";
486
550
  use_proposal: "use_proposal";
487
551
  keep_both: "keep_both";
488
552
  reject: "reject";
489
553
  }>;
490
- reviewerId: z.ZodString;
491
- reason: z.ZodString;
554
+ reason: z.ZodOptional<z.ZodString>;
492
555
  targetMemoryId: z.ZodOptional<z.ZodUUID>;
493
556
  scope: z.ZodOptional<z.ZodObject<{
494
557
  organization: z.ZodOptional<z.ZodString>;
@@ -497,6 +560,8 @@ export declare const ReviewProposalDtoSchema: z.ZodObject<{
497
560
  path: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
498
561
  component: z.ZodOptional<z.ZodString>;
499
562
  }, z.core.$strict>>;
563
+ proposalMemoryId: z.ZodUUID;
564
+ reviewerId: z.ZodString;
500
565
  }, z.core.$strict>;
501
566
  export type ReviewProposalDto = z.infer<typeof ReviewProposalDtoSchema>;
502
567
  export declare const ProposalRecordSchema: z.ZodObject<{
@@ -549,6 +614,22 @@ export declare const ProposalRecordSchema: z.ZodObject<{
549
614
  required: "required";
550
615
  advisory: "advisory";
551
616
  }>>;
617
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
618
+ version: z.ZodLiteral<1>;
619
+ action: z.ZodLiteral<"push">;
620
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
621
+ }, z.core.$strict>, z.ZodObject<{
622
+ version: z.ZodLiteral<1>;
623
+ action: z.ZodLiteral<"edit">;
624
+ path: z.ZodString;
625
+ }, z.core.$strict>, z.ZodObject<{
626
+ version: z.ZodLiteral<1>;
627
+ action: z.ZodEnum<{
628
+ shell: "shell";
629
+ deploy: "deploy";
630
+ commit: "commit";
631
+ }>;
632
+ }, z.core.$strict>], "action">>>;
552
633
  reconciliationKey: z.ZodOptional<z.ZodString>;
553
634
  fingerprint: z.ZodString;
554
635
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -667,6 +748,22 @@ export declare const ProposalDetailResponseSchema: z.ZodObject<{
667
748
  required: "required";
668
749
  advisory: "advisory";
669
750
  }>>;
751
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
752
+ version: z.ZodLiteral<1>;
753
+ action: z.ZodLiteral<"push">;
754
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
755
+ }, z.core.$strict>, z.ZodObject<{
756
+ version: z.ZodLiteral<1>;
757
+ action: z.ZodLiteral<"edit">;
758
+ path: z.ZodString;
759
+ }, z.core.$strict>, z.ZodObject<{
760
+ version: z.ZodLiteral<1>;
761
+ action: z.ZodEnum<{
762
+ shell: "shell";
763
+ deploy: "deploy";
764
+ commit: "commit";
765
+ }>;
766
+ }, z.core.$strict>], "action">>>;
670
767
  reconciliationKey: z.ZodOptional<z.ZodString>;
671
768
  fingerprint: z.ZodString;
672
769
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -782,6 +879,22 @@ export declare const ProposalDetailResponseSchema: z.ZodObject<{
782
879
  required: "required";
783
880
  advisory: "advisory";
784
881
  }>>;
882
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
883
+ version: z.ZodLiteral<1>;
884
+ action: z.ZodLiteral<"push">;
885
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
886
+ }, z.core.$strict>, z.ZodObject<{
887
+ version: z.ZodLiteral<1>;
888
+ action: z.ZodLiteral<"edit">;
889
+ path: z.ZodString;
890
+ }, z.core.$strict>, z.ZodObject<{
891
+ version: z.ZodLiteral<1>;
892
+ action: z.ZodEnum<{
893
+ shell: "shell";
894
+ deploy: "deploy";
895
+ commit: "commit";
896
+ }>;
897
+ }, z.core.$strict>], "action">>>;
785
898
  reconciliationKey: z.ZodOptional<z.ZodString>;
786
899
  fingerprint: z.ZodString;
787
900
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -842,6 +955,22 @@ export declare const ProposeMemoryResultSchema: z.ZodObject<{
842
955
  required: "required";
843
956
  advisory: "advisory";
844
957
  }>>;
958
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
959
+ version: z.ZodLiteral<1>;
960
+ action: z.ZodLiteral<"push">;
961
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
962
+ }, z.core.$strict>, z.ZodObject<{
963
+ version: z.ZodLiteral<1>;
964
+ action: z.ZodLiteral<"edit">;
965
+ path: z.ZodString;
966
+ }, z.core.$strict>, z.ZodObject<{
967
+ version: z.ZodLiteral<1>;
968
+ action: z.ZodEnum<{
969
+ shell: "shell";
970
+ deploy: "deploy";
971
+ commit: "commit";
972
+ }>;
973
+ }, z.core.$strict>], "action">>>;
845
974
  reconciliationKey: z.ZodOptional<z.ZodString>;
846
975
  fingerprint: z.ZodString;
847
976
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -961,6 +1090,22 @@ export declare const ReviewProposalResponseSchema: z.ZodObject<{
961
1090
  required: "required";
962
1091
  advisory: "advisory";
963
1092
  }>>;
1093
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1094
+ version: z.ZodLiteral<1>;
1095
+ action: z.ZodLiteral<"push">;
1096
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
1097
+ }, z.core.$strict>, z.ZodObject<{
1098
+ version: z.ZodLiteral<1>;
1099
+ action: z.ZodLiteral<"edit">;
1100
+ path: z.ZodString;
1101
+ }, z.core.$strict>, z.ZodObject<{
1102
+ version: z.ZodLiteral<1>;
1103
+ action: z.ZodEnum<{
1104
+ shell: "shell";
1105
+ deploy: "deploy";
1106
+ commit: "commit";
1107
+ }>;
1108
+ }, z.core.$strict>], "action">>>;
964
1109
  reconciliationKey: z.ZodOptional<z.ZodString>;
965
1110
  fingerprint: z.ZodString;
966
1111
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -1076,6 +1221,22 @@ export declare const ReviewProposalResponseSchema: z.ZodObject<{
1076
1221
  required: "required";
1077
1222
  advisory: "advisory";
1078
1223
  }>>;
1224
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1225
+ version: z.ZodLiteral<1>;
1226
+ action: z.ZodLiteral<"push">;
1227
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
1228
+ }, z.core.$strict>, z.ZodObject<{
1229
+ version: z.ZodLiteral<1>;
1230
+ action: z.ZodLiteral<"edit">;
1231
+ path: z.ZodString;
1232
+ }, z.core.$strict>, z.ZodObject<{
1233
+ version: z.ZodLiteral<1>;
1234
+ action: z.ZodEnum<{
1235
+ shell: "shell";
1236
+ deploy: "deploy";
1237
+ commit: "commit";
1238
+ }>;
1239
+ }, z.core.$strict>], "action">>>;
1079
1240
  reconciliationKey: z.ZodOptional<z.ZodString>;
1080
1241
  fingerprint: z.ZodString;
1081
1242
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -1087,6 +1248,22 @@ export declare const ReviewProposalResponseSchema: z.ZodObject<{
1087
1248
  }, z.core.$strict>;
1088
1249
  export type ReviewProposalResponse = z.infer<typeof ReviewProposalResponseSchema>;
1089
1250
  export declare const CreateMemoryDtoSchema: z.ZodObject<{
1251
+ guardRule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1252
+ version: z.ZodLiteral<1>;
1253
+ action: z.ZodLiteral<"push">;
1254
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
1255
+ }, z.core.$strict>, z.ZodObject<{
1256
+ version: z.ZodLiteral<1>;
1257
+ action: z.ZodLiteral<"edit">;
1258
+ path: z.ZodString;
1259
+ }, z.core.$strict>, z.ZodObject<{
1260
+ version: z.ZodLiteral<1>;
1261
+ action: z.ZodEnum<{
1262
+ shell: "shell";
1263
+ deploy: "deploy";
1264
+ commit: "commit";
1265
+ }>;
1266
+ }, z.core.$strict>], "action">>;
1090
1267
  content: z.ZodString;
1091
1268
  scope: z.ZodObject<{
1092
1269
  organization: z.ZodOptional<z.ZodString>;
@@ -1119,6 +1296,22 @@ export declare const CreateMemoryDtoSchema: z.ZodObject<{
1119
1296
  }, z.core.$strict>;
1120
1297
  export type CreateMemoryDto = z.infer<typeof CreateMemoryDtoSchema>;
1121
1298
  export declare const CreateLearningDtoSchema: z.ZodObject<{
1299
+ guardRule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1300
+ version: z.ZodLiteral<1>;
1301
+ action: z.ZodLiteral<"push">;
1302
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
1303
+ }, z.core.$strict>, z.ZodObject<{
1304
+ version: z.ZodLiteral<1>;
1305
+ action: z.ZodLiteral<"edit">;
1306
+ path: z.ZodString;
1307
+ }, z.core.$strict>, z.ZodObject<{
1308
+ version: z.ZodLiteral<1>;
1309
+ action: z.ZodEnum<{
1310
+ shell: "shell";
1311
+ deploy: "deploy";
1312
+ commit: "commit";
1313
+ }>;
1314
+ }, z.core.$strict>], "action">>;
1122
1315
  content: z.ZodString;
1123
1316
  scope: z.ZodObject<{
1124
1317
  organization: z.ZodOptional<z.ZodString>;
@@ -1151,6 +1344,22 @@ export declare const CreateLearningDtoSchema: z.ZodObject<{
1151
1344
  }, z.core.$strict>;
1152
1345
  export type CreateLearningDto = CreateMemoryDto;
1153
1346
  export declare const CreateMemoryInputSchema: z.ZodObject<{
1347
+ guardRule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1348
+ version: z.ZodLiteral<1>;
1349
+ action: z.ZodLiteral<"push">;
1350
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
1351
+ }, z.core.$strict>, z.ZodObject<{
1352
+ version: z.ZodLiteral<1>;
1353
+ action: z.ZodLiteral<"edit">;
1354
+ path: z.ZodString;
1355
+ }, z.core.$strict>, z.ZodObject<{
1356
+ version: z.ZodLiteral<1>;
1357
+ action: z.ZodEnum<{
1358
+ shell: "shell";
1359
+ deploy: "deploy";
1360
+ commit: "commit";
1361
+ }>;
1362
+ }, z.core.$strict>], "action">>;
1154
1363
  content: z.ZodString;
1155
1364
  scope: z.ZodObject<{
1156
1365
  organization: z.ZodOptional<z.ZodString>;
@@ -1183,6 +1392,22 @@ export declare const CreateMemoryInputSchema: z.ZodObject<{
1183
1392
  }, z.core.$strict>;
1184
1393
  export type CreateMemoryInput = CreateMemoryDto;
1185
1394
  export declare const CreateMemoryRequestSchema: z.ZodObject<{
1395
+ guardRule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1396
+ version: z.ZodLiteral<1>;
1397
+ action: z.ZodLiteral<"push">;
1398
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
1399
+ }, z.core.$strict>, z.ZodObject<{
1400
+ version: z.ZodLiteral<1>;
1401
+ action: z.ZodLiteral<"edit">;
1402
+ path: z.ZodString;
1403
+ }, z.core.$strict>, z.ZodObject<{
1404
+ version: z.ZodLiteral<1>;
1405
+ action: z.ZodEnum<{
1406
+ shell: "shell";
1407
+ deploy: "deploy";
1408
+ commit: "commit";
1409
+ }>;
1410
+ }, z.core.$strict>], "action">>;
1186
1411
  content: z.ZodString;
1187
1412
  scope: z.ZodObject<{
1188
1413
  organization: z.ZodOptional<z.ZodString>;
@@ -1215,6 +1440,22 @@ export declare const CreateMemoryRequestSchema: z.ZodObject<{
1215
1440
  }, z.core.$strict>;
1216
1441
  export type CreateMemoryRequest = CreateMemoryDto;
1217
1442
  export declare const MemoryUpdateSchema: z.ZodObject<{
1443
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1444
+ version: z.ZodLiteral<1>;
1445
+ action: z.ZodLiteral<"push">;
1446
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
1447
+ }, z.core.$strict>, z.ZodObject<{
1448
+ version: z.ZodLiteral<1>;
1449
+ action: z.ZodLiteral<"edit">;
1450
+ path: z.ZodString;
1451
+ }, z.core.$strict>, z.ZodObject<{
1452
+ version: z.ZodLiteral<1>;
1453
+ action: z.ZodEnum<{
1454
+ shell: "shell";
1455
+ deploy: "deploy";
1456
+ commit: "commit";
1457
+ }>;
1458
+ }, z.core.$strict>], "action">>>;
1218
1459
  content: z.ZodOptional<z.ZodString>;
1219
1460
  scope: z.ZodOptional<z.ZodObject<{
1220
1461
  organization: z.ZodOptional<z.ZodString>;
@@ -1270,6 +1511,22 @@ export declare const MemoryUpdateSchema: z.ZodObject<{
1270
1511
  }, z.core.$strict>;
1271
1512
  export type MemoryUpdate = z.infer<typeof MemoryUpdateSchema>;
1272
1513
  export declare const UpdateMemoryDtoSchema: z.ZodObject<{
1514
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1515
+ version: z.ZodLiteral<1>;
1516
+ action: z.ZodLiteral<"push">;
1517
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
1518
+ }, z.core.$strict>, z.ZodObject<{
1519
+ version: z.ZodLiteral<1>;
1520
+ action: z.ZodLiteral<"edit">;
1521
+ path: z.ZodString;
1522
+ }, z.core.$strict>, z.ZodObject<{
1523
+ version: z.ZodLiteral<1>;
1524
+ action: z.ZodEnum<{
1525
+ shell: "shell";
1526
+ deploy: "deploy";
1527
+ commit: "commit";
1528
+ }>;
1529
+ }, z.core.$strict>], "action">>>;
1273
1530
  content: z.ZodOptional<z.ZodString>;
1274
1531
  scope: z.ZodOptional<z.ZodObject<{
1275
1532
  organization: z.ZodOptional<z.ZodString>;
@@ -1326,6 +1583,22 @@ export declare const UpdateMemoryDtoSchema: z.ZodObject<{
1326
1583
  }, z.core.$strict>;
1327
1584
  export type UpdateMemoryDto = z.infer<typeof UpdateMemoryDtoSchema>;
1328
1585
  export declare const UpdateMemoryInputSchema: z.ZodObject<{
1586
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1587
+ version: z.ZodLiteral<1>;
1588
+ action: z.ZodLiteral<"push">;
1589
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
1590
+ }, z.core.$strict>, z.ZodObject<{
1591
+ version: z.ZodLiteral<1>;
1592
+ action: z.ZodLiteral<"edit">;
1593
+ path: z.ZodString;
1594
+ }, z.core.$strict>, z.ZodObject<{
1595
+ version: z.ZodLiteral<1>;
1596
+ action: z.ZodEnum<{
1597
+ shell: "shell";
1598
+ deploy: "deploy";
1599
+ commit: "commit";
1600
+ }>;
1601
+ }, z.core.$strict>], "action">>>;
1329
1602
  content: z.ZodOptional<z.ZodString>;
1330
1603
  scope: z.ZodOptional<z.ZodObject<{
1331
1604
  organization: z.ZodOptional<z.ZodString>;
@@ -1748,6 +2021,22 @@ export declare const InsertMemoryResultSchema: z.ZodObject<{
1748
2021
  required: "required";
1749
2022
  advisory: "advisory";
1750
2023
  }>>;
2024
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2025
+ version: z.ZodLiteral<1>;
2026
+ action: z.ZodLiteral<"push">;
2027
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
2028
+ }, z.core.$strict>, z.ZodObject<{
2029
+ version: z.ZodLiteral<1>;
2030
+ action: z.ZodLiteral<"edit">;
2031
+ path: z.ZodString;
2032
+ }, z.core.$strict>, z.ZodObject<{
2033
+ version: z.ZodLiteral<1>;
2034
+ action: z.ZodEnum<{
2035
+ shell: "shell";
2036
+ deploy: "deploy";
2037
+ commit: "commit";
2038
+ }>;
2039
+ }, z.core.$strict>], "action">>>;
1751
2040
  reconciliationKey: z.ZodOptional<z.ZodString>;
1752
2041
  fingerprint: z.ZodString;
1753
2042
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -1809,6 +2098,22 @@ export declare const ListMemoriesResponseSchema: z.ZodObject<{
1809
2098
  required: "required";
1810
2099
  advisory: "advisory";
1811
2100
  }>>;
2101
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2102
+ version: z.ZodLiteral<1>;
2103
+ action: z.ZodLiteral<"push">;
2104
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
2105
+ }, z.core.$strict>, z.ZodObject<{
2106
+ version: z.ZodLiteral<1>;
2107
+ action: z.ZodLiteral<"edit">;
2108
+ path: z.ZodString;
2109
+ }, z.core.$strict>, z.ZodObject<{
2110
+ version: z.ZodLiteral<1>;
2111
+ action: z.ZodEnum<{
2112
+ shell: "shell";
2113
+ deploy: "deploy";
2114
+ commit: "commit";
2115
+ }>;
2116
+ }, z.core.$strict>], "action">>>;
1812
2117
  reconciliationKey: z.ZodOptional<z.ZodString>;
1813
2118
  fingerprint: z.ZodString;
1814
2119
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -1872,6 +2177,22 @@ export declare const ListLearningsResponseSchema: z.ZodObject<{
1872
2177
  required: "required";
1873
2178
  advisory: "advisory";
1874
2179
  }>>;
2180
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2181
+ version: z.ZodLiteral<1>;
2182
+ action: z.ZodLiteral<"push">;
2183
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
2184
+ }, z.core.$strict>, z.ZodObject<{
2185
+ version: z.ZodLiteral<1>;
2186
+ action: z.ZodLiteral<"edit">;
2187
+ path: z.ZodString;
2188
+ }, z.core.$strict>, z.ZodObject<{
2189
+ version: z.ZodLiteral<1>;
2190
+ action: z.ZodEnum<{
2191
+ shell: "shell";
2192
+ deploy: "deploy";
2193
+ commit: "commit";
2194
+ }>;
2195
+ }, z.core.$strict>], "action">>>;
1875
2196
  reconciliationKey: z.ZodOptional<z.ZodString>;
1876
2197
  fingerprint: z.ZodString;
1877
2198
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -1935,6 +2256,22 @@ export declare const ObserveResponseSchema: z.ZodObject<{
1935
2256
  required: "required";
1936
2257
  advisory: "advisory";
1937
2258
  }>>;
2259
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2260
+ version: z.ZodLiteral<1>;
2261
+ action: z.ZodLiteral<"push">;
2262
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
2263
+ }, z.core.$strict>, z.ZodObject<{
2264
+ version: z.ZodLiteral<1>;
2265
+ action: z.ZodLiteral<"edit">;
2266
+ path: z.ZodString;
2267
+ }, z.core.$strict>, z.ZodObject<{
2268
+ version: z.ZodLiteral<1>;
2269
+ action: z.ZodEnum<{
2270
+ shell: "shell";
2271
+ deploy: "deploy";
2272
+ commit: "commit";
2273
+ }>;
2274
+ }, z.core.$strict>], "action">>>;
1938
2275
  reconciliationKey: z.ZodOptional<z.ZodString>;
1939
2276
  fingerprint: z.ZodString;
1940
2277
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -1999,6 +2336,22 @@ export declare const ObserveLearningsResponseSchema: z.ZodObject<{
1999
2336
  required: "required";
2000
2337
  advisory: "advisory";
2001
2338
  }>>;
2339
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2340
+ version: z.ZodLiteral<1>;
2341
+ action: z.ZodLiteral<"push">;
2342
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
2343
+ }, z.core.$strict>, z.ZodObject<{
2344
+ version: z.ZodLiteral<1>;
2345
+ action: z.ZodLiteral<"edit">;
2346
+ path: z.ZodString;
2347
+ }, z.core.$strict>, z.ZodObject<{
2348
+ version: z.ZodLiteral<1>;
2349
+ action: z.ZodEnum<{
2350
+ shell: "shell";
2351
+ deploy: "deploy";
2352
+ commit: "commit";
2353
+ }>;
2354
+ }, z.core.$strict>], "action">>>;
2002
2355
  reconciliationKey: z.ZodOptional<z.ZodString>;
2003
2356
  fingerprint: z.ZodString;
2004
2357
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -2142,6 +2495,22 @@ export declare const RetrievalHitSchema: z.ZodObject<{
2142
2495
  required: "required";
2143
2496
  advisory: "advisory";
2144
2497
  }>>;
2498
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2499
+ version: z.ZodLiteral<1>;
2500
+ action: z.ZodLiteral<"push">;
2501
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
2502
+ }, z.core.$strict>, z.ZodObject<{
2503
+ version: z.ZodLiteral<1>;
2504
+ action: z.ZodLiteral<"edit">;
2505
+ path: z.ZodString;
2506
+ }, z.core.$strict>, z.ZodObject<{
2507
+ version: z.ZodLiteral<1>;
2508
+ action: z.ZodEnum<{
2509
+ shell: "shell";
2510
+ deploy: "deploy";
2511
+ commit: "commit";
2512
+ }>;
2513
+ }, z.core.$strict>], "action">>>;
2145
2514
  reconciliationKey: z.ZodOptional<z.ZodString>;
2146
2515
  fingerprint: z.ZodString;
2147
2516
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -2257,6 +2626,22 @@ export declare const GetContextResponseSchema: z.ZodObject<{
2257
2626
  required: "required";
2258
2627
  advisory: "advisory";
2259
2628
  }>>;
2629
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2630
+ version: z.ZodLiteral<1>;
2631
+ action: z.ZodLiteral<"push">;
2632
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
2633
+ }, z.core.$strict>, z.ZodObject<{
2634
+ version: z.ZodLiteral<1>;
2635
+ action: z.ZodLiteral<"edit">;
2636
+ path: z.ZodString;
2637
+ }, z.core.$strict>, z.ZodObject<{
2638
+ version: z.ZodLiteral<1>;
2639
+ action: z.ZodEnum<{
2640
+ shell: "shell";
2641
+ deploy: "deploy";
2642
+ commit: "commit";
2643
+ }>;
2644
+ }, z.core.$strict>], "action">>>;
2260
2645
  reconciliationKey: z.ZodOptional<z.ZodString>;
2261
2646
  fingerprint: z.ZodString;
2262
2647
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -2315,6 +2700,22 @@ export declare const GetContextResponseSchema: z.ZodObject<{
2315
2700
  required: "required";
2316
2701
  advisory: "advisory";
2317
2702
  }>>;
2703
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2704
+ version: z.ZodLiteral<1>;
2705
+ action: z.ZodLiteral<"push">;
2706
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
2707
+ }, z.core.$strict>, z.ZodObject<{
2708
+ version: z.ZodLiteral<1>;
2709
+ action: z.ZodLiteral<"edit">;
2710
+ path: z.ZodString;
2711
+ }, z.core.$strict>, z.ZodObject<{
2712
+ version: z.ZodLiteral<1>;
2713
+ action: z.ZodEnum<{
2714
+ shell: "shell";
2715
+ deploy: "deploy";
2716
+ commit: "commit";
2717
+ }>;
2718
+ }, z.core.$strict>], "action">>>;
2318
2719
  reconciliationKey: z.ZodOptional<z.ZodString>;
2319
2720
  fingerprint: z.ZodString;
2320
2721
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -2457,6 +2858,22 @@ export declare const LearningContextResponseSchema: z.ZodObject<{
2457
2858
  required: "required";
2458
2859
  advisory: "advisory";
2459
2860
  }>>;
2861
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2862
+ version: z.ZodLiteral<1>;
2863
+ action: z.ZodLiteral<"push">;
2864
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
2865
+ }, z.core.$strict>, z.ZodObject<{
2866
+ version: z.ZodLiteral<1>;
2867
+ action: z.ZodLiteral<"edit">;
2868
+ path: z.ZodString;
2869
+ }, z.core.$strict>, z.ZodObject<{
2870
+ version: z.ZodLiteral<1>;
2871
+ action: z.ZodEnum<{
2872
+ shell: "shell";
2873
+ deploy: "deploy";
2874
+ commit: "commit";
2875
+ }>;
2876
+ }, z.core.$strict>], "action">>>;
2460
2877
  reconciliationKey: z.ZodOptional<z.ZodString>;
2461
2878
  fingerprint: z.ZodString;
2462
2879
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -2515,6 +2932,22 @@ export declare const LearningContextResponseSchema: z.ZodObject<{
2515
2932
  required: "required";
2516
2933
  advisory: "advisory";
2517
2934
  }>>;
2935
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2936
+ version: z.ZodLiteral<1>;
2937
+ action: z.ZodLiteral<"push">;
2938
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
2939
+ }, z.core.$strict>, z.ZodObject<{
2940
+ version: z.ZodLiteral<1>;
2941
+ action: z.ZodLiteral<"edit">;
2942
+ path: z.ZodString;
2943
+ }, z.core.$strict>, z.ZodObject<{
2944
+ version: z.ZodLiteral<1>;
2945
+ action: z.ZodEnum<{
2946
+ shell: "shell";
2947
+ deploy: "deploy";
2948
+ commit: "commit";
2949
+ }>;
2950
+ }, z.core.$strict>], "action">>>;
2518
2951
  reconciliationKey: z.ZodOptional<z.ZodString>;
2519
2952
  fingerprint: z.ZodString;
2520
2953
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -2656,6 +3089,22 @@ export declare const RememberResponseSchema: z.ZodObject<{
2656
3089
  required: "required";
2657
3090
  advisory: "advisory";
2658
3091
  }>>;
3092
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3093
+ version: z.ZodLiteral<1>;
3094
+ action: z.ZodLiteral<"push">;
3095
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
3096
+ }, z.core.$strict>, z.ZodObject<{
3097
+ version: z.ZodLiteral<1>;
3098
+ action: z.ZodLiteral<"edit">;
3099
+ path: z.ZodString;
3100
+ }, z.core.$strict>, z.ZodObject<{
3101
+ version: z.ZodLiteral<1>;
3102
+ action: z.ZodEnum<{
3103
+ shell: "shell";
3104
+ deploy: "deploy";
3105
+ commit: "commit";
3106
+ }>;
3107
+ }, z.core.$strict>], "action">>>;
2659
3108
  reconciliationKey: z.ZodOptional<z.ZodString>;
2660
3109
  fingerprint: z.ZodString;
2661
3110
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -2717,6 +3166,22 @@ export declare const CreateMemoryResponseSchema: z.ZodObject<{
2717
3166
  required: "required";
2718
3167
  advisory: "advisory";
2719
3168
  }>>;
3169
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3170
+ version: z.ZodLiteral<1>;
3171
+ action: z.ZodLiteral<"push">;
3172
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
3173
+ }, z.core.$strict>, z.ZodObject<{
3174
+ version: z.ZodLiteral<1>;
3175
+ action: z.ZodLiteral<"edit">;
3176
+ path: z.ZodString;
3177
+ }, z.core.$strict>, z.ZodObject<{
3178
+ version: z.ZodLiteral<1>;
3179
+ action: z.ZodEnum<{
3180
+ shell: "shell";
3181
+ deploy: "deploy";
3182
+ commit: "commit";
3183
+ }>;
3184
+ }, z.core.$strict>], "action">>>;
2720
3185
  reconciliationKey: z.ZodOptional<z.ZodString>;
2721
3186
  fingerprint: z.ZodString;
2722
3187
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -2778,6 +3243,22 @@ export declare const UpdateMemoryResponseSchema: z.ZodObject<{
2778
3243
  required: "required";
2779
3244
  advisory: "advisory";
2780
3245
  }>>;
3246
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3247
+ version: z.ZodLiteral<1>;
3248
+ action: z.ZodLiteral<"push">;
3249
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
3250
+ }, z.core.$strict>, z.ZodObject<{
3251
+ version: z.ZodLiteral<1>;
3252
+ action: z.ZodLiteral<"edit">;
3253
+ path: z.ZodString;
3254
+ }, z.core.$strict>, z.ZodObject<{
3255
+ version: z.ZodLiteral<1>;
3256
+ action: z.ZodEnum<{
3257
+ shell: "shell";
3258
+ deploy: "deploy";
3259
+ commit: "commit";
3260
+ }>;
3261
+ }, z.core.$strict>], "action">>>;
2781
3262
  reconciliationKey: z.ZodOptional<z.ZodString>;
2782
3263
  fingerprint: z.ZodString;
2783
3264
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -2838,6 +3319,22 @@ export declare const CorrectMemoryResponseSchema: z.ZodObject<{
2838
3319
  required: "required";
2839
3320
  advisory: "advisory";
2840
3321
  }>>;
3322
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3323
+ version: z.ZodLiteral<1>;
3324
+ action: z.ZodLiteral<"push">;
3325
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
3326
+ }, z.core.$strict>, z.ZodObject<{
3327
+ version: z.ZodLiteral<1>;
3328
+ action: z.ZodLiteral<"edit">;
3329
+ path: z.ZodString;
3330
+ }, z.core.$strict>, z.ZodObject<{
3331
+ version: z.ZodLiteral<1>;
3332
+ action: z.ZodEnum<{
3333
+ shell: "shell";
3334
+ deploy: "deploy";
3335
+ commit: "commit";
3336
+ }>;
3337
+ }, z.core.$strict>], "action">>>;
2841
3338
  reconciliationKey: z.ZodOptional<z.ZodString>;
2842
3339
  fingerprint: z.ZodString;
2843
3340
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -2895,6 +3392,22 @@ export declare const CorrectMemoryResponseSchema: z.ZodObject<{
2895
3392
  required: "required";
2896
3393
  advisory: "advisory";
2897
3394
  }>>;
3395
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3396
+ version: z.ZodLiteral<1>;
3397
+ action: z.ZodLiteral<"push">;
3398
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
3399
+ }, z.core.$strict>, z.ZodObject<{
3400
+ version: z.ZodLiteral<1>;
3401
+ action: z.ZodLiteral<"edit">;
3402
+ path: z.ZodString;
3403
+ }, z.core.$strict>, z.ZodObject<{
3404
+ version: z.ZodLiteral<1>;
3405
+ action: z.ZodEnum<{
3406
+ shell: "shell";
3407
+ deploy: "deploy";
3408
+ commit: "commit";
3409
+ }>;
3410
+ }, z.core.$strict>], "action">>>;
2898
3411
  reconciliationKey: z.ZodOptional<z.ZodString>;
2899
3412
  fingerprint: z.ZodString;
2900
3413
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -2955,6 +3468,22 @@ export declare const CorrectResponseSchema: z.ZodObject<{
2955
3468
  required: "required";
2956
3469
  advisory: "advisory";
2957
3470
  }>>;
3471
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3472
+ version: z.ZodLiteral<1>;
3473
+ action: z.ZodLiteral<"push">;
3474
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
3475
+ }, z.core.$strict>, z.ZodObject<{
3476
+ version: z.ZodLiteral<1>;
3477
+ action: z.ZodLiteral<"edit">;
3478
+ path: z.ZodString;
3479
+ }, z.core.$strict>, z.ZodObject<{
3480
+ version: z.ZodLiteral<1>;
3481
+ action: z.ZodEnum<{
3482
+ shell: "shell";
3483
+ deploy: "deploy";
3484
+ commit: "commit";
3485
+ }>;
3486
+ }, z.core.$strict>], "action">>>;
2958
3487
  reconciliationKey: z.ZodOptional<z.ZodString>;
2959
3488
  fingerprint: z.ZodString;
2960
3489
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -3012,6 +3541,22 @@ export declare const CorrectResponseSchema: z.ZodObject<{
3012
3541
  required: "required";
3013
3542
  advisory: "advisory";
3014
3543
  }>>;
3544
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3545
+ version: z.ZodLiteral<1>;
3546
+ action: z.ZodLiteral<"push">;
3547
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
3548
+ }, z.core.$strict>, z.ZodObject<{
3549
+ version: z.ZodLiteral<1>;
3550
+ action: z.ZodLiteral<"edit">;
3551
+ path: z.ZodString;
3552
+ }, z.core.$strict>, z.ZodObject<{
3553
+ version: z.ZodLiteral<1>;
3554
+ action: z.ZodEnum<{
3555
+ shell: "shell";
3556
+ deploy: "deploy";
3557
+ commit: "commit";
3558
+ }>;
3559
+ }, z.core.$strict>], "action">>>;
3015
3560
  reconciliationKey: z.ZodOptional<z.ZodString>;
3016
3561
  fingerprint: z.ZodString;
3017
3562
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -3072,6 +3617,22 @@ export declare const ForgetMemoryResponseSchema: z.ZodObject<{
3072
3617
  required: "required";
3073
3618
  advisory: "advisory";
3074
3619
  }>>;
3620
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3621
+ version: z.ZodLiteral<1>;
3622
+ action: z.ZodLiteral<"push">;
3623
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
3624
+ }, z.core.$strict>, z.ZodObject<{
3625
+ version: z.ZodLiteral<1>;
3626
+ action: z.ZodLiteral<"edit">;
3627
+ path: z.ZodString;
3628
+ }, z.core.$strict>, z.ZodObject<{
3629
+ version: z.ZodLiteral<1>;
3630
+ action: z.ZodEnum<{
3631
+ shell: "shell";
3632
+ deploy: "deploy";
3633
+ commit: "commit";
3634
+ }>;
3635
+ }, z.core.$strict>], "action">>>;
3075
3636
  reconciliationKey: z.ZodOptional<z.ZodString>;
3076
3637
  fingerprint: z.ZodString;
3077
3638
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -3132,6 +3693,22 @@ export declare const GetMemoryResponseSchema: z.ZodObject<{
3132
3693
  required: "required";
3133
3694
  advisory: "advisory";
3134
3695
  }>>;
3696
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3697
+ version: z.ZodLiteral<1>;
3698
+ action: z.ZodLiteral<"push">;
3699
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
3700
+ }, z.core.$strict>, z.ZodObject<{
3701
+ version: z.ZodLiteral<1>;
3702
+ action: z.ZodLiteral<"edit">;
3703
+ path: z.ZodString;
3704
+ }, z.core.$strict>, z.ZodObject<{
3705
+ version: z.ZodLiteral<1>;
3706
+ action: z.ZodEnum<{
3707
+ shell: "shell";
3708
+ deploy: "deploy";
3709
+ commit: "commit";
3710
+ }>;
3711
+ }, z.core.$strict>], "action">>>;
3135
3712
  reconciliationKey: z.ZodOptional<z.ZodString>;
3136
3713
  fingerprint: z.ZodString;
3137
3714
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -3192,6 +3769,22 @@ export declare const ContextResponseSchema: z.ZodObject<{
3192
3769
  required: "required";
3193
3770
  advisory: "advisory";
3194
3771
  }>>;
3772
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3773
+ version: z.ZodLiteral<1>;
3774
+ action: z.ZodLiteral<"push">;
3775
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
3776
+ }, z.core.$strict>, z.ZodObject<{
3777
+ version: z.ZodLiteral<1>;
3778
+ action: z.ZodLiteral<"edit">;
3779
+ path: z.ZodString;
3780
+ }, z.core.$strict>, z.ZodObject<{
3781
+ version: z.ZodLiteral<1>;
3782
+ action: z.ZodEnum<{
3783
+ shell: "shell";
3784
+ deploy: "deploy";
3785
+ commit: "commit";
3786
+ }>;
3787
+ }, z.core.$strict>], "action">>>;
3195
3788
  reconciliationKey: z.ZodOptional<z.ZodString>;
3196
3789
  fingerprint: z.ZodString;
3197
3790
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
@@ -3250,6 +3843,22 @@ export declare const ContextResponseSchema: z.ZodObject<{
3250
3843
  required: "required";
3251
3844
  advisory: "advisory";
3252
3845
  }>>;
3846
+ guardRule: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3847
+ version: z.ZodLiteral<1>;
3848
+ action: z.ZodLiteral<"push">;
3849
+ branches: z.ZodOptional<z.ZodArray<z.ZodString>>;
3850
+ }, z.core.$strict>, z.ZodObject<{
3851
+ version: z.ZodLiteral<1>;
3852
+ action: z.ZodLiteral<"edit">;
3853
+ path: z.ZodString;
3854
+ }, z.core.$strict>, z.ZodObject<{
3855
+ version: z.ZodLiteral<1>;
3856
+ action: z.ZodEnum<{
3857
+ shell: "shell";
3858
+ deploy: "deploy";
3859
+ commit: "commit";
3860
+ }>;
3861
+ }, z.core.$strict>], "action">>>;
3253
3862
  reconciliationKey: z.ZodOptional<z.ZodString>;
3254
3863
  fingerprint: z.ZodString;
3255
3864
  supersedesMemoryId: z.ZodNullable<z.ZodUUID>;