@oomol-lab/open-flow 0.1.0-beta.39 → 0.1.0-beta.40
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/codeDiagnostics-BtH_YuXu.js +44 -0
- package/dist/browser/{createResourceDialog-DnlKSqIs.js → createResourceDialog-BOrW62JW.js} +1 -1
- package/dist/browser/{dist-DYjIVIZC.js → dist-Cdna4VV_.js} +1 -1
- package/dist/browser/{dist-CeSZ2xSM.js → dist-DINmJ4Gr.js} +171 -112
- package/dist/browser/{editorComponent-T-GmTa-C.js → editorComponent-0skblWYk.js} +190 -107
- package/dist/browser/flow-authoring-node.d.ts +2 -5
- package/dist/browser/flow-authoring.js +111 -83
- package/dist/browser/flow-change-schema.d.ts +1 -1
- package/dist/browser/flow-change.d.ts +16 -5
- package/dist/browser/flow-change.js +196 -143
- package/dist/browser/{flowChanges-BXqN4jyH.js → flowChanges-3o9Vs_1I.js} +2479 -3906
- package/dist/browser/{flowWorkspace-a5QLISui.js → flowWorkspace-DJzQVVtZ.js} +12035 -10159
- package/dist/browser/{inputValues-Do4FrC_6.js → inputValues-DkDT6u0o.js} +1 -1
- package/dist/browser/{typeScriptSession-vC9uPDVV.js → typeScriptSession-v9Pb3G6d.js} +136 -136
- package/dist/browser/ui.css +1 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +0 -3
- package/dist/browser/workbench.js +1046 -1025
- package/dist/browser/{workbenchSelect-Dx2Y46cD.js → workbenchSelect-B5zXyaaX.js} +1116 -1063
- package/dist/common/connectorDecoders.d.ts +2 -1
- package/dist/common/control-api-conformance.js +1589 -1518
- package/dist/common/control-api.d.ts +18 -6
- package/dist/common/control-api.js +1470 -1392
- package/dist/common/control-requests.js +1550 -1535
- package/dist/common/draftOperations.d.ts +0 -1
- package/dist/common/flow-connectionUsage.d.ts +1 -1
- package/dist/common/flow-encoding.js +1092 -1060
- package/dist/common/flow-semantics.d.ts +1 -0
- package/dist/common/flow-semantics.js +2777 -2699
- package/dist/common/flowInspection.d.ts +1 -1
- package/dist/common/integration-trigger.js +350 -328
- package/dist/common/mcp.d.ts +27 -0
- package/dist/common/mcp.js +807 -728
- package/dist/common/poll-trigger.js +993 -971
- package/dist/common/provider-triggers.js +1521 -1203
- package/dist/common/runtime-contract.js +13 -6
- package/dist/common/scheduler.js +1430 -1408
- package/dist/common/trigger-catalog.d.ts +2 -1
- package/dist/common/webhook-trigger.js +221 -199
- package/dist/common/{zh-CN-D2od3TNw.js → zh-CN-CxZ3yYfR.js} +2 -2
- package/package.json +1 -1
|
@@ -402,7 +402,7 @@ function p(e) {
|
|
|
402
402
|
} });
|
|
403
403
|
}
|
|
404
404
|
function m(e, t) {
|
|
405
|
-
let n = Object.assign(/* @__PURE__ */ Error("The Action request is invalid."), { code: "capability.invalid" }), r = Object.assign(/* @__PURE__ */ Error("The Connection
|
|
405
|
+
let n = Object.assign(/* @__PURE__ */ Error("The Action request is invalid."), { code: "capability.invalid" }), r = Object.assign(/* @__PURE__ */ Error("The Action or Connection is unavailable for this Code node."), { code: "capability.denied" });
|
|
406
406
|
if (typeof t != "object" || !t || Array.isArray(t)) throw n;
|
|
407
407
|
let i = t;
|
|
408
408
|
if (Object.keys(i).some((e) => ![
|
|
@@ -410,27 +410,34 @@ function m(e, t) {
|
|
|
410
410
|
"input",
|
|
411
411
|
"options"
|
|
412
412
|
].includes(e)) || typeof i.action != "string" || !/^[A-Za-z0-9_-]+\.[A-Za-z0-9_.-]+$/.test(i.action) || i.input == null || typeof i.input != "object" || Array.isArray(i.input)) throw n;
|
|
413
|
-
let a = e.
|
|
413
|
+
let a = e.find((e) => "mode" in e), o = a?.mode == "independent" ? a.actions.find((e) => e.action == i.action) : void 0;
|
|
414
|
+
if (a?.mode == "independent" && o == null) throw r;
|
|
415
|
+
let s = e.flatMap((e) => "mode" in e ? [] : "action" in e ? e.action == i.action ? [...e.connections.flatMap((t) => t.alias == null ? [] : [{
|
|
414
416
|
action: e.action,
|
|
415
417
|
connectionId: t.connectionId,
|
|
416
418
|
alias: t.alias
|
|
417
419
|
}]), ...e.connectionId == null ? [] : [{
|
|
418
420
|
action: e.action,
|
|
419
421
|
connectionId: e.connectionId
|
|
420
|
-
}]] : [] : e.connectionHints?.filter((e) => e.action == i.action) ?? []),
|
|
422
|
+
}]] : [] : e.connectionHints?.filter((e) => e.action == i.action) ?? []), c = s.find((e) => e.alias == null)?.connectionId;
|
|
421
423
|
if (Object.hasOwn(i, "options")) {
|
|
422
424
|
if (i.options == null || typeof i.options != "object" || Array.isArray(i.options)) throw n;
|
|
423
425
|
let e = i.options, t = Object.keys(e);
|
|
424
426
|
if (t.length != 1) throw n;
|
|
425
|
-
if (typeof e.connectionId == "string" && e.connectionId.length > 0 && t[0] == "connectionId")
|
|
427
|
+
if (typeof e.connectionId == "string" && e.connectionId.length > 0 && t[0] == "connectionId") c = e.connectionId;
|
|
426
428
|
else if (typeof e.connectionAlias == "string" && e.connectionAlias.length > 0 && t[0] == "connectionAlias") {
|
|
427
|
-
if (
|
|
429
|
+
if (c = s.find((t) => t.alias == e.connectionAlias)?.connectionId, c == null) throw r;
|
|
428
430
|
} else throw n;
|
|
429
431
|
}
|
|
432
|
+
if (a?.mode == "independent") {
|
|
433
|
+
if (c != null && c != o?.connectionId) throw r;
|
|
434
|
+
c = o?.connectionId;
|
|
435
|
+
}
|
|
436
|
+
if (a?.mode == "shared" && Object.hasOwn(i, "options") && c == null) throw r;
|
|
430
437
|
return {
|
|
431
438
|
action: i.action,
|
|
432
439
|
input: i.input,
|
|
433
|
-
...
|
|
440
|
+
...c == null ? {} : { connectionId: c }
|
|
434
441
|
};
|
|
435
442
|
}
|
|
436
443
|
//#endregion
|