Files
PaperClipAI/packages/adapter-utils/src/execution-target-kind.ts
T

10 lines
456 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");
}