@pillar-ai/sdk 0.1.31 → 0.1.32

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.
@@ -100,8 +100,8 @@ export interface StreamCallbacks {
100
100
  onRegisteredTools?: (tools: Record<string, unknown>[]) => void;
101
101
  /** @deprecated Use onRegisteredTools instead */
102
102
  onRegisteredActions?: (actions: Record<string, unknown>[]) => void;
103
- /** Called on error */
104
- onError?: (error: string) => void;
103
+ /** Called on error, with optional structured data from the server */
104
+ onError?: (error: string, data?: Record<string, unknown>) => void;
105
105
  /** Called when conversation_started event is received (confirms conversation tracking) */
106
106
  onConversationStarted?: (conversationId: string, assistantMessageId?: string) => void;
107
107
  /** Called when stream is complete */
@@ -3,6 +3,7 @@
3
3
  *
4
4
  * A subtle, red-tinted progress-row-style error indicator with a retry button.
5
5
  * Shown at the bottom of the chat thread when an MCP request fails.
6
+ * When upgradeUrl is present (plan limit exceeded), shows an upgrade link instead.
6
7
  */
7
8
  import type { ChatError } from '../../store/chat';
8
9
  export interface ErrorRowProps {