@yeaft/webchat-agent 0.1.495 → 0.1.496

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.495",
3
+ "version": "0.1.496",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -128,6 +128,12 @@ function sendThreadListUpdate() {
128
128
  preview: t.preview || '',
129
129
  createdAt: t.createdAt,
130
130
  updatedAt: t.updatedAt,
131
+ // task-315: attached taskId (if any) so the UI can aggregate all
132
+ // messages belonging to a task across multiple threads. null when
133
+ // the thread has no attached task.
134
+ taskId: (typeof store.attachedTask === 'function')
135
+ ? (store.attachedTask(t.id) || null)
136
+ : null,
131
137
  // `running` — the thread whose id equals the store's currentId is
132
138
  // considered the active/running track. The UI uses this for the
133
139
  // green halo in the Active group.