@oomol-lab/open-flow 0.1.0-beta.18 → 0.1.0-beta.19
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/{flowChanges-DR6bsnz-.js → flowChanges-jX3KYcb0.js} +12 -6
- package/dist/browser/{flowWorkspace-fsNhVe8S.js → flowWorkspace-BIYwslVl.js} +24657 -24643
- package/dist/browser/{i18n-9ypjMjOo.js → i18n-CVBh0Ni1.js} +42 -42
- package/dist/browser/{inputValues-MIPdGucY.js → inputValues-BWfRHJWC.js} +1 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +4 -4
- package/dist/common/control-api.d.ts +4 -0
- package/dist/common/control-api.js +11 -5
- package/dist/common/mcp.js +11 -5
- package/dist/common/provider-triggers.js +5930 -975
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e, i as t, l as n } from "./dist-Dz6Nglsd.js";
|
|
2
2
|
import { a as r, i, r as a, t as o } from "./main-BDnNHhkU.js";
|
|
3
|
-
import { $ as s, $t as c, A as l, C as u, Ct as d, D as f, Dt as p, F as m, G as h, I as g, J as _, L as v, M as y, N as b, O as x, P as S, Q as C, Qt as w, R as T, S as E, St as D, T as O, Tt as ee, X as k, Zt as A, _ as j, _t as te, a as M, at as ne, b as re, bt as ie, c as ae, ct as oe, d as se, dt as ce, en as le, et as ue, f as de, ft as fe, g as pe, gt as me, h as he, ht as ge, it as _e, jt as ve, k as N, l as ye, lt as be, m as xe, mt as Se, o as Ce, ot as we, p as Te, pt as P, q as F, r as I, rt as Ee, s as De, st as Oe, t as ke, tn as L, tt as Ae, u as je, ut as Me, v as Ne, vt as Pe, w as Fe, x as Ie, xt as Le, y as Re, yt as ze, z as R } from "./flowChanges-
|
|
3
|
+
import { $ as s, $t as c, A as l, C as u, Ct as d, D as f, Dt as p, F as m, G as h, I as g, J as _, L as v, M as y, N as b, O as x, P as S, Q as C, Qt as w, R as T, S as E, St as D, T as O, Tt as ee, X as k, Zt as A, _ as j, _t as te, a as M, at as ne, b as re, bt as ie, c as ae, ct as oe, d as se, dt as ce, en as le, et as ue, f as de, ft as fe, g as pe, gt as me, h as he, ht as ge, it as _e, jt as ve, k as N, l as ye, lt as be, m as xe, mt as Se, o as Ce, ot as we, p as Te, pt as P, q as F, r as I, rt as Ee, s as De, st as Oe, t as ke, tn as L, tt as Ae, u as je, ut as Me, v as Ne, vt as Pe, w as Fe, x as Ie, xt as Le, y as Re, yt as ze, z as R } from "./flowChanges-jX3KYcb0.js";
|
|
4
4
|
import { Y as Be, c as z, i as B, q as V } from "./useValueChanged-BY05Usw-.js";
|
|
5
5
|
import { $t as Ve, An as He, C as Ue, Dn as We, E as Ge, Nt as Ke, On as qe, Pt as Je, Rt as Ye, S as Xe, T as Ze, Tn as Qe, b as $e, kn as et, l as H, t as tt, w as nt, x as rt, zt as U } from "./workbenchSelect-CwP6rphY.js";
|
|
6
|
-
import { t as W } from "./i18n-
|
|
6
|
+
import { t as W } from "./i18n-CVBh0Ni1.js";
|
|
7
7
|
import { i as it, n as at, r as ot, t as st } from "./languages-C0zQ4GSo.js";
|
|
8
8
|
import { Suspense as ct, lazy as lt, useEffect as G, useRef as K, useState as q } from "react";
|
|
9
9
|
import { Fragment as ut, jsx as J, jsxs as Y } from "react/jsx-runtime";
|
|
@@ -1674,7 +1674,7 @@ function $t(e, t) {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
function en(e, t) {
|
|
1676
1676
|
return {
|
|
1677
|
-
description:
|
|
1677
|
+
description: e.description,
|
|
1678
1678
|
group: t.t("addNode.integrationTriggers"),
|
|
1679
1679
|
icon: R({
|
|
1680
1680
|
serviceId: e.provider,
|
|
@@ -3510,7 +3510,7 @@ var Sn = { openExternalPage: async () => !1 }, Cn = class {
|
|
|
3510
3510
|
return;
|
|
3511
3511
|
}
|
|
3512
3512
|
}
|
|
3513
|
-
}, wn = lt(() => import("./flowWorkspace-
|
|
3513
|
+
}, wn = lt(() => import("./flowWorkspace-BIYwslVl.js").then((e) => e.t));
|
|
3514
3514
|
function Tn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i, pending: a = !1, title: o, token: s, tokenLabel: c }) {
|
|
3515
3515
|
let l = s != null && c != null && i != null, u = s ?? "", d = /* @__PURE__ */ Y(ut, { children: [
|
|
3516
3516
|
/* @__PURE__ */ J("div", {
|
|
@@ -49,6 +49,10 @@ export interface TriggerKeySummary {
|
|
|
49
49
|
readonly type: TriggerKeySnapshot['type'];
|
|
50
50
|
}
|
|
51
51
|
export interface TriggerBinding {
|
|
52
|
+
readonly listener?: {
|
|
53
|
+
readonly health: 'healthy' | 'failed' | 'needs_reauth';
|
|
54
|
+
readonly lastErrorCode?: string;
|
|
55
|
+
};
|
|
52
56
|
readonly currentPublicationId?: string;
|
|
53
57
|
readonly currentRevisionId?: string;
|
|
54
58
|
readonly endpointUrl?: string;
|
|
@@ -5610,17 +5610,23 @@ var dl = /* @__PURE__ */ new Set([
|
|
|
5610
5610
|
"operator.resumed"
|
|
5611
5611
|
]);
|
|
5612
5612
|
function ml(e) {
|
|
5613
|
-
let t = W(e), n = t.health, r = t.
|
|
5614
|
-
|
|
5613
|
+
let t = W(e), n = t.health, r = t.listener == null ? void 0 : W(t.listener);
|
|
5614
|
+
if (r != null && r.health != "healthy" && r.health != "failed" && r.health != "needs_reauth") return U();
|
|
5615
|
+
let i = t.kind, a = t.operatorState, o = q(t.runtimeVersion);
|
|
5616
|
+
return t.version != 1 || typeof n != "string" || !fl.has(n) || typeof i != "string" || !dl.has(i) || a != "active" && a != "paused" || o <= 0 ? U() : {
|
|
5615
5617
|
...t.currentPublicationId == null ? {} : { currentPublicationId: G(t.currentPublicationId) },
|
|
5616
5618
|
...t.currentRevisionId == null ? {} : { currentRevisionId: G(t.currentRevisionId) },
|
|
5617
5619
|
...t.endpointUrl == null ? {} : { endpointUrl: G(t.endpointUrl) },
|
|
5620
|
+
...r == null ? {} : { listener: {
|
|
5621
|
+
health: r.health,
|
|
5622
|
+
...r.lastErrorCode == null ? {} : { lastErrorCode: G(r.lastErrorCode) }
|
|
5623
|
+
} },
|
|
5618
5624
|
flowId: G(t.flowId),
|
|
5619
5625
|
health: n,
|
|
5620
|
-
kind:
|
|
5626
|
+
kind: i,
|
|
5621
5627
|
...t.lastErrorCode == null ? {} : { lastErrorCode: G(t.lastErrorCode) },
|
|
5622
|
-
operatorState:
|
|
5623
|
-
runtimeVersion:
|
|
5628
|
+
operatorState: a,
|
|
5629
|
+
runtimeVersion: o,
|
|
5624
5630
|
triggerNodeId: G(t.triggerNodeId),
|
|
5625
5631
|
updatedAt: G(t.updatedAt),
|
|
5626
5632
|
version: 1
|
package/dist/common/mcp.js
CHANGED
|
@@ -5618,17 +5618,23 @@ var Al = /* @__PURE__ */ new Set([
|
|
|
5618
5618
|
"operator.resumed"
|
|
5619
5619
|
]);
|
|
5620
5620
|
function Nl(e) {
|
|
5621
|
-
let t = W(e), n = t.health, r = t.
|
|
5622
|
-
|
|
5621
|
+
let t = W(e), n = t.health, r = t.listener == null ? void 0 : W(t.listener);
|
|
5622
|
+
if (r != null && r.health != "healthy" && r.health != "failed" && r.health != "needs_reauth") return U();
|
|
5623
|
+
let i = t.kind, a = t.operatorState, o = q(t.runtimeVersion);
|
|
5624
|
+
return t.version != 1 || typeof n != "string" || !jl.has(n) || typeof i != "string" || !Al.has(i) || a != "active" && a != "paused" || o <= 0 ? U() : {
|
|
5623
5625
|
...t.currentPublicationId == null ? {} : { currentPublicationId: G(t.currentPublicationId) },
|
|
5624
5626
|
...t.currentRevisionId == null ? {} : { currentRevisionId: G(t.currentRevisionId) },
|
|
5625
5627
|
...t.endpointUrl == null ? {} : { endpointUrl: G(t.endpointUrl) },
|
|
5628
|
+
...r == null ? {} : { listener: {
|
|
5629
|
+
health: r.health,
|
|
5630
|
+
...r.lastErrorCode == null ? {} : { lastErrorCode: G(r.lastErrorCode) }
|
|
5631
|
+
} },
|
|
5626
5632
|
flowId: G(t.flowId),
|
|
5627
5633
|
health: n,
|
|
5628
|
-
kind:
|
|
5634
|
+
kind: i,
|
|
5629
5635
|
...t.lastErrorCode == null ? {} : { lastErrorCode: G(t.lastErrorCode) },
|
|
5630
|
-
operatorState:
|
|
5631
|
-
runtimeVersion:
|
|
5636
|
+
operatorState: a,
|
|
5637
|
+
runtimeVersion: o,
|
|
5632
5638
|
triggerNodeId: G(t.triggerNodeId),
|
|
5633
5639
|
updatedAt: G(t.updatedAt),
|
|
5634
5640
|
version: 1
|