@scalar/agent-chat 0.2.3 → 0.2.5

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 (262) hide show
  1. package/LICENSE +21 -0
  2. package/dist/App.vue.d.ts +3 -2
  3. package/dist/App.vue.d.ts.map +1 -1
  4. package/dist/App.vue.js +32 -0
  5. package/dist/App.vue2.js +4 -0
  6. package/dist/Chat.vue.d.ts.map +1 -1
  7. package/dist/Chat.vue.js +23 -0
  8. package/dist/Chat.vue2.js +4 -0
  9. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  10. package/dist/api.d.ts +50 -0
  11. package/dist/api.d.ts.map +1 -0
  12. package/dist/api.js +68 -0
  13. package/dist/components/ApprovalSection.vue.d.ts.map +1 -1
  14. package/dist/components/ApprovalSection.vue.js +7 -0
  15. package/dist/components/ApprovalSection.vue2.js +42 -0
  16. package/dist/components/AuthenticationProvided.vue.d.ts +3 -0
  17. package/dist/components/AuthenticationProvided.vue.d.ts.map +1 -0
  18. package/dist/components/AuthenticationProvided.vue.js +13 -0
  19. package/dist/components/AuthenticationRequired.vue.d.ts +3 -0
  20. package/dist/components/AuthenticationRequired.vue.d.ts.map +1 -0
  21. package/dist/components/AuthenticationRequired.vue.js +13 -0
  22. package/dist/components/AutosendPaused.vue.d.ts.map +1 -1
  23. package/dist/components/AutosendPaused.vue.js +13 -0
  24. package/dist/components/ContextItem.vue.d.ts.map +1 -1
  25. package/dist/components/ContextItem.vue.js +7 -0
  26. package/dist/components/ContextItem.vue2.js +19 -0
  27. package/dist/components/ErrorMessage.vue.d.ts +2 -1
  28. package/dist/components/ErrorMessage.vue.d.ts.map +1 -1
  29. package/dist/components/ErrorMessage.vue.js +7 -0
  30. package/dist/components/ErrorMessage.vue2.js +22 -0
  31. package/dist/components/LoadingMiniOpenAPIDoc.vue.d.ts.map +1 -1
  32. package/dist/components/LoadingMiniOpenAPIDoc.vue.js +14 -0
  33. package/dist/components/LoadingOpenAPISpecsSummary.vue.d.ts.map +1 -1
  34. package/dist/components/LoadingOpenAPISpecsSummary.vue.js +14 -0
  35. package/dist/components/Logo.vue.d.ts.map +1 -1
  36. package/dist/components/Logo.vue.js +23 -0
  37. package/dist/components/PaymentSection.vue.d.ts.map +1 -1
  38. package/dist/components/PaymentSection.vue.js +7 -0
  39. package/dist/components/PaymentSection.vue2.js +34 -0
  40. package/dist/components/RequestApproved.vue.d.ts.map +1 -1
  41. package/dist/components/RequestApproved.vue.js +13 -0
  42. package/dist/components/RequestFailed.vue.d.ts.map +1 -1
  43. package/dist/components/RequestFailed.vue.js +24 -0
  44. package/dist/components/RequestPreview.vue.d.ts +1 -1
  45. package/dist/components/RequestPreview.vue.d.ts.map +1 -1
  46. package/dist/components/RequestPreview.vue.js +7 -0
  47. package/dist/components/RequestPreview.vue2.js +123 -0
  48. package/dist/components/RequestRejected.vue.d.ts.map +1 -1
  49. package/dist/components/RequestRejected.vue.js +22 -0
  50. package/dist/components/RequestSuccess.vue.d.ts.map +1 -1
  51. package/dist/components/RequestSuccess.vue.js +13 -0
  52. package/dist/components/ResponseBody/ResponseBody.vue.d.ts +1 -1
  53. package/dist/components/ResponseBody/ResponseBody.vue.d.ts.map +1 -1
  54. package/dist/components/ResponseBody/ResponseBody.vue.js +41 -0
  55. package/dist/components/ResponseBody/ResponseBody.vue2.js +4 -0
  56. package/dist/components/ResponseBody/ResponseBodyInfo.vue.d.ts.map +1 -1
  57. package/dist/components/ResponseBody/ResponseBodyInfo.vue.js +14 -0
  58. package/dist/components/ResponseBody/ResponseBodyPreview.vue.d.ts +1 -1
  59. package/dist/components/ResponseBody/ResponseBodyPreview.vue.d.ts.map +1 -1
  60. package/dist/components/ResponseBody/ResponseBodyPreview.vue.js +7 -0
  61. package/dist/components/ResponseBody/ResponseBodyPreview.vue2.js +65 -0
  62. package/dist/components/ResponseBody/ResponseBodyRaw.vue.d.ts.map +1 -1
  63. package/dist/components/ResponseBody/ResponseBodyRaw.vue.js +20 -0
  64. package/dist/components/ResponseBody/ResponseBodyRaw.vue2.js +4 -0
  65. package/dist/components/ResponseBody/ResponseBodyToggle.vue.d.ts +2 -2
  66. package/dist/components/ResponseBody/ResponseBodyToggle.vue.d.ts.map +1 -1
  67. package/dist/components/ResponseBody/ResponseBodyToggle.vue.js +26 -0
  68. package/dist/components/ResponseBody/ResponseBodyToggle.vue2.js +4 -0
  69. package/dist/components/ResponseBody/helpers/media-types.js +130 -0
  70. package/dist/components/ResponseBody/helpers/process-response-body.d.ts +1 -1
  71. package/dist/components/ResponseBody/helpers/process-response-body.d.ts.map +1 -1
  72. package/dist/components/ResponseBody/helpers/process-response-body.js +33 -0
  73. package/dist/components/SearchPopover.vue.d.ts +2 -2
  74. package/dist/components/SearchPopover.vue.d.ts.map +1 -1
  75. package/dist/components/SearchPopover.vue.js +7 -0
  76. package/dist/components/SearchPopover.vue2.js +67 -0
  77. package/dist/components/SendingRequest.vue.d.ts.map +1 -1
  78. package/dist/components/SendingRequest.vue.js +24 -0
  79. package/dist/components/Suggestion.vue.d.ts.map +1 -1
  80. package/dist/components/TestRequestButton.vue.d.ts.map +1 -1
  81. package/dist/components/{Endpoint.vue.d.ts → UploadSection.vue.d.ts} +3 -5
  82. package/dist/components/UploadSection.vue.d.ts.map +1 -0
  83. package/dist/components/UploadSection.vue.js +7 -0
  84. package/dist/components/UploadSection.vue2.js +62 -0
  85. package/dist/entities/prompt/constants.d.ts +2 -0
  86. package/dist/entities/prompt/constants.d.ts.map +1 -0
  87. package/dist/entities/prompt/constants.js +4 -0
  88. package/dist/entities/registry/document.d.ts +21 -0
  89. package/dist/entities/registry/document.d.ts.map +1 -0
  90. package/dist/entities/registry/document.js +12 -0
  91. package/dist/entities/tools/ask-for-authentication.d.ts +7 -0
  92. package/dist/entities/tools/ask-for-authentication.d.ts.map +1 -0
  93. package/dist/entities/tools/ask-for-authentication.js +8 -0
  94. package/dist/entities/tools/constants.d.ts +2 -0
  95. package/dist/entities/tools/constants.d.ts.map +1 -0
  96. package/dist/entities/tools/constants.js +4 -0
  97. package/dist/entities/tools/execute-request.d.ts +42 -0
  98. package/dist/entities/tools/execute-request.d.ts.map +1 -0
  99. package/dist/entities/tools/execute-request.js +11 -0
  100. package/dist/entities/tools/get-mini-openapi-spec.d.ts +12 -0
  101. package/dist/entities/tools/get-mini-openapi-spec.d.ts.map +1 -0
  102. package/dist/entities/tools/get-mini-openapi-spec.js +8 -0
  103. package/dist/entities/tools/get-openapi-spec-summary.d.ts +10 -0
  104. package/dist/entities/tools/get-openapi-spec-summary.d.ts.map +1 -0
  105. package/dist/entities/tools/get-openapi-spec-summary.js +4 -0
  106. package/dist/helpers.d.ts +20 -12
  107. package/dist/helpers.d.ts.map +1 -1
  108. package/dist/helpers.js +115 -0
  109. package/dist/hooks/{useChatApprovals.d.ts → use-chat-approvals.d.ts} +1 -1
  110. package/dist/hooks/use-chat-approvals.d.ts.map +1 -0
  111. package/dist/hooks/use-chat-approvals.js +21 -0
  112. package/dist/hooks/use-chat-error.d.ts +14 -0
  113. package/dist/hooks/use-chat-error.d.ts.map +1 -0
  114. package/dist/hooks/use-chat-error.js +23 -0
  115. package/dist/hooks/use-chat-pending-client-tool-parts.d.ts +19 -0
  116. package/dist/hooks/use-chat-pending-client-tool-parts.d.ts.map +1 -0
  117. package/dist/hooks/use-chat-pending-client-tool-parts.js +12 -0
  118. package/dist/hooks/{useChatScroll.d.ts → use-chat-scroll.d.ts} +1 -1
  119. package/dist/hooks/use-chat-scroll.d.ts.map +1 -0
  120. package/dist/hooks/use-chat-scroll.js +16 -0
  121. package/dist/hooks/{useSearch.d.ts → use-search.d.ts} +11 -11
  122. package/dist/hooks/use-search.d.ts.map +1 -0
  123. package/dist/hooks/use-search.js +25 -0
  124. package/dist/hooks/use-term-and-conditions.d.ts +6 -0
  125. package/dist/hooks/use-term-and-conditions.d.ts.map +1 -0
  126. package/dist/hooks/use-term-and-conditions.js +16 -0
  127. package/dist/hooks/use-upload-tmp-document.d.ts +19 -0
  128. package/dist/hooks/use-upload-tmp-document.d.ts.map +1 -0
  129. package/dist/hooks/use-upload-tmp-document.js +64 -0
  130. package/dist/index.d.ts +2 -1
  131. package/dist/index.d.ts.map +1 -1
  132. package/dist/index.js +2 -1
  133. package/dist/package.json +35 -23
  134. package/dist/registry/add-documents-to-store.d.ts +6 -6
  135. package/dist/registry/add-documents-to-store.d.ts.map +1 -1
  136. package/dist/registry/add-documents-to-store.js +39 -0
  137. package/dist/registry/create-document-name.d.ts +2 -0
  138. package/dist/registry/create-document-name.d.ts.map +1 -0
  139. package/dist/registry/create-document-name.js +6 -0
  140. package/dist/state/state.d.ts +20 -8
  141. package/dist/state/state.d.ts.map +1 -1
  142. package/dist/state/state.js +110 -0
  143. package/dist/style.css +1 -1
  144. package/dist/types.d.ts +2 -0
  145. package/dist/types.d.ts.map +1 -0
  146. package/dist/views/Chat/Chat.vue.d.ts.map +1 -1
  147. package/dist/views/Chat/Chat.vue.js +7 -0
  148. package/dist/views/Chat/Chat.vue2.js +77 -0
  149. package/dist/views/Chat/Messages/AskForAuthentication.vue.d.ts +10 -0
  150. package/dist/views/Chat/Messages/AskForAuthentication.vue.d.ts.map +1 -0
  151. package/dist/views/Chat/Messages/AskForAuthentication.vue.js +7 -0
  152. package/dist/views/Chat/Messages/AskForAuthentication.vue2.js +89 -0
  153. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts +2 -2
  154. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts.map +1 -1
  155. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.js +7 -0
  156. package/dist/views/Chat/Messages/ExecuteRequestTool.vue2.js +23 -0
  157. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.d.ts +2 -2
  158. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.d.ts.map +1 -1
  159. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.js +7 -0
  160. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue2.js +56 -0
  161. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.d.ts +2 -2
  162. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.d.ts.map +1 -1
  163. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.js +26 -0
  164. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue2.js +4 -0
  165. package/dist/views/Chat/Messages/Text.vue.d.ts.map +1 -1
  166. package/dist/views/Chat/Messages/Text.vue.js +16 -0
  167. package/dist/views/Chat/Messages/Text.vue2.js +4 -0
  168. package/dist/views/Layout.vue.d.ts.map +1 -1
  169. package/dist/views/Layout.vue.js +7 -0
  170. package/dist/views/Layout.vue2.js +23 -0
  171. package/dist/views/PromptForm.vue.d.ts.map +1 -1
  172. package/dist/views/PromptForm.vue.js +7 -0
  173. package/dist/views/PromptForm.vue2.js +212 -0
  174. package/dist/views/Settings/Auth.vue.d.ts.map +1 -1
  175. package/dist/views/Settings/Auth.vue.js +67 -0
  176. package/dist/views/Settings/Auth.vue2.js +4 -0
  177. package/dist/views/Settings/DocSettings.vue.d.ts.map +1 -1
  178. package/dist/views/Settings/DocSettings.vue.js +7 -0
  179. package/dist/views/Settings/DocSettings.vue2.js +43 -0
  180. package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
  181. package/dist/views/Settings/Settings.vue.js +8 -0
  182. package/dist/views/Settings/Settings.vue2.js +67 -0
  183. package/dist/views/Start.vue.d.ts.map +1 -1
  184. package/dist/views/Start.vue.js +7 -0
  185. package/dist/views/Start.vue2.js +41 -0
  186. package/package.json +53 -7
  187. package/dist/Tooltip-Cm82QgNj.js +0 -575
  188. package/dist/__vite-optional-peer-dep_stream-markdown_markstream-vue_false-sdjmOmXd.js +0 -5
  189. package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue_false-HdL4xm5U.js +0 -5
  190. package/dist/__vite-optional-peer-dep_vue-i18n_markstream-vue_false-B9Pwe5kz.js +0 -5
  191. package/dist/_basePickBy-hHD8tMGb.js +0 -151
  192. package/dist/_baseUniq-DTF1wuF6.js +0 -614
  193. package/dist/arc-Dw2RQerU.js +0 -83
  194. package/dist/architecture-U656AL7Q-B00Z9eXr.js +0 -36
  195. package/dist/architectureDiagram-VXUJARFQ-BtOffFaM.js +0 -4662
  196. package/dist/blockDiagram-VD42YOAC-BUqFMMQe.js +0 -2261
  197. package/dist/c4Diagram-YG6GDRKO-NrM1YcpG.js +0 -1579
  198. package/dist/channel-105myCGU.js +0 -5
  199. package/dist/chunk-4BX2VUAB-TAxJli7C.js +0 -8
  200. package/dist/chunk-55IACEB6-VXFJ4bz5.js +0 -8
  201. package/dist/chunk-B4BG7PRW-CZDQpfj5.js +0 -1375
  202. package/dist/chunk-DI55MBZ5-D3l7TA-E.js +0 -1370
  203. package/dist/chunk-FMBD7UC4-BMXFm8I3.js +0 -19
  204. package/dist/chunk-QN33PNHL-BOUpbpWp.js +0 -19
  205. package/dist/chunk-QZHKN3VN-C-TEEx05.js +0 -15
  206. package/dist/chunk-TZMSLE5B-BUiROKNR.js +0 -64
  207. package/dist/classDiagram-2ON5EDUG-HQET4ybK.js +0 -16
  208. package/dist/classDiagram-v2-WZHVMYZB-HQET4ybK.js +0 -16
  209. package/dist/clone-CIIO71O9.js +0 -8
  210. package/dist/components/Endpoint.vue.d.ts.map +0 -1
  211. package/dist/cose-bilkent-S5V4N54A-CMsF4n-5.js +0 -2609
  212. package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
  213. package/dist/dagre-6UL2VRFP-DqzdQ6Qg.js +0 -444
  214. package/dist/defaultLocale-BEa-49Qz.js +0 -171
  215. package/dist/diagram-PSM6KHXK-1xyGntw2.js +0 -531
  216. package/dist/diagram-QEK2KX5R-DdZdlAm1.js +0 -217
  217. package/dist/diagram-S2PKOQOG-C80Eo2jp.js +0 -142
  218. package/dist/erDiagram-Q2GNP2WA-DFVRrMXT.js +0 -841
  219. package/dist/flowDiagram-NV44I4VS-D9QK_qqB.js +0 -1620
  220. package/dist/ganttDiagram-LVOFAZNH-Bo1NTkeQ.js +0 -2506
  221. package/dist/gitGraph-F6HP7TQM-C5hdgcgO.js +0 -27
  222. package/dist/gitGraphDiagram-NY62KEGX-BZqnqZh6.js +0 -699
  223. package/dist/graph-Dth4IhEK.js +0 -247
  224. package/dist/hooks/useChatApprovals.d.ts.map +0 -1
  225. package/dist/hooks/useChatOperationBlocks.d.ts +0 -3
  226. package/dist/hooks/useChatOperationBlocks.d.ts.map +0 -1
  227. package/dist/hooks/useChatScroll.d.ts.map +0 -1
  228. package/dist/hooks/useSearch.d.ts.map +0 -1
  229. package/dist/index-BOvT43H8.js +0 -111780
  230. package/dist/index2-B36B-gt0.js +0 -69
  231. package/dist/index3-CtIyYUnG.js +0 -70
  232. package/dist/index4-Dzz91Ao2.js +0 -537
  233. package/dist/index5-Bmz0gMSP.js +0 -590
  234. package/dist/index6-DMB3qTSV.js +0 -196
  235. package/dist/info-NVLQJR56-azt5obk5.js +0 -27
  236. package/dist/infoDiagram-ER5ION4S-DD4Jtctm.js +0 -24
  237. package/dist/infographic_markstream-vue_false-BfsmcXxk.js +0 -5
  238. package/dist/init-DjUOC4st.js +0 -16
  239. package/dist/journeyDiagram-XKPGCS4Q-CXL6UO0r.js +0 -834
  240. package/dist/kanban-definition-3W4ZIXB7-B57do5Wg.js +0 -719
  241. package/dist/katex-SsTUIUTC.js +0 -11688
  242. package/dist/layout-7TCY8eA2.js +0 -1332
  243. package/dist/linear-DSm5i91N.js +0 -625
  244. package/dist/mermaid-parser.core-CUQWpAMM.js +0 -12746
  245. package/dist/mermaid.core-QjuzH7xx.js +0 -14164
  246. package/dist/mhchem-XHl7cef5.js +0 -2306
  247. package/dist/mindmap-definition-VGOIOE7T-DAQyGNAM.js +0 -784
  248. package/dist/ordinal-DfAQgscy.js +0 -61
  249. package/dist/packet-BFZMPI3H-CixuxAEA.js +0 -27
  250. package/dist/pie-7BOR55EZ-D3cgnzR1.js +0 -32
  251. package/dist/pieDiagram-ADFJNKIX-BqxgYwrL.js +0 -161
  252. package/dist/quadrantDiagram-AYHSOK5B-CQ4v-9Hh.js +0 -1022
  253. package/dist/radar-NHE76QYJ-DhV0Od_M.js +0 -27
  254. package/dist/requirementDiagram-UZGBJVZJ-ncWNAgFi.js +0 -850
  255. package/dist/safeRaf-I3a3-dyJ.js +0 -10
  256. package/dist/sankeyDiagram-TZEHDZUN-yCR2_cH5.js +0 -810
  257. package/dist/sequenceDiagram-WL72ISMW-DZ7wqFyd.js +0 -2511
  258. package/dist/stateDiagram-FKZM4ZOC-Dra68Tzi.js +0 -263
  259. package/dist/stateDiagram-v2-4FDKWEC3-CARbPECD.js +0 -16
  260. package/dist/timeline-definition-IT6M3QCI-DEbG9QIM.js +0 -795
  261. package/dist/treemap-KMMF4GRG-CQbPsyWe.js +0 -81
  262. package/dist/xychartDiagram-PRI3JC2R-C94Pu8hL.js +0 -1340
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present Scalar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/App.vue.d.ts CHANGED
@@ -1,13 +1,14 @@
1
- import './index.css';
2
1
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
3
2
  import { type WorkspaceEventBus } from '@scalar/workspace-store/events';
4
- import { type RegistryDocument } from './state/state';
3
+ import { type RegistryDocument } from './state/state.js';
4
+ import { type ChatMode } from './types';
5
5
  type __VLS_Props = {
6
6
  eventBus: WorkspaceEventBus;
7
7
  workspaceStore: WorkspaceStore;
8
8
  registryDocuments: [RegistryDocument, ...RegistryDocument[]];
9
9
  registryUrl: string;
10
10
  baseUrl: string;
11
+ mode?: ChatMode;
11
12
  getAccessToken: () => string;
12
13
  };
13
14
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":"AA+CA,OAAO,aAAa,CAAA;AAIpB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAGvE,OAAO,EAAe,KAAK,gBAAgB,EAAgB,MAAM,eAAe,CAAA;AAEhF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,CAAC,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAA;IAC5D,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,cAAc,EAAE,MAAM,MAAM,CAAA;CAC7B,CAAC;;AA2DF,wBAEG"}
1
+ {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":"AAgDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAIvE,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,CAAC,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAA;IAC5D,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,cAAc,EAAE,MAAM,MAAM,CAAA;CAC7B,CAAC;;AA+DF,wBAMG"}
@@ -0,0 +1,32 @@
1
+ import { defineComponent as t, provide as r, createBlock as o, openBlock as s } from "vue";
2
+ import c from "./Chat.vue.js";
3
+ import { STATE_SYMBOL as n, createState as a } from "./state/state.js";
4
+ const g = /* @__PURE__ */ t({
5
+ __name: "App",
6
+ props: {
7
+ eventBus: {},
8
+ workspaceStore: {},
9
+ registryDocuments: {},
10
+ registryUrl: {},
11
+ baseUrl: {},
12
+ mode: { default: "full" },
13
+ getAccessToken: { type: Function }
14
+ },
15
+ setup(e) {
16
+ return r(
17
+ n,
18
+ a({
19
+ eventBus: e.eventBus,
20
+ workspaceStore: e.workspaceStore,
21
+ initialRegistryDocuments: e.registryDocuments,
22
+ registryUrl: e.registryUrl,
23
+ baseUrl: e.baseUrl,
24
+ mode: e.mode,
25
+ getAccessToken: e.getAccessToken
26
+ })
27
+ ), (i, m) => (s(), o(c));
28
+ }
29
+ });
30
+ export {
31
+ g as default
32
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./App.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.vue.d.ts","sourceRoot":"","sources":["../src/Chat.vue"],"names":[],"mappings":";AAqGA,wBACG"}
1
+ {"version":3,"file":"Chat.vue.d.ts","sourceRoot":"","sources":["../src/Chat.vue"],"names":[],"mappings":";AA6FA,wBAKG"}
@@ -0,0 +1,23 @@
1
+ import { defineComponent as n, createElementBlock as m, openBlock as s, Fragment as c, createVNode as t, unref as l } from "vue";
2
+ import { createWorkspaceEventBus as u } from "@scalar/workspace-store/events";
3
+ import { useChatScroll as p } from "./hooks/use-chat-scroll.js";
4
+ import { useState as i } from "./state/state.js";
5
+ import f from "./views/Layout.vue.js";
6
+ import d from "./views/Settings/Settings.vue.js";
7
+ const v = /* @__PURE__ */ n({
8
+ __name: "Chat",
9
+ setup(_) {
10
+ const { chat: e, prompt: o, settingsModal: a } = i();
11
+ u({ debug: !1 }), p();
12
+ async function r() {
13
+ await e.sendMessage({ text: o.value });
14
+ }
15
+ return (S, g) => (s(), m(c, null, [
16
+ t(f, { onSubmit: r }),
17
+ t(d, { modalState: l(a) }, null, 8, ["modalState"])
18
+ ], 64));
19
+ }
20
+ });
21
+ export {
22
+ v as default
23
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Chat.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,9 @@
1
+ const s = (t, e) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [r, c] of e)
4
+ o[r] = c;
5
+ return o;
6
+ };
7
+ export {
8
+ s as default
9
+ };
package/dist/api.d.ts ADDED
@@ -0,0 +1,50 @@
1
+ /** Minimal set of API requests needed for agent chat */
2
+ export declare function api({ baseUrl, getAccessToken }: {
3
+ baseUrl: string;
4
+ getAccessToken: () => string;
5
+ }): {
6
+ search: (query: string) => Promise<{
7
+ success: false;
8
+ error: import("./helpers.js").AgentChatError<"FAILED_TO_FETCH", unknown>;
9
+ } | import("neverpanic").Result<never, null> | {
10
+ success: false;
11
+ error: import("./helpers.js").AgentChatError<string, string>;
12
+ data?: undefined;
13
+ } | {
14
+ success: true;
15
+ data: {
16
+ results: {
17
+ id: string;
18
+ title: string;
19
+ namespace: string;
20
+ currentVersion: string;
21
+ logoUrl: string | null;
22
+ slug: string;
23
+ }[];
24
+ };
25
+ error?: undefined;
26
+ }>;
27
+ getDocument: (params: {
28
+ namespace: string;
29
+ slug: string;
30
+ }) => Promise<{
31
+ success: false;
32
+ error: import("./helpers.js").AgentChatError<"FAILED_TO_FETCH", unknown>;
33
+ } | import("neverpanic").Result<never, null> | {
34
+ success: false;
35
+ error: import("./helpers.js").AgentChatError<string, string>;
36
+ data?: undefined;
37
+ } | {
38
+ success: true;
39
+ data: {
40
+ id: string;
41
+ title: string;
42
+ namespace: string;
43
+ currentVersion: string;
44
+ logoUrl: string | null;
45
+ slug: string;
46
+ };
47
+ error?: undefined;
48
+ }>;
49
+ };
50
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAMA,wDAAwD;AACxD,wBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,MAAM,CAAA;CAAE;oBA0EnE,MAAM;;;;;;;;;;;;;;;;;;;;;0BASA;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;EAUvE"}
package/dist/api.js ADDED
@@ -0,0 +1,68 @@
1
+ import { n as o } from "neverpanic";
2
+ import a from "zod";
3
+ import { registryApiMetadata as p } from "./entities/registry/document.js";
4
+ import { createError as r } from "./helpers.js";
5
+ function _({ baseUrl: d, getAccessToken: h }) {
6
+ const n = o.safeFn(
7
+ async ({
8
+ path: s,
9
+ method: g = "get",
10
+ query: u,
11
+ body: i,
12
+ responseSchema: l
13
+ }) => {
14
+ const f = h(), t = await o.fromUnsafe(
15
+ async () => fetch(`${d}${s}${u ? `?${new URLSearchParams(u)}` : ""}`, {
16
+ method: g,
17
+ ...i && { body: JSON.stringify(i) },
18
+ headers: {
19
+ ...f && { Authorization: `Bearer ${f}` }
20
+ }
21
+ }),
22
+ (e) => r("FAILED_TO_FETCH", e)
23
+ );
24
+ if (!t.success)
25
+ return t;
26
+ const c = await o.fromUnsafe(
27
+ async () => t.data.json(),
28
+ (e) => r("FAILED_TO_FETCH_DATA", e)
29
+ );
30
+ if (!c.success)
31
+ return {
32
+ success: !1,
33
+ error: r("UNKNOWN_ERROR", "Unknown error occurred. Please contact support.")
34
+ };
35
+ if (!t.data.ok) {
36
+ const e = a.object({ message: a.string(), code: a.string() }).safeParse(c.data);
37
+ return e.success ? {
38
+ success: !1,
39
+ error: r(e.data.code, e.data.message)
40
+ } : {
41
+ success: !1,
42
+ error: r("UNKNOWN_ERROR", "Unknown error occurred. Please contact support.")
43
+ };
44
+ }
45
+ const m = l.safeParse(c.data);
46
+ return m.success ? { success: !0, data: m.data } : {
47
+ success: !1,
48
+ error: r("INVALID_RESPONSE", "Invalid response. Please contact support")
49
+ };
50
+ }
51
+ );
52
+ return {
53
+ search: async (s) => n({
54
+ path: "/registry/search",
55
+ query: { query: s },
56
+ responseSchema: a.object({
57
+ results: p.array()
58
+ })
59
+ }),
60
+ getDocument: async (s) => n({
61
+ path: `/registry/document/${s.namespace}/${s.slug}`,
62
+ responseSchema: p
63
+ })
64
+ };
65
+ }
66
+ export {
67
+ _ as api
68
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"ApprovalSection.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApprovalSection.vue"],"names":[],"mappings":";;;;;;;AAuOA,wBAEG"}
1
+ {"version":3,"file":"ApprovalSection.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApprovalSection.vue"],"names":[],"mappings":";;;;;;;AA+NA,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import o from "./ApprovalSection.vue2.js";
2
+ /* empty css */
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c74f778a"]]);
5
+ export {
6
+ c as default
7
+ };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as m, createElementBlock as c, openBlock as u, createElementVNode as s, createVNode as t, createTextVNode as o, unref as r, withCtx as p } from "vue";
2
+ import { ScalarButton as a } from "@scalar/components";
3
+ import { ScalarIconInfo as d } from "@scalar/icons";
4
+ const v = { class: "approvalSection" }, f = { class: "approvalText flex items-center gap-1.5" }, x = { class: "approveContainer" }, S = /* @__PURE__ */ m({
5
+ __name: "ApprovalSection",
6
+ emits: ["approve", "reject"],
7
+ setup(B, { emit: i }) {
8
+ const n = i;
9
+ return (_, e) => (u(), c("div", v, [
10
+ s("strong", f, [
11
+ t(r(d), {
12
+ class: "text-blue size-4",
13
+ weight: "bold"
14
+ }),
15
+ e[2] || (e[2] = o(" One or more requests require approval. ", -1))
16
+ ]),
17
+ s("div", x, [
18
+ t(r(a), {
19
+ class: "actionButton rejectButton",
20
+ onClick: e[0] || (e[0] = (l) => n("reject"))
21
+ }, {
22
+ default: p(() => [...e[3] || (e[3] = [
23
+ o(" Reject", -1)
24
+ ])]),
25
+ _: 1
26
+ }),
27
+ t(r(a), {
28
+ class: "actionButton approveButton",
29
+ onClick: e[1] || (e[1] = (l) => n("approve"))
30
+ }, {
31
+ default: p(() => [...e[4] || (e[4] = [
32
+ o(" Approve", -1)
33
+ ])]),
34
+ _: 1
35
+ })
36
+ ])
37
+ ]));
38
+ }
39
+ });
40
+ export {
41
+ S as default
42
+ };
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=AuthenticationProvided.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticationProvided.vue.d.ts","sourceRoot":"","sources":["../../src/components/AuthenticationProvided.vue"],"names":[],"mappings":";AAoIA,wBAKG"}
@@ -0,0 +1,13 @@
1
+ import { createElementBlock as e, openBlock as c, createStaticVNode as r } from "vue";
2
+ /* empty css */
3
+ import a from "../_virtual/_plugin-vue_export-helper.js";
4
+ const i = {}, o = { class: "authenticationProvided" };
5
+ function d(h, t) {
6
+ return c(), e("div", o, [...t[0] || (t[0] = [
7
+ r('<svg fill="none" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" data-v-3e23c6c8><rect height="14.25" rx="7.125" width="14.25" x="0.875" y="0.875" data-v-3e23c6c8></rect><rect height="14.25" rx="7.125" stroke="var(--scalar-color-green)" stroke-width="1.75" width="14.25" x="0.875" y="0.875" data-v-3e23c6c8></rect><g clip-path="url(#clip0_74_840)" data-v-3e23c6c8><path d="M11.6037 6.841L7.59117 10.8535C7.49742 10.9472 7.37029 10.9998 7.23774 10.9998C7.10519 10.9998 6.97806 10.9472 6.8843 10.8535L4.64617 8.6035C4.55257 8.50975 4.5 8.38269 4.5 8.25022C4.5 8.11774 4.55257 7.99068 4.64617 7.89694L5.27117 7.27194C5.36488 7.17862 5.49174 7.12623 5.62399 7.12623C5.75623 7.12623 5.88309 7.17862 5.9768 7.27194L7.25024 8.50694L10.274 5.52037C10.3677 5.42696 10.4946 5.37451 10.627 5.37451C10.7593 5.37451 10.8862 5.42696 10.9799 5.52037L11.6034 6.131C11.6502 6.17746 11.6875 6.23274 11.7129 6.29366C11.7383 6.35458 11.7514 6.41993 11.7514 6.48593C11.7514 6.55194 11.7384 6.6173 11.713 6.67824C11.6877 6.73918 11.6505 6.7945 11.6037 6.841Z" fill="var(--scalar-color-green)" data-v-3e23c6c8></path></g><defs data-v-3e23c6c8><clipPath id="clip0_74_840" data-v-3e23c6c8><rect height="8" rx="4" width="8" x="4" y="4" data-v-3e23c6c8></rect></clipPath></defs></svg> Authorized ', 2)
8
+ ])]);
9
+ }
10
+ const v = /* @__PURE__ */ a(i, [["render", d], ["__scopeId", "data-v-3e23c6c8"]]);
11
+ export {
12
+ v as default
13
+ };
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=AuthenticationRequired.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticationRequired.vue.d.ts","sourceRoot":"","sources":["../../src/components/AuthenticationRequired.vue"],"names":[],"mappings":";AAoIA,wBAKG"}
@@ -0,0 +1,13 @@
1
+ import { createElementBlock as e, openBlock as r, createStaticVNode as d } from "vue";
2
+ /* empty css */
3
+ import i from "../_virtual/_plugin-vue_export-helper.js";
4
+ const a = {}, c = { class: "authenticationRequired" };
5
+ function o(h, t) {
6
+ return r(), e("div", c, [...t[0] || (t[0] = [
7
+ d('<svg fill="none" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" data-v-d15ef40b><rect height="14.25" rx="7.125" width="14.25" x="0.875" y="0.875" data-v-d15ef40b></rect><rect height="14.25" rx="7.125" stroke="currentColor" stroke-width="1.5" width="14.25" x="0.875" y="0.875" data-v-d15ef40b></rect><g clip-path="url(#clip0_74_585)" data-v-d15ef40b><path d="M10.75 5.5V10.5C10.75 10.6326 10.6973 10.7598 10.6036 10.8536C10.5098 10.9473 10.3826 11 10.25 11H9C8.86739 11 8.74021 10.9473 8.64645 10.8536C8.55268 10.7598 8.5 10.6326 8.5 10.5V5.5C8.5 5.36739 8.55268 5.24021 8.64645 5.14645C8.74021 5.05268 8.86739 5 9 5H10.25C10.3826 5 10.5098 5.05268 10.6036 5.14645C10.6973 5.24021 10.75 5.36739 10.75 5.5ZM7 5H5.75C5.61739 5 5.49021 5.05268 5.39645 5.14645C5.30268 5.24021 5.25 5.36739 5.25 5.5V10.5C5.25 10.6326 5.30268 10.7598 5.39645 10.8536C5.49021 10.9473 5.61739 11 5.75 11H7C7.13261 11 7.25979 10.9473 7.35355 10.8536C7.44732 10.7598 7.5 10.6326 7.5 10.5V5.5C7.5 5.36739 7.44732 5.24021 7.35355 5.14645C7.25979 5.05268 7.13261 5 7 5Z" fill="currentColor" data-v-d15ef40b></path></g><defs data-v-d15ef40b><clipPath id="clip0_74_585" data-v-d15ef40b><rect height="8" rx="4" width="8" x="4" y="4" data-v-d15ef40b></rect></clipPath></defs></svg> Authentication required ', 2)
8
+ ])]);
9
+ }
10
+ const l = /* @__PURE__ */ i(a, [["render", o], ["__scopeId", "data-v-d15ef40b"]]);
11
+ export {
12
+ l as default
13
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"AutosendPaused.vue.d.ts","sourceRoot":"","sources":["../../src/components/AutosendPaused.vue"],"names":[],"mappings":";AAkIA,wBACG"}
1
+ {"version":3,"file":"AutosendPaused.vue.d.ts","sourceRoot":"","sources":["../../src/components/AutosendPaused.vue"],"names":[],"mappings":";AAoIA,wBAKG"}
@@ -0,0 +1,13 @@
1
+ import { createElementBlock as d, openBlock as e, createStaticVNode as r } from "vue";
2
+ /* empty css */
3
+ import a from "../_virtual/_plugin-vue_export-helper.js";
4
+ const o = {}, c = { class: "autosendPaused" };
5
+ function i(s, t) {
6
+ return e(), d("div", c, [...t[0] || (t[0] = [
7
+ r('<svg fill="none" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" data-v-d08225db><rect height="14.25" rx="7.125" width="14.25" x="0.875" y="0.875" data-v-d08225db></rect><rect height="14.25" rx="7.125" stroke="currentColor" stroke-width="1.5" width="14.25" x="0.875" y="0.875" data-v-d08225db></rect><g clip-path="url(#clip0_74_585)" data-v-d08225db><path d="M10.75 5.5V10.5C10.75 10.6326 10.6973 10.7598 10.6036 10.8536C10.5098 10.9473 10.3826 11 10.25 11H9C8.86739 11 8.74021 10.9473 8.64645 10.8536C8.55268 10.7598 8.5 10.6326 8.5 10.5V5.5C8.5 5.36739 8.55268 5.24021 8.64645 5.14645C8.74021 5.05268 8.86739 5 9 5H10.25C10.3826 5 10.5098 5.05268 10.6036 5.14645C10.6973 5.24021 10.75 5.36739 10.75 5.5ZM7 5H5.75C5.61739 5 5.49021 5.05268 5.39645 5.14645C5.30268 5.24021 5.25 5.36739 5.25 5.5V10.5C5.25 10.6326 5.30268 10.7598 5.39645 10.8536C5.49021 10.9473 5.61739 11 5.75 11H7C7.13261 11 7.25979 10.9473 7.35355 10.8536C7.44732 10.7598 7.5 10.6326 7.5 10.5V5.5C7.5 5.36739 7.44732 5.24021 7.35355 5.14645C7.25979 5.05268 7.13261 5 7 5Z" fill="currentColor" data-v-d08225db></path></g><defs data-v-d08225db><clipPath id="clip0_74_585" data-v-d08225db><rect height="8" rx="4" width="8" x="4" y="4" data-v-d08225db></rect></clipPath></defs></svg> Accept Request to Continue ', 2)
8
+ ])]);
9
+ }
10
+ const l = /* @__PURE__ */ a(o, [["render", i], ["__scopeId", "data-v-d08225db"]]);
11
+ export {
12
+ l as default
13
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"ContextItem.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextItem.vue"],"names":[],"mappings":"AAoEA,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AA8BxC,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAgB/C,QAAA,MAAM,eAAe,kSAEnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ContextItem.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextItem.vue"],"names":[],"mappings":"AAoEA,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AA6BxC,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAmB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import t from "./ContextItem.vue2.js";
2
+ /* empty css */
3
+ import o from "../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b6e5aa96"]]);
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1,19 @@
1
+ import { defineComponent as o, createElementBlock as n, openBlock as r, normalizeClass as a, renderSlot as l } from "vue";
2
+ const c = /* @__PURE__ */ o({
3
+ __name: "ContextItem",
4
+ props: {
5
+ loading: { type: Boolean }
6
+ },
7
+ setup(e) {
8
+ return (t, s) => (r(), n("div", {
9
+ class: a(["contextItem", {
10
+ shimmer: e.loading
11
+ }])
12
+ }, [
13
+ l(t.$slots, "default", {}, void 0, !0)
14
+ ], 2));
15
+ }
16
+ });
17
+ export {
18
+ c as default
19
+ };
@@ -1,5 +1,6 @@
1
+ import { type ChatError } from '../hooks/use-chat-error.js';
1
2
  type __VLS_Props = {
2
- error: Error;
3
+ error: ChatError;
3
4
  };
4
5
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
6
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorMessage.vue.d.ts","sourceRoot":"","sources":["../../src/components/ErrorMessage.vue"],"names":[],"mappings":"AA4CA,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC;;AA2DpC,wBAEG"}
1
+ {"version":3,"file":"ErrorMessage.vue.d.ts","sourceRoot":"","sources":["../../src/components/ErrorMessage.vue"],"names":[],"mappings":"AAqCA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAEvD,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;;AAoDxC,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import o from "./ErrorMessage.vue2.js";
2
+ /* empty css */
3
+ import r from "../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-82dfdb2e"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,22 @@
1
+ import { defineComponent as o, createElementBlock as t, createCommentVNode as c, openBlock as n, createVNode as s, createTextVNode as a, unref as m, toDisplayString as i } from "vue";
2
+ import { ScalarIconXCircle as d } from "@scalar/icons";
3
+ import { AgentErrorCodes as l } from "../helpers.js";
4
+ const _ = {
5
+ key: 0,
6
+ class: "error"
7
+ }, D = /* @__PURE__ */ o({
8
+ __name: "ErrorMessage",
9
+ props: {
10
+ error: {}
11
+ },
12
+ setup(e) {
13
+ const r = [l.LIMIT_REACHED];
14
+ return (p, E) => r.includes(e.error.code) ? c("", !0) : (n(), t("div", _, [
15
+ s(m(d)),
16
+ a(" " + i(e.error.message), 1)
17
+ ]));
18
+ }
19
+ });
20
+ export {
21
+ D as default
22
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingMiniOpenAPIDoc.vue.d.ts","sourceRoot":"","sources":["../../src/components/LoadingMiniOpenAPIDoc.vue"],"names":[],"mappings":";AAwGA,wBACG"}
1
+ {"version":3,"file":"LoadingMiniOpenAPIDoc.vue.d.ts","sourceRoot":"","sources":["../../src/components/LoadingMiniOpenAPIDoc.vue"],"names":[],"mappings":";AA0GA,wBAKG"}
@@ -0,0 +1,14 @@
1
+ import { createElementBlock as t, openBlock as n, createElementVNode as o, createTextVNode as r } from "vue";
2
+ /* empty css */
3
+ import c from "../_virtual/_plugin-vue_export-helper.js";
4
+ const i = {}, s = { class: "sendingRequest" };
5
+ function a(d, e) {
6
+ return n(), t("div", s, [...e[0] || (e[0] = [
7
+ o("div", { class: "playIcon" }, null, -1),
8
+ r(" Retrieving relevant information... ", -1)
9
+ ])]);
10
+ }
11
+ const p = /* @__PURE__ */ c(i, [["render", a], ["__scopeId", "data-v-653c66b3"]]);
12
+ export {
13
+ p as default
14
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingOpenAPISpecsSummary.vue.d.ts","sourceRoot":"","sources":["../../src/components/LoadingOpenAPISpecsSummary.vue"],"names":[],"mappings":";AAwGA,wBACG"}
1
+ {"version":3,"file":"LoadingOpenAPISpecsSummary.vue.d.ts","sourceRoot":"","sources":["../../src/components/LoadingOpenAPISpecsSummary.vue"],"names":[],"mappings":";AA0GA,wBAKG"}
@@ -0,0 +1,14 @@
1
+ import { createElementBlock as o, openBlock as t, createElementVNode as n, createTextVNode as c } from "vue";
2
+ /* empty css */
3
+ import r from "../_virtual/_plugin-vue_export-helper.js";
4
+ const s = {}, d = { class: "loadingApiSpecs" };
5
+ function a(i, e) {
6
+ return t(), o("div", d, [...e[0] || (e[0] = [
7
+ n("div", { class: "playIcon" }, null, -1),
8
+ c(" Loading APIs... ", -1)
9
+ ])]);
10
+ }
11
+ const _ = /* @__PURE__ */ r(s, [["render", a], ["__scopeId", "data-v-9d9724d2"]]);
12
+ export {
13
+ _ as default
14
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.vue.d.ts","sourceRoot":"","sources":["../../src/components/Logo.vue"],"names":[],"mappings":";AAqDA,wBACG"}
1
+ {"version":3,"file":"Logo.vue.d.ts","sourceRoot":"","sources":["../../src/components/Logo.vue"],"names":[],"mappings":";AAuDA,wBAKG"}
@@ -0,0 +1,23 @@
1
+ import { createElementBlock as e, openBlock as o, createElementVNode as t } from "vue";
2
+ import r from "../_virtual/_plugin-vue_export-helper.js";
3
+ const n = {}, l = {
4
+ fill: "none",
5
+ height: "54",
6
+ viewBox: "0 0 64 54",
7
+ width: "64",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ };
10
+ function H(L, C) {
11
+ return o(), e("svg", l, [...C[0] || (C[0] = [
12
+ t("path", {
13
+ "clip-rule": "evenodd",
14
+ d: "M31.0667 0C40.2667 0 48.3333 6.13333 52.6 14.9333H57.2667C59.6 14.9333 61.5333 16.8 61.5333 19.1333V32.2C61.5333 33.4667 60.8667 34.6 60 35.3333L63.3333 45.4V45.4667C63.5639 46.207 63.6166 46.9912 63.4874 47.7557C63.3582 48.5202 63.0505 49.2435 62.5895 49.8669C62.1284 50.4903 61.5269 50.9962 60.8338 51.3437C60.1406 51.6911 59.3754 51.8703 58.6 51.8667H54.3333C53.9895 52.4222 53.5082 52.8797 52.936 53.195C52.3638 53.5103 51.72 53.6728 51.0667 53.6667H47.0667C46.5764 53.6755 46.0892 53.5877 45.6328 53.4082C45.1765 53.2287 44.76 52.961 44.4071 52.6205C44.0542 52.28 43.7719 51.8733 43.5762 51.4237C43.3805 50.9741 43.2753 50.4903 43.2667 50C43.2667 47.9333 44.9333 46.2667 47 46.2667H51.0667C52.4667 46.2667 53.7333 46.9333 54.3333 48.0667H58.6C59.3333 48.0667 59.9333 47.4 59.6667 46.6L56.3333 36.3333H51.3333C49.9333 36.3333 48.6 35.6667 47.8 34.5333V34.4667L46.8 32.9333C46.7585 32.8643 46.6999 32.8072 46.6298 32.7675C46.5597 32.7279 46.4805 32.707 46.4 32.707C46.3195 32.707 46.2403 32.7279 46.1702 32.7675C46.1001 32.8072 46.0415 32.8643 46 32.9333L45.4667 34C45.1162 34.7065 44.5739 35.3 43.9019 35.7126C43.2299 36.1253 42.4552 36.3404 41.6667 36.3333H24.9333C23.4 36.3333 21.9333 35.7333 20.8667 34.6667H20.8L19.8667 33.6667C19.6667 33.4667 19.4667 33.3333 19.2 33.3333L17.4667 33.1333C17.3333 38.8667 13.4667 43.4667 8.73333 43.4667C3.93333 43.4667 0 38.6667 0 32.9333C0 32.2667 0 31.6667 0.133333 31.1333V31C0.8 26.8 3.46667 23.4667 6.93333 22.6C9.46667 9.93333 19.3333 0 31.0667 0ZM3.93333 31.5333C4.46667 28 6.93333 26.2 8.73333 26.2C10.7333 26.2 13.6 28.4 13.6 32.8667C13.6 34.4667 13.2667 35.7333 12.7333 36.7333C11.7333 38.7333 10.0667 39.6667 8.73333 39.6667C7.67025 39.6269 6.66506 39.1722 5.93333 38.4C5.8414 38.3142 5.75246 38.2253 5.66667 38.1333C5.19113 37.6008 4.80806 36.9924 4.53333 36.3333C4.0607 35.2169 3.83335 34.0119 3.86667 32.8V31.6667L3.93333 31.6V31.5333ZM24.3333 20.6667C24.3333 19.6667 25.2 18.8 26.2667 18.8H55.8667C56.9333 18.8 57.8 19.6667 57.7333 20.7333V30.7333C57.6667 31.8 56.8 32.6667 55.7333 32.6667H53.4C53.0667 32.6667 52.7333 32.6667 52.4 32.5333C51.5333 32.3333 50.7333 31.8667 50.4 31.3333L47.9333 27.6C47.7363 27.2901 47.4602 27.0383 47.1336 26.8706C46.8069 26.7028 46.4414 26.6251 46.0747 26.6455C45.7081 26.6658 45.3535 26.7835 45.0474 26.9865C44.7413 27.1894 44.4948 27.4702 44.3333 27.8L42.6667 31C42.4199 31.4974 42.04 31.9165 41.5692 32.2107C41.0984 32.505 40.5552 32.6628 40 32.6667L26.2 32.8C25.1333 32.8 24.2667 31.9333 24.2667 30.8667V20.6667H24.3333ZM11 22.2C13.5333 11.5333 22 3.86667 31 3.86667C37.9333 3.86667 44.4 8.2 48.3333 15H24.3333C21.4667 15 18.6 16 16.3333 17.8L16.2667 17.8667L10.9333 22.2H11Z",
15
+ fill: "currentColor",
16
+ "fill-rule": "evenodd"
17
+ }, null, -1)
18
+ ])]);
19
+ }
20
+ const d = /* @__PURE__ */ r(n, [["render", H]]);
21
+ export {
22
+ d as default
23
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentSection.vue.d.ts","sourceRoot":"","sources":["../../src/components/PaymentSection.vue"],"names":[],"mappings":";;;;;;;AAiUA,wBAEG"}
1
+ {"version":3,"file":"PaymentSection.vue.d.ts","sourceRoot":"","sources":["../../src/components/PaymentSection.vue"],"names":[],"mappings":";;;;;;;AA6TA,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import o from "./PaymentSection.vue2.js";
2
+ /* empty css */
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3a3f43fc"]]);
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1,34 @@
1
+ import { defineComponent as d, createElementBlock as p, openBlock as c, createElementVNode as t, createVNode as e, createTextVNode as s, unref as n, createStaticVNode as i, withCtx as v } from "vue";
2
+ import { ScalarButton as r } from "@scalar/components";
3
+ import { ScalarIconInfo as m } from "@scalar/icons";
4
+ const l = { class: "paymentSection" }, u = { class: "approvalText flex items-center gap-1.5" }, I = { class: "paymentContainer" }, B = /* @__PURE__ */ d({
5
+ __name: "PaymentSection",
6
+ emits: ["approve", "reject"],
7
+ setup(y, { emit: o }) {
8
+ const f = o;
9
+ return (g, a) => (c(), p("div", l, [
10
+ t("strong", u, [
11
+ e(n(m), {
12
+ class: "text-blue size-4",
13
+ weight: "bold"
14
+ }),
15
+ a[1] || (a[1] = s(" You've used up all your free messages, upgrade for $24/mo. ", -1))
16
+ ]),
17
+ t("div", I, [
18
+ e(n(r), {
19
+ class: "actionButton approveButton",
20
+ onClick: a[0] || (a[0] = (x) => f("approve"))
21
+ }, {
22
+ default: v(() => [...a[2] || (a[2] = [
23
+ s(" Upgrade", -1)
24
+ ])]),
25
+ _: 1
26
+ }),
27
+ a[3] || (a[3] = i('<div class="paymentInfo" data-v-3a3f43fc><h3 data-v-3a3f43fc>$24 <span data-v-3a3f43fc>/ month</span></h3><div class="paymentInfoSection" data-v-3a3f43fc><div class="paymentInfoItem" data-v-3a3f43fc><span data-v-3a3f43fc>Members in your workspace</span><span data-v-3a3f43fc>1</span></div><div class="paymentInfoItem" data-v-3a3f43fc><span data-v-3a3f43fc>x $24 / month / member</span><span data-v-3a3f43fc>$24.00</span></div></div><div class="paymentInfoSection" data-v-3a3f43fc><div class="paymentInfoItem" data-v-3a3f43fc><span data-v-3a3f43fc>Messages</span><span data-v-3a3f43fc>1000</span></div><div class="paymentInfoItem" data-v-3a3f43fc><span data-v-3a3f43fc>Additional Messages</span><span data-v-3a3f43fc>+ $0.15 Message</span></div></div></div>', 1))
28
+ ])
29
+ ]));
30
+ }
31
+ });
32
+ export {
33
+ B as default
34
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestApproved.vue.d.ts","sourceRoot":"","sources":["../../src/components/RequestApproved.vue"],"names":[],"mappings":";AAkIA,wBACG"}
1
+ {"version":3,"file":"RequestApproved.vue.d.ts","sourceRoot":"","sources":["../../src/components/RequestApproved.vue"],"names":[],"mappings":";AAoIA,wBAKG"}
@@ -0,0 +1,13 @@
1
+ import { createElementBlock as e, openBlock as r, createStaticVNode as a } from "vue";
2
+ /* empty css */
3
+ import o from "../_virtual/_plugin-vue_export-helper.js";
4
+ const c = {}, d = { class: "requestApproved" };
5
+ function i(s, t) {
6
+ return r(), e("div", d, [...t[0] || (t[0] = [
7
+ a('<svg fill="none" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg" data-v-bb311586><rect height="14.25" rx="7.125" width="14.25" x="0.875" y="0.875" data-v-bb311586></rect><rect height="14.25" rx="7.125" stroke="var(--scalar-color-green)" stroke-width="1.75" width="14.25" x="0.875" y="0.875" data-v-bb311586></rect><g clip-path="url(#clip0_74_840)" data-v-bb311586><path d="M11.6037 6.841L7.59117 10.8535C7.49742 10.9472 7.37029 10.9998 7.23774 10.9998C7.10519 10.9998 6.97806 10.9472 6.8843 10.8535L4.64617 8.6035C4.55257 8.50975 4.5 8.38269 4.5 8.25022C4.5 8.11774 4.55257 7.99068 4.64617 7.89694L5.27117 7.27194C5.36488 7.17862 5.49174 7.12623 5.62399 7.12623C5.75623 7.12623 5.88309 7.17862 5.9768 7.27194L7.25024 8.50694L10.274 5.52037C10.3677 5.42696 10.4946 5.37451 10.627 5.37451C10.7593 5.37451 10.8862 5.42696 10.9799 5.52037L11.6034 6.131C11.6502 6.17746 11.6875 6.23274 11.7129 6.29366C11.7383 6.35458 11.7514 6.41993 11.7514 6.48593C11.7514 6.55194 11.7384 6.6173 11.713 6.67824C11.6877 6.73918 11.6505 6.7945 11.6037 6.841Z" fill="var(--scalar-color-green)" data-v-bb311586></path></g><defs data-v-bb311586><clipPath id="clip0_74_840" data-v-bb311586><rect height="8" rx="4" width="8" x="4" y="4" data-v-bb311586></rect></clipPath></defs></svg> Request Approved ', 2)
8
+ ])]);
9
+ }
10
+ const v = /* @__PURE__ */ o(c, [["render", i], ["__scopeId", "data-v-bb311586"]]);
11
+ export {
12
+ v as default
13
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestFailed.vue.d.ts","sourceRoot":"","sources":["../../src/components/RequestFailed.vue"],"names":[],"mappings":";AAsFA,wBACG"}
1
+ {"version":3,"file":"RequestFailed.vue.d.ts","sourceRoot":"","sources":["../../src/components/RequestFailed.vue"],"names":[],"mappings":";AAwFA,wBAKG"}