llmz 0.0.80 → 0.0.82

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 (68) hide show
  1. package/dist/{chunk-W4HLZNF4.js → chunk-22DGAZXC.js} +784 -868
  2. package/dist/{chunk-ESMRQVFC.js → chunk-2UM7PFM3.js} +6 -6
  3. package/dist/{chunk-EKXZXQJB.js → chunk-3NVOHQVY.js} +1 -1
  4. package/dist/{chunk-BSKF4J2E.cjs → chunk-5X5TDCMX.cjs} +51 -51
  5. package/dist/{chunk-BLB44ZDU.cjs → chunk-BXPPMP5X.cjs} +14 -14
  6. package/dist/{chunk-F4OZHUMS.cjs → chunk-DLV5FJ42.cjs} +9 -9
  7. package/dist/{chunk-LR6KTFHO.js → chunk-DO7DN4FZ.js} +1 -1
  8. package/dist/{chunk-UOPTKXLE.js → chunk-E6UFMAW7.js} +1 -1
  9. package/dist/{chunk-E5YW5YQN.js → chunk-E74GBCTT.js} +2 -2
  10. package/dist/{chunk-YTDNCBQW.js → chunk-EQ4JDBE5.js} +1 -1
  11. package/dist/{chunk-4VYDQ3VF.cjs → chunk-FQ4QCUTI.cjs} +7 -7
  12. package/dist/{chunk-5CXOW4DC.cjs → chunk-GFZCNSYW.cjs} +797 -881
  13. package/dist/{chunk-QOM7BK7U.cjs → chunk-H5LCBNN6.cjs} +18 -18
  14. package/dist/{chunk-UI6J4WKQ.js → chunk-HBKQKO3R.js} +3 -3
  15. package/dist/{chunk-2KRDL5AW.js → chunk-HP3T6PF4.js} +4 -4
  16. package/dist/{chunk-54G63644.cjs → chunk-OX3Y2Z5K.cjs} +3 -3
  17. package/dist/{chunk-UCXQ4U7P.cjs → chunk-TB6TCWEB.cjs} +2 -2
  18. package/dist/{chunk-WDYTCDIK.cjs → chunk-VXQ2CZ7B.cjs} +4 -4
  19. package/dist/{chunk-XLUYPCCY.cjs → chunk-X24YFCFY.cjs} +28 -28
  20. package/dist/{chunk-M4WTTARE.js → chunk-YFG53MRF.js} +1 -1
  21. package/dist/{component-DWFDDH5N.js → component-GVCCL5XU.js} +3 -3
  22. package/dist/component-YMPMWSTU.cjs +18 -0
  23. package/dist/dual-modes-KOU5YJ3Q.cjs +12 -0
  24. package/dist/dual-modes-X7YHJBFJ.js +12 -0
  25. package/dist/exit-A34GODDB.cjs +8 -0
  26. package/dist/exit-J55SREDL.js +8 -0
  27. package/dist/index.cjs +49 -49
  28. package/dist/index.js +22 -22
  29. package/dist/{jsx-PCXQVMLU.js → jsx-RIPUQSAU.js} +2 -2
  30. package/dist/jsx-XEUSAKAK.cjs +13 -0
  31. package/dist/{llmz-XRURR7Z5.cjs → llmz-2HD6WKIP.cjs} +34 -30
  32. package/dist/{llmz-F227HVGB.js → llmz-JTZUIYRP.js} +17 -13
  33. package/dist/llmz.d.ts +2 -2
  34. package/dist/quickjs-variant.d.ts +7 -1
  35. package/dist/tool-B3DJ3D2F.js +11 -0
  36. package/dist/tool-IWPZD5OY.cjs +11 -0
  37. package/dist/{truncator-2FSONJM2.js → truncator-HCWH5MJ3.js} +3 -3
  38. package/dist/truncator-SOO6NHLD.cjs +10 -0
  39. package/dist/{typings-DVMU3KVB.js → typings-FPFJ5D5R.js} +3 -3
  40. package/dist/typings-O2FLZGQN.cjs +10 -0
  41. package/dist/{utils-D3J443FA.js → utils-M5KFPSNZ.js} +2 -2
  42. package/dist/utils-PWX3JPCF.cjs +39 -0
  43. package/dist/vm/drivers/node.d.ts +5 -0
  44. package/dist/vm/drivers/quickjs.d.ts +6 -0
  45. package/dist/vm/errors.d.ts +21 -0
  46. package/dist/vm/index.d.ts +3 -0
  47. package/dist/vm/instrument.d.ts +11 -0
  48. package/dist/vm/types.d.ts +20 -0
  49. package/dist/{vm-GDB4GW4S.js → vm-KBBQ7U5L.js} +3 -3
  50. package/dist/vm-R2XBIWE4.cjs +10 -0
  51. package/package.json +3 -3
  52. package/dist/component-RVYDIBUM.cjs +0 -18
  53. package/dist/dual-modes-A4SC4APN.cjs +0 -12
  54. package/dist/dual-modes-FNC3BGK3.js +0 -12
  55. package/dist/exit-56DISPLS.js +0 -8
  56. package/dist/exit-OOGJ3TAS.cjs +0 -8
  57. package/dist/jsx-ENFGHP6S.cjs +0 -13
  58. package/dist/tool-A7EOCUQG.cjs +0 -11
  59. package/dist/tool-FNWHZGDU.js +0 -11
  60. package/dist/truncator-6M2EP2NZ.cjs +0 -10
  61. package/dist/typings-54UIN7ZR.cjs +0 -10
  62. package/dist/utils-BZUEJT4W.cjs +0 -39
  63. package/dist/vm-CR5NE6NS.cjs +0 -10
  64. package/dist/vm.d.ts +0 -9
  65. package/dist/{chunk-RKKRSBX3.cjs → chunk-7XVBJQ53.cjs} +432 -432
  66. package/dist/{chunk-5XC6ZMS5.js → chunk-BJMZIH3M.js} +432 -432
  67. /package/dist/{vm-jsx.test.d.ts → vm/vm-jsx.test.d.ts} +0 -0
  68. /package/dist/{vm.test.d.ts → vm/vm.test.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runAsyncFunction
3
- } from "./chunk-W4HLZNF4.js";
3
+ } from "./chunk-22DGAZXC.js";
4
4
  import {
5
5
  Context,
6
6
  ErrorExecutionResult,
@@ -8,10 +8,10 @@ import {
8
8
  Snapshot,
9
9
  SuccessExecutionResult,
10
10
  parseExit
11
- } from "./chunk-ESMRQVFC.js";
12
- import "./chunk-2KRDL5AW.js";
13
- import "./chunk-UI6J4WKQ.js";
14
- import "./chunk-LR6KTFHO.js";
11
+ } from "./chunk-2UM7PFM3.js";
12
+ import "./chunk-HP3T6PF4.js";
13
+ import "./chunk-HBKQKO3R.js";
14
+ import "./chunk-DO7DN4FZ.js";
15
15
  import {
16
16
  AssignmentError,
17
17
  CodeExecutionError,
@@ -26,26 +26,30 @@ import {
26
26
  import {
27
27
  cleanStackTrace
28
28
  } from "./chunk-YEAWWJSJ.js";
29
- import "./chunk-E5YW5YQN.js";
30
- import "./chunk-YTDNCBQW.js";
31
- import "./chunk-UOPTKXLE.js";
29
+ import "./chunk-E74GBCTT.js";
30
+ import "./chunk-EQ4JDBE5.js";
31
+ import "./chunk-E6UFMAW7.js";
32
32
  import {
33
33
  truncateWrappedContent
34
- } from "./chunk-M4WTTARE.js";
34
+ } from "./chunk-YFG53MRF.js";
35
35
  import {
36
36
  init,
37
37
  stripInvalidIdentifiers
38
- } from "./chunk-EKXZXQJB.js";
38
+ } from "./chunk-3NVOHQVY.js";
39
39
  import {
40
40
  clamp_default,
41
41
  isEqual_default,
42
42
  isPlainObject_default,
43
43
  omit_default
44
- } from "./chunk-5XC6ZMS5.js";
44
+ } from "./chunk-BJMZIH3M.js";
45
45
 
46
46
  // src/llmz.ts
47
47
  import { Client } from "@botpress/client";
48
- import { Cognitive } from "@botpress/cognitive";
48
+ import {
49
+ Cognitive,
50
+ CognitiveBeta,
51
+ cognitiveFromBeta
52
+ } from "@botpress/cognitive";
49
53
  import { z } from "@bpinternal/zui";
50
54
  import ms from "ms";
51
55
  import { ulid } from "ulid";
@@ -107,7 +111,7 @@ var _executeContext = async (props) => {
107
111
  const controller = createJoinedAbortController([props.signal]);
108
112
  const { onIterationStart, onIterationEnd, onTrace, onExit, onBeforeExecution, onAfterTool, onBeforeTool } = props;
109
113
  const client = props.client ?? new Client();
110
- const cognitive = Cognitive.isCognitiveClient(client) ? client : new Cognitive({ client, __experimental_beta: true });
114
+ const cognitive = Cognitive.isCognitiveClient(client) ? client : CognitiveBeta.isBetaClient(client) ? cognitiveFromBeta(client) : new Cognitive({ client, __experimental_beta: true });
111
115
  const cleanups = [];
112
116
  const ctx = new Context({
113
117
  chat: props.chat,
package/dist/llmz.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Cognitive, Models, type BotpressClientLike } from '@botpress/cognitive';
1
+ import { Cognitive, CognitiveBeta, Models, type BotpressClientLike } from '@botpress/cognitive';
2
2
  import { Chat } from './chat.js';
3
3
  import { Context, Iteration } from './context.js';
4
4
  import { Exit, ExitResult } from './exit.js';
@@ -169,7 +169,7 @@ export type ExecutionProps = {
169
169
  * This is used to generate content using the LLM and to access the Botpress API.
170
170
  * If not provided, a default client will be created using environment variables.
171
171
  */
172
- client?: Cognitive | BotpressClientLike;
172
+ client?: Cognitive | CognitiveBeta | BotpressClientLike;
173
173
  /**
174
174
  * When provided, the execution will immediately stop when the signal is aborted.
175
175
  * This will stop the LLM generation, as well as kill the VM sandbox execution.
@@ -1,2 +1,8 @@
1
1
  import type { QuickJSSyncVariant } from 'quickjs-emscripten-core';
2
- export declare const BundledReleaseSyncVariant: QuickJSSyncVariant;
2
+ export type QuickJSSyncVariantEx = QuickJSSyncVariant & {
3
+ _wasmSource?: any;
4
+ _wasmLoadedSuccessfully?: any;
5
+ _wasmSize?: any;
6
+ _wasmLoadError?: any;
7
+ };
8
+ export declare const BundledReleaseSyncVariant: QuickJSSyncVariantEx;
@@ -0,0 +1,11 @@
1
+ import {
2
+ Tool
3
+ } from "./chunk-HBKQKO3R.js";
4
+ import "./chunk-DO7DN4FZ.js";
5
+ import "./chunk-WSVDMGMR.js";
6
+ import "./chunk-YEAWWJSJ.js";
7
+ import "./chunk-3NVOHQVY.js";
8
+ import "./chunk-BJMZIH3M.js";
9
+ export {
10
+ Tool
11
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkH5LCBNN6cjs = require('./chunk-H5LCBNN6.cjs');
4
+ require('./chunk-BXPPMP5X.cjs');
5
+ require('./chunk-PK72FAKD.cjs');
6
+ require('./chunk-KIN7Y247.cjs');
7
+ require('./chunk-FQ4QCUTI.cjs');
8
+ require('./chunk-7XVBJQ53.cjs');
9
+
10
+
11
+ exports.Tool = _chunkH5LCBNN6cjs.Tool;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  truncateWrappedContent,
3
3
  wrapContent
4
- } from "./chunk-M4WTTARE.js";
5
- import "./chunk-EKXZXQJB.js";
6
- import "./chunk-5XC6ZMS5.js";
4
+ } from "./chunk-YFG53MRF.js";
5
+ import "./chunk-3NVOHQVY.js";
6
+ import "./chunk-BJMZIH3M.js";
7
7
  export {
8
8
  truncateWrappedContent,
9
9
  wrapContent
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkTB6TCWEBcjs = require('./chunk-TB6TCWEB.cjs');
5
+ require('./chunk-FQ4QCUTI.cjs');
6
+ require('./chunk-7XVBJQ53.cjs');
7
+
8
+
9
+
10
+ exports.truncateWrappedContent = _chunkTB6TCWEBcjs.truncateWrappedContent; exports.wrapContent = _chunkTB6TCWEBcjs.wrapContent;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getTypings
3
- } from "./chunk-LR6KTFHO.js";
3
+ } from "./chunk-DO7DN4FZ.js";
4
4
  import "./chunk-WSVDMGMR.js";
5
5
  import "./chunk-YEAWWJSJ.js";
6
- import "./chunk-EKXZXQJB.js";
7
- import "./chunk-5XC6ZMS5.js";
6
+ import "./chunk-3NVOHQVY.js";
7
+ import "./chunk-BJMZIH3M.js";
8
8
  export {
9
9
  getTypings
10
10
  };
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkBXPPMP5Xcjs = require('./chunk-BXPPMP5X.cjs');
4
+ require('./chunk-PK72FAKD.cjs');
5
+ require('./chunk-KIN7Y247.cjs');
6
+ require('./chunk-FQ4QCUTI.cjs');
7
+ require('./chunk-7XVBJQ53.cjs');
8
+
9
+
10
+ exports.getTypings = _chunkBXPPMP5Xcjs.getTypings;
@@ -16,8 +16,8 @@ import {
16
16
  toPropertyKey,
17
17
  toValidFunctionName,
18
18
  toValidObjectName
19
- } from "./chunk-EKXZXQJB.js";
20
- import "./chunk-5XC6ZMS5.js";
19
+ } from "./chunk-3NVOHQVY.js";
20
+ import "./chunk-BJMZIH3M.js";
21
21
  export {
22
22
  Identifier,
23
23
  Tokens,
@@ -0,0 +1,39 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+ var _chunkFQ4QCUTIcjs = require('./chunk-FQ4QCUTI.cjs');
20
+ require('./chunk-7XVBJQ53.cjs');
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+ exports.Identifier = _chunkFQ4QCUTIcjs.Identifier; exports.Tokens = _chunkFQ4QCUTIcjs.Tokens; exports.awaitObject = _chunkFQ4QCUTIcjs.awaitObject; exports.convertObjectToZuiLiterals = _chunkFQ4QCUTIcjs.convertObjectToZuiLiterals; exports.escapeString = _chunkFQ4QCUTIcjs.escapeString; exports.getMultilineComment = _chunkFQ4QCUTIcjs.getMultilineComment; exports.getTokenizer = _chunkFQ4QCUTIcjs.getTokenizer; exports.init = _chunkFQ4QCUTIcjs.init; exports.isJsonSchema = _chunkFQ4QCUTIcjs.isJsonSchema; exports.isValidIdentifier = _chunkFQ4QCUTIcjs.isValidIdentifier; exports.isValidMessageName = _chunkFQ4QCUTIcjs.isValidMessageName; exports.isValidSchema = _chunkFQ4QCUTIcjs.isValidSchema; exports.isZuiSchema = _chunkFQ4QCUTIcjs.isZuiSchema; exports.stripInvalidIdentifiers = _chunkFQ4QCUTIcjs.stripInvalidIdentifiers; exports.toPropertyKey = _chunkFQ4QCUTIcjs.toPropertyKey; exports.toValidFunctionName = _chunkFQ4QCUTIcjs.toValidFunctionName; exports.toValidObjectName = _chunkFQ4QCUTIcjs.toValidObjectName;
@@ -0,0 +1,5 @@
1
+ import type { VMExecutionResult } from '../../types.js';
2
+ import type { DriverExecutionContext, VMDriver } from '../types.js';
3
+ export declare class NodeDriver implements VMDriver {
4
+ execute(ctx: DriverExecutionContext): Promise<VMExecutionResult>;
5
+ }
@@ -0,0 +1,6 @@
1
+ import type { VMExecutionResult } from '../../types.js';
2
+ import type { DriverExecutionContext, VMDriver } from '../types.js';
3
+ export declare class QuickJSDriver implements VMDriver {
4
+ execute(ctx: DriverExecutionContext): Promise<VMExecutionResult>;
5
+ private _pumpEventLoop;
6
+ }
@@ -0,0 +1,21 @@
1
+ import type { SourceMapConsumer } from 'source-map-js';
2
+ import { SnapshotSignal, VMSignal } from '../errors.js';
3
+ import type { Traces, VMExecutionResult } from '../types.js';
4
+ export declare const handleErrorQuickJS: (err: Error, code: string, _consumer: SourceMapConsumer, traces: Traces.Trace[], variables: {
5
+ [k: string]: any;
6
+ }, lines_executed: Map<number, number>, userCodeStartLine: number, currentToolCall?: SnapshotSignal["toolCall"] | undefined) => VMExecutionResult;
7
+ export declare const handleErrorNode: (err: Error, code: string, consumer: SourceMapConsumer, traces: Traces.Trace[], variables: {
8
+ [k: string]: () => any;
9
+ }, _lines_executed: Map<number, number>, currentToolCall?: SnapshotSignal["toolCall"] | undefined) => never;
10
+ export declare const handleCatch: (err: Error, traces: Traces.Trace[], variables: {
11
+ [k: string]: () => any;
12
+ }, lines_executed: Map<number, number>) => {
13
+ success: boolean;
14
+ variables: {
15
+ [x: string]: any;
16
+ };
17
+ error: Error;
18
+ signal: VMSignal | undefined;
19
+ traces: Traces.Trace[];
20
+ lines_executed: [number, number][];
21
+ };
@@ -0,0 +1,3 @@
1
+ import type { Trace, VMExecutionResult } from '../types.js';
2
+ import type { VMContext } from './types.js';
3
+ export declare function runAsyncFunction(context: VMContext, code: string, traces?: Trace[], signal?: AbortSignal | null, timeout?: number): Promise<VMExecutionResult>;
@@ -0,0 +1,11 @@
1
+ import type { SourceMapConsumer } from 'source-map-js';
2
+ import { type CompiledCode } from '../compiler/index.js';
3
+ import { SnapshotSignal } from '../errors.js';
4
+ import type { Trace } from '../types.js';
5
+ import { VMContext } from './types.js';
6
+ export declare const NO_TRACKING: readonly [string, string, string, string, string, string];
7
+ export type InstrumentationState = {
8
+ currentToolCall: SnapshotSignal['toolCall'] | undefined;
9
+ };
10
+ export declare function instrumentContext(context: VMContext, transformed: CompiledCode, traces: Trace[], variables: Record<string, any>, lines_executed: Map<number, number>, consumer: SourceMapConsumer, userCodeStartLine: number): InstrumentationState;
11
+ export declare function findUserCodeStartLine(transformed: CompiledCode): number;
@@ -0,0 +1,20 @@
1
+ import type { SourceMapConsumer } from 'source-map-js';
2
+ import type { CompiledCode } from '../compiler/index.js';
3
+ import type { SnapshotSignal } from '../errors.js';
4
+ import type { Trace, VMExecutionResult } from '../types.js';
5
+ export type VMContext = Record<string, any>;
6
+ export type DriverExecutionContext = {
7
+ transformed: CompiledCode;
8
+ consumer: SourceMapConsumer;
9
+ context: VMContext;
10
+ traces: Trace[];
11
+ signal: AbortSignal | null;
12
+ timeout: number;
13
+ code: string;
14
+ lines_executed: Map<number, number>;
15
+ variables: Record<string, any>;
16
+ currentToolCall: SnapshotSignal['toolCall'] | undefined;
17
+ };
18
+ export type VMDriver = {
19
+ execute(ctx: DriverExecutionContext): Promise<VMExecutionResult>;
20
+ };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  runAsyncFunction
3
- } from "./chunk-W4HLZNF4.js";
3
+ } from "./chunk-22DGAZXC.js";
4
4
  import "./chunk-WSVDMGMR.js";
5
5
  import "./chunk-YEAWWJSJ.js";
6
- import "./chunk-UOPTKXLE.js";
7
- import "./chunk-5XC6ZMS5.js";
6
+ import "./chunk-E6UFMAW7.js";
7
+ import "./chunk-BJMZIH3M.js";
8
8
  export {
9
9
  runAsyncFunction
10
10
  };
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkGFZCNSYWcjs = require('./chunk-GFZCNSYW.cjs');
4
+ require('./chunk-PK72FAKD.cjs');
5
+ require('./chunk-KIN7Y247.cjs');
6
+ require('./chunk-OX3Y2Z5K.cjs');
7
+ require('./chunk-7XVBJQ53.cjs');
8
+
9
+
10
+ exports.runAsyncFunction = _chunkGFZCNSYWcjs.runAsyncFunction;
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.80",
5
+ "version": "0.0.82",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.cjs",
8
8
  "module": "./dist/index.js",
@@ -72,7 +72,7 @@
72
72
  },
73
73
  "peerDependencies": {
74
74
  "@botpress/client": "1.46.0",
75
- "@botpress/cognitive": "0.6.0",
75
+ "@botpress/cognitive": "0.6.1",
76
76
  "@bpinternal/thicktoken": "^2.0.0",
77
77
  "@bpinternal/zui": "^2.3.0"
78
78
  },
@@ -95,5 +95,5 @@
95
95
  "optional": false
96
96
  }
97
97
  },
98
- "packageManager": "pnpm@10.12.4"
98
+ "packageManager": "pnpm@10.29.3"
99
99
  }
@@ -1,18 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
- var _chunkWDYTCDIKcjs = require('./chunk-WDYTCDIK.cjs');
9
- require('./chunk-54G63644.cjs');
10
- require('./chunk-RKKRSBX3.cjs');
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
- exports.Component = _chunkWDYTCDIKcjs.Component; exports.assertValidComponent = _chunkWDYTCDIKcjs.assertValidComponent; exports.getComponentReference = _chunkWDYTCDIKcjs.getComponentReference; exports.isAnyComponent = _chunkWDYTCDIKcjs.isAnyComponent; exports.isComponent = _chunkWDYTCDIKcjs.isComponent; exports.renderToTsx = _chunkWDYTCDIKcjs.renderToTsx;
@@ -1,12 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkBSKF4J2Ecjs = require('./chunk-BSKF4J2E.cjs');
4
- require('./chunk-KIN7Y247.cjs');
5
- require('./chunk-WDYTCDIK.cjs');
6
- require('./chunk-54G63644.cjs');
7
- require('./chunk-UCXQ4U7P.cjs');
8
- require('./chunk-4VYDQ3VF.cjs');
9
- require('./chunk-RKKRSBX3.cjs');
10
-
11
-
12
- exports.DualModePrompt = _chunkBSKF4J2Ecjs.DualModePrompt;
@@ -1,12 +0,0 @@
1
- import {
2
- DualModePrompt
3
- } from "./chunk-2KRDL5AW.js";
4
- import "./chunk-YEAWWJSJ.js";
5
- import "./chunk-YTDNCBQW.js";
6
- import "./chunk-UOPTKXLE.js";
7
- import "./chunk-M4WTTARE.js";
8
- import "./chunk-EKXZXQJB.js";
9
- import "./chunk-5XC6ZMS5.js";
10
- export {
11
- DualModePrompt
12
- };
@@ -1,8 +0,0 @@
1
- import {
2
- Exit
3
- } from "./chunk-E5YW5YQN.js";
4
- import "./chunk-EKXZXQJB.js";
5
- import "./chunk-5XC6ZMS5.js";
6
- export {
7
- Exit
8
- };
@@ -1,8 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkF4OZHUMScjs = require('./chunk-F4OZHUMS.cjs');
4
- require('./chunk-4VYDQ3VF.cjs');
5
- require('./chunk-RKKRSBX3.cjs');
6
-
7
-
8
- exports.Exit = _chunkF4OZHUMScjs.Exit;
@@ -1,13 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
- var _chunk54G63644cjs = require('./chunk-54G63644.cjs');
7
- require('./chunk-RKKRSBX3.cjs');
8
-
9
-
10
-
11
-
12
-
13
- exports.Jsx = _chunk54G63644cjs.Jsx; exports.createJsxComponent = _chunk54G63644cjs.createJsxComponent; exports.isAnyJsxComponent = _chunk54G63644cjs.isAnyJsxComponent; exports.isJsxComponent = _chunk54G63644cjs.isJsxComponent;
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkQOM7BK7Ucjs = require('./chunk-QOM7BK7U.cjs');
4
- require('./chunk-BLB44ZDU.cjs');
5
- require('./chunk-PK72FAKD.cjs');
6
- require('./chunk-KIN7Y247.cjs');
7
- require('./chunk-4VYDQ3VF.cjs');
8
- require('./chunk-RKKRSBX3.cjs');
9
-
10
-
11
- exports.Tool = _chunkQOM7BK7Ucjs.Tool;
@@ -1,11 +0,0 @@
1
- import {
2
- Tool
3
- } from "./chunk-UI6J4WKQ.js";
4
- import "./chunk-LR6KTFHO.js";
5
- import "./chunk-WSVDMGMR.js";
6
- import "./chunk-YEAWWJSJ.js";
7
- import "./chunk-EKXZXQJB.js";
8
- import "./chunk-5XC6ZMS5.js";
9
- export {
10
- Tool
11
- };
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkUCXQ4U7Pcjs = require('./chunk-UCXQ4U7P.cjs');
5
- require('./chunk-4VYDQ3VF.cjs');
6
- require('./chunk-RKKRSBX3.cjs');
7
-
8
-
9
-
10
- exports.truncateWrappedContent = _chunkUCXQ4U7Pcjs.truncateWrappedContent; exports.wrapContent = _chunkUCXQ4U7Pcjs.wrapContent;
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkBLB44ZDUcjs = require('./chunk-BLB44ZDU.cjs');
4
- require('./chunk-PK72FAKD.cjs');
5
- require('./chunk-KIN7Y247.cjs');
6
- require('./chunk-4VYDQ3VF.cjs');
7
- require('./chunk-RKKRSBX3.cjs');
8
-
9
-
10
- exports.getTypings = _chunkBLB44ZDUcjs.getTypings;
@@ -1,39 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
- var _chunk4VYDQ3VFcjs = require('./chunk-4VYDQ3VF.cjs');
20
- require('./chunk-RKKRSBX3.cjs');
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
- exports.Identifier = _chunk4VYDQ3VFcjs.Identifier; exports.Tokens = _chunk4VYDQ3VFcjs.Tokens; exports.awaitObject = _chunk4VYDQ3VFcjs.awaitObject; exports.convertObjectToZuiLiterals = _chunk4VYDQ3VFcjs.convertObjectToZuiLiterals; exports.escapeString = _chunk4VYDQ3VFcjs.escapeString; exports.getMultilineComment = _chunk4VYDQ3VFcjs.getMultilineComment; exports.getTokenizer = _chunk4VYDQ3VFcjs.getTokenizer; exports.init = _chunk4VYDQ3VFcjs.init; exports.isJsonSchema = _chunk4VYDQ3VFcjs.isJsonSchema; exports.isValidIdentifier = _chunk4VYDQ3VFcjs.isValidIdentifier; exports.isValidMessageName = _chunk4VYDQ3VFcjs.isValidMessageName; exports.isValidSchema = _chunk4VYDQ3VFcjs.isValidSchema; exports.isZuiSchema = _chunk4VYDQ3VFcjs.isZuiSchema; exports.stripInvalidIdentifiers = _chunk4VYDQ3VFcjs.stripInvalidIdentifiers; exports.toPropertyKey = _chunk4VYDQ3VFcjs.toPropertyKey; exports.toValidFunctionName = _chunk4VYDQ3VFcjs.toValidFunctionName; exports.toValidObjectName = _chunk4VYDQ3VFcjs.toValidObjectName;
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunk5CXOW4DCcjs = require('./chunk-5CXOW4DC.cjs');
4
- require('./chunk-PK72FAKD.cjs');
5
- require('./chunk-KIN7Y247.cjs');
6
- require('./chunk-54G63644.cjs');
7
- require('./chunk-RKKRSBX3.cjs');
8
-
9
-
10
- exports.runAsyncFunction = _chunk5CXOW4DCcjs.runAsyncFunction;
package/dist/vm.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * LLMz VM Implementation
3
- *
4
- * Supports two execution drivers:
5
- * 1. QuickJS (quickjs-emscripten) - Sandboxed execution with memory limits and timeout
6
- * 2. Node (native) - Direct execution without sandbox, for environments where QuickJS is not available
7
- */
8
- import { Trace, VMExecutionResult } from './types.js';
9
- export declare function runAsyncFunction(context: any, code: string, traces?: Trace[], signal?: AbortSignal | null, timeout?: number): Promise<VMExecutionResult>;