@remnic/core 9.11.0 → 9.12.0
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-cli.js +1 -1
- package/dist/access-operations.d.ts +3 -3
- package/dist/access-schema.d.ts +76 -76
- package/dist/{chunk-7PY55HMI.js → chunk-3VBXP5HS.js} +626 -38
- package/dist/chunk-3VBXP5HS.js.map +1 -0
- package/dist/index.d.ts +556 -404
- package/dist/index.js +31 -1
- package/dist/orchestrator.js +1 -1
- package/dist/schemas.d.ts +54 -54
- package/dist/shared-context/manager.d.ts +8 -8
- package/dist/transfer/types.d.ts +66 -66
- package/package.json +2 -2
- package/src/activity/digest.test.ts +180 -0
- package/src/activity/digest.ts +429 -0
- package/src/activity/index.ts +9 -0
- package/src/activity/store.test.ts +226 -0
- package/src/activity/store.ts +352 -0
- package/src/activity/types.ts +86 -0
- package/src/index.ts +1 -1
- package/dist/chunk-7PY55HMI.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ACTIVITY_DIGEST_FORMAT_VERSION,
|
|
3
|
+
ACTIVITY_DIR_NAME,
|
|
4
|
+
ActivityStore,
|
|
2
5
|
ClaudeCodeMemoryExtensionPublisher,
|
|
3
6
|
CodexMemoryExtensionPublisher,
|
|
4
7
|
DEFAULT_GRACE_PERIOD_DAYS,
|
|
@@ -18,11 +21,17 @@ import {
|
|
|
18
21
|
REMNIC_RECALL_DECISION_RULES,
|
|
19
22
|
REMNIC_SEMANTIC_OVERVIEW,
|
|
20
23
|
WearablesService,
|
|
24
|
+
activityDatabasePath,
|
|
25
|
+
activityDayWindow,
|
|
26
|
+
activityDigestPath,
|
|
27
|
+
applyActivitySchema,
|
|
21
28
|
buildProcedureRecallSection,
|
|
22
29
|
clearStructuralContextProvidersForTest,
|
|
23
30
|
clearWearableConnectors,
|
|
24
31
|
collectLocalSessionSummaries,
|
|
25
32
|
compileRedactionRules,
|
|
33
|
+
composeActivityDigestBody,
|
|
34
|
+
composeActivityDigestMeta,
|
|
26
35
|
createBackend,
|
|
27
36
|
createRelayMissionFixture,
|
|
28
37
|
createSpace,
|
|
@@ -33,6 +42,7 @@ import {
|
|
|
33
42
|
deleteSpace,
|
|
34
43
|
describeStructuralProviderStatus,
|
|
35
44
|
emptyManifest,
|
|
45
|
+
ensureActivityStateDir,
|
|
36
46
|
ensureBuiltInWearableConnectors,
|
|
37
47
|
findContradictions,
|
|
38
48
|
findDuplicates,
|
|
@@ -48,8 +58,10 @@ import {
|
|
|
48
58
|
getTaxonomyDir,
|
|
49
59
|
getTaxonomyFilePath,
|
|
50
60
|
getWearableConnector,
|
|
61
|
+
hashActivityBody,
|
|
51
62
|
hostIdForConnector,
|
|
52
63
|
isReviewPrompt,
|
|
64
|
+
isValidActivityDate,
|
|
53
65
|
listLocalSessionSourceAdapters,
|
|
54
66
|
listReviewItems,
|
|
55
67
|
listSpaces,
|
|
@@ -62,8 +74,10 @@ import {
|
|
|
62
74
|
matchesPatterns,
|
|
63
75
|
mergeSpaces,
|
|
64
76
|
onboard,
|
|
77
|
+
openActivityDatabase,
|
|
65
78
|
packReviewContext,
|
|
66
79
|
packReviewContextStructural,
|
|
80
|
+
parseActivityDigest,
|
|
67
81
|
parseTouchedFiles,
|
|
68
82
|
performReview,
|
|
69
83
|
probeStructuralProviderForDoctor,
|
|
@@ -87,6 +101,7 @@ import {
|
|
|
87
101
|
saveManifest,
|
|
88
102
|
saveTaxonomy,
|
|
89
103
|
scanForBinaries,
|
|
104
|
+
serializeActivityDigest,
|
|
90
105
|
shareSpace,
|
|
91
106
|
structuralProviderActive,
|
|
92
107
|
switchSpace,
|
|
@@ -96,7 +111,7 @@ import {
|
|
|
96
111
|
validateTaxonomy,
|
|
97
112
|
watchForChanges,
|
|
98
113
|
writeManifest
|
|
99
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-3VBXP5HS.js";
|
|
100
115
|
import {
|
|
101
116
|
WEARABLE_SOURCE_PREFIX,
|
|
102
117
|
buildExtractionTurns,
|
|
@@ -1038,7 +1053,10 @@ export {
|
|
|
1038
1053
|
ACTION_CONFIDENCE_RISK_CATEGORIES,
|
|
1039
1054
|
ACTION_CONFIDENCE_RULE_KINDS,
|
|
1040
1055
|
ACTIVE_STATUSES,
|
|
1056
|
+
ACTIVITY_DIGEST_FORMAT_VERSION,
|
|
1057
|
+
ACTIVITY_DIR_NAME,
|
|
1041
1058
|
AccessAuditAdapter,
|
|
1059
|
+
ActivityStore,
|
|
1042
1060
|
BRIEFING_FORMAT_ALLOWED,
|
|
1043
1061
|
BootstrapEngine,
|
|
1044
1062
|
CITATION_UNKNOWN,
|
|
@@ -1162,9 +1180,13 @@ export {
|
|
|
1162
1180
|
WearablesInputError,
|
|
1163
1181
|
WearablesService,
|
|
1164
1182
|
WebSearchProvider,
|
|
1183
|
+
activityDatabasePath,
|
|
1184
|
+
activityDayWindow,
|
|
1185
|
+
activityDigestPath,
|
|
1165
1186
|
appendAuditEntry,
|
|
1166
1187
|
appendInteractionLog,
|
|
1167
1188
|
appendRelayMissionEvent,
|
|
1189
|
+
applyActivitySchema,
|
|
1168
1190
|
applyCorrections,
|
|
1169
1191
|
applyLcmSchema,
|
|
1170
1192
|
applyMemoryWorthFilter,
|
|
@@ -1238,6 +1260,8 @@ export {
|
|
|
1238
1260
|
compileOfflineSyncExcludeGlobs,
|
|
1239
1261
|
compileRedactionPatterns,
|
|
1240
1262
|
compileRedactionRules,
|
|
1263
|
+
composeActivityDigestBody,
|
|
1264
|
+
composeActivityDigestMeta,
|
|
1241
1265
|
composeDayTranscriptBody,
|
|
1242
1266
|
composeDayTranscriptMeta,
|
|
1243
1267
|
composeFusionDayMeta,
|
|
@@ -1288,6 +1312,7 @@ export {
|
|
|
1288
1312
|
emptyManifest,
|
|
1289
1313
|
emptySpeakerRegistry,
|
|
1290
1314
|
emptySyncState,
|
|
1315
|
+
ensureActivityStateDir,
|
|
1291
1316
|
ensureBuiltInWearableConnectors,
|
|
1292
1317
|
ensureLcmStateDir,
|
|
1293
1318
|
ensureSentinel,
|
|
@@ -1339,6 +1364,7 @@ export {
|
|
|
1339
1364
|
hasBroadGraphIntent,
|
|
1340
1365
|
hasCitation,
|
|
1341
1366
|
hasEnabledLiveConnector,
|
|
1367
|
+
hashActivityBody,
|
|
1342
1368
|
hashFusionBody,
|
|
1343
1369
|
hashTranscriptBody,
|
|
1344
1370
|
hostIdForConnector,
|
|
@@ -1370,6 +1396,7 @@ export {
|
|
|
1370
1396
|
isUserBoundaryScope,
|
|
1371
1397
|
isUserContextScope,
|
|
1372
1398
|
isUserModelDimension,
|
|
1399
|
+
isValidActivityDate,
|
|
1373
1400
|
isValidCachedVerdict,
|
|
1374
1401
|
isValidConnectorId,
|
|
1375
1402
|
isValidNamespaceValue,
|
|
@@ -1429,9 +1456,11 @@ export {
|
|
|
1429
1456
|
observeRequestSchema,
|
|
1430
1457
|
offlineSyncStateFromSnapshot,
|
|
1431
1458
|
onboard,
|
|
1459
|
+
openActivityDatabase,
|
|
1432
1460
|
openLcmDatabase,
|
|
1433
1461
|
packReviewContext,
|
|
1434
1462
|
packReviewContextStructural,
|
|
1463
|
+
parseActivityDigest,
|
|
1435
1464
|
parseAllCitations,
|
|
1436
1465
|
parseAnthropicMessageParts,
|
|
1437
1466
|
parseBriefingFocus,
|
|
@@ -1560,6 +1589,7 @@ export {
|
|
|
1560
1589
|
saveTokenStore,
|
|
1561
1590
|
scanForBinaries,
|
|
1562
1591
|
sealedWriteToLegacyArgs,
|
|
1592
|
+
serializeActivityDigest,
|
|
1563
1593
|
serializeDayTranscript,
|
|
1564
1594
|
serializeEntityFile,
|
|
1565
1595
|
serializeFusionDay,
|
package/dist/orchestrator.js
CHANGED
package/dist/schemas.d.ts
CHANGED
|
@@ -7,15 +7,15 @@ declare const MemoryActionEligibilityContextSchema: z.ZodObject<{
|
|
|
7
7
|
importance: z.ZodNumber;
|
|
8
8
|
source: z.ZodEnum<["extraction", "consolidation", "replay", "manual", "unknown"]>;
|
|
9
9
|
}, "strict", z.ZodTypeAny, {
|
|
10
|
-
source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
|
|
11
10
|
confidence: number;
|
|
12
|
-
|
|
11
|
+
source: "unknown" | "manual" | "extraction" | "consolidation" | "replay";
|
|
13
12
|
importance: number;
|
|
13
|
+
lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
|
|
14
14
|
}, {
|
|
15
|
-
source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
|
|
16
15
|
confidence: number;
|
|
17
|
-
|
|
16
|
+
source: "unknown" | "manual" | "extraction" | "consolidation" | "replay";
|
|
18
17
|
importance: number;
|
|
18
|
+
lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
|
|
19
19
|
}>;
|
|
20
20
|
declare function parseMemoryActionType(value: unknown): z.infer<typeof MemoryActionTypeSchema>;
|
|
21
21
|
declare function parseMemoryActionEligibilityContext(value: unknown): z.infer<typeof MemoryActionEligibilityContextSchema>;
|
|
@@ -152,10 +152,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
152
152
|
eventTime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
153
153
|
event_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
154
154
|
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
tags: string[];
|
|
156
|
-
content: string;
|
|
157
155
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
156
|
+
content: string;
|
|
158
157
|
confidence: number;
|
|
158
|
+
tags: string[];
|
|
159
159
|
entityRef?: string | null | undefined;
|
|
160
160
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
161
161
|
quote?: string | null | undefined;
|
|
@@ -184,10 +184,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
184
184
|
eventTime?: string | null | undefined;
|
|
185
185
|
event_time?: string | null | undefined;
|
|
186
186
|
}, {
|
|
187
|
-
tags: string[];
|
|
188
|
-
content: string;
|
|
189
187
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
188
|
+
content: string;
|
|
190
189
|
confidence: number;
|
|
190
|
+
tags: string[];
|
|
191
191
|
entityRef?: string | null | undefined;
|
|
192
192
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
193
193
|
quote?: string | null | undefined;
|
|
@@ -216,10 +216,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
216
216
|
eventTime?: string | null | undefined;
|
|
217
217
|
event_time?: string | null | undefined;
|
|
218
218
|
}>, {
|
|
219
|
-
tags: string[];
|
|
220
|
-
content: string;
|
|
221
219
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
220
|
+
content: string;
|
|
222
221
|
confidence: number;
|
|
222
|
+
tags: string[];
|
|
223
223
|
entityRef?: string | null | undefined;
|
|
224
224
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
225
225
|
quote?: string | null | undefined;
|
|
@@ -248,10 +248,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
248
248
|
eventTime?: string | null | undefined;
|
|
249
249
|
event_time?: string | null | undefined;
|
|
250
250
|
}, {
|
|
251
|
-
tags: string[];
|
|
252
|
-
content: string;
|
|
253
251
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
252
|
+
content: string;
|
|
254
253
|
confidence: number;
|
|
254
|
+
tags: string[];
|
|
255
255
|
entityRef?: string | null | undefined;
|
|
256
256
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
257
257
|
quote?: string | null | undefined;
|
|
@@ -365,14 +365,14 @@ declare const ExtractedRelationshipSchema: z.ZodObject<{
|
|
|
365
365
|
label: z.ZodString;
|
|
366
366
|
promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
367
367
|
}, "strip", z.ZodTypeAny, {
|
|
368
|
+
label: string;
|
|
368
369
|
source: string;
|
|
369
370
|
target: string;
|
|
370
|
-
label: string;
|
|
371
371
|
promptedByQuestion?: string | null | undefined;
|
|
372
372
|
}, {
|
|
373
|
+
label: string;
|
|
373
374
|
source: string;
|
|
374
375
|
target: string;
|
|
375
|
-
label: string;
|
|
376
376
|
promptedByQuestion?: string | null | undefined;
|
|
377
377
|
}>;
|
|
378
378
|
declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
@@ -475,10 +475,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
475
475
|
eventTime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
476
476
|
event_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
477
477
|
}, "strip", z.ZodTypeAny, {
|
|
478
|
-
tags: string[];
|
|
479
|
-
content: string;
|
|
480
478
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
479
|
+
content: string;
|
|
481
480
|
confidence: number;
|
|
481
|
+
tags: string[];
|
|
482
482
|
entityRef?: string | null | undefined;
|
|
483
483
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
484
484
|
quote?: string | null | undefined;
|
|
@@ -507,10 +507,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
507
507
|
eventTime?: string | null | undefined;
|
|
508
508
|
event_time?: string | null | undefined;
|
|
509
509
|
}, {
|
|
510
|
-
tags: string[];
|
|
511
|
-
content: string;
|
|
512
510
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
511
|
+
content: string;
|
|
513
512
|
confidence: number;
|
|
513
|
+
tags: string[];
|
|
514
514
|
entityRef?: string | null | undefined;
|
|
515
515
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
516
516
|
quote?: string | null | undefined;
|
|
@@ -539,10 +539,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
539
539
|
eventTime?: string | null | undefined;
|
|
540
540
|
event_time?: string | null | undefined;
|
|
541
541
|
}>, {
|
|
542
|
-
tags: string[];
|
|
543
|
-
content: string;
|
|
544
542
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
543
|
+
content: string;
|
|
545
544
|
confidence: number;
|
|
545
|
+
tags: string[];
|
|
546
546
|
entityRef?: string | null | undefined;
|
|
547
547
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
548
548
|
quote?: string | null | undefined;
|
|
@@ -571,10 +571,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
571
571
|
eventTime?: string | null | undefined;
|
|
572
572
|
event_time?: string | null | undefined;
|
|
573
573
|
}, {
|
|
574
|
-
tags: string[];
|
|
575
|
-
content: string;
|
|
576
574
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
575
|
+
content: string;
|
|
577
576
|
confidence: number;
|
|
577
|
+
tags: string[];
|
|
578
578
|
entityRef?: string | null | undefined;
|
|
579
579
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
580
580
|
quote?: string | null | undefined;
|
|
@@ -649,22 +649,22 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
649
649
|
label: z.ZodString;
|
|
650
650
|
promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
651
651
|
}, "strip", z.ZodTypeAny, {
|
|
652
|
+
label: string;
|
|
652
653
|
source: string;
|
|
653
654
|
target: string;
|
|
654
|
-
label: string;
|
|
655
655
|
promptedByQuestion?: string | null | undefined;
|
|
656
656
|
}, {
|
|
657
|
+
label: string;
|
|
657
658
|
source: string;
|
|
658
659
|
target: string;
|
|
659
|
-
label: string;
|
|
660
660
|
promptedByQuestion?: string | null | undefined;
|
|
661
661
|
}>, "many">>>;
|
|
662
662
|
}, "strip", z.ZodTypeAny, {
|
|
663
663
|
facts: {
|
|
664
|
-
tags: string[];
|
|
665
|
-
content: string;
|
|
666
664
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
665
|
+
content: string;
|
|
667
666
|
confidence: number;
|
|
667
|
+
tags: string[];
|
|
668
668
|
entityRef?: string | null | undefined;
|
|
669
669
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
670
670
|
quote?: string | null | undefined;
|
|
@@ -706,17 +706,17 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
706
706
|
}[];
|
|
707
707
|
profileUpdates: string[];
|
|
708
708
|
relationships?: {
|
|
709
|
+
label: string;
|
|
709
710
|
source: string;
|
|
710
711
|
target: string;
|
|
711
|
-
label: string;
|
|
712
712
|
promptedByQuestion?: string | null | undefined;
|
|
713
713
|
}[] | null | undefined;
|
|
714
714
|
}, {
|
|
715
715
|
facts: {
|
|
716
|
-
tags: string[];
|
|
717
|
-
content: string;
|
|
718
716
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
717
|
+
content: string;
|
|
719
718
|
confidence: number;
|
|
719
|
+
tags: string[];
|
|
720
720
|
entityRef?: string | null | undefined;
|
|
721
721
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
722
722
|
quote?: string | null | undefined;
|
|
@@ -758,9 +758,9 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
758
758
|
}[];
|
|
759
759
|
profileUpdates: string[];
|
|
760
760
|
relationships?: {
|
|
761
|
+
label: string;
|
|
761
762
|
source: string;
|
|
762
763
|
target: string;
|
|
763
|
-
label: string;
|
|
764
764
|
promptedByQuestion?: string | null | undefined;
|
|
765
765
|
}[] | null | undefined;
|
|
766
766
|
}>;
|
|
@@ -864,10 +864,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
864
864
|
eventTime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
865
865
|
event_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
866
866
|
}, "strip", z.ZodTypeAny, {
|
|
867
|
-
tags: string[];
|
|
868
|
-
content: string;
|
|
869
867
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
868
|
+
content: string;
|
|
870
869
|
confidence: number;
|
|
870
|
+
tags: string[];
|
|
871
871
|
entityRef?: string | null | undefined;
|
|
872
872
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
873
873
|
quote?: string | null | undefined;
|
|
@@ -896,10 +896,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
896
896
|
eventTime?: string | null | undefined;
|
|
897
897
|
event_time?: string | null | undefined;
|
|
898
898
|
}, {
|
|
899
|
-
tags: string[];
|
|
900
|
-
content: string;
|
|
901
899
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
900
|
+
content: string;
|
|
902
901
|
confidence: number;
|
|
902
|
+
tags: string[];
|
|
903
903
|
entityRef?: string | null | undefined;
|
|
904
904
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
905
905
|
quote?: string | null | undefined;
|
|
@@ -928,10 +928,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
928
928
|
eventTime?: string | null | undefined;
|
|
929
929
|
event_time?: string | null | undefined;
|
|
930
930
|
}>, {
|
|
931
|
-
tags: string[];
|
|
932
|
-
content: string;
|
|
933
931
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
932
|
+
content: string;
|
|
934
933
|
confidence: number;
|
|
934
|
+
tags: string[];
|
|
935
935
|
entityRef?: string | null | undefined;
|
|
936
936
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
937
937
|
quote?: string | null | undefined;
|
|
@@ -960,10 +960,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
960
960
|
eventTime?: string | null | undefined;
|
|
961
961
|
event_time?: string | null | undefined;
|
|
962
962
|
}, {
|
|
963
|
-
tags: string[];
|
|
964
|
-
content: string;
|
|
965
963
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
964
|
+
content: string;
|
|
966
965
|
confidence: number;
|
|
966
|
+
tags: string[];
|
|
967
967
|
entityRef?: string | null | undefined;
|
|
968
968
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
969
969
|
quote?: string | null | undefined;
|
|
@@ -1052,14 +1052,14 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
1052
1052
|
label: z.ZodString;
|
|
1053
1053
|
promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1054
1054
|
}, "strip", z.ZodTypeAny, {
|
|
1055
|
+
label: string;
|
|
1055
1056
|
source: string;
|
|
1056
1057
|
target: string;
|
|
1057
|
-
label: string;
|
|
1058
1058
|
promptedByQuestion?: string | null | undefined;
|
|
1059
1059
|
}, {
|
|
1060
|
+
label: string;
|
|
1060
1061
|
source: string;
|
|
1061
1062
|
target: string;
|
|
1062
|
-
label: string;
|
|
1063
1063
|
promptedByQuestion?: string | null | undefined;
|
|
1064
1064
|
}>, "many">>>;
|
|
1065
1065
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1069,10 +1069,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
1069
1069
|
context: string;
|
|
1070
1070
|
}[];
|
|
1071
1071
|
facts: {
|
|
1072
|
-
tags: string[];
|
|
1073
|
-
content: string;
|
|
1074
1072
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
1073
|
+
content: string;
|
|
1075
1074
|
confidence: number;
|
|
1075
|
+
tags: string[];
|
|
1076
1076
|
entityRef?: string | null | undefined;
|
|
1077
1077
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
1078
1078
|
quote?: string | null | undefined;
|
|
@@ -1114,9 +1114,9 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
1114
1114
|
}[];
|
|
1115
1115
|
profileUpdates: string[];
|
|
1116
1116
|
relationships?: {
|
|
1117
|
+
label: string;
|
|
1117
1118
|
source: string;
|
|
1118
1119
|
target: string;
|
|
1119
|
-
label: string;
|
|
1120
1120
|
promptedByQuestion?: string | null | undefined;
|
|
1121
1121
|
}[] | null | undefined;
|
|
1122
1122
|
identityReflection?: string | null | undefined;
|
|
@@ -1127,10 +1127,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
1127
1127
|
context: string;
|
|
1128
1128
|
}[];
|
|
1129
1129
|
facts: {
|
|
1130
|
-
tags: string[];
|
|
1131
|
-
content: string;
|
|
1132
1130
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
1131
|
+
content: string;
|
|
1133
1132
|
confidence: number;
|
|
1133
|
+
tags: string[];
|
|
1134
1134
|
entityRef?: string | null | undefined;
|
|
1135
1135
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
1136
1136
|
quote?: string | null | undefined;
|
|
@@ -1172,9 +1172,9 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
1172
1172
|
}[];
|
|
1173
1173
|
profileUpdates: string[];
|
|
1174
1174
|
relationships?: {
|
|
1175
|
+
label: string;
|
|
1175
1176
|
source: string;
|
|
1176
1177
|
target: string;
|
|
1177
|
-
label: string;
|
|
1178
1178
|
promptedByQuestion?: string | null | undefined;
|
|
1179
1179
|
}[] | null | undefined;
|
|
1180
1180
|
identityReflection?: string | null | undefined;
|
|
@@ -1342,13 +1342,13 @@ declare const ContradictionVerificationSchema: z.ZodObject<{
|
|
|
1342
1342
|
reasoning: z.ZodString;
|
|
1343
1343
|
whichIsNewer: z.ZodEnum<["first", "second", "unclear"]>;
|
|
1344
1344
|
}, "strip", z.ZodTypeAny, {
|
|
1345
|
-
reasoning: string;
|
|
1346
1345
|
confidence: number;
|
|
1346
|
+
reasoning: string;
|
|
1347
1347
|
isContradiction: boolean;
|
|
1348
1348
|
whichIsNewer: "second" | "first" | "unclear";
|
|
1349
1349
|
}, {
|
|
1350
|
-
reasoning: string;
|
|
1351
1350
|
confidence: number;
|
|
1351
|
+
reasoning: string;
|
|
1352
1352
|
isContradiction: boolean;
|
|
1353
1353
|
whichIsNewer: "second" | "first" | "unclear";
|
|
1354
1354
|
}>;
|
|
@@ -1443,8 +1443,8 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
|
|
|
1443
1443
|
reason: z.ZodString;
|
|
1444
1444
|
appliedAt: z.ZodString;
|
|
1445
1445
|
}, "strip", z.ZodTypeAny, {
|
|
1446
|
-
confidence: number;
|
|
1447
1446
|
reason: string;
|
|
1447
|
+
confidence: number;
|
|
1448
1448
|
parameter: string;
|
|
1449
1449
|
previousValue: number;
|
|
1450
1450
|
nextValue: number;
|
|
@@ -1452,8 +1452,8 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
|
|
|
1452
1452
|
evidenceCount: number;
|
|
1453
1453
|
appliedAt: string;
|
|
1454
1454
|
}, {
|
|
1455
|
-
confidence: number;
|
|
1456
1455
|
reason: string;
|
|
1456
|
+
confidence: number;
|
|
1457
1457
|
parameter: string;
|
|
1458
1458
|
previousValue: number;
|
|
1459
1459
|
nextValue: number;
|
|
@@ -1477,8 +1477,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1477
1477
|
reason: z.ZodString;
|
|
1478
1478
|
appliedAt: z.ZodString;
|
|
1479
1479
|
}, "strip", z.ZodTypeAny, {
|
|
1480
|
-
confidence: number;
|
|
1481
1480
|
reason: string;
|
|
1481
|
+
confidence: number;
|
|
1482
1482
|
parameter: string;
|
|
1483
1483
|
previousValue: number;
|
|
1484
1484
|
nextValue: number;
|
|
@@ -1486,8 +1486,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1486
1486
|
evidenceCount: number;
|
|
1487
1487
|
appliedAt: string;
|
|
1488
1488
|
}, {
|
|
1489
|
-
confidence: number;
|
|
1490
1489
|
reason: string;
|
|
1490
|
+
confidence: number;
|
|
1491
1491
|
parameter: string;
|
|
1492
1492
|
previousValue: number;
|
|
1493
1493
|
nextValue: number;
|
|
@@ -1504,8 +1504,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1504
1504
|
maxDeltaPerCycle: number;
|
|
1505
1505
|
protectedParams: string[];
|
|
1506
1506
|
adjustments: {
|
|
1507
|
-
confidence: number;
|
|
1508
1507
|
reason: string;
|
|
1508
|
+
confidence: number;
|
|
1509
1509
|
parameter: string;
|
|
1510
1510
|
previousValue: number;
|
|
1511
1511
|
nextValue: number;
|
|
@@ -1521,8 +1521,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1521
1521
|
maxDeltaPerCycle: number;
|
|
1522
1522
|
protectedParams: string[];
|
|
1523
1523
|
adjustments: {
|
|
1524
|
-
confidence: number;
|
|
1525
1524
|
reason: string;
|
|
1525
|
+
confidence: number;
|
|
1526
1526
|
parameter: string;
|
|
1527
1527
|
previousValue: number;
|
|
1528
1528
|
nextValue: number;
|
|
@@ -19,31 +19,31 @@ declare const SharedFeedbackEntrySchema: z.ZodObject<{
|
|
|
19
19
|
evidenceWindowEnd: z.ZodOptional<z.ZodString>;
|
|
20
20
|
refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
reason: string;
|
|
22
23
|
decision: "rejected" | "approved" | "approved_with_feedback";
|
|
23
24
|
date: string;
|
|
24
|
-
reason: string;
|
|
25
25
|
agent: string;
|
|
26
|
-
|
|
27
|
-
tags?: string[] | undefined;
|
|
26
|
+
severity?: "low" | "medium" | "high" | undefined;
|
|
28
27
|
confidence?: number | undefined;
|
|
28
|
+
tags?: string[] | undefined;
|
|
29
|
+
workflow?: string | undefined;
|
|
29
30
|
outcome?: string | undefined;
|
|
30
31
|
refs?: string[] | undefined;
|
|
31
32
|
learning?: string | undefined;
|
|
32
|
-
severity?: "high" | "low" | "medium" | undefined;
|
|
33
33
|
evidenceWindowStart?: string | undefined;
|
|
34
34
|
evidenceWindowEnd?: string | undefined;
|
|
35
35
|
}, {
|
|
36
|
+
reason: string;
|
|
36
37
|
decision: "rejected" | "approved" | "approved_with_feedback";
|
|
37
38
|
date: string;
|
|
38
|
-
reason: string;
|
|
39
39
|
agent: string;
|
|
40
|
-
|
|
41
|
-
tags?: string[] | undefined;
|
|
40
|
+
severity?: "low" | "medium" | "high" | undefined;
|
|
42
41
|
confidence?: number | undefined;
|
|
42
|
+
tags?: string[] | undefined;
|
|
43
|
+
workflow?: string | undefined;
|
|
43
44
|
outcome?: string | undefined;
|
|
44
45
|
refs?: string[] | undefined;
|
|
45
46
|
learning?: string | undefined;
|
|
46
|
-
severity?: "high" | "low" | "medium" | undefined;
|
|
47
47
|
evidenceWindowStart?: string | undefined;
|
|
48
48
|
evidenceWindowEnd?: string | undefined;
|
|
49
49
|
}>;
|