agentv 3.9.2 → 3.10.0
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/{chunk-JGMJL2LV.js → chunk-DDMAQT5P.js} +5 -5
- package/dist/chunk-DDMAQT5P.js.map +1 -0
- package/dist/{chunk-6ZAFWUBT.js → chunk-DJ6FJ6J4.js} +4 -4
- package/dist/{chunk-OIVGGWJ3.js → chunk-X3KJVUAB.js} +18 -12
- package/dist/chunk-X3KJVUAB.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/{dist-PUPHGVKL.js → dist-DJFWBJNJ.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{interactive-BD56NB23.js → interactive-ST4ZSRK4.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-JGMJL2LV.js.map +0 -1
- package/dist/chunk-OIVGGWJ3.js.map +0 -1
- /package/dist/{chunk-6ZAFWUBT.js.map → chunk-DJ6FJ6J4.js.map} +0 -0
- /package/dist/{dist-PUPHGVKL.js.map → dist-DJFWBJNJ.js.map} +0 -0
- /package/dist/{interactive-BD56NB23.js.map → interactive-ST4ZSRK4.js.map} +0 -0
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
validateEvalFile,
|
|
18
18
|
validateFileReferences,
|
|
19
19
|
validateTargetsFile
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DDMAQT5P.js";
|
|
21
21
|
import {
|
|
22
22
|
createBuiltinRegistry,
|
|
23
23
|
createProvider,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
toSnakeCaseDeep as toSnakeCaseDeep2,
|
|
36
36
|
transpileEvalYamlFile,
|
|
37
37
|
trimBaselineResult
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-X3KJVUAB.js";
|
|
39
39
|
import {
|
|
40
40
|
__commonJS,
|
|
41
41
|
__esm,
|
|
@@ -4187,7 +4187,7 @@ var evalRunCommand = command({
|
|
|
4187
4187
|
},
|
|
4188
4188
|
handler: async (args) => {
|
|
4189
4189
|
if (args.evalPaths.length === 0 && process.stdin.isTTY) {
|
|
4190
|
-
const { launchInteractiveWizard } = await import("./interactive-
|
|
4190
|
+
const { launchInteractiveWizard } = await import("./interactive-ST4ZSRK4.js");
|
|
4191
4191
|
await launchInteractiveWizard();
|
|
4192
4192
|
return;
|
|
4193
4193
|
}
|
|
@@ -6287,4 +6287,4 @@ export {
|
|
|
6287
6287
|
preprocessArgv,
|
|
6288
6288
|
runCli
|
|
6289
6289
|
};
|
|
6290
|
-
//# sourceMappingURL=chunk-
|
|
6290
|
+
//# sourceMappingURL=chunk-DJ6FJ6J4.js.map
|
|
@@ -20057,11 +20057,7 @@ var CopilotCliProvider = class {
|
|
|
20057
20057
|
}
|
|
20058
20058
|
}
|
|
20059
20059
|
if (sessionUpdate === "usage_update") {
|
|
20060
|
-
|
|
20061
|
-
tokenUsage = { input: update.used, output: tokenUsage.output };
|
|
20062
|
-
} else {
|
|
20063
|
-
tokenUsage = { input: update.used, output: 0 };
|
|
20064
|
-
}
|
|
20060
|
+
tokenUsage = { input: update.used, output: 0 };
|
|
20065
20061
|
if (update.cost && update.cost.currency === "USD") {
|
|
20066
20062
|
costUsd = (costUsd ?? 0) + update.cost.amount;
|
|
20067
20063
|
}
|
|
@@ -20095,21 +20091,32 @@ var CopilotCliProvider = class {
|
|
|
20095
20091
|
sessionId: session.sessionId,
|
|
20096
20092
|
prompt: promptMessages
|
|
20097
20093
|
});
|
|
20094
|
+
let promptResponse;
|
|
20098
20095
|
if (request.signal) {
|
|
20099
20096
|
const abortHandler = () => {
|
|
20100
20097
|
killProcess(agentProcess);
|
|
20101
20098
|
};
|
|
20102
20099
|
request.signal.addEventListener("abort", abortHandler, { once: true });
|
|
20103
20100
|
try {
|
|
20104
|
-
await this.raceWithTimeout(sendPromise, agentProcess);
|
|
20101
|
+
promptResponse = await this.raceWithTimeout(sendPromise, agentProcess);
|
|
20105
20102
|
} finally {
|
|
20106
20103
|
request.signal.removeEventListener("abort", abortHandler);
|
|
20107
20104
|
}
|
|
20108
20105
|
} else {
|
|
20109
|
-
await this.raceWithTimeout(sendPromise, agentProcess);
|
|
20106
|
+
promptResponse = await this.raceWithTimeout(sendPromise, agentProcess);
|
|
20110
20107
|
}
|
|
20111
20108
|
const endTime = (/* @__PURE__ */ new Date()).toISOString();
|
|
20112
20109
|
const durationMs = Date.now() - startMs;
|
|
20110
|
+
const responseUsage = promptResponse.usage;
|
|
20111
|
+
if (responseUsage && responseUsage.totalTokens > 0) {
|
|
20112
|
+
tokenUsage = {
|
|
20113
|
+
input: responseUsage.inputTokens,
|
|
20114
|
+
output: responseUsage.outputTokens,
|
|
20115
|
+
...responseUsage.thoughtTokens != null ? { reasoning: responseUsage.thoughtTokens } : {},
|
|
20116
|
+
...responseUsage.cachedReadTokens != null ? { cached: responseUsage.cachedReadTokens } : {}
|
|
20117
|
+
};
|
|
20118
|
+
request.streamCallbacks?.onLlmCallEnd?.("copilot", tokenUsage);
|
|
20119
|
+
}
|
|
20113
20120
|
const rejectedCalls = completedToolCalls.filter((tc) => {
|
|
20114
20121
|
const out = tc.output;
|
|
20115
20122
|
return out && (out.code === "rejected" || out.code === "denied");
|
|
@@ -20167,8 +20174,7 @@ var CopilotCliProvider = class {
|
|
|
20167
20174
|
async raceWithTimeout(sendPromise, agentProcess) {
|
|
20168
20175
|
const timeoutMs = this.config.timeoutMs;
|
|
20169
20176
|
if (!timeoutMs) {
|
|
20170
|
-
|
|
20171
|
-
return;
|
|
20177
|
+
return sendPromise;
|
|
20172
20178
|
}
|
|
20173
20179
|
let timer;
|
|
20174
20180
|
const timeoutPromise = new Promise((_, reject) => {
|
|
@@ -20179,7 +20185,7 @@ var CopilotCliProvider = class {
|
|
|
20179
20185
|
timer.unref?.();
|
|
20180
20186
|
});
|
|
20181
20187
|
try {
|
|
20182
|
-
await Promise.race([sendPromise, timeoutPromise]);
|
|
20188
|
+
return await Promise.race([sendPromise, timeoutPromise]);
|
|
20183
20189
|
} finally {
|
|
20184
20190
|
if (timer) clearTimeout(timer);
|
|
20185
20191
|
}
|
|
@@ -23125,7 +23131,7 @@ async function readTargetDefinitions(filePath) {
|
|
|
23125
23131
|
throw new Error(`targets.yaml not found at ${absolutePath}`);
|
|
23126
23132
|
}
|
|
23127
23133
|
const raw = await readFile9(absolutePath, "utf8");
|
|
23128
|
-
const parsed = parse4(raw);
|
|
23134
|
+
const parsed = interpolateEnv(parse4(raw), process.env);
|
|
23129
23135
|
if (!isRecord(parsed)) {
|
|
23130
23136
|
throw new Error(`targets.yaml at ${absolutePath} must be a YAML object with a 'targets' field`);
|
|
23131
23137
|
}
|
|
@@ -31051,4 +31057,4 @@ export {
|
|
|
31051
31057
|
OtelStreamingObserver,
|
|
31052
31058
|
createAgentKernel
|
|
31053
31059
|
};
|
|
31054
|
-
//# sourceMappingURL=chunk-
|
|
31060
|
+
//# sourceMappingURL=chunk-X3KJVUAB.js.map
|