{"draft":null,"from":2,"to":318,"files":[{"path":"client/src/box-run.ts","added":6,"removed":6,"diff":"--- a/client/src/box-run.ts\n+++ b/client/src/box-run.ts\n@@ -30,7 +30,7 @@\n }\n \n /** Where a run's output goes. */\n-/** What a box run is for (#39, DevOps's box-use counts). */\n+/** What a box run is for (#39). */\n export type RunKind = \"run\" | \"shot\" | \"bisect\" | \"publish-check\";\n \n export interface RunIO {\n@@ -41,7 +41,7 @@\n \treadonly onRetry?: (why: string, attempt: number) => void;\n \t/** Stop the runs still going in the box first, instead of a 409 (abso run --replace). */\n \treadonly replace?: boolean;\n-\t/** Called when the run starts: whether the box is fresh, and what X-Avcs-Prep says about its prep. */\n+\t/** Called when the run starts: whether the box is fresh, and what X-Abso-Prep says about its prep. */\n \treadonly onBox?: (cold: boolean, prep: string | undefined) => void;\n \t/** Start from the plain image this once, not the prep (abso run --fresh). */\n \treadonly fresh?: boolean;\n@@ -150,15 +150,15 @@\n \t\ttry {\n \t\t\t// stderr=split: the box's stderr comes apart from stdout (7a5a111); older servers ignore it.\n \t\t\t// replace=1: stop the runs still going in the box first; without it the server answers 409 (#25).\n-\t\t\tconst answer = await fetch(\n+\t\t\tconst answer = await api.send(\n \t\t\t\t`${api.url(api.agentPath(\"run\"))}?cmd=${encodeURIComponent(command)}&stderr=split${replace ? \"&replace=1\" : \"\"}${fresh ? \"&fresh=1\" : \"\"}${boxQuery(api.box)}`,\n \t\t\t\t{\n \t\t\t\t\tmethod: \"POST\",\n-\t\t\t\t\theaders: { ...api.headers(\"application/gzip\"), \"x-avcs-run-key\": key, \"x-avcs-kind\": api.runKind },\n+\t\t\t\t\theaders: { ...api.headers(\"application/gzip\"), \"x-abso-run-key\": key, \"x-abso-kind\": api.runKind },\n \t\t\t\t\tbody: tarGz,\n \t\t\t\t},\n \t\t\t);\n-\t\t\tif (answer.status < 500 || answer.headers.get(\"x-avcs-run\") !== null) {\n+\t\t\tif (answer.status < 500 || answer.headers.get(\"x-abso-run\") !== null) {\n \t\t\t\tres = answer;\n \t\t\t\tbreak;\n \t\t\t}\n@@ -216,7 +216,7 @@\n \t\tonReconnect?.(last, attempt + 1);\n \t\tawait new Promise((ok) => setTimeout(ok, delay));\n \t\ttry {\n-\t\t\tconst res = await fetch(followUrl(api, id, seen), { headers: api.headers() });\n+\t\t\tconst res = await api.send(followUrl(api, id, seen), { headers: api.headers() });\n \t\t\tif (res.status === 404)\n \t\t\t\tthrow new ApiError(\n \t\t\t\t\t`the run broke off (${why}) and is gone from the box: ${errorSentence(await res.text())}`,"}],"unmatched":[]}