@sandagent/runner-cli 0.9.16-beta.0 → 0.9.16-beta.1
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 +20 -2
- package/package.json +5 -5
package/dist/bundle.mjs
CHANGED
|
@@ -1298,6 +1298,7 @@ var SandagentResourceLoader = class {
|
|
|
1298
1298
|
|
|
1299
1299
|
// ../../packages/runner-pi/dist/pi-runner.js
|
|
1300
1300
|
var LOG_PREFIX2 = "[sandagent:pi]";
|
|
1301
|
+
var DEBUG_ENABLED = process.env.DEBUG === "true" || process.env.DEBUG === "1";
|
|
1301
1302
|
function parseModelSpec(model) {
|
|
1302
1303
|
const trimmed = model.trim();
|
|
1303
1304
|
const separator = trimmed.indexOf(":");
|
|
@@ -1382,8 +1383,7 @@ function getErrorFromAgentEndMessages(messages) {
|
|
|
1382
1383
|
return void 0;
|
|
1383
1384
|
}
|
|
1384
1385
|
function traceRawMessage(debugCwd, data, reset = false) {
|
|
1385
|
-
|
|
1386
|
-
if (!enabled)
|
|
1386
|
+
if (!DEBUG_ENABLED)
|
|
1387
1387
|
return;
|
|
1388
1388
|
try {
|
|
1389
1389
|
const file = join5(debugCwd, "pi-message-stream-debug.json");
|
|
@@ -1444,6 +1444,10 @@ function createPiRunner(options = {}) {
|
|
|
1444
1444
|
applyModelOverrides(model, provider, options.env);
|
|
1445
1445
|
return {
|
|
1446
1446
|
async *run(userInput) {
|
|
1447
|
+
if (DEBUG_ENABLED) {
|
|
1448
|
+
const envKeys = Object.keys(options.env ?? {}).sort();
|
|
1449
|
+
console.error(`${LOG_PREFIX2} runner env keys: ${envKeys.length > 0 ? envKeys.join(",") : "(none)"}`);
|
|
1450
|
+
}
|
|
1447
1451
|
if (inlineApiKey !== void 0) {
|
|
1448
1452
|
modelRegistry.authStorage.setRuntimeApiKey(provider, inlineApiKey);
|
|
1449
1453
|
}
|
|
@@ -1478,6 +1482,20 @@ function createPiRunner(options = {}) {
|
|
|
1478
1482
|
})
|
|
1479
1483
|
}
|
|
1480
1484
|
});
|
|
1485
|
+
if (DEBUG_ENABLED) {
|
|
1486
|
+
const debugCtx = {
|
|
1487
|
+
command: "env",
|
|
1488
|
+
cwd,
|
|
1489
|
+
env: { PATH: process.env.PATH ?? "" }
|
|
1490
|
+
};
|
|
1491
|
+
const debugSpawn = tools.find((t) => t.name === "bash") ? debugCtx : debugCtx;
|
|
1492
|
+
const merged = {
|
|
1493
|
+
...debugSpawn.env,
|
|
1494
|
+
...options.env ?? {}
|
|
1495
|
+
};
|
|
1496
|
+
const mergedKeys = Object.keys(merged).sort();
|
|
1497
|
+
console.error(`${LOG_PREFIX2} bash spawn merged env key count: ${mergedKeys.length}`);
|
|
1498
|
+
}
|
|
1481
1499
|
const { session } = await createAgentSession({
|
|
1482
1500
|
cwd,
|
|
1483
1501
|
model,
|
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.1",
|
|
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-gemini": "0.6.2",
|
|
57
|
-
"@sandagent/runner-pi": "0.6.4-beta.0",
|
|
58
56
|
"@sandagent/runner-core": "0.1.1-beta.0",
|
|
59
|
-
"@sandagent/runner-
|
|
57
|
+
"@sandagent/runner-claude": "0.6.2",
|
|
60
58
|
"@sandagent/runner-codex": "0.6.2",
|
|
61
|
-
"@sandagent/runner-
|
|
59
|
+
"@sandagent/runner-gemini": "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",
|