hippo-memory 2.2.0 → 3.0.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 +11 -15
- 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/embeddings.d.ts +15 -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 +87 -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 +26 -19
- package/dist/api/memories/remember-local.js +55 -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 +178 -66
- package/dist/api/sharing.d.ts +31 -0
- package/dist/api/sharing.js +47 -0
- package/dist/api/sleep/auto-sleep.d.ts +17 -10
- package/dist/api/sleep/auto-sleep.js +55 -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 +121 -54
- package/dist/api/sleep/sleep-run.d.ts +18 -23
- package/dist/api/sleep/sleep-run.js +183 -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 +91 -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/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 +45 -0
- package/dist/db/store-runtime.js +133 -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.d.ts +62 -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/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 +74 -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 +14 -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 +59 -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 +39 -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 +22 -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 +27 -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 +41 -0
- package/dist/store/sqlite/runtime/server-runtime.js +58 -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 +67 -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 +67 -0
- package/dist/surface/cli/api-context.js +207 -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 +180 -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 +247 -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 +113 -0
- package/dist/surface/mcp/protocol.js +99 -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 +256 -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 +36 -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 +359 -0
- package/dist/surface/server/boot.d.ts +15 -0
- package/dist/surface/server/boot.js +345 -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 +11 -0
- package/dist/surface/server/lifecycle.js +52 -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 +238 -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 +237 -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/assets/react-BZPdts19.js +17 -0
- package/dist-ui/index.html +2 -2
- 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 -161
- package/dist/eval/eval-stats.js +0 -282
- 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/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 -159
- 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-DPN7cP19.js +0 -33
- package/dist-ui/assets/react-CEUiQZj-.js +0 -17
- 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/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,12 @@
|
|
|
1
|
+
import type { ConnectorStore } from './ingest.js';
|
|
2
|
+
import type { RouteQuery } from '../../base/ports/store/connectors.js';
|
|
3
|
+
/** The host's tenant, which the root resolved, and the root's allow-unknown escape for the
|
|
4
|
+
* connector. */
|
|
5
|
+
export interface RouteFallback {
|
|
6
|
+
readonly hostTenant: string;
|
|
7
|
+
readonly allowUnknown: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** The tenant the routing rows name; with no match, the host's when no row could have matched (a
|
|
10
|
+
* single-tenant install) or `allowUnknown` escapes, else null (fail closed). */
|
|
11
|
+
export declare function resolveTenant(store: ConnectorStore, query: RouteQuery, { hostTenant, allowUnknown }: RouteFallback): Promise<string | null>;
|
|
12
|
+
//# sourceMappingURL=tenant-route.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** The tenant the routing rows name; with no match, the host's when no row could have matched (a
|
|
2
|
+
* single-tenant install) or `allowUnknown` escapes, else null (fail closed). */
|
|
3
|
+
export async function resolveTenant(store, query, { hostTenant, allowUnknown }) {
|
|
4
|
+
const route = await store.connectorEvents.route(query);
|
|
5
|
+
if (route.tenantId !== null)
|
|
6
|
+
return route.tenantId;
|
|
7
|
+
return route.routes === 0 || allowUnknown ? hostTenant : null;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=tenant-route.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as api from '../../api/index.js';
|
|
2
|
+
import type { ContextWith } from '../../api/types.js';
|
|
3
|
+
import type { MemoryEntry } from '../../base/memory/entry.js';
|
|
4
|
+
import { type ActionBody } from './dashboard-params.js';
|
|
5
|
+
/** What an action hands the router: a status, a JSON body, and whether the store changed. */
|
|
6
|
+
export interface ActionResult {
|
|
7
|
+
status: number;
|
|
8
|
+
body: unknown;
|
|
9
|
+
/** True when a write committed, so the router moves the snapshot id. */
|
|
10
|
+
changed: boolean;
|
|
11
|
+
/** The live entry an action acted on, so the router can build the detail after the cache is
|
|
12
|
+
* dropped. */
|
|
13
|
+
entry?: MemoryEntry;
|
|
14
|
+
}
|
|
15
|
+
/** Sets `pinned`, audited as a pin by the Context's actor. */
|
|
16
|
+
export declare function pinMemory(ctx: api.Context, rawId: string, body: ActionBody): Promise<ActionResult>;
|
|
17
|
+
/** Marks a memory wrong, the same signal as `hippo outcome --bad`. */
|
|
18
|
+
export declare function markWrong(ctx: api.Context, rawId: string): Promise<ActionResult>;
|
|
19
|
+
/** Deletes a memory like `hippo forget`; a raw receipt is append-only and answers 409 with the
|
|
20
|
+
* archive hint. */
|
|
21
|
+
export declare function forgetMemory(ctx: api.Context, rawId: string): Promise<ActionResult>;
|
|
22
|
+
/** Keeps one side of an open conflict and weakens the other; the api's refusals keep their old
|
|
23
|
+
* statuses and texts. */
|
|
24
|
+
export declare function resolveOpenConflict(ctx: ContextWith<'conflicts'>, conflictId: number, body: ActionBody): Promise<ActionResult>;
|
|
25
|
+
//# sourceMappingURL=dashboard-actions.d.ts.map
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// The four dashboard writes, each the api call the CLI makes; the router owns HTTP and the cache.
|
|
2
|
+
import * as api from '../../api/index.js';
|
|
3
|
+
import { memoryGet } from '../../api/memories/memories.js';
|
|
4
|
+
import { BadRequestError, ConflictError, NotFoundError } from '../../base/errors/api-errors.js';
|
|
5
|
+
import { RawAppendOnlyError } from '../../base/errors/raw-append-only.js';
|
|
6
|
+
import { ParamError, parseMemoryId } from './dashboard-params.js';
|
|
7
|
+
import { isLiveMemory } from '../../api/dashboard/live.js';
|
|
8
|
+
function notFound() {
|
|
9
|
+
return { status: 404, body: { error: 'Not found' }, changed: false };
|
|
10
|
+
}
|
|
11
|
+
async function liveEntry(ctx, id) {
|
|
12
|
+
const entry = await memoryGet(ctx, id);
|
|
13
|
+
return entry !== null && isLiveMemory(entry) ? entry : null;
|
|
14
|
+
}
|
|
15
|
+
/** Sets `pinned`, audited as a pin by the Context's actor. */
|
|
16
|
+
export async function pinMemory(ctx, rawId, body) {
|
|
17
|
+
const id = parseMemoryId(rawId);
|
|
18
|
+
const { pinned } = body;
|
|
19
|
+
if (pinned === undefined)
|
|
20
|
+
throw new ParamError('pinned must be true or false');
|
|
21
|
+
if ((await liveEntry(ctx, id)) === null)
|
|
22
|
+
return notFound();
|
|
23
|
+
try {
|
|
24
|
+
return { status: 200, body: null, changed: true, entry: await api.memoryPin(ctx, id, pinned) };
|
|
25
|
+
}
|
|
26
|
+
catch (err) {
|
|
27
|
+
if (err instanceof NotFoundError)
|
|
28
|
+
return notFound();
|
|
29
|
+
throw err;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/** Marks a memory wrong, the same signal as `hippo outcome --bad`. */
|
|
33
|
+
export async function markWrong(ctx, rawId) {
|
|
34
|
+
const id = parseMemoryId(rawId);
|
|
35
|
+
if ((await liveEntry(ctx, id)) === null)
|
|
36
|
+
return notFound();
|
|
37
|
+
// outcome() answers `applied: 0` for a missing or out-of-reach id instead of throwing.
|
|
38
|
+
if ((await api.outcome(ctx, [id], false)).applied === 0)
|
|
39
|
+
return notFound();
|
|
40
|
+
const entry = await memoryGet(ctx, id);
|
|
41
|
+
return entry === null ? notFound() : { status: 200, body: null, changed: true, entry };
|
|
42
|
+
}
|
|
43
|
+
/** Deletes a memory like `hippo forget`; a raw receipt is append-only and answers 409 with the
|
|
44
|
+
* archive hint. */
|
|
45
|
+
export async function forgetMemory(ctx, rawId) {
|
|
46
|
+
const id = parseMemoryId(rawId);
|
|
47
|
+
if ((await liveEntry(ctx, id)) === null)
|
|
48
|
+
return notFound();
|
|
49
|
+
try {
|
|
50
|
+
const done = await api.forget(ctx, id);
|
|
51
|
+
return { status: 200, body: done, changed: true };
|
|
52
|
+
}
|
|
53
|
+
catch (err) {
|
|
54
|
+
if (err instanceof NotFoundError)
|
|
55
|
+
return notFound();
|
|
56
|
+
if (err instanceof RawAppendOnlyError) {
|
|
57
|
+
const error = `Cannot forget ${id}: it is a raw, append-only memory. Archive it instead: hippo forget ${id} --archive --reason "<why>"`;
|
|
58
|
+
return { status: 409, body: { error }, changed: false };
|
|
59
|
+
}
|
|
60
|
+
throw err;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/** Keeps one side of an open conflict and weakens the other; the api's refusals keep their old
|
|
64
|
+
* statuses and texts. */
|
|
65
|
+
export async function resolveOpenConflict(ctx, conflictId, body) {
|
|
66
|
+
const { keep } = body;
|
|
67
|
+
if (keep === undefined)
|
|
68
|
+
throw new ParamError('keep must be a memory id');
|
|
69
|
+
parseMemoryId(keep);
|
|
70
|
+
try {
|
|
71
|
+
const { loserId } = await api.conflictResolve(ctx, conflictId, { keepId: keep });
|
|
72
|
+
const result = { ok: true, conflictId, keptId: keep, weakenedId: loserId };
|
|
73
|
+
return { status: 200, body: result, changed: true };
|
|
74
|
+
}
|
|
75
|
+
catch (err) {
|
|
76
|
+
// The dashboard acts as an unowned admin, so a pair holding a personal row reads as missing.
|
|
77
|
+
if (err instanceof NotFoundError)
|
|
78
|
+
return notFound();
|
|
79
|
+
if (err instanceof ConflictError) {
|
|
80
|
+
return { status: 409, body: { error: 'This conflict is already resolved' }, changed: false };
|
|
81
|
+
}
|
|
82
|
+
if (err instanceof BadRequestError) {
|
|
83
|
+
throw new ParamError('keep must be one of the two memories in the conflict');
|
|
84
|
+
}
|
|
85
|
+
throw err;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=dashboard-actions.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DashboardRouteRequest } from '../server/dashboard-types.js';
|
|
2
|
+
export declare const SECURITY_HEADERS: {
|
|
3
|
+
readonly 'Content-Security-Policy': string;
|
|
4
|
+
readonly 'X-Content-Type-Options': "nosniff";
|
|
5
|
+
readonly 'Referrer-Policy': "no-referrer";
|
|
6
|
+
readonly 'X-Frame-Options': "DENY";
|
|
7
|
+
};
|
|
8
|
+
/** Any path outside the JSON API: an asset, else index.html, since the app routes in the
|
|
9
|
+
* browser. */
|
|
10
|
+
export declare function pageRoute(r: DashboardRouteRequest, match: RegExpMatchArray): Promise<void>;
|
|
11
|
+
//# sourceMappingURL=dashboard-page.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// The dashboard's pages: the React app and its assets, the not-built page, and the step off the
|
|
2
|
+
// ticket URL.
|
|
3
|
+
import { createHash } from 'node:crypto';
|
|
4
|
+
import { assetFor, sendAsset } from './static-file.js';
|
|
5
|
+
// One style block, not style attributes, so the policy below can name its hash and allow no other
|
|
6
|
+
// inline style.
|
|
7
|
+
const NOT_BUILT_CSS = "body{font-family:Georgia,'Palatino Linotype',serif;max-width:640px;margin:60px auto;padding:24px;line-height:1.6;" +
|
|
8
|
+
'background:#f4efe6;color:#3a3228}' +
|
|
9
|
+
'h1{color:#c45c3c}' +
|
|
10
|
+
'pre{background:#faf7f2;padding:16px;border:1px solid #c4b9a8;border-radius:3px;font-family:Consolas,monospace}';
|
|
11
|
+
// Memory text is written by other tools and people, so every reply tells the browser to load code
|
|
12
|
+
// only from this server and never to frame, sniff or name the page elsewhere.
|
|
13
|
+
export const SECURITY_HEADERS = {
|
|
14
|
+
'Content-Security-Policy': [
|
|
15
|
+
"default-src 'none'",
|
|
16
|
+
"script-src 'self'",
|
|
17
|
+
`style-src 'self' 'sha256-${createHash('sha256').update(NOT_BUILT_CSS).digest('base64')}'`,
|
|
18
|
+
"img-src 'self' data:",
|
|
19
|
+
"font-src 'self'",
|
|
20
|
+
"connect-src 'self'",
|
|
21
|
+
"base-uri 'none'",
|
|
22
|
+
"form-action 'none'",
|
|
23
|
+
"frame-ancestors 'none'",
|
|
24
|
+
].join('; '),
|
|
25
|
+
'X-Content-Type-Options': 'nosniff',
|
|
26
|
+
'Referrer-Policy': 'no-referrer',
|
|
27
|
+
'X-Frame-Options': 'DENY',
|
|
28
|
+
};
|
|
29
|
+
function notBuilt(res) {
|
|
30
|
+
res.writeHead(404, { 'Content-Type': 'text/html; charset=utf-8' });
|
|
31
|
+
res.end(`<!doctype html>
|
|
32
|
+
<html lang="en"><head><title>Hippo Dashboard</title><meta charset="utf-8"><style>${NOT_BUILT_CSS}</style></head>
|
|
33
|
+
<body>
|
|
34
|
+
<h1>Hippo Dashboard</h1>
|
|
35
|
+
<p>The React UI bundle is not built yet. Run:</p>
|
|
36
|
+
<pre>cd ui && npm install && npm run build</pre>
|
|
37
|
+
<p>Then refresh this page. The dashboard server will serve <code>dist-ui/index.html</code> automatically once
|
|
38
|
+
present.</p>
|
|
39
|
+
</body></html>`);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Moves the browser off the URL that carries the ticket, so the page's own address holds no spent
|
|
43
|
+
* secret.
|
|
44
|
+
*/
|
|
45
|
+
function leaveTicketUrl(res, pathname, query) {
|
|
46
|
+
const rest = new URLSearchParams(query);
|
|
47
|
+
rest.delete('token');
|
|
48
|
+
const text = rest.toString();
|
|
49
|
+
// One leading slash only: `//host` would send the browser to another site.
|
|
50
|
+
res.writeHead(303, { Location: `${pathname.replace(/^\/+/, '/')}${text ? `?${text}` : ''}` });
|
|
51
|
+
res.end();
|
|
52
|
+
}
|
|
53
|
+
/** Any path outside the JSON API: an asset, else index.html, since the app routes in the
|
|
54
|
+
* browser. */
|
|
55
|
+
export async function pageRoute(r, match) {
|
|
56
|
+
const pathname = match[0];
|
|
57
|
+
if (r.session === 'ticket')
|
|
58
|
+
return leaveTicketUrl(r.res, pathname, r.query);
|
|
59
|
+
const asset = r.staticFiles === null ? undefined : assetFor(r.staticFiles, pathname);
|
|
60
|
+
if (asset === undefined)
|
|
61
|
+
return notBuilt(r.res);
|
|
62
|
+
sendAsset(r.req, r.res, asset);
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=dashboard-page.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BadRequestError } from '../../base/errors/api-errors.js';
|
|
2
|
+
import { type MemoryQuery } from '../../api/dashboard/queries.js';
|
|
3
|
+
/** A request field failed validation; the server answers 400 with this plain message. */
|
|
4
|
+
export declare class ParamError extends BadRequestError {
|
|
5
|
+
}
|
|
6
|
+
export declare const LIMIT_DEFAULT = 100;
|
|
7
|
+
export declare const LIMIT_MAX = 500;
|
|
8
|
+
export declare const SEARCH_MIN = 2;
|
|
9
|
+
export declare const SEARCH_MAX = 200;
|
|
10
|
+
/** Parses and validates the query of `GET /api/projects/:key/memories`. */
|
|
11
|
+
export declare function parseMemoryQuery(params: URLSearchParams): MemoryQuery;
|
|
12
|
+
/** Search text for `GET /api/search`: 2 to 200 characters after trim, returned as typed
|
|
13
|
+
* (trimmed). */
|
|
14
|
+
export declare function parseSearchText(params: URLSearchParams): string;
|
|
15
|
+
/** A memory id from a path segment. */
|
|
16
|
+
export declare function parseMemoryId(raw: string): string;
|
|
17
|
+
/** The only fields a dashboard POST reads; a field of the wrong type arrives as undefined. */
|
|
18
|
+
export interface ActionBody {
|
|
19
|
+
pinned?: boolean;
|
|
20
|
+
keep?: string;
|
|
21
|
+
}
|
|
22
|
+
/** Parses a POST body once at the boundary; an empty body is `{}` and invalid JSON is a 400. */
|
|
23
|
+
export declare function parseActionBody(text: string): ActionBody;
|
|
24
|
+
/** A conflict id from a path segment: a positive integer. */
|
|
25
|
+
export declare function parseConflictId(raw: string): number;
|
|
26
|
+
//# sourceMappingURL=dashboard-params.d.ts.map
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// One shared parser for every dashboard query and path field, so no route trusts `parseInt` or an
|
|
2
|
+
// unchecked id.
|
|
3
|
+
import { BadRequestError } from '../../base/errors/api-errors.js';
|
|
4
|
+
import { LAYERS } from '../../api/dashboard/live.js';
|
|
5
|
+
import { SORT_KEYS } from '../../api/dashboard/queries.js';
|
|
6
|
+
import { isJsonObject, isJsonString, knownOption, tryParseJson } from '../../base/util/json.js';
|
|
7
|
+
/** A request field failed validation; the server answers 400 with this plain message. */
|
|
8
|
+
export class ParamError extends BadRequestError {
|
|
9
|
+
}
|
|
10
|
+
const CHIPS = ['all', 'risk', 'pinned', 'conflict'];
|
|
11
|
+
const MEMORY_ID = /^[A-Za-z0-9_-]+$/;
|
|
12
|
+
const INTEGER = /^-?\d+$/;
|
|
13
|
+
export const LIMIT_DEFAULT = 100;
|
|
14
|
+
export const LIMIT_MAX = 500;
|
|
15
|
+
export const SEARCH_MIN = 2;
|
|
16
|
+
export const SEARCH_MAX = 200;
|
|
17
|
+
function integerParam(params, name, { fallback, min, max }) {
|
|
18
|
+
const raw = params.get(name);
|
|
19
|
+
if (raw === null)
|
|
20
|
+
return fallback;
|
|
21
|
+
const n = INTEGER.test(raw.trim()) ? Number(raw) : Number.NaN;
|
|
22
|
+
if (!Number.isInteger(n) || n < min || n > max) {
|
|
23
|
+
throw new ParamError(`${name} must be a whole number from ${min} to ${max}`);
|
|
24
|
+
}
|
|
25
|
+
return n;
|
|
26
|
+
}
|
|
27
|
+
function choiceParam(params, name, allowed, fallback) {
|
|
28
|
+
const raw = params.get(name);
|
|
29
|
+
if (raw === null)
|
|
30
|
+
return fallback;
|
|
31
|
+
const hit = knownOption(allowed, raw);
|
|
32
|
+
if (hit === undefined)
|
|
33
|
+
throw new ParamError(`${name} must be one of ${allowed.join(', ')}`);
|
|
34
|
+
return hit;
|
|
35
|
+
}
|
|
36
|
+
function finiteParam(params, name) {
|
|
37
|
+
const raw = params.get(name);
|
|
38
|
+
if (raw === null)
|
|
39
|
+
return null;
|
|
40
|
+
const n = raw.trim() === '' ? Number.NaN : Number(raw);
|
|
41
|
+
if (!Number.isFinite(n))
|
|
42
|
+
throw new ParamError(`${name} must be a number`);
|
|
43
|
+
return n;
|
|
44
|
+
}
|
|
45
|
+
function layersParam(params) {
|
|
46
|
+
const raw = params.get('layers');
|
|
47
|
+
if (raw === null)
|
|
48
|
+
return LAYERS.map((_, i) => i);
|
|
49
|
+
const picked = new Set();
|
|
50
|
+
for (const part of raw.split(',')) {
|
|
51
|
+
const i = LAYERS.findIndex((l) => l === part.trim());
|
|
52
|
+
if (i === -1)
|
|
53
|
+
throw new ParamError(`layers must be a comma list of ${LAYERS.join(', ')}`);
|
|
54
|
+
picked.add(i);
|
|
55
|
+
}
|
|
56
|
+
return [...picked].sort((a, b) => a - b);
|
|
57
|
+
}
|
|
58
|
+
function rangeParam(params, lo, hi) {
|
|
59
|
+
const min = finiteParam(params, lo);
|
|
60
|
+
const max = finiteParam(params, hi);
|
|
61
|
+
if (min !== null && max !== null && min > max) {
|
|
62
|
+
throw new ParamError(`${lo} must not exceed ${hi}`);
|
|
63
|
+
}
|
|
64
|
+
return [min ?? Number.NEGATIVE_INFINITY, max ?? Number.POSITIVE_INFINITY];
|
|
65
|
+
}
|
|
66
|
+
/** Search text for the memories route: shorter than the minimum means no filter; longer than the
|
|
67
|
+
* maximum is a 400. */
|
|
68
|
+
function optionalSearch(params) {
|
|
69
|
+
const raw = params.get('q');
|
|
70
|
+
if (raw === null)
|
|
71
|
+
return null;
|
|
72
|
+
const q = raw.trim();
|
|
73
|
+
if (q.length > SEARCH_MAX)
|
|
74
|
+
throw new ParamError(`q must be at most ${SEARCH_MAX} characters`);
|
|
75
|
+
return q.length < SEARCH_MIN ? null : q.toLowerCase();
|
|
76
|
+
}
|
|
77
|
+
/** Parses and validates the query of `GET /api/projects/:key/memories`. */
|
|
78
|
+
export function parseMemoryQuery(params) {
|
|
79
|
+
const [amin, amax] = rangeParam(params, 'amin', 'amax');
|
|
80
|
+
const [smin, smax] = rangeParam(params, 'smin', 'smax');
|
|
81
|
+
const sort = choiceParam(params, 'sort', SORT_KEYS, 'strength');
|
|
82
|
+
return {
|
|
83
|
+
offset: integerParam(params, 'offset', { fallback: 0, min: 0, max: Number.MAX_SAFE_INTEGER }),
|
|
84
|
+
limit: integerParam(params, 'limit', { fallback: LIMIT_DEFAULT, min: 1, max: LIMIT_MAX }),
|
|
85
|
+
sort,
|
|
86
|
+
// Weakest first by default, like the mockup; retrievals starts with the most.
|
|
87
|
+
dir: choiceParam(params, 'dir', ['asc', 'desc'], sort === 'retrievals' ? 'desc' : 'asc'),
|
|
88
|
+
chip: choiceParam(params, 'chip', CHIPS, 'all'),
|
|
89
|
+
layers: layersParam(params),
|
|
90
|
+
brush: { amin, amax, smin, smax },
|
|
91
|
+
q: optionalSearch(params),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/** Search text for `GET /api/search`: 2 to 200 characters after trim, returned as typed
|
|
95
|
+
* (trimmed). */
|
|
96
|
+
export function parseSearchText(params) {
|
|
97
|
+
const q = (params.get('q') ?? '').trim();
|
|
98
|
+
if (q.length < SEARCH_MIN || q.length > SEARCH_MAX) {
|
|
99
|
+
throw new ParamError(`q must be ${SEARCH_MIN} to ${SEARCH_MAX} characters`);
|
|
100
|
+
}
|
|
101
|
+
return q;
|
|
102
|
+
}
|
|
103
|
+
/** A memory id from a path segment. */
|
|
104
|
+
export function parseMemoryId(raw) {
|
|
105
|
+
if (!MEMORY_ID.test(raw))
|
|
106
|
+
throw new ParamError('Invalid memory id');
|
|
107
|
+
return raw;
|
|
108
|
+
}
|
|
109
|
+
/** Parses a POST body once at the boundary; an empty body is `{}` and invalid JSON is a 400. */
|
|
110
|
+
export function parseActionBody(text) {
|
|
111
|
+
const raw = tryParseJson(text === '' ? '{}' : text);
|
|
112
|
+
if (raw === undefined)
|
|
113
|
+
throw new ParamError('Body is not valid JSON');
|
|
114
|
+
const pinned = isJsonObject(raw) ? raw.pinned : undefined;
|
|
115
|
+
const keep = isJsonObject(raw) ? raw.keep : undefined;
|
|
116
|
+
return {
|
|
117
|
+
pinned: pinned === true || pinned === false ? pinned : undefined,
|
|
118
|
+
keep: isJsonString(keep) ? keep : undefined,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
/** A conflict id from a path segment: a positive integer. */
|
|
122
|
+
export function parseConflictId(raw) {
|
|
123
|
+
const n = INTEGER.test(raw) ? Number(raw) : Number.NaN;
|
|
124
|
+
if (!Number.isSafeInteger(n) || n < 1)
|
|
125
|
+
throw new ParamError('Invalid conflict id');
|
|
126
|
+
return n;
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=dashboard-params.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DashboardRouteRequest } from '../server/dashboard-types.js';
|
|
2
|
+
type Params = Record<string, string>;
|
|
3
|
+
export declare function overviewRoute(r: DashboardRouteRequest): Promise<void>;
|
|
4
|
+
export declare function projectRoute(r: DashboardRouteRequest, { key }: Params): Promise<void>;
|
|
5
|
+
export declare function memoryPageRoute(r: DashboardRouteRequest, { key }: Params): Promise<void>;
|
|
6
|
+
export declare function memoryRoute(r: DashboardRouteRequest, { id }: Params): Promise<void>;
|
|
7
|
+
export declare function searchRoute(r: DashboardRouteRequest): Promise<void>;
|
|
8
|
+
export declare function cardsRoute(r: DashboardRouteRequest): Promise<void>;
|
|
9
|
+
export declare function cardRoute(r: DashboardRouteRequest, { id }: Params): Promise<void>;
|
|
10
|
+
export declare function pinRoute(r: DashboardRouteRequest, { id }: Params): Promise<void>;
|
|
11
|
+
export declare function wrongRoute(r: DashboardRouteRequest, { id }: Params): Promise<void>;
|
|
12
|
+
export declare function forgetRoute(r: DashboardRouteRequest, { id }: Params): Promise<void>;
|
|
13
|
+
export declare function resolveRoute(r: DashboardRouteRequest, { id }: Params): Promise<void>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=dashboard.d.ts.map
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { readBody, sendJson } from '../http/http-util.js';
|
|
2
|
+
import { MAX_LIST_LIMIT } from '../../base/util/limits.js';
|
|
3
|
+
import { encodeCursor, parseCursor } from '../../api/cursor.js';
|
|
4
|
+
import { forgetMemory, markWrong, pinMemory, resolveOpenConflict, } from './dashboard-actions.js';
|
|
5
|
+
import { parseActionBody, parseConflictId, parseMemoryId, parseMemoryQuery, parseSearchText, } from './dashboard-params.js';
|
|
6
|
+
const BODY_MAX_BYTES = 4096;
|
|
7
|
+
const JSON_CONTENT_TYPE = /^application\/json\s*(;|$)/i;
|
|
8
|
+
const CARD_ID = /^[A-Za-z0-9_-]+$/;
|
|
9
|
+
function sendOrNotFound(res, body) {
|
|
10
|
+
if (body === null)
|
|
11
|
+
sendJson(res, 404, { error: 'Not found' });
|
|
12
|
+
else
|
|
13
|
+
sendJson(res, 200, body);
|
|
14
|
+
}
|
|
15
|
+
/** The Refresh button's flag: take a new snapshot id now, not when the clock says. */
|
|
16
|
+
const freshOf = (r) => r.query.get('fresh') === '1';
|
|
17
|
+
export async function overviewRoute(r) {
|
|
18
|
+
sendOrNotFound(r.res, await r.reader.overview(freshOf(r)));
|
|
19
|
+
}
|
|
20
|
+
export async function projectRoute(r, { key }) {
|
|
21
|
+
sendOrNotFound(r.res, await r.reader.project(key, freshOf(r)));
|
|
22
|
+
}
|
|
23
|
+
export async function memoryPageRoute(r, { key }) {
|
|
24
|
+
const query = parseMemoryQuery(r.query);
|
|
25
|
+
sendOrNotFound(r.res, await r.reader.memories(key, query, freshOf(r)));
|
|
26
|
+
}
|
|
27
|
+
export async function memoryRoute(r, { id }) {
|
|
28
|
+
sendOrNotFound(r.res, await r.reader.memory(parseMemoryId(id), freshOf(r)));
|
|
29
|
+
}
|
|
30
|
+
export async function searchRoute(r) {
|
|
31
|
+
sendOrNotFound(r.res, await r.reader.search(parseSearchText(r.query), freshOf(r)));
|
|
32
|
+
}
|
|
33
|
+
// next_cursor rides only a page with more after it, so a board that fits one page gets its old
|
|
34
|
+
// reply byte for byte.
|
|
35
|
+
export async function cardsRoute(r) {
|
|
36
|
+
const after = parseCursor(r.query.get('cursor'), 'string', 'string');
|
|
37
|
+
const { cards, next } = await r.ctx.store.cards.list(r.ctx.tenantId, {
|
|
38
|
+
limit: MAX_LIST_LIMIT,
|
|
39
|
+
after,
|
|
40
|
+
});
|
|
41
|
+
sendJson(r.res, 200, next === null ? { cards } : { cards, next_cursor: encodeCursor(next) });
|
|
42
|
+
}
|
|
43
|
+
export async function cardRoute(r, { id }) {
|
|
44
|
+
// The Board has always answered 404, not 400, for an id that does not fit the pattern.
|
|
45
|
+
sendOrNotFound(r.res, CARD_ID.test(id) ? await r.ctx.store.cards.detail(r.ctx.tenantId, id) : null);
|
|
46
|
+
}
|
|
47
|
+
// Nothing runs until the content type and the body pass; a committed write then moves the snapshot
|
|
48
|
+
// id before the reply.
|
|
49
|
+
async function runAction(r, action) {
|
|
50
|
+
const { req, res } = r;
|
|
51
|
+
if (!JSON_CONTENT_TYPE.test(req.headers['content-type'] ?? '')) {
|
|
52
|
+
sendJson(res, 415, { error: 'Content-Type must be application/json' });
|
|
53
|
+
req.resume();
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const text = await readBody(req, { maxBytes: BODY_MAX_BYTES, deadlineMs: r.bodyDeadlineMs });
|
|
57
|
+
const result = await action(r.ctx, parseActionBody(text.trim()));
|
|
58
|
+
const touched = result.changed || result.entry !== undefined;
|
|
59
|
+
const detail = touched ? await r.reader.written(result.changed, result.entry) : null;
|
|
60
|
+
sendJson(res, result.status, detail ?? result.body);
|
|
61
|
+
}
|
|
62
|
+
export function pinRoute(r, { id }) {
|
|
63
|
+
return runAction(r, (ctx, body) => pinMemory(ctx, id, body));
|
|
64
|
+
}
|
|
65
|
+
export function wrongRoute(r, { id }) {
|
|
66
|
+
return runAction(r, (ctx) => markWrong(ctx, id));
|
|
67
|
+
}
|
|
68
|
+
export function forgetRoute(r, { id }) {
|
|
69
|
+
return runAction(r, (ctx) => forgetMemory(ctx, id));
|
|
70
|
+
}
|
|
71
|
+
export function resolveRoute(r, { id }) {
|
|
72
|
+
return runAction(r, (ctx, body) => resolveOpenConflict(ctx, parseConflictId(id), body));
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=dashboard.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type * as http from 'node:http';
|
|
2
|
+
/** Where the build puts the React app. */
|
|
3
|
+
export declare const DASHBOARD_STATIC_ROOT: string;
|
|
4
|
+
/** The app's folder when its index.html is built, else null. */
|
|
5
|
+
export declare function builtStaticRoot(root?: string): string | null;
|
|
6
|
+
/** One encoding of a file, with the strong validator of exactly these bytes. */
|
|
7
|
+
interface Encoded {
|
|
8
|
+
readonly body: Buffer;
|
|
9
|
+
readonly etag: string;
|
|
10
|
+
}
|
|
11
|
+
/** One built file as it is sent. */
|
|
12
|
+
export interface StaticAsset {
|
|
13
|
+
readonly type: string;
|
|
14
|
+
readonly cacheControl: string;
|
|
15
|
+
readonly plain: Encoded;
|
|
16
|
+
/** Null when gzip would not make the file smaller. */
|
|
17
|
+
readonly gzip: Encoded | null;
|
|
18
|
+
}
|
|
19
|
+
/** The built app by URL path, such as `/assets/index-3f2a9c1b.js`. */
|
|
20
|
+
export type StaticFiles = ReadonlyMap<string, StaticAsset>;
|
|
21
|
+
/** Every file under `root` with a type the dashboard serves, read once; null when the app is not
|
|
22
|
+
* built. */
|
|
23
|
+
export declare function loadStaticFiles(root?: string): StaticFiles | null;
|
|
24
|
+
/** The file a URL path names, else index.html, since the app routes in the browser; undefined
|
|
25
|
+
* when neither is held. */
|
|
26
|
+
export declare function assetFor(files: StaticFiles, urlPath: string): StaticAsset | undefined;
|
|
27
|
+
/** Sends `asset` gzipped when the client takes gzip, or a 304 when the client already holds
|
|
28
|
+
* those bytes. */
|
|
29
|
+
export declare function sendAsset(req: http.IncomingMessage, res: http.ServerResponse, asset: StaticAsset): void;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=static-file.d.ts.map
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// The dashboard's static files: the built app, read once at listener start into one map from URL
|
|
2
|
+
// path to the bytes it sends, and the reply that serves one with its validators. A path the map
|
|
3
|
+
// does not hold is never read from disk.
|
|
4
|
+
import { createHash } from 'node:crypto';
|
|
5
|
+
import * as fs from 'node:fs';
|
|
6
|
+
import * as path from 'node:path';
|
|
7
|
+
import { gzipSync } from 'node:zlib';
|
|
8
|
+
import { PACKAGE_ROOT } from '../../base/config/package-root.js';
|
|
9
|
+
import { HttpError } from '../../base/errors/http-errors.js';
|
|
10
|
+
import { errorCode, errorFields, errorMessage, log } from '../../base/util/log.js';
|
|
11
|
+
/** Where the build puts the React app. */
|
|
12
|
+
export const DASHBOARD_STATIC_ROOT = path.join(PACKAGE_ROOT, 'dist-ui');
|
|
13
|
+
/** The app's folder when its index.html is built, else null. */
|
|
14
|
+
export function builtStaticRoot(root = DASHBOARD_STATIC_ROOT) {
|
|
15
|
+
return fs.existsSync(path.join(root, 'index.html')) ? root : null;
|
|
16
|
+
}
|
|
17
|
+
const MIME_TYPES = {
|
|
18
|
+
'.html': 'text/html; charset=utf-8',
|
|
19
|
+
'.js': 'application/javascript; charset=utf-8',
|
|
20
|
+
'.css': 'text/css; charset=utf-8',
|
|
21
|
+
'.json': 'application/json; charset=utf-8',
|
|
22
|
+
'.png': 'image/png',
|
|
23
|
+
'.svg': 'image/svg+xml',
|
|
24
|
+
'.ico': 'image/x-icon',
|
|
25
|
+
'.woff': 'font/woff',
|
|
26
|
+
'.woff2': 'font/woff2',
|
|
27
|
+
};
|
|
28
|
+
function isStaticFileExtension(ext) {
|
|
29
|
+
return Object.hasOwn(MIME_TYPES, ext);
|
|
30
|
+
}
|
|
31
|
+
// Vite names each bundle after a hash of its content, so a changed bundle comes at a new URL.
|
|
32
|
+
const HASHED = /^\/assets\/.+-[\w-]{8}\.\w+$/;
|
|
33
|
+
const IMMUTABLE = 'public, max-age=31536000, immutable';
|
|
34
|
+
function assetOf(urlPath, body, type) {
|
|
35
|
+
const hash = createHash('sha256').update(body).digest('base64url');
|
|
36
|
+
const gzip = gzipSync(body, { level: 9 });
|
|
37
|
+
return {
|
|
38
|
+
type,
|
|
39
|
+
cacheControl: HASHED.test(urlPath) ? IMMUTABLE : 'no-cache',
|
|
40
|
+
plain: { body, etag: `"${hash}"` },
|
|
41
|
+
gzip: gzip.length < body.length ? { body: gzip, etag: `"${hash}-gzip"` } : null,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
// Real folders only: a link is never followed, so no file outside the root can enter the map.
|
|
45
|
+
function* filesUnder(dir) {
|
|
46
|
+
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
47
|
+
const full = path.join(dir, entry.name);
|
|
48
|
+
if (entry.isDirectory())
|
|
49
|
+
yield* filesUnder(full);
|
|
50
|
+
else if (entry.isFile())
|
|
51
|
+
yield full;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function readAsset(file) {
|
|
55
|
+
try {
|
|
56
|
+
return fs.readFileSync(file);
|
|
57
|
+
}
|
|
58
|
+
catch (err) {
|
|
59
|
+
log.error(`dashboard: reading ${file} failed (${errorCode(err) || errorMessage(err)}); it will not be served`, errorFields(err));
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/** Every file under `root` with a type the dashboard serves, read once; null when the app is not
|
|
64
|
+
* built. */
|
|
65
|
+
export function loadStaticFiles(root = DASHBOARD_STATIC_ROOT) {
|
|
66
|
+
if (builtStaticRoot(root) === null)
|
|
67
|
+
return null;
|
|
68
|
+
const files = new Map();
|
|
69
|
+
for (const file of filesUnder(root)) {
|
|
70
|
+
const ext = path.extname(file).toLowerCase();
|
|
71
|
+
if (!isStaticFileExtension(ext))
|
|
72
|
+
continue;
|
|
73
|
+
const body = readAsset(file);
|
|
74
|
+
const urlPath = `/${path.relative(root, file).split(path.sep).join('/')}`;
|
|
75
|
+
if (body !== null)
|
|
76
|
+
files.set(urlPath, assetOf(urlPath, body, MIME_TYPES[ext]));
|
|
77
|
+
}
|
|
78
|
+
return files;
|
|
79
|
+
}
|
|
80
|
+
/** The file a URL path names, else index.html, since the app routes in the browser; undefined
|
|
81
|
+
* when neither is held. */
|
|
82
|
+
export function assetFor(files, urlPath) {
|
|
83
|
+
let name;
|
|
84
|
+
try {
|
|
85
|
+
name = decodeURIComponent(urlPath);
|
|
86
|
+
}
|
|
87
|
+
catch (err) {
|
|
88
|
+
if (err instanceof URIError)
|
|
89
|
+
throw new HttpError(400, 'Malformed URL path');
|
|
90
|
+
throw err;
|
|
91
|
+
}
|
|
92
|
+
return files.get(name) ?? files.get('/index.html');
|
|
93
|
+
}
|
|
94
|
+
// A q of 0 refuses a coding.
|
|
95
|
+
function takesGzip(header) {
|
|
96
|
+
return (header ?? '').split(',').some((part) => {
|
|
97
|
+
const [coding, ...params] = part.split(';').map((s) => s.trim().toLowerCase());
|
|
98
|
+
const q = params.find((p) => p.startsWith('q='));
|
|
99
|
+
return coding === 'gzip' && (q === undefined || Number(q.slice(2)) > 0);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
// If-None-Match compares weakly, so W/"x" names the same bytes as "x".
|
|
103
|
+
function holdsVersion(header, etag) {
|
|
104
|
+
if (header === undefined)
|
|
105
|
+
return false;
|
|
106
|
+
return header.split(',').some((tag) => {
|
|
107
|
+
const t = tag.trim();
|
|
108
|
+
return t === '*' || t.replace(/^W\//, '') === etag;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/** Sends `asset` gzipped when the client takes gzip, or a 304 when the client already holds
|
|
112
|
+
* those bytes. */
|
|
113
|
+
export function sendAsset(req, res, asset) {
|
|
114
|
+
const sent = asset.gzip !== null && takesGzip(req.headers['accept-encoding']) ? asset.gzip : asset.plain;
|
|
115
|
+
const validators = {
|
|
116
|
+
ETag: sent.etag,
|
|
117
|
+
'Cache-Control': asset.cacheControl,
|
|
118
|
+
Vary: 'Accept-Encoding',
|
|
119
|
+
};
|
|
120
|
+
if (holdsVersion(req.headers['if-none-match'], sent.etag)) {
|
|
121
|
+
res.writeHead(304, validators);
|
|
122
|
+
res.end();
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
const encoding = sent === asset.gzip ? { 'Content-Encoding': 'gzip' } : {};
|
|
126
|
+
res.writeHead(200, {
|
|
127
|
+
...validators,
|
|
128
|
+
...encoding,
|
|
129
|
+
'Content-Type': asset.type,
|
|
130
|
+
'Content-Length': sent.body.length,
|
|
131
|
+
});
|
|
132
|
+
res.end(sent.body);
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=static-file.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { InfraPorts } from '../base/ports/infra.js';
|
|
2
|
+
import type { EntryInfraPorts } from '../api/types.js';
|
|
3
|
+
/** The published entries' Host, which their reach probes and project walks share for the
|
|
4
|
+
* process's life. */
|
|
5
|
+
export declare const entryHost: import("../host/host.js").Host;
|
|
6
|
+
/** The published entries' infra source, built on first use. */
|
|
7
|
+
export declare const entryInfra: () => InfraPorts;
|
|
8
|
+
/** `ctx` with the real ports when its builder set none, as EntryContext documents. */
|
|
9
|
+
export declare function withEntryInfra<C extends {
|
|
10
|
+
readonly infra?: EntryInfraPorts;
|
|
11
|
+
}>(ctx: C): C & {
|
|
12
|
+
readonly infra: InfraPorts;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=entry-infra.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FailureNotices } from '../base/util/failure-notices.js';
|
|
2
|
+
import { createHost } from '../host/host.js';
|
|
3
|
+
import { rootInfra } from '../infra/ports.js';
|
|
4
|
+
/** The published entries' Host, which their reach probes and project walks share for the
|
|
5
|
+
* process's life. */
|
|
6
|
+
export const entryHost = createHost();
|
|
7
|
+
/** The failures the published entries have warned about, whoever built the rest of a caller's
|
|
8
|
+
* ports. */
|
|
9
|
+
const entryNotices = new FailureNotices();
|
|
10
|
+
/** The published entries' infra source, built on first use. */
|
|
11
|
+
export const entryInfra = rootInfra(entryHost, entryNotices);
|
|
12
|
+
/** `ctx` with the real ports when its builder set none, as EntryContext documents. */
|
|
13
|
+
export function withEntryInfra(ctx) {
|
|
14
|
+
const { infra } = ctx;
|
|
15
|
+
if (infra === undefined)
|
|
16
|
+
return { ...ctx, infra: entryInfra() };
|
|
17
|
+
return { ...ctx, infra: { ...infra, failureNotices: infra.failureNotices ?? entryNotices } };
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=entry-infra.js.map
|