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,195 @@
|
|
|
1
|
+
/** One retry policy for outbound HTTP: a timeout on every attempt, backoff on 429 and 5xx, and
|
|
2
|
+
* on a dropped connection where a replay is safe. */
|
|
3
|
+
import { MINUTE_MS } from '../base/util/time.js';
|
|
4
|
+
import { errorCode, errorFields, log } from '../base/util/log.js';
|
|
5
|
+
import { tryParseUrl } from '../base/util/net.js';
|
|
6
|
+
const DEFAULT_ATTEMPTS = 3;
|
|
7
|
+
const DEFAULT_BASE_DELAY_MS = 250;
|
|
8
|
+
const DEFAULT_MAX_DELAY_MS = 8_000;
|
|
9
|
+
const DEFAULT_LLM_TIMEOUT_MS = MINUTE_MS;
|
|
10
|
+
/** LLM calls (consolidation refine, DAG summaries, fact extraction) share one budget; the
|
|
11
|
+
* Anthropic client passes `HIPPO_LLM_TIMEOUT_MS` as `configured`. */
|
|
12
|
+
export function llmTimeoutMs(configured) {
|
|
13
|
+
return configured ?? DEFAULT_LLM_TIMEOUT_MS;
|
|
14
|
+
}
|
|
15
|
+
/** One LLM call with its retries: two full attempts and the longest wait between them, where
|
|
16
|
+
* three slow failures would hold a sleep for 3x the timeout. */
|
|
17
|
+
export function llmTotalMs(timeoutMs = llmTimeoutMs()) {
|
|
18
|
+
return 2 * timeoutMs + DEFAULT_MAX_DELAY_MS;
|
|
19
|
+
}
|
|
20
|
+
export function isRetryableStatus(status) {
|
|
21
|
+
return status === 429 || (status >= 500 && status <= 599);
|
|
22
|
+
}
|
|
23
|
+
/** Retry-After as milliseconds: delta-seconds or an HTTP date; null when absent or unreadable. */
|
|
24
|
+
export function parseRetryAfterMs(header, now = Date.now()) {
|
|
25
|
+
if (header === null || header.trim() === '')
|
|
26
|
+
return null;
|
|
27
|
+
const seconds = Number(header);
|
|
28
|
+
if (Number.isFinite(seconds))
|
|
29
|
+
return Math.max(0, seconds * 1000);
|
|
30
|
+
const at = Date.parse(header);
|
|
31
|
+
return Number.isNaN(at) ? null : Math.max(0, at - now);
|
|
32
|
+
}
|
|
33
|
+
// Node's fetch reports a broken socket as a bare `fetch failed` with one of these on its cause.
|
|
34
|
+
const TRANSIENT_CODES = new Set([
|
|
35
|
+
'ECONNRESET',
|
|
36
|
+
'ETIMEDOUT',
|
|
37
|
+
'EAI_AGAIN',
|
|
38
|
+
'UND_ERR_SOCKET',
|
|
39
|
+
'UND_ERR_CONNECT_TIMEOUT',
|
|
40
|
+
'UND_ERR_HEADERS_TIMEOUT',
|
|
41
|
+
]);
|
|
42
|
+
/** A dropped connection, a DNS hiccup or a timed-out attempt: faults a second try can clear. A
|
|
43
|
+
* refused connection is not one. */
|
|
44
|
+
export function isTransientTransportError(err) {
|
|
45
|
+
if (!(err instanceof Error))
|
|
46
|
+
return false;
|
|
47
|
+
if (err.name === 'TimeoutError')
|
|
48
|
+
return true;
|
|
49
|
+
const holder = err.cause instanceof Object ? err.cause : err;
|
|
50
|
+
const code = 'code' in holder ? String(holder.code) : '';
|
|
51
|
+
return TRANSIENT_CODES.has(code) || err.message.toLowerCase().includes('socket hang up');
|
|
52
|
+
}
|
|
53
|
+
function isIdempotent(method) {
|
|
54
|
+
const verb = (method ?? 'GET').toUpperCase();
|
|
55
|
+
return verb === 'GET' || verb === 'HEAD';
|
|
56
|
+
}
|
|
57
|
+
/** Host plus pathname only: a query string can carry a key. */
|
|
58
|
+
function redactedTarget(url) {
|
|
59
|
+
const u = url instanceof URL ? url : tryParseUrl(url);
|
|
60
|
+
return u === undefined ? 'unparseable-url' : `${u.host}${u.pathname}`;
|
|
61
|
+
}
|
|
62
|
+
function logRetry(entry) {
|
|
63
|
+
const { init, url, reason, attempt, attempts, delayMs } = entry;
|
|
64
|
+
// Debug: an attempt that may still succeed is not a warning, and the caller reports the final
|
|
65
|
+
// failure.
|
|
66
|
+
log.debug('http retry', {
|
|
67
|
+
method: (init.method ?? 'GET').toUpperCase(),
|
|
68
|
+
target: redactedTarget(url),
|
|
69
|
+
reason,
|
|
70
|
+
attempt: `${attempt}/${attempts}`,
|
|
71
|
+
delayMs: Math.round(delayMs),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
// `cancel` clears the timer, so a wait the caller left does not keep the process alive.
|
|
75
|
+
const timerSleep = (ms, cancel) => new Promise((resolve) => {
|
|
76
|
+
const timer = setTimeout(resolve, ms);
|
|
77
|
+
cancel?.addEventListener('abort', () => clearTimeout(timer), { once: true });
|
|
78
|
+
});
|
|
79
|
+
/** The wait between attempts. With a caller signal it ends the moment that signal aborts and
|
|
80
|
+
* rejects with its reason, so no further attempt starts. */
|
|
81
|
+
async function backoffWait(ms, sleep, signal) {
|
|
82
|
+
if (!signal)
|
|
83
|
+
return (sleep ?? timerSleep)(ms);
|
|
84
|
+
signal.throwIfAborted();
|
|
85
|
+
const left = new AbortController();
|
|
86
|
+
const aborted = new Promise((_resolve, reject) => {
|
|
87
|
+
signal.addEventListener('abort', () => reject(signal.reason), {
|
|
88
|
+
once: true,
|
|
89
|
+
signal: left.signal,
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
try {
|
|
93
|
+
// An injected sleep cannot be cancelled, so it is raced and left to run out.
|
|
94
|
+
await Promise.race([sleep ? sleep(ms) : timerSleep(ms, left.signal), aborted]);
|
|
95
|
+
}
|
|
96
|
+
finally {
|
|
97
|
+
left.abort();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/** 429, and 5xx for a replay-safe call: a 5xx can come after the far side committed, while a 429
|
|
101
|
+
* refused the call unrun. */
|
|
102
|
+
const defaultRetryOn = (replaySafe) => (res) => res.status === 429 || (replaySafe && isRetryableStatus(res.status));
|
|
103
|
+
/** `fetch` with a per-attempt timeout and up to `attempts` tries on 429 and, for a replay-safe
|
|
104
|
+
* call (see `retryTransport`), on 5xx and transport faults; the last response or error comes
|
|
105
|
+
* back as is. */
|
|
106
|
+
export async function fetchWithRetry(url, init, policy) {
|
|
107
|
+
const run = retryRun(url, init, policy);
|
|
108
|
+
const { fetchFn, deadline, now } = run;
|
|
109
|
+
for (let attempt = 1;; attempt++) {
|
|
110
|
+
const timeout = AbortSignal.timeout(Math.max(1, Math.min(policy.timeoutMs, deadline - now())));
|
|
111
|
+
const signal = init.signal ? AbortSignal.any([init.signal, timeout]) : timeout;
|
|
112
|
+
let res;
|
|
113
|
+
try {
|
|
114
|
+
res = await fetchFn(url, { ...init, signal });
|
|
115
|
+
}
|
|
116
|
+
catch (err) {
|
|
117
|
+
await backoffWait(faultDelay(run, attempt, err), policy.sleep, init.signal);
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
const delay = responseDelay(run, attempt, res);
|
|
121
|
+
if (delay === null)
|
|
122
|
+
return res;
|
|
123
|
+
// Frees the pooled socket before the next attempt.
|
|
124
|
+
try {
|
|
125
|
+
await res.body?.cancel();
|
|
126
|
+
}
|
|
127
|
+
catch (err) {
|
|
128
|
+
// Best-effort: the response is spent either way, so a failed cancel only leaves the socket to
|
|
129
|
+
// idle out.
|
|
130
|
+
log.debug('http retry: body cancel failed', errorFields(err));
|
|
131
|
+
}
|
|
132
|
+
const reason = `status ${res.status}`;
|
|
133
|
+
logRetry({ init, url, reason, attempt, attempts: run.attempts, delayMs: delay });
|
|
134
|
+
await backoffWait(delay, policy.sleep, init.signal);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function retryRun(url, init, policy) {
|
|
138
|
+
const fetchFn = policy.fetchFn ?? fetch;
|
|
139
|
+
const attempts = Math.max(1, policy.attempts ?? DEFAULT_ATTEMPTS);
|
|
140
|
+
const baseDelayMs = policy.baseDelayMs ?? DEFAULT_BASE_DELAY_MS;
|
|
141
|
+
const maxDelayMs = policy.maxDelayMs ?? DEFAULT_MAX_DELAY_MS;
|
|
142
|
+
const random = policy.random ?? Math.random;
|
|
143
|
+
const replaySafe = policy.retryTransport ?? isIdempotent(init.method);
|
|
144
|
+
const retryOn = policy.retryOn ?? defaultRetryOn(replaySafe);
|
|
145
|
+
const now = policy.now ?? Date.now;
|
|
146
|
+
const deadline = policy.totalMs === undefined ? Infinity : now() + policy.totalMs;
|
|
147
|
+
const fitsBudget = (delayMs) => now() + delayMs < deadline;
|
|
148
|
+
// Jitter over the upper half keeps parallel callers from retrying in lockstep.
|
|
149
|
+
const backoffMs = (attempt) => {
|
|
150
|
+
const ceiling = Math.min(maxDelayMs, baseDelayMs * 2 ** (attempt - 1));
|
|
151
|
+
return ceiling / 2 + random() * (ceiling / 2);
|
|
152
|
+
};
|
|
153
|
+
return {
|
|
154
|
+
url,
|
|
155
|
+
init,
|
|
156
|
+
fetchFn,
|
|
157
|
+
attempts,
|
|
158
|
+
maxDelayMs,
|
|
159
|
+
replaySafe,
|
|
160
|
+
retryOn,
|
|
161
|
+
now,
|
|
162
|
+
deadline,
|
|
163
|
+
fitsBudget,
|
|
164
|
+
backoffMs,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
/** The wait before replaying an attempt that threw; rethrows `err` when no replay may follow. */
|
|
168
|
+
function faultDelay(run, attempt, err) {
|
|
169
|
+
const { init, url, attempts } = run;
|
|
170
|
+
// The caller's own abort is a decision, not a fault, so it ends the call.
|
|
171
|
+
if (!run.replaySafe ||
|
|
172
|
+
attempt >= attempts ||
|
|
173
|
+
init.signal?.aborted ||
|
|
174
|
+
!isTransientTransportError(err)) {
|
|
175
|
+
throw err;
|
|
176
|
+
}
|
|
177
|
+
const delay = run.backoffMs(attempt);
|
|
178
|
+
if (!run.fitsBudget(delay))
|
|
179
|
+
throw err;
|
|
180
|
+
const reason = errorCode(err) || (err instanceof Error ? err.name : 'transport');
|
|
181
|
+
logRetry({ init, url, reason, attempt, attempts, delayMs: delay });
|
|
182
|
+
return delay;
|
|
183
|
+
}
|
|
184
|
+
/** The wait before replaying `res`, or null to hand it back. */
|
|
185
|
+
function responseDelay(run, attempt, res) {
|
|
186
|
+
const { retryOn } = run;
|
|
187
|
+
if (!retryOn(res) || attempt >= run.attempts)
|
|
188
|
+
return null;
|
|
189
|
+
const retryAfter = parseRetryAfterMs(res.headers.get('retry-after'));
|
|
190
|
+
if (retryAfter !== null && retryAfter > run.maxDelayMs)
|
|
191
|
+
return null;
|
|
192
|
+
const delay = retryAfter ?? run.backoffMs(attempt);
|
|
193
|
+
return run.fitsBudget(delay) ? delay : null;
|
|
194
|
+
}
|
|
195
|
+
//# sourceMappingURL=http-retry.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Http } from '../base/ports/http.js';
|
|
2
|
+
/** Http over `fetcher`; with none, the global fetch as it stands at each call, so a test's spy
|
|
3
|
+
* on it is seen. */
|
|
4
|
+
export declare function httpOver(fetcher?: typeof fetch): Http;
|
|
5
|
+
export declare const processHttp: Http;
|
|
6
|
+
//# sourceMappingURL=http.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { fetchWithRetry } from './http-retry.js';
|
|
2
|
+
/** Http over `fetcher`; with none, the global fetch as it stands at each call, so a test's spy
|
|
3
|
+
* on it is seen. */
|
|
4
|
+
export function httpOver(fetcher) {
|
|
5
|
+
return {
|
|
6
|
+
send: (url, init, policy) => fetchWithRetry(url, init, { ...policy, fetchFn: fetcher }),
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export const processHttp = httpOver();
|
|
10
|
+
//# sourceMappingURL=http.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Typed judgment over capture candidates via TypeSafe's Jev (System One).
|
|
2
|
+
* Regex picks WHAT is a candidate; it cannot say what is worth keeping, so every captured memory currently lands on a
|
|
3
|
+
* flat schema_fit of 0.5. */
|
|
4
|
+
import { ConfidenceLevel, EmotionalValence } from '../base/memory/entry.js';
|
|
5
|
+
import type { Http } from '../base/ports/http.js';
|
|
6
|
+
export type JudgedKind = 'error' | 'decision' | 'convention' | 'preference' | 'trivia';
|
|
7
|
+
export interface Judgment {
|
|
8
|
+
/** Jev noul, 0..1. Maps to `schema_fit` on the written entry. */
|
|
9
|
+
durable: number;
|
|
10
|
+
kind: JudgedKind;
|
|
11
|
+
valence: EmotionalValence;
|
|
12
|
+
confidence: ConfidenceLevel;
|
|
13
|
+
/** Jev's calibrated confidence on the kind choice, 0..1. */
|
|
14
|
+
kindConfidence: number;
|
|
15
|
+
}
|
|
16
|
+
export interface JudgeOptions {
|
|
17
|
+
apiKey: string;
|
|
18
|
+
model?: string;
|
|
19
|
+
/** Sends each request; a root passes the real one, a test one over its own fetch. */
|
|
20
|
+
http: Http;
|
|
21
|
+
/** Bounded parallelism for `judgeOver`. */
|
|
22
|
+
concurrency?: number;
|
|
23
|
+
}
|
|
24
|
+
/** Judge many candidates under a bounded concurrency pool, order preserved. */
|
|
25
|
+
export declare function judgeOver(contents: readonly string[], opts: JudgeOptions): Promise<(Judgment | null)[]>;
|
|
26
|
+
//# sourceMappingURL=judgment.d.ts.map
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/** Typed judgment over capture candidates via TypeSafe's Jev (System One).
|
|
2
|
+
* Regex picks WHAT is a candidate; it cannot say what is worth keeping, so every captured memory currently lands on a
|
|
3
|
+
* flat schema_fit of 0.5. */
|
|
4
|
+
import { errorFields, errorMessage, log } from '../base/util/log.js';
|
|
5
|
+
import { readCappedJson, readCappedText } from '../base/util/capped-json.js';
|
|
6
|
+
import { MAX_REPLY_BYTES } from '../base/util/limits.js';
|
|
7
|
+
import { isJsonNumber, isJsonObject, knownOption } from '../base/util/json.js';
|
|
8
|
+
import { JEV_MODEL, postScoring, TYPESAFE_ENDPOINT } from './rerankers/endpoint.js';
|
|
9
|
+
const MAX_CONCURRENCY = 8;
|
|
10
|
+
const JUDGE_MAX_ERROR_BYTES = 4096;
|
|
11
|
+
// The kind-confidence at or above which a judged answer counts as observed, not inferred.
|
|
12
|
+
const OBSERVED_CONFIDENCE_MIN = 0.8;
|
|
13
|
+
/**
|
|
14
|
+
* One named answer of a Jev reply `{ answers: { <name>: Answer } }`; an empty object when the reply
|
|
15
|
+
* has none of that shape.
|
|
16
|
+
*/
|
|
17
|
+
function answerNamed(reply, name) {
|
|
18
|
+
const answers = isJsonObject(reply) ? reply.answers : undefined;
|
|
19
|
+
const answer = isJsonObject(answers) ? answers[name] : undefined;
|
|
20
|
+
return isJsonObject(answer) ? answer : {};
|
|
21
|
+
}
|
|
22
|
+
const QUESTIONS = {
|
|
23
|
+
durable: {
|
|
24
|
+
type: 'noul',
|
|
25
|
+
instructions: 'This text was extracted from an AI coding agent transcript as a candidate memory. It is worth storing ' +
|
|
26
|
+
'long-term only if it would still be useful to a future agent working on this codebase weeks from now: a ' +
|
|
27
|
+
'durable preference, a convention, a decision with a reason, or a gotcha that will recur. Transient chatter, ' +
|
|
28
|
+
'one-off status, restatements of code already in the repo, and anything only true inside this one session are ' +
|
|
29
|
+
'not worth storing.',
|
|
30
|
+
},
|
|
31
|
+
kind: {
|
|
32
|
+
type: 'choice',
|
|
33
|
+
instructions: 'Classify what kind of durable knowledge this is.',
|
|
34
|
+
criteria: {
|
|
35
|
+
error: 'A failure, gotcha, or thing that went wrong, and why.',
|
|
36
|
+
decision: 'A choice that was made, ideally with its reason.',
|
|
37
|
+
convention: 'A rule, standard, or way this project does things.',
|
|
38
|
+
preference: 'A stated preference of the user or team.',
|
|
39
|
+
trivia: 'None of the above; incidental detail with no reuse value.',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
valence: {
|
|
43
|
+
type: 'choice',
|
|
44
|
+
instructions: 'Classify the emotional charge of this memory for replay priority.',
|
|
45
|
+
criteria: {
|
|
46
|
+
critical: 'A costly failure or a rule whose violation causes real damage.',
|
|
47
|
+
negative: 'Something that went wrong, or a warning.',
|
|
48
|
+
positive: 'Something that worked, or a confirmed good approach.',
|
|
49
|
+
neutral: 'Plain fact with no success or failure charge.',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
const KINDS = ['error', 'decision', 'convention', 'preference', 'trivia'];
|
|
54
|
+
const VALENCES = ['critical', 'negative', 'positive', 'neutral'];
|
|
55
|
+
/** `verified` is unreachable: that tier means a human or a test confirmed it. */
|
|
56
|
+
function toConfidenceTier(kindConfidence) {
|
|
57
|
+
if (kindConfidence >= OBSERVED_CONFIDENCE_MIN)
|
|
58
|
+
return 'observed';
|
|
59
|
+
return 'inferred';
|
|
60
|
+
}
|
|
61
|
+
/** Capture-time judging must not hold a write for long: one budget for the call, shorter than
|
|
62
|
+
* the LLM calls. */
|
|
63
|
+
const JUDGE_TIMEOUT_MS = 15_000;
|
|
64
|
+
async function post(content, opts) {
|
|
65
|
+
let res;
|
|
66
|
+
try {
|
|
67
|
+
res = await postScoring(opts.http, {
|
|
68
|
+
url: TYPESAFE_ENDPOINT,
|
|
69
|
+
token: opts.apiKey,
|
|
70
|
+
body: { state: content, model: opts.model ?? JEV_MODEL, questions: QUESTIONS },
|
|
71
|
+
budgetMs: JUDGE_TIMEOUT_MS,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
catch (err) {
|
|
75
|
+
log.warn(`judge: request failed: ${errorMessage(err)}`, errorFields(err));
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
if (res.ok)
|
|
79
|
+
return res;
|
|
80
|
+
// The body is the server's reply, never the request, so it cannot hold the key.
|
|
81
|
+
const snippet = (await readCappedText(res, JUDGE_MAX_ERROR_BYTES).catch((err) => {
|
|
82
|
+
log.debug(`judge: error body unreadable: ${errorMessage(err)}`, errorFields(err));
|
|
83
|
+
return '';
|
|
84
|
+
})).slice(0, 200);
|
|
85
|
+
log.warn('judge: non-2xx reply', { status: res.status, body: snippet });
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
/** `null` on any failure, so a Jev outage degrades capture to today's behaviour instead of
|
|
89
|
+
* blocking the write. */
|
|
90
|
+
async function judge(content, opts) {
|
|
91
|
+
const trimmed = content.trim();
|
|
92
|
+
if (trimmed.length < 3)
|
|
93
|
+
return null;
|
|
94
|
+
const res = await post(trimmed, opts);
|
|
95
|
+
if (!res)
|
|
96
|
+
return null;
|
|
97
|
+
let data;
|
|
98
|
+
try {
|
|
99
|
+
data = await readCappedJson(res, MAX_REPLY_BYTES);
|
|
100
|
+
}
|
|
101
|
+
catch (err) {
|
|
102
|
+
log.warnThenDebug('judge-unreadable', `judge: unreadable response: ${errorMessage(err)}`, errorFields(err));
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
const durable = answerNamed(data, 'durable').noul;
|
|
106
|
+
const kindAnswer = answerNamed(data, 'kind');
|
|
107
|
+
const kind = knownOption(KINDS, kindAnswer.choice) ?? null;
|
|
108
|
+
const valence = knownOption(VALENCES, answerNamed(data, 'valence').choice) ?? null;
|
|
109
|
+
if (!isJsonNumber(durable) || durable < 0 || durable > 1 || !kind || !valence)
|
|
110
|
+
return null;
|
|
111
|
+
const kindConfidence = isJsonNumber(kindAnswer.confidence) ? kindAnswer.confidence : 0;
|
|
112
|
+
return { durable, kind, valence, confidence: toConfidenceTier(kindConfidence), kindConfidence };
|
|
113
|
+
}
|
|
114
|
+
/** Judge many candidates under a bounded concurrency pool, order preserved. */
|
|
115
|
+
export async function judgeOver(contents, opts) {
|
|
116
|
+
const out = Array.from({ length: contents.length }, () => null);
|
|
117
|
+
const limit = Math.max(1, opts.concurrency ?? MAX_CONCURRENCY);
|
|
118
|
+
let cursor = 0;
|
|
119
|
+
const worker = async () => {
|
|
120
|
+
while (cursor < contents.length) {
|
|
121
|
+
const i = cursor++;
|
|
122
|
+
out[i] = await judge(contents[i], opts);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
await Promise.all(Array.from({ length: Math.min(limit, contents.length) }, worker));
|
|
126
|
+
return out;
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=judgment.js.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { EmbeddingRole } from '../base/ports/embedder.js';
|
|
2
|
+
/**
|
|
3
|
+
* The one call this file makes on a Transformers.js feature-extraction pipeline, and the part of
|
|
4
|
+
* its tensor it reads.
|
|
5
|
+
*/
|
|
6
|
+
interface EmbeddingPipeline {
|
|
7
|
+
(input: string, options: {
|
|
8
|
+
pooling: 'cls' | 'mean';
|
|
9
|
+
normalize: boolean;
|
|
10
|
+
}): Promise<{
|
|
11
|
+
data: ArrayLike<number>;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
type PipelineFactory = (task: 'feature-extraction', model: string, options: {
|
|
15
|
+
quantized: boolean;
|
|
16
|
+
}) => Promise<EmbeddingPipeline>;
|
|
17
|
+
/** The settings written on the package's `env` object. */
|
|
18
|
+
interface TransformersEnv {
|
|
19
|
+
cacheDir?: string;
|
|
20
|
+
localModelPath?: string;
|
|
21
|
+
allowRemoteModels?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/** The parts of the optional package's module this file reads; either export spelling may carry
|
|
24
|
+
* `pipeline`. */
|
|
25
|
+
interface TransformersModule {
|
|
26
|
+
env?: TransformersEnv;
|
|
27
|
+
pipeline?: PipelineFactory;
|
|
28
|
+
default?: {
|
|
29
|
+
pipeline?: PipelineFactory;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/** BGE was trained with CLS pooling; everything else gets mean, the sentence-transformers
|
|
33
|
+
* default, since CLS degrades mean-trained models. */
|
|
34
|
+
export declare function poolingFor(model: string): 'cls' | 'mean';
|
|
35
|
+
/** e5 models only match a query to a passage when each side carries its trained prefix. */
|
|
36
|
+
export declare function prefixFor(model: string, role?: EmbeddingRole): string;
|
|
37
|
+
/** The optional package as the local embedder reaches it; tests hand in a stand-in. */
|
|
38
|
+
export interface LocalTransformers {
|
|
39
|
+
/** Whether a package is installed, answered without importing it. */
|
|
40
|
+
installed(): boolean;
|
|
41
|
+
/** The package's module, or null when neither package is installed. */
|
|
42
|
+
load(): Promise<{
|
|
43
|
+
readonly name: string;
|
|
44
|
+
readonly mod: TransformersModule;
|
|
45
|
+
} | null>;
|
|
46
|
+
}
|
|
47
|
+
export interface LocalEmbedder {
|
|
48
|
+
isAvailable(): boolean;
|
|
49
|
+
/** Throws, with the reason, when the model's pipeline cannot load: a provider-level failure,
|
|
50
|
+
* not a per-item skip. `signal` ends the wait, never the load, and only once the load is
|
|
51
|
+
* downloading: a load from disk ends soon on its own, a download may not. */
|
|
52
|
+
requirePipeline(model: string, signal?: AbortSignal): Promise<void>;
|
|
53
|
+
/** `text`'s vector, or `[]` when the model is missing or fails; `role` adds e5-style prefixes. */
|
|
54
|
+
embed(text: string, model: string, role?: EmbeddingRole): Promise<number[]>;
|
|
55
|
+
}
|
|
56
|
+
/** One pipeline per model for the embedder's life, since a pipeline is expensive to load. */
|
|
57
|
+
export declare function createLocalEmbedder(transformers?: LocalTransformers): LocalEmbedder;
|
|
58
|
+
/** The process's embedder, shared by every provider and caller so each model loads once. */
|
|
59
|
+
export declare const sharedLocalEmbedder: LocalEmbedder;
|
|
60
|
+
/** Embeds `text` with the local model, or returns `[]` when Transformers.js is missing or fails;
|
|
61
|
+
* `role` adds e5-style prefixes. */
|
|
62
|
+
export declare function getEmbedding(text: string, model?: string, role?: EmbeddingRole): Promise<number[]>;
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=local-embedder.d.ts.map
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// The local Transformers.js embedder: it imports the package and loads each model's pipeline once
|
|
2
|
+
// per process.
|
|
3
|
+
import * as fs from 'node:fs';
|
|
4
|
+
import * as path from 'node:path';
|
|
5
|
+
import { DEFAULT_EMBEDDING_MODEL, resolveTransformersPackage } from '../base/embeddings/local.js';
|
|
6
|
+
import { envModelCache } from '../base/util/env.js';
|
|
7
|
+
import { errorFields, errorMessage, log } from '../base/util/log.js';
|
|
8
|
+
import { MINUTE_MS } from '../base/util/time.js';
|
|
9
|
+
import { createModelLoads, importTransformers, MODEL_LOAD_POLICY } from './transformers.js';
|
|
10
|
+
/** BGE was trained with CLS pooling; everything else gets mean, the sentence-transformers
|
|
11
|
+
* default, since CLS degrades mean-trained models. */
|
|
12
|
+
export function poolingFor(model) {
|
|
13
|
+
return /\bbge\b/i.test(model) ? 'cls' : 'mean';
|
|
14
|
+
}
|
|
15
|
+
/** e5 models only match a query to a passage when each side carries its trained prefix. */
|
|
16
|
+
export function prefixFor(model, role) {
|
|
17
|
+
if (!role)
|
|
18
|
+
return '';
|
|
19
|
+
if (/\be5\b/i.test(model)) {
|
|
20
|
+
return role === 'query' ? 'query: ' : 'passage: ';
|
|
21
|
+
}
|
|
22
|
+
return '';
|
|
23
|
+
}
|
|
24
|
+
const INSTALLED_TRANSFORMERS = {
|
|
25
|
+
installed: () => resolveTransformersPackage() !== null,
|
|
26
|
+
load: () => importTransformers(),
|
|
27
|
+
};
|
|
28
|
+
/** One pipeline per model for the embedder's life, since a pipeline is expensive to load. */
|
|
29
|
+
export function createLocalEmbedder(transformers = INSTALLED_TRANSFORMERS) {
|
|
30
|
+
let available = null;
|
|
31
|
+
const gates = new Map();
|
|
32
|
+
const pipelines = createModelLoads(MODEL_LOAD_POLICY, warnLoadFailure);
|
|
33
|
+
const load = (model) => pipelines.load(model, () => createPipeline(transformers, model, gates));
|
|
34
|
+
const isAvailable = () => (available ??= transformers.installed());
|
|
35
|
+
return {
|
|
36
|
+
isAvailable,
|
|
37
|
+
requirePipeline: (model, signal) => waitForPipeline(load(model), signal && gateOf(gates, model).opened, signal),
|
|
38
|
+
async embed(text, model, role) {
|
|
39
|
+
if (!isAvailable())
|
|
40
|
+
return [];
|
|
41
|
+
try {
|
|
42
|
+
const pipe = await load(model);
|
|
43
|
+
const prefix = prefixFor(model, role);
|
|
44
|
+
const output = await pipe(prefix ? `${prefix}${text}` : text, {
|
|
45
|
+
pooling: poolingFor(model),
|
|
46
|
+
normalize: true,
|
|
47
|
+
});
|
|
48
|
+
return Array.from(output.data);
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
// The caller sees `[]` and names the memory; the first failure per model warns, then every
|
|
52
|
+
// 100th repeat.
|
|
53
|
+
log.warnThenSample(`local-embed:${model}`, `local embedding with ${model} failed: ${errorMessage(err)}`, errorFields(err));
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function warnLoadFailure(model, err) {
|
|
60
|
+
const retry = `the next try is in ${MODEL_LOAD_POLICY.backoffMs / MINUTE_MS} minutes`;
|
|
61
|
+
log.warn(`local embedding model ${model} did not load (${errorMessage(err)}); embeddings stay off and ${retry}`, errorFields(err));
|
|
62
|
+
}
|
|
63
|
+
/** The model's pipeline; throws the reason it cannot load. */
|
|
64
|
+
async function createPipeline(transformers, model, gates) {
|
|
65
|
+
// The package is an optional peer, so the dynamic import is typed by what this file reads; a
|
|
66
|
+
// missing export throws below.
|
|
67
|
+
const imported = await transformers.load();
|
|
68
|
+
if (!imported)
|
|
69
|
+
throw new Error('no transformers package is installed');
|
|
70
|
+
const { name, mod } = imported;
|
|
71
|
+
const cache = envModelCache();
|
|
72
|
+
if (cache && mod.env) {
|
|
73
|
+
mod.env.cacheDir = cache;
|
|
74
|
+
mod.env.localModelPath = cache;
|
|
75
|
+
mod.env.allowRemoteModels = false;
|
|
76
|
+
}
|
|
77
|
+
const pipelineFn = mod.pipeline ?? mod.default?.pipeline;
|
|
78
|
+
if (!pipelineFn)
|
|
79
|
+
throw new Error(`${name} exports no pipeline function`);
|
|
80
|
+
// The offline bundle used in egress-blocked sandboxes ships only the FP32 model, so use whichever
|
|
81
|
+
// file is on disk.
|
|
82
|
+
const quantized = !cache || fs.existsSync(path.join(cache, model, 'onnx', 'model_quantized.onnx'));
|
|
83
|
+
if (fetchesWeights(mod.env, model))
|
|
84
|
+
gateOf(gates, model).open();
|
|
85
|
+
try {
|
|
86
|
+
return await pipelineFn('feature-extraction', model, { quantized });
|
|
87
|
+
}
|
|
88
|
+
finally {
|
|
89
|
+
gates.delete(model);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/** Whether the load will download: remote models are allowed and no folder the package reads
|
|
93
|
+
* holds the model's ONNX files. */
|
|
94
|
+
function fetchesWeights(env, model) {
|
|
95
|
+
if (env?.allowRemoteModels === false)
|
|
96
|
+
return false;
|
|
97
|
+
return ![env?.localModelPath, env?.cacheDir].some((dir) => dir !== undefined && fs.existsSync(path.join(dir, model, 'onnx')));
|
|
98
|
+
}
|
|
99
|
+
function gateOf(gates, model) {
|
|
100
|
+
let gate = gates.get(model);
|
|
101
|
+
if (!gate) {
|
|
102
|
+
let open;
|
|
103
|
+
const opened = new Promise((resolve) => {
|
|
104
|
+
open = resolve;
|
|
105
|
+
});
|
|
106
|
+
gate = { opened, open };
|
|
107
|
+
gates.set(model, gate);
|
|
108
|
+
}
|
|
109
|
+
return gate;
|
|
110
|
+
}
|
|
111
|
+
/** `done` removes the listener when the wait ends without an abort, so a long-lived signal
|
|
112
|
+
* collects none. */
|
|
113
|
+
function rejectOnAbort(signal, done) {
|
|
114
|
+
return new Promise((_resolve, reject) => {
|
|
115
|
+
if (signal.aborted)
|
|
116
|
+
reject(signal.reason);
|
|
117
|
+
else {
|
|
118
|
+
signal.addEventListener('abort', () => reject(signal.reason), { once: true, signal: done });
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
async function waitForPipeline(loading, downloading, signal) {
|
|
123
|
+
const left = new AbortController();
|
|
124
|
+
try {
|
|
125
|
+
await (downloading && signal
|
|
126
|
+
? Promise.race([loading, downloading.then(() => rejectOnAbort(signal, left.signal))])
|
|
127
|
+
: loading);
|
|
128
|
+
}
|
|
129
|
+
catch (err) {
|
|
130
|
+
// The download goes on, and the first call after it lands gets the model.
|
|
131
|
+
if (signal?.aborted && err === signal.reason)
|
|
132
|
+
throw err;
|
|
133
|
+
throw new Error(`local embedding model did not load: ${errorMessage(err)}`, { cause: err });
|
|
134
|
+
}
|
|
135
|
+
finally {
|
|
136
|
+
left.abort();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/** The process's embedder, shared by every provider and caller so each model loads once. */
|
|
140
|
+
export const sharedLocalEmbedder = createLocalEmbedder();
|
|
141
|
+
/** Embeds `text` with the local model, or returns `[]` when Transformers.js is missing or fails;
|
|
142
|
+
* `role` adds e5-style prefixes. */
|
|
143
|
+
export function getEmbedding(text, model = DEFAULT_EMBEDDING_MODEL, role) {
|
|
144
|
+
return sharedLocalEmbedder.embed(text, model, role);
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=local-embedder.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Machine } from '../base/util/agent-homes.js';
|
|
2
|
+
import { type Host } from '../host/host.js';
|
|
3
|
+
/** This machine as `host` sees it; a root passes the Host it keeps, so its project walks outlive
|
|
4
|
+
* one call. */
|
|
5
|
+
export declare function currentMachine(host?: Host): Machine;
|
|
6
|
+
//# sourceMappingURL=machine.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// The machine this process runs on, with its real disk reader and git: what a root hands the
|
|
2
|
+
// agent-memory adapters.
|
|
3
|
+
import { diskAgentFiles } from './agent-files.js';
|
|
4
|
+
import { processHomes } from '../host/agent-homes.js';
|
|
5
|
+
import { createHost } from '../host/host.js';
|
|
6
|
+
import { isGlobalStoreRoot } from '../host/project-identity.js';
|
|
7
|
+
import { hippoHomeDir } from '../host/agent-homes.js';
|
|
8
|
+
import { processGit } from './git-runner.js';
|
|
9
|
+
/** This machine as `host` sees it; a root passes the Host it keeps, so its project walks outlive
|
|
10
|
+
* one call. */
|
|
11
|
+
export function currentMachine(host = createHost()) {
|
|
12
|
+
return {
|
|
13
|
+
...processHomes(),
|
|
14
|
+
platform: process.platform,
|
|
15
|
+
files: diskAgentFiles,
|
|
16
|
+
git: processGit,
|
|
17
|
+
cwd: process.cwd(),
|
|
18
|
+
projectIdentity: host.projectIdentity,
|
|
19
|
+
globalRoot: hippoHomeDir,
|
|
20
|
+
isGlobalRoot: isGlobalStoreRoot,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=machine.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { InfraPorts } from '../base/ports/infra.js';
|
|
2
|
+
import type { Llm } from '../base/ports/llm.js';
|
|
3
|
+
import { type Host } from '../host/host.js';
|
|
4
|
+
import { FailureNotices } from '../base/util/failure-notices.js';
|
|
5
|
+
/** The Llm ANTHROPIC_API_KEY opens, or undefined when the key is unset: with no key, no model is
|
|
6
|
+
* called. */
|
|
7
|
+
export declare function anthropicLlmFromEnv(fetcher?: typeof fetch): Llm | undefined;
|
|
8
|
+
/** A root's infra source: its rerankers are built on the first Context and kept, never once per
|
|
9
|
+
* request, and its `host` keeps the project walks for the root's life. */
|
|
10
|
+
export declare function rootInfra(host?: Host, failureNotices?: FailureNotices): () => InfraPorts;
|
|
11
|
+
//# sourceMappingURL=ports.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { envAnthropicApiKey } from '../base/util/env.js';
|
|
2
|
+
import { evalClock, evalSwitches } from './eval-switches.js';
|
|
3
|
+
import { anthropicLlm } from './anthropic-llm.js';
|
|
4
|
+
import { resolveEmbeddingProvider } from './embedding-provider.js';
|
|
5
|
+
import { createHost } from '../host/host.js';
|
|
6
|
+
import { currentMachine } from './machine.js';
|
|
7
|
+
import { realRerankers } from './rerankers/index.js';
|
|
8
|
+
import { readApiCalls } from './transcript-calls.js';
|
|
9
|
+
import { FailureNotices } from '../base/util/failure-notices.js';
|
|
10
|
+
/** The Llm ANTHROPIC_API_KEY opens, or undefined when the key is unset: with no key, no model is
|
|
11
|
+
* called. */
|
|
12
|
+
export function anthropicLlmFromEnv(fetcher) {
|
|
13
|
+
const apiKey = envAnthropicApiKey();
|
|
14
|
+
return apiKey ? anthropicLlm({ apiKey, fetcher }) : undefined;
|
|
15
|
+
}
|
|
16
|
+
/** The real ports over what the root keeps; the machine, the model, the eval switches and the
|
|
17
|
+
* clock read the environment as each Context is built, and the machine walks projects through
|
|
18
|
+
* the root's `host`. */
|
|
19
|
+
function realInfra({ reranker, failureNotices }, host) {
|
|
20
|
+
return {
|
|
21
|
+
machine: currentMachine(host),
|
|
22
|
+
llm: anthropicLlmFromEnv(),
|
|
23
|
+
embedderFor: (embeddings, opts) => resolveEmbeddingProvider(embeddings, opts),
|
|
24
|
+
reranker,
|
|
25
|
+
transcriptCalls: readApiCalls,
|
|
26
|
+
evalSwitches: evalSwitches(),
|
|
27
|
+
clock: evalClock(),
|
|
28
|
+
failureNotices,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/** A root's infra source: its rerankers are built on the first Context and kept, never once per
|
|
32
|
+
* request, and its `host` keeps the project walks for the root's life. */
|
|
33
|
+
export function rootInfra(host = createHost(), failureNotices = new FailureNotices()) {
|
|
34
|
+
let rerankers;
|
|
35
|
+
return () => realInfra({ reranker: (rerankers ??= realRerankers()), failureNotices }, host);
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=ports.js.map
|