@cortexkit/opencode-magic-context 0.49.97 → 0.49.99
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/{announcement-8nj2jd87.js → announcement-p2xjv6cp.js} +4 -5
- package/dist/auto-search-worker.js +5 -5
- package/dist/chunk-embedding-write-worker.js +15 -16
- package/dist/{compaction-marker-candidates-a4b0anvv.js → compaction-marker-candidates-2apg7ewt.js} +2 -3
- package/dist/compaction-marker-candidates-worker.js +1 -1
- package/dist/{compartment-chunk-embedding-re2cw7y3.js → compartment-chunk-embedding-gnemmf79.js} +7 -8
- package/dist/{conflict-warning-hook-wcq55y61.js → conflict-warning-hook-x1ynwzwz.js} +7 -8
- package/dist/{context-br04s0b6.js → context-z77a2jpx.js} +377 -60
- package/dist/{derive-budgets-g1sy72e8.js → derive-budgets-vbv0fwsd.js} +4 -5
- package/dist/embedding-backfill-79br4kk6.js +28 -0
- package/dist/embedding-worker-process.js +1 -2
- package/dist/embedding-worker.js +6 -7
- package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-probe.d.ts +10 -9
- package/dist/features/magic-context/memory/embedding-probe.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-response-slots.d.ts +13 -0
- package/dist/features/magic-context/memory/embedding-response-slots.d.ts.map +1 -0
- package/dist/features/magic-context/storage-native-replay.d.ts +2 -0
- package/dist/features/magic-context/storage-native-replay.d.ts.map +1 -1
- package/dist/{history-owner-74826t4n.js → history-owner-8dj31nyf.js} +2 -3
- package/dist/hooks/magic-context/apply-operations.d.ts +1 -1
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/execute-flush.d.ts +1 -1
- package/dist/hooks/magic-context/execute-flush.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +2 -0
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-tbdy1hk0.js → index-0wj3jr8n.js} +6 -6
- package/dist/{index-j4dcjb8t.js → index-1vv1ka4a.js} +4 -4
- package/dist/{index-zfx7mtqa.js → index-2m3t73wk.js} +1 -1
- package/dist/{index-3fhb0j32.js → index-34xvre52.js} +223 -5
- package/dist/{index-pkxkeezb.js → index-4qc8d9by.js} +17 -17
- package/dist/{index-mmf6e740.js → index-507a56zb.js} +7 -7
- package/dist/{index-qdjxrbnr.js → index-5nf2a14a.js} +52 -45
- package/dist/{index-w9hxgntq.js → index-5xrj3zp4.js} +5 -5
- package/dist/{index-kj4bprep.js → index-61a853ky.js} +4 -4
- package/dist/{index-zmgp0tr6.js → index-74w347am.js} +3 -3
- package/dist/{index-hp46xe93.js → index-8hhmv0ff.js} +6 -6
- package/dist/{index-c205x7xd.js → index-8k9qpyjf.js} +1 -1
- package/dist/{index-tqtpgnhr.js → index-9awtk18w.js} +1 -1
- package/dist/{index-h7kta6cn.js → index-9eqt7755.js} +3 -3
- package/dist/{index-x49x59ar.js → index-9q7wzca8.js} +23 -25
- package/dist/{index-880a24vd.js → index-ab86c21b.js} +1 -1
- package/dist/{index-3n4j5rqc.js → index-abhmtj00.js} +1 -1
- package/dist/{index-tr4ep2ej.js → index-ajmy0v5j.js} +31 -0
- package/dist/{index-dj64gzg5.js → index-cayqdwf9.js} +2 -2
- package/dist/{index-0sqhg9nf.js → index-dnxnj42p.js} +12 -12
- package/dist/{index-0bjj9yf3.js → index-e6s2jpr8.js} +2 -2
- package/dist/{index-8v1brm5n.js → index-em72jhc0.js} +11 -11
- package/dist/{index-910gahfb.js → index-esym6cw4.js} +6 -8
- package/dist/{index-7sdns2ww.js → index-fd3hkyk1.js} +2 -2
- package/dist/{index-fgw241hh.js → index-gcf2x04k.js} +2 -2
- package/dist/{index-89xg64wb.js → index-geph2sa6.js} +2 -2
- package/dist/{index-45qgkg8j.js → index-h1qh9n8b.js} +2 -2
- package/dist/{index-9jvxq5rt.js → index-h1xvt8fw.js} +4 -4
- package/dist/{index-0ve29s6f.js → index-hbqxxb2n.js} +1 -1
- package/dist/{index-dnpcv1rg.js → index-hyvxmz3e.js} +4 -4
- package/dist/{index-hedgz8an.js → index-jsbgw33b.js} +1 -1
- package/dist/{index-mgy7g740.js → index-kjdys7e2.js} +1 -1
- package/dist/{index-e6ay1gez.js → index-mfx7hzyc.js} +2 -2
- package/dist/{index-7m2tnk8q.js → index-mhdavdd4.js} +31 -28
- package/dist/{index-r1d45dsr.js → index-nyjztqyj.js} +3 -3
- package/dist/{index-azkfw78y.js → index-qxzk5s30.js} +1 -1
- package/dist/{index-6mryx739.js → index-t7st85f5.js} +1 -1
- package/dist/{index-89bkkgcn.js → index-tyjx0dwz.js} +4 -4
- package/dist/{index-k34hc455.js → index-vdzd98ry.js} +2 -2
- package/dist/{index-hj78hvhm.js → index-vegw385y.js} +2 -2
- package/dist/{index-w7n7qkpf.js → index-w6kcwhhj.js} +4 -4
- package/dist/{index-xcej5kpt.js → index-xbna9akt.js} +5 -5
- package/dist/{index-cpbr0xvk.js → index-xtv4d4hv.js} +2 -2
- package/dist/{index-zkjx8gq3.js → index-xw608ytx.js} +11 -11
- package/dist/{index-jzrvdqb8.js → index-y5f5yg5a.js} +1 -1
- package/dist/index.js +55 -56
- package/dist/{logger-nmb2508f.js → logger-dgtrf43g.js} +1 -2
- package/dist/{message-fts-rowid-map-vcatdan0.js → message-fts-rowid-map-cfq59g6g.js} +4 -5
- package/dist/{message-index-bounded-abhwe610.js → message-index-bounded-6y7p974x.js} +10 -11
- package/dist/{message-time-backfill-zc5rsvhv.js → message-time-backfill-av870n4c.js} +2 -3
- package/dist/migration-worker.js +12 -13
- package/dist/plugin/rpc-handlers.d.ts +1 -0
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/{project-embedding-registry-e566q4bg.js → project-embedding-registry-xy8dcdys.js} +13 -14
- package/dist/raw-ordinal-warmup-worker.js +8 -8
- package/dist/{read-session-chunk-sde0wym3.js → read-session-chunk-9ejnbe07.js} +8 -9
- package/dist/{read-session-raw-trhdgc9z.js → read-session-raw-pgc9gxtn.js} +2 -3
- package/dist/{recomp-orchestrator-dapm3e4v.js → recomp-orchestrator-9k91tkyx.js} +32 -33
- package/dist/render-9712q3gp.js +42 -0
- package/dist/{safe-notification-target-54ns7dv9.js → safe-notification-target-01j8km9e.js} +2 -3
- package/dist/{search-archive-4bbn3ztv.js → search-archive-5jr011gc.js} +11 -12
- package/dist/{search-11aw8wpq.js → search-yhaxy3e6.js} +25 -26
- package/dist/{send-session-notification-gxrj4w1r.js → send-session-notification-tfhs4dbc.js} +5 -6
- package/dist/shared/rpc-types.d.ts +5 -0
- package/dist/shared/rpc-types.d.ts.map +1 -1
- package/dist/shared/status-view-check.d.ts.map +1 -1
- package/dist/shared/status-view.d.ts +8 -0
- package/dist/shared/status-view.d.ts.map +1 -1
- package/dist/shared/transcript.d.ts +1 -1
- package/dist/shared/transcript.d.ts.map +1 -1
- package/dist/{storage-tags-jq0c0zsn.js → storage-tags-vd3sgd4s.js} +5 -6
- package/dist/{store-29ksp6vy.js → store-235fjtsn.js} +6 -4
- package/dist/{store-reader-dgh3ssxx.js → store-reader-01e8t5j0.js} +4 -1
- package/dist/{transform-postprocess-phase-1xrjg6be.js → transform-postprocess-phase-mf5js6cs.js} +33 -34
- package/dist/v2/auto-search-worker.js +5 -5
- package/dist/v2/checkpoint-instruction-status.d.ts +13 -0
- package/dist/v2/checkpoint-instruction-status.d.ts.map +1 -0
- package/dist/v2/chunk-embedding-write-worker.js +15 -16
- package/dist/v2/{compaction-marker-candidates-6nypmsr3.js → compaction-marker-candidates-3rxg3f1e.js} +2 -3
- package/dist/v2/compaction-marker-candidates-worker.js +1 -1
- package/dist/v2/{compartment-chunk-embedding-jthtfhcd.js → compartment-chunk-embedding-6v74y2r3.js} +7 -8
- package/dist/v2/{context-43r0mzkp.js → context-4fej2dzv.js} +390 -69
- package/dist/v2/{derive-budgets-wj0q7s7d.js → derive-budgets-9237wmq5.js} +5 -6
- package/dist/v2/embedding-backfill-nhgp8znm.js +28 -0
- package/dist/v2/embedding-worker-process.js +1 -2
- package/dist/v2/embedding-worker.js +6 -7
- package/dist/v2/fold/idle.d.ts +11 -1
- package/dist/v2/fold/idle.d.ts.map +1 -1
- package/dist/v2/fold/instruction-supersession.d.ts +22 -1
- package/dist/v2/fold/instruction-supersession.d.ts.map +1 -1
- package/dist/v2/fold/native-replay-v3.d.ts +1 -0
- package/dist/v2/fold/native-replay-v3.d.ts.map +1 -1
- package/dist/v2/fold/native-replay.d.ts +73 -0
- package/dist/v2/fold/native-replay.d.ts.map +1 -1
- package/dist/v2/{history-owner-8pd5ax3n.js → history-owner-k4gx50a0.js} +2 -3
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/{logger-58jfese9.js → logger-0ys28353.js} +1 -2
- package/dist/v2/{message-fts-rowid-map-ax4vk78j.js → message-fts-rowid-map-88x2zbyj.js} +4 -5
- package/dist/v2/{message-index-bounded-qh794qxx.js → message-index-bounded-wj5rs9az.js} +10 -11
- package/dist/v2/{message-time-backfill-yj773saf.js → message-time-backfill-5p4vwd79.js} +2 -3
- package/dist/v2/migration-worker.js +12 -13
- package/dist/v2/{project-embedding-registry-z05xvckg.js → project-embedding-registry-qz9x79kn.js} +13 -14
- package/dist/v2/raw-ordinal-warmup-worker.js +8 -8
- package/dist/v2/{read-session-chunk-8tn2dbn1.js → read-session-chunk-89ep8br4.js} +8 -9
- package/dist/v2/{read-session-raw-ywebck9q.js → read-session-raw-seh1kcvp.js} +2 -3
- package/dist/v2/recomp-orchestrator-9wap1z1d.js +68 -0
- package/dist/v2/render-bzzypsgy.js +42 -0
- package/dist/v2/{safe-notification-target-zrwbh6k7.js → safe-notification-target-3e2rq2ys.js} +2 -3
- package/dist/v2/{search-archive-8zqsf9e6.js → search-archive-4yr4hw2m.js} +11 -12
- package/dist/v2/{search-35cz80x0.js → search-ymm2crs3.js} +24 -25
- package/dist/v2/{send-session-notification-8x146x5y.js → send-session-notification-vtnk598k.js} +5 -6
- package/dist/v2/{server-vj0xbbrc.js → server-0b3ms151.js} +2 -2
- package/dist/v2/{server-r3h4fy4k.js → server-1bks09js.js} +5 -5
- package/dist/v2/{server-nnh81jqy.js → server-2ek9exbe.js} +6 -8
- package/dist/v2/{server-63ree5ns.js → server-2xng77ch.js} +1 -1
- package/dist/v2/{server-2sare4qg.js → server-3mb205v9.js} +4 -4
- package/dist/v2/{server-n34vzyfm.js → server-3qeqa3b6.js} +1 -1
- package/dist/v2/{server-av3p9c8k.js → server-54nc921b.js} +1 -1
- package/dist/v2/{server-2qvnr3t7.js → server-5zx51pm4.js} +1 -1
- package/dist/v2/{server-vsx9tsks.js → server-62t1852h.js} +11 -11
- package/dist/v2/{server-svccj9rd.js → server-6mq43ear.js} +4 -4
- package/dist/v2/{server-1fnsfm3a.js → server-6r3b0re0.js} +24 -26
- package/dist/v2/{server-db91dxwc.js → server-7861dnm3.js} +6 -6
- package/dist/v2/{server-6qax5pds.js → server-7c5p0bh1.js} +2 -2
- package/dist/v2/{server-z5cv5wm5.js → server-7wpw3wc6.js} +31 -28
- package/dist/v2/{server-11ra1pmx.js → server-8xgs110k.js} +4 -4
- package/dist/v2/{server-40vdz8sf.js → server-98xd6j4r.js} +2 -2
- package/dist/v2/{server-k3ntgf6n.js → server-b5eg9ct6.js} +2 -2
- package/dist/v2/{server-2cq3e1c1.js → server-b65sqz7y.js} +4 -4
- package/dist/v2/{server-ganavh75.js → server-bhr92yb4.js} +2 -2
- package/dist/v2/{server-4yrvbnnm.js → server-bzebqckc.js} +2 -2
- package/dist/v2/{server-rt8t6s2a.js → server-cc58mckk.js} +2 -2
- package/dist/v2/{server-xekyjy4w.js → server-d0h1gjz2.js} +6 -6
- package/dist/v2/{server-73bqw5c0.js → server-d46xewmt.js} +1 -1
- package/dist/v2/{server-rr5c0xcg.js → server-d4h86y7v.js} +2 -2
- package/dist/v2/{server-7tj8yzrv.js → server-e14d7ebh.js} +2 -2
- package/dist/v2/{server-gh2w75fn.js → server-e8ybwfv8.js} +3 -3
- package/dist/v2/{server-zemnpv92.js → server-ghk96d57.js} +4 -4
- package/dist/v2/{server-j1gxs1gj.js → server-h95cdc30.js} +1 -1
- package/dist/v2/{server-5t4nzfpt.js → server-j09jx1n9.js} +1 -1
- package/dist/v2/{server-n33hyq9t.js → server-jrs4gny6.js} +2 -2
- package/dist/v2/{server-7h4gwphm.js → server-pqgnjf38.js} +3 -3
- package/dist/v2/{server-379fd3n7.js → server-rbxtp4sm.js} +1 -1
- package/dist/v2/{server-2wz6y46g.js → server-sfffm587.js} +1 -1
- package/dist/v2/{server-bx5k66qc.js → server-vgy98kcd.js} +1 -1
- package/dist/v2/{server-kzrrdjp5.js → server-xc7t2r4k.js} +223 -5
- package/dist/v2/{server-z2nv8jdv.js → server-xn7fpv2b.js} +12 -12
- package/dist/v2/{server-tq523gj6.js → server-yacpgq4s.js} +1 -1
- package/dist/v2/{server-vtkbxzw1.js → server-ysg14rv1.js} +31 -0
- package/dist/v2/{server-qjjky07w.js → server-zedjjdc5.js} +11 -11
- package/dist/v2/server.js +8 -9
- package/dist/v2/{storage-tags-pcenytad.js → storage-tags-8kktww54.js} +5 -6
- package/dist/v2/{store-gx19qc3a.js → store-0kjfynwp.js} +6 -4
- package/dist/v2/{store-reader-qt2msa8z.js → store-reader-w0srb18d.js} +4 -1
- package/dist/v2/store-reader.d.ts +1 -0
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/tui/index.d.ts +1 -1
- package/dist/v2/tui/index.d.ts.map +1 -1
- package/dist/v2/{v2-archive-reader-hvdyz30c.js → v2-archive-reader-veyqp15a.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-0d4ceff3.js → wrapup-orchestrator-89cg7p41.js} +33 -34
- package/dist/{v2-archive-reader-qs24chs6.js → v2-archive-reader-3s332fn7.js} +1 -1
- package/dist/wrapup-orchestrator-41rt7etq.js +55 -0
- package/package.json +2 -2
- package/src/shared/rpc-types.ts +6 -0
- package/src/shared/status-view-check.ts +11 -0
- package/src/shared/status-view.ts +24 -1
- package/src/shared/tag-transcript.ts +5 -4
- package/src/shared/test-preload-leak-scan.test.ts +56 -0
- package/src/shared/transcript.ts +1 -1
- package/src/v2/tui/index.ts +8 -1
- package/src/v2/tui/status-dialog-fallback.test.ts +21 -0
- package/dist/embedding-backfill-pdymqbnh.js +0 -29
- package/dist/index-dt7cyqfe.js +0 -223
- package/dist/render-6vmqzcem.js +0 -43
- package/dist/v2/embedding-backfill-16b16m38.js +0 -29
- package/dist/v2/recomp-orchestrator-vzygyqwn.js +0 -69
- package/dist/v2/render-9b5dxp9e.js +0 -43
- package/dist/v2/server-dt7cyqfe.js +0 -223
- package/dist/wrapup-orchestrator-v1mhjw55.js +0 -56
|
@@ -25,16 +25,14 @@ import {
|
|
|
25
25
|
ensureCortexKitArtifactGitignore,
|
|
26
26
|
getMagicContextStorageResolution,
|
|
27
27
|
getMagicContextStorageDir,
|
|
28
|
+
sanitizeDiagnosticText,
|
|
29
|
+
hasShareabilitySensitiveText,
|
|
28
30
|
classifyStalePluginBuild,
|
|
29
31
|
importPluginModule,
|
|
30
32
|
log2,
|
|
31
33
|
sessionLog2,
|
|
32
34
|
getLoggerDiagnostics2
|
|
33
|
-
} from "./index-
|
|
34
|
-
import {
|
|
35
|
-
sanitizeDiagnosticText,
|
|
36
|
-
hasShareabilitySensitiveText
|
|
37
|
-
} from "./index-dt7cyqfe.js";
|
|
35
|
+
} from "./index-34xvre52.js";
|
|
38
36
|
import {
|
|
39
37
|
resolveOpenCodeDbPath,
|
|
40
38
|
assertOpenCodeStoreGeneration,
|
|
@@ -65,14 +63,14 @@ import {
|
|
|
65
63
|
rpcPortFilePath,
|
|
66
64
|
parseRpcPortFile,
|
|
67
65
|
inspectProcessesAsync
|
|
68
|
-
} from "./index-
|
|
66
|
+
} from "./index-abhmtj00.js";
|
|
69
67
|
import {
|
|
70
68
|
shouldEnforcePrivateStoragePermissions,
|
|
71
69
|
ensureStorageDirectorySync,
|
|
72
70
|
writeStorageFileAtomicSync,
|
|
73
71
|
writeStorageFileAsync,
|
|
74
72
|
createStorageWriteStream
|
|
75
|
-
} from "./index-
|
|
73
|
+
} from "./index-t7st85f5.js";
|
|
76
74
|
import {
|
|
77
75
|
pruneMissingProjectIdentities,
|
|
78
76
|
shouldSkipHomeProjectMemory,
|
|
@@ -89,7 +87,7 @@ import {
|
|
|
89
87
|
storedPathBelongsToIdentity,
|
|
90
88
|
beginBootQuietPeriod,
|
|
91
89
|
scheduleAfterBootQuiet
|
|
92
|
-
} from "./index-
|
|
90
|
+
} from "./index-vegw385y.js";
|
|
93
91
|
import {
|
|
94
92
|
recordSessionProjectIdentity,
|
|
95
93
|
hasRecordedSessionProjectIdentity,
|
|
@@ -99,7 +97,7 @@ import {
|
|
|
99
97
|
markGitSweepSuccessAndRelease,
|
|
100
98
|
parkGitSweepNonIndexable,
|
|
101
99
|
releaseGitSweepLease
|
|
102
|
-
} from "./index-
|
|
100
|
+
} from "./index-fd3hkyk1.js";
|
|
103
101
|
import {
|
|
104
102
|
getMagicContextBuiltinCommands,
|
|
105
103
|
formatConfigParseStatusLine,
|
|
@@ -215,7 +213,7 @@ import {
|
|
|
215
213
|
snapRangeToCompartments,
|
|
216
214
|
getActiveCompartmentRun,
|
|
217
215
|
startCompartmentAgent
|
|
218
|
-
} from "./index-
|
|
216
|
+
} from "./index-9q7wzca8.js";
|
|
219
217
|
import {
|
|
220
218
|
formatWindowDerivationLine,
|
|
221
219
|
getSdkWindowGeometry,
|
|
@@ -224,7 +222,7 @@ import {
|
|
|
224
222
|
deriveTriggerBudget2,
|
|
225
223
|
resolveKnownHistorianContextLimit2,
|
|
226
224
|
resolveHistorianProducerLimits2
|
|
227
|
-
} from "./index-
|
|
225
|
+
} from "./index-h1qh9n8b.js";
|
|
228
226
|
import {
|
|
229
227
|
resolveModelCalibration,
|
|
230
228
|
calibrateBuckets,
|
|
@@ -239,7 +237,7 @@ import {
|
|
|
239
237
|
estimateTokens,
|
|
240
238
|
estimateFixedPromptTokens,
|
|
241
239
|
normalizeText
|
|
242
|
-
} from "./index-
|
|
240
|
+
} from "./index-2m3t73wk.js";
|
|
243
241
|
import {
|
|
244
242
|
protectedToolTokenCount,
|
|
245
243
|
peelLeadingMcTagNotation,
|
|
@@ -373,14 +371,14 @@ import {
|
|
|
373
371
|
getTagsByNumbers2,
|
|
374
372
|
getDroppedTagsByNumbers2,
|
|
375
373
|
getMaxDroppedTagNumber2
|
|
376
|
-
} from "./index-
|
|
374
|
+
} from "./index-w6kcwhhj.js";
|
|
377
375
|
import {
|
|
378
376
|
BoundedSessionMap,
|
|
379
377
|
observeTemporalDecisions,
|
|
380
378
|
stableStringify,
|
|
381
379
|
getMeasuredToolDefinitionTokens,
|
|
382
380
|
getExactSessionToolDefinitionTokens
|
|
383
|
-
} from "./index-
|
|
381
|
+
} from "./index-xtv4d4hv.js";
|
|
384
382
|
import {
|
|
385
383
|
withContentLanguageDirective,
|
|
386
384
|
string,
|
|
@@ -407,7 +405,7 @@ import {
|
|
|
407
405
|
extractInMemoryMessageViews2,
|
|
408
406
|
buildInMemoryTailRawMessages2,
|
|
409
407
|
RawOrdinalsNotReady2
|
|
410
|
-
} from "./index-
|
|
408
|
+
} from "./index-jsbgw33b.js";
|
|
411
409
|
import {
|
|
412
410
|
openCodeDbExists,
|
|
413
411
|
withReadOnlySessionDb,
|
|
@@ -415,7 +413,7 @@ import {
|
|
|
415
413
|
latestPersistedMessageForRecovery,
|
|
416
414
|
latestRealUserTurnIdFromOpenCodeDb,
|
|
417
415
|
findLastAssistantModelFromOpenCodeDb
|
|
418
|
-
} from "./index-
|
|
416
|
+
} from "./index-vdzd98ry.js";
|
|
419
417
|
import {
|
|
420
418
|
askAnswerLines,
|
|
421
419
|
estimateTrueRawMessageTokens,
|
|
@@ -447,7 +445,7 @@ import {
|
|
|
447
445
|
readRawSessionMessageById2,
|
|
448
446
|
readSessionChunk2,
|
|
449
447
|
readRawSessionSeedTail2
|
|
450
|
-
} from "./index-
|
|
448
|
+
} from "./index-8hhmv0ff.js";
|
|
451
449
|
import {
|
|
452
450
|
buildDreamTaskRuntimeConfigs2,
|
|
453
451
|
userMemoryCollectionEnabled2
|
|
@@ -457,7 +455,7 @@ import {
|
|
|
457
455
|
isFailClosedBlockingError,
|
|
458
456
|
shouldBypassFailClosedBlock,
|
|
459
457
|
resolveAgentNameFromMessages
|
|
460
|
-
} from "./index-
|
|
458
|
+
} from "./index-8k9qpyjf.js";
|
|
461
459
|
import {
|
|
462
460
|
configureContextDatabasePragmas2
|
|
463
461
|
} from "./index-fb3zxn06.js";
|
|
@@ -471,7 +469,7 @@ import {
|
|
|
471
469
|
runSqliteOptimize,
|
|
472
470
|
openDatabase,
|
|
473
471
|
openCurrentDatabase
|
|
474
|
-
} from "./index-
|
|
472
|
+
} from "./index-xw608ytx.js";
|
|
475
473
|
import {
|
|
476
474
|
unescapeXml,
|
|
477
475
|
resolveWorkspaceShareCategories,
|
|
@@ -480,7 +478,7 @@ import {
|
|
|
480
478
|
resolveStoredPathWorkspaceIdentity,
|
|
481
479
|
storedPathBelongsToWorkspace,
|
|
482
480
|
computeWorkspaceEpochFingerprint
|
|
483
|
-
} from "./index-
|
|
481
|
+
} from "./index-hyvxmz3e.js";
|
|
484
482
|
import {
|
|
485
483
|
V2_MEMORY_CATEGORIES,
|
|
486
484
|
CATEGORY_PRIORITY
|
|
@@ -502,7 +500,7 @@ import {
|
|
|
502
500
|
toSynapseLaneDescriptor,
|
|
503
501
|
formatSynapseLaneDescriptor,
|
|
504
502
|
SynapseEmbeddingProvider
|
|
505
|
-
} from "./index-
|
|
503
|
+
} from "./index-gcf2x04k.js";
|
|
506
504
|
import {
|
|
507
505
|
readHistoryGapMark,
|
|
508
506
|
clearHistoryGapMark,
|
|
@@ -590,10 +588,10 @@ import {
|
|
|
590
588
|
GLOBAL_USER_PROFILE_PROJECT_PATH,
|
|
591
589
|
getProjectState,
|
|
592
590
|
bumpProjectUserProfileVersion
|
|
593
|
-
} from "./index-
|
|
591
|
+
} from "./index-em72jhc0.js";
|
|
594
592
|
import {
|
|
595
593
|
getLastIndexedOrdinal
|
|
596
|
-
} from "./index-
|
|
594
|
+
} from "./index-tyjx0dwz.js";
|
|
597
595
|
import {
|
|
598
596
|
SESSION_NOTE_CONDITION_ERROR,
|
|
599
597
|
getNoteByIdInScope,
|
|
@@ -619,7 +617,7 @@ import {
|
|
|
619
617
|
createPrimer,
|
|
620
618
|
updatePrimerSupport,
|
|
621
619
|
updatePrimerAnswer
|
|
622
|
-
} from "./index-
|
|
620
|
+
} from "./index-ab86c21b.js";
|
|
623
621
|
import {
|
|
624
622
|
registerNotificationSink2,
|
|
625
623
|
pushNotification2,
|
|
@@ -631,7 +629,7 @@ import {
|
|
|
631
629
|
getCachedLocalEmbeddingPooling,
|
|
632
630
|
preflightLocalEmbeddingPooling,
|
|
633
631
|
getLocalEmbeddingNativeMemoryStats
|
|
634
|
-
} from "./index-
|
|
632
|
+
} from "./index-nyjztqyj.js";
|
|
635
633
|
import {
|
|
636
634
|
withQueryEmbeddingDeadline,
|
|
637
635
|
describeShadowBackfillWriteRefusal2,
|
|
@@ -653,7 +651,7 @@ import {
|
|
|
653
651
|
embedSessionCompartmentChunks2,
|
|
654
652
|
getEmbeddingCoverageStatus2,
|
|
655
653
|
getAutoEmbeddingSessionCoverage2
|
|
656
|
-
} from "./index-
|
|
654
|
+
} from "./index-mhdavdd4.js";
|
|
657
655
|
import {
|
|
658
656
|
saveEmbeddingIfHashMatches,
|
|
659
657
|
invalidateProject2,
|
|
@@ -679,7 +677,7 @@ import {
|
|
|
679
677
|
readGitFileChangeTimesSince,
|
|
680
678
|
verificationFileExists,
|
|
681
679
|
normalizeVerificationFiles
|
|
682
|
-
} from "./index-
|
|
680
|
+
} from "./index-esym6cw4.js";
|
|
683
681
|
import {
|
|
684
682
|
computeCueContentHash,
|
|
685
683
|
hasMuralCueColumns,
|
|
@@ -727,13 +725,13 @@ import {
|
|
|
727
725
|
resolveMemoriesByIdsForSearch2,
|
|
728
726
|
unifiedSearch2,
|
|
729
727
|
formatSearchResults2
|
|
730
|
-
} from "./index-
|
|
728
|
+
} from "./index-dnxnj42p.js";
|
|
731
729
|
import {
|
|
732
730
|
scheduleReconciliation,
|
|
733
731
|
scheduleIncrementalIndex,
|
|
734
732
|
getMessageIndexQueueHeapStats,
|
|
735
733
|
clearSessionTracking
|
|
736
|
-
} from "./index-
|
|
734
|
+
} from "./index-h1xvt8fw.js";
|
|
737
735
|
import {
|
|
738
736
|
resolveModelCacheTtl,
|
|
739
737
|
resolveContextWindowGeometry,
|
|
@@ -832,24 +830,24 @@ import {
|
|
|
832
830
|
abortSessionFailClosed2,
|
|
833
831
|
evaluateEmergencyFailClosed2,
|
|
834
832
|
runPostTransformPhase2
|
|
835
|
-
} from "./index-
|
|
833
|
+
} from "./index-4qc8d9by.js";
|
|
836
834
|
import {
|
|
837
835
|
flushIgnoredMessages2,
|
|
838
836
|
clearIgnoredMessages2,
|
|
839
837
|
observeIgnoredNotificationEvent2,
|
|
840
838
|
sendStatusNotification2
|
|
841
|
-
} from "./index-
|
|
839
|
+
} from "./index-61a853ky.js";
|
|
842
840
|
import {
|
|
843
841
|
setRecompStarting2,
|
|
844
842
|
setRecompTerminal2
|
|
845
|
-
} from "./index-
|
|
843
|
+
} from "./index-5xrj3zp4.js";
|
|
846
844
|
import {
|
|
847
845
|
ANNOUNCEMENT_VERSION2,
|
|
848
846
|
ANNOUNCEMENT_FEATURES2,
|
|
849
847
|
ANNOUNCEMENT_FOOTER2,
|
|
850
848
|
markAnnouncementSeen2,
|
|
851
849
|
shouldShowAnnouncement2
|
|
852
|
-
} from "./index-
|
|
850
|
+
} from "./index-cayqdwf9.js";
|
|
853
851
|
import {
|
|
854
852
|
resolvePromptContext2
|
|
855
853
|
} from "./index-fmsr7v69.js";
|
|
@@ -857,14 +855,14 @@ import {
|
|
|
857
855
|
renderMessageByOrdinal2,
|
|
858
856
|
renderVerboseRangeForTool2,
|
|
859
857
|
renderItemByTag2
|
|
860
|
-
} from "./index-
|
|
858
|
+
} from "./index-9eqt7755.js";
|
|
861
859
|
import {
|
|
862
860
|
readV2ArchiveOffThread2
|
|
863
|
-
} from "./index-
|
|
861
|
+
} from "./index-xbna9akt.js";
|
|
864
862
|
import {
|
|
865
863
|
unresolvedLiveTailRefusal2,
|
|
866
864
|
renderSearchArchiveOffThread2
|
|
867
|
-
} from "./index-
|
|
865
|
+
} from "./index-0wj3jr8n.js";
|
|
868
866
|
import {
|
|
869
867
|
takeCoveredInstructionRows,
|
|
870
868
|
cloneKeepingCoveredInstructionMarks
|
|
@@ -889,7 +887,7 @@ import {
|
|
|
889
887
|
} from "./index-8ajstryz.js";
|
|
890
888
|
import {
|
|
891
889
|
logSlowWriteTransaction
|
|
892
|
-
} from "./index-
|
|
890
|
+
} from "./index-9awtk18w.js";
|
|
893
891
|
import {
|
|
894
892
|
canonicalProjectDirectory
|
|
895
893
|
} from "./index-knvkbfvh.js";
|
|
@@ -13252,20 +13250,24 @@ function pauseEmbedHistoryDrain(deps, sessionId) {
|
|
|
13252
13250
|
}
|
|
13253
13251
|
|
|
13254
13252
|
// src/hooks/magic-context/execute-flush.ts
|
|
13255
|
-
function executeFlush(db, sessionId) {
|
|
13253
|
+
function executeFlush(db, sessionId, onToolDrops) {
|
|
13256
13254
|
try {
|
|
13257
13255
|
const pendingOps = getPendingOps(db, sessionId);
|
|
13258
13256
|
if (pendingOps.length === 0) {
|
|
13259
13257
|
return "No pending operations to flush.";
|
|
13260
13258
|
}
|
|
13261
13259
|
let dropped = 0;
|
|
13262
|
-
db.transaction(() => {
|
|
13260
|
+
const toolDrops = db.transaction(() => {
|
|
13261
|
+
const toolDrops = onToolDrops ? getTagsByNumbers2(db, sessionId, pendingOps.map((op) => op.tagId)).filter((tag) => tag.type === "tool" && tag.status === "active").map((tag) => tag.tagNumber) : [];
|
|
13263
13262
|
for (const op of pendingOps) {
|
|
13264
13263
|
updateTagStatus2(db, sessionId, op.tagId, "dropped");
|
|
13265
13264
|
removePendingOp(db, sessionId, op.tagId);
|
|
13266
13265
|
dropped++;
|
|
13267
13266
|
}
|
|
13267
|
+
return toolDrops;
|
|
13268
13268
|
}).immediate();
|
|
13269
|
+
if (toolDrops.length > 0)
|
|
13270
|
+
onToolDrops?.(toolDrops);
|
|
13269
13271
|
const parts = [];
|
|
13270
13272
|
if (dropped > 0)
|
|
13271
13273
|
parts.push(`${dropped} dropped`);
|
|
@@ -16366,6 +16368,9 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16366
16368
|
const detail = buildStatusDetail(db, sessionId, dir, modelKey, rawConfig, liveSessionState, injectionBudgetTokens, moduleStatus, compactionEnabled);
|
|
16367
16369
|
if (showForkHistoryGap(db, sessionId))
|
|
16368
16370
|
detail.forkHistoryGap = true;
|
|
16371
|
+
const checkpointInstructions = args.readCheckpointInstructions?.(sessionId);
|
|
16372
|
+
if (checkpointInstructions?.tokens)
|
|
16373
|
+
detail.checkpointInstructions = checkpointInstructions;
|
|
16369
16374
|
if (args.hiddenCompletionExecutor?.capabilities.tools === false) {
|
|
16370
16375
|
detail.dreamerUnsupportedTasks = toolLoopDreamTasks();
|
|
16371
16376
|
}
|
|
@@ -16409,7 +16414,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16409
16414
|
return { count: buildCompartmentCount(db, sessionId, moduleStatus) };
|
|
16410
16415
|
});
|
|
16411
16416
|
const buildManagedCtx = async (db) => {
|
|
16412
|
-
const { deriveHistorianChunkTokens, resolveHistorianContextLimit } = await importPluginModule(() => import("./derive-budgets-
|
|
16417
|
+
const { deriveHistorianChunkTokens, resolveHistorianContextLimit } = await importPluginModule(() => import("./derive-budgets-vbv0fwsd.js"));
|
|
16413
16418
|
const { resolveHistorianModel } = await importPluginModule(() => import("./model-resolution-280gmqvd.js"));
|
|
16414
16419
|
const { userObservationCollectionEnabled, userObservationsRequested } = await importPluginModule(() => import("./task-config-vrebjxyy.js"));
|
|
16415
16420
|
const DEFAULT_HISTORIAN_TIMEOUT_MS = 10 * 60 * 1000;
|
|
@@ -16442,7 +16447,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16442
16447
|
return { ok: false, error: "no session" };
|
|
16443
16448
|
const readDirectory = args.readSessionDirectory;
|
|
16444
16449
|
if (readDirectory) {
|
|
16445
|
-
const { handoffHistoryWork } = await import("./history-owner-
|
|
16450
|
+
const { handoffHistoryWork } = await import("./history-owner-8dj31nyf.js");
|
|
16446
16451
|
const handed = await handoffHistoryWork({
|
|
16447
16452
|
storageDir: args.storageDir ?? getMagicContextStorageDir(),
|
|
16448
16453
|
directory,
|
|
@@ -16461,8 +16466,8 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16461
16466
|
const db = readDatabase();
|
|
16462
16467
|
if (!db)
|
|
16463
16468
|
return { ok: false, error: "db unavailable" };
|
|
16464
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
16465
|
-
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-
|
|
16469
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-9k91tkyx.js"));
|
|
16470
|
+
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-tfhs4dbc.js"));
|
|
16466
16471
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
16467
16472
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
16468
16473
|
return {
|
|
@@ -16520,7 +16525,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16520
16525
|
rpcServer.handle("wrapup", async (params) => {
|
|
16521
16526
|
const readDirectory = args.readSessionDirectory;
|
|
16522
16527
|
if (readDirectory && params.sessionId) {
|
|
16523
|
-
const { handoffHistoryWork } = await import("./history-owner-
|
|
16528
|
+
const { handoffHistoryWork } = await import("./history-owner-8dj31nyf.js");
|
|
16524
16529
|
const sessionId = String(params.sessionId);
|
|
16525
16530
|
const handed = await handoffHistoryWork({
|
|
16526
16531
|
storageDir: args.storageDir ?? getMagicContextStorageDir(),
|
|
@@ -16546,7 +16551,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16546
16551
|
const db = readDatabase();
|
|
16547
16552
|
if (!db)
|
|
16548
16553
|
return { ok: false, error: "db unavailable" };
|
|
16549
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
16554
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-41rt7etq.js"));
|
|
16550
16555
|
const model = await args.readSelectedSessionModel?.(sessionId) ?? liveSessionState.liveModelBySession.get(sessionId);
|
|
16551
16556
|
const window = resolveOpenCodeWrapupWindow(db, sessionId, model);
|
|
16552
16557
|
if (!window)
|
|
@@ -25624,6 +25629,7 @@ function createTransform(deps) {
|
|
|
25624
25629
|
onCompartmentStatePublished: (sid) => {
|
|
25625
25630
|
deferredHistoryRefreshSessions.add(sid);
|
|
25626
25631
|
deferredMaterializationSessions.add(sid);
|
|
25632
|
+
deps.onHistoryPublished?.(sid);
|
|
25627
25633
|
}
|
|
25628
25634
|
}, undefined, urgent ? undefined : prepareRecoveryBoundary);
|
|
25629
25635
|
return true;
|
|
@@ -25999,6 +26005,7 @@ ${notice}`, notificationParams));
|
|
|
25999
26005
|
onCompartmentStatePublished: (sid) => {
|
|
26000
26006
|
deferredHistoryRefreshSessions.add(sid);
|
|
26001
26007
|
deferredMaterializationSessions.add(sid);
|
|
26008
|
+
deps.onHistoryPublished?.(sid);
|
|
26002
26009
|
}
|
|
26003
26010
|
});
|
|
26004
26011
|
pendingCompartmentInjection = compartmentPhase.pendingCompartmentInjection;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionLog2
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-34xvre52.js";
|
|
4
4
|
import {
|
|
5
5
|
clearEmergencyRecovery
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-w6kcwhhj.js";
|
|
7
7
|
import {
|
|
8
8
|
requestPendingMaterialization,
|
|
9
9
|
dropSlot
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-em72jhc0.js";
|
|
11
11
|
import {
|
|
12
12
|
pausedRecompReason,
|
|
13
13
|
executeContextRecomp
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-9q7wzca8.js";
|
|
15
15
|
import {
|
|
16
16
|
renderUserFacingFailure,
|
|
17
17
|
userFacingFailureCode
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-esym6cw4.js";
|
|
19
19
|
|
|
20
20
|
// src/hooks/magic-context/recomp-orchestrator.ts
|
|
21
21
|
function resolveLiveModelKey(liveSessionState, sessionId) {
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
importPluginModule,
|
|
6
6
|
sessionLog2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-34xvre52.js";
|
|
8
8
|
import {
|
|
9
9
|
isDefaultSessionTitle2
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-y5f5yg5a.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldHoldIgnoredNotification
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-vdzd98ry.js";
|
|
14
14
|
import {
|
|
15
15
|
getErrorMessage
|
|
16
16
|
} from "./index-y8v6yerm.js";
|
|
@@ -142,7 +142,7 @@ async function sendIgnoredMessageNow(client, sessionId, text, params, forcePersi
|
|
|
142
142
|
holdIgnoredNotification({ client, sessionId, text, params, forcePersist }, "during target checks");
|
|
143
143
|
return "queued";
|
|
144
144
|
}
|
|
145
|
-
const { waitForSafeNotificationTarget } = await importPluginModule(() => import("./safe-notification-target-
|
|
145
|
+
const { waitForSafeNotificationTarget } = await importPluginModule(() => import("./safe-notification-target-01j8km9e.js"));
|
|
146
146
|
if (await waitForSafeNotificationTarget(client, sessionId) === "skip") {
|
|
147
147
|
sessionLog2(sessionId, "notification skipped (session not titled yet)");
|
|
148
148
|
return "skipped";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
importPluginModule,
|
|
3
3
|
log2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-34xvre52.js";
|
|
5
5
|
import {
|
|
6
6
|
sendStatusNotification2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-61a853ky.js";
|
|
8
8
|
import {
|
|
9
9
|
formatConflictShort
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-hbqxxb2n.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/conflict-warning-hook.ts
|
|
13
13
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionLog2
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-34xvre52.js";
|
|
4
4
|
import {
|
|
5
5
|
stripTagPrefix,
|
|
6
6
|
isRecord,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
estimateMessageTokens,
|
|
10
10
|
getCandidateToolOwners2,
|
|
11
11
|
pickNearestPriorOwner2
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-w6kcwhhj.js";
|
|
13
13
|
import {
|
|
14
14
|
OMO_INTERNAL_INITIATOR_MARKER,
|
|
15
15
|
isSystemDirective,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
formatBlock,
|
|
25
25
|
compactTextForSummary,
|
|
26
26
|
mergeCommitHashes
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-2m3t73wk.js";
|
|
28
28
|
import {
|
|
29
29
|
stableStringify
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-xtv4d4hv.js";
|
|
31
31
|
import {
|
|
32
32
|
renderToolTemplate
|
|
33
33
|
} from "./index-r3f85n7y.js";
|
|
@@ -47,13 +47,13 @@ import {
|
|
|
47
47
|
readRawSeedTailFromDb2,
|
|
48
48
|
readRawSessionBoundaryEndpointsFromDb2,
|
|
49
49
|
prewarmRawSessionOrdinalsForDb
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-jsbgw33b.js";
|
|
51
51
|
import {
|
|
52
52
|
openCodeDbExists,
|
|
53
53
|
withReadOnlySessionDb,
|
|
54
54
|
getRawSessionMessageCountFromDb,
|
|
55
55
|
getMessageTimesFromOpenCodeDb
|
|
56
|
-
} from "./index-
|
|
56
|
+
} from "./index-vdzd98ry.js";
|
|
57
57
|
import {
|
|
58
58
|
markHostUnservedRow,
|
|
59
59
|
isHostUnservedRow
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
estimateTokens
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-2m3t73wk.js";
|
|
4
4
|
import {
|
|
5
5
|
getTagById2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-w6kcwhhj.js";
|
|
7
7
|
import {
|
|
8
8
|
expandToolPart,
|
|
9
9
|
visitRawSessionMessages2,
|
|
10
10
|
readRawSessionMessageById2
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-8hhmv0ff.js";
|
|
12
12
|
|
|
13
13
|
// src/tools/ctx-expand/render.ts
|
|
14
14
|
import { createHash } from "node:crypto";
|