@sandagent/runner-cli 0.9.16-beta.2 → 0.9.16-beta.3
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/bundle.mjs +12 -2
- package/package.json +4 -4
package/dist/bundle.mjs
CHANGED
|
@@ -1297,6 +1297,15 @@ var SandagentResourceLoader = class {
|
|
|
1297
1297
|
};
|
|
1298
1298
|
|
|
1299
1299
|
// ../../packages/runner-pi/dist/pi-runner.js
|
|
1300
|
+
function redactSecrets(text, secrets) {
|
|
1301
|
+
let result = text;
|
|
1302
|
+
for (const value of Object.values(secrets)) {
|
|
1303
|
+
if (value.length < 4)
|
|
1304
|
+
continue;
|
|
1305
|
+
result = result.split(value).join("[REDACTED]");
|
|
1306
|
+
}
|
|
1307
|
+
return result;
|
|
1308
|
+
}
|
|
1300
1309
|
function buildEnvInjectedBashTool(cwd, extraEnv) {
|
|
1301
1310
|
const bashAgentTool = createBashTool(cwd, {
|
|
1302
1311
|
spawnHook: (ctx) => ({
|
|
@@ -1308,7 +1317,7 @@ function buildEnvInjectedBashTool(cwd, extraEnv) {
|
|
|
1308
1317
|
name: bashAgentTool.name,
|
|
1309
1318
|
label: bashAgentTool.label ?? "bash",
|
|
1310
1319
|
description: bashAgentTool.description,
|
|
1311
|
-
// biome-ignore lint/suspicious/noExplicitAny:
|
|
1320
|
+
// biome-ignore lint/suspicious/noExplicitAny: TypeBox schema from pi internals
|
|
1312
1321
|
parameters: bashAgentTool.parameters,
|
|
1313
1322
|
execute(toolCallId, params, signal, onUpdate) {
|
|
1314
1323
|
return bashAgentTool.execute(toolCallId, params, signal, onUpdate);
|
|
@@ -1649,7 +1658,8 @@ ${options.systemPrompt}` : options.systemPrompt);
|
|
|
1649
1658
|
|
|
1650
1659
|
`;
|
|
1651
1660
|
} else if (event.type === "tool_execution_end") {
|
|
1652
|
-
const
|
|
1661
|
+
const rawOutput = extractToolResultText(event.result);
|
|
1662
|
+
const output = event.toolName === "bash" && options.env && Object.keys(options.env).length > 0 ? redactSecrets(rawOutput, options.env) : rawOutput;
|
|
1653
1663
|
yield `data: ${JSON.stringify({ type: "tool-output-available", toolCallId: event.toolCallId, output, isError: event.isError, dynamic: true, providerExecuted: true })}
|
|
1654
1664
|
|
|
1655
1665
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sandagent/runner-cli",
|
|
3
|
-
"version": "0.9.16-beta.
|
|
3
|
+
"version": "0.9.16-beta.3",
|
|
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,12 +53,12 @@
|
|
|
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
56
|
"@sandagent/runner-claude": "0.6.2",
|
|
58
|
-
"@sandagent/runner-codex": "0.6.2",
|
|
59
57
|
"@sandagent/runner-gemini": "0.6.2",
|
|
60
58
|
"@sandagent/runner-opencode": "0.6.2",
|
|
61
|
-
"@sandagent/runner-
|
|
59
|
+
"@sandagent/runner-core": "0.1.1-beta.0",
|
|
60
|
+
"@sandagent/runner-pi": "0.6.4-beta.0",
|
|
61
|
+
"@sandagent/runner-codex": "0.6.2"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "tsc && pnpm bundle",
|