@oomol-lab/open-flow 0.1.0-beta.62 → 0.1.0-beta.64
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-DZgJsr3e.js → createResourceDialog-BAJXbzNH.js} +20 -7
- package/dist/browser/flow-authoring.js +8 -7
- package/dist/browser/flow-change-schema.d.ts +1 -0
- package/dist/browser/flow-change.d.ts +1 -0
- package/dist/browser/flow-change.js +8 -7
- package/dist/browser/flow-notifications.d.ts +6 -0
- package/dist/browser/{flowChanges-CzYIVevI.js → flowChanges-BAMkSaKF.js} +1771 -1331
- package/dist/browser/{flowRunInputEditorStore-Dsxyfwae.js → flowRunInputEditorStore-B2Rw4VsT.js} +1 -1
- package/dist/browser/{flowWorkspace-BgZaFKZm.js → flowWorkspace-DxLc1Ybv.js} +429 -205
- package/dist/browser/{icons-CajfDpy_.js → icons-Db2Jb2iX.js} +30 -10
- package/dist/browser/preview.css +40 -52
- package/dist/browser/preview.js +7752 -7452
- package/dist/browser/theme.css +4 -0
- package/dist/browser/{typeScriptSession-fXPMFGjW.js → typeScriptSession-D0bjYDeg.js} +1 -1
- package/dist/browser/ui.css +39 -51
- package/dist/browser/ui.js +5 -5
- package/dist/browser/{value-DL_poNiC.js → value-BADHeZ9I.js} +12 -1
- package/dist/browser/workbench-contract.d.ts +10 -0
- package/dist/browser/workbench.css +43 -59
- package/dist/browser/workbench.d.ts +5 -3
- package/dist/browser/workbench.js +255 -216
- package/dist/browser/{workbenchSelect-H9wzEFkH.js → workbenchSelect-C-jf6NIM.js} +1 -1
- package/dist/command/index.js +49 -48
- package/dist/common/authoringSchema.d.ts +1 -0
- package/dist/common/canvas-commands.d.ts +19 -0
- package/dist/common/connector-action.d.ts +1 -0
- package/dist/common/connector-action.js +15 -12
- package/dist/common/control-api-conformance.js +127 -8
- package/dist/common/control-api.d.ts +16 -0
- package/dist/common/control-api.js +67 -8
- package/dist/common/control-requests.d.ts +23 -0
- package/dist/common/control-requests.js +64 -19
- package/dist/common/decision.js +8 -7
- package/dist/common/flow-connectionUsage.d.ts +1 -0
- package/dist/common/flow-encoding.d.ts +1 -0
- package/dist/common/flow-encoding.js +202 -10
- package/dist/common/flow-notifications.d.ts +6 -0
- package/dist/common/flow-semantics.js +64 -46
- package/dist/common/flow-workflowFile.d.ts +23 -0
- package/dist/common/integration-trigger.js +8 -7
- package/dist/common/localization.d.ts +1 -0
- package/dist/common/localization.js +12 -1
- package/dist/common/mcp.d.ts +103 -0
- package/dist/common/mcp.js +135 -11
- package/dist/common/openapi.js +8 -7
- package/dist/common/poll-trigger.js +8 -7
- package/dist/common/runtime-contract.js +1 -1
- package/dist/common/scheduler.d.ts +22 -2
- package/dist/common/scheduler.js +354 -83
- package/dist/common/trigger-config.d.ts +2 -0
- package/dist/common/webhook-trigger.js +8 -7
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
- package/skills/open-flow/SKILL.md +1 -1
- package/skills/open-flow/references/flow-authoring.md +49 -0
|
@@ -6059,7 +6059,7 @@ var Input = React.forwardRef(function Input({ className, type, controlSize = "de
|
|
|
6059
6059
|
ref,
|
|
6060
6060
|
type,
|
|
6061
6061
|
"data-slot": "input",
|
|
6062
|
-
className: cn("h-8 w-full min-w-0 rounded-[var(--ui-control-radius,calc(var(--ui-radius)_+_2px))] border border-input bg-[var(--ui-control-background,var(--ui-muted))] px-2.5 py-1 text-
|
|
6062
|
+
className: cn("h-8 w-full min-w-0 rounded-[var(--ui-control-radius,calc(var(--ui-radius)_+_2px))] border border-input bg-[var(--ui-control-background,var(--ui-muted))] px-2.5 py-1 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground read-only:cursor-default placeholder:text-muted-foreground data-[slot=input]:focus-visible:text-field-focus data-[slot=input]:focus-visible:aria-invalid:invalid-text-field-focus disabled:pointer-events-none disabled:cursor-[var(--ui-disabled-cursor,not-allowed)] disabled:bg-[var(--ui-disabled-background,color-mix(in_srgb,var(--ui-input)_50%,transparent))] disabled:opacity-[var(--ui-disabled-opacity,0.5)] aria-invalid:border-destructive dark:bg-[var(--ui-control-background,var(--ui-muted))] dark:disabled:bg-[var(--ui-disabled-background,color-mix(in_srgb,var(--ui-input)_80%,transparent))]", controlSize === "field" && "h-[30px] px-2 text-xs", className),
|
|
6063
6063
|
...props
|
|
6064
6064
|
});
|
|
6065
6065
|
});
|
|
@@ -21514,6 +21514,25 @@ function mapConditionSources(node, map) {
|
|
|
21514
21514
|
}))
|
|
21515
21515
|
};
|
|
21516
21516
|
}
|
|
21517
|
+
function clearConditionBinding(operand) {
|
|
21518
|
+
return operand.kind == "source" && operand.source.kind == "binding" ? { kind: "value" } : operand;
|
|
21519
|
+
}
|
|
21520
|
+
function clearConditionBindings(node) {
|
|
21521
|
+
return {
|
|
21522
|
+
...node,
|
|
21523
|
+
cases: node.cases.map((item) => ({
|
|
21524
|
+
...item,
|
|
21525
|
+
groups: item.groups.map((group) => ({
|
|
21526
|
+
...group,
|
|
21527
|
+
expressions: group.expressions.map((expression) => ({
|
|
21528
|
+
...expression,
|
|
21529
|
+
left: clearConditionBinding(expression.left),
|
|
21530
|
+
...expression.right == null ? {} : { right: clearConditionBinding(expression.right) }
|
|
21531
|
+
}))
|
|
21532
|
+
}))
|
|
21533
|
+
}))
|
|
21534
|
+
};
|
|
21535
|
+
}
|
|
21517
21536
|
function setConditionInput(node, handle, mapping) {
|
|
21518
21537
|
const entry = conditionOperands(node).find((item) => item.handle == handle);
|
|
21519
21538
|
if (entry == null) throw new Error("Condition operand does not exist.");
|
|
@@ -23174,10 +23193,10 @@ function compileEnumAndConst(context, enumList, constValue, schema) {
|
|
|
23174
23193
|
}
|
|
23175
23194
|
if (compiledEnum.length === 0) recordWarn(context, "all of elements from list is rejected by currently schema object", "enum");
|
|
23176
23195
|
}
|
|
23177
|
-
if (constValue && valid(schema, constValue) === ValidResult.Invalid) isNever = true;
|
|
23196
|
+
if (constValue !== void 0 && valid(schema, constValue) === ValidResult.Invalid) isNever = true;
|
|
23178
23197
|
if (compiledEnum) {
|
|
23179
23198
|
if (compiledEnum.length === 0) isNever = true;
|
|
23180
|
-
else if (constValue) {
|
|
23199
|
+
else if (constValue !== void 0) {
|
|
23181
23200
|
let foundEquals = false;
|
|
23182
23201
|
for (const enumValue of compiledEnum) if (isDeepEquals(enumValue, constValue)) {
|
|
23183
23202
|
foundEquals = true;
|
|
@@ -23190,7 +23209,7 @@ function compileEnumAndConst(context, enumList, constValue, schema) {
|
|
|
23190
23209
|
const compiledSchema = {};
|
|
23191
23210
|
if (schema.type) compiledSchema.type = schema.type;
|
|
23192
23211
|
if (compiledEnum) compiledSchema.enum = compiledEnum;
|
|
23193
|
-
if (constValue) compiledSchema.const = wrapCompiledValue(deepCopy(constValue));
|
|
23212
|
+
if (constValue !== void 0) compiledSchema.const = wrapCompiledValue(deepCopy(constValue));
|
|
23194
23213
|
return wrapCompiledSchema(kind, compiledSchema, context.delegate, context.path);
|
|
23195
23214
|
}
|
|
23196
23215
|
//#endregion
|
|
@@ -23585,7 +23604,7 @@ function compileSchema(context, schema) {
|
|
|
23585
23604
|
let targetSchema = schema;
|
|
23586
23605
|
let shouldHandleEnumAndConst = false;
|
|
23587
23606
|
const { enum: enumList, const: constValue } = schema;
|
|
23588
|
-
if (enumList || constValue) {
|
|
23607
|
+
if (enumList || constValue !== void 0) {
|
|
23589
23608
|
const { enum: _0, const: _1, ...rest } = schema;
|
|
23590
23609
|
targetSchema = rest;
|
|
23591
23610
|
shouldHandleEnumAndConst = true;
|
|
@@ -24175,7 +24194,7 @@ function schemaEqualsChecker(extendsContext) {
|
|
|
24175
24194
|
}
|
|
24176
24195
|
function isValueEquals(value1, value2) {
|
|
24177
24196
|
if (value1 === value2) return true;
|
|
24178
|
-
if (value1 === null) return false;
|
|
24197
|
+
if (value1 === null || value2 === null) return false;
|
|
24179
24198
|
if (typeof value1 !== "object") return false;
|
|
24180
24199
|
if (typeof value1 !== typeof value2) return false;
|
|
24181
24200
|
if (isCompiledSchema(value1) && isCompiledSchema(value2)) return isCompiledSchemaEquals(value1, value2);
|
|
@@ -24741,7 +24760,7 @@ function findMismatchPath(source, target) {
|
|
|
24741
24760
|
if ((sourceSchema.maxProperties ?? Number.POSITIVE_INFINITY) > (targetSchema.maxProperties ?? Number.POSITIVE_INFINITY)) return [...targetPath, "maxProperties"];
|
|
24742
24761
|
break;
|
|
24743
24762
|
}
|
|
24744
|
-
case CompiledKind.EnumOrConst: return [...targetPath, targetSchema.const
|
|
24763
|
+
case CompiledKind.EnumOrConst: return [...targetPath, targetSchema.const === void 0 ? "enum" : "const"];
|
|
24745
24764
|
}
|
|
24746
24765
|
return targetPath;
|
|
24747
24766
|
}
|
|
@@ -25540,7 +25559,8 @@ var managedFields = object({
|
|
|
25540
25559
|
object({
|
|
25541
25560
|
kind: literal("connector"),
|
|
25542
25561
|
action: text,
|
|
25543
|
-
connectionId: text.optional()
|
|
25562
|
+
connectionId: text.optional(),
|
|
25563
|
+
outputMode: literal("value").optional()
|
|
25544
25564
|
}),
|
|
25545
25565
|
object({
|
|
25546
25566
|
kind: literal("openapi"),
|
|
@@ -27320,7 +27340,7 @@ function DialogTitle({ className, ...props }) {
|
|
|
27320
27340
|
function DialogDescription({ className, ...props }) {
|
|
27321
27341
|
return /* @__PURE__ */ jsx(DialogDescription$1, {
|
|
27322
27342
|
"data-slot": "dialog-description",
|
|
27323
|
-
className: cn("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
|
|
27343
|
+
className: cn("m-0 text-sm text-muted-foreground *:[a]:text-inherit *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
|
|
27324
27344
|
...props
|
|
27325
27345
|
});
|
|
27326
27346
|
}
|
|
@@ -27511,4 +27531,4 @@ function Icon({ name, size = 18, ...props }) {
|
|
|
27511
27531
|
});
|
|
27512
27532
|
}
|
|
27513
27533
|
//#endregion
|
|
27514
|
-
export {
|
|
27534
|
+
export { operandHandle as $, Store as $n, inputChange as $r, InternalBackdrop as $t, decisionLimits as A, warn as Ai, createInitialPopupStoreState as An, isAndroid as Ar, SelectValue as At, FlowChangeError as B, useRefWithInit as Bi, FloatingNode as Bn, useAnimationsFinished as Br, COMPOSITE_KEYS as Bt, FieldDescription as C, cn as Ci, useListNavigation as Cn, isIndexOutOfListBounds as Cr, Select as Ct, authoringDefinitionSchemas as D, EMPTY_ARRAY as Di, useFocus as Dn, activeElement as Dr, SelectItem as Dt, FieldLabel as E, useRenderElement as Ei, useHoverFloatingInteraction as En, isInteractiveElement as Er, SelectGroup as Et, limitDecisionQuestions as F, formatErrorMessage as Fi, useTriggerDataForwarding as Fn, ChevronDown as Fr, ARROW_DOWN as Ft, normalizeNodeName as G, FloatingTreeStore as Gn, createChangeEventDetails as Gr, VERTICAL_KEYS as Gt, isSchemaKeyword as H, isElement as Hi, useFloatingNodeId as Hn, transitionStatusMapping as Hr, HORIZONTAL_KEYS as Ht, comparePorts as I, mergeProps$1 as Ii, useTriggerRegistration as In, Check as Ir, ARROW_KEYS as It, clearConditionBindings as J, DROPDOWN_COLLISION_AVOIDANCE as Jn, clearPress as Jr, scrollIntoViewIfNeeded as Jt, portsByHandle as K, FloatingPortal as Kn, createGenericEventDetails as Kr, VERTICAL_KEYS_WITH_EXTRA_KEYS as Kt, matchesSchema as L, useIsoLayoutEffect as Li, useDismiss as Ln, createLucideIcon as Lr, ARROW_LEFT as Lt, decisionQuestionIssues as M, useButton as Mi, PopupTriggerMap as Mn, isMac as Mr, IndexGuessBehavior as Mt, decisionTask as N, CompositeRootContext as Ni, useImplicitActiveTrigger as Nn, ownerDocument as Nr, useCompositeListItem as Nt, decodeRevisionContent as O, EMPTY_OBJECT as Oi, useSyncedFloatingRootContext as On, contains as Or, SelectSeparator as Ot, defaultDecisionQuestion as P, useCompositeRootContext as Pi, useOpenStateTransitions as Pn, useLabelableId as Pr, ALL_KEYS as Pt, nodeInputMappings as Q, ReactStore as Qn, imperativeAction as Qr, getDisabledMountTransitionStyles as Qt, schemaObject as R, SafeReact as Ri, useClick as Rn, useTransitionStatus as Rr, ARROW_RIGHT as Rt, Field as S, buttonVariants as Si, useRole as Sn, getMinListIndex as Sr, unknown as St, FieldGroup as T, clsx as Ti, useHoverReferenceInteraction as Tn, stopEvent as Tr, SelectContent as Tt, nextNodeName as U, isHTMLElement as Ui, useFloatingParentNodeId as Un, useOnMount as Ur, HORIZONTAL_KEYS_WITH_EXTRA_KEYS as Ut, applyFlowChanges as V, getParentNode as Vi, FloatingTree as Vn, TransitionStatusDataAttributes as Vr, HOME as Vt, nodeNameIssue as W, isLastTraversableNode as Wi, useFloatingTree as Wn, useValueChanged as Wr, MODIFIER_KEYS as Wt, conditionInputPorts as X, FocusGuard as Xn, escapeKey as Xr, useAnchoredPopupScrollLock as Xt, comparisonIssue as Y, POPUP_COLLISION_AVOIDANCE as Yn, closePress as Yr, useToolbarRootContext as Yt, mapConditionSources as Z, addEventListener as Zn, focusOut as Zr, usePositioner as Zt, TooltipPositioner as _, fieldValidityMapping as _i, findItemIndex as _n, findNonDisabledListIndex as _r, object as _t, DialogDescription as a, outsidePress as ai, getPseudoElementBounds as an, createSelector as ar, dequal as at, TooltipRoot as b, useControlled as bi, safePolygon as bn, getGridNavigatedIndex as br, string as bt, DialogTitle as c, triggerHover as ci, triggerOpenStateMapping as cn, Label as cr, _enum as ct, TooltipContent as d, useFormContext as di, hasNullItemLabel as dn, useTimeout as dr, discriminatedUnion as dt, inputClear as ei, useAnchorPositioning as en, useStore as er, operatorsForType as et, TooltipProvider as f, useRegisterFieldControl as fi, isGroupedItems as fn, getNextTabbable as fr, int as ft, TooltipPopup as g, DEFAULT_FIELD_STATE_ATTRIBUTES as gi, defaultItemEquality as gn, createGridCellMap as gr, number as gt, TooltipArrow as h, useId$1 as hi, compareItemEquality as hn, isOutsideEvent as hr, literal as ht, DialogContent as i, none as ii, inertValue as in, require_builtin_esm_external_require_react as ir, format as it, decisionModel as j, useMergedRefs as ji, popupStoreSelectors as jn, isFirefox as jr, Separator as jt, checkJsonDepth as k, NOOP as ki, useFloatingRootContext as kn, getTarget as kr, SelectTrigger as kt, DialogTrigger as l, triggerPress as li, resolveAriaLabelledBy as ln, Input as lr, array as lt, createTooltipHandle as m, useBaseUiId as mi, stringifyAsValue as mn, getTabbableBeforeElement as mr, lazy$1 as mt, Dialog as n, itemPress as ni, useDirection as nn, fastComponentRef as nr, unaryOperator as nt, DialogFooter as o, siblingOpen as oi, popupStateMapping as on, useValueAsRef as or, webhookMethods as ot, TooltipTrigger as p, useFieldRootContext as pi, stringifyAsLabel as pn, getTabbableAfterElement as pr, json$1 as pt, resourceNameIssue as q, CLICK_TRIGGER_IDENTIFIER as qn, cancelOpen as qr, isNativeInput as qt, DialogClose as r, listNavigation as ri, CompositeList as rn, require_with_selector as rr, valueType as rt, DialogHeader as s, triggerFocus as si, pressableTriggerOpenStateMapping as sn, useOnFirstRender as sr, webhookSupportsBody as st, Icon as t, inputPress as ti, adaptiveOrigin as tn, fastComponent as tr, otherwiseOutput as tt, Tooltip as u, useLabelableContext as ui, useOpenInteractionType as un, Timeout as ur, boolean as ut, TooltipPortal as v, visuallyHidden as vi, removeItem as vn, getGridCellIndexOfCorner as vr, record$1 as vt, FieldError as w, cva as wi, useInteractions as wn, isListIndexDisabled as wr, SelectChevron as wt, Spinner as x, Button as xi, useTypeahead as xn, getMaxListIndex as xr, union as xt, TooltipTrigger$1 as y, visuallyHiddenInput as yi, selectedValueIncludes as yn, getGridCellIndices as yr, strictObject as yt, variableInputCompatible as z, useStableCallback as zi, FloatingFocusManager as zn, useOpenChangeComplete as zr, ARROW_UP as zt };
|