@assistant-ui/react-mcp 0.1.18 → 0.1.20

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 (192) hide show
  1. package/dist/auth/buildHeaders.d.ts +3 -6
  2. package/dist/auth/buildHeaders.d.ts.map +1 -1
  3. package/dist/auth/createOAuthProvider.d.ts +24 -26
  4. package/dist/auth/createOAuthProvider.d.ts.map +1 -1
  5. package/dist/auth/types.d.ts +13 -16
  6. package/dist/auth/types.d.ts.map +1 -1
  7. package/dist/connector.d.ts +2 -5
  8. package/dist/connector.d.ts.map +1 -1
  9. package/dist/context/McpConnectorByIndexProvider.d.ts +3 -6
  10. package/dist/context/McpConnectorByIndexProvider.d.ts.map +1 -1
  11. package/dist/context/McpConnectorByIndexProvider.js +1 -1
  12. package/dist/context/McpCustomServerByIndexProvider.d.ts +3 -6
  13. package/dist/context/McpCustomServerByIndexProvider.d.ts.map +1 -1
  14. package/dist/context/McpCustomServerByIndexProvider.js +1 -1
  15. package/dist/context/McpServerByIdProvider.d.ts +3 -6
  16. package/dist/context/McpServerByIdProvider.d.ts.map +1 -1
  17. package/dist/context/McpServerByIdProvider.js +1 -1
  18. package/dist/hooks/useMcpOAuthCallback.d.ts +14 -17
  19. package/dist/hooks/useMcpOAuthCallback.d.ts.map +1 -1
  20. package/dist/hooks/useMcpOAuthCallback.js +6 -2
  21. package/dist/hooks/useMcpOAuthCallback.js.map +1 -1
  22. package/dist/index.d.ts +19 -18
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +4 -4
  25. package/dist/mcp-scope.d.ts +124 -127
  26. package/dist/mcp-scope.d.ts.map +1 -1
  27. package/dist/primitives/addForm/McpAddFormAuthFields.d.ts +14 -16
  28. package/dist/primitives/addForm/McpAddFormAuthFields.d.ts.map +1 -1
  29. package/dist/primitives/addForm/McpAddFormAuthFields.js +18 -71
  30. package/dist/primitives/addForm/McpAddFormAuthFields.js.map +1 -1
  31. package/dist/primitives/addForm/McpAddFormAuthSelect.d.ts +5 -8
  32. package/dist/primitives/addForm/McpAddFormAuthSelect.d.ts.map +1 -1
  33. package/dist/primitives/addForm/McpAddFormAuthSelect.js +1 -1
  34. package/dist/primitives/addForm/McpAddFormBearerTokenField.d.ts +8 -0
  35. package/dist/primitives/addForm/McpAddFormBearerTokenField.d.ts.map +1 -0
  36. package/dist/primitives/addForm/McpAddFormBearerTokenField.js +50 -0
  37. package/dist/primitives/addForm/McpAddFormBearerTokenField.js.map +1 -0
  38. package/dist/primitives/addForm/McpAddFormCancel.d.ts +6 -9
  39. package/dist/primitives/addForm/McpAddFormCancel.d.ts.map +1 -1
  40. package/dist/primitives/addForm/McpAddFormCancel.js +1 -1
  41. package/dist/primitives/addForm/McpAddFormError.d.ts +6 -9
  42. package/dist/primitives/addForm/McpAddFormError.d.ts.map +1 -1
  43. package/dist/primitives/addForm/McpAddFormError.js +1 -1
  44. package/dist/primitives/addForm/McpAddFormNameField.d.ts +5 -8
  45. package/dist/primitives/addForm/McpAddFormNameField.d.ts.map +1 -1
  46. package/dist/primitives/addForm/McpAddFormNameField.js +1 -1
  47. package/dist/primitives/addForm/McpAddFormRoot.d.ts +11 -14
  48. package/dist/primitives/addForm/McpAddFormRoot.d.ts.map +1 -1
  49. package/dist/primitives/addForm/McpAddFormRoot.js +2 -2
  50. package/dist/primitives/addForm/McpAddFormScopesField.d.ts +8 -0
  51. package/dist/primitives/addForm/McpAddFormScopesField.d.ts.map +1 -0
  52. package/dist/primitives/addForm/McpAddFormScopesField.js +38 -0
  53. package/dist/primitives/addForm/McpAddFormScopesField.js.map +1 -0
  54. package/dist/primitives/addForm/McpAddFormSubmit.d.ts +6 -9
  55. package/dist/primitives/addForm/McpAddFormSubmit.d.ts.map +1 -1
  56. package/dist/primitives/addForm/McpAddFormSubmit.js +1 -1
  57. package/dist/primitives/addForm/McpAddFormUrlField.d.ts +5 -8
  58. package/dist/primitives/addForm/McpAddFormUrlField.d.ts.map +1 -1
  59. package/dist/primitives/addForm/McpAddFormUrlField.js +1 -1
  60. package/dist/primitives/addForm/context.d.ts +25 -28
  61. package/dist/primitives/addForm/context.d.ts.map +1 -1
  62. package/dist/primitives/addForm.d.ts +10 -13
  63. package/dist/primitives/addForm.d.ts.map +1 -1
  64. package/dist/primitives/addForm.js +5 -1
  65. package/dist/primitives/addForm.js.map +1 -1
  66. package/dist/primitives/elicitation/McpElicitationPrimitiveAccept.d.ts +6 -9
  67. package/dist/primitives/elicitation/McpElicitationPrimitiveAccept.d.ts.map +1 -1
  68. package/dist/primitives/elicitation/McpElicitationPrimitiveAccept.js +2 -2
  69. package/dist/primitives/elicitation/McpElicitationPrimitiveCancel.d.ts +6 -9
  70. package/dist/primitives/elicitation/McpElicitationPrimitiveCancel.d.ts.map +1 -1
  71. package/dist/primitives/elicitation/McpElicitationPrimitiveCancel.js +2 -2
  72. package/dist/primitives/elicitation/McpElicitationPrimitiveDecline.d.ts +6 -9
  73. package/dist/primitives/elicitation/McpElicitationPrimitiveDecline.d.ts.map +1 -1
  74. package/dist/primitives/elicitation/McpElicitationPrimitiveDecline.js +2 -2
  75. package/dist/primitives/elicitation/McpElicitationPrimitiveError.d.ts +6 -9
  76. package/dist/primitives/elicitation/McpElicitationPrimitiveError.d.ts.map +1 -1
  77. package/dist/primitives/elicitation/McpElicitationPrimitiveError.js +1 -1
  78. package/dist/primitives/elicitation/McpElicitationPrimitiveFields.d.ts +8 -10
  79. package/dist/primitives/elicitation/McpElicitationPrimitiveFields.d.ts.map +1 -1
  80. package/dist/primitives/elicitation/McpElicitationPrimitiveFields.js +1 -1
  81. package/dist/primitives/elicitation/McpElicitationPrimitiveItems.d.ts +8 -11
  82. package/dist/primitives/elicitation/McpElicitationPrimitiveItems.d.ts.map +1 -1
  83. package/dist/primitives/elicitation/McpElicitationPrimitiveItems.js +2 -2
  84. package/dist/primitives/elicitation/McpElicitationPrimitiveMessage.d.ts +6 -9
  85. package/dist/primitives/elicitation/McpElicitationPrimitiveMessage.d.ts.map +1 -1
  86. package/dist/primitives/elicitation/McpElicitationPrimitiveMessage.js +1 -1
  87. package/dist/primitives/elicitation/McpElicitationPrimitiveRoot.d.ts +6 -9
  88. package/dist/primitives/elicitation/McpElicitationPrimitiveRoot.d.ts.map +1 -1
  89. package/dist/primitives/elicitation/McpElicitationPrimitiveRoot.js +1 -1
  90. package/dist/primitives/elicitation/context.d.ts +15 -18
  91. package/dist/primitives/elicitation/context.d.ts.map +1 -1
  92. package/dist/primitives/elicitation/initialElicitationDraft.d.ts +1 -4
  93. package/dist/primitives/elicitation/initialElicitationDraft.d.ts.map +1 -1
  94. package/dist/primitives/elicitation/prepareElicitationContent.d.ts +4 -7
  95. package/dist/primitives/elicitation/prepareElicitationContent.d.ts.map +1 -1
  96. package/dist/primitives/elicitation/prepareElicitationContent.js +5 -1
  97. package/dist/primitives/elicitation/prepareElicitationContent.js.map +1 -1
  98. package/dist/primitives/elicitation.d.ts +8 -14
  99. package/dist/primitives/elicitation.d.ts.map +1 -1
  100. package/dist/primitives/manager/McpManagerAddCustomTrigger.d.ts +6 -9
  101. package/dist/primitives/manager/McpManagerAddCustomTrigger.d.ts.map +1 -1
  102. package/dist/primitives/manager/McpManagerAddCustomTrigger.js +1 -1
  103. package/dist/primitives/manager/McpManagerConnectors.d.ts +14 -17
  104. package/dist/primitives/manager/McpManagerConnectors.d.ts.map +1 -1
  105. package/dist/primitives/manager/McpManagerConnectors.js +1 -1
  106. package/dist/primitives/manager/McpManagerCustomServers.d.ts +14 -17
  107. package/dist/primitives/manager/McpManagerCustomServers.d.ts.map +1 -1
  108. package/dist/primitives/manager/McpManagerCustomServers.js +1 -1
  109. package/dist/primitives/manager/McpManagerRoot.d.ts +6 -9
  110. package/dist/primitives/manager/McpManagerRoot.d.ts.map +1 -1
  111. package/dist/primitives/manager/McpManagerRoot.js +2 -2
  112. package/dist/primitives/manager.d.ts +4 -9
  113. package/dist/primitives/manager.d.ts.map +1 -1
  114. package/dist/primitives/server/McpServerConnectButton.d.ts +6 -9
  115. package/dist/primitives/server/McpServerConnectButton.d.ts.map +1 -1
  116. package/dist/primitives/server/McpServerConnectButton.js +2 -2
  117. package/dist/primitives/server/McpServerDisconnectButton.d.ts +6 -9
  118. package/dist/primitives/server/McpServerDisconnectButton.d.ts.map +1 -1
  119. package/dist/primitives/server/McpServerDisconnectButton.js +2 -2
  120. package/dist/primitives/server/McpServerError.d.ts +6 -9
  121. package/dist/primitives/server/McpServerError.d.ts.map +1 -1
  122. package/dist/primitives/server/McpServerError.js +2 -2
  123. package/dist/primitives/server/McpServerIcon.d.ts +12 -15
  124. package/dist/primitives/server/McpServerIcon.d.ts.map +1 -1
  125. package/dist/primitives/server/McpServerIcon.js +2 -2
  126. package/dist/primitives/server/McpServerName.d.ts +6 -9
  127. package/dist/primitives/server/McpServerName.d.ts.map +1 -1
  128. package/dist/primitives/server/McpServerName.js +2 -2
  129. package/dist/primitives/server/McpServerOAuthLink.d.ts +11 -14
  130. package/dist/primitives/server/McpServerOAuthLink.d.ts.map +1 -1
  131. package/dist/primitives/server/McpServerOAuthLink.js +2 -2
  132. package/dist/primitives/server/McpServerRemoveButton.d.ts +6 -9
  133. package/dist/primitives/server/McpServerRemoveButton.d.ts.map +1 -1
  134. package/dist/primitives/server/McpServerRemoveButton.js +2 -2
  135. package/dist/primitives/server/McpServerRoot.d.ts +6 -9
  136. package/dist/primitives/server/McpServerRoot.d.ts.map +1 -1
  137. package/dist/primitives/server/McpServerRoot.js +2 -2
  138. package/dist/primitives/server/McpServerStatus.d.ts +6 -9
  139. package/dist/primitives/server/McpServerStatus.d.ts.map +1 -1
  140. package/dist/primitives/server/McpServerStatus.js +2 -2
  141. package/dist/primitives/server/McpServerToolName.d.ts +6 -9
  142. package/dist/primitives/server/McpServerToolName.d.ts.map +1 -1
  143. package/dist/primitives/server/McpServerToolName.js +1 -1
  144. package/dist/primitives/server/McpServerTools.d.ts +8 -11
  145. package/dist/primitives/server/McpServerTools.d.ts.map +1 -1
  146. package/dist/primitives/server/McpServerTools.js +2 -2
  147. package/dist/primitives/server.d.ts +11 -16
  148. package/dist/primitives/server.d.ts.map +1 -1
  149. package/dist/resources/McpManagerResource.d.ts +13 -16
  150. package/dist/resources/McpManagerResource.d.ts.map +1 -1
  151. package/dist/resources/McpManagerResource.js +95 -64
  152. package/dist/resources/McpManagerResource.js.map +1 -1
  153. package/dist/resources/McpServerRemovalFence.d.ts +3 -6
  154. package/dist/resources/McpServerRemovalFence.d.ts.map +1 -1
  155. package/dist/resources/McpServerResource.d.ts +21 -24
  156. package/dist/resources/McpServerResource.d.ts.map +1 -1
  157. package/dist/resources/McpServerResource.js +55 -47
  158. package/dist/resources/McpServerResource.js.map +1 -1
  159. package/dist/resources/storage/McpCustomStorage.d.ts +2 -5
  160. package/dist/resources/storage/McpCustomStorage.d.ts.map +1 -1
  161. package/dist/resources/storage/McpLocalStorage.d.ts +18 -21
  162. package/dist/resources/storage/McpLocalStorage.d.ts.map +1 -1
  163. package/dist/resources/storage/McpLocalStorage.js +1 -1
  164. package/dist/resources/storage/McpMemoryStorage.d.ts +2 -5
  165. package/dist/resources/storage/McpMemoryStorage.d.ts.map +1 -1
  166. package/dist/resources/storage/types.d.ts +24 -27
  167. package/dist/resources/storage/types.d.ts.map +1 -1
  168. package/dist/resources/validateElicitationContent.d.ts +4 -6
  169. package/dist/resources/validateElicitationContent.d.ts.map +1 -1
  170. package/dist/utils/createMcpId.d.ts +1 -4
  171. package/dist/utils/createMcpId.d.ts.map +1 -1
  172. package/dist/utils/invokeMcpCallback.d.ts +1 -4
  173. package/dist/utils/invokeMcpCallback.d.ts.map +1 -1
  174. package/dist/utils/serverId.d.ts +2 -5
  175. package/dist/utils/serverId.d.ts.map +1 -1
  176. package/dist/utils/serverUrl.d.ts +4 -7
  177. package/dist/utils/serverUrl.d.ts.map +1 -1
  178. package/package.json +11 -10
  179. package/src/hooks/useMcpOAuthCallback.test.ts +53 -0
  180. package/src/hooks/useMcpOAuthCallback.tsx +12 -0
  181. package/src/index.ts +2 -1
  182. package/src/primitives/addForm/McpAddFormAccessibility.test.tsx +49 -0
  183. package/src/primitives/addForm/McpAddFormAuthFields.tsx +7 -15
  184. package/src/primitives/addForm/McpAddFormBearerTokenField.tsx +46 -0
  185. package/src/primitives/addForm/McpAddFormRoot.test.tsx +65 -0
  186. package/src/primitives/addForm/McpAddFormScopesField.tsx +34 -0
  187. package/src/primitives/addForm.ts +2 -0
  188. package/src/primitives/elicitation/prepareElicitationContent.ts +8 -6
  189. package/src/resources/McpManagerResource.test.ts +85 -0
  190. package/src/resources/McpManagerResource.ts +56 -23
  191. package/src/resources/McpServerResource.test.ts +121 -6
  192. package/src/resources/McpServerResource.ts +28 -12
@@ -1,7 +1,7 @@
1
1
  import { ElicitationFieldContext, useElicitationContext, useMcpElicitationField } from "./context.js";
2
2
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
3
- import "@assistant-ui/tap/react-shim";
4
3
  import { Fragment, jsx } from "react/jsx-runtime";
4
+ import "@assistant-ui/tap/react-shim";
5
5
  //#region src/primitives/elicitation/McpElicitationPrimitiveFields.tsx
6
6
  const McpElicitationPrimitiveFields = (t0) => {
7
7
  const $ = c(6);
@@ -1,13 +1,10 @@
1
- import { MCPElicitation } from "../../mcp-scope.js";
2
- import { useMcpElicitation } from "./context.js";
3
- import { FC, ReactNode } from "react";
4
- //#region src/primitives/elicitation/McpElicitationPrimitiveItems.d.ts
5
- declare namespace McpElicitationPrimitiveItems {
6
- type Props = {
7
- children: ReactNode | ((elicitation: MCPElicitation) => ReactNode);
8
- };
1
+ import { type FC, type ReactNode } from "react";
2
+ import type { MCPElicitation } from "../../mcp-scope.js";
3
+ export { useMcpElicitation } from "./context.js";
4
+ export declare namespace McpElicitationPrimitiveItems {
5
+ type Props = {
6
+ children: ReactNode | ((elicitation: MCPElicitation) => ReactNode);
7
+ };
9
8
  }
10
- declare const McpElicitationPrimitiveItems: FC<McpElicitationPrimitiveItems.Props>;
11
- //#endregion
12
- export { McpElicitationPrimitiveItems, useMcpElicitation };
9
+ export declare const McpElicitationPrimitiveItems: FC<McpElicitationPrimitiveItems.Props>;
13
10
  //# sourceMappingURL=McpElicitationPrimitiveItems.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpElicitationPrimitiveItems.d.ts","names":[],"sources":["../../../src/primitives/elicitation/McpElicitationPrimitiveItems.tsx"],"mappings":";;;;kBAQiB;OACH;IACV,UAAU,cAAc,aAAa,mBAAmB;;;cA0B/C,8BAA8B,GACzC,6BAA6B"}
1
+ {"version":3,"file":"McpElicitationPrimitiveItems.d.ts","sourceRoot":"","sources":["../../../src/primitives/elicitation/McpElicitationPrimitiveItems.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAkC,MAAM,OAAO,CAAC;AAEhF,OAAO,KAAK,EAAE,cAAc,EAAE,2BAAwB;AAItD,OAAO,EAAE,iBAAiB,EAAE,qBAAkB;AAE9C,yBAAiB,4BAA4B,CAAC;IAC5C,KAAY,KAAK,GAAG;QAClB,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,WAAW,EAAE,cAAc,KAAK,SAAS,CAAC,CAAC;KACpE,CAAC;CACH;AAwBD,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAC3C,4BAA4B,CAAC,KAAK,CAkBnC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { ElicitationContext, useMcpElicitation } from "./context.js";
2
2
  import { initialElicitationDraft } from "./initialElicitationDraft.js";
3
- import { useAuiState } from "@assistant-ui/store";
4
3
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
5
- import { useState } from "@assistant-ui/tap/react-shim";
4
+ import { useAuiState } from "@assistant-ui/store";
6
5
  import { Fragment, jsx } from "react/jsx-runtime";
6
+ import { useState } from "@assistant-ui/tap/react-shim";
7
7
  //#region src/primitives/elicitation/McpElicitationPrimitiveItems.tsx
8
8
  const McpElicitationPrimitiveItem = (t0) => {
9
9
  const $ = c(12);
@@ -1,13 +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/elicitation/McpElicitationPrimitiveMessage.d.ts
4
- declare namespace McpElicitationPrimitiveMessage {
5
- type Element = ComponentRef<typeof Primitive.span>;
6
- type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
3
+ export declare namespace McpElicitationPrimitiveMessage {
4
+ type Element = ComponentRef<typeof Primitive.span>;
5
+ type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
7
6
  }
8
- declare const McpElicitationPrimitiveMessage: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
9
- asChild?: boolean;
7
+ export declare const McpElicitationPrimitiveMessage: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
8
+ asChild?: boolean;
10
9
  }, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
11
- //#endregion
12
- export { McpElicitationPrimitiveMessage };
13
10
  //# sourceMappingURL=McpElicitationPrimitiveMessage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpElicitationPrimitiveMessage.d.ts","names":[],"sources":["../../../src/primitives/elicitation/McpElicitationPrimitiveMessage.tsx"],"mappings":";;;kBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;cAGnD,gDAA8B,0BAAA,qBAAA,gBAAA,mCAAA,eAAA;;4BAUzC,cAAA"}
1
+ {"version":3,"file":"McpElicitationPrimitiveMessage.d.ts","sourceRoot":"","sources":["../../../src/primitives/elicitation/McpElicitationPrimitiveMessage.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,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED,eAAO,MAAM,8BAA8B;;2DAUzC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { useMcpElicitation } from "./context.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/elicitation/McpElicitationPrimitiveMessage.tsx
7
7
  const McpElicitationPrimitiveMessage = forwardRef((props, ref) => {
8
8
  const $ = c(4);
@@ -1,13 +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/elicitation/McpElicitationPrimitiveRoot.d.ts
4
- declare namespace McpElicitationPrimitiveRoot {
5
- type Element = ComponentRef<typeof Primitive.div>;
6
- type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
3
+ export declare namespace McpElicitationPrimitiveRoot {
4
+ type Element = ComponentRef<typeof Primitive.div>;
5
+ type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
7
6
  }
8
- declare const McpElicitationPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
9
- asChild?: boolean;
7
+ export declare const McpElicitationPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
8
+ asChild?: boolean;
10
9
  }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
11
- //#endregion
12
- export { McpElicitationPrimitiveRoot };
13
10
  //# sourceMappingURL=McpElicitationPrimitiveRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpElicitationPrimitiveRoot.d.ts","names":[],"sources":["../../../src/primitives/elicitation/McpElicitationPrimitiveRoot.tsx"],"mappings":";;;kBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;cAGnD,6CAA2B,0BAAA,qBAAA,gBAAA,kCAAA,eAAA;;4BAQtC,cAAA"}
1
+ {"version":3,"file":"McpElicitationPrimitiveRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/elicitation/McpElicitationPrimitiveRoot.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,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;CACpE;AAED,eAAO,MAAM,2BAA2B;;0DAQtC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { useMcpElicitation } from "./context.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/elicitation/McpElicitationPrimitiveRoot.tsx
7
7
  const McpElicitationPrimitiveRoot = forwardRef((props, ref) => {
8
8
  const $ = c(4);
@@ -1,21 +1,18 @@
1
- import { MCPElicitation } from "../../mcp-scope.js";
2
- //#region src/primitives/elicitation/context.d.ts
3
- type ElicitationContextValue = {
4
- elicitation: MCPElicitation;
5
- draft: Record<string, unknown>;
6
- setField: (name: string, value: unknown) => void;
1
+ import type { MCPElicitation } from "../../mcp-scope.js";
2
+ export type ElicitationContextValue = {
3
+ elicitation: MCPElicitation;
4
+ draft: Record<string, unknown>;
5
+ setField: (name: string, value: unknown) => void;
7
6
  };
8
- type ElicitationFieldContextValue = {
9
- name: string;
10
- schema: unknown;
11
- value: unknown;
12
- setValue: (value: unknown) => void;
7
+ export type ElicitationFieldContextValue = {
8
+ name: string;
9
+ schema: unknown;
10
+ value: unknown;
11
+ setValue: (value: unknown) => void;
13
12
  };
14
- declare const ElicitationContext: import("react").Context<ElicitationContextValue | null>;
15
- declare const ElicitationFieldContext: import("react").Context<ElicitationFieldContextValue | null>;
16
- declare const useElicitationContext: () => ElicitationContextValue;
17
- declare const useMcpElicitation: () => MCPElicitation;
18
- declare const useMcpElicitationField: () => ElicitationFieldContextValue;
19
- //#endregion
20
- export { ElicitationContext, ElicitationContextValue, ElicitationFieldContext, ElicitationFieldContextValue, useElicitationContext, useMcpElicitation, useMcpElicitationField };
13
+ export declare const ElicitationContext: import("react").Context<ElicitationContextValue | null>;
14
+ export declare const ElicitationFieldContext: import("react").Context<ElicitationFieldContextValue | null>;
15
+ export declare const useElicitationContext: () => ElicitationContextValue;
16
+ export declare const useMcpElicitation: () => MCPElicitation;
17
+ export declare const useMcpElicitationField: () => ElicitationFieldContextValue;
21
18
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","names":[],"sources":["../../../src/primitives/elicitation/context.tsx"],"mappings":";;KAGY;EACV,aAAa;EACb,OAAO;EACP,WAAW,cAAc;;KAGf;EACV;EACA;EACA;EACA,WAAW;;cAGA,oCAAkB,QAAA;cAIlB,yCAAuB,QAAA;cAGvB,6BAA4B;cAU5B,yBAAwB;cAGxB,8BAA6B"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/primitives/elicitation/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAAwB;AAEtD,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,cAAc,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,kBAAkB,yDAE9B,CAAC;AAEF,eAAO,MAAM,uBAAuB,8DACsB,CAAC;AAE3D,eAAO,MAAM,qBAAqB,QAAO,uBAQxC,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,cACA,CAAC;AAEtC,eAAO,MAAM,sBAAsB,QAAO,4BAQzC,CAAC"}
@@ -1,5 +1,2 @@
1
- //#region src/primitives/elicitation/initialElicitationDraft.d.ts
2
- declare const initialElicitationDraft: (requestedSchema: unknown) => Record<string, unknown>;
3
- //#endregion
4
- export { initialElicitationDraft };
1
+ export declare const initialElicitationDraft: (requestedSchema: unknown) => Record<string, unknown>;
5
2
  //# sourceMappingURL=initialElicitationDraft.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initialElicitationDraft.d.ts","names":[],"sources":["../../../src/primitives/elicitation/initialElicitationDraft.ts"],"mappings":";cAqBa,0BACX,6BACC"}
1
+ {"version":3,"file":"initialElicitationDraft.d.ts","sourceRoot":"","sources":["../../../src/primitives/elicitation/initialElicitationDraft.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,uBAAuB,GAClC,iBAAiB,OAAO,KACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAexB,CAAC"}
@@ -1,9 +1,6 @@
1
- //#region src/primitives/elicitation/prepareElicitationContent.d.ts
2
- declare const prepareElicitationContent: (requestedSchema: unknown, draft: Record<string, unknown>) => {
3
- content: Record<string, unknown>;
4
- missingRequired: readonly string[];
5
- invalid: readonly string[];
1
+ export declare const prepareElicitationContent: (requestedSchema: unknown, draft: Record<string, unknown>) => {
2
+ content: Record<string, unknown>;
3
+ missingRequired: readonly string[];
4
+ invalid: readonly string[];
6
5
  };
7
- //#endregion
8
- export { prepareElicitationContent };
9
6
  //# sourceMappingURL=prepareElicitationContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareElicitationContent.d.ts","names":[],"sources":["../../../src/primitives/elicitation/prepareElicitationContent.ts"],"mappings":";cA4Ca,4BACX,0BACA,OAAO;EAEP,SAAS;EACT;EACA"}
1
+ {"version":3,"file":"prepareElicitationContent.d.ts","sourceRoot":"","sources":["../../../src/primitives/elicitation/prepareElicitationContent.ts"],"names":[],"mappings":"AA4CA,eAAO,MAAM,yBAAyB,GACpC,iBAAiB,OAAO,EACxB,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC7B;IACD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAmE5B,CAAC"}
@@ -29,7 +29,11 @@ const prepareElicitationContent = (requestedSchema, draft) => {
29
29
  const missingRequiredBooleans = validateElicitationContent(requestedSchema, candidateContent).filter(({ property }) => isBooleanSchema(properties[property]) && !Object.hasOwn(candidateContent, property));
30
30
  const contentWithBooleanDefaults = {
31
31
  ...candidateContent,
32
- ...Object.fromEntries(missingRequiredBooleans.map(({ property }) => [property, typeof properties[property].default === "boolean" ? properties[property].default : false]))
32
+ ...Object.fromEntries(missingRequiredBooleans.map(({ property }) => {
33
+ const schema = properties[property];
34
+ const defaultValue = isRecord(schema) ? schema.default : void 0;
35
+ return [property, typeof defaultValue === "boolean" ? defaultValue : false];
36
+ }))
33
37
  };
34
38
  const validationErrors = validateElicitationContent(requestedSchema, contentWithBooleanDefaults);
35
39
  const missingRequired = [...new Set(validationErrors.filter(({ property }) => !Object.hasOwn(contentWithBooleanDefaults, property)).map(({ property }) => property))];
@@ -1 +1 @@
1
- {"version":3,"file":"prepareElicitationContent.js","names":["validateElicitationContent","isRecord","value","Record","Array","isArray","coerceValue","schema","type","number","Number","trim","isFinite","isInteger","isBooleanSchema","isNonStringTypedSchema","schemaAdmitsEmptyString","values","Object","hasOwn","enum","undefined","includes","default","isAbsentDraftValue","prepareElicitationContent","requestedSchema","draft","content","missingRequired","invalid","properties","candidateContent","fromEntries","entries","flatMap","name","missingRequiredBooleans","filter","property","contentWithBooleanDefaults","map","validationErrors","Set"],"sources":["../../../src/primitives/elicitation/prepareElicitationContent.ts"],"sourcesContent":["import { validateElicitationContent } from \"../../resources/validateElicitationContent\";\n\nconst isRecord = (value: unknown): value is Record<string, unknown> =>\n typeof value === \"object\" && value !== null && !Array.isArray(value);\n\nconst coerceValue = (schema: unknown, value: unknown): unknown => {\n if (!isRecord(schema) || typeof value !== \"string\") {\n return value;\n }\n if (schema.type !== \"number\" && schema.type !== \"integer\") {\n return value;\n }\n\n const number = Number(value);\n if (value.trim() === \"\") return value;\n if (!Number.isFinite(number)) return value;\n if (schema.type === \"integer\" && !Number.isInteger(number)) {\n return value;\n }\n return number;\n};\n\nconst isBooleanSchema = (schema: unknown): schema is Record<string, unknown> =>\n isRecord(schema) && schema.type === \"boolean\";\n\nconst isNonStringTypedSchema = (schema: Record<string, unknown>): boolean =>\n schema.type === \"boolean\" ||\n schema.type === \"number\" ||\n schema.type === \"integer\";\n\nconst schemaAdmitsEmptyString = (schema: unknown): boolean => {\n if (!isRecord(schema) || isNonStringTypedSchema(schema)) return false;\n\n const values = Object.hasOwn(schema, \"enum\") ? schema.enum : undefined;\n if (Array.isArray(values)) return values.includes(\"\");\n\n return Object.hasOwn(schema, \"default\") && schema.default === \"\";\n};\n\nconst isAbsentDraftValue = (schema: unknown, value: unknown) =>\n value === undefined ||\n value === null ||\n (value === \"\" && !schemaAdmitsEmptyString(schema));\n\nexport const prepareElicitationContent = (\n requestedSchema: unknown,\n draft: Record<string, unknown>,\n): {\n content: Record<string, unknown>;\n missingRequired: readonly string[];\n invalid: readonly string[];\n} => {\n const properties =\n isRecord(requestedSchema) && isRecord(requestedSchema.properties)\n ? requestedSchema.properties\n : {};\n const candidateContent = Object.fromEntries(\n Object.entries(draft).flatMap(([name, value]) => {\n const schema = properties[name];\n if (isAbsentDraftValue(schema, value)) return [];\n return [[name, coerceValue(schema, value)]];\n }),\n );\n const missingRequiredBooleans = validateElicitationContent(\n requestedSchema,\n candidateContent,\n ).filter(\n ({ property }) =>\n isBooleanSchema(properties[property]) &&\n !Object.hasOwn(candidateContent, property),\n );\n const contentWithBooleanDefaults = {\n ...candidateContent,\n ...Object.fromEntries(\n missingRequiredBooleans.map(({ property }) => [\n property,\n typeof properties[property].default === \"boolean\"\n ? properties[property].default\n : false,\n ]),\n ),\n };\n const validationErrors = validateElicitationContent(\n requestedSchema,\n contentWithBooleanDefaults,\n );\n const missingRequired = [\n ...new Set(\n validationErrors\n .filter(\n ({ property }) =>\n !Object.hasOwn(contentWithBooleanDefaults, property),\n )\n .map(({ property }) => property),\n ),\n ];\n const invalid = [\n ...new Set(\n validationErrors\n .filter(({ property }) =>\n Object.hasOwn(contentWithBooleanDefaults, property),\n )\n .map(({ property }) => property),\n ),\n ];\n\n return {\n content: Object.fromEntries(\n Object.entries(contentWithBooleanDefaults).filter(\n ([property]) => !invalid.includes(property),\n ),\n ),\n missingRequired,\n invalid,\n };\n};\n"],"mappings":"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"}
1
+ {"version":3,"file":"prepareElicitationContent.js","names":["validateElicitationContent","isRecord","value","Record","Array","isArray","coerceValue","schema","type","number","Number","trim","isFinite","isInteger","isBooleanSchema","isNonStringTypedSchema","schemaAdmitsEmptyString","values","Object","hasOwn","enum","undefined","includes","default","isAbsentDraftValue","prepareElicitationContent","requestedSchema","draft","content","missingRequired","invalid","properties","candidateContent","fromEntries","entries","flatMap","name","missingRequiredBooleans","filter","property","contentWithBooleanDefaults","map","defaultValue","validationErrors","Set"],"sources":["../../../src/primitives/elicitation/prepareElicitationContent.ts"],"sourcesContent":["import { validateElicitationContent } from \"../../resources/validateElicitationContent\";\n\nconst isRecord = (value: unknown): value is Record<string, unknown> =>\n typeof value === \"object\" && value !== null && !Array.isArray(value);\n\nconst coerceValue = (schema: unknown, value: unknown): unknown => {\n if (!isRecord(schema) || typeof value !== \"string\") {\n return value;\n }\n if (schema.type !== \"number\" && schema.type !== \"integer\") {\n return value;\n }\n\n const number = Number(value);\n if (value.trim() === \"\") return value;\n if (!Number.isFinite(number)) return value;\n if (schema.type === \"integer\" && !Number.isInteger(number)) {\n return value;\n }\n return number;\n};\n\nconst isBooleanSchema = (schema: unknown): schema is Record<string, unknown> =>\n isRecord(schema) && schema.type === \"boolean\";\n\nconst isNonStringTypedSchema = (schema: Record<string, unknown>): boolean =>\n schema.type === \"boolean\" ||\n schema.type === \"number\" ||\n schema.type === \"integer\";\n\nconst schemaAdmitsEmptyString = (schema: unknown): boolean => {\n if (!isRecord(schema) || isNonStringTypedSchema(schema)) return false;\n\n const values = Object.hasOwn(schema, \"enum\") ? schema.enum : undefined;\n if (Array.isArray(values)) return values.includes(\"\");\n\n return Object.hasOwn(schema, \"default\") && schema.default === \"\";\n};\n\nconst isAbsentDraftValue = (schema: unknown, value: unknown) =>\n value === undefined ||\n value === null ||\n (value === \"\" && !schemaAdmitsEmptyString(schema));\n\nexport const prepareElicitationContent = (\n requestedSchema: unknown,\n draft: Record<string, unknown>,\n): {\n content: Record<string, unknown>;\n missingRequired: readonly string[];\n invalid: readonly string[];\n} => {\n const properties =\n isRecord(requestedSchema) && isRecord(requestedSchema.properties)\n ? requestedSchema.properties\n : {};\n const candidateContent = Object.fromEntries(\n Object.entries(draft).flatMap(([name, value]) => {\n const schema = properties[name];\n if (isAbsentDraftValue(schema, value)) return [];\n return [[name, coerceValue(schema, value)]];\n }),\n );\n const missingRequiredBooleans = validateElicitationContent(\n requestedSchema,\n candidateContent,\n ).filter(\n ({ property }) =>\n isBooleanSchema(properties[property]) &&\n !Object.hasOwn(candidateContent, property),\n );\n const contentWithBooleanDefaults = {\n ...candidateContent,\n ...Object.fromEntries(\n missingRequiredBooleans.map(({ property }) => {\n const schema = properties[property];\n const defaultValue = isRecord(schema) ? schema.default : undefined;\n return [\n property,\n typeof defaultValue === \"boolean\" ? defaultValue : false,\n ];\n }),\n ),\n };\n const validationErrors = validateElicitationContent(\n requestedSchema,\n contentWithBooleanDefaults,\n );\n const missingRequired = [\n ...new Set(\n validationErrors\n .filter(\n ({ property }) =>\n !Object.hasOwn(contentWithBooleanDefaults, property),\n )\n .map(({ property }) => property),\n ),\n ];\n const invalid = [\n ...new Set(\n validationErrors\n .filter(({ property }) =>\n Object.hasOwn(contentWithBooleanDefaults, property),\n )\n .map(({ property }) => property),\n ),\n ];\n\n return {\n content: Object.fromEntries(\n Object.entries(contentWithBooleanDefaults).filter(\n ([property]) => !invalid.includes(property),\n ),\n ),\n missingRequired,\n invalid,\n };\n};\n"],"mappings":"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"}
@@ -1,15 +1,9 @@
1
- import { useMcpElicitation, useMcpElicitationField } from "./elicitation/context.js";
2
- import { McpElicitationPrimitiveItems } from "./elicitation/McpElicitationPrimitiveItems.js";
3
- import { McpElicitationPrimitiveRoot } from "./elicitation/McpElicitationPrimitiveRoot.js";
4
- import { McpElicitationPrimitiveMessage } from "./elicitation/McpElicitationPrimitiveMessage.js";
5
- import { McpElicitationPrimitiveError } from "./elicitation/McpElicitationPrimitiveError.js";
6
- import { McpElicitationPrimitiveFields } from "./elicitation/McpElicitationPrimitiveFields.js";
7
- import { McpElicitationPrimitiveAccept } from "./elicitation/McpElicitationPrimitiveAccept.js";
8
- import { McpElicitationPrimitiveDecline } from "./elicitation/McpElicitationPrimitiveDecline.js";
9
- import { McpElicitationPrimitiveCancel } from "./elicitation/McpElicitationPrimitiveCancel.js";
10
- declare namespace elicitation_d_exports {
11
- export { McpElicitationPrimitiveAccept as Accept, McpElicitationPrimitiveCancel as Cancel, McpElicitationPrimitiveDecline as Decline, McpElicitationPrimitiveError as Error, McpElicitationPrimitiveFields as Fields, McpElicitationPrimitiveItems as Items, McpElicitationPrimitiveMessage as Message, McpElicitationPrimitiveRoot as Root, useMcpElicitation, useMcpElicitationField };
12
- }
13
- //#endregion
14
- export { McpElicitationPrimitiveAccept as Accept, McpElicitationPrimitiveCancel as Cancel, McpElicitationPrimitiveDecline as Decline, McpElicitationPrimitiveError as Error, McpElicitationPrimitiveFields as Fields, McpElicitationPrimitiveItems as Items, McpElicitationPrimitiveMessage as Message, McpElicitationPrimitiveRoot as Root, elicitation_d_exports, useMcpElicitation, useMcpElicitationField };
1
+ export { McpElicitationPrimitiveItems as Items, useMcpElicitation, } from "./elicitation/McpElicitationPrimitiveItems.js";
2
+ export { McpElicitationPrimitiveRoot as Root } from "./elicitation/McpElicitationPrimitiveRoot.js";
3
+ export { McpElicitationPrimitiveMessage as Message } from "./elicitation/McpElicitationPrimitiveMessage.js";
4
+ export { McpElicitationPrimitiveError as Error } from "./elicitation/McpElicitationPrimitiveError.js";
5
+ export { McpElicitationPrimitiveFields as Fields, useMcpElicitationField, } from "./elicitation/McpElicitationPrimitiveFields.js";
6
+ export { McpElicitationPrimitiveAccept as Accept } from "./elicitation/McpElicitationPrimitiveAccept.js";
7
+ export { McpElicitationPrimitiveDecline as Decline } from "./elicitation/McpElicitationPrimitiveDecline.js";
8
+ export { McpElicitationPrimitiveCancel as Cancel } from "./elicitation/McpElicitationPrimitiveCancel.js";
15
9
  //# sourceMappingURL=elicitation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"elicitation.d.ts","names":[],"sources":["../../src/primitives/elicitation.ts"],"mappings":""}
1
+ {"version":3,"file":"elicitation.d.ts","sourceRoot":"","sources":["../../src/primitives/elicitation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,IAAI,KAAK,EACrC,iBAAiB,GAClB,sDAAmD;AACpD,OAAO,EAAE,2BAA2B,IAAI,IAAI,EAAE,qDAAkD;AAChG,OAAO,EAAE,8BAA8B,IAAI,OAAO,EAAE,wDAAqD;AACzG,OAAO,EAAE,4BAA4B,IAAI,KAAK,EAAE,sDAAmD;AACnG,OAAO,EACL,6BAA6B,IAAI,MAAM,EACvC,sBAAsB,GACvB,uDAAoD;AACrD,OAAO,EAAE,6BAA6B,IAAI,MAAM,EAAE,uDAAoD;AACtG,OAAO,EAAE,8BAA8B,IAAI,OAAO,EAAE,wDAAqD;AACzG,OAAO,EAAE,6BAA6B,IAAI,MAAM,EAAE,uDAAoD"}
@@ -1,13 +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/manager/McpManagerAddCustomTrigger.d.ts
4
- declare namespace McpManagerPrimitiveAddCustomTrigger {
5
- type Element = ComponentRef<typeof Primitive.button>;
6
- type Props = ComponentPropsWithoutRef<typeof Primitive.button>;
3
+ export declare namespace McpManagerPrimitiveAddCustomTrigger {
4
+ type Element = ComponentRef<typeof Primitive.button>;
5
+ type Props = ComponentPropsWithoutRef<typeof Primitive.button>;
7
6
  }
8
- declare const McpManagerPrimitiveAddCustomTrigger: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
9
- asChild?: boolean;
7
+ export declare const McpManagerPrimitiveAddCustomTrigger: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
8
+ asChild?: boolean;
10
9
  }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
11
- //#endregion
12
- export { McpManagerPrimitiveAddCustomTrigger };
13
10
  //# sourceMappingURL=McpManagerAddCustomTrigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpManagerAddCustomTrigger.d.ts","names":[],"sources":["../../../src/primitives/manager/McpManagerAddCustomTrigger.tsx"],"mappings":";;;kBAOiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;cAGnD,qDAAmC,0BAAA,qBAAA,gBAAA,qCAAA,qBAAA;;4BAK9C,cAAA"}
1
+ {"version":3,"file":"McpManagerAddCustomTrigger.d.ts","sourceRoot":"","sources":["../../../src/primitives/manager/McpManagerAddCustomTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,yBAAiB,mCAAmC,CAAC;IACnD,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,mCAAmC;;6DAK9C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
2
+ import { jsx } from "react/jsx-runtime";
2
3
  import { forwardRef } from "@assistant-ui/tap/react-shim";
3
4
  import { Primitive } from "@radix-ui/react-primitive";
4
- import { jsx } from "react/jsx-runtime";
5
5
  //#region src/primitives/manager/McpManagerAddCustomTrigger.tsx
6
6
  const McpManagerPrimitiveAddCustomTrigger = forwardRef((props, ref) => {
7
7
  const $ = c(3);
@@ -1,17 +1,16 @@
1
- import { MCPServerState } from "../../mcp-scope.js";
2
- import { FC, ReactNode } from "react";
3
- //#region src/primitives/manager/McpManagerConnectors.d.ts
4
- declare namespace McpManagerPrimitiveConnectors {
5
- type Props = {
6
- /**
7
- * Render function called once per connector. Receives a lazy `server`
8
- * accessor — reading it inside the render function subscribes to that
9
- * connector's state.
10
- */
11
- children: (value: {
12
- server: MCPServerState;
13
- }) => ReactNode;
14
- };
1
+ import { type FC, type ReactNode } from "react";
2
+ import type { MCPServerState } from "../../mcp-scope.js";
3
+ export declare namespace McpManagerPrimitiveConnectors {
4
+ type Props = {
5
+ /**
6
+ * Render function called once per connector. Receives a lazy `server`
7
+ * accessor — reading it inside the render function subscribes to that
8
+ * connector's state.
9
+ */
10
+ children: (value: {
11
+ server: MCPServerState;
12
+ }) => ReactNode;
13
+ };
15
14
  }
16
15
  /**
17
16
  * Renders all connectors declared on `McpManagerResource`.
@@ -28,7 +27,5 @@ declare namespace McpManagerPrimitiveConnectors {
28
27
  * </McpManagerPrimitive.Connectors>
29
28
  * ```
30
29
  */
31
- declare const McpManagerPrimitiveConnectors: FC<McpManagerPrimitiveConnectors.Props>;
32
- //#endregion
33
- export { McpManagerPrimitiveConnectors };
30
+ export declare const McpManagerPrimitiveConnectors: FC<McpManagerPrimitiveConnectors.Props>;
34
31
  //# sourceMappingURL=McpManagerConnectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpManagerConnectors.d.ts","names":[],"sources":["../../../src/primitives/manager/McpManagerConnectors.tsx"],"mappings":";;;kBASiB;OACH;;;;;;IAMV,WAAW;MAAS,QAAQ;UAAqB;;;;;;;;;;;;;;;;;;cAqDxC,+BAA+B,GAAG,8BAA8B"}
1
+ {"version":3,"file":"McpManagerConnectors.d.ts","sourceRoot":"","sources":["../../../src/primitives/manager/McpManagerConnectors.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAiB,MAAM,OAAO,CAAC;AAG/D,OAAO,KAAK,EAAE,cAAc,EAAE,2BAAwB;AAMtD,yBAAiB,6BAA6B,CAAC;IAC7C,KAAY,KAAK,GAAG;QAClB;;;;WAIG;QACH,QAAQ,EAAE,CAAC,KAAK,EAAE;YAAE,MAAM,EAAE,cAAc,CAAA;SAAE,KAAK,SAAS,CAAC;KAC5D,CAAC;CACH;AAoCD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,6BAA6B,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAI/E,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { McpConnectorByIndexProvider } from "../../context/McpConnectorByIndexProvider.js";
2
2
  import { RenderChildrenWithAccessor, useAuiState } from "@assistant-ui/store";
3
- import { memo, useMemo } from "@assistant-ui/tap/react-shim";
4
3
  import { jsx } from "react/jsx-runtime";
4
+ import { memo, useMemo } from "@assistant-ui/tap/react-shim";
5
5
  //#region src/primitives/manager/McpManagerConnectors.tsx
6
6
  const SEP = "";
7
7
  const McpManagerPrimitiveConnectorsInner = ({ children }) => {
@@ -1,17 +1,16 @@
1
- import { MCPServerState } from "../../mcp-scope.js";
2
- import { FC, ReactNode } from "react";
3
- //#region src/primitives/manager/McpManagerCustomServers.d.ts
4
- declare namespace McpManagerPrimitiveCustomServers {
5
- type Props = {
6
- /**
7
- * Render function called once per custom server. Receives a lazy
8
- * `server` accessor — reading it inside the render function subscribes
9
- * to that server's state.
10
- */
11
- children: (value: {
12
- server: MCPServerState;
13
- }) => ReactNode;
14
- };
1
+ import { type FC, type ReactNode } from "react";
2
+ import type { MCPServerState } from "../../mcp-scope.js";
3
+ export declare namespace McpManagerPrimitiveCustomServers {
4
+ type Props = {
5
+ /**
6
+ * Render function called once per custom server. Receives a lazy
7
+ * `server` accessor — reading it inside the render function subscribes
8
+ * to that server's state.
9
+ */
10
+ children: (value: {
11
+ server: MCPServerState;
12
+ }) => ReactNode;
13
+ };
15
14
  }
16
15
  /**
17
16
  * Renders all user-added custom servers persisted in storage.
@@ -28,7 +27,5 @@ declare namespace McpManagerPrimitiveCustomServers {
28
27
  * </McpManagerPrimitive.CustomServers>
29
28
  * ```
30
29
  */
31
- declare const McpManagerPrimitiveCustomServers: FC<McpManagerPrimitiveCustomServers.Props>;
32
- //#endregion
33
- export { McpManagerPrimitiveCustomServers };
30
+ export declare const McpManagerPrimitiveCustomServers: FC<McpManagerPrimitiveCustomServers.Props>;
34
31
  //# sourceMappingURL=McpManagerCustomServers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpManagerCustomServers.d.ts","names":[],"sources":["../../../src/primitives/manager/McpManagerCustomServers.tsx"],"mappings":";;;kBAOiB;OACH;;;;;;IAMV,WAAW;MAAS,QAAQ;UAAqB;;;;;;;;;;;;;;;;;;cAkDxC,kCAAkC,GAAG,iCAAiC"}
1
+ {"version":3,"file":"McpManagerCustomServers.d.ts","sourceRoot":"","sources":["../../../src/primitives/manager/McpManagerCustomServers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAiB,MAAM,OAAO,CAAC;AAG/D,OAAO,KAAK,EAAE,cAAc,EAAE,2BAAwB;AAItD,yBAAiB,gCAAgC,CAAC;IAChD,KAAY,KAAK,GAAG;QAClB;;;;WAIG;QACH,QAAQ,EAAE,CAAC,KAAK,EAAE;YAAE,MAAM,EAAE,cAAc,CAAA;SAAE,KAAK,SAAS,CAAC;KAC5D,CAAC;CACH;AAiCD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gCAAgC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAIrF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { McpCustomServerByIndexProvider } from "../../context/McpCustomServerByIndexProvider.js";
2
2
  import { RenderChildrenWithAccessor, useAuiState } from "@assistant-ui/store";
3
- import { memo, useMemo } from "@assistant-ui/tap/react-shim";
4
3
  import { jsx } from "react/jsx-runtime";
4
+ import { memo, useMemo } from "@assistant-ui/tap/react-shim";
5
5
  //#region src/primitives/manager/McpManagerCustomServers.tsx
6
6
  const SEP = "";
7
7
  const McpManagerPrimitiveCustomServersInner = ({ children }) => {
@@ -1,13 +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/manager/McpManagerRoot.d.ts
4
- declare namespace McpManagerPrimitiveRoot {
5
- type Element = ComponentRef<typeof Primitive.div>;
6
- type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
3
+ export declare namespace McpManagerPrimitiveRoot {
4
+ type Element = ComponentRef<typeof Primitive.div>;
5
+ type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
7
6
  }
8
- declare const McpManagerPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
9
- asChild?: boolean;
7
+ export declare const McpManagerPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
8
+ asChild?: boolean;
10
9
  }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
11
- //#endregion
12
- export { McpManagerPrimitiveRoot };
13
10
  //# sourceMappingURL=McpManagerRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpManagerRoot.d.ts","names":[],"sources":["../../../src/primitives/manager/McpManagerRoot.tsx"],"mappings":";;;kBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;cAGnD,yCAAuB,0BAAA,qBAAA,gBAAA,kCAAA,eAAA;;4BAYlC,cAAA"}
1
+ {"version":3,"file":"McpManagerRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/manager/McpManagerRoot.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;;0DAYlC,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/manager/McpManagerRoot.tsx
7
7
  const McpManagerPrimitiveRoot = forwardRef((props, ref) => {
8
8
  const $ = c(4);
@@ -1,10 +1,5 @@
1
- import { McpManagerPrimitiveRoot } from "./manager/McpManagerRoot.js";
2
- import { McpManagerPrimitiveConnectors } from "./manager/McpManagerConnectors.js";
3
- import { McpManagerPrimitiveCustomServers } from "./manager/McpManagerCustomServers.js";
4
- import { McpManagerPrimitiveAddCustomTrigger } from "./manager/McpManagerAddCustomTrigger.js";
5
- declare namespace manager_d_exports {
6
- export { McpManagerPrimitiveAddCustomTrigger as AddCustomTrigger, McpManagerPrimitiveConnectors as Connectors, McpManagerPrimitiveCustomServers as CustomServers, McpManagerPrimitiveRoot as Root };
7
- }
8
- //#endregion
9
- export { McpManagerPrimitiveAddCustomTrigger as AddCustomTrigger, McpManagerPrimitiveConnectors as Connectors, McpManagerPrimitiveCustomServers as CustomServers, McpManagerPrimitiveRoot as Root, manager_d_exports };
1
+ export { McpManagerPrimitiveRoot as Root } from "./manager/McpManagerRoot.js";
2
+ export { McpManagerPrimitiveConnectors as Connectors } from "./manager/McpManagerConnectors.js";
3
+ export { McpManagerPrimitiveCustomServers as CustomServers } from "./manager/McpManagerCustomServers.js";
4
+ export { McpManagerPrimitiveAddCustomTrigger as AddCustomTrigger } from "./manager/McpManagerAddCustomTrigger.js";
10
5
  //# sourceMappingURL=manager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"manager.d.ts","names":[],"sources":["../../src/primitives/manager.ts"],"mappings":""}
1
+ {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/primitives/manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,IAAI,IAAI,EAAE,oCAAiC;AAC3E,OAAO,EAAE,6BAA6B,IAAI,UAAU,EAAE,0CAAuC;AAC7F,OAAO,EAAE,gCAAgC,IAAI,aAAa,EAAE,6CAA0C;AACtG,OAAO,EAAE,mCAAmC,IAAI,gBAAgB,EAAE,gDAA6C"}
@@ -1,13 +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/McpServerConnectButton.d.ts
4
- declare namespace McpServerPrimitiveConnectButton {
5
- type Element = ComponentRef<typeof Primitive.button>;
6
- type Props = ComponentPropsWithoutRef<typeof Primitive.button>;
3
+ export declare namespace McpServerPrimitiveConnectButton {
4
+ type Element = ComponentRef<typeof Primitive.button>;
5
+ type Props = ComponentPropsWithoutRef<typeof Primitive.button>;
7
6
  }
8
- declare const McpServerPrimitiveConnectButton: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
9
- asChild?: boolean;
7
+ export declare const McpServerPrimitiveConnectButton: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
8
+ asChild?: boolean;
10
9
  }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
11
- //#endregion
12
- export { McpServerPrimitiveConnectButton };
13
10
  //# sourceMappingURL=McpServerConnectButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerConnectButton.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerConnectButton.tsx"],"mappings":";;;kBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;cAKnD,iDAA+B,0BAAA,qBAAA,gBAAA,qCAAA,qBAAA;;4BAoB1C,cAAA"}
1
+ {"version":3,"file":"McpServerConnectButton.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerConnectButton.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,+BAA+B,CAAC;IAC/C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;IAC5D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;CACvE;AAID,eAAO,MAAM,+BAA+B;;6DAoB1C,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/McpServerConnectButton.tsx
7
7
  const CONNECTABLE = /* @__PURE__ */ new Set([
8
8
  "disconnected",
@@ -1,13 +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/McpServerDisconnectButton.d.ts
4
- declare namespace McpServerPrimitiveDisconnectButton {
5
- type Element = ComponentRef<typeof Primitive.button>;
6
- type Props = ComponentPropsWithoutRef<typeof Primitive.button>;
3
+ export declare namespace McpServerPrimitiveDisconnectButton {
4
+ type Element = ComponentRef<typeof Primitive.button>;
5
+ type Props = ComponentPropsWithoutRef<typeof Primitive.button>;
7
6
  }
8
- declare const McpServerPrimitiveDisconnectButton: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
9
- asChild?: boolean;
7
+ export declare const McpServerPrimitiveDisconnectButton: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
8
+ asChild?: boolean;
10
9
  }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
11
- //#endregion
12
- export { McpServerPrimitiveDisconnectButton };
13
10
  //# sourceMappingURL=McpServerDisconnectButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerDisconnectButton.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerDisconnectButton.tsx"],"mappings":";;;kBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;cAKnD,oDAAkC,0BAAA,qBAAA,gBAAA,qCAAA,qBAAA;;4BAmB7C,cAAA"}
1
+ {"version":3,"file":"McpServerDisconnectButton.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerDisconnectButton.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,kCAAkC,CAAC;IAClD,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;IAC5D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;CACvE;AAID,eAAO,MAAM,kCAAkC;;6DAmB7C,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/McpServerDisconnectButton.tsx
7
7
  const DISCONNECTABLE = /* @__PURE__ */ new Set([
8
8
  "connected",