@oomol-lab/open-flow 0.1.0-beta.64 → 0.1.0-beta.65
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/flow-authoring.js +21 -2
- package/dist/browser/{flowChanges-BAMkSaKF.js → flowChanges-DkvG5uDq.js} +1774 -1663
- package/dist/browser/{flowWorkspace-DxLc1Ybv.js → flowWorkspace-BEp-lxqF.js} +116 -1
- package/dist/browser/preview.css +8 -0
- package/dist/browser/preview.js +1870 -1663
- package/dist/browser/ui.css +8 -0
- package/dist/browser/workbench.css +8 -0
- package/dist/browser/workbench.js +31 -4
- package/dist/command/index.js +22 -22
- package/dist/common/connectorDecoders.d.ts +2 -1
- package/dist/common/control-api-conformance.js +19 -0
- package/dist/common/control-api.d.ts +7 -0
- package/dist/common/control-api.js +25 -0
- package/dist/common/control-requests.js +45 -5
- package/dist/common/flow-semantics.js +6 -0
- package/dist/common/mcp.js +3310 -3291
- package/dist/common/scheduler.d.ts +1 -0
- package/dist/common/scheduler.js +49 -3
- package/package.json +1 -1
package/dist/browser/ui.css
CHANGED
|
@@ -1359,6 +1359,10 @@
|
|
|
1359
1359
|
height: 650px;
|
|
1360
1360
|
}
|
|
1361
1361
|
|
|
1362
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .h-\[700px\] {
|
|
1363
|
+
height: 700px;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1362
1366
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .h-\[calc\(100\%-1px\)\] {
|
|
1363
1367
|
height: calc(100% - 1px);
|
|
1364
1368
|
}
|
|
@@ -1579,6 +1583,10 @@
|
|
|
1579
1583
|
width: 344px;
|
|
1580
1584
|
}
|
|
1581
1585
|
|
|
1586
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .w-\[420px\] {
|
|
1587
|
+
width: 420px;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1582
1590
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .w-\[440px\] {
|
|
1583
1591
|
width: 440px;
|
|
1584
1592
|
}
|
|
@@ -2130,6 +2130,10 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
2130
2130
|
height: 650px;
|
|
2131
2131
|
}
|
|
2132
2132
|
|
|
2133
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .h-\[700px\] {
|
|
2134
|
+
height: 700px;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2133
2137
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .h-\[calc\(100\%-1px\)\] {
|
|
2134
2138
|
height: calc(100% - 1px);
|
|
2135
2139
|
}
|
|
@@ -2350,6 +2354,10 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
2350
2354
|
width: 344px;
|
|
2351
2355
|
}
|
|
2352
2356
|
|
|
2357
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .w-\[420px\] {
|
|
2358
|
+
width: 420px;
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2353
2361
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .w-\[440px\] {
|
|
2354
2362
|
width: 440px;
|
|
2355
2363
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as isJsonObject, $t as EmptyTitle, An as createI18n, At as updateTriggerSchedule, B as CacheResource, Cr as controlErrorCode, Ct as repairNodeNames, Dn as EventSourcesPage, Dt as setInputSources, En as Badge, Er as IconThemeContext, Et as setConnectorConnection, F as feishuResourceKind, Ft as PopoverContent, G as designerGraph, Gn as randomId, Gt as InputGroup, H as resourceData, I as supportsFeishuChatFilter, Jn as decodeTriggerCatalog, Jt as Empty, Kn as allConnectorConnectionsQuery, Kt as InputGroupAddon, L as combineSources, M as addNodeIntent, Mt as IdTooltip, N as deriveAddNodeOptions, Nt as followWorkbenchLink, Ot as setTriggerConnection, Pt as Popover, Qn as triggerOutputDefinitions, Qt as EmptyMedia, Sr as ApiError, St as setNodePositions, Tt as setCodeActions, U as resourceValue, Un as errorNotice, W as connectorActionPorts, Wn as WorkbenchClient, Xt as EmptyDescription, Y as providerIcon, Yt as EmptyContent, Zn as sampleErrorOutputs, Zt as EmptyHeader, _ as updateValue, _r as inputValue, _t as removeComments, a as nameCreatedNodes, ar as workflowNameFromFile, at as flowResourceReferences, br as record, bt as setFlowViewport, c as updateCondition, cn as DropdownMenuSeparator, cr as providerIconAppearance, ct as diagnosticItems, d as updateNodeName, en as DropdownMenu, er as connection, f as updateNodeSettings, fn as DropdownMenuTrigger, ft as actionWithConnections, g as updateTaskPorts, gt as flowPresentation, h as updateTaskAdditionalInputs, ht as commentIds, i as deleteSelection, in as DropdownMenuItem, ir as workflowFileName, it as revisionView, jt as WorkflowExportMenuItem, kt as updateTriggerConfig, l as updateNodeDescription, m as updateTask, mt as canvasPresentationChange, nn as DropdownMenuContent, nr as encodeWorkflowFile, o as setInputValue, ot as Latest, p as updateResolution, pt as connectionCatalog, qt as InputGroupInput, r as applyFlowChanges, rr as parseWorkflowFile, s as setInputVariable, st as deriveInspectorDiagnostics, t as addNode, tr as connectorActionMetadata, tt as RunStore, u as updateNodeIcon, v as updateWebhook, vr as invalidResponse, vt as restoreCanvasPresentation, wt as resetInputValues, xr as string, xt as setNodeContentHidden, yr as jsonValue, yt as setComment, z as scopedValue, zt as PopoverTitle } from "./flowChanges-
|
|
1
|
+
import { $n as isJsonObject, $t as EmptyTitle, An as createI18n, At as updateTriggerSchedule, B as CacheResource, Cr as controlErrorCode, Ct as repairNodeNames, Dn as EventSourcesPage, Dt as setInputSources, En as Badge, Er as IconThemeContext, Et as setConnectorConnection, F as feishuResourceKind, Ft as PopoverContent, G as designerGraph, Gn as randomId, Gt as InputGroup, H as resourceData, I as supportsFeishuChatFilter, Jn as decodeTriggerCatalog, Jt as Empty, Kn as allConnectorConnectionsQuery, Kt as InputGroupAddon, L as combineSources, M as addNodeIntent, Mt as IdTooltip, N as deriveAddNodeOptions, Nt as followWorkbenchLink, Ot as setTriggerConnection, Pt as Popover, Qn as triggerOutputDefinitions, Qt as EmptyMedia, Sr as ApiError, St as setNodePositions, Tt as setCodeActions, U as resourceValue, Un as errorNotice, W as connectorActionPorts, Wn as WorkbenchClient, Xt as EmptyDescription, Y as providerIcon, Yt as EmptyContent, Zn as sampleErrorOutputs, Zt as EmptyHeader, _ as updateValue, _r as inputValue, _t as removeComments, a as nameCreatedNodes, ar as workflowNameFromFile, at as flowResourceReferences, br as record, bt as setFlowViewport, c as updateCondition, cn as DropdownMenuSeparator, cr as providerIconAppearance, ct as diagnosticItems, d as updateNodeName, en as DropdownMenu, er as connection, f as updateNodeSettings, fn as DropdownMenuTrigger, ft as actionWithConnections, g as updateTaskPorts, gt as flowPresentation, h as updateTaskAdditionalInputs, ht as commentIds, i as deleteSelection, in as DropdownMenuItem, ir as workflowFileName, it as revisionView, jt as WorkflowExportMenuItem, kt as updateTriggerConfig, l as updateNodeDescription, m as updateTask, mt as canvasPresentationChange, nn as DropdownMenuContent, nr as encodeWorkflowFile, o as setInputValue, ot as Latest, p as updateResolution, pt as connectionCatalog, qt as InputGroupInput, r as applyFlowChanges, rr as parseWorkflowFile, s as setInputVariable, st as deriveInspectorDiagnostics, t as addNode, tr as connectorActionMetadata, tt as RunStore, u as updateNodeIcon, v as updateWebhook, vr as invalidResponse, vt as restoreCanvasPresentation, wt as resetInputValues, xr as string, xt as setNodeContentHidden, yr as jsonValue, yt as setComment, z as scopedValue, zt as PopoverTitle } from "./flowChanges-DkvG5uDq.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 { B as FlowChangeError, Ci as cn, E as FieldLabel, Q as nodeInputMappings, S as Field, T as FieldGroup, V as applyFlowChanges$1, Z as mapConditionSources, a as DialogDescription, at as dequal$1, c as DialogTitle, d as TooltipContent, i as DialogContent, lr as Input, n as Dialog, o as DialogFooter, p as TooltipTrigger, q as resourceNameIssue, r as DialogClose, s as DialogHeader, t as Icon, u as Tooltip, w as FieldError, x as Spinner, xi as Button } from "./icons-Db2Jb2iX.js";
|
|
@@ -998,11 +998,30 @@ var customAlphabet = (alphabet, size = 21) => customRandom(alphabet, size | 0, r
|
|
|
998
998
|
//#endregion
|
|
999
999
|
//#region src/flow/common/edgeChanges.ts
|
|
1000
1000
|
function connect(content, edge) {
|
|
1001
|
-
|
|
1002
|
-
return [
|
|
1001
|
+
const selected = content.document.graph;
|
|
1002
|
+
if (selected?.edges.some((candidate) => dequal$1(candidate, edge))) return [];
|
|
1003
|
+
const changes = [{
|
|
1003
1004
|
edge,
|
|
1004
1005
|
kind: "graph.edge.connect"
|
|
1005
1006
|
}];
|
|
1007
|
+
const source = selected.nodes[edge.source];
|
|
1008
|
+
const target = selected.nodes[edge.target];
|
|
1009
|
+
if (edge.sourceHandle == "pending" && (source?.kind == "approval" || source?.kind == "wait") && target?.kind == "task" && "executor" in target.task && target.task.executor.kind == "connector" && target.task.executor.action == "leina.send_notification" && (target.inputs.message == null || target.inputs.message.kind == "unset")) changes.push({
|
|
1010
|
+
kind: "graph.node.input.set",
|
|
1011
|
+
nodeId: edge.target,
|
|
1012
|
+
handle: "message",
|
|
1013
|
+
before: target.inputs.message,
|
|
1014
|
+
value: {
|
|
1015
|
+
kind: "sources",
|
|
1016
|
+
sources: [{
|
|
1017
|
+
kind: "node",
|
|
1018
|
+
nodeId: edge.source,
|
|
1019
|
+
output: "pending",
|
|
1020
|
+
field: "message"
|
|
1021
|
+
}]
|
|
1022
|
+
}
|
|
1023
|
+
});
|
|
1024
|
+
return changes;
|
|
1006
1025
|
}
|
|
1007
1026
|
function disconnect(content, edge) {
|
|
1008
1027
|
if (!content.document.graph?.edges.some((candidate) => dequal$1(candidate, edge))) return [];
|
|
@@ -3367,6 +3386,11 @@ function ports(values) {
|
|
|
3367
3386
|
}));
|
|
3368
3387
|
}
|
|
3369
3388
|
function option$1(action, t) {
|
|
3389
|
+
if (action.actionId == "leina.send_notification") action = {
|
|
3390
|
+
...action,
|
|
3391
|
+
name: t("leina.notification"),
|
|
3392
|
+
description: t("leina.description")
|
|
3393
|
+
};
|
|
3370
3394
|
return {
|
|
3371
3395
|
connector: action,
|
|
3372
3396
|
description: action.authenticated && action.defaultConnection == null ? t("addNode.connectorNeedsConnection", {
|
|
@@ -3459,6 +3483,9 @@ function connectionDiagnostics(revision, actions, catalogs) {
|
|
|
3459
3483
|
}
|
|
3460
3484
|
var ConnectorStore = class {
|
|
3461
3485
|
#client;
|
|
3486
|
+
listLeinaBots(flowId, signal) {
|
|
3487
|
+
return this.#client.listLeinaBots(flowId, signal);
|
|
3488
|
+
}
|
|
3462
3489
|
#i18n;
|
|
3463
3490
|
#language;
|
|
3464
3491
|
#host;
|
|
@@ -6825,7 +6852,7 @@ var WorkbenchStore = class {
|
|
|
6825
6852
|
};
|
|
6826
6853
|
//#endregion
|
|
6827
6854
|
//#region src/workbench/browser/runtime/openFlowWorkbench.tsx
|
|
6828
|
-
var FlowWorkspace = lazy(() => import("./flowWorkspace-
|
|
6855
|
+
var FlowWorkspace = lazy(() => import("./flowWorkspace-BEp-lxqF.js"));
|
|
6829
6856
|
function OpenFlowSessionGate({ action, description, error, onSubmit, onTokenChange, pending = false, title, token, tokenLabel }) {
|
|
6830
6857
|
const hasToken = token != null && tokenLabel != null && onTokenChange != null;
|
|
6831
6858
|
const tokenValue = token ?? "";
|