@oomol-lab/open-flow 0.1.0-beta.65 → 0.1.0-beta.66
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-BAJXbzNH.js → createResourceDialog-C-Si_cYs.js} +2 -2
- package/dist/browser/flow-authoring-node.d.ts +12 -3
- package/dist/browser/flow-authoring.js +114 -19
- package/dist/browser/flow-change-schema.d.ts +3 -1
- package/dist/browser/flow-change.d.ts +15 -3
- package/dist/browser/flow-change.js +111 -16
- package/dist/browser/{flowChanges-DkvG5uDq.js → flowChanges-T4_R5p1f.js} +2654 -1858
- package/dist/browser/{flowRunInputEditorStore-B2Rw4VsT.js → flowRunInputEditorStore-DJqmR6Qh.js} +3 -2
- package/dist/browser/{flowWorkspace-BEp-lxqF.js → flowWorkspace-C0J5C0oM.js} +700 -224
- package/dist/browser/{icons-Db2Jb2iX.js → icons-BD3m0RQq.js} +4484 -4370
- package/dist/browser/preview.css +152 -64
- package/dist/browser/preview.js +4460 -3412
- package/dist/browser/ui.css +85 -3
- package/dist/browser/ui.js +8 -5
- package/dist/browser/workbench.css +152 -64
- package/dist/browser/workbench.js +146 -57
- package/dist/browser/{workbenchSelect-C-jf6NIM.js → workbenchSelect-B-PFpF_Q.js} +1 -1
- package/dist/command/index.js +49 -49
- package/dist/common/authoring.d.ts +7 -5
- package/dist/common/authoringExamples.d.ts +3 -3
- package/dist/common/authoringFields.d.ts +20 -0
- package/dist/common/authoringSchema.d.ts +404 -15
- package/dist/common/control-api-conformance.js +384 -137
- package/dist/common/control-api.d.ts +63 -7
- package/dist/common/control-api.js +3562 -3428
- package/dist/common/control-requests.d.ts +10 -3
- package/dist/common/control-requests.js +418 -43
- package/dist/common/decision.js +28 -3
- package/dist/common/flow-encoding.d.ts +4 -2
- package/dist/common/flow-encoding.js +144 -10
- package/dist/common/flow-graph.d.ts +1 -1
- package/dist/common/flow-semantics.d.ts +12 -2
- package/dist/common/flow-semantics.js +146 -33
- package/dist/common/integration-trigger.js +28 -3
- package/dist/common/liveDetails.d.ts +26 -11
- package/dist/common/mcp.d.ts +6 -3
- package/dist/common/mcp.js +203 -84
- package/dist/common/openapi.js +28 -3
- package/dist/common/poll-trigger.js +28 -3
- package/dist/common/run-events.d.ts +2 -0
- package/dist/common/run-events.js +9 -3
- package/dist/common/scheduler.d.ts +10 -1
- package/dist/common/scheduler.js +167 -45
- package/dist/common/trigger-contract.d.ts +2 -0
- package/dist/common/webhook-trigger.js +28 -3
- package/dist/common/workflow.d.ts +93 -0
- package/dist/common/workflow.js +10491 -0
- package/package.json +5 -1
- package/skills/open-flow/references/flow-authoring.md +26 -16
package/dist/browser/ui.css
CHANGED
|
@@ -1439,6 +1439,10 @@
|
|
|
1439
1439
|
max-height: min(40vh, 280px);
|
|
1440
1440
|
}
|
|
1441
1441
|
|
|
1442
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-\[min\(50vh\,360px\,calc\(var\(--available-height\)-0\.5rem\)\)\] {
|
|
1443
|
+
max-height: min(50vh, 360px, calc(var(--available-height) - .5rem));
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1442
1446
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-\[min\(60dvh\,480px\)\] {
|
|
1443
1447
|
max-height: min(60dvh, 480px);
|
|
1444
1448
|
}
|
|
@@ -1883,6 +1887,10 @@
|
|
|
1883
1887
|
grid-template-columns: minmax(0, 1fr);
|
|
1884
1888
|
}
|
|
1885
1889
|
|
|
1890
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .grid-cols-\[minmax\(0\,1fr\)_380px\] {
|
|
1891
|
+
grid-template-columns: minmax(0, 1fr) 380px;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1886
1894
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .grid-cols-\[minmax\(0\,1fr\)_auto\] {
|
|
1887
1895
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
1888
1896
|
}
|
|
@@ -2427,7 +2435,17 @@
|
|
|
2427
2435
|
}
|
|
2428
2436
|
}
|
|
2429
2437
|
|
|
2430
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .bg-foreground, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .bg-foreground\/
|
|
2438
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .bg-foreground, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .bg-foreground\/3 {
|
|
2439
|
+
background-color: var(--ui-foreground);
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2443
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .bg-foreground\/3 {
|
|
2444
|
+
background-color: color-mix(in oklab, var(--ui-foreground) 3%, transparent);
|
|
2445
|
+
}
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .bg-foreground\/5 {
|
|
2431
2449
|
background-color: var(--ui-foreground);
|
|
2432
2450
|
}
|
|
2433
2451
|
|
|
@@ -2717,6 +2735,10 @@
|
|
|
2717
2735
|
padding-left: calc(var(--spacing) * 4);
|
|
2718
2736
|
}
|
|
2719
2737
|
|
|
2738
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .pl-6 {
|
|
2739
|
+
padding-left: calc(var(--spacing) * 6);
|
|
2740
|
+
}
|
|
2741
|
+
|
|
2720
2742
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .pl-8 {
|
|
2721
2743
|
padding-left: calc(var(--spacing) * 8);
|
|
2722
2744
|
}
|
|
@@ -3726,7 +3748,17 @@
|
|
|
3726
3748
|
}
|
|
3727
3749
|
}
|
|
3728
3750
|
|
|
3729
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .hover\:bg-foreground:hover, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .hover\:bg-foreground\/
|
|
3751
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .hover\:bg-foreground:hover, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .hover\:bg-foreground\/7:hover {
|
|
3752
|
+
background-color: var(--ui-foreground);
|
|
3753
|
+
}
|
|
3754
|
+
|
|
3755
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3756
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .hover\:bg-foreground\/7:hover {
|
|
3757
|
+
background-color: color-mix(in oklab, var(--ui-foreground) 7%, transparent);
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .hover\:bg-foreground\/10:hover {
|
|
3730
3762
|
background-color: var(--ui-foreground);
|
|
3731
3763
|
}
|
|
3732
3764
|
|
|
@@ -4813,6 +4845,33 @@
|
|
|
4813
4845
|
outline-offset: calc(-1 * var(--ui-danger-border-width, 1px));
|
|
4814
4846
|
}
|
|
4815
4847
|
|
|
4848
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .data-\[slot\=select-trigger\]\:focus-visible\:text-field-focus[data-slot="select-trigger"]:focus-visible {
|
|
4849
|
+
outline: 2px solid var(--ui-ring);
|
|
4850
|
+
outline-offset: -1px;
|
|
4851
|
+
box-shadow: none;
|
|
4852
|
+
transition-property: color, background-color;
|
|
4853
|
+
}
|
|
4854
|
+
|
|
4855
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .data-\[slot\=select-trigger\]\:focus-visible\:text-field-focus[data-slot="select-trigger"]:focus-visible[readonly] {
|
|
4856
|
+
outline: var(--ui-readonly-focus-outline, 2px solid var(--ui-ring));
|
|
4857
|
+
}
|
|
4858
|
+
|
|
4859
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .data-\[slot\=select-trigger\]\:focus-visible\:aria-invalid\:invalid-text-field-focus[data-slot="select-trigger"]:focus-visible[aria-invalid="true"] {
|
|
4860
|
+
outline: 2px solid var(--ui-ring);
|
|
4861
|
+
outline-offset: -1px;
|
|
4862
|
+
box-shadow: none;
|
|
4863
|
+
transition-property: color, background-color;
|
|
4864
|
+
}
|
|
4865
|
+
|
|
4866
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .data-\[slot\=select-trigger\]\:focus-visible\:aria-invalid\:invalid-text-field-focus[data-slot="select-trigger"]:focus-visible[aria-invalid="true"][readonly] {
|
|
4867
|
+
outline: var(--ui-readonly-focus-outline, 2px solid var(--ui-ring));
|
|
4868
|
+
}
|
|
4869
|
+
|
|
4870
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .data-\[slot\=select-trigger\]\:focus-visible\:aria-invalid\:invalid-text-field-focus[data-slot="select-trigger"]:focus-visible[aria-invalid="true"] {
|
|
4871
|
+
outline-color: var(--ui-destructive);
|
|
4872
|
+
outline-offset: calc(-1 * var(--ui-danger-border-width, 1px));
|
|
4873
|
+
}
|
|
4874
|
+
|
|
4816
4875
|
:is(:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .\*\:data-\[slot\=select-value\]\:line-clamp-1 > *)[data-slot="select-value"] {
|
|
4817
4876
|
-webkit-line-clamp: 1;
|
|
4818
4877
|
-webkit-box-orient: vertical;
|
|
@@ -5184,7 +5243,17 @@
|
|
|
5184
5243
|
}
|
|
5185
5244
|
}
|
|
5186
5245
|
|
|
5187
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .dark\:hover\:bg-foreground:where([data-theme="dark"], [data-theme="dark"] *):hover, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .dark\:hover\:bg-foreground\/
|
|
5246
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .dark\:hover\:bg-foreground:where([data-theme="dark"], [data-theme="dark"] *):hover, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .dark\:hover\:bg-foreground\/7:where([data-theme="dark"], [data-theme="dark"] *):hover {
|
|
5247
|
+
background-color: var(--ui-foreground);
|
|
5248
|
+
}
|
|
5249
|
+
|
|
5250
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
5251
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .dark\:hover\:bg-foreground\/7:where([data-theme="dark"], [data-theme="dark"] *):hover {
|
|
5252
|
+
background-color: color-mix(in oklab, var(--ui-foreground) 7%, transparent);
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
|
|
5256
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .dark\:hover\:bg-foreground\/10:where([data-theme="dark"], [data-theme="dark"] *):hover {
|
|
5188
5257
|
background-color: var(--ui-foreground);
|
|
5189
5258
|
}
|
|
5190
5259
|
|
|
@@ -5754,6 +5823,19 @@
|
|
|
5754
5823
|
font-family: inherit;
|
|
5755
5824
|
}
|
|
5756
5825
|
|
|
5826
|
+
@supports (position-anchor: --open-flow-canvas) {
|
|
5827
|
+
[data-sonner-toaster].open-flow-notifications[data-sonner-theme][data-x-position="center"] {
|
|
5828
|
+
position-anchor: --open-flow-canvas;
|
|
5829
|
+
left: anchor(center, 50%);
|
|
5830
|
+
max-width: calc(anchor-size(width, 100%) - 24px);
|
|
5831
|
+
transform: translateX(-50%);
|
|
5832
|
+
}
|
|
5833
|
+
|
|
5834
|
+
[data-sonner-toaster].open-flow-notifications[data-sonner-theme][data-x-position="center"][data-y-position="top"] {
|
|
5835
|
+
top: calc(anchor(top, calc(var(--offset-top) - 16px)) + 16px);
|
|
5836
|
+
}
|
|
5837
|
+
}
|
|
5838
|
+
|
|
5757
5839
|
[data-sonner-toaster].open-flow-notifications[data-sonner-theme] [data-sonner-toast] {
|
|
5758
5840
|
transition-duration: .3s;
|
|
5759
5841
|
}
|
package/dist/browser/ui.js
CHANGED
|
@@ -19617,12 +19617,13 @@ var themeIcons = {
|
|
|
19617
19617
|
dark: "i-lucide-light:moon",
|
|
19618
19618
|
auto: "i-lucide-light:sun-moon"
|
|
19619
19619
|
};
|
|
19620
|
+
var actionClassName = "rounded-full bg-foreground/3 text-foreground hover:bg-foreground/7 dark:hover:bg-foreground/7";
|
|
19620
19621
|
/** Shared host navigation; each host owns preference storage and localized labels. */
|
|
19621
19622
|
function HostNavigationActions({ className, language, onLanguageChange, theme, onThemeChange, labels }) {
|
|
19622
19623
|
const themeId = useId();
|
|
19623
19624
|
const languageId = useId();
|
|
19624
19625
|
return /* @__PURE__ */ jsxs("div", {
|
|
19625
|
-
className,
|
|
19626
|
+
className: cn("flex items-center gap-2", className),
|
|
19626
19627
|
children: [
|
|
19627
19628
|
/* @__PURE__ */ jsx(HostTooltip, {
|
|
19628
19629
|
label: "GitHub",
|
|
@@ -19633,8 +19634,8 @@ function HostNavigationActions({ className, language, onLanguageChange, theme, o
|
|
|
19633
19634
|
rel: "noopener noreferrer",
|
|
19634
19635
|
className: buttonVariants({
|
|
19635
19636
|
variant: "ghost",
|
|
19636
|
-
size: "icon
|
|
19637
|
-
className:
|
|
19637
|
+
size: "icon",
|
|
19638
|
+
className: actionClassName
|
|
19638
19639
|
}),
|
|
19639
19640
|
"aria-label": "GitHub",
|
|
19640
19641
|
children: /* @__PURE__ */ jsx("i", {
|
|
@@ -19647,8 +19648,9 @@ function HostNavigationActions({ className, language, onLanguageChange, theme, o
|
|
|
19647
19648
|
label: labels.theme,
|
|
19648
19649
|
side: "bottom",
|
|
19649
19650
|
children: /* @__PURE__ */ jsx(Button$1, {
|
|
19651
|
+
className: actionClassName,
|
|
19650
19652
|
variant: "ghost",
|
|
19651
|
-
size: "icon
|
|
19653
|
+
size: "icon",
|
|
19652
19654
|
type: "button",
|
|
19653
19655
|
"aria-label": labels.theme,
|
|
19654
19656
|
popovertarget: themeId,
|
|
@@ -19662,8 +19664,9 @@ function HostNavigationActions({ className, language, onLanguageChange, theme, o
|
|
|
19662
19664
|
label: labels.language,
|
|
19663
19665
|
side: "bottom",
|
|
19664
19666
|
children: /* @__PURE__ */ jsx(Button$1, {
|
|
19667
|
+
className: actionClassName,
|
|
19665
19668
|
variant: "ghost",
|
|
19666
|
-
size: "icon
|
|
19669
|
+
size: "icon",
|
|
19667
19670
|
type: "button",
|
|
19668
19671
|
popovertarget: languageId,
|
|
19669
19672
|
"aria-label": labels.language,
|