@sandagent/runner-cli 0.9.19-beta.0 → 0.9.19-beta.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.
- package/dist/bundle.mjs +10 -8
- package/package.json +4 -4
package/dist/bundle.mjs
CHANGED
|
@@ -1301,14 +1301,15 @@ function redactSecrets(text, secrets) {
|
|
|
1301
1301
|
if (Object.keys(secrets).length === 0)
|
|
1302
1302
|
return text;
|
|
1303
1303
|
let result = text;
|
|
1304
|
-
for (const
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1304
|
+
for (const [k, v] of Object.entries(secrets)) {
|
|
1305
|
+
result = result.split(k).join("");
|
|
1306
|
+
if (v.length > 0)
|
|
1307
|
+
result = result.split(v).join("");
|
|
1308
|
+
}
|
|
1309
|
+
result = result.replace(/^\s*=\s*\S*$/gm, "");
|
|
1310
|
+
result = result.replace(/\s*:\s*['"]["'],?\s*/g, "");
|
|
1311
|
+
result = result.replace(/\n{3,}/g, "\n\n");
|
|
1312
|
+
return result.trim();
|
|
1312
1313
|
}
|
|
1313
1314
|
function buildEnvInjectedBashTool(cwd, extraEnv) {
|
|
1314
1315
|
const bashAgentTool = createBashTool(cwd, {
|
|
@@ -1503,6 +1504,7 @@ function createPiRunner(options = {}) {
|
|
|
1503
1504
|
await resourceLoader.reload();
|
|
1504
1505
|
}
|
|
1505
1506
|
const customTools = options.env && Object.keys(options.env).length > 0 ? [buildEnvInjectedBashTool(cwd, options.env)] : [];
|
|
1507
|
+
const _secrets = options.env && Object.keys(options.env).length > 0 ? options.env : null;
|
|
1506
1508
|
const { session } = await createAgentSession({
|
|
1507
1509
|
cwd,
|
|
1508
1510
|
model,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sandagent/runner-cli",
|
|
3
|
-
"version": "0.9.19-beta.
|
|
3
|
+
"version": "0.9.19-beta.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,10 +55,10 @@
|
|
|
55
55
|
"vitest": "^1.6.1",
|
|
56
56
|
"@sandagent/runner-core": "0.1.1-beta.0",
|
|
57
57
|
"@sandagent/runner-claude": "0.6.2",
|
|
58
|
-
"@sandagent/runner-codex": "0.6.2",
|
|
59
58
|
"@sandagent/runner-gemini": "0.6.2",
|
|
60
|
-
"@sandagent/runner-
|
|
61
|
-
"@sandagent/runner-opencode": "0.6.2"
|
|
59
|
+
"@sandagent/runner-codex": "0.6.2",
|
|
60
|
+
"@sandagent/runner-opencode": "0.6.2",
|
|
61
|
+
"@sandagent/runner-pi": "0.6.4-beta.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "tsc && pnpm bundle",
|