@yeaft/webchat-agent 1.0.347 → 1.0.349
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/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +85 -85
- package/local-runtime/web/app.bundle.js.gz +0 -0
- package/local-runtime/web/index.html +1 -1
- package/package.json +1 -1
- package/yeaft/conversation/persist.js +4 -0
- package/yeaft/debug-trace.js +392 -103
- package/yeaft/engine.js +16 -3
- package/yeaft/router/continuity.js +12 -3
- package/yeaft/session.js +3 -14
- package/yeaft/web-bridge.js +7 -1
- package/yeaft/work-center/bridge.js +1 -0
- package/yeaft/work-center/runner.js +1 -1
|
Binary file
|
package/package.json
CHANGED
|
@@ -430,6 +430,7 @@ function serializeMessage(msg) {
|
|
|
430
430
|
// Defaults to 'main' for legacy messages (see migrate-messages-threadid.js).
|
|
431
431
|
fm.push(`threadId: ${msg.threadId || 'main'}`);
|
|
432
432
|
if (msg.turnId) fm.push(`turnId: ${msg.turnId}`);
|
|
433
|
+
if (msg.executionOrigin === 'route_forward') fm.push('executionOrigin: route_forward');
|
|
433
434
|
if (msg.imageAssetAnchor) fm.push('imageAssetAnchor: true');
|
|
434
435
|
// task-313: when a thread is merged into another, the messages keep
|
|
435
436
|
// their original thread id in `sourceThreadId` so the UI can still
|
|
@@ -576,6 +577,9 @@ export function parseMessage(raw) {
|
|
|
576
577
|
case 'tokens_est': msg.tokens_est = parseInt(value, 10); break;
|
|
577
578
|
case 'threadId': msg.threadId = value; break;
|
|
578
579
|
case 'turnId': msg.turnId = value; break;
|
|
580
|
+
case 'executionOrigin':
|
|
581
|
+
if (value === 'route_forward') msg.executionOrigin = value;
|
|
582
|
+
break;
|
|
579
583
|
case 'imageAssetAnchor': msg.imageAssetAnchor = value === 'true'; break;
|
|
580
584
|
case 'sourceThreadId': msg.sourceThreadId = value; break;
|
|
581
585
|
case 'sessionId': msg.sessionId = value; break;
|