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,49 @@
|
|
|
1
|
+
import type { MemoryEntry } from './entry.js';
|
|
2
|
+
import { isAutomaticEntry, type AutomaticMemoryDefect } from './memory-quality.js';
|
|
3
|
+
export type AuditSeverity = 'warning' | 'error';
|
|
4
|
+
export interface AuditIssue {
|
|
5
|
+
memoryId: string;
|
|
6
|
+
content: string;
|
|
7
|
+
severity: AuditSeverity;
|
|
8
|
+
reason: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AuditResult {
|
|
11
|
+
total: number;
|
|
12
|
+
issues: AuditIssue[];
|
|
13
|
+
clean: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function auditMemory(entry: MemoryEntry, backsObject?: boolean): AuditIssue | null;
|
|
16
|
+
/** `backing`: ids of memories that back an object (store.memoriesBackingObjects). */
|
|
17
|
+
export declare function auditMemories(entries: MemoryEntry[], backing: ReadonlySet<string>): AuditResult;
|
|
18
|
+
/** Which rows quality repair keeps whatever their defect; data, so a store on a worker thread
|
|
19
|
+
* applies it in its own write. */
|
|
20
|
+
export interface RepairProtection {
|
|
21
|
+
/** A person's pin, kept as 'pinned'. */
|
|
22
|
+
readonly pinned: boolean;
|
|
23
|
+
/** A raw receipt, kept as 'raw receipt'. */
|
|
24
|
+
readonly raw: boolean;
|
|
25
|
+
/** A note kept for good (canAutoDelete refuses it), kept as 'trusted imported note'. */
|
|
26
|
+
readonly trusted: boolean;
|
|
27
|
+
/** A row an object names, whose link repair could not restore, kept as 'backs an object'. */
|
|
28
|
+
readonly objectBacked: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** What quality repair keeps whatever the defect: a person's pin, a raw receipt, a trusted
|
|
31
|
+
* imported note, and a row an object names, since the object's link could not be restored. */
|
|
32
|
+
export declare const PROTECTED_ROWS: RepairProtection;
|
|
33
|
+
/** Why repair must keep `entry` under `protection`, or undefined to let it go. */
|
|
34
|
+
export declare function repairKeeps(entry: MemoryEntry, backsObject: boolean, protection: RepairProtection): string | undefined;
|
|
35
|
+
/** A defect quality repair acts on: a certain one sets the row aside, any other asks a person to
|
|
36
|
+
* review it. */
|
|
37
|
+
export interface RepairDefect {
|
|
38
|
+
readonly reason: string;
|
|
39
|
+
readonly disposition: 'set-aside' | 'review';
|
|
40
|
+
}
|
|
41
|
+
/** The rows quality repair judges: a superseded or archived row is already out of recall. */
|
|
42
|
+
export declare function isRepairCandidate(entry: MemoryEntry): boolean;
|
|
43
|
+
/** The defect quality repair finds in `entry`, or null; `parents` holds whichever of its parents
|
|
44
|
+
* the store still has, live or dormant. */
|
|
45
|
+
export declare function repairDefect(entry: MemoryEntry, parents: ReadonlyMap<string, MemoryEntry>): RepairDefect | null;
|
|
46
|
+
/** The defect a store too old to repair can only report: an automatic row's text alone, for a
|
|
47
|
+
* person to review. */
|
|
48
|
+
export declare function previewDefect(row: Parameters<typeof isAutomaticEntry>[0]): AutomaticMemoryDefect | null;
|
|
49
|
+
//# sourceMappingURL=memory-audit.d.ts.map
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
// The memory-quality audit rules: pure functions of a row, so any store can be audited by them.
|
|
2
|
+
import { canAutoDelete, isKeptForGood } from './keep-rules.js';
|
|
3
|
+
import { assessAutomaticMemory, automaticDefect, BUNDLE_HEADER, isAutomaticEntry, isCertainReason, isFragment, isReleaseCommitNoise, isShortAndUnspecific, MIN_MEMORY_CHARS, MIN_SUBSTANTIVE_WORDS, substantiveWordCount, } from './memory-quality.js';
|
|
4
|
+
import { heldTexts } from '../util/same-text.js';
|
|
5
|
+
export function auditMemory(entry, backsObject = false) {
|
|
6
|
+
const issue = classifyMemory(entry);
|
|
7
|
+
// Error means "auto-remove"; a pinned, raw, kept-for-good or object-backing row is never
|
|
8
|
+
// auto-removed, so it can only warn.
|
|
9
|
+
if (issue?.severity === 'error' && (!canAutoDelete(entry) || backsObject)) {
|
|
10
|
+
const why = entry.pinned
|
|
11
|
+
? 'pinned'
|
|
12
|
+
: entry.kind === 'raw'
|
|
13
|
+
? 'raw'
|
|
14
|
+
: backsObject
|
|
15
|
+
? 'backs an object'
|
|
16
|
+
: 'keep rule';
|
|
17
|
+
return { ...issue, severity: 'warning', reason: `${issue.reason} (${why}, kept)` };
|
|
18
|
+
}
|
|
19
|
+
return issue;
|
|
20
|
+
}
|
|
21
|
+
/** Text this short is an error, not a weak memory. */
|
|
22
|
+
const TRIVIAL_CHARS = 3;
|
|
23
|
+
function classifyMemory(entry) {
|
|
24
|
+
const content = entry.content.trim();
|
|
25
|
+
const defect = formDefect(content) ?? vaguenessDefect(entry, content);
|
|
26
|
+
return defect === null ? null : { memoryId: entry.id, content, ...defect };
|
|
27
|
+
}
|
|
28
|
+
function formDefect(content) {
|
|
29
|
+
if (content.length < TRIVIAL_CHARS) {
|
|
30
|
+
return { severity: 'error', reason: `too short (< ${TRIVIAL_CHARS} chars)` };
|
|
31
|
+
}
|
|
32
|
+
if (content.length < MIN_MEMORY_CHARS) {
|
|
33
|
+
return { severity: 'error', reason: `too short (< ${MIN_MEMORY_CHARS} chars)` };
|
|
34
|
+
}
|
|
35
|
+
if (isReleaseCommitNoise(content)) {
|
|
36
|
+
return { severity: 'error', reason: 'release/commit noise, not a useful memory' };
|
|
37
|
+
}
|
|
38
|
+
if (isFragment(content)) {
|
|
39
|
+
return { severity: 'warning', reason: 'sentence fragment — lacks context' };
|
|
40
|
+
}
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
function vaguenessDefect(entry, content) {
|
|
44
|
+
const substantive = substantiveWordCount(content);
|
|
45
|
+
if (substantive < MIN_SUBSTANTIVE_WORDS) {
|
|
46
|
+
return { severity: 'warning', reason: `only ${substantive} substantive word(s) — too vague` };
|
|
47
|
+
}
|
|
48
|
+
if (isShortAndUnspecific(content)) {
|
|
49
|
+
return { severity: 'warning', reason: 'no specific details (names, paths, numbers, code)' };
|
|
50
|
+
}
|
|
51
|
+
const reason = automaticDefect(entry);
|
|
52
|
+
if (reason !== null) {
|
|
53
|
+
return { severity: 'warning', reason: `automatic memory defect: ${reason}` };
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
/** `backing`: ids of memories that back an object (store.memoriesBackingObjects). */
|
|
58
|
+
export function auditMemories(entries, backing) {
|
|
59
|
+
const issues = [];
|
|
60
|
+
for (const entry of entries) {
|
|
61
|
+
const issue = auditMemory(entry, backing.has(entry.id));
|
|
62
|
+
if (issue)
|
|
63
|
+
issues.push(issue);
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
total: entries.length,
|
|
67
|
+
issues,
|
|
68
|
+
clean: entries.length - issues.length,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
/** What quality repair keeps whatever the defect: a person's pin, a raw receipt, a trusted
|
|
72
|
+
* imported note, and a row an object names, since the object's link could not be restored. */
|
|
73
|
+
export const PROTECTED_ROWS = {
|
|
74
|
+
pinned: true,
|
|
75
|
+
raw: true,
|
|
76
|
+
trusted: true,
|
|
77
|
+
objectBacked: true,
|
|
78
|
+
};
|
|
79
|
+
/** Why repair must keep `entry` under `protection`, or undefined to let it go. */
|
|
80
|
+
export function repairKeeps(entry, backsObject, protection) {
|
|
81
|
+
if (protection.pinned && entry.pinned)
|
|
82
|
+
return 'pinned';
|
|
83
|
+
if (protection.raw && entry.kind === 'raw')
|
|
84
|
+
return 'raw receipt';
|
|
85
|
+
if (protection.trusted && isKeptForGood(entry))
|
|
86
|
+
return 'trusted imported note';
|
|
87
|
+
if (protection.objectBacked && backsObject)
|
|
88
|
+
return 'backs an object';
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
/** The rows quality repair judges: a superseded or archived row is already out of recall. */
|
|
92
|
+
export function isRepairCandidate(entry) {
|
|
93
|
+
return !entry.supersededBy && entry.kind !== 'archived';
|
|
94
|
+
}
|
|
95
|
+
function structured(entry) {
|
|
96
|
+
return (entry.traceOutcome !== null ||
|
|
97
|
+
entry.tags.includes('session-digest') ||
|
|
98
|
+
entry.source === 'auto-promote');
|
|
99
|
+
}
|
|
100
|
+
/** A parent that is gone says nothing about who wrote it, so it counts as a person's. */
|
|
101
|
+
function fromAutomaticParents(entry, parents) {
|
|
102
|
+
return (entry.parents.length > 0 &&
|
|
103
|
+
entry.parents.every((id) => {
|
|
104
|
+
const parent = parents.get(id);
|
|
105
|
+
return parent !== undefined && isAutomaticEntry(parent);
|
|
106
|
+
}));
|
|
107
|
+
}
|
|
108
|
+
/** The defect quality repair finds in `entry`, or null; `parents` holds whichever of its parents
|
|
109
|
+
* the store still has, live or dormant. */
|
|
110
|
+
export function repairDefect(entry, parents) {
|
|
111
|
+
if (structured(entry) || !isAutomaticEntry(entry))
|
|
112
|
+
return null;
|
|
113
|
+
// Only a bundle header marks parts; a refined row keeps its lead line, so it is judged whole.
|
|
114
|
+
if (!BUNDLE_HEADER.test(entry.content)) {
|
|
115
|
+
const { reason } = assessAutomaticMemory(entry.content);
|
|
116
|
+
return reason === null
|
|
117
|
+
? null
|
|
118
|
+
: { reason, disposition: isCertainReason(reason) ? 'set-aside' : 'review' };
|
|
119
|
+
}
|
|
120
|
+
const texts = heldTexts({ ...entry, source: 'consolidation' });
|
|
121
|
+
if (texts.length === 0) {
|
|
122
|
+
return { reason: 'derived bundle has no safely parsed constituents', disposition: 'review' };
|
|
123
|
+
}
|
|
124
|
+
const reasons = texts
|
|
125
|
+
.map((text) => assessAutomaticMemory(text).reason)
|
|
126
|
+
.filter((reason) => reason !== null);
|
|
127
|
+
if (reasons.length === 0)
|
|
128
|
+
return null;
|
|
129
|
+
const certain = reasons.length === texts.length &&
|
|
130
|
+
reasons.every(isCertainReason) &&
|
|
131
|
+
fromAutomaticParents(entry, parents);
|
|
132
|
+
return {
|
|
133
|
+
reason: `derived constituents: ${[...new Set(reasons)].join('; ')}`,
|
|
134
|
+
disposition: certain ? 'set-aside' : 'review',
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
/** The defect a store too old to repair can only report: an automatic row's text alone, for a
|
|
138
|
+
* person to review. */
|
|
139
|
+
export function previewDefect(row) {
|
|
140
|
+
return isAutomaticEntry(row) ? assessAutomaticMemory(row.content).reason : null;
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=memory-audit.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type ConfidenceInputs, type StrengthInputs, type StrengthModel } from './strength.js';
|
|
2
|
+
import { Layer, type MemoryEntry } from './entry.js';
|
|
3
|
+
export declare const BAND_AT_RISK = 3;
|
|
4
|
+
/** Layers in the dashboard's wire order; a layer's index is its place here. */
|
|
5
|
+
export declare const LAYER_ORDER: readonly [Layer.Buffer, Layer.Episodic, Layer.Semantic, Layer.Trace];
|
|
6
|
+
/** Confidence tiers in sort order; any other tier sorts after them. */
|
|
7
|
+
export declare const CONFIDENCE_ORDER: readonly ["verified", "observed", "inferred", "stale"];
|
|
8
|
+
/** Days of created history the dashboard's series spans; an older row counts at its first point. */
|
|
9
|
+
export declare const SERIES_DAYS = 90;
|
|
10
|
+
export interface MemoryFacts {
|
|
11
|
+
strength: number;
|
|
12
|
+
strength7d: number;
|
|
13
|
+
strength30d: number;
|
|
14
|
+
band: number;
|
|
15
|
+
layer: number;
|
|
16
|
+
ageDays: number;
|
|
17
|
+
lastRetrievedDays: number;
|
|
18
|
+
confidence: string;
|
|
19
|
+
agedOut: boolean;
|
|
20
|
+
wrong: boolean;
|
|
21
|
+
}
|
|
22
|
+
/** Index of a layer in `LAYER_ORDER`. */
|
|
23
|
+
export declare function layerIndex(layer: Layer): number;
|
|
24
|
+
/** Days from `thenIso` to `nowMs`, never below 0; 0 when the time does not parse. */
|
|
25
|
+
export declare function daysBetween(thenIso: string, nowMs: number): number;
|
|
26
|
+
/** The band of `entry` at `nowMs`, as memoryFacts judges it. */
|
|
27
|
+
export declare function bandAt(entry: StrengthInputs, nowMs: number, model: StrengthModel): number;
|
|
28
|
+
/** A list shows this many UTF-16 units of content; the store reads one character more, so the
|
|
29
|
+
* cut shows. */
|
|
30
|
+
export declare const LIST_HEAD_CHARS = 240;
|
|
31
|
+
/** The start of a memory's content a list shows, and whether any was left off. */
|
|
32
|
+
export interface ListHead {
|
|
33
|
+
readonly head: string;
|
|
34
|
+
readonly truncated: boolean;
|
|
35
|
+
}
|
|
36
|
+
/** Never splits a surrogate pair. */
|
|
37
|
+
export declare function listHead(content: string): ListHead;
|
|
38
|
+
/** 0 strong, 1 fading, 2 under the at-risk cut. */
|
|
39
|
+
export declare function strengthBucket(value: number): 0 | 1 | 2;
|
|
40
|
+
/** Whole days from `timeMs` back from `nowMs`, held to 0 through SERIES_DAYS; a time to come is
|
|
41
|
+
* today. */
|
|
42
|
+
export declare function seriesDay(timeMs: number, nowMs: number): number;
|
|
43
|
+
/** Strength now and at +7d and +30d, band, age and the confidence split for one entry at
|
|
44
|
+
* `nowMs`. */
|
|
45
|
+
export declare function memoryFacts(entry: StrengthInputs & ConfidenceInputs & Pick<MemoryEntry, 'layer'>, nowMs: number, model: StrengthModel): MemoryFacts;
|
|
46
|
+
//# sourceMappingURL=memory-facts.d.ts.map
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// What the dashboard reads off one memory at an instant. The store's dashboard SQL calls these same
|
|
2
|
+
// functions, so a count, a sort and a listed row never judge one memory two ways.
|
|
3
|
+
import { calculateStrength, confidenceFacets, netWrong, } from './strength.js';
|
|
4
|
+
import { Layer } from './entry.js';
|
|
5
|
+
import { AT_RISK_BELOW, STRONG_FROM } from './strength-bands.js';
|
|
6
|
+
import { DAY_MS } from '../util/time.js';
|
|
7
|
+
/** Band indices, in the order the dashboard's wire names them: pinned, strong, fading, at risk. */
|
|
8
|
+
const BAND_PINNED = 0;
|
|
9
|
+
const BAND_STRONG = 1;
|
|
10
|
+
const BAND_FADING = 2;
|
|
11
|
+
export const BAND_AT_RISK = 3;
|
|
12
|
+
/** Layers in the dashboard's wire order; a layer's index is its place here. */
|
|
13
|
+
export const LAYER_ORDER = [Layer.Buffer, Layer.Episodic, Layer.Semantic, Layer.Trace];
|
|
14
|
+
/** Confidence tiers in sort order; any other tier sorts after them. */
|
|
15
|
+
export const CONFIDENCE_ORDER = ['verified', 'observed', 'inferred', 'stale'];
|
|
16
|
+
/** Days of created history the dashboard's series spans; an older row counts at its first point. */
|
|
17
|
+
export const SERIES_DAYS = 90;
|
|
18
|
+
const AHEAD_7D_MS = 7 * DAY_MS;
|
|
19
|
+
const AHEAD_30D_MS = 30 * DAY_MS;
|
|
20
|
+
/** Index of a layer in `LAYER_ORDER`. */
|
|
21
|
+
export function layerIndex(layer) {
|
|
22
|
+
switch (layer) {
|
|
23
|
+
case Layer.Buffer:
|
|
24
|
+
return 0;
|
|
25
|
+
case Layer.Episodic:
|
|
26
|
+
return 1;
|
|
27
|
+
case Layer.Semantic:
|
|
28
|
+
return 2;
|
|
29
|
+
case Layer.Trace:
|
|
30
|
+
return 3;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/** Days from `thenIso` to `nowMs`, never below 0; 0 when the time does not parse. */
|
|
34
|
+
export function daysBetween(thenIso, nowMs) {
|
|
35
|
+
const days = (nowMs - Date.parse(thenIso)) / DAY_MS;
|
|
36
|
+
return Number.isFinite(days) ? Math.max(0, days) : 0;
|
|
37
|
+
}
|
|
38
|
+
/** A pin wins, then 30-day strength under the at-risk cut, then strength now at or over the
|
|
39
|
+
* strong cut. */
|
|
40
|
+
function bandOf(pinned, strength, strength30d) {
|
|
41
|
+
if (pinned)
|
|
42
|
+
return BAND_PINNED;
|
|
43
|
+
if (strength30d < AT_RISK_BELOW)
|
|
44
|
+
return BAND_AT_RISK;
|
|
45
|
+
return strength >= STRONG_FROM ? BAND_STRONG : BAND_FADING;
|
|
46
|
+
}
|
|
47
|
+
/** The band of `entry` at `nowMs`, as memoryFacts judges it. */
|
|
48
|
+
export function bandAt(entry, nowMs, model) {
|
|
49
|
+
const strength = calculateStrength(entry, new Date(nowMs), model);
|
|
50
|
+
return bandOf(entry.pinned, strength, calculateStrength(entry, new Date(nowMs + AHEAD_30D_MS), model));
|
|
51
|
+
}
|
|
52
|
+
/** A list shows this many UTF-16 units of content; the store reads one character more, so the
|
|
53
|
+
* cut shows. */
|
|
54
|
+
export const LIST_HEAD_CHARS = 240;
|
|
55
|
+
/** Never splits a surrogate pair. */
|
|
56
|
+
export function listHead(content) {
|
|
57
|
+
if (content.length <= LIST_HEAD_CHARS)
|
|
58
|
+
return { head: content, truncated: false };
|
|
59
|
+
let end = LIST_HEAD_CHARS;
|
|
60
|
+
const last = content.charCodeAt(end - 1);
|
|
61
|
+
if (last >= 0xd800 && last <= 0xdbff)
|
|
62
|
+
end -= 1;
|
|
63
|
+
return { head: content.slice(0, end), truncated: true };
|
|
64
|
+
}
|
|
65
|
+
/** 0 strong, 1 fading, 2 under the at-risk cut. */
|
|
66
|
+
export function strengthBucket(value) {
|
|
67
|
+
return value >= STRONG_FROM ? 0 : value >= AT_RISK_BELOW ? 1 : 2;
|
|
68
|
+
}
|
|
69
|
+
/** Whole days from `timeMs` back from `nowMs`, held to 0 through SERIES_DAYS; a time to come is
|
|
70
|
+
* today. */
|
|
71
|
+
export function seriesDay(timeMs, nowMs) {
|
|
72
|
+
return Math.min(SERIES_DAYS, Math.max(0, Math.floor((nowMs - timeMs) / DAY_MS)));
|
|
73
|
+
}
|
|
74
|
+
/** Strength now and at +7d and +30d, band, age and the confidence split for one entry at
|
|
75
|
+
* `nowMs`. */
|
|
76
|
+
export function memoryFacts(entry, nowMs, model) {
|
|
77
|
+
const now = new Date(nowMs);
|
|
78
|
+
const strength = calculateStrength(entry, now, model);
|
|
79
|
+
const strength7d = calculateStrength(entry, new Date(nowMs + AHEAD_7D_MS), model);
|
|
80
|
+
const strength30d = calculateStrength(entry, new Date(nowMs + AHEAD_30D_MS), model);
|
|
81
|
+
const facets = confidenceFacets(entry, now);
|
|
82
|
+
return {
|
|
83
|
+
strength,
|
|
84
|
+
strength7d,
|
|
85
|
+
strength30d,
|
|
86
|
+
band: bandOf(entry.pinned, strength, strength30d),
|
|
87
|
+
layer: layerIndex(entry.layer),
|
|
88
|
+
ageDays: daysBetween(entry.created, nowMs),
|
|
89
|
+
lastRetrievedDays: daysBetween(entry.lastRetrieved, nowMs),
|
|
90
|
+
confidence: facets.tier,
|
|
91
|
+
agedOut: facets.agedOut,
|
|
92
|
+
wrong: netWrong(entry, model) > 0,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=memory-facts.js.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type MemoryEntry } from './entry.js';
|
|
2
|
+
export type AutomaticMemoryDefect = 'too-short' | 'release-activity' | 'sentence-fragment' | 'possible-fragment' | 'subjectless-outcome' | 'raw-output' | 'too-vague' | 'no-specificity';
|
|
3
|
+
/** Text shorter than this holds no fact worth keeping. */
|
|
4
|
+
export declare const MIN_MEMORY_CHARS = 10;
|
|
5
|
+
/** Fewer substantive words than this leave a memory too vague to act on. */
|
|
6
|
+
export declare const MIN_SUBSTANTIVE_WORDS = 2;
|
|
7
|
+
/** `reason` names a defect even when `accepted`: a possible fragment is stored and listed for
|
|
8
|
+
* review. */
|
|
9
|
+
export interface AutomaticMemoryAssessment {
|
|
10
|
+
readonly accepted: boolean;
|
|
11
|
+
readonly reason: AutomaticMemoryDefect | null;
|
|
12
|
+
}
|
|
13
|
+
/** Counts spaced words plus CJK letters without lowering mixed-script counts. */
|
|
14
|
+
export declare function substantiveWordCount(text: string): number;
|
|
15
|
+
/** Preserves the auditor's existing destructive release-noise classification. */
|
|
16
|
+
export declare function isReleaseCommitNoise(text: string): boolean;
|
|
17
|
+
/** Names automatic-capture defects without inventing missing context. */
|
|
18
|
+
export declare function assessAutomaticMemory(content: string): AutomaticMemoryAssessment;
|
|
19
|
+
export declare function isCertainReason(reason: AutomaticMemoryDefect | null): boolean;
|
|
20
|
+
/** The bar for sleep's derived memories and for repair: a defect the checks are sure of, else
|
|
21
|
+
* null. */
|
|
22
|
+
export declare function certainDefect(content: string): AutomaticMemoryDefect | null;
|
|
23
|
+
export declare const BUNDLE_HEADER: RegExp;
|
|
24
|
+
type Provenance = Pick<MemoryEntry, 'source' | 'confidence' | 'content' | 'extractedFrom' | 'dagLevel' | 'tags'>;
|
|
25
|
+
/**
|
|
26
|
+
* A row hippo wrote that no person vouched for: hippo's writers stamp observed or inferred, a
|
|
27
|
+
* person's edit or restore verified.
|
|
28
|
+
*/
|
|
29
|
+
export declare function isAutomaticEntry(entry: Provenance): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The audit's check: a person's row is never judged, and a bundle is flagged only when every part
|
|
32
|
+
* is, as reuse and recent context judge it.
|
|
33
|
+
*/
|
|
34
|
+
export declare function automaticDefect(entry: Provenance): AutomaticMemoryDefect | null;
|
|
35
|
+
/**
|
|
36
|
+
* Whether sleep may derive from a row or share it: a person's text and watch failures always,
|
|
37
|
+
* hippo's own text only without a certain defect.
|
|
38
|
+
*/
|
|
39
|
+
export declare function isReusable(entry: Provenance): boolean;
|
|
40
|
+
/** Short text that names no path, number, proper name or code. */
|
|
41
|
+
export declare function isShortAndUnspecific(text: string): boolean;
|
|
42
|
+
/** The person floor's fragment test, on trimmed text. */
|
|
43
|
+
export declare function isFragment(text: string): boolean;
|
|
44
|
+
/** Admission check for text no person typed: capture and compaction items. */
|
|
45
|
+
export declare function isContentWorthStoring(content: string): boolean;
|
|
46
|
+
/** Recent-context floor: rows hippo wrote meet the automatic check, a person's rows only the
|
|
47
|
+
* older, looser floor. */
|
|
48
|
+
export declare function isWorthSurfacing(entry: MemoryEntry): boolean;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=memory-quality.d.ts.map
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { COMPACTION_MEMORY_TAG, COMPACTION_SOURCE_PREFIX, DAG_LEVEL, } from './entry.js';
|
|
2
|
+
import { heldTexts } from '../util/same-text.js';
|
|
3
|
+
import { MEMORY_QUALITY_STOPWORDS } from '../util/stopwords.js';
|
|
4
|
+
/** Text shorter than this holds no fact worth keeping. */
|
|
5
|
+
export const MIN_MEMORY_CHARS = 10;
|
|
6
|
+
/** Text shorter than this must name a path, number, name or code to be kept. */
|
|
7
|
+
const SPECIFIC_DETAIL_CHARS = 40;
|
|
8
|
+
/** A line that opens on to, for or and and stays shorter than this is a cut-off clause. */
|
|
9
|
+
const FRAGMENT_MAX_CHARS = 50;
|
|
10
|
+
/** Fewer substantive words than this leave a memory too vague to act on. */
|
|
11
|
+
export const MIN_SUBSTANTIVE_WORDS = 2;
|
|
12
|
+
const CJK_LETTERS = /(?=\p{L})(?:\p{Script=Han}|\p{Script=Hiragana}|\p{Script=Katakana})/gu;
|
|
13
|
+
const CHAT_ACRONYMS = /^(?:TODO|FYI|LGTM|IIRC|IMO|IMHO|FWIW|TBD|BTW|ASAP|AFAIK|WIP|NB|PS)$/;
|
|
14
|
+
/** Counts spaced words plus CJK letters without lowering mixed-script counts. */
|
|
15
|
+
export function substantiveWordCount(text) {
|
|
16
|
+
const cjkLetterCount = (text.match(CJK_LETTERS) ?? []).length;
|
|
17
|
+
const spacedCount = text
|
|
18
|
+
.toLowerCase()
|
|
19
|
+
.split(/\s+/)
|
|
20
|
+
.filter((w) => w.length > 2 && !MEMORY_QUALITY_STOPWORDS.has(w)).length;
|
|
21
|
+
return spacedCount + Math.floor(cjkLetterCount / 2);
|
|
22
|
+
}
|
|
23
|
+
/** Preserves the auditor's existing destructive release-noise classification. */
|
|
24
|
+
export function isReleaseCommitNoise(text) {
|
|
25
|
+
return (/^(?:bump|release|prep|tag)\s+(?:to\s+)?v?\d+\.\d+/i.test(text) ||
|
|
26
|
+
/^v?\d+\.\d+\.\d+\s*$/i.test(text) ||
|
|
27
|
+
/^chore(?:\([^)]+\))?:\s*(?:release|bump|version|tag|prep)\b/i.test(text) ||
|
|
28
|
+
/^(?:Merge branch|Merge pull request)\b/i.test(text) ||
|
|
29
|
+
/^WIP\b/i.test(text));
|
|
30
|
+
}
|
|
31
|
+
const NOT_FILLER_WORD = String.raw `(?!(?:the|that|this|it|them|those|these|one|other|something)\b)\S+`;
|
|
32
|
+
const PREFER_TARGET = new RegExp(String.raw `^(?:prefer|use|avoid|never use|don't use)\s+` + NOT_FILLER_WORD, 'i');
|
|
33
|
+
const ALWAYS_NEVER_TARGET = new RegExp(String.raw `\b(?:never|always|must)\s+` + NOT_FILLER_WORD, 'i');
|
|
34
|
+
/** Short preferences and rules carry a useful relationship even without a path or number. */
|
|
35
|
+
function hasNoSpecificity(text) {
|
|
36
|
+
const domainAcronyms = (text.match(/\b[A-Z]{2,6}\b/g) ?? []).filter((a) => !CHAT_ACRONYMS.test(a));
|
|
37
|
+
if (/\d|[A-Z][a-z]{2,}|[/\\.]|[`_{}()[\]]/.test(text))
|
|
38
|
+
return false;
|
|
39
|
+
if (domainAcronyms.length > 0 && /[a-z]/.test(text))
|
|
40
|
+
return false;
|
|
41
|
+
if (PREFER_TARGET.test(text))
|
|
42
|
+
return false;
|
|
43
|
+
if (ALWAYS_NEVER_TARGET.test(text))
|
|
44
|
+
return false;
|
|
45
|
+
return text.split(/\s+/).length < 8 && /^[\w\s,.'"-]+$/.test(text);
|
|
46
|
+
}
|
|
47
|
+
const RELATION_WORD = /\b(?:when|if|unless|because|since|after|before|until|while|so|instead)\b/i;
|
|
48
|
+
const RULE_WORD = /\b(?:never|always|must|don't|do not|make sure|ensure|prefer|avoid)\b/i;
|
|
49
|
+
const VERSION_BUMP = new RegExp(String.raw `^(?:bump|increment|increase|update|set)\s+(?:(?:ios|android|app)\s+)?` +
|
|
50
|
+
String.raw `(?:build(?:\s+number)?|version|release)\s+(?:to\s+)?(?:v?\d|#\d)`, 'i');
|
|
51
|
+
const DEPLOY_ACTION = new RegExp(String.raw `^(?:deploy(?:ed|ing)?|ship(?:ped|ping)?|release(?:d|ing)?)\s+(?:the\s+)?` +
|
|
52
|
+
String.raw `(?:build|release|version|v?\d)\s*(?:v?\d|#\d|\.\d)`, 'i');
|
|
53
|
+
function isRoutineReleaseActivity(text) {
|
|
54
|
+
if (isReleaseCommitNoise(text))
|
|
55
|
+
return true;
|
|
56
|
+
// "Deploy only after the migration has run" is a rule about releases, not a log line.
|
|
57
|
+
if (RELATION_WORD.test(text) || RULE_WORD.test(text))
|
|
58
|
+
return false;
|
|
59
|
+
const subject = text.replace(/^(?:chore|ci|build)(?:\([^)]*\))?:\s*/i, '');
|
|
60
|
+
if (VERSION_BUMP.test(subject))
|
|
61
|
+
return true;
|
|
62
|
+
return (DEPLOY_ACTION.test(subject) ||
|
|
63
|
+
/^(?:deployment|release|build)\s+(?:succeeded|completed|finished)\b/i.test(subject));
|
|
64
|
+
}
|
|
65
|
+
const TRAILING_MARK = /[.!?,;:\s]/;
|
|
66
|
+
// One pass from the end: /[.!?,;:\s]+$/ restarts at every mark of a long run, so it is quadratic on
|
|
67
|
+
// stored text.
|
|
68
|
+
function bareText(text) {
|
|
69
|
+
let end = text.length;
|
|
70
|
+
while (end > 0 && TRAILING_MARK.test(text[end - 1]))
|
|
71
|
+
end--;
|
|
72
|
+
return text.slice(0, end);
|
|
73
|
+
}
|
|
74
|
+
// These endings close whole sentences too ("the branch you push to"), so they are only a possible
|
|
75
|
+
// cut.
|
|
76
|
+
const POSSIBLE_CUT_ENDING = new RegExp(String.raw `\b(?:needs to|depends on|requires|while|with|without|into|for|of|by|to|is|are|was|were|` +
|
|
77
|
+
String.raw `must|should|could|would|might)$`, 'i');
|
|
78
|
+
/** A short leading condition with no rule word, comma or "then": "If the build fails". */
|
|
79
|
+
function isBareCondition(bare) {
|
|
80
|
+
return !/[,;]|\bthen\b/i.test(bare) && !RULE_WORD.test(bare) && bare.split(/\s+/).length <= 6;
|
|
81
|
+
}
|
|
82
|
+
function isDanglingAssertion(text) {
|
|
83
|
+
const bare = bareText(text);
|
|
84
|
+
// Only a lowercase start is a cut: "To rebuild the index, run ..." opens an instruction.
|
|
85
|
+
if (/^(?:to|and|for)\s/.test(bare) && bare.length < FRAGMENT_MAX_CHARS)
|
|
86
|
+
return true;
|
|
87
|
+
// Prepositions, modals and "is" can end a whole sentence ("the branch it merges into"), so only
|
|
88
|
+
// cut-off endings count.
|
|
89
|
+
if (/\b(?:to be|has been|will be|instead of|rather than|such as|than|because|if|unless|when|until|and|or|but)$/i.test(bare) ||
|
|
90
|
+
/\b(?:the|a|an)$/.test(bare)) {
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
return /^(?:if|unless|when|while|until)\b/.test(bare) && isBareCondition(bare);
|
|
94
|
+
}
|
|
95
|
+
/** A capitalised short condition may carry its rule with no comma: "When CI fails we retry
|
|
96
|
+
* once". */
|
|
97
|
+
function isPossibleFragment(text) {
|
|
98
|
+
const bare = bareText(text);
|
|
99
|
+
return (POSSIBLE_CUT_ENDING.test(bare) ||
|
|
100
|
+
(/^(?:If|Unless|When|While|Until)\b/.test(bare) && isBareCondition(bare)));
|
|
101
|
+
}
|
|
102
|
+
const OUTCOME_LEAD = new RegExp(String.raw `^(?:succeeds?|succeeded|fails?|failed|passes|passed|completed|done|successful|success|` +
|
|
103
|
+
String.raw `returned|returns|inserted|updated|deleted)\b`, 'i');
|
|
104
|
+
const OUTCOME_DETAIL = new RegExp(String.raw `\b(?:for|on|in|at|to|from|with|without|by|after|before|under|is|are|was|were|be|been|` +
|
|
105
|
+
String.raw `will|can|must|should|never|always)\b`, 'i');
|
|
106
|
+
/** Each "(...)" up to the first ")" becomes one space, as text.replace(/\([^)]*\)/g, ' ') does,
|
|
107
|
+
* in one pass. */
|
|
108
|
+
function blankAsides(text) {
|
|
109
|
+
let out = '';
|
|
110
|
+
let from = 0;
|
|
111
|
+
for (;;) {
|
|
112
|
+
const open = text.indexOf('(', from);
|
|
113
|
+
// No ")" after this "(" means none after any later "(" either, so the scan ends here.
|
|
114
|
+
const close = open < 0 ? -1 : text.indexOf(')', open + 1);
|
|
115
|
+
if (close < 0)
|
|
116
|
+
return out + text.slice(from);
|
|
117
|
+
out += `${text.slice(from, open)} `;
|
|
118
|
+
from = close + 1;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function isSubjectlessOutcome(text) {
|
|
122
|
+
const lead = OUTCOME_LEAD.exec(text);
|
|
123
|
+
if (lead === null || RELATION_WORD.test(text))
|
|
124
|
+
return false;
|
|
125
|
+
// "Returns 404 for unknown ids" and "Deleted rows must stay deleted" say when or what; "returned
|
|
126
|
+
// 3 matching rows" does not.
|
|
127
|
+
return !OUTCOME_DETAIL.test(blankAsides(text.slice(lead[0].length)));
|
|
128
|
+
}
|
|
129
|
+
// `(?:.*\S)?` ends the quoted command on a non-space, so it and `\s+` never share a run of spaces
|
|
130
|
+
// (no ReDoS).
|
|
131
|
+
const OUTPUT_LINE = new RegExp(String.raw `^(?:\$\s|>\s|(?:stdout|stderr|exit code):|Command\s+['"](?:.*\S)?\s+failed\b|` +
|
|
132
|
+
String.raw `Traceback\b|npm\s+(?:ERR|WARN)\b|error\s+TS\d+\b)`, 'i');
|
|
133
|
+
const STACK_FRAME = /^at\s+\S.*:\d+(?::\d+)?\)?$/;
|
|
134
|
+
const ERROR_LEAD = /^(?:[\w.$]+Error|[\w.$]+Exception):\s/;
|
|
135
|
+
// Log lines say "after" and "while" too, so only a rule word frees a timestamp or level lead: a
|
|
136
|
+
// dated freeze saying never merge.
|
|
137
|
+
const LOG_LEADS = [
|
|
138
|
+
/^\d{4}-\d{2}-\d{2}[T ][\d:.]+(?:Z|[+-][\d:]+)?\s+(?:\[?\w+\]?\s+)?/,
|
|
139
|
+
/^\[(?:info|warn|error|debug)\]/i,
|
|
140
|
+
];
|
|
141
|
+
const DATA_LEADS = [/^\{\s*["']?[\w$-]+["']?\s*:/, /^\[\s*(?:[{["]|-?\d[\d.]*\s*[,\]])/];
|
|
142
|
+
/** Prose after the last closing bracket: "{ retries: 3 } is the default policy". */
|
|
143
|
+
function hasProseAfterData(text) {
|
|
144
|
+
const tail = text.slice(Math.max(text.lastIndexOf('}'), text.lastIndexOf(']')) + 1);
|
|
145
|
+
return (tail.match(/\p{L}{2,}/gu) ?? []).length >= 2;
|
|
146
|
+
}
|
|
147
|
+
function isRawOutput(text) {
|
|
148
|
+
if (OUTPUT_LINE.test(text) || STACK_FRAME.test(text))
|
|
149
|
+
return true;
|
|
150
|
+
if (ERROR_LEAD.test(text))
|
|
151
|
+
return !RELATION_WORD.test(text) && !RULE_WORD.test(text);
|
|
152
|
+
if (LOG_LEADS.some((lead) => lead.test(text)))
|
|
153
|
+
return !RULE_WORD.test(text);
|
|
154
|
+
return DATA_LEADS.some((lead) => lead.test(text)) && !hasProseAfterData(text);
|
|
155
|
+
}
|
|
156
|
+
/** Names automatic-capture defects without inventing missing context. */
|
|
157
|
+
export function assessAutomaticMemory(content) {
|
|
158
|
+
const text = content.trim();
|
|
159
|
+
let reason = null;
|
|
160
|
+
if (text.length < MIN_MEMORY_CHARS)
|
|
161
|
+
reason = 'too-short';
|
|
162
|
+
else if (isRoutineReleaseActivity(text))
|
|
163
|
+
reason = 'release-activity';
|
|
164
|
+
else if (isRawOutput(text))
|
|
165
|
+
reason = 'raw-output';
|
|
166
|
+
else if (isDanglingAssertion(text))
|
|
167
|
+
reason = 'sentence-fragment';
|
|
168
|
+
else if (isSubjectlessOutcome(text))
|
|
169
|
+
reason = 'subjectless-outcome';
|
|
170
|
+
else if (isPossibleFragment(text))
|
|
171
|
+
reason = 'possible-fragment';
|
|
172
|
+
else if (substantiveWordCount(text) < MIN_SUBSTANTIVE_WORDS)
|
|
173
|
+
reason = 'too-vague';
|
|
174
|
+
else if (isShortAndUnspecific(text))
|
|
175
|
+
reason = 'no-specificity';
|
|
176
|
+
return { accepted: reason === null || reason === 'possible-fragment', reason };
|
|
177
|
+
}
|
|
178
|
+
/** Reasons the heuristics can get wrong: repair only lists them for review and derivation still
|
|
179
|
+
* admits them. */
|
|
180
|
+
const UNCERTAIN_REASONS = new Set([
|
|
181
|
+
'too-short',
|
|
182
|
+
'possible-fragment',
|
|
183
|
+
'too-vague',
|
|
184
|
+
'no-specificity',
|
|
185
|
+
]);
|
|
186
|
+
export function isCertainReason(reason) {
|
|
187
|
+
return reason !== null && !UNCERTAIN_REASONS.has(reason);
|
|
188
|
+
}
|
|
189
|
+
/** The bar for sleep's derived memories and for repair: a defect the checks are sure of, else
|
|
190
|
+
* null. */
|
|
191
|
+
export function certainDefect(content) {
|
|
192
|
+
const { reason } = assessAutomaticMemory(content);
|
|
193
|
+
return isCertainReason(reason) ? reason : null;
|
|
194
|
+
}
|
|
195
|
+
// Watch failures ('autolearn') and tool failures keep a fixed "Command 'x' failed" format by
|
|
196
|
+
// design, so they are not judged.
|
|
197
|
+
const AUTOMATIC_SOURCES = new Set(['capture', 'git-learn', 'git', 'consolidation']);
|
|
198
|
+
// Promote and share rewrite the source but keep the tags, so the writer's tag still marks a copy;
|
|
199
|
+
// elsewhere a person may set it.
|
|
200
|
+
const AUTOMATIC_TAGS = new Set(['captured', COMPACTION_MEMORY_TAG, 'git-learned']);
|
|
201
|
+
const COPY_SOURCE = /^(?:promoted|shared):/;
|
|
202
|
+
export const BUNDLE_HEADER = /^\[Consolidated(?: from| pattern from) \d+ related memor(?:y|ies)(?:, newest first)?\]\n\n/;
|
|
203
|
+
/**
|
|
204
|
+
* A row hippo wrote that no person vouched for: hippo's writers stamp observed or inferred, a
|
|
205
|
+
* person's edit or restore verified.
|
|
206
|
+
*/
|
|
207
|
+
export function isAutomaticEntry(entry) {
|
|
208
|
+
if (entry.confidence !== 'observed' && entry.confidence !== 'inferred')
|
|
209
|
+
return false;
|
|
210
|
+
return (AUTOMATIC_SOURCES.has(entry.source) ||
|
|
211
|
+
entry.source.startsWith(COMPACTION_SOURCE_PREFIX) ||
|
|
212
|
+
(COPY_SOURCE.test(entry.source) && entry.tags.some((tag) => AUTOMATIC_TAGS.has(tag))) ||
|
|
213
|
+
entry.extractedFrom !== null ||
|
|
214
|
+
entry.dagLevel >= DAG_LEVEL.extracted ||
|
|
215
|
+
BUNDLE_HEADER.test(entry.content));
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* A bundle's parts are other rows' words, possibly a person's, so a bundle is sure to be junk only
|
|
219
|
+
* when every part is.
|
|
220
|
+
*/
|
|
221
|
+
function bundleParts(entry) {
|
|
222
|
+
return BUNDLE_HEADER.test(entry.content)
|
|
223
|
+
? heldTexts({ content: entry.content, source: 'consolidation' })
|
|
224
|
+
: [];
|
|
225
|
+
}
|
|
226
|
+
function hasCertainDefect(entry) {
|
|
227
|
+
const parts = bundleParts(entry);
|
|
228
|
+
return (parts.length > 0 ? parts : [entry.content]).every((text) => certainDefect(text) !== null);
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The audit's check: a person's row is never judged, and a bundle is flagged only when every part
|
|
232
|
+
* is, as reuse and recent context judge it.
|
|
233
|
+
*/
|
|
234
|
+
export function automaticDefect(entry) {
|
|
235
|
+
if (!isAutomaticEntry(entry))
|
|
236
|
+
return null;
|
|
237
|
+
const parts = bundleParts(entry);
|
|
238
|
+
const reasons = (parts.length > 0 ? parts : [entry.content.trim()]).map((text) => assessAutomaticMemory(text).reason);
|
|
239
|
+
return reasons.every((reason) => reason !== null) ? (reasons[0] ?? null) : null;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Whether sleep may derive from a row or share it: a person's text and watch failures always,
|
|
243
|
+
* hippo's own text only without a certain defect.
|
|
244
|
+
*/
|
|
245
|
+
export function isReusable(entry) {
|
|
246
|
+
return !isAutomaticEntry(entry) || !hasCertainDefect(entry);
|
|
247
|
+
}
|
|
248
|
+
/** Short text that names no path, number, proper name or code. */
|
|
249
|
+
export function isShortAndUnspecific(text) {
|
|
250
|
+
return text.length < SPECIFIC_DETAIL_CHARS && hasNoSpecificity(text);
|
|
251
|
+
}
|
|
252
|
+
/** The person floor's fragment test, on trimmed text. */
|
|
253
|
+
export function isFragment(text) {
|
|
254
|
+
return /^(?:to|for|and) /.test(text) && text.length < FRAGMENT_MAX_CHARS;
|
|
255
|
+
}
|
|
256
|
+
/** Admission check for text no person typed: capture and compaction items. */
|
|
257
|
+
export function isContentWorthStoring(content) {
|
|
258
|
+
return assessAutomaticMemory(content).accepted;
|
|
259
|
+
}
|
|
260
|
+
/** Recent-context floor: rows hippo wrote meet the automatic check, a person's rows only the
|
|
261
|
+
* older, looser floor. */
|
|
262
|
+
export function isWorthSurfacing(entry) {
|
|
263
|
+
if (isAutomaticEntry(entry)) {
|
|
264
|
+
return bundleParts(entry).length > 0
|
|
265
|
+
? !hasCertainDefect(entry)
|
|
266
|
+
: isContentWorthStoring(entry.content);
|
|
267
|
+
}
|
|
268
|
+
const text = entry.content.trim();
|
|
269
|
+
return (text.length >= MIN_MEMORY_CHARS &&
|
|
270
|
+
!isReleaseCommitNoise(text) &&
|
|
271
|
+
!isFragment(text) &&
|
|
272
|
+
substantiveWordCount(text) >= MIN_SUBSTANTIVE_WORDS &&
|
|
273
|
+
!isShortAndUnspecific(text));
|
|
274
|
+
}
|
|
275
|
+
//# sourceMappingURL=memory-quality.js.map
|