@cortexkit/opencode-magic-context 0.49.19 → 0.49.20
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/dist/auto-search-worker.js +48 -9
- package/dist/chunk-embedding-write-worker.js +30 -23
- package/dist/{compaction-marker-candidates-n4krhat4.js → compaction-marker-candidates-b2q30cft.js} +3 -3
- package/dist/compaction-marker-candidates-worker.js +2 -2
- package/dist/compartment-chunk-embedding-va090as0.js +65 -0
- package/dist/config/schema/magic-context.d.ts +6 -6
- package/dist/{conflict-warning-hook-4pmz879v.js → conflict-warning-hook-frp3z2wk.js} +9 -8
- package/dist/{context-j31m2dv7.js → context-mkece1db.js} +455 -134
- package/dist/{derive-budgets-zn7yzd2d.js → derive-budgets-pqybnx09.js} +2 -2
- package/dist/embedding-backfill-gy3p78py.js +25 -0
- package/dist/embedding-worker-process.js +2 -2
- package/dist/embedding-worker.js +5 -5
- package/dist/features/magic-context/chunk-embedding-writer.d.ts.map +1 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts +44 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-config.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts +2 -0
- package/dist/features/magic-context/dreamer/task-scheduler.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 +1 -0
- package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
- package/dist/features/magic-context/memory/local-embedding-pooling.d.ts +22 -0
- package/dist/features/magic-context/memory/local-embedding-pooling.d.ts.map +1 -0
- package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
- package/dist/features/magic-context/message-index.d.ts +2 -0
- package/dist/features/magic-context/message-index.d.ts.map +1 -1
- package/dist/features/magic-context/mural/compress-cues.d.ts.map +1 -1
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/search.d.ts +27 -0
- package/dist/features/magic-context/search.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +1 -0
- package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
- package/dist/features/magic-context/subagent-token-capture.d.ts +20 -0
- package/dist/features/magic-context/subagent-token-capture.d.ts.map +1 -1
- package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -1
- package/dist/{history-owner-xp3pngv7.js → history-owner-36wp3mkb.js} +2 -2
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-embed-session.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-hint.d.ts +7 -1
- package/dist/hooks/magic-context/auto-search-hint.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-worker-client.d.ts +33 -6
- package/dist/hooks/magic-context/auto-search-worker-client.d.ts.map +1 -1
- package/dist/hooks/magic-context/cache-busting-signals.d.ts +5 -2
- package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
- package/dist/hooks/magic-context/channel2-delivery.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-types.d.ts +5 -0
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-trigger.d.ts +1 -1
- package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
- package/dist/hooks/magic-context/diagnostic-log-state.d.ts +4 -0
- package/dist/hooks/magic-context/diagnostic-log-state.d.ts.map +1 -0
- package/dist/hooks/magic-context/execute-reclaim.d.ts +35 -0
- package/dist/hooks/magic-context/execute-reclaim.d.ts.map +1 -0
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts +1 -3
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/latest-assistant-turn.d.ts +8 -0
- package/dist/hooks/magic-context/latest-assistant-turn.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-recovery-fence.d.ts +5 -0
- package/dist/hooks/magic-context/lkg-recovery-fence.d.ts.map +1 -1
- package/dist/hooks/magic-context/nudge-evaluation-log.d.ts +3 -0
- package/dist/hooks/magic-context/nudge-evaluation-log.d.ts.map +1 -0
- package/dist/hooks/magic-context/pending-drop-eligibility.d.ts.map +1 -1
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts +4 -0
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts.map +1 -1
- package/dist/hooks/magic-context/system-date-refresh.d.ts +5 -5
- package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
- package/dist/hooks/magic-context/system-prompt-sticky-date.d.ts +10 -0
- package/dist/hooks/magic-context/system-prompt-sticky-date.d.ts.map +1 -0
- 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/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +21 -6
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-bjcnntmz.js → index-0wthn7fp.js} +468 -18
- package/dist/{index-kq82mtg0.js → index-11zf2wwc.js} +3 -3
- package/dist/{index-b5vqckbw.js → index-153r2q6z.js} +314 -127
- package/dist/{index-3h4dp9wb.js → index-1pefp8ar.js} +5 -5
- package/dist/{index-beht37jy.js → index-1zx2pa5d.js} +1 -1
- package/dist/{index-ze7mvk54.js → index-2yhtnfcf.js} +75 -57
- package/dist/{index-cf74k5ak.js → index-305y133n.js} +4 -4
- package/dist/{index-s734jcsr.js → index-35qc6606.js} +9 -3
- package/dist/{index-se4m2g6w.js → index-48stjd56.js} +105 -19
- package/dist/{index-4911rn0b.js → index-4n7w9rad.js} +6 -6
- package/dist/{index-kee4kn5j.js → index-4pnsgvfk.js} +1 -1
- package/dist/{v2/server-8cd2j99z.js → index-5kym00ag.js} +32 -13
- package/dist/{index-4s3t0nd0.js → index-616rsjrv.js} +2 -2
- package/dist/{index-jhghdnsm.js → index-67nyj0gy.js} +485 -202
- package/dist/{index-6x57ar45.js → index-adk2z5d8.js} +3 -3
- package/dist/{index-c5pytzne.js → index-b88dwwrh.js} +1 -1
- package/dist/{index-rr2bb45z.js → index-c4b76d4t.js} +2 -2
- package/dist/{index-nj7yykkx.js → index-c7phnbvk.js} +1 -1
- package/dist/index-cpjk5jd2.js +82 -0
- package/dist/{index-edmpdxcw.js → index-d6rp4dxh.js} +5 -5
- package/dist/{index-dxmq29t1.js → index-dc8hy95c.js} +69 -17
- package/dist/{index-j75v2476.js → index-h7tgn49j.js} +12 -15
- package/dist/{index-ke416mdc.js → index-j76ah6d7.js} +2 -2
- package/dist/{index-c1p88z1y.js → index-jfh3cktr.js} +4 -4
- package/dist/{index-a6mc0v4d.js → index-jmycsey7.js} +3 -3
- package/dist/{index-24fezq97.js → index-jr5na10t.js} +4 -4
- package/dist/{index-s74zqahq.js → index-kc9pn495.js} +4 -4
- package/dist/{index-p5y3k4g7.js → index-nda0zgna.js} +2 -1
- package/dist/{index-jn12fvvh.js → index-neb2jaed.js} +3 -3
- package/dist/{index-63k48rv9.js → index-pnjwa6qa.js} +5 -5
- package/dist/{index-jrr131e0.js → index-rmd0069m.js} +11 -11
- package/dist/{index-y9f76s3f.js → index-rrv26qjz.js} +1 -1
- package/dist/{index-v10f1rjv.js → index-spwjbkc7.js} +1 -1
- package/dist/{index-k29z4aqh.js → index-t5pck3ss.js} +1 -1
- package/dist/{index-3esx8tkf.js → index-t7hx3qcb.js} +318 -104
- package/dist/{index-rpxdjkm0.js → index-v7r4td4c.js} +306 -59
- package/dist/{index-2vxtcb95.js → index-vkc1ca9p.js} +2 -2
- package/dist/{index-9zcsy3hh.js → index-x4k3f4mf.js} +17 -9
- package/dist/{index-bp5083x2.js → index-x9k3mqrf.js} +1 -1
- package/dist/{index-n37sebck.js → index-y4a3nhtk.js} +1 -1
- package/dist/index.js +52 -49
- package/dist/{logger-jm3sqqzr.js → logger-94kew5wm.js} +1 -1
- package/dist/{message-fts-rowid-map-17s0dfn4.js → message-fts-rowid-map-22tevnnj.js} +6 -5
- package/dist/{message-index-gtpqnj8w.js → message-index-5qxcz6h7.js} +16 -15
- package/dist/{message-index-bounded-zyc8h32y.js → message-index-bounded-n0m0t7tv.js} +16 -15
- package/dist/{message-time-backfill-73mmm76q.js → message-time-backfill-0myx7fz3.js} +3 -3
- package/dist/migration-worker.js +13 -12
- package/dist/{model-resolution-nx97z3x7.js → model-resolution-280gmqvd.js} +1 -1
- package/dist/plugin/embedding-bootstrap.d.ts +3 -1
- package/dist/plugin/embedding-bootstrap.d.ts.map +1 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/plugin/rpc-handlers.d.ts +8 -0
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/plugin/subagent-tool-policy.d.ts +9 -0
- package/dist/plugin/subagent-tool-policy.d.ts.map +1 -1
- package/dist/{project-embedding-registry-z74mhqkf.js → project-embedding-registry-s2pqgec9.js} +13 -12
- package/dist/raw-ordinal-warmup-worker.js +136 -101
- package/dist/{read-session-chunk-jjb48bt9.js → read-session-chunk-0a8vdyqp.js} +11 -10
- package/dist/{read-session-raw-rsc8c7qy.js → read-session-raw-y5cszf0b.js} +4 -3
- package/dist/recomp-orchestrator-61vyha9j.js +62 -0
- package/dist/{safe-notification-target-1szv1k5k.js → safe-notification-target-mkr9yzvr.js} +2 -2
- package/dist/{search-archive-6vm0e2f5.js → search-archive-8q9s49p5.js} +12 -11
- package/dist/{search-xsqk1bj4.js → search-v1y9ejws.js} +25 -24
- package/dist/{send-session-notification-6ve0e8p4.js → send-session-notification-0k6qzydk.js} +7 -6
- package/dist/shared/logger.d.ts.map +1 -1
- package/dist/shared/model-resolution.d.ts +2 -0
- package/dist/shared/model-resolution.d.ts.map +1 -1
- package/dist/shared/prompt-async-transport.d.ts +3 -0
- package/dist/shared/prompt-async-transport.d.ts.map +1 -1
- package/dist/shared/rpc-types.d.ts +7 -0
- package/dist/shared/rpc-types.d.ts.map +1 -1
- package/dist/shared/sqlite.d.ts +1 -1
- package/dist/shared/sqlite.d.ts.map +1 -1
- package/dist/shared/subagent-runner.d.ts +2 -0
- package/dist/shared/subagent-runner.d.ts.map +1 -1
- package/dist/shared/worker-shutdown.d.ts +68 -0
- package/dist/shared/worker-shutdown.d.ts.map +1 -0
- package/dist/shared/worker-shutdown.fixture.d.ts +2 -0
- package/dist/shared/worker-shutdown.fixture.d.ts.map +1 -0
- package/dist/{sqlite-zf72c52d.js → sqlite-1rpvw2rj.js} +1 -1
- package/dist/{storage-memory-y3qmy00r.js → storage-memory-nm7v82mj.js} +2 -2
- package/dist/{storage-tags-r7k9tjcv.js → storage-tags-r6nk29n4.js} +5 -5
- package/dist/{task-config-x3qmayd2.js → task-config-t6bpyka7.js} +2 -2
- package/dist/tools/ctx-search/tools.d.ts.map +1 -1
- package/dist/{transform-postprocess-phase-jj99r7z2.js → transform-postprocess-phase-vtrgb7m6.js} +34 -31
- package/dist/v2/auto-search-worker.js +48 -9
- package/dist/v2/chunk-embedding-write-worker.js +30 -23
- package/dist/v2/{compaction-marker-candidates-ebx3388k.js → compaction-marker-candidates-cfab70cs.js} +3 -3
- package/dist/v2/compaction-marker-candidates-worker.js +2 -2
- package/dist/v2/compartment-chunk-embedding-nbdqx1td.js +64 -0
- package/dist/v2/{context-y5yamxak.js → context-cc33tv2z.js} +1189 -386
- package/dist/v2/{derive-budgets-2zh4gm2c.js → derive-budgets-knf763tt.js} +3 -3
- package/dist/v2/embedding-backfill-yxv2h5mc.js +24 -0
- package/dist/v2/embedding-worker-process.js +2 -2
- package/dist/v2/embedding-worker.js +5 -5
- package/dist/v2/hidden-child-record.d.ts +2 -0
- package/dist/v2/hidden-child-record.d.ts.map +1 -1
- package/dist/v2/hidden-completion.d.ts +2 -0
- package/dist/v2/hidden-completion.d.ts.map +1 -1
- package/dist/v2/hidden-model-activity.d.ts +7 -0
- package/dist/v2/hidden-model-activity.d.ts.map +1 -0
- package/dist/v2/{history-owner-42e16w0n.js → history-owner-ad0crnrn.js} +2 -2
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/generate.d.ts +36 -1
- package/dist/v2/hooks/generate.d.ts.map +1 -1
- package/dist/v2/hooks/lkg-system.d.ts +35 -4
- package/dist/v2/hooks/lkg-system.d.ts.map +1 -1
- package/dist/v2/hooks/payload.d.ts +16 -1
- package/dist/v2/hooks/payload.d.ts.map +1 -1
- package/dist/v2/{logger-7qt02bnb.js → logger-p34mjtja.js} +1 -1
- package/dist/v2/{message-fts-rowid-map-wfx67gfd.js → message-fts-rowid-map-dg12wymk.js} +6 -5
- package/dist/v2/{message-index-bounded-spd8r7pj.js → message-index-bounded-f4e01xk0.js} +16 -15
- package/dist/v2/{message-index-8vz2pq76.js → message-index-ydzrp6y6.js} +16 -15
- package/dist/v2/{message-time-backfill-04t0km1z.js → message-time-backfill-ddh8n9gy.js} +3 -3
- package/dist/v2/migration-worker.js +13 -12
- package/dist/v2/{model-resolution-nx97z3x7.js → model-resolution-280gmqvd.js} +1 -1
- package/dist/v2/{project-embedding-registry-gnkj56xp.js → project-embedding-registry-deza9ksw.js} +13 -12
- package/dist/v2/raw-ordinal-warmup-worker.js +136 -101
- package/dist/v2/{read-session-chunk-cwkxrmns.js → read-session-chunk-8cxfagky.js} +11 -10
- package/dist/v2/{read-session-raw-yaegtjzh.js → read-session-raw-1nrrecvx.js} +4 -3
- package/dist/v2/recomp-orchestrator-47m4hv5g.js +61 -0
- package/dist/v2/{safe-notification-target-qg7n2s77.js → safe-notification-target-khnzg57c.js} +2 -2
- package/dist/v2/{search-archive-wve3tq1k.js → search-archive-e80cvc09.js} +12 -11
- package/dist/v2/{search-hwg7jfbj.js → search-fjz746zr.js} +25 -24
- package/dist/v2/{send-session-notification-3pxn658x.js → send-session-notification-nwvrv34d.js} +7 -6
- package/dist/v2/{server-8by8qfec.js → server-0epqaxhd.js} +75 -57
- package/dist/v2/{server-pwv4ezb0.js → server-168pb207.js} +1 -1
- package/dist/v2/{server-h0410h0v.js → server-1bw1wcbp.js} +1 -1
- package/dist/v2/{server-beht37jy.js → server-1zx2pa5d.js} +1 -1
- package/dist/v2/{server-a9xqj88f.js → server-230fnbws.js} +4 -4
- package/dist/v2/{server-tbe1femw.js → server-29qp8nz4.js} +1 -1
- package/dist/v2/{server-tgnbmwah.js → server-3mz2qh5a.js} +1 -1
- package/dist/v2/{server-hy3d3vsx.js → server-4nw4fqhr.js} +2 -2
- package/dist/v2/{server-45q69hkq.js → server-4sxjs6hn.js} +5 -5
- package/dist/v2/{server-34kwfsr4.js → server-53eh1r8r.js} +2 -2
- package/dist/v2/{server-xj136kt8.js → server-55rgxfrw.js} +9 -3
- package/dist/v2/{server-nj659894.js → server-5arr9ecn.js} +2 -2
- package/dist/{index-8cd2j99z.js → v2/server-5kym00ag.js} +32 -13
- package/dist/v2/{server-2ar62dyx.js → server-63fqdghs.js} +106 -20
- package/dist/v2/{server-f2xf5gcb.js → server-6495nmn9.js} +12 -15
- package/dist/v2/{server-qd11g795.js → server-92g7d776.js} +2 -1
- package/dist/v2/{server-xq7dfjke.js → server-9x0kmta4.js} +5 -5
- package/dist/v2/{server-27gq4mfz.js → server-a3dwxfgd.js} +4 -4
- package/dist/v2/{server-6tmj0s7j.js → server-af2pght7.js} +3 -3
- package/dist/v2/{server-1wy7b9de.js → server-br1x0tev.js} +3 -3
- package/dist/v2/{server-n1prf1g6.js → server-brj8j2gk.js} +2 -2
- package/dist/v2/{server-6vdzn1td.js → server-c7dxxsj7.js} +308 -61
- package/dist/v2/server-cpjk5jd2.js +82 -0
- package/dist/v2/{server-g3qma5c0.js → server-dj7tz4ph.js} +2 -2
- package/dist/v2/{server-9hx7g5jp.js → server-ej96a39v.js} +17 -9
- package/dist/v2/{server-6pmqg9m4.js → server-gyy4k6mf.js} +1 -1
- package/dist/v2/{server-bmymkx73.js → server-hqzyq8n4.js} +11 -11
- package/dist/v2/{server-h1v0pyxb.js → server-j4jnp9b5.js} +468 -18
- package/dist/v2/{server-da07v4xp.js → server-k3t06fxr.js} +1 -1
- package/dist/v2/{server-gsxjv2q2.js → server-m91f9m5s.js} +69 -17
- package/dist/v2/{server-rmygf5pn.js → server-ne8arh8t.js} +2 -2
- package/dist/v2/{server-hm38q7r0.js → server-vn2nwcv6.js} +5 -5
- package/dist/v2/{server-46neh5fa.js → server-wyawsa88.js} +314 -127
- package/dist/v2/{server-zzkj2fch.js → server-xsryvyf6.js} +4 -4
- package/dist/v2/{server-n37sebck.js → server-y4a3nhtk.js} +1 -1
- package/dist/v2/{server-d04vrx0j.js → server-ygtykank.js} +2 -2
- package/dist/v2/server.js +6 -6
- package/dist/v2/{sqlite-zf72c52d.js → sqlite-1rpvw2rj.js} +1 -1
- package/dist/v2/{storage-memory-y3qmy00r.js → storage-memory-nm7v82mj.js} +2 -2
- package/dist/v2/{storage-tags-3wdb8zph.js → storage-tags-ss08kj5r.js} +5 -5
- package/dist/v2/store-reader.d.ts +8 -0
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/{task-config-nvz8mapa.js → task-config-7md27rx8.js} +2 -2
- package/dist/v2/{wrapup-orchestrator-embdz8gj.js → wrapup-orchestrator-639whfhq.js} +32 -31
- package/dist/wrapup-orchestrator-mnvt2g8m.js +49 -0
- package/package.json +1 -1
- package/src/config/index.test.ts +28 -6
- package/src/shared/logger.test.ts +42 -1
- package/src/shared/logger.ts +11 -13
- package/src/shared/model-resolution.test.ts +67 -12
- package/src/shared/model-resolution.ts +43 -16
- package/src/shared/model-suggestion-retry.ts +1 -1
- package/src/shared/prompt-async-transport.ts +47 -3
- package/src/shared/rpc-types.ts +7 -0
- package/src/shared/sqlite-busy-budget-review.test.ts +6 -1
- package/src/shared/sqlite.ts +4 -2
- package/src/shared/subagent-runner.ts +2 -0
- package/src/shared/worker-shutdown-fence.test.ts +87 -0
- package/src/shared/worker-shutdown.fixture.ts +25 -0
- package/src/shared/worker-shutdown.test.ts +127 -0
- package/src/shared/worker-shutdown.ts +160 -0
- package/dist/embedding-backfill-fmz50tsy.js +0 -24
- package/dist/recomp-orchestrator-999jj4bc.js +0 -61
- package/dist/v2/embedding-backfill-7c7yr69y.js +0 -23
- package/dist/v2/recomp-orchestrator-f6m9jr7p.js +0 -60
- package/dist/wrapup-orchestrator-whhbjmaz.js +0 -48
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./index-g2q4htwp.js";
|
|
4
4
|
import {
|
|
5
5
|
log2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-h7tgn49j.js";
|
|
7
7
|
import {
|
|
8
8
|
inRootAsyncContext2
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-1zx2pa5d.js";
|
|
10
10
|
import {
|
|
11
11
|
projectDirectoryKey
|
|
12
12
|
} from "./index-knvkbfvh.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./index-pavzsdc6.js";
|
|
4
4
|
import {
|
|
5
5
|
sessionLog2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-h7tgn49j.js";
|
|
7
7
|
import {
|
|
8
8
|
UNKNOWN_FIT_RATIO,
|
|
9
9
|
resolveDecisionCalibration,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
TAG_SELECT_COLUMNS2,
|
|
24
24
|
getCandidateToolOwners2,
|
|
25
25
|
pickNearestPriorOwner2
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-305y133n.js";
|
|
27
27
|
import {
|
|
28
28
|
OMO_INTERNAL_INITIATOR_MARKER,
|
|
29
29
|
isSystemDirective,
|
|
@@ -41,13 +41,13 @@ import {
|
|
|
41
41
|
formatBlock,
|
|
42
42
|
compactTextForSummary,
|
|
43
43
|
mergeCommitHashes
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-b88dwwrh.js";
|
|
45
45
|
import {
|
|
46
46
|
prepareCachedStatement2
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-1zx2pa5d.js";
|
|
48
48
|
import {
|
|
49
49
|
stableStringify
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-x9k3mqrf.js";
|
|
51
51
|
import {
|
|
52
52
|
renderToolTemplate,
|
|
53
53
|
resolveModelConfigValue,
|
|
@@ -69,25 +69,25 @@ import {
|
|
|
69
69
|
readRawSeedTailFromDb2,
|
|
70
70
|
readRawSessionBoundaryEndpointsFromDb2,
|
|
71
71
|
prewarmRawSessionOrdinalsForDb
|
|
72
|
-
} from "./index-
|
|
72
|
+
} from "./index-35qc6606.js";
|
|
73
73
|
import {
|
|
74
74
|
openCodeDbExists,
|
|
75
75
|
withReadOnlySessionDb,
|
|
76
76
|
getRawSessionMessageCountFromDb,
|
|
77
77
|
getMessageTimesFromOpenCodeDb
|
|
78
|
-
} from "./index-
|
|
78
|
+
} from "./index-11zf2wwc.js";
|
|
79
79
|
import {
|
|
80
80
|
getToolDefinitionMeasurementSignature,
|
|
81
81
|
getLargestMeasuredToolDefinitionTokens,
|
|
82
82
|
getMeasuredToolDefinitionTokens
|
|
83
|
-
} from "./index-
|
|
83
|
+
} from "./index-j76ah6d7.js";
|
|
84
84
|
import {
|
|
85
85
|
canonicalModelIdentity,
|
|
86
86
|
piModelRefToCanonical
|
|
87
87
|
} from "./index-avwt563y.js";
|
|
88
88
|
import {
|
|
89
89
|
logSlowWriteTransaction
|
|
90
|
-
} from "./index-
|
|
90
|
+
} from "./index-t5pck3ss.js";
|
|
91
91
|
|
|
92
92
|
// src/shared/hidden-zen-read.ts
|
|
93
93
|
function isToolFreeHiddenAgent(agent) {
|
|
@@ -3944,6 +3944,13 @@ function getCompactionMarkerHealth(db, sessionId, now = Date.now()) {
|
|
|
3944
3944
|
pendingSinceMs: firstFailedAt
|
|
3945
3945
|
};
|
|
3946
3946
|
}
|
|
3947
|
+
function executeReclaimFromReplay(raw) {
|
|
3948
|
+
try {
|
|
3949
|
+
return parseReplayDocument(raw).executeReclaim;
|
|
3950
|
+
} catch {
|
|
3951
|
+
return;
|
|
3952
|
+
}
|
|
3953
|
+
}
|
|
3947
3954
|
function loadPostprocessReplaySnapshot(db, sessionId) {
|
|
3948
3955
|
const row = db.prepare(`SELECT stale_reduce_stripped_ids, processed_image_stripped_ids,
|
|
3949
3956
|
stripped_placeholder_ids, note_nudge_anchors,
|
|
@@ -3958,6 +3965,7 @@ function loadPostprocessReplaySnapshot(db, sessionId) {
|
|
|
3958
3965
|
const todoPermissionDenied = row?.todo_permission_denied === 1 ? true : row?.todo_permission_denied === 0 ? false : null;
|
|
3959
3966
|
const thinkingBindingRecoveryTarget = row?.thinking_binding_recovery_target;
|
|
3960
3967
|
return {
|
|
3968
|
+
executeReclaim: executeReclaimFromReplay(row?.trailing_blank_decisions),
|
|
3961
3969
|
staleReduceStrippedIds: new Set(parseStrippedBlob(row?.stale_reduce_stripped_ids)),
|
|
3962
3970
|
processedImageStrippedIds: new Set(parseProcessedImageMarkers(row?.processed_image_stripped_ids).keys()),
|
|
3963
3971
|
processedImageMarkers: parseProcessedImageMarkers(row?.processed_image_stripped_ids),
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
detectOverflow,
|
|
29
29
|
isAnthropicFamilyRoute,
|
|
30
30
|
readRawSessionMessages2
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-x4k3f4mf.js";
|
|
32
32
|
import {
|
|
33
33
|
setHarness2
|
|
34
34
|
} from "./index-pavzsdc6.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
log2,
|
|
45
45
|
sessionLog2,
|
|
46
46
|
flushLogger2
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-h7tgn49j.js";
|
|
48
48
|
import {
|
|
49
49
|
withContentLanguageDirective,
|
|
50
50
|
string,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
checkCompactionMarkerConsistency,
|
|
98
98
|
clearInjectionCache,
|
|
99
99
|
clearNoteNudgeTriggerOnly
|
|
100
|
-
} from "./index-
|
|
100
|
+
} from "./index-v7r4td4c.js";
|
|
101
101
|
import"./index-sd3egckz.js";
|
|
102
102
|
import {
|
|
103
103
|
hasTrustedAbsoluteWall,
|
|
@@ -107,13 +107,13 @@ import {
|
|
|
107
107
|
deriveHistorianChunkTokens2,
|
|
108
108
|
resolveKnownHistorianContextLimit2,
|
|
109
109
|
resolveHistorianContextLimit2
|
|
110
|
-
} from "./index-
|
|
110
|
+
} from "./index-spwjbkc7.js";
|
|
111
111
|
import {
|
|
112
112
|
buildDreamTaskRuntimeConfigs2,
|
|
113
113
|
userMemoryCollectionEnabled2,
|
|
114
114
|
userObservationCollectionEnabled2,
|
|
115
115
|
userObservationsRequested2
|
|
116
|
-
} from "./index-
|
|
116
|
+
} from "./index-nda0zgna.js";
|
|
117
117
|
import {
|
|
118
118
|
logConfigDependencyNotesOnce,
|
|
119
119
|
openOpenCodeDb,
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
parameterDescriptionsFor,
|
|
186
186
|
MagicContextRpcServer,
|
|
187
187
|
applyHiddenSubagentTemperature
|
|
188
|
-
} from "./index-
|
|
188
|
+
} from "./index-t7hx3qcb.js";
|
|
189
189
|
import {
|
|
190
190
|
resolveOpenCodeDbPath,
|
|
191
191
|
openCodeDbPathExists,
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
} from "./index-58e3y90n.js";
|
|
195
195
|
import {
|
|
196
196
|
inRootAsyncContext2
|
|
197
|
-
} from "./index-
|
|
197
|
+
} from "./index-1zx2pa5d.js";
|
|
198
198
|
import {
|
|
199
199
|
formatFailClosedBlockingMessage,
|
|
200
200
|
createFailClosedController,
|
|
@@ -209,7 +209,7 @@ import {
|
|
|
209
209
|
openDatabaseAsync,
|
|
210
210
|
isDatabasePersisted,
|
|
211
211
|
getDatabasePersistenceError
|
|
212
|
-
} from "./index-
|
|
212
|
+
} from "./index-rmd0069m.js";
|
|
213
213
|
import {
|
|
214
214
|
setHomeProjectPermission,
|
|
215
215
|
ProjectIdentityError,
|
|
@@ -220,98 +220,99 @@ import {
|
|
|
220
220
|
beginBootQuietPeriod,
|
|
221
221
|
bootQuietRemainingMs,
|
|
222
222
|
scheduleAfterBootQuiet
|
|
223
|
-
} from "./index-
|
|
223
|
+
} from "./index-vkc1ca9p.js";
|
|
224
224
|
import {
|
|
225
225
|
deleteTemporalDecision
|
|
226
|
-
} from "./index-
|
|
226
|
+
} from "./index-x9k3mqrf.js";
|
|
227
227
|
import {
|
|
228
228
|
BoundedSessionMap,
|
|
229
229
|
observeSessionActivity,
|
|
230
230
|
backfillSessionActivity,
|
|
231
231
|
deleteIndexedMessage2
|
|
232
|
-
} from "./index-
|
|
232
|
+
} from "./index-48stjd56.js";
|
|
233
233
|
import {
|
|
234
234
|
recordSessionProjectIdentity
|
|
235
|
-
} from "./index-
|
|
236
|
-
import"./index-
|
|
235
|
+
} from "./index-c4b76d4t.js";
|
|
236
|
+
import"./index-c7phnbvk.js";
|
|
237
237
|
import"./index-fb3zxn06.js";
|
|
238
238
|
import {
|
|
239
239
|
registerExitAbort,
|
|
240
240
|
unregisterExitAbort
|
|
241
241
|
} from "./index-v0p37hm2.js";
|
|
242
|
+
import"./index-cpjk5jd2.js";
|
|
242
243
|
import {
|
|
243
244
|
forgetRawSessionOrdinalWatermark2
|
|
244
|
-
} from "./index-
|
|
245
|
-
import"./index-
|
|
246
|
-
import"./index-
|
|
245
|
+
} from "./index-35qc6606.js";
|
|
246
|
+
import"./index-jmycsey7.js";
|
|
247
|
+
import"./index-pnjwa6qa.js";
|
|
247
248
|
import"./index-fr0wbhdn.js";
|
|
248
249
|
import {
|
|
249
250
|
preloadTokenizer
|
|
250
|
-
} from "./index-
|
|
251
|
+
} from "./index-b88dwwrh.js";
|
|
251
252
|
import {
|
|
252
253
|
getCurrentToolSetHash,
|
|
253
254
|
recordToolDefinition
|
|
254
|
-
} from "./index-
|
|
255
|
-
import"./index-
|
|
255
|
+
} from "./index-j76ah6d7.js";
|
|
256
|
+
import"./index-adk2z5d8.js";
|
|
256
257
|
import {
|
|
257
258
|
getDefaultSubcConnectionFile,
|
|
258
259
|
SubcModuleTransport
|
|
259
|
-
} from "./index-
|
|
260
|
+
} from "./index-dc8hy95c.js";
|
|
260
261
|
import"./index-qt1qqasc.js";
|
|
261
|
-
import"./index-
|
|
262
|
+
import"./index-rrv26qjz.js";
|
|
262
263
|
import {
|
|
263
264
|
observeOpenCodeTurnEvent,
|
|
264
265
|
clearTrackedOpenCodeSession,
|
|
265
266
|
findLastAssistantModelFromOpenCodeDb
|
|
266
|
-
} from "./index-
|
|
267
|
+
} from "./index-11zf2wwc.js";
|
|
267
268
|
import {
|
|
268
269
|
sendCommandResult2,
|
|
269
270
|
sendStatusNotification2
|
|
270
|
-
} from "./index-
|
|
271
|
+
} from "./index-kc9pn495.js";
|
|
271
272
|
import {
|
|
272
273
|
detectConflicts,
|
|
273
274
|
resolveCompactionForBoot
|
|
274
|
-
} from "./index-
|
|
275
|
+
} from "./index-4pnsgvfk.js";
|
|
275
276
|
import {
|
|
276
277
|
sendConflictWarning2,
|
|
277
278
|
cleanupConflictWarnings2
|
|
278
|
-
} from "./index-
|
|
279
|
+
} from "./index-neb2jaed.js";
|
|
279
280
|
import"./index-1zx87sdm.js";
|
|
280
281
|
import {
|
|
281
282
|
stripPersistedAssistantText,
|
|
282
283
|
deleteTagsByMessageId2,
|
|
283
284
|
getMaxTagNumberBySession2
|
|
284
|
-
} from "./index-
|
|
285
|
+
} from "./index-305y133n.js";
|
|
285
286
|
import {
|
|
286
287
|
resolveHistorianModel2,
|
|
287
288
|
resolveOpenCodeAgentOverrides2,
|
|
288
289
|
resolveHistorianAgentOverrides2
|
|
289
|
-
} from "./index-
|
|
290
|
+
} from "./index-5kym00ag.js";
|
|
290
291
|
import {
|
|
291
292
|
getEmbedDrainUiStatus,
|
|
292
293
|
clearEmbedSessionState,
|
|
293
294
|
getEmbeddingCoverageStatus2
|
|
294
|
-
} from "./index-
|
|
295
|
-
import"./index-
|
|
296
|
-
import"./index-
|
|
295
|
+
} from "./index-2yhtnfcf.js";
|
|
296
|
+
import"./index-153r2q6z.js";
|
|
297
|
+
import"./index-1pefp8ar.js";
|
|
297
298
|
import {
|
|
298
299
|
pushNotification2
|
|
299
300
|
} from "./index-x8a7jmkh.js";
|
|
300
|
-
import"./index-
|
|
301
|
+
import"./index-0wthn7fp.js";
|
|
301
302
|
import"./index-4dhv7mqz.js";
|
|
302
|
-
import"./index-
|
|
303
|
-
import"./index-
|
|
304
|
-
import"./index-
|
|
303
|
+
import"./index-jr5na10t.js";
|
|
304
|
+
import"./index-y4a3nhtk.js";
|
|
305
|
+
import"./index-616rsjrv.js";
|
|
305
306
|
import {
|
|
306
307
|
createTagger,
|
|
307
308
|
cavemanWordRulesForLanguage,
|
|
308
309
|
setCtxReduceRegisteredGlobally,
|
|
309
310
|
clearToolPermissionDenied,
|
|
310
311
|
resetDegradedCacheCount2
|
|
311
|
-
} from "./index-
|
|
312
|
+
} from "./index-67nyj0gy.js";
|
|
312
313
|
import {
|
|
313
314
|
runManagedRecomp2
|
|
314
|
-
} from "./index-
|
|
315
|
+
} from "./index-jfh3cktr.js";
|
|
315
316
|
import {
|
|
316
317
|
isValidSemver,
|
|
317
318
|
compareSemverCore
|
|
@@ -319,9 +320,9 @@ import {
|
|
|
319
320
|
import"./index-fmsr7v69.js";
|
|
320
321
|
import {
|
|
321
322
|
runManagedWrapup2
|
|
322
|
-
} from "./index-
|
|
323
|
+
} from "./index-4n7w9rad.js";
|
|
323
324
|
import"./index-kaqs6h31.js";
|
|
324
|
-
import"./index-
|
|
325
|
+
import"./index-d6rp4dxh.js";
|
|
325
326
|
import {
|
|
326
327
|
isDreamerRunnable,
|
|
327
328
|
isSmartNoteSurfaceAvailable,
|
|
@@ -341,7 +342,7 @@ import {
|
|
|
341
342
|
import {
|
|
342
343
|
closeQuietly
|
|
343
344
|
} from "./index-8ajstryz.js";
|
|
344
|
-
import"./index-
|
|
345
|
+
import"./index-t5pck3ss.js";
|
|
345
346
|
import {
|
|
346
347
|
setStoragePrivatePermissionEnforcement,
|
|
347
348
|
ensureStorageDirectorySync,
|
|
@@ -8189,7 +8190,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8189
8190
|
// package.json
|
|
8190
8191
|
var package_default = {
|
|
8191
8192
|
name: "@cortexkit/opencode-magic-context",
|
|
8192
|
-
version: "0.49.
|
|
8193
|
+
version: "0.49.20",
|
|
8193
8194
|
type: "module",
|
|
8194
8195
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8195
8196
|
main: "dist/index.js",
|
|
@@ -10451,7 +10452,9 @@ function createMagicContextHook(deps) {
|
|
|
10451
10452
|
db,
|
|
10452
10453
|
projectIdentity: identity,
|
|
10453
10454
|
ensureRegistered: async () => {
|
|
10454
|
-
await ensureProjectRegisteredFromOpenCodeDirectory(directory, db
|
|
10455
|
+
await ensureProjectRegisteredFromOpenCodeDirectory(directory, db, {
|
|
10456
|
+
preflightLocalPooling: true
|
|
10457
|
+
});
|
|
10455
10458
|
maybeSendProjectIdentitySessionWarning(sessionId, directory);
|
|
10456
10459
|
}
|
|
10457
10460
|
}, sessionId);
|
|
@@ -12039,7 +12042,7 @@ async function setup(context) {
|
|
|
12039
12042
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12040
12043
|
log2(`[magic-context] Magic Context storage is at ${storageDir}, outside the folder Engram backs up (~/.local/share/cortexkit/magic-context). It is not included in CortexKit backups.`);
|
|
12041
12044
|
}
|
|
12042
|
-
const { registerContext } = await import("./context-
|
|
12045
|
+
const { registerContext } = await import("./context-mkece1db.js");
|
|
12043
12046
|
setHarness2("opencode2");
|
|
12044
12047
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12045
12048
|
const duties = await registerContext(context);
|
|
@@ -12118,7 +12121,7 @@ var server = async (ctx) => {
|
|
|
12118
12121
|
if (hasBannerEntries)
|
|
12119
12122
|
setTimeout(async () => {
|
|
12120
12123
|
try {
|
|
12121
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12124
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-0k6qzydk.js"));
|
|
12122
12125
|
const clientWithSessions = ctx.client;
|
|
12123
12126
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12124
12127
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12136,7 +12139,7 @@ var server = async (ctx) => {
|
|
|
12136
12139
|
log2(`[magic-context] opencode_db_missing path=${openCodeDbResolution.path} source=${openCodeDbResolution.source}`);
|
|
12137
12140
|
setTimeout(async () => {
|
|
12138
12141
|
try {
|
|
12139
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12142
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-0k6qzydk.js"));
|
|
12140
12143
|
const clientWithSessions = ctx.client;
|
|
12141
12144
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12142
12145
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12413,12 +12416,12 @@ var server = async (ctx) => {
|
|
|
12413
12416
|
{
|
|
12414
12417
|
const fence = getSchemaFenceRejection();
|
|
12415
12418
|
if (fence) {
|
|
12416
|
-
importPluginModule(() => import("./conflict-warning-hook-
|
|
12419
|
+
importPluginModule(() => import("./conflict-warning-hook-frp3z2wk.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
|
|
12417
12420
|
}
|
|
12418
12421
|
}
|
|
12419
12422
|
const serverUrl = ctx.serverUrl;
|
|
12420
12423
|
const serverUrlStr = serverUrl instanceof URL ? serverUrl.toString().replace(/\/$/, "") : typeof serverUrl === "string" ? serverUrl.replace(/\/$/, "") : undefined;
|
|
12421
|
-
importPluginModule(() => import("./send-session-notification-
|
|
12424
|
+
importPluginModule(() => import("./send-session-notification-0k6qzydk.js")).then(({ setNotificationServerUrl }) => {
|
|
12422
12425
|
setNotificationServerUrl(serverUrlStr);
|
|
12423
12426
|
}).catch((error) => log2("[magic-context] notification transport unavailable:", error));
|
|
12424
12427
|
if (conflictResult?.hasConflict) {
|
|
@@ -12441,7 +12444,7 @@ var server = async (ctx) => {
|
|
|
12441
12444
|
}) => {
|
|
12442
12445
|
if (!shouldShowAnnouncement())
|
|
12443
12446
|
return;
|
|
12444
|
-
return importPluginModule(() => import("./conflict-warning-hook-
|
|
12447
|
+
return importPluginModule(() => import("./conflict-warning-hook-frp3z2wk.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
|
|
12445
12448
|
}).catch(() => {});
|
|
12446
12449
|
}, 8000);
|
|
12447
12450
|
}
|
|
@@ -12515,8 +12518,8 @@ var server = async (ctx) => {
|
|
|
12515
12518
|
tryReopenStorage,
|
|
12516
12519
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12517
12520
|
onStorageBusyRefusal: async (sessionId, message) => {
|
|
12518
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12519
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
12521
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-0k6qzydk.js"));
|
|
12522
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-vtrgb7m6.js"));
|
|
12520
12523
|
await sendStatusNotification(ctx.client, sessionId, message, {
|
|
12521
12524
|
toastDurationMs: 15000
|
|
12522
12525
|
});
|
|
@@ -6,14 +6,15 @@ import {
|
|
|
6
6
|
messageFtsOrdinalRangeIsMapped2,
|
|
7
7
|
getMessageFtsRowidMapBackfillProgress2,
|
|
8
8
|
deleteUnmappedMessageFtsRows2
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-jmycsey7.js";
|
|
10
|
+
import"./index-35qc6606.js";
|
|
11
11
|
import"./index-v0p37hm2.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
import"./index-t5pck3ss.js";
|
|
13
|
+
import"./index-1zx2pa5d.js";
|
|
14
|
+
import"./index-h7tgn49j.js";
|
|
15
15
|
import"./index-g2q4htwp.js";
|
|
16
16
|
import"./index-pavzsdc6.js";
|
|
17
|
+
import"./index-cpjk5jd2.js";
|
|
17
18
|
export {
|
|
18
19
|
deleteUnmappedMessageFtsRows2 as deleteUnmappedMessageFtsRows,
|
|
19
20
|
getMessageFtsRowidMapBackfillProgress2 as getMessageFtsRowidMapBackfillProgress,
|
|
@@ -17,27 +17,28 @@ import {
|
|
|
17
17
|
indexMessagesAfterOrdinal2,
|
|
18
18
|
indexSourcesAfterOrdinal2,
|
|
19
19
|
sweepOrphanedOpenCodeMessageIndexesCooperatively2
|
|
20
|
-
} from "./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
20
|
+
} from "./index-48stjd56.js";
|
|
21
|
+
import"./index-x4k3f4mf.js";
|
|
22
|
+
import"./index-305y133n.js";
|
|
23
23
|
import"./index-1zx87sdm.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-11zf2wwc.js";
|
|
25
25
|
import"./index-wgypt3cs.js";
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
26
|
+
import"./index-153r2q6z.js";
|
|
27
|
+
import"./index-adk2z5d8.js";
|
|
28
|
+
import"./index-jmycsey7.js";
|
|
29
|
+
import"./index-c7phnbvk.js";
|
|
30
|
+
import"./index-j76ah6d7.js";
|
|
31
|
+
import"./index-x9k3mqrf.js";
|
|
32
32
|
import"./index-58e3y90n.js";
|
|
33
|
-
import"./index-
|
|
33
|
+
import"./index-35qc6606.js";
|
|
34
34
|
import"./index-v0p37hm2.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
35
|
+
import"./index-t5pck3ss.js";
|
|
36
|
+
import"./index-b88dwwrh.js";
|
|
37
|
+
import"./index-1zx2pa5d.js";
|
|
38
|
+
import"./index-h7tgn49j.js";
|
|
39
39
|
import"./index-g2q4htwp.js";
|
|
40
40
|
import"./index-pavzsdc6.js";
|
|
41
|
+
import"./index-cpjk5jd2.js";
|
|
41
42
|
export {
|
|
42
43
|
MESSAGE_INDEX_MAX_FTS_BYTES2 as MESSAGE_INDEX_MAX_FTS_BYTES,
|
|
43
44
|
clearIndexedMessages2 as clearIndexedMessages,
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
withSqliteBackgroundWriter2,
|
|
3
3
|
withIndexChunk2,
|
|
4
4
|
yieldIndexChunk2
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-1zx2pa5d.js";
|
|
6
6
|
import"./index-pavzsdc6.js";
|
|
7
7
|
import"./index-g2q4htwp.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-h7tgn49j.js";
|
|
9
|
+
import"./index-c7phnbvk.js";
|
|
10
10
|
import {
|
|
11
11
|
MESSAGE_INDEX_MAX_FTS_BYTES2,
|
|
12
12
|
messageIndexSkipKey2,
|
|
@@ -14,22 +14,23 @@ import {
|
|
|
14
14
|
markMessageIndexDirty2,
|
|
15
15
|
getIndexableContent2,
|
|
16
16
|
indexSingleMessage2
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-48stjd56.js";
|
|
18
18
|
import"./index-1zx87sdm.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
19
|
+
import"./index-305y133n.js";
|
|
20
|
+
import"./index-b88dwwrh.js";
|
|
21
|
+
import"./index-x9k3mqrf.js";
|
|
22
22
|
import"./index-wgypt3cs.js";
|
|
23
23
|
import"./index-v0p37hm2.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-cpjk5jd2.js";
|
|
25
|
+
import"./index-35qc6606.js";
|
|
25
26
|
import"./index-58e3y90n.js";
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
27
|
+
import"./index-11zf2wwc.js";
|
|
28
|
+
import"./index-x4k3f4mf.js";
|
|
29
|
+
import"./index-j76ah6d7.js";
|
|
30
|
+
import"./index-jmycsey7.js";
|
|
31
|
+
import"./index-adk2z5d8.js";
|
|
32
|
+
import"./index-153r2q6z.js";
|
|
33
|
+
import"./index-t5pck3ss.js";
|
|
33
34
|
|
|
34
35
|
// src/features/magic-context/message-index-bounded.ts
|
|
35
36
|
import { createHash } from "node:crypto";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withSqliteBackgroundWriter2,
|
|
3
3
|
withoutSqliteTransformPass2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-1zx2pa5d.js";
|
|
5
5
|
import"./index-pavzsdc6.js";
|
|
6
6
|
import"./index-g2q4htwp.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-h7tgn49j.js";
|
|
8
8
|
import {
|
|
9
9
|
logSlowWriteTransaction
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-t5pck3ss.js";
|
|
11
11
|
|
|
12
12
|
// src/features/magic-context/message-time-backfill.ts
|
|
13
13
|
var MESSAGE_TIME_BACKFILL_BATCH_SIZE = 500;
|
package/dist/migration-worker.js
CHANGED
|
@@ -3,32 +3,33 @@ import"./index-g2q4htwp.js";
|
|
|
3
3
|
import {
|
|
4
4
|
setLogLineForwarder2,
|
|
5
5
|
log2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-h7tgn49j.js";
|
|
7
7
|
import {
|
|
8
8
|
Database2
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-1zx2pa5d.js";
|
|
10
10
|
import"./index-fr0wbhdn.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrationsWithRetry
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
} from "./index-pnjwa6qa.js";
|
|
14
|
+
import"./index-x9k3mqrf.js";
|
|
15
15
|
import"./index-58e3y90n.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-vkc1ca9p.js";
|
|
17
|
+
import"./index-c7phnbvk.js";
|
|
18
18
|
import"./index-fb3zxn06.js";
|
|
19
19
|
import {
|
|
20
20
|
setSqlitePragmaConfig,
|
|
21
21
|
initializeDatabase
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-rmd0069m.js";
|
|
23
23
|
import"./index-v0p37hm2.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
24
|
+
import"./index-cpjk5jd2.js";
|
|
25
|
+
import"./index-35qc6606.js";
|
|
26
|
+
import"./index-jmycsey7.js";
|
|
27
|
+
import"./index-b88dwwrh.js";
|
|
28
|
+
import"./index-j76ah6d7.js";
|
|
28
29
|
import {
|
|
29
30
|
closeQuietly
|
|
30
31
|
} from "./index-8ajstryz.js";
|
|
31
|
-
import"./index-
|
|
32
|
+
import"./index-t5pck3ss.js";
|
|
32
33
|
|
|
33
34
|
// src/features/magic-context/migration-worker.ts
|
|
34
35
|
import { parentPort, workerData } from "node:worker_threads";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
resolveDreamerTaskModel2,
|
|
6
6
|
resolveOpenCodeAgentOverrides2,
|
|
7
7
|
resolveHistorianAgentOverrides2
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-5kym00ag.js";
|
|
9
9
|
export {
|
|
10
10
|
normalizeModelEntry2 as normalizeModelEntry,
|
|
11
11
|
resolveDreamerTaskModel2 as resolveDreamerTaskModel,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { Database } from "../shared/sqlite";
|
|
2
|
-
export declare function ensureProjectRegisteredFromOpenCodeDirectory(directory: string, db: Database
|
|
2
|
+
export declare function ensureProjectRegisteredFromOpenCodeDirectory(directory: string, db: Database, options?: {
|
|
3
|
+
preflightLocalPooling?: boolean;
|
|
4
|
+
}): Promise<void>;
|
|
3
5
|
//# sourceMappingURL=embedding-bootstrap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedding-bootstrap.d.ts","sourceRoot":"","sources":["../../src/plugin/embedding-bootstrap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"embedding-bootstrap.d.ts","sourceRoot":"","sources":["../../src/plugin/embedding-bootstrap.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA0CjD,wBAAsB,4CAA4C,CAC9D,SAAS,EAAE,MAAM,EACjB,EAAE,EAAE,QAAQ,EACZ,OAAO,GAAE;IAAE,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAAO,GAClD,OAAO,CAAC,IAAI,CAAC,CA+Cf"}
|
|
@@ -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;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAKnE,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;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,wBAAwB;;;;;;;;;;;;;mBAa3D,CAAC;aACX,CAAC;aAA2B,CAAC;eAA6B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;2BAiH44sC,CAAC;;;;eAA8iB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA3GnguC;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC9D,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;;;;;;;;;;;;;
|
|
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;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAKnE,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;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,wBAAwB;;;;;;;;;;;;;mBAa3D,CAAC;aACX,CAAC;aAA2B,CAAC;eAA6B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;2BAiH44sC,CAAC;;;;eAA8iB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA3GnguC;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC9D,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC/C;;;;;;;;;;;;;qBAkG8uJ,CAAC;8BAAwC,CAAC;iBAA8C,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;;;;;;;;qBAAzlG,CAAC;mBAA6B,CAAC;iBAA2B,CAAC;iBAA2B,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;iBAA2D,CAAC;;oBAA4D,CAAC;uBAAiC,CAAC;yBAAoC,CAAC;;;;;;0BAAs45C,CAAC;;;;;;;;;;;;;;;;EAvD989C;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAChD,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC9D,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;;;;;;;;;;;;;qBA6C8uJ,CAAC;8BAAwC,CAAC;iBAA8C,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;;;;;;;;qBAAzlG,CAAC;mBAA6B,CAAC;iBAA2B,CAAC;iBAA2B,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;iBAA2D,CAAC;;oBAA4D,CAAC;uBAAiC,CAAC;yBAAoC,CAAC;;;;;;0BAAs45C,CAAC;;;;;;;;;;;;;;;;GAD989C"}
|
|
@@ -100,6 +100,14 @@ interface RuntimeDebugMemoryHolders {
|
|
|
100
100
|
estimatedBytes: number;
|
|
101
101
|
}>;
|
|
102
102
|
};
|
|
103
|
+
/** OpenCode 2's copies of each session's last served request, kept for side questions. */
|
|
104
|
+
generateReplay?: {
|
|
105
|
+
totalBytes: number;
|
|
106
|
+
sessions: Array<{
|
|
107
|
+
sessionId: string;
|
|
108
|
+
bytes: number;
|
|
109
|
+
}>;
|
|
110
|
+
};
|
|
103
111
|
}
|
|
104
112
|
export declare function isDebugRpcEnabled(config: Pick<MagicContextConfig, "debug_rpc">, env?: NodeJS.ProcessEnv): boolean;
|
|
105
113
|
export declare function buildDebugMemoryUsage(runtimeHolders?: RuntimeDebugMemoryHolders): DebugMemoryUsageResponse;
|