@lovable.dev/workflows-sdk 0.0.0-dev.57 → 0.0.0-dev.58
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-11JARM_f.js → branch-metadata-DR6L1610.js} +1 -1
- package/dist/{context-escapes-CCFe2Xly.js → context-escapes-DhO7d5UB.js} +1 -1
- package/dist/{duplicate-ids-C-UQFcg0.js → duplicate-ids-C3J0tTFi.js} +1 -1
- package/dist/{generate-CzKPbFyR.js → generate-sHCzFBzN.js} +9 -9
- package/dist/{graph-qDFxy3v5.js → graph-DNM6HACw.js} +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -3
- package/dist/{nested-operations-CrF-T-F3.js → nested-operations-DroMYJeg.js} +1 -1
- package/dist/{operation-descriptions-YWlxdFR4.js → operation-descriptions-CA9zrZ3y.js} +1 -1
- package/dist/{step-metadata-C2Gq6_oU.js → step-metadata-BsrM_6XU.js} +1 -1
- package/dist/vite.js +1 -1
- package/dist/{wait-deadlines-DjYbGO09.js → wait-deadlines-9IpZV-qZ.js} +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadTypeScript, t as workflowHandlerSource } from "./graph-
|
|
1
|
+
import { loadTypeScript, t as workflowHandlerSource } from "./graph-DNM6HACw.js";
|
|
2
2
|
//#region src/manifests/duplicate-ids.ts
|
|
3
3
|
/** Where an explicit `{ id }` would sit for each operation. */
|
|
4
4
|
const optionsArgument = {
|
|
@@ -6644,7 +6644,7 @@ function listValueFromJson(listValue, json) {
|
|
|
6644
6644
|
}
|
|
6645
6645
|
//#endregion
|
|
6646
6646
|
//#region package.json
|
|
6647
|
-
var version = "0.0.0-dev.
|
|
6647
|
+
var version = "0.0.0-dev.58";
|
|
6648
6648
|
//#endregion
|
|
6649
6649
|
//#region src/proto/lovable/appworkflows/v1/workflow_manifest_pb.ts
|
|
6650
6650
|
/**
|
|
@@ -6866,15 +6866,15 @@ function serializeSchema(schema, direction, label) {
|
|
|
6866
6866
|
}
|
|
6867
6867
|
}
|
|
6868
6868
|
async function generateManifests(definition, options = {}) {
|
|
6869
|
-
const { extractWorkflowGraph } = await import("./graph-
|
|
6870
|
-
const { findBranchMetadataIssues } = await import("./branch-metadata-
|
|
6871
|
-
const { findWorkflowContextEscapes } = await import("./context-escapes-
|
|
6872
|
-
const { findDuplicateOperationIds } = await import("./duplicate-ids-
|
|
6869
|
+
const { extractWorkflowGraph } = await import("./graph-DNM6HACw.js");
|
|
6870
|
+
const { findBranchMetadataIssues } = await import("./branch-metadata-DR6L1610.js");
|
|
6871
|
+
const { findWorkflowContextEscapes } = await import("./context-escapes-DhO7d5UB.js");
|
|
6872
|
+
const { findDuplicateOperationIds } = await import("./duplicate-ids-C3J0tTFi.js");
|
|
6873
6873
|
const { DURABLE_ID_REQUIRED } = await import("./durable-ids-Cx341nJQ.js").then((n) => n.n);
|
|
6874
|
-
const { findNestedDurableOperations } = await import("./nested-operations-
|
|
6875
|
-
const { findOperationDescriptionIssues } = await import("./operation-descriptions-
|
|
6876
|
-
const { findStepMetadataIssues } = await import("./step-metadata-
|
|
6877
|
-
const { findWaitDeadlineIssues } = await import("./wait-deadlines-
|
|
6874
|
+
const { findNestedDurableOperations } = await import("./nested-operations-DroMYJeg.js");
|
|
6875
|
+
const { findOperationDescriptionIssues } = await import("./operation-descriptions-CA9zrZ3y.js");
|
|
6876
|
+
const { findStepMetadataIssues } = await import("./step-metadata-BsrM_6XU.js");
|
|
6877
|
+
const { findWaitDeadlineIssues } = await import("./wait-deadlines-9IpZV-qZ.js");
|
|
6878
6878
|
const { WAIT_DEADLINE_REQUIRED } = await import("./wait-deadlines-DpK-Fgnd.js");
|
|
6879
6879
|
const collection = registerWorkflows(definition);
|
|
6880
6880
|
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-sHCzFBzN.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.d.ts
CHANGED
|
@@ -1014,9 +1014,12 @@ interface StepsRequestBase {
|
|
|
1014
1014
|
type StepsRequest = StepsRequestBase & ({
|
|
1015
1015
|
action?: "advance";
|
|
1016
1016
|
step?: never;
|
|
1017
|
+
/** Name the one ready step and run nothing; the caller then runs it with `execute`. */
|
|
1018
|
+
describe?: boolean;
|
|
1017
1019
|
} | {
|
|
1018
1020
|
action: "execute";
|
|
1019
1021
|
step: StepReference;
|
|
1022
|
+
describe?: never;
|
|
1020
1023
|
});
|
|
1021
1024
|
type StepsDisposition = "advanced" | "fork" | "waiting" | "completed" | "failed";
|
|
1022
1025
|
interface StepsResponse {
|
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 hourly, N as weekly, O as workflowVersions, P as WORKFLOW_ID_PATTERN, T as createMiddleware, j as every, k as defineSchedule, t as generateManifests } from "./generate-
|
|
2
|
+
import { A as daily, D as registerWorkflows, E as createWorkflow, M as hourly, N as weekly, O as workflowVersions, P as WORKFLOW_ID_PATTERN, T as createMiddleware, j as every, k as defineSchedule, t as generateManifests } from "./generate-sHCzFBzN.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";
|
|
@@ -654,6 +654,7 @@ function parseBody(value) {
|
|
|
654
654
|
if (body.action !== void 0 && body.action !== "advance" && body.action !== "execute") return "action must be \"advance\" or \"execute\"";
|
|
655
655
|
if (body.action === "execute" && !isStepReference(body.step)) return "step must be a { kind: \"step\" | \"llm\" | \"connector\", stepId } reference when action is \"execute\"";
|
|
656
656
|
if (body.action !== "execute" && body.step !== void 0) return "step is only valid when action is \"execute\"";
|
|
657
|
+
if (body.describe !== void 0 && typeof body.describe !== "boolean") return "describe must be a boolean";
|
|
657
658
|
if (body.memo !== void 0 && body.memo.length > 0 && !("input" in value)) return "input must be sent with every call, including a resume";
|
|
658
659
|
return body;
|
|
659
660
|
}
|
|
@@ -814,7 +815,7 @@ function createStepsHandler(collection, options = {}) {
|
|
|
814
815
|
shouldExecute: (intent) => !isRunnableKind(intent.kind)
|
|
815
816
|
}));
|
|
816
817
|
const only = described.steps.length === 1 ? described.steps[0] : void 0;
|
|
817
|
-
if (described.status !== "pending" || !only || !isRunnableKind(only.kind)) return json(200, stepsResponse(runId, inputHash, workflow.version, before, described));
|
|
818
|
+
if (described.status !== "pending" || !only || !isRunnableKind(only.kind) || body.describe === true) return json(200, stepsResponse(runId, inputHash, workflow.version, before, described));
|
|
818
819
|
const outcome = await validateOutput(workflow, await replay({
|
|
819
820
|
workflow,
|
|
820
821
|
input,
|
|
@@ -1112,7 +1113,7 @@ async function send(request) {
|
|
|
1112
1113
|
const headers = new Headers(request.headers);
|
|
1113
1114
|
headers.set("Authorization", `Bearer ${connection.apiKey}`);
|
|
1114
1115
|
headers.set("Accept", "application/json");
|
|
1115
|
-
headers.set("User-Agent", `lovable-workflows-sdk/0.0.0-dev.
|
|
1116
|
+
headers.set("User-Agent", `lovable-workflows-sdk/0.0.0-dev.58`);
|
|
1116
1117
|
if (request.body !== void 0) headers.set("Content-Type", "application/json");
|
|
1117
1118
|
let response;
|
|
1118
1119
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadTypeScript, t as workflowHandlerSource } from "./graph-
|
|
1
|
+
import { loadTypeScript, t as workflowHandlerSource } from "./graph-DNM6HACw.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-sHCzFBzN.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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovable.dev/workflows-sdk",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.58",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"tag": "dev",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@standard-schema/spec": "^1.1.0",
|
|
33
33
|
"@tanstack/workflow-core": "0.0.4",
|
|
34
|
-
"@lovable.dev/ai-gateway": "0.1.
|
|
34
|
+
"@lovable.dev/ai-gateway": "0.1.13"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@bufbuild/protobuf": "^2.10.1",
|