@lovable.dev/workflows-sdk 0.0.0-dev.40 → 0.0.0-dev.41
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/dist/{branch-metadata-7KoYCvVR.js → branch-metadata-Dn9nWm_O.js} +1 -1
- package/dist/{context-escapes-5F9gQw59.js → context-escapes-69yGyOSh.js} +1 -1
- package/dist/{duplicate-ids-CJTxhI0b.js → duplicate-ids-CmriLAEL.js} +1 -1
- package/dist/{generate-Bv_Ep6yM.js → generate-BIqGbMQO.js} +9 -9
- package/dist/{graph-oG4uFJ0o.js → graph-Ci7cGckB.js} +1 -1
- package/dist/index.d.ts +17 -10
- package/dist/index.js +1 -1
- package/dist/{nested-operations-CiJJpl5w.js → nested-operations-U4dIYtHD.js} +1 -1
- package/dist/{operation-descriptions-CARt7Myx.js → operation-descriptions-cvXBWh9o.js} +1 -1
- package/dist/{step-metadata-CdZSDCpP.js → step-metadata-BJmAeyfB.js} +1 -1
- package/dist/vite.js +1 -1
- package/dist/{wait-deadlines-DTUJbmVC.js → wait-deadlines-CkYmNhXT.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadTypeScript, t as workflowHandlerSource } from "./graph-
|
|
1
|
+
import { loadTypeScript, t as workflowHandlerSource } from "./graph-Ci7cGckB.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.41";
|
|
6630
6630
|
//#endregion
|
|
6631
6631
|
//#region src/proto/lovable/appworkflows/v1/workflow_manifest_pb.ts
|
|
6632
6632
|
/**
|
|
@@ -6824,15 +6824,15 @@ function serializeSchema(schema, direction, label) {
|
|
|
6824
6824
|
}
|
|
6825
6825
|
}
|
|
6826
6826
|
async function generateManifests(definition, options = {}) {
|
|
6827
|
-
const { extractWorkflowGraph } = await import("./graph-
|
|
6828
|
-
const { findBranchMetadataIssues } = await import("./branch-metadata-
|
|
6829
|
-
const { findWorkflowContextEscapes } = await import("./context-escapes-
|
|
6830
|
-
const { findDuplicateOperationIds } = await import("./duplicate-ids-
|
|
6827
|
+
const { extractWorkflowGraph } = await import("./graph-Ci7cGckB.js");
|
|
6828
|
+
const { findBranchMetadataIssues } = await import("./branch-metadata-Dn9nWm_O.js");
|
|
6829
|
+
const { findWorkflowContextEscapes } = await import("./context-escapes-69yGyOSh.js");
|
|
6830
|
+
const { findDuplicateOperationIds } = await import("./duplicate-ids-CmriLAEL.js");
|
|
6831
6831
|
const { DURABLE_ID_REQUIRED } = await import("./durable-ids-Cx341nJQ.js").then((n) => n.n);
|
|
6832
|
-
const { findNestedDurableOperations } = await import("./nested-operations-
|
|
6833
|
-
const { findOperationDescriptionIssues } = await import("./operation-descriptions-
|
|
6834
|
-
const { findStepMetadataIssues } = await import("./step-metadata-
|
|
6835
|
-
const { findWaitDeadlineIssues } = await import("./wait-deadlines-
|
|
6832
|
+
const { findNestedDurableOperations } = await import("./nested-operations-U4dIYtHD.js");
|
|
6833
|
+
const { findOperationDescriptionIssues } = await import("./operation-descriptions-cvXBWh9o.js");
|
|
6834
|
+
const { findStepMetadataIssues } = await import("./step-metadata-BJmAeyfB.js");
|
|
6835
|
+
const { findWaitDeadlineIssues } = await import("./wait-deadlines-CkYmNhXT.js");
|
|
6836
6836
|
const { WAIT_DEADLINE_REQUIRED } = await import("./wait-deadlines-DpK-Fgnd.js");
|
|
6837
6837
|
const collection = registerWorkflows(definition);
|
|
6838
6838
|
const manifests = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as WorkflowManifestStepNodeV1Schema, a as WorkflowManifestGraphEdgeV1Schema, b as WorkflowManifestWaitForEventNodeV1Schema, c as WorkflowManifestLlmNodeV1Schema, d as WorkflowManifestOrderEdgeV1Schema, f as WorkflowManifestParallelNodeV1Schema, g as WorkflowManifestStepExecutionPolicyV1Schema, h as WorkflowManifestSleepUntilNodeV1Schema, i as WorkflowManifestBranchNodeV1Schema, l as WorkflowManifestLoopNodeV1Schema, m as WorkflowManifestSleepNodeV1Schema, n as WorkflowManifestApproveNodeV1Schema, o as WorkflowManifestGraphNodeV1Schema, p as WorkflowManifestRepeatedStepV1Schema, r as WorkflowManifestBranchEdgeV1Schema, s as WorkflowManifestGraphV1Schema, u as WorkflowManifestNowNodeV1Schema, v as WorkflowManifestUnknownNodeV1Schema, x as create, y as WorkflowManifestUuidNodeV1Schema } from "./generate-
|
|
1
|
+
import { _ as WorkflowManifestStepNodeV1Schema, a as WorkflowManifestGraphEdgeV1Schema, b as WorkflowManifestWaitForEventNodeV1Schema, c as WorkflowManifestLlmNodeV1Schema, d as WorkflowManifestOrderEdgeV1Schema, f as WorkflowManifestParallelNodeV1Schema, g as WorkflowManifestStepExecutionPolicyV1Schema, h as WorkflowManifestSleepUntilNodeV1Schema, i as WorkflowManifestBranchNodeV1Schema, l as WorkflowManifestLoopNodeV1Schema, m as WorkflowManifestSleepNodeV1Schema, n as WorkflowManifestApproveNodeV1Schema, o as WorkflowManifestGraphNodeV1Schema, p as WorkflowManifestRepeatedStepV1Schema, r as WorkflowManifestBranchEdgeV1Schema, s as WorkflowManifestGraphV1Schema, u as WorkflowManifestNowNodeV1Schema, v as WorkflowManifestUnknownNodeV1Schema, x as create, y as WorkflowManifestUuidNodeV1Schema } from "./generate-BIqGbMQO.js";
|
|
2
2
|
//#region src/manifests/handler-source.ts
|
|
3
3
|
const nativeFunctionSource = /\{\s*\[native code\]\s*\}\s*$/;
|
|
4
4
|
function workflowHandlerSource(handler) {
|
package/dist/index.d.ts
CHANGED
|
@@ -876,25 +876,29 @@ interface MemoEntry {
|
|
|
876
876
|
interface StepIntentBase {
|
|
877
877
|
seq: number;
|
|
878
878
|
stepId: string;
|
|
879
|
-
/** Kind-specific detail: sleep `ms`, `waitForEvent` name, approval title. */
|
|
880
|
-
config?: Record<string, unknown>;
|
|
881
879
|
meta?: WorkflowMetadata;
|
|
882
880
|
}
|
|
883
881
|
/** A durable operation the replay reached but could not answer. */
|
|
884
882
|
type StepIntent = StepIntentBase & {
|
|
885
|
-
kind: Exclude<StepKind, "llm">;
|
|
886
883
|
disposition?: never;
|
|
887
884
|
external?: never;
|
|
888
|
-
}
|
|
885
|
+
} & ({
|
|
886
|
+
kind: Exclude<StepKind, "llm">;
|
|
887
|
+
/** Kind-specific detail: sleep `ms`, `waitForEvent` name, approval title. */
|
|
888
|
+
config?: Record<string, unknown>;
|
|
889
|
+
} | {
|
|
890
|
+
kind: "llm";
|
|
891
|
+
config?: never;
|
|
892
|
+
});
|
|
889
893
|
type ExternalOperation = Required<WorkflowExternalOperationV1Json> & {
|
|
890
894
|
aiGateway: LlmRequest;
|
|
891
895
|
};
|
|
892
|
-
type ExternalStep =
|
|
896
|
+
type ExternalStep = StepIntentBase & {
|
|
893
897
|
kind: "llm";
|
|
894
898
|
disposition: "external";
|
|
895
899
|
external: ExternalOperation;
|
|
896
900
|
};
|
|
897
|
-
type NextStep = StepIntent
|
|
901
|
+
type NextStep = StepIntent;
|
|
898
902
|
interface StepResult<K extends StepKind = StepKind> {
|
|
899
903
|
seq: number;
|
|
900
904
|
stepId: string;
|
|
@@ -922,7 +926,7 @@ interface ReplayOutcome {
|
|
|
922
926
|
error?: string;
|
|
923
927
|
}
|
|
924
928
|
interface StepReference {
|
|
925
|
-
kind: "step";
|
|
929
|
+
kind: "step" | "llm";
|
|
926
930
|
stepId: string;
|
|
927
931
|
}
|
|
928
932
|
//#endregion
|
|
@@ -960,9 +964,7 @@ interface StepsResponseBase {
|
|
|
960
964
|
workflowVersion: string;
|
|
961
965
|
runId: string;
|
|
962
966
|
inputHash: string;
|
|
963
|
-
memoDelta: MemoEntry[];
|
|
964
967
|
next: NextStep[];
|
|
965
|
-
executed?: StepResult<"step">;
|
|
966
968
|
emitted?: {
|
|
967
969
|
name: string;
|
|
968
970
|
value: Record<string, unknown>;
|
|
@@ -972,8 +974,13 @@ interface StepsResponseBase {
|
|
|
972
974
|
}
|
|
973
975
|
type StepsResponse = StepsResponseBase & ({
|
|
974
976
|
disposition: Exclude<StepsDisposition, "external">;
|
|
977
|
+
memoDelta: MemoEntry[];
|
|
978
|
+
executed?: StepResult<"step">;
|
|
975
979
|
external?: never;
|
|
976
|
-
} | ExternalStep
|
|
980
|
+
} | (ExternalStep & {
|
|
981
|
+
memoDelta: [];
|
|
982
|
+
executed?: never;
|
|
983
|
+
}));
|
|
977
984
|
declare function createStepsHandler(collection: WorkflowCollection, options?: StepsHandlerOptions): StepsHandler;
|
|
978
985
|
//#endregion
|
|
979
986
|
//#region src/stacks/tanstack/sse.d.ts
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as DURABLE_ID_REQUIRED } from "./durable-ids-Cx341nJQ.js";
|
|
2
|
-
import { C as createWorkflow, D as daily, E as defineSchedule, O as hourly, S as createMiddleware, T as workflowVersions, k as weekly, t as generateManifests, w as registerWorkflows } from "./generate-
|
|
2
|
+
import { C as createWorkflow, D as daily, E as defineSchedule, O as hourly, S as createMiddleware, T as workflowVersions, k as weekly, t as generateManifests, w as registerWorkflows } from "./generate-BIqGbMQO.js";
|
|
3
3
|
import { WorkflowRequestParseError, inMemoryRunStore, parseWorkflowRequest, runWorkflow } from "@tanstack/workflow-core";
|
|
4
4
|
//#region src/stacks/tanstack/sse.ts
|
|
5
5
|
const HEADERS = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadTypeScript, t as workflowHandlerSource } from "./graph-
|
|
1
|
+
import { loadTypeScript, t as workflowHandlerSource } from "./graph-Ci7cGckB.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-BIqGbMQO.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";
|