@meshagent/meshagent-tailwind 0.44.0 → 0.44.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [0.44.2]
2
+ - Messaging chat clients now listen for participant add/remove and room status changes, emit accurate connected/disconnected/reconnecting/reconnected transitions, and reopen open thread sessions after reconnect.
3
+ - Sending agent messages can now skip waiting for an available participant when the caller opts into offline delivery.
4
+ - Thread storage now reissues watch and list requests after reconnect so watched thread state comes back automatically.
5
+ - Successful tool-call completions no longer create transient tool-call status entries, reducing status noise in threaded chat views.
6
+
7
+ ## [0.44.1]
8
+ - Stability
9
+
1
10
  ## [0.44.0]
2
11
  - TypeScript agent clients now support thread watch/unwatch, multiple thread storages, and richer start-thread payloads, including tool-choice metadata.
3
12
  - Chat sessions now preserve event timestamps, reset replay state correctly, and handle more agent message types such as tool-call progress, secret requests, model changes, interrupts, and usage updates.
@@ -65,7 +65,6 @@ export declare class AgentThreadMessageStatusStore {
65
65
  private static readonly maxRemoteStatusClockSkewMs;
66
66
  private readonly touchedThreadPaths;
67
67
  private readonly statusByThreadPath;
68
- private readonly connectionStatusByThreadPath;
69
68
  private readonly pendingMessagesByThreadPath;
70
69
  private readonly toolCallAccumulatorsByThreadPath;
71
70
  apply(message: AgentMessage, options?: {
@@ -79,7 +78,6 @@ export declare class AgentThreadMessageStatusStore {
79
78
  supportsAgentMessages: boolean;
80
79
  }): ChatThreadStatusState;
81
80
  private applyStatus;
82
- private applyConnectionStatus;
83
81
  private statusStartedAt;
84
82
  private applyToolCallArgumentsDelta;
85
83
  private applyToolCallLifecycle;
@@ -139,18 +139,9 @@ class AgentThreadMessageStatusStore {
139
139
  static maxRemoteStatusClockSkewMs = 2 * 60 * 1e3;
140
140
  touchedThreadPaths = /* @__PURE__ */ new Set();
141
141
  statusByThreadPath = /* @__PURE__ */ new Map();
142
- connectionStatusByThreadPath = /* @__PURE__ */ new Map();
143
142
  pendingMessagesByThreadPath = /* @__PURE__ */ new Map();
144
143
  toolCallAccumulatorsByThreadPath = /* @__PURE__ */ new Map();
145
144
  apply(message, options = {}) {
146
- if (message.type === import_meshagent_agents.agentConnectionStatusType) {
147
- const normalizedPath = normalizeString(options.path);
148
- if (normalizedPath == null) {
149
- return false;
150
- }
151
- this.touchedThreadPaths.add(normalizedPath);
152
- return this.applyConnectionStatus(normalizedPath, message);
153
- }
154
145
  if (!isAgentThreadMessage(message) || message.threadId.trim() === "") {
155
146
  return false;
156
147
  }
@@ -223,13 +214,12 @@ class AgentThreadMessageStatusStore {
223
214
  }
224
215
  this.touchedThreadPaths.delete(normalizedPath);
225
216
  this.statusByThreadPath.delete(normalizedPath);
226
- this.connectionStatusByThreadPath.delete(normalizedPath);
227
217
  this.pendingMessagesByThreadPath.delete(normalizedPath);
228
218
  this.toolCallAccumulatorsByThreadPath.delete(normalizedPath);
229
219
  }
230
220
  state(params) {
231
221
  const normalizedPath = params.path.trim();
232
- const status = this.connectionStatusByThreadPath.get(normalizedPath) ?? this.statusByThreadPath.get(normalizedPath);
222
+ const status = this.statusByThreadPath.get(normalizedPath);
233
223
  const pendingMessages = [...this.pendingMessagesByThreadPath.get(normalizedPath)?.values() ?? []];
234
224
  if (status == null && pendingMessages.length === 0) {
235
225
  return new ChatThreadStatusState({ supportsAgentMessages: params.supportsAgentMessages });
@@ -286,28 +276,6 @@ class AgentThreadMessageStatusStore {
286
276
  this.statusByThreadPath.set(threadPath, next);
287
277
  return true;
288
278
  }
289
- applyConnectionStatus(threadPath, message) {
290
- const status = message.status.trim().toLowerCase();
291
- if (status === "connected" || status === "reconnected") {
292
- return this.connectionStatusByThreadPath.delete(threadPath);
293
- }
294
- const fallbackText = status === "reconnecting" ? "Reconnecting" : status === "disconnected" ? "Disconnected" : normalizeString(message.message);
295
- if (fallbackText == null) {
296
- return false;
297
- }
298
- const previous = this.connectionStatusByThreadPath.get(threadPath);
299
- const next = {
300
- text: normalizeString(message.message) ?? fallbackText,
301
- startedAt: /* @__PURE__ */ new Date(),
302
- mode: "busy",
303
- totalBytesFromStatus: false
304
- };
305
- if (previous != null && previous.text === next.text && previous.mode === next.mode) {
306
- return false;
307
- }
308
- this.connectionStatusByThreadPath.set(threadPath, next);
309
- return true;
310
- }
311
279
  statusStartedAt(parsedStartedAt, previousStartedAt) {
312
280
  if (previousStartedAt != null) {
313
281
  return previousStartedAt;
@@ -65,7 +65,6 @@ export declare class AgentThreadMessageStatusStore {
65
65
  private static readonly maxRemoteStatusClockSkewMs;
66
66
  private readonly touchedThreadPaths;
67
67
  private readonly statusByThreadPath;
68
- private readonly connectionStatusByThreadPath;
69
68
  private readonly pendingMessagesByThreadPath;
70
69
  private readonly toolCallAccumulatorsByThreadPath;
71
70
  apply(message: AgentMessage, options?: {
@@ -79,7 +78,6 @@ export declare class AgentThreadMessageStatusStore {
79
78
  supportsAgentMessages: boolean;
80
79
  }): ChatThreadStatusState;
81
80
  private applyStatus;
82
- private applyConnectionStatus;
83
81
  private statusStartedAt;
84
82
  private applyToolCallArgumentsDelta;
85
83
  private applyToolCallLifecycle;
@@ -1,5 +1,4 @@
1
1
  import {
2
- agentConnectionStatusType,
3
2
  agentThreadClearedType,
4
3
  agentThreadStatusType,
5
4
  agentToolCallArgumentsDeltaType,
@@ -129,18 +128,9 @@ class AgentThreadMessageStatusStore {
129
128
  static maxRemoteStatusClockSkewMs = 2 * 60 * 1e3;
130
129
  touchedThreadPaths = /* @__PURE__ */ new Set();
131
130
  statusByThreadPath = /* @__PURE__ */ new Map();
132
- connectionStatusByThreadPath = /* @__PURE__ */ new Map();
133
131
  pendingMessagesByThreadPath = /* @__PURE__ */ new Map();
134
132
  toolCallAccumulatorsByThreadPath = /* @__PURE__ */ new Map();
135
133
  apply(message, options = {}) {
136
- if (message.type === agentConnectionStatusType) {
137
- const normalizedPath = normalizeString(options.path);
138
- if (normalizedPath == null) {
139
- return false;
140
- }
141
- this.touchedThreadPaths.add(normalizedPath);
142
- return this.applyConnectionStatus(normalizedPath, message);
143
- }
144
134
  if (!isAgentThreadMessage(message) || message.threadId.trim() === "") {
145
135
  return false;
146
136
  }
@@ -213,13 +203,12 @@ class AgentThreadMessageStatusStore {
213
203
  }
214
204
  this.touchedThreadPaths.delete(normalizedPath);
215
205
  this.statusByThreadPath.delete(normalizedPath);
216
- this.connectionStatusByThreadPath.delete(normalizedPath);
217
206
  this.pendingMessagesByThreadPath.delete(normalizedPath);
218
207
  this.toolCallAccumulatorsByThreadPath.delete(normalizedPath);
219
208
  }
220
209
  state(params) {
221
210
  const normalizedPath = params.path.trim();
222
- const status = this.connectionStatusByThreadPath.get(normalizedPath) ?? this.statusByThreadPath.get(normalizedPath);
211
+ const status = this.statusByThreadPath.get(normalizedPath);
223
212
  const pendingMessages = [...this.pendingMessagesByThreadPath.get(normalizedPath)?.values() ?? []];
224
213
  if (status == null && pendingMessages.length === 0) {
225
214
  return new ChatThreadStatusState({ supportsAgentMessages: params.supportsAgentMessages });
@@ -276,28 +265,6 @@ class AgentThreadMessageStatusStore {
276
265
  this.statusByThreadPath.set(threadPath, next);
277
266
  return true;
278
267
  }
279
- applyConnectionStatus(threadPath, message) {
280
- const status = message.status.trim().toLowerCase();
281
- if (status === "connected" || status === "reconnected") {
282
- return this.connectionStatusByThreadPath.delete(threadPath);
283
- }
284
- const fallbackText = status === "reconnecting" ? "Reconnecting" : status === "disconnected" ? "Disconnected" : normalizeString(message.message);
285
- if (fallbackText == null) {
286
- return false;
287
- }
288
- const previous = this.connectionStatusByThreadPath.get(threadPath);
289
- const next = {
290
- text: normalizeString(message.message) ?? fallbackText,
291
- startedAt: /* @__PURE__ */ new Date(),
292
- mode: "busy",
293
- totalBytesFromStatus: false
294
- };
295
- if (previous != null && previous.text === next.text && previous.mode === next.mode) {
296
- return false;
297
- }
298
- this.connectionStatusByThreadPath.set(threadPath, next);
299
- return true;
300
- }
301
268
  statusStartedAt(parsedStartedAt, previousStartedAt) {
302
269
  if (previousStartedAt != null) {
303
270
  return previousStartedAt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshagent/meshagent-tailwind",
3
- "version": "0.44.0",
3
+ "version": "0.44.2",
4
4
  "description": "Meshagent Tailwind Components",
5
5
  "homepage": "https://github.com/meshagent/meshagent-tailwind",
6
6
  "scripts": {
@@ -34,9 +34,9 @@
34
34
  "CHANGELOG.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@meshagent/meshagent": "^0.44.0",
38
- "@meshagent/meshagent-agents": "^0.44.0",
39
- "@meshagent/meshagent-react": "^0.44.0",
37
+ "@meshagent/meshagent": "^0.44.2",
38
+ "@meshagent/meshagent-agents": "^0.44.2",
39
+ "@meshagent/meshagent-react": "^0.44.2",
40
40
  "@radix-ui/react-avatar": "^1.1.10",
41
41
  "@radix-ui/react-checkbox": "^1.3.2",
42
42
  "@radix-ui/react-dialog": "^1.1.14",