Port durable automations and global pause as world extensions

This commit is contained in:
2026-11-07 14:16:05 +00:00
parent 58894c1315
commit 88e8f7a454
21 changed files with 36474 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
/** Pause: whether the user paused this Ultimate, for timers that start work outside the task scheduler. */
const defineApi = <S>() => (name: string): {name: string; service?: S} => ({name})
export type PauseService = {
/** Whether the host is paused; a timer that starts work (a fetch, a ping, a backup) skips its tick while it is. */
paused(): boolean
}
/** The pause; `want` it, pause is optional. */
export const PauseApi = defineApi<PauseService>()('pause')