@cortexkit/opencode-magic-context 0.49.56 → 0.49.59
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-bejy30t5.js → context-aexc6pbs.js} +69 -44
- package/dist/{derive-budgets-z53424qx.js → derive-budgets-heypxqdz.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/features/magic-context/mural/render-mural.d.ts +17 -0
- package/dist/features/magic-context/mural/render-mural.d.ts.map +1 -1
- package/dist/features/magic-context/mural/render-trigger.d.ts +2 -1
- package/dist/features/magic-context/mural/render-trigger.d.ts.map +1 -1
- package/dist/features/magic-context/mural/resolve-mural.d.ts +8 -2
- package/dist/features/magic-context/mural/resolve-mural.d.ts.map +1 -1
- package/dist/features/magic-context/storage-historian-runs.d.ts +7 -0
- package/dist/features/magic-context/storage-historian-runs.d.ts.map +1 -1
- 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/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-types.d.ts +9 -0
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner.d.ts +7 -1
- package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-failure-report.d.ts +112 -0
- package/dist/hooks/magic-context/historian-failure-report.d.ts.map +1 -0
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +11 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.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-by14cr73.js → index-3yyfftqq.js} +11 -11
- package/dist/{index-ffab4edg.js → index-575njz7q.js} +74 -50
- package/dist/{index-gapnh6tk.js → index-5ps3axh5.js} +1 -1
- 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-3jeq08jv.js → index-a09sw9fx.js} +380 -93
- 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-5483ntzh.js → index-gth4t4ar.js} +5 -5
- package/dist/{index-pxfb7pp8.js → index-j4aeh6tx.js} +14 -14
- package/dist/{index-qperbvjn.js → index-jg7sbt3v.js} +2 -2
- package/dist/{index-9mggb1nv.js → index-jrj95cce.js} +2 -2
- package/dist/{index-12p4j9wa.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-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-qfc1kjh4.js → index-s2jdky2x.js} +3 -3
- package/dist/{index-2ny9xwdn.js → index-s32f8y67.js} +2 -2
- package/dist/{index-3wmp1nb7.js → index-s3t4vk21.js} +7 -7
- 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-wgbp5zch.js → index-ywxvdwmj.js} +25 -10
- package/dist/{index-xstbytjn.js → index-zb4h9nrk.js} +2 -2
- package/dist/{index-2vsd5064.js → index-zxj39ba2.js} +4 -4
- 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-2tsjqbrm.js → recomp-orchestrator-zqn9zwxn.js} +29 -29
- package/dist/{render-fgxbcmnh.js → render-nrfbtkkw.js} +19 -19
- package/dist/{safe-notification-target-mx5khyxf.js → safe-notification-target-d21swr3n.js} +2 -2
- package/dist/{search-archive-0mz3p1g1.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/test-temp-dir.d.ts +28 -0
- package/dist/shared/test-temp-dir.d.ts.map +1 -1
- package/dist/{storage-tags-arnkn5t1.js → storage-tags-spet01yb.js} +5 -5
- package/dist/{transform-postprocess-phase-64xtx439.js → transform-postprocess-phase-gxb3sp91.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-5hhm89jw.js → context-wszt0gbq.js} +102 -57
- package/dist/v2/{derive-budgets-w0815q82.js → derive-budgets-gw030jzt.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/hooks/usage-persist.d.ts +7 -1
- package/dist/v2/hooks/usage-persist.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-dzdxrgdt.js → recomp-orchestrator-76rv3b89.js} +30 -30
- package/dist/v2/{render-jfa3hj8z.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-p4s9q7a3.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-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-g61hgy1y.js → server-8pdfmc27.js} +4 -4
- package/dist/v2/{server-gge95a03.js → server-8ycacd59.js} +6 -6
- package/dist/v2/{server-8e5m2gre.js → server-9ab9jnpq.js} +3 -3
- package/dist/v2/{server-z6sxv6n3.js → server-9emfsa60.js} +382 -95
- package/dist/v2/{server-kyfj1090.js → server-9m5r04ws.js} +5 -5
- 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-sa1fdt41.js → server-kc5kb9ya.js} +1 -1
- 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-q02z0jq7.js → server-t8tmrtcg.js} +25 -10
- package/dist/v2/{server-0ayyh3mx.js → server-tzh55x6d.js} +9 -9
- package/dist/v2/{server-5p0bjk3y.js → server-v1s0cb4v.js} +2 -2
- 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-5kgesxck.js → server-ypaat9rj.js} +2 -2
- 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-jpdh0ktt.js → v2-archive-reader-ycjh6a2d.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-5dfj2mcs.js → wrapup-orchestrator-ejcx02g2.js} +30 -30
- package/dist/{v2-archive-reader-557b5dn3.js → v2-archive-reader-wec0a8fx.js} +1 -1
- package/dist/wrapup-orchestrator-e7mczz6e.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/test-temp-dir.ts +59 -0
- package/dist/wrapup-orchestrator-21hgybdk.js +0 -54
|
@@ -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";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
log2,
|
|
29
29
|
sessionLog2,
|
|
30
30
|
getLoggerDiagnostics2
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-ywrz4wy2.js";
|
|
32
32
|
import {
|
|
33
33
|
sanitizeDiagnosticText,
|
|
34
34
|
hasShareabilitySensitiveText
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
storedPathBelongsToIdentity,
|
|
72
72
|
beginBootQuietPeriod,
|
|
73
73
|
scheduleAfterBootQuiet
|
|
74
|
-
} from "./index-
|
|
74
|
+
} from "./index-tzy5h4x6.js";
|
|
75
75
|
import {
|
|
76
76
|
recordSessionProjectIdentity,
|
|
77
77
|
hasRecordedSessionProjectIdentity,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
markGitSweepSuccessAndRelease,
|
|
82
82
|
parkGitSweepNonIndexable,
|
|
83
83
|
releaseGitSweepLease
|
|
84
|
-
} from "./index-
|
|
84
|
+
} from "./index-jg7sbt3v.js";
|
|
85
85
|
import {
|
|
86
86
|
getMagicContextBuiltinCommands,
|
|
87
87
|
formatConfigParseStatusLine,
|
|
@@ -173,6 +173,8 @@ import {
|
|
|
173
173
|
readCoordinateRebaseNotice,
|
|
174
174
|
formatCoordinateRebaseNotice,
|
|
175
175
|
rebaseSessionCoordinatesAsync,
|
|
176
|
+
readHistorianFailureStreak,
|
|
177
|
+
describeHistorianJoinRefusal,
|
|
176
178
|
shouldWaitForNewHistorianHistory,
|
|
177
179
|
EMPTY_READ_REPLY,
|
|
178
180
|
noteTouchedAt,
|
|
@@ -194,7 +196,7 @@ import {
|
|
|
194
196
|
snapRangeToCompartments,
|
|
195
197
|
getActiveCompartmentRun,
|
|
196
198
|
startCompartmentAgent
|
|
197
|
-
} from "./index-
|
|
199
|
+
} from "./index-a09sw9fx.js";
|
|
198
200
|
import {
|
|
199
201
|
hasTrustedAbsoluteWall,
|
|
200
202
|
applyProvenInputFloor,
|
|
@@ -206,7 +208,7 @@ import {
|
|
|
206
208
|
deriveTriggerBudget2,
|
|
207
209
|
resolveKnownHistorianContextLimit2,
|
|
208
210
|
resolveHistorianProducerLimits2
|
|
209
|
-
} from "./index-
|
|
211
|
+
} from "./index-5ps3axh5.js";
|
|
210
212
|
import {
|
|
211
213
|
resolveModelCalibration,
|
|
212
214
|
calibrateBuckets,
|
|
@@ -220,7 +222,7 @@ import {
|
|
|
220
222
|
estimateTokens,
|
|
221
223
|
estimateFixedPromptTokens,
|
|
222
224
|
normalizeText
|
|
223
|
-
} from "./index-
|
|
225
|
+
} from "./index-5vsk2cpp.js";
|
|
224
226
|
import {
|
|
225
227
|
protectedToolTokenCount,
|
|
226
228
|
peelLeadingMcTagNotation,
|
|
@@ -286,7 +288,6 @@ import {
|
|
|
286
288
|
setPersistedTodoSyntheticAnchor,
|
|
287
289
|
clearPersistedTodoSyntheticAnchor,
|
|
288
290
|
setNoteLastReadAt,
|
|
289
|
-
getHistorianFailureState,
|
|
290
291
|
clearHistorianFailureState,
|
|
291
292
|
getOverflowState,
|
|
292
293
|
loadTransformPassStateSnapshot,
|
|
@@ -354,13 +355,13 @@ import {
|
|
|
354
355
|
getTagsByNumbers2,
|
|
355
356
|
getDroppedTagsByNumbers2,
|
|
356
357
|
getMaxDroppedTagNumber2
|
|
357
|
-
} from "./index-
|
|
358
|
+
} from "./index-8sc7vqt7.js";
|
|
358
359
|
import {
|
|
359
360
|
BoundedSessionMap,
|
|
360
361
|
observeTemporalDecisions,
|
|
361
362
|
stableStringify,
|
|
362
363
|
getMeasuredToolDefinitionTokens
|
|
363
|
-
} from "./index-
|
|
364
|
+
} from "./index-jrj95cce.js";
|
|
364
365
|
import {
|
|
365
366
|
withContentLanguageDirective,
|
|
366
367
|
string,
|
|
@@ -387,7 +388,7 @@ import {
|
|
|
387
388
|
extractInMemoryMessageViews2,
|
|
388
389
|
buildInMemoryTailRawMessages2,
|
|
389
390
|
RawOrdinalsNotReady2
|
|
390
|
-
} from "./index-
|
|
391
|
+
} from "./index-q7q6qp1f.js";
|
|
391
392
|
import {
|
|
392
393
|
openCodeDbExists,
|
|
393
394
|
withReadOnlySessionDb,
|
|
@@ -395,7 +396,7 @@ import {
|
|
|
395
396
|
latestPersistedMessageForRecovery,
|
|
396
397
|
latestRealUserTurnIdFromOpenCodeDb,
|
|
397
398
|
findLastAssistantModelFromOpenCodeDb
|
|
398
|
-
} from "./index-
|
|
399
|
+
} from "./index-x40zr813.js";
|
|
399
400
|
import {
|
|
400
401
|
askAnswerLines,
|
|
401
402
|
estimateTrueRawMessageTokens,
|
|
@@ -426,7 +427,7 @@ import {
|
|
|
426
427
|
readRawSessionMessageById2,
|
|
427
428
|
readSessionChunk2,
|
|
428
429
|
readRawSessionSeedTail2
|
|
429
|
-
} from "./index-
|
|
430
|
+
} from "./index-d0feqcs5.js";
|
|
430
431
|
import {
|
|
431
432
|
isFailClosedBlockingError,
|
|
432
433
|
shouldBypassFailClosedBlock,
|
|
@@ -438,7 +439,7 @@ import {
|
|
|
438
439
|
rpcPortFilePath,
|
|
439
440
|
parseRpcPortFile,
|
|
440
441
|
inspectProcessesAsync
|
|
441
|
-
} from "./index-
|
|
442
|
+
} from "./index-gqf8r04r.js";
|
|
442
443
|
import {
|
|
443
444
|
configureContextDatabasePragmas2
|
|
444
445
|
} from "./index-fb3zxn06.js";
|
|
@@ -452,7 +453,7 @@ import {
|
|
|
452
453
|
runSqliteOptimize,
|
|
453
454
|
openDatabase,
|
|
454
455
|
openCurrentDatabase
|
|
455
|
-
} from "./index-
|
|
456
|
+
} from "./index-0cz8bsyx.js";
|
|
456
457
|
import {
|
|
457
458
|
unescapeXml,
|
|
458
459
|
resolveWorkspaceShareCategories,
|
|
@@ -461,7 +462,7 @@ import {
|
|
|
461
462
|
resolveStoredPathWorkspaceIdentity,
|
|
462
463
|
storedPathBelongsToWorkspace,
|
|
463
464
|
computeWorkspaceEpochFingerprint
|
|
464
|
-
} from "./index-
|
|
465
|
+
} from "./index-xx05vta0.js";
|
|
465
466
|
import {
|
|
466
467
|
V2_MEMORY_CATEGORIES,
|
|
467
468
|
CATEGORY_PRIORITY
|
|
@@ -483,7 +484,7 @@ import {
|
|
|
483
484
|
toSynapseLaneDescriptor,
|
|
484
485
|
formatSynapseLaneDescriptor,
|
|
485
486
|
SynapseEmbeddingProvider
|
|
486
|
-
} from "./index-
|
|
487
|
+
} from "./index-pxnzyvjc.js";
|
|
487
488
|
import {
|
|
488
489
|
getCompartments,
|
|
489
490
|
getLastCompartmentEndMessage,
|
|
@@ -568,10 +569,10 @@ import {
|
|
|
568
569
|
GLOBAL_USER_PROFILE_PROJECT_PATH,
|
|
569
570
|
getProjectState,
|
|
570
571
|
bumpProjectUserProfileVersion
|
|
571
|
-
} from "./index-
|
|
572
|
+
} from "./index-ywxvdwmj.js";
|
|
572
573
|
import {
|
|
573
574
|
getLastIndexedOrdinal
|
|
574
|
-
} from "./index-
|
|
575
|
+
} from "./index-ev2rrjfc.js";
|
|
575
576
|
import {
|
|
576
577
|
SESSION_NOTE_CONDITION_ERROR,
|
|
577
578
|
getNoteByIdInScope,
|
|
@@ -597,7 +598,7 @@ import {
|
|
|
597
598
|
createPrimer,
|
|
598
599
|
updatePrimerSupport,
|
|
599
600
|
updatePrimerAnswer
|
|
600
|
-
} from "./index-
|
|
601
|
+
} from "./index-tebcx987.js";
|
|
601
602
|
import {
|
|
602
603
|
registerNotificationSink2,
|
|
603
604
|
pushNotification2,
|
|
@@ -609,7 +610,7 @@ import {
|
|
|
609
610
|
getCachedLocalEmbeddingPooling,
|
|
610
611
|
preflightLocalEmbeddingPooling,
|
|
611
612
|
getLocalEmbeddingNativeMemoryStats
|
|
612
|
-
} from "./index-
|
|
613
|
+
} from "./index-zb4h9nrk.js";
|
|
613
614
|
import {
|
|
614
615
|
withQueryEmbeddingDeadline,
|
|
615
616
|
describeShadowBackfillWriteRefusal2,
|
|
@@ -630,7 +631,7 @@ import {
|
|
|
630
631
|
embedSessionCompartmentChunks2,
|
|
631
632
|
getEmbeddingCoverageStatus2,
|
|
632
633
|
getAutoEmbeddingSessionCoverage2
|
|
633
|
-
} from "./index-
|
|
634
|
+
} from "./index-gq1g9a3a.js";
|
|
634
635
|
import {
|
|
635
636
|
saveEmbeddingIfHashMatches,
|
|
636
637
|
invalidateProject2,
|
|
@@ -638,7 +639,7 @@ import {
|
|
|
638
639
|
} from "./index-4dhv7mqz.js";
|
|
639
640
|
import {
|
|
640
641
|
cosineSimilarity
|
|
641
|
-
} from "./index-
|
|
642
|
+
} from "./index-zxj39ba2.js";
|
|
642
643
|
import {
|
|
643
644
|
computeCueContentHash,
|
|
644
645
|
hasMuralCueColumns,
|
|
@@ -684,7 +685,7 @@ import {
|
|
|
684
685
|
readGitFileChangeTimesSince,
|
|
685
686
|
verificationFileExists,
|
|
686
687
|
normalizeVerificationFiles
|
|
687
|
-
} from "./index-
|
|
688
|
+
} from "./index-n6aye6ny.js";
|
|
688
689
|
import {
|
|
689
690
|
renderSingleStoreMigrationRequiredRefusal,
|
|
690
691
|
SingleStoreMigrationRequiredError,
|
|
@@ -705,23 +706,23 @@ import {
|
|
|
705
706
|
resolveMemoriesByIdsForSearch2,
|
|
706
707
|
unifiedSearch2,
|
|
707
708
|
formatSearchResults2
|
|
708
|
-
} from "./index-
|
|
709
|
+
} from "./index-3yyfftqq.js";
|
|
709
710
|
import {
|
|
710
711
|
scheduleReconciliation,
|
|
711
712
|
scheduleIncrementalIndex,
|
|
712
713
|
getMessageIndexQueueHeapStats,
|
|
713
714
|
clearSessionTracking
|
|
714
|
-
} from "./index-
|
|
715
|
+
} from "./index-3hk445am.js";
|
|
715
716
|
import {
|
|
716
717
|
flushIgnoredMessages2,
|
|
717
718
|
clearIgnoredMessages2,
|
|
718
719
|
observeIgnoredNotificationEvent2,
|
|
719
720
|
sendStatusNotification2
|
|
720
|
-
} from "./index-
|
|
721
|
+
} from "./index-1sq1krqw.js";
|
|
721
722
|
import {
|
|
722
723
|
setRecompStarting2,
|
|
723
724
|
setRecompTerminal2
|
|
724
|
-
} from "./index-
|
|
725
|
+
} from "./index-gth4t4ar.js";
|
|
725
726
|
import {
|
|
726
727
|
makeToolCompositeKey,
|
|
727
728
|
searchMessageHistoryOffThread,
|
|
@@ -806,14 +807,14 @@ import {
|
|
|
806
807
|
abortSessionFailClosed2,
|
|
807
808
|
evaluateEmergencyFailClosed2,
|
|
808
809
|
runPostTransformPhase2
|
|
809
|
-
} from "./index-
|
|
810
|
+
} from "./index-j4aeh6tx.js";
|
|
810
811
|
import {
|
|
811
812
|
ANNOUNCEMENT_VERSION2,
|
|
812
813
|
ANNOUNCEMENT_FEATURES2,
|
|
813
814
|
ANNOUNCEMENT_FOOTER2,
|
|
814
815
|
markAnnouncementSeen2,
|
|
815
816
|
shouldShowAnnouncement2
|
|
816
|
-
} from "./index-
|
|
817
|
+
} from "./index-98qy103c.js";
|
|
817
818
|
import {
|
|
818
819
|
resolvePromptContext2
|
|
819
820
|
} from "./index-fmsr7v69.js";
|
|
@@ -821,13 +822,13 @@ import {
|
|
|
821
822
|
renderMessageByOrdinal2,
|
|
822
823
|
renderVerboseRangeForTool2,
|
|
823
824
|
renderItemByTag2
|
|
824
|
-
} from "./index-
|
|
825
|
+
} from "./index-tq20edcs.js";
|
|
825
826
|
import {
|
|
826
827
|
readV2ArchiveOffThread2
|
|
827
|
-
} from "./index-
|
|
828
|
+
} from "./index-s2jdky2x.js";
|
|
828
829
|
import {
|
|
829
830
|
renderSearchArchiveOffThread2
|
|
830
|
-
} from "./index-
|
|
831
|
+
} from "./index-kv4ntrr6.js";
|
|
831
832
|
import {
|
|
832
833
|
COMPACTION_ENABLED_PATH,
|
|
833
834
|
isDreamerRunnable,
|
|
@@ -861,7 +862,7 @@ import {
|
|
|
861
862
|
} from "./index-8ajstryz.js";
|
|
862
863
|
import {
|
|
863
864
|
logSlowWriteTransaction
|
|
864
|
-
} from "./index-
|
|
865
|
+
} from "./index-m0pwswv9.js";
|
|
865
866
|
import {
|
|
866
867
|
shouldEnforcePrivateStoragePermissions,
|
|
867
868
|
ensureStorageDirectorySync,
|
|
@@ -14706,7 +14707,7 @@ async function executeDreaming(deps, sessionId, argText) {
|
|
|
14706
14707
|
const dreamNotificationParams = {
|
|
14707
14708
|
toastDurationMs: deps.sampleToastDurationMs?.() ?? deps.toastDurationMs ?? 5000
|
|
14708
14709
|
};
|
|
14709
|
-
if (!deps.dreamer) {
|
|
14710
|
+
if (!deps.dreamer || deps.dreamer.isDisabled?.() === true) {
|
|
14710
14711
|
await deps.sendNotification(sessionId, `## /ctx-dream
|
|
14711
14712
|
|
|
14712
14713
|
Dreaming is not configured for this project.`, dreamNotificationParams);
|
|
@@ -16396,7 +16397,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16396
16397
|
return { count: buildCompartmentCount(db, sessionId, moduleStatus) };
|
|
16397
16398
|
});
|
|
16398
16399
|
const buildManagedCtx = async (db) => {
|
|
16399
|
-
const { deriveHistorianChunkTokens, resolveHistorianContextLimit } = await importPluginModule(() => import("./derive-budgets-
|
|
16400
|
+
const { deriveHistorianChunkTokens, resolveHistorianContextLimit } = await importPluginModule(() => import("./derive-budgets-heypxqdz.js"));
|
|
16400
16401
|
const { resolveHistorianModel } = await importPluginModule(() => import("./model-resolution-280gmqvd.js"));
|
|
16401
16402
|
const { userObservationCollectionEnabled, userObservationsRequested } = await importPluginModule(() => import("./task-config-t6bpyka7.js"));
|
|
16402
16403
|
const DEFAULT_HISTORIAN_TIMEOUT_MS = 10 * 60 * 1000;
|
|
@@ -16429,7 +16430,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16429
16430
|
return { ok: false, error: "no session" };
|
|
16430
16431
|
const readDirectory = args.readSessionDirectory;
|
|
16431
16432
|
if (readDirectory) {
|
|
16432
|
-
const { handoffHistoryWork } = await import("./history-owner-
|
|
16433
|
+
const { handoffHistoryWork } = await import("./history-owner-xqfsvf9k.js");
|
|
16433
16434
|
const handed = await handoffHistoryWork({
|
|
16434
16435
|
storageDir: args.storageDir ?? getMagicContextStorageDir(),
|
|
16435
16436
|
directory,
|
|
@@ -16448,8 +16449,8 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16448
16449
|
const db = readDatabase();
|
|
16449
16450
|
if (!db)
|
|
16450
16451
|
return { ok: false, error: "db unavailable" };
|
|
16451
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
16452
|
-
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-
|
|
16452
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-zqn9zwxn.js"));
|
|
16453
|
+
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-ykvt5k2s.js"));
|
|
16453
16454
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
16454
16455
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
16455
16456
|
return {
|
|
@@ -16507,7 +16508,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16507
16508
|
rpcServer.handle("wrapup", async (params) => {
|
|
16508
16509
|
const readDirectory = args.readSessionDirectory;
|
|
16509
16510
|
if (readDirectory && params.sessionId) {
|
|
16510
|
-
const { handoffHistoryWork } = await import("./history-owner-
|
|
16511
|
+
const { handoffHistoryWork } = await import("./history-owner-xqfsvf9k.js");
|
|
16511
16512
|
const sessionId = String(params.sessionId);
|
|
16512
16513
|
const handed = await handoffHistoryWork({
|
|
16513
16514
|
storageDir: args.storageDir ?? getMagicContextStorageDir(),
|
|
@@ -16533,7 +16534,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16533
16534
|
const db = readDatabase();
|
|
16534
16535
|
if (!db)
|
|
16535
16536
|
return { ok: false, error: "db unavailable" };
|
|
16536
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
16537
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-e7mczz6e.js"));
|
|
16537
16538
|
const model = liveSessionState.liveModelBySession.get(sessionId);
|
|
16538
16539
|
const contextLimit = model ? resolveContextLimit(model.providerID, model.modelID, { db, sessionID: sessionId }) : 128000;
|
|
16539
16540
|
const ctx = {
|
|
@@ -24253,10 +24254,18 @@ function historianJoinFailClosedMessage(input) {
|
|
|
24253
24254
|
if (estimate?.trusted === true && Number.isFinite(estimate.tokens) && estimate.tokens > 0 && Number.isFinite(input.contextLimitTokens) && input.contextLimitTokens > 0 && estimate.tokens < input.contextLimitTokens) {
|
|
24254
24255
|
return null;
|
|
24255
24256
|
}
|
|
24256
|
-
|
|
24257
|
-
|
|
24258
|
-
|
|
24259
|
-
|
|
24257
|
+
return describeHistorianJoinRefusal({
|
|
24258
|
+
waitedMs: input.budgetMs ?? HISTORIAN_INLINE_JOIN_BUDGET_MS,
|
|
24259
|
+
usagePercentage: input.usagePercentage,
|
|
24260
|
+
run: input.joinedRun,
|
|
24261
|
+
failures: input.failures ?? {
|
|
24262
|
+
count: 0,
|
|
24263
|
+
lastError: null,
|
|
24264
|
+
lastFailureAt: null,
|
|
24265
|
+
since: null
|
|
24266
|
+
},
|
|
24267
|
+
now: input.now
|
|
24268
|
+
});
|
|
24260
24269
|
}
|
|
24261
24270
|
function runCompartmentPhase(args) {
|
|
24262
24271
|
if (args.historianRunnable !== false && !args.compactionOff && args.canRunCompartments && !getActiveCompartmentRun(args.sessionId) && (args.sessionMeta.compartmentInProgress || args.contextUsage.percentage >= BLOCK_UNTIL_DONE_PERCENTAGE) && isHistorianDrainBudgetSpent({
|
|
@@ -24303,6 +24312,7 @@ async function runCompartmentPhaseImpl(args) {
|
|
|
24303
24312
|
let rebuiltHistoryThisPass = false;
|
|
24304
24313
|
let historianJoinTimedOut = false;
|
|
24305
24314
|
let historianJoinBudgetMs = null;
|
|
24315
|
+
let historianJoinedRun;
|
|
24306
24316
|
let chainedRecoveryRuns = 0;
|
|
24307
24317
|
const historianRunnable = args.historianRunnable !== false;
|
|
24308
24318
|
if (args.compactionOff) {
|
|
@@ -24320,6 +24330,7 @@ async function runCompartmentPhaseImpl(args) {
|
|
|
24320
24330
|
rebuiltHistoryThisPass,
|
|
24321
24331
|
historianJoinTimedOut,
|
|
24322
24332
|
historianJoinBudgetMs,
|
|
24333
|
+
historianJoinedRun,
|
|
24323
24334
|
chainedRecoveryRuns,
|
|
24324
24335
|
recoveryHistoryRemains: false
|
|
24325
24336
|
};
|
|
@@ -24375,6 +24386,7 @@ async function runCompartmentPhaseImpl(args) {
|
|
|
24375
24386
|
if (activeRun.inlineJoinTimedOutBudgetMs !== undefined && !activeRun.settled) {
|
|
24376
24387
|
historianJoinTimedOut = true;
|
|
24377
24388
|
historianJoinBudgetMs = activeRun.inlineJoinTimedOutBudgetMs;
|
|
24389
|
+
historianJoinedRun = activeRun;
|
|
24378
24390
|
sessionLog2(args.sessionId, "transform: compartment inline join budget already exhausted for this run — not waiting again");
|
|
24379
24391
|
return "timed_out";
|
|
24380
24392
|
}
|
|
@@ -24395,6 +24407,7 @@ async function runCompartmentPhaseImpl(args) {
|
|
|
24395
24407
|
if (result === "timeout") {
|
|
24396
24408
|
activeRun.inlineJoinTimedOutBudgetMs = join.budgetMs;
|
|
24397
24409
|
historianJoinTimedOut = true;
|
|
24410
|
+
historianJoinedRun = activeRun;
|
|
24398
24411
|
sessionLog2(args.sessionId, `transform: compartment await timed out after ${timeoutMs}ms — proceeding without waiting`);
|
|
24399
24412
|
return "timed_out";
|
|
24400
24413
|
}
|
|
@@ -24632,6 +24645,7 @@ async function runCompartmentPhaseImpl(args) {
|
|
|
24632
24645
|
rebuiltHistoryThisPass,
|
|
24633
24646
|
historianJoinTimedOut,
|
|
24634
24647
|
historianJoinBudgetMs,
|
|
24648
|
+
historianJoinedRun,
|
|
24635
24649
|
chainedRecoveryRuns,
|
|
24636
24650
|
recoveryHistoryRemains
|
|
24637
24651
|
};
|
|
@@ -25090,9 +25104,17 @@ function createTransform(deps) {
|
|
|
25090
25104
|
deps.liveModelBySession.set(sessionId, currentOutgoingModel);
|
|
25091
25105
|
const outgoingModelKey = resolveModelKey(currentOutgoingModel.providerID, currentOutgoingModel.modelID);
|
|
25092
25106
|
const lastUsageModelKey = persistedUsageBeforeResets?.lastObservedModelKey ?? null;
|
|
25093
|
-
|
|
25094
|
-
|
|
25095
|
-
|
|
25107
|
+
const modelChangedSinceUsage = lastUsageModelKey != null && outgoingModelKey != null && piModelRefToCanonical(lastUsageModelKey) !== piModelRefToCanonical(outgoingModelKey);
|
|
25108
|
+
const storedOverflow = getOverflowState(db, sessionId);
|
|
25109
|
+
const detectedLimitForOtherModel = outgoingModelKey != null && storedOverflow.detectedContextLimit > 0 && storedOverflow.detectedContextLimitModelKey !== null && storedOverflow.detectedContextLimitModelKey !== piModelRefToCanonical(outgoingModelKey);
|
|
25110
|
+
if (detectedLimitForOtherModel && !modelChangedSinceUsage) {
|
|
25111
|
+
sessionLog2(sessionId, `transform: clearing detected limit ${storedOverflow.detectedContextLimit} and overflow recovery recorded for ${storedOverflow.detectedContextLimitModelKey}; outgoing model is ${outgoingModelKey}`);
|
|
25112
|
+
clearDetectedContextLimit(db, sessionId);
|
|
25113
|
+
clearEmergencyRecovery(db, sessionId);
|
|
25114
|
+
forgetHistoryBoundaryRecovery(sessionId);
|
|
25115
|
+
}
|
|
25116
|
+
if (modelChangedSinceUsage) {
|
|
25117
|
+
const preserveOutgoingOverflow = storedOverflow.detectedContextLimit > 0 && storedOverflow.detectedContextLimitModelKey !== null && !detectedLimitForOtherModel;
|
|
25096
25118
|
dropSlot(sessionId, "model-change");
|
|
25097
25119
|
sessionLog2(sessionId, `transform: model change since last usage (${lastUsageModelKey} -> ${outgoingModelKey}), clearing stale per-model state`);
|
|
25098
25120
|
updateSessionMeta(db, sessionId, {
|
|
@@ -25106,7 +25128,7 @@ function createTransform(deps) {
|
|
|
25106
25128
|
clearPersistedReasoningWatermark(db, sessionId);
|
|
25107
25129
|
clearEmergencyDropSample(db, sessionId);
|
|
25108
25130
|
if (preserveOutgoingOverflow) {
|
|
25109
|
-
sessionLog2(sessionId, `transform: preserving detected limit ${
|
|
25131
|
+
sessionLog2(sessionId, `transform: preserving detected limit ${storedOverflow.detectedContextLimit} and overflow recovery for outgoing model ${outgoingModelKey}`);
|
|
25110
25132
|
} else {
|
|
25111
25133
|
clearDetectedContextLimit(db, sessionId);
|
|
25112
25134
|
clearEmergencyRecovery(db, sessionId);
|
|
@@ -26396,10 +26418,12 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
26396
26418
|
budgetMs: compartmentPhase.historianJoinBudgetMs,
|
|
26397
26419
|
finalWireEstimate,
|
|
26398
26420
|
contextLimitTokens: boundaryContextLimit,
|
|
26399
|
-
|
|
26421
|
+
joinedRun: compartmentPhase.historianJoinedRun,
|
|
26422
|
+
failures: readHistorianFailureStreak(db, sessionId),
|
|
26423
|
+
usagePercentage: contextUsage.percentage
|
|
26400
26424
|
}) : null;
|
|
26401
26425
|
if (timedOutHistorianFailure) {
|
|
26402
|
-
sessionLog2(sessionId, `transform: ${timedOutHistorianFailure}; finalEstimate=${finalWireEstimate?.tokens ?? "unavailable"} estimateTrusted=${finalWireEstimate?.trusted ?? false} contextLimit=${boundaryContextLimit} emergencyReclaimed=${postTransformResult.emergencyReclaimedTokens}`);
|
|
26426
|
+
sessionLog2(sessionId, `transform: historian join refusal: ${timedOutHistorianFailure}; finalEstimate=${finalWireEstimate?.tokens ?? "unavailable"} estimateTrusted=${finalWireEstimate?.trusted ?? false} contextLimit=${boundaryContextLimit} emergencyReclaimed=${postTransformResult.emergencyReclaimedTokens}`);
|
|
26403
26427
|
keepRecoveryArmed();
|
|
26404
26428
|
throw new EmergencyFailClosedError(timedOutHistorianFailure);
|
|
26405
26429
|
}
|
|
@@ -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) {
|