@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
@@ -0,0 +1,212 @@
1
+ import { defineComponent as R, useTemplateRef as L, computed as g, watch as y, createElementBlock as d, openBlock as n, Fragment as C, createBlock as i, createCommentVNode as c, createElementVNode as a, unref as t, withDirectives as S, withModifiers as M, vModelText as B, createVNode as m, withCtx as V, renderList as U, createTextVNode as A, toDisplayString as $, createStaticVNode as N, vShow as H } from "vue";
2
+ import { ScalarIconButton as k, ScalarLoading as F } from "@scalar/components";
3
+ import { ScalarIconPlus as K, ScalarIconX as j, ScalarIconLockSimple as q, ScalarIconCheck as X, ScalarIconArrowUp as O } from "@scalar/icons";
4
+ import Z from "../components/ApprovalSection.vue.js";
5
+ import G from "../components/ErrorMessage.vue.js";
6
+ import J from "../components/PaymentSection.vue.js";
7
+ import Q from "../components/SearchPopover.vue.js";
8
+ import W from "../components/UploadSection.vue.js";
9
+ import { MAX_PROMPT_SIZE as Y } from "../entities/prompt/constants.js";
10
+ import { AgentErrorCodes as tt } from "../helpers.js";
11
+ import { useChatApprovals as et } from "../hooks/use-chat-approvals.js";
12
+ import { useChatError as ot } from "../hooks/use-chat-error.js";
13
+ import { useChatPendingClientToolParts as at } from "../hooks/use-chat-pending-client-tool-parts.js";
14
+ import { useUploadTmpDocument as st } from "../hooks/use-upload-tmp-document.js";
15
+ import { useState as nt } from "../state/state.js";
16
+ const lt = { class: "actionContainer" }, rt = ["disabled"], it = { class: "inputActionsContainer" }, ct = { class: "inputActionsLeft" }, dt = {
17
+ class: "addAPIButton",
18
+ type: "button"
19
+ }, pt = ["src"], ut = ["onClick"], mt = { class: "inputActionsRight" }, vt = { class: "sendCheckboxContinue" }, gt = {
20
+ key: 0,
21
+ class: "relative flex items-center gap-1.5"
22
+ }, ft = {
23
+ class: "termsAgree",
24
+ for: "agentTermsAgree"
25
+ }, ht = { class: "addMoreContext" }, Mt = /* @__PURE__ */ R({
26
+ __name: "PromptForm",
27
+ emits: ["submit"],
28
+ setup(bt, { expose: w, emit: x }) {
29
+ const P = x;
30
+ w({ focusPrompt: z });
31
+ const l = L("agentPrompt"), e = nt(), T = g(() => e.prompt.value.trim().length > 0), I = g(
32
+ () => e.prompt.value.trim().length > Y
33
+ );
34
+ y(e.prompt, () => {
35
+ if (l?.value) {
36
+ if (!e.prompt.value.length) {
37
+ l.value.style.height = "0px";
38
+ return;
39
+ }
40
+ l.value.style.height = "auto", l.value.style.height = l.value.scrollHeight + "px";
41
+ }
42
+ });
43
+ function _(r) {
44
+ e.loading.value || r.key === "Enter" && !r.shiftKey && (r.preventDefault(), b(), window.scrollTo(0, document.body.scrollHeight));
45
+ }
46
+ function z() {
47
+ l.value?.focus();
48
+ }
49
+ y(
50
+ () => e.chat.status,
51
+ (r) => {
52
+ (r === "ready" || r === "error") && l.value?.focus();
53
+ }
54
+ );
55
+ const { respondToToolCalls: p, approvalRequestedParts: f } = et(), { pendingClientToolParts: D } = at(), u = st();
56
+ function E() {
57
+ e.terms.accept(), e.mode === "preview" && e.workspaceStore.workspace.activeDocument && u.uploadTempDocument(
58
+ e.workspaceStore.workspace.activeDocument
59
+ );
60
+ }
61
+ const h = g(
62
+ () => !T.value || I.value || !!f.value.length || !!D.value.length || !e.terms.accepted.value || !!u.uploadState.value
63
+ );
64
+ function b() {
65
+ h.value || P("submit");
66
+ }
67
+ const v = ot();
68
+ return (r, o) => (n(), d(C, null, [
69
+ t(u).uploadState.value ? (n(), i(W, {
70
+ key: 0,
71
+ uploadState: t(u).uploadState.value
72
+ }, null, 8, ["uploadState"])) : c("", !0),
73
+ t(v) ? (n(), i(G, {
74
+ key: 1,
75
+ error: t(v)
76
+ }, null, 8, ["error"])) : c("", !0),
77
+ t(f).length ? (n(), i(Z, {
78
+ key: 2,
79
+ onApprove: o[0] || (o[0] = (s) => t(p)(!0)),
80
+ onReject: o[1] || (o[1] = (s) => t(p)(!1))
81
+ })) : c("", !0),
82
+ t(v)?.code === t(tt).LIMIT_REACHED ? (n(), i(J, {
83
+ key: 3,
84
+ onApprove: o[2] || (o[2] = (s) => t(p)(!0)),
85
+ onReject: o[3] || (o[3] = (s) => t(p)(!1))
86
+ })) : c("", !0),
87
+ a("div", lt, [
88
+ a("form", {
89
+ class: "promptForm",
90
+ onSubmit: M(b, ["prevent"])
91
+ }, [
92
+ o[7] || (o[7] = a("label", {
93
+ class: "agentLabel",
94
+ for: "agentTextarea"
95
+ }, " Type a Request To get Started ", -1)),
96
+ S(a("textarea", {
97
+ id: "agentTextarea",
98
+ ref: "agentPrompt",
99
+ "onUpdate:modelValue": o[4] || (o[4] = (s) => t(e).prompt.value = s),
100
+ class: "prompt custom-scroll",
101
+ disabled: t(e).loading.value,
102
+ name: "prompt",
103
+ placeholder: "Ask me anything...",
104
+ onKeydown: _
105
+ }, null, 40, rt), [
106
+ [B, t(e).prompt.value]
107
+ ]),
108
+ a("div", it, [
109
+ a("div", ct, [
110
+ m(Q, null, {
111
+ default: V(() => [
112
+ a("button", dt, [
113
+ m(t(K), {
114
+ class: "size-4",
115
+ weight: "bold"
116
+ })
117
+ ])
118
+ ]),
119
+ _: 1
120
+ }),
121
+ (n(!0), d(C, null, U(t(e).registryDocuments.value, (s) => (n(), d("div", {
122
+ key: s.id,
123
+ class: "apiPill"
124
+ }, [
125
+ s.logoUrl ? (n(), d("img", {
126
+ key: 0,
127
+ class: "apiPillLogo",
128
+ src: s.logoUrl
129
+ }, null, 8, pt)) : c("", !0),
130
+ A(" " + $(s.title) + " ", 1),
131
+ a("button", {
132
+ class: "apiPillRemove",
133
+ type: "button",
134
+ onClick: (yt) => t(e).removeDocument(s)
135
+ }, [
136
+ m(t(j), {
137
+ class: "size-4",
138
+ weight: "bold"
139
+ })
140
+ ], 8, ut)
141
+ ]))), 128))
142
+ ]),
143
+ a("div", mt, [
144
+ t(e).loading.value ? c("", !0) : (n(), i(t(k), {
145
+ key: 0,
146
+ class: "settingsButton h-7 w-7 p-1.5",
147
+ icon: t(q),
148
+ label: "Scalar",
149
+ size: "md",
150
+ weight: "bold",
151
+ onClick: o[5] || (o[5] = (s) => t(e).settingsModal.show())
152
+ }, null, 8, ["icon"])),
153
+ a("div", vt, [
154
+ !t(e).terms.accepted.value && t(e).mode === "preview" ? (n(), d("div", gt, [
155
+ a("input", {
156
+ id: "agentTermsAgree",
157
+ class: "sr-only",
158
+ type: "checkbox",
159
+ onChange: E
160
+ }, null, 32),
161
+ a("label", ft, [
162
+ m(t(X), {
163
+ class: "termsAgreeIcon",
164
+ weight: "bold"
165
+ }),
166
+ o[6] || (o[6] = A(" Agree to Terms & Conditions ", -1))
167
+ ])
168
+ ])) : c("", !0),
169
+ t(e).loading.value ? (n(), i(t(F), {
170
+ key: 2,
171
+ class: "loader h-7 w-7",
172
+ loader: {
173
+ isLoading: t(e).loading.value,
174
+ isValid: !1,
175
+ clear: async () => {
176
+ },
177
+ invalidate: async () => {
178
+ },
179
+ isInvalid: !1,
180
+ isActive: !1,
181
+ validate: async () => {
182
+ },
183
+ start: () => {
184
+ }
185
+ },
186
+ size: "2xl"
187
+ }, null, 8, ["loader"])) : (n(), i(t(k), {
188
+ key: 1,
189
+ class: "sendButton h-7 w-7 p-1.5",
190
+ disabled: h.value,
191
+ icon: t(O),
192
+ label: "Scalar",
193
+ size: "md",
194
+ type: "submit",
195
+ weight: "bold"
196
+ }, null, 8, ["disabled", "icon"]))
197
+ ])
198
+ ])
199
+ ])
200
+ ], 32),
201
+ S(a("div", ht, [...o[8] || (o[8] = [
202
+ N('<span data-v-20596a84>Add context from dozens of API&#39;s</span><div class="ml-auto flex items-center gap-1" data-v-20596a84><button class="addAPIContext" type="button" data-v-20596a84><img class="size-4" src="https://cdn.scalar.com/agent/stripe.png" data-v-20596a84></button><button class="addAPIContext" type="button" data-v-20596a84><img class="size-4" src="https://cdn.scalar.com/agent/notion.png" data-v-20596a84></button><button class="addAPIContext" type="button" data-v-20596a84><img class="size-4" src="https://cdn.scalar.com/agent/zoom-meetings.png" data-v-20596a84></button><button class="addAPIContext" type="button" data-v-20596a84><img class="size-4" src="https://cdn.scalar.com/agent/fathom.png" data-v-20596a84></button><button class="addAPIContext" type="button" data-v-20596a84><img class="size-4" src="https://cdn.scalar.com/agent/discord.png" data-v-20596a84></button><button class="addAPIContext" type="button" data-v-20596a84><img class="size-4" src="https://cdn.scalar.com/agent/x.png" data-v-20596a84></button></div>', 2)
203
+ ])], 512), [
204
+ [H, t(e).chat.messages.length <= 1]
205
+ ])
206
+ ])
207
+ ], 64));
208
+ }
209
+ });
210
+ export {
211
+ Mt as default
212
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Auth.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/Auth.vue"],"names":[],"mappings":"AA0FA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,yDAAyD,CAAA;AAKhE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAMlF,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,IAAI,CACX,4BAA4B,EAC5B,gBAAgB,GAAG,aAAa,GAAG,UAAU,CAC9C,CAAA;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAA;IACvC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;AA2GJ,wBAEG"}
1
+ {"version":3,"file":"Auth.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/Auth.vue"],"names":[],"mappings":"AAoGA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,yDAAyD,CAAA;AAKhE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAOlF,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,IAAI,CACX,4BAA4B,EAC5B,gBAAgB,GAAG,aAAa,GAAG,UAAU,CAC9C,CAAA;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAA;IACvC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;AAuHJ,wBAMG"}
@@ -0,0 +1,67 @@
1
+ import { defineComponent as a, computed as n, watch as i, shallowRef as l, createElementBlock as y, openBlock as m, createBlock as d, createCommentVNode as S, unref as h } from "vue";
2
+ import { AuthSelector as f } from "@scalar/api-client/v2/blocks/scalar-auth-selector-block";
3
+ import { getSecurityRequirements as v, getSelectedSecurity as x } from "@scalar/api-client/v2/features/operation";
4
+ import { useFocusWithin as R } from "@vueuse/core";
5
+ import { authStorage as k, restoreAuthSecretsFromStorage as A } from "../../helpers.js";
6
+ import { useState as B } from "../../state/state.js";
7
+ const N = /* @__PURE__ */ a({
8
+ __name: "Auth",
9
+ props: {
10
+ options: {},
11
+ name: {},
12
+ document: {},
13
+ eventBus: {},
14
+ securitySchemes: {},
15
+ selectedServer: {},
16
+ environment: {}
17
+ },
18
+ setup(e) {
19
+ const { workspaceStore: r } = B(), s = n(
20
+ () => v(e.document?.security)
21
+ ), c = n(
22
+ () => x(
23
+ e.document?.["x-scalar-selected-security"],
24
+ void 0,
25
+ s.value
26
+ )
27
+ );
28
+ i(
29
+ [() => c, () => e.securitySchemes],
30
+ () => {
31
+ const t = k();
32
+ t.setSchemas(e.name, e.securitySchemes), c.value && t.setSelectedSchemes(e.name, {
33
+ "x-scalar-selected-security": c.value
34
+ }), A({ documentName: e.name, workspaceStore: r });
35
+ },
36
+ { deep: !0 }
37
+ );
38
+ const u = l(), { focused: o } = R(u);
39
+ return i(o, (t) => {
40
+ t && r.update("x-scalar-active-document", e.name);
41
+ }), (t, g) => (m(), y("div", {
42
+ ref_key: "focusRef",
43
+ ref: u,
44
+ tabindex: "0"
45
+ }, [
46
+ Object.keys(e.securitySchemes).length ? (m(), d(h(f), {
47
+ key: 0,
48
+ environment: e.environment,
49
+ eventBus: e.eventBus,
50
+ isReadOnly: "",
51
+ isStatic: "",
52
+ layout: "reference",
53
+ meta: { type: "document" },
54
+ persistAuth: e.options.persistAuth,
55
+ proxyUrl: e.options.proxyUrl ?? "",
56
+ securityRequirements: s.value,
57
+ securitySchemes: e.securitySchemes,
58
+ selectedSecurity: c.value,
59
+ server: e.selectedServer,
60
+ title: "Authentication"
61
+ }, null, 8, ["environment", "eventBus", "persistAuth", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "server"])) : S("", !0)
62
+ ], 512));
63
+ }
64
+ });
65
+ export {
66
+ N as default
67
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Auth.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"DocSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/DocSettings.vue"],"names":[],"mappings":"AAwEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAKlF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;;AAmGF,wBAEG"}
1
+ {"version":3,"file":"DocSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/DocSettings.vue"],"names":[],"mappings":"AAqEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAMlF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;;AA+FF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import o from "./DocSettings.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a9f9e87f"]]);
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as l, computed as n, createElementBlock as d, openBlock as a, createElementVNode as c, createVNode as m, unref as t } from "vue";
2
+ import { getSelectedServer as S } from "@scalar/api-client/v2/features/operation";
3
+ import { getActiveEnvironment as f } from "@scalar/api-client/v2/helpers";
4
+ import { ServerSelector as p } from "@scalar/api-reference/blocks";
5
+ import { useState as B } from "../../state/state.js";
6
+ import h from "./Auth.vue.js";
7
+ const g = { class: "docSettings" }, C = /* @__PURE__ */ l({
8
+ __name: "DocSettings",
9
+ props: {
10
+ document: {},
11
+ name: {}
12
+ },
13
+ setup(e) {
14
+ const { workspaceStore: s, config: u, eventBus: o } = B(), i = n(
15
+ () => f(s, e.document)
16
+ ), r = n(() => S(e.document)), v = n(
17
+ () => e.document.components?.securitySchemes ?? {}
18
+ );
19
+ return (y, k) => (a(), d("div", g, [
20
+ c("div", null, [
21
+ m(t(p), {
22
+ eventBus: t(o),
23
+ selectedServer: r.value,
24
+ servers: e.document.servers ?? []
25
+ }, null, 8, ["eventBus", "selectedServer", "servers"])
26
+ ]),
27
+ c("div", null, [
28
+ m(h, {
29
+ document: e.document,
30
+ environment: i.value,
31
+ eventBus: t(o),
32
+ name: e.name,
33
+ options: t(u),
34
+ securitySchemes: v.value,
35
+ selectedServer: r.value
36
+ }, null, 8, ["document", "environment", "eventBus", "name", "options", "securitySchemes", "selectedServer"])
37
+ ])
38
+ ]));
39
+ }
40
+ });
41
+ export {
42
+ C as default
43
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Settings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/Settings.vue"],"names":[],"mappings":"AAwIA,OAAO,EACL,KAAK,UAAU,EAIhB,MAAM,oBAAoB,CAAA;AAM3B,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAC;;AAoMF,wBAEG"}
1
+ {"version":3,"file":"Settings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/Settings.vue"],"names":[],"mappings":"AAwIA,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAM3B,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAC;;AA8KF,wBAMG"}
@@ -0,0 +1,8 @@
1
+ import t from "./Settings.vue2.js";
2
+ /* empty css */
3
+ /* empty css */
4
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-fb9acd5f"]]);
6
+ export {
7
+ a as default
8
+ };
@@ -0,0 +1,67 @@
1
+ import { defineComponent as k, createBlock as i, openBlock as o, unref as e, withCtx as y, createElementVNode as r, createVNode as d, createElementBlock as n, Fragment as f, renderList as g, createCommentVNode as v, normalizeClass as x, createTextVNode as S, toDisplayString as _, isRef as C } from "vue";
2
+ import { ScalarModal as w, ScalarColorModeToggle as D, ScalarTextInput as N } from "@scalar/components";
3
+ import { ScalarIconCaretDown as U, ScalarIconCaretRight as V } from "@scalar/icons";
4
+ import { useState as b } from "../../state/state.js";
5
+ import h from "./DocSettings.vue.js";
6
+ const I = { class: "settingsHeading" }, T = { class: "documentList" }, A = ["onClick"], B = { key: 0 }, L = {
7
+ key: 1,
8
+ class: "noDocuments"
9
+ }, P = { class: "proxyUrlContainer" }, F = /* @__PURE__ */ k({
10
+ __name: "Settings",
11
+ props: {
12
+ modalState: {}
13
+ },
14
+ setup(u) {
15
+ const { workspaceStore: s, proxyUrl: c } = b();
16
+ function p(m) {
17
+ s.update("x-scalar-active-document", m);
18
+ }
19
+ return (m, t) => (o(), i(e(w), { state: u.modalState }, {
20
+ default: y(() => [
21
+ r("div", I, [
22
+ t[1] || (t[1] = r("h1", null, "Settings", -1)),
23
+ d(e(D), { class: "colorToggle ml-auto" })
24
+ ]),
25
+ r("div", T, [
26
+ t[2] || (t[2] = r("label", null, " APIs ", -1)),
27
+ Object.entries(e(s).workspace.documents).length ? (o(!0), n(f, { key: 0 }, g(Object.entries(
28
+ e(s).workspace.documents
29
+ ), ([l, a]) => (o(), n("div", {
30
+ key: l,
31
+ class: "document"
32
+ }, [
33
+ r("button", {
34
+ class: x(["documentName", {
35
+ documentNameActive: e(s).workspace.activeDocument === a
36
+ }]),
37
+ type: "button",
38
+ onClick: (R) => p(l)
39
+ }, [
40
+ e(s).workspace.activeDocument === a ? (o(), i(e(U), { key: 0 })) : (o(), i(e(V), { key: 1 })),
41
+ S(" @" + _(l), 1)
42
+ ], 10, A),
43
+ e(s).workspace.activeDocument === a ? (o(), n("div", B, [
44
+ d(h, {
45
+ document: a,
46
+ name: l
47
+ }, null, 8, ["document", "name"])
48
+ ])) : v("", !0)
49
+ ]))), 128)) : (o(), n("div", L, " No APIs selected. Use + to add context. "))
50
+ ]),
51
+ r("div", P, [
52
+ t[3] || (t[3] = r("label", { for: "proxyUrl" }, "Proxy URL", -1)),
53
+ d(e(N), {
54
+ id: "proxyUrl",
55
+ modelValue: e(c),
56
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => C(c) ? c.value = l : null),
57
+ placeholder: "https://proxy.scalar.com"
58
+ }, null, 8, ["modelValue"])
59
+ ])
60
+ ]),
61
+ _: 1
62
+ }, 8, ["state"]));
63
+ }
64
+ });
65
+ export {
66
+ F as default
67
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Start.vue.d.ts","sourceRoot":"","sources":["../../src/views/Start.vue"],"names":[],"mappings":";;;;;AAiOA,wBAEG"}
1
+ {"version":3,"file":"Start.vue.d.ts","sourceRoot":"","sources":["../../src/views/Start.vue"],"names":[],"mappings":";;;;;AAqMA,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import t from "./Start.vue2.js";
2
+ /* empty css */
3
+ import o from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-eafdfb78"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,41 @@
1
+ import { defineComponent as p, createElementBlock as r, openBlock as s, createVNode as a, createElementVNode as t, createTextVNode as o, unref as d, Fragment as n } from "vue";
2
+ import u from "../components/Logo.vue.js";
3
+ import { useState as g } from "../state/state.js";
4
+ import c from "./PromptForm.vue.js";
5
+ const y = { class: "startContainer" }, f = { class: "disclaimerText" }, L = /* @__PURE__ */ p({
6
+ __name: "Start",
7
+ emits: ["submit"],
8
+ setup(k, { emit: i }) {
9
+ const m = i, { mode: l } = g();
10
+ return (S, e) => (s(), r("div", y, [
11
+ a(u, { class: "agentLogo" }),
12
+ e[5] || (e[5] = t("h1", { class: "heading" }, "How can I help you today?", -1)),
13
+ a(c, {
14
+ ref: "promptFormField",
15
+ onSubmit: e[0] || (e[0] = (b) => m("submit"))
16
+ }, null, 512),
17
+ t("p", f, [
18
+ d(l) === "preview" ? (s(), r(n, { key: 0 }, [
19
+ o(" By messaging Agent Scalar your OpenAPI Document will be Temporarily uploaded to Scalar's Servers. You must agree to our ")
20
+ ], 64)) : (s(), r(n, { key: 1 }, [
21
+ o(" By messaging Agent Scalar you agree to our ")
22
+ ], 64)),
23
+ e[1] || (e[1] = t("a", {
24
+ class: "disclaimerLink",
25
+ href: "https://scalar.com/legal/terms-and-conditions",
26
+ target: "_blank"
27
+ }, "Terms ", -1)),
28
+ e[2] || (e[2] = o(" and ", -1)),
29
+ e[3] || (e[3] = t("a", {
30
+ class: "disclaimerLink",
31
+ href: "https://scalar.com/legal/privacy-policy",
32
+ target: "_blank"
33
+ }, " Privacy Policy", -1)),
34
+ e[4] || (e[4] = o(". ", -1))
35
+ ])
36
+ ]));
37
+ }
38
+ });
39
+ export {
40
+ L as default
41
+ };
package/package.json CHANGED
@@ -1,16 +1,19 @@
1
1
  {
2
2
  "name": "@scalar/agent-chat",
3
3
  "description": "Agent chat components",
4
- "version": "0.2.3",
5
- "author": "Scalar (https://github.com/scalar)",
6
4
  "license": "MIT",
7
- "private": false,
5
+ "author": "Scalar (https://github.com/scalar)",
6
+ "homepage": "https://github.com/scalar/scalar",
7
+ "bugs": "https://github.com/scalar/scalar/issues/new/choose",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/scalar/scalar.git",
11
+ "directory": "packages/agent-chat"
12
+ },
13
+ "version": "0.2.5",
8
14
  "engines": {
9
- "node": ">=24"
15
+ "node": ">=20"
10
16
  },
11
- "files": [
12
- "dist"
13
- ],
14
17
  "type": "module",
15
18
  "types": "./dist/index.d.ts",
16
19
  "exports": {
@@ -19,6 +22,11 @@
19
22
  "types": "./dist/index.d.ts",
20
23
  "default": "./dist/index.js"
21
24
  },
25
+ "./entities/*": {
26
+ "import": "./dist/entities/*",
27
+ "require": "./dist/entities/*",
28
+ "default": "./dist/entities/*"
29
+ },
22
30
  "./*.css": {
23
31
  "import": "./dist/*.css",
24
32
  "require": "./dist/*.css",
@@ -29,5 +37,43 @@
29
37
  "require": "./dist/css/*.css",
30
38
  "default": "./dist/css/*.css"
31
39
  }
40
+ },
41
+ "files": [
42
+ "dist"
43
+ ],
44
+ "dependencies": {
45
+ "@ai-sdk/vue": "3.0.33",
46
+ "@modelcontextprotocol/sdk": "1.25.2",
47
+ "@vueuse/core": "13.9.0",
48
+ "ai": "6.0.33",
49
+ "neverpanic": "0.0.5",
50
+ "vue": "^3.5.26",
51
+ "whatwg-mimetype": "4.0.0",
52
+ "zod": "^4.3.5",
53
+ "@scalar/api-client": "2.18.4",
54
+ "@scalar/components": "0.16.23",
55
+ "@scalar/icons": "0.5.2",
56
+ "@scalar/api-reference": "1.43.8",
57
+ "@scalar/json-magic": "0.9.1",
58
+ "@scalar/openapi-types": "0.5.3",
59
+ "@scalar/types": "0.5.8",
60
+ "@scalar/helpers": "0.2.8",
61
+ "@scalar/themes": "0.13.26",
62
+ "@scalar/workspace-store": "0.24.10"
63
+ },
64
+ "devDependencies": {
65
+ "@tailwindcss/vite": "^4.1.18",
66
+ "@types/whatwg-mimetype": "3.0.2",
67
+ "@vitejs/plugin-vue": "^6.0.3",
68
+ "tailwindcss": "^4.1.18",
69
+ "vite": "^7.3.1",
70
+ "@scalar/build-tooling": "0.4.1"
71
+ },
72
+ "scripts": {
73
+ "build": "scalar-build-vite && cp package.json dist",
74
+ "build:watch": "vite build --watch",
75
+ "playground": "cd playground && vite",
76
+ "types:build": "scalar-types-build-vue",
77
+ "types:check": "scalar-types-check-vue"
32
78
  }
33
79
  }