perstack 0.0.113 → 0.0.114

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/bin/cli.js CHANGED
@@ -16302,7 +16302,7 @@ const EMPTY_COMPLETION_RESULT = { completion: {
16302
16302
  //#endregion
16303
16303
  //#region ../base/package.json
16304
16304
  var name$6 = "@perstack/base";
16305
- var version$2 = "0.0.76";
16305
+ var version$2 = "0.0.77";
16306
16306
 
16307
16307
  //#endregion
16308
16308
  //#region ../base/src/tools/todo.ts
@@ -21310,7 +21310,7 @@ async function expertVersionsHandler(scopeName, options) {
21310
21310
 
21311
21311
  //#endregion
21312
21312
  //#region ../../packages/runtime/package.json
21313
- var version$1 = "0.0.129";
21313
+ var version$1 = "0.0.130";
21314
21314
 
21315
21315
  //#endregion
21316
21316
  //#region ../../packages/runtime/src/helpers/usage.ts
@@ -93327,16 +93327,19 @@ async function initLogic({ setting, checkpoint }) {
93327
93327
  switch (checkpoint.status) {
93328
93328
  case "init":
93329
93329
  if (!setting.input.text) throw new Error("Input message is undefined");
93330
+ if (!setting.model) throw new Error("Model is not resolved");
93330
93331
  return startRun(setting, checkpoint, {
93331
93332
  initialCheckpoint: checkpoint,
93332
93333
  inputMessages: [createInstructionMessage(expert, setting.startedAt), createUserMessage([{
93333
93334
  type: "textPart",
93334
93335
  text: setting.input.text
93335
- }])]
93336
+ }])],
93337
+ model: setting.model
93336
93338
  });
93337
93339
  case "stoppedByDelegate":
93338
93340
  case "stoppedByInteractiveTool": {
93339
93341
  if (!setting.input.interactiveToolCallResult) throw new Error("Interactive tool call result is undefined");
93342
+ if (!setting.model) throw new Error("Model is not resolved");
93340
93343
  const { toolCallId, toolName, skillName, text } = setting.input.interactiveToolCallResult;
93341
93344
  const pendingToolCalls = checkpoint.pendingToolCalls ?? [];
93342
93345
  const newToolResult = {
@@ -93351,20 +93354,25 @@ async function initLogic({ setting, checkpoint }) {
93351
93354
  };
93352
93355
  const updatedPartialResults = [...checkpoint.partialToolResults ?? [], newToolResult];
93353
93356
  const updatedPendingToolCalls = pendingToolCalls.filter((tc) => tc.id !== toolCallId);
93354
- return resumeFromStop(setting, checkpoint, { checkpoint: {
93355
- ...checkpoint,
93356
- partialToolResults: updatedPartialResults,
93357
- pendingToolCalls: updatedPendingToolCalls
93358
- } });
93357
+ return resumeFromStop(setting, checkpoint, {
93358
+ checkpoint: {
93359
+ ...checkpoint,
93360
+ partialToolResults: updatedPartialResults,
93361
+ pendingToolCalls: updatedPendingToolCalls
93362
+ },
93363
+ model: setting.model
93364
+ });
93359
93365
  }
93360
93366
  default:
93361
93367
  if (!setting.input.text) throw new Error("Input message is undefined");
93368
+ if (!setting.model) throw new Error("Model is not resolved");
93362
93369
  return startRun(setting, checkpoint, {
93363
93370
  initialCheckpoint: checkpoint,
93364
93371
  inputMessages: [createUserMessage([{
93365
93372
  type: "textPart",
93366
93373
  text: setting.input.text
93367
- }])]
93374
+ }])],
93375
+ model: setting.model
93368
93376
  });
93369
93377
  }
93370
93378
  }
@@ -122793,7 +122801,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
122793
122801
  //#endregion
122794
122802
  //#region package.json
122795
122803
  var name = "perstack";
122796
- var version = "0.0.113";
122804
+ var version = "0.0.114";
122797
122805
  var description = "PerStack CLI";
122798
122806
 
122799
122807
  //#endregion