sunpeak 0.14.3 → 0.15.1

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.
Files changed (128) hide show
  1. package/README.md +32 -28
  2. package/bin/commands/build.mjs +2 -1
  3. package/bin/commands/dev.mjs +72 -2
  4. package/dist/chatgpt/{conversation.d.ts → chatgpt-conversation.d.ts} +1 -1
  5. package/dist/chatgpt/chatgpt-host.d.ts +1 -0
  6. package/dist/chatgpt/globals.css +618 -6156
  7. package/dist/chatgpt/index.cjs +11 -8
  8. package/dist/chatgpt/index.cjs.map +1 -1
  9. package/dist/chatgpt/index.d.ts +10 -32
  10. package/dist/chatgpt/index.js +15 -12
  11. package/dist/chatgpt/index.js.map +1 -1
  12. package/dist/claude/claude-conversation.d.ts +23 -0
  13. package/dist/claude/claude-host.d.ts +1 -0
  14. package/dist/claude/index.cjs +6 -0
  15. package/dist/claude/index.cjs.map +1 -0
  16. package/dist/claude/index.d.ts +1 -0
  17. package/dist/claude/index.js +6 -0
  18. package/dist/claude/index.js.map +1 -0
  19. package/dist/claude-host-C7KPfOM8.cjs +284 -0
  20. package/dist/claude-host-C7KPfOM8.cjs.map +1 -0
  21. package/dist/claude-host-CaD7ptbt.js +283 -0
  22. package/dist/claude-host-CaD7ptbt.js.map +1 -0
  23. package/dist/{discovery-COZUnY6a.js → discovery-DzV3HLXs.js} +5 -5
  24. package/dist/{discovery-COZUnY6a.js.map → discovery-DzV3HLXs.js.map} +1 -1
  25. package/dist/hooks/index.d.ts +4 -0
  26. package/dist/hooks/use-app-tools.d.ts +44 -0
  27. package/dist/hooks/use-update-model-context.d.ts +29 -0
  28. package/dist/index-BKrboRah.js +44 -0
  29. package/dist/index-BKrboRah.js.map +1 -0
  30. package/dist/index-BSKuY-oH.cjs +527 -0
  31. package/dist/index-BSKuY-oH.cjs.map +1 -0
  32. package/dist/index-CiqvXo8n.js +512 -0
  33. package/dist/index-CiqvXo8n.js.map +1 -0
  34. package/dist/index-Dr-L0Nb3.cjs +43 -0
  35. package/dist/index-Dr-L0Nb3.cjs.map +1 -0
  36. package/dist/index.cjs +1705 -1647
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.ts +2 -1
  39. package/dist/index.js +2732 -2675
  40. package/dist/index.js.map +1 -1
  41. package/dist/lib/default-style-variables.d.ts +2 -0
  42. package/dist/lib/discovery-cli.js +1 -1
  43. package/dist/mcp/index.cjs +86 -27
  44. package/dist/mcp/index.cjs.map +1 -1
  45. package/dist/mcp/index.d.ts +3 -1
  46. package/dist/mcp/index.js +85 -26
  47. package/dist/mcp/index.js.map +1 -1
  48. package/dist/mcp/server.d.ts +4 -3
  49. package/dist/mcp/types.d.ts +11 -0
  50. package/dist/platform/chatgpt/index.cjs +1 -1
  51. package/dist/platform/chatgpt/index.js +1 -1
  52. package/dist/platform/index.cjs +3 -0
  53. package/dist/platform/index.cjs.map +1 -1
  54. package/dist/platform/index.d.ts +3 -1
  55. package/dist/platform/index.js +3 -0
  56. package/dist/platform/index.js.map +1 -1
  57. package/dist/{protocol-BQCnIrc9.js → protocol-DFbsCx7E.js} +29 -29
  58. package/dist/{protocol-BQCnIrc9.js.map → protocol-DFbsCx7E.js.map} +1 -1
  59. package/dist/simulator/host-styles.d.ts +5 -0
  60. package/dist/simulator/hosts.d.ts +73 -0
  61. package/dist/{chatgpt → simulator}/iframe-resource.d.ts +27 -3
  62. package/dist/simulator/index.cjs +40 -0
  63. package/dist/simulator/index.cjs.map +1 -0
  64. package/dist/simulator/index.d.ts +18 -0
  65. package/dist/simulator/index.js +40 -0
  66. package/dist/simulator/index.js.map +1 -0
  67. package/dist/{chatgpt → simulator}/mcp-app-host.d.ts +8 -1
  68. package/dist/simulator/mock-openai-runtime.d.ts +20 -0
  69. package/dist/{chatgpt → simulator}/simulator-url.d.ts +8 -1
  70. package/dist/simulator/simulator.d.ts +12 -0
  71. package/dist/{chatgpt → simulator}/theme-provider.d.ts +3 -1
  72. package/dist/simulator/use-simulator-state.d.ts +91 -0
  73. package/dist/simulator-BqZmzFVR.cjs +8214 -0
  74. package/dist/simulator-BqZmzFVR.cjs.map +1 -0
  75. package/dist/simulator-CMgCGNuD.js +8199 -0
  76. package/dist/simulator-CMgCGNuD.js.map +1 -0
  77. package/dist/simulator-url-BQ-7SMht.js +335 -0
  78. package/dist/simulator-url-BQ-7SMht.js.map +1 -0
  79. package/dist/simulator-url-uNqOCaPJ.cjs +334 -0
  80. package/dist/simulator-url-uNqOCaPJ.cjs.map +1 -0
  81. package/dist/style.css +558 -6143
  82. package/dist/types/runtime.d.ts +1 -1
  83. package/dist/{use-app-D7kRAPSG.cjs → use-app-BnoSPiUT.cjs} +2 -1
  84. package/dist/{use-app-D7kRAPSG.cjs.map → use-app-BnoSPiUT.cjs.map} +1 -1
  85. package/dist/{use-app-Dvr4LKs2.js → use-app-D_TeaMFG.js} +4 -3
  86. package/dist/{use-app-Dvr4LKs2.js.map → use-app-D_TeaMFG.js.map} +1 -1
  87. package/package.json +18 -3
  88. package/template/.sunpeak/dev.tsx +4 -4
  89. package/template/.sunpeak/resource-loader.html +1 -1
  90. package/template/node_modules/.bin/nodemon +2 -2
  91. package/template/node_modules/.bin/playwright +2 -2
  92. package/template/node_modules/.bin/sunpeak +2 -2
  93. package/template/node_modules/.bin/tsc +2 -2
  94. package/template/node_modules/.bin/tsserver +2 -2
  95. package/template/node_modules/.bin/tsx +2 -2
  96. package/template/node_modules/.bin/vite +2 -2
  97. package/template/src/components/avatar.tsx +4 -1
  98. package/template/src/components/button.tsx +17 -20
  99. package/template/src/resources/albums/albums-resource.tsx +2 -3
  100. package/template/src/resources/albums/components/album-card.tsx +4 -2
  101. package/template/src/resources/albums/components/film-strip.test.tsx +2 -2
  102. package/template/src/resources/albums/components/film-strip.tsx +2 -2
  103. package/template/src/resources/albums/components/fullscreen-viewer.tsx +7 -5
  104. package/template/src/resources/carousel/carousel-resource.tsx +2 -3
  105. package/template/src/resources/carousel/components/card.test.tsx +3 -2
  106. package/template/src/resources/carousel/components/card.tsx +8 -4
  107. package/template/src/resources/map/components/map-view.tsx +1 -1
  108. package/template/src/resources/map/components/map.tsx +1 -1
  109. package/template/src/resources/map/components/place-card.tsx +8 -4
  110. package/template/src/resources/map/components/place-carousel.tsx +1 -1
  111. package/template/src/resources/map/components/place-inspector.tsx +15 -7
  112. package/template/src/resources/map/components/place-list.tsx +7 -4
  113. package/template/src/resources/map/map-resource.tsx +0 -2
  114. package/template/src/resources/review/review-resource.tsx +61 -27
  115. package/template/tests/e2e/albums.spec.ts +118 -102
  116. package/template/tests/e2e/carousel.spec.ts +103 -100
  117. package/template/tests/e2e/map.spec.ts +220 -181
  118. package/template/tests/e2e/review.spec.ts +224 -198
  119. package/dist/_commonjsHelpers-Bc2YnDe1.cjs +0 -8
  120. package/dist/_commonjsHelpers-Bc2YnDe1.cjs.map +0 -1
  121. package/dist/_commonjsHelpers-DWwsNxpa.js +0 -9
  122. package/dist/_commonjsHelpers-DWwsNxpa.js.map +0 -1
  123. package/dist/index-CJ3jfcjj.js +0 -15131
  124. package/dist/index-CJ3jfcjj.js.map +0 -1
  125. package/dist/index-Cdeg96So.cjs +0 -15147
  126. package/dist/index-Cdeg96So.cjs.map +0 -1
  127. /package/dist/{chatgpt → simulator}/simple-sidebar.d.ts +0 -0
  128. /package/dist/{chatgpt/chatgpt-simulator-types.d.ts → simulator/simulator-types.d.ts} +0 -0
@@ -1,8 +1,9 @@
1
- import { MCPServerConfig } from './types.js';
2
- export type { MCPServerConfig, SimulationWithDist } from './types.js';
1
+ import { MCPServerConfig, MCPServerHandle } from './types.js';
2
+ export type { MCPServerConfig, MCPServerHandle, SimulationWithDist } from './types.js';
3
3
  /**
4
4
  * Run the MCP server with the specified configuration.
5
5
  *
6
6
  * @param config - Server configuration with simulations.
7
+ * @returns Handle for controlling the running server (e.g. cache invalidation).
7
8
  */
8
- export declare function runMCPServer(config: MCPServerConfig): void;
9
+ export declare function runMCPServer(config: MCPServerConfig): MCPServerHandle;
@@ -18,6 +18,17 @@ export interface SimulationWithDist {
18
18
  isError?: boolean;
19
19
  };
20
20
  }
21
+ /**
22
+ * Handle returned by `runMCPServer` for controlling the running server.
23
+ */
24
+ export interface MCPServerHandle {
25
+ /**
26
+ * Notify non-local sessions that resources have changed.
27
+ * Sends `notifications/resources/list_changed` so hosts re-fetch fresh content.
28
+ * Local sessions (ChatGPT, simulator) are skipped since they use Vite HMR.
29
+ */
30
+ invalidateResources(): void;
31
+ }
21
32
  /**
22
33
  * Configuration for the MCP server.
23
34
  * Takes an array of simulations with distPath for each built HTML file.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
- const useApp = require("../../use-app-D7kRAPSG.cjs");
4
+ const useApp = require("../../use-app-BnoSPiUT.cjs");
5
5
  function getOpenAIRuntime() {
6
6
  if (typeof window !== "undefined" && "openai" in window) {
7
7
  return window.openai;
@@ -1,5 +1,5 @@
1
1
  import { useCallback } from "react";
2
- import { u as useApp } from "../../use-app-Dvr4LKs2.js";
2
+ import { u as useApp } from "../../use-app-D_TeaMFG.js";
3
3
  function getOpenAIRuntime() {
4
4
  if (typeof window !== "undefined" && "openai" in window) {
5
5
  return window.openai;
@@ -4,6 +4,9 @@ function detectPlatform() {
4
4
  if (typeof window === "undefined") {
5
5
  return "unknown";
6
6
  }
7
+ if ("openai" in window) {
8
+ return "chatgpt";
9
+ }
7
10
  const ua = navigator.userAgent.toLowerCase();
8
11
  if (ua.includes("chatgpt") || window.location.hostname.includes("chatgpt.com")) {
9
12
  return "chatgpt";
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../src/platform/index.ts"],"sourcesContent":["/**\n * Platform detection utilities for MCP Apps.\n *\n * Use these functions to detect which host platform is running your app\n * and conditionally use platform-specific features.\n *\n * @example\n * ```tsx\n * import { isChatGPT } from 'sunpeak/platform';\n *\n * function MyResource() {\n * // Only use ChatGPT-specific features when running on ChatGPT\n * if (isChatGPT()) {\n * // Use updateModelContext, etc.\n * }\n * }\n * ```\n */\n\n/**\n * Supported host platforms.\n */\nexport type Platform = 'chatgpt' | 'claude' | 'unknown';\n\n/**\n * Detect the current host platform.\n *\n * Detection is based on:\n * 1. Host context platform field (when available)\n * 2. User agent patterns as fallback\n *\n * @returns The detected platform\n */\nexport function detectPlatform(): Platform {\n // Check if we're in a browser environment\n if (typeof window === 'undefined') {\n return 'unknown';\n }\n\n // Check user agent patterns for platform detection\n const ua = navigator.userAgent.toLowerCase();\n\n // ChatGPT iOS/Android apps and web\n if (ua.includes('chatgpt') || window.location.hostname.includes('chatgpt.com')) {\n return 'chatgpt';\n }\n\n // Claude apps and web\n if (ua.includes('claude') || window.location.hostname.includes('claude.ai')) {\n return 'claude';\n }\n\n return 'unknown';\n}\n\n/**\n * Check if the app is running in a ChatGPT host.\n *\n * @returns true if running in ChatGPT\n *\n * @example\n * ```tsx\n * import { isChatGPT } from 'sunpeak/platform';\n *\n * function MyResource() {\n * if (isChatGPT()) {\n * // Use ChatGPT-specific features\n * }\n * }\n * ```\n */\nexport function isChatGPT(): boolean {\n return detectPlatform() === 'chatgpt';\n}\n\n/**\n * Check if the app is running in a Claude host.\n *\n * @returns true if running in Claude\n */\nexport function isClaude(): boolean {\n return detectPlatform() === 'claude';\n}\n"],"names":[],"mappings":";;AAiCO,SAAS,iBAA2B;AAEzC,MAAI,OAAO,WAAW,aAAa;AACjC,WAAO;AAAA,EACT;AAGA,QAAM,KAAK,UAAU,UAAU,YAAA;AAG/B,MAAI,GAAG,SAAS,SAAS,KAAK,OAAO,SAAS,SAAS,SAAS,aAAa,GAAG;AAC9E,WAAO;AAAA,EACT;AAGA,MAAI,GAAG,SAAS,QAAQ,KAAK,OAAO,SAAS,SAAS,SAAS,WAAW,GAAG;AAC3E,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAkBO,SAAS,YAAqB;AACnC,SAAO,qBAAqB;AAC9B;AAOO,SAAS,WAAoB;AAClC,SAAO,qBAAqB;AAC9B;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../src/platform/index.ts"],"sourcesContent":["/**\n * Platform detection utilities for MCP Apps.\n *\n * Use these functions to detect which host platform is running your app\n * and conditionally use platform-specific features.\n *\n * @example\n * ```tsx\n * import { isChatGPT } from 'sunpeak/platform';\n *\n * function MyResource() {\n * // Only use ChatGPT-specific features when running on ChatGPT\n * if (isChatGPT()) {\n * // Use updateModelContext, etc.\n * }\n * }\n * ```\n */\n\n/**\n * Supported host platforms.\n */\nexport type Platform = 'chatgpt' | 'claude' | 'unknown';\n\n/**\n * Detect the current host platform.\n *\n * Detection is based on:\n * 1. Platform runtime objects (window.openai for ChatGPT — works in both\n * real hosts and the simulator when the ChatGPT host shell is active)\n * 2. User agent patterns as fallback\n * 3. Hostname matching as final fallback\n *\n * @returns The detected platform\n */\nexport function detectPlatform(): Platform {\n // Check if we're in a browser environment\n if (typeof window === 'undefined') {\n return 'unknown';\n }\n\n // ChatGPT injects window.openai; the simulator does the same when\n // the ChatGPT host shell is selected. This is the most reliable signal.\n if ('openai' in window) {\n return 'chatgpt';\n }\n\n // Check user agent patterns for platform detection\n const ua = navigator.userAgent.toLowerCase();\n\n // ChatGPT iOS/Android apps and web\n if (ua.includes('chatgpt') || window.location.hostname.includes('chatgpt.com')) {\n return 'chatgpt';\n }\n\n // Claude apps and web\n if (ua.includes('claude') || window.location.hostname.includes('claude.ai')) {\n return 'claude';\n }\n\n return 'unknown';\n}\n\n/**\n * Check if the app is running in a ChatGPT host.\n *\n * @returns true if running in ChatGPT\n *\n * @example\n * ```tsx\n * import { isChatGPT } from 'sunpeak/platform';\n *\n * function MyResource() {\n * if (isChatGPT()) {\n * // Use ChatGPT-specific features\n * }\n * }\n * ```\n */\nexport function isChatGPT(): boolean {\n return detectPlatform() === 'chatgpt';\n}\n\n/**\n * Check if the app is running in a Claude host.\n *\n * @returns true if running in Claude\n */\nexport function isClaude(): boolean {\n return detectPlatform() === 'claude';\n}\n"],"names":[],"mappings":";;AAmCO,SAAS,iBAA2B;AAEzC,MAAI,OAAO,WAAW,aAAa;AACjC,WAAO;AAAA,EACT;AAIA,MAAI,YAAY,QAAQ;AACtB,WAAO;AAAA,EACT;AAGA,QAAM,KAAK,UAAU,UAAU,YAAA;AAG/B,MAAI,GAAG,SAAS,SAAS,KAAK,OAAO,SAAS,SAAS,SAAS,aAAa,GAAG;AAC9E,WAAO;AAAA,EACT;AAGA,MAAI,GAAG,SAAS,QAAQ,KAAK,OAAO,SAAS,SAAS,SAAS,WAAW,GAAG;AAC3E,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAkBO,SAAS,YAAqB;AACnC,SAAO,qBAAqB;AAC9B;AAOO,SAAS,WAAoB;AAClC,SAAO,qBAAqB;AAC9B;;;;"}
@@ -24,8 +24,10 @@ export type Platform = 'chatgpt' | 'claude' | 'unknown';
24
24
  * Detect the current host platform.
25
25
  *
26
26
  * Detection is based on:
27
- * 1. Host context platform field (when available)
27
+ * 1. Platform runtime objects (window.openai for ChatGPT — works in both
28
+ * real hosts and the simulator when the ChatGPT host shell is active)
28
29
  * 2. User agent patterns as fallback
30
+ * 3. Hostname matching as final fallback
29
31
  *
30
32
  * @returns The detected platform
31
33
  */
@@ -2,6 +2,9 @@ function detectPlatform() {
2
2
  if (typeof window === "undefined") {
3
3
  return "unknown";
4
4
  }
5
+ if ("openai" in window) {
6
+ return "chatgpt";
7
+ }
5
8
  const ua = navigator.userAgent.toLowerCase();
6
9
  if (ua.includes("chatgpt") || window.location.hostname.includes("chatgpt.com")) {
7
10
  return "chatgpt";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/platform/index.ts"],"sourcesContent":["/**\n * Platform detection utilities for MCP Apps.\n *\n * Use these functions to detect which host platform is running your app\n * and conditionally use platform-specific features.\n *\n * @example\n * ```tsx\n * import { isChatGPT } from 'sunpeak/platform';\n *\n * function MyResource() {\n * // Only use ChatGPT-specific features when running on ChatGPT\n * if (isChatGPT()) {\n * // Use updateModelContext, etc.\n * }\n * }\n * ```\n */\n\n/**\n * Supported host platforms.\n */\nexport type Platform = 'chatgpt' | 'claude' | 'unknown';\n\n/**\n * Detect the current host platform.\n *\n * Detection is based on:\n * 1. Host context platform field (when available)\n * 2. User agent patterns as fallback\n *\n * @returns The detected platform\n */\nexport function detectPlatform(): Platform {\n // Check if we're in a browser environment\n if (typeof window === 'undefined') {\n return 'unknown';\n }\n\n // Check user agent patterns for platform detection\n const ua = navigator.userAgent.toLowerCase();\n\n // ChatGPT iOS/Android apps and web\n if (ua.includes('chatgpt') || window.location.hostname.includes('chatgpt.com')) {\n return 'chatgpt';\n }\n\n // Claude apps and web\n if (ua.includes('claude') || window.location.hostname.includes('claude.ai')) {\n return 'claude';\n }\n\n return 'unknown';\n}\n\n/**\n * Check if the app is running in a ChatGPT host.\n *\n * @returns true if running in ChatGPT\n *\n * @example\n * ```tsx\n * import { isChatGPT } from 'sunpeak/platform';\n *\n * function MyResource() {\n * if (isChatGPT()) {\n * // Use ChatGPT-specific features\n * }\n * }\n * ```\n */\nexport function isChatGPT(): boolean {\n return detectPlatform() === 'chatgpt';\n}\n\n/**\n * Check if the app is running in a Claude host.\n *\n * @returns true if running in Claude\n */\nexport function isClaude(): boolean {\n return detectPlatform() === 'claude';\n}\n"],"names":[],"mappings":"AAiCO,SAAS,iBAA2B;AAEzC,MAAI,OAAO,WAAW,aAAa;AACjC,WAAO;AAAA,EACT;AAGA,QAAM,KAAK,UAAU,UAAU,YAAA;AAG/B,MAAI,GAAG,SAAS,SAAS,KAAK,OAAO,SAAS,SAAS,SAAS,aAAa,GAAG;AAC9E,WAAO;AAAA,EACT;AAGA,MAAI,GAAG,SAAS,QAAQ,KAAK,OAAO,SAAS,SAAS,SAAS,WAAW,GAAG;AAC3E,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAkBO,SAAS,YAAqB;AACnC,SAAO,qBAAqB;AAC9B;AAOO,SAAS,WAAoB;AAClC,SAAO,qBAAqB;AAC9B;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/platform/index.ts"],"sourcesContent":["/**\n * Platform detection utilities for MCP Apps.\n *\n * Use these functions to detect which host platform is running your app\n * and conditionally use platform-specific features.\n *\n * @example\n * ```tsx\n * import { isChatGPT } from 'sunpeak/platform';\n *\n * function MyResource() {\n * // Only use ChatGPT-specific features when running on ChatGPT\n * if (isChatGPT()) {\n * // Use updateModelContext, etc.\n * }\n * }\n * ```\n */\n\n/**\n * Supported host platforms.\n */\nexport type Platform = 'chatgpt' | 'claude' | 'unknown';\n\n/**\n * Detect the current host platform.\n *\n * Detection is based on:\n * 1. Platform runtime objects (window.openai for ChatGPT — works in both\n * real hosts and the simulator when the ChatGPT host shell is active)\n * 2. User agent patterns as fallback\n * 3. Hostname matching as final fallback\n *\n * @returns The detected platform\n */\nexport function detectPlatform(): Platform {\n // Check if we're in a browser environment\n if (typeof window === 'undefined') {\n return 'unknown';\n }\n\n // ChatGPT injects window.openai; the simulator does the same when\n // the ChatGPT host shell is selected. This is the most reliable signal.\n if ('openai' in window) {\n return 'chatgpt';\n }\n\n // Check user agent patterns for platform detection\n const ua = navigator.userAgent.toLowerCase();\n\n // ChatGPT iOS/Android apps and web\n if (ua.includes('chatgpt') || window.location.hostname.includes('chatgpt.com')) {\n return 'chatgpt';\n }\n\n // Claude apps and web\n if (ua.includes('claude') || window.location.hostname.includes('claude.ai')) {\n return 'claude';\n }\n\n return 'unknown';\n}\n\n/**\n * Check if the app is running in a ChatGPT host.\n *\n * @returns true if running in ChatGPT\n *\n * @example\n * ```tsx\n * import { isChatGPT } from 'sunpeak/platform';\n *\n * function MyResource() {\n * if (isChatGPT()) {\n * // Use ChatGPT-specific features\n * }\n * }\n * ```\n */\nexport function isChatGPT(): boolean {\n return detectPlatform() === 'chatgpt';\n}\n\n/**\n * Check if the app is running in a Claude host.\n *\n * @returns true if running in Claude\n */\nexport function isClaude(): boolean {\n return detectPlatform() === 'claude';\n}\n"],"names":[],"mappings":"AAmCO,SAAS,iBAA2B;AAEzC,MAAI,OAAO,WAAW,aAAa;AACjC,WAAO;AAAA,EACT;AAIA,MAAI,YAAY,QAAQ;AACtB,WAAO;AAAA,EACT;AAGA,QAAM,KAAK,UAAU,UAAU,YAAA;AAG/B,MAAI,GAAG,SAAS,SAAS,KAAK,OAAO,SAAS,SAAS,SAAS,aAAa,GAAG;AAC9E,WAAO;AAAA,EACT;AAGA,MAAI,GAAG,SAAS,QAAQ,KAAK,OAAO,SAAS,SAAS,SAAS,WAAW,GAAG;AAC3E,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAkBO,SAAS,YAAqB;AACnC,SAAO,qBAAqB;AAC9B;AAOO,SAAS,WAAoB;AAClC,SAAO,qBAAqB;AAC9B;"}
@@ -11557,18 +11557,18 @@ function mergeCapabilities(base, additional) {
11557
11557
  return result;
11558
11558
  }
11559
11559
  export {
11560
- safeParse$1 as A,
11561
- CreateTaskResultSchema as B,
11560
+ ListRootsResultSchema as A,
11561
+ safeParse$1 as B,
11562
11562
  ContentBlockSchema as C,
11563
- SUPPORTED_PROTOCOL_VERSIONS as D,
11563
+ CreateTaskResultSchema as D,
11564
11564
  EmptyResultSchema as E,
11565
- ListToolsRequestSchema as F,
11565
+ SUPPORTED_PROTOCOL_VERSIONS as F,
11566
11566
  normalizeObjectSchema as G,
11567
11567
  toJsonSchemaCompat as H,
11568
11568
  ImplementationSchema as I,
11569
11569
  JSONRPCMessageSchema as J,
11570
11570
  safeParseAsync$1 as K,
11571
- LoggingMessageNotificationSchema as L,
11571
+ ListToolsRequestSchema as L,
11572
11572
  McpError as M,
11573
11573
  getParseErrorMessage as N,
11574
11574
  CompleteRequestSchema as O,
@@ -11586,28 +11586,28 @@ export {
11586
11586
  CallToolResultSchema as a,
11587
11587
  PingRequestSchema as b,
11588
11588
  CallToolRequestSchema as c,
11589
- ListResourcesRequestSchema as d,
11590
- ListResourceTemplatesRequestSchema as e,
11591
- ReadResourceRequestSchema as f,
11592
- ListPromptsRequestSchema as g,
11593
- ToolListChangedNotificationSchema as h,
11594
- ListResourcesResultSchema as i,
11595
- ListResourceTemplatesResultSchema as j,
11596
- ReadResourceResultSchema as k,
11597
- ResourceListChangedNotificationSchema as l,
11598
- ListPromptsResultSchema as m,
11599
- PromptListChangedNotificationSchema as n,
11600
- LoggingLevelSchema as o,
11601
- InitializeRequestSchema as p,
11602
- InitializedNotificationSchema as q,
11603
- mergeCapabilities as r,
11604
- getObjectShape as s,
11605
- isZ4Schema as t,
11606
- LATEST_PROTOCOL_VERSION as u,
11607
- CreateMessageResultWithToolsSchema as v,
11608
- CreateMessageResultSchema as w,
11609
- ElicitResultSchema as x,
11610
- ErrorCode as y,
11611
- ListRootsResultSchema as z
11589
+ LoggingMessageNotificationSchema as d,
11590
+ ListResourcesRequestSchema as e,
11591
+ ListResourceTemplatesRequestSchema as f,
11592
+ ReadResourceRequestSchema as g,
11593
+ ListPromptsRequestSchema as h,
11594
+ ToolListChangedNotificationSchema as i,
11595
+ ListResourcesResultSchema as j,
11596
+ ListResourceTemplatesResultSchema as k,
11597
+ ReadResourceResultSchema as l,
11598
+ ResourceListChangedNotificationSchema as m,
11599
+ ListPromptsResultSchema as n,
11600
+ PromptListChangedNotificationSchema as o,
11601
+ LoggingLevelSchema as p,
11602
+ InitializeRequestSchema as q,
11603
+ InitializedNotificationSchema as r,
11604
+ mergeCapabilities as s,
11605
+ getObjectShape as t,
11606
+ isZ4Schema as u,
11607
+ LATEST_PROTOCOL_VERSION as v,
11608
+ CreateMessageResultWithToolsSchema as w,
11609
+ CreateMessageResultSchema as x,
11610
+ ElicitResultSchema as y,
11611
+ ErrorCode as z
11612
11612
  };
11613
- //# sourceMappingURL=protocol-BQCnIrc9.js.map
11613
+ //# sourceMappingURL=protocol-DFbsCx7E.js.map