@scalar/agent-chat 0.4.2 → 0.4.4
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/dist/components/ApprovalSection.vue.d.ts.map +1 -1
- package/dist/components/ApprovalSection.vue.js +1 -1
- package/dist/components/ErrorMessage.vue.d.ts.map +1 -1
- package/dist/components/ErrorMessage.vue.js +2 -2
- package/dist/components/ErrorMessage.vue2.js +9 -12
- package/dist/components/PaymentSection.vue.d.ts.map +1 -1
- package/dist/components/PaymentSection.vue.js +2 -2
- package/dist/components/PaymentSection.vue2.js +13 -13
- package/dist/components/UploadSection.vue.d.ts.map +1 -1
- package/dist/components/UploadSection.vue.js +2 -2
- package/dist/components/UploadSection.vue2.js +37 -31
- package/dist/hooks/use-upload-tmp-document.d.ts +1 -1
- package/dist/hooks/use-upload-tmp-document.js +21 -21
- package/dist/package.json +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Chat/Chat.vue.js +1 -1
- package/dist/views/PromptForm.vue.d.ts.map +1 -1
- package/dist/views/PromptForm.vue.js +2 -2
- package/dist/views/PromptForm.vue2.js +173 -174
- package/dist/views/Settings/DocSettings.vue.js +2 -2
- package/dist/views/Settings/DocSettings.vue2.js +7 -7
- package/dist/views/Start.vue.d.ts.map +1 -1
- package/dist/views/Start.vue.js +2 -2
- package/package.json +7 -7
- package/dist/components/FreeMessagesInfoSection.vue.d.ts +0 -3
- package/dist/components/FreeMessagesInfoSection.vue.d.ts.map +0 -1
- package/dist/components/FreeMessagesInfoSection.vue.js +0 -7
- package/dist/components/FreeMessagesInfoSection.vue2.js +0 -49
|
@@ -1,40 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIconButton as _, ScalarLoading as
|
|
3
|
-
import { ScalarIconPlus as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import W from "../components/FreeMessagesInfoSection.vue.js";
|
|
1
|
+
import { defineComponent as $, useTemplateRef as V, computed as f, watch as C, createElementBlock as a, openBlock as s, Fragment as h, createBlock as c, createCommentVNode as i, createElementVNode as n, unref as e, withDirectives as S, withModifiers as N, vModelText as H, createVNode as m, withCtx as F, renderList as w, createTextVNode as T, toDisplayString as K, vShow as j } from "vue";
|
|
2
|
+
import { ScalarIconButton as _, ScalarLoading as q } from "@scalar/components";
|
|
3
|
+
import { ScalarIconPlus as J, ScalarIconX as X, ScalarIconLockSimple as O, ScalarIconCheck as Z, ScalarIconArrowUp as G } from "@scalar/icons";
|
|
4
|
+
import Q from "../components/ApprovalSection.vue.js";
|
|
5
|
+
import W from "../components/ErrorMessage.vue.js";
|
|
7
6
|
import Y from "../components/PaymentSection.vue.js";
|
|
8
7
|
import ee from "../components/SearchPopover.vue.js";
|
|
9
8
|
import te from "../components/UploadSection.vue.js";
|
|
10
|
-
import { AgentErrorCodes as
|
|
11
|
-
import { MAX_PROMPT_SIZE as
|
|
12
|
-
import { useChatApprovals as
|
|
13
|
-
import { useChatError as
|
|
9
|
+
import { AgentErrorCodes as oe } from "../entities/error/constants.js";
|
|
10
|
+
import { MAX_PROMPT_SIZE as le } from "../entities/prompt/constants.js";
|
|
11
|
+
import { useChatApprovals as se } from "../hooks/use-chat-approvals.js";
|
|
12
|
+
import { useChatError as ne } from "../hooks/use-chat-error.js";
|
|
14
13
|
import { useChatPendingClientToolParts as re } from "../hooks/use-chat-pending-client-tool-parts.js";
|
|
15
|
-
import { useUploadTmpDocument as
|
|
16
|
-
import { useState as
|
|
17
|
-
const
|
|
14
|
+
import { useUploadTmpDocument as ae } from "../hooks/use-upload-tmp-document.js";
|
|
15
|
+
import { useState as ie } from "../state/state.js";
|
|
16
|
+
const ue = { class: "actionContainer" }, ce = ["disabled"], pe = { class: "inputActionsContainer" }, de = { class: "inputActionsLeft" }, me = {
|
|
18
17
|
class: "addAPIButton",
|
|
19
18
|
type: "button"
|
|
20
|
-
},
|
|
19
|
+
}, ve = ["src"], ge = ["onClick"], fe = { class: "inputActionsRight" }, he = { class: "sendCheckboxContinue" }, ye = {
|
|
21
20
|
key: 0,
|
|
22
21
|
class: "relative flex items-center gap-1.5"
|
|
23
|
-
},
|
|
22
|
+
}, be = {
|
|
24
23
|
class: "termsAgree",
|
|
25
24
|
for: "agentTermsAgree"
|
|
26
|
-
},
|
|
25
|
+
}, ke = { class: "addMoreContext" }, Ae = { class: "ml-auto flex items-center gap-1" }, Ce = ["onClick"], Se = ["alt", "src"], Ne = /* @__PURE__ */ $({
|
|
27
26
|
__name: "PromptForm",
|
|
28
27
|
emits: ["submit"],
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
const u =
|
|
33
|
-
() => t.prompt.value.trim().length >
|
|
34
|
-
), E = v(
|
|
35
|
-
() => t.chat.messages.length > 1 && !t.getAgentKey?.() && d?.value?.code !== T.LIMIT_REACHED
|
|
28
|
+
setup(we, { expose: P, emit: x }) {
|
|
29
|
+
const D = x;
|
|
30
|
+
P({ focusPrompt: R });
|
|
31
|
+
const u = V("agentPrompt"), t = ie(), I = f(() => t.prompt.value.trim().length > 0), E = f(
|
|
32
|
+
() => t.prompt.value.trim().length > le
|
|
36
33
|
);
|
|
37
|
-
|
|
34
|
+
C(t.prompt, () => {
|
|
38
35
|
if (u?.value) {
|
|
39
36
|
if (!t.prompt.value.length) {
|
|
40
37
|
u.value.style.height = "0px";
|
|
@@ -43,186 +40,188 @@ const ie = { class: "actionContainer" }, ue = ["disabled"], ce = { class: "input
|
|
|
43
40
|
u.value.style.height = "auto", u.value.style.height = u.value.scrollHeight + "px";
|
|
44
41
|
}
|
|
45
42
|
});
|
|
46
|
-
function
|
|
47
|
-
t.loading.value ||
|
|
43
|
+
function L(r) {
|
|
44
|
+
t.loading.value || r.key === "Enter" && !r.shiftKey && (r.preventDefault(), k(), window.scrollTo(0, document.body.scrollHeight));
|
|
48
45
|
}
|
|
49
46
|
function R() {
|
|
50
47
|
u.value?.focus();
|
|
51
48
|
}
|
|
52
|
-
|
|
49
|
+
C(
|
|
53
50
|
() => t.chat.status,
|
|
54
|
-
(
|
|
55
|
-
(
|
|
51
|
+
(r) => {
|
|
52
|
+
(r === "ready" || r === "error") && u.value?.focus();
|
|
56
53
|
}
|
|
57
54
|
);
|
|
58
|
-
const { respondToToolCalls: p, approvalRequestedParts:
|
|
55
|
+
const { respondToToolCalls: p, approvalRequestedParts: y } = se(), { pendingClientToolParts: M } = re(), d = ae();
|
|
59
56
|
function U() {
|
|
60
|
-
t.terms.accept(), t.mode === "preview" && t.getActiveDocumentJson &&
|
|
57
|
+
t.terms.accept(), t.mode === "preview" && t.getActiveDocumentJson && d.uploadTempDocument(t.getActiveDocumentJson());
|
|
61
58
|
}
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
const b = f(() => {
|
|
60
|
+
const r = E.value, l = !I.value, o = y.value.length > 0, g = M.value.length > 0, A = t.mode === "preview", z = A && !t.terms.accepted.value, B = A && !!d.uploadState.value;
|
|
61
|
+
return r || l || o || g || z || B;
|
|
62
|
+
});
|
|
63
|
+
function k() {
|
|
64
|
+
b.value || D("submit");
|
|
67
65
|
}
|
|
68
|
-
const
|
|
69
|
-
return (
|
|
70
|
-
e(
|
|
66
|
+
const v = ne();
|
|
67
|
+
return (r, l) => (s(), a(h, null, [
|
|
68
|
+
e(d).uploadState.value ? (s(), c(te, {
|
|
71
69
|
key: 0,
|
|
72
|
-
uploadState: e(
|
|
73
|
-
}, null, 8, ["uploadState"])) :
|
|
74
|
-
e(
|
|
70
|
+
uploadState: e(d).uploadState.value
|
|
71
|
+
}, null, 8, ["uploadState"])) : i("", !0),
|
|
72
|
+
e(v) ? (s(), c(W, {
|
|
75
73
|
key: 1,
|
|
76
|
-
error: e(
|
|
77
|
-
}, null, 8, ["error"])) :
|
|
78
|
-
e(
|
|
74
|
+
error: e(v)
|
|
75
|
+
}, null, 8, ["error"])) : i("", !0),
|
|
76
|
+
e(y).length ? (s(), c(Q, {
|
|
79
77
|
key: 2,
|
|
80
78
|
onApprove: l[0] || (l[0] = (o) => e(p)(!0)),
|
|
81
79
|
onReject: l[1] || (l[1] = (o) => e(p)(!1))
|
|
82
|
-
})) :
|
|
83
|
-
e(
|
|
80
|
+
})) : i("", !0),
|
|
81
|
+
e(v)?.code === e(oe).LIMIT_REACHED ? (s(), c(Y, {
|
|
84
82
|
key: 3,
|
|
85
83
|
onApprove: l[2] || (l[2] = (o) => e(p)(!0)),
|
|
86
84
|
onReject: l[3] || (l[3] = (o) => e(p)(!1))
|
|
87
|
-
})) :
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
85
|
+
})) : i("", !0),
|
|
86
|
+
n("div", ue, [
|
|
87
|
+
n("form", {
|
|
88
|
+
class: "promptForm",
|
|
89
|
+
onSubmit: N(k, ["prevent"])
|
|
90
|
+
}, [
|
|
91
|
+
l[7] || (l[7] = n("label", {
|
|
92
|
+
class: "agentLabel",
|
|
93
|
+
for: "agentTextarea"
|
|
94
|
+
}, " Type a Request To get Started ", -1)),
|
|
95
|
+
S(n("textarea", {
|
|
96
|
+
id: "agentTextarea",
|
|
97
|
+
ref: "agentPrompt",
|
|
98
|
+
"onUpdate:modelValue": l[4] || (l[4] = (o) => e(t).prompt.value = o),
|
|
99
|
+
class: "prompt custom-scroll",
|
|
100
|
+
disabled: e(t).loading.value,
|
|
101
|
+
name: "prompt",
|
|
102
|
+
placeholder: "Ask me anything...",
|
|
103
|
+
onKeydown: L
|
|
104
|
+
}, null, 40, ce), [
|
|
105
|
+
[H, e(t).prompt.value]
|
|
106
|
+
]),
|
|
107
|
+
n("div", pe, [
|
|
108
|
+
n("div", de, [
|
|
109
|
+
m(ee, null, {
|
|
110
|
+
default: F(() => [
|
|
111
|
+
n("button", me, [
|
|
112
|
+
m(e(J), {
|
|
113
|
+
class: "size-4",
|
|
114
|
+
weight: "bold"
|
|
115
|
+
})
|
|
116
|
+
])
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}),
|
|
120
|
+
(s(!0), a(h, null, w(e(t).registryDocuments.value, (o) => (s(), a("div", {
|
|
121
|
+
key: o.id,
|
|
122
|
+
class: "apiPill"
|
|
123
|
+
}, [
|
|
124
|
+
o.logoUrl ? (s(), a("img", {
|
|
125
|
+
key: 0,
|
|
126
|
+
class: "apiPillLogo",
|
|
127
|
+
src: o.logoUrl
|
|
128
|
+
}, null, 8, ve)) : i("", !0),
|
|
129
|
+
T(" " + K(o.title) + " ", 1),
|
|
130
|
+
o.removable ? (s(), a("button", {
|
|
131
|
+
key: 1,
|
|
132
|
+
class: "apiPillRemove",
|
|
133
|
+
type: "button",
|
|
134
|
+
onClick: (g) => e(t).removeDocument(o)
|
|
135
|
+
}, [
|
|
136
|
+
m(e(X), {
|
|
115
137
|
class: "size-4",
|
|
116
138
|
weight: "bold"
|
|
117
139
|
})
|
|
118
|
-
])
|
|
119
|
-
]),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
140
|
+
], 8, ge)) : i("", !0)
|
|
141
|
+
]))), 128))
|
|
142
|
+
]),
|
|
143
|
+
n("div", fe, [
|
|
144
|
+
e(t).loading.value ? i("", !0) : (s(), c(e(_), {
|
|
145
|
+
key: 0,
|
|
146
|
+
class: "settingsButton h-7 w-7 p-1.5",
|
|
147
|
+
icon: e(O),
|
|
148
|
+
label: "Scalar",
|
|
149
|
+
size: "md",
|
|
150
|
+
weight: "bold",
|
|
151
|
+
onClick: l[5] || (l[5] = (o) => e(t).settingsModal.show())
|
|
152
|
+
}, null, 8, ["icon"])),
|
|
153
|
+
n("div", he, [
|
|
154
|
+
!e(t).terms.accepted.value && e(t).mode === "preview" ? (s(), a("div", ye, [
|
|
155
|
+
n("input", {
|
|
156
|
+
id: "agentTermsAgree",
|
|
157
|
+
class: "sr-only",
|
|
158
|
+
type: "checkbox",
|
|
159
|
+
onChange: U
|
|
160
|
+
}, null, 32),
|
|
161
|
+
n("label", be, [
|
|
162
|
+
m(e(Z), {
|
|
163
|
+
class: "termsAgreeIcon",
|
|
164
|
+
weight: "bold"
|
|
165
|
+
}),
|
|
166
|
+
l[6] || (l[6] = T(" Agree to Terms & Conditions ", -1))
|
|
167
|
+
])
|
|
168
|
+
])) : i("", !0),
|
|
169
|
+
e(t).loading.value ? (s(), c(e(q), {
|
|
170
|
+
key: 2,
|
|
171
|
+
class: "loader h-7 w-7",
|
|
172
|
+
loader: {
|
|
173
|
+
isLoading: e(t).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"])) : (s(), c(e(_), {
|
|
188
|
+
key: 1,
|
|
189
|
+
class: "sendButton h-7 w-7 p-1.5",
|
|
190
|
+
disabled: b.value,
|
|
191
|
+
icon: e(G),
|
|
192
|
+
label: "Scalar",
|
|
193
|
+
size: "md",
|
|
194
|
+
type: "submit",
|
|
195
|
+
weight: "bold"
|
|
196
|
+
}, null, 8, ["disabled", "icon"]))
|
|
197
|
+
])
|
|
198
|
+
])
|
|
199
|
+
])
|
|
200
|
+
], 32),
|
|
201
|
+
S(n("div", ke, [
|
|
202
|
+
l[8] || (l[8] = n("span", null, "Add context from dozens of API's", -1)),
|
|
203
|
+
n("div", Ae, [
|
|
204
|
+
(s(!0), a(h, null, w(e(t).curatedDocuments.value, (o) => (s(), a("button", {
|
|
123
205
|
key: o.id,
|
|
124
|
-
class: "
|
|
206
|
+
class: "addAPIContext",
|
|
207
|
+
type: "button",
|
|
208
|
+
onClick: (g) => e(t).addDocument(o)
|
|
125
209
|
}, [
|
|
126
210
|
o.logoUrl ? (s(), a("img", {
|
|
127
211
|
key: 0,
|
|
128
|
-
|
|
212
|
+
alt: o.title,
|
|
213
|
+
class: "size-4",
|
|
129
214
|
src: o.logoUrl
|
|
130
|
-
}, null, 8,
|
|
131
|
-
|
|
132
|
-
o.removable ? (s(), a("button", {
|
|
133
|
-
key: 1,
|
|
134
|
-
class: "apiPillRemove",
|
|
135
|
-
type: "button",
|
|
136
|
-
onClick: (z) => e(t).removeDocument(o)
|
|
137
|
-
}, [
|
|
138
|
-
g(e(J), {
|
|
139
|
-
class: "size-4",
|
|
140
|
-
weight: "bold"
|
|
141
|
-
})
|
|
142
|
-
], 8, ve)) : n("", !0)
|
|
143
|
-
]))), 128))
|
|
144
|
-
]),
|
|
145
|
-
r("div", ge, [
|
|
146
|
-
e(t).loading.value ? n("", !0) : (s(), i(e(_), {
|
|
147
|
-
key: 0,
|
|
148
|
-
class: "settingsButton h-7 w-7 p-1.5",
|
|
149
|
-
icon: e(X),
|
|
150
|
-
label: "Scalar",
|
|
151
|
-
size: "md",
|
|
152
|
-
weight: "bold",
|
|
153
|
-
onClick: l[5] || (l[5] = (o) => e(t).settingsModal.show())
|
|
154
|
-
}, null, 8, ["icon"])),
|
|
155
|
-
r("div", fe, [
|
|
156
|
-
!e(t).terms.accepted.value && e(t).mode === "preview" ? (s(), a("div", he, [
|
|
157
|
-
r("input", {
|
|
158
|
-
id: "agentTermsAgree",
|
|
159
|
-
class: "sr-only",
|
|
160
|
-
type: "checkbox",
|
|
161
|
-
onChange: U
|
|
162
|
-
}, null, 32),
|
|
163
|
-
r("label", ye, [
|
|
164
|
-
g(e(O), {
|
|
165
|
-
class: "termsAgreeIcon",
|
|
166
|
-
weight: "bold"
|
|
167
|
-
}),
|
|
168
|
-
l[6] || (l[6] = A(" Agree to Terms & Conditions ", -1))
|
|
169
|
-
])
|
|
170
|
-
])) : n("", !0),
|
|
171
|
-
e(t).loading.value ? (s(), i(e(j), {
|
|
172
|
-
key: 2,
|
|
173
|
-
class: "loader h-7 w-7",
|
|
174
|
-
loader: {
|
|
175
|
-
isLoading: e(t).loading.value,
|
|
176
|
-
isValid: !1,
|
|
177
|
-
clear: async () => {
|
|
178
|
-
},
|
|
179
|
-
invalidate: async () => {
|
|
180
|
-
},
|
|
181
|
-
isInvalid: !1,
|
|
182
|
-
isActive: !1,
|
|
183
|
-
validate: async () => {
|
|
184
|
-
},
|
|
185
|
-
start: () => {
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
size: "2xl"
|
|
189
|
-
}, null, 8, ["loader"])) : (s(), i(e(_), {
|
|
190
|
-
key: 1,
|
|
191
|
-
class: "sendButton h-7 w-7 p-1.5",
|
|
192
|
-
disabled: h.value,
|
|
193
|
-
icon: e(Z),
|
|
194
|
-
label: "Scalar",
|
|
195
|
-
size: "md",
|
|
196
|
-
type: "submit",
|
|
197
|
-
weight: "bold"
|
|
198
|
-
}, null, 8, ["disabled", "icon"]))
|
|
199
|
-
])
|
|
215
|
+
}, null, 8, Se)) : i("", !0)
|
|
216
|
+
], 8, Ce))), 128))
|
|
200
217
|
])
|
|
218
|
+
], 512), [
|
|
219
|
+
[j, e(t).chat.messages.length <= 1]
|
|
201
220
|
])
|
|
202
|
-
], 32),
|
|
203
|
-
k(r("div", be, [
|
|
204
|
-
l[8] || (l[8] = r("span", null, "Add context from dozens of API's", -1)),
|
|
205
|
-
r("div", ke, [
|
|
206
|
-
(s(!0), a(C, null, S(e(t).curatedDocuments.value, (o) => (s(), a("button", {
|
|
207
|
-
key: o.id,
|
|
208
|
-
class: "addAPIContext",
|
|
209
|
-
type: "button",
|
|
210
|
-
onClick: (z) => e(t).addDocument(o)
|
|
211
|
-
}, [
|
|
212
|
-
o.logoUrl ? (s(), a("img", {
|
|
213
|
-
key: 0,
|
|
214
|
-
alt: o.title,
|
|
215
|
-
class: "size-4",
|
|
216
|
-
src: o.logoUrl
|
|
217
|
-
}, null, 8, Se)) : n("", !0)
|
|
218
|
-
], 8, Ce))), 128))
|
|
219
|
-
])
|
|
220
|
-
], 512), [
|
|
221
|
-
[N, e(t).chat.messages.length <= 1]
|
|
222
221
|
])
|
|
223
|
-
]));
|
|
222
|
+
], 64));
|
|
224
223
|
}
|
|
225
224
|
});
|
|
226
225
|
export {
|
|
227
|
-
|
|
226
|
+
Ne as default
|
|
228
227
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DocSettings.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0cf7195a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -22,6 +22,13 @@ const p = { class: "docSettings" }, C = /* @__PURE__ */ d({
|
|
|
22
22
|
() => e.document.components?.securitySchemes ?? {}
|
|
23
23
|
);
|
|
24
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
|
+
]),
|
|
25
32
|
s("div", null, [
|
|
26
33
|
m(k, {
|
|
27
34
|
document: e.document,
|
|
@@ -32,13 +39,6 @@ const p = { class: "docSettings" }, C = /* @__PURE__ */ d({
|
|
|
32
39
|
securitySchemes: l.value,
|
|
33
40
|
selectedServer: c.value
|
|
34
41
|
}, null, 8, ["document", "environment", "eventBus", "name", "options", "securitySchemes", "selectedServer"])
|
|
35
|
-
]),
|
|
36
|
-
s("div", null, [
|
|
37
|
-
m(h, {
|
|
38
|
-
eventBus: n(r),
|
|
39
|
-
selectedServer: c.value,
|
|
40
|
-
servers: e.document.servers ?? []
|
|
41
|
-
}, null, 8, ["eventBus", "selectedServer", "servers"])
|
|
42
42
|
])
|
|
43
43
|
]));
|
|
44
44
|
}
|
|
@@ -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"}
|
package/dist/views/Start.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./Start.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-eafdfb78"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
11
11
|
"directory": "packages/agent-chat"
|
|
12
12
|
},
|
|
13
|
-
"version": "0.4.
|
|
13
|
+
"version": "0.4.4",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=20"
|
|
16
16
|
},
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"vue": "^3.5.26",
|
|
50
50
|
"whatwg-mimetype": "4.0.0",
|
|
51
51
|
"zod": "^4.3.5",
|
|
52
|
-
"@scalar/components": "0.
|
|
52
|
+
"@scalar/components": "0.16.32",
|
|
53
|
+
"@scalar/api-client": "2.21.1",
|
|
54
|
+
"@scalar/json-magic": "0.9.4",
|
|
53
55
|
"@scalar/helpers": "0.2.9",
|
|
54
56
|
"@scalar/icons": "0.5.2",
|
|
55
|
-
"@scalar/api-client": "2.22.1",
|
|
56
|
-
"@scalar/json-magic": "0.9.4",
|
|
57
57
|
"@scalar/openapi-types": "0.5.3",
|
|
58
|
-
"@scalar/
|
|
59
|
-
"@scalar/
|
|
60
|
-
"@scalar/
|
|
58
|
+
"@scalar/themes": "0.13.26",
|
|
59
|
+
"@scalar/workspace-store": "0.27.1",
|
|
60
|
+
"@scalar/types": "0.5.10"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@modelcontextprotocol/sdk": "1.25.2",
|
|
@@ -1,3 +0,0 @@
|
|
|
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=FreeMessagesInfoSection.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FreeMessagesInfoSection.vue.d.ts","sourceRoot":"","sources":["../../src/components/FreeMessagesInfoSection.vue"],"names":[],"mappings":";AAkQA,wBAKG"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, ref as d, withDirectives as f, createElementBlock as p, openBlock as m, createElementVNode as e, createVNode as r, createTextVNode as g, unref as i, vShow as _ } from "vue";
|
|
2
|
-
import { ScalarIconInfo as w, ScalarIconX as b } from "@scalar/icons";
|
|
3
|
-
import { useState as v } from "../state/state.js";
|
|
4
|
-
const h = { class: "freeMessagesInfoSection" }, x = { class: "infoText flex items-center gap-1.5" }, I = { class: "actionsContainer" }, k = /* @__PURE__ */ u({
|
|
5
|
-
__name: "FreeMessagesInfoSection",
|
|
6
|
-
setup(S) {
|
|
7
|
-
const t = d(!1), { dashboardUrl: o, mode: s, uploadedTmpDocumentUrl: n } = v();
|
|
8
|
-
function c() {
|
|
9
|
-
s === "full" && window.location.replace(o), s === "preview" && window.location.replace(
|
|
10
|
-
n.value ? `${o}/register?flow=oss-agent&docUrl=${n.value}` : o
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
function l() {
|
|
14
|
-
t.value = !0;
|
|
15
|
-
}
|
|
16
|
-
return (y, a) => f((m(), p("div", h, [
|
|
17
|
-
e("strong", x, [
|
|
18
|
-
r(i(w), {
|
|
19
|
-
class: "text-blue size-4",
|
|
20
|
-
weight: "bold"
|
|
21
|
-
}),
|
|
22
|
-
a[0] || (a[0] = g(" You get 10 free messages, you can upgrade at anytime to get more for your API. ", -1))
|
|
23
|
-
]),
|
|
24
|
-
e("div", I, [
|
|
25
|
-
e("button", {
|
|
26
|
-
class: "actionButton upgradeButton",
|
|
27
|
-
type: "button",
|
|
28
|
-
onClick: c
|
|
29
|
-
}, " Upgrade "),
|
|
30
|
-
e("button", {
|
|
31
|
-
"aria-label": "Close",
|
|
32
|
-
class: "closeButton",
|
|
33
|
-
type: "button",
|
|
34
|
-
onClick: l
|
|
35
|
-
}, [
|
|
36
|
-
r(i(b), {
|
|
37
|
-
class: "size-4",
|
|
38
|
-
weight: "bold"
|
|
39
|
-
})
|
|
40
|
-
])
|
|
41
|
-
])
|
|
42
|
-
], 512)), [
|
|
43
|
-
[_, !t.value]
|
|
44
|
-
]);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
export {
|
|
48
|
-
k as default
|
|
49
|
-
};
|