@cloudhal/schedules 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +103 -2
  3. package/dist/src/automation.d.ts +82 -0
  4. package/dist/src/automation.js +199 -0
  5. package/dist/src/budget-meter.d.ts +58 -0
  6. package/dist/src/budget-meter.js +130 -0
  7. package/dist/src/budget.d.ts +41 -0
  8. package/dist/src/budget.js +76 -0
  9. package/dist/src/builtins.d.ts +132 -0
  10. package/dist/src/builtins.js +473 -0
  11. package/dist/src/engine.d.ts +16 -0
  12. package/dist/src/engine.js +30 -0
  13. package/dist/src/errors.d.ts +22 -0
  14. package/dist/src/errors.js +56 -0
  15. package/dist/src/feed-check.d.ts +56 -0
  16. package/dist/src/feed-check.js +365 -0
  17. package/dist/src/findings.d.ts +185 -0
  18. package/dist/src/findings.js +287 -0
  19. package/dist/src/ids.d.ts +24 -0
  20. package/dist/src/ids.js +96 -0
  21. package/dist/src/index.d.ts +24 -0
  22. package/dist/src/index.js +24 -0
  23. package/dist/src/instant.d.ts +19 -0
  24. package/dist/src/instant.js +50 -0
  25. package/dist/src/notify.d.ts +50 -0
  26. package/dist/src/notify.js +60 -0
  27. package/dist/src/recurrence.d.ts +155 -0
  28. package/dist/src/recurrence.js +939 -0
  29. package/dist/src/release-when.d.ts +23 -0
  30. package/dist/src/release-when.js +55 -0
  31. package/dist/src/release.d.ts +198 -0
  32. package/dist/src/release.js +552 -0
  33. package/dist/src/scheduler.d.ts +490 -0
  34. package/dist/src/scheduler.js +1343 -0
  35. package/dist/src/sql/finish.d.ts +32 -0
  36. package/dist/src/sql/finish.js +103 -0
  37. package/dist/src/sql/index.d.ts +6 -0
  38. package/dist/src/sql/index.js +15 -0
  39. package/dist/src/sql/rows.d.ts +125 -0
  40. package/dist/src/sql/rows.js +297 -0
  41. package/dist/src/sql/store.d.ts +467 -0
  42. package/dist/src/sql/store.js +2166 -0
  43. package/dist/src/taint.d.ts +65 -0
  44. package/dist/src/taint.js +138 -0
  45. package/dist/src/text.d.ts +6 -0
  46. package/dist/src/text.js +25 -0
  47. package/dist/src/time-entry.d.ts +6 -0
  48. package/dist/src/time-entry.js +6 -0
  49. package/dist/src/time.d.ts +61 -0
  50. package/dist/src/time.js +140 -0
  51. package/package.json +69 -3
@@ -0,0 +1,467 @@
1
+ /**
2
+ * `SqlScheduleStore` — releases, automations, runs, system jobs, the heartbeat and per-site
3
+ * settings over `SqlDriver` (SQLite locally and on Node, D1 on Cloudflare) for the tables of
4
+ * migration `0017_schedules`. Worker-safe; it implements `SchedulerStore` for `runDue`.
5
+ *
6
+ * Writes are single statements or one atomic `batch()` (no interactive transactions, AGENTS.md
7
+ * rule 4). Every composite write is decided by one compare-and-swap, and the other statements of
8
+ * its batch carry the same decision:
9
+ * - **inserts** after a new release are guarded on the release's new content hash (`rl1:`);
10
+ * - **claims** store a fresh random lease token, and every later write of that run (finish,
11
+ * defer) is guarded on "the row still carries my token" — the token is unique per claim, so it
12
+ * plays the role of the new content hash, never `rev + 1`;
13
+ * - **dependent rows** (runs, a release's items) are written *before* the CAS statement in the same
14
+ * batch and guarded on exactly the CAS condition (pre-state and `rev`, or the token), which the
15
+ * earlier statements cannot change; if the CAS loses, none of them applies.
16
+ * - `release_items.held` is never guarded: it is recomputed from the release's state after every
17
+ * change (`HELD_SYNC`), so it is right whichever writer won.
18
+ *
19
+ * Every record written is checked with the precompiled contract validators (`assertValid`).
20
+ */
21
+ import type { Actor, Automation, AutomationJob, AutomationRecurrence, Release, ReleaseApproval, ReleaseOutcome, ReleaseState, ReleaseWhen, ScheduleRun, ScheduleRunUsage } from "@cloudhal/core-contracts";
22
+ import type { SqlDriver, SqlStatement } from "@cloudhal/storage";
23
+ import type { TickTrigger } from "../budget-meter.js";
24
+ import { type PinnedItem } from "../release.js";
25
+ import type { ClaimReleaseInput, DueAutomation, DueRelease, Heartbeat, RecoverableRelease, ReleaseFinish, SchedulerStore, StoredReleaseItem, SystemJobState, TickOverview } from "../scheduler.js";
26
+ export interface SqlScheduleStoreOptions {
27
+ /** The clock for `createdAt`/`updatedAt` of people's writes (the scheduler passes `now` itself). */
28
+ now?: () => Date;
29
+ }
30
+ /** Per-site schedule settings (§4.5, §5.1): outside the graph, so a rollback cannot un-pause a site. */
31
+ export interface ScheduleSettings {
32
+ siteId: string;
33
+ /** The site's kill switch (§11.6). */
34
+ paused: boolean;
35
+ pausedBy?: Actor;
36
+ pausedAt?: string;
37
+ pausedReason?: string;
38
+ /** Automation mutations per UTC day (default 200). */
39
+ dailyWriteCap: number;
40
+ /** 0 while the row does not exist (the defaults). */
41
+ rev: number;
42
+ updatedAt?: string;
43
+ updatedBy?: Actor;
44
+ }
45
+ /** A release with what the store keeps beside the contract. */
46
+ export interface ReleaseRecord {
47
+ release: Release;
48
+ items: StoredReleaseItem[];
49
+ executeAt?: string;
50
+ requestId?: string;
51
+ purgePlan?: unknown;
52
+ leaseToken?: string;
53
+ leaseUntil?: string;
54
+ }
55
+ export interface CreateReleaseInput {
56
+ siteId: string;
57
+ items: readonly PinnedItem[];
58
+ createdBy: Actor;
59
+ title?: string;
60
+ when?: ReleaseWhen;
61
+ metadata?: Record<string, string>;
62
+ /** `planCachePurge(base → target)` per item, computed when pinned (§6.1 step 5). */
63
+ purgePlan?: unknown;
64
+ id?: string;
65
+ }
66
+ export interface ReleaseChange {
67
+ expectedRev: number;
68
+ to: ReleaseState;
69
+ /** `null` removes it. */
70
+ approval?: ReleaseApproval | null;
71
+ outcome?: ReleaseOutcome | null;
72
+ when?: ReleaseWhen | null;
73
+ requestId?: string | null;
74
+ title?: string | null;
75
+ }
76
+ export interface CreateAutomationInput {
77
+ siteId: string;
78
+ name: string;
79
+ job: AutomationJob;
80
+ recurrence: Omit<AutomationRecurrence, "preset"> & {
81
+ preset?: AutomationRecurrence["preset"];
82
+ };
83
+ owner: Automation["owner"];
84
+ metadata?: Record<string, string>;
85
+ id?: string;
86
+ /** Minutes between runs (default 60, §9.3). */
87
+ minIntervalMinutes?: number;
88
+ }
89
+ export interface RunQuery {
90
+ subjectId?: string;
91
+ states?: readonly ScheduleRun["state"][];
92
+ limit?: number;
93
+ /** Rows created strictly before this instant (pagination by `createdAt`). */
94
+ before?: string;
95
+ }
96
+ export declare class SqlScheduleStore implements SchedulerStore {
97
+ #private;
98
+ constructor(sql: SqlDriver, options?: SqlScheduleStoreOptions);
99
+ /** A new `draft` release with its pinned items (§6.1). Items are hashed into `rl1:`. */
100
+ createRelease(input: CreateReleaseInput): Promise<Release>;
101
+ getReleaseRecord(siteId: string, id: string): Promise<ReleaseRecord | undefined>;
102
+ getRelease(siteId: string, id: string): Promise<Release | undefined>;
103
+ /** A site's releases in time order (undated drafts last), optionally by state. */
104
+ listReleases(siteId: string, options?: {
105
+ states?: readonly ReleaseState[];
106
+ limit?: number;
107
+ }): Promise<Release[]>;
108
+ /**
109
+ * Moves a release between states (§5.2) with a compare-and-swap on `rev`. The scheduler's own
110
+ * transitions (claim, finish) go through the claim methods; `running` is never entered here.
111
+ */
112
+ transitionRelease(siteId: string, id: string, change: ReleaseChange): Promise<Release>;
113
+ /**
114
+ * Re-pins a release's items (§6.4 re-pin; "edit and re-approve"): a new `rl1:` hash, the approval
115
+ * voided. From `draft` or `conflict` the release becomes a `draft`; from `awaiting_approval` or
116
+ * `scheduled` it waits for approval again (S6).
117
+ */
118
+ repinRelease(siteId: string, id: string, input: {
119
+ expectedRev: number;
120
+ items: readonly PinnedItem[];
121
+ purgePlan?: unknown;
122
+ }): Promise<Release>;
123
+ /** Withdraws a release (`canceled`). A running release cannot be canceled (§8.5: 409). */
124
+ cancelRelease(siteId: string, id: string, input: {
125
+ expectedRev: number;
126
+ by: Actor;
127
+ }): Promise<Release>;
128
+ /** Nodes held by non-terminal releases (§6.2 locks and holds), node id → release ids. */
129
+ heldNodes(siteId: string, nodeIds?: readonly string[]): Promise<Map<string, string[]>>;
130
+ /** Nodes in two or more non-terminal releases (D15: flagged, not refused). */
131
+ overlaps(siteId: string): Promise<Map<string, string[]>>;
132
+ /**
133
+ * D5 for one site: releases still `awaiting_approval` at their time become `expired`
134
+ * (`unapproved`). Indexed by `releases_site`; the API calls it when it reads a site's schedule,
135
+ * so the tick never scans releases outside `releases_due`.
136
+ */
137
+ expireOverdueApprovals(siteId: string, now: string): Promise<number>;
138
+ overview(_now: string): Promise<TickOverview>;
139
+ dueReleases(now: string, limit: number): Promise<DueRelease[]>;
140
+ expiredReleaseLeases(now: string, limit: number): Promise<RecoverableRelease[]>;
141
+ claimRelease(input: ClaimReleaseInput): Promise<boolean>;
142
+ reclaimRelease(input: {
143
+ releaseId: string;
144
+ runId: string;
145
+ oldToken: string;
146
+ token: string;
147
+ now: string;
148
+ leaseUntil: string;
149
+ trigger: TickTrigger;
150
+ latenessSeconds: number;
151
+ }): Promise<boolean>;
152
+ /**
153
+ * The statements that end a claimed release (§6.3 statements 5–7), each guarded on the lease
154
+ * token and, optionally, on `guard` — the site CAS of `publishRelease`, which appends these to its
155
+ * own batch (`EXISTS (SELECT 1 FROM nodes WHERE id = :site AND hash = :hash')`). The release row
156
+ * is updated last.
157
+ */
158
+ releaseFinishStatements(input: {
159
+ releaseId: string;
160
+ runId: string;
161
+ token: string;
162
+ now: string;
163
+ latenessSeconds: number;
164
+ finish: ReleaseFinish;
165
+ guard?: SqlStatement;
166
+ }): SqlStatement[];
167
+ finishRelease(input: {
168
+ releaseId: string;
169
+ runId: string;
170
+ token: string;
171
+ now: string;
172
+ latenessSeconds: number;
173
+ finish: ReleaseFinish;
174
+ }): Promise<boolean>;
175
+ deferRelease(input: {
176
+ releaseId: string;
177
+ runId: string;
178
+ token: string;
179
+ now: string;
180
+ retryAt: string;
181
+ error: string;
182
+ }): Promise<boolean>;
183
+ settleRelease(input: {
184
+ siteId: string;
185
+ releaseId: string;
186
+ expectedRev: number;
187
+ executeAt: string;
188
+ now: string;
189
+ outcome: ReleaseOutcome & {
190
+ kind: "missed" | "expired";
191
+ };
192
+ trigger: TickTrigger;
193
+ }): Promise<boolean>;
194
+ /**
195
+ * "Publish now" (§5.2, §8.6): a person's manual run of a `scheduled`, `missed` or `expired`
196
+ * release. One batch, decided by the release CAS (`rev` and state, and no other release of the
197
+ * site running under a live lease, D15): the release becomes `running` with the person's
198
+ * approval and the time it actually runs, the run row is keyed by that instant (trigger
199
+ * `manual`), and the items are held again. False when the CAS lost.
200
+ */
201
+ claimManualRun(input: {
202
+ siteId: string;
203
+ releaseId: string;
204
+ expectedRev: number;
205
+ approval: ReleaseApproval;
206
+ runId: string;
207
+ token: string;
208
+ now: string;
209
+ leaseUntil: string;
210
+ }): Promise<boolean>;
211
+ /**
212
+ * After a published release's purge (§6.3 "After the batch"): the outcome's `purge` becomes what
213
+ * actually happened (`deferred` when the shared budget was empty, `failed`).
214
+ */
215
+ recordPurge(id: string, purge: "tags" | "everything" | "deferred" | "failed" | "none"): Promise<void>;
216
+ /** The purge plan computed when the release was pinned (§6.1 step 5), if any. */
217
+ releasePurgePlan(id: string): Promise<unknown>;
218
+ moveRelease(input: {
219
+ siteId: string;
220
+ releaseId: string;
221
+ expectedRev: number;
222
+ at: string;
223
+ now: string;
224
+ }): Promise<boolean>;
225
+ /** A new `active` automation (people only, §11.2); its first run is the first occurrence from now. */
226
+ createAutomation(input: CreateAutomationInput): Promise<Automation>;
227
+ getAutomation(siteId: string, id: string): Promise<Automation | undefined>;
228
+ listAutomations(siteId: string): Promise<Automation[]>;
229
+ /**
230
+ * Pause, resume, break or end an automation (§5.3) with a CAS on `rev`. Leaving `active` kills
231
+ * its open runs; resuming resets the failure count and plans the next run from now.
232
+ */
233
+ transitionAutomation(siteId: string, id: string, change: {
234
+ expectedRev: number;
235
+ to: Automation["state"];
236
+ pausedReason?: NonNullable<Automation["pausedReason"]>;
237
+ }): Promise<Automation>;
238
+ dueAutomations(now: string, limit: number): Promise<DueAutomation[]>;
239
+ claimBuiltinRun(input: {
240
+ automation: Automation;
241
+ occurrence: {
242
+ at: string;
243
+ adjusted?: "dst-gap";
244
+ };
245
+ runId: string;
246
+ attempt: number;
247
+ continuing: boolean;
248
+ coalesced?: {
249
+ runId: string;
250
+ occurrenceAt: string;
251
+ count: number;
252
+ };
253
+ token: string;
254
+ now: string;
255
+ leaseUntil: string;
256
+ trigger: TickTrigger;
257
+ latenessSeconds: number;
258
+ }): Promise<boolean>;
259
+ finishBuiltinRun(input: Parameters<SchedulerStore["finishBuiltinRun"]>[0]): Promise<boolean>;
260
+ recordAgentOccurrence(input: Parameters<SchedulerStore["recordAgentOccurrence"]>[0]): Promise<boolean>;
261
+ /**
262
+ * `begin_run` (§11.2; the MCP tool is rollout step 10): the occurrence's `ready` row becomes
263
+ * `running` while its window is open; `endsAt` is the run's lease. False when the window is not
264
+ * open or another call began it (one run per occurrence).
265
+ */
266
+ beginAgentRun(input: {
267
+ siteId: string;
268
+ runId: string;
269
+ now: string;
270
+ endsAt: string;
271
+ }): Promise<boolean>;
272
+ /** `end_run` (§11.2): `succeeded` with the agent's summary; the failure count resets. */
273
+ endAgentRun(input: {
274
+ siteId: string;
275
+ runId: string;
276
+ now: string;
277
+ summary?: string;
278
+ outcome: NonNullable<ScheduleRun["outcome"]>;
279
+ usage?: ScheduleRunUsage;
280
+ }): Promise<boolean>;
281
+ closeExpiredRuns(now: string): Promise<{
282
+ missed: number;
283
+ failed: number;
284
+ }>;
285
+ getRun(siteId: string, id: string): Promise<ScheduleRun | undefined>;
286
+ /** Newest first; by subject and state when given. */
287
+ listRuns(siteId: string, query?: RunQuery): Promise<ScheduleRun[]>;
288
+ /** A run's findings (Studio only, ≤ 200). */
289
+ runFindings(siteId: string, id: string): Promise<unknown[]>;
290
+ /** A run's usage, counted from audit and approval rows (§11.5; no counter columns). */
291
+ runUsage(siteId: string, runId: string): Promise<ScheduleRunUsage>;
292
+ /** Automation mutations (audit rows with a snapshot) on the site since midnight UTC (§11.5). */
293
+ automationWritesToday(siteId: string, now: string): Promise<number>;
294
+ settings(siteId: string): Promise<ScheduleSettings>;
295
+ /**
296
+ * Changes the kill switch or the daily cap (CAS on `rev`; 0 = no row yet). Pausing pauses every
297
+ * `active` automation of the site (`kill-switch`) and kills open automation runs; due releases
298
+ * wait (and become `missed` after an hour). Resuming resumes exactly the automations the switch
299
+ * paused, planned from now.
300
+ */
301
+ putSettings(siteId: string, input: {
302
+ paused?: boolean;
303
+ reason?: string;
304
+ dailyWriteCap?: number;
305
+ }, options: {
306
+ expectedRev: number;
307
+ by: Actor;
308
+ }): Promise<ScheduleSettings>;
309
+ ensureSystemJobs(jobs: readonly {
310
+ name: string;
311
+ nextRunAt: string;
312
+ }[]): Promise<void>;
313
+ systemJobs(): Promise<SystemJobState[]>;
314
+ dueSystemJobs(now: string): Promise<SystemJobState[]>;
315
+ claimSystemJob(input: {
316
+ name: string;
317
+ token: string;
318
+ now: string;
319
+ leaseUntil: string;
320
+ }): Promise<boolean>;
321
+ finishSystemJob(input: {
322
+ name: string;
323
+ token: string;
324
+ now: string;
325
+ ok: boolean;
326
+ nextRunAt: string;
327
+ error?: string;
328
+ }): Promise<boolean>;
329
+ heartbeat(): Promise<Heartbeat | undefined>;
330
+ writeHeartbeat(h: Heartbeat): Promise<void>;
331
+ /** The automation an agent key belongs to (§11.2: one key, one automation). */
332
+ automationByKey(keyId: string): Promise<Automation | undefined>;
333
+ /** The automation's run that is `running` and has not reached its end (`lease_until`). */
334
+ openAgentRun(siteId: string, automationId: string, now: string): Promise<ScheduleRun | undefined>;
335
+ /** The automation's `ready` run whose window is open at `now` (§8.6: begin_run's target). */
336
+ readyAgentRun(siteId: string, automationId: string, now: string): Promise<ScheduleRun | undefined>;
337
+ /**
338
+ * Opens an agent task's window now ("Run now", §13), as the occurrence `now` (to the minute) with
339
+ * trigger `manual`. False when that occurrence already has a run.
340
+ */
341
+ openManualWindow(input: {
342
+ automation: Automation;
343
+ now: string;
344
+ window: {
345
+ opensAt: string;
346
+ closesAt: string;
347
+ };
348
+ }): Promise<string | undefined>;
349
+ /**
350
+ * What one call inside a run leaves on it (§11.4, §11.5): the taint (kept once set), the anomaly
351
+ * counters (`counts`) and the usage so far. Only while the run is `running`.
352
+ */
353
+ recordRunCall(siteId: string, id: string, input: {
354
+ now: string;
355
+ taint?: {
356
+ at: string;
357
+ tool: string;
358
+ };
359
+ counts?: Record<string, number>;
360
+ usage?: ScheduleRunUsage;
361
+ }): Promise<boolean>;
362
+ /**
363
+ * Ends a running agent run other than by `end_run` (§11.4, §11.5): `budget-exceeded`, `killed`
364
+ * (anomaly), or `failed`. The automation's own state changes through `transitionAutomation`.
365
+ */
366
+ endAgentRunAs(siteId: string, id: string, input: {
367
+ now: string;
368
+ state: "budget-exceeded" | "killed" | "failed";
369
+ error: {
370
+ code: string;
371
+ message?: string;
372
+ };
373
+ usage?: ScheduleRunUsage;
374
+ }): Promise<boolean>;
375
+ /**
376
+ * Changes an automation's name, job settings or recurrence (people, §13 PATCH) with a CAS on
377
+ * `rev`. The next run is planned again from `now` when the recurrence changes; an agent task's
378
+ * key never changes here.
379
+ */
380
+ updateAutomation(siteId: string, id: string, change: {
381
+ expectedRev: number;
382
+ name?: string;
383
+ job?: AutomationJob;
384
+ recurrence?: Omit<AutomationRecurrence, "preset"> & {
385
+ preset?: AutomationRecurrence["preset"];
386
+ };
387
+ minIntervalMinutes?: number;
388
+ }): Promise<Automation>;
389
+ /**
390
+ * Deletes an automation (§11.8): its open runs are killed first, in the same batch; the run rows
391
+ * stay for history (retention removes them), the audit rows always.
392
+ */
393
+ deleteAutomation(siteId: string, id: string, expectedRev: number): Promise<void>;
394
+ /** Renames a release (CAS on `rev`); the title is not in `rl1:`, so approvals stand. */
395
+ retitleRelease(siteId: string, id: string, input: {
396
+ expectedRev: number;
397
+ title: string | null;
398
+ }): Promise<Release>;
399
+ /** Lateness (seconds) of release runs that ended since `since`, ascending (`/api/scheduler` p50/p95). */
400
+ releaseLateness(since: string, limit?: number): Promise<number[]>;
401
+ /**
402
+ * "Run now" for a built-in (§13): a run for this minute (`trigger: manual`) and a cursor that
403
+ * points at it, with `nextRunAt` moved to now so the next tick steps it; when the run ends the
404
+ * automation returns to its scheduled `nextRunAt`. One batch, a CAS on `rev`; undefined when the
405
+ * automation is not active, a run is in progress, or this minute already has a run.
406
+ */
407
+ startBuiltinNow(input: {
408
+ automation: Automation;
409
+ now: string;
410
+ }): Promise<string | undefined>;
411
+ /**
412
+ * One bounded `cleanup` step for a site (§11.1, one batch): runs older than 90 days (their
413
+ * findings with them) and terminal releases older than 400 days, at most `limit` of each;
414
+ * finding lists over 200 trimmed; leases left on rows that no longer need them cleared (expired
415
+ * automation leases, terminal releases and runs); and stale open rows closed — agent windows that
416
+ * closed over an hour ago (`missed`), claims never started for a day (`missed`), built-in runs no
417
+ * cursor continues any more (`failed`, `abandoned`). A `running` release keeps its lease: the
418
+ * tick recovers it (§6.3).
419
+ */
420
+ cleanupSite(siteId: string, now: string, options?: {
421
+ limit?: number;
422
+ runDays?: number;
423
+ releaseDays?: number;
424
+ maxFindings?: number;
425
+ }): Promise<{
426
+ counts: Record<string, number>;
427
+ more: boolean;
428
+ }>;
429
+ /**
430
+ * The schedule side of the weekly digest (§11.1), three reads: releases that went live, are due
431
+ * next week, or ended badly this week; nodes in two pending releases; and the latest finished
432
+ * run of each other built-in automation of the site, with its counts.
433
+ */
434
+ digestData(siteId: string, automationId: string, window: {
435
+ from: string;
436
+ now: string;
437
+ to: string;
438
+ }): Promise<{
439
+ releases: {
440
+ id: string;
441
+ title?: string;
442
+ state: ReleaseState;
443
+ section: "published" | "scheduled" | "attention";
444
+ at: string;
445
+ }[];
446
+ overlaps: number;
447
+ automations: {
448
+ id: string;
449
+ name: string;
450
+ job: string;
451
+ counts: Record<string, number>;
452
+ endedAt?: string;
453
+ }[];
454
+ }>;
455
+ /**
456
+ * `schedules.retention` (§5.2, §11.1): runs older than 90 days and terminal releases older than
457
+ * 400 days are deleted, at most `limit` of each per call (audit rows stay).
458
+ */
459
+ applyRetention(now: string, options?: {
460
+ runDays?: number;
461
+ releaseDays?: number;
462
+ limit?: number;
463
+ }): Promise<{
464
+ runs: number;
465
+ releases: number;
466
+ }>;
467
+ }