@sandagent/runner-cli 0.8.1 → 0.8.2

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/bundle.mjs +7 -5
  2. package/package.json +3 -3
package/dist/bundle.mjs CHANGED
@@ -767,13 +767,15 @@ function toToolEndPayload(event) {
767
767
  status: item.status,
768
768
  exitCode: item.exit_code,
769
769
  output: item.aggregated_output
770
- }
770
+ },
771
+ isError: item.exit_code !== 0
771
772
  };
772
773
  }
773
774
  if (item.type === "mcp_tool_call") {
774
775
  return {
775
776
  toolCallId: item.id,
776
- result: item.result ?? item.error ?? { status: item.status }
777
+ result: item.result ?? item.error ?? { status: item.status },
778
+ isError: item.error != null || item.status === "failed"
777
779
  };
778
780
  }
779
781
  if (item.type === "web_search") {
@@ -836,7 +838,7 @@ function createCodexRunner(options) {
836
838
  }
837
839
  const toolEnd = toToolEndPayload(event);
838
840
  if (toolEnd) {
839
- yield `data: ${JSON.stringify({ type: "tool-output-available", toolCallId: toolEnd.toolCallId, output: toolEnd.result })}
841
+ yield `data: ${JSON.stringify({ type: "tool-output-available", toolCallId: toolEnd.toolCallId, output: toolEnd.result, isError: toolEnd.isError })}
840
842
 
841
843
  `;
842
844
  }
@@ -1162,8 +1164,8 @@ import { getModel } from "@mariozechner/pi-ai";
1162
1164
  import { AuthStorage, ModelRegistry, SessionManager, createAgentSession } from "@mariozechner/pi-coding-agent";
1163
1165
 
1164
1166
  // ../../packages/runner-pi/dist/sandagent-resource-loader.js
1165
- import { join as join3 } from "node:path";
1166
1167
  import { homedir } from "node:os";
1168
+ import { join as join3 } from "node:path";
1167
1169
  import { DefaultResourceLoader, loadSkills } from "@mariozechner/pi-coding-agent";
1168
1170
  var SandagentResourceLoader = class {
1169
1171
  constructor(options = {}) {
@@ -1471,7 +1473,7 @@ function createPiRunner(options = {}) {
1471
1473
 
1472
1474
  `;
1473
1475
  } else if (event.type === "tool_execution_end") {
1474
- yield `data: ${JSON.stringify({ type: "tool-output-available", toolCallId: event.toolCallId, output: event.result, dynamic: true })}
1476
+ yield `data: ${JSON.stringify({ type: "tool-output-available", toolCallId: event.toolCallId, output: event.result, isError: event.isError, dynamic: true })}
1475
1477
 
1476
1478
  `;
1477
1479
  } else if (event.type === "agent_end") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sandagent/runner-cli",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "SandAgent Runner CLI - Like gemini-cli or claude-code, runs in your local terminal with AI SDK UI streaming",
5
5
  "type": "module",
6
6
  "bin": {
@@ -55,9 +55,9 @@
55
55
  "vitest": "^1.6.1",
56
56
  "@sandagent/runner-claude": "0.6.2",
57
57
  "@sandagent/runner-codex": "0.6.2",
58
+ "@sandagent/runner-gemini": "0.6.2",
58
59
  "@sandagent/runner-opencode": "0.6.2",
59
- "@sandagent/runner-pi": "0.6.3",
60
- "@sandagent/runner-gemini": "0.6.2"
60
+ "@sandagent/runner-pi": "0.6.3"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "tsc && pnpm bundle",