@spexcode/transcript 0.7.0-next.10 → 0.7.0-next.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/parsers.js +2 -1
- package/package.json +1 -1
package/dist/parsers.js
CHANGED
|
@@ -458,7 +458,8 @@ export function opencodeEvents(value) {
|
|
|
458
458
|
const state = object(part.state);
|
|
459
459
|
const status = (string(state?.status) ?? '').toLowerCase();
|
|
460
460
|
const tool = { id: string(part.callID ?? part.id) ?? `tool-${turn.tools.length}`, name: string(part.tool) ?? 'tool', input: state?.input === undefined ? undefined : compact(state.input), outputLines: 0, outputBytes: 0 };
|
|
461
|
-
|
|
461
|
+
// the terminal states of OpenCode's ToolState union — a call still pending or running has no result yet
|
|
462
|
+
if (/completed|error/.test(status)) {
|
|
462
463
|
const output = compact(state?.output ?? state?.error ?? '');
|
|
463
464
|
tool.output = output.slice(0, MAX_OUTPUT_BYTES);
|
|
464
465
|
tool.outputBytes = Buffer.byteLength(output);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spexcode/transcript",
|
|
3
|
-
"version": "0.7.0-next.
|
|
3
|
+
"version": "0.7.0-next.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Normalized agent transcripts: one parser per harness, a bounded interval reader over a native thread file or an in-memory event stream, and the full/delta frame protocol every transport and renderer share.",
|
|
6
6
|
"files": [
|