@exaudeus/workrail 3.26.0 → 3.26.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.
|
@@ -384,7 +384,9 @@ function makeContinueWorkflowTool(sessionId, ctx, onAdvance, onComplete, schemas
|
|
|
384
384
|
function makeBashTool(workspacePath, schemas) {
|
|
385
385
|
return {
|
|
386
386
|
name: 'Bash',
|
|
387
|
-
description: 'Execute a shell command. Throws on non-zero exit code. ' +
|
|
387
|
+
description: 'Execute a shell command. Throws on failure (non-zero exit with stderr, or exit code 2+). ' +
|
|
388
|
+
'Exit code 1 with empty stderr is treated as "no match found" (standard grep semantics) and ' +
|
|
389
|
+
'returns empty output without throwing. ' +
|
|
388
390
|
`Maximum execution time: ${BASH_TIMEOUT_MS / 1000}s.`,
|
|
389
391
|
inputSchema: schemas['BashParams'],
|
|
390
392
|
label: 'Bash',
|
|
@@ -407,6 +409,12 @@ function makeBashTool(workspacePath, schemas) {
|
|
|
407
409
|
const stderr = String(e.stderr ?? '');
|
|
408
410
|
const rawCode = e.code;
|
|
409
411
|
const signal = e.signal;
|
|
412
|
+
if (rawCode === 1 && !stderr.trim()) {
|
|
413
|
+
return {
|
|
414
|
+
content: [{ type: 'text', text: stdout || '(no output)' }],
|
|
415
|
+
details: { stdout, stderr },
|
|
416
|
+
};
|
|
417
|
+
}
|
|
410
418
|
const exitInfo = rawCode != null
|
|
411
419
|
? `exit ${String(rawCode)}`
|
|
412
420
|
: signal
|
package/dist/manifest.json
CHANGED
|
@@ -474,8 +474,8 @@
|
|
|
474
474
|
"bytes": 2791
|
|
475
475
|
},
|
|
476
476
|
"daemon/workflow-runner.js": {
|
|
477
|
-
"sha256": "
|
|
478
|
-
"bytes":
|
|
477
|
+
"sha256": "6dea8cd52c9e885b1b56a8c2485727e1a1db47c79912433514c37626209f780a",
|
|
478
|
+
"bytes": 29981
|
|
479
479
|
},
|
|
480
480
|
"di/container.d.ts": {
|
|
481
481
|
"sha256": "003bb7fb7478d627524b9b1e76bd0a963a243794a687ff233b96dc0e33a06d9f",
|