@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.
@@ -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
- * Show tool call details (request/response panels). When `false`, each
1507
- * tool call renders as a compact indicator so the user can still tell
1508
- * the agent is doing something, but the JSON panels are hidden.
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?: boolean;
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