llmz 0.0.26 → 0.0.28

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class;
2
2
 
3
- var _chunk45GKLDDRcjs = require('./chunk-45GKLDDR.cjs');
3
+ var _chunkRLOPQZTQcjs = require('./chunk-RLOPQZTQ.cjs');
4
4
 
5
5
 
6
6
 
@@ -422,7 +422,7 @@ var Tool = (_class = class _Tool {
422
422
  input = _chunkWHNOR4ZUcjs.convertObjectToZuiLiterals.call(void 0, this._staticInputValues);
423
423
  }
424
424
  const fnType = _zui.z.function(input, _zui.z.promise(output)).title(this.name).describe(_nullishCoalesce(this.description, () => ( "")));
425
- return _chunk45GKLDDRcjs.getTypings.call(void 0, fnType, {
425
+ return _chunkRLOPQZTQcjs.getTypings.call(void 0, fnType, {
426
426
  declaration: true
427
427
  });
428
428
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTypings
3
- } from "./chunk-PBTEQAZK.js";
3
+ } from "./chunk-IUE5BW56.js";
4
4
  import {
5
5
  convertObjectToZuiLiterals,
6
6
  isJsonSchema,
@@ -460,7 +460,7 @@ var getSystemMessage = async (props) => {
460
460
  name: exit.name,
461
461
  description: exit.description,
462
462
  has_typings: true,
463
- typings: exit.zSchema.toTypescriptType()
463
+ typings: exit.zSchema.toTypescriptType({ treatDefaultAsOptional: true })
464
464
  });
465
465
  } else {
466
466
  exits.push({
@@ -268,7 +268,7 @@ ${typeof schema.value === "string" ? escapeString(schema.value) : schema.value}`
268
268
  return `${description} { [key: (${keyType})]: (${valueType}) }`;
269
269
  }
270
270
  try {
271
- let typings = schema == null ? void 0 : schema.toTypescriptType();
271
+ let typings = schema == null ? void 0 : schema.toTypescriptType({ treatDefaultAsOptional: true });
272
272
  typings ??= "unknown";
273
273
  return stripSpaces(typings);
274
274
  } catch (error) {
@@ -2,10 +2,10 @@ import {
2
2
  DualModePrompt,
3
3
  extractType,
4
4
  inspect
5
- } from "./chunk-EDVD6GWH.js";
5
+ } from "./chunk-HCC76DDO.js";
6
6
  import {
7
7
  Tool
8
- } from "./chunk-CARJB3HP.js";
8
+ } from "./chunk-7POUFE5M.js";
9
9
  import {
10
10
  LoopExceededError
11
11
  } from "./chunk-MYLTD5WT.js";
@@ -268,7 +268,7 @@ ${typeof schema.value === "string" ? _chunkWHNOR4ZUcjs.escapeString.call(void 0,
268
268
  return `${description} { [key: (${keyType})]: (${valueType}) }`;
269
269
  }
270
270
  try {
271
- let typings = schema == null ? void 0 : schema.toTypescriptType();
271
+ let typings = schema == null ? void 0 : schema.toTypescriptType({ treatDefaultAsOptional: true });
272
272
  typings ??= "unknown";
273
273
  return stripSpaces(typings);
274
274
  } catch (error) {
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkQ2O6MYEScjs = require('./chunk-Q2O6MYES.cjs');
5
+ var _chunkWP4F6KMWcjs = require('./chunk-WP4F6KMW.cjs');
6
6
 
7
7
 
8
- var _chunkA63TROZXcjs = require('./chunk-A63TROZX.cjs');
8
+ var _chunk273DEMEUcjs = require('./chunk-273DEMEU.cjs');
9
9
 
10
10
 
11
11
  var _chunkT63Y6GTWcjs = require('./chunk-T63Y6GTW.cjs');
@@ -62,10 +62,10 @@ var Snapshot = class _Snapshot {
62
62
  */
63
63
  static fromSignal(signal) {
64
64
  const variables = Object.entries(signal.variables).map(([name, value]) => {
65
- const type = _chunkQ2O6MYEScjs.extractType.call(void 0, value);
65
+ const type = _chunkWP4F6KMWcjs.extractType.call(void 0, value);
66
66
  const bytes = JSON.stringify(value || "").length;
67
67
  const truncated = bytes > MAX_SNAPSHOT_SIZE_BYTES;
68
- return truncated ? { name, type, bytes, truncated: true, preview: _nullishCoalesce(_chunkQ2O6MYEScjs.inspect.call(void 0, value, name), () => ( "N/A")) } : { name, type, bytes, truncated: false, value };
68
+ return truncated ? { name, type, bytes, truncated: true, preview: _nullishCoalesce(_chunkWP4F6KMWcjs.inspect.call(void 0, value, name), () => ( "N/A")) } : { name, type, bytes, truncated: false, value };
69
69
  });
70
70
  return new _Snapshot({
71
71
  id: "snapshot_" + _ulid.ulid.call(void 0, ),
@@ -210,9 +210,9 @@ function getMessagePreview(message) {
210
210
  return message.content;
211
211
  }
212
212
  if (message.role === "event") {
213
- return _chunkQ2O6MYEScjs.inspect.call(void 0, message.payload, message.name, { tokens: 1e3 });
213
+ return _chunkWP4F6KMWcjs.inspect.call(void 0, message.payload, message.name, { tokens: 1e3 });
214
214
  }
215
- return _chunkQ2O6MYEScjs.inspect.call(void 0, message, void 0, { tokens: 1e3 });
215
+ return _chunkWP4F6KMWcjs.inspect.call(void 0, message, void 0, { tokens: 1e3 });
216
216
  }
217
217
  function getMessageType(message) {
218
218
  if (message.role === "assistant" || message.role === "user" || message.role === "summary") {
@@ -798,7 +798,7 @@ var Context = (_class2 = class {
798
798
 
799
799
 
800
800
 
801
- __init3() {this.version = _chunkQ2O6MYEScjs.DualModePrompt}
801
+ __init3() {this.version = _chunkWP4F6KMWcjs.DualModePrompt}
802
802
  __init4() {this.timeout = 6e4}
803
803
  // Default timeout of 60 seconds
804
804
 
@@ -966,7 +966,7 @@ var Context = (_class2 = class {
966
966
  var _a, _b;
967
967
  const instructions = await getValue(this.instructions, this);
968
968
  const transcript = new TranscriptArray(await getValue(_nullishCoalesce(((_a = this.chat) == null ? void 0 : _a.transcript), () => ( [])), this));
969
- const tools = _chunkA63TROZXcjs.Tool.withUniqueNames(await _asyncNullishCoalesce(await getValue(this.tools, this), async () => ( [])));
969
+ const tools = _chunk273DEMEUcjs.Tool.withUniqueNames(await _asyncNullishCoalesce(await getValue(this.tools, this), async () => ( [])));
970
970
  const objects = await _asyncNullishCoalesce(await getValue(this.objects, this), async () => ( []));
971
971
  const exits = await _asyncNullishCoalesce(await getValue(this.exits, this), async () => ( []));
972
972
  const components = await getValue(_nullishCoalesce(((_b = this.chat) == null ? void 0 : _b.components), () => ( [])), this);
@@ -998,7 +998,7 @@ var Context = (_class2 = class {
998
998
  "boolean",
999
999
  "array"
1000
1000
  ];
1001
- const MessageTool = this.chat && components.length ? new (0, _chunkA63TROZXcjs.Tool)({
1001
+ const MessageTool = this.chat && components.length ? new (0, _chunk273DEMEUcjs.Tool)({
1002
1002
  name: "Message",
1003
1003
  description: "Send a message to the user",
1004
1004
  aliases: Array.from(
@@ -460,7 +460,7 @@ var getSystemMessage = async (props) => {
460
460
  name: exit.name,
461
461
  description: exit.description,
462
462
  has_typings: true,
463
- typings: exit.zSchema.toTypescriptType()
463
+ typings: exit.zSchema.toTypescriptType({ treatDefaultAsOptional: true })
464
464
  });
465
465
  } else {
466
466
  exits.push({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DualModePrompt
3
- } from "./chunk-EDVD6GWH.js";
3
+ } from "./chunk-HCC76DDO.js";
4
4
  import "./chunk-YEAWWJSJ.js";
5
5
  import "./chunk-GGWM6X2K.js";
6
6
  import "./chunk-ORQP26SZ.js";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQ2O6MYEScjs = require('./chunk-Q2O6MYES.cjs');
3
+ var _chunkWP4F6KMWcjs = require('./chunk-WP4F6KMW.cjs');
4
4
  require('./chunk-KIN7Y247.cjs');
5
5
  require('./chunk-ZRCU35UV.cjs');
6
6
  require('./chunk-KMZDFWYZ.cjs');
@@ -9,4 +9,4 @@ require('./chunk-WHNOR4ZU.cjs');
9
9
  require('./chunk-UQOBUJIQ.cjs');
10
10
 
11
11
 
12
- exports.DualModePrompt = _chunkQ2O6MYEScjs.DualModePrompt;
12
+ exports.DualModePrompt = _chunkWP4F6KMWcjs.DualModePrompt;
package/dist/index.cjs CHANGED
@@ -8,15 +8,15 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkPQILLTEMcjs = require('./chunk-PQILLTEM.cjs');
12
- require('./chunk-Q2O6MYES.cjs');
11
+ var _chunkVADA6DMRcjs = require('./chunk-VADA6DMR.cjs');
12
+ require('./chunk-WP4F6KMW.cjs');
13
13
 
14
14
 
15
- var _chunkA63TROZXcjs = require('./chunk-A63TROZX.cjs');
15
+ var _chunk273DEMEUcjs = require('./chunk-273DEMEU.cjs');
16
16
 
17
17
 
18
18
 
19
- var _chunk45GKLDDRcjs = require('./chunk-45GKLDDR.cjs');
19
+ var _chunkRLOPQZTQcjs = require('./chunk-RLOPQZTQ.cjs');
20
20
 
21
21
 
22
22
 
@@ -301,7 +301,7 @@ async function hoistTypings(code, formatOptions) {
301
301
  break;
302
302
  }
303
303
  }
304
- return _chunk45GKLDDRcjs.formatTypings.call(void 0, code, formatOptions);
304
+ return _chunkRLOPQZTQcjs.formatTypings.call(void 0, code, formatOptions);
305
305
  }
306
306
 
307
307
  // src/objects.ts
@@ -427,7 +427,7 @@ var ObjectInstance = class {
427
427
  this.description = props.description;
428
428
  this.metadata = _nullishCoalesce(props.metadata, () => ( {}));
429
429
  this.properties = props.properties;
430
- this.tools = _chunkA63TROZXcjs.Tool.withUniqueNames(_nullishCoalesce(props.tools, () => ( [])));
430
+ this.tools = _chunk273DEMEUcjs.Tool.withUniqueNames(_nullishCoalesce(props.tools, () => ( [])));
431
431
  }
432
432
  /**
433
433
  * Generates TypeScript namespace declarations for this object.
@@ -508,7 +508,7 @@ function getObjectTypings(obj) {
508
508
  }
509
509
  let type = "unknown";
510
510
  if (prop.type) {
511
- type = await _chunk45GKLDDRcjs.getTypings.call(void 0, prop.type, {});
511
+ type = await _chunkRLOPQZTQcjs.getTypings.call(void 0, prop.type, {});
512
512
  } else if (prop.value !== void 0) {
513
513
  type = typeof prop.value;
514
514
  }
@@ -528,7 +528,7 @@ function getObjectTypings(obj) {
528
528
  typings.push("");
529
529
  for (const tool of obj.tools) {
530
530
  const fnType = _zui.z.function(tool.zInput, tool.zOutput).title(tool.name).describe(_nullishCoalesce(tool.description, () => ( "")));
531
- let temp = await _chunk45GKLDDRcjs.getTypings.call(void 0, fnType, {
531
+ let temp = await _chunkRLOPQZTQcjs.getTypings.call(void 0, fnType, {
532
532
  declaration: true
533
533
  });
534
534
  temp = temp.replace("declare function ", "function ");
@@ -551,7 +551,7 @@ function getObjectTypings(obj) {
551
551
  if ((_a = obj.description) == null ? void 0 : _a.trim().length) {
552
552
  header = _chunkWHNOR4ZUcjs.getMultilineComment.call(void 0, obj.description);
553
553
  }
554
- return _chunk45GKLDDRcjs.formatTypings.call(void 0,
554
+ return _chunkRLOPQZTQcjs.formatTypings.call(void 0,
555
555
  `${header}
556
556
  export namespace ${obj.name} {
557
557
  ${body}
@@ -1103,20 +1103,20 @@ var utils = {
1103
1103
  truncateWrappedContent: _chunkGZPN7RGHcjs.truncateWrappedContent
1104
1104
  };
1105
1105
  var execute = async (props) => {
1106
- const { executeContext } = await Promise.resolve().then(() => _interopRequireWildcard(require("./llmz-Z5ULKYGZ.cjs")));
1106
+ const { executeContext } = await Promise.resolve().then(() => _interopRequireWildcard(require("./llmz-M7XYQZT7.cjs")));
1107
1107
  return executeContext(props);
1108
1108
  };
1109
1109
  var init = async () => {
1110
- await Promise.resolve().then(() => _interopRequireWildcard(require("./llmz-Z5ULKYGZ.cjs")));
1110
+ await Promise.resolve().then(() => _interopRequireWildcard(require("./llmz-M7XYQZT7.cjs")));
1111
1111
  await Promise.resolve().then(() => _interopRequireWildcard(require("./component-R4WTW6DZ.cjs")));
1112
- await Promise.resolve().then(() => _interopRequireWildcard(require("./tool-4J4JNDNV.cjs")));
1112
+ await Promise.resolve().then(() => _interopRequireWildcard(require("./tool-GMYMVXUK.cjs")));
1113
1113
  await Promise.resolve().then(() => _interopRequireWildcard(require("./exit-XAYKJ6TR.cjs")));
1114
1114
  await Promise.resolve().then(() => _interopRequireWildcard(require("./jsx-AJAXBWFE.cjs")));
1115
1115
  await Promise.resolve().then(() => _interopRequireWildcard(require("./vm-YJX6M4NJ.cjs")));
1116
1116
  await Promise.resolve().then(() => _interopRequireWildcard(require("./utils-L5QAQXV2.cjs")));
1117
1117
  await Promise.resolve().then(() => _interopRequireWildcard(require("./truncator-W3NXBLYJ.cjs")));
1118
- await Promise.resolve().then(() => _interopRequireWildcard(require("./typings-2WTRKHEH.cjs")));
1119
- await Promise.resolve().then(() => _interopRequireWildcard(require("./dual-modes-F2HJJY2Z.cjs")));
1118
+ await Promise.resolve().then(() => _interopRequireWildcard(require("./typings-2RAAZ2YP.cjs")));
1119
+ await Promise.resolve().then(() => _interopRequireWildcard(require("./dual-modes-F4UV5VAZ.cjs")));
1120
1120
  };
1121
1121
 
1122
1122
 
@@ -1145,4 +1145,4 @@ var init = async () => {
1145
1145
 
1146
1146
 
1147
1147
 
1148
- exports.Chat = Chat; exports.CitationsManager = CitationsManager; exports.Component = _chunkZRCU35UVcjs.Component; exports.DefaultComponents = DefaultComponents; exports.DefaultExit = _chunkPQILLTEMcjs.DefaultExit; exports.ErrorExecutionResult = _chunkPQILLTEMcjs.ErrorExecutionResult; exports.ExecutionResult = _chunkPQILLTEMcjs.ExecutionResult; exports.Exit = _chunk3G3BS5IAcjs.Exit; exports.ListenExit = _chunkPQILLTEMcjs.ListenExit; exports.LoopExceededError = _chunkT63Y6GTWcjs.LoopExceededError; exports.ObjectInstance = ObjectInstance; exports.PartialExecutionResult = _chunkPQILLTEMcjs.PartialExecutionResult; exports.Snapshot = _chunkPQILLTEMcjs.Snapshot; exports.SnapshotSignal = _chunkT63Y6GTWcjs.SnapshotSignal; exports.SuccessExecutionResult = _chunkPQILLTEMcjs.SuccessExecutionResult; exports.ThinkExit = _chunkPQILLTEMcjs.ThinkExit; exports.ThinkSignal = _chunkT63Y6GTWcjs.ThinkSignal; exports.Tool = _chunkA63TROZXcjs.Tool; exports.assertValidComponent = _chunkZRCU35UVcjs.assertValidComponent; exports.execute = execute; exports.getValue = _chunkPQILLTEMcjs.getValue; exports.init = init; exports.isAnyComponent = _chunkZRCU35UVcjs.isAnyComponent; exports.isComponent = _chunkZRCU35UVcjs.isComponent; exports.renderToTsx = _chunkZRCU35UVcjs.renderToTsx; exports.utils = utils;
1148
+ exports.Chat = Chat; exports.CitationsManager = CitationsManager; exports.Component = _chunkZRCU35UVcjs.Component; exports.DefaultComponents = DefaultComponents; exports.DefaultExit = _chunkVADA6DMRcjs.DefaultExit; exports.ErrorExecutionResult = _chunkVADA6DMRcjs.ErrorExecutionResult; exports.ExecutionResult = _chunkVADA6DMRcjs.ExecutionResult; exports.Exit = _chunk3G3BS5IAcjs.Exit; exports.ListenExit = _chunkVADA6DMRcjs.ListenExit; exports.LoopExceededError = _chunkT63Y6GTWcjs.LoopExceededError; exports.ObjectInstance = ObjectInstance; exports.PartialExecutionResult = _chunkVADA6DMRcjs.PartialExecutionResult; exports.Snapshot = _chunkVADA6DMRcjs.Snapshot; exports.SnapshotSignal = _chunkT63Y6GTWcjs.SnapshotSignal; exports.SuccessExecutionResult = _chunkVADA6DMRcjs.SuccessExecutionResult; exports.ThinkExit = _chunkVADA6DMRcjs.ThinkExit; exports.ThinkSignal = _chunkT63Y6GTWcjs.ThinkSignal; exports.Tool = _chunk273DEMEUcjs.Tool; exports.assertValidComponent = _chunkZRCU35UVcjs.assertValidComponent; exports.execute = execute; exports.getValue = _chunkVADA6DMRcjs.getValue; exports.init = init; exports.isAnyComponent = _chunkZRCU35UVcjs.isAnyComponent; exports.isComponent = _chunkZRCU35UVcjs.isComponent; exports.renderToTsx = _chunkZRCU35UVcjs.renderToTsx; exports.utils = utils;
package/dist/index.js CHANGED
@@ -8,15 +8,15 @@ import {
8
8
  SuccessExecutionResult,
9
9
  ThinkExit,
10
10
  getValue
11
- } from "./chunk-SHC22IAH.js";
12
- import "./chunk-EDVD6GWH.js";
11
+ } from "./chunk-KQPGB6GB.js";
12
+ import "./chunk-HCC76DDO.js";
13
13
  import {
14
14
  Tool
15
- } from "./chunk-CARJB3HP.js";
15
+ } from "./chunk-7POUFE5M.js";
16
16
  import {
17
17
  formatTypings,
18
18
  getTypings
19
- } from "./chunk-PBTEQAZK.js";
19
+ } from "./chunk-IUE5BW56.js";
20
20
  import {
21
21
  CodeFormattingError,
22
22
  LoopExceededError,
@@ -1103,20 +1103,20 @@ var utils = {
1103
1103
  truncateWrappedContent
1104
1104
  };
1105
1105
  var execute = async (props) => {
1106
- const { executeContext } = await import("./llmz-VGZUUM3U.js");
1106
+ const { executeContext } = await import("./llmz-WPO4HYQY.js");
1107
1107
  return executeContext(props);
1108
1108
  };
1109
1109
  var init = async () => {
1110
- await import("./llmz-VGZUUM3U.js");
1110
+ await import("./llmz-WPO4HYQY.js");
1111
1111
  await import("./component-WFVDVSDK.js");
1112
- await import("./tool-SFRUHH7M.js");
1112
+ await import("./tool-GEBXW6AQ.js");
1113
1113
  await import("./exit-YLO7BY7Z.js");
1114
1114
  await import("./jsx-AEHVFB3L.js");
1115
1115
  await import("./vm-I4G4IH7T.js");
1116
1116
  await import("./utils-RQHQ2KOG.js");
1117
1117
  await import("./truncator-BSP6PQPC.js");
1118
- await import("./typings-AYAZ5YA3.js");
1119
- await import("./dual-modes-7FEESYXQ.js");
1118
+ await import("./typings-3VYUEACY.js");
1119
+ await import("./dual-modes-DW3KRXT2.js");
1120
1120
  };
1121
1121
  export {
1122
1122
  Chat,
@@ -7,10 +7,10 @@ var _chunkM3LCKL55cjs = require('./chunk-M3LCKL55.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkPQILLTEMcjs = require('./chunk-PQILLTEM.cjs');
11
- require('./chunk-Q2O6MYES.cjs');
12
- require('./chunk-A63TROZX.cjs');
13
- require('./chunk-45GKLDDR.cjs');
10
+ var _chunkVADA6DMRcjs = require('./chunk-VADA6DMR.cjs');
11
+ require('./chunk-WP4F6KMW.cjs');
12
+ require('./chunk-273DEMEU.cjs');
13
+ require('./chunk-RLOPQZTQ.cjs');
14
14
 
15
15
 
16
16
 
@@ -106,7 +106,7 @@ var _executeContext = async (props) => {
106
106
  const { onIterationEnd, onTrace, onExit, onBeforeExecution, onAfterTool, onBeforeTool } = props;
107
107
  const cognitive = _cognitive.Cognitive.isCognitiveClient(props.client) ? props.client : new (0, _cognitive.Cognitive)({ client: props.client });
108
108
  const cleanups = [];
109
- const ctx = new (0, _chunkPQILLTEMcjs.Context)({
109
+ const ctx = new (0, _chunkVADA6DMRcjs.Context)({
110
110
  chat: props.chat,
111
111
  instructions: props.instructions,
112
112
  objects: props.objects,
@@ -121,7 +121,7 @@ var _executeContext = async (props) => {
121
121
  try {
122
122
  while (true) {
123
123
  if (ctx.iterations.length >= ctx.loop) {
124
- return new (0, _chunkPQILLTEMcjs.ErrorExecutionResult)(ctx, new (0, _chunkT63Y6GTWcjs.LoopExceededError)());
124
+ return new (0, _chunkVADA6DMRcjs.ErrorExecutionResult)(ctx, new (0, _chunkT63Y6GTWcjs.LoopExceededError)());
125
125
  }
126
126
  const iteration = await ctx.nextIteration();
127
127
  if (controller.signal.aborted) {
@@ -131,7 +131,7 @@ var _executeContext = async (props) => {
131
131
  reason: _nullishCoalesce(controller.signal.reason, () => ( "The operation was aborted"))
132
132
  }
133
133
  });
134
- return new (0, _chunkPQILLTEMcjs.ErrorExecutionResult)(ctx, _nullishCoalesce(controller.signal.reason, () => ( "The operation was aborted")));
134
+ return new (0, _chunkVADA6DMRcjs.ErrorExecutionResult)(ctx, _nullishCoalesce(controller.signal.reason, () => ( "The operation was aborted")));
135
135
  }
136
136
  cleanups.push(
137
137
  iteration.traces.onPush((traces) => {
@@ -167,25 +167,25 @@ var _executeContext = async (props) => {
167
167
  }
168
168
  if (iteration.status.type === "exit_success") {
169
169
  const exitName = iteration.status.exit_success.exit_name;
170
- return new (0, _chunkPQILLTEMcjs.SuccessExecutionResult)(ctx, {
170
+ return new (0, _chunkVADA6DMRcjs.SuccessExecutionResult)(ctx, {
171
171
  exit: iteration.exits.find((x) => x.name === exitName),
172
172
  result: iteration.status.exit_success.return_value
173
173
  });
174
174
  }
175
175
  if (iteration.status.type === "callback_requested") {
176
- return new (0, _chunkPQILLTEMcjs.PartialExecutionResult)(
176
+ return new (0, _chunkVADA6DMRcjs.PartialExecutionResult)(
177
177
  ctx,
178
178
  iteration.status.callback_requested.signal,
179
- _chunkPQILLTEMcjs.Snapshot.fromSignal(iteration.status.callback_requested.signal)
179
+ _chunkVADA6DMRcjs.Snapshot.fromSignal(iteration.status.callback_requested.signal)
180
180
  );
181
181
  }
182
182
  if (iteration.status.type === "thinking_requested" || iteration.status.type === "exit_error" || iteration.status.type === "execution_error" || iteration.status.type === "invalid_code_error") {
183
183
  continue;
184
184
  }
185
- return new (0, _chunkPQILLTEMcjs.ErrorExecutionResult)(ctx, _nullishCoalesce(iteration.error, () => ( `Unknown error. Status: ${iteration.status.type}`)));
185
+ return new (0, _chunkVADA6DMRcjs.ErrorExecutionResult)(ctx, _nullishCoalesce(iteration.error, () => ( `Unknown error. Status: ${iteration.status.type}`)));
186
186
  }
187
187
  } catch (error) {
188
- return new (0, _chunkPQILLTEMcjs.ErrorExecutionResult)(ctx, _nullishCoalesce(error, () => ( "Unknown error")));
188
+ return new (0, _chunkVADA6DMRcjs.ErrorExecutionResult)(ctx, _nullishCoalesce(error, () => ( "Unknown error")));
189
189
  } finally {
190
190
  for (const cleanup of cleanups) {
191
191
  try {
@@ -7,10 +7,10 @@ import {
7
7
  PartialExecutionResult,
8
8
  Snapshot,
9
9
  SuccessExecutionResult
10
- } from "./chunk-SHC22IAH.js";
11
- import "./chunk-EDVD6GWH.js";
12
- import "./chunk-CARJB3HP.js";
13
- import "./chunk-PBTEQAZK.js";
10
+ } from "./chunk-KQPGB6GB.js";
11
+ import "./chunk-HCC76DDO.js";
12
+ import "./chunk-7POUFE5M.js";
13
+ import "./chunk-IUE5BW56.js";
14
14
  import {
15
15
  AssignmentError,
16
16
  CodeExecutionError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Tool
3
- } from "./chunk-CARJB3HP.js";
4
- import "./chunk-PBTEQAZK.js";
3
+ } from "./chunk-7POUFE5M.js";
4
+ import "./chunk-IUE5BW56.js";
5
5
  import "./chunk-MYLTD5WT.js";
6
6
  import "./chunk-YEAWWJSJ.js";
7
7
  import "./chunk-ZORRILUV.js";
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkA63TROZXcjs = require('./chunk-A63TROZX.cjs');
4
- require('./chunk-45GKLDDR.cjs');
3
+ var _chunk273DEMEUcjs = require('./chunk-273DEMEU.cjs');
4
+ require('./chunk-RLOPQZTQ.cjs');
5
5
  require('./chunk-T63Y6GTW.cjs');
6
6
  require('./chunk-KIN7Y247.cjs');
7
7
  require('./chunk-WHNOR4ZU.cjs');
8
8
  require('./chunk-UQOBUJIQ.cjs');
9
9
 
10
10
 
11
- exports.Tool = _chunkA63TROZXcjs.Tool;
11
+ exports.Tool = _chunk273DEMEUcjs.Tool;
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk45GKLDDRcjs = require('./chunk-45GKLDDR.cjs');
3
+ var _chunkRLOPQZTQcjs = require('./chunk-RLOPQZTQ.cjs');
4
4
  require('./chunk-T63Y6GTW.cjs');
5
5
  require('./chunk-KIN7Y247.cjs');
6
6
  require('./chunk-WHNOR4ZU.cjs');
7
7
  require('./chunk-UQOBUJIQ.cjs');
8
8
 
9
9
 
10
- exports.getTypings = _chunk45GKLDDRcjs.getTypings;
10
+ exports.getTypings = _chunkRLOPQZTQcjs.getTypings;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTypings
3
- } from "./chunk-PBTEQAZK.js";
3
+ } from "./chunk-IUE5BW56.js";
4
4
  import "./chunk-MYLTD5WT.js";
5
5
  import "./chunk-YEAWWJSJ.js";
6
6
  import "./chunk-ZORRILUV.js";
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.26",
5
+ "version": "0.0.28",
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.45",
72
+ "@botpress/client": "1.27.1",
73
+ "@botpress/cognitive": "0.2.1",
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": {