@cortexkit/opencode-magic-context 0.49.30 → 0.49.31
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/{context-vnfr6d7t.js → context-9a0f8mzh.js} +142 -13
- package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts +3 -3
- package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/verify.d.ts +13 -17
- package/dist/features/magic-context/dreamer/verify.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 +11 -1
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts +2 -0
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +2 -0
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +11 -0
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-69gd2scx.js → index-0bjktrjt.js} +2 -2
- package/dist/{index-ekzzw66a.js → index-22e7khnr.js} +23 -18
- package/dist/{index-k0dpkyn7.js → index-kmayq4kq.js} +1 -0
- package/dist/{index-vzz570j8.js → index-qathsvz2.js} +3 -1
- package/dist/{index-adr4vfys.js → index-y6ynjghv.js} +1 -1
- package/dist/index.js +8 -8
- package/dist/{recomp-orchestrator-w3pjp33d.js → recomp-orchestrator-ynehxbya.js} +2 -2
- package/dist/shared/tag-transcript.d.ts +4 -1
- package/dist/shared/tag-transcript.d.ts.map +1 -1
- package/dist/shared/transcript.d.ts +3 -1
- package/dist/shared/transcript.d.ts.map +1 -1
- package/dist/{transform-postprocess-phase-6ccazq85.js → transform-postprocess-phase-50h70ft8.js} +2 -2
- package/dist/v2/{context-wx4sfhgr.js → context-cdqw9jex.js} +161 -25
- package/dist/v2/fold/owner.d.ts +4 -0
- package/dist/v2/fold/owner.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/types.d.ts +3 -0
- package/dist/v2/hooks/types.d.ts.map +1 -1
- package/dist/v2/{recomp-orchestrator-wb28kr9k.js → recomp-orchestrator-kdxr4tx8.js} +1 -1
- package/dist/v2/{server-k33t88h3.js → server-rdjgz95f.js} +1 -0
- package/dist/v2/server.js +2 -2
- package/dist/v2/{wrapup-orchestrator-2t0pdqzm.js → wrapup-orchestrator-prfvyqbb.js} +1 -1
- package/dist/{wrapup-orchestrator-kjmkms5g.js → wrapup-orchestrator-4zhkcsz0.js} +3 -3
- package/package.json +1 -1
- package/src/shared/tag-transcript.ts +34 -5
- package/src/shared/transcript.ts +1 -1
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
getActiveCompartmentRun,
|
|
16
16
|
markActiveCompartmentRunPublished,
|
|
17
17
|
registerActiveCompartmentRun
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-kmayq4kq.js";
|
|
19
19
|
import {
|
|
20
20
|
inRootAsyncContext2
|
|
21
21
|
} from "./index-gzy5w8ya.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
setRecompStarting2,
|
|
39
39
|
setRecompTerminal2
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-y6ynjghv.js";
|
|
41
41
|
|
|
42
42
|
// src/hooks/magic-context/wrapup-orchestrator.ts
|
|
43
43
|
import * as crypto from "node:crypto";
|
|
@@ -266,7 +266,7 @@ import {
|
|
|
266
266
|
snapRangeToCompartments,
|
|
267
267
|
getActiveCompartmentRun,
|
|
268
268
|
startCompartmentAgent
|
|
269
|
-
} from "./index-
|
|
269
|
+
} from "./index-kmayq4kq.js";
|
|
270
270
|
import {
|
|
271
271
|
hasTrustedAbsoluteWall,
|
|
272
272
|
applyProvenInputFloor,
|
|
@@ -694,7 +694,7 @@ import {
|
|
|
694
694
|
import {
|
|
695
695
|
setRecompStarting2,
|
|
696
696
|
setRecompTerminal2
|
|
697
|
-
} from "./index-
|
|
697
|
+
} from "./index-y6ynjghv.js";
|
|
698
698
|
import {
|
|
699
699
|
makeToolCompositeKey,
|
|
700
700
|
searchMessageHistoryOffThread,
|
|
@@ -757,7 +757,7 @@ import {
|
|
|
757
757
|
abortSessionFailClosed2,
|
|
758
758
|
evaluateEmergencyFailClosed2,
|
|
759
759
|
runPostTransformPhase2
|
|
760
|
-
} from "./index-
|
|
760
|
+
} from "./index-qathsvz2.js";
|
|
761
761
|
import {
|
|
762
762
|
ANNOUNCEMENT_VERSION2,
|
|
763
763
|
ANNOUNCEMENT_FEATURES2,
|
|
@@ -7013,7 +7013,6 @@ function parseMapMemoriesManifest(text) {
|
|
|
7013
7013
|
}
|
|
7014
7014
|
function validateMapMemoriesManifest(text, expectedIds) {
|
|
7015
7015
|
const parsed = parseMapMemoriesManifest(text);
|
|
7016
|
-
assertParsedManifestNonEmpty(parsed.length, expectedIds.size, text, "mappings", "memory");
|
|
7017
7016
|
assertNoDuplicateManifestIds(parsed.filter((entry) => expectedIds.has(entry.id)).map((entry) => entry.id), "mappings");
|
|
7018
7017
|
return parsed;
|
|
7019
7018
|
}
|
|
@@ -9083,8 +9082,7 @@ function parsePartialVerifyManifest(text, expectedIds) {
|
|
|
9083
9082
|
var VERIFY_BATCH_SIZE = 5;
|
|
9084
9083
|
var VERIFY_TOKENS_PER_MEMORY = 1e5;
|
|
9085
9084
|
var VERIFY_RUN_TOKEN_BUDGET = 2500000;
|
|
9086
|
-
var
|
|
9087
|
-
var VERIFY_IN_FLIGHT_GRACE_MS = 120000;
|
|
9085
|
+
var VERIFY_BATCH_DEFAULT_MS = 240000;
|
|
9088
9086
|
function verifyBatchTokenBudget(size, configured) {
|
|
9089
9087
|
return Math.min(configured ?? Number.MAX_SAFE_INTEGER, size * VERIFY_TOKENS_PER_MEMORY);
|
|
9090
9088
|
}
|
|
@@ -9114,8 +9112,8 @@ function validateVerifyCompletion(messages, text, expectedIds, responseText = te
|
|
|
9114
9112
|
}
|
|
9115
9113
|
var IDENTICAL_PROVIDER_FAILURE_BATCH_LIMIT = 2;
|
|
9116
9114
|
var VERIFY_BATCH_FLOOR_MS = 30000;
|
|
9117
|
-
function computeVerifyBatchSliceMs(remainingMs,
|
|
9118
|
-
return Math.min(remainingMs,
|
|
9115
|
+
function computeVerifyBatchSliceMs(remainingMs, batchesRemaining) {
|
|
9116
|
+
return Math.min(remainingMs, Math.max(VERIFY_BATCH_DEFAULT_MS, remainingMs / Math.max(1, batchesRemaining)));
|
|
9119
9117
|
}
|
|
9120
9118
|
function closeBroadCycle(args, cycleStartAt) {
|
|
9121
9119
|
if (!args.forceBroad || cycleStartAt === undefined)
|
|
@@ -9139,7 +9137,6 @@ async function runVerify(args) {
|
|
|
9139
9137
|
}
|
|
9140
9138
|
async function runVerifyWithCooldown(args) {
|
|
9141
9139
|
const runStartedAt = Date.now();
|
|
9142
|
-
const sliceDeadline = runStartedAt + VERIFY_RUN_SLICE_MS;
|
|
9143
9140
|
const result = {
|
|
9144
9141
|
verified: 0,
|
|
9145
9142
|
updated: 0,
|
|
@@ -9187,12 +9184,10 @@ async function runVerifyWithCooldown(args) {
|
|
|
9187
9184
|
try {
|
|
9188
9185
|
for (let i = 0;i < batches.length; i += 1) {
|
|
9189
9186
|
const now = Date.now();
|
|
9190
|
-
const
|
|
9191
|
-
|
|
9192
|
-
const remainingMs = Math.max(0, hardStop - now);
|
|
9193
|
-
if (now >= startCutoff) {
|
|
9187
|
+
const remainingMs = Math.max(0, args.deadline - now);
|
|
9188
|
+
if (now >= args.deadline) {
|
|
9194
9189
|
result.stopReason = "deadline";
|
|
9195
|
-
log2(`[dreamer] ${args.forceBroad ? "verify-broad" : "verify"}: stopping before batch ${i + 1}/${batches.length} — the run deadline passed ${now -
|
|
9190
|
+
log2(`[dreamer] ${args.forceBroad ? "verify-broad" : "verify"}: stopping before batch ${i + 1}/${batches.length} — the run deadline passed ${now - args.deadline}ms ago`);
|
|
9196
9191
|
break;
|
|
9197
9192
|
}
|
|
9198
9193
|
if (remainingMs < VERIFY_BATCH_FLOOR_MS) {
|
|
@@ -10131,7 +10126,7 @@ function createDreamTaskExecutor(deps) {
|
|
|
10131
10126
|
return { status: "failed", transient: true, error };
|
|
10132
10127
|
}
|
|
10133
10128
|
const processed = result.mapped + result.independent;
|
|
10134
|
-
if (processed > 0) {
|
|
10129
|
+
if (processed > 0 || result.failure === undefined) {
|
|
10135
10130
|
const progress = `map-memories: committed ${processed} mapping(s) (mapped ${result.mapped}, independent ${result.independent}); ${result.remaining} remain`;
|
|
10136
10131
|
recordRun("completed", null, { progress });
|
|
10137
10132
|
return { status: "completed" };
|
|
@@ -16526,7 +16521,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16526
16521
|
const db = readDatabase();
|
|
16527
16522
|
if (!db)
|
|
16528
16523
|
return { ok: false, error: "db unavailable" };
|
|
16529
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
16524
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-ynehxbya.js"));
|
|
16530
16525
|
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-vz86nt79.js"));
|
|
16531
16526
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
16532
16527
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
@@ -16611,7 +16606,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16611
16606
|
const db = readDatabase();
|
|
16612
16607
|
if (!db)
|
|
16613
16608
|
return { ok: false, error: "db unavailable" };
|
|
16614
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
16609
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-4zhkcsz0.js"));
|
|
16615
16610
|
const model = liveSessionState.liveModelBySession.get(sessionId);
|
|
16616
16611
|
const contextLimit = model ? resolveContextLimit(model.providerID, model.modelID, { db, sessionID: sessionId }) : 128000;
|
|
16617
16612
|
const ctx = {
|
|
@@ -24805,6 +24800,15 @@ function createTransform(deps) {
|
|
|
24805
24800
|
db,
|
|
24806
24801
|
sessionID: sessionId
|
|
24807
24802
|
}) : undefined;
|
|
24803
|
+
const hostEstimate = deps.hostInputEstimate?.(sessionId);
|
|
24804
|
+
const hostOverWindow = fullFeatureMode && !compactionOff && resolvedContextLimit !== undefined && resolvedContextLimit > 0 && hostEstimate !== undefined && Number.isFinite(hostEstimate.tokens) && Number.isFinite(hostEstimate.pressureTokens) && hostEstimate.tokens > resolvedContextLimit;
|
|
24805
|
+
if (hostOverWindow) {
|
|
24806
|
+
contextUsageEarly = {
|
|
24807
|
+
inputTokens: Math.max(contextUsageEarly.inputTokens, hostEstimate.pressureTokens),
|
|
24808
|
+
percentage: Math.max(100, contextUsageEarly.percentage, hostEstimate.pressureTokens / resolvedContextLimit * 100)
|
|
24809
|
+
};
|
|
24810
|
+
usagePercentageSynthetic = true;
|
|
24811
|
+
}
|
|
24808
24812
|
let unmanagedOverWindowPass = null;
|
|
24809
24813
|
const unmanagedOverWindowCarried = unmanagedOverWindowSessions.has(sessionId);
|
|
24810
24814
|
if (fullFeatureMode && !compactionOff && typeof resolvedContextLimit === "number" && resolvedContextLimit > 0 && (unmanagedOverWindowCarried || isFirstTransformPassForSession && getLastCompartmentEndMessage(db, sessionId) < 0 && getMaxDroppedTagNumber2(db, sessionId) === 0)) {
|
|
@@ -25347,7 +25351,7 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
25347
25351
|
bustReason: calibrationBustReason,
|
|
25348
25352
|
onAdopt: (message) => sessionLog2(sessionId, message)
|
|
25349
25353
|
});
|
|
25350
|
-
let contextUsageFromEstimate =
|
|
25354
|
+
let contextUsageFromEstimate = hostOverWindow;
|
|
25351
25355
|
if (contextUsage.inputTokens <= 0 && protectionCacheBustingPass) {
|
|
25352
25356
|
const overflowRecoveryPass = usagePercentageSynthetic || emergencyRecoveryArmed;
|
|
25353
25357
|
const savedProviderReading = overflowRecoveryPass ? null : savedProviderReadingForPass({
|
|
@@ -25901,6 +25905,7 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
25901
25905
|
sessionId,
|
|
25902
25906
|
systemPromptHash: sessionMeta.systemPromptHash
|
|
25903
25907
|
});
|
|
25908
|
+
deps.onPassPermission?.(sessionId, postTransformResult.prefixMutationPermitted);
|
|
25904
25909
|
};
|
|
25905
25910
|
const timedTransform = (input, output) => withTransformTimingSummary(() => transform(input, output));
|
|
25906
25911
|
return Object.assign(timedTransform, {
|
|
@@ -8872,6 +8872,7 @@ function decodePiContentDecision(value) {
|
|
|
8872
8872
|
// src/features/magic-context/storage-native-replay.ts
|
|
8873
8873
|
var NATIVE_TOOL_INPUTS = "native tool inputs";
|
|
8874
8874
|
var NATIVE_REASONING_IDS = "native reasoning ids";
|
|
8875
|
+
var nativeWriteBarriers = new WeakMap;
|
|
8875
8876
|
function invalidPersistedReplayState(lane, sessionId) {
|
|
8876
8877
|
return new Error(`invalid persisted ${lane} state for session ${sessionId}`);
|
|
8877
8878
|
}
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
peekNoteNudgeText,
|
|
141
141
|
markNoteNudgeDelivered,
|
|
142
142
|
getActiveCompartmentRun
|
|
143
|
-
} from "./index-
|
|
143
|
+
} from "./index-kmayq4kq.js";
|
|
144
144
|
import {
|
|
145
145
|
cleanSearchText,
|
|
146
146
|
matchedSearchSnippet
|
|
@@ -3424,6 +3424,7 @@ function prepareLegacyToolSkeletonConversions(db, sessionId, targets, options =
|
|
|
3424
3424
|
});
|
|
3425
3425
|
};
|
|
3426
3426
|
const rows = readRows(db);
|
|
3427
|
+
options.prepareRemovals?.(rows);
|
|
3427
3428
|
const converted = new Map;
|
|
3428
3429
|
for (const row of rows) {
|
|
3429
3430
|
const target = targets.get(row.tagNumber);
|
|
@@ -7568,6 +7569,7 @@ async function runPostTransformPhase2(args) {
|
|
|
7568
7569
|
emergencyReclaimedTokens,
|
|
7569
7570
|
droppedCount,
|
|
7570
7571
|
emergency,
|
|
7572
|
+
prefixMutationPermitted: isCacheBustingPass,
|
|
7571
7573
|
bustedThisPass,
|
|
7572
7574
|
prefixTrimStatus: deliveredPrefix?.prefixTrimStatus ?? null,
|
|
7573
7575
|
thinkingBindingRecovery,
|
package/dist/index.js
CHANGED
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
checkCompactionMarkerConsistency,
|
|
100
100
|
clearInjectionCache,
|
|
101
101
|
clearNoteNudgeTriggerOnly
|
|
102
|
-
} from "./index-
|
|
102
|
+
} from "./index-kmayq4kq.js";
|
|
103
103
|
import"./index-sd3egckz.js";
|
|
104
104
|
import {
|
|
105
105
|
hasTrustedAbsoluteWall,
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
parameterDescriptionsFor,
|
|
188
188
|
MagicContextRpcServer,
|
|
189
189
|
applyHiddenSubagentTemperature
|
|
190
|
-
} from "./index-
|
|
190
|
+
} from "./index-22e7khnr.js";
|
|
191
191
|
import {
|
|
192
192
|
resolveOpenCodeDbPath,
|
|
193
193
|
openCodeDbPathExists,
|
|
@@ -310,10 +310,10 @@ import {
|
|
|
310
310
|
clearToolPermissionDenied,
|
|
311
311
|
collectForeignTextParts,
|
|
312
312
|
resetDegradedCacheCount2
|
|
313
|
-
} from "./index-
|
|
313
|
+
} from "./index-qathsvz2.js";
|
|
314
314
|
import {
|
|
315
315
|
runManagedRecomp2
|
|
316
|
-
} from "./index-
|
|
316
|
+
} from "./index-y6ynjghv.js";
|
|
317
317
|
import {
|
|
318
318
|
isValidSemver,
|
|
319
319
|
compareSemverCore
|
|
@@ -321,7 +321,7 @@ import {
|
|
|
321
321
|
import"./index-fmsr7v69.js";
|
|
322
322
|
import {
|
|
323
323
|
runManagedWrapup2
|
|
324
|
-
} from "./index-
|
|
324
|
+
} from "./index-0bjktrjt.js";
|
|
325
325
|
import"./index-kaqs6h31.js";
|
|
326
326
|
import"./index-3jmx3fae.js";
|
|
327
327
|
import {
|
|
@@ -8191,7 +8191,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8191
8191
|
// package.json
|
|
8192
8192
|
var package_default = {
|
|
8193
8193
|
name: "@cortexkit/opencode-magic-context",
|
|
8194
|
-
version: "0.49.
|
|
8194
|
+
version: "0.49.31",
|
|
8195
8195
|
type: "module",
|
|
8196
8196
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8197
8197
|
main: "dist/index.js",
|
|
@@ -12045,7 +12045,7 @@ async function setup(context) {
|
|
|
12045
12045
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12046
12046
|
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.`);
|
|
12047
12047
|
}
|
|
12048
|
-
const { registerContext } = await import("./context-
|
|
12048
|
+
const { registerContext } = await import("./context-9a0f8mzh.js");
|
|
12049
12049
|
setHarness2("opencode2");
|
|
12050
12050
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12051
12051
|
const duties = await registerContext(context);
|
|
@@ -12518,7 +12518,7 @@ var server = async (ctx) => {
|
|
|
12518
12518
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12519
12519
|
onStorageBusyRefusal: async (sessionId, message) => {
|
|
12520
12520
|
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-vz86nt79.js"));
|
|
12521
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
12521
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-50h70ft8.js"));
|
|
12522
12522
|
await sendStatusNotification(ctx.client, sessionId, message, {
|
|
12523
12523
|
toastDurationMs: 15000
|
|
12524
12524
|
});
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
setRecompTerminal2,
|
|
8
8
|
buildRecompDeps2,
|
|
9
9
|
runManagedRecomp2
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-y6ynjghv.js";
|
|
11
|
+
import"./index-kmayq4kq.js";
|
|
12
12
|
import"./index-qgh1qwjj.js";
|
|
13
13
|
import"./index-pe6b4bhs.js";
|
|
14
14
|
import"./index-4s4zq97n.js";
|
|
@@ -52,6 +52,8 @@ import { TEXT_TAG_IDENTITY_MARKER } from "./tag-owner-id";
|
|
|
52
52
|
import type { Transcript } from "./transcript";
|
|
53
53
|
export { TEXT_TAG_IDENTITY_MARKER };
|
|
54
54
|
export interface TagTranscriptOptions {
|
|
55
|
+
/** Independently validated text sources; does not authorize tool accounting reuse. */
|
|
56
|
+
reuseTextMessageIds?: ReadonlySet<string>;
|
|
55
57
|
/** Keep tag-only assistant slots inert when their original text must survive stripping. */
|
|
56
58
|
preserveTagOnlyAssistantText?: boolean;
|
|
57
59
|
/**
|
|
@@ -102,12 +104,13 @@ export interface TagTranscriptOptions {
|
|
|
102
104
|
export interface TagTranscriptResult {
|
|
103
105
|
targets: Map<number, TagTarget>;
|
|
104
106
|
}
|
|
107
|
+
type PersistedDropTag = Pick<TagEntry, "tagNumber" | "messageId" | "type" | "toolOwnerMessageId">;
|
|
105
108
|
/**
|
|
106
109
|
* Bind durable drops to a saved request without tagging it again. Recovery must
|
|
107
110
|
* not allocate identities, inject prefixes, or write accounting while the store
|
|
108
111
|
* is failing. Reuse the normal targets so persisted modes render identically.
|
|
109
112
|
*/
|
|
110
|
-
export declare function buildPersistedDropTargets(transcript: Transcript, tags: readonly
|
|
113
|
+
export declare function buildPersistedDropTargets(transcript: Transcript, tags: readonly PersistedDropTag[], options?: {
|
|
111
114
|
allowReasoningPrefixRewrite?: boolean;
|
|
112
115
|
}): Map<number, TagTarget>;
|
|
113
116
|
export declare function tagTranscript(sessionId: string, transcript: Transcript, tagger: Tagger, db: ContextDatabase, options?: TagTranscriptOptions): TagTranscriptResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-transcript.d.ts","sourceRoot":"","sources":["../../src/shared/tag-transcript.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAQzE,OAAO,EAAwB,KAAK,MAAM,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAYhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAErE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAqC,MAAM,cAAc,CAAC;AAGlF,OAAO,EAAE,wBAAwB,EAAE,CAAC;AAEpC,MAAM,WAAW,oBAAoB;IACjC,2FAA2F;IAC3F,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;;OAOG;IACH,2BAA2B,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1D;;;;OAIG;IACH,eAAe,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClD,wEAAwE;IACxE,uBAAuB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,gFAAgF;IAChF,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,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AE,MAAM,EACd,EAAE,EAAE,eAAe,EACnB,OAAO,GAAE,oBAAyB,GACnC,mBAAmB,CA+XrB"}
|
|
@@ -120,7 +120,9 @@ export interface TranscriptPart {
|
|
|
120
120
|
*
|
|
121
121
|
* For non-tool parts both byte fields are undefined/0.
|
|
122
122
|
*/
|
|
123
|
-
getToolMetadata(
|
|
123
|
+
getToolMetadata(options?: {
|
|
124
|
+
skipInputTokenCount?: boolean;
|
|
125
|
+
}): {
|
|
124
126
|
toolName: string | undefined;
|
|
125
127
|
inputByteSize: number;
|
|
126
128
|
inputTokenCount: number;
|
|
@@ -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,IAAI,MAAM,CAAC;IAEvB,6EAA6E;IAC7E,aAAa,CAAC,IAAI,OAAO,CAAC;IAE1B;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IAEhC;;;;;;;OAOG;IACH,OAAO,IAAI,MAAM,GAAG,SAAS,CAAC;IAE9B;;;;;;;;OAQG;IACH,OAAO,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form-postprocess-phase-6ccazq85.js → transform-postprocess-phase-50h70ft8.js}
RENAMED
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
finalizeMessageRepresentation2,
|
|
20
20
|
runPostTransformPhase2,
|
|
21
21
|
checkM0MutationDriftAndSignal2
|
|
22
|
-
} from "./index-
|
|
23
|
-
import"./index-
|
|
22
|
+
} from "./index-qathsvz2.js";
|
|
23
|
+
import"./index-kmayq4kq.js";
|
|
24
24
|
import"./index-qgh1qwjj.js";
|
|
25
25
|
import"./index-pe6b4bhs.js";
|
|
26
26
|
import"./index-4s4zq97n.js";
|