@cortexkit/opencode-magic-context 0.49.98 → 0.49.100
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 +3 -3
- package/dist/chunk-embedding-write-worker.js +1 -1
- package/dist/{context-0ae81pg4.js → context-k2tdh146.js} +293 -32
- package/dist/{embedding-backfill-7terr34j.js → embedding-backfill-79br4kk6.js} +2 -2
- package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-probe.d.ts +10 -9
- package/dist/features/magic-context/memory/embedding-probe.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-response-slots.d.ts +13 -0
- package/dist/features/magic-context/memory/embedding-response-slots.d.ts.map +1 -0
- package/dist/features/magic-context/overflow-detection.d.ts +7 -0
- package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
- package/dist/features/magic-context/storage-native-replay.d.ts +2 -0
- package/dist/features/magic-context/storage-native-replay.d.ts.map +1 -1
- package/dist/hooks/magic-context/apply-operations.d.ts +1 -1
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/emergency-drop.d.ts +8 -1
- package/dist/hooks/magic-context/emergency-drop.d.ts.map +1 -1
- package/dist/hooks/magic-context/execute-flush.d.ts +1 -1
- package/dist/hooks/magic-context/execute-flush.d.ts.map +1 -1
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts +4 -0
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts.map +1 -1
- package/dist/hooks/magic-context/heuristic-cleanup.d.ts +1 -0
- package/dist/hooks/magic-context/heuristic-cleanup.d.ts.map +1 -1
- package/dist/hooks/magic-context/image-token-estimate.d.ts +1 -0
- package/dist/hooks/magic-context/image-token-estimate.d.ts.map +1 -1
- package/dist/hooks/magic-context/provider-refusal-count.d.ts +84 -0
- package/dist/hooks/magic-context/provider-refusal-count.d.ts.map +1 -0
- package/dist/hooks/magic-context/signed-thinking-hold.d.ts +2 -0
- package/dist/hooks/magic-context/signed-thinking-hold.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +1 -0
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-p52gf8a6.js → index-0eyxarpb.js} +7 -7
- package/dist/{index-a1295271.js → index-0tqhr9zs.js} +5 -5
- package/dist/{index-xw608ytx.js → index-3cgh0ght.js} +1 -1
- package/dist/{index-hmrkgd4v.js → index-634cww4x.js} +7 -7
- package/dist/{index-h1xvt8fw.js → index-63kp05sy.js} +1 -1
- package/dist/{index-k86ec4j2.js → index-6hjbeeth.js} +4 -4
- package/dist/{index-04zhtsb1.js → index-e6s2jpr8.js} +1 -1
- package/dist/{index-db1art1p.js → index-esym6cw4.js} +1 -1
- package/dist/{index-tyjx0dwz.js → index-jjy4shhy.js} +1 -1
- package/dist/{index-8hhmv0ff.js → index-kjhgxkdx.js} +1 -1
- package/dist/{index-z1mj8fv5.js → index-mhdavdd4.js} +22 -17
- package/dist/{index-5wbqmvg8.js → index-n3tebmah.js} +25 -18
- package/dist/{index-0wj3jr8n.js → index-qjcye18f.js} +3 -3
- package/dist/{index-9eqt7755.js → index-rakm1eay.js} +2 -2
- package/dist/{index-w6kcwhhj.js → index-rjxg7a7m.js} +212 -4
- package/dist/{index-vxsxz3sp.js → index-txthzqrm.js} +286 -36
- package/dist/{index-em72jhc0.js → index-z1hc2g06.js} +1 -1
- package/dist/{index-kjdys7e2.js → index-zg5r2syy.js} +1 -1
- package/dist/{index-xbna9akt.js → index-zyb7tndy.js} +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +138 -26
- package/dist/{message-index-bounded-6y7p974x.js → message-index-bounded-289186ah.js} +3 -3
- package/dist/migration-worker.js +1 -1
- package/dist/plugin/messages-transform.d.ts +1 -0
- package/dist/plugin/messages-transform.d.ts.map +1 -1
- package/dist/plugin/provider-refusal-v1.d.ts +15 -0
- package/dist/plugin/provider-refusal-v1.d.ts.map +1 -0
- package/dist/{project-embedding-registry-5rp9w92w.js → project-embedding-registry-xy8dcdys.js} +1 -1
- package/dist/raw-ordinal-warmup-worker.js +4 -4
- package/dist/{read-session-chunk-9ejnbe07.js → read-session-chunk-frnwxnjg.js} +2 -2
- package/dist/{recomp-orchestrator-kmkf8dm4.js → recomp-orchestrator-e7n124g0.js} +10 -10
- package/dist/{render-9712q3gp.js → render-argap54x.js} +6 -6
- package/dist/{search-archive-5jr011gc.js → search-archive-ads5mh9s.js} +5 -5
- package/dist/{search-kd84wg76.js → search-fxtb4844.js} +9 -9
- package/dist/shared/transcript.d.ts +1 -1
- package/dist/shared/transcript.d.ts.map +1 -1
- package/dist/{storage-tags-vd3sgd4s.js → storage-tags-2d2ba8e9.js} +1 -1
- package/dist/{transform-postprocess-phase-n4q1yd72.js → transform-postprocess-phase-2y0st4gk.js} +11 -11
- package/dist/v2/auto-search-worker.js +3 -3
- package/dist/v2/chunk-embedding-write-worker.js +1 -1
- package/dist/v2/{context-fqeg60th.js → context-v56v40cx.js} +600 -87
- package/dist/v2/{embedding-backfill-dm33f3ce.js → embedding-backfill-nhgp8znm.js} +2 -2
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/http-refusal-count.d.ts +41 -0
- package/dist/v2/hooks/http-refusal-count.d.ts.map +1 -0
- package/dist/v2/hooks/overflow-recovery.d.ts +3 -0
- package/dist/v2/hooks/overflow-recovery.d.ts.map +1 -1
- package/dist/v2/hooks/types.d.ts +5 -0
- package/dist/v2/hooks/types.d.ts.map +1 -1
- package/dist/v2/{message-index-bounded-wj5rs9az.js → message-index-bounded-p69v4wpy.js} +3 -3
- package/dist/v2/migration-worker.js +1 -1
- package/dist/v2/{project-embedding-registry-z9qxkdxm.js → project-embedding-registry-qz9x79kn.js} +1 -1
- package/dist/v2/raw-ordinal-warmup-worker.js +4 -4
- package/dist/v2/{read-session-chunk-89ep8br4.js → read-session-chunk-qzw3vedr.js} +2 -2
- package/dist/v2/{recomp-orchestrator-79362xbm.js → recomp-orchestrator-5gkzamy2.js} +9 -9
- package/dist/v2/{render-bzzypsgy.js → render-atxj9eaf.js} +6 -6
- package/dist/v2/{search-4f6kmq31.js → search-51qr14ed.js} +8 -8
- package/dist/v2/{search-archive-4yr4hw2m.js → search-archive-vgwnvdx2.js} +5 -5
- package/dist/v2/{server-1bks09js.js → server-08jh9wew.js} +3 -3
- package/dist/v2/{server-b38pxt0e.js → server-2ek9exbe.js} +1 -1
- package/dist/v2/{server-8xgs110k.js → server-606mnrv4.js} +212 -4
- package/dist/v2/{server-md1cabvq.js → server-7wpw3wc6.js} +22 -17
- package/dist/v2/{server-zedjjdc5.js → server-8vby30m5.js} +1 -1
- package/dist/v2/{server-7861dnm3.js → server-awth2wsg.js} +1 -1
- package/dist/v2/{server-62t1852h.js → server-b25nvm9c.js} +1 -1
- package/dist/v2/{server-4ccgfzr2.js → server-bhr92yb4.js} +1 -1
- package/dist/v2/{server-6mq43ear.js → server-c1vcbszm.js} +1 -1
- package/dist/v2/{server-70dhx58s.js → server-d2a639dg.js} +6 -6
- package/dist/v2/{server-e8ybwfv8.js → server-p2wxmjc3.js} +2 -2
- package/dist/v2/{server-tk4hpcxq.js → server-rwdp3hw6.js} +7 -7
- package/dist/v2/{server-h95cdc30.js → server-s3m2y97h.js} +1 -1
- package/dist/v2/{server-d0h1gjz2.js → server-wdmcqhv6.js} +3 -3
- package/dist/v2/server.js +2 -2
- package/dist/v2/{storage-tags-8kktww54.js → storage-tags-4t9fb4ch.js} +1 -1
- package/dist/v2/{v2-archive-reader-veyqp15a.js → v2-archive-reader-1wc5wb1a.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-97s5wznb.js → wrapup-orchestrator-ksdn2emb.js} +9 -9
- package/dist/{v2-archive-reader-3s332fn7.js → v2-archive-reader-4pk46nc1.js} +1 -1
- package/dist/{wrapup-orchestrator-bm0x49e5.js → wrapup-orchestrator-sc2fsfct.js} +11 -11
- package/package.json +1 -1
- package/src/shared/tag-transcript.ts +5 -4
- package/src/shared/transcript.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
recordToolParameters,
|
|
5
5
|
createDroppedInputToolExecuteBeforeHook,
|
|
6
6
|
readRawSessionMessages2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-kjhgxkdx.js";
|
|
8
8
|
import {
|
|
9
9
|
setHarness2
|
|
10
10
|
} from "./index-pavzsdc6.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
checkCompactionMarkerConsistency,
|
|
58
58
|
clearInjectionCache,
|
|
59
59
|
clearNoteNudgeTriggerOnly
|
|
60
|
-
} from "./index-
|
|
60
|
+
} from "./index-0eyxarpb.js";
|
|
61
61
|
import"./index-sd3egckz.js";
|
|
62
62
|
import"./index-abhmtj00.js";
|
|
63
63
|
import {
|
|
@@ -123,6 +123,7 @@ import {
|
|
|
123
123
|
PROVIDER_OVERFLOW_NOTICE,
|
|
124
124
|
noteServedRecoveryForOverflowHint,
|
|
125
125
|
holdOverflowResendHint,
|
|
126
|
+
ProviderRefusalCounts,
|
|
126
127
|
StorageBusyRefusalError,
|
|
127
128
|
rustWrapupHistorianFields,
|
|
128
129
|
clearMessageTokensCache,
|
|
@@ -146,7 +147,7 @@ import {
|
|
|
146
147
|
parameterDescriptionsFor,
|
|
147
148
|
MagicContextRpcServer,
|
|
148
149
|
applyHiddenSubagentTemperature
|
|
149
|
-
} from "./index-
|
|
150
|
+
} from "./index-txthzqrm.js";
|
|
150
151
|
import {
|
|
151
152
|
resolveOpenCodeDbPath,
|
|
152
153
|
openCodeDbPathExists,
|
|
@@ -178,7 +179,9 @@ import {
|
|
|
178
179
|
BoundedSessionMap,
|
|
179
180
|
deleteTemporalDecision,
|
|
180
181
|
recordToolDefinition,
|
|
181
|
-
getCurrentToolSetHash
|
|
182
|
+
getCurrentToolSetHash,
|
|
183
|
+
getToolDefinitionMeasurementSignature,
|
|
184
|
+
getMeasuredToolDefinitionTokens
|
|
182
185
|
} from "./index-xtv4d4hv.js";
|
|
183
186
|
import {
|
|
184
187
|
observeSessionActivity,
|
|
@@ -198,7 +201,7 @@ import {
|
|
|
198
201
|
dropServedRecord,
|
|
199
202
|
registerLkgPersistence,
|
|
200
203
|
dropSlot
|
|
201
|
-
} from "./index-
|
|
204
|
+
} from "./index-z1hc2g06.js";
|
|
202
205
|
import {
|
|
203
206
|
recordSessionProjectIdentity
|
|
204
207
|
} from "./index-fd3hkyk1.js";
|
|
@@ -212,7 +215,7 @@ import {
|
|
|
212
215
|
openDatabaseAsync,
|
|
213
216
|
isDatabasePersisted,
|
|
214
217
|
getDatabasePersistenceError
|
|
215
|
-
} from "./index-
|
|
218
|
+
} from "./index-3cgh0ght.js";
|
|
216
219
|
import {
|
|
217
220
|
registerExitAbort,
|
|
218
221
|
unregisterExitAbort
|
|
@@ -226,13 +229,14 @@ import"./index-geph2sa6.js";
|
|
|
226
229
|
import"./index-hyvxmz3e.js";
|
|
227
230
|
import"./index-fr0wbhdn.js";
|
|
228
231
|
import {
|
|
229
|
-
preloadTokenizer
|
|
232
|
+
preloadTokenizer,
|
|
233
|
+
estimateTokens
|
|
230
234
|
} from "./index-2m3t73wk.js";
|
|
231
235
|
import"./index-gcf2x04k.js";
|
|
232
236
|
import {
|
|
233
237
|
getDefaultSubcConnectionFile,
|
|
234
238
|
SubcModuleTransport
|
|
235
|
-
} from "./index-
|
|
239
|
+
} from "./index-634cww4x.js";
|
|
236
240
|
import"./index-qt1qqasc.js";
|
|
237
241
|
import"./index-y5f5yg5a.js";
|
|
238
242
|
import {
|
|
@@ -253,7 +257,10 @@ import {
|
|
|
253
257
|
sendConflictWarning2,
|
|
254
258
|
cleanupConflictWarnings2
|
|
255
259
|
} from "./index-74w347am.js";
|
|
256
|
-
import
|
|
260
|
+
import {
|
|
261
|
+
resolveDecisionCalibration,
|
|
262
|
+
providerMass
|
|
263
|
+
} from "./index-1zx87sdm.js";
|
|
257
264
|
import {
|
|
258
265
|
stripPersistedAssistantText,
|
|
259
266
|
getProtectionWindowForSession,
|
|
@@ -280,11 +287,13 @@ import {
|
|
|
280
287
|
detectLatestTurnThinkingMismatch,
|
|
281
288
|
isPrefixBoundThinkingModel,
|
|
282
289
|
detectOverflow,
|
|
290
|
+
isProviderSizeRefusal,
|
|
283
291
|
isProviderRateLimit,
|
|
284
292
|
isAnthropicFamilyRoute,
|
|
293
|
+
estimateRefusedMessageTokens,
|
|
285
294
|
deleteTagsByMessageId2,
|
|
286
295
|
getMaxTagNumberBySession2
|
|
287
|
-
} from "./index-
|
|
296
|
+
} from "./index-rjxg7a7m.js";
|
|
288
297
|
import {
|
|
289
298
|
resolveHistorianModel2,
|
|
290
299
|
resolveOpenCodeAgentOverrides2,
|
|
@@ -303,7 +312,7 @@ import {
|
|
|
303
312
|
import"./index-1vv1ka4a.js";
|
|
304
313
|
import {
|
|
305
314
|
deleteIndexedMessage
|
|
306
|
-
} from "./index-
|
|
315
|
+
} from "./index-jjy4shhy.js";
|
|
307
316
|
import"./index-ajmy0v5j.js";
|
|
308
317
|
import"./index-ab86c21b.js";
|
|
309
318
|
import {
|
|
@@ -312,10 +321,10 @@ import {
|
|
|
312
321
|
import"./index-nyjztqyj.js";
|
|
313
322
|
import {
|
|
314
323
|
getEmbeddingCoverageStatus2
|
|
315
|
-
} from "./index-
|
|
324
|
+
} from "./index-mhdavdd4.js";
|
|
316
325
|
import"./index-qjwpqvnf.js";
|
|
317
|
-
import"./index-
|
|
318
|
-
import"./index-
|
|
326
|
+
import"./index-esym6cw4.js";
|
|
327
|
+
import"./index-e6s2jpr8.js";
|
|
319
328
|
import"./index-9emdjcb5.js";
|
|
320
329
|
import"./index-qxzk5s30.js";
|
|
321
330
|
import {
|
|
@@ -338,13 +347,13 @@ import {
|
|
|
338
347
|
armBindingRecoverySafely,
|
|
339
348
|
collectForeignTextParts,
|
|
340
349
|
resetDegradedCacheCount2
|
|
341
|
-
} from "./index-
|
|
350
|
+
} from "./index-n3tebmah.js";
|
|
342
351
|
import {
|
|
343
352
|
scheduleClearAndReindex
|
|
344
|
-
} from "./index-
|
|
353
|
+
} from "./index-63kp05sy.js";
|
|
345
354
|
import {
|
|
346
355
|
runManagedRecomp2
|
|
347
|
-
} from "./index-
|
|
356
|
+
} from "./index-6hjbeeth.js";
|
|
348
357
|
import {
|
|
349
358
|
isValidSemver,
|
|
350
359
|
compareSemverCore
|
|
@@ -352,11 +361,11 @@ import {
|
|
|
352
361
|
import"./index-fmsr7v69.js";
|
|
353
362
|
import {
|
|
354
363
|
runManagedWrapup2
|
|
355
|
-
} from "./index-
|
|
356
|
-
import"./index-
|
|
357
|
-
import"./index-
|
|
358
|
-
import"./index-
|
|
359
|
-
import"./index-
|
|
364
|
+
} from "./index-0tqhr9zs.js";
|
|
365
|
+
import"./index-rakm1eay.js";
|
|
366
|
+
import"./index-zg5r2syy.js";
|
|
367
|
+
import"./index-zyb7tndy.js";
|
|
368
|
+
import"./index-qjcye18f.js";
|
|
360
369
|
import {
|
|
361
370
|
__toESM,
|
|
362
371
|
__commonJS
|
|
@@ -8212,7 +8221,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8212
8221
|
// package.json
|
|
8213
8222
|
var package_default = {
|
|
8214
8223
|
name: "@cortexkit/opencode-magic-context",
|
|
8215
|
-
version: "0.49.
|
|
8224
|
+
version: "0.49.100",
|
|
8216
8225
|
type: "module",
|
|
8217
8226
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8218
8227
|
main: "dist/index.js",
|
|
@@ -11860,6 +11869,97 @@ function disableNativeAutoCompaction(config) {
|
|
|
11860
11869
|
return true;
|
|
11861
11870
|
}
|
|
11862
11871
|
|
|
11872
|
+
// src/plugin/provider-refusal-v1.ts
|
|
11873
|
+
class OpenCode1RefusalCounts extends ProviderRefusalCounts {
|
|
11874
|
+
failedMessages = new BoundedSessionMap(1000);
|
|
11875
|
+
chatRoutes = new BoundedSessionMap(1000);
|
|
11876
|
+
conversations = new WeakMap;
|
|
11877
|
+
captureMessages(pass, messages) {
|
|
11878
|
+
this.conversations.set(pass, messages);
|
|
11879
|
+
}
|
|
11880
|
+
recordChatRoute(sessionID, providerID, modelID, agent) {
|
|
11881
|
+
const model = `${providerID}/${modelID}`;
|
|
11882
|
+
const previous = this.chatRoutes.get(sessionID);
|
|
11883
|
+
if (previous && previous.model !== model)
|
|
11884
|
+
this.forget(sessionID);
|
|
11885
|
+
this.chatRoutes.set(sessionID, { model, agent });
|
|
11886
|
+
}
|
|
11887
|
+
removeSession(sessionID) {
|
|
11888
|
+
this.forget(sessionID);
|
|
11889
|
+
this.chatRoutes.delete(sessionID);
|
|
11890
|
+
}
|
|
11891
|
+
settle(sessionID) {
|
|
11892
|
+
const pass = this.latest(sessionID);
|
|
11893
|
+
if (pass)
|
|
11894
|
+
this.conversations.delete(pass);
|
|
11895
|
+
super.settle(sessionID);
|
|
11896
|
+
}
|
|
11897
|
+
captureSessionEnvelope(sessionID, providerID, modelID, system) {
|
|
11898
|
+
const route = this.chatRoutes.get(sessionID);
|
|
11899
|
+
if (route?.model === `${providerID}/${modelID}`)
|
|
11900
|
+
this.captureEnvelope(sessionID, providerID, modelID, route.agent, system);
|
|
11901
|
+
}
|
|
11902
|
+
captureEnvelope(sessionID, providerID, modelID, agent, system) {
|
|
11903
|
+
const pass = this.latest(sessionID);
|
|
11904
|
+
const messages = pass && this.conversations.get(pass);
|
|
11905
|
+
if (!pass || !messages)
|
|
11906
|
+
return;
|
|
11907
|
+
this.conversations.delete(pass);
|
|
11908
|
+
if (!system.some((text) => text.length > 0))
|
|
11909
|
+
return;
|
|
11910
|
+
if (!getToolDefinitionMeasurementSignature(providerID, modelID, agent, sessionID))
|
|
11911
|
+
return;
|
|
11912
|
+
const tools = getMeasuredToolDefinitionTokens(providerID, modelID, agent, sessionID);
|
|
11913
|
+
if (tools === undefined)
|
|
11914
|
+
return;
|
|
11915
|
+
const systemParts = system.slice();
|
|
11916
|
+
const calibration = resolveDecisionCalibration(providerID, modelID);
|
|
11917
|
+
pass.freeze(`${providerID}/${modelID}`, () => {
|
|
11918
|
+
const raw = { system: estimateTokens(systemParts.join(`
|
|
11919
|
+
`)), prose: 0, tools };
|
|
11920
|
+
for (const message of messages) {
|
|
11921
|
+
const count = estimateRefusedMessageTokens(message);
|
|
11922
|
+
raw.prose += count.conversation;
|
|
11923
|
+
raw.tools += count.toolCall;
|
|
11924
|
+
}
|
|
11925
|
+
return providerMass(raw, calibration);
|
|
11926
|
+
});
|
|
11927
|
+
}
|
|
11928
|
+
observeEvent(type, properties) {
|
|
11929
|
+
if (type === "session.compacted" || type === "message.removed") {
|
|
11930
|
+
const session = getSessionProperties(properties)?.sessionID;
|
|
11931
|
+
if (session)
|
|
11932
|
+
this.forget(session);
|
|
11933
|
+
return;
|
|
11934
|
+
}
|
|
11935
|
+
if (type === "session.idle") {
|
|
11936
|
+
const session = getSessionProperties(properties)?.sessionID;
|
|
11937
|
+
if (session)
|
|
11938
|
+
this.endRun(session);
|
|
11939
|
+
return;
|
|
11940
|
+
}
|
|
11941
|
+
if (type !== "message.updated")
|
|
11942
|
+
return;
|
|
11943
|
+
const info = getMessageUpdatedAssistantInfo(properties);
|
|
11944
|
+
if (!info?.messageID)
|
|
11945
|
+
return;
|
|
11946
|
+
const pass = this.latest(info.sessionID, info.completedAt);
|
|
11947
|
+
if (!pass)
|
|
11948
|
+
return;
|
|
11949
|
+
if (!info.error && info.finish && info.finish !== "error") {
|
|
11950
|
+
this.forget(info.sessionID);
|
|
11951
|
+
return;
|
|
11952
|
+
}
|
|
11953
|
+
if (!info.providerID || !info.modelID || !isProviderSizeRefusal(info.error, { trustOverflowLabel: false }))
|
|
11954
|
+
return;
|
|
11955
|
+
const key = `${info.sessionID}\x00${info.messageID}`;
|
|
11956
|
+
if (this.failedMessages.get(key))
|
|
11957
|
+
return;
|
|
11958
|
+
this.failedMessages.set(key, true);
|
|
11959
|
+
this.refusal(info.sessionID, `${info.providerID}/${info.modelID}`, pass);
|
|
11960
|
+
}
|
|
11961
|
+
}
|
|
11962
|
+
|
|
11863
11963
|
// src/plugin/refusal-notice.ts
|
|
11864
11964
|
async function sendOpenCodeRefusal(client, sessionId, message, refusal) {
|
|
11865
11965
|
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-tfhs4dbc.js"));
|
|
@@ -11870,7 +11970,7 @@ async function sendOpenCodeRefusal(client, sessionId, message, refusal) {
|
|
|
11870
11970
|
sessionLog2(sessionId, "refusal notice skipped: no terminal viewing the session", refusal.name);
|
|
11871
11971
|
}
|
|
11872
11972
|
if (storageBusy) {
|
|
11873
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
11973
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-2y0st4gk.js"));
|
|
11874
11974
|
await abortSessionFailClosed(client, sessionId);
|
|
11875
11975
|
}
|
|
11876
11976
|
}
|
|
@@ -12140,7 +12240,7 @@ async function setup(context) {
|
|
|
12140
12240
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12141
12241
|
log2(`[magic-context] Magic Context storage is at ${storageDir}, outside the folder Engram backs up (~/.local/share/cortexkit/magic-context). It is not included in CortexKit backups.`);
|
|
12142
12242
|
}
|
|
12143
|
-
const { registerContext } = await import("./context-
|
|
12243
|
+
const { registerContext } = await import("./context-k2tdh146.js");
|
|
12144
12244
|
setHarness2("opencode2");
|
|
12145
12245
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12146
12246
|
const duties = await registerContext(context);
|
|
@@ -12561,6 +12661,7 @@ var server = async (ctx) => {
|
|
|
12561
12661
|
budgetMs: BOOT_SERVER_DEADLINE_MS,
|
|
12562
12662
|
deadlinePhase
|
|
12563
12663
|
}));
|
|
12664
|
+
const refusalCounts = isCompactionEnabled(pluginConfig) ? new OpenCode1RefusalCounts : undefined;
|
|
12564
12665
|
return {
|
|
12565
12666
|
tool: tools,
|
|
12566
12667
|
event: createEventHandler({
|
|
@@ -12568,9 +12669,12 @@ var server = async (ctx) => {
|
|
|
12568
12669
|
event: async (input) => {
|
|
12569
12670
|
if (input.event.type === "session.deleted") {
|
|
12570
12671
|
const properties = input.event.properties;
|
|
12571
|
-
if (properties.info?.id)
|
|
12672
|
+
if (properties.info?.id) {
|
|
12572
12673
|
dreamerCap.delete(properties.info.id);
|
|
12674
|
+
refusalCounts?.removeSession(properties.info.id);
|
|
12675
|
+
}
|
|
12573
12676
|
}
|
|
12677
|
+
refusalCounts?.observeEvent(input.event.type, input.event.properties);
|
|
12574
12678
|
await magicContextRuntime.magicContext?.event?.(input);
|
|
12575
12679
|
}
|
|
12576
12680
|
},
|
|
@@ -12610,11 +12714,17 @@ var server = async (ctx) => {
|
|
|
12610
12714
|
compactionOff: !isCompactionEnabled(pluginConfig),
|
|
12611
12715
|
internalChildSessions: liveSessionState.internalChildSessions,
|
|
12612
12716
|
tryReopenStorage,
|
|
12717
|
+
providerRefusalCounts: refusalCounts,
|
|
12613
12718
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12614
12719
|
onRefusal: (sessionId, message, refusal) => sendOpenCodeRefusal(ctx.client, sessionId, message, refusal)
|
|
12615
12720
|
}),
|
|
12616
12721
|
"experimental.chat.system.transform": async (input, output) => {
|
|
12617
12722
|
await magicContextRuntime.magicContext?.["experimental.chat.system.transform"]?.(input, output);
|
|
12723
|
+
if (input.sessionID && refusalCounts) {
|
|
12724
|
+
try {
|
|
12725
|
+
refusalCounts.captureSessionEnvelope(input.sessionID, input.model.providerID, input.model.id, output.system);
|
|
12726
|
+
} catch {}
|
|
12727
|
+
}
|
|
12618
12728
|
},
|
|
12619
12729
|
"command.execute.before": async (input, output) => {
|
|
12620
12730
|
await magicContextRuntime.magicContext?.["command.execute.before"]?.(input, output);
|
|
@@ -12631,6 +12741,8 @@ var server = async (ctx) => {
|
|
|
12631
12741
|
agentName: agent || "default",
|
|
12632
12742
|
sessionID: input.sessionID
|
|
12633
12743
|
} : null;
|
|
12744
|
+
if (lastChatContext)
|
|
12745
|
+
refusalCounts?.recordChatRoute(input.sessionID, lastChatContext.providerID, lastChatContext.modelID, lastChatContext.agentName);
|
|
12634
12746
|
shapeV1HiddenMessage(input.sessionID, output.message);
|
|
12635
12747
|
await magicContextRuntime.magicContext?.["chat.message"]?.(input, output);
|
|
12636
12748
|
},
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
yieldIndexChunk2
|
|
5
5
|
} from "./index-gzy5w8ya.js";
|
|
6
6
|
import"./index-1zx87sdm.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-rjxg7a7m.js";
|
|
8
8
|
import"./index-2m3t73wk.js";
|
|
9
9
|
import"./index-pavzsdc6.js";
|
|
10
10
|
import"./index-34xvre52.js";
|
|
@@ -16,7 +16,7 @@ import"./index-1d042x6w.js";
|
|
|
16
16
|
import"./index-jsbgw33b.js";
|
|
17
17
|
import"./index-58e3y90n.js";
|
|
18
18
|
import"./index-vdzd98ry.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-kjhgxkdx.js";
|
|
20
20
|
import {
|
|
21
21
|
MESSAGE_INDEX_MAX_FTS_BYTES,
|
|
22
22
|
messageIndexSkipKey,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
markMessageIndexDirty,
|
|
25
25
|
getIndexableContent,
|
|
26
26
|
indexSingleMessage
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-jjy4shhy.js";
|
|
28
28
|
import"./index-geph2sa6.js";
|
|
29
29
|
import"./index-9awtk18w.js";
|
|
30
30
|
|
package/dist/migration-worker.js
CHANGED
|
@@ -105,6 +105,7 @@ export declare function createMessagesTransformHandler(args: {
|
|
|
105
105
|
* request after this wrapper returns and records it there.
|
|
106
106
|
*/
|
|
107
107
|
recordServed?: boolean;
|
|
108
|
+
providerRefusalCounts?: import("./provider-refusal-v1").OpenCode1RefusalCounts;
|
|
108
109
|
}): (input: Record<string, never>, output: MessagesTransformOutput) => Promise<MessageWithParts[]>;
|
|
109
110
|
export {};
|
|
110
111
|
//# sourceMappingURL=messages-transform.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-transform.d.ts","sourceRoot":"","sources":["../../src/plugin/messages-transform.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,oBAAoB,EAK5B,MAAM,6CAA6C,CAAC;AAyBrD,OAAO,EAAuC,SAAS,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"messages-transform.d.ts","sourceRoot":"","sources":["../../src/plugin/messages-transform.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,oBAAoB,EAK5B,MAAM,6CAA6C,CAAC;AAyBrD,OAAO,EAAuC,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAQjG,OAAO,EAEH,KAAK,wBAAwB,EAEhC,MAAM,iDAAiD,CAAC;AAWzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAW/E,eAAO,MAAM,gCAAgC,qIACoF,CAAC;AAElI,qBAAa,2BAA4B,SAAQ,KAAK;IAClD,QAAQ,CAAC,IAAI,8BAA8B;IAC3C,QAAQ,CAAC,WAAW,QAAQ;;CAM/B;AAED,qBAAa,0BAA2B,SAAQ,KAAK;IACjD,QAAQ,CAAC,IAAI,6BAA6B;IAC1C,QAAQ,CAAC,WAAW,QAAQ;;CAM/B;AAgBD,KAAK,gBAAgB,GAAG;IACpB,IAAI,EAAE,OAAO,kBAAkB,EAAE,OAAO,CAAC;IACzC,KAAK,EAAE,OAAO,kBAAkB,EAAE,IAAI,EAAE,CAAC;CAC5C,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAAE,QAAQ,EA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D,yFAAyF;IACzF,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,qBAAqB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpD;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,wBAAwB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1E;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,uBAAuB,EAAE,sBAAsB,CAAC;CAClF,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,uBAAuB,KAAK,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAgYjG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProviderRefusalCounts, type ProviderRefusalPass } from "../hooks/magic-context/provider-refusal-count";
|
|
2
|
+
import type { MessageLike } from "../hooks/magic-context/tag-messages";
|
|
3
|
+
export declare class OpenCode1RefusalCounts extends ProviderRefusalCounts {
|
|
4
|
+
private readonly failedMessages;
|
|
5
|
+
private readonly chatRoutes;
|
|
6
|
+
private readonly conversations;
|
|
7
|
+
captureMessages(pass: ProviderRefusalPass, messages: readonly MessageLike[]): void;
|
|
8
|
+
recordChatRoute(sessionID: string, providerID: string, modelID: string, agent: string): void;
|
|
9
|
+
removeSession(sessionID: string): void;
|
|
10
|
+
protected settle(sessionID: string): void;
|
|
11
|
+
captureSessionEnvelope(sessionID: string, providerID: string, modelID: string, system: readonly string[]): void;
|
|
12
|
+
captureEnvelope(sessionID: string, providerID: string, modelID: string, agent: string | undefined, system: readonly string[]): void;
|
|
13
|
+
observeEvent(type: string, properties: unknown): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=provider-refusal-v1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-refusal-v1.d.ts","sourceRoot":"","sources":["../../src/plugin/provider-refusal-v1.ts"],"names":[],"mappings":"AAaA,OAAO,EAEH,qBAAqB,EACrB,KAAK,mBAAmB,EAC3B,MAAM,+CAA+C,CAAC;AAEvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAGvE,qBAAa,sBAAuB,SAAQ,qBAAqB;IAC7D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAqC;IACpE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAGlB;IACT,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA8D;IAE5F,eAAe,CAAC,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,IAAI;IAIlF,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAY5F,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;cAKnB,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAOlD,sBAAsB,CAClB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,SAAS,MAAM,EAAE,GAC1B,IAAI;IAMP,eAAe,CACX,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,MAAM,EAAE,SAAS,MAAM,EAAE,GAC1B,IAAI;IAwBP,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI;CAkCxD"}
|
package/dist/{project-embedding-registry-5rp9w92w.js → project-embedding-registry-xy8dcdys.js}
RENAMED
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
sweepAllRegisteredProjects2,
|
|
40
40
|
_setTestProviderFactoryForProject2,
|
|
41
41
|
_resetProjectEmbeddingRegistryForTests2
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-mhdavdd4.js";
|
|
43
43
|
import"./index-qjwpqvnf.js";
|
|
44
44
|
import"./index-2amn2s73.js";
|
|
45
45
|
import"./index-qt1qqasc.js";
|
|
@@ -19,7 +19,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
19
19
|
await main();
|
|
20
20
|
async function main() {
|
|
21
21
|
if (input.v2ArchiveReader) {
|
|
22
|
-
const { serveV2ArchiveReads } = await import("./v2-archive-reader-
|
|
22
|
+
const { serveV2ArchiveReads } = await import("./v2-archive-reader-4pk46nc1.js");
|
|
23
23
|
await serveV2ArchiveReads(port, openConnections);
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
@@ -51,7 +51,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
51
51
|
await runMessageFtsRowidMapBackfill(db);
|
|
52
52
|
reply = { kind: "fts-rowid-backfill" };
|
|
53
53
|
} else if (input.searchArchive) {
|
|
54
|
-
const { renderSearchArchive } = await import("./search-archive-
|
|
54
|
+
const { renderSearchArchive } = await import("./search-archive-ads5mh9s.js");
|
|
55
55
|
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-pgc9gxtn.js");
|
|
56
56
|
const archive = input.searchArchive;
|
|
57
57
|
let raw;
|
|
@@ -81,7 +81,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
81
81
|
const { setHarness } = await import("./harness-e4avh192.js");
|
|
82
82
|
setHarness(input.harness ?? "opencode");
|
|
83
83
|
const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
|
|
84
|
-
import("./message-index-bounded-
|
|
84
|
+
import("./message-index-bounded-289186ah.js"),
|
|
85
85
|
import("./sqlite-context-pragmas-mv9jqwjh.js")
|
|
86
86
|
]);
|
|
87
87
|
configureContextDatabasePragmas(db);
|
|
@@ -95,7 +95,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
95
95
|
measurements: result.measurements
|
|
96
96
|
};
|
|
97
97
|
} else if (input.tagRatio !== undefined) {
|
|
98
|
-
const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-
|
|
98
|
+
const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-2d2ba8e9.js");
|
|
99
99
|
const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
|
|
100
100
|
if (delta)
|
|
101
101
|
reply = { kind: "tag-delta", delta };
|
|
@@ -38,8 +38,8 @@ import {
|
|
|
38
38
|
readSessionChunk2,
|
|
39
39
|
getRawSessionMessageIdsThrough2,
|
|
40
40
|
readRawSessionSeedTail2
|
|
41
|
-
} from "./index-
|
|
42
|
-
import"./index-
|
|
41
|
+
} from "./index-kjhgxkdx.js";
|
|
42
|
+
import"./index-rjxg7a7m.js";
|
|
43
43
|
import"./index-1zx87sdm.js";
|
|
44
44
|
import"./index-vdzd98ry.js";
|
|
45
45
|
import"./index-r3f85n7y.js";
|
|
@@ -7,26 +7,26 @@ import {
|
|
|
7
7
|
setRecompTerminal2,
|
|
8
8
|
buildRecompDeps2,
|
|
9
9
|
runManagedRecomp2
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-6hjbeeth.js";
|
|
11
|
+
import"./index-0eyxarpb.js";
|
|
12
12
|
import"./index-qxzk5s30.js";
|
|
13
13
|
import"./index-sd3egckz.js";
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
14
|
+
import"./index-esym6cw4.js";
|
|
15
|
+
import"./index-e6s2jpr8.js";
|
|
16
16
|
import"./index-9emdjcb5.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-mhdavdd4.js";
|
|
18
18
|
import"./index-qjwpqvnf.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-z1hc2g06.js";
|
|
20
20
|
import"./index-ab86c21b.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-jjy4shhy.js";
|
|
22
22
|
import"./index-2amn2s73.js";
|
|
23
23
|
import"./index-ajmy0v5j.js";
|
|
24
24
|
import"./index-h1qh9n8b.js";
|
|
25
25
|
import"./index-fqth7850.js";
|
|
26
26
|
import"./index-61a853ky.js";
|
|
27
27
|
import"./index-qt1qqasc.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
28
|
+
import"./index-kjhgxkdx.js";
|
|
29
|
+
import"./index-rjxg7a7m.js";
|
|
30
30
|
import"./index-1zx87sdm.js";
|
|
31
31
|
import"./index-vdzd98ry.js";
|
|
32
32
|
import"./index-y14pawe1.js";
|
|
@@ -36,7 +36,7 @@ import"./index-r3f85n7y.js";
|
|
|
36
36
|
import"./index-fd3hkyk1.js";
|
|
37
37
|
import"./index-1vv1ka4a.js";
|
|
38
38
|
import"./index-gcf2x04k.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-3cgh0ght.js";
|
|
40
40
|
import"./index-fb3zxn06.js";
|
|
41
41
|
import"./index-hyvxmz3e.js";
|
|
42
42
|
import"./index-fr0wbhdn.js";
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
renderMessageByOrdinal2,
|
|
3
3
|
renderVerboseRangeForTool2,
|
|
4
4
|
renderItemByTag2
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
5
|
+
} from "./index-rakm1eay.js";
|
|
6
|
+
import"./index-z1hc2g06.js";
|
|
7
7
|
import"./index-ab86c21b.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-jjy4shhy.js";
|
|
9
9
|
import"./index-2amn2s73.js";
|
|
10
10
|
import"./index-ajmy0v5j.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-kjhgxkdx.js";
|
|
12
|
+
import"./index-rjxg7a7m.js";
|
|
13
13
|
import"./index-1zx87sdm.js";
|
|
14
14
|
import"./index-vdzd98ry.js";
|
|
15
15
|
import"./index-r3f85n7y.js";
|
|
16
16
|
import"./index-1vv1ka4a.js";
|
|
17
17
|
import"./index-gcf2x04k.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-3cgh0ght.js";
|
|
19
19
|
import"./index-fb3zxn06.js";
|
|
20
20
|
import"./index-hyvxmz3e.js";
|
|
21
21
|
import"./index-fr0wbhdn.js";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
unresolvedLiveTailRefusal2,
|
|
3
3
|
renderSearchArchive2,
|
|
4
4
|
renderSearchArchiveOffThread2
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
5
|
+
} from "./index-qjcye18f.js";
|
|
6
|
+
import"./index-zyb7tndy.js";
|
|
7
|
+
import"./index-zg5r2syy.js";
|
|
8
|
+
import"./index-kjhgxkdx.js";
|
|
9
|
+
import"./index-rjxg7a7m.js";
|
|
10
10
|
import"./index-1zx87sdm.js";
|
|
11
11
|
import"./index-vdzd98ry.js";
|
|
12
12
|
import"./index-r3f85n7y.js";
|
|
@@ -5,20 +5,20 @@ import {
|
|
|
5
5
|
resolveMemoriesByIdsForSearch2,
|
|
6
6
|
unifiedSearch2,
|
|
7
7
|
formatSearchResults2
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
8
|
+
} from "./index-634cww4x.js";
|
|
9
|
+
import"./index-63kp05sy.js";
|
|
10
|
+
import"./index-zg5r2syy.js";
|
|
11
|
+
import"./index-esym6cw4.js";
|
|
12
|
+
import"./index-e6s2jpr8.js";
|
|
13
13
|
import"./index-9emdjcb5.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-mhdavdd4.js";
|
|
15
15
|
import"./index-qjwpqvnf.js";
|
|
16
16
|
import"./index-ab86c21b.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-jjy4shhy.js";
|
|
18
18
|
import"./index-2amn2s73.js";
|
|
19
19
|
import"./index-qt1qqasc.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
20
|
+
import"./index-kjhgxkdx.js";
|
|
21
|
+
import"./index-rjxg7a7m.js";
|
|
22
22
|
import"./index-1zx87sdm.js";
|
|
23
23
|
import"./index-vdzd98ry.js";
|
|
24
24
|
import"./index-nyjztqyj.js";
|
|
@@ -163,7 +163,7 @@ export interface TranscriptPart {
|
|
|
163
163
|
* means the marker. A host that answers true may note the call, so every
|
|
164
164
|
* copy of it the host sends carries the same arguments.
|
|
165
165
|
*/
|
|
166
|
-
keepsRealArgumentsWhenKept?(): boolean;
|
|
166
|
+
keepsRealArgumentsWhenKept?(force?: boolean): boolean;
|
|
167
167
|
/** Remove one half of a complete tool arc. Callers must remove both halves together. */
|
|
168
168
|
remove?(): boolean;
|
|
169
169
|
/** Refuse structural deletion when the adapter cannot match provider-native identity safely. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript.d.ts","sourceRoot":"","sources":["../../src/shared/transcript.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,2EAA2E;AAC3E,MAAM,MAAM,kBAAkB,GACxB,MAAM,GACN,UAAU,GACV,UAAU,GACV,aAAa,GACb,OAAO,GACP,MAAM,GACN,YAAY,GACZ,SAAS,CAAC;AAEhB;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,cAAc;IAC3B,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAElC,oFAAoF;IACpF,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAE3B,mEAAmE;IACnE,WAAW,CAAC,IAA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