@cortexkit/opencode-magic-context 0.49.57 → 0.49.60
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-9pr71hd5.js → announcement-p41dde4h.js} +2 -2
- package/dist/auto-search-worker.js +5 -5
- package/dist/chunk-embedding-write-worker.js +13 -13
- package/dist/{compaction-marker-candidates-8hazqfvj.js → compaction-marker-candidates-1ndjqh9k.js} +2 -2
- package/dist/compaction-marker-candidates-worker.js +1 -1
- package/dist/{compartment-chunk-embedding-gfd093f8.js → compartment-chunk-embedding-ymc9mtwv.js} +7 -7
- package/dist/{conflict-warning-hook-56qpq7ws.js → conflict-warning-hook-m8yezwdj.js} +7 -7
- package/dist/{context-a617pcqe.js → context-45fde2p4.js} +41 -40
- package/dist/{derive-budgets-z53424qx.js → derive-budgets-def8genf.js} +2 -2
- package/dist/{embedding-backfill-2dvf3rcn.js → embedding-backfill-sk7agn5v.js} +12 -12
- package/dist/embedding-worker-process.js +1 -1
- package/dist/embedding-worker.js +4 -4
- package/dist/{history-owner-n50e0e8y.js → history-owner-xqfsvf9k.js} +2 -2
- package/dist/hooks/magic-context/command-handler.d.ts +2 -0
- package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/{index-5ptp2de1.js → index-0cz8bsyx.js} +9 -9
- package/dist/{index-r9agn061.js → index-1sq1krqw.js} +4 -4
- package/dist/{index-b6rdv8re.js → index-3hk445am.js} +4 -4
- package/dist/{index-x8e50d8f.js → index-3wq9btxt.js} +5 -5
- package/dist/{index-by14cr73.js → index-3yyfftqq.js} +11 -11
- package/dist/{index-3600gm9z.js → index-4yjn3er4.js} +113 -73
- package/dist/{index-0tz2fzpq.js → index-5vsk2cpp.js} +1 -1
- package/dist/{index-90z05d0p.js → index-832w615x.js} +1 -1
- package/dist/{index-sk6p6esd.js → index-8sc7vqt7.js} +4 -4
- package/dist/{index-cd3vp8xa.js → index-98qy103c.js} +1 -1
- package/dist/{index-29ff546v.js → index-d0feqcs5.js} +6 -6
- package/dist/{index-gz001bx7.js → index-e6ncz7a6.js} +1 -1
- package/dist/{index-reyws9fy.js → index-esqcwes7.js} +1 -1
- package/dist/{index-h62j8z2r.js → index-ev2rrjfc.js} +4 -4
- package/dist/{index-sx1sppd6.js → index-gq1g9a3a.js} +8 -8
- package/dist/{index-ga5q492k.js → index-gqf8r04r.js} +1 -1
- package/dist/{index-qperbvjn.js → index-jg7sbt3v.js} +2 -2
- package/dist/{index-9mggb1nv.js → index-jrj95cce.js} +2 -2
- package/dist/{index-1wsb0e8h.js → index-kv4ntrr6.js} +5 -5
- package/dist/{index-tad3can2.js → index-m0pwswv9.js} +1 -1
- package/dist/{index-pdh4tdcq.js → index-n6aye6ny.js} +2 -2
- package/dist/{index-gapnh6tk.js → index-ngwmx6nt.js} +8 -3
- package/dist/{index-hsyczpn7.js → index-pxnzyvjc.js} +2 -2
- package/dist/{index-kn1bx21r.js → index-pzvdf7sr.js} +3 -3
- package/dist/{index-36wseasx.js → index-q7q6qp1f.js} +1 -1
- package/dist/{index-0r2jk2na.js → index-qdver0af.js} +14 -14
- package/dist/{index-zyanqxtc.js → index-s2jdky2x.js} +3 -3
- package/dist/{index-pdnan1e3.js → index-s2qsd3w9.js} +7 -7
- package/dist/{index-2ny9xwdn.js → index-s32f8y67.js} +2 -2
- package/dist/{index-hexdee98.js → index-snbpdpa3.js} +4 -4
- package/dist/{index-dhdv88e5.js → index-tebcx987.js} +1 -1
- package/dist/{index-5gqszjq9.js → index-tq20edcs.js} +3 -3
- package/dist/{index-0k283v27.js → index-tzy5h4x6.js} +1 -1
- package/dist/{index-em92bp7f.js → index-x40zr813.js} +2 -2
- package/dist/{index-sv5tn72j.js → index-xx05vta0.js} +4 -4
- package/dist/{index-82dfe8en.js → index-ywrz4wy2.js} +9 -4
- package/dist/{index-bev3zks1.js → index-ywxvdwmj.js} +9 -9
- package/dist/{index-xstbytjn.js → index-zb4h9nrk.js} +2 -2
- package/dist/{index-2vsd5064.js → index-zxj39ba2.js} +4 -4
- package/dist/{index-wpcjxzrm.js → index-zz4k3f65.js} +39 -39
- package/dist/index.js +51 -50
- package/dist/{logger-sw7z6sjz.js → logger-d7c8akh9.js} +1 -1
- package/dist/{message-fts-rowid-map-kx1bsdyg.js → message-fts-rowid-map-0xx8ge09.js} +4 -4
- package/dist/{message-index-bounded-xav3h8qe.js → message-index-bounded-f6yz4xq8.js} +10 -10
- package/dist/{message-time-backfill-hp2jgn49.js → message-time-backfill-pz5981mf.js} +2 -2
- package/dist/migration-worker.js +10 -10
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/{project-embedding-registry-f2azrq24.js → project-embedding-registry-c2sfnamh.js} +11 -11
- package/dist/raw-ordinal-warmup-worker.js +8 -8
- package/dist/{read-session-chunk-70aam2c1.js → read-session-chunk-8b1g06nz.js} +8 -8
- package/dist/{read-session-raw-04ger9zt.js → read-session-raw-3sc9231y.js} +2 -2
- package/dist/{recomp-orchestrator-xwsjrqcs.js → recomp-orchestrator-7s8nyzhy.js} +29 -29
- package/dist/{render-22ebrmep.js → render-nrfbtkkw.js} +19 -19
- package/dist/{safe-notification-target-mx5khyxf.js → safe-notification-target-d21swr3n.js} +2 -2
- package/dist/{search-archive-bqqf5p7f.js → search-archive-1ppdjfm9.js} +10 -10
- package/dist/{search-jfwb4ms3.js → search-xha0r30f.js} +22 -22
- package/dist/{send-session-notification-gamjee2f.js → send-session-notification-ykvt5k2s.js} +5 -5
- package/dist/shared/data-path.d.ts +31 -36
- package/dist/shared/data-path.d.ts.map +1 -1
- package/dist/shared/models-dev-cache.d.ts.map +1 -1
- package/dist/shared/test-temp-dir.d.ts +28 -0
- package/dist/shared/test-temp-dir.d.ts.map +1 -1
- package/dist/shared/window-geometry.d.ts.map +1 -1
- package/dist/{storage-tags-arnkn5t1.js → storage-tags-spet01yb.js} +5 -5
- package/dist/{transform-postprocess-phase-nejydt3q.js → transform-postprocess-phase-fxp1atm1.js} +30 -30
- package/dist/v2/auto-search-worker.js +5 -5
- package/dist/v2/chunk-embedding-write-worker.js +13 -13
- package/dist/v2/{compaction-marker-candidates-re14353a.js → compaction-marker-candidates-bp1bn579.js} +2 -2
- package/dist/v2/compaction-marker-candidates-worker.js +1 -1
- package/dist/v2/{compartment-chunk-embedding-0pxsrzrt.js → compartment-chunk-embedding-x6qw6mjk.js} +7 -7
- package/dist/v2/{context-4gxr2xd4.js → context-77g3jhf2.js} +43 -42
- package/dist/v2/{derive-budgets-w0815q82.js → derive-budgets-z93fdnp7.js} +3 -3
- package/dist/v2/{embedding-backfill-48qbnh7p.js → embedding-backfill-j2xj86zn.js} +12 -12
- package/dist/v2/embedding-worker-process.js +1 -1
- package/dist/v2/embedding-worker.js +4 -4
- package/dist/v2/{history-owner-ep91wgqj.js → history-owner-260djmv5.js} +2 -2
- package/dist/v2/hooks/claude-agent-instructions.d.ts +27 -0
- package/dist/v2/hooks/claude-agent-instructions.d.ts.map +1 -0
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/hidden-child.d.ts +15 -2
- package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
- package/dist/v2/{logger-xnscpj6w.js → logger-zyf43np1.js} +1 -1
- package/dist/v2/{message-fts-rowid-map-57jh6xpb.js → message-fts-rowid-map-n8mcvcpz.js} +4 -4
- package/dist/v2/{message-index-bounded-sw8hyqw1.js → message-index-bounded-0w8eh8fc.js} +10 -10
- package/dist/v2/{message-time-backfill-baxebka0.js → message-time-backfill-ynb3vg6r.js} +2 -2
- package/dist/v2/migration-worker.js +10 -10
- package/dist/v2/{project-embedding-registry-kwahtjgg.js → project-embedding-registry-k0hjqt11.js} +11 -11
- package/dist/v2/raw-ordinal-warmup-worker.js +8 -8
- package/dist/v2/{read-session-chunk-nqkn0yb4.js → read-session-chunk-dxs1tgt9.js} +8 -8
- package/dist/v2/{read-session-raw-3e482h3c.js → read-session-raw-wg5zc29f.js} +2 -2
- package/dist/v2/{recomp-orchestrator-1de5c0zr.js → recomp-orchestrator-zc1wdv9q.js} +30 -30
- package/dist/v2/{render-g44ksejs.js → render-9knrdrjs.js} +19 -19
- package/dist/v2/{safe-notification-target-9r79xnbt.js → safe-notification-target-y55z2zat.js} +2 -2
- package/dist/v2/{search-8dc9ex0a.js → search-a2a0qs3t.js} +21 -21
- package/dist/v2/{search-archive-5ycchnyp.js → search-archive-2jmyvj69.js} +10 -10
- package/dist/v2/{send-session-notification-95p89k7q.js → send-session-notification-8g4r97bp.js} +5 -5
- package/dist/v2/{server-sa1fdt41.js → server-2adwe0be.js} +8 -3
- package/dist/v2/{server-7vrtk78d.js → server-3ap5dmhc.js} +1 -1
- package/dist/v2/{server-avfc9ezb.js → server-4r86tcs2.js} +3 -3
- package/dist/v2/{server-np27dgyt.js → server-5sbsnpkn.js} +1 -1
- package/dist/v2/{server-rz5jnhnv.js → server-6ash6z8z.js} +1 -1
- package/dist/v2/{server-beydmd68.js → server-88n85n60.js} +4 -4
- package/dist/v2/{server-dqwx9pdh.js → server-8hcxmt1w.js} +115 -75
- package/dist/v2/{server-g61hgy1y.js → server-8pdfmc27.js} +4 -4
- package/dist/v2/{server-gge95a03.js → server-8ycacd59.js} +6 -6
- package/dist/v2/{server-t5c8awdm.js → server-9ab9jnpq.js} +3 -3
- package/dist/v2/{server-r7nj8ga0.js → server-9m5r04ws.js} +5 -5
- package/dist/v2/{server-5p0bjk3y.js → server-9sf3qp02.js} +2 -2
- package/dist/v2/{server-5kgesxck.js → server-aewxmvnf.js} +2 -2
- package/dist/v2/{server-3yk44ddz.js → server-afsz3cmx.js} +1 -1
- package/dist/v2/{server-c8z2grq0.js → server-at0v0z4t.js} +1 -1
- package/dist/v2/{server-v817sf79.js → server-d07yxksx.js} +2 -2
- package/dist/v2/{server-kwtnrhv3.js → server-d706s5xn.js} +2 -2
- package/dist/v2/{server-ycvqg2s3.js → server-d9aayyxk.js} +4 -4
- package/dist/v2/{server-966dq3pd.js → server-ds8vpfkr.js} +2 -2
- package/dist/v2/{server-bb6kf05j.js → server-j8376q08.js} +9 -4
- package/dist/v2/{server-7waad75d.js → server-ja6swvmb.js} +11 -11
- package/dist/v2/{server-tmf0ayqp.js → server-jdfe07mp.js} +1 -1
- package/dist/v2/{server-6k0rnwbd.js → server-jn4pktdk.js} +4 -4
- package/dist/v2/{server-qp5sj6n5.js → server-jtq03rkb.js} +2 -2
- package/dist/v2/{server-91gb0vh8.js → server-npdey91q.js} +1 -1
- package/dist/v2/{server-vqq3g1t7.js → server-qjff96a6.js} +4 -4
- package/dist/v2/{server-4x0xq8a1.js → server-rbtx6q5v.js} +1 -1
- package/dist/v2/{server-jwydbwcx.js → server-svx20ra2.js} +4 -4
- package/dist/v2/{server-v57wr0r9.js → server-t8tmrtcg.js} +9 -9
- package/dist/v2/{server-0ayyh3mx.js → server-tzh55x6d.js} +9 -9
- package/dist/v2/{server-mxsy9h1d.js → server-x6fn9x8q.js} +2 -2
- package/dist/v2/{server-b0357as4.js → server-xepx8t43.js} +2 -2
- package/dist/v2/{server-3jc6qmdz.js → server-y8xjr8rx.js} +1 -1
- package/dist/v2/{server-rpmkz5ta.js → server-z5255w05.js} +8 -8
- package/dist/v2/server.js +5 -5
- package/dist/v2/{storage-tags-19da4c0m.js → storage-tags-50wsqg3t.js} +5 -5
- package/dist/v2/{v2-archive-reader-tgydjgfy.js → v2-archive-reader-ycjh6a2d.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-3871zj7c.js → wrapup-orchestrator-fyyb28jf.js} +30 -30
- package/dist/{v2-archive-reader-2czwvyc9.js → v2-archive-reader-wec0a8fx.js} +1 -1
- package/dist/wrapup-orchestrator-560v99mk.js +54 -0
- package/package.json +1 -1
- package/src/shared/data-path.test.ts +27 -10
- package/src/shared/data-path.ts +39 -39
- package/src/shared/models-dev-cache.test.ts +11 -0
- package/src/shared/models-dev-cache.ts +7 -1
- package/src/shared/test-temp-dir.ts +59 -0
- package/src/shared/window-geometry.test.ts +20 -0
- package/src/shared/window-geometry.ts +3 -0
- package/dist/wrapup-orchestrator-m1yzmgq4.js +0 -54
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
log2,
|
|
6
6
|
sessionLog2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-ywrz4wy2.js";
|
|
8
8
|
import {
|
|
9
9
|
inRootAsyncContext2,
|
|
10
10
|
getSqliteDatabasePath2,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./index-gzy5w8ya.js";
|
|
14
14
|
import {
|
|
15
15
|
runSessionWarmupWorker
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-q7q6qp1f.js";
|
|
17
17
|
import {
|
|
18
18
|
scheduleAfterBootQuiet
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-tzy5h4x6.js";
|
|
20
20
|
import {
|
|
21
21
|
cleanSearchText,
|
|
22
22
|
hintKeywordRelevance,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
clearIndexedMessages,
|
|
29
29
|
indexSingleMessage,
|
|
30
30
|
indexMessagesAfterOrdinal
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-ev2rrjfc.js";
|
|
32
32
|
|
|
33
33
|
// src/features/magic-context/message-index-async.ts
|
|
34
34
|
var indexCancellations = new Map;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionLog2
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-ywrz4wy2.js";
|
|
4
4
|
import {
|
|
5
5
|
clearEmergencyRecovery
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-8sc7vqt7.js";
|
|
7
7
|
import {
|
|
8
8
|
requestPendingMaterialization,
|
|
9
9
|
dropSlot
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-ywxvdwmj.js";
|
|
11
11
|
import {
|
|
12
12
|
executeContextRecomp
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-4yjn3er4.js";
|
|
14
14
|
import {
|
|
15
15
|
renderUserFacingFailure,
|
|
16
16
|
userFacingFailureCode
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-n6aye6ny.js";
|
|
18
18
|
|
|
19
19
|
// src/hooks/magic-context/recomp-orchestrator.ts
|
|
20
20
|
function resolveLiveModelKey(liveSessionState, sessionId) {
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
StaleRouteHandleError,
|
|
7
7
|
SubcClient,
|
|
8
8
|
isConsumerReconnectTransient
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-pxnzyvjc.js";
|
|
10
10
|
import {
|
|
11
11
|
getHarness2
|
|
12
12
|
} from "./index-pavzsdc6.js";
|
|
13
13
|
import {
|
|
14
14
|
getDataDir,
|
|
15
15
|
log2
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-ywrz4wy2.js";
|
|
17
17
|
import {
|
|
18
18
|
inRootAsyncContext2
|
|
19
19
|
} from "./index-gzy5w8ya.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
loadCompartmentChunkEmbeddingsForSearch2,
|
|
23
23
|
peekCompartmentChunkSearchPool2,
|
|
24
24
|
warmCompartmentChunkSearchPool2
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-snbpdpa3.js";
|
|
26
26
|
import {
|
|
27
27
|
saveCommitEmbedding,
|
|
28
28
|
loadProjectCommitEmbeddings,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
enqueueShadowEmbeddingItems2,
|
|
39
39
|
getProjectEmbeddingSnapshot2,
|
|
40
40
|
embedItemsForProject2
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-gq1g9a3a.js";
|
|
42
42
|
import {
|
|
43
43
|
recordEmbeddingMeasurement
|
|
44
44
|
} from "./index-2amn2s73.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
isEmbeddingEnabled,
|
|
51
51
|
embedText,
|
|
52
52
|
ensureMemoryEmbeddings2
|
|
53
|
-
} from "./index-
|
|
53
|
+
} from "./index-zxj39ba2.js";
|
|
54
54
|
import {
|
|
55
55
|
ModuleMemoryAuthorityError2,
|
|
56
56
|
getMemoriesByProject2,
|
|
@@ -63,36 +63,36 @@ import {
|
|
|
63
63
|
sanitizeFtsQuery,
|
|
64
64
|
searchMemoriesFTS,
|
|
65
65
|
searchMemoriesFTSUnion
|
|
66
|
-
} from "./index-
|
|
66
|
+
} from "./index-n6aye6ny.js";
|
|
67
67
|
import {
|
|
68
68
|
matchedSearchSnippet,
|
|
69
69
|
getIndexedMessageCorpusSize
|
|
70
|
-
} from "./index-
|
|
70
|
+
} from "./index-ev2rrjfc.js";
|
|
71
71
|
import {
|
|
72
72
|
getMessageIndexEpoch,
|
|
73
73
|
isMessageIndexSearchable,
|
|
74
74
|
withMemoryHintContent,
|
|
75
75
|
autoSearchRelevance,
|
|
76
76
|
recordAutoSearchLane
|
|
77
|
-
} from "./index-
|
|
77
|
+
} from "./index-3hk445am.js";
|
|
78
78
|
import {
|
|
79
79
|
MESSAGE_FTS_SESSION_FILTER_SQL,
|
|
80
80
|
withMessageFtsSessionFilter
|
|
81
81
|
} from "./index-52x68mj4.js";
|
|
82
82
|
import {
|
|
83
83
|
isRecord
|
|
84
|
-
} from "./index-
|
|
84
|
+
} from "./index-8sc7vqt7.js";
|
|
85
85
|
import {
|
|
86
86
|
resolveWorkspaceShareCategories,
|
|
87
87
|
resolveWorkspaceIdentitySet,
|
|
88
88
|
expandWorkspaceIdentitySetWithAliases,
|
|
89
89
|
resolveStoredPathWorkspaceIdentity,
|
|
90
90
|
sourceNameForMemory
|
|
91
|
-
} from "./index-
|
|
91
|
+
} from "./index-xx05vta0.js";
|
|
92
92
|
import {
|
|
93
93
|
getNotes,
|
|
94
94
|
getActivePrimers
|
|
95
|
-
} from "./index-
|
|
95
|
+
} from "./index-tebcx987.js";
|
|
96
96
|
import {
|
|
97
97
|
isKnownAutocommit
|
|
98
98
|
} from "./index-8ajstryz.js";
|
|
@@ -35,17 +35,16 @@ import {
|
|
|
35
35
|
getRawSessionTagKeysThrough2,
|
|
36
36
|
getLegacyProtectedTailStartOrdinal2,
|
|
37
37
|
readSessionChunk2
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-d0feqcs5.js";
|
|
39
39
|
import {
|
|
40
40
|
getHarness2,
|
|
41
41
|
harnessOwnsOpenCodeStore2
|
|
42
42
|
} from "./index-pavzsdc6.js";
|
|
43
43
|
import {
|
|
44
|
-
|
|
45
|
-
getProjectMagicContextHistorianDir,
|
|
44
|
+
getMagicContextHistorianSessionDir,
|
|
46
45
|
log2,
|
|
47
46
|
sessionLog2
|
|
48
|
-
} from "./index-
|
|
47
|
+
} from "./index-ywrz4wy2.js";
|
|
49
48
|
import {
|
|
50
49
|
sanitizeDiagnosticText
|
|
51
50
|
} from "./index-z4p0ry94.js";
|
|
@@ -71,7 +70,7 @@ import {
|
|
|
71
70
|
deriveTriggerBudget2,
|
|
72
71
|
resolveHistorianProducerLimits2,
|
|
73
72
|
producerSourceLocalBudget2
|
|
74
|
-
} from "./index-
|
|
73
|
+
} from "./index-ngwmx6nt.js";
|
|
75
74
|
import {
|
|
76
75
|
withContentLanguageDirective,
|
|
77
76
|
buildPrimaryLanguageDirective,
|
|
@@ -94,7 +93,7 @@ import {
|
|
|
94
93
|
hasMeaningfulUserText2,
|
|
95
94
|
estimateTokens,
|
|
96
95
|
estimateFixedPromptTokens
|
|
97
|
-
} from "./index-
|
|
96
|
+
} from "./index-5vsk2cpp.js";
|
|
98
97
|
import {
|
|
99
98
|
FAIL_CLOSED_DOCTOR_COMMAND
|
|
100
99
|
} from "./index-wh9fxds5.js";
|
|
@@ -108,13 +107,13 @@ import {
|
|
|
108
107
|
import {
|
|
109
108
|
shouldSkipHomeProjectMemory,
|
|
110
109
|
resolveProjectIdentity
|
|
111
|
-
} from "./index-
|
|
110
|
+
} from "./index-tzy5h4x6.js";
|
|
112
111
|
import {
|
|
113
112
|
getSchemaFenceRejection,
|
|
114
113
|
LATEST_SUPPORTED_VERSION,
|
|
115
114
|
getPersistedSchemaVersion,
|
|
116
115
|
openDatabase
|
|
117
|
-
} from "./index-
|
|
116
|
+
} from "./index-0cz8bsyx.js";
|
|
118
117
|
import {
|
|
119
118
|
areRustHistorianSyntheticParts2,
|
|
120
119
|
isStrictGapHealingMessage2,
|
|
@@ -122,7 +121,7 @@ import {
|
|
|
122
121
|
RawOrdinalsNotReady2,
|
|
123
122
|
dropRawSessionOrdinalCheckpoints2,
|
|
124
123
|
runSessionWarmupWorker
|
|
125
|
-
} from "./index-
|
|
124
|
+
} from "./index-q7q6qp1f.js";
|
|
126
125
|
import {
|
|
127
126
|
parseCompartmentOutput,
|
|
128
127
|
resolveWorkspaceShareCategories,
|
|
@@ -131,10 +130,10 @@ import {
|
|
|
131
130
|
resolveStoredPathWorkspaceIdentity,
|
|
132
131
|
sourceNameForMemory,
|
|
133
132
|
computeWorkspaceEpochFingerprint
|
|
134
|
-
} from "./index-
|
|
133
|
+
} from "./index-xx05vta0.js";
|
|
135
134
|
import {
|
|
136
135
|
BoundedSessionMap
|
|
137
|
-
} from "./index-
|
|
136
|
+
} from "./index-jrj95cce.js";
|
|
138
137
|
import {
|
|
139
138
|
V2_MEMORY_CATEGORIES,
|
|
140
139
|
CATEGORY_PRIORITY,
|
|
@@ -158,7 +157,7 @@ import {
|
|
|
158
157
|
replaceCompartmentChunkEmbeddings2,
|
|
159
158
|
deleteChunkEmbedBackoffForSession2,
|
|
160
159
|
chunkWindowSourceKey2
|
|
161
|
-
} from "./index-
|
|
160
|
+
} from "./index-snbpdpa3.js";
|
|
162
161
|
import {
|
|
163
162
|
COMPARTMENT_LEASE_RENEWAL_MS,
|
|
164
163
|
getCompartmentLeaseBlocker,
|
|
@@ -201,14 +200,14 @@ import {
|
|
|
201
200
|
getProjectState,
|
|
202
201
|
recordSubagentInvocation,
|
|
203
202
|
getLatestHistorianInvocationId
|
|
204
|
-
} from "./index-
|
|
203
|
+
} from "./index-ywxvdwmj.js";
|
|
205
204
|
import {
|
|
206
205
|
clearCompressionDepth,
|
|
207
206
|
clearCompressionDepthRange,
|
|
208
207
|
toMessageIndexSource,
|
|
209
208
|
clearIndexedMessagesInTransaction,
|
|
210
209
|
indexSourcesAfterOrdinal
|
|
211
|
-
} from "./index-
|
|
210
|
+
} from "./index-ev2rrjfc.js";
|
|
212
211
|
import {
|
|
213
212
|
stripWellFormedLeadingTagPrefix,
|
|
214
213
|
peelLeadingMcTagNotation,
|
|
@@ -257,17 +256,17 @@ import {
|
|
|
257
256
|
foldShrunkPartTags2,
|
|
258
257
|
getTagNumberByMessageId2,
|
|
259
258
|
getActiveTagsBySession2
|
|
260
|
-
} from "./index-
|
|
259
|
+
} from "./index-8sc7vqt7.js";
|
|
261
260
|
import {
|
|
262
261
|
openCodeDbExists,
|
|
263
262
|
withReadOnlySessionDb,
|
|
264
263
|
getMessageTimesFromOpenCodeDb
|
|
265
|
-
} from "./index-
|
|
264
|
+
} from "./index-x40zr813.js";
|
|
266
265
|
import {
|
|
267
266
|
getSessionNotes,
|
|
268
267
|
getReadySmartNotes,
|
|
269
268
|
insertPrimerCandidates
|
|
270
|
-
} from "./index-
|
|
269
|
+
} from "./index-tebcx987.js";
|
|
271
270
|
import {
|
|
272
271
|
pushNotification2
|
|
273
272
|
} from "./index-x8a7jmkh.js";
|
|
@@ -285,13 +284,13 @@ import {
|
|
|
285
284
|
getProjectChunkEmbeddingModelId2,
|
|
286
285
|
getProjectEmbeddingMaxInputTokens2,
|
|
287
286
|
embedItemsWindowBounded2
|
|
288
|
-
} from "./index-
|
|
287
|
+
} from "./index-gq1g9a3a.js";
|
|
289
288
|
import {
|
|
290
289
|
renderUserFacingFailure,
|
|
291
290
|
userFacingFailureCode,
|
|
292
291
|
promoteSessionFactsDurable,
|
|
293
292
|
embedPromotedFacts
|
|
294
|
-
} from "./index-
|
|
293
|
+
} from "./index-n6aye6ny.js";
|
|
295
294
|
import {
|
|
296
295
|
isMarkerCandidateBasisCurrent2,
|
|
297
296
|
invalidateMarkerCandidateBasis2,
|
|
@@ -302,10 +301,10 @@ import {
|
|
|
302
301
|
certifiedMarkerReferenceFloor2,
|
|
303
302
|
readMarkerReferenceRows2,
|
|
304
303
|
readKnownMarkerReferenceRows2
|
|
305
|
-
} from "./index-
|
|
304
|
+
} from "./index-832w615x.js";
|
|
306
305
|
import {
|
|
307
306
|
sendStatusNotification2
|
|
308
|
-
} from "./index-
|
|
307
|
+
} from "./index-1sq1krqw.js";
|
|
309
308
|
import {
|
|
310
309
|
isCompactionEnabled,
|
|
311
310
|
migrateLegacyAgentEnabledInMemory
|
|
@@ -329,7 +328,7 @@ import {
|
|
|
329
328
|
import {
|
|
330
329
|
logSlowWriteTransaction,
|
|
331
330
|
WriteTransactionSteps
|
|
332
|
-
} from "./index-
|
|
331
|
+
} from "./index-m0pwswv9.js";
|
|
333
332
|
import {
|
|
334
333
|
ensureStorageDirectorySync,
|
|
335
334
|
writeStorageFileAtomicSync
|
|
@@ -4678,6 +4677,19 @@ function withoutHistorianTailCache(body) {
|
|
|
4678
4677
|
return body;
|
|
4679
4678
|
}
|
|
4680
4679
|
|
|
4680
|
+
// src/v2/hooks/claude-agent-instructions.ts
|
|
4681
|
+
var CLAUDE_AGENT_PROVIDER_ID = "claude-agent";
|
|
4682
|
+
function deliversInstructionsInUserMessage(providerID) {
|
|
4683
|
+
return providerID === CLAUDE_AGENT_PROVIDER_ID;
|
|
4684
|
+
}
|
|
4685
|
+
function claudeAgentInstructionsText(system) {
|
|
4686
|
+
return `Instructions for this task:
|
|
4687
|
+
|
|
4688
|
+
<instructions>
|
|
4689
|
+
${system}
|
|
4690
|
+
</instructions>`;
|
|
4691
|
+
}
|
|
4692
|
+
|
|
4681
4693
|
// src/v2/hooks/hidden-child.ts
|
|
4682
4694
|
var HIDDEN_HISTORIAN_AGENT = "historian";
|
|
4683
4695
|
var HIDDEN_DREAMER_AGENT = "dreamer-classifier";
|
|
@@ -4785,14 +4797,14 @@ class HiddenAgentStepLimit extends Error {
|
|
|
4785
4797
|
this.cap = cap;
|
|
4786
4798
|
}
|
|
4787
4799
|
}
|
|
4788
|
-
function
|
|
4789
|
-
const message = draft.messages.at(-1);
|
|
4800
|
+
function userTexts(message) {
|
|
4790
4801
|
if (!message || message.role !== undefined && message.role !== "user")
|
|
4791
|
-
return;
|
|
4802
|
+
return [];
|
|
4792
4803
|
const content = message.content;
|
|
4793
4804
|
if (typeof content === "string" && content.length > 0)
|
|
4794
|
-
return content;
|
|
4805
|
+
return [content];
|
|
4795
4806
|
const parts = Array.isArray(content) ? content : Array.isArray(message.parts) ? message.parts : [];
|
|
4807
|
+
const texts = [];
|
|
4796
4808
|
for (const part of parts) {
|
|
4797
4809
|
if (!part || typeof part !== "object")
|
|
4798
4810
|
continue;
|
|
@@ -4800,10 +4812,10 @@ function newestUserText(draft) {
|
|
|
4800
4812
|
if (typeof record.text !== "string" || record.text.length === 0)
|
|
4801
4813
|
continue;
|
|
4802
4814
|
if (record.type === undefined || record.type === "text" || record.type === "input_text") {
|
|
4803
|
-
|
|
4815
|
+
texts.push(record.text);
|
|
4804
4816
|
}
|
|
4805
4817
|
}
|
|
4806
|
-
return;
|
|
4818
|
+
return texts;
|
|
4807
4819
|
}
|
|
4808
4820
|
function authoredOptions(attempt) {
|
|
4809
4821
|
const cap = attempt.identity.maxOutputTokens;
|
|
@@ -4839,6 +4851,33 @@ function markerCandidates(text) {
|
|
|
4839
4851
|
const summary = hostCheckpointSummary(text);
|
|
4840
4852
|
return [text, stripped, ...summary === undefined ? [] : [summary]];
|
|
4841
4853
|
}
|
|
4854
|
+
function carriesMarker(texts, marker) {
|
|
4855
|
+
return texts.some((text) => markerCandidates(text).includes(marker));
|
|
4856
|
+
}
|
|
4857
|
+
function sharedPrefixBytes(a, b) {
|
|
4858
|
+
let offset = 0;
|
|
4859
|
+
while (offset < a.length && offset < b.length && a[offset] === b[offset])
|
|
4860
|
+
offset++;
|
|
4861
|
+
return offset;
|
|
4862
|
+
}
|
|
4863
|
+
function closestText(texts, markers) {
|
|
4864
|
+
let closest = texts[0];
|
|
4865
|
+
let best = 0;
|
|
4866
|
+
for (const text of texts) {
|
|
4867
|
+
for (const candidate of markerCandidates(text)) {
|
|
4868
|
+
const bytes = Buffer.from(candidate, "utf8");
|
|
4869
|
+
for (const marker of markers) {
|
|
4870
|
+
const shared = sharedPrefixBytes(bytes, Buffer.from(marker, "utf8"));
|
|
4871
|
+
if (shared > best) {
|
|
4872
|
+
best = shared;
|
|
4873
|
+
closest = text;
|
|
4874
|
+
}
|
|
4875
|
+
}
|
|
4876
|
+
}
|
|
4877
|
+
}
|
|
4878
|
+
return closest;
|
|
4879
|
+
}
|
|
4880
|
+
var REFUSAL_PART_DIGESTS = 8;
|
|
4842
4881
|
function textDigest(text) {
|
|
4843
4882
|
return {
|
|
4844
4883
|
length: text.length,
|
|
@@ -4848,9 +4887,7 @@ function textDigest(text) {
|
|
|
4848
4887
|
function firstDifference(a, b) {
|
|
4849
4888
|
const left = Buffer.from(a, "utf8");
|
|
4850
4889
|
const right = Buffer.from(b, "utf8");
|
|
4851
|
-
|
|
4852
|
-
while (offset < left.length && offset < right.length && left[offset] === right[offset])
|
|
4853
|
-
offset++;
|
|
4890
|
+
const offset = sharedPrefixBytes(left, right);
|
|
4854
4891
|
if (offset === left.length && offset === right.length)
|
|
4855
4892
|
return;
|
|
4856
4893
|
return {
|
|
@@ -4934,15 +4971,14 @@ class HiddenChildHook {
|
|
|
4934
4971
|
}
|
|
4935
4972
|
return marker;
|
|
4936
4973
|
}
|
|
4937
|
-
refuse(reason, draft,
|
|
4938
|
-
const
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
});
|
|
4974
|
+
refuse(reason, draft, texts, inFlight, code = "hidden_prompt_unrecognized") {
|
|
4975
|
+
const markers = [...this.attempts.values()].filter((attempt) => attempt.childSessionId === draft.sessionID && attempt.marker).map((attempt) => ({ attempt, marker: attempt.marker }));
|
|
4976
|
+
const raw = texts === undefined ? undefined : closestText(texts, markers.map(({ marker }) => marker));
|
|
4977
|
+
const registered = markers.map(({ attempt, marker }) => ({
|
|
4978
|
+
...textDigest(marker),
|
|
4979
|
+
shaped: attempt.shaped,
|
|
4980
|
+
...raw === undefined ? {} : { first_difference: firstDifference(raw, marker) }
|
|
4981
|
+
}));
|
|
4946
4982
|
const newest = draft.messages.at(-1);
|
|
4947
4983
|
const summary = raw === undefined ? undefined : hostCheckpointSummary(raw);
|
|
4948
4984
|
this.note(`[magic-context] hidden child refused: ${reason} ${JSON.stringify({
|
|
@@ -4950,6 +4986,7 @@ class HiddenChildHook {
|
|
|
4950
4986
|
messages: draft.messages.length,
|
|
4951
4987
|
newest_role: newest?.role ?? null,
|
|
4952
4988
|
received: raw === undefined ? null : textDigest(raw),
|
|
4989
|
+
...texts !== undefined && texts.length > 1 ? { received_parts: texts.slice(0, REFUSAL_PART_DIGESTS).map(textDigest) } : {},
|
|
4953
4990
|
checkpoint_summary: summary === undefined ? null : textDigest(summary),
|
|
4954
4991
|
registered,
|
|
4955
4992
|
active: this.active.has(draft.sessionID),
|
|
@@ -4962,40 +4999,50 @@ class HiddenChildHook {
|
|
|
4962
4999
|
}
|
|
4963
5000
|
throw refusal;
|
|
4964
5001
|
}
|
|
4965
|
-
|
|
5002
|
+
firstMessageParts(attempt, draft, texts, system) {
|
|
4966
5003
|
const parts = calibratedParts(attempt);
|
|
4967
5004
|
if (!parts)
|
|
4968
|
-
this.refuse("Hidden completion accepts text-only calibrated prompts", draft,
|
|
4969
|
-
|
|
5005
|
+
this.refuse("Hidden completion accepts text-only calibrated prompts", draft, texts);
|
|
5006
|
+
if (!deliversInstructionsInUserMessage(draft.model.providerID))
|
|
5007
|
+
return parts;
|
|
5008
|
+
return [{ type: "text", text: claudeAgentInstructionsText(system) }, ...parts];
|
|
4970
5009
|
}
|
|
4971
5010
|
apply(draft) {
|
|
4972
5011
|
if (!this.owns(draft.sessionID)) {
|
|
4973
5012
|
if (isChildOfDisposedInstance(draft.sessionID)) {
|
|
4974
|
-
this.refuse(`Refusing a turn of a Magic Context hidden child of a disposed plugin instance: ${HIDDEN_RUN_DISPOSED_REASON}`, draft,
|
|
5013
|
+
this.refuse(`Refusing a turn of a Magic Context hidden child of a disposed plugin instance: ${HIDDEN_RUN_DISPOSED_REASON}`, draft, userTexts(draft.messages.at(-1)), undefined, "hidden_instance_disposed");
|
|
4975
5014
|
}
|
|
4976
5015
|
if (hiddenAgentAllowedTools(draft.agent) !== undefined) {
|
|
4977
|
-
this.refuse("Refusing a Magic Context hidden-agent turn this instance did not register", draft,
|
|
5016
|
+
this.refuse("Refusing a Magic Context hidden-agent turn this instance did not register", draft, userTexts(draft.messages.at(-1)));
|
|
4978
5017
|
}
|
|
4979
5018
|
return false;
|
|
4980
5019
|
}
|
|
4981
|
-
const
|
|
4982
|
-
|
|
4983
|
-
for (const
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
5020
|
+
const texts = userTexts(draft.messages.at(-1));
|
|
5021
|
+
const named = new Set;
|
|
5022
|
+
for (const text of texts) {
|
|
5023
|
+
for (const candidate of markerCandidates(text)) {
|
|
5024
|
+
const registered = this.attempts.get(candidate);
|
|
5025
|
+
if (registered) {
|
|
5026
|
+
named.add(registered);
|
|
5027
|
+
break;
|
|
5028
|
+
}
|
|
5029
|
+
}
|
|
5030
|
+
}
|
|
5031
|
+
if (named.size > 1) {
|
|
5032
|
+
this.refuse("Refusing a prompt that names more than one Magic Context hidden run", draft, texts);
|
|
4987
5033
|
}
|
|
5034
|
+
const attempt = [...named][0];
|
|
4988
5035
|
const current = this.active.get(draft.sessionID);
|
|
4989
5036
|
const selected = attempt ?? current;
|
|
4990
5037
|
if (!selected || selected.childSessionId !== draft.sessionID || attempt && current && current !== attempt) {
|
|
4991
|
-
this.refuse("Refusing an unregistered prompt on a Magic Context hidden-run session", draft,
|
|
5038
|
+
this.refuse("Refusing an unregistered prompt on a Magic Context hidden-run session", draft, texts);
|
|
4992
5039
|
}
|
|
4993
5040
|
if (selected.request.signal?.aborted) {
|
|
4994
5041
|
throw new Error("Hidden completion prompt aborted");
|
|
4995
5042
|
}
|
|
4996
5043
|
if (!selected.shaped) {
|
|
4997
5044
|
if (!attempt)
|
|
4998
|
-
this.refuse("Hidden child first step requires a registered marker", draft,
|
|
5045
|
+
this.refuse("Hidden child first step requires a registered marker", draft, texts);
|
|
4999
5046
|
this.active.set(draft.sessionID, selected);
|
|
5000
5047
|
}
|
|
5001
5048
|
const steps = (selected.steps ?? 0) + 1;
|
|
@@ -5007,29 +5054,27 @@ class HiddenChildHook {
|
|
|
5007
5054
|
selected.steps = steps;
|
|
5008
5055
|
const system = typeof selected.request.body.system === "string" ? selected.request.body.system : selected.identity.system;
|
|
5009
5056
|
const blockedRead = needsBlockedRead(selected.identity.agent, draft.model.providerID) && draft.tools.read !== undefined;
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
type: "text",
|
|
5013
|
-
text: blockedRead ? withBlockedReadInstruction(system, selected.identity) : system
|
|
5014
|
-
}
|
|
5015
|
-
];
|
|
5057
|
+
const systemText = blockedRead ? withBlockedReadInstruction(system, selected.identity) : system;
|
|
5058
|
+
draft.system = [{ type: "text", text: systemText }];
|
|
5016
5059
|
if (!selected.shaped) {
|
|
5017
5060
|
draft.messages = [
|
|
5018
|
-
{
|
|
5061
|
+
{
|
|
5062
|
+
role: "user",
|
|
5063
|
+
content: this.firstMessageParts(selected, draft, texts, systemText)
|
|
5064
|
+
}
|
|
5019
5065
|
];
|
|
5020
5066
|
} else {
|
|
5021
5067
|
let start = -1;
|
|
5022
5068
|
draft.messages.forEach((message, index) => {
|
|
5023
|
-
|
|
5024
|
-
if (text !== undefined && selected.marker !== undefined && markerCandidates(text).includes(selected.marker))
|
|
5069
|
+
if (selected.marker !== undefined && carriesMarker(userTexts(message), selected.marker))
|
|
5025
5070
|
start = index;
|
|
5026
5071
|
});
|
|
5027
5072
|
const first = draft.messages[start];
|
|
5028
5073
|
if (!first) {
|
|
5029
|
-
this.refuse("Hidden child history does not contain this run's registered marker", draft,
|
|
5074
|
+
this.refuse("Hidden child history does not contain this run's registered marker", draft, texts);
|
|
5030
5075
|
}
|
|
5031
5076
|
draft.messages = [
|
|
5032
|
-
{ ...first, content: this.
|
|
5077
|
+
{ ...first, content: this.firstMessageParts(selected, draft, texts, systemText) },
|
|
5033
5078
|
...draft.messages.slice(start + 1)
|
|
5034
5079
|
];
|
|
5035
5080
|
}
|
|
@@ -14551,9 +14596,6 @@ function fitHistorianPrompt(args) {
|
|
|
14551
14596
|
}
|
|
14552
14597
|
|
|
14553
14598
|
// src/hooks/magic-context/compartment-runner-historian.ts
|
|
14554
|
-
function historianResponseDumpDir(directory) {
|
|
14555
|
-
return getProjectMagicContextHistorianDir(directory);
|
|
14556
|
-
}
|
|
14557
14599
|
var MAX_HISTORIAN_RETRIES = 2;
|
|
14558
14600
|
var unknownProducerWindows = new Set;
|
|
14559
14601
|
var HISTORIAN_REASONING_PART_TYPES = new Set(["reasoning", "thinking", "redacted_thinking"]);
|
|
@@ -15027,7 +15069,7 @@ async function runHistorianPrompt(args) {
|
|
|
15027
15069
|
invocationId: invocationId ?? undefined
|
|
15028
15070
|
};
|
|
15029
15071
|
}
|
|
15030
|
-
const dumpPath = dumpHistorianResponse(parentSessionId,
|
|
15072
|
+
const dumpPath = dumpHistorianResponse(parentSessionId, dumpLabel ?? "historian-response", result);
|
|
15031
15073
|
return { ok: true, result, dumpPath, invocationId: invocationId ?? undefined };
|
|
15032
15074
|
} catch (modelError) {
|
|
15033
15075
|
hiddenModelCooldowns.record(handle?.attemptedModel ?? toModelEntry(modelOverride)?.model, modelError);
|
|
@@ -15181,14 +15223,12 @@ function cleanupHistorianDump(sessionId, dumpPath) {
|
|
|
15181
15223
|
});
|
|
15182
15224
|
}
|
|
15183
15225
|
}
|
|
15184
|
-
function dumpHistorianResponse(sessionId,
|
|
15226
|
+
function dumpHistorianResponse(sessionId, label, text) {
|
|
15185
15227
|
try {
|
|
15186
|
-
const dumpDir =
|
|
15228
|
+
const dumpDir = getMagicContextHistorianSessionDir(sessionId);
|
|
15187
15229
|
mkdirSync(dumpDir, { recursive: true });
|
|
15188
|
-
ensureCortexKitArtifactGitignore(directory);
|
|
15189
|
-
const safeSessionId = sanitizeDumpName(sessionId);
|
|
15190
15230
|
const safeLabel = sanitizeDumpName(label);
|
|
15191
|
-
const dumpPath = join3(dumpDir, `${
|
|
15231
|
+
const dumpPath = join3(dumpDir, `${safeLabel}-${Date.now()}.xml`);
|
|
15192
15232
|
writeFileSync2(dumpPath, text, "utf8");
|
|
15193
15233
|
sessionLog2(sessionId, "compartment agent: historian response dumped", {
|
|
15194
15234
|
label,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
tokenCountUsesByteBound,
|
|
11
11
|
estimateTokens,
|
|
12
12
|
createTokenCountMemo
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-5vsk2cpp.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-ywrz4wy2.js";
|
|
20
20
|
import {
|
|
21
21
|
tagIdentityRevisionKey,
|
|
22
22
|
tagOrderConstraintIndex,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
getToolDefinitionMeasurementSignature,
|
|
26
26
|
getMeasuredToolDefinitionTokens,
|
|
27
27
|
getSessionToolDefinitionTokens
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-jrj95cce.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveModelConfigValue,
|
|
31
31
|
DEFAULT_PROTECTED_TOOLS,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./index-avwt563y.js";
|
|
45
45
|
import {
|
|
46
46
|
logSlowWriteTransaction
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-m0pwswv9.js";
|
|
48
48
|
|
|
49
49
|
// src/shared/record-type-guard.ts
|
|
50
50
|
function isRecord(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionLog2
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-ywrz4wy2.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-8sc7vqt7.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-5vsk2cpp.js";
|
|
28
28
|
import {
|
|
29
29
|
stableStringify
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-jrj95cce.js";
|
|
31
31
|
import {
|
|
32
32
|
renderToolTemplate
|
|
33
33
|
} from "./index-6nqz8hsz.js";
|
|
@@ -47,13 +47,13 @@ import {
|
|
|
47
47
|
readRawSeedTailFromDb2,
|
|
48
48
|
readRawSessionBoundaryEndpointsFromDb2,
|
|
49
49
|
prewarmRawSessionOrdinalsForDb
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-q7q6qp1f.js";
|
|
51
51
|
import {
|
|
52
52
|
openCodeDbExists,
|
|
53
53
|
withReadOnlySessionDb,
|
|
54
54
|
getRawSessionMessageCountFromDb,
|
|
55
55
|
getMessageTimesFromOpenCodeDb
|
|
56
|
-
} from "./index-
|
|
56
|
+
} from "./index-x40zr813.js";
|
|
57
57
|
import {
|
|
58
58
|
markHostUnservedRow,
|
|
59
59
|
isHostUnservedRow
|