@remnic/core 9.3.692 → 9.3.693
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.
- package/dist/access-boundary.d.ts +2 -2
- package/dist/access-boundary.js +3 -3
- package/dist/access-cli.js +57 -6
- package/dist/access-cli.js.map +1 -1
- package/dist/access-http.d.ts +1 -1
- package/dist/access-http.js +6 -6
- package/dist/access-mcp.d.ts +3 -1
- package/dist/access-mcp.js +5 -5
- package/dist/access-operations.d.ts +8 -3
- package/dist/access-operations.js +6 -4
- package/dist/{access-service-DvApf9LZ.d.ts → access-service-DxCpgyVW.d.ts} +95 -1
- package/dist/access-service.d.ts +1 -1
- package/dist/access-service.js +2 -2
- package/dist/access-surface-catalog.d.ts +1 -1
- package/dist/access-surface-catalog.js +2 -0
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/{chunk-2EN5WZQB.js → chunk-5HGPDRQZ.js} +2 -2
- package/dist/chunk-5HGPDRQZ.js.map +1 -0
- package/dist/{chunk-W4MICQIZ.js → chunk-F7BVJ3IE.js} +2 -2
- package/dist/{chunk-7MOTEVAA.js → chunk-HRUULBBV.js} +3 -1
- package/dist/chunk-HRUULBBV.js.map +1 -0
- package/dist/{chunk-NEILAC3H.js → chunk-JNKH2XWQ.js} +35 -5
- package/dist/chunk-JNKH2XWQ.js.map +1 -0
- package/dist/{chunk-V56S3A23.js → chunk-MQTPUPLP.js} +295 -15
- package/dist/chunk-MQTPUPLP.js.map +1 -0
- package/dist/{chunk-DO7MDZMU.js → chunk-RHWFMBO5.js} +32 -5
- package/dist/chunk-RHWFMBO5.js.map +1 -0
- package/dist/{chunk-O4ZIV62T.js → chunk-THKNO6OX.js} +6 -5
- package/dist/{chunk-O4ZIV62T.js.map → chunk-THKNO6OX.js.map} +1 -1
- package/dist/{chunk-SEK4XIDN.js → chunk-WYB44HHV.js} +20 -6
- package/dist/chunk-WYB44HHV.js.map +1 -0
- package/dist/{cli-BjsY9Le7.d.ts → cli-DoQsv4ut.d.ts} +1 -1
- package/dist/cli.d.ts +2 -2
- package/dist/cli.js +7 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/mcp-memory-inspector-app.d.ts +1 -1
- package/dist/orchestrator.js +2 -2
- package/dist/schemas.d.ts +28 -28
- package/dist/transfer/types.d.ts +12 -12
- package/package.json +2 -2
- package/src/access-boundary.ts +2 -1
- package/src/access-cli.ts +65 -2
- package/src/access-http.ts +20 -0
- package/src/access-mcp.ts +29 -0
- package/src/access-operations.ts +46 -0
- package/src/access-service.ts +55 -0
- package/src/access-surface-catalog.test.ts +1 -1
- package/src/access-surface-catalog.ts +2 -0
- package/src/cli.ts +1 -0
- package/src/coding/coding-namespace.ts +1 -1
- package/src/coding/session-delta-surfaces.test.ts +383 -0
- package/src/coding/session-delta-surfaces.ts +325 -0
- package/src/coding/session-delta.test.ts +411 -0
- package/src/coding/session-delta.ts +442 -0
- package/dist/chunk-2EN5WZQB.js.map +0 -1
- package/dist/chunk-7MOTEVAA.js.map +0 -1
- package/dist/chunk-DO7MDZMU.js.map +0 -1
- package/dist/chunk-NEILAC3H.js.map +0 -1
- package/dist/chunk-SEK4XIDN.js.map +0 -1
- package/dist/chunk-V56S3A23.js.map +0 -1
- /package/dist/{chunk-W4MICQIZ.js.map → chunk-F7BVJ3IE.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
registerTrainingExportAdapter,
|
|
99
99
|
runBulkImportCliCommand,
|
|
100
100
|
runWearablesCliCommand
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-THKNO6OX.js";
|
|
102
102
|
import "./chunk-MC4FJXPA.js";
|
|
103
103
|
import "./chunk-LQHDIS7L.js";
|
|
104
104
|
import "./chunk-7F7Z6MOS.js";
|
|
@@ -195,7 +195,7 @@ import {
|
|
|
195
195
|
saveTaxonomy,
|
|
196
196
|
validateSlug,
|
|
197
197
|
validateTaxonomy
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-F7BVJ3IE.js";
|
|
199
199
|
import {
|
|
200
200
|
WEARABLE_SOURCE_PREFIX,
|
|
201
201
|
buildExtractionTurns,
|
|
@@ -504,7 +504,7 @@ import "./chunk-LBJBNWS2.js";
|
|
|
504
504
|
import "./chunk-OADWQ5CR.js";
|
|
505
505
|
import {
|
|
506
506
|
EngramAccessHttpServer
|
|
507
|
-
} from "./chunk-
|
|
507
|
+
} from "./chunk-WYB44HHV.js";
|
|
508
508
|
import "./chunk-SEDEKFYQ.js";
|
|
509
509
|
import "./chunk-JBPKEARU.js";
|
|
510
510
|
import "./chunk-TMSXWOBZ.js";
|
|
@@ -518,7 +518,7 @@ import {
|
|
|
518
518
|
} from "./chunk-7WV3F5DQ.js";
|
|
519
519
|
import {
|
|
520
520
|
EngramMcpServer
|
|
521
|
-
} from "./chunk-
|
|
521
|
+
} from "./chunk-RHWFMBO5.js";
|
|
522
522
|
import {
|
|
523
523
|
REMNIC_CHATGPT_MEMORY_INSPECTOR_CANONICAL_TOOL,
|
|
524
524
|
REMNIC_CHATGPT_MEMORY_INSPECTOR_MIME_TYPE,
|
|
@@ -534,7 +534,7 @@ import {
|
|
|
534
534
|
parseOaiMemCitation,
|
|
535
535
|
sanitizeNoteForCitation
|
|
536
536
|
} from "./chunk-D24OXEPB.js";
|
|
537
|
-
import "./chunk-
|
|
537
|
+
import "./chunk-JNKH2XWQ.js";
|
|
538
538
|
import {
|
|
539
539
|
formatZodError,
|
|
540
540
|
memoryStoreRequestSchema,
|
|
@@ -543,13 +543,13 @@ import {
|
|
|
543
543
|
suggestionSubmitRequestSchema,
|
|
544
544
|
validateRequest
|
|
545
545
|
} from "./chunk-UDJLF3BO.js";
|
|
546
|
-
import "./chunk-
|
|
546
|
+
import "./chunk-5HGPDRQZ.js";
|
|
547
547
|
import {
|
|
548
548
|
EngramAccessInputError,
|
|
549
549
|
EngramAccessService,
|
|
550
550
|
computeProcedureStats,
|
|
551
551
|
formatProcedureStatsText
|
|
552
|
-
} from "./chunk-
|
|
552
|
+
} from "./chunk-MQTPUPLP.js";
|
|
553
553
|
import "./chunk-GDASG7NC.js";
|
|
554
554
|
import "./chunk-GDB4J2H3.js";
|
|
555
555
|
import {
|
|
@@ -574,7 +574,7 @@ import {
|
|
|
574
574
|
resolveCodingNamespaceOverlay,
|
|
575
575
|
resolveGitContext,
|
|
576
576
|
stableHash
|
|
577
|
-
} from "./chunk-
|
|
577
|
+
} from "./chunk-HRUULBBV.js";
|
|
578
578
|
import "./chunk-RS25QOKZ.js";
|
|
579
579
|
import {
|
|
580
580
|
isTrustZoneName
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as EngramAccessRecallResponse } from './access-service-DxCpgyVW.js';
|
|
2
2
|
import { ActionConfidenceRequest } from './access-schema.js';
|
|
3
3
|
import { RecallXraySnapshot } from './recall-xray.js';
|
|
4
4
|
import { ActionConfidenceResult } from './action-confidence.js';
|
package/dist/orchestrator.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
sanitizeSessionKeyForFilename,
|
|
29
29
|
shouldFilterLifecycleRecallCandidate,
|
|
30
30
|
summarizeGraphShadowComparison
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-F7BVJ3IE.js";
|
|
32
32
|
import "./chunk-5KBNNUXS.js";
|
|
33
33
|
import "./chunk-6C2BMUZA.js";
|
|
34
34
|
import "./chunk-666A3MOW.js";
|
|
@@ -145,7 +145,7 @@ import "./chunk-Z5LAYHGJ.js";
|
|
|
145
145
|
import "./chunk-LBJBNWS2.js";
|
|
146
146
|
import "./chunk-OADWQ5CR.js";
|
|
147
147
|
import "./chunk-7WV3F5DQ.js";
|
|
148
|
-
import "./chunk-
|
|
148
|
+
import "./chunk-HRUULBBV.js";
|
|
149
149
|
import "./chunk-RS25QOKZ.js";
|
|
150
150
|
import "./chunk-JGSKJHF7.js";
|
|
151
151
|
import "./chunk-FF4KLI5W.js";
|
package/dist/schemas.d.ts
CHANGED
|
@@ -275,12 +275,12 @@ declare const EntityMentionSchema: z.ZodObject<{
|
|
|
275
275
|
title: z.ZodString;
|
|
276
276
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
|
-
key: string;
|
|
279
278
|
title: string;
|
|
279
|
+
key: string;
|
|
280
280
|
facts: string[];
|
|
281
281
|
}, {
|
|
282
|
-
key: string;
|
|
283
282
|
title: string;
|
|
283
|
+
key: string;
|
|
284
284
|
facts: string[];
|
|
285
285
|
}>, "many">>>;
|
|
286
286
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -288,8 +288,8 @@ declare const EntityMentionSchema: z.ZodObject<{
|
|
|
288
288
|
name: string;
|
|
289
289
|
facts: string[];
|
|
290
290
|
structuredSections?: {
|
|
291
|
-
key: string;
|
|
292
291
|
title: string;
|
|
292
|
+
key: string;
|
|
293
293
|
facts: string[];
|
|
294
294
|
}[] | null | undefined;
|
|
295
295
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -298,8 +298,8 @@ declare const EntityMentionSchema: z.ZodObject<{
|
|
|
298
298
|
name: string;
|
|
299
299
|
facts: string[];
|
|
300
300
|
structuredSections?: {
|
|
301
|
-
key: string;
|
|
302
301
|
title: string;
|
|
302
|
+
key: string;
|
|
303
303
|
facts: string[];
|
|
304
304
|
}[] | null | undefined;
|
|
305
305
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -584,12 +584,12 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
584
584
|
title: z.ZodString;
|
|
585
585
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
586
586
|
}, "strip", z.ZodTypeAny, {
|
|
587
|
-
key: string;
|
|
588
587
|
title: string;
|
|
588
|
+
key: string;
|
|
589
589
|
facts: string[];
|
|
590
590
|
}, {
|
|
591
|
-
key: string;
|
|
592
591
|
title: string;
|
|
592
|
+
key: string;
|
|
593
593
|
facts: string[];
|
|
594
594
|
}>, "many">>>;
|
|
595
595
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -597,8 +597,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
597
597
|
name: string;
|
|
598
598
|
facts: string[];
|
|
599
599
|
structuredSections?: {
|
|
600
|
-
key: string;
|
|
601
600
|
title: string;
|
|
601
|
+
key: string;
|
|
602
602
|
facts: string[];
|
|
603
603
|
}[] | null | undefined;
|
|
604
604
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -607,8 +607,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
607
607
|
name: string;
|
|
608
608
|
facts: string[];
|
|
609
609
|
structuredSections?: {
|
|
610
|
-
key: string;
|
|
611
610
|
title: string;
|
|
611
|
+
key: string;
|
|
612
612
|
facts: string[];
|
|
613
613
|
}[] | null | undefined;
|
|
614
614
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -665,8 +665,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
665
665
|
name: string;
|
|
666
666
|
facts: string[];
|
|
667
667
|
structuredSections?: {
|
|
668
|
-
key: string;
|
|
669
668
|
title: string;
|
|
669
|
+
key: string;
|
|
670
670
|
facts: string[];
|
|
671
671
|
}[] | null | undefined;
|
|
672
672
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -714,8 +714,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
714
714
|
name: string;
|
|
715
715
|
facts: string[];
|
|
716
716
|
structuredSections?: {
|
|
717
|
-
key: string;
|
|
718
717
|
title: string;
|
|
718
|
+
key: string;
|
|
719
719
|
facts: string[];
|
|
720
720
|
}[] | null | undefined;
|
|
721
721
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -952,12 +952,12 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
952
952
|
title: z.ZodString;
|
|
953
953
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
954
954
|
}, "strip", z.ZodTypeAny, {
|
|
955
|
-
key: string;
|
|
956
955
|
title: string;
|
|
956
|
+
key: string;
|
|
957
957
|
facts: string[];
|
|
958
958
|
}, {
|
|
959
|
-
key: string;
|
|
960
959
|
title: string;
|
|
960
|
+
key: string;
|
|
961
961
|
facts: string[];
|
|
962
962
|
}>, "many">>>;
|
|
963
963
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -965,8 +965,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
965
965
|
name: string;
|
|
966
966
|
facts: string[];
|
|
967
967
|
structuredSections?: {
|
|
968
|
-
key: string;
|
|
969
968
|
title: string;
|
|
969
|
+
key: string;
|
|
970
970
|
facts: string[];
|
|
971
971
|
}[] | null | undefined;
|
|
972
972
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -975,8 +975,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
975
975
|
name: string;
|
|
976
976
|
facts: string[];
|
|
977
977
|
structuredSections?: {
|
|
978
|
-
key: string;
|
|
979
978
|
title: string;
|
|
979
|
+
key: string;
|
|
980
980
|
facts: string[];
|
|
981
981
|
}[] | null | undefined;
|
|
982
982
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1052,8 +1052,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
1052
1052
|
name: string;
|
|
1053
1053
|
facts: string[];
|
|
1054
1054
|
structuredSections?: {
|
|
1055
|
-
key: string;
|
|
1056
1055
|
title: string;
|
|
1056
|
+
key: string;
|
|
1057
1057
|
facts: string[];
|
|
1058
1058
|
}[] | null | undefined;
|
|
1059
1059
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1107,8 +1107,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
1107
1107
|
name: string;
|
|
1108
1108
|
facts: string[];
|
|
1109
1109
|
structuredSections?: {
|
|
1110
|
-
key: string;
|
|
1111
1110
|
title: string;
|
|
1111
|
+
key: string;
|
|
1112
1112
|
facts: string[];
|
|
1113
1113
|
}[] | null | undefined;
|
|
1114
1114
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1172,12 +1172,12 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
1172
1172
|
title: z.ZodString;
|
|
1173
1173
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
1174
1174
|
}, "strip", z.ZodTypeAny, {
|
|
1175
|
-
key: string;
|
|
1176
1175
|
title: string;
|
|
1176
|
+
key: string;
|
|
1177
1177
|
facts: string[];
|
|
1178
1178
|
}, {
|
|
1179
|
-
key: string;
|
|
1180
1179
|
title: string;
|
|
1180
|
+
key: string;
|
|
1181
1181
|
facts: string[];
|
|
1182
1182
|
}>, "many">>>;
|
|
1183
1183
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1185,8 +1185,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
1185
1185
|
name: string;
|
|
1186
1186
|
facts: string[];
|
|
1187
1187
|
structuredSections?: {
|
|
1188
|
-
key: string;
|
|
1189
1188
|
title: string;
|
|
1189
|
+
key: string;
|
|
1190
1190
|
facts: string[];
|
|
1191
1191
|
}[] | null | undefined;
|
|
1192
1192
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1195,8 +1195,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
1195
1195
|
name: string;
|
|
1196
1196
|
facts: string[];
|
|
1197
1197
|
structuredSections?: {
|
|
1198
|
-
key: string;
|
|
1199
1198
|
title: string;
|
|
1199
|
+
key: string;
|
|
1200
1200
|
facts: string[];
|
|
1201
1201
|
}[] | null | undefined;
|
|
1202
1202
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1215,8 +1215,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
1215
1215
|
name: string;
|
|
1216
1216
|
facts: string[];
|
|
1217
1217
|
structuredSections?: {
|
|
1218
|
-
key: string;
|
|
1219
1218
|
title: string;
|
|
1219
|
+
key: string;
|
|
1220
1220
|
facts: string[];
|
|
1221
1221
|
}[] | null | undefined;
|
|
1222
1222
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1235,8 +1235,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
1235
1235
|
name: string;
|
|
1236
1236
|
facts: string[];
|
|
1237
1237
|
structuredSections?: {
|
|
1238
|
-
key: string;
|
|
1239
1238
|
title: string;
|
|
1239
|
+
key: string;
|
|
1240
1240
|
facts: string[];
|
|
1241
1241
|
}[] | null | undefined;
|
|
1242
1242
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1387,20 +1387,20 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
|
|
|
1387
1387
|
appliedAt: z.ZodString;
|
|
1388
1388
|
}, "strip", z.ZodTypeAny, {
|
|
1389
1389
|
confidence: number;
|
|
1390
|
+
delta: number;
|
|
1390
1391
|
reason: string;
|
|
1391
1392
|
parameter: string;
|
|
1392
1393
|
previousValue: number;
|
|
1393
1394
|
nextValue: number;
|
|
1394
|
-
delta: number;
|
|
1395
1395
|
evidenceCount: number;
|
|
1396
1396
|
appliedAt: string;
|
|
1397
1397
|
}, {
|
|
1398
1398
|
confidence: number;
|
|
1399
|
+
delta: number;
|
|
1399
1400
|
reason: string;
|
|
1400
1401
|
parameter: string;
|
|
1401
1402
|
previousValue: number;
|
|
1402
1403
|
nextValue: number;
|
|
1403
|
-
delta: number;
|
|
1404
1404
|
evidenceCount: number;
|
|
1405
1405
|
appliedAt: string;
|
|
1406
1406
|
}>;
|
|
@@ -1421,20 +1421,20 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1421
1421
|
appliedAt: z.ZodString;
|
|
1422
1422
|
}, "strip", z.ZodTypeAny, {
|
|
1423
1423
|
confidence: number;
|
|
1424
|
+
delta: number;
|
|
1424
1425
|
reason: string;
|
|
1425
1426
|
parameter: string;
|
|
1426
1427
|
previousValue: number;
|
|
1427
1428
|
nextValue: number;
|
|
1428
|
-
delta: number;
|
|
1429
1429
|
evidenceCount: number;
|
|
1430
1430
|
appliedAt: string;
|
|
1431
1431
|
}, {
|
|
1432
1432
|
confidence: number;
|
|
1433
|
+
delta: number;
|
|
1433
1434
|
reason: string;
|
|
1434
1435
|
parameter: string;
|
|
1435
1436
|
previousValue: number;
|
|
1436
1437
|
nextValue: number;
|
|
1437
|
-
delta: number;
|
|
1438
1438
|
evidenceCount: number;
|
|
1439
1439
|
appliedAt: string;
|
|
1440
1440
|
}>, "many">;
|
|
@@ -1448,11 +1448,11 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1448
1448
|
protectedParams: string[];
|
|
1449
1449
|
adjustments: {
|
|
1450
1450
|
confidence: number;
|
|
1451
|
+
delta: number;
|
|
1451
1452
|
reason: string;
|
|
1452
1453
|
parameter: string;
|
|
1453
1454
|
previousValue: number;
|
|
1454
1455
|
nextValue: number;
|
|
1455
|
-
delta: number;
|
|
1456
1456
|
evidenceCount: number;
|
|
1457
1457
|
appliedAt: string;
|
|
1458
1458
|
}[];
|
|
@@ -1465,11 +1465,11 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1465
1465
|
protectedParams: string[];
|
|
1466
1466
|
adjustments: {
|
|
1467
1467
|
confidence: number;
|
|
1468
|
+
delta: number;
|
|
1468
1469
|
reason: string;
|
|
1469
1470
|
parameter: string;
|
|
1470
1471
|
previousValue: number;
|
|
1471
1472
|
nextValue: number;
|
|
1472
|
-
delta: number;
|
|
1473
1473
|
evidenceCount: number;
|
|
1474
1474
|
appliedAt: string;
|
|
1475
1475
|
}[];
|
package/dist/transfer/types.d.ts
CHANGED
|
@@ -313,13 +313,13 @@ declare const CapsuleBlockSchema: z.ZodObject<{
|
|
|
313
313
|
peerProfiles: boolean;
|
|
314
314
|
}>;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
schemaVersion: string;
|
|
316
317
|
includes: {
|
|
317
318
|
procedural: boolean;
|
|
318
319
|
taxonomy: boolean;
|
|
319
320
|
identityAnchors: boolean;
|
|
320
321
|
peerProfiles: boolean;
|
|
321
322
|
};
|
|
322
|
-
schemaVersion: string;
|
|
323
323
|
id: string;
|
|
324
324
|
description: string;
|
|
325
325
|
version: string;
|
|
@@ -334,13 +334,13 @@ declare const CapsuleBlockSchema: z.ZodObject<{
|
|
|
334
334
|
directAnswerEnabled: boolean;
|
|
335
335
|
};
|
|
336
336
|
}, {
|
|
337
|
+
schemaVersion: string;
|
|
337
338
|
includes: {
|
|
338
339
|
procedural: boolean;
|
|
339
340
|
taxonomy: boolean;
|
|
340
341
|
identityAnchors: boolean;
|
|
341
342
|
peerProfiles: boolean;
|
|
342
343
|
};
|
|
343
|
-
schemaVersion: string;
|
|
344
344
|
id: string;
|
|
345
345
|
description: string;
|
|
346
346
|
version: string;
|
|
@@ -464,13 +464,13 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
464
464
|
peerProfiles: boolean;
|
|
465
465
|
}>;
|
|
466
466
|
}, "strip", z.ZodTypeAny, {
|
|
467
|
+
schemaVersion: string;
|
|
467
468
|
includes: {
|
|
468
469
|
procedural: boolean;
|
|
469
470
|
taxonomy: boolean;
|
|
470
471
|
identityAnchors: boolean;
|
|
471
472
|
peerProfiles: boolean;
|
|
472
473
|
};
|
|
473
|
-
schemaVersion: string;
|
|
474
474
|
id: string;
|
|
475
475
|
description: string;
|
|
476
476
|
version: string;
|
|
@@ -485,13 +485,13 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
485
485
|
directAnswerEnabled: boolean;
|
|
486
486
|
};
|
|
487
487
|
}, {
|
|
488
|
+
schemaVersion: string;
|
|
488
489
|
includes: {
|
|
489
490
|
procedural: boolean;
|
|
490
491
|
taxonomy: boolean;
|
|
491
492
|
identityAnchors: boolean;
|
|
492
493
|
peerProfiles: boolean;
|
|
493
494
|
};
|
|
494
|
-
schemaVersion: string;
|
|
495
495
|
id: string;
|
|
496
496
|
description: string;
|
|
497
497
|
version: string;
|
|
@@ -518,13 +518,13 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
518
518
|
pluginVersion: string;
|
|
519
519
|
includesTranscripts: boolean;
|
|
520
520
|
capsule: {
|
|
521
|
+
schemaVersion: string;
|
|
521
522
|
includes: {
|
|
522
523
|
procedural: boolean;
|
|
523
524
|
taxonomy: boolean;
|
|
524
525
|
identityAnchors: boolean;
|
|
525
526
|
peerProfiles: boolean;
|
|
526
527
|
};
|
|
527
|
-
schemaVersion: string;
|
|
528
528
|
id: string;
|
|
529
529
|
description: string;
|
|
530
530
|
version: string;
|
|
@@ -551,13 +551,13 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
551
551
|
pluginVersion: string;
|
|
552
552
|
includesTranscripts: boolean;
|
|
553
553
|
capsule: {
|
|
554
|
+
schemaVersion: string;
|
|
554
555
|
includes: {
|
|
555
556
|
procedural: boolean;
|
|
556
557
|
taxonomy: boolean;
|
|
557
558
|
identityAnchors: boolean;
|
|
558
559
|
peerProfiles: boolean;
|
|
559
560
|
};
|
|
560
|
-
schemaVersion: string;
|
|
561
561
|
id: string;
|
|
562
562
|
description: string;
|
|
563
563
|
version: string;
|
|
@@ -683,13 +683,13 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
683
683
|
peerProfiles: boolean;
|
|
684
684
|
}>;
|
|
685
685
|
}, "strip", z.ZodTypeAny, {
|
|
686
|
+
schemaVersion: string;
|
|
686
687
|
includes: {
|
|
687
688
|
procedural: boolean;
|
|
688
689
|
taxonomy: boolean;
|
|
689
690
|
identityAnchors: boolean;
|
|
690
691
|
peerProfiles: boolean;
|
|
691
692
|
};
|
|
692
|
-
schemaVersion: string;
|
|
693
693
|
id: string;
|
|
694
694
|
description: string;
|
|
695
695
|
version: string;
|
|
@@ -704,13 +704,13 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
704
704
|
directAnswerEnabled: boolean;
|
|
705
705
|
};
|
|
706
706
|
}, {
|
|
707
|
+
schemaVersion: string;
|
|
707
708
|
includes: {
|
|
708
709
|
procedural: boolean;
|
|
709
710
|
taxonomy: boolean;
|
|
710
711
|
identityAnchors: boolean;
|
|
711
712
|
peerProfiles: boolean;
|
|
712
713
|
};
|
|
713
|
-
schemaVersion: string;
|
|
714
714
|
id: string;
|
|
715
715
|
description: string;
|
|
716
716
|
version: string;
|
|
@@ -737,13 +737,13 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
737
737
|
pluginVersion: string;
|
|
738
738
|
includesTranscripts: boolean;
|
|
739
739
|
capsule: {
|
|
740
|
+
schemaVersion: string;
|
|
740
741
|
includes: {
|
|
741
742
|
procedural: boolean;
|
|
742
743
|
taxonomy: boolean;
|
|
743
744
|
identityAnchors: boolean;
|
|
744
745
|
peerProfiles: boolean;
|
|
745
746
|
};
|
|
746
|
-
schemaVersion: string;
|
|
747
747
|
id: string;
|
|
748
748
|
description: string;
|
|
749
749
|
version: string;
|
|
@@ -770,13 +770,13 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
770
770
|
pluginVersion: string;
|
|
771
771
|
includesTranscripts: boolean;
|
|
772
772
|
capsule: {
|
|
773
|
+
schemaVersion: string;
|
|
773
774
|
includes: {
|
|
774
775
|
procedural: boolean;
|
|
775
776
|
taxonomy: boolean;
|
|
776
777
|
identityAnchors: boolean;
|
|
777
778
|
peerProfiles: boolean;
|
|
778
779
|
};
|
|
779
|
-
schemaVersion: string;
|
|
780
780
|
id: string;
|
|
781
781
|
description: string;
|
|
782
782
|
version: string;
|
|
@@ -819,13 +819,13 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
819
819
|
pluginVersion: string;
|
|
820
820
|
includesTranscripts: boolean;
|
|
821
821
|
capsule: {
|
|
822
|
+
schemaVersion: string;
|
|
822
823
|
includes: {
|
|
823
824
|
procedural: boolean;
|
|
824
825
|
taxonomy: boolean;
|
|
825
826
|
identityAnchors: boolean;
|
|
826
827
|
peerProfiles: boolean;
|
|
827
828
|
};
|
|
828
|
-
schemaVersion: string;
|
|
829
829
|
id: string;
|
|
830
830
|
description: string;
|
|
831
831
|
version: string;
|
|
@@ -858,13 +858,13 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
858
858
|
pluginVersion: string;
|
|
859
859
|
includesTranscripts: boolean;
|
|
860
860
|
capsule: {
|
|
861
|
+
schemaVersion: string;
|
|
861
862
|
includes: {
|
|
862
863
|
procedural: boolean;
|
|
863
864
|
taxonomy: boolean;
|
|
864
865
|
identityAnchors: boolean;
|
|
865
866
|
peerProfiles: boolean;
|
|
866
867
|
};
|
|
867
|
-
schemaVersion: string;
|
|
868
868
|
id: string;
|
|
869
869
|
description: string;
|
|
870
870
|
version: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.693",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -2941,7 +2941,7 @@
|
|
|
2941
2941
|
"core"
|
|
2942
2942
|
],
|
|
2943
2943
|
"peerDependencies": {
|
|
2944
|
-
"@remnic/coding-graph": "^9.3.
|
|
2944
|
+
"@remnic/coding-graph": "^9.3.693"
|
|
2945
2945
|
},
|
|
2946
2946
|
"peerDependenciesMeta": {
|
|
2947
2947
|
"@remnic/coding-graph": {
|
package/src/access-boundary.ts
CHANGED
|
@@ -35,7 +35,8 @@ export type OperationName =
|
|
|
35
35
|
| "memory_search"
|
|
36
36
|
| "memory_store"
|
|
37
37
|
| "coding_decision"
|
|
38
|
-
| "coding_architecture"
|
|
38
|
+
| "coding_architecture"
|
|
39
|
+
| "coding_delta";
|
|
39
40
|
|
|
40
41
|
// ---------------------------------------------------------------------------
|
|
41
42
|
// Operation context — what every handler receives
|
package/src/access-cli.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { projectTagProjectId } from "./coding/coding-namespace.js";
|
|
|
15
15
|
|
|
16
16
|
const OPENCLAW_REMNIC_PLUGIN_IDS = ["openclaw-remnic", "openclaw-engram"] as const;
|
|
17
17
|
|
|
18
|
-
type CommandName = "browse" | "store" | "decision" | "architecture";
|
|
18
|
+
type CommandName = "browse" | "store" | "decision" | "architecture" | "delta";
|
|
19
19
|
|
|
20
20
|
type ParsedArgs = {
|
|
21
21
|
command: CommandName;
|
|
@@ -138,6 +138,7 @@ function usage(): string {
|
|
|
138
138
|
" engram-access store [options]",
|
|
139
139
|
" engram-access decision [options]",
|
|
140
140
|
" engram-access architecture [options]",
|
|
141
|
+
" engram-access delta [options]",
|
|
141
142
|
"",
|
|
142
143
|
"Browse options:",
|
|
143
144
|
" --namespace <name>",
|
|
@@ -248,6 +249,17 @@ const COMMAND_SPECS: Record<CommandName, CommandSpec> = {
|
|
|
248
249
|
]),
|
|
249
250
|
flagOptions: new Set(),
|
|
250
251
|
},
|
|
252
|
+
delta: {
|
|
253
|
+
valueOptions: new Set([
|
|
254
|
+
"subcommand",
|
|
255
|
+
"namespace",
|
|
256
|
+
"session-key",
|
|
257
|
+
"principal",
|
|
258
|
+
"project-tag",
|
|
259
|
+
"repo-root",
|
|
260
|
+
]),
|
|
261
|
+
flagOptions: new Set(),
|
|
262
|
+
},
|
|
251
263
|
};
|
|
252
264
|
const BROWSE_SORT_VALUES = Object.freeze([
|
|
253
265
|
"updated_desc",
|
|
@@ -265,7 +277,7 @@ type BrowseSort = (typeof BROWSE_SORT_VALUES)[number];
|
|
|
265
277
|
* `command: commandRaw` assignment below (codex review P2).
|
|
266
278
|
*/
|
|
267
279
|
function isCommandName(value: string): value is CommandName {
|
|
268
|
-
return value === "browse" || value === "store" || value === "decision" || value === "architecture";
|
|
280
|
+
return value === "browse" || value === "store" || value === "decision" || value === "architecture" || value === "delta";
|
|
269
281
|
}
|
|
270
282
|
|
|
271
283
|
function parseArgs(argv: string[]): ParsedArgs {
|
|
@@ -636,6 +648,53 @@ async function runArchitecture(args: ParsedArgs, preferredId?: string): Promise<
|
|
|
636
648
|
console.log(JSON.stringify(output.result, null, 2));
|
|
637
649
|
}
|
|
638
650
|
|
|
651
|
+
/**
|
|
652
|
+
* Session-delta surface (issue #1548 Track A PR 4). Dispatches through the
|
|
653
|
+
* same `coding_delta` operation as the MCP tool and HTTP route — one
|
|
654
|
+
* validation boundary, three transports.
|
|
655
|
+
*/
|
|
656
|
+
async function runDelta(args: ParsedArgs, preferredId?: string): Promise<void> {
|
|
657
|
+
const subcommand = requireOption(args, "subcommand");
|
|
658
|
+
const { config, service } = buildRuntime(preferredId);
|
|
659
|
+
// Same coding-context attachment as runArchitecture/runDecision: the CLI's
|
|
660
|
+
// fresh Orchestrator has an empty session coding-context map, so attach a
|
|
661
|
+
// context BEFORE dispatching so the gate passes.
|
|
662
|
+
const projectTag = getLastOption(args, "project-tag");
|
|
663
|
+
const sessionKey = getLastOption(args, "session-key");
|
|
664
|
+
if (sessionKey && sessionKey.trim().length > 0) {
|
|
665
|
+
const repoRoot = expandOptionalPath(getLastOption(args, "repo-root")) ?? process.cwd();
|
|
666
|
+
const projectId =
|
|
667
|
+
projectTag && projectTag.trim().length > 0
|
|
668
|
+
? projectTagProjectId(projectTag.trim())
|
|
669
|
+
: projectTagProjectId(path.basename(repoRoot));
|
|
670
|
+
service.setCodingContext({
|
|
671
|
+
sessionKey,
|
|
672
|
+
codingContext: {
|
|
673
|
+
projectId,
|
|
674
|
+
branch: null,
|
|
675
|
+
rootPath: repoRoot,
|
|
676
|
+
defaultBranch: null,
|
|
677
|
+
},
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
const op = getOperation("coding_delta");
|
|
681
|
+
if (!op) {
|
|
682
|
+
throw new Error("access-boundary: operation not registered: coding_delta");
|
|
683
|
+
}
|
|
684
|
+
const output = (await op.run(
|
|
685
|
+
{
|
|
686
|
+
subcommand,
|
|
687
|
+
namespace: getLastOption(args, "namespace"),
|
|
688
|
+
sessionKey,
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
service,
|
|
692
|
+
authenticatedPrincipal: getLastOption(args, "principal") ?? config.agentAccessHttp.principal,
|
|
693
|
+
},
|
|
694
|
+
)) as { result: unknown };
|
|
695
|
+
console.log(JSON.stringify(output.result, null, 2));
|
|
696
|
+
}
|
|
697
|
+
|
|
639
698
|
export async function main(
|
|
640
699
|
argv: string[] = process.argv.slice(2),
|
|
641
700
|
options: AccessCliOptions = {},
|
|
@@ -653,6 +712,10 @@ export async function main(
|
|
|
653
712
|
await runArchitecture(args, options.preferredId);
|
|
654
713
|
return;
|
|
655
714
|
}
|
|
715
|
+
if (args.command === "delta") {
|
|
716
|
+
await runDelta(args, options.preferredId);
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
656
719
|
await runStore(args, options.preferredId);
|
|
657
720
|
}
|
|
658
721
|
|