@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.
Files changed (52) hide show
  1. package/dist/App.vue.d.ts +2 -1
  2. package/dist/App.vue.d.ts.map +1 -1
  3. package/dist/api.d.ts +3 -1
  4. package/dist/api.d.ts.map +1 -1
  5. package/dist/api.js +54 -53
  6. package/dist/client-tools/execute-request.d.ts +1 -0
  7. package/dist/client-tools/execute-request.d.ts.map +1 -1
  8. package/dist/client-tools/execute-request.js +33 -27
  9. package/dist/components/FreeMessagesInfoSection.vue.d.ts.map +1 -1
  10. package/dist/components/FreeMessagesInfoSection.vue.js +1 -1
  11. package/dist/components/FreeMessagesInfoSection.vue2.js +27 -25
  12. package/dist/components/PaymentSection.vue.d.ts.map +1 -1
  13. package/dist/components/PaymentSection.vue.js +1 -1
  14. package/dist/components/PaymentSection.vue2.js +16 -20
  15. package/dist/components/ServerSelector.vue.d.ts.map +1 -1
  16. package/dist/components/ServerSelector.vue.js +27 -21
  17. package/dist/components/UploadSection.vue.js +2 -2
  18. package/dist/components/UploadSection.vue2.js +13 -13
  19. package/dist/consts/urls.d.ts +8 -0
  20. package/dist/consts/urls.d.ts.map +1 -0
  21. package/dist/consts/urls.js +10 -0
  22. package/dist/helpers.d.ts +4 -10
  23. package/dist/helpers.d.ts.map +1 -1
  24. package/dist/helpers.js +34 -45
  25. package/dist/hooks/use-agent-key-documents.js +6 -6
  26. package/dist/hooks/use-chat-approvals.d.ts.map +1 -1
  27. package/dist/hooks/use-chat-approvals.js +7 -6
  28. package/dist/hooks/use-signup-link.d.ts +12 -0
  29. package/dist/hooks/use-signup-link.d.ts.map +1 -0
  30. package/dist/hooks/use-signup-link.js +12 -0
  31. package/dist/hooks/use-upload-tmp-document.d.ts +3 -0
  32. package/dist/hooks/use-upload-tmp-document.d.ts.map +1 -1
  33. package/dist/hooks/use-upload-tmp-document.js +31 -28
  34. package/dist/package.json +1 -1
  35. package/dist/state/state.d.ts +2 -1
  36. package/dist/state/state.d.ts.map +1 -1
  37. package/dist/state/state.js +134 -127
  38. package/dist/style.css +1 -1
  39. package/dist/views/Chat/Messages/AskForAuthentication.vue.js +1 -1
  40. package/dist/views/Chat/Messages/AskForAuthentication.vue2.js +12 -12
  41. package/dist/views/PromptForm.vue.d.ts.map +1 -1
  42. package/dist/views/PromptForm.vue.js +2 -2
  43. package/dist/views/PromptForm.vue2.js +100 -93
  44. package/dist/views/Settings/DocSettings.vue.js +1 -1
  45. package/dist/views/Settings/DocSettings.vue2.js +10 -10
  46. package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
  47. package/dist/views/Settings/Settings.vue.js +2 -2
  48. package/dist/views/Settings/Settings.vue2.js +53 -43
  49. package/dist/views/Start.vue.d.ts.map +1 -1
  50. package/dist/views/Start.vue.js +1 -1
  51. package/dist/views/Start.vue2.js +28 -27
  52. package/package.json +8 -8
@@ -1,42 +1,43 @@
1
- import { defineComponent as d, createElementBlock as r, openBlock as s, createVNode as n, createElementVNode as t, createTextVNode as o, unref as u, Fragment as i } from "vue";
2
- import g from "../components/Logo.vue.js";
3
- import { useState as y } from "../state/state.js";
4
- import f from "./PromptForm.vue.js";
5
- const c = { class: "startContainer" }, k = { class: "disclaimerText" }, F = /* @__PURE__ */ d({
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(v, { emit: l }) {
9
- const a = l, { mode: m } = y();
10
- return (S, e) => (s(), r("div", c, [
11
- n(g, { class: "agentLogo" }),
12
- e[6] || (e[6] = t("h1", { class: "heading" }, "How can I help you today?", -1)),
13
- n(f, {
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] = (p) => a("submit")),
16
- onUploadApi: e[1] || (e[1] = (p) => a("uploadApi"))
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", k, [
19
- u(m) === "preview" ? (s(), r(i, { key: 0 }, [
20
- o(" By messaging Agent Scalar your OpenAPI Document will be Temporarily uploaded to Scalar's Servers. You must agree to our ")
21
- ], 64)) : (s(), r(i, { key: 1 }, [
22
- o(" By messaging Agent Scalar you agree to our ")
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
- e[2] || (e[2] = t("a", {
25
+ t("a", {
25
26
  class: "disclaimerLink",
26
- href: "https://scalar.com/legal/terms-and-conditions",
27
+ href: a(l).TERMS_AND_CONDITIONS,
27
28
  target: "_blank"
28
- }, "Terms ", -1)),
29
- e[3] || (e[3] = o(" and ", -1)),
30
- e[4] || (e[4] = t("a", {
29
+ }, "Terms", 8, k),
30
+ e[2] || (e[2] = o(" and ", -1)),
31
+ t("a", {
31
32
  class: "disclaimerLink",
32
- href: "https://scalar.com/legal/privacy-policy",
33
+ href: a(l).PRIVACY_POLICY,
33
34
  target: "_blank"
34
- }, " Privacy Policy", -1)),
35
- e[5] || (e[5] = o(". ", -1))
35
+ }, "Privacy Policy", 8, A),
36
+ e[3] || (e[3] = o(". ", -1))
36
37
  ])
37
38
  ]));
38
39
  }
39
40
  });
40
41
  export {
41
- F as default
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.5.18",
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.29.4",
54
- "@scalar/components": "0.19.10",
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/openapi-types": "0.5.3",
58
- "@scalar/themes": "0.14.0",
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/json-magic": "0.11.5",
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",