@lovable.dev/workflows-sdk 0.0.0-dev.25 → 0.0.0-dev.27

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.
package/README.md CHANGED
@@ -95,13 +95,13 @@ schedules; Lovable execution is not available yet.
95
95
 
96
96
  ```ts
97
97
  const morning = defineSchedule({
98
- id: "morning-digest", workflow: digest, cadence: daily({ at: 9 }), timeZone: "Europe/Stockholm", input: {},
98
+ id: "morning-digest", workflow: digest, cadence: daily({ at: [9] }), timeZone: "Europe/Stockholm", input: {},
99
99
  });
100
100
  ```
101
101
 
102
102
  | Field | Default | Meaning |
103
103
  | --- | --- | --- |
104
- | `cadence` | — | `hourly()`, `daily()`, or `weekly()` |
104
+ | `cadence` | — | `hourly()`, `daily({ at })`, or `weekly({ on, at })` |
105
105
  | `timeZone` | — | Canonical IANA region name |
106
106
  | `overlapPolicy` | `"skip"` | `skip`, `allow`, or `buffer-one` |
107
107
  | `enabled` | `true` | `false` declares a paused schedule |
@@ -110,13 +110,14 @@ const morning = defineSchedule({
110
110
  | --- | --- |
111
111
  | Hourly | `hourly()` |
112
112
  | Selected hours | `daily({ at: [0, 6, 12, 18] })` |
113
- | Selected weekdays | `daily({ at: 9, days: ["mon", "tue", "wed", "thu", "fri"] })` |
114
- | Weekly | `weekly({ on: "monday", at: 7 })` |
115
-
116
- Hours are whole numbers from 0 through 23; schedules do not accept minute or
117
- raw-cron fields. `timeZone` is required and accepts `"UTC"` or a canonical IANA
118
- region such as `"America/New_York"`. A scheduled hour is approximate: Lovable
119
- chooses a stable offset within the corresponding scheduling window.
113
+ | Weekly | `weekly({ on: ["mon", "fri"], at: [0, 12] })` |
114
+
115
+ `daily` requires a non-empty `at` list. `weekly` requires non-empty `on` and
116
+ `at` lists and runs at every selected hour on every selected weekday. Hours are
117
+ whole numbers from 0 through 23; schedules do not accept minute or raw-cron
118
+ fields. `timeZone` is required and accepts `"UTC"` or a canonical IANA region
119
+ such as `"America/New_York"`. A scheduled hour is approximate: Lovable chooses
120
+ a stable offset within the corresponding scheduling window.
120
121
 
121
122
  `overlapPolicy` controls what happens when a schedule becomes due while its
122
123
  previous run is active. `skip` drops it, `allow` starts another run, and
@@ -1,4 +1,4 @@
1
- import { loadTypeScript, t as workflowHandlerSource } from "./graph-Qx9mvqnC.js";
1
+ import { loadTypeScript, t as workflowHandlerSource } from "./graph-CVgB49lW.js";
2
2
  //#region src/manifests/branch-metadata.ts
3
3
  const optionsArgument = {
4
4
  step: 2,
@@ -1,4 +1,4 @@
1
- import { loadTypeScript, t as workflowHandlerSource } from "./graph-Qx9mvqnC.js";
1
+ import { loadTypeScript, t as workflowHandlerSource } from "./graph-CVgB49lW.js";
2
2
  //#region src/manifests/context-escapes.ts
3
3
  const durableMethods = /* @__PURE__ */ new Set([
4
4
  "step",
@@ -1,5 +1,5 @@
1
1
  import { t as defaultDurableId } from "./durable-ids-LsygHSZC.js";
2
- import { loadTypeScript, t as workflowHandlerSource } from "./graph-Qx9mvqnC.js";
2
+ import { loadTypeScript, t as workflowHandlerSource } from "./graph-CVgB49lW.js";
3
3
  //#region src/manifests/duplicate-ids.ts
4
4
  /** Where an explicit `{ id }` would sit for each operation. */
5
5
  const optionsArgument = {