@cortexkit/opencode-magic-context 0.41.3 → 0.42.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 +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 +14 -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 +17 -0
- 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 +23 -201
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/{conflict-warning-hook-z5sd697e.js → conflict-warning-hook-6p3xqeac.js} +4 -4
- package/dist/{derive-budgets-901a0pk0.js → derive-budgets-s2pgnnm4.js} +4 -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.map +1 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts +7 -0
- 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 +13 -0
- 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 +7 -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-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-synapse.d.ts +43 -10
- 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 +81 -15
- 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 +5 -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-recomp.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-types.d.ts +4 -0
- package/dist/hooks/magic-context/compartment-runner-types.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/derive-budgets.d.ts +1 -0
- package/dist/hooks/magic-context/derive-budgets.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/emergency-drop.d.ts +9 -2
- 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 +8 -2
- package/dist/hooks/magic-context/execute-status.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 +11 -4
- package/dist/hooks/magic-context/heuristic-cleanup.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook-handlers.d.ts +5 -1
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts +17 -5
- 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/issue-423-fixture.d.ts +37 -0
- package/dist/hooks/magic-context/issue-423-fixture.d.ts.map +1 -0
- package/dist/hooks/magic-context/issue-424-fixture.d.ts +11 -0
- package/dist/hooks/magic-context/issue-424-fixture.d.ts.map +1 -0
- 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/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/producer-window-guard.d.ts +8 -0
- package/dist/hooks/magic-context/producer-window-guard.d.ts.map +1 -0
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts +65 -0
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-chunk.d.ts +20 -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/read-session-true-raw-tokens.d.ts +4 -1
- package/dist/hooks/magic-context/read-session-true-raw-tokens.d.ts.map +1 -1
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts +2 -0
- 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 +79 -11
- 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/sentinel.d.ts +3 -3
- package/dist/hooks/magic-context/sentinel.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/tag-messages.d.ts +2 -0
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/tail-hygiene-walk.d.ts +16 -6
- package/dist/hooks/magic-context/tail-hygiene-walk.d.ts.map +1 -1
- package/dist/hooks/magic-context/tool-drop-target.d.ts +1 -0
- package/dist/hooks/magic-context/tool-drop-target.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +2 -0
- 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 +11 -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-npx8vhmy.js → index-36wd1d6k.js} +7 -30
- package/dist/{index-kby1sng5.js → index-avwt563y.js} +8 -1
- package/dist/{index-vmmjdpc0.js → index-c9hamh36.js} +18357 -16010
- package/dist/{index-0bycg0np.js → index-jmtjh2d3.js} +4 -4
- package/dist/{index-q264erdp.js → index-nqgjwfzn.js} +70 -38
- package/dist/index-sd3egckz.js +1583 -0
- package/dist/{index-dn1rwpd8.js → index-xdtge3y2.js} +58 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6826 -6660
- 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-routing.d.ts +4 -1
- package/dist/plugin/embedding-routing.d.ts.map +1 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +19 -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-f5m2wk74.js → recomp-orchestrator-3atsasjy.js} +6 -6
- package/dist/{send-session-notification-hdh02wy9.js → send-session-notification-1qeqkswb.js} +6 -4
- package/dist/shared/cache-ttl-display.d.ts +23 -0
- package/dist/shared/cache-ttl-display.d.ts.map +1 -0
- package/dist/shared/cache-ttl-seed.d.ts +10 -0
- package/dist/shared/cache-ttl-seed.d.ts.map +1 -0
- package/dist/shared/child-session-teardown.d.ts +34 -0
- package/dist/shared/child-session-teardown.d.ts.map +1 -0
- package/dist/shared/config-diagnostics.d.ts +30 -0
- package/dist/shared/config-diagnostics.d.ts.map +1 -0
- package/dist/shared/config-warning-surface.d.ts +3 -0
- package/dist/shared/config-warning-surface.d.ts.map +1 -0
- package/dist/shared/data-path.d.ts +10 -9
- package/dist/shared/data-path.d.ts.map +1 -1
- package/dist/shared/harness-provider-map.d.ts +7 -0
- package/dist/shared/harness-provider-map.d.ts.map +1 -1
- package/dist/shared/jsonc-parser.d.ts +12 -0
- package/dist/shared/jsonc-parser.d.ts.map +1 -1
- 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 +15 -11
- package/dist/shared/model-suggestion-retry.d.ts.map +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/pi-executable.d.ts +6 -0
- package/dist/shared/pi-executable.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 +117 -0
- package/dist/shared/rpc-types.d.ts.map +1 -1
- package/dist/shared/rpc-utils.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.map +1 -1
- 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/transcript.d.ts +6 -0
- package/dist/shared/transcript.d.ts.map +1 -1
- 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-3rxx9ekm.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 +169 -14
- package/src/config/index.ts +137 -21
- 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 +11 -22
- package/src/config/project-security.ts +103 -9
- 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 +21 -42
- package/src/config/schema/magic-context.ts +46 -37
- package/src/shared/cache-ttl-display.test.ts +84 -0
- package/src/shared/cache-ttl-display.ts +64 -0
- package/src/shared/cache-ttl-seed.ts +23 -0
- package/src/shared/child-session-teardown.test.ts +218 -0
- package/src/shared/child-session-teardown.ts +66 -0
- package/src/shared/config-diagnostics.test.ts +29 -0
- package/src/shared/config-diagnostics.ts +64 -0
- package/src/shared/config-warning-surface.ts +28 -0
- package/src/shared/data-path.ts +10 -9
- package/src/shared/harness-provider-map.test.ts +16 -0
- package/src/shared/harness-provider-map.ts +15 -0
- package/src/shared/jsonc-parser.test.ts +14 -1
- package/src/shared/jsonc-parser.ts +93 -0
- package/src/shared/keep-subagents.ts +9 -14
- package/src/shared/model-suggestion-retry.ts +144 -29
- package/src/shared/opencode-db-path.test.ts +196 -0
- package/src/shared/opencode-db-path.ts +215 -0
- package/src/shared/pi-executable.ts +20 -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 +124 -0
- package/src/shared/rpc-utils.ts +2 -3
- 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 +8 -4
- package/src/shared/status-detail-text.ts +20 -1
- package/src/shared/subagent-runner.ts +17 -10
- package/src/shared/tag-transcript.ts +53 -22
- package/src/shared/transcript.ts +7 -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 +18 -4
- package/src/tui/slots/sidebar-content.tsx +12 -7
- package/src/tui-compiled/index.tsx +237 -225
- 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-jfpk81yt.js +0 -146
- package/dist/index-raatkvw5.js +0 -360
- package/src/agents/sidekick.ts +0 -1
- package/src/features/magic-context/defaults.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Conflict warning for Desktop mode when magic-context is disabled.
|
|
3
3
|
*
|
|
4
|
-
* - When conflicts detected: reads Desktop app state → finds active session →
|
|
4
|
+
* - When conflicts detected: reads Desktop app state → finds active session → enqueues an RPC warning
|
|
5
5
|
* - When no conflicts: cleans up any leftover warning messages from previous runs
|
|
6
6
|
*
|
|
7
7
|
* TUI handles this via a startup dialog — this covers Desktop only.
|
|
@@ -17,7 +17,7 @@ export declare const __conflictWarningTest: {
|
|
|
17
17
|
reset(): void;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Enqueue an RPC warning for the active Desktop session at plugin startup.
|
|
21
21
|
*/
|
|
22
22
|
export declare function sendConflictWarning(client: unknown, directory: string, conflictResult: ConflictResult): Promise<void>;
|
|
23
23
|
/**
|
|
@@ -30,16 +30,15 @@ export declare function cleanupConflictWarnings(client: unknown, directory: stri
|
|
|
30
30
|
* harness auto-updates first, it migrates the DB to a newer schema; the lagging
|
|
31
31
|
* harness then fail-closes and disables ALL of Magic Context. Previously this
|
|
32
32
|
* was log-only, so the user just saw the plugin silently stop working. Surface
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* lagging harness), unlike the transient TUI-setup notice.
|
|
33
|
+
* an RPC warning telling them what happened and how to fix it. The schema fence
|
|
34
|
+
* remains visible in status diagnostics until the lagging harness is updated.
|
|
36
35
|
*/
|
|
37
36
|
export declare function sendSchemaFenceWarning(client: unknown, directory: string, detail: {
|
|
38
37
|
persistedVersion: number;
|
|
39
38
|
supportedVersion: number;
|
|
40
39
|
}): Promise<void>;
|
|
41
40
|
/**
|
|
42
|
-
* Desktop startup announcement:
|
|
41
|
+
* Desktop startup announcement: enqueue a one-shot RPC notification describing
|
|
43
42
|
* what's new in this release. Mirrors the TUI's RPC-driven dialog path so both
|
|
44
43
|
* surfaces deliver the same announcement once per ANNOUNCEMENT_VERSION.
|
|
45
44
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conflict-warning-hook.d.ts","sourceRoot":"","sources":["../../src/plugin/conflict-warning-hook.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAoClE,UAAU,YAAY;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAqDD,6FAA6F;AAC7F,eAAO,MAAM,qBAAqB;+BACH,MAAM,SAAS,YAAY,GAAG,IAAI;aAGpD,IAAI;CAGhB,CAAC;AA0FF;;GAEG;AACH,wBAAsB,mBAAmB,CACrC,MAAM,EAAE,OAAO,EACf,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,cAAc,GAC/B,OAAO,CAAC,IAAI,C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AM,EACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GACpC,OAAO,CAAC,IAAI,CAAC,CAqCf"}
|
|
@@ -88,5 +88,6 @@ interface ProjectRegistration {
|
|
|
88
88
|
* itself stops only when the last project unregisters.
|
|
89
89
|
*/
|
|
90
90
|
export declare function startDreamScheduleTimer(args: ProjectRegistration): Promise<(() => void) | undefined>;
|
|
91
|
+
export declare function _resetDreamTimerForTests(): void;
|
|
91
92
|
export {};
|
|
92
93
|
//# sourceMappingURL=dream-timer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dream-timer.d.ts","sourceRoot":"","sources":["../../src/plugin/dream-timer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"dream-timer.d.ts","sourceRoot":"","sources":["../../src/plugin/dream-timer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AASvF,OAAO,EAEH,KAAK,wBAAwB,EAChC,MAAM,8DAA8D,CAAC;AAOtE,OAAO,KAAK,EACR,aAAa,EACb,iBAAiB,EACpB,MAAM,iDAAiD,CAAC;AA6BzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAGpF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAOjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAS7C;;;;;GAKG;AACH,UAAU,mBAAmB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC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aAAa,KAAK,IAAI,CAAC;IAChG,YAAY,CAAC,EAAE,oBAAoB,GAAG;QAClC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE;YACrB,kBAAkB,EAAE,MAAM,CAAC;YAC3B,OAAO,EAAE,MAAM,CAAC;YAChB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC;SAChC,KAAK,OAAO,CAAC;YAAE,SAAS,EAAE;gBAAE,KAAK,CAAC,EAAE,MAAM,CAAC;gBAAC,UAAU,CAAC,EAAE,MAAM,CAAA;aAAE,GAAG,IAAI,CAAA;SAAE,CAAC,CAAC;KAChF,CAAC;IACF,0BAA0B,CAAC,EAAE;QACzB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACrE,YAAY,CAAC,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1C,CAAC;CACL;AAmED;;;;;;;;;;GAUG;AACH,wBAAsB,uBAAuB,CACzC,IAAI,EAAE,mBAAmB,GAC1B,OAAO,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC,CAwEnC;AAqSD,wBAAgB,wBAAwB,IAAI,IAAI,CAiB/C"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { EmbeddingConfig, MagicContextConfig } from "../config/schema/magic-context";
|
|
2
|
+
import { type SynapseLaneDescriptor } from "../features/magic-context/memory/embedding-synapse";
|
|
2
3
|
export interface ResolvedSynapseEmbeddingConfig {
|
|
3
4
|
provider: "synapse";
|
|
4
5
|
model: string;
|
|
5
|
-
max_input_tokens:
|
|
6
|
+
max_input_tokens: number;
|
|
6
7
|
synapse_connection_file: string;
|
|
7
8
|
synapse_fingerprint: string;
|
|
8
9
|
synapse_table_epoch: number;
|
|
9
10
|
synapse_dims?: number;
|
|
10
11
|
synapse_recommended_batch?: number;
|
|
12
|
+
synapse_recommended_token_budget?: number;
|
|
13
|
+
synapse_descriptor: SynapseLaneDescriptor;
|
|
11
14
|
synapse_provenance?: unknown;
|
|
12
15
|
}
|
|
13
16
|
export interface ResolvedEmbeddingRouting {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedding-routing.d.ts","sourceRoot":"","sources":["../../src/plugin/embedding-routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,eAAe,EAEf,kBAAkB,EACrB,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"embedding-routing.d.ts","sourceRoot":"","sources":["../../src/plugin/embedding-routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,eAAe,EAEf,kBAAkB,EACrB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAIH,KAAK,qBAAqB,EAG7B,MAAM,oDAAoD,CAAC;AAG5D,MAAM,WAAW,8BAA8B;IAC3C,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,uBAAuB,EAAE,MAAM,CAAC;IAChC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAG5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,kBAAkB,EAAE,qBAAqB,CAAC;IAC1C,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAQD,MAAM,WAAW,wBAAwB;IACrC,kDAAkD;IAClD,OAAO,EAAE,eAAe,GAAG,8BAA8B,CAAC;IAC1D,oEAAoE;IACpE,MAAM,EAAE,8BAA8B,GAAG,IAAI,CAAC;IAC9C,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB;AAkHD;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAChD,MAAM,EAAE,kBAAkB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CA4EpC;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,8BAA8B,GAAG,MAAM,CAEjG"}
|
|
@@ -12,12 +12,16 @@ import type { PluginContext } from "../types";
|
|
|
12
12
|
* import the real hook shape.
|
|
13
13
|
*/
|
|
14
14
|
export declare function buildMagicContextHookConfig(pluginConfig: MagicContextPluginConfig): {
|
|
15
|
-
|
|
15
|
+
protected_tokens: number | undefined;
|
|
16
|
+
protectedTokenTierOverrides: import("../../config/project-security").ProtectedTokensTierOverrides | undefined;
|
|
16
17
|
execute_threshold_percentage: number | {
|
|
17
18
|
[modelKey: string]: number;
|
|
18
19
|
default: number;
|
|
19
20
|
};
|
|
20
21
|
disabled_hooks?: string[];
|
|
22
|
+
configParseFailures?: import("../../shared/config-diagnostics").ConfigParseFailure[];
|
|
23
|
+
configWarningDetails?: import("../../shared/config-diagnostics").ConfigWarningDetail[];
|
|
24
|
+
cacheTtlConfigured?: boolean;
|
|
21
25
|
command?: Record<string, {
|
|
22
26
|
template: string;
|
|
23
27
|
description?: string;
|
|
@@ -55,6 +59,7 @@ export declare function buildMagicContextHookConfig(pluginConfig: MagicContextPl
|
|
|
55
59
|
default?: number;
|
|
56
60
|
[modelKey: string]: number | undefined;
|
|
57
61
|
};
|
|
62
|
+
protected_tags?: number;
|
|
58
63
|
clear_reasoning_age: number;
|
|
59
64
|
history_budget_percentage: number;
|
|
60
65
|
historian_timeout_ms: number;
|
|
@@ -75,6 +80,7 @@ export declare function buildMagicContextHookConfig(pluginConfig: MagicContextPl
|
|
|
75
80
|
};
|
|
76
81
|
temporal_awareness: boolean;
|
|
77
82
|
keep_subagents: boolean;
|
|
83
|
+
debug_rpc?: boolean;
|
|
78
84
|
fail_closed_blocking: boolean;
|
|
79
85
|
compaction: {
|
|
80
86
|
enabled: boolean;
|
|
@@ -108,7 +114,6 @@ export declare function buildMagicContextHookConfig(pluginConfig: MagicContextPl
|
|
|
108
114
|
max_commits: number;
|
|
109
115
|
};
|
|
110
116
|
};
|
|
111
|
-
sidekick?: import("../../features/magic-context").SidekickConfig;
|
|
112
117
|
};
|
|
113
118
|
export declare function createSessionHooks(args: {
|
|
114
119
|
ctx: PluginContext;
|
|
@@ -123,6 +128,7 @@ export declare function createSessionHooks(args: {
|
|
|
123
128
|
}) => Promise<void>) & {
|
|
124
129
|
invalidateRustWireState(sessionId: string): void;
|
|
125
130
|
clearRustSession(sessionId: string): Promise<void>;
|
|
131
|
+
getRustWireCacheHeapStats(): import("../../hooks/magic-context/rust-mode-transform").RustWireCacheHeapStats;
|
|
126
132
|
};
|
|
127
133
|
"experimental.chat.system.transform": (input: {
|
|
128
134
|
sessionID?: string;
|
|
@@ -163,9 +169,14 @@ export declare function createSessionHooks(args: {
|
|
|
163
169
|
};
|
|
164
170
|
}) => Promise<void>;
|
|
165
171
|
"command.execute.before": (input: unknown, output: unknown) => Promise<unknown>;
|
|
172
|
+
"tool.execute.before": (_input: unknown, output: unknown) => Promise<void>;
|
|
166
173
|
"tool.execute.after": (input: unknown, output?: unknown) => Promise<void>;
|
|
167
174
|
} & {
|
|
168
175
|
rustToolBackends?: import("../rust-tool-backends").RustToolBackends;
|
|
176
|
+
getDebugMemoryHolders?: () => {
|
|
177
|
+
taggerCache: ReturnType<NonNullable<import("../../features/magic-context").Tagger["getHeapStats"]>>;
|
|
178
|
+
wireCache: ReturnType<() => import("../../hooks/magic-context/rust-mode-transform").RustWireCacheHeapStats>;
|
|
179
|
+
};
|
|
169
180
|
}) | null;
|
|
170
181
|
rustToolBackends: import("../rust-tool-backends").RustToolBackends | undefined;
|
|
171
182
|
};
|
|
@@ -183,6 +194,7 @@ export declare function createSessionHooksAsync(args: {
|
|
|
183
194
|
}) => Promise<void>) & {
|
|
184
195
|
invalidateRustWireState(sessionId: string): void;
|
|
185
196
|
clearRustSession(sessionId: string): Promise<void>;
|
|
197
|
+
getRustWireCacheHeapStats(): import("../../hooks/magic-context/rust-mode-transform").RustWireCacheHeapStats;
|
|
186
198
|
};
|
|
187
199
|
"experimental.chat.system.transform": (input: {
|
|
188
200
|
sessionID?: string;
|
|
@@ -223,9 +235,14 @@ export declare function createSessionHooksAsync(args: {
|
|
|
223
235
|
};
|
|
224
236
|
}) => Promise<void>;
|
|
225
237
|
"command.execute.before": (input: unknown, output: unknown) => Promise<unknown>;
|
|
238
|
+
"tool.execute.before": (_input: unknown, output: unknown) => Promise<void>;
|
|
226
239
|
"tool.execute.after": (input: unknown, output?: unknown) => Promise<void>;
|
|
227
240
|
} & {
|
|
228
241
|
rustToolBackends?: import("../rust-tool-backends").RustToolBackends;
|
|
242
|
+
getDebugMemoryHolders?: () => {
|
|
243
|
+
taggerCache: ReturnType<NonNullable<import("../../features/magic-context").Tagger["getHeapStats"]>>;
|
|
244
|
+
wireCache: ReturnType<() => import("../../hooks/magic-context/rust-mode-transform").RustWireCacheHeapStats>;
|
|
245
|
+
};
|
|
229
246
|
}) | null;
|
|
230
247
|
rustToolBackends: import("../rust-tool-backends").RustToolBackends | undefined;
|
|
231
248
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-session-hooks.d.ts","sourceRoot":"","sources":["../../../src/plugin/hooks/create-session-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAK7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAGnF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C;;;;;;GAMG;AAC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;;;;0BAAigjE,CAAC;;;;;;;;;;;;;;EAzCx+pE;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAChD,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,oBAAoB,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACjE;;;;;;;;;;qBAgC6jI,CAAC;iBAA2B,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;;;;;;;;qBAA78B,CAAC;mBAA6B,CAAC;iBAA2B,CAAC;iBAA2B,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;iBAA2D,CAAC;;oBAA4D,CAAC;uBAAiC,CAAC;yBAAoC,CAAC;;;;;;0BAAigjE,CAAC;;;;;;;;;;;;;;GADx+pE"}
|
|
@@ -3,7 +3,7 @@ import { type ContextDatabase as Database } from "../features/magic-context/stor
|
|
|
3
3
|
import type { LiveSessionState } from "../hooks/magic-context/live-session-state";
|
|
4
4
|
import type { RustModeModuleClient } from "../hooks/magic-context/rust-mode-transform";
|
|
5
5
|
import type { MagicContextRpcServer } from "../shared/rpc-server";
|
|
6
|
-
import type { SidebarSnapshot, StatusDetail } from "../shared/rpc-types";
|
|
6
|
+
import type { DebugMemoryUsageResponse, SidebarSnapshot, StatusDetail } from "../shared/rpc-types";
|
|
7
7
|
import { type WireTailHygieneBaseline } from "../shared/tail-hygiene-status";
|
|
8
8
|
export declare function executeRustRecompRpc(moduleClient: RustModeModuleClient | undefined, sessionId: string, projectRoot: string): Promise<{
|
|
9
9
|
ok: boolean;
|
|
@@ -37,6 +37,33 @@ export declare function buildSidebarSnapshot(db: Database, sessionId: string, di
|
|
|
37
37
|
export declare function buildSidebarSnapshotRpcResponse(db: Database, sessionId: string, directory: string, liveSessionState?: LiveSessionState, injectionBudgetTokens?: number, config?: Record<string, unknown>, moduleStatus?: RustSessionStatus, compactionEnabled?: boolean): Record<string, unknown>;
|
|
38
38
|
export declare function buildStatusDetail(db: Database, sessionId: string, directory: string, modelKey?: string, config?: Record<string, unknown>, liveSessionState?: LiveSessionState, injectionBudgetTokens?: number, moduleStatus?: RustSessionStatus, compactionEnabled?: boolean): StatusDetail;
|
|
39
39
|
export declare function buildCompartmentCount(db: Database, sessionId: string, moduleStatus?: RustSessionStatus): number;
|
|
40
|
+
interface RuntimeDebugMemoryHolders {
|
|
41
|
+
taggerCache?: {
|
|
42
|
+
sessionCount: number;
|
|
43
|
+
assignmentEntries: number;
|
|
44
|
+
toolAccountingEntries: number;
|
|
45
|
+
loadSignatureEntries: number;
|
|
46
|
+
sessions: Array<{
|
|
47
|
+
sessionId: string;
|
|
48
|
+
assignments: number;
|
|
49
|
+
toolAccounting: number;
|
|
50
|
+
}>;
|
|
51
|
+
};
|
|
52
|
+
wireCache?: {
|
|
53
|
+
snapshots: number;
|
|
54
|
+
rawContentSnapshots: number;
|
|
55
|
+
estimatedBytes: number;
|
|
56
|
+
sessions: Array<{
|
|
57
|
+
sessionId: string;
|
|
58
|
+
rawMessages: number;
|
|
59
|
+
wireMessages: number;
|
|
60
|
+
rawContentSnapshots: number;
|
|
61
|
+
estimatedBytes: number;
|
|
62
|
+
}>;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export declare function isDebugRpcEnabled(config: Pick<MagicContextConfig, "debug_rpc">, env?: NodeJS.ProcessEnv): boolean;
|
|
66
|
+
export declare function buildDebugMemoryUsage(runtimeHolders?: RuntimeDebugMemoryHolders): DebugMemoryUsageResponse;
|
|
40
67
|
/**
|
|
41
68
|
* Register all RPC handlers on the server.
|
|
42
69
|
*/
|
|
@@ -46,5 +73,8 @@ export declare function registerRpcHandlers(rpcServer: MagicContextRpcServer, ar
|
|
|
46
73
|
client: unknown;
|
|
47
74
|
liveSessionState: LiveSessionState;
|
|
48
75
|
rustModeModuleClient?: RustModeModuleClient;
|
|
76
|
+
storageDir?: string;
|
|
77
|
+
getDebugMemoryHolders?: () => RuntimeDebugMemoryHolders | undefined;
|
|
49
78
|
}): void;
|
|
79
|
+
export {};
|
|
50
80
|
//# sourceMappingURL=rpc-handlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-handlers.d.ts","sourceRoot":"","sources":["../../src/plugin/rpc-handlers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rpc-handlers.d.ts","sourceRoot":"","sources":["../../src/plugin/rpc-handlers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAezE,OAAO,EACH,KAAK,eAAe,IAAI,QAAQ,EAGnC,MAAM,mCAAmC,CAAC;AAoB3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAYlF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAgBvF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAGR,wBAAwB,EAExB,eAAe,EACf,YAAY,EACf,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAEH,KAAK,uBAAuB,EAC/B,MAAM,+BAA+B,CAAC;AASvC,wBAAsB,oBAAoB,CACtC,YAAY,EAAE,oBAAoB,GAAG,SAAS,EAC9C,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAkB1C;AAED,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE;QAAE,0BAA0B,CAAC,EAAE,MAAM,CAAC;QAAC,oBAAoB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/E,YAAY,CAAC,EA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CAAC,CAAC;IAC3D,wGAAwG;IACxG,uBAAuB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3D,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAcpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../src/plugin/tool-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../src/plugin/tool-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAa1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAU7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiB7C;;;;;;GAMG;AACH,wBAAgB,8BAA8B,IAAI,SAAS,MAAM,EAAE,CAElE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,yBAAyB,CAAC,EAAE,mBAAmB,CAAC;CACnD,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAgJjC"}
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
setRecompTerminal2,
|
|
4
4
|
runManagedRecomp2,
|
|
5
5
|
runManagedUpgrade2
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
6
|
+
} from "./index-c9hamh36.js";
|
|
7
|
+
import"./index-xdtge3y2.js";
|
|
8
|
+
import"./index-jmtjh2d3.js";
|
|
9
|
+
import"./index-sd3egckz.js";
|
|
10
|
+
import"./index-nqgjwfzn.js";
|
|
11
|
+
import"./index-1974jvn3.js";
|
|
12
12
|
import"./index-jdxxq8cz.js";
|
|
13
13
|
import"./index-dkv2dn46.js";
|
|
14
14
|
export {
|
package/dist/{send-session-notification-hdh02wy9.js → send-session-notification-1qeqkswb.js}
RENAMED
|
@@ -3,14 +3,16 @@ import {
|
|
|
3
3
|
sendIgnoredMessage2,
|
|
4
4
|
flushIgnoredMessages2,
|
|
5
5
|
clearIgnoredMessages2,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
observeIgnoredNotificationEvent2,
|
|
7
|
+
sendStatusNotification2
|
|
8
|
+
} from "./index-nqgjwfzn.js";
|
|
9
|
+
import"./index-1974jvn3.js";
|
|
9
10
|
import"./index-dkv2dn46.js";
|
|
10
11
|
export {
|
|
11
12
|
clearIgnoredMessages2 as clearIgnoredMessages,
|
|
12
13
|
flushIgnoredMessages2 as flushIgnoredMessages,
|
|
14
|
+
observeIgnoredNotificationEvent2 as observeIgnoredNotificationEvent,
|
|
13
15
|
sendIgnoredMessage2 as sendIgnoredMessage,
|
|
14
|
-
|
|
16
|
+
sendStatusNotification2 as sendStatusNotification,
|
|
15
17
|
setNotificationServerUrl2 as setNotificationServerUrl
|
|
16
18
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { MagicContextConfig } from "../config/schema/magic-context";
|
|
2
|
+
export type CacheTtlDisplaySource = "config" | "session" | "default";
|
|
3
|
+
export interface CacheTtlDisplay {
|
|
4
|
+
value: string;
|
|
5
|
+
source: CacheTtlDisplaySource;
|
|
6
|
+
modelKey: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface ResolveCacheTtlDisplayArgs {
|
|
9
|
+
configured: MagicContextConfig["cache_ttl"];
|
|
10
|
+
configuredExplicitly: boolean;
|
|
11
|
+
modelKey: string | undefined;
|
|
12
|
+
sessionValue: string;
|
|
13
|
+
/** Model key persisted with the last completed assistant response. */
|
|
14
|
+
sessionModelKey: string | null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Resolve status-only TTL text without changing the scheduler's persisted truth.
|
|
18
|
+
* Use the session value only when its persisted model key matches the model being
|
|
19
|
+
* displayed; otherwise use live config because the session value may be for another model.
|
|
20
|
+
*/
|
|
21
|
+
export declare function resolveCacheTtlDisplay(args: ResolveCacheTtlDisplayArgs): CacheTtlDisplay;
|
|
22
|
+
export declare function formatCacheTtlDisplay(display: CacheTtlDisplay): string;
|
|
23
|
+
//# sourceMappingURL=cache-ttl-display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-ttl-display.d.ts","sourceRoot":"","sources":["../../src/shared/cache-ttl-display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGzE,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAErE,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,qBAAqB,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,0BAA0B;IACvC,UAAU,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC5C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,sEAAsE;IACtE,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,0BAA0B,GAAG,eAAe,CA8BxF;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CAMtE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MagicContextConfig } from "../config/schema/magic-context";
|
|
2
|
+
import type { Database } from "./sqlite";
|
|
3
|
+
/** Seed only before a completed assistant response has made the session row authoritative. */
|
|
4
|
+
export declare function seedSessionCacheTtlIfUnsynced(args: {
|
|
5
|
+
db: Database;
|
|
6
|
+
sessionId: string;
|
|
7
|
+
configured: MagicContextConfig["cache_ttl"];
|
|
8
|
+
modelKey: string;
|
|
9
|
+
}): boolean;
|
|
10
|
+
//# sourceMappingURL=cache-ttl-seed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-ttl-seed.d.ts","sourceRoot":"","sources":["../../src/shared/cache-ttl-seed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,8FAA8F;AAC9F,wBAAgB,6BAA6B,CAAC,IAAI,EAAE;IAChD,EAAE,EAAE,QAAQ,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC5C,QAAQ,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAWV"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
interface ChildSessionRequest {
|
|
2
|
+
path: {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
query?: {
|
|
6
|
+
directory: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface ChildSessionTeardownClient {
|
|
10
|
+
session: {
|
|
11
|
+
delete(request: ChildSessionRequest): Promise<unknown>;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface TeardownChildSessionArgs {
|
|
15
|
+
client: ChildSessionTeardownClient;
|
|
16
|
+
sessionId: string | null;
|
|
17
|
+
sessionDirectory?: string;
|
|
18
|
+
promptSettled: boolean;
|
|
19
|
+
privacySensitive: boolean;
|
|
20
|
+
context: string;
|
|
21
|
+
log: (message: string) => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Retire a child only after its prompt helper resolves. An unresolved client call
|
|
25
|
+
* can leave OpenCode's server loop writing, so that row is archived for immediate
|
|
26
|
+
* UI hiding and retained until the age-gated sweep can delete it safely.
|
|
27
|
+
*
|
|
28
|
+
* OpenCode's generated v2 SDK models archival as `session.update` with
|
|
29
|
+
* `time.archived`; the plugin's legacy path/body client reaches the same PATCH
|
|
30
|
+
* endpoint, although its generated TypeScript body type does not yet expose time.
|
|
31
|
+
*/
|
|
32
|
+
export declare function teardownChildSession(args: TeardownChildSessionArgs): Promise<void>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=child-session-teardown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"child-session-teardown.d.ts","sourceRoot":"","sources":["../../src/shared/child-session-teardown.ts"],"names":[],"mappings":"AAEA,UAAU,mBAAmB;IACzB,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACrB,KAAK,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;CACjC;AAMD,MAAM,WAAW,0BAA0B;IACvC,OAAO,EAAE;QACL,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;KAC1D,CAAC;CACL;AAED,MAAM,WAAW,wBAAwB;IACrC,MAAM,EAAE,0BAA0B,CAAC;IACnC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6BxF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const CONFIG_WARNING_CLASS: {
|
|
2
|
+
readonly FILE_PARSE: "file-parse";
|
|
3
|
+
readonly FILE_IO: "file-io";
|
|
4
|
+
readonly INVALID_LEAF: "invalid-leaf";
|
|
5
|
+
};
|
|
6
|
+
export type ConfigWarningClass = (typeof CONFIG_WARNING_CLASS)[keyof typeof CONFIG_WARNING_CLASS];
|
|
7
|
+
export interface ConfigParseFailure {
|
|
8
|
+
warningClass: typeof CONFIG_WARNING_CLASS.FILE_PARSE;
|
|
9
|
+
source: "user" | "project";
|
|
10
|
+
path: string;
|
|
11
|
+
line: number;
|
|
12
|
+
column: number;
|
|
13
|
+
message: string;
|
|
14
|
+
recovered: boolean;
|
|
15
|
+
warning: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ConfigWarningDetail {
|
|
18
|
+
warningClass: ConfigWarningClass;
|
|
19
|
+
source?: "user" | "project";
|
|
20
|
+
path?: string;
|
|
21
|
+
line?: number;
|
|
22
|
+
column?: number;
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function formatConfigParseStatusLine(failure: ConfigParseFailure): string;
|
|
26
|
+
export declare function formatConfigParseNotice(failures: readonly ConfigParseFailure[]): string;
|
|
27
|
+
/** Claim parse-failure notices once for each runtime surface in this process. */
|
|
28
|
+
export declare function claimConfigParseFailuresOnce(surface: "opencode" | "pi", failures: readonly ConfigParseFailure[]): ConfigParseFailure[];
|
|
29
|
+
export declare function resetClaimedConfigParseFailuresForTesting(): void;
|
|
30
|
+
//# sourceMappingURL=config-diagnostics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-diagnostics.d.ts","sourceRoot":"","sources":["../../src/shared/config-diagnostics.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAElG,MAAM,WAAW,kBAAkB;IAC/B,YAAY,EAAE,OAAO,oBAAoB,CAAC,UAAU,CAAC;IACrD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAChC,YAAY,EAAE,kBAAkB,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAK/E;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GAAG,MAAM,CAKvF;AAQD,iFAAiF;AACjF,wBAAgB,4BAA4B,CACxC,OAAO,EAAE,UAAU,GAAG,IAAI,EAC1B,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GACxC,kBAAkB,EAAE,CAOtB;AAED,wBAAgB,yCAAyC,IAAI,IAAI,CAEhE"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ConfigParseFailure } from "./config-diagnostics";
|
|
2
|
+
export declare function buildOpenCodeConfigWarningBanner(warnings: readonly string[], parseFailures: readonly ConfigParseFailure[], allParseFailures?: readonly ConfigParseFailure[]): string;
|
|
3
|
+
//# sourceMappingURL=config-warning-surface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-warning-surface.d.ts","sourceRoot":"","sources":["../../src/shared/config-warning-surface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG/D,wBAAgB,gCAAgC,CAC5C,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,aAAa,EAAE,SAAS,kBAAkB,EAAE,EAC5C,gBAAgB,GAAE,SAAS,kBAAkB,EAAkB,GAChE,MAAM,CAoBR"}
|
|
@@ -6,16 +6,17 @@ export declare function getDataDir(): string;
|
|
|
6
6
|
* Layout:
|
|
7
7
|
* - OpenCode: `${os.tmpdir()}/opencode/magic-context/`
|
|
8
8
|
* - Pi: `${os.tmpdir()}/pi/magic-context/`
|
|
9
|
+
* - OMP: `${os.tmpdir()}/omp/magic-context/`
|
|
9
10
|
*
|
|
10
11
|
* Why a per-harness subtree of `os.tmpdir()`:
|
|
11
12
|
* 1. OpenCode Desktop runs as an Electron app with a permission sandbox.
|
|
12
13
|
* Writing to arbitrary tmp paths can trigger user-visible permission
|
|
13
14
|
* prompts; the `${tmpdir}/opencode/` subtree is allow-listed by
|
|
14
15
|
* OpenCode, so anything we put under it never asks for permission.
|
|
15
|
-
* 2. Splitting
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* 2. Splitting harnesses keeps their logs and historian dump directories
|
|
17
|
+
* cleanly separated. `doctor --issue` for each harness reports diagnostics
|
|
18
|
+
* from the matching subtree, so issue reports do not include another
|
|
19
|
+
* harness's log noise.
|
|
19
20
|
* 3. Pi has no permission sandbox, so the path choice is purely
|
|
20
21
|
* cosmetic for Pi — it just keeps the layout symmetric.
|
|
21
22
|
*
|
|
@@ -27,13 +28,13 @@ export declare function getDataDir(): string;
|
|
|
27
28
|
*/
|
|
28
29
|
export declare function getMagicContextTempDir(harness?: HarnessId): string;
|
|
29
30
|
/**
|
|
30
|
-
* Standard log file path the plugin writes to.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
31
|
+
* Standard log file path the plugin writes to. Each harness writes to a
|
|
32
|
+
* separate log under its own subtree so a machine running multiple harnesses
|
|
33
|
+
* does not interleave session traces.
|
|
33
34
|
*
|
|
34
35
|
* The plugin's buffered logger calls this on every flush rather than
|
|
35
|
-
* caching, so `setHarness(
|
|
36
|
-
*
|
|
36
|
+
* caching, so the boot-time `setHarness()` call is reflected in the next
|
|
37
|
+
* flush.
|
|
37
38
|
*/
|
|
38
39
|
export declare function getMagicContextLogPath(harness?: HarnessId): string;
|
|
39
40
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-path.d.ts","sourceRoot":"","sources":["../../src/shared/data-path.ts"],"names":[],"mappings":"AAGA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAEvD,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAED
|
|
1
|
+
{"version":3,"file":"data-path.d.ts","sourceRoot":"","sources":["../../src/shared/data-path.ts"],"names":[],"mappings":"AAGA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAEvD,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,SAAwB,GAAG,MAAM,CAEhF;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,SAAwB,GAAG,MAAM,CAOhF;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,GAAE,SAAwB,GAAG,MAAM,CAErF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEnE;AAKD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gCAAgC,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAkBxE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kCAAkC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE5E;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAE9C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,MAAM,yBAAyB,GAC/B,gBAAgB,GAChB,sBAAsB,GACtB,eAAe,GACf,kBAAkB,CAAC;AAEzB,MAAM,WAAW,6BAA6B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,yBAAyB,CAAC;CACrC;AAED,wBAAgB,gCAAgC,IAAI,6BAA6B,CAoChF;AAED,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AA+BD;;;;;;GAMG;AACH,wBAAgB,uCAAuC,IAAI,MAAM,CAEhE;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAEpC;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C"}
|
|
@@ -35,6 +35,13 @@
|
|
|
35
35
|
*
|
|
36
36
|
* OpenCode needs no translation because canonical is its native form.
|
|
37
37
|
*/
|
|
38
|
+
/**
|
|
39
|
+
* Canonicalize only for identity comparisons and cache policy; callers must not
|
|
40
|
+
* use the result as a provider spawn route. Provider-wide Pi/OMP aliases are
|
|
41
|
+
* normalized first; model-specific aliases stay explicit because GitHub Copilot
|
|
42
|
+
* also serves non-OpenAI model families.
|
|
43
|
+
*/
|
|
44
|
+
export declare function canonicalModelIdentity(ref: string): string;
|
|
38
45
|
/** Pi-native `provider/model` -> canonical (OpenCode). Identity when unmapped.
|
|
39
46
|
* Used by the Pi setup wizard so configs it writes stay OpenCode-readable. */
|
|
40
47
|
export declare function piModelRefToCanonical(ref: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness-provider-map.d.ts","sourceRoot":"","sources":["../../src/shared/harness-provider-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;
|
|
1
|
+
{"version":3,"file":"harness-provider-map.d.ts","sourceRoot":"","sources":["../../src/shared/harness-provider-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AA0CH;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG1D;AAED;+EAC+E;AAC/E,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;mFAEmF;AACnF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAUzD;AAED,sEAAsE;AACtE,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,sEAAsE;AACtE,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzD"}
|
|
@@ -9,6 +9,18 @@ export interface ParsedJsonSanitizerOptions {
|
|
|
9
9
|
* also removes an already-polluted prototype produced by third-party parsers.
|
|
10
10
|
*/
|
|
11
11
|
export declare function sanitizeParsedJson<T>(value: T, options?: ParsedJsonSanitizerOptions, path?: readonly (string | number)[]): T;
|
|
12
|
+
export interface JsoncParseIssue {
|
|
13
|
+
line: number;
|
|
14
|
+
column: number;
|
|
15
|
+
offset: number;
|
|
16
|
+
length: number;
|
|
17
|
+
message: string;
|
|
18
|
+
}
|
|
19
|
+
export interface RecoveringJsoncParseResult<T> {
|
|
20
|
+
value: T;
|
|
21
|
+
issues: JsoncParseIssue[];
|
|
22
|
+
}
|
|
23
|
+
export declare function parseJsoncRecovering<T = unknown>(content: string, options?: ParsedJsonSanitizerOptions): RecoveringJsoncParseResult<T>;
|
|
12
24
|
export declare function parseJsonc<T = unknown>(content: string, options?: ParsedJsonSanitizerOptions): T;
|
|
13
25
|
export declare function readJsoncFile<T = unknown>(filePath: string): T | null;
|
|
14
26
|
export declare function detectConfigFile(basePath: string): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonc-parser.d.ts","sourceRoot":"","sources":["../../src/shared/jsonc-parser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jsonc-parser.d.ts","sourceRoot":"","sources":["../../src/shared/jsonc-parser.ts"],"names":[],"mappings":"AAYA,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA6DzD;AA+CD,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,MAAM,WAAW,0BAA0B;IACvC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC;CAChE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAChC,KAAK,EAAE,CAAC,EACR,OAAO,GAAE,0BAA+B,EACxC,IAAI,GAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO,GACxC,CAAC,CA4BH;AAED,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC;IACzC,KAAK,EAAE,CAAC,CAAC;IACT,MAAM,EAAE,eAAe,EAAE,CAAC;CAC7B;AAwDD,wBAAgB,oBAAoB,CAAC,CAAC,GAAG,OAAO,EAC5C,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0BAA+B,GACzC,0BAA0B,CAAC,CAAC,CAAC,CAW/B;AAED,wBAAgB,UAAU,CAAC,CAAC,GAAG,OAAO,EAClC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0BAA+B,GACzC,CAAC,CAGH;AAED,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAMrE;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG;IAChD,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CAChB,CAaA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Set at plugin boot from `keep_subagents` config. */
|
|
2
2
|
export declare function setKeepSubagents(value: boolean): void;
|
|
3
|
-
/** True when
|
|
3
|
+
/** True when settled ordinary child sessions should be retained. */
|
|
4
4
|
export declare function shouldKeepSubagents(): boolean;
|
|
5
5
|
/** Test-only reset. Do NOT call from production paths. */
|
|
6
6
|
export declare function _resetKeepSubagentsForTesting(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keep-subagents.d.ts","sourceRoot":"","sources":["../../src/shared/keep-subagents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keep-subagents.d.ts","sourceRoot":"","sources":["../../src/shared/keep-subagents.ts"],"names":[],"mappings":"AAcA,uDAAuD;AACvD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAErD;AAED,oEAAoE;AACpE,wBAAgB,mBAAmB,IAAI,OAAO,CAE7C;AAED,0DAA0D;AAC1D,wBAAgB,6BAA6B,IAAI,IAAI,CAEpD"}
|