wecool-chat 0.11.0 → 0.11.1
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/CHANGELOG.md +8 -0
- package/README.ja.md +1 -1
- package/README.md +1 -1
- package/dist/CopyIndicator-DcJtCBYP.js +63 -0
- package/dist/{MarkdownBody-DrX3zb2T.js → MarkdownBody-DX0DoV4C.js} +901 -893
- package/dist/{VoiceControls-C8_Tl-c9.js → VoiceControls-B_kX2Uj3.js} +79 -67
- package/dist/{VoiceRuntime-DGB607-E.js → VoiceRuntime-D1nURNly.js} +13 -13
- package/dist/blank-line-D-aLg3m0.js +213 -0
- package/dist/{browser-BjSilng8.js → browser-a2qIWP48.js} +1 -1
- package/dist/createLucideIcon-Dc6H577p.js +120 -0
- package/dist/index.css +2 -2
- package/dist/index.js +6849 -5728
- package/dist/{jsx-runtime-BTTIwChF.js → jsx-runtime-2MlY8uwR.js} +132 -122
- package/dist/{messages-BEE-IywU.js → messages-ZLdeJx9N.js} +9 -31
- package/dist/plugins/qrcode.js +7 -6
- package/dist/remark-gfm-DDNju7JY.js +2247 -0
- package/dist/{remark-parse-BJR7F87B.js → remark-parse-B3YPcONN.js} +377 -445
- package/dist/rolldown-runtime-Csywlj8R.js +25 -0
- package/dist/ui/components/ChatFooter.d.ts +1 -1
- package/dist/ui/components/ChatHeader.d.ts +1 -1
- package/dist/ui/components/ChatHeaderMenu.d.ts +1 -1
- package/dist/ui/components/ChatPanel.d.ts +1 -1
- package/dist/ui/components/CommandConfirmationCard.d.ts +1 -1
- package/dist/ui/components/CommandOverlays.d.ts +1 -1
- package/dist/ui/components/CommandPalette.d.ts +1 -1
- package/dist/ui/components/ConversationSelect.d.ts +1 -1
- package/dist/ui/components/CopyIndicator.d.ts +1 -1
- package/dist/ui/components/FloatButton.d.ts +1 -1
- package/dist/ui/components/FooterActions.d.ts +1 -1
- package/dist/ui/components/HelpDialogContent.d.ts +1 -1
- package/dist/ui/components/MessageActionsPopover.d.ts +1 -1
- package/dist/ui/components/MessageAttachments.d.ts +1 -1
- package/dist/ui/components/MessageBubble.d.ts +1 -1
- package/dist/ui/components/MessageCopyButton.d.ts +1 -1
- package/dist/ui/components/MessageEditor.d.ts +1 -1
- package/dist/ui/components/MessageList.d.ts +1 -1
- package/dist/ui/components/MessagePopoverButton.d.ts +1 -1
- package/dist/ui/components/MessageRow.d.ts +1 -1
- package/dist/ui/components/MessageRowActions.d.ts +1 -1
- package/dist/ui/components/MicButton.d.ts +1 -1
- package/dist/ui/components/ResizeHandles.d.ts +1 -1
- package/dist/ui/components/ToolConfirmationCard.d.ts +1 -1
- package/dist/ui/components/ToolConfirmationRecord.d.ts +1 -1
- package/dist/ui/components/ToolsDialogContent.d.ts +1 -1
- package/dist/ui/components/VoiceControls.d.ts +1 -1
- package/dist/ui/components/VoiceLoopStatusBar.d.ts +1 -1
- package/dist/ui/components/VoiceLoopToggle.d.ts +1 -1
- package/dist/ui/components/VoiceRuntime.d.ts +1 -1
- package/dist/ui/components/WidgetDialog.d.ts +1 -1
- package/dist/ui/components/markdown/CodeBlock.d.ts +1 -1
- package/dist/ui/components/markdown/MarkdownBody.d.ts +1 -1
- package/dist/ui/components/markdown/MarkdownMessage.d.ts +1 -1
- package/dist/{unified-NsWgUw0i.js → unified-DvM6W8YC.js} +3 -3
- package/dist/{use-voice-input-CLRsyP04.js → use-voice-input-DJtyHnsT.js} +3 -3
- package/dist/{voice-support-Cdpf-m3g.js → voice-support-DYXg7xML.js} +2 -2
- package/package.json +20 -20
- package/dist/CopyIndicator-DSRPjXWl.js +0 -51
- package/dist/blank-line-CUDmZ-mX.js +0 -143
- package/dist/createLucideIcon-CL_Vxx_2.js +0 -43
- package/dist/remark-gfm-Bzy1u34W.js +0 -1962
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { r as tt, t as C } from "./rolldown-runtime-Csywlj8R.js";
|
|
2
|
+
import { t as et } from "./messages-ZLdeJx9N.js";
|
|
3
|
+
var nt = /* @__PURE__ */ C(((r) => {
|
|
4
|
+
var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), d = /* @__PURE__ */ Symbol.for("react.portal"), R = /* @__PURE__ */ Symbol.for("react.fragment"), A = /* @__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"), W = /* @__PURE__ */ Symbol.for("react.suspense"), B = /* @__PURE__ */ Symbol.for("react.memo"), H = /* @__PURE__ */ Symbol.for("react.lazy"), J = /* @__PURE__ */ Symbol.for("react.activity"), Q = /* @__PURE__ */ Symbol.for("react.view_transition"), M = Symbol.iterator;
|
|
5
|
+
function X(t) {
|
|
6
|
+
return t === null || typeof t != "object" ? null : (t = M && t[M] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
6
7
|
}
|
|
7
|
-
var
|
|
8
|
+
var $ = {
|
|
8
9
|
isMounted: function() {
|
|
9
10
|
return !1;
|
|
10
11
|
},
|
|
@@ -14,9 +15,9 @@ var x = /* @__PURE__ */ C(((n) => {
|
|
|
14
15
|
},
|
|
15
16
|
enqueueSetState: function() {
|
|
16
17
|
}
|
|
17
|
-
},
|
|
18
|
-
function E(t, e,
|
|
19
|
-
this.props = t, this.context = e, this.refs = Y, this.updater =
|
|
18
|
+
}, h = Object.assign, Y = {};
|
|
19
|
+
function E(t, e, n) {
|
|
20
|
+
this.props = t, this.context = e, this.refs = Y, this.updater = n || $;
|
|
20
21
|
}
|
|
21
22
|
E.prototype.isReactComponent = {}, E.prototype.setState = function(t, e) {
|
|
22
23
|
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.");
|
|
@@ -27,57 +28,57 @@ var x = /* @__PURE__ */ C(((n) => {
|
|
|
27
28
|
function N() {
|
|
28
29
|
}
|
|
29
30
|
N.prototype = E.prototype;
|
|
30
|
-
function
|
|
31
|
-
this.props = t, this.context = e, this.refs = Y, this.updater =
|
|
31
|
+
function S(t, e, n) {
|
|
32
|
+
this.props = t, this.context = e, this.refs = Y, this.updater = n || $;
|
|
32
33
|
}
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
var
|
|
36
|
-
function
|
|
34
|
+
var w = S.prototype = new N();
|
|
35
|
+
w.constructor = S, h(w, E.prototype), w.isPureReactComponent = !0;
|
|
36
|
+
var I = Array.isArray;
|
|
37
|
+
function P() {
|
|
37
38
|
}
|
|
38
39
|
var i = {
|
|
39
40
|
H: null,
|
|
40
41
|
A: null,
|
|
41
42
|
T: null,
|
|
42
43
|
S: null
|
|
43
|
-
},
|
|
44
|
-
function j(t, e,
|
|
45
|
-
var
|
|
44
|
+
}, k = Object.prototype.hasOwnProperty;
|
|
45
|
+
function j(t, e, n) {
|
|
46
|
+
var u = n.ref;
|
|
46
47
|
return {
|
|
47
48
|
$$typeof: l,
|
|
48
49
|
type: t,
|
|
49
50
|
key: e,
|
|
50
|
-
ref:
|
|
51
|
-
props:
|
|
51
|
+
ref: u !== void 0 ? u : null,
|
|
52
|
+
props: n
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function Z(t, e) {
|
|
55
56
|
return j(t.type, e, t.props);
|
|
56
57
|
}
|
|
57
58
|
function g(t) {
|
|
58
59
|
return typeof t == "object" && t !== null && t.$$typeof === l;
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
+
function V(t) {
|
|
61
62
|
var e = {
|
|
62
63
|
"=": "=0",
|
|
63
64
|
":": "=2"
|
|
64
65
|
};
|
|
65
|
-
return "$" + t.replace(/[=:]/g, function(
|
|
66
|
-
return e[
|
|
66
|
+
return "$" + t.replace(/[=:]/g, function(n) {
|
|
67
|
+
return e[n];
|
|
67
68
|
});
|
|
68
69
|
}
|
|
69
70
|
var L = /\/+/g;
|
|
70
|
-
function
|
|
71
|
-
return typeof t == "object" && t !== null && t.key != null ?
|
|
71
|
+
function O(t, e) {
|
|
72
|
+
return typeof t == "object" && t !== null && t.key != null ? V("" + t.key) : e.toString(36);
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function b(t) {
|
|
74
75
|
switch (t.status) {
|
|
75
76
|
case "fulfilled":
|
|
76
77
|
return t.value;
|
|
77
78
|
case "rejected":
|
|
78
79
|
throw t.reason;
|
|
79
80
|
default:
|
|
80
|
-
switch (typeof t.status == "string" ? t.then(
|
|
81
|
+
switch (typeof t.status == "string" ? t.then(P, P) : (t.status = "pending", t.then(function(e) {
|
|
81
82
|
t.status === "pending" && (t.status = "fulfilled", t.value = e);
|
|
82
83
|
}, function(e) {
|
|
83
84
|
t.status === "pending" && (t.status = "rejected", t.reason = e);
|
|
@@ -90,7 +91,7 @@ var x = /* @__PURE__ */ C(((n) => {
|
|
|
90
91
|
}
|
|
91
92
|
throw t;
|
|
92
93
|
}
|
|
93
|
-
function p(t, e,
|
|
94
|
+
function p(t, e, n, u, o) {
|
|
94
95
|
var s = typeof t;
|
|
95
96
|
(s === "undefined" || s === "boolean") && (t = null);
|
|
96
97
|
var f = !1;
|
|
@@ -104,41 +105,41 @@ var x = /* @__PURE__ */ C(((n) => {
|
|
|
104
105
|
case "object":
|
|
105
106
|
switch (t.$$typeof) {
|
|
106
107
|
case l:
|
|
107
|
-
case
|
|
108
|
+
case d:
|
|
108
109
|
f = !0;
|
|
109
110
|
break;
|
|
110
111
|
case H:
|
|
111
|
-
return f = t._init, p(f(t._payload), e,
|
|
112
|
+
return f = t._init, p(f(t._payload), e, n, u, o);
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
|
-
if (f) return o = o(t), f =
|
|
115
|
-
return
|
|
116
|
-
})) : o != null && (g(o) && (o =
|
|
115
|
+
if (f) return o = o(t), f = u === "" ? "." + O(t, 0) : u, I(o) ? (n = "", f != null && (n = f.replace(L, "$&/") + "/"), p(o, e, n, "", function(x) {
|
|
116
|
+
return x;
|
|
117
|
+
})) : o != null && (g(o) && (o = Z(o, n + (o.key == null || t && t.key === o.key ? "" : ("" + o.key).replace(L, "$&/") + "/") + f)), e.push(o)), 1;
|
|
117
118
|
f = 0;
|
|
118
|
-
var _ =
|
|
119
|
-
if (
|
|
120
|
-
else if (c =
|
|
119
|
+
var _ = u === "" ? "." : u + ":";
|
|
120
|
+
if (I(t)) for (var c = 0; c < t.length; c++) u = t[c], s = _ + O(u, c), f += p(u, e, n, s, o);
|
|
121
|
+
else if (c = X(t), typeof c == "function") for (t = c.call(t), c = 0; !(u = t.next()).done; ) u = u.value, s = _ + O(u, c++), f += p(u, e, n, s, o);
|
|
121
122
|
else if (s === "object") {
|
|
122
|
-
if (typeof t.then == "function") return p(
|
|
123
|
+
if (typeof t.then == "function") return p(b(t), e, n, u, o);
|
|
123
124
|
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
|
}
|
|
125
126
|
return f;
|
|
126
127
|
}
|
|
127
|
-
function m(t, e,
|
|
128
|
+
function m(t, e, n) {
|
|
128
129
|
if (t == null) return t;
|
|
129
|
-
var
|
|
130
|
-
return p(t,
|
|
131
|
-
return e.call(
|
|
132
|
-
}),
|
|
130
|
+
var u = [], o = 0;
|
|
131
|
+
return p(t, u, "", "", function(s) {
|
|
132
|
+
return e.call(n, s, o++);
|
|
133
|
+
}), u;
|
|
133
134
|
}
|
|
134
|
-
function
|
|
135
|
+
function K(t) {
|
|
135
136
|
if (t._status === -1) {
|
|
136
|
-
var e = t._result;
|
|
137
|
-
|
|
138
|
-
(t._status === 0 || t._status === -1) && (t._status = 1, t._result = u);
|
|
137
|
+
var e = t._result, n = e();
|
|
138
|
+
n.then(function(u) {
|
|
139
|
+
(t._status === 0 || t._status === -1) && (t._status = 1, t._result = u, n.status === void 0 && (n.status = "fulfilled", n.value = u));
|
|
139
140
|
}, function(u) {
|
|
140
|
-
(t._status === 0 || t._status === -1) && (t._status = 2, t._result = u);
|
|
141
|
-
}), t._status === -1 && (t._status = 0, t._result =
|
|
141
|
+
(t._status === 0 || t._status === -1) && (t._status = 2, t._result = u, n.status === void 0 && (n.status = "rejected", n.reason = u));
|
|
142
|
+
}), t._status === -1 && (t._status = 0, t._result = n);
|
|
142
143
|
}
|
|
143
144
|
if (t._status === 1) return t._result.default;
|
|
144
145
|
throw t._result;
|
|
@@ -157,12 +158,32 @@ var x = /* @__PURE__ */ C(((n) => {
|
|
|
157
158
|
return;
|
|
158
159
|
}
|
|
159
160
|
console.error(t);
|
|
160
|
-
}
|
|
161
|
+
};
|
|
162
|
+
function q(t) {
|
|
163
|
+
var e = i.T, n = {};
|
|
164
|
+
n.types = e !== null ? e.types : null, i.T = n;
|
|
165
|
+
try {
|
|
166
|
+
var u = t(), o = i.S;
|
|
167
|
+
o !== null && o(n, u), typeof u == "object" && u !== null && typeof u.then == "function" && u.then(P, U);
|
|
168
|
+
} catch (s) {
|
|
169
|
+
U(s);
|
|
170
|
+
} finally {
|
|
171
|
+
e !== null && n.types !== null && (e.types = n.types), i.T = e;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
function D(t) {
|
|
175
|
+
var e = i.T;
|
|
176
|
+
if (e !== null) {
|
|
177
|
+
var n = e.types;
|
|
178
|
+
n === null ? e.types = [t] : n.indexOf(t) === -1 && n.push(t);
|
|
179
|
+
} else q(D.bind(null, t));
|
|
180
|
+
}
|
|
181
|
+
var F = {
|
|
161
182
|
map: m,
|
|
162
|
-
forEach: function(t, e,
|
|
183
|
+
forEach: function(t, e, n) {
|
|
163
184
|
m(t, function() {
|
|
164
185
|
e.apply(this, arguments);
|
|
165
|
-
},
|
|
186
|
+
}, n);
|
|
166
187
|
},
|
|
167
188
|
count: function(t) {
|
|
168
189
|
var e = 0;
|
|
@@ -180,29 +201,29 @@ var x = /* @__PURE__ */ C(((n) => {
|
|
|
180
201
|
return t;
|
|
181
202
|
}
|
|
182
203
|
};
|
|
183
|
-
|
|
204
|
+
r.Activity = J, r.Children = F, r.Component = E, r.Fragment = R, r.Profiler = a, r.PureComponent = S, r.StrictMode = A, r.Suspense = W, r.ViewTransition = Q, r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, r.__COMPILER_RUNTIME = {
|
|
184
205
|
__proto__: null,
|
|
185
206
|
c: function(t) {
|
|
186
207
|
return i.H.useMemoCache(t);
|
|
187
208
|
}
|
|
188
|
-
},
|
|
209
|
+
}, r.addTransitionType = D, r.cache = function(t) {
|
|
189
210
|
return function() {
|
|
190
211
|
return t.apply(null, arguments);
|
|
191
212
|
};
|
|
192
|
-
},
|
|
213
|
+
}, r.cacheSignal = function() {
|
|
193
214
|
return null;
|
|
194
|
-
},
|
|
215
|
+
}, r.cloneElement = function(t, e, n) {
|
|
195
216
|
if (t == null) throw Error("The argument must be a React element, but you passed " + t + ".");
|
|
196
|
-
var
|
|
197
|
-
if (e != null) for (s in e.key !== void 0 && (o = "" + e.key), e) !
|
|
217
|
+
var u = h({}, t.props), o = t.key;
|
|
218
|
+
if (e != null) for (s in e.key !== void 0 && (o = "" + e.key), e) !k.call(e, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && e.ref === void 0 || (u[s] = e[s]);
|
|
198
219
|
var s = arguments.length - 2;
|
|
199
|
-
if (s === 1)
|
|
220
|
+
if (s === 1) u.children = n;
|
|
200
221
|
else if (1 < s) {
|
|
201
222
|
for (var f = Array(s), _ = 0; _ < s; _++) f[_] = arguments[_ + 2];
|
|
202
|
-
|
|
223
|
+
u.children = f;
|
|
203
224
|
}
|
|
204
|
-
return j(t.type, o,
|
|
205
|
-
},
|
|
225
|
+
return j(t.type, o, u);
|
|
226
|
+
}, r.createContext = function(t) {
|
|
206
227
|
return t = {
|
|
207
228
|
$$typeof: y,
|
|
208
229
|
_currentValue: t,
|
|
@@ -214,95 +235,84 @@ var x = /* @__PURE__ */ C(((n) => {
|
|
|
214
235
|
$$typeof: v,
|
|
215
236
|
_context: t
|
|
216
237
|
}, t;
|
|
217
|
-
},
|
|
218
|
-
var
|
|
219
|
-
if (e != null) for (
|
|
238
|
+
}, r.createElement = function(t, e, n) {
|
|
239
|
+
var u, o = {}, s = null;
|
|
240
|
+
if (e != null) for (u in e.key !== void 0 && (s = "" + e.key), e) k.call(e, u) && u !== "key" && u !== "__self" && u !== "__source" && (o[u] = e[u]);
|
|
220
241
|
var f = arguments.length - 2;
|
|
221
|
-
if (f === 1) o.children =
|
|
242
|
+
if (f === 1) o.children = n;
|
|
222
243
|
else if (1 < f) {
|
|
223
244
|
for (var _ = Array(f), c = 0; c < f; c++) _[c] = arguments[c + 2];
|
|
224
245
|
o.children = _;
|
|
225
246
|
}
|
|
226
|
-
if (t && t.defaultProps) for (
|
|
247
|
+
if (t && t.defaultProps) for (u in f = t.defaultProps, f) o[u] === void 0 && (o[u] = f[u]);
|
|
227
248
|
return j(t, s, o);
|
|
228
|
-
},
|
|
249
|
+
}, r.createRef = function() {
|
|
229
250
|
return { current: null };
|
|
230
|
-
},
|
|
251
|
+
}, r.forwardRef = function(t) {
|
|
231
252
|
return {
|
|
232
253
|
$$typeof: T,
|
|
233
254
|
render: t
|
|
234
255
|
};
|
|
235
|
-
},
|
|
256
|
+
}, r.isValidElement = g, r.lazy = function(t) {
|
|
236
257
|
return {
|
|
237
258
|
$$typeof: H,
|
|
238
259
|
_payload: {
|
|
239
260
|
_status: -1,
|
|
240
261
|
_result: t
|
|
241
262
|
},
|
|
242
|
-
_init:
|
|
263
|
+
_init: K
|
|
243
264
|
};
|
|
244
|
-
},
|
|
265
|
+
}, r.memo = function(t, e) {
|
|
245
266
|
return {
|
|
246
|
-
$$typeof:
|
|
267
|
+
$$typeof: B,
|
|
247
268
|
type: t,
|
|
248
269
|
compare: e === void 0 ? null : e
|
|
249
270
|
};
|
|
250
|
-
},
|
|
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() {
|
|
271
|
+
}, r.startTransition = q, r.unstable_useCacheRefresh = function() {
|
|
262
272
|
return i.H.useCacheRefresh();
|
|
263
|
-
},
|
|
273
|
+
}, r.use = function(t) {
|
|
264
274
|
return i.H.use(t);
|
|
265
|
-
},
|
|
266
|
-
return i.H.useActionState(t, e,
|
|
267
|
-
},
|
|
275
|
+
}, r.useActionState = function(t, e, n) {
|
|
276
|
+
return i.H.useActionState(t, e, n);
|
|
277
|
+
}, r.useCallback = function(t, e) {
|
|
268
278
|
return i.H.useCallback(t, e);
|
|
269
|
-
},
|
|
279
|
+
}, r.useContext = function(t) {
|
|
270
280
|
return i.H.useContext(t);
|
|
271
|
-
},
|
|
272
|
-
},
|
|
281
|
+
}, r.useDebugValue = function() {
|
|
282
|
+
}, r.useDeferredValue = function(t, e) {
|
|
273
283
|
return i.H.useDeferredValue(t, e);
|
|
274
|
-
},
|
|
284
|
+
}, r.useEffect = function(t, e) {
|
|
275
285
|
return i.H.useEffect(t, e);
|
|
276
|
-
},
|
|
286
|
+
}, r.useEffectEvent = function(t) {
|
|
277
287
|
return i.H.useEffectEvent(t);
|
|
278
|
-
},
|
|
288
|
+
}, r.useId = function() {
|
|
279
289
|
return i.H.useId();
|
|
280
|
-
},
|
|
281
|
-
return i.H.useImperativeHandle(t, e,
|
|
282
|
-
},
|
|
290
|
+
}, r.useImperativeHandle = function(t, e, n) {
|
|
291
|
+
return i.H.useImperativeHandle(t, e, n);
|
|
292
|
+
}, r.useInsertionEffect = function(t, e) {
|
|
283
293
|
return i.H.useInsertionEffect(t, e);
|
|
284
|
-
},
|
|
294
|
+
}, r.useLayoutEffect = function(t, e) {
|
|
285
295
|
return i.H.useLayoutEffect(t, e);
|
|
286
|
-
},
|
|
296
|
+
}, r.useMemo = function(t, e) {
|
|
287
297
|
return i.H.useMemo(t, e);
|
|
288
|
-
},
|
|
298
|
+
}, r.useOptimistic = function(t, e) {
|
|
289
299
|
return i.H.useOptimistic(t, e);
|
|
290
|
-
},
|
|
291
|
-
return i.H.useReducer(t, e,
|
|
292
|
-
},
|
|
300
|
+
}, r.useReducer = function(t, e, n) {
|
|
301
|
+
return i.H.useReducer(t, e, n);
|
|
302
|
+
}, r.useRef = function(t) {
|
|
293
303
|
return i.H.useRef(t);
|
|
294
|
-
},
|
|
304
|
+
}, r.useState = function(t) {
|
|
295
305
|
return i.H.useState(t);
|
|
296
|
-
},
|
|
297
|
-
return i.H.useSyncExternalStore(t, e,
|
|
298
|
-
},
|
|
306
|
+
}, r.useSyncExternalStore = function(t, e, n) {
|
|
307
|
+
return i.H.useSyncExternalStore(t, e, n);
|
|
308
|
+
}, r.useTransition = function() {
|
|
299
309
|
return i.H.useTransition();
|
|
300
|
-
},
|
|
301
|
-
})),
|
|
302
|
-
l.exports =
|
|
303
|
-
})),
|
|
304
|
-
var l = /* @__PURE__ */ Symbol.for("react.transitional.element"),
|
|
305
|
-
function R(
|
|
310
|
+
}, r.version = "19.3.1";
|
|
311
|
+
})), rt = /* @__PURE__ */ C(((r, l) => {
|
|
312
|
+
l.exports = nt();
|
|
313
|
+
})), z = /* @__PURE__ */ tt(rt(), 1), G = (0, z.createContext)(et()), it = G.Provider, ft = () => (0, z.useContext)(G), ut = /* @__PURE__ */ C(((r) => {
|
|
314
|
+
var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), d = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
315
|
+
function R(A, a, v) {
|
|
306
316
|
var y = null;
|
|
307
317
|
if (v !== void 0 && (y = "" + v), a.key !== void 0 && (y = "" + a.key), "key" in a) {
|
|
308
318
|
v = {};
|
|
@@ -310,19 +320,19 @@ var x = /* @__PURE__ */ C(((n) => {
|
|
|
310
320
|
} else v = a;
|
|
311
321
|
return a = v.ref, {
|
|
312
322
|
$$typeof: l,
|
|
313
|
-
type:
|
|
323
|
+
type: A,
|
|
314
324
|
key: y,
|
|
315
325
|
ref: a !== void 0 ? a : null,
|
|
316
326
|
props: v
|
|
317
327
|
};
|
|
318
328
|
}
|
|
319
|
-
|
|
320
|
-
})),
|
|
321
|
-
l.exports =
|
|
329
|
+
r.Fragment = d, r.jsx = R, r.jsxs = R;
|
|
330
|
+
})), ct = /* @__PURE__ */ C(((r, l) => {
|
|
331
|
+
l.exports = ut();
|
|
322
332
|
}));
|
|
323
333
|
export {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
334
|
+
rt as i,
|
|
335
|
+
it as n,
|
|
336
|
+
ft as r,
|
|
337
|
+
ct as t
|
|
328
338
|
};
|
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
var
|
|
2
|
-
let n = {};
|
|
3
|
-
for (var a in e)
|
|
4
|
-
i(n, a, {
|
|
5
|
-
get: e[a],
|
|
6
|
-
enumerable: !0
|
|
7
|
-
});
|
|
8
|
-
return o || i(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
9
|
-
}, C = (e, o, n, a) => {
|
|
10
|
-
if (o && typeof o == "object" || typeof o == "function")
|
|
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
|
-
});
|
|
16
|
-
return e;
|
|
17
|
-
}, y = (e, o, n) => (n = e != null ? m(L(e)) : {}, C(o || !e || !e.__esModule || !p.call(e, "default") ? i(n, "default", {
|
|
18
|
-
value: e,
|
|
19
|
-
enumerable: !0
|
|
20
|
-
}) : n, e)), d = {
|
|
1
|
+
var a = {
|
|
21
2
|
inputPlaceholder: "メッセージを入力...",
|
|
22
3
|
emptyState: "メッセージを入力してください",
|
|
23
4
|
errorGeneric: "エラーが発生しました。しばらくしてからお試しください。",
|
|
@@ -124,8 +105,8 @@ var m = Object.create, i = Object.defineProperty, v = Object.getOwnPropertyDescr
|
|
|
124
105
|
speakMessageAria: "メッセージを読み上げる",
|
|
125
106
|
stopSpeakingLabel: "停止",
|
|
126
107
|
stopSpeakingAria: "読み上げを停止"
|
|
127
|
-
},
|
|
128
|
-
ja:
|
|
108
|
+
}, t = {
|
|
109
|
+
ja: a,
|
|
129
110
|
en: {
|
|
130
111
|
inputPlaceholder: "Type a message...",
|
|
131
112
|
emptyState: "Type a message to get started",
|
|
@@ -234,16 +215,13 @@ var m = Object.create, i = Object.defineProperty, v = Object.getOwnPropertyDescr
|
|
|
234
215
|
stopSpeakingLabel: "Stop",
|
|
235
216
|
stopSpeakingAria: "Stop reading aloud"
|
|
236
217
|
}
|
|
237
|
-
},
|
|
218
|
+
}, r = (e) => e && t[e] ? t[e] : a, o = (e) => e !== void 0 && e.length > 0 ? e : void 0, s = (e, n) => {
|
|
238
219
|
if (e === void 0) return;
|
|
239
|
-
if (typeof e == "string") return
|
|
240
|
-
const
|
|
241
|
-
return
|
|
220
|
+
if (typeof e == "string") return o(e);
|
|
221
|
+
const i = n === "ja" ? "en" : "ja";
|
|
222
|
+
return o(e[n]) ?? o(e[i]);
|
|
242
223
|
};
|
|
243
224
|
export {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
w as n,
|
|
247
|
-
b as r,
|
|
248
|
-
A as t
|
|
225
|
+
s as n,
|
|
226
|
+
r as t
|
|
249
227
|
};
|
package/dist/plugins/qrcode.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
1
|
+
import { r as c } from "../rolldown-runtime-Csywlj8R.js";
|
|
2
|
+
import { t as d } from "../define-DZ0itsfG.js";
|
|
3
|
+
import { t as u } from "../messages-ZLdeJx9N.js";
|
|
3
4
|
import { t as l } from "../abort-BjeyCmGn.js";
|
|
4
5
|
var h = [
|
|
5
6
|
"L",
|
|
@@ -80,7 +81,7 @@ Security responsibilities: do NOT call this tool and ask the user to confirm int
|
|
|
80
81
|
|
|
81
82
|
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
83
|
let r = null;
|
|
83
|
-
const o = () => (r ??= import("../browser-
|
|
84
|
+
const o = () => (r ??= import("../browser-a2qIWP48.js").then((t) => /* @__PURE__ */ c(t.default, 1)), r);
|
|
84
85
|
return {
|
|
85
86
|
name: "generate_qrcode",
|
|
86
87
|
description: L,
|
|
@@ -101,7 +102,7 @@ The result is displayed as an image inside the chat. No file is downloaded until
|
|
|
101
102
|
}, i = (e) => ({ forLLM: e }), y = (e, r) => ({ stop: {
|
|
102
103
|
reason: "text_too_long",
|
|
103
104
|
category: "user_error",
|
|
104
|
-
userMessage:
|
|
105
|
+
userMessage: u(e).qrcodeStopTextTooLong.replace("{max}", String(r))
|
|
105
106
|
} }), _ = (e, r, o) => {
|
|
106
107
|
const t = g(e, r);
|
|
107
108
|
if (!t.ok)
|
|
@@ -165,7 +166,7 @@ The result is displayed as an image inside the chat. No file is downloaded until
|
|
|
165
166
|
l(r.signal);
|
|
166
167
|
const s = await E(n.text, n.size, n.errorCorrectionLevel, a);
|
|
167
168
|
return typeof s != "string" ? s : T(n, s);
|
|
168
|
-
}, b = 256, k = "M", w = 2e3,
|
|
169
|
+
}, b = 256, k = "M", w = 2e3, F = (e = {}) => d({
|
|
169
170
|
pluginApiVersion: 1,
|
|
170
171
|
id: "wecool/qrcode",
|
|
171
172
|
version: "0.1.0",
|
|
@@ -178,5 +179,5 @@ The result is displayed as an image inside the chat. No file is downloaded until
|
|
|
178
179
|
}
|
|
179
180
|
});
|
|
180
181
|
export {
|
|
181
|
-
|
|
182
|
+
F as createQrcodePlugin
|
|
182
183
|
};
|