llmz 0.0.25 → 0.0.27

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 (38) hide show
  1. package/dist/{chunk-XGJOEQMW.cjs → chunk-273DEMEU.cjs} +2 -2
  2. package/dist/{chunk-LUX4X7XO.js → chunk-7G5QAIUX.js} +2 -2
  3. package/dist/{chunk-A7QHWVD7.js → chunk-7POUFE5M.js} +1 -1
  4. package/dist/{chunk-2D2DE7CD.js → chunk-HCC76DDO.js} +2 -2
  5. package/dist/{chunk-EE6NVDID.js → chunk-IUE5BW56.js} +2 -2
  6. package/dist/chunk-KIN7Y247.cjs +32 -0
  7. package/dist/{chunk-DBRWIHIH.js → chunk-KQPGB6GB.js} +3 -3
  8. package/dist/{chunk-BNDY7RGX.cjs → chunk-M3LCKL55.cjs} +20 -20
  9. package/dist/{chunk-JKVVQN2P.js → chunk-MYLTD5WT.js} +15 -2
  10. package/dist/{chunk-FZJHYLM2.cjs → chunk-RLOPQZTQ.cjs} +3 -3
  11. package/dist/{chunk-JDABP4SD.cjs → chunk-T63Y6GTW.cjs} +17 -4
  12. package/dist/{chunk-UGXCQIHB.cjs → chunk-VADA6DMR.cjs} +11 -11
  13. package/dist/{chunk-PIDLNYIP.cjs → chunk-WP4F6KMW.cjs} +5 -5
  14. package/dist/chunk-YEAWWJSJ.js +32 -0
  15. package/dist/context.d.ts +8 -8
  16. package/dist/{dual-modes-7FI4T35O.js → dual-modes-DW3KRXT2.js} +2 -2
  17. package/dist/{dual-modes-OFHV2C3X.cjs → dual-modes-F4UV5VAZ.cjs} +3 -3
  18. package/dist/errors.d.ts +3 -0
  19. package/dist/index.cjs +19 -19
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +12 -12
  22. package/dist/{llmz-HRL52DC6.cjs → llmz-M7XYQZT7.cjs} +35 -34
  23. package/dist/{llmz-M5AWNDMV.js → llmz-WPO4HYQY.js} +11 -10
  24. package/dist/llmz.d.ts +3 -3
  25. package/dist/result.d.ts +3 -3
  26. package/dist/tool-GEBXW6AQ.js +11 -0
  27. package/dist/tool-GMYMVXUK.cjs +11 -0
  28. package/dist/typings-2RAAZ2YP.cjs +10 -0
  29. package/dist/{typings-WYHEFCYB.js → typings-3VYUEACY.js} +3 -3
  30. package/dist/{vm-CYC5RLKU.js → vm-I4G4IH7T.js} +3 -3
  31. package/dist/vm-YJX6M4NJ.cjs +12 -0
  32. package/package.json +7 -4
  33. package/dist/chunk-IKSIOIIP.cjs +0 -28
  34. package/dist/chunk-JQBT7UWN.js +0 -28
  35. package/dist/tool-O4SFRIE4.cjs +0 -11
  36. package/dist/tool-PCOYOCRH.js +0 -11
  37. package/dist/typings-Y45GMPZT.cjs +0 -10
  38. package/dist/vm-PRZ5GEM2.cjs +0 -12
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.0.25",
5
+ "version": "0.0.27",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.cjs",
8
8
  "module": "./dist/index.js",
@@ -12,6 +12,9 @@
12
12
  "require": "./dist/index.cjs"
13
13
  }
14
14
  },
15
+ "repository": {
16
+ "url": "https://github.com/botpress/botpress"
17
+ },
15
18
  "scripts": {
16
19
  "generate": "pnpm build:markdown",
17
20
  "build": "tsup && pnpm tsc --emitDeclarationOnly",
@@ -66,10 +69,10 @@
66
69
  "tsx": "^4.19.2"
67
70
  },
68
71
  "peerDependencies": {
69
- "@botpress/client": "^1.25.0",
70
- "@botpress/cognitive": "^0.1.44",
72
+ "@botpress/client": "1.26.0",
73
+ "@botpress/cognitive": "0.1.48",
71
74
  "@bpinternal/thicktoken": "^1.0.5",
72
- "@bpinternal/zui": "^1.0.1"
75
+ "@bpinternal/zui": "1.2.1"
73
76
  },
74
77
  "dependenciesMeta": {
75
78
  "@bpinternal/zui": {
@@ -1,28 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/stack-traces.ts
2
- var isInternalLine = (line) => {
3
- return line.includes("/llmz/") || line.includes("\\llmz\\src\\") || line.includes("node_modules");
4
- };
5
- function cleanStackTrace(stack, cleanInternal = true) {
6
- const lines = stack.split("\n");
7
- for (let i = 0; i < lines.length; i++) {
8
- const line = lines[i];
9
- let llmzIndex = line.indexOf("/llmz/");
10
- if (llmzIndex === -1) {
11
- llmzIndex = line.indexOf("\\llmz\\");
12
- }
13
- if (llmzIndex === -1) {
14
- continue;
15
- }
16
- let lastSpaceIndex = line.lastIndexOf(" ", llmzIndex);
17
- if (lastSpaceIndex === -1) {
18
- lastSpaceIndex = 0;
19
- }
20
- const maybeParen = line[lastSpaceIndex + 1] === "(" ? "(" : "";
21
- lines[i] = line.slice(0, lastSpaceIndex + 1) + maybeParen + line.slice(llmzIndex);
22
- }
23
- return lines.filter((x) => !cleanInternal || !isInternalLine(x)).join("\n");
24
- }
25
-
26
-
27
-
28
- exports.cleanStackTrace = cleanStackTrace;
@@ -1,28 +0,0 @@
1
- // src/stack-traces.ts
2
- var isInternalLine = (line) => {
3
- return line.includes("/llmz/") || line.includes("\\llmz\\src\\") || line.includes("node_modules");
4
- };
5
- function cleanStackTrace(stack, cleanInternal = true) {
6
- const lines = stack.split("\n");
7
- for (let i = 0; i < lines.length; i++) {
8
- const line = lines[i];
9
- let llmzIndex = line.indexOf("/llmz/");
10
- if (llmzIndex === -1) {
11
- llmzIndex = line.indexOf("\\llmz\\");
12
- }
13
- if (llmzIndex === -1) {
14
- continue;
15
- }
16
- let lastSpaceIndex = line.lastIndexOf(" ", llmzIndex);
17
- if (lastSpaceIndex === -1) {
18
- lastSpaceIndex = 0;
19
- }
20
- const maybeParen = line[lastSpaceIndex + 1] === "(" ? "(" : "";
21
- lines[i] = line.slice(0, lastSpaceIndex + 1) + maybeParen + line.slice(llmzIndex);
22
- }
23
- return lines.filter((x) => !cleanInternal || !isInternalLine(x)).join("\n");
24
- }
25
-
26
- export {
27
- cleanStackTrace
28
- };
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkXGJOEQMWcjs = require('./chunk-XGJOEQMW.cjs');
4
- require('./chunk-FZJHYLM2.cjs');
5
- require('./chunk-JDABP4SD.cjs');
6
- require('./chunk-IKSIOIIP.cjs');
7
- require('./chunk-WHNOR4ZU.cjs');
8
- require('./chunk-UQOBUJIQ.cjs');
9
-
10
-
11
- exports.Tool = _chunkXGJOEQMWcjs.Tool;
@@ -1,11 +0,0 @@
1
- import {
2
- Tool
3
- } from "./chunk-A7QHWVD7.js";
4
- import "./chunk-EE6NVDID.js";
5
- import "./chunk-JKVVQN2P.js";
6
- import "./chunk-JQBT7UWN.js";
7
- import "./chunk-ZORRILUV.js";
8
- import "./chunk-7WRN4E42.js";
9
- export {
10
- Tool
11
- };
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkFZJHYLM2cjs = require('./chunk-FZJHYLM2.cjs');
4
- require('./chunk-JDABP4SD.cjs');
5
- require('./chunk-IKSIOIIP.cjs');
6
- require('./chunk-WHNOR4ZU.cjs');
7
- require('./chunk-UQOBUJIQ.cjs');
8
-
9
-
10
- exports.getTypings = _chunkFZJHYLM2cjs.getTypings;
@@ -1,12 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkBNDY7RGXcjs = require('./chunk-BNDY7RGX.cjs');
5
- require('./chunk-JDABP4SD.cjs');
6
- require('./chunk-IKSIOIIP.cjs');
7
- require('./chunk-KMZDFWYZ.cjs');
8
- require('./chunk-UQOBUJIQ.cjs');
9
-
10
-
11
-
12
- exports.CAN_USE_ISOLATED_VM = _chunkBNDY7RGXcjs.CAN_USE_ISOLATED_VM; exports.runAsyncFunction = _chunkBNDY7RGXcjs.runAsyncFunction;