llmz 0.0.82 → 0.0.83
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-BJMZIH3M.js → chunk-34GJUS6U.js} +1047 -1047
- package/dist/{chunk-EQ4JDBE5.js → chunk-3T5IU7OU.js} +1 -1
- package/dist/{chunk-H5LCBNN6.cjs → chunk-52QTFQOB.cjs} +18 -18
- package/dist/{chunk-3NVOHQVY.js → chunk-5MAFEI2A.js} +4 -2
- package/dist/{chunk-HBKQKO3R.js → chunk-5Z2SJOGS.js} +3 -3
- package/dist/{chunk-OX3Y2Z5K.cjs → chunk-5ZF6NTYI.cjs} +3 -3
- package/dist/{chunk-TB6TCWEB.cjs → chunk-6KR6VRA6.cjs} +2 -2
- package/dist/{chunk-BXPPMP5X.cjs → chunk-73XYX76S.cjs} +14 -14
- package/dist/{chunk-VXQ2CZ7B.cjs → chunk-CQ3UJW76.cjs} +4 -4
- package/dist/{chunk-22DGAZXC.js → chunk-EFEF2AL7.js} +2 -2
- package/dist/{chunk-7XVBJQ53.cjs → chunk-HC2QZTVT.cjs} +1047 -1047
- package/dist/{chunk-HP3T6PF4.js → chunk-I2CZYEMH.js} +4 -4
- package/dist/{chunk-GFZCNSYW.cjs → chunk-JXD2KJVB.cjs} +23 -23
- package/dist/{chunk-YFG53MRF.js → chunk-MM2FLD3J.js} +1 -1
- package/dist/{chunk-DO7DN4FZ.js → chunk-NPVV3PHY.js} +1 -1
- package/dist/{chunk-5X5TDCMX.cjs → chunk-NQBIU5VM.cjs} +51 -51
- package/dist/{chunk-FQ4QCUTI.cjs → chunk-NWTG73QR.cjs} +10 -8
- package/dist/{chunk-DLV5FJ42.cjs → chunk-RLUTWFAA.cjs} +9 -9
- package/dist/{chunk-2UM7PFM3.js → chunk-VDTORFBP.js} +6 -6
- package/dist/{chunk-E74GBCTT.js → chunk-VLJA22PB.js} +2 -2
- package/dist/{chunk-E6UFMAW7.js → chunk-XTEHT2TK.js} +1 -1
- package/dist/{chunk-X24YFCFY.cjs → chunk-YCLKXXSF.cjs} +28 -28
- package/dist/{component-GVCCL5XU.js → component-2Z3KLWLX.js} +3 -3
- package/dist/component-NNHBHD72.cjs +18 -0
- package/dist/dual-modes-E5HGE35E.cjs +12 -0
- package/dist/dual-modes-VDFZH4YM.js +12 -0
- package/dist/{llmz-JTZUIYRP.js → execute-CJVHUFYI.js} +536 -420
- package/dist/{llmz-2HD6WKIP.cjs → execute-R6R3A42S.cjs} +545 -429
- package/dist/exit-GKF4EEMZ.js +8 -0
- package/dist/exit-VZASQELZ.cjs +8 -0
- package/dist/index.cjs +49 -49
- package/dist/index.d.ts +1 -1
- package/dist/index.js +22 -22
- package/dist/{jsx-RIPUQSAU.js → jsx-DDZ63UUF.js} +2 -2
- package/dist/jsx-ULPWX5TW.cjs +13 -0
- package/dist/runtime/execute.d.ts +3 -0
- package/dist/runtime/generate.d.ts +10 -0
- package/dist/runtime/interpret-result.d.ts +12 -0
- package/dist/runtime/interpret-result.test.d.ts +1 -0
- package/dist/runtime/tool-wrapper.d.ts +17 -0
- package/dist/runtime/tool-wrapper.test.d.ts +1 -0
- package/dist/{llmz.d.ts → runtime/types.d.ts} +12 -13
- package/dist/runtime/utils.d.ts +10 -0
- package/dist/runtime/vm-context.d.ts +12 -0
- package/dist/tool-4VK7TZV2.cjs +11 -0
- package/dist/tool-JZP3UN2F.js +11 -0
- package/dist/{truncator-HCWH5MJ3.js → truncator-IIRX3MB2.js} +3 -3
- package/dist/truncator-NWENJXMR.cjs +10 -0
- package/dist/typings-SHVPZ5AR.cjs +10 -0
- package/dist/{typings-FPFJ5D5R.js → typings-SKZSSL2M.js} +3 -3
- package/dist/utils-6MFSS4AT.cjs +41 -0
- package/dist/{utils-M5KFPSNZ.js → utils-SYJGSVFW.js} +4 -2
- package/dist/utils.d.ts +1 -0
- package/dist/{vm-KBBQ7U5L.js → vm-PYCKS77H.js} +3 -3
- package/dist/vm-VHB67FVH.cjs +10 -0
- package/package.json +1 -1
- package/dist/component-YMPMWSTU.cjs +0 -18
- package/dist/dual-modes-KOU5YJ3Q.cjs +0 -12
- package/dist/dual-modes-X7YHJBFJ.js +0 -12
- package/dist/exit-A34GODDB.cjs +0 -8
- package/dist/exit-J55SREDL.js +0 -8
- package/dist/jsx-XEUSAKAK.cjs +0 -13
- package/dist/tool-B3DJ3D2F.js +0 -11
- package/dist/tool-IWPZD5OY.cjs +0 -11
- package/dist/truncator-SOO6NHLD.cjs +0 -10
- package/dist/typings-O2FLZGQN.cjs +0 -10
- package/dist/utils-PWX3JPCF.cjs +0 -39
- package/dist/vm-R2XBIWE4.cjs +0 -10
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkNWTG73QRcjs = require('./chunk-NWTG73QR.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkHC2QZTVTcjs = require('./chunk-HC2QZTVT.cjs');
|
|
9
9
|
|
|
10
10
|
// src/exit.ts
|
|
11
11
|
var _zui = require('@bpinternal/zui');
|
|
@@ -42,13 +42,13 @@ var Exit = (_class = class _Exit {
|
|
|
42
42
|
*/
|
|
43
43
|
rename(name) {
|
|
44
44
|
const before = this.name;
|
|
45
|
-
if (!
|
|
45
|
+
if (!_chunkNWTG73QRcjs.isValidIdentifier.call(void 0, name)) {
|
|
46
46
|
throw new Error(
|
|
47
47
|
`Invalid name for exit ${name}. An exit name must start with a letter and contain only letters, numbers, and underscores. It must be 1-50 characters long.`
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
this.name = name;
|
|
51
|
-
this.aliases =
|
|
51
|
+
this.aliases = _chunkHC2QZTVTcjs.uniq_default.call(void 0, [name, ...this.aliases.map((alias) => alias === before ? name : alias)]);
|
|
52
52
|
return this;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
@@ -177,7 +177,7 @@ var Exit = (_class = class _Exit {
|
|
|
177
177
|
* ```
|
|
178
178
|
*/
|
|
179
179
|
constructor(props) {;_class.prototype.__init.call(this);
|
|
180
|
-
if (!
|
|
180
|
+
if (!_chunkNWTG73QRcjs.isValidIdentifier.call(void 0, props.name)) {
|
|
181
181
|
throw new Error(
|
|
182
182
|
`Invalid name for exit ${props.name}. A exit name must start with a letter and contain only letters, numbers, and underscores. It must be 1-50 characters long.`
|
|
183
183
|
);
|
|
@@ -197,13 +197,13 @@ var Exit = (_class = class _Exit {
|
|
|
197
197
|
`Invalid aliases for exit ${props.name}. Expected an array, but got type "${typeof props.aliases}"`
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
|
-
if (props.aliases && props.aliases.some((alias) => !
|
|
200
|
+
if (props.aliases && props.aliases.some((alias) => !_chunkNWTG73QRcjs.isValidIdentifier.call(void 0, alias))) {
|
|
201
201
|
throw new Error(`Invalid aliases for exit ${props.name}. Expected an array of valid identifiers.`);
|
|
202
202
|
}
|
|
203
203
|
if (typeof props.schema !== "undefined") {
|
|
204
|
-
if (
|
|
204
|
+
if (_chunkNWTG73QRcjs.isZuiSchema.call(void 0, props.schema)) {
|
|
205
205
|
this.schema = _zui.transforms.toJSONSchemaLegacy(props.schema);
|
|
206
|
-
} else if (
|
|
206
|
+
} else if (_chunkNWTG73QRcjs.isJsonSchema.call(void 0, props.schema)) {
|
|
207
207
|
this.schema = props.schema;
|
|
208
208
|
} else {
|
|
209
209
|
throw new Error(
|
|
@@ -212,7 +212,7 @@ var Exit = (_class = class _Exit {
|
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
this.name = props.name;
|
|
215
|
-
this.aliases =
|
|
215
|
+
this.aliases = _chunkHC2QZTVTcjs.uniq_default.call(void 0, [props.name, ..._nullishCoalesce(props.aliases, () => ( []))]);
|
|
216
216
|
this.description = props.description;
|
|
217
217
|
this.metadata = _nullishCoalesce(props.metadata, () => ( {}));
|
|
218
218
|
}
|
|
@@ -2,27 +2,27 @@ import {
|
|
|
2
2
|
DualModePrompt,
|
|
3
3
|
extractType,
|
|
4
4
|
inspect
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I2CZYEMH.js";
|
|
6
6
|
import {
|
|
7
7
|
Tool
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5Z2SJOGS.js";
|
|
9
9
|
import {
|
|
10
10
|
LoopExceededError
|
|
11
11
|
} from "./chunk-WSVDMGMR.js";
|
|
12
12
|
import {
|
|
13
13
|
Exit
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VLJA22PB.js";
|
|
15
15
|
import {
|
|
16
16
|
assertValidComponent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3T5IU7OU.js";
|
|
18
18
|
import {
|
|
19
19
|
wrapContent
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MM2FLD3J.js";
|
|
21
21
|
import {
|
|
22
22
|
cloneDeep_default,
|
|
23
23
|
isPlainObject_default,
|
|
24
24
|
omit_default
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-34GJUS6U.js";
|
|
26
26
|
|
|
27
27
|
// src/exit-parser.ts
|
|
28
28
|
function isValuePrimitive(value) {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
isJsonSchema,
|
|
3
3
|
isValidIdentifier,
|
|
4
4
|
isZuiSchema
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5MAFEI2A.js";
|
|
6
6
|
import {
|
|
7
7
|
uniq_default
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-34GJUS6U.js";
|
|
9
9
|
|
|
10
10
|
// src/exit.ts
|
|
11
11
|
import { transforms } from "@bpinternal/zui";
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkNQBIU5VMcjs = require('./chunk-NQBIU5VM.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk52QTFQOBcjs = require('./chunk-52QTFQOB.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkPK72FAKDcjs = require('./chunk-PK72FAKD.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkRLUTWFAAcjs = require('./chunk-RLUTWFAA.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkCQ3UJW76cjs = require('./chunk-CQ3UJW76.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk6KR6VRA6cjs = require('./chunk-6KR6VRA6.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkHC2QZTVTcjs = require('./chunk-HC2QZTVT.cjs');
|
|
26
26
|
|
|
27
27
|
// src/exit-parser.ts
|
|
28
28
|
function isValuePrimitive(value) {
|
|
@@ -189,7 +189,7 @@ function parseExit(returnValue, exits) {
|
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
191
|
if (!returnExit.zSchema) {
|
|
192
|
-
const otherProps =
|
|
192
|
+
const otherProps = _chunkHC2QZTVTcjs.omit_default.call(void 0, returnValue, "action");
|
|
193
193
|
const value = Object.keys(otherProps).length === 1 ? Object.values(otherProps)[0] : otherProps;
|
|
194
194
|
return {
|
|
195
195
|
success: true,
|
|
@@ -200,7 +200,7 @@ function parseExit(returnValue, exits) {
|
|
|
200
200
|
let valueToValidate = returnValue.value;
|
|
201
201
|
let alternativeValue = void 0;
|
|
202
202
|
if (valueToValidate === void 0) {
|
|
203
|
-
const otherProps =
|
|
203
|
+
const otherProps = _chunkHC2QZTVTcjs.omit_default.call(void 0, returnValue, "action");
|
|
204
204
|
if (Object.keys(otherProps).length > 0) {
|
|
205
205
|
valueToValidate = otherProps;
|
|
206
206
|
if (Object.keys(otherProps).length === 1) {
|
|
@@ -238,7 +238,7 @@ function parseExit(returnValue, exits) {
|
|
|
238
238
|
if (returnValue.value !== void 0) {
|
|
239
239
|
generatedStatement += `, value: ${generatedType}`;
|
|
240
240
|
} else {
|
|
241
|
-
const otherProps =
|
|
241
|
+
const otherProps = _chunkHC2QZTVTcjs.omit_default.call(void 0, returnValue, "action");
|
|
242
242
|
const propKeys = Object.keys(otherProps);
|
|
243
243
|
if (propKeys.length === 1) {
|
|
244
244
|
generatedStatement += `, ${propKeys[0]}: ${generatedType}`;
|
|
@@ -493,10 +493,10 @@ var Snapshot = class _Snapshot {
|
|
|
493
493
|
};
|
|
494
494
|
function parseVariables(variableMap) {
|
|
495
495
|
return Object.entries(variableMap).map(([name, value]) => {
|
|
496
|
-
const type =
|
|
496
|
+
const type = _chunkNQBIU5VMcjs.extractType.call(void 0, value);
|
|
497
497
|
const bytes = JSON.stringify(value || "").length;
|
|
498
498
|
const truncated = bytes > MAX_SNAPSHOT_SIZE_BYTES;
|
|
499
|
-
return truncated ? { name, type, bytes, truncated: true, preview: _nullishCoalesce(
|
|
499
|
+
return truncated ? { name, type, bytes, truncated: true, preview: _nullishCoalesce(_chunkNQBIU5VMcjs.inspect.call(void 0, value, name), () => ( "N/A")) } : { name, type, bytes, truncated: false, value };
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
502
|
|
|
@@ -507,9 +507,9 @@ function getMessagePreview(message) {
|
|
|
507
507
|
return message.content;
|
|
508
508
|
}
|
|
509
509
|
if (message.role === "event") {
|
|
510
|
-
return
|
|
510
|
+
return _chunkNQBIU5VMcjs.inspect.call(void 0, message.payload, message.name, { tokens: 1e3 });
|
|
511
511
|
}
|
|
512
|
-
return
|
|
512
|
+
return _chunkNQBIU5VMcjs.inspect.call(void 0, message, void 0, { tokens: 1e3 });
|
|
513
513
|
}
|
|
514
514
|
function getMessageType(message) {
|
|
515
515
|
if (message.role === "assistant" || message.role === "user" || message.role === "summary") {
|
|
@@ -933,15 +933,15 @@ var HookedArray = class extends Array {
|
|
|
933
933
|
};
|
|
934
934
|
|
|
935
935
|
// src/context.ts
|
|
936
|
-
var ThinkExit = new (0,
|
|
936
|
+
var ThinkExit = new (0, _chunkRLUTWFAAcjs.Exit)({
|
|
937
937
|
name: "think",
|
|
938
938
|
description: "Think about the current situation and provide a response"
|
|
939
939
|
});
|
|
940
|
-
var ListenExit = new (0,
|
|
940
|
+
var ListenExit = new (0, _chunkRLUTWFAAcjs.Exit)({
|
|
941
941
|
name: "listen",
|
|
942
942
|
description: "Listen to the user and provide a response"
|
|
943
943
|
});
|
|
944
|
-
var DefaultExit = new (0,
|
|
944
|
+
var DefaultExit = new (0, _chunkRLUTWFAAcjs.Exit)({
|
|
945
945
|
name: "done",
|
|
946
946
|
description: "When the execution is sucessfully completed or when error recovery is not possible",
|
|
947
947
|
schema: _zui.z.discriminatedUnion("success", [
|
|
@@ -1103,7 +1103,7 @@ var Context = (_class2 = class {
|
|
|
1103
1103
|
|
|
1104
1104
|
|
|
1105
1105
|
|
|
1106
|
-
__init3() {this.version =
|
|
1106
|
+
__init3() {this.version = _chunkNQBIU5VMcjs.DualModePrompt}
|
|
1107
1107
|
__init4() {this.timeout = 6e4}
|
|
1108
1108
|
// Default timeout of 60 seconds
|
|
1109
1109
|
|
|
@@ -1139,12 +1139,12 @@ var Context = (_class2 = class {
|
|
|
1139
1139
|
const variables = {};
|
|
1140
1140
|
if ((lastIteration == null ? void 0 : lastIteration.status.type) === "thinking_requested") {
|
|
1141
1141
|
const lastThinkingVariables = lastIteration.status.thinking_requested.variables;
|
|
1142
|
-
if (
|
|
1143
|
-
Object.assign(variables,
|
|
1142
|
+
if (_chunkHC2QZTVTcjs.isPlainObject_default.call(void 0, lastThinkingVariables)) {
|
|
1143
|
+
Object.assign(variables, _chunkHC2QZTVTcjs.cloneDeep_default.call(void 0, lastThinkingVariables));
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
if (
|
|
1147
|
-
Object.assign(variables,
|
|
1146
|
+
if (_chunkHC2QZTVTcjs.isPlainObject_default.call(void 0, lastIteration == null ? void 0 : lastIteration.variables)) {
|
|
1147
|
+
Object.assign(variables, _chunkHC2QZTVTcjs.cloneDeep_default.call(void 0, _nullishCoalesce((lastIteration == null ? void 0 : lastIteration.variables), () => ( {}))));
|
|
1148
1148
|
}
|
|
1149
1149
|
if (((_a = this.snapshot) == null ? void 0 : _a.status.type) === "resolved") {
|
|
1150
1150
|
for (const v of this.snapshot.variables) {
|
|
@@ -1224,7 +1224,7 @@ var Context = (_class2 = class {
|
|
|
1224
1224
|
...lastIterationMessages,
|
|
1225
1225
|
{
|
|
1226
1226
|
role: "assistant",
|
|
1227
|
-
content:
|
|
1227
|
+
content: _chunk6KR6VRA6cjs.wrapContent.call(void 0, _nullishCoalesce(((_c = lastIteration.llm) == null ? void 0 : _c.output), () => ( "")), { preserve: "top", flex: 4, minTokens: 25 })
|
|
1228
1228
|
},
|
|
1229
1229
|
await this.version.getThinkingMessage({
|
|
1230
1230
|
reason: lastIteration.status.thinking_requested.reason,
|
|
@@ -1237,7 +1237,7 @@ var Context = (_class2 = class {
|
|
|
1237
1237
|
...lastIterationMessages,
|
|
1238
1238
|
{
|
|
1239
1239
|
role: "assistant",
|
|
1240
|
-
content:
|
|
1240
|
+
content: _chunk6KR6VRA6cjs.wrapContent.call(void 0, _nullishCoalesce(((_d = lastIteration.llm) == null ? void 0 : _d.output), () => ( "")), { preserve: "top", flex: 4, minTokens: 25 })
|
|
1241
1241
|
},
|
|
1242
1242
|
await this.version.getInvalidCodeMessage({
|
|
1243
1243
|
code: _nullishCoalesce(lastIteration.code, () => ( "// No code generated")),
|
|
@@ -1250,7 +1250,7 @@ var Context = (_class2 = class {
|
|
|
1250
1250
|
...lastIterationMessages,
|
|
1251
1251
|
{
|
|
1252
1252
|
role: "assistant",
|
|
1253
|
-
content:
|
|
1253
|
+
content: _chunk6KR6VRA6cjs.wrapContent.call(void 0, _nullishCoalesce(((_e = lastIteration.llm) == null ? void 0 : _e.output), () => ( "")), { preserve: "top", flex: 4, minTokens: 25 })
|
|
1254
1254
|
},
|
|
1255
1255
|
await this.version.getInvalidCodeMessage({
|
|
1256
1256
|
code: _nullishCoalesce(lastIteration.code, () => ( "// No code generated")),
|
|
@@ -1263,7 +1263,7 @@ var Context = (_class2 = class {
|
|
|
1263
1263
|
...lastIterationMessages,
|
|
1264
1264
|
{
|
|
1265
1265
|
role: "assistant",
|
|
1266
|
-
content:
|
|
1266
|
+
content: _chunk6KR6VRA6cjs.wrapContent.call(void 0, _nullishCoalesce(((_f = lastIteration.llm) == null ? void 0 : _f.output), () => ( "")), { preserve: "top", flex: 4, minTokens: 25 })
|
|
1267
1267
|
},
|
|
1268
1268
|
await this.version.getCodeExecutionErrorMessage({
|
|
1269
1269
|
message: lastIteration.status.execution_error.message,
|
|
@@ -1279,7 +1279,7 @@ var Context = (_class2 = class {
|
|
|
1279
1279
|
var _a, _b;
|
|
1280
1280
|
const instructions = await getValue(this.instructions, this);
|
|
1281
1281
|
const transcript = new TranscriptArray(await getValue(_nullishCoalesce(((_a = this.chat) == null ? void 0 : _a.transcript), () => ( [])), this));
|
|
1282
|
-
const tools =
|
|
1282
|
+
const tools = _chunk52QTFQOBcjs.Tool.withUniqueNames(await _asyncNullishCoalesce(await getValue(this.tools, this), async () => ( [])));
|
|
1283
1283
|
const objects = await _asyncNullishCoalesce(await getValue(this.objects, this), async () => ( []));
|
|
1284
1284
|
const exits = await _asyncNullishCoalesce(await getValue(this.exits, this), async () => ( []));
|
|
1285
1285
|
const components = await getValue(_nullishCoalesce(((_b = this.chat) == null ? void 0 : _b.components), () => ( [])), this);
|
|
@@ -1293,7 +1293,7 @@ var Context = (_class2 = class {
|
|
|
1293
1293
|
throw new Error("Too many tools. Expected at most 100 tools.");
|
|
1294
1294
|
}
|
|
1295
1295
|
for (const component of components) {
|
|
1296
|
-
|
|
1296
|
+
_chunkCQ3UJW76cjs.assertValidComponent.call(void 0, component.definition);
|
|
1297
1297
|
}
|
|
1298
1298
|
const ReservedToolNames = [
|
|
1299
1299
|
"think",
|
|
@@ -1312,7 +1312,7 @@ var Context = (_class2 = class {
|
|
|
1312
1312
|
"boolean",
|
|
1313
1313
|
"array"
|
|
1314
1314
|
];
|
|
1315
|
-
const MessageTool = this.chat && components.length ? new (0,
|
|
1315
|
+
const MessageTool = this.chat && components.length ? new (0, _chunk52QTFQOBcjs.Tool)({
|
|
1316
1316
|
name: "Message",
|
|
1317
1317
|
description: "Send a message to the user",
|
|
1318
1318
|
aliases: Array.from(
|
|
@@ -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-3T5IU7OU.js";
|
|
9
|
+
import "./chunk-XTEHT2TK.js";
|
|
10
|
+
import "./chunk-34GJUS6U.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 _chunkCQ3UJW76cjs = require('./chunk-CQ3UJW76.cjs');
|
|
9
|
+
require('./chunk-5ZF6NTYI.cjs');
|
|
10
|
+
require('./chunk-HC2QZTVT.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.Component = _chunkCQ3UJW76cjs.Component; exports.assertValidComponent = _chunkCQ3UJW76cjs.assertValidComponent; exports.getComponentReference = _chunkCQ3UJW76cjs.getComponentReference; exports.isAnyComponent = _chunkCQ3UJW76cjs.isAnyComponent; exports.isComponent = _chunkCQ3UJW76cjs.isComponent; exports.renderToTsx = _chunkCQ3UJW76cjs.renderToTsx;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkNQBIU5VMcjs = require('./chunk-NQBIU5VM.cjs');
|
|
4
|
+
require('./chunk-KIN7Y247.cjs');
|
|
5
|
+
require('./chunk-CQ3UJW76.cjs');
|
|
6
|
+
require('./chunk-5ZF6NTYI.cjs');
|
|
7
|
+
require('./chunk-6KR6VRA6.cjs');
|
|
8
|
+
require('./chunk-NWTG73QR.cjs');
|
|
9
|
+
require('./chunk-HC2QZTVT.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.DualModePrompt = _chunkNQBIU5VMcjs.DualModePrompt;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DualModePrompt
|
|
3
|
+
} from "./chunk-I2CZYEMH.js";
|
|
4
|
+
import "./chunk-YEAWWJSJ.js";
|
|
5
|
+
import "./chunk-3T5IU7OU.js";
|
|
6
|
+
import "./chunk-XTEHT2TK.js";
|
|
7
|
+
import "./chunk-MM2FLD3J.js";
|
|
8
|
+
import "./chunk-5MAFEI2A.js";
|
|
9
|
+
import "./chunk-34GJUS6U.js";
|
|
10
|
+
export {
|
|
11
|
+
DualModePrompt
|
|
12
|
+
};
|