@oomol-lab/open-flow 0.1.0-beta.60 → 0.1.0-beta.61
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 +14 -1
- package/dist/browser/{createResourceDialog-B7ThMSeA.js → createResourceDialog-D71fO68i.js} +2 -2
- package/dist/browser/{flowChanges-Cbl6Izr-.js → flowChanges-DSA0FxxN.js} +3389 -3290
- package/dist/browser/{flowWorkspace-BdbsnUDs.js → flowWorkspace-0sUJ5JhQ.js} +41 -49
- package/dist/browser/{icons-D70mz3qW.js → icons-DVJvrj1H.js} +10503 -10503
- package/dist/browser/preview.js +687 -718
- package/dist/browser/ui.css +697 -1
- package/dist/browser/ui.d.ts +45 -0
- package/dist/browser/ui.js +6243 -740
- package/dist/browser/workbench.js +6 -64
- package/dist/browser/{workbenchSelect-gB45mZY7.js → workbenchSelect-cr4-mKq3.js} +1 -1
- package/dist/command/index.d.ts +6 -0
- package/dist/command/index.js +84 -0
- package/dist/command/licenses.md +191 -0
- package/dist/common/authoring.d.ts +1 -1
- package/dist/common/control-api-conformance.js +3675 -3585
- package/dist/common/control-api-errors.d.ts +4 -0
- package/dist/common/control-api.d.ts +30 -9
- package/dist/common/control-api.js +4259 -3789
- package/dist/common/mcp.d.ts +61 -0
- package/dist/common/mcp.js +342 -232
- package/dist/common/publicationResources.d.ts +29 -0
- package/package.json +5 -1
- package/skills/open-flow/SKILL.md +2 -1
- package/skills/open-flow/references/flow-authoring.md +32 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime-CEgmsyvS.js";
|
|
2
|
-
import { $t as
|
|
2
|
+
import { $t as DropdownMenuSubContent, A as datePickerValue, An as FeishuEventPicker, At as NativeScrollArea, Bt as EmptyHeader, C as valueForEditor, Cn as zh_CN_default$1, Ct as Popover, D as calendarChange, Dn as fr_default$1, Dt as PopoverPanelContent, E as typeOfSchema, En as ja_default$1, Et as PopoverHeader, F as feishuResourceKind, Ft as InputGroupAddon, G as semanticNodeIcon, Gn as securityOptions, Gt as DropdownMenuContent, H as resourceData, Hn as object, Ht as EmptyTitle, I as supportsFeishuChatFilter, In as decodeResultList, It as InputGroupInput, J as providerIcon, Jn as servers, Jt as DropdownMenuLabel, K as triggerNodeIcon, Kn as selectOperation, Kt as DropdownMenuGroup, Lt as Empty, Mn as errorNotice, Mt as VirtualScrollArea, Nt as Z$2, O as calendarDate, On as en_default$1, Ot as PopoverTitle, P as indexAddNodeOptions, Pt as InputGroup, Q as useIconifyData, Qt as DropdownMenuSub, R as mapSource, Rt as EmptyContent, S as schemaForEditor, Sn as zh_TW_default$1, St as followWorkbenchLink, T as isUnconstrainedSchema, Tn as ko_default$1, Tt as PopoverDescription, U as resourceValue, Un as openApiFieldIssues, Ut as DropdownMenu, V as observeResource, Vn as listOperations, Vt as EmptyMedia, W as designerGraph, Wn as openApiTask, Wt as DropdownMenuCheckboxItem, X as IconifyProvider, Xt as DropdownMenuRadioItem, Y as ContentIcon, Yt as DropdownMenuRadioGroup, Z as useIconifyCollectionLoader, Zt as DropdownMenuSeparator, _n as SourceForm, an as MenuRoot, ar as resolutionOutputPorts, b as editorComponent, bn as uiLocales, br as useAriaLabelledBy, cn as MenuPopup, cr as triggerOutputDefinitions, ct as diagnosticNodeId, dn as ContextMenuRootContext, dr as triggerConfigValues, dt as connectionCatalog, en as DropdownMenuSubTrigger, et as canCancelRun, fn as useContextMenuRootContext, fr as inputValue, hn as Badge, in as useCompositeItem, j as isDateFormat, jn as EventSourceSetup, jt as ScrollArea, k as datePickerChange, kn as I18n, kt as PopoverTrigger, ln as MenuItem, lr as isJsonObject, lt as schemaMismatchMessage, mn as useMenuRootContext, n as agentTool, nn as isElementDisabled, nt as revisionView, on as MenuPositioner, or as sourceOutputLabel, pn as MenuRootContext, q as actionSummary, qn as serverAddress, qt as DropdownMenuItem, rn as findRootOwnerId, sn as MenuPortal, st as diagnosticMessage, tn as DropdownMenuTrigger, tt as hasRunFilter, un as MenuGroup, ur as triggerConfigValue, vn as SourceSelect, vr as controlErrorCode, w as getDefaultValue, wn as ru_default$1, wt as PopoverContent, x as editorGroups, xn as waitBranchDescription, xr as IconThemeContext, xt as IdTooltip, y as defaultValueEditorSchema, yn as createI18n$1, yr as Checkbox, zt as EmptyDescription } from "./flowChanges-DSA0FxxN.js";
|
|
3
3
|
import { a as derive, c as strictEqual, i as compute, l as val, n as attachSetter, r as combine, s as readonlyVal } from "./dist-bO8nvHFH.js";
|
|
4
4
|
import { c as useLang, i as isString, l as useTranslate, n as isBoolean, o as I18nProvider, r as isPlainObject, s as useI18n, t as isArray$1, u as useVal } from "./dist-BFmpkX4P.js";
|
|
5
|
-
import { $ as
|
|
5
|
+
import { $ as valueType, $r as itemPress, $t as useDirection, A as decisionTask, Ai as CompositeRootContext, Ar as ownerDocument, At as useCompositeListItem, Bt as HORIZONTAL_KEYS_WITH_EXTRA_KEYS, C as FieldDescription, Ci as useRenderElement, Cr as isInteractiveElement, Ct as SelectGroup, D as decisionLimits, Dr as isAndroid, Dt as SelectValue, E as FieldLabel, Ei as NOOP, En as useFloatingRootContext, Er as getTarget, Et as SelectTrigger, F as schemaObject, Fn as useClick, Fr as useTransitionStatus, Ft as ARROW_RIGHT, G as comparisonIssue, Gn as DROPDOWN_COLLISION_AVOIDANCE, Gr as clearPress, Gt as scrollIntoViewIfNeeded, Hr as createChangeEventDetails, Ht as VERTICAL_KEYS, I as variableInputCompatible, Ii as useStableCallback, In as FloatingFocusManager, Ir as useOpenChangeComplete, It as ARROW_UP, J as nodeInputMappings, Jn as addEventListener, Jt as usePositioner, Kr as closePress, Li as useRefWithInit, M as limitDecisionQuestions, Mi as formatErrorMessage, Mr as ChevronDown, Mt as ARROW_DOWN, Ni as mergeProps, Nt as ARROW_KEYS, Oi as useMergedRefs, Or as isFirefox, P as matchesSchema, Pi as useIsoLayoutEffect, Pn as useDismiss, Pr as createLucideIcon, Pt as ARROW_LEFT, Q as unaryOperator, Qr as inputPress, Rr as TransitionStatusDataAttributes, S as Field, Si as clsx, Sr as stopEvent$1, St as SelectContent, T as FieldGroup, Ti as EMPTY_OBJECT, Tr as contains, Tt as SelectSeparator, Un as FloatingPortal, Ur as createGenericEventDetails, Ut as VERTICAL_KEYS_WITH_EXTRA_KEYS, V as nodeNameIssue, Vr as useValueChanged, Vt as MODIFIER_KEYS, Wr as cancelOpen, Wt as isNativeInput, X as operatorsForType, Xn as Store, Xr as inputChange, Xt as InternalBackdrop, Y as operandHandle, Yt as getDisabledMountTransitionStyles, Zn as useStore$1, Zr as inputClear, Zt as useAnchorPositioning, _ as TooltipPositioner, _i as useControlled, _r as getGridNavigatedIndex, a as DialogDescription, an as triggerOpenStateMapping, ar as Label, b as TooltipRoot, bi as cn$1, bn as useListNavigation, br as isIndexOutOfListBounds, bt as Select$1, c as DialogTitle, ci as useFormContext, cn as hasNullItemLabel, cr as useTimeout, d as TooltipContent, di as useBaseUiId, dn as stringifyAsValue, ei as listNavigation, en as CompositeList, er as require_with_selector, f as TooltipProvider, fi as useId$1, fn as compareItemEquality, g as TooltipPopup, gi as visuallyHiddenInput, gn as selectedValueIncludes, gr as getGridCellIndices, gt as string, h as TooltipArrow, hi as visuallyHidden, hn as removeItem, hr as getGridCellIndexOfCorner, i as DialogContent, in as pressableTriggerOpenStateMapping, ir as useOnFirstRender, j as defaultDecisionQuestion, jr as useLabelableId, jt as ALL_KEYS, k as decisionQuestionIssues, ki as useButton, kt as IndexGuessBehavior, l as DialogTrigger, li as useRegisterFieldControl, ln as isGroupedItems, m as createTooltipHandle, mi as fieldValidityMapping, mn as findItemIndex, mr as findNonDisabledListIndex, n as Dialog, nn as getPseudoElementBounds, nr as createSelector, nt as webhookMethods, oi as triggerPress, on as resolveAriaLabelledBy, or as Input$1, p as TooltipTrigger, pi as DEFAULT_FIELD_STATE_ATTRIBUTES, pn as defaultItemEquality, pr as createGridCellMap, qr as escapeKey, qt as useAnchoredPopupScrollLock, rn as popupStateMapping, rr as useValueAsRef, rt as webhookSupportsBody, si as useLabelableContext, sn as useOpenInteractionType, t as Icon, ti as none$1, tn as inertValue, tr as require_builtin_esm_external_require_react, tt as decodeRevisionContent, u as Tooltip, ui as useFieldRootContext, un as stringifyAsLabel, v as TooltipPortal, vi as Button$1, vn as useTypeahead, vr as getMaxListIndex, w as FieldError, wi as EMPTY_ARRAY$1, wr as activeElement, wt as SelectItem, x as Spinner, xi as cva, xn as useInteractions, xr as isListIndexDisabled, xt as SelectChevron, y as TooltipTrigger$1, yi as buttonVariants, yr as getMinListIndex, yt as dequal, zi as isElement, zr as transitionStatusMapping, zt as HORIZONTAL_KEYS } from "./icons-DVJvrj1H.js";
|
|
6
6
|
import { a as renameObjectField, i as objectValue, l as resolveUiLanguage, n as isJsonValue, o as setObjectField, r as jsonDataTypes, s as valueType$1, t as initialValue } from "./value-DL_poNiC.js";
|
|
7
7
|
import { n as compile, r as validate } from "./flowRunInputEditorStore-Dsxyfwae.js";
|
|
8
|
-
import { t as WorkbenchSelect } from "./workbenchSelect-
|
|
8
|
+
import { t as WorkbenchSelect } from "./workbenchSelect-cr4-mKq3.js";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import reactExports, { Children, Fragment, Suspense, createContext, forwardRef, isValidElement, lazy, memo, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -53563,9 +53563,9 @@ function WorkbenchCanvasActions({ addNodeControl, history, pickerOpen, disabled,
|
|
|
53563
53563
|
}
|
|
53564
53564
|
//#endregion
|
|
53565
53565
|
//#region src/workbench/browser/runtime/publications/liveTriggers.tsx
|
|
53566
|
-
function triggerLabel(binding, t) {
|
|
53566
|
+
function triggerLabel(binding, enabled, t) {
|
|
53567
53567
|
if (binding.currentPublicationId == null) return t("publication.retired");
|
|
53568
|
-
if (
|
|
53568
|
+
if (!enabled) return t("publication.suspended");
|
|
53569
53569
|
if (binding.listener?.health == "healthy" && (binding.health == "failed" || binding.health == "needs_reauth")) return t("publication.listenerDegraded");
|
|
53570
53570
|
switch (binding.listener?.health == "failed" || binding.listener?.health == "needs_reauth" ? binding.listener.health : binding.health) {
|
|
53571
53571
|
case "healthy": return t("publication.active");
|
|
@@ -53590,8 +53590,8 @@ function triggerName(binding, revision) {
|
|
|
53590
53590
|
if (revision == null || binding.currentRevisionId != revision.revision.revisionId) return binding.triggerNodeId;
|
|
53591
53591
|
return revision.trigger(binding.triggerNodeId)?.name ?? binding.triggerNodeId;
|
|
53592
53592
|
}
|
|
53593
|
-
function triggerClass(binding) {
|
|
53594
|
-
if (binding.currentPublicationId == null ||
|
|
53593
|
+
function triggerClass(binding, enabled) {
|
|
53594
|
+
if (binding.currentPublicationId == null || !enabled) return "neutral";
|
|
53595
53595
|
if (binding.listener?.health == "healthy" && (binding.health == "failed" || binding.health == "needs_reauth")) return "running";
|
|
53596
53596
|
switch (binding.listener?.health == "failed" || binding.listener?.health == "needs_reauth" ? binding.listener.health : binding.health) {
|
|
53597
53597
|
case "healthy": return "success";
|
|
@@ -53601,16 +53601,16 @@ function triggerClass(binding) {
|
|
|
53601
53601
|
case "suspended": return "neutral";
|
|
53602
53602
|
}
|
|
53603
53603
|
}
|
|
53604
|
-
function TriggerStatus({ binding }) {
|
|
53604
|
+
function TriggerStatus({ binding, enabled }) {
|
|
53605
53605
|
const t = useTranslate();
|
|
53606
53606
|
return /* @__PURE__ */ jsx("span", {
|
|
53607
|
-
className: "trigger-binding-state " + triggerClass(binding),
|
|
53608
|
-
children: triggerLabel(binding, t)
|
|
53607
|
+
className: "trigger-binding-state " + triggerClass(binding, enabled),
|
|
53608
|
+
children: triggerLabel(binding, enabled, t)
|
|
53609
53609
|
});
|
|
53610
53610
|
}
|
|
53611
|
-
function ListenerHealth({ binding }) {
|
|
53611
|
+
function ListenerHealth({ binding, enabled }) {
|
|
53612
53612
|
const t = useTranslate();
|
|
53613
|
-
if (binding.listener == null || binding.currentPublicationId == null ||
|
|
53613
|
+
if (binding.listener == null || binding.currentPublicationId == null || !enabled) return null;
|
|
53614
53614
|
return /* @__PURE__ */ jsxs("p", {
|
|
53615
53615
|
className: "trigger-recovery",
|
|
53616
53616
|
children: [t(binding.listener.health == "healthy" ? "publication.listenerScanning" : binding.listener.health == "needs_reauth" ? "publication.needsReauthDescription" : "publication.listenerScanFailed"), binding.listener.lastErrorCode == null ? "" : ` (${binding.listener.lastErrorCode})`]
|
|
@@ -53630,8 +53630,7 @@ function LiveTriggers({ store }) {
|
|
|
53630
53630
|
const selectedTriggerId = useVal(store.publications.$.selectedTriggerId);
|
|
53631
53631
|
const testingTriggerId = useVal(store.publications.$.testingTriggerId);
|
|
53632
53632
|
const testResult = useVal(store.publications.$.testResult);
|
|
53633
|
-
const
|
|
53634
|
-
const changingTriggerId = useVal(store.publications.$.changingTriggerId);
|
|
53633
|
+
const enabled = useVal(store.workspace.$.live)?.status == "runnable";
|
|
53635
53634
|
const revision = useVal(store.workspace.$.revision);
|
|
53636
53635
|
const [copiedEndpoint, setCopiedEndpoint] = useState();
|
|
53637
53636
|
useEffect(() => setCopiedEndpoint(void 0), [detail?.binding.endpointUrl]);
|
|
@@ -53655,41 +53654,32 @@ function LiveTriggers({ store }) {
|
|
|
53655
53654
|
}) : /* @__PURE__ */ jsx("ul", {
|
|
53656
53655
|
className: "trigger-binding-list",
|
|
53657
53656
|
children: bindings.map((binding) => {
|
|
53658
|
-
const changing = changingTriggerId == binding.triggerNodeId;
|
|
53659
|
-
const resumable = binding.operatorState == "paused";
|
|
53660
53657
|
return /* @__PURE__ */ jsxs("li", {
|
|
53661
53658
|
className: "trigger-binding-row",
|
|
53662
|
-
children: [
|
|
53663
|
-
|
|
53664
|
-
|
|
53665
|
-
|
|
53666
|
-
|
|
53667
|
-
|
|
53668
|
-
|
|
53669
|
-
|
|
53670
|
-
|
|
53671
|
-
|
|
53672
|
-
|
|
53673
|
-
|
|
53674
|
-
|
|
53675
|
-
|
|
53676
|
-
|
|
53677
|
-
|
|
53678
|
-
|
|
53679
|
-
|
|
53680
|
-
children: binding.kind
|
|
53681
|
-
})]
|
|
53659
|
+
children: [/* @__PURE__ */ jsxs(Button$1, {
|
|
53660
|
+
className: "trigger-binding-open",
|
|
53661
|
+
"aria-haspopup": "dialog",
|
|
53662
|
+
onClick: (event) => {
|
|
53663
|
+
opener.current = event.currentTarget;
|
|
53664
|
+
store.publications.openTrigger(binding.triggerNodeId);
|
|
53665
|
+
},
|
|
53666
|
+
variant: "ghost",
|
|
53667
|
+
size: "sm",
|
|
53668
|
+
children: [/* @__PURE__ */ jsx("span", { className: `status-dot mr-1 ${triggerClass(binding, enabled)}` }), /* @__PURE__ */ jsxs("span", {
|
|
53669
|
+
className: "trigger-binding-label",
|
|
53670
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
53671
|
+
className: "trigger-binding-name",
|
|
53672
|
+
title: binding.triggerNodeId,
|
|
53673
|
+
children: triggerName(binding, revision)
|
|
53674
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
53675
|
+
className: "trigger-binding-kind",
|
|
53676
|
+
children: binding.kind
|
|
53682
53677
|
})]
|
|
53683
|
-
})
|
|
53684
|
-
|
|
53685
|
-
binding
|
|
53686
|
-
|
|
53687
|
-
|
|
53688
|
-
size: "sm",
|
|
53689
|
-
variant: "outline",
|
|
53690
|
-
children: t(changing ? resumable ? "publication.resumingTrigger" : "publication.pausingTrigger" : resumable ? "publication.resumeTrigger" : "publication.pauseTrigger")
|
|
53691
|
-
})
|
|
53692
|
-
]
|
|
53678
|
+
})]
|
|
53679
|
+
}), /* @__PURE__ */ jsx(TriggerStatus, {
|
|
53680
|
+
binding,
|
|
53681
|
+
enabled
|
|
53682
|
+
})]
|
|
53693
53683
|
}, binding.triggerNodeId);
|
|
53694
53684
|
})
|
|
53695
53685
|
}),
|
|
@@ -53715,12 +53705,14 @@ function LiveTriggers({ store }) {
|
|
|
53715
53705
|
/* @__PURE__ */ jsxs("dl", { children: [
|
|
53716
53706
|
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: t("publication.triggerKind") }), /* @__PURE__ */ jsx("dd", { children: detail.binding.kind })] }),
|
|
53717
53707
|
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: t("publication.runtimeVersion") }), /* @__PURE__ */ jsx("dd", { children: detail.binding.runtimeVersion })] }),
|
|
53718
|
-
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: t("publication.triggerHealth") }), /* @__PURE__ */ jsx("dd", { children: triggerLabel(detail.binding, t) })] }),
|
|
53719
|
-
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: t("publication.operatorState") }), /* @__PURE__ */ jsx("dd", { children: t(detail.binding.operatorState == "paused" ? "publication.suspended" : "publication.active") })] }),
|
|
53708
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: t("publication.triggerHealth") }), /* @__PURE__ */ jsx("dd", { children: triggerLabel(detail.binding, enabled, t) })] }),
|
|
53720
53709
|
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: t("publication.updatedAt") }), /* @__PURE__ */ jsx("dd", { children: new Date(detail.binding.updatedAt).toLocaleString(language) })] }),
|
|
53721
53710
|
detail.binding.lastErrorCode != null && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: t("publication.lastError") }), /* @__PURE__ */ jsx("dd", { children: detail.binding.lastErrorCode })] })
|
|
53722
53711
|
] }),
|
|
53723
|
-
/* @__PURE__ */ jsx(ListenerHealth, {
|
|
53712
|
+
/* @__PURE__ */ jsx(ListenerHealth, {
|
|
53713
|
+
binding: detail.binding,
|
|
53714
|
+
enabled
|
|
53715
|
+
}),
|
|
53724
53716
|
detail.binding.health == "needs_reauth" && /* @__PURE__ */ jsx("p", {
|
|
53725
53717
|
className: "trigger-recovery",
|
|
53726
53718
|
children: t("publication.needsReauthDescription")
|