@lovable.dev/workflows-sdk 0.0.0-dev.54 → 0.0.0-dev.55
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 +11 -4
- package/dist/{branch-metadata-C7zbyVoJ.js → branch-metadata-DwHXcGhW.js} +1 -1
- package/dist/{context-escapes-CKZic0A-.js → context-escapes-DXcshuq_.js} +1 -1
- package/dist/{duplicate-ids-BwttKNnU.js → duplicate-ids-CjHjQ-8X.js} +1 -1
- package/dist/{generate--cMBfJhd.js → generate-DOuPyG-r.js} +9 -9
- package/dist/{graph-C1rydF9J.js → graph-B8nm_0lL.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{nested-operations-DRadcW5J.js → nested-operations-BV4UlbjT.js} +1 -1
- package/dist/{operation-descriptions-YSRFtN5C.js → operation-descriptions-Cx_MM5Np.js} +1 -1
- package/dist/{step-metadata-BMUvomJ7.js → step-metadata-DbjEAD0E.js} +1 -1
- package/dist/vite.js +1 -1
- package/dist/{wait-deadlines-DetLq7Zp.js → wait-deadlines-DE0s1vnw.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -230,8 +230,10 @@ meta: {
|
|
|
230
230
|
|
|
231
231
|
Declare schedules with `defineSchedule({ id, workflow, cadence, timeZone,
|
|
232
232
|
input })` and include them in the collection's `triggers`. The workflow must be
|
|
233
|
-
part of the same collection, and schedule IDs must be unique.
|
|
234
|
-
|
|
233
|
+
part of the same collection, and schedule IDs must be unique. Schedules run on
|
|
234
|
+
the published app only: publishing registers them, and the preview never runs
|
|
235
|
+
them. Each publish replaces the app's schedules with the ones its workflows
|
|
236
|
+
declare.
|
|
235
237
|
|
|
236
238
|
```ts
|
|
237
239
|
const morning = defineSchedule({
|
|
@@ -256,12 +258,17 @@ const morning = defineSchedule({
|
|
|
256
258
|
`at` lists and runs at every selected hour on every selected weekday. Hours are
|
|
257
259
|
whole numbers from 0 through 23; schedules do not accept minute or raw-cron
|
|
258
260
|
fields. `timeZone` is required and accepts `"UTC"` or a canonical IANA region
|
|
259
|
-
such as `"America/New_York"`. A
|
|
260
|
-
|
|
261
|
+
such as `"America/New_York"`. A run starts at a fixed offset of 0 to 3599
|
|
262
|
+
seconds after its scheduled hour. Lovable picks the offset for each schedule
|
|
263
|
+
and keeps it, so `daily({ at: [9] })` starts at the same time between 09:00 and
|
|
264
|
+
09:59 every day.
|
|
261
265
|
|
|
262
266
|
`overlapPolicy` controls what happens when a schedule becomes due while its
|
|
263
267
|
previous run is active. `skip` drops it, `allow` starts another run, and
|
|
264
268
|
`buffer-one` starts the earliest missed run after the active run finishes.
|
|
269
|
+
Lovable supports only `skip` today. If any schedule of a workflow declares
|
|
270
|
+
`allow` or `buffer-one`, publishing registers none of that workflow's
|
|
271
|
+
schedules.
|
|
265
272
|
|
|
266
273
|
## Build integration
|
|
267
274
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadTypeScript, t as workflowHandlerSource } from "./graph-
|
|
1
|
+
import { loadTypeScript, t as workflowHandlerSource } from "./graph-B8nm_0lL.js";
|
|
2
2
|
//#region src/manifests/duplicate-ids.ts
|
|
3
3
|
/** Where an explicit `{ id }` would sit for each operation. */
|
|
4
4
|
const optionsArgument = {
|
|
@@ -6626,7 +6626,7 @@ function listValueFromJson(listValue, json) {
|
|
|
6626
6626
|
}
|
|
6627
6627
|
//#endregion
|
|
6628
6628
|
//#region package.json
|
|
6629
|
-
var version = "0.0.0-dev.
|
|
6629
|
+
var version = "0.0.0-dev.55";
|
|
6630
6630
|
//#endregion
|
|
6631
6631
|
//#region src/proto/lovable/appworkflows/v1/workflow_manifest_pb.ts
|
|
6632
6632
|
/**
|
|
@@ -6839,15 +6839,15 @@ function serializeSchema(schema, direction, label) {
|
|
|
6839
6839
|
}
|
|
6840
6840
|
}
|
|
6841
6841
|
async function generateManifests(definition, options = {}) {
|
|
6842
|
-
const { extractWorkflowGraph } = await import("./graph-
|
|
6843
|
-
const { findBranchMetadataIssues } = await import("./branch-metadata-
|
|
6844
|
-
const { findWorkflowContextEscapes } = await import("./context-escapes-
|
|
6845
|
-
const { findDuplicateOperationIds } = await import("./duplicate-ids-
|
|
6842
|
+
const { extractWorkflowGraph } = await import("./graph-B8nm_0lL.js");
|
|
6843
|
+
const { findBranchMetadataIssues } = await import("./branch-metadata-DwHXcGhW.js");
|
|
6844
|
+
const { findWorkflowContextEscapes } = await import("./context-escapes-DXcshuq_.js");
|
|
6845
|
+
const { findDuplicateOperationIds } = await import("./duplicate-ids-CjHjQ-8X.js");
|
|
6846
6846
|
const { DURABLE_ID_REQUIRED } = await import("./durable-ids-Cx341nJQ.js").then((n) => n.n);
|
|
6847
|
-
const { findNestedDurableOperations } = await import("./nested-operations-
|
|
6848
|
-
const { findOperationDescriptionIssues } = await import("./operation-descriptions-
|
|
6849
|
-
const { findStepMetadataIssues } = await import("./step-metadata-
|
|
6850
|
-
const { findWaitDeadlineIssues } = await import("./wait-deadlines-
|
|
6847
|
+
const { findNestedDurableOperations } = await import("./nested-operations-BV4UlbjT.js");
|
|
6848
|
+
const { findOperationDescriptionIssues } = await import("./operation-descriptions-Cx_MM5Np.js");
|
|
6849
|
+
const { findStepMetadataIssues } = await import("./step-metadata-DbjEAD0E.js");
|
|
6850
|
+
const { findWaitDeadlineIssues } = await import("./wait-deadlines-DE0s1vnw.js");
|
|
6851
6851
|
const { WAIT_DEADLINE_REQUIRED } = await import("./wait-deadlines-DpK-Fgnd.js");
|
|
6852
6852
|
const collection = registerWorkflows(definition);
|
|
6853
6853
|
const manifests = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as WorkflowManifestWaitForEventNodeV1Schema, S as WorkflowManifestUuidNodeV1Schema, _ as WorkflowManifestSleepNodeV1Schema, a as WorkflowManifestConnectorNodeV1Schema, b as WorkflowManifestStepNodeV1Schema, c as WorkflowManifestGraphV1Schema, d as WorkflowManifestNowNodeV1Schema, f as WorkflowManifestOrderEdgeV1Schema, g as WorkflowManifestRepeatedStepV1Schema, h as WorkflowManifestRepeatedLlmV1Schema, i as WorkflowManifestBranchNodeV1Schema, l as WorkflowManifestLlmNodeV1Schema, m as WorkflowManifestRepeatedConnectorV1Schema, n as WorkflowManifestApproveNodeV1Schema, o as WorkflowManifestGraphEdgeV1Schema, p as WorkflowManifestParallelNodeV1Schema, r as WorkflowManifestBranchEdgeV1Schema, s as WorkflowManifestGraphNodeV1Schema, u as WorkflowManifestLoopNodeV1Schema, v as WorkflowManifestSleepUntilNodeV1Schema, w as create, x as WorkflowManifestUnknownNodeV1Schema, y as WorkflowManifestStepExecutionPolicyV1Schema } from "./generate
|
|
1
|
+
import { C as WorkflowManifestWaitForEventNodeV1Schema, S as WorkflowManifestUuidNodeV1Schema, _ as WorkflowManifestSleepNodeV1Schema, a as WorkflowManifestConnectorNodeV1Schema, b as WorkflowManifestStepNodeV1Schema, c as WorkflowManifestGraphV1Schema, d as WorkflowManifestNowNodeV1Schema, f as WorkflowManifestOrderEdgeV1Schema, g as WorkflowManifestRepeatedStepV1Schema, h as WorkflowManifestRepeatedLlmV1Schema, i as WorkflowManifestBranchNodeV1Schema, l as WorkflowManifestLlmNodeV1Schema, m as WorkflowManifestRepeatedConnectorV1Schema, n as WorkflowManifestApproveNodeV1Schema, o as WorkflowManifestGraphEdgeV1Schema, p as WorkflowManifestParallelNodeV1Schema, r as WorkflowManifestBranchEdgeV1Schema, s as WorkflowManifestGraphNodeV1Schema, u as WorkflowManifestLoopNodeV1Schema, v as WorkflowManifestSleepUntilNodeV1Schema, w as create, x as WorkflowManifestUnknownNodeV1Schema, y as WorkflowManifestStepExecutionPolicyV1Schema } from "./generate-DOuPyG-r.js";
|
|
2
2
|
import { n as assertLlmOptions, t as assertLlmModel } from "./llm-validation-DdDO6csU.js";
|
|
3
3
|
//#region src/manifests/handler-source.ts
|
|
4
4
|
const nativeFunctionSource = /\{\s*\[native code\]\s*\}\s*$/;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as DURABLE_ID_REQUIRED } from "./durable-ids-Cx341nJQ.js";
|
|
2
|
-
import { A as daily, D as registerWorkflows, E as createWorkflow, M as weekly, O as workflowVersions, T as createMiddleware, j as hourly, k as defineSchedule, t as generateManifests } from "./generate
|
|
2
|
+
import { A as daily, D as registerWorkflows, E as createWorkflow, M as weekly, O as workflowVersions, T as createMiddleware, j as hourly, k as defineSchedule, t as generateManifests } from "./generate-DOuPyG-r.js";
|
|
3
3
|
import { n as assertLlmOptions, r as assertLlmRequest } from "./llm-validation-DdDO6csU.js";
|
|
4
4
|
import { WorkflowRequestParseError, inMemoryRunStore, parseWorkflowRequest, runWorkflow } from "@tanstack/workflow-core";
|
|
5
5
|
import { generateChatCompletion, generateMessage } from "@lovable.dev/ai-gateway";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadTypeScript, t as workflowHandlerSource } from "./graph-
|
|
1
|
+
import { loadTypeScript, t as workflowHandlerSource } from "./graph-B8nm_0lL.js";
|
|
2
2
|
//#region src/manifests/step-metadata.ts
|
|
3
3
|
async function findStepMetadataIssues(handler) {
|
|
4
4
|
const api = await loadTypeScript();
|
package/dist/vite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as generateManifests } from "./generate
|
|
1
|
+
import { t as generateManifests } from "./generate-DOuPyG-r.js";
|
|
2
2
|
import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
3
3
|
import { createServer } from "vite";
|
|
4
4
|
import { lstat, mkdir, mkdtemp, readdir, rename, rm, writeFile } from "node:fs/promises";
|