mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-17 20:09:05 +02:00
10 lines
456 B
TypeScript
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");
|
|
}
|
|
|