@camunda/copilot-chat 0.0.2 → 0.0.3
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/index.js +162 -161
- package/dist/package.json +1 -1
- package/dist/utils/eventHandlers.d.ts +2 -2
- package/dist/utils/eventHandlers.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -142,10 +142,10 @@ const eo = "data-copilot-chat-layout", to = "data-copilot-chat-host", Mt = "--co
|
|
|
142
142
|
const f = s.current;
|
|
143
143
|
if (f) {
|
|
144
144
|
f.style.height = "auto";
|
|
145
|
-
const h = 40,
|
|
145
|
+
const h = 40, v = 150;
|
|
146
146
|
f.style.height = `${Math.max(
|
|
147
147
|
h,
|
|
148
|
-
Math.min(f.scrollHeight,
|
|
148
|
+
Math.min(f.scrollHeight, v)
|
|
149
149
|
)}px`;
|
|
150
150
|
}
|
|
151
151
|
}, [o]), Re(() => {
|
|
@@ -1384,7 +1384,7 @@ function qi() {
|
|
|
1384
1384
|
er = 1;
|
|
1385
1385
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, i = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, s = /^[;\s]*/, l = /^\s+|\s+$/g, a = `
|
|
1386
1386
|
`, c = "/", u = "*", d = "", f = "comment", h = "declaration";
|
|
1387
|
-
function
|
|
1387
|
+
function v(C, b) {
|
|
1388
1388
|
if (typeof C != "string")
|
|
1389
1389
|
throw new TypeError("First argument must be a string");
|
|
1390
1390
|
if (!C) return [];
|
|
@@ -1399,13 +1399,13 @@ function qi() {
|
|
|
1399
1399
|
function H() {
|
|
1400
1400
|
var I = { line: O, column: _ };
|
|
1401
1401
|
return function(S) {
|
|
1402
|
-
return S.position = new
|
|
1402
|
+
return S.position = new y(I), N(), S;
|
|
1403
1403
|
};
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1405
|
+
function y(I) {
|
|
1406
1406
|
this.start = I, this.end = { line: O, column: _ }, this.source = b.source;
|
|
1407
1407
|
}
|
|
1408
|
-
|
|
1408
|
+
y.prototype.content = C;
|
|
1409
1409
|
function R(I) {
|
|
1410
1410
|
var S = new Error(
|
|
1411
1411
|
b.source + ":" + O + ":" + _ + ": " + I
|
|
@@ -1466,7 +1466,7 @@ function qi() {
|
|
|
1466
1466
|
function w(C) {
|
|
1467
1467
|
return C ? C.replace(l, d) : d;
|
|
1468
1468
|
}
|
|
1469
|
-
return qt =
|
|
1469
|
+
return qt = v, qt;
|
|
1470
1470
|
}
|
|
1471
1471
|
var tr;
|
|
1472
1472
|
function Ki() {
|
|
@@ -2153,17 +2153,17 @@ function Ls(e) {
|
|
|
2153
2153
|
if (r++, t.containerState._closeFlow) {
|
|
2154
2154
|
t.containerState._closeFlow = void 0, o && O();
|
|
2155
2155
|
const j = t.events.length;
|
|
2156
|
-
let H = j,
|
|
2156
|
+
let H = j, y;
|
|
2157
2157
|
for (; H--; )
|
|
2158
2158
|
if (t.events[H][0] === "exit" && t.events[H][1].type === "chunkFlow") {
|
|
2159
|
-
|
|
2159
|
+
y = t.events[H][1].end;
|
|
2160
2160
|
break;
|
|
2161
2161
|
}
|
|
2162
2162
|
b(r);
|
|
2163
2163
|
let R = j;
|
|
2164
2164
|
for (; R < t.events.length; )
|
|
2165
2165
|
t.events[R][1].end = {
|
|
2166
|
-
...
|
|
2166
|
+
...y
|
|
2167
2167
|
}, R++;
|
|
2168
2168
|
return we(t.events, H + 1, 0, t.events.slice(j)), t.events.length = R, c(_);
|
|
2169
2169
|
}
|
|
@@ -2174,7 +2174,7 @@ function Ls(e) {
|
|
|
2174
2174
|
if (!o)
|
|
2175
2175
|
return f(_);
|
|
2176
2176
|
if (o.currentConstruct && o.currentConstruct.concrete)
|
|
2177
|
-
return
|
|
2177
|
+
return v(_);
|
|
2178
2178
|
t.interrupt = !!(o.currentConstruct && !o._gfmTableDynamicInterruptHack);
|
|
2179
2179
|
}
|
|
2180
2180
|
return t.containerState = {}, e.check(cr, u, d)(_);
|
|
@@ -2183,15 +2183,15 @@ function Ls(e) {
|
|
|
2183
2183
|
return o && O(), b(r), f(_);
|
|
2184
2184
|
}
|
|
2185
2185
|
function d(_) {
|
|
2186
|
-
return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset,
|
|
2186
|
+
return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, v(_);
|
|
2187
2187
|
}
|
|
2188
2188
|
function f(_) {
|
|
2189
|
-
return t.containerState = {}, e.attempt(cr, h,
|
|
2189
|
+
return t.containerState = {}, e.attempt(cr, h, v)(_);
|
|
2190
2190
|
}
|
|
2191
2191
|
function h(_) {
|
|
2192
2192
|
return r++, n.push([t.currentConstruct, t.containerState]), f(_);
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2194
|
+
function v(_) {
|
|
2195
2195
|
if (_ === null) {
|
|
2196
2196
|
o && O(), b(0), e.consume(_);
|
|
2197
2197
|
return;
|
|
@@ -2212,13 +2212,13 @@ function Ls(e) {
|
|
|
2212
2212
|
function C(_, j) {
|
|
2213
2213
|
const H = t.sliceStream(_);
|
|
2214
2214
|
if (j && H.push(null), _.previous = i, i && (i.next = _), i = _, o.defineSkip(_.start), o.write(H), t.parser.lazy[_.start.line]) {
|
|
2215
|
-
let
|
|
2216
|
-
for (;
|
|
2215
|
+
let y = o.events.length;
|
|
2216
|
+
for (; y--; )
|
|
2217
2217
|
if (
|
|
2218
2218
|
// The token starts before the line ending…
|
|
2219
|
-
o.events[
|
|
2220
|
-
(!o.events[
|
|
2221
|
-
o.events[
|
|
2219
|
+
o.events[y][1].start.offset < s && // …and either is not ended yet…
|
|
2220
|
+
(!o.events[y][1].end || // …or ends after it.
|
|
2221
|
+
o.events[y][1].end.offset > s)
|
|
2222
2222
|
)
|
|
2223
2223
|
return;
|
|
2224
2224
|
const R = t.events.length;
|
|
@@ -2231,11 +2231,11 @@ function Ls(e) {
|
|
|
2231
2231
|
}
|
|
2232
2232
|
N = !0;
|
|
2233
2233
|
}
|
|
2234
|
-
for (b(r),
|
|
2235
|
-
t.events[
|
|
2234
|
+
for (b(r), y = R; y < t.events.length; )
|
|
2235
|
+
t.events[y][1].end = {
|
|
2236
2236
|
...D
|
|
2237
|
-
},
|
|
2238
|
-
we(t.events, V + 1, 0, t.events.slice(R)), t.events.length =
|
|
2237
|
+
}, y++;
|
|
2238
|
+
we(t.events, V + 1, 0, t.events.slice(R)), t.events.length = y;
|
|
2239
2239
|
}
|
|
2240
2240
|
}
|
|
2241
2241
|
function b(_) {
|
|
@@ -2378,8 +2378,8 @@ function $s(e, t, n) {
|
|
|
2378
2378
|
}
|
|
2379
2379
|
function f(h) {
|
|
2380
2380
|
if ((h === 45 || fe(h)) && r++ < 63) {
|
|
2381
|
-
const
|
|
2382
|
-
return e.consume(h),
|
|
2381
|
+
const v = h === 45 ? f : d;
|
|
2382
|
+
return e.consume(h), v;
|
|
2383
2383
|
}
|
|
2384
2384
|
return n(h);
|
|
2385
2385
|
}
|
|
@@ -2487,67 +2487,67 @@ function Vs(e, t, n) {
|
|
|
2487
2487
|
};
|
|
2488
2488
|
let i = 0, s = 0, l;
|
|
2489
2489
|
return a;
|
|
2490
|
-
function a(
|
|
2491
|
-
return c(
|
|
2490
|
+
function a(y) {
|
|
2491
|
+
return c(y);
|
|
2492
2492
|
}
|
|
2493
|
-
function c(
|
|
2493
|
+
function c(y) {
|
|
2494
2494
|
const R = r.events[r.events.length - 1];
|
|
2495
|
-
return i = R && R[1].type === "linePrefix" ? R[2].sliceSerialize(R[1], !0).length : 0, l =
|
|
2495
|
+
return i = R && R[1].type === "linePrefix" ? R[2].sliceSerialize(R[1], !0).length : 0, l = y, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(y);
|
|
2496
2496
|
}
|
|
2497
|
-
function u(
|
|
2498
|
-
return
|
|
2497
|
+
function u(y) {
|
|
2498
|
+
return y === l ? (s++, e.consume(y), u) : s < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), F(y) ? Y(e, d, "whitespace")(y) : d(y));
|
|
2499
2499
|
}
|
|
2500
|
-
function d(
|
|
2501
|
-
return
|
|
2500
|
+
function d(y) {
|
|
2501
|
+
return y === null || M(y) ? (e.exit("codeFencedFence"), r.interrupt ? t(y) : e.check(hr, w, j)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
2502
2502
|
contentType: "string"
|
|
2503
|
-
}), f(
|
|
2503
|
+
}), f(y));
|
|
2504
2504
|
}
|
|
2505
|
-
function f(
|
|
2506
|
-
return
|
|
2505
|
+
function f(y) {
|
|
2506
|
+
return y === null || M(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(y)) : F(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Y(e, h, "whitespace")(y)) : y === 96 && y === l ? n(y) : (e.consume(y), f);
|
|
2507
2507
|
}
|
|
2508
|
-
function h(
|
|
2509
|
-
return
|
|
2508
|
+
function h(y) {
|
|
2509
|
+
return y === null || M(y) ? d(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
2510
2510
|
contentType: "string"
|
|
2511
|
-
}), y
|
|
2511
|
+
}), v(y));
|
|
2512
2512
|
}
|
|
2513
|
-
function y
|
|
2514
|
-
return
|
|
2513
|
+
function v(y) {
|
|
2514
|
+
return y === null || M(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(y)) : y === 96 && y === l ? n(y) : (e.consume(y), v);
|
|
2515
2515
|
}
|
|
2516
|
-
function w(
|
|
2517
|
-
return e.attempt(o, j, C)(
|
|
2516
|
+
function w(y) {
|
|
2517
|
+
return e.attempt(o, j, C)(y);
|
|
2518
2518
|
}
|
|
2519
|
-
function C(
|
|
2520
|
-
return e.enter("lineEnding"), e.consume(
|
|
2519
|
+
function C(y) {
|
|
2520
|
+
return e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), b;
|
|
2521
2521
|
}
|
|
2522
|
-
function b(
|
|
2523
|
-
return i > 0 && F(
|
|
2522
|
+
function b(y) {
|
|
2523
|
+
return i > 0 && F(y) ? Y(e, O, "linePrefix", i + 1)(y) : O(y);
|
|
2524
2524
|
}
|
|
2525
|
-
function O(
|
|
2526
|
-
return
|
|
2525
|
+
function O(y) {
|
|
2526
|
+
return y === null || M(y) ? e.check(hr, w, j)(y) : (e.enter("codeFlowValue"), _(y));
|
|
2527
2527
|
}
|
|
2528
|
-
function _(
|
|
2529
|
-
return
|
|
2528
|
+
function _(y) {
|
|
2529
|
+
return y === null || M(y) ? (e.exit("codeFlowValue"), O(y)) : (e.consume(y), _);
|
|
2530
2530
|
}
|
|
2531
|
-
function j(
|
|
2532
|
-
return e.exit("codeFenced"), t(
|
|
2531
|
+
function j(y) {
|
|
2532
|
+
return e.exit("codeFenced"), t(y);
|
|
2533
2533
|
}
|
|
2534
|
-
function H(
|
|
2534
|
+
function H(y, R, V) {
|
|
2535
2535
|
let N = 0;
|
|
2536
2536
|
return D;
|
|
2537
2537
|
function D(S) {
|
|
2538
|
-
return
|
|
2538
|
+
return y.enter("lineEnding"), y.consume(S), y.exit("lineEnding"), E;
|
|
2539
2539
|
}
|
|
2540
2540
|
function E(S) {
|
|
2541
|
-
return
|
|
2541
|
+
return y.enter("codeFencedFence"), F(S) ? Y(y, T, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(S) : T(S);
|
|
2542
2542
|
}
|
|
2543
2543
|
function T(S) {
|
|
2544
|
-
return S === l ? (
|
|
2544
|
+
return S === l ? (y.enter("codeFencedFenceSequence"), B(S)) : V(S);
|
|
2545
2545
|
}
|
|
2546
2546
|
function B(S) {
|
|
2547
|
-
return S === l ? (N++,
|
|
2547
|
+
return S === l ? (N++, y.consume(S), B) : N >= s ? (y.exit("codeFencedFenceSequence"), F(S) ? Y(y, I, "whitespace")(S) : I(S)) : V(S);
|
|
2548
2548
|
}
|
|
2549
2549
|
function I(S) {
|
|
2550
|
-
return S === null || M(S) ? (
|
|
2550
|
+
return S === null || M(S) ? (y.exit("codeFencedFence"), R(S)) : V(S);
|
|
2551
2551
|
}
|
|
2552
2552
|
}
|
|
2553
2553
|
}
|
|
@@ -2843,7 +2843,7 @@ function el(e, t) {
|
|
|
2843
2843
|
let s = n._tokenizer;
|
|
2844
2844
|
s || (s = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (s._contentTypeTextTrailing = !0));
|
|
2845
2845
|
const l = s.events, a = [], c = {};
|
|
2846
|
-
let u, d, f = -1, h = n,
|
|
2846
|
+
let u, d, f = -1, h = n, v = 0, w = 0;
|
|
2847
2847
|
const C = [w];
|
|
2848
2848
|
for (; h; ) {
|
|
2849
2849
|
for (; e.get(++o)[1] !== h; )
|
|
@@ -2857,7 +2857,7 @@ function el(e, t) {
|
|
|
2857
2857
|
a.push([O, O + b.length - 1]), e.splice(O, 2, b);
|
|
2858
2858
|
}
|
|
2859
2859
|
for (a.reverse(), f = -1; ++f < a.length; )
|
|
2860
|
-
c[
|
|
2860
|
+
c[v + a[f][0]] = v + a[f][1], v += a[f][1] - a[f][0] - 1;
|
|
2861
2861
|
return c;
|
|
2862
2862
|
}
|
|
2863
2863
|
const tl = {
|
|
@@ -2919,9 +2919,9 @@ function _o(e, t, n, r, o, i, s, l, a) {
|
|
|
2919
2919
|
}), h(b));
|
|
2920
2920
|
}
|
|
2921
2921
|
function h(b) {
|
|
2922
|
-
return b === 62 ? (e.exit("chunkString"), e.exit(l), f(b)) : b === null || b === 60 || M(b) ? n(b) : (e.consume(b), b === 92 ?
|
|
2922
|
+
return b === 62 ? (e.exit("chunkString"), e.exit(l), f(b)) : b === null || b === 60 || M(b) ? n(b) : (e.consume(b), b === 92 ? v : h);
|
|
2923
2923
|
}
|
|
2924
|
-
function
|
|
2924
|
+
function v(b) {
|
|
2925
2925
|
return b === 60 || b === 62 || b === 92 ? (e.consume(b), h) : h(b);
|
|
2926
2926
|
}
|
|
2927
2927
|
function w(b) {
|
|
@@ -3201,14 +3201,14 @@ function kl(e, t, n) {
|
|
|
3201
3201
|
return m === 33 ? (e.consume(m), f) : m === 47 ? (e.consume(m), i = !0, w) : m === 63 ? (e.consume(m), o = 3, r.interrupt ? t : p) : xe(m) ? (e.consume(m), s = String.fromCharCode(m), C) : n(m);
|
|
3202
3202
|
}
|
|
3203
3203
|
function f(m) {
|
|
3204
|
-
return m === 45 ? (e.consume(m), o = 2, h) : m === 91 ? (e.consume(m), o = 5, l = 0,
|
|
3204
|
+
return m === 45 ? (e.consume(m), o = 2, h) : m === 91 ? (e.consume(m), o = 5, l = 0, v) : xe(m) ? (e.consume(m), o = 4, r.interrupt ? t : p) : n(m);
|
|
3205
3205
|
}
|
|
3206
3206
|
function h(m) {
|
|
3207
3207
|
return m === 45 ? (e.consume(m), r.interrupt ? t : p) : n(m);
|
|
3208
3208
|
}
|
|
3209
|
-
function
|
|
3209
|
+
function v(m) {
|
|
3210
3210
|
const ee = "CDATA[";
|
|
3211
|
-
return m === ee.charCodeAt(l++) ? (e.consume(m), l === ee.length ? r.interrupt ? t : T :
|
|
3211
|
+
return m === ee.charCodeAt(l++) ? (e.consume(m), l === ee.length ? r.interrupt ? t : T : v) : n(m);
|
|
3212
3212
|
}
|
|
3213
3213
|
function w(m) {
|
|
3214
3214
|
return xe(m) ? (e.consume(m), s = String.fromCharCode(m), C) : n(m);
|
|
@@ -3233,10 +3233,10 @@ function kl(e, t, n) {
|
|
|
3233
3233
|
return m === 45 || m === 46 || m === 58 || m === 95 || fe(m) ? (e.consume(m), j) : H(m);
|
|
3234
3234
|
}
|
|
3235
3235
|
function H(m) {
|
|
3236
|
-
return m === 61 ? (e.consume(m),
|
|
3236
|
+
return m === 61 ? (e.consume(m), y) : F(m) ? (e.consume(m), H) : _(m);
|
|
3237
3237
|
}
|
|
3238
|
-
function
|
|
3239
|
-
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), a = m, R) : F(m) ? (e.consume(m),
|
|
3238
|
+
function y(m) {
|
|
3239
|
+
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), a = m, R) : F(m) ? (e.consume(m), y) : V(m);
|
|
3240
3240
|
}
|
|
3241
3241
|
function R(m) {
|
|
3242
3242
|
return m === a ? (e.consume(m), a = null, N) : m === null || M(m) ? n(m) : (e.consume(m), R);
|
|
@@ -3322,7 +3322,7 @@ function Sl(e, t, n) {
|
|
|
3322
3322
|
return p === 33 ? (e.consume(p), c) : p === 47 ? (e.consume(p), H) : p === 63 ? (e.consume(p), _) : xe(p) ? (e.consume(p), V) : n(p);
|
|
3323
3323
|
}
|
|
3324
3324
|
function c(p) {
|
|
3325
|
-
return p === 45 ? (e.consume(p), u) : p === 91 ? (e.consume(p), i = 0,
|
|
3325
|
+
return p === 45 ? (e.consume(p), u) : p === 91 ? (e.consume(p), i = 0, v) : xe(p) ? (e.consume(p), O) : n(p);
|
|
3326
3326
|
}
|
|
3327
3327
|
function u(p) {
|
|
3328
3328
|
return p === 45 ? (e.consume(p), h) : n(p);
|
|
@@ -3336,9 +3336,9 @@ function Sl(e, t, n) {
|
|
|
3336
3336
|
function h(p) {
|
|
3337
3337
|
return p === 62 ? U(p) : p === 45 ? f(p) : d(p);
|
|
3338
3338
|
}
|
|
3339
|
-
function
|
|
3339
|
+
function v(p) {
|
|
3340
3340
|
const $ = "CDATA[";
|
|
3341
|
-
return p === $.charCodeAt(i++) ? (e.consume(p), i === $.length ? w :
|
|
3341
|
+
return p === $.charCodeAt(i++) ? (e.consume(p), i === $.length ? w : v) : n(p);
|
|
3342
3342
|
}
|
|
3343
3343
|
function w(p) {
|
|
3344
3344
|
return p === null ? n(p) : p === 93 ? (e.consume(p), C) : M(p) ? (s = w, J(p)) : (e.consume(p), w);
|
|
@@ -3359,10 +3359,10 @@ function Sl(e, t, n) {
|
|
|
3359
3359
|
return p === 62 ? U(p) : _(p);
|
|
3360
3360
|
}
|
|
3361
3361
|
function H(p) {
|
|
3362
|
-
return xe(p) ? (e.consume(p),
|
|
3362
|
+
return xe(p) ? (e.consume(p), y) : n(p);
|
|
3363
3363
|
}
|
|
3364
|
-
function
|
|
3365
|
-
return p === 45 || fe(p) ? (e.consume(p),
|
|
3364
|
+
function y(p) {
|
|
3365
|
+
return p === 45 || fe(p) ? (e.consume(p), y) : R(p);
|
|
3366
3366
|
}
|
|
3367
3367
|
function R(p) {
|
|
3368
3368
|
return M(p) ? (s = R, J(p)) : F(p) ? (e.consume(p), R) : U(p);
|
|
@@ -3627,11 +3627,11 @@ function jl(e, t, n) {
|
|
|
3627
3627
|
let i = o && o[1].type === "linePrefix" ? o[2].sliceSerialize(o[1], !0).length : 0, s = 0;
|
|
3628
3628
|
return l;
|
|
3629
3629
|
function l(h) {
|
|
3630
|
-
const
|
|
3631
|
-
if (
|
|
3632
|
-
if (r.containerState.type || (r.containerState.type =
|
|
3630
|
+
const v = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
|
|
3631
|
+
if (v === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : pn(h)) {
|
|
3632
|
+
if (r.containerState.type || (r.containerState.type = v, e.enter(v, {
|
|
3633
3633
|
_container: !0
|
|
3634
|
-
})),
|
|
3634
|
+
})), v === "listUnordered")
|
|
3635
3635
|
return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(At, n, c)(h) : c(h);
|
|
3636
3636
|
if (!r.interrupt || h === 49)
|
|
3637
3637
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), a(h);
|
|
@@ -3936,11 +3936,11 @@ function da(e, t, n) {
|
|
|
3936
3936
|
let s = [], l = [];
|
|
3937
3937
|
const a = {
|
|
3938
3938
|
attempt: R(H),
|
|
3939
|
-
check: R(
|
|
3939
|
+
check: R(y),
|
|
3940
3940
|
consume: O,
|
|
3941
3941
|
enter: _,
|
|
3942
3942
|
exit: j,
|
|
3943
|
-
interrupt: R(
|
|
3943
|
+
interrupt: R(y, {
|
|
3944
3944
|
interrupt: !0
|
|
3945
3945
|
})
|
|
3946
3946
|
}, c = {
|
|
@@ -3948,7 +3948,7 @@ function da(e, t, n) {
|
|
|
3948
3948
|
containerState: {},
|
|
3949
3949
|
defineSkip: w,
|
|
3950
3950
|
events: [],
|
|
3951
|
-
now:
|
|
3951
|
+
now: v,
|
|
3952
3952
|
parser: e,
|
|
3953
3953
|
previous: null,
|
|
3954
3954
|
sliceSerialize: f,
|
|
@@ -3966,7 +3966,7 @@ function da(e, t, n) {
|
|
|
3966
3966
|
function h(E) {
|
|
3967
3967
|
return ha(s, E);
|
|
3968
3968
|
}
|
|
3969
|
-
function
|
|
3969
|
+
function v() {
|
|
3970
3970
|
const {
|
|
3971
3971
|
_bufferIndex: E,
|
|
3972
3972
|
_index: T,
|
|
@@ -4007,16 +4007,16 @@ function da(e, t, n) {
|
|
|
4007
4007
|
}
|
|
4008
4008
|
function _(E, T) {
|
|
4009
4009
|
const B = T || {};
|
|
4010
|
-
return B.type = E, B.start =
|
|
4010
|
+
return B.type = E, B.start = v(), c.events.push(["enter", B, c]), l.push(B), B;
|
|
4011
4011
|
}
|
|
4012
4012
|
function j(E) {
|
|
4013
4013
|
const T = l.pop();
|
|
4014
|
-
return T.end =
|
|
4014
|
+
return T.end = v(), c.events.push(["exit", T, c]), T;
|
|
4015
4015
|
}
|
|
4016
4016
|
function H(E, T) {
|
|
4017
4017
|
V(E, T.from);
|
|
4018
4018
|
}
|
|
4019
|
-
function
|
|
4019
|
+
function y(E, T) {
|
|
4020
4020
|
T.restore();
|
|
4021
4021
|
}
|
|
4022
4022
|
function R(E, T) {
|
|
@@ -4074,7 +4074,7 @@ function da(e, t, n) {
|
|
|
4074
4074
|
E.resolveAll && !i.includes(E) && i.push(E), E.resolve && we(c.events, T, c.events.length - T, E.resolve(c.events.slice(T), c)), E.resolveTo && (c.events = E.resolveTo(c.events, c));
|
|
4075
4075
|
}
|
|
4076
4076
|
function N() {
|
|
4077
|
-
const E =
|
|
4077
|
+
const E = v(), T = c.previous, B = c.currentConstruct, I = c.events.length, S = Array.from(l);
|
|
4078
4078
|
return {
|
|
4079
4079
|
from: I,
|
|
4080
4080
|
restore: U
|
|
@@ -4283,7 +4283,7 @@ function xa(e) {
|
|
|
4283
4283
|
codeFenced: a(C),
|
|
4284
4284
|
codeFencedFence: w,
|
|
4285
4285
|
codeFencedFenceInfo: h,
|
|
4286
|
-
codeFencedFenceMeta:
|
|
4286
|
+
codeFencedFenceMeta: v,
|
|
4287
4287
|
codeFlowValue: D,
|
|
4288
4288
|
codeIndented: a(b),
|
|
4289
4289
|
codeText: a(S),
|
|
@@ -4315,7 +4315,7 @@ function xa(e) {
|
|
|
4315
4315
|
resource: z,
|
|
4316
4316
|
setextHeading: a(V),
|
|
4317
4317
|
setextHeadingLineSequence: R,
|
|
4318
|
-
setextHeadingText:
|
|
4318
|
+
setextHeadingText: y,
|
|
4319
4319
|
strong: a(),
|
|
4320
4320
|
thematicBreak: a()
|
|
4321
4321
|
}
|
|
@@ -4473,7 +4473,7 @@ function xa(e) {
|
|
|
4473
4473
|
const g = this.resume(), x = this.stack[this.stack.length - 1];
|
|
4474
4474
|
x.lang = g;
|
|
4475
4475
|
}
|
|
4476
|
-
function
|
|
4476
|
+
function v() {
|
|
4477
4477
|
const g = this.resume(), x = this.stack[this.stack.length - 1];
|
|
4478
4478
|
x.meta = g;
|
|
4479
4479
|
}
|
|
@@ -4507,7 +4507,7 @@ function xa(e) {
|
|
|
4507
4507
|
x.depth = L;
|
|
4508
4508
|
}
|
|
4509
4509
|
}
|
|
4510
|
-
function
|
|
4510
|
+
function y() {
|
|
4511
4511
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
4512
4512
|
}
|
|
4513
4513
|
function R(g) {
|
|
@@ -5337,11 +5337,11 @@ function nc(e) {
|
|
|
5337
5337
|
continue;
|
|
5338
5338
|
const u = e.all(c), d = String(c.identifier).toUpperCase(), f = tt(d.toLowerCase());
|
|
5339
5339
|
let h = 0;
|
|
5340
|
-
const
|
|
5340
|
+
const v = [], w = e.footnoteCounts.get(d);
|
|
5341
5341
|
for (; w !== void 0 && ++h <= w; ) {
|
|
5342
|
-
|
|
5342
|
+
v.length > 0 && v.push({ type: "text", value: " " });
|
|
5343
5343
|
let O = typeof n == "string" ? n : n(a, h);
|
|
5344
|
-
typeof O == "string" && (O = { type: "text", value: O }),
|
|
5344
|
+
typeof O == "string" && (O = { type: "text", value: O }), v.push({
|
|
5345
5345
|
type: "element",
|
|
5346
5346
|
tagName: "a",
|
|
5347
5347
|
properties: {
|
|
@@ -5356,9 +5356,9 @@ function nc(e) {
|
|
|
5356
5356
|
const C = u[u.length - 1];
|
|
5357
5357
|
if (C && C.type === "element" && C.tagName === "p") {
|
|
5358
5358
|
const O = C.children[C.children.length - 1];
|
|
5359
|
-
O && O.type === "text" ? O.value += " " : C.children.push({ type: "text", value: " " }), C.children.push(...
|
|
5359
|
+
O && O.type === "text" ? O.value += " " : C.children.push({ type: "text", value: " " }), C.children.push(...v);
|
|
5360
5360
|
} else
|
|
5361
|
-
u.push(...
|
|
5361
|
+
u.push(...v);
|
|
5362
5362
|
const b = {
|
|
5363
5363
|
type: "element",
|
|
5364
5364
|
tagName: "li",
|
|
@@ -5508,7 +5508,7 @@ function uc(e, t, n, r) {
|
|
|
5508
5508
|
}
|
|
5509
5509
|
return f;
|
|
5510
5510
|
function f() {
|
|
5511
|
-
let h = Do,
|
|
5511
|
+
let h = Do, v, w, C;
|
|
5512
5512
|
if ((!t || i(a, c, u[u.length - 1] || void 0)) && (h = dc(n(a, u)), h[0] === Sr))
|
|
5513
5513
|
return h;
|
|
5514
5514
|
if ("children" in a && a.children) {
|
|
@@ -5519,9 +5519,9 @@ function uc(e, t, n, r) {
|
|
|
5519
5519
|
if (b.children && h[0] !== cc)
|
|
5520
5520
|
for (w = (r ? b.children.length : -1) + s, C = u.concat(b); w > -1 && w < b.children.length; ) {
|
|
5521
5521
|
const O = b.children[w];
|
|
5522
|
-
if (
|
|
5523
|
-
return
|
|
5524
|
-
w = typeof
|
|
5522
|
+
if (v = l(O, w, C)(), v[0] === Sr)
|
|
5523
|
+
return v;
|
|
5524
|
+
w = typeof v[1] == "number" ? v[1] : w + s;
|
|
5525
5525
|
}
|
|
5526
5526
|
}
|
|
5527
5527
|
return h;
|
|
@@ -5566,7 +5566,7 @@ function pc(e, t) {
|
|
|
5566
5566
|
return h(l, u, d);
|
|
5567
5567
|
if (l.options.passThrough && l.options.passThrough.includes(f)) {
|
|
5568
5568
|
if ("children" in u) {
|
|
5569
|
-
const { children:
|
|
5569
|
+
const { children: v, ...w } = u, C = Nt(w);
|
|
5570
5570
|
return C.children = l.all(u), C;
|
|
5571
5571
|
}
|
|
5572
5572
|
return Nt(u);
|
|
@@ -5579,13 +5579,13 @@ function pc(e, t) {
|
|
|
5579
5579
|
const f = u.children;
|
|
5580
5580
|
let h = -1;
|
|
5581
5581
|
for (; ++h < f.length; ) {
|
|
5582
|
-
const
|
|
5583
|
-
if (
|
|
5584
|
-
if (h && f[h - 1].type === "break" && (!Array.isArray(
|
|
5585
|
-
const w =
|
|
5582
|
+
const v = l.one(f[h], u);
|
|
5583
|
+
if (v) {
|
|
5584
|
+
if (h && f[h - 1].type === "break" && (!Array.isArray(v) && v.type === "text" && (v.value = _r(v.value)), !Array.isArray(v) && v.type === "element")) {
|
|
5585
|
+
const w = v.children[0];
|
|
5586
5586
|
w && w.type === "text" && (w.value = _r(w.value));
|
|
5587
5587
|
}
|
|
5588
|
-
Array.isArray(
|
|
5588
|
+
Array.isArray(v) ? d.push(...v) : d.push(v);
|
|
5589
5589
|
}
|
|
5590
5590
|
}
|
|
5591
5591
|
}
|
|
@@ -5690,11 +5690,11 @@ function bc() {
|
|
|
5690
5690
|
return a[c];
|
|
5691
5691
|
};
|
|
5692
5692
|
return Yt = function a() {
|
|
5693
|
-
var c, u, d, f, h,
|
|
5693
|
+
var c, u, d, f, h, v, w = arguments[0], C = 1, b = arguments.length, O = !1;
|
|
5694
5694
|
for (typeof w == "boolean" && (O = w, w = arguments[1] || {}, C = 2), (w == null || typeof w != "object" && typeof w != "function") && (w = {}); C < b; ++C)
|
|
5695
5695
|
if (c = arguments[C], c != null)
|
|
5696
5696
|
for (u in c)
|
|
5697
|
-
d = l(w, u), f = l(c, u), w !== f && (O && f && (i(f) || (h = o(f))) ? (h ? (h = !1,
|
|
5697
|
+
d = l(w, u), f = l(c, u), w !== f && (O && f && (i(f) || (h = o(f))) ? (h ? (h = !1, v = d && o(d) ? d : []) : v = d && i(d) ? d : {}, s(w, { name: u, newValue: a(O, v, f) })) : typeof f < "u" && s(w, { name: u, newValue: f }));
|
|
5698
5698
|
return w;
|
|
5699
5699
|
}, Yt;
|
|
5700
5700
|
}
|
|
@@ -6539,8 +6539,8 @@ class Ln extends Nc {
|
|
|
6539
6539
|
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
6540
6540
|
/** @type {unknown} */
|
|
6541
6541
|
d
|
|
6542
|
-
),
|
|
6543
|
-
Dc(
|
|
6542
|
+
), v = r.stringify(h, f);
|
|
6543
|
+
Dc(v) ? f.value = v : f.result = v, c(
|
|
6544
6544
|
u,
|
|
6545
6545
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
6546
6546
|
f
|
|
@@ -6809,9 +6809,9 @@ class Ln extends Nc {
|
|
|
6809
6809
|
if (f === -1)
|
|
6810
6810
|
r.push([c, ...u]);
|
|
6811
6811
|
else if (u.length > 0) {
|
|
6812
|
-
let [h, ...
|
|
6812
|
+
let [h, ...v] = u;
|
|
6813
6813
|
const w = r[f][1];
|
|
6814
|
-
gn(w) && gn(h) && (h = Gt(!0, w, h)), r[f] = [c, h, ...
|
|
6814
|
+
gn(w) && gn(h) && (h = Gt(!0, w, h)), r[f] = [c, h, ...v];
|
|
6815
6815
|
}
|
|
6816
6816
|
}
|
|
6817
6817
|
}
|
|
@@ -6930,8 +6930,8 @@ function Kc(e, t) {
|
|
|
6930
6930
|
let h;
|
|
6931
6931
|
for (h in Kt)
|
|
6932
6932
|
if (Object.hasOwn(Kt, h) && Object.hasOwn(u.properties, h)) {
|
|
6933
|
-
const
|
|
6934
|
-
(w === null || w.includes(u.tagName)) && (u.properties[h] = a(String(
|
|
6933
|
+
const v = u.properties[h], w = Kt[h];
|
|
6934
|
+
(w === null || w.includes(u.tagName)) && (u.properties[h] = a(String(v || ""), h, u));
|
|
6935
6935
|
}
|
|
6936
6936
|
}
|
|
6937
6937
|
if (u.type === "element") {
|
|
@@ -7007,12 +7007,12 @@ const Xc = "_renderer_qbz39_1", Yc = {
|
|
|
7007
7007
|
}, au = ({ react: e, tagName: t, elementClass: n, events: r, displayName: o }) => {
|
|
7008
7008
|
const i = new Set(Object.keys(r ?? {})), s = e.forwardRef((l, a) => {
|
|
7009
7009
|
const c = e.useRef(/* @__PURE__ */ new Map()), u = e.useRef(null), d = {}, f = {};
|
|
7010
|
-
for (const [h,
|
|
7010
|
+
for (const [h, v] of Object.entries(l)) lu.has(h) ? d[h === "className" ? "class" : h] = v : i.has(h) || h in n.prototype ? f[h] = v : d[h] = v;
|
|
7011
7011
|
return e.useLayoutEffect(() => {
|
|
7012
7012
|
if (u.current === null) return;
|
|
7013
7013
|
const h = /* @__PURE__ */ new Map();
|
|
7014
|
-
for (const
|
|
7015
|
-
for (const [
|
|
7014
|
+
for (const v in f) Rr(u.current, v, l[v], c.current.get(v), r), c.current.delete(v), h.set(v, l[v]);
|
|
7015
|
+
for (const [v, w] of c.current) Rr(u.current, v, void 0, w, r);
|
|
7016
7016
|
c.current = h;
|
|
7017
7017
|
}), e.useLayoutEffect(() => {
|
|
7018
7018
|
u.current?.removeAttribute("defer-hydration");
|
|
@@ -7308,8 +7308,8 @@ class vt {
|
|
|
7308
7308
|
for (; (o = ze.nextNode()) !== null && a.length < l; ) {
|
|
7309
7309
|
if (o.nodeType === 1) {
|
|
7310
7310
|
if (o.hasAttributes()) for (const d of o.getAttributeNames()) if (d.endsWith(Ho)) {
|
|
7311
|
-
const f = u[s++], h = o.getAttribute(d).split(Ee),
|
|
7312
|
-
a.push({ type: 1, index: i, name:
|
|
7311
|
+
const f = u[s++], h = o.getAttribute(d).split(Ee), v = /([.?@])?(.*)/.exec(f);
|
|
7312
|
+
a.push({ type: 1, index: i, name: v[2], strings: h, ctor: v[1] === "." ? Tu : v[1] === "?" ? Eu : v[1] === "@" ? Au : Ht }), o.removeAttribute(d);
|
|
7313
7313
|
} else d.startsWith(Ee) && (a.push({ type: 6, index: i }), o.removeAttribute(d));
|
|
7314
7314
|
if (qo.test(o.tagName)) {
|
|
7315
7315
|
const d = o.textContent.split(Ee), f = d.length - 1;
|
|
@@ -8215,7 +8215,7 @@ const Xr = (e) => {
|
|
|
8215
8215
|
a(!1);
|
|
8216
8216
|
}, []), h = re(() => {
|
|
8217
8217
|
a((C) => !C);
|
|
8218
|
-
}, []),
|
|
8218
|
+
}, []), v = re(() => {
|
|
8219
8219
|
r?.();
|
|
8220
8220
|
}, [r]), w = re(() => {
|
|
8221
8221
|
u(), o?.();
|
|
@@ -8260,7 +8260,7 @@ const Xr = (e) => {
|
|
|
8260
8260
|
Ei,
|
|
8261
8261
|
{
|
|
8262
8262
|
onSend: d,
|
|
8263
|
-
onStop:
|
|
8263
|
+
onStop: v,
|
|
8264
8264
|
isBusy: t
|
|
8265
8265
|
}
|
|
8266
8266
|
)
|
|
@@ -8311,20 +8311,20 @@ const Xr = (e) => {
|
|
|
8311
8311
|
}, ph = (e, t) => ({
|
|
8312
8312
|
contentType: e === "layout_bpmn_xml" || e === "get_current_bpmn_xml" ? "BPMN" : "TEXT",
|
|
8313
8313
|
resultString: typeof t == "string" ? t : JSON.stringify(t)
|
|
8314
|
-
}), fh = (e, t) => ah(e) ? t(e.type, e.toolName) : void 0, mh = (e, t, n, r, o, i) => {
|
|
8314
|
+
}), fh = (e, t) => ah(e) ? t(e.type, e.toolName) : void 0, mh = (e, t, n, r, o, i, s) => {
|
|
8315
8315
|
if (!ch(e))
|
|
8316
8316
|
return { newBlockId: n, newContent: r };
|
|
8317
|
-
const
|
|
8318
|
-
if (!
|
|
8317
|
+
const l = Hn(e) ? e.content || "" : dh(e);
|
|
8318
|
+
if (!l)
|
|
8319
8319
|
return { newBlockId: n, newContent: r };
|
|
8320
|
-
const
|
|
8321
|
-
|
|
8322
|
-
|
|
8320
|
+
const a = !n, c = a ? Go() : n, u = o || i || `Thinking (${s + 1})...`, d = uh(
|
|
8321
|
+
l,
|
|
8322
|
+
a ? "" : r
|
|
8323
8323
|
);
|
|
8324
8324
|
return {
|
|
8325
|
-
action:
|
|
8326
|
-
newBlockId:
|
|
8327
|
-
newContent:
|
|
8325
|
+
action: a ? { type: "ADD_BLOCK", messageId: t, blockId: c, label: u, content: d } : { type: "APPEND_BLOCK", messageId: t, blockId: c, label: "", content: d },
|
|
8326
|
+
newBlockId: c,
|
|
8327
|
+
newContent: l
|
|
8328
8328
|
};
|
|
8329
8329
|
}, gh = (e, t, n, r, o, i, s, l) => {
|
|
8330
8330
|
if (!t)
|
|
@@ -8335,43 +8335,44 @@ const Xr = (e) => {
|
|
|
8335
8335
|
newBlockCount: i
|
|
8336
8336
|
};
|
|
8337
8337
|
if (lh(e)) {
|
|
8338
|
-
const
|
|
8338
|
+
const v = `**Error**: ${e.content || "Copilot agent error"}`, w = n || Go(), C = n ? {
|
|
8339
8339
|
type: "APPEND_BLOCK",
|
|
8340
8340
|
messageId: t,
|
|
8341
8341
|
blockId: n,
|
|
8342
8342
|
label: "",
|
|
8343
8343
|
content: `
|
|
8344
8344
|
|
|
8345
|
-
${
|
|
8345
|
+
${v}`
|
|
8346
8346
|
} : {
|
|
8347
8347
|
type: "ADD_BLOCK",
|
|
8348
8348
|
messageId: t,
|
|
8349
|
-
blockId:
|
|
8349
|
+
blockId: w,
|
|
8350
8350
|
label: "Error",
|
|
8351
|
-
content:
|
|
8351
|
+
content: v
|
|
8352
8352
|
};
|
|
8353
8353
|
return {
|
|
8354
8354
|
error: e.content || "Copilot agent error",
|
|
8355
|
-
thinkingAction:
|
|
8355
|
+
thinkingAction: C,
|
|
8356
8356
|
newBlockId: null,
|
|
8357
8357
|
newThinkingContent: "",
|
|
8358
8358
|
newAccumulatedContent: s,
|
|
8359
8359
|
newBlockCount: n ? i : i + 1
|
|
8360
8360
|
};
|
|
8361
8361
|
}
|
|
8362
|
-
const a = fh(e, l),
|
|
8363
|
-
action:
|
|
8364
|
-
newBlockId:
|
|
8365
|
-
newContent:
|
|
8362
|
+
const a = fh(e, l), {
|
|
8363
|
+
action: c,
|
|
8364
|
+
newBlockId: u,
|
|
8365
|
+
newContent: d
|
|
8366
8366
|
} = mh(
|
|
8367
8367
|
e,
|
|
8368
8368
|
t,
|
|
8369
8369
|
n,
|
|
8370
8370
|
r,
|
|
8371
|
-
|
|
8371
|
+
a || "",
|
|
8372
|
+
o,
|
|
8372
8373
|
i
|
|
8373
|
-
),
|
|
8374
|
-
return Yo(e) ? n &&
|
|
8374
|
+
), f = c?.type === "ADD_BLOCK" ? i + 1 : i, h = Hn(e) && e.content ? e.content : s;
|
|
8375
|
+
return Yo(e) ? n && c ? {
|
|
8375
8376
|
statusLabel: a,
|
|
8376
8377
|
thinkingAction: {
|
|
8377
8378
|
type: "COMPLETE_BLOCK",
|
|
@@ -8382,15 +8383,15 @@ ${w}`
|
|
|
8382
8383
|
},
|
|
8383
8384
|
newBlockId: null,
|
|
8384
8385
|
newThinkingContent: "",
|
|
8385
|
-
newAccumulatedContent:
|
|
8386
|
-
newBlockCount:
|
|
8386
|
+
newAccumulatedContent: h,
|
|
8387
|
+
newBlockCount: f
|
|
8387
8388
|
} : {
|
|
8388
8389
|
statusLabel: a,
|
|
8389
|
-
thinkingAction:
|
|
8390
|
+
thinkingAction: c,
|
|
8390
8391
|
newBlockId: null,
|
|
8391
8392
|
newThinkingContent: "",
|
|
8392
|
-
newAccumulatedContent:
|
|
8393
|
-
newBlockCount:
|
|
8393
|
+
newAccumulatedContent: h,
|
|
8394
|
+
newBlockCount: f
|
|
8394
8395
|
} : sh(e) ? {
|
|
8395
8396
|
statusLabel: a,
|
|
8396
8397
|
thinkingAction: {
|
|
@@ -8400,18 +8401,18 @@ ${w}`
|
|
|
8400
8401
|
label: "",
|
|
8401
8402
|
content: ""
|
|
8402
8403
|
},
|
|
8403
|
-
finalContent:
|
|
8404
|
+
finalContent: h,
|
|
8404
8405
|
newBlockId: null,
|
|
8405
8406
|
newThinkingContent: "",
|
|
8406
|
-
newAccumulatedContent:
|
|
8407
|
-
newBlockCount:
|
|
8407
|
+
newAccumulatedContent: h,
|
|
8408
|
+
newBlockCount: f
|
|
8408
8409
|
} : {
|
|
8409
8410
|
statusLabel: a,
|
|
8410
|
-
thinkingAction:
|
|
8411
|
-
newBlockId:
|
|
8412
|
-
newThinkingContent:
|
|
8413
|
-
newAccumulatedContent:
|
|
8414
|
-
newBlockCount:
|
|
8411
|
+
thinkingAction: c,
|
|
8412
|
+
newBlockId: u,
|
|
8413
|
+
newThinkingContent: d,
|
|
8414
|
+
newAccumulatedContent: h,
|
|
8415
|
+
newBlockCount: f
|
|
8415
8416
|
};
|
|
8416
8417
|
}, Th = ({
|
|
8417
8418
|
transport: e,
|
|
@@ -8429,9 +8430,9 @@ ${w}`
|
|
|
8429
8430
|
(p) => p.completeThinkingBlock
|
|
8430
8431
|
), u = se(
|
|
8431
8432
|
(p) => p.completeAllThinkingBlocks
|
|
8432
|
-
), d = se((p) => p.setMessageContent), f = se((p) => p.setMessageSources), h = se((p) => p.clearMessages),
|
|
8433
|
+
), d = se((p) => p.setMessageContent), f = se((p) => p.setMessageSources), h = se((p) => p.clearMessages), v = ie((p) => p.conversationId), w = ie(Yd), C = ie((p) => p.startConversation), b = ie((p) => p.setFrontendTools), O = ie((p) => p.processEvent), _ = ie((p) => p.reset), j = Pe((p) => p.initContext), H = Pe(
|
|
8433
8434
|
(p) => p.updateThinkingBlock
|
|
8434
|
-
),
|
|
8435
|
+
), y = Pe(
|
|
8435
8436
|
(p) => p.updateStatusLabel
|
|
8436
8437
|
), R = Pe(
|
|
8437
8438
|
(p) => p.updateAccumulatedContent
|
|
@@ -8519,7 +8520,7 @@ ${w}`
|
|
|
8519
8520
|
ie.getState().setError(z.error);
|
|
8520
8521
|
return;
|
|
8521
8522
|
}
|
|
8522
|
-
z.statusLabel && $.messageId && (s($.messageId, z.statusLabel),
|
|
8523
|
+
z.statusLabel && $.messageId && (s($.messageId, z.statusLabel), y(z.statusLabel)), z.thinkingAction && (hh(z.thinkingAction, {
|
|
8523
8524
|
addThinkingBlock: l,
|
|
8524
8525
|
appendToThinkingBlock: a,
|
|
8525
8526
|
completeThinkingBlock: c,
|
|
@@ -8534,7 +8535,7 @@ ${w}`
|
|
|
8534
8535
|
[
|
|
8535
8536
|
r,
|
|
8536
8537
|
s,
|
|
8537
|
-
|
|
8538
|
+
y,
|
|
8538
8539
|
l,
|
|
8539
8540
|
a,
|
|
8540
8541
|
c,
|
|
@@ -8552,7 +8553,7 @@ ${w}`
|
|
|
8552
8553
|
if (!p.trim() || w)
|
|
8553
8554
|
return;
|
|
8554
8555
|
o(p);
|
|
8555
|
-
const $ =
|
|
8556
|
+
const $ = v || crypto.randomUUID(), z = crypto.randomUUID(), m = !v;
|
|
8556
8557
|
j(z), C($, z), i(z), b(t), m && T.current.subscribe($, U);
|
|
8557
8558
|
try {
|
|
8558
8559
|
await T.current.sendMessage({
|
|
@@ -8569,7 +8570,7 @@ ${w}`
|
|
|
8569
8570
|
[
|
|
8570
8571
|
o,
|
|
8571
8572
|
i,
|
|
8572
|
-
|
|
8573
|
+
v,
|
|
8573
8574
|
t,
|
|
8574
8575
|
w,
|
|
8575
8576
|
j,
|
package/dist/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentEvent, EventTypeValue } from '../types
|
|
1
|
+
import { AgentEvent, EventTypeValue } from '../types';
|
|
2
2
|
import { ThinkingBlockAction } from './thinkingBlockUtils';
|
|
3
3
|
export { formatToolResult } from './toolResultFormatter';
|
|
4
4
|
export { applyThinkingAction } from './thinkingBlockUtils';
|
|
@@ -10,7 +10,7 @@ export interface EventResult {
|
|
|
10
10
|
readonly error?: string;
|
|
11
11
|
}
|
|
12
12
|
export declare const deriveStatusLabel: (event: AgentEvent, getStatusLabel: (type: EventTypeValue, toolName?: string) => string) => string | undefined;
|
|
13
|
-
export declare const deriveThinkingAction: (event: AgentEvent, messageId: string, currentBlockId: string | null, lastContent: string,
|
|
13
|
+
export declare const deriveThinkingAction: (event: AgentEvent, messageId: string, currentBlockId: string | null, lastContent: string, currentStatusLabel: string, fallbackStatusLabel: string, blockCount: number) => {
|
|
14
14
|
action?: ThinkingBlockAction;
|
|
15
15
|
newBlockId: string | null;
|
|
16
16
|
newContent: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventHandlers.d.ts","sourceRoot":"","sources":["../../src/utils/eventHandlers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"eventHandlers.d.ts","sourceRoot":"","sources":["../../src/utils/eventHandlers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAS3D,OAAO,EACL,KAAK,mBAAmB,EAIzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,cAAc,CAAC,EAAE,mBAAmB,CAAC;IAC9C,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB,GAC5B,OAAO,UAAU,EACjB,gBAAgB,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,MAAM,KAClE,MAAM,GAAG,SAGG,CAAC;AAEhB,eAAO,MAAM,oBAAoB,GAC/B,OAAO,UAAU,EACjB,WAAW,MAAM,EACjB,gBAAgB,MAAM,GAAG,IAAI,EAC7B,aAAa,MAAM,EACnB,oBAAoB,MAAM,EAC1B,qBAAqB,MAAM,EAC3B,YAAY,MAAM,KACjB;IACD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CAgCpB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,OAAO,UAAU,EACjB,WAAW,MAAM,GAAG,IAAI,EACxB,gBAAgB,MAAM,GAAG,IAAI,EAC7B,qBAAqB,MAAM,EAC3B,iBAAiB,MAAM,EACvB,YAAY,MAAM,EAClB,oBAAoB,MAAM,EAC1B,gBAAgB,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,MAAM,KAClE,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;CAqHvB,CAAC"}
|
package/package.json
CHANGED