@remnic/core 9.7.10 → 9.7.11

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 (50) hide show
  1. package/dist/access-boundary.d.ts +1 -1
  2. package/dist/access-boundary.js +1 -1
  3. package/dist/access-cli.js +7 -7
  4. package/dist/access-http.d.ts +2 -1
  5. package/dist/access-http.js +5 -5
  6. package/dist/access-mcp.js +4 -4
  7. package/dist/access-operations-batch.js +2 -2
  8. package/dist/access-operations.d.ts +4 -4
  9. package/dist/access-operations.js +3 -3
  10. package/dist/access-schema.d.ts +64 -64
  11. package/dist/access-surface-catalog.js +2 -0
  12. package/dist/access-surface-catalog.js.map +1 -1
  13. package/dist/{chunk-N3LWQJ6Y.js → chunk-5U65RIVI.js} +294 -2
  14. package/dist/chunk-5U65RIVI.js.map +1 -0
  15. package/dist/{chunk-UZRIKUFS.js → chunk-6LM6PPDX.js} +3 -1
  16. package/dist/chunk-6LM6PPDX.js.map +1 -0
  17. package/dist/chunk-7XRUYC6G.js +1794 -0
  18. package/dist/chunk-7XRUYC6G.js.map +1 -0
  19. package/dist/{chunk-VDLMAJXS.js → chunk-GHVJASQ4.js} +2 -2
  20. package/dist/{chunk-7EX4YOKH.js → chunk-JYRFO4EH.js} +2 -2
  21. package/dist/{chunk-QVALQE4P.js → chunk-QHT4W3RU.js} +126 -8
  22. package/dist/chunk-QHT4W3RU.js.map +1 -0
  23. package/dist/{chunk-7CKS4AXY.js → chunk-W6R43NLA.js} +3 -3
  24. package/dist/cli.js +6 -6
  25. package/dist/index.d.ts +3990 -4
  26. package/dist/index.js +54 -7
  27. package/dist/orchestrator.js +7 -7
  28. package/dist/schemas.d.ts +52 -52
  29. package/dist/shared-context/manager.d.ts +8 -8
  30. package/dist/transfer/types.d.ts +66 -66
  31. package/package.json +2 -2
  32. package/src/access-boundary.ts +2 -0
  33. package/src/access-http.ts +147 -6
  34. package/src/access-mcp-cancellation.test.ts +2 -2
  35. package/src/access-operations.ts +2 -0
  36. package/src/access-surface-catalog.ts +2 -0
  37. package/src/index.ts +53 -0
  38. package/src/relay/mission-access.test.ts +379 -0
  39. package/src/relay/mission-access.ts +125 -0
  40. package/src/relay/mission-fixture.ts +301 -0
  41. package/src/relay/mission.test.ts +964 -0
  42. package/src/relay/mission.ts +1725 -0
  43. package/dist/chunk-FNJX2O6G.js +0 -467
  44. package/dist/chunk-FNJX2O6G.js.map +0 -1
  45. package/dist/chunk-N3LWQJ6Y.js.map +0 -1
  46. package/dist/chunk-QVALQE4P.js.map +0 -1
  47. package/dist/chunk-UZRIKUFS.js.map +0 -1
  48. /package/dist/{chunk-VDLMAJXS.js.map → chunk-GHVJASQ4.js.map} +0 -0
  49. /package/dist/{chunk-7EX4YOKH.js.map → chunk-JYRFO4EH.js.map} +0 -0
  50. /package/dist/{chunk-7CKS4AXY.js.map → chunk-W6R43NLA.js.map} +0 -0
package/dist/index.js CHANGED
@@ -11,6 +11,8 @@ import {
11
11
  NoneBackend,
12
12
  Orchestrator,
13
13
  PUBLISHERS,
14
+ RELAY_DEMO_MISSION_ID,
15
+ RELAY_DEMO_NAMESPACE,
14
16
  REMNIC_CITATION_FORMAT,
15
17
  REMNIC_MCP_TOOL_INVENTORY,
16
18
  REMNIC_RECALL_DECISION_RULES,
@@ -22,6 +24,7 @@ import {
22
24
  collectLocalSessionSummaries,
23
25
  compileRedactionRules,
24
26
  createBackend,
27
+ createRelayMissionFixture,
25
28
  createSpace,
26
29
  createSubprocessStructuralProvider,
27
30
  curate,
@@ -93,7 +96,7 @@ import {
93
96
  validateTaxonomy,
94
97
  watchForChanges,
95
98
  writeManifest
96
- } from "./chunk-N3LWQJ6Y.js";
99
+ } from "./chunk-5U65RIVI.js";
97
100
  import {
98
101
  WEARABLE_SOURCE_PREFIX,
99
102
  buildExtractionTurns,
@@ -348,7 +351,7 @@ import {
348
351
  registerTrainingExportAdapter,
349
352
  runBulkImportCliCommand,
350
353
  runWearablesCliCommand
351
- } from "./chunk-7CKS4AXY.js";
354
+ } from "./chunk-W6R43NLA.js";
352
355
  import "./chunk-54BGIBCR.js";
353
356
  import "./chunk-H4CKS5B2.js";
354
357
  import "./chunk-MMACM5G2.js";
@@ -551,7 +554,7 @@ import "./chunk-K6MV3TRQ.js";
551
554
  import "./chunk-OADWQ5CR.js";
552
555
  import {
553
556
  EngramAccessHttpServer
554
- } from "./chunk-QVALQE4P.js";
557
+ } from "./chunk-QHT4W3RU.js";
555
558
  import {
556
559
  WearablesInputError,
557
560
  describeErrorForOperator
@@ -565,7 +568,7 @@ import "./chunk-42NQ7AVG.js";
565
568
  import "./chunk-7RXCMVFQ.js";
566
569
  import {
567
570
  EngramMcpServer
568
- } from "./chunk-VDLMAJXS.js";
571
+ } from "./chunk-GHVJASQ4.js";
569
572
  import "./chunk-IC2TCZJ2.js";
570
573
  import {
571
574
  buildCitationGuidance,
@@ -574,7 +577,28 @@ import {
574
577
  sanitizeNoteForCitation
575
578
  } from "./chunk-D24OXEPB.js";
576
579
  import "./chunk-5RUE3GHQ.js";
577
- import "./chunk-FNJX2O6G.js";
580
+ import {
581
+ RELAY_MISSION_DEFAULT_EVENT_LIMIT,
582
+ RELAY_MISSION_MAX_EVENTS,
583
+ RELAY_MISSION_MAX_EVENT_LIMIT,
584
+ RELAY_MISSION_MAX_FILE_BYTES,
585
+ RELAY_MISSION_MAX_LINE_BYTES,
586
+ RELAY_MISSION_SCHEMA_VERSION,
587
+ RelayEvidenceRefSchema,
588
+ RelayMissionEventInputSchema,
589
+ RelayMissionEventSchema,
590
+ RelayMissionPayloadSchema,
591
+ RelayMissionReadOptionsSchema,
592
+ RelayMissionStore,
593
+ RelayMissionStoreError,
594
+ appendRelayMissionEvent,
595
+ compareRelayEvents,
596
+ readRelayMission,
597
+ reduceRelayMission,
598
+ relayMissionAppendOperation,
599
+ relayMissionReadOperation,
600
+ relayMissionReceiptDigest
601
+ } from "./chunk-7XRUYC6G.js";
578
602
  import {
579
603
  formatZodError,
580
604
  memoryStoreRequestSchema,
@@ -583,7 +607,7 @@ import {
583
607
  suggestionSubmitRequestSchema,
584
608
  validateRequest
585
609
  } from "./chunk-2MR3MFQB.js";
586
- import "./chunk-7EX4YOKH.js";
610
+ import "./chunk-JYRFO4EH.js";
587
611
  import "./chunk-YF6FMLBT.js";
588
612
  import "./chunk-HLTAPHZZ.js";
589
613
  import {
@@ -616,7 +640,7 @@ import {
616
640
  } from "./chunk-T4WDJPEZ.js";
617
641
  import {
618
642
  OPERATION_NAMES
619
- } from "./chunk-UZRIKUFS.js";
643
+ } from "./chunk-6LM6PPDX.js";
620
644
  import {
621
645
  TOKEN_CAPABILITIES_VERSION,
622
646
  capabilityAllowsNamespace,
@@ -1057,6 +1081,14 @@ export {
1057
1081
  RECALL_DISCLOSURE_LEVELS,
1058
1082
  RECALL_XRAY_FORMATS,
1059
1083
  REDACTION_PLACEHOLDER,
1084
+ RELAY_DEMO_MISSION_ID,
1085
+ RELAY_DEMO_NAMESPACE,
1086
+ RELAY_MISSION_DEFAULT_EVENT_LIMIT,
1087
+ RELAY_MISSION_MAX_EVENTS,
1088
+ RELAY_MISSION_MAX_EVENT_LIMIT,
1089
+ RELAY_MISSION_MAX_FILE_BYTES,
1090
+ RELAY_MISSION_MAX_LINE_BYTES,
1091
+ RELAY_MISSION_SCHEMA_VERSION,
1060
1092
  REMNIC_CHATGPT_MEMORY_INSPECTOR_CANONICAL_TOOL,
1061
1093
  REMNIC_CHATGPT_MEMORY_INSPECTOR_MIME_TYPE,
1062
1094
  REMNIC_CHATGPT_MEMORY_INSPECTOR_TOOL,
@@ -1067,6 +1099,13 @@ export {
1067
1099
  REMNIC_MCP_TOOL_INVENTORY,
1068
1100
  REMNIC_RECALL_DECISION_RULES,
1069
1101
  REMNIC_SEMANTIC_OVERVIEW,
1102
+ RelayEvidenceRefSchema,
1103
+ RelayMissionEventInputSchema,
1104
+ RelayMissionEventSchema,
1105
+ RelayMissionPayloadSchema,
1106
+ RelayMissionReadOptionsSchema,
1107
+ RelayMissionStore,
1108
+ RelayMissionStoreError,
1070
1109
  SENTINEL_FILE,
1071
1110
  SESSION_CHANNEL_TYPE,
1072
1111
  SmartBuffer,
@@ -1085,6 +1124,7 @@ export {
1085
1124
  WebSearchProvider,
1086
1125
  appendAuditEntry,
1087
1126
  appendInteractionLog,
1127
+ appendRelayMissionEvent,
1088
1128
  applyCorrections,
1089
1129
  applyLcmSchema,
1090
1130
  applyMemoryWorthFilter,
@@ -1149,6 +1189,7 @@ export {
1149
1189
  collectStructuredPlanCues,
1150
1190
  collectTemporalLexicalCues,
1151
1191
  commitTokenEntry,
1192
+ compareRelayEvents,
1152
1193
  compileCorrectionRule,
1153
1194
  compileCorrectionRules,
1154
1195
  compileOfflineSyncExcludeGlobs,
@@ -1167,6 +1208,7 @@ export {
1167
1208
  createBackend,
1168
1209
  createGoogleDriveConnector,
1169
1210
  createNotionConnector,
1211
+ createRelayMissionFixture,
1170
1212
  createSpace,
1171
1213
  createSubprocessStructuralProvider,
1172
1214
  createVerdictCache,
@@ -1396,6 +1438,7 @@ export {
1396
1438
  readPair,
1397
1439
  readPeer,
1398
1440
  readPeerProfile,
1441
+ readRelayMission,
1399
1442
  recallForActiveMemory,
1400
1443
  recallRequestSchema,
1401
1444
  reconstructFusionInputs,
@@ -1403,6 +1446,7 @@ export {
1403
1446
  redactConnectorConfigSecrets,
1404
1447
  redactSessionSummaryText,
1405
1448
  redactText,
1449
+ reduceRelayMission,
1406
1450
  registerBulkImportSource,
1407
1451
  registerHostEmbeddingProvider,
1408
1452
  registerLocalSessionSourceAdapter,
@@ -1410,6 +1454,9 @@ export {
1410
1454
  registerStructuralContextProvider,
1411
1455
  registerTrainingExportAdapter,
1412
1456
  registerWearableConnector,
1457
+ relayMissionAppendOperation,
1458
+ relayMissionReadOperation,
1459
+ relayMissionReceiptDigest,
1413
1460
  removeConnector,
1414
1461
  renderActionConfidenceText,
1415
1462
  renderBriefingMarkdown,
@@ -43,7 +43,7 @@ import {
43
43
  throwIfRecallAborted,
44
44
  tokenizeRecallQuery,
45
45
  utcDateKeysForLocalDay
46
- } from "./chunk-N3LWQJ6Y.js";
46
+ } from "./chunk-5U65RIVI.js";
47
47
  import "./chunk-LC7OODWZ.js";
48
48
  import {
49
49
  formatCompressionGuidelinesForRecall
@@ -126,7 +126,7 @@ import "./chunk-Q6IP2ARR.js";
126
126
  import "./chunk-6HEM6HTQ.js";
127
127
  import "./chunk-ZQ7UBUZ6.js";
128
128
  import "./chunk-TGBJ2OMK.js";
129
- import "./chunk-7CKS4AXY.js";
129
+ import "./chunk-W6R43NLA.js";
130
130
  import "./chunk-54BGIBCR.js";
131
131
  import "./chunk-H4CKS5B2.js";
132
132
  import "./chunk-MMACM5G2.js";
@@ -218,7 +218,7 @@ import "./chunk-G6NKALRN.js";
218
218
  import "./chunk-OO42R444.js";
219
219
  import "./chunk-K6MV3TRQ.js";
220
220
  import "./chunk-OADWQ5CR.js";
221
- import "./chunk-QVALQE4P.js";
221
+ import "./chunk-QHT4W3RU.js";
222
222
  import "./chunk-V7IZKJI3.js";
223
223
  import "./chunk-SEDEKFYQ.js";
224
224
  import "./chunk-JBPKEARU.js";
@@ -227,13 +227,13 @@ import "./chunk-J64TK33U.js";
227
227
  import "./chunk-RSUYKGGZ.js";
228
228
  import "./chunk-42NQ7AVG.js";
229
229
  import "./chunk-7RXCMVFQ.js";
230
- import "./chunk-VDLMAJXS.js";
230
+ import "./chunk-GHVJASQ4.js";
231
231
  import "./chunk-IC2TCZJ2.js";
232
232
  import "./chunk-D24OXEPB.js";
233
233
  import "./chunk-5RUE3GHQ.js";
234
- import "./chunk-FNJX2O6G.js";
234
+ import "./chunk-7XRUYC6G.js";
235
235
  import "./chunk-2MR3MFQB.js";
236
- import "./chunk-7EX4YOKH.js";
236
+ import "./chunk-JYRFO4EH.js";
237
237
  import "./chunk-YF6FMLBT.js";
238
238
  import "./chunk-HLTAPHZZ.js";
239
239
  import "./chunk-W4PGTAS2.js";
@@ -241,7 +241,7 @@ import "./chunk-KQDNAXOM.js";
241
241
  import "./chunk-35NN3ZFA.js";
242
242
  import "./chunk-FTYDWKO6.js";
243
243
  import "./chunk-T4WDJPEZ.js";
244
- import "./chunk-UZRIKUFS.js";
244
+ import "./chunk-6LM6PPDX.js";
245
245
  import "./chunk-D7FOKIY5.js";
246
246
  import "./chunk-3OQ4IZJN.js";
247
247
  import "./chunk-GDASG7NC.js";
package/dist/schemas.d.ts CHANGED
@@ -7,13 +7,13 @@ 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;
11
+ source: "unknown" | "manual" | "extraction" | "consolidation" | "replay";
12
12
  lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
13
13
  importance: number;
14
14
  }, {
15
- source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
16
15
  confidence: number;
16
+ source: "unknown" | "manual" | "extraction" | "consolidation" | "replay";
17
17
  lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
18
18
  importance: number;
19
19
  }>;
@@ -152,10 +152,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
152
152
  eventTime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
153
153
  event_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
154
154
  }, "strip", z.ZodTypeAny, {
155
- tags: string[];
156
- content: string;
157
155
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
156
+ content: string;
158
157
  confidence: number;
158
+ tags: string[];
159
159
  entityRef?: string | null | undefined;
160
160
  structuredAttributes?: Record<string, string> | null | undefined;
161
161
  quote?: string | null | undefined;
@@ -184,10 +184,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
184
184
  eventTime?: string | null | undefined;
185
185
  event_time?: string | null | undefined;
186
186
  }, {
187
- tags: string[];
188
- content: string;
189
187
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
188
+ content: string;
190
189
  confidence: number;
190
+ tags: string[];
191
191
  entityRef?: string | null | undefined;
192
192
  structuredAttributes?: Record<string, string> | null | undefined;
193
193
  quote?: string | null | undefined;
@@ -216,10 +216,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
216
216
  eventTime?: string | null | undefined;
217
217
  event_time?: string | null | undefined;
218
218
  }>, {
219
- tags: string[];
220
- content: string;
221
219
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
220
+ content: string;
222
221
  confidence: number;
222
+ tags: string[];
223
223
  entityRef?: string | null | undefined;
224
224
  structuredAttributes?: Record<string, string> | null | undefined;
225
225
  quote?: string | null | undefined;
@@ -248,10 +248,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
248
248
  eventTime?: string | null | undefined;
249
249
  event_time?: string | null | undefined;
250
250
  }, {
251
- tags: string[];
252
- content: string;
253
251
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
252
+ content: string;
254
253
  confidence: number;
254
+ tags: string[];
255
255
  entityRef?: string | null | undefined;
256
256
  structuredAttributes?: Record<string, string> | null | undefined;
257
257
  quote?: string | null | undefined;
@@ -365,14 +365,14 @@ declare const ExtractedRelationshipSchema: z.ZodObject<{
365
365
  label: z.ZodString;
366
366
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
367
367
  }, "strip", z.ZodTypeAny, {
368
+ label: string;
368
369
  source: string;
369
370
  target: string;
370
- label: string;
371
371
  promptedByQuestion?: string | null | undefined;
372
372
  }, {
373
+ label: string;
373
374
  source: string;
374
375
  target: string;
375
- label: string;
376
376
  promptedByQuestion?: string | null | undefined;
377
377
  }>;
378
378
  declare const ProactiveExtractionResultSchema: z.ZodObject<{
@@ -475,10 +475,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
475
475
  eventTime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
476
476
  event_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
477
477
  }, "strip", z.ZodTypeAny, {
478
- tags: string[];
479
- content: string;
480
478
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
479
+ content: string;
481
480
  confidence: number;
481
+ tags: string[];
482
482
  entityRef?: string | null | undefined;
483
483
  structuredAttributes?: Record<string, string> | null | undefined;
484
484
  quote?: string | null | undefined;
@@ -507,10 +507,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
507
507
  eventTime?: string | null | undefined;
508
508
  event_time?: string | null | undefined;
509
509
  }, {
510
- tags: string[];
511
- content: string;
512
510
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
511
+ content: string;
513
512
  confidence: number;
513
+ tags: string[];
514
514
  entityRef?: string | null | undefined;
515
515
  structuredAttributes?: Record<string, string> | null | undefined;
516
516
  quote?: string | null | undefined;
@@ -539,10 +539,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
539
539
  eventTime?: string | null | undefined;
540
540
  event_time?: string | null | undefined;
541
541
  }>, {
542
- tags: string[];
543
- content: string;
544
542
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
543
+ content: string;
545
544
  confidence: number;
545
+ tags: string[];
546
546
  entityRef?: string | null | undefined;
547
547
  structuredAttributes?: Record<string, string> | null | undefined;
548
548
  quote?: string | null | undefined;
@@ -571,10 +571,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
571
571
  eventTime?: string | null | undefined;
572
572
  event_time?: string | null | undefined;
573
573
  }, {
574
- tags: string[];
575
- content: string;
576
574
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
575
+ content: string;
577
576
  confidence: number;
577
+ tags: string[];
578
578
  entityRef?: string | null | undefined;
579
579
  structuredAttributes?: Record<string, string> | null | undefined;
580
580
  quote?: string | null | undefined;
@@ -649,22 +649,22 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
649
649
  label: z.ZodString;
650
650
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
651
651
  }, "strip", z.ZodTypeAny, {
652
+ label: string;
652
653
  source: string;
653
654
  target: string;
654
- label: string;
655
655
  promptedByQuestion?: string | null | undefined;
656
656
  }, {
657
+ label: string;
657
658
  source: string;
658
659
  target: string;
659
- label: string;
660
660
  promptedByQuestion?: string | null | undefined;
661
661
  }>, "many">>>;
662
662
  }, "strip", z.ZodTypeAny, {
663
663
  facts: {
664
- tags: string[];
665
- content: string;
666
664
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
665
+ content: string;
667
666
  confidence: number;
667
+ tags: string[];
668
668
  entityRef?: string | null | undefined;
669
669
  structuredAttributes?: Record<string, string> | null | undefined;
670
670
  quote?: string | null | undefined;
@@ -706,17 +706,17 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
706
706
  }[];
707
707
  profileUpdates: string[];
708
708
  relationships?: {
709
+ label: string;
709
710
  source: string;
710
711
  target: string;
711
- label: string;
712
712
  promptedByQuestion?: string | null | undefined;
713
713
  }[] | null | undefined;
714
714
  }, {
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
  quote?: string | null | undefined;
@@ -758,9 +758,9 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
758
758
  }[];
759
759
  profileUpdates: string[];
760
760
  relationships?: {
761
+ label: string;
761
762
  source: string;
762
763
  target: string;
763
- label: string;
764
764
  promptedByQuestion?: string | null | undefined;
765
765
  }[] | null | undefined;
766
766
  }>;
@@ -864,10 +864,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
864
864
  eventTime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
865
865
  event_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
866
866
  }, "strip", z.ZodTypeAny, {
867
- tags: string[];
868
- content: string;
869
867
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
868
+ content: string;
870
869
  confidence: number;
870
+ tags: string[];
871
871
  entityRef?: string | null | undefined;
872
872
  structuredAttributes?: Record<string, string> | null | undefined;
873
873
  quote?: string | null | undefined;
@@ -896,10 +896,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
896
896
  eventTime?: string | null | undefined;
897
897
  event_time?: string | null | undefined;
898
898
  }, {
899
- tags: string[];
900
- content: string;
901
899
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
900
+ content: string;
902
901
  confidence: number;
902
+ tags: string[];
903
903
  entityRef?: string | null | undefined;
904
904
  structuredAttributes?: Record<string, string> | null | undefined;
905
905
  quote?: string | null | undefined;
@@ -928,10 +928,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
928
928
  eventTime?: string | null | undefined;
929
929
  event_time?: string | null | undefined;
930
930
  }>, {
931
- tags: string[];
932
- content: string;
933
931
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
932
+ content: string;
934
933
  confidence: number;
934
+ tags: string[];
935
935
  entityRef?: string | null | undefined;
936
936
  structuredAttributes?: Record<string, string> | null | undefined;
937
937
  quote?: string | null | undefined;
@@ -960,10 +960,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
960
960
  eventTime?: string | null | undefined;
961
961
  event_time?: string | null | undefined;
962
962
  }, {
963
- tags: string[];
964
- content: string;
965
963
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
964
+ content: string;
966
965
  confidence: number;
966
+ tags: string[];
967
967
  entityRef?: string | null | undefined;
968
968
  structuredAttributes?: Record<string, string> | null | undefined;
969
969
  quote?: string | null | undefined;
@@ -1052,14 +1052,14 @@ declare const ExtractionResultSchema: z.ZodObject<{
1052
1052
  label: z.ZodString;
1053
1053
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1054
1054
  }, "strip", z.ZodTypeAny, {
1055
+ label: string;
1055
1056
  source: string;
1056
1057
  target: string;
1057
- label: string;
1058
1058
  promptedByQuestion?: string | null | undefined;
1059
1059
  }, {
1060
+ label: string;
1060
1061
  source: string;
1061
1062
  target: string;
1062
- label: string;
1063
1063
  promptedByQuestion?: string | null | undefined;
1064
1064
  }>, "many">>>;
1065
1065
  }, "strip", z.ZodTypeAny, {
@@ -1069,10 +1069,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
1069
1069
  context: string;
1070
1070
  }[];
1071
1071
  facts: {
1072
- tags: string[];
1073
- content: string;
1074
1072
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
1073
+ content: string;
1075
1074
  confidence: number;
1075
+ tags: string[];
1076
1076
  entityRef?: string | null | undefined;
1077
1077
  structuredAttributes?: Record<string, string> | null | undefined;
1078
1078
  quote?: string | null | undefined;
@@ -1114,9 +1114,9 @@ declare const ExtractionResultSchema: z.ZodObject<{
1114
1114
  }[];
1115
1115
  profileUpdates: string[];
1116
1116
  relationships?: {
1117
+ label: string;
1117
1118
  source: string;
1118
1119
  target: string;
1119
- label: string;
1120
1120
  promptedByQuestion?: string | null | undefined;
1121
1121
  }[] | null | undefined;
1122
1122
  identityReflection?: string | null | undefined;
@@ -1127,10 +1127,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
1127
1127
  context: string;
1128
1128
  }[];
1129
1129
  facts: {
1130
- tags: string[];
1131
- content: string;
1132
1130
  category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
1131
+ content: string;
1133
1132
  confidence: number;
1133
+ tags: string[];
1134
1134
  entityRef?: string | null | undefined;
1135
1135
  structuredAttributes?: Record<string, string> | null | undefined;
1136
1136
  quote?: string | null | undefined;
@@ -1172,9 +1172,9 @@ declare const ExtractionResultSchema: z.ZodObject<{
1172
1172
  }[];
1173
1173
  profileUpdates: string[];
1174
1174
  relationships?: {
1175
+ label: string;
1175
1176
  source: string;
1176
1177
  target: string;
1177
- label: string;
1178
1178
  promptedByQuestion?: string | null | undefined;
1179
1179
  }[] | null | undefined;
1180
1180
  identityReflection?: string | null | undefined;
@@ -1342,13 +1342,13 @@ declare const ContradictionVerificationSchema: z.ZodObject<{
1342
1342
  reasoning: z.ZodString;
1343
1343
  whichIsNewer: z.ZodEnum<["first", "second", "unclear"]>;
1344
1344
  }, "strip", z.ZodTypeAny, {
1345
- reasoning: string;
1346
1345
  confidence: number;
1346
+ reasoning: string;
1347
1347
  isContradiction: boolean;
1348
1348
  whichIsNewer: "second" | "first" | "unclear";
1349
1349
  }, {
1350
- reasoning: string;
1351
1350
  confidence: number;
1351
+ reasoning: string;
1352
1352
  isContradiction: boolean;
1353
1353
  whichIsNewer: "second" | "first" | "unclear";
1354
1354
  }>;
@@ -1443,8 +1443,8 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
1443
1443
  reason: z.ZodString;
1444
1444
  appliedAt: z.ZodString;
1445
1445
  }, "strip", z.ZodTypeAny, {
1446
- confidence: number;
1447
1446
  reason: string;
1447
+ confidence: number;
1448
1448
  parameter: string;
1449
1449
  previousValue: number;
1450
1450
  nextValue: number;
@@ -1452,8 +1452,8 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
1452
1452
  evidenceCount: number;
1453
1453
  appliedAt: string;
1454
1454
  }, {
1455
- confidence: number;
1456
1455
  reason: string;
1456
+ confidence: number;
1457
1457
  parameter: string;
1458
1458
  previousValue: number;
1459
1459
  nextValue: number;
@@ -1477,8 +1477,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
1477
1477
  reason: z.ZodString;
1478
1478
  appliedAt: z.ZodString;
1479
1479
  }, "strip", z.ZodTypeAny, {
1480
- confidence: number;
1481
1480
  reason: string;
1481
+ confidence: number;
1482
1482
  parameter: string;
1483
1483
  previousValue: number;
1484
1484
  nextValue: number;
@@ -1486,8 +1486,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
1486
1486
  evidenceCount: number;
1487
1487
  appliedAt: string;
1488
1488
  }, {
1489
- confidence: number;
1490
1489
  reason: string;
1490
+ confidence: number;
1491
1491
  parameter: string;
1492
1492
  previousValue: number;
1493
1493
  nextValue: number;
@@ -1504,8 +1504,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
1504
1504
  maxDeltaPerCycle: number;
1505
1505
  protectedParams: string[];
1506
1506
  adjustments: {
1507
- confidence: number;
1508
1507
  reason: string;
1508
+ confidence: number;
1509
1509
  parameter: string;
1510
1510
  previousValue: number;
1511
1511
  nextValue: number;
@@ -1521,8 +1521,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
1521
1521
  maxDeltaPerCycle: number;
1522
1522
  protectedParams: string[];
1523
1523
  adjustments: {
1524
- confidence: number;
1525
1524
  reason: string;
1525
+ confidence: number;
1526
1526
  parameter: string;
1527
1527
  previousValue: number;
1528
1528
  nextValue: number;
@@ -17,29 +17,29 @@ declare const SharedFeedbackEntrySchema: z.ZodObject<{
17
17
  evidenceWindowEnd: z.ZodOptional<z.ZodString>;
18
18
  refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
19
  }, "strip", z.ZodTypeAny, {
20
+ reason: string;
20
21
  decision: "rejected" | "approved" | "approved_with_feedback";
21
22
  date: string;
22
- reason: string;
23
23
  agent: string;
24
- workflow?: string | undefined;
25
- tags?: string[] | undefined;
24
+ severity?: "low" | "medium" | "high" | undefined;
26
25
  confidence?: number | undefined;
26
+ tags?: string[] | undefined;
27
+ workflow?: string | undefined;
27
28
  outcome?: string | undefined;
28
- severity?: "high" | "low" | "medium" | undefined;
29
29
  refs?: string[] | undefined;
30
30
  learning?: string | undefined;
31
31
  evidenceWindowStart?: string | undefined;
32
32
  evidenceWindowEnd?: string | undefined;
33
33
  }, {
34
+ reason: string;
34
35
  decision: "rejected" | "approved" | "approved_with_feedback";
35
36
  date: string;
36
- reason: string;
37
37
  agent: string;
38
- workflow?: string | undefined;
39
- tags?: string[] | undefined;
38
+ severity?: "low" | "medium" | "high" | undefined;
40
39
  confidence?: number | undefined;
40
+ tags?: string[] | undefined;
41
+ workflow?: string | undefined;
41
42
  outcome?: string | undefined;
42
- severity?: "high" | "low" | "medium" | undefined;
43
43
  refs?: string[] | undefined;
44
44
  learning?: string | undefined;
45
45
  evidenceWindowStart?: string | undefined;