@lovable.dev/workflows-sdk 0.0.0-dev.34 → 0.0.0-dev.35
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-BQV4Q5g5.js → branch-metadata-w-7hW4aF.js} +1 -1
- package/dist/{context-escapes-D1VYi9Uk.js → context-escapes-D8w0u2Yc.js} +1 -1
- package/dist/{duplicate-ids-DMSb6yoK.js → duplicate-ids-dR3I9XF5.js} +1 -1
- package/dist/{generate-DBk472B5.js → generate-Dp5HYWQL.js} +9 -9
- package/dist/{graph-CMXcTS6h.js → graph-Bd3FU3e-.js} +1 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.js +1 -1
- package/dist/{nested-operations-BAwR1unx.js → nested-operations-7MUZVm9R.js} +1 -1
- package/dist/{operation-descriptions-Dtsd2DyI.js → operation-descriptions-gOPYaS2X.js} +1 -1
- package/dist/{step-metadata-NricLBXO.js → step-metadata-BnMbPyP1.js} +1 -1
- package/dist/vite.js +1 -1
- package/dist/{wait-deadlines-B8Mpbd8R.js → wait-deadlines-B0cUSPBd.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-Bd3FU3e-.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.35";
|
|
6630
6630
|
//#endregion
|
|
6631
6631
|
//#region src/proto/lovable/appworkflows/v1/workflow_manifest_pb.ts
|
|
6632
6632
|
/**
|
|
@@ -6819,15 +6819,15 @@ function serializeSchema(schema, direction, label) {
|
|
|
6819
6819
|
}
|
|
6820
6820
|
}
|
|
6821
6821
|
async function generateManifests(definition, options = {}) {
|
|
6822
|
-
const { extractWorkflowGraph } = await import("./graph-
|
|
6823
|
-
const { findBranchMetadataIssues } = await import("./branch-metadata-
|
|
6824
|
-
const { findWorkflowContextEscapes } = await import("./context-escapes-
|
|
6825
|
-
const { findDuplicateOperationIds } = await import("./duplicate-ids-
|
|
6822
|
+
const { extractWorkflowGraph } = await import("./graph-Bd3FU3e-.js");
|
|
6823
|
+
const { findBranchMetadataIssues } = await import("./branch-metadata-w-7hW4aF.js");
|
|
6824
|
+
const { findWorkflowContextEscapes } = await import("./context-escapes-D8w0u2Yc.js");
|
|
6825
|
+
const { findDuplicateOperationIds } = await import("./duplicate-ids-dR3I9XF5.js");
|
|
6826
6826
|
const { DURABLE_ID_REQUIRED } = await import("./durable-ids-Cx341nJQ.js").then((n) => n.n);
|
|
6827
|
-
const { findNestedDurableOperations } = await import("./nested-operations-
|
|
6828
|
-
const { findOperationDescriptionIssues } = await import("./operation-descriptions-
|
|
6829
|
-
const { findStepMetadataIssues } = await import("./step-metadata-
|
|
6830
|
-
const { findWaitDeadlineIssues } = await import("./wait-deadlines-
|
|
6827
|
+
const { findNestedDurableOperations } = await import("./nested-operations-7MUZVm9R.js");
|
|
6828
|
+
const { findOperationDescriptionIssues } = await import("./operation-descriptions-gOPYaS2X.js");
|
|
6829
|
+
const { findStepMetadataIssues } = await import("./step-metadata-BnMbPyP1.js");
|
|
6830
|
+
const { findWaitDeadlineIssues } = await import("./wait-deadlines-B0cUSPBd.js");
|
|
6831
6831
|
const { WAIT_DEADLINE_REQUIRED } = await import("./wait-deadlines-DpK-Fgnd.js");
|
|
6832
6832
|
const collection = registerWorkflows(definition);
|
|
6833
6833
|
const manifests = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as WorkflowManifestUnknownNodeV1Schema, a as WorkflowManifestGraphEdgeV1Schema, b as create, c as WorkflowManifestLoopNodeV1Schema, d as WorkflowManifestParallelNodeV1Schema, f as WorkflowManifestRepeatedStepV1Schema, g as WorkflowManifestStepNodeV1Schema, h as WorkflowManifestStepExecutionPolicyV1Schema, i as WorkflowManifestBranchNodeV1Schema, l as WorkflowManifestNowNodeV1Schema, m as WorkflowManifestSleepUntilNodeV1Schema, n as WorkflowManifestApproveNodeV1Schema, o as WorkflowManifestGraphNodeV1Schema, p as WorkflowManifestSleepNodeV1Schema, r as WorkflowManifestBranchEdgeV1Schema, s as WorkflowManifestGraphV1Schema, u as WorkflowManifestOrderEdgeV1Schema, v as WorkflowManifestUuidNodeV1Schema, y as WorkflowManifestWaitForEventNodeV1Schema } from "./generate-
|
|
1
|
+
import { _ as WorkflowManifestUnknownNodeV1Schema, a as WorkflowManifestGraphEdgeV1Schema, b as create, c as WorkflowManifestLoopNodeV1Schema, d as WorkflowManifestParallelNodeV1Schema, f as WorkflowManifestRepeatedStepV1Schema, g as WorkflowManifestStepNodeV1Schema, h as WorkflowManifestStepExecutionPolicyV1Schema, i as WorkflowManifestBranchNodeV1Schema, l as WorkflowManifestNowNodeV1Schema, m as WorkflowManifestSleepUntilNodeV1Schema, n as WorkflowManifestApproveNodeV1Schema, o as WorkflowManifestGraphNodeV1Schema, p as WorkflowManifestSleepNodeV1Schema, r as WorkflowManifestBranchEdgeV1Schema, s as WorkflowManifestGraphV1Schema, u as WorkflowManifestOrderEdgeV1Schema, v as WorkflowManifestUuidNodeV1Schema, y as WorkflowManifestWaitForEventNodeV1Schema } from "./generate-Dp5HYWQL.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
|
@@ -90,6 +90,34 @@ type WorkflowStepMetadata = WorkflowOperationMetadata & {
|
|
|
90
90
|
group?: WorkflowStepGroup;
|
|
91
91
|
};
|
|
92
92
|
//#endregion
|
|
93
|
+
//#region src/core/llm.d.ts
|
|
94
|
+
type LlmRequest = {
|
|
95
|
+
model: string;
|
|
96
|
+
system?: string;
|
|
97
|
+
maxTokens?: number;
|
|
98
|
+
} & ({
|
|
99
|
+
prompt: string;
|
|
100
|
+
messages?: never;
|
|
101
|
+
} | {
|
|
102
|
+
prompt?: never;
|
|
103
|
+
messages: {
|
|
104
|
+
role: "user" | "assistant";
|
|
105
|
+
content: string;
|
|
106
|
+
}[];
|
|
107
|
+
});
|
|
108
|
+
interface LlmStepOptions {
|
|
109
|
+
id: string;
|
|
110
|
+
meta: WorkflowStepMetadata;
|
|
111
|
+
timeout?: number;
|
|
112
|
+
retry?: {
|
|
113
|
+
maxAttempts: number;
|
|
114
|
+
backoff?: "fixed" | "exponential";
|
|
115
|
+
baseMs?: number;
|
|
116
|
+
shouldRetry?: never;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
type LlmStep = (request: LlmRequest, options: LlmStepOptions) => Promise<string>;
|
|
120
|
+
//#endregion
|
|
93
121
|
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@bufbuild/protobuf/2.10.1/b0955b226816adda68977638196f96a6e65cec2605734621338f49f7ea29042e/node_modules/@bufbuild/protobuf/dist/esm/json-value.d.ts
|
|
94
122
|
/**
|
|
95
123
|
* Represents any possible JSON value:
|
|
@@ -865,4 +893,4 @@ declare function createStepsHandler(collection: WorkflowCollection, options?: St
|
|
|
865
893
|
*/
|
|
866
894
|
declare function toServerSentEventsResponse(events: AsyncIterable<WorkflowEvent>): Response;
|
|
867
895
|
//#endregion
|
|
868
|
-
export { type AnyWorkflowDefinition, type ApproveOptions, type Cadence, type Ctx, type MemoEntry, type OverlapPolicy, type ReplayOutcome, type ResolvedSchedule, type ResolvedTrigger, type ScheduleDefinition, type StepContext, type StepIntent, type StepKind, type StepOptions, type StepReference, type StepResult, type StepsDisposition, type StepsHandler, type StepsHandlerOptions, type StepsRequest, type StepsResponse, type TanStackWorkflowHandler, type TanStackWorkflowHandlerOptions, type TriggerDefinition, type WaitForEventOptions, type Weekday, type WorkflowBranchMetadata, type WorkflowCollection, type WorkflowDefinition, type WorkflowInput, type WorkflowManifest, type WorkflowOperationMetadata, type WorkflowOutput, type WorkflowState, type WorkflowStepGroup, type WorkflowStepMetadata, type WorkflowsDefinition, createMiddleware, createStepsHandler, createTanStackWorkflowHandler, createWorkflow, daily, defineSchedule, generateManifests, hourly, registerWorkflows, toServerSentEventsResponse, weekly };
|
|
896
|
+
export { type AnyWorkflowDefinition, type ApproveOptions, type Cadence, type Ctx, type LlmRequest, type LlmStep, type LlmStepOptions, type MemoEntry, type OverlapPolicy, type ReplayOutcome, type ResolvedSchedule, type ResolvedTrigger, type ScheduleDefinition, type StepContext, type StepIntent, type StepKind, type StepOptions, type StepReference, type StepResult, type StepsDisposition, type StepsHandler, type StepsHandlerOptions, type StepsRequest, type StepsResponse, type TanStackWorkflowHandler, type TanStackWorkflowHandlerOptions, type TriggerDefinition, type WaitForEventOptions, type Weekday, type WorkflowBranchMetadata, type WorkflowCollection, type WorkflowDefinition, type WorkflowInput, type WorkflowManifest, type WorkflowOperationMetadata, type WorkflowOutput, type WorkflowState, type WorkflowStepGroup, type WorkflowStepMetadata, type WorkflowsDefinition, createMiddleware, createStepsHandler, createTanStackWorkflowHandler, createWorkflow, daily, defineSchedule, generateManifests, hourly, registerWorkflows, toServerSentEventsResponse, weekly };
|
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 registerWorkflows, D as hourly, E as daily, O as weekly, S as createWorkflow, T as defineSchedule, t as generateManifests, w as workflowVersions, x as createMiddleware } from "./generate-
|
|
2
|
+
import { C as registerWorkflows, D as hourly, E as daily, O as weekly, S as createWorkflow, T as defineSchedule, t as generateManifests, w as workflowVersions, x as createMiddleware } from "./generate-Dp5HYWQL.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-Bd3FU3e-.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-Dp5HYWQL.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";
|