@remnic/core 9.63.10 → 9.63.12

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 (96) hide show
  1. package/dist/access-admin-ops-surface.d.ts +2 -1
  2. package/dist/access-admin-ops-surface.js +1 -1
  3. package/dist/access-authorization-probe.d.ts +2 -1
  4. package/dist/access-authorization-probe.js +2 -2
  5. package/dist/access-boundary.d.ts +2 -1
  6. package/dist/access-boundary.js +1 -1
  7. package/dist/access-cli.js +14 -14
  8. package/dist/access-extraction-force-flush.d.ts +2 -1
  9. package/dist/access-extraction-force-flush.js +1 -1
  10. package/dist/access-http-lcm-compaction.d.ts +1 -1
  11. package/dist/access-http-lifecycle-flush.d.ts +1 -1
  12. package/dist/access-http-offline-stream.d.ts +2 -1
  13. package/dist/access-http-query.js +1 -1
  14. package/dist/access-http.d.ts +3 -2
  15. package/dist/access-http.js +11 -11
  16. package/dist/access-identity-continuity-surface.js +1 -1
  17. package/dist/access-lcm-surface.d.ts +2 -1
  18. package/dist/access-lcm-surface.js +1 -1
  19. package/dist/access-mcp.d.ts +2 -1
  20. package/dist/access-mcp.js +7 -7
  21. package/dist/access-namespace-preflight.js +1 -1
  22. package/dist/access-observe-write-surface.d.ts +2 -1
  23. package/dist/access-observe-write-surface.js +1 -1
  24. package/dist/access-operations-batch.js +3 -2
  25. package/dist/access-operations.d.ts +4 -4
  26. package/dist/access-operations.js +6 -6
  27. package/dist/access-recall-concurrency.d.ts +2 -1
  28. package/dist/access-recall-concurrency.js +1 -1
  29. package/dist/access-recall-response.d.ts +2 -1
  30. package/dist/access-recall-response.js +1 -1
  31. package/dist/access-recall-surface.d.ts +2 -1
  32. package/dist/access-recall-surface.js +1 -1
  33. package/dist/access-schema.d.ts +92 -92
  34. package/dist/access-schema.js +1 -1
  35. package/dist/{access-service-C0AE0jLs.d.ts → access-service-U6jiERic.d.ts} +80 -155
  36. package/dist/access-service-helpers.d.ts +2 -1
  37. package/dist/access-service.d.ts +2 -1
  38. package/dist/access-service.js +1 -1
  39. package/dist/access-surface-catalog.d.ts +2 -1
  40. package/dist/access-surface-catalog.js +3 -3
  41. package/dist/{chunk-R7FQQQ23.js → chunk-36XS2ASP.js} +2 -2
  42. package/dist/{chunk-EPRBTGLM.js → chunk-57WMVU4D.js} +50 -41
  43. package/dist/chunk-57WMVU4D.js.map +1 -0
  44. package/dist/{chunk-34E5NBQI.js → chunk-BYFKJXIR.js} +2 -2
  45. package/dist/{chunk-LQNBQEMC.js → chunk-DIJCMHUE.js} +2 -2
  46. package/dist/{chunk-MNI7KB4Q.js → chunk-HP6B732E.js} +4 -4
  47. package/dist/{chunk-XFJUPJD7.js → chunk-IRXMJLTW.js} +11 -2
  48. package/dist/{chunk-XFJUPJD7.js.map → chunk-IRXMJLTW.js.map} +1 -1
  49. package/dist/{chunk-SAWGVTCE.js → chunk-IUSV4XJC.js} +2 -2
  50. package/dist/{chunk-K477BTF4.js → chunk-JASFZQ76.js} +4 -4
  51. package/dist/{chunk-SILX74CP.js → chunk-NWHKHBL4.js} +43 -63
  52. package/dist/chunk-NWHKHBL4.js.map +1 -0
  53. package/dist/{chunk-JJ45UTNT.js → chunk-R5AWIILH.js} +22 -27
  54. package/dist/chunk-R5AWIILH.js.map +1 -0
  55. package/dist/{chunk-IOE75NA4.js → chunk-V2YH7T6T.js} +2 -2
  56. package/dist/{chunk-H5VDBZLZ.js → chunk-VCEE4YNA.js} +2 -2
  57. package/dist/{chunk-U5XC6DIS.js → chunk-XREXYQ5U.js} +4 -4
  58. package/dist/{chunk-MIM7QT6H.js → chunk-YI25J2JD.js} +1 -1
  59. package/dist/chunk-YI25J2JD.js.map +1 -0
  60. package/dist/{cli-xoJTOdMQ.d.ts → cli-BsaYHAH9.d.ts} +1 -1
  61. package/dist/cli.d.ts +3 -2
  62. package/dist/cli.js +12 -12
  63. package/dist/external-wiki-access.d.ts +2 -1
  64. package/dist/external-wiki-access.js +2 -2
  65. package/dist/external-wiki-mcp-tools.d.ts +2 -1
  66. package/dist/index.d.ts +680 -680
  67. package/dist/index.js +21 -21
  68. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  69. package/dist/orchestrator.js +14 -14
  70. package/dist/{public-http-DR3sHfwk.d.ts → public-http-jMlmLny4.d.ts} +1 -1
  71. package/dist/schemas.d.ts +108 -108
  72. package/dist/shared-context/manager.d.ts +8 -8
  73. package/dist/support-passport/index.d.ts +5 -4
  74. package/dist/support-passport/index.js +4 -4
  75. package/dist/transfer/types.d.ts +66 -66
  76. package/package.json +2 -2
  77. package/src/access-http.ts +47 -60
  78. package/src/access-mcp.test.ts +6 -10
  79. package/src/access-mcp.ts +21 -22
  80. package/src/access-operations-batch.ts +66 -18
  81. package/src/access-schema.ts +12 -1
  82. package/src/access-service.ts +18 -91
  83. package/src/recall-disclosure.test.ts +1 -1
  84. package/dist/chunk-EPRBTGLM.js.map +0 -1
  85. package/dist/chunk-JJ45UTNT.js.map +0 -1
  86. package/dist/chunk-MIM7QT6H.js.map +0 -1
  87. package/dist/chunk-SILX74CP.js.map +0 -1
  88. /package/dist/{chunk-R7FQQQ23.js.map → chunk-36XS2ASP.js.map} +0 -0
  89. /package/dist/{chunk-34E5NBQI.js.map → chunk-BYFKJXIR.js.map} +0 -0
  90. /package/dist/{chunk-LQNBQEMC.js.map → chunk-DIJCMHUE.js.map} +0 -0
  91. /package/dist/{chunk-MNI7KB4Q.js.map → chunk-HP6B732E.js.map} +0 -0
  92. /package/dist/{chunk-SAWGVTCE.js.map → chunk-IUSV4XJC.js.map} +0 -0
  93. /package/dist/{chunk-K477BTF4.js.map → chunk-JASFZQ76.js.map} +0 -0
  94. /package/dist/{chunk-IOE75NA4.js.map → chunk-V2YH7T6T.js.map} +0 -0
  95. /package/dist/{chunk-H5VDBZLZ.js.map → chunk-VCEE4YNA.js.map} +0 -0
  96. /package/dist/{chunk-U5XC6DIS.js.map → chunk-XREXYQ5U.js.map} +0 -0
package/dist/schemas.d.ts CHANGED
@@ -7,15 +7,15 @@ declare const MemoryActionEligibilityContextSchema: z.ZodObject<{
7
7
  importance: z.ZodNumber;
8
8
  source: z.ZodEnum<["extraction", "consolidation", "replay", "manual", "unknown"]>;
9
9
  }, "strict", z.ZodTypeAny, {
10
- source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
11
10
  confidence: number;
12
- lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
11
+ source: "unknown" | "manual" | "extraction" | "consolidation" | "replay";
13
12
  importance: number;
13
+ lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
14
14
  }, {
15
- source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
16
15
  confidence: number;
17
- lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
16
+ source: "unknown" | "manual" | "extraction" | "consolidation" | "replay";
18
17
  importance: number;
18
+ lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
19
19
  }>;
20
20
  declare function parseMemoryActionType(value: unknown): z.infer<typeof MemoryActionTypeSchema>;
21
21
  declare function parseMemoryActionEligibilityContext(value: unknown): z.infer<typeof MemoryActionEligibilityContextSchema>;
@@ -64,10 +64,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
64
64
  value: z.ZodString;
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  value: string;
67
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
67
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
68
68
  }, {
69
69
  value: string;
70
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
70
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
71
71
  }>, "many">>>;
72
72
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
73
73
  scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
@@ -112,11 +112,11 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
112
112
  order: z.ZodNumber;
113
113
  description: z.ZodString;
114
114
  }, "strip", z.ZodTypeAny, {
115
- order: number;
116
115
  description: string;
117
- }, {
118
116
  order: number;
117
+ }, {
119
118
  description: string;
119
+ order: number;
120
120
  }>, "many">;
121
121
  finalAnswer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
122
122
  final_answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -124,8 +124,8 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
124
124
  observed_outcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
125
125
  }, "strip", z.ZodTypeAny, {
126
126
  steps: {
127
- order: number;
128
127
  description: string;
128
+ order: number;
129
129
  }[];
130
130
  finalAnswer?: string | null | undefined;
131
131
  final_answer?: string | null | undefined;
@@ -133,8 +133,8 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
133
133
  observed_outcome?: string | null | undefined;
134
134
  }, {
135
135
  steps: {
136
- order: number;
137
136
  description: string;
137
+ order: number;
138
138
  }[];
139
139
  finalAnswer?: string | null | undefined;
140
140
  final_answer?: string | null | undefined;
@@ -142,8 +142,8 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
142
142
  observed_outcome?: string | null | undefined;
143
143
  }>, {
144
144
  steps: {
145
- order: number;
146
145
  description: string;
146
+ order: number;
147
147
  }[];
148
148
  finalAnswer?: string | null | undefined;
149
149
  final_answer?: string | null | undefined;
@@ -151,8 +151,8 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
151
151
  observed_outcome?: string | null | undefined;
152
152
  }, {
153
153
  steps: {
154
- order: number;
155
154
  description: string;
155
+ order: number;
156
156
  }[];
157
157
  finalAnswer?: string | null | undefined;
158
158
  final_answer?: string | null | undefined;
@@ -162,15 +162,15 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
162
162
  eventTime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
163
163
  event_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
164
164
  }, "strip", z.ZodTypeAny, {
165
- tags: string[];
166
- content: string;
167
165
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
166
+ content: string;
168
167
  confidence: number;
168
+ tags: string[];
169
169
  entityRef?: string | null | undefined;
170
170
  structuredAttributes?: Record<string, string> | null | undefined;
171
171
  cueAnchors?: {
172
172
  value: string;
173
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
173
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
174
174
  }[] | null | undefined;
175
175
  promptedByQuestion?: string | null | undefined;
176
176
  scope?: "project" | "global" | null | undefined;
@@ -187,8 +187,8 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
187
187
  }[] | null | undefined;
188
188
  reasoningTrace?: {
189
189
  steps: {
190
- order: number;
191
190
  description: string;
191
+ order: number;
192
192
  }[];
193
193
  finalAnswer?: string | null | undefined;
194
194
  final_answer?: string | null | undefined;
@@ -198,15 +198,15 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
198
198
  eventTime?: string | null | undefined;
199
199
  event_time?: string | null | undefined;
200
200
  }, {
201
- tags: string[];
202
- content: string;
203
201
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
202
+ content: string;
204
203
  confidence: number;
204
+ tags: string[];
205
205
  entityRef?: string | null | undefined;
206
206
  structuredAttributes?: Record<string, string> | null | undefined;
207
207
  cueAnchors?: {
208
208
  value: string;
209
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
209
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
210
210
  }[] | null | undefined;
211
211
  promptedByQuestion?: string | null | undefined;
212
212
  scope?: "project" | "global" | null | undefined;
@@ -223,8 +223,8 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
223
223
  }[] | null | undefined;
224
224
  reasoningTrace?: {
225
225
  steps: {
226
- order: number;
227
226
  description: string;
227
+ order: number;
228
228
  }[];
229
229
  finalAnswer?: string | null | undefined;
230
230
  final_answer?: string | null | undefined;
@@ -234,15 +234,15 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
234
234
  eventTime?: string | null | undefined;
235
235
  event_time?: string | null | undefined;
236
236
  }>, {
237
- tags: string[];
238
- content: string;
239
237
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
238
+ content: string;
240
239
  confidence: number;
240
+ tags: string[];
241
241
  entityRef?: string | null | undefined;
242
242
  structuredAttributes?: Record<string, string> | null | undefined;
243
243
  cueAnchors?: {
244
244
  value: string;
245
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
245
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
246
246
  }[] | null | undefined;
247
247
  promptedByQuestion?: string | null | undefined;
248
248
  scope?: "project" | "global" | null | undefined;
@@ -259,8 +259,8 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
259
259
  }[] | null | undefined;
260
260
  reasoningTrace?: {
261
261
  steps: {
262
- order: number;
263
262
  description: string;
263
+ order: number;
264
264
  }[];
265
265
  finalAnswer?: string | null | undefined;
266
266
  final_answer?: string | null | undefined;
@@ -270,15 +270,15 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
270
270
  eventTime?: string | null | undefined;
271
271
  event_time?: string | null | undefined;
272
272
  }, {
273
- tags: string[];
274
- content: string;
275
273
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
274
+ content: string;
276
275
  confidence: number;
276
+ tags: string[];
277
277
  entityRef?: string | null | undefined;
278
278
  structuredAttributes?: Record<string, string> | null | undefined;
279
279
  cueAnchors?: {
280
280
  value: string;
281
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
281
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
282
282
  }[] | null | undefined;
283
283
  promptedByQuestion?: string | null | undefined;
284
284
  scope?: "project" | "global" | null | undefined;
@@ -295,8 +295,8 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
295
295
  }[] | null | undefined;
296
296
  reasoningTrace?: {
297
297
  steps: {
298
- order: number;
299
298
  description: string;
299
+ order: number;
300
300
  }[];
301
301
  finalAnswer?: string | null | undefined;
302
302
  final_answer?: string | null | undefined;
@@ -316,12 +316,12 @@ declare const EntityMentionSchema: z.ZodObject<{
316
316
  title: z.ZodString;
317
317
  facts: z.ZodArray<z.ZodString, "many">;
318
318
  }, "strip", z.ZodTypeAny, {
319
- title: string;
320
319
  key: string;
320
+ title: string;
321
321
  facts: string[];
322
322
  }, {
323
- title: string;
324
323
  key: string;
324
+ title: string;
325
325
  facts: string[];
326
326
  }>, "many">>>;
327
327
  }, "strip", z.ZodTypeAny, {
@@ -330,8 +330,8 @@ declare const EntityMentionSchema: z.ZodObject<{
330
330
  facts: string[];
331
331
  promptedByQuestion?: string | null | undefined;
332
332
  structuredSections?: {
333
- title: string;
334
333
  key: string;
334
+ title: string;
335
335
  facts: string[];
336
336
  }[] | null | undefined;
337
337
  }, {
@@ -340,8 +340,8 @@ declare const EntityMentionSchema: z.ZodObject<{
340
340
  facts: string[];
341
341
  promptedByQuestion?: string | null | undefined;
342
342
  structuredSections?: {
343
- title: string;
344
343
  key: string;
344
+ title: string;
345
345
  facts: string[];
346
346
  }[] | null | undefined;
347
347
  }>;
@@ -391,13 +391,13 @@ declare const ExtractedRelationshipSchema: z.ZodObject<{
391
391
  label: z.ZodString;
392
392
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
393
393
  }, "strip", z.ZodTypeAny, {
394
- source: string;
395
394
  label: string;
395
+ source: string;
396
396
  target: string;
397
397
  promptedByQuestion?: string | null | undefined;
398
398
  }, {
399
- source: string;
400
399
  label: string;
400
+ source: string;
401
401
  target: string;
402
402
  promptedByQuestion?: string | null | undefined;
403
403
  }>;
@@ -413,10 +413,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
413
413
  value: z.ZodString;
414
414
  }, "strip", z.ZodTypeAny, {
415
415
  value: string;
416
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
416
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
417
417
  }, {
418
418
  value: string;
419
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
419
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
420
420
  }>, "many">>>;
421
421
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
422
422
  scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
@@ -461,11 +461,11 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
461
461
  order: z.ZodNumber;
462
462
  description: z.ZodString;
463
463
  }, "strip", z.ZodTypeAny, {
464
- order: number;
465
464
  description: string;
466
- }, {
467
465
  order: number;
466
+ }, {
468
467
  description: string;
468
+ order: number;
469
469
  }>, "many">;
470
470
  finalAnswer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
471
471
  final_answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -473,8 +473,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
473
473
  observed_outcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
474
474
  }, "strip", z.ZodTypeAny, {
475
475
  steps: {
476
- order: number;
477
476
  description: string;
477
+ order: number;
478
478
  }[];
479
479
  finalAnswer?: string | null | undefined;
480
480
  final_answer?: string | null | undefined;
@@ -482,8 +482,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
482
482
  observed_outcome?: string | null | undefined;
483
483
  }, {
484
484
  steps: {
485
- order: number;
486
485
  description: string;
486
+ order: number;
487
487
  }[];
488
488
  finalAnswer?: string | null | undefined;
489
489
  final_answer?: string | null | undefined;
@@ -491,8 +491,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
491
491
  observed_outcome?: string | null | undefined;
492
492
  }>, {
493
493
  steps: {
494
- order: number;
495
494
  description: string;
495
+ order: number;
496
496
  }[];
497
497
  finalAnswer?: string | null | undefined;
498
498
  final_answer?: string | null | undefined;
@@ -500,8 +500,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
500
500
  observed_outcome?: string | null | undefined;
501
501
  }, {
502
502
  steps: {
503
- order: number;
504
503
  description: string;
504
+ order: number;
505
505
  }[];
506
506
  finalAnswer?: string | null | undefined;
507
507
  final_answer?: string | null | undefined;
@@ -511,15 +511,15 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
511
511
  eventTime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
512
512
  event_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
513
513
  }, "strip", z.ZodTypeAny, {
514
- tags: string[];
515
- content: string;
516
514
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
515
+ content: string;
517
516
  confidence: number;
517
+ tags: string[];
518
518
  entityRef?: string | null | undefined;
519
519
  structuredAttributes?: Record<string, string> | null | undefined;
520
520
  cueAnchors?: {
521
521
  value: string;
522
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
522
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
523
523
  }[] | null | undefined;
524
524
  promptedByQuestion?: string | null | undefined;
525
525
  scope?: "project" | "global" | null | undefined;
@@ -536,8 +536,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
536
536
  }[] | null | undefined;
537
537
  reasoningTrace?: {
538
538
  steps: {
539
- order: number;
540
539
  description: string;
540
+ order: number;
541
541
  }[];
542
542
  finalAnswer?: string | null | undefined;
543
543
  final_answer?: string | null | undefined;
@@ -547,15 +547,15 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
547
547
  eventTime?: string | null | undefined;
548
548
  event_time?: string | null | undefined;
549
549
  }, {
550
- tags: string[];
551
- content: string;
552
550
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
551
+ content: string;
553
552
  confidence: number;
553
+ tags: string[];
554
554
  entityRef?: string | null | undefined;
555
555
  structuredAttributes?: Record<string, string> | null | undefined;
556
556
  cueAnchors?: {
557
557
  value: string;
558
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
558
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
559
559
  }[] | null | undefined;
560
560
  promptedByQuestion?: string | null | undefined;
561
561
  scope?: "project" | "global" | null | undefined;
@@ -572,8 +572,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
572
572
  }[] | null | undefined;
573
573
  reasoningTrace?: {
574
574
  steps: {
575
- order: number;
576
575
  description: string;
576
+ order: number;
577
577
  }[];
578
578
  finalAnswer?: string | null | undefined;
579
579
  final_answer?: string | null | undefined;
@@ -583,15 +583,15 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
583
583
  eventTime?: string | null | undefined;
584
584
  event_time?: string | null | undefined;
585
585
  }>, {
586
- tags: string[];
587
- content: string;
588
586
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
587
+ content: string;
589
588
  confidence: number;
589
+ tags: string[];
590
590
  entityRef?: string | null | undefined;
591
591
  structuredAttributes?: Record<string, string> | null | undefined;
592
592
  cueAnchors?: {
593
593
  value: string;
594
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
594
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
595
595
  }[] | null | undefined;
596
596
  promptedByQuestion?: string | null | undefined;
597
597
  scope?: "project" | "global" | null | undefined;
@@ -608,8 +608,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
608
608
  }[] | null | undefined;
609
609
  reasoningTrace?: {
610
610
  steps: {
611
- order: number;
612
611
  description: string;
612
+ order: number;
613
613
  }[];
614
614
  finalAnswer?: string | null | undefined;
615
615
  final_answer?: string | null | undefined;
@@ -619,15 +619,15 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
619
619
  eventTime?: string | null | undefined;
620
620
  event_time?: string | null | undefined;
621
621
  }, {
622
- tags: string[];
623
- content: string;
624
622
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
623
+ content: string;
625
624
  confidence: number;
625
+ tags: string[];
626
626
  entityRef?: string | null | undefined;
627
627
  structuredAttributes?: Record<string, string> | null | undefined;
628
628
  cueAnchors?: {
629
629
  value: string;
630
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
630
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
631
631
  }[] | null | undefined;
632
632
  promptedByQuestion?: string | null | undefined;
633
633
  scope?: "project" | "global" | null | undefined;
@@ -644,8 +644,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
644
644
  }[] | null | undefined;
645
645
  reasoningTrace?: {
646
646
  steps: {
647
- order: number;
648
647
  description: string;
648
+ order: number;
649
649
  }[];
650
650
  finalAnswer?: string | null | undefined;
651
651
  final_answer?: string | null | undefined;
@@ -666,12 +666,12 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
666
666
  title: z.ZodString;
667
667
  facts: z.ZodArray<z.ZodString, "many">;
668
668
  }, "strip", z.ZodTypeAny, {
669
- title: string;
670
669
  key: string;
670
+ title: string;
671
671
  facts: string[];
672
672
  }, {
673
- title: string;
674
673
  key: string;
674
+ title: string;
675
675
  facts: string[];
676
676
  }>, "many">>>;
677
677
  }, "strip", z.ZodTypeAny, {
@@ -680,8 +680,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
680
680
  facts: string[];
681
681
  promptedByQuestion?: string | null | undefined;
682
682
  structuredSections?: {
683
- title: string;
684
683
  key: string;
684
+ title: string;
685
685
  facts: string[];
686
686
  }[] | null | undefined;
687
687
  }, {
@@ -690,8 +690,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
690
690
  facts: string[];
691
691
  promptedByQuestion?: string | null | undefined;
692
692
  structuredSections?: {
693
- title: string;
694
693
  key: string;
694
+ title: string;
695
695
  facts: string[];
696
696
  }[] | null | undefined;
697
697
  }>, "many">;
@@ -701,27 +701,27 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
701
701
  label: z.ZodString;
702
702
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
703
703
  }, "strip", z.ZodTypeAny, {
704
- source: string;
705
704
  label: string;
705
+ source: string;
706
706
  target: string;
707
707
  promptedByQuestion?: string | null | undefined;
708
708
  }, {
709
- source: string;
710
709
  label: string;
710
+ source: string;
711
711
  target: string;
712
712
  promptedByQuestion?: string | null | undefined;
713
713
  }>, "many">>>;
714
714
  }, "strip", z.ZodTypeAny, {
715
715
  facts: {
716
- tags: string[];
717
- content: string;
718
716
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
717
+ content: string;
719
718
  confidence: number;
719
+ tags: string[];
720
720
  entityRef?: string | null | undefined;
721
721
  structuredAttributes?: Record<string, string> | null | undefined;
722
722
  cueAnchors?: {
723
723
  value: string;
724
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
724
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
725
725
  }[] | null | undefined;
726
726
  promptedByQuestion?: string | null | undefined;
727
727
  scope?: "project" | "global" | null | undefined;
@@ -738,8 +738,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
738
738
  }[] | null | undefined;
739
739
  reasoningTrace?: {
740
740
  steps: {
741
- order: number;
742
741
  description: string;
742
+ order: number;
743
743
  }[];
744
744
  finalAnswer?: string | null | undefined;
745
745
  final_answer?: string | null | undefined;
@@ -755,29 +755,29 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
755
755
  facts: string[];
756
756
  promptedByQuestion?: string | null | undefined;
757
757
  structuredSections?: {
758
- title: string;
759
758
  key: string;
759
+ title: string;
760
760
  facts: string[];
761
761
  }[] | null | undefined;
762
762
  }[];
763
763
  profileUpdates: string[];
764
764
  relationships?: {
765
- source: string;
766
765
  label: string;
766
+ source: string;
767
767
  target: string;
768
768
  promptedByQuestion?: string | null | undefined;
769
769
  }[] | null | undefined;
770
770
  }, {
771
771
  facts: {
772
- tags: string[];
773
- content: string;
774
772
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
773
+ content: string;
775
774
  confidence: number;
775
+ tags: string[];
776
776
  entityRef?: string | null | undefined;
777
777
  structuredAttributes?: Record<string, string> | null | undefined;
778
778
  cueAnchors?: {
779
779
  value: string;
780
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
780
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
781
781
  }[] | null | undefined;
782
782
  promptedByQuestion?: string | null | undefined;
783
783
  scope?: "project" | "global" | null | undefined;
@@ -794,8 +794,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
794
794
  }[] | null | undefined;
795
795
  reasoningTrace?: {
796
796
  steps: {
797
- order: number;
798
797
  description: string;
798
+ order: number;
799
799
  }[];
800
800
  finalAnswer?: string | null | undefined;
801
801
  final_answer?: string | null | undefined;
@@ -811,30 +811,30 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
811
811
  facts: string[];
812
812
  promptedByQuestion?: string | null | undefined;
813
813
  structuredSections?: {
814
- title: string;
815
814
  key: string;
815
+ title: string;
816
816
  facts: string[];
817
817
  }[] | null | undefined;
818
818
  }[];
819
819
  profileUpdates: string[];
820
820
  relationships?: {
821
- source: string;
822
821
  label: string;
822
+ source: string;
823
823
  target: string;
824
824
  promptedByQuestion?: string | null | undefined;
825
825
  }[] | null | undefined;
826
826
  }>;
827
827
  declare const ExtractionResultSchema: z.ZodObject<{
828
828
  facts: z.ZodEffects<z.ZodArray<z.ZodUnknown, "many">, {
829
- tags: string[];
830
- content: string;
831
829
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
830
+ content: string;
832
831
  confidence: number;
832
+ tags: string[];
833
833
  entityRef?: string | null | undefined;
834
834
  structuredAttributes?: Record<string, string> | null | undefined;
835
835
  cueAnchors?: {
836
836
  value: string;
837
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
837
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
838
838
  }[] | null | undefined;
839
839
  promptedByQuestion?: string | null | undefined;
840
840
  scope?: "project" | "global" | null | undefined;
@@ -851,8 +851,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
851
851
  }[] | null | undefined;
852
852
  reasoningTrace?: {
853
853
  steps: {
854
- order: number;
855
854
  description: string;
855
+ order: number;
856
856
  }[];
857
857
  finalAnswer?: string | null | undefined;
858
858
  final_answer?: string | null | undefined;
@@ -869,8 +869,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
869
869
  facts: string[];
870
870
  promptedByQuestion?: string | null | undefined;
871
871
  structuredSections?: {
872
- title: string;
873
872
  key: string;
873
+ title: string;
874
874
  facts: string[];
875
875
  }[] | null | undefined;
876
876
  }[], unknown[]>;
@@ -882,8 +882,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
882
882
  identityReflection: z.ZodNullable<z.ZodOptional<z.ZodString>>;
883
883
  episodeTitle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
884
884
  relationships: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnknown, "many">, {
885
- source: string;
886
885
  label: string;
886
+ source: string;
887
887
  target: string;
888
888
  promptedByQuestion?: string | null | undefined;
889
889
  }[], unknown[]>>>;
@@ -894,15 +894,15 @@ declare const ExtractionResultSchema: z.ZodObject<{
894
894
  context: string;
895
895
  }[];
896
896
  facts: {
897
- tags: string[];
898
- content: string;
899
897
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
898
+ content: string;
900
899
  confidence: number;
900
+ tags: string[];
901
901
  entityRef?: string | null | undefined;
902
902
  structuredAttributes?: Record<string, string> | null | undefined;
903
903
  cueAnchors?: {
904
904
  value: string;
905
- type: "constraint" | "entity" | "file" | "tool" | "outcome" | "date";
905
+ type: "entity" | "constraint" | "file" | "tool" | "outcome" | "date";
906
906
  }[] | null | undefined;
907
907
  promptedByQuestion?: string | null | undefined;
908
908
  scope?: "project" | "global" | null | undefined;
@@ -919,8 +919,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
919
919
  }[] | null | undefined;
920
920
  reasoningTrace?: {
921
921
  steps: {
922
- order: number;
923
922
  description: string;
923
+ order: number;
924
924
  }[];
925
925
  finalAnswer?: string | null | undefined;
926
926
  final_answer?: string | null | undefined;
@@ -936,15 +936,15 @@ declare const ExtractionResultSchema: z.ZodObject<{
936
936
  facts: string[];
937
937
  promptedByQuestion?: string | null | undefined;
938
938
  structuredSections?: {
939
- title: string;
940
939
  key: string;
940
+ title: string;
941
941
  facts: string[];
942
942
  }[] | null | undefined;
943
943
  }[];
944
944
  profileUpdates: string[];
945
945
  relationships?: {
946
- source: string;
947
946
  label: string;
947
+ source: string;
948
948
  target: string;
949
949
  promptedByQuestion?: string | null | undefined;
950
950
  }[] | null | undefined;
@@ -966,15 +966,15 @@ declare const ConsolidationItemSchema: z.ZodObject<{
966
966
  updatedContent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
967
967
  reason: z.ZodString;
968
968
  }, "strip", z.ZodTypeAny, {
969
+ action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
969
970
  reason: string;
970
971
  existingId: string;
971
- action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
972
972
  mergeWith?: string | null | undefined;
973
973
  updatedContent?: string | null | undefined;
974
974
  }, {
975
+ action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
975
976
  reason: string;
976
977
  existingId: string;
977
- action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
978
978
  mergeWith?: string | null | undefined;
979
979
  updatedContent?: string | null | undefined;
980
980
  }>;
@@ -986,15 +986,15 @@ declare const ConsolidationResultSchema: z.ZodObject<{
986
986
  updatedContent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
987
987
  reason: z.ZodString;
988
988
  }, "strip", z.ZodTypeAny, {
989
+ action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
989
990
  reason: string;
990
991
  existingId: string;
991
- action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
992
992
  mergeWith?: string | null | undefined;
993
993
  updatedContent?: string | null | undefined;
994
994
  }, {
995
+ action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
995
996
  reason: string;
996
997
  existingId: string;
997
- action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
998
998
  mergeWith?: string | null | undefined;
999
999
  updatedContent?: string | null | undefined;
1000
1000
  }>, "many">;
@@ -1009,12 +1009,12 @@ declare const ConsolidationResultSchema: z.ZodObject<{
1009
1009
  title: z.ZodString;
1010
1010
  facts: z.ZodArray<z.ZodString, "many">;
1011
1011
  }, "strip", z.ZodTypeAny, {
1012
- title: string;
1013
1012
  key: string;
1013
+ title: string;
1014
1014
  facts: string[];
1015
1015
  }, {
1016
- title: string;
1017
1016
  key: string;
1017
+ title: string;
1018
1018
  facts: string[];
1019
1019
  }>, "many">>>;
1020
1020
  }, "strip", z.ZodTypeAny, {
@@ -1023,8 +1023,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
1023
1023
  facts: string[];
1024
1024
  promptedByQuestion?: string | null | undefined;
1025
1025
  structuredSections?: {
1026
- title: string;
1027
1026
  key: string;
1027
+ title: string;
1028
1028
  facts: string[];
1029
1029
  }[] | null | undefined;
1030
1030
  }, {
@@ -1033,16 +1033,16 @@ declare const ConsolidationResultSchema: z.ZodObject<{
1033
1033
  facts: string[];
1034
1034
  promptedByQuestion?: string | null | undefined;
1035
1035
  structuredSections?: {
1036
- title: string;
1037
1036
  key: string;
1037
+ title: string;
1038
1038
  facts: string[];
1039
1039
  }[] | null | undefined;
1040
1040
  }>, "many">;
1041
1041
  }, "strip", z.ZodTypeAny, {
1042
1042
  items: {
1043
+ action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
1043
1044
  reason: string;
1044
1045
  existingId: string;
1045
- action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
1046
1046
  mergeWith?: string | null | undefined;
1047
1047
  updatedContent?: string | null | undefined;
1048
1048
  }[];
@@ -1053,16 +1053,16 @@ declare const ConsolidationResultSchema: z.ZodObject<{
1053
1053
  facts: string[];
1054
1054
  promptedByQuestion?: string | null | undefined;
1055
1055
  structuredSections?: {
1056
- title: string;
1057
1056
  key: string;
1057
+ title: string;
1058
1058
  facts: string[];
1059
1059
  }[] | null | undefined;
1060
1060
  }[];
1061
1061
  }, {
1062
1062
  items: {
1063
+ action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
1063
1064
  reason: string;
1064
1065
  existingId: string;
1065
- action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
1066
1066
  mergeWith?: string | null | undefined;
1067
1067
  updatedContent?: string | null | undefined;
1068
1068
  }[];
@@ -1073,8 +1073,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
1073
1073
  facts: string[];
1074
1074
  promptedByQuestion?: string | null | undefined;
1075
1075
  structuredSections?: {
1076
- title: string;
1077
1076
  key: string;
1077
+ title: string;
1078
1078
  facts: string[];
1079
1079
  }[] | null | undefined;
1080
1080
  }[];
@@ -1122,13 +1122,13 @@ declare const ContradictionVerificationSchema: z.ZodObject<{
1122
1122
  reasoning: z.ZodString;
1123
1123
  whichIsNewer: z.ZodEnum<["first", "second", "unclear"]>;
1124
1124
  }, "strip", z.ZodTypeAny, {
1125
- reasoning: string;
1126
1125
  confidence: number;
1126
+ reasoning: string;
1127
1127
  isContradiction: boolean;
1128
1128
  whichIsNewer: "first" | "second" | "unclear";
1129
1129
  }, {
1130
- reasoning: string;
1131
1130
  confidence: number;
1131
+ reasoning: string;
1132
1132
  isContradiction: boolean;
1133
1133
  whichIsNewer: "first" | "second" | "unclear";
1134
1134
  }>;
@@ -1223,8 +1223,8 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
1223
1223
  reason: z.ZodString;
1224
1224
  appliedAt: z.ZodString;
1225
1225
  }, "strip", z.ZodTypeAny, {
1226
- confidence: number;
1227
1226
  reason: string;
1227
+ confidence: number;
1228
1228
  parameter: string;
1229
1229
  previousValue: number;
1230
1230
  nextValue: number;
@@ -1232,8 +1232,8 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
1232
1232
  evidenceCount: number;
1233
1233
  appliedAt: string;
1234
1234
  }, {
1235
- confidence: number;
1236
1235
  reason: string;
1236
+ confidence: number;
1237
1237
  parameter: string;
1238
1238
  previousValue: number;
1239
1239
  nextValue: number;
@@ -1257,8 +1257,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
1257
1257
  reason: z.ZodString;
1258
1258
  appliedAt: z.ZodString;
1259
1259
  }, "strip", z.ZodTypeAny, {
1260
- confidence: number;
1261
1260
  reason: string;
1261
+ confidence: number;
1262
1262
  parameter: string;
1263
1263
  previousValue: number;
1264
1264
  nextValue: number;
@@ -1266,8 +1266,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
1266
1266
  evidenceCount: number;
1267
1267
  appliedAt: string;
1268
1268
  }, {
1269
- confidence: number;
1270
1269
  reason: string;
1270
+ confidence: number;
1271
1271
  parameter: string;
1272
1272
  previousValue: number;
1273
1273
  nextValue: number;
@@ -1283,8 +1283,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
1283
1283
  maxDeltaPerCycle: number;
1284
1284
  protectedParams: string[];
1285
1285
  adjustments: {
1286
- confidence: number;
1287
1286
  reason: string;
1287
+ confidence: number;
1288
1288
  parameter: string;
1289
1289
  previousValue: number;
1290
1290
  nextValue: number;
@@ -1300,8 +1300,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
1300
1300
  maxDeltaPerCycle: number;
1301
1301
  protectedParams: string[];
1302
1302
  adjustments: {
1303
- confidence: number;
1304
1303
  reason: string;
1304
+ confidence: number;
1305
1305
  parameter: string;
1306
1306
  previousValue: number;
1307
1307
  nextValue: number;