@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.
Files changed (41) hide show
  1. package/dist/browser/codeDiagnostics-BtH_YuXu.js +44 -0
  2. package/dist/browser/{createResourceDialog-DnlKSqIs.js → createResourceDialog-BOrW62JW.js} +1 -1
  3. package/dist/browser/{dist-DYjIVIZC.js → dist-Cdna4VV_.js} +1 -1
  4. package/dist/browser/{dist-CeSZ2xSM.js → dist-DINmJ4Gr.js} +171 -112
  5. package/dist/browser/{editorComponent-T-GmTa-C.js → editorComponent-0skblWYk.js} +190 -107
  6. package/dist/browser/flow-authoring-node.d.ts +2 -5
  7. package/dist/browser/flow-authoring.js +111 -83
  8. package/dist/browser/flow-change-schema.d.ts +1 -1
  9. package/dist/browser/flow-change.d.ts +16 -5
  10. package/dist/browser/flow-change.js +196 -143
  11. package/dist/browser/{flowChanges-BXqN4jyH.js → flowChanges-3o9Vs_1I.js} +2479 -3906
  12. package/dist/browser/{flowWorkspace-a5QLISui.js → flowWorkspace-DJzQVVtZ.js} +12035 -10159
  13. package/dist/browser/{inputValues-Do4FrC_6.js → inputValues-DkDT6u0o.js} +1 -1
  14. package/dist/browser/{typeScriptSession-vC9uPDVV.js → typeScriptSession-v9Pb3G6d.js} +136 -136
  15. package/dist/browser/ui.css +1 -1
  16. package/dist/browser/workbench.css +1 -1
  17. package/dist/browser/workbench.d.ts +0 -3
  18. package/dist/browser/workbench.js +1046 -1025
  19. package/dist/browser/{workbenchSelect-Dx2Y46cD.js → workbenchSelect-B5zXyaaX.js} +1116 -1063
  20. package/dist/common/connectorDecoders.d.ts +2 -1
  21. package/dist/common/control-api-conformance.js +1589 -1518
  22. package/dist/common/control-api.d.ts +18 -6
  23. package/dist/common/control-api.js +1470 -1392
  24. package/dist/common/control-requests.js +1550 -1535
  25. package/dist/common/draftOperations.d.ts +0 -1
  26. package/dist/common/flow-connectionUsage.d.ts +1 -1
  27. package/dist/common/flow-encoding.js +1092 -1060
  28. package/dist/common/flow-semantics.d.ts +1 -0
  29. package/dist/common/flow-semantics.js +2777 -2699
  30. package/dist/common/flowInspection.d.ts +1 -1
  31. package/dist/common/integration-trigger.js +350 -328
  32. package/dist/common/mcp.d.ts +27 -0
  33. package/dist/common/mcp.js +807 -728
  34. package/dist/common/poll-trigger.js +993 -971
  35. package/dist/common/provider-triggers.js +1521 -1203
  36. package/dist/common/runtime-contract.js +13 -6
  37. package/dist/common/scheduler.js +1430 -1408
  38. package/dist/common/trigger-catalog.d.ts +2 -1
  39. package/dist/common/webhook-trigger.js +221 -199
  40. package/dist/common/{zh-CN-D2od3TNw.js → zh-CN-CxZ3yYfR.js} +2 -2
  41. package/package.json +1 -1
@@ -5727,13 +5727,13 @@ var z = /*@__PURE__*/ A("ZodType", (e, t) => (lu(), N.init(e, t), e.def = t, e.t
5727
5727
  return _d(this, e);
5728
5728
  },
5729
5729
  array() {
5730
- return V(this);
5730
+ return H(this);
5731
5731
  },
5732
5732
  or(e) {
5733
- return U([this, e]);
5733
+ return W([this, e]);
5734
5734
  },
5735
5735
  and(e) {
5736
- return ed(this, e);
5736
+ return $u(this, e);
5737
5737
  },
5738
5738
  transform(e) {
5739
5739
  return xd(this, ad(e));
@@ -6061,10 +6061,10 @@ var B = /*@__PURE__*/ A("ZodStringFormat", (e, t) => {
6061
6061
  return this.check(/* @__PURE__ */ Cc(e, t));
6062
6062
  },
6063
6063
  int(e) {
6064
- return this.check(Bu(e));
6064
+ return this.check(zu(e));
6065
6065
  },
6066
6066
  safe(e) {
6067
- return this.check(Bu(e));
6067
+ return this.check(zu(e));
6068
6068
  },
6069
6069
  positive(e) {
6070
6070
  return this.check(/* @__PURE__ */ wc(0, e));
@@ -6088,40 +6088,40 @@ var B = /*@__PURE__*/ A("ZodStringFormat", (e, t) => {
6088
6088
  return this;
6089
6089
  }
6090
6090
  }));
6091
- function Ru(e) {
6091
+ function V(e) {
6092
6092
  return /* @__PURE__ */ gc(Lu, e);
6093
6093
  }
6094
- var zu = /*@__PURE__*/ A("ZodNumberFormat", (e, t) => {
6094
+ var Ru = /*@__PURE__*/ A("ZodNumberFormat", (e, t) => {
6095
6095
  No.init(e, t), Lu.init(e, t);
6096
6096
  });
6097
- function Bu(e) {
6098
- return /* @__PURE__ */ _c(zu, e);
6097
+ function zu(e) {
6098
+ return /* @__PURE__ */ _c(Ru, e);
6099
6099
  }
6100
- var Vu = /*@__PURE__*/ A("ZodBoolean", (e, t) => {
6100
+ var Bu = /*@__PURE__*/ A("ZodBoolean", (e, t) => {
6101
6101
  Po.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Sl(e, t, n, r);
6102
6102
  });
6103
- function Hu(e) {
6104
- return /* @__PURE__ */ vc(Vu, e);
6103
+ function Vu(e) {
6104
+ return /* @__PURE__ */ vc(Bu, e);
6105
6105
  }
6106
- var Uu = /*@__PURE__*/ A("ZodNull", (e, t) => {
6106
+ var Hu = /*@__PURE__*/ A("ZodNull", (e, t) => {
6107
6107
  Fo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Cl(e, t, n, r);
6108
6108
  });
6109
- function Wu(e) {
6110
- return /* @__PURE__ */ yc(Uu, e);
6109
+ function Uu(e) {
6110
+ return /* @__PURE__ */ yc(Hu, e);
6111
6111
  }
6112
- var Gu = /*@__PURE__*/ A("ZodUnknown", (e, t) => {
6112
+ var Wu = /*@__PURE__*/ A("ZodUnknown", (e, t) => {
6113
6113
  Io.init(e, t), z.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
6114
6114
  });
6115
- function Ku() {
6116
- return /* @__PURE__ */ bc(Gu);
6115
+ function Gu() {
6116
+ return /* @__PURE__ */ bc(Wu);
6117
6117
  }
6118
- var qu = /*@__PURE__*/ A("ZodNever", (e, t) => {
6118
+ var Ku = /*@__PURE__*/ A("ZodNever", (e, t) => {
6119
6119
  Lo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => wl(e, t, n, r);
6120
6120
  });
6121
- function Ju(e) {
6122
- return /* @__PURE__ */ xc(qu, e);
6121
+ function qu(e) {
6122
+ return /* @__PURE__ */ xc(Ku, e);
6123
6123
  }
6124
- var Yu = /*@__PURE__*/ A("ZodArray", (e, t) => {
6124
+ var Ju = /*@__PURE__*/ A("ZodArray", (e, t) => {
6125
6125
  uu(), zo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => kl(e, t, n, r), e.element = t.element;
6126
6126
  }, {
6127
6127
  min(e, t) {
@@ -6140,26 +6140,26 @@ var Yu = /*@__PURE__*/ A("ZodArray", (e, t) => {
6140
6140
  return this.element;
6141
6141
  }
6142
6142
  });
6143
- function V(e, t) {
6144
- return /* @__PURE__ */ Hc(Yu, e, t);
6143
+ function H(e, t) {
6144
+ return /* @__PURE__ */ Hc(Ju, e, t);
6145
6145
  }
6146
- var Xu = /*@__PURE__*/ A("ZodObject", (e, t) => {
6146
+ var Yu = /*@__PURE__*/ A("ZodObject", (e, t) => {
6147
6147
  uu(), Go.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => jl(e, t, n, r), ai(e, "shape", (e) => e._zod.def.shape, !1);
6148
6148
  }, {
6149
6149
  keyof() {
6150
- return G(Object.keys(this._zod.def.shape));
6150
+ return nd(Object.keys(this._zod.def.shape));
6151
6151
  },
6152
6152
  catchall(e) {
6153
6153
  return this.clone(D(this._zod.def, { catchall: e }));
6154
6154
  },
6155
6155
  passthrough() {
6156
- return this.clone(D(this._zod.def, { catchall: Ku() }));
6156
+ return this.clone(D(this._zod.def, { catchall: Gu() }));
6157
6157
  },
6158
6158
  loose() {
6159
- return this.clone(D(this._zod.def, { catchall: Ku() }));
6159
+ return this.clone(D(this._zod.def, { catchall: Gu() }));
6160
6160
  },
6161
6161
  strict() {
6162
- return this.clone(D(this._zod.def, { catchall: Ju() }));
6162
+ return this.clone(D(this._zod.def, { catchall: qu() }));
6163
6163
  },
6164
6164
  strip() {
6165
6165
  return this.clone(D(this._zod.def, { catchall: void 0 }));
@@ -6189,65 +6189,65 @@ var Xu = /*@__PURE__*/ A("ZodObject", (e, t) => {
6189
6189
  return Rr(gd, this, e[0]);
6190
6190
  }
6191
6191
  });
6192
- function H(e, t) {
6193
- return new Xu({
6192
+ function U(e, t) {
6193
+ return new Yu({
6194
6194
  type: "object",
6195
6195
  shape: e ?? {},
6196
6196
  ...O(t)
6197
6197
  });
6198
6198
  }
6199
- function Zu(e, t) {
6200
- return new Xu({
6199
+ function Xu(e, t) {
6200
+ return new Yu({
6201
6201
  type: "object",
6202
6202
  shape: e,
6203
- catchall: Ju(),
6203
+ catchall: qu(),
6204
6204
  ...O(t)
6205
6205
  });
6206
6206
  }
6207
- var Qu = /*@__PURE__*/ A("ZodUnion", (e, t) => {
6207
+ var Zu = /*@__PURE__*/ A("ZodUnion", (e, t) => {
6208
6208
  qo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ml(e, t, n, r), e.options = t.options;
6209
6209
  });
6210
- function U(e, t) {
6211
- return new Qu({
6210
+ function W(e, t) {
6211
+ return new Zu({
6212
6212
  type: "union",
6213
6213
  options: e,
6214
6214
  ...O(t)
6215
6215
  });
6216
6216
  }
6217
- var $u = /*@__PURE__*/ A("ZodIntersection", (e, t) => {
6217
+ var Qu = /*@__PURE__*/ A("ZodIntersection", (e, t) => {
6218
6218
  Jo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Nl(e, t, n, r);
6219
6219
  });
6220
- function ed(e, t) {
6221
- return new $u({
6220
+ function $u(e, t) {
6221
+ return new Qu({
6222
6222
  type: "intersection",
6223
6223
  left: e,
6224
6224
  right: t
6225
6225
  });
6226
6226
  }
6227
- var td = /*@__PURE__*/ A("ZodRecord", (e, t) => {
6227
+ var ed = /*@__PURE__*/ A("ZodRecord", (e, t) => {
6228
6228
  uu(), Zo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ll(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
6229
6229
  });
6230
- function W(e, t, n) {
6231
- return !t || !t._zod ? new td({
6230
+ function G(e, t, n) {
6231
+ return !t || !t._zod ? new ed({
6232
6232
  type: "record",
6233
6233
  keyType: pu(),
6234
6234
  valueType: e,
6235
6235
  ...O(t)
6236
- }) : new td({
6236
+ }) : new ed({
6237
6237
  type: "record",
6238
6238
  keyType: e,
6239
6239
  valueType: t,
6240
6240
  ...O(n)
6241
6241
  });
6242
6242
  }
6243
- var nd = /*@__PURE__*/ A("ZodEnum", (e, t) => {
6243
+ var td = /*@__PURE__*/ A("ZodEnum", (e, t) => {
6244
6244
  Qo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Tl(e, t, n, r), e.enum = t.entries, e.options = [...e._zod.values];
6245
6245
  let n = new Set(Object.keys(t.entries));
6246
6246
  e.extract = (e, r) => {
6247
6247
  let i = {};
6248
6248
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
6249
6249
  else throw Error(`Key ${r} not found in enum`);
6250
- return new nd({
6250
+ return new td({
6251
6251
  ...t,
6252
6252
  checks: [],
6253
6253
  ...O(r),
@@ -6257,7 +6257,7 @@ var nd = /*@__PURE__*/ A("ZodEnum", (e, t) => {
6257
6257
  let i = { ...t.entries };
6258
6258
  for (let t of e) if (n.has(t)) delete i[t];
6259
6259
  else throw Error(`Key ${t} not found in enum`);
6260
- return new nd({
6260
+ return new td({
6261
6261
  ...t,
6262
6262
  checks: [],
6263
6263
  ...O(r),
@@ -6265,8 +6265,8 @@ var nd = /*@__PURE__*/ A("ZodEnum", (e, t) => {
6265
6265
  });
6266
6266
  };
6267
6267
  });
6268
- function G(e, t) {
6269
- return new nd({
6268
+ function nd(e, t) {
6269
+ return new td({
6270
6270
  type: "enum",
6271
6271
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
6272
6272
  ...O(t)
@@ -6414,32 +6414,32 @@ function Od(e, t) {
6414
6414
  return /* @__PURE__ */ Wc(e, t);
6415
6415
  }
6416
6416
  function kd(e) {
6417
- let t = Td(() => U([
6417
+ let t = Td(() => W([
6418
6418
  pu(e),
6419
- Ru(),
6420
- Hu(),
6421
- Wu(),
6422
- V(t),
6423
- W(pu(), t)
6419
+ V(),
6420
+ Vu(),
6421
+ Uu(),
6422
+ H(t),
6423
+ G(pu(), t)
6424
6424
  ]));
6425
6425
  return t;
6426
6426
  }
6427
6427
  //#endregion
6428
6428
  //#region src/flow/common/triggerScheduleSchema.ts
6429
- var Ad = V(U([H({
6429
+ var Ad = H(W([U({
6430
6430
  type: K("cron"),
6431
6431
  expression: pu(),
6432
6432
  timezone: pu()
6433
- }), H({
6433
+ }), U({
6434
6434
  type: K("every"),
6435
- unit: G([
6435
+ unit: nd([
6436
6436
  "day",
6437
6437
  "hour",
6438
6438
  "minute",
6439
6439
  "month",
6440
6440
  "week"
6441
6441
  ]),
6442
- value: Ru()
6442
+ value: V()
6443
6443
  })])), jd = [
6444
6444
  "GET",
6445
6445
  "POST",
@@ -6450,116 +6450,131 @@ var Ad = V(U([H({
6450
6450
  function Md(e) {
6451
6451
  return e !== "GET";
6452
6452
  }
6453
- var q = pu(), Nd = kd(), Pd = V(q), Fd = H({
6453
+ var q = pu(), Nd = kd(), Pd = H(q), Fd = U({
6454
6454
  description: q.optional(),
6455
6455
  jsonSchema: Nd,
6456
- nullable: Hu(),
6456
+ nullable: Vu(),
6457
6457
  handle: q
6458
- }), J = Fd.extend({ value: Nd.optional() }), Id = H({
6459
- collapsed: Hu().optional(),
6458
+ }), J = Fd.extend({ value: Nd.optional() }), Id = U({
6459
+ collapsed: Vu().optional(),
6460
6460
  group: q
6461
- }), Ld = H({
6461
+ }), Ld = U({
6462
6462
  kind: K("node"),
6463
6463
  nodeId: q,
6464
6464
  output: q,
6465
6465
  field: q.optional()
6466
- }), Rd = H({
6466
+ }), Rd = U({
6467
6467
  kind: K("flow"),
6468
6468
  input: q
6469
- }), zd = U([
6469
+ }), zd = W([
6470
6470
  Ld,
6471
6471
  Rd,
6472
- H({
6472
+ U({
6473
6473
  kind: K("binding"),
6474
6474
  bindingId: q
6475
6475
  })
6476
- ]), Bd = U([H({ kind: K("unset") }), H({
6476
+ ]), Bd = W([U({ kind: K("unset") }), U({
6477
6477
  kind: K("value"),
6478
6478
  value: Nd
6479
- })]), Vd = U([Bd, H({
6479
+ })]), Vd = W([Bd, U({
6480
6480
  kind: K("sources"),
6481
- sources: V(zd)
6482
- })]), Hd = W(q, Vd), Ud = {
6483
- inputs: V(U([J, Id])),
6484
- outputs: V(U([Fd, Id]))
6485
- }, Wd = U([Zu({
6486
- kind: K("connector"),
6487
- action: q,
6488
- connectionId: q.optional(),
6489
- connections: V(Zu({
6490
- connectionId: q,
6491
- alias: q.optional()
6492
- }))
6493
- }), Zu({
6494
- kind: K("connector"),
6495
- actionHints: V(q).optional(),
6496
- connectionHints: V(Zu({
6481
+ sources: H(zd)
6482
+ })]), Hd = G(q, Vd), Ud = {
6483
+ inputs: H(W([J, Id])),
6484
+ outputs: H(W([Fd, Id]))
6485
+ }, Wd = W([
6486
+ Xu({
6487
+ kind: K("connector"),
6497
6488
  action: q,
6498
- connectionId: q,
6499
- alias: q.optional()
6500
- })).optional()
6501
- })]), Gd = H({
6489
+ connectionId: q.optional(),
6490
+ connections: H(Xu({
6491
+ connectionId: q,
6492
+ alias: q.optional()
6493
+ }))
6494
+ }),
6495
+ Xu({
6496
+ kind: K("connector"),
6497
+ mode: K("shared")
6498
+ }),
6499
+ Xu({
6500
+ kind: K("connector"),
6501
+ mode: K("independent"),
6502
+ actions: H(Xu({
6503
+ action: q,
6504
+ connectionId: q.optional()
6505
+ }))
6506
+ }),
6507
+ Xu({
6508
+ kind: K("connector"),
6509
+ actionHints: H(q).optional(),
6510
+ connectionHints: H(Xu({
6511
+ action: q,
6512
+ connectionId: q,
6513
+ alias: q.optional()
6514
+ })).optional()
6515
+ })
6516
+ ]), Gd = U({
6502
6517
  ...Ud,
6503
6518
  name: q,
6504
6519
  moduleId: q,
6505
- capabilities: V(Wd).optional()
6506
- }), Kd = U([H({
6520
+ capabilities: H(Wd).optional()
6521
+ }), Kd = W([U({
6507
6522
  kind: K("value"),
6508
6523
  value: Nd
6509
- }), H({
6524
+ }), U({
6510
6525
  kind: K("input"),
6511
6526
  input: q
6512
- })]), qd = U([Kd, H({ kind: K("model") })]), Jd = H({
6527
+ })]), qd = W([Kd, U({ kind: K("model") })]), Jd = U({
6513
6528
  ...Ud,
6514
6529
  name: q,
6515
- executor: U([
6516
- H({
6530
+ executor: W([
6531
+ U({
6517
6532
  kind: K("connector"),
6518
6533
  action: q,
6519
6534
  connectionId: q.optional()
6520
6535
  }),
6521
- H({
6536
+ U({
6522
6537
  kind: K("llm"),
6523
- mode: G(["chat", "json"])
6538
+ mode: nd(["chat", "json"])
6524
6539
  }),
6525
- H({
6540
+ U({
6526
6541
  kind: K("agent"),
6527
- code: Hu().optional(),
6542
+ code: Vu().optional(),
6528
6543
  model: q,
6529
6544
  prompt: Kd,
6530
6545
  system: q,
6531
- maxRounds: Ru(),
6532
- tools: V(H({
6546
+ maxRounds: V(),
6547
+ tools: H(U({
6533
6548
  id: q,
6534
6549
  name: q,
6535
6550
  description: q,
6536
6551
  action: q,
6537
6552
  connectionId: q.optional(),
6538
- approval: Hu(),
6539
- inputs: V(J.extend({ source: qd }))
6553
+ approval: Vu(),
6554
+ inputs: H(J.extend({ source: qd }))
6540
6555
  })),
6541
- notification: H({
6556
+ notification: U({
6542
6557
  taskId: q,
6543
6558
  messageHandle: q,
6544
- inputs: W(q, Kd)
6559
+ inputs: G(q, Kd)
6545
6560
  }).optional()
6546
6561
  })
6547
6562
  ])
6548
- }), Yd = U([H({
6563
+ }), Yd = W([U({
6549
6564
  kind: K("value"),
6550
6565
  value: Nd.optional(),
6551
6566
  jsonSchema: Nd.optional()
6552
- }), H({
6567
+ }), U({
6553
6568
  kind: K("source"),
6554
6569
  source: zd
6555
6570
  })]), Xd = {
6556
- matchMode: G(["first", "all"]),
6557
- cases: V(H({
6571
+ matchMode: nd(["first", "all"]),
6572
+ cases: H(U({
6558
6573
  description: q.optional(),
6559
6574
  output: q,
6560
- groups: V(H({ expressions: V(H({
6575
+ groups: H(U({ expressions: H(U({
6561
6576
  left: Yd,
6562
- operator: G([
6577
+ operator: nd([
6563
6578
  "!=",
6564
6579
  "<",
6565
6580
  "<=",
@@ -6585,18 +6600,18 @@ var q = pu(), Nd = kd(), Pd = V(q), Fd = H({
6585
6600
  })) }))
6586
6601
  }))
6587
6602
  }, Zd = {
6588
- inputDefinitions: V(J),
6603
+ inputDefinitions: H(J),
6589
6604
  prompt: q
6590
- }, Qd = H({
6591
- allowedMethods: Ju().optional(),
6605
+ }, Qd = U({
6606
+ allowedMethods: qu().optional(),
6592
6607
  allowedOrigins: Pd.optional(),
6593
- noResponseBody: Ju().optional(),
6608
+ noResponseBody: qu().optional(),
6594
6609
  responseData: q.optional(),
6595
- responseHeaders: W(q, q).optional(),
6596
- responseStatusCode: Ru().int().min(200).max(599).optional()
6610
+ responseHeaders: G(q, q).optional(),
6611
+ responseStatusCode: V().int().min(200).max(599).optional()
6597
6612
  }), $d = {
6598
- bodyFields: V(J),
6599
- method: G(jd),
6613
+ bodyFields: H(J),
6614
+ method: nd(jd),
6600
6615
  options: Qd.optional()
6601
6616
  }, ef = {
6602
6617
  configInputs: Ud.inputs,
@@ -6605,20 +6620,20 @@ var q = pu(), Nd = kd(), Pd = V(q), Fd = H({
6605
6620
  displayName: q,
6606
6621
  key: q,
6607
6622
  name: q,
6608
- outputs: V(Fd).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
6623
+ outputs: H(Fd).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
6609
6624
  provider: q
6610
- }, tf = H({
6611
- body: H({
6612
- allowArray: Hu(),
6613
- allowEmpty: Hu(),
6614
- formats: V(G([
6625
+ }, tf = U({
6626
+ body: U({
6627
+ allowArray: Vu(),
6628
+ allowEmpty: Vu(),
6629
+ formats: H(nd([
6615
6630
  "form",
6616
6631
  "json",
6617
6632
  "multipart",
6618
6633
  "text"
6619
6634
  ]))
6620
6635
  }),
6621
- methods: V(G([
6636
+ methods: H(nd([
6622
6637
  "DELETE",
6623
6638
  "GET",
6624
6639
  "HEAD",
@@ -6626,128 +6641,128 @@ var q = pu(), Nd = kd(), Pd = V(q), Fd = H({
6626
6641
  "POST",
6627
6642
  "PUT"
6628
6643
  ])),
6629
- successStatus: Ru()
6644
+ successStatus: V()
6630
6645
  }), nf = {
6631
6646
  name: q,
6632
6647
  description: q.optional(),
6633
6648
  icon: q.optional()
6634
6649
  }, rf = {
6635
- maxExecutions: Ru().int().positive().max(2 ** 53 - 1).optional(),
6650
+ maxExecutions: V().int().positive().max(2 ** 53 - 1).optional(),
6636
6651
  inputs: Hd,
6637
6652
  name: q.optional(),
6638
6653
  description: q.optional(),
6639
6654
  icon: q.optional(),
6640
- timeoutMs: Ru().optional()
6641
- }, af = U([
6642
- H({
6655
+ timeoutMs: V().optional()
6656
+ }, af = W([
6657
+ U({
6643
6658
  ...rf,
6644
- inputs: W(q, Ju()),
6659
+ inputs: G(q, qu()),
6645
6660
  kind: K("condition"),
6646
6661
  ...Xd
6647
6662
  }),
6648
- H({
6663
+ U({
6649
6664
  ...rf,
6650
- inputs: Ku().transform(() => ({})).default({}),
6665
+ inputs: Gu().transform(() => ({})).default({}),
6651
6666
  kind: K("value"),
6652
- values: V(J)
6667
+ values: H(J)
6653
6668
  }),
6654
- H({
6669
+ U({
6655
6670
  ...rf,
6656
6671
  kind: K("subflow"),
6657
6672
  subflowId: q
6658
6673
  }),
6659
- H({
6674
+ U({
6660
6675
  ...rf,
6661
6676
  kind: K("task"),
6662
6677
  task: Gd,
6663
- additionalInputs: V(J).optional()
6678
+ additionalInputs: H(J).optional()
6664
6679
  }),
6665
- H({
6680
+ U({
6666
6681
  ...rf,
6667
6682
  kind: K("task"),
6668
6683
  taskId: q,
6669
- additionalInputs: V(J).optional()
6684
+ additionalInputs: H(J).optional()
6670
6685
  }),
6671
- Zu({
6686
+ Xu({
6672
6687
  ...rf,
6673
6688
  kind: K("approval"),
6674
6689
  ...Zd
6675
6690
  }).omit({ timeoutMs: !0 }),
6676
- Zu({
6691
+ Xu({
6677
6692
  ...rf,
6678
6693
  kind: K("wait"),
6679
6694
  ...Zd
6680
6695
  }).omit({ timeoutMs: !0 }),
6681
- H({
6696
+ U({
6682
6697
  ...nf,
6683
6698
  kind: K("manual")
6684
6699
  }),
6685
- H({
6700
+ U({
6686
6701
  ...nf,
6687
6702
  kind: K("webhook"),
6688
6703
  ...$d
6689
6704
  }),
6690
- H({
6705
+ U({
6691
6706
  ...nf,
6692
6707
  kind: K("cron"),
6693
6708
  cronTimes: Ad
6694
6709
  }),
6695
- H({
6710
+ U({
6696
6711
  ...nf,
6697
6712
  kind: K("poll"),
6698
- bindingId: q,
6699
- config: W(q, Bd),
6700
- definition: H({
6713
+ connectionId: q.min(1).optional(),
6714
+ config: G(q, Bd),
6715
+ definition: U({
6701
6716
  ...ef,
6702
6717
  type: K("poll")
6703
6718
  }),
6704
6719
  pollTimes: Ad
6705
6720
  }),
6706
- H({
6721
+ U({
6707
6722
  ...nf,
6708
6723
  kind: K("integration"),
6709
- bindingId: q,
6710
- config: W(q, Bd),
6711
- definition: H({
6724
+ connectionId: q.min(1).optional(),
6725
+ config: G(q, Bd),
6726
+ definition: U({
6712
6727
  ...ef,
6713
6728
  type: K("integration"),
6714
6729
  endpoint: tf
6715
6730
  })
6716
6731
  })
6717
- ]), of = U([H({ kind: K("flow") }), H({
6732
+ ]), of = W([U({ kind: K("flow") }), U({
6718
6733
  kind: K("subflow"),
6719
6734
  id: q
6720
- })]), sf = H({
6735
+ })]), sf = U({
6721
6736
  source: q,
6722
6737
  target: q,
6723
6738
  sourceHandle: q.optional()
6724
6739
  }), Y = {
6725
6740
  nodeId: q,
6726
6741
  target: of
6727
- }, cf = H({
6742
+ }, cf = U({
6728
6743
  name: q,
6729
- inputs: V(J),
6730
- outputs: V(Fd.extend({ sources: V(U([Ld, Rd])) }))
6731
- }), lf = H({
6732
- nodes: W(q, af),
6733
- edges: V(sf).default([])
6734
- }), uf = H({
6735
- kind: G(["connection", "variable"]),
6744
+ inputs: H(J),
6745
+ outputs: H(Fd.extend({ sources: H(W([Ld, Rd])) }))
6746
+ }), lf = U({
6747
+ nodes: G(q, af),
6748
+ edges: H(sf).default([])
6749
+ }), uf = U({
6750
+ kind: K("variable"),
6736
6751
  target: q
6737
- }), df = H({
6752
+ }), df = U({
6738
6753
  name: q,
6739
6754
  imports: Pd,
6740
6755
  source: q
6741
- }), ff = H({
6742
- bindings: W(q, uf),
6756
+ }), ff = U({
6757
+ bindings: G(q, uf),
6743
6758
  graph: lf,
6744
- subflows: W(q, cf.extend({ graph: lf })),
6745
- tasks: W(q, Jd)
6759
+ subflows: G(q, cf.extend({ graph: lf })),
6760
+ tasks: G(q, Jd)
6746
6761
  });
6747
- H({
6748
- modelVersion: U([K(2), K(3)]),
6762
+ U({
6763
+ modelVersion: W([K(2), K(4)]),
6749
6764
  document: ff,
6750
- modules: W(q, df)
6765
+ modules: G(q, df)
6751
6766
  }).extend({
6752
6767
  kind: K("open-flow-flow-revision"),
6753
6768
  version: K(1)
@@ -6776,11 +6791,18 @@ var pf = {
6776
6791
  node: af
6777
6792
  },
6778
6793
  "graph.node.delete": Y,
6779
- "graph.node.field.set": U([
6780
- H({
6794
+ "graph.node.field.set": W([
6795
+ U({
6796
+ ...Y,
6797
+ kind: K("graph.node.field.set"),
6798
+ field: K("connectionId"),
6799
+ before: q.min(1).optional(),
6800
+ value: q.min(1).optional()
6801
+ }),
6802
+ U({
6781
6803
  ...Y,
6782
6804
  kind: K("graph.node.field.set"),
6783
- field: G([
6805
+ field: nd([
6784
6806
  "description",
6785
6807
  "icon",
6786
6808
  "name"
@@ -6788,19 +6810,19 @@ var pf = {
6788
6810
  before: q.optional(),
6789
6811
  value: q.optional()
6790
6812
  }),
6791
- H({
6813
+ U({
6792
6814
  ...Y,
6793
6815
  kind: K("graph.node.field.set"),
6794
6816
  field: K("maxExecutions"),
6795
- before: Ru().int().positive().max(2 ** 53 - 1).optional(),
6796
- value: Ru().int().positive().max(2 ** 53 - 1).optional()
6817
+ before: V().int().positive().max(2 ** 53 - 1).optional(),
6818
+ value: V().int().positive().max(2 ** 53 - 1).optional()
6797
6819
  }),
6798
- H({
6820
+ U({
6799
6821
  ...Y,
6800
6822
  kind: K("graph.node.field.set"),
6801
6823
  field: K("timeoutMs"),
6802
- before: Ru().optional(),
6803
- value: Ru().optional()
6824
+ before: V().optional(),
6825
+ value: V().optional()
6804
6826
  })
6805
6827
  ]),
6806
6828
  "graph.node.input.set": {
@@ -6811,35 +6833,35 @@ var pf = {
6811
6833
  },
6812
6834
  "graph.node.additional-inputs.set": {
6813
6835
  ...Y,
6814
- before: V(J).optional(),
6815
- value: V(J).optional()
6836
+ before: H(J).optional(),
6837
+ value: H(J).optional()
6816
6838
  },
6817
6839
  "graph.node.condition.set": {
6818
6840
  ...Y,
6819
- before: H(Xd),
6820
- value: H(Xd)
6841
+ before: U(Xd),
6842
+ value: U(Xd)
6821
6843
  },
6822
6844
  "graph.node.values.set": {
6823
6845
  ...Y,
6824
- before: V(J),
6825
- value: V(J)
6846
+ before: H(J),
6847
+ value: H(J)
6826
6848
  },
6827
6849
  "graph.node.resolution.set": {
6828
6850
  ...Y,
6829
- target: H({ kind: K("flow") }),
6830
- before: H(Zd),
6831
- value: H(Zd)
6851
+ target: U({ kind: K("flow") }),
6852
+ before: U(Zd),
6853
+ value: U(Zd)
6832
6854
  },
6833
6855
  "graph.node.webhook.set": {
6834
6856
  ...Y,
6835
- target: H({ kind: K("flow") }),
6836
- before: H($d),
6837
- value: H($d)
6857
+ target: U({ kind: K("flow") }),
6858
+ before: U($d),
6859
+ value: U($d)
6838
6860
  },
6839
6861
  "graph.node.task.ports.set": {
6840
6862
  ...Y,
6841
- before: H(Ud),
6842
- value: H(Ud)
6863
+ before: U(Ud),
6864
+ value: U(Ud)
6843
6865
  },
6844
6866
  "graph.node.task.name.set": {
6845
6867
  ...Y,
@@ -6848,8 +6870,8 @@ var pf = {
6848
6870
  },
6849
6871
  "graph.node.task.capabilities.set": {
6850
6872
  ...Y,
6851
- before: V(Wd).optional(),
6852
- value: V(Wd).optional()
6873
+ before: H(Wd).optional(),
6874
+ value: H(Wd).optional()
6853
6875
  },
6854
6876
  "graph.trigger.config.set": {
6855
6877
  nodeId: q,
@@ -6906,8 +6928,8 @@ var pf = {
6906
6928
  },
6907
6929
  "task.llm.mode.set": {
6908
6930
  taskId: q,
6909
- before: G(["chat", "json"]),
6910
- value: G(["chat", "json"])
6931
+ before: nd(["chat", "json"]),
6932
+ value: nd(["chat", "json"])
6911
6933
  },
6912
6934
  "task.name.set": {
6913
6935
  taskId: q,
@@ -6915,7 +6937,7 @@ var pf = {
6915
6937
  value: q
6916
6938
  }
6917
6939
  };
6918
- V(U([...new Map(Object.entries(pf).map(([e, t]) => [e, t instanceof z ? t : H({
6940
+ H(W([...new Map(Object.entries(pf).map(([e, t]) => [e, t instanceof z ? t : U({
6919
6941
  kind: K(e),
6920
6942
  ...t
6921
6943
  })])).values()])).min(1);