llmz 0.0.43 → 0.0.44
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-KED57HR5.cjs → chunk-2NEOPXCS.cjs} +14 -14
- package/dist/{chunk-WHNOR4ZU.cjs → chunk-4VYDQ3VF.cjs} +7 -7
- package/dist/{chunk-KMZDFWYZ.cjs → chunk-54G63644.cjs} +3 -3
- package/dist/{chunk-7WRN4E42.js → chunk-5XC6ZMS5.js} +197 -18
- package/dist/{chunk-G3LSBWJT.js → chunk-5YXGNMER.js} +2 -2
- package/dist/{chunk-TOLKC56V.js → chunk-7HBJXJ6W.js} +6 -6
- package/dist/{chunk-VPTFUOIK.js → chunk-E5YW5YQN.js} +2 -2
- package/dist/{chunk-ZORRILUV.js → chunk-EKXZXQJB.js} +1 -1
- package/dist/{chunk-3G3BS5IA.cjs → chunk-F4OZHUMS.cjs} +9 -9
- package/dist/{chunk-GZPN7RGH.cjs → chunk-I3WYQ7CA.cjs} +2 -2
- package/dist/{chunk-4NQXHRJ2.cjs → chunk-K4IVNLQG.cjs} +28 -28
- package/dist/{chunk-6PIIXJNI.js → chunk-L2ZDZKCB.js} +3 -3
- package/dist/{chunk-UQOBUJIQ.cjs → chunk-RKKRSBX3.cjs} +197 -18
- package/dist/{chunk-5FWOHMO4.cjs → chunk-RMIS25AA.cjs} +25 -25
- package/dist/{chunk-ZEGD4BQJ.cjs → chunk-SJWWH25O.cjs} +59 -42
- package/dist/{chunk-RUOMTFUI.cjs → chunk-SZLX27VX.cjs} +18 -18
- package/dist/{chunk-QY2TRWGK.cjs → chunk-TLOQBZKW.cjs} +3 -3
- package/dist/{chunk-HA52ORZL.js → chunk-UOENUUUV.js} +1 -1
- package/dist/{chunk-ORQP26SZ.js → chunk-UOPTKXLE.js} +1 -1
- package/dist/{chunk-3JYCCI4S.js → chunk-VWQUGDHE.js} +1 -1
- package/dist/{chunk-B42FGPCX.js → chunk-YV5N57D3.js} +1 -1
- package/dist/{chunk-V6VEBUMU.js → chunk-ZSZTPETU.js} +24 -7
- package/dist/{component-EOMTLA64.js → component-GNYIA77X.js} +3 -3
- package/dist/component-J72CVOKY.cjs +18 -0
- package/dist/dual-modes-5CQEVSIG.js +12 -0
- package/dist/dual-modes-A2JSHXJU.cjs +12 -0
- package/dist/exit-56DISPLS.js +8 -0
- package/dist/exit-OOGJ3TAS.cjs +8 -0
- package/dist/index.cjs +48 -48
- package/dist/index.js +21 -21
- package/dist/jsx-ENFGHP6S.cjs +13 -0
- package/dist/{jsx-AEHVFB3L.js → jsx-PCXQVMLU.js} +2 -2
- package/dist/{llmz-O536FBHV.js → llmz-MIV5CZU5.js} +11 -11
- package/dist/{llmz-ACSZOYZP.cjs → llmz-TR7SDCOC.cjs} +29 -29
- package/dist/tool-5JXTEQNW.js +11 -0
- package/dist/tool-NAGC3ZMN.cjs +11 -0
- package/dist/truncator-KI6BAAIH.cjs +10 -0
- package/dist/{truncator-BSP6PQPC.js → truncator-WDLDMAE7.js} +3 -3
- package/dist/typings-SNGR4WYT.cjs +10 -0
- package/dist/{typings-AQGJAMVH.js → typings-ZO63Z4TF.js} +3 -3
- package/dist/utils-BZUEJT4W.cjs +39 -0
- package/dist/{utils-RQHQ2KOG.js → utils-D3J443FA.js} +2 -2
- package/dist/{vm-Y3WY2627.js → vm-5IM44JHK.js} +3 -3
- package/dist/vm-VYYSPUQ5.cjs +10 -0
- package/package.json +1 -1
- package/dist/component-AAEMNCHB.cjs +0 -18
- package/dist/dual-modes-KBMP2AAH.js +0 -12
- package/dist/dual-modes-WCJ3HAB3.cjs +0 -12
- package/dist/exit-XAYKJ6TR.cjs +0 -8
- package/dist/exit-YLO7BY7Z.js +0 -8
- package/dist/jsx-AJAXBWFE.cjs +0 -13
- package/dist/tool-M2N7SKNZ.js +0 -11
- package/dist/tool-MRVFOE5N.cjs +0 -11
- package/dist/truncator-W3NXBLYJ.cjs +0 -10
- package/dist/typings-7C2RXO75.cjs +0 -10
- package/dist/utils-L5QAQXV2.cjs +0 -39
- package/dist/vm-VFORKC54.cjs +0 -10
|
@@ -3,27 +3,31 @@ import {
|
|
|
3
3
|
} from "./chunk-YEAWWJSJ.js";
|
|
4
4
|
import {
|
|
5
5
|
getComponentReference
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UOENUUUV.js";
|
|
7
7
|
import {
|
|
8
8
|
wrapContent
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VWQUGDHE.js";
|
|
10
10
|
import {
|
|
11
11
|
escapeString,
|
|
12
12
|
getTokenizer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EKXZXQJB.js";
|
|
14
14
|
import {
|
|
15
|
-
chain_default,
|
|
16
15
|
countBy_default,
|
|
17
16
|
filter_default,
|
|
17
|
+
flow_default,
|
|
18
|
+
fromPairs_default,
|
|
18
19
|
isEmpty_default,
|
|
19
20
|
isEqual_default,
|
|
20
21
|
isNil_default,
|
|
21
22
|
isPlainObject_default,
|
|
22
23
|
mapKeys_default,
|
|
24
|
+
map_default,
|
|
23
25
|
orderBy_default,
|
|
26
|
+
take_default,
|
|
27
|
+
toPairs_default,
|
|
24
28
|
uniqWith_default,
|
|
25
29
|
uniq_default
|
|
26
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-5XC6ZMS5.js";
|
|
27
31
|
|
|
28
32
|
// src/inspect.ts
|
|
29
33
|
import bytes from "bytes";
|
|
@@ -260,7 +264,14 @@ function previewObject(obj, options) {
|
|
|
260
264
|
lines.push("// Analysis Summary");
|
|
261
265
|
lines.push(SUBTITLE_LN);
|
|
262
266
|
const entries = Object.entries(obj);
|
|
263
|
-
const typesCount =
|
|
267
|
+
const typesCount = flow_default(
|
|
268
|
+
(e) => countBy_default(e, ([, value]) => extractType(value, false)),
|
|
269
|
+
toPairs_default,
|
|
270
|
+
(p) => orderBy_default(p, ([, count]) => count, "desc"),
|
|
271
|
+
(p) => p.filter(([, count]) => count > 1),
|
|
272
|
+
(p) => p.slice(0, 3),
|
|
273
|
+
fromPairs_default
|
|
274
|
+
)(entries);
|
|
264
275
|
const keys = Object.keys(obj);
|
|
265
276
|
const uniqueEntries = uniq_default(Object.values(obj));
|
|
266
277
|
const nilValues = filter_default(entries, ([, value]) => isNil_default(value)).length;
|
|
@@ -300,7 +311,13 @@ function previewLongText(text, length = LONG_TEXT_LENGTH) {
|
|
|
300
311
|
const wordCount = words.length;
|
|
301
312
|
const uniqueWords = uniq_default(words).length;
|
|
302
313
|
const wordFrequency = countBy_default(words);
|
|
303
|
-
const mostCommonWords =
|
|
314
|
+
const mostCommonWords = flow_default(
|
|
315
|
+
toPairs_default,
|
|
316
|
+
(p) => orderBy_default(p, ([, count]) => count, "desc"),
|
|
317
|
+
(p) => filter_default(p, ([, count]) => count > 1),
|
|
318
|
+
(p) => take_default(p, 20),
|
|
319
|
+
(p) => map_default(p, ([word, count]) => `"${word}" ${count} times`)
|
|
320
|
+
)(wordFrequency).join("\n" + " ".repeat(22));
|
|
304
321
|
const urls = text.match(urlPattern) || [];
|
|
305
322
|
const emails = text.match(emailPattern) || [];
|
|
306
323
|
if (urls.length > 0) {
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
isAnyComponent,
|
|
6
6
|
isComponent,
|
|
7
7
|
renderToTsx
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-UOENUUUV.js";
|
|
9
|
+
import "./chunk-UOPTKXLE.js";
|
|
10
|
+
import "./chunk-5XC6ZMS5.js";
|
|
11
11
|
export {
|
|
12
12
|
Component,
|
|
13
13
|
assertValidComponent,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkTLOQBZKWcjs = require('./chunk-TLOQBZKW.cjs');
|
|
9
|
+
require('./chunk-54G63644.cjs');
|
|
10
|
+
require('./chunk-RKKRSBX3.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.Component = _chunkTLOQBZKWcjs.Component; exports.assertValidComponent = _chunkTLOQBZKWcjs.assertValidComponent; exports.getComponentReference = _chunkTLOQBZKWcjs.getComponentReference; exports.isAnyComponent = _chunkTLOQBZKWcjs.isAnyComponent; exports.isComponent = _chunkTLOQBZKWcjs.isComponent; exports.renderToTsx = _chunkTLOQBZKWcjs.renderToTsx;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DualModePrompt
|
|
3
|
+
} from "./chunk-ZSZTPETU.js";
|
|
4
|
+
import "./chunk-YEAWWJSJ.js";
|
|
5
|
+
import "./chunk-UOENUUUV.js";
|
|
6
|
+
import "./chunk-UOPTKXLE.js";
|
|
7
|
+
import "./chunk-VWQUGDHE.js";
|
|
8
|
+
import "./chunk-EKXZXQJB.js";
|
|
9
|
+
import "./chunk-5XC6ZMS5.js";
|
|
10
|
+
export {
|
|
11
|
+
DualModePrompt
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkSJWWH25Ocjs = require('./chunk-SJWWH25O.cjs');
|
|
4
|
+
require('./chunk-KIN7Y247.cjs');
|
|
5
|
+
require('./chunk-TLOQBZKW.cjs');
|
|
6
|
+
require('./chunk-54G63644.cjs');
|
|
7
|
+
require('./chunk-I3WYQ7CA.cjs');
|
|
8
|
+
require('./chunk-4VYDQ3VF.cjs');
|
|
9
|
+
require('./chunk-RKKRSBX3.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.DualModePrompt = _chunkSJWWH25Ocjs.DualModePrompt;
|
package/dist/index.cjs
CHANGED
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
12
|
+
var _chunkK4IVNLQGcjs = require('./chunk-K4IVNLQG.cjs');
|
|
13
|
+
require('./chunk-SJWWH25O.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkSZLX27VXcjs = require('./chunk-SZLX27VX.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk2NEOPXCScjs = require('./chunk-2NEOPXCS.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -27,30 +27,30 @@ var _chunkPK72FAKDcjs = require('./chunk-PK72FAKD.cjs');
|
|
|
27
27
|
require('./chunk-KIN7Y247.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkF4OZHUMScjs = require('./chunk-F4OZHUMS.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
38
|
-
require('./chunk-
|
|
37
|
+
var _chunkTLOQBZKWcjs = require('./chunk-TLOQBZKW.cjs');
|
|
38
|
+
require('./chunk-54G63644.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkI3WYQ7CAcjs = require('./chunk-I3WYQ7CA.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunk4VYDQ3VFcjs = require('./chunk-4VYDQ3VF.cjs');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var
|
|
53
|
+
var _chunkRKKRSBX3cjs = require('./chunk-RKKRSBX3.cjs');
|
|
54
54
|
|
|
55
55
|
// src/objects.ts
|
|
56
56
|
var _zui = require('@bpinternal/zui');
|
|
@@ -62,7 +62,7 @@ var _traverse = require('@babel/traverse'); var _traverse2 = _interopRequireDefa
|
|
|
62
62
|
var _types = require('@babel/types'); var t = _interopRequireWildcard(_types);
|
|
63
63
|
var traverse = _traverse2.default;
|
|
64
64
|
function getTypingsWithoutComments(type) {
|
|
65
|
-
const typeClone =
|
|
65
|
+
const typeClone = _chunkRKKRSBX3cjs.cloneDeep_default.call(void 0, type);
|
|
66
66
|
removeBabelComments(typeClone);
|
|
67
67
|
return new (0, _generator.CodeGenerator)(typeClone, { comments: false }).generate().code;
|
|
68
68
|
}
|
|
@@ -130,7 +130,7 @@ function extractAndHoistTypes(ast) {
|
|
|
130
130
|
}
|
|
131
131
|
currPath = parentPath;
|
|
132
132
|
}
|
|
133
|
-
return parts.size ? Array.from(parts).reverse().map(
|
|
133
|
+
return parts.size ? Array.from(parts).reverse().map(_chunkRKKRSBX3cjs.upperFirst_default) : ["UnnamedType"];
|
|
134
134
|
}
|
|
135
135
|
function generateTypeName(path) {
|
|
136
136
|
return getTypePaths(path).join("");
|
|
@@ -302,7 +302,7 @@ async function hoistTypings(code, formatOptions) {
|
|
|
302
302
|
break;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
return
|
|
305
|
+
return _chunk2NEOPXCScjs.formatTypings.call(void 0, code, formatOptions);
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
// src/objects.ts
|
|
@@ -371,7 +371,7 @@ var ObjectInstance = class {
|
|
|
371
371
|
*/
|
|
372
372
|
constructor(props) {
|
|
373
373
|
var _a;
|
|
374
|
-
if (!
|
|
374
|
+
if (!_chunk4VYDQ3VFcjs.isValidIdentifier.call(void 0, props.name)) {
|
|
375
375
|
throw new Error(
|
|
376
376
|
`Invalid name for tool ${props.name}. A tool name must start with a letter and contain only letters, numbers, and underscores. It must be 1-50 characters long.`
|
|
377
377
|
);
|
|
@@ -404,7 +404,7 @@ var ObjectInstance = class {
|
|
|
404
404
|
if (props.properties.filter((p) => p.name === prop.name).length > 1) {
|
|
405
405
|
throw new Error(`Duplicate property name "${prop.name}" in tool ${props.name}`);
|
|
406
406
|
}
|
|
407
|
-
if (!
|
|
407
|
+
if (!_chunk4VYDQ3VFcjs.isValidIdentifier.call(void 0, prop.name)) {
|
|
408
408
|
throw new Error(
|
|
409
409
|
`Invalid name for property ${prop.name}. A property name must start with a letter and contain only letters, numbers, and underscores. It must be 1-50 characters long.`
|
|
410
410
|
);
|
|
@@ -428,7 +428,7 @@ var ObjectInstance = class {
|
|
|
428
428
|
this.description = props.description;
|
|
429
429
|
this.metadata = _nullishCoalesce(props.metadata, () => ( {}));
|
|
430
430
|
this.properties = props.properties;
|
|
431
|
-
this.tools =
|
|
431
|
+
this.tools = _chunkSZLX27VXcjs.Tool.withUniqueNames(_nullishCoalesce(props.tools, () => ( [])));
|
|
432
432
|
}
|
|
433
433
|
/**
|
|
434
434
|
* Generates TypeScript namespace declarations for this object.
|
|
@@ -505,11 +505,11 @@ function getObjectTypings(obj) {
|
|
|
505
505
|
for (const prop of _nullishCoalesce(obj.properties, () => ( []))) {
|
|
506
506
|
const description = _nullishCoalesce(prop.description, () => ( ""));
|
|
507
507
|
if (description == null ? void 0 : description.trim().length) {
|
|
508
|
-
typings.push(
|
|
508
|
+
typings.push(_chunk4VYDQ3VFcjs.getMultilineComment.call(void 0, description));
|
|
509
509
|
}
|
|
510
510
|
let type = "unknown";
|
|
511
511
|
if (prop.type) {
|
|
512
|
-
type = await
|
|
512
|
+
type = await _chunk2NEOPXCScjs.getTypings.call(void 0, prop.type, {});
|
|
513
513
|
} else if (prop.value !== void 0) {
|
|
514
514
|
type = typeof prop.value;
|
|
515
515
|
}
|
|
@@ -529,7 +529,7 @@ function getObjectTypings(obj) {
|
|
|
529
529
|
typings.push("");
|
|
530
530
|
for (const tool of obj.tools) {
|
|
531
531
|
const fnType = _zui.z.function(tool.zInput, tool.zOutput).title(tool.name).describe(_nullishCoalesce(tool.description, () => ( "")));
|
|
532
|
-
let temp = await
|
|
532
|
+
let temp = await _chunk2NEOPXCScjs.getTypings.call(void 0, fnType, {
|
|
533
533
|
declaration: true
|
|
534
534
|
});
|
|
535
535
|
temp = temp.replace("declare function ", "function ");
|
|
@@ -550,9 +550,9 @@ function getObjectTypings(obj) {
|
|
|
550
550
|
typings.push("}" + closingBracket);
|
|
551
551
|
let header = "";
|
|
552
552
|
if ((_a = obj.description) == null ? void 0 : _a.trim().length) {
|
|
553
|
-
header =
|
|
553
|
+
header = _chunk4VYDQ3VFcjs.getMultilineComment.call(void 0, obj.description);
|
|
554
554
|
}
|
|
555
|
-
return
|
|
555
|
+
return _chunk2NEOPXCScjs.formatTypings.call(void 0,
|
|
556
556
|
`${header}
|
|
557
557
|
export namespace ${obj.name} {
|
|
558
558
|
${body}
|
|
@@ -583,7 +583,7 @@ function getObjectTypings(obj) {
|
|
|
583
583
|
}
|
|
584
584
|
function embedPropertyValue(property) {
|
|
585
585
|
if (typeof property.value === "string") {
|
|
586
|
-
return
|
|
586
|
+
return _chunk4VYDQ3VFcjs.escapeString.call(void 0, property.value);
|
|
587
587
|
}
|
|
588
588
|
if (Number.isNaN(property.value)) {
|
|
589
589
|
return "NaN";
|
|
@@ -601,7 +601,7 @@ function embedPropertyValue(property) {
|
|
|
601
601
|
return `new Date('${property.value.toISOString()}')`;
|
|
602
602
|
}
|
|
603
603
|
if (property.value instanceof RegExp) {
|
|
604
|
-
return `new RegExp(${
|
|
604
|
+
return `new RegExp(${_chunk4VYDQ3VFcjs.escapeString.call(void 0, property.value.source)}, ${_chunk4VYDQ3VFcjs.escapeString.call(void 0, property.value.flags)})`;
|
|
605
605
|
}
|
|
606
606
|
if (property.value === null) {
|
|
607
607
|
return "null";
|
|
@@ -619,7 +619,7 @@ function embedPropertyValue(property) {
|
|
|
619
619
|
return `${property.value}n`;
|
|
620
620
|
}
|
|
621
621
|
if (property.value instanceof Error) {
|
|
622
|
-
return `Error(${
|
|
622
|
+
return `Error(${_chunk4VYDQ3VFcjs.escapeString.call(void 0, property.value.message)})`;
|
|
623
623
|
}
|
|
624
624
|
if (property.value instanceof Map) {
|
|
625
625
|
return `new Map(${JSON.stringify(Array.from(property.value.entries()))})`;
|
|
@@ -766,7 +766,7 @@ var CitationsManager = (_class = class {constructor() { _class.prototype.__init.
|
|
|
766
766
|
|
|
767
767
|
// src/component.default.ts
|
|
768
768
|
|
|
769
|
-
var Button = new (0,
|
|
769
|
+
var Button = new (0, _chunkTLOQBZKWcjs.Component)({
|
|
770
770
|
type: "leaf",
|
|
771
771
|
description: "A button component that can perform actions when clicked",
|
|
772
772
|
name: "Button",
|
|
@@ -798,7 +798,7 @@ var Button = new (0, _chunkQY2TRWGKcjs.Component)({
|
|
|
798
798
|
})
|
|
799
799
|
}
|
|
800
800
|
});
|
|
801
|
-
var Image = new (0,
|
|
801
|
+
var Image = new (0, _chunkTLOQBZKWcjs.Component)({
|
|
802
802
|
type: "leaf",
|
|
803
803
|
name: "Image",
|
|
804
804
|
description: "Displays an image from a URL.",
|
|
@@ -820,7 +820,7 @@ var Image = new (0, _chunkQY2TRWGKcjs.Component)({
|
|
|
820
820
|
})
|
|
821
821
|
}
|
|
822
822
|
});
|
|
823
|
-
var File = new (0,
|
|
823
|
+
var File = new (0, _chunkTLOQBZKWcjs.Component)({
|
|
824
824
|
type: "leaf",
|
|
825
825
|
name: "File",
|
|
826
826
|
description: "Sends a downloadable file to the user.",
|
|
@@ -842,7 +842,7 @@ var File = new (0, _chunkQY2TRWGKcjs.Component)({
|
|
|
842
842
|
})
|
|
843
843
|
}
|
|
844
844
|
});
|
|
845
|
-
var Video = new (0,
|
|
845
|
+
var Video = new (0, _chunkTLOQBZKWcjs.Component)({
|
|
846
846
|
type: "leaf",
|
|
847
847
|
name: "Video",
|
|
848
848
|
description: "Embeds a video from a URL.",
|
|
@@ -864,7 +864,7 @@ var Video = new (0, _chunkQY2TRWGKcjs.Component)({
|
|
|
864
864
|
})
|
|
865
865
|
}
|
|
866
866
|
});
|
|
867
|
-
var Audio = new (0,
|
|
867
|
+
var Audio = new (0, _chunkTLOQBZKWcjs.Component)({
|
|
868
868
|
type: "leaf",
|
|
869
869
|
name: "Audio",
|
|
870
870
|
description: "Plays an audio clip from a URL.",
|
|
@@ -886,7 +886,7 @@ var Audio = new (0, _chunkQY2TRWGKcjs.Component)({
|
|
|
886
886
|
})
|
|
887
887
|
}
|
|
888
888
|
});
|
|
889
|
-
var Card = new (0,
|
|
889
|
+
var Card = new (0, _chunkTLOQBZKWcjs.Component)({
|
|
890
890
|
type: "container",
|
|
891
891
|
name: "Card",
|
|
892
892
|
description: "A visual card component that can include an image and buttons.",
|
|
@@ -922,7 +922,7 @@ var Card = new (0, _chunkQY2TRWGKcjs.Component)({
|
|
|
922
922
|
]
|
|
923
923
|
}
|
|
924
924
|
});
|
|
925
|
-
var Carousel = new (0,
|
|
925
|
+
var Carousel = new (0, _chunkTLOQBZKWcjs.Component)({
|
|
926
926
|
type: "container",
|
|
927
927
|
name: "Carousel",
|
|
928
928
|
description: "A virtual container for displaying 1 to 10 Card components as a carousel.",
|
|
@@ -956,7 +956,7 @@ var Carousel = new (0, _chunkQY2TRWGKcjs.Component)({
|
|
|
956
956
|
]
|
|
957
957
|
}
|
|
958
958
|
});
|
|
959
|
-
var Text = new (0,
|
|
959
|
+
var Text = new (0, _chunkTLOQBZKWcjs.Component)({
|
|
960
960
|
type: "default",
|
|
961
961
|
name: "Message",
|
|
962
962
|
aliases: ["Text", "Markdown"],
|
|
@@ -1106,26 +1106,26 @@ var Chat = class {
|
|
|
1106
1106
|
|
|
1107
1107
|
// src/index.ts
|
|
1108
1108
|
var utils = {
|
|
1109
|
-
toValidObjectName:
|
|
1110
|
-
toValidFunctionName:
|
|
1111
|
-
wrapContent:
|
|
1112
|
-
truncateWrappedContent:
|
|
1109
|
+
toValidObjectName: _chunk4VYDQ3VFcjs.toValidObjectName,
|
|
1110
|
+
toValidFunctionName: _chunk4VYDQ3VFcjs.toValidFunctionName,
|
|
1111
|
+
wrapContent: _chunkI3WYQ7CAcjs.wrapContent,
|
|
1112
|
+
truncateWrappedContent: _chunkI3WYQ7CAcjs.truncateWrappedContent
|
|
1113
1113
|
};
|
|
1114
1114
|
var execute = async (props) => {
|
|
1115
|
-
const { executeContext } = await Promise.resolve().then(() => _interopRequireWildcard(require("./llmz-
|
|
1115
|
+
const { executeContext } = await Promise.resolve().then(() => _interopRequireWildcard(require("./llmz-TR7SDCOC.cjs")));
|
|
1116
1116
|
return executeContext(props);
|
|
1117
1117
|
};
|
|
1118
1118
|
var init = async () => {
|
|
1119
|
-
await Promise.resolve().then(() => _interopRequireWildcard(require("./llmz-
|
|
1120
|
-
await Promise.resolve().then(() => _interopRequireWildcard(require("./component-
|
|
1121
|
-
await Promise.resolve().then(() => _interopRequireWildcard(require("./tool-
|
|
1122
|
-
await Promise.resolve().then(() => _interopRequireWildcard(require("./exit-
|
|
1123
|
-
await Promise.resolve().then(() => _interopRequireWildcard(require("./jsx-
|
|
1124
|
-
await Promise.resolve().then(() => _interopRequireWildcard(require("./vm-
|
|
1125
|
-
await Promise.resolve().then(() => _interopRequireWildcard(require("./utils-
|
|
1126
|
-
await Promise.resolve().then(() => _interopRequireWildcard(require("./truncator-
|
|
1127
|
-
await Promise.resolve().then(() => _interopRequireWildcard(require("./typings-
|
|
1128
|
-
await Promise.resolve().then(() => _interopRequireWildcard(require("./dual-modes-
|
|
1119
|
+
await Promise.resolve().then(() => _interopRequireWildcard(require("./llmz-TR7SDCOC.cjs")));
|
|
1120
|
+
await Promise.resolve().then(() => _interopRequireWildcard(require("./component-J72CVOKY.cjs")));
|
|
1121
|
+
await Promise.resolve().then(() => _interopRequireWildcard(require("./tool-NAGC3ZMN.cjs")));
|
|
1122
|
+
await Promise.resolve().then(() => _interopRequireWildcard(require("./exit-OOGJ3TAS.cjs")));
|
|
1123
|
+
await Promise.resolve().then(() => _interopRequireWildcard(require("./jsx-ENFGHP6S.cjs")));
|
|
1124
|
+
await Promise.resolve().then(() => _interopRequireWildcard(require("./vm-VYYSPUQ5.cjs")));
|
|
1125
|
+
await Promise.resolve().then(() => _interopRequireWildcard(require("./utils-BZUEJT4W.cjs")));
|
|
1126
|
+
await Promise.resolve().then(() => _interopRequireWildcard(require("./truncator-KI6BAAIH.cjs")));
|
|
1127
|
+
await Promise.resolve().then(() => _interopRequireWildcard(require("./typings-SNGR4WYT.cjs")));
|
|
1128
|
+
await Promise.resolve().then(() => _interopRequireWildcard(require("./dual-modes-A2JSHXJU.cjs")));
|
|
1129
1129
|
};
|
|
1130
1130
|
|
|
1131
1131
|
|
|
@@ -1155,4 +1155,4 @@ var init = async () => {
|
|
|
1155
1155
|
|
|
1156
1156
|
|
|
1157
1157
|
|
|
1158
|
-
exports.Chat = Chat; exports.CitationsManager = CitationsManager; exports.Component =
|
|
1158
|
+
exports.Chat = Chat; exports.CitationsManager = CitationsManager; exports.Component = _chunkTLOQBZKWcjs.Component; exports.DefaultComponents = DefaultComponents; exports.DefaultExit = _chunkK4IVNLQGcjs.DefaultExit; exports.ErrorExecutionResult = _chunkK4IVNLQGcjs.ErrorExecutionResult; exports.ExecutionResult = _chunkK4IVNLQGcjs.ExecutionResult; exports.Exit = _chunkF4OZHUMScjs.Exit; exports.ListenExit = _chunkK4IVNLQGcjs.ListenExit; exports.LoopExceededError = _chunkPK72FAKDcjs.LoopExceededError; exports.ObjectInstance = ObjectInstance; exports.PartialExecutionResult = _chunkK4IVNLQGcjs.PartialExecutionResult; exports.Snapshot = _chunkK4IVNLQGcjs.Snapshot; exports.SnapshotSignal = _chunkPK72FAKDcjs.SnapshotSignal; exports.SuccessExecutionResult = _chunkK4IVNLQGcjs.SuccessExecutionResult; exports.ThinkExit = _chunkK4IVNLQGcjs.ThinkExit; exports.ThinkSignal = _chunkPK72FAKDcjs.ThinkSignal; exports.Tool = _chunkSZLX27VXcjs.Tool; exports.assertValidComponent = _chunkTLOQBZKWcjs.assertValidComponent; exports.execute = execute; exports.getValue = _chunkK4IVNLQGcjs.getValue; exports.init = init; exports.isAnyComponent = _chunkTLOQBZKWcjs.isAnyComponent; exports.isComponent = _chunkTLOQBZKWcjs.isComponent; exports.parseExit = _chunkK4IVNLQGcjs.parseExit; exports.renderToTsx = _chunkTLOQBZKWcjs.renderToTsx; exports.utils = utils;
|
package/dist/index.js
CHANGED
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
ThinkExit,
|
|
10
10
|
getValue,
|
|
11
11
|
parseExit
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-7HBJXJ6W.js";
|
|
13
|
+
import "./chunk-ZSZTPETU.js";
|
|
14
14
|
import {
|
|
15
15
|
Tool
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-L2ZDZKCB.js";
|
|
17
17
|
import {
|
|
18
18
|
formatTypings,
|
|
19
19
|
getTypings
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YV5N57D3.js";
|
|
21
21
|
import {
|
|
22
22
|
CodeFormattingError,
|
|
23
23
|
LoopExceededError,
|
|
@@ -27,30 +27,30 @@ import {
|
|
|
27
27
|
import "./chunk-YEAWWJSJ.js";
|
|
28
28
|
import {
|
|
29
29
|
Exit
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-E5YW5YQN.js";
|
|
31
31
|
import {
|
|
32
32
|
Component,
|
|
33
33
|
assertValidComponent,
|
|
34
34
|
isAnyComponent,
|
|
35
35
|
isComponent,
|
|
36
36
|
renderToTsx
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-UOENUUUV.js";
|
|
38
|
+
import "./chunk-UOPTKXLE.js";
|
|
39
39
|
import {
|
|
40
40
|
truncateWrappedContent,
|
|
41
41
|
wrapContent
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-VWQUGDHE.js";
|
|
43
43
|
import {
|
|
44
44
|
escapeString,
|
|
45
45
|
getMultilineComment,
|
|
46
46
|
isValidIdentifier,
|
|
47
47
|
toValidFunctionName,
|
|
48
48
|
toValidObjectName
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-EKXZXQJB.js";
|
|
50
50
|
import {
|
|
51
51
|
cloneDeep_default,
|
|
52
52
|
upperFirst_default
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-5XC6ZMS5.js";
|
|
54
54
|
|
|
55
55
|
// src/objects.ts
|
|
56
56
|
import { z } from "@bpinternal/zui";
|
|
@@ -1112,20 +1112,20 @@ var utils = {
|
|
|
1112
1112
|
truncateWrappedContent
|
|
1113
1113
|
};
|
|
1114
1114
|
var execute = async (props) => {
|
|
1115
|
-
const { executeContext } = await import("./llmz-
|
|
1115
|
+
const { executeContext } = await import("./llmz-MIV5CZU5.js");
|
|
1116
1116
|
return executeContext(props);
|
|
1117
1117
|
};
|
|
1118
1118
|
var init = async () => {
|
|
1119
|
-
await import("./llmz-
|
|
1120
|
-
await import("./component-
|
|
1121
|
-
await import("./tool-
|
|
1122
|
-
await import("./exit-
|
|
1123
|
-
await import("./jsx-
|
|
1124
|
-
await import("./vm-
|
|
1125
|
-
await import("./utils-
|
|
1126
|
-
await import("./truncator-
|
|
1127
|
-
await import("./typings-
|
|
1128
|
-
await import("./dual-modes-
|
|
1119
|
+
await import("./llmz-MIV5CZU5.js");
|
|
1120
|
+
await import("./component-GNYIA77X.js");
|
|
1121
|
+
await import("./tool-5JXTEQNW.js");
|
|
1122
|
+
await import("./exit-56DISPLS.js");
|
|
1123
|
+
await import("./jsx-PCXQVMLU.js");
|
|
1124
|
+
await import("./vm-5IM44JHK.js");
|
|
1125
|
+
await import("./utils-D3J443FA.js");
|
|
1126
|
+
await import("./truncator-WDLDMAE7.js");
|
|
1127
|
+
await import("./typings-ZO63Z4TF.js");
|
|
1128
|
+
await import("./dual-modes-5CQEVSIG.js");
|
|
1129
1129
|
};
|
|
1130
1130
|
export {
|
|
1131
1131
|
Chat,
|
|
@@ -0,0 +1,13 @@
|
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runAsyncFunction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5YXGNMER.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-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-7HBJXJ6W.js";
|
|
12
|
+
import "./chunk-ZSZTPETU.js";
|
|
13
|
+
import "./chunk-L2ZDZKCB.js";
|
|
14
|
+
import "./chunk-YV5N57D3.js";
|
|
15
15
|
import {
|
|
16
16
|
AssignmentError,
|
|
17
17
|
CodeExecutionError,
|
|
@@ -26,22 +26,22 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
cleanStackTrace
|
|
28
28
|
} from "./chunk-YEAWWJSJ.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-E5YW5YQN.js";
|
|
30
|
+
import "./chunk-UOENUUUV.js";
|
|
31
|
+
import "./chunk-UOPTKXLE.js";
|
|
32
32
|
import {
|
|
33
33
|
truncateWrappedContent
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-VWQUGDHE.js";
|
|
35
35
|
import {
|
|
36
36
|
init,
|
|
37
37
|
stripInvalidIdentifiers
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-EKXZXQJB.js";
|
|
39
39
|
import {
|
|
40
40
|
clamp_default,
|
|
41
41
|
isEqual_default,
|
|
42
42
|
isPlainObject_default,
|
|
43
43
|
omit_default
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-5XC6ZMS5.js";
|
|
45
45
|
|
|
46
46
|
// src/llmz.ts
|
|
47
47
|
import { Client } from "@botpress/client";
|