@cortexkit/opencode-magic-context 0.42.5 → 0.43.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 +6 -7
- package/dist/agents/dreamer.d.ts +7 -9
- package/dist/agents/dreamer.d.ts.map +1 -1
- package/dist/agents/hidden-agent-registrations.d.ts.map +1 -1
- package/dist/agents/magic-context-prompt.d.ts.map +1 -1
- package/dist/config/index.d.ts +10 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/live-run-config.d.ts +12 -0
- package/dist/config/live-run-config.d.ts.map +1 -0
- package/dist/config/live-snapshot.d.ts +32 -0
- package/dist/config/live-snapshot.d.ts.map +1 -0
- package/dist/config/schema/magic-context.d.ts +13 -2
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/{conflict-warning-hook-jyj54gbe.js → conflict-warning-hook-t2vb0wnx.js} +3 -3
- package/dist/{derive-budgets-v1fkhjjr.js → derive-budgets-0sg5vp61.js} +5 -2
- package/dist/features/builtin-commands/commands.d.ts +0 -4
- package/dist/features/builtin-commands/commands.d.ts.map +1 -1
- package/dist/features/magic-context/compaction-marker.d.ts +6 -0
- package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts +4 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
- package/dist/features/magic-context/compartment-lease.d.ts +8 -0
- package/dist/features/magic-context/compartment-lease.d.ts.map +1 -1
- package/dist/features/magic-context/compartment-storage.d.ts +21 -0
- package/dist/features/magic-context/compartment-storage.d.ts.map +1 -1
- package/dist/features/magic-context/context-authority.d.ts +37 -3
- package/dist/features/magic-context/context-authority.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/classify.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/docs-proposals.d.ts +23 -0
- package/dist/features/magic-context/dreamer/docs-proposals.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts +5 -1
- package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts +48 -0
- package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/manual-summary.d.ts +7 -0
- package/dist/features/magic-context/dreamer/manual-summary.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/open-opencode-db.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/promote-primers.d.ts +8 -1
- package/dist/features/magic-context/dreamer/promote-primers.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/refresh-primers.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts +5 -2
- package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/retrospective-raw-provider.d.ts +22 -13
- package/dist/features/magic-context/dreamer/retrospective-raw-provider.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts +9 -0
- package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-config.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-executor.d.ts +3 -0
- package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-prompts.d.ts +7 -4
- package/dist/features/magic-context/dreamer/task-prompts.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-registry.d.ts +53 -2
- package/dist/features/magic-context/dreamer/task-registry.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts +3 -0
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/tick-failure.d.ts +38 -0
- package/dist/features/magic-context/dreamer/tick-failure.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
- package/dist/features/magic-context/git-commits/search-git-commits.d.ts +2 -0
- package/dist/features/magic-context/git-commits/search-git-commits.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-identity.d.ts +1 -0
- package/dist/features/magic-context/memory/embedding-identity.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-local.d.ts +1 -0
- package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding.d.ts +1 -1
- package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
- package/dist/features/magic-context/memory/memory-diagnostics.d.ts +6 -0
- package/dist/features/magic-context/memory/memory-diagnostics.d.ts.map +1 -0
- package/dist/features/magic-context/memory/memory-selection.d.ts +12 -0
- package/dist/features/magic-context/memory/memory-selection.d.ts.map +1 -0
- package/dist/features/magic-context/memory/memory-visibility.d.ts +46 -0
- package/dist/features/magic-context/memory/memory-visibility.d.ts.map +1 -0
- package/dist/features/magic-context/memory/mirror-reembed.d.ts +22 -0
- package/dist/features/magic-context/memory/mirror-reembed.d.ts.map +1 -0
- package/dist/features/magic-context/memory/project-identity.d.ts +9 -0
- package/dist/features/magic-context/memory/project-identity.d.ts.map +1 -1
- package/dist/features/magic-context/memory/storage-memory-fts.d.ts +6 -2
- package/dist/features/magic-context/memory/storage-memory-fts.d.ts.map +1 -1
- package/dist/features/magic-context/memory/storage-memory.d.ts.map +1 -1
- package/dist/features/magic-context/memory/transformers-remote-host.d.ts +6 -0
- package/dist/features/magic-context/memory/transformers-remote-host.d.ts.map +1 -0
- package/dist/features/magic-context/memory/transformers-web-entry.d.ts.map +1 -1
- package/dist/features/magic-context/message-fts-rowid-map.d.ts +3 -1
- package/dist/features/magic-context/message-fts-rowid-map.d.ts.map +1 -1
- package/dist/features/magic-context/message-index-async.d.ts +8 -3
- package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
- package/dist/features/magic-context/message-index.d.ts +7 -1
- package/dist/features/magic-context/message-index.d.ts.map +1 -1
- package/dist/features/magic-context/message-time-backfill.d.ts +19 -0
- package/dist/features/magic-context/message-time-backfill.d.ts.map +1 -0
- package/dist/features/magic-context/migrations.d.ts +16 -0
- package/dist/features/magic-context/migrations.d.ts.map +1 -1
- package/dist/features/magic-context/mural/compress-cues.d.ts.map +1 -1
- package/dist/features/magic-context/mural/storage-mural.d.ts +5 -0
- package/dist/features/magic-context/mural/storage-mural.d.ts.map +1 -1
- package/dist/features/magic-context/opencode2-relabel.d.ts +132 -0
- package/dist/features/magic-context/opencode2-relabel.d.ts.map +1 -0
- package/dist/features/magic-context/overflow-detection.d.ts +3 -0
- package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
- package/dist/features/magic-context/project-embedding-registry.d.ts +1 -0
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/protection-window.d.ts +1 -1
- package/dist/features/magic-context/protection-window.d.ts.map +1 -1
- package/dist/features/magic-context/search.d.ts +6 -0
- package/dist/features/magic-context/search.d.ts.map +1 -1
- package/dist/features/magic-context/session-decision-calibration.d.ts +31 -0
- package/dist/features/magic-context/session-decision-calibration.d.ts.map +1 -0
- package/dist/features/magic-context/session-project-backfill.d.ts.map +1 -1
- package/dist/features/magic-context/shadow-backfill-state.d.ts +1 -1
- package/dist/features/magic-context/shadow-backfill-state.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/compiler.d.ts +5 -1
- package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -1
- package/dist/features/magic-context/storage-clone.d.ts.map +1 -1
- package/dist/features/magic-context/storage-db.d.ts +1 -1
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/features/magic-context/storage-historian-runs.d.ts +4 -2
- package/dist/features/magic-context/storage-historian-runs.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +16 -2
- package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-shared.d.ts +1 -1
- package/dist/features/magic-context/storage-meta-shared.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta.d.ts +1 -1
- package/dist/features/magic-context/storage-meta.d.ts.map +1 -1
- package/dist/features/magic-context/storage-notes.d.ts +1 -0
- package/dist/features/magic-context/storage-notes.d.ts.map +1 -1
- package/dist/features/magic-context/storage-replay-document.d.ts +2 -0
- package/dist/features/magic-context/storage-replay-document.d.ts.map +1 -1
- package/dist/features/magic-context/storage-subagent-invocations.d.ts +1 -1
- package/dist/features/magic-context/storage-subagent-invocations.d.ts.map +1 -1
- package/dist/features/magic-context/storage-tags.d.ts +42 -4
- package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
- package/dist/features/magic-context/storage.d.ts +2 -2
- package/dist/features/magic-context/storage.d.ts.map +1 -1
- package/dist/features/magic-context/store-generation-rebase.d.ts +95 -0
- package/dist/features/magic-context/store-generation-rebase.d.ts.map +1 -0
- package/dist/features/magic-context/subagent-token-capture.d.ts +1 -0
- package/dist/features/magic-context/subagent-token-capture.d.ts.map +1 -1
- package/dist/features/magic-context/tagger.d.ts +2 -0
- package/dist/features/magic-context/tagger.d.ts.map +1 -1
- package/dist/features/magic-context/tool-definition-tokens.d.ts +1 -0
- package/dist/features/magic-context/tool-definition-tokens.d.ts.map +1 -1
- package/dist/features/magic-context/tool-owner-backfill.d.ts.map +1 -1
- package/dist/features/magic-context/user-memory/review-user-memories.d.ts +5 -1
- package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -1
- package/dist/hooks/auto-update-checker/index.d.ts.map +1 -1
- package/dist/hooks/magic-context/apply-operations.d.ts +10 -1
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/cache-busting-signals.d.ts +19 -4
- package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
- package/dist/hooks/magic-context/channel2-delivery.d.ts +8 -0
- package/dist/hooks/magic-context/channel2-delivery.d.ts.map +1 -1
- package/dist/hooks/magic-context/command-handler.d.ts +5 -4
- package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-off-transition.d.ts +1 -0
- package/dist/hooks/magic-context/compaction-off-transition.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-prompt.d.ts +1 -1
- package/dist/hooks/magic-context/compartment-prompt.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-render-epoch.d.ts +3 -1
- package/dist/hooks/magic-context/compartment-render-epoch.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-drop-queue.d.ts +1 -1
- package/dist/hooks/magic-context/compartment-runner-drop-queue.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts +1 -0
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts +19 -0
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-types.d.ts +19 -11
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-validation.d.ts +4 -1
- package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
- package/dist/hooks/magic-context/decay-render.d.ts +1 -0
- package/dist/hooks/magic-context/decay-render.d.ts.map +1 -1
- package/dist/hooks/magic-context/decision-calibration.d.ts +24 -0
- package/dist/hooks/magic-context/decision-calibration.d.ts.map +1 -0
- package/dist/hooks/magic-context/derive-budgets.d.ts +2 -0
- package/dist/hooks/magic-context/derive-budgets.d.ts.map +1 -1
- package/dist/hooks/magic-context/dropped-input-guard.d.ts +50 -4
- package/dist/hooks/magic-context/dropped-input-guard.d.ts.map +1 -1
- package/dist/hooks/magic-context/embed-history-runner.d.ts +30 -0
- package/dist/hooks/magic-context/embed-history-runner.d.ts.map +1 -0
- package/dist/hooks/magic-context/emergency-drop.d.ts +13 -8
- package/dist/hooks/magic-context/emergency-drop.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-payloads.d.ts +2 -1
- package/dist/hooks/magic-context/event-payloads.d.ts.map +1 -1
- package/dist/hooks/magic-context/execute-status.d.ts +2 -1
- package/dist/hooks/magic-context/execute-status.d.ts.map +1 -1
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts +12 -4
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts.map +1 -1
- package/dist/hooks/magic-context/heuristic-cleanup.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-no-fire-cause.d.ts +5 -0
- package/dist/hooks/magic-context/historian-no-fire-cause.d.ts.map +1 -0
- package/dist/hooks/magic-context/historian-publish-stage-logger.d.ts +3 -0
- package/dist/hooks/magic-context/historian-publish-stage-logger.d.ts.map +1 -0
- package/dist/hooks/magic-context/hook-handlers.d.ts +0 -3
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts +4 -4
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/host-served-rows.d.ts +58 -0
- package/dist/hooks/magic-context/host-served-rows.d.ts.map +1 -0
- package/dist/hooks/magic-context/inject-compartments.d.ts +38 -0
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/legacy-compartments.d.ts +20 -0
- package/dist/hooks/magic-context/legacy-compartments.d.ts.map +1 -0
- package/dist/hooks/magic-context/live-session-state.d.ts +7 -7
- package/dist/hooks/magic-context/m0-token-breakdown.d.ts +6 -0
- package/dist/hooks/magic-context/m0-token-breakdown.d.ts.map +1 -1
- package/dist/hooks/magic-context/maintenance-authority.d.ts +0 -1
- package/dist/hooks/magic-context/maintenance-authority.d.ts.map +1 -1
- package/dist/hooks/magic-context/module-state-sync.d.ts +4 -1
- package/dist/hooks/magic-context/module-state-sync.d.ts.map +1 -1
- package/dist/hooks/magic-context/module-transport.d.ts +24 -2
- package/dist/hooks/magic-context/module-transport.d.ts.map +1 -1
- package/dist/hooks/magic-context/module-wire.d.ts +43 -1
- package/dist/hooks/magic-context/module-wire.d.ts.map +1 -1
- package/dist/hooks/magic-context/note-nudger.d.ts.map +1 -1
- package/dist/hooks/magic-context/postprocess-read-cache.d.ts +8 -0
- package/dist/hooks/magic-context/postprocess-read-cache.d.ts.map +1 -0
- package/dist/hooks/magic-context/producer-window-guard.d.ts +47 -1
- package/dist/hooks/magic-context/producer-window-guard.d.ts.map +1 -1
- package/dist/hooks/magic-context/producer-window-test-support.d.ts +14 -0
- package/dist/hooks/magic-context/producer-window-test-support.d.ts.map +1 -0
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts +2 -0
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-chunk.d.ts +51 -10
- package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-db.d.ts +8 -0
- package/dist/hooks/magic-context/read-session-db.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-formatting.d.ts +6 -0
- package/dist/hooks/magic-context/read-session-formatting.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-raw.d.ts +4 -0
- package/dist/hooks/magic-context/read-session-raw.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-true-raw-tokens.d.ts +6 -0
- package/dist/hooks/magic-context/read-session-true-raw-tokens.d.ts.map +1 -1
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts +17 -39
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-mode-transform.d.ts +51 -0
- package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-refusal-recovery.d.ts +28 -0
- package/dist/hooks/magic-context/rust-refusal-recovery.d.ts.map +1 -0
- package/dist/hooks/magic-context/sentinel.d.ts.map +1 -1
- package/dist/hooks/magic-context/system-prompt-hash.d.ts +6 -7
- package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts +21 -1
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/tail-hygiene-walk.d.ts +63 -0
- package/dist/hooks/magic-context/tail-hygiene-walk.d.ts.map +1 -1
- package/dist/hooks/magic-context/tokenizer-calibration.d.ts +19 -12
- package/dist/hooks/magic-context/tokenizer-calibration.d.ts.map +1 -1
- package/dist/hooks/magic-context/tool-drop-target.d.ts +52 -1
- package/dist/hooks/magic-context/tool-drop-target.d.ts.map +1 -1
- package/dist/hooks/magic-context/tool-sweep-policy.d.ts +50 -0
- package/dist/hooks/magic-context/tool-sweep-policy.d.ts.map +1 -0
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +20 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-context-state.d.ts +9 -0
- package/dist/hooks/magic-context/transform-context-state.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +5 -3
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +44 -4
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/wrapup-orchestrator.d.ts.map +1 -1
- package/dist/{index-f9gem5cr.js → index-8w1skpnm.js} +85 -5
- package/dist/index-99sfbrrf.js +170 -0
- package/dist/index-9skq8m9y.js +16 -0
- package/dist/{index-3wbd8sdq.js → index-d0dh7v0f.js} +28107 -29850
- package/dist/{index-d8mgqezq.js → index-rpz2me0v.js} +133 -78
- package/dist/{index-p474rw9p.js → index-rvwvdq59.js} +1 -1
- package/dist/index-w2ety11c.js +393 -0
- package/dist/index-y5145x8k.js +619 -0
- package/dist/index-ygwdyntq.js +5407 -0
- package/dist/{index-jkrqhc7y.js → index-ykg9sdzz.js} +147 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7065 -3197
- package/dist/message-time-backfill-gzjer78y.js +108 -0
- package/dist/plugin/dream-timer.d.ts +13 -0
- package/dist/plugin/dream-timer.d.ts.map +1 -1
- package/dist/plugin/embedding-bootstrap.d.ts.map +1 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +5 -2
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/plugin/memory-id-translation.d.ts +109 -0
- package/dist/plugin/memory-id-translation.d.ts.map +1 -0
- package/dist/plugin/messages-transform.d.ts.map +1 -1
- package/dist/plugin/rpc-handlers.d.ts +10 -0
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/plugin/rust-note-backend.d.ts +84 -0
- package/dist/plugin/rust-note-backend.d.ts.map +1 -0
- package/dist/plugin/rust-tool-backends.d.ts +1 -1
- package/dist/plugin/rust-tool-backends.d.ts.map +1 -1
- package/dist/plugin/tool-registry.d.ts +1 -0
- package/dist/plugin/tool-registry.d.ts.map +1 -1
- package/dist/read-session-chunk-ec3jkvhg.js +61 -0
- package/dist/{recomp-orchestrator-k20sfpm2.js → recomp-orchestrator-6akjp11f.js} +8 -8
- package/dist/{send-session-notification-xnypkxpx.js → send-session-notification-f6gwkesy.js} +2 -2
- package/dist/shared/assistant-message-extractor.d.ts +6 -0
- package/dist/shared/assistant-message-extractor.d.ts.map +1 -1
- package/dist/shared/auto-update-provenance.d.ts +9 -0
- package/dist/shared/auto-update-provenance.d.ts.map +1 -0
- package/dist/shared/conflict-detector.d.ts +14 -5
- package/dist/shared/conflict-detector.d.ts.map +1 -1
- package/dist/shared/hidden-variant-warnings.d.ts +5 -0
- package/dist/shared/hidden-variant-warnings.d.ts.map +1 -0
- package/dist/shared/host-limitations.d.ts +14 -0
- package/dist/shared/host-limitations.d.ts.map +1 -0
- package/dist/shared/keep-subagents.d.ts +1 -1
- package/dist/shared/keep-subagents.d.ts.map +1 -1
- package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
- package/dist/shared/models-dev-cache.d.ts +1 -0
- package/dist/shared/models-dev-cache.d.ts.map +1 -1
- package/dist/shared/opencode-config-dir.d.ts +52 -0
- package/dist/shared/opencode-config-dir.d.ts.map +1 -1
- package/dist/shared/opencode-db-path.d.ts +46 -2
- package/dist/shared/opencode-db-path.d.ts.map +1 -1
- package/dist/shared/prompt-surface-runtime.d.ts +6 -6
- package/dist/shared/prompt-surface-runtime.d.ts.map +1 -1
- package/dist/shared/rpc-server.d.ts +10 -0
- package/dist/shared/rpc-server.d.ts.map +1 -1
- package/dist/shared/rpc-types.d.ts +64 -5
- package/dist/shared/rpc-types.d.ts.map +1 -1
- package/dist/shared/status-detail-text.d.ts +1 -3
- package/dist/shared/status-detail-text.d.ts.map +1 -1
- package/dist/shared/status-summary.d.ts +7 -0
- package/dist/shared/status-summary.d.ts.map +1 -1
- package/dist/shared/status-view.d.ts +229 -0
- package/dist/shared/status-view.d.ts.map +1 -0
- package/dist/shared/tag-transcript.d.ts.map +1 -1
- package/dist/shared/tail-hygiene-status.d.ts +8 -0
- package/dist/shared/tail-hygiene-status.d.ts.map +1 -1
- package/dist/shared/user-facing-codes.d.ts +32 -7
- package/dist/shared/user-facing-codes.d.ts.map +1 -1
- package/dist/shared/window-geometry.d.ts +3 -0
- package/dist/shared/window-geometry.d.ts.map +1 -1
- package/dist/{task-config-cv8k9y8r.js → task-config-ex4nt0q0.js} +1 -1
- package/dist/tools/ctx-expand/constants.d.ts +1 -1
- package/dist/tools/ctx-expand/constants.d.ts.map +1 -1
- package/dist/tools/ctx-expand/mode.d.ts +31 -0
- package/dist/tools/ctx-expand/mode.d.ts.map +1 -0
- package/dist/tools/ctx-expand/render.d.ts.map +1 -1
- package/dist/tools/ctx-expand/tools.d.ts.map +1 -1
- package/dist/tools/ctx-memory/constants.d.ts +3 -1
- package/dist/tools/ctx-memory/constants.d.ts.map +1 -1
- package/dist/tools/ctx-memory/tools.d.ts +1 -0
- package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
- package/dist/tools/ctx-memory/types.d.ts +2 -2
- package/dist/tools/ctx-note/constants.d.ts +1 -1
- package/dist/tools/ctx-note/constants.d.ts.map +1 -1
- package/dist/tools/ctx-note/render.d.ts +88 -0
- package/dist/tools/ctx-note/render.d.ts.map +1 -0
- package/dist/tools/ctx-note/tools.d.ts.map +1 -1
- package/dist/tools/ctx-note/types.d.ts +1 -1
- package/dist/tools/ctx-note/types.d.ts.map +1 -1
- package/dist/tools/ctx-reduce/constants.d.ts +1 -1
- package/dist/tools/ctx-reduce/constants.d.ts.map +1 -1
- package/dist/tools/ctx-search/constants.d.ts +1 -1
- package/dist/tools/ctx-search/constants.d.ts.map +1 -1
- package/dist/tools/ctx-search/date-range.d.ts +9 -0
- package/dist/tools/ctx-search/date-range.d.ts.map +1 -0
- package/dist/tools/ctx-search/tools.d.ts.map +1 -1
- package/dist/tools/ctx-search/types.d.ts +3 -1
- package/dist/tools/ctx-search/types.d.ts.map +1 -1
- package/dist/tools/light-descriptions.d.ts +5 -5
- package/dist/tools/light-descriptions.d.ts.map +1 -1
- package/dist/tools/parameter-descriptions.d.ts +75 -0
- package/dist/tools/parameter-descriptions.d.ts.map +1 -0
- package/dist/transformers-node-wasm.js +1918 -826
- package/dist/transformers-web.js +1736 -636
- package/dist/{transformers.node-dpmf3wpx.js → transformers.node-3zqr6k1w.js} +4087 -2898
- package/dist/tui/data/context-db.d.ts +19 -7
- package/dist/tui/data/context-db.d.ts.map +1 -1
- package/dist/tui-compiled/data/context-db.d.ts +19 -7
- package/dist/tui-compiled/data/context-db.d.ts.map +1 -1
- package/dist/v2/fold/host-media.d.ts +36 -0
- package/dist/v2/fold/host-media.d.ts.map +1 -0
- package/dist/v2/fold/restore.d.ts +21 -1
- package/dist/v2/fold/restore.d.ts.map +1 -1
- package/dist/v2/hidden-completion.d.ts +114 -14
- package/dist/v2/hidden-completion.d.ts.map +1 -1
- package/dist/v2/hooks/commands.d.ts +29 -0
- package/dist/v2/hooks/commands.d.ts.map +1 -0
- package/dist/v2/hooks/context.d.ts +58 -2
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/deleted-session-tombstones.d.ts +10 -0
- package/dist/v2/hooks/deleted-session-tombstones.d.ts.map +1 -0
- package/dist/v2/hooks/dream-manual.d.ts +43 -0
- package/dist/v2/hooks/dream-manual.d.ts.map +1 -0
- package/dist/v2/hooks/dream-trigger.d.ts +7 -0
- package/dist/v2/hooks/dream-trigger.d.ts.map +1 -1
- package/dist/v2/hooks/hidden-child.d.ts +32 -0
- package/dist/v2/hooks/hidden-child.d.ts.map +1 -0
- package/dist/v2/hooks/model-limit-cache.d.ts +19 -0
- package/dist/v2/hooks/model-limit-cache.d.ts.map +1 -0
- package/dist/v2/hooks/payload.d.ts.map +1 -1
- package/dist/v2/hooks/provider-admission.d.ts +22 -0
- package/dist/v2/hooks/provider-admission.d.ts.map +1 -0
- package/dist/v2/hooks/rpc-live-state.d.ts +9 -0
- package/dist/v2/hooks/rpc-live-state.d.ts.map +1 -0
- package/dist/v2/hooks/store.d.ts +38 -2
- package/dist/v2/hooks/store.d.ts.map +1 -1
- package/dist/v2/hooks/tools.d.ts +8 -0
- package/dist/v2/hooks/tools.d.ts.map +1 -0
- package/dist/v2/hooks/types.d.ts +157 -19
- package/dist/v2/hooks/types.d.ts.map +1 -1
- package/dist/v2/hooks/usage-reading.d.ts +42 -0
- package/dist/v2/hooks/usage-reading.d.ts.map +1 -0
- package/dist/v2/host-service.d.ts +65 -0
- package/dist/v2/host-service.d.ts.map +1 -0
- package/dist/v2/server.d.ts +19 -0
- package/dist/v2/server.d.ts.map +1 -1
- package/dist/v2/server.js +141849 -110533
- package/dist/v2/store-reader.d.ts +78 -6
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/tui/events.d.ts +7 -0
- package/dist/v2/tui/events.d.ts.map +1 -0
- package/dist/v2/tui/index.d.ts +33 -0
- package/dist/v2/tui/index.d.ts.map +1 -0
- package/dist/v2/tui/sidebar-mount.d.ts +40 -0
- package/dist/v2/tui/sidebar-mount.d.ts.map +1 -0
- package/dist/v2/tui/status-dialog-mount.d.ts +29 -0
- package/dist/v2/tui/status-dialog-mount.d.ts.map +1 -0
- package/dist/v2/tui/types.d.ts +148 -0
- package/dist/v2/tui/types.d.ts.map +1 -0
- package/dist/wrapup-orchestrator-5akc87gr.js +16 -0
- package/package.json +9 -7
- package/src/agents/dreamer.ts +7 -16
- package/src/agents/hidden-agent-registrations.ts +10 -22
- package/src/agents/magic-context-prompt.test.ts +29 -39
- package/src/agents/magic-context-prompt.ts +99 -122
- package/src/agents/permissions.test.ts +17 -21
- package/src/config/index.ts +39 -4
- package/src/config/live-run-config.test.ts +237 -0
- package/src/config/live-run-config.ts +80 -0
- package/src/config/live-schema-drift.test.ts +67 -0
- package/src/config/live-snapshot.test.ts +85 -0
- package/src/config/live-snapshot.ts +191 -0
- package/src/config/protected-tokens.test.ts +40 -0
- package/src/config/raw-loader.test.ts +1 -0
- package/src/config/schema/magic-context.test.ts +13 -5
- package/src/config/schema/magic-context.ts +109 -13
- package/src/features/magic-context/dreamer/task-registry.ts +137 -13
- package/src/shared/assistant-message-extractor.test.ts +21 -0
- package/src/shared/assistant-message-extractor.ts +43 -8
- package/src/shared/auto-update-provenance.ts +42 -0
- package/src/shared/child-session-teardown.test.ts +38 -3
- package/src/shared/child-session-teardown.ts +3 -3
- package/src/shared/conflict-detector.test.ts +277 -7
- package/src/shared/conflict-detector.ts +221 -80
- package/src/shared/hidden-variant-warnings.ts +21 -0
- package/src/shared/host-limitations.ts +43 -0
- package/src/shared/keep-subagents.ts +6 -6
- package/src/shared/model-suggestion-retry.test.ts +43 -0
- package/src/shared/model-suggestion-retry.ts +12 -0
- package/src/shared/models-dev-cache.test.ts +25 -0
- package/src/shared/models-dev-cache.ts +5 -0
- package/src/shared/opencode-config-dir.ts +80 -7
- package/src/shared/opencode-db-path.test.ts +174 -0
- package/src/shared/opencode-db-path.ts +193 -15
- package/src/shared/opencode-host-generation.test.ts +29 -0
- package/src/shared/prompt-surface-a1-golden.md +142 -215
- package/src/shared/prompt-surface-runtime.test.ts +20 -0
- package/src/shared/prompt-surface-runtime.ts +7 -5
- package/src/shared/rpc-server.ts +18 -0
- package/src/shared/rpc-types.ts +63 -4
- package/src/shared/status-detail-text.test.ts +52 -18
- package/src/shared/status-detail-text.ts +1 -90
- package/src/shared/status-summary.ts +37 -2
- package/src/shared/status-view.test.ts +441 -0
- package/src/shared/status-view.ts +707 -0
- package/src/shared/tag-transcript.ts +115 -16
- package/src/shared/tail-hygiene-status.ts +9 -1
- package/src/shared/user-facing-codes.test.ts +3 -4
- package/src/shared/user-facing-codes.ts +33 -8
- package/src/shared/window-geometry.test.ts +23 -5
- package/src/shared/window-geometry.ts +13 -3
- package/src/tui/data/context-db.ts +50 -15
- package/src/tui/dialogs/status-dialog-colors.test.ts +58 -0
- package/src/tui/dialogs/status-dialog.tsx +288 -0
- package/src/tui/entry.mjs +11 -1
- package/src/tui/index.tsx +7 -464
- package/src/tui/slots/sidebar-content.tsx +21 -5
- package/src/tui-compiled/data/context-db.ts +50 -15
- package/src/tui-compiled/dialogs/status-dialog.tsx +552 -0
- package/src/tui-compiled/index.tsx +43 -1025
- package/src/tui-compiled/slots/sidebar-content.tsx +173 -152
- package/src/v2/tui/__fixtures__/ga-host-theme.json +160 -0
- package/src/v2/tui/events.ts +23 -0
- package/src/v2/tui/host-contract.test.ts +251 -0
- package/src/v2/tui/index.ts +526 -0
- package/src/v2/tui/load-compiled-sidebar.d.mts +59 -0
- package/src/v2/tui/load-compiled-sidebar.mjs +24 -0
- package/src/v2/tui/load-compiled-status-dialog.d.mts +17 -0
- package/src/v2/tui/load-compiled-status-dialog.mjs +16 -0
- package/src/v2/tui/sidebar-fallback.test.ts +100 -0
- package/src/v2/tui/sidebar-mount.ts +164 -0
- package/src/v2/tui/sidebar-text.test.ts +70 -0
- package/src/v2/tui/status-dialog-fallback.test.ts +97 -0
- package/src/v2/tui/status-dialog-mount.ts +76 -0
- package/src/v2/tui/theme-mapping.test.ts +57 -0
- package/src/v2/tui/types.ts +132 -0
- package/tui.js +1 -0
- package/dist/features/magic-context/memory/memory-migration.d.ts +0 -129
- package/dist/features/magic-context/memory/memory-migration.d.ts.map +0 -1
- package/dist/hooks/magic-context/upgrade-reminder.d.ts +0 -76
- package/dist/hooks/magic-context/upgrade-reminder.d.ts.map +0 -1
- package/dist/index-1ar7b3e9.js +0 -637
- package/dist/index-4wwr6cz0.js +0 -112
- package/dist/index-avwt563y.js +0 -62
- package/dist/storage-meta-session-x3j0q9qy.js +0 -20
package/README.md
CHANGED
|
@@ -111,7 +111,7 @@ If you cannot run the wizard, add this to `opencode.jsonc`:
|
|
|
111
111
|
}
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
> **Plugin updates:** A bare plugin entry is pinned to the downloaded exact version before restart so OpenCode does not remove the active package mid-session. To
|
|
114
|
+
> **Plugin updates:** A bare plugin entry is pinned to the downloaded exact version before restart so OpenCode does not remove the active package mid-session. Magic Context records the exact spec written by its updater and advances that updater-owned pin on later checks. Any other exact spec is treated as pinned by you and is not changed. Because provenance is keyed to the exact spec string, manually changing the entry to the same spec the updater last wrote is indistinguishable from the updater's pin and will be advanced. To opt out, set `auto_update: false` or pin any other exact version. To deliberately stay unpinned, write `@latest` explicitly (OpenCode may remove an unpinned active package mid-session).
|
|
115
115
|
|
|
116
116
|
Then create `magic-context.jsonc` with the OpenCode historian setting:
|
|
117
117
|
|
|
@@ -301,7 +301,6 @@ Recall works **across sessions** (a new session inherits everything) and **acros
|
|
|
301
301
|
| `/ctx-flush` | Force all queued operations immediately, bypassing cache TTL |
|
|
302
302
|
| `/ctx-recomp` | Rebuild compartments from raw history (accepts a `start-end` range). Use when stored state seems wrong |
|
|
303
303
|
| `/ctx-wrapup [messages_to_keep]` | Compact older live history while keeping the newest N messages raw; queued compaction materializes on the next model message |
|
|
304
|
-
| `/ctx-session-upgrade` | Upgrade this session to the latest history format: rebuild compartments and migrate project memories |
|
|
305
304
|
| `/ctx-dream` | Run dreamer maintenance on demand: maintain memory, docs, smart notes, and user-profile review |
|
|
306
305
|
| `/ctx-embed` | Embedding status, or start/pause history compartment embedding (`start` \| `pause`) |
|
|
307
306
|
|
|
@@ -330,7 +329,7 @@ It reads directly from Magic Context's SQLite database. No extra server, no API.
|
|
|
330
329
|
|
|
331
330
|
Settings live in `magic-context.jsonc`. Most settings have sensible defaults, but the active harness's historian model (`historian.opencode.model`, `historian.pi.model`, or `historian.omp.model`) is required for history compacting; project config merges on top of user-wide settings. For the full reference — cache TTL tuning, per-model execute thresholds, historian and dreamer model selection, embedding providers, memory settings, and prompt-surface presets (`full`/`light`) — see **[CONFIGURATION.md](./CONFIGURATION.md)** or the **[configuration reference on docs.cortexkit.io](https://docs.cortexkit.io/magic-context/reference/configuration/)**.
|
|
332
331
|
|
|
333
|
-
> **Note on per-model settings
|
|
332
|
+
> **Note on per-model settings:** `prompt_surface.models` always routes the injected guidance block. OpenCode 1.x, Pi, and OMP register tool descriptions once per process (they follow `prompt_surface.default`). OpenCode 2 rewrites the five `ctx_*` descriptions per request from the draft model.
|
|
334
333
|
|
|
335
334
|
**Config locations** (one shared CortexKit location, project overrides user):
|
|
336
335
|
1. `<project-root>/.cortexkit/magic-context.jsonc`
|
|
@@ -417,18 +416,18 @@ Run a single dry pass from the repository root; each new unaccounted bust window
|
|
|
417
416
|
bun packages/plugin/scripts/cache-bust-sentinel.ts --once
|
|
418
417
|
```
|
|
419
418
|
|
|
420
|
-
Omit `--once` for the built-in one-minute loop, or invoke `--once` from cron/launchd every 1–5 minutes. The template at `packages/plugin/scripts/launchd/com.cortexkit.magic-context.cache-bust-sentinel.plist` uses a five-minute cadence, deliberately has `RunAtLoad=false`, and is not installed automatically. Replace its `__BUN_PATH__`, `__REPO_ROOT__`, and `__LOG_DIR__` placeholders before loading it. A cron equivalent is:
|
|
419
|
+
Omit `--once` for the built-in one-minute loop, or invoke `--once` from cron/launchd every 1–5 minutes. The template at `packages/plugin/scripts/launchd/com.cortexkit.magic-context.cache-bust-sentinel.plist` uses a five-minute cadence, enables `--send`, deliberately has `RunAtLoad=false`, and is not installed automatically. Replace its `__BUN_PATH__`, `__REPO_ROOT__`, and `__LOG_DIR__` placeholders before loading it. A cron equivalent is:
|
|
421
420
|
|
|
422
421
|
```cron
|
|
423
|
-
*/5 * * * * cd /path/to/magic-context && /path/to/bun packages/plugin/scripts/cache-bust-sentinel.ts --once >> /path/to/cache-bust-sentinel.jsonl 2>> /path/to/cache-bust-sentinel.log
|
|
422
|
+
*/5 * * * * cd /path/to/magic-context && /path/to/bun packages/plugin/scripts/cache-bust-sentinel.ts --once --send >> /path/to/cache-bust-sentinel.jsonl 2>> /path/to/cache-bust-sentinel.log
|
|
424
423
|
```
|
|
425
424
|
|
|
426
|
-
`--send` switches from JSON-line dry-run output to the `prefrontal` module's `
|
|
425
|
+
`--send` switches from JSON-line dry-run output to the `prefrontal-core` module's `agent.deliver` subc operation. It sends a high-urgency registry peer message to `agent_b613e5cf2ee55b8c` from the rendered name `mc-cache-bust-sentinel` by default; the request also stamps the sender as session `health-sentinel-mc` on harness `magic-context`. Use `--wake-agent-id` or `--wake-from-agent` to select another target or rendered sender name. Delivered and queued dispositions are counted as accepted, while a repeated committed order for the same delivery id is counted as deduplicated; sender refusals are counted without retrying the delivery id, and malformed replies or idempotency conflicts fail the run. Use `--connection-file`, `--wake-module-id`, `--wake-agent-id`, `--wake-from-agent`, `--state-file`, `--db`, or `--rust-store` only when the corresponding runtime location is non-default.
|
|
427
426
|
|
|
428
427
|
---
|
|
429
428
|
## Contributing
|
|
430
429
|
|
|
431
|
-
Bug reports and pull requests are welcome.
|
|
430
|
+
Bug reports and pull requests are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) for the approved-issue and harness-coverage rules before starting.
|
|
432
431
|
|
|
433
432
|
---
|
|
434
433
|
|
package/dist/agents/dreamer.d.ts
CHANGED
|
@@ -7,15 +7,13 @@ export declare const DREAMER_MEMORY_MAPPER_AGENT = "dreamer-memory-mapper";
|
|
|
7
7
|
export declare const DREAMER_MEMORY_MAPPER_ALLOWED_TOOLS: readonly ["read", "grep", "glob", "aft_outline", "aft_zoom", "aft_search"];
|
|
8
8
|
export declare const DREAMER_CLASSIFIER_AGENT = "dreamer-classifier";
|
|
9
9
|
export declare const DREAMER_DOCS_AGENT = "dreamer-docs";
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
export declare const DREAMER_DOCS_ALLOWED_TOOLS: readonly ["read", "grep", "glob", "bash", "write", "edit", "aft_outline", "aft_zoom", "aft_search"];
|
|
10
|
+
/** Read-only source investigation for docs proposals. */
|
|
11
|
+
export declare const DREAMER_DOCS_ALLOWED_TOOLS: readonly ["read", "grep", "glob", "aft_outline", "aft_zoom", "aft_search"];
|
|
13
12
|
export declare const DREAMER_REVIEWER_AGENT = "dreamer-reviewer";
|
|
14
13
|
/** Tool profile for the base `dreamer` agent, now CURATE-ONLY (memory-pool
|
|
15
|
-
* hygiene). Curate edits
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
|
|
20
|
-
export declare const DREAMER_CURATE_ALLOWED_TOOLS: readonly ["ctx_memory"];
|
|
14
|
+
* hygiene). Curate edits memories through ctx_memory and enumerates them through
|
|
15
|
+
* the dreamer-only ctx_memory_list; it never reads code because a separate verify
|
|
16
|
+
* task owns memory-vs-code correctness. Kept on the `dreamer` id so memory-tool
|
|
17
|
+
* agent gates recognize it. */
|
|
18
|
+
export declare const DREAMER_CURATE_ALLOWED_TOOLS: readonly ["ctx_memory", "ctx_memory_list"];
|
|
21
19
|
//# sourceMappingURL=dreamer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dreamer.d.ts","sourceRoot":"","sources":["../../src/agents/dreamer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;AAOnE,eAAO,MAAM,iCAAiC,gCAAgC,CAAC;AAQ/E,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;AAEnE;0EAC0E;AAC1E,eAAO,MAAM,mCAAmC,4EAOtC,CAAC;AAMX,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"dreamer.d.ts","sourceRoot":"","sources":["../../src/agents/dreamer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;AAOnE,eAAO,MAAM,iCAAiC,gCAAgC,CAAC;AAQ/E,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;AAEnE;0EAC0E;AAC1E,eAAO,MAAM,mCAAmC,4EAOtC,CAAC;AAMX,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAG7D,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AAEjD,yDAAyD;AACzD,eAAO,MAAM,0BAA0B,4EAO7B,CAAC;AAKX,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AAEzD;;;;gCAIgC;AAChC,eAAO,MAAM,4BAA4B,4CAA6C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hidden-agent-registrations.d.ts","sourceRoot":"","sources":["../../src/agents/hidden-agent-registrations.ts"],"names":[],"mappings":"AAiCA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,+BAA+B,2BAA2B,CAAC;AAIxE,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,sFAAsF;IACtF,IAAI,EAAE,SAAS,CAAC;IAChB,mFAAmF;IACnF,MAAM,EAAE,IAAI,CAAC;IACb,6JAA6J;IAC7J,WAAW,EAAE,MAAM,CAAC;IACpB,MAA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CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,0EAA0E;IAC1E,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE;IAChD,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,uBAAuB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7C,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,qBAAqB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C,mBAAmB,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1C,GAAG,uBAAuB,EAAE,CAwL5B;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAClC,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,SAAS,MAAM,EAAE,EAC/B,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,UAAU,CAAC,EAAE,MAAM,EACnB,eAAe,UAAQ,EACvB,WAAW,CAAC,EAAE,MAAM;;;;;;;;;;EAgEvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magic-context-prompt.d.ts","sourceRoot":"","sources":["../../src/agents/magic-context-prompt.ts"],"names":[],"mappings":"AAAA,wEAAwE;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"magic-context-prompt.d.ts","sourceRoot":"","sources":["../../src/agents/magic-context-prompt.ts"],"names":[],"mappings":"AAAA,wEAAwE;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAqJpE,wBAAgB,wBAAwB,CACpC,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,sBAAsB,EAAE,MAAM,EAC9B,iBAAiB,UAAO,EACxB,cAAc,UAAQ,EACtB,wBAAwB,UAAQ,EAChC,6BAA6B,UAAQ,EACrC,YAAY,UAAQ,EACpB,QAAQ,CAAC,EAAE,MAAM,EACjB,aAAa,UAAO,EACpB,MAAM,GAAE,mBAA4B,EACpC,eAAe,CAAC,EAAE,MAAM,GACzB,MAAM,CAsCR"}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -38,6 +38,15 @@ export interface LoadResultDetailed {
|
|
|
38
38
|
warningDetails: ConfigWarningDetail[];
|
|
39
39
|
cacheTtlConfigured: boolean;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Specific warning for a protected_tokens value that is a number below the
|
|
43
|
+
* schema minimum. The generic "invalid value (number 20), using default
|
|
44
|
+
* undefined" message is true but unhelpful: it does not say the value is in the
|
|
45
|
+
* wrong unit (a leftover protected_tags tag count), and "using default
|
|
46
|
+
* undefined" reads like a bug. This branch fires ONLY for `number < min`;
|
|
47
|
+
* every other invalid value (wrong type, above max) keeps the generic message.
|
|
48
|
+
*/
|
|
49
|
+
export declare function formatProtectedTokensBelowMinWarning(value: number): string;
|
|
41
50
|
export declare function resetProtectedTagsDeprecationWarningForTest(): void;
|
|
42
51
|
export declare function warnProtectedTagsDeprecationOnce(): void;
|
|
43
52
|
export declare function parsePluginConfig(rawConfig: Record<string, unknown>, recoveredTopLevelKeys?: string[]): MagicContextPluginConfig & {
|
|
@@ -46,5 +55,5 @@ export declare function parsePluginConfig(rawConfig: Record<string, unknown>, re
|
|
|
46
55
|
export declare function loadPluginConfig(directory: string): MagicContextPluginConfig & {
|
|
47
56
|
configWarnings?: string[];
|
|
48
57
|
};
|
|
49
|
-
export declare function loadPluginConfigDetailed(directory: string): LoadResultDetailed;
|
|
58
|
+
export declare function loadPluginConfigDetailed(directory: string, applyRuntimeGlobals?: boolean): LoadResultDetailed;
|
|
50
59
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EAC3B,MAAM,8BAA8B,CAAC;AAOtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAsBpE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EAC3B,MAAM,8BAA8B,CAAC;AAOtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAsBpE,OAAO,EACH,KAAK,kBAAkB,EAG1B,MAAM,wBAAwB,CAAC;AAIhC,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB;IAChE,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC3C,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7C,6FAA6F;IAC7F,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CACZ,MAAM,EACN;QACI,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,OAAO,CAAC;KACrB,CACJ,CAAC;CACL;AAwCD,MAAM,MAAM,WAAW,GACjB,IAAI,GACJ,0BAA0B,GAC1B,uBAAuB,GACvB,0BAA0B,GAC1B,iBAAiB,GACjB,sBAAsB,CAAC;A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|
|
2
|
+
import { LiveConfigReader } from "./live-snapshot";
|
|
3
|
+
import { type MagicContextConfig } from "./schema/magic-context";
|
|
4
|
+
/** Copy only schema-marked live paths from fresh config; other settings retain boot values. */
|
|
5
|
+
export declare function sampleLiveConfig<T extends MagicContextConfig>(boot: T, fresh: T): T;
|
|
6
|
+
export declare function changedLiveKeys(previous: MagicContextConfig, next: MagicContextConfig): string[];
|
|
7
|
+
export declare const historianRunConfig: typeof sampleLiveConfig;
|
|
8
|
+
export declare const dreamerRunConfig: typeof sampleLiveConfig;
|
|
9
|
+
/** Shared by all OpenCode entry points for one project in this process. */
|
|
10
|
+
export declare function pluginConfigReader(directory: string, boot: MagicContextPluginConfig): LiveConfigReader<MagicContextPluginConfig>;
|
|
11
|
+
export declare function currentPluginConfigReader(directory: string): LiveConfigReader<MagicContextPluginConfig> | undefined;
|
|
12
|
+
//# sourceMappingURL=live-run-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-run-config.d.ts","sourceRoot":"","sources":["../../src/config/live-run-config.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAA4B,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE3F,+FAA+F;AAC/F,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,kBAAkB,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAoBnF;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,kBAAkB,GAAG,MAAM,EAAE,CAWhG;AAED,eAAO,MAAM,kBAAkB,yBAAmB,CAAC;AACnD,eAAO,MAAM,gBAAgB,yBAAmB,CAAC;AAIjD,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,8CA4BnF;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,0DAE1D"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface ConfigSnapshot<T> {
|
|
2
|
+
readonly generation: number;
|
|
3
|
+
readonly digest: string;
|
|
4
|
+
readonly adoptedAt: number;
|
|
5
|
+
readonly effective: T;
|
|
6
|
+
}
|
|
7
|
+
export interface ConfigReloadFailure {
|
|
8
|
+
readonly path: string;
|
|
9
|
+
readonly message: string;
|
|
10
|
+
readonly digest: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Publishes a project configuration only after the user and project files parse
|
|
14
|
+
* and the loader assembles the final effective configuration successfully.
|
|
15
|
+
*/
|
|
16
|
+
export declare class LiveConfigReader<T> {
|
|
17
|
+
private readonly directory;
|
|
18
|
+
private readonly load;
|
|
19
|
+
private readonly onLog;
|
|
20
|
+
private readonly changedKeys;
|
|
21
|
+
private snapshot;
|
|
22
|
+
private files;
|
|
23
|
+
private initialized;
|
|
24
|
+
private warned;
|
|
25
|
+
private failure;
|
|
26
|
+
constructor(directory: string, initial: T, load: () => T, onLog?: (message: string) => void, changedKeys?: (previous: T, next: T) => readonly string[]);
|
|
27
|
+
current(): ConfigSnapshot<T>;
|
|
28
|
+
lastFailure(): ConfigReloadFailure | undefined;
|
|
29
|
+
poll(): ConfigSnapshot<T>;
|
|
30
|
+
private reportFailure;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=live-snapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-snapshot.d.ts","sourceRoot":"","sources":["../../src/config/live-snapshot.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,cAAc,CAAC,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3B;AAOD;;;GAGG;AACH,qBAAa,gBAAgB,CAAC,CAAC;IAQvB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAE1B,OAAO,CAAC,QAAQ,CAAC,IAAI;IAGrB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAbhC,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,KAAK,CAAgC;IAC7C,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,OAAO,CAAkC;gBAG5B,SAAS,EAAE,MAAM,EAClC,OAAO,EAAE,CAAC,EACO,IAAI,EAAE,MAAM,CAAC,EAGb,KAAK,GAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAe,EAC3C,WAAW,GAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,SAAS,MAAM,EAQlE;IAUT,OAAO,IAAI,cAAc,CAAC,CAAC,CAAC;IAI5B,WAAW,IAAI,mBAAmB,GAAG,SAAS;IAI9C,IAAI,IAAI,cAAc,CAAC,CAAC,CAAC;IAgHzB,OAAO,CAAC,aAAa;CAOxB"}
|
|
@@ -4,6 +4,7 @@ export declare const DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE = 65;
|
|
|
4
4
|
export declare const EXECUTE_THRESHOLD_CAP_MESSAGE = "execute_threshold is capped at 90% for cache safety: output capacity is reserved from the usable context window, and the remaining 10% absorbs mid-turn growth before the absolute 95% emergency wall. Use a value between 20 and 90.";
|
|
5
5
|
export declare const DEFAULT_HISTORIAN_TIMEOUT_MS = 600000;
|
|
6
6
|
export declare const DEFAULT_HISTORY_BUDGET_PERCENTAGE = 0.15;
|
|
7
|
+
export declare const PROTECTED_TOKENS_MIN = 4000;
|
|
7
8
|
export declare const DEFAULT_LOCAL_EMBEDDING_MODEL = "Xenova/all-MiniLM-L6-v2";
|
|
8
9
|
export type DreamingTask = (typeof AGENTIC_DREAM_TASKS)[number];
|
|
9
10
|
/** Valid thinking levels for Pi subagents. Maps to Pi's --thinking CLI flag.
|
|
@@ -76,7 +77,7 @@ export declare const PER_HARNESS_MIGRATION_INVENTORY: {
|
|
|
76
77
|
readonly migrated_execution: readonly ["model", "fallback_models", "variant", "thinking_level"];
|
|
77
78
|
};
|
|
78
79
|
readonly task: {
|
|
79
|
-
readonly retained: readonly ["schedule", "promotion_threshold"];
|
|
80
|
+
readonly retained: readonly ["schedule", "promotion_threshold", "recency_days"];
|
|
80
81
|
readonly migrated_execution: readonly ["model", "fallback_models", "variant", "thinking_level", "timeout_minutes"];
|
|
81
82
|
};
|
|
82
83
|
};
|
|
@@ -877,9 +878,11 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
877
878
|
}, z.core.$strict>>;
|
|
878
879
|
retrospective: z.ZodDefault<z.ZodObject<{
|
|
879
880
|
schedule: z.ZodDefault<z.ZodString>;
|
|
881
|
+
recency_days: z.ZodDefault<z.ZodNumber>;
|
|
880
882
|
}, z.core.$strict>>;
|
|
881
883
|
"maintain-docs": z.ZodDefault<z.ZodObject<{
|
|
882
884
|
schedule: z.ZodDefault<z.ZodString>;
|
|
885
|
+
max_tokens: z.ZodDefault<z.ZodNumber>;
|
|
883
886
|
}, z.core.$strict>>;
|
|
884
887
|
"evaluate-smart-notes": z.ZodDefault<z.ZodObject<{
|
|
885
888
|
schedule: z.ZodDefault<z.ZodString>;
|
|
@@ -1141,9 +1144,11 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
1141
1144
|
}, z.core.$strict>>;
|
|
1142
1145
|
retrospective: z.ZodDefault<z.ZodObject<{
|
|
1143
1146
|
schedule: z.ZodDefault<z.ZodString>;
|
|
1147
|
+
recency_days: z.ZodDefault<z.ZodNumber>;
|
|
1144
1148
|
}, z.core.$strict>>;
|
|
1145
1149
|
"maintain-docs": z.ZodDefault<z.ZodObject<{
|
|
1146
1150
|
schedule: z.ZodDefault<z.ZodString>;
|
|
1151
|
+
max_tokens: z.ZodDefault<z.ZodNumber>;
|
|
1147
1152
|
}, z.core.$strict>>;
|
|
1148
1153
|
"evaluate-smart-notes": z.ZodDefault<z.ZodObject<{
|
|
1149
1154
|
schedule: z.ZodDefault<z.ZodString>;
|
|
@@ -1513,7 +1518,7 @@ export interface MagicContextConfig {
|
|
|
1513
1518
|
* Graduated from `experimental.temporal_awareness`; default: true. */
|
|
1514
1519
|
temporal_awareness: boolean;
|
|
1515
1520
|
/** Debug: when true, keep the child sessions Magic Context spawns for its
|
|
1516
|
-
* own subagents (historian, dreamer
|
|
1521
|
+
* own subagents (historian, dreamer) instead
|
|
1517
1522
|
* of deleting them on success. For short-term inspection/data collection;
|
|
1518
1523
|
* kept sessions accumulate until manually cleared. Default false. */
|
|
1519
1524
|
keep_subagents: boolean;
|
|
@@ -2190,9 +2195,11 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2190
2195
|
}, z.core.$strict>>;
|
|
2191
2196
|
retrospective: z.ZodDefault<z.ZodObject<{
|
|
2192
2197
|
schedule: z.ZodDefault<z.ZodString>;
|
|
2198
|
+
recency_days: z.ZodDefault<z.ZodNumber>;
|
|
2193
2199
|
}, z.core.$strict>>;
|
|
2194
2200
|
"maintain-docs": z.ZodDefault<z.ZodObject<{
|
|
2195
2201
|
schedule: z.ZodDefault<z.ZodString>;
|
|
2202
|
+
max_tokens: z.ZodDefault<z.ZodNumber>;
|
|
2196
2203
|
}, z.core.$strict>>;
|
|
2197
2204
|
"evaluate-smart-notes": z.ZodDefault<z.ZodObject<{
|
|
2198
2205
|
schedule: z.ZodDefault<z.ZodString>;
|
|
@@ -2652,9 +2659,11 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2652
2659
|
};
|
|
2653
2660
|
retrospective: {
|
|
2654
2661
|
schedule: string;
|
|
2662
|
+
recency_days: number;
|
|
2655
2663
|
};
|
|
2656
2664
|
"maintain-docs": {
|
|
2657
2665
|
schedule: string;
|
|
2666
|
+
max_tokens: number;
|
|
2658
2667
|
};
|
|
2659
2668
|
"evaluate-smart-notes": {
|
|
2660
2669
|
schedule: string;
|
|
@@ -2779,6 +2788,8 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2779
2788
|
subagent_extensions?: string[] | undefined;
|
|
2780
2789
|
} | undefined;
|
|
2781
2790
|
}>>;
|
|
2791
|
+
/** Settings whose fresh values can be used by later agent runs without changing rendered prompt bytes. */
|
|
2792
|
+
export declare const LIVE_RELOAD_CONFIG_PATHS: readonly ["mural.model", "toast_duration_ms", "historian.opencode.model", "historian.opencode.fallback_models", "historian.opencode.variant", "historian.pi.model", "historian.pi.fallback_models", "historian.pi.thinking_level", "historian.omp.model", "historian.omp.fallback_models", "historian.omp.thinking_level", "historian.two_pass", "historian_timeout_ms", "commit_cluster_trigger.enabled", "commit_cluster_trigger.min_clusters", "memory.auto_promote", "dreamer.opencode.model", "dreamer.opencode.fallback_models", "dreamer.opencode.variant", "dreamer.opencode.tasks", "dreamer.pi.model", "dreamer.pi.fallback_models", "dreamer.pi.thinking_level", "dreamer.pi.tasks", "dreamer.omp.model", "dreamer.omp.fallback_models", "dreamer.omp.thinking_level", "dreamer.omp.tasks", "dreamer.tasks.map-memories.schedule", "dreamer.tasks.verify.schedule", "dreamer.tasks.verify-broad.schedule", "dreamer.tasks.curate.schedule", "dreamer.tasks.compress-cues.schedule", "dreamer.tasks.classify-memories.schedule", "dreamer.tasks.retrospective.schedule", "dreamer.tasks.retrospective.recency_days", "dreamer.tasks.maintain-docs.schedule", "dreamer.tasks.evaluate-smart-notes.schedule", "dreamer.tasks.review-user-memories.schedule", "dreamer.tasks.review-user-memories.promotion_threshold", "dreamer.tasks.promote-primers.schedule", "dreamer.tasks.promote-primers.promotion_threshold", "dreamer.tasks.refresh-primers.schedule", "memory.git_commit_indexing.enabled", "memory.git_commit_indexing.since_days", "memory.git_commit_indexing.max_commits"];
|
|
2782
2793
|
/**
|
|
2783
2794
|
* Derived default protected_tokens formula:
|
|
2784
2795
|
* clamp(round(0.05 × usableSoft), min(16000, round(0.08 × usableSoft)), 64000)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magic-context.d.ts","sourceRoot":"","sources":["../../../src/config/schema/magic-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EACR,mBAAmB,EAEtB,MAAM,oDAAoD,CAAC;AAI5D,eAAO,MAAM,oCAAoC,KAAK,CAAC;AAIvD,eAAO,MAAM,6BAA6B,0OACiM,CAAC;AAC5O,eAAO,MAAM,4BAA4B,SAAU,CAAC;AACpD,eAAO,MAAM,iCAAiC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"magic-context.d.ts","sourceRoot":"","sources":["../../../src/config/schema/magic-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EACR,mBAAmB,EAEtB,MAAM,oDAAoD,CAAC;AAI5D,eAAO,MAAM,oCAAoC,KAAK,CAAC;AAIvD,eAAO,MAAM,6BAA6B,0OACiM,CAAC;AAC5O,eAAO,MAAM,4BAA4B,SAAU,CAAC;AACpD,eAAO,MAAM,iCAAiC,OAAO,CAAC;AAKtD,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,eAAO,MAAM,6BAA6B,4BAA4B,CAAC;AAMvE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE;;;iEAGiE;AACjE,eAA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3,10 @@ import {
|
|
|
3
3
|
cleanupConflictWarnings2,
|
|
4
4
|
sendSchemaFenceWarning2,
|
|
5
5
|
sendStartupAnnouncement2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-rpz2me0v.js";
|
|
7
7
|
import"./index-sd3egckz.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-rvwvdq59.js";
|
|
9
|
+
import"./index-ykg9sdzz.js";
|
|
10
10
|
import"./index-qp20p2py.js";
|
|
11
11
|
export {
|
|
12
12
|
cleanupConflictWarnings2 as cleanupConflictWarnings,
|
|
@@ -2,12 +2,15 @@ import {
|
|
|
2
2
|
deriveTriggerBudget2,
|
|
3
3
|
deriveHistorianChunkTokens2,
|
|
4
4
|
resolveKnownHistorianContextLimit2,
|
|
5
|
-
resolveHistorianContextLimit2
|
|
6
|
-
|
|
5
|
+
resolveHistorianContextLimit2,
|
|
6
|
+
producerSourceLocalBudget2
|
|
7
|
+
} from "./index-8w1skpnm.js";
|
|
8
|
+
import"./index-y5145x8k.js";
|
|
7
9
|
import"./index-qp20p2py.js";
|
|
8
10
|
export {
|
|
9
11
|
deriveHistorianChunkTokens2 as deriveHistorianChunkTokens,
|
|
10
12
|
deriveTriggerBudget2 as deriveTriggerBudget,
|
|
13
|
+
producerSourceLocalBudget2 as producerSourceLocalBudget,
|
|
11
14
|
resolveHistorianContextLimit2 as resolveHistorianContextLimit,
|
|
12
15
|
resolveKnownHistorianContextLimit2 as resolveKnownHistorianContextLimit
|
|
13
16
|
};
|
|
@@ -11,10 +11,6 @@ export declare function getMagicContextBuiltinCommands(compactionEnabled?: boole
|
|
|
11
11
|
template: string;
|
|
12
12
|
description: string;
|
|
13
13
|
};
|
|
14
|
-
"ctx-session-upgrade": {
|
|
15
|
-
template: string;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
14
|
"ctx-flush": {
|
|
19
15
|
template: string;
|
|
20
16
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/features/builtin-commands/commands.ts"],"names":[],"mappings":"AAIA,wBAAgB,8BAA8B,CAAC,iBAAiB,UAAO
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/features/builtin-commands/commands.ts"],"names":[],"mappings":"AAIA,wBAAgB,8BAA8B,CAAC,iBAAiB,UAAO;;;;;;;;;;;;;;;;;;;;;;;;;EAqCtE;AAED,MAAM,MAAM,8BAA8B,GAAG,MAAM,UAAU,CACzD,OAAO,8BAA8B,CACxC,CAAC"}
|
|
@@ -88,6 +88,12 @@ export interface InjectCompactionMarkerArgs {
|
|
|
88
88
|
* Returns the marker state if successful, null if boundary couldn't be found.
|
|
89
89
|
*/
|
|
90
90
|
export declare function injectCompactionMarker(args: InjectCompactionMarkerArgs): CompactionMarkerState | null;
|
|
91
|
+
/**
|
|
92
|
+
* Replace an existing marker and inject its successor under one host-store
|
|
93
|
+
* write lock. Acquiring that lock before the first DELETE avoids SQLite's
|
|
94
|
+
* read-to-write upgrade path, where SQLITE_BUSY does not honor busy_timeout.
|
|
95
|
+
*/
|
|
96
|
+
export declare function replaceCompactionMarker(existing: CompactionMarkerState | null, args: InjectCompactionMarkerArgs): CompactionMarkerState | null;
|
|
91
97
|
/**
|
|
92
98
|
* One compaction marker row-set found in opencode.db for a session.
|
|
93
99
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compaction-marker.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compaction-marker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;
|
|
1
|
+
{"version":3,"file":"compaction-marker.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compaction-marker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AA+CH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,OAA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C1C;AA8DD;;;GAGG;AACH,wBAAgB,sBAAsB,CAClC,IAAI,EAAE,0BAA0B,GACjC,qBAAqB,GAAG,IAAI,CA0H9B;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACnC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,EACtC,IAAI,EAAE,0BAA0B,GACjC,qBAAqB,GAAG,IAAI,CAyB9B;AAID;;;;;;;;GAQG;AACH,MAAM,WAAW,2BAA2B;IACxC,sEAAsE;IACtE,gBAAgB,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,uEAAuE;IACvE,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM,GAAG,2BAA2B,EAAE,CAkE7F;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,6BAA6B,CACzC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,2BAA2B,EACnC,yBAAyB,EAAE,MAAM,GAAG,IAAI,GACzC,OAAO,CAyBT;AAID;;;;;GAKG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB,wFAAwF;IACxF,eAAe,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;;OAOG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC5B;AA+BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,GACpB,0BAA0B,CAwN5B;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAgB5E"}
|
|
@@ -79,7 +79,10 @@ export declare function chunkCanonicalText(canonicalText: string, startOrdinal:
|
|
|
79
79
|
export declare function getExistingChunkHashes(db: Database, compartmentId: number, modelId: string, projectPath?: string): Map<number, string>;
|
|
80
80
|
export declare function chunkEmbeddingWindowsAreCurrent(db: Database, compartmentId: number, modelId: string, windows: readonly CompartmentChunkWindow[], projectPath?: string): boolean;
|
|
81
81
|
export declare function replaceCompartmentChunkEmbeddings(db: Database, rows: readonly SaveCompartmentChunkEmbeddingInput[]): void;
|
|
82
|
-
export declare function loadCompartmentChunkEmbeddingsForSearch(db: Database, sessionId: string, projectPath: string, modelId: string
|
|
82
|
+
export declare function loadCompartmentChunkEmbeddingsForSearch(db: Database, sessionId: string, projectPath: string, modelId: string, dateRange?: {
|
|
83
|
+
from: number;
|
|
84
|
+
to: number;
|
|
85
|
+
} | null): StoredCompartmentChunkEmbedding[];
|
|
83
86
|
export declare function loadUnembeddedCompartmentChunkCandidates(db: Database, projectPath: string, modelId: string, limit: number, maxInputTokens?: number): CompartmentChunkBackfillCandidate[];
|
|
84
87
|
/**
|
|
85
88
|
* Select hash-incomplete rows under the shadow window contract, restricted to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compartment-chunk-embedding.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compartment-chunk-embedding.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAkC,MAAM,qBAAqB,CAAC;AAKpF,eAAO,MAAM,0CAA0C,MAAM,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAkD7C,MAAM,WAAW,iCAAiC;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,+BAA+B;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,YAAY,CAAC;CACxB;AAED,MAAM,WAAW,kCAAkC;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,0BAA0B,yUAOL,CAAC;
|
|
1
|
+
{"version":3,"file":"compartment-chunk-embedding.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compartment-chunk-embedding.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAkC,MAAM,qBAAqB,CAAC;AAKpF,eAAO,MAAM,0CAA0C,MAAM,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAkD7C,MAAM,WAAW,iCAAiC;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACnC,WAA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W,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,MAAM,GAC7B,iCAAiC,EAAE,CAcrC;AAED;;;GAGG;AACH,wBAAsB,8CAA8C,CAChE,EAAE,EAAE,QAAQ,EACZ,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,cAAc,SAA6C,EAC3D,iBAAiB,UAAQ,GAC1B,OAAO,CAAC,iCAAiC,EAAE,CAAC,CAqB9C;AAmJD;;;;;;;qDAOqD;AACrD,wBAAgB,oCAAoC,CAChD,EAAE,EAAE,QAAQ,EACZ,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,EAC9B,cAAc,SAA6C,EAC3D,iBAAiB,UAAQ,GAC1B,iCAAiC,EAAE,CAwDrC;AAED,wFAAwF;AACxF,wBAAgB,kCAAkC,CAC9C,EAAE,EAAE,QAAQ,EACZ,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,cAAc,SAA6C,GAC5D,MAAM,CAUR;AAED;;;GAGG;AACH,wBAAgB,oCAAoC,CAChD,EAAE,EAAE,QAAQ,EACZ,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,cAAc,SAA6C,GAC5D;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAgCrC"}
|
|
@@ -7,7 +7,15 @@ export interface LeaseAcquired {
|
|
|
7
7
|
holderId: string;
|
|
8
8
|
acquiredAt: number;
|
|
9
9
|
expiresAt: number;
|
|
10
|
+
ownerPid: number;
|
|
10
11
|
}
|
|
12
|
+
export interface CompartmentLeaseBlocker {
|
|
13
|
+
holderId: string;
|
|
14
|
+
ownerPid: number | null;
|
|
15
|
+
acquiredAt: number;
|
|
16
|
+
expiresAt: number;
|
|
17
|
+
}
|
|
18
|
+
export declare function getCompartmentLeaseBlocker(db: Database, sessionId: string): CompartmentLeaseBlocker | null;
|
|
11
19
|
export declare function acquireCompartmentLease(db: Database, sessionId: string, holderId: string): LeaseAcquired | null;
|
|
12
20
|
export declare function renewCompartmentLease(db: Database, sessionId: string, holderId: string): boolean;
|
|
13
21
|
export declare function releaseCompartmentLease(db: Database, sessionId: string, holderId: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compartment-lease.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compartment-lease.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"compartment-lease.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compartment-lease.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,eAAO,MAAM,wBAAwB,QAAgB,CAAC;AACtD,eAAO,MAAM,4BAA4B,QAAY,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,0BAA0B,CACtC,EAAE,EAAE,QAAQ,EACZ,SAAS,EAAE,MAAM,GAClB,uBAAuB,GAAG,IAAI,CAUhC;AAED,wBAAgB,uBAAuB,CACnC,EAAE,EAAE,QAAQ,EACZ,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACjB,aAAa,GAAG,IAAI,CA8CtB;AAED,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAWhG;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAK/F;AAED;;;GAGG;AACH,wBAAgB,iCAAiC,CAC7C,EAAE,EAAE,QAAQ,EACZ,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,GAAG,GAAE,OAAO,UAAuB,GACpC,IAAI,CASN;AAED,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOjG"}
|
|
@@ -22,6 +22,16 @@ export interface Compartment {
|
|
|
22
22
|
/** 1 = pre-v2 flat compartment (no tiers); 0 = v2 tiered. */
|
|
23
23
|
legacy: number;
|
|
24
24
|
createdAt: number;
|
|
25
|
+
/**
|
|
26
|
+
* `unresolved` when the store-projection rebase could not re-derive this
|
|
27
|
+
* compartment's ordinals, because the message its endpoint id names does not
|
|
28
|
+
* exist in the projection the running host serves. Such a row keeps its
|
|
29
|
+
* summary text (readable by id) but is excluded from anything that treats
|
|
30
|
+
* its ordinals as positions: range recovery, injection, and the boundary.
|
|
31
|
+
* Re-evaluated on every later projection change, so an endpoint that comes
|
|
32
|
+
* back returns the row to `ok`.
|
|
33
|
+
*/
|
|
34
|
+
rebaseStatus: "ok" | "unresolved";
|
|
25
35
|
}
|
|
26
36
|
export interface SessionFact {
|
|
27
37
|
id: number;
|
|
@@ -51,6 +61,17 @@ export interface CompartmentInput {
|
|
|
51
61
|
episodeType?: string | null;
|
|
52
62
|
}
|
|
53
63
|
export declare function getCompartments(db: Database, sessionId: string): Compartment[];
|
|
64
|
+
/**
|
|
65
|
+
* Highest message ordinal any compartment covers — the line between compacted
|
|
66
|
+
* history and the live tail.
|
|
67
|
+
*
|
|
68
|
+
* Rows the projection rebase could not re-derive are excluded: their stored
|
|
69
|
+
* ordinals are positions in a message list the running host no longer serves,
|
|
70
|
+
* so using one as the boundary would clamp recovery ranges and the protected
|
|
71
|
+
* tail against an arbitrary message. Excluding them moves the boundary back to
|
|
72
|
+
* the newest compartment that still resolves, which is recoverable, instead of
|
|
73
|
+
* pointing confidently at the wrong place.
|
|
74
|
+
*/
|
|
54
75
|
export declare function getLastCompartmentEndMessage(db: Database, sessionId: string): number;
|
|
55
76
|
/**
|
|
56
77
|
* The OpenCode message id at the boundary of the highest-sequence compartment —
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compartment-storage.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compartment-storage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAkC,MAAM,qBAAqB,CAAC;AAgCpF,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,OAAO,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"compartment-storage.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compartment-storage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAkC,MAAM,qBAAqB,CAAC;AAgCpF,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,OAAO,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;;;;OAQG;IACH,YAAY,EAAE,IAAI,GAAG,YAAY,CAAC;CACrC;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB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AG,IAAI,CAcvC;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACjC,EAAE,EAAE,QAAQ,EACZ,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAC7C,IAAI,CASN;AAoDD,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAO/C;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAElD"}
|
|
@@ -74,6 +74,22 @@ export interface AuthorityModuleClient {
|
|
|
74
74
|
}): Promise<{
|
|
75
75
|
page: ChangefeedPage;
|
|
76
76
|
}>;
|
|
77
|
+
mirrorMemory?(args: {
|
|
78
|
+
module_row_id: number;
|
|
79
|
+
projectRoot?: string;
|
|
80
|
+
}): Promise<{
|
|
81
|
+
row: ChangefeedRow | null;
|
|
82
|
+
}>;
|
|
83
|
+
memoryIdentityAck?(args: {
|
|
84
|
+
project: string;
|
|
85
|
+
rows: Array<{
|
|
86
|
+
module_row_id: number;
|
|
87
|
+
context_row_id: number;
|
|
88
|
+
}>;
|
|
89
|
+
projectRoot?: string;
|
|
90
|
+
}): Promise<{
|
|
91
|
+
acknowledged: number;
|
|
92
|
+
}>;
|
|
77
93
|
}
|
|
78
94
|
export interface ModuleNoteEvaluationBridge {
|
|
79
95
|
sync(): Promise<void>;
|
|
@@ -112,7 +128,7 @@ export interface AuthorityManagedMarker {
|
|
|
112
128
|
export declare function getAuthorityManagedMarker(db: Database, projectPath: string): AuthorityManagedMarker | null;
|
|
113
129
|
export declare function listAuthorityManagedMarkers(db: Database): AuthorityManagedMarker[];
|
|
114
130
|
export declare function installAuthorityManagedMarker(db: Database, projectPath: string, contextStoreUuid?: string): void;
|
|
115
|
-
export declare function removeAuthorityManagedMarker(db: Database, projectPath: string): void;
|
|
131
|
+
export declare function removeAuthorityManagedMarker(db: Database, projectPath: string, onMarkerReleased?: () => void): void;
|
|
116
132
|
/**
|
|
117
133
|
* Repair a marker lost by restoring an older context.db snapshot. The write barrier
|
|
118
134
|
* makes the repair atomic with the marker installation; callers keep application
|
|
@@ -122,8 +138,9 @@ export declare function reconcileAuthorityMarker(args: {
|
|
|
122
138
|
db: Database;
|
|
123
139
|
projectPath: string;
|
|
124
140
|
module: AuthorityModuleClient;
|
|
141
|
+
onMarkerReleased?: () => void;
|
|
125
142
|
}): Promise<{
|
|
126
|
-
status: "legacy" | "ok" | "repaired";
|
|
143
|
+
status: "legacy" | "ok" | "repaired" | "released";
|
|
127
144
|
authority: AuthorityStatus | null;
|
|
128
145
|
}>;
|
|
129
146
|
export declare function reconcileAuthorityProject(args: {
|
|
@@ -157,6 +174,7 @@ export declare function drainAuthority(args: {
|
|
|
157
174
|
module: AuthorityModuleClient;
|
|
158
175
|
checksum: string | (() => string);
|
|
159
176
|
limit?: number;
|
|
177
|
+
onMarkerReleased?: () => void;
|
|
160
178
|
}): Promise<AuthorityDrainResult>;
|
|
161
179
|
export interface MemoryMirrorStatus {
|
|
162
180
|
cursor: number;
|
|
@@ -171,6 +189,18 @@ export interface MemoryMirrorStatus {
|
|
|
171
189
|
export declare const MEMORY_MIRROR_STALL_THRESHOLD_MS = 40000;
|
|
172
190
|
export declare function getMemoryMirrorStatus(db: Database, feedHead?: number | null, nowMs?: number): MemoryMirrorStatus;
|
|
173
191
|
export declare function getMirrorCursor(db: Database, domain: AuthorityDomain): number;
|
|
192
|
+
/**
|
|
193
|
+
* Take the projects whose embeddings a mirror-back page invalidated, clearing
|
|
194
|
+
* the record. Callers that drain the mirror re-embed those projects.
|
|
195
|
+
*/
|
|
196
|
+
export declare function takeMemoryEmbeddingInvalidatedProjects(db: Database): string[];
|
|
197
|
+
export interface MemoryMirrorIdentity {
|
|
198
|
+
moduleProject: string;
|
|
199
|
+
moduleRowId: number;
|
|
200
|
+
contextRowId: number;
|
|
201
|
+
}
|
|
202
|
+
export declare function moduleMemoryIdentityForHostId(db: Database, contextRowId: number): MemoryMirrorIdentity | null;
|
|
203
|
+
export declare function hostMemoryIdentityForModuleId(db: Database, moduleProject: string, moduleRowId: number): MemoryMirrorIdentity | null;
|
|
174
204
|
export interface MirroredNoteCompileFields {
|
|
175
205
|
compiledProvider: string | null;
|
|
176
206
|
compiledConfig: string | null;
|
|
@@ -183,11 +213,15 @@ export declare function applyMirroredNoteCompileFields(args: {
|
|
|
183
213
|
moduleRowId: number;
|
|
184
214
|
fields: MirroredNoteCompileFields;
|
|
185
215
|
}): boolean;
|
|
216
|
+
export declare function applyTargetedMemoryMirrorRow(args: {
|
|
217
|
+
db: Database;
|
|
218
|
+
row: ChangefeedRow;
|
|
219
|
+
}): MemoryMirrorIdentity | null;
|
|
186
220
|
export declare function applyMirrorPage(args: {
|
|
187
221
|
db: Database;
|
|
188
222
|
page: ChangefeedPage;
|
|
189
223
|
}): number;
|
|
190
|
-
type MirrorPullModuleClient = Pick<AuthorityModuleClient, "mirrorPull">;
|
|
224
|
+
type MirrorPullModuleClient = Pick<AuthorityModuleClient, "mirrorPull" | "memoryIdentityAck">;
|
|
191
225
|
export declare function ensureLiveMemoryResnapshot(args: {
|
|
192
226
|
db: Database;
|
|
193
227
|
module: MirrorPullModuleClient;
|