@oomol-lab/open-flow 0.1.0-beta.85 → 0.1.0-beta.86
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/{FlowCanvas-CZoHhB1y.js → FlowCanvas-CHIaMaBv.js} +3 -3
- package/dist/browser/{createResourceDialog-Bi4fUnbD.js → createResourceDialog-C0E5yPe6.js} +3 -3
- package/dist/browser/{dialog-BzoSxhXQ.js → dialog-b3hsdu8i.js} +291 -143
- package/dist/browser/{exportPng-CXVWVlLc.js → exportPng-DGHcejgy.js} +2 -2
- package/dist/browser/{flowChanges-C567g-Pc.js → flowChanges-BvSWezEb.js} +375 -83
- package/dist/browser/{flowWorkspace-BNdBKtla.js → flowWorkspace-BKnMRClO.js} +1619 -475
- package/dist/browser/fr-CNTSedYU.js +593 -0
- package/dist/browser/ja-CxQBHr2J.js +593 -0
- package/dist/browser/ko-D1Exiv1h.js +593 -0
- package/dist/browser/licenses.md +1 -1
- package/dist/browser/{markdownContent-DF39sd9T.js → markdownContent-BR9-1ikU.js} +1 -1
- package/dist/browser/preview.css +181 -181
- package/dist/browser/preview.js +1994 -623
- package/dist/browser/ru-BzLZv0B7.js +593 -0
- package/dist/browser/{tooltip-DGj5pudg.js → tooltip-DSBF3bRw.js} +55 -23
- package/dist/browser/workbench.css +181 -181
- package/dist/browser/workbench.js +86 -17
- package/dist/browser/{workbenchSelect-BIaEVTx6.js → workbenchSelect-Di1Bm_-d.js} +2 -2
- package/dist/browser/{wrapLayout-C4moMKgb.js → wrapLayout-B0AT8_-i.js} +1 -1
- package/dist/browser/zh-CN-Dg_xSGde.js +593 -0
- package/dist/browser/zh-TW-oxuLwsV0.js +593 -0
- package/dist/command/index.js +61 -57
- package/dist/command/licenses.md +28 -4
- package/dist/common/authoring.d.ts +5 -5
- package/dist/common/authoringExamples.d.ts +3 -2
- package/dist/common/authoringSchema.d.ts +41 -4
- package/dist/common/catalogCache.d.ts +46 -0
- package/dist/common/connector-action.js +13 -10
- package/dist/common/connector-proxy.d.ts +96 -0
- package/dist/common/connector-proxy.js +5209 -0
- package/dist/common/control-api-conformance.js +312 -46
- package/dist/common/control-api.d.ts +12 -1
- package/dist/common/control-api.js +303 -41
- package/dist/common/control-requests.d.ts +4 -3
- package/dist/common/control-requests.js +14111 -171
- package/dist/common/engine-contract.d.ts +3 -2
- package/dist/common/event-source.js +55 -23
- package/dist/common/flow-authoring-node.d.ts +2 -0
- package/dist/common/flow-authoring.js +6936 -6781
- package/dist/common/flow-change-schema.d.ts +1 -1
- package/dist/common/flow-change.d.ts +2 -2
- package/dist/common/flow-change.js +91 -36
- package/dist/common/flow-connectionUsage.d.ts +1 -1
- package/dist/common/flow-encoding.js +93 -38
- package/dist/common/flow-requestParameters.d.ts +34 -0
- package/dist/common/flow-semantics.js +9429 -9236
- package/dist/common/flow-state.js +55 -23
- package/dist/common/flow-workflowFile.d.ts +3 -1
- package/dist/common/http-request.d.ts +6 -11
- package/dist/common/http-request.js +192 -141
- package/dist/common/licenses.md +1 -1
- package/dist/common/mcp.d.ts +3 -3
- package/dist/common/mcp.js +303 -41
- package/dist/common/run-events.js +1 -0
- package/dist/common/runtime-contract.js +10 -4
- package/dist/common/runtime-nodejs-compat.js +55 -23
- package/dist/common/scheduler-checkpoint.d.ts +3 -3
- package/dist/common/scheduler-dependencies.d.ts +22 -28
- package/dist/common/scheduler-node-execution.d.ts +1 -0
- package/dist/common/scheduler.d.ts +8 -2
- package/dist/common/scheduler.js +274 -95
- package/dist/common/workflow.js +51 -19
- package/dist/common/workflowAuthoring.d.ts +411 -0
- package/dist/render/browser/licenses.md +1 -1
- package/dist/render/browser/runtime.js +180 -48
- package/dist/render/node/index.js +85 -30
- package/dist/render/node/licenses.md +1 -1
- package/package.json +1 -1
- package/skills/open-flow/references/flow-authoring.md +14 -13
- package/src/base/common/jsonSchema.ts +11 -0
- package/src/connector/common/actionSchema.ts +4 -11
- package/src/connector/common/proxy.ts +152 -0
- package/src/control/common/api.ts +99 -3
- package/src/control/common/authoring.ts +23 -9
- package/src/control/common/authoringExamples.ts +9 -0
- package/src/control/common/authoringSchema.ts +21 -12
- package/src/control/common/catalogCache.ts +145 -0
- package/src/control/common/conformance.ts +9 -3
- package/src/control/common/connectorQueries.ts +17 -2
- package/src/control/common/requests.ts +1 -0
- package/src/control/common/workflowAuthoring.ts +120 -0
- package/src/execution/common/checkpoint.ts +18 -12
- package/src/execution/common/dependencies.ts +132 -15
- package/src/execution/common/events.ts +3 -0
- package/src/execution/common/node-execution.ts +22 -15
- package/src/execution/common/scheduler.ts +20 -31
- package/src/flow/common/change.ts +2 -1
- package/src/flow/common/changeSchema.ts +11 -1
- package/src/flow/common/connectionUsage.ts +4 -2
- package/src/flow/common/errorHandling.ts +3 -1
- package/src/flow/common/nodeChanges.ts +35 -18
- package/src/flow/common/requestParameters.ts +120 -0
- package/src/flow/common/semantics.ts +51 -1
- package/src/flow/common/sourceField.ts +3 -2
- package/src/flow/common/workflowFile.ts +2 -2
- package/src/http/common/httpRequest.ts +28 -78
- package/src/runtime/common/engineContract.ts +6 -3
package/dist/common/workflow.js
CHANGED
|
@@ -22,7 +22,7 @@ function dequal(foo, bar) {
|
|
|
22
22
|
return foo !== foo && bar !== bar;
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
25
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/util.js
|
|
26
26
|
function getEnumValues(entries) {
|
|
27
27
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
28
28
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -347,6 +347,17 @@ function prefixIssues(path, issues) {
|
|
|
347
347
|
function unwrapMessage(message) {
|
|
348
348
|
return typeof message === "string" ? message : message?.message;
|
|
349
349
|
}
|
|
350
|
+
/** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
|
|
351
|
+
function sizeCaps(defChecks) {
|
|
352
|
+
const caps = [];
|
|
353
|
+
for (const ch of defChecks ?? []) {
|
|
354
|
+
const d = ch._zod.def;
|
|
355
|
+
if (!/_(length|size)$|_equals$/.test(d.check)) break;
|
|
356
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
357
|
+
if (max >= 0) caps.push([max, ch]);
|
|
358
|
+
}
|
|
359
|
+
return caps;
|
|
360
|
+
}
|
|
350
361
|
function attachSchema(issues, start, inst) {
|
|
351
362
|
var _a;
|
|
352
363
|
for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
|
|
@@ -563,7 +574,7 @@ function constantCatch(value) {
|
|
|
563
574
|
return fn;
|
|
564
575
|
}
|
|
565
576
|
//#endregion
|
|
566
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
577
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/core.js
|
|
567
578
|
var _a$1;
|
|
568
579
|
var _zodDesc = {
|
|
569
580
|
value: void 0,
|
|
@@ -669,7 +680,7 @@ function config(newConfig) {
|
|
|
669
680
|
return globalConfig;
|
|
670
681
|
}
|
|
671
682
|
//#endregion
|
|
672
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
683
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/errors.js
|
|
673
684
|
function _getMessage() {
|
|
674
685
|
const internals = this._zod;
|
|
675
686
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -785,7 +796,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
785
796
|
return fieldErrors;
|
|
786
797
|
}
|
|
787
798
|
//#endregion
|
|
788
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
799
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/parse.js
|
|
789
800
|
function finalizeParams(callee, params) {
|
|
790
801
|
return {
|
|
791
802
|
callee: params?.callee ?? callee,
|
|
@@ -988,7 +999,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
988
999
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
989
1000
|
};
|
|
990
1001
|
//#endregion
|
|
991
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
1002
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/regexes.js
|
|
992
1003
|
/**
|
|
993
1004
|
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
994
1005
|
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
@@ -1061,7 +1072,7 @@ var _null$2 = /^null$/i;
|
|
|
1061
1072
|
var lowercase = /^[^A-Z]*$/;
|
|
1062
1073
|
var uppercase = /^[^a-z]*$/;
|
|
1063
1074
|
//#endregion
|
|
1064
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
1075
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/checks.js
|
|
1065
1076
|
var $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
1066
1077
|
var _a;
|
|
1067
1078
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1357,7 +1368,7 @@ var $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst,
|
|
|
1357
1368
|
};
|
|
1358
1369
|
});
|
|
1359
1370
|
//#endregion
|
|
1360
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
1371
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/doc.js
|
|
1361
1372
|
var Doc = class {
|
|
1362
1373
|
constructor(args = [], closed = {}) {
|
|
1363
1374
|
this.content = [];
|
|
@@ -1391,14 +1402,14 @@ var Doc = class {
|
|
|
1391
1402
|
}
|
|
1392
1403
|
};
|
|
1393
1404
|
//#endregion
|
|
1394
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
1405
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/versions.js
|
|
1395
1406
|
var version = {
|
|
1396
1407
|
major: 4,
|
|
1397
1408
|
minor: 6,
|
|
1398
|
-
patch:
|
|
1409
|
+
patch: 7
|
|
1399
1410
|
};
|
|
1400
1411
|
//#endregion
|
|
1401
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
1412
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/schemas.js
|
|
1402
1413
|
var $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1403
1414
|
var _a;
|
|
1404
1415
|
inst ?? (inst = {});
|
|
@@ -1911,6 +1922,26 @@ var $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
|
|
|
1911
1922
|
return payload;
|
|
1912
1923
|
};
|
|
1913
1924
|
});
|
|
1925
|
+
function capSize(inst, size) {
|
|
1926
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
1927
|
+
if (!caps.length) return;
|
|
1928
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
1929
|
+
const parse = inst._zod.parse;
|
|
1930
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1931
|
+
const n = size(payload.value);
|
|
1932
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
1933
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) if (n > max && ch._zod.def.when(payload)) {
|
|
1934
|
+
const start = payload.issues.length;
|
|
1935
|
+
ch._zod.check(payload);
|
|
1936
|
+
payload.issues[start].continue = false;
|
|
1937
|
+
attachSchema(payload.issues, start, inst);
|
|
1938
|
+
return payload;
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
return parse(payload, ctx);
|
|
1942
|
+
};
|
|
1943
|
+
}
|
|
1944
|
+
var arraySize = (input) => Array.isArray(input) ? input.length : -1;
|
|
1914
1945
|
function handleArrayResult(result, final, index) {
|
|
1915
1946
|
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
1916
1947
|
final.value[index] = result.value;
|
|
@@ -1948,6 +1979,7 @@ var $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
|
1948
1979
|
if (proms.length) return Promise.all(proms).then(() => payload);
|
|
1949
1980
|
return payload;
|
|
1950
1981
|
};
|
|
1982
|
+
capSize(inst, arraySize);
|
|
1951
1983
|
});
|
|
1952
1984
|
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
1953
1985
|
const isPresent = key in input;
|
|
@@ -2799,7 +2831,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
2799
2831
|
}
|
|
2800
2832
|
}
|
|
2801
2833
|
//#endregion
|
|
2802
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
2834
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
|
|
2803
2835
|
var $ZodCyclicError = class extends Error {
|
|
2804
2836
|
constructor() {
|
|
2805
2837
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -3052,7 +3084,7 @@ function isBackEdge(ctx, value) {
|
|
|
3052
3084
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
3053
3085
|
}
|
|
3054
3086
|
//#endregion
|
|
3055
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
3087
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/locales/en.js
|
|
3056
3088
|
var error = () => {
|
|
3057
3089
|
const Sizable = {
|
|
3058
3090
|
string: {
|
|
@@ -3160,7 +3192,7 @@ function en_default() {
|
|
|
3160
3192
|
return { localeError: error() };
|
|
3161
3193
|
}
|
|
3162
3194
|
//#endregion
|
|
3163
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
3195
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/registries.js
|
|
3164
3196
|
var _a;
|
|
3165
3197
|
var $ZodRegistry = class {
|
|
3166
3198
|
constructor() {
|
|
@@ -3207,7 +3239,7 @@ function registry() {
|
|
|
3207
3239
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
3208
3240
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
3209
3241
|
//#endregion
|
|
3210
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
3242
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/api.js
|
|
3211
3243
|
function snapshotChecks(def) {
|
|
3212
3244
|
if (def.checks) def.checks = [...def.checks];
|
|
3213
3245
|
return def;
|
|
@@ -3723,7 +3755,7 @@ function _check(fn, params) {
|
|
|
3723
3755
|
return ch;
|
|
3724
3756
|
}
|
|
3725
3757
|
//#endregion
|
|
3726
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
3758
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
|
|
3727
3759
|
function assignProps(target, ...sources) {
|
|
3728
3760
|
for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
|
|
3729
3761
|
return target;
|
|
@@ -4167,7 +4199,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
4167
4199
|
return finalize(ctx, schema);
|
|
4168
4200
|
};
|
|
4169
4201
|
//#endregion
|
|
4170
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
4202
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/json-schema-processors.js
|
|
4171
4203
|
var narrowMin = (agg, key, value) => {
|
|
4172
4204
|
if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
|
|
4173
4205
|
};
|
|
@@ -4628,7 +4660,7 @@ var lazyProcessor = (schema, ctx, _json, params) => {
|
|
|
4628
4660
|
seen.ref = innerType;
|
|
4629
4661
|
};
|
|
4630
4662
|
//#endregion
|
|
4631
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
4663
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/errors.js
|
|
4632
4664
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
4633
4665
|
function _lazyMethod(proto, key, make) {
|
|
4634
4666
|
Object.defineProperty(proto, key, {
|
|
@@ -4678,7 +4710,7 @@ var initializer = (inst, issues) => {
|
|
|
4678
4710
|
};
|
|
4679
4711
|
var ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
|
|
4680
4712
|
//#endregion
|
|
4681
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
4713
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/parse.js
|
|
4682
4714
|
var parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
4683
4715
|
var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
4684
4716
|
var safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -4692,7 +4724,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
4692
4724
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
4693
4725
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
4694
4726
|
//#endregion
|
|
4695
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
4727
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
|
|
4696
4728
|
function _ensureDefaultLocale() {
|
|
4697
4729
|
if (!globalConfig.localeError) config(en_default());
|
|
4698
4730
|
}
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import type { JsonValue } from './flow-change.js';
|
|
2
|
+
import type { WorkflowFile } from './flow-workflowFile.js';
|
|
3
|
+
import type { ControlClient } from './control-api.js';
|
|
4
|
+
import type { AuthoringHost, AuthoringRead, AuthoringRequest, AuthoringSearch, AuthoringType } from './authoring.js';
|
|
5
|
+
export interface WorkflowAuthoringOptions {
|
|
6
|
+
/** Flow API metadata is already normalized; no Connector catalog adapter runs here. */
|
|
7
|
+
readonly client?: ControlClient;
|
|
8
|
+
readonly locale?: string;
|
|
9
|
+
readonly engineContract?: string;
|
|
10
|
+
/** Override only for callers that own their deterministic node/module identity scope. */
|
|
11
|
+
readonly id?: AuthoringHost['id'];
|
|
12
|
+
}
|
|
13
|
+
/** File objects in, file objects out. Persistence and transport belong to the caller. */
|
|
14
|
+
export declare function createWorkflowAuthoring(options?: WorkflowAuthoringOptions): {
|
|
15
|
+
create(metadata?: Omit<WorkflowFile, 'kind' | 'version' | 'content'>): WorkflowFile;
|
|
16
|
+
read(file: WorkflowFile, query?: AuthoringRead): Promise<{
|
|
17
|
+
revision: string;
|
|
18
|
+
data: {
|
|
19
|
+
text: {
|
|
20
|
+
node: string;
|
|
21
|
+
field: "code" | "prompt";
|
|
22
|
+
start: number;
|
|
23
|
+
lines: number;
|
|
24
|
+
content: string;
|
|
25
|
+
totalLines: number;
|
|
26
|
+
nextStart?: number | undefined;
|
|
27
|
+
truncated: boolean;
|
|
28
|
+
};
|
|
29
|
+
nodes?: undefined;
|
|
30
|
+
edges?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
text?: undefined;
|
|
33
|
+
nodes: {
|
|
34
|
+
ref: string;
|
|
35
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "connector-proxy" | "cron" | "decision" | "error" | "http-request" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "skip-duplicates" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
36
|
+
name: string;
|
|
37
|
+
readOnly: boolean;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
icon?: string | undefined;
|
|
40
|
+
timeoutMs?: number | undefined;
|
|
41
|
+
maxExecutions?: number | undefined;
|
|
42
|
+
onError?: "error" | "stop" | undefined;
|
|
43
|
+
retry?: import("./flow-model.js").RetryConfiguration | undefined;
|
|
44
|
+
config: JsonValue;
|
|
45
|
+
texts: {
|
|
46
|
+
[k: string]: {
|
|
47
|
+
lines: number;
|
|
48
|
+
characters: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
inputs: unknown;
|
|
52
|
+
inputPorts: {
|
|
53
|
+
[k: string]: {
|
|
54
|
+
schema: JsonValue;
|
|
55
|
+
nullable: boolean;
|
|
56
|
+
description?: string | undefined;
|
|
57
|
+
default?: JsonValue | undefined;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
systemOutputs?: {
|
|
61
|
+
[k: string]: {
|
|
62
|
+
schema: JsonValue;
|
|
63
|
+
nullable: boolean;
|
|
64
|
+
description?: string | undefined;
|
|
65
|
+
default?: JsonValue | undefined;
|
|
66
|
+
};
|
|
67
|
+
} | undefined;
|
|
68
|
+
outputPorts: {
|
|
69
|
+
[k: string]: {
|
|
70
|
+
schema: JsonValue;
|
|
71
|
+
nullable: boolean;
|
|
72
|
+
description?: string | undefined;
|
|
73
|
+
default?: JsonValue | undefined;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
authenticationChoices?: ({
|
|
77
|
+
label: string;
|
|
78
|
+
} & ({
|
|
79
|
+
error: string | undefined;
|
|
80
|
+
authentication?: undefined;
|
|
81
|
+
} | {
|
|
82
|
+
error?: undefined;
|
|
83
|
+
authentication: {
|
|
84
|
+
schemes: string[];
|
|
85
|
+
};
|
|
86
|
+
}))[] | undefined;
|
|
87
|
+
incoming: ({
|
|
88
|
+
source: string;
|
|
89
|
+
target: string;
|
|
90
|
+
branch?: undefined;
|
|
91
|
+
} | {
|
|
92
|
+
source: string;
|
|
93
|
+
target: string;
|
|
94
|
+
branch: string;
|
|
95
|
+
})[];
|
|
96
|
+
outgoing: ({
|
|
97
|
+
source: string;
|
|
98
|
+
target: string;
|
|
99
|
+
branch?: undefined;
|
|
100
|
+
} | {
|
|
101
|
+
source: string;
|
|
102
|
+
target: string;
|
|
103
|
+
branch: string;
|
|
104
|
+
})[];
|
|
105
|
+
}[];
|
|
106
|
+
edges?: undefined;
|
|
107
|
+
} | {
|
|
108
|
+
text?: undefined;
|
|
109
|
+
nodes: {
|
|
110
|
+
ref: string;
|
|
111
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "connector-proxy" | "cron" | "decision" | "error" | "http-request" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "skip-duplicates" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
112
|
+
name: string;
|
|
113
|
+
readOnly: boolean;
|
|
114
|
+
inputHandles: string[];
|
|
115
|
+
outputHandles: string[];
|
|
116
|
+
inputs: unknown;
|
|
117
|
+
texts: {
|
|
118
|
+
[k: string]: {
|
|
119
|
+
lines: number;
|
|
120
|
+
characters: number;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
}[];
|
|
124
|
+
edges: ({
|
|
125
|
+
source: string;
|
|
126
|
+
target: string;
|
|
127
|
+
branch?: undefined;
|
|
128
|
+
} | {
|
|
129
|
+
source: string;
|
|
130
|
+
target: string;
|
|
131
|
+
branch: string;
|
|
132
|
+
})[];
|
|
133
|
+
};
|
|
134
|
+
}>;
|
|
135
|
+
search(file: WorkflowFile, query: AuthoringSearch): Promise<{
|
|
136
|
+
revision: string;
|
|
137
|
+
data: {
|
|
138
|
+
matches: {
|
|
139
|
+
node?: string;
|
|
140
|
+
field: string;
|
|
141
|
+
line?: number;
|
|
142
|
+
excerpt: string;
|
|
143
|
+
}[];
|
|
144
|
+
total: number;
|
|
145
|
+
nextOffset?: number | undefined;
|
|
146
|
+
};
|
|
147
|
+
}>;
|
|
148
|
+
schema(query?: {
|
|
149
|
+
readonly type?: AuthoringType;
|
|
150
|
+
readonly action?: string;
|
|
151
|
+
}): Promise<{
|
|
152
|
+
action: string;
|
|
153
|
+
name: string;
|
|
154
|
+
inputs: Readonly<Record<string, import("./flow-model.js").InputPortDefinition>>;
|
|
155
|
+
outputs: Readonly<Record<string, import("../index.js").PortDefinition>>;
|
|
156
|
+
version: 1;
|
|
157
|
+
} | {
|
|
158
|
+
types: readonly ["start", "outputs", "webhook-response", "workflow", "webhook", "cron", "error", "poll", "integration", "code", "connector", "connector-proxy", "agent", "llm", "decision", "openapi", "http-request", "skip-duplicates", "condition", "value", "wait", "approval"];
|
|
159
|
+
request: import("zod/v4/core").ZodStandardJSONSchemaPayload<import("zod").ZodObject<{
|
|
160
|
+
baseRevision: import("zod").ZodString;
|
|
161
|
+
requestId: import("zod").ZodString;
|
|
162
|
+
edits: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
163
|
+
op: import("zod").ZodLiteral<"node.add">;
|
|
164
|
+
as: import("zod").ZodString;
|
|
165
|
+
type: import("zod").ZodEnum<{
|
|
166
|
+
agent: "agent";
|
|
167
|
+
approval: "approval";
|
|
168
|
+
code: "code";
|
|
169
|
+
condition: "condition";
|
|
170
|
+
connector: "connector";
|
|
171
|
+
"connector-proxy": "connector-proxy";
|
|
172
|
+
cron: "cron";
|
|
173
|
+
decision: "decision";
|
|
174
|
+
error: "error";
|
|
175
|
+
"http-request": "http-request";
|
|
176
|
+
integration: "integration";
|
|
177
|
+
llm: "llm";
|
|
178
|
+
openapi: "openapi";
|
|
179
|
+
outputs: "outputs";
|
|
180
|
+
poll: "poll";
|
|
181
|
+
"skip-duplicates": "skip-duplicates";
|
|
182
|
+
start: "start";
|
|
183
|
+
value: "value";
|
|
184
|
+
wait: "wait";
|
|
185
|
+
webhook: "webhook";
|
|
186
|
+
"webhook-response": "webhook-response";
|
|
187
|
+
workflow: "workflow";
|
|
188
|
+
}>;
|
|
189
|
+
name: import("zod").ZodString;
|
|
190
|
+
onError: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
191
|
+
error: "error";
|
|
192
|
+
stop: "stop";
|
|
193
|
+
}>>;
|
|
194
|
+
retry: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
195
|
+
maxRetries: import("zod").ZodNumber;
|
|
196
|
+
intervalMs: import("zod").ZodNumber;
|
|
197
|
+
}, import("zod/v4/core").$strict>>;
|
|
198
|
+
config: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodJSONSchema>>;
|
|
199
|
+
inputs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
200
|
+
kind: import("zod").ZodLiteral<"output">;
|
|
201
|
+
node: import("zod").ZodString;
|
|
202
|
+
port: import("zod").ZodOptional<import("zod").ZodString>;
|
|
203
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
204
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
205
|
+
kind: import("zod").ZodLiteral<"system">;
|
|
206
|
+
node: import("zod").ZodString;
|
|
207
|
+
port: import("zod").ZodLiteral<"error">;
|
|
208
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
209
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
210
|
+
kind: import("zod").ZodLiteral<"variable">;
|
|
211
|
+
name: import("zod").ZodString;
|
|
212
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
213
|
+
kind: import("zod").ZodLiteral<"value">;
|
|
214
|
+
value: import("zod").ZodJSONSchema;
|
|
215
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
216
|
+
kind: import("zod").ZodLiteral<"unset">;
|
|
217
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
218
|
+
kind: import("zod").ZodLiteral<"default">;
|
|
219
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
220
|
+
kind: import("zod").ZodLiteral<"sources">;
|
|
221
|
+
sources: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
222
|
+
kind: import("zod").ZodLiteral<"output">;
|
|
223
|
+
node: import("zod").ZodString;
|
|
224
|
+
port: import("zod").ZodOptional<import("zod").ZodString>;
|
|
225
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
226
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
227
|
+
kind: import("zod").ZodLiteral<"system">;
|
|
228
|
+
node: import("zod").ZodString;
|
|
229
|
+
port: import("zod").ZodLiteral<"error">;
|
|
230
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
231
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
232
|
+
kind: import("zod").ZodLiteral<"variable">;
|
|
233
|
+
name: import("zod").ZodString;
|
|
234
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
235
|
+
}, import("zod/v4/core").$strict>]>>>;
|
|
236
|
+
code: import("zod").ZodOptional<import("zod").ZodString>;
|
|
237
|
+
prompt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
238
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
239
|
+
op: import("zod").ZodLiteral<"node.update">;
|
|
240
|
+
node: import("zod").ZodString;
|
|
241
|
+
set: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
242
|
+
onError: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
243
|
+
error: "error";
|
|
244
|
+
stop: "stop";
|
|
245
|
+
}>>;
|
|
246
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
247
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
248
|
+
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
249
|
+
maxExecutions: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
250
|
+
timeoutMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
251
|
+
retry: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
252
|
+
maxRetries: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
253
|
+
intervalMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
254
|
+
}, import("zod/v4/core").$strict>>;
|
|
255
|
+
config: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodJSONSchema>>;
|
|
256
|
+
}, import("zod/v4/core").$strict>>;
|
|
257
|
+
clear: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
258
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
259
|
+
op: import("zod").ZodLiteral<"node.refresh">;
|
|
260
|
+
node: import("zod").ZodString;
|
|
261
|
+
tool: import("zod").ZodOptional<import("zod").ZodString>;
|
|
262
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
263
|
+
op: import("zod").ZodLiteral<"node.remove">;
|
|
264
|
+
node: import("zod").ZodString;
|
|
265
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
266
|
+
op: import("zod").ZodLiteral<"input.set">;
|
|
267
|
+
node: import("zod").ZodString;
|
|
268
|
+
input: import("zod").ZodString;
|
|
269
|
+
source: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
270
|
+
kind: import("zod").ZodLiteral<"output">;
|
|
271
|
+
node: import("zod").ZodString;
|
|
272
|
+
port: import("zod").ZodOptional<import("zod").ZodString>;
|
|
273
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
274
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
275
|
+
kind: import("zod").ZodLiteral<"system">;
|
|
276
|
+
node: import("zod").ZodString;
|
|
277
|
+
port: import("zod").ZodLiteral<"error">;
|
|
278
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
279
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
280
|
+
kind: import("zod").ZodLiteral<"variable">;
|
|
281
|
+
name: import("zod").ZodString;
|
|
282
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
283
|
+
kind: import("zod").ZodLiteral<"value">;
|
|
284
|
+
value: import("zod").ZodJSONSchema;
|
|
285
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
286
|
+
kind: import("zod").ZodLiteral<"unset">;
|
|
287
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
288
|
+
kind: import("zod").ZodLiteral<"default">;
|
|
289
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
290
|
+
kind: import("zod").ZodLiteral<"sources">;
|
|
291
|
+
sources: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
292
|
+
kind: import("zod").ZodLiteral<"output">;
|
|
293
|
+
node: import("zod").ZodString;
|
|
294
|
+
port: import("zod").ZodOptional<import("zod").ZodString>;
|
|
295
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
296
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
297
|
+
kind: import("zod").ZodLiteral<"system">;
|
|
298
|
+
node: import("zod").ZodString;
|
|
299
|
+
port: import("zod").ZodLiteral<"error">;
|
|
300
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
301
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
302
|
+
kind: import("zod").ZodLiteral<"variable">;
|
|
303
|
+
name: import("zod").ZodString;
|
|
304
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
305
|
+
}, import("zod/v4/core").$strict>]>;
|
|
306
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
307
|
+
op: import("zod").ZodEnum<{
|
|
308
|
+
"edge.connect": "edge.connect";
|
|
309
|
+
"edge.disconnect": "edge.disconnect";
|
|
310
|
+
}>;
|
|
311
|
+
source: import("zod").ZodString;
|
|
312
|
+
target: import("zod").ZodString;
|
|
313
|
+
branch: import("zod").ZodOptional<import("zod").ZodString>;
|
|
314
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
315
|
+
op: import("zod").ZodLiteral<"text.edit">;
|
|
316
|
+
node: import("zod").ZodString;
|
|
317
|
+
field: import("zod").ZodEnum<{
|
|
318
|
+
code: "code";
|
|
319
|
+
prompt: "prompt";
|
|
320
|
+
}>;
|
|
321
|
+
oldText: import("zod").ZodString;
|
|
322
|
+
newText: import("zod").ZodString;
|
|
323
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
324
|
+
op: import("zod").ZodLiteral<"text.set">;
|
|
325
|
+
node: import("zod").ZodString;
|
|
326
|
+
field: import("zod").ZodEnum<{
|
|
327
|
+
code: "code";
|
|
328
|
+
prompt: "prompt";
|
|
329
|
+
}>;
|
|
330
|
+
text: import("zod").ZodString;
|
|
331
|
+
}, import("zod/v4/core").$strict>], "op">>;
|
|
332
|
+
}, import("zod/v4/core").$strict>>;
|
|
333
|
+
guidance: string;
|
|
334
|
+
type?: undefined;
|
|
335
|
+
onError?: undefined;
|
|
336
|
+
retry?: undefined;
|
|
337
|
+
inputSources?: undefined;
|
|
338
|
+
extensibleInputs?: undefined;
|
|
339
|
+
example?: undefined;
|
|
340
|
+
configuration?: undefined;
|
|
341
|
+
texts?: undefined;
|
|
342
|
+
action?: undefined;
|
|
343
|
+
name?: undefined;
|
|
344
|
+
inputs?: undefined;
|
|
345
|
+
outputs?: undefined;
|
|
346
|
+
version: 1;
|
|
347
|
+
} | {
|
|
348
|
+
types?: undefined;
|
|
349
|
+
request?: undefined;
|
|
350
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "connector-proxy" | "cron" | "decision" | "error" | "http-request" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "skip-duplicates" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
351
|
+
onError: boolean | {
|
|
352
|
+
enum: string[];
|
|
353
|
+
};
|
|
354
|
+
retry: boolean | import("zod/v4/core").ZodStandardJSONSchemaPayload<import("zod").ZodObject<{
|
|
355
|
+
maxRetries: import("zod").ZodNumber;
|
|
356
|
+
intervalMs: import("zod").ZodNumber;
|
|
357
|
+
}, import("zod/v4/core").$strict>>;
|
|
358
|
+
inputSources: string[];
|
|
359
|
+
extensibleInputs: boolean;
|
|
360
|
+
guidance: string;
|
|
361
|
+
example: {
|
|
362
|
+
op: string;
|
|
363
|
+
as: string;
|
|
364
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "connector-proxy" | "cron" | "decision" | "error" | "http-request" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "skip-duplicates" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
365
|
+
name: string;
|
|
366
|
+
};
|
|
367
|
+
configuration: import("zod/v4/core").ZodStandardJSONSchemaPayload<import("zod").ZodObject<{}, import("zod/v4/core").$strict>>;
|
|
368
|
+
texts: string[];
|
|
369
|
+
action?: undefined;
|
|
370
|
+
name?: undefined;
|
|
371
|
+
inputs?: undefined;
|
|
372
|
+
outputs?: undefined;
|
|
373
|
+
version: 1;
|
|
374
|
+
}>;
|
|
375
|
+
edit(file: WorkflowFile, request: AuthoringRequest): Promise<{
|
|
376
|
+
file: {
|
|
377
|
+
kind: 'open-flow-workflow';
|
|
378
|
+
version: 1;
|
|
379
|
+
name?: string;
|
|
380
|
+
icon?: string;
|
|
381
|
+
description?: string;
|
|
382
|
+
presentation?: Readonly<Record<string, JsonValue>>;
|
|
383
|
+
content: import("./flow-change.js").RevisionContent;
|
|
384
|
+
};
|
|
385
|
+
revision: string;
|
|
386
|
+
nodes: Record<string, string>;
|
|
387
|
+
validation: {
|
|
388
|
+
status: "invalid" | "valid";
|
|
389
|
+
diagnostics: {
|
|
390
|
+
code: string;
|
|
391
|
+
message: string;
|
|
392
|
+
nodes: string[];
|
|
393
|
+
field: string;
|
|
394
|
+
line?: number | undefined;
|
|
395
|
+
column?: number | undefined;
|
|
396
|
+
}[];
|
|
397
|
+
};
|
|
398
|
+
}>;
|
|
399
|
+
check: (file: WorkflowFile) => Promise<{
|
|
400
|
+
revision: string;
|
|
401
|
+
valid: boolean;
|
|
402
|
+
diagnostics: {
|
|
403
|
+
code: string;
|
|
404
|
+
message: string;
|
|
405
|
+
nodes: string[];
|
|
406
|
+
field: string;
|
|
407
|
+
line?: number | undefined;
|
|
408
|
+
column?: number | undefined;
|
|
409
|
+
}[];
|
|
410
|
+
}>;
|
|
411
|
+
};
|
|
@@ -3973,7 +3973,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
3973
3973
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
3974
3974
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3975
3975
|
|
|
3976
|
-
## zod - 4.6.
|
|
3976
|
+
## zod - 4.6.7 (MIT)
|
|
3977
3977
|
|
|
3978
3978
|
MIT License
|
|
3979
3979
|
|