@cortexkit/opencode-magic-context 0.41.4 → 0.42.1
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 +21 -3
- package/dist/agents/hidden-agent-registrations.d.ts +1 -3
- package/dist/agents/hidden-agent-registrations.d.ts.map +1 -1
- package/dist/agents/magic-context-prompt.d.ts +1 -1
- package/dist/agents/magic-context-prompt.d.ts.map +1 -1
- package/dist/agents/permissions.d.ts +1 -22
- package/dist/agents/permissions.d.ts.map +1 -1
- package/dist/config/agent-disable.d.ts +0 -5
- package/dist/config/agent-disable.d.ts.map +1 -1
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/migrate-config-location.d.ts.map +1 -1
- package/dist/config/project-security.d.ts +20 -2
- package/dist/config/project-security.d.ts.map +1 -1
- package/dist/config/removed-agent-config.d.ts +8 -0
- package/dist/config/removed-agent-config.d.ts.map +1 -0
- package/dist/config/schema/magic-context.d.ts +43 -201
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/{conflict-warning-hook-ejkc9sjn.js → conflict-warning-hook-6p3xqeac.js} +3 -3
- package/dist/{derive-budgets-bc366cz8.js → derive-budgets-s2pgnnm4.js} +1 -1
- 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.map +1 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts +15 -4
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
- package/dist/features/magic-context/compartment-storage.d.ts.map +1 -1
- package/dist/features/magic-context/context-authority.d.ts +31 -4
- 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/evaluate-smart-notes.d.ts.map +1 -1
- 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/refresh-primers.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts +19 -9
- package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts +4 -0
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
- package/dist/features/magic-context/fail-closed-block.d.ts.map +1 -1
- package/dist/features/magic-context/git-commits/sweep-coordinator.d.ts.map +1 -1
- package/dist/features/magic-context/index.d.ts +0 -1
- package/dist/features/magic-context/index.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-identity.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-local.d.ts +13 -0
- package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-model-match.d.ts +41 -0
- package/dist/features/magic-context/memory/embedding-model-match.d.ts.map +1 -0
- package/dist/features/magic-context/memory/embedding-openai.d.ts +7 -20
- package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-provider.d.ts +2 -2
- package/dist/features/magic-context/memory/embedding-provider.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-synapse.d.ts +48 -14
- package/dist/features/magic-context/memory/embedding-synapse.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-migration.d.ts.map +1 -1
- package/dist/features/magic-context/memory/project-identity.d.ts +1 -0
- package/dist/features/magic-context/memory/project-identity.d.ts.map +1 -1
- package/dist/features/magic-context/memory/promotion.d.ts +7 -1
- package/dist/features/magic-context/memory/promotion.d.ts.map +1 -1
- package/dist/features/magic-context/merged-reasoning-decisions.d.ts +6 -0
- package/dist/features/magic-context/merged-reasoning-decisions.d.ts.map +1 -0
- package/dist/features/magic-context/message-fts-rowid-map.d.ts.map +1 -1
- package/dist/features/magic-context/message-index-async.d.ts +12 -0
- package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
- package/dist/features/magic-context/message-index.d.ts.map +1 -1
- 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/render-trigger.d.ts +6 -0
- package/dist/features/magic-context/mural/render-trigger.d.ts.map +1 -1
- package/dist/features/magic-context/no-content-compartment.d.ts +12 -0
- package/dist/features/magic-context/no-content-compartment.d.ts.map +1 -0
- package/dist/features/magic-context/pi-content-decisions.d.ts +9 -0
- package/dist/features/magic-context/pi-content-decisions.d.ts.map +1 -0
- package/dist/features/magic-context/project-docs-hash.d.ts +4 -0
- package/dist/features/magic-context/project-docs-hash.d.ts.map +1 -1
- package/dist/features/magic-context/project-embedding-registry.d.ts +13 -4
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/protection-window.d.ts +79 -0
- package/dist/features/magic-context/protection-window.d.ts.map +1 -0
- package/dist/features/magic-context/search.d.ts.map +1 -1
- package/dist/features/magic-context/session-project-backfill.d.ts.map +1 -1
- package/dist/features/magic-context/shadow-backfill-state.d.ts +26 -0
- package/dist/features/magic-context/shadow-backfill-state.d.ts.map +1 -0
- package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/sandbox-runner.d.ts +4 -0
- package/dist/features/magic-context/smart-notes/sandbox-runner.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/storage.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-embedding-measurements.d.ts +2 -2
- package/dist/features/magic-context/storage-embedding-measurements.d.ts.map +1 -1
- package/dist/features/magic-context/storage-historian-runs.d.ts +4 -0
- package/dist/features/magic-context/storage-historian-runs.d.ts.map +1 -1
- package/dist/features/magic-context/storage-memory-mutation-log.d.ts +1 -0
- package/dist/features/magic-context/storage-memory-mutation-log.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +79 -13
- package/dist/features/magic-context/storage-meta-persisted.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-native-replay.d.ts +29 -0
- package/dist/features/magic-context/storage-native-replay.d.ts.map +1 -0
- package/dist/features/magic-context/storage-notes.d.ts +6 -0
- package/dist/features/magic-context/storage-notes.d.ts.map +1 -1
- package/dist/features/magic-context/storage-replay-document.d.ts +33 -0
- package/dist/features/magic-context/storage-replay-document.d.ts.map +1 -0
- 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 +19 -11
- package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
- package/dist/features/magic-context/storage.d.ts +3 -3
- package/dist/features/magic-context/storage.d.ts.map +1 -1
- package/dist/features/magic-context/subagent-token-capture.d.ts.map +1 -1
- package/dist/features/magic-context/tagger.d.ts +13 -0
- package/dist/features/magic-context/tagger.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.map +1 -1
- package/dist/features/magic-context/user-memory/storage-user-memory.d.ts.map +1 -1
- package/dist/features/magic-context/workspaces.d.ts.map +1 -1
- package/dist/hooks/magic-context/apply-operations.d.ts +11 -5
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/cache-busting-signals.d.ts +9 -1
- package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
- package/dist/hooks/magic-context/caveman-cleanup.d.ts +1 -1
- package/dist/hooks/magic-context/caveman-cleanup.d.ts.map +1 -1
- package/dist/hooks/magic-context/channel2-delivery.d.ts.map +1 -1
- package/dist/hooks/magic-context/child-session-spawn.d.ts +3 -3
- package/dist/hooks/magic-context/child-session-spawn.d.ts.map +1 -1
- package/dist/hooks/magic-context/command-handler.d.ts +1 -10
- 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/compartment-runner-drop-queue.d.ts +10 -21
- package/dist/hooks/magic-context/compartment-runner-drop-queue.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-partial-recomp.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-validation.d.ts +1 -1
- package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
- package/dist/hooks/magic-context/ctx-reduce-nudge.d.ts +26 -2
- package/dist/hooks/magic-context/ctx-reduce-nudge.d.ts.map +1 -1
- package/dist/hooks/magic-context/decay-render.d.ts.map +1 -1
- package/dist/hooks/magic-context/dropped-input-guard.d.ts +9 -0
- package/dist/hooks/magic-context/dropped-input-guard.d.ts.map +1 -0
- package/dist/hooks/magic-context/embed-session-state.d.ts +1 -1
- package/dist/hooks/magic-context/embed-session-state.d.ts.map +1 -1
- package/dist/hooks/magic-context/emergency-drop.d.ts +6 -1
- package/dist/hooks/magic-context/emergency-drop.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-handler.d.ts +0 -1
- package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-payloads.d.ts +7 -6
- package/dist/hooks/magic-context/event-payloads.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-resolvers.d.ts +1 -1
- package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -1
- package/dist/hooks/magic-context/execute-status.d.ts +3 -1
- package/dist/hooks/magic-context/execute-status.d.ts.map +1 -1
- package/dist/hooks/magic-context/format-embed-failure.d.ts +2 -1
- package/dist/hooks/magic-context/format-embed-failure.d.ts.map +1 -1
- package/dist/hooks/magic-context/format-embed-status.d.ts.map +1 -1
- package/dist/hooks/magic-context/heuristic-cleanup.d.ts +7 -1
- package/dist/hooks/magic-context/heuristic-cleanup.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook-handlers.d.ts +3 -1
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts +13 -4
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts +14 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/live-session-state.d.ts +1 -1
- package/dist/hooks/magic-context/lkg-slot.d.ts +34 -0
- package/dist/hooks/magic-context/lkg-slot.d.ts.map +1 -1
- package/dist/hooks/magic-context/maintenance-authority.d.ts +2 -2
- package/dist/hooks/magic-context/maintenance-authority.d.ts.map +1 -1
- package/dist/hooks/magic-context/module-state-sync-timing.d.ts +21 -0
- package/dist/hooks/magic-context/module-state-sync-timing.d.ts.map +1 -0
- package/dist/hooks/magic-context/module-state-sync.d.ts +21 -7
- package/dist/hooks/magic-context/module-state-sync.d.ts.map +1 -1
- package/dist/hooks/magic-context/module-transport.d.ts +12 -0
- package/dist/hooks/magic-context/module-transport.d.ts.map +1 -1
- package/dist/hooks/magic-context/module-wire.d.ts +8 -0
- 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/persist-filtered-noise.d.ts +5 -0
- package/dist/hooks/magic-context/persist-filtered-noise.d.ts.map +1 -0
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts +6 -0
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-chunk.d.ts +18 -18
- package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-db.d.ts +22 -12
- package/dist/hooks/magic-context/read-session-db.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-formatting.d.ts +8 -0
- package/dist/hooks/magic-context/read-session-formatting.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-raw.d.ts +10 -1
- package/dist/hooks/magic-context/read-session-raw.d.ts.map +1 -1
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts.map +1 -1
- package/dist/hooks/magic-context/reference-retrieval.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-mode-transform.d.ts +74 -9
- package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/send-session-notification.d.ts +11 -10
- package/dist/hooks/magic-context/send-session-notification.d.ts.map +1 -1
- package/dist/hooks/magic-context/strip-content.d.ts +7 -0
- package/dist/hooks/magic-context/strip-content.d.ts.map +1 -1
- package/dist/hooks/magic-context/supersession-reclaim.d.ts +13 -0
- package/dist/hooks/magic-context/supersession-reclaim.d.ts.map +1 -1
- package/dist/hooks/magic-context/system-prompt-hash.d.ts +2 -3
- package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
- package/dist/hooks/magic-context/tail-hygiene-walk.d.ts +8 -3
- package/dist/hooks/magic-context/tail-hygiene-walk.d.ts.map +1 -1
- package/dist/hooks/magic-context/tool-drop-target.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-context-state.d.ts +7 -1
- package/dist/hooks/magic-context/transform-context-state.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +11 -4
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +7 -2
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/upgrade-reminder.d.ts +7 -9
- package/dist/hooks/magic-context/upgrade-reminder.d.ts.map +1 -1
- package/dist/hooks/magic-context/wrapup-orchestrator.d.ts.map +1 -1
- package/dist/index-1974jvn3.js +783 -0
- package/dist/{index-0y2mcg5y.js → index-1q9kay7n.js} +18717 -16197
- package/dist/{index-4avmwfp5.js → index-36wd1d6k.js} +6 -29
- package/dist/{index-fz104x1j.js → index-jmtjh2d3.js} +3 -3
- package/dist/{index-q264erdp.js → index-nqgjwfzn.js} +70 -38
- package/dist/{index-mjv9je4e.js → index-xdtge3y2.js} +45 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6457 -5190
- package/dist/plugin/conflict-warning-hook.d.ts +5 -6
- package/dist/plugin/conflict-warning-hook.d.ts.map +1 -1
- package/dist/plugin/dream-timer.d.ts +1 -0
- package/dist/plugin/dream-timer.d.ts.map +1 -1
- package/dist/plugin/embedding-bootstrap-helpers.d.ts.map +1 -1
- package/dist/plugin/embedding-routing.d.ts +4 -1
- package/dist/plugin/embedding-routing.d.ts.map +1 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +16 -2
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/plugin/rpc-handlers.d.ts +31 -1
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/plugin/rust-tool-backends.d.ts +1 -0
- package/dist/plugin/rust-tool-backends.d.ts.map +1 -1
- package/dist/plugin/tool-registry.d.ts.map +1 -1
- package/dist/{recomp-orchestrator-q98r6rga.js → recomp-orchestrator-m33b3rk9.js} +5 -5
- package/dist/{send-session-notification-hdh02wy9.js → send-session-notification-1qeqkswb.js} +6 -4
- package/dist/shared/child-session-teardown.d.ts +34 -0
- package/dist/shared/child-session-teardown.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 +1 -1
- package/dist/shared/opencode-db-path.d.ts +24 -0
- package/dist/shared/opencode-db-path.d.ts.map +1 -0
- package/dist/shared/prompt-surface-runtime.d.ts +10 -5
- package/dist/shared/prompt-surface-runtime.d.ts.map +1 -1
- package/dist/shared/resolve-fallbacks.d.ts +1 -1
- package/dist/shared/rpc-types.d.ts +121 -0
- package/dist/shared/rpc-types.d.ts.map +1 -1
- package/dist/shared/sqlite.d.ts +42 -0
- package/dist/shared/sqlite.d.ts.map +1 -1
- package/dist/shared/status-detail-text.d.ts +3 -1
- package/dist/shared/status-detail-text.d.ts.map +1 -1
- package/dist/shared/status-summary.d.ts +30 -0
- package/dist/shared/status-summary.d.ts.map +1 -0
- package/dist/shared/subagent-runner.d.ts +17 -10
- package/dist/shared/subagent-runner.d.ts.map +1 -1
- package/dist/shared/tag-transcript.d.ts.map +1 -1
- package/dist/shared/tail-hygiene-status.d.ts +1 -0
- package/dist/shared/tail-hygiene-status.d.ts.map +1 -1
- package/dist/shared/transcript.d.ts +6 -0
- package/dist/shared/transcript.d.ts.map +1 -1
- package/dist/shared/user-facing-codes.d.ts +191 -0
- package/dist/shared/user-facing-codes.d.ts.map +1 -0
- package/dist/shared/window-geometry.d.ts +23 -0
- package/dist/shared/window-geometry.d.ts.map +1 -1
- package/dist/shared/write-transaction-timing.d.ts +1 -1
- package/dist/shared/write-transaction-timing.d.ts.map +1 -1
- package/dist/{storage-meta-session-dvwfw778.js → storage-meta-session-e6g0mmec.js} +2 -2
- package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
- package/dist/tools/ctx-memory/verification-recording.d.ts.map +1 -1
- 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/tools.d.ts.map +1 -1
- package/dist/tools/ctx-note/types.d.ts +1 -0
- package/dist/tools/ctx-note/types.d.ts.map +1 -1
- package/dist/tools/ctx-reduce/tools.d.ts +10 -1
- package/dist/tools/ctx-reduce/tools.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/light-descriptions.d.ts +2 -2
- package/dist/tools/light-descriptions.d.ts.map +1 -1
- package/package.json +2 -3
- package/src/agents/hidden-agent-registrations.ts +3 -15
- package/src/agents/magic-context-prompt.test.ts +7 -5
- package/src/agents/magic-context-prompt.ts +22 -30
- package/src/agents/permissions.test.ts +1 -42
- package/src/agents/permissions.ts +1 -24
- package/src/config/agent-disable.ts +5 -22
- package/src/config/index.test.ts +126 -15
- package/src/config/index.ts +41 -6
- package/src/config/latch-permanence-guard.test.ts +4 -0
- package/src/config/migrate-config-location.test.ts +39 -6
- package/src/config/migrate-config-location.ts +18 -31
- package/src/config/profiles.ts +1 -1
- package/src/config/project-security.hostile-matrix.test.ts +0 -8
- package/src/config/project-security.test.ts +21 -24
- package/src/config/project-security.ts +115 -14
- package/src/config/protected-tokens.test.ts +235 -0
- package/src/config/removed-agent-config.ts +45 -0
- package/src/config/removed-agent-source-fence.test.ts +56 -0
- package/src/config/schema/magic-context.test.ts +50 -42
- package/src/config/schema/magic-context.ts +70 -37
- package/src/shared/child-session-teardown.test.ts +218 -0
- package/src/shared/child-session-teardown.ts +66 -0
- package/src/shared/keep-subagents.ts +9 -14
- package/src/shared/model-suggestion-retry.ts +1 -1
- package/src/shared/opencode-db-path.test.ts +196 -0
- package/src/shared/opencode-db-path.ts +215 -0
- package/src/shared/prompt-surface-a1-golden.md +50 -35
- package/src/shared/prompt-surface-runtime.test.ts +28 -0
- package/src/shared/prompt-surface-runtime.ts +22 -5
- package/src/shared/resolve-fallbacks.ts +1 -1
- package/src/shared/rpc-types.ts +128 -0
- package/src/shared/session-messages-bounded.test.ts +1 -1
- package/src/shared/sqlite-import-fence.test.ts +19 -0
- package/src/shared/sqlite.test.ts +27 -1
- package/src/shared/sqlite.ts +204 -1
- package/src/shared/status-detail-text.test.ts +92 -20
- package/src/shared/status-detail-text.ts +24 -2
- package/src/shared/status-summary.ts +167 -0
- package/src/shared/subagent-runner.ts +17 -10
- package/src/shared/tag-transcript.ts +33 -21
- package/src/shared/tail-hygiene-status.ts +8 -0
- package/src/shared/transcript.ts +7 -0
- package/src/shared/user-facing-codes.test.ts +140 -0
- package/src/shared/user-facing-codes.ts +276 -0
- package/src/shared/window-geometry.test.ts +44 -0
- package/src/shared/window-geometry.ts +89 -11
- package/src/shared/write-transaction-attribution.test.ts +241 -0
- package/src/shared/write-transaction-timing.ts +2 -1
- package/src/tui/index.tsx +44 -11
- package/src/tui/slots/sidebar-content.tsx +12 -7
- package/src/tui-compiled/index.tsx +662 -649
- package/src/tui-compiled/slots/sidebar-content.tsx +301 -305
- package/dist/agents/sidekick.d.ts +0 -2
- package/dist/agents/sidekick.d.ts.map +0 -1
- package/dist/features/magic-context/defaults.d.ts +0 -2
- package/dist/features/magic-context/defaults.d.ts.map +0 -1
- package/dist/features/magic-context/sidekick/agent.d.ts +0 -14
- package/dist/features/magic-context/sidekick/agent.d.ts.map +0 -1
- package/dist/features/magic-context/sidekick/core.d.ts +0 -38
- package/dist/features/magic-context/sidekick/core.d.ts.map +0 -1
- package/dist/features/magic-context/sidekick/index.d.ts +0 -3
- package/dist/features/magic-context/sidekick/index.d.ts.map +0 -1
- package/dist/hooks/magic-context/boundary-execution.d.ts +0 -27
- package/dist/hooks/magic-context/boundary-execution.d.ts.map +0 -1
- package/dist/index-raatkvw5.js +0 -360
- package/src/agents/sidekick.ts +0 -1
- package/src/features/magic-context/defaults.ts +0 -1
|
@@ -666,20 +666,6 @@ export declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
666
666
|
}>>;
|
|
667
667
|
}, z.core.$strict>>;
|
|
668
668
|
}, z.core.$strict>>;
|
|
669
|
-
sidekick: z.ZodOptional<z.ZodObject<{
|
|
670
|
-
model: z.ZodOptional<z.ZodString>;
|
|
671
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
672
|
-
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
673
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
674
|
-
off: "off";
|
|
675
|
-
minimal: "minimal";
|
|
676
|
-
low: "low";
|
|
677
|
-
medium: "medium";
|
|
678
|
-
high: "high";
|
|
679
|
-
xhigh: "xhigh";
|
|
680
|
-
max: "max";
|
|
681
|
-
}>>;
|
|
682
|
-
}, z.core.$strict>>;
|
|
683
669
|
}, z.core.$strict>;
|
|
684
670
|
export type ConfigProfile = z.infer<typeof ConfigProfileSchema>;
|
|
685
671
|
export declare const ConfigProfilesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -861,20 +847,6 @@ export declare const ConfigProfilesSchema: z.ZodRecord<z.ZodString, z.ZodObject<
|
|
|
861
847
|
}>>;
|
|
862
848
|
}, z.core.$strict>>;
|
|
863
849
|
}, z.core.$strict>>;
|
|
864
|
-
sidekick: z.ZodOptional<z.ZodObject<{
|
|
865
|
-
model: z.ZodOptional<z.ZodString>;
|
|
866
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
867
|
-
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
868
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
869
|
-
off: "off";
|
|
870
|
-
minimal: "minimal";
|
|
871
|
-
low: "low";
|
|
872
|
-
medium: "medium";
|
|
873
|
-
high: "high";
|
|
874
|
-
xhigh: "xhigh";
|
|
875
|
-
max: "max";
|
|
876
|
-
}>>;
|
|
877
|
-
}, z.core.$strict>>;
|
|
878
850
|
}, z.core.$strict>>;
|
|
879
851
|
export type ConfigProfiles = z.infer<typeof ConfigProfilesSchema>;
|
|
880
852
|
export declare const DreamTaskConfigSchema: z.ZodObject<{
|
|
@@ -1191,68 +1163,6 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
1191
1163
|
inject_docs: z.ZodDefault<z.ZodBoolean>;
|
|
1192
1164
|
}, z.core.$strip>;
|
|
1193
1165
|
export type DreamerConfig = z.infer<typeof DreamerConfigSchema>;
|
|
1194
|
-
export declare const SidekickConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
1195
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1196
|
-
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1197
|
-
top_p: z.ZodOptional<z.ZodNumber>;
|
|
1198
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
1199
|
-
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1200
|
-
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1201
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1202
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
1203
|
-
primary: "primary";
|
|
1204
|
-
subagent: "subagent";
|
|
1205
|
-
all: "all";
|
|
1206
|
-
}>>;
|
|
1207
|
-
color: z.ZodOptional<z.ZodString>;
|
|
1208
|
-
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
1209
|
-
permission: z.ZodOptional<z.ZodObject<{
|
|
1210
|
-
edit: z.ZodOptional<z.ZodEnum<{
|
|
1211
|
-
deny: "deny";
|
|
1212
|
-
allow: "allow";
|
|
1213
|
-
ask: "ask";
|
|
1214
|
-
}>>;
|
|
1215
|
-
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1216
|
-
deny: "deny";
|
|
1217
|
-
allow: "allow";
|
|
1218
|
-
ask: "ask";
|
|
1219
|
-
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1220
|
-
deny: "deny";
|
|
1221
|
-
allow: "allow";
|
|
1222
|
-
ask: "ask";
|
|
1223
|
-
}>>]>>;
|
|
1224
|
-
webfetch: z.ZodOptional<z.ZodEnum<{
|
|
1225
|
-
deny: "deny";
|
|
1226
|
-
allow: "allow";
|
|
1227
|
-
ask: "ask";
|
|
1228
|
-
}>>;
|
|
1229
|
-
doom_loop: z.ZodOptional<z.ZodEnum<{
|
|
1230
|
-
deny: "deny";
|
|
1231
|
-
allow: "allow";
|
|
1232
|
-
ask: "ask";
|
|
1233
|
-
}>>;
|
|
1234
|
-
external_directory: z.ZodOptional<z.ZodEnum<{
|
|
1235
|
-
deny: "deny";
|
|
1236
|
-
allow: "allow";
|
|
1237
|
-
ask: "ask";
|
|
1238
|
-
}>>;
|
|
1239
|
-
}, z.core.$strip>>;
|
|
1240
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
1241
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
1242
|
-
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1243
|
-
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
1244
|
-
system_prompt: z.ZodOptional<z.ZodString>;
|
|
1245
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
1246
|
-
off: "off";
|
|
1247
|
-
minimal: "minimal";
|
|
1248
|
-
low: "low";
|
|
1249
|
-
medium: "medium";
|
|
1250
|
-
high: "high";
|
|
1251
|
-
xhigh: "xhigh";
|
|
1252
|
-
max: "max";
|
|
1253
|
-
}>>;
|
|
1254
|
-
}, z.core.$strip>>;
|
|
1255
|
-
export type SidekickConfig = NonNullable<z.infer<typeof SidekickConfigSchema>>;
|
|
1256
1166
|
/**
|
|
1257
1167
|
* Historian metadata remains harness-independent. Only model resolution moves to
|
|
1258
1168
|
* the strict opencode, pi, and omp blocks; two_pass and disallowed_tools stay here.
|
|
@@ -1422,6 +1332,8 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1422
1332
|
api_key: z.ZodOptional<z.ZodString>;
|
|
1423
1333
|
input_type: z.ZodOptional<z.ZodString>;
|
|
1424
1334
|
query_input_type: z.ZodOptional<z.ZodString>;
|
|
1335
|
+
query_instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
1336
|
+
document_prefix: z.ZodOptional<z.ZodString>;
|
|
1425
1337
|
truncate: z.ZodOptional<z.ZodString>;
|
|
1426
1338
|
max_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1427
1339
|
local_runtime: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1447,6 +1359,8 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1447
1359
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1448
1360
|
max_input_tokens?: number | undefined;
|
|
1449
1361
|
truncate?: string | undefined;
|
|
1362
|
+
document_prefix?: string | undefined;
|
|
1363
|
+
query_instruction?: string | false | undefined;
|
|
1450
1364
|
query_input_type?: string | undefined;
|
|
1451
1365
|
input_type?: string | undefined;
|
|
1452
1366
|
api_key?: string | undefined;
|
|
@@ -1463,6 +1377,8 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1463
1377
|
} | {
|
|
1464
1378
|
max_input_tokens?: number | undefined;
|
|
1465
1379
|
truncate?: string | undefined;
|
|
1380
|
+
document_prefix?: string | undefined;
|
|
1381
|
+
query_instruction?: string | false | undefined;
|
|
1466
1382
|
query_input_type?: string | undefined;
|
|
1467
1383
|
input_type?: string | undefined;
|
|
1468
1384
|
api_key?: string | undefined;
|
|
@@ -1480,6 +1396,8 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1480
1396
|
api_key?: string | undefined;
|
|
1481
1397
|
input_type?: string | undefined;
|
|
1482
1398
|
query_input_type?: string | undefined;
|
|
1399
|
+
query_instruction?: string | false | undefined;
|
|
1400
|
+
document_prefix?: string | undefined;
|
|
1483
1401
|
truncate?: string | undefined;
|
|
1484
1402
|
max_input_tokens?: number | undefined;
|
|
1485
1403
|
local_dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | "q2" | "q2f16" | "q1" | "q1f16" | undefined;
|
|
@@ -1548,7 +1466,8 @@ export interface MagicContextConfig {
|
|
|
1548
1466
|
default?: number;
|
|
1549
1467
|
[modelKey: string]: number | undefined;
|
|
1550
1468
|
};
|
|
1551
|
-
|
|
1469
|
+
protected_tokens?: number;
|
|
1470
|
+
protected_tags?: number;
|
|
1552
1471
|
clear_reasoning_age: number;
|
|
1553
1472
|
history_budget_percentage: number;
|
|
1554
1473
|
historian_timeout_ms: number;
|
|
@@ -1594,10 +1513,12 @@ export interface MagicContextConfig {
|
|
|
1594
1513
|
* Graduated from `experimental.temporal_awareness`; default: true. */
|
|
1595
1514
|
temporal_awareness: boolean;
|
|
1596
1515
|
/** Debug: when true, keep the child sessions Magic Context spawns for its
|
|
1597
|
-
* own subagents (historian, dreamer,
|
|
1516
|
+
* own subagents (historian, dreamer, memory-migration) instead
|
|
1598
1517
|
* of deleting them on success. For short-term inspection/data collection;
|
|
1599
1518
|
* kept sessions accumulate until manually cleared. Default false. */
|
|
1600
1519
|
keep_subagents: boolean;
|
|
1520
|
+
/** Enable loopback-only diagnostic RPCs that expose memory usage and heap snapshots. */
|
|
1521
|
+
debug_rpc?: boolean;
|
|
1601
1522
|
/**
|
|
1602
1523
|
* When true (default), deterministic inoperability (schema fence, storage
|
|
1603
1524
|
* open/migration failure) blocks the primary-session transform with a loud
|
|
@@ -1688,7 +1609,6 @@ export interface MagicContextConfig {
|
|
|
1688
1609
|
max_commits: number;
|
|
1689
1610
|
};
|
|
1690
1611
|
};
|
|
1691
|
-
sidekick?: SidekickConfig;
|
|
1692
1612
|
}
|
|
1693
1613
|
export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
1694
1614
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1883,20 +1803,6 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1883
1803
|
}>>;
|
|
1884
1804
|
}, z.core.$strict>>;
|
|
1885
1805
|
}, z.core.$strict>>;
|
|
1886
|
-
sidekick: z.ZodOptional<z.ZodObject<{
|
|
1887
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1888
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
1889
|
-
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1890
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
1891
|
-
off: "off";
|
|
1892
|
-
minimal: "minimal";
|
|
1893
|
-
low: "low";
|
|
1894
|
-
medium: "medium";
|
|
1895
|
-
high: "high";
|
|
1896
|
-
xhigh: "xhigh";
|
|
1897
|
-
max: "max";
|
|
1898
|
-
}>>;
|
|
1899
|
-
}, z.core.$strict>>;
|
|
1900
1806
|
}, z.core.$strict>>>;
|
|
1901
1807
|
historian: z.ZodOptional<z.ZodObject<{
|
|
1902
1808
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2336,7 +2242,8 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2336
2242
|
execute_threshold_tokens: z.ZodOptional<z.ZodObject<{
|
|
2337
2243
|
default: z.ZodOptional<z.ZodNumber>;
|
|
2338
2244
|
}, z.core.$catchall<z.ZodNumber>>>;
|
|
2339
|
-
|
|
2245
|
+
protected_tokens: z.ZodOptional<z.ZodNumber>;
|
|
2246
|
+
protected_tags: z.ZodOptional<z.ZodUnknown>;
|
|
2340
2247
|
clear_reasoning_age: z.ZodDefault<z.ZodNumber>;
|
|
2341
2248
|
history_budget_percentage: z.ZodDefault<z.ZodNumber>;
|
|
2342
2249
|
historian_timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2372,6 +2279,8 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2372
2279
|
api_key: z.ZodOptional<z.ZodString>;
|
|
2373
2280
|
input_type: z.ZodOptional<z.ZodString>;
|
|
2374
2281
|
query_input_type: z.ZodOptional<z.ZodString>;
|
|
2282
|
+
query_instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
2283
|
+
document_prefix: z.ZodOptional<z.ZodString>;
|
|
2375
2284
|
truncate: z.ZodOptional<z.ZodString>;
|
|
2376
2285
|
max_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
2377
2286
|
local_runtime: z.ZodDefault<z.ZodEnum<{
|
|
@@ -2397,6 +2306,8 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2397
2306
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2398
2307
|
max_input_tokens?: number | undefined;
|
|
2399
2308
|
truncate?: string | undefined;
|
|
2309
|
+
document_prefix?: string | undefined;
|
|
2310
|
+
query_instruction?: string | false | undefined;
|
|
2400
2311
|
query_input_type?: string | undefined;
|
|
2401
2312
|
input_type?: string | undefined;
|
|
2402
2313
|
api_key?: string | undefined;
|
|
@@ -2413,6 +2324,8 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2413
2324
|
} | {
|
|
2414
2325
|
max_input_tokens?: number | undefined;
|
|
2415
2326
|
truncate?: string | undefined;
|
|
2327
|
+
document_prefix?: string | undefined;
|
|
2328
|
+
query_instruction?: string | false | undefined;
|
|
2416
2329
|
query_input_type?: string | undefined;
|
|
2417
2330
|
input_type?: string | undefined;
|
|
2418
2331
|
api_key?: string | undefined;
|
|
@@ -2430,6 +2343,8 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2430
2343
|
api_key?: string | undefined;
|
|
2431
2344
|
input_type?: string | undefined;
|
|
2432
2345
|
query_input_type?: string | undefined;
|
|
2346
|
+
query_instruction?: string | false | undefined;
|
|
2347
|
+
document_prefix?: string | undefined;
|
|
2433
2348
|
truncate?: string | undefined;
|
|
2434
2349
|
max_input_tokens?: number | undefined;
|
|
2435
2350
|
local_dtype?: "auto" | "fp32" | "fp16" | "q8" | "int8" | "uint8" | "q4" | "bnb4" | "q4f16" | "q2" | "q2f16" | "q1" | "q1f16" | undefined;
|
|
@@ -2442,6 +2357,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2442
2357
|
}, z.core.$strip>>;
|
|
2443
2358
|
temporal_awareness: z.ZodDefault<z.ZodBoolean>;
|
|
2444
2359
|
keep_subagents: z.ZodDefault<z.ZodBoolean>;
|
|
2360
|
+
debug_rpc: z.ZodDefault<z.ZodBoolean>;
|
|
2445
2361
|
fail_closed_blocking: z.ZodDefault<z.ZodBoolean>;
|
|
2446
2362
|
compaction: z.ZodDefault<z.ZodObject<{
|
|
2447
2363
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2474,67 +2390,6 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2474
2390
|
max_commits: z.ZodDefault<z.ZodNumber>;
|
|
2475
2391
|
}, z.core.$strip>>;
|
|
2476
2392
|
}, z.core.$strip>>;
|
|
2477
|
-
sidekick: z.ZodOptional<z.ZodObject<{
|
|
2478
|
-
model: z.ZodOptional<z.ZodString>;
|
|
2479
|
-
temperature: z.ZodOptional<z.ZodNumber>;
|
|
2480
|
-
top_p: z.ZodOptional<z.ZodNumber>;
|
|
2481
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
2482
|
-
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
2483
|
-
disable: z.ZodOptional<z.ZodBoolean>;
|
|
2484
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2485
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
2486
|
-
primary: "primary";
|
|
2487
|
-
subagent: "subagent";
|
|
2488
|
-
all: "all";
|
|
2489
|
-
}>>;
|
|
2490
|
-
color: z.ZodOptional<z.ZodString>;
|
|
2491
|
-
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
2492
|
-
permission: z.ZodOptional<z.ZodObject<{
|
|
2493
|
-
edit: z.ZodOptional<z.ZodEnum<{
|
|
2494
|
-
deny: "deny";
|
|
2495
|
-
allow: "allow";
|
|
2496
|
-
ask: "ask";
|
|
2497
|
-
}>>;
|
|
2498
|
-
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2499
|
-
deny: "deny";
|
|
2500
|
-
allow: "allow";
|
|
2501
|
-
ask: "ask";
|
|
2502
|
-
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
2503
|
-
deny: "deny";
|
|
2504
|
-
allow: "allow";
|
|
2505
|
-
ask: "ask";
|
|
2506
|
-
}>>]>>;
|
|
2507
|
-
webfetch: z.ZodOptional<z.ZodEnum<{
|
|
2508
|
-
deny: "deny";
|
|
2509
|
-
allow: "allow";
|
|
2510
|
-
ask: "ask";
|
|
2511
|
-
}>>;
|
|
2512
|
-
doom_loop: z.ZodOptional<z.ZodEnum<{
|
|
2513
|
-
deny: "deny";
|
|
2514
|
-
allow: "allow";
|
|
2515
|
-
ask: "ask";
|
|
2516
|
-
}>>;
|
|
2517
|
-
external_directory: z.ZodOptional<z.ZodEnum<{
|
|
2518
|
-
deny: "deny";
|
|
2519
|
-
allow: "allow";
|
|
2520
|
-
ask: "ask";
|
|
2521
|
-
}>>;
|
|
2522
|
-
}, z.core.$strip>>;
|
|
2523
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2524
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
2525
|
-
fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
2526
|
-
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
2527
|
-
system_prompt: z.ZodOptional<z.ZodString>;
|
|
2528
|
-
thinking_level: z.ZodOptional<z.ZodEnum<{
|
|
2529
|
-
off: "off";
|
|
2530
|
-
minimal: "minimal";
|
|
2531
|
-
low: "low";
|
|
2532
|
-
medium: "medium";
|
|
2533
|
-
high: "high";
|
|
2534
|
-
xhigh: "xhigh";
|
|
2535
|
-
max: "max";
|
|
2536
|
-
}>>;
|
|
2537
|
-
}, z.core.$strip>>;
|
|
2538
2393
|
}, z.core.$strip>, z.ZodTransform<MagicContextConfig, {
|
|
2539
2394
|
enabled: boolean;
|
|
2540
2395
|
allow_home_project: boolean;
|
|
@@ -2582,6 +2437,8 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2582
2437
|
embedding: {
|
|
2583
2438
|
max_input_tokens?: number | undefined;
|
|
2584
2439
|
truncate?: string | undefined;
|
|
2440
|
+
document_prefix?: string | undefined;
|
|
2441
|
+
query_instruction?: string | false | undefined;
|
|
2585
2442
|
query_input_type?: string | undefined;
|
|
2586
2443
|
input_type?: string | undefined;
|
|
2587
2444
|
api_key?: string | undefined;
|
|
@@ -2598,6 +2455,8 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2598
2455
|
} | {
|
|
2599
2456
|
max_input_tokens?: number | undefined;
|
|
2600
2457
|
truncate?: string | undefined;
|
|
2458
|
+
document_prefix?: string | undefined;
|
|
2459
|
+
query_instruction?: string | false | undefined;
|
|
2601
2460
|
query_input_type?: string | undefined;
|
|
2602
2461
|
input_type?: string | undefined;
|
|
2603
2462
|
api_key?: string | undefined;
|
|
@@ -2612,6 +2471,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2612
2471
|
};
|
|
2613
2472
|
temporal_awareness: boolean;
|
|
2614
2473
|
keep_subagents: boolean;
|
|
2474
|
+
debug_rpc: boolean;
|
|
2615
2475
|
fail_closed_blocking: boolean;
|
|
2616
2476
|
compaction: {
|
|
2617
2477
|
enabled: boolean;
|
|
@@ -2715,12 +2575,6 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2715
2575
|
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "inherit" | "auto" | undefined;
|
|
2716
2576
|
} | undefined;
|
|
2717
2577
|
} | undefined;
|
|
2718
|
-
sidekick?: {
|
|
2719
|
-
model?: string | undefined;
|
|
2720
|
-
variant?: string | undefined;
|
|
2721
|
-
fallback_models?: string | string[] | undefined;
|
|
2722
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
2723
|
-
} | undefined;
|
|
2724
2578
|
}> | undefined;
|
|
2725
2579
|
historian?: {
|
|
2726
2580
|
two_pass: boolean;
|
|
@@ -2916,37 +2770,25 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2916
2770
|
[x: string]: number;
|
|
2917
2771
|
default?: number | undefined;
|
|
2918
2772
|
} | undefined;
|
|
2919
|
-
|
|
2773
|
+
protected_tokens?: number | undefined;
|
|
2774
|
+
protected_tags?: unknown;
|
|
2920
2775
|
subc?: {
|
|
2921
2776
|
connection_file: string;
|
|
2922
2777
|
} | undefined;
|
|
2923
2778
|
pi?: {
|
|
2924
2779
|
subagent_extensions?: string[] | undefined;
|
|
2925
2780
|
} | undefined;
|
|
2926
|
-
sidekick?: {
|
|
2927
|
-
timeout_ms: number;
|
|
2928
|
-
model?: string | undefined;
|
|
2929
|
-
temperature?: number | undefined;
|
|
2930
|
-
top_p?: number | undefined;
|
|
2931
|
-
prompt?: string | undefined;
|
|
2932
|
-
tools?: Record<string, boolean> | undefined;
|
|
2933
|
-
disable?: boolean | undefined;
|
|
2934
|
-
description?: string | undefined;
|
|
2935
|
-
mode?: "primary" | "subagent" | "all" | undefined;
|
|
2936
|
-
color?: string | undefined;
|
|
2937
|
-
maxSteps?: number | undefined;
|
|
2938
|
-
permission?: {
|
|
2939
|
-
edit?: "deny" | "allow" | "ask" | undefined;
|
|
2940
|
-
bash?: "deny" | "allow" | "ask" | Record<string, "deny" | "allow" | "ask"> | undefined;
|
|
2941
|
-
webfetch?: "deny" | "allow" | "ask" | undefined;
|
|
2942
|
-
doom_loop?: "deny" | "allow" | "ask" | undefined;
|
|
2943
|
-
external_directory?: "deny" | "allow" | "ask" | undefined;
|
|
2944
|
-
} | undefined;
|
|
2945
|
-
maxTokens?: number | undefined;
|
|
2946
|
-
variant?: string | undefined;
|
|
2947
|
-
fallback_models?: string | string[] | undefined;
|
|
2948
|
-
system_prompt?: string | undefined;
|
|
2949
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
2950
|
-
} | undefined;
|
|
2951
2781
|
}>>;
|
|
2782
|
+
/**
|
|
2783
|
+
* Derived default protected_tokens formula:
|
|
2784
|
+
* clamp(round(0.05 × usableSoft), min(16000, round(0.08 × usableSoft)), 64000)
|
|
2785
|
+
*
|
|
2786
|
+
* Sizing table:
|
|
2787
|
+
* 100k -> 8,000
|
|
2788
|
+
* 200k -> 16,000
|
|
2789
|
+
* 372k -> 18,600
|
|
2790
|
+
* 872k -> 43,600
|
|
2791
|
+
* 1M -> 50,000
|
|
2792
|
+
*/
|
|
2793
|
+
export declare function deriveDefaultProtectedTokens(usableSoft: number): number;
|
|
2952
2794
|
//# sourceMappingURL=magic-context.d.ts.map
|
|
@@ -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;
|
|
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;AA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BAAgB,4BAA4B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAKvE"}
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
cleanupConflictWarnings2,
|
|
4
4
|
sendSchemaFenceWarning2,
|
|
5
5
|
sendStartupAnnouncement2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-36wd1d6k.js";
|
|
7
7
|
import"./index-sd3egckz.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-nqgjwfzn.js";
|
|
9
|
+
import"./index-1974jvn3.js";
|
|
10
10
|
import"./index-dkv2dn46.js";
|
|
11
11
|
export {
|
|
12
12
|
cleanupConflictWarnings2 as cleanupConflictWarnings,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
deriveHistorianChunkTokens2,
|
|
4
4
|
resolveKnownHistorianContextLimit2,
|
|
5
5
|
resolveHistorianContextLimit2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-xdtge3y2.js";
|
|
7
7
|
import"./index-dkv2dn46.js";
|
|
8
8
|
export {
|
|
9
9
|
deriveHistorianChunkTokens2 as deriveHistorianChunkTokens,
|
|
@@ -19,10 +19,6 @@ export declare function getMagicContextBuiltinCommands(compactionEnabled?: boole
|
|
|
19
19
|
template: string;
|
|
20
20
|
description: string;
|
|
21
21
|
};
|
|
22
|
-
"ctx-aug": {
|
|
23
|
-
template: string;
|
|
24
|
-
description: string;
|
|
25
|
-
};
|
|
26
22
|
"ctx-dream": {
|
|
27
23
|
template: string;
|
|
28
24
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CtE;AAED,MAAM,MAAM,8BAA8B,GAAG,MAAM,UAAU,CACzD,OAAO,8BAA8B,CACxC,CAAC"}
|
|
@@ -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;AA4CH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,SAAK,EAAE,QAAQ,SAAK,GAAG,MAAM,CAE1F;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,SAAK,EAAE,QAAQ,SAAK,GAAG,MAAM,CAEvF;AAID,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AA+GD,wBAAgB,uBAAuB,IAAI,IAAI,CAY9C;AAID,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACvB;AA6BD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACnC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,GACrB,mBAAmB,GAAG,IAAI,CAoC5B;AAED,wBAAgB,uCAAuC,CACnD,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,GACvB,MAAM,GAAG,IAAI,CASf;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAClC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAClB;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAMvB;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AE,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"}
|
|
@@ -81,16 +81,27 @@ export declare function chunkEmbeddingWindowsAreCurrent(db: Database, compartmen
|
|
|
81
81
|
export declare function replaceCompartmentChunkEmbeddings(db: Database, rows: readonly SaveCompartmentChunkEmbeddingInput[]): void;
|
|
82
82
|
export declare function loadCompartmentChunkEmbeddingsForSearch(db: Database, sessionId: string, projectPath: string, modelId: string): StoredCompartmentChunkEmbedding[];
|
|
83
83
|
export declare function loadUnembeddedCompartmentChunkCandidates(db: Database, projectPath: string, modelId: string, limit: number, maxInputTokens?: number): CompartmentChunkBackfillCandidate[];
|
|
84
|
-
/**
|
|
85
|
-
|
|
84
|
+
/**
|
|
85
|
+
* Select hash-incomplete rows under the shadow window contract, restricted to
|
|
86
|
+
* compartments already represented in the primary cohort. Primary and shadow
|
|
87
|
+
* providers may use different token ceilings, so primary window keys and hashes
|
|
88
|
+
* cannot be used as the shadow completeness predicate.
|
|
89
|
+
*/
|
|
90
|
+
export declare function loadUnembeddedShadowChunkCandidates(db: Database, projectPath: string, primaryModelId: string, shadowModelId: string, limit: number, shadowMaxInputTokens: number): CompartmentChunkBackfillCandidate[];
|
|
91
|
+
/**
|
|
92
|
+
* Auto-drain selector that gives the host a turn after every mapped span read.
|
|
93
|
+
* `leaseHeldRenumber` is reserved for callers holding the project's write lease.
|
|
94
|
+
*/
|
|
95
|
+
export declare function loadUnembeddedCompartmentChunkCandidatesPolite(db: Database, projectPath: string, modelId: string, limit: number, maxInputTokens?: number, leaseHeldRenumber?: boolean): Promise<CompartmentChunkBackfillCandidate[]>;
|
|
86
96
|
/** Session-scoped variant of {@link loadUnembeddedCompartmentChunkCandidates}.
|
|
87
97
|
* Used by the on-demand `/ctx-embed-history` command, which backfills ONE
|
|
88
98
|
* session at a time. Missing expected windows precede stale-hash replacements;
|
|
89
99
|
* each defect class remains oldest-first so progress is deterministic.
|
|
90
100
|
*
|
|
91
101
|
* `excludeIds` lets the drain loop advance past compartments that produced no
|
|
92
|
-
* embeddable work or provider failures this run.
|
|
93
|
-
|
|
102
|
+
* embeddable work or provider failures this run. `leaseHeldRenumber` is reserved
|
|
103
|
+
* for callers holding the project's write lease. */
|
|
104
|
+
export declare function loadUnembeddedSessionChunkCandidates(db: Database, projectPath: string, sessionId: string, modelId: string, limit: number, excludeIds?: readonly number[], maxInputTokens?: number, leaseHeldRenumber?: boolean): CompartmentChunkBackfillCandidate[];
|
|
94
105
|
/** Count session compartments whose current transcript windows are missing or stale. */
|
|
95
106
|
export declare function countUnembeddedSessionCompartments(db: Database, projectPath: string, sessionId: string, modelId: string, maxInputTokens?: number): number;
|
|
96
107
|
/**
|
|
@@ -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;
|
|
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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Q,EACZ,WAAW,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"}
|
|
@@ -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;
|
|
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;CACrB;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,SAAS,EAAE,MAAM,CAAC;CACrB;AA8ED,MAAM,WAAW,gBAAgB;IAC7B,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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AAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAO/C;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAElD"}
|
|
@@ -174,25 +174,52 @@ export declare function applyMirrorPage(args: {
|
|
|
174
174
|
db: Database;
|
|
175
175
|
page: ChangefeedPage;
|
|
176
176
|
}): number;
|
|
177
|
+
type MirrorPullModuleClient = Pick<AuthorityModuleClient, "mirrorPull">;
|
|
177
178
|
export declare function ensureLiveMemoryResnapshot(args: {
|
|
178
179
|
db: Database;
|
|
179
|
-
module:
|
|
180
|
+
module: MirrorPullModuleClient;
|
|
180
181
|
limit: number;
|
|
181
182
|
}): Promise<void>;
|
|
182
183
|
export declare function pullAndApplyMirrorPage(args: {
|
|
183
184
|
db: Database;
|
|
184
|
-
module:
|
|
185
|
+
module: MirrorPullModuleClient;
|
|
185
186
|
domain: AuthorityDomain;
|
|
186
187
|
limit?: number;
|
|
187
188
|
}): Promise<number>;
|
|
189
|
+
export interface MirrorDrainResult {
|
|
190
|
+
cursor: number;
|
|
191
|
+
pagesPulled: number;
|
|
192
|
+
rowsApplied: number;
|
|
193
|
+
complete: boolean;
|
|
194
|
+
budgetExhausted: boolean;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Drain the paged mirror protocol until the producer reports completion. This is
|
|
198
|
+
* shared by explicit tool synchronization and transform-driven background pulls
|
|
199
|
+
* so both callers preserve the same cursor-progress rule.
|
|
200
|
+
*/
|
|
201
|
+
export declare function drainMirrorPages(args: {
|
|
202
|
+
db: Database;
|
|
203
|
+
module: MirrorPullModuleClient;
|
|
204
|
+
domain: AuthorityDomain;
|
|
205
|
+
limit?: number;
|
|
206
|
+
pageBudget?: number;
|
|
207
|
+
}): Promise<MirrorDrainResult>;
|
|
208
|
+
export declare const TRANSFORM_MEMORY_MIRROR_PAGE_BUDGET = 20;
|
|
209
|
+
export interface MemoryMirrorDrainResult extends MirrorDrainResult {
|
|
210
|
+
cuePoolVersion: number;
|
|
211
|
+
}
|
|
188
212
|
/**
|
|
189
213
|
* The rust transform pass is the mirror cadence. Coalesce overlapping passes so a
|
|
190
214
|
* slower pull can never race a second cursor application on the same connection.
|
|
215
|
+
* One flight drains a bounded page batch; an incomplete result remains eligible on
|
|
216
|
+
* the next transform pass.
|
|
191
217
|
*/
|
|
192
218
|
export declare function pullMemoryMirrorOnce(args: {
|
|
193
219
|
db: Database;
|
|
194
|
-
module:
|
|
220
|
+
module: MirrorPullModuleClient;
|
|
195
221
|
limit?: number;
|
|
196
|
-
|
|
222
|
+
pageBudget?: number;
|
|
223
|
+
}): Promise<MemoryMirrorDrainResult>;
|
|
197
224
|
export {};
|
|
198
225
|
//# sourceMappingURL=context-authority.d.ts.map
|