@remnic/core 9.7.12 → 9.7.13

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.
@@ -81,7 +81,7 @@ import "./chunk-Q6IP2ARR.js";
81
81
  import "./chunk-6HEM6HTQ.js";
82
82
  import "./chunk-ZQ7UBUZ6.js";
83
83
  import "./chunk-BQTSGK5Y.js";
84
- import "./chunk-AOWPZ7TM.js";
84
+ import "./chunk-KQMKF4G2.js";
85
85
  import "./chunk-54BGIBCR.js";
86
86
  import "./chunk-H4CKS5B2.js";
87
87
  import "./chunk-MMACM5G2.js";
@@ -177,7 +177,7 @@ import "./chunk-G6NKALRN.js";
177
177
  import "./chunk-OO42R444.js";
178
178
  import "./chunk-K6MV3TRQ.js";
179
179
  import "./chunk-OADWQ5CR.js";
180
- import "./chunk-ZASJ53ML.js";
180
+ import "./chunk-2V5QI6NQ.js";
181
181
  import "./chunk-V7IZKJI3.js";
182
182
  import "./chunk-SEDEKFYQ.js";
183
183
  import "./chunk-JBPKEARU.js";
@@ -190,7 +190,7 @@ import "./chunk-OCY3CRPG.js";
190
190
  import "./chunk-IC2TCZJ2.js";
191
191
  import "./chunk-D24OXEPB.js";
192
192
  import "./chunk-5RUE3GHQ.js";
193
- import "./chunk-TITSEN2M.js";
193
+ import "./chunk-Z6WN2KSH.js";
194
194
  import "./chunk-2MR3MFQB.js";
195
195
  import "./chunk-2ZPQUTMW.js";
196
196
  import "./chunk-YF6FMLBT.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EngramAccessHttpServer
3
- } from "./chunk-ZASJ53ML.js";
3
+ } from "./chunk-2V5QI6NQ.js";
4
4
  import "./chunk-V7IZKJI3.js";
5
5
  import "./chunk-SEDEKFYQ.js";
6
6
  import "./chunk-JBPKEARU.js";
@@ -13,7 +13,7 @@ import "./chunk-OCY3CRPG.js";
13
13
  import "./chunk-IC2TCZJ2.js";
14
14
  import "./chunk-D24OXEPB.js";
15
15
  import "./chunk-5RUE3GHQ.js";
16
- import "./chunk-TITSEN2M.js";
16
+ import "./chunk-Z6WN2KSH.js";
17
17
  import "./chunk-2MR3MFQB.js";
18
18
  import "./chunk-2ZPQUTMW.js";
19
19
  import "./chunk-YF6FMLBT.js";
@@ -5,7 +5,7 @@ import {
5
5
  import "./chunk-IC2TCZJ2.js";
6
6
  import "./chunk-D24OXEPB.js";
7
7
  import "./chunk-5RUE3GHQ.js";
8
- import "./chunk-TITSEN2M.js";
8
+ import "./chunk-Z6WN2KSH.js";
9
9
  import "./chunk-2MR3MFQB.js";
10
10
  import "./chunk-2ZPQUTMW.js";
11
11
  import "./chunk-YF6FMLBT.js";
@@ -127,14 +127,14 @@ interface MemoryStoreOutput {
127
127
  }
128
128
  declare const memoryStoreOperation: BoundOperation<{
129
129
  content: string;
130
- namespace?: string | undefined;
130
+ schemaVersion?: number | undefined;
131
131
  sessionKey?: string | undefined;
132
+ tags?: string[] | undefined;
132
133
  dryRun?: boolean | undefined;
133
134
  category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
134
135
  confidence?: number | undefined;
135
- tags?: string[] | undefined;
136
136
  entityRef?: string | undefined;
137
- schemaVersion?: number | undefined;
137
+ namespace?: string | undefined;
138
138
  cwd?: string | undefined;
139
139
  ttl?: string | undefined;
140
140
  sourceReason?: string | undefined;
@@ -22,7 +22,7 @@ import {
22
22
  memoryGetOperation,
23
23
  memorySearchOperation,
24
24
  memoryStoreOperation
25
- } from "./chunk-TITSEN2M.js";
25
+ } from "./chunk-Z6WN2KSH.js";
26
26
  import "./chunk-2MR3MFQB.js";
27
27
  import "./chunk-2ZPQUTMW.js";
28
28
  import "./chunk-YF6FMLBT.js";
@@ -104,10 +104,10 @@ declare const recallRequestSchema: z.ZodObject<{
104
104
  includeLowConfidence: z.ZodOptional<z.ZodBoolean>;
105
105
  }, "strip", z.ZodTypeAny, {
106
106
  query: string;
107
- namespace?: string | undefined;
108
- mode?: "auto" | "no_recall" | "minimal" | "full" | "graph_mode" | undefined;
109
107
  sessionKey?: string | undefined;
110
108
  tags?: string[] | undefined;
109
+ namespace?: string | undefined;
110
+ mode?: "auto" | "no_recall" | "minimal" | "full" | "graph_mode" | undefined;
111
111
  cwd?: string | undefined;
112
112
  codingContext?: {
113
113
  branch: string | null;
@@ -125,10 +125,10 @@ declare const recallRequestSchema: z.ZodObject<{
125
125
  tagMatch?: "all" | "any" | undefined;
126
126
  }, {
127
127
  query: string;
128
- namespace?: string | undefined;
129
- mode?: "auto" | "no_recall" | "minimal" | "full" | "graph_mode" | undefined;
130
128
  sessionKey?: string | undefined;
131
129
  tags?: string[] | undefined;
130
+ namespace?: string | undefined;
131
+ mode?: "auto" | "no_recall" | "minimal" | "full" | "graph_mode" | undefined;
132
132
  cwd?: string | undefined;
133
133
  codingContext?: {
134
134
  branch: string | null;
@@ -149,11 +149,11 @@ declare const recallExplainRequestSchema: z.ZodObject<{
149
149
  sessionKey: z.ZodOptional<z.ZodString>;
150
150
  namespace: z.ZodOptional<z.ZodString>;
151
151
  }, "strip", z.ZodTypeAny, {
152
- namespace?: string | undefined;
153
152
  sessionKey?: string | undefined;
154
- }, {
155
153
  namespace?: string | undefined;
154
+ }, {
156
155
  sessionKey?: string | undefined;
156
+ namespace?: string | undefined;
157
157
  }>;
158
158
  /**
159
159
  * Standalone "set coding context" request. Used by the HTTP endpoint
@@ -241,22 +241,22 @@ declare const observeRequestSchema: z.ZodObject<{
241
241
  }, "strip", z.ZodTypeAny, {
242
242
  kind: "text" | "tool_call" | "tool_result" | "patch" | "file_read" | "file_write" | "step_start" | "step_finish" | "snapshot" | "retry";
243
243
  payload: Record<string, unknown>;
244
- createdAt?: string | null | undefined;
245
244
  ordinal?: number | null | undefined;
246
245
  toolName?: string | null | undefined;
247
246
  tool_name?: string | null | undefined;
248
247
  filePath?: string | null | undefined;
249
248
  file_path?: string | null | undefined;
249
+ createdAt?: string | null | undefined;
250
250
  created_at?: string | null | undefined;
251
251
  }, {
252
252
  kind: "text" | "tool_call" | "tool_result" | "patch" | "file_read" | "file_write" | "step_start" | "step_finish" | "snapshot" | "retry";
253
253
  payload: Record<string, unknown>;
254
- createdAt?: string | null | undefined;
255
254
  ordinal?: number | null | undefined;
256
255
  toolName?: string | null | undefined;
257
256
  tool_name?: string | null | undefined;
258
257
  filePath?: string | null | undefined;
259
258
  file_path?: string | null | undefined;
259
+ createdAt?: string | null | undefined;
260
260
  created_at?: string | null | undefined;
261
261
  }>, "many">>>;
262
262
  }, "strip", z.ZodTypeAny, {
@@ -265,12 +265,12 @@ declare const observeRequestSchema: z.ZodObject<{
265
265
  parts?: {
266
266
  kind: "text" | "tool_call" | "tool_result" | "patch" | "file_read" | "file_write" | "step_start" | "step_finish" | "snapshot" | "retry";
267
267
  payload: Record<string, unknown>;
268
- createdAt?: string | null | undefined;
269
268
  ordinal?: number | null | undefined;
270
269
  toolName?: string | null | undefined;
271
270
  tool_name?: string | null | undefined;
272
271
  filePath?: string | null | undefined;
273
272
  file_path?: string | null | undefined;
273
+ createdAt?: string | null | undefined;
274
274
  created_at?: string | null | undefined;
275
275
  }[] | null | undefined;
276
276
  sourceFormat?: "openai" | "anthropic" | "openclaw" | "pi" | "lossless-claw" | "remnic" | null | undefined;
@@ -281,12 +281,12 @@ declare const observeRequestSchema: z.ZodObject<{
281
281
  parts?: {
282
282
  kind: "text" | "tool_call" | "tool_result" | "patch" | "file_read" | "file_write" | "step_start" | "step_finish" | "snapshot" | "retry";
283
283
  payload: Record<string, unknown>;
284
- createdAt?: string | null | undefined;
285
284
  ordinal?: number | null | undefined;
286
285
  toolName?: string | null | undefined;
287
286
  tool_name?: string | null | undefined;
288
287
  filePath?: string | null | undefined;
289
288
  file_path?: string | null | undefined;
289
+ createdAt?: string | null | undefined;
290
290
  created_at?: string | null | undefined;
291
291
  }[] | null | undefined;
292
292
  sourceFormat?: "openai" | "anthropic" | "openclaw" | "pi" | "lossless-claw" | "remnic" | null | undefined;
@@ -317,12 +317,12 @@ declare const observeRequestSchema: z.ZodObject<{
317
317
  parts?: {
318
318
  kind: "text" | "tool_call" | "tool_result" | "patch" | "file_read" | "file_write" | "step_start" | "step_finish" | "snapshot" | "retry";
319
319
  payload: Record<string, unknown>;
320
- createdAt?: string | null | undefined;
321
320
  ordinal?: number | null | undefined;
322
321
  toolName?: string | null | undefined;
323
322
  tool_name?: string | null | undefined;
324
323
  filePath?: string | null | undefined;
325
324
  file_path?: string | null | undefined;
325
+ createdAt?: string | null | undefined;
326
326
  created_at?: string | null | undefined;
327
327
  }[] | null | undefined;
328
328
  sourceFormat?: "openai" | "anthropic" | "openclaw" | "pi" | "lossless-claw" | "remnic" | null | undefined;
@@ -341,12 +341,12 @@ declare const observeRequestSchema: z.ZodObject<{
341
341
  parts?: {
342
342
  kind: "text" | "tool_call" | "tool_result" | "patch" | "file_read" | "file_write" | "step_start" | "step_finish" | "snapshot" | "retry";
343
343
  payload: Record<string, unknown>;
344
- createdAt?: string | null | undefined;
345
344
  ordinal?: number | null | undefined;
346
345
  toolName?: string | null | undefined;
347
346
  tool_name?: string | null | undefined;
348
347
  filePath?: string | null | undefined;
349
348
  file_path?: string | null | undefined;
349
+ createdAt?: string | null | undefined;
350
350
  created_at?: string | null | undefined;
351
351
  }[] | null | undefined;
352
352
  sourceFormat?: "openai" | "anthropic" | "openclaw" | "pi" | "lossless-claw" | "remnic" | null | undefined;
@@ -375,14 +375,14 @@ declare const memoryStoreRequestSchema: z.ZodObject<{
375
375
  projectTag: z.ZodOptional<z.ZodString>;
376
376
  }, "strip", z.ZodTypeAny, {
377
377
  content: string;
378
- namespace?: string | undefined;
378
+ schemaVersion?: number | undefined;
379
379
  sessionKey?: string | undefined;
380
+ tags?: string[] | undefined;
380
381
  dryRun?: boolean | undefined;
381
382
  category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
382
383
  confidence?: number | undefined;
383
- tags?: string[] | undefined;
384
384
  entityRef?: string | undefined;
385
- schemaVersion?: number | undefined;
385
+ namespace?: string | undefined;
386
386
  cwd?: string | undefined;
387
387
  ttl?: string | undefined;
388
388
  sourceReason?: string | undefined;
@@ -390,14 +390,14 @@ declare const memoryStoreRequestSchema: z.ZodObject<{
390
390
  projectTag?: string | undefined;
391
391
  }, {
392
392
  content: string;
393
- namespace?: string | undefined;
393
+ schemaVersion?: number | undefined;
394
394
  sessionKey?: string | undefined;
395
+ tags?: string[] | undefined;
395
396
  dryRun?: boolean | undefined;
396
397
  category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
397
398
  confidence?: number | undefined;
398
- tags?: string[] | undefined;
399
399
  entityRef?: string | undefined;
400
- schemaVersion?: number | undefined;
400
+ namespace?: string | undefined;
401
401
  cwd?: string | undefined;
402
402
  ttl?: string | undefined;
403
403
  sourceReason?: string | undefined;
@@ -421,14 +421,14 @@ declare const suggestionSubmitRequestSchema: z.ZodObject<{
421
421
  projectTag: z.ZodOptional<z.ZodString>;
422
422
  }, "strip", z.ZodTypeAny, {
423
423
  content: string;
424
- namespace?: string | undefined;
424
+ schemaVersion?: number | undefined;
425
425
  sessionKey?: string | undefined;
426
+ tags?: string[] | undefined;
426
427
  dryRun?: boolean | undefined;
427
428
  category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
428
429
  confidence?: number | undefined;
429
- tags?: string[] | undefined;
430
430
  entityRef?: string | undefined;
431
- schemaVersion?: number | undefined;
431
+ namespace?: string | undefined;
432
432
  cwd?: string | undefined;
433
433
  ttl?: string | undefined;
434
434
  sourceReason?: string | undefined;
@@ -436,14 +436,14 @@ declare const suggestionSubmitRequestSchema: z.ZodObject<{
436
436
  projectTag?: string | undefined;
437
437
  }, {
438
438
  content: string;
439
- namespace?: string | undefined;
439
+ schemaVersion?: number | undefined;
440
440
  sessionKey?: string | undefined;
441
+ tags?: string[] | undefined;
441
442
  dryRun?: boolean | undefined;
442
443
  category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
443
444
  confidence?: number | undefined;
444
- tags?: string[] | undefined;
445
445
  entityRef?: string | undefined;
446
- schemaVersion?: number | undefined;
446
+ namespace?: string | undefined;
447
447
  cwd?: string | undefined;
448
448
  ttl?: string | undefined;
449
449
  sourceReason?: string | undefined;
@@ -456,14 +456,14 @@ declare const reviewDispositionRequestSchema: z.ZodObject<{
456
456
  reasonCode: z.ZodString;
457
457
  namespace: z.ZodOptional<z.ZodString>;
458
458
  }, "strip", z.ZodTypeAny, {
459
- reasonCode: string;
460
459
  status: "active" | "pending_review" | "rejected" | "quarantined" | "superseded" | "archived";
461
460
  memoryId: string;
461
+ reasonCode: string;
462
462
  namespace?: string | undefined;
463
463
  }, {
464
- reasonCode: string;
465
464
  status: "active" | "pending_review" | "rejected" | "quarantined" | "superseded" | "archived";
466
465
  memoryId: string;
466
+ reasonCode: string;
467
467
  namespace?: string | undefined;
468
468
  }>;
469
469
  declare const trustZonePromoteRequestSchema: z.ZodObject<{
@@ -478,18 +478,18 @@ declare const trustZonePromoteRequestSchema: z.ZodObject<{
478
478
  recordId: string;
479
479
  targetZone: "working" | "trusted";
480
480
  promotionReason: string;
481
- namespace?: string | undefined;
481
+ recordedAt?: string | undefined;
482
482
  summary?: string | undefined;
483
483
  dryRun?: boolean | undefined;
484
- recordedAt?: string | undefined;
484
+ namespace?: string | undefined;
485
485
  }, {
486
486
  recordId: string;
487
487
  targetZone: "working" | "trusted";
488
488
  promotionReason: string;
489
- namespace?: string | undefined;
489
+ recordedAt?: string | undefined;
490
490
  summary?: string | undefined;
491
491
  dryRun?: boolean | undefined;
492
- recordedAt?: string | undefined;
492
+ namespace?: string | undefined;
493
493
  }>;
494
494
  declare const trustZoneDemoSeedRequestSchema: z.ZodObject<{
495
495
  scenario: z.ZodOptional<z.ZodString>;
@@ -497,14 +497,14 @@ declare const trustZoneDemoSeedRequestSchema: z.ZodObject<{
497
497
  dryRun: z.ZodOptional<z.ZodBoolean>;
498
498
  namespace: z.ZodOptional<z.ZodString>;
499
499
  }, "strip", z.ZodTypeAny, {
500
- namespace?: string | undefined;
501
- dryRun?: boolean | undefined;
502
500
  recordedAt?: string | undefined;
501
+ dryRun?: boolean | undefined;
502
+ namespace?: string | undefined;
503
503
  scenario?: string | undefined;
504
504
  }, {
505
- namespace?: string | undefined;
506
- dryRun?: boolean | undefined;
507
505
  recordedAt?: string | undefined;
506
+ dryRun?: boolean | undefined;
507
+ namespace?: string | undefined;
508
508
  scenario?: string | undefined;
509
509
  }>;
510
510
  declare const lcmSearchRequestSchema: z.ZodObject<{
@@ -515,14 +515,14 @@ declare const lcmSearchRequestSchema: z.ZodObject<{
515
515
  limit: z.ZodOptional<z.ZodNumber>;
516
516
  }, "strip", z.ZodTypeAny, {
517
517
  query: string;
518
- namespace?: string | undefined;
519
518
  sessionKey?: string | undefined;
519
+ namespace?: string | undefined;
520
520
  limit?: number | undefined;
521
521
  sessionPrefix?: string | undefined;
522
522
  }, {
523
523
  query: string;
524
- namespace?: string | undefined;
525
524
  sessionKey?: string | undefined;
525
+ namespace?: string | undefined;
526
526
  limit?: number | undefined;
527
527
  sessionPrefix?: string | undefined;
528
528
  }>;
@@ -558,13 +558,13 @@ declare const daySummaryRequestSchema: z.ZodObject<{
558
558
  namespace: z.ZodOptional<z.ZodString>;
559
559
  timeZone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
560
560
  }, "strip", z.ZodTypeAny, {
561
- namespace?: string | undefined;
562
561
  sessionKey?: string | undefined;
562
+ namespace?: string | undefined;
563
563
  timeZone?: string | undefined;
564
564
  memories?: string | undefined;
565
565
  }, {
566
- namespace?: string | undefined;
567
566
  sessionKey?: string | undefined;
567
+ namespace?: string | undefined;
568
568
  timeZone?: string | undefined;
569
569
  memories?: string | undefined;
570
570
  }>;
@@ -613,11 +613,11 @@ declare const capsuleListRequestSchema: z.ZodObject<{
613
613
  namespace: z.ZodOptional<z.ZodString>;
614
614
  sessionKey: z.ZodOptional<z.ZodString>;
615
615
  }, "strip", z.ZodTypeAny, {
616
- namespace?: string | undefined;
617
616
  sessionKey?: string | undefined;
618
- }, {
619
617
  namespace?: string | undefined;
618
+ }, {
620
619
  sessionKey?: string | undefined;
620
+ namespace?: string | undefined;
621
621
  }>;
622
622
  declare const offlineSyncSnapshotRequestSchema: z.ZodObject<{
623
623
  namespace: z.ZodOptional<z.ZodString>;
@@ -705,21 +705,21 @@ declare const offlineSyncFileContentRequestSchema: z.ZodObject<{
705
705
  length: z.ZodOptional<z.ZodNumber>;
706
706
  }, "strip", z.ZodTypeAny, {
707
707
  path: string;
708
- namespace?: string | undefined;
709
708
  length?: number | undefined;
709
+ namespace?: string | undefined;
710
710
  offset?: number | undefined;
711
711
  includeTranscripts?: boolean | undefined;
712
712
  }, {
713
713
  path: string;
714
- namespace?: string | undefined;
715
714
  length?: number | undefined;
715
+ namespace?: string | undefined;
716
716
  offset?: number | undefined;
717
717
  includeTranscripts?: boolean | undefined;
718
718
  }>;
719
719
  declare const actionConfidenceRequestSchema: z.ZodObject<{
720
720
  intendedAction: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
721
721
  confidence: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number | undefined, number | null | undefined>;
722
- risk: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEnum<["low", "medium", "high", "irreversible", "restricted"]>>>, NonNullable<"low" | "medium" | "high" | "irreversible" | "restricted"> | undefined, "low" | "medium" | "high" | "irreversible" | "restricted" | null | undefined>;
722
+ risk: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEnum<["low", "medium", "high", "irreversible", "restricted"]>>>, NonNullable<"high" | "low" | "medium" | "irreversible" | "restricted"> | undefined, "high" | "low" | "medium" | "irreversible" | "restricted" | null | undefined>;
723
723
  contextReadiness: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEnum<["none", "partial", "sufficient"]>>>, NonNullable<"none" | "partial" | "sufficient"> | undefined, "none" | "partial" | "sufficient" | null | undefined>;
724
724
  currentContextScopes: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>, string[] | undefined, string[] | null | undefined>;
725
725
  userRules: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -753,63 +753,63 @@ declare const actionConfidenceRequestSchema: z.ZodObject<{
753
753
  confidence: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number | undefined, number | null | undefined>;
754
754
  stale: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
755
755
  corrected: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
756
- correctionState: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEnum<["none", "correction", "superseded", "disputed", "forgotten"]>>>, NonNullable<"superseded" | "forgotten" | "correction" | "none" | "disputed"> | undefined, "superseded" | "forgotten" | "correction" | "none" | "disputed" | null | undefined>;
756
+ correctionState: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEnum<["none", "correction", "superseded", "disputed", "forgotten"]>>>, NonNullable<"none" | "correction" | "superseded" | "forgotten" | "disputed"> | undefined, "none" | "correction" | "superseded" | "forgotten" | "disputed" | null | undefined>;
757
757
  safeToUse: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
758
758
  safety: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEnum<["safe", "requires-review", "blocked"]>>>, NonNullable<"safe" | "requires-review" | "blocked"> | undefined, "safe" | "requires-review" | "blocked" | null | undefined>;
759
759
  safetyReasons: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>, string[] | undefined, string[] | null | undefined>;
760
760
  }, "strict", z.ZodTypeAny, {
761
- updated?: string | undefined;
762
- confidence?: number | undefined;
763
761
  source?: string | undefined;
764
762
  stale?: boolean | undefined;
765
763
  created?: string | undefined;
764
+ updated?: string | undefined;
765
+ confidence?: number | undefined;
766
766
  scope?: string | undefined;
767
767
  retrievalReason?: string | undefined;
768
768
  safety?: NonNullable<"safe" | "requires-review" | "blocked"> | undefined;
769
769
  safeToUse?: boolean | undefined;
770
- correctionState?: NonNullable<"superseded" | "forgotten" | "correction" | "none" | "disputed"> | undefined;
770
+ correctionState?: NonNullable<"none" | "correction" | "superseded" | "forgotten" | "disputed"> | undefined;
771
771
  corrected?: boolean | undefined;
772
772
  safetyReasons?: string[] | undefined;
773
773
  userContextScopes?: string[] | undefined;
774
774
  }, {
775
- updated?: string | null | undefined;
776
- confidence?: number | null | undefined;
777
775
  source?: string | null | undefined;
778
776
  stale?: boolean | null | undefined;
779
777
  created?: string | null | undefined;
778
+ updated?: string | null | undefined;
779
+ confidence?: number | null | undefined;
780
780
  scope?: string | null | undefined;
781
781
  retrievalReason?: string | null | undefined;
782
782
  safety?: "safe" | "requires-review" | "blocked" | null | undefined;
783
783
  safeToUse?: boolean | null | undefined;
784
- correctionState?: "superseded" | "forgotten" | "correction" | "none" | "disputed" | null | undefined;
784
+ correctionState?: "none" | "correction" | "superseded" | "forgotten" | "disputed" | null | undefined;
785
785
  corrected?: boolean | null | undefined;
786
786
  safetyReasons?: string[] | null | undefined;
787
787
  userContextScopes?: string[] | null | undefined;
788
788
  }>, "many">>>, {
789
- updated?: string | undefined;
790
- confidence?: number | undefined;
791
789
  source?: string | undefined;
792
790
  stale?: boolean | undefined;
793
791
  created?: string | undefined;
792
+ updated?: string | undefined;
793
+ confidence?: number | undefined;
794
794
  scope?: string | undefined;
795
795
  retrievalReason?: string | undefined;
796
796
  safety?: NonNullable<"safe" | "requires-review" | "blocked"> | undefined;
797
797
  safeToUse?: boolean | undefined;
798
- correctionState?: NonNullable<"superseded" | "forgotten" | "correction" | "none" | "disputed"> | undefined;
798
+ correctionState?: NonNullable<"none" | "correction" | "superseded" | "forgotten" | "disputed"> | undefined;
799
799
  corrected?: boolean | undefined;
800
800
  safetyReasons?: string[] | undefined;
801
801
  userContextScopes?: string[] | undefined;
802
802
  }[] | undefined, {
803
- updated?: string | null | undefined;
804
- confidence?: number | null | undefined;
805
803
  source?: string | null | undefined;
806
804
  stale?: boolean | null | undefined;
807
805
  created?: string | null | undefined;
806
+ updated?: string | null | undefined;
807
+ confidence?: number | null | undefined;
808
808
  scope?: string | null | undefined;
809
809
  retrievalReason?: string | null | undefined;
810
810
  safety?: "safe" | "requires-review" | "blocked" | null | undefined;
811
811
  safeToUse?: boolean | null | undefined;
812
- correctionState?: "superseded" | "forgotten" | "correction" | "none" | "disputed" | null | undefined;
812
+ correctionState?: "none" | "correction" | "superseded" | "forgotten" | "disputed" | null | undefined;
813
813
  corrected?: boolean | null | undefined;
814
814
  safetyReasons?: string[] | null | undefined;
815
815
  userContextScopes?: string[] | null | undefined;
@@ -818,7 +818,7 @@ declare const actionConfidenceRequestSchema: z.ZodObject<{
818
818
  confidence?: number | undefined;
819
819
  currentContextScopes?: string[] | undefined;
820
820
  intendedAction?: string | undefined;
821
- risk?: NonNullable<"low" | "medium" | "high" | "irreversible" | "restricted"> | undefined;
821
+ risk?: NonNullable<"high" | "low" | "medium" | "irreversible" | "restricted"> | undefined;
822
822
  contextReadiness?: NonNullable<"none" | "partial" | "sufficient"> | undefined;
823
823
  userRules?: {
824
824
  kind: "never" | "do-not-use-outside-this-context" | "ask-before" | "requires-escalation";
@@ -826,16 +826,16 @@ declare const actionConfidenceRequestSchema: z.ZodObject<{
826
826
  matched?: boolean | undefined;
827
827
  }[] | undefined;
828
828
  retrievedMemories?: {
829
- updated?: string | undefined;
830
- confidence?: number | undefined;
831
829
  source?: string | undefined;
832
830
  stale?: boolean | undefined;
833
831
  created?: string | undefined;
832
+ updated?: string | undefined;
833
+ confidence?: number | undefined;
834
834
  scope?: string | undefined;
835
835
  retrievalReason?: string | undefined;
836
836
  safety?: NonNullable<"safe" | "requires-review" | "blocked"> | undefined;
837
837
  safeToUse?: boolean | undefined;
838
- correctionState?: NonNullable<"superseded" | "forgotten" | "correction" | "none" | "disputed"> | undefined;
838
+ correctionState?: NonNullable<"none" | "correction" | "superseded" | "forgotten" | "disputed"> | undefined;
839
839
  corrected?: boolean | undefined;
840
840
  safetyReasons?: string[] | undefined;
841
841
  userContextScopes?: string[] | undefined;
@@ -844,7 +844,7 @@ declare const actionConfidenceRequestSchema: z.ZodObject<{
844
844
  confidence?: number | null | undefined;
845
845
  currentContextScopes?: string[] | null | undefined;
846
846
  intendedAction?: string | null | undefined;
847
- risk?: "low" | "medium" | "high" | "irreversible" | "restricted" | null | undefined;
847
+ risk?: "high" | "low" | "medium" | "irreversible" | "restricted" | null | undefined;
848
848
  contextReadiness?: "none" | "partial" | "sufficient" | null | undefined;
849
849
  userRules?: {
850
850
  kind: "never" | "do-not-use-outside-this-context" | "ask-before" | "requires-escalation";
@@ -852,16 +852,16 @@ declare const actionConfidenceRequestSchema: z.ZodObject<{
852
852
  matched?: boolean | null | undefined;
853
853
  }[] | null | undefined;
854
854
  retrievedMemories?: {
855
- updated?: string | null | undefined;
856
- confidence?: number | null | undefined;
857
855
  source?: string | null | undefined;
858
856
  stale?: boolean | null | undefined;
859
857
  created?: string | null | undefined;
858
+ updated?: string | null | undefined;
859
+ confidence?: number | null | undefined;
860
860
  scope?: string | null | undefined;
861
861
  retrievalReason?: string | null | undefined;
862
862
  safety?: "safe" | "requires-review" | "blocked" | null | undefined;
863
863
  safeToUse?: boolean | null | undefined;
864
- correctionState?: "superseded" | "forgotten" | "correction" | "none" | "disputed" | null | undefined;
864
+ correctionState?: "none" | "correction" | "superseded" | "forgotten" | "disputed" | null | undefined;
865
865
  corrected?: boolean | null | undefined;
866
866
  safetyReasons?: string[] | null | undefined;
867
867
  userContextScopes?: string[] | null | undefined;
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-OCY3CRPG.js";
17
17
  import {
18
18
  RelayMissionStoreError
19
- } from "./chunk-TITSEN2M.js";
19
+ } from "./chunk-Z6WN2KSH.js";
20
20
  import {
21
21
  validateRequest
22
22
  } from "./chunk-2MR3MFQB.js";
@@ -277,6 +277,12 @@ function resolveDefaultAdminConsolePublicDir() {
277
277
  }
278
278
  var defaultAdminConsolePublicDir = resolveDefaultAdminConsolePublicDir();
279
279
  var correlationIdStore = new AsyncLocalStorage();
280
+ var RELAY_ADMIN_CONSOLE_ASSETS = /* @__PURE__ */ new Map([
281
+ ["relay.css", "text/css; charset=utf-8"],
282
+ ["relay-model.js", "application/javascript; charset=utf-8"],
283
+ ["relay.js", "application/javascript; charset=utf-8"],
284
+ ["replay.json", "application/json; charset=utf-8"]
285
+ ]);
280
286
  var WRITE_RATE_LIMIT_WINDOW_MS = 6e4;
281
287
  var WRITE_RATE_LIMIT_MAX_REQUESTS = 30;
282
288
  var TRUST_ZONE_RECORD_KINDS = ["memory", "artifact", "state", "trajectory", "external"];
@@ -1447,6 +1453,7 @@ var EngramAccessHttpServer = class {
1447
1453
  if (!op) {
1448
1454
  throw new Error("access-boundary: operation not registered: relay_mission_read");
1449
1455
  }
1456
+ const authenticatedPrincipal = this.resolveRequestPrincipal(req)?.trim() || void 0;
1450
1457
  const output = await op.run(
1451
1458
  {
1452
1459
  missionId,
@@ -1457,10 +1464,16 @@ var EngramAccessHttpServer = class {
1457
1464
  },
1458
1465
  {
1459
1466
  service: this.service,
1460
- authenticatedPrincipal: this.resolveRequestPrincipal(req)
1467
+ authenticatedPrincipal
1461
1468
  }
1462
1469
  );
1463
1470
  res.setHeader("cache-control", "no-store");
1471
+ if (authenticatedPrincipal !== void 0) {
1472
+ try {
1473
+ res.setHeader("x-remnic-authenticated-principal", encodeURIComponent(authenticatedPrincipal));
1474
+ } catch {
1475
+ }
1476
+ }
1464
1477
  this.respondJson(res, 200, output.result);
1465
1478
  return;
1466
1479
  }
@@ -2691,19 +2704,38 @@ var EngramAccessHttpServer = class {
2691
2704
  res.end();
2692
2705
  return true;
2693
2706
  }
2707
+ if (pathname === "/remnic/ui/relay" || pathname === "/engram/ui/relay") {
2708
+ res.statusCode = 301;
2709
+ res.setHeader("location", pathname + "/");
2710
+ res.end();
2711
+ return true;
2712
+ }
2694
2713
  if (pathname === "/remnic/ui/" || pathname === "/engram/ui/") {
2695
2714
  await this.respondAdminConsoleShell(req, res, pathname);
2696
2715
  return true;
2697
2716
  }
2717
+ if (pathname === "/remnic/ui/relay/" || pathname === "/engram/ui/relay/") {
2718
+ await this.respondAdminConsoleShell(req, res, pathname, "relay/index.html");
2719
+ return true;
2720
+ }
2698
2721
  if (pathname === "/remnic/ui/app.js" || pathname === "/engram/ui/app.js") {
2699
2722
  await this.respondStatic(res, path.join(this.adminConsolePublicDir, "app.js"), "application/javascript; charset=utf-8");
2700
2723
  return true;
2701
2724
  }
2725
+ const relayAsset = RELAY_ADMIN_CONSOLE_ASSETS.get(pathname.split("/").at(-1) ?? "");
2726
+ const isRelayAsset = pathname.startsWith("/remnic/ui/relay/") || pathname.startsWith("/engram/ui/relay/");
2727
+ if (isRelayAsset && relayAsset && pathname.split("/").length === 5) {
2728
+ const fileName = pathname.split("/").at(-1);
2729
+ if (fileName) {
2730
+ await this.respondStatic(res, path.join(this.adminConsolePublicDir, "relay", fileName), relayAsset);
2731
+ return true;
2732
+ }
2733
+ }
2702
2734
  return false;
2703
2735
  }
2704
- async respondAdminConsoleShell(req, res, pathname) {
2736
+ async respondAdminConsoleShell(req, res, pathname, relativePath = "index.html") {
2705
2737
  try {
2706
- let body = await readFile(path.join(this.adminConsolePublicDir, "index.html"), "utf-8");
2738
+ let body = await readFile(path.join(this.adminConsolePublicDir, relativePath), "utf-8");
2707
2739
  const canPrefillToken = this.adminConsolePrefillToken && this.isAuthorized(req, pathname);
2708
2740
  if (canPrefillToken) {
2709
2741
  const script = `<script>window.__REMNIC_ADMIN_CONSOLE_PREFILL_TOKEN__=${JSON.stringify(this.adminConsolePrefillToken)};</script>`;
@@ -3090,4 +3122,4 @@ function positiveIntQueryParam(value, label) {
3090
3122
  export {
3091
3123
  EngramAccessHttpServer
3092
3124
  };
3093
- //# sourceMappingURL=chunk-ZASJ53ML.js.map
3125
+ //# sourceMappingURL=chunk-2V5QI6NQ.js.map