llmz 0.6.1 → 0.6.2

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 (40) hide show
  1. package/dist/{_baseForOwn-D8-Dvy2A.js → _baseForOwn-CFhWe_W6.js} +1 -1
  2. package/dist/{_baseForOwn-9MK5s55q.cjs → _baseForOwn-buOZDFbK.cjs} +1 -1
  3. package/dist/{_baseIteratee-7Un0_Up5.cjs → _baseIteratee-CF4qP2a8.cjs} +3 -3
  4. package/dist/{_baseIteratee-D5Jf7fip.js → _baseIteratee-P_firB7b.js} +3 -3
  5. package/dist/{_getPrototype-DslcqzTw.js → _getPrototype-CG7Dxrrz.js} +1 -1
  6. package/dist/{_getPrototype-ClNRmwmh.cjs → _getPrototype-DQDlNVVM.cjs} +1 -1
  7. package/dist/{_overArg-ypvt7e2w.cjs → _overArg-C5Hy7oCi.cjs} +4 -2
  8. package/dist/{_overArg-BLtNSzsS.js → _overArg-CRYbj1NH.js} +4 -2
  9. package/dist/{component-505RuR8N.cjs → component-BwixNVH8.cjs} +2 -2
  10. package/dist/{component-BEupuE6R.js → component-DGG7d_Mz.js} +1 -1
  11. package/dist/{custom-client-CCwAr3HL.cjs → custom-client-BPmEoWKu.cjs} +10 -10
  12. package/dist/{custom-client-CGLO1gl2.js → custom-client-NUoxrFQh.js} +10 -10
  13. package/dist/{dual-modes-RFJ2wqKn.js → dual-modes-D_p-jedw.js} +17 -14
  14. package/dist/{dual-modes-VSvmn7CC.cjs → dual-modes-wAOAlaBS.cjs} +17 -14
  15. package/dist/{execute-CsMxT51Z.cjs → execute-BEaq3jkV.cjs} +7 -7
  16. package/dist/{execute-Cy0aokFn.js → execute-DYvFRs54.js} +6 -6
  17. package/dist/{exit-s7Vuu_cZ.cjs → exit-BGi0Kk0y.cjs} +8 -6
  18. package/dist/{exit-D8q65E62.js → exit-CDdxDBRT.js} +7 -5
  19. package/dist/index.cjs +20 -20
  20. package/dist/index.js +20 -20
  21. package/dist/index.workerd.js +85 -60
  22. package/dist/{isEmpty-C-uBEvAD.js → isEmpty-BhJRCqIF.js} +2 -2
  23. package/dist/{isEmpty-BRazOx0g.cjs → isEmpty-LY533Wmh.cjs} +2 -2
  24. package/dist/{isPlainObject-ChaHUF2F.cjs → isPlainObject-CSxXVKCk.cjs} +2 -2
  25. package/dist/{isPlainObject-BB1ER-H9.js → isPlainObject-D39AzPO2.js} +2 -2
  26. package/dist/{jsx-BQPpLyio.cjs → jsx-BWvT6ukg.cjs} +3 -3
  27. package/dist/{jsx-DDGNq80p.js → jsx-CIgdGGVs.js} +2 -2
  28. package/dist/{tool-DOS3cQkd.js → tool-CAo-BQHs.js} +29 -23
  29. package/dist/{tool-GH5dsFIz.cjs → tool-DdPZb0JW.cjs} +30 -24
  30. package/dist/{truncator-r91qJjmi.cjs → truncator-B6aaJaN1.cjs} +10 -6
  31. package/dist/{truncator-BRlpGJpc.js → truncator-DZqEqnpD.js} +9 -5
  32. package/dist/{typings-Cg4iFis8.cjs → typings-BwAz_TM9.cjs} +6 -4
  33. package/dist/{typings-o1oM8StG.js → typings-CrBa7Tyy.js} +5 -3
  34. package/dist/{uniq-BNJ4Jqjc.js → uniq-BYQ7GWwb.js} +2 -2
  35. package/dist/{uniq-C0m757AJ.cjs → uniq-G872RWmE.cjs} +2 -2
  36. package/dist/{utils-CXVukcZs.js → utils-UBeAFeEI.js} +2 -2
  37. package/dist/{utils-BHvQ0Rup.cjs → utils-ZpJm00ed.cjs} +3 -3
  38. package/dist/{vm-CXx3RAQt.cjs → vm-BjkJqSQH.cjs} +28 -22
  39. package/dist/{vm-BHo3ENPb.js → vm-C5vf1LH3.js} +28 -22
  40. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { x as keys } from "./_baseIteratee-D5Jf7fip.js";
1
+ import { x as keys } from "./_baseIteratee-P_firB7b.js";
2
2
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js
3
3
  /**
4
4
  * Creates a base function for methods like `_.forIn` and `_.forOwn`.
@@ -30,7 +30,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  enumerable: true
31
31
  }) : target, mod));
32
32
  //#endregion
33
- const require__baseIteratee = require("./_baseIteratee-7Un0_Up5.cjs");
33
+ const require__baseIteratee = require("./_baseIteratee-CF4qP2a8.cjs");
34
34
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js
35
35
  /**
36
36
  * Creates a base function for methods like `_.forIn` and `_.forOwn`.
@@ -1,4 +1,4 @@
1
- const require__overArg = require("./_overArg-ypvt7e2w.cjs");
1
+ const require__overArg = require("./_overArg-C5Hy7oCi.cjs");
2
2
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js
3
3
  /** `Object#toString` result references. */
4
4
  var symbolTag$1 = "[object Symbol]";
@@ -41,7 +41,7 @@ function arrayMap(array, iteratee) {
41
41
  //#endregion
42
42
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js
43
43
  /** Used as references for various `Number` constants. */
44
- var INFINITY$1 = Infinity;
44
+ var INFINITY$1 = 1 / 0;
45
45
  /** Used to convert symbols to primitives and strings. */
46
46
  var symbolProto$1 = require__overArg.Symbol ? require__overArg.Symbol.prototype : void 0;
47
47
  var symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0;
@@ -1204,7 +1204,7 @@ function castPath(value, object) {
1204
1204
  //#endregion
1205
1205
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.js
1206
1206
  /** Used as references for various `Number` constants. */
1207
- var INFINITY = Infinity;
1207
+ var INFINITY = 1 / 0;
1208
1208
  /**
1209
1209
  * Converts `value` to a string key if it's not a string or symbol.
1210
1210
  *
@@ -1,4 +1,4 @@
1
- import { a as Symbol, i as baseGetTag, n as isArray, o as root, r as isObjectLike, s as freeGlobal, t as overArg } from "./_overArg-BLtNSzsS.js";
1
+ import { a as Symbol, i as baseGetTag, n as isArray, o as root, r as isObjectLike, s as freeGlobal, t as overArg } from "./_overArg-CRYbj1NH.js";
2
2
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js
3
3
  /** `Object#toString` result references. */
4
4
  var symbolTag$1 = "[object Symbol]";
@@ -41,7 +41,7 @@ function arrayMap(array, iteratee) {
41
41
  //#endregion
42
42
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js
43
43
  /** Used as references for various `Number` constants. */
44
- var INFINITY$1 = Infinity;
44
+ var INFINITY$1 = 1 / 0;
45
45
  /** Used to convert symbols to primitives and strings. */
46
46
  var symbolProto$1 = Symbol ? Symbol.prototype : void 0;
47
47
  var symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0;
@@ -1204,7 +1204,7 @@ function castPath(value, object) {
1204
1204
  //#endregion
1205
1205
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.js
1206
1206
  /** Used as references for various `Number` constants. */
1207
- var INFINITY = Infinity;
1207
+ var INFINITY = 1 / 0;
1208
1208
  /**
1209
1209
  * Converts `value` to a string key if it's not a string or symbol.
1210
1210
  *
@@ -1,4 +1,4 @@
1
- import { t as overArg } from "./_overArg-BLtNSzsS.js";
1
+ import { t as overArg } from "./_overArg-CRYbj1NH.js";
2
2
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
3
3
  /** Built-in value references. */
4
4
  var getPrototype = overArg(Object.getPrototypeOf, Object);
@@ -1,6 +1,6 @@
1
1
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
2
2
  /** Built-in value references. */
3
- var getPrototype = require("./_overArg-ypvt7e2w.cjs").overArg(Object.getPrototypeOf, Object);
3
+ var getPrototype = require("./_overArg-C5Hy7oCi.cjs").overArg(Object.getPrototypeOf, Object);
4
4
  //#endregion
5
5
  Object.defineProperty(exports, "getPrototype", {
6
6
  enumerable: true,
@@ -39,8 +39,10 @@ function getRawTag(value) {
39
39
  var unmasked = true;
40
40
  } catch (e) {}
41
41
  var result = nativeObjectToString$1.call(value);
42
- if (unmasked) if (isOwn) value[symToStringTag$1] = tag;
43
- else delete value[symToStringTag$1];
42
+ if (unmasked) {
43
+ if (isOwn) value[symToStringTag$1] = tag;
44
+ else delete value[symToStringTag$1];
45
+ }
44
46
  return result;
45
47
  }
46
48
  //#endregion
@@ -39,8 +39,10 @@ function getRawTag(value) {
39
39
  var unmasked = true;
40
40
  } catch (e) {}
41
41
  var result = nativeObjectToString$1.call(value);
42
- if (unmasked) if (isOwn) value[symToStringTag$1] = tag;
43
- else delete value[symToStringTag$1];
42
+ if (unmasked) {
43
+ if (isOwn) value[symToStringTag$1] = tag;
44
+ else delete value[symToStringTag$1];
45
+ }
44
46
  return result;
45
47
  }
46
48
  //#endregion
@@ -1,5 +1,5 @@
1
- const require__baseForOwn = require("./_baseForOwn-9MK5s55q.cjs");
2
- const require_jsx = require("./jsx-BQPpLyio.cjs");
1
+ const require__baseForOwn = require("./_baseForOwn-buOZDFbK.cjs");
2
+ const require_jsx = require("./jsx-BWvT6ukg.cjs");
3
3
  //#region src/component.ts
4
4
  var component_exports = /* @__PURE__ */ require__baseForOwn.__exportAll({
5
5
  Component: () => Component,
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-EAsCxrDo.js";
2
- import { n as isAnyJsxComponent, r as isJsxComponent, t as createJsxComponent } from "./jsx-DDGNq80p.js";
2
+ import { n as isAnyJsxComponent, r as isJsxComponent, t as createJsxComponent } from "./jsx-CIgdGGVs.js";
3
3
  //#region src/component.ts
4
4
  var component_exports = /* @__PURE__ */ __exportAll({
5
5
  Component: () => Component,
@@ -1,14 +1,14 @@
1
- const require__overArg = require("./_overArg-ypvt7e2w.cjs");
2
- const require__baseIteratee = require("./_baseIteratee-7Un0_Up5.cjs");
3
- const require_dual_modes = require("./dual-modes-VSvmn7CC.cjs");
4
- const require_utils = require("./utils-BHvQ0Rup.cjs");
5
- const require__getPrototype = require("./_getPrototype-ClNRmwmh.cjs");
6
- const require_isPlainObject = require("./isPlainObject-ChaHUF2F.cjs");
7
- const require_tool = require("./tool-GH5dsFIz.cjs");
1
+ const require__overArg = require("./_overArg-C5Hy7oCi.cjs");
2
+ const require__baseIteratee = require("./_baseIteratee-CF4qP2a8.cjs");
3
+ const require_dual_modes = require("./dual-modes-wAOAlaBS.cjs");
4
+ const require_utils = require("./utils-ZpJm00ed.cjs");
5
+ const require__getPrototype = require("./_getPrototype-DQDlNVVM.cjs");
6
+ const require_isPlainObject = require("./isPlainObject-CSxXVKCk.cjs");
7
+ const require_tool = require("./tool-DdPZb0JW.cjs");
8
8
  const require_errors = require("./errors-C962uJdS.cjs");
9
- const require_exit = require("./exit-s7Vuu_cZ.cjs");
10
- const require_component = require("./component-505RuR8N.cjs");
11
- const require_truncator = require("./truncator-r91qJjmi.cjs");
9
+ const require_exit = require("./exit-BGi0Kk0y.cjs");
10
+ const require_component = require("./component-BwixNVH8.cjs");
11
+ const require_truncator = require("./truncator-B6aaJaN1.cjs");
12
12
  let _bpinternal_zui = require("@bpinternal/zui");
13
13
  let ulid = require("ulid");
14
14
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js
@@ -1,14 +1,14 @@
1
- import { a as Symbol, n as isArray, o as root, r as isObjectLike } from "./_overArg-BLtNSzsS.js";
2
- import { D as isBuffer, E as baseUnary, M as baseAssignValue, R as isObject, T as nodeUtil, _ as baseGet, c as _getTag_default, f as getSymbols, h as Stack, k as isPrototype, s as Uint8Array, u as getAllKeys, v as toKey, x as keys, y as castPath, z as arrayMap } from "./_baseIteratee-D5Jf7fip.js";
3
- import { f as flatRest, l as extractType, m as baseCreate, p as copyArray, t as DualModePrompt, u as inspect } from "./dual-modes-RFJ2wqKn.js";
4
- import { _ as getSymbolsIn, b as keysIn, g as getAllKeysIn, o as getTokenizer, x as assignValue, y as baseSlice } from "./utils-CXVukcZs.js";
5
- import { t as getPrototype } from "./_getPrototype-DslcqzTw.js";
6
- import { t as isPlainObject } from "./isPlainObject-BB1ER-H9.js";
7
- import { t as Tool } from "./tool-DOS3cQkd.js";
1
+ import { a as Symbol, n as isArray, o as root, r as isObjectLike } from "./_overArg-CRYbj1NH.js";
2
+ import { D as isBuffer, E as baseUnary, M as baseAssignValue, R as isObject, T as nodeUtil, _ as baseGet, c as _getTag_default, f as getSymbols, h as Stack, k as isPrototype, s as Uint8Array, u as getAllKeys, v as toKey, x as keys, y as castPath, z as arrayMap } from "./_baseIteratee-P_firB7b.js";
3
+ import { f as flatRest, l as extractType, m as baseCreate, p as copyArray, t as DualModePrompt, u as inspect } from "./dual-modes-D_p-jedw.js";
4
+ import { _ as getSymbolsIn, b as keysIn, g as getAllKeysIn, o as getTokenizer, x as assignValue, y as baseSlice } from "./utils-UBeAFeEI.js";
5
+ import { t as getPrototype } from "./_getPrototype-CG7Dxrrz.js";
6
+ import { t as isPlainObject } from "./isPlainObject-D39AzPO2.js";
7
+ import { t as Tool } from "./tool-CAo-BQHs.js";
8
8
  import { o as LoopExceededError } from "./errors-Cg1G0Awu.js";
9
- import { t as Exit } from "./exit-D8q65E62.js";
10
- import { n as assertValidComponent } from "./component-BEupuE6R.js";
11
- import { i as wrapContent, t as stripTruncationTags } from "./truncator-BRlpGJpc.js";
9
+ import { t as Exit } from "./exit-CDdxDBRT.js";
10
+ import { n as assertValidComponent } from "./component-DGG7d_Mz.js";
11
+ import { i as wrapContent, t as stripTruncationTags } from "./truncator-DZqEqnpD.js";
12
12
  import { z } from "@bpinternal/zui";
13
13
  import { ulid } from "ulid";
14
14
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js
@@ -1,13 +1,13 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-EAsCxrDo.js";
2
- import { a as Symbol, n as isArray, r as isObjectLike } from "./_overArg-BLtNSzsS.js";
3
- import { A as isArrayLike, B as isSymbol, E as baseUnary, F as WeakMap, L as identity, M as baseAssignValue, O as isArguments, P as defineProperty, R as isObject, _ as baseGet, c as _getTag_default, g as arrayPush, i as mapToArray, m as arrayFilter, n as baseIsEqual, t as baseIteratee, x as keys, z as arrayMap } from "./_baseIteratee-D5Jf7fip.js";
4
- import { n as baseUniq, r as noop, t as uniq } from "./uniq-BNJ4Jqjc.js";
5
- import { n as escapeString, o as getTokenizer, y as baseSlice } from "./utils-CXVukcZs.js";
6
- import { t as isPlainObject } from "./isPlainObject-BB1ER-H9.js";
7
- import { t as baseForOwn } from "./_baseForOwn-D8-Dvy2A.js";
8
- import { t as isEmpty } from "./isEmpty-C-uBEvAD.js";
2
+ import { a as Symbol, n as isArray, r as isObjectLike } from "./_overArg-CRYbj1NH.js";
3
+ import { A as isArrayLike, B as isSymbol, E as baseUnary, F as WeakMap, L as identity, M as baseAssignValue, O as isArguments, P as defineProperty, R as isObject, _ as baseGet, c as _getTag_default, g as arrayPush, i as mapToArray, m as arrayFilter, n as baseIsEqual, t as baseIteratee, x as keys, z as arrayMap } from "./_baseIteratee-P_firB7b.js";
4
+ import { n as baseUniq, r as noop, t as uniq } from "./uniq-BYQ7GWwb.js";
5
+ import { n as escapeString, o as getTokenizer, y as baseSlice } from "./utils-UBeAFeEI.js";
6
+ import { t as isPlainObject } from "./isPlainObject-D39AzPO2.js";
7
+ import { t as baseForOwn } from "./_baseForOwn-CFhWe_W6.js";
8
+ import { t as isEmpty } from "./isEmpty-BhJRCqIF.js";
9
9
  import { t as cleanStackTrace } from "./stack-traces-BIE_5Xwf.js";
10
- import { i as wrapContent } from "./truncator-BRlpGJpc.js";
10
+ import { i as wrapContent } from "./truncator-DZqEqnpD.js";
11
11
  import { transforms } from "@bpinternal/zui";
12
12
  import bytes from "bytes";
13
13
  import JSON5 from "json5";
@@ -92,7 +92,7 @@ function toNumber(value) {
92
92
  //#endregion
93
93
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toFinite.js
94
94
  /** Used as references for various `Number` constants. */
95
- var INFINITY = Infinity;
95
+ var INFINITY = 1 / 0;
96
96
  var MAX_INTEGER = 17976931348623157e292;
97
97
  /**
98
98
  * Converts `value` to a finite number.
@@ -593,9 +593,10 @@ function baseFlatten(array, depth, predicate, isStrict, result) {
593
593
  result || (result = []);
594
594
  while (++index < length) {
595
595
  var value = array[index];
596
- if (depth > 0 && predicate(value)) if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
597
- else arrayPush(result, value);
598
- else if (!isStrict) result[result.length] = value;
596
+ if (depth > 0 && predicate(value)) {
597
+ if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
598
+ else arrayPush(result, value);
599
+ } else if (!isStrict) result[result.length] = value;
599
600
  }
600
601
  return result;
601
602
  }
@@ -1556,8 +1557,10 @@ const inspect = (value, name, options = DEFAULT_OPTIONS) => {
1556
1557
  else if (genericType === "error") return header + previewError(value);
1557
1558
  else if (genericType === "object") return header + previewObject(value, options);
1558
1559
  else if (genericType === "boolean") return header + previewValue(value);
1559
- else if (typeof value === "string") if (getTokenizer().count(value) < options.tokens) return header + previewValue(value);
1560
- else return header + previewLongText(value);
1560
+ else if (typeof value === "string") {
1561
+ if (getTokenizer().count(value) < options.tokens) return header + previewValue(value);
1562
+ else return header + previewLongText(value);
1563
+ }
1561
1564
  return header + previewValue(value);
1562
1565
  } catch (err) {
1563
1566
  return `Error: ${(err === null || err === void 0 ? void 0 : err.message) ?? "Unknown Error"}`;
@@ -1,12 +1,12 @@
1
- const require__baseForOwn = require("./_baseForOwn-9MK5s55q.cjs");
2
- const require__overArg = require("./_overArg-ypvt7e2w.cjs");
3
- const require__baseIteratee = require("./_baseIteratee-7Un0_Up5.cjs");
4
- const require_uniq = require("./uniq-C0m757AJ.cjs");
5
- const require_utils = require("./utils-BHvQ0Rup.cjs");
6
- const require_isPlainObject = require("./isPlainObject-ChaHUF2F.cjs");
7
- const require_isEmpty = require("./isEmpty-BRazOx0g.cjs");
1
+ const require__baseForOwn = require("./_baseForOwn-buOZDFbK.cjs");
2
+ const require__overArg = require("./_overArg-C5Hy7oCi.cjs");
3
+ const require__baseIteratee = require("./_baseIteratee-CF4qP2a8.cjs");
4
+ const require_uniq = require("./uniq-G872RWmE.cjs");
5
+ const require_utils = require("./utils-ZpJm00ed.cjs");
6
+ const require_isPlainObject = require("./isPlainObject-CSxXVKCk.cjs");
7
+ const require_isEmpty = require("./isEmpty-LY533Wmh.cjs");
8
8
  const require_stack_traces = require("./stack-traces-ntw_qhoy.cjs");
9
- const require_truncator = require("./truncator-r91qJjmi.cjs");
9
+ const require_truncator = require("./truncator-B6aaJaN1.cjs");
10
10
  let _bpinternal_zui = require("@bpinternal/zui");
11
11
  let bytes = require("bytes");
12
12
  bytes = require__baseForOwn.__toESM(bytes, 1);
@@ -93,7 +93,7 @@ function toNumber(value) {
93
93
  //#endregion
94
94
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toFinite.js
95
95
  /** Used as references for various `Number` constants. */
96
- var INFINITY = Infinity;
96
+ var INFINITY = 1 / 0;
97
97
  var MAX_INTEGER = 17976931348623157e292;
98
98
  /**
99
99
  * Converts `value` to a finite number.
@@ -594,9 +594,10 @@ function baseFlatten(array, depth, predicate, isStrict, result) {
594
594
  result || (result = []);
595
595
  while (++index < length) {
596
596
  var value = array[index];
597
- if (depth > 0 && predicate(value)) if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
598
- else require__baseIteratee.arrayPush(result, value);
599
- else if (!isStrict) result[result.length] = value;
597
+ if (depth > 0 && predicate(value)) {
598
+ if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
599
+ else require__baseIteratee.arrayPush(result, value);
600
+ } else if (!isStrict) result[result.length] = value;
600
601
  }
601
602
  return result;
602
603
  }
@@ -1557,8 +1558,10 @@ const inspect = (value, name, options = DEFAULT_OPTIONS) => {
1557
1558
  else if (genericType === "error") return header + previewError(value);
1558
1559
  else if (genericType === "object") return header + previewObject(value, options);
1559
1560
  else if (genericType === "boolean") return header + previewValue(value);
1560
- else if (typeof value === "string") if (require_utils.getTokenizer().count(value) < options.tokens) return header + previewValue(value);
1561
- else return header + previewLongText(value);
1561
+ else if (typeof value === "string") {
1562
+ if (require_utils.getTokenizer().count(value) < options.tokens) return header + previewValue(value);
1563
+ else return header + previewLongText(value);
1564
+ }
1562
1565
  return header + previewValue(value);
1563
1566
  } catch (err) {
1564
1567
  return `Error: ${(err === null || err === void 0 ? void 0 : err.message) ?? "Unknown Error"}`;
@@ -1,12 +1,12 @@
1
- const require__baseForOwn = require("./_baseForOwn-9MK5s55q.cjs");
2
- const require_dual_modes = require("./dual-modes-VSvmn7CC.cjs");
3
- const require_custom_client = require("./custom-client-CCwAr3HL.cjs");
4
- const require_utils = require("./utils-BHvQ0Rup.cjs");
5
- const require_jsx = require("./jsx-BQPpLyio.cjs");
1
+ const require__baseForOwn = require("./_baseForOwn-buOZDFbK.cjs");
2
+ const require_dual_modes = require("./dual-modes-wAOAlaBS.cjs");
3
+ const require_custom_client = require("./custom-client-BPmEoWKu.cjs");
4
+ const require_utils = require("./utils-ZpJm00ed.cjs");
5
+ const require_jsx = require("./jsx-BWvT6ukg.cjs");
6
6
  const require_stack_traces = require("./stack-traces-ntw_qhoy.cjs");
7
7
  const require_errors = require("./errors-C962uJdS.cjs");
8
- const require_truncator = require("./truncator-r91qJjmi.cjs");
9
- const require_vm = require("./vm-CXx3RAQt.cjs");
8
+ const require_truncator = require("./truncator-B6aaJaN1.cjs");
9
+ const require_vm = require("./vm-BjkJqSQH.cjs");
10
10
  let _bpinternal_zui = require("@bpinternal/zui");
11
11
  let ulid = require("ulid");
12
12
  let _botpress_client = require("@botpress/client");
@@ -1,11 +1,11 @@
1
- import { a as StreamingMessageParser, d as isEqual, h as toNumber, i as toParsedAssistantResponse } from "./dual-modes-RFJ2wqKn.js";
2
- import { d as Snapshot, f as parseExit, l as PartialExecutionResult, n as Context, s as ErrorExecutionResult, t as _CustomModelClient, u as SuccessExecutionResult } from "./custom-client-CGLO1gl2.js";
3
- import { d as stripInvalidIdentifiers, i as getErrorMessage, s as init } from "./utils-CXVukcZs.js";
4
- import { t as createJsxComponent } from "./jsx-DDGNq80p.js";
1
+ import { a as StreamingMessageParser, d as isEqual, h as toNumber, i as toParsedAssistantResponse } from "./dual-modes-D_p-jedw.js";
2
+ import { d as Snapshot, f as parseExit, l as PartialExecutionResult, n as Context, s as ErrorExecutionResult, t as _CustomModelClient, u as SuccessExecutionResult } from "./custom-client-NUoxrFQh.js";
3
+ import { d as stripInvalidIdentifiers, i as getErrorMessage, s as init } from "./utils-UBeAFeEI.js";
4
+ import { t as createJsxComponent } from "./jsx-CIgdGGVs.js";
5
5
  import { t as cleanStackTrace } from "./stack-traces-BIE_5Xwf.js";
6
6
  import { a as InvalidCodeError, c as SnapshotSignal, i as CognitiveError, l as ThinkSignal, n as CodeExecutionError, o as LoopExceededError, s as Signals, t as AssignmentError } from "./errors-Cg1G0Awu.js";
7
- import { n as truncateWrappedContent } from "./truncator-BRlpGJpc.js";
8
- import { runAsyncFunction, t as hasTopLevelReturn, warmupVM } from "./vm-BHo3ENPb.js";
7
+ import { n as truncateWrappedContent } from "./truncator-DZqEqnpD.js";
8
+ import { runAsyncFunction, t as hasTopLevelReturn, warmupVM } from "./vm-C5vf1LH3.js";
9
9
  import { z } from "@bpinternal/zui";
10
10
  import { ulid } from "ulid";
11
11
  import { Client } from "@botpress/client";
@@ -1,6 +1,6 @@
1
- const require__baseForOwn = require("./_baseForOwn-9MK5s55q.cjs");
2
- const require_uniq = require("./uniq-C0m757AJ.cjs");
3
- const require_utils = require("./utils-BHvQ0Rup.cjs");
1
+ const require__baseForOwn = require("./_baseForOwn-buOZDFbK.cjs");
2
+ const require_uniq = require("./uniq-G872RWmE.cjs");
3
+ const require_utils = require("./utils-ZpJm00ed.cjs");
4
4
  let _bpinternal_zui = require("@bpinternal/zui");
5
5
  //#region src/exit.ts
6
6
  var exit_exports = /* @__PURE__ */ require__baseForOwn.__exportAll({ Exit: () => Exit });
@@ -373,9 +373,11 @@ var Exit = class Exit {
373
373
  if (props.metadata !== void 0 && typeof props.metadata !== "object") throw new Error(`Invalid metadata for exit ${props.name}. Expected an object, but got type "${typeof props.metadata}"`);
374
374
  if (props.aliases !== void 0 && !Array.isArray(props.aliases)) throw new Error(`Invalid aliases for exit ${props.name}. Expected an array, but got type "${typeof props.aliases}"`);
375
375
  if (props.aliases && props.aliases.some((alias) => !require_utils.isValidIdentifier(alias))) throw new Error(`Invalid aliases for exit ${props.name}. Expected an array of valid identifiers.`);
376
- if (typeof props.schema !== "undefined") if (require_utils.isZuiSchema(props.schema)) this.schema = _bpinternal_zui.transforms.toJSONSchemaLegacy(props.schema);
377
- else if (require_utils.isJsonSchema(props.schema)) this.schema = props.schema;
378
- else throw new Error(`Invalid input schema for exit ${props.name}. Expected a ZodType or JSONSchema, but got type "${typeof props.schema}"`);
376
+ if (typeof props.schema !== "undefined") {
377
+ if (require_utils.isZuiSchema(props.schema)) this.schema = _bpinternal_zui.transforms.toJSONSchemaLegacy(props.schema);
378
+ else if (require_utils.isJsonSchema(props.schema)) this.schema = props.schema;
379
+ else throw new Error(`Invalid input schema for exit ${props.name}. Expected a ZodType or JSONSchema, but got type "${typeof props.schema}"`);
380
+ }
379
381
  this.name = props.name;
380
382
  this.aliases = require_uniq.uniq([props.name, ...props.aliases ?? []]);
381
383
  this.description = props.description;
@@ -1,6 +1,6 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-EAsCxrDo.js";
2
- import { t as uniq } from "./uniq-BNJ4Jqjc.js";
3
- import { c as isJsonSchema, l as isValidIdentifier, r as fromJSONSchemaCompat, u as isZuiSchema } from "./utils-CXVukcZs.js";
2
+ import { t as uniq } from "./uniq-BYQ7GWwb.js";
3
+ import { c as isJsonSchema, l as isValidIdentifier, r as fromJSONSchemaCompat, u as isZuiSchema } from "./utils-UBeAFeEI.js";
4
4
  import { transforms } from "@bpinternal/zui";
5
5
  //#region src/exit.ts
6
6
  var exit_exports = /* @__PURE__ */ __exportAll({ Exit: () => Exit });
@@ -373,9 +373,11 @@ var Exit = class Exit {
373
373
  if (props.metadata !== void 0 && typeof props.metadata !== "object") throw new Error(`Invalid metadata for exit ${props.name}. Expected an object, but got type "${typeof props.metadata}"`);
374
374
  if (props.aliases !== void 0 && !Array.isArray(props.aliases)) throw new Error(`Invalid aliases for exit ${props.name}. Expected an array, but got type "${typeof props.aliases}"`);
375
375
  if (props.aliases && props.aliases.some((alias) => !isValidIdentifier(alias))) throw new Error(`Invalid aliases for exit ${props.name}. Expected an array of valid identifiers.`);
376
- if (typeof props.schema !== "undefined") if (isZuiSchema(props.schema)) this.schema = transforms.toJSONSchemaLegacy(props.schema);
377
- else if (isJsonSchema(props.schema)) this.schema = props.schema;
378
- else throw new Error(`Invalid input schema for exit ${props.name}. Expected a ZodType or JSONSchema, but got type "${typeof props.schema}"`);
376
+ if (typeof props.schema !== "undefined") {
377
+ if (isZuiSchema(props.schema)) this.schema = transforms.toJSONSchemaLegacy(props.schema);
378
+ else if (isJsonSchema(props.schema)) this.schema = props.schema;
379
+ else throw new Error(`Invalid input schema for exit ${props.name}. Expected a ZodType or JSONSchema, but got type "${typeof props.schema}"`);
380
+ }
379
381
  this.name = props.name;
380
382
  this.aliases = uniq([props.name, ...props.aliases ?? []]);
381
383
  this.description = props.description;
package/dist/index.cjs CHANGED
@@ -1,17 +1,17 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dual_modes = require("./dual-modes-VSvmn7CC.cjs");
3
- const require_custom_client = require("./custom-client-CCwAr3HL.cjs");
4
- const require_utils = require("./utils-BHvQ0Rup.cjs");
5
- const require_tool = require("./tool-GH5dsFIz.cjs");
2
+ const require_dual_modes = require("./dual-modes-wAOAlaBS.cjs");
3
+ const require_custom_client = require("./custom-client-BPmEoWKu.cjs");
4
+ const require_utils = require("./utils-ZpJm00ed.cjs");
5
+ const require_tool = require("./tool-DdPZb0JW.cjs");
6
6
  const require_errors = require("./errors-C962uJdS.cjs");
7
- const require_typings = require("./typings-Cg4iFis8.cjs");
8
- const require_exit = require("./exit-s7Vuu_cZ.cjs");
9
- const require_component = require("./component-505RuR8N.cjs");
10
- const require_truncator = require("./truncator-r91qJjmi.cjs");
7
+ const require_typings = require("./typings-BwAz_TM9.cjs");
8
+ const require_exit = require("./exit-BGi0Kk0y.cjs");
9
+ const require_component = require("./component-BwixNVH8.cjs");
10
+ const require_truncator = require("./truncator-B6aaJaN1.cjs");
11
11
  const require_quickjs_variant = require("./quickjs-variant-CsIwTVFC.cjs");
12
12
  let _bpinternal_zui = require("@bpinternal/zui");
13
13
  //#region package.json
14
- var version = "0.6.1";
14
+ var version = "0.6.2";
15
15
  //#endregion
16
16
  //#region src/hoist.ts
17
17
  /**
@@ -1774,7 +1774,7 @@ const utils = {
1774
1774
  * })
1775
1775
  */
1776
1776
  const execute = async (props) => {
1777
- const { executeContext } = await Promise.resolve().then(() => require("./execute-CsMxT51Z.cjs"));
1777
+ const { executeContext } = await Promise.resolve().then(() => require("./execute-BEaq3jkV.cjs"));
1778
1778
  return executeContext(props);
1779
1779
  };
1780
1780
  /**
@@ -1783,16 +1783,16 @@ const execute = async (props) => {
1783
1783
  * It's recommended to call this function at the beginning of your application without awaiting it (void init())
1784
1784
  */
1785
1785
  const init = async () => {
1786
- await Promise.resolve().then(() => require("./execute-CsMxT51Z.cjs"));
1787
- await Promise.resolve().then(() => require("./component-505RuR8N.cjs")).then((n) => n.component_exports);
1788
- await Promise.resolve().then(() => require("./tool-GH5dsFIz.cjs")).then((n) => n.tool_exports);
1789
- await Promise.resolve().then(() => require("./exit-s7Vuu_cZ.cjs")).then((n) => n.exit_exports);
1790
- await Promise.resolve().then(() => require("./jsx-BQPpLyio.cjs")).then((n) => n.jsx_exports);
1791
- await Promise.resolve().then(() => require("./vm-CXx3RAQt.cjs"));
1792
- await Promise.resolve().then(() => require("./utils-BHvQ0Rup.cjs")).then((n) => n.utils_exports);
1793
- await Promise.resolve().then(() => require("./truncator-r91qJjmi.cjs")).then((n) => n.truncator_exports);
1794
- await Promise.resolve().then(() => require("./typings-Cg4iFis8.cjs")).then((n) => n.typings_exports);
1795
- await Promise.resolve().then(() => require("./dual-modes-VSvmn7CC.cjs")).then((n) => n.dual_modes_exports);
1786
+ await Promise.resolve().then(() => require("./execute-BEaq3jkV.cjs"));
1787
+ await Promise.resolve().then(() => require("./component-BwixNVH8.cjs")).then((n) => n.component_exports);
1788
+ await Promise.resolve().then(() => require("./tool-DdPZb0JW.cjs")).then((n) => n.tool_exports);
1789
+ await Promise.resolve().then(() => require("./exit-BGi0Kk0y.cjs")).then((n) => n.exit_exports);
1790
+ await Promise.resolve().then(() => require("./jsx-BWvT6ukg.cjs")).then((n) => n.jsx_exports);
1791
+ await Promise.resolve().then(() => require("./vm-BjkJqSQH.cjs"));
1792
+ await Promise.resolve().then(() => require("./utils-ZpJm00ed.cjs")).then((n) => n.utils_exports);
1793
+ await Promise.resolve().then(() => require("./truncator-B6aaJaN1.cjs")).then((n) => n.truncator_exports);
1794
+ await Promise.resolve().then(() => require("./typings-BwAz_TM9.cjs")).then((n) => n.typings_exports);
1795
+ await Promise.resolve().then(() => require("./dual-modes-wAOAlaBS.cjs")).then((n) => n.dual_modes_exports);
1796
1796
  };
1797
1797
  //#endregion
1798
1798
  exports.BaseResponse = BaseResponse;
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { a as StreamingMessageParser, c as NAME_REGEX, o as tryParseJson, r as generateInstructions, s as MARKER } from "./dual-modes-RFJ2wqKn.js";
2
- import { a as ThinkExit, c as ExecutionResult, d as Snapshot, f as parseExit, i as ListenExit, l as PartialExecutionResult, o as getValue, r as DefaultExit, s as ErrorExecutionResult, t as _CustomModelClient, u as SuccessExecutionResult } from "./custom-client-CGLO1gl2.js";
3
- import { a as getMultilineComment, c as isJsonSchema, l as isValidIdentifier, m as toValidObjectName, n as escapeString, p as toValidFunctionName, t as configureTokenizer, u as isZuiSchema, v as upperFirst } from "./utils-CXVukcZs.js";
4
- import { t as Tool } from "./tool-DOS3cQkd.js";
1
+ import { a as StreamingMessageParser, c as NAME_REGEX, o as tryParseJson, r as generateInstructions, s as MARKER } from "./dual-modes-D_p-jedw.js";
2
+ import { a as ThinkExit, c as ExecutionResult, d as Snapshot, f as parseExit, i as ListenExit, l as PartialExecutionResult, o as getValue, r as DefaultExit, s as ErrorExecutionResult, t as _CustomModelClient, u as SuccessExecutionResult } from "./custom-client-NUoxrFQh.js";
3
+ import { a as getMultilineComment, c as isJsonSchema, l as isValidIdentifier, m as toValidObjectName, n as escapeString, p as toValidFunctionName, t as configureTokenizer, u as isZuiSchema, v as upperFirst } from "./utils-UBeAFeEI.js";
4
+ import { t as Tool } from "./tool-CAo-BQHs.js";
5
5
  import { c as SnapshotSignal, l as ThinkSignal, o as LoopExceededError, r as CodeFormattingError } from "./errors-Cg1G0Awu.js";
6
- import { a as isPunct, i as isGroup, o as parse, r as formatTypings, s as tokenize, t as getTypings } from "./typings-o1oM8StG.js";
7
- import { t as Exit } from "./exit-D8q65E62.js";
8
- import { a as isComponent, i as isAnyComponent, n as assertValidComponent, t as Component } from "./component-BEupuE6R.js";
9
- import { i as wrapContent, n as truncateWrappedContent, t as stripTruncationTags } from "./truncator-BRlpGJpc.js";
6
+ import { a as isPunct, i as isGroup, o as parse, r as formatTypings, s as tokenize, t as getTypings } from "./typings-CrBa7Tyy.js";
7
+ import { t as Exit } from "./exit-CDdxDBRT.js";
8
+ import { a as isComponent, i as isAnyComponent, n as assertValidComponent, t as Component } from "./component-DGG7d_Mz.js";
9
+ import { i as wrapContent, n as truncateWrappedContent, t as stripTruncationTags } from "./truncator-DZqEqnpD.js";
10
10
  import { t as configureQuickJS } from "./quickjs-variant-BYhMBpwU.js";
11
11
  import { transforms, z } from "@bpinternal/zui";
12
12
  //#region package.json
13
- var version = "0.6.1";
13
+ var version = "0.6.2";
14
14
  //#endregion
15
15
  //#region src/hoist.ts
16
16
  /**
@@ -1773,7 +1773,7 @@ const utils = {
1773
1773
  * })
1774
1774
  */
1775
1775
  const execute = async (props) => {
1776
- const { executeContext } = await import("./execute-Cy0aokFn.js");
1776
+ const { executeContext } = await import("./execute-DYvFRs54.js");
1777
1777
  return executeContext(props);
1778
1778
  };
1779
1779
  /**
@@ -1782,16 +1782,16 @@ const execute = async (props) => {
1782
1782
  * It's recommended to call this function at the beginning of your application without awaiting it (void init())
1783
1783
  */
1784
1784
  const init = async () => {
1785
- await import("./execute-Cy0aokFn.js");
1786
- await import("./component-BEupuE6R.js").then((n) => n.r);
1787
- await import("./tool-DOS3cQkd.js").then((n) => n.n);
1788
- await import("./exit-D8q65E62.js").then((n) => n.n);
1789
- await import("./jsx-DDGNq80p.js").then((n) => n.i);
1790
- await import("./vm-BHo3ENPb.js");
1791
- await import("./utils-CXVukcZs.js").then((n) => n.h);
1792
- await import("./truncator-BRlpGJpc.js").then((n) => n.r);
1793
- await import("./typings-o1oM8StG.js").then((n) => n.n);
1794
- await import("./dual-modes-RFJ2wqKn.js").then((n) => n.n);
1785
+ await import("./execute-DYvFRs54.js");
1786
+ await import("./component-DGG7d_Mz.js").then((n) => n.r);
1787
+ await import("./tool-CAo-BQHs.js").then((n) => n.n);
1788
+ await import("./exit-CDdxDBRT.js").then((n) => n.n);
1789
+ await import("./jsx-CIgdGGVs.js").then((n) => n.i);
1790
+ await import("./vm-C5vf1LH3.js");
1791
+ await import("./utils-UBeAFeEI.js").then((n) => n.h);
1792
+ await import("./truncator-DZqEqnpD.js").then((n) => n.r);
1793
+ await import("./typings-CrBa7Tyy.js").then((n) => n.n);
1794
+ await import("./dual-modes-D_p-jedw.js").then((n) => n.n);
1795
1795
  };
1796
1796
  //#endregion
1797
1797
  export { BaseResponse, Chat, CitationsManager, Component, ComponentRegistry, DefaultComponents, DefaultExit, ErrorExecutionResult, ExecutionResult, Exit, ListenExit, LoopExceededError, MARKER, NAME_REGEX, NextResponse, ObjectInstance, PartialExecutionResult, ReplayableAsyncIterable, RunResponse, SendResponse, Snapshot, SnapshotSignal, StreamingMessageParser, SuccessExecutionResult, ThinkExit, ThinkSignal, Tool, _CustomModelClient, assertValidComponent, collectText, configureQuickJS, configureTokenizer, execute, generateInstructions, getValue, init, isAnyComponent, isComponent, normalizeComponentDefinition, normalizeComponentName, normalizePropsSchema, parseExit, parseStream, parseText, sanitizeMessageText, tryParseJson, utils, validateComponent, validateProps, version };