llmz 0.0.83 → 0.0.85
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.
- package/dist/{chunk-VDTORFBP.js → chunk-2XSXXGXJ.js} +4 -4
- package/dist/{chunk-I2CZYEMH.js → chunk-EADBCAE7.js} +2 -2
- package/dist/{chunk-RLUTWFAA.cjs → chunk-EC2I4U4G.cjs} +6 -6
- package/dist/{chunk-MM2FLD3J.js → chunk-GEN6TAXY.js} +8 -16
- package/dist/{chunk-6KR6VRA6.cjs → chunk-GFSUTNRM.cjs} +9 -17
- package/dist/{chunk-52QTFQOB.cjs → chunk-H3PZFBJL.cjs} +60 -14
- package/dist/{chunk-73XYX76S.cjs → chunk-KY27DGTG.cjs} +14 -14
- package/dist/{chunk-YCLKXXSF.cjs → chunk-N3XPJTPE.cjs} +18 -18
- package/dist/{chunk-NWTG73QR.cjs → chunk-NFZXJRXS.cjs} +3 -48
- package/dist/{chunk-NPVV3PHY.js → chunk-PASYUKW4.js} +1 -1
- package/dist/{chunk-VLJA22PB.js → chunk-TRWUQSEK.js} +1 -1
- package/dist/{chunk-5Z2SJOGS.js → chunk-YTFNFSDT.js} +65 -19
- package/dist/{chunk-5MAFEI2A.js → chunk-ZHHB3FT4.js} +1 -46
- package/dist/{chunk-NQBIU5VM.cjs → chunk-ZVSO527D.cjs} +25 -25
- package/dist/convert.d.ts +11 -0
- package/dist/{dual-modes-VDFZH4YM.js → dual-modes-5NJMZJTA.js} +3 -3
- package/dist/{dual-modes-E5HGE35E.cjs → dual-modes-WA5TPGJR.cjs} +4 -4
- package/dist/{execute-CJVHUFYI.js → execute-2T75URIX.js} +7 -7
- package/dist/{execute-R6R3A42S.cjs → execute-I53OOORH.cjs} +30 -30
- package/dist/{exit-GKF4EEMZ.js → exit-7NHSUR3V.js} +2 -2
- package/dist/exit-V3ORIN65.cjs +8 -0
- package/dist/index.cjs +33 -33
- package/dist/index.js +16 -16
- package/dist/{tool-4VK7TZV2.cjs → tool-4OPM7QRM.cjs} +4 -4
- package/dist/{tool-JZP3UN2F.js → tool-HXXQMDA3.js} +3 -3
- package/dist/truncator-ZN7X6OMF.cjs +10 -0
- package/dist/{truncator-IIRX3MB2.js → truncator-ZQYBTVCJ.js} +2 -2
- package/dist/{typings-SHVPZ5AR.cjs → typings-QW4427V7.cjs} +3 -3
- package/dist/{typings-SKZSSL2M.js → typings-YD2WAQ4A.js} +2 -2
- package/dist/utils-NQSM5FBL.cjs +39 -0
- package/dist/{utils-SYJGSVFW.js → utils-RKUVYFTJ.js} +1 -3
- package/dist/utils.d.ts +1 -5
- package/package.json +2 -2
- package/dist/exit-VZASQELZ.cjs +0 -8
- package/dist/truncator-NWENJXMR.cjs +0 -10
- package/dist/utils-6MFSS4AT.cjs +0 -41
|
@@ -2,7 +2,6 @@ import {
|
|
|
2
2
|
Identifier,
|
|
3
3
|
Tokens,
|
|
4
4
|
awaitObject,
|
|
5
|
-
convertObjectToZuiLiterals,
|
|
6
5
|
escapeString,
|
|
7
6
|
getErrorMessage,
|
|
8
7
|
getMultilineComment,
|
|
@@ -17,13 +16,12 @@ import {
|
|
|
17
16
|
toPropertyKey,
|
|
18
17
|
toValidFunctionName,
|
|
19
18
|
toValidObjectName
|
|
20
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZHHB3FT4.js";
|
|
21
20
|
import "./chunk-34GJUS6U.js";
|
|
22
21
|
export {
|
|
23
22
|
Identifier,
|
|
24
23
|
Tokens,
|
|
25
24
|
awaitObject,
|
|
26
|
-
convertObjectToZuiLiterals,
|
|
27
25
|
escapeString,
|
|
28
26
|
getErrorMessage,
|
|
29
27
|
getMultilineComment,
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextTokenizer } from '@bpinternal/thicktoken';
|
|
1
|
+
import { TextTokenizer } from '@bpinternal/thicktoken/micro';
|
|
2
2
|
import { z } from '@bpinternal/zui';
|
|
3
3
|
import { JSONSchema7 } from 'json-schema';
|
|
4
4
|
export declare const init: () => Promise<void>;
|
|
@@ -12,10 +12,6 @@ export declare const toValidFunctionName: (str: string) => string;
|
|
|
12
12
|
export declare const awaitObject: <T extends {}>(obj: T) => Promise<T>;
|
|
13
13
|
export declare const toValidObjectName: (str: string) => string;
|
|
14
14
|
export declare const stripInvalidIdentifiers: (object: unknown) => any;
|
|
15
|
-
/**
|
|
16
|
-
* Transforms a Zui schema to narrow it down to literal values when they are manually provided by the user
|
|
17
|
-
*/
|
|
18
|
-
export declare const convertObjectToZuiLiterals: (obj: unknown, nested?: boolean) => any;
|
|
19
15
|
export declare const isValidSchema: (schema: JSONSchema7) => boolean;
|
|
20
16
|
export declare function isZuiSchema(schema: unknown): schema is z.ZodSchema;
|
|
21
17
|
export declare function isJsonSchema(schema: unknown): schema is JSONSchema7;
|
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.
|
|
5
|
+
"version": "0.0.85",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
8
8
|
"module": "./dist/index.js",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@botpress/client": "1.46.0",
|
|
75
75
|
"@botpress/cognitive": "0.6.1",
|
|
76
|
-
"@bpinternal/thicktoken": "^
|
|
76
|
+
"@bpinternal/thicktoken": "^3.0.0",
|
|
77
77
|
"@bpinternal/zui": "^2.3.0"
|
|
78
78
|
},
|
|
79
79
|
"dependenciesMeta": {
|
package/dist/exit-VZASQELZ.cjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunk6KR6VRA6cjs = require('./chunk-6KR6VRA6.cjs');
|
|
5
|
-
require('./chunk-NWTG73QR.cjs');
|
|
6
|
-
require('./chunk-HC2QZTVT.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.truncateWrappedContent = _chunk6KR6VRA6cjs.truncateWrappedContent; exports.wrapContent = _chunk6KR6VRA6cjs.wrapContent;
|
package/dist/utils-6MFSS4AT.cjs
DELETED
|
@@ -1,41 +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
|
-
|
|
20
|
-
var _chunkNWTG73QRcjs = require('./chunk-NWTG73QR.cjs');
|
|
21
|
-
require('./chunk-HC2QZTVT.cjs');
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
exports.Identifier = _chunkNWTG73QRcjs.Identifier; exports.Tokens = _chunkNWTG73QRcjs.Tokens; exports.awaitObject = _chunkNWTG73QRcjs.awaitObject; exports.convertObjectToZuiLiterals = _chunkNWTG73QRcjs.convertObjectToZuiLiterals; exports.escapeString = _chunkNWTG73QRcjs.escapeString; exports.getErrorMessage = _chunkNWTG73QRcjs.getErrorMessage; exports.getMultilineComment = _chunkNWTG73QRcjs.getMultilineComment; exports.getTokenizer = _chunkNWTG73QRcjs.getTokenizer; exports.init = _chunkNWTG73QRcjs.init; exports.isJsonSchema = _chunkNWTG73QRcjs.isJsonSchema; exports.isValidIdentifier = _chunkNWTG73QRcjs.isValidIdentifier; exports.isValidMessageName = _chunkNWTG73QRcjs.isValidMessageName; exports.isValidSchema = _chunkNWTG73QRcjs.isValidSchema; exports.isZuiSchema = _chunkNWTG73QRcjs.isZuiSchema; exports.stripInvalidIdentifiers = _chunkNWTG73QRcjs.stripInvalidIdentifiers; exports.toPropertyKey = _chunkNWTG73QRcjs.toPropertyKey; exports.toValidFunctionName = _chunkNWTG73QRcjs.toValidFunctionName; exports.toValidObjectName = _chunkNWTG73QRcjs.toValidObjectName;
|