@remnic/core 9.3.640 → 9.3.642
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access-cli.js +16 -16
- package/dist/access-http.d.ts +5 -5
- package/dist/access-http.js +9 -9
- package/dist/access-mcp.d.ts +5 -5
- package/dist/access-mcp.js +8 -8
- package/dist/{access-service-jyYute38.d.ts → access-service-DFXIlGvZ.d.ts} +2 -2
- package/dist/access-service.d.ts +5 -5
- package/dist/access-service.js +7 -7
- package/dist/action-confidence.d.ts +2 -2
- package/dist/active-memory-bridge.d.ts +2 -2
- package/dist/active-recall.d.ts +2 -2
- package/dist/behavior-learner.d.ts +2 -2
- package/dist/behavior-signals.d.ts +2 -2
- package/dist/bootstrap.d.ts +4 -4
- package/dist/briefing.d.ts +2 -2
- package/dist/briefing.js +3 -3
- package/dist/buffer-surprise-report.d.ts +2 -2
- package/dist/buffer.d.ts +2 -2
- package/dist/bulk-import/index.d.ts +3 -3
- package/dist/bulk-import/index.js +2 -2
- package/dist/calibration.d.ts +2 -2
- package/dist/causal-behavior.d.ts +2 -2
- package/dist/causal-consolidation.d.ts +2 -2
- package/dist/causal-consolidation.js +4 -4
- package/dist/{chunk-WAKPKNEX.js → chunk-3UR4SBZF.js} +307 -70
- package/dist/chunk-3UR4SBZF.js.map +1 -0
- package/dist/{chunk-RJGPH2Q3.js → chunk-4HYLRROV.js} +2 -2
- package/dist/{chunk-3AZDLWDW.js → chunk-4HYWWO3W.js} +3 -3
- package/dist/{chunk-ISMZIMD3.js → chunk-4MNDVDBS.js} +2 -2
- package/dist/{chunk-JFHEEDRY.js → chunk-5IDVOWBE.js} +3 -3
- package/dist/{chunk-4GYGEKUB.js → chunk-6DDBW2V4.js} +4 -4
- package/dist/{chunk-LUDUFZTV.js → chunk-ABP6QMVM.js} +2 -2
- package/dist/chunk-ABP6QMVM.js.map +1 -0
- package/dist/{chunk-UZBK2JR6.js → chunk-ACNU2UBF.js} +16 -16
- package/dist/{chunk-UDZYZ5Q5.js → chunk-AK4DSORQ.js} +7 -7
- package/dist/{chunk-CMZLMIZI.js → chunk-BEMWL2FZ.js} +2 -2
- package/dist/{chunk-3F7RMHC4.js → chunk-C43KEWEV.js} +1 -1
- package/dist/{chunk-3F7RMHC4.js.map → chunk-C43KEWEV.js.map} +1 -1
- package/dist/{chunk-H2NCNXMS.js → chunk-CKITWVWJ.js} +2 -2
- package/dist/{chunk-C4YAIWDG.js → chunk-DM4US77W.js} +2 -2
- package/dist/{chunk-SBHQBC37.js → chunk-ECMMM2VE.js} +2 -2
- package/dist/{chunk-YMI4NRV7.js → chunk-EGBH5IPJ.js} +4 -4
- package/dist/{chunk-SHHT4JTC.js → chunk-GYITUZFT.js} +2 -2
- package/dist/{chunk-EKIQBGAY.js → chunk-IENGGY2C.js} +2 -2
- package/dist/{chunk-UU5LHD6J.js → chunk-NLPH23IQ.js} +2 -2
- package/dist/{chunk-A3UPMOJZ.js → chunk-NV2MGIW7.js} +2 -2
- package/dist/{chunk-PU44GBL4.js → chunk-OUELRE5E.js} +1 -1
- package/dist/chunk-OUELRE5E.js.map +1 -0
- package/dist/{chunk-J2KFC47S.js → chunk-RFSCIBCB.js} +2 -2
- package/dist/{chunk-IXSTQGYV.js → chunk-RREI7CNM.js} +2 -2
- package/dist/{chunk-C6XO6ONP.js → chunk-SZL2GGFY.js} +2 -2
- package/dist/{chunk-7XRSLMUD.js → chunk-THWT7RJU.js} +2 -2
- package/dist/{chunk-H4RWKZE2.js → chunk-TKNTAUA3.js} +2 -2
- package/dist/{chunk-7OH7KPF5.js → chunk-TTOYT5RB.js} +2 -2
- package/dist/{chunk-SEOTBRO4.js → chunk-U3GQ33JC.js} +35 -6
- package/dist/chunk-U3GQ33JC.js.map +1 -0
- package/dist/{chunk-C3EJ3UIS.js → chunk-WLGE6KEO.js} +3 -3
- package/dist/{cli-A4AIhv9e.d.ts → cli-DrL2Nv4j.d.ts} +5 -5
- package/dist/cli.d.ts +7 -7
- package/dist/cli.js +21 -21
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +3 -3
- package/dist/compounding/preference-consolidator.d.ts +2 -2
- package/dist/compression-optimizer.d.ts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/connectors/codex-materialize-runner.d.ts +2 -2
- package/dist/connectors/codex-materialize-runner.js +3 -3
- package/dist/connectors/codex-materialize.d.ts +2 -2
- package/dist/connectors/index.d.ts +2 -2
- 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 +2 -2
- package/dist/conversation-index/chunker.d.ts +2 -2
- package/dist/conversation-index/faiss-adapter.d.ts +2 -2
- package/dist/conversation-index/indexer.d.ts +2 -2
- package/dist/conversation-index/search.d.ts +2 -2
- package/dist/day-summary.d.ts +2 -2
- package/dist/delinearize.d.ts +2 -2
- package/dist/direct-answer-wiring.d.ts +2 -2
- package/dist/direct-answer.d.ts +2 -2
- package/dist/embedding-fallback.d.ts +2 -2
- package/dist/enrichment/index.d.ts +2 -2
- package/dist/entity-retrieval.d.ts +2 -2
- package/dist/entity-retrieval.js +3 -3
- package/dist/entity-schema.d.ts +2 -2
- package/dist/explicit-capture.d.ts +4 -4
- package/dist/extraction-judge-telemetry.d.ts +2 -2
- package/dist/extraction-judge-training.d.ts +2 -2
- package/dist/extraction-judge.d.ts +2 -2
- package/dist/extraction.d.ts +2 -2
- package/dist/extraction.js +1 -1
- package/dist/fallback-llm.d.ts +2 -2
- package/dist/identity-continuity.d.ts +2 -2
- package/dist/importance.d.ts +2 -2
- package/dist/importers/index.d.ts +2 -2
- package/dist/importers/index.js +2 -2
- package/dist/index.d.ts +138 -11
- package/dist/index.js +940 -92
- package/dist/index.js.map +1 -1
- package/dist/intent.d.ts +2 -2
- package/dist/lcm/engine.d.ts +2 -2
- package/dist/lcm/index.d.ts +2 -2
- package/dist/lcm/tools.d.ts +2 -2
- package/dist/lifecycle.d.ts +2 -2
- package/dist/live-connectors-runner.d.ts +2 -2
- package/dist/local-llm.d.ts +2 -2
- package/dist/maintenance/memory-governance.d.ts +2 -2
- 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 +5 -5
- package/dist/memory-action-policy.d.ts +2 -2
- package/dist/memory-cache.d.ts +2 -2
- package/dist/memory-lifecycle-ledger-utils.d.ts +2 -2
- package/dist/memory-projection-store.d.ts +2 -2
- package/dist/memory-provenance.d.ts +2 -2
- package/dist/memory-worth-outcomes.d.ts +2 -2
- package/dist/models-json.d.ts +2 -2
- package/dist/namespaces/migrate.d.ts +2 -2
- package/dist/namespaces/migrate.js +4 -4
- package/dist/namespaces/principal.d.ts +2 -2
- package/dist/namespaces/search.d.ts +2 -2
- package/dist/namespaces/storage.d.ts +2 -2
- package/dist/namespaces/storage.js +3 -3
- package/dist/native-knowledge.d.ts +2 -2
- package/dist/operator-toolkit.d.ts +2 -2
- package/dist/operator-toolkit.js +6 -6
- package/dist/{orchestrator-BEDTiuEO.d.ts → orchestrator-DEQW9j0Z.d.ts} +22 -5
- package/dist/orchestrator.d.ts +4 -4
- package/dist/orchestrator.js +15 -13
- package/dist/patterns-cli.d.ts +2 -2
- package/dist/{pipeline-D18UAKlN.d.ts → pipeline-BSTuml0d.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +2 -2
- package/dist/qmd-recall-cache.d.ts +2 -2
- package/dist/qmd.d.ts +2 -2
- package/dist/recall-disclosure-escalation.d.ts +2 -2
- package/dist/recall-explain-renderer.d.ts +2 -2
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-planner-llm.d.ts +2 -2
- package/dist/recall-state.d.ts +2 -2
- package/dist/recall-tag-filter.d.ts +2 -2
- package/dist/recall-xray-cli.d.ts +2 -2
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +2 -2
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +2 -2
- package/dist/recall-xray.js +2 -2
- package/dist/resolve-auth-token.d.ts +2 -2
- package/dist/retrieval-agents.d.ts +2 -2
- package/dist/retrieval-tiers.d.ts +2 -2
- package/dist/routing/engine.d.ts +2 -2
- package/dist/routing/store.d.ts +2 -2
- package/dist/search/embed-helper.d.ts +2 -2
- package/dist/search/factory.d.ts +2 -2
- package/dist/search/index.d.ts +2 -2
- package/dist/search/lancedb-backend.d.ts +2 -2
- package/dist/search/meilisearch-backend.d.ts +2 -2
- package/dist/search/noop-backend.d.ts +2 -2
- package/dist/search/orama-backend.d.ts +2 -2
- package/dist/search/port.d.ts +2 -2
- package/dist/search/remote-backend.d.ts +2 -2
- package/dist/{semantic-consolidation-Byut1ufK.d.ts → semantic-consolidation-DKdYzQOg.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +3 -3
- package/dist/semantic-consolidation.js +4 -4
- package/dist/semantic-rule-promotion.js +3 -3
- package/dist/semantic-rule-verifier.d.ts +2 -2
- package/dist/semantic-rule-verifier.js +3 -3
- package/dist/session-observer-bands.d.ts +2 -2
- package/dist/session-observer-state.d.ts +2 -2
- package/dist/shared-context/manager.d.ts +2 -2
- package/dist/signal.d.ts +2 -2
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +2 -2
- package/dist/summarizer.d.ts +2 -2
- package/dist/summary-snapshot.d.ts +2 -2
- package/dist/temporal-supersession.d.ts +2 -2
- package/dist/temporal-validity.d.ts +2 -2
- package/dist/threading.d.ts +2 -2
- package/dist/tier-migration.d.ts +2 -2
- package/dist/tier-routing.d.ts +2 -2
- package/dist/topics.d.ts +2 -2
- package/dist/transcript.d.ts +2 -2
- package/dist/{types-BliCnURB.d.ts → types-ByK7T3L6.d.ts} +2 -0
- package/dist/{types-BzA1FKbg.d.ts → types-D8yUmSik.d.ts} +2 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +2 -2
- package/dist/verified-recall.js +3 -3
- package/package.json +1 -1
- package/src/bulk-import/types.ts +2 -0
- package/src/extraction-timeout.test.ts +6 -1
- package/src/extraction.ts +34 -5
- package/src/importers/base.ts +1 -1
- package/src/index.ts +7 -4
- package/src/orchestrator-flush.test.ts +640 -42
- package/src/orchestrator.ts +389 -70
- package/src/session-summaries/adapters.ts +438 -0
- package/src/session-summaries/index.ts +401 -0
- package/src/session-summaries/redaction.ts +160 -0
- package/src/session-summaries/session-summaries.test.ts +1748 -0
- package/src/session-summaries/types.ts +130 -0
- package/src/types.ts +1 -0
- package/dist/chunk-LUDUFZTV.js.map +0 -1
- package/dist/chunk-PU44GBL4.js.map +0 -1
- package/dist/chunk-SEOTBRO4.js.map +0 -1
- package/dist/chunk-WAKPKNEX.js.map +0 -1
- /package/dist/{chunk-RJGPH2Q3.js.map → chunk-4HYLRROV.js.map} +0 -0
- /package/dist/{chunk-3AZDLWDW.js.map → chunk-4HYWWO3W.js.map} +0 -0
- /package/dist/{chunk-ISMZIMD3.js.map → chunk-4MNDVDBS.js.map} +0 -0
- /package/dist/{chunk-JFHEEDRY.js.map → chunk-5IDVOWBE.js.map} +0 -0
- /package/dist/{chunk-4GYGEKUB.js.map → chunk-6DDBW2V4.js.map} +0 -0
- /package/dist/{chunk-UZBK2JR6.js.map → chunk-ACNU2UBF.js.map} +0 -0
- /package/dist/{chunk-UDZYZ5Q5.js.map → chunk-AK4DSORQ.js.map} +0 -0
- /package/dist/{chunk-CMZLMIZI.js.map → chunk-BEMWL2FZ.js.map} +0 -0
- /package/dist/{chunk-H2NCNXMS.js.map → chunk-CKITWVWJ.js.map} +0 -0
- /package/dist/{chunk-C4YAIWDG.js.map → chunk-DM4US77W.js.map} +0 -0
- /package/dist/{chunk-SBHQBC37.js.map → chunk-ECMMM2VE.js.map} +0 -0
- /package/dist/{chunk-YMI4NRV7.js.map → chunk-EGBH5IPJ.js.map} +0 -0
- /package/dist/{chunk-SHHT4JTC.js.map → chunk-GYITUZFT.js.map} +0 -0
- /package/dist/{chunk-EKIQBGAY.js.map → chunk-IENGGY2C.js.map} +0 -0
- /package/dist/{chunk-UU5LHD6J.js.map → chunk-NLPH23IQ.js.map} +0 -0
- /package/dist/{chunk-A3UPMOJZ.js.map → chunk-NV2MGIW7.js.map} +0 -0
- /package/dist/{chunk-J2KFC47S.js.map → chunk-RFSCIBCB.js.map} +0 -0
- /package/dist/{chunk-IXSTQGYV.js.map → chunk-RREI7CNM.js.map} +0 -0
- /package/dist/{chunk-C6XO6ONP.js.map → chunk-SZL2GGFY.js.map} +0 -0
- /package/dist/{chunk-7XRSLMUD.js.map → chunk-THWT7RJU.js.map} +0 -0
- /package/dist/{chunk-H4RWKZE2.js.map → chunk-TKNTAUA3.js.map} +0 -0
- /package/dist/{chunk-7OH7KPF5.js.map → chunk-TTOYT5RB.js.map} +0 -0
- /package/dist/{chunk-C3EJ3UIS.js.map → chunk-WLGE6KEO.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validateImportTurn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OUELRE5E.js";
|
|
4
4
|
|
|
5
5
|
// src/bulk-import/registry.ts
|
|
6
6
|
var adapters = /* @__PURE__ */ new Map();
|
|
@@ -156,4 +156,4 @@ export {
|
|
|
156
156
|
formatBatchTranscript,
|
|
157
157
|
runBulkImportPipeline
|
|
158
158
|
};
|
|
159
|
-
//# sourceMappingURL=chunk-
|
|
159
|
+
//# sourceMappingURL=chunk-CKITWVWJ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ALL_CATEGORY_DIRS,
|
|
3
3
|
NamespaceStorageRouter
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RREI7CNM.js";
|
|
5
5
|
import {
|
|
6
6
|
namespaceCollectionName
|
|
7
7
|
} from "./chunk-HRXCPKN4.js";
|
|
@@ -202,4 +202,4 @@ export {
|
|
|
202
202
|
verifyNamespaces,
|
|
203
203
|
runNamespaceMigration
|
|
204
204
|
};
|
|
205
|
-
//# sourceMappingURL=chunk-
|
|
205
|
+
//# sourceMappingURL=chunk-DM4US77W.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-DRD2Q7HQ.js";
|
|
5
5
|
import {
|
|
6
6
|
StorageManager
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GYITUZFT.js";
|
|
8
8
|
import {
|
|
9
9
|
parseContinuityImprovementLoops
|
|
10
10
|
} from "./chunk-LDXUBPMO.js";
|
|
@@ -1261,4 +1261,4 @@ export {
|
|
|
1261
1261
|
defaultTierMigrationCycleBudget,
|
|
1262
1262
|
CompoundingEngine
|
|
1263
1263
|
};
|
|
1264
|
-
//# sourceMappingURL=chunk-
|
|
1264
|
+
//# sourceMappingURL=chunk-ECMMM2VE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listNamespaces
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DM4US77W.js";
|
|
4
4
|
import {
|
|
5
5
|
runConsolidationProvenanceCheck
|
|
6
6
|
} from "./chunk-AL4RAJL5.js";
|
|
@@ -36,13 +36,13 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
listMemoryGovernanceRuns,
|
|
38
38
|
readMemoryGovernanceRunArtifact
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-NLPH23IQ.js";
|
|
40
40
|
import {
|
|
41
41
|
analyzeGraphHealth
|
|
42
42
|
} from "./chunk-Y56J7CXW.js";
|
|
43
43
|
import {
|
|
44
44
|
StorageManager
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-GYITUZFT.js";
|
|
46
46
|
import {
|
|
47
47
|
lintWorkspaceFiles
|
|
48
48
|
} from "./chunk-DM2T26WE.js";
|
|
@@ -1336,4 +1336,4 @@ export {
|
|
|
1336
1336
|
runBenchmarkRecall,
|
|
1337
1337
|
runOperatorRepair
|
|
1338
1338
|
};
|
|
1339
|
-
//# sourceMappingURL=chunk-
|
|
1339
|
+
//# sourceMappingURL=chunk-EGBH5IPJ.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
SPECULATIVE_TTL_DAYS,
|
|
15
15
|
confidenceTier
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-C43KEWEV.js";
|
|
17
17
|
import {
|
|
18
18
|
inferMemoryStatus,
|
|
19
19
|
isArchivedMemoryPath,
|
|
@@ -5524,4 +5524,4 @@ export {
|
|
|
5524
5524
|
serializeEntityFile,
|
|
5525
5525
|
StorageManager
|
|
5526
5526
|
};
|
|
5527
|
-
//# sourceMappingURL=chunk-
|
|
5527
|
+
//# sourceMappingURL=chunk-GYITUZFT.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-SOBJ6NEY.js";
|
|
4
4
|
import {
|
|
5
5
|
summarizeDisclosureTokens
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BEMWL2FZ.js";
|
|
7
7
|
import {
|
|
8
8
|
summarizeRetrievedMemoryProvenance
|
|
9
9
|
} from "./chunk-AC5LO7IU.js";
|
|
@@ -567,4 +567,4 @@ export {
|
|
|
567
567
|
renderRecallExplain,
|
|
568
568
|
parseRecallExplainFormat
|
|
569
569
|
};
|
|
570
|
-
//# sourceMappingURL=chunk-
|
|
570
|
+
//# sourceMappingURL=chunk-IENGGY2C.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GYITUZFT.js";
|
|
4
4
|
import {
|
|
5
5
|
decideLifecycleTransition
|
|
6
6
|
} from "./chunk-TBBDFYXW.js";
|
|
@@ -729,4 +729,4 @@ export {
|
|
|
729
729
|
listMemoryGovernanceRuns,
|
|
730
730
|
readMemoryGovernanceRunArtifact
|
|
731
731
|
};
|
|
732
|
-
//# sourceMappingURL=chunk-
|
|
732
|
+
//# sourceMappingURL=chunk-NLPH23IQ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
compareEntityTimestamps,
|
|
6
6
|
normalizeEntityName
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GYITUZFT.js";
|
|
8
8
|
import {
|
|
9
9
|
sanitizeMemoryContent
|
|
10
10
|
} from "./chunk-FVQJYWH7.js";
|
|
@@ -677,4 +677,4 @@ export {
|
|
|
677
677
|
entityIndexVersion,
|
|
678
678
|
entityRecentTranscriptLookbackHours
|
|
679
679
|
};
|
|
680
|
-
//# sourceMappingURL=chunk-
|
|
680
|
+
//# sourceMappingURL=chunk-NV2MGIW7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/bulk-import/types.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// Bulk-import pipeline types and validation\n// ---------------------------------------------------------------------------\n\nimport { parseIsoOffsetTimestamp } from \"../utils/iso-timestamp.js\";\n\nexport interface BulkImportSource {\n turns: ImportTurn[];\n metadata: {\n source: string;\n exportDate: string;\n messageCount: number;\n dateRange: { from: string; to: string };\n };\n}\n\nexport interface ImportTurn {\n role: \"user\" | \"assistant\" | \"other\";\n content: string;\n timestamp: string;\n participantId?: string;\n participantName?: string;\n replyToId?: string;\n turnFingerprint?: string;\n persistProcessedFingerprint?: boolean;\n parts?: import(\"../message-parts/index.js\").LcmMessagePartInput[];\n rawContent?: unknown;\n sourceFormat?: import(\"../message-parts/index.js\").MessagePartSourceFormat;\n importProvenance?: ImportTurnProvenance;\n}\n\nexport interface ImportTurnProvenance {\n sourceLabel?: string;\n sourceId?: string;\n sourceTimestamp?: string;\n importedFromPath?: string;\n importedAt?: string;\n metadata?: Record<string, unknown>;\n}\n\nexport interface BulkImportOptions {\n batchSize?: number;\n dryRun?: boolean;\n dedup?: boolean;\n trustLevel?: \"import\";\n namespace?: string;\n}\n\nexport type ImportSourceRole = ImportTurn[\"role\"];\n\nexport interface BulkImportResult {\n memoriesCreated: number;\n duplicatesSkipped: number;\n entitiesCreated: number;\n turnsProcessed: number;\n batchesProcessed: number;\n errors: BulkImportError[];\n}\n\nexport interface BulkImportError {\n batchIndex: number;\n message: string;\n}\n\nexport interface BulkImportSourceAdapter {\n name: string;\n parse(\n input: unknown,\n options?: { strict?: boolean; platform?: string },\n ): Promise<BulkImportSource> | BulkImportSource;\n}\n\n// ---------------------------------------------------------------------------\n// Validation helpers\n// ---------------------------------------------------------------------------\n\nconst VALID_ROLES: ReadonlySet<string> = new Set([\"user\", \"assistant\", \"other\"]);\n\nexport interface ImportTurnValidationIssue {\n code: string;\n message: string;\n index?: number;\n}\n\nexport function isImportRole(value: unknown): value is ImportSourceRole {\n return typeof value === \"string\" && VALID_ROLES.has(value);\n}\n\n/**\n * Parse an ISO-8601 / RFC 3339 timestamp used by bulk-import adapters.\n *\n * Accepts variable-precision fractional seconds and either a `Z` suffix or a\n * `[+-]HH:MM` timezone offset, so adapters may preserve their source\n * timestamps verbatim. Returns milliseconds since epoch, or `null` if the\n * string is not a well-formed timestamp (including overflowed calendar dates\n * or out-of-range offsets).\n *\n * Delegates to the shared parser in `utils/iso-timestamp.ts` — do not\n * reimplement locally; extend that helper instead.\n */\nexport function parseIsoTimestamp(value: string): number | null {\n return parseIsoOffsetTimestamp(value);\n}\n\nexport function validateImportTurn(\n turn: ImportTurn,\n index?: number,\n): ImportTurnValidationIssue[] {\n const issues: ImportTurnValidationIssue[] = [];\n\n if (!turn || typeof turn !== \"object\") {\n issues.push({\n code: \"turn.invalid\",\n message: \"Import turn must be an object.\",\n index,\n });\n return issues;\n }\n\n if (!isImportRole(turn.role)) {\n issues.push({\n code: \"turn.role.invalid\",\n message:\n `Import turn role must be 'user', 'assistant', or 'other', ` +\n `received '${String(turn.role)}'.`,\n index,\n });\n }\n\n if (\n !turn.content ||\n typeof turn.content !== \"string\" ||\n turn.content.trim().length === 0\n ) {\n issues.push({\n code: \"turn.content.invalid\",\n message: \"Import turn content must be a non-empty string.\",\n index,\n });\n }\n\n if (\n !turn.timestamp ||\n typeof turn.timestamp !== \"string\" ||\n parseIsoTimestamp(turn.timestamp) === null\n ) {\n issues.push({\n code: \"turn.timestamp.invalid\",\n message:\n `Import turn timestamp must be a valid ISO timestamp, ` +\n `received '${String(turn.timestamp)}'.`,\n index,\n });\n }\n\n return issues;\n}\n"],"mappings":";;;;;AA4EA,IAAM,cAAmC,oBAAI,IAAI,CAAC,QAAQ,aAAa,OAAO,CAAC;AAQxE,SAAS,aAAa,OAA2C;AACtE,SAAO,OAAO,UAAU,YAAY,YAAY,IAAI,KAAK;AAC3D;AAcO,SAAS,kBAAkB,OAA8B;AAC9D,SAAO,wBAAwB,KAAK;AACtC;AAEO,SAAS,mBACd,MACA,OAC6B;AAC7B,QAAM,SAAsC,CAAC;AAE7C,MAAI,CAAC,QAAQ,OAAO,SAAS,UAAU;AACrC,WAAO,KAAK;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,MACT;AAAA,IACF,CAAC;AACD,WAAO;AAAA,EACT;AAEA,MAAI,CAAC,aAAa,KAAK,IAAI,GAAG;AAC5B,WAAO,KAAK;AAAA,MACV,MAAM;AAAA,MACN,SACE,uEACa,OAAO,KAAK,IAAI,CAAC;AAAA,MAChC;AAAA,IACF,CAAC;AAAA,EACH;AAEA,MACE,CAAC,KAAK,WACN,OAAO,KAAK,YAAY,YACxB,KAAK,QAAQ,KAAK,EAAE,WAAW,GAC/B;AACA,WAAO,KAAK;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,MACT;AAAA,IACF,CAAC;AAAA,EACH;AAEA,MACE,CAAC,KAAK,aACN,OAAO,KAAK,cAAc,YAC1B,kBAAkB,KAAK,SAAS,MAAM,MACtC;AACA,WAAO,KAAK;AAAA,MACV,MAAM;AAAA,MACN,SACE,kEACa,OAAO,KAAK,SAAS,CAAC;AAAA,MACrC;AAAA,IACF,CAAC;AAAA,EACH;AAEA,SAAO;AACT;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager,
|
|
3
3
|
normalizeEntityName
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GYITUZFT.js";
|
|
5
5
|
import {
|
|
6
6
|
extractJsonCandidates
|
|
7
7
|
} from "./chunk-RGMVMVMF.js";
|
|
@@ -860,4 +860,4 @@ export {
|
|
|
860
860
|
resolveBriefingSaveDir,
|
|
861
861
|
briefingFilename
|
|
862
862
|
};
|
|
863
|
-
//# sourceMappingURL=chunk-
|
|
863
|
+
//# sourceMappingURL=chunk-RFSCIBCB.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-ZFXCQPNO.js";
|
|
5
5
|
import {
|
|
6
6
|
StorageManager
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GYITUZFT.js";
|
|
8
8
|
import {
|
|
9
9
|
isSafeRouteNamespace
|
|
10
10
|
} from "./chunk-U3PN77QT.js";
|
|
@@ -161,4 +161,4 @@ export {
|
|
|
161
161
|
getCategoryDir,
|
|
162
162
|
NamespaceStorageRouter
|
|
163
163
|
};
|
|
164
|
-
//# sourceMappingURL=chunk-
|
|
164
|
+
//# sourceMappingURL=chunk-RREI7CNM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GYITUZFT.js";
|
|
4
4
|
import {
|
|
5
5
|
getCachedRuleMemories,
|
|
6
6
|
setCachedRuleMemories
|
|
@@ -115,4 +115,4 @@ async function searchVerifiedSemanticRules(options) {
|
|
|
115
115
|
export {
|
|
116
116
|
searchVerifiedSemanticRules
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=chunk-
|
|
118
|
+
//# sourceMappingURL=chunk-SZL2GGFY.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-3UXOZBHV.js";
|
|
8
8
|
import {
|
|
9
9
|
StorageManager
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GYITUZFT.js";
|
|
11
11
|
import {
|
|
12
12
|
isSafeRouteNamespace
|
|
13
13
|
} from "./chunk-U3PN77QT.js";
|
|
@@ -118,4 +118,4 @@ export {
|
|
|
118
118
|
runCodexMaterialize,
|
|
119
119
|
runPostConsolidationMaterialize
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=chunk-
|
|
121
|
+
//# sourceMappingURL=chunk-THWT7RJU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPostConsolidationMaterialize
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-THWT7RJU.js";
|
|
4
4
|
import {
|
|
5
5
|
discoverMemoryExtensions,
|
|
6
6
|
renderExtensionsBlock,
|
|
@@ -217,4 +217,4 @@ export {
|
|
|
217
217
|
buildExtensionsBlockForConsolidation,
|
|
218
218
|
materializeAfterSemanticConsolidation
|
|
219
219
|
};
|
|
220
|
-
//# sourceMappingURL=chunk-
|
|
220
|
+
//# sourceMappingURL=chunk-TKNTAUA3.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-SFQ6QNL7.js";
|
|
7
7
|
import {
|
|
8
8
|
StorageManager
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GYITUZFT.js";
|
|
10
10
|
import {
|
|
11
11
|
buildLifecycleEventsForMemory,
|
|
12
12
|
sortMemoryLifecycleEvents
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
backupExistingLedger,
|
|
75
75
|
rebuildMemoryLifecycleLedger
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=chunk-
|
|
77
|
+
//# sourceMappingURL=chunk-TTOYT5RB.js.map
|
|
@@ -703,7 +703,12 @@ var ExtractionEngine = class {
|
|
|
703
703
|
}
|
|
704
704
|
if (this.config.extractionTelemetryPrefilterEnabled && looksLikeMechanicalTelemetryTranscript(conversation)) {
|
|
705
705
|
log.debug("extraction skipped \u2014 mechanical action/state telemetry without durable-memory cues");
|
|
706
|
-
return {
|
|
706
|
+
return {
|
|
707
|
+
facts: [],
|
|
708
|
+
profileUpdates: [],
|
|
709
|
+
entities: [],
|
|
710
|
+
questions: []
|
|
711
|
+
};
|
|
707
712
|
}
|
|
708
713
|
const lastTurnTs = boundedTurns.length > 0 ? new Date(boundedTurns[boundedTurns.length - 1].timestamp) : void 0;
|
|
709
714
|
const messageTimestamp = lastTurnTs && !isNaN(lastTurnTs.getTime()) ? lastTurnTs : void 0;
|
|
@@ -734,13 +739,25 @@ var ExtractionEngine = class {
|
|
|
734
739
|
}
|
|
735
740
|
if (!this.config.localLlmFallback) {
|
|
736
741
|
log.warn("extraction: local LLM failed and fallback disabled");
|
|
737
|
-
return {
|
|
742
|
+
return {
|
|
743
|
+
facts: [],
|
|
744
|
+
profileUpdates: [],
|
|
745
|
+
entities: [],
|
|
746
|
+
questions: [],
|
|
747
|
+
extractionFailure: "local_llm_unavailable"
|
|
748
|
+
};
|
|
738
749
|
}
|
|
739
750
|
log.info("extraction: local LLM unavailable, falling back to gateway default AI");
|
|
740
751
|
} catch (err) {
|
|
741
752
|
if (!this.config.localLlmFallback) {
|
|
742
753
|
log.warn("extraction: local LLM error and fallback disabled:", err);
|
|
743
|
-
return {
|
|
754
|
+
return {
|
|
755
|
+
facts: [],
|
|
756
|
+
profileUpdates: [],
|
|
757
|
+
entities: [],
|
|
758
|
+
questions: [],
|
|
759
|
+
extractionFailure: "local_llm_error"
|
|
760
|
+
};
|
|
744
761
|
}
|
|
745
762
|
log.info("extraction: local LLM error, falling back to gateway default AI:", err);
|
|
746
763
|
} finally {
|
|
@@ -872,7 +889,13 @@ var ExtractionEngine = class {
|
|
|
872
889
|
error: "fallback returned no parsed output"
|
|
873
890
|
});
|
|
874
891
|
log.warn("extraction fallback returned no parsed output");
|
|
875
|
-
return {
|
|
892
|
+
return {
|
|
893
|
+
facts: [],
|
|
894
|
+
profileUpdates: [],
|
|
895
|
+
entities: [],
|
|
896
|
+
questions: [],
|
|
897
|
+
extractionFailure: "fallback_no_parsed_output"
|
|
898
|
+
};
|
|
876
899
|
} catch (err) {
|
|
877
900
|
this.emit({
|
|
878
901
|
kind: "llm_error",
|
|
@@ -883,7 +906,13 @@ var ExtractionEngine = class {
|
|
|
883
906
|
error: String(err)
|
|
884
907
|
});
|
|
885
908
|
log.error("extraction fallback failed", err);
|
|
886
|
-
return {
|
|
909
|
+
return {
|
|
910
|
+
facts: [],
|
|
911
|
+
profileUpdates: [],
|
|
912
|
+
entities: [],
|
|
913
|
+
questions: [],
|
|
914
|
+
extractionFailure: "fallback_failed"
|
|
915
|
+
};
|
|
887
916
|
} finally {
|
|
888
917
|
try {
|
|
889
918
|
this.profiler.endSpan("gateway-fallback", extractionTraceId);
|
|
@@ -2299,4 +2328,4 @@ ${memoryList}` }
|
|
|
2299
2328
|
export {
|
|
2300
2329
|
ExtractionEngine
|
|
2301
2330
|
};
|
|
2302
|
-
//# sourceMappingURL=chunk-
|
|
2331
|
+
//# sourceMappingURL=chunk-U3GQ33JC.js.map
|