hippo-memory 2.3.0 → 3.1.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/README.md +9 -6
- package/dist/api/agent-memories.d.ts +21 -0
- package/dist/api/agent-memories.js +97 -0
- package/dist/api/assemble.d.ts +16 -15
- package/dist/api/assemble.js +90 -62
- package/dist/api/auth/audit.d.ts +31 -24
- package/dist/api/auth/audit.js +49 -27
- package/dist/api/auth/auth.d.ts +33 -29
- package/dist/api/auth/auth.js +88 -42
- package/dist/api/auth/quarantine.d.ts +8 -6
- package/dist/api/auth/quarantine.js +14 -9
- package/dist/api/auth/session-owners.d.ts +5 -9
- package/dist/api/auth/session-owners.js +9 -24
- package/dist/api/availability.d.ts +11 -10
- package/dist/api/availability.js +24 -24
- package/dist/api/callers.d.ts +34 -0
- package/dist/api/callers.js +20 -0
- package/dist/api/context/context-auto.d.ts +5 -0
- package/dist/api/context/context-auto.js +35 -0
- package/dist/api/context/context-plan.d.ts +59 -0
- package/dist/api/context/context-plan.js +165 -0
- package/dist/api/context/context-pools.d.ts +29 -0
- package/dist/api/context/context-pools.js +138 -0
- package/dist/api/context/context-project.d.ts +15 -0
- package/dist/api/context/context-project.js +17 -0
- package/dist/api/context/context-render.d.ts +66 -0
- package/dist/api/context/context-render.js +285 -0
- package/dist/api/context/context-search.d.ts +14 -0
- package/dist/api/context/context-search.js +144 -0
- package/dist/api/context/context-select.d.ts +21 -0
- package/dist/api/context/context-select.js +194 -0
- package/dist/api/context/context-task-state.d.ts +23 -0
- package/dist/api/context/context-task-state.js +107 -0
- package/dist/api/context/context-types.d.ts +116 -0
- package/dist/api/context/context-types.js +3 -0
- package/dist/api/context/context.d.ts +14 -0
- package/dist/api/context/context.js +196 -0
- package/dist/api/continuity/continuity-json.d.ts +36 -0
- package/dist/api/continuity/continuity-json.js +35 -0
- package/dist/api/continuity/continuity.d.ts +15 -0
- package/dist/api/continuity/continuity.js +15 -0
- package/dist/api/correction-latency.d.ts +5 -5
- package/dist/api/correction-latency.js +9 -31
- package/dist/api/cursor.d.ts +10 -0
- package/dist/api/cursor.js +46 -0
- package/dist/api/dashboard/detail.d.ts +29 -0
- package/dist/api/dashboard/detail.js +97 -0
- package/dist/api/dashboard/live.d.ts +22 -0
- package/dist/api/dashboard/live.js +33 -0
- package/dist/api/dashboard/overview.d.ts +8 -0
- package/dist/api/dashboard/overview.js +180 -0
- package/dist/api/dashboard/queries.d.ts +34 -0
- package/dist/api/dashboard/queries.js +89 -0
- package/dist/api/dashboard/snapshot-clock.d.ts +20 -0
- package/dist/api/dashboard/snapshot-clock.js +38 -0
- package/dist/api/dashboard/types.d.ts +166 -0
- package/dist/api/dashboard/types.js +3 -0
- package/dist/api/delivery/delivery-event.d.ts +24 -0
- package/dist/api/delivery/delivery-event.js +173 -0
- package/dist/api/delivery/delivery-observation.d.ts +56 -0
- package/dist/api/delivery/delivery-observation.js +153 -0
- package/dist/api/delivery/delivery-recorder.d.ts +105 -0
- package/dist/api/delivery/delivery-recorder.js +58 -0
- package/dist/api/detached.d.ts +6 -0
- package/dist/api/detached.js +16 -0
- package/dist/api/embeddings.d.ts +16 -13
- package/dist/api/embeddings.js +22 -16
- package/dist/api/error-reply.d.ts +2 -2
- package/dist/api/error-reply.js +15 -13
- package/dist/api/index.d.ts +38 -33
- package/dist/api/index.js +22 -17
- package/dist/api/infra.d.ts +11 -0
- package/dist/api/infra.js +21 -0
- package/dist/api/instruction-detect.d.ts +12 -2
- package/dist/api/instruction-detect.js +36 -17
- package/dist/api/ledger-db.d.ts +53 -20
- package/dist/api/ledger-db.js +87 -31
- package/dist/api/memories/conflicts.d.ts +34 -16
- package/dist/api/memories/conflicts.js +103 -52
- package/dist/api/memories/forget.d.ts +29 -17
- package/dist/api/memories/forget.js +49 -25
- package/dist/api/memories/memories.d.ts +15 -17
- package/dist/api/memories/memories.js +26 -23
- package/dist/api/memories/outcome.d.ts +11 -13
- package/dist/api/memories/outcome.js +13 -21
- package/dist/api/memories/pin.d.ts +6 -0
- package/dist/api/memories/pin.js +14 -0
- package/dist/api/memories/promote.d.ts +18 -20
- package/dist/api/memories/promote.js +88 -42
- package/dist/api/memories/refine.d.ts +5 -5
- package/dist/api/memories/refine.js +8 -4
- package/dist/api/memories/remember-local.d.ts +27 -19
- package/dist/api/memories/remember-local.js +58 -60
- package/dist/api/memories/remember.d.ts +52 -26
- package/dist/api/memories/remember.js +124 -44
- package/dist/api/memories/session-digest.d.ts +45 -0
- package/dist/api/memories/session-digest.js +96 -0
- package/dist/api/memories/trace.d.ts +29 -0
- package/dist/api/memories/trace.js +53 -0
- package/dist/api/objects/drill-down.d.ts +16 -11
- package/dist/api/objects/drill-down.js +35 -29
- package/dist/api/objects/goals.d.ts +10 -7
- package/dist/api/objects/goals.js +4 -3
- package/dist/api/objects/graph.d.ts +20 -7
- package/dist/api/objects/graph.js +25 -7
- package/dist/api/objects/object-kinds.d.ts +44 -0
- package/dist/api/objects/object-kinds.js +77 -0
- package/dist/api/objects/objects.d.ts +50 -8
- package/dist/api/objects/objects.js +65 -8
- package/dist/api/objects/predictions.d.ts +11 -9
- package/dist/api/objects/predictions.js +20 -15
- package/dist/api/objects/projects.d.ts +20 -15
- package/dist/api/objects/projects.js +28 -20
- package/dist/api/pages.d.ts +9 -0
- package/dist/api/pages.js +23 -0
- package/dist/api/pilot-arm.d.ts +5 -5
- package/dist/api/pilot-arm.js +7 -11
- package/dist/api/prompt-hook.d.ts +46 -56
- package/dist/api/prompt-hook.js +150 -151
- package/dist/api/provenance-coverage.d.ts +5 -5
- package/dist/api/provenance-coverage.js +11 -12
- package/dist/api/recall/anchoring.d.ts +63 -0
- package/dist/api/recall/anchoring.js +112 -0
- package/dist/api/recall/bands.d.ts +21 -0
- package/dist/api/recall/bands.js +180 -0
- package/dist/api/recall/compose.d.ts +62 -0
- package/dist/api/recall/compose.js +198 -0
- package/dist/api/recall/finish.d.ts +51 -130
- package/dist/api/recall/finish.js +76 -248
- package/dist/api/recall/last-recalled.d.ts +13 -0
- package/dist/api/recall/last-recalled.js +26 -0
- package/dist/api/recall/nearest.d.ts +7 -0
- package/dist/api/recall/nearest.js +27 -0
- package/dist/api/recall/pipeline.d.ts +95 -49
- package/dist/api/recall/pipeline.js +50 -382
- package/dist/api/recall/profiles.d.ts +31 -0
- package/dist/api/recall/profiles.js +32 -0
- package/dist/api/recall/rank-search.d.ts +24 -0
- package/dist/api/recall/rank-search.js +188 -0
- package/dist/api/recall/rank-stages.d.ts +16 -0
- package/dist/api/recall/rank-stages.js +228 -0
- package/dist/api/recall/recall.d.ts +9 -5
- package/dist/api/recall/recall.js +175 -463
- package/dist/api/recall/request.d.ts +25 -14
- package/dist/api/recall/request.js +94 -66
- package/dist/api/recall/rows.d.ts +58 -32
- package/dist/api/recall/rows.js +64 -42
- package/dist/api/recall/session-rings.d.ts +59 -0
- package/dist/api/recall/session-rings.js +87 -0
- package/dist/api/recall/types.d.ts +154 -114
- package/dist/api/session-end.d.ts +58 -28
- package/dist/api/session-end.js +179 -66
- package/dist/api/sharing.d.ts +31 -0
- package/dist/api/sharing.js +49 -0
- package/dist/api/sleep/auto-sleep.d.ts +17 -10
- package/dist/api/sleep/auto-sleep.js +57 -21
- package/dist/api/sleep/churn.d.ts +20 -0
- package/dist/api/sleep/churn.js +44 -0
- package/dist/api/sleep/dedup.d.ts +9 -0
- package/dist/api/sleep/dedup.js +11 -0
- package/dist/api/sleep/dormant.d.ts +17 -19
- package/dist/api/sleep/dormant.js +21 -39
- package/dist/api/sleep/events.d.ts +15 -0
- package/dist/api/sleep/events.js +2 -0
- package/dist/api/sleep/learn.d.ts +16 -9
- package/dist/api/sleep/learn.js +125 -55
- package/dist/api/sleep/sleep-run.d.ts +18 -23
- package/dist/api/sleep/sleep-run.js +185 -126
- package/dist/api/sleep/sleep.d.ts +25 -23
- package/dist/api/sleep/sleep.js +4 -5
- package/dist/api/status.d.ts +21 -15
- package/dist/api/status.js +57 -22
- package/dist/api/store-init.d.ts +4 -6
- package/dist/api/store-init.js +4 -7
- package/dist/api/summary-parents.d.ts +6 -0
- package/dist/api/summary-parents.js +12 -0
- package/dist/api/tokens.d.ts +13 -9
- package/dist/api/tokens.js +18 -14
- package/dist/api/types.d.ts +95 -31
- package/dist/api/types.js +42 -14
- package/dist/base/config/config-keys.d.ts +6 -0
- package/dist/base/config/config-keys.js +140 -0
- package/dist/base/config/config-rules.d.ts +29 -0
- package/dist/base/config/config-rules.js +81 -0
- package/dist/base/config/config.d.ts +202 -0
- package/dist/base/config/config.js +104 -0
- package/dist/base/config/configured-folder.d.ts +10 -0
- package/dist/base/config/configured-folder.js +2 -0
- package/dist/base/config/package-root.d.ts +6 -0
- package/dist/base/config/package-root.js +8 -0
- package/dist/base/embeddings/index-identity.d.ts +23 -0
- package/dist/base/embeddings/index-identity.js +33 -0
- package/dist/base/embeddings/local.d.ts +14 -0
- package/dist/base/embeddings/local.js +55 -0
- package/dist/base/errors/api-errors.d.ts +59 -0
- package/dist/base/errors/api-errors.js +77 -0
- package/dist/base/errors/failed-unit.d.ts +9 -0
- package/dist/base/errors/failed-unit.js +13 -0
- package/dist/base/errors/http-errors.d.ts +24 -0
- package/dist/base/errors/http-errors.js +32 -0
- package/dist/base/errors/raw-append-only.d.ts +13 -0
- package/dist/base/errors/raw-append-only.js +20 -0
- package/dist/base/errors/store-open.d.ts +7 -0
- package/dist/base/errors/store-open.js +11 -0
- package/dist/base/memory/agent-memory-report.d.ts +57 -0
- package/dist/base/memory/agent-memory-report.js +136 -0
- package/dist/base/memory/agent-memory-tools.d.ts +44 -0
- package/dist/base/memory/agent-memory-tools.js +37 -0
- package/dist/base/memory/ambient.d.ts +56 -0
- package/dist/base/memory/ambient.js +215 -0
- package/dist/base/memory/conflict-wire.d.ts +26 -0
- package/dist/base/memory/conflict-wire.js +17 -0
- package/dist/base/memory/created-stamp.d.ts +7 -0
- package/dist/base/memory/created-stamp.js +19 -0
- package/dist/base/memory/dedup-pairs.d.ts +12 -0
- package/dist/base/memory/dedup-pairs.js +12 -0
- package/dist/base/memory/dormant-revival.d.ts +15 -0
- package/dist/base/memory/dormant-revival.js +19 -0
- package/dist/base/memory/entry.d.ts +148 -0
- package/dist/base/memory/entry.js +243 -0
- package/dist/base/memory/eval-switches.d.ts +22 -0
- package/dist/base/memory/eval-switches.js +18 -0
- package/dist/base/memory/half-life-plan.d.ts +68 -0
- package/dist/base/memory/half-life-plan.js +110 -0
- package/dist/base/memory/keep-rules.d.ts +19 -0
- package/dist/base/memory/keep-rules.js +36 -0
- package/dist/base/memory/markdown.d.ts +9 -0
- package/dist/base/memory/markdown.js +144 -0
- package/dist/base/memory/memory-audit.d.ts +49 -0
- package/dist/base/memory/memory-audit.js +142 -0
- package/dist/base/memory/memory-facts.d.ts +46 -0
- package/dist/base/memory/memory-facts.js +95 -0
- package/dist/base/memory/memory-quality.d.ts +50 -0
- package/dist/base/memory/memory-quality.js +275 -0
- package/dist/base/memory/memory-wire.d.ts +55 -0
- package/dist/base/memory/memory-wire.js +93 -0
- package/dist/base/memory/merged-row.d.ts +12 -0
- package/dist/base/memory/merged-row.js +46 -0
- package/dist/base/memory/salience.d.ts +20 -0
- package/dist/base/memory/salience.js +109 -0
- package/dist/base/memory/strength-bands.d.ts +5 -0
- package/dist/base/memory/strength-bands.js +7 -0
- package/dist/base/memory/strength.d.ts +82 -0
- package/dist/base/memory/strength.js +138 -0
- package/dist/base/ports/cross-encoder.d.ts +7 -0
- package/dist/base/ports/cross-encoder.js +4 -0
- package/dist/base/ports/embedder.d.ts +37 -0
- package/dist/base/ports/embedder.js +2 -0
- package/dist/base/ports/git.d.ts +30 -0
- package/dist/base/ports/git.js +20 -0
- package/dist/base/ports/http.d.ts +17 -0
- package/dist/base/ports/http.js +3 -0
- package/dist/base/ports/infra.d.ts +42 -0
- package/dist/base/ports/infra.js +2 -0
- package/dist/base/ports/llm.d.ts +44 -0
- package/dist/base/ports/llm.js +55 -0
- package/dist/base/ports/reranker.d.ts +52 -0
- package/dist/base/ports/reranker.js +2 -0
- package/dist/base/ports/store/agent-import.d.ts +107 -0
- package/dist/base/ports/store/agent-import.js +5 -0
- package/dist/base/ports/store/audit.d.ts +89 -0
- package/dist/base/ports/store/audit.js +17 -0
- package/dist/base/ports/store/capture.d.ts +203 -0
- package/dist/base/ports/store/capture.js +23 -0
- package/dist/base/ports/store/cards.d.ts +69 -0
- package/dist/base/ports/store/cards.js +14 -0
- package/dist/base/ports/store/conflicts.d.ts +79 -0
- package/dist/base/ports/store/conflicts.js +7 -0
- package/dist/base/ports/store/connectors.d.ts +250 -0
- package/dist/base/ports/store/connectors.js +22 -0
- package/dist/base/ports/store/consolidation.d.ts +246 -0
- package/dist/base/ports/store/consolidation.js +19 -0
- package/dist/base/ports/store/context-reads.d.ts +172 -0
- package/dist/base/ports/store/context-reads.js +15 -0
- package/dist/base/ports/store/dashboard-reads.d.ts +152 -0
- package/dist/base/ports/store/dashboard-reads.js +6 -0
- package/dist/base/ports/store/diagnostics.d.ts +77 -0
- package/dist/base/ports/store/diagnostics.js +10 -0
- package/dist/base/ports/store/dormant.d.ts +65 -0
- package/dist/base/ports/store/dormant.js +18 -0
- package/dist/base/ports/store/effects.d.ts +7 -0
- package/dist/base/ports/store/effects.js +3 -0
- package/dist/base/ports/store/entry-writes.d.ts +97 -0
- package/dist/base/ports/store/entry-writes.js +17 -0
- package/dist/base/ports/store/folder-files.d.ts +29 -0
- package/dist/base/ports/store/folder-files.js +6 -0
- package/dist/base/ports/store/goals.d.ts +44 -0
- package/dist/base/ports/store/goals.js +11 -0
- package/dist/base/ports/store/graph.d.ts +160 -0
- package/dist/base/ports/store/graph.js +13 -0
- package/dist/base/ports/store/keys.d.ts +120 -0
- package/dist/base/ports/store/keys.js +6 -0
- package/dist/base/ports/store/learning.d.ts +26 -0
- package/dist/base/ports/store/learning.js +8 -0
- package/dist/base/ports/store/ledger.d.ts +100 -0
- package/dist/base/ports/store/ledger.js +8 -0
- package/dist/base/ports/store/objects.d.ts +217 -0
- package/dist/base/ports/store/objects.js +10 -0
- package/dist/base/ports/store/project-tags.d.ts +118 -0
- package/dist/base/ports/store/project-tags.js +11 -0
- package/dist/base/ports/store/quarantine.d.ts +75 -0
- package/dist/base/ports/store/quarantine.js +8 -0
- package/dist/base/ports/store/reach.d.ts +20 -0
- package/dist/base/ports/store/reach.js +2 -0
- package/dist/base/ports/store/recall-writes.d.ts +93 -0
- package/dist/base/ports/store/recall-writes.js +6 -0
- package/dist/base/ports/store/rejections.d.ts +134 -0
- package/dist/base/ports/store/rejections.js +14 -0
- package/dist/base/ports/store/reports.d.ts +139 -0
- package/dist/base/ports/store/reports.js +13 -0
- package/dist/base/ports/store/sessions.d.ts +203 -0
- package/dist/base/ports/store/sessions.js +9 -0
- package/dist/base/ports/store/sharing.d.ts +88 -0
- package/dist/base/ports/store/sharing.js +15 -0
- package/dist/base/ports/store/store-effects.d.ts +272 -0
- package/dist/base/ports/store/store-effects.js +87 -0
- package/dist/base/ports/store/types.d.ts +142 -0
- package/dist/base/ports/store/types.js +10 -0
- package/dist/base/ports/store/vectors.d.ts +240 -0
- package/dist/base/ports/store/vectors.js +20 -0
- package/dist/base/ports/store-groups.d.ts +30 -0
- package/dist/base/ports/store-groups.js +2 -0
- package/dist/base/ports/store-index.d.ts +11 -0
- package/dist/base/ports/store-index.js +2 -0
- package/dist/base/ports/store.d.ts +214 -0
- package/dist/base/ports/store.js +71 -0
- package/dist/base/rank/active-scope.d.ts +4 -0
- package/dist/base/rank/active-scope.js +14 -0
- package/dist/base/rank/compare.d.ts +47 -0
- package/dist/base/rank/compare.js +85 -0
- package/dist/base/rank/cosine.d.ts +12 -0
- package/dist/base/rank/cosine.js +60 -0
- package/dist/base/rank/particle-refresh.d.ts +9 -0
- package/dist/base/rank/particle-refresh.js +22 -0
- package/dist/base/rank/physics-config.d.ts +37 -0
- package/dist/base/rank/physics-config.js +29 -0
- package/dist/base/rank/physics.d.ts +110 -0
- package/dist/base/rank/physics.js +319 -0
- package/dist/base/rank/prompt-recall.d.ts +36 -0
- package/dist/base/rank/prompt-recall.js +72 -0
- package/dist/base/rank/recall-defaults.d.ts +7 -0
- package/dist/base/rank/recall-defaults.js +9 -0
- package/dist/base/rank/search-types.d.ts +125 -0
- package/dist/base/rank/search-types.js +28 -0
- package/dist/base/records/audit-ops.d.ts +3 -0
- package/dist/base/records/audit-ops.js +72 -0
- package/dist/base/records/audit-report.d.ts +15 -0
- package/dist/base/records/audit-report.js +31 -0
- package/dist/base/records/card.d.ts +51 -0
- package/dist/base/records/card.js +37 -0
- package/dist/base/records/entity-name.d.ts +2 -0
- package/dist/base/records/entity-name.js +4 -0
- package/dist/base/records/failure-log-retention.d.ts +4 -0
- package/dist/base/records/failure-log-retention.js +4 -0
- package/dist/base/records/failure-repeats.d.ts +17 -0
- package/dist/base/records/failure-repeats.js +22 -0
- package/dist/base/records/object-types.d.ts +208 -0
- package/dist/base/records/object-types.js +7 -0
- package/dist/base/records/planning-fallacy.d.ts +33 -0
- package/dist/base/records/planning-fallacy.js +3 -0
- package/dist/base/records/prediction.d.ts +10 -0
- package/dist/base/records/prediction.js +22 -0
- package/dist/base/records/rejection-digest.d.ts +7 -0
- package/dist/base/records/rejection-digest.js +14 -0
- package/dist/base/records/rejection-text.d.ts +16 -0
- package/dist/base/records/rejection-text.js +27 -0
- package/dist/base/scope/actor.d.ts +2 -0
- package/dist/base/scope/actor.js +3 -0
- package/dist/base/scope/api-key.d.ts +58 -0
- package/dist/base/scope/api-key.js +122 -0
- package/dist/base/scope/project-identity.d.ts +44 -0
- package/dist/base/scope/project-identity.js +52 -0
- package/dist/base/scope/read-admission.d.ts +43 -0
- package/dist/base/scope/read-admission.js +52 -0
- package/dist/base/scope/recall-scope.d.ts +136 -0
- package/dist/base/scope/recall-scope.js +213 -0
- package/dist/base/scope/tenant-id.d.ts +6 -0
- package/dist/base/scope/tenant-id.js +14 -0
- package/dist/base/session/capture-contract.d.ts +82 -0
- package/dist/base/session/capture-contract.js +174 -0
- package/dist/base/session/compaction-timing.js +10 -0
- package/dist/base/session/delivery.d.ts +68 -0
- package/dist/base/session/delivery.js +8 -0
- package/dist/base/session/handoff.d.ts +56 -0
- package/dist/base/session/handoff.js +73 -0
- package/dist/base/session/pilot-arm.d.ts +4 -0
- package/dist/base/session/pilot-arm.js +12 -0
- package/dist/base/session/session-digest-row.d.ts +9 -0
- package/dist/base/session/session-digest-row.js +15 -0
- package/dist/base/session/session-snapshot.d.ts +16 -0
- package/dist/base/session/session-snapshot.js +28 -0
- package/dist/base/session/skip-unchanged.d.ts +12 -0
- package/dist/base/session/skip-unchanged.js +11 -0
- package/dist/base/session/transcript-calls.d.ts +25 -0
- package/dist/base/session/transcript-calls.js +10 -0
- package/dist/base/session/working-state.d.ts +46 -0
- package/dist/base/session/working-state.js +83 -0
- package/dist/base/util/agent-files.d.ts +40 -0
- package/dist/base/util/agent-files.js +4 -0
- package/dist/base/util/agent-homes.d.ts +46 -0
- package/dist/base/util/agent-homes.js +44 -0
- package/dist/base/util/chunked.d.ts +6 -0
- package/dist/base/util/chunked.js +11 -0
- package/dist/base/util/code-point-cut.d.ts +4 -0
- package/dist/base/util/code-point-cut.js +15 -0
- package/dist/base/util/compaction-items.d.ts +30 -0
- package/dist/base/util/compaction-items.js +152 -0
- package/dist/base/util/crash-handlers.d.ts +19 -0
- package/dist/base/util/crash-handlers.js +92 -0
- package/dist/base/util/detached-set.d.ts +8 -0
- package/dist/base/util/detached-set.js +35 -0
- package/dist/base/util/env.d.ts +116 -0
- package/dist/base/util/env.js +293 -0
- package/dist/base/util/escape.js +11 -0
- package/dist/base/util/expected-errors.d.ts +10 -0
- package/dist/base/util/expected-errors.js +31 -0
- package/dist/base/util/failure-notices.d.ts +15 -0
- package/dist/base/util/failure-notices.js +29 -0
- package/dist/base/util/format.d.ts +7 -0
- package/dist/base/util/format.js +14 -0
- package/dist/base/util/home-path.d.ts +6 -0
- package/dist/base/util/home-path.js +80 -0
- package/dist/base/util/hook-payload.d.ts +12 -0
- package/dist/base/util/hook-payload.js +35 -0
- package/dist/base/util/json.d.ts +28 -0
- package/dist/base/util/json.js +42 -0
- package/dist/base/util/keyset.d.ts +14 -0
- package/dist/base/util/keyset.js +10 -0
- package/dist/base/util/limits.d.ts +20 -0
- package/dist/base/util/limits.js +50 -0
- package/dist/base/util/log.d.ts +72 -0
- package/dist/base/util/log.js +217 -0
- package/dist/base/util/lru.d.ts +12 -0
- package/dist/base/util/lru.js +33 -0
- package/dist/base/util/net.d.ts +16 -0
- package/dist/base/util/net.js +49 -0
- package/dist/base/util/pages.d.ts +19 -0
- package/dist/base/util/pages.js +31 -0
- package/dist/base/util/prng.d.ts +9 -0
- package/dist/base/util/prng.js +19 -0
- package/dist/base/util/request-scope.d.ts +40 -0
- package/dist/base/util/request-scope.js +58 -0
- package/dist/base/util/same-text.d.ts +28 -0
- package/dist/base/util/same-text.js +69 -0
- package/dist/base/util/secret-detect.d.ts +40 -0
- package/dist/base/util/secret-detect.js +157 -0
- package/dist/base/util/serial-queue.d.ts +6 -0
- package/dist/base/util/serial-queue.js +23 -0
- package/dist/base/util/stats.d.ts +7 -0
- package/dist/base/util/stats.js +12 -0
- package/dist/base/util/stopwords.d.ts +15 -0
- package/dist/base/util/stopwords.js +313 -0
- package/dist/base/util/store-blocked.d.ts +24 -0
- package/dist/base/util/store-blocked.js +42 -0
- package/dist/base/util/stored-json.d.ts +21 -0
- package/dist/base/util/stored-json.js +32 -0
- package/dist/base/util/tenant.d.ts +8 -0
- package/dist/base/util/tenant.js +9 -0
- package/dist/base/util/thread-reply.d.ts +18 -0
- package/dist/base/util/thread-reply.js +26 -0
- package/dist/base/util/time.d.ts +10 -0
- package/dist/base/util/time.js +11 -0
- package/dist/base/util/token-text.d.ts +22 -0
- package/dist/base/util/token-text.js +35 -0
- package/dist/base/util/tokenize.d.ts +6 -0
- package/dist/base/util/tokenize.js +24 -0
- package/dist/base/util/vector-codec.js +15 -0
- package/dist/base/util/version.d.ts +17 -0
- package/dist/base/util/version.js +32 -0
- package/dist/base/util/write-budget.d.ts +23 -0
- package/dist/base/util/write-budget.js +21 -0
- package/dist/base/util/yaml.d.ts +13 -0
- package/dist/base/util/yaml.js +137 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +81 -51
- package/dist/db/backup.d.ts +2 -1
- package/dist/db/backup.js +5 -3
- package/dist/db/busy.d.ts +13 -11
- package/dist/db/busy.js +44 -21
- package/dist/db/connect.d.ts +21 -9
- package/dist/db/connect.js +73 -42
- package/dist/db/continuity-tables.d.ts +10 -0
- package/dist/db/continuity-tables.js +100 -0
- package/dist/db/decay-key.d.ts +20 -0
- package/dist/db/decay-key.js +24 -0
- package/dist/db/fts-index.d.ts +13 -0
- package/dist/db/fts-index.js +47 -0
- package/dist/db/grant.d.ts +35 -0
- package/dist/db/grant.js +78 -0
- package/dist/db/held-writes.d.ts +12 -0
- package/dist/db/held-writes.js +77 -0
- package/dist/db/index.d.ts +8 -6
- package/dist/db/index.js +5 -5
- package/dist/db/meta.d.ts +23 -2
- package/dist/db/meta.js +43 -19
- package/dist/db/migrate.d.ts +29 -16
- package/dist/db/migrate.js +142 -69
- package/dist/db/migrations/index.d.ts +3 -2
- package/dist/db/migrations/index.js +13 -2
- package/dist/db/migrations/types.d.ts +3 -3
- package/dist/db/migrations/v11.js +2 -1
- package/dist/db/migrations/v14.js +7 -7
- package/dist/db/migrations/v15.js +8 -8
- package/dist/db/migrations/v16.js +7 -7
- package/dist/db/migrations/v19.js +3 -4
- package/dist/db/migrations/v20.js +10 -19
- package/dist/db/migrations/v21.js +2 -2
- package/dist/db/migrations/v22.js +7 -8
- package/dist/db/migrations/v23.js +6 -6
- package/dist/db/migrations/v24.js +5 -5
- package/dist/db/migrations/v25.js +7 -7
- package/dist/db/migrations/v26.js +4 -4
- package/dist/db/migrations/v27.js +5 -6
- package/dist/db/migrations/v28.js +6 -6
- package/dist/db/migrations/v29.js +4 -4
- package/dist/db/migrations/v30.js +7 -7
- package/dist/db/migrations/v31.js +6 -6
- package/dist/db/migrations/v32.js +9 -9
- package/dist/db/migrations/v33.js +4 -4
- package/dist/db/migrations/v34.js +4 -4
- package/dist/db/migrations/v35.js +7 -7
- package/dist/db/migrations/v36.js +7 -7
- package/dist/db/migrations/v37.js +17 -17
- package/dist/db/migrations/v38.js +12 -12
- package/dist/db/migrations/v39.js +15 -18
- package/dist/db/migrations/v40.js +4 -4
- package/dist/db/migrations/v41.js +4 -4
- package/dist/db/migrations/v42.js +4 -4
- package/dist/db/migrations/v44.js +4 -4
- package/dist/db/migrations/v45.js +4 -4
- package/dist/db/migrations/v46.js +2 -2
- package/dist/db/migrations/v47.js +2 -2
- package/dist/db/migrations/v48.js +18 -3
- package/dist/db/migrations/v49.js +3 -3
- package/dist/db/migrations/v50.js +3 -4
- package/dist/db/migrations/v51.js +3 -4
- package/dist/db/migrations/v52.js +2 -2
- package/dist/db/migrations/v53.js +5 -5
- package/dist/db/migrations/v54.js +44 -5
- package/dist/db/migrations/v56.js +5 -5
- package/dist/db/migrations/v57.d.ts +3 -0
- package/dist/db/migrations/v57.js +11 -0
- package/dist/db/migrations/v58.d.ts +3 -0
- package/dist/db/migrations/v58.js +14 -0
- package/dist/db/migrations/v59.d.ts +3 -0
- package/dist/db/migrations/v59.js +18 -0
- package/dist/db/migrations/v60.d.ts +3 -0
- package/dist/db/migrations/v60.js +14 -0
- package/dist/db/migrations/v61.d.ts +3 -0
- package/dist/db/migrations/v61.js +48 -0
- package/dist/db/open.d.ts +26 -47
- package/dist/db/open.js +28 -90
- package/dist/db/physics-state.d.ts +29 -14
- package/dist/db/physics-state.js +57 -38
- package/dist/db/raw-archive-mirror-cleanup.d.ts +5 -5
- package/dist/db/raw-archive-mirror-cleanup.js +8 -9
- package/dist/db/request-stores.d.ts +27 -41
- package/dist/db/request-stores.js +96 -86
- package/dist/db/required-objects.d.ts +6 -0
- package/dist/db/required-objects.js +17 -0
- package/dist/db/sql-predicates.d.ts +8 -0
- package/dist/db/sql-predicates.js +12 -0
- package/dist/db/sql.d.ts +19 -0
- package/dist/db/sql.js +23 -0
- package/dist/db/sqlite-blocked.d.ts +13 -0
- package/dist/db/sqlite-blocked.js +22 -0
- package/dist/db/sqlite.d.ts +12 -1
- package/dist/db/sqlite.js +4 -4
- package/dist/db/statement-cache.d.ts +6 -0
- package/dist/db/statement-cache.js +26 -0
- package/dist/db/store-runtime.d.ts +52 -0
- package/dist/db/store-runtime.js +149 -0
- package/dist/db/tables.d.ts +6 -3
- package/dist/db/tables.js +9 -10
- package/dist/db/vector-graph-build.d.ts +21 -0
- package/dist/db/vector-graph-build.js +141 -0
- package/dist/db/vector-graph-file.d.ts +51 -0
- package/dist/db/vector-graph-file.js +264 -0
- package/dist/db/vector-graph-index.d.ts +24 -0
- package/dist/db/vector-graph-index.js +260 -0
- package/dist/db/vector-graph-reader.d.ts +13 -0
- package/dist/db/vector-graph-reader.js +273 -0
- package/dist/db/vector-graph-rows.d.ts +79 -0
- package/dist/db/vector-graph-rows.js +166 -0
- package/dist/db/vector-graph.d.ts +68 -0
- package/dist/db/vector-graph.js +289 -0
- package/dist/db/vector-match.d.ts +47 -0
- package/dist/db/vector-match.js +174 -0
- package/dist/db/vector-store.d.ts +30 -31
- package/dist/db/vector-store.js +90 -146
- package/dist/db/wal-checkpointer.d.ts +13 -7
- package/dist/db/wal-checkpointer.js +67 -51
- package/dist/domain/agent-memories/apply.d.ts +12 -0
- package/dist/domain/agent-memories/apply.js +154 -0
- package/dist/domain/agent-memories/claude-code.d.ts +17 -0
- package/dist/domain/agent-memories/claude-code.js +188 -0
- package/dist/domain/agent-memories/codex.js +70 -0
- package/dist/domain/agent-memories/container-steps.d.ts +16 -0
- package/dist/domain/agent-memories/container-steps.js +95 -0
- package/dist/domain/agent-memories/container-view.d.ts +51 -0
- package/dist/domain/agent-memories/container-view.js +86 -0
- package/dist/domain/agent-memories/copilot.js +116 -0
- package/dist/domain/agent-memories/files.d.ts +14 -0
- package/dist/domain/agent-memories/files.js +31 -0
- package/dist/domain/agent-memories/folder-store.d.ts +22 -0
- package/dist/domain/agent-memories/folder-store.js +54 -0
- package/dist/domain/agent-memories/gemini.js +126 -0
- package/dist/domain/agent-memories/git.d.ts +10 -0
- package/dist/domain/agent-memories/git.js +22 -0
- package/dist/domain/agent-memories/handover.d.ts +8 -0
- package/dist/domain/agent-memories/handover.js +73 -0
- package/dist/domain/agent-memories/keys.d.ts +11 -0
- package/dist/domain/agent-memories/keys.js +24 -0
- package/dist/domain/agent-memories/legacy.d.ts +19 -0
- package/dist/domain/agent-memories/legacy.js +71 -0
- package/dist/domain/agent-memories/markdown.d.ts +14 -0
- package/dist/domain/agent-memories/markdown.js +135 -0
- package/dist/domain/agent-memories/openclaw.js +67 -0
- package/dist/domain/agent-memories/plan.d.ts +80 -0
- package/dist/domain/agent-memories/plan.js +145 -0
- package/dist/domain/agent-memories/project-folds.d.ts +13 -0
- package/dist/domain/agent-memories/project-folds.js +42 -0
- package/dist/domain/agent-memories/qwen-code.js +59 -0
- package/dist/domain/agent-memories/source.d.ts +28 -0
- package/dist/domain/agent-memories/source.js +42 -0
- package/dist/domain/agent-memories/sync.d.ts +49 -0
- package/dist/domain/agent-memories/sync.js +286 -0
- package/dist/domain/agent-memories/types.d.ts +62 -0
- package/dist/domain/consolidate/conflicts.d.ts +33 -0
- package/dist/domain/consolidate/conflicts.js +244 -0
- package/dist/domain/consolidate/dag-summary.d.ts +8 -0
- package/dist/domain/consolidate/dag-summary.js +38 -0
- package/dist/domain/consolidate/dag.d.ts +54 -0
- package/dist/domain/consolidate/dag.js +318 -0
- package/dist/domain/consolidate/decay.d.ts +18 -0
- package/dist/domain/consolidate/decay.js +167 -0
- package/dist/domain/consolidate/dedupe.d.ts +42 -0
- package/dist/domain/consolidate/dedupe.js +143 -0
- package/dist/domain/consolidate/events.d.ts +114 -0
- package/dist/domain/consolidate/events.js +3 -0
- package/dist/domain/consolidate/flush-units.d.ts +18 -0
- package/dist/domain/consolidate/flush-units.js +76 -0
- package/dist/domain/consolidate/half-life-migration.d.ts +26 -0
- package/dist/domain/consolidate/half-life-migration.js +20 -0
- package/dist/domain/consolidate/llm-passes.d.ts +4 -0
- package/dist/domain/consolidate/llm-passes.js +275 -0
- package/dist/domain/consolidate/memory-value-artifact.d.ts +3 -0
- package/dist/domain/consolidate/memory-value-artifact.js +8 -0
- package/dist/domain/consolidate/memory-value-weights.d.ts +13 -0
- package/dist/domain/consolidate/memory-value-weights.js +24 -0
- package/dist/domain/consolidate/memory-value.d.ts +85 -0
- package/dist/domain/consolidate/memory-value.js +257 -0
- package/dist/domain/consolidate/merge.d.ts +8 -0
- package/dist/domain/consolidate/merge.js +308 -0
- package/dist/domain/consolidate/overlap-index.d.ts +14 -0
- package/dist/domain/consolidate/overlap-index.js +46 -0
- package/dist/domain/consolidate/physics-pass.d.ts +7 -0
- package/dist/domain/consolidate/physics-pass.js +118 -0
- package/dist/domain/consolidate/replay.d.ts +25 -0
- package/dist/domain/consolidate/replay.js +98 -0
- package/dist/domain/consolidate/run.d.ts +94 -0
- package/dist/domain/consolidate/run.js +53 -0
- package/dist/domain/consolidate/sleep.d.ts +37 -0
- package/dist/domain/consolidate/sleep.js +231 -0
- package/dist/domain/consolidate/summary-settle.d.ts +25 -0
- package/dist/domain/consolidate/summary-settle.js +65 -0
- package/dist/domain/consolidate/survivors.d.ts +57 -0
- package/dist/domain/consolidate/survivors.js +150 -0
- package/dist/domain/consolidate/tombstones.d.ts +18 -0
- package/dist/domain/consolidate/tombstones.js +26 -0
- package/dist/domain/consolidate/trace.d.ts +23 -0
- package/dist/domain/consolidate/trace.js +57 -0
- package/dist/domain/consolidate/traces.d.ts +8 -0
- package/dist/domain/consolidate/traces.js +141 -0
- package/dist/domain/context/select-policy.d.ts +34 -0
- package/dist/domain/context/select-policy.js +89 -0
- package/dist/domain/eval/eval-stats.d.ts +172 -0
- package/dist/domain/eval/eval-stats.js +286 -0
- package/dist/domain/eval/eval-suite-corpus.d.ts +16 -0
- package/dist/domain/eval/eval-suite-corpus.js +304 -0
- package/dist/domain/eval/eval-suite-fixtures.d.ts +19 -0
- package/dist/domain/eval/eval-suite-fixtures.js +140 -0
- package/dist/domain/eval/eval-suite.d.ts +62 -0
- package/dist/domain/eval/eval-suite.js +186 -0
- package/dist/domain/eval/eval.d.ts +108 -0
- package/dist/domain/eval/eval.js +177 -0
- package/dist/domain/eval/repository-t.js +314 -0
- package/dist/domain/graph/extract.d.ts +64 -0
- package/dist/domain/graph/extract.js +288 -0
- package/dist/domain/graph/recall.d.ts +55 -0
- package/dist/domain/graph/recall.js +267 -0
- package/dist/domain/graph/stream.d.ts +48 -0
- package/dist/domain/graph/stream.js +226 -0
- package/dist/domain/graph/view.d.ts +55 -0
- package/dist/domain/graph/view.js +176 -0
- package/dist/domain/learn/autolearn.d.ts +26 -0
- package/dist/domain/learn/autolearn.js +102 -0
- package/dist/domain/learn/churn-evidence.d.ts +49 -0
- package/dist/domain/learn/churn-evidence.js +208 -0
- package/dist/domain/learn/churn-git.d.ts +34 -0
- package/dist/domain/learn/churn-git.js +126 -0
- package/dist/domain/learn/churn-stale.d.ts +36 -0
- package/dist/domain/learn/churn-stale.js +158 -0
- package/dist/domain/learn/extract.d.ts +29 -0
- package/dist/domain/learn/extract.js +132 -0
- package/dist/domain/learn/forward-claim-detector.d.ts +18 -0
- package/dist/domain/learn/forward-claim-detector.js +61 -0
- package/dist/domain/learn/invalidation.d.ts +40 -0
- package/dist/domain/learn/invalidation.js +187 -0
- package/dist/domain/learn/session-digest.d.ts +29 -0
- package/dist/domain/learn/session-digest.js +170 -0
- package/dist/domain/objects/customer-notes.d.ts +34 -0
- package/dist/domain/objects/customer-notes.js +50 -0
- package/dist/domain/objects/decisions.d.ts +39 -0
- package/dist/domain/objects/decisions.js +60 -0
- package/dist/domain/objects/descriptor.d.ts +43 -0
- package/dist/domain/objects/descriptor.js +5 -0
- package/dist/domain/objects/fields.d.ts +10 -0
- package/dist/domain/objects/fields.js +29 -0
- package/dist/domain/objects/incidents.d.ts +42 -0
- package/dist/domain/objects/incidents.js +85 -0
- package/dist/domain/objects/lifecycle.d.ts +44 -0
- package/dist/domain/objects/lifecycle.js +101 -0
- package/dist/domain/objects/policies.d.ts +48 -0
- package/dist/domain/objects/policies.js +84 -0
- package/dist/domain/objects/processes.d.ts +29 -0
- package/dist/domain/objects/processes.js +66 -0
- package/dist/domain/objects/project-briefs.d.ts +50 -0
- package/dist/domain/objects/project-briefs.js +166 -0
- package/dist/domain/objects/skills.d.ts +33 -0
- package/dist/domain/objects/skills.js +73 -0
- package/dist/domain/predictions/planning-fallacy.d.ts +24 -0
- package/dist/domain/predictions/planning-fallacy.js +83 -0
- package/dist/domain/rerankers/cross-encoder.d.ts +6 -0
- package/dist/domain/rerankers/cross-encoder.js +73 -0
- package/dist/domain/rerankers/hosted.d.ts +6 -0
- package/dist/domain/rerankers/hosted.js +10 -0
- package/dist/domain/rerankers/outage-warning.d.ts +17 -0
- package/dist/domain/rerankers/outage-warning.js +36 -0
- package/dist/domain/search/as-of.d.ts +10 -0
- package/dist/domain/search/as-of.js +22 -0
- package/dist/domain/search/bm25-search.d.ts +28 -0
- package/dist/domain/search/bm25-search.js +65 -0
- package/dist/domain/search/bm25.d.ts +16 -0
- package/dist/domain/search/bm25.js +54 -0
- package/dist/domain/search/boosts.d.ts +84 -0
- package/dist/domain/search/boosts.js +148 -0
- package/dist/domain/search/breakdown.d.ts +8 -0
- package/dist/domain/search/breakdown.js +22 -0
- package/dist/domain/search/detached-work.d.ts +6 -0
- package/dist/domain/search/detached-work.js +2 -0
- package/dist/domain/search/embed-failures.d.ts +7 -0
- package/dist/domain/search/embed-failures.js +36 -0
- package/dist/domain/search/embed-index-target.d.ts +13 -0
- package/dist/domain/search/embed-index-target.js +224 -0
- package/dist/domain/search/embed-memories.d.ts +50 -0
- package/dist/domain/search/embed-memories.js +73 -0
- package/dist/domain/search/embed-store-target.d.ts +17 -0
- package/dist/domain/search/embed-store-target.js +109 -0
- package/dist/domain/search/embed-turns.d.ts +3 -0
- package/dist/domain/search/embed-turns.js +6 -0
- package/dist/domain/search/engine.d.ts +19 -0
- package/dist/domain/search/engine.js +14 -0
- package/dist/domain/search/explain.d.ts +26 -0
- package/dist/domain/search/explain.js +33 -0
- package/dist/domain/search/finalize.d.ts +10 -0
- package/dist/domain/search/finalize.js +84 -0
- package/dist/domain/search/fusion.d.ts +31 -0
- package/dist/domain/search/fusion.js +46 -0
- package/dist/domain/search/goal-boost.d.ts +32 -0
- package/dist/domain/search/goal-boost.js +107 -0
- package/dist/domain/search/hybrid-score.d.ts +23 -0
- package/dist/domain/search/hybrid-score.js +76 -0
- package/dist/domain/search/hybrid.d.ts +130 -0
- package/dist/domain/search/hybrid.js +115 -0
- package/dist/domain/search/multihop.d.ts +5 -0
- package/dist/domain/search/multihop.js +46 -0
- package/dist/domain/search/path-context.d.ts +17 -0
- package/dist/domain/search/path-context.js +66 -0
- package/dist/domain/search/physics-search.d.ts +50 -0
- package/dist/domain/search/physics-search.js +216 -0
- package/dist/domain/search/rerank.d.ts +21 -0
- package/dist/domain/search/rerank.js +77 -0
- package/dist/domain/search/rrf.d.ts +22 -0
- package/dist/domain/search/rrf.js +42 -0
- package/dist/domain/search/temporal.d.ts +15 -0
- package/dist/domain/search/temporal.js +51 -0
- package/dist/domain/search/vector.d.ts +65 -0
- package/dist/domain/search/vector.js +144 -0
- package/dist/domain/sharing/global-sync.d.ts +20 -0
- package/dist/domain/sharing/global-sync.js +114 -0
- package/dist/domain/sharing/project-merge.d.ts +87 -0
- package/dist/domain/sharing/project-merge.js +292 -0
- package/dist/domain/sharing/search-both.d.ts +85 -0
- package/dist/domain/sharing/search-both.js +159 -0
- package/dist/domain/sharing/share.d.ts +63 -0
- package/dist/domain/sharing/share.js +320 -0
- package/dist/domain/sharing/text-keys.d.ts +8 -0
- package/dist/domain/sharing/text-keys.js +14 -0
- package/dist/domain/trust/quarantine.d.ts +4 -0
- package/dist/domain/trust/quarantine.js +4 -0
- package/dist/domain/trust/reject-flow.d.ts +37 -0
- package/dist/domain/trust/reject-flow.js +52 -0
- package/dist/entry/eval-scripts.d.ts +40 -0
- package/dist/entry/eval-scripts.js +68 -0
- package/dist/entry/eval.d.ts +10 -0
- package/dist/entry/eval.js +16 -0
- package/dist/entry/folder-search.d.ts +49 -0
- package/dist/entry/folder-search.js +88 -0
- package/dist/entry/importers.d.ts +16 -0
- package/dist/entry/importers.js +47 -0
- package/dist/entry/json-hooks.d.ts +3 -2
- package/dist/entry/json-hooks.js +2 -3
- package/dist/entry/learning.d.ts +7 -0
- package/dist/entry/learning.js +10 -0
- package/dist/entry/memory.d.ts +32 -0
- package/dist/entry/memory.js +51 -0
- package/dist/entry/object-saves.d.ts +11 -0
- package/dist/entry/object-saves.js +23 -0
- package/dist/entry/project-identity.d.ts +2 -1
- package/dist/entry/project-identity.js +4 -3
- package/dist/entry/search.d.ts +15 -0
- package/dist/entry/search.js +18 -0
- package/dist/entry/session-text.d.ts +7 -6
- package/dist/entry/session-text.js +10 -8
- package/dist/entry/sleep.d.ts +23 -0
- package/dist/entry/sleep.js +45 -0
- package/dist/entry/store-conformance.d.ts +15 -0
- package/dist/entry/store-conformance.js +69 -0
- package/dist/entry/store-kit.d.ts +46 -48
- package/dist/entry/store-kit.js +50 -26
- package/dist/entry/testing.d.ts +15 -5
- package/dist/entry/testing.js +27 -6
- package/dist/entry/wire-kit.d.ts +20 -0
- package/dist/entry/wire-kit.js +31 -0
- package/dist/extensions/openclaw-plugin/index.js +4 -4
- package/dist/host/agent-homes.d.ts +8 -0
- package/dist/host/agent-homes.js +25 -0
- package/dist/host/atomic-write.d.ts +19 -0
- package/dist/host/atomic-write.js +182 -0
- package/dist/host/clock.d.ts +5 -0
- package/dist/host/clock.js +6 -0
- package/dist/host/config-file.d.ts +21 -0
- package/dist/host/config-file.js +119 -0
- package/dist/host/file-lock.d.ts +28 -0
- package/dist/host/file-lock.js +168 -0
- package/dist/host/global-store.d.ts +3 -0
- package/dist/host/global-store.js +8 -0
- package/dist/host/host.d.ts +16 -0
- package/dist/host/host.js +39 -0
- package/dist/host/json-file.d.ts +6 -0
- package/dist/host/json-file.js +15 -0
- package/dist/host/key-gitignore.d.ts +4 -0
- package/dist/host/key-gitignore.js +58 -0
- package/dist/host/kill-tree.d.ts +11 -0
- package/dist/host/kill-tree.js +135 -0
- package/dist/host/package-version.d.ts +4 -0
- package/dist/host/package-version.js +16 -0
- package/dist/host/pid-alive.d.ts +4 -0
- package/dist/host/pid-alive.js +14 -0
- package/dist/host/private-dir.d.ts +8 -0
- package/dist/host/private-dir.js +5 -0
- package/dist/host/project-identity.d.ts +37 -0
- package/dist/host/project-identity.js +187 -0
- package/dist/host/project-remote.d.ts +23 -0
- package/dist/host/project-remote.js +192 -0
- package/dist/host/real-path.d.ts +9 -0
- package/dist/host/real-path.js +31 -0
- package/dist/host/spawn-argv.d.ts +17 -0
- package/dist/host/spawn-argv.js +105 -0
- package/dist/host/stream-tee.d.ts +4 -0
- package/dist/host/stream-tee.js +38 -0
- package/dist/host/windows-acl.d.ts +5 -0
- package/dist/host/windows-acl.js +29 -0
- package/dist/index.d.ts +6 -77
- package/dist/index.js +6 -80
- package/dist/infra/agent-files.d.ts +3 -0
- package/dist/infra/agent-files.js +101 -0
- package/dist/infra/anthropic-llm.d.ts +9 -0
- package/dist/infra/anthropic-llm.js +95 -0
- package/dist/infra/compaction-spool.d.ts +27 -0
- package/dist/infra/compaction-spool.js +71 -0
- package/dist/infra/cross-encoder.d.ts +34 -0
- package/dist/infra/cross-encoder.js +44 -0
- package/dist/infra/embedding-provider.d.ts +23 -0
- package/dist/infra/embedding-provider.js +281 -0
- package/dist/infra/eval-switches.d.ts +27 -0
- package/dist/infra/eval-switches.js +59 -0
- package/dist/infra/git-runner.d.ts +5 -0
- package/dist/infra/git-runner.js +47 -0
- package/dist/infra/http-retry.d.ts +46 -0
- package/dist/infra/http-retry.js +195 -0
- package/dist/infra/http.d.ts +6 -0
- package/dist/infra/http.js +10 -0
- package/dist/infra/judgment.d.ts +26 -0
- package/dist/infra/judgment.js +128 -0
- package/dist/infra/local-embedder.d.ts +64 -0
- package/dist/infra/local-embedder.js +146 -0
- package/dist/infra/machine.d.ts +6 -0
- package/dist/infra/machine.js +23 -0
- package/dist/infra/ports.d.ts +11 -0
- package/dist/infra/ports.js +37 -0
- package/dist/infra/rerankers/clef.d.ts +31 -0
- package/dist/infra/rerankers/clef.js +180 -0
- package/dist/infra/rerankers/endpoint.d.ts +21 -0
- package/dist/infra/rerankers/endpoint.js +31 -0
- package/dist/infra/rerankers/index.d.ts +7 -0
- package/dist/infra/rerankers/index.js +31 -0
- package/dist/infra/rerankers/jev.d.ts +20 -0
- package/dist/infra/rerankers/jev.js +113 -0
- package/dist/infra/rerankers/llm.d.ts +10 -0
- package/dist/infra/rerankers/llm.js +96 -0
- package/dist/infra/spool-claims.d.ts +42 -0
- package/dist/infra/spool-claims.js +65 -0
- package/dist/infra/spool-counts.d.ts +12 -0
- package/dist/infra/spool-counts.js +48 -0
- package/dist/infra/spool-files.d.ts +85 -0
- package/dist/infra/spool-files.js +100 -0
- package/dist/infra/spool-import.d.ts +15 -0
- package/dist/infra/spool-import.js +92 -0
- package/dist/infra/spool-record.d.ts +19 -0
- package/dist/infra/spool-record.js +46 -0
- package/dist/infra/spool-recovery.d.ts +19 -0
- package/dist/infra/spool-recovery.js +88 -0
- package/dist/infra/transcript-calls.d.ts +5 -0
- package/dist/infra/transcript-calls.js +54 -0
- package/dist/infra/transcript-tail.d.ts +14 -0
- package/dist/infra/transcript-tail.js +43 -0
- package/dist/infra/transformers.d.ts +29 -0
- package/dist/infra/transformers.js +83 -0
- package/dist/server.d.ts +28 -25
- package/dist/server.js +32 -38
- package/dist/store/rules/audit-rows.d.ts +30 -0
- package/dist/store/rules/audit-rows.js +11 -0
- package/dist/store/rules/copies.d.ts +12 -0
- package/dist/store/rules/copies.js +26 -0
- package/dist/store/rules/graph-delta.d.ts +52 -0
- package/dist/store/rules/graph-delta.js +92 -0
- package/dist/store/rules/half-life.d.ts +8 -0
- package/dist/store/rules/half-life.js +27 -0
- package/dist/store/rules/order.d.ts +51 -0
- package/dist/store/rules/order.js +54 -0
- package/dist/store/rules/request-ids.d.ts +3 -0
- package/dist/store/rules/request-ids.js +5 -0
- package/dist/store/rules/windows.d.ts +10 -0
- package/dist/store/rules/windows.js +12 -0
- package/dist/store/sqlite/audit/audit-event.d.ts +18 -0
- package/dist/store/sqlite/audit/audit-event.js +31 -0
- package/dist/store/sqlite/audit/audit-maintenance.d.ts +4 -0
- package/dist/store/sqlite/audit/audit-maintenance.js +288 -0
- package/dist/store/sqlite/audit/audit.d.ts +23 -0
- package/dist/store/sqlite/audit/audit.js +131 -0
- package/dist/store/sqlite/capture/captures.d.ts +4 -0
- package/dist/store/sqlite/capture/captures.js +56 -0
- package/dist/store/sqlite/capture/compaction-hooks.d.ts +4 -0
- package/dist/store/sqlite/capture/compaction-hooks.js +221 -0
- package/dist/store/sqlite/capture/compaction-rows.d.ts +93 -0
- package/dist/store/sqlite/capture/compaction-rows.js +84 -0
- package/dist/store/sqlite/capture/compactions-record.d.ts +89 -0
- package/dist/store/sqlite/capture/compactions-record.js +268 -0
- package/dist/store/sqlite/capture/compactions.d.ts +4 -0
- package/dist/store/sqlite/capture/compactions.js +59 -0
- package/dist/store/sqlite/capture/failure-log.d.ts +12 -0
- package/dist/store/sqlite/capture/failure-log.js +113 -0
- package/dist/store/sqlite/capture/gated-write.d.ts +13 -0
- package/dist/store/sqlite/capture/gated-write.js +33 -0
- package/dist/store/sqlite/connectors/connector-events.d.ts +4 -0
- package/dist/store/sqlite/connectors/connector-events.js +53 -0
- package/dist/store/sqlite/connectors/connector-writes.d.ts +6 -0
- package/dist/store/sqlite/connectors/connector-writes.js +65 -0
- package/dist/store/sqlite/connectors/dlq.d.ts +21 -0
- package/dist/store/sqlite/connectors/dlq.js +85 -0
- package/dist/store/sqlite/connectors/event-log.d.ts +20 -0
- package/dist/store/sqlite/connectors/event-log.js +26 -0
- package/dist/store/sqlite/connectors/events.d.ts +11 -0
- package/dist/store/sqlite/connectors/events.js +57 -0
- package/dist/store/sqlite/connectors/github.d.ts +32 -0
- package/dist/store/sqlite/connectors/github.js +102 -0
- package/dist/store/sqlite/connectors/quarantine.d.ts +17 -0
- package/dist/store/sqlite/connectors/quarantine.js +157 -0
- package/dist/store/sqlite/connectors/replay.d.ts +6 -0
- package/dist/store/sqlite/connectors/replay.js +21 -0
- package/dist/store/sqlite/connectors/slack.d.ts +23 -0
- package/dist/store/sqlite/connectors/slack.js +82 -0
- package/dist/store/sqlite/consolidation/consolidation-summaries.d.ts +19 -0
- package/dist/store/sqlite/consolidation/consolidation-summaries.js +155 -0
- package/dist/store/sqlite/consolidation/consolidation.d.ts +5 -0
- package/dist/store/sqlite/consolidation/consolidation.js +140 -0
- package/dist/store/sqlite/consolidation/sleep-scans.d.ts +9 -0
- package/dist/store/sqlite/consolidation/sleep-scans.js +77 -0
- package/dist/store/sqlite/dormant/dormant-rows.d.ts +52 -0
- package/dist/store/sqlite/dormant/dormant-rows.js +169 -0
- package/dist/store/sqlite/dormant/dormant.d.ts +12 -0
- package/dist/store/sqlite/dormant/dormant.js +142 -0
- package/dist/store/sqlite/entries/delete-and-batch.d.ts +56 -0
- package/dist/store/sqlite/entries/delete-and-batch.js +479 -0
- package/dist/store/sqlite/entries/entry-filter.d.ts +20 -0
- package/dist/store/sqlite/entries/entry-filter.js +97 -0
- package/dist/store/sqlite/entries/entry-mentions.d.ts +10 -0
- package/dist/store/sqlite/entries/entry-mentions.js +90 -0
- package/dist/store/sqlite/entries/entry-reads.d.ts +106 -0
- package/dist/store/sqlite/entries/entry-reads.js +264 -0
- package/dist/store/sqlite/entries/entry-row.d.ts +34 -0
- package/dist/store/sqlite/entries/entry-row.js +209 -0
- package/dist/store/sqlite/entries/entry-writes.d.ts +128 -0
- package/dist/store/sqlite/entries/entry-writes.js +510 -0
- package/dist/store/sqlite/entries/index-and-stats.d.ts +35 -0
- package/dist/store/sqlite/entries/index-and-stats.js +98 -0
- package/dist/store/sqlite/entries/raw-archive.d.ts +20 -0
- package/dist/store/sqlite/entries/raw-archive.js +115 -0
- package/dist/store/sqlite/entries/set-aside.d.ts +14 -0
- package/dist/store/sqlite/entries/set-aside.js +39 -0
- package/dist/store/sqlite/entries/summary-dirty.d.ts +10 -0
- package/dist/store/sqlite/entries/summary-dirty.js +47 -0
- package/dist/store/sqlite/fixtures.d.ts +37 -0
- package/dist/store/sqlite/fixtures.js +65 -0
- package/dist/store/sqlite/folder-files/due-mirrors.d.ts +12 -0
- package/dist/store/sqlite/folder-files/due-mirrors.js +80 -0
- package/dist/store/sqlite/folder-files/folder-files.d.ts +4 -0
- package/dist/store/sqlite/folder-files/folder-files.js +30 -0
- package/dist/store/sqlite/folder-files/mirrors.d.ts +49 -0
- package/dist/store/sqlite/folder-files/mirrors.js +323 -0
- package/dist/store/sqlite/graph/dag-reads.d.ts +4 -0
- package/dist/store/sqlite/graph/dag-reads.js +162 -0
- package/dist/store/sqlite/graph/graph-delta.d.ts +5 -0
- package/dist/store/sqlite/graph/graph-delta.js +72 -0
- package/dist/store/sqlite/graph/graph-queue.d.ts +18 -0
- package/dist/store/sqlite/graph/graph-queue.js +71 -0
- package/dist/store/sqlite/graph/graph-reads.d.ts +4 -0
- package/dist/store/sqlite/graph/graph-reads.js +236 -0
- package/dist/store/sqlite/graph/graph-rebuild.d.ts +4 -0
- package/dist/store/sqlite/graph/graph-rebuild.js +80 -0
- package/dist/store/sqlite/graph/graph-rows.d.ts +78 -0
- package/dist/store/sqlite/graph/graph-rows.js +66 -0
- package/dist/store/sqlite/graph/graph-writes.d.ts +56 -0
- package/dist/store/sqlite/graph/graph-writes.js +254 -0
- package/dist/store/sqlite/index.d.ts +16 -0
- package/dist/store/sqlite/index.js +18 -0
- package/dist/store/sqlite/keys/auth.d.ts +43 -0
- package/dist/store/sqlite/keys/auth.js +141 -0
- package/dist/store/sqlite/keys/keys.d.ts +4 -0
- package/dist/store/sqlite/keys/keys.js +102 -0
- package/dist/store/sqlite/learning/learning.d.ts +5 -0
- package/dist/store/sqlite/learning/learning.js +21 -0
- package/dist/store/sqlite/learning/lesson-writes.d.ts +4 -0
- package/dist/store/sqlite/learning/lesson-writes.js +43 -0
- package/dist/store/sqlite/learning/planning-fallacy-evidence.d.ts +7 -0
- package/dist/store/sqlite/learning/planning-fallacy-evidence.js +52 -0
- package/dist/store/sqlite/learning/prediction-baserate.d.ts +10 -0
- package/dist/store/sqlite/learning/prediction-baserate.js +84 -0
- package/dist/store/sqlite/learning/predictions.d.ts +15 -0
- package/dist/store/sqlite/learning/predictions.js +256 -0
- package/dist/store/sqlite/ledger/delivery-ledger.d.ts +19 -0
- package/dist/store/sqlite/ledger/delivery-ledger.js +277 -0
- package/dist/store/sqlite/ledger/ledger.d.ts +8 -0
- package/dist/store/sqlite/ledger/ledger.js +171 -0
- package/dist/store/sqlite/ledger/token-ledger-rows.d.ts +70 -0
- package/dist/store/sqlite/ledger/token-ledger-rows.js +66 -0
- package/dist/store/sqlite/ledger/token-ledger.d.ts +38 -0
- package/dist/store/sqlite/ledger/token-ledger.js +155 -0
- package/dist/store/sqlite/maintenance/agent-import-steps.d.ts +15 -0
- package/dist/store/sqlite/maintenance/agent-import-steps.js +225 -0
- package/dist/store/sqlite/maintenance/agent-import-stores.d.ts +17 -0
- package/dist/store/sqlite/maintenance/agent-import-stores.js +41 -0
- package/dist/store/sqlite/maintenance/agent-import.d.ts +6 -0
- package/dist/store/sqlite/maintenance/agent-import.js +48 -0
- package/dist/store/sqlite/maintenance/diagnostics.d.ts +4 -0
- package/dist/store/sqlite/maintenance/diagnostics.js +79 -0
- package/dist/store/sqlite/maintenance/import-files.d.ts +18 -0
- package/dist/store/sqlite/maintenance/import-files.js +17 -0
- package/dist/store/sqlite/maintenance/project-tags.d.ts +6 -0
- package/dist/store/sqlite/maintenance/project-tags.js +182 -0
- package/dist/store/sqlite/recall/ambient.d.ts +8 -0
- package/dist/store/sqlite/recall/ambient.js +89 -0
- package/dist/store/sqlite/recall/candidates.d.ts +56 -0
- package/dist/store/sqlite/recall/candidates.js +417 -0
- package/dist/store/sqlite/recall/fts-phrase.d.ts +5 -0
- package/dist/store/sqlite/recall/fts-phrase.js +10 -0
- package/dist/store/sqlite/recall/last-recall.d.ts +14 -0
- package/dist/store/sqlite/recall/last-recall.js +59 -0
- package/dist/store/sqlite/recall/recall-trace.d.ts +29 -0
- package/dist/store/sqlite/recall/recall-trace.js +110 -0
- package/dist/store/sqlite/recall/search-rows.d.ts +22 -0
- package/dist/store/sqlite/recall/search-rows.js +259 -0
- package/dist/store/sqlite/records/card-rows.d.ts +51 -0
- package/dist/store/sqlite/records/card-rows.js +66 -0
- package/dist/store/sqlite/records/card-runs.d.ts +34 -0
- package/dist/store/sqlite/records/card-runs.js +253 -0
- package/dist/store/sqlite/records/cards.d.ts +4 -0
- package/dist/store/sqlite/records/cards.js +148 -0
- package/dist/store/sqlite/records/object-rows.d.ts +142 -0
- package/dist/store/sqlite/records/object-rows.js +237 -0
- package/dist/store/sqlite/records/object-writes.d.ts +18 -0
- package/dist/store/sqlite/records/object-writes.js +258 -0
- package/dist/store/sqlite/records/objects.d.ts +4 -0
- package/dist/store/sqlite/records/objects.js +116 -0
- package/dist/store/sqlite/reports/dashboard-functions.d.ts +47 -0
- package/dist/store/sqlite/reports/dashboard-functions.js +256 -0
- package/dist/store/sqlite/reports/dashboard-lists.d.ts +16 -0
- package/dist/store/sqlite/reports/dashboard-lists.js +241 -0
- package/dist/store/sqlite/reports/dashboard-reads.d.ts +7 -0
- package/dist/store/sqlite/reports/dashboard-reads.js +201 -0
- package/dist/store/sqlite/reports/dashboard-sql.d.ts +7 -0
- package/dist/store/sqlite/reports/dashboard-sql.js +19 -0
- package/dist/store/sqlite/reports/reports.d.ts +4 -0
- package/dist/store/sqlite/reports/reports.js +98 -0
- package/dist/store/sqlite/review/conflicts.d.ts +26 -0
- package/dist/store/sqlite/review/conflicts.js +441 -0
- package/dist/store/sqlite/review/rejection.d.ts +42 -0
- package/dist/store/sqlite/review/rejection.js +99 -0
- package/dist/store/sqlite/review/rejections.d.ts +6 -0
- package/dist/store/sqlite/review/rejections.js +253 -0
- package/dist/store/sqlite/runtime/bound.d.ts +21 -0
- package/dist/store/sqlite/runtime/bound.js +44 -0
- package/dist/store/sqlite/runtime/commit-watch.d.ts +4 -0
- package/dist/store/sqlite/runtime/commit-watch.js +57 -0
- package/dist/store/sqlite/runtime/error-codec.d.ts +20 -0
- package/dist/store/sqlite/runtime/error-codec.js +104 -0
- package/dist/store/sqlite/runtime/executor-counts.js +12 -0
- package/dist/store/sqlite/runtime/executor.d.ts +52 -0
- package/dist/store/sqlite/runtime/executor.js +384 -0
- package/dist/store/sqlite/runtime/grant.d.ts +22 -0
- package/dist/store/sqlite/runtime/grant.js +9 -0
- package/dist/store/sqlite/runtime/handle-clock.d.ts +9 -0
- package/dist/store/sqlite/runtime/handle-clock.js +18 -0
- package/dist/store/sqlite/runtime/handles.d.ts +20 -0
- package/dist/store/sqlite/runtime/handles.js +104 -0
- package/dist/store/sqlite/runtime/held-connection.d.ts +11 -0
- package/dist/store/sqlite/runtime/held-connection.js +58 -0
- package/dist/store/sqlite/runtime/hippo-db-stores.d.ts +7 -0
- package/dist/store/sqlite/runtime/hippo-db-stores.js +12 -0
- package/dist/store/sqlite/runtime/keyset.d.ts +48 -0
- package/dist/store/sqlite/runtime/keyset.js +74 -0
- package/dist/store/sqlite/runtime/open.d.ts +55 -0
- package/dist/store/sqlite/runtime/open.js +180 -0
- package/dist/store/sqlite/runtime/port-errors.d.ts +10 -0
- package/dist/store/sqlite/runtime/port-errors.js +25 -0
- package/dist/store/sqlite/runtime/request-scope.d.ts +16 -0
- package/dist/store/sqlite/runtime/request-scope.js +40 -0
- package/dist/store/sqlite/runtime/rows.d.ts +125 -0
- package/dist/store/sqlite/runtime/rows.js +249 -0
- package/dist/store/sqlite/runtime/rule-sql.d.ts +32 -0
- package/dist/store/sqlite/runtime/rule-sql.js +102 -0
- package/dist/store/sqlite/runtime/server-runtime.d.ts +46 -0
- package/dist/store/sqlite/runtime/server-runtime.js +70 -0
- package/dist/store/sqlite/runtime/tenant-lookup.d.ts +12 -0
- package/dist/store/sqlite/runtime/tenant-lookup.js +20 -0
- package/dist/store/sqlite/runtime/tenant-wire.d.ts +15 -0
- package/dist/store/sqlite/runtime/tenant-wire.js +37 -0
- package/dist/store/sqlite/runtime/tenant.d.ts +16 -0
- package/dist/store/sqlite/runtime/tenant.js +22 -0
- package/dist/store/sqlite/runtime/vector-pack.d.ts +17 -0
- package/dist/store/sqlite/runtime/vector-pack.js +41 -0
- package/dist/store/sqlite/runtime/worker-entry.js +10 -0
- package/dist/store/sqlite/runtime/worker-jobs.d.ts +6 -0
- package/dist/store/sqlite/runtime/worker-jobs.js +181 -0
- package/dist/store/sqlite/runtime/worker-ops.d.ts +78 -0
- package/dist/store/sqlite/runtime/worker-ops.js +37 -0
- package/dist/store/sqlite/runtime/worker-store.d.ts +30 -0
- package/dist/store/sqlite/runtime/worker-store.js +172 -0
- package/dist/store/sqlite/sessions/goals.d.ts +30 -0
- package/dist/store/sqlite/sessions/goals.js +282 -0
- package/dist/store/sqlite/sessions/handoffs.d.ts +36 -0
- package/dist/store/sqlite/sessions/handoffs.js +245 -0
- package/dist/store/sqlite/sessions/session-mirrors.d.ts +5 -0
- package/dist/store/sqlite/sessions/session-mirrors.js +87 -0
- package/dist/store/sqlite/sessions/sessions.d.ts +14 -0
- package/dist/store/sqlite/sessions/sessions.js +316 -0
- package/dist/store/sqlite/sessions/task-snapshots.d.ts +16 -0
- package/dist/store/sqlite/sessions/task-snapshots.js +93 -0
- package/dist/store/sqlite/sharing/copy-rows.d.ts +25 -0
- package/dist/store/sqlite/sharing/copy-rows.js +69 -0
- package/dist/store/sqlite/sharing/promotion.d.ts +4 -0
- package/dist/store/sqlite/sharing/promotion.js +8 -0
- package/dist/store/sqlite/sharing/sharing.d.ts +4 -0
- package/dist/store/sqlite/sharing/sharing.js +20 -0
- package/dist/store/sqlite/store.d.ts +32 -25
- package/dist/store/sqlite/store.js +217 -307
- package/dist/store/sqlite/vectors/embed-lock.d.ts +8 -0
- package/dist/store/sqlite/vectors/embed-lock.js +22 -0
- package/dist/store/sqlite/vectors/embedding-index.d.ts +4 -0
- package/dist/store/sqlite/vectors/embedding-index.js +111 -0
- package/dist/store/sqlite/vectors/vector-graph-file.d.ts +5 -0
- package/dist/store/sqlite/vectors/vector-graph-file.js +10 -0
- package/dist/store/sqlite/vectors/vector-index.d.ts +62 -0
- package/dist/store/sqlite/vectors/vector-index.js +223 -0
- package/dist/store/sqlite/vectors/vector-reads.d.ts +23 -0
- package/dist/store/sqlite/vectors/vector-reads.js +48 -0
- package/dist/surface/capture/caller-session.d.ts +20 -0
- package/dist/surface/capture/caller-session.js +65 -0
- package/dist/surface/capture/capture-error.d.ts +22 -0
- package/dist/surface/capture/capture-error.js +63 -0
- package/dist/surface/capture/codex-patch.d.ts +13 -0
- package/dist/surface/capture/codex-patch.js +81 -0
- package/dist/surface/capture/codex-session.js +83 -0
- package/dist/surface/capture/command.d.ts +74 -0
- package/dist/surface/capture/command.js +259 -0
- package/dist/surface/capture/compact-resume-caller.d.ts +11 -0
- package/dist/surface/capture/compact-resume-caller.js +48 -0
- package/dist/surface/capture/compact.d.ts +35 -0
- package/dist/surface/capture/compact.js +316 -0
- package/dist/surface/capture/compaction-items-caller.d.ts +19 -0
- package/dist/surface/capture/compaction-items-caller.js +39 -0
- package/dist/surface/capture/compaction-record.d.ts +42 -0
- package/dist/surface/capture/compaction-record.js +215 -0
- package/dist/surface/capture/copilot-transcript.d.ts +26 -0
- package/dist/surface/capture/copilot-transcript.js +60 -0
- package/dist/surface/capture/extract.d.ts +11 -0
- package/dist/surface/capture/extract.js +193 -0
- package/dist/surface/capture/failure-caller.d.ts +22 -0
- package/dist/surface/capture/failure-caller.js +106 -0
- package/dist/surface/capture/failure-reading.d.ts +54 -0
- package/dist/surface/capture/failure-reading.js +111 -0
- package/dist/surface/capture/handoff-evidence.d.ts +5 -0
- package/dist/surface/capture/handoff-evidence.js +38 -0
- package/dist/surface/capture/pre-compact-caller.d.ts +16 -0
- package/dist/surface/capture/pre-compact-caller.js +52 -0
- package/dist/surface/capture/session-digest.d.ts +42 -0
- package/dist/surface/capture/session-digest.js +372 -0
- package/dist/surface/capture/session-end-caller.d.ts +25 -0
- package/dist/surface/capture/session-end-caller.js +45 -0
- package/dist/surface/capture/session-texts.d.ts +21 -0
- package/dist/surface/capture/session-texts.js +65 -0
- package/dist/surface/capture/session-worker.d.ts +21 -0
- package/dist/surface/capture/session-worker.js +262 -0
- package/dist/surface/capture/share-scrub.d.ts +4 -0
- package/dist/surface/capture/share-scrub.js +9 -0
- package/dist/surface/capture/transcript.d.ts +46 -0
- package/dist/surface/capture/transcript.js +245 -0
- package/dist/surface/capture/working-state.d.ts +7 -0
- package/dist/surface/capture/working-state.js +95 -0
- package/dist/surface/cli/api-context.d.ts +72 -0
- package/dist/surface/cli/api-context.js +219 -0
- package/dist/surface/cli/audit-prune.d.ts +4 -0
- package/dist/surface/cli/audit-prune.js +15 -0
- package/dist/surface/cli/audit.d.ts +3 -0
- package/dist/surface/cli/audit.js +184 -0
- package/dist/surface/cli/auth.d.ts +3 -0
- package/dist/surface/cli/auth.js +191 -0
- package/dist/surface/cli/briefs.d.ts +2 -0
- package/dist/surface/cli/briefs.js +72 -0
- package/dist/surface/cli/card.d.ts +5 -0
- package/dist/surface/cli/card.js +342 -0
- package/dist/surface/cli/cli-runtime.d.ts +8 -0
- package/dist/surface/cli/cli-runtime.js +27 -0
- package/dist/surface/cli/client.d.ts +60 -0
- package/dist/surface/cli/client.js +183 -0
- package/dist/surface/cli/compact-resume-payload.d.ts +11 -0
- package/dist/surface/cli/compact-resume-payload.js +42 -0
- package/dist/surface/cli/conflicts.d.ts +4 -0
- package/dist/surface/cli/conflicts.js +110 -0
- package/dist/surface/cli/context.d.ts +3 -0
- package/dist/surface/cli/context.js +247 -0
- package/dist/surface/cli/continuity.d.ts +5 -0
- package/dist/surface/cli/continuity.js +200 -0
- package/dist/surface/cli/copilot-report.d.ts +4 -0
- package/dist/surface/cli/copilot-report.js +115 -0
- package/dist/surface/cli/curate-held.d.ts +9 -0
- package/dist/surface/cli/curate-held.js +136 -0
- package/dist/surface/cli/curate.d.ts +5 -0
- package/dist/surface/cli/curate.js +162 -0
- package/dist/surface/cli/dag.d.ts +5 -0
- package/dist/surface/cli/dag.js +204 -0
- package/dist/surface/cli/daily-runner.d.ts +3 -0
- package/dist/surface/cli/daily-runner.js +111 -0
- package/dist/surface/cli/dashboard-banner.d.ts +15 -0
- package/dist/surface/cli/dashboard-banner.js +42 -0
- package/dist/surface/cli/decisions.d.ts +3 -0
- package/dist/surface/cli/decisions.js +110 -0
- package/dist/surface/cli/dlq-replay.d.ts +4 -0
- package/dist/surface/cli/dlq-replay.js +17 -0
- package/dist/surface/cli/doctor-store-checks.d.ts +9 -0
- package/dist/surface/cli/doctor-store-checks.js +285 -0
- package/dist/surface/cli/doctor.d.ts +53 -0
- package/dist/surface/cli/doctor.js +232 -0
- package/dist/surface/cli/eval.d.ts +7 -0
- package/dist/surface/cli/eval.js +322 -0
- package/dist/surface/cli/exit.d.ts +12 -0
- package/dist/surface/cli/exit.js +22 -0
- package/dist/surface/cli/explain.d.ts +3 -0
- package/dist/surface/cli/explain.js +198 -0
- package/dist/surface/cli/flag-defaults.d.ts +11 -0
- package/dist/surface/cli/flag-defaults.js +13 -0
- package/dist/surface/cli/flag-values.d.ts +57 -0
- package/dist/surface/cli/flag-values.js +173 -0
- package/dist/surface/cli/flags.d.ts +16 -0
- package/dist/surface/cli/flags.js +42 -0
- package/dist/surface/cli/github.d.ts +15 -0
- package/dist/surface/cli/github.js +174 -0
- package/dist/surface/cli/goals.d.ts +3 -0
- package/dist/surface/cli/goals.js +178 -0
- package/dist/surface/cli/graph-page-client.d.ts +2 -0
- package/dist/surface/cli/graph-page-client.js +98 -0
- package/dist/surface/cli/graph-page.d.ts +15 -0
- package/dist/surface/cli/graph-page.js +152 -0
- package/dist/surface/cli/graph.d.ts +3 -0
- package/dist/surface/cli/graph.js +92 -0
- package/dist/surface/cli/handoff.d.ts +3 -0
- package/dist/surface/cli/handoff.js +127 -0
- package/dist/surface/cli/hook-runtime.d.ts +59 -0
- package/dist/surface/cli/hook-runtime.js +162 -0
- package/dist/surface/cli/hook.d.ts +3 -0
- package/dist/surface/cli/hook.js +221 -0
- package/dist/surface/cli/hooks/capture-error.d.ts +5 -0
- package/dist/surface/cli/hooks/capture-error.js +42 -0
- package/dist/surface/cli/hooks/capture.d.ts +3 -0
- package/dist/surface/cli/hooks/capture.js +53 -0
- package/dist/surface/cli/hooks/codex-run.d.ts +3 -0
- package/dist/surface/cli/hooks/codex-run.js +143 -0
- package/dist/surface/cli/hooks/codex-session-end-worker.d.ts +3 -0
- package/dist/surface/cli/hooks/codex-session-end-worker.js +98 -0
- package/dist/surface/cli/hooks/compact-resume.d.ts +3 -0
- package/dist/surface/cli/hooks/compact-resume.js +81 -0
- package/dist/surface/cli/hooks/post-compact.d.ts +4 -0
- package/dist/surface/cli/hooks/post-compact.js +37 -0
- package/dist/surface/cli/hooks/pre-compact.d.ts +3 -0
- package/dist/surface/cli/hooks/pre-compact.js +46 -0
- package/dist/surface/cli/hooks/session-end-worker.d.ts +3 -0
- package/dist/surface/cli/hooks/session-end-worker.js +85 -0
- package/dist/surface/cli/hooks/session-end.d.ts +6 -0
- package/dist/surface/cli/hooks/session-end.js +162 -0
- package/dist/surface/cli/incidents.d.ts +3 -0
- package/dist/surface/cli/incidents.js +97 -0
- package/dist/surface/cli/init.js +394 -0
- package/dist/surface/cli/install-steps.d.ts +17 -0
- package/dist/surface/cli/install-steps.js +156 -0
- package/dist/surface/cli/json-list.d.ts +4 -0
- package/dist/surface/cli/json-list.js +17 -0
- package/dist/surface/cli/last-sleep.d.ts +10 -0
- package/dist/surface/cli/last-sleep.js +75 -0
- package/dist/surface/cli/learn.d.ts +4 -0
- package/dist/surface/cli/learn.js +94 -0
- package/dist/surface/cli/maintenance.d.ts +6 -0
- package/dist/surface/cli/maintenance.js +192 -0
- package/dist/surface/cli/memory-import.d.ts +3 -0
- package/dist/surface/cli/memory-import.js +252 -0
- package/dist/surface/cli/memory-writes.d.ts +65 -0
- package/dist/surface/cli/memory-writes.js +173 -0
- package/dist/surface/cli/notes.d.ts +2 -0
- package/dist/surface/cli/notes.js +40 -0
- package/dist/surface/cli/object-verbs.d.ts +42 -0
- package/dist/surface/cli/object-verbs.js +64 -0
- package/dist/surface/cli/open-browser.js +37 -0
- package/dist/surface/cli/output.js +8 -0
- package/dist/surface/cli/owner-validation.d.ts +19 -0
- package/dist/surface/cli/owner-validation.js +34 -0
- package/dist/surface/cli/playbooks.d.ts +4 -0
- package/dist/surface/cli/playbooks.js +189 -0
- package/dist/surface/cli/predictions.d.ts +3 -0
- package/dist/surface/cli/predictions.js +177 -0
- package/dist/surface/cli/print.d.ts +24 -0
- package/dist/surface/cli/print.js +91 -0
- package/dist/surface/cli/projects.d.ts +3 -0
- package/dist/surface/cli/projects.js +127 -0
- package/dist/surface/cli/quality-repair-once.d.ts +4 -0
- package/dist/surface/cli/quality-repair-once.js +42 -0
- package/dist/surface/cli/recall-block.d.ts +46 -0
- package/dist/surface/cli/recall-block.js +173 -0
- package/dist/surface/cli/recall-flags.d.ts +32 -0
- package/dist/surface/cli/recall-flags.js +141 -0
- package/dist/surface/cli/recall.d.ts +9 -0
- package/dist/surface/cli/recall.js +143 -0
- package/dist/surface/cli/refine-llm.d.ts +35 -0
- package/dist/surface/cli/refine-llm.js +134 -0
- package/dist/surface/cli/rejections.d.ts +5 -0
- package/dist/surface/cli/rejections.js +105 -0
- package/dist/surface/cli/remember.d.ts +4 -0
- package/dist/surface/cli/remember.js +223 -0
- package/dist/surface/cli/run-watched.d.ts +15 -0
- package/dist/surface/cli/run-watched.js +57 -0
- package/dist/surface/cli/scheduler.d.ts +26 -0
- package/dist/surface/cli/scheduler.js +145 -0
- package/dist/surface/cli/serve.d.ts +5 -0
- package/dist/surface/cli/serve.js +103 -0
- package/dist/surface/cli/server-nearest.d.ts +5 -0
- package/dist/surface/cli/server-nearest.js +45 -0
- package/dist/surface/cli/session.d.ts +3 -0
- package/dist/surface/cli/session.js +157 -0
- package/dist/surface/cli/setup.d.ts +3 -0
- package/dist/surface/cli/setup.js +180 -0
- package/dist/surface/cli/shared.d.ts +34 -0
- package/dist/surface/cli/shared.js +72 -0
- package/dist/surface/cli/slack.d.ts +3 -0
- package/dist/surface/cli/slack.js +128 -0
- package/dist/surface/cli/sleep-render.d.ts +7 -0
- package/dist/surface/cli/sleep-render.js +80 -0
- package/dist/surface/cli/sleep.d.ts +6 -0
- package/dist/surface/cli/sleep.js +147 -0
- package/dist/surface/cli/status.d.ts +18 -0
- package/dist/surface/cli/status.js +386 -0
- package/dist/surface/cli/stdin.d.ts +23 -0
- package/dist/surface/cli/stdin.js +112 -0
- package/dist/surface/cli/support-bundle.d.ts +12 -0
- package/dist/surface/cli/support-bundle.js +357 -0
- package/dist/surface/cli/trace.d.ts +3 -0
- package/dist/surface/cli/trace.js +196 -0
- package/dist/surface/cli/transfer.d.ts +7 -0
- package/dist/surface/cli/transfer.js +150 -0
- package/dist/surface/cli/usage.js +82 -0
- package/dist/surface/cli/verb-row.d.ts +46 -0
- package/dist/surface/cli/verb-row.js +13 -0
- package/dist/surface/cli/verbs/health.js +306 -0
- package/dist/surface/cli/verbs/memory.js +315 -0
- package/dist/surface/cli/verbs/objects.js +319 -0
- package/dist/surface/cli/verbs/sessions.js +413 -0
- package/dist/surface/cli/verbs.d.ts +93 -0
- package/dist/surface/cli/verbs.js +19 -0
- package/dist/surface/cli/versioned-verbs.d.ts +48 -0
- package/dist/surface/cli/versioned-verbs.js +93 -0
- package/dist/surface/connectors/dlq.d.ts +79 -0
- package/dist/surface/connectors/dlq.js +88 -0
- package/dist/surface/connectors/github/backfill.d.ts +28 -0
- package/dist/surface/connectors/github/backfill.js +247 -0
- package/dist/surface/connectors/github/deletion.d.ts +22 -0
- package/dist/surface/connectors/github/deletion.js +19 -0
- package/dist/surface/connectors/github/dlq.d.ts +33 -0
- package/dist/surface/connectors/github/dlq.js +61 -0
- package/dist/surface/connectors/github/ingest.d.ts +27 -0
- package/dist/surface/connectors/github/ingest.js +65 -0
- package/dist/surface/connectors/github/octokit-client.d.ts +25 -0
- package/dist/surface/connectors/github/octokit-client.js +87 -0
- package/dist/surface/connectors/github/ratelimit.d.ts +13 -0
- package/dist/surface/connectors/github/ratelimit.js +24 -0
- package/dist/surface/connectors/github/scope.d.ts +5 -0
- package/dist/surface/connectors/github/scope.js +10 -0
- package/dist/surface/connectors/github/signature.d.ts +27 -0
- package/dist/surface/connectors/github/signature.js +41 -0
- package/dist/surface/connectors/github/transform.d.ts +7 -0
- package/dist/surface/connectors/github/transform.js +67 -0
- package/dist/surface/connectors/github/types.d.ts +82 -0
- package/dist/surface/connectors/github/types.js +91 -0
- package/dist/surface/connectors/github/webhook.d.ts +11 -0
- package/dist/surface/connectors/github/webhook.js +287 -0
- package/dist/surface/connectors/hmac.d.ts +8 -0
- package/dist/surface/connectors/hmac.js +17 -0
- package/dist/surface/connectors/ingest.d.ts +25 -0
- package/dist/surface/connectors/ingest.js +35 -0
- package/dist/surface/connectors/previous-secret.d.ts +18 -0
- package/dist/surface/connectors/previous-secret.js +51 -0
- package/dist/surface/connectors/slack/backfill.d.ts +30 -0
- package/dist/surface/connectors/slack/backfill.js +47 -0
- package/dist/surface/connectors/slack/deletion.d.ts +16 -0
- package/dist/surface/connectors/slack/deletion.js +25 -0
- package/dist/surface/connectors/slack/dlq.d.ts +23 -0
- package/dist/surface/connectors/slack/dlq.js +101 -0
- package/dist/surface/connectors/slack/ingest.d.ts +15 -0
- package/dist/surface/connectors/slack/ingest.js +20 -0
- package/dist/surface/connectors/slack/scope.d.ts +10 -0
- package/dist/surface/connectors/slack/scope.js +7 -0
- package/dist/surface/connectors/slack/signature.d.ts +24 -0
- package/dist/surface/connectors/slack/signature.js +32 -0
- package/dist/surface/connectors/slack/transform.d.ts +16 -0
- package/dist/surface/connectors/slack/transform.js +34 -0
- package/dist/surface/connectors/slack/types.d.ts +33 -0
- package/dist/surface/connectors/slack/types.js +22 -0
- package/dist/surface/connectors/slack/web-client.js +67 -0
- package/dist/surface/connectors/slack/webhook.d.ts +8 -0
- package/dist/surface/connectors/slack/webhook.js +232 -0
- package/dist/surface/connectors/slack/workspaces.d.ts +11 -0
- package/dist/surface/connectors/slack/workspaces.js +13 -0
- package/dist/surface/connectors/tenant-route.d.ts +12 -0
- package/dist/surface/connectors/tenant-route.js +9 -0
- package/dist/surface/dashboard/dashboard-actions.d.ts +25 -0
- package/dist/surface/dashboard/dashboard-actions.js +88 -0
- package/dist/surface/dashboard/dashboard-page.d.ts +11 -0
- package/dist/surface/dashboard/dashboard-page.js +64 -0
- package/dist/surface/dashboard/dashboard-params.d.ts +26 -0
- package/dist/surface/dashboard/dashboard-params.js +128 -0
- package/dist/surface/dashboard/dashboard.d.ts +15 -0
- package/dist/surface/dashboard/dashboard.js +74 -0
- package/dist/surface/dashboard/static-file.d.ts +31 -0
- package/dist/surface/dashboard/static-file.js +134 -0
- package/dist/surface/entry-infra.d.ts +14 -0
- package/dist/surface/entry-infra.js +19 -0
- package/dist/surface/hooks-install/codex-wrapper.d.ts +18 -0
- package/dist/surface/hooks-install/codex-wrapper.js +282 -0
- package/dist/surface/hooks-install/copilot.d.ts +9 -0
- package/dist/surface/hooks-install/copilot.js +166 -0
- package/dist/surface/hooks-install/detect.d.ts +14 -0
- package/dist/surface/hooks-install/detect.js +97 -0
- package/dist/surface/hooks-install/instructions.d.ts +7 -0
- package/dist/surface/hooks-install/instructions.js +15 -0
- package/dist/surface/hooks-install/json-hooks.d.ts +21 -0
- package/dist/surface/hooks-install/json-hooks.js +90 -0
- package/dist/surface/hooks-install/opencode.d.ts +6 -0
- package/dist/surface/hooks-install/opencode.js +50 -0
- package/dist/surface/hooks-install/rules/claude-hooks.d.ts +15 -0
- package/dist/surface/hooks-install/rules/claude-hooks.js +172 -0
- package/dist/surface/hooks-install/rules/codex-hooks.d.ts +9 -0
- package/dist/surface/hooks-install/rules/codex-hooks.js +59 -0
- package/dist/surface/hooks-install/rules/codex-wrapper.d.ts +67 -0
- package/dist/surface/hooks-install/rules/codex-wrapper.js +127 -0
- package/dist/surface/hooks-install/rules/copilot.d.ts +115 -0
- package/dist/surface/hooks-install/rules/copilot.js +206 -0
- package/dist/surface/hooks-install/rules/hook-blocks.d.ts +27 -0
- package/dist/surface/hooks-install/rules/hook-blocks.js +151 -0
- package/dist/surface/hooks-install/rules/hook-handlers.d.ts +18 -0
- package/dist/surface/hooks-install/rules/hook-handlers.js +63 -0
- package/dist/surface/hooks-install/rules/install-plan.d.ts +17 -0
- package/dist/surface/hooks-install/rules/install-plan.js +37 -0
- package/dist/surface/hooks-install/rules/json-hooks.d.ts +59 -0
- package/dist/surface/hooks-install/rules/json-hooks.js +100 -0
- package/dist/surface/hooks-install/rules/opencode.d.ts +27 -0
- package/dist/surface/hooks-install/rules/opencode.js +115 -0
- package/dist/surface/hooks-install/rules/shared.d.ts +43 -0
- package/dist/surface/hooks-install/rules/shared.js +47 -0
- package/dist/surface/http/http-util.d.ts +46 -0
- package/dist/surface/http/http-util.js +126 -0
- package/dist/surface/importers/core.d.ts +75 -0
- package/dist/surface/importers/core.js +129 -0
- package/dist/surface/importers/markdown-parse.d.ts +27 -0
- package/dist/surface/importers/markdown-parse.js +109 -0
- package/dist/surface/importers/markdown.d.ts +3 -0
- package/dist/surface/importers/markdown.js +87 -0
- package/dist/surface/importers/sources.d.ts +7 -0
- package/dist/surface/importers/sources.js +208 -0
- package/dist/surface/importers/vault.d.ts +15 -0
- package/dist/surface/importers/vault.js +303 -0
- package/dist/surface/mcp/admin-tools.d.ts +8 -0
- package/dist/surface/mcp/admin-tools.js +117 -0
- package/dist/surface/mcp/framing.d.ts +22 -0
- package/dist/surface/mcp/framing.js +69 -0
- package/dist/surface/mcp/json-rpc.d.ts +30 -0
- package/dist/surface/mcp/json-rpc.js +17 -0
- package/dist/surface/mcp/memory-tools.d.ts +5 -0
- package/dist/surface/mcp/memory-tools.js +59 -0
- package/dist/surface/mcp/protocol.d.ts +119 -0
- package/dist/surface/mcp/protocol.js +100 -0
- package/dist/surface/mcp/recall-tools.d.ts +6 -0
- package/dist/surface/mcp/recall-tools.js +111 -0
- package/dist/surface/mcp/request.d.ts +16 -0
- package/dist/surface/mcp/request.js +187 -0
- package/dist/surface/mcp/server.d.ts +8 -0
- package/dist/surface/mcp/server.js +35 -0
- package/dist/surface/mcp/shared-gate.d.ts +5 -0
- package/dist/surface/mcp/shared-gate.js +24 -0
- package/dist/surface/mcp/stdio.d.ts +8 -0
- package/dist/surface/mcp/stdio.js +262 -0
- package/dist/surface/mcp/tool-args.d.ts +35 -0
- package/dist/surface/mcp/tool-args.js +118 -0
- package/dist/surface/mcp/tool-recall.d.ts +15 -0
- package/dist/surface/mcp/tool-recall.js +145 -0
- package/dist/surface/mcp/tool-text.d.ts +28 -0
- package/dist/surface/mcp/tool-text.js +145 -0
- package/dist/surface/mcp/tools.js +306 -0
- package/dist/surface/open-store.d.ts +15 -0
- package/dist/surface/open-store.js +40 -0
- package/dist/surface/render/recall-text.d.ts +33 -0
- package/dist/surface/render/recall-text.js +47 -0
- package/dist/surface/render/sleep-events.d.ts +6 -0
- package/dist/surface/render/sleep-events.js +141 -0
- package/dist/surface/server/api-key.d.ts +33 -0
- package/dist/surface/server/api-key.js +112 -0
- package/dist/surface/server/auth.d.ts +49 -0
- package/dist/surface/server/auth.js +370 -0
- package/dist/surface/server/boot.d.ts +15 -0
- package/dist/surface/server/boot.js +346 -0
- package/dist/surface/server/client-ip.d.ts +34 -0
- package/dist/surface/server/client-ip.js +148 -0
- package/dist/surface/server/cursor.d.ts +25 -0
- package/dist/surface/server/cursor.js +26 -0
- package/dist/surface/server/dashboard-listener.d.ts +31 -0
- package/dist/surface/server/dashboard-listener.js +110 -0
- package/dist/surface/server/dashboard-reader-thread.d.ts +2 -0
- package/dist/surface/server/dashboard-reader-thread.js +104 -0
- package/dist/surface/server/dashboard-reader.d.ts +74 -0
- package/dist/surface/server/dashboard-reader.js +79 -0
- package/dist/surface/server/dashboard-routes.d.ts +27 -0
- package/dist/surface/server/dashboard-routes.js +74 -0
- package/dist/surface/server/dashboard-session.d.ts +33 -0
- package/dist/surface/server/dashboard-session.js +96 -0
- package/dist/surface/server/dashboard-types.d.ts +32 -0
- package/dist/surface/server/dashboard-types.js +4 -0
- package/dist/surface/server/deadline.d.ts +12 -0
- package/dist/surface/server/deadline.js +45 -0
- package/dist/surface/server/defaults.js +6 -0
- package/dist/surface/server/failure-replies.d.ts +12 -0
- package/dist/surface/server/failure-replies.js +114 -0
- package/dist/surface/server/failure-reply.d.ts +13 -0
- package/dist/surface/server/failure-reply.js +24 -0
- package/dist/surface/server/key-check-bounds.d.ts +18 -0
- package/dist/surface/server/key-check-bounds.js +128 -0
- package/dist/surface/server/lifecycle.d.ts +13 -0
- package/dist/surface/server/lifecycle.js +54 -0
- package/dist/surface/server/local-key.d.ts +20 -0
- package/dist/surface/server/local-key.js +61 -0
- package/dist/surface/server/loopback.d.ts +8 -0
- package/dist/surface/server/loopback.js +27 -0
- package/dist/surface/server/mcp-http.d.ts +9 -0
- package/dist/surface/server/mcp-http.js +239 -0
- package/dist/surface/server/prompt-hook-context.d.ts +4 -0
- package/dist/surface/server/prompt-hook-context.js +32 -0
- package/dist/surface/server/rate-limit.d.ts +30 -0
- package/dist/surface/server/rate-limit.js +93 -0
- package/dist/surface/server/rate-limits.d.ts +11 -0
- package/dist/surface/server/rate-limits.js +74 -0
- package/dist/surface/server/ready.d.ts +9 -0
- package/dist/surface/server/ready.js +34 -0
- package/dist/surface/server/request.d.ts +56 -0
- package/dist/surface/server/request.js +218 -0
- package/dist/surface/server/route-checks.d.ts +11 -0
- package/dist/surface/server/route-checks.js +55 -0
- package/dist/surface/server/route-lookup.d.ts +28 -0
- package/dist/surface/server/route-lookup.js +44 -0
- package/dist/surface/server/route-table.d.ts +62 -0
- package/dist/surface/server/route-table.js +375 -0
- package/dist/surface/server/routes/admin.d.ts +9 -0
- package/dist/surface/server/routes/admin.js +186 -0
- package/dist/surface/server/routes/customer-notes.d.ts +3 -0
- package/dist/surface/server/routes/customer-notes.js +29 -0
- package/dist/surface/server/routes/decisions.d.ts +3 -0
- package/dist/surface/server/routes/decisions.js +46 -0
- package/dist/surface/server/routes/incidents.d.ts +3 -0
- package/dist/surface/server/routes/incidents.js +46 -0
- package/dist/surface/server/routes/kind-routes.d.ts +26 -0
- package/dist/surface/server/routes/kind-routes.js +32 -0
- package/dist/surface/server/routes/memories.d.ts +13 -0
- package/dist/surface/server/routes/memories.js +159 -0
- package/dist/surface/server/routes/object-routes.d.ts +37 -0
- package/dist/surface/server/routes/object-routes.js +83 -0
- package/dist/surface/server/routes/policies.d.ts +3 -0
- package/dist/surface/server/routes/policies.js +47 -0
- package/dist/surface/server/routes/predictions.d.ts +3 -0
- package/dist/surface/server/routes/predictions.js +119 -0
- package/dist/surface/server/routes/processes.d.ts +3 -0
- package/dist/surface/server/routes/processes.js +53 -0
- package/dist/surface/server/routes/project-briefs.d.ts +3 -0
- package/dist/surface/server/routes/project-briefs.js +42 -0
- package/dist/surface/server/routes/recall.d.ts +6 -0
- package/dist/surface/server/routes/recall.js +107 -0
- package/dist/surface/server/routes/skills.d.ts +3 -0
- package/dist/surface/server/routes/skills.js +37 -0
- package/dist/surface/server/routes/vectors.d.ts +3 -0
- package/dist/surface/server/routes/vectors.js +76 -0
- package/dist/surface/server/server-detect.d.ts +55 -0
- package/dist/surface/server/server-detect.js +317 -0
- package/dist/surface/server/sleep-child.js +82 -0
- package/dist/surface/server/sleep-offload.d.ts +42 -0
- package/dist/surface/server/sleep-offload.js +141 -0
- package/dist/surface/server/tls.d.ts +15 -0
- package/dist/surface/server/tls.js +53 -0
- package/dist/surface/server/types.d.ts +240 -0
- package/dist/surface/server/validation.d.ts +56 -0
- package/dist/surface/server/validation.js +154 -0
- package/dist/surface/testing-kit.d.ts +2 -0
- package/dist/surface/testing-kit.js +5 -0
- package/dist-ui/assets/index-DWo8WuPW.js +33 -0
- package/dist-ui/index.html +1 -1
- package/extensions/openclaw-plugin/index.ts +5 -5
- package/extensions/openclaw-plugin/openclaw.plugin.json +1 -1
- package/extensions/openclaw-plugin/package.json +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +15 -8
- package/dist/agent-memories/apply.d.ts +0 -40
- package/dist/agent-memories/apply.js +0 -275
- package/dist/agent-memories/claude-code.d.ts +0 -20
- package/dist/agent-memories/claude-code.js +0 -189
- package/dist/agent-memories/codex.js +0 -47
- package/dist/agent-memories/copilot.js +0 -111
- package/dist/agent-memories/files.d.ts +0 -37
- package/dist/agent-memories/files.js +0 -90
- package/dist/agent-memories/folder-store.d.ts +0 -17
- package/dist/agent-memories/folder-store.js +0 -44
- package/dist/agent-memories/gemini.js +0 -104
- package/dist/agent-memories/git.d.ts +0 -8
- package/dist/agent-memories/git.js +0 -11
- package/dist/agent-memories/keys.d.ts +0 -9
- package/dist/agent-memories/keys.js +0 -21
- package/dist/agent-memories/legacy.d.ts +0 -20
- package/dist/agent-memories/legacy.js +0 -69
- package/dist/agent-memories/markdown.d.ts +0 -13
- package/dist/agent-memories/markdown.js +0 -123
- package/dist/agent-memories/openclaw.js +0 -45
- package/dist/agent-memories/plan.d.ts +0 -78
- package/dist/agent-memories/plan.js +0 -133
- package/dist/agent-memories/project-folds.d.ts +0 -10
- package/dist/agent-memories/project-folds.js +0 -35
- package/dist/agent-memories/qwen-code.js +0 -50
- package/dist/agent-memories/report.d.ts +0 -56
- package/dist/agent-memories/report.js +0 -123
- package/dist/agent-memories/source.d.ts +0 -22
- package/dist/agent-memories/source.js +0 -41
- package/dist/agent-memories/sync.d.ts +0 -40
- package/dist/agent-memories/sync.js +0 -402
- package/dist/agent-memories/types.d.ts +0 -40
- package/dist/api/busy.d.ts +0 -2
- package/dist/api/busy.js +0 -2
- package/dist/api/cli-surface.d.ts +0 -6
- package/dist/api/cli-surface.js +0 -6
- package/dist/api/config-of.d.ts +0 -5
- package/dist/api/config-of.js +0 -6
- package/dist/api/context-auto.d.ts +0 -6
- package/dist/api/context-auto.js +0 -41
- package/dist/api/context-render.d.ts +0 -52
- package/dist/api/context-render.js +0 -213
- package/dist/api/context-select.d.ts +0 -65
- package/dist/api/context-select.js +0 -321
- package/dist/api/context-types.d.ts +0 -109
- package/dist/api/context-types.js +0 -3
- package/dist/api/context.d.ts +0 -16
- package/dist/api/context.js +0 -506
- package/dist/api/continuity.d.ts +0 -50
- package/dist/api/continuity.js +0 -64
- package/dist/api/objects/cards.d.ts +0 -39
- package/dist/api/objects/cards.js +0 -50
- package/dist/api/recall/render.d.ts +0 -39
- package/dist/api/recall/render.js +0 -60
- package/dist/capture/caller-session.d.ts +0 -19
- package/dist/capture/caller-session.js +0 -57
- package/dist/capture/capture-error.d.ts +0 -14
- package/dist/capture/capture-error.js +0 -67
- package/dist/capture/codex-patch.d.ts +0 -12
- package/dist/capture/codex-patch.js +0 -78
- package/dist/capture/command.d.ts +0 -46
- package/dist/capture/command.js +0 -214
- package/dist/capture/compact-resume-caller.d.ts +0 -11
- package/dist/capture/compact-resume-caller.js +0 -42
- package/dist/capture/compact.d.ts +0 -27
- package/dist/capture/compact.js +0 -247
- package/dist/capture/compaction-items-caller.d.ts +0 -16
- package/dist/capture/compaction-items-caller.js +0 -31
- package/dist/capture/compaction-record.d.ts +0 -31
- package/dist/capture/compaction-record.js +0 -124
- package/dist/capture/compaction-spool.d.ts +0 -56
- package/dist/capture/compaction-spool.js +0 -514
- package/dist/capture/copilot-transcript.d.ts +0 -26
- package/dist/capture/copilot-transcript.js +0 -57
- package/dist/capture/extract.d.ts +0 -12
- package/dist/capture/extract.js +0 -188
- package/dist/capture/failure-caller.d.ts +0 -21
- package/dist/capture/failure-caller.js +0 -90
- package/dist/capture/failure-reading.d.ts +0 -49
- package/dist/capture/failure-reading.js +0 -95
- package/dist/capture/handoff-evidence.d.ts +0 -5
- package/dist/capture/handoff-evidence.js +0 -31
- package/dist/capture/pre-compact-caller.d.ts +0 -16
- package/dist/capture/pre-compact-caller.js +0 -47
- package/dist/capture/session-digest.d.ts +0 -85
- package/dist/capture/session-digest.js +0 -550
- package/dist/capture/session-end-caller.d.ts +0 -24
- package/dist/capture/session-end-caller.js +0 -43
- package/dist/capture/session-texts.d.ts +0 -18
- package/dist/capture/session-texts.js +0 -57
- package/dist/capture/session-worker.d.ts +0 -15
- package/dist/capture/session-worker.js +0 -236
- package/dist/capture/share-scrub.d.ts +0 -3
- package/dist/capture/share-scrub.js +0 -8
- package/dist/capture/transcript.d.ts +0 -47
- package/dist/capture/transcript.js +0 -208
- package/dist/capture/working-state.d.ts +0 -29
- package/dist/capture/working-state.js +0 -161
- package/dist/cli/api-context.d.ts +0 -15
- package/dist/cli/api-context.js +0 -49
- package/dist/cli/audit-prune.d.ts +0 -3
- package/dist/cli/audit-prune.js +0 -14
- package/dist/cli/audit.d.ts +0 -3
- package/dist/cli/audit.js +0 -187
- package/dist/cli/auth.d.ts +0 -3
- package/dist/cli/auth.js +0 -176
- package/dist/cli/briefs.d.ts +0 -2
- package/dist/cli/briefs.js +0 -77
- package/dist/cli/card.d.ts +0 -4
- package/dist/cli/card.js +0 -325
- package/dist/cli/client.d.ts +0 -40
- package/dist/cli/client.js +0 -171
- package/dist/cli/compact-resume-payload.d.ts +0 -11
- package/dist/cli/compact-resume-payload.js +0 -47
- package/dist/cli/context.d.ts +0 -3
- package/dist/cli/context.js +0 -235
- package/dist/cli/continuity.d.ts +0 -7
- package/dist/cli/continuity.js +0 -446
- package/dist/cli/curate.d.ts +0 -16
- package/dist/cli/curate.js +0 -518
- package/dist/cli/dag.d.ts +0 -5
- package/dist/cli/dag.js +0 -203
- package/dist/cli/decisions.d.ts +0 -3
- package/dist/cli/decisions.js +0 -116
- package/dist/cli/eval.d.ts +0 -3
- package/dist/cli/eval.js +0 -221
- package/dist/cli/exit.d.ts +0 -9
- package/dist/cli/exit.js +0 -19
- package/dist/cli/explain.d.ts +0 -3
- package/dist/cli/explain.js +0 -172
- package/dist/cli/flag-values.d.ts +0 -30
- package/dist/cli/flag-values.js +0 -121
- package/dist/cli/flags.d.ts +0 -15
- package/dist/cli/flags.js +0 -34
- package/dist/cli/github.d.ts +0 -20
- package/dist/cli/github.js +0 -196
- package/dist/cli/goals.d.ts +0 -3
- package/dist/cli/goals.js +0 -180
- package/dist/cli/graph.d.ts +0 -3
- package/dist/cli/graph.js +0 -87
- package/dist/cli/hook-runtime.d.ts +0 -53
- package/dist/cli/hook-runtime.js +0 -137
- package/dist/cli/incidents.d.ts +0 -3
- package/dist/cli/incidents.js +0 -112
- package/dist/cli/init.js +0 -358
- package/dist/cli/install-steps.d.ts +0 -17
- package/dist/cli/install-steps.js +0 -133
- package/dist/cli/last-sleep.d.ts +0 -11
- package/dist/cli/last-sleep.js +0 -78
- package/dist/cli/maintenance.d.ts +0 -6
- package/dist/cli/maintenance.js +0 -193
- package/dist/cli/notes.d.ts +0 -2
- package/dist/cli/notes.js +0 -44
- package/dist/cli/object-verbs.d.ts +0 -40
- package/dist/cli/object-verbs.js +0 -63
- package/dist/cli/open-browser.js +0 -35
- package/dist/cli/output.js +0 -7
- package/dist/cli/owner-validation.d.ts +0 -18
- package/dist/cli/owner-validation.js +0 -33
- package/dist/cli/playbooks.d.ts +0 -4
- package/dist/cli/playbooks.js +0 -204
- package/dist/cli/predictions.d.ts +0 -3
- package/dist/cli/predictions.js +0 -170
- package/dist/cli/print.d.ts +0 -15
- package/dist/cli/print.js +0 -85
- package/dist/cli/projects.d.ts +0 -3
- package/dist/cli/projects.js +0 -118
- package/dist/cli/quality-repair-once.d.ts +0 -3
- package/dist/cli/quality-repair-once.js +0 -38
- package/dist/cli/recall.d.ts +0 -3
- package/dist/cli/recall.js +0 -470
- package/dist/cli/refine-llm.d.ts +0 -46
- package/dist/cli/refine-llm.js +0 -138
- package/dist/cli/remember.d.ts +0 -5
- package/dist/cli/remember.js +0 -435
- package/dist/cli/scheduler.d.ts +0 -25
- package/dist/cli/scheduler.js +0 -113
- package/dist/cli/serve.d.ts +0 -5
- package/dist/cli/serve.js +0 -89
- package/dist/cli/session-hooks.d.ts +0 -14
- package/dist/cli/session-hooks.js +0 -635
- package/dist/cli/setup.d.ts +0 -5
- package/dist/cli/setup.js +0 -553
- package/dist/cli/shared.d.ts +0 -25
- package/dist/cli/shared.js +0 -130
- package/dist/cli/slack.d.ts +0 -3
- package/dist/cli/slack.js +0 -134
- package/dist/cli/sleep-render.d.ts +0 -6
- package/dist/cli/sleep-render.js +0 -67
- package/dist/cli/sleep.d.ts +0 -5
- package/dist/cli/sleep.js +0 -122
- package/dist/cli/status.d.ts +0 -15
- package/dist/cli/status.js +0 -361
- package/dist/cli/stdin.d.ts +0 -22
- package/dist/cli/stdin.js +0 -110
- package/dist/cli/transfer.d.ts +0 -10
- package/dist/cli/transfer.js +0 -439
- package/dist/cli/usage.js +0 -81
- package/dist/cli/verb-row.d.ts +0 -34
- package/dist/cli/verb-row.js +0 -6
- package/dist/cli/verbs/health.js +0 -234
- package/dist/cli/verbs/memory.js +0 -238
- package/dist/cli/verbs/objects.js +0 -263
- package/dist/cli/verbs/sessions.js +0 -314
- package/dist/cli/verbs.d.ts +0 -81
- package/dist/cli/verbs.js +0 -7
- package/dist/cli/versioned-verbs.d.ts +0 -52
- package/dist/cli/versioned-verbs.js +0 -89
- package/dist/connectors/dlq.d.ts +0 -80
- package/dist/connectors/dlq.js +0 -69
- package/dist/connectors/github/backfill.d.ts +0 -28
- package/dist/connectors/github/backfill.js +0 -220
- package/dist/connectors/github/deletion.d.ts +0 -23
- package/dist/connectors/github/deletion.js +0 -20
- package/dist/connectors/github/dlq.d.ts +0 -32
- package/dist/connectors/github/dlq.js +0 -52
- package/dist/connectors/github/ingest.d.ts +0 -28
- package/dist/connectors/github/ingest.js +0 -63
- package/dist/connectors/github/octokit-client.d.ts +0 -25
- package/dist/connectors/github/octokit-client.js +0 -80
- package/dist/connectors/github/ratelimit.d.ts +0 -13
- package/dist/connectors/github/ratelimit.js +0 -24
- package/dist/connectors/github/scope.d.ts +0 -6
- package/dist/connectors/github/scope.js +0 -11
- package/dist/connectors/github/signature.d.ts +0 -27
- package/dist/connectors/github/signature.js +0 -43
- package/dist/connectors/github/tenant-routing.d.ts +0 -13
- package/dist/connectors/github/tenant-routing.js +0 -23
- package/dist/connectors/github/transform.d.ts +0 -7
- package/dist/connectors/github/transform.js +0 -72
- package/dist/connectors/github/types.d.ts +0 -83
- package/dist/connectors/github/types.js +0 -92
- package/dist/connectors/github/webhook.d.ts +0 -7
- package/dist/connectors/github/webhook.js +0 -257
- package/dist/connectors/ingest.d.ts +0 -12
- package/dist/connectors/ingest.js +0 -28
- package/dist/connectors/slack/backfill.d.ts +0 -29
- package/dist/connectors/slack/backfill.js +0 -45
- package/dist/connectors/slack/deletion.d.ts +0 -16
- package/dist/connectors/slack/deletion.js +0 -27
- package/dist/connectors/slack/dlq.d.ts +0 -20
- package/dist/connectors/slack/dlq.js +0 -84
- package/dist/connectors/slack/ingest.d.ts +0 -17
- package/dist/connectors/slack/ingest.js +0 -20
- package/dist/connectors/slack/scope.d.ts +0 -10
- package/dist/connectors/slack/scope.js +0 -7
- package/dist/connectors/slack/signature.d.ts +0 -17
- package/dist/connectors/slack/signature.js +0 -28
- package/dist/connectors/slack/tenant-routing.d.ts +0 -7
- package/dist/connectors/slack/tenant-routing.js +0 -21
- package/dist/connectors/slack/transform.d.ts +0 -16
- package/dist/connectors/slack/transform.js +0 -34
- package/dist/connectors/slack/types.d.ts +0 -37
- package/dist/connectors/slack/types.js +0 -22
- package/dist/connectors/slack/web-client.js +0 -63
- package/dist/connectors/slack/webhook.d.ts +0 -7
- package/dist/connectors/slack/webhook.js +0 -182
- package/dist/connectors/slack/workspaces.d.ts +0 -17
- package/dist/connectors/slack/workspaces.js +0 -14
- package/dist/connectors/store.d.ts +0 -8
- package/dist/connectors/store.js +0 -2
- package/dist/consolidate/conflicts.d.ts +0 -10
- package/dist/consolidate/conflicts.js +0 -177
- package/dist/consolidate/dag-summary.d.ts +0 -8
- package/dist/consolidate/dag-summary.js +0 -42
- package/dist/consolidate/dag.d.ts +0 -48
- package/dist/consolidate/dag.js +0 -298
- package/dist/consolidate/decay.d.ts +0 -12
- package/dist/consolidate/decay.js +0 -132
- package/dist/consolidate/dedupe.d.ts +0 -45
- package/dist/consolidate/dedupe.js +0 -116
- package/dist/consolidate/flush-units.d.ts +0 -11
- package/dist/consolidate/flush-units.js +0 -66
- package/dist/consolidate/half-life-migration.d.ts +0 -44
- package/dist/consolidate/half-life-migration.js +0 -119
- package/dist/consolidate/llm-passes.d.ts +0 -3
- package/dist/consolidate/llm-passes.js +0 -166
- package/dist/consolidate/memory-value-weights.d.ts +0 -12
- package/dist/consolidate/memory-value-weights.js +0 -21
- package/dist/consolidate/memory-value.d.ts +0 -65
- package/dist/consolidate/memory-value.js +0 -188
- package/dist/consolidate/merge.d.ts +0 -10
- package/dist/consolidate/merge.js +0 -232
- package/dist/consolidate/overlap-index.d.ts +0 -13
- package/dist/consolidate/overlap-index.js +0 -45
- package/dist/consolidate/physics-pass.d.ts +0 -10
- package/dist/consolidate/physics-pass.js +0 -81
- package/dist/consolidate/replay.d.ts +0 -16
- package/dist/consolidate/replay.js +0 -103
- package/dist/consolidate/run.d.ts +0 -67
- package/dist/consolidate/run.js +0 -40
- package/dist/consolidate/sleep.d.ts +0 -21
- package/dist/consolidate/sleep.js +0 -189
- package/dist/consolidate/trace.d.ts +0 -24
- package/dist/consolidate/trace.js +0 -58
- package/dist/consolidate/traces.d.ts +0 -4
- package/dist/consolidate/traces.js +0 -152
- package/dist/core/ablation.d.ts +0 -31
- package/dist/core/ablation.js +0 -71
- package/dist/core/active-scope.d.ts +0 -9
- package/dist/core/active-scope.js +0 -31
- package/dist/core/agent-memory-tools.d.ts +0 -35
- package/dist/core/agent-memory-tools.js +0 -21
- package/dist/core/ambient.d.ts +0 -47
- package/dist/core/ambient.js +0 -188
- package/dist/core/api-errors.d.ts +0 -49
- package/dist/core/api-errors.js +0 -63
- package/dist/core/capture-contract.d.ts +0 -67
- package/dist/core/capture-contract.js +0 -170
- package/dist/core/card.d.ts +0 -50
- package/dist/core/card.js +0 -29
- package/dist/core/compaction-timing.js +0 -9
- package/dist/core/compare.d.ts +0 -48
- package/dist/core/compare.js +0 -86
- package/dist/core/config.d.ts +0 -161
- package/dist/core/config.js +0 -372
- package/dist/core/cosine.d.ts +0 -6
- package/dist/core/cosine.js +0 -22
- package/dist/core/handoff.d.ts +0 -54
- package/dist/core/handoff.js +0 -84
- package/dist/core/markdown.d.ts +0 -6
- package/dist/core/markdown.js +0 -115
- package/dist/core/memory-audit.d.ts +0 -17
- package/dist/core/memory-audit.js +0 -65
- package/dist/core/memory-quality.d.ts +0 -44
- package/dist/core/memory-quality.js +0 -227
- package/dist/core/memory.d.ts +0 -246
- package/dist/core/memory.js +0 -436
- package/dist/core/merged-row.d.ts +0 -12
- package/dist/core/merged-row.js +0 -43
- package/dist/core/object-types.d.ts +0 -189
- package/dist/core/object-types.js +0 -4
- package/dist/core/package-root.d.ts +0 -5
- package/dist/core/package-root.js +0 -7
- package/dist/core/particle-refresh.d.ts +0 -8
- package/dist/core/particle-refresh.js +0 -22
- package/dist/core/physics-config.d.ts +0 -37
- package/dist/core/physics-config.js +0 -29
- package/dist/core/physics.d.ts +0 -102
- package/dist/core/physics.js +0 -354
- package/dist/core/prediction.d.ts +0 -3
- package/dist/core/prediction.js +0 -6
- package/dist/core/project-identity.d.ts +0 -83
- package/dist/core/project-identity.js +0 -276
- package/dist/core/project-remote.d.ts +0 -16
- package/dist/core/project-remote.js +0 -166
- package/dist/core/prompt-recall.d.ts +0 -38
- package/dist/core/prompt-recall.js +0 -80
- package/dist/core/raw-append-only.d.ts +0 -5
- package/dist/core/raw-append-only.js +0 -7
- package/dist/core/recall-scope.d.ts +0 -91
- package/dist/core/recall-scope.js +0 -165
- package/dist/core/rejection-digest.d.ts +0 -7
- package/dist/core/rejection-digest.js +0 -13
- package/dist/core/salience.d.ts +0 -18
- package/dist/core/salience.js +0 -96
- package/dist/core/search-types.d.ts +0 -106
- package/dist/core/search-types.js +0 -15
- package/dist/core/session-digest-row.d.ts +0 -5
- package/dist/core/session-digest-row.js +0 -6
- package/dist/dashboard/dashboard-actions.d.ts +0 -20
- package/dist/dashboard/dashboard-actions.js +0 -100
- package/dist/dashboard/dashboard-params.d.ts +0 -45
- package/dist/dashboard/dashboard-params.js +0 -127
- package/dist/dashboard/dashboard-queries.d.ts +0 -20
- package/dist/dashboard/dashboard-queries.js +0 -346
- package/dist/dashboard/dashboard-snapshot.d.ts +0 -139
- package/dist/dashboard/dashboard-snapshot.js +0 -312
- package/dist/dashboard/dashboard-types.d.ts +0 -164
- package/dist/dashboard/dashboard-types.js +0 -3
- package/dist/dashboard/dashboard.d.ts +0 -9
- package/dist/dashboard/dashboard.js +0 -427
- package/dist/db/continuity.d.ts +0 -11
- package/dist/db/continuity.js +0 -206
- package/dist/doctor.d.ts +0 -40
- package/dist/doctor.js +0 -452
- package/dist/embeddings/local.d.ts +0 -66
- package/dist/embeddings/local.js +0 -150
- package/dist/embeddings/provider.d.ts +0 -52
- package/dist/embeddings/provider.js +0 -310
- package/dist/embeddings/transformers.d.ts +0 -38
- package/dist/embeddings/transformers.js +0 -106
- package/dist/entry/sqlite-handles.d.ts +0 -10
- package/dist/entry/sqlite-handles.js +0 -9
- package/dist/eval/eval-stats.d.ts +0 -172
- package/dist/eval/eval-stats.js +0 -283
- package/dist/eval/eval-suite.d.ts +0 -73
- package/dist/eval/eval-suite.js +0 -570
- package/dist/eval/eval.d.ts +0 -91
- package/dist/eval/eval.js +0 -173
- package/dist/eval/judgment.d.ts +0 -25
- package/dist/eval/judgment.js +0 -138
- package/dist/eval/repository-t.js +0 -290
- package/dist/graph/delta.d.ts +0 -12
- package/dist/graph/delta.js +0 -101
- package/dist/graph/extract.d.ts +0 -69
- package/dist/graph/extract.js +0 -279
- package/dist/graph/recall.d.ts +0 -50
- package/dist/graph/recall.js +0 -260
- package/dist/graph/stream.d.ts +0 -50
- package/dist/graph/stream.js +0 -186
- package/dist/graph/view.d.ts +0 -63
- package/dist/graph/view.js +0 -298
- package/dist/hooks/codex-session.js +0 -77
- package/dist/hooks/codex-wrapper.d.ts +0 -57
- package/dist/hooks/codex-wrapper.js +0 -294
- package/dist/hooks/copilot.d.ts +0 -94
- package/dist/hooks/copilot.js +0 -312
- package/dist/hooks/hook-blocks.d.ts +0 -27
- package/dist/hooks/hook-blocks.js +0 -154
- package/dist/hooks/json-hooks.d.ts +0 -48
- package/dist/hooks/json-hooks.js +0 -445
- package/dist/hooks/opencode.d.ts +0 -12
- package/dist/hooks/opencode.js +0 -157
- package/dist/hooks/shared.d.ts +0 -62
- package/dist/hooks/shared.js +0 -134
- package/dist/importers/core.d.ts +0 -44
- package/dist/importers/core.js +0 -111
- package/dist/importers/markdown-parse.d.ts +0 -28
- package/dist/importers/markdown-parse.js +0 -107
- package/dist/importers/markdown.d.ts +0 -3
- package/dist/importers/markdown.js +0 -81
- package/dist/importers/sources.d.ts +0 -7
- package/dist/importers/sources.js +0 -194
- package/dist/importers/vault.d.ts +0 -5
- package/dist/importers/vault.js +0 -277
- package/dist/learn/autolearn.d.ts +0 -52
- package/dist/learn/autolearn.js +0 -205
- package/dist/learn/churn-git.d.ts +0 -25
- package/dist/learn/churn-git.js +0 -139
- package/dist/learn/extract.d.ts +0 -20
- package/dist/learn/extract.js +0 -132
- package/dist/learn/forward-claim-detector.d.ts +0 -24
- package/dist/learn/forward-claim-detector.js +0 -81
- package/dist/learn/invalidation.d.ts +0 -72
- package/dist/learn/invalidation.js +0 -446
- package/dist/learn/roots.d.ts +0 -3
- package/dist/learn/roots.js +0 -5
- package/dist/mcp/admin-tools.d.ts +0 -8
- package/dist/mcp/admin-tools.js +0 -107
- package/dist/mcp/format.d.ts +0 -27
- package/dist/mcp/format.js +0 -140
- package/dist/mcp/framing.d.ts +0 -21
- package/dist/mcp/framing.js +0 -62
- package/dist/mcp/memory-tools.d.ts +0 -5
- package/dist/mcp/memory-tools.js +0 -70
- package/dist/mcp/protocol.d.ts +0 -84
- package/dist/mcp/protocol.js +0 -62
- package/dist/mcp/recall-tools.d.ts +0 -6
- package/dist/mcp/recall-tools.js +0 -234
- package/dist/mcp/request.d.ts +0 -9
- package/dist/mcp/request.js +0 -166
- package/dist/mcp/server.d.ts +0 -10
- package/dist/mcp/server.js +0 -35
- package/dist/mcp/session-state.d.ts +0 -12
- package/dist/mcp/session-state.js +0 -29
- package/dist/mcp/shared-gate.d.ts +0 -5
- package/dist/mcp/shared-gate.js +0 -23
- package/dist/mcp/stdio.d.ts +0 -7
- package/dist/mcp/stdio.js +0 -206
- package/dist/mcp/tool-args.d.ts +0 -24
- package/dist/mcp/tool-args.js +0 -87
- package/dist/mcp/tools.js +0 -320
- package/dist/objects/customer-notes.d.ts +0 -46
- package/dist/objects/customer-notes.js +0 -77
- package/dist/objects/decisions.d.ts +0 -49
- package/dist/objects/decisions.js +0 -69
- package/dist/objects/descriptor.d.ts +0 -52
- package/dist/objects/descriptor.js +0 -5
- package/dist/objects/fields.d.ts +0 -18
- package/dist/objects/fields.js +0 -25
- package/dist/objects/incidents.d.ts +0 -43
- package/dist/objects/incidents.js +0 -95
- package/dist/objects/lifecycle.d.ts +0 -23
- package/dist/objects/lifecycle.js +0 -94
- package/dist/objects/policies.d.ts +0 -56
- package/dist/objects/policies.js +0 -99
- package/dist/objects/processes.d.ts +0 -49
- package/dist/objects/processes.js +0 -97
- package/dist/objects/project-briefs.d.ts +0 -62
- package/dist/objects/project-briefs.js +0 -187
- package/dist/objects/skills.d.ts +0 -49
- package/dist/objects/skills.js +0 -105
- package/dist/postinstall.d.ts +0 -2
- package/dist/postinstall.js +0 -96
- package/dist/predictions/planning-fallacy.d.ts +0 -65
- package/dist/predictions/planning-fallacy.js +0 -76
- package/dist/rerankers/clef.d.ts +0 -31
- package/dist/rerankers/clef.js +0 -178
- package/dist/rerankers/cross-encoder.d.ts +0 -34
- package/dist/rerankers/cross-encoder.js +0 -105
- package/dist/rerankers/index.d.ts +0 -4
- package/dist/rerankers/index.js +0 -26
- package/dist/rerankers/jev.d.ts +0 -18
- package/dist/rerankers/jev.js +0 -112
- package/dist/rerankers/llm.d.ts +0 -9
- package/dist/rerankers/llm.js +0 -88
- package/dist/rerankers/outage-warning.d.ts +0 -10
- package/dist/rerankers/outage-warning.js +0 -34
- package/dist/rerankers/remote.d.ts +0 -6
- package/dist/rerankers/remote.js +0 -28
- package/dist/rerankers/types.d.ts +0 -45
- package/dist/search/as-of.d.ts +0 -10
- package/dist/search/as-of.js +0 -22
- package/dist/search/bm25-search.d.ts +0 -16
- package/dist/search/bm25-search.js +0 -57
- package/dist/search/bm25.d.ts +0 -15
- package/dist/search/bm25.js +0 -54
- package/dist/search/boosts.d.ts +0 -56
- package/dist/search/boosts.js +0 -117
- package/dist/search/breakdown.d.ts +0 -7
- package/dist/search/breakdown.js +0 -21
- package/dist/search/embed-memories.d.ts +0 -17
- package/dist/search/embed-memories.js +0 -415
- package/dist/search/engine.d.ts +0 -11
- package/dist/search/engine.js +0 -14
- package/dist/search/explain.d.ts +0 -25
- package/dist/search/explain.js +0 -32
- package/dist/search/finalize.d.ts +0 -8
- package/dist/search/finalize.js +0 -53
- package/dist/search/fusion.d.ts +0 -27
- package/dist/search/fusion.js +0 -42
- package/dist/search/goal-boost.d.ts +0 -30
- package/dist/search/goal-boost.js +0 -100
- package/dist/search/hybrid-score.d.ts +0 -23
- package/dist/search/hybrid-score.js +0 -76
- package/dist/search/hybrid.d.ts +0 -73
- package/dist/search/hybrid.js +0 -78
- package/dist/search/multihop.d.ts +0 -12
- package/dist/search/multihop.js +0 -42
- package/dist/search/path-context.d.ts +0 -18
- package/dist/search/path-context.js +0 -44
- package/dist/search/physics-search.d.ts +0 -40
- package/dist/search/physics-search.js +0 -199
- package/dist/search/rerank.d.ts +0 -11
- package/dist/search/rerank.js +0 -74
- package/dist/search/rrf.d.ts +0 -24
- package/dist/search/rrf.js +0 -43
- package/dist/search/temporal.d.ts +0 -15
- package/dist/search/temporal.js +0 -48
- package/dist/search/vector.d.ts +0 -50
- package/dist/search/vector.js +0 -126
- package/dist/server/auth.d.ts +0 -41
- package/dist/server/auth.js +0 -323
- package/dist/server/boot.d.ts +0 -8
- package/dist/server/boot.js +0 -421
- package/dist/server/client-ip.d.ts +0 -25
- package/dist/server/client-ip.js +0 -132
- package/dist/server/cursor.d.ts +0 -30
- package/dist/server/cursor.js +0 -65
- package/dist/server/deadline.d.ts +0 -14
- package/dist/server/deadline.js +0 -46
- package/dist/server/defaults.js +0 -5
- package/dist/server/key-check-bounds.d.ts +0 -9
- package/dist/server/key-check-bounds.js +0 -54
- package/dist/server/lifecycle.d.ts +0 -11
- package/dist/server/lifecycle.js +0 -50
- package/dist/server/mcp-http.d.ts +0 -9
- package/dist/server/mcp-http.js +0 -238
- package/dist/server/rate-limit.d.ts +0 -33
- package/dist/server/rate-limit.js +0 -82
- package/dist/server/ready.d.ts +0 -7
- package/dist/server/ready.js +0 -41
- package/dist/server/request.d.ts +0 -43
- package/dist/server/request.js +0 -177
- package/dist/server/route-checks.d.ts +0 -10
- package/dist/server/route-checks.js +0 -47
- package/dist/server/route-table.d.ts +0 -18
- package/dist/server/route-table.js +0 -650
- package/dist/server/routes/admin.d.ts +0 -9
- package/dist/server/routes/admin.js +0 -177
- package/dist/server/routes/customer-notes.d.ts +0 -7
- package/dist/server/routes/customer-notes.js +0 -43
- package/dist/server/routes/decisions.d.ts +0 -7
- package/dist/server/routes/decisions.js +0 -68
- package/dist/server/routes/incidents.d.ts +0 -7
- package/dist/server/routes/incidents.js +0 -70
- package/dist/server/routes/memories.d.ts +0 -10
- package/dist/server/routes/memories.js +0 -140
- package/dist/server/routes/object-routes.d.ts +0 -38
- package/dist/server/routes/object-routes.js +0 -71
- package/dist/server/routes/policies.d.ts +0 -8
- package/dist/server/routes/policies.js +0 -65
- package/dist/server/routes/predictions.d.ts +0 -7
- package/dist/server/routes/predictions.js +0 -134
- package/dist/server/routes/processes.d.ts +0 -7
- package/dist/server/routes/processes.js +0 -80
- package/dist/server/routes/project-briefs.d.ts +0 -8
- package/dist/server/routes/project-briefs.js +0 -57
- package/dist/server/routes/recall.d.ts +0 -8
- package/dist/server/routes/recall.js +0 -147
- package/dist/server/routes/skills.d.ts +0 -8
- package/dist/server/routes/skills.js +0 -59
- package/dist/server/server-detect.d.ts +0 -50
- package/dist/server/server-detect.js +0 -216
- package/dist/server/sleep-child.js +0 -44
- package/dist/server/sleep-offload.d.ts +0 -29
- package/dist/server/sleep-offload.js +0 -101
- package/dist/server/tls.d.ts +0 -14
- package/dist/server/tls.js +0 -44
- package/dist/server/types.d.ts +0 -144
- package/dist/server/types.js +0 -2
- package/dist/server/validation.d.ts +0 -19
- package/dist/server/validation.js +0 -91
- package/dist/sharing/global-store.d.ts +0 -13
- package/dist/sharing/global-store.js +0 -35
- package/dist/sharing/global-sync.d.ts +0 -8
- package/dist/sharing/global-sync.js +0 -83
- package/dist/sharing/project-merge.d.ts +0 -83
- package/dist/sharing/project-merge.js +0 -284
- package/dist/sharing/search-both.d.ts +0 -64
- package/dist/sharing/search-both.js +0 -152
- package/dist/sharing/share.d.ts +0 -44
- package/dist/sharing/share.js +0 -251
- package/dist/store/ambient.d.ts +0 -16
- package/dist/store/ambient.js +0 -91
- package/dist/store/audit-event.d.ts +0 -17
- package/dist/store/audit-event.js +0 -31
- package/dist/store/audit.d.ts +0 -79
- package/dist/store/audit.js +0 -258
- package/dist/store/auth.d.ts +0 -143
- package/dist/store/auth.js +0 -334
- package/dist/store/busy.d.ts +0 -9
- package/dist/store/busy.js +0 -16
- package/dist/store/candidates.d.ts +0 -89
- package/dist/store/candidates.js +0 -324
- package/dist/store/capture-write.d.ts +0 -18
- package/dist/store/capture-write.js +0 -36
- package/dist/store/card-detail.d.ts +0 -15
- package/dist/store/card-detail.js +0 -23
- package/dist/store/cards.d.ts +0 -77
- package/dist/store/cards.js +0 -432
- package/dist/store/compaction-caller.d.ts +0 -19
- package/dist/store/compaction-caller.js +0 -30
- package/dist/store/compactions-record.d.ts +0 -121
- package/dist/store/compactions-record.js +0 -481
- package/dist/store/compactions.d.ts +0 -78
- package/dist/store/compactions.js +0 -115
- package/dist/store/conflicts.d.ts +0 -70
- package/dist/store/conflicts.js +0 -507
- package/dist/store/connectors/dlq.d.ts +0 -22
- package/dist/store/connectors/dlq.js +0 -84
- package/dist/store/connectors/event-log.d.ts +0 -122
- package/dist/store/connectors/event-log.js +0 -25
- package/dist/store/connectors/github.d.ts +0 -85
- package/dist/store/connectors/github.js +0 -139
- package/dist/store/connectors/slack.d.ts +0 -61
- package/dist/store/connectors/slack.js +0 -132
- package/dist/store/dashboard-reads.d.ts +0 -31
- package/dist/store/dashboard-reads.js +0 -111
- package/dist/store/delete-and-batch.d.ts +0 -72
- package/dist/store/delete-and-batch.js +0 -394
- package/dist/store/delivery-recorder.d.ts +0 -150
- package/dist/store/delivery-recorder.js +0 -303
- package/dist/store/descendant-page.d.ts +0 -13
- package/dist/store/descendant-page.js +0 -118
- package/dist/store/diagnostics.d.ts +0 -48
- package/dist/store/diagnostics.js +0 -45
- package/dist/store/doctor-reads.d.ts +0 -17
- package/dist/store/doctor-reads.js +0 -27
- package/dist/store/dormant.d.ts +0 -113
- package/dist/store/dormant.js +0 -269
- package/dist/store/embeddings/index.d.ts +0 -30
- package/dist/store/embeddings/index.js +0 -62
- package/dist/store/entry-reads.d.ts +0 -146
- package/dist/store/entry-reads.js +0 -506
- package/dist/store/entry-row.d.ts +0 -27
- package/dist/store/entry-row.js +0 -216
- package/dist/store/entry-writes.d.ts +0 -85
- package/dist/store/entry-writes.js +0 -267
- package/dist/store/failure-log-at.d.ts +0 -8
- package/dist/store/failure-log-at.js +0 -16
- package/dist/store/failure-log.d.ts +0 -64
- package/dist/store/failure-log.js +0 -91
- package/dist/store/gated-write.d.ts +0 -11
- package/dist/store/gated-write.js +0 -28
- package/dist/store/goals.d.ts +0 -97
- package/dist/store/goals.js +0 -261
- package/dist/store/graph-apply.d.ts +0 -21
- package/dist/store/graph-apply.js +0 -75
- package/dist/store/graph-queue.d.ts +0 -16
- package/dist/store/graph-queue.js +0 -75
- package/dist/store/graph-reads.d.ts +0 -46
- package/dist/store/graph-reads.js +0 -246
- package/dist/store/graph-rows.d.ts +0 -183
- package/dist/store/graph-rows.js +0 -62
- package/dist/store/graph-view-rows.d.ts +0 -13
- package/dist/store/graph-view-rows.js +0 -76
- package/dist/store/graph-writes.d.ts +0 -39
- package/dist/store/graph-writes.js +0 -232
- package/dist/store/half-life.d.ts +0 -35
- package/dist/store/half-life.js +0 -75
- package/dist/store/handoffs.d.ts +0 -32
- package/dist/store/handoffs.js +0 -237
- package/dist/store/index-and-stats.d.ts +0 -42
- package/dist/store/index-and-stats.js +0 -164
- package/dist/store/index.d.ts +0 -6
- package/dist/store/index.js +0 -4
- package/dist/store/key-audit.d.ts +0 -7
- package/dist/store/key-audit.js +0 -26
- package/dist/store/key-writes.d.ts +0 -17
- package/dist/store/key-writes.js +0 -63
- package/dist/store/ledger-turn.d.ts +0 -29
- package/dist/store/ledger-turn.js +0 -70
- package/dist/store/mirrors.d.ts +0 -37
- package/dist/store/mirrors.js +0 -373
- package/dist/store/narrow.d.ts +0 -6
- package/dist/store/narrow.js +0 -11
- package/dist/store/open.d.ts +0 -20
- package/dist/store/open.js +0 -200
- package/dist/store/pilot-arm.d.ts +0 -13
- package/dist/store/pilot-arm.js +0 -54
- package/dist/store/planning-fallacy-evidence.d.ts +0 -14
- package/dist/store/planning-fallacy-evidence.js +0 -55
- package/dist/store/port/agent-import.d.ts +0 -62
- package/dist/store/port/agent-import.js +0 -2
- package/dist/store/port/consolidation.d.ts +0 -129
- package/dist/store/port/consolidation.js +0 -2
- package/dist/store/port/learning.d.ts +0 -19
- package/dist/store/port/learning.js +0 -2
- package/dist/store/port/local-files.d.ts +0 -18
- package/dist/store/port/local-files.js +0 -2
- package/dist/store/port/promotion.d.ts +0 -20
- package/dist/store/port/promotion.js +0 -3
- package/dist/store/port-groups.d.ts +0 -160
- package/dist/store/port-groups.js +0 -2
- package/dist/store/port.d.ts +0 -697
- package/dist/store/port.js +0 -19
- package/dist/store/predictions.d.ts +0 -104
- package/dist/store/predictions.js +0 -358
- package/dist/store/project-tags.d.ts +0 -65
- package/dist/store/project-tags.js +0 -78
- package/dist/store/quality-repair.d.ts +0 -31
- package/dist/store/quality-repair.js +0 -226
- package/dist/store/quarantine.d.ts +0 -33
- package/dist/store/quarantine.js +0 -123
- package/dist/store/raw-archive.d.ts +0 -15
- package/dist/store/raw-archive.js +0 -81
- package/dist/store/recall-trace.d.ts +0 -121
- package/dist/store/recall-trace.js +0 -314
- package/dist/store/rejected-values.d.ts +0 -60
- package/dist/store/rejected-values.js +0 -177
- package/dist/store/rejection-probe.d.ts +0 -4
- package/dist/store/rejection-probe.js +0 -19
- package/dist/store/rejection.d.ts +0 -38
- package/dist/store/rejection.js +0 -81
- package/dist/store/report-reads.d.ts +0 -7
- package/dist/store/report-reads.js +0 -30
- package/dist/store/rows.d.ts +0 -163
- package/dist/store/rows.js +0 -169
- package/dist/store/rule-sql.d.ts +0 -18
- package/dist/store/rule-sql.js +0 -69
- package/dist/store/search-rows.d.ts +0 -57
- package/dist/store/search-rows.js +0 -227
- package/dist/store/sessions.d.ts +0 -82
- package/dist/store/sessions.js +0 -315
- package/dist/store/set-aside.d.ts +0 -14
- package/dist/store/set-aside.js +0 -36
- package/dist/store/sqlite/agent-import.d.ts +0 -3
- package/dist/store/sqlite/agent-import.js +0 -77
- package/dist/store/sqlite/cards-group.d.ts +0 -6
- package/dist/store/sqlite/cards-group.js +0 -37
- package/dist/store/sqlite/commit-watch.d.ts +0 -4
- package/dist/store/sqlite/commit-watch.js +0 -29
- package/dist/store/sqlite/conflicts-group.d.ts +0 -6
- package/dist/store/sqlite/conflicts-group.js +0 -18
- package/dist/store/sqlite/connector-events-group.d.ts +0 -6
- package/dist/store/sqlite/connector-events-group.js +0 -58
- package/dist/store/sqlite/connector-writes-group.d.ts +0 -7
- package/dist/store/sqlite/connector-writes-group.js +0 -72
- package/dist/store/sqlite/consolidation-group.d.ts +0 -4
- package/dist/store/sqlite/consolidation-group.js +0 -64
- package/dist/store/sqlite/dag-reads-group.d.ts +0 -3
- package/dist/store/sqlite/dag-reads-group.js +0 -45
- package/dist/store/sqlite/dormant-group.d.ts +0 -6
- package/dist/store/sqlite/dormant-group.js +0 -29
- package/dist/store/sqlite/entry-writes-group.d.ts +0 -21
- package/dist/store/sqlite/entry-writes-group.js +0 -193
- package/dist/store/sqlite/error-codec.d.ts +0 -19
- package/dist/store/sqlite/error-codec.js +0 -84
- package/dist/store/sqlite/executor-counts.js +0 -12
- package/dist/store/sqlite/executor.d.ts +0 -34
- package/dist/store/sqlite/executor.js +0 -331
- package/dist/store/sqlite/global-promote.d.ts +0 -5
- package/dist/store/sqlite/global-promote.js +0 -48
- package/dist/store/sqlite/goals-group.d.ts +0 -6
- package/dist/store/sqlite/goals-group.js +0 -23
- package/dist/store/sqlite/graph-reads-group.d.ts +0 -6
- package/dist/store/sqlite/graph-reads-group.js +0 -19
- package/dist/store/sqlite/held-connection.d.ts +0 -17
- package/dist/store/sqlite/held-connection.js +0 -68
- package/dist/store/sqlite/last-recall-group.d.ts +0 -15
- package/dist/store/sqlite/last-recall-group.js +0 -62
- package/dist/store/sqlite/learning-group.d.ts +0 -4
- package/dist/store/sqlite/learning-group.js +0 -17
- package/dist/store/sqlite/maintenance-groups.d.ts +0 -6
- package/dist/store/sqlite/maintenance-groups.js +0 -61
- package/dist/store/sqlite/object-rows.d.ts +0 -105
- package/dist/store/sqlite/object-rows.js +0 -250
- package/dist/store/sqlite/objects-group.d.ts +0 -21
- package/dist/store/sqlite/objects-group.js +0 -375
- package/dist/store/sqlite/predictions-group.d.ts +0 -6
- package/dist/store/sqlite/predictions-group.js +0 -30
- package/dist/store/sqlite/promotion-group.d.ts +0 -3
- package/dist/store/sqlite/promotion-group.js +0 -10
- package/dist/store/sqlite/quarantine-group.d.ts +0 -6
- package/dist/store/sqlite/quarantine-group.js +0 -40
- package/dist/store/sqlite/reports-group.d.ts +0 -6
- package/dist/store/sqlite/reports-group.js +0 -33
- package/dist/store/sqlite/request-scope.d.ts +0 -6
- package/dist/store/sqlite/request-scope.js +0 -18
- package/dist/store/sqlite/sessions-group.d.ts +0 -6
- package/dist/store/sqlite/sessions-group.js +0 -46
- package/dist/store/sqlite/vector-pack.d.ts +0 -18
- package/dist/store/sqlite/vector-pack.js +0 -47
- package/dist/store/sqlite/vector-reads-group.d.ts +0 -3
- package/dist/store/sqlite/vector-reads-group.js +0 -24
- package/dist/store/sqlite/worker-entry.js +0 -8
- package/dist/store/sqlite/worker-jobs.d.ts +0 -6
- package/dist/store/sqlite/worker-jobs.js +0 -128
- package/dist/store/sqlite/worker-ops.d.ts +0 -140
- package/dist/store/sqlite/worker-ops.js +0 -96
- package/dist/store/sqlite/worker-store.d.ts +0 -9
- package/dist/store/sqlite/worker-store.js +0 -89
- package/dist/store/summaries.d.ts +0 -43
- package/dist/store/summaries.js +0 -237
- package/dist/store/summary-dirty.d.ts +0 -5
- package/dist/store/summary-dirty.js +0 -33
- package/dist/store/tenant-lookup.d.ts +0 -21
- package/dist/store/tenant-lookup.js +0 -23
- package/dist/store/tenant.d.ts +0 -12
- package/dist/store/tenant.js +0 -29
- package/dist/store/token-ledger-rows.d.ts +0 -61
- package/dist/store/token-ledger-rows.js +0 -72
- package/dist/store/token-ledger.d.ts +0 -124
- package/dist/store/token-ledger.js +0 -204
- package/dist/store/tombstone-checks.d.ts +0 -15
- package/dist/store/tombstone-checks.js +0 -40
- package/dist/store/usage-reports.d.ts +0 -7
- package/dist/store/usage-reports.js +0 -19
- package/dist/store/vector-index.d.ts +0 -49
- package/dist/store/vector-index.js +0 -188
- package/dist/store/working-memory.d.ts +0 -50
- package/dist/store/working-memory.js +0 -123
- package/dist/support-bundle.d.ts +0 -12
- package/dist/support-bundle.js +0 -315
- package/dist/trust/quarantine.d.ts +0 -3
- package/dist/trust/quarantine.js +0 -4
- package/dist/trust/reject-flow.d.ts +0 -32
- package/dist/trust/reject-flow.js +0 -73
- package/dist/util/agent-homes.d.ts +0 -15
- package/dist/util/agent-homes.js +0 -34
- package/dist/util/anthropic-messages.d.ts +0 -39
- package/dist/util/anthropic-messages.js +0 -86
- package/dist/util/atomic-write.d.ts +0 -9
- package/dist/util/atomic-write.js +0 -153
- package/dist/util/chunked.d.ts +0 -3
- package/dist/util/chunked.js +0 -10
- package/dist/util/compaction-items.d.ts +0 -21
- package/dist/util/compaction-items.js +0 -90
- package/dist/util/crash-handlers.d.ts +0 -17
- package/dist/util/crash-handlers.js +0 -81
- package/dist/util/env.d.ts +0 -119
- package/dist/util/env.js +0 -209
- package/dist/util/escape.js +0 -10
- package/dist/util/format.d.ts +0 -5
- package/dist/util/format.js +0 -10
- package/dist/util/home-path.d.ts +0 -6
- package/dist/util/home-path.js +0 -75
- package/dist/util/hook-payload.d.ts +0 -10
- package/dist/util/hook-payload.js +0 -39
- package/dist/util/http-retry.d.ts +0 -41
- package/dist/util/http-retry.js +0 -151
- package/dist/util/http-util.d.ts +0 -70
- package/dist/util/http-util.js +0 -147
- package/dist/util/json.d.ts +0 -20
- package/dist/util/json.js +0 -28
- package/dist/util/keyset.d.ts +0 -13
- package/dist/util/keyset.js +0 -9
- package/dist/util/limits.d.ts +0 -7
- package/dist/util/limits.js +0 -16
- package/dist/util/log.d.ts +0 -48
- package/dist/util/log.js +0 -123
- package/dist/util/net.d.ts +0 -5
- package/dist/util/net.js +0 -19
- package/dist/util/real-path.d.ts +0 -4
- package/dist/util/real-path.js +0 -16
- package/dist/util/request-scope.d.ts +0 -42
- package/dist/util/request-scope.js +0 -66
- package/dist/util/same-text.d.ts +0 -26
- package/dist/util/same-text.js +0 -49
- package/dist/util/secret-detect.d.ts +0 -50
- package/dist/util/secret-detect.js +0 -165
- package/dist/util/spawn-argv.d.ts +0 -11
- package/dist/util/spawn-argv.js +0 -66
- package/dist/util/sql.d.ts +0 -3
- package/dist/util/sql.js +0 -6
- package/dist/util/sqlite-blocked.d.ts +0 -29
- package/dist/util/sqlite-blocked.js +0 -47
- package/dist/util/stored-json.d.ts +0 -12
- package/dist/util/stored-json.js +0 -12
- package/dist/util/stream-tee.d.ts +0 -4
- package/dist/util/stream-tee.js +0 -38
- package/dist/util/time.d.ts +0 -6
- package/dist/util/time.js +0 -7
- package/dist/util/token-text.d.ts +0 -15
- package/dist/util/token-text.js +0 -20
- package/dist/util/tokenize.d.ts +0 -4
- package/dist/util/tokenize.js +0 -24
- package/dist/util/transcript-tail.d.ts +0 -12
- package/dist/util/transcript-tail.js +0 -52
- package/dist/util/vector-codec.js +0 -15
- package/dist/util/version.d.ts +0 -16
- package/dist/util/version.js +0 -31
- package/dist/util/write-budget.d.ts +0 -20
- package/dist/util/write-budget.js +0 -18
- package/dist/util/yaml.d.ts +0 -13
- package/dist/util/yaml.js +0 -131
- package/dist-ui/assets/index-CHlkKdFC.js +0 -33
- package/scripts/postinstall.cjs +0 -18
- /package/dist/{core → base/session}/compaction-timing.d.ts +0 -0
- /package/dist/{util → base/util}/capped-json.d.ts +0 -0
- /package/dist/{util → base/util}/capped-json.js +0 -0
- /package/dist/{util → base/util}/ellipsize.d.ts +0 -0
- /package/dist/{util → base/util}/ellipsize.js +0 -0
- /package/dist/{util → base/util}/escape.d.ts +0 -0
- /package/dist/{util → base/util}/session-id.d.ts +0 -0
- /package/dist/{util → base/util}/session-id.js +0 -0
- /package/dist/{util → base/util}/vector-codec.d.ts +0 -0
- /package/dist/{agent-memories → domain/agent-memories}/codex.d.ts +0 -0
- /package/dist/{agent-memories → domain/agent-memories}/copilot.d.ts +0 -0
- /package/dist/{agent-memories → domain/agent-memories}/gemini.d.ts +0 -0
- /package/dist/{agent-memories → domain/agent-memories}/openclaw.d.ts +0 -0
- /package/dist/{agent-memories → domain/agent-memories}/qwen-code.d.ts +0 -0
- /package/dist/{agent-memories → domain/agent-memories}/types.js +0 -0
- /package/dist/{eval → domain/eval}/repository-t.d.ts +0 -0
- /package/dist/store/sqlite/{executor-counts.d.ts → runtime/executor-counts.d.ts} +0 -0
- /package/dist/store/sqlite/{worker-entry.d.ts → runtime/worker-entry.d.ts} +0 -0
- /package/dist/{hooks → surface/capture}/codex-session.d.ts +0 -0
- /package/dist/{cli → surface/cli}/init.d.ts +0 -0
- /package/dist/{cli → surface/cli}/open-browser.d.ts +0 -0
- /package/dist/{cli → surface/cli}/output.d.ts +0 -0
- /package/dist/{cli → surface/cli}/usage.d.ts +0 -0
- /package/dist/{cli → surface/cli}/verbs/health.d.ts +0 -0
- /package/dist/{cli → surface/cli}/verbs/memory.d.ts +0 -0
- /package/dist/{cli → surface/cli}/verbs/objects.d.ts +0 -0
- /package/dist/{cli → surface/cli}/verbs/sessions.d.ts +0 -0
- /package/dist/{connectors → surface/connectors}/slack/web-client.d.ts +0 -0
- /package/dist/{mcp → surface/mcp}/tools.d.ts +0 -0
- /package/dist/{server → surface/server}/defaults.d.ts +0 -0
- /package/dist/{server → surface/server}/sleep-child.d.ts +0 -0
- /package/dist/{rerankers → surface/server}/types.js +0 -0
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Recall-side scope predicates, in a leaf module so search-both.ts can apply the same default-deny rule to
|
|
3
|
-
* searchBothHybrid's candidate loads without an
|
|
4
|
-
* import cycle. src/api/index.ts imports these and re-exports them for back-compat (`api.isPrivateScope`, tests
|
|
5
|
-
* importing `passesScopeFilterForRecall`).
|
|
6
|
-
*/
|
|
7
|
-
import { ForbiddenError } from './api-errors.js';
|
|
8
|
-
/**
|
|
9
|
-
* Literal scopes excluded from recall by default-deny when the caller passes no `scope`; read by the SQL clause in
|
|
10
|
-
* `loadSearchRows` and by
|
|
11
|
-
* `passesScopeFilterForRecall`. Invariant: never empty, or quarantine scopes would pass both paths silently (the
|
|
12
|
-
* module-load assertion below pins this).
|
|
13
|
-
*/
|
|
14
|
-
export declare const RECALL_DEFAULT_DENY_SCOPES: readonly ["unknown:legacy"];
|
|
15
|
-
/**
|
|
16
|
-
* @internal Runtime guard against blanking a load-bearing literal array; `as const` arrays widen via `readonly T[]` at
|
|
17
|
-
* the call site, so the empty case
|
|
18
|
-
* is reachable and testable. */
|
|
19
|
-
export declare function assertNonEmpty<T>(arr: readonly T[], name: string): void;
|
|
20
|
-
/**
|
|
21
|
-
* Source-agnostic private-scope detector: private means `<lowercase-source>:private:<rest>` (`slack:private:Cabc`; not
|
|
22
|
-
* `slack:public:x`, null, '',
|
|
23
|
-
* 'private:foo'). The single source of truth for api.recall, the MCP server, the CLI and search-both.ts, so connector
|
|
24
|
-
* work cannot drift.
|
|
25
|
-
*/
|
|
26
|
-
export declare const PRIVATE_SCOPE_RE: RegExp;
|
|
27
|
-
/** True when `scope` matches the `<source>:private:*` shape. */
|
|
28
|
-
export declare function isPrivateScope(scope: string | null | undefined): boolean;
|
|
29
|
-
export declare const PERSONAL_SCOPE_PREFIX = "personal:private:";
|
|
30
|
-
export declare const PERSONAL_OWNER_MAX: number;
|
|
31
|
-
/** True for a `personal:private:<owner>` scope, any case, so a case variant is never mistaken for a team scope. */
|
|
32
|
-
export declare function isPersonalScope(scope: string | null | undefined): boolean;
|
|
33
|
-
/** The caller's own personal scope, or null when it has no owner that can hold one. */
|
|
34
|
-
export declare function personalScopeOf(actor: {
|
|
35
|
-
owner?: string;
|
|
36
|
-
} | undefined): string | null;
|
|
37
|
-
/** Refuses a client-sent `personal:` scope: only the server stamps one, from the caller's owner. */
|
|
38
|
-
export declare function assertClientScope(scope: string | null | undefined): void;
|
|
39
|
-
/** True when `actor` may change or delete a row in `scope`: any non-personal scope, or its own personal one. */
|
|
40
|
-
export declare function canTouchScope(actor: {
|
|
41
|
-
owner?: string;
|
|
42
|
-
}, scope: string | null): boolean;
|
|
43
|
-
/** canTouchScope for a caller known by its own personal scope, as a store method receives it. */
|
|
44
|
-
export declare function ownScopeTouches(ownScope: string | null, scope: string | null): boolean;
|
|
45
|
-
/** JS half of the recall default-deny rule (SQL half: `loadSearchRows`). A non-empty `requested` needs an exact match;
|
|
46
|
-
* otherwise `<source>:private:*` and `RECALL_DEFAULT_DENY_SCOPES` buckets are denied, while null, public scopes and the
|
|
47
|
-
* caller's `ownScope` pass.
|
|
48
|
-
*/
|
|
49
|
-
export declare function passesScopeFilterForRecall(scope: string | null, requested: string | undefined, ownScope?: string | null): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* CLI `--scope` variant: an explicit `--scope X` UNLOCKS scope X on top of the default-admitted set rather than
|
|
52
|
-
* narrowing to X (api.recall keeps 'exact').
|
|
53
|
-
* Includes private/quarantine scopes (owner access); a named personal scope never unlocks: the CLI has no caller
|
|
54
|
-
* identity.
|
|
55
|
-
*/
|
|
56
|
-
export declare function passesCliRecallScopeFilter(scope: string | null, requested: string | undefined): boolean;
|
|
57
|
-
/** Thrown when a caller requests a scope its role may not read; the HTTP layer maps it to 403. */
|
|
58
|
-
export declare class ScopeForbiddenError extends ForbiddenError {
|
|
59
|
-
readonly scope: string;
|
|
60
|
-
constructor(scope: string);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* True for scopes default-deny hides (`<source>:private:*` and the quarantine buckets); naming one explicitly unlocks
|
|
64
|
-
* it, so naming one needs
|
|
65
|
-
* authorization. */
|
|
66
|
-
export declare function isRestrictedScope(scope: string | null | undefined): boolean;
|
|
67
|
-
/** The identity a scope check runs against: a role, any scope grants, and the person who owns the key. */
|
|
68
|
-
export interface ScopeActor {
|
|
69
|
-
role: 'admin' | 'member';
|
|
70
|
-
scopes?: readonly string[];
|
|
71
|
-
owner?: string;
|
|
72
|
-
}
|
|
73
|
-
/** Personal rows answer to their owner alone: role, key grants and resolver scopes never
|
|
74
|
-
* open one. Else admin reads all; a member needs an exact grant on a restricted scope. */
|
|
75
|
-
export declare function canReadScope(actor: ScopeActor, scope: string): boolean;
|
|
76
|
-
/** Authorize an explicitly requested scope before any read honours it (member scope grants). */
|
|
77
|
-
export declare function assertScopeRequestAllowed(actor: ScopeActor, requested: string | undefined): void;
|
|
78
|
-
/** Scope a derived row keeps from one source: the restricted scope itself, else null. */
|
|
79
|
-
export declare function derivationScope(scope: string | null | undefined): string | null;
|
|
80
|
-
/** The one derivation scope shared by every source, or `{ ok: false }` when
|
|
81
|
-
* two disagree, so the caller skips the derived row instead of under-scoping it. */
|
|
82
|
-
export declare function commonDerivationScope(scopes: readonly (string | null | undefined)[]): {
|
|
83
|
-
ok: true;
|
|
84
|
-
scope: string | null;
|
|
85
|
-
} | {
|
|
86
|
-
ok: false;
|
|
87
|
-
};
|
|
88
|
-
/** Map-partition key for consolidate/dag/dedup producers: tenant + derivation scope + origin project,
|
|
89
|
-
* so a derived row never blends two restricted scopes, a mixed pair, or two projects. */
|
|
90
|
-
export declare function derivationPartitionKey(tenantId: string, scope: string | null | undefined, origin: string | null | undefined): string;
|
|
91
|
-
//# sourceMappingURL=recall-scope.d.ts.map
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Recall-side scope predicates, in a leaf module so search-both.ts can apply the same default-deny rule to
|
|
3
|
-
* searchBothHybrid's candidate loads without an
|
|
4
|
-
* import cycle. src/api/index.ts imports these and re-exports them for back-compat (`api.isPrivateScope`, tests
|
|
5
|
-
* importing `passesScopeFilterForRecall`).
|
|
6
|
-
*/
|
|
7
|
-
import { BadRequestError, ForbiddenError } from './api-errors.js';
|
|
8
|
-
import { MAX_ID_LEN } from '../util/limits.js';
|
|
9
|
-
/**
|
|
10
|
-
* Literal scopes excluded from recall by default-deny when the caller passes no `scope`; read by the SQL clause in
|
|
11
|
-
* `loadSearchRows` and by
|
|
12
|
-
* `passesScopeFilterForRecall`. Invariant: never empty, or quarantine scopes would pass both paths silently (the
|
|
13
|
-
* module-load assertion below pins this).
|
|
14
|
-
*/
|
|
15
|
-
export const RECALL_DEFAULT_DENY_SCOPES = ['unknown:legacy'];
|
|
16
|
-
/**
|
|
17
|
-
* @internal Runtime guard against blanking a load-bearing literal array; `as const` arrays widen via `readonly T[]` at
|
|
18
|
-
* the call site, so the empty case
|
|
19
|
-
* is reachable and testable. */
|
|
20
|
-
export function assertNonEmpty(arr, name) {
|
|
21
|
-
if (arr.length === 0) {
|
|
22
|
-
throw new Error(`${name} cannot be empty — would silently allow quarantine scopes`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
assertNonEmpty(RECALL_DEFAULT_DENY_SCOPES, 'RECALL_DEFAULT_DENY_SCOPES');
|
|
26
|
-
/**
|
|
27
|
-
* Source-agnostic private-scope detector: private means `<lowercase-source>:private:<rest>` (`slack:private:Cabc`; not
|
|
28
|
-
* `slack:public:x`, null, '',
|
|
29
|
-
* 'private:foo'). The single source of truth for api.recall, the MCP server, the CLI and search-both.ts, so connector
|
|
30
|
-
* work cannot drift.
|
|
31
|
-
*/
|
|
32
|
-
export const PRIVATE_SCOPE_RE = /^[a-z][a-z0-9_-]*:private:/;
|
|
33
|
-
function isScopeString(value) {
|
|
34
|
-
return typeof value === 'string';
|
|
35
|
-
}
|
|
36
|
-
/** True when `scope` matches the `<source>:private:*` shape. */
|
|
37
|
-
export function isPrivateScope(scope) {
|
|
38
|
-
if (!isScopeString(scope))
|
|
39
|
-
return false;
|
|
40
|
-
return PRIVATE_SCOPE_RE.test(scope);
|
|
41
|
-
}
|
|
42
|
-
export const PERSONAL_SCOPE_PREFIX = 'personal:private:';
|
|
43
|
-
// The scope must fit the 256-character scope caps, so the owner gets what the prefix leaves.
|
|
44
|
-
export const PERSONAL_OWNER_MAX = MAX_ID_LEN - PERSONAL_SCOPE_PREFIX.length;
|
|
45
|
-
/** True for a `personal:private:<owner>` scope, any case, so a case variant is never mistaken for a team scope. */
|
|
46
|
-
export function isPersonalScope(scope) {
|
|
47
|
-
if (!isScopeString(scope))
|
|
48
|
-
return false;
|
|
49
|
-
return /^personal:private:/i.test(scope);
|
|
50
|
-
}
|
|
51
|
-
/** The caller's own personal scope, or null when it has no owner that can hold one. */
|
|
52
|
-
export function personalScopeOf(actor) {
|
|
53
|
-
const owner = actor?.owner;
|
|
54
|
-
if (!owner || owner.length > PERSONAL_OWNER_MAX || /\p{Cc}/u.test(owner))
|
|
55
|
-
return null;
|
|
56
|
-
return `${PERSONAL_SCOPE_PREFIX}${owner}`;
|
|
57
|
-
}
|
|
58
|
-
/** Refuses a client-sent `personal:` scope: only the server stamps one, from the caller's owner. */
|
|
59
|
-
export function assertClientScope(scope) {
|
|
60
|
-
if (isScopeString(scope) && /^personal:/i.test(scope)) {
|
|
61
|
-
throw new BadRequestError(`scope ${scope} is reserved: the server sets personal scopes itself`);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
/** True when `actor` may change or delete a row in `scope`: any non-personal scope, or its own personal one. */
|
|
65
|
-
export function canTouchScope(actor, scope) {
|
|
66
|
-
return ownScopeTouches(personalScopeOf(actor), scope);
|
|
67
|
-
}
|
|
68
|
-
/** canTouchScope for a caller known by its own personal scope, as a store method receives it. */
|
|
69
|
-
export function ownScopeTouches(ownScope, scope) {
|
|
70
|
-
return !isPersonalScope(scope) || scope === ownScope;
|
|
71
|
-
}
|
|
72
|
-
/** JS half of the recall default-deny rule (SQL half: `loadSearchRows`). A non-empty `requested` needs an exact match;
|
|
73
|
-
* otherwise `<source>:private:*` and `RECALL_DEFAULT_DENY_SCOPES` buckets are denied, while null, public scopes and the
|
|
74
|
-
* caller's `ownScope` pass.
|
|
75
|
-
*/
|
|
76
|
-
export function passesScopeFilterForRecall(scope, requested, ownScope) {
|
|
77
|
-
if (requested !== undefined && requested !== '') {
|
|
78
|
-
return scope === requested;
|
|
79
|
-
}
|
|
80
|
-
return !isRestrictedScope(scope) || (ownScope != null && scope === ownScope);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* CLI `--scope` variant: an explicit `--scope X` UNLOCKS scope X on top of the default-admitted set rather than
|
|
84
|
-
* narrowing to X (api.recall keeps 'exact').
|
|
85
|
-
* Includes private/quarantine scopes (owner access); a named personal scope never unlocks: the CLI has no caller
|
|
86
|
-
* identity.
|
|
87
|
-
*/
|
|
88
|
-
export function passesCliRecallScopeFilter(scope, requested) {
|
|
89
|
-
if (requested !== undefined && requested !== '' && !isPersonalScope(requested) && scope === requested) {
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
return passesScopeFilterForRecall(scope, undefined);
|
|
93
|
-
}
|
|
94
|
-
/** Thrown when a caller requests a scope its role may not read; the HTTP layer maps it to 403. */
|
|
95
|
-
export class ScopeForbiddenError extends ForbiddenError {
|
|
96
|
-
scope;
|
|
97
|
-
constructor(scope) {
|
|
98
|
-
super(`scope ${scope} requires admin role`);
|
|
99
|
-
this.name = 'ScopeForbiddenError';
|
|
100
|
-
this.scope = scope;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* True for scopes default-deny hides (`<source>:private:*` and the quarantine buckets); naming one explicitly unlocks
|
|
105
|
-
* it, so naming one needs
|
|
106
|
-
* authorization. */
|
|
107
|
-
export function isRestrictedScope(scope) {
|
|
108
|
-
if (!isScopeString(scope))
|
|
109
|
-
return false;
|
|
110
|
-
// SAFETY: RECALL_DEFAULT_DENY_SCOPES is a readonly tuple of string literals; widening the array lets .includes() take
|
|
111
|
-
// any scope.
|
|
112
|
-
// `:private:` anywhere, any case, matches the SQL default-deny in src/store/search-rows.ts so JS never admits what
|
|
113
|
-
// SQL hides.
|
|
114
|
-
return (isPrivateScope(scope) ||
|
|
115
|
-
/:private:/i.test(scope) ||
|
|
116
|
-
RECALL_DEFAULT_DENY_SCOPES.includes(scope));
|
|
117
|
-
}
|
|
118
|
-
/** Personal rows answer to their owner alone: role, key grants and resolver scopes never
|
|
119
|
-
* open one. Else admin reads all; a member needs an exact grant on a restricted scope. */
|
|
120
|
-
export function canReadScope(actor, scope) {
|
|
121
|
-
if (isPersonalScope(scope))
|
|
122
|
-
return scope === personalScopeOf(actor);
|
|
123
|
-
if (actor.role === 'admin')
|
|
124
|
-
return true;
|
|
125
|
-
if (!isRestrictedScope(scope))
|
|
126
|
-
return true;
|
|
127
|
-
return (actor.scopes ?? []).includes(scope);
|
|
128
|
-
}
|
|
129
|
-
/** Authorize an explicitly requested scope before any read honours it (member scope grants). */
|
|
130
|
-
export function assertScopeRequestAllowed(actor, requested) {
|
|
131
|
-
if (requested === undefined || requested === '')
|
|
132
|
-
return;
|
|
133
|
-
if (canReadScope(actor, requested))
|
|
134
|
-
return;
|
|
135
|
-
throw new ScopeForbiddenError(requested);
|
|
136
|
-
}
|
|
137
|
-
/** Scope a derived row keeps from one source: the restricted scope itself, else null. */
|
|
138
|
-
export function derivationScope(scope) {
|
|
139
|
-
return isRestrictedScope(scope) ? (scope ?? null) : null;
|
|
140
|
-
}
|
|
141
|
-
/** The one derivation scope shared by every source, or `{ ok: false }` when
|
|
142
|
-
* two disagree, so the caller skips the derived row instead of under-scoping it. */
|
|
143
|
-
export function commonDerivationScope(scopes) {
|
|
144
|
-
let common = null;
|
|
145
|
-
let seen = false;
|
|
146
|
-
for (const raw of scopes) {
|
|
147
|
-
const scope = derivationScope(raw);
|
|
148
|
-
if (!seen) {
|
|
149
|
-
common = scope;
|
|
150
|
-
seen = true;
|
|
151
|
-
}
|
|
152
|
-
else if (scope !== common) {
|
|
153
|
-
return { ok: false };
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return { ok: true, scope: common };
|
|
157
|
-
}
|
|
158
|
-
/** Map-partition key for consolidate/dag/dedup producers: tenant + derivation scope + origin project,
|
|
159
|
-
* so a derived row never blends two restricted scopes, a mixed pair, or two projects. */
|
|
160
|
-
export function derivationPartitionKey(tenantId, scope, origin) {
|
|
161
|
-
// unstamped, unknown and named never share a bucket
|
|
162
|
-
const project = origin === undefined ? '\u0002' : (origin ?? '\u0001');
|
|
163
|
-
return `${tenantId}\u0000${derivationScope(scope) ?? ''}\u0000${project}`;
|
|
164
|
-
}
|
|
165
|
-
//# sourceMappingURL=recall-scope.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** Normalize content for rejection digests: NFC, lowercase, collapse whitespace runs, trim. No punctuation stripping:
|
|
2
|
-
* over-normalizing causes false refusals, worse than misses. */
|
|
3
|
-
export declare function normalizeValueForRejection(content: string): string;
|
|
4
|
-
/** Full 64-char sha256 hex of the normalized content: a tombstone key needs collision resistance, not the 16-char
|
|
5
|
-
* redaction hash used for query hashing. */
|
|
6
|
-
export declare function rejectionDigest(content: string): string;
|
|
7
|
-
//# sourceMappingURL=rejection-digest.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Tombstone keys are a pure hash of the normalized value, so the domain computes them without reaching the store.
|
|
2
|
-
import { createHash } from 'node:crypto';
|
|
3
|
-
/** Normalize content for rejection digests: NFC, lowercase, collapse whitespace runs, trim. No punctuation stripping:
|
|
4
|
-
* over-normalizing causes false refusals, worse than misses. */
|
|
5
|
-
export function normalizeValueForRejection(content) {
|
|
6
|
-
return content.normalize('NFC').toLowerCase().replace(/\s+/g, ' ').trim();
|
|
7
|
-
}
|
|
8
|
-
/** Full 64-char sha256 hex of the normalized content: a tombstone key needs collision resistance, not the 16-char
|
|
9
|
-
* redaction hash used for query hashing. */
|
|
10
|
-
export function rejectionDigest(content) {
|
|
11
|
-
return createHash('sha256').update(normalizeValueForRejection(content)).digest('hex');
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=rejection-digest.js.map
|
package/dist/core/salience.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Salience gate: decides at memory creation whether content is stored at full strength, starts weakened, or is skipped.
|
|
3
|
-
*/
|
|
4
|
-
import type { MemoryEntry } from './memory.js';
|
|
5
|
-
export type SalienceDecision = 'store' | 'skip' | 'start_weak';
|
|
6
|
-
export interface SalienceResult {
|
|
7
|
-
decision: SalienceDecision;
|
|
8
|
-
reason: string;
|
|
9
|
-
score: number;
|
|
10
|
-
}
|
|
11
|
-
export interface SalienceOptions {
|
|
12
|
-
recentWindow?: number;
|
|
13
|
-
overlapThreshold?: number;
|
|
14
|
-
minContentLength?: number;
|
|
15
|
-
maxRepeatErrors?: number;
|
|
16
|
-
}
|
|
17
|
-
export declare function computeSalience(content: string, tags: string[], recentMemories: MemoryEntry[], options?: SalienceOptions): SalienceResult;
|
|
18
|
-
//# sourceMappingURL=salience.d.ts.map
|
package/dist/core/salience.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Salience gate: decides at memory creation whether content is stored at full strength, starts weakened, or is skipped.
|
|
3
|
-
*/
|
|
4
|
-
import { textOverlap } from '../util/tokenize.js';
|
|
5
|
-
import { duplicateKey, heldTextKeys } from '../util/same-text.js';
|
|
6
|
-
// Each store or skip reason carries a score; a novel memory adds bonuses for structure and length.
|
|
7
|
-
const REPEAT_ERROR_SCORE = 0.3;
|
|
8
|
-
const ERROR_DESPITE_OVERLAP_SCORE = 0.7;
|
|
9
|
-
const NEAR_DUPLICATE_SCORE = 0.5;
|
|
10
|
-
const DUPLICATE_SCORE = 0.1;
|
|
11
|
-
const NOVEL_ERROR_SCORE = 0.9;
|
|
12
|
-
const NOVEL_BASE_SCORE = 0.5;
|
|
13
|
-
const STRUCTURED_TAGS_BONUS = 0.15;
|
|
14
|
-
const LENGTH_BONUS = 0.1;
|
|
15
|
-
// A novel memory earns LENGTH_BONUS past each of these lengths in characters.
|
|
16
|
-
const LONG_CONTENT_CHARS = 100;
|
|
17
|
-
const VERY_LONG_CONTENT_CHARS = 300;
|
|
18
|
-
const DEFAULTS = {
|
|
19
|
-
recentWindow: 20,
|
|
20
|
-
overlapThreshold: 0.6,
|
|
21
|
-
minContentLength: 5,
|
|
22
|
-
maxRepeatErrors: 4,
|
|
23
|
-
};
|
|
24
|
-
export function computeSalience(content, tags, recentMemories, options = {}) {
|
|
25
|
-
const opts = { ...DEFAULTS, ...options };
|
|
26
|
-
const trimmed = content.trim();
|
|
27
|
-
const isPinned = tags.includes('pinned');
|
|
28
|
-
if (isPinned) {
|
|
29
|
-
return { decision: 'store', reason: 'pinned', score: 1.0 };
|
|
30
|
-
}
|
|
31
|
-
if (trimmed.length < opts.minContentLength) {
|
|
32
|
-
return { decision: 'skip', reason: 'content_too_short', score: 0 };
|
|
33
|
-
}
|
|
34
|
-
const isError = tags.some(t => t === 'error' || t === 'critical' || t.startsWith('error:'));
|
|
35
|
-
const window = recentMemories.slice(-opts.recentWindow);
|
|
36
|
-
const duplicateMatch = findBestOverlap(trimmed, window);
|
|
37
|
-
if (duplicateMatch.overlap > opts.overlapThreshold) {
|
|
38
|
-
if (isError) {
|
|
39
|
-
const recentErrors = countRecentErrors(window);
|
|
40
|
-
if (recentErrors >= opts.maxRepeatErrors) {
|
|
41
|
-
return {
|
|
42
|
-
decision: 'start_weak',
|
|
43
|
-
reason: `repeat_error (${recentErrors} recent errors, overlap ` +
|
|
44
|
-
`${(duplicateMatch.overlap * 100).toFixed(0)}% with ${duplicateMatch.matchId})`,
|
|
45
|
-
score: REPEAT_ERROR_SCORE,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
return { decision: 'store', reason: 'error_despite_overlap', score: ERROR_DESPITE_OVERLAP_SCORE };
|
|
49
|
-
}
|
|
50
|
-
return judgeOverlappingNonError(trimmed, window, duplicateMatch);
|
|
51
|
-
}
|
|
52
|
-
if (isError) {
|
|
53
|
-
return { decision: 'store', reason: 'error_novel', score: NOVEL_ERROR_SCORE };
|
|
54
|
-
}
|
|
55
|
-
return scoreNovel(trimmed, tags);
|
|
56
|
-
}
|
|
57
|
-
function judgeOverlappingNonError(trimmed, window, duplicateMatch) {
|
|
58
|
-
// A near-duplicate may be a changed value (port 8080 then 8081), so only the same text is skipped.
|
|
59
|
-
const key = duplicateKey(trimmed);
|
|
60
|
-
const same = window.find((m) => heldTextKeys(m).includes(key));
|
|
61
|
-
if (!same) {
|
|
62
|
-
return {
|
|
63
|
-
decision: 'store',
|
|
64
|
-
reason: `near_duplicate (${(duplicateMatch.overlap * 100).toFixed(0)}% overlap with ${duplicateMatch.matchId})`,
|
|
65
|
-
score: NEAR_DUPLICATE_SCORE,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
return { decision: 'skip', reason: `duplicate (same text as ${same.id})`, score: DUPLICATE_SCORE };
|
|
69
|
-
}
|
|
70
|
-
function scoreNovel(trimmed, tags) {
|
|
71
|
-
const hasStructuredTags = tags.some(t => t.startsWith('speaker:') || t.startsWith('topic:') || t.startsWith('scope:'));
|
|
72
|
-
let score = NOVEL_BASE_SCORE;
|
|
73
|
-
if (hasStructuredTags)
|
|
74
|
-
score += STRUCTURED_TAGS_BONUS;
|
|
75
|
-
if (trimmed.length > LONG_CONTENT_CHARS)
|
|
76
|
-
score += LENGTH_BONUS;
|
|
77
|
-
if (trimmed.length > VERY_LONG_CONTENT_CHARS)
|
|
78
|
-
score += LENGTH_BONUS;
|
|
79
|
-
return { decision: 'store', reason: 'novel', score: Math.min(score, 1.0) };
|
|
80
|
-
}
|
|
81
|
-
function findBestOverlap(content, memories) {
|
|
82
|
-
let best = 0;
|
|
83
|
-
let matchId = null;
|
|
84
|
-
for (const m of memories) {
|
|
85
|
-
const overlap = textOverlap(content, m.content);
|
|
86
|
-
if (overlap > best) {
|
|
87
|
-
best = overlap;
|
|
88
|
-
matchId = m.id;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return { overlap: best, matchId };
|
|
92
|
-
}
|
|
93
|
-
function countRecentErrors(memories) {
|
|
94
|
-
return memories.filter(m => m.emotional_valence === 'negative' || m.emotional_valence === 'critical').length;
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=salience.js.map
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import type { MemoryEntry } from './memory.js';
|
|
2
|
-
export declare const DEFAULT_RECALL_BUDGET = 4000;
|
|
3
|
-
export declare const DEFAULT_LOCAL_BUMP = 1.2;
|
|
4
|
-
export declare const DEFAULT_MMR_LAMBDA = 0.7;
|
|
5
|
-
export declare const CONFLICT_PEER_MULTIPLIER = 0.3;
|
|
6
|
-
export declare const VALUE_MULT_SLOPE = 0.3;
|
|
7
|
-
export declare const VALUE_MULT_MIN = 0.7;
|
|
8
|
-
export declare const VALUE_MULT_MAX = 1.3;
|
|
9
|
-
export declare const UTILITY_LENGTH_PENALTY_CAP = 0.3;
|
|
10
|
-
export declare const UTILITY_LENGTH_TOKENS = 10000;
|
|
11
|
-
export declare const SALIENCE_MIN_MULTIPLIER = 0.5;
|
|
12
|
-
/**
|
|
13
|
-
* One score mutation applied after candidate generation; allocated only under `recall --why` or `RecallOpts.explain`.
|
|
14
|
-
*/
|
|
15
|
-
export interface RerankStep {
|
|
16
|
-
/** One of: interference, value, utility, reranker, goal-boost, retrieval-count-downweight. */
|
|
17
|
-
stage: string;
|
|
18
|
-
/** The score multiplier applied at this stage, when the transform is a scalar multiply. */
|
|
19
|
-
multiplier?: number;
|
|
20
|
-
/** Score before this stage ran. */
|
|
21
|
-
scoreBefore: number;
|
|
22
|
-
/** Score after this stage ran. */
|
|
23
|
-
scoreAfter: number;
|
|
24
|
-
/** Optional human-readable detail (e.g. the matched goal tags). */
|
|
25
|
-
note?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface SearchResult {
|
|
28
|
-
entry: MemoryEntry;
|
|
29
|
-
score: number;
|
|
30
|
-
bm25: number;
|
|
31
|
-
cosine: number;
|
|
32
|
-
tokens: number;
|
|
33
|
-
/** Populated when search is called with options.explain === true. */
|
|
34
|
-
breakdown?: ScoreBreakdown;
|
|
35
|
-
/** Ordered lifecycle re-ranking steps that mutated `score`; set only when `recall --why` asks for it. */
|
|
36
|
-
rerankTrace?: RerankStep[];
|
|
37
|
-
/** Set when a reranker ran; orders the results while `score` keeps the pre-rerank value. */
|
|
38
|
-
rerankScore?: number;
|
|
39
|
-
preRerankRank?: number;
|
|
40
|
-
postRerankRank?: number;
|
|
41
|
-
/** Set for results reached by graph traversal (`recall --hops N`): how the memory was reached from a lexical seed. */
|
|
42
|
-
graphVia?: {
|
|
43
|
-
hops: number;
|
|
44
|
-
relType: string;
|
|
45
|
-
direction: 'from' | 'to';
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
/** What a result costs against a budget: the tokens of the text it prints as. */
|
|
49
|
-
export type ResultCost = (r: SearchResult) => number;
|
|
50
|
-
export interface ScoreBreakdown {
|
|
51
|
-
/** `hybrid`: BM25 plus a cached doc vector; `hybrid-no-vec`: the query was embedded but this doc has no vector
|
|
52
|
-
* (run `hippo embed`); `bm25-only`: no usable embeddings; `physics`: scored by the physics engine. */
|
|
53
|
-
mode: 'hybrid' | 'hybrid-no-vec' | 'bm25-only' | 'physics';
|
|
54
|
-
/** BM25 score after normalization by max-in-corpus (0..1). */
|
|
55
|
-
normBm25: number;
|
|
56
|
-
/** Weight applied to BM25 in the hybrid blend. */
|
|
57
|
-
bm25Weight: number;
|
|
58
|
-
/** Weight applied to cosine in the hybrid blend. */
|
|
59
|
-
embeddingWeight: number;
|
|
60
|
-
/** Cosine similarity (0 when embeddings not used). */
|
|
61
|
-
cosine: number;
|
|
62
|
-
/** Blended base score before multipliers. */
|
|
63
|
-
base: number;
|
|
64
|
-
/** Multiplier from memory strength: 0.5 + 0.5*strength. */
|
|
65
|
-
strengthMultiplier: number;
|
|
66
|
-
/** Multiplier from age: 0.8 + 0.2*recencyBoost. */
|
|
67
|
-
recencyMultiplier: number;
|
|
68
|
-
/** 1.2 if tagged 'decision', else 1.0. */
|
|
69
|
-
decisionBoost: number;
|
|
70
|
-
/** 1.0..1.3 based on cwd path tag overlap. */
|
|
71
|
-
pathBoost: number;
|
|
72
|
-
/** 1.5 if scope matches, 0.5 if scope mismatches, 1.0 if neutral. */
|
|
73
|
-
scopeBoost: number;
|
|
74
|
-
/** Extra multiplier applied post-hybrid (e.g. 1.2x for local hits in a local+global merge); 1.0 otherwise. */
|
|
75
|
-
sourceBump: number;
|
|
76
|
-
/**
|
|
77
|
-
* Immediate outcome nudge, 1 + 0.15*tanh((pos - neg) / 2) clipped to [0.85, 1.15]; separate from the slow strength
|
|
78
|
-
* path.
|
|
79
|
-
*/
|
|
80
|
-
outcomeBoost: number;
|
|
81
|
-
/** CHURN_STALE_RANK_MULTIPLIER if tagged 'churn-stale', else 1.0. */
|
|
82
|
-
churnStaleMultiplier: number;
|
|
83
|
-
/** Pre-MMR rank (1-indexed). Only set when MMR re-ranking ran. */
|
|
84
|
-
preMmrRank?: number;
|
|
85
|
-
/** Post-MMR rank (1-indexed). Only set when MMR re-ranking ran. */
|
|
86
|
-
postMmrRank?: number;
|
|
87
|
-
/** Query terms that appeared verbatim in the doc. */
|
|
88
|
-
matchedTerms: string[];
|
|
89
|
-
/** Final composite score (= base * multipliers). */
|
|
90
|
-
final: number;
|
|
91
|
-
/** Age of the memory in whole days, at scoring time. */
|
|
92
|
-
ageDays: number;
|
|
93
|
-
/** entry.dag_level (0=raw, 1=extracted, 2=topic, 3=entity). */
|
|
94
|
-
dagLevel?: number;
|
|
95
|
-
/** descendant_count column, refreshed by the DAG rebuild. */
|
|
96
|
-
descendantCount?: number;
|
|
97
|
-
/** last_rebuilt_at ISO; null if never rebuilt. Summaries only. */
|
|
98
|
-
lastRebuiltAt?: string | null;
|
|
99
|
-
/** Cumulative rebuild_count. Summaries only. */
|
|
100
|
-
rebuildCount?: number;
|
|
101
|
-
/** Deboost applied (1.0 for non-summaries; default 0.85 for summaries). */
|
|
102
|
-
summaryDeboost?: number;
|
|
103
|
-
/** 1.05 if a summary was rebuilt within 7 days; 1.0 otherwise. */
|
|
104
|
-
summaryFreshnessBoost?: number;
|
|
105
|
-
}
|
|
106
|
-
//# sourceMappingURL=search-types.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_RECALL_BUDGET = 4000;
|
|
2
|
-
// Local memories outrank global ones by this factor; getContext applies it as a 1/x global discount.
|
|
3
|
-
export const DEFAULT_LOCAL_BUMP = 1.2;
|
|
4
|
-
// The relevance side of the MMR relevance-versus-diversity trade; config and hybrid recall both default to it.
|
|
5
|
-
export const DEFAULT_MMR_LAMBDA = 0.7;
|
|
6
|
-
// A recorded conflict peer in the same result list is cut to this share of its score.
|
|
7
|
-
export const CONFLICT_PEER_MULTIPLIER = 0.3;
|
|
8
|
-
// The value-aware clamp is wider than the always-on outcome nudge, so outcome history can decide the order.
|
|
9
|
-
export const VALUE_MULT_SLOPE = 0.3;
|
|
10
|
-
export const VALUE_MULT_MIN = 0.7;
|
|
11
|
-
export const VALUE_MULT_MAX = 1.3;
|
|
12
|
-
export const UTILITY_LENGTH_PENALTY_CAP = 0.3;
|
|
13
|
-
export const UTILITY_LENGTH_TOKENS = 10000;
|
|
14
|
-
export const SALIENCE_MIN_MULTIPLIER = 0.5;
|
|
15
|
-
//# sourceMappingURL=search-types.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { MemoryEntry } from './memory.js';
|
|
2
|
-
export declare const SESSION_DIGEST_TAG = "session-digest";
|
|
3
|
-
/** Facts extracted from a digest and DAG summaries over one inherit its tag, but they are not the digest itself. */
|
|
4
|
-
export declare function isSessionDigestRow(entry: Pick<MemoryEntry, 'source' | 'tags' | 'extracted_from'>): boolean;
|
|
5
|
-
//# sourceMappingURL=session-digest-row.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export const SESSION_DIGEST_TAG = 'session-digest';
|
|
2
|
-
/** Facts extracted from a digest and DAG summaries over one inherit its tag, but they are not the digest itself. */
|
|
3
|
-
export function isSessionDigestRow(entry) {
|
|
4
|
-
return entry.source === SESSION_DIGEST_TAG && entry.tags.includes(SESSION_DIGEST_TAG) && !entry.extracted_from;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=session-digest-row.js.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { MemoryEntry } from '../core/memory.js';
|
|
2
|
-
import { type ActionBody } from './dashboard-params.js';
|
|
3
|
-
/** What an action hands the router: a status, a JSON body, and whether the store changed. */
|
|
4
|
-
export interface ActionResult {
|
|
5
|
-
status: number;
|
|
6
|
-
body: unknown;
|
|
7
|
-
/** True when a write committed, so the router drops the snapshot. */
|
|
8
|
-
changed: boolean;
|
|
9
|
-
/** The live entry an action acted on, so the router can build the detail after the cache is dropped. */
|
|
10
|
-
entry?: MemoryEntry;
|
|
11
|
-
}
|
|
12
|
-
/** Sets `pinned`; the audit row says `remember` with actor `dashboard`, the same op the old star toggle wrote. */
|
|
13
|
-
export declare function pinMemory(hippoRoot: string, tenantId: string, rawId: string, body: ActionBody): ActionResult;
|
|
14
|
-
/** Marks a memory wrong, the same signal as `hippo outcome --bad`. */
|
|
15
|
-
export declare function markWrong(hippoRoot: string, tenantId: string, rawId: string): Promise<ActionResult>;
|
|
16
|
-
/** Deletes a memory like `hippo forget`; a raw receipt is append-only and answers 409 with the archive hint. */
|
|
17
|
-
export declare function forgetMemory(hippoRoot: string, tenantId: string, rawId: string): Promise<ActionResult>;
|
|
18
|
-
/** Keeps one side of an open conflict and weakens the other; every refusal maps to its own status. */
|
|
19
|
-
export declare function resolveOpenConflict(hippoRoot: string, tenantId: string, conflictId: number, body: ActionBody): ActionResult;
|
|
20
|
-
//# sourceMappingURL=dashboard-actions.d.ts.map
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
// The four dashboard writes, each a thin call into an existing store or api function; the router owns HTTP and the cache.
|
|
2
|
-
import * as api from '../api/index.js';
|
|
3
|
-
import { NotFoundError } from '../core/api-errors.js';
|
|
4
|
-
import { RawAppendOnlyError } from '../core/raw-append-only.js';
|
|
5
|
-
import { listTouchableConflicts, resolveConflict } from '../store/conflicts.js';
|
|
6
|
-
import { readEntry } from '../store/entry-reads.js';
|
|
7
|
-
import { writeEntry } from '../store/entry-writes.js';
|
|
8
|
-
import { sqliteStore } from '../store/sqlite/store.js';
|
|
9
|
-
import { ParamError, parseMemoryId } from './dashboard-params.js';
|
|
10
|
-
import { isLiveMemory } from './dashboard-snapshot.js';
|
|
11
|
-
const ACTOR = 'dashboard';
|
|
12
|
-
function notFound() {
|
|
13
|
-
return { status: 404, body: { error: 'Not found' }, changed: false };
|
|
14
|
-
}
|
|
15
|
-
function liveEntry(hippoRoot, tenantId, id) {
|
|
16
|
-
const entry = readEntry(hippoRoot, id, tenantId);
|
|
17
|
-
return entry !== null && isLiveMemory(entry) ? entry : null;
|
|
18
|
-
}
|
|
19
|
-
/** Sets `pinned`; the audit row says `remember` with actor `dashboard`, the same op the old star toggle wrote. */
|
|
20
|
-
export function pinMemory(hippoRoot, tenantId, rawId, body) {
|
|
21
|
-
const id = parseMemoryId(rawId);
|
|
22
|
-
const { pinned } = body;
|
|
23
|
-
if (pinned === undefined)
|
|
24
|
-
throw new ParamError('pinned must be true or false');
|
|
25
|
-
const entry = liveEntry(hippoRoot, tenantId, id);
|
|
26
|
-
if (entry === null)
|
|
27
|
-
return notFound();
|
|
28
|
-
const next = { ...entry, pinned };
|
|
29
|
-
writeEntry(hippoRoot, next, { actor: ACTOR });
|
|
30
|
-
return { status: 200, body: null, changed: true, entry: next };
|
|
31
|
-
}
|
|
32
|
-
/** Marks a memory wrong, the same signal as `hippo outcome --bad`. */
|
|
33
|
-
export async function markWrong(hippoRoot, tenantId, rawId) {
|
|
34
|
-
const id = parseMemoryId(rawId);
|
|
35
|
-
if (liveEntry(hippoRoot, tenantId, id) === null)
|
|
36
|
-
return notFound();
|
|
37
|
-
const ctx = {
|
|
38
|
-
hippoRoot,
|
|
39
|
-
tenantId,
|
|
40
|
-
actor: api.adminActor(ACTOR),
|
|
41
|
-
store: sqliteStore(hippoRoot),
|
|
42
|
-
};
|
|
43
|
-
// outcome() answers `applied: 0` for a missing or other-tenant id instead of throwing.
|
|
44
|
-
if ((await api.outcome(ctx, [id], false)).applied === 0)
|
|
45
|
-
return notFound();
|
|
46
|
-
const entry = readEntry(hippoRoot, id, tenantId);
|
|
47
|
-
return entry === null ? notFound() : { status: 200, body: null, changed: true, entry };
|
|
48
|
-
}
|
|
49
|
-
/** Deletes a memory like `hippo forget`; a raw receipt is append-only and answers 409 with the archive hint. */
|
|
50
|
-
export async function forgetMemory(hippoRoot, tenantId, rawId) {
|
|
51
|
-
const id = parseMemoryId(rawId);
|
|
52
|
-
if (liveEntry(hippoRoot, tenantId, id) === null)
|
|
53
|
-
return notFound();
|
|
54
|
-
const ctx = {
|
|
55
|
-
hippoRoot,
|
|
56
|
-
tenantId,
|
|
57
|
-
actor: api.adminActor(ACTOR),
|
|
58
|
-
store: sqliteStore(hippoRoot),
|
|
59
|
-
};
|
|
60
|
-
try {
|
|
61
|
-
const done = await api.forget(ctx, id);
|
|
62
|
-
return { status: 200, body: done, changed: true };
|
|
63
|
-
}
|
|
64
|
-
catch (err) {
|
|
65
|
-
if (err instanceof NotFoundError)
|
|
66
|
-
return notFound();
|
|
67
|
-
if (err instanceof RawAppendOnlyError) {
|
|
68
|
-
const error = `Cannot forget ${id}: it is a raw, append-only memory. Archive it instead: hippo forget ${id} --archive --reason "<why>"`;
|
|
69
|
-
return { status: 409, body: { error }, changed: false };
|
|
70
|
-
}
|
|
71
|
-
throw err;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
/** Keeps one side of an open conflict and weakens the other; every refusal maps to its own status. */
|
|
75
|
-
export function resolveOpenConflict(hippoRoot, tenantId, conflictId, body) {
|
|
76
|
-
const { keep } = body;
|
|
77
|
-
if (keep === undefined)
|
|
78
|
-
throw new ParamError('keep must be a memory id');
|
|
79
|
-
parseMemoryId(keep);
|
|
80
|
-
// The dashboard acts as an unowned admin, so a pair holding a personal row reads as missing, open or resolved.
|
|
81
|
-
const conflict = listTouchableConflicts(hippoRoot, '*', tenantId, api.adminActor(ACTOR)).find((c) => c.id === conflictId);
|
|
82
|
-
if (!conflict)
|
|
83
|
-
return notFound();
|
|
84
|
-
const already = () => ({ status: 409, body: { error: 'This conflict is already resolved' }, changed: false });
|
|
85
|
-
if (conflict.status !== 'open')
|
|
86
|
-
return already();
|
|
87
|
-
if (keep !== conflict.memory_a_id && keep !== conflict.memory_b_id) {
|
|
88
|
-
throw new ParamError('keep must be one of the two memories in the conflict');
|
|
89
|
-
}
|
|
90
|
-
if (liveEntry(hippoRoot, tenantId, conflict.memory_a_id) === null || liveEntry(hippoRoot, tenantId, conflict.memory_b_id) === null) {
|
|
91
|
-
return notFound();
|
|
92
|
-
}
|
|
93
|
-
const resolved = resolveConflict(hippoRoot, { conflictId, keepId: keep, tenantId }, { rejectedBy: ACTOR });
|
|
94
|
-
// Both guards passed above, so null here is a race with another resolver.
|
|
95
|
-
if (resolved === null)
|
|
96
|
-
return already();
|
|
97
|
-
const result = { ok: true, conflictId, keptId: keep, weakenedId: resolved.loserId };
|
|
98
|
-
return { status: 200, body: result, changed: true };
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=dashboard-actions.js.map
|