@remnic/core 9.69.43 → 9.69.44

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 (131) hide show
  1. package/dist/access-admin-ops-surface.d.ts +1 -1
  2. package/dist/access-admin-ops-surface.js +3 -3
  3. package/dist/access-authorization-probe.d.ts +1 -1
  4. package/dist/access-authorization-probe.js +4 -4
  5. package/dist/access-boundary.d.ts +1 -1
  6. package/dist/access-boundary.js +3 -3
  7. package/dist/access-cli.js +22 -22
  8. package/dist/access-extraction-force-flush.d.ts +1 -1
  9. package/dist/access-extraction-force-flush.js +3 -3
  10. package/dist/access-http-briefing.d.ts +1 -1
  11. package/dist/access-http-briefing.js +4 -4
  12. package/dist/access-http-lcm-compaction.d.ts +1 -1
  13. package/dist/access-http-lifecycle-flush.d.ts +1 -1
  14. package/dist/access-http-offline-stream.d.ts +1 -1
  15. package/dist/access-http-query.js +3 -3
  16. package/dist/access-http.d.ts +2 -2
  17. package/dist/access-http.js +15 -15
  18. package/dist/access-identity-continuity-surface.js +3 -3
  19. package/dist/access-lcm-surface.d.ts +1 -1
  20. package/dist/access-lcm-surface.js +3 -3
  21. package/dist/access-mcp-shared-context-tools.d.ts +1 -1
  22. package/dist/access-mcp.d.ts +1 -1
  23. package/dist/access-mcp.js +9 -9
  24. package/dist/access-namespace-preflight.js +3 -3
  25. package/dist/access-observe-write-category.d.ts +1 -0
  26. package/dist/access-observe-write-category.js +2 -2
  27. package/dist/access-observe-write-surface.d.ts +1 -1
  28. package/dist/access-observe-write-surface.js +3 -3
  29. package/dist/access-operations-batch.js +4 -4
  30. package/dist/access-operations.d.ts +1 -1
  31. package/dist/access-operations.js +8 -8
  32. package/dist/access-recall-concurrency.d.ts +1 -1
  33. package/dist/access-recall-concurrency.js +3 -3
  34. package/dist/access-recall-response.d.ts +1 -1
  35. package/dist/access-recall-response.js +3 -3
  36. package/dist/access-recall-surface.d.ts +1 -1
  37. package/dist/access-recall-surface.js +3 -3
  38. package/dist/access-schema.d.ts +121 -114
  39. package/dist/access-schema.js +3 -1
  40. package/dist/{access-service-DxTTTg9O.d.ts → access-service-Cww3xAAy.d.ts} +64 -64
  41. package/dist/access-service-helpers.d.ts +1 -1
  42. package/dist/access-service.d.ts +1 -1
  43. package/dist/access-service.js +3 -3
  44. package/dist/access-surface-catalog.d.ts +1 -1
  45. package/dist/access-surface-catalog.js +5 -5
  46. package/dist/active-recall.js +2 -2
  47. package/dist/chunk-2WMXZYMS.js +25 -0
  48. package/dist/chunk-2WMXZYMS.js.map +1 -0
  49. package/dist/{chunk-LXMZM7LM.js → chunk-3K64PLY3.js} +3 -3
  50. package/dist/{chunk-UCLWIMVW.js → chunk-EOXCOZ6L.js} +2 -2
  51. package/dist/{chunk-QUBPZQED.js → chunk-IAGEEVQL.js} +2 -2
  52. package/dist/{chunk-KOM36ILJ.js → chunk-IOTYIECA.js} +10 -10
  53. package/dist/{chunk-LUAQHDUI.js → chunk-JMBTNVMW.js} +2 -2
  54. package/dist/{chunk-CRK6F6N3.js → chunk-JUOJGZPV.js} +5 -1
  55. package/dist/chunk-JUOJGZPV.js.map +1 -0
  56. package/dist/{chunk-LT4H7SL5.js → chunk-K3IVJ5ML.js} +7 -7
  57. package/dist/{chunk-VNQRRUNS.js → chunk-O6ZSWHVR.js} +2 -3
  58. package/dist/chunk-O6ZSWHVR.js.map +1 -0
  59. package/dist/{chunk-2WFOVXVJ.js → chunk-OCX7OWOC.js} +2 -2
  60. package/dist/{chunk-JWBDHA4F.js → chunk-ROXDOKLM.js} +3 -3
  61. package/dist/{chunk-PPDZSJXB.js → chunk-SUS64JER.js} +2 -2
  62. package/dist/{chunk-YPB3Y57U.js → chunk-SZV2L2IG.js} +3 -3
  63. package/dist/{chunk-AKB44K3D.js → chunk-VDLNQVYW.js} +2 -2
  64. package/dist/{chunk-XIJHRQ4A.js → chunk-W6YDAIVB.js} +2 -2
  65. package/dist/{chunk-KY75VZKG.js → chunk-WJPR2XUN.js} +2 -2
  66. package/dist/{chunk-324HBGS4.js → chunk-WLHPCAVD.js} +4 -4
  67. package/dist/{chunk-VKDXYEA6.js → chunk-WNMVUWI7.js} +2 -2
  68. package/dist/{chunk-2PIC6CEN.js → chunk-XK76RJBN.js} +2 -2
  69. package/dist/{chunk-M7H56FOQ.js → chunk-XLPZN3A5.js} +2 -2
  70. package/dist/{chunk-NHFXGNGC.js → chunk-Y77UTH7F.js} +6 -6
  71. package/dist/{chunk-IB7FDRRC.js → chunk-ZVQ5HF77.js} +2 -2
  72. package/dist/{cli-BfCl5kWD.d.ts → cli-Cl7bKIWJ.d.ts} +1 -1
  73. package/dist/cli.d.ts +2 -2
  74. package/dist/cli.js +20 -20
  75. package/dist/config.js +2 -2
  76. package/dist/deep-recall-http-glue.d.ts +1 -1
  77. package/dist/deep-recall-http-glue.js +2 -2
  78. package/dist/deep-recall-mcp-tools.d.ts +1 -1
  79. package/dist/external-wiki-access.d.ts +1 -1
  80. package/dist/external-wiki-access.js +4 -4
  81. package/dist/external-wiki-mcp-tools.d.ts +1 -1
  82. package/dist/index.d.ts +681 -681
  83. package/dist/index.js +24 -22
  84. package/dist/local-llm-config.js +1 -1
  85. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  86. package/dist/memory-subject-cli.d.ts +1 -1
  87. package/dist/memory-subject.d.ts +1 -1
  88. package/dist/operator-toolkit.js +3 -3
  89. package/dist/orchestrator.js +22 -22
  90. package/dist/{public-http-B55s59aR.d.ts → public-http-DdmM4scJ.d.ts} +1 -1
  91. package/dist/recall-navigation-http-glue.d.ts +1 -1
  92. package/dist/recall-navigation-mcp-tools.d.ts +1 -1
  93. package/dist/recall-navigation-operations.js +4 -4
  94. package/dist/recall-navigation.js +3 -3
  95. package/dist/resume-bundles.js +3 -3
  96. package/dist/schemas.d.ts +160 -160
  97. package/dist/shared-context/manager.d.ts +6 -6
  98. package/dist/support-passport/index.d.ts +4 -4
  99. package/dist/support-passport/index.js +6 -6
  100. package/dist/transfer/types.d.ts +78 -78
  101. package/dist/who-knows-cli.d.ts +1 -1
  102. package/dist/who-knows.d.ts +1 -1
  103. package/package.json +2 -2
  104. package/src/access-category-alias.test.ts +57 -0
  105. package/src/access-observe-write-category.ts +20 -1
  106. package/src/access-schema.ts +10 -0
  107. package/src/local-llm-config.test.ts +21 -0
  108. package/src/local-llm-config.ts +1 -2
  109. package/dist/chunk-CRK6F6N3.js.map +0 -1
  110. package/dist/chunk-VNQRRUNS.js.map +0 -1
  111. package/dist/chunk-YTV6J4T6.js +0 -14
  112. package/dist/chunk-YTV6J4T6.js.map +0 -1
  113. /package/dist/{chunk-LXMZM7LM.js.map → chunk-3K64PLY3.js.map} +0 -0
  114. /package/dist/{chunk-UCLWIMVW.js.map → chunk-EOXCOZ6L.js.map} +0 -0
  115. /package/dist/{chunk-QUBPZQED.js.map → chunk-IAGEEVQL.js.map} +0 -0
  116. /package/dist/{chunk-KOM36ILJ.js.map → chunk-IOTYIECA.js.map} +0 -0
  117. /package/dist/{chunk-LUAQHDUI.js.map → chunk-JMBTNVMW.js.map} +0 -0
  118. /package/dist/{chunk-LT4H7SL5.js.map → chunk-K3IVJ5ML.js.map} +0 -0
  119. /package/dist/{chunk-2WFOVXVJ.js.map → chunk-OCX7OWOC.js.map} +0 -0
  120. /package/dist/{chunk-JWBDHA4F.js.map → chunk-ROXDOKLM.js.map} +0 -0
  121. /package/dist/{chunk-PPDZSJXB.js.map → chunk-SUS64JER.js.map} +0 -0
  122. /package/dist/{chunk-YPB3Y57U.js.map → chunk-SZV2L2IG.js.map} +0 -0
  123. /package/dist/{chunk-AKB44K3D.js.map → chunk-VDLNQVYW.js.map} +0 -0
  124. /package/dist/{chunk-XIJHRQ4A.js.map → chunk-W6YDAIVB.js.map} +0 -0
  125. /package/dist/{chunk-KY75VZKG.js.map → chunk-WJPR2XUN.js.map} +0 -0
  126. /package/dist/{chunk-324HBGS4.js.map → chunk-WLHPCAVD.js.map} +0 -0
  127. /package/dist/{chunk-VKDXYEA6.js.map → chunk-WNMVUWI7.js.map} +0 -0
  128. /package/dist/{chunk-2PIC6CEN.js.map → chunk-XK76RJBN.js.map} +0 -0
  129. /package/dist/{chunk-M7H56FOQ.js.map → chunk-XLPZN3A5.js.map} +0 -0
  130. /package/dist/{chunk-NHFXGNGC.js.map → chunk-Y77UTH7F.js.map} +0 -0
  131. /package/dist/{chunk-IB7FDRRC.js.map → chunk-ZVQ5HF77.js.map} +0 -0
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  actionConfidenceRequestSchema,
3
+ canonicalCategoryForAlias,
3
4
  capsuleExportRequestSchema,
4
5
  capsuleImportRequestSchema,
5
6
  capsuleListRequestSchema,
@@ -31,7 +32,7 @@ import {
31
32
  trustZoneDemoSeedRequestSchema,
32
33
  trustZonePromoteRequestSchema,
33
34
  validateRequest
34
- } from "./chunk-CRK6F6N3.js";
35
+ } from "./chunk-JUOJGZPV.js";
35
36
  import "./chunk-KQAFEZQX.js";
36
37
  import "./chunk-WEHSQBFR.js";
37
38
  import "./chunk-X7Y7WX73.js";
@@ -57,6 +58,7 @@ import "./chunk-KNA3BXXL.js";
57
58
  import "./chunk-PZ5AY32C.js";
58
59
  export {
59
60
  actionConfidenceRequestSchema,
61
+ canonicalCategoryForAlias,
60
62
  capsuleExportRequestSchema,
61
63
  capsuleImportRequestSchema,
62
64
  capsuleListRequestSchema,
@@ -1032,24 +1032,24 @@ declare const SupportPassportDraftCardSchema: z.ZodEffects<z.ZodObject<{
1032
1032
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1033
1033
  sourceMemoryIds: z.ZodArray<z.ZodString, "many">;
1034
1034
  }, "strict", z.ZodTypeAny, {
1035
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1035
1036
  title: string;
1036
1037
  sourceMemoryIds: string[];
1037
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1038
1038
  statement: string;
1039
1039
  }, {
1040
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1040
1041
  title: string;
1041
1042
  sourceMemoryIds: string[];
1042
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1043
1043
  statement: string;
1044
1044
  }>, {
1045
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1045
1046
  title: string;
1046
1047
  sourceMemoryIds: string[];
1047
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1048
1048
  statement: string;
1049
1049
  }, {
1050
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1050
1051
  title: string;
1051
1052
  sourceMemoryIds: string[];
1052
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1053
1053
  statement: string;
1054
1054
  }>;
1055
1055
  declare const SupportPassportDraftOutputSchema: z.ZodObject<{
@@ -1059,38 +1059,38 @@ declare const SupportPassportDraftOutputSchema: z.ZodObject<{
1059
1059
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1060
1060
  sourceMemoryIds: z.ZodArray<z.ZodString, "many">;
1061
1061
  }, "strict", z.ZodTypeAny, {
1062
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1062
1063
  title: string;
1063
1064
  sourceMemoryIds: string[];
1064
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1065
1065
  statement: string;
1066
1066
  }, {
1067
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1067
1068
  title: string;
1068
1069
  sourceMemoryIds: string[];
1069
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1070
1070
  statement: string;
1071
1071
  }>, {
1072
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1072
1073
  title: string;
1073
1074
  sourceMemoryIds: string[];
1074
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1075
1075
  statement: string;
1076
1076
  }, {
1077
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1077
1078
  title: string;
1078
1079
  sourceMemoryIds: string[];
1079
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1080
1080
  statement: string;
1081
1081
  }>, "many">;
1082
1082
  }, "strict", z.ZodTypeAny, {
1083
1083
  cards: {
1084
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1084
1085
  title: string;
1085
1086
  sourceMemoryIds: string[];
1086
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1087
1087
  statement: string;
1088
1088
  }[];
1089
1089
  }, {
1090
1090
  cards: {
1091
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1091
1092
  title: string;
1092
1093
  sourceMemoryIds: string[];
1093
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1094
1094
  statement: string;
1095
1095
  }[];
1096
1096
  }>;
@@ -1100,34 +1100,34 @@ declare const SupportPassportDraftModelInputSchema: z.ZodEffects<z.ZodObject<{
1100
1100
  memoryId: z.ZodString;
1101
1101
  content: z.ZodString;
1102
1102
  }, "strict", z.ZodTypeAny, {
1103
- memoryId: string;
1104
1103
  content: string;
1105
- }, {
1106
1104
  memoryId: string;
1105
+ }, {
1107
1106
  content: string;
1107
+ memoryId: string;
1108
1108
  }>, "many">;
1109
1109
  }, "strict", z.ZodTypeAny, {
1110
1110
  memories: {
1111
- memoryId: string;
1112
1111
  content: string;
1112
+ memoryId: string;
1113
1113
  }[];
1114
1114
  consent: true;
1115
1115
  }, {
1116
1116
  memories: {
1117
- memoryId: string;
1118
1117
  content: string;
1118
+ memoryId: string;
1119
1119
  }[];
1120
1120
  consent: true;
1121
1121
  }>, {
1122
1122
  memories: {
1123
- memoryId: string;
1124
1123
  content: string;
1124
+ memoryId: string;
1125
1125
  }[];
1126
1126
  consent: true;
1127
1127
  }, {
1128
1128
  memories: {
1129
- memoryId: string;
1130
1129
  content: string;
1130
+ memoryId: string;
1131
1131
  }[];
1132
1132
  consent: true;
1133
1133
  }>;
@@ -1165,38 +1165,38 @@ declare const SupportPassportAnswerModelInputSchema: z.ZodObject<{
1165
1165
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1166
1166
  updatedAt: z.ZodEffects<z.ZodString, string, string>;
1167
1167
  }, "strict", z.ZodTypeAny, {
1168
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1168
1169
  title: string;
1169
1170
  updatedAt: string;
1170
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1171
1171
  cardId: string;
1172
1172
  statement: string;
1173
1173
  }, {
1174
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1174
1175
  title: string;
1175
1176
  updatedAt: string;
1176
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1177
1177
  cardId: string;
1178
1178
  statement: string;
1179
1179
  }>, "many">;
1180
1180
  }, "strict", z.ZodTypeAny, {
1181
+ expiresAt: string;
1181
1182
  schemaVersion: 1;
1182
1183
  updatedAt: string;
1183
- expiresAt: string;
1184
1184
  cards: {
1185
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1185
1186
  title: string;
1186
1187
  updatedAt: string;
1187
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1188
1188
  cardId: string;
1189
1189
  statement: string;
1190
1190
  }[];
1191
1191
  grantId: string;
1192
1192
  }, {
1193
+ expiresAt: string;
1193
1194
  schemaVersion: 1;
1194
1195
  updatedAt: string;
1195
- expiresAt: string;
1196
1196
  cards: {
1197
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1197
1198
  title: string;
1198
1199
  updatedAt: string;
1199
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1200
1200
  cardId: string;
1201
1201
  statement: string;
1202
1202
  }[];
@@ -1206,13 +1206,13 @@ declare const SupportPassportAnswerModelInputSchema: z.ZodObject<{
1206
1206
  }, "strict", z.ZodTypeAny, {
1207
1207
  question: string;
1208
1208
  guide: {
1209
+ expiresAt: string;
1209
1210
  schemaVersion: 1;
1210
1211
  updatedAt: string;
1211
- expiresAt: string;
1212
1212
  cards: {
1213
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1213
1214
  title: string;
1214
1215
  updatedAt: string;
1215
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1216
1216
  cardId: string;
1217
1217
  statement: string;
1218
1218
  }[];
@@ -1221,13 +1221,13 @@ declare const SupportPassportAnswerModelInputSchema: z.ZodObject<{
1221
1221
  }, {
1222
1222
  question: string;
1223
1223
  guide: {
1224
+ expiresAt: string;
1224
1225
  schemaVersion: 1;
1225
1226
  updatedAt: string;
1226
- expiresAt: string;
1227
1227
  cards: {
1228
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1228
1229
  title: string;
1229
1230
  updatedAt: string;
1230
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1231
1231
  cardId: string;
1232
1232
  statement: string;
1233
1233
  }[];
@@ -1636,20 +1636,20 @@ declare const SupportPassportCardSchema: z.ZodObject<{
1636
1636
  reviewBy: z.ZodEffects<z.ZodString, string, string>;
1637
1637
  revision: z.ZodString;
1638
1638
  }, "strict", z.ZodTypeAny, {
1639
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1640
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1639
1641
  title: string;
1640
- status: "superseded" | "active" | "pending_review" | "rejected" | "archived";
1641
1642
  updatedAt: string;
1642
1643
  revision: string;
1643
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1644
1644
  cardId: string;
1645
1645
  statement: string;
1646
1646
  reviewBy: string;
1647
1647
  }, {
1648
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1649
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1648
1650
  title: string;
1649
- status: "superseded" | "active" | "pending_review" | "rejected" | "archived";
1650
1651
  updatedAt: string;
1651
1652
  revision: string;
1652
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1653
1653
  cardId: string;
1654
1654
  statement: string;
1655
1655
  reviewBy: string;
@@ -1664,38 +1664,38 @@ declare const SupportPassportCardListSchema: z.ZodEffects<z.ZodArray<z.ZodObject
1664
1664
  reviewBy: z.ZodEffects<z.ZodString, string, string>;
1665
1665
  revision: z.ZodString;
1666
1666
  }, "strict", z.ZodTypeAny, {
1667
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1668
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1667
1669
  title: string;
1668
- status: "superseded" | "active" | "pending_review" | "rejected" | "archived";
1669
1670
  updatedAt: string;
1670
1671
  revision: string;
1671
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1672
1672
  cardId: string;
1673
1673
  statement: string;
1674
1674
  reviewBy: string;
1675
1675
  }, {
1676
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1677
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1676
1678
  title: string;
1677
- status: "superseded" | "active" | "pending_review" | "rejected" | "archived";
1678
1679
  updatedAt: string;
1679
1680
  revision: string;
1680
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1681
1681
  cardId: string;
1682
1682
  statement: string;
1683
1683
  reviewBy: string;
1684
1684
  }>, "many">, {
1685
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1686
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1685
1687
  title: string;
1686
- status: "superseded" | "active" | "pending_review" | "rejected" | "archived";
1687
1688
  updatedAt: string;
1688
1689
  revision: string;
1689
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1690
1690
  cardId: string;
1691
1691
  statement: string;
1692
1692
  reviewBy: string;
1693
1693
  }[], {
1694
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1695
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1694
1696
  title: string;
1695
- status: "superseded" | "active" | "pending_review" | "rejected" | "archived";
1696
1697
  updatedAt: string;
1697
1698
  revision: string;
1698
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1699
1699
  cardId: string;
1700
1700
  statement: string;
1701
1701
  reviewBy: string;
@@ -1714,14 +1714,14 @@ declare const SupportPassportManualDraftInputSchema: z.ZodObject<{
1714
1714
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1715
1715
  reviewBy: z.ZodEffects<z.ZodString, string, string>;
1716
1716
  }, "strict", z.ZodTypeAny, {
1717
- title: string;
1718
1717
  category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1718
+ title: string;
1719
1719
  statement: string;
1720
1720
  reviewBy: string;
1721
1721
  principal: string;
1722
1722
  }, {
1723
- title: string;
1724
1723
  category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1724
+ title: string;
1725
1725
  statement: string;
1726
1726
  reviewBy: string;
1727
1727
  principal: string;
@@ -1753,8 +1753,8 @@ declare const SupportPassportReplaceCardInputSchema: z.ZodObject<{
1753
1753
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1754
1754
  reviewBy: z.ZodEffects<z.ZodString, string, string>;
1755
1755
  }, "strict", z.ZodTypeAny, {
1756
- title: string;
1757
1756
  category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1757
+ title: string;
1758
1758
  cardId: string;
1759
1759
  statement: string;
1760
1760
  reviewBy: string;
@@ -1762,8 +1762,8 @@ declare const SupportPassportReplaceCardInputSchema: z.ZodObject<{
1762
1762
  expectedRevision: string;
1763
1763
  reasonCode?: string | undefined;
1764
1764
  }, {
1765
- title: string;
1766
1765
  category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1766
+ title: string;
1767
1767
  cardId: string;
1768
1768
  statement: string;
1769
1769
  reviewBy: string;
@@ -1822,10 +1822,10 @@ declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
1822
1822
  expiresAt: z.ZodEffects<z.ZodString, string, string>;
1823
1823
  revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1824
1824
  }, "strict", z.ZodTypeAny, {
1825
- schemaVersion: 1;
1825
+ namespace: string;
1826
1826
  createdAt: string;
1827
1827
  expiresAt: string;
1828
- namespace: string;
1828
+ schemaVersion: 1;
1829
1829
  cards: {
1830
1830
  revision: string;
1831
1831
  cardId: string;
@@ -1837,10 +1837,10 @@ declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
1837
1837
  secretHash: string;
1838
1838
  revokedAt?: string | undefined;
1839
1839
  }, {
1840
- schemaVersion: 1;
1840
+ namespace: string;
1841
1841
  createdAt: string;
1842
1842
  expiresAt: string;
1843
- namespace: string;
1843
+ schemaVersion: 1;
1844
1844
  cards: {
1845
1845
  revision: string;
1846
1846
  cardId: string;
@@ -1852,10 +1852,10 @@ declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
1852
1852
  secretHash: string;
1853
1853
  revokedAt?: string | undefined;
1854
1854
  }>, {
1855
- schemaVersion: 1;
1855
+ namespace: string;
1856
1856
  createdAt: string;
1857
1857
  expiresAt: string;
1858
- namespace: string;
1858
+ schemaVersion: 1;
1859
1859
  cards: {
1860
1860
  revision: string;
1861
1861
  cardId: string;
@@ -1867,10 +1867,10 @@ declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
1867
1867
  secretHash: string;
1868
1868
  revokedAt?: string | undefined;
1869
1869
  }, {
1870
- schemaVersion: 1;
1870
+ namespace: string;
1871
1871
  createdAt: string;
1872
1872
  expiresAt: string;
1873
- namespace: string;
1873
+ schemaVersion: 1;
1874
1874
  cards: {
1875
1875
  revision: string;
1876
1876
  cardId: string;
@@ -2041,9 +2041,9 @@ declare const SupportPassportOwnerGrantSchema: z.ZodObject<{
2041
2041
  revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2042
2042
  status: z.ZodEnum<["active", "expired", "revoked"]>;
2043
2043
  }, "strict", z.ZodTypeAny, {
2044
- status: "active" | "expired" | "revoked";
2045
2044
  createdAt: string;
2046
2045
  expiresAt: string;
2046
+ status: "active" | "expired" | "revoked";
2047
2047
  cards: {
2048
2048
  revision: string;
2049
2049
  cardId: string;
@@ -2052,9 +2052,9 @@ declare const SupportPassportOwnerGrantSchema: z.ZodObject<{
2052
2052
  grantId: string;
2053
2053
  revokedAt?: string | undefined;
2054
2054
  }, {
2055
- status: "active" | "expired" | "revoked";
2056
2055
  createdAt: string;
2057
2056
  expiresAt: string;
2057
+ status: "active" | "expired" | "revoked";
2058
2058
  cards: {
2059
2059
  revision: string;
2060
2060
  cardId: string;
@@ -2082,9 +2082,9 @@ declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
2082
2082
  revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2083
2083
  status: z.ZodEnum<["active", "expired", "revoked"]>;
2084
2084
  }, "strict", z.ZodTypeAny, {
2085
- status: "active" | "expired" | "revoked";
2086
2085
  createdAt: string;
2087
2086
  expiresAt: string;
2087
+ status: "active" | "expired" | "revoked";
2088
2088
  cards: {
2089
2089
  revision: string;
2090
2090
  cardId: string;
@@ -2093,9 +2093,9 @@ declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
2093
2093
  grantId: string;
2094
2094
  revokedAt?: string | undefined;
2095
2095
  }, {
2096
- status: "active" | "expired" | "revoked";
2097
2096
  createdAt: string;
2098
2097
  expiresAt: string;
2098
+ status: "active" | "expired" | "revoked";
2099
2099
  cards: {
2100
2100
  revision: string;
2101
2101
  cardId: string;
@@ -2108,9 +2108,9 @@ declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
2108
2108
  }, "strict", z.ZodTypeAny, {
2109
2109
  secret: string;
2110
2110
  grant: {
2111
- status: "active" | "expired" | "revoked";
2112
2111
  createdAt: string;
2113
2112
  expiresAt: string;
2113
+ status: "active" | "expired" | "revoked";
2114
2114
  cards: {
2115
2115
  revision: string;
2116
2116
  cardId: string;
@@ -2122,9 +2122,9 @@ declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
2122
2122
  }, {
2123
2123
  secret: string;
2124
2124
  grant: {
2125
- status: "active" | "expired" | "revoked";
2126
2125
  createdAt: string;
2127
2126
  expiresAt: string;
2127
+ status: "active" | "expired" | "revoked";
2128
2128
  cards: {
2129
2129
  revision: string;
2130
2130
  cardId: string;
@@ -2141,15 +2141,15 @@ declare const SupportPassportPublicCardSchema: z.ZodObject<{
2141
2141
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
2142
2142
  updatedAt: z.ZodEffects<z.ZodString, string, string>;
2143
2143
  }, "strict", z.ZodTypeAny, {
2144
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2144
2145
  title: string;
2145
2146
  updatedAt: string;
2146
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2147
2147
  cardId: string;
2148
2148
  statement: string;
2149
2149
  }, {
2150
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2150
2151
  title: string;
2151
2152
  updatedAt: string;
2152
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2153
2153
  cardId: string;
2154
2154
  statement: string;
2155
2155
  }>;
@@ -2165,38 +2165,38 @@ declare const SupportPassportPublicGuideSchema: z.ZodObject<{
2165
2165
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
2166
2166
  updatedAt: z.ZodEffects<z.ZodString, string, string>;
2167
2167
  }, "strict", z.ZodTypeAny, {
2168
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2168
2169
  title: string;
2169
2170
  updatedAt: string;
2170
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2171
2171
  cardId: string;
2172
2172
  statement: string;
2173
2173
  }, {
2174
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2174
2175
  title: string;
2175
2176
  updatedAt: string;
2176
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2177
2177
  cardId: string;
2178
2178
  statement: string;
2179
2179
  }>, "many">;
2180
2180
  }, "strict", z.ZodTypeAny, {
2181
+ expiresAt: string;
2181
2182
  schemaVersion: 1;
2182
2183
  updatedAt: string;
2183
- expiresAt: string;
2184
2184
  cards: {
2185
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2185
2186
  title: string;
2186
2187
  updatedAt: string;
2187
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2188
2188
  cardId: string;
2189
2189
  statement: string;
2190
2190
  }[];
2191
2191
  grantId: string;
2192
2192
  }, {
2193
+ expiresAt: string;
2193
2194
  schemaVersion: 1;
2194
2195
  updatedAt: string;
2195
- expiresAt: string;
2196
2196
  cards: {
2197
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2197
2198
  title: string;
2198
2199
  updatedAt: string;
2199
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2200
2200
  cardId: string;
2201
2201
  statement: string;
2202
2202
  }[];
@@ -1,4 +1,4 @@
1
- export { d as EngramAccessExtractionForceFlushRequest, e as EngramAccessExtractionForceFlushResponse, cb as EngramAccessLcmCompactionFlushRequest, g as EngramAccessLcmCompactionFlushResponse, cc as ExtractionForceFlushDelegate, cd as delegateExtractionForceFlush } from './access-service-DxTTTg9O.js';
1
+ export { d as EngramAccessExtractionForceFlushRequest, e as EngramAccessExtractionForceFlushResponse, cb as EngramAccessLcmCompactionFlushRequest, g as EngramAccessLcmCompactionFlushResponse, cc as ExtractionForceFlushDelegate, cd as delegateExtractionForceFlush } from './access-service-Cww3xAAy.js';
2
2
  import './types-Sps-lg5I.js';
3
3
  import './message-parts/index.js';
4
4
  import './bounded-jsonl-state.js';
@@ -5,7 +5,7 @@ import './storage-C9nsZX5Q.js';
5
5
  import './semantic-BalR6EXU.js';
6
6
  import './local-llm-3-jtw52a.js';
7
7
  import './fallback-llm.js';
8
- export { A as AccessProfilingReportRequest, a as AccessProfilingReportResponse, C as CodingScopedWriteInput, ct as ENGRAM_ACCESS_WRITE_SCHEMA_VERSION, cu as EngramAccessActionConfidenceRequest, cv as EngramAccessActionConfidenceResponse, p as EngramAccessBriefingRequest, q as EngramAccessBriefingResponse, b as EngramAccessCapsuleListResponse, cw as EngramAccessDaySummaryRequest, cx as EngramAccessEntityListResponse, cy as EngramAccessEntityResponse, cz as EngramAccessEntitySummary, d as EngramAccessExtractionForceFlushRequest, e as EngramAccessExtractionForceFlushResponse, cb as EngramAccessLcmCompactionFlushRequest, g as EngramAccessLcmCompactionFlushResponse, cA as EngramAccessLcmCompactionRecordRequest, h as EngramAccessLcmCompactionRecordResponse, j as EngramAccessLcmSearchRequest, k as EngramAccessLcmSearchResponse, cB as EngramAccessLcmStatusResponse, cC as EngramAccessMaintenanceResponse, cD as EngramAccessMemoryBrowseRequest, cE as EngramAccessMemoryBrowseResponse, cF as EngramAccessMemoryRecord, z as EngramAccessMemoryResponse, n as EngramAccessMemoryStoreRequest, J as EngramAccessMemorySummary, cG as EngramAccessObserveMessage, s as EngramAccessObserveRequest, t as EngramAccessObserveResponse, cH as EngramAccessOfflineSyncApplyFileContentRequest, cI as EngramAccessOfflineSyncApplyFileContentResponse, cJ as EngramAccessOfflineSyncApplyRequest, cK as EngramAccessOfflineSyncApplyResponse, cL as EngramAccessOfflineSyncFileContentRequest, cM as EngramAccessOfflineSyncFileContentResponse, cN as EngramAccessOfflineSyncFilesRequest, cO as EngramAccessOfflineSyncFilesResponse, cP as EngramAccessOfflineSyncFinalizeConvergenceRequest, cQ as EngramAccessOfflineSyncFinalizeConvergenceResponse, cR as EngramAccessOfflineSyncManifestRequest, cS as EngramAccessOfflineSyncSnapshotRequest, cT as EngramAccessOfflineSyncSnapshotResponse, i as EngramAccessOfflineSyncSnapshotStreamResponse, cU as EngramAccessQualityResponse, cV as EngramAccessRecallExplainRequest, cW as EngramAccessRecallExplainResponse, I as EngramAccessRecallRequest, H as EngramAccessRecallResponse, cX as EngramAccessReviewDispositionRequest, cY as EngramAccessReviewDispositionResponse, E as EngramAccessReviewQueueResponse, cZ as EngramAccessScopeDebug, f as EngramAccessService, K as EngramAccessSetCodingContextRequest, o as EngramAccessSuggestionSubmitRequest, c_ as EngramAccessTimelineResponse, c$ as EngramAccessTrustZoneBrowseRequest, d0 as EngramAccessTrustZoneBrowseResponse, d1 as EngramAccessTrustZoneDemoSeedRequest, d2 as EngramAccessTrustZoneDemoSeedResponse, d3 as EngramAccessTrustZonePromoteRequest, d4 as EngramAccessTrustZonePromoteResponse, d5 as EngramAccessTrustZoneRecordSummary, d6 as EngramAccessTrustZoneStatusResponse, d7 as EngramAccessWriteEnvelope, r as EngramAccessWriteResponse, m as MemoryScopePlan, d8 as RetainedCategorySpelling, d9 as buildProjectedGovernanceProposedActions, da as hasGroupedGovernanceActions, db as shapeMemorySummary } from './access-service-DxTTTg9O.js';
8
+ export { A as AccessProfilingReportRequest, a as AccessProfilingReportResponse, C as CodingScopedWriteInput, ct as ENGRAM_ACCESS_WRITE_SCHEMA_VERSION, cu as EngramAccessActionConfidenceRequest, cv as EngramAccessActionConfidenceResponse, p as EngramAccessBriefingRequest, q as EngramAccessBriefingResponse, b as EngramAccessCapsuleListResponse, cw as EngramAccessDaySummaryRequest, cx as EngramAccessEntityListResponse, cy as EngramAccessEntityResponse, cz as EngramAccessEntitySummary, d as EngramAccessExtractionForceFlushRequest, e as EngramAccessExtractionForceFlushResponse, cb as EngramAccessLcmCompactionFlushRequest, g as EngramAccessLcmCompactionFlushResponse, cA as EngramAccessLcmCompactionRecordRequest, h as EngramAccessLcmCompactionRecordResponse, j as EngramAccessLcmSearchRequest, k as EngramAccessLcmSearchResponse, cB as EngramAccessLcmStatusResponse, cC as EngramAccessMaintenanceResponse, cD as EngramAccessMemoryBrowseRequest, cE as EngramAccessMemoryBrowseResponse, cF as EngramAccessMemoryRecord, z as EngramAccessMemoryResponse, n as EngramAccessMemoryStoreRequest, J as EngramAccessMemorySummary, cG as EngramAccessObserveMessage, s as EngramAccessObserveRequest, t as EngramAccessObserveResponse, cH as EngramAccessOfflineSyncApplyFileContentRequest, cI as EngramAccessOfflineSyncApplyFileContentResponse, cJ as EngramAccessOfflineSyncApplyRequest, cK as EngramAccessOfflineSyncApplyResponse, cL as EngramAccessOfflineSyncFileContentRequest, cM as EngramAccessOfflineSyncFileContentResponse, cN as EngramAccessOfflineSyncFilesRequest, cO as EngramAccessOfflineSyncFilesResponse, cP as EngramAccessOfflineSyncFinalizeConvergenceRequest, cQ as EngramAccessOfflineSyncFinalizeConvergenceResponse, cR as EngramAccessOfflineSyncManifestRequest, cS as EngramAccessOfflineSyncSnapshotRequest, cT as EngramAccessOfflineSyncSnapshotResponse, i as EngramAccessOfflineSyncSnapshotStreamResponse, cU as EngramAccessQualityResponse, cV as EngramAccessRecallExplainRequest, cW as EngramAccessRecallExplainResponse, I as EngramAccessRecallRequest, H as EngramAccessRecallResponse, cX as EngramAccessReviewDispositionRequest, cY as EngramAccessReviewDispositionResponse, E as EngramAccessReviewQueueResponse, cZ as EngramAccessScopeDebug, f as EngramAccessService, K as EngramAccessSetCodingContextRequest, o as EngramAccessSuggestionSubmitRequest, c_ as EngramAccessTimelineResponse, c$ as EngramAccessTrustZoneBrowseRequest, d0 as EngramAccessTrustZoneBrowseResponse, d1 as EngramAccessTrustZoneDemoSeedRequest, d2 as EngramAccessTrustZoneDemoSeedResponse, d3 as EngramAccessTrustZonePromoteRequest, d4 as EngramAccessTrustZonePromoteResponse, d5 as EngramAccessTrustZoneRecordSummary, d6 as EngramAccessTrustZoneStatusResponse, d7 as EngramAccessWriteEnvelope, r as EngramAccessWriteResponse, m as MemoryScopePlan, d8 as RetainedCategorySpelling, d9 as buildProjectedGovernanceProposedActions, da as hasGroupedGovernanceActions, db as shapeMemorySummary } from './access-service-Cww3xAAy.js';
9
9
  import './trust-zones.js';
10
10
  import './message-parts/index.js';
11
11
  import './access-schema.js';
@@ -4,7 +4,7 @@ import {
4
4
  buildProjectedGovernanceProposedActions,
5
5
  hasGroupedGovernanceActions,
6
6
  shapeMemorySummary
7
- } from "./chunk-LXMZM7LM.js";
7
+ } from "./chunk-3K64PLY3.js";
8
8
  import "./chunk-W4F3C7N7.js";
9
9
  import "./chunk-MPC7TYTZ.js";
10
10
  import "./chunk-ZHXSOMYH.js";
@@ -169,13 +169,13 @@ import "./chunk-RGMVMVMF.js";
169
169
  import "./chunk-3QL24R5Y.js";
170
170
  import "./chunk-SYOIVK7K.js";
171
171
  import "./chunk-PQVCH2AE.js";
172
- import "./chunk-YTV6J4T6.js";
172
+ import "./chunk-2WMXZYMS.js";
173
173
  import "./chunk-UDAUULK2.js";
174
174
  import "./chunk-GDYU6VF4.js";
175
175
  import "./chunk-BT7NVCML.js";
176
176
  import "./chunk-353C5UNV.js";
177
177
  import "./chunk-VYCOJKSX.js";
178
- import "./chunk-CRK6F6N3.js";
178
+ import "./chunk-JUOJGZPV.js";
179
179
  import "./chunk-KQAFEZQX.js";
180
180
  import "./chunk-WEHSQBFR.js";
181
181
  import "./chunk-X7Y7WX73.js";
@@ -1,4 +1,4 @@
1
- import { O as OperationName } from './access-service-DxTTTg9O.js';
1
+ import { O as OperationName } from './access-service-Cww3xAAy.js';
2
2
  import './types-Sps-lg5I.js';
3
3
  import './message-parts/index.js';
4
4
  import './bounded-jsonl-state.js';
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  SUPPORT_PASSPORT_OWNER_HTTP_ROUTES
3
- } from "./chunk-KY75VZKG.js";
3
+ } from "./chunk-WJPR2XUN.js";
4
4
  import {
5
5
  SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES
6
- } from "./chunk-UCLWIMVW.js";
7
- import "./chunk-LXMZM7LM.js";
6
+ } from "./chunk-EOXCOZ6L.js";
7
+ import "./chunk-3K64PLY3.js";
8
8
  import "./chunk-W4F3C7N7.js";
9
9
  import "./chunk-MPC7TYTZ.js";
10
10
  import "./chunk-ZHXSOMYH.js";
@@ -169,13 +169,13 @@ import "./chunk-RGMVMVMF.js";
169
169
  import "./chunk-3QL24R5Y.js";
170
170
  import "./chunk-SYOIVK7K.js";
171
171
  import "./chunk-PQVCH2AE.js";
172
- import "./chunk-YTV6J4T6.js";
172
+ import "./chunk-2WMXZYMS.js";
173
173
  import "./chunk-UDAUULK2.js";
174
174
  import "./chunk-GDYU6VF4.js";
175
175
  import "./chunk-BT7NVCML.js";
176
176
  import "./chunk-353C5UNV.js";
177
177
  import "./chunk-VYCOJKSX.js";
178
- import "./chunk-CRK6F6N3.js";
178
+ import "./chunk-JUOJGZPV.js";
179
179
  import "./chunk-KQAFEZQX.js";
180
180
  import "./chunk-WEHSQBFR.js";
181
181
  import "./chunk-X7Y7WX73.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_REASONING_MODEL
3
- } from "./chunk-XIJHRQ4A.js";
3
+ } from "./chunk-W6YDAIVB.js";
4
4
  import "./chunk-ZKOPY4WW.js";
5
5
  import "./chunk-62OKGIJA.js";
6
6
  import "./chunk-3KJTSCSX.js";
@@ -9,7 +9,7 @@ import "./chunk-IWO6QXWJ.js";
9
9
  import "./chunk-WIKO4SCR.js";
10
10
  import "./chunk-Z5LAYHGJ.js";
11
11
  import "./chunk-6ZMAMSHS.js";
12
- import "./chunk-VNQRRUNS.js";
12
+ import "./chunk-O6ZSWHVR.js";
13
13
  import "./chunk-SK7D34OL.js";
14
14
  import "./chunk-6ZN34ISG.js";
15
15
  import "./chunk-H4WG3UQZ.js";
@@ -0,0 +1,25 @@
1
+ import {
2
+ canonicalCategoryForAlias,
3
+ categoryAliasCoercion
4
+ } from "./chunk-JUOJGZPV.js";
5
+
6
+ // src/access-observe-write-category.ts
7
+ function splitCanonicalWriteRequest(request) {
8
+ const { rawCategory, ...canonical } = request;
9
+ if (rawCategory === void 0 && typeof canonical.category === "string") {
10
+ const mapped = canonicalCategoryForAlias(canonical.category);
11
+ if (mapped !== void 0) {
12
+ const from = canonical.category;
13
+ return {
14
+ canonical: { ...canonical, category: mapped },
15
+ categoryCoercion: { from, to: mapped }
16
+ };
17
+ }
18
+ }
19
+ return { canonical, categoryCoercion: categoryAliasCoercion(rawCategory) };
20
+ }
21
+
22
+ export {
23
+ splitCanonicalWriteRequest
24
+ };
25
+ //# sourceMappingURL=chunk-2WMXZYMS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/access-observe-write-category.ts"],"sourcesContent":["/**\n * Category-alias split + replay restamp for observe/write (#2829).\n * Extracted from access-observe-write-surface.ts to stay under the 1200-line cap.\n *\n * The wire schema already maps an alias to \"fact\". `rawCategory` is the\n * caller's spelling: it must not reach the write candidate or fingerprint,\n * and a replay must rebuild the note from THIS request's spelling.\n */\nimport {\n canonicalCategoryForAlias,\n categoryAliasCoercion,\n reapplyCategoryCoercion,\n type CategoryAliasCoercion,\n type MemoryCategoryAlias,\n} from \"./access-schema.js\";\n\nexport { reapplyCategoryCoercion };\nexport { applyBriefingLocationContext } from \"./location/tagging.js\";\n\nexport function splitCanonicalWriteRequest<T extends { rawCategory?: string; category?: string }>(\n request: T,\n): {\n canonical: Omit<T, \"rawCategory\">;\n categoryCoercion: CategoryAliasCoercion | undefined;\n} {\n const { rawCategory, ...canonical } = request;\n // #2962: a direct service caller bypasses the wire schema, so an accepted\n // alias can still sit on `category`. Canonicalize it at the same boundary\n // the schema's transform covers for HTTP/MCP/CLI, minting the retained\n // spelling from the request itself. A schema-minted `rawCategory` always\n // wins (it names the spelling the transform actually canonicalized);\n // near-misses pass through untouched and reject at the write candidate\n // with the attempted category echoed.\n if (rawCategory === undefined && typeof canonical.category === \"string\") {\n const mapped = canonicalCategoryForAlias(canonical.category);\n if (mapped !== undefined) {\n const from = canonical.category as MemoryCategoryAlias;\n return {\n canonical: { ...canonical, category: mapped } as Omit<T, \"rawCategory\">,\n categoryCoercion: { from, to: mapped },\n };\n }\n }\n return { canonical, categoryCoercion: categoryAliasCoercion(rawCategory) };\n}\n"],"mappings":";;;;;;AAmBO,SAAS,2BACd,SAIA;AACA,QAAM,EAAE,aAAa,GAAG,UAAU,IAAI;AAQtC,MAAI,gBAAgB,UAAa,OAAO,UAAU,aAAa,UAAU;AACvE,UAAM,SAAS,0BAA0B,UAAU,QAAQ;AAC3D,QAAI,WAAW,QAAW;AACxB,YAAM,OAAO,UAAU;AACvB,aAAO;AAAA,QACL,WAAW,EAAE,GAAG,WAAW,UAAU,OAAO;AAAA,QAC5C,kBAAkB,EAAE,MAAM,IAAI,OAAO;AAAA,MACvC;AAAA,IACF;AAAA,EACF;AACA,SAAO,EAAE,WAAW,kBAAkB,sBAAsB,WAAW,EAAE;AAC3E;","names":[]}