fix: expose server deployment trigger

This commit is contained in:
npc0-hue
2026-07-28 15:11:01 +08:00
parent e4ef4024a8
commit c5806cc6b7
10 changed files with 151 additions and 5 deletions
@@ -115,6 +115,10 @@ export function canStopServer(state: ServerInstanceState): boolean {
return state === "running";
}
export function canDeployServer(state: ServerInstanceState): boolean {
return state === "draft" || state === "failed";
}
export function isPendingJobState(state: JobResponse["state"]): boolean {
return state === "queued" || state === "accepted" || state === "running" || state === "retrying";
}