import { ExecutionPhase } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/enum_pb";
const TERMINAL_PHASES = new Set([
    ExecutionPhase.EXECUTION_COMPLETED,
    ExecutionPhase.EXECUTION_FAILED,
    ExecutionPhase.EXECUTION_CANCELLED,
    ExecutionPhase.EXECUTION_TERMINATED,
]);
/**
 * Returns `true` when the given phase represents a final, immutable
 * execution state — no further updates will arrive from the server.
 */
export function isTerminalPhase(phase) {
    return TERMINAL_PHASES.has(phase);
}
//# sourceMappingURL=execution-phases.js.map