@seed-ship/mcp-ui-solid 2.8.1 → 2.9.0

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.
@@ -60,6 +60,7 @@ export interface ChatEvents {
60
60
 
61
61
  // --- Scratchpad (HITL shared workspace) ---
62
62
  onScratchpad: (event: ChatEventBase & { scratchpad: ScratchpadEvent }) => void
63
+ onScratchpadPreview: (event: ChatEventBase & { id: string; preview: ScratchpadState['preview'] }) => void
63
64
 
64
65
  // --- Fallback ---
65
66
  onCustomEvent: (type: string, event: ChatEventBase & { data: unknown }) => void
@@ -100,6 +101,10 @@ export interface ChatCommands {
100
101
  /** Show suggestion chips */
101
102
  showSuggestions: (items: SuggestionItem[]) => void
102
103
 
104
+ // --- Scratchpad ---
105
+ /** Send scratchpad filter/form changes to the agent */
106
+ updateScratchpad: (id: string, update: { filters?: Record<string, string | string[]>; formData?: Record<string, unknown> }) => void
107
+
103
108
  // --- Configuration ---
104
109
  /** Toggle a connector on/off */
105
110
  toggleConnector: (connectorId: string, enabled: boolean) => void
@@ -335,6 +340,10 @@ export interface ScratchpadState {
335
340
  /** Agent messages (explanations, questions) */
336
341
  agentMessages: Array<{ text: string; type: 'info' | 'question' | 'warning' }>
337
342
  status: 'loading' | 'ready' | 'waiting_human' | 'processing' | 'complete'
343
+ /** Endpoint for auto-refresh preview when filters change */
344
+ previewEndpoint?: string
345
+ /** Debounce delay for preview refresh (ms, default 500) */
346
+ previewDebounce?: number
338
347
  }
339
348
 
340
349
  export interface ScratchpadSection {