botinabox 2.16.9 → 2.16.11
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/index.js +15 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4959,12 +4959,27 @@ var RunManager = class {
|
|
|
4959
4959
|
});
|
|
4960
4960
|
}
|
|
4961
4961
|
}
|
|
4962
|
+
if (!succeeded) {
|
|
4963
|
+
const truncated = result.output ? result.output.length > 500 ? `${result.output.slice(0, 500)}\u2026(truncated, ${result.output.length} chars)` : result.output : "<empty>";
|
|
4964
|
+
console.warn(
|
|
4965
|
+
`[run-manager] finishRun failure runId=${runId} agentId=${agentId} taskId=${taskId} exitCode=${result.exitCode} model=${result.model ?? "unknown"} output=${JSON.stringify(truncated)}`
|
|
4966
|
+
);
|
|
4967
|
+
}
|
|
4968
|
+
const startedAtIso = run["started_at"];
|
|
4969
|
+
const durationMs = startedAtIso ? Math.max(0, Date.now() - new Date(startedAtIso).getTime()) : void 0;
|
|
4962
4970
|
await this.hooks.emit("run.completed", {
|
|
4963
4971
|
runId,
|
|
4964
4972
|
agentId,
|
|
4965
4973
|
taskId,
|
|
4966
4974
|
status,
|
|
4967
4975
|
exitCode: result.exitCode,
|
|
4976
|
+
// Forwarded so the observation pipeline (and any other consumer
|
|
4977
|
+
// reading ctx.output) gets the error text from finishRun's catch
|
|
4978
|
+
// path. Without this, every dispatch failure produces an empty
|
|
4979
|
+
// raw_text on its observation row and a null error_message visible
|
|
4980
|
+
// to operators — the exact failure mode this commit fixes.
|
|
4981
|
+
output: result.output,
|
|
4982
|
+
durationMs,
|
|
4968
4983
|
model: result.model,
|
|
4969
4984
|
provider: result.provider,
|
|
4970
4985
|
usage: result.usage
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botinabox",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.11",
|
|
4
4
|
"description": "Bot in a Box — framework for building multi-agent bots",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@types/uuid": "^10.0.0",
|
|
61
61
|
"ajv": "^8.17.1",
|
|
62
62
|
"cron-parser": "^4.9.0",
|
|
63
|
-
"latticesql": "^1.
|
|
63
|
+
"latticesql": "^1.16.0",
|
|
64
64
|
"uuid": "^13.0.0",
|
|
65
65
|
"yaml": "^2.7.0"
|
|
66
66
|
},
|