@remnic/core 1.1.0 → 1.1.2
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-audit.d.ts +56 -0
- package/dist/access-audit.js +9 -0
- package/dist/access-cli.js +70 -53
- package/dist/access-cli.js.map +1 -1
- package/dist/access-http.d.ts +16 -9
- package/dist/access-http.js +26 -18
- package/dist/access-mcp.d.ts +16 -9
- package/dist/access-mcp.js +30 -8
- package/dist/access-schema.d.ts +124 -33
- package/dist/access-schema.js +5 -1
- package/dist/{access-service-HmO1Trrx.d.ts → access-service-Br8ZydTK.d.ts} +158 -63
- package/dist/access-service.d.ts +13 -6
- package/dist/access-service.js +23 -14
- package/dist/bootstrap.d.ts +6 -3
- package/dist/briefing.d.ts +1 -0
- package/dist/briefing.js +8 -6
- package/dist/buffer-surprise-report.d.ts +70 -0
- package/dist/buffer-surprise-report.js +7 -0
- package/dist/buffer-surprise-report.js.map +1 -0
- package/dist/buffer-surprise.d.ts +98 -0
- package/dist/buffer-surprise.js +11 -0
- package/dist/buffer-surprise.js.map +1 -0
- package/dist/buffer.d.ts +100 -2
- package/dist/buffer.js +1 -1
- package/dist/calibration.js +6 -6
- package/dist/causal-behavior.js +4 -4
- package/dist/causal-chain.js +2 -2
- package/dist/causal-consolidation.js +19 -18
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-retrieval.js +4 -4
- package/dist/causal-trajectory.js +1 -1
- package/dist/{chunk-QNJMBKFK.js → chunk-2LGMW3DJ.js} +3 -2
- package/dist/chunk-2LGMW3DJ.js.map +1 -0
- package/dist/{chunk-QDYXG4CS.js → chunk-3FPTCC3Z.js} +4 -3
- package/dist/chunk-3FPTCC3Z.js.map +1 -0
- package/dist/chunk-3GPTTA4J.js +57 -0
- package/dist/chunk-3GPTTA4J.js.map +1 -0
- package/dist/{chunk-ITRLGI2T.js → chunk-3OGMS3PE.js} +2 -2
- package/dist/{chunk-DEPL3635.js → chunk-3YGHKTBF.js} +1446 -196
- package/dist/chunk-3YGHKTBF.js.map +1 -0
- package/dist/{chunk-BLKTA7MM.js → chunk-4HQS2HPX.js} +54 -21
- package/dist/chunk-4HQS2HPX.js.map +1 -0
- package/dist/chunk-54V4BZWP.js +139 -0
- package/dist/chunk-54V4BZWP.js.map +1 -0
- package/dist/chunk-5JRF2PZA.js +67 -0
- package/dist/chunk-5JRF2PZA.js.map +1 -0
- package/dist/chunk-64NJRYU2.js +332 -0
- package/dist/chunk-64NJRYU2.js.map +1 -0
- package/dist/{chunk-OIT5QGG4.js → chunk-6AUUAZEX.js} +72 -2
- package/dist/chunk-6AUUAZEX.js.map +1 -0
- package/dist/{chunk-3QHL5ABG.js → chunk-6YJHX2DL.js} +191 -10
- package/dist/chunk-6YJHX2DL.js.map +1 -0
- package/dist/chunk-AJU4PJGY.js +126 -0
- package/dist/chunk-AJU4PJGY.js.map +1 -0
- package/dist/chunk-ASAITVLA.js +64 -0
- package/dist/chunk-ASAITVLA.js.map +1 -0
- package/dist/{chunk-44ICJRF3.js → chunk-AYXIPSZO.js} +5 -5
- package/dist/{chunk-MBJHSA7F.js → chunk-BECYBZLX.js} +265 -20
- package/dist/chunk-BECYBZLX.js.map +1 -0
- package/dist/chunk-C4SQJZAF.js +486 -0
- package/dist/chunk-C4SQJZAF.js.map +1 -0
- package/dist/{chunk-6UJ47TVX.js → chunk-CUPFXL3J.js} +2 -2
- package/dist/chunk-DF3RVK3X.js +119 -0
- package/dist/chunk-DF3RVK3X.js.map +1 -0
- package/dist/{chunk-N42IWANG.js → chunk-DG6YMRDC.js} +3 -3
- package/dist/chunk-DGVM5SFL.js +69 -0
- package/dist/chunk-DGVM5SFL.js.map +1 -0
- package/dist/{chunk-3SV6CQHO.js → chunk-DIXB44VE.js} +102 -66
- package/dist/chunk-DIXB44VE.js.map +1 -0
- package/dist/chunk-EIR5VLIH.js +90 -0
- package/dist/chunk-EIR5VLIH.js.map +1 -0
- package/dist/{chunk-GV6NLQ4X.js → chunk-F5VP6YCB.js} +374 -16
- package/dist/chunk-F5VP6YCB.js.map +1 -0
- package/dist/{chunk-6ZH4TU6I.js → chunk-FAAFWE4G.js} +2 -1
- package/dist/chunk-FAAFWE4G.js.map +1 -0
- package/dist/{chunk-7WQ6SLIE.js → chunk-FVA6TGI3.js} +2 -2
- package/dist/{chunk-PAORGQRI.js → chunk-GA5P7RST.js} +37 -23
- package/dist/chunk-GA5P7RST.js.map +1 -0
- package/dist/chunk-GDFS42HT.js +206 -0
- package/dist/chunk-GDFS42HT.js.map +1 -0
- package/dist/chunk-IISBCCWR.js +52 -0
- package/dist/chunk-IISBCCWR.js.map +1 -0
- package/dist/chunk-JBMSGZEQ.js +441 -0
- package/dist/chunk-JBMSGZEQ.js.map +1 -0
- package/dist/{chunk-J4IYOZZ5.js → chunk-JXS5PDQ7.js} +3 -1
- package/dist/chunk-JXS5PDQ7.js.map +1 -0
- package/dist/chunk-KVBLZUKV.js +173 -0
- package/dist/chunk-KVBLZUKV.js.map +1 -0
- package/dist/{chunk-4LACOVZX.js → chunk-L7IXWRYE.js} +10 -5
- package/dist/chunk-L7IXWRYE.js.map +1 -0
- package/dist/chunk-LBLXEFWK.js +51 -0
- package/dist/chunk-LBLXEFWK.js.map +1 -0
- package/dist/{chunk-WBSAYXVI.js → chunk-LOIMBRDE.js} +201 -45
- package/dist/chunk-LOIMBRDE.js.map +1 -0
- package/dist/{chunk-3WHVNEN7.js → chunk-LTCGGW2D.js} +1 -1
- package/dist/chunk-LTCGGW2D.js.map +1 -0
- package/dist/{chunk-ZVBB3T7V.js → chunk-NBVAS5MT.js} +25 -23
- package/dist/chunk-NBVAS5MT.js.map +1 -0
- package/dist/{chunk-UEYA6UC7.js → chunk-NZLQTHS5.js} +25 -2
- package/dist/chunk-NZLQTHS5.js.map +1 -0
- package/dist/{chunk-NQEVYWX6.js → chunk-OC5OXUQ4.js} +211 -7
- package/dist/chunk-OC5OXUQ4.js.map +1 -0
- package/dist/{chunk-LK6SGL53.js → chunk-OR64ZGRZ.js} +3 -2
- package/dist/chunk-OR64ZGRZ.js.map +1 -0
- package/dist/{chunk-SYUK3VLY.js → chunk-PVICZTKG.js} +117 -5
- package/dist/chunk-PVICZTKG.js.map +1 -0
- package/dist/chunk-PVPWZSSI.js +37 -0
- package/dist/chunk-PVPWZSSI.js.map +1 -0
- package/dist/{chunk-JL2PU6AI.js → chunk-R2XRID2N.js} +2 -2
- package/dist/{chunk-4NRAJUDS.js → chunk-RBBWYEFJ.js} +1 -1
- package/dist/chunk-RFYAYKTD.js +146 -0
- package/dist/chunk-RFYAYKTD.js.map +1 -0
- package/dist/chunk-SOBJ6NEY.js +18 -0
- package/dist/chunk-SOBJ6NEY.js.map +1 -0
- package/dist/{chunk-JIU55F3X.js → chunk-SPI27QT6.js} +2 -2
- package/dist/{chunk-MVTHXUBX.js → chunk-STGWEHYR.js} +479 -20
- package/dist/chunk-STGWEHYR.js.map +1 -0
- package/dist/{chunk-6LX5ORAS.js → chunk-TMYO7B5P.js} +4 -4
- package/dist/chunk-TVVEYCNW.js +65 -0
- package/dist/chunk-TVVEYCNW.js.map +1 -0
- package/dist/chunk-ULYOGL6R.js +322 -0
- package/dist/chunk-ULYOGL6R.js.map +1 -0
- package/dist/{chunk-37UIFYWO.js → chunk-UWB5LMWY.js} +108 -9
- package/dist/chunk-UWB5LMWY.js.map +1 -0
- package/dist/{chunk-47UU5PU2.js → chunk-VBVG2M5G.js} +18 -3
- package/dist/chunk-VBVG2M5G.js.map +1 -0
- package/dist/{chunk-7ECD5ATE.js → chunk-VDX363PS.js} +2 -2
- package/dist/{chunk-O5ETUNBT.js → chunk-VTU2B4VF.js} +7 -3
- package/dist/chunk-VTU2B4VF.js.map +1 -0
- package/dist/{chunk-MTLYEMJB.js → chunk-WCLICCGB.js} +18 -3
- package/dist/chunk-WCLICCGB.js.map +1 -0
- package/dist/chunk-X6GF3FX2.js +26 -0
- package/dist/chunk-X6GF3FX2.js.map +1 -0
- package/dist/{chunk-3QFQGRHO.js → chunk-XMHBH5H6.js} +4 -4
- package/dist/{chunk-DHHP2Z4X.js → chunk-XXVWLXSG.js} +2 -2
- package/dist/{chunk-XZ2TIKGC.js → chunk-Y7R2XJ5Q.js} +25 -9
- package/dist/chunk-Y7R2XJ5Q.js.map +1 -0
- package/dist/{chunk-ALXMCZEU.js → chunk-Z2E7VW55.js} +6 -3
- package/dist/chunk-Z2E7VW55.js.map +1 -0
- package/dist/chunk-ZAIM4TUE.js +488 -0
- package/dist/chunk-ZAIM4TUE.js.map +1 -0
- package/dist/chunk-ZZTOURJI.js +91 -0
- package/dist/chunk-ZZTOURJI.js.map +1 -0
- package/dist/{cli-BneVIEvh.d.ts → cli-BkeRaYfk.d.ts} +2 -2
- package/dist/cli.d.ts +13 -6
- package/dist/cli.js +42 -31
- package/dist/config.js +2 -2
- package/dist/consolidation-operator.d.ts +41 -0
- package/dist/consolidation-operator.js +11 -0
- package/dist/consolidation-operator.js.map +1 -0
- package/dist/consolidation-provenance-check.d.ts +68 -0
- package/dist/consolidation-provenance-check.js +9 -0
- package/dist/consolidation-provenance-check.js.map +1 -0
- package/dist/consolidation-undo.d.ts +123 -0
- package/dist/consolidation-undo.js +426 -0
- package/dist/consolidation-undo.js.map +1 -0
- package/dist/{contradiction-scan-GR33PONM.js → contradiction-scan-E3GJTI4F.js} +43 -7
- package/dist/contradiction-scan-E3GJTI4F.js.map +1 -0
- package/dist/cross-namespace-budget.d.ts +133 -0
- package/dist/cross-namespace-budget.js +9 -0
- package/dist/cross-namespace-budget.js.map +1 -0
- package/dist/direct-answer-wiring.js +5 -70
- package/dist/direct-answer-wiring.js.map +1 -1
- package/dist/embedding-fallback.js +2 -1
- package/dist/{engine-5TIQBYZR.js → engine-72LSIWQP.js} +8 -7
- package/dist/engine-72LSIWQP.js.map +1 -0
- package/dist/entity-retrieval.d.ts +1 -0
- package/dist/entity-retrieval.js +7 -6
- package/dist/explicit-capture.d.ts +6 -3
- package/dist/explicit-capture.js +2 -2
- package/dist/extraction-judge-telemetry.d.ts +113 -0
- package/dist/extraction-judge-telemetry.js +14 -0
- package/dist/extraction-judge-telemetry.js.map +1 -0
- package/dist/extraction-judge-training.d.ts +85 -0
- package/dist/extraction-judge-training.js +16 -0
- package/dist/extraction-judge-training.js.map +1 -0
- package/dist/extraction-judge.d.ts +124 -2
- package/dist/extraction-judge.js +11 -1
- package/dist/extraction.js +10 -9
- package/dist/fallback-llm.js +3 -3
- package/dist/graph-recall.d.ts +100 -0
- package/dist/graph-recall.js +8 -0
- package/dist/graph-recall.js.map +1 -0
- package/dist/graph-retrieval.d.ts +271 -0
- package/dist/graph-retrieval.js +21 -0
- package/dist/graph-retrieval.js.map +1 -0
- package/dist/importance.js +1 -1
- package/dist/index.d.ts +585 -20
- package/dist/index.js +542 -344
- package/dist/index.js.map +1 -1
- package/dist/local-llm.js +2 -2
- package/dist/memory-worth-bench.d.ts +51 -0
- package/dist/memory-worth-bench.js +131 -0
- package/dist/memory-worth-bench.js.map +1 -0
- package/dist/memory-worth-filter.d.ts +128 -0
- package/dist/memory-worth-filter.js +10 -0
- package/dist/memory-worth-filter.js.map +1 -0
- package/dist/memory-worth-outcomes.d.ts +118 -0
- package/dist/memory-worth-outcomes.js +9 -0
- package/dist/memory-worth-outcomes.js.map +1 -0
- package/dist/memory-worth.d.ts +102 -0
- package/dist/memory-worth.js +7 -0
- package/dist/memory-worth.js.map +1 -0
- package/dist/operator-toolkit.d.ts +40 -1
- package/dist/operator-toolkit.js +25 -16
- package/dist/{orchestrator-DRYA6_lW.d.ts → orchestrator-CmJ-NTdJ.d.ts} +233 -8
- package/dist/orchestrator.d.ts +6 -3
- package/dist/orchestrator.js +54 -44
- package/dist/page-versioning.d.ts +12 -1
- package/dist/page-versioning.js +5 -3
- package/dist/{port-C1GZFv8h.d.ts → port-BADbLZU5.d.ts} +2 -2
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd.d.ts +5 -3
- package/dist/qmd.js +3 -3
- package/dist/reasoning-trace-recall.d.ts +90 -0
- package/dist/reasoning-trace-recall.js +13 -0
- package/dist/reasoning-trace-recall.js.map +1 -0
- package/dist/reasoning-trace-types.d.ts +54 -0
- package/dist/reasoning-trace-types.js +17 -0
- package/dist/reasoning-trace-types.js.map +1 -0
- package/dist/recall-audit-anomaly.d.ts +112 -0
- package/dist/recall-audit-anomaly.js +11 -0
- package/dist/recall-audit-anomaly.js.map +1 -0
- package/dist/recall-audit.js +5 -44
- package/dist/recall-audit.js.map +1 -1
- package/dist/recall-explain-renderer.d.ts +49 -0
- package/dist/recall-explain-renderer.js +18 -0
- package/dist/recall-explain-renderer.js.map +1 -0
- package/dist/recall-state.d.ts +12 -1
- package/dist/recall-state.js +1 -1
- package/dist/recall-xray-cli.d.ts +40 -0
- package/dist/recall-xray-cli.js +11 -0
- package/dist/recall-xray-cli.js.map +1 -0
- package/dist/recall-xray-renderer.d.ts +44 -0
- package/dist/recall-xray-renderer.js +18 -0
- package/dist/recall-xray-renderer.js.map +1 -0
- package/dist/recall-xray.d.ts +179 -0
- package/dist/recall-xray.js +13 -0
- package/dist/recall-xray.js.map +1 -0
- package/dist/resolve-provider-secret.d.ts +5 -1
- package/dist/resolve-provider-secret.js +3 -1
- package/dist/resume-bundles.js +6 -6
- package/dist/retrieval-agents.d.ts +1 -1
- package/dist/retrieval-tiers.d.ts +17 -0
- package/dist/retrieval-tiers.js +9 -0
- package/dist/retrieval-tiers.js.map +1 -0
- package/dist/schemas.d.ts +309 -53
- package/dist/schemas.js +1 -1
- package/dist/{semantic-consolidation-DrvSYRdB.d.ts → semantic-consolidation-CxJU6MJk.d.ts} +62 -1
- package/dist/semantic-consolidation.d.ts +2 -1
- package/dist/semantic-consolidation.js +22 -7
- package/dist/semantic-rule-promotion.js +7 -6
- package/dist/semantic-rule-verifier.js +7 -6
- package/dist/storage.d.ts +82 -1
- package/dist/storage.js +6 -5
- package/dist/summarizer.js +6 -6
- package/dist/temporal-supersession.d.ts +1 -0
- package/dist/tier-migration.d.ts +2 -1
- package/dist/tokens.js +2 -1
- package/dist/types.d.ts +276 -2
- package/dist/types.js +1 -1
- package/dist/verified-recall.js +7 -6
- package/package.json +1 -1
- package/dist/chunk-37UIFYWO.js.map +0 -1
- package/dist/chunk-3QHL5ABG.js.map +0 -1
- package/dist/chunk-3SV6CQHO.js.map +0 -1
- package/dist/chunk-3WHVNEN7.js.map +0 -1
- package/dist/chunk-47UU5PU2.js.map +0 -1
- package/dist/chunk-4LACOVZX.js.map +0 -1
- package/dist/chunk-6ZH4TU6I.js.map +0 -1
- package/dist/chunk-ALXMCZEU.js.map +0 -1
- package/dist/chunk-BLKTA7MM.js.map +0 -1
- package/dist/chunk-DEPL3635.js.map +0 -1
- package/dist/chunk-GV6NLQ4X.js.map +0 -1
- package/dist/chunk-J4IYOZZ5.js.map +0 -1
- package/dist/chunk-LAYN4LDC.js +0 -267
- package/dist/chunk-LAYN4LDC.js.map +0 -1
- package/dist/chunk-LK6SGL53.js.map +0 -1
- package/dist/chunk-MBJHSA7F.js.map +0 -1
- package/dist/chunk-MTLYEMJB.js.map +0 -1
- package/dist/chunk-MVTHXUBX.js.map +0 -1
- package/dist/chunk-NQEVYWX6.js.map +0 -1
- package/dist/chunk-O5ETUNBT.js.map +0 -1
- package/dist/chunk-OIT5QGG4.js.map +0 -1
- package/dist/chunk-PAORGQRI.js.map +0 -1
- package/dist/chunk-QDYXG4CS.js.map +0 -1
- package/dist/chunk-QNJMBKFK.js.map +0 -1
- package/dist/chunk-SYUK3VLY.js.map +0 -1
- package/dist/chunk-UEYA6UC7.js.map +0 -1
- package/dist/chunk-UVJFDP7P.js +0 -202
- package/dist/chunk-UVJFDP7P.js.map +0 -1
- package/dist/chunk-WBSAYXVI.js.map +0 -1
- package/dist/chunk-XZ2TIKGC.js.map +0 -1
- package/dist/chunk-ZVBB3T7V.js.map +0 -1
- package/dist/contradiction-scan-GR33PONM.js.map +0 -1
- /package/dist/{engine-5TIQBYZR.js.map → access-audit.js.map} +0 -0
- /package/dist/{chunk-ITRLGI2T.js.map → chunk-3OGMS3PE.js.map} +0 -0
- /package/dist/{chunk-44ICJRF3.js.map → chunk-AYXIPSZO.js.map} +0 -0
- /package/dist/{chunk-6UJ47TVX.js.map → chunk-CUPFXL3J.js.map} +0 -0
- /package/dist/{chunk-N42IWANG.js.map → chunk-DG6YMRDC.js.map} +0 -0
- /package/dist/{chunk-7WQ6SLIE.js.map → chunk-FVA6TGI3.js.map} +0 -0
- /package/dist/{chunk-JL2PU6AI.js.map → chunk-R2XRID2N.js.map} +0 -0
- /package/dist/{chunk-4NRAJUDS.js.map → chunk-RBBWYEFJ.js.map} +0 -0
- /package/dist/{chunk-JIU55F3X.js.map → chunk-SPI27QT6.js.map} +0 -0
- /package/dist/{chunk-6LX5ORAS.js.map → chunk-TMYO7B5P.js.map} +0 -0
- /package/dist/{chunk-7ECD5ATE.js.map → chunk-VDX363PS.js.map} +0 -0
- /package/dist/{chunk-3QFQGRHO.js.map → chunk-XMHBH5H6.js.map} +0 -0
- /package/dist/{chunk-DHHP2Z4X.js.map → chunk-XXVWLXSG.js.map} +0 -0
package/dist/schemas.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ declare const MemoryActionEligibilityContextSchema: z.ZodObject<{
|
|
|
7
7
|
importance: z.ZodNumber;
|
|
8
8
|
source: z.ZodEnum<["extraction", "consolidation", "replay", "manual", "unknown"]>;
|
|
9
9
|
}, "strict", z.ZodTypeAny, {
|
|
10
|
+
source: "extraction" | "consolidation" | "replay" | "manual" | "unknown";
|
|
10
11
|
confidence: number;
|
|
11
|
-
source: "unknown" | "extraction" | "consolidation" | "replay" | "manual";
|
|
12
12
|
lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
|
|
13
13
|
importance: number;
|
|
14
14
|
}, {
|
|
15
|
+
source: "extraction" | "consolidation" | "replay" | "manual" | "unknown";
|
|
15
16
|
confidence: number;
|
|
16
|
-
source: "unknown" | "extraction" | "consolidation" | "replay" | "manual";
|
|
17
17
|
lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
|
|
18
18
|
importance: number;
|
|
19
19
|
}>;
|
|
@@ -54,7 +54,7 @@ declare const ProcedureStepExtractSchema: z.ZodObject<{
|
|
|
54
54
|
optional?: boolean | null | undefined;
|
|
55
55
|
}>;
|
|
56
56
|
declare const ExtractedFactSchema: z.ZodObject<{
|
|
57
|
-
category: z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure"]>;
|
|
57
|
+
category: z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure", "reasoning_trace"]>;
|
|
58
58
|
content: z.ZodString;
|
|
59
59
|
confidence: z.ZodNumber;
|
|
60
60
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
@@ -95,11 +95,63 @@ declare const ExtractedFactSchema: z.ZodObject<{
|
|
|
95
95
|
expectedOutcome?: string | null | undefined;
|
|
96
96
|
optional?: boolean | null | undefined;
|
|
97
97
|
}>, "many">>>;
|
|
98
|
+
reasoningTrace: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
99
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
100
|
+
order: z.ZodNumber;
|
|
101
|
+
description: z.ZodString;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
description: string;
|
|
104
|
+
order: number;
|
|
105
|
+
}, {
|
|
106
|
+
description: string;
|
|
107
|
+
order: number;
|
|
108
|
+
}>, "many">;
|
|
109
|
+
finalAnswer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
110
|
+
final_answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
111
|
+
observedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
112
|
+
observed_outcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
steps: {
|
|
115
|
+
description: string;
|
|
116
|
+
order: number;
|
|
117
|
+
}[];
|
|
118
|
+
finalAnswer?: string | null | undefined;
|
|
119
|
+
final_answer?: string | null | undefined;
|
|
120
|
+
observedOutcome?: string | null | undefined;
|
|
121
|
+
observed_outcome?: string | null | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
steps: {
|
|
124
|
+
description: string;
|
|
125
|
+
order: number;
|
|
126
|
+
}[];
|
|
127
|
+
finalAnswer?: string | null | undefined;
|
|
128
|
+
final_answer?: string | null | undefined;
|
|
129
|
+
observedOutcome?: string | null | undefined;
|
|
130
|
+
observed_outcome?: string | null | undefined;
|
|
131
|
+
}>, {
|
|
132
|
+
steps: {
|
|
133
|
+
description: string;
|
|
134
|
+
order: number;
|
|
135
|
+
}[];
|
|
136
|
+
finalAnswer?: string | null | undefined;
|
|
137
|
+
final_answer?: string | null | undefined;
|
|
138
|
+
observedOutcome?: string | null | undefined;
|
|
139
|
+
observed_outcome?: string | null | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
steps: {
|
|
142
|
+
description: string;
|
|
143
|
+
order: number;
|
|
144
|
+
}[];
|
|
145
|
+
finalAnswer?: string | null | undefined;
|
|
146
|
+
final_answer?: string | null | undefined;
|
|
147
|
+
observedOutcome?: string | null | undefined;
|
|
148
|
+
observed_outcome?: string | null | undefined;
|
|
149
|
+
}>>>;
|
|
98
150
|
}, "strip", z.ZodTypeAny, {
|
|
99
|
-
|
|
151
|
+
tags: string[];
|
|
100
152
|
content: string;
|
|
153
|
+
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
101
154
|
confidence: number;
|
|
102
|
-
tags: string[];
|
|
103
155
|
entityRef?: string | null | undefined;
|
|
104
156
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
105
157
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -113,11 +165,21 @@ declare const ExtractedFactSchema: z.ZodObject<{
|
|
|
113
165
|
expectedOutcome?: string | null | undefined;
|
|
114
166
|
optional?: boolean | null | undefined;
|
|
115
167
|
}[] | null | undefined;
|
|
168
|
+
reasoningTrace?: {
|
|
169
|
+
steps: {
|
|
170
|
+
description: string;
|
|
171
|
+
order: number;
|
|
172
|
+
}[];
|
|
173
|
+
finalAnswer?: string | null | undefined;
|
|
174
|
+
final_answer?: string | null | undefined;
|
|
175
|
+
observedOutcome?: string | null | undefined;
|
|
176
|
+
observed_outcome?: string | null | undefined;
|
|
177
|
+
} | null | undefined;
|
|
116
178
|
}, {
|
|
117
|
-
|
|
179
|
+
tags: string[];
|
|
118
180
|
content: string;
|
|
181
|
+
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
119
182
|
confidence: number;
|
|
120
|
-
tags: string[];
|
|
121
183
|
entityRef?: string | null | undefined;
|
|
122
184
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
123
185
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -131,6 +193,16 @@ declare const ExtractedFactSchema: z.ZodObject<{
|
|
|
131
193
|
expectedOutcome?: string | null | undefined;
|
|
132
194
|
optional?: boolean | null | undefined;
|
|
133
195
|
}[] | null | undefined;
|
|
196
|
+
reasoningTrace?: {
|
|
197
|
+
steps: {
|
|
198
|
+
description: string;
|
|
199
|
+
order: number;
|
|
200
|
+
}[];
|
|
201
|
+
finalAnswer?: string | null | undefined;
|
|
202
|
+
final_answer?: string | null | undefined;
|
|
203
|
+
observedOutcome?: string | null | undefined;
|
|
204
|
+
observed_outcome?: string | null | undefined;
|
|
205
|
+
} | null | undefined;
|
|
134
206
|
}>;
|
|
135
207
|
declare const EntityMentionSchema: z.ZodObject<{
|
|
136
208
|
name: z.ZodString;
|
|
@@ -142,12 +214,12 @@ declare const EntityMentionSchema: z.ZodObject<{
|
|
|
142
214
|
title: z.ZodString;
|
|
143
215
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
144
216
|
}, "strip", z.ZodTypeAny, {
|
|
145
|
-
key: string;
|
|
146
217
|
title: string;
|
|
218
|
+
key: string;
|
|
147
219
|
facts: string[];
|
|
148
220
|
}, {
|
|
149
|
-
key: string;
|
|
150
221
|
title: string;
|
|
222
|
+
key: string;
|
|
151
223
|
facts: string[];
|
|
152
224
|
}>, "many">>>;
|
|
153
225
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -155,8 +227,8 @@ declare const EntityMentionSchema: z.ZodObject<{
|
|
|
155
227
|
name: string;
|
|
156
228
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
157
229
|
structuredSections?: {
|
|
158
|
-
key: string;
|
|
159
230
|
title: string;
|
|
231
|
+
key: string;
|
|
160
232
|
facts: string[];
|
|
161
233
|
}[] | null | undefined;
|
|
162
234
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -165,8 +237,8 @@ declare const EntityMentionSchema: z.ZodObject<{
|
|
|
165
237
|
name: string;
|
|
166
238
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
167
239
|
structuredSections?: {
|
|
168
|
-
key: string;
|
|
169
240
|
title: string;
|
|
241
|
+
key: string;
|
|
170
242
|
facts: string[];
|
|
171
243
|
}[] | null | undefined;
|
|
172
244
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -229,7 +301,7 @@ declare const ExtractedRelationshipSchema: z.ZodObject<{
|
|
|
229
301
|
}>;
|
|
230
302
|
declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
231
303
|
facts: z.ZodArray<z.ZodObject<{
|
|
232
|
-
category: z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure"]>;
|
|
304
|
+
category: z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure", "reasoning_trace"]>;
|
|
233
305
|
content: z.ZodString;
|
|
234
306
|
confidence: z.ZodNumber;
|
|
235
307
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
@@ -270,11 +342,63 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
270
342
|
expectedOutcome?: string | null | undefined;
|
|
271
343
|
optional?: boolean | null | undefined;
|
|
272
344
|
}>, "many">>>;
|
|
345
|
+
reasoningTrace: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
346
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
347
|
+
order: z.ZodNumber;
|
|
348
|
+
description: z.ZodString;
|
|
349
|
+
}, "strip", z.ZodTypeAny, {
|
|
350
|
+
description: string;
|
|
351
|
+
order: number;
|
|
352
|
+
}, {
|
|
353
|
+
description: string;
|
|
354
|
+
order: number;
|
|
355
|
+
}>, "many">;
|
|
356
|
+
finalAnswer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
357
|
+
final_answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
358
|
+
observedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
359
|
+
observed_outcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
|
361
|
+
steps: {
|
|
362
|
+
description: string;
|
|
363
|
+
order: number;
|
|
364
|
+
}[];
|
|
365
|
+
finalAnswer?: string | null | undefined;
|
|
366
|
+
final_answer?: string | null | undefined;
|
|
367
|
+
observedOutcome?: string | null | undefined;
|
|
368
|
+
observed_outcome?: string | null | undefined;
|
|
369
|
+
}, {
|
|
370
|
+
steps: {
|
|
371
|
+
description: string;
|
|
372
|
+
order: number;
|
|
373
|
+
}[];
|
|
374
|
+
finalAnswer?: string | null | undefined;
|
|
375
|
+
final_answer?: string | null | undefined;
|
|
376
|
+
observedOutcome?: string | null | undefined;
|
|
377
|
+
observed_outcome?: string | null | undefined;
|
|
378
|
+
}>, {
|
|
379
|
+
steps: {
|
|
380
|
+
description: string;
|
|
381
|
+
order: number;
|
|
382
|
+
}[];
|
|
383
|
+
finalAnswer?: string | null | undefined;
|
|
384
|
+
final_answer?: string | null | undefined;
|
|
385
|
+
observedOutcome?: string | null | undefined;
|
|
386
|
+
observed_outcome?: string | null | undefined;
|
|
387
|
+
}, {
|
|
388
|
+
steps: {
|
|
389
|
+
description: string;
|
|
390
|
+
order: number;
|
|
391
|
+
}[];
|
|
392
|
+
finalAnswer?: string | null | undefined;
|
|
393
|
+
final_answer?: string | null | undefined;
|
|
394
|
+
observedOutcome?: string | null | undefined;
|
|
395
|
+
observed_outcome?: string | null | undefined;
|
|
396
|
+
}>>>;
|
|
273
397
|
}, "strip", z.ZodTypeAny, {
|
|
274
|
-
|
|
398
|
+
tags: string[];
|
|
275
399
|
content: string;
|
|
400
|
+
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
276
401
|
confidence: number;
|
|
277
|
-
tags: string[];
|
|
278
402
|
entityRef?: string | null | undefined;
|
|
279
403
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
280
404
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -288,11 +412,21 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
288
412
|
expectedOutcome?: string | null | undefined;
|
|
289
413
|
optional?: boolean | null | undefined;
|
|
290
414
|
}[] | null | undefined;
|
|
415
|
+
reasoningTrace?: {
|
|
416
|
+
steps: {
|
|
417
|
+
description: string;
|
|
418
|
+
order: number;
|
|
419
|
+
}[];
|
|
420
|
+
finalAnswer?: string | null | undefined;
|
|
421
|
+
final_answer?: string | null | undefined;
|
|
422
|
+
observedOutcome?: string | null | undefined;
|
|
423
|
+
observed_outcome?: string | null | undefined;
|
|
424
|
+
} | null | undefined;
|
|
291
425
|
}, {
|
|
292
|
-
|
|
426
|
+
tags: string[];
|
|
293
427
|
content: string;
|
|
428
|
+
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
294
429
|
confidence: number;
|
|
295
|
-
tags: string[];
|
|
296
430
|
entityRef?: string | null | undefined;
|
|
297
431
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
298
432
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -306,6 +440,16 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
306
440
|
expectedOutcome?: string | null | undefined;
|
|
307
441
|
optional?: boolean | null | undefined;
|
|
308
442
|
}[] | null | undefined;
|
|
443
|
+
reasoningTrace?: {
|
|
444
|
+
steps: {
|
|
445
|
+
description: string;
|
|
446
|
+
order: number;
|
|
447
|
+
}[];
|
|
448
|
+
finalAnswer?: string | null | undefined;
|
|
449
|
+
final_answer?: string | null | undefined;
|
|
450
|
+
observedOutcome?: string | null | undefined;
|
|
451
|
+
observed_outcome?: string | null | undefined;
|
|
452
|
+
} | null | undefined;
|
|
309
453
|
}>, "many">;
|
|
310
454
|
profileUpdates: z.ZodArray<z.ZodString, "many">;
|
|
311
455
|
entities: z.ZodArray<z.ZodObject<{
|
|
@@ -318,12 +462,12 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
318
462
|
title: z.ZodString;
|
|
319
463
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
320
464
|
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
key: string;
|
|
322
465
|
title: string;
|
|
466
|
+
key: string;
|
|
323
467
|
facts: string[];
|
|
324
468
|
}, {
|
|
325
|
-
key: string;
|
|
326
469
|
title: string;
|
|
470
|
+
key: string;
|
|
327
471
|
facts: string[];
|
|
328
472
|
}>, "many">>>;
|
|
329
473
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -331,8 +475,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
331
475
|
name: string;
|
|
332
476
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
333
477
|
structuredSections?: {
|
|
334
|
-
key: string;
|
|
335
478
|
title: string;
|
|
479
|
+
key: string;
|
|
336
480
|
facts: string[];
|
|
337
481
|
}[] | null | undefined;
|
|
338
482
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -341,8 +485,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
341
485
|
name: string;
|
|
342
486
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
343
487
|
structuredSections?: {
|
|
344
|
-
key: string;
|
|
345
488
|
title: string;
|
|
489
|
+
key: string;
|
|
346
490
|
facts: string[];
|
|
347
491
|
}[] | null | undefined;
|
|
348
492
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -365,10 +509,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
365
509
|
}>, "many">>>;
|
|
366
510
|
}, "strip", z.ZodTypeAny, {
|
|
367
511
|
facts: {
|
|
368
|
-
|
|
512
|
+
tags: string[];
|
|
369
513
|
content: string;
|
|
514
|
+
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
370
515
|
confidence: number;
|
|
371
|
-
tags: string[];
|
|
372
516
|
entityRef?: string | null | undefined;
|
|
373
517
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
374
518
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -382,14 +526,24 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
382
526
|
expectedOutcome?: string | null | undefined;
|
|
383
527
|
optional?: boolean | null | undefined;
|
|
384
528
|
}[] | null | undefined;
|
|
529
|
+
reasoningTrace?: {
|
|
530
|
+
steps: {
|
|
531
|
+
description: string;
|
|
532
|
+
order: number;
|
|
533
|
+
}[];
|
|
534
|
+
finalAnswer?: string | null | undefined;
|
|
535
|
+
final_answer?: string | null | undefined;
|
|
536
|
+
observedOutcome?: string | null | undefined;
|
|
537
|
+
observed_outcome?: string | null | undefined;
|
|
538
|
+
} | null | undefined;
|
|
385
539
|
}[];
|
|
386
540
|
entities: {
|
|
387
541
|
facts: string[];
|
|
388
542
|
name: string;
|
|
389
543
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
390
544
|
structuredSections?: {
|
|
391
|
-
key: string;
|
|
392
545
|
title: string;
|
|
546
|
+
key: string;
|
|
393
547
|
facts: string[];
|
|
394
548
|
}[] | null | undefined;
|
|
395
549
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -403,10 +557,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
403
557
|
}[] | null | undefined;
|
|
404
558
|
}, {
|
|
405
559
|
facts: {
|
|
406
|
-
|
|
560
|
+
tags: string[];
|
|
407
561
|
content: string;
|
|
562
|
+
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
408
563
|
confidence: number;
|
|
409
|
-
tags: string[];
|
|
410
564
|
entityRef?: string | null | undefined;
|
|
411
565
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
412
566
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -420,14 +574,24 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
420
574
|
expectedOutcome?: string | null | undefined;
|
|
421
575
|
optional?: boolean | null | undefined;
|
|
422
576
|
}[] | null | undefined;
|
|
577
|
+
reasoningTrace?: {
|
|
578
|
+
steps: {
|
|
579
|
+
description: string;
|
|
580
|
+
order: number;
|
|
581
|
+
}[];
|
|
582
|
+
finalAnswer?: string | null | undefined;
|
|
583
|
+
final_answer?: string | null | undefined;
|
|
584
|
+
observedOutcome?: string | null | undefined;
|
|
585
|
+
observed_outcome?: string | null | undefined;
|
|
586
|
+
} | null | undefined;
|
|
423
587
|
}[];
|
|
424
588
|
entities: {
|
|
425
589
|
facts: string[];
|
|
426
590
|
name: string;
|
|
427
591
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
428
592
|
structuredSections?: {
|
|
429
|
-
key: string;
|
|
430
593
|
title: string;
|
|
594
|
+
key: string;
|
|
431
595
|
facts: string[];
|
|
432
596
|
}[] | null | undefined;
|
|
433
597
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -442,7 +606,7 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
442
606
|
}>;
|
|
443
607
|
declare const ExtractionResultSchema: z.ZodObject<{
|
|
444
608
|
facts: z.ZodArray<z.ZodObject<{
|
|
445
|
-
category: z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure"]>;
|
|
609
|
+
category: z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure", "reasoning_trace"]>;
|
|
446
610
|
content: z.ZodString;
|
|
447
611
|
confidence: z.ZodNumber;
|
|
448
612
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
@@ -483,11 +647,63 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
483
647
|
expectedOutcome?: string | null | undefined;
|
|
484
648
|
optional?: boolean | null | undefined;
|
|
485
649
|
}>, "many">>>;
|
|
650
|
+
reasoningTrace: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
651
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
652
|
+
order: z.ZodNumber;
|
|
653
|
+
description: z.ZodString;
|
|
654
|
+
}, "strip", z.ZodTypeAny, {
|
|
655
|
+
description: string;
|
|
656
|
+
order: number;
|
|
657
|
+
}, {
|
|
658
|
+
description: string;
|
|
659
|
+
order: number;
|
|
660
|
+
}>, "many">;
|
|
661
|
+
finalAnswer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
662
|
+
final_answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
663
|
+
observedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
664
|
+
observed_outcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
665
|
+
}, "strip", z.ZodTypeAny, {
|
|
666
|
+
steps: {
|
|
667
|
+
description: string;
|
|
668
|
+
order: number;
|
|
669
|
+
}[];
|
|
670
|
+
finalAnswer?: string | null | undefined;
|
|
671
|
+
final_answer?: string | null | undefined;
|
|
672
|
+
observedOutcome?: string | null | undefined;
|
|
673
|
+
observed_outcome?: string | null | undefined;
|
|
674
|
+
}, {
|
|
675
|
+
steps: {
|
|
676
|
+
description: string;
|
|
677
|
+
order: number;
|
|
678
|
+
}[];
|
|
679
|
+
finalAnswer?: string | null | undefined;
|
|
680
|
+
final_answer?: string | null | undefined;
|
|
681
|
+
observedOutcome?: string | null | undefined;
|
|
682
|
+
observed_outcome?: string | null | undefined;
|
|
683
|
+
}>, {
|
|
684
|
+
steps: {
|
|
685
|
+
description: string;
|
|
686
|
+
order: number;
|
|
687
|
+
}[];
|
|
688
|
+
finalAnswer?: string | null | undefined;
|
|
689
|
+
final_answer?: string | null | undefined;
|
|
690
|
+
observedOutcome?: string | null | undefined;
|
|
691
|
+
observed_outcome?: string | null | undefined;
|
|
692
|
+
}, {
|
|
693
|
+
steps: {
|
|
694
|
+
description: string;
|
|
695
|
+
order: number;
|
|
696
|
+
}[];
|
|
697
|
+
finalAnswer?: string | null | undefined;
|
|
698
|
+
final_answer?: string | null | undefined;
|
|
699
|
+
observedOutcome?: string | null | undefined;
|
|
700
|
+
observed_outcome?: string | null | undefined;
|
|
701
|
+
}>>>;
|
|
486
702
|
}, "strip", z.ZodTypeAny, {
|
|
487
|
-
|
|
703
|
+
tags: string[];
|
|
488
704
|
content: string;
|
|
705
|
+
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
489
706
|
confidence: number;
|
|
490
|
-
tags: string[];
|
|
491
707
|
entityRef?: string | null | undefined;
|
|
492
708
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
493
709
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -501,11 +717,21 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
501
717
|
expectedOutcome?: string | null | undefined;
|
|
502
718
|
optional?: boolean | null | undefined;
|
|
503
719
|
}[] | null | undefined;
|
|
720
|
+
reasoningTrace?: {
|
|
721
|
+
steps: {
|
|
722
|
+
description: string;
|
|
723
|
+
order: number;
|
|
724
|
+
}[];
|
|
725
|
+
finalAnswer?: string | null | undefined;
|
|
726
|
+
final_answer?: string | null | undefined;
|
|
727
|
+
observedOutcome?: string | null | undefined;
|
|
728
|
+
observed_outcome?: string | null | undefined;
|
|
729
|
+
} | null | undefined;
|
|
504
730
|
}, {
|
|
505
|
-
|
|
731
|
+
tags: string[];
|
|
506
732
|
content: string;
|
|
733
|
+
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
507
734
|
confidence: number;
|
|
508
|
-
tags: string[];
|
|
509
735
|
entityRef?: string | null | undefined;
|
|
510
736
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
511
737
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -519,6 +745,16 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
519
745
|
expectedOutcome?: string | null | undefined;
|
|
520
746
|
optional?: boolean | null | undefined;
|
|
521
747
|
}[] | null | undefined;
|
|
748
|
+
reasoningTrace?: {
|
|
749
|
+
steps: {
|
|
750
|
+
description: string;
|
|
751
|
+
order: number;
|
|
752
|
+
}[];
|
|
753
|
+
finalAnswer?: string | null | undefined;
|
|
754
|
+
final_answer?: string | null | undefined;
|
|
755
|
+
observedOutcome?: string | null | undefined;
|
|
756
|
+
observed_outcome?: string | null | undefined;
|
|
757
|
+
} | null | undefined;
|
|
522
758
|
}>, "many">;
|
|
523
759
|
profileUpdates: z.ZodArray<z.ZodString, "many">;
|
|
524
760
|
entities: z.ZodArray<z.ZodObject<{
|
|
@@ -531,12 +767,12 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
531
767
|
title: z.ZodString;
|
|
532
768
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
533
769
|
}, "strip", z.ZodTypeAny, {
|
|
534
|
-
key: string;
|
|
535
770
|
title: string;
|
|
771
|
+
key: string;
|
|
536
772
|
facts: string[];
|
|
537
773
|
}, {
|
|
538
|
-
key: string;
|
|
539
774
|
title: string;
|
|
775
|
+
key: string;
|
|
540
776
|
facts: string[];
|
|
541
777
|
}>, "many">>>;
|
|
542
778
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -544,8 +780,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
544
780
|
name: string;
|
|
545
781
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
546
782
|
structuredSections?: {
|
|
547
|
-
key: string;
|
|
548
783
|
title: string;
|
|
784
|
+
key: string;
|
|
549
785
|
facts: string[];
|
|
550
786
|
}[] | null | undefined;
|
|
551
787
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -554,8 +790,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
554
790
|
name: string;
|
|
555
791
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
556
792
|
structuredSections?: {
|
|
557
|
-
key: string;
|
|
558
793
|
title: string;
|
|
794
|
+
key: string;
|
|
559
795
|
facts: string[];
|
|
560
796
|
}[] | null | undefined;
|
|
561
797
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -592,10 +828,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
592
828
|
}>, "many">>>;
|
|
593
829
|
}, "strip", z.ZodTypeAny, {
|
|
594
830
|
facts: {
|
|
595
|
-
|
|
831
|
+
tags: string[];
|
|
596
832
|
content: string;
|
|
833
|
+
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
597
834
|
confidence: number;
|
|
598
|
-
tags: string[];
|
|
599
835
|
entityRef?: string | null | undefined;
|
|
600
836
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
601
837
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -609,14 +845,24 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
609
845
|
expectedOutcome?: string | null | undefined;
|
|
610
846
|
optional?: boolean | null | undefined;
|
|
611
847
|
}[] | null | undefined;
|
|
848
|
+
reasoningTrace?: {
|
|
849
|
+
steps: {
|
|
850
|
+
description: string;
|
|
851
|
+
order: number;
|
|
852
|
+
}[];
|
|
853
|
+
finalAnswer?: string | null | undefined;
|
|
854
|
+
final_answer?: string | null | undefined;
|
|
855
|
+
observedOutcome?: string | null | undefined;
|
|
856
|
+
observed_outcome?: string | null | undefined;
|
|
857
|
+
} | null | undefined;
|
|
612
858
|
}[];
|
|
613
859
|
entities: {
|
|
614
860
|
facts: string[];
|
|
615
861
|
name: string;
|
|
616
862
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
617
863
|
structuredSections?: {
|
|
618
|
-
key: string;
|
|
619
864
|
title: string;
|
|
865
|
+
key: string;
|
|
620
866
|
facts: string[];
|
|
621
867
|
}[] | null | undefined;
|
|
622
868
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -636,10 +882,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
636
882
|
identityReflection?: string | null | undefined;
|
|
637
883
|
}, {
|
|
638
884
|
facts: {
|
|
639
|
-
|
|
885
|
+
tags: string[];
|
|
640
886
|
content: string;
|
|
887
|
+
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
641
888
|
confidence: number;
|
|
642
|
-
tags: string[];
|
|
643
889
|
entityRef?: string | null | undefined;
|
|
644
890
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
645
891
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -653,14 +899,24 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
653
899
|
expectedOutcome?: string | null | undefined;
|
|
654
900
|
optional?: boolean | null | undefined;
|
|
655
901
|
}[] | null | undefined;
|
|
902
|
+
reasoningTrace?: {
|
|
903
|
+
steps: {
|
|
904
|
+
description: string;
|
|
905
|
+
order: number;
|
|
906
|
+
}[];
|
|
907
|
+
finalAnswer?: string | null | undefined;
|
|
908
|
+
final_answer?: string | null | undefined;
|
|
909
|
+
observedOutcome?: string | null | undefined;
|
|
910
|
+
observed_outcome?: string | null | undefined;
|
|
911
|
+
} | null | undefined;
|
|
656
912
|
}[];
|
|
657
913
|
entities: {
|
|
658
914
|
facts: string[];
|
|
659
915
|
name: string;
|
|
660
916
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
661
917
|
structuredSections?: {
|
|
662
|
-
key: string;
|
|
663
918
|
title: string;
|
|
919
|
+
key: string;
|
|
664
920
|
facts: string[];
|
|
665
921
|
}[] | null | undefined;
|
|
666
922
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -729,12 +985,12 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
729
985
|
title: z.ZodString;
|
|
730
986
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
731
987
|
}, "strip", z.ZodTypeAny, {
|
|
732
|
-
key: string;
|
|
733
988
|
title: string;
|
|
989
|
+
key: string;
|
|
734
990
|
facts: string[];
|
|
735
991
|
}, {
|
|
736
|
-
key: string;
|
|
737
992
|
title: string;
|
|
993
|
+
key: string;
|
|
738
994
|
facts: string[];
|
|
739
995
|
}>, "many">>>;
|
|
740
996
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -742,8 +998,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
742
998
|
name: string;
|
|
743
999
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
744
1000
|
structuredSections?: {
|
|
745
|
-
key: string;
|
|
746
1001
|
title: string;
|
|
1002
|
+
key: string;
|
|
747
1003
|
facts: string[];
|
|
748
1004
|
}[] | null | undefined;
|
|
749
1005
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -752,8 +1008,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
752
1008
|
name: string;
|
|
753
1009
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
754
1010
|
structuredSections?: {
|
|
755
|
-
key: string;
|
|
756
1011
|
title: string;
|
|
1012
|
+
key: string;
|
|
757
1013
|
facts: string[];
|
|
758
1014
|
}[] | null | undefined;
|
|
759
1015
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -772,8 +1028,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
772
1028
|
name: string;
|
|
773
1029
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
774
1030
|
structuredSections?: {
|
|
775
|
-
key: string;
|
|
776
1031
|
title: string;
|
|
1032
|
+
key: string;
|
|
777
1033
|
facts: string[];
|
|
778
1034
|
}[] | null | undefined;
|
|
779
1035
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -792,8 +1048,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
792
1048
|
name: string;
|
|
793
1049
|
type: "project" | "person" | "tool" | "company" | "place" | "other";
|
|
794
1050
|
structuredSections?: {
|
|
795
|
-
key: string;
|
|
796
1051
|
title: string;
|
|
1052
|
+
key: string;
|
|
797
1053
|
facts: string[];
|
|
798
1054
|
}[] | null | undefined;
|
|
799
1055
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -943,8 +1199,8 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
|
|
|
943
1199
|
reason: z.ZodString;
|
|
944
1200
|
appliedAt: z.ZodString;
|
|
945
1201
|
}, "strip", z.ZodTypeAny, {
|
|
946
|
-
confidence: number;
|
|
947
1202
|
reason: string;
|
|
1203
|
+
confidence: number;
|
|
948
1204
|
parameter: string;
|
|
949
1205
|
previousValue: number;
|
|
950
1206
|
nextValue: number;
|
|
@@ -952,8 +1208,8 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
|
|
|
952
1208
|
evidenceCount: number;
|
|
953
1209
|
appliedAt: string;
|
|
954
1210
|
}, {
|
|
955
|
-
confidence: number;
|
|
956
1211
|
reason: string;
|
|
1212
|
+
confidence: number;
|
|
957
1213
|
parameter: string;
|
|
958
1214
|
previousValue: number;
|
|
959
1215
|
nextValue: number;
|
|
@@ -977,8 +1233,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
977
1233
|
reason: z.ZodString;
|
|
978
1234
|
appliedAt: z.ZodString;
|
|
979
1235
|
}, "strip", z.ZodTypeAny, {
|
|
980
|
-
confidence: number;
|
|
981
1236
|
reason: string;
|
|
1237
|
+
confidence: number;
|
|
982
1238
|
parameter: string;
|
|
983
1239
|
previousValue: number;
|
|
984
1240
|
nextValue: number;
|
|
@@ -986,8 +1242,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
986
1242
|
evidenceCount: number;
|
|
987
1243
|
appliedAt: string;
|
|
988
1244
|
}, {
|
|
989
|
-
confidence: number;
|
|
990
1245
|
reason: string;
|
|
1246
|
+
confidence: number;
|
|
991
1247
|
parameter: string;
|
|
992
1248
|
previousValue: number;
|
|
993
1249
|
nextValue: number;
|
|
@@ -1004,8 +1260,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1004
1260
|
maxDeltaPerCycle: number;
|
|
1005
1261
|
protectedParams: string[];
|
|
1006
1262
|
adjustments: {
|
|
1007
|
-
confidence: number;
|
|
1008
1263
|
reason: string;
|
|
1264
|
+
confidence: number;
|
|
1009
1265
|
parameter: string;
|
|
1010
1266
|
previousValue: number;
|
|
1011
1267
|
nextValue: number;
|
|
@@ -1021,8 +1277,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1021
1277
|
maxDeltaPerCycle: number;
|
|
1022
1278
|
protectedParams: string[];
|
|
1023
1279
|
adjustments: {
|
|
1024
|
-
confidence: number;
|
|
1025
1280
|
reason: string;
|
|
1281
|
+
confidence: number;
|
|
1026
1282
|
parameter: string;
|
|
1027
1283
|
previousValue: number;
|
|
1028
1284
|
nextValue: number;
|