@cortexkit/opencode-magic-context 0.49.95 → 0.49.97
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-4ynkaf0d.js → announcement-8nj2jd87.js} +5 -5
- package/dist/auto-search-worker.js +5 -5
- package/dist/chunk-embedding-write-worker.js +16 -16
- package/dist/{compaction-marker-candidates-1ndjqh9k.js → compaction-marker-candidates-a4b0anvv.js} +3 -3
- package/dist/compaction-marker-candidates-worker.js +1 -1
- package/dist/{compartment-chunk-embedding-4nn3hsw2.js → compartment-chunk-embedding-re2cw7y3.js} +8 -8
- package/dist/config/removed-agent-config.d.ts +1 -1
- package/dist/config/removed-agent-config.d.ts.map +1 -1
- package/dist/config/schema/magic-context.d.ts +0 -75
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/{conflict-warning-hook-exf96bpt.js → conflict-warning-hook-wcq55y61.js} +8 -8
- package/dist/{context-h9x9m2p3.js → context-br04s0b6.js} +86 -104
- package/dist/{derive-budgets-hzzq71rm.js → derive-budgets-g1sy72e8.js} +5 -5
- package/dist/embedding-backfill-pdymqbnh.js +29 -0
- package/dist/embedding-worker-process.js +2 -2
- package/dist/embedding-worker.js +8 -8
- package/dist/features/magic-context/dreamer/token-budget.d.ts +2 -2
- package/dist/features/magic-context/dreamer/token-budget.d.ts.map +1 -1
- package/dist/features/magic-context/search-rerank.d.ts +2 -2
- package/dist/features/magic-context/search-rerank.d.ts.map +1 -1
- package/dist/features/magic-context/search.d.ts.map +1 -1
- package/dist/features/magic-context/storage-native-replay.d.ts +7 -0
- package/dist/features/magic-context/storage-native-replay.d.ts.map +1 -1
- package/dist/{history-owner-xqfsvf9k.js → history-owner-74826t4n.js} +3 -3
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts +6 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts +11 -1
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +2 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +1 -0
- package/dist/hooks/magic-context/transform-postprocess-phase.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-3ywyr4zx.js → index-0bjj9yf3.js} +2 -2
- package/dist/{index-7skgrbsg.js → index-0sqhg9nf.js} +41 -21
- package/dist/{index-nxxzeq4y.js → index-0ve29s6f.js} +1 -1
- package/dist/{index-ywrz4wy2.js → index-3fhb0j32.js} +1 -1
- package/dist/{index-gqf8r04r.js → index-3n4j5rqc.js} +1 -1
- package/dist/{index-xsqw8kbd.js → index-45qgkg8j.js} +2 -2
- package/dist/{index-5df2fw5b.js → index-6mryx739.js} +1 -1
- package/dist/{index-tedck05r.js → index-7m2tnk8q.js} +10 -10
- package/dist/{index-r4y0dczp.js → index-7sdns2ww.js} +2 -2
- package/dist/{index-mjy2k9jr.js → index-880a24vd.js} +1 -1
- package/dist/{index-esacb9d0.js → index-89bkkgcn.js} +4 -4
- package/dist/{index-s32f8y67.js → index-89xg64wb.js} +2 -2
- package/dist/{index-pc49a7zt.js → index-8v1brm5n.js} +13 -11
- package/dist/{index-qmm8xpbc.js → index-910gahfb.js} +6 -6
- package/dist/{index-47hst5me.js → index-9jvxq5rt.js} +4 -4
- package/dist/{index-832w615x.js → index-azkfw78y.js} +1 -1
- package/dist/{index-wh9fxds5.js → index-c205x7xd.js} +1 -1
- package/dist/{index-mg9s2rc3.js → index-cpbr0xvk.js} +2 -2
- package/dist/{index-cr483vx6.js → index-dj64gzg5.js} +2 -2
- package/dist/{index-jba6ny4m.js → index-dnpcv1rg.js} +4 -4
- package/dist/{index-z4p0ry94.js → index-dt7cyqfe.js} +2 -1
- package/dist/{index-tm799pq7.js → index-e6ay1gez.js} +1 -1
- package/dist/{index-j7n64sg4.js → index-fgw241hh.js} +2 -2
- package/dist/{index-yzzxb5e1.js → index-h7kta6cn.js} +3 -3
- package/dist/{index-q7q6qp1f.js → index-hedgz8an.js} +1 -1
- package/dist/{index-5pgyqgmx.js → index-hj78hvhm.js} +2 -2
- package/dist/{index-7r11k4xr.js → index-hp46xe93.js} +7 -7
- package/dist/{index-ejgp0z9p.js → index-j4dcjb8t.js} +4 -4
- package/dist/{index-e6ncz7a6.js → index-jzrvdqb8.js} +1 -1
- package/dist/{index-sp5pvs95.js → index-k34hc455.js} +2 -2
- package/dist/{index-9ffntwyr.js → index-kj4bprep.js} +4 -4
- package/dist/{index-xe34pwb6.js → index-mgy7g740.js} +1 -1
- package/dist/{index-2v9qpmb3.js → index-mmf6e740.js} +7 -7
- package/dist/{index-3tmbvn0z.js → index-pkxkeezb.js} +27 -19
- package/dist/{index-jm62g83a.js → index-qdjxrbnr.js} +71 -44
- package/dist/{index-xjaf9g90.js → index-r1d45dsr.js} +4 -4
- package/dist/{index-y915t3ey.js → index-r3f85n7y.js} +5 -1
- package/dist/{index-wqwjawer.js → index-tbdy1hk0.js} +6 -6
- package/dist/{index-m0pwswv9.js → index-tqtpgnhr.js} +1 -1
- package/dist/{index-zk6gtf43.js → index-w7n7qkpf.js} +5 -5
- package/dist/{index-ewta5h87.js → index-w9hxgntq.js} +5 -5
- package/dist/{index-2gewejcz.js → index-x49x59ar.js} +145 -32
- package/dist/{index-7dzaamqg.js → index-xcej5kpt.js} +4 -4
- package/dist/{index-s7460efs.js → index-zfx7mtqa.js} +1 -1
- package/dist/{index-c81tggen.js → index-zkjx8gq3.js} +11 -11
- package/dist/{index-et39x9k3.js → index-zmgp0tr6.js} +3 -3
- package/dist/index.js +58 -55
- package/dist/{logger-d7c8akh9.js → logger-nmb2508f.js} +2 -2
- package/dist/{message-fts-rowid-map-0xx8ge09.js → message-fts-rowid-map-vcatdan0.js} +5 -5
- package/dist/{message-index-bounded-d3x8rhpz.js → message-index-bounded-abhwe610.js} +12 -12
- package/dist/{message-time-backfill-pz5981mf.js → message-time-backfill-zc5rsvhv.js} +3 -3
- package/dist/migration-worker.js +13 -13
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/{project-embedding-registry-az68q792.js → project-embedding-registry-e566q4bg.js} +15 -15
- package/dist/raw-ordinal-warmup-worker.js +8 -8
- package/dist/{read-session-chunk-70r1snq3.js → read-session-chunk-sde0wym3.js} +10 -10
- package/dist/{read-session-raw-3sc9231y.js → read-session-raw-trhdgc9z.js} +3 -3
- package/dist/{recomp-orchestrator-cn4r2gz6.js → recomp-orchestrator-dapm3e4v.js} +33 -33
- package/dist/render-6vmqzcem.js +43 -0
- package/dist/{safe-notification-target-d21swr3n.js → safe-notification-target-54ns7dv9.js} +3 -3
- package/dist/{search-b0cb342r.js → search-11aw8wpq.js} +27 -27
- package/dist/{search-archive-s9t3exc1.js → search-archive-4bbn3ztv.js} +13 -13
- package/dist/{send-session-notification-0779tyd9.js → send-session-notification-gxrj4w1r.js} +6 -6
- package/dist/shared/host-sqlite-runtime.d.ts +3 -0
- package/dist/shared/host-sqlite-runtime.d.ts.map +1 -0
- package/dist/shared/redaction.d.ts.map +1 -1
- package/dist/shared/transcript.d.ts +14 -0
- package/dist/shared/transcript.d.ts.map +1 -1
- package/dist/{storage-tags-xvbje7jm.js → storage-tags-jq0c0zsn.js} +7 -7
- package/dist/{store-91kawq9a.js → store-29ksp6vy.js} +3 -3
- package/dist/{transform-postprocess-phase-r1xhsjrh.js → transform-postprocess-phase-1xrjg6be.js} +34 -34
- package/dist/v2/auto-search-worker.js +5 -5
- package/dist/v2/chunk-embedding-write-worker.js +16 -16
- package/dist/v2/{compaction-marker-candidates-bp1bn579.js → compaction-marker-candidates-6nypmsr3.js} +3 -3
- package/dist/v2/compaction-marker-candidates-worker.js +1 -1
- package/dist/v2/{compartment-chunk-embedding-a7ddvz7v.js → compartment-chunk-embedding-jthtfhcd.js} +8 -8
- package/dist/v2/{context-2hssw26q.js → context-43r0mzkp.js} +127 -111
- package/dist/v2/{derive-budgets-hr4qqrnv.js → derive-budgets-wj0q7s7d.js} +6 -6
- package/dist/v2/embedding-backfill-16b16m38.js +29 -0
- package/dist/v2/embedding-worker-process.js +2 -2
- package/dist/v2/embedding-worker.js +8 -8
- package/dist/v2/fold/native-replay.d.ts +2 -1
- package/dist/v2/fold/native-replay.d.ts.map +1 -1
- package/dist/v2/hidden-child-native.d.ts.map +1 -1
- package/dist/v2/hidden-child-record.d.ts +8 -0
- package/dist/v2/hidden-child-record.d.ts.map +1 -1
- package/dist/v2/hidden-completion.d.ts.map +1 -1
- package/dist/v2/hidden-run-holder.d.ts +8 -2
- package/dist/v2/hidden-run-holder.d.ts.map +1 -1
- package/dist/v2/{history-owner-260djmv5.js → history-owner-8pd5ax3n.js} +3 -3
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/hidden-child.d.ts +3 -0
- package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
- package/dist/v2/{logger-zyf43np1.js → logger-58jfese9.js} +2 -2
- package/dist/v2/{message-fts-rowid-map-n8mcvcpz.js → message-fts-rowid-map-ax4vk78j.js} +5 -5
- package/dist/v2/{message-index-bounded-tbwrff24.js → message-index-bounded-qh794qxx.js} +12 -12
- package/dist/v2/{message-time-backfill-ynb3vg6r.js → message-time-backfill-yj773saf.js} +3 -3
- package/dist/v2/migration-worker.js +13 -13
- package/dist/v2/{project-embedding-registry-2zeycxek.js → project-embedding-registry-z05xvckg.js} +15 -15
- package/dist/v2/raw-ordinal-warmup-worker.js +8 -8
- package/dist/v2/{read-session-chunk-cvgsfsgr.js → read-session-chunk-8tn2dbn1.js} +10 -10
- package/dist/v2/{read-session-raw-wg5zc29f.js → read-session-raw-ywebck9q.js} +3 -3
- package/dist/v2/recomp-orchestrator-vzygyqwn.js +69 -0
- package/dist/v2/render-9b5dxp9e.js +43 -0
- package/dist/v2/{safe-notification-target-y55z2zat.js → safe-notification-target-zrwbh6k7.js} +3 -3
- package/dist/v2/{search-x1cac8t6.js → search-35cz80x0.js} +26 -26
- package/dist/v2/{search-archive-k2yh0jj3.js → search-archive-8zqsf9e6.js} +13 -13
- package/dist/v2/{send-session-notification-v69y04f5.js → send-session-notification-8x146x5y.js} +6 -6
- package/dist/v2/{server-gj259dqy.js → server-11ra1pmx.js} +5 -5
- package/dist/v2/{server-6nh36020.js → server-1fnsfm3a.js} +132 -33
- package/dist/v2/{server-gs2251jr.js → server-2cq3e1c1.js} +4 -4
- package/dist/v2/{server-39bcszk4.js → server-2qvnr3t7.js} +1 -1
- package/dist/v2/{server-jkj1dq6j.js → server-2sare4qg.js} +4 -4
- package/dist/v2/{server-jdfe07mp.js → server-2wz6y46g.js} +1 -1
- package/dist/v2/{server-at0v0z4t.js → server-379fd3n7.js} +1 -1
- package/dist/v2/{server-ds8vpfkr.js → server-40vdz8sf.js} +2 -2
- package/dist/v2/{server-qntmqaca.js → server-4yrvbnnm.js} +2 -2
- package/dist/v2/{server-x69fqsvz.js → server-5t4nzfpt.js} +1 -1
- package/dist/v2/{server-npdey91q.js → server-63ree5ns.js} +1 -1
- package/dist/v2/{server-gqkdfdvw.js → server-6qax5pds.js} +2 -2
- package/dist/v2/{server-qb3s0mnc.js → server-73bqw5c0.js} +1 -1
- package/dist/v2/{server-qy58c11s.js → server-7h4gwphm.js} +4 -4
- package/dist/v2/{server-476anw1w.js → server-7tj8yzrv.js} +1 -1
- package/dist/v2/{server-e6xneh68.js → server-arfzfxe8.js} +5 -1
- package/dist/v2/{server-6ash6z8z.js → server-av3p9c8k.js} +1 -1
- package/dist/v2/{server-5hwf5c7r.js → server-bx5k66qc.js} +1 -1
- package/dist/v2/{server-s81b3nct.js → server-db91dxwc.js} +7 -7
- package/dist/v2/{server-z4p0ry94.js → server-dt7cyqfe.js} +2 -1
- package/dist/v2/{server-zc8s06gx.js → server-ganavh75.js} +2 -2
- package/dist/v2/{server-cvm1qrqc.js → server-gh2w75fn.js} +3 -3
- package/dist/v2/{server-y0pd600x.js → server-j1gxs1gj.js} +1 -1
- package/dist/v2/{server-xepfjgv5.js → server-k3ntgf6n.js} +2 -2
- package/dist/v2/{server-j8376q08.js → server-kzrrdjp5.js} +1 -1
- package/dist/v2/{server-1rrmxhd1.js → server-n33hyq9t.js} +2 -2
- package/dist/v2/{server-0tv6kytx.js → server-n34vzyfm.js} +1 -1
- package/dist/v2/{server-prrx17q3.js → server-nnh81jqy.js} +6 -6
- package/dist/v2/{server-cd93xyyx.js → server-qjjky07w.js} +13 -11
- package/dist/v2/{server-vbr1rdkg.js → server-r3h4fy4k.js} +4 -4
- package/dist/v2/{server-96nm9vk4.js → server-rr5c0xcg.js} +2 -2
- package/dist/v2/{server-j4jjtdc5.js → server-rt8t6s2a.js} +2 -2
- package/dist/v2/{server-srtq37nh.js → server-svccj9rd.js} +4 -4
- package/dist/v2/{server-5sbsnpkn.js → server-tq523gj6.js} +1 -1
- package/dist/v2/{server-00adcfjd.js → server-vj0xbbrc.js} +17 -3
- package/dist/v2/{server-88pjnecb.js → server-vsx9tsks.js} +11 -11
- package/dist/v2/{server-s8mk882p.js → server-xekyjy4w.js} +6 -6
- package/dist/v2/{server-bfct1yvb.js → server-z2nv8jdv.js} +41 -21
- package/dist/v2/{server-6aj72z52.js → server-z5cv5wm5.js} +10 -10
- package/dist/v2/{server-5016ccyn.js → server-zemnpv92.js} +4 -4
- package/dist/v2/server.js +9 -9
- package/dist/v2/{storage-tags-y20j3jdp.js → storage-tags-pcenytad.js} +7 -7
- package/dist/v2/{store-b95snz31.js → store-gx19qc3a.js} +3 -3
- package/dist/v2/{v2-archive-reader-q92kwkr5.js → v2-archive-reader-hvdyz30c.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-ydqkxkhj.js → wrapup-orchestrator-0d4ceff3.js} +34 -34
- package/dist/{v2-archive-reader-x62hsr4c.js → v2-archive-reader-qs24chs6.js} +1 -1
- package/dist/wrapup-orchestrator-v1mhjw55.js +56 -0
- package/package.json +1 -1
- package/src/config/index.test.ts +23 -5
- package/src/config/live-run-config.test.ts +7 -7
- package/src/config/removed-agent-config.ts +14 -1
- package/src/config/schema/magic-context.ts +5 -1
- package/src/shared/host-sqlite-runtime.test.ts +21 -0
- package/src/shared/host-sqlite-runtime.ts +32 -0
- package/src/shared/redaction.test.ts +11 -8
- package/src/shared/redaction.ts +5 -1
- package/src/shared/tag-transcript.ts +61 -10
- package/src/shared/transcript.ts +16 -0
- package/dist/embedding-backfill-wdrqkw09.js +0 -29
- package/dist/render-g45k3gts.js +0 -43
- package/dist/v2/embedding-backfill-gveter8p.js +0 -29
- package/dist/v2/recomp-orchestrator-k4cj62f2.js +0 -69
- package/dist/v2/render-ys7a3zks.js +0 -43
- package/dist/wrapup-orchestrator-kt81d6et.js +0 -56
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
tokenCountUsesByteBound,
|
|
11
11
|
estimateTokens,
|
|
12
12
|
createTokenCountMemo
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-zfx7mtqa.js";
|
|
14
14
|
import {
|
|
15
15
|
getHarness2
|
|
16
16
|
} from "./index-pavzsdc6.js";
|
|
17
17
|
import {
|
|
18
18
|
sessionLog2
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-3fhb0j32.js";
|
|
20
20
|
import {
|
|
21
21
|
tagIdentityRevisionKey,
|
|
22
22
|
tagOrderConstraintIndex,
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
getToolDefinitionMeasurementSignature,
|
|
26
26
|
getMeasuredToolDefinitionTokens,
|
|
27
27
|
getSessionToolDefinitionTokens
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-cpbr0xvk.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveModelConfigValue,
|
|
31
31
|
DEFAULT_PROTECTED_TOOLS,
|
|
32
32
|
normalizeProtectedToolName,
|
|
33
33
|
mergeProtectedTools,
|
|
34
34
|
deriveDefaultProtectedTokens
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-r3f85n7y.js";
|
|
36
36
|
import {
|
|
37
37
|
getTagIdentityWriteGeneration2,
|
|
38
38
|
getSqliteDatabasePath2,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./index-avwt563y.js";
|
|
45
45
|
import {
|
|
46
46
|
logSlowWriteTransaction
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-tqtpgnhr.js";
|
|
48
48
|
|
|
49
49
|
// src/shared/record-type-guard.ts
|
|
50
50
|
function isRecord(value) {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionLog2
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-3fhb0j32.js";
|
|
4
4
|
import {
|
|
5
5
|
clearEmergencyRecovery
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-w7n7qkpf.js";
|
|
7
7
|
import {
|
|
8
8
|
requestPendingMaterialization,
|
|
9
9
|
dropSlot
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-8v1brm5n.js";
|
|
11
11
|
import {
|
|
12
12
|
pausedRecompReason,
|
|
13
13
|
executeContextRecomp
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-x49x59ar.js";
|
|
15
15
|
import {
|
|
16
16
|
renderUserFacingFailure,
|
|
17
17
|
userFacingFailureCode
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-910gahfb.js";
|
|
19
19
|
|
|
20
20
|
// src/hooks/magic-context/recomp-orchestrator.ts
|
|
21
21
|
function resolveLiveModelKey(liveSessionState, sessionId) {
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
getRawSessionTagKeysThrough2,
|
|
36
36
|
getLegacyProtectedTailStartOrdinal2,
|
|
37
37
|
readSessionChunk2
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-hp46xe93.js";
|
|
39
39
|
import {
|
|
40
40
|
getHarness2,
|
|
41
41
|
harnessOwnsOpenCodeStore2
|
|
@@ -44,10 +44,10 @@ import {
|
|
|
44
44
|
getMagicContextHistorianSessionDir,
|
|
45
45
|
log2,
|
|
46
46
|
sessionLog2
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-3fhb0j32.js";
|
|
48
48
|
import {
|
|
49
49
|
sanitizeDiagnosticText
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-dt7cyqfe.js";
|
|
51
51
|
import {
|
|
52
52
|
createScanner,
|
|
53
53
|
parseTree,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
import {
|
|
65
65
|
ensureStorageDirectorySync,
|
|
66
66
|
writeStorageFileAtomicSync
|
|
67
|
-
} from "./index-
|
|
67
|
+
} from "./index-6mryx739.js";
|
|
68
68
|
import {
|
|
69
69
|
catalogOutputReserve,
|
|
70
70
|
setOutputReserveConfig,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
deriveTriggerBudget2,
|
|
75
75
|
resolveHistorianProducerLimits2,
|
|
76
76
|
producerSourceLocalBudget2
|
|
77
|
-
} from "./index-
|
|
77
|
+
} from "./index-45qgkg8j.js";
|
|
78
78
|
import {
|
|
79
79
|
isCompactionEnabled,
|
|
80
80
|
migrateLegacyAgentEnabledInMemory,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
ConfigProfilesSchema,
|
|
94
94
|
MagicContextConfigSchema,
|
|
95
95
|
LIVE_RELOAD_CONFIG_PATHS
|
|
96
|
-
} from "./index-
|
|
96
|
+
} from "./index-r3f85n7y.js";
|
|
97
97
|
import {
|
|
98
98
|
providerMass,
|
|
99
99
|
calibrationForModelKey,
|
|
@@ -102,11 +102,12 @@ import {
|
|
|
102
102
|
import {
|
|
103
103
|
hasMeaningfulUserText2,
|
|
104
104
|
estimateTokens,
|
|
105
|
+
createTokenCountMemo,
|
|
105
106
|
estimateFixedPromptTokens
|
|
106
|
-
} from "./index-
|
|
107
|
+
} from "./index-zfx7mtqa.js";
|
|
107
108
|
import {
|
|
108
109
|
FAIL_CLOSED_DOCTOR_COMMAND
|
|
109
|
-
} from "./index-
|
|
110
|
+
} from "./index-c205x7xd.js";
|
|
110
111
|
import {
|
|
111
112
|
inRootAsyncContext2,
|
|
112
113
|
Database2,
|
|
@@ -117,13 +118,13 @@ import {
|
|
|
117
118
|
import {
|
|
118
119
|
shouldSkipHomeProjectMemory,
|
|
119
120
|
resolveProjectIdentity
|
|
120
|
-
} from "./index-
|
|
121
|
+
} from "./index-hj78hvhm.js";
|
|
121
122
|
import {
|
|
122
123
|
getSchemaFenceRejection,
|
|
123
124
|
LATEST_SUPPORTED_VERSION,
|
|
124
125
|
getPersistedSchemaVersion,
|
|
125
126
|
openDatabase
|
|
126
|
-
} from "./index-
|
|
127
|
+
} from "./index-zkjx8gq3.js";
|
|
127
128
|
import {
|
|
128
129
|
areRustHistorianSyntheticParts2,
|
|
129
130
|
isStrictGapHealingMessage2,
|
|
@@ -131,7 +132,7 @@ import {
|
|
|
131
132
|
RawOrdinalsNotReady2,
|
|
132
133
|
dropRawSessionOrdinalCheckpoints2,
|
|
133
134
|
runSessionWarmupWorker
|
|
134
|
-
} from "./index-
|
|
135
|
+
} from "./index-hedgz8an.js";
|
|
135
136
|
import {
|
|
136
137
|
parseCompartmentOutput,
|
|
137
138
|
resolveWorkspaceShareCategories,
|
|
@@ -140,10 +141,10 @@ import {
|
|
|
140
141
|
resolveStoredPathWorkspaceIdentity,
|
|
141
142
|
sourceNameForMemory,
|
|
142
143
|
computeWorkspaceEpochFingerprint
|
|
143
|
-
} from "./index-
|
|
144
|
+
} from "./index-dnpcv1rg.js";
|
|
144
145
|
import {
|
|
145
146
|
BoundedSessionMap
|
|
146
|
-
} from "./index-
|
|
147
|
+
} from "./index-cpbr0xvk.js";
|
|
147
148
|
import {
|
|
148
149
|
V2_MEMORY_CATEGORIES,
|
|
149
150
|
CATEGORY_PRIORITY,
|
|
@@ -167,7 +168,7 @@ import {
|
|
|
167
168
|
replaceCompartmentChunkEmbeddings2,
|
|
168
169
|
deleteChunkEmbedBackoffForSession2,
|
|
169
170
|
chunkWindowSourceKey2
|
|
170
|
-
} from "./index-
|
|
171
|
+
} from "./index-j4dcjb8t.js";
|
|
171
172
|
import {
|
|
172
173
|
COMPARTMENT_LEASE_RENEWAL_MS,
|
|
173
174
|
getCompartmentLeaseBlocker,
|
|
@@ -215,14 +216,14 @@ import {
|
|
|
215
216
|
getProjectState,
|
|
216
217
|
recordSubagentInvocation,
|
|
217
218
|
getLatestHistorianInvocationId
|
|
218
|
-
} from "./index-
|
|
219
|
+
} from "./index-8v1brm5n.js";
|
|
219
220
|
import {
|
|
220
221
|
clearCompressionDepth,
|
|
221
222
|
clearCompressionDepthRange,
|
|
222
223
|
toMessageIndexSource,
|
|
223
224
|
clearIndexedMessagesInTransaction,
|
|
224
225
|
indexSourcesAfterOrdinal
|
|
225
|
-
} from "./index-
|
|
226
|
+
} from "./index-89bkkgcn.js";
|
|
226
227
|
import {
|
|
227
228
|
stripWellFormedLeadingTagPrefix,
|
|
228
229
|
peelLeadingMcTagNotation,
|
|
@@ -273,17 +274,17 @@ import {
|
|
|
273
274
|
foldShrunkPartTags2,
|
|
274
275
|
getTagNumberByMessageId2,
|
|
275
276
|
getActiveTagsBySession2
|
|
276
|
-
} from "./index-
|
|
277
|
+
} from "./index-w7n7qkpf.js";
|
|
277
278
|
import {
|
|
278
279
|
openCodeDbExists,
|
|
279
280
|
withReadOnlySessionDb,
|
|
280
281
|
getMessageTimesFromOpenCodeDb
|
|
281
|
-
} from "./index-
|
|
282
|
+
} from "./index-k34hc455.js";
|
|
282
283
|
import {
|
|
283
284
|
getSessionNotes,
|
|
284
285
|
getReadySmartNotes,
|
|
285
286
|
insertPrimerCandidates
|
|
286
|
-
} from "./index-
|
|
287
|
+
} from "./index-880a24vd.js";
|
|
287
288
|
import {
|
|
288
289
|
pushNotification2
|
|
289
290
|
} from "./index-y14pawe1.js";
|
|
@@ -301,13 +302,13 @@ import {
|
|
|
301
302
|
getProjectChunkEmbeddingModelId2,
|
|
302
303
|
getProjectEmbeddingMaxInputTokens2,
|
|
303
304
|
embedItemsWindowBounded2
|
|
304
|
-
} from "./index-
|
|
305
|
+
} from "./index-7m2tnk8q.js";
|
|
305
306
|
import {
|
|
306
307
|
renderUserFacingFailure,
|
|
307
308
|
userFacingFailureCode,
|
|
308
309
|
promoteSessionFactsDurable,
|
|
309
310
|
embedPromotedFacts
|
|
310
|
-
} from "./index-
|
|
311
|
+
} from "./index-910gahfb.js";
|
|
311
312
|
import {
|
|
312
313
|
isMarkerCandidateBasisCurrent2,
|
|
313
314
|
invalidateMarkerCandidateBasis2,
|
|
@@ -318,10 +319,10 @@ import {
|
|
|
318
319
|
certifiedMarkerReferenceFloor2,
|
|
319
320
|
readMarkerReferenceRows2,
|
|
320
321
|
readKnownMarkerReferenceRows2
|
|
321
|
-
} from "./index-
|
|
322
|
+
} from "./index-azkfw78y.js";
|
|
322
323
|
import {
|
|
323
324
|
sendStatusNotification2
|
|
324
|
-
} from "./index-
|
|
325
|
+
} from "./index-kj4bprep.js";
|
|
325
326
|
import {
|
|
326
327
|
retreatPastHostUnservedRows,
|
|
327
328
|
snapTerminalCompartmentToServedRow,
|
|
@@ -341,7 +342,7 @@ import {
|
|
|
341
342
|
import {
|
|
342
343
|
logSlowWriteTransaction,
|
|
343
344
|
WriteTransactionSteps
|
|
344
|
-
} from "./index-
|
|
345
|
+
} from "./index-tqtpgnhr.js";
|
|
345
346
|
import {
|
|
346
347
|
sameProjectDirectory
|
|
347
348
|
} from "./index-knvkbfvh.js";
|
|
@@ -2543,6 +2544,7 @@ function loadRawConfigFile(options) {
|
|
|
2543
2544
|
|
|
2544
2545
|
// src/config/removed-agent-config.ts
|
|
2545
2546
|
var REMOVED_AGENT_CONFIG_KEY = "sidekick";
|
|
2547
|
+
var REMOVED_DREAMER_KEYS = ["prompt", "tools", "permission"];
|
|
2546
2548
|
var REMOVED_AGENT_CONFIG_WARNING = `The "${REMOVED_AGENT_CONFIG_KEY}" configuration was removed and is ignored.`;
|
|
2547
2549
|
function isPlainObject3(value) {
|
|
2548
2550
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -2572,6 +2574,19 @@ function stripRemovedAgentConfig(rawConfig, warnings) {
|
|
|
2572
2574
|
if (removed && !warnings.includes(REMOVED_AGENT_CONFIG_WARNING)) {
|
|
2573
2575
|
warnings.push(REMOVED_AGENT_CONFIG_WARNING);
|
|
2574
2576
|
}
|
|
2577
|
+
if (isPlainObject3(patched.dreamer)) {
|
|
2578
|
+
const dreamer = { ...patched.dreamer };
|
|
2579
|
+
for (const key of REMOVED_DREAMER_KEYS) {
|
|
2580
|
+
if (!Object.hasOwn(dreamer, key))
|
|
2581
|
+
continue;
|
|
2582
|
+
delete dreamer[key];
|
|
2583
|
+
removed = true;
|
|
2584
|
+
const warning = `dreamer.${key} has no effect; remove it from your settings.`;
|
|
2585
|
+
if (!warnings.includes(warning))
|
|
2586
|
+
warnings.push(warning);
|
|
2587
|
+
}
|
|
2588
|
+
patched.dreamer = dreamer;
|
|
2589
|
+
}
|
|
2575
2590
|
return removed ? patched : rawConfig;
|
|
2576
2591
|
}
|
|
2577
2592
|
|
|
@@ -4749,8 +4764,92 @@ function withoutHistorianTailCache(body) {
|
|
|
4749
4764
|
// src/v2/hidden-run-holder.ts
|
|
4750
4765
|
import { createHash as createHash3, randomUUID } from "node:crypto";
|
|
4751
4766
|
import { stat } from "node:fs/promises";
|
|
4767
|
+
|
|
4768
|
+
// src/v2/hidden-child-record.ts
|
|
4769
|
+
function keptUnderRetention(keepSubagents, child) {
|
|
4770
|
+
return keepSubagents && (child.ever_settled === true || child.role === "historian");
|
|
4771
|
+
}
|
|
4772
|
+
function roleTitle(role) {
|
|
4773
|
+
return role === "historian" ? "Magic Context historian" : "Magic Context dreamer";
|
|
4774
|
+
}
|
|
4775
|
+
function roleAgent(role) {
|
|
4776
|
+
if (role === "historian")
|
|
4777
|
+
return HIDDEN_HISTORIAN_AGENT;
|
|
4778
|
+
return role === "dreamer-curate" ? HIDDEN_CURATE_AGENT : HIDDEN_DREAMER_AGENT;
|
|
4779
|
+
}
|
|
4780
|
+
function childCreateInput(identity, role, model) {
|
|
4781
|
+
const agent = hiddenToolLoop(identity) ? hiddenAgentFor(identity) : roleAgent(role);
|
|
4782
|
+
return {
|
|
4783
|
+
title: roleTitle(role),
|
|
4784
|
+
agent,
|
|
4785
|
+
model: {
|
|
4786
|
+
providerID: model.providerID,
|
|
4787
|
+
id: model.modelID,
|
|
4788
|
+
...model.variant ? { variant: model.variant } : {}
|
|
4789
|
+
},
|
|
4790
|
+
location: { directory: identity.directory },
|
|
4791
|
+
metadata: { magic_context: "hidden-run", role },
|
|
4792
|
+
permissions: hiddenChildPermissions(agent, model.providerID)
|
|
4793
|
+
};
|
|
4794
|
+
}
|
|
4795
|
+
function assistantOutcome(row) {
|
|
4796
|
+
const outcome = row?.data.outcome;
|
|
4797
|
+
return outcome === "succeeded" || outcome === "failed" || outcome === "interrupted" ? outcome : undefined;
|
|
4798
|
+
}
|
|
4799
|
+
function withReader(openReader, read) {
|
|
4800
|
+
const reader = openReader();
|
|
4801
|
+
try {
|
|
4802
|
+
return read(reader);
|
|
4803
|
+
} finally {
|
|
4804
|
+
reader.close?.();
|
|
4805
|
+
}
|
|
4806
|
+
}
|
|
4807
|
+
function errorText(value) {
|
|
4808
|
+
if (value instanceof Error)
|
|
4809
|
+
return value.message;
|
|
4810
|
+
if (typeof value === "string")
|
|
4811
|
+
return value;
|
|
4812
|
+
try {
|
|
4813
|
+
return JSON.stringify(value);
|
|
4814
|
+
} catch {
|
|
4815
|
+
return String(value);
|
|
4816
|
+
}
|
|
4817
|
+
}
|
|
4818
|
+
|
|
4819
|
+
// src/v2/hidden-run-holder.ts
|
|
4752
4820
|
var HOLDER_PREFIX = "ses_mc_bg_";
|
|
4753
4821
|
var HOLDER_CANDIDATES = 3;
|
|
4822
|
+
var HOLDER_ARCHIVE_TIMEOUT_MS = 250;
|
|
4823
|
+
var archivingHolders = new Set;
|
|
4824
|
+
var loggedArchiveFailure = false;
|
|
4825
|
+
function supportsHolderArchive(version) {
|
|
4826
|
+
const release = version?.match(/^2\.(\d+)\.(\d+)$/);
|
|
4827
|
+
return !release || Number(release[1]) > 4 || Number(release[1]) === 4 && Number(release[2]) >= 3;
|
|
4828
|
+
}
|
|
4829
|
+
function archiveBackgroundHolder(id, archive) {
|
|
4830
|
+
if (archivingHolders.has(id))
|
|
4831
|
+
return;
|
|
4832
|
+
archivingHolders.add(id);
|
|
4833
|
+
(async () => {
|
|
4834
|
+
let timer;
|
|
4835
|
+
try {
|
|
4836
|
+
await Promise.race([
|
|
4837
|
+
Promise.resolve().then(() => archive.update({ sessionID: id, archived: true })),
|
|
4838
|
+
new Promise((_, reject) => {
|
|
4839
|
+
timer = setTimeout(() => reject(new Error(`session.update timed out after ${HOLDER_ARCHIVE_TIMEOUT_MS}ms`)), HOLDER_ARCHIVE_TIMEOUT_MS);
|
|
4840
|
+
})
|
|
4841
|
+
]);
|
|
4842
|
+
} catch (error) {
|
|
4843
|
+
if (!loggedArchiveFailure) {
|
|
4844
|
+
loggedArchiveFailure = true;
|
|
4845
|
+
archive.log(`[magic-context] could not archive background holder ${id}: ${errorText(error)}`);
|
|
4846
|
+
}
|
|
4847
|
+
} finally {
|
|
4848
|
+
clearTimeout(timer);
|
|
4849
|
+
archivingHolders.delete(id);
|
|
4850
|
+
}
|
|
4851
|
+
})();
|
|
4852
|
+
}
|
|
4754
4853
|
function isHiddenRunHolder(id) {
|
|
4755
4854
|
return id.startsWith(HOLDER_PREFIX);
|
|
4756
4855
|
}
|
|
@@ -4760,7 +4859,7 @@ function supportsQuietHiddenChildren(version) {
|
|
|
4760
4859
|
function matchesHiddenRunLocation(wanted, returned) {
|
|
4761
4860
|
return sameProjectDirectory(wanted, returned ?? "");
|
|
4762
4861
|
}
|
|
4763
|
-
async function hiddenRunPlacement(createHolder, directory, budget) {
|
|
4862
|
+
async function hiddenRunPlacement(createHolder, directory, budget, archive) {
|
|
4764
4863
|
const work = budget?.work ?? ((start) => start());
|
|
4765
4864
|
budget?.setStage("checking the holder directory");
|
|
4766
4865
|
if (!(await work(() => stat(directory))).isDirectory())
|
|
@@ -4779,6 +4878,8 @@ async function hiddenRunPlacement(createHolder, directory, budget) {
|
|
|
4779
4878
|
if (holder.id !== id || holder.parentID)
|
|
4780
4879
|
throw new Error(`OpenCode did not return the expected background holder ${id}`);
|
|
4781
4880
|
if (holder.metadata?.magic_context === "background-holder" && matchesHiddenRunLocation(directory, holder.location?.directory)) {
|
|
4881
|
+
if (archive && holder.time?.archived == null)
|
|
4882
|
+
archiveBackgroundHolder(id, archive);
|
|
4782
4883
|
return { id: `ses_aut_${randomUUID()}`, parentID: id };
|
|
4783
4884
|
}
|
|
4784
4885
|
displaced.push(id);
|
|
@@ -5226,6 +5327,12 @@ class HiddenChildHook {
|
|
|
5226
5327
|
onBudgetUpdate({ ...selected.budget.snapshot(), sessionId: draft.sessionID });
|
|
5227
5328
|
}
|
|
5228
5329
|
}
|
|
5330
|
+
if (selected.budget) {
|
|
5331
|
+
const count = selected.countRequestText ??= createTokenCountMemo(256, 2 * 1024 * 1024);
|
|
5332
|
+
const messageTokens = draft.messages.reduce((total, message) => total + count(JSON.stringify(message.content ?? message.parts) ?? ""), 0);
|
|
5333
|
+
const toolTokens = Object.values(draft.tools).reduce((total, tool) => total + count(tool.description) + count(JSON.stringify(tool.input) ?? ""), 0);
|
|
5334
|
+
(selected.requestTokenEstimates ??= []).push(count(systemText) + messageTokens + toolTokens);
|
|
5335
|
+
}
|
|
5229
5336
|
selected.observedMessages = draft.messages;
|
|
5230
5337
|
selected.shaped = true;
|
|
5231
5338
|
return true;
|
|
@@ -10397,11 +10504,12 @@ function clearDegradedRebuild(sessionId) {
|
|
|
10397
10504
|
degradedRebuildCountBySession.delete(sessionId);
|
|
10398
10505
|
reAnchorLoggedBySession.delete(sessionId);
|
|
10399
10506
|
}
|
|
10400
|
-
function logReanchorOnce(sessionId, message) {
|
|
10507
|
+
function logReanchorOnce(sessionId, message, quiet) {
|
|
10401
10508
|
if (reAnchorLoggedBySession.get(sessionId))
|
|
10402
10509
|
return;
|
|
10403
10510
|
reAnchorLoggedBySession.set(sessionId, true);
|
|
10404
|
-
|
|
10511
|
+
if (!quiet)
|
|
10512
|
+
sessionLog2(sessionId, message);
|
|
10405
10513
|
}
|
|
10406
10514
|
function findVisibleReanchorIndex(compartments, visibleMessageIds) {
|
|
10407
10515
|
for (let index = compartments.length - 1;index >= 0; index -= 1) {
|
|
@@ -10528,7 +10636,9 @@ function cutCoveredPrefix(messages, count, coveredInstructions) {
|
|
|
10528
10636
|
coveredInstructions.push(message);
|
|
10529
10637
|
}
|
|
10530
10638
|
}
|
|
10531
|
-
function prepareCompartmentInjection(db, sessionId, messages, isCacheBusting, coveredInstructions, projectPath, injectionBudgetTokens, temporalAwareness, frozenBaseline) {
|
|
10639
|
+
function prepareCompartmentInjection(db, sessionId, messages, isCacheBusting, coveredInstructions, projectPath, injectionBudgetTokens, temporalAwareness, frozenBaseline, restoredBoundaryDiagnostic) {
|
|
10640
|
+
if (restoredBoundaryDiagnostic)
|
|
10641
|
+
restoredBoundaryDiagnostic.expectedAbsence = false;
|
|
10532
10642
|
const cached = injectionCache.get(sessionId);
|
|
10533
10643
|
if (cached && cached.db !== db) {
|
|
10534
10644
|
clearInjectionCache(sessionId);
|
|
@@ -10674,6 +10784,9 @@ function prepareCompartmentInjection(db, sessionId, messages, isCacheBusting, co
|
|
|
10674
10784
|
resultEndMessageId = trimEndMessageId;
|
|
10675
10785
|
resultEndMessagePartial = trimEndMessagePartial;
|
|
10676
10786
|
} else {
|
|
10787
|
+
const quiet = restoredBoundaryDiagnostic?.restoredAfterId === trimEndMessageId;
|
|
10788
|
+
if (restoredBoundaryDiagnostic)
|
|
10789
|
+
restoredBoundaryDiagnostic.expectedAbsence = quiet;
|
|
10677
10790
|
const degradedCount = noteDegradedRebuild(sessionId);
|
|
10678
10791
|
if (isCacheBusting) {
|
|
10679
10792
|
reconcileForkOrphanedCompactionMarkers(db, sessionId, isCacheBusting);
|
|
@@ -10696,14 +10809,14 @@ function prepareCompartmentInjection(db, sessionId, messages, isCacheBusting, co
|
|
|
10696
10809
|
resultEndMessage = reAnchorCompartment.endMessage;
|
|
10697
10810
|
resultEndMessageId = reAnchorCompartment.endMessageId;
|
|
10698
10811
|
reAnchored = true;
|
|
10699
|
-
logReanchorOnce(sessionId, `compartment injection re-anchored: natural boundary ${trimEndMessageId} not visible for ${degradedCount} passes; splicing at visible compartment boundary ${resultEndMessageId} (ordinal ${resultEndMessage})
|
|
10812
|
+
logReanchorOnce(sessionId, `compartment injection re-anchored: natural boundary ${trimEndMessageId} not visible for ${degradedCount} passes; splicing at visible compartment boundary ${resultEndMessageId} (ordinal ${resultEndMessage})`, quiet);
|
|
10700
10813
|
}
|
|
10701
10814
|
}
|
|
10702
10815
|
if (!reAnchored) {
|
|
10703
10816
|
needsFreshMaterialization = true;
|
|
10704
|
-
logReanchorOnce(sessionId, `compartment injection degraded: boundary ${trimEndMessageId} not visible for ${degradedCount} passes and no compartment boundary is visible; requesting fresh materialization to re-cut the baseline
|
|
10817
|
+
logReanchorOnce(sessionId, `compartment injection degraded: boundary ${trimEndMessageId} not visible for ${degradedCount} passes and no compartment boundary is visible; requesting fresh materialization to re-cut the baseline`, quiet);
|
|
10705
10818
|
}
|
|
10706
|
-
} else {
|
|
10819
|
+
} else if (!quiet) {
|
|
10707
10820
|
sessionLog2(sessionId, `compartment injection entering degraded mode: boundary ${trimEndMessageId} not in visible messages (consecutive degraded passes: ${degradedCount})`);
|
|
10708
10821
|
}
|
|
10709
10822
|
}
|
|
@@ -19847,4 +19960,4 @@ async function executeContextRecomp(deps, options = {}) {
|
|
|
19847
19960
|
return (await executeContextRecompWithResult(deps, options)).message;
|
|
19848
19961
|
}
|
|
19849
19962
|
|
|
19850
|
-
export { denyTaskRoutingToCallerAgents, buildHiddenAgentRegistrations, buildZenReadAgentRegistrations, buildHiddenAgentConfig, getMagicContextBuiltinCommands, formatConfigParseStatusLine, claimConfigParseFailuresOnce, isCommitRetentionPaused, cortexKitUserConfigBasePath, cortexKitProjectConfigBasePath, resolveLegacyConfigSources, migrateMagicContextConfigLocations, getProtectedTokensTierOverrides, loadPluginConfigDetailed, historianRunConfig, dreamerRunConfig, pluginConfigReader, currentPluginConfigReader, withLiveDreamerOutputCap, createDreamerOutputCapSampler, COMPARTMENT_AGENT_SYSTEM_PROMPT, HISTORIAN_EDITOR_SYSTEM_PROMPT, COMPARTMENT_STRUCTURAL_SYSTEM_PROMPT, clampProducerAtomChars, producerInputTokenLimit, historianProducerReserve, producerPromptFailureReason, DREAMER_AGENT, DREAMER_RETROSPECTIVE_AGENT, DREAMER_PRIMER_INVESTIGATOR_AGENT, DREAMER_MEMORY_MAPPER_AGENT, DREAMER_CLASSIFIER_AGENT, DREAMER_DOCS_AGENT, DREAMER_REVIEWER_AGENT, createChildSessionWithFence, HiddenCompletionRefusal, DreamerProviderOutputFailureError, providerOutputFailureFromInvalidManifest,
|
|
19963
|
+
export { denyTaskRoutingToCallerAgents, buildHiddenAgentRegistrations, buildZenReadAgentRegistrations, buildHiddenAgentConfig, getMagicContextBuiltinCommands, formatConfigParseStatusLine, claimConfigParseFailuresOnce, isCommitRetentionPaused, cortexKitUserConfigBasePath, cortexKitProjectConfigBasePath, resolveLegacyConfigSources, migrateMagicContextConfigLocations, getProtectedTokensTierOverrides, loadPluginConfigDetailed, historianRunConfig, dreamerRunConfig, pluginConfigReader, currentPluginConfigReader, withLiveDreamerOutputCap, createDreamerOutputCapSampler, COMPARTMENT_AGENT_SYSTEM_PROMPT, HISTORIAN_EDITOR_SYSTEM_PROMPT, COMPARTMENT_STRUCTURAL_SYSTEM_PROMPT, clampProducerAtomChars, producerInputTokenLimit, historianProducerReserve, producerPromptFailureReason, DREAMER_AGENT, DREAMER_RETROSPECTIVE_AGENT, DREAMER_PRIMER_INVESTIGATOR_AGENT, DREAMER_MEMORY_MAPPER_AGENT, DREAMER_CLASSIFIER_AGENT, DREAMER_DOCS_AGENT, DREAMER_REVIEWER_AGENT, createChildSessionWithFence, HiddenCompletionRefusal, DreamerProviderOutputFailureError, providerOutputFailureFromInvalidManifest, keptUnderRetention, roleTitle, childCreateInput, assistantOutcome, withReader, errorText, supportsHolderArchive, supportsQuietHiddenChildren, matchesHiddenRunLocation, hiddenRunPlacement, HIDDEN_CURATE_AGENT, hiddenToolLoop, HIDDEN_RUN_DISPOSED_REASON, noteChildOfDisposedInstance, noteTimedOutHiddenChild, registerHiddenChildAgents, hiddenToolCallRefusal, HiddenAgentStepLimit, HiddenChildHook, extractLatestAssistantText, hasLengthCappedOutput, isLatestAssistantLengthCapped, parseProviderModel, modelBodyField, toModelEntry, hiddenModelCooldowns, ModelProducedNoOutputError, promptTransportBudget, notePromptSetupTimeout, noteModelActivityMonitored, noteModelOutputReceived, isPromptTimeoutError, getPromptFailureDetail, raceWithSignal, promptSyncWithValidatedOutputRetry, normalizeSDKResponse, annotateSubagentInvocationError, failedInvocationStatus, emptyTokenTotals, sumTokensFromChildMessages, recordChildInvocation, recordPromptSessionError, createPromptAsyncTransport, CTX_NOTE_LIGHT_DESCRIPTION, ACTIVE_TOOL_IDS, systemPromptFingerprint, createPromptSurfaceRuntime, createPromptSurfaceGuidanceEpochCache, setKeepSubagents, teardownChildSession, getCompartmentEvents, runTokenLog, formatRunTokenLog, validateStoredCompartments, buildMagicContextSection, getMuralIdentity, getMural, modelKeyAcceptsImages, resolveMuralWire, v2ToolDefinitionsHash, v2RequestToolsFingerprint, classifyRequestToolsChange, USER_MEMORY_CANDIDATE_TTL_MS, insertUserMemoryCandidates, getUserMemoryCandidates, deleteUserMemoryCandidates, pruneExpiredUserMemoryCandidates, insertUserMemory, getActiveUserMemories, updateUserMemoryContent, dismissUserMemory, getOpenCodeDbPath, compareOpenCodeMessagesByCanonicalOrder, startCompactionMarkerCandidatePreparation, removeMcOwnedCompactionMarkers, MARKER_SUMMARY_TEXT, markerUpdateDefinitelyDidNotCut, applyDeferredCompactionMarker, removeCompactionMarkerForSession, checkCompactionMarkerConsistency, extractM0Block, formatDate, TEMPORAL_MARKER_REPLAY_PATTERN, collectTemporalCandidates, injectTemporalMarkers, clearInjectionCache, getVisibleMemoryIds, selectHiddenMessagesAtCompactionSeam, prepareCompartmentInjection, renderCompartmentInjection, MaterializeContentionError, mustMaterialize, trimMemoriesToBudgetV2, renderMemoryBlockV2, stripMemoryMuralBlock, servedHeadTexts, materializeM0, hydrateCachedM0Mural, resetPrefixTrimFallbackState, findHostCompactionWindow, capturePrefixTrimSourceOrder, prepareCachedM0M1Replay, headMessagesForSizing, rawTailAfterNewestCompartment, hasCompleteCachedM0M1, injectM0M1, resolveHiddenCompletionExecutor, createV1HiddenCompletionExecutor, pausedRecompReason, readCoordinateGeneration, readCoordinateRebaseNotice, formatCoordinateRebaseNotice, rebaseSessionCoordinatesAsync, omitIncompleteFileTokenTotals, describeBoundaryDiagnostics, RECOVERY_NO_HEAD_LIMIT, resolveOpenCodeProtectedTailBoundary, resolveWrapupProtectedTailBoundary, getRawHistoryEligibility, hasRunnableCompartmentWindow, recordHighPressureNoEligibleHead, reportProviderRecoveryDrainSkip, isHistorianDrainBudgetSpent, readHistorianFailureStreak, describeHistorianJoinRefusal, shouldWaitForNewHistorianHistory, EMPTY_READ_REPLY, noteTouchedAt, renderGlance, renderNotesById, formatWriteReply, observeNoteNudgeServe, onNoteTrigger, peekNoteNudgeText, markNoteNudgeDelivered, clearNoteNudgeTriggerAndCooldown, resetNoteNudgeCooldownOnly, clearNoteNudgeTriggerOnly, noteTransformPassForExactOrdinalReads, nonNarrativeStoredGapRanges, runCompartmentAgent, snapRangeToCompartments, getActiveCompartmentRun, markActiveCompartmentRunPublished, registerActiveCompartmentRun, startCompartmentAgent, executeContextRecomp };
|
|
@@ -138,10 +138,10 @@ async function serveV2ArchiveReads2(port, openConnections) {
|
|
|
138
138
|
] = await Promise.all([
|
|
139
139
|
import("./sqlite-zdgm52sv.js"),
|
|
140
140
|
import("./store-reader-dgh3ssxx.js"),
|
|
141
|
-
import("./store-
|
|
142
|
-
import("./read-session-chunk-
|
|
143
|
-
import("./render-
|
|
144
|
-
import("./search-archive-
|
|
141
|
+
import("./store-29ksp6vy.js"),
|
|
142
|
+
import("./read-session-chunk-sde0wym3.js"),
|
|
143
|
+
import("./render-6vmqzcem.js"),
|
|
144
|
+
import("./search-archive-4bbn3ztv.js"),
|
|
145
145
|
import("./expand-attachments-h33jbgyz.js")
|
|
146
146
|
]);
|
|
147
147
|
const pool = new V2StoreReaderPool;
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./index-gzy5w8ya.js";
|
|
14
14
|
import {
|
|
15
15
|
scheduleAfterBootQuiet
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-hj78hvhm.js";
|
|
17
17
|
import {
|
|
18
18
|
getHarness2,
|
|
19
19
|
harnessOwnsOpenCodeStore2
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
importPluginModule,
|
|
25
25
|
writeForwardedLogLine2,
|
|
26
26
|
log2
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-3fhb0j32.js";
|
|
28
28
|
import {
|
|
29
29
|
isOwnRpcServerRecord,
|
|
30
30
|
isPidAlive,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
parseRpcPortFile,
|
|
36
36
|
inspectProcessesAsync,
|
|
37
37
|
inspectWindowsProcessesSync
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-3n4j5rqc.js";
|
|
39
39
|
import {
|
|
40
40
|
configureContextDatabasePragmas2
|
|
41
41
|
} from "./index-fb3zxn06.js";
|
|
@@ -46,16 +46,16 @@ import {
|
|
|
46
46
|
copyStorageFileSync,
|
|
47
47
|
copyStorageTreeSync,
|
|
48
48
|
tightenStorageTreeSync
|
|
49
|
-
} from "./index-
|
|
49
|
+
} from "./index-6mryx739.js";
|
|
50
50
|
import {
|
|
51
51
|
attachFailClosedBlockingProcessEvidence
|
|
52
|
-
} from "./index-
|
|
52
|
+
} from "./index-c205x7xd.js";
|
|
53
53
|
import {
|
|
54
54
|
reuseWorker
|
|
55
55
|
} from "./index-96ztjvkn.js";
|
|
56
56
|
import {
|
|
57
57
|
startMessageFtsRowidMapBackfill2
|
|
58
|
-
} from "./index-
|
|
58
|
+
} from "./index-89xg64wb.js";
|
|
59
59
|
import {
|
|
60
60
|
LKG_SLOT_CHUNKS_DDL,
|
|
61
61
|
SESSION_REPLAY_DECISIONS_DDL,
|
|
@@ -65,14 +65,14 @@ import {
|
|
|
65
65
|
hasPendingMigrations,
|
|
66
66
|
getMainThreadMigrationBodyCount,
|
|
67
67
|
runMigrations
|
|
68
|
-
} from "./index-
|
|
68
|
+
} from "./index-dnpcv1rg.js";
|
|
69
69
|
import {
|
|
70
70
|
installTagIdentityRevisionTrigger,
|
|
71
71
|
ensureColumn,
|
|
72
72
|
installV95PerfSchema,
|
|
73
73
|
setDatabase,
|
|
74
74
|
loadToolDefinitionMeasurements
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-cpbr0xvk.js";
|
|
76
76
|
import {
|
|
77
77
|
resolveOpenCodeDbPath,
|
|
78
78
|
hasV1MessageTables
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
} from "./index-8ajstryz.js";
|
|
86
86
|
import {
|
|
87
87
|
logSlowWriteTransaction
|
|
88
|
-
} from "./index-
|
|
88
|
+
} from "./index-tqtpgnhr.js";
|
|
89
89
|
|
|
90
90
|
// src/features/magic-context/storage-db.ts
|
|
91
91
|
import {
|
|
@@ -1084,8 +1084,8 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
|
|
|
1084
1084
|
state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
|
|
1085
1085
|
if (signal.aborted || !readsOpenCodeStore)
|
|
1086
1086
|
return;
|
|
1087
|
-
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-
|
|
1088
|
-
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-
|
|
1087
|
+
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-sde0wym3.js"));
|
|
1088
|
+
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-zc5rsvhv.js"));
|
|
1089
1089
|
if (signal.aborted)
|
|
1090
1090
|
return;
|
|
1091
1091
|
await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
importPluginModule,
|
|
3
3
|
log2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-3fhb0j32.js";
|
|
5
5
|
import {
|
|
6
6
|
sendStatusNotification2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-kj4bprep.js";
|
|
8
8
|
import {
|
|
9
9
|
formatConflictShort
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-0ve29s6f.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/conflict-warning-hook.ts
|
|
13
13
|
import { existsSync, readFileSync } from "node:fs";
|