@oomol-lab/open-flow 0.1.0-beta.13 → 0.1.0-beta.14

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.
@@ -1,6 +1,6 @@
1
1
  import { r as e } from "./dist-BKuSVKCC.js";
2
2
  import { I as t, j as n, t as r } from "./dist-DxahK_I8.js";
3
- import { r as i } from "./flowWorkspace-BhpxeXhY.js";
3
+ import { r as i } from "./flowWorkspace-DvitOPqI.js";
4
4
  //#region ../../node_modules/.bun/@uiw+codemirror-themes@4.25.11/node_modules/@uiw/codemirror-themes/esm/index.js
5
5
  var a = (t) => {
6
6
  var i = t.theme, a = t.settings, o = a === void 0 ? {} : a, s = t.styles, c = s === void 0 ? [] : s, l = { ".cm-gutters": {} }, u = {};
@@ -60,7 +60,8 @@ var Ee = ie(), De = v({
60
60
  v({
61
61
  pointer: p().max(4096).default(""),
62
62
  offset: h().int().nonnegative().default(0),
63
- limit: h().int().min(1).max(100).default(20)
63
+ limit: h().int().min(1).max(100).default(20),
64
+ maxBytes: h().int().min(1).max(1048576).default(15e3)
64
65
  });
65
66
  var Ae = v({
66
67
  version: re(1),
@@ -2042,7 +2043,6 @@ var Dt = class {
2042
2043
  execution: "Execution",
2043
2044
  auto: "Run automatically",
2044
2045
  confirm: "Confirm before running",
2045
- chooseExecution: "Choose how this tool runs",
2046
2046
  executionHint: "Choose whether each call runs directly or waits for your confirmation.",
2047
2047
  modelParameters: "The Agent fills the parameters from the task.",
2048
2048
  parameters: "Advanced parameter settings",
@@ -2797,7 +2797,6 @@ var Dt = class {
2797
2797
  execution: "执行方式",
2798
2798
  auto: "自动执行",
2799
2799
  confirm: "执行前确认",
2800
- chooseExecution: "选择执行方式",
2801
2800
  executionHint: "选择直接执行,或每次调用前由你确认。",
2802
2801
  modelParameters: "参数由 Agent 根据任务填写。",
2803
2802
  parameters: "高级参数设置",
@@ -3552,7 +3551,6 @@ var Dt = class {
3552
3551
  execution: "執行方式",
3553
3552
  auto: "自動執行",
3554
3553
  confirm: "執行前確認",
3555
- chooseExecution: "選擇執行方式",
3556
3554
  executionHint: "選擇直接執行,或每次呼叫前由你確認。",
3557
3555
  modelParameters: "參數由 Agent 根據任務填寫。",
3558
3556
  parameters: "進階參數設定",
@@ -4307,7 +4305,6 @@ var Dt = class {
4307
4305
  execution: "実行方法",
4308
4306
  auto: "自動実行",
4309
4307
  confirm: "実行前に確認",
4310
- chooseExecution: "実行方法を選択",
4311
4308
  executionHint: "そのまま実行するか、呼び出しごとに確認するかを選択します。",
4312
4309
  modelParameters: "Agent がタスクに応じてパラメーターを入力します。",
4313
4310
  parameters: "パラメーターの詳細設定",
@@ -5062,7 +5059,6 @@ var Dt = class {
5062
5059
  execution: "실행 방식",
5063
5060
  auto: "자동 실행",
5064
5061
  confirm: "실행 전 확인",
5065
- chooseExecution: "실행 방식 선택",
5066
5062
  executionHint: "즉시 실행할지, 호출할 때마다 확인할지 선택하세요.",
5067
5063
  modelParameters: "Agent가 작업에 따라 매개변수를 입력합니다.",
5068
5064
  parameters: "고급 매개변수 설정",
@@ -5817,7 +5813,6 @@ var Dt = class {
5817
5813
  execution: "Способ выполнения",
5818
5814
  auto: "Выполнять автоматически",
5819
5815
  confirm: "Подтверждать перед выполнением",
5820
- chooseExecution: "Выберите способ выполнения",
5821
5816
  executionHint: "Выберите прямое выполнение или подтверждение каждого вызова.",
5822
5817
  modelParameters: "Агент заполняет параметры по задаче.",
5823
5818
  parameters: "Расширенные параметры",
@@ -6572,7 +6567,6 @@ var Dt = class {
6572
6567
  execution: "Mode d’exécution",
6573
6568
  auto: "Exécuter automatiquement",
6574
6569
  confirm: "Confirmer avant d’exécuter",
6575
- chooseExecution: "Choisir le mode d’exécution",
6576
6570
  executionHint: "Choisissez une exécution directe ou une confirmation à chaque appel.",
6577
6571
  modelParameters: "L’Agent remplit les paramètres selon la tâche.",
6578
6572
  parameters: "Paramètres avancés",
@@ -1,7 +1,7 @@
1
1
  import { i as e, o as t, r as n, t as r } from "./rolldown-runtime-CEFd7nDs.js";
2
2
  import { a as i, c as a, d as o, f as s, i as c, l, n as u, r as d, s as f, t as p, u as m } from "./dist-C46JByB-.js";
3
3
  import { a as h, c as g, i as _, n as v, o as y, r as b, s as x, t as S } from "./main-DmjVyuWr.js";
4
- import { A as C, E as w, K as T, R as E, at as D, ct as O, dt as k, et as A, ft as j, gt as M, i as ee, it as N, lt as P, n as te, nt as ne, ot as F, rt as I, st as L, tt as re, ut as ie } from "./flowChanges-CX0dLRzD.js";
4
+ import { A as C, E as w, K as T, R as E, at as D, ct as O, dt as k, et as A, ft as j, gt as M, i as ee, it as N, lt as P, n as te, nt as ne, ot as F, rt as I, st as L, tt as re, ut as ie } from "./flowChanges-CNSahvWH.js";
5
5
  import { $ as R, $n as ae, $t as oe, A as z, At as se, B as ce, Bn as le, C as ue, D as de, Dn as fe, Dt as pe, E as me, Et as he, Fn as ge, Ft as _e, Gn as ve, Gt as ye, H as be, Hn as xe, I as Se, In as Ce, Jn as we, Jt as Te, K as Ee, Kn as De, Kt as Oe, L as ke, Ln as Ae, M as je, Mt as Me, Nn as Ne, Nt as Pe, O as Fe, On as Ie, Ot as Le, P as Re, Q as ze, Qn as Be, Qt as Ve, Rn as He, Rt as Ue, S as We, St as Ge, Tt as Ke, U as qe, Un as Je, V as Ye, Vn as Xe, Vt as Ze, W as Qe, Wn as $e, X as et, Xt as tt, Y as nt, Yn as rt, Yt as it, Z as at, Zn as ot, Zt as st, _ as ct, _n as B, _t as lt, a as V, ar as ut, at as dt, b as ft, bn as pt, bt as mt, c as ht, ct as gt, d as _t, dn as vt, dr as yt, dt as bt, en as xt, et as St, f as Ct, fn as wt, ft as Tt, g as Et, gn as Dt, h as Ot, hn as kt, ht as At, i as jt, in as Mt, it as Nt, j as Pt, jt as Ft, k as It, kn as Lt, kt as Rt, l as zt, ln as Bt, lr as Vt, mn as Ht, n as Ut, nn as Wt, nr as Gt, nt as Kt, o as qt, or as Jt, ot as Yt, p as Xt, pn as Zt, pt as Qt, qn as $t, r as en, rn as tn, rr as nn, rt as rn, s as an, sr as on, st as sn, tr as cn, un as ln, v as un, vt as dn, w as fn, wt as pn, x as mn, y as hn, yn as gn, yt as _n, z as vn, zn as yn } from "./getPseudoElementBounds-Dfqo78k7.js";
6
6
  import { B as bn, H as xn, L as Sn, R as Cn, U as wn, V as Tn, W as En, a as Dn, b as On, c as H, d as kn, g as An, h as jn, i as Mn, l as Nn, n as Pn, o as Fn, r as In, s as Ln, t as Rn, w as zn, z as Bn } from "./select-DCGY8Lom.js";
7
7
  import { A as Vn, B as Hn, C as Un, D as Wn, E as Gn, F as Kn, I as qn, L as Jn, M as Yn, N as Xn, O as Zn, P as Qn, R as $n, S as er, T as tr, _ as nr, a as rr, b as ir, c as ar, d as or, f as sr, g as cr, h as lr, i as ur, j as dr, k as fr, l as pr, m as mr, o as hr, p as gr, r as _r, s as vr, t as yr, u as br, v as xr, w as Sr, x as Cr, y as wr, z as Tr } from "./DesignerIcon-Bzpx8BtG.js";
@@ -135793,7 +135793,7 @@ var yM = class {
135793
135793
  }
135794
135794
  return !0;
135795
135795
  }
135796
- }, bM = Za(async () => ({ default: (await import("./inputValues-CFlfnXlS.js")).InputValues }));
135796
+ }, bM = Za(async () => ({ default: (await import("./inputValues-CczmpMHr.js")).InputValues }));
135797
135797
  function xM({ source: e, port: t, inputs: n, model: r, theme: i, onChange: a, onValidChange: o, onCommit: s, labelledBy: c }) {
135798
135798
  let l = h(), u = _(), d = oo({
135799
135799
  onChange: a,
@@ -135900,7 +135900,7 @@ function xM({ source: e, port: t, inputs: n, model: r, theme: i, onChange: a, on
135900
135900
  ] });
135901
135901
  }
135902
135902
  function SM({ task: e, nodeId: t, store: n, connectors: r, disabled: i, theme: a }) {
135903
- let o = h(), [s, c] = so(e.executor), [l, u] = so(), [d, f] = so(), [p, m] = so(), [g, _] = so(), [v] = so(n.$.flowId.value), [y] = so(() => new yM(e.executor, async (e, r) => {
135903
+ let o = h(), [s, c] = so(e.executor), [l, u] = so(), [d, f] = so(), [p, m] = so(!1), [g, _] = so(), [v] = so(n.$.flowId.value), [y] = so(() => new yM(e.executor, async (e, r) => {
135904
135904
  if (n.$.flowId.value != v) return !1;
135905
135905
  let i = n.$.revision.value?.node({ kind: "flow" }, t), a = i?.kind == "task" ? i.definition : void 0;
135906
135906
  if (a == null || !("executor" in a) || !Le(a.executor, e)) return !1;
@@ -135960,7 +135960,7 @@ function SM({ task: e, nodeId: t, store: n, connectors: r, disabled: i, theme: a
135960
135960
  S({
135961
135961
  ...s,
135962
135962
  tools: [...s.tools, te(e, t, crypto.randomUUID())]
135963
- }), f(void 0), m(void 0);
135963
+ }), f(void 0), m(!1);
135964
135964
  };
135965
135965
  return /* @__PURE__ */ G("form", {
135966
135966
  className: "inspector-section inspector-form agent-form",
@@ -136220,7 +136220,7 @@ function SM({ task: e, nodeId: t, store: n, connectors: r, disabled: i, theme: a
136220
136220
  connectors: r,
136221
136221
  disabled: i,
136222
136222
  label: o("agent.addTool"),
136223
- onSelect: async (e) => (f(e), m(void 0), !0)
136223
+ onSelect: async (e) => (f(e), m(!1), !0)
136224
136224
  }) : /* @__PURE__ */ K("div", {
136225
136225
  className: "inspector-disclosure-content",
136226
136226
  children: [
@@ -136236,23 +136236,15 @@ function SM({ task: e, nodeId: t, store: n, connectors: r, disabled: i, theme: a
136236
136236
  }),
136237
136237
  /* @__PURE__ */ K(jj, {
136238
136238
  id: `${t}-new-approval`,
136239
- value: p == null ? "" : p ? "confirm" : "auto",
136240
- onChange: (e) => m(e.target.value == "" ? void 0 : e.target.value == "confirm"),
136241
- children: [
136242
- /* @__PURE__ */ G(Mj, {
136243
- value: "",
136244
- disabled: !0,
136245
- children: o("agent.chooseExecution")
136246
- }),
136247
- /* @__PURE__ */ G(Mj, {
136248
- value: "auto",
136249
- children: o("agent.auto")
136250
- }),
136251
- /* @__PURE__ */ G(Mj, {
136252
- value: "confirm",
136253
- children: o("agent.confirm")
136254
- })
136255
- ]
136239
+ value: p ? "confirm" : "auto",
136240
+ onChange: (e) => m(e.target.value == "confirm"),
136241
+ children: [/* @__PURE__ */ G(Mj, {
136242
+ value: "auto",
136243
+ children: o("agent.auto")
136244
+ }), /* @__PURE__ */ G(Mj, {
136245
+ value: "confirm",
136246
+ children: o("agent.confirm")
136247
+ })]
136256
136248
  }),
136257
136249
  /* @__PURE__ */ G(Tn, { children: o("agent.executionHint") })
136258
136250
  ] }),
@@ -136262,10 +136254,7 @@ function SM({ task: e, nodeId: t, store: n, connectors: r, disabled: i, theme: a
136262
136254
  children: [/* @__PURE__ */ G(Xe, {
136263
136255
  type: "button",
136264
136256
  size: "sm",
136265
- disabled: p == null,
136266
- onClick: () => {
136267
- p != null && F(d, p);
136268
- },
136257
+ onClick: () => F(d, p),
136269
136258
  children: o("agent.addTool")
136270
136259
  }), /* @__PURE__ */ G(Xe, {
136271
136260
  type: "button",
@@ -136830,7 +136819,7 @@ async function OM() {
136830
136819
  import("./dist-DYjIVIZC.js"),
136831
136820
  import("./dist-Mecbzdl2.js").then((e) => e.x),
136832
136821
  import("./dist-BKuSVKCC.js").then((e) => e.l),
136833
- import("./esm-nAA6DHox.js"),
136822
+ import("./esm-3CD4_kEl.js"),
136834
136823
  import("./dist-TJfrvoIQ.js").then((e) => e.t),
136835
136824
  import("./dist-DpDLsYtO.js"),
136836
136825
  import("./dist-DwvhuMxw.js"),
@@ -137116,7 +137105,7 @@ function HM(e, t) {
137116
137105
  }
137117
137106
  //#endregion
137118
137107
  //#region src/workbench/browser/runtime/designer/nodeInspector.tsx
137119
- var UM = Za(async () => ({ default: (await import("./inputValues-CFlfnXlS.js")).InputValues }));
137108
+ var UM = Za(async () => ({ default: (await import("./inputValues-CczmpMHr.js")).InputValues }));
137120
137109
  function WM(e, t) {
137121
137110
  return e?.kind == "trigger" ? "trigger" : e?.kind == "condition" ? "condition" : e?.kind == "value" ? "value" : e?.kind == "wait" ? "wait" : e?.kind == "subflow" || e == null && t.kind == "subflow" ? "subflow" : e?.kind == "task" && e.definition != null && "executor" in e.definition ? e.definition.executor.kind == "connector" ? "connection" : "llm" : "task";
137122
137111
  }
@@ -1,7 +1,7 @@
1
1
  import { f as e } from "./dist-C46JByB-.js";
2
2
  import { s as t } from "./main-DmjVyuWr.js";
3
3
  import { n, t as r } from "./flowRunInputEditorStore-NPGePkvP.js";
4
- import { n as i } from "./flowWorkspace-BhpxeXhY.js";
4
+ import { n as i } from "./flowWorkspace-DvitOPqI.js";
5
5
  import { useEffect as a, useState as o } from "react";
6
6
  import { jsx as s } from "react/jsx-runtime";
7
7
  //#region src/workbench/browser/runtime/designer/inputValues.tsx
@@ -1,6 +1,6 @@
1
1
  import { a as e, f as t, i as n } from "./dist-C46JByB-.js";
2
2
  import { a as r, i, s as a, t as o } from "./main-DmjVyuWr.js";
3
- import { $ as s, B as c, C as l, D as u, F as d, G as f, H as p, I as m, J as h, L as g, M as _, N as v, O as y, P as b, Q as x, S, T as C, U as w, V as T, W as E, X as D, Y as ee, Z as O, _ as k, _t as A, a as j, at as te, b as ne, c as re, ct as ie, d as ae, dt as oe, et as se, f as ce, ft as le, g as ue, gt as de, h as fe, ht as M, it as pe, j as me, k as he, l as ge, lt as _e, m as ve, mt as ye, nt as N, o as be, ot as xe, p as Se, pt as P, q as Ce, r as F, rt as we, s as Te, st as Ee, t as De, tt as Oe, u as ke, ut as Ae, v as je, w as Me, x as Ne, y as Pe, z as I } from "./flowChanges-CX0dLRzD.js";
3
+ import { $ as s, B as c, C as l, D as u, F as d, G as f, H as p, I as m, J as h, L as g, M as _, N as v, O as y, P as b, Q as x, S, T as C, U as w, V as T, W as E, X as D, Y as ee, Z as O, _ as k, _t as A, a as j, at as te, b as ne, c as re, ct as ie, d as ae, dt as oe, et as se, f as ce, ft as le, g as ue, gt as de, h as fe, ht as M, it as pe, j as me, k as he, l as ge, lt as _e, m as ve, mt as ye, nt as N, o as be, ot as xe, p as Se, pt as P, q as Ce, r as F, rt as we, s as Te, st as Ee, t as De, tt as Oe, u as ke, ut as Ae, v as je, w as Me, x as Ne, y as Pe, z as I } from "./flowChanges-CNSahvWH.js";
4
4
  import { Ot as Fe, Un as Ie, Vn as L, jt as R } from "./getPseudoElementBounds-Dfqo78k7.js";
5
5
  import { B as Le, C as z, G as Re, H as ze, L as Be, S as Ve, U as He, W as Ue, _ as We, c as B, d as Ge, f as Ke, h as qe, l as Je, m as Ye, p as Xe, u as Ze } from "./select-DCGY8Lom.js";
6
6
  import { _ as Qe, c as $e, f as et, s as tt, u as nt } from "./DesignerIcon-Bzpx8BtG.js";
@@ -3209,7 +3209,7 @@ var gn = { openExternalPage: async () => !1 }, _n = class {
3209
3209
  return;
3210
3210
  }
3211
3211
  }
3212
- }, vn = ct(() => import("./flowWorkspace-BhpxeXhY.js").then((e) => e.t));
3212
+ }, vn = ct(() => import("./flowWorkspace-DvitOPqI.js").then((e) => e.t));
3213
3213
  function yn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i, pending: a = !1, title: o, token: s, tokenLabel: c }) {
3214
3214
  let l = s != null && c != null && i != null, u = s ?? "", d = /* @__PURE__ */ K(lt, { children: [
3215
3215
  /* @__PURE__ */ G("div", {
@@ -4370,7 +4370,8 @@ var Gs = Ws(), Ks = cs({
4370
4370
  cs({
4371
4371
  pointer: D().max(4096).default(""),
4372
4372
  offset: k().int().nonnegative().default(0),
4373
- limit: k().int().min(1).max(100).default(20)
4373
+ limit: k().int().min(1).max(100).default(20),
4374
+ maxBytes: k().int().min(1).max(1048576).default(15e3)
4374
4375
  }), cs({
4375
4376
  version: F(1),
4376
4377
  runId: D(),
@@ -4349,7 +4349,8 @@ var Ls = Is(), Rs = L({
4349
4349
  }), Vs = L({
4350
4350
  pointer: j().max(4096).default(""),
4351
4351
  offset: N().int().nonnegative().default(0),
4352
- limit: N().int().min(1).max(100).default(20)
4352
+ limit: N().int().min(1).max(100).default(20),
4353
+ maxBytes: N().int().min(1).max(1048576).default(15e3)
4353
4354
  }), Hs = L({
4354
4355
  version: V(1),
4355
4356
  runId: j(),
@@ -4385,69 +4386,84 @@ function Ys(e, t) {
4385
4386
  };
4386
4387
  }
4387
4388
  function Xs(e, t = {}) {
4388
- let { pointer: n, offset: r, limit: i } = Ws(t), a = e;
4389
+ let { pointer: n, offset: r, limit: i, maxBytes: a } = Ws(t), o = e;
4389
4390
  if (n != "") {
4390
4391
  if (!n.startsWith("/")) throw Error("Result pointer must be a JSON Pointer.");
4391
4392
  for (let e of n.slice(1).split("/")) {
4392
4393
  if (/~(?:[^01]|$)/.test(e)) throw Error("Result pointer has an invalid escape.");
4393
4394
  let t = e.replace(/~1/g, "/").replace(/~0/g, "~");
4394
- if (typeof a != "object" || !a || !Object.hasOwn(a, t)) throw Error("Result path does not exist.");
4395
- if (Array.isArray(a)) {
4395
+ if (typeof o != "object" || !o || !Object.hasOwn(o, t)) throw Error("Result path does not exist.");
4396
+ if (Array.isArray(o)) {
4396
4397
  if (!/^(0|[1-9]\d*)$/.test(t)) throw Error("Invalid result array index.");
4397
- a = a[Number(t)];
4398
- } else a = a[t];
4398
+ o = o[Number(t)];
4399
+ } else o = o[t];
4399
4400
  }
4400
4401
  }
4401
- let o = Ys(a, n), s = {
4402
- ...o,
4402
+ let s = Ys(o, n), c = {
4403
+ ...s,
4403
4404
  complete: !0,
4404
4405
  offset: r,
4405
- value: a
4406
+ value: o
4406
4407
  };
4407
- if (r == 0 && (t.limit == null || o.length == null || o.length <= i) && Js(s) <= 15e3) return s;
4408
- let c = o;
4409
- if (typeof a == "string") {
4410
- let e = 0, t = 0, n = "", i = !1;
4411
- for (let o of a) e >= r && !i && (t + Js(o) - 2 > 8192 ? i = !0 : (n += o, t += Js(o) - 2)), e++;
4408
+ if (r == 0 && (t.limit == null || s.length == null || s.length <= i) && Js(c) <= a) return c;
4409
+ let l = s;
4410
+ if (typeof o == "string") {
4411
+ let e = 0;
4412
+ for (let t of o) e++;
4412
4413
  if (r >= e) throw Error("Result offset is out of range.");
4413
- let o = r + [...n].length;
4414
+ let t = a - Js({
4415
+ ...l,
4416
+ length: e,
4417
+ offset: r,
4418
+ value: "",
4419
+ nextOffset: e
4420
+ }), n = 0, i = "", s = r, c = 0;
4421
+ for (let e of o) {
4422
+ if (c++ < r) continue;
4423
+ let a = Js(e) - 2;
4424
+ if (n + a > t) break;
4425
+ i += e, n += a, s++;
4426
+ }
4427
+ if (s == r) throw Error("Result byte budget cannot fit a string character and page metadata.");
4414
4428
  return {
4415
- ...c,
4416
- complete: r == 0 && o == e,
4429
+ ...l,
4430
+ complete: r == 0 && s == e,
4417
4431
  length: e,
4418
4432
  offset: r,
4419
- value: n,
4420
- ...o < e ? { nextOffset: o } : {}
4433
+ value: i,
4434
+ ...s < e ? { nextOffset: s } : {}
4421
4435
  };
4422
4436
  }
4423
- if (typeof a != "object" || !a) throw Error("Result cannot be paged.");
4424
- let l = Object.keys(a);
4425
- if (r >= l.length) throw Error("Result offset is out of range.");
4426
- let u = [];
4427
- for (let e of l.slice(r, r + i)) {
4428
- let t = `${n}/${e.replace(/~/g, "~0").replace(/\//g, "~1")}`, i = Array.isArray(a) ? a[Number(e)] : a[e], o = Ys(i, t), s = {
4429
- ...o,
4437
+ if (typeof o != "object" || !o) throw Error("Result cannot be paged.");
4438
+ let u = Object.keys(o);
4439
+ if (r >= u.length) throw Error("Result offset is out of range.");
4440
+ let d = [];
4441
+ for (let e of u.slice(r, r + i)) {
4442
+ let t = `${n}/${e.replace(/~/g, "~0").replace(/\//g, "~1")}`, i = Array.isArray(o) ? o[Number(e)] : o[e], s = Ys(i, t), c = {
4443
+ ...s,
4430
4444
  complete: !0,
4431
4445
  value: i
4432
- }, l = Js({
4433
- ...c,
4446
+ }, f = Js({
4447
+ ...l,
4434
4448
  offset: r,
4435
- entries: [s]
4436
- }) <= 15e3 ? s : o;
4449
+ entries: [c],
4450
+ nextOffset: u.length
4451
+ }) <= a ? c : s;
4437
4452
  if (Js({
4438
- ...c,
4453
+ ...l,
4439
4454
  offset: r,
4440
- entries: [...u, l]
4441
- }) > 15e3) break;
4442
- u.push(l);
4455
+ entries: [...d, f],
4456
+ nextOffset: u.length
4457
+ }) > a) break;
4458
+ d.push(f);
4443
4459
  }
4444
- if (u.length == 0) throw Error("Result property name exceeds the preview limit. Download the full result.");
4445
- let d = r + u.length;
4460
+ if (d.length == 0) throw Error("Result property name exceeds the preview limit. Download the full result.");
4461
+ let f = r + d.length;
4446
4462
  return {
4447
- ...c,
4463
+ ...l,
4448
4464
  offset: r,
4449
- entries: u,
4450
- ...d < l.length ? { nextOffset: d } : {}
4465
+ entries: d,
4466
+ ...f < u.length ? { nextOffset: f } : {}
4451
4467
  };
4452
4468
  }
4453
4469
  function Zs(e, t = 0) {
@@ -38,6 +38,7 @@ export interface ResultQuery {
38
38
  readonly pointer?: string;
39
39
  readonly offset?: number;
40
40
  readonly limit?: number;
41
+ readonly maxBytes?: number;
41
42
  }
42
43
  export declare function parseResultQuery(value: unknown): Required<ResultQuery>;
43
44
  export declare function decodeResultList(value: unknown): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oomol-lab/open-flow",
3
- "version": "0.1.0-beta.13",
3
+ "version": "0.1.0-beta.14",
4
4
  "description": "TypeScript contracts and Browser runtime for Open Flow.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {