@scalar/agent-chat 0.2.3 → 0.2.6
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.
- package/LICENSE +21 -0
- package/dist/App.vue.d.ts +3 -2
- package/dist/App.vue.d.ts.map +1 -1
- package/dist/App.vue.js +32 -0
- package/dist/App.vue2.js +4 -0
- package/dist/Chat.vue.d.ts.map +1 -1
- package/dist/Chat.vue.js +23 -0
- package/dist/Chat.vue2.js +4 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/api.d.ts +50 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +68 -0
- package/dist/components/ApprovalSection.vue.d.ts.map +1 -1
- package/dist/components/ApprovalSection.vue.js +7 -0
- package/dist/components/ApprovalSection.vue2.js +42 -0
- package/dist/components/AuthenticationProvided.vue.d.ts +3 -0
- package/dist/components/AuthenticationProvided.vue.d.ts.map +1 -0
- package/dist/components/AuthenticationProvided.vue.js +13 -0
- package/dist/components/AuthenticationRequired.vue.d.ts +3 -0
- package/dist/components/AuthenticationRequired.vue.d.ts.map +1 -0
- package/dist/components/AuthenticationRequired.vue.js +13 -0
- package/dist/components/AutosendPaused.vue.d.ts.map +1 -1
- package/dist/components/AutosendPaused.vue.js +13 -0
- package/dist/components/ContextItem.vue.d.ts.map +1 -1
- package/dist/components/ContextItem.vue.js +7 -0
- package/dist/components/ContextItem.vue2.js +19 -0
- package/dist/components/ErrorMessage.vue.d.ts +2 -1
- package/dist/components/ErrorMessage.vue.d.ts.map +1 -1
- package/dist/components/ErrorMessage.vue.js +7 -0
- package/dist/components/ErrorMessage.vue2.js +22 -0
- package/dist/components/LoadingMiniOpenAPIDoc.vue.d.ts.map +1 -1
- package/dist/components/LoadingMiniOpenAPIDoc.vue.js +14 -0
- package/dist/components/LoadingOpenAPISpecsSummary.vue.d.ts.map +1 -1
- package/dist/components/LoadingOpenAPISpecsSummary.vue.js +14 -0
- package/dist/components/Logo.vue.d.ts.map +1 -1
- package/dist/components/Logo.vue.js +23 -0
- package/dist/components/PaymentSection.vue.d.ts.map +1 -1
- package/dist/components/PaymentSection.vue.js +7 -0
- package/dist/components/PaymentSection.vue2.js +34 -0
- package/dist/components/RequestApproved.vue.d.ts.map +1 -1
- package/dist/components/RequestApproved.vue.js +13 -0
- package/dist/components/RequestFailed.vue.d.ts.map +1 -1
- package/dist/components/RequestFailed.vue.js +24 -0
- package/dist/components/RequestPreview.vue.d.ts +1 -1
- package/dist/components/RequestPreview.vue.d.ts.map +1 -1
- package/dist/components/RequestPreview.vue.js +7 -0
- package/dist/components/RequestPreview.vue2.js +123 -0
- package/dist/components/RequestRejected.vue.d.ts.map +1 -1
- package/dist/components/RequestRejected.vue.js +22 -0
- package/dist/components/RequestSuccess.vue.d.ts.map +1 -1
- package/dist/components/RequestSuccess.vue.js +13 -0
- package/dist/components/ResponseBody/ResponseBody.vue.d.ts +1 -1
- package/dist/components/ResponseBody/ResponseBody.vue.d.ts.map +1 -1
- package/dist/components/ResponseBody/ResponseBody.vue.js +41 -0
- package/dist/components/ResponseBody/ResponseBody.vue2.js +4 -0
- package/dist/components/ResponseBody/ResponseBodyInfo.vue.d.ts.map +1 -1
- package/dist/components/ResponseBody/ResponseBodyInfo.vue.js +14 -0
- package/dist/components/ResponseBody/ResponseBodyPreview.vue.d.ts +1 -1
- package/dist/components/ResponseBody/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/components/ResponseBody/ResponseBodyPreview.vue.js +7 -0
- package/dist/components/ResponseBody/ResponseBodyPreview.vue2.js +65 -0
- package/dist/components/ResponseBody/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/components/ResponseBody/ResponseBodyRaw.vue.js +20 -0
- package/dist/components/ResponseBody/ResponseBodyRaw.vue2.js +4 -0
- package/dist/components/ResponseBody/ResponseBodyToggle.vue.d.ts +2 -2
- package/dist/components/ResponseBody/ResponseBodyToggle.vue.d.ts.map +1 -1
- package/dist/components/ResponseBody/ResponseBodyToggle.vue.js +26 -0
- package/dist/components/ResponseBody/ResponseBodyToggle.vue2.js +4 -0
- package/dist/components/ResponseBody/helpers/media-types.js +130 -0
- package/dist/components/ResponseBody/helpers/process-response-body.d.ts +1 -1
- package/dist/components/ResponseBody/helpers/process-response-body.d.ts.map +1 -1
- package/dist/components/ResponseBody/helpers/process-response-body.js +33 -0
- package/dist/components/SearchPopover.vue.d.ts +2 -2
- package/dist/components/SearchPopover.vue.d.ts.map +1 -1
- package/dist/components/SearchPopover.vue.js +7 -0
- package/dist/components/SearchPopover.vue2.js +67 -0
- package/dist/components/Selector.vue.d.ts +24 -0
- package/dist/components/Selector.vue.d.ts.map +1 -0
- package/dist/components/Selector.vue.js +67 -0
- package/dist/components/Selector.vue2.js +4 -0
- package/dist/components/SendingRequest.vue.d.ts.map +1 -1
- package/dist/components/SendingRequest.vue.js +24 -0
- package/dist/components/ServerSelector.vue.d.ts +22 -0
- package/dist/components/ServerSelector.vue.d.ts.map +1 -0
- package/dist/components/ServerSelector.vue.js +57 -0
- package/dist/components/ServerSelector.vue2.js +4 -0
- package/dist/components/Suggestion.vue.d.ts.map +1 -1
- package/dist/components/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/components/{Endpoint.vue.d.ts → UploadSection.vue.d.ts} +3 -5
- package/dist/components/UploadSection.vue.d.ts.map +1 -0
- package/dist/components/UploadSection.vue.js +7 -0
- package/dist/components/UploadSection.vue2.js +62 -0
- package/dist/entities/prompt/constants.d.ts +2 -0
- package/dist/entities/prompt/constants.d.ts.map +1 -0
- package/dist/entities/prompt/constants.js +4 -0
- package/dist/entities/registry/document.d.ts +21 -0
- package/dist/entities/registry/document.d.ts.map +1 -0
- package/dist/entities/registry/document.js +12 -0
- package/dist/entities/tools/ask-for-authentication.d.ts +7 -0
- package/dist/entities/tools/ask-for-authentication.d.ts.map +1 -0
- package/dist/entities/tools/ask-for-authentication.js +8 -0
- package/dist/entities/tools/constants.d.ts +2 -0
- package/dist/entities/tools/constants.d.ts.map +1 -0
- package/dist/entities/tools/constants.js +4 -0
- package/dist/entities/tools/execute-request.d.ts +42 -0
- package/dist/entities/tools/execute-request.d.ts.map +1 -0
- package/dist/entities/tools/execute-request.js +11 -0
- package/dist/entities/tools/get-mini-openapi-spec.d.ts +12 -0
- package/dist/entities/tools/get-mini-openapi-spec.d.ts.map +1 -0
- package/dist/entities/tools/get-mini-openapi-spec.js +8 -0
- package/dist/entities/tools/get-openapi-spec-summary.d.ts +10 -0
- package/dist/entities/tools/get-openapi-spec-summary.d.ts.map +1 -0
- package/dist/entities/tools/get-openapi-spec-summary.js +4 -0
- package/dist/helpers.d.ts +20 -12
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +122 -0
- package/dist/hooks/{useChatApprovals.d.ts → use-chat-approvals.d.ts} +1 -1
- package/dist/hooks/use-chat-approvals.d.ts.map +1 -0
- package/dist/hooks/use-chat-approvals.js +21 -0
- package/dist/hooks/use-chat-error.d.ts +14 -0
- package/dist/hooks/use-chat-error.d.ts.map +1 -0
- package/dist/hooks/use-chat-error.js +23 -0
- package/dist/hooks/use-chat-pending-client-tool-parts.d.ts +19 -0
- package/dist/hooks/use-chat-pending-client-tool-parts.d.ts.map +1 -0
- package/dist/hooks/use-chat-pending-client-tool-parts.js +12 -0
- package/dist/hooks/{useChatScroll.d.ts → use-chat-scroll.d.ts} +1 -1
- package/dist/hooks/use-chat-scroll.d.ts.map +1 -0
- package/dist/hooks/use-chat-scroll.js +16 -0
- package/dist/hooks/{useSearch.d.ts → use-search.d.ts} +11 -11
- package/dist/hooks/use-search.d.ts.map +1 -0
- package/dist/hooks/use-search.js +25 -0
- package/dist/hooks/use-term-and-conditions.d.ts +6 -0
- package/dist/hooks/use-term-and-conditions.d.ts.map +1 -0
- package/dist/hooks/use-term-and-conditions.js +16 -0
- package/dist/hooks/use-upload-tmp-document.d.ts +19 -0
- package/dist/hooks/use-upload-tmp-document.d.ts.map +1 -0
- package/dist/hooks/use-upload-tmp-document.js +64 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/package.json +34 -23
- package/dist/registry/add-documents-to-store.d.ts +6 -6
- package/dist/registry/add-documents-to-store.d.ts.map +1 -1
- package/dist/registry/add-documents-to-store.js +40 -0
- package/dist/registry/create-document-name.d.ts +2 -0
- package/dist/registry/create-document-name.d.ts.map +1 -0
- package/dist/registry/create-document-name.js +6 -0
- package/dist/state/state.d.ts +20 -8
- package/dist/state/state.d.ts.map +1 -1
- package/dist/state/state.js +110 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/views/Chat/Chat.vue.d.ts.map +1 -1
- package/dist/views/Chat/Chat.vue.js +7 -0
- package/dist/views/Chat/Chat.vue2.js +77 -0
- package/dist/views/Chat/Messages/AskForAuthentication.vue.d.ts +10 -0
- package/dist/views/Chat/Messages/AskForAuthentication.vue.d.ts.map +1 -0
- package/dist/views/Chat/Messages/AskForAuthentication.vue.js +7 -0
- package/dist/views/Chat/Messages/AskForAuthentication.vue2.js +93 -0
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts +2 -2
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts.map +1 -1
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue.js +7 -0
- package/dist/views/Chat/Messages/ExecuteRequestTool.vue2.js +23 -0
- package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.d.ts +2 -2
- package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.d.ts.map +1 -1
- package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.js +7 -0
- package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue2.js +56 -0
- package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.d.ts +2 -2
- package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.d.ts.map +1 -1
- package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.js +26 -0
- package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue2.js +4 -0
- package/dist/views/Chat/Messages/Text.vue.d.ts.map +1 -1
- package/dist/views/Chat/Messages/Text.vue.js +16 -0
- package/dist/views/Chat/Messages/Text.vue2.js +4 -0
- package/dist/views/Layout.vue.d.ts.map +1 -1
- package/dist/views/Layout.vue.js +7 -0
- package/dist/views/Layout.vue2.js +23 -0
- package/dist/views/PromptForm.vue.d.ts.map +1 -1
- package/dist/views/PromptForm.vue.js +7 -0
- package/dist/views/PromptForm.vue2.js +212 -0
- package/dist/views/Settings/Auth.vue.d.ts.map +1 -1
- package/dist/views/Settings/Auth.vue.js +67 -0
- package/dist/views/Settings/Auth.vue2.js +4 -0
- package/dist/views/Settings/DocSettings.vue.d.ts.map +1 -1
- package/dist/views/Settings/DocSettings.vue.js +7 -0
- package/dist/views/Settings/DocSettings.vue2.js +48 -0
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue.js +8 -0
- package/dist/views/Settings/Settings.vue2.js +67 -0
- package/dist/views/Start.vue.d.ts.map +1 -1
- package/dist/views/Start.vue.js +7 -0
- package/dist/views/Start.vue2.js +41 -0
- package/package.json +52 -7
- package/dist/Tooltip-Cm82QgNj.js +0 -575
- package/dist/__vite-optional-peer-dep_stream-markdown_markstream-vue_false-sdjmOmXd.js +0 -5
- package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue_false-HdL4xm5U.js +0 -5
- package/dist/__vite-optional-peer-dep_vue-i18n_markstream-vue_false-B9Pwe5kz.js +0 -5
- package/dist/_basePickBy-hHD8tMGb.js +0 -151
- package/dist/_baseUniq-DTF1wuF6.js +0 -614
- package/dist/arc-Dw2RQerU.js +0 -83
- package/dist/architecture-U656AL7Q-B00Z9eXr.js +0 -36
- package/dist/architectureDiagram-VXUJARFQ-BtOffFaM.js +0 -4662
- package/dist/blockDiagram-VD42YOAC-BUqFMMQe.js +0 -2261
- package/dist/c4Diagram-YG6GDRKO-NrM1YcpG.js +0 -1579
- package/dist/channel-105myCGU.js +0 -5
- package/dist/chunk-4BX2VUAB-TAxJli7C.js +0 -8
- package/dist/chunk-55IACEB6-VXFJ4bz5.js +0 -8
- package/dist/chunk-B4BG7PRW-CZDQpfj5.js +0 -1375
- package/dist/chunk-DI55MBZ5-D3l7TA-E.js +0 -1370
- package/dist/chunk-FMBD7UC4-BMXFm8I3.js +0 -19
- package/dist/chunk-QN33PNHL-BOUpbpWp.js +0 -19
- package/dist/chunk-QZHKN3VN-C-TEEx05.js +0 -15
- package/dist/chunk-TZMSLE5B-BUiROKNR.js +0 -64
- package/dist/classDiagram-2ON5EDUG-HQET4ybK.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-HQET4ybK.js +0 -16
- package/dist/clone-CIIO71O9.js +0 -8
- package/dist/components/Endpoint.vue.d.ts.map +0 -1
- package/dist/cose-bilkent-S5V4N54A-CMsF4n-5.js +0 -2609
- package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
- package/dist/dagre-6UL2VRFP-DqzdQ6Qg.js +0 -444
- package/dist/defaultLocale-BEa-49Qz.js +0 -171
- package/dist/diagram-PSM6KHXK-1xyGntw2.js +0 -531
- package/dist/diagram-QEK2KX5R-DdZdlAm1.js +0 -217
- package/dist/diagram-S2PKOQOG-C80Eo2jp.js +0 -142
- package/dist/erDiagram-Q2GNP2WA-DFVRrMXT.js +0 -841
- package/dist/flowDiagram-NV44I4VS-D9QK_qqB.js +0 -1620
- package/dist/ganttDiagram-LVOFAZNH-Bo1NTkeQ.js +0 -2506
- package/dist/gitGraph-F6HP7TQM-C5hdgcgO.js +0 -27
- package/dist/gitGraphDiagram-NY62KEGX-BZqnqZh6.js +0 -699
- package/dist/graph-Dth4IhEK.js +0 -247
- package/dist/hooks/useChatApprovals.d.ts.map +0 -1
- package/dist/hooks/useChatOperationBlocks.d.ts +0 -3
- package/dist/hooks/useChatOperationBlocks.d.ts.map +0 -1
- package/dist/hooks/useChatScroll.d.ts.map +0 -1
- package/dist/hooks/useSearch.d.ts.map +0 -1
- package/dist/index-BOvT43H8.js +0 -111780
- package/dist/index2-B36B-gt0.js +0 -69
- package/dist/index3-CtIyYUnG.js +0 -70
- package/dist/index4-Dzz91Ao2.js +0 -537
- package/dist/index5-Bmz0gMSP.js +0 -590
- package/dist/index6-DMB3qTSV.js +0 -196
- package/dist/info-NVLQJR56-azt5obk5.js +0 -27
- package/dist/infoDiagram-ER5ION4S-DD4Jtctm.js +0 -24
- package/dist/infographic_markstream-vue_false-BfsmcXxk.js +0 -5
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-CXL6UO0r.js +0 -834
- package/dist/kanban-definition-3W4ZIXB7-B57do5Wg.js +0 -719
- package/dist/katex-SsTUIUTC.js +0 -11688
- package/dist/layout-7TCY8eA2.js +0 -1332
- package/dist/linear-DSm5i91N.js +0 -625
- package/dist/mermaid-parser.core-CUQWpAMM.js +0 -12746
- package/dist/mermaid.core-QjuzH7xx.js +0 -14164
- package/dist/mhchem-XHl7cef5.js +0 -2306
- package/dist/mindmap-definition-VGOIOE7T-DAQyGNAM.js +0 -784
- package/dist/ordinal-DfAQgscy.js +0 -61
- package/dist/packet-BFZMPI3H-CixuxAEA.js +0 -27
- package/dist/pie-7BOR55EZ-D3cgnzR1.js +0 -32
- package/dist/pieDiagram-ADFJNKIX-BqxgYwrL.js +0 -161
- package/dist/quadrantDiagram-AYHSOK5B-CQ4v-9Hh.js +0 -1022
- package/dist/radar-NHE76QYJ-DhV0Od_M.js +0 -27
- package/dist/requirementDiagram-UZGBJVZJ-ncWNAgFi.js +0 -850
- package/dist/safeRaf-I3a3-dyJ.js +0 -10
- package/dist/sankeyDiagram-TZEHDZUN-yCR2_cH5.js +0 -810
- package/dist/sequenceDiagram-WL72ISMW-DZ7wqFyd.js +0 -2511
- package/dist/stateDiagram-FKZM4ZOC-Dra68Tzi.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-CARbPECD.js +0 -16
- package/dist/timeline-definition-IT6M3QCI-DEbG9QIM.js +0 -795
- package/dist/treemap-KMMF4GRG-CQbPsyWe.js +0 -81
- 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'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":"
|
|
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
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/DocSettings.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/DocSettings.vue"],"names":[],"mappings":"AA0EA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAOlF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;;AAoGF,wBAMG"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as d, computed as t, createElementBlock as a, openBlock as S, createElementVNode as s, createVNode as m, unref as n } from "vue";
|
|
2
|
+
import { getSelectedServer as f } from "@scalar/api-client/v2/features/operation";
|
|
3
|
+
import { getActiveEnvironment as g, getServers as B } from "@scalar/api-client/v2/helpers";
|
|
4
|
+
import h from "../../components/ServerSelector.vue.js";
|
|
5
|
+
import { useState as y } from "../../state/state.js";
|
|
6
|
+
import k from "./Auth.vue.js";
|
|
7
|
+
const p = { class: "docSettings" }, C = /* @__PURE__ */ d({
|
|
8
|
+
__name: "DocSettings",
|
|
9
|
+
props: {
|
|
10
|
+
document: {},
|
|
11
|
+
name: {}
|
|
12
|
+
},
|
|
13
|
+
setup(e) {
|
|
14
|
+
const { workspaceStore: u, config: i, eventBus: r } = y(), v = t(
|
|
15
|
+
() => g(u, e.document)
|
|
16
|
+
), c = t(() => {
|
|
17
|
+
const o = B(e.document.servers, {
|
|
18
|
+
documentUrl: e.document["x-scalar-original-source-url"]
|
|
19
|
+
});
|
|
20
|
+
return f(e.document, o);
|
|
21
|
+
}), l = t(
|
|
22
|
+
() => e.document.components?.securitySchemes ?? {}
|
|
23
|
+
);
|
|
24
|
+
return (o, x) => (S(), a("div", p, [
|
|
25
|
+
s("div", null, [
|
|
26
|
+
m(h, {
|
|
27
|
+
eventBus: n(r),
|
|
28
|
+
selectedServer: c.value,
|
|
29
|
+
servers: e.document.servers ?? []
|
|
30
|
+
}, null, 8, ["eventBus", "selectedServer", "servers"])
|
|
31
|
+
]),
|
|
32
|
+
s("div", null, [
|
|
33
|
+
m(k, {
|
|
34
|
+
document: e.document,
|
|
35
|
+
environment: v.value,
|
|
36
|
+
eventBus: n(r),
|
|
37
|
+
name: e.name,
|
|
38
|
+
options: n(i),
|
|
39
|
+
securitySchemes: l.value,
|
|
40
|
+
selectedServer: c.value
|
|
41
|
+
}, null, 8, ["document", "environment", "eventBus", "name", "options", "securitySchemes", "selectedServer"])
|
|
42
|
+
])
|
|
43
|
+
]));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
C as default
|
|
48
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/Settings.vue"],"names":[],"mappings":"AAwIA,OAAO,
|
|
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;;AA6KF,wBAMG"}
|
|
@@ -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":";;;;;
|
|
1
|
+
{"version":3,"file":"Start.vue.d.ts","sourceRoot":"","sources":["../../src/views/Start.vue"],"names":[],"mappings":";;;;;AAqMA,wBAMG"}
|
|
@@ -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
|
-
"
|
|
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.6",
|
|
8
14
|
"engines": {
|
|
9
|
-
"node": ">=
|
|
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,42 @@
|
|
|
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.20.2",
|
|
54
|
+
"@scalar/components": "0.16.30",
|
|
55
|
+
"@scalar/json-magic": "0.9.3",
|
|
56
|
+
"@scalar/helpers": "0.2.9",
|
|
57
|
+
"@scalar/icons": "0.5.2",
|
|
58
|
+
"@scalar/openapi-types": "0.5.3",
|
|
59
|
+
"@scalar/themes": "0.13.26",
|
|
60
|
+
"@scalar/types": "0.5.10",
|
|
61
|
+
"@scalar/workspace-store": "0.26.2"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
65
|
+
"@types/whatwg-mimetype": "3.0.2",
|
|
66
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
67
|
+
"tailwindcss": "^4.1.18",
|
|
68
|
+
"vite": "^7.3.1",
|
|
69
|
+
"@scalar/build-tooling": "0.4.1"
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "scalar-build-vite && cp package.json dist",
|
|
73
|
+
"build:watch": "vite build --watch",
|
|
74
|
+
"playground": "cd playground && vite",
|
|
75
|
+
"types:build": "scalar-types-build-vue",
|
|
76
|
+
"types:check": "scalar-types-check-vue"
|
|
32
77
|
}
|
|
33
78
|
}
|