The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(bench): correct meter-proxy capture to use correct proxy endpoint
Steven Enamakelb6756b930b73
diff --git a/bench/harnesses/meter-proxy/capture.mjs b/bench/harnesses/meter-proxy/capture.mjsindex 77ad841632..71f6417064 100644--- a/bench/harnesses/meter-proxy/capture.mjs+++ b/bench/harnesses/meter-proxy/capture.mjs@@ -64,7 +64,7 @@ function commonPrefix(a, b) {* @param {object|null} args.prev the `state` returned for the previous call of this task* @returns {{capture: object, blobs: Map<string, unknown>, state: object}}*/-export function buildCapture({ format, body, headers, prev }) {+export function buildCapture({ format, body, headers, prev, rawBytes = null }) {const blobs = new Map();const put = (value) => {const id = sha(value);@@ -106,7 +106,10 @@ export function buildCapture({ format, body, headers, prev }) {message_shas: messageShas,params,headers: safeHeaders,- request_bytes: Buffer.byteLength(raw),+ request_bytes: Buffer.byteLength(raw), // the body re-serialised compactly+ // The body exactly as the harness sent it. Larger than request_bytes means the sender pretty-prints+ // (or otherwise pads) its JSON; equal means it already sends minified JSON.+ wire_bytes: rawBytes,// Prompt-cache diagnostics, all derived from the request alone:cache_control_markers: (raw.match(/"cache_control"/g) ?? []).length,prompt_cache_key: body.prompt_cache_key ?? params.user ?? null,diff --git a/bench/harnesses/meter-proxy/proxy.mjs b/bench/harnesses/meter-proxy/proxy.mjsindex 5768d0d149..84191ca6dd 100644--- a/bench/harnesses/meter-proxy/proxy.mjs+++ b/bench/harnesses/meter-proxy/proxy.mjs@@ -172,6 +172,7 @@ export function createProxy(opts) {format,body: parsed,headers: req.headers,+ rawBytes: body.length,prev: prevState.get(key) ?? null,});prevState.set(key, built.state);