import { ExecutionTarget } from "@stigmer/protos/ai/stigmer/agentic/session/v1/enum_pb";
/** Convert an {@link ExecutionTargetOption} string to the proto {@link ExecutionTarget} enum. */
export function toProtoExecutionTarget(t) {
    switch (t) {
        case "local":
            return ExecutionTarget.LOCAL;
        case "cloud":
            return ExecutionTarget.CLOUD;
    }
}
/**
 * Convert a proto {@link ExecutionTarget} enum to an {@link ExecutionTargetOption} string,
 * or `undefined` when the value is `UNSPECIFIED` (server decides).
 */
export function fromProtoExecutionTarget(t) {
    switch (t) {
        case ExecutionTarget.LOCAL:
            return "local";
        case ExecutionTarget.CLOUD:
            return "cloud";
        case ExecutionTarget.UNSPECIFIED:
        default:
            return undefined;
    }
}
//# sourceMappingURL=execution-target.js.map