@tangle-network/agent-runtime 0.85.0 → 0.86.0
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/agent.js +2 -2
- package/dist/{chunk-DLAEEF26.js → chunk-3TZOXS7B.js} +59 -40
- package/dist/chunk-3TZOXS7B.js.map +1 -0
- package/dist/{chunk-QSYPMMWS.js → chunk-EJ7MAQN4.js} +3 -3
- package/dist/{chunk-XN5TIJGP.js → chunk-F7OO2SKB.js} +22 -2
- package/dist/chunk-F7OO2SKB.js.map +1 -0
- package/dist/{chunk-G7HQI6DB.js → chunk-U4TS65XZ.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/loop-runner-bin.js +3 -3
- package/dist/loops.d.ts +60 -25
- package/dist/loops.js +2 -2
- package/dist/mcp/bin.js +1 -1
- package/dist/mcp/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-DLAEEF26.js.map +0 -1
- package/dist/chunk-XN5TIJGP.js.map +0 -1
- /package/dist/{chunk-QSYPMMWS.js.map → chunk-EJ7MAQN4.js.map} +0 -0
- /package/dist/{chunk-G7HQI6DB.js.map → chunk-U4TS65XZ.js.map} +0 -0
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
definePersona,
|
|
6
6
|
runPersonified,
|
|
7
7
|
worktreeFanout
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3TZOXS7B.js";
|
|
9
9
|
import {
|
|
10
10
|
createExecutorRegistry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F7OO2SKB.js";
|
|
12
12
|
import {
|
|
13
13
|
runAnalystLoop
|
|
14
14
|
} from "./chunk-YPA5MLVE.js";
|
|
@@ -196,4 +196,4 @@ export {
|
|
|
196
196
|
runLoopRunnerCli,
|
|
197
197
|
parseLoopRunnerArgv
|
|
198
198
|
};
|
|
199
|
-
//# sourceMappingURL=chunk-
|
|
199
|
+
//# sourceMappingURL=chunk-EJ7MAQN4.js.map
|
|
@@ -2389,10 +2389,30 @@ async function* parseSseChatStream(body) {
|
|
|
2389
2389
|
sep = buf.indexOf("\n\n");
|
|
2390
2390
|
}
|
|
2391
2391
|
}
|
|
2392
|
+
const tail = parseSseStreamTail(buf);
|
|
2393
|
+
if (tail !== void 0 && tail !== "done") yield tail;
|
|
2392
2394
|
} finally {
|
|
2393
2395
|
reader.releaseLock();
|
|
2394
2396
|
}
|
|
2395
2397
|
}
|
|
2398
|
+
function parseSseStreamTail(buf) {
|
|
2399
|
+
const tail = buf.trim();
|
|
2400
|
+
if (!tail) return void 0;
|
|
2401
|
+
const framed = parseSseFrame(tail);
|
|
2402
|
+
if (framed !== void 0) return framed;
|
|
2403
|
+
let parsed;
|
|
2404
|
+
try {
|
|
2405
|
+
parsed = JSON.parse(tail);
|
|
2406
|
+
} catch {
|
|
2407
|
+
return void 0;
|
|
2408
|
+
}
|
|
2409
|
+
if (parsed.error) {
|
|
2410
|
+
throw new ValidationError(
|
|
2411
|
+
`bridgeExecutor: bridge upstream error: ${parsed.error.message ?? parsed.error.type ?? "unknown"}`
|
|
2412
|
+
);
|
|
2413
|
+
}
|
|
2414
|
+
return void 0;
|
|
2415
|
+
}
|
|
2396
2416
|
function parseSseFrame(frame) {
|
|
2397
2417
|
const dataLines = [];
|
|
2398
2418
|
for (const rawLine of frame.split("\n")) {
|
|
@@ -2411,7 +2431,7 @@ function parseSseFrame(frame) {
|
|
|
2411
2431
|
}
|
|
2412
2432
|
if (parsed.error) {
|
|
2413
2433
|
throw new ValidationError(
|
|
2414
|
-
`bridgeExecutor: bridge stream error: ${parsed.error.message ?? "unknown"}`
|
|
2434
|
+
`bridgeExecutor: bridge stream error: ${parsed.error.message ?? parsed.error.type ?? "unknown"}`
|
|
2415
2435
|
);
|
|
2416
2436
|
}
|
|
2417
2437
|
const out = {};
|
|
@@ -6590,4 +6610,4 @@ export {
|
|
|
6590
6610
|
createInProcessTransport,
|
|
6591
6611
|
serveCoordinationMcp
|
|
6592
6612
|
};
|
|
6593
|
-
//# sourceMappingURL=chunk-
|
|
6613
|
+
//# sourceMappingURL=chunk-F7OO2SKB.js.map
|