@waniwani/sdk 0.13.1 → 0.13.3
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/embed.js +51 -51
- package/dist/chat/embed.js.map +1 -1
- package/dist/chat/index.d.ts +26 -8
- package/dist/chat/index.js +7 -7
- package/dist/chat/index.js.map +1 -1
- package/dist/legacy/index.d.ts +19 -5
- package/dist/legacy/index.js +12 -12
- package/dist/legacy/index.js.map +1 -1
- package/dist/mcp/index.js +5 -5
- package/dist/mcp/index.js.map +1 -1
- package/package.json +1 -1
package/dist/legacy/index.d.ts
CHANGED
|
@@ -1384,6 +1384,16 @@ interface ChatAppearance {
|
|
|
1384
1384
|
/** Per-property overrides applied on top of the preset. */
|
|
1385
1385
|
variables?: ChatTheme;
|
|
1386
1386
|
}
|
|
1387
|
+
/**
|
|
1388
|
+
* Tool call rendering mode.
|
|
1389
|
+
*
|
|
1390
|
+
* - `true` (default) — full request/response panels.
|
|
1391
|
+
* - `"titles-only"` — a compact text indicator with the tool title, no
|
|
1392
|
+
* JSON panels.
|
|
1393
|
+
* - `false` — tool calls are hidden entirely; a generic working indicator
|
|
1394
|
+
* shows while tools run.
|
|
1395
|
+
*/
|
|
1396
|
+
type ShowToolCalls = boolean | "titles-only";
|
|
1387
1397
|
|
|
1388
1398
|
interface ChatTheme {
|
|
1389
1399
|
/** Primary brand color (bubble, send button, user messages) */
|
|
@@ -1503,13 +1513,17 @@ interface ChatBaseProps {
|
|
|
1503
1513
|
*/
|
|
1504
1514
|
debug?: boolean;
|
|
1505
1515
|
/**
|
|
1506
|
-
*
|
|
1507
|
-
*
|
|
1508
|
-
*
|
|
1516
|
+
* How tool calls are rendered in the chat.
|
|
1517
|
+
*
|
|
1518
|
+
* - `true` (default) — full request/response panels.
|
|
1519
|
+
* - `"titles-only"` — a compact text indicator with the tool title, no
|
|
1520
|
+
* JSON panels.
|
|
1521
|
+
* - `false` — tool calls are hidden entirely; a generic working
|
|
1522
|
+
* indicator shows while tools run.
|
|
1523
|
+
*
|
|
1509
1524
|
* MCP App widgets attached to a tool call are always rendered.
|
|
1510
|
-
* Defaults to `true`.
|
|
1511
1525
|
*/
|
|
1512
|
-
showToolCalls?:
|
|
1526
|
+
showToolCalls?: ShowToolCalls;
|
|
1513
1527
|
/**
|
|
1514
1528
|
* Skip fetching `/config` and `/tools` from the API on mount.
|
|
1515
1529
|
* Use when the chat endpoint doesn't serve these routes (e.g. embed widgets
|