@oomol-lab/open-flow 0.1.0-beta.54 → 0.1.0-beta.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/dist/browser/{createResourceDialog-BsaBMf7_.js → createResourceDialog-4H5_lZ6s.js} +3 -3
- package/dist/browser/{main-BPABKzwN.js → dist-BFmpkX4P.js} +9 -1
- package/dist/browser/flow-authoring-node.d.ts +5 -0
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +9434 -9187
- package/dist/browser/flow-change.d.ts +6 -1
- package/dist/browser/flow-change.js +3108 -141
- package/dist/browser/{flowChanges-CcscgZsW.js → flowChanges-ZzG-f9cg.js} +1978 -5437
- package/dist/browser/{flowWorkspace-CoT_ewLX.js → flowWorkspace-ChpRaTMX.js} +3197 -310
- package/dist/browser/{icons-0s-Q_3lp.js → icons-CdAB9wyS.js} +4294 -54
- package/dist/browser/{markdownContent-D3FFc-u_.js → markdownContent-frwDfQQU.js} +1 -2
- package/dist/browser/preview.css +375 -322
- package/dist/browser/preview.js +5458 -1888
- package/dist/browser/theme.css +1 -0
- package/dist/browser/ui.css +30 -0
- package/dist/browser/ui.js +4 -3
- package/dist/browser/workbench.css +375 -322
- package/dist/browser/workbench.js +8 -8
- package/dist/browser/{workbenchSelect-BqUPacsr.js → workbenchSelect-BRZN4ish.js} +1 -1
- package/dist/common/authoringExamples.d.ts +3 -2
- package/dist/common/control-api-conformance.js +3410 -3285
- package/dist/common/control-api.js +3680 -3531
- package/dist/common/control-requests.js +2132 -1860
- package/dist/common/decision.d.ts +47 -0
- package/dist/common/decision.js +10153 -0
- package/dist/common/flow-encoding.js +3105 -124
- package/dist/common/flow-semantics.js +276 -2
- package/dist/common/integration-trigger.js +202 -1
- package/dist/common/mcp.js +3748 -3623
- package/dist/common/openapi.js +202 -1
- package/dist/common/poll-trigger.js +226 -1
- package/dist/common/run-events.js +1 -0
- package/dist/common/runtime-contract.d.ts +8 -0
- package/dist/common/scheduler.d.ts +1 -1
- package/dist/common/scheduler.js +2137 -1936
- package/dist/common/webhook-trigger.js +202 -1
- package/package.json +5 -1
- package/dist/browser/dist-BDBTOgS5.js +0 -9
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { An as decodeTriggerCatalog, At as flowDependencies, Bn as inputValue, Bt as followWorkbenchLink, Ct as resetInputValues, Dn as randomId, Dt as setTriggerConnection, En as WorkbenchClient, Et as setInputSources, F as deriveAddNodeOptions, Fn as isJsonObject, G as resourceValue, Gn as providerIconAppearance, H as CacheResource, Hn as jsonValue, Ht as Popover, Jt as PopoverTrigger, K as designerGraph, Kn as ApiError, L as feishuResourceKind, Nn as sampleErrorOutputs, On as allConnectorConnectionsQuery, Ot as updateTriggerConfig, P as addNodeIntent, Pn as triggerOutputDefinitions, R as supportsFeishuChatFilter, Rn as connection, St as repairNodeNames, Tn as errorNotice, Tt as setConnectorConnection, Un as record, Ut as PopoverContent, V as scopedValue, Vn as invalidResponse, Vt as Switch, W as resourceData, Wn as string, X as providerIcon, Yn as IconThemeContext, _ as updateTaskAdditionalInputs, _t as setComment, a as deleteSelection, an as EmptyDescription, at as Latest, b as updateWebhook, bt as setNodePositions, c as setInputVariable, cn as EmptyTitle, d as updateNodeIcon, dt as actionWithConnections, en as InputGroup, f as updateNodeName, fn as createI18n, ft as connectionCatalog, g as updateTask, gt as restoreCanvasPresentation, h as updateSubflow, ht as removeComments, i as createResource, in as EmptyContent, it as revisionView, kt as updateTriggerSchedule, l as updateCondition, ln as EventSourcesPage, m as updateResolution, mt as commentIds, nn as InputGroupInput, o as nameCreatedNodes, on as EmptyHeader, ot as deriveInspectorDiagnostics, p as updateNodeSettings, pt as canvasPresentationChange, qn as controlErrorCode, qt as PopoverTitle, r as applyFlowChanges, rn as Empty, s as setInputValue, sn as EmptyMedia, st as diagnosticItems, t as addNode, tn as InputGroupAddon, tt as RunStore, u as updateNodeDescription, v as updateTaskPorts, vt as setFlowViewport, wt as setCodeActions, xt as targetPresentation, y as updateValue, yt as setNodeContentHidden, z as combineSources, zn as connectorActionMetadata, zt as IdTooltip } from "./flowChanges-ZzG-f9cg.js";
|
|
2
2
|
import { a as derive, i as compute, l as val } from "./dist-bO8nvHFH.js";
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
import { a as toPlainObject } from "./dist-BDBTOgS5.js";
|
|
3
|
+
import { a as toPlainObject, c as useLang, l as useTranslate, o as I18nProvider, u as useVal } from "./dist-BFmpkX4P.js";
|
|
4
|
+
import { D as FlowChangeError, E as FieldLabel, L as mapConditionSources, O as applyFlowChanges$1, P as resourceNameIssue, R as nodeInputMappings, S as Field, T as FieldGroup, a as DialogDescription, c as DialogTitle, d as TooltipContent, gi as Button, i as DialogContent, ir as Input, it as dequal$1, n as Dialog, o as DialogFooter, p as TooltipTrigger, r as DialogClose, s as DialogHeader, t as Icon, u as Tooltip, vi as cn, w as FieldError, x as Spinner } from "./icons-CdAB9wyS.js";
|
|
6
5
|
import { c as isUiLanguage, d as uiLanguages, l as resolveUiLanguage, u as uiLanguageNames } from "./value-DL_poNiC.js";
|
|
7
6
|
import { Suspense, lazy, useEffect, useRef, useState } from "react";
|
|
8
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -196,7 +195,7 @@ function Skeleton({ className, ...props }) {
|
|
|
196
195
|
}
|
|
197
196
|
//#endregion
|
|
198
197
|
//#region src/workbench/browser/runtime/shell/resourceBrowser.tsx
|
|
199
|
-
var CreateResourceDialog = lazy(() => import("./createResourceDialog-
|
|
198
|
+
var CreateResourceDialog = lazy(() => import("./createResourceDialog-4H5_lZ6s.js"));
|
|
200
199
|
var flowIdTooltipAlignOffset = 44;
|
|
201
200
|
var renamePopoverAlignOffset = -12;
|
|
202
201
|
var renamePopoverVerticalShift = 8;
|
|
@@ -4303,6 +4302,7 @@ function inverseFlowChanges(content, operations) {
|
|
|
4303
4302
|
value: operation.before
|
|
4304
4303
|
});
|
|
4305
4304
|
break;
|
|
4305
|
+
case "task.decision.set":
|
|
4306
4306
|
case "task.openapi.set":
|
|
4307
4307
|
case "task.agent.set":
|
|
4308
4308
|
restore.push({
|
|
@@ -5957,12 +5957,12 @@ var WorkspaceStore = class {
|
|
|
5957
5957
|
loadOpenApiDocument(url, signal) {
|
|
5958
5958
|
return this.#client.loadOpenApiDocument(url, signal);
|
|
5959
5959
|
}
|
|
5960
|
-
async saveTaskSettings(nodeId, settings) {
|
|
5960
|
+
async saveTaskSettings(nodeId, settings, deletion) {
|
|
5961
5961
|
const revision = this.$.revision.value;
|
|
5962
5962
|
const target = this.#model.value.target;
|
|
5963
5963
|
if (revision == null || target == null) return false;
|
|
5964
5964
|
const changes = updateTask(revision, target, nodeId, settings);
|
|
5965
|
-
return changes != null && await this.#editDraft(changes) != null;
|
|
5965
|
+
return changes != null && await this.#editDraft(changes, deletion) != null;
|
|
5966
5966
|
}
|
|
5967
5967
|
async saveTaskPorts(nodeId, ports, deletion, values) {
|
|
5968
5968
|
const revision = this.$.revision.value;
|
|
@@ -6925,7 +6925,7 @@ var WorkbenchStore = class {
|
|
|
6925
6925
|
};
|
|
6926
6926
|
//#endregion
|
|
6927
6927
|
//#region src/workbench/browser/runtime/openFlowWorkbench.tsx
|
|
6928
|
-
var FlowWorkspace = lazy(() => import("./flowWorkspace-
|
|
6928
|
+
var FlowWorkspace = lazy(() => import("./flowWorkspace-ChpRaTMX.js"));
|
|
6929
6929
|
function OpenFlowSessionGate({ action, description, error, onSubmit, onTokenChange, pending = false, title, token, tokenLabel }) {
|
|
6930
6930
|
const hasToken = token != null && tokenLabel != null && onTokenChange != null;
|
|
6931
6931
|
const tokenValue = token ?? "";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { St as SelectItem, Tt as SelectValue, bt as SelectContent, vi as cn, vt as Select, wt as SelectTrigger, xt as SelectGroup } from "./icons-CdAB9wyS.js";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
//#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
|
|
4
4
|
function WorkbenchSelect({ ariaLabel, className, disabled = false, id, onValueChange, options, portalRoot, size, value, variant }) {
|
|
@@ -6,6 +6,7 @@ declare const descriptions: {
|
|
|
6
6
|
readonly cron: 'An hourly scheduled start node.';
|
|
7
7
|
readonly poll: 'Gmail polling by key; replace CONNECTION_ID with an active Gmail connection.';
|
|
8
8
|
readonly integration: 'Telegram webhook integration by key; replace CONNECTION_ID with an active Telegram connection.';
|
|
9
|
+
readonly decision: 'AI Decision evaluates named questions against target and returns a complete answer object per output. Configure target before running.';
|
|
9
10
|
readonly openapi: 'A fixed JSON API operation. Replace the example document and URL before running.';
|
|
10
11
|
readonly connector: 'A Connector Task and its node. Replace ACTION_ID, CONNECTION_ID and port definitions using connector_get / connector show.';
|
|
11
12
|
readonly code: 'A JavaScript module and its node. Use Code for custom computation; use Connector Tasks for existing actions.';
|
|
@@ -20,8 +21,8 @@ declare const descriptions: {
|
|
|
20
21
|
};
|
|
21
22
|
export declare const authoringExampleNames: (keyof typeof descriptions)[];
|
|
22
23
|
export declare const authoringExamples: {
|
|
23
|
-
name: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "error" | "integration" | "llm-chat" | "llm-json" | "manual" | "openapi" | "poll" | "poll-notification" | "value" | "wait" | "webhook";
|
|
24
|
-
description: "A Connector Task and its node. Replace ACTION_ID, CONNECTION_ID and port definitions using connector_get / connector show." | "A Flow Error node. Select upstream Flows, then publish and enable this Flow to listen for failures in their automatic runs." | "A JavaScript module and its node. Use Code for custom computation; use Connector Tasks for existing actions." | "A Manual start node." | "A Wait with a continue action and a built-in notification output." | "A Webhook start node." | "A condition with true and false execution branches." | "A fixed JSON API operation. Replace the example document and URL before running." | "A fixed value node." | "An Agent with code computation enabled. Configure a model available in the deployment." | "An Approval with approve and reject decision branches and a built-in notification output." | "An LLM JSON Task and its node; configure a model available in the deployment." | "An LLM chat Task and its node; configure a model available in the deployment." | "An hourly scheduled start node." | "Gmail events → JavaScript text formatting → Connector notification. Replace connection/action IDs and match the notification input ports." | "Gmail polling by key; replace CONNECTION_ID with an active Gmail connection." | "Telegram webhook integration by key; replace CONNECTION_ID with an active Telegram connection.";
|
|
24
|
+
name: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm-chat" | "llm-json" | "manual" | "openapi" | "poll" | "poll-notification" | "value" | "wait" | "webhook";
|
|
25
|
+
description: "A Connector Task and its node. Replace ACTION_ID, CONNECTION_ID and port definitions using connector_get / connector show." | "A Flow Error node. Select upstream Flows, then publish and enable this Flow to listen for failures in their automatic runs." | "A JavaScript module and its node. Use Code for custom computation; use Connector Tasks for existing actions." | "A Manual start node." | "A Wait with a continue action and a built-in notification output." | "A Webhook start node." | "A condition with true and false execution branches." | "A fixed JSON API operation. Replace the example document and URL before running." | "A fixed value node." | "AI Decision evaluates named questions against target and returns a complete answer object per output. Configure target before running." | "An Agent with code computation enabled. Configure a model available in the deployment." | "An Approval with approve and reject decision branches and a built-in notification output." | "An LLM JSON Task and its node; configure a model available in the deployment." | "An LLM chat Task and its node; configure a model available in the deployment." | "An hourly scheduled start node." | "Gmail events → JavaScript text formatting → Connector notification. Replace connection/action IDs and match the notification input ports." | "Gmail polling by key; replace CONNECTION_ID with an active Gmail connection." | "Telegram webhook integration by key; replace CONNECTION_ID with an active Telegram connection.";
|
|
25
26
|
}[];
|
|
26
27
|
export declare function authoringExample(name: string): {
|
|
27
28
|
version: 1;
|