@sandagent/runner-cli 0.9.16-beta.4 → 0.9.16-beta.5

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 -4
  2. package/package.json +3 -3
package/dist/bundle.mjs CHANGED
@@ -1322,8 +1322,12 @@ function buildEnvInjectedBashTool(cwd, extraEnv) {
1322
1322
  description: bashAgentTool.description,
1323
1323
  // biome-ignore lint/suspicious/noExplicitAny: TypeBox schema from pi internals
1324
1324
  parameters: bashAgentTool.parameters,
1325
- execute(toolCallId, params, signal, onUpdate) {
1326
- return bashAgentTool.execute(toolCallId, params, signal, onUpdate);
1325
+ async execute(toolCallId, params, signal, onUpdate) {
1326
+ const result = await bashAgentTool.execute(toolCallId, params, signal, onUpdate);
1327
+ if (result?.content && Array.isArray(result.content)) {
1328
+ result.content = result.content.map((c) => c.type === "text" && typeof c.text === "string" ? { ...c, text: redactSecrets(c.text, extraEnv) } : c);
1329
+ }
1330
+ return result;
1327
1331
  }
1328
1332
  };
1329
1333
  }
@@ -1661,8 +1665,7 @@ ${options.systemPrompt}` : options.systemPrompt);
1661
1665
 
1662
1666
  `;
1663
1667
  } else if (event.type === "tool_execution_end") {
1664
- const rawOutput = extractToolResultText(event.result);
1665
- const output = event.toolName === "bash" && options.env && Object.keys(options.env).length > 0 ? redactSecrets(rawOutput, options.env) : rawOutput;
1668
+ const output = extractToolResultText(event.result);
1666
1669
  yield `data: ${JSON.stringify({ type: "tool-output-available", toolCallId: event.toolCallId, output, isError: event.isError, dynamic: true, providerExecuted: true })}
1667
1670
 
1668
1671
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sandagent/runner-cli",
3
- "version": "0.9.16-beta.4",
3
+ "version": "0.9.16-beta.5",
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": {
@@ -53,11 +53,11 @@
53
53
  "esbuild": "^0.27.2",
54
54
  "typescript": "^5.3.0",
55
55
  "vitest": "^1.6.1",
56
+ "@sandagent/runner-core": "0.1.1-beta.0",
57
+ "@sandagent/runner-codex": "0.6.2",
56
58
  "@sandagent/runner-gemini": "0.6.2",
57
59
  "@sandagent/runner-opencode": "0.6.2",
58
60
  "@sandagent/runner-pi": "0.6.4-beta.0",
59
- "@sandagent/runner-core": "0.1.1-beta.0",
60
- "@sandagent/runner-codex": "0.6.2",
61
61
  "@sandagent/runner-claude": "0.6.2"
62
62
  },
63
63
  "scripts": {