@cortexkit/opencode-magic-context 0.49.18 → 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 +53 -10
- 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-m897gfp9.js → context-mkece1db.js} +460 -135
- 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/classify.d.ts +3 -0
- package/dist/features/magic-context/dreamer/classify.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts +11 -0
- package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/map-memories.d.ts +3 -0
- package/dist/features/magic-context/dreamer/map-memories.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/dreamer/verify.d.ts +3 -0
- package/dist/features/magic-context/dreamer/verify.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/migrations.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-clone.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +14 -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/auto-search-worker-evaluation.fixture.d.ts +2 -0
- package/dist/hooks/magic-context/auto-search-worker-evaluation.fixture.d.ts.map +1 -0
- 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/lkg-recovery-prefix.d.ts +13 -0
- package/dist/hooks/magic-context/lkg-recovery-prefix.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 +15 -2
- package/dist/hooks/magic-context/system-date-refresh.d.ts.map +1 -1
- 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 +23 -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-v8awdgvd.js → index-1pefp8ar.js} +5 -5
- package/dist/{v2/server-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-x4njr8df.js → index-48stjd56.js} +105 -19
- package/dist/{index-24jbw52d.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-e4xv8890.js → index-67nyj0gy.js} +507 -210
- 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-6s5941tm.js → index-d6rp4dxh.js} +5 -5
- package/dist/{index-s7j8tvhv.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-r4nkrs05.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-qn7xstt2.js → index-pnjwa6qa.js} +6 -7
- package/dist/{index-fgncb0ng.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-936py2wm.js → index-t7hx3qcb.js} +361 -113
- package/dist/{index-s1ex9y6p.js → index-v7r4td4c.js} +464 -79
- package/dist/{index-2vxtcb95.js → index-vkc1ca9p.js} +2 -2
- package/dist/{index-rmwykbbb.js → index-x4k3f4mf.js} +33 -10
- package/dist/{index-bp5083x2.js → index-x9k3mqrf.js} +1 -1
- package/dist/{index-n37sebck.js → index-y4a3nhtk.js} +1 -1
- package/dist/index.js +57 -50
- 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-66jv6fh4.js → message-index-5qxcz6h7.js} +16 -15
- package/dist/{message-index-bounded-n1frdn85.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/messages-transform.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/plugin/tool-registry.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-v06g3vka.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-4d53y23e.js → search-archive-8q9s49p5.js} +12 -11
- package/dist/{search-nkf271d4.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/model-suggestion-retry.d.ts +30 -1
- package/dist/shared/model-suggestion-retry.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-expand/rust-mode-tag.test-support.d.ts +15 -0
- package/dist/tools/ctx-expand/rust-mode-tag.test-support.d.ts.map +1 -0
- package/dist/tools/ctx-expand/tools.d.ts +11 -0
- package/dist/tools/ctx-expand/tools.d.ts.map +1 -1
- package/dist/tools/ctx-search/tools.d.ts.map +1 -1
- package/dist/{transform-postprocess-phase-zpgav0h7.js → transform-postprocess-phase-vtrgb7m6.js} +34 -31
- package/dist/v2/auto-search-worker.js +53 -10
- 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-f2xh7ba4.js → context-cc33tv2z.js} +1259 -404
- 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/hooks/tools.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-w3hfm29z.js → message-index-bounded-f4e01xk0.js} +16 -15
- package/dist/v2/{message-index-48f7hw7a.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-zpgmxwte.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-vv48s2aa.js → search-archive-e80cvc09.js} +12 -11
- package/dist/v2/{search-kza414f0.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/{index-beht37jy.js → v2/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-qv7f0hhe.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-2ehj0bw7.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-gpvay0xz.js → server-9x0kmta4.js} +6 -7
- 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-bfpda1tb.js → server-c7dxxsj7.js} +466 -81
- package/dist/v2/server-cpjk5jd2.js +82 -0
- package/dist/v2/{server-g3qma5c0.js → server-dj7tz4ph.js} +2 -2
- package/dist/v2/{server-xhab8jx8.js → server-ej96a39v.js} +33 -10
- package/dist/v2/{server-6pmqg9m4.js → server-gyy4k6mf.js} +1 -1
- package/dist/v2/{server-a2eqhkxr.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-1nyybqan.js → server-m91f9m5s.js} +69 -17
- package/dist/v2/{server-rmygf5pn.js → server-ne8arh8t.js} +2 -2
- package/dist/v2/{server-my7k4eds.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-psqz7yh0.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.test.ts +166 -0
- package/src/shared/model-suggestion-retry.ts +165 -14
- package/src/shared/prompt-async-transport.test.ts +107 -0
- package/src/shared/prompt-async-transport.ts +86 -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-ghpk2dtq.js +0 -61
- package/dist/v2/embedding-backfill-7c7yr69y.js +0 -23
- package/dist/v2/recomp-orchestrator-4vfxej9t.js +0 -60
- package/dist/wrapup-orchestrator-s9zc5b00.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) {
|
|
@@ -3712,6 +3712,21 @@ var THINKING_BINDING_STRIP_ORDER_END_MARKER = "binding_mismatch_order:end";
|
|
|
3712
3712
|
function thinkingBindingRecoveryFrozenId(messageId) {
|
|
3713
3713
|
return `${THINKING_BINDING_RECOVERY_FROZEN_PREFIX}${messageId}`;
|
|
3714
3714
|
}
|
|
3715
|
+
var COMPACTION_OFF_THINKING_FROZEN_PREFIX = "compaction_off_thinking:";
|
|
3716
|
+
function compactionOffThinkingFrozenId(messageId) {
|
|
3717
|
+
return `${COMPACTION_OFF_THINKING_FROZEN_PREFIX}${messageId}`;
|
|
3718
|
+
}
|
|
3719
|
+
function compactionOffFrozenThinkingIds(ledger) {
|
|
3720
|
+
const ids = new Set;
|
|
3721
|
+
for (const entry of ledger) {
|
|
3722
|
+
if (!entry.startsWith(COMPACTION_OFF_THINKING_FROZEN_PREFIX))
|
|
3723
|
+
continue;
|
|
3724
|
+
const id = entry.slice(COMPACTION_OFF_THINKING_FROZEN_PREFIX.length);
|
|
3725
|
+
if (id.length > 0)
|
|
3726
|
+
ids.add(id);
|
|
3727
|
+
}
|
|
3728
|
+
return ids;
|
|
3729
|
+
}
|
|
3715
3730
|
function getThinkingBindingRecoveryTarget(db, sessionId) {
|
|
3716
3731
|
const row = db.prepare("SELECT thinking_binding_recovery_target FROM session_meta WHERE session_id = ?").get(sessionId);
|
|
3717
3732
|
const target = row?.thinking_binding_recovery_target;
|
|
@@ -3929,6 +3944,13 @@ function getCompactionMarkerHealth(db, sessionId, now = Date.now()) {
|
|
|
3929
3944
|
pendingSinceMs: firstFailedAt
|
|
3930
3945
|
};
|
|
3931
3946
|
}
|
|
3947
|
+
function executeReclaimFromReplay(raw) {
|
|
3948
|
+
try {
|
|
3949
|
+
return parseReplayDocument(raw).executeReclaim;
|
|
3950
|
+
} catch {
|
|
3951
|
+
return;
|
|
3952
|
+
}
|
|
3953
|
+
}
|
|
3932
3954
|
function loadPostprocessReplaySnapshot(db, sessionId) {
|
|
3933
3955
|
const row = db.prepare(`SELECT stale_reduce_stripped_ids, processed_image_stripped_ids,
|
|
3934
3956
|
stripped_placeholder_ids, note_nudge_anchors,
|
|
@@ -3943,6 +3965,7 @@ function loadPostprocessReplaySnapshot(db, sessionId) {
|
|
|
3943
3965
|
const todoPermissionDenied = row?.todo_permission_denied === 1 ? true : row?.todo_permission_denied === 0 ? false : null;
|
|
3944
3966
|
const thinkingBindingRecoveryTarget = row?.thinking_binding_recovery_target;
|
|
3945
3967
|
return {
|
|
3968
|
+
executeReclaim: executeReclaimFromReplay(row?.trailing_blank_decisions),
|
|
3946
3969
|
staleReduceStrippedIds: new Set(parseStrippedBlob(row?.stale_reduce_stripped_ids)),
|
|
3947
3970
|
processedImageStrippedIds: new Set(parseProcessedImageMarkers(row?.processed_image_stripped_ids).keys()),
|
|
3948
3971
|
processedImageMarkers: parseProcessedImageMarkers(row?.processed_image_stripped_ids),
|
|
@@ -7331,4 +7354,4 @@ function readRawSessionSeedTail2(sessionId, boundaryId, onQuery) {
|
|
|
7331
7354
|
});
|
|
7332
7355
|
}
|
|
7333
7356
|
|
|
7334
|
-
export { isToolFreeHiddenAgent, TOOL_USE_DISABLED, ZEN_READ_AGENT_SUFFIX, needsBlockedRead, withBlockedReadInstruction, rememberV1HiddenRun, shapeV1HiddenMessage, expandToolPart, markHostUnservedRow, retreatPastHostUnservedRows, snapTerminalCompartmentToServedRow, isHostRenderedSystemMessage, markCoveredInstructionRow, isCoveredInstructionRow, takeCoveredInstructionRows, cloneKeepingCoveredInstructionMarks, completedToolArcCrossesBoundary, estimateTrueRawMessageTokens, buildToolArcs, fenceBoundaryForCompletedToolArcs, fenceBoundaryForToolArcs, buildTrueRawTokenIndex, computeRawRangeFingerprint, invalidateTrueRawTokenCache, stripSystemInjection, isTextPart, isToolPartWithOutput, isFilePart, toolPartHasUserAnswer, DreamTokenBudgetExceeded, TOKEN_BUDGET_FINALIZE_MESSAGE, registerBudgetFinalizeChild, releaseBudgetFinalizeChild, createDreamTokenBudget, recordToolParameters, createDroppedInputGuard, assertExecutableToolInput, createDroppedInputToolExecuteBeforeHook, isEditTool, MERGED_REASONING_PARTS_PREFIX, decodeMergedReasoningParts, MAX_EXECUTE_THRESHOLD, escalationBands, HYGIENE_PROVIDER_UNITS_VERSION, sessionDecisionCalibration, transitionSessionHygieneUnits, readEpochFloorSnapshot, getProtectionWindowForSession, SESSION_META_SELECT_COLUMNS, META_COLUMNS, BOOLEAN_META_KEYS, NULL_BIND_META_KEYS, isSessionMetaRow, getDefaultSessionMeta, ensureSessionMetaRow, toSessionMeta, persistCachedM0, clearCachedM0M1, clearCachedM0, withReplayEnvelopeSnapshot, invalidateReplayEnvelopeSnapshot, isRustMarkerAdmissionFenced, setRustMarkerAdmissionFence, ReplayDocumentError, readReplayEnvelope, readReplayDocument, updateReplayDocument, writeReplayDocument, isEmergencyRecoveryArmed, isProviderOverflowReconfirmed, isProviderOverflowFailClosedProven, getEmergencyRecoveryArmedAt, describeProtectedTailDrainBudgetSkip, loadPersistedUsage, loadProtectedTailMeta, markProtectedTailPolicyV3Seeded, recordProtectedTailPublicationFloor, recordProtectedTailNoEligibleHead, resetProtectedTailNoEligibleHead, getWrapupInProgressState, isWrapupInProgress, acquireWrapupInProgress, updateWrapupInProgress, releaseWrapupInProgress, resolveCompactionModeRecord, getCompactionModeRecord, setCompactionModeRecord, getProtectedTailDrainBudgetSkip, reserveProtectedTailDrainTokens, clearEmergencyDrainLatch, recordHistorianDrainFailure, clearHistorianDrainFailure, rollbackProtectedTailDrainReservation, getPersistedReasoningWatermark, setPersistedReasoningWatermark, clearPersistedReasoningWatermark, getEmergencyInputSample, setEmergencyDropSample, clearEmergencyDropSample, getLastNudgeUndropped, setLastNudgeUndropped, getChannel1NudgeState, setChannel1NudgeState, markChannel1PostReduceGracePending, captureChannel1PostReduceGraceBaseline, getChannel2NudgeState, getChannel2NudgeClaim, setChannel2NudgeState, casChannel2NudgeState, claimChannel2NudgeState, casChannel2NudgeClaim, getPersistedNoteNudge, setPersistedNoteNudgeTrigger, setPersistedNoteNudgeTriggerMessageId, getNoteNudgeAnchors, getAutoSearchHintDecisions, deliverNoteNudgeAtomic, appendAutoSearchHintDecision, pruneNoteNudgeAnchors, removeNoteNudgeAnchorByMessageId, queueAutoSearchHintDecisionRetirement, flushAutoSearchHintDecisionRetirement, removeAutoSearchHintDecisionByMessageId, getPersistedTodoPermissionDenied, setPersistedTodoPermissionDenied, getPersistedTodoSyntheticAnchor, setPersistedTodoSyntheticAnchor, clearPersistedTodoSyntheticAnchor, getNoteLastReadAt, setNoteLastReadAt, getHistorianFailureState, incrementHistorianFailure, clearHistorianFailureState, getOverflowState, loadTransformPassStateSnapshot, recordOverflowDetected, recordDetectedContextLimit, clearEmergencyRecovery, clearDetectedContextLimit, getPersistedCompactionMarkerState, setPersistedCompactionMarkerState, getDeferredClearedCompactionMarkerState, retireDeferredClearedCompactionMarkerState, parseStrippedPlaceholderState, serializeStrippedPlaceholderState, getStrippedPlaceholderIds, applyStrippedPlaceholderDelta, removeStrippedPlaceholderId, THINKING_BINDING_RECOVERY_FROZEN_PREFIX, THINKING_BINDING_STRIP_ORDER_END_MARKER, thinkingBindingRecoveryFrozenId, getThinkingBindingRecoveryTarget, armThinkingBindingRecovery, clearThinkingBindingRecoveryIf, getMergedReasoningStrippedIds, addMergedReasoningStrippedIds, getTrailingBlankDecisions, addTrailingBlankDecisions, demoteTrailingBlankKeepDecisions, getStaleReduceStrippedIds, addStaleReduceStrippedIds, getProcessedImageStrippedIds, parseProcessedImageMarkers, serializeProcessedImageMarkers, getProcessedImageMarkers, addProcessedImageStrippedIds, getPendingCompactionMarkerState, getCompactionMarkerHealth, loadPostprocessReplaySnapshot, setPendingCompactionMarkerState, replacePendingCompactionMarkerStateIf, clearPendingCompactionMarkerStateIf, getPendingPiCompactionMarkerState, clearPendingPiCompactionMarkerStateIf, logPiCompactionMarkerClear, getSessionsWithPendingMarker, setSessionWorkMetrics, getObservedEpochFloor, resolveEpochFloorForPass, getReasoningRemovalState, addRemovedReasoningIds, markDropLeavesReasoning, detectThinkingBindingMismatch, detectLatestTurnThinkingMismatch, isPrefixBoundThinkingModel, detectOverflow, modelAcceptsEmptyContent, isAnthropicFamilyRoute, neutralizeDroppedReasoningPart, restoreNeutralizedReasoningPart, isNeutralizedReasoningPart, variantChangeBustsProviderCache, makeSentinel, makeWholeMessageSentinel, isSentinel, replaySentinelByMessageIds, isInActiveAnthropicTurn, activeAnthropicTurnStart, hasAnthropicReasoning, stripSystemInjectedMessages, stripDroppedPlaceholderMessages, replayClearedReasoning, replayStrippedInlineThinking, clearOldReasoning, stripClearedReasoning, stripInlineThinking, findReasoningBearingAssistantIds, findLatestAssistantReasoningMutationExemptMessage, snapshotTrailingBlankSourceDecisions, findTrailingBlankDecisionCandidates, applyFrozenTrailingBlankDecisions, stripReasoningFromAssistantIds, findMergedReasoningStripDecisions, stripReasoningFromMergedAssistants, getEmptyImageParts, stripProcessedImages, projectOpencodeReasoningBudgetCutoff, DEFAULT_KEEP_REASONING_TOKENS, resolveKeepReasoningTokens, reasoningStepCost, reasoningBudgetCutoff, reasoningTextAndOpaque, opencodeReasoningBudgetCutoff, describeFinalWireTail, estimatePartImageTokens, estimateMessageTokens, wireContentBytes, createFinalWireUsageTracker, estimateFinalWireInputTokens, estimateAppendedWireTokens, SKELETON_REAL_INPUT_MAX_BYTES, partHasCompletedResult, extractToolCallObservation, ToolMutationBatch, createToolDropTarget, resolveHostServedBoundaryId2, hasRawMessageProvider2, setRawMessageProvider2, setBoundedRawMessageProvider2, withRawMessageProvider2, cleanUserText2, withRawSessionMessageCache2, readRawSessionMessages2, readRawSessionMessagePage2, getRawSessionMessageOrdinalCount2, RAW_MESSAGE_VISIT_PAGE_SIZE2, visitRawSessionMessages2, visitRawSessionMessagesAsync2, readRawSessionMessageRange2, prepareRawSessionOrdinals2, primeTailRawMessageCache2, getCachedAbsoluteMessageCount2, primeInMemoryTailRawMessageCache2, readRawSessionMessageOrdinalPage2, getRawSessionStoredMessageCount2, readRawSessionMessageIdOrdinalsForRange2, readRawSessionMessageIdOrdinals2, readRawSessionMessagePartsById2, readRawSessionBoundaryEndpoints2, hasRawSessionMessageById2, readRawSessionMessageOrdinalById2, compareRawSessionMessageOrder2, readRawSessionMessageById2, getRawSessionMessageCount2, RAW_SESSION_TAG_KEY_PAGE_SIZE2, getRawSessionTagKeysThrough2, getLegacyProtectedTailStartOrdinal2, getProtectedTailStartOrdinal2, readSessionChunk2, getRawSessionMessageIdsThrough2, readRawSessionSeedTail2 };
|
|
7357
|
+
export { isToolFreeHiddenAgent, TOOL_USE_DISABLED, ZEN_READ_AGENT_SUFFIX, needsBlockedRead, withBlockedReadInstruction, rememberV1HiddenRun, shapeV1HiddenMessage, expandToolPart, markHostUnservedRow, retreatPastHostUnservedRows, snapTerminalCompartmentToServedRow, isHostRenderedSystemMessage, markCoveredInstructionRow, isCoveredInstructionRow, takeCoveredInstructionRows, cloneKeepingCoveredInstructionMarks, completedToolArcCrossesBoundary, estimateTrueRawMessageTokens, buildToolArcs, fenceBoundaryForCompletedToolArcs, fenceBoundaryForToolArcs, buildTrueRawTokenIndex, computeRawRangeFingerprint, invalidateTrueRawTokenCache, stripSystemInjection, isTextPart, isToolPartWithOutput, isFilePart, toolPartHasUserAnswer, DreamTokenBudgetExceeded, TOKEN_BUDGET_FINALIZE_MESSAGE, registerBudgetFinalizeChild, releaseBudgetFinalizeChild, createDreamTokenBudget, recordToolParameters, createDroppedInputGuard, assertExecutableToolInput, createDroppedInputToolExecuteBeforeHook, isEditTool, MERGED_REASONING_PARTS_PREFIX, decodeMergedReasoningParts, MAX_EXECUTE_THRESHOLD, escalationBands, HYGIENE_PROVIDER_UNITS_VERSION, sessionDecisionCalibration, transitionSessionHygieneUnits, readEpochFloorSnapshot, getProtectionWindowForSession, SESSION_META_SELECT_COLUMNS, META_COLUMNS, BOOLEAN_META_KEYS, NULL_BIND_META_KEYS, isSessionMetaRow, getDefaultSessionMeta, ensureSessionMetaRow, toSessionMeta, persistCachedM0, clearCachedM0M1, clearCachedM0, withReplayEnvelopeSnapshot, invalidateReplayEnvelopeSnapshot, isRustMarkerAdmissionFenced, setRustMarkerAdmissionFence, ReplayDocumentError, readReplayEnvelope, readReplayDocument, updateReplayDocument, writeReplayDocument, isEmergencyRecoveryArmed, isProviderOverflowReconfirmed, isProviderOverflowFailClosedProven, getEmergencyRecoveryArmedAt, describeProtectedTailDrainBudgetSkip, loadPersistedUsage, loadProtectedTailMeta, markProtectedTailPolicyV3Seeded, recordProtectedTailPublicationFloor, recordProtectedTailNoEligibleHead, resetProtectedTailNoEligibleHead, getWrapupInProgressState, isWrapupInProgress, acquireWrapupInProgress, updateWrapupInProgress, releaseWrapupInProgress, resolveCompactionModeRecord, getCompactionModeRecord, setCompactionModeRecord, getProtectedTailDrainBudgetSkip, reserveProtectedTailDrainTokens, clearEmergencyDrainLatch, recordHistorianDrainFailure, clearHistorianDrainFailure, rollbackProtectedTailDrainReservation, getPersistedReasoningWatermark, setPersistedReasoningWatermark, clearPersistedReasoningWatermark, getEmergencyInputSample, setEmergencyDropSample, clearEmergencyDropSample, getLastNudgeUndropped, setLastNudgeUndropped, getChannel1NudgeState, setChannel1NudgeState, markChannel1PostReduceGracePending, captureChannel1PostReduceGraceBaseline, getChannel2NudgeState, getChannel2NudgeClaim, setChannel2NudgeState, casChannel2NudgeState, claimChannel2NudgeState, casChannel2NudgeClaim, getPersistedNoteNudge, setPersistedNoteNudgeTrigger, setPersistedNoteNudgeTriggerMessageId, getNoteNudgeAnchors, getAutoSearchHintDecisions, deliverNoteNudgeAtomic, appendAutoSearchHintDecision, pruneNoteNudgeAnchors, removeNoteNudgeAnchorByMessageId, queueAutoSearchHintDecisionRetirement, flushAutoSearchHintDecisionRetirement, removeAutoSearchHintDecisionByMessageId, getPersistedTodoPermissionDenied, setPersistedTodoPermissionDenied, getPersistedTodoSyntheticAnchor, setPersistedTodoSyntheticAnchor, clearPersistedTodoSyntheticAnchor, getNoteLastReadAt, setNoteLastReadAt, getHistorianFailureState, incrementHistorianFailure, clearHistorianFailureState, getOverflowState, loadTransformPassStateSnapshot, recordOverflowDetected, recordDetectedContextLimit, clearEmergencyRecovery, clearDetectedContextLimit, getPersistedCompactionMarkerState, setPersistedCompactionMarkerState, getDeferredClearedCompactionMarkerState, retireDeferredClearedCompactionMarkerState, parseStrippedPlaceholderState, serializeStrippedPlaceholderState, getStrippedPlaceholderIds, applyStrippedPlaceholderDelta, removeStrippedPlaceholderId, THINKING_BINDING_RECOVERY_FROZEN_PREFIX, THINKING_BINDING_STRIP_ORDER_END_MARKER, thinkingBindingRecoveryFrozenId, COMPACTION_OFF_THINKING_FROZEN_PREFIX, compactionOffThinkingFrozenId, compactionOffFrozenThinkingIds, getThinkingBindingRecoveryTarget, armThinkingBindingRecovery, clearThinkingBindingRecoveryIf, getMergedReasoningStrippedIds, addMergedReasoningStrippedIds, getTrailingBlankDecisions, addTrailingBlankDecisions, demoteTrailingBlankKeepDecisions, getStaleReduceStrippedIds, addStaleReduceStrippedIds, getProcessedImageStrippedIds, parseProcessedImageMarkers, serializeProcessedImageMarkers, getProcessedImageMarkers, addProcessedImageStrippedIds, getPendingCompactionMarkerState, getCompactionMarkerHealth, loadPostprocessReplaySnapshot, setPendingCompactionMarkerState, replacePendingCompactionMarkerStateIf, clearPendingCompactionMarkerStateIf, getPendingPiCompactionMarkerState, clearPendingPiCompactionMarkerStateIf, logPiCompactionMarkerClear, getSessionsWithPendingMarker, setSessionWorkMetrics, getObservedEpochFloor, resolveEpochFloorForPass, getReasoningRemovalState, addRemovedReasoningIds, markDropLeavesReasoning, detectThinkingBindingMismatch, detectLatestTurnThinkingMismatch, isPrefixBoundThinkingModel, detectOverflow, modelAcceptsEmptyContent, isAnthropicFamilyRoute, neutralizeDroppedReasoningPart, restoreNeutralizedReasoningPart, isNeutralizedReasoningPart, variantChangeBustsProviderCache, makeSentinel, makeWholeMessageSentinel, isSentinel, replaySentinelByMessageIds, isInActiveAnthropicTurn, activeAnthropicTurnStart, hasAnthropicReasoning, stripSystemInjectedMessages, stripDroppedPlaceholderMessages, replayClearedReasoning, replayStrippedInlineThinking, clearOldReasoning, stripClearedReasoning, stripInlineThinking, findReasoningBearingAssistantIds, findLatestAssistantReasoningMutationExemptMessage, snapshotTrailingBlankSourceDecisions, findTrailingBlankDecisionCandidates, applyFrozenTrailingBlankDecisions, stripReasoningFromAssistantIds, findMergedReasoningStripDecisions, stripReasoningFromMergedAssistants, getEmptyImageParts, stripProcessedImages, projectOpencodeReasoningBudgetCutoff, DEFAULT_KEEP_REASONING_TOKENS, resolveKeepReasoningTokens, reasoningStepCost, reasoningBudgetCutoff, reasoningTextAndOpaque, opencodeReasoningBudgetCutoff, describeFinalWireTail, estimatePartImageTokens, estimateMessageTokens, wireContentBytes, createFinalWireUsageTracker, estimateFinalWireInputTokens, estimateAppendedWireTokens, SKELETON_REAL_INPUT_MAX_BYTES, partHasCompletedResult, extractToolCallObservation, ToolMutationBatch, createToolDropTarget, resolveHostServedBoundaryId2, hasRawMessageProvider2, setRawMessageProvider2, setBoundedRawMessageProvider2, withRawMessageProvider2, cleanUserText2, withRawSessionMessageCache2, readRawSessionMessages2, readRawSessionMessagePage2, getRawSessionMessageOrdinalCount2, RAW_MESSAGE_VISIT_PAGE_SIZE2, visitRawSessionMessages2, visitRawSessionMessagesAsync2, readRawSessionMessageRange2, prepareRawSessionOrdinals2, primeTailRawMessageCache2, getCachedAbsoluteMessageCount2, primeInMemoryTailRawMessageCache2, readRawSessionMessageOrdinalPage2, getRawSessionStoredMessageCount2, readRawSessionMessageIdOrdinalsForRange2, readRawSessionMessageIdOrdinals2, readRawSessionMessagePartsById2, readRawSessionBoundaryEndpoints2, hasRawSessionMessageById2, readRawSessionMessageOrdinalById2, compareRawSessionMessageOrder2, readRawSessionMessageById2, getRawSessionMessageCount2, RAW_SESSION_TAG_KEY_PAGE_SIZE2, getRawSessionTagKeysThrough2, getLegacyProtectedTailStartOrdinal2, getProtectedTailStartOrdinal2, readSessionChunk2, getRawSessionMessageIdsThrough2, readRawSessionSeedTail2 };
|
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);
|
|
@@ -11853,7 +11856,11 @@ function createToolRegistry(args) {
|
|
|
11853
11856
|
getProtectionWindow: (sessionId) => getProtectionWindowForSession(db, sessionId, getObservedEpochFloor(db, sessionId)),
|
|
11854
11857
|
rustToolBackends
|
|
11855
11858
|
}),
|
|
11856
|
-
...createCtxExpandTools({
|
|
11859
|
+
...createCtxExpandTools({
|
|
11860
|
+
db,
|
|
11861
|
+
expandTools: pluginConfig.historian?.expand_tools,
|
|
11862
|
+
transformMode: pluginConfig.transform_mode
|
|
11863
|
+
}),
|
|
11857
11864
|
...createCtxNoteTools({
|
|
11858
11865
|
db,
|
|
11859
11866
|
dreamerEnabled: isDreamerRunnable(pluginConfig),
|
|
@@ -12035,7 +12042,7 @@ async function setup(context) {
|
|
|
12035
12042
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12036
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.`);
|
|
12037
12044
|
}
|
|
12038
|
-
const { registerContext } = await import("./context-
|
|
12045
|
+
const { registerContext } = await import("./context-mkece1db.js");
|
|
12039
12046
|
setHarness2("opencode2");
|
|
12040
12047
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12041
12048
|
const duties = await registerContext(context);
|
|
@@ -12114,7 +12121,7 @@ var server = async (ctx) => {
|
|
|
12114
12121
|
if (hasBannerEntries)
|
|
12115
12122
|
setTimeout(async () => {
|
|
12116
12123
|
try {
|
|
12117
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12124
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-0k6qzydk.js"));
|
|
12118
12125
|
const clientWithSessions = ctx.client;
|
|
12119
12126
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12120
12127
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12132,7 +12139,7 @@ var server = async (ctx) => {
|
|
|
12132
12139
|
log2(`[magic-context] opencode_db_missing path=${openCodeDbResolution.path} source=${openCodeDbResolution.source}`);
|
|
12133
12140
|
setTimeout(async () => {
|
|
12134
12141
|
try {
|
|
12135
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12142
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-0k6qzydk.js"));
|
|
12136
12143
|
const clientWithSessions = ctx.client;
|
|
12137
12144
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12138
12145
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12409,12 +12416,12 @@ var server = async (ctx) => {
|
|
|
12409
12416
|
{
|
|
12410
12417
|
const fence = getSchemaFenceRejection();
|
|
12411
12418
|
if (fence) {
|
|
12412
|
-
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));
|
|
12413
12420
|
}
|
|
12414
12421
|
}
|
|
12415
12422
|
const serverUrl = ctx.serverUrl;
|
|
12416
12423
|
const serverUrlStr = serverUrl instanceof URL ? serverUrl.toString().replace(/\/$/, "") : typeof serverUrl === "string" ? serverUrl.replace(/\/$/, "") : undefined;
|
|
12417
|
-
importPluginModule(() => import("./send-session-notification-
|
|
12424
|
+
importPluginModule(() => import("./send-session-notification-0k6qzydk.js")).then(({ setNotificationServerUrl }) => {
|
|
12418
12425
|
setNotificationServerUrl(serverUrlStr);
|
|
12419
12426
|
}).catch((error) => log2("[magic-context] notification transport unavailable:", error));
|
|
12420
12427
|
if (conflictResult?.hasConflict) {
|
|
@@ -12437,7 +12444,7 @@ var server = async (ctx) => {
|
|
|
12437
12444
|
}) => {
|
|
12438
12445
|
if (!shouldShowAnnouncement())
|
|
12439
12446
|
return;
|
|
12440
|
-
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));
|
|
12441
12448
|
}).catch(() => {});
|
|
12442
12449
|
}, 8000);
|
|
12443
12450
|
}
|
|
@@ -12511,8 +12518,8 @@ var server = async (ctx) => {
|
|
|
12511
12518
|
tryReopenStorage,
|
|
12512
12519
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12513
12520
|
onStorageBusyRefusal: async (sessionId, message) => {
|
|
12514
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12515
|
-
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"));
|
|
12516
12523
|
await sendStatusNotification(ctx.client, sessionId, message, {
|
|
12517
12524
|
toastDurationMs: 15000
|
|
12518
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;
|