@lovable.dev/workflows-sdk 0.0.0-dev.26 → 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 +10 -9
- package/dist/{branch-metadata-IXuazOmY.js → branch-metadata-Bv-K2WAN.js} +1 -1
- package/dist/{context-escapes-x0J0HUgC.js → context-escapes-BXC37F36.js} +1 -1
- package/dist/{duplicate-ids-NnTrnieX.js → duplicate-ids-Dv2ICco3.js} +1 -1
- package/dist/generate-Dgj2-55O.js +6893 -0
- package/dist/{graph-Qx9mvqnC.js → graph-CVgB49lW.js} +93 -81
- package/dist/index.d.ts +566 -124
- package/dist/index.js +1 -1
- package/dist/{nested-operations-DYVa5c5A.js → nested-operations-QZiiJCxT.js} +1 -1
- package/dist/{operation-descriptions-BLZC8bxV.js → operation-descriptions-CJxYUpLf.js} +1 -1
- package/dist/{step-metadata-MjyYQjOy.js → step-metadata-DelsyoE1.js} +1 -1
- package/dist/vite.js +3 -3
- package/package.json +2 -1
- package/dist/generate-DHIXkk21.js +0 -287
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
|
-
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { t as defaultDurableId } from "./durable-ids-LsygHSZC.js";
|
|
2
|
-
import { loadTypeScript, t as workflowHandlerSource } from "./graph-
|
|
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 = {
|