(id: string)
| 464 | } |
| 465 | |
| 466 | function assertExecutionId(id: string) { |
| 467 | if (id.length === 0) throw new Error("Workspace runtime execution id must not be empty."); |
| 468 | if (new TextEncoder().encode(id).byteLength > 256) { |
| 469 | throw new Error("Workspace runtime execution id exceeds 256 bytes."); |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | function resumeToAfter(resume: "tail" | "full" | number | undefined) { |
| 474 | if (resume === "tail") return "tail" as const; |
no outgoing calls
no test coverage detected