@inferencesh/sdk 0.6.27 → 0.6.28

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.
@@ -38,7 +38,7 @@ export function createActions(ctx) {
38
38
  const chatId = getChatId();
39
39
  // TODO: remove startsWith once the provider normalizes chatId to full ID after first fetchChat
40
40
  // Support short ID matching (URL short IDs are prefixes of full IDs)
41
- if (chatId && message.chat_id !== chatId && !message.chat_id.startsWith(chatId))
41
+ if (chatId && message.chat_id && message.chat_id !== chatId && !message.chat_id.startsWith(chatId))
42
42
  return;
43
43
  dispatch({ type: 'UPDATE_MESSAGE', payload: message });
44
44
  // Dispatch client tool handlers when ready (in_progress or awaiting_input for backwards compat)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.6.27",
3
+ "version": "0.6.28",
4
4
  "description": "Official JavaScript/TypeScript SDK for inference.sh - Run AI models with a simple API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",