()
| 42 | } |
| 43 | |
| 44 | async function readStateRunId() { |
| 45 | const statePath = new URL(`file://${process.cwd()}/.cloudbox-live.json`); |
| 46 | const raw = await readFile(statePath, "utf8").catch(() => null); |
| 47 | if (!raw) return null; |
| 48 | const state = JSON.parse(raw); |
| 49 | return typeof state?.runId === "string" && state.runId ? state.runId : null; |
| 50 | } |
| 51 | |
| 52 | function queue(_event, filename) { |
| 53 | if (!filename) return; |
no test coverage detected