@assistant-ui/react-mcp 0.1.19 → 0.1.21

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 (207) hide show
  1. package/LICENSE +1 -1
  2. package/dist/auth/buildHeaders.d.ts +2 -4
  3. package/dist/auth/buildHeaders.d.ts.map +1 -1
  4. package/dist/auth/createOAuthProvider.d.ts +19 -20
  5. package/dist/auth/createOAuthProvider.d.ts.map +1 -1
  6. package/dist/auth/types.d.ts +12 -14
  7. package/dist/auth/types.d.ts.map +1 -1
  8. package/dist/connector.d.ts +1 -3
  9. package/dist/connector.d.ts.map +1 -1
  10. package/dist/context/McpConnectorByIndexProvider.d.ts +2 -4
  11. package/dist/context/McpConnectorByIndexProvider.d.ts.map +1 -1
  12. package/dist/context/McpConnectorByIndexProvider.js +1 -1
  13. package/dist/context/McpConnectorByIndexProvider.js.map +1 -1
  14. package/dist/context/McpCustomServerByIndexProvider.d.ts +2 -4
  15. package/dist/context/McpCustomServerByIndexProvider.d.ts.map +1 -1
  16. package/dist/context/McpCustomServerByIndexProvider.js +1 -1
  17. package/dist/context/McpCustomServerByIndexProvider.js.map +1 -1
  18. package/dist/context/McpServerByIdProvider.d.ts +2 -4
  19. package/dist/context/McpServerByIdProvider.d.ts.map +1 -1
  20. package/dist/context/McpServerByIdProvider.js +1 -1
  21. package/dist/context/McpServerByIdProvider.js.map +1 -1
  22. package/dist/hooks/useMcpOAuthCallback.d.ts +9 -11
  23. package/dist/hooks/useMcpOAuthCallback.d.ts.map +1 -1
  24. package/dist/hooks/useMcpOAuthCallback.js +2 -2
  25. package/dist/hooks/useMcpOAuthCallback.js.map +1 -1
  26. package/dist/index.d.ts +19 -18
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +4 -4
  29. package/dist/mcp-scope.d.ts +110 -112
  30. package/dist/mcp-scope.d.ts.map +1 -1
  31. package/dist/primitives/addForm/McpAddFormAuthFields.d.ts +12 -14
  32. package/dist/primitives/addForm/McpAddFormAuthFields.d.ts.map +1 -1
  33. package/dist/primitives/addForm/McpAddFormAuthFields.js.map +1 -1
  34. package/dist/primitives/addForm/McpAddFormAuthSelect.d.ts +3 -5
  35. package/dist/primitives/addForm/McpAddFormAuthSelect.d.ts.map +1 -1
  36. package/dist/primitives/addForm/McpAddFormAuthSelect.js +1 -1
  37. package/dist/primitives/addForm/McpAddFormAuthSelect.js.map +1 -1
  38. package/dist/primitives/addForm/McpAddFormBearerTokenField.d.ts +3 -5
  39. package/dist/primitives/addForm/McpAddFormBearerTokenField.d.ts.map +1 -1
  40. package/dist/primitives/addForm/McpAddFormBearerTokenField.js +1 -1
  41. package/dist/primitives/addForm/McpAddFormBearerTokenField.js.map +1 -1
  42. package/dist/primitives/addForm/McpAddFormCancel.d.ts +4 -6
  43. package/dist/primitives/addForm/McpAddFormCancel.d.ts.map +1 -1
  44. package/dist/primitives/addForm/McpAddFormCancel.js +1 -1
  45. package/dist/primitives/addForm/McpAddFormCancel.js.map +1 -1
  46. package/dist/primitives/addForm/McpAddFormError.d.ts +4 -6
  47. package/dist/primitives/addForm/McpAddFormError.d.ts.map +1 -1
  48. package/dist/primitives/addForm/McpAddFormError.js +1 -1
  49. package/dist/primitives/addForm/McpAddFormError.js.map +1 -1
  50. package/dist/primitives/addForm/McpAddFormNameField.d.ts +3 -5
  51. package/dist/primitives/addForm/McpAddFormNameField.d.ts.map +1 -1
  52. package/dist/primitives/addForm/McpAddFormNameField.js +1 -1
  53. package/dist/primitives/addForm/McpAddFormNameField.js.map +1 -1
  54. package/dist/primitives/addForm/McpAddFormRoot.d.ts +9 -11
  55. package/dist/primitives/addForm/McpAddFormRoot.d.ts.map +1 -1
  56. package/dist/primitives/addForm/McpAddFormRoot.js +2 -2
  57. package/dist/primitives/addForm/McpAddFormScopesField.d.ts +3 -5
  58. package/dist/primitives/addForm/McpAddFormScopesField.d.ts.map +1 -1
  59. package/dist/primitives/addForm/McpAddFormScopesField.js +1 -1
  60. package/dist/primitives/addForm/McpAddFormScopesField.js.map +1 -1
  61. package/dist/primitives/addForm/McpAddFormSubmit.d.ts +4 -6
  62. package/dist/primitives/addForm/McpAddFormSubmit.d.ts.map +1 -1
  63. package/dist/primitives/addForm/McpAddFormSubmit.js +1 -1
  64. package/dist/primitives/addForm/McpAddFormSubmit.js.map +1 -1
  65. package/dist/primitives/addForm/McpAddFormUrlField.d.ts +3 -5
  66. package/dist/primitives/addForm/McpAddFormUrlField.d.ts.map +1 -1
  67. package/dist/primitives/addForm/McpAddFormUrlField.js +1 -1
  68. package/dist/primitives/addForm/McpAddFormUrlField.js.map +1 -1
  69. package/dist/primitives/addForm/context.d.ts +18 -20
  70. package/dist/primitives/addForm/context.d.ts.map +1 -1
  71. package/dist/primitives/addForm.d.ts +10 -15
  72. package/dist/primitives/addForm.d.ts.map +1 -1
  73. package/dist/primitives/elicitation/McpElicitationPrimitiveAccept.d.ts +4 -6
  74. package/dist/primitives/elicitation/McpElicitationPrimitiveAccept.d.ts.map +1 -1
  75. package/dist/primitives/elicitation/McpElicitationPrimitiveAccept.js +2 -2
  76. package/dist/primitives/elicitation/McpElicitationPrimitiveAccept.js.map +1 -1
  77. package/dist/primitives/elicitation/McpElicitationPrimitiveCancel.d.ts +4 -6
  78. package/dist/primitives/elicitation/McpElicitationPrimitiveCancel.d.ts.map +1 -1
  79. package/dist/primitives/elicitation/McpElicitationPrimitiveCancel.js +2 -2
  80. package/dist/primitives/elicitation/McpElicitationPrimitiveCancel.js.map +1 -1
  81. package/dist/primitives/elicitation/McpElicitationPrimitiveDecline.d.ts +4 -6
  82. package/dist/primitives/elicitation/McpElicitationPrimitiveDecline.d.ts.map +1 -1
  83. package/dist/primitives/elicitation/McpElicitationPrimitiveDecline.js +2 -2
  84. package/dist/primitives/elicitation/McpElicitationPrimitiveDecline.js.map +1 -1
  85. package/dist/primitives/elicitation/McpElicitationPrimitiveError.d.ts +4 -6
  86. package/dist/primitives/elicitation/McpElicitationPrimitiveError.d.ts.map +1 -1
  87. package/dist/primitives/elicitation/McpElicitationPrimitiveError.js +1 -1
  88. package/dist/primitives/elicitation/McpElicitationPrimitiveError.js.map +1 -1
  89. package/dist/primitives/elicitation/McpElicitationPrimitiveFields.d.ts +6 -8
  90. package/dist/primitives/elicitation/McpElicitationPrimitiveFields.d.ts.map +1 -1
  91. package/dist/primitives/elicitation/McpElicitationPrimitiveFields.js +1 -1
  92. package/dist/primitives/elicitation/McpElicitationPrimitiveFields.js.map +1 -1
  93. package/dist/primitives/elicitation/McpElicitationPrimitiveItems.d.ts +6 -9
  94. package/dist/primitives/elicitation/McpElicitationPrimitiveItems.d.ts.map +1 -1
  95. package/dist/primitives/elicitation/McpElicitationPrimitiveItems.js +2 -2
  96. package/dist/primitives/elicitation/McpElicitationPrimitiveItems.js.map +1 -1
  97. package/dist/primitives/elicitation/McpElicitationPrimitiveMessage.d.ts +4 -6
  98. package/dist/primitives/elicitation/McpElicitationPrimitiveMessage.d.ts.map +1 -1
  99. package/dist/primitives/elicitation/McpElicitationPrimitiveMessage.js +1 -1
  100. package/dist/primitives/elicitation/McpElicitationPrimitiveMessage.js.map +1 -1
  101. package/dist/primitives/elicitation/McpElicitationPrimitiveRoot.d.ts +4 -6
  102. package/dist/primitives/elicitation/McpElicitationPrimitiveRoot.d.ts.map +1 -1
  103. package/dist/primitives/elicitation/McpElicitationPrimitiveRoot.js +1 -1
  104. package/dist/primitives/elicitation/McpElicitationPrimitiveRoot.js.map +1 -1
  105. package/dist/primitives/elicitation/context.d.ts +8 -10
  106. package/dist/primitives/elicitation/context.d.ts.map +1 -1
  107. package/dist/primitives/elicitation/initialElicitationDraft.d.ts +0 -2
  108. package/dist/primitives/elicitation/initialElicitationDraft.d.ts.map +1 -1
  109. package/dist/primitives/elicitation/prepareElicitationContent.d.ts +3 -5
  110. package/dist/primitives/elicitation/prepareElicitationContent.d.ts.map +1 -1
  111. package/dist/primitives/elicitation.d.ts +8 -14
  112. package/dist/primitives/elicitation.d.ts.map +1 -1
  113. package/dist/primitives/manager/McpManagerAddCustomTrigger.d.ts +4 -6
  114. package/dist/primitives/manager/McpManagerAddCustomTrigger.d.ts.map +1 -1
  115. package/dist/primitives/manager/McpManagerAddCustomTrigger.js +1 -1
  116. package/dist/primitives/manager/McpManagerAddCustomTrigger.js.map +1 -1
  117. package/dist/primitives/manager/McpManagerConnectors.d.ts +12 -14
  118. package/dist/primitives/manager/McpManagerConnectors.d.ts.map +1 -1
  119. package/dist/primitives/manager/McpManagerConnectors.js +1 -1
  120. package/dist/primitives/manager/McpManagerCustomServers.d.ts +12 -14
  121. package/dist/primitives/manager/McpManagerCustomServers.d.ts.map +1 -1
  122. package/dist/primitives/manager/McpManagerCustomServers.js +1 -1
  123. package/dist/primitives/manager/McpManagerRoot.d.ts +4 -6
  124. package/dist/primitives/manager/McpManagerRoot.d.ts.map +1 -1
  125. package/dist/primitives/manager/McpManagerRoot.js +2 -2
  126. package/dist/primitives/manager/McpManagerRoot.js.map +1 -1
  127. package/dist/primitives/manager.d.ts +4 -9
  128. package/dist/primitives/manager.d.ts.map +1 -1
  129. package/dist/primitives/server/McpServerConnectButton.d.ts +4 -6
  130. package/dist/primitives/server/McpServerConnectButton.d.ts.map +1 -1
  131. package/dist/primitives/server/McpServerConnectButton.js +2 -2
  132. package/dist/primitives/server/McpServerConnectButton.js.map +1 -1
  133. package/dist/primitives/server/McpServerDisconnectButton.d.ts +4 -6
  134. package/dist/primitives/server/McpServerDisconnectButton.d.ts.map +1 -1
  135. package/dist/primitives/server/McpServerDisconnectButton.js +2 -2
  136. package/dist/primitives/server/McpServerDisconnectButton.js.map +1 -1
  137. package/dist/primitives/server/McpServerError.d.ts +4 -6
  138. package/dist/primitives/server/McpServerError.d.ts.map +1 -1
  139. package/dist/primitives/server/McpServerError.js +2 -2
  140. package/dist/primitives/server/McpServerError.js.map +1 -1
  141. package/dist/primitives/server/McpServerIcon.d.ts +11 -13
  142. package/dist/primitives/server/McpServerIcon.d.ts.map +1 -1
  143. package/dist/primitives/server/McpServerIcon.js +2 -2
  144. package/dist/primitives/server/McpServerIcon.js.map +1 -1
  145. package/dist/primitives/server/McpServerName.d.ts +4 -6
  146. package/dist/primitives/server/McpServerName.d.ts.map +1 -1
  147. package/dist/primitives/server/McpServerName.js +2 -2
  148. package/dist/primitives/server/McpServerName.js.map +1 -1
  149. package/dist/primitives/server/McpServerOAuthLink.d.ts +9 -11
  150. package/dist/primitives/server/McpServerOAuthLink.d.ts.map +1 -1
  151. package/dist/primitives/server/McpServerOAuthLink.js +2 -2
  152. package/dist/primitives/server/McpServerOAuthLink.js.map +1 -1
  153. package/dist/primitives/server/McpServerRemoveButton.d.ts +4 -6
  154. package/dist/primitives/server/McpServerRemoveButton.d.ts.map +1 -1
  155. package/dist/primitives/server/McpServerRemoveButton.js +2 -2
  156. package/dist/primitives/server/McpServerRemoveButton.js.map +1 -1
  157. package/dist/primitives/server/McpServerRoot.d.ts +4 -6
  158. package/dist/primitives/server/McpServerRoot.d.ts.map +1 -1
  159. package/dist/primitives/server/McpServerRoot.js +2 -2
  160. package/dist/primitives/server/McpServerRoot.js.map +1 -1
  161. package/dist/primitives/server/McpServerStatus.d.ts +4 -6
  162. package/dist/primitives/server/McpServerStatus.d.ts.map +1 -1
  163. package/dist/primitives/server/McpServerStatus.js +2 -2
  164. package/dist/primitives/server/McpServerStatus.js.map +1 -1
  165. package/dist/primitives/server/McpServerToolName.d.ts +4 -6
  166. package/dist/primitives/server/McpServerToolName.d.ts.map +1 -1
  167. package/dist/primitives/server/McpServerToolName.js +1 -1
  168. package/dist/primitives/server/McpServerToolName.js.map +1 -1
  169. package/dist/primitives/server/McpServerTools.d.ts +5 -7
  170. package/dist/primitives/server/McpServerTools.d.ts.map +1 -1
  171. package/dist/primitives/server/McpServerTools.js +2 -2
  172. package/dist/primitives/server/McpServerTools.js.map +1 -1
  173. package/dist/primitives/server.d.ts +11 -16
  174. package/dist/primitives/server.d.ts.map +1 -1
  175. package/dist/resources/McpManagerResource.d.ts +11 -13
  176. package/dist/resources/McpManagerResource.d.ts.map +1 -1
  177. package/dist/resources/McpManagerResource.js +2 -2
  178. package/dist/resources/McpManagerResource.js.map +1 -1
  179. package/dist/resources/McpServerRemovalFence.d.ts +1 -3
  180. package/dist/resources/McpServerRemovalFence.d.ts.map +1 -1
  181. package/dist/resources/McpServerResource.d.ts +18 -20
  182. package/dist/resources/McpServerResource.d.ts.map +1 -1
  183. package/dist/resources/McpServerResource.js +51 -43
  184. package/dist/resources/McpServerResource.js.map +1 -1
  185. package/dist/resources/storage/McpCustomStorage.d.ts +1 -3
  186. package/dist/resources/storage/McpCustomStorage.d.ts.map +1 -1
  187. package/dist/resources/storage/McpLocalStorage.d.ts +14 -16
  188. package/dist/resources/storage/McpLocalStorage.d.ts.map +1 -1
  189. package/dist/resources/storage/McpLocalStorage.js +1 -1
  190. package/dist/resources/storage/McpLocalStorage.js.map +1 -1
  191. package/dist/resources/storage/McpMemoryStorage.d.ts +1 -3
  192. package/dist/resources/storage/McpMemoryStorage.d.ts.map +1 -1
  193. package/dist/resources/storage/types.d.ts +22 -24
  194. package/dist/resources/storage/types.d.ts.map +1 -1
  195. package/dist/resources/validateElicitationContent.d.ts +3 -4
  196. package/dist/resources/validateElicitationContent.d.ts.map +1 -1
  197. package/dist/utils/createMcpId.d.ts +0 -2
  198. package/dist/utils/createMcpId.d.ts.map +1 -1
  199. package/dist/utils/invokeMcpCallback.d.ts +0 -2
  200. package/dist/utils/invokeMcpCallback.d.ts.map +1 -1
  201. package/dist/utils/serverId.d.ts +0 -2
  202. package/dist/utils/serverId.d.ts.map +1 -1
  203. package/dist/utils/serverUrl.d.ts +1 -3
  204. package/dist/utils/serverUrl.d.ts.map +1 -1
  205. package/package.json +12 -9
  206. package/src/resources/McpServerResource.test.ts +112 -0
  207. package/src/resources/McpServerResource.ts +22 -7
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerDisconnectButton.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAui","useAuiState","McpServerPrimitiveDisconnectButton","Element","button","Props","DISCONNECTABLE","Set","props","ref","$","_c","state","_temp","aui","has","t0","e","onClick","defaultPrevented","mcpServer","disconnect","t1","displayName","s","connectionState"],"sources":["../../../src/primitives/server/McpServerDisconnectButton.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveDisconnectButton {\n export type Element = ComponentRef<typeof Primitive.button>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.button>;\n}\n\nconst DISCONNECTABLE = new Set([\"connected\", \"connecting\", \"authPending\"]);\n\nexport const McpServerPrimitiveDisconnectButton = forwardRef<\n McpServerPrimitiveDisconnectButton.Element,\n McpServerPrimitiveDisconnectButton.Props\n>((props, ref) => {\n const state = useAuiState((s) => s.mcpServer.connectionState);\n const aui = useAui();\n if (!DISCONNECTABLE.has(state)) return null;\n return (\n <Primitive.button\n {...props}\n type=\"button\"\n ref={ref}\n onClick={(e) => {\n props.onClick?.(e);\n if (e.defaultPrevented) return;\n void aui.mcpServer.disconnect();\n }}\n />\n );\n});\n\nMcpServerPrimitiveDisconnectButton.displayName =\n \"McpServerPrimitive.DisconnectButton\";\n"],"mappings":";;;;;;AAaA,MAAMU,iCAAiB,IAAIC,IAAI;CAAC;CAAa;CAAc;AAAa,CAAC;AAEzE,MAAaL,qCAAqCJ,YAGhDU,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,QAAcX,YAAYY,KAAkC;CAC5D,MAAAC,MAAYd,OAAO;CACnB,IAAI,CAACM,eAAcS,IAAKH,KAAK,GAAC,OAAS;CAAK,IAAAI;CAAA,IAAAN,EAAA,OAAAI,OAAAJ,EAAA,OAAAF,OAAA;EAM/BQ,MAAAC,MAAA;GACPT,MAAKU,UAAWD,CAAC;GACjB,IAAIA,EAACE,kBAAiB;GACjBL,IAAGM,UAAUC,WAAY;EAAC;EAChCX,EAAA,KAAAI;EAAAJ,EAAA,KAAAF;EAAAE,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,IAAAY;CAAA,IAAAZ,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAM,IAAA;EARHM,KAAA,oBAAA,UAAA,QAAA;GAAA,GACMd;GACC,MAAA;GACAC;GACI,SAAAO;EAIR,CAAA;EACDN,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAM;EAAAN,EAAA,KAAAY;CAAA,OAAAA,KAAAZ,EAAA;CAAA,OATFY;AASE,CAEL;AAEDpB,mCAAmCqB,cACjC;AAnBA,SAAAV,MAAAW,GAAA;CAAA,OACiCA,EAACJ,UAAUK;AAAgB"}
1
+ {"version":3,"file":"McpServerDisconnectButton.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAui","useAuiState","McpServerPrimitiveDisconnectButton","Element","button","Props","DISCONNECTABLE","Set","props","ref","$","_c","state","_temp","aui","has","t0","e","onClick","defaultPrevented","mcpServer","disconnect","t1","displayName","s","connectionState","_c"],"sources":["../../../src/primitives/server/McpServerDisconnectButton.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveDisconnectButton {\n export type Element = ComponentRef<typeof Primitive.button>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.button>;\n}\n\nconst DISCONNECTABLE = new Set([\"connected\", \"connecting\", \"authPending\"]);\n\nexport const McpServerPrimitiveDisconnectButton = forwardRef<\n McpServerPrimitiveDisconnectButton.Element,\n McpServerPrimitiveDisconnectButton.Props\n>((props, ref) => {\n const state = useAuiState((s) => s.mcpServer.connectionState);\n const aui = useAui();\n if (!DISCONNECTABLE.has(state)) return null;\n return (\n <Primitive.button\n {...props}\n type=\"button\"\n ref={ref}\n onClick={(e) => {\n props.onClick?.(e);\n if (e.defaultPrevented) return;\n void aui.mcpServer.disconnect();\n }}\n />\n );\n});\n\nMcpServerPrimitiveDisconnectButton.displayName =\n \"McpServerPrimitive.DisconnectButton\";\n"],"mappings":";;;;;;AAaA,MAAMU,iCAAiB,IAAIC,IAAI;CAAC;CAAa;CAAc;AAAa,CAAC;AAEzE,MAAaL,qCAAqCJ,YAGhDU,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,QAAcX,YAAYY,KAAkC;CAC5D,MAAAC,MAAYd,OAAO;CACnB,IAAI,CAACM,eAAcS,IAAKH,KAAK,GAAC,OAAS;CAAK,IAAAI;CAAA,IAAAN,EAAA,OAAAI,OAAAJ,EAAA,OAAAF,OAAA;EAM/BQ,MAAAC,MAAA;GACPT,MAAKU,UAAWD,CAAC;GACjB,IAAIA,EAACE,kBAAiB;GACjBL,IAAGM,UAAUC,WAAY;EAAC;EAChCX,EAAA,KAAAI;EAAAJ,EAAA,KAAAF;EAAAE,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,IAAAY;CAAA,IAAAZ,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAM,IAAA;EARHM,KAAA,oBAAA,UAAA,QAAA;GAAA,GACMd;GACC,MAAA;GACAC;GACI,SAAAO;EAIR,CAAA;EACDN,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAM;EAAAN,EAAA,KAAAY;CAAA,OAAAA,KAAAZ,EAAA;CAAA,OATFY;AASE,CAEL;AAEDpB,mCAAmCqB,cACjC;AAnBA,SAAAV,MAAAW,GAAA;CAAA,OACiCA,EAACJ,UAAUK;AAAgB"}
@@ -1,12 +1,10 @@
1
- import { ComponentPropsWithoutRef, ComponentRef } from "react";
1
+ import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- //#region src/primitives/server/McpServerError.d.ts
4
3
  export declare namespace McpServerPrimitiveError {
5
- type Element = ComponentRef<typeof Primitive.div>;
6
- type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
4
+ type Element = ComponentRef<typeof Primitive.div>;
5
+ type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
7
6
  }
8
7
  export declare const McpServerPrimitiveError: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
9
- asChild?: boolean;
8
+ asChild?: boolean;
10
9
  }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
11
- //#endregion
12
10
  //# sourceMappingURL=McpServerError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerError.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerError.tsx"],"mappings":";;;yBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;qBAGnD,yCAAuB,0BAAA,qBAAA,gBAAA,kCAAA,eAAA;;4BAWlC,cAAA"}
1
+ {"version":3,"file":"McpServerError.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerError.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;CACpE;AAED,eAAO,MAAM,uBAAuB;;0DAWlC,CAAC"}
@@ -1,8 +1,8 @@
1
- import { useAuiState } from "@assistant-ui/store";
2
1
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
+ import { useAuiState } from "@assistant-ui/store";
3
+ import { jsx } from "react/jsx-runtime";
3
4
  import { forwardRef } from "@assistant-ui/tap/react-shim";
4
5
  import { Primitive } from "@radix-ui/react-primitive";
5
- import { jsx } from "react/jsx-runtime";
6
6
  //#region src/primitives/server/McpServerError.tsx
7
7
  const McpServerPrimitiveError = forwardRef((props, ref) => {
8
8
  const $ = c(4);
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerError.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAuiState","McpServerPrimitiveError","Element","div","Props","props","ref","$","_c","message","_temp","t0","children","t1","displayName","s","mcpServer","lastError"],"sources":["../../../src/primitives/server/McpServerError.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveError {\n export type Element = ComponentRef<typeof Primitive.div>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.div>;\n}\n\nexport const McpServerPrimitiveError = forwardRef<\n McpServerPrimitiveError.Element,\n McpServerPrimitiveError.Props\n>((props, ref) => {\n const message = useAuiState((s) => s.mcpServer.lastError?.message ?? null);\n if (message === null) return null;\n return (\n <Primitive.div {...props} ref={ref}>\n {props.children ?? message}\n </Primitive.div>\n );\n});\n\nMcpServerPrimitiveError.displayName = \"McpServerPrimitive.Error\";\n"],"mappings":";;;;;;AAaA,MAAaK,0BAA0BH,YAGrCO,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,UAAgBT,YAAYU,KAA6C;CACzE,IAAID,YAAY,MAAI,OAAS;CAGxB,MAAAE,KAAAN,MAAKO,YAALH;CAAyB,IAAAI;CAAA,IAAAN,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAI,IAAA;EAD5BE,KAAA,oBAAA,UAAA,KAAA;GAAA,GAAmBR;GAAYC;GAC5BK,UAAAA;EACH,CAAA;EAAgBJ,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OAFhBM;AAEgB,CAEnB;AAEDZ,wBAAwBa,cAAc;AAVpC,SAAAJ,MAAAK,GAAA;CAAA,OACmCA,EAACC,UAAUC,WAAmBR,WAA9B;AAAsC"}
1
+ {"version":3,"file":"McpServerError.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAuiState","McpServerPrimitiveError","Element","div","Props","props","ref","$","_c","message","_temp","t0","children","t1","displayName","s","mcpServer","lastError","_c"],"sources":["../../../src/primitives/server/McpServerError.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveError {\n export type Element = ComponentRef<typeof Primitive.div>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.div>;\n}\n\nexport const McpServerPrimitiveError = forwardRef<\n McpServerPrimitiveError.Element,\n McpServerPrimitiveError.Props\n>((props, ref) => {\n const message = useAuiState((s) => s.mcpServer.lastError?.message ?? null);\n if (message === null) return null;\n return (\n <Primitive.div {...props} ref={ref}>\n {props.children ?? message}\n </Primitive.div>\n );\n});\n\nMcpServerPrimitiveError.displayName = \"McpServerPrimitive.Error\";\n"],"mappings":";;;;;;AAaA,MAAaK,0BAA0BH,YAGrCO,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,UAAgBT,YAAYU,KAA6C;CACzE,IAAID,YAAY,MAAI,OAAS;CAGxB,MAAAE,KAAAN,MAAKO,YAALH;CAAyB,IAAAI;CAAA,IAAAN,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAI,IAAA;EAD5BE,KAAA,oBAAA,UAAA,KAAA;GAAA,GAAmBR;GAAYC;GAC5BK,UAAAA;EACH,CAAA;EAAgBJ,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OAFhBM;AAEgB,CAEnB;AAEDZ,wBAAwBa,cAAc;AAVpC,SAAAJ,MAAAK,GAAA;CAAA,OACmCA,EAACC,UAAUC,WAAmBR,WAA9B;AAAsC"}
@@ -1,20 +1,18 @@
1
- import { ComponentPropsWithoutRef, ComponentRef } from "react";
1
+ import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- //#region src/primitives/server/McpServerIcon.d.ts
4
3
  export declare namespace McpServerPrimitiveIcon {
5
- type Element = ComponentRef<typeof Primitive.img>;
6
- type Props = Omit<ComponentPropsWithoutRef<typeof Primitive.img>, "src" | "alt"> & {
4
+ type Element = ComponentRef<typeof Primitive.img>;
5
+ type Props = Omit<ComponentPropsWithoutRef<typeof Primitive.img>, "src" | "alt"> & {
6
+ /** Override the icon URL. Defaults to the server's icon prop. */
7
+ src?: string;
8
+ alt?: string;
9
+ };
10
+ }
11
+ export declare const McpServerPrimitiveIcon: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & {
12
+ asChild?: boolean;
13
+ }, "ref">, "src" | "alt"> & {
7
14
  /** Override the icon URL. Defaults to the server's icon prop. */
8
15
  src?: string;
9
16
  alt?: string;
10
- };
11
- }
12
- export declare const McpServerPrimitiveIcon: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & {
13
- asChild?: boolean;
14
- }, "ref">, "alt" | "src"> & {
15
- /** Override the icon URL. Defaults to the server's icon prop. */
16
- src?: string;
17
- alt?: string;
18
17
  } & import("react").RefAttributes<HTMLImageElement>>;
19
- //#endregion
20
18
  //# sourceMappingURL=McpServerIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerIcon.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerIcon.tsx"],"mappings":";;;yBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,KAClB,gCAAgC,UAAU;;IAI1C;IACA;;;qBAIS,wCAAsB,0BAAA,KAAA,qBAAA,gBAAA,oCAAA,kBAAA;;;;EALzB;EACA;oBAeR,cAAA"}
1
+ {"version":3,"file":"McpServerIcon.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,IAAI,CACtB,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,EAC9C,KAAK,GAAG,KAAK,CACd,GAAG;QACF,iEAAiE;QACjE,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,eAAO,MAAM,sBAAsB;;;IAN/B,iEAAiE;UAC3D,MAAM;UACN,MAAM;oDAed,CAAC"}
@@ -1,8 +1,8 @@
1
- import { useAuiState } from "@assistant-ui/store";
2
1
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
+ import { useAuiState } from "@assistant-ui/store";
3
+ import { jsx } from "react/jsx-runtime";
3
4
  import { forwardRef } from "@assistant-ui/tap/react-shim";
4
5
  import { Primitive } from "@radix-ui/react-primitive";
5
- import { jsx } from "react/jsx-runtime";
6
6
  //#region src/primitives/server/McpServerIcon.tsx
7
7
  const McpServerPrimitiveIcon = forwardRef((t0, ref) => {
8
8
  const $ = c(9);
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerIcon.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAuiState","McpServerPrimitiveIcon","Element","img","Props","Omit","src","alt","t0","ref","$","_c","props","iconUrl","_temp","name","_temp2","effective","t1","t2","displayName","s","mcpServer","icon","s_0"],"sources":["../../../src/primitives/server/McpServerIcon.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveIcon {\n export type Element = ComponentRef<typeof Primitive.img>;\n export type Props = Omit<\n ComponentPropsWithoutRef<typeof Primitive.img>,\n \"src\" | \"alt\"\n > & {\n /** Override the icon URL. Defaults to the server's icon prop. */\n src?: string;\n alt?: string;\n };\n}\n\nexport const McpServerPrimitiveIcon = forwardRef<\n McpServerPrimitiveIcon.Element,\n McpServerPrimitiveIcon.Props\n>(({ src, alt, ...props }, ref) => {\n const iconUrl = useAuiState((s) => s.mcpServer.icon ?? null);\n const name = useAuiState((s) => s.mcpServer.name);\n const effective = src ?? iconUrl;\n if (!effective) return null;\n return (\n <Primitive.img {...props} ref={ref} src={effective} alt={alt ?? name} />\n );\n});\n\nMcpServerPrimitiveIcon.displayName = \"McpServerPrimitive.Icon\";\n"],"mappings":";;;;;;AAoBA,MAAaK,yBAAyBH,YAGpCU,IAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAN;CAAA,IAAAI,EAAA,OAAAF,IAAA;EAAC,CAAA,CAAAF,KAAAC,KAAA,GAAAK,SAAAJ;EAAsBE,EAAA,KAAAF;EAAAE,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAJ;CAAA,OAAA;EAAAC,MAAAG,EAAA;EAAAE,QAAAF,EAAA;EAAAJ,MAAAI,EAAA;CAAA;CACvB,MAAAG,UAAgBb,YAAYc,KAA+B;CAC3D,MAAAC,OAAaf,YAAYgB,MAAuB;CAChD,MAAAC,YAAkBX,OAAAO;CAClB,IAAI,CAACI,WAAS,OAAS;CAEoC,MAAAC,KAAAX,OAAAQ;CAAW,IAAAI;CAAA,IAAAT,EAAA,OAAAO,aAAAP,EAAA,OAAAE,SAAAF,EAAA,OAAAD,OAAAC,EAAA,OAAAQ,IAAA;EAApEC,KAAA,oBAAA,UAAA,KAAA;GAAA,GAAmBP;GAAYH;GAAUQ,KAAAA;GAAgB,KAAAC;EAAW,CAAA;EAAIR,EAAA,KAAAO;EAAAP,EAAA,KAAAE;EAAAF,EAAA,KAAAD;EAAAC,EAAA,KAAAQ;EAAAR,EAAA,KAAAS;CAAA,OAAAA,KAAAT,EAAA;CAAA,OAAxES;AAAwE,CAE3E;AAEDlB,uBAAuBmB,cAAc;AAVnC,SAAAN,MAAAO,GAAA;CAAA,OACmCA,EAACC,UAAUC,QAAX;AAAwB;AAD3D,SAAAP,OAAAQ,KAAA;CAAA,OAEgCH,IAACC,UAAUP;AAAK"}
1
+ {"version":3,"file":"McpServerIcon.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAuiState","McpServerPrimitiveIcon","Element","img","Props","Omit","src","alt","t0","ref","$","_c","props","iconUrl","_temp","name","_temp2","effective","t1","t2","displayName","s","mcpServer","icon","s_0","_c"],"sources":["../../../src/primitives/server/McpServerIcon.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveIcon {\n export type Element = ComponentRef<typeof Primitive.img>;\n export type Props = Omit<\n ComponentPropsWithoutRef<typeof Primitive.img>,\n \"src\" | \"alt\"\n > & {\n /** Override the icon URL. Defaults to the server's icon prop. */\n src?: string;\n alt?: string;\n };\n}\n\nexport const McpServerPrimitiveIcon = forwardRef<\n McpServerPrimitiveIcon.Element,\n McpServerPrimitiveIcon.Props\n>(({ src, alt, ...props }, ref) => {\n const iconUrl = useAuiState((s) => s.mcpServer.icon ?? null);\n const name = useAuiState((s) => s.mcpServer.name);\n const effective = src ?? iconUrl;\n if (!effective) return null;\n return (\n <Primitive.img {...props} ref={ref} src={effective} alt={alt ?? name} />\n );\n});\n\nMcpServerPrimitiveIcon.displayName = \"McpServerPrimitive.Icon\";\n"],"mappings":";;;;;;AAoBA,MAAaK,yBAAyBH,YAGpCU,IAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAN;CAAA,IAAAI,EAAA,OAAAF,IAAA;EAAC,CAAA,CAAAF,KAAAC,KAAA,GAAAK,SAAAJ;EAAsBE,EAAA,KAAAF;EAAAE,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAJ;CAAA,OAAA;EAAAC,MAAAG,EAAA;EAAAE,QAAAF,EAAA;EAAAJ,MAAAI,EAAA;CAAA;CACvB,MAAAG,UAAgBb,YAAYc,KAA+B;CAC3D,MAAAC,OAAaf,YAAYgB,MAAuB;CAChD,MAAAC,YAAkBX,OAAAO;CAClB,IAAI,CAACI,WAAS,OAAS;CAEoC,MAAAC,KAAAX,OAAAQ;CAAW,IAAAI;CAAA,IAAAT,EAAA,OAAAO,aAAAP,EAAA,OAAAE,SAAAF,EAAA,OAAAD,OAAAC,EAAA,OAAAQ,IAAA;EAApEC,KAAA,oBAAA,UAAA,KAAA;GAAA,GAAmBP;GAAYH;GAAUQ,KAAAA;GAAgB,KAAAC;EAAW,CAAA;EAAIR,EAAA,KAAAO;EAAAP,EAAA,KAAAE;EAAAF,EAAA,KAAAD;EAAAC,EAAA,KAAAQ;EAAAR,EAAA,KAAAS;CAAA,OAAAA,KAAAT,EAAA;CAAA,OAAxES;AAAwE,CAE3E;AAEDlB,uBAAuBmB,cAAc;AAVnC,SAAAN,MAAAO,GAAA;CAAA,OACmCA,EAACC,UAAUC,QAAX;AAAwB;AAD3D,SAAAP,OAAAQ,KAAA;CAAA,OAEgCH,IAACC,UAAUP;AAAK"}
@@ -1,12 +1,10 @@
1
- import { ComponentPropsWithoutRef, ComponentRef } from "react";
1
+ import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- //#region src/primitives/server/McpServerName.d.ts
4
3
  export declare namespace McpServerPrimitiveName {
5
- type Element = ComponentRef<typeof Primitive.span>;
6
- type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
4
+ type Element = ComponentRef<typeof Primitive.span>;
5
+ type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
7
6
  }
8
7
  export declare const McpServerPrimitiveName: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
9
- asChild?: boolean;
8
+ asChild?: boolean;
10
9
  }, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
11
- //#endregion
12
10
  //# sourceMappingURL=McpServerName.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerName.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerName.tsx"],"mappings":";;;yBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;qBAGnD,wCAAsB,0BAAA,qBAAA,gBAAA,mCAAA,eAAA;;4BAUjC,cAAA"}
1
+ {"version":3,"file":"McpServerName.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerName.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED,eAAO,MAAM,sBAAsB;;2DAUjC,CAAC"}
@@ -1,8 +1,8 @@
1
- import { useAuiState } from "@assistant-ui/store";
2
1
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
+ import { useAuiState } from "@assistant-ui/store";
3
+ import { jsx } from "react/jsx-runtime";
3
4
  import { forwardRef } from "@assistant-ui/tap/react-shim";
4
5
  import { Primitive } from "@radix-ui/react-primitive";
5
- import { jsx } from "react/jsx-runtime";
6
6
  //#region src/primitives/server/McpServerName.tsx
7
7
  const McpServerPrimitiveName = forwardRef((props, ref) => {
8
8
  const $ = c(4);
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerName.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAuiState","McpServerPrimitiveName","Element","span","Props","props","ref","$","_c","name","_temp","t0","children","t1","displayName","s","mcpServer"],"sources":["../../../src/primitives/server/McpServerName.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveName {\n export type Element = ComponentRef<typeof Primitive.span>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.span>;\n}\n\nexport const McpServerPrimitiveName = forwardRef<\n McpServerPrimitiveName.Element,\n McpServerPrimitiveName.Props\n>((props, ref) => {\n const name = useAuiState((s) => s.mcpServer.name);\n return (\n <Primitive.span {...props} ref={ref}>\n {props.children ?? name}\n </Primitive.span>\n );\n});\n\nMcpServerPrimitiveName.displayName = \"McpServerPrimitive.Name\";\n"],"mappings":";;;;;;AAaA,MAAaK,yBAAyBH,YAGpCO,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,OAAaT,YAAYU,KAAuB;CAG3C,MAAAC,KAAAN,MAAKO,YAALH;CAAsB,IAAAI;CAAA,IAAAN,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAI,IAAA;EADzBE,KAAA,oBAAA,UAAA,MAAA;GAAA,GAAoBR;GAAYC;GAC7BK,UAAAA;EACH,CAAA;EAAiBJ,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OAFjBM;AAEiB,CAEpB;AAEDZ,uBAAuBa,cAAc;AATnC,SAAAJ,MAAAK,GAAA;CAAA,OACgCA,EAACC,UAAUP;AAAK"}
1
+ {"version":3,"file":"McpServerName.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAuiState","McpServerPrimitiveName","Element","span","Props","props","ref","$","_c","name","_temp","t0","children","t1","displayName","s","mcpServer","_c"],"sources":["../../../src/primitives/server/McpServerName.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveName {\n export type Element = ComponentRef<typeof Primitive.span>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.span>;\n}\n\nexport const McpServerPrimitiveName = forwardRef<\n McpServerPrimitiveName.Element,\n McpServerPrimitiveName.Props\n>((props, ref) => {\n const name = useAuiState((s) => s.mcpServer.name);\n return (\n <Primitive.span {...props} ref={ref}>\n {props.children ?? name}\n </Primitive.span>\n );\n});\n\nMcpServerPrimitiveName.displayName = \"McpServerPrimitive.Name\";\n"],"mappings":";;;;;;AAaA,MAAaK,yBAAyBH,YAGpCO,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,OAAaT,YAAYU,KAAuB;CAG3C,MAAAC,KAAAN,MAAKO,YAALH;CAAsB,IAAAI;CAAA,IAAAN,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAI,IAAA;EADzBE,KAAA,oBAAA,UAAA,MAAA;GAAA,GAAoBR;GAAYC;GAC7BK,UAAAA;EACH,CAAA;EAAiBJ,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OAFjBM;AAEiB,CAEpB;AAEDZ,uBAAuBa,cAAc;AATnC,SAAAJ,MAAAK,GAAA;CAAA,OACgCA,EAACC,UAAUP;AAAK"}
@@ -1,18 +1,16 @@
1
- import { ComponentPropsWithoutRef, ComponentRef } from "react";
1
+ import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- //#region src/primitives/server/McpServerOAuthLink.d.ts
4
3
  export declare namespace McpServerPrimitiveOAuthLink {
5
- type Element = ComponentRef<typeof Primitive.a>;
6
- type Props = Omit<ComponentPropsWithoutRef<typeof Primitive.a>, "href"> & {
7
- /** Optional href override; defaults to the server's authorizationUrl. */
8
- href?: string;
9
- };
4
+ type Element = ComponentRef<typeof Primitive.a>;
5
+ type Props = Omit<ComponentPropsWithoutRef<typeof Primitive.a>, "href"> & {
6
+ /** Optional href override; defaults to the server's authorizationUrl. */
7
+ href?: string;
8
+ };
10
9
  }
11
10
  export declare const McpServerPrimitiveOAuthLink: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLAnchorElement> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & {
12
- asChild?: boolean;
11
+ asChild?: boolean;
13
12
  }, "ref">, "href"> & {
14
- /** Optional href override; defaults to the server's authorizationUrl. */
15
- href?: string;
13
+ /** Optional href override; defaults to the server's authorizationUrl. */
14
+ href?: string;
16
15
  } & import("react").RefAttributes<HTMLAnchorElement>>;
17
- //#endregion
18
16
  //# sourceMappingURL=McpServerOAuthLink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerOAuthLink.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerOAuthLink.tsx"],"mappings":";;;yBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,KAClB,gCAAgC,UAAU;;IAI1C;;;qBAIS,6CAA2B,0BAAA,KAAA,qBAAA,gBAAA,qCAAA,qBAAA;;;;EAJ7B;oBAoBT,cAAA"}
1
+ {"version":3,"file":"McpServerOAuthLink.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerOAuthLink.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,2BAA2B,CAAC;IAC3C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;IACvD,KAAY,KAAK,GAAG,IAAI,CACtB,wBAAwB,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,EAC5C,MAAM,CACP,GAAG;QACF,yEAAyE;QACzE,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,eAAO,MAAM,2BAA2B;;;IALpC,yEAAyE;WAClE,MAAM;qDAoBf,CAAC"}
@@ -1,8 +1,8 @@
1
- import { useAuiState } from "@assistant-ui/store";
2
1
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
+ import { useAuiState } from "@assistant-ui/store";
3
+ import { jsx } from "react/jsx-runtime";
3
4
  import { forwardRef } from "@assistant-ui/tap/react-shim";
4
5
  import { Primitive } from "@radix-ui/react-primitive";
5
- import { jsx } from "react/jsx-runtime";
6
6
  //#region src/primitives/server/McpServerOAuthLink.tsx
7
7
  const McpServerPrimitiveOAuthLink = forwardRef((t0, ref) => {
8
8
  const $ = c(8);
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerOAuthLink.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAuiState","McpServerPrimitiveOAuthLink","Element","a","Props","Omit","href","t0","ref","$","_c","props","url","_temp","effective","t1","rel","t2","displayName","s","mcpServer","authorizationUrl"],"sources":["../../../src/primitives/server/McpServerOAuthLink.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveOAuthLink {\n export type Element = ComponentRef<typeof Primitive.a>;\n export type Props = Omit<\n ComponentPropsWithoutRef<typeof Primitive.a>,\n \"href\"\n > & {\n /** Optional href override; defaults to the server's authorizationUrl. */\n href?: string;\n };\n}\n\nexport const McpServerPrimitiveOAuthLink = forwardRef<\n McpServerPrimitiveOAuthLink.Element,\n McpServerPrimitiveOAuthLink.Props\n>(({ href, ...props }, ref) => {\n const url = useAuiState((s) => s.mcpServer.authorizationUrl);\n const effective = href ?? url;\n if (!effective) return null;\n return (\n <Primitive.a\n target=\"_blank\"\n {...props}\n ref={ref}\n href={effective}\n rel={props.rel ?? \"noopener noreferrer\"}\n />\n );\n});\n\nMcpServerPrimitiveOAuthLink.displayName = \"McpServerPrimitive.OAuthLink\";\n"],"mappings":";;;;;;AAmBA,MAAaK,8BAA8BH,YAGzCS,IAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAF,EAAA,OAAAF,IAAA;EAAC,CAAA,CAAAD,MAAA,GAAAK,SAAAJ;EAAkBE,EAAA,KAAAF;EAAAE,EAAA,KAAAH;EAAAG,EAAA,KAAAE;CAAA,OAAA;EAAAL,OAAAG,EAAA;EAAAE,QAAAF,EAAA;CAAA;CACnB,MAAAG,MAAYZ,YAAYa,KAAmC;CAC3D,MAAAC,YAAkBR,QAAAM;CAClB,IAAI,CAACE,WAAS,OAAS;CAOd,MAAAC,KAAAJ,MAAKK,OAAL;CAAkC,IAAAC;CAAA,IAAAR,EAAA,OAAAK,aAAAL,EAAA,OAAAE,SAAAF,EAAA,OAAAD,OAAAC,EAAA,OAAAM,IAAA;EALzCE,KAAA,oBAAA,UAAA,GAAA;GACS,QAAA;GAAQ,GACXN;GACCH;GACCM,MAAAA;GACD,KAAAC;EAAkC,CAAA;EACvCN,EAAA,KAAAK;EAAAL,EAAA,KAAAE;EAAAF,EAAA,KAAAD;EAAAC,EAAA,KAAAM;EAAAN,EAAA,KAAAQ;CAAA,OAAAA,KAAAR,EAAA;CAAA,OANFQ;AAME,CAEL;AAEDhB,4BAA4BiB,cAAc;AAfxC,SAAAL,MAAAM,GAAA;CAAA,OAC+BA,EAACC,UAAUC;AAAiB"}
1
+ {"version":3,"file":"McpServerOAuthLink.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAuiState","McpServerPrimitiveOAuthLink","Element","a","Props","Omit","href","t0","ref","$","_c","props","url","_temp","effective","t1","rel","t2","displayName","s","mcpServer","authorizationUrl","_c"],"sources":["../../../src/primitives/server/McpServerOAuthLink.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveOAuthLink {\n export type Element = ComponentRef<typeof Primitive.a>;\n export type Props = Omit<\n ComponentPropsWithoutRef<typeof Primitive.a>,\n \"href\"\n > & {\n /** Optional href override; defaults to the server's authorizationUrl. */\n href?: string;\n };\n}\n\nexport const McpServerPrimitiveOAuthLink = forwardRef<\n McpServerPrimitiveOAuthLink.Element,\n McpServerPrimitiveOAuthLink.Props\n>(({ href, ...props }, ref) => {\n const url = useAuiState((s) => s.mcpServer.authorizationUrl);\n const effective = href ?? url;\n if (!effective) return null;\n return (\n <Primitive.a\n target=\"_blank\"\n {...props}\n ref={ref}\n href={effective}\n rel={props.rel ?? \"noopener noreferrer\"}\n />\n );\n});\n\nMcpServerPrimitiveOAuthLink.displayName = \"McpServerPrimitive.OAuthLink\";\n"],"mappings":";;;;;;AAmBA,MAAaK,8BAA8BH,YAGzCS,IAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAJ;CAAA,IAAAK;CAAA,IAAAF,EAAA,OAAAF,IAAA;EAAC,CAAA,CAAAD,MAAA,GAAAK,SAAAJ;EAAkBE,EAAA,KAAAF;EAAAE,EAAA,KAAAH;EAAAG,EAAA,KAAAE;CAAA,OAAA;EAAAL,OAAAG,EAAA;EAAAE,QAAAF,EAAA;CAAA;CACnB,MAAAG,MAAYZ,YAAYa,KAAmC;CAC3D,MAAAC,YAAkBR,QAAAM;CAClB,IAAI,CAACE,WAAS,OAAS;CAOd,MAAAC,KAAAJ,MAAKK,OAAL;CAAkC,IAAAC;CAAA,IAAAR,EAAA,OAAAK,aAAAL,EAAA,OAAAE,SAAAF,EAAA,OAAAD,OAAAC,EAAA,OAAAM,IAAA;EALzCE,KAAA,oBAAA,UAAA,GAAA;GACS,QAAA;GAAQ,GACXN;GACCH;GACCM,MAAAA;GACD,KAAAC;EAAkC,CAAA;EACvCN,EAAA,KAAAK;EAAAL,EAAA,KAAAE;EAAAF,EAAA,KAAAD;EAAAC,EAAA,KAAAM;EAAAN,EAAA,KAAAQ;CAAA,OAAAA,KAAAR,EAAA;CAAA,OANFQ;AAME,CAEL;AAEDhB,4BAA4BiB,cAAc;AAfxC,SAAAL,MAAAM,GAAA;CAAA,OAC+BA,EAACC,UAAUC;AAAiB"}
@@ -1,12 +1,10 @@
1
- import { ComponentPropsWithoutRef, ComponentRef } from "react";
1
+ import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- //#region src/primitives/server/McpServerRemoveButton.d.ts
4
3
  export declare namespace McpServerPrimitiveRemoveButton {
5
- type Element = ComponentRef<typeof Primitive.button>;
6
- type Props = ComponentPropsWithoutRef<typeof Primitive.button>;
4
+ type Element = ComponentRef<typeof Primitive.button>;
5
+ type Props = ComponentPropsWithoutRef<typeof Primitive.button>;
7
6
  }
8
7
  export declare const McpServerPrimitiveRemoveButton: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
9
- asChild?: boolean;
8
+ asChild?: boolean;
10
9
  }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
11
- //#endregion
12
10
  //# sourceMappingURL=McpServerRemoveButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerRemoveButton.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerRemoveButton.tsx"],"mappings":";;;yBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;qBAGnD,gDAA8B,0BAAA,qBAAA,gBAAA,qCAAA,qBAAA;;4BAmBzC,cAAA"}
1
+ {"version":3,"file":"McpServerRemoveButton.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerRemoveButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,8BAA8B,CAAC;IAC9C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;IAC5D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;CACvE;AAED,eAAO,MAAM,8BAA8B;;6DAmBzC,CAAC"}
@@ -1,8 +1,8 @@
1
- import { useAui, useAuiState } from "@assistant-ui/store";
2
1
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
+ import { useAui, useAuiState } from "@assistant-ui/store";
3
+ import { jsx } from "react/jsx-runtime";
3
4
  import { forwardRef } from "@assistant-ui/tap/react-shim";
4
5
  import { Primitive } from "@radix-ui/react-primitive";
5
- import { jsx } from "react/jsx-runtime";
6
6
  //#region src/primitives/server/McpServerRemoveButton.tsx
7
7
  const McpServerPrimitiveRemoveButton = forwardRef((props, ref) => {
8
8
  const $ = c(7);
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerRemoveButton.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAui","useAuiState","McpServerPrimitiveRemoveButton","Element","button","Props","props","ref","$","_c","kind","_temp","aui","t0","e","onClick","defaultPrevented","mcpServer","remove","catch","_temp2","t1","displayName","s"],"sources":["../../../src/primitives/server/McpServerRemoveButton.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveRemoveButton {\n export type Element = ComponentRef<typeof Primitive.button>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.button>;\n}\n\nexport const McpServerPrimitiveRemoveButton = forwardRef<\n McpServerPrimitiveRemoveButton.Element,\n McpServerPrimitiveRemoveButton.Props\n>((props, ref) => {\n const kind = useAuiState((s) => s.mcpServer.kind);\n const aui = useAui();\n if (kind !== \"custom\") return null;\n return (\n <Primitive.button\n {...props}\n type=\"button\"\n ref={ref}\n onClick={(e) => {\n props.onClick?.(e);\n if (e.defaultPrevented) return;\n void aui.mcpServer.remove().catch(() => undefined);\n }}\n />\n );\n});\n\nMcpServerPrimitiveRemoveButton.displayName = \"McpServerPrimitive.RemoveButton\";\n"],"mappings":";;;;;;AAaA,MAAaM,iCAAiCJ,YAG5CQ,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,OAAaT,YAAYU,KAAuB;CAChD,MAAAC,MAAYZ,OAAO;CACnB,IAAIU,SAAS,UAAQ,OAAS;CAAK,IAAAG;CAAA,IAAAL,EAAA,OAAAI,OAAAJ,EAAA,OAAAF,OAAA;EAMtBO,MAAAC,MAAA;GACPR,MAAKS,UAAWD,CAAC;GACjB,IAAIA,EAACE,kBAAiB;GACjBJ,IAAGK,UAAUC,OAAQ,CAAC,CAAAC,MAAOC,MAAe;EAAC;EACnDZ,EAAA,KAAAI;EAAAJ,EAAA,KAAAF;EAAAE,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,IAAAa;CAAA,IAAAb,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAK,IAAA;EARHQ,KAAA,oBAAA,UAAA,QAAA;GAAA,GACMf;GACC,MAAA;GACAC;GACI,SAAAM;EAIR,CAAA;EACDL,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAK;EAAAL,EAAA,KAAAa;CAAA,OAAAA,KAAAb,EAAA;CAAA,OATFa;AASE,CAEL;AAEDnB,+BAA+BoB,cAAc;AAlB3C,SAAAX,MAAAY,GAAA;CAAA,OACgCA,EAACN,UAAUP;AAAK;AADhD,SAAAU,SAAA,CAAA"}
1
+ {"version":3,"file":"McpServerRemoveButton.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAui","useAuiState","McpServerPrimitiveRemoveButton","Element","button","Props","props","ref","$","_c","kind","_temp","aui","t0","e","onClick","defaultPrevented","mcpServer","remove","catch","_temp2","t1","displayName","s","_c"],"sources":["../../../src/primitives/server/McpServerRemoveButton.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveRemoveButton {\n export type Element = ComponentRef<typeof Primitive.button>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.button>;\n}\n\nexport const McpServerPrimitiveRemoveButton = forwardRef<\n McpServerPrimitiveRemoveButton.Element,\n McpServerPrimitiveRemoveButton.Props\n>((props, ref) => {\n const kind = useAuiState((s) => s.mcpServer.kind);\n const aui = useAui();\n if (kind !== \"custom\") return null;\n return (\n <Primitive.button\n {...props}\n type=\"button\"\n ref={ref}\n onClick={(e) => {\n props.onClick?.(e);\n if (e.defaultPrevented) return;\n void aui.mcpServer.remove().catch(() => undefined);\n }}\n />\n );\n});\n\nMcpServerPrimitiveRemoveButton.displayName = \"McpServerPrimitive.RemoveButton\";\n"],"mappings":";;;;;;AAaA,MAAaM,iCAAiCJ,YAG5CQ,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,OAAaT,YAAYU,KAAuB;CAChD,MAAAC,MAAYZ,OAAO;CACnB,IAAIU,SAAS,UAAQ,OAAS;CAAK,IAAAG;CAAA,IAAAL,EAAA,OAAAI,OAAAJ,EAAA,OAAAF,OAAA;EAMtBO,MAAAC,MAAA;GACPR,MAAKS,UAAWD,CAAC;GACjB,IAAIA,EAACE,kBAAiB;GACjBJ,IAAGK,UAAUC,OAAQ,CAAC,CAAAC,MAAOC,MAAe;EAAC;EACnDZ,EAAA,KAAAI;EAAAJ,EAAA,KAAAF;EAAAE,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,IAAAa;CAAA,IAAAb,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAK,IAAA;EARHQ,KAAA,oBAAA,UAAA,QAAA;GAAA,GACMf;GACC,MAAA;GACAC;GACI,SAAAM;EAIR,CAAA;EACDL,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAK;EAAAL,EAAA,KAAAa;CAAA,OAAAA,KAAAb,EAAA;CAAA,OATFa;AASE,CAEL;AAEDnB,+BAA+BoB,cAAc;AAlB3C,SAAAX,MAAAY,GAAA;CAAA,OACgCA,EAACN,UAAUP;AAAK;AADhD,SAAAU,SAAA,CAAA"}
@@ -1,12 +1,10 @@
1
- import { ComponentPropsWithoutRef, ComponentRef } from "react";
1
+ import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- //#region src/primitives/server/McpServerRoot.d.ts
4
3
  export declare namespace McpServerPrimitiveRoot {
5
- type Element = ComponentRef<typeof Primitive.div>;
6
- type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
4
+ type Element = ComponentRef<typeof Primitive.div>;
5
+ type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
7
6
  }
8
7
  export declare const McpServerPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
9
- asChild?: boolean;
8
+ asChild?: boolean;
10
9
  }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
11
- //#endregion
12
10
  //# sourceMappingURL=McpServerRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerRoot.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerRoot.tsx"],"mappings":";;;yBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;qBAGnD,wCAAsB,0BAAA,qBAAA,gBAAA,kCAAA,eAAA;;4BAmBjC,cAAA"}
1
+ {"version":3,"file":"McpServerRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;CACpE;AAED,eAAO,MAAM,sBAAsB;;0DAmBjC,CAAC"}
@@ -1,8 +1,8 @@
1
- import { useAuiState } from "@assistant-ui/store";
2
1
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
+ import { useAuiState } from "@assistant-ui/store";
3
+ import { jsx } from "react/jsx-runtime";
3
4
  import { forwardRef } from "@assistant-ui/tap/react-shim";
4
5
  import { Primitive } from "@radix-ui/react-primitive";
5
- import { jsx } from "react/jsx-runtime";
6
6
  //#region src/primitives/server/McpServerRoot.tsx
7
7
  const McpServerPrimitiveRoot = forwardRef((props, ref) => {
8
8
  const $ = c(7);
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerRoot.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAuiState","McpServerPrimitiveRoot","Element","div","Props","props","ref","$","_c","id","_temp","kind","_temp2","connectionState","_temp3","hasError","_temp4","t0","undefined","t1","displayName","s","mcpServer","s_0","s_1","s_2","lastError"],"sources":["../../../src/primitives/server/McpServerRoot.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveRoot {\n export type Element = ComponentRef<typeof Primitive.div>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.div>;\n}\n\nexport const McpServerPrimitiveRoot = forwardRef<\n McpServerPrimitiveRoot.Element,\n McpServerPrimitiveRoot.Props\n>((props, ref) => {\n const id = useAuiState((s) => s.mcpServer.id);\n const kind = useAuiState((s) => s.mcpServer.kind);\n const connectionState = useAuiState((s) => s.mcpServer.connectionState);\n const hasError = useAuiState((s) => s.mcpServer.lastError !== null);\n\n return (\n <Primitive.div\n {...props}\n ref={ref}\n data-server-id={id}\n data-kind={kind}\n data-connection-state={connectionState}\n data-has-error={hasError || undefined}\n />\n );\n});\n\nMcpServerPrimitiveRoot.displayName = \"McpServerPrimitive.Root\";\n"],"mappings":";;;;;;AAaA,MAAaK,yBAAyBH,YAGpCO,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,KAAWT,YAAYU,KAAqB;CAC5C,MAAAC,OAAaX,YAAYY,MAAuB;CAChD,MAAAC,kBAAwBb,YAAYc,MAAkC;CAUlD,MAAAG,KATHjB,YAAYgB,MASTD,KAAAG,KAAAA;CAAqB,IAAAC;CAAA,IAAAZ,EAAA,OAAAM,mBAAAN,EAAA,OAAAE,MAAAF,EAAA,OAAAI,QAAAJ,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAU,IAAA;EANvCE,KAAA,oBAAA,UAAA,KAAA;GAAA,GACMd;GACCC;GACWG,kBAAAA;GACLE,aAAAA;GACYE,yBAAAA;GACP,kBAAAI;EAAqB,CAAA;EACrCV,EAAA,KAAAM;EAAAN,EAAA,KAAAE;EAAAF,EAAA,KAAAI;EAAAJ,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAU;EAAAV,EAAA,KAAAY;CAAA,OAAAA,KAAAZ,EAAA;CAAA,OAPFY;AAOE,CAEL;AAEDlB,uBAAuBmB,cAAc;AAlBnC,SAAAV,MAAAW,GAAA;CAAA,OAC8BA,EAACC,UAAUb;AAAG;AAD5C,SAAAG,OAAAW,KAAA;CAAA,OAEgCF,IAACC,UAAUX;AAAK;AAFhD,SAAAG,OAAAU,KAAA;CAAA,OAG2CH,IAACC,UAAUT;AAAgB;AAHtE,SAAAG,OAAAS,KAAA;CAAA,OAIoCJ,IAACC,UAAUI,cAAe;AAAI"}
1
+ {"version":3,"file":"McpServerRoot.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAuiState","McpServerPrimitiveRoot","Element","div","Props","props","ref","$","_c","id","_temp","kind","_temp2","connectionState","_temp3","hasError","_temp4","t0","undefined","t1","displayName","s","mcpServer","s_0","s_1","s_2","lastError","_c"],"sources":["../../../src/primitives/server/McpServerRoot.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveRoot {\n export type Element = ComponentRef<typeof Primitive.div>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.div>;\n}\n\nexport const McpServerPrimitiveRoot = forwardRef<\n McpServerPrimitiveRoot.Element,\n McpServerPrimitiveRoot.Props\n>((props, ref) => {\n const id = useAuiState((s) => s.mcpServer.id);\n const kind = useAuiState((s) => s.mcpServer.kind);\n const connectionState = useAuiState((s) => s.mcpServer.connectionState);\n const hasError = useAuiState((s) => s.mcpServer.lastError !== null);\n\n return (\n <Primitive.div\n {...props}\n ref={ref}\n data-server-id={id}\n data-kind={kind}\n data-connection-state={connectionState}\n data-has-error={hasError || undefined}\n />\n );\n});\n\nMcpServerPrimitiveRoot.displayName = \"McpServerPrimitive.Root\";\n"],"mappings":";;;;;;AAaA,MAAaK,yBAAyBH,YAGpCO,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,KAAWT,YAAYU,KAAqB;CAC5C,MAAAC,OAAaX,YAAYY,MAAuB;CAChD,MAAAC,kBAAwBb,YAAYc,MAAkC;CAUlD,MAAAG,KATHjB,YAAYgB,MASTD,KAAAG,KAAAA;CAAqB,IAAAC;CAAA,IAAAZ,EAAA,OAAAM,mBAAAN,EAAA,OAAAE,MAAAF,EAAA,OAAAI,QAAAJ,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAU,IAAA;EANvCE,KAAA,oBAAA,UAAA,KAAA;GAAA,GACMd;GACCC;GACWG,kBAAAA;GACLE,aAAAA;GACYE,yBAAAA;GACP,kBAAAI;EAAqB,CAAA;EACrCV,EAAA,KAAAM;EAAAN,EAAA,KAAAE;EAAAF,EAAA,KAAAI;EAAAJ,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAU;EAAAV,EAAA,KAAAY;CAAA,OAAAA,KAAAZ,EAAA;CAAA,OAPFY;AAOE,CAEL;AAEDlB,uBAAuBmB,cAAc;AAlBnC,SAAAV,MAAAW,GAAA;CAAA,OAC8BA,EAACC,UAAUb;AAAG;AAD5C,SAAAG,OAAAW,KAAA;CAAA,OAEgCF,IAACC,UAAUX;AAAK;AAFhD,SAAAG,OAAAU,KAAA;CAAA,OAG2CH,IAACC,UAAUT;AAAgB;AAHtE,SAAAG,OAAAS,KAAA;CAAA,OAIoCJ,IAACC,UAAUI,cAAe;AAAI"}
@@ -1,12 +1,10 @@
1
- import { ComponentPropsWithoutRef, ComponentRef } from "react";
1
+ import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- //#region src/primitives/server/McpServerStatus.d.ts
4
3
  export declare namespace McpServerPrimitiveStatus {
5
- type Element = ComponentRef<typeof Primitive.span>;
6
- type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
4
+ type Element = ComponentRef<typeof Primitive.span>;
5
+ type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
7
6
  }
8
7
  export declare const McpServerPrimitiveStatus: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
9
- asChild?: boolean;
8
+ asChild?: boolean;
10
9
  }, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
11
- //#endregion
12
10
  //# sourceMappingURL=McpServerStatus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerStatus.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerStatus.tsx"],"mappings":";;;yBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;qBAGnD,0CAAwB,0BAAA,qBAAA,gBAAA,mCAAA,eAAA;;4BAUnC,cAAA"}
1
+ {"version":3,"file":"McpServerStatus.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,wBAAwB,CAAC;IACxC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED,eAAO,MAAM,wBAAwB;;2DAUnC,CAAC"}
@@ -1,8 +1,8 @@
1
- import { useAuiState } from "@assistant-ui/store";
2
1
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
+ import { useAuiState } from "@assistant-ui/store";
3
+ import { jsx } from "react/jsx-runtime";
3
4
  import { forwardRef } from "@assistant-ui/tap/react-shim";
4
5
  import { Primitive } from "@radix-ui/react-primitive";
5
- import { jsx } from "react/jsx-runtime";
6
6
  //#region src/primitives/server/McpServerStatus.tsx
7
7
  const McpServerPrimitiveStatus = forwardRef((props, ref) => {
8
8
  const $ = c(5);
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerStatus.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAuiState","McpServerPrimitiveStatus","Element","span","Props","props","ref","$","_c","state","_temp","t0","children","t1","displayName","s","mcpServer","connectionState"],"sources":["../../../src/primitives/server/McpServerStatus.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveStatus {\n export type Element = ComponentRef<typeof Primitive.span>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.span>;\n}\n\nexport const McpServerPrimitiveStatus = forwardRef<\n McpServerPrimitiveStatus.Element,\n McpServerPrimitiveStatus.Props\n>((props, ref) => {\n const state = useAuiState((s) => s.mcpServer.connectionState);\n return (\n <Primitive.span {...props} ref={ref} data-state={state}>\n {props.children ?? state}\n </Primitive.span>\n );\n});\n\nMcpServerPrimitiveStatus.displayName = \"McpServerPrimitive.Status\";\n"],"mappings":";;;;;;AAaA,MAAaK,2BAA2BH,YAGtCO,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,QAAcT,YAAYU,KAAkC;CAGvD,MAAAC,KAAAN,MAAKO,YAALH;CAAuB,IAAAI;CAAA,IAAAN,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAE,SAAAF,EAAA,OAAAI,IAAA;EAD1BE,KAAA,oBAAA,UAAA,MAAA;GAAA,GAAoBR;GAAYC;GAAiBG,cAAAA;GAC9CE,UAAAA;EACH,CAAA;EAAiBJ,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAE;EAAAF,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OAFjBM;AAEiB,CAEpB;AAEDZ,yBAAyBa,cAAc;AATrC,SAAAJ,MAAAK,GAAA;CAAA,OACiCA,EAACC,UAAUC;AAAgB"}
1
+ {"version":3,"file":"McpServerStatus.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useAuiState","McpServerPrimitiveStatus","Element","span","Props","props","ref","$","_c","state","_temp","t0","children","t1","displayName","s","mcpServer","connectionState","_c"],"sources":["../../../src/primitives/server/McpServerStatus.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveStatus {\n export type Element = ComponentRef<typeof Primitive.span>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.span>;\n}\n\nexport const McpServerPrimitiveStatus = forwardRef<\n McpServerPrimitiveStatus.Element,\n McpServerPrimitiveStatus.Props\n>((props, ref) => {\n const state = useAuiState((s) => s.mcpServer.connectionState);\n return (\n <Primitive.span {...props} ref={ref} data-state={state}>\n {props.children ?? state}\n </Primitive.span>\n );\n});\n\nMcpServerPrimitiveStatus.displayName = \"McpServerPrimitive.Status\";\n"],"mappings":";;;;;;AAaA,MAAaK,2BAA2BH,YAGtCO,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,QAAcT,YAAYU,KAAkC;CAGvD,MAAAC,KAAAN,MAAKO,YAALH;CAAuB,IAAAI;CAAA,IAAAN,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAE,SAAAF,EAAA,OAAAI,IAAA;EAD1BE,KAAA,oBAAA,UAAA,MAAA;GAAA,GAAoBR;GAAYC;GAAiBG,cAAAA;GAC9CE,UAAAA;EACH,CAAA;EAAiBJ,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAE;EAAAF,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OAFjBM;AAEiB,CAEpB;AAEDZ,yBAAyBa,cAAc;AATrC,SAAAJ,MAAAK,GAAA;CAAA,OACiCA,EAACC,UAAUC;AAAgB"}
@@ -1,12 +1,10 @@
1
- import { ComponentPropsWithoutRef, ComponentRef } from "react";
1
+ import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- //#region src/primitives/server/McpServerToolName.d.ts
4
3
  export declare namespace McpServerPrimitiveToolName {
5
- type Element = ComponentRef<typeof Primitive.span>;
6
- type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
4
+ type Element = ComponentRef<typeof Primitive.span>;
5
+ type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
7
6
  }
8
7
  export declare const McpServerPrimitiveToolName: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
9
- asChild?: boolean;
8
+ asChild?: boolean;
10
9
  }, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
11
- //#endregion
12
10
  //# sourceMappingURL=McpServerToolName.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerToolName.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerToolName.tsx"],"mappings":";;;yBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;qBAGnD,4CAA0B,0BAAA,qBAAA,gBAAA,mCAAA,eAAA;;4BAUrC,cAAA"}
1
+ {"version":3,"file":"McpServerToolName.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerToolName.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,0BAA0B,CAAC;IAC1C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED,eAAO,MAAM,0BAA0B;;2DAUrC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { useMcpServerTool } from "./McpServerTools.js";
2
2
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
3
+ import { jsx } from "react/jsx-runtime";
3
4
  import { forwardRef } from "@assistant-ui/tap/react-shim";
4
5
  import { Primitive } from "@radix-ui/react-primitive";
5
- import { jsx } from "react/jsx-runtime";
6
6
  //#region src/primitives/server/McpServerToolName.tsx
7
7
  const McpServerPrimitiveToolName = forwardRef((props, ref) => {
8
8
  const $ = c(5);
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerToolName.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useMcpServerTool","McpServerPrimitiveToolName","Element","span","Props","props","ref","$","_c","tool","t0","children","name","t1","displayName"],"sources":["../../../src/primitives/server/McpServerToolName.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useMcpServerTool } from \"./McpServerTools\";\n\nexport namespace McpServerPrimitiveToolName {\n export type Element = ComponentRef<typeof Primitive.span>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.span>;\n}\n\nexport const McpServerPrimitiveToolName = forwardRef<\n McpServerPrimitiveToolName.Element,\n McpServerPrimitiveToolName.Props\n>((props, ref) => {\n const tool = useMcpServerTool();\n return (\n <Primitive.span {...props} ref={ref} data-tool-name={tool.name}>\n {props.children ?? tool.name}\n </Primitive.span>\n );\n});\n\nMcpServerPrimitiveToolName.displayName = \"McpServerPrimitive.ToolName\";\n"],"mappings":";;;;;;AAaA,MAAaK,6BAA6BH,YAGxCO,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,OAAaT,iBAAiB;CAGzB,MAAAU,KAAAL,MAAKM,YAAaF,KAAIG;CAAK,IAAAC;CAAA,IAAAN,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAG,MAAAH,EAAA,OAAAE,KAAAG,MAAA;EAD9BC,KAAA,oBAAA,UAAA,MAAA;GAAA,GAAoBR;GAAYC;GAAqB,kBAAAG,KAAIG;GACtDF,UAAAA;EACH,CAAA;EAAiBH,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAG;EAAAH,EAAA,KAAAE,KAAAG;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OAFjBM;AAEiB,CAEpB;AAEDZ,2BAA2Ba,cAAc"}
1
+ {"version":3,"file":"McpServerToolName.js","names":["ComponentPropsWithoutRef","ComponentRef","forwardRef","Primitive","useMcpServerTool","McpServerPrimitiveToolName","Element","span","Props","props","ref","$","_c","tool","t0","children","name","t1","displayName","_c"],"sources":["../../../src/primitives/server/McpServerToolName.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useMcpServerTool } from \"./McpServerTools\";\n\nexport namespace McpServerPrimitiveToolName {\n export type Element = ComponentRef<typeof Primitive.span>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.span>;\n}\n\nexport const McpServerPrimitiveToolName = forwardRef<\n McpServerPrimitiveToolName.Element,\n McpServerPrimitiveToolName.Props\n>((props, ref) => {\n const tool = useMcpServerTool();\n return (\n <Primitive.span {...props} ref={ref} data-tool-name={tool.name}>\n {props.children ?? tool.name}\n </Primitive.span>\n );\n});\n\nMcpServerPrimitiveToolName.displayName = \"McpServerPrimitive.ToolName\";\n"],"mappings":";;;;;;AAaA,MAAaK,6BAA6BH,YAGxCO,OAAAC,QAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACA,MAAAC,OAAaT,iBAAiB;CAGzB,MAAAU,KAAAL,MAAKM,YAAaF,KAAIG;CAAK,IAAAC;CAAA,IAAAN,EAAA,OAAAF,SAAAE,EAAA,OAAAD,OAAAC,EAAA,OAAAG,MAAAH,EAAA,OAAAE,KAAAG,MAAA;EAD9BC,KAAA,oBAAA,UAAA,MAAA;GAAA,GAAoBR;GAAYC;GAAqB,kBAAAG,KAAIG;GACtDF,UAAAA;EACH,CAAA;EAAiBH,EAAA,KAAAF;EAAAE,EAAA,KAAAD;EAAAC,EAAA,KAAAG;EAAAH,EAAA,KAAAE,KAAAG;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OAFjBM;AAEiB,CAEpB;AAEDZ,2BAA2Ba,cAAc"}
@@ -1,12 +1,10 @@
1
- import { MCPToolInfo } from "../../mcp-scope.js";
2
- import { FC, ReactNode } from "react";
3
- //#region src/primitives/server/McpServerTools.d.ts
1
+ import { type FC, type ReactNode } from "react";
2
+ import type { MCPToolInfo } from "../../mcp-scope.js";
4
3
  export declare const useMcpServerTool: () => MCPToolInfo;
5
4
  export declare namespace McpServerPrimitiveTools {
6
- type Props = {
7
- children: ReactNode | ((tool: MCPToolInfo) => ReactNode);
8
- };
5
+ type Props = {
6
+ children: ReactNode | ((tool: MCPToolInfo) => ReactNode);
7
+ };
9
8
  }
10
9
  export declare const McpServerPrimitiveTools: FC<McpServerPrimitiveTools.Props>;
11
- //#endregion
12
10
  //# sourceMappingURL=McpServerTools.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerTools.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerTools.tsx"],"mappings":";;;qBAMa,wBAAuB;yBAUnB;OACH;IACV,UAAU,cAAc,MAAM,gBAAgB;;;qBAIrC,yBAAyB,GAAG,wBAAwB"}
1
+ {"version":3,"file":"McpServerTools.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerTools.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAwB;AAInD,eAAO,MAAM,gBAAgB,QAAO,WAQnC,CAAC;AAEF,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,KAAK,GAAG;QAClB,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE,WAAW,KAAK,SAAS,CAAC,CAAC;KAC1D,CAAC;CACH;AAED,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAcrE,CAAC"}
@@ -1,7 +1,7 @@
1
- import { useAuiState } from "@assistant-ui/store";
2
1
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
3
- import { createContext, useContext } from "@assistant-ui/tap/react-shim";
2
+ import { useAuiState } from "@assistant-ui/store";
4
3
  import { Fragment, jsx } from "react/jsx-runtime";
4
+ import { createContext, useContext } from "@assistant-ui/tap/react-shim";
5
5
  //#region src/primitives/server/McpServerTools.tsx
6
6
  const ToolContext = createContext(null);
7
7
  const useMcpServerTool = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerTools.js","names":["FC","ReactNode","createContext","useContext","useAuiState","MCPToolInfo","ToolContext","useMcpServerTool","tool","Error","McpServerPrimitiveTools","Props","children","t0","$","_c","tools","_temp","length","t1","t2","name","map","displayName","s","mcpServer"],"sources":["../../../src/primitives/server/McpServerTools.tsx"],"sourcesContent":["import { type FC, type ReactNode, createContext, useContext } from \"react\";\nimport { useAuiState } from \"@assistant-ui/store\";\nimport type { MCPToolInfo } from \"../../mcp-scope\";\n\nconst ToolContext = createContext<MCPToolInfo | null>(null);\n\nexport const useMcpServerTool = (): MCPToolInfo => {\n const tool = useContext(ToolContext);\n if (!tool) {\n throw new Error(\n \"useMcpServerTool must be used inside <McpServerPrimitive.Tools>\",\n );\n }\n return tool;\n};\n\nexport namespace McpServerPrimitiveTools {\n export type Props = {\n children: ReactNode | ((tool: MCPToolInfo) => ReactNode);\n };\n}\n\nexport const McpServerPrimitiveTools: FC<McpServerPrimitiveTools.Props> = ({\n children,\n}) => {\n const tools = useAuiState((s) => s.mcpServer.tools);\n if (tools.length === 0) return null;\n return (\n <>\n {tools.map((tool) => (\n <ToolContext.Provider key={tool.name} value={tool}>\n {typeof children === \"function\" ? children(tool) : children}\n </ToolContext.Provider>\n ))}\n </>\n );\n};\n\nMcpServerPrimitiveTools.displayName = \"McpServerPrimitive.Tools\";\n"],"mappings":";;;;;AAIA,MAAMM,cAAcJ,cAAkC,IAAI;AAE1D,MAAaK,yBAAmB;CAC9B,MAAAC,OAAaL,WAAWG,WAAW;CACnC,IAAI,CAACE,MACH,MAAM,IAAIC,MACR,iEACF;CACD,OACMD;AAAI;AASb,MAAaE,2BAA6DG,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAC,MAAA,EAAAH,aAAAC;CAGzE,MAAAG,QAAcZ,YAAYa,KAAwB;CAClD,IAAID,MAAKE,WAAY,GAAC,OAAS;CAAK,IAAAC;CAAA,IAAAL,EAAA,OAAAF,YAAAE,EAAA,OAAAE,OAAA;EAAA,IAAAI;EAAA,IAAAN,EAAA,OAAAF,UAAA;GAGrBQ,MAAAZ,SACT,oBAAA,YAAA,UAAA;IAA6CA,OAAAA;IAC1C,UAAA,OAAOI,aAAa,aAAaA,SAASJ,IAAe,IAAzDI;GACH,GAF2BJ,KAAIa,IAE/B;GACDP,EAAA,KAAAF;GAAAE,EAAA,KAAAM;EAAA,OAAAA,KAAAN,EAAA;EAJAK,KAAAH,MAAKM,IAAKF,EAIV;EAACN,EAAA,KAAAF;EAAAE,EAAA,KAAAE;EAAAF,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,IAAAM;CAAA,IAAAN,EAAA,OAAAK,IAAA;EALJC,KAAA,oBAAA,UAAA,EAAA,UACGD,GAIC,CAAA;EACDL,EAAA,KAAAK;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OANHM;AAMG;AAIPV,wBAAwBa,cAAc;AAhBoC,SAAAN,MAAAO,GAAA;CAAA,OAGvCA,EAACC,UAAUT;AAAM"}
1
+ {"version":3,"file":"McpServerTools.js","names":["FC","ReactNode","createContext","useContext","useAuiState","MCPToolInfo","ToolContext","useMcpServerTool","tool","Error","McpServerPrimitiveTools","Props","children","t0","$","_c","tools","_temp","length","t1","t2","name","map","displayName","s","mcpServer","_c"],"sources":["../../../src/primitives/server/McpServerTools.tsx"],"sourcesContent":["import { type FC, type ReactNode, createContext, useContext } from \"react\";\nimport { useAuiState } from \"@assistant-ui/store\";\nimport type { MCPToolInfo } from \"../../mcp-scope\";\n\nconst ToolContext = createContext<MCPToolInfo | null>(null);\n\nexport const useMcpServerTool = (): MCPToolInfo => {\n const tool = useContext(ToolContext);\n if (!tool) {\n throw new Error(\n \"useMcpServerTool must be used inside <McpServerPrimitive.Tools>\",\n );\n }\n return tool;\n};\n\nexport namespace McpServerPrimitiveTools {\n export type Props = {\n children: ReactNode | ((tool: MCPToolInfo) => ReactNode);\n };\n}\n\nexport const McpServerPrimitiveTools: FC<McpServerPrimitiveTools.Props> = ({\n children,\n}) => {\n const tools = useAuiState((s) => s.mcpServer.tools);\n if (tools.length === 0) return null;\n return (\n <>\n {tools.map((tool) => (\n <ToolContext.Provider key={tool.name} value={tool}>\n {typeof children === \"function\" ? children(tool) : children}\n </ToolContext.Provider>\n ))}\n </>\n );\n};\n\nMcpServerPrimitiveTools.displayName = \"McpServerPrimitive.Tools\";\n"],"mappings":";;;;;AAIA,MAAMM,cAAcJ,cAAkC,IAAI;AAE1D,MAAaK,yBAAmB;CAC9B,MAAAC,OAAaL,WAAWG,WAAW;CACnC,IAAI,CAACE,MACH,MAAM,IAAIC,MACR,iEACF;CACD,OACMD;AAAI;AASb,MAAaE,2BAA6DG,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAC,MAAA,EAAAH,aAAAC;CAGzE,MAAAG,QAAcZ,YAAYa,KAAwB;CAClD,IAAID,MAAKE,WAAY,GAAC,OAAS;CAAK,IAAAC;CAAA,IAAAL,EAAA,OAAAF,YAAAE,EAAA,OAAAE,OAAA;EAAA,IAAAI;EAAA,IAAAN,EAAA,OAAAF,UAAA;GAGrBQ,MAAAZ,SACT,oBAAA,YAAA,UAAA;IAA6CA,OAAAA;IAC1C,UAAA,OAAOI,aAAa,aAAaA,SAASJ,IAAe,IAAzDI;GACH,GAF2BJ,KAAIa,IAE/B;GACDP,EAAA,KAAAF;GAAAE,EAAA,KAAAM;EAAA,OAAAA,KAAAN,EAAA;EAJAK,KAAAH,MAAKM,IAAKF,EAIV;EAACN,EAAA,KAAAF;EAAAE,EAAA,KAAAE;EAAAF,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,IAAAM;CAAA,IAAAN,EAAA,OAAAK,IAAA;EALJC,KAAA,oBAAA,UAAA,EAAA,UACGD,GAIC,CAAA;EACDL,EAAA,KAAAK;EAAAL,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OANHM;AAMG;AAIPV,wBAAwBa,cAAc;AAhBoC,SAAAN,MAAAO,GAAA;CAAA,OAGvCA,EAACC,UAAUT;AAAM"}
@@ -1,17 +1,12 @@
1
- import { McpServerPrimitiveRoot } from "./server/McpServerRoot.js";
2
- import { McpServerPrimitiveName } from "./server/McpServerName.js";
3
- import { McpServerPrimitiveStatus } from "./server/McpServerStatus.js";
4
- import { McpServerPrimitiveError } from "./server/McpServerError.js";
5
- import { McpServerPrimitiveIcon } from "./server/McpServerIcon.js";
6
- import { McpServerPrimitiveConnectButton } from "./server/McpServerConnectButton.js";
7
- import { McpServerPrimitiveDisconnectButton } from "./server/McpServerDisconnectButton.js";
8
- import { McpServerPrimitiveRemoveButton } from "./server/McpServerRemoveButton.js";
9
- import { McpServerPrimitiveOAuthLink } from "./server/McpServerOAuthLink.js";
10
- import { McpServerPrimitiveTools, useMcpServerTool } from "./server/McpServerTools.js";
11
- import { McpServerPrimitiveToolName } from "./server/McpServerToolName.js";
12
- declare namespace server_d_exports {
13
- export { McpServerPrimitiveConnectButton as ConnectButton, McpServerPrimitiveDisconnectButton as DisconnectButton, McpServerPrimitiveError as Error, McpServerPrimitiveIcon as Icon, McpServerPrimitiveName as Name, McpServerPrimitiveOAuthLink as OAuthLink, McpServerPrimitiveRemoveButton as RemoveButton, McpServerPrimitiveRoot as Root, McpServerPrimitiveStatus as Status, McpServerPrimitiveToolName as ToolName, McpServerPrimitiveTools as Tools, useMcpServerTool };
14
- }
15
- //#endregion
16
- export { McpServerPrimitiveConnectButton as ConnectButton, McpServerPrimitiveDisconnectButton as DisconnectButton, McpServerPrimitiveError as Error, McpServerPrimitiveIcon as Icon, McpServerPrimitiveName as Name, McpServerPrimitiveOAuthLink as OAuthLink, McpServerPrimitiveRemoveButton as RemoveButton, McpServerPrimitiveRoot as Root, McpServerPrimitiveStatus as Status, McpServerPrimitiveToolName as ToolName, McpServerPrimitiveTools as Tools, server_d_exports, useMcpServerTool };
1
+ export { McpServerPrimitiveRoot as Root } from "./server/McpServerRoot.js";
2
+ export { McpServerPrimitiveName as Name } from "./server/McpServerName.js";
3
+ export { McpServerPrimitiveStatus as Status } from "./server/McpServerStatus.js";
4
+ export { McpServerPrimitiveError as Error } from "./server/McpServerError.js";
5
+ export { McpServerPrimitiveIcon as Icon } from "./server/McpServerIcon.js";
6
+ export { McpServerPrimitiveConnectButton as ConnectButton } from "./server/McpServerConnectButton.js";
7
+ export { McpServerPrimitiveDisconnectButton as DisconnectButton } from "./server/McpServerDisconnectButton.js";
8
+ export { McpServerPrimitiveRemoveButton as RemoveButton } from "./server/McpServerRemoveButton.js";
9
+ export { McpServerPrimitiveOAuthLink as OAuthLink } from "./server/McpServerOAuthLink.js";
10
+ export { McpServerPrimitiveTools as Tools, useMcpServerTool, } from "./server/McpServerTools.js";
11
+ export { McpServerPrimitiveToolName as ToolName } from "./server/McpServerToolName.js";
17
12
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","names":[],"sources":["../../src/primitives/server.ts"],"mappings":""}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/primitives/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,IAAI,IAAI,EAAE,kCAA+B;AACxE,OAAO,EAAE,sBAAsB,IAAI,IAAI,EAAE,kCAA+B;AACxE,OAAO,EAAE,wBAAwB,IAAI,MAAM,EAAE,oCAAiC;AAC9E,OAAO,EAAE,uBAAuB,IAAI,KAAK,EAAE,mCAAgC;AAC3E,OAAO,EAAE,sBAAsB,IAAI,IAAI,EAAE,kCAA+B;AACxE,OAAO,EAAE,+BAA+B,IAAI,aAAa,EAAE,2CAAwC;AACnG,OAAO,EAAE,kCAAkC,IAAI,gBAAgB,EAAE,8CAA2C;AAC5G,OAAO,EAAE,8BAA8B,IAAI,YAAY,EAAE,0CAAuC;AAChG,OAAO,EAAE,2BAA2B,IAAI,SAAS,EAAE,uCAAoC;AACvF,OAAO,EACL,uBAAuB,IAAI,KAAK,EAChC,gBAAgB,GACjB,mCAAgC;AACjC,OAAO,EAAE,0BAA0B,IAAI,QAAQ,EAAE,sCAAmC"}
@@ -1,17 +1,15 @@
1
- import { MCPConnector } from "../mcp-scope.js";
2
- import { MCPStorageElement } from "./storage/types.js";
3
- import { ClientOutput } from "@assistant-ui/store";
4
- //#region src/resources/McpManagerResource.d.ts
1
+ import { type ClientOutput } from "@assistant-ui/store";
2
+ import type { MCPStorageElement } from "./storage/types.js";
3
+ import type { MCPConnector } from "../mcp-scope.js";
5
4
  export type McpManagerResourceProps = {
6
- connectors?: MCPConnector[] | undefined;
7
- storage?: MCPStorageElement | undefined;
8
- /** OAuth redirect target. Defaults to `${origin}/mcp/callback`. */
9
- oauthRedirectUri?: string | undefined;
10
- /** Connect on mount when usable auth exists. Default true. */
11
- autoConnect?: boolean | undefined;
12
- /** Optional timeout in milliseconds for connect/listTools calls. Disabled by default. */
13
- connectionTimeout?: number | undefined;
5
+ connectors?: MCPConnector[] | undefined;
6
+ storage?: MCPStorageElement | undefined;
7
+ /** OAuth redirect target. Defaults to `${origin}/mcp/callback`. */
8
+ oauthRedirectUri?: string | undefined;
9
+ /** Connect on mount when usable auth exists. Default true. */
10
+ autoConnect?: boolean | undefined;
11
+ /** Optional timeout in milliseconds for connect/listTools calls. Disabled by default. */
12
+ connectionTimeout?: number | undefined;
14
13
  };
15
14
  export declare const McpManagerResource: import("@assistant-ui/tap").Resource<ClientOutput<"mcp">, [props: McpManagerResourceProps]>;
16
- //#endregion
17
15
  //# sourceMappingURL=McpManagerResource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpManagerResource.d.ts","names":[],"sources":["../../src/resources/McpManagerResource.ts"],"mappings":";;;;YAgCY;EACV,aAAa;EACb,UAAU;;EAEV;;EAEA;;EAEA;;qBA0cW,gDAAkB,SAAA,sBAAA,OAAA"}
1
+ {"version":3,"file":"McpManagerResource.d.ts","sourceRoot":"","sources":["../../src/resources/McpManagerResource.ts"],"names":[],"mappings":"AASA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAc,iBAAiB,EAAE,2BAAwB;AAErE,OAAO,KAAK,EAEV,YAAY,EAGb,wBAAqB;AAEtB,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU,CAAC,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;IACxC,OAAO,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACxC,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,yFAAyF;IACzF,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAycF,eAAO,MAAM,kBAAkB,6FAAkC,CAAC"}