llmz 0.9.9 → 0.9.10

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,12 +1,12 @@
1
- const require_dual_modes = require("./dual-modes-BNHlj2qM.cjs");
1
+ const require_dual_modes = require("./dual-modes-zns7U8U9.cjs");
2
2
  const require__overArg = require("./_overArg-C5Hy7oCi.cjs");
3
3
  const require__baseIteratee = require("./_baseIteratee-CF4qP2a8.cjs");
4
4
  const require_utils = require("./utils-DGQ4sRke.cjs");
5
5
  const require__getPrototype = require("./_getPrototype-DQDlNVVM.cjs");
6
6
  const require_isPlainObject = require("./isPlainObject-CSxXVKCk.cjs");
7
- const require_tool = require("./tool-BLTrA-sL.cjs");
7
+ const require_tool = require("./tool-ikMsh-TB.cjs");
8
8
  const require_errors = require("./errors-C962uJdS.cjs");
9
- const require_exit = require("./exit-CGLXI0BH.cjs");
9
+ const require_exit = require("./exit-DTDB1SJ3.cjs");
10
10
  const require_component = require("./component-CPKXe6Ca.cjs");
11
11
  const require_truncator = require("./truncator-DmCu9M4m.cjs");
12
12
  let _bpinternal_zui = require("@bpinternal/zui");
@@ -1,12 +1,12 @@
1
- import { c as baseCreate, i as inspect, o as flatRest, r as extractType, s as copyArray, t as DualModePrompt } from "./dual-modes-BNIiNLrR.js";
1
+ import { a as flatRest, i as inspect, o as copyArray, r as extractType, s as baseCreate, t as DualModePrompt } from "./dual-modes-k9YKs5hL.js";
2
2
  import { a as Symbol, n as isArray, o as root, r as isObjectLike } from "./_overArg-CRYbj1NH.js";
3
3
  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";
4
4
  import { _ as getSymbolsIn, b as keysIn, g as getAllKeysIn, i as getErrorMessage, o as getTokenizer, x as assignValue, y as baseSlice } from "./utils-UBeAFeEI.js";
5
5
  import { t as getPrototype } from "./_getPrototype-CG7Dxrrz.js";
6
6
  import { t as isPlainObject } from "./isPlainObject-D39AzPO2.js";
7
- import { t as Tool } from "./tool-B6Pmuk6K.js";
7
+ import { t as Tool } from "./tool-BoXBgZeM.js";
8
8
  import { l as ThinkSignal, o as LoopExceededError } from "./errors-Cg1G0Awu.js";
9
- import { t as Exit } from "./exit-CDdxDBRT.js";
9
+ import { t as Exit } from "./exit-AwQk1cyW.js";
10
10
  import { n as assertValidComponent } from "./component-DGG7d_Mz.js";
11
11
  import { i as wrapContent, t as stripTruncationTags } from "./truncator-CD7QtE84.js";
12
12
  import { z } from "@bpinternal/zui";
@@ -1,8 +1,8 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-EAsCxrDo.js";
2
2
  import { l as NAME_REGEX, n as parseAssistantResponse, r as replacePlaceholders } from "./common-DuEhn6u3.js";
3
3
  import { a as Symbol, n as isArray, r as isObjectLike } from "./_overArg-CRYbj1NH.js";
4
- 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";
5
- import { n as baseUniq, r as noop, t as uniq } from "./uniq-BYQ7GWwb.js";
4
+ 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, t as baseIteratee, x as keys, z as arrayMap } from "./_baseIteratee-P_firB7b.js";
5
+ import { n as noop, t as uniq } from "./uniq-eZWVMz0r.js";
6
6
  import { n as escapeString, o as getTokenizer, y as baseSlice } from "./utils-UBeAFeEI.js";
7
7
  import { t as isPlainObject } from "./isPlainObject-D39AzPO2.js";
8
8
  import { t as baseForOwn } from "./_baseForOwn-CFhWe_W6.js";
@@ -1825,39 +1825,6 @@ function fromPairs(pairs) {
1825
1825
  return result;
1826
1826
  }
1827
1827
  //#endregion
1828
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.js
1829
- /**
1830
- * Performs a deep comparison between two values to determine if they are
1831
- * equivalent.
1832
- *
1833
- * **Note:** This method supports comparing arrays, array buffers, booleans,
1834
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
1835
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
1836
- * by their own, not inherited, enumerable properties. Functions and DOM
1837
- * nodes are compared by strict equality, i.e. `===`.
1838
- *
1839
- * @static
1840
- * @memberOf _
1841
- * @since 0.1.0
1842
- * @category Lang
1843
- * @param {*} value The value to compare.
1844
- * @param {*} other The other value to compare.
1845
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1846
- * @example
1847
- *
1848
- * var object = { 'a': 1 };
1849
- * var other = { 'a': 1 };
1850
- *
1851
- * _.isEqual(object, other);
1852
- * // => true
1853
- *
1854
- * object === other;
1855
- * // => false
1856
- */
1857
- function isEqual(value, other) {
1858
- return baseIsEqual(value, other);
1859
- }
1860
- //#endregion
1861
1828
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNil.js
1862
1829
  /**
1863
1830
  * Checks if `value` is `null` or `undefined`.
@@ -2081,32 +2048,6 @@ function take(array, n, guard) {
2081
2048
  return baseSlice(array, 0, n < 0 ? 0 : n);
2082
2049
  }
2083
2050
  //#endregion
2084
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js
2085
- /**
2086
- * This method is like `_.uniq` except that it accepts `comparator` which
2087
- * is invoked to compare elements of `array`. The order of result values is
2088
- * determined by the order they occur in the array.The comparator is invoked
2089
- * with two arguments: (arrVal, othVal).
2090
- *
2091
- * @static
2092
- * @memberOf _
2093
- * @since 4.0.0
2094
- * @category Array
2095
- * @param {Array} array The array to inspect.
2096
- * @param {Function} [comparator] The comparator invoked per element.
2097
- * @returns {Array} Returns the new duplicate free array.
2098
- * @example
2099
- *
2100
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
2101
- *
2102
- * _.uniqWith(objects, _.isEqual);
2103
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
2104
- */
2105
- function uniqWith(array, comparator) {
2106
- comparator = typeof comparator == "function" ? comparator : void 0;
2107
- return array && array.length ? baseUniq(array, void 0, comparator) : [];
2108
- }
2109
- //#endregion
2110
2051
  //#region src/inspect.ts
2111
2052
  const SUBTITLE_LN = "--------------";
2112
2053
  const SECTION_SEP = "\n";
@@ -2250,11 +2191,11 @@ function previewArray(arr, maxStringLength = LONG_TEXT_LENGTH) {
2250
2191
  const ordered = orderBy(arr.filter((item) => !isNil(item) && stringify(item).length < 100), (item) => stringify(item), "asc");
2251
2192
  const minValues = ordered.slice(0, 3).map((item) => previewValue(item, 10));
2252
2193
  const maxValues = ordered.slice(-3).map((item) => previewValue(item, 10));
2253
- const uniqueItems = uniqWith(arr, isEqual);
2194
+ const uniqueCount = new Set(arr.map((item) => stringify(item))).size;
2254
2195
  const nullValues = filter(arr, isNil).length;
2255
2196
  const memoryUsage = bytes(stringify(arr).length);
2256
2197
  lines.push(`Total Items: ${arr.length}`);
2257
- lines.push(`Unique Items: ${uniqueItems.length}`);
2198
+ lines.push(`Unique Items: ${uniqueCount}`);
2258
2199
  lines.push(`Types: ${stringify(typesCount)}`);
2259
2200
  lines.push(`Minimum Values: [${minValues.join(", ")}]`);
2260
2201
  lines.push(`Maximum Values: [${maxValues.join(", ")}]`);
@@ -3004,4 +2945,4 @@ const DualModePrompt = {
3004
2945
  parseAssistantResponse
3005
2946
  };
3006
2947
  //#endregion
3007
- export { isEqual as a, baseCreate as c, generateInstructions as d, validateComponent as f, inspect as i, toNumber as l, ComponentRegistry as m, dual_modes_exports as n, flatRest as o, validateProps as p, extractType as r, copyArray as s, DualModePrompt as t, Example as u };
2948
+ export { flatRest as a, toNumber as c, validateComponent as d, validateProps as f, inspect as i, Example as l, dual_modes_exports as n, copyArray as o, ComponentRegistry as p, extractType as r, baseCreate as s, DualModePrompt as t, generateInstructions as u };
@@ -2,7 +2,7 @@ const require_compiler = require("./compiler-BJJUmNS9.cjs");
2
2
  const require_common = require("./common-DJkSpeqw.cjs");
3
3
  const require__overArg = require("./_overArg-C5Hy7oCi.cjs");
4
4
  const require__baseIteratee = require("./_baseIteratee-CF4qP2a8.cjs");
5
- const require_uniq = require("./uniq-G872RWmE.cjs");
5
+ const require_uniq = require("./uniq-BWs20_o8.cjs");
6
6
  const require_utils = require("./utils-DGQ4sRke.cjs");
7
7
  const require_isPlainObject = require("./isPlainObject-CSxXVKCk.cjs");
8
8
  const require__baseForOwn = require("./_baseForOwn-BfWDTL8L.cjs");
@@ -1826,39 +1826,6 @@ function fromPairs(pairs) {
1826
1826
  return result;
1827
1827
  }
1828
1828
  //#endregion
1829
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.js
1830
- /**
1831
- * Performs a deep comparison between two values to determine if they are
1832
- * equivalent.
1833
- *
1834
- * **Note:** This method supports comparing arrays, array buffers, booleans,
1835
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
1836
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
1837
- * by their own, not inherited, enumerable properties. Functions and DOM
1838
- * nodes are compared by strict equality, i.e. `===`.
1839
- *
1840
- * @static
1841
- * @memberOf _
1842
- * @since 0.1.0
1843
- * @category Lang
1844
- * @param {*} value The value to compare.
1845
- * @param {*} other The other value to compare.
1846
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1847
- * @example
1848
- *
1849
- * var object = { 'a': 1 };
1850
- * var other = { 'a': 1 };
1851
- *
1852
- * _.isEqual(object, other);
1853
- * // => true
1854
- *
1855
- * object === other;
1856
- * // => false
1857
- */
1858
- function isEqual(value, other) {
1859
- return require__baseIteratee.baseIsEqual(value, other);
1860
- }
1861
- //#endregion
1862
1829
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNil.js
1863
1830
  /**
1864
1831
  * Checks if `value` is `null` or `undefined`.
@@ -2082,32 +2049,6 @@ function take(array, n, guard) {
2082
2049
  return require_utils.baseSlice(array, 0, n < 0 ? 0 : n);
2083
2050
  }
2084
2051
  //#endregion
2085
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js
2086
- /**
2087
- * This method is like `_.uniq` except that it accepts `comparator` which
2088
- * is invoked to compare elements of `array`. The order of result values is
2089
- * determined by the order they occur in the array.The comparator is invoked
2090
- * with two arguments: (arrVal, othVal).
2091
- *
2092
- * @static
2093
- * @memberOf _
2094
- * @since 4.0.0
2095
- * @category Array
2096
- * @param {Array} array The array to inspect.
2097
- * @param {Function} [comparator] The comparator invoked per element.
2098
- * @returns {Array} Returns the new duplicate free array.
2099
- * @example
2100
- *
2101
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
2102
- *
2103
- * _.uniqWith(objects, _.isEqual);
2104
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
2105
- */
2106
- function uniqWith(array, comparator) {
2107
- comparator = typeof comparator == "function" ? comparator : void 0;
2108
- return array && array.length ? require_uniq.baseUniq(array, void 0, comparator) : [];
2109
- }
2110
- //#endregion
2111
2052
  //#region src/inspect.ts
2112
2053
  const SUBTITLE_LN = "--------------";
2113
2054
  const SECTION_SEP = "\n";
@@ -2251,11 +2192,11 @@ function previewArray(arr, maxStringLength = LONG_TEXT_LENGTH) {
2251
2192
  const ordered = orderBy(arr.filter((item) => !isNil(item) && stringify(item).length < 100), (item) => stringify(item), "asc");
2252
2193
  const minValues = ordered.slice(0, 3).map((item) => previewValue(item, 10));
2253
2194
  const maxValues = ordered.slice(-3).map((item) => previewValue(item, 10));
2254
- const uniqueItems = uniqWith(arr, isEqual);
2195
+ const uniqueCount = new Set(arr.map((item) => stringify(item))).size;
2255
2196
  const nullValues = filter(arr, isNil).length;
2256
2197
  const memoryUsage = (0, bytes.default)(stringify(arr).length);
2257
2198
  lines.push(`Total Items: ${arr.length}`);
2258
- lines.push(`Unique Items: ${uniqueItems.length}`);
2199
+ lines.push(`Unique Items: ${uniqueCount}`);
2259
2200
  lines.push(`Types: ${stringify(typesCount)}`);
2260
2201
  lines.push(`Minimum Values: [${minValues.join(", ")}]`);
2261
2202
  lines.push(`Maximum Values: [${maxValues.join(", ")}]`);
@@ -3065,12 +3006,6 @@ Object.defineProperty(exports, "inspect", {
3065
3006
  return inspect;
3066
3007
  }
3067
3008
  });
3068
- Object.defineProperty(exports, "isEqual", {
3069
- enumerable: true,
3070
- get: function() {
3071
- return isEqual;
3072
- }
3073
- });
3074
3009
  Object.defineProperty(exports, "toNumber", {
3075
3010
  enumerable: true,
3076
3011
  get: function() {
@@ -1,7 +1,8 @@
1
1
  const require_compiler = require("./compiler-BJJUmNS9.cjs");
2
- const require_dual_modes = require("./dual-modes-BNHlj2qM.cjs");
2
+ const require_dual_modes = require("./dual-modes-zns7U8U9.cjs");
3
3
  const require_common = require("./common-DJkSpeqw.cjs");
4
- const require_custom_client = require("./custom-client-B_o56CB4.cjs");
4
+ const require__baseIteratee = require("./_baseIteratee-CF4qP2a8.cjs");
5
+ const require_custom_client = require("./custom-client-BmOZkw2f.cjs");
5
6
  const require_utils = require("./utils-DGQ4sRke.cjs");
6
7
  const require_jsx = require("./jsx-BJ6GWXI2.cjs");
7
8
  const require_stack_traces = require("./stack-traces-ntw_qhoy.cjs");
@@ -68,6 +69,39 @@ function clamp(number, lower, upper) {
68
69
  return baseClamp(require_dual_modes.toNumber(number), lower, upper);
69
70
  }
70
71
  //#endregion
72
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.js
73
+ /**
74
+ * Performs a deep comparison between two values to determine if they are
75
+ * equivalent.
76
+ *
77
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
78
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
79
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
80
+ * by their own, not inherited, enumerable properties. Functions and DOM
81
+ * nodes are compared by strict equality, i.e. `===`.
82
+ *
83
+ * @static
84
+ * @memberOf _
85
+ * @since 0.1.0
86
+ * @category Lang
87
+ * @param {*} value The value to compare.
88
+ * @param {*} other The other value to compare.
89
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
90
+ * @example
91
+ *
92
+ * var object = { 'a': 1 };
93
+ * var other = { 'a': 1 };
94
+ *
95
+ * _.isEqual(object, other);
96
+ * // => true
97
+ *
98
+ * object === other;
99
+ * // => false
100
+ */
101
+ function isEqual(value, other) {
102
+ return require__baseIteratee.baseIsEqual(value, other);
103
+ }
104
+ //#endregion
71
105
  //#region src/abort-signal.ts
72
106
  /**
73
107
  * Creates a new AbortController that aborts when any of the provided signals abort.
@@ -706,7 +740,7 @@ const buildVMContext = ({ ctx, iteration, controller, onBeforeTool, onAfterTool
706
740
  return internalValues[name];
707
741
  },
708
742
  set(value) {
709
- if (require_dual_modes.isEqual(value, internalValues[name])) return;
743
+ if (isEqual(value, internalValues[name])) return;
710
744
  if (!writable) throw new require_errors.AssignmentError(`Property ${obj.name}.${name} is read-only and cannot be modified`);
711
745
  const parsed = schema.safeParse(value);
712
746
  if (!parsed.success) throw new require_errors.AssignmentError(`Invalid value for Object property ${obj.name}.${name}: ${require_utils.getErrorMessage(parsed.error)}`);
@@ -1,6 +1,7 @@
1
- import { a as isEqual, l as toNumber } from "./dual-modes-BNIiNLrR.js";
1
+ import { c as toNumber } from "./dual-modes-k9YKs5hL.js";
2
2
  import { a as ResponseParser, i as toParsedAssistantResponse } from "./common-DuEhn6u3.js";
3
- 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-C-nDKG37.js";
3
+ import { n as baseIsEqual } from "./_baseIteratee-P_firB7b.js";
4
+ 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-Cj-XX6SK.js";
4
5
  import { d as stripInvalidIdentifiers, i as getErrorMessage, r as fromJSONSchemaCompat, s as init } from "./utils-UBeAFeEI.js";
5
6
  import { t as createJsxComponent } from "./jsx-CIgdGGVs.js";
6
7
  import { t as cleanStackTrace } from "./stack-traces-BIE_5Xwf.js";
@@ -67,6 +68,39 @@ function clamp(number, lower, upper) {
67
68
  return baseClamp(toNumber(number), lower, upper);
68
69
  }
69
70
  //#endregion
71
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.js
72
+ /**
73
+ * Performs a deep comparison between two values to determine if they are
74
+ * equivalent.
75
+ *
76
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
77
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
78
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
79
+ * by their own, not inherited, enumerable properties. Functions and DOM
80
+ * nodes are compared by strict equality, i.e. `===`.
81
+ *
82
+ * @static
83
+ * @memberOf _
84
+ * @since 0.1.0
85
+ * @category Lang
86
+ * @param {*} value The value to compare.
87
+ * @param {*} other The other value to compare.
88
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
89
+ * @example
90
+ *
91
+ * var object = { 'a': 1 };
92
+ * var other = { 'a': 1 };
93
+ *
94
+ * _.isEqual(object, other);
95
+ * // => true
96
+ *
97
+ * object === other;
98
+ * // => false
99
+ */
100
+ function isEqual(value, other) {
101
+ return baseIsEqual(value, other);
102
+ }
103
+ //#endregion
70
104
  //#region src/abort-signal.ts
71
105
  /**
72
106
  * Creates a new AbortController that aborts when any of the provided signals abort.
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-EAsCxrDo.js";
2
- import { t as uniq } from "./uniq-BYQ7GWwb.js";
2
+ import { t as uniq } from "./uniq-eZWVMz0r.js";
3
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
@@ -1,5 +1,5 @@
1
1
  const require_compiler = require("./compiler-BJJUmNS9.cjs");
2
- const require_uniq = require("./uniq-G872RWmE.cjs");
2
+ const require_uniq = require("./uniq-BWs20_o8.cjs");
3
3
  const require_utils = require("./utils-DGQ4sRke.cjs");
4
4
  let _bpinternal_zui = require("@bpinternal/zui");
5
5
  //#region src/exit.ts
package/dist/index.cjs CHANGED
@@ -1,18 +1,18 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dual_modes = require("./dual-modes-BNHlj2qM.cjs");
2
+ const require_dual_modes = require("./dual-modes-zns7U8U9.cjs");
3
3
  const require_common = require("./common-DJkSpeqw.cjs");
4
- const require_custom_client = require("./custom-client-B_o56CB4.cjs");
4
+ const require_custom_client = require("./custom-client-BmOZkw2f.cjs");
5
5
  const require_utils = require("./utils-DGQ4sRke.cjs");
6
- const require_tool = require("./tool-BLTrA-sL.cjs");
6
+ const require_tool = require("./tool-ikMsh-TB.cjs");
7
7
  const require_errors = require("./errors-C962uJdS.cjs");
8
8
  const require_typings = require("./typings-DXJMu59O.cjs");
9
- const require_exit = require("./exit-CGLXI0BH.cjs");
9
+ const require_exit = require("./exit-DTDB1SJ3.cjs");
10
10
  const require_component = require("./component-CPKXe6Ca.cjs");
11
11
  const require_truncator = require("./truncator-DmCu9M4m.cjs");
12
12
  const require_quickjs_variant = require("./quickjs-variant-CsIwTVFC.cjs");
13
13
  let _bpinternal_zui = require("@bpinternal/zui");
14
14
  //#region package.json
15
- var version = "0.9.9";
15
+ var version = "0.9.10";
16
16
  //#endregion
17
17
  //#region src/hoist.ts
18
18
  /**
@@ -1693,7 +1693,7 @@ const utils = {
1693
1693
  * })
1694
1694
  */
1695
1695
  const execute = async (props) => {
1696
- const { executeContext } = await Promise.resolve().then(() => require("./execute-C2-Hwyj2.cjs"));
1696
+ const { executeContext } = await Promise.resolve().then(() => require("./execute-8Tdc8SD-.cjs"));
1697
1697
  return executeContext(props);
1698
1698
  };
1699
1699
  /**
@@ -1702,16 +1702,16 @@ const execute = async (props) => {
1702
1702
  * It's recommended to call this function at the beginning of your application without awaiting it (void init())
1703
1703
  */
1704
1704
  const init = async () => {
1705
- await Promise.resolve().then(() => require("./execute-C2-Hwyj2.cjs"));
1705
+ await Promise.resolve().then(() => require("./execute-8Tdc8SD-.cjs"));
1706
1706
  await Promise.resolve().then(() => require("./component-CPKXe6Ca.cjs")).then((n) => n.component_exports);
1707
- await Promise.resolve().then(() => require("./tool-BLTrA-sL.cjs")).then((n) => n.tool_exports);
1708
- await Promise.resolve().then(() => require("./exit-CGLXI0BH.cjs")).then((n) => n.exit_exports);
1707
+ await Promise.resolve().then(() => require("./tool-ikMsh-TB.cjs")).then((n) => n.tool_exports);
1708
+ await Promise.resolve().then(() => require("./exit-DTDB1SJ3.cjs")).then((n) => n.exit_exports);
1709
1709
  await Promise.resolve().then(() => require("./jsx-BJ6GWXI2.cjs")).then((n) => n.jsx_exports);
1710
1710
  await Promise.resolve().then(() => require("./vm-Cfo2RhZ9.cjs"));
1711
1711
  await Promise.resolve().then(() => require("./utils-DGQ4sRke.cjs")).then((n) => n.utils_exports);
1712
1712
  await Promise.resolve().then(() => require("./truncator-DmCu9M4m.cjs")).then((n) => n.truncator_exports);
1713
1713
  await Promise.resolve().then(() => require("./typings-DXJMu59O.cjs")).then((n) => n.typings_exports);
1714
- await Promise.resolve().then(() => require("./dual-modes-BNHlj2qM.cjs")).then((n) => n.dual_modes_exports);
1714
+ await Promise.resolve().then(() => require("./dual-modes-zns7U8U9.cjs")).then((n) => n.dual_modes_exports);
1715
1715
  };
1716
1716
  //#endregion
1717
1717
  exports.BaseResponse = BaseResponse;
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- import { d as generateInstructions, f as validateComponent, m as ComponentRegistry, p as validateProps, u as Example } from "./dual-modes-BNIiNLrR.js";
1
+ import { d as validateComponent, f as validateProps, l as Example, p as ComponentRegistry, u as generateInstructions } from "./dual-modes-k9YKs5hL.js";
2
2
  import { c as MARKER, l as NAME_REGEX, o as StreamingMessageParser, s as tryParseJson } from "./common-DuEhn6u3.js";
3
- 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-C-nDKG37.js";
3
+ 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-Cj-XX6SK.js";
4
4
  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";
5
- import { t as Tool } from "./tool-B6Pmuk6K.js";
5
+ import { t as Tool } from "./tool-BoXBgZeM.js";
6
6
  import { c as SnapshotSignal, l as ThinkSignal, o as LoopExceededError, r as CodeFormattingError } from "./errors-Cg1G0Awu.js";
7
7
  import { a as isPunct, i as isGroup, o as parse, r as formatTypings, s as tokenize, t as getTypings } from "./typings-CrBa7Tyy.js";
8
- import { t as Exit } from "./exit-CDdxDBRT.js";
8
+ import { t as Exit } from "./exit-AwQk1cyW.js";
9
9
  import { a as isComponent, i as isAnyComponent, n as assertValidComponent, t as Component } from "./component-DGG7d_Mz.js";
10
10
  import { i as wrapContent, n as truncateWrappedContent, t as stripTruncationTags } from "./truncator-CD7QtE84.js";
11
11
  import { t as configureQuickJS } from "./quickjs-variant-BYhMBpwU.js";
12
12
  import { transforms, z } from "@bpinternal/zui";
13
13
  //#region package.json
14
- var version = "0.9.9";
14
+ var version = "0.9.10";
15
15
  //#endregion
16
16
  //#region src/hoist.ts
17
17
  /**
@@ -1692,7 +1692,7 @@ const utils = {
1692
1692
  * })
1693
1693
  */
1694
1694
  const execute = async (props) => {
1695
- const { executeContext } = await import("./execute-BKGctPpH.js");
1695
+ const { executeContext } = await import("./execute-BtlGTHAk.js");
1696
1696
  return executeContext(props);
1697
1697
  };
1698
1698
  /**
@@ -1701,16 +1701,16 @@ const execute = async (props) => {
1701
1701
  * It's recommended to call this function at the beginning of your application without awaiting it (void init())
1702
1702
  */
1703
1703
  const init = async () => {
1704
- await import("./execute-BKGctPpH.js");
1704
+ await import("./execute-BtlGTHAk.js");
1705
1705
  await import("./component-DGG7d_Mz.js").then((n) => n.r);
1706
- await import("./tool-B6Pmuk6K.js").then((n) => n.n);
1707
- await import("./exit-CDdxDBRT.js").then((n) => n.n);
1706
+ await import("./tool-BoXBgZeM.js").then((n) => n.n);
1707
+ await import("./exit-AwQk1cyW.js").then((n) => n.n);
1708
1708
  await import("./jsx-CIgdGGVs.js").then((n) => n.i);
1709
1709
  await import("./vm-VNqvqKN9.js");
1710
1710
  await import("./utils-UBeAFeEI.js").then((n) => n.h);
1711
1711
  await import("./truncator-CD7QtE84.js").then((n) => n.r);
1712
1712
  await import("./typings-CrBa7Tyy.js").then((n) => n.n);
1713
- await import("./dual-modes-BNIiNLrR.js").then((n) => n.n);
1713
+ await import("./dual-modes-k9YKs5hL.js").then((n) => n.n);
1714
1714
  };
1715
1715
  //#endregion
1716
1716
  export { BaseResponse, Chat, CitationsManager, Component, ComponentRegistry, DefaultComponents, DefaultExit, ErrorExecutionResult, Example, 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 };
@@ -52,7 +52,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
52
52
  }) : target, mod));
53
53
  //#endregion
54
54
  //#region package.json
55
- var version = "0.9.9", quoteExample, quotePartialExample, exampleBoundaryInstructions, quoteResponseExample;
55
+ var version = "0.9.10", quoteExample, quotePartialExample, exampleBoundaryInstructions, quoteResponseExample;
56
56
  var init_example_format = __esmMin((() => {
57
57
  quoteExample = (output) => `"""\n${output}\n"""`;
58
58
  quotePartialExample = (output) => quoteExample(`(...)\n${output}\n(...)`);
@@ -8069,35 +8069,6 @@ var init_uniq = __esmMin((() => {
8069
8069
  init__baseUniq();
8070
8070
  }));
8071
8071
  //#endregion
8072
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js
8073
- /**
8074
- * This method is like `_.uniq` except that it accepts `comparator` which
8075
- * is invoked to compare elements of `array`. The order of result values is
8076
- * determined by the order they occur in the array.The comparator is invoked
8077
- * with two arguments: (arrVal, othVal).
8078
- *
8079
- * @static
8080
- * @memberOf _
8081
- * @since 4.0.0
8082
- * @category Array
8083
- * @param {Array} array The array to inspect.
8084
- * @param {Function} [comparator] The comparator invoked per element.
8085
- * @returns {Array} Returns the new duplicate free array.
8086
- * @example
8087
- *
8088
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
8089
- *
8090
- * _.uniqWith(objects, _.isEqual);
8091
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
8092
- */
8093
- function uniqWith(array, comparator) {
8094
- comparator = typeof comparator == "function" ? comparator : void 0;
8095
- return array && array.length ? baseUniq(array, void 0, comparator) : [];
8096
- }
8097
- var init_uniqWith = __esmMin((() => {
8098
- init__baseUniq();
8099
- }));
8100
- //#endregion
8101
8072
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/lodash.js
8102
8073
  var init_lodash = __esmMin((() => {
8103
8074
  init_isSymbol();
@@ -8249,7 +8220,6 @@ var init_lodash = __esmMin((() => {
8249
8220
  init__trimmedEndIndex();
8250
8221
  init__baseUniq();
8251
8222
  init_uniq();
8252
- init_uniqWith();
8253
8223
  init_upperFirst();
8254
8224
  init_words();
8255
8225
  init__realNames();
@@ -11594,11 +11564,11 @@ function previewArray(arr, maxStringLength = LONG_TEXT_LENGTH) {
11594
11564
  const ordered = orderBy(arr.filter((item) => !isNil(item) && stringify(item).length < 100), (item) => stringify(item), "asc");
11595
11565
  const minValues = ordered.slice(0, 3).map((item) => previewValue(item, 10));
11596
11566
  const maxValues = ordered.slice(-3).map((item) => previewValue(item, 10));
11597
- const uniqueItems = uniqWith(arr, isEqual);
11567
+ const uniqueCount = new Set(arr.map((item) => stringify(item))).size;
11598
11568
  const nullValues = filter(arr, isNil).length;
11599
11569
  const memoryUsage = bytes(stringify(arr).length);
11600
11570
  lines.push(`Total Items: ${arr.length}`);
11601
- lines.push(`Unique Items: ${uniqueItems.length}`);
11571
+ lines.push(`Unique Items: ${uniqueCount}`);
11602
11572
  lines.push(`Types: ${stringify(typesCount)}`);
11603
11573
  lines.push(`Minimum Values: [${minValues.join(", ")}]`);
11604
11574
  lines.push(`Maximum Values: [${maxValues.join(", ")}]`);
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-EAsCxrDo.js";
2
- import { t as uniq } from "./uniq-BYQ7GWwb.js";
2
+ import { t as uniq } from "./uniq-eZWVMz0r.js";
3
3
  import { c as isJsonSchema, l as isValidIdentifier, r as fromJSONSchemaCompat, u as isZuiSchema } from "./utils-UBeAFeEI.js";
4
4
  import { t as isEmpty } from "./isEmpty-BhJRCqIF.js";
5
5
  import { t as getTypings } from "./typings-CrBa7Tyy.js";
@@ -1,5 +1,5 @@
1
1
  const require_compiler = require("./compiler-BJJUmNS9.cjs");
2
- const require_uniq = require("./uniq-G872RWmE.cjs");
2
+ const require_uniq = require("./uniq-BWs20_o8.cjs");
3
3
  const require_utils = require("./utils-DGQ4sRke.cjs");
4
4
  const require_isEmpty = require("./isEmpty-LY533Wmh.cjs");
5
5
  const require_typings = require("./typings-DXJMu59O.cjs");
@@ -180,12 +180,6 @@ function uniq(array) {
180
180
  return array && array.length ? baseUniq(array) : [];
181
181
  }
182
182
  //#endregion
183
- Object.defineProperty(exports, "baseUniq", {
184
- enumerable: true,
185
- get: function() {
186
- return baseUniq;
187
- }
188
- });
189
183
  Object.defineProperty(exports, "noop", {
190
184
  enumerable: true,
191
185
  get: function() {
@@ -180,4 +180,4 @@ function uniq(array) {
180
180
  return array && array.length ? baseUniq(array) : [];
181
181
  }
182
182
  //#endregion
183
- export { baseUniq as n, noop as r, uniq as t };
183
+ export { noop as n, uniq as t };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "llmz",
3
3
  "type": "module",
4
4
  "description": "LLMz - An LLM-native Typescript VM built on top of Zui",
5
- "version": "0.9.9",
5
+ "version": "0.9.10",
6
6
  "files": [
7
7
  "dist",
8
8
  "DOCS.md"