@scalar/agent-chat 0.5.18 → 0.7.0
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/App.vue.d.ts +2 -1
- package/dist/App.vue.d.ts.map +1 -1
- package/dist/api.d.ts +3 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +54 -53
- package/dist/client-tools/execute-request.d.ts +1 -0
- package/dist/client-tools/execute-request.d.ts.map +1 -1
- package/dist/client-tools/execute-request.js +33 -27
- package/dist/components/FreeMessagesInfoSection.vue.d.ts.map +1 -1
- package/dist/components/FreeMessagesInfoSection.vue.js +1 -1
- package/dist/components/FreeMessagesInfoSection.vue2.js +27 -25
- package/dist/components/PaymentSection.vue.d.ts.map +1 -1
- package/dist/components/PaymentSection.vue.js +1 -1
- package/dist/components/PaymentSection.vue2.js +16 -20
- package/dist/components/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/ServerSelector.vue.js +27 -21
- package/dist/components/UploadSection.vue.js +2 -2
- package/dist/components/UploadSection.vue2.js +13 -13
- package/dist/consts/urls.d.ts +8 -0
- package/dist/consts/urls.d.ts.map +1 -0
- package/dist/consts/urls.js +10 -0
- package/dist/helpers.d.ts +4 -10
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +34 -45
- package/dist/hooks/use-agent-key-documents.js +6 -6
- package/dist/hooks/use-chat-approvals.d.ts.map +1 -1
- package/dist/hooks/use-chat-approvals.js +7 -6
- package/dist/hooks/use-signup-link.d.ts +12 -0
- package/dist/hooks/use-signup-link.d.ts.map +1 -0
- package/dist/hooks/use-signup-link.js +12 -0
- package/dist/hooks/use-upload-tmp-document.d.ts +3 -0
- package/dist/hooks/use-upload-tmp-document.d.ts.map +1 -1
- package/dist/hooks/use-upload-tmp-document.js +31 -28
- package/dist/package.json +1 -1
- package/dist/state/state.d.ts +2 -1
- package/dist/state/state.d.ts.map +1 -1
- package/dist/state/state.js +134 -127
- package/dist/style.css +1 -1
- package/dist/views/Chat/Messages/AskForAuthentication.vue.js +1 -1
- package/dist/views/Chat/Messages/AskForAuthentication.vue2.js +12 -12
- package/dist/views/PromptForm.vue.d.ts.map +1 -1
- package/dist/views/PromptForm.vue.js +2 -2
- package/dist/views/PromptForm.vue2.js +100 -93
- package/dist/views/Settings/DocSettings.vue.js +1 -1
- package/dist/views/Settings/DocSettings.vue2.js +10 -10
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue.js +2 -2
- package/dist/views/Settings/Settings.vue2.js +53 -43
- package/dist/views/Start.vue.d.ts.map +1 -1
- package/dist/views/Start.vue.js +1 -1
- package/dist/views/Start.vue2.js +28 -27
- package/package.json +8 -8
package/dist/views/Start.vue2.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { defineComponent as g, createElementBlock as r, openBlock as s, createVNode as i, createElementVNode as t, createTextVNode as o, unref as a, Fragment as m } from "vue";
|
|
2
|
+
import f from "../components/Logo.vue.js";
|
|
3
|
+
import { URLS as l } from "../consts/urls.js";
|
|
4
|
+
import { useState as c } from "../state/state.js";
|
|
5
|
+
import y from "./PromptForm.vue.js";
|
|
6
|
+
const _ = { class: "startContainer" }, S = { class: "disclaimerText" }, k = ["href"], A = ["href"], T = /* @__PURE__ */ g({
|
|
6
7
|
__name: "Start",
|
|
7
8
|
emits: ["submit", "uploadApi"],
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
10
|
-
return (
|
|
11
|
-
|
|
12
|
-
e[
|
|
13
|
-
|
|
9
|
+
setup(b, { emit: p }) {
|
|
10
|
+
const n = p, { mode: d } = c();
|
|
11
|
+
return (v, e) => (s(), r("div", _, [
|
|
12
|
+
i(f, { class: "agentLogo" }),
|
|
13
|
+
e[4] || (e[4] = t("h1", { class: "heading" }, "How can I help you today?", -1)),
|
|
14
|
+
i(y, {
|
|
14
15
|
ref: "promptFormField",
|
|
15
|
-
onSubmit: e[0] || (e[0] = (
|
|
16
|
-
onUploadApi: e[1] || (e[1] = (
|
|
16
|
+
onSubmit: e[0] || (e[0] = (u) => n("submit")),
|
|
17
|
+
onUploadApi: e[1] || (e[1] = (u) => n("uploadApi"))
|
|
17
18
|
}, null, 512),
|
|
18
|
-
t("p",
|
|
19
|
-
|
|
20
|
-
o(" By messaging Agent Scalar your OpenAPI
|
|
21
|
-
], 64)) : (s(), r(
|
|
22
|
-
o("
|
|
19
|
+
t("p", S, [
|
|
20
|
+
a(d) === "preview" ? (s(), r(m, { key: 0 }, [
|
|
21
|
+
o(" By messaging Agent Scalar your OpenAPI document will be temporarily uploaded to Scalar's servers. You must agree to our ")
|
|
22
|
+
], 64)) : (s(), r(m, { key: 1 }, [
|
|
23
|
+
o("By messaging Agent Scalar you agree to our ")
|
|
23
24
|
], 64)),
|
|
24
|
-
|
|
25
|
+
t("a", {
|
|
25
26
|
class: "disclaimerLink",
|
|
26
|
-
href:
|
|
27
|
+
href: a(l).TERMS_AND_CONDITIONS,
|
|
27
28
|
target: "_blank"
|
|
28
|
-
}, "Terms
|
|
29
|
-
e[
|
|
30
|
-
|
|
29
|
+
}, "Terms", 8, k),
|
|
30
|
+
e[2] || (e[2] = o(" and ", -1)),
|
|
31
|
+
t("a", {
|
|
31
32
|
class: "disclaimerLink",
|
|
32
|
-
href:
|
|
33
|
+
href: a(l).PRIVACY_POLICY,
|
|
33
34
|
target: "_blank"
|
|
34
|
-
}, "
|
|
35
|
-
e[
|
|
35
|
+
}, "Privacy Policy", 8, A),
|
|
36
|
+
e[3] || (e[3] = o(". ", -1))
|
|
36
37
|
])
|
|
37
38
|
]));
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
T as default
|
|
42
43
|
};
|
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.
|
|
13
|
+
"version": "0.7.0",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=20"
|
|
16
16
|
},
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"vue": "^3.5.26",
|
|
51
51
|
"whatwg-mimetype": "4.0.0",
|
|
52
52
|
"zod": "^4.3.5",
|
|
53
|
-
"@scalar/api-client": "2.
|
|
54
|
-
"@scalar/components": "0.19.
|
|
55
|
-
"@scalar/icons": "0.5.3",
|
|
53
|
+
"@scalar/api-client": "2.31.0",
|
|
54
|
+
"@scalar/components": "0.19.12",
|
|
56
55
|
"@scalar/helpers": "0.2.16",
|
|
57
|
-
"@scalar/
|
|
58
|
-
"@scalar/
|
|
56
|
+
"@scalar/icons": "0.5.3",
|
|
57
|
+
"@scalar/json-magic": "0.11.5",
|
|
58
|
+
"@scalar/themes": "0.14.2",
|
|
59
59
|
"@scalar/types": "0.6.8",
|
|
60
|
+
"@scalar/openapi-types": "0.5.3",
|
|
60
61
|
"@scalar/use-toasts": "0.9.1",
|
|
61
|
-
"@scalar/
|
|
62
|
-
"@scalar/workspace-store": "0.34.4"
|
|
62
|
+
"@scalar/workspace-store": "0.35.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@modelcontextprotocol/sdk": "1.26.0",
|