@oomol-lab/open-flow 0.1.0-beta.74 → 0.1.0-beta.75
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 +1 -0
- package/dist/browser/{ContentIcon-CUQHjQIw.js → ContentIcon-FCpKiwjp.js} +2 -1
- package/dist/browser/{FlowCanvas-Dtf8_cQp.js → FlowCanvas-dzRBnlUT.js} +1 -1
- package/dist/browser/{createResourceDialog-DI9pL-Yr.js → createResourceDialog-BeYDdUl-.js} +2 -2
- package/dist/browser/{dialog-BYJGvItc.js → dialog-ZtpsFbl4.js} +284 -13
- package/dist/browser/{exportSvg-BOoy7-Db.js → exportSvg-DqXw1yf-.js} +2 -2
- package/dist/browser/{flowChanges-RL-H4CjD.js → flowChanges-b_5UobFj.js} +285 -44
- package/dist/browser/{flowWorkspace-BkDsETj0.js → flowWorkspace-ItojZbO4.js} +414 -53
- package/dist/browser/preview.css +181 -176
- package/dist/browser/preview.js +955 -182
- package/dist/browser/workbench.css +181 -176
- package/dist/browser/workbench.js +12 -6
- package/dist/browser/{workbenchSelect-BcWPWGzw.js → workbenchSelect-M441Lz0d.js} +1 -1
- package/dist/command/index.js +36 -36
- package/dist/common/authoring.d.ts +4 -4
- package/dist/common/authoringExamples.d.ts +3 -2
- package/dist/common/authoringSchema.d.ts +67 -4
- package/dist/common/control-api-conformance.js +58 -7
- package/dist/common/control-api.js +58 -7
- package/dist/common/control-requests.d.ts +3 -3
- package/dist/common/control-requests.js +234 -62
- package/dist/common/engine-contract.d.ts +1 -0
- package/dist/common/flow-authoring.js +56 -7
- package/dist/common/flow-change.d.ts +1 -1
- package/dist/common/flow-change.js +56 -7
- package/dist/common/flow-encoding.js +55 -7
- package/dist/common/flow-graph.d.ts +2 -1
- package/dist/common/flow-retry.d.ts +1 -1
- package/dist/common/flow-semantics.js +810 -577
- package/dist/common/http-request.d.ts +156 -0
- package/dist/common/http-request.js +5254 -0
- package/dist/common/mcp.d.ts +3 -3
- package/dist/common/mcp.js +58 -7
- package/dist/common/run-events.js +11 -9
- package/dist/common/runtime-contract.js +3 -0
- package/dist/common/scheduler.d.ts +1 -1
- package/dist/common/scheduler.js +70 -21
- package/dist/common/webhook-response.d.ts +0 -2
- package/dist/common/webhook-trigger.js +12 -11
- package/package.json +5 -1
- package/skills/open-flow/references/flow-authoring.md +1 -0
- package/skills/open-flow/references/flow-n8n-conversion.md +19 -15
- package/src/control/common/api.ts +1 -0
- package/src/control/common/authoring.ts +14 -3
- package/src/control/common/authoringExamples.ts +8 -0
- package/src/control/common/authoringSchema.ts +30 -24
- package/src/execution/common/engineContract.ts +4 -0
- package/src/execution/common/events.ts +3 -0
- package/src/execution/common/node-execution.ts +4 -2
- package/src/execution/common/scheduler.ts +1 -0
- package/src/flow/common/change.ts +3 -2
- package/src/flow/common/changeSchema.ts +12 -3
- package/src/flow/common/graph.ts +10 -4
- package/src/flow/common/retry.ts +1 -1
- package/src/flow/common/semantics.ts +60 -3
- package/src/flow/common/webhookResponse.ts +3 -7
- package/src/{openapi → http}/common/authBindings.ts +3 -3
- package/src/http/common/headers.ts +5 -0
- package/src/http/common/httpRequest.ts +251 -0
- package/src/trigger/common/webhook.ts +4 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as DropdownMenuContent, N as DropdownMenuTrigger, T as DropdownMenuItem, d as PopoverContent, g as PopoverTrigger, h as PopoverTitle, it as providerIconAppearance, k as DropdownMenuSeparator, st as IconThemeContext, u as Popover, x as DropdownMenu } from "./ContentIcon-
|
|
1
|
+
import { C as DropdownMenuContent, N as DropdownMenuTrigger, T as DropdownMenuItem, d as PopoverContent, g as PopoverTrigger, h as PopoverTitle, it as providerIconAppearance, k as DropdownMenuSeparator, st as IconThemeContext, u as Popover, x as DropdownMenu } from "./ContentIcon-FCpKiwjp.js";
|
|
2
2
|
import { a as derive, i as compute, l as val } from "./dist-bO8nvHFH.js";
|
|
3
3
|
import { c as useLang, l as useTranslate, o as I18nProvider, u as useVal } from "./dist-BFmpkX4P.js";
|
|
4
4
|
import { br as cn, i as TooltipTrigger, n as TooltipContent, t as Tooltip, vr as Button } from "./tooltip-wZJRB9oP.js";
|
|
5
|
-
import { C as resourceNameIssue, N as mapConditionSources, P as nodeInputMappings,
|
|
6
|
-
import { $ as
|
|
5
|
+
import { C as resourceNameIssue, Mt as dequal, N as mapConditionSources, P as nodeInputMappings, Qt as Input, T as upgradeRevisionContent, _ as applyFlowChanges, a as DialogFooter, d as Field, g as FlowChangeError, h as FieldLabel, i as DialogDescription, l as Icon, m as FieldGroup, o as DialogHeader, p as FieldError, r as DialogContent, s as DialogTitle, t as Dialog, u as Spinner, v as isTriggerNode, w as upgradeManualTrigger } from "./dialog-ZtpsFbl4.js";
|
|
6
|
+
import { $ as connectorActionPorts, At as setConnectorConnection, Bn as invalidResponse, Bt as InputGroupAddon, C as updateValue, Ct as setComment, Dt as repairNodeNames, Et as setNodePositions, Ft as dequal$1, Gn as controlErrorCode, Gt as EmptyHeader, Hn as record, Ht as Empty, In as workflowCandidate, It as WorkflowExportMenuItem, J as scopedValue, Jt as Badge, K as combineSources, Kt as EmptyMedia, Lt as IdTooltip, Mt as setServiceConnections, Nt as updateStartInputDefs, Ot as resetInputValues, Pt as updateTriggerSchedule, Q as resourceValue, Qt as createI18n, Rt as followWorkbenchLink, S as updateTriggerConfig, Sn as workflowNameFromFile, St as restoreCanvasPresentation, Tt as setNodeContentHidden, U as addNodeIntent, Un as string, Ut as EmptyContent, Vn as jsonValue, Vt as InputGroupInput, W as deriveAddNodeOptions, Wn as ApiError, Wt as EmptyDescription, Y as CacheResource, Yt as EventSourcesPage, Z as resourceData, _ as updateOutputPorts, _n as connection, _t as connectionCatalog, a as nameCreatedNodes, at as RunStore, b as updateTaskAdditionalInputs, bn as parseWorkflowFile, bt as flowPresentation, c as setInputVariable, ct as revisionView, d as updateCondition, dt as deriveInspectorDiagnostics, et as designerGraph, f as updateHttpParameters, ft as diagnosticItems, g as updateNodeSettings, gt as actionWithConnections, h as updateNodeName, hn as triggerOutputDefinitions, i as deleteSelection, in as allConnectorConnectionsQuery, it as providerIcon, jt as setInputSources, kt as setCodeActions, l as setTriggerConnection, lt as flowResourceReferences, m as updateNodeIcon, mn as sampleErrorOutputs, nn as WorkbenchClient, o as selectWebhookResponse, on as decodeTriggerCatalog, p as updateNodeDescription, pn as normalizeTriggerOutputs, qt as EmptyTitle, r as applyFlowChanges$1, rn as randomId, s as setInputValue, t as addNode, tn as errorNotice, u as setTriggerEventSource, ut as Latest, v as updateResolution, vn as connectorActionMetadata, vt as canvasPresentationChange, w as updateWebhook, wt as setFlowViewport, x as updateTaskPorts, xn as workflowFileName, xt as removeComments, y as updateTask, yn as encodeWorkflowFile, yt as commentIds, zt as InputGroup } from "./flowChanges-b_5UobFj.js";
|
|
7
7
|
import { a as uiLanguages, i as uiLanguageNames, n as isUiLanguage, r as resolveUiLanguage, t as importedWorkflowName } from "./languages-gYzoQqCi.js";
|
|
8
8
|
import { Suspense, forwardRef, lazy, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -516,7 +516,7 @@ function FlowDeletionDialog({ flow, workspace, container, busy, finalFocus, onCl
|
|
|
516
516
|
}
|
|
517
517
|
//#endregion
|
|
518
518
|
//#region src/workbench/browser/runtime/shell/resourceBrowser.tsx
|
|
519
|
-
var CreateResourceDialog = lazy(() => import("./createResourceDialog-
|
|
519
|
+
var CreateResourceDialog = lazy(() => import("./createResourceDialog-BeYDdUl-.js"));
|
|
520
520
|
var flowIdTooltipAlignOffset = 44;
|
|
521
521
|
var renamePopoverAlignOffset = -12;
|
|
522
522
|
function compactFlowId(flowId) {
|
|
@@ -6271,6 +6271,12 @@ var NodeEdits = class {
|
|
|
6271
6271
|
const changes = updateResolution(revision, nodeId, settings, values);
|
|
6272
6272
|
return changes != null && await this.save(changes, deletion);
|
|
6273
6273
|
}
|
|
6274
|
+
async saveHttpParameters(nodeId, group, edit, deletion) {
|
|
6275
|
+
const revision = this.revision.value;
|
|
6276
|
+
if (revision == null) return false;
|
|
6277
|
+
const changes = updateHttpParameters(revision, nodeId, group, edit, this.identity());
|
|
6278
|
+
return changes != null && this.save(changes, deletion);
|
|
6279
|
+
}
|
|
6274
6280
|
async saveTaskSettings(nodeId, settings, deletion) {
|
|
6275
6281
|
const revision = this.revision.value;
|
|
6276
6282
|
if (revision == null) return false;
|
|
@@ -7104,7 +7110,7 @@ var WorkbenchStore = class {
|
|
|
7104
7110
|
const model = this.$.designer.value;
|
|
7105
7111
|
const title = this.workspace.$.flow.value?.name ?? this.workspace.$.flowId.value ?? "Workflow";
|
|
7106
7112
|
try {
|
|
7107
|
-
const { downloadFlowSvg } = await import("./exportSvg-
|
|
7113
|
+
const { downloadFlowSvg } = await import("./exportSvg-DqXw1yf-.js");
|
|
7108
7114
|
await downloadFlowSvg(model, title, language, options);
|
|
7109
7115
|
if (!this.#disposed) this.#notice.set({
|
|
7110
7116
|
kind: "success",
|
|
@@ -7358,7 +7364,7 @@ var WorkbenchStore = class {
|
|
|
7358
7364
|
};
|
|
7359
7365
|
//#endregion
|
|
7360
7366
|
//#region src/workbench/browser/runtime/openFlowWorkbench.tsx
|
|
7361
|
-
var FlowWorkspace = lazy(() => import("./flowWorkspace-
|
|
7367
|
+
var FlowWorkspace = lazy(() => import("./flowWorkspace-ItojZbO4.js"));
|
|
7362
7368
|
function OpenFlowSessionGate({ action, description, error, onSubmit, onTokenChange, pending = false, title, token, tokenLabel }) {
|
|
7363
7369
|
const hasToken = token != null && tokenLabel != null && onTokenChange != null;
|
|
7364
7370
|
const tokenValue = token ?? "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { br as cn } from "./tooltip-wZJRB9oP.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Bt as SelectValue, Ft as SelectContent, It as SelectGroup, Lt as SelectItem, Nt as Select, zt as SelectTrigger } from "./dialog-ZtpsFbl4.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
|
|
5
5
|
function WorkbenchSelect({ ariaLabel, className, disabled = false, id, onValueChange, options, portalRoot, size, value, variant }) {
|