wecool-chat 0.9.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 (111) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.ja.md +78 -20
  3. package/README.md +145 -23
  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/blank-line-CUDmZ-mX.js +143 -0
  9. package/dist/{browser-D1aZQhQL.js → browser-M7mS-hAN.js} +5 -5
  10. package/dist/clsx-Cf23UI1w.js +16 -0
  11. package/dist/core/client.d.ts +11 -3
  12. package/dist/core/client.d.ts.map +1 -1
  13. package/dist/core/error-reporter.d.ts +1 -1
  14. package/dist/core/error-reporter.d.ts.map +1 -1
  15. package/dist/core/i18n/messages.d.ts +77 -1
  16. package/dist/core/i18n/messages.d.ts.map +1 -1
  17. package/dist/core/tool-runner.d.ts.map +1 -1
  18. package/dist/core/types.d.ts +23 -1
  19. package/dist/core/types.d.ts.map +1 -1
  20. package/dist/createLucideIcon-C7wGkK-Q.js +43 -0
  21. package/dist/default-sNAxTmdF.js +8 -0
  22. package/dist/index.css +2 -2
  23. package/dist/index.js +5181 -4871
  24. package/dist/jsx-runtime-Cyy0mp0f.js +328 -0
  25. package/dist/lib-DG_DjiCr.js +15 -0
  26. package/dist/{messages-CveZLPSJ.js → messages-FvtWi3lI.js} +99 -27
  27. package/dist/plugins/qrcode.js +2 -2
  28. package/dist/remark-gfm-Bzy1u34W.js +1962 -0
  29. package/dist/remark-parse-BnwSmQr-.js +2486 -0
  30. package/dist/stable-prefix-BHsGj4tL.js +21 -0
  31. package/dist/ui/components/ChatFooter.d.ts +16 -2
  32. package/dist/ui/components/ChatFooter.d.ts.map +1 -1
  33. package/dist/ui/components/ChatHeader.d.ts +9 -2
  34. package/dist/ui/components/ChatHeader.d.ts.map +1 -1
  35. package/dist/ui/components/ChatHeaderMenu.d.ts +23 -2
  36. package/dist/ui/components/ChatHeaderMenu.d.ts.map +1 -1
  37. package/dist/ui/components/ChatPanel.d.ts +13 -3
  38. package/dist/ui/components/ChatPanel.d.ts.map +1 -1
  39. package/dist/ui/components/ChatWidget.d.ts.map +1 -1
  40. package/dist/ui/components/CommandConfirmationCard.d.ts +7 -1
  41. package/dist/ui/components/CommandConfirmationCard.d.ts.map +1 -1
  42. package/dist/ui/components/CommandOverlays.d.ts +13 -1
  43. package/dist/ui/components/CommandOverlays.d.ts.map +1 -1
  44. package/dist/ui/components/FooterActions.d.ts +18 -0
  45. package/dist/ui/components/FooterActions.d.ts.map +1 -0
  46. package/dist/ui/components/MessageList.d.ts +7 -1
  47. package/dist/ui/components/MessageList.d.ts.map +1 -1
  48. package/dist/ui/components/MessageRow.d.ts +7 -1
  49. package/dist/ui/components/MessageRow.d.ts.map +1 -1
  50. package/dist/ui/components/MessageRowActions.d.ts +9 -3
  51. package/dist/ui/components/MessageRowActions.d.ts.map +1 -1
  52. package/dist/ui/components/MicButton.d.ts +11 -0
  53. package/dist/ui/components/MicButton.d.ts.map +1 -0
  54. package/dist/ui/components/VoiceControls.d.ts +22 -0
  55. package/dist/ui/components/VoiceControls.d.ts.map +1 -0
  56. package/dist/ui/components/VoiceLoopStatusBar.d.ts +17 -0
  57. package/dist/ui/components/VoiceLoopStatusBar.d.ts.map +1 -0
  58. package/dist/ui/components/VoiceLoopToggle.d.ts +15 -0
  59. package/dist/ui/components/VoiceLoopToggle.d.ts.map +1 -0
  60. package/dist/ui/components/VoiceRuntime.d.ts +16 -0
  61. package/dist/ui/components/VoiceRuntime.d.ts.map +1 -0
  62. package/dist/ui/components/lazy-voice.d.ts +19 -0
  63. package/dist/ui/components/lazy-voice.d.ts.map +1 -0
  64. package/dist/ui/hooks/use-command-execution.d.ts +23 -1
  65. package/dist/ui/hooks/use-command-execution.d.ts.map +1 -1
  66. package/dist/ui/hooks/use-message-history.d.ts +14 -0
  67. package/dist/ui/hooks/use-message-history.d.ts.map +1 -1
  68. package/dist/ui/hooks/use-mic-button.d.ts +29 -0
  69. package/dist/ui/hooks/use-mic-button.d.ts.map +1 -0
  70. package/dist/ui/hooks/use-send-message.d.ts.map +1 -1
  71. package/dist/ui/hooks/use-speak-message.d.ts +26 -0
  72. package/dist/ui/hooks/use-speak-message.d.ts.map +1 -0
  73. package/dist/ui/hooks/use-visitor-id.d.ts +15 -3
  74. package/dist/ui/hooks/use-visitor-id.d.ts.map +1 -1
  75. package/dist/ui/hooks/use-voice-input.d.ts +38 -0
  76. package/dist/ui/hooks/use-voice-input.d.ts.map +1 -0
  77. package/dist/ui/hooks/use-voice-loop-speech.d.ts +38 -0
  78. package/dist/ui/hooks/use-voice-loop-speech.d.ts.map +1 -0
  79. package/dist/ui/hooks/use-voice-loop.d.ts +12 -0
  80. package/dist/ui/hooks/use-voice-loop.d.ts.map +1 -0
  81. package/dist/ui/hooks/use-voice-runtime-snapshot.d.ts +19 -0
  82. package/dist/ui/hooks/use-voice-runtime-snapshot.d.ts.map +1 -0
  83. package/dist/ui/hooks/use-voice-runtime.d.ts +29 -0
  84. package/dist/ui/hooks/use-voice-runtime.d.ts.map +1 -0
  85. package/dist/ui/hooks/useChatStream.d.ts +5 -0
  86. package/dist/ui/hooks/useChatStream.d.ts.map +1 -1
  87. package/dist/ui/hooks/useConversationList.d.ts +7 -0
  88. package/dist/ui/hooks/useConversationList.d.ts.map +1 -1
  89. package/dist/ui/utils/speech-text.d.ts +29 -0
  90. package/dist/ui/utils/speech-text.d.ts.map +1 -0
  91. package/dist/ui/utils/voice-locale.d.ts +3 -0
  92. package/dist/ui/utils/voice-locale.d.ts.map +1 -0
  93. package/dist/ui/utils/voice-loop-cue.d.ts +23 -0
  94. package/dist/ui/utils/voice-loop-cue.d.ts.map +1 -0
  95. package/dist/ui/utils/voice-loop-status.d.ts +17 -0
  96. package/dist/ui/utils/voice-loop-status.d.ts.map +1 -0
  97. package/dist/ui/utils/voice-loop-types.d.ts +40 -0
  98. package/dist/ui/utils/voice-loop-types.d.ts.map +1 -0
  99. package/dist/ui/utils/voice-runtime.d.ts +38 -0
  100. package/dist/ui/utils/voice-runtime.d.ts.map +1 -0
  101. package/dist/ui/utils/voice-support.d.ts +9 -0
  102. package/dist/ui/utils/voice-support.d.ts.map +1 -0
  103. package/dist/unified-DctkAd9P.js +518 -0
  104. package/dist/use-voice-input-LtJJz-zQ.js +102 -0
  105. package/dist/version.d.ts +17 -0
  106. package/dist/version.d.ts.map +1 -0
  107. package/dist/voice-runtime-F5NxN_0m.js +11 -0
  108. package/dist/voice-support-BeOiOzcn.js +9 -0
  109. package/package.json +27 -25
  110. package/dist/CopyIndicator-D50ixqNB.js +0 -407
  111. package/dist/MarkdownBody-eopKrDot.js +0 -19983
@@ -0,0 +1,328 @@
1
+ import { a as V, r as C, t as F } from "./messages-FvtWi3lI.js";
2
+ var x = /* @__PURE__ */ C(((n) => {
3
+ var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), A = /* @__PURE__ */ Symbol.for("react.portal"), R = /* @__PURE__ */ Symbol.for("react.fragment"), S = /* @__PURE__ */ Symbol.for("react.strict_mode"), a = /* @__PURE__ */ Symbol.for("react.profiler"), v = /* @__PURE__ */ Symbol.for("react.consumer"), y = /* @__PURE__ */ Symbol.for("react.context"), T = /* @__PURE__ */ Symbol.for("react.forward_ref"), b = /* @__PURE__ */ Symbol.for("react.suspense"), z = /* @__PURE__ */ Symbol.for("react.memo"), H = /* @__PURE__ */ Symbol.for("react.lazy"), G = /* @__PURE__ */ Symbol.for("react.activity"), O = Symbol.iterator;
4
+ function B(t) {
5
+ return t === null || typeof t != "object" ? null : (t = O && t[O] || t["@@iterator"], typeof t == "function" ? t : null);
6
+ }
7
+ var M = {
8
+ isMounted: function() {
9
+ return !1;
10
+ },
11
+ enqueueForceUpdate: function() {
12
+ },
13
+ enqueueReplaceState: function() {
14
+ },
15
+ enqueueSetState: function() {
16
+ }
17
+ }, $ = Object.assign, Y = {};
18
+ function E(t, e, u) {
19
+ this.props = t, this.context = e, this.refs = Y, this.updater = u || M;
20
+ }
21
+ E.prototype.isReactComponent = {}, E.prototype.setState = function(t, e) {
22
+ if (typeof t != "object" && typeof t != "function" && t != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
23
+ this.updater.enqueueSetState(this, t, e, "setState");
24
+ }, E.prototype.forceUpdate = function(t) {
25
+ this.updater.enqueueForceUpdate(this, t, "forceUpdate");
26
+ };
27
+ function N() {
28
+ }
29
+ N.prototype = E.prototype;
30
+ function d(t, e, u) {
31
+ this.props = t, this.context = e, this.refs = Y, this.updater = u || M;
32
+ }
33
+ var P = d.prototype = new N();
34
+ P.constructor = d, $(P, E.prototype), P.isPureReactComponent = !0;
35
+ var k = Array.isArray;
36
+ function w() {
37
+ }
38
+ var i = {
39
+ H: null,
40
+ A: null,
41
+ T: null,
42
+ S: null
43
+ }, I = Object.prototype.hasOwnProperty;
44
+ function j(t, e, u) {
45
+ var r = u.ref;
46
+ return {
47
+ $$typeof: l,
48
+ type: t,
49
+ key: e,
50
+ ref: r !== void 0 ? r : null,
51
+ props: u
52
+ };
53
+ }
54
+ function W(t, e) {
55
+ return j(t.type, e, t.props);
56
+ }
57
+ function g(t) {
58
+ return typeof t == "object" && t !== null && t.$$typeof === l;
59
+ }
60
+ function J(t) {
61
+ var e = {
62
+ "=": "=0",
63
+ ":": "=2"
64
+ };
65
+ return "$" + t.replace(/[=:]/g, function(u) {
66
+ return e[u];
67
+ });
68
+ }
69
+ var L = /\/+/g;
70
+ function h(t, e) {
71
+ return typeof t == "object" && t !== null && t.key != null ? J("" + t.key) : e.toString(36);
72
+ }
73
+ function Q(t) {
74
+ switch (t.status) {
75
+ case "fulfilled":
76
+ return t.value;
77
+ case "rejected":
78
+ throw t.reason;
79
+ default:
80
+ switch (typeof t.status == "string" ? t.then(w, w) : (t.status = "pending", t.then(function(e) {
81
+ t.status === "pending" && (t.status = "fulfilled", t.value = e);
82
+ }, function(e) {
83
+ t.status === "pending" && (t.status = "rejected", t.reason = e);
84
+ })), t.status) {
85
+ case "fulfilled":
86
+ return t.value;
87
+ case "rejected":
88
+ throw t.reason;
89
+ }
90
+ }
91
+ throw t;
92
+ }
93
+ function p(t, e, u, r, o) {
94
+ var s = typeof t;
95
+ (s === "undefined" || s === "boolean") && (t = null);
96
+ var f = !1;
97
+ if (t === null) f = !0;
98
+ else switch (s) {
99
+ case "bigint":
100
+ case "string":
101
+ case "number":
102
+ f = !0;
103
+ break;
104
+ case "object":
105
+ switch (t.$$typeof) {
106
+ case l:
107
+ case A:
108
+ f = !0;
109
+ break;
110
+ case H:
111
+ return f = t._init, p(f(t._payload), e, u, r, o);
112
+ }
113
+ }
114
+ if (f) return o = o(t), f = r === "" ? "." + h(t, 0) : r, k(o) ? (u = "", f != null && (u = f.replace(L, "$&/") + "/"), p(o, e, u, "", function(K) {
115
+ return K;
116
+ })) : o != null && (g(o) && (o = W(o, u + (o.key == null || t && t.key === o.key ? "" : ("" + o.key).replace(L, "$&/") + "/") + f)), e.push(o)), 1;
117
+ f = 0;
118
+ var _ = r === "" ? "." : r + ":";
119
+ if (k(t)) for (var c = 0; c < t.length; c++) r = t[c], s = _ + h(r, c), f += p(r, e, u, s, o);
120
+ else if (c = B(t), typeof c == "function") for (t = c.call(t), c = 0; !(r = t.next()).done; ) r = r.value, s = _ + h(r, c++), f += p(r, e, u, s, o);
121
+ else if (s === "object") {
122
+ if (typeof t.then == "function") return p(Q(t), e, u, r, o);
123
+ throw e = String(t), Error("Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead.");
124
+ }
125
+ return f;
126
+ }
127
+ function m(t, e, u) {
128
+ if (t == null) return t;
129
+ var r = [], o = 0;
130
+ return p(t, r, "", "", function(s) {
131
+ return e.call(u, s, o++);
132
+ }), r;
133
+ }
134
+ function X(t) {
135
+ if (t._status === -1) {
136
+ var e = t._result;
137
+ e = e(), e.then(function(u) {
138
+ (t._status === 0 || t._status === -1) && (t._status = 1, t._result = u);
139
+ }, function(u) {
140
+ (t._status === 0 || t._status === -1) && (t._status = 2, t._result = u);
141
+ }), t._status === -1 && (t._status = 0, t._result = e);
142
+ }
143
+ if (t._status === 1) return t._result.default;
144
+ throw t._result;
145
+ }
146
+ var U = typeof reportError == "function" ? reportError : function(t) {
147
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
148
+ var e = new window.ErrorEvent("error", {
149
+ bubbles: !0,
150
+ cancelable: !0,
151
+ message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
152
+ error: t
153
+ });
154
+ if (!window.dispatchEvent(e)) return;
155
+ } else if (typeof process == "object" && typeof process.emit == "function") {
156
+ process.emit("uncaughtException", t);
157
+ return;
158
+ }
159
+ console.error(t);
160
+ }, Z = {
161
+ map: m,
162
+ forEach: function(t, e, u) {
163
+ m(t, function() {
164
+ e.apply(this, arguments);
165
+ }, u);
166
+ },
167
+ count: function(t) {
168
+ var e = 0;
169
+ return m(t, function() {
170
+ e++;
171
+ }), e;
172
+ },
173
+ toArray: function(t) {
174
+ return m(t, function(e) {
175
+ return e;
176
+ }) || [];
177
+ },
178
+ only: function(t) {
179
+ if (!g(t)) throw Error("React.Children.only expected to receive a single React element child.");
180
+ return t;
181
+ }
182
+ };
183
+ n.Activity = G, n.Children = Z, n.Component = E, n.Fragment = R, n.Profiler = a, n.PureComponent = d, n.StrictMode = S, n.Suspense = b, n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, n.__COMPILER_RUNTIME = {
184
+ __proto__: null,
185
+ c: function(t) {
186
+ return i.H.useMemoCache(t);
187
+ }
188
+ }, n.cache = function(t) {
189
+ return function() {
190
+ return t.apply(null, arguments);
191
+ };
192
+ }, n.cacheSignal = function() {
193
+ return null;
194
+ }, n.cloneElement = function(t, e, u) {
195
+ if (t == null) throw Error("The argument must be a React element, but you passed " + t + ".");
196
+ var r = $({}, t.props), o = t.key;
197
+ if (e != null) for (s in e.key !== void 0 && (o = "" + e.key), e) !I.call(e, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && e.ref === void 0 || (r[s] = e[s]);
198
+ var s = arguments.length - 2;
199
+ if (s === 1) r.children = u;
200
+ else if (1 < s) {
201
+ for (var f = Array(s), _ = 0; _ < s; _++) f[_] = arguments[_ + 2];
202
+ r.children = f;
203
+ }
204
+ return j(t.type, o, r);
205
+ }, n.createContext = function(t) {
206
+ return t = {
207
+ $$typeof: y,
208
+ _currentValue: t,
209
+ _currentValue2: t,
210
+ _threadCount: 0,
211
+ Provider: null,
212
+ Consumer: null
213
+ }, t.Provider = t, t.Consumer = {
214
+ $$typeof: v,
215
+ _context: t
216
+ }, t;
217
+ }, n.createElement = function(t, e, u) {
218
+ var r, o = {}, s = null;
219
+ if (e != null) for (r in e.key !== void 0 && (s = "" + e.key), e) I.call(e, r) && r !== "key" && r !== "__self" && r !== "__source" && (o[r] = e[r]);
220
+ var f = arguments.length - 2;
221
+ if (f === 1) o.children = u;
222
+ else if (1 < f) {
223
+ for (var _ = Array(f), c = 0; c < f; c++) _[c] = arguments[c + 2];
224
+ o.children = _;
225
+ }
226
+ if (t && t.defaultProps) for (r in f = t.defaultProps, f) o[r] === void 0 && (o[r] = f[r]);
227
+ return j(t, s, o);
228
+ }, n.createRef = function() {
229
+ return { current: null };
230
+ }, n.forwardRef = function(t) {
231
+ return {
232
+ $$typeof: T,
233
+ render: t
234
+ };
235
+ }, n.isValidElement = g, n.lazy = function(t) {
236
+ return {
237
+ $$typeof: H,
238
+ _payload: {
239
+ _status: -1,
240
+ _result: t
241
+ },
242
+ _init: X
243
+ };
244
+ }, n.memo = function(t, e) {
245
+ return {
246
+ $$typeof: z,
247
+ type: t,
248
+ compare: e === void 0 ? null : e
249
+ };
250
+ }, n.startTransition = function(t) {
251
+ var e = i.T, u = {};
252
+ i.T = u;
253
+ try {
254
+ var r = t(), o = i.S;
255
+ o !== null && o(u, r), typeof r == "object" && r !== null && typeof r.then == "function" && r.then(w, U);
256
+ } catch (s) {
257
+ U(s);
258
+ } finally {
259
+ e !== null && u.types !== null && (e.types = u.types), i.T = e;
260
+ }
261
+ }, n.unstable_useCacheRefresh = function() {
262
+ return i.H.useCacheRefresh();
263
+ }, n.use = function(t) {
264
+ return i.H.use(t);
265
+ }, n.useActionState = function(t, e, u) {
266
+ return i.H.useActionState(t, e, u);
267
+ }, n.useCallback = function(t, e) {
268
+ return i.H.useCallback(t, e);
269
+ }, n.useContext = function(t) {
270
+ return i.H.useContext(t);
271
+ }, n.useDebugValue = function() {
272
+ }, n.useDeferredValue = function(t, e) {
273
+ return i.H.useDeferredValue(t, e);
274
+ }, n.useEffect = function(t, e) {
275
+ return i.H.useEffect(t, e);
276
+ }, n.useEffectEvent = function(t) {
277
+ return i.H.useEffectEvent(t);
278
+ }, n.useId = function() {
279
+ return i.H.useId();
280
+ }, n.useImperativeHandle = function(t, e, u) {
281
+ return i.H.useImperativeHandle(t, e, u);
282
+ }, n.useInsertionEffect = function(t, e) {
283
+ return i.H.useInsertionEffect(t, e);
284
+ }, n.useLayoutEffect = function(t, e) {
285
+ return i.H.useLayoutEffect(t, e);
286
+ }, n.useMemo = function(t, e) {
287
+ return i.H.useMemo(t, e);
288
+ }, n.useOptimistic = function(t, e) {
289
+ return i.H.useOptimistic(t, e);
290
+ }, n.useReducer = function(t, e, u) {
291
+ return i.H.useReducer(t, e, u);
292
+ }, n.useRef = function(t) {
293
+ return i.H.useRef(t);
294
+ }, n.useState = function(t) {
295
+ return i.H.useState(t);
296
+ }, n.useSyncExternalStore = function(t, e, u) {
297
+ return i.H.useSyncExternalStore(t, e, u);
298
+ }, n.useTransition = function() {
299
+ return i.H.useTransition();
300
+ }, n.version = "19.2.8";
301
+ })), tt = /* @__PURE__ */ C(((n, l) => {
302
+ l.exports = x();
303
+ })), q = /* @__PURE__ */ V(tt(), 1), D = (0, q.createContext)(F()), rt = D.Provider, ut = () => (0, q.useContext)(D), et = /* @__PURE__ */ C(((n) => {
304
+ var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), A = /* @__PURE__ */ Symbol.for("react.fragment");
305
+ function R(S, a, v) {
306
+ var y = null;
307
+ if (v !== void 0 && (y = "" + v), a.key !== void 0 && (y = "" + a.key), "key" in a) {
308
+ v = {};
309
+ for (var T in a) T !== "key" && (v[T] = a[T]);
310
+ } else v = a;
311
+ return a = v.ref, {
312
+ $$typeof: l,
313
+ type: S,
314
+ key: y,
315
+ ref: a !== void 0 ? a : null,
316
+ props: v
317
+ };
318
+ }
319
+ n.Fragment = A, n.jsx = R, n.jsxs = R;
320
+ })), ot = /* @__PURE__ */ C(((n, l) => {
321
+ l.exports = et();
322
+ }));
323
+ export {
324
+ tt as i,
325
+ rt as n,
326
+ ut as r,
327
+ ot as t
328
+ };
@@ -0,0 +1,15 @@
1
+ function o(n) {
2
+ return !n || typeof n != "object" ? "" : "position" in n || "type" in n ? t(n.position) : "start" in n || "end" in n ? t(n) : "line" in n || "column" in n ? i(n) : "";
3
+ }
4
+ function i(n) {
5
+ return r(n && n.line) + ":" + r(n && n.column);
6
+ }
7
+ function t(n) {
8
+ return i(n && n.start) + "-" + i(n && n.end);
9
+ }
10
+ function r(n) {
11
+ return n && typeof n == "number" ? n : 1;
12
+ }
13
+ export {
14
+ o as t
15
+ };
@@ -1,29 +1,29 @@
1
- var d = Object.create, r = Object.defineProperty, u = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyNames, C = Object.getPrototypeOf, f = Object.prototype.hasOwnProperty, y = (e, o) => () => (o || (e((o = { exports: {} }).exports, o), e = null), o.exports), L = (e, o) => {
2
- let a = {};
3
- for (var n in e)
4
- r(a, n, {
5
- get: e[n],
1
+ var m = Object.create, i = Object.defineProperty, v = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyNames, L = Object.getPrototypeOf, p = Object.prototype.hasOwnProperty, b = (e, o) => () => (o || (e((o = { exports: {} }).exports, o), e = null), o.exports), f = (e, o) => {
2
+ let n = {};
3
+ for (var a in e)
4
+ i(n, a, {
5
+ get: e[a],
6
6
  enumerable: !0
7
7
  });
8
- return o || r(a, Symbol.toStringTag, { value: "Module" }), a;
9
- }, b = (e, o, a, n) => {
8
+ return o || i(n, Symbol.toStringTag, { value: "Module" }), n;
9
+ }, C = (e, o, n, a) => {
10
10
  if (o && typeof o == "object" || typeof o == "function")
11
- for (var s = h(o), i = 0, m = s.length, t; i < m; i++)
12
- t = s[i], !f.call(e, t) && t !== a && r(e, t, {
13
- get: ((g) => o[g]).bind(null, t),
14
- enumerable: !(n = u(o, t)) || n.enumerable
11
+ for (var c = h(o), r = 0, g = c.length, t; r < g; r++)
12
+ t = c[r], !p.call(e, t) && t !== n && i(e, t, {
13
+ get: ((u) => o[u]).bind(null, t),
14
+ enumerable: !(a = v(o, t)) || a.enumerable
15
15
  });
16
16
  return e;
17
- }, v = (e, o, a) => (a = e != null ? d(C(e)) : {}, b(o || !e || !e.__esModule ? r(a, "default", {
17
+ }, y = (e, o, n) => (n = e != null ? m(L(e)) : {}, C(o || !e || !e.__esModule || !p.call(e, "default") ? i(n, "default", {
18
18
  value: e,
19
19
  enumerable: !0
20
- }) : a, e)), p = {
20
+ }) : n, e)), d = {
21
21
  inputPlaceholder: "メッセージを入力...",
22
22
  emptyState: "メッセージを入力してください",
23
23
  errorGeneric: "エラーが発生しました。しばらくしてからお試しください。",
24
24
  stopButton: "停止",
25
25
  sendButton: "送信",
26
- clearButton: "クリア",
26
+ newConversationAction: "新しい会話を始める",
27
27
  closeButton: "閉じる",
28
28
  closeChat: "チャットを閉じる",
29
29
  openChat: "チャットを開く",
@@ -86,16 +86,52 @@ var d = Object.create, r = Object.defineProperty, u = Object.getOwnPropertyDescr
86
86
  commandClearConfirmMessage: "会話の表示をクリアして新しい会話を始めます。よろしいですか?",
87
87
  commandClearConfirmApprove: "クリアする",
88
88
  commandClearConfirmCancel: "キャンセル",
89
- commandClearConfirmRegionLabel: "会話クリアの確認"
90
- }, c = {
91
- ja: p,
89
+ commandClearConfirmRegionLabel: "会話クリアの確認",
90
+ resetHistoryMenuItem: "すべての履歴をこのブラウザから消す",
91
+ resetHistoryConfirmMessage: "このブラウザから会話履歴と入力履歴が見えなくなります。サーバー上の会話データは保持期間の経過後に自動削除されます。この操作は取り消せません。よろしいですか?",
92
+ resetHistoryConfirmRegionLabel: "履歴削除の確認",
93
+ deleteConversationMenuItem: "この会話を削除",
94
+ deleteConversationConfirmMessage: "表示中の会話をサーバーから完全に削除します。この操作は取り消せません。よろしいですか?",
95
+ deleteConversationConfirmRegionLabel: "会話削除の確認",
96
+ deleteConversationFailed: "会話の削除に失敗しました。しばらくしてからもう一度お試しください。",
97
+ voiceInputButtonAria: "音声入力",
98
+ voiceInputListeningAria: "聞き取り中(クリックで停止)",
99
+ voiceInputListeningAnnouncement: "聞き取り中です",
100
+ voiceInputErrorPermissionDenied: "マイクの使用が許可されていません",
101
+ voiceInputErrorNoMatch: "聞き取れませんでした",
102
+ voiceInputErrorTimeout: "発話が検出されませんでした",
103
+ voiceInputErrorNetwork: "通信エラーが発生しました",
104
+ voiceInputErrorDeviceUnavailable: "マイクを使用できません",
105
+ voiceInputErrorLanguageUnsupported: "この言語は音声入力に対応していません",
106
+ voiceLoopStartCue: "どうぞ",
107
+ voiceLoopToggleStartAria: "継続音声モードを開始",
108
+ voiceLoopToggleStopAria: "継続音声モードを終了",
109
+ voiceLoopStatusListening: "聞いています",
110
+ voiceLoopStatusThinking: "考えています",
111
+ voiceLoopStatusSpeaking: "話しています",
112
+ voiceLoopStatusAwaitingConfirmation: "確認を待っています",
113
+ voiceLoopStopButton: "終了",
114
+ voiceLoopEndedSilence: "しばらく聞き取れなかったため、継続音声モードを終了しました",
115
+ voiceLoopEndedNetwork: "通信に失敗したため、継続音声モードを終了しました",
116
+ voiceLoopEndedPermission: "マイクの使用が許可されていないため、継続音声モードを終了しました",
117
+ voiceLoopEndedDevice: "マイクを使用できないため、継続音声モードを終了しました",
118
+ voiceLoopEndedLanguage: "この言語は音声入力に対応していないため、継続音声モードを終了しました",
119
+ speechCodeBlockLabel: "コードブロック",
120
+ speechTableLabel: "表",
121
+ speechTruncatedNotice: "長いため、この先の読み上げを省略します",
122
+ speakMessageLabel: "読み上げ",
123
+ speakMessageAria: "メッセージを読み上げる",
124
+ stopSpeakingLabel: "停止",
125
+ stopSpeakingAria: "読み上げを停止"
126
+ }, l = {
127
+ ja: d,
92
128
  en: {
93
129
  inputPlaceholder: "Type a message...",
94
130
  emptyState: "Type a message to get started",
95
131
  errorGeneric: "An error occurred. Please try again later.",
96
132
  stopButton: "Stop",
97
133
  sendButton: "Send",
98
- clearButton: "Clear",
134
+ newConversationAction: "Start a new conversation",
99
135
  closeButton: "Close",
100
136
  closeChat: "Close chat",
101
137
  openChat: "Open chat",
@@ -158,18 +194,54 @@ var d = Object.create, r = Object.defineProperty, u = Object.getOwnPropertyDescr
158
194
  commandClearConfirmMessage: "This will clear the current conversation from view and start a new one. Continue?",
159
195
  commandClearConfirmApprove: "Clear",
160
196
  commandClearConfirmCancel: "Cancel",
161
- commandClearConfirmRegionLabel: "Confirm clearing the conversation"
197
+ commandClearConfirmRegionLabel: "Confirm clearing the conversation",
198
+ resetHistoryMenuItem: "Clear all history from this browser",
199
+ resetHistoryConfirmMessage: "Your conversation history and input history will no longer be accessible from this browser. Conversation data on the server is automatically deleted after the retention period. This action cannot be undone. Are you sure?",
200
+ resetHistoryConfirmRegionLabel: "Confirm clearing history from this browser",
201
+ deleteConversationMenuItem: "Delete this conversation",
202
+ deleteConversationConfirmMessage: "This will permanently delete the current conversation from the server. This action cannot be undone. Are you sure?",
203
+ deleteConversationConfirmRegionLabel: "Confirm deleting this conversation",
204
+ deleteConversationFailed: "Failed to delete the conversation. Please try again later.",
205
+ voiceInputButtonAria: "Voice input",
206
+ voiceInputListeningAria: "Listening (click to stop)",
207
+ voiceInputListeningAnnouncement: "Listening",
208
+ voiceInputErrorPermissionDenied: "Microphone access was denied",
209
+ voiceInputErrorNoMatch: "No speech was recognized",
210
+ voiceInputErrorTimeout: "No speech was detected",
211
+ voiceInputErrorNetwork: "A network error occurred",
212
+ voiceInputErrorDeviceUnavailable: "The microphone could not be used",
213
+ voiceInputErrorLanguageUnsupported: "Voice input is not available for this language",
214
+ voiceLoopStartCue: "Go ahead",
215
+ voiceLoopToggleStartAria: "Start continuous voice mode",
216
+ voiceLoopToggleStopAria: "Stop continuous voice mode",
217
+ voiceLoopStatusListening: "Listening",
218
+ voiceLoopStatusThinking: "Thinking",
219
+ voiceLoopStatusSpeaking: "Speaking",
220
+ voiceLoopStatusAwaitingConfirmation: "Waiting for your confirmation",
221
+ voiceLoopStopButton: "Stop",
222
+ voiceLoopEndedSilence: "Continuous voice mode ended because nothing was heard for a while",
223
+ voiceLoopEndedNetwork: "Continuous voice mode ended because of a network problem",
224
+ voiceLoopEndedPermission: "Continuous voice mode ended because microphone access was denied",
225
+ voiceLoopEndedDevice: "Continuous voice mode ended because the microphone could not be used",
226
+ voiceLoopEndedLanguage: "Continuous voice mode ended because this language is not supported",
227
+ speechCodeBlockLabel: "code block",
228
+ speechTableLabel: "table",
229
+ speechTruncatedNotice: "The rest is too long to read aloud.",
230
+ speakMessageLabel: "Read aloud",
231
+ speakMessageAria: "Read message aloud",
232
+ stopSpeakingLabel: "Stop",
233
+ stopSpeakingAria: "Stop reading aloud"
162
234
  }
163
- }, A = (e) => e && c[e] ? c[e] : p, l = (e) => e !== void 0 && e.length > 0 ? e : void 0, D = (e, o) => {
235
+ }, A = (e) => e && l[e] ? l[e] : d, s = (e) => e !== void 0 && e.length > 0 ? e : void 0, w = (e, o) => {
164
236
  if (e === void 0) return;
165
- if (typeof e == "string") return l(e);
166
- const a = o === "ja" ? "en" : "ja";
167
- return l(e[o]) ?? l(e[a]);
237
+ if (typeof e == "string") return s(e);
238
+ const n = o === "ja" ? "en" : "ja";
239
+ return s(e[o]) ?? s(e[n]);
168
240
  };
169
241
  export {
170
- v as a,
171
- L as i,
172
- D as n,
173
- y as r,
242
+ y as a,
243
+ f as i,
244
+ w as n,
245
+ b as r,
174
246
  A as t
175
247
  };
@@ -1,4 +1,4 @@
1
- import { a as c, t as d } from "../messages-CveZLPSJ.js";
1
+ import { a as c, t as d } from "../messages-FvtWi3lI.js";
2
2
  import { t as u } from "../define-DZ0itsfG.js";
3
3
  import { t as l } from "../abort-BjeyCmGn.js";
4
4
  var h = [
@@ -80,7 +80,7 @@ Security responsibilities: do NOT call this tool and ask the user to confirm int
80
80
 
81
81
  The result is displayed as an image inside the chat. No file is downloaded until the user presses the download button; never try to trigger a download from the tool call.`, R = (e) => {
82
82
  let r = null;
83
- const o = () => (r ??= import("../browser-D1aZQhQL.js").then((t) => /* @__PURE__ */ c(t.default, 1)), r);
83
+ const o = () => (r ??= import("../browser-M7mS-hAN.js").then((t) => /* @__PURE__ */ c(t.default, 1)), r);
84
84
  return {
85
85
  name: "generate_qrcode",
86
86
  description: L,