@yeaft/webchat-agent 0.1.827 → 0.1.828

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.1.827",
3
+ "version": "0.1.828",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -576,6 +576,7 @@ function projectPersistedToHistoryEntry(m) {
576
576
  }
577
577
  if (m.isError) entry.isError = true;
578
578
  if (m.ts) entry.ts = m.ts;
579
+ else if (m.time) entry.ts = m.time;
579
580
  if (Array.isArray(m.attachments) && m.attachments.length > 0) entry.attachments = m.attachments;
580
581
  if ((entry.role === 'user' || entry.role === 'assistant') && !entry.content && !entry.attachments) return null;
581
582
  return entry;
@@ -3680,6 +3681,7 @@ export async function handleUnifyLoadMoreHistory(msg) {
3680
3681
  ...(m.id ? { id: m.id } : {}),
3681
3682
  role: m.role,
3682
3683
  content: m.content,
3684
+ ts: m.ts || m.time || null,
3683
3685
  groupId: m.groupId || null,
3684
3686
  threadId: m.threadId || m.turnId || 'main',
3685
3687
  turnId: m.turnId || m.threadId || 'main',