wecool-chat 0.8.0 → 0.10.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 (227) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.ja.md +234 -20
  3. package/README.md +419 -21
  4. package/dist/CopyIndicator-RR3hSsBA.js +51 -0
  5. package/dist/MarkdownBody-EIz0jnQy.js +14910 -0
  6. package/dist/VoiceControls-A7N4uPTo.js +146 -0
  7. package/dist/VoiceRuntime-DrYjNkZK.js +459 -0
  8. package/dist/abort-BjeyCmGn.js +6 -0
  9. package/dist/blank-line-CUDmZ-mX.js +143 -0
  10. package/dist/{browser-Cgo1GySj.js → browser-M7mS-hAN.js} +5 -5
  11. package/dist/clsx-Cf23UI1w.js +16 -0
  12. package/dist/core/client.d.ts +37 -4
  13. package/dist/core/client.d.ts.map +1 -1
  14. package/dist/core/consume-stream.d.ts.map +1 -1
  15. package/dist/core/error-reporter.d.ts +59 -0
  16. package/dist/core/error-reporter.d.ts.map +1 -0
  17. package/dist/core/global-error-capture.d.ts +10 -0
  18. package/dist/core/global-error-capture.d.ts.map +1 -0
  19. package/dist/core/i18n/messages.d.ts +139 -1
  20. package/dist/core/i18n/messages.d.ts.map +1 -1
  21. package/dist/core/sanitize-user-message.d.ts +11 -0
  22. package/dist/core/sanitize-user-message.d.ts.map +1 -0
  23. package/dist/core/stream-state.d.ts.map +1 -1
  24. package/dist/core/tool-confirmation.d.ts +35 -0
  25. package/dist/core/tool-confirmation.d.ts.map +1 -0
  26. package/dist/core/tool-runner.d.ts +8 -0
  27. package/dist/core/tool-runner.d.ts.map +1 -1
  28. package/dist/core/types.d.ts +123 -0
  29. package/dist/core/types.d.ts.map +1 -1
  30. package/dist/core/widget-origin.d.ts +33 -0
  31. package/dist/core/widget-origin.d.ts.map +1 -0
  32. package/dist/createLucideIcon-C7wGkK-Q.js +43 -0
  33. package/dist/default-sNAxTmdF.js +8 -0
  34. package/dist/index.css +2 -2
  35. package/dist/index.d.ts +3 -1
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +7548 -26290
  38. package/dist/jsx-runtime-Cyy0mp0f.js +328 -0
  39. package/dist/lib-DG_DjiCr.js +15 -0
  40. package/dist/loader.d.ts +12 -0
  41. package/dist/loader.d.ts.map +1 -0
  42. package/dist/messages-FvtWi3lI.js +247 -0
  43. package/dist/observe/__tests__/format.test.d.ts +2 -0
  44. package/dist/observe/__tests__/format.test.d.ts.map +1 -0
  45. package/dist/observe/__tests__/http.test.d.ts +2 -0
  46. package/dist/observe/__tests__/http.test.d.ts.map +1 -0
  47. package/dist/observe/__tests__/index.test.d.ts +2 -0
  48. package/dist/observe/__tests__/index.test.d.ts.map +1 -0
  49. package/dist/observe/__tests__/js-error.test.d.ts +2 -0
  50. package/dist/observe/__tests__/js-error.test.d.ts.map +1 -0
  51. package/dist/observe/__tests__/redact.test.d.ts +2 -0
  52. package/dist/observe/__tests__/redact.test.d.ts.map +1 -0
  53. package/dist/observe/__tests__/ring-buffer.test.d.ts +2 -0
  54. package/dist/observe/__tests__/ring-buffer.test.d.ts.map +1 -0
  55. package/dist/observe/format.d.ts +10 -0
  56. package/dist/observe/format.d.ts.map +1 -0
  57. package/dist/observe/index.d.ts +33 -0
  58. package/dist/observe/index.d.ts.map +1 -0
  59. package/dist/observe/observers/http.d.ts +24 -0
  60. package/dist/observe/observers/http.d.ts.map +1 -0
  61. package/dist/observe/observers/js-error.d.ts +22 -0
  62. package/dist/observe/observers/js-error.d.ts.map +1 -0
  63. package/dist/observe/redact.d.ts +27 -0
  64. package/dist/observe/redact.d.ts.map +1 -0
  65. package/dist/observe/ring-buffer.d.ts +20 -0
  66. package/dist/observe/ring-buffer.d.ts.map +1 -0
  67. package/dist/observe/types.d.ts +25 -0
  68. package/dist/observe/types.d.ts.map +1 -0
  69. package/dist/plugin/registry.d.ts.map +1 -1
  70. package/dist/plugin/types.d.ts +19 -1
  71. package/dist/plugin/types.d.ts.map +1 -1
  72. package/dist/plugins/page-reader/__tests__/get-meta.test.d.ts +2 -0
  73. package/dist/plugins/page-reader/__tests__/get-meta.test.d.ts.map +1 -0
  74. package/dist/plugins/page-reader/__tests__/index.test.d.ts +2 -0
  75. package/dist/plugins/page-reader/__tests__/index.test.d.ts.map +1 -0
  76. package/dist/plugins/page-reader/__tests__/read-content.test.d.ts +2 -0
  77. package/dist/plugins/page-reader/__tests__/read-content.test.d.ts.map +1 -0
  78. package/dist/plugins/page-reader/__tests__/scroll.test.d.ts +2 -0
  79. package/dist/plugins/page-reader/__tests__/scroll.test.d.ts.map +1 -0
  80. package/dist/plugins/page-reader/index.d.ts +18 -0
  81. package/dist/plugins/page-reader/index.d.ts.map +1 -0
  82. package/dist/plugins/page-reader/tools/get-meta.d.ts +29 -0
  83. package/dist/plugins/page-reader/tools/get-meta.d.ts.map +1 -0
  84. package/dist/plugins/page-reader/tools/read-content.d.ts +34 -0
  85. package/dist/plugins/page-reader/tools/read-content.d.ts.map +1 -0
  86. package/dist/plugins/page-reader/tools/scroll.d.ts +29 -0
  87. package/dist/plugins/page-reader/tools/scroll.d.ts.map +1 -0
  88. package/dist/plugins/page-reader.d.ts +2 -0
  89. package/dist/plugins/page-reader.js +230 -0
  90. package/dist/plugins/qrcode/tool.d.ts.map +1 -1
  91. package/dist/plugins/qrcode.js +52 -42
  92. package/dist/plugins/shared/abort.d.ts +7 -0
  93. package/dist/plugins/shared/abort.d.ts.map +1 -0
  94. package/dist/remark-gfm-Bzy1u34W.js +1962 -0
  95. package/dist/remark-parse-BnwSmQr-.js +2486 -0
  96. package/dist/stable-prefix-BHsGj4tL.js +21 -0
  97. package/dist/ui/builtin-tools/get-current-page-info.d.ts.map +1 -1
  98. package/dist/ui/builtin-tools/index.d.ts +1 -1
  99. package/dist/ui/builtin-tools/index.d.ts.map +1 -1
  100. package/dist/ui/builtin-tools/merge-builtin-tools.d.ts +9 -0
  101. package/dist/ui/builtin-tools/merge-builtin-tools.d.ts.map +1 -1
  102. package/dist/ui/commands/builtin-commands.d.ts +46 -0
  103. package/dist/ui/commands/builtin-commands.d.ts.map +1 -0
  104. package/dist/ui/components/ChatErrorBoundary.d.ts +30 -0
  105. package/dist/ui/components/ChatErrorBoundary.d.ts.map +1 -0
  106. package/dist/ui/components/ChatFooter.d.ts +32 -2
  107. package/dist/ui/components/ChatFooter.d.ts.map +1 -1
  108. package/dist/ui/components/ChatHeader.d.ts +13 -2
  109. package/dist/ui/components/ChatHeader.d.ts.map +1 -1
  110. package/dist/ui/components/ChatHeaderMenu.d.ts +28 -2
  111. package/dist/ui/components/ChatHeaderMenu.d.ts.map +1 -1
  112. package/dist/ui/components/ChatPanel.d.ts +38 -4
  113. package/dist/ui/components/ChatPanel.d.ts.map +1 -1
  114. package/dist/ui/components/ChatWidget.d.ts +1 -1
  115. package/dist/ui/components/ChatWidget.d.ts.map +1 -1
  116. package/dist/ui/components/CommandConfirmationCard.d.ts +28 -0
  117. package/dist/ui/components/CommandConfirmationCard.d.ts.map +1 -0
  118. package/dist/ui/components/CommandOverlays.d.ts +40 -0
  119. package/dist/ui/components/CommandOverlays.d.ts.map +1 -0
  120. package/dist/ui/components/CommandPalette.d.ts +25 -0
  121. package/dist/ui/components/CommandPalette.d.ts.map +1 -0
  122. package/dist/ui/components/FooterActions.d.ts +18 -0
  123. package/dist/ui/components/FooterActions.d.ts.map +1 -0
  124. package/dist/ui/components/HelpDialogContent.d.ts +7 -0
  125. package/dist/ui/components/HelpDialogContent.d.ts.map +1 -0
  126. package/dist/ui/components/MessageList.d.ts +12 -1
  127. package/dist/ui/components/MessageList.d.ts.map +1 -1
  128. package/dist/ui/components/MessageRow.d.ts +7 -1
  129. package/dist/ui/components/MessageRow.d.ts.map +1 -1
  130. package/dist/ui/components/MessageRowActions.d.ts +9 -3
  131. package/dist/ui/components/MessageRowActions.d.ts.map +1 -1
  132. package/dist/ui/components/MicButton.d.ts +11 -0
  133. package/dist/ui/components/MicButton.d.ts.map +1 -0
  134. package/dist/ui/components/ResizeHandles.d.ts +15 -0
  135. package/dist/ui/components/ResizeHandles.d.ts.map +1 -0
  136. package/dist/ui/components/ToolConfirmationCard.d.ts +22 -0
  137. package/dist/ui/components/ToolConfirmationCard.d.ts.map +1 -0
  138. package/dist/ui/components/ToolConfirmationRecord.d.ts +16 -0
  139. package/dist/ui/components/ToolConfirmationRecord.d.ts.map +1 -0
  140. package/dist/ui/components/ToolsDialogContent.d.ts +20 -0
  141. package/dist/ui/components/ToolsDialogContent.d.ts.map +1 -0
  142. package/dist/ui/components/VoiceControls.d.ts +22 -0
  143. package/dist/ui/components/VoiceControls.d.ts.map +1 -0
  144. package/dist/ui/components/VoiceLoopStatusBar.d.ts +17 -0
  145. package/dist/ui/components/VoiceLoopStatusBar.d.ts.map +1 -0
  146. package/dist/ui/components/VoiceLoopToggle.d.ts +15 -0
  147. package/dist/ui/components/VoiceLoopToggle.d.ts.map +1 -0
  148. package/dist/ui/components/VoiceRuntime.d.ts +16 -0
  149. package/dist/ui/components/VoiceRuntime.d.ts.map +1 -0
  150. package/dist/ui/components/WidgetDialog.d.ts +22 -0
  151. package/dist/ui/components/WidgetDialog.d.ts.map +1 -0
  152. package/dist/ui/components/lazy-voice.d.ts +19 -0
  153. package/dist/ui/components/lazy-voice.d.ts.map +1 -0
  154. package/dist/ui/components/markdown/MarkdownBody.d.ts +28 -0
  155. package/dist/ui/components/markdown/MarkdownBody.d.ts.map +1 -0
  156. package/dist/ui/components/markdown/MarkdownMessage.d.ts +12 -13
  157. package/dist/ui/components/markdown/MarkdownMessage.d.ts.map +1 -1
  158. package/dist/ui/hooks/conversationPersistence.d.ts +21 -0
  159. package/dist/ui/hooks/conversationPersistence.d.ts.map +1 -0
  160. package/dist/ui/hooks/resize-geometry.d.ts +42 -0
  161. package/dist/ui/hooks/resize-geometry.d.ts.map +1 -0
  162. package/dist/ui/hooks/use-command-execution.d.ts +60 -0
  163. package/dist/ui/hooks/use-command-execution.d.ts.map +1 -0
  164. package/dist/ui/hooks/use-command-palette.d.ts +45 -0
  165. package/dist/ui/hooks/use-command-palette.d.ts.map +1 -0
  166. package/dist/ui/hooks/use-fullscreen.d.ts +21 -0
  167. package/dist/ui/hooks/use-fullscreen.d.ts.map +1 -0
  168. package/dist/ui/hooks/use-global-error-capture.d.ts +16 -0
  169. package/dist/ui/hooks/use-global-error-capture.d.ts.map +1 -0
  170. package/dist/ui/hooks/use-locale-preference.d.ts +14 -0
  171. package/dist/ui/hooks/use-locale-preference.d.ts.map +1 -0
  172. package/dist/ui/hooks/use-menu-keyboard.d.ts +7 -1
  173. package/dist/ui/hooks/use-menu-keyboard.d.ts.map +1 -1
  174. package/dist/ui/hooks/use-message-history.d.ts +14 -0
  175. package/dist/ui/hooks/use-message-history.d.ts.map +1 -1
  176. package/dist/ui/hooks/use-mic-button.d.ts +29 -0
  177. package/dist/ui/hooks/use-mic-button.d.ts.map +1 -0
  178. package/dist/ui/hooks/use-send-message.d.ts +6 -0
  179. package/dist/ui/hooks/use-send-message.d.ts.map +1 -1
  180. package/dist/ui/hooks/use-speak-message.d.ts +26 -0
  181. package/dist/ui/hooks/use-speak-message.d.ts.map +1 -0
  182. package/dist/ui/hooks/use-tool-confirmation.d.ts +22 -0
  183. package/dist/ui/hooks/use-tool-confirmation.d.ts.map +1 -0
  184. package/dist/ui/hooks/use-tool-runner.d.ts +17 -2
  185. package/dist/ui/hooks/use-tool-runner.d.ts.map +1 -1
  186. package/dist/ui/hooks/use-visitor-id.d.ts +22 -0
  187. package/dist/ui/hooks/use-visitor-id.d.ts.map +1 -0
  188. package/dist/ui/hooks/use-voice-input.d.ts +38 -0
  189. package/dist/ui/hooks/use-voice-input.d.ts.map +1 -0
  190. package/dist/ui/hooks/use-voice-loop-speech.d.ts +38 -0
  191. package/dist/ui/hooks/use-voice-loop-speech.d.ts.map +1 -0
  192. package/dist/ui/hooks/use-voice-loop.d.ts +12 -0
  193. package/dist/ui/hooks/use-voice-loop.d.ts.map +1 -0
  194. package/dist/ui/hooks/use-voice-runtime-snapshot.d.ts +19 -0
  195. package/dist/ui/hooks/use-voice-runtime-snapshot.d.ts.map +1 -0
  196. package/dist/ui/hooks/use-voice-runtime.d.ts +29 -0
  197. package/dist/ui/hooks/use-voice-runtime.d.ts.map +1 -0
  198. package/dist/ui/hooks/useChatStream.d.ts +19 -0
  199. package/dist/ui/hooks/useChatStream.d.ts.map +1 -1
  200. package/dist/ui/hooks/useConversationList.d.ts +12 -1
  201. package/dist/ui/hooks/useConversationList.d.ts.map +1 -1
  202. package/dist/ui/hooks/useDraggablePanel.d.ts +2 -0
  203. package/dist/ui/hooks/useDraggablePanel.d.ts.map +1 -1
  204. package/dist/ui/hooks/useResizablePanel.d.ts +48 -0
  205. package/dist/ui/hooks/useResizablePanel.d.ts.map +1 -0
  206. package/dist/ui/utils/speech-text.d.ts +29 -0
  207. package/dist/ui/utils/speech-text.d.ts.map +1 -0
  208. package/dist/ui/utils/voice-locale.d.ts +3 -0
  209. package/dist/ui/utils/voice-locale.d.ts.map +1 -0
  210. package/dist/ui/utils/voice-loop-cue.d.ts +23 -0
  211. package/dist/ui/utils/voice-loop-cue.d.ts.map +1 -0
  212. package/dist/ui/utils/voice-loop-status.d.ts +17 -0
  213. package/dist/ui/utils/voice-loop-status.d.ts.map +1 -0
  214. package/dist/ui/utils/voice-loop-types.d.ts +40 -0
  215. package/dist/ui/utils/voice-loop-types.d.ts.map +1 -0
  216. package/dist/ui/utils/voice-runtime.d.ts +38 -0
  217. package/dist/ui/utils/voice-runtime.d.ts.map +1 -0
  218. package/dist/ui/utils/voice-support.d.ts +9 -0
  219. package/dist/ui/utils/voice-support.d.ts.map +1 -0
  220. package/dist/unified-DctkAd9P.js +518 -0
  221. package/dist/use-voice-input-LtJJz-zQ.js +102 -0
  222. package/dist/version.d.ts +17 -0
  223. package/dist/version.d.ts.map +1 -0
  224. package/dist/voice-runtime-F5NxN_0m.js +11 -0
  225. package/dist/voice-support-BeOiOzcn.js +9 -0
  226. package/package.json +41 -23
  227. package/dist/messages-B7Kpa6yx.js +0 -117
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wecool-chat",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "Drop-in LLM chat widget that executes your JavaScript functions via natural language",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -22,6 +22,10 @@
22
22
  "types": "./dist/plugins/qrcode.d.ts",
23
23
  "import": "./dist/plugins/qrcode.js"
24
24
  },
25
+ "./plugins/page-reader": {
26
+ "types": "./dist/plugins/page-reader.d.ts",
27
+ "import": "./dist/plugins/page-reader.js"
28
+ },
25
29
  "./styles.css": "./dist/index.css"
26
30
  },
27
31
  "typesVersions": {
@@ -31,12 +35,16 @@
31
35
  ],
32
36
  "plugins/qrcode": [
33
37
  "./dist/plugins/qrcode.d.ts"
38
+ ],
39
+ "plugins/page-reader": [
40
+ "./dist/plugins/page-reader.d.ts"
34
41
  ]
35
42
  }
36
43
  },
37
44
  "files": [
38
45
  "dist",
39
46
  "!dist/__tests__",
47
+ "!dist/widget.js",
40
48
  "docs/screenshots",
41
49
  "README.md",
42
50
  "README.ja.md",
@@ -47,38 +55,44 @@
47
55
  },
48
56
  "dependencies": {
49
57
  "clsx": "^2.1.1",
50
- "highlight.js": "^11.11.1",
51
- "lucide-react": "^0.511.0",
58
+ "highlight.js": "^11.12.0",
59
+ "lucide-react": "^1.25.0",
52
60
  "qrcode": "^1.5.4",
53
- "react": "^19.2.7",
54
- "react-dom": "^19.2.7",
61
+ "react": "^19.2.8",
62
+ "react-dom": "^19.2.8",
55
63
  "react-markdown": "^10.1.0",
56
64
  "rehype-highlight": "^7.0.2",
57
- "remark-gfm": "^4.0.1"
65
+ "remark-gfm": "^4.0.1",
66
+ "remark-parse": "^11.0.0",
67
+ "unified": "^11.0.5"
58
68
  },
59
69
  "devDependencies": {
60
70
  "@eslint/js": "^10.0.1",
71
+ "@size-limit/file": "^12.1.0",
72
+ "@tailwindcss/vite": "^4.3.3",
73
+ "@testing-library/react": "^16.3.3",
74
+ "@testing-library/user-event": "^14.6.7",
61
75
  "@types/qrcode": "^1.5.5",
62
- "@tailwindcss/vite": "^4.3.2",
63
- "@testing-library/react": "^16.3.2",
64
- "@testing-library/user-event": "^14.6.1",
65
- "@types/react": "^19.2.17",
66
- "@types/react-dom": "^19.2.3",
67
- "@typescript-eslint/eslint-plugin": "^8.62.1",
68
- "@typescript-eslint/parser": "^8.62.1",
69
- "@vitejs/plugin-react": "^6.0.3",
70
- "axe-core": "^4.12.1",
71
- "eslint": "^10.4.1",
76
+ "@types/react": "^19.2.18",
77
+ "@types/react-dom": "^19.2.7",
78
+ "@typescript-eslint/eslint-plugin": "^8.69.0",
79
+ "@typescript-eslint/parser": "^8.69.0",
80
+ "@vitejs/plugin-react": "^6.1.1",
81
+ "@vitest/coverage-v8": "^4.1.11",
82
+ "axe-core": "^4.13.0",
83
+ "eslint": "^10.9.1",
72
84
  "eslint-plugin-jsx-a11y": "^6.10.2",
73
- "globals": "^17.7.0",
85
+ "globals": "^17.12.0",
74
86
  "jsdom": "^29.1.1",
75
- "react": "^19.2.7",
76
- "react-dom": "^19.2.7",
77
- "tailwindcss": "^4.3.2",
87
+ "react": "^19.2.8",
88
+ "react-dom": "^19.2.8",
89
+ "rollup-plugin-visualizer": "^7.1.1",
90
+ "size-limit": "^12.1.0",
91
+ "tailwindcss": "^4.3.3",
78
92
  "typescript": "^5.9.3",
79
- "vite": "^8.1.2",
80
- "vite-plugin-dts": "^5.0.3",
81
- "vitest": "^4.1.9"
93
+ "vite": "^8.2.2",
94
+ "vite-plugin-dts": "^5.1.0",
95
+ "vitest": "^4.1.11"
82
96
  },
83
97
  "keywords": [
84
98
  "llm",
@@ -101,8 +115,12 @@
101
115
  "author": "wecool-dev",
102
116
  "scripts": {
103
117
  "build": "tsc && vite build",
118
+ "build:loader": "vite build --config vite.config.loader.ts",
119
+ "size": "size-limit",
120
+ "analyze": "ANALYZE=true vite build",
104
121
  "lint": "eslint src",
105
122
  "test": "vitest run",
123
+ "test:coverage": "vitest run --coverage",
106
124
  "test:watch": "vitest",
107
125
  "check:styles": "node ../../scripts/ci-check-styles.mjs"
108
126
  }
@@ -1,117 +0,0 @@
1
- var u = Object.create, r = Object.defineProperty, d = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyNames, m = Object.getPrototypeOf, y = Object.prototype.hasOwnProperty, A = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), v = (e, t) => {
2
- let a = {};
3
- for (var n in e)
4
- r(a, n, {
5
- get: e[n],
6
- enumerable: !0
7
- });
8
- return t || r(a, Symbol.toStringTag, { value: "Module" }), a;
9
- }, b = (e, t, a, n) => {
10
- if (t && typeof t == "object" || typeof t == "function")
11
- for (var i = h(t), s = 0, g = i.length, o; s < g; s++)
12
- o = i[s], !y.call(e, o) && o !== a && r(e, o, {
13
- get: ((p) => t[p]).bind(null, o),
14
- enumerable: !(n = d(t, o)) || n.enumerable
15
- });
16
- return e;
17
- }, L = (e, t, a) => (a = e != null ? u(m(e)) : {}, b(t || !e || !e.__esModule ? r(a, "default", {
18
- value: e,
19
- enumerable: !0
20
- }) : a, e)), c = {
21
- inputPlaceholder: "メッセージを入力...",
22
- emptyState: "メッセージを入力してください",
23
- errorGeneric: "エラーが発生しました。しばらくしてからお試しください。",
24
- stopButton: "停止",
25
- sendButton: "送信",
26
- clearButton: "クリア",
27
- closeButton: "閉じる",
28
- closeChat: "チャットを閉じる",
29
- openChat: "チャットを開く",
30
- responseStoppedAnnouncement: "応答を停止しました",
31
- messageActionsToggle: "メッセージアクションを表示",
32
- regenerateLabel: "再生成",
33
- regenerateAria: "メッセージを再生成",
34
- copyLabel: "コピー",
35
- copiedLabel: "コピーしました",
36
- copyMessageAria: "メッセージをコピー",
37
- copyMessageAnnouncement: "メッセージをコピーしました",
38
- copyCodeAria: "コードをコピー",
39
- copyCodeAnnouncement: "コードをコピーしました",
40
- editLabel: "編集",
41
- editMessageAria: "メッセージを編集",
42
- cancelEditLabel: "キャンセル",
43
- cancelEditAria: "編集をキャンセル",
44
- saveEditAria: "編集を保存して送信",
45
- chatDialogTitle: "wecool チャット",
46
- chatDialogDescription: "AI チャットアシスタント",
47
- messageLogLabel: "チャット履歴",
48
- loadingAnnouncement: "AI が応答を生成中",
49
- inputLabel: "メッセージを入力",
50
- downloadAttachment: "ダウンロード",
51
- dragHandleLabel: "ドラッグまたは矢印キーでウィンドウを移動",
52
- resetPositionButton: "位置をリセット",
53
- settingsMenuToggle: "設定メニューを開く",
54
- newConversationOption: "+ 新しい会話",
55
- conversationSelectLabel: "会話を選択",
56
- stopFallbackUserMessage: "処理を中断しました。",
57
- maxTurnsReached: "最大試行回数に達しました。条件を変えてもう一度お試しください。",
58
- errorMessageTooLong: "メッセージが長すぎます。10,000 文字以内に収めてください。",
59
- errorInvalidRequest: "リクエストの形式が正しくありません。",
60
- errorRateLimit: "アクセスが集中しています。1 分ほど待ってからもう一度お試しください。",
61
- errorDailyLimit: "本日の利用上限に達しました。明日以降にもう一度お試しください。",
62
- errorMonthlyLimit: "今月の利用上限に達しました。プランの利用状況をご確認ください。",
63
- qrcodeStopTextTooLong: "テキストが長すぎます。{max} 文字以内に収めてもう一度お試しください。"
64
- }, l = {
65
- ja: c,
66
- en: {
67
- inputPlaceholder: "Type a message...",
68
- emptyState: "Type a message to get started",
69
- errorGeneric: "An error occurred. Please try again later.",
70
- stopButton: "Stop",
71
- sendButton: "Send",
72
- clearButton: "Clear",
73
- closeButton: "Close",
74
- closeChat: "Close chat",
75
- openChat: "Open chat",
76
- responseStoppedAnnouncement: "Response stopped",
77
- messageActionsToggle: "Show message actions",
78
- regenerateLabel: "Regenerate",
79
- regenerateAria: "Regenerate message",
80
- copyLabel: "Copy",
81
- copiedLabel: "Copied",
82
- copyMessageAria: "Copy message",
83
- copyMessageAnnouncement: "Message copied",
84
- copyCodeAria: "Copy code",
85
- copyCodeAnnouncement: "Code copied",
86
- editLabel: "Edit",
87
- editMessageAria: "Edit message",
88
- cancelEditLabel: "Cancel",
89
- cancelEditAria: "Cancel editing",
90
- saveEditAria: "Save edit",
91
- chatDialogTitle: "wecool chat",
92
- chatDialogDescription: "AI chat assistant",
93
- messageLogLabel: "Chat history",
94
- loadingAnnouncement: "AI is generating a response",
95
- inputLabel: "Type a message",
96
- downloadAttachment: "Download",
97
- dragHandleLabel: "Drag or use arrow keys to move the window",
98
- resetPositionButton: "Reset position",
99
- settingsMenuToggle: "Open settings menu",
100
- newConversationOption: "+ New conversation",
101
- conversationSelectLabel: "Select conversation",
102
- stopFallbackUserMessage: "The action was stopped.",
103
- maxTurnsReached: "Reached the maximum tool retry limit. Please try again with different input.",
104
- errorMessageTooLong: "Message is too long. Please keep it within 10,000 characters.",
105
- errorInvalidRequest: "The request format is invalid.",
106
- errorRateLimit: "Too many requests right now. Please wait about a minute and try again.",
107
- errorDailyLimit: "The daily usage limit has been reached. Please try again tomorrow.",
108
- errorMonthlyLimit: "The monthly usage limit has been reached. Please check your plan usage.",
109
- qrcodeStopTextTooLong: "The text is too long. Please shorten it to within {max} characters and try again."
110
- }
111
- }, w = (e) => e && l[e] ? l[e] : c;
112
- export {
113
- L as i,
114
- A as n,
115
- v as r,
116
- w as t
117
- };