@waniwani/sdk 0.2.6-beta.0 → 0.2.6-beta.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.
@@ -1,5 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { ContentBlock } from '@modelcontextprotocol/sdk/types.js';
3
4
 
4
5
  interface ChatTheme {
5
6
  /** Primary brand color (bubble, send button, user messages) */
@@ -140,6 +141,12 @@ type ChatWidgetProps = ChatBarProps;
140
141
 
141
142
  declare const ChatBar: react.ForwardRefExoticComponent<ChatBarProps & react.RefAttributes<ChatHandle>>;
142
143
 
144
+ type ModelContextContentBlock = ContentBlock;
145
+ type ModelContextUpdate = {
146
+ content?: ModelContextContentBlock[];
147
+ structuredContent?: Record<string, unknown>;
148
+ };
149
+
143
150
  type McpAppDisplayMode = "inline" | "pip" | "fullscreen";
144
151
  interface McpAppFrameProps {
145
152
  resourceUri: string;
@@ -167,6 +174,7 @@ interface McpAppFrameProps {
167
174
  type: string;
168
175
  text?: string;
169
176
  }>;
177
+ modelContext?: ModelContextUpdate;
170
178
  }) => void;
171
179
  /** Called when a widget calls a tool via `tools/call` (MCP Apps standard). */
172
180
  onCallTool?: (params: {