@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.
Binary file
@@ -16,6 +16,6 @@
16
16
  </head>
17
17
  <body>
18
18
  <div id="app"></div>
19
- <script type="module" src="app.bundle.js?v=602b0ed2"></script>
19
+ <script type="module" src="app.bundle.js?v=9e91448e"></script>
20
20
  </body>
21
21
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "1.0.347",
3
+ "version": "1.0.349",
4
4
  "description": "Remote worker agent for Yeaft Web Code Agent — connects the native Yeaft engine, CLI providers, and workbench tools",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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;