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
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
// The compaction record's SQL: one record per Claude Code compaction, and the rows its summary's
|
|
2
|
+
// items become.
|
|
3
|
+
import * as path from 'node:path';
|
|
4
|
+
import { otherSessionsRequest } from '../../rules/request-ids.js';
|
|
5
|
+
import { REPLAY_AFTER_MS } from '../../../base/session/compaction-timing.js';
|
|
6
|
+
import { isStringValue } from '../../../base/session/capture-contract.js';
|
|
7
|
+
import { itemWords, restates, writableItemRows } from '../../../base/util/compaction-items.js';
|
|
8
|
+
import { withWriteScopeOr } from '../../../db/index.js';
|
|
9
|
+
import { gatedWrite } from './gated-write.js';
|
|
10
|
+
import { COMPACTION_MEMORY_TAG, COMPACTION_SOURCE_PREFIX, Layer, createMemory, generateId, } from '../../../base/memory/entry.js';
|
|
11
|
+
import { projectId, projectNames } from '../../../base/scope/project-identity.js';
|
|
12
|
+
import { fallbackOrigin } from '../../../host/host.js';
|
|
13
|
+
import { isGlobalStoreRoot } from '../../../host/project-identity.js';
|
|
14
|
+
import { compactionProgress, compactionRowsByRequest, heldMemoryRows, insertStartedCompaction, insertSummarizedCompaction, latestStartedRows, markCompactionDone, markCompactionSummarized, markSnapshotSavedRow, } from './compaction-rows.js';
|
|
15
|
+
import { strengthenRetrievedOn, writeEntryMirrors } from '../entries/entry-writes.js';
|
|
16
|
+
import { updateStats } from '../entries/index-and-stats.js';
|
|
17
|
+
import { errorFields, errorMessage, log as hippoLog } from '../../../base/util/log.js';
|
|
18
|
+
import { handleNow, handleStamp } from '../runtime/handle-clock.js';
|
|
19
|
+
/**
|
|
20
|
+
* Where the session ran: rows written through the global store or a shared store keep the project
|
|
21
|
+
* the session was in.
|
|
22
|
+
*/
|
|
23
|
+
function compactionProject({ host, hippoRoot }, cwd) {
|
|
24
|
+
if (!isGlobalStoreRoot(hippoRoot) && !host.isSharedStore(hippoRoot)) {
|
|
25
|
+
return host.projectIdentity(path.dirname(hippoRoot));
|
|
26
|
+
}
|
|
27
|
+
// No cwd means user-global, as stampOriginProject gives the global store; undefined would fall
|
|
28
|
+
// back to the hook's own cwd.
|
|
29
|
+
return cwd === null ? '' : host.projectIdentity(cwd);
|
|
30
|
+
}
|
|
31
|
+
/** The record column cannot hold NULL, but an item from an unknown folder on a shared store must
|
|
32
|
+
* not read as user-global. */
|
|
33
|
+
function itemOrigin({ host, hippoRoot }, ctx) {
|
|
34
|
+
return ctx.cwd === null && host.isSharedStore(hippoRoot)
|
|
35
|
+
? fallbackOrigin(host, hippoRoot)
|
|
36
|
+
: ctx.originProject;
|
|
37
|
+
}
|
|
38
|
+
export function compactionOrigin(files, cwd) {
|
|
39
|
+
return projectId(compactionProject(files, cwd));
|
|
40
|
+
}
|
|
41
|
+
/** The names a record's held rows may carry: its origin, plus the folder name rows saved before
|
|
42
|
+
* project ids used. */
|
|
43
|
+
function heldOrigins(files, cwd, originProject) {
|
|
44
|
+
const names = projectNames(compactionProject(files, cwd));
|
|
45
|
+
return names.includes(originProject) ? names : [originProject];
|
|
46
|
+
}
|
|
47
|
+
/** The item strings a row holds, or null (after a warning naming the row) once its items_json
|
|
48
|
+
* will not parse. */
|
|
49
|
+
function rowItems(row) {
|
|
50
|
+
if (row.items_json === null)
|
|
51
|
+
return [];
|
|
52
|
+
try {
|
|
53
|
+
const listed = JSON.parse(row.items_json);
|
|
54
|
+
return Array.isArray(listed) ? listed.filter(isStringValue) : [];
|
|
55
|
+
}
|
|
56
|
+
catch (err) {
|
|
57
|
+
hippoLog.warnThenDebug('compaction-items-json', `compaction ${row.id} skipped: its items_json is not valid JSON (${errorMessage(err)})`, errorFields(err));
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/** The record a row holds, or null for a row whose items cannot be read, so one bad row costs
|
|
62
|
+
* only itself. */
|
|
63
|
+
export function toRecord(row) {
|
|
64
|
+
const items = rowItems(row);
|
|
65
|
+
if (items === null)
|
|
66
|
+
return null;
|
|
67
|
+
return {
|
|
68
|
+
id: row.id,
|
|
69
|
+
tenantId: row.tenant_id,
|
|
70
|
+
sessionId: row.session_id,
|
|
71
|
+
originProject: row.origin_project,
|
|
72
|
+
trigger: row.compact_trigger,
|
|
73
|
+
cwd: row.cwd,
|
|
74
|
+
transcriptPath: row.transcript_path,
|
|
75
|
+
snapshotSaved: row.snapshot_saved === 1,
|
|
76
|
+
startedAt: row.started_at,
|
|
77
|
+
summarizedAt: row.summarised_at,
|
|
78
|
+
summary: row.summary,
|
|
79
|
+
items,
|
|
80
|
+
itemsWritten: row.items_written,
|
|
81
|
+
status: row.status,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export function startCompaction(db, tenantId, start, at = handleNow(db)) {
|
|
85
|
+
const id = generateId('cmp');
|
|
86
|
+
insertStartedCompaction(db, tenantId, { id, ...start, startedAt: at.toISOString() });
|
|
87
|
+
return id;
|
|
88
|
+
}
|
|
89
|
+
/** The record a caller's request made, whatever state it reached, so a retry neither writes its
|
|
90
|
+
* items twice nor starts a second record. Another session's id is a ConflictError. */
|
|
91
|
+
export function compactionByRequest(db, { tenantId, requestId, sessionId }) {
|
|
92
|
+
const record = compactionRowsByRequest(db, tenantId, requestId).map(toRecord)[0] ?? null;
|
|
93
|
+
if (record !== null && record.sessionId !== sessionId)
|
|
94
|
+
throw otherSessionsRequest();
|
|
95
|
+
return record;
|
|
96
|
+
}
|
|
97
|
+
/** Pre-compact's record for the compaction that is ending: the session's newest `started` one
|
|
98
|
+
* within REPLAY_AFTER_MS before `at`. An older one is left for the transcript fill. */
|
|
99
|
+
function latestStarted(db, tenantId, sessionId, at) {
|
|
100
|
+
return (latestStartedRows(db, {
|
|
101
|
+
tenantId,
|
|
102
|
+
sessionId,
|
|
103
|
+
notAfter: at.toISOString(),
|
|
104
|
+
notBefore: new Date(at.getTime() - REPLAY_AFTER_MS).toISOString(),
|
|
105
|
+
}).map(toRecord)[0] ?? null);
|
|
106
|
+
}
|
|
107
|
+
export function markSummarized(db, tenantId, id, options) {
|
|
108
|
+
const { text, summarizedAt, requestId } = options;
|
|
109
|
+
return markCompactionSummarized(db, tenantId, id, {
|
|
110
|
+
summary: text.summary,
|
|
111
|
+
itemsJson: JSON.stringify(text.items),
|
|
112
|
+
summarizedAt,
|
|
113
|
+
requestId,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/** On the caller's handle and tenant, so a server marks the record under the caller's tenant
|
|
117
|
+
* with its own wait. */
|
|
118
|
+
export function markSnapshotSaved(db, tenantId, recordId) {
|
|
119
|
+
markSnapshotSavedRow(db, tenantId, recordId);
|
|
120
|
+
}
|
|
121
|
+
/** Puts the summary on the session's `started` record, or inserts a `summarised` one when
|
|
122
|
+
* pre-compact wrote none. One statement each. */
|
|
123
|
+
export function recordSummary(db, files, tenantId, options) {
|
|
124
|
+
const { meta, text, at, caller = {} } = options;
|
|
125
|
+
const now = handleStamp(db);
|
|
126
|
+
const itemsJson = JSON.stringify(text.items);
|
|
127
|
+
const { requestId } = caller;
|
|
128
|
+
const started = latestStarted(db, tenantId, meta.sessionId, at);
|
|
129
|
+
if (started && markSummarized(db, tenantId, started.id, { text, summarizedAt: now, requestId })) {
|
|
130
|
+
return {
|
|
131
|
+
...started,
|
|
132
|
+
summary: text.summary,
|
|
133
|
+
items: text.items,
|
|
134
|
+
summarizedAt: now,
|
|
135
|
+
status: 'summarised',
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
const originProject = caller.originProject ?? compactionOrigin(files, meta.cwd);
|
|
139
|
+
const id = generateId('cmp');
|
|
140
|
+
insertSummarizedCompaction(db, tenantId, { ...meta, originProject, startedAt: at.toISOString() }, { id, summary: text.summary, itemsJson, summarizedAt: now, requestId });
|
|
141
|
+
return {
|
|
142
|
+
id,
|
|
143
|
+
tenantId,
|
|
144
|
+
sessionId: meta.sessionId,
|
|
145
|
+
originProject,
|
|
146
|
+
trigger: meta.trigger,
|
|
147
|
+
cwd: meta.cwd,
|
|
148
|
+
transcriptPath: meta.transcriptPath,
|
|
149
|
+
snapshotSaved: false,
|
|
150
|
+
startedAt: at.toISOString(),
|
|
151
|
+
summarizedAt: now,
|
|
152
|
+
summary: text.summary,
|
|
153
|
+
items: text.items,
|
|
154
|
+
itemsWritten: 0,
|
|
155
|
+
status: 'summarised',
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
/** Live rows of one tenant and origin that default recall shows: a compaction often restates
|
|
159
|
+
* what an earlier one, or the user, already saved. */
|
|
160
|
+
function heldRows(db, tenantId, origins) {
|
|
161
|
+
return heldMemoryRows(db, tenantId, origins).map((r) => ({
|
|
162
|
+
id: r.id,
|
|
163
|
+
sessionId: r.source_session_id,
|
|
164
|
+
words: itemWords(r.content),
|
|
165
|
+
}));
|
|
166
|
+
}
|
|
167
|
+
function compactionEntry({ text, ctx, origin, baseHalfLifeDays, now, }) {
|
|
168
|
+
return {
|
|
169
|
+
...createMemory(text, {
|
|
170
|
+
layer: Layer.Episodic,
|
|
171
|
+
tags: [COMPACTION_MEMORY_TAG],
|
|
172
|
+
source: `${COMPACTION_SOURCE_PREFIX}${ctx.sessionId}`,
|
|
173
|
+
confidence: 'observed',
|
|
174
|
+
kind: 'distilled',
|
|
175
|
+
sourceSessionId: ctx.sessionId,
|
|
176
|
+
tenantId: ctx.tenantId,
|
|
177
|
+
baseHalfLifeDays,
|
|
178
|
+
}, now),
|
|
179
|
+
originProject: origin,
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
/** Runs inside saveItems' transaction: restatements of held rows are counted, the rest go
|
|
183
|
+
* through the write gate. */
|
|
184
|
+
function writeItemRows(db, { files, ctx, rows, baseHalfLifeDays }) {
|
|
185
|
+
const out = { written: [], repeats: 0, refused: 0, restated: [] };
|
|
186
|
+
const held = heldRows(db, ctx.tenantId, ctx.caller?.origins ?? heldOrigins(files, ctx.cwd, ctx.originProject));
|
|
187
|
+
const origin = ctx.caller === undefined ? itemOrigin(files, ctx) : ctx.originProject;
|
|
188
|
+
const restated = new Set();
|
|
189
|
+
for (const text of rows) {
|
|
190
|
+
const textWords = itemWords(text);
|
|
191
|
+
const match = held.find((h) => restates(textWords, h.words));
|
|
192
|
+
if (match) {
|
|
193
|
+
out.repeats++;
|
|
194
|
+
if (match.id !== null && match.sessionId !== ctx.sessionId)
|
|
195
|
+
restated.add(match.id);
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
// createMemory throws below 3 chars, which would sink the whole transaction.
|
|
199
|
+
if (text.trim().length < 3) {
|
|
200
|
+
out.refused++;
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
const entry = compactionEntry({ text, ctx, origin, baseHalfLifeDays, now: files.clock() });
|
|
204
|
+
if (gatedWrite(db, files, entry, { actor: ctx.caller?.actor ?? 'post-compact' }) === 'written') {
|
|
205
|
+
out.written.push(entry);
|
|
206
|
+
held.push({ id: null, sessionId: ctx.sessionId, words: textWords });
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
out.refused++;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
out.restated = [...restated];
|
|
213
|
+
return out;
|
|
214
|
+
}
|
|
215
|
+
/** After commit: report skips, mirror the new rows, bump the counter. */
|
|
216
|
+
function finishItemWrites(db, files, writes, log) {
|
|
217
|
+
if (writes.repeats > 0)
|
|
218
|
+
log(`skipped ${writes.repeats} item(s) the store already holds`);
|
|
219
|
+
if (writes.refused > 0)
|
|
220
|
+
log(`skipped ${writes.refused} item(s) the write gate refused`);
|
|
221
|
+
for (const entry of writes.written)
|
|
222
|
+
writeEntryMirrors(files.hippoRoot, entry);
|
|
223
|
+
if (writes.written.length > 0) {
|
|
224
|
+
try {
|
|
225
|
+
updateStats(db, files, { remembered: writes.written.length });
|
|
226
|
+
}
|
|
227
|
+
catch (err) {
|
|
228
|
+
// The rows are committed; a counter that could not be bumped must not turn that into a failed
|
|
229
|
+
// step.
|
|
230
|
+
log('remembered counter not updated', err);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
/** Items that become rows, then the record `done`, in one transaction so two sessions cannot
|
|
235
|
+
* both insert one text. Mirrors after commit. */
|
|
236
|
+
export function saveItems(db, { files, ctx, log, baseHalfLifeDays }) {
|
|
237
|
+
const rows = writableItemRows(ctx.items, log);
|
|
238
|
+
let finishedItems = 0;
|
|
239
|
+
const writes = withWriteScopeOr(db, 'save_items', (rollback) => {
|
|
240
|
+
if (ctx.recordId !== null) {
|
|
241
|
+
// A replayer that read the record before another finished it must not write its items again.
|
|
242
|
+
const current = compactionProgress(db, ctx.tenantId, ctx.recordId);
|
|
243
|
+
if (current?.status !== 'summarised') {
|
|
244
|
+
finishedItems = current?.items_written ?? 0;
|
|
245
|
+
return rollback(null);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
const written = writeItemRows(db, { files, ctx, rows, baseHalfLifeDays });
|
|
249
|
+
// Said again by another session is the same signal as being recalled; the same session carrying
|
|
250
|
+
// it forward is not.
|
|
251
|
+
const strengthen = {
|
|
252
|
+
tenantId: ctx.tenantId,
|
|
253
|
+
recallBoostAblated: !files.strength.recallStrengthens,
|
|
254
|
+
};
|
|
255
|
+
strengthenRetrievedOn(db, written.restated, strengthen, files);
|
|
256
|
+
if (ctx.recordId !== null) {
|
|
257
|
+
markCompactionDone(db, ctx.tenantId, ctx.recordId, written.written.length);
|
|
258
|
+
}
|
|
259
|
+
return written;
|
|
260
|
+
});
|
|
261
|
+
if (writes === null) {
|
|
262
|
+
log(`${ctx.recordId} was already finished by another process`);
|
|
263
|
+
return finishedItems;
|
|
264
|
+
}
|
|
265
|
+
finishItemWrites(db, files, writes, log);
|
|
266
|
+
return writes.written.length;
|
|
267
|
+
}
|
|
268
|
+
//# sourceMappingURL=compactions-record.js.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { compactionByRequest, recordSummary, saveItems, markSnapshotSaved, startCompaction, } from './compactions-record.js';
|
|
2
|
+
import { bound } from '../runtime/bound.js';
|
|
3
|
+
/** A caller's items, already scrubbed, under its record: a retry of a finished request answers
|
|
4
|
+
* with the first count, and a `summarised` one is reused. */
|
|
5
|
+
function writeCallerItems(db, { files, tenantId, req, log }) {
|
|
6
|
+
const request = { tenantId, requestId: req.requestId, sessionId: req.sessionId };
|
|
7
|
+
const earlier = compactionByRequest(db, request);
|
|
8
|
+
if (earlier !== null && earlier.status !== 'summarised')
|
|
9
|
+
return earlier.itemsWritten;
|
|
10
|
+
const meta = { sessionId: req.sessionId, trigger: req.trigger, cwd: null, transcriptPath: null };
|
|
11
|
+
const text = { summary: '', items: [...req.items] };
|
|
12
|
+
const record = earlier ??
|
|
13
|
+
recordSummary(db, files, tenantId, {
|
|
14
|
+
meta,
|
|
15
|
+
text,
|
|
16
|
+
at: files.clock(),
|
|
17
|
+
caller: { originProject: req.project, requestId: req.requestId },
|
|
18
|
+
});
|
|
19
|
+
return saveItems(db, {
|
|
20
|
+
files,
|
|
21
|
+
ctx: {
|
|
22
|
+
tenantId,
|
|
23
|
+
recordId: record.id,
|
|
24
|
+
sessionId: req.sessionId,
|
|
25
|
+
originProject: record.originProject,
|
|
26
|
+
cwd: null,
|
|
27
|
+
items: record.items,
|
|
28
|
+
caller: { actor: req.owner, origins: req.origins },
|
|
29
|
+
},
|
|
30
|
+
log,
|
|
31
|
+
baseHalfLifeDays: req.baseHalfLifeDays,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/** A caller's items saved, with each note the save logged so the caller can show it. */
|
|
35
|
+
function saveCallerItems(db, files, tenantId, req) {
|
|
36
|
+
const notes = [];
|
|
37
|
+
const written = writeCallerItems(db, {
|
|
38
|
+
files,
|
|
39
|
+
tenantId,
|
|
40
|
+
req,
|
|
41
|
+
log: (message) => {
|
|
42
|
+
notes.push(message);
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
return { written, notes };
|
|
46
|
+
}
|
|
47
|
+
const compactionsBodies = {
|
|
48
|
+
start: startCompaction,
|
|
49
|
+
markSnapshotSaved,
|
|
50
|
+
};
|
|
51
|
+
export function sqliteCompactions({ on, files }) {
|
|
52
|
+
return {
|
|
53
|
+
...bound(on, compactionsBodies),
|
|
54
|
+
...bound(on, {
|
|
55
|
+
saveCallerItems: (db, ...args) => saveCallerItems(db, files, ...args),
|
|
56
|
+
}),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=compactions.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DatabaseSyncLike } from '../../../db/index.js';
|
|
2
|
+
import type { FailureOutcome, FailureSummary, FailureLog } from '../../../base/ports/store/rejections.js';
|
|
3
|
+
import type { OnHandle } from '../runtime/open.js';
|
|
4
|
+
/** The outcome logged for a caller's request id, or null, so a retried send finds the first one;
|
|
5
|
+
* another session's id is a ConflictError. */
|
|
6
|
+
export declare function requestOutcome(db: DatabaseSyncLike, tenantId: string, requestId: string, sessionId: string): FailureOutcome | null;
|
|
7
|
+
/** Failed tool calls logged since `sinceIso`, in every tenant; throws when the table is missing. */
|
|
8
|
+
export declare function countFailuresSince(db: DatabaseSyncLike, sinceIso: string): number;
|
|
9
|
+
/** Sum the failure log for one tenant since `sinceIso`. */
|
|
10
|
+
export declare function summarizeFailures(db: DatabaseSyncLike, tenantId: string, sinceIso: string): FailureSummary;
|
|
11
|
+
export declare function sqliteFailureLog(on: OnHandle): FailureLog;
|
|
12
|
+
//# sourceMappingURL=failure-log.d.ts.map
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// hippo.db's FailureLog group: every failed tool call the capture-error hook sees, stored or not,
|
|
2
|
+
// each call on a handle of its own.
|
|
3
|
+
import { otherSessionsRequest } from '../../rules/request-ids.js';
|
|
4
|
+
import { failuresPerSession } from '../../../base/records/failure-repeats.js';
|
|
5
|
+
import { bound } from '../runtime/bound.js';
|
|
6
|
+
import { cachedStatement } from '../../../db/statement-cache.js';
|
|
7
|
+
import { FAILURE_LOG_RETENTION_DAYS } from '../../../base/records/failure-log-retention.js';
|
|
8
|
+
import { MAX_HOOK_FIELD_LEN } from '../../../base/util/limits.js';
|
|
9
|
+
import { DAY_MS } from '../../../base/util/time.js';
|
|
10
|
+
import { handleNow } from '../runtime/handle-clock.js';
|
|
11
|
+
// The failure log's row and totals: what a failure stores, how long it stays, and how a
|
|
12
|
+
// window's outcomes and repeats add up.
|
|
13
|
+
/** The outcomes a repeat is counted among: a failure the hook judged worth a lesson. */
|
|
14
|
+
const RATED_OUTCOMES = ['stored', 'duplicate', 'store-failed'];
|
|
15
|
+
/** The row `event` stores, stamped in toISOString form since the window and prune compare stamps
|
|
16
|
+
* as text. */
|
|
17
|
+
function failureRow(event, fallbackNow) {
|
|
18
|
+
return {
|
|
19
|
+
ts: new Date(event.now ?? fallbackNow.getTime()).toISOString(),
|
|
20
|
+
tenantId: event.tenantId,
|
|
21
|
+
sessionId: event.sessionId?.slice(0, MAX_HOOK_FIELD_LEN) ?? null,
|
|
22
|
+
tool: event.tool?.slice(0, MAX_HOOK_FIELD_LEN) ?? null,
|
|
23
|
+
outcome: event.outcome,
|
|
24
|
+
rule: event.rule ?? null,
|
|
25
|
+
sigHash: event.sigHash ?? null,
|
|
26
|
+
detailHash: event.detailHash ?? null,
|
|
27
|
+
ownerSubject: event.ownerSubject ?? null,
|
|
28
|
+
originProject: event.originProject ?? null,
|
|
29
|
+
requestId: event.requestId ?? null,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/** The stamp before which a row written at `ts` prunes the log. */
|
|
33
|
+
const retentionCutoff = (ts) => new Date(Date.parse(ts) - FAILURE_LOG_RETENTION_DAYS * DAY_MS).toISOString();
|
|
34
|
+
/** A request's stored session matches the caller's only as stored: cut to the column's length. */
|
|
35
|
+
const sameStoredSession = (stored, sessionId) => stored === sessionId.slice(0, MAX_HOOK_FIELD_LEN);
|
|
36
|
+
/** The window's totals from its per-outcome counts and the tenant's rated rows in id order, the
|
|
37
|
+
* earlier ones too. */
|
|
38
|
+
function failureTotals(sinceIso, count, rated) {
|
|
39
|
+
const outcomes = {
|
|
40
|
+
stored: count('stored'),
|
|
41
|
+
duplicate: count('duplicate'),
|
|
42
|
+
'store-failed': count('store-failed'),
|
|
43
|
+
'skipped-interrupt': count('skipped-interrupt'),
|
|
44
|
+
'skipped-routine': count('skipped-routine'),
|
|
45
|
+
'skipped-invalid': count('skipped-invalid'),
|
|
46
|
+
};
|
|
47
|
+
const sessions = failuresPerSession(rated, sinceIso);
|
|
48
|
+
return {
|
|
49
|
+
since: sinceIso,
|
|
50
|
+
outcomes,
|
|
51
|
+
total: Object.values(outcomes).reduce((sum, n) => sum + n, 0),
|
|
52
|
+
rated: sessions.reduce((sum, s) => sum + s.failures, 0),
|
|
53
|
+
repeats: sessions.reduce((sum, s) => sum + s.repeats, 0),
|
|
54
|
+
sessions: sessions.length,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/** Prune rows past {@link FAILURE_LOG_RETENTION_DAYS}, then append one failure row; returns the
|
|
58
|
+
* new row's id. */
|
|
59
|
+
function recordFailure(db, event) {
|
|
60
|
+
const row = failureRow(event, handleNow(db));
|
|
61
|
+
// Prune first: nothing after the insert can throw, so a returned id always means a committed row.
|
|
62
|
+
cachedStatement(db, `DELETE FROM failure_log WHERE ts < ?`).run(retentionCutoff(row.ts));
|
|
63
|
+
const inserted = cachedStatement(db, `INSERT INTO failure_log (ts, tenant_id, session_id, tool, outcome, skip_rule, sig_hash, detail_hash, ` +
|
|
64
|
+
`owner_subject, origin_project, request_id)
|
|
65
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`).run(row.ts, row.tenantId, row.sessionId, row.tool, row.outcome, row.rule, row.sigHash, row.detailHash, row.ownerSubject, row.originProject, row.requestId);
|
|
66
|
+
return Number(inserted.lastInsertRowid);
|
|
67
|
+
}
|
|
68
|
+
/** The outcome logged for a caller's request id, or null, so a retried send finds the first one;
|
|
69
|
+
* another session's id is a ConflictError. */
|
|
70
|
+
export function requestOutcome(db, tenantId, requestId, sessionId) {
|
|
71
|
+
const row = cachedStatement(db, `SELECT outcome, session_id FROM failure_log WHERE tenant_id = ? AND request_id = ?`).get(tenantId, requestId);
|
|
72
|
+
if (row === undefined)
|
|
73
|
+
return null;
|
|
74
|
+
if (!sameStoredSession(row.session_id, sessionId))
|
|
75
|
+
throw otherSessionsRequest();
|
|
76
|
+
return row.outcome;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* A retry that stored what the first try could not rewrites that row, since the request id allows
|
|
80
|
+
* one row per tenant.
|
|
81
|
+
*/
|
|
82
|
+
function settleFailureOutcome(db, tenantId, requestId, outcome) {
|
|
83
|
+
cachedStatement(db, `UPDATE failure_log SET outcome = ? WHERE tenant_id = ? AND request_id = ?`).run(outcome, tenantId, requestId);
|
|
84
|
+
}
|
|
85
|
+
/** The tenant's rated failures in id order, the ones before the window too: they decide which
|
|
86
|
+
* session hit first. */
|
|
87
|
+
function ratedFailures(db, tenantId) {
|
|
88
|
+
const rows = cachedStatement(db, `SELECT ts, session_id, sig_hash FROM failure_log
|
|
89
|
+
WHERE tenant_id = ? AND session_id IS NOT NULL AND sig_hash IS NOT NULL
|
|
90
|
+
AND outcome IN (SELECT value FROM json_each(?))
|
|
91
|
+
ORDER BY id`).all(tenantId, JSON.stringify(RATED_OUTCOMES));
|
|
92
|
+
return rows.map((r) => ({ ts: r.ts, sessionId: r.session_id, sigHash: r.sig_hash }));
|
|
93
|
+
}
|
|
94
|
+
/** Failed tool calls logged since `sinceIso`, in every tenant; throws when the table is missing. */
|
|
95
|
+
export function countFailuresSince(db, sinceIso) {
|
|
96
|
+
const row = cachedStatement(db, `SELECT COUNT(*) AS n FROM failure_log WHERE ts >= ?`).get(sinceIso);
|
|
97
|
+
return Number(row?.n ?? 0);
|
|
98
|
+
}
|
|
99
|
+
/** Sum the failure log for one tenant since `sinceIso`. */
|
|
100
|
+
export function summarizeFailures(db, tenantId, sinceIso) {
|
|
101
|
+
const rows = cachedStatement(db, `SELECT outcome, COUNT(*) AS n FROM failure_log WHERE tenant_id = ? AND ts >= ? GROUP BY outcome`).all(tenantId, sinceIso);
|
|
102
|
+
const counts = new Map(rows.map((r) => [r.outcome, Number(r.n)]));
|
|
103
|
+
return failureTotals(sinceIso, (outcome) => counts.get(outcome) ?? 0, ratedFailures(db, tenantId));
|
|
104
|
+
}
|
|
105
|
+
const failureLogBodies = {
|
|
106
|
+
record: recordFailure,
|
|
107
|
+
requestOutcome,
|
|
108
|
+
settleOutcome: settleFailureOutcome,
|
|
109
|
+
};
|
|
110
|
+
export function sqliteFailureLog(on) {
|
|
111
|
+
return bound(on, failureLogBodies);
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=failure-log.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DatabaseSyncLike } from '../../../db/index.js';
|
|
2
|
+
import type { MemoryEntry } from '../../../base/memory/entry.js';
|
|
3
|
+
import type { GatedWriteResult } from '../../../base/ports/store/agent-import.js';
|
|
4
|
+
import type { StoreFiles } from '../runtime/open.js';
|
|
5
|
+
/** Runs on the caller's handle so it nests in the caller's transaction (writeEntry would open a
|
|
6
|
+
* second handle and wait on that lock); the caller mirrors after commit with an entry it stamped
|
|
7
|
+
* itself. The rejection audit lands inside that transaction, which is safe because a batch that
|
|
8
|
+
* rolls back stays `summarised` and replay writes the audit again. */
|
|
9
|
+
export declare function gatedWrite(db: DatabaseSyncLike, files: StoreFiles, entry: MemoryEntry, opts?: {
|
|
10
|
+
actor?: string;
|
|
11
|
+
worthCheck?: boolean;
|
|
12
|
+
}): GatedWriteResult;
|
|
13
|
+
//# sourceMappingURL=gated-write.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// The one write path for text no person typed into hippo: capture, compaction items and imported
|
|
2
|
+
// agent memories.
|
|
3
|
+
import { isContentWorthStoring } from '../../../base/memory/memory-quality.js';
|
|
4
|
+
import { RejectedValueError } from '../../../base/errors/api-errors.js';
|
|
5
|
+
import { detectSecret } from '../../../base/util/secret-detect.js';
|
|
6
|
+
import { auditRejectionRefusal } from '../audit/audit-event.js';
|
|
7
|
+
import { stampOriginProject } from '../entries/entry-row.js';
|
|
8
|
+
import { writeEntryDbOnly } from '../entries/entry-writes.js';
|
|
9
|
+
import { CLI_ACTOR } from '../../../base/scope/actor.js';
|
|
10
|
+
/** Runs on the caller's handle so it nests in the caller's transaction (writeEntry would open a
|
|
11
|
+
* second handle and wait on that lock); the caller mirrors after commit with an entry it stamped
|
|
12
|
+
* itself. The rejection audit lands inside that transaction, which is safe because a batch that
|
|
13
|
+
* rolls back stays `summarised` and replay writes the audit again. */
|
|
14
|
+
export function gatedWrite(db, files, entry, opts) {
|
|
15
|
+
// Off for imported agent memories: a person wrote those notes, and a one-line preference fails
|
|
16
|
+
// the check.
|
|
17
|
+
if (opts?.worthCheck !== false && !isContentWorthStoring(entry.content)) {
|
|
18
|
+
return 'skipped:not-worth-storing';
|
|
19
|
+
}
|
|
20
|
+
if (detectSecret(entry).flagged)
|
|
21
|
+
return 'skipped:secret';
|
|
22
|
+
try {
|
|
23
|
+
writeEntryDbOnly(db, stampOriginProject(files, entry), opts);
|
|
24
|
+
return 'written';
|
|
25
|
+
}
|
|
26
|
+
catch (err) {
|
|
27
|
+
if (!(err instanceof RejectedValueError))
|
|
28
|
+
throw err;
|
|
29
|
+
auditRejectionRefusal(db, err, opts?.actor ?? CLI_ACTOR);
|
|
30
|
+
return 'skipped:rejected';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=gated-write.js.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { githubCursor, githubRoute, GITHUB_DLQ, saveGitHubCursor } from './github.js';
|
|
2
|
+
import { listSlackWorkspaces, removeSlackWorkspace, saveSlackCursor, slackCursor, slackTeamRoute, SLACK_DLQ, upsertSlackWorkspace, } from './slack.js';
|
|
3
|
+
import { eventRecord, markEventSeen } from './events.js';
|
|
4
|
+
import { claimDelivery, releaseDelivery } from './replay.js';
|
|
5
|
+
import { answered, bound } from '../runtime/bound.js';
|
|
6
|
+
const queueOf = (connector) => connector === 'slack' ? SLACK_DLQ : GITHUB_DLQ;
|
|
7
|
+
function deadLetters(db, connector, tenantId, which) {
|
|
8
|
+
const queue = queueOf(connector);
|
|
9
|
+
if (!('id' in which))
|
|
10
|
+
return queue.list(db, tenantId, which.limit);
|
|
11
|
+
const row = queue.get(db, tenantId, which.id);
|
|
12
|
+
return row === null ? [] : [row];
|
|
13
|
+
}
|
|
14
|
+
function route(db, query) {
|
|
15
|
+
return query.connector === 'slack' ? slackTeamRoute(db, query.teamId) : githubRoute(db, query);
|
|
16
|
+
}
|
|
17
|
+
function cursor(db, key) {
|
|
18
|
+
return key.connector === 'slack'
|
|
19
|
+
? slackCursor(db, key.tenantId, key.channelId)
|
|
20
|
+
: githubCursor(db, key.tenantId, key.repo, key.stream);
|
|
21
|
+
}
|
|
22
|
+
function saveCursor(db, key, value, opts = {}) {
|
|
23
|
+
const keepSaved = opts.keepSaved === true;
|
|
24
|
+
if (key.connector === 'slack')
|
|
25
|
+
saveSlackCursor(db, key, value, keepSaved);
|
|
26
|
+
else
|
|
27
|
+
saveGitHubCursor(db, key, value, keepSaved);
|
|
28
|
+
}
|
|
29
|
+
const connectorBodies = {
|
|
30
|
+
eventRecord,
|
|
31
|
+
markEventSeen,
|
|
32
|
+
claimDelivery,
|
|
33
|
+
releaseDelivery,
|
|
34
|
+
route,
|
|
35
|
+
markDeadLetterRetried: (db, connector, tenantId, id) => queueOf(connector).markRetried(db, tenantId, id),
|
|
36
|
+
cursor,
|
|
37
|
+
saveCursor,
|
|
38
|
+
slackWorkspaces: listSlackWorkspaces,
|
|
39
|
+
registerSlackWorkspace: upsertSlackWorkspace,
|
|
40
|
+
removeSlackWorkspace,
|
|
41
|
+
};
|
|
42
|
+
export function sqliteConnectorEvents(on) {
|
|
43
|
+
return {
|
|
44
|
+
...bound(on, connectorBodies),
|
|
45
|
+
parkDeadLetter: (letter) => answered(() => on((db) => letter.connector === 'slack'
|
|
46
|
+
? SLACK_DLQ.insert(db, letter)
|
|
47
|
+
: GITHUB_DLQ.insert(db, letter))),
|
|
48
|
+
// SAFETY: queueOf(connector) is the queue holding C's rows, so what it reads is
|
|
49
|
+
// DeadLetterRows[C].
|
|
50
|
+
deadLetters: (connector, tenantId, which) => answered(() => on((db) => deadLetters(db, connector, tenantId, which))),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=connector-events.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Handles } from '../runtime/open.js';
|
|
2
|
+
import type { ConnectorWrites } from '../../../base/ports/store.js';
|
|
3
|
+
/** Each call on its own handle; the mirror follows the commit, so a duplicate or a rolled-back
|
|
4
|
+
* write leaves none. */
|
|
5
|
+
export declare function sqliteConnectorWrites({ on, files }: Handles): ConnectorWrites;
|
|
6
|
+
//# sourceMappingURL=connector-writes.d.ts.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { logEvent, loggedMemory } from './events.js';
|
|
2
|
+
import { bound } from '../runtime/bound.js';
|
|
3
|
+
import { openStore } from '../runtime/handles.js';
|
|
4
|
+
import { recordQuarantine } from './quarantine.js';
|
|
5
|
+
import { stampOriginProject } from '../entries/entry-row.js';
|
|
6
|
+
import { writeEntryMirrors, archiveRaw, writeInOwnTenant } from '../entries/entry-writes.js';
|
|
7
|
+
/** Unwinds a write whose event key is already logged. Caught in this file, so no caller ever
|
|
8
|
+
* sees it. */
|
|
9
|
+
class EventAlreadyLogged extends Error {
|
|
10
|
+
}
|
|
11
|
+
/** The record, then the log row, go in after the memory row and ahead of its remember row, as a
|
|
12
|
+
* second store must order them. */
|
|
13
|
+
function writeWithCompanions(db, { entry, actor, event, quarantine }) {
|
|
14
|
+
writeInOwnTenant(db, entry, actor, (handle, memoryId) => {
|
|
15
|
+
if (quarantine) {
|
|
16
|
+
recordQuarantine(handle, {
|
|
17
|
+
tenantId: entry.tenantId,
|
|
18
|
+
memoryId,
|
|
19
|
+
originalScope: quarantine.originalScope,
|
|
20
|
+
reason: quarantine.reason,
|
|
21
|
+
actor,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
if (event && !logEvent(handle, event, memoryId))
|
|
25
|
+
throw new EventAlreadyLogged();
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function writeOnce(db, write) {
|
|
29
|
+
try {
|
|
30
|
+
writeWithCompanions(db, write);
|
|
31
|
+
return { outcome: 'written' };
|
|
32
|
+
}
|
|
33
|
+
catch (err) {
|
|
34
|
+
if (!(err instanceof EventAlreadyLogged) || !write.event)
|
|
35
|
+
throw err;
|
|
36
|
+
// The scope has unwound, so this reads the winner's committed row.
|
|
37
|
+
return { outcome: 'duplicate', memoryId: loggedMemory(db, write.event) };
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/** archiveRaw with the event logged in its write; the log write's answer is unread: a key logged
|
|
41
|
+
* before keeps its row and the archive stands. */
|
|
42
|
+
function archiveConnectorEntry(db, files, archive) {
|
|
43
|
+
return archiveRaw(db, files, archive, (handle, archivedId) => {
|
|
44
|
+
logEvent(handle, archive.event, archivedId);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/** Each call on its own handle; the mirror follows the commit, so a duplicate or a rolled-back
|
|
48
|
+
* write leaves none. */
|
|
49
|
+
export function sqliteConnectorWrites({ on, files }) {
|
|
50
|
+
return {
|
|
51
|
+
...bound(on, {
|
|
52
|
+
writeConnectorEntry: (db, write) => {
|
|
53
|
+
const entry = stampOriginProject(files, write.entry);
|
|
54
|
+
const result = writeOnce(db, { ...write, entry });
|
|
55
|
+
if (result.outcome === 'written')
|
|
56
|
+
writeEntryMirrors(files.hippoRoot, entry);
|
|
57
|
+
return result;
|
|
58
|
+
},
|
|
59
|
+
}, openStore),
|
|
60
|
+
...bound(on, {
|
|
61
|
+
archiveConnectorEntry: (db, ...args) => archiveConnectorEntry(db, files, ...args),
|
|
62
|
+
}),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=connector-writes.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DatabaseSyncLike } from '../../../db/index.js';
|
|
2
|
+
export type DlqTable = 'slack_dlq' | 'github_dlq';
|
|
3
|
+
type DlqKind = 'int' | 'text' | 'nullableText' | 'count' | 'bucket';
|
|
4
|
+
/** One DLQ column: the item field it fills, its kind, and whether insert writes it (the database
|
|
5
|
+
* sets the rest). */
|
|
6
|
+
export interface DlqColumn {
|
|
7
|
+
field: string;
|
|
8
|
+
column: string;
|
|
9
|
+
kind: DlqKind;
|
|
10
|
+
insert?: true;
|
|
11
|
+
}
|
|
12
|
+
export interface DlqAccess<Item, Insert> {
|
|
13
|
+
insert(db: DatabaseSyncLike, row: Insert): number;
|
|
14
|
+
list(db: DatabaseSyncLike, tenantId: string, limit: number): Item[];
|
|
15
|
+
get(db: DatabaseSyncLike, tenantId: string, id: number): Item | null;
|
|
16
|
+
markRetried(db: DatabaseSyncLike, tenantId: string, id: number): void;
|
|
17
|
+
}
|
|
18
|
+
/** The four statements and the row mapping of one dead-letter table, driven by its column map. */
|
|
19
|
+
export declare function dlqAccess<Item, Insert extends object>(table: DlqTable, columns: readonly DlqColumn[]): DlqAccess<Item, Insert>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=dlq.d.ts.map
|