@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.
- package/dist/chat/index.d.ts +8 -0
- package/dist/chat/index.js +7 -5
- package/dist/chat/index.js.map +1 -1
- package/dist/chat/next-js/index.d.ts +21 -1
- package/dist/chat/next-js/index.js +9 -1
- package/dist/chat/next-js/index.js.map +1 -1
- package/dist/chat/server/index.d.ts +15 -0
- package/dist/chunk-OMMDVQYW.js +9 -0
- package/dist/chunk-OMMDVQYW.js.map +1 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.d.ts +72 -7
- package/dist/mcp/index.js +3 -3
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/react.d.ts +25 -4
- package/dist/mcp/react.js +6 -6
- package/dist/mcp/react.js.map +1 -1
- package/dist/{mcp-apps-client-6WEBHSGH.js → mcp-apps-client-AXOLX2YD.js} +2 -2
- package/dist/mcp-apps-client-AXOLX2YD.js.map +1 -0
- package/dist/openai-client-IAONK3N3.js +5 -0
- package/dist/openai-client-IAONK3N3.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-ZUGQBRJF.js +0 -3
- package/dist/chunk-ZUGQBRJF.js.map +0 -1
- package/dist/mcp-apps-client-6WEBHSGH.js.map +0 -1
- package/dist/openai-client-HLQSYZJC.js +0 -3
- package/dist/openai-client-HLQSYZJC.js.map +0 -1
package/dist/chat/index.d.ts
CHANGED
|
@@ -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: {
|