Skip to content

Commit 81b95fc

Browse files
committed
fix: fix execution-target prebakedRuntime interface placement
Move prebakedRuntime field from inside postedIssueCommentLogMarker function body to AdapterSandboxExecutionTarget interface where it belongs.
1 parent 320d279 commit 81b95fc

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

packages/adapter-utils/src/execution-target.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,6 @@ import type { LocalProcessSandboxOptions } from "./local-process-sandbox.js";
9090
export type { RuntimeProgressSink } from "./runtime-progress.js";
9191

9292
export function postedIssueCommentLogMarker(method: string, requestPath: string, status: number, body: string) {
93-
/**
94-
* The sandbox runs a managed, pre-baked runtime image (plugin-backed
95-
* provider) whose adapter CLI is contractually complete. When true, the
96-
* runtime-install shim is disabled: a missing CLI means the run landed on the
97-
* wrong runtime image (a different harness), so we fail fast with
98-
* {@link AdapterRuntimeImageMismatchError} instead of attempting a network
99-
* install that a locked/sovereign egress would block until timeout.
100-
*/
101-
prebakedRuntime?: boolean | null;
10293
if (method !== "POST" || !/^\/api\/issues\/[^/]+\/comments$/.test(requestPath) || status < 200 || status >= 300) {
10394
return null;
10495
}
@@ -216,6 +207,15 @@ export interface AdapterSandboxExecutionTarget extends AdapterExecutionTargetWor
216207
* bridge inert for this seam.
217208
*/
218209
duplexAggregateByteLedger?: DuplexAggregateByteLedger | null;
210+
/**
211+
* The sandbox runs a managed, pre-baked runtime image (plugin-backed
212+
* provider) whose adapter CLI is contractually complete. When true, the
213+
* runtime-install shim is disabled: a missing CLI means the run landed on the
214+
* wrong runtime image (a different harness), so we fail fast with
215+
* {@link AdapterRuntimeImageMismatchError} instead of attempting a network
216+
* install that a locked/sovereign egress would block until timeout.
217+
*/
218+
prebakedRuntime?: boolean | null;
219219
}
220220

221221
export type AdapterExecutionTarget =

0 commit comments

Comments
 (0)