llmz 0.7.0 → 0.8.0

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 (47) hide show
  1. package/dist/{_baseForOwn-buOZDFbK.cjs → _baseForOwn-BfWDTL8L.cjs} +0 -50
  2. package/dist/common-DdArNQhl.cjs +643 -0
  3. package/dist/common-pgJjFu2Y.js +596 -0
  4. package/dist/compiler-C-OI9sim.cjs +547 -0
  5. package/dist/compiler-CW1VjQsn.js +473 -0
  6. package/dist/{component-BwixNVH8.cjs → component-BXS8vAwO.cjs} +3 -3
  7. package/dist/{component-DGG7d_Mz.js → component-Dq7ZLdvy.js} +1 -1
  8. package/dist/component.d.ts +4 -4
  9. package/dist/component.default.d.ts +60 -87
  10. package/dist/component.default.test.d.ts +1 -0
  11. package/dist/context.d.ts +10 -0
  12. package/dist/{custom-client-CMuy7fXU.js → custom-client-2V9lmzUf.js} +119 -24
  13. package/dist/{custom-client-Bp1TgTKk.cjs → custom-client-HkM1Sdzv.cjs} +124 -29
  14. package/dist/{dual-modes-CfqTk9M8.cjs → dual-modes-Cb7ThvoV.cjs} +1268 -1062
  15. package/dist/{dual-modes-mNyMThtf.js → dual-modes-Cy0_W4O2.js} +1242 -1036
  16. package/dist/example.d.ts +45 -0
  17. package/dist/example.test.d.ts +1 -0
  18. package/dist/{execute-DP_17lYZ.js → execute-Aw4cbIx-.js} +23 -10
  19. package/dist/{execute-msui51b2.cjs → execute-COIHOIKR.cjs} +30 -18
  20. package/dist/{exit-BGi0Kk0y.cjs → exit-DUM96DN1.cjs} +3 -3
  21. package/dist/exit-parser.d.ts +2 -0
  22. package/dist/index.cjs +33 -356
  23. package/dist/index.d.ts +2 -0
  24. package/dist/index.js +13 -337
  25. package/dist/index.workerd.js +9981 -9388
  26. package/dist/{jsx-CIgdGGVs.js → jsx-B0iYyvfr.js} +50 -2
  27. package/dist/{jsx-BWvT6ukg.cjs → jsx-D5Y2cPo-.cjs} +58 -4
  28. package/dist/message-stream/parser.d.ts +3 -0
  29. package/dist/message-stream/types.d.ts +1 -1
  30. package/dist/prompts/chat-mode/system.d.ts +2 -0
  31. package/dist/prompts/chat-mode/user.d.ts +2 -0
  32. package/dist/prompts/execution-history.d.ts +6 -0
  33. package/dist/prompts/execution-state.d.ts +3 -0
  34. package/dist/prompts/prompt.d.ts +26 -0
  35. package/dist/prompts/protocol.test.d.ts +1 -0
  36. package/dist/prompts/worker-mode/system.d.ts +2 -0
  37. package/dist/prompts/worker-mode/user.d.ts +2 -0
  38. package/dist/runtime/types.d.ts +9 -0
  39. package/dist/{tool-ReA9gxMp.cjs → tool-Dy6AJpJH.cjs} +4 -4
  40. package/dist/{truncator-B6aaJaN1.cjs → truncator-CLkouTCO.cjs} +3 -3
  41. package/dist/{typings-BwAz_TM9.cjs → typings-3lsqCbkn.cjs} +3 -3
  42. package/dist/{utils-ZpJm00ed.cjs → utils-3ESwP3yg.cjs} +2 -2
  43. package/dist/{vm-C5vf1LH3.js → vm-BLsHw1da.js} +3 -462
  44. package/dist/{vm-BjkJqSQH.cjs → vm-D6s1zF6M.cjs} +28 -489
  45. package/package.json +2 -2
  46. package/dist/isPlainObject-CSxXVKCk.cjs +0 -56
  47. package/dist/isPlainObject-D39AzPO2.js +0 -51
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.7.0",
5
+ "version": "0.8.0",
6
6
  "files": [
7
7
  "dist",
8
8
  "DOCS.md"
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "peerDependencies": {
71
71
  "@botpress/client": "2.5.0",
72
- "@botpress/cognitive": "1.2.1",
72
+ "@botpress/cognitive": "1.2.2",
73
73
  "@bpinternal/thicktoken": "^3.1.0",
74
74
  "@bpinternal/zui": "^2.4.1"
75
75
  },
@@ -1,56 +0,0 @@
1
- const require__overArg = require("./_overArg-C5Hy7oCi.cjs");
2
- const require__getPrototype = require("./_getPrototype-DQDlNVVM.cjs");
3
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js
4
- /** `Object#toString` result references. */
5
- var objectTag = "[object Object]";
6
- /** Used for built-in method references. */
7
- var funcProto = Function.prototype;
8
- var objectProto = Object.prototype;
9
- /** Used to resolve the decompiled source of functions. */
10
- var funcToString = funcProto.toString;
11
- /** Used to check objects for own properties. */
12
- var hasOwnProperty = objectProto.hasOwnProperty;
13
- /** Used to infer the `Object` constructor. */
14
- var objectCtorString = funcToString.call(Object);
15
- /**
16
- * Checks if `value` is a plain object, that is, an object created by the
17
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
18
- *
19
- * @static
20
- * @memberOf _
21
- * @since 0.8.0
22
- * @category Lang
23
- * @param {*} value The value to check.
24
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
25
- * @example
26
- *
27
- * function Foo() {
28
- * this.a = 1;
29
- * }
30
- *
31
- * _.isPlainObject(new Foo);
32
- * // => false
33
- *
34
- * _.isPlainObject([1, 2, 3]);
35
- * // => false
36
- *
37
- * _.isPlainObject({ 'x': 0, 'y': 0 });
38
- * // => true
39
- *
40
- * _.isPlainObject(Object.create(null));
41
- * // => true
42
- */
43
- function isPlainObject(value) {
44
- if (!require__overArg.isObjectLike(value) || require__overArg.baseGetTag(value) != objectTag) return false;
45
- var proto = require__getPrototype.getPrototype(value);
46
- if (proto === null) return true;
47
- var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
48
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
49
- }
50
- //#endregion
51
- Object.defineProperty(exports, "isPlainObject", {
52
- enumerable: true,
53
- get: function() {
54
- return isPlainObject;
55
- }
56
- });
@@ -1,51 +0,0 @@
1
- import { i as baseGetTag, r as isObjectLike } from "./_overArg-CRYbj1NH.js";
2
- import { t as getPrototype } from "./_getPrototype-CG7Dxrrz.js";
3
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js
4
- /** `Object#toString` result references. */
5
- var objectTag = "[object Object]";
6
- /** Used for built-in method references. */
7
- var funcProto = Function.prototype;
8
- var objectProto = Object.prototype;
9
- /** Used to resolve the decompiled source of functions. */
10
- var funcToString = funcProto.toString;
11
- /** Used to check objects for own properties. */
12
- var hasOwnProperty = objectProto.hasOwnProperty;
13
- /** Used to infer the `Object` constructor. */
14
- var objectCtorString = funcToString.call(Object);
15
- /**
16
- * Checks if `value` is a plain object, that is, an object created by the
17
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
18
- *
19
- * @static
20
- * @memberOf _
21
- * @since 0.8.0
22
- * @category Lang
23
- * @param {*} value The value to check.
24
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
25
- * @example
26
- *
27
- * function Foo() {
28
- * this.a = 1;
29
- * }
30
- *
31
- * _.isPlainObject(new Foo);
32
- * // => false
33
- *
34
- * _.isPlainObject([1, 2, 3]);
35
- * // => false
36
- *
37
- * _.isPlainObject({ 'x': 0, 'y': 0 });
38
- * // => true
39
- *
40
- * _.isPlainObject(Object.create(null));
41
- * // => true
42
- */
43
- function isPlainObject(value) {
44
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) return false;
45
- var proto = getPrototype(value);
46
- if (proto === null) return true;
47
- var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
48
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
49
- }
50
- //#endregion
51
- export { isPlainObject as t };