@remnic/core 9.32.0 → 9.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access-admin-ops-surface.d.ts +10 -10
- package/dist/access-admin-ops-surface.js +29 -28
- package/dist/access-authorization-probe.d.ts +10 -10
- package/dist/access-authorization-probe.js +30 -29
- package/dist/access-boundary.d.ts +10 -10
- package/dist/access-boundary.js +29 -28
- package/dist/access-cli.js +71 -68
- package/dist/access-cli.js.map +1 -1
- package/dist/access-extraction-force-flush.d.ts +10 -10
- package/dist/access-extraction-force-flush.js +29 -28
- package/dist/access-health-types.d.ts +1 -1
- package/dist/access-http-lcm-compaction.d.ts +10 -10
- package/dist/access-http-lifecycle-flush.d.ts +10 -10
- package/dist/access-http.d.ts +10 -10
- package/dist/access-http.js +41 -40
- package/dist/access-identity-continuity-surface.d.ts +8 -8
- package/dist/access-identity-continuity-surface.js +29 -28
- package/dist/access-lcm-surface.d.ts +10 -10
- package/dist/access-lcm-surface.js +29 -28
- package/dist/access-mcp.d.ts +10 -10
- package/dist/access-mcp.js +35 -34
- package/dist/access-memory-search-fanout.d.ts +2 -2
- package/dist/{access-namespace-preflight-COhbXBqS.d.ts → access-namespace-preflight-CWyL4Zai.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +3 -3
- package/dist/access-namespace-preflight.js +29 -28
- package/dist/access-observe-write-surface.d.ts +10 -10
- package/dist/access-observe-write-surface.js +29 -28
- package/dist/access-operations-batch.js +32 -31
- package/dist/access-operations.d.ts +10 -10
- package/dist/access-operations.js +34 -33
- package/dist/access-recall-concurrency.d.ts +10 -10
- package/dist/access-recall-concurrency.js +29 -28
- package/dist/access-recall-response.d.ts +10 -10
- package/dist/access-recall-response.js +29 -28
- package/dist/access-recall-surface.d.ts +10 -10
- package/dist/access-recall-surface.js +29 -28
- package/dist/access-schema.js +3 -3
- package/dist/{access-service-BmBTtEKO.d.ts → access-service-D9zIBlpp.d.ts} +7 -7
- package/dist/access-service-helpers.d.ts +10 -10
- package/dist/access-service.d.ts +10 -10
- package/dist/access-service.js +29 -28
- package/dist/access-surface-catalog.d.ts +10 -10
- package/dist/access-wearables-meetings-surface.d.ts +3 -3
- 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/adapters/index.js +7 -7
- package/dist/adapters/registry.js +3 -3
- package/dist/auto-sync-UPTUVE4X.js +1 -1
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +8 -8
- package/dist/briefing.d.ts +2 -2
- package/dist/briefing.js +7 -7
- package/dist/buffer-surprise-report.d.ts +1 -1
- package/dist/buffer-turn-helpers.d.ts +1 -1
- package/dist/buffer.d.ts +2 -2
- package/dist/buffer.js +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/{capsule-crypto-7FJQINUR.js → capsule-crypto-GWVG7LGC.js} +2 -2
- package/dist/{catalog-Dm-DvNBY.d.ts → catalog-Du4bpZWM.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 +8 -8
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-FHBITMRY.js → chunk-4TGZCYHH.js} +15 -15
- package/dist/{chunk-KQAFEZQX.js → chunk-5W7CTZ2E.js} +4 -4
- package/dist/{chunk-ODGOP7P2.js → chunk-6HXQ2YO5.js} +2 -2
- package/dist/{chunk-65ZPVYTA.js → chunk-7CCVK67W.js} +5 -5
- package/dist/{chunk-2QIMTVEJ.js → chunk-7TWUCYER.js} +3 -1
- package/dist/chunk-7TWUCYER.js.map +1 -0
- package/dist/{chunk-UORKJ34C.js → chunk-7ZHGPX56.js} +2 -2
- package/dist/{chunk-G2YQ57YO.js → chunk-AEPYA55F.js} +2 -2
- package/dist/chunk-B6XHIBIB.js +111 -0
- package/dist/chunk-B6XHIBIB.js.map +1 -0
- package/dist/{chunk-AJL6NNX6.js → chunk-BIXWNHIL.js} +2 -2
- package/dist/{chunk-TGTTESJS.js → chunk-CMQZNEIF.js} +2 -2
- package/dist/chunk-CMQZNEIF.js.map +1 -0
- package/dist/{chunk-J3ZGPYXB.js → chunk-DG2R7M7K.js} +34 -36
- package/dist/chunk-DG2R7M7K.js.map +1 -0
- package/dist/{chunk-QDTZ2HF7.js → chunk-DMT2RGAZ.js} +3 -3
- package/dist/{chunk-QIHIHZYC.js → chunk-DP7ZV2II.js} +42 -89
- package/dist/chunk-DP7ZV2II.js.map +1 -0
- package/dist/{chunk-5WZVQRHV.js → chunk-EO7X2LDK.js} +2 -2
- package/dist/{chunk-TL4TO3EA.js → chunk-F3BNEYX2.js} +2 -2
- package/dist/{chunk-AQEJE3WO.js → chunk-FL3AM5KE.js} +3 -3
- package/dist/{chunk-3F2LKUMU.js → chunk-FYO2GAZJ.js} +2 -2
- package/dist/{chunk-2Q4JJ3FZ.js → chunk-HULSU7PS.js} +2 -2
- package/dist/{chunk-VVDPPDDF.js → chunk-HXDWZFNP.js} +1 -1
- package/dist/chunk-HXDWZFNP.js.map +1 -0
- package/dist/{chunk-3EQ2XB3W.js → chunk-IZXTZ7BF.js} +5 -5
- package/dist/{chunk-THCPRMRF.js → chunk-J6SLNQRO.js} +2 -2
- package/dist/{chunk-IGWFKW4B.js → chunk-KEWUNL7P.js} +2 -2
- package/dist/{chunk-27HHNYSQ.js → chunk-KJT3PZAR.js} +3 -3
- package/dist/chunk-KWMXR7XS.js +138 -0
- package/dist/chunk-KWMXR7XS.js.map +1 -0
- package/dist/{chunk-OPBTPRGY.js → chunk-KWU6MAD4.js} +2 -2
- package/dist/{chunk-227UFSEQ.js → chunk-LEPOP46W.js} +4 -4
- package/dist/{chunk-HFQQWAMS.js → chunk-LRYAQGDR.js} +38 -38
- package/dist/{chunk-VMZ56EE3.js → chunk-MYXWPG5O.js} +2 -2
- package/dist/{chunk-YX5LN6JR.js → chunk-OPRP6Q4Z.js} +3 -3
- package/dist/{chunk-2NLLXCJG.js → chunk-OWHERGF2.js} +2 -2
- package/dist/{chunk-2NTGBZLZ.js → chunk-OXBPHIKH.js} +8 -8
- package/dist/{chunk-QMWFQBIL.js → chunk-QEPNZBBC.js} +3 -3
- package/dist/{chunk-CE5355TT.js → chunk-QHYB4MJV.js} +2 -2
- package/dist/{chunk-AU7Q3LSC.js → chunk-RKNJBZ55.js} +7 -7
- package/dist/{chunk-FMFLGS5Z.js → chunk-RLOVRJZN.js} +8 -8
- package/dist/{chunk-CJDNT45S.js → chunk-RQBF54FC.js} +6 -6
- package/dist/{chunk-LUQ443JP.js → chunk-RSFWAI4D.js} +68 -48
- package/dist/chunk-RSFWAI4D.js.map +1 -0
- package/dist/{chunk-YPC7W6GA.js → chunk-RYMPLSIT.js} +3 -2
- package/dist/{chunk-YPC7W6GA.js.map → chunk-RYMPLSIT.js.map} +1 -1
- package/dist/{chunk-E6BMSH7U.js → chunk-SUZI6BHQ.js} +2 -2
- package/dist/chunk-T2TTP3KU.js +28 -0
- package/dist/chunk-T2TTP3KU.js.map +1 -0
- package/dist/{chunk-35IVNNRK.js → chunk-TCIWHK3N.js} +2 -2
- package/dist/{chunk-X7Y7WX73.js → chunk-UVYI6VIX.js} +1 -1
- package/dist/{chunk-6P7MTSU5.js → chunk-WFYWGDM6.js} +2 -2
- package/dist/{chunk-HKPJPOW7.js → chunk-XABS455Y.js} +2 -2
- package/dist/{chunk-U7QYBSQJ.js → chunk-XWDZQIYU.js} +2 -2
- package/dist/{chunk-Z7XKUWYS.js → chunk-Y2ZD2RVG.js} +2 -2
- package/dist/{chunk-AQWVJURR.js → chunk-Y6OWJ3V5.js} +2 -2
- package/dist/{chunk-J7WZUL2K.js → chunk-Y6XRTQMV.js} +8 -8
- package/dist/{chunk-MAXVH44E.js → chunk-Z54EM5YZ.js} +7 -7
- package/dist/{cli-DRJLv1Xt.d.ts → cli-mFX-QQvx.d.ts} +5 -5
- package/dist/cli.d.ts +12 -12
- package/dist/cli.js +57 -56
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +7 -7
- 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/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +7 -7
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +4 -2
- package/dist/connectors/index.js +12 -8
- 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/contradiction/index.js +4 -4
- package/dist/conversation-index/backend.d.ts +1 -1
- package/dist/conversation-index/backend.js +2 -2
- 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/corpus-watermark.d.ts +1 -1
- package/dist/corpus-watermark.js +15 -15
- 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 +7 -7
- package/dist/entity-schema.d.ts +1 -1
- package/dist/explicit-capture.d.ts +8 -8
- package/dist/explicit-capture.js +3 -3
- package/dist/extraction-error-classification.d.ts +1 -1
- 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-liveness.d.ts +1 -1
- package/dist/extraction-source-grounding-rules.d.ts +1 -1
- package/dist/extraction-source-grounding.d.ts +1 -1
- package/dist/extraction.d.ts +1 -2
- package/dist/extraction.js +63 -2
- 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/importance.d.ts +1 -1
- package/dist/importers/index.d.ts +1 -1
- package/dist/in-flight-reads.d.ts +1 -1
- package/dist/index.d.ts +19 -19
- package/dist/index.js +115 -112
- package/dist/intent.d.ts +1 -1
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/engine.js +3 -3
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/index.js +6 -6
- 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 +7 -7
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +7 -7
- package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-projection.js +8 -8
- package/dist/{maintenance-C6Pffz30.d.ts → maintenance-70Wq118b.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +10 -10
- 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 +14 -14
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/search.js +6 -6
- package/dist/namespaces/storage.d.ts +3 -3
- package/dist/namespaces/storage.js +7 -7
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/offline-sync-impression-drain.d.ts +1 -1
- package/dist/operator-doctor-corpus.d.ts +1 -1
- package/dist/operator-doctor-corpus.js +16 -16
- package/dist/operator-doctor-replica.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +3 -3
- package/dist/operator-toolkit.js +19 -19
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
- package/dist/orchestration/maintenance.d.ts +4 -4
- package/dist/orchestration/maintenance.js +12 -12
- package/dist/{orchestrator-eQlmasno.d.ts → orchestrator-BH8LT-NX.d.ts} +7 -7
- package/dist/orchestrator.d.ts +8 -8
- package/dist/orchestrator.js +72 -69
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-CZGmAMQ2.d.ts → pipeline-DSLWFeHz.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +1 -1
- package/dist/proactive-contention.d.ts +1 -1
- package/dist/provenance.d.ts +1 -1
- package/dist/{qmd-DBj4MF8T.d.ts → qmd-BSDGyr0H.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-concurrency-config.d.ts +1 -1
- 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-memory-map.d.ts +1 -1
- 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/replica-divergence.d.ts +1 -1
- package/dist/replica-peers-config.d.ts +1 -1
- package/dist/resolve-auth-token.d.ts +1 -1
- 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/salvage-envelope.d.ts +1 -1
- package/dist/schemas.js +1 -1
- package/dist/{scope-profiles-S85lrsUn.d.ts → scope-profiles-C4zY-a2K.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +1 -1
- package/dist/search/factory.d.ts +1 -1
- package/dist/search/factory.js +5 -5
- package/dist/search/index.d.ts +1 -1
- package/dist/search/index.js +9 -9
- 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-DVzDcV6x.d.ts → semantic-consolidation-ChKRYpRO.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +8 -8
- package/dist/semantic-rule-promotion.js +7 -7
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +7 -7
- package/dist/{service-C2M-wD4W.d.ts → service-CrxXHz5T.d.ts} +2 -2
- 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 +1 -1
- package/dist/signal.d.ts +1 -1
- package/dist/source-agent-qualifier.d.ts +24 -0
- package/dist/source-agent-qualifier.js +98 -0
- package/dist/source-agent-qualifier.js.map +1 -0
- package/dist/{storage-dyBC3Q84.d.ts → storage-CyWa1Jm6.d.ts} +1 -1
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +6 -6
- 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/tool-scoped-memory.d.ts +47 -0
- package/dist/tool-scoped-memory.js +12 -0
- package/dist/tool-scoped-memory.js.map +1 -0
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-import.js +2 -2
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-D63ZI--P.d.ts → types-5398p7Zm.d.ts} +7 -8
- 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 +7 -7
- package/dist/write-envelope.d.ts +1 -1
- package/package.json +2 -2
- package/src/connector-provenance-lifecycle.test.ts +86 -3
- package/src/connectors/index.ts +2 -2
- package/src/connectors/label.ts +18 -0
- package/src/extraction-redaction-rules.test.ts +53 -0
- package/src/extraction-scope-source-agent.test.ts +513 -0
- package/src/extraction.ts +45 -98
- package/src/index.ts +1 -1
- package/src/orchestration/extraction-persist.ts +31 -32
- package/src/orchestration/extraction-run.ts +1 -1
- package/src/orchestration/recall-result-formatter.ts +2 -1
- package/src/schemas.ts +1 -1
- package/src/source-agent-qualifier.ts +156 -0
- package/src/tool-scoped-memory.test.ts +199 -0
- package/src/tool-scoped-memory.ts +190 -0
- package/src/types.ts +7 -8
- package/dist/chunk-2QIMTVEJ.js.map +0 -1
- package/dist/chunk-J3ZGPYXB.js.map +0 -1
- package/dist/chunk-LUQ443JP.js.map +0 -1
- package/dist/chunk-QIHIHZYC.js.map +0 -1
- package/dist/chunk-TGTTESJS.js.map +0 -1
- package/dist/chunk-VVDPPDDF.js.map +0 -1
- /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-GWVG7LGC.js.map} +0 -0
- /package/dist/{chunk-FHBITMRY.js.map → chunk-4TGZCYHH.js.map} +0 -0
- /package/dist/{chunk-KQAFEZQX.js.map → chunk-5W7CTZ2E.js.map} +0 -0
- /package/dist/{chunk-ODGOP7P2.js.map → chunk-6HXQ2YO5.js.map} +0 -0
- /package/dist/{chunk-65ZPVYTA.js.map → chunk-7CCVK67W.js.map} +0 -0
- /package/dist/{chunk-UORKJ34C.js.map → chunk-7ZHGPX56.js.map} +0 -0
- /package/dist/{chunk-G2YQ57YO.js.map → chunk-AEPYA55F.js.map} +0 -0
- /package/dist/{chunk-AJL6NNX6.js.map → chunk-BIXWNHIL.js.map} +0 -0
- /package/dist/{chunk-QDTZ2HF7.js.map → chunk-DMT2RGAZ.js.map} +0 -0
- /package/dist/{chunk-5WZVQRHV.js.map → chunk-EO7X2LDK.js.map} +0 -0
- /package/dist/{chunk-TL4TO3EA.js.map → chunk-F3BNEYX2.js.map} +0 -0
- /package/dist/{chunk-AQEJE3WO.js.map → chunk-FL3AM5KE.js.map} +0 -0
- /package/dist/{chunk-3F2LKUMU.js.map → chunk-FYO2GAZJ.js.map} +0 -0
- /package/dist/{chunk-2Q4JJ3FZ.js.map → chunk-HULSU7PS.js.map} +0 -0
- /package/dist/{chunk-3EQ2XB3W.js.map → chunk-IZXTZ7BF.js.map} +0 -0
- /package/dist/{chunk-THCPRMRF.js.map → chunk-J6SLNQRO.js.map} +0 -0
- /package/dist/{chunk-IGWFKW4B.js.map → chunk-KEWUNL7P.js.map} +0 -0
- /package/dist/{chunk-27HHNYSQ.js.map → chunk-KJT3PZAR.js.map} +0 -0
- /package/dist/{chunk-OPBTPRGY.js.map → chunk-KWU6MAD4.js.map} +0 -0
- /package/dist/{chunk-227UFSEQ.js.map → chunk-LEPOP46W.js.map} +0 -0
- /package/dist/{chunk-HFQQWAMS.js.map → chunk-LRYAQGDR.js.map} +0 -0
- /package/dist/{chunk-VMZ56EE3.js.map → chunk-MYXWPG5O.js.map} +0 -0
- /package/dist/{chunk-YX5LN6JR.js.map → chunk-OPRP6Q4Z.js.map} +0 -0
- /package/dist/{chunk-2NLLXCJG.js.map → chunk-OWHERGF2.js.map} +0 -0
- /package/dist/{chunk-2NTGBZLZ.js.map → chunk-OXBPHIKH.js.map} +0 -0
- /package/dist/{chunk-QMWFQBIL.js.map → chunk-QEPNZBBC.js.map} +0 -0
- /package/dist/{chunk-CE5355TT.js.map → chunk-QHYB4MJV.js.map} +0 -0
- /package/dist/{chunk-AU7Q3LSC.js.map → chunk-RKNJBZ55.js.map} +0 -0
- /package/dist/{chunk-FMFLGS5Z.js.map → chunk-RLOVRJZN.js.map} +0 -0
- /package/dist/{chunk-CJDNT45S.js.map → chunk-RQBF54FC.js.map} +0 -0
- /package/dist/{chunk-E6BMSH7U.js.map → chunk-SUZI6BHQ.js.map} +0 -0
- /package/dist/{chunk-35IVNNRK.js.map → chunk-TCIWHK3N.js.map} +0 -0
- /package/dist/{chunk-X7Y7WX73.js.map → chunk-UVYI6VIX.js.map} +0 -0
- /package/dist/{chunk-6P7MTSU5.js.map → chunk-WFYWGDM6.js.map} +0 -0
- /package/dist/{chunk-HKPJPOW7.js.map → chunk-XABS455Y.js.map} +0 -0
- /package/dist/{chunk-U7QYBSQJ.js.map → chunk-XWDZQIYU.js.map} +0 -0
- /package/dist/{chunk-Z7XKUWYS.js.map → chunk-Y2ZD2RVG.js.map} +0 -0
- /package/dist/{chunk-AQWVJURR.js.map → chunk-Y6OWJ3V5.js.map} +0 -0
- /package/dist/{chunk-J7WZUL2K.js.map → chunk-Y6XRTQMV.js.map} +0 -0
- /package/dist/{chunk-MAXVH44E.js.map → chunk-Z54EM5YZ.js.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseXrayFormat
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MYXWPG5O.js";
|
|
4
4
|
import {
|
|
5
5
|
RECALL_DISCLOSURE_LEVELS,
|
|
6
6
|
isRecallDisclosure
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HXDWZFNP.js";
|
|
8
8
|
|
|
9
9
|
// src/recall-xray-cli.ts
|
|
10
10
|
function parseXrayDisclosureFlag(value) {
|
|
@@ -50,4 +50,4 @@ export {
|
|
|
50
50
|
parseXrayBudgetFlag,
|
|
51
51
|
parseXrayCliOptions
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-DMT2RGAZ.js.map
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
looksLikeMechanicalTelemetryTranscript
|
|
3
3
|
} from "./chunk-4RA3C3EV.js";
|
|
4
|
+
import {
|
|
5
|
+
applyGroundingWithConnector,
|
|
6
|
+
headerConnector,
|
|
7
|
+
renderExtractionConversation,
|
|
8
|
+
resolveSourceConnector
|
|
9
|
+
} from "./chunk-B6XHIBIB.js";
|
|
4
10
|
import {
|
|
5
11
|
ConsolidationResultSchema,
|
|
6
12
|
DaySummaryResultSchema,
|
|
@@ -9,7 +15,7 @@ import {
|
|
|
9
15
|
ProactiveExtractionResultSchema,
|
|
10
16
|
ProactiveQuestionsResultSchema,
|
|
11
17
|
buildProfileConsolidationResultSchema
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CMQZNEIF.js";
|
|
13
19
|
import {
|
|
14
20
|
normalizeReasoningTrace
|
|
15
21
|
} from "./chunk-54V4BZWP.js";
|
|
@@ -23,7 +29,6 @@ import {
|
|
|
23
29
|
LocalLlmClient
|
|
24
30
|
} from "./chunk-ZCPP5OW6.js";
|
|
25
31
|
import {
|
|
26
|
-
applyExtractionSourceGrounding,
|
|
27
32
|
attachExtractionProvenance
|
|
28
33
|
} from "./chunk-YIAA2X3D.js";
|
|
29
34
|
import {
|
|
@@ -477,7 +482,7 @@ var ExtractionEngine = class {
|
|
|
477
482
|
const entityUpdates = (Array.isArray(result.entityUpdates) ? result.entityUpdates : []).map((entity) => this.normalizeEntityUpdate(entity)).filter((entity) => entity !== void 0 && entity.name.length > 0);
|
|
478
483
|
return { items, profileUpdates, entityUpdates };
|
|
479
484
|
}
|
|
480
|
-
async applyProactiveQuestionPass(conversation, base,
|
|
485
|
+
async applyProactiveQuestionPass(conversation, base, ctx, signal) {
|
|
481
486
|
if (!resolvePipelineProcessingCapabilities(this.config).proactiveExtraction) return base;
|
|
482
487
|
const maxAdditional = Math.max(0, Math.floor(this.config.maxProactiveQuestionsPerExtraction));
|
|
483
488
|
if (!shouldRunProactivePass(this.config, maxAdditional, this.shouldUseLocalLlm, this.localLlm)) return base;
|
|
@@ -489,16 +494,11 @@ var ExtractionEngine = class {
|
|
|
489
494
|
base,
|
|
490
495
|
proactive,
|
|
491
496
|
maxAdditional,
|
|
497
|
+
ctx.sourceConnector,
|
|
492
498
|
signal
|
|
493
499
|
);
|
|
494
|
-
const sanitizedAdditions = this.sanitizeExtractionResult(proactiveAdditions, messageTimestamp);
|
|
495
|
-
const groundedAdditions = this.
|
|
496
|
-
sanitizedAdditions,
|
|
497
|
-
groundingSource,
|
|
498
|
-
assertionSource,
|
|
499
|
-
roleAssertionSources,
|
|
500
|
-
messageTimestamp
|
|
501
|
-
);
|
|
500
|
+
const sanitizedAdditions = this.sanitizeExtractionResult(proactiveAdditions, ctx.messageTimestamp);
|
|
501
|
+
const groundedAdditions = applyGroundingWithConnector(this.config, sanitizedAdditions, ctx);
|
|
502
502
|
if (!this.hasExtractionOutputs(groundedAdditions)) return base;
|
|
503
503
|
return this.mergeProactiveExtractionPass(base, groundedAdditions, maxAdditional);
|
|
504
504
|
} catch (err) {
|
|
@@ -609,7 +609,7 @@ var ExtractionEngine = class {
|
|
|
609
609
|
if (!fallbackResult?.questions) return [];
|
|
610
610
|
return fallbackResult.questions.map((q) => normalizeQuestion(q)).filter((q) => q.question.length > 0).filter((q) => !existingQuestionKeys.has(q.question.toLowerCase())).slice(0, maxAdditional);
|
|
611
611
|
}
|
|
612
|
-
async answerProactiveQuestions(conversation, base, proactiveQuestions, maxAdditional, signal) {
|
|
612
|
+
async answerProactiveQuestions(conversation, base, proactiveQuestions, maxAdditional, sourceConnector, signal) {
|
|
613
613
|
const factsPreview = base.facts.slice(0, 8).map((f) => `- (${f.category}) ${f.content}`).join("\n");
|
|
614
614
|
const entitiesPreview = base.entities.slice(0, 8).map((entity) => `- (${entity.type}) ${entity.name}: ${entity.facts.join("; ") || "(no facts)"}`).join("\n");
|
|
615
615
|
const proactivePreview = proactiveQuestions.slice(0, maxAdditional).map((question, index) => `${index + 1}. ${question.question}${question.context ? `
|
|
@@ -626,6 +626,7 @@ var ExtractionEngine = class {
|
|
|
626
626
|
// (chatgpt-codex thread on extraction.ts:1607). Returns "" when the
|
|
627
627
|
// bi-temporal gate is off, keeping the prompt unchanged by default.
|
|
628
628
|
this.eventTimePromptInstruction(),
|
|
629
|
+
headerConnector(sourceConnector) !== void 0 && resolveMemoryLifecycleCapabilities(this.config).extractionScopeClassification ? `Tool, command, or CLI-flag instructions tied to the ${sourceConnector} agent are "project" scope; when you recover one, begin the fact with a leading "In ${sourceConnector}, " clause naming that agent (e.g. "In ${sourceConnector}, use the search tool with a repository path.").` : "",
|
|
629
630
|
"",
|
|
630
631
|
"Base extracted facts (do not repeat):",
|
|
631
632
|
factsPreview || "(none)",
|
|
@@ -829,22 +830,9 @@ var ExtractionEngine = class {
|
|
|
829
830
|
}
|
|
830
831
|
return null;
|
|
831
832
|
}
|
|
832
|
-
|
|
833
|
-
const
|
|
834
|
-
return
|
|
835
|
-
result,
|
|
836
|
-
sourceText,
|
|
837
|
-
assertionSourceText,
|
|
838
|
-
roleAssertionSources,
|
|
839
|
-
messageTimestamp,
|
|
840
|
-
{
|
|
841
|
-
sourceGrounding: capabilities.sourceGrounding,
|
|
842
|
-
anchorTemporalExpressions: capabilities.delinearize
|
|
843
|
-
}
|
|
844
|
-
);
|
|
845
|
-
}
|
|
846
|
-
finalizeExtractionResult(result, turns) {
|
|
847
|
-
return attachExtractionProvenance(result, turns, this.config.provenance);
|
|
833
|
+
finalizeExtractionResult(result, turns, sourceConnector) {
|
|
834
|
+
const provenanced = attachExtractionProvenance(result, turns, this.config.provenance);
|
|
835
|
+
return sourceConnector === void 0 ? provenanced : { ...provenanced, sourceConnector };
|
|
848
836
|
}
|
|
849
837
|
async extract(turns, existingEntities, signal) {
|
|
850
838
|
const lifecycleCaps = resolveMemoryLifecycleCapabilities(this.config);
|
|
@@ -857,21 +845,20 @@ var ExtractionEngine = class {
|
|
|
857
845
|
...turn,
|
|
858
846
|
content: turn.role === "assistant" ? applyWorkExtractionBoundary(turn.content) : turn.content
|
|
859
847
|
})).filter((turn) => turn.content.trim().length > 0);
|
|
860
|
-
const
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
}).join("\n\n");
|
|
848
|
+
const resolvedConnector = resolveSourceConnector(boundedTurns);
|
|
849
|
+
const sourceConnector = lifecycleCaps.extractionScopeClassification ? resolvedConnector : void 0;
|
|
850
|
+
const { conversation, renderedConversation } = renderExtractionConversation(boundedTurns, headerConnector(sourceConnector));
|
|
864
851
|
const groundingSource = boundedTurns.map((turn) => turn.content).join("\n\n");
|
|
865
852
|
const assertionSource = boundedTurns.filter((turn) => turn.extractionContextOnly !== true).map((turn) => turn.content).join("\n\n");
|
|
866
853
|
const roleAssertionSources = {
|
|
867
854
|
profile: boundedTurns.filter((turn) => turn.role === "user" && turn.extractionContextOnly !== true).map((turn) => turn.content).join("\n\n"),
|
|
868
855
|
identity: boundedTurns.filter((turn) => turn.role === "assistant" && turn.extractionContextOnly !== true).map((turn) => turn.content).join("\n\n")
|
|
869
856
|
};
|
|
870
|
-
if (
|
|
857
|
+
if (renderedConversation.trim().length === 0) {
|
|
871
858
|
log.debug("extraction skipped \u2014 conversation only contained non-memory work-layer context");
|
|
872
859
|
return { facts: [], profileUpdates: [], entities: [], questions: [] };
|
|
873
860
|
}
|
|
874
|
-
if (lifecycleCaps.extractionTelemetryPrefilter && looksLikeMechanicalTelemetryTranscript(
|
|
861
|
+
if (lifecycleCaps.extractionTelemetryPrefilter && looksLikeMechanicalTelemetryTranscript(renderedConversation)) {
|
|
875
862
|
log.debug("extraction skipped \u2014 mechanical action/state telemetry without durable-memory cues");
|
|
876
863
|
return {
|
|
877
864
|
facts: [],
|
|
@@ -882,6 +869,14 @@ var ExtractionEngine = class {
|
|
|
882
869
|
}
|
|
883
870
|
const lastTurnTs = boundedTurns.length > 0 ? new Date(boundedTurns[boundedTurns.length - 1].timestamp) : void 0;
|
|
884
871
|
const messageTimestamp = lastTurnTs && !isNaN(lastTurnTs.getTime()) ? lastTurnTs : void 0;
|
|
872
|
+
const groundingContext = {
|
|
873
|
+
groundingSource,
|
|
874
|
+
assertionSource,
|
|
875
|
+
roleAssertionSources,
|
|
876
|
+
messageTimestamp,
|
|
877
|
+
sourceConnector,
|
|
878
|
+
scopeClassificationEnabled: lifecycleCaps.extractionScopeClassification
|
|
879
|
+
};
|
|
885
880
|
const traceId = crypto.randomUUID();
|
|
886
881
|
const emittedDirectStart = !!(this.shouldUseDirectClient || this.shouldUseLocalLlm);
|
|
887
882
|
if (emittedDirectStart) {
|
|
@@ -908,23 +903,9 @@ var ExtractionEngine = class {
|
|
|
908
903
|
this.emit({ kind: "llm_end", traceId, model: this.config.localLlmModel, operation: "extraction", durationMs });
|
|
909
904
|
log.debug(`extraction: used local LLM \u2014 ${localResult.facts.length} facts, ${localResult.entities.length} entities`);
|
|
910
905
|
const sanitized = this.sanitizeExtractionResult(localResult, messageTimestamp);
|
|
911
|
-
const grounded = this.
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
assertionSource,
|
|
915
|
-
roleAssertionSources,
|
|
916
|
-
messageTimestamp
|
|
917
|
-
);
|
|
918
|
-
const finalResult = await this.applyProactiveQuestionPass(
|
|
919
|
-
conversation,
|
|
920
|
-
grounded,
|
|
921
|
-
groundingSource,
|
|
922
|
-
assertionSource,
|
|
923
|
-
messageTimestamp,
|
|
924
|
-
roleAssertionSources,
|
|
925
|
-
signal
|
|
926
|
-
);
|
|
927
|
-
return this.finalizeExtractionResult(finalResult, boundedTurns);
|
|
906
|
+
const grounded = applyGroundingWithConnector(this.config, sanitized, groundingContext);
|
|
907
|
+
const finalResult = await this.applyProactiveQuestionPass(conversation, grounded, groundingContext, signal);
|
|
908
|
+
return this.finalizeExtractionResult(finalResult, boundedTurns, resolvedConnector);
|
|
928
909
|
}
|
|
929
910
|
if (!this.config.localLlmFallback) {
|
|
930
911
|
log.warn("extraction: local LLM failed and fallback disabled");
|
|
@@ -970,23 +951,9 @@ var ExtractionEngine = class {
|
|
|
970
951
|
this.emit({ kind: "llm_end", traceId, model: this.config.model, operation: "extraction", durationMs });
|
|
971
952
|
log.debug(`extraction: used direct client (${this.config.model}) \u2014 ${directResult.facts.length} facts, ${directResult.entities.length} entities`);
|
|
972
953
|
const sanitized = this.sanitizeExtractionResult(directResult, messageTimestamp);
|
|
973
|
-
const grounded = this.
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
assertionSource,
|
|
977
|
-
roleAssertionSources,
|
|
978
|
-
messageTimestamp
|
|
979
|
-
);
|
|
980
|
-
const finalResult = await this.applyProactiveQuestionPass(
|
|
981
|
-
conversation,
|
|
982
|
-
grounded,
|
|
983
|
-
groundingSource,
|
|
984
|
-
assertionSource,
|
|
985
|
-
messageTimestamp,
|
|
986
|
-
roleAssertionSources,
|
|
987
|
-
signal
|
|
988
|
-
);
|
|
989
|
-
return this.finalizeExtractionResult(finalResult, boundedTurns);
|
|
954
|
+
const grounded = applyGroundingWithConnector(this.config, sanitized, groundingContext);
|
|
955
|
+
const finalResult = await this.applyProactiveQuestionPass(conversation, grounded, groundingContext, signal);
|
|
956
|
+
return this.finalizeExtractionResult(finalResult, boundedTurns, resolvedConnector);
|
|
990
957
|
}
|
|
991
958
|
try {
|
|
992
959
|
this.emit({
|
|
@@ -1078,23 +1045,9 @@ var ExtractionEngine = class {
|
|
|
1078
1045
|
);
|
|
1079
1046
|
const normalized = this.normalizeExtractionResultPayload(result);
|
|
1080
1047
|
const sanitized = this.sanitizeExtractionResult(normalized, messageTimestamp);
|
|
1081
|
-
const grounded = this.
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
assertionSource,
|
|
1085
|
-
roleAssertionSources,
|
|
1086
|
-
messageTimestamp
|
|
1087
|
-
);
|
|
1088
|
-
const finalResult = await this.applyProactiveQuestionPass(
|
|
1089
|
-
conversation,
|
|
1090
|
-
grounded,
|
|
1091
|
-
groundingSource,
|
|
1092
|
-
assertionSource,
|
|
1093
|
-
messageTimestamp,
|
|
1094
|
-
roleAssertionSources,
|
|
1095
|
-
signal
|
|
1096
|
-
);
|
|
1097
|
-
return this.finalizeExtractionResult(finalResult, boundedTurns);
|
|
1048
|
+
const grounded = applyGroundingWithConnector(this.config, sanitized, groundingContext);
|
|
1049
|
+
const finalResult = await this.applyProactiveQuestionPass(conversation, grounded, groundingContext, signal);
|
|
1050
|
+
return this.finalizeExtractionResult(finalResult, boundedTurns, resolvedConnector);
|
|
1098
1051
|
}
|
|
1099
1052
|
this.emit({
|
|
1100
1053
|
kind: "llm_error",
|
|
@@ -1192,7 +1145,7 @@ Rules:
|
|
|
1192
1145
|
- Add structuredAttributes only for concrete values.
|
|
1193
1146
|
- Include at most five durable relationships.${this.config.provenance?.enabled ? `
|
|
1194
1147
|
- Each fact must include a quote copied verbatim from one contiguous conversation span.` : ""}${lifecycleCaps.extractionScopeClassification ? `
|
|
1195
|
-
- Set each fact scope to "global" for cross-project knowledge or "project" for codebase-specific knowledge.` : ""}
|
|
1148
|
+
- Set each fact scope to "global" for cross-project knowledge or "project" for codebase-specific knowledge. Tool, command, or CLI-flag instructions tied to one agent are "project" (the same tool name can mean different things across agents); when keeping one, begin the fact with a leading "In <agent>," clause naming that agent.` : ""}
|
|
1196
1149
|
${this.eventTimePromptInstruction()}
|
|
1197
1150
|
Return only valid JSON matching this shape. Placeholder text describes field shape only and is never source evidence:
|
|
1198
1151
|
${EXTRACTION_RESPONSE_SHAPE}
|
|
@@ -1386,8 +1339,8 @@ Rules:
|
|
|
1386
1339
|
|
|
1387
1340
|
Scope classification:
|
|
1388
1341
|
For each fact, set "scope" to one of:
|
|
1389
|
-
- "global" \u2014 knowledge that applies across projects: core framework/library bugs, API behavior patterns, user preferences (editor, language, style),
|
|
1390
|
-
- "project" \u2014 knowledge specific to one codebase: file paths, environment configs, deployment details, project-specific workarounds, team/stakeholder info tied to one project, repo-specific conventions
|
|
1342
|
+
- "global" \u2014 knowledge that applies across projects: core framework/library bugs, API behavior patterns, user preferences (editor, language, style), general coding patterns, infrastructure knowledge, technology facts not tied to one codebase
|
|
1343
|
+
- "project" \u2014 knowledge specific to one codebase: file paths, environment configs, deployment details, project-specific workarounds, team/stakeholder info tied to one project, repo-specific conventions. Tool, command, or CLI-flag instructions TIED TO ONE AGENT are also "project", because the same tool name means different things in different agent integrations (a "search" tool may search repository code in one agent and the web in another); when keeping such an agent-tied instruction, the fact text MUST name the originating agent as a leading "In <agent>," clause (e.g. "In Pi, use the search tool with a repository path."). A tool/command fact that holds in every agent and every repo is NOT agent-tied \u2014 leave it "global" and do not add a qualifier (e.g. "\`git status --short\` emits compact output"). Examples: "In Pi, the search tool takes a repository path" -> "project"; "\`git status --short\` emits compact output" -> "global".
|
|
1391
1344
|
When in doubt, prefer "project" \u2014 it is safer to keep knowledge scoped narrowly.` : ""}
|
|
1392
1345
|
Entity creation rules (STRICT):
|
|
1393
1346
|
- Only create entities for DURABLE things: real people, companies, products, tools, ongoing projects
|
|
@@ -2482,4 +2435,4 @@ export {
|
|
|
2482
2435
|
shouldEnableLocalExtractionThinking,
|
|
2483
2436
|
ExtractionEngine
|
|
2484
2437
|
};
|
|
2485
|
-
//# sourceMappingURL=chunk-
|
|
2438
|
+
//# sourceMappingURL=chunk-DP7ZV2II.js.map
|