@getpochi/cli 0.5.47 → 0.5.48

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.
Files changed (2) hide show
  1. package/dist/cli.js +6 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -368449,7 +368449,7 @@ var {
368449
368449
  // package.json
368450
368450
  var package_default = {
368451
368451
  name: "@getpochi/cli",
368452
- version: "0.5.47",
368452
+ version: "0.5.48",
368453
368453
  type: "module",
368454
368454
  bin: {
368455
368455
  pochi: "src/cli.ts"
@@ -409714,14 +409714,18 @@ function toTaskStatus(message, finishReason) {
409714
409714
  }
409715
409715
  if (!finishReason)
409716
409716
  return "failed";
409717
+ let hasToolCall = false;
409717
409718
  for (const part of message.parts.slice(lastStepStart + 1)) {
409718
409719
  if (part.type === "tool-askFollowupQuestion" || part.type === "tool-attemptCompletion") {
409719
409720
  return "completed";
409720
409721
  }
409721
409722
  if (isToolUIPart(part)) {
409722
- return "pending-tool";
409723
+ hasToolCall = true;
409723
409724
  }
409724
409725
  }
409726
+ if (hasToolCall) {
409727
+ return "pending-tool";
409728
+ }
409725
409729
  if (finishReason !== "error") {
409726
409730
  return "pending-input";
409727
409731
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpochi/cli",
3
- "version": "0.5.47",
3
+ "version": "0.5.48",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "pochi": "dist/cli.js"