@remnic/core 9.66.2 → 9.66.3
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 +1 -1
- package/dist/access-admin-ops-surface.js +27 -27
- package/dist/access-audit.js +2 -2
- package/dist/access-authorization-probe.d.ts +1 -1
- package/dist/access-authorization-probe.js +28 -28
- package/dist/access-boundary.d.ts +1 -1
- package/dist/access-boundary.js +27 -27
- package/dist/access-cli.js +95 -95
- package/dist/access-extraction-force-flush.d.ts +1 -1
- package/dist/access-extraction-force-flush.js +27 -27
- package/dist/access-http-lcm-compaction.d.ts +1 -1
- package/dist/access-http-lifecycle-flush.d.ts +1 -1
- package/dist/access-http-offline-stream.d.ts +1 -1
- package/dist/access-http-query.js +29 -29
- package/dist/access-http.d.ts +2 -2
- package/dist/access-http.js +44 -44
- package/dist/access-identity-continuity-surface.js +27 -27
- package/dist/access-lcm-surface.d.ts +1 -1
- package/dist/access-lcm-surface.js +27 -27
- package/dist/access-mcp.d.ts +1 -1
- package/dist/access-mcp.js +35 -35
- package/dist/access-namespace-preflight.js +27 -27
- package/dist/access-observe-write-surface.d.ts +1 -1
- package/dist/access-observe-write-surface.js +27 -27
- package/dist/access-operations-batch.js +30 -30
- package/dist/access-operations.d.ts +6 -6
- package/dist/access-operations.js +34 -34
- package/dist/access-recall-concurrency.d.ts +1 -1
- package/dist/access-recall-concurrency.js +27 -27
- package/dist/access-recall-response.d.ts +1 -1
- package/dist/access-recall-response.js +27 -27
- package/dist/access-recall-surface.d.ts +1 -1
- package/dist/access-recall-surface.js +27 -27
- package/dist/access-schema.d.ts +89 -89
- package/dist/access-schema.js +3 -3
- package/dist/access-service-helpers.d.ts +1 -1
- package/dist/access-service.d.ts +1 -1
- package/dist/access-service.js +27 -27
- package/dist/access-surface-catalog.d.ts +1 -1
- package/dist/access-surface-catalog.js +29 -29
- package/dist/active-recall.js +3 -3
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.js +2 -2
- package/dist/briefing.js +8 -8
- package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-YO5QJ6L3.js} +2 -2
- package/dist/causal-behavior.js +2 -2
- package/dist/causal-chain.js +2 -2
- package/dist/causal-consolidation.js +11 -11
- package/dist/causal-retrieval.js +2 -2
- package/dist/causal-trajectory-graph.js +2 -2
- package/dist/causal-trajectory.js +1 -1
- package/dist/{chunk-F4W5HTED.js → chunk-3HHTN5X7.js} +2 -2
- package/dist/{chunk-47WWTCJY.js → chunk-3PO35HUU.js} +313 -99
- package/dist/chunk-3PO35HUU.js.map +1 -0
- package/dist/{chunk-UHQE37NI.js → chunk-3Z4SFJA5.js} +2 -2
- package/dist/{chunk-PP7R754B.js → chunk-4PTTMTTQ.js} +1 -1
- package/dist/{chunk-AI5M4FVQ.js → chunk-4XESAT4V.js} +2 -2
- package/dist/{chunk-6545JDIM.js → chunk-5KGLNBUB.js} +2 -2
- package/dist/{chunk-2QSGJTDG.js → chunk-5XRZANCW.js} +10 -10
- package/dist/{chunk-LSR5LQXN.js → chunk-6DODJYBY.js} +2 -2
- package/dist/{chunk-D2YNNDML.js → chunk-73CAEYI3.js} +2 -2
- package/dist/{chunk-J2R275FN.js → chunk-7DXW5V2W.js} +2 -2
- package/dist/{chunk-25OLNWYG.js → chunk-7JJHIVMG.js} +2 -2
- package/dist/{chunk-65HXVEVG.js → chunk-7NNMRMLZ.js} +2 -2
- package/dist/{chunk-227UFSEQ.js → chunk-7RZJWZ46.js} +5 -5
- package/dist/{chunk-ZBIEX4XN.js → chunk-B2OKCCXX.js} +1 -1
- package/dist/{chunk-U4HZEW2B.js → chunk-B7AGLMGP.js} +7 -7
- package/dist/{chunk-2NLLXCJG.js → chunk-BXLOS5AJ.js} +2 -2
- package/dist/{chunk-OLBZ2WGG.js → chunk-C2JCVZWX.js} +2 -2
- package/dist/{chunk-D3DUA64S.js → chunk-D4R3OUZA.js} +2 -2
- package/dist/{chunk-X7Y7WX73.js → chunk-DQEMWVMT.js} +1 -1
- package/dist/{chunk-EQRD4NMH.js → chunk-EGGNFLAT.js} +2 -2
- package/dist/{chunk-FFWONAAW.js → chunk-ESDOAP7W.js} +3 -3
- package/dist/{chunk-UMZUKOJU.js → chunk-EZWIEFYD.js} +7 -7
- package/dist/{chunk-OIDICRH7.js → chunk-F5H5QINZ.js} +2 -2
- package/dist/{chunk-UVYL5G7A.js → chunk-FPSOXMLK.js} +3 -3
- package/dist/{chunk-ER2UPUMG.js → chunk-G5UKF2GJ.js} +2 -2
- package/dist/{chunk-JJ6ZEFXC.js → chunk-GGY2747C.js} +2 -2
- package/dist/{chunk-Y2YM4C75.js → chunk-GZPGI45F.js} +2 -2
- package/dist/{chunk-CDLPF3PX.js → chunk-IDEPEHUG.js} +2 -2
- package/dist/{chunk-W5IYHQA5.js → chunk-IN5EUWCA.js} +3 -3
- package/dist/{chunk-RKNJBZ55.js → chunk-JBPKEARU.js} +4 -4
- package/dist/{chunk-6BYJQ3L2.js → chunk-JJAOVJ3E.js} +8 -8
- package/dist/{chunk-ZXROBS53.js → chunk-JWCS3VYQ.js} +48 -48
- package/dist/{chunk-JMXHVJ2V.js → chunk-KE23ZIEW.js} +13 -13
- package/dist/{chunk-RCPKBW7K.js → chunk-KWJNEWTM.js} +5 -5
- package/dist/chunk-MKD3OMPS.js +20 -0
- package/dist/chunk-MKD3OMPS.js.map +1 -0
- package/dist/{chunk-VSMSYDIH.js → chunk-MLTGALDY.js} +2 -2
- package/dist/{chunk-B4B3QDV3.js → chunk-OKGQDI4Y.js} +24 -24
- package/dist/{chunk-BIJAWZYW.js → chunk-OLT3YTDH.js} +4 -4
- package/dist/{chunk-NZPFCP5A.js → chunk-OPQKVVYG.js} +2 -2
- package/dist/{chunk-D6Q5EPOV.js → chunk-PGD3DXZP.js} +2 -2
- package/dist/{chunk-ZMVW2HJJ.js → chunk-Q6LC3ZD5.js} +2 -2
- package/dist/{chunk-4PG2CKI6.js → chunk-QELYSDAU.js} +2 -2
- package/dist/{chunk-RH3XLQG4.js → chunk-S6PRJGQL.js} +2 -2
- package/dist/{chunk-NTFXBILO.js → chunk-TCJO7LOG.js} +5 -5
- package/dist/{chunk-F2JXJABQ.js → chunk-TO5U47YK.js} +2 -2
- package/dist/{chunk-7K5Q6COX.js → chunk-TVVEYCNW.js} +4 -4
- package/dist/{chunk-PRRUK2ZH.js → chunk-U3L6GRUX.js} +2 -2
- package/dist/{chunk-VKDBDJIX.js → chunk-U4RGSLI4.js} +3 -3
- package/dist/{chunk-BLHKR4GJ.js → chunk-UH53XVQ3.js} +2 -2
- package/dist/{chunk-YZ5VC2JJ.js → chunk-UXERIBOJ.js} +2 -2
- package/dist/{chunk-CQ6IWZDI.js → chunk-VA2CSIPC.js} +2 -2
- package/dist/{chunk-KQAFEZQX.js → chunk-VDX2J7OX.js} +2 -2
- package/dist/{chunk-EH7BNIUN.js → chunk-VPJNGE2R.js} +2 -2
- package/dist/{chunk-6PUF7LUO.js → chunk-VTJZSLDR.js} +2 -2
- package/dist/{chunk-PW3GKWH3.js → chunk-WHFFAS4A.js} +4 -4
- package/dist/{chunk-WKWY7YF3.js → chunk-WVNETF4Q.js} +2 -2
- package/dist/{chunk-C3ZYZKDJ.js → chunk-XSTMPZMY.js} +2 -2
- package/dist/{chunk-OUKBMQ2O.js → chunk-Z3SQEEB6.js} +2 -2
- package/dist/{chunk-36HJ36FK.js → chunk-ZBYOXIIF.js} +3 -3
- package/dist/{chunk-DSEHPUID.js → chunk-ZC5IHL5X.js} +2 -2
- package/dist/{chunk-R2Q6FTOX.js → chunk-ZDMTCO7N.js} +2 -2
- package/dist/{chunk-OERZXNSK.js → chunk-ZET6A3OF.js} +2 -2
- package/dist/{chunk-2VZHB5US.js → chunk-ZVAKRZZD.js} +2 -2
- package/dist/{cli-BOuEb4Ia.d.ts → cli-CsfFMe6n.d.ts} +1 -1
- package/dist/cli.d.ts +2 -2
- package/dist/cli.js +68 -68
- package/dist/coding/export-okf-codegraph.js +8 -8
- package/dist/coding/pre-action-gate.js +2 -2
- package/dist/compounding/engine.js +8 -8
- package/dist/config.js +3 -3
- package/dist/connectors/codex-materialize-runner.js +8 -8
- package/dist/connectors/index.js +8 -8
- package/dist/convergence-refresh.js +10 -10
- package/dist/conversation-index/backend.js +2 -2
- package/dist/corpus-watermark.js +10 -10
- package/dist/entity-retrieval.js +8 -8
- package/dist/external-wiki-access.d.ts +1 -1
- package/dist/external-wiki-access.js +28 -28
- package/dist/external-wiki-mcp-tools.d.ts +1 -1
- package/dist/extraction-span-bench.d.ts +14 -0
- package/dist/extraction-span-bench.js +17 -0
- package/dist/extraction-span-bench.js.map +1 -0
- package/dist/extraction-span-clip.d.ts +22 -0
- package/dist/extraction-span-clip.js +19 -0
- package/dist/extraction-span-clip.js.map +1 -0
- package/dist/extraction-span-contains.d.ts +12 -0
- package/dist/extraction-span-contains.js +17 -0
- package/dist/extraction-span-contains.js.map +1 -0
- package/dist/extraction-span-join.d.ts +23 -0
- package/dist/extraction-span-join.js +19 -0
- package/dist/extraction-span-join.js.map +1 -0
- package/dist/extraction-span-length.d.ts +11 -0
- package/dist/extraction-span-length.js +17 -0
- package/dist/extraction-span-length.js.map +1 -0
- package/dist/extraction-span-overlap.d.ts +14 -0
- package/dist/extraction-span-overlap.js +16 -0
- package/dist/extraction-span-overlap.js.map +1 -0
- package/dist/extraction-span-shift.d.ts +15 -0
- package/dist/extraction-span-shift.js +17 -0
- package/dist/extraction-span-shift.js.map +1 -0
- package/dist/extraction-span-slice.d.ts +12 -0
- package/dist/extraction-span-slice.js +17 -0
- package/dist/extraction-span-slice.js.map +1 -0
- package/dist/extraction-span-validate.d.ts +20 -0
- package/dist/extraction-span-validate.js +20 -0
- package/dist/extraction-span-validate.js.map +1 -0
- package/dist/extraction.js +8 -8
- package/dist/{graph-edge-decay-FXGELBFA.js → graph-edge-decay-DGTBFALQ.js} +4 -4
- package/dist/graph-snapshot.js +3 -3
- package/dist/graph.js +2 -2
- package/dist/harmonic-retrieval.js +1 -1
- package/dist/index.d.ts +861 -681
- package/dist/index.js +137 -109
- package/dist/lcm/engine.js +3 -3
- package/dist/lcm/index.js +8 -8
- package/dist/location/index.js +10 -10
- package/dist/maintenance/memory-governance.js +8 -8
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +8 -8
- package/dist/maintenance/rebuild-memory-projection.js +9 -9
- package/dist/mcp-memory-inspector-app.d.ts +1 -1
- package/dist/memory-subject-cli.d.ts +1 -1
- package/dist/memory-subject.d.ts +1 -1
- package/dist/namespaces/migrate.js +9 -9
- package/dist/namespaces/search.js +6 -6
- package/dist/namespaces/storage.js +8 -8
- package/dist/operator-doctor-corpus.js +11 -11
- package/dist/operator-toolkit.js +21 -21
- package/dist/orchestration/maintenance.js +16 -16
- package/dist/orchestrator.js +97 -97
- package/dist/{public-http-CmQRjQCD.d.ts → public-http-Cwvl4QZr.d.ts} +1 -1
- package/dist/recall-deep-budget-left.d.ts +8 -0
- package/dist/recall-deep-budget-left.js +15 -0
- package/dist/recall-deep-budget-left.js.map +1 -0
- package/dist/recall-deep-budget.d.ts +9 -0
- package/dist/recall-deep-budget.js +15 -0
- package/dist/recall-deep-budget.js.map +1 -0
- package/dist/recall-deep-expand.d.ts +12 -0
- package/dist/recall-deep-expand.js +17 -0
- package/dist/recall-deep-expand.js.map +1 -0
- package/dist/recall-deep-policy.d.ts +17 -0
- package/dist/recall-deep-policy.js +18 -0
- package/dist/recall-deep-policy.js.map +1 -0
- package/dist/recall-deep-query.d.ts +15 -0
- package/dist/recall-deep-query.js +12 -0
- package/dist/recall-deep-query.js.map +1 -0
- package/dist/recall-deep-refine.d.ts +12 -0
- package/dist/recall-deep-refine.js +17 -0
- package/dist/recall-deep-refine.js.map +1 -0
- package/dist/recall-deep-step-count.d.ts +8 -0
- package/dist/recall-deep-step-count.js +15 -0
- package/dist/recall-deep-step-count.js.map +1 -0
- package/dist/recall-deep-stop-reason.d.ts +17 -0
- package/dist/recall-deep-stop-reason.js +23 -0
- package/dist/recall-deep-stop-reason.js.map +1 -0
- package/dist/recall-deep-stop.d.ts +17 -0
- package/dist/recall-deep-stop.js +23 -0
- package/dist/recall-deep-stop.js.map +1 -0
- package/dist/recall-deep-working-set.d.ts +9 -0
- package/dist/recall-deep-working-set.js +14 -0
- package/dist/recall-deep-working-set.js.map +1 -0
- package/dist/recall-navigate-access.d.ts +39 -0
- package/dist/recall-navigate-access.js +31 -0
- package/dist/recall-navigate-access.js.map +1 -0
- package/dist/recall-navigate-action.d.ts +17 -0
- package/dist/recall-navigate-action.js +14 -0
- package/dist/recall-navigate-action.js.map +1 -0
- package/dist/recall-navigate-budget.d.ts +16 -0
- package/dist/recall-navigate-budget.js +18 -0
- package/dist/recall-navigate-budget.js.map +1 -0
- package/dist/recall-navigate-cost.d.ts +8 -0
- package/dist/recall-navigate-cost.js +15 -0
- package/dist/recall-navigate-cost.js.map +1 -0
- package/dist/recall-navigate-depth.d.ts +8 -0
- package/dist/recall-navigate-depth.js +15 -0
- package/dist/recall-navigate-depth.js.map +1 -0
- package/dist/recall-navigate-link.d.ts +17 -0
- package/dist/recall-navigate-link.js +20 -0
- package/dist/recall-navigate-link.js.map +1 -0
- package/dist/recall-navigate-max-children.d.ts +8 -0
- package/dist/recall-navigate-max-children.js +15 -0
- package/dist/recall-navigate-max-children.js.map +1 -0
- package/dist/recall-navigate-node.d.ts +15 -0
- package/dist/recall-navigate-node.js +13 -0
- package/dist/recall-navigate-node.js.map +1 -0
- package/dist/recall-navigate-path.d.ts +9 -0
- package/dist/recall-navigate-path.js +14 -0
- package/dist/recall-navigate-path.js.map +1 -0
- package/dist/recall-navigate-render.d.ts +15 -0
- package/dist/recall-navigate-render.js +23 -0
- package/dist/recall-navigate-render.js.map +1 -0
- package/dist/recall-state-view-current.d.ts +18 -0
- package/dist/recall-state-view-current.js +14 -0
- package/dist/recall-state-view-current.js.map +1 -0
- package/dist/recall-state-view-inject.d.ts +15 -0
- package/dist/recall-state-view-inject.js +16 -0
- package/dist/recall-state-view-inject.js.map +1 -0
- package/dist/recall-state-view-kind.d.ts +17 -0
- package/dist/recall-state-view-kind.js +14 -0
- package/dist/recall-state-view-kind.js.map +1 -0
- package/dist/recall-state-view-label.d.ts +17 -0
- package/dist/recall-state-view-label.js +16 -0
- package/dist/recall-state-view-label.js.map +1 -0
- package/dist/recall-state-view-render.js +3 -14
- package/dist/recall-state-view-render.js.map +1 -1
- package/dist/recall-state-view-successor.d.ts +15 -0
- package/dist/recall-state-view-successor.js +13 -0
- package/dist/recall-state-view-successor.js.map +1 -0
- package/dist/recall-state-view-superseded.d.ts +15 -0
- package/dist/recall-state-view-superseded.js +14 -0
- package/dist/recall-state-view-superseded.js.map +1 -0
- package/dist/recall-state-view-transition.d.ts +18 -0
- package/dist/recall-state-view-transition.js +14 -0
- package/dist/recall-state-view-transition.js.map +1 -0
- package/dist/resume-bundles.js +4 -4
- package/dist/schemas.d.ts +176 -176
- package/dist/search/factory.js +5 -5
- package/dist/search/index.js +9 -9
- package/dist/semantic-consolidation.js +9 -9
- package/dist/semantic-rule-promotion.js +8 -8
- package/dist/semantic-rule-verifier.js +8 -8
- package/dist/shared-context/manager.d.ts +6 -6
- package/dist/source-agent-qualifier.js +8 -8
- package/dist/storage.js +7 -7
- package/dist/support-passport/index.d.ts +4 -4
- package/dist/support-passport/index.js +30 -30
- 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/transfer/export-okf.js +9 -9
- package/dist/transfer/types.d.ts +78 -78
- package/dist/verified-recall.js +8 -8
- package/dist/who-knows-cli.d.ts +1 -1
- package/dist/who-knows-cli.js +9 -9
- package/dist/who-knows.d.ts +1 -1
- package/dist/who-knows.js +8 -8
- package/package.json +2 -2
- package/src/activity/dwell.test.ts +28 -0
- package/src/activity/dwell.ts +22 -0
- package/src/activity/from-ms.test.ts +25 -0
- package/src/activity/from-ms.ts +13 -0
- package/src/activity/heading-level.test.ts +23 -0
- package/src/activity/heading-level.ts +21 -0
- package/src/activity/heading-title.test.ts +21 -0
- package/src/activity/heading-title.ts +26 -0
- package/src/activity/index.ts +6 -0
- package/src/activity/journal-heading.test.ts +22 -0
- package/src/activity/journal-heading.ts +18 -0
- package/src/activity/journal-mode.test.ts +32 -0
- package/src/activity/journal-mode.ts +20 -0
- package/src/activity/journal-path.test.ts +25 -0
- package/src/activity/journal-path.ts +27 -0
- package/src/activity/journal-section.test.ts +37 -0
- package/src/activity/journal-section.ts +75 -0
- package/src/activity/journal-source.test.ts +37 -0
- package/src/activity/journal-source.ts +23 -0
- package/src/activity/privacy-enabled.test.ts +30 -0
- package/src/activity/privacy-enabled.ts +33 -0
- package/src/activity/privacy-keys.test.ts +22 -0
- package/src/activity/privacy-keys.ts +12 -0
- package/src/activity/privacy-redact.test.ts +25 -0
- package/src/activity/privacy-redact.ts +23 -0
- package/src/activity/privacy-window.test.ts +49 -0
- package/src/activity/privacy-window.ts +32 -0
- package/src/activity/retain-days.test.ts +20 -0
- package/src/activity/retain-days.ts +14 -0
- package/src/activity/timeline/analysis-claim.test.ts +33 -0
- package/src/activity/timeline/analysis-claim.ts +16 -0
- package/src/activity/timeline/analysis-dup.test.ts +28 -0
- package/src/activity/timeline/analysis-dup.ts +10 -0
- package/src/activity/timeline/analysis-empty.test.ts +21 -0
- package/src/activity/timeline/analysis-empty.ts +14 -0
- package/src/activity/timeline/analysis-evidence.test.ts +32 -0
- package/src/activity/timeline/analysis-evidence.ts +20 -0
- package/src/activity/timeline/analysis-max.test.ts +26 -0
- package/src/activity/timeline/analysis-max.ts +14 -0
- package/src/activity/timeline/analysis-order.test.ts +28 -0
- package/src/activity/timeline/analysis-order.ts +10 -0
- package/src/activity/timeline/analysis-prompt.test.ts +50 -0
- package/src/activity/timeline/analysis-prompt.ts +24 -0
- package/src/activity/timeline/index.ts +8 -0
- package/src/activity/timeline/recap-card-id.test.ts +21 -0
- package/src/activity/timeline/recap-card-id.ts +16 -0
- package/src/activity/timeline/recap-date.test.ts +21 -0
- package/src/activity/timeline/recap-date.ts +19 -0
- package/src/activity/timeline/recap-empty.test.ts +21 -0
- package/src/activity/timeline/recap-empty.ts +14 -0
- package/src/activity/timeline/recap-export.test.ts +78 -0
- package/src/activity/timeline/recap-export.ts +41 -0
- package/src/activity/timeline/recap-id.test.ts +28 -0
- package/src/activity/timeline/recap-id.ts +10 -0
- package/src/activity/timeline/recap-markdown.test.ts +56 -0
- package/src/activity/timeline/recap-markdown.ts +26 -0
- package/src/activity/timeline/recap-sort-key.test.ts +18 -0
- package/src/activity/timeline/recap-sort-key.ts +14 -0
- package/src/activity/timeline/recap-tz.test.ts +35 -0
- package/src/activity/timeline/recap-tz.ts +19 -0
- package/src/activity/timeline/week-count.test.ts +19 -0
- package/src/activity/timeline/week-count.ts +13 -0
- package/src/activity/timeline/week-days.test.ts +26 -0
- package/src/activity/timeline/week-days.ts +23 -0
- package/src/activity/timeline/week-export.test.ts +59 -0
- package/src/activity/timeline/week-export.ts +44 -0
- package/src/activity/timeline/week-iso.test.ts +29 -0
- package/src/activity/timeline/week-iso.ts +20 -0
- package/src/activity/timeline/week-monday.test.ts +17 -0
- package/src/activity/timeline/week-monday.ts +12 -0
- package/src/activity/timeline/week-range.test.ts +23 -0
- package/src/activity/timeline/week-range.ts +26 -0
- package/src/activity/timeline/week-snapshot.test.ts +66 -0
- package/src/activity/timeline/week-snapshot.ts +40 -0
- package/src/activity/timeline/week-sunday.test.ts +17 -0
- package/src/activity/timeline/week-sunday.ts +12 -0
- package/src/activity/to-ms.test.ts +25 -0
- package/src/activity/to-ms.ts +13 -0
- package/src/activity/vault-begin.test.ts +20 -0
- package/src/activity/vault-begin.ts +13 -0
- package/src/activity/vault-end.test.ts +20 -0
- package/src/activity/vault-end.ts +13 -0
- package/src/activity/vault-frontmatter.test.ts +28 -0
- package/src/activity/vault-frontmatter.ts +39 -0
- package/src/activity/vault-join.test.ts +21 -0
- package/src/activity/vault-join.ts +31 -0
- package/src/activity/vault-marker.test.ts +23 -0
- package/src/activity/vault-marker.ts +27 -0
- package/src/activity/vault-name-trim.test.ts +22 -0
- package/src/activity/vault-name-trim.ts +16 -0
- package/src/activity/vault-region-pair.test.ts +26 -0
- package/src/activity/vault-region-pair.ts +24 -0
- package/src/activity/vault-region.test.ts +24 -0
- package/src/activity/vault-region.ts +24 -0
- package/src/activity/vault-suffix.test.ts +20 -0
- package/src/activity/vault-suffix.ts +12 -0
- package/src/activity/vault-wikilink.test.ts +27 -0
- package/src/activity/vault-wikilink.ts +28 -0
- package/src/activity/window-order.test.ts +27 -0
- package/src/activity/window-order.ts +24 -0
- package/src/dedup/merge-count.test.ts +19 -0
- package/src/dedup/merge-count.ts +13 -0
- package/src/dedup/merge-dup.test.ts +21 -0
- package/src/dedup/merge-dup.ts +16 -0
- package/src/dedup/merge-empty.test.ts +22 -0
- package/src/dedup/merge-empty.ts +18 -0
- package/src/dedup/merge-id.test.ts +18 -0
- package/src/dedup/merge-id.ts +14 -0
- package/src/dedup/merge-min-score.test.ts +37 -0
- package/src/dedup/merge-min-score.ts +22 -0
- package/src/dedup/merge-pair.test.ts +19 -0
- package/src/dedup/merge-pair.ts +13 -0
- package/src/dedup/merge-score.test.ts +20 -0
- package/src/dedup/merge-score.ts +14 -0
- package/src/dedup/merge-self.test.ts +19 -0
- package/src/dedup/merge-self.ts +17 -0
- package/src/dedup/merge-threshold.test.ts +46 -0
- package/src/dedup/merge-threshold.ts +26 -0
- package/src/dedup/merge-tie.test.ts +22 -0
- package/src/dedup/merge-tie.ts +13 -0
- package/src/extraction-span-bench.test.ts +27 -0
- package/src/extraction-span-bench.ts +28 -0
- package/src/extraction-span-clip.test.ts +71 -0
- package/src/extraction-span-clip.ts +26 -0
- package/src/extraction-span-contains.test.ts +30 -0
- package/src/extraction-span-contains.ts +20 -0
- package/src/extraction-span-join.test.ts +50 -0
- package/src/extraction-span-join.ts +30 -0
- package/src/extraction-span-length.test.ts +25 -0
- package/src/extraction-span-length.ts +16 -0
- package/src/extraction-span-overlap.test.ts +34 -0
- package/src/extraction-span-overlap.ts +23 -0
- package/src/extraction-span-shift.test.ts +25 -0
- package/src/extraction-span-shift.ts +20 -0
- package/src/extraction-span-slice.test.ts +32 -0
- package/src/extraction-span-slice.ts +20 -0
- package/src/extraction-span-validate.test.ts +42 -0
- package/src/extraction-span-validate.ts +27 -0
- package/src/recall-deep-budget-left.test.ts +20 -0
- package/src/recall-deep-budget-left.ts +13 -0
- package/src/recall-deep-budget.test.ts +19 -0
- package/src/recall-deep-budget.ts +14 -0
- package/src/recall-deep-expand.test.ts +23 -0
- package/src/recall-deep-expand.ts +19 -0
- package/src/recall-deep-policy.test.ts +32 -0
- package/src/recall-deep-policy.ts +22 -0
- package/src/recall-deep-query.test.ts +23 -0
- package/src/recall-deep-query.ts +15 -0
- package/src/recall-deep-refine.test.ts +23 -0
- package/src/recall-deep-refine.ts +19 -0
- package/src/recall-deep-step-count.test.ts +20 -0
- package/src/recall-deep-step-count.ts +13 -0
- package/src/recall-deep-stop-reason.test.ts +46 -0
- package/src/recall-deep-stop-reason.ts +27 -0
- package/src/recall-deep-stop.test.ts +34 -0
- package/src/recall-deep-stop.ts +31 -0
- package/src/recall-deep-working-set.test.ts +21 -0
- package/src/recall-deep-working-set.ts +14 -0
- package/src/recall-navigate-access.test.ts +73 -0
- package/src/recall-navigate-access.ts +48 -0
- package/src/recall-navigate-action.test.ts +32 -0
- package/src/recall-navigate-action.ts +20 -0
- package/src/recall-navigate-budget.test.ts +23 -0
- package/src/recall-navigate-budget.ts +22 -0
- package/src/recall-navigate-cost.test.ts +20 -0
- package/src/recall-navigate-cost.ts +13 -0
- package/src/recall-navigate-depth.test.ts +20 -0
- package/src/recall-navigate-depth.ts +13 -0
- package/src/recall-navigate-link.test.ts +19 -0
- package/src/recall-navigate-link.ts +26 -0
- package/src/recall-navigate-max-children.test.ts +20 -0
- package/src/recall-navigate-max-children.ts +13 -0
- package/src/recall-navigate-node.test.ts +21 -0
- package/src/recall-navigate-node.ts +16 -0
- package/src/recall-navigate-path.test.ts +21 -0
- package/src/recall-navigate-path.ts +14 -0
- package/src/recall-navigate-render.test.ts +63 -0
- package/src/recall-navigate-render.ts +31 -0
- package/src/recall-state-view-current.test.ts +23 -0
- package/src/recall-state-view-current.ts +24 -0
- package/src/recall-state-view-inject.test.ts +32 -0
- package/src/recall-state-view-inject.ts +14 -0
- package/src/recall-state-view-kind.test.ts +19 -0
- package/src/recall-state-view-kind.ts +20 -0
- package/src/recall-state-view-label.test.ts +36 -0
- package/src/recall-state-view-label.ts +22 -0
- package/src/recall-state-view-successor.test.ts +21 -0
- package/src/recall-state-view-successor.ts +16 -0
- package/src/recall-state-view-superseded.test.ts +20 -0
- package/src/recall-state-view-superseded.ts +17 -0
- package/src/recall-state-view-transition.test.ts +30 -0
- package/src/recall-state-view-transition.ts +24 -0
- package/src/shared-context/authority.test.ts +35 -0
- package/src/shared-context/authority.ts +25 -0
- package/src/shared-context/claim-key.test.ts +21 -0
- package/src/shared-context/claim-key.ts +16 -0
- package/src/shared-context/contradictions.test.ts +39 -0
- package/src/shared-context/contradictions.ts +32 -0
- package/src/shared-context/envelope-actor.test.ts +21 -0
- package/src/shared-context/envelope-actor.ts +16 -0
- package/src/shared-context/envelope-at.test.ts +19 -0
- package/src/shared-context/envelope-at.ts +17 -0
- package/src/shared-context/envelope-id.test.ts +21 -0
- package/src/shared-context/envelope-id.ts +16 -0
- package/src/shared-context/envelope-required.test.ts +24 -0
- package/src/shared-context/envelope-required.ts +15 -0
- package/src/shared-context/envelope-ttl.test.ts +29 -0
- package/src/shared-context/envelope-ttl.ts +35 -0
- package/src/shared-context/provenance.test.ts +35 -0
- package/src/shared-context/provenance.ts +68 -0
- package/dist/chunk-47WWTCJY.js.map +0 -1
- package/dist/{access-service-Dz6I9AZ-.d.ts → access-service-C2tV2-uL.d.ts} +64 -64
- /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-YO5QJ6L3.js.map} +0 -0
- /package/dist/{chunk-F4W5HTED.js.map → chunk-3HHTN5X7.js.map} +0 -0
- /package/dist/{chunk-UHQE37NI.js.map → chunk-3Z4SFJA5.js.map} +0 -0
- /package/dist/{chunk-PP7R754B.js.map → chunk-4PTTMTTQ.js.map} +0 -0
- /package/dist/{chunk-AI5M4FVQ.js.map → chunk-4XESAT4V.js.map} +0 -0
- /package/dist/{chunk-6545JDIM.js.map → chunk-5KGLNBUB.js.map} +0 -0
- /package/dist/{chunk-2QSGJTDG.js.map → chunk-5XRZANCW.js.map} +0 -0
- /package/dist/{chunk-LSR5LQXN.js.map → chunk-6DODJYBY.js.map} +0 -0
- /package/dist/{chunk-D2YNNDML.js.map → chunk-73CAEYI3.js.map} +0 -0
- /package/dist/{chunk-J2R275FN.js.map → chunk-7DXW5V2W.js.map} +0 -0
- /package/dist/{chunk-25OLNWYG.js.map → chunk-7JJHIVMG.js.map} +0 -0
- /package/dist/{chunk-65HXVEVG.js.map → chunk-7NNMRMLZ.js.map} +0 -0
- /package/dist/{chunk-227UFSEQ.js.map → chunk-7RZJWZ46.js.map} +0 -0
- /package/dist/{chunk-ZBIEX4XN.js.map → chunk-B2OKCCXX.js.map} +0 -0
- /package/dist/{chunk-U4HZEW2B.js.map → chunk-B7AGLMGP.js.map} +0 -0
- /package/dist/{chunk-2NLLXCJG.js.map → chunk-BXLOS5AJ.js.map} +0 -0
- /package/dist/{chunk-OLBZ2WGG.js.map → chunk-C2JCVZWX.js.map} +0 -0
- /package/dist/{chunk-D3DUA64S.js.map → chunk-D4R3OUZA.js.map} +0 -0
- /package/dist/{chunk-X7Y7WX73.js.map → chunk-DQEMWVMT.js.map} +0 -0
- /package/dist/{chunk-EQRD4NMH.js.map → chunk-EGGNFLAT.js.map} +0 -0
- /package/dist/{chunk-FFWONAAW.js.map → chunk-ESDOAP7W.js.map} +0 -0
- /package/dist/{chunk-UMZUKOJU.js.map → chunk-EZWIEFYD.js.map} +0 -0
- /package/dist/{chunk-OIDICRH7.js.map → chunk-F5H5QINZ.js.map} +0 -0
- /package/dist/{chunk-UVYL5G7A.js.map → chunk-FPSOXMLK.js.map} +0 -0
- /package/dist/{chunk-ER2UPUMG.js.map → chunk-G5UKF2GJ.js.map} +0 -0
- /package/dist/{chunk-JJ6ZEFXC.js.map → chunk-GGY2747C.js.map} +0 -0
- /package/dist/{chunk-Y2YM4C75.js.map → chunk-GZPGI45F.js.map} +0 -0
- /package/dist/{chunk-CDLPF3PX.js.map → chunk-IDEPEHUG.js.map} +0 -0
- /package/dist/{chunk-W5IYHQA5.js.map → chunk-IN5EUWCA.js.map} +0 -0
- /package/dist/{chunk-RKNJBZ55.js.map → chunk-JBPKEARU.js.map} +0 -0
- /package/dist/{chunk-6BYJQ3L2.js.map → chunk-JJAOVJ3E.js.map} +0 -0
- /package/dist/{chunk-ZXROBS53.js.map → chunk-JWCS3VYQ.js.map} +0 -0
- /package/dist/{chunk-JMXHVJ2V.js.map → chunk-KE23ZIEW.js.map} +0 -0
- /package/dist/{chunk-RCPKBW7K.js.map → chunk-KWJNEWTM.js.map} +0 -0
- /package/dist/{chunk-VSMSYDIH.js.map → chunk-MLTGALDY.js.map} +0 -0
- /package/dist/{chunk-B4B3QDV3.js.map → chunk-OKGQDI4Y.js.map} +0 -0
- /package/dist/{chunk-BIJAWZYW.js.map → chunk-OLT3YTDH.js.map} +0 -0
- /package/dist/{chunk-NZPFCP5A.js.map → chunk-OPQKVVYG.js.map} +0 -0
- /package/dist/{chunk-D6Q5EPOV.js.map → chunk-PGD3DXZP.js.map} +0 -0
- /package/dist/{chunk-ZMVW2HJJ.js.map → chunk-Q6LC3ZD5.js.map} +0 -0
- /package/dist/{chunk-4PG2CKI6.js.map → chunk-QELYSDAU.js.map} +0 -0
- /package/dist/{chunk-RH3XLQG4.js.map → chunk-S6PRJGQL.js.map} +0 -0
- /package/dist/{chunk-NTFXBILO.js.map → chunk-TCJO7LOG.js.map} +0 -0
- /package/dist/{chunk-F2JXJABQ.js.map → chunk-TO5U47YK.js.map} +0 -0
- /package/dist/{chunk-7K5Q6COX.js.map → chunk-TVVEYCNW.js.map} +0 -0
- /package/dist/{chunk-PRRUK2ZH.js.map → chunk-U3L6GRUX.js.map} +0 -0
- /package/dist/{chunk-VKDBDJIX.js.map → chunk-U4RGSLI4.js.map} +0 -0
- /package/dist/{chunk-BLHKR4GJ.js.map → chunk-UH53XVQ3.js.map} +0 -0
- /package/dist/{chunk-YZ5VC2JJ.js.map → chunk-UXERIBOJ.js.map} +0 -0
- /package/dist/{chunk-CQ6IWZDI.js.map → chunk-VA2CSIPC.js.map} +0 -0
- /package/dist/{chunk-KQAFEZQX.js.map → chunk-VDX2J7OX.js.map} +0 -0
- /package/dist/{chunk-EH7BNIUN.js.map → chunk-VPJNGE2R.js.map} +0 -0
- /package/dist/{chunk-6PUF7LUO.js.map → chunk-VTJZSLDR.js.map} +0 -0
- /package/dist/{chunk-PW3GKWH3.js.map → chunk-WHFFAS4A.js.map} +0 -0
- /package/dist/{chunk-WKWY7YF3.js.map → chunk-WVNETF4Q.js.map} +0 -0
- /package/dist/{chunk-C3ZYZKDJ.js.map → chunk-XSTMPZMY.js.map} +0 -0
- /package/dist/{chunk-OUKBMQ2O.js.map → chunk-Z3SQEEB6.js.map} +0 -0
- /package/dist/{chunk-36HJ36FK.js.map → chunk-ZBYOXIIF.js.map} +0 -0
- /package/dist/{chunk-DSEHPUID.js.map → chunk-ZC5IHL5X.js.map} +0 -0
- /package/dist/{chunk-R2Q6FTOX.js.map → chunk-ZDMTCO7N.js.map} +0 -0
- /package/dist/{chunk-OERZXNSK.js.map → chunk-ZET6A3OF.js.map} +0 -0
- /package/dist/{chunk-2VZHB5US.js.map → chunk-ZVAKRZZD.js.map} +0 -0
- /package/dist/{graph-edge-decay-FXGELBFA.js.map → graph-edge-decay-DGTBFALQ.js.map} +0 -0
|
@@ -7,22 +7,22 @@ import {
|
|
|
7
7
|
syncWearableSource,
|
|
8
8
|
wearableSourceLabel
|
|
9
9
|
} from "./chunk-3TSU662L.js";
|
|
10
|
-
import {
|
|
11
|
-
CompressionGuidelineCoordinator
|
|
12
|
-
} from "./chunk-UXREWVW4.js";
|
|
13
10
|
import {
|
|
14
11
|
ActivityStore,
|
|
15
12
|
MaintenanceScheduler
|
|
16
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-B7AGLMGP.js";
|
|
17
14
|
import {
|
|
18
15
|
runPeerProfileReasoner
|
|
19
16
|
} from "./chunk-I74SUMNI.js";
|
|
20
17
|
import {
|
|
21
18
|
migrateFromEngram
|
|
22
19
|
} from "./chunk-7HYPN2GC.js";
|
|
20
|
+
import {
|
|
21
|
+
CompressionGuidelineCoordinator
|
|
22
|
+
} from "./chunk-UXREWVW4.js";
|
|
23
23
|
import {
|
|
24
24
|
LcmEngine
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-EZWIEFYD.js";
|
|
26
26
|
import {
|
|
27
27
|
chunkTranscriptEntries
|
|
28
28
|
} from "./chunk-TECVW3JP.js";
|
|
@@ -32,27 +32,21 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
CompoundingEngine,
|
|
34
34
|
defaultTierMigrationCycleBudget
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-EGGNFLAT.js";
|
|
36
36
|
import {
|
|
37
37
|
SharedContextManager
|
|
38
38
|
} from "./chunk-VI637ILW.js";
|
|
39
|
-
import {
|
|
40
|
-
cleanArchivedUserMessage
|
|
41
|
-
} from "./chunk-47DU4SGJ.js";
|
|
42
39
|
import {
|
|
43
40
|
applyUtilityPromotionRuntimePolicy,
|
|
44
41
|
applyUtilityRankingRuntimeDelta,
|
|
45
42
|
loadUtilityRuntimeValues
|
|
46
43
|
} from "./chunk-SEF4IOFE.js";
|
|
47
|
-
import {
|
|
48
|
-
TmtBuilder
|
|
49
|
-
} from "./chunk-ECZU5BJH.js";
|
|
50
44
|
import {
|
|
51
45
|
extractTopics
|
|
52
46
|
} from "./chunk-KVDUKH5E.js";
|
|
53
47
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
48
|
+
cleanArchivedUserMessage
|
|
49
|
+
} from "./chunk-47DU4SGJ.js";
|
|
56
50
|
import {
|
|
57
51
|
CODEX_THREAD_KEY_PREFIX
|
|
58
52
|
} from "./chunk-4EX5WZ4M.js";
|
|
@@ -63,23 +57,21 @@ import {
|
|
|
63
57
|
decideTierTransition
|
|
64
58
|
} from "./chunk-DD5JFCWM.js";
|
|
65
59
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
60
|
+
TmtBuilder
|
|
61
|
+
} from "./chunk-ECZU5BJH.js";
|
|
68
62
|
import {
|
|
69
63
|
buildTargetedFactRecallSection,
|
|
70
64
|
shouldRecallTargetedFactEvidence
|
|
71
65
|
} from "./chunk-T67LUYCR.js";
|
|
72
66
|
import {
|
|
73
|
-
|
|
74
|
-
} from "./chunk-
|
|
67
|
+
buildTemporalTimelineRecallSection
|
|
68
|
+
} from "./chunk-2NKY7OC6.js";
|
|
75
69
|
import {
|
|
76
|
-
|
|
77
|
-
} from "./chunk-
|
|
70
|
+
HourlySummarizer
|
|
71
|
+
} from "./chunk-IEZ6CGTW.js";
|
|
78
72
|
import {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
rerankLocalOrNoop
|
|
82
|
-
} from "./chunk-LUDXM7MD.js";
|
|
73
|
+
SessionObserverState
|
|
74
|
+
} from "./chunk-ODZKV2F7.js";
|
|
83
75
|
import {
|
|
84
76
|
buildResponseGuidanceRecallSection,
|
|
85
77
|
shouldRecallResponseGuidance
|
|
@@ -105,12 +97,20 @@ import {
|
|
|
105
97
|
recencyWindowFromPrompt,
|
|
106
98
|
resolvePromptTagPrefilterAsync
|
|
107
99
|
} from "./chunk-ZOKZIR5K.js";
|
|
100
|
+
import {
|
|
101
|
+
applyRuntimeRetrievalPolicy
|
|
102
|
+
} from "./chunk-5IZL4DCV.js";
|
|
108
103
|
import {
|
|
109
104
|
findUnresolvedEntityRefs
|
|
110
105
|
} from "./chunk-X7XN6YU4.js";
|
|
111
106
|
import {
|
|
112
107
|
RelevanceStore
|
|
113
108
|
} from "./chunk-KATEWTQJ.js";
|
|
109
|
+
import {
|
|
110
|
+
RerankCache,
|
|
111
|
+
reorderByRankedKeys,
|
|
112
|
+
rerankLocalOrNoop
|
|
113
|
+
} from "./chunk-LUDXM7MD.js";
|
|
114
114
|
import {
|
|
115
115
|
applyRecallStateViews
|
|
116
116
|
} from "./chunk-FYDW33ZB.js";
|
|
@@ -141,12 +141,6 @@ import {
|
|
|
141
141
|
import {
|
|
142
142
|
runLiveConnectorsOnce
|
|
143
143
|
} from "./chunk-HTIIXNJQ.js";
|
|
144
|
-
import {
|
|
145
|
-
classifyMemoryKind
|
|
146
|
-
} from "./chunk-YAZNBMNF.js";
|
|
147
|
-
import {
|
|
148
|
-
scoreEvidencePathDetail
|
|
149
|
-
} from "./chunk-XXSOVESA.js";
|
|
150
144
|
import {
|
|
151
145
|
deriveHarmonicRecords,
|
|
152
146
|
harmonicEntityReferenceMatches,
|
|
@@ -155,9 +149,11 @@ import {
|
|
|
155
149
|
persistHarmonicRecords
|
|
156
150
|
} from "./chunk-MEW53VQJ.js";
|
|
157
151
|
import {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
152
|
+
classifyMemoryKind
|
|
153
|
+
} from "./chunk-YAZNBMNF.js";
|
|
154
|
+
import {
|
|
155
|
+
scoreEvidencePathDetail
|
|
156
|
+
} from "./chunk-XXSOVESA.js";
|
|
161
157
|
import {
|
|
162
158
|
ExtractionEngine
|
|
163
159
|
} from "./chunk-3A2Z4OOS.js";
|
|
@@ -167,6 +163,10 @@ import {
|
|
|
167
163
|
import {
|
|
168
164
|
ModelRegistry
|
|
169
165
|
} from "./chunk-WLZYGLJ4.js";
|
|
166
|
+
import {
|
|
167
|
+
buildFocusedListRecallSection,
|
|
168
|
+
shouldRecallFocusedListEvidence
|
|
169
|
+
} from "./chunk-OH7QLI6W.js";
|
|
170
170
|
import {
|
|
171
171
|
recordJudgeTrainingPair
|
|
172
172
|
} from "./chunk-PWFCHOB3.js";
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
buildEntityRecallSection,
|
|
195
195
|
entityRecentTranscriptLookbackHours,
|
|
196
196
|
readRecentEntityTranscriptEntries
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-7JJHIVMG.js";
|
|
198
198
|
import {
|
|
199
199
|
planEpisodeWindowsWithFallback
|
|
200
200
|
} from "./chunk-T3GIETKV.js";
|
|
@@ -209,31 +209,31 @@ import {
|
|
|
209
209
|
} from "./chunk-LVXBC6YB.js";
|
|
210
210
|
import {
|
|
211
211
|
refreshConvergedNamespaces
|
|
212
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-ZDMTCO7N.js";
|
|
213
213
|
import {
|
|
214
214
|
builtInConnectorPackageSpecifier,
|
|
215
215
|
ensureBuiltInWearableConnectors,
|
|
216
216
|
getWearableConnector,
|
|
217
217
|
listWearableConnectors,
|
|
218
218
|
screenCandidateFact
|
|
219
|
-
} from "./chunk-
|
|
220
|
-
import {
|
|
221
|
-
normalizeReplaySessionKey
|
|
222
|
-
} from "./chunk-AJVLDJU6.js";
|
|
219
|
+
} from "./chunk-JWCS3VYQ.js";
|
|
223
220
|
import {
|
|
224
221
|
RoutingRulesStore
|
|
225
222
|
} from "./chunk-TBUEE7XF.js";
|
|
223
|
+
import {
|
|
224
|
+
normalizeReplaySessionKey
|
|
225
|
+
} from "./chunk-AJVLDJU6.js";
|
|
226
226
|
import {
|
|
227
227
|
compareVerifiedEpisodeResults,
|
|
228
228
|
searchVerifiedEpisodes
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-F5H5QINZ.js";
|
|
230
230
|
import {
|
|
231
231
|
ThreadingManager
|
|
232
232
|
} from "./chunk-OJP3N7UK.js";
|
|
233
233
|
import {
|
|
234
234
|
compareVerifiedSemanticRuleResults,
|
|
235
235
|
searchVerifiedSemanticRules
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-UH53XVQ3.js";
|
|
237
237
|
import {
|
|
238
238
|
searchWorkProductLedgerEntries
|
|
239
239
|
} from "./chunk-NRLELHAY.js";
|
|
@@ -246,13 +246,13 @@ import {
|
|
|
246
246
|
import {
|
|
247
247
|
runNamespaceMaintenanceFanout,
|
|
248
248
|
summarizeNamespaceMaintenanceHealth
|
|
249
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-5XRZANCW.js";
|
|
250
250
|
import {
|
|
251
251
|
planNamespaceMaintenance
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-FPSOXMLK.js";
|
|
253
253
|
import {
|
|
254
254
|
searchHarmonicRetrieval
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-B2OKCCXX.js";
|
|
256
256
|
import {
|
|
257
257
|
isAboveImportanceThreshold,
|
|
258
258
|
scoreImportance
|
|
@@ -284,7 +284,7 @@ import {
|
|
|
284
284
|
materializeAfterSemanticConsolidation,
|
|
285
285
|
parseConsolidationResponse,
|
|
286
286
|
parseOperatorAwareConsolidationResponse
|
|
287
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-S6PRJGQL.js";
|
|
288
288
|
import {
|
|
289
289
|
semanticChunkContent
|
|
290
290
|
} from "./chunk-2GBFKHBZ.js";
|
|
@@ -317,7 +317,7 @@ import {
|
|
|
317
317
|
applyNoveltyGate,
|
|
318
318
|
detectMeetings,
|
|
319
319
|
embeddingsFromCosineHits
|
|
320
|
-
} from "./chunk-
|
|
320
|
+
} from "./chunk-VPJNGE2R.js";
|
|
321
321
|
import {
|
|
322
322
|
compileCorrectionRule,
|
|
323
323
|
correctionsFilePath,
|
|
@@ -330,14 +330,14 @@ import {
|
|
|
330
330
|
} from "./chunk-QW27DOHG.js";
|
|
331
331
|
import {
|
|
332
332
|
MeetingsInputError
|
|
333
|
-
} from "./chunk-
|
|
333
|
+
} from "./chunk-KE23ZIEW.js";
|
|
334
334
|
import {
|
|
335
335
|
WearablesInputError,
|
|
336
336
|
describeErrorForOperator
|
|
337
337
|
} from "./chunk-V7IZKJI3.js";
|
|
338
338
|
import {
|
|
339
339
|
NamespaceCatalog
|
|
340
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-U3L6GRUX.js";
|
|
341
341
|
import {
|
|
342
342
|
recordDreamsPhaseRun
|
|
343
343
|
} from "./chunk-EQWEIIKQ.js";
|
|
@@ -356,17 +356,13 @@ import {
|
|
|
356
356
|
isTopLevelArchivePath,
|
|
357
357
|
journalPath,
|
|
358
358
|
writeJournalFile
|
|
359
|
-
} from "./chunk-
|
|
359
|
+
} from "./chunk-OKGQDI4Y.js";
|
|
360
360
|
import {
|
|
361
361
|
importCapsule
|
|
362
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-7DXW5V2W.js";
|
|
363
363
|
import {
|
|
364
364
|
isCodingGraphInstalled
|
|
365
365
|
} from "./chunk-VQ7B2Q6M.js";
|
|
366
|
-
import {
|
|
367
|
-
listTrustZoneRecords,
|
|
368
|
-
searchTrustZoneRecords
|
|
369
|
-
} from "./chunk-5QZR2RA3.js";
|
|
370
366
|
import {
|
|
371
367
|
applyTrustScoreStage,
|
|
372
368
|
buildTrustSignalsForRerank,
|
|
@@ -374,6 +370,10 @@ import {
|
|
|
374
370
|
trustResultFor,
|
|
375
371
|
trustResultKey
|
|
376
372
|
} from "./chunk-GNVZQ5JN.js";
|
|
373
|
+
import {
|
|
374
|
+
listTrustZoneRecords,
|
|
375
|
+
searchTrustZoneRecords
|
|
376
|
+
} from "./chunk-5QZR2RA3.js";
|
|
377
377
|
import {
|
|
378
378
|
LastRecallStore,
|
|
379
379
|
RecallHandleHistoryStore,
|
|
@@ -387,16 +387,16 @@ import {
|
|
|
387
387
|
objectiveStateStoreOverrideForNamespace,
|
|
388
388
|
searchObjectiveStateSnapshots
|
|
389
389
|
} from "./chunk-HTP6XRUI.js";
|
|
390
|
-
import {
|
|
391
|
-
contentMatchesRedactionRules,
|
|
392
|
-
loadRedactionRules
|
|
393
|
-
} from "./chunk-LTHVM4XN.js";
|
|
394
390
|
import {
|
|
395
391
|
ProfilingCollector
|
|
396
392
|
} from "./chunk-NLE6TSLG.js";
|
|
397
393
|
import {
|
|
398
394
|
LocalLlmClient
|
|
399
395
|
} from "./chunk-IVKIODHO.js";
|
|
396
|
+
import {
|
|
397
|
+
contentMatchesRedactionRules,
|
|
398
|
+
loadRedactionRules
|
|
399
|
+
} from "./chunk-LTHVM4XN.js";
|
|
400
400
|
import {
|
|
401
401
|
shouldSkipImplicitExtraction
|
|
402
402
|
} from "./chunk-X5YYSAZX.js";
|
|
@@ -410,10 +410,10 @@ import {
|
|
|
410
410
|
} from "./chunk-7ZNJN5WZ.js";
|
|
411
411
|
import {
|
|
412
412
|
NamespaceStorageRouter
|
|
413
|
-
} from "./chunk-
|
|
413
|
+
} from "./chunk-5KGLNBUB.js";
|
|
414
414
|
import {
|
|
415
415
|
GraphIndex
|
|
416
|
-
} from "./chunk-
|
|
416
|
+
} from "./chunk-OLT3YTDH.js";
|
|
417
417
|
import {
|
|
418
418
|
BulkImportBatchPartialFailureError,
|
|
419
419
|
COMPACTION_SIGNAL_MAX_AGE_MS,
|
|
@@ -467,7 +467,7 @@ import {
|
|
|
467
467
|
} from "./chunk-TBBDFYXW.js";
|
|
468
468
|
import {
|
|
469
469
|
buildChainFollowupGenerator
|
|
470
|
-
} from "./chunk-
|
|
470
|
+
} from "./chunk-WVNETF4Q.js";
|
|
471
471
|
import {
|
|
472
472
|
QmdResultResolver,
|
|
473
473
|
StorageManager,
|
|
@@ -486,7 +486,7 @@ import {
|
|
|
486
486
|
reconstructFusionInputs,
|
|
487
487
|
selfDeps,
|
|
488
488
|
serializeFusionDay
|
|
489
|
-
} from "./chunk-
|
|
489
|
+
} from "./chunk-ZC5IHL5X.js";
|
|
490
490
|
import {
|
|
491
491
|
bodyIsEscaped,
|
|
492
492
|
decodeTranscriptBody,
|
|
@@ -503,12 +503,12 @@ import {
|
|
|
503
503
|
import {
|
|
504
504
|
NamespaceSearchRouter,
|
|
505
505
|
namespaceCollectionName
|
|
506
|
-
} from "./chunk-
|
|
506
|
+
} from "./chunk-ZET6A3OF.js";
|
|
507
507
|
import {
|
|
508
508
|
createConversationIndexRuntime,
|
|
509
509
|
createSearchBackend,
|
|
510
510
|
isSearchBackendEnabled
|
|
511
|
-
} from "./chunk-
|
|
511
|
+
} from "./chunk-JJAOVJ3E.js";
|
|
512
512
|
import {
|
|
513
513
|
NoopSearchBackend
|
|
514
514
|
} from "./chunk-CYEPCZN5.js";
|
|
@@ -605,7 +605,7 @@ import {
|
|
|
605
605
|
} from "./chunk-M6L7HI7R.js";
|
|
606
606
|
import {
|
|
607
607
|
searchCausalTrajectories
|
|
608
|
-
} from "./chunk-
|
|
608
|
+
} from "./chunk-4PTTMTTQ.js";
|
|
609
609
|
import {
|
|
610
610
|
evaluateSubjectGuard,
|
|
611
611
|
isSharedPromotionTarget,
|
|
@@ -2323,7 +2323,7 @@ var RecallRerankCoordinator = class _RecallRerankCoordinator {
|
|
|
2323
2323
|
namespaces,
|
|
2324
2324
|
{
|
|
2325
2325
|
readNamespaceMemories: async (ns) => (await this.getStorage(ns)).readAllMemories(),
|
|
2326
|
-
readMemoryFrontmatter: async (
|
|
2326
|
+
readMemoryFrontmatter: async (path40, preferredNamespace) => {
|
|
2327
2327
|
if (!fallbackReader) {
|
|
2328
2328
|
for (const ns of namespaces) {
|
|
2329
2329
|
try {
|
|
@@ -2335,7 +2335,7 @@ var RecallRerankCoordinator = class _RecallRerankCoordinator {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
if (!fallbackReader) return null;
|
|
2337
2337
|
const memory = await this.readQmdResultMemory(
|
|
2338
|
-
|
|
2338
|
+
path40,
|
|
2339
2339
|
fallbackReader,
|
|
2340
2340
|
namespaces,
|
|
2341
2341
|
preferredNamespace
|
|
@@ -22337,9 +22337,9 @@ function readStructuralSymbol(entry) {
|
|
|
22337
22337
|
const rec = entry;
|
|
22338
22338
|
const symbol = typeof rec.symbol === "string" ? rec.symbol.trim() : "";
|
|
22339
22339
|
if (!symbol) return null;
|
|
22340
|
-
const
|
|
22340
|
+
const path40 = typeof rec.path === "string" && rec.path.length > 0 ? rec.path : void 0;
|
|
22341
22341
|
const kind = typeof rec.kind === "string" && rec.kind.length > 0 ? rec.kind : void 0;
|
|
22342
|
-
const item =
|
|
22342
|
+
const item = path40 !== void 0 && kind !== void 0 ? { symbol, path: path40, kind } : path40 !== void 0 ? { symbol, path: path40 } : kind !== void 0 ? { symbol, kind } : { symbol };
|
|
22343
22343
|
return item;
|
|
22344
22344
|
}
|
|
22345
22345
|
function classifySpawnError(err) {
|
|
@@ -27133,6 +27133,66 @@ async function analyzeTimelineCards(input) {
|
|
|
27133
27133
|
};
|
|
27134
27134
|
}
|
|
27135
27135
|
|
|
27136
|
+
// src/activity/timeline/recap-export.ts
|
|
27137
|
+
function compareCardIds(a, b) {
|
|
27138
|
+
if (a.id < b.id) return -1;
|
|
27139
|
+
if (a.id > b.id) return 1;
|
|
27140
|
+
return 0;
|
|
27141
|
+
}
|
|
27142
|
+
function exportDeterministicRecap(options) {
|
|
27143
|
+
return {
|
|
27144
|
+
date: options.date,
|
|
27145
|
+
timezone: options.timezone,
|
|
27146
|
+
cards: [...options.cards].sort(compareCardIds)
|
|
27147
|
+
};
|
|
27148
|
+
}
|
|
27149
|
+
|
|
27150
|
+
// src/activity/timeline/recap-markdown.ts
|
|
27151
|
+
function compareCardIds2(a, b) {
|
|
27152
|
+
if (a.id < b.id) return -1;
|
|
27153
|
+
if (a.id > b.id) return 1;
|
|
27154
|
+
return 0;
|
|
27155
|
+
}
|
|
27156
|
+
function renderRecapMarkdown(options) {
|
|
27157
|
+
const cards = [...options.cards].sort(compareCardIds2);
|
|
27158
|
+
const body = cards.length === 0 ? ["(empty)"] : cards.map((card) => `- ${card.id}`);
|
|
27159
|
+
return [`# Recap \u2014 ${options.date} (${options.timezone})`, "", ...body, ""].join("\n");
|
|
27160
|
+
}
|
|
27161
|
+
|
|
27162
|
+
// src/activity/timeline/week-export.ts
|
|
27163
|
+
function compareDates(a, b) {
|
|
27164
|
+
if (a.date < b.date) return -1;
|
|
27165
|
+
if (a.date > b.date) return 1;
|
|
27166
|
+
return 0;
|
|
27167
|
+
}
|
|
27168
|
+
function exportDeterministicWeek(options) {
|
|
27169
|
+
return {
|
|
27170
|
+
weekStart: options.weekStart,
|
|
27171
|
+
timezone: options.timezone,
|
|
27172
|
+
days: [...options.days].sort(compareDates)
|
|
27173
|
+
};
|
|
27174
|
+
}
|
|
27175
|
+
|
|
27176
|
+
// src/activity/timeline/week-snapshot.ts
|
|
27177
|
+
function compareDates2(a, b) {
|
|
27178
|
+
if (a.date < b.date) return -1;
|
|
27179
|
+
if (a.date > b.date) return 1;
|
|
27180
|
+
return 0;
|
|
27181
|
+
}
|
|
27182
|
+
function renderWeekSnapshot(options) {
|
|
27183
|
+
const days = [...options.days].sort(compareDates2);
|
|
27184
|
+
const body = days.length === 0 ? ["## Days", "(empty)"] : days.flatMap((day) => [`## ${day.date}`, "(empty)", ""]);
|
|
27185
|
+
return [
|
|
27186
|
+
"# Week snapshot",
|
|
27187
|
+
"",
|
|
27188
|
+
`- weekStart: ${options.weekStart}`,
|
|
27189
|
+
`- timezone: ${options.timezone}`,
|
|
27190
|
+
"",
|
|
27191
|
+
...body,
|
|
27192
|
+
""
|
|
27193
|
+
].join("\n");
|
|
27194
|
+
}
|
|
27195
|
+
|
|
27136
27196
|
// src/activity/timeline/analysis-batch.ts
|
|
27137
27197
|
function compareObservations(a, b) {
|
|
27138
27198
|
const time = Date.parse(a.capturedAtUtc) - Date.parse(b.capturedAtUtc);
|
|
@@ -27162,6 +27222,39 @@ function batchObservations2(observations, options) {
|
|
|
27162
27222
|
return batches;
|
|
27163
27223
|
}
|
|
27164
27224
|
|
|
27225
|
+
// src/activity/timeline/analysis-evidence.ts
|
|
27226
|
+
function boundEvidence(claims, observations) {
|
|
27227
|
+
if (observations.length === 0) return [];
|
|
27228
|
+
const ids = new Set(observations.map((observation) => observation.id));
|
|
27229
|
+
return claims.filter((claim) => ids.has(claim.observationId));
|
|
27230
|
+
}
|
|
27231
|
+
|
|
27232
|
+
// src/activity/timeline/analysis-prompt.ts
|
|
27233
|
+
var INSTRUCTIONS2 = "Use only supplied evidence. Preserve chronology. Do not invent people, places, or tasks. Return strict JSON.";
|
|
27234
|
+
function listedObservation(observation) {
|
|
27235
|
+
return { id: observation.id, capturedAtUtc: observation.capturedAtUtc };
|
|
27236
|
+
}
|
|
27237
|
+
function buildAnalysisPrompt(input) {
|
|
27238
|
+
const listed = [...input.observations].sort((a, b) => a.id - b.id).map(listedObservation);
|
|
27239
|
+
const body = listed.length === 0 ? "(empty)" : JSON.stringify(listed);
|
|
27240
|
+
return `${INSTRUCTIONS2}
|
|
27241
|
+
Observations: ${body}`;
|
|
27242
|
+
}
|
|
27243
|
+
|
|
27244
|
+
// src/activity/timeline/analysis-claim.ts
|
|
27245
|
+
function parseClaimObservationId(claim) {
|
|
27246
|
+
const raw = claim.observationId;
|
|
27247
|
+
if (raw == null) return { ok: false, error: "missing_observation" };
|
|
27248
|
+
const observationId = raw.trim();
|
|
27249
|
+
if (observationId.length === 0) return { ok: false, error: "missing_observation" };
|
|
27250
|
+
return { ok: true, observationId };
|
|
27251
|
+
}
|
|
27252
|
+
|
|
27253
|
+
// src/activity/timeline/analysis-order.ts
|
|
27254
|
+
function sortObservationIds(ids) {
|
|
27255
|
+
return ids.filter((id) => id !== "").sort((a, b) => a.localeCompare(b));
|
|
27256
|
+
}
|
|
27257
|
+
|
|
27165
27258
|
// src/activity/journal-vault-read.ts
|
|
27166
27259
|
var REMNIC_OPEN = "<!-- remnic:";
|
|
27167
27260
|
function readVaultJournal(input) {
|
|
@@ -27633,6 +27726,17 @@ function observationsForExport(observations, policy) {
|
|
|
27633
27726
|
return observations;
|
|
27634
27727
|
}
|
|
27635
27728
|
|
|
27729
|
+
// src/activity/privacy-window.ts
|
|
27730
|
+
function filterPrivacyWindow(items, options) {
|
|
27731
|
+
const { fromMs, toMs, retainDays } = options;
|
|
27732
|
+
if (toMs <= fromMs) return [];
|
|
27733
|
+
return items.filter((item) => {
|
|
27734
|
+
const capturedAtMs = item.capturedAtMs;
|
|
27735
|
+
if (capturedAtMs < fromMs || capturedAtMs >= toMs) return false;
|
|
27736
|
+
return shouldRetain(capturedAtMs, toMs, retainDays);
|
|
27737
|
+
});
|
|
27738
|
+
}
|
|
27739
|
+
|
|
27636
27740
|
// src/activity/vault-path.ts
|
|
27637
27741
|
import path34 from "path";
|
|
27638
27742
|
var TOKEN_RE = /\{yyyy\}|\{yy\}|\{MM\}|\{dd\}|\{M\}|\{d\}|\{ww\}/g;
|
|
@@ -27812,10 +27916,106 @@ function publishVaultRegion(input) {
|
|
|
27812
27916
|
return { ok: true, status: "updated" };
|
|
27813
27917
|
}
|
|
27814
27918
|
|
|
27919
|
+
// src/activity/vault-frontmatter.ts
|
|
27920
|
+
function assertNoNewlineKey(key) {
|
|
27921
|
+
if (key.includes("\n") || key.includes("\r")) {
|
|
27922
|
+
throw new RangeError("Vault frontmatter keys must not contain newlines.");
|
|
27923
|
+
}
|
|
27924
|
+
}
|
|
27925
|
+
function applyVaultFrontmatter(existingYaml, updates) {
|
|
27926
|
+
const entries = Object.entries(updates);
|
|
27927
|
+
if (entries.length === 0) return existingYaml;
|
|
27928
|
+
const merged = /* @__PURE__ */ new Map();
|
|
27929
|
+
for (const line of existingYaml.split("\n")) {
|
|
27930
|
+
const idx = line.indexOf(":");
|
|
27931
|
+
if (idx === -1) continue;
|
|
27932
|
+
const key = line.slice(0, idx).trim();
|
|
27933
|
+
if (key.length === 0) continue;
|
|
27934
|
+
assertNoNewlineKey(key);
|
|
27935
|
+
merged.set(key, line.slice(idx + 1).trim());
|
|
27936
|
+
}
|
|
27937
|
+
for (const [key, value] of entries) {
|
|
27938
|
+
assertNoNewlineKey(key);
|
|
27939
|
+
merged.set(key, value);
|
|
27940
|
+
}
|
|
27941
|
+
return [...merged.keys()].sort((a, b) => a < b ? -1 : a > b ? 1 : 0).map((key) => `${key}: ${merged.get(key)}`).join("\n");
|
|
27942
|
+
}
|
|
27943
|
+
|
|
27944
|
+
// src/activity/vault-wikilink.ts
|
|
27945
|
+
import path36 from "path";
|
|
27946
|
+
function formatVaultWikilink(notePath) {
|
|
27947
|
+
if (typeof notePath !== "string" || notePath.trim().length === 0) {
|
|
27948
|
+
throw new RangeError("Vault wikilink path must be a non-empty relative path.");
|
|
27949
|
+
}
|
|
27950
|
+
if (notePath.includes("\n") || notePath.includes("\r")) {
|
|
27951
|
+
throw new RangeError("Vault wikilink path must not contain newlines.");
|
|
27952
|
+
}
|
|
27953
|
+
if (path36.posix.isAbsolute(notePath) || path36.win32.isAbsolute(notePath)) {
|
|
27954
|
+
throw new RangeError("Vault wikilink path must be relative; absolute paths are rejected.");
|
|
27955
|
+
}
|
|
27956
|
+
if (notePath.split(/[\\/]/).some((segment) => segment === "..")) {
|
|
27957
|
+
throw new RangeError("Vault wikilink path must not contain `..` segments.");
|
|
27958
|
+
}
|
|
27959
|
+
const stripped = notePath.endsWith(".md") ? notePath.slice(0, -3) : notePath;
|
|
27960
|
+
if (stripped.length === 0) {
|
|
27961
|
+
throw new RangeError("Vault wikilink path must be a non-empty relative path.");
|
|
27962
|
+
}
|
|
27963
|
+
return `[[${stripped}]]`;
|
|
27964
|
+
}
|
|
27965
|
+
|
|
27966
|
+
// src/activity/vault-region.ts
|
|
27967
|
+
function validateRegionName(name) {
|
|
27968
|
+
if (typeof name !== "string") {
|
|
27969
|
+
return { ok: false, error: "invalid_name" };
|
|
27970
|
+
}
|
|
27971
|
+
if (name.includes("\n") || name.includes("\r") || name.includes("-->")) {
|
|
27972
|
+
return { ok: false, error: "invalid_name" };
|
|
27973
|
+
}
|
|
27974
|
+
const trimmed = name.trim();
|
|
27975
|
+
if (trimmed.length === 0) {
|
|
27976
|
+
return { ok: false, error: "invalid_name" };
|
|
27977
|
+
}
|
|
27978
|
+
return { ok: true, name: trimmed };
|
|
27979
|
+
}
|
|
27980
|
+
|
|
27981
|
+
// src/activity/vault-suffix.ts
|
|
27982
|
+
function stripVaultMdSuffix(notePath) {
|
|
27983
|
+
if (typeof notePath !== "string" || notePath.length === 0) {
|
|
27984
|
+
throw new RangeError("Vault path must be non-empty.");
|
|
27985
|
+
}
|
|
27986
|
+
return notePath.endsWith(".md") ? notePath.slice(0, -3) : notePath;
|
|
27987
|
+
}
|
|
27988
|
+
|
|
27989
|
+
// src/activity/vault-join.ts
|
|
27990
|
+
import path37 from "path";
|
|
27991
|
+
function joinVaultSegments(parts) {
|
|
27992
|
+
if (parts.length === 0) {
|
|
27993
|
+
throw new RangeError("Vault path parts must be a non-empty list.");
|
|
27994
|
+
}
|
|
27995
|
+
for (const part of parts) {
|
|
27996
|
+
if (typeof part !== "string" || part.length === 0) {
|
|
27997
|
+
throw new RangeError("Vault path part must be non-empty.");
|
|
27998
|
+
}
|
|
27999
|
+
if (part.includes("\\")) {
|
|
28000
|
+
throw new RangeError("Vault path part must not contain a backslash.");
|
|
28001
|
+
}
|
|
28002
|
+
if (part.includes("\n") || part.includes("\r")) {
|
|
28003
|
+
throw new RangeError("Vault path part must not contain a newline.");
|
|
28004
|
+
}
|
|
28005
|
+
if (path37.posix.isAbsolute(part) || path37.win32.isAbsolute(part)) {
|
|
28006
|
+
throw new RangeError("Vault path part must be relative.");
|
|
28007
|
+
}
|
|
28008
|
+
if (part.split("/").includes("..")) {
|
|
28009
|
+
throw new RangeError("Vault path part must not contain `..`.");
|
|
28010
|
+
}
|
|
28011
|
+
}
|
|
28012
|
+
return parts.join("/");
|
|
28013
|
+
}
|
|
28014
|
+
|
|
27815
28015
|
// src/session-summaries/index.ts
|
|
27816
28016
|
import { createHash as createHash11 } from "crypto";
|
|
27817
28017
|
import { lstat as lstat3, mkdir as mkdir7, readFile as readFile7, readdir as readdir4, rename, rm, stat as stat4, writeFile as writeFile7 } from "fs/promises";
|
|
27818
|
-
import
|
|
28018
|
+
import path38 from "path";
|
|
27819
28019
|
|
|
27820
28020
|
// src/session-summaries/adapters.ts
|
|
27821
28021
|
var VALID_ROLES = /* @__PURE__ */ new Set(["user", "assistant", "tool", "system", "other"]);
|
|
@@ -28320,7 +28520,7 @@ function shortHash(value, length = 16) {
|
|
|
28320
28520
|
async function listTranscriptFiles(root, maxFiles) {
|
|
28321
28521
|
const out = [];
|
|
28322
28522
|
let truncated = false;
|
|
28323
|
-
const entrySortKey = (entryName, isDirectory) => isDirectory ? `${entryName}${
|
|
28523
|
+
const entrySortKey = (entryName, isDirectory) => isDirectory ? `${entryName}${path38.sep}` : entryName;
|
|
28324
28524
|
async function visit(dir) {
|
|
28325
28525
|
if (truncated) return;
|
|
28326
28526
|
const entries = (await readdir4(dir, { withFileTypes: true })).sort(
|
|
@@ -28330,13 +28530,13 @@ async function listTranscriptFiles(root, maxFiles) {
|
|
|
28330
28530
|
if (truncated) return;
|
|
28331
28531
|
if (entry.name.startsWith(".")) continue;
|
|
28332
28532
|
if (entry.isSymbolicLink()) continue;
|
|
28333
|
-
const fullPath =
|
|
28533
|
+
const fullPath = path38.join(dir, entry.name);
|
|
28334
28534
|
if (entry.isDirectory()) {
|
|
28335
28535
|
await visit(fullPath);
|
|
28336
28536
|
continue;
|
|
28337
28537
|
}
|
|
28338
28538
|
if (!entry.isFile()) continue;
|
|
28339
|
-
const ext =
|
|
28539
|
+
const ext = path38.extname(entry.name).toLowerCase();
|
|
28340
28540
|
if (!SUPPORTED_EXTENSIONS.has(ext)) continue;
|
|
28341
28541
|
out.push(fullPath);
|
|
28342
28542
|
if (out.length > maxFiles) {
|
|
@@ -28363,7 +28563,7 @@ function normalizeInputDir(inputDir) {
|
|
|
28363
28563
|
if (typeof inputDir !== "string" || inputDir.trim().length === 0) {
|
|
28364
28564
|
throw new Error("inputDir must be a non-empty string");
|
|
28365
28565
|
}
|
|
28366
|
-
return
|
|
28566
|
+
return path38.resolve(expandTildePath(inputDir.trim()));
|
|
28367
28567
|
}
|
|
28368
28568
|
function initRoleCounts() {
|
|
28369
28569
|
return {
|
|
@@ -28520,11 +28720,11 @@ async function collectLocalSessionSummaries(options) {
|
|
|
28520
28720
|
continue;
|
|
28521
28721
|
}
|
|
28522
28722
|
seenFileHashes.add(fileHash);
|
|
28523
|
-
const fileExtension =
|
|
28723
|
+
const fileExtension = path38.extname(filePath).toLowerCase();
|
|
28524
28724
|
const parsed = await adapter.parseFile(
|
|
28525
28725
|
{
|
|
28526
28726
|
content,
|
|
28527
|
-
fileName:
|
|
28727
|
+
fileName: path38.basename(filePath),
|
|
28528
28728
|
fileExtension,
|
|
28529
28729
|
fileRef: fileHash
|
|
28530
28730
|
},
|
|
@@ -28580,7 +28780,7 @@ async function collectLocalSessionSummaries(options) {
|
|
|
28580
28780
|
}
|
|
28581
28781
|
async function readRedactionConfig(pathLike) {
|
|
28582
28782
|
if (!pathLike) return void 0;
|
|
28583
|
-
const raw = await readFile7(
|
|
28783
|
+
const raw = await readFile7(path38.resolve(expandTildePath(pathLike)), "utf-8");
|
|
28584
28784
|
const parsed = JSON.parse(raw);
|
|
28585
28785
|
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
28586
28786
|
throw new Error("redaction config must be a JSON object");
|
|
@@ -28593,15 +28793,15 @@ function toJsonl(drafts) {
|
|
|
28593
28793
|
}
|
|
28594
28794
|
function defaultDraftOutputPath(memoryDir, generatedAt) {
|
|
28595
28795
|
const stamp = generatedAt.replace(/[:.]/g, "-");
|
|
28596
|
-
return
|
|
28597
|
-
|
|
28796
|
+
return path38.join(
|
|
28797
|
+
path38.resolve(expandTildePath(memoryDir)),
|
|
28598
28798
|
"state",
|
|
28599
28799
|
"session-summary-drafts",
|
|
28600
28800
|
`session-summaries-${stamp}.jsonl`
|
|
28601
28801
|
);
|
|
28602
28802
|
}
|
|
28603
28803
|
async function writeDrafts(filePath, drafts) {
|
|
28604
|
-
await mkdir7(
|
|
28804
|
+
await mkdir7(path38.dirname(filePath), { recursive: true });
|
|
28605
28805
|
const tempPath = `${filePath}.${process.pid}.${Date.now()}.tmp`;
|
|
28606
28806
|
try {
|
|
28607
28807
|
await writeFile7(tempPath, toJsonl(drafts), "utf-8");
|
|
@@ -28619,7 +28819,7 @@ async function runLocalSessionSummaryCliCommand(options) {
|
|
|
28619
28819
|
});
|
|
28620
28820
|
const wroteFiles = [];
|
|
28621
28821
|
if (options.output) {
|
|
28622
|
-
const outputPath =
|
|
28822
|
+
const outputPath = path38.resolve(expandTildePath(options.output));
|
|
28623
28823
|
await writeDrafts(outputPath, report.drafts);
|
|
28624
28824
|
wroteFiles.push(outputPath);
|
|
28625
28825
|
}
|
|
@@ -28654,19 +28854,19 @@ async function runLocalSessionSummaryCliCommand(options) {
|
|
|
28654
28854
|
|
|
28655
28855
|
// src/transfer/capsule-fork.ts
|
|
28656
28856
|
import { lstat as lstat4, mkdir as mkdir8, readFile as readFile8, realpath as realpath3, writeFile as writeFile8 } from "fs/promises";
|
|
28657
|
-
import
|
|
28857
|
+
import path39 from "path";
|
|
28658
28858
|
async function forkCapsule(opts) {
|
|
28659
28859
|
validateForkId(opts.forkId);
|
|
28660
|
-
const rootAbs =
|
|
28860
|
+
const rootAbs = path39.resolve(opts.targetRoot);
|
|
28661
28861
|
await assertIsDirectoryNotSymlink(rootAbs, "forkCapsule", "targetRoot");
|
|
28662
|
-
const forkDirAbs =
|
|
28862
|
+
const forkDirAbs = path39.join(rootAbs, "forks", opts.forkId);
|
|
28663
28863
|
const forkEntryExists = await pathEntryExists(forkDirAbs);
|
|
28664
28864
|
if (forkEntryExists) {
|
|
28665
28865
|
throw new Error(
|
|
28666
28866
|
`forkCapsule: fork path already exists \u2014 forkId "${opts.forkId}" is already in use at: ${forkDirAbs}`
|
|
28667
28867
|
);
|
|
28668
28868
|
}
|
|
28669
|
-
const archiveAbs =
|
|
28869
|
+
const archiveAbs = path39.resolve(opts.sourceArchive);
|
|
28670
28870
|
const importResult = await importCapsule({
|
|
28671
28871
|
archivePath: archiveAbs,
|
|
28672
28872
|
root: rootAbs,
|
|
@@ -28688,10 +28888,10 @@ async function forkCapsule(opts) {
|
|
|
28688
28888
|
importedRecords: importResult.imported.length,
|
|
28689
28889
|
skippedRecords: importResult.skipped.length
|
|
28690
28890
|
};
|
|
28691
|
-
const lineagePath =
|
|
28891
|
+
const lineagePath = path39.join(forkDirAbs, "lineage.json");
|
|
28692
28892
|
const rootReal = await realpath3(rootAbs);
|
|
28693
28893
|
await assertRealpathInsideRoot(rootReal, lineagePath, `forks/${opts.forkId}/lineage.json`, "forkCapsule");
|
|
28694
|
-
await mkdir8(
|
|
28894
|
+
await mkdir8(path39.dirname(lineagePath), { recursive: true });
|
|
28695
28895
|
await writeFile8(lineagePath, JSON.stringify(lineage, null, 2) + "\n", "utf-8");
|
|
28696
28896
|
return {
|
|
28697
28897
|
archivePath: archiveAbs,
|
|
@@ -28705,11 +28905,11 @@ async function readForkLineage(targetRoot, forkId) {
|
|
|
28705
28905
|
if (typeof forkId !== "string" || forkId.length === 0 || forkId.length > 64 || !CAPSULE_ID_PATTERN.test(forkId)) {
|
|
28706
28906
|
return null;
|
|
28707
28907
|
}
|
|
28708
|
-
const rootAbs =
|
|
28908
|
+
const rootAbs = path39.resolve(targetRoot);
|
|
28709
28909
|
const rootReal = await realpath3(rootAbs).catch(() => rootAbs);
|
|
28710
|
-
const lineagePath =
|
|
28711
|
-
const rel =
|
|
28712
|
-
if (rel.startsWith("..") ||
|
|
28910
|
+
const lineagePath = path39.join(rootReal, "forks", forkId, "lineage.json");
|
|
28911
|
+
const rel = path39.relative(rootReal, lineagePath);
|
|
28912
|
+
if (rel.startsWith("..") || path39.isAbsolute(rel)) {
|
|
28713
28913
|
return null;
|
|
28714
28914
|
}
|
|
28715
28915
|
if (!await isLineagePathContained(rootReal, lineagePath)) {
|
|
@@ -28750,19 +28950,19 @@ async function pathEntryExists(absPath) {
|
|
|
28750
28950
|
async function isLineagePathContained(rootReal, lineagePath) {
|
|
28751
28951
|
let existing = lineagePath;
|
|
28752
28952
|
const suffix = [];
|
|
28753
|
-
while (existing !==
|
|
28953
|
+
while (existing !== path39.dirname(existing)) {
|
|
28754
28954
|
const st = await lstat4(existing).catch(() => null);
|
|
28755
28955
|
if (st !== null) break;
|
|
28756
|
-
suffix.unshift(
|
|
28757
|
-
existing =
|
|
28956
|
+
suffix.unshift(path39.basename(existing));
|
|
28957
|
+
existing = path39.dirname(existing);
|
|
28758
28958
|
}
|
|
28759
28959
|
const existingReal = await realpath3(existing).catch(() => existing);
|
|
28760
|
-
const targetReal = suffix.length > 0 ?
|
|
28761
|
-
const rel =
|
|
28960
|
+
const targetReal = suffix.length > 0 ? path39.join(existingReal, ...suffix) : existingReal;
|
|
28961
|
+
const rel = path39.relative(rootReal, targetReal);
|
|
28762
28962
|
if (rel === "") return true;
|
|
28763
28963
|
if (rel === "..") return false;
|
|
28764
|
-
if (rel.startsWith(`..${
|
|
28765
|
-
if (
|
|
28964
|
+
if (rel.startsWith(`..${path39.sep}`)) return false;
|
|
28965
|
+
if (path39.isAbsolute(rel)) return false;
|
|
28766
28966
|
return true;
|
|
28767
28967
|
}
|
|
28768
28968
|
|
|
@@ -28880,7 +29080,15 @@ export {
|
|
|
28880
29080
|
TimelineAnalysisConfigError,
|
|
28881
29081
|
buildTimelineAnalysisPrompt,
|
|
28882
29082
|
analyzeTimelineCards,
|
|
29083
|
+
exportDeterministicRecap,
|
|
29084
|
+
renderRecapMarkdown,
|
|
29085
|
+
exportDeterministicWeek,
|
|
29086
|
+
renderWeekSnapshot,
|
|
28883
29087
|
batchObservations2 as batchObservations,
|
|
29088
|
+
boundEvidence,
|
|
29089
|
+
buildAnalysisPrompt,
|
|
29090
|
+
parseClaimObservationId,
|
|
29091
|
+
sortObservationIds,
|
|
28884
29092
|
readVaultJournal,
|
|
28885
29093
|
stripRemnicOwnedRegions,
|
|
28886
29094
|
isEligibleActivityFact,
|
|
@@ -28889,9 +29097,15 @@ export {
|
|
|
28889
29097
|
parseActivityPrivacy,
|
|
28890
29098
|
shouldRetain,
|
|
28891
29099
|
observationsForExport,
|
|
29100
|
+
filterPrivacyWindow,
|
|
28892
29101
|
resolveVaultNotePath,
|
|
28893
29102
|
applyManagedRegion,
|
|
28894
29103
|
publishVaultRegion,
|
|
29104
|
+
applyVaultFrontmatter,
|
|
29105
|
+
formatVaultWikilink,
|
|
29106
|
+
validateRegionName,
|
|
29107
|
+
stripVaultMdSuffix,
|
|
29108
|
+
joinVaultSegments,
|
|
28895
29109
|
fuseMeeting,
|
|
28896
29110
|
buildMeetingRecordsForDay,
|
|
28897
29111
|
MeetingsBuilder,
|
|
@@ -28925,4 +29139,4 @@ export {
|
|
|
28925
29139
|
blendGraphExpandedRecallScore,
|
|
28926
29140
|
Orchestrator
|
|
28927
29141
|
};
|
|
28928
|
-
//# sourceMappingURL=chunk-
|
|
29142
|
+
//# sourceMappingURL=chunk-3PO35HUU.js.map
|