@cortexkit/opencode-magic-context 0.49.44 → 0.49.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto-search-worker.js +4 -4
- package/dist/chunk-embedding-write-worker.js +7 -7
- package/dist/{compartment-chunk-embedding-ypktm0tk.js → compartment-chunk-embedding-snj51nmg.js} +5 -5
- package/dist/{conflict-warning-hook-b75jn458.js → conflict-warning-hook-w1aw6w5t.js} +4 -4
- package/dist/{context-ws6gbyrr.js → context-cb51adcz.js} +374 -115
- package/dist/{derive-budgets-htj16n4x.js → derive-budgets-nkw09vq7.js} +1 -1
- package/dist/{embedding-backfill-zxj35jkq.js → embedding-backfill-kpy5shsa.js} +8 -8
- package/dist/embedding-worker.js +3 -3
- package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-query-deadline.d.ts +8 -0
- package/dist/features/magic-context/memory/embedding-query-deadline.d.ts.map +1 -0
- package/dist/features/magic-context/overflow-detection.d.ts +16 -6
- package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
- package/dist/hooks/auto-update-checker/index.d.ts +6 -0
- package/dist/hooks/auto-update-checker/index.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts +21 -0
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/priced-pass-sizing.d.ts +132 -0
- package/dist/hooks/magic-context/priced-pass-sizing.d.ts.map +1 -0
- package/dist/hooks/magic-context/read-session-formatting.d.ts +2 -1
- package/dist/hooks/magic-context/read-session-formatting.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-raw.d.ts.map +1 -1
- package/dist/hooks/magic-context/reasoning-budget.d.ts.map +1 -1
- package/dist/hooks/magic-context/recovery-fit.d.ts +51 -0
- package/dist/hooks/magic-context/recovery-fit.d.ts.map +1 -0
- package/dist/hooks/magic-context/routine-cleanup-decision.d.ts +109 -0
- package/dist/hooks/magic-context/routine-cleanup-decision.d.ts.map +1 -0
- package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +24 -0
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-context-state.d.ts +2 -1
- package/dist/hooks/magic-context/transform-context-state.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +15 -2
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +10 -2
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-jggt5gf2.js → index-1hwn96x1.js} +1 -1
- package/dist/{index-ae1ar4v1.js → index-25ka1jza.js} +1 -1
- package/dist/{index-91y4xvx6.js → index-44pp3vrj.js} +2 -2
- package/dist/{index-wapyeb06.js → index-55ngkbqa.js} +36 -17
- package/dist/{index-v64se1t6.js → index-5jk4h64j.js} +8 -8
- package/dist/{index-dnqqqc5f.js → index-8cfnaagj.js} +10 -2
- package/dist/{index-7y8c2n52.js → index-a4t7pdmm.js} +3 -3
- package/dist/{index-4xyjr62e.js → index-ak11t3gm.js} +4 -0
- package/dist/{index-6qnhaaa0.js → index-b0xt5qz9.js} +3 -3
- package/dist/{index-vd2ywmfe.js → index-brj6was5.js} +1 -1
- package/dist/{index-66qexmjw.js → index-d4qw2h43.js} +3 -3
- package/dist/{index-g4t7850m.js → index-dj2p8653.js} +1 -1
- package/dist/{index-m1mttf6y.js → index-etn2hmb5.js} +3 -3
- package/dist/{index-g0mjm7e4.js → index-gaxktvxm.js} +5 -5
- package/dist/{index-b1ydbp95.js → index-h9m41624.js} +1 -1
- package/dist/{index-p6gs3xpx.js → index-hkh8x221.js} +1 -1
- package/dist/{index-24y47287.js → index-kevd267m.js} +4 -4
- package/dist/{index-knnscj54.js → index-kw7azjmy.js} +3 -3
- package/dist/{index-dasvhxwg.js → index-n9q8c1dr.js} +6 -6
- package/dist/{index-g7rrfjkq.js → index-pwfmcg4e.js} +5 -5
- package/dist/{index-dcjkw41m.js → index-qcz1fy7h.js} +3 -3
- package/dist/{index-rhcwddn9.js → index-s79g172v.js} +63 -21
- package/dist/{index-kgk64zyx.js → index-sd2s4t4p.js} +1 -1
- package/dist/{index-jkanybgq.js → index-smtbdmc3.js} +1 -1
- package/dist/{index-ntssp0dt.js → index-snztv1f0.js} +621 -111
- package/dist/{index-8w3y6pxc.js → index-tajstyw4.js} +167 -87
- package/dist/{index-8jjjmhab.js → index-x53gnmce.js} +11 -11
- package/dist/{index-r2epb000.js → index-xa9mmq6c.js} +2 -1
- package/dist/{index-1j8m4ad0.js → index-xgnh498s.js} +10 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +43 -39
- package/dist/{message-fts-rowid-map-t6qsyg9s.js → message-fts-rowid-map-msffhkve.js} +2 -2
- package/dist/{message-index-bounded-dmq6ne7d.js → message-index-bounded-3qpg8dq5.js} +8 -8
- package/dist/migration-worker.js +5 -5
- package/dist/{project-embedding-registry-m47vg1ce.js → project-embedding-registry-r6xfsrbe.js} +7 -7
- package/dist/raw-ordinal-warmup-worker.js +7 -7
- package/dist/{read-session-chunk-3m7z9v3t.js → read-session-chunk-7h9f32sz.js} +6 -6
- package/dist/{read-session-raw-j7c9w57v.js → read-session-raw-x7a9b3jm.js} +1 -1
- package/dist/{recomp-orchestrator-9wtcpd7d.js → recomp-orchestrator-qnactdw7.js} +20 -20
- package/dist/{render-esw55s0k.js → render-da999saz.js} +13 -13
- package/dist/{search-3b4kbhtw.js → search-0a3hh5x6.js} +16 -16
- package/dist/{search-archive-wna5basn.js → search-archive-0z9cxv8e.js} +8 -8
- package/dist/{send-session-notification-14p3yje4.js → send-session-notification-j93pn2hn.js} +3 -3
- package/dist/shared/window-geometry.d.ts +5 -0
- package/dist/shared/window-geometry.d.ts.map +1 -1
- package/dist/{storage-tags-vj0yj7ed.js → storage-tags-q8erkn48.js} +4 -2
- package/dist/tools/ctx-search/tools.d.ts.map +1 -1
- package/dist/tools/parameter-descriptions.d.ts +6 -6
- package/dist/tools/parameter-descriptions.d.ts.map +1 -1
- package/dist/{transform-postprocess-phase-1y6p9ccc.js → transform-postprocess-phase-k9d1r13f.js} +21 -21
- package/dist/v2/auto-search-worker.js +4 -4
- package/dist/v2/chunk-embedding-write-worker.js +7 -7
- package/dist/v2/{compartment-chunk-embedding-qfk791bd.js → compartment-chunk-embedding-nj5nrnbj.js} +5 -5
- package/dist/v2/{context-sfgk72cj.js → context-jtqj5e1r.js} +1090 -260
- package/dist/v2/{derive-budgets-sa0v7bz0.js → derive-budgets-b5cgrtp8.js} +2 -2
- package/dist/v2/{embedding-backfill-ahwzfc7v.js → embedding-backfill-360efh1t.js} +8 -8
- package/dist/v2/embedding-worker.js +3 -3
- package/dist/v2/fold/code-mode-catalog.d.ts +11 -3
- package/dist/v2/fold/code-mode-catalog.d.ts.map +1 -1
- package/dist/v2/fold/instruction-supersession.d.ts +13 -2
- package/dist/v2/fold/instruction-supersession.d.ts.map +1 -1
- package/dist/v2/fold/native-replay.d.ts +5 -0
- package/dist/v2/fold/native-replay.d.ts.map +1 -1
- package/dist/v2/fold/owner.d.ts +14 -0
- package/dist/v2/fold/owner.d.ts.map +1 -1
- package/dist/v2/fold/summary.d.ts +35 -0
- package/dist/v2/fold/summary.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts +2 -1
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/lkg-system.d.ts +3 -0
- package/dist/v2/hooks/lkg-system.d.ts.map +1 -1
- package/dist/v2/{message-fts-rowid-map-z86avy0n.js → message-fts-rowid-map-qe7cpksd.js} +2 -2
- package/dist/v2/{message-index-bounded-mapha2ag.js → message-index-bounded-60tdhht5.js} +7 -7
- package/dist/v2/migration-worker.js +5 -5
- package/dist/v2/{project-embedding-registry-mn403rp5.js → project-embedding-registry-ek0cy0d5.js} +7 -7
- package/dist/v2/raw-ordinal-warmup-worker.js +7 -7
- package/dist/v2/{read-session-chunk-svcthp0n.js → read-session-chunk-9tmsxwb2.js} +5 -5
- package/dist/v2/{read-session-raw-qpp6x9kg.js → read-session-raw-yss2ev98.js} +1 -1
- package/dist/v2/{recomp-orchestrator-2bkv46am.js → recomp-orchestrator-7y8smqqp.js} +19 -19
- package/dist/v2/{render-315tv10c.js → render-j0y57skn.js} +12 -12
- package/dist/v2/{search-archive-hnx40ts0.js → search-archive-1e2tr8eq.js} +7 -7
- package/dist/v2/{search-bhrr075t.js → search-qhd2m8kn.js} +14 -14
- package/dist/v2/{send-session-notification-kxp47tsw.js → send-session-notification-na3q825m.js} +1 -1
- package/dist/v2/{server-nmyganc8.js → server-131h608x.js} +1 -1
- package/dist/v2/{server-86sk7h34.js → server-2gjqhmn9.js} +63 -21
- package/dist/v2/{server-xy7w7hrd.js → server-2j87594q.js} +1 -1
- package/dist/v2/{server-g8xvnxcf.js → server-3rp821fw.js} +3 -3
- package/dist/v2/{server-1yx5455s.js → server-4m71jpaj.js} +4 -4
- package/dist/v2/{server-78mc9sxx.js → server-5dtrzs6j.js} +9 -5
- package/dist/v2/{server-t5gxvcc3.js → server-5vy0xt3p.js} +3 -3
- package/dist/v2/{server-969cdpmg.js → server-7vb38e51.js} +4 -0
- package/dist/v2/{server-sd8hvzte.js → server-af1rmkyn.js} +1 -1
- package/dist/v2/{server-ngdrh7rv.js → server-ahy062xr.js} +36 -17
- package/dist/v2/{server-tnzbk64q.js → server-b3r080cm.js} +2 -1
- package/dist/v2/{server-zzgtgqmd.js → server-ddw42d76.js} +1 -1
- package/dist/v2/{server-63cz4w5t.js → server-ht0dyq9r.js} +3 -3
- package/dist/v2/{server-xnz3nrt2.js → server-pej5rnye.js} +1 -1
- package/dist/v2/{server-1c720m9s.js → server-rjn4msjj.js} +5 -5
- package/dist/v2/{server-rqypazrp.js → server-rshcp4gy.js} +3 -3
- package/dist/v2/{server-8xdnk7vz.js → server-sg2qjkrb.js} +1 -1
- package/dist/v2/{server-aqgg41wb.js → server-sr8tf5dt.js} +3 -3
- package/dist/v2/{server-qs0mdpc1.js → server-sscb1r3e.js} +7 -7
- package/dist/v2/{server-xfjjbrkt.js → server-t4hk02v1.js} +11 -11
- package/dist/v2/{server-vjhk8v41.js → server-wa4qhryh.js} +1 -1
- package/dist/v2/{server-cp1a03vc.js → server-y8n33d9j.js} +3 -3
- package/dist/v2/{server-qxzbmtqt.js → server-zt1m5rwj.js} +10 -2
- package/dist/v2/server.js +4 -4
- package/dist/v2/{storage-tags-cw07ky67.js → storage-tags-ztar1k0g.js} +4 -2
- package/dist/v2/{v2-archive-reader-qwn0me88.js → v2-archive-reader-tme5988n.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-ts0sqwp3.js → wrapup-orchestrator-k7m16xze.js} +19 -19
- package/dist/{v2-archive-reader-vqqjkeaq.js → v2-archive-reader-dq5ebwe6.js} +1 -1
- package/dist/{wrapup-orchestrator-qxvbvr4r.js → wrapup-orchestrator-4pqwet8p.js} +21 -21
- package/package.json +1 -1
- package/src/agents/smart-notes-dreamer-gate.golden.json +169 -169
- package/src/shared/prompt-surface-a1-golden.md +4 -4
- package/src/shared/window-geometry.test.ts +85 -0
- package/src/shared/window-geometry.ts +29 -2
|
@@ -142,6 +142,11 @@ function deriveWindowGeometry(providerID, modelID, catalogLimit, options = {}) {
|
|
|
142
142
|
const requestedOutput = Math.min(output ?? OPENCODE_OUTPUT_CAP, OPENCODE_OUTPUT_CAP);
|
|
143
143
|
usableHard = hardWindow - requestedOutput;
|
|
144
144
|
}
|
|
145
|
+
let hardWithoutInputCap;
|
|
146
|
+
if (isFinitePositive(input) && input < usableHard) {
|
|
147
|
+
hardWithoutInputCap = Math.max(MIN_PLAUSIBLE_CONTEXT_LIMIT, Math.floor(usableHard));
|
|
148
|
+
usableHard = input;
|
|
149
|
+
}
|
|
145
150
|
usableHard = Math.max(MIN_PLAUSIBLE_CONTEXT_LIMIT, Math.floor(usableHard));
|
|
146
151
|
if (usableHard < usableSoft) {
|
|
147
152
|
logGeometryClampOnce(`${providerID}/${modelID}|${usableSoft}|${usableHard}`, `usable hard limit clamped for ${providerID}/${modelID}: ${usableHard} → ${usableSoft} (window limit inversion)`, options.log);
|
|
@@ -158,7 +163,8 @@ function deriveWindowGeometry(providerID, modelID, catalogLimit, options = {}) {
|
|
|
158
163
|
reserveSource,
|
|
159
164
|
geometry,
|
|
160
165
|
windowSource,
|
|
161
|
-
absoluteWall: Math.floor(hardWindow)
|
|
166
|
+
absoluteWall: Math.floor(hardWindow),
|
|
167
|
+
...hardWithoutInputCap !== undefined ? { hardWithoutInputCap } : {}
|
|
162
168
|
}
|
|
163
169
|
};
|
|
164
170
|
}
|
|
@@ -180,11 +186,13 @@ function applyProvenInputFloor(geometry, provenInputTokens) {
|
|
|
180
186
|
}
|
|
181
187
|
const trustedAbsoluteWall = hasTrustedAbsoluteWall(geometry);
|
|
182
188
|
const window = trustedAbsoluteWall ? geometry.derivation.window : Math.max(geometry.derivation.window, provenInputTokens);
|
|
189
|
+
const inputCapDisproved = geometry.derivation.hardWithoutInputCap !== undefined && provenInputTokens > geometry.usableHard;
|
|
190
|
+
const hardBeforeFloor = inputCapDisproved ? geometry.derivation.hardWithoutInputCap : geometry.usableHard;
|
|
183
191
|
return {
|
|
184
192
|
geometry: {
|
|
185
193
|
...geometry,
|
|
186
194
|
usableSoft: provenInputTokens,
|
|
187
|
-
usableHard: trustedAbsoluteWall ?
|
|
195
|
+
usableHard: trustedAbsoluteWall ? hardBeforeFloor : Math.max(hardBeforeFloor, provenInputTokens),
|
|
188
196
|
derivation: {
|
|
189
197
|
...geometry.derivation,
|
|
190
198
|
window,
|
|
@@ -139,9 +139,9 @@ async function serveV2ArchiveReads2(port, openConnections) {
|
|
|
139
139
|
import("./sqlite-zdgm52sv.js"),
|
|
140
140
|
import("./store-reader-yh19h38c.js"),
|
|
141
141
|
import("./store-pd1e9hnr.js"),
|
|
142
|
-
import("./read-session-chunk-
|
|
143
|
-
import("./render-
|
|
144
|
-
import("./search-archive-
|
|
142
|
+
import("./read-session-chunk-7h9f32sz.js"),
|
|
143
|
+
import("./render-da999saz.js"),
|
|
144
|
+
import("./search-archive-0z9cxv8e.js"),
|
|
145
145
|
import("./expand-attachments-h33jbgyz.js")
|
|
146
146
|
]);
|
|
147
147
|
const pool = new V2StoreReaderPool;
|
|
@@ -393,6 +393,7 @@ function extractToolCallSummaries(parts) {
|
|
|
393
393
|
}
|
|
394
394
|
return summaries;
|
|
395
395
|
}
|
|
396
|
+
var COMMAND_ARG_MAX_CHARS = 200;
|
|
396
397
|
function extractKeyArg(_toolName, input) {
|
|
397
398
|
if (!input)
|
|
398
399
|
return null;
|
|
@@ -410,6 +411,9 @@ function extractKeyArg(_toolName, input) {
|
|
|
410
411
|
return input.module;
|
|
411
412
|
if (typeof input.action === "string")
|
|
412
413
|
return input.action;
|
|
414
|
+
if (typeof input.command === "string") {
|
|
415
|
+
return truncateArg(normalizeText(input.command), COMMAND_ARG_MAX_CHARS);
|
|
416
|
+
}
|
|
413
417
|
return null;
|
|
414
418
|
}
|
|
415
419
|
function truncateArg(value, maxLen = 60) {
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
} from "./index-96ztjvkn.js";
|
|
50
50
|
import {
|
|
51
51
|
startMessageFtsRowidMapBackfill2
|
|
52
|
-
} from "./index-
|
|
52
|
+
} from "./index-h9m41624.js";
|
|
53
53
|
import {
|
|
54
54
|
LKG_SLOT_CHUNKS_DDL,
|
|
55
55
|
SESSION_REPLAY_DECISIONS_DDL,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
import {
|
|
73
73
|
setDatabase,
|
|
74
74
|
loadToolDefinitionMeasurements
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-smtbdmc3.js";
|
|
76
76
|
import {
|
|
77
77
|
getErrorMessage
|
|
78
78
|
} from "./index-y8v6yerm.js";
|
|
@@ -1024,7 +1024,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
|
|
|
1024
1024
|
state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
|
|
1025
1025
|
if (signal.aborted || !readsOpenCodeStore)
|
|
1026
1026
|
return;
|
|
1027
|
-
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-
|
|
1027
|
+
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-7h9f32sz.js"));
|
|
1028
1028
|
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-39bm498k.js"));
|
|
1029
1029
|
if (signal.aborted)
|
|
1030
1030
|
return;
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
isSynapseEmbeddingTruncated,
|
|
9
9
|
SynapseEmbeddingProvider
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-dj2p8653.js";
|
|
11
11
|
import {
|
|
12
12
|
LocalEmbeddingProvider
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-hkh8x221.js";
|
|
14
14
|
import {
|
|
15
15
|
OpenAICompatibleEmbeddingProvider,
|
|
16
16
|
getProjectEmbeddingSnapshot2,
|
|
17
17
|
embedBatchForProject2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-s79g172v.js";
|
|
19
19
|
import {
|
|
20
20
|
isEmbeddingHostBusy2
|
|
21
21
|
} from "./index-qt1qqasc.js";
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
removeNestedBlocks,
|
|
7
7
|
hasMeaningfulUserText2,
|
|
8
8
|
extractTexts2
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-ak11t3gm.js";
|
|
10
10
|
import {
|
|
11
11
|
cleanUserText2
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-xgnh498s.js";
|
|
13
13
|
import {
|
|
14
14
|
recordMessageFtsRowid2,
|
|
15
15
|
recordIndexedMessageTime2,
|
|
16
16
|
messageFtsOrdinalRangeIsMapped2,
|
|
17
17
|
deleteUnmappedMessageFtsRows2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-h9m41624.js";
|
|
19
19
|
import {
|
|
20
20
|
logSlowWriteTransaction
|
|
21
21
|
} from "./index-fxbk7gk3.js";
|
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
} from "./index-gzy5w8ya.js";
|
|
7
7
|
import {
|
|
8
8
|
runSessionWarmupWorker
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-xa9mmq6c.js";
|
|
10
10
|
import {
|
|
11
11
|
estimateTokens
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-ak11t3gm.js";
|
|
13
13
|
import {
|
|
14
14
|
openCodeDbExists,
|
|
15
15
|
withReadOnlySessionDb
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-brj6was5.js";
|
|
17
17
|
import {
|
|
18
18
|
hasRawMessageProvider2,
|
|
19
19
|
rawMessageWorkerSource2,
|
|
20
20
|
rawMessageOffThreadRangeReader2,
|
|
21
21
|
readRawSessionMessageIdOrdinalsForRange2
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-xgnh498s.js";
|
|
23
23
|
import {
|
|
24
24
|
readV2ArchiveOffThread2
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-a4t7pdmm.js";
|
|
26
26
|
|
|
27
27
|
// src/tools/ctx-expand/search-archive.ts
|
|
28
28
|
var archiveReadsOnThisThread = 0;
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./index-jrfre9ah.js";
|
|
4
4
|
import {
|
|
5
5
|
clearEmergencyRecovery
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-xgnh498s.js";
|
|
7
7
|
import {
|
|
8
8
|
requestPendingMaterialization,
|
|
9
9
|
dropSlot
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-n9q8c1dr.js";
|
|
11
11
|
import {
|
|
12
12
|
executeContextRecomp
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-55ngkbqa.js";
|
|
14
14
|
import {
|
|
15
15
|
renderUserFacingFailure,
|
|
16
16
|
userFacingFailureCode
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-sd2s4t4p.js";
|
|
18
18
|
|
|
19
19
|
// src/hooks/magic-context/recomp-orchestrator.ts
|
|
20
20
|
function resolveLiveModelKey(liveSessionState, sessionId) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
estimateTokens
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-ak11t3gm.js";
|
|
4
4
|
import {
|
|
5
5
|
expandToolPart,
|
|
6
6
|
visitRawSessionMessages2,
|
|
7
7
|
readRawSessionMessageById2
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-xgnh498s.js";
|
|
9
9
|
import {
|
|
10
10
|
getTagById2
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-x53gnmce.js";
|
|
12
12
|
|
|
13
13
|
// src/tools/ctx-expand/render.ts
|
|
14
14
|
import { createHash } from "node:crypto";
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
} from "./index-gzy5w8ya.js";
|
|
29
29
|
import {
|
|
30
30
|
deleteUnmappedMessageFtsRows2
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-h9m41624.js";
|
|
32
32
|
import {
|
|
33
33
|
deleteChunkEmbedBackoffForSession2
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-qcz1fy7h.js";
|
|
35
35
|
import {
|
|
36
36
|
isPidAlive,
|
|
37
37
|
readProcessStartTime
|
|
@@ -63,19 +63,19 @@ import {
|
|
|
63
63
|
serializeProcessedImageMarkers,
|
|
64
64
|
getPendingPiCompactionMarkerState,
|
|
65
65
|
logPiCompactionMarkerClear
|
|
66
|
-
} from "./index-
|
|
66
|
+
} from "./index-xgnh498s.js";
|
|
67
67
|
import {
|
|
68
68
|
stripTagPrefix,
|
|
69
69
|
isRecord,
|
|
70
70
|
providerVisibleMessage
|
|
71
|
-
} from "./index-
|
|
71
|
+
} from "./index-x53gnmce.js";
|
|
72
72
|
import {
|
|
73
73
|
withReadOnlySessionDb
|
|
74
|
-
} from "./index-
|
|
74
|
+
} from "./index-brj6was5.js";
|
|
75
75
|
import {
|
|
76
76
|
BoundedSessionMap,
|
|
77
77
|
getMeasuredToolDefinitionTokens
|
|
78
|
-
} from "./index-
|
|
78
|
+
} from "./index-smtbdmc3.js";
|
|
79
79
|
import {
|
|
80
80
|
layoutLkgPrefix,
|
|
81
81
|
assembleLkgPrefix
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
releaseCompartmentLeaseBestEffort,
|
|
9
9
|
getCompartments,
|
|
10
10
|
getLastCompartmentEndMessage
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-n9q8c1dr.js";
|
|
12
12
|
import {
|
|
13
13
|
inRootAsyncContext2
|
|
14
14
|
} from "./index-gzy5w8ya.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
getHistorianFailureState,
|
|
21
21
|
clearEmergencyRecovery,
|
|
22
22
|
prepareRawSessionOrdinals2
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-xgnh498s.js";
|
|
24
24
|
import {
|
|
25
25
|
pushNotification2
|
|
26
26
|
} from "./index-x8a7jmkh.js";
|
|
@@ -32,14 +32,14 @@ import {
|
|
|
32
32
|
getActiveCompartmentRun,
|
|
33
33
|
markActiveCompartmentRunPublished,
|
|
34
34
|
registerActiveCompartmentRun
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-55ngkbqa.js";
|
|
36
36
|
import {
|
|
37
37
|
sendStatusNotification2
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-25ka1jza.js";
|
|
39
39
|
import {
|
|
40
40
|
setRecompStarting2,
|
|
41
41
|
setRecompTerminal2
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-kevd267m.js";
|
|
43
43
|
|
|
44
44
|
// src/hooks/magic-context/wrapup-orchestrator.ts
|
|
45
45
|
import * as crypto from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTokenEstimatorFingerprint,
|
|
3
3
|
estimateTokens
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-ak11t3gm.js";
|
|
5
5
|
import {
|
|
6
6
|
getHarness2
|
|
7
7
|
} from "./index-pavzsdc6.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./index-jrfre9ah.js";
|
|
11
11
|
import {
|
|
12
12
|
isSynapseEmbeddingTruncated
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-dj2p8653.js";
|
|
14
14
|
import {
|
|
15
15
|
messageFtsOrdinalRangeIsMapped2
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-h9m41624.js";
|
|
17
17
|
import {
|
|
18
18
|
isKnownAutocommit
|
|
19
19
|
} from "./index-8ajstryz.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
estimateTokens
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-ak11t3gm.js";
|
|
4
4
|
import {
|
|
5
5
|
getHarness2
|
|
6
6
|
} from "./index-pavzsdc6.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
isSynapseEmbeddingTruncated,
|
|
16
16
|
getSynapseBatchRequestKey,
|
|
17
17
|
SynapseEmbeddingProvider
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-dj2p8653.js";
|
|
19
19
|
import {
|
|
20
20
|
inRootAsyncContext2,
|
|
21
21
|
getSqliteDatabasePath2
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
countSessionCompartmentEmbedCoverage2,
|
|
44
44
|
countSessionCompartmentEmbedCoveragePolite2,
|
|
45
45
|
countUnembeddedSessionCompartmentsPolite2
|
|
46
|
-
} from "./index-
|
|
46
|
+
} from "./index-qcz1fy7h.js";
|
|
47
47
|
import {
|
|
48
48
|
DEFAULT_LOCAL_EMBEDDING_MODEL
|
|
49
49
|
} from "./index-4dpvnp8k.js";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
getEmbeddingProviderIdentity,
|
|
57
57
|
dominantEmbeddingFailure,
|
|
58
58
|
LocalEmbeddingProvider
|
|
59
|
-
} from "./index-
|
|
59
|
+
} from "./index-hkh8x221.js";
|
|
60
60
|
import {
|
|
61
61
|
embedPauseBySession,
|
|
62
62
|
activeEmbeddingSessions,
|
|
@@ -94,6 +94,36 @@ import {
|
|
|
94
94
|
// src/features/magic-context/memory/embedding-openai.ts
|
|
95
95
|
import { createHash } from "node:crypto";
|
|
96
96
|
|
|
97
|
+
// src/features/magic-context/memory/embedding-query-deadline.ts
|
|
98
|
+
var QUERY_EMBEDDING_TIMEOUT_MS = 5000;
|
|
99
|
+
|
|
100
|
+
class EmbeddingQueryTimeoutError extends Error {
|
|
101
|
+
timeoutMs = QUERY_EMBEDDING_TIMEOUT_MS;
|
|
102
|
+
constructor() {
|
|
103
|
+
super(`query embedding timed out after ${QUERY_EMBEDDING_TIMEOUT_MS}ms`);
|
|
104
|
+
this.name = "EmbeddingQueryTimeoutError";
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
async function withQueryEmbeddingDeadline(embed, signal) {
|
|
108
|
+
if (signal?.aborted)
|
|
109
|
+
return null;
|
|
110
|
+
const deadline = new AbortController;
|
|
111
|
+
const combined = signal ? AbortSignal.any([signal, deadline.signal]) : deadline.signal;
|
|
112
|
+
let onAbort;
|
|
113
|
+
const aborted = new Promise((resolve) => {
|
|
114
|
+
onAbort = () => resolve(null);
|
|
115
|
+
combined.addEventListener("abort", onAbort, { once: true });
|
|
116
|
+
});
|
|
117
|
+
const timer = setTimeout(() => deadline.abort(new EmbeddingQueryTimeoutError), QUERY_EMBEDDING_TIMEOUT_MS);
|
|
118
|
+
try {
|
|
119
|
+
return await Promise.race([embed(combined), aborted]);
|
|
120
|
+
} finally {
|
|
121
|
+
clearTimeout(timer);
|
|
122
|
+
if (onAbort)
|
|
123
|
+
combined.removeEventListener("abort", onAbort);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
97
127
|
// src/features/magic-context/memory/embedding-ssrf.ts
|
|
98
128
|
var METADATA_HOSTNAMES = new Set(["metadata.google.internal", "metadata.goog"]);
|
|
99
129
|
var IPV6_METADATA_HOSTS = new Set(["fd00:ec2::254"]);
|
|
@@ -190,9 +220,9 @@ function normalizeEndpoint(endpoint) {
|
|
|
190
220
|
return endpoint?.trim().replace(/\/+$/, "") ?? "";
|
|
191
221
|
}
|
|
192
222
|
var FAILURE_THRESHOLD = 3;
|
|
193
|
-
var FAILURE_WINDOW_MS = 60000;
|
|
194
223
|
var OPEN_DURATION_MS = 5 * 60000;
|
|
195
224
|
var FETCH_TIMEOUT_MS = 30000;
|
|
225
|
+
var FAILURE_WINDOW_MS = FAILURE_THRESHOLD * FETCH_TIMEOUT_MS;
|
|
196
226
|
var RETRY_AFTER_CAP_MS = 60000;
|
|
197
227
|
var RATE_LIMIT_BACKOFF_BASE_MS = 1000;
|
|
198
228
|
var RATE_LIMIT_BACKOFF_CAP_MS = 30000;
|
|
@@ -364,6 +394,8 @@ class OpenAICompatibleEmbeddingProvider {
|
|
|
364
394
|
let internalController;
|
|
365
395
|
let timeoutHandle;
|
|
366
396
|
let onOuterAbort;
|
|
397
|
+
let rateLimitedResponse = false;
|
|
398
|
+
const requestStartedAt = Date.now();
|
|
367
399
|
try {
|
|
368
400
|
const claim = this.claimProbeOrShortCircuit();
|
|
369
401
|
if (claim === "short_circuit") {
|
|
@@ -372,7 +404,14 @@ class OpenAICompatibleEmbeddingProvider {
|
|
|
372
404
|
isProbe = claim === "probe";
|
|
373
405
|
internalController = new AbortController;
|
|
374
406
|
timeoutHandle = setTimeout(() => internalController?.abort(), FETCH_TIMEOUT_MS);
|
|
375
|
-
onOuterAbort = () =>
|
|
407
|
+
onOuterAbort = () => {
|
|
408
|
+
if (signal?.reason instanceof EmbeddingQueryTimeoutError && !rateLimitedResponse) {
|
|
409
|
+
const timeoutMs = signal.reason.timeoutMs;
|
|
410
|
+
log2(`[magic-context] openai-compatible embedding request timed out after ${timeoutMs}ms`);
|
|
411
|
+
this.recordFailure(requestStartedAt, isProbe, this.failure("transport_error", `request timed out after ${timeoutMs}ms`, true));
|
|
412
|
+
}
|
|
413
|
+
internalController?.abort();
|
|
414
|
+
};
|
|
376
415
|
if (signal) {
|
|
377
416
|
signal.addEventListener("abort", onOuterAbort, { once: true });
|
|
378
417
|
}
|
|
@@ -393,22 +432,25 @@ class OpenAICompatibleEmbeddingProvider {
|
|
|
393
432
|
signal: internalController.signal
|
|
394
433
|
});
|
|
395
434
|
if (response.status === 429) {
|
|
435
|
+
rateLimitedResponse = true;
|
|
396
436
|
await response.text().catch(() => "");
|
|
397
437
|
this.noteRateLimit(response.headers.get("retry-after"));
|
|
398
438
|
return RATE_LIMITED;
|
|
399
439
|
}
|
|
400
440
|
if (!response.ok) {
|
|
401
441
|
const excerpt = await response.text().catch(() => "");
|
|
442
|
+
if (signal?.aborted)
|
|
443
|
+
return Array.from({ length: texts.length }, () => null);
|
|
402
444
|
const failure = this.failure("http_error", `HTTP ${response.status} from endpoint${this.bodyExcerpt(excerpt)}`, response.status >= 500 || response.status === 408);
|
|
403
445
|
log2(`[magic-context] openai-compatible embedding request failed: ${failure.reason}`);
|
|
404
|
-
this.recordFailure(isProbe, failure);
|
|
446
|
+
this.recordFailure(requestStartedAt, isProbe, failure);
|
|
405
447
|
return Array.from({ length: texts.length }, () => null);
|
|
406
448
|
}
|
|
407
449
|
const rawBody = await response.text();
|
|
408
450
|
if (rawBody.trim().length === 0) {
|
|
409
451
|
const failure = this.failure("invalid_envelope", "response body was empty", false);
|
|
410
452
|
log2(`[magic-context] openai-compatible embedding request failed: ${failure.reason}`);
|
|
411
|
-
this.recordFailure(isProbe, failure);
|
|
453
|
+
this.recordFailure(requestStartedAt, isProbe, failure);
|
|
412
454
|
return Array.from({ length: texts.length }, () => null);
|
|
413
455
|
}
|
|
414
456
|
let body;
|
|
@@ -417,7 +459,7 @@ class OpenAICompatibleEmbeddingProvider {
|
|
|
417
459
|
} catch {
|
|
418
460
|
const failure = this.failure("invalid_envelope", `response body was not valid JSON${this.bodyExcerpt(rawBody)}`, false);
|
|
419
461
|
log2(`[magic-context] openai-compatible embedding request failed: ${failure.reason}`);
|
|
420
|
-
this.recordFailure(isProbe, failure);
|
|
462
|
+
this.recordFailure(requestStartedAt, isProbe, failure);
|
|
421
463
|
return Array.from({ length: texts.length }, () => null);
|
|
422
464
|
}
|
|
423
465
|
const servedModel = typeof body.model === "string" ? body.model : "";
|
|
@@ -426,27 +468,27 @@ class OpenAICompatibleEmbeddingProvider {
|
|
|
426
468
|
log2(`[magic-context] embedding endpoint served a DIFFERENT model than requested — refusing the substituted vectors (they have the wrong dimensions/space). requested="${sanitizeDiagnosticText(this.model)}" served="${sanitizeDiagnosticText(servedModel)}". Check that the endpoint serves the requested model; variant suffixes and vendor prefixes are matched automatically.`);
|
|
427
469
|
this.modelMismatchLogged = true;
|
|
428
470
|
}
|
|
429
|
-
this.recordFailure(isProbe, this.failure("substitution_rejected", `served model '${sanitizeDiagnosticText(servedModel)}' does not match requested '${sanitizeDiagnosticText(this.model)}' (substitution guard)`, false));
|
|
471
|
+
this.recordFailure(requestStartedAt, isProbe, this.failure("substitution_rejected", `served model '${sanitizeDiagnosticText(servedModel)}' does not match requested '${sanitizeDiagnosticText(this.model)}' (substitution guard)`, false));
|
|
430
472
|
return Array.from({ length: texts.length }, () => null);
|
|
431
473
|
}
|
|
432
474
|
const responseKeys = Object.keys(body).sort();
|
|
433
475
|
if (!Array.isArray(body.data)) {
|
|
434
476
|
const failure = this.failure("invalid_envelope", `response had keys [${responseKeys.join(", ")}] but data[] was absent`, false);
|
|
435
477
|
log2(`[magic-context] openai-compatible embedding request failed: ${failure.reason}`);
|
|
436
|
-
this.recordFailure(isProbe, failure);
|
|
478
|
+
this.recordFailure(requestStartedAt, isProbe, failure);
|
|
437
479
|
return Array.from({ length: texts.length }, () => null);
|
|
438
480
|
}
|
|
439
481
|
if (body.data.length === 0) {
|
|
440
482
|
const failure = this.failure("empty_result", "response data[] was empty", true);
|
|
441
483
|
log2(`[magic-context] openai-compatible embedding request failed: ${failure.reason}`);
|
|
442
|
-
this.recordFailure(isProbe, failure);
|
|
484
|
+
this.recordFailure(requestStartedAt, isProbe, failure);
|
|
443
485
|
return Array.from({ length: texts.length }, () => null);
|
|
444
486
|
}
|
|
445
487
|
const slots = responseSlots(body.data, texts.length);
|
|
446
488
|
if (!slots) {
|
|
447
489
|
const failure = this.failure("invalid_envelope", "response data[].index values were missing, duplicated or out of range", false);
|
|
448
490
|
log2(`[magic-context] openai-compatible embedding request failed: ${failure.reason}`);
|
|
449
|
-
this.recordFailure(isProbe, failure);
|
|
491
|
+
this.recordFailure(requestStartedAt, isProbe, failure);
|
|
450
492
|
return Array.from({ length: texts.length }, () => null);
|
|
451
493
|
}
|
|
452
494
|
const results = Array.from({ length: texts.length }, () => null);
|
|
@@ -460,7 +502,7 @@ class OpenAICompatibleEmbeddingProvider {
|
|
|
460
502
|
if (results.every((r) => r === null)) {
|
|
461
503
|
const failure = this.failure("invalid_envelope", `response had keys [${responseKeys.join(", ")}] but data[].embedding was absent`, false);
|
|
462
504
|
log2(`[magic-context] openai-compatible embedding request failed: ${failure.reason}`);
|
|
463
|
-
this.recordFailure(isProbe, failure);
|
|
505
|
+
this.recordFailure(requestStartedAt, isProbe, failure);
|
|
464
506
|
} else {
|
|
465
507
|
this.recordSuccess();
|
|
466
508
|
}
|
|
@@ -471,13 +513,13 @@ class OpenAICompatibleEmbeddingProvider {
|
|
|
471
513
|
if (signal?.aborted) {} else {
|
|
472
514
|
log2(`[magic-context] openai-compatible embedding request timed out after ${FETCH_TIMEOUT_MS}ms`);
|
|
473
515
|
const failure = this.failure("transport_error", `request timed out after ${FETCH_TIMEOUT_MS}ms`, true);
|
|
474
|
-
this.recordFailure(isProbe, failure);
|
|
516
|
+
this.recordFailure(requestStartedAt, isProbe, failure);
|
|
475
517
|
}
|
|
476
518
|
} else {
|
|
477
519
|
const detail = error instanceof Error ? error.message : String(error);
|
|
478
520
|
const failure = this.failure("transport_error", `transport error: ${sanitizeDiagnosticText(detail)}`, true);
|
|
479
521
|
log2(`[magic-context] openai-compatible embedding request failed: ${failure.reason}`);
|
|
480
|
-
this.recordFailure(isProbe, failure);
|
|
522
|
+
this.recordFailure(requestStartedAt, isProbe, failure);
|
|
481
523
|
}
|
|
482
524
|
return Array.from({ length: texts.length }, () => null);
|
|
483
525
|
} finally {
|
|
@@ -549,7 +591,7 @@ class OpenAICompatibleEmbeddingProvider {
|
|
|
549
591
|
const excerpt = sanitizeDiagnosticText(body).replace(/\s+/g, " ").trim().slice(0, 200);
|
|
550
592
|
return excerpt ? `: ${excerpt}` : "";
|
|
551
593
|
}
|
|
552
|
-
recordFailure(isProbe, failure) {
|
|
594
|
+
recordFailure(requestStartedAt, isProbe, failure) {
|
|
553
595
|
if (failure)
|
|
554
596
|
this.lastFailureReason = failure;
|
|
555
597
|
if (isProbe) {
|
|
@@ -562,9 +604,9 @@ class OpenAICompatibleEmbeddingProvider {
|
|
|
562
604
|
return;
|
|
563
605
|
}
|
|
564
606
|
const now = Date.now();
|
|
565
|
-
const cutoff =
|
|
566
|
-
this.failureTimes = this.failureTimes.filter((t) => t
|
|
567
|
-
this.failureTimes.push(
|
|
607
|
+
const cutoff = requestStartedAt - FAILURE_WINDOW_MS;
|
|
608
|
+
this.failureTimes = this.failureTimes.filter((t) => t >= cutoff);
|
|
609
|
+
this.failureTimes.push(requestStartedAt);
|
|
568
610
|
if (this.failureTimes.length >= FAILURE_THRESHOLD) {
|
|
569
611
|
this.circuitOpenUntil = now + OPEN_DURATION_MS;
|
|
570
612
|
if (!this.openLogged) {
|
|
@@ -3102,4 +3144,4 @@ function _resetProjectEmbeddingRegistryForTests2() {
|
|
|
3102
3144
|
setBootQuietPeriodForTests(null);
|
|
3103
3145
|
}
|
|
3104
3146
|
|
|
3105
|
-
export { OpenAICompatibleEmbeddingProvider, saveCommitEmbedding, loadProjectCommitEmbeddings, loadUnembeddedCommits, countEmbeddedCommits, upsertCommits, getLatestIndexedCommitSha, enforceProjectCap, describeShadowBackfillWriteRefusal2, listShadowBackfillStalls2, retainProjectEmbedding2, getShadowBackfillStopReason2, markProjectLoadUntrusted2, contentSha2562, drainProjectEmbeddingIdentityMaintenance2, drainStaleEmbeddingIdentitiesForProject2, registerProjectEmbedding2, registerProjectShadowEmbedding2, getShadowEmbeddingMeasurementCohort2, getPrimaryEmbeddingMeasurementCohort2, embedShadowTextForProject2, enqueueShadowEmbeddingItems2, getShadowBackfillRemaining2, flushShadowEmbeddingBacklog2, registerProjectInObservationMode2, unregisterProjectShadowEmbedding2, unregisterProjectEmbedding2, getProjectEmbeddingSnapshot2, installProjectEmbeddingSearchBridge2, getProjectChunkEmbeddingModelId2, getProjectEmbeddingMaxInputTokens2, embedTextForProject2, embedBatchForProject2, embedItemsForProject2, embedUnembeddedMemoriesForProject2, embedUnembeddedMemoriesForProjectOutcome2, drainCommitBacklogForProject2, embedUnembeddedCompartmentChunksForProject2, embedSessionCompartmentChunks2, getEmbeddingCoverageStatus2, getAutoEmbeddingSessionCoverage2, sweepAllRegisteredProjects2, _setTestProviderFactoryForProject2, _resetProjectEmbeddingRegistryForTests2 };
|
|
3147
|
+
export { withQueryEmbeddingDeadline, OpenAICompatibleEmbeddingProvider, saveCommitEmbedding, loadProjectCommitEmbeddings, loadUnembeddedCommits, countEmbeddedCommits, upsertCommits, getLatestIndexedCommitSha, enforceProjectCap, describeShadowBackfillWriteRefusal2, listShadowBackfillStalls2, retainProjectEmbedding2, getShadowBackfillStopReason2, markProjectLoadUntrusted2, contentSha2562, drainProjectEmbeddingIdentityMaintenance2, drainStaleEmbeddingIdentitiesForProject2, registerProjectEmbedding2, registerProjectShadowEmbedding2, getShadowEmbeddingMeasurementCohort2, getPrimaryEmbeddingMeasurementCohort2, embedShadowTextForProject2, enqueueShadowEmbeddingItems2, getShadowBackfillRemaining2, flushShadowEmbeddingBacklog2, registerProjectInObservationMode2, unregisterProjectShadowEmbedding2, unregisterProjectEmbedding2, getProjectEmbeddingSnapshot2, installProjectEmbeddingSearchBridge2, getProjectChunkEmbeddingModelId2, getProjectEmbeddingMaxInputTokens2, embedTextForProject2, embedBatchForProject2, embedItemsForProject2, embedUnembeddedMemoriesForProject2, embedUnembeddedMemoriesForProjectOutcome2, drainCommitBacklogForProject2, embedUnembeddedCompartmentChunksForProject2, embedSessionCompartmentChunks2, getEmbeddingCoverageStatus2, getAutoEmbeddingSessionCoverage2, sweepAllRegisteredProjects2, _setTestProviderFactoryForProject2, _resetProjectEmbeddingRegistryForTests2 };
|