@remnic/core 9.69.3 → 9.69.4
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-admin-ops-surface.d.ts +1 -1
- package/dist/access-authorization-probe.d.ts +1 -1
- package/dist/access-boundary.d.ts +1 -1
- package/dist/access-cli.js +1 -1
- package/dist/access-extraction-force-flush.d.ts +1 -1
- package/dist/access-http-lcm-compaction.d.ts +1 -1
- package/dist/access-http-lifecycle-flush.d.ts +1 -1
- package/dist/access-http-offline-stream.d.ts +1 -1
- package/dist/access-http.d.ts +2 -2
- package/dist/access-lcm-surface.d.ts +1 -1
- package/dist/access-mcp.d.ts +1 -1
- package/dist/access-observe-write-surface.d.ts +1 -1
- package/dist/access-operations.d.ts +6 -6
- package/dist/access-recall-concurrency.d.ts +1 -1
- package/dist/access-recall-response.d.ts +1 -1
- package/dist/access-recall-surface.d.ts +1 -1
- package/dist/access-schema.d.ts +89 -89
- package/dist/access-service-helpers.d.ts +1 -1
- package/dist/access-service.d.ts +1 -1
- package/dist/access-surface-catalog.d.ts +1 -1
- package/dist/{chunk-ATS6H6AC.js → chunk-WOA7DS7O.js} +1 -1
- package/dist/{chunk-ATS6H6AC.js.map → chunk-WOA7DS7O.js.map} +1 -1
- package/dist/{cli-CFpMhqz5.d.ts → cli-Bvy4jdBu.d.ts} +1 -1
- package/dist/cli.d.ts +2 -2
- package/dist/external-wiki-access.d.ts +1 -1
- package/dist/external-wiki-mcp-tools.d.ts +1 -1
- package/dist/index.d.ts +680 -680
- package/dist/index.js +1 -1
- package/dist/mcp-memory-inspector-app.d.ts +1 -1
- package/dist/memory-subject-cli.d.ts +1 -1
- package/dist/memory-subject.d.ts +1 -1
- package/dist/orchestrator.js +1 -1
- package/dist/{public-http-C9-CHc40.d.ts → public-http-2MyshWxl.d.ts} +1 -1
- package/dist/schemas.d.ts +176 -176
- package/dist/shared-context/manager.d.ts +6 -6
- package/dist/support-passport/index.d.ts +4 -4
- package/dist/transfer/types.d.ts +78 -78
- package/dist/who-knows-cli.d.ts +1 -1
- package/dist/who-knows.d.ts +1 -1
- package/package.json +2 -2
- package/src/dedup/index.ts +6 -0
- package/src/dedup/merge-content.test.ts +116 -0
- package/src/dedup/merge-content.ts +40 -0
- package/dist/{access-service-DcfM0Vf0.d.ts → access-service-LbwWl05g.d.ts} +64 -64
|
@@ -30,12 +30,12 @@ declare const SharedFeedbackEntrySchema: z.ZodObject<{
|
|
|
30
30
|
decision: "rejected" | "approved" | "approved_with_feedback";
|
|
31
31
|
agent: string;
|
|
32
32
|
date: string;
|
|
33
|
-
|
|
33
|
+
severity?: "low" | "medium" | "high" | undefined;
|
|
34
|
+
confidence?: number | undefined;
|
|
34
35
|
tags?: string[] | undefined;
|
|
36
|
+
workflow?: string | undefined;
|
|
35
37
|
outcome?: string | undefined;
|
|
36
|
-
confidence?: number | undefined;
|
|
37
38
|
refs?: string[] | undefined;
|
|
38
|
-
severity?: "high" | "low" | "medium" | undefined;
|
|
39
39
|
learning?: string | undefined;
|
|
40
40
|
evidenceWindowStart?: string | undefined;
|
|
41
41
|
evidenceWindowEnd?: string | undefined;
|
|
@@ -44,12 +44,12 @@ declare const SharedFeedbackEntrySchema: z.ZodObject<{
|
|
|
44
44
|
decision: "rejected" | "approved" | "approved_with_feedback";
|
|
45
45
|
agent: string;
|
|
46
46
|
date: string;
|
|
47
|
-
|
|
47
|
+
severity?: "low" | "medium" | "high" | undefined;
|
|
48
|
+
confidence?: number | undefined;
|
|
48
49
|
tags?: string[] | undefined;
|
|
50
|
+
workflow?: string | undefined;
|
|
49
51
|
outcome?: string | undefined;
|
|
50
|
-
confidence?: number | undefined;
|
|
51
52
|
refs?: string[] | undefined;
|
|
52
|
-
severity?: "high" | "low" | "medium" | undefined;
|
|
53
53
|
learning?: string | undefined;
|
|
54
54
|
evidenceWindowStart?: string | undefined;
|
|
55
55
|
evidenceWindowEnd?: string | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as SupportPassportExternalRequestHandler } from '../public-http-
|
|
2
|
-
export { a as SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES, b as SupportPassportPublicHandlerOptions, c as buildSupportPassportPublicRequestHandler, d as composeSupportPassportExternalRequestHandlers, n as normalizeSupportPassportNetworkAddress } from '../public-http-
|
|
1
|
+
import { S as SupportPassportExternalRequestHandler } from '../public-http-2MyshWxl.js';
|
|
2
|
+
export { a as SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES, b as SupportPassportPublicHandlerOptions, c as buildSupportPassportPublicRequestHandler, d as composeSupportPassportExternalRequestHandlers, n as normalizeSupportPassportNetworkAddress } from '../public-http-2MyshWxl.js';
|
|
3
3
|
import { OfflineSyncExcludeFile } from '../offline-sync-file-io.js';
|
|
4
4
|
import { M as MemoryFile, d6 as SupportPassportConfig } from '../types-eM7QIcX2.js';
|
|
5
|
-
import { ay as SupportPassportCard, aF as SupportPassportCardServiceDependencies, b2 as SupportPassportManualDraftInput, aQ as SupportPassportDraftCard, bq as SupportPassportOwnerScope, bu as SupportPassportReplaceCardInput, aC as SupportPassportCardMutationInput, aY as SupportPassportGrantCardRef, a_ as SupportPassportGrantState, aJ as SupportPassportCreateGrantInput, aO as SupportPassportCreatedGrant, bo as SupportPassportOwnerGrant, bw as SupportPassportRevokeGrantInput, bs as SupportPassportPublicGuide, bh as SupportPassportModelRoute, b6 as SupportPassportModelAdapter, ba as SupportPassportModelAuditSink, av as SupportPassportAnswerOutput } from '../access-service-
|
|
6
|
-
export { aj as SUPPORT_PASSPORT_CARD_CATEGORIES, ak as SUPPORT_PASSPORT_CARD_STATUSES, al as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, am as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, an as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, ao as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, ar as SupportPassportAccessSurface, as as SupportPassportAccessSurfaceDependencies, at as SupportPassportAnswerModelInput, au as SupportPassportAnswerModelInputSchema, aw as SupportPassportAnswerOutputSchema, ax as SupportPassportAnswerResult, az as SupportPassportCardCategory, aA as SupportPassportCardCategorySchema, aB as SupportPassportCardListSchema, aD as SupportPassportCardMutationInputSchema, aE as SupportPassportCardSchema, aG as SupportPassportCardStatus, aH as SupportPassportCardStatusSchema, aI as SupportPassportCardTitleSchema, aK as SupportPassportCreateGrantInputSchema, aL as SupportPassportCreateGrantRequest, aM as SupportPassportCreateGrantRequestSchema, aN as SupportPassportCreateGrantResult, aP as SupportPassportCreatedGrantSchema, aR as SupportPassportDraftCardSchema, aS as SupportPassportDraftModelInput, aT as SupportPassportDraftModelInputSchema, aU as SupportPassportDraftOutputSchema, aV as SupportPassportDraftResult, aW as SupportPassportError, aX as SupportPassportErrorCode, aZ as SupportPassportGrantCardRefSchema, a$ as SupportPassportGrantStateSchema, b0 as SupportPassportListCardsInputSchema, b1 as SupportPassportListGrantsInputSchema, b3 as SupportPassportManualDraftInputSchema, b4 as SupportPassportMemoryIdSchema, b5 as SupportPassportMemoryPreview, b7 as SupportPassportModelAdapterOptions, b8 as SupportPassportModelAuditRecord, b9 as SupportPassportModelAuditRecordSchema, bb as SupportPassportModelAuditStore, bc as SupportPassportModelCallError, bd as SupportPassportModelClients, be as SupportPassportModelFailureMetadata, bf as SupportPassportModelMessage, bg as SupportPassportModelResultMetadata, bi as SupportPassportModelRouteKind, bj as SupportPassportModelRouteResult, bk as SupportPassportModelUsage, bl as SupportPassportNamespaceSchema, bm as SupportPassportOwnerCreateGrantRequest, bn as SupportPassportOwnerCreateGrantRequestSchema, bp as SupportPassportOwnerGrantSchema, br as SupportPassportPublicCardSchema, bt as SupportPassportPublicGuideSchema, bv as SupportPassportReplaceCardInputSchema, bx as SupportPassportRevokeGrantInputSchema, by as SupportPassportRevokeGrantResult, bz as SupportPassportSourceMemoryIdSchema, bK as acceptsSupportPassportModelResponse, bN as buildSupportPassportDirectGatewayConfig, bS as computeSupportPassportCardRevision, bU as createSupportPassportModelAdapter, b_ as hashSupportPassportAuditValues, c5 as resolveSupportPassportModelRoutePlan } from '../access-service-
|
|
5
|
+
import { ay as SupportPassportCard, aF as SupportPassportCardServiceDependencies, b2 as SupportPassportManualDraftInput, aQ as SupportPassportDraftCard, bq as SupportPassportOwnerScope, bu as SupportPassportReplaceCardInput, aC as SupportPassportCardMutationInput, aY as SupportPassportGrantCardRef, a_ as SupportPassportGrantState, aJ as SupportPassportCreateGrantInput, aO as SupportPassportCreatedGrant, bo as SupportPassportOwnerGrant, bw as SupportPassportRevokeGrantInput, bs as SupportPassportPublicGuide, bh as SupportPassportModelRoute, b6 as SupportPassportModelAdapter, ba as SupportPassportModelAuditSink, av as SupportPassportAnswerOutput } from '../access-service-LbwWl05g.js';
|
|
6
|
+
export { aj as SUPPORT_PASSPORT_CARD_CATEGORIES, ak as SUPPORT_PASSPORT_CARD_STATUSES, al as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, am as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, an as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, ao as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, ar as SupportPassportAccessSurface, as as SupportPassportAccessSurfaceDependencies, at as SupportPassportAnswerModelInput, au as SupportPassportAnswerModelInputSchema, aw as SupportPassportAnswerOutputSchema, ax as SupportPassportAnswerResult, az as SupportPassportCardCategory, aA as SupportPassportCardCategorySchema, aB as SupportPassportCardListSchema, aD as SupportPassportCardMutationInputSchema, aE as SupportPassportCardSchema, aG as SupportPassportCardStatus, aH as SupportPassportCardStatusSchema, aI as SupportPassportCardTitleSchema, aK as SupportPassportCreateGrantInputSchema, aL as SupportPassportCreateGrantRequest, aM as SupportPassportCreateGrantRequestSchema, aN as SupportPassportCreateGrantResult, aP as SupportPassportCreatedGrantSchema, aR as SupportPassportDraftCardSchema, aS as SupportPassportDraftModelInput, aT as SupportPassportDraftModelInputSchema, aU as SupportPassportDraftOutputSchema, aV as SupportPassportDraftResult, aW as SupportPassportError, aX as SupportPassportErrorCode, aZ as SupportPassportGrantCardRefSchema, a$ as SupportPassportGrantStateSchema, b0 as SupportPassportListCardsInputSchema, b1 as SupportPassportListGrantsInputSchema, b3 as SupportPassportManualDraftInputSchema, b4 as SupportPassportMemoryIdSchema, b5 as SupportPassportMemoryPreview, b7 as SupportPassportModelAdapterOptions, b8 as SupportPassportModelAuditRecord, b9 as SupportPassportModelAuditRecordSchema, bb as SupportPassportModelAuditStore, bc as SupportPassportModelCallError, bd as SupportPassportModelClients, be as SupportPassportModelFailureMetadata, bf as SupportPassportModelMessage, bg as SupportPassportModelResultMetadata, bi as SupportPassportModelRouteKind, bj as SupportPassportModelRouteResult, bk as SupportPassportModelUsage, bl as SupportPassportNamespaceSchema, bm as SupportPassportOwnerCreateGrantRequest, bn as SupportPassportOwnerCreateGrantRequestSchema, bp as SupportPassportOwnerGrantSchema, br as SupportPassportPublicCardSchema, bt as SupportPassportPublicGuideSchema, bv as SupportPassportReplaceCardInputSchema, bx as SupportPassportRevokeGrantInputSchema, by as SupportPassportRevokeGrantResult, bz as SupportPassportSourceMemoryIdSchema, bK as acceptsSupportPassportModelResponse, bN as buildSupportPassportDirectGatewayConfig, bS as computeSupportPassportCardRevision, bU as createSupportPassportModelAdapter, b_ as hashSupportPassportAuditValues, c5 as resolveSupportPassportModelRoutePlan } from '../access-service-LbwWl05g.js';
|
|
7
7
|
import { S as StorageManager } from '../storage-6fn7BPmb.js';
|
|
8
8
|
import { FileHandle } from 'node:fs/promises';
|
|
9
9
|
import { withHeldFileLock } from '../utils/serialize-mutations.js';
|
package/dist/transfer/types.d.ts
CHANGED
|
@@ -20,26 +20,26 @@ declare const ExportManifestV1Schema: z.ZodObject<{
|
|
|
20
20
|
bytes: number;
|
|
21
21
|
}>, "many">;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
|
|
23
|
+
format: "openclaw-engram-export";
|
|
24
|
+
createdAt: string;
|
|
25
|
+
pluginVersion: string;
|
|
24
26
|
files: {
|
|
25
27
|
sha256: string;
|
|
26
28
|
path: string;
|
|
27
29
|
bytes: number;
|
|
28
30
|
}[];
|
|
29
|
-
|
|
30
|
-
format: "openclaw-engram-export";
|
|
31
|
-
pluginVersion: string;
|
|
31
|
+
schemaVersion: 1;
|
|
32
32
|
includesTranscripts: boolean;
|
|
33
33
|
}, {
|
|
34
|
-
|
|
34
|
+
format: "openclaw-engram-export";
|
|
35
|
+
createdAt: string;
|
|
36
|
+
pluginVersion: string;
|
|
35
37
|
files: {
|
|
36
38
|
sha256: string;
|
|
37
39
|
path: string;
|
|
38
40
|
bytes: number;
|
|
39
41
|
}[];
|
|
40
|
-
|
|
41
|
-
format: "openclaw-engram-export";
|
|
42
|
-
pluginVersion: string;
|
|
42
|
+
schemaVersion: 1;
|
|
43
43
|
includesTranscripts: boolean;
|
|
44
44
|
}>;
|
|
45
45
|
type ExportManifestV1 = z.infer<typeof ExportManifestV1Schema>;
|
|
@@ -75,26 +75,26 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
75
75
|
bytes: number;
|
|
76
76
|
}>, "many">;
|
|
77
77
|
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
|
|
78
|
+
format: "openclaw-engram-export";
|
|
79
|
+
createdAt: string;
|
|
80
|
+
pluginVersion: string;
|
|
79
81
|
files: {
|
|
80
82
|
sha256: string;
|
|
81
83
|
path: string;
|
|
82
84
|
bytes: number;
|
|
83
85
|
}[];
|
|
84
|
-
|
|
85
|
-
format: "openclaw-engram-export";
|
|
86
|
-
pluginVersion: string;
|
|
86
|
+
schemaVersion: 1;
|
|
87
87
|
includesTranscripts: boolean;
|
|
88
88
|
}, {
|
|
89
|
-
|
|
89
|
+
format: "openclaw-engram-export";
|
|
90
|
+
createdAt: string;
|
|
91
|
+
pluginVersion: string;
|
|
90
92
|
files: {
|
|
91
93
|
sha256: string;
|
|
92
94
|
path: string;
|
|
93
95
|
bytes: number;
|
|
94
96
|
}[];
|
|
95
|
-
|
|
96
|
-
format: "openclaw-engram-export";
|
|
97
|
-
pluginVersion: string;
|
|
97
|
+
schemaVersion: 1;
|
|
98
98
|
includesTranscripts: boolean;
|
|
99
99
|
}>;
|
|
100
100
|
records: z.ZodArray<z.ZodObject<{
|
|
@@ -109,15 +109,15 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
109
109
|
}>, "many">;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
111
|
manifest: {
|
|
112
|
-
|
|
112
|
+
format: "openclaw-engram-export";
|
|
113
|
+
createdAt: string;
|
|
114
|
+
pluginVersion: string;
|
|
113
115
|
files: {
|
|
114
116
|
sha256: string;
|
|
115
117
|
path: string;
|
|
116
118
|
bytes: number;
|
|
117
119
|
}[];
|
|
118
|
-
|
|
119
|
-
format: "openclaw-engram-export";
|
|
120
|
-
pluginVersion: string;
|
|
120
|
+
schemaVersion: 1;
|
|
121
121
|
includesTranscripts: boolean;
|
|
122
122
|
};
|
|
123
123
|
records: {
|
|
@@ -126,15 +126,15 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
126
126
|
}[];
|
|
127
127
|
}, {
|
|
128
128
|
manifest: {
|
|
129
|
-
|
|
129
|
+
format: "openclaw-engram-export";
|
|
130
|
+
createdAt: string;
|
|
131
|
+
pluginVersion: string;
|
|
130
132
|
files: {
|
|
131
133
|
sha256: string;
|
|
132
134
|
path: string;
|
|
133
135
|
bytes: number;
|
|
134
136
|
}[];
|
|
135
|
-
|
|
136
|
-
format: "openclaw-engram-export";
|
|
137
|
-
pluginVersion: string;
|
|
137
|
+
schemaVersion: 1;
|
|
138
138
|
includesTranscripts: boolean;
|
|
139
139
|
};
|
|
140
140
|
records: {
|
|
@@ -313,15 +313,15 @@ declare const CapsuleBlockSchema: z.ZodObject<{
|
|
|
313
313
|
peerProfiles: boolean;
|
|
314
314
|
}>;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
schemaVersion: string;
|
|
317
316
|
includes: {
|
|
318
317
|
procedural: boolean;
|
|
319
318
|
taxonomy: boolean;
|
|
320
319
|
identityAnchors: boolean;
|
|
321
320
|
peerProfiles: boolean;
|
|
322
321
|
};
|
|
323
|
-
id: string;
|
|
324
322
|
description: string;
|
|
323
|
+
id: string;
|
|
324
|
+
schemaVersion: string;
|
|
325
325
|
version: string;
|
|
326
326
|
parentCapsule: string | null;
|
|
327
327
|
retrievalPolicy: {
|
|
@@ -334,15 +334,15 @@ declare const CapsuleBlockSchema: z.ZodObject<{
|
|
|
334
334
|
forkRoot: string;
|
|
335
335
|
} | null;
|
|
336
336
|
}, {
|
|
337
|
-
schemaVersion: string;
|
|
338
337
|
includes: {
|
|
339
338
|
procedural: boolean;
|
|
340
339
|
taxonomy: boolean;
|
|
341
340
|
identityAnchors: boolean;
|
|
342
341
|
peerProfiles: boolean;
|
|
343
342
|
};
|
|
344
|
-
id: string;
|
|
345
343
|
description: string;
|
|
344
|
+
id: string;
|
|
345
|
+
schemaVersion: string;
|
|
346
346
|
version: string;
|
|
347
347
|
parentCapsule: string | null;
|
|
348
348
|
retrievalPolicy: {
|
|
@@ -464,15 +464,15 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
464
464
|
peerProfiles: boolean;
|
|
465
465
|
}>;
|
|
466
466
|
}, "strip", z.ZodTypeAny, {
|
|
467
|
-
schemaVersion: string;
|
|
468
467
|
includes: {
|
|
469
468
|
procedural: boolean;
|
|
470
469
|
taxonomy: boolean;
|
|
471
470
|
identityAnchors: boolean;
|
|
472
471
|
peerProfiles: boolean;
|
|
473
472
|
};
|
|
474
|
-
id: string;
|
|
475
473
|
description: string;
|
|
474
|
+
id: string;
|
|
475
|
+
schemaVersion: string;
|
|
476
476
|
version: string;
|
|
477
477
|
parentCapsule: string | null;
|
|
478
478
|
retrievalPolicy: {
|
|
@@ -485,15 +485,15 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
485
485
|
forkRoot: string;
|
|
486
486
|
} | null;
|
|
487
487
|
}, {
|
|
488
|
-
schemaVersion: string;
|
|
489
488
|
includes: {
|
|
490
489
|
procedural: boolean;
|
|
491
490
|
taxonomy: boolean;
|
|
492
491
|
identityAnchors: boolean;
|
|
493
492
|
peerProfiles: boolean;
|
|
494
493
|
};
|
|
495
|
-
id: string;
|
|
496
494
|
description: string;
|
|
495
|
+
id: string;
|
|
496
|
+
schemaVersion: string;
|
|
497
497
|
version: string;
|
|
498
498
|
parentCapsule: string | null;
|
|
499
499
|
retrievalPolicy: {
|
|
@@ -507,26 +507,24 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
507
507
|
} | null | undefined;
|
|
508
508
|
}>;
|
|
509
509
|
}, "strip", z.ZodTypeAny, {
|
|
510
|
-
|
|
510
|
+
format: "openclaw-engram-export";
|
|
511
|
+
createdAt: string;
|
|
512
|
+
pluginVersion: string;
|
|
511
513
|
files: {
|
|
512
514
|
sha256: string;
|
|
513
515
|
path: string;
|
|
514
516
|
bytes: number;
|
|
515
517
|
}[];
|
|
516
|
-
createdAt: string;
|
|
517
|
-
format: "openclaw-engram-export";
|
|
518
|
-
pluginVersion: string;
|
|
519
|
-
includesTranscripts: boolean;
|
|
520
518
|
capsule: {
|
|
521
|
-
schemaVersion: string;
|
|
522
519
|
includes: {
|
|
523
520
|
procedural: boolean;
|
|
524
521
|
taxonomy: boolean;
|
|
525
522
|
identityAnchors: boolean;
|
|
526
523
|
peerProfiles: boolean;
|
|
527
524
|
};
|
|
528
|
-
id: string;
|
|
529
525
|
description: string;
|
|
526
|
+
id: string;
|
|
527
|
+
schemaVersion: string;
|
|
530
528
|
version: string;
|
|
531
529
|
parentCapsule: string | null;
|
|
532
530
|
retrievalPolicy: {
|
|
@@ -539,27 +537,27 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
539
537
|
forkRoot: string;
|
|
540
538
|
} | null;
|
|
541
539
|
};
|
|
542
|
-
}, {
|
|
543
540
|
schemaVersion: 2;
|
|
541
|
+
includesTranscripts: boolean;
|
|
542
|
+
}, {
|
|
543
|
+
format: "openclaw-engram-export";
|
|
544
|
+
createdAt: string;
|
|
545
|
+
pluginVersion: string;
|
|
544
546
|
files: {
|
|
545
547
|
sha256: string;
|
|
546
548
|
path: string;
|
|
547
549
|
bytes: number;
|
|
548
550
|
}[];
|
|
549
|
-
createdAt: string;
|
|
550
|
-
format: "openclaw-engram-export";
|
|
551
|
-
pluginVersion: string;
|
|
552
|
-
includesTranscripts: boolean;
|
|
553
551
|
capsule: {
|
|
554
|
-
schemaVersion: string;
|
|
555
552
|
includes: {
|
|
556
553
|
procedural: boolean;
|
|
557
554
|
taxonomy: boolean;
|
|
558
555
|
identityAnchors: boolean;
|
|
559
556
|
peerProfiles: boolean;
|
|
560
557
|
};
|
|
561
|
-
id: string;
|
|
562
558
|
description: string;
|
|
559
|
+
id: string;
|
|
560
|
+
schemaVersion: string;
|
|
563
561
|
version: string;
|
|
564
562
|
parentCapsule: string | null;
|
|
565
563
|
retrievalPolicy: {
|
|
@@ -572,6 +570,8 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
572
570
|
forkRoot: string;
|
|
573
571
|
} | null | undefined;
|
|
574
572
|
};
|
|
573
|
+
schemaVersion: 2;
|
|
574
|
+
includesTranscripts: boolean;
|
|
575
575
|
}>;
|
|
576
576
|
type ExportManifestV2 = z.infer<typeof ExportManifestV2Schema>;
|
|
577
577
|
declare const ExportBundleV2Schema: z.ZodObject<{
|
|
@@ -683,15 +683,15 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
683
683
|
peerProfiles: boolean;
|
|
684
684
|
}>;
|
|
685
685
|
}, "strip", z.ZodTypeAny, {
|
|
686
|
-
schemaVersion: string;
|
|
687
686
|
includes: {
|
|
688
687
|
procedural: boolean;
|
|
689
688
|
taxonomy: boolean;
|
|
690
689
|
identityAnchors: boolean;
|
|
691
690
|
peerProfiles: boolean;
|
|
692
691
|
};
|
|
693
|
-
id: string;
|
|
694
692
|
description: string;
|
|
693
|
+
id: string;
|
|
694
|
+
schemaVersion: string;
|
|
695
695
|
version: string;
|
|
696
696
|
parentCapsule: string | null;
|
|
697
697
|
retrievalPolicy: {
|
|
@@ -704,15 +704,15 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
704
704
|
forkRoot: string;
|
|
705
705
|
} | null;
|
|
706
706
|
}, {
|
|
707
|
-
schemaVersion: string;
|
|
708
707
|
includes: {
|
|
709
708
|
procedural: boolean;
|
|
710
709
|
taxonomy: boolean;
|
|
711
710
|
identityAnchors: boolean;
|
|
712
711
|
peerProfiles: boolean;
|
|
713
712
|
};
|
|
714
|
-
id: string;
|
|
715
713
|
description: string;
|
|
714
|
+
id: string;
|
|
715
|
+
schemaVersion: string;
|
|
716
716
|
version: string;
|
|
717
717
|
parentCapsule: string | null;
|
|
718
718
|
retrievalPolicy: {
|
|
@@ -726,26 +726,24 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
726
726
|
} | null | undefined;
|
|
727
727
|
}>;
|
|
728
728
|
}, "strip", z.ZodTypeAny, {
|
|
729
|
-
|
|
729
|
+
format: "openclaw-engram-export";
|
|
730
|
+
createdAt: string;
|
|
731
|
+
pluginVersion: string;
|
|
730
732
|
files: {
|
|
731
733
|
sha256: string;
|
|
732
734
|
path: string;
|
|
733
735
|
bytes: number;
|
|
734
736
|
}[];
|
|
735
|
-
createdAt: string;
|
|
736
|
-
format: "openclaw-engram-export";
|
|
737
|
-
pluginVersion: string;
|
|
738
|
-
includesTranscripts: boolean;
|
|
739
737
|
capsule: {
|
|
740
|
-
schemaVersion: string;
|
|
741
738
|
includes: {
|
|
742
739
|
procedural: boolean;
|
|
743
740
|
taxonomy: boolean;
|
|
744
741
|
identityAnchors: boolean;
|
|
745
742
|
peerProfiles: boolean;
|
|
746
743
|
};
|
|
747
|
-
id: string;
|
|
748
744
|
description: string;
|
|
745
|
+
id: string;
|
|
746
|
+
schemaVersion: string;
|
|
749
747
|
version: string;
|
|
750
748
|
parentCapsule: string | null;
|
|
751
749
|
retrievalPolicy: {
|
|
@@ -758,27 +756,27 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
758
756
|
forkRoot: string;
|
|
759
757
|
} | null;
|
|
760
758
|
};
|
|
761
|
-
}, {
|
|
762
759
|
schemaVersion: 2;
|
|
760
|
+
includesTranscripts: boolean;
|
|
761
|
+
}, {
|
|
762
|
+
format: "openclaw-engram-export";
|
|
763
|
+
createdAt: string;
|
|
764
|
+
pluginVersion: string;
|
|
763
765
|
files: {
|
|
764
766
|
sha256: string;
|
|
765
767
|
path: string;
|
|
766
768
|
bytes: number;
|
|
767
769
|
}[];
|
|
768
|
-
createdAt: string;
|
|
769
|
-
format: "openclaw-engram-export";
|
|
770
|
-
pluginVersion: string;
|
|
771
|
-
includesTranscripts: boolean;
|
|
772
770
|
capsule: {
|
|
773
|
-
schemaVersion: string;
|
|
774
771
|
includes: {
|
|
775
772
|
procedural: boolean;
|
|
776
773
|
taxonomy: boolean;
|
|
777
774
|
identityAnchors: boolean;
|
|
778
775
|
peerProfiles: boolean;
|
|
779
776
|
};
|
|
780
|
-
id: string;
|
|
781
777
|
description: string;
|
|
778
|
+
id: string;
|
|
779
|
+
schemaVersion: string;
|
|
782
780
|
version: string;
|
|
783
781
|
parentCapsule: string | null;
|
|
784
782
|
retrievalPolicy: {
|
|
@@ -791,6 +789,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
791
789
|
forkRoot: string;
|
|
792
790
|
} | null | undefined;
|
|
793
791
|
};
|
|
792
|
+
schemaVersion: 2;
|
|
793
|
+
includesTranscripts: boolean;
|
|
794
794
|
}>;
|
|
795
795
|
records: z.ZodArray<z.ZodObject<{
|
|
796
796
|
path: z.ZodString;
|
|
@@ -804,26 +804,24 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
804
804
|
}>, "many">;
|
|
805
805
|
}, "strip", z.ZodTypeAny, {
|
|
806
806
|
manifest: {
|
|
807
|
-
|
|
807
|
+
format: "openclaw-engram-export";
|
|
808
|
+
createdAt: string;
|
|
809
|
+
pluginVersion: string;
|
|
808
810
|
files: {
|
|
809
811
|
sha256: string;
|
|
810
812
|
path: string;
|
|
811
813
|
bytes: number;
|
|
812
814
|
}[];
|
|
813
|
-
createdAt: string;
|
|
814
|
-
format: "openclaw-engram-export";
|
|
815
|
-
pluginVersion: string;
|
|
816
|
-
includesTranscripts: boolean;
|
|
817
815
|
capsule: {
|
|
818
|
-
schemaVersion: string;
|
|
819
816
|
includes: {
|
|
820
817
|
procedural: boolean;
|
|
821
818
|
taxonomy: boolean;
|
|
822
819
|
identityAnchors: boolean;
|
|
823
820
|
peerProfiles: boolean;
|
|
824
821
|
};
|
|
825
|
-
id: string;
|
|
826
822
|
description: string;
|
|
823
|
+
id: string;
|
|
824
|
+
schemaVersion: string;
|
|
827
825
|
version: string;
|
|
828
826
|
parentCapsule: string | null;
|
|
829
827
|
retrievalPolicy: {
|
|
@@ -836,6 +834,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
836
834
|
forkRoot: string;
|
|
837
835
|
} | null;
|
|
838
836
|
};
|
|
837
|
+
schemaVersion: 2;
|
|
838
|
+
includesTranscripts: boolean;
|
|
839
839
|
};
|
|
840
840
|
records: {
|
|
841
841
|
content: string;
|
|
@@ -843,26 +843,24 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
843
843
|
}[];
|
|
844
844
|
}, {
|
|
845
845
|
manifest: {
|
|
846
|
-
|
|
846
|
+
format: "openclaw-engram-export";
|
|
847
|
+
createdAt: string;
|
|
848
|
+
pluginVersion: string;
|
|
847
849
|
files: {
|
|
848
850
|
sha256: string;
|
|
849
851
|
path: string;
|
|
850
852
|
bytes: number;
|
|
851
853
|
}[];
|
|
852
|
-
createdAt: string;
|
|
853
|
-
format: "openclaw-engram-export";
|
|
854
|
-
pluginVersion: string;
|
|
855
|
-
includesTranscripts: boolean;
|
|
856
854
|
capsule: {
|
|
857
|
-
schemaVersion: string;
|
|
858
855
|
includes: {
|
|
859
856
|
procedural: boolean;
|
|
860
857
|
taxonomy: boolean;
|
|
861
858
|
identityAnchors: boolean;
|
|
862
859
|
peerProfiles: boolean;
|
|
863
860
|
};
|
|
864
|
-
id: string;
|
|
865
861
|
description: string;
|
|
862
|
+
id: string;
|
|
863
|
+
schemaVersion: string;
|
|
866
864
|
version: string;
|
|
867
865
|
parentCapsule: string | null;
|
|
868
866
|
retrievalPolicy: {
|
|
@@ -875,6 +873,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
875
873
|
forkRoot: string;
|
|
876
874
|
} | null | undefined;
|
|
877
875
|
};
|
|
876
|
+
schemaVersion: 2;
|
|
877
|
+
includesTranscripts: boolean;
|
|
878
878
|
};
|
|
879
879
|
records: {
|
|
880
880
|
content: string;
|
package/dist/who-knows-cli.d.ts
CHANGED
package/dist/who-knows.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bA as WHO_KNOWS_AUTHORSHIP_BONUS, bB as WHO_KNOWS_DEFAULT_LIMIT, bC as WHO_KNOWS_MAX_EVIDENCE, bD as WHO_KNOWS_MAX_LIMIT, bE as WHO_KNOWS_MCP_TOOLS, bF as WhoKnowsEntity, bG as WhoKnowsEvidence, bH as WhoKnowsHit, bI as WhoKnowsHttpOutcome, W as WhoKnowsResult, bJ as WhoKnowsStorage, bT as computeWhoKnows, bZ as handleWhoKnowsHttpQuery, c2 as loadWhoKnowsEntities, c9 as tokenizeTopic, ca as validateWhoKnowsInput } from './access-service-
|
|
1
|
+
export { bA as WHO_KNOWS_AUTHORSHIP_BONUS, bB as WHO_KNOWS_DEFAULT_LIMIT, bC as WHO_KNOWS_MAX_EVIDENCE, bD as WHO_KNOWS_MAX_LIMIT, bE as WHO_KNOWS_MCP_TOOLS, bF as WhoKnowsEntity, bG as WhoKnowsEvidence, bH as WhoKnowsHit, bI as WhoKnowsHttpOutcome, W as WhoKnowsResult, bJ as WhoKnowsStorage, bT as computeWhoKnows, bZ as handleWhoKnowsHttpQuery, c2 as loadWhoKnowsEntities, c9 as tokenizeTopic, ca as validateWhoKnowsInput } from './access-service-LbwWl05g.js';
|
|
2
2
|
import './types-eM7QIcX2.js';
|
|
3
3
|
import './orchestrator-Btq9lzAN.js';
|
|
4
4
|
import './recall-state.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "9.69.
|
|
3
|
+
"version": "9.69.4",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -3217,7 +3217,7 @@
|
|
|
3217
3217
|
"core"
|
|
3218
3218
|
],
|
|
3219
3219
|
"peerDependencies": {
|
|
3220
|
-
"@remnic/coding-graph": "^9.69.
|
|
3220
|
+
"@remnic/coding-graph": "^9.69.4"
|
|
3221
3221
|
},
|
|
3222
3222
|
"peerDependenciesMeta": {
|
|
3223
3223
|
"@remnic/coding-graph": {
|
package/src/dedup/index.ts
CHANGED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import test from "node:test";
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
MERGE_CONTENT_LENGTH_FACTOR,
|
|
6
|
+
checkMergedContent,
|
|
7
|
+
} from "./merge-content.js";
|
|
8
|
+
|
|
9
|
+
const INCOMING = "alpha";
|
|
10
|
+
const TARGET = "beta";
|
|
11
|
+
|
|
12
|
+
test("normal merge passes and returns the content unchanged", () => {
|
|
13
|
+
const merged = "alpha and beta combined";
|
|
14
|
+
const result = checkMergedContent({
|
|
15
|
+
mergedContent: merged,
|
|
16
|
+
incomingContent: INCOMING,
|
|
17
|
+
targetContent: TARGET,
|
|
18
|
+
});
|
|
19
|
+
assert.deepEqual(result, { ok: true, content: merged });
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
test("merged content at exactly the limit is accepted", () => {
|
|
23
|
+
const limit = MERGE_CONTENT_LENGTH_FACTOR * (INCOMING.length + TARGET.length);
|
|
24
|
+
const merged = "x".repeat(limit);
|
|
25
|
+
const result = checkMergedContent({
|
|
26
|
+
mergedContent: merged,
|
|
27
|
+
incomingContent: INCOMING,
|
|
28
|
+
targetContent: TARGET,
|
|
29
|
+
});
|
|
30
|
+
assert.deepEqual(result, { ok: true, content: merged });
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
test("merged content one character over the limit is oversized with the reported limit", () => {
|
|
34
|
+
const limit = MERGE_CONTENT_LENGTH_FACTOR * (INCOMING.length + TARGET.length);
|
|
35
|
+
const result = checkMergedContent({
|
|
36
|
+
mergedContent: "x".repeat(limit + 1),
|
|
37
|
+
incomingContent: INCOMING,
|
|
38
|
+
targetContent: TARGET,
|
|
39
|
+
});
|
|
40
|
+
assert.deepEqual(result, { ok: false, reason: "oversized", limit });
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
test("empty, whitespace-only, null, undefined, object, and bigint merged content are all empty refusals", () => {
|
|
44
|
+
const cases: unknown[] = ["", " ", "\t\n", null, undefined, { body: 1 }, 42n];
|
|
45
|
+
for (const mergedContent of cases) {
|
|
46
|
+
const result = checkMergedContent({
|
|
47
|
+
mergedContent,
|
|
48
|
+
incomingContent: INCOMING,
|
|
49
|
+
targetContent: TARGET,
|
|
50
|
+
});
|
|
51
|
+
assert.deepEqual(result, {
|
|
52
|
+
ok: false,
|
|
53
|
+
reason: "empty",
|
|
54
|
+
limit: MERGE_CONTENT_LENGTH_FACTOR * (INCOMING.length + TARGET.length),
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
test("two empty inputs make the limit zero, so any content is oversized", () => {
|
|
60
|
+
const result = checkMergedContent({
|
|
61
|
+
mergedContent: "x",
|
|
62
|
+
incomingContent: "",
|
|
63
|
+
targetContent: "",
|
|
64
|
+
});
|
|
65
|
+
assert.deepEqual(result, { ok: false, reason: "oversized", limit: 0 });
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
test("non-string incomingContent throws RangeError naming the field", () => {
|
|
69
|
+
assert.throws(
|
|
70
|
+
() =>
|
|
71
|
+
checkMergedContent({
|
|
72
|
+
mergedContent: "ok",
|
|
73
|
+
incomingContent: 7 as unknown as string,
|
|
74
|
+
targetContent: TARGET,
|
|
75
|
+
}),
|
|
76
|
+
(error: unknown) =>
|
|
77
|
+
error instanceof RangeError && /incomingContent/.test(error.message),
|
|
78
|
+
);
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
test("non-string targetContent throws RangeError naming the field", () => {
|
|
82
|
+
assert.throws(
|
|
83
|
+
() =>
|
|
84
|
+
checkMergedContent({
|
|
85
|
+
mergedContent: "ok",
|
|
86
|
+
incomingContent: INCOMING,
|
|
87
|
+
targetContent: null as unknown as string,
|
|
88
|
+
}),
|
|
89
|
+
(error: unknown) =>
|
|
90
|
+
error instanceof RangeError && /targetContent/.test(error.message),
|
|
91
|
+
);
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
test("the rejected merged content never appears in an error message or refusal result", () => {
|
|
95
|
+
const sentinel = "UNIQUE-LEAK-SENTINEL";
|
|
96
|
+
const leakyObject = { body: sentinel };
|
|
97
|
+
|
|
98
|
+
const refusal = checkMergedContent({
|
|
99
|
+
mergedContent: leakyObject,
|
|
100
|
+
incomingContent: INCOMING,
|
|
101
|
+
targetContent: TARGET,
|
|
102
|
+
});
|
|
103
|
+
assert.ok(!refusal.ok);
|
|
104
|
+
assert.ok(!JSON.stringify(refusal).includes(sentinel));
|
|
105
|
+
|
|
106
|
+
assert.throws(
|
|
107
|
+
() =>
|
|
108
|
+
checkMergedContent({
|
|
109
|
+
mergedContent: sentinel,
|
|
110
|
+
incomingContent: undefined as unknown as string,
|
|
111
|
+
targetContent: TARGET,
|
|
112
|
+
}),
|
|
113
|
+
(error: unknown) =>
|
|
114
|
+
error instanceof RangeError && !error.message.includes(sentinel),
|
|
115
|
+
);
|
|
116
|
+
});
|