Files
PaperClipAI/packages/adapter-utils/src/execution-target-kind.ts
T
DottaandPaperclip 1525c4ef27 Harden persistent runner transports and provider restoration
Assemble the shared runtime prerequisite from the frozen Boat implementation, including its owning tests and the minimal computer target identity dependency.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-11 07:32:05 -05:00

9 lines
455 B
TypeScript

import type { AdapterCommandBackedExecutionTarget, AdapterExecutionTarget } from "./execution-target.js";
/** Command transport capability; sandbox allocation ownership is unchanged. */
export function adapterExecutionTargetIsCommandBacked(
target: AdapterExecutionTarget | null | undefined,
): target is AdapterCommandBackedExecutionTarget {
return target?.kind === "remote" && (target.transport === "sandbox" || target.transport === "computer");
}