@remnic/core 9.7.2 → 9.7.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 +6 -6
- package/dist/access-admin-ops-surface.js +8 -8
- package/dist/access-boundary.d.ts +6 -6
- package/dist/access-boundary.js +9 -9
- package/dist/access-cli.js +32 -32
- package/dist/access-http.d.ts +15 -6
- package/dist/access-http.js +13 -13
- package/dist/access-identity-continuity-surface.d.ts +5 -5
- package/dist/access-identity-continuity-surface.js +8 -8
- package/dist/access-lcm-surface.d.ts +6 -6
- package/dist/access-lcm-surface.js +8 -8
- package/dist/access-mcp.d.ts +6 -6
- package/dist/access-mcp.js +12 -12
- package/dist/access-observe-write-surface.d.ts +6 -6
- package/dist/access-observe-write-surface.js +8 -8
- package/dist/access-operations-batch.js +10 -10
- package/dist/access-operations.d.ts +9 -9
- package/dist/access-operations.js +11 -11
- package/dist/access-recall-surface.d.ts +6 -6
- package/dist/access-recall-surface.js +8 -8
- package/dist/access-schema.d.ts +64 -64
- package/dist/{access-service-CJ5hrLqR.d.ts → access-service-CxDZXTKt.d.ts} +4 -4
- package/dist/access-service.d.ts +6 -6
- package/dist/access-service.js +8 -8
- package/dist/access-surface-catalog.d.ts +6 -6
- package/dist/action-confidence.d.ts +1 -1
- package/dist/active-memory-bridge.d.ts +1 -1
- package/dist/active-recall.d.ts +1 -1
- package/dist/active-recall.js +1 -1
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +5 -5
- package/dist/briefing.d.ts +2 -2
- package/dist/briefing.js +3 -3
- package/dist/buffer-surprise-report.d.ts +1 -1
- package/dist/buffer.d.ts +2 -2
- package/dist/bulk-import/index.d.ts +3 -3
- package/dist/calibration.d.ts +1 -1
- package/dist/capabilities.d.ts +1 -1
- package/dist/{catalog-XCOyxXKw.d.ts → catalog-DzU9HowE.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-consolidation.d.ts +1 -1
- package/dist/causal-consolidation.js +4 -4
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-NS4GEMLR.js → chunk-3CRHW42H.js} +3 -3
- package/dist/{chunk-X6FSCBJZ.js → chunk-3UPBVNBX.js} +21 -17
- package/dist/chunk-3UPBVNBX.js.map +1 -0
- package/dist/{chunk-QFOLNA2C.js → chunk-6C35R7P4.js} +2 -2
- package/dist/{chunk-PUPQ2PMC.js → chunk-74MJH7I3.js} +2 -2
- package/dist/{chunk-AWHOZTF6.js → chunk-AD2KK5MT.js} +2 -2
- package/dist/{chunk-RZEJDF3S.js → chunk-AH3M6F4X.js} +2 -2
- package/dist/{chunk-ARD5NE4M.js → chunk-BFCQPJ5B.js} +3 -3
- package/dist/{chunk-KWJP22WP.js → chunk-CNWC274T.js} +8 -8
- package/dist/{chunk-RQTCDICG.js → chunk-CRFTLUWT.js} +2 -2
- package/dist/{chunk-BLXNPBJI.js → chunk-DQPPRXFO.js} +2 -2
- package/dist/{chunk-DSWYYEIK.js → chunk-EJCVMPIM.js} +12 -2
- package/dist/chunk-EJCVMPIM.js.map +1 -0
- package/dist/{chunk-Y4EMHIQ5.js → chunk-ESE55PZJ.js} +11 -7
- package/dist/chunk-ESE55PZJ.js.map +1 -0
- package/dist/{chunk-NGJT7IW5.js → chunk-GL3SMLMZ.js} +16 -16
- package/dist/{chunk-4YUPLX7U.js → chunk-HXDKC3BI.js} +2 -2
- package/dist/{chunk-QMUERLZK.js → chunk-JO5AT6QT.js} +1 -1
- package/dist/chunk-JO5AT6QT.js.map +1 -0
- package/dist/{chunk-QRYNEVHP.js → chunk-KTOH7EJE.js} +2 -2
- package/dist/{chunk-VD56CJRR.js → chunk-O3BZ6PFY.js} +2 -2
- package/dist/{chunk-WGE3OYC3.js → chunk-P2UA6XQG.js} +4 -4
- package/dist/{chunk-ZXUG3AFP.js → chunk-PKGWJFNR.js} +2 -2
- package/dist/{chunk-UKA7GNI2.js → chunk-QDCJNRKK.js} +3 -3
- package/dist/{chunk-FMECZFUT.js → chunk-R2SJDIPO.js} +2 -2
- package/dist/{chunk-PSQ32V5P.js → chunk-T7VNN3ZM.js} +13 -3
- package/dist/chunk-T7VNN3ZM.js.map +1 -0
- package/dist/{chunk-CBOHQNTJ.js → chunk-TBQ4CFIP.js} +2 -2
- package/dist/{chunk-53Y3TETS.js → chunk-TVRPRFUB.js} +2 -2
- package/dist/{chunk-O24E5CFS.js → chunk-TZJVTH3F.js} +3 -3
- package/dist/{chunk-Z3HJ5L3Z.js → chunk-UVIQHSS7.js} +2 -2
- package/dist/{chunk-HT2DQ27U.js → chunk-UYZUJ4EB.js} +2 -2
- package/dist/{chunk-DDHT5J5M.js → chunk-VMGMY2AI.js} +6 -6
- package/dist/{chunk-E47TABDR.js → chunk-WKE4VXSZ.js} +2 -2
- package/dist/{chunk-GWMTFDHF.js → chunk-ZHKD4EZM.js} +3 -3
- package/dist/{chunk-D6KNJRGX.js → chunk-ZUFJ7ZTR.js} +2 -2
- package/dist/{chunk-PML3GU4Q.js → chunk-ZW6OKHVX.js} +2 -2
- package/dist/{cli-CtECZr1q.d.ts → cli-BqyGVyOe.d.ts} +9 -5
- package/dist/cli.d.ts +8 -8
- package/dist/cli.js +26 -26
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +3 -3
- package/dist/compounding/preference-consolidator.d.ts +1 -1
- package/dist/compression-optimizer.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +3 -3
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +3 -3
- package/dist/consolidation-provenance-check.d.ts +2 -2
- package/dist/consolidation-undo.d.ts +2 -2
- package/dist/contradiction/index.d.ts +2 -2
- package/dist/conversation-index/backend.d.ts +1 -1
- package/dist/conversation-index/chunker.d.ts +1 -1
- package/dist/conversation-index/faiss-adapter.d.ts +1 -1
- package/dist/conversation-index/indexer.d.ts +1 -1
- package/dist/conversation-index/search.d.ts +1 -1
- package/dist/day-summary.d.ts +1 -1
- package/dist/delinearize.d.ts +1 -1
- package/dist/direct-answer-wiring.d.ts +1 -1
- package/dist/direct-answer.d.ts +1 -1
- package/dist/embedding-fallback.d.ts +1 -1
- package/dist/enrichment/index.d.ts +1 -1
- package/dist/entity-retrieval.d.ts +2 -2
- package/dist/entity-retrieval.js +3 -3
- package/dist/entity-schema.d.ts +1 -1
- package/dist/explicit-capture.d.ts +5 -5
- package/dist/extraction-faithfulness.d.ts +1 -1
- package/dist/extraction-judge-telemetry.d.ts +1 -1
- package/dist/extraction-judge-training.d.ts +1 -1
- package/dist/extraction-judge.d.ts +1 -1
- package/dist/extraction.d.ts +1 -1
- package/dist/fallback-llm.d.ts +1 -1
- package/dist/graph-dashboard-diff.d.ts +1 -1
- package/dist/graph-dashboard-key.d.ts +1 -1
- package/dist/graph-dashboard-parser.d.ts +1 -1
- package/dist/graph-edge-reinforcement.d.ts +1 -1
- package/dist/graph-snapshot.d.ts +1 -1
- package/dist/graph.d.ts +1 -1
- package/dist/identity-continuity.d.ts +1 -1
- package/dist/importance.d.ts +1 -1
- package/dist/importers/index.d.ts +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +32 -32
- package/dist/intent.d.ts +1 -1
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/tools.d.ts +1 -1
- package/dist/lifecycle.d.ts +1 -1
- package/dist/live-connectors-runner.d.ts +1 -1
- package/dist/local-llm.d.ts +1 -1
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +3 -3
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
- package/dist/maintenance/rebuild-memory-projection.js +4 -4
- package/dist/mcp-memory-inspector-app.d.ts +6 -6
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
- package/dist/memory-projection-store.d.ts +1 -1
- package/dist/memory-provenance.d.ts +1 -1
- package/dist/memory-worth-outcomes.d.ts +2 -2
- package/dist/models-json.d.ts +1 -1
- package/dist/namespaces/migrate.d.ts +3 -3
- package/dist/namespaces/migrate.js +5 -5
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/search.js +1 -1
- package/dist/namespaces/storage.d.ts +3 -3
- package/dist/namespaces/storage.js +3 -3
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +2 -2
- package/dist/operator-toolkit.js +9 -9
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
- package/dist/orchestration/maintenance.d.ts +2 -2
- package/dist/orchestration/maintenance.js +5 -5
- package/dist/{orchestrator-CKctWsw9.d.ts → orchestrator-37Cx7yyw.d.ts} +4 -4
- package/dist/orchestrator.d.ts +5 -5
- package/dist/orchestrator.js +32 -32
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-BWwGIys5.d.ts → pipeline-C6onljHc.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +1 -1
- package/dist/provenance.d.ts +1 -1
- package/dist/{qmd-DFuUrBWW.d.ts → qmd-J08G7MEm.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +2 -2
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd.d.ts +2 -2
- package/dist/recall-disclosure-escalation.d.ts +1 -1
- package/dist/recall-explain-renderer.d.ts +1 -1
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-planner-llm.d.ts +1 -1
- package/dist/recall-state.d.ts +1 -1
- package/dist/recall-tag-filter.d.ts +1 -1
- package/dist/recall-timings.d.ts +1 -1
- package/dist/recall-xray-cli.d.ts +1 -1
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +1 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +1 -1
- package/dist/recall-xray.js +2 -2
- package/dist/replay/normalizers/chatgpt.d.ts +1 -1
- package/dist/replay/normalizers/claude.d.ts +1 -1
- package/dist/replay/normalizers/openclaw.d.ts +1 -1
- package/dist/replay/normalizers/shared.d.ts +1 -1
- package/dist/replay/runner.d.ts +1 -1
- package/dist/replay/types.d.ts +1 -1
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/resume-bundles.js +2 -2
- package/dist/retrieval-agents.d.ts +2 -2
- package/dist/retrieval-tiers.d.ts +1 -1
- package/dist/routing/engine.d.ts +1 -1
- package/dist/routing/store.d.ts +1 -1
- package/dist/schemas.d.ts +74 -74
- package/dist/search/embed-helper.d.ts +1 -1
- package/dist/search/factory.d.ts +1 -1
- package/dist/search/index.d.ts +1 -1
- package/dist/search/lancedb-backend.d.ts +1 -1
- package/dist/search/meilisearch-backend.d.ts +1 -1
- package/dist/search/noop-backend.d.ts +1 -1
- package/dist/search/orama-backend.d.ts +1 -1
- package/dist/search/port.d.ts +1 -1
- package/dist/search/remote-backend.d.ts +1 -1
- package/dist/{semantic-consolidation-1Wlr7NWL.d.ts → semantic-consolidation-BFtoVosl.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +4 -4
- package/dist/semantic-rule-promotion.js +3 -3
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +3 -3
- package/dist/session-observer-bands.d.ts +1 -1
- package/dist/session-observer-state.d.ts +1 -1
- package/dist/shared-context/manager.d.ts +9 -9
- package/dist/signal.d.ts +1 -1
- package/dist/{storage-BQwP90sb.d.ts → storage-CXjwBr69.d.ts} +1 -1
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +2 -2
- package/dist/summarizer.d.ts +1 -1
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/temporal-supersession.d.ts +2 -2
- package/dist/temporal-timeline-recall.d.ts +1 -1
- package/dist/temporal-validity.d.ts +1 -1
- package/dist/threading.d.ts +1 -1
- package/dist/tier-migration.d.ts +2 -2
- package/dist/tier-routing.d.ts +1 -1
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transfer/types.d.ts +66 -66
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-DgIkyAsK.d.ts → types-DpxqC8dI.d.ts} +4 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/verified-recall.js +3 -3
- package/package.json +2 -2
- package/src/access-http.ts +27 -2
- package/src/cli.ts +8 -0
- package/src/config.ts +10 -0
- package/src/namespaces/search.test.ts +74 -9
- package/src/namespaces/search.ts +12 -3
- package/src/types.ts +4 -0
- package/dist/chunk-DSWYYEIK.js.map +0 -1
- package/dist/chunk-PSQ32V5P.js.map +0 -1
- package/dist/chunk-QMUERLZK.js.map +0 -1
- package/dist/chunk-X6FSCBJZ.js.map +0 -1
- package/dist/chunk-Y4EMHIQ5.js.map +0 -1
- /package/dist/{chunk-NS4GEMLR.js.map → chunk-3CRHW42H.js.map} +0 -0
- /package/dist/{chunk-QFOLNA2C.js.map → chunk-6C35R7P4.js.map} +0 -0
- /package/dist/{chunk-PUPQ2PMC.js.map → chunk-74MJH7I3.js.map} +0 -0
- /package/dist/{chunk-AWHOZTF6.js.map → chunk-AD2KK5MT.js.map} +0 -0
- /package/dist/{chunk-RZEJDF3S.js.map → chunk-AH3M6F4X.js.map} +0 -0
- /package/dist/{chunk-ARD5NE4M.js.map → chunk-BFCQPJ5B.js.map} +0 -0
- /package/dist/{chunk-KWJP22WP.js.map → chunk-CNWC274T.js.map} +0 -0
- /package/dist/{chunk-RQTCDICG.js.map → chunk-CRFTLUWT.js.map} +0 -0
- /package/dist/{chunk-BLXNPBJI.js.map → chunk-DQPPRXFO.js.map} +0 -0
- /package/dist/{chunk-NGJT7IW5.js.map → chunk-GL3SMLMZ.js.map} +0 -0
- /package/dist/{chunk-4YUPLX7U.js.map → chunk-HXDKC3BI.js.map} +0 -0
- /package/dist/{chunk-QRYNEVHP.js.map → chunk-KTOH7EJE.js.map} +0 -0
- /package/dist/{chunk-VD56CJRR.js.map → chunk-O3BZ6PFY.js.map} +0 -0
- /package/dist/{chunk-WGE3OYC3.js.map → chunk-P2UA6XQG.js.map} +0 -0
- /package/dist/{chunk-ZXUG3AFP.js.map → chunk-PKGWJFNR.js.map} +0 -0
- /package/dist/{chunk-UKA7GNI2.js.map → chunk-QDCJNRKK.js.map} +0 -0
- /package/dist/{chunk-FMECZFUT.js.map → chunk-R2SJDIPO.js.map} +0 -0
- /package/dist/{chunk-CBOHQNTJ.js.map → chunk-TBQ4CFIP.js.map} +0 -0
- /package/dist/{chunk-53Y3TETS.js.map → chunk-TVRPRFUB.js.map} +0 -0
- /package/dist/{chunk-O24E5CFS.js.map → chunk-TZJVTH3F.js.map} +0 -0
- /package/dist/{chunk-Z3HJ5L3Z.js.map → chunk-UVIQHSS7.js.map} +0 -0
- /package/dist/{chunk-HT2DQ27U.js.map → chunk-UYZUJ4EB.js.map} +0 -0
- /package/dist/{chunk-DDHT5J5M.js.map → chunk-VMGMY2AI.js.map} +0 -0
- /package/dist/{chunk-E47TABDR.js.map → chunk-WKE4VXSZ.js.map} +0 -0
- /package/dist/{chunk-GWMTFDHF.js.map → chunk-ZHKD4EZM.js.map} +0 -0
- /package/dist/{chunk-D6KNJRGX.js.map → chunk-ZUFJ7ZTR.js.map} +0 -0
- /package/dist/{chunk-PML3GU4Q.js.map → chunk-ZW6OKHVX.js.map} +0 -0
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
|
+
schemaVersion: 1;
|
|
24
24
|
createdAt: string;
|
|
25
|
-
pluginVersion: string;
|
|
26
25
|
files: {
|
|
27
26
|
path: string;
|
|
28
27
|
sha256: string;
|
|
29
28
|
bytes: number;
|
|
30
29
|
}[];
|
|
31
|
-
|
|
30
|
+
format: "openclaw-engram-export";
|
|
31
|
+
pluginVersion: string;
|
|
32
32
|
includesTranscripts: boolean;
|
|
33
33
|
}, {
|
|
34
|
-
|
|
34
|
+
schemaVersion: 1;
|
|
35
35
|
createdAt: string;
|
|
36
|
-
pluginVersion: string;
|
|
37
36
|
files: {
|
|
38
37
|
path: string;
|
|
39
38
|
sha256: string;
|
|
40
39
|
bytes: number;
|
|
41
40
|
}[];
|
|
42
|
-
|
|
41
|
+
format: "openclaw-engram-export";
|
|
42
|
+
pluginVersion: string;
|
|
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
|
+
schemaVersion: 1;
|
|
79
79
|
createdAt: string;
|
|
80
|
-
pluginVersion: string;
|
|
81
80
|
files: {
|
|
82
81
|
path: string;
|
|
83
82
|
sha256: string;
|
|
84
83
|
bytes: number;
|
|
85
84
|
}[];
|
|
86
|
-
|
|
85
|
+
format: "openclaw-engram-export";
|
|
86
|
+
pluginVersion: string;
|
|
87
87
|
includesTranscripts: boolean;
|
|
88
88
|
}, {
|
|
89
|
-
|
|
89
|
+
schemaVersion: 1;
|
|
90
90
|
createdAt: string;
|
|
91
|
-
pluginVersion: string;
|
|
92
91
|
files: {
|
|
93
92
|
path: string;
|
|
94
93
|
sha256: string;
|
|
95
94
|
bytes: number;
|
|
96
95
|
}[];
|
|
97
|
-
|
|
96
|
+
format: "openclaw-engram-export";
|
|
97
|
+
pluginVersion: string;
|
|
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
|
+
schemaVersion: 1;
|
|
113
113
|
createdAt: string;
|
|
114
|
-
pluginVersion: string;
|
|
115
114
|
files: {
|
|
116
115
|
path: string;
|
|
117
116
|
sha256: string;
|
|
118
117
|
bytes: number;
|
|
119
118
|
}[];
|
|
120
|
-
|
|
119
|
+
format: "openclaw-engram-export";
|
|
120
|
+
pluginVersion: string;
|
|
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
|
+
schemaVersion: 1;
|
|
130
130
|
createdAt: string;
|
|
131
|
-
pluginVersion: string;
|
|
132
131
|
files: {
|
|
133
132
|
path: string;
|
|
134
133
|
sha256: string;
|
|
135
134
|
bytes: number;
|
|
136
135
|
}[];
|
|
137
|
-
|
|
136
|
+
format: "openclaw-engram-export";
|
|
137
|
+
pluginVersion: string;
|
|
138
138
|
includesTranscripts: boolean;
|
|
139
139
|
};
|
|
140
140
|
records: {
|
|
@@ -313,16 +313,16 @@ declare const CapsuleBlockSchema: z.ZodObject<{
|
|
|
313
313
|
peerProfiles: boolean;
|
|
314
314
|
}>;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
schemaVersion: string;
|
|
316
317
|
includes: {
|
|
317
318
|
procedural: boolean;
|
|
318
319
|
taxonomy: boolean;
|
|
319
320
|
identityAnchors: boolean;
|
|
320
321
|
peerProfiles: boolean;
|
|
321
322
|
};
|
|
322
|
-
description: string;
|
|
323
323
|
id: string;
|
|
324
|
-
schemaVersion: string;
|
|
325
324
|
version: string;
|
|
325
|
+
description: string;
|
|
326
326
|
parentCapsule: string | null;
|
|
327
327
|
retrievalPolicy: {
|
|
328
328
|
tierWeights: Record<string, number>;
|
|
@@ -334,16 +334,16 @@ declare const CapsuleBlockSchema: z.ZodObject<{
|
|
|
334
334
|
forkRoot: string;
|
|
335
335
|
} | null;
|
|
336
336
|
}, {
|
|
337
|
+
schemaVersion: string;
|
|
337
338
|
includes: {
|
|
338
339
|
procedural: boolean;
|
|
339
340
|
taxonomy: boolean;
|
|
340
341
|
identityAnchors: boolean;
|
|
341
342
|
peerProfiles: boolean;
|
|
342
343
|
};
|
|
343
|
-
description: string;
|
|
344
344
|
id: string;
|
|
345
|
-
schemaVersion: string;
|
|
346
345
|
version: string;
|
|
346
|
+
description: string;
|
|
347
347
|
parentCapsule: string | null;
|
|
348
348
|
retrievalPolicy: {
|
|
349
349
|
tierWeights: Record<string, number>;
|
|
@@ -464,16 +464,16 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
464
464
|
peerProfiles: boolean;
|
|
465
465
|
}>;
|
|
466
466
|
}, "strip", z.ZodTypeAny, {
|
|
467
|
+
schemaVersion: string;
|
|
467
468
|
includes: {
|
|
468
469
|
procedural: boolean;
|
|
469
470
|
taxonomy: boolean;
|
|
470
471
|
identityAnchors: boolean;
|
|
471
472
|
peerProfiles: boolean;
|
|
472
473
|
};
|
|
473
|
-
description: string;
|
|
474
474
|
id: string;
|
|
475
|
-
schemaVersion: string;
|
|
476
475
|
version: string;
|
|
476
|
+
description: string;
|
|
477
477
|
parentCapsule: string | null;
|
|
478
478
|
retrievalPolicy: {
|
|
479
479
|
tierWeights: Record<string, number>;
|
|
@@ -485,16 +485,16 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
485
485
|
forkRoot: string;
|
|
486
486
|
} | null;
|
|
487
487
|
}, {
|
|
488
|
+
schemaVersion: string;
|
|
488
489
|
includes: {
|
|
489
490
|
procedural: boolean;
|
|
490
491
|
taxonomy: boolean;
|
|
491
492
|
identityAnchors: boolean;
|
|
492
493
|
peerProfiles: boolean;
|
|
493
494
|
};
|
|
494
|
-
description: string;
|
|
495
495
|
id: string;
|
|
496
|
-
schemaVersion: string;
|
|
497
496
|
version: string;
|
|
497
|
+
description: string;
|
|
498
498
|
parentCapsule: string | null;
|
|
499
499
|
retrievalPolicy: {
|
|
500
500
|
tierWeights: Record<string, number>;
|
|
@@ -507,25 +507,27 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
507
507
|
} | null | undefined;
|
|
508
508
|
}>;
|
|
509
509
|
}, "strip", z.ZodTypeAny, {
|
|
510
|
-
|
|
510
|
+
schemaVersion: 2;
|
|
511
511
|
createdAt: string;
|
|
512
|
-
pluginVersion: string;
|
|
513
512
|
files: {
|
|
514
513
|
path: string;
|
|
515
514
|
sha256: string;
|
|
516
515
|
bytes: number;
|
|
517
516
|
}[];
|
|
517
|
+
format: "openclaw-engram-export";
|
|
518
|
+
pluginVersion: string;
|
|
519
|
+
includesTranscripts: boolean;
|
|
518
520
|
capsule: {
|
|
521
|
+
schemaVersion: string;
|
|
519
522
|
includes: {
|
|
520
523
|
procedural: boolean;
|
|
521
524
|
taxonomy: boolean;
|
|
522
525
|
identityAnchors: boolean;
|
|
523
526
|
peerProfiles: boolean;
|
|
524
527
|
};
|
|
525
|
-
description: string;
|
|
526
528
|
id: string;
|
|
527
|
-
schemaVersion: string;
|
|
528
529
|
version: string;
|
|
530
|
+
description: string;
|
|
529
531
|
parentCapsule: string | null;
|
|
530
532
|
retrievalPolicy: {
|
|
531
533
|
tierWeights: Record<string, number>;
|
|
@@ -537,28 +539,28 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
537
539
|
forkRoot: string;
|
|
538
540
|
} | null;
|
|
539
541
|
};
|
|
540
|
-
schemaVersion: 2;
|
|
541
|
-
includesTranscripts: boolean;
|
|
542
542
|
}, {
|
|
543
|
-
|
|
543
|
+
schemaVersion: 2;
|
|
544
544
|
createdAt: string;
|
|
545
|
-
pluginVersion: string;
|
|
546
545
|
files: {
|
|
547
546
|
path: string;
|
|
548
547
|
sha256: string;
|
|
549
548
|
bytes: number;
|
|
550
549
|
}[];
|
|
550
|
+
format: "openclaw-engram-export";
|
|
551
|
+
pluginVersion: string;
|
|
552
|
+
includesTranscripts: boolean;
|
|
551
553
|
capsule: {
|
|
554
|
+
schemaVersion: string;
|
|
552
555
|
includes: {
|
|
553
556
|
procedural: boolean;
|
|
554
557
|
taxonomy: boolean;
|
|
555
558
|
identityAnchors: boolean;
|
|
556
559
|
peerProfiles: boolean;
|
|
557
560
|
};
|
|
558
|
-
description: string;
|
|
559
561
|
id: string;
|
|
560
|
-
schemaVersion: string;
|
|
561
562
|
version: string;
|
|
563
|
+
description: string;
|
|
562
564
|
parentCapsule: string | null;
|
|
563
565
|
retrievalPolicy: {
|
|
564
566
|
tierWeights: Record<string, number>;
|
|
@@ -570,8 +572,6 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
570
572
|
forkRoot: string;
|
|
571
573
|
} | null | undefined;
|
|
572
574
|
};
|
|
573
|
-
schemaVersion: 2;
|
|
574
|
-
includesTranscripts: boolean;
|
|
575
575
|
}>;
|
|
576
576
|
type ExportManifestV2 = z.infer<typeof ExportManifestV2Schema>;
|
|
577
577
|
declare const ExportBundleV2Schema: z.ZodObject<{
|
|
@@ -683,16 +683,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
683
683
|
peerProfiles: boolean;
|
|
684
684
|
}>;
|
|
685
685
|
}, "strip", z.ZodTypeAny, {
|
|
686
|
+
schemaVersion: string;
|
|
686
687
|
includes: {
|
|
687
688
|
procedural: boolean;
|
|
688
689
|
taxonomy: boolean;
|
|
689
690
|
identityAnchors: boolean;
|
|
690
691
|
peerProfiles: boolean;
|
|
691
692
|
};
|
|
692
|
-
description: string;
|
|
693
693
|
id: string;
|
|
694
|
-
schemaVersion: string;
|
|
695
694
|
version: string;
|
|
695
|
+
description: string;
|
|
696
696
|
parentCapsule: string | null;
|
|
697
697
|
retrievalPolicy: {
|
|
698
698
|
tierWeights: Record<string, number>;
|
|
@@ -704,16 +704,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
704
704
|
forkRoot: string;
|
|
705
705
|
} | null;
|
|
706
706
|
}, {
|
|
707
|
+
schemaVersion: string;
|
|
707
708
|
includes: {
|
|
708
709
|
procedural: boolean;
|
|
709
710
|
taxonomy: boolean;
|
|
710
711
|
identityAnchors: boolean;
|
|
711
712
|
peerProfiles: boolean;
|
|
712
713
|
};
|
|
713
|
-
description: string;
|
|
714
714
|
id: string;
|
|
715
|
-
schemaVersion: string;
|
|
716
715
|
version: string;
|
|
716
|
+
description: string;
|
|
717
717
|
parentCapsule: string | null;
|
|
718
718
|
retrievalPolicy: {
|
|
719
719
|
tierWeights: Record<string, number>;
|
|
@@ -726,25 +726,27 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
726
726
|
} | null | undefined;
|
|
727
727
|
}>;
|
|
728
728
|
}, "strip", z.ZodTypeAny, {
|
|
729
|
-
|
|
729
|
+
schemaVersion: 2;
|
|
730
730
|
createdAt: string;
|
|
731
|
-
pluginVersion: string;
|
|
732
731
|
files: {
|
|
733
732
|
path: string;
|
|
734
733
|
sha256: string;
|
|
735
734
|
bytes: number;
|
|
736
735
|
}[];
|
|
736
|
+
format: "openclaw-engram-export";
|
|
737
|
+
pluginVersion: string;
|
|
738
|
+
includesTranscripts: boolean;
|
|
737
739
|
capsule: {
|
|
740
|
+
schemaVersion: string;
|
|
738
741
|
includes: {
|
|
739
742
|
procedural: boolean;
|
|
740
743
|
taxonomy: boolean;
|
|
741
744
|
identityAnchors: boolean;
|
|
742
745
|
peerProfiles: boolean;
|
|
743
746
|
};
|
|
744
|
-
description: string;
|
|
745
747
|
id: string;
|
|
746
|
-
schemaVersion: string;
|
|
747
748
|
version: string;
|
|
749
|
+
description: string;
|
|
748
750
|
parentCapsule: string | null;
|
|
749
751
|
retrievalPolicy: {
|
|
750
752
|
tierWeights: Record<string, number>;
|
|
@@ -756,28 +758,28 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
756
758
|
forkRoot: string;
|
|
757
759
|
} | null;
|
|
758
760
|
};
|
|
759
|
-
schemaVersion: 2;
|
|
760
|
-
includesTranscripts: boolean;
|
|
761
761
|
}, {
|
|
762
|
-
|
|
762
|
+
schemaVersion: 2;
|
|
763
763
|
createdAt: string;
|
|
764
|
-
pluginVersion: string;
|
|
765
764
|
files: {
|
|
766
765
|
path: string;
|
|
767
766
|
sha256: string;
|
|
768
767
|
bytes: number;
|
|
769
768
|
}[];
|
|
769
|
+
format: "openclaw-engram-export";
|
|
770
|
+
pluginVersion: string;
|
|
771
|
+
includesTranscripts: boolean;
|
|
770
772
|
capsule: {
|
|
773
|
+
schemaVersion: string;
|
|
771
774
|
includes: {
|
|
772
775
|
procedural: boolean;
|
|
773
776
|
taxonomy: boolean;
|
|
774
777
|
identityAnchors: boolean;
|
|
775
778
|
peerProfiles: boolean;
|
|
776
779
|
};
|
|
777
|
-
description: string;
|
|
778
780
|
id: string;
|
|
779
|
-
schemaVersion: string;
|
|
780
781
|
version: string;
|
|
782
|
+
description: string;
|
|
781
783
|
parentCapsule: string | null;
|
|
782
784
|
retrievalPolicy: {
|
|
783
785
|
tierWeights: Record<string, number>;
|
|
@@ -789,8 +791,6 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
789
791
|
forkRoot: string;
|
|
790
792
|
} | null | undefined;
|
|
791
793
|
};
|
|
792
|
-
schemaVersion: 2;
|
|
793
|
-
includesTranscripts: boolean;
|
|
794
794
|
}>;
|
|
795
795
|
records: z.ZodArray<z.ZodObject<{
|
|
796
796
|
path: z.ZodString;
|
|
@@ -804,25 +804,27 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
804
804
|
}>, "many">;
|
|
805
805
|
}, "strip", z.ZodTypeAny, {
|
|
806
806
|
manifest: {
|
|
807
|
-
|
|
807
|
+
schemaVersion: 2;
|
|
808
808
|
createdAt: string;
|
|
809
|
-
pluginVersion: string;
|
|
810
809
|
files: {
|
|
811
810
|
path: string;
|
|
812
811
|
sha256: string;
|
|
813
812
|
bytes: number;
|
|
814
813
|
}[];
|
|
814
|
+
format: "openclaw-engram-export";
|
|
815
|
+
pluginVersion: string;
|
|
816
|
+
includesTranscripts: boolean;
|
|
815
817
|
capsule: {
|
|
818
|
+
schemaVersion: string;
|
|
816
819
|
includes: {
|
|
817
820
|
procedural: boolean;
|
|
818
821
|
taxonomy: boolean;
|
|
819
822
|
identityAnchors: boolean;
|
|
820
823
|
peerProfiles: boolean;
|
|
821
824
|
};
|
|
822
|
-
description: string;
|
|
823
825
|
id: string;
|
|
824
|
-
schemaVersion: string;
|
|
825
826
|
version: string;
|
|
827
|
+
description: string;
|
|
826
828
|
parentCapsule: string | null;
|
|
827
829
|
retrievalPolicy: {
|
|
828
830
|
tierWeights: Record<string, number>;
|
|
@@ -834,8 +836,6 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
834
836
|
forkRoot: string;
|
|
835
837
|
} | null;
|
|
836
838
|
};
|
|
837
|
-
schemaVersion: 2;
|
|
838
|
-
includesTranscripts: boolean;
|
|
839
839
|
};
|
|
840
840
|
records: {
|
|
841
841
|
content: string;
|
|
@@ -843,25 +843,27 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
843
843
|
}[];
|
|
844
844
|
}, {
|
|
845
845
|
manifest: {
|
|
846
|
-
|
|
846
|
+
schemaVersion: 2;
|
|
847
847
|
createdAt: string;
|
|
848
|
-
pluginVersion: string;
|
|
849
848
|
files: {
|
|
850
849
|
path: string;
|
|
851
850
|
sha256: string;
|
|
852
851
|
bytes: number;
|
|
853
852
|
}[];
|
|
853
|
+
format: "openclaw-engram-export";
|
|
854
|
+
pluginVersion: string;
|
|
855
|
+
includesTranscripts: boolean;
|
|
854
856
|
capsule: {
|
|
857
|
+
schemaVersion: string;
|
|
855
858
|
includes: {
|
|
856
859
|
procedural: boolean;
|
|
857
860
|
taxonomy: boolean;
|
|
858
861
|
identityAnchors: boolean;
|
|
859
862
|
peerProfiles: boolean;
|
|
860
863
|
};
|
|
861
|
-
description: string;
|
|
862
864
|
id: string;
|
|
863
|
-
schemaVersion: string;
|
|
864
865
|
version: string;
|
|
866
|
+
description: string;
|
|
865
867
|
parentCapsule: string | null;
|
|
866
868
|
retrievalPolicy: {
|
|
867
869
|
tierWeights: Record<string, number>;
|
|
@@ -873,8 +875,6 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
873
875
|
forkRoot: string;
|
|
874
876
|
} | null | undefined;
|
|
875
877
|
};
|
|
876
|
-
schemaVersion: 2;
|
|
877
|
-
includesTranscripts: boolean;
|
|
878
878
|
};
|
|
879
879
|
records: {
|
|
880
880
|
content: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TrustScoreResult, TrustSignals, TrustBand, TrustScoreComponent } from './trust-score.js';
|
|
2
|
-
import { F as FaithfulnessFrontmatter, N as ProvenanceSource, O as TrustWeights } from './types-
|
|
2
|
+
import { F as FaithfulnessFrontmatter, N as ProvenanceSource, O as TrustWeights } from './types-DpxqC8dI.js';
|
|
3
3
|
import './message-parts/index.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/trust-score.d.ts
CHANGED
|
@@ -709,6 +709,10 @@ interface AgentAccessHttpConfig {
|
|
|
709
709
|
authToken?: AgentAccessAuthToken;
|
|
710
710
|
principal?: string;
|
|
711
711
|
maxBodyBytes: number;
|
|
712
|
+
/** Max write requests per rolling window before 429 write_rate_limited (issue #1937). */
|
|
713
|
+
writeRateLimitMaxRequests: number;
|
|
714
|
+
/** Rolling window for the write rate limit, in ms (issue #1937). */
|
|
715
|
+
writeRateLimitWindowMs: number;
|
|
712
716
|
}
|
|
713
717
|
interface DreamingConfig {
|
|
714
718
|
enabled: boolean;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { aD as AccessTrackingEntry, A as ActiveRecallChatType, f as ActiveRecallModelFallbackPolicy, d as ActiveRecallPromptStyle, c as ActiveRecallQueryMode, e as ActiveRecallThinking, a3 as AgentAccessAuthToken, bp as AgentAccessHttpConfig, bq as AgentDefaultsConfig, br as AgentPersona, r as AgentPersonaModelConfig, bs as BehaviorLoopAdjustment, g as BehaviorLoopPolicyState, bt as BehaviorSignalDirection, B as BehaviorSignalEvent, bu as BehaviorSignalType, aW as BootstrapOptions, aX as BootstrapResult, l as BriefingActiveThread, bv as BriefingCalendarSourceError, b2 as BriefingConfig, j as BriefingFocus, i as BriefingFollowup, b3 as BriefingOpenCommitment, n as BriefingRecentEntity, m as BriefingResult, h as BriefingSections, b4 as BriefingWindow, bw as BufferEntryState, ay as BufferState, Z as BufferSurpriseEvent, o as BufferTurn, k as CalendarEvent, C as CalendarSource, bx as CaptureMode, by as ChatConfig, q as Checkpoint, bz as CodexCliReasoningEffort, bA as CodexCompactionFlushMode, b7 as CodexCompatConfig, bB as CodexConnectorConfig, aG as CodingContext, bC as CodingGraphLspConfig, a_ as CodingKnowledgeConfig, aZ as CodingModeConfig, bD as CompressionGuidelineActivationState, a5 as CompressionGuidelineOptimizerActionSummary, a4 as CompressionGuidelineOptimizerEventCounts, a6 as CompressionGuidelineOptimizerRuleUpdate, bE as CompressionGuidelineOptimizerSourceWindow, a9 as CompressionGuidelineOptimizerState, bF as ConfidenceTier, bG as ConsolidationAction, bH as ConsolidationItem, aY as ConsolidationObservation, z as ConsolidationResult, ah as ContinuityImprovementLoop, af as ContinuityIncidentCloseInput, ag as ContinuityIncidentOpenInput, ae as ContinuityIncidentRecord, bI as ContinuityIncidentState, bJ as ContinuityLoopCadence, ai as ContinuityLoopReviewInput, bK as ContinuityLoopStatus, aj as ContinuityLoopUpsertInput, bL as ContradictionScanConfig, U as ConversationThread, bM as CronConversationRecallMode, bN as CronRecallMode, b8 as DEFAULT_RECALL_DISCLOSURE, J as DaySummaryResult, bO as DreamingConfig, bP as DreamingNarrativePromptStyle, bQ as DreamsDeepSleepConfig, bR as DreamsLightSleepConfig, D as DreamsPhase, bS as DreamsPhaseStatus, bT as DreamsPhasesConfig, bU as DreamsRemConfig, a as DreamsRunResult, aH as DreamsStatusResult, bV as EngramTraceEvent, aC as EntityActivityEntry, E as EntityFile, aa as EntityMention, aB as EntityRelationship, ab as EntitySchemaDefinition, ac as EntitySchemaSectionDefinition, ad as EntityStructuredSection, aF as EntityTimelineEntry, b9 as ExtractedFact, bW as ExtractedProcedureStep, bX as ExtractedQuestion, bY as ExtractedReasoningTrace, bZ as ExtractedReasoningTraceStep, b_ as ExtractedRelationship, K as ExtractionFailureClass, b$ as ExtractionPassSource, y as ExtractionResult, F as FaithfulnessFrontmatter, aA as FileHygieneConfig, G as GatewayConfig, c0 as GitHubLiveConnectorConfig, c1 as GmailLiveConnectorConfig, c2 as GoogleDriveLiveConnectorConfig, c3 as HeartbeatConfig, c4 as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, Y as ImportanceLevel, ak as ImportanceScore, V as LifecycleState, L as LiveConnectorsConfig, c5 as LlmTraceCallback, c6 as LlmTraceEvent, am as MemoryActionEligibilityContext, bc as MemoryActionEligibilitySource, a8 as MemoryActionEvent, c7 as MemoryActionOutcome, c8 as MemoryActionPolicyDecision, an as MemoryActionPolicyResult, c9 as MemoryActionStatus, a7 as MemoryActionType, u as MemoryCategory, M as MemoryFile, p as MemoryFrontmatter, al as MemoryIntent, x as MemoryLifecycleEvent, ao as MemoryLifecycleEventType, ap as MemoryLifecycleStateSummary, ax as MemoryLink, ca as MemoryLinkType, bd as MemoryObservation, cb as MemoryOsPresetName, w as MemoryProjectionCurrentState, be as MemoryScope, v as MemoryStatus, aE as MemorySummary, az as MetaState, cc as ModelApi, cd as ModelDefinitionConfig, ce as ModelProviderAuthMode, aq as ModelProviderConfig, cf as NamespacePolicy, ar as NativeKnowledgeConfig, cg as NativeKnowledgeFolderRuleConfig, ch as NativeKnowledgeObsidianVaultConfig, ci as NativeKnowledgeOpenClawWorkspaceConfig, cj as NotionLiveConnectorConfig, P as PluginConfig, X as PolicyClass, ck as PrincipalFromSessionKeyMode, cl as PrincipalRule, cm as ProceduralConfig, as as ProvenanceConfig, N as ProvenanceSource, aw as QmdSearchExplain, Q as QmdSearchResult, cn as QuestionEntry, bf as RECALL_DISCLOSURE_LEVELS, co as ReasoningEffort, R as RecallDisclosure, cp as RecallPipelineConfig, b as RecallPlanMode, aV as RecallSectionConfig, s as RecallTierExplain, cq as RecallTraceEvent, cr as RelevanceFeedback, at as RetrievalTier, cs as SPECULATIVE_TTL_DAYS, ct as ScopeProfileAutoPromoteConfig, aI as ScopeProfileConfig, aJ as ScopeProfileLayerId, aK as ScopeProfilePromotionTarget, cu as ScopeProfileTeamProjectConfig, cv as ScopeTeamConfig, cw as ScoredEntity, a2 as SecretRef, cx as SemanticChunkingConfigShape, S as SessionObserverBandConfig, cy as SignalLevel, au as SignalScanResult, cz as SlotBehaviorConfig, cA as SlotMismatchMode, t as SourceConnectorProvenance, av as TopicScore, T as TranscriptEntry, cB as TriggerMode, O as TrustWeights, W as VerificationState, cC as confidenceTier, bm as isRecallDisclosure } from './types-
|
|
1
|
+
export { aD as AccessTrackingEntry, A as ActiveRecallChatType, f as ActiveRecallModelFallbackPolicy, d as ActiveRecallPromptStyle, c as ActiveRecallQueryMode, e as ActiveRecallThinking, a3 as AgentAccessAuthToken, bp as AgentAccessHttpConfig, bq as AgentDefaultsConfig, br as AgentPersona, r as AgentPersonaModelConfig, bs as BehaviorLoopAdjustment, g as BehaviorLoopPolicyState, bt as BehaviorSignalDirection, B as BehaviorSignalEvent, bu as BehaviorSignalType, aW as BootstrapOptions, aX as BootstrapResult, l as BriefingActiveThread, bv as BriefingCalendarSourceError, b2 as BriefingConfig, j as BriefingFocus, i as BriefingFollowup, b3 as BriefingOpenCommitment, n as BriefingRecentEntity, m as BriefingResult, h as BriefingSections, b4 as BriefingWindow, bw as BufferEntryState, ay as BufferState, Z as BufferSurpriseEvent, o as BufferTurn, k as CalendarEvent, C as CalendarSource, bx as CaptureMode, by as ChatConfig, q as Checkpoint, bz as CodexCliReasoningEffort, bA as CodexCompactionFlushMode, b7 as CodexCompatConfig, bB as CodexConnectorConfig, aG as CodingContext, bC as CodingGraphLspConfig, a_ as CodingKnowledgeConfig, aZ as CodingModeConfig, bD as CompressionGuidelineActivationState, a5 as CompressionGuidelineOptimizerActionSummary, a4 as CompressionGuidelineOptimizerEventCounts, a6 as CompressionGuidelineOptimizerRuleUpdate, bE as CompressionGuidelineOptimizerSourceWindow, a9 as CompressionGuidelineOptimizerState, bF as ConfidenceTier, bG as ConsolidationAction, bH as ConsolidationItem, aY as ConsolidationObservation, z as ConsolidationResult, ah as ContinuityImprovementLoop, af as ContinuityIncidentCloseInput, ag as ContinuityIncidentOpenInput, ae as ContinuityIncidentRecord, bI as ContinuityIncidentState, bJ as ContinuityLoopCadence, ai as ContinuityLoopReviewInput, bK as ContinuityLoopStatus, aj as ContinuityLoopUpsertInput, bL as ContradictionScanConfig, U as ConversationThread, bM as CronConversationRecallMode, bN as CronRecallMode, b8 as DEFAULT_RECALL_DISCLOSURE, J as DaySummaryResult, bO as DreamingConfig, bP as DreamingNarrativePromptStyle, bQ as DreamsDeepSleepConfig, bR as DreamsLightSleepConfig, D as DreamsPhase, bS as DreamsPhaseStatus, bT as DreamsPhasesConfig, bU as DreamsRemConfig, a as DreamsRunResult, aH as DreamsStatusResult, bV as EngramTraceEvent, aC as EntityActivityEntry, E as EntityFile, aa as EntityMention, aB as EntityRelationship, ab as EntitySchemaDefinition, ac as EntitySchemaSectionDefinition, ad as EntityStructuredSection, aF as EntityTimelineEntry, b9 as ExtractedFact, bW as ExtractedProcedureStep, bX as ExtractedQuestion, bY as ExtractedReasoningTrace, bZ as ExtractedReasoningTraceStep, b_ as ExtractedRelationship, K as ExtractionFailureClass, b$ as ExtractionPassSource, y as ExtractionResult, F as FaithfulnessFrontmatter, aA as FileHygieneConfig, G as GatewayConfig, c0 as GitHubLiveConnectorConfig, c1 as GmailLiveConnectorConfig, c2 as GoogleDriveLiveConnectorConfig, c3 as HeartbeatConfig, c4 as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, Y as ImportanceLevel, ak as ImportanceScore, V as LifecycleState, L as LiveConnectorsConfig, c5 as LlmTraceCallback, c6 as LlmTraceEvent, am as MemoryActionEligibilityContext, bc as MemoryActionEligibilitySource, a8 as MemoryActionEvent, c7 as MemoryActionOutcome, c8 as MemoryActionPolicyDecision, an as MemoryActionPolicyResult, c9 as MemoryActionStatus, a7 as MemoryActionType, u as MemoryCategory, M as MemoryFile, p as MemoryFrontmatter, al as MemoryIntent, x as MemoryLifecycleEvent, ao as MemoryLifecycleEventType, ap as MemoryLifecycleStateSummary, ax as MemoryLink, ca as MemoryLinkType, bd as MemoryObservation, cb as MemoryOsPresetName, w as MemoryProjectionCurrentState, be as MemoryScope, v as MemoryStatus, aE as MemorySummary, az as MetaState, cc as ModelApi, cd as ModelDefinitionConfig, ce as ModelProviderAuthMode, aq as ModelProviderConfig, cf as NamespacePolicy, ar as NativeKnowledgeConfig, cg as NativeKnowledgeFolderRuleConfig, ch as NativeKnowledgeObsidianVaultConfig, ci as NativeKnowledgeOpenClawWorkspaceConfig, cj as NotionLiveConnectorConfig, P as PluginConfig, X as PolicyClass, ck as PrincipalFromSessionKeyMode, cl as PrincipalRule, cm as ProceduralConfig, as as ProvenanceConfig, N as ProvenanceSource, aw as QmdSearchExplain, Q as QmdSearchResult, cn as QuestionEntry, bf as RECALL_DISCLOSURE_LEVELS, co as ReasoningEffort, R as RecallDisclosure, cp as RecallPipelineConfig, b as RecallPlanMode, aV as RecallSectionConfig, s as RecallTierExplain, cq as RecallTraceEvent, cr as RelevanceFeedback, at as RetrievalTier, cs as SPECULATIVE_TTL_DAYS, ct as ScopeProfileAutoPromoteConfig, aI as ScopeProfileConfig, aJ as ScopeProfileLayerId, aK as ScopeProfilePromotionTarget, cu as ScopeProfileTeamProjectConfig, cv as ScopeTeamConfig, cw as ScoredEntity, a2 as SecretRef, cx as SemanticChunkingConfigShape, S as SessionObserverBandConfig, cy as SignalLevel, au as SignalScanResult, cz as SlotBehaviorConfig, cA as SlotMismatchMode, t as SourceConnectorProvenance, av as TopicScore, T as TranscriptEntry, cB as TriggerMode, O as TrustWeights, W as VerificationState, cC as confidenceTier, bm as isRecallDisclosure } from './types-DpxqC8dI.js';
|
|
2
2
|
import './message-parts/index.js';
|
package/dist/types.js
CHANGED
package/dist/verified-recall.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compareVerifiedEpisodeResults,
|
|
3
3
|
searchVerifiedEpisodes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-R2SJDIPO.js";
|
|
5
5
|
import "./chunk-2A3OXAP2.js";
|
|
6
6
|
import "./chunk-ZBJMUXZH.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-KTOH7EJE.js";
|
|
8
8
|
import "./chunk-B3ABVQ36.js";
|
|
9
9
|
import "./chunk-L2B3EE7B.js";
|
|
10
10
|
import "./chunk-5UZXUTVO.js";
|
|
@@ -15,7 +15,7 @@ import "./chunk-J6A3CX5N.js";
|
|
|
15
15
|
import "./chunk-4KJLYTLS.js";
|
|
16
16
|
import "./chunk-SVOZFLIQ.js";
|
|
17
17
|
import "./chunk-LTJAMRGI.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-JO5AT6QT.js";
|
|
19
19
|
import "./chunk-RHOZ5LLO.js";
|
|
20
20
|
import "./chunk-RL6NEVXT.js";
|
|
21
21
|
import "./chunk-AWJ2FHCF.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.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",
|
|
@@ -3000,7 +3000,7 @@
|
|
|
3000
3000
|
"core"
|
|
3001
3001
|
],
|
|
3002
3002
|
"peerDependencies": {
|
|
3003
|
-
"@remnic/coding-graph": "^9.7.
|
|
3003
|
+
"@remnic/coding-graph": "^9.7.4"
|
|
3004
3004
|
},
|
|
3005
3005
|
"peerDependenciesMeta": {
|
|
3006
3006
|
"@remnic/coding-graph": {
|
package/src/access-http.ts
CHANGED
|
@@ -86,6 +86,13 @@ export interface EngramAccessHttpServerOptions {
|
|
|
86
86
|
tokenPathPolicy?: (connector: string, pathname: string | undefined) => boolean;
|
|
87
87
|
principal?: string;
|
|
88
88
|
maxBodyBytes?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Max non-replayed write requests per rolling window before 429
|
|
91
|
+
* `write_rate_limited` (issue #1937). Positive integer; defaults to 30.
|
|
92
|
+
*/
|
|
93
|
+
writeRateLimitMaxRequests?: number;
|
|
94
|
+
/** Rolling window for the write rate limit, in ms. Positive integer; defaults to 60000. */
|
|
95
|
+
writeRateLimitWindowMs?: number;
|
|
89
96
|
adminConsoleEnabled?: boolean;
|
|
90
97
|
adminConsolePublicDir?: string;
|
|
91
98
|
/** Inject the primary auth token into the admin console shell for trusted launch surfaces. */
|
|
@@ -206,6 +213,8 @@ function resolveDefaultAdminConsolePublicDir(): string {
|
|
|
206
213
|
const defaultAdminConsolePublicDir = resolveDefaultAdminConsolePublicDir();
|
|
207
214
|
const correlationIdStore = new AsyncLocalStorage<string>();
|
|
208
215
|
|
|
216
|
+
// Defaults for the write rate limit; overridable per instance via
|
|
217
|
+
// `writeRateLimitWindowMs` / `writeRateLimitMaxRequests` (issue #1937).
|
|
209
218
|
const WRITE_RATE_LIMIT_WINDOW_MS = 60_000;
|
|
210
219
|
const WRITE_RATE_LIMIT_MAX_REQUESTS = 30;
|
|
211
220
|
const TRUST_ZONE_RECORD_KINDS = ["memory", "artifact", "state", "trajectory", "external"] as const;
|
|
@@ -370,6 +379,8 @@ export class EngramAccessHttpServer {
|
|
|
370
379
|
ctx: { authorized: boolean },
|
|
371
380
|
) => Promise<boolean>;
|
|
372
381
|
private readonly writeRequestTimestamps: number[] = [];
|
|
382
|
+
private readonly writeRateLimitMaxRequests: number;
|
|
383
|
+
private readonly writeRateLimitWindowMs: number;
|
|
373
384
|
private readonly mcpServer: EngramMcpServer;
|
|
374
385
|
private server: Server | null = null;
|
|
375
386
|
private boundPort = 0;
|
|
@@ -406,6 +417,20 @@ export class EngramAccessHttpServer {
|
|
|
406
417
|
this.maxBodyBytes = Number.isFinite(options.maxBodyBytes)
|
|
407
418
|
? Math.max(1, Math.floor(options.maxBodyBytes ?? 131072))
|
|
408
419
|
: 131072;
|
|
420
|
+
// Defensive inline validation (config parsers reject invalid values
|
|
421
|
+
// loudly upstream; this only guards direct programmatic constructions).
|
|
422
|
+
this.writeRateLimitMaxRequests =
|
|
423
|
+
typeof options.writeRateLimitMaxRequests === "number" &&
|
|
424
|
+
Number.isInteger(options.writeRateLimitMaxRequests) &&
|
|
425
|
+
options.writeRateLimitMaxRequests >= 1
|
|
426
|
+
? options.writeRateLimitMaxRequests
|
|
427
|
+
: WRITE_RATE_LIMIT_MAX_REQUESTS;
|
|
428
|
+
this.writeRateLimitWindowMs =
|
|
429
|
+
typeof options.writeRateLimitWindowMs === "number" &&
|
|
430
|
+
Number.isInteger(options.writeRateLimitWindowMs) &&
|
|
431
|
+
options.writeRateLimitWindowMs >= 1
|
|
432
|
+
? options.writeRateLimitWindowMs
|
|
433
|
+
: WRITE_RATE_LIMIT_WINDOW_MS;
|
|
409
434
|
this.adminConsoleEnabled = options.adminConsoleEnabled !== false;
|
|
410
435
|
this.adminConsolePublicDir = options.adminConsolePublicDir ?? defaultAdminConsolePublicDir;
|
|
411
436
|
this.adminConsolePrefillToken = options.adminConsolePrefillToken === true ? this.authToken : undefined;
|
|
@@ -3674,11 +3699,11 @@ export class EngramAccessHttpServer {
|
|
|
3674
3699
|
const now = Date.now();
|
|
3675
3700
|
while (
|
|
3676
3701
|
this.writeRequestTimestamps.length > 0 &&
|
|
3677
|
-
now - (this.writeRequestTimestamps[0] ?? 0) >
|
|
3702
|
+
now - (this.writeRequestTimestamps[0] ?? 0) > this.writeRateLimitWindowMs
|
|
3678
3703
|
) {
|
|
3679
3704
|
this.writeRequestTimestamps.shift();
|
|
3680
3705
|
}
|
|
3681
|
-
if (this.writeRequestTimestamps.length >=
|
|
3706
|
+
if (this.writeRequestTimestamps.length >= this.writeRateLimitMaxRequests) {
|
|
3682
3707
|
throw new HttpError(429, "write_rate_limited", "write_rate_limited");
|
|
3683
3708
|
}
|
|
3684
3709
|
}
|
package/src/cli.ts
CHANGED
|
@@ -747,6 +747,8 @@ export interface AccessHttpServeCliCommandOptions {
|
|
|
747
747
|
authToken?: string;
|
|
748
748
|
principal?: string;
|
|
749
749
|
maxBodyBytes?: number;
|
|
750
|
+
writeRateLimitMaxRequests?: number;
|
|
751
|
+
writeRateLimitWindowMs?: number;
|
|
750
752
|
trustPrincipalHeader?: boolean;
|
|
751
753
|
citationsEnabled?: boolean;
|
|
752
754
|
citationsAutoDetect?: boolean;
|
|
@@ -758,6 +760,8 @@ export interface AccessHttpServeCliCommandOptions {
|
|
|
758
760
|
authToken?: string;
|
|
759
761
|
principal?: string;
|
|
760
762
|
maxBodyBytes?: number;
|
|
763
|
+
writeRateLimitMaxRequests?: number;
|
|
764
|
+
writeRateLimitWindowMs?: number;
|
|
761
765
|
trustPrincipalHeader?: boolean;
|
|
762
766
|
citationsEnabled?: boolean;
|
|
763
767
|
citationsAutoDetect?: boolean;
|
|
@@ -2749,6 +2753,8 @@ export async function runAccessHttpServeCliCommand(
|
|
|
2749
2753
|
authToken: input.authToken,
|
|
2750
2754
|
principal: input.principal,
|
|
2751
2755
|
maxBodyBytes: input.maxBodyBytes,
|
|
2756
|
+
writeRateLimitMaxRequests: input.writeRateLimitMaxRequests,
|
|
2757
|
+
writeRateLimitWindowMs: input.writeRateLimitWindowMs,
|
|
2752
2758
|
trustPrincipalHeader: input.trustPrincipalHeader,
|
|
2753
2759
|
citationsEnabled: input.citationsEnabled,
|
|
2754
2760
|
citationsAutoDetect: input.citationsAutoDetect,
|
|
@@ -6821,6 +6827,8 @@ export function registerCli(
|
|
|
6821
6827
|
authToken: cliTokenOverride ?? resolvedConfigAuthToken,
|
|
6822
6828
|
principal: resolveAccessPrincipalOverride(options.principal, orchestrator.config.agentAccessHttp.principal),
|
|
6823
6829
|
maxBodyBytes: Number.isFinite(maxBodyBytesRaw) ? maxBodyBytesRaw : 131072,
|
|
6830
|
+
writeRateLimitMaxRequests: orchestrator.config.agentAccessHttp.writeRateLimitMaxRequests,
|
|
6831
|
+
writeRateLimitWindowMs: orchestrator.config.agentAccessHttp.writeRateLimitWindowMs,
|
|
6824
6832
|
trustPrincipalHeader: options.trustPrincipalHeader === true,
|
|
6825
6833
|
citationsEnabled: resolveConversationContextCapabilities(orchestrator.config).citations,
|
|
6826
6834
|
citationsAutoDetect: orchestrator.config.citationsAutoDetect,
|
package/src/config.ts
CHANGED
|
@@ -1515,6 +1515,16 @@ export function parseConfig(
|
|
|
1515
1515
|
typeof rawAgentAccessHttp?.maxBodyBytes === "number"
|
|
1516
1516
|
? Math.max(1, Math.floor(rawAgentAccessHttp.maxBodyBytes))
|
|
1517
1517
|
: 131072,
|
|
1518
|
+
writeRateLimitMaxRequests: resolvePositiveIntegerConfig(
|
|
1519
|
+
rawAgentAccessHttp?.writeRateLimitMaxRequests,
|
|
1520
|
+
30,
|
|
1521
|
+
"agentAccessHttp.writeRateLimitMaxRequests",
|
|
1522
|
+
),
|
|
1523
|
+
writeRateLimitWindowMs: resolvePositiveIntegerConfig(
|
|
1524
|
+
rawAgentAccessHttp?.writeRateLimitWindowMs,
|
|
1525
|
+
60_000,
|
|
1526
|
+
"agentAccessHttp.writeRateLimitWindowMs",
|
|
1527
|
+
),
|
|
1518
1528
|
};
|
|
1519
1529
|
|
|
1520
1530
|
let baseUrl: string | undefined;
|