page-agent-sdk 3.22.0 → 3.22.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/dist/page-agent-sdk.iife.js +108 -108
- package/dist/page-agent-sdk.js +714 -711
- package/dist/page-agent-sdk.umd.cjs +28 -28
- package/package.json +1 -1
package/dist/page-agent-sdk.js
CHANGED
|
@@ -15311,13 +15311,16 @@ var Zv = [
|
|
|
15311
15311
|
"span"
|
|
15312
15312
|
], Qv = /* @__PURE__ */ "viewBox.xmlns.width.height.fill.fill-rule.fill-opacity.stroke.stroke-width.stroke-linecap.stroke-linejoin.stroke-opacity.stroke-dasharray.d.cx.cy.r.rx.ry.x.y.x1.y1.x2.y2.points.transform.opacity.clip-rule.src.alt.class.aria-hidden".split(".");
|
|
15313
15313
|
function $v(e) {
|
|
15314
|
-
return
|
|
15314
|
+
return e.replace(/<[^>]*>/g, "");
|
|
15315
|
+
}
|
|
15316
|
+
function ey(e) {
|
|
15317
|
+
return typeof Yv.sanitize == "function" ? Yv.sanitize(e, {
|
|
15315
15318
|
ALLOWED_TAGS: [...Zv],
|
|
15316
15319
|
ALLOWED_ATTR: [...Qv],
|
|
15317
15320
|
ALLOW_DATA_ATTR: !1
|
|
15318
|
-
});
|
|
15321
|
+
}) : $v(e);
|
|
15319
15322
|
}
|
|
15320
|
-
var
|
|
15323
|
+
var ty = [
|
|
15321
15324
|
"b",
|
|
15322
15325
|
"strong",
|
|
15323
15326
|
"i",
|
|
@@ -15331,59 +15334,59 @@ var ey = [
|
|
|
15331
15334
|
"code",
|
|
15332
15335
|
"kbd",
|
|
15333
15336
|
"br"
|
|
15334
|
-
],
|
|
15337
|
+
], ny = [
|
|
15335
15338
|
"class",
|
|
15336
15339
|
"style",
|
|
15337
15340
|
"title"
|
|
15338
15341
|
];
|
|
15339
|
-
function
|
|
15340
|
-
return Yv.sanitize(e, {
|
|
15341
|
-
ALLOWED_TAGS: [...
|
|
15342
|
-
ALLOWED_ATTR: [...
|
|
15342
|
+
function ry(e) {
|
|
15343
|
+
return typeof Yv.sanitize == "function" ? Yv.sanitize(e, {
|
|
15344
|
+
ALLOWED_TAGS: [...ty],
|
|
15345
|
+
ALLOWED_ATTR: [...ny],
|
|
15343
15346
|
ALLOW_DATA_ATTR: !1
|
|
15344
|
-
});
|
|
15347
|
+
}) : $v(e);
|
|
15345
15348
|
}
|
|
15346
15349
|
//#endregion
|
|
15347
15350
|
//#region src/core/components/IconGlyph.vue?vue&type=script&setup=true&lang.ts
|
|
15348
|
-
var
|
|
15351
|
+
var iy = ["innerHTML"], ay = {
|
|
15349
15352
|
key: 1,
|
|
15350
15353
|
class: "icon-text"
|
|
15351
|
-
},
|
|
15354
|
+
}, oy = /*@__PURE__*/ Ii({
|
|
15352
15355
|
__name: "IconGlyph",
|
|
15353
15356
|
props: { icon: {} },
|
|
15354
15357
|
setup(e) {
|
|
15355
|
-
let t = e, n = Qs(() => Xv(t.icon)), r = Qs(() => n.value ?
|
|
15358
|
+
let t = e, n = Qs(() => Xv(t.icon)), r = Qs(() => n.value ? ey(t.icon) : "");
|
|
15356
15359
|
return (t, i) => n.value ? (J(), Y("span", {
|
|
15357
15360
|
key: 0,
|
|
15358
15361
|
class: "icon-html",
|
|
15359
15362
|
innerHTML: r.value
|
|
15360
|
-
}, null, 8,
|
|
15363
|
+
}, null, 8, iy)) : (J(), Y("span", ay, U(e.icon), 1));
|
|
15361
15364
|
}
|
|
15362
|
-
}),
|
|
15365
|
+
}), sy = (e, t) => {
|
|
15363
15366
|
let n = e.__vccOpts || e;
|
|
15364
15367
|
for (let [e, r] of t) n[e] = r;
|
|
15365
15368
|
return n;
|
|
15366
|
-
},
|
|
15369
|
+
}, cy = /*#__PURE__*/ sy(oy, [["__scopeId", "data-v-7d3cf5e5"]]), ly = ["innerHTML"], uy = /* @__PURE__ */ Ii({
|
|
15367
15370
|
__name: "MsgText",
|
|
15368
15371
|
props: { text: {} },
|
|
15369
15372
|
setup(e) {
|
|
15370
|
-
let t = e, n = Qs(() => Xv(t.text) ?
|
|
15373
|
+
let t = e, n = Qs(() => Xv(t.text) ? ry(t.text) : "");
|
|
15371
15374
|
return (t, r) => n.value ? (J(), Y("span", {
|
|
15372
15375
|
key: 0,
|
|
15373
15376
|
class: "msg-rich",
|
|
15374
15377
|
innerHTML: n.value
|
|
15375
|
-
}, null, 8,
|
|
15378
|
+
}, null, 8, ly)) : (J(), Y(q, { key: 1 }, [_s(U(e.text), 1)], 64));
|
|
15376
15379
|
}
|
|
15377
|
-
}),
|
|
15380
|
+
}), dy = { class: "chat-header" }, fy = { class: "header-left" }, py = { class: "header-icon" }, my = { class: "header-title" }, hy = {
|
|
15378
15381
|
key: 0,
|
|
15379
15382
|
class: "status-dot pulse"
|
|
15380
|
-
},
|
|
15383
|
+
}, gy = ["title"], _y = ["title"], vy = ["data-sid", "onClick"], yy = { class: "hist-title" }, by = { class: "hist-meta" }, xy = ["onClick"], Sy = ["title"], Cy = {
|
|
15381
15384
|
key: 0,
|
|
15382
15385
|
class: "debug-badge"
|
|
15383
|
-
},
|
|
15386
|
+
}, wy = ["title"], Ty = {
|
|
15384
15387
|
key: 0,
|
|
15385
15388
|
class: "more-item-badge"
|
|
15386
|
-
},
|
|
15389
|
+
}, Ey = ["title"], Dy = ["title", "disabled"], Oy = ["title"], ky = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
15387
15390
|
__name: "ChatHeader",
|
|
15388
15391
|
props: {
|
|
15389
15392
|
title: {},
|
|
@@ -15409,11 +15412,11 @@ var ry = ["innerHTML"], iy = {
|
|
|
15409
15412
|
function h(e) {
|
|
15410
15413
|
s(), t.onOpenSession?.(e);
|
|
15411
15414
|
}
|
|
15412
|
-
return (t, r) => (J(), Y("div",
|
|
15413
|
-
X("div",
|
|
15414
|
-
X("span",
|
|
15415
|
-
X("span",
|
|
15416
|
-
G(o).loading ? (J(), Y("span",
|
|
15415
|
+
return (t, r) => (J(), Y("div", dy, [
|
|
15416
|
+
X("div", fy, [
|
|
15417
|
+
X("span", py, [Z(cy, { icon: G(i).header }, null, 8, ["icon"])]),
|
|
15418
|
+
X("span", my, [Z(uy, { text: e.title }, null, 8, ["text"])]),
|
|
15419
|
+
G(o).loading ? (J(), Y("span", hy)) : Q("", !0)
|
|
15417
15420
|
]),
|
|
15418
15421
|
X("div", {
|
|
15419
15422
|
class: "header-actions",
|
|
@@ -15432,7 +15435,7 @@ var ry = ["innerHTML"], iy = {
|
|
|
15432
15435
|
fill: "none",
|
|
15433
15436
|
stroke: "currentColor",
|
|
15434
15437
|
"stroke-width": "2"
|
|
15435
|
-
}, [X("path", { d: "M12 5v14M5 12h14" })], -1)]], 8,
|
|
15438
|
+
}, [X("path", { d: "M12 5v14M5 12h14" })], -1)]], 8, gy)) : Q("", !0),
|
|
15436
15439
|
e.sessions ? (J(), Y("button", {
|
|
15437
15440
|
key: 1,
|
|
15438
15441
|
class: H(["action-btn", { active: u.value }]),
|
|
@@ -15452,7 +15455,7 @@ var ry = ["innerHTML"], iy = {
|
|
|
15452
15455
|
X("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
|
|
15453
15456
|
X("path", { d: "M3 3v5h5" }),
|
|
15454
15457
|
X("path", { d: "M12 7v5l3 2" })
|
|
15455
|
-
], -1)]], 10,
|
|
15458
|
+
], -1)]], 10, _y)) : Q("", !0),
|
|
15456
15459
|
e.sessions && u.value ? (J(), Y("div", {
|
|
15457
15460
|
key: 2,
|
|
15458
15461
|
class: "cs-history-menu",
|
|
@@ -15462,12 +15465,12 @@ var ry = ["innerHTML"], iy = {
|
|
|
15462
15465
|
class: H(["hist-item", { active: e.currentSessionId === t.sessionId }]),
|
|
15463
15466
|
"data-sid": t.sessionId,
|
|
15464
15467
|
onClick: (e) => h(t.sessionId)
|
|
15465
|
-
}, [X("div",
|
|
15468
|
+
}, [X("div", yy, U(t.title || G(a).sessionFallbackPrefix + t.sessionId.slice(-6)), 1), X("div", by, [X("span", null, U(p(t.lastAccessed)), 1), e.currentSessionId === t.sessionId ? Q("", !0) : (J(), Y("button", {
|
|
15466
15469
|
key: 0,
|
|
15467
15470
|
class: "hist-del",
|
|
15468
15471
|
"data-test": "del-btn",
|
|
15469
15472
|
onClick: yl((n) => e.onRemoveSession?.(t.sessionId), ["stop"])
|
|
15470
|
-
}, "✕", 8,
|
|
15473
|
+
}, "✕", 8, xy))])], 10, vy))), 128))])) : Q("", !0),
|
|
15471
15474
|
X("button", {
|
|
15472
15475
|
class: H(["action-btn more-btn", { active: l.value }]),
|
|
15473
15476
|
title: G(a).more,
|
|
@@ -15495,7 +15498,7 @@ var ry = ["innerHTML"], iy = {
|
|
|
15495
15498
|
cy: "19",
|
|
15496
15499
|
r: "1.6"
|
|
15497
15500
|
})
|
|
15498
|
-
], -1), f.value ? (J(), Y("span",
|
|
15501
|
+
], -1), f.value ? (J(), Y("span", Cy, U(e.debugLogs?.length), 1)) : Q("", !0)], 10, Sy),
|
|
15499
15502
|
l.value ? (J(), Y("div", {
|
|
15500
15503
|
key: 3,
|
|
15501
15504
|
class: "more-menu",
|
|
@@ -15521,8 +15524,8 @@ var ry = ["innerHTML"], iy = {
|
|
|
15521
15524
|
X("path", { d: "M9 18h6" })
|
|
15522
15525
|
], -1),
|
|
15523
15526
|
X("span", null, U(G(a).debugMenu), 1),
|
|
15524
|
-
f.value ? (J(), Y("span",
|
|
15525
|
-
], 8,
|
|
15527
|
+
f.value ? (J(), Y("span", Ty, U(e.debugLogs?.length), 1)) : Q("", !0)
|
|
15528
|
+
], 8, wy),
|
|
15526
15529
|
e.skillAvailable ? (J(), Y("button", {
|
|
15527
15530
|
key: 0,
|
|
15528
15531
|
class: "more-item",
|
|
@@ -15537,7 +15540,7 @@ var ry = ["innerHTML"], iy = {
|
|
|
15537
15540
|
fill: "none",
|
|
15538
15541
|
stroke: "currentColor",
|
|
15539
15542
|
"stroke-width": "2"
|
|
15540
|
-
}, [X("path", { d: "M12 2l2.4 7.4H22l-6 4.4 2.3 7.2L12 16.8 5.7 21l2.3-7.2-6-4.4h7.6z" })], -1), X("span", null, U(G(a).skillMenu), 1)], 8,
|
|
15543
|
+
}, [X("path", { d: "M12 2l2.4 7.4H22l-6 4.4 2.3 7.2L12 16.8 5.7 21l2.3-7.2-6-4.4h7.6z" })], -1), X("span", null, U(G(a).skillMenu), 1)], 8, Ey)) : Q("", !0),
|
|
15541
15544
|
X("button", {
|
|
15542
15545
|
class: "more-item",
|
|
15543
15546
|
title: G(a).clearChat,
|
|
@@ -15552,7 +15555,7 @@ var ry = ["innerHTML"], iy = {
|
|
|
15552
15555
|
fill: "none",
|
|
15553
15556
|
stroke: "currentColor",
|
|
15554
15557
|
"stroke-width": "2"
|
|
15555
|
-
}, [X("polyline", { points: "3 6 5 6 21 6" }), X("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })], -1), X("span", null, U(G(a).clearChat), 1)], 8,
|
|
15558
|
+
}, [X("polyline", { points: "3 6 5 6 21 6" }), X("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })], -1), X("span", null, U(G(a).clearChat), 1)], 8, Dy)
|
|
15556
15559
|
])) : Q("", !0),
|
|
15557
15560
|
e.drawer ? (J(), Y("button", {
|
|
15558
15561
|
key: 4,
|
|
@@ -15566,7 +15569,7 @@ var ry = ["innerHTML"], iy = {
|
|
|
15566
15569
|
fill: "none",
|
|
15567
15570
|
stroke: "currentColor",
|
|
15568
15571
|
"stroke-width": "2"
|
|
15569
|
-
}, [X("path", { d: "M18 6L6 18M6 6l12 12" })], -1)]], 8,
|
|
15572
|
+
}, [X("path", { d: "M18 6L6 18M6 6l12 12" })], -1)]], 8, Oy)) : Q("", !0)
|
|
15570
15573
|
]),
|
|
15571
15574
|
l.value || u.value ? (J(), Y("div", {
|
|
15572
15575
|
key: 0,
|
|
@@ -15577,16 +15580,16 @@ var ry = ["innerHTML"], iy = {
|
|
|
15577
15580
|
})) : Q("", !0)
|
|
15578
15581
|
]));
|
|
15579
15582
|
}
|
|
15580
|
-
}), [["__scopeId", "data-v-0d783fe2"]]),
|
|
15583
|
+
}), [["__scopeId", "data-v-0d783fe2"]]), Ay = {
|
|
15581
15584
|
key: 0,
|
|
15582
15585
|
class: "focus-bar"
|
|
15583
|
-
},
|
|
15586
|
+
}, jy = { class: "focus-bar-icon" }, My = { class: "focus-bar-text" }, Ny = {
|
|
15584
15587
|
key: 0,
|
|
15585
15588
|
class: "focus-bar-label"
|
|
15586
|
-
},
|
|
15589
|
+
}, Py = { class: "focus-bar-path" }, Fy = ["title"], Iy = ["title"], Ly = {
|
|
15587
15590
|
key: 0,
|
|
15588
15591
|
class: "focus-edit-row"
|
|
15589
|
-
},
|
|
15592
|
+
}, Ry = ["placeholder"], zy = ["placeholder"], By = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
15590
15593
|
__name: "FocusBar",
|
|
15591
15594
|
props: {
|
|
15592
15595
|
getFocus: {},
|
|
@@ -15610,34 +15613,34 @@ var ry = ["innerHTML"], iy = {
|
|
|
15610
15613
|
function s() {
|
|
15611
15614
|
t.onClearFocus?.(), r.value = !1;
|
|
15612
15615
|
}
|
|
15613
|
-
return (t, c) => n.value ? (J(), Y("div",
|
|
15614
|
-
X("span",
|
|
15615
|
-
X("span",
|
|
15616
|
+
return (t, c) => n.value ? (J(), Y("div", Ay, [
|
|
15617
|
+
X("span", jy, [Z(cy, { icon: e.icons.focus }, null, 8, ["icon"])]),
|
|
15618
|
+
X("span", My, [n.value.label ? (J(), Y("span", Ny, U(n.value.label), 1)) : Q("", !0), X("code", Py, U(n.value.path), 1)]),
|
|
15616
15619
|
X("button", {
|
|
15617
15620
|
class: "focus-bar-btn",
|
|
15618
15621
|
title: e.messages.switchFocusTitle,
|
|
15619
15622
|
onClick: c[0] ||= (e) => r.value = !r.value
|
|
15620
|
-
}, "▾", 8,
|
|
15623
|
+
}, "▾", 8, Fy),
|
|
15621
15624
|
X("button", {
|
|
15622
15625
|
class: "focus-bar-btn",
|
|
15623
15626
|
title: e.messages.exitFocusTitle,
|
|
15624
15627
|
"data-test": "focus-clear",
|
|
15625
15628
|
onClick: s
|
|
15626
|
-
}, "✕", 8,
|
|
15627
|
-
r.value ? (J(), Y("div",
|
|
15629
|
+
}, "✕", 8, Iy),
|
|
15630
|
+
r.value ? (J(), Y("div", Ly, [
|
|
15628
15631
|
Zr(X("input", {
|
|
15629
15632
|
"onUpdate:modelValue": c[1] ||= (e) => i.value = e,
|
|
15630
15633
|
class: "focus-edit-input",
|
|
15631
15634
|
placeholder: e.messages.focusPathPlaceholder,
|
|
15632
15635
|
"data-test": "focus-path-input",
|
|
15633
15636
|
onKeyup: xl(o, ["enter"])
|
|
15634
|
-
}, null, 40,
|
|
15637
|
+
}, null, 40, Ry), [[gl, i.value]]),
|
|
15635
15638
|
Zr(X("input", {
|
|
15636
15639
|
"onUpdate:modelValue": c[2] ||= (e) => a.value = e,
|
|
15637
15640
|
class: "focus-edit-input focus-edit-label",
|
|
15638
15641
|
placeholder: e.messages.focusLabelPlaceholder,
|
|
15639
15642
|
onKeyup: xl(o, ["enter"])
|
|
15640
|
-
}, null, 40,
|
|
15643
|
+
}, null, 40, zy), [[gl, a.value]]),
|
|
15641
15644
|
X("button", {
|
|
15642
15645
|
class: "focus-edit-go",
|
|
15643
15646
|
"data-test": "focus-submit",
|
|
@@ -15646,10 +15649,10 @@ var ry = ["innerHTML"], iy = {
|
|
|
15646
15649
|
])) : Q("", !0)
|
|
15647
15650
|
])) : Q("", !0);
|
|
15648
15651
|
}
|
|
15649
|
-
}), [["__scopeId", "data-v-4904b0b4"]]),
|
|
15652
|
+
}), [["__scopeId", "data-v-4904b0b4"]]), Vy = { class: "reasoning-toggle" }, Hy = {
|
|
15650
15653
|
key: 0,
|
|
15651
15654
|
class: "reasoning-body"
|
|
15652
|
-
},
|
|
15655
|
+
}, Uy = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
15653
15656
|
__name: "MessageReasoning",
|
|
15654
15657
|
props: {
|
|
15655
15658
|
text: {},
|
|
@@ -15666,13 +15669,13 @@ var ry = ["innerHTML"], iy = {
|
|
|
15666
15669
|
}, [
|
|
15667
15670
|
n[1] ||= X("span", { class: "status-dot ok" }, null, -1),
|
|
15668
15671
|
n[2] ||= X("span", { class: "reasoning-title" }, "思考过程", -1),
|
|
15669
|
-
X("span",
|
|
15670
|
-
]), e.expanded ? (J(), Y("div",
|
|
15672
|
+
X("span", Vy, U(e.expanded ? "收起" : "展开"), 1)
|
|
15673
|
+
]), e.expanded ? (J(), Y("div", Hy, U(e.text), 1)) : Q("", !0)], 2)) : Q("", !0);
|
|
15671
15674
|
}
|
|
15672
|
-
}), [["__scopeId", "data-v-dbe90e42"]]),
|
|
15675
|
+
}), [["__scopeId", "data-v-dbe90e42"]]), Wy = ["open"], Gy = { class: "sub-reason-head" }, Ky = {
|
|
15673
15676
|
key: 0,
|
|
15674
15677
|
class: "sub-reason-trunc"
|
|
15675
|
-
},
|
|
15678
|
+
}, qy = ["title"], Jy = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
15676
15679
|
__name: "SubReasonDetails",
|
|
15677
15680
|
props: {
|
|
15678
15681
|
subReason: {},
|
|
@@ -15700,56 +15703,56 @@ var ry = ["innerHTML"], iy = {
|
|
|
15700
15703
|
class: "step-sub-reason",
|
|
15701
15704
|
open: r.value,
|
|
15702
15705
|
onToggle: i[0] ||= (e) => r.value = e.target.open
|
|
15703
|
-
}, [X("summary",
|
|
15706
|
+
}, [X("summary", Gy, [
|
|
15704
15707
|
X("span", { class: H(["status-dot sm", e.status === "running" ? "running" : "ok"]) }, null, 2),
|
|
15705
15708
|
X("span", { class: H(["sub-reason-label", { pulsing: e.status === "running" }]) }, U(e.status === "running" ? `${e.messages.thinkingCountPrefix}${a.value}${e.messages.charCountSuffix}` : e.messages.reasoningTitle), 3),
|
|
15706
|
-
o.value ? (J(), Y("span",
|
|
15709
|
+
o.value ? (J(), Y("span", Ky, U(e.messages.truncatedNotePrefix) + U(e.subReason.length) + U(e.messages.truncatedNoteSuffix), 1)) : Q("", !0),
|
|
15707
15710
|
X("button", {
|
|
15708
15711
|
type: "button",
|
|
15709
15712
|
class: H(["sub-reason-copy", { copied: s.value }]),
|
|
15710
15713
|
title: o.value ? e.messages.copyThinkingTruncTitle : e.messages.copyThinking,
|
|
15711
15714
|
onClick: yl(c, ["stop", "prevent"])
|
|
15712
|
-
}, U(s.value ? e.messages.copied : e.messages.copy), 11,
|
|
15715
|
+
}, U(s.value ? e.messages.copied : e.messages.copy), 11, qy)
|
|
15713
15716
|
]), X("div", {
|
|
15714
15717
|
ref_key: "bodyRef",
|
|
15715
15718
|
ref: n,
|
|
15716
15719
|
class: "sub-reason-body"
|
|
15717
|
-
}, U(o.value ? "…(前面已截断)\n" : "") + U(e.subReason), 513)], 40,
|
|
15720
|
+
}, U(o.value ? "…(前面已截断)\n" : "") + U(e.subReason), 513)], 40, Wy));
|
|
15718
15721
|
}
|
|
15719
|
-
}), [["__scopeId", "data-v-282d02cd"]]),
|
|
15722
|
+
}), [["__scopeId", "data-v-282d02cd"]]), Yy = {
|
|
15720
15723
|
key: 0,
|
|
15721
15724
|
class: "steps-block"
|
|
15722
|
-
},
|
|
15725
|
+
}, Xy = { class: "step-head" }, Zy = { class: "step-name" }, Qy = ["title"], $y = {
|
|
15723
15726
|
key: 1,
|
|
15724
15727
|
class: "step-count"
|
|
15725
|
-
},
|
|
15728
|
+
}, eb = {
|
|
15726
15729
|
key: 2,
|
|
15727
15730
|
class: "step-duration"
|
|
15728
|
-
},
|
|
15731
|
+
}, tb = ["onClick"], nb = {
|
|
15729
15732
|
key: 0,
|
|
15730
15733
|
class: "step-detail"
|
|
15731
|
-
},
|
|
15734
|
+
}, rb = {
|
|
15732
15735
|
key: 0,
|
|
15733
15736
|
class: "step-detail-call-label"
|
|
15734
|
-
},
|
|
15737
|
+
}, ib = {
|
|
15735
15738
|
key: 1,
|
|
15736
15739
|
class: "step-detail-section"
|
|
15737
|
-
},
|
|
15740
|
+
}, ab = { class: "step-detail-head" }, ob = ["onClick"], sb = { class: "step-detail-pre" }, cb = {
|
|
15738
15741
|
key: 2,
|
|
15739
15742
|
class: "step-detail-section"
|
|
15740
|
-
},
|
|
15743
|
+
}, lb = { class: "step-detail-head" }, ub = ["onClick"], db = {
|
|
15741
15744
|
key: 3,
|
|
15742
15745
|
class: "step-detail-empty"
|
|
15743
|
-
},
|
|
15746
|
+
}, fb = {
|
|
15744
15747
|
key: 2,
|
|
15745
15748
|
class: "step-children"
|
|
15746
|
-
},
|
|
15749
|
+
}, pb = { class: "step-children-label" }, mb = { class: "step-name" }, hb = {
|
|
15747
15750
|
key: 0,
|
|
15748
15751
|
class: "step-count"
|
|
15749
|
-
},
|
|
15752
|
+
}, gb = {
|
|
15750
15753
|
key: 1,
|
|
15751
15754
|
class: "step-status running"
|
|
15752
|
-
},
|
|
15755
|
+
}, _b = 2e3, vb = 4e3, yb = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
15753
15756
|
__name: "MessageSteps",
|
|
15754
15757
|
props: {
|
|
15755
15758
|
steps: {},
|
|
@@ -15828,8 +15831,8 @@ var ry = ["innerHTML"], iy = {
|
|
|
15828
15831
|
} catch {
|
|
15829
15832
|
n = String(e);
|
|
15830
15833
|
}
|
|
15831
|
-
return n.length >
|
|
15832
|
-
text: n.slice(0,
|
|
15834
|
+
return n.length > _b ? {
|
|
15835
|
+
text: n.slice(0, _b) + t.messages.displayTruncatedSuffix,
|
|
15833
15836
|
truncated: !0
|
|
15834
15837
|
} : {
|
|
15835
15838
|
text: n,
|
|
@@ -15840,8 +15843,8 @@ var ry = ["innerHTML"], iy = {
|
|
|
15840
15843
|
return e == null || e === "" ? {
|
|
15841
15844
|
text: "",
|
|
15842
15845
|
truncated: !1
|
|
15843
|
-
} : e.length >
|
|
15844
|
-
text: e.slice(0,
|
|
15846
|
+
} : e.length > vb ? {
|
|
15847
|
+
text: e.slice(0, vb) + t.messages.displayTruncatedSuffix,
|
|
15845
15848
|
truncated: !0
|
|
15846
15849
|
} : {
|
|
15847
15850
|
text: e,
|
|
@@ -15861,45 +15864,45 @@ var ry = ["innerHTML"], iy = {
|
|
|
15861
15864
|
}
|
|
15862
15865
|
__(e);
|
|
15863
15866
|
}
|
|
15864
|
-
return (t, s) => e.steps.length ? (J(), Y("div",
|
|
15867
|
+
return (t, s) => e.steps.length ? (J(), Y("div", Yy, [(J(!0), Y(q, null, ca(i.value, (t, i) => (J(), Y("div", {
|
|
15865
15868
|
key: i,
|
|
15866
15869
|
class: H(["step-item", t.status])
|
|
15867
15870
|
}, [
|
|
15868
|
-
X("div",
|
|
15871
|
+
X("div", Xy, [
|
|
15869
15872
|
X("span", { class: H(["status-dot", t.status]) }, null, 2),
|
|
15870
|
-
X("span",
|
|
15873
|
+
X("span", Zy, U(t.name), 1),
|
|
15871
15874
|
a(t.name) ? (J(), Y("span", {
|
|
15872
15875
|
key: 0,
|
|
15873
15876
|
class: "subagent-badge",
|
|
15874
15877
|
title: e.messages.subagentBadgeTitle
|
|
15875
|
-
}, [Z(
|
|
15876
|
-
t.count > 1 ? (J(), Y("span",
|
|
15877
|
-
X("span", { class: H(["step-status", t.status]) }, [Z(
|
|
15878
|
-
t.durationMs != null && t.status !== "running" ? (J(), Y("span",
|
|
15878
|
+
}, [Z(cy, { icon: e.icons.subagent }, null, 8, ["icon"]), _s(" " + U(e.messages.subagentBadge), 1)], 8, Qy)) : Q("", !0),
|
|
15879
|
+
t.count > 1 ? (J(), Y("span", $y, "×" + U(t.count), 1)) : Q("", !0),
|
|
15880
|
+
X("span", { class: H(["step-status", t.status]) }, [Z(uy, { text: n(t.status) }, null, 8, ["text"])], 2),
|
|
15881
|
+
t.durationMs != null && t.status !== "running" ? (J(), Y("span", eb, U(o(t.durationMs)), 1)) : Q("", !0),
|
|
15879
15882
|
f(t.calls) ? (J(), Y("button", {
|
|
15880
15883
|
key: 3,
|
|
15881
15884
|
type: "button",
|
|
15882
15885
|
class: H(["step-detail-toggle", { open: u.has(i) }]),
|
|
15883
15886
|
onClick: (e) => d(i)
|
|
15884
|
-
}, U(u.has(i) ? e.messages.collapse : e.messages.expand), 11,
|
|
15887
|
+
}, U(u.has(i) ? e.messages.collapse : e.messages.expand), 11, tb)) : Q("", !0)
|
|
15885
15888
|
]),
|
|
15886
|
-
u.has(i) && t.calls?.length ? (J(), Y("div",
|
|
15889
|
+
u.has(i) && t.calls?.length ? (J(), Y("div", nb, [(J(!0), Y(q, null, ca(t.calls, (n, r) => (J(), Y("div", {
|
|
15887
15890
|
key: r,
|
|
15888
15891
|
class: "step-detail-call"
|
|
15889
15892
|
}, [
|
|
15890
|
-
t.count > 1 ? (J(), Y("div",
|
|
15891
|
-
p(n.args).text ? (J(), Y("div",
|
|
15893
|
+
t.count > 1 ? (J(), Y("div", rb, U(e.messages.nthCallPrefix) + U(r + 1) + U(e.messages.nthCallSuffix), 1)) : Q("", !0),
|
|
15894
|
+
p(n.args).text ? (J(), Y("div", ib, [X("div", ab, [_s(U(e.messages.argsLabel), 1), X("button", {
|
|
15892
15895
|
type: "button",
|
|
15893
15896
|
class: "step-detail-copy",
|
|
15894
15897
|
onClick: (e) => h(p(n.args).text, p(n.args).truncated, n.args)
|
|
15895
|
-
}, U(e.messages.copy), 9,
|
|
15896
|
-
n.status !== "running" && m(n.result).text ? (J(), Y("div",
|
|
15898
|
+
}, U(e.messages.copy), 9, ob)]), X("pre", sb, U(p(n.args).text), 1)])) : Q("", !0),
|
|
15899
|
+
n.status !== "running" && m(n.result).text ? (J(), Y("div", cb, [X("div", lb, [_s(U(e.messages.resultLabel), 1), X("button", {
|
|
15897
15900
|
type: "button",
|
|
15898
15901
|
class: "step-detail-copy",
|
|
15899
15902
|
onClick: (e) => h(m(n.result).text, m(n.result).truncated, n.result)
|
|
15900
|
-
}, U(e.messages.copy), 9,
|
|
15903
|
+
}, U(e.messages.copy), 9, ub)]), X("pre", { class: H(["step-detail-pre", { err: n.status === "error" }]) }, U(m(n.result).text), 3)])) : n.status !== "running" && !m(n.result).text ? (J(), Y("div", db, U(e.messages.noResult), 1)) : Q("", !0)
|
|
15901
15904
|
]))), 128))])) : Q("", !0),
|
|
15902
|
-
t.subReason ? (J(), os(
|
|
15905
|
+
t.subReason ? (J(), os(Jy, {
|
|
15903
15906
|
key: 1,
|
|
15904
15907
|
"sub-reason": t.subReason,
|
|
15905
15908
|
"sub-reason-full": t.subReasonFull,
|
|
@@ -15911,21 +15914,21 @@ var ry = ["innerHTML"], iy = {
|
|
|
15911
15914
|
"status",
|
|
15912
15915
|
"messages"
|
|
15913
15916
|
])) : Q("", !0),
|
|
15914
|
-
t.children && t.children.length ? (J(), Y("div",
|
|
15917
|
+
t.children && t.children.length ? (J(), Y("div", fb, [X("div", pb, [Z(cy, { icon: e.icons.subagentProgress }, null, 8, ["icon"]), _s(" " + U(e.messages.subagentProgress), 1)]), (J(!0), Y(q, null, ca(r(t.children), (e, t) => (J(), Y("div", {
|
|
15915
15918
|
key: t,
|
|
15916
15919
|
class: H(["step-child", e.status])
|
|
15917
15920
|
}, [
|
|
15918
15921
|
X("span", { class: H(["status-dot sm", e.status]) }, null, 2),
|
|
15919
|
-
X("span",
|
|
15920
|
-
e.count > 1 ? (J(), Y("span",
|
|
15921
|
-
e.status === "running" ? (J(), Y("span",
|
|
15922
|
+
X("span", mb, U(e.name), 1),
|
|
15923
|
+
e.count > 1 ? (J(), Y("span", hb, "×" + U(e.count), 1)) : Q("", !0),
|
|
15924
|
+
e.status === "running" ? (J(), Y("span", gb, "…")) : Q("", !0)
|
|
15922
15925
|
], 2))), 128))])) : Q("", !0)
|
|
15923
15926
|
], 2))), 128))])) : Q("", !0);
|
|
15924
15927
|
}
|
|
15925
15928
|
}), [["__scopeId", "data-v-95a48c0c"]]);
|
|
15926
15929
|
//#endregion
|
|
15927
15930
|
//#region node_modules/marked/lib/marked.esm.js
|
|
15928
|
-
function
|
|
15931
|
+
function bb() {
|
|
15929
15932
|
return {
|
|
15930
15933
|
async: !1,
|
|
15931
15934
|
breaks: !1,
|
|
@@ -15939,35 +15942,35 @@ function yb() {
|
|
|
15939
15942
|
walkTokens: null
|
|
15940
15943
|
};
|
|
15941
15944
|
}
|
|
15942
|
-
var
|
|
15943
|
-
function
|
|
15944
|
-
|
|
15945
|
+
var xb = bb();
|
|
15946
|
+
function Sb(e) {
|
|
15947
|
+
xb = e;
|
|
15945
15948
|
}
|
|
15946
|
-
var
|
|
15947
|
-
function
|
|
15949
|
+
var Cb = { exec: () => null };
|
|
15950
|
+
function wb(e) {
|
|
15948
15951
|
let t = [];
|
|
15949
15952
|
return (n) => {
|
|
15950
15953
|
let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
|
|
15951
15954
|
return i || (i = e(r), t[r] = i), i;
|
|
15952
15955
|
};
|
|
15953
15956
|
}
|
|
15954
|
-
function
|
|
15957
|
+
function Tb(e, t = "") {
|
|
15955
15958
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
15956
15959
|
replace: (e, t) => {
|
|
15957
15960
|
let i = typeof t == "string" ? t : t.source;
|
|
15958
|
-
return i = i.replace(
|
|
15961
|
+
return i = i.replace(Db.caret, "$1"), n = n.replace(e, i), r;
|
|
15959
15962
|
},
|
|
15960
15963
|
getRegex: () => new RegExp(n, t)
|
|
15961
15964
|
};
|
|
15962
15965
|
return r;
|
|
15963
15966
|
}
|
|
15964
|
-
var
|
|
15967
|
+
var Eb = ((e = "") => {
|
|
15965
15968
|
try {
|
|
15966
15969
|
return !!RegExp("(?<=1)(?<!1)" + e);
|
|
15967
15970
|
} catch {
|
|
15968
15971
|
return !1;
|
|
15969
15972
|
}
|
|
15970
|
-
})(),
|
|
15973
|
+
})(), Db = {
|
|
15971
15974
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
15972
15975
|
outputLinkReplace: /\\([\[\]])/g,
|
|
15973
15976
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -16018,121 +16021,121 @@ var Tb = ((e = "") => {
|
|
|
16018
16021
|
notSpaceStart: /^\S*/,
|
|
16019
16022
|
endingNewline: /\n$/,
|
|
16020
16023
|
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
16021
|
-
nextBulletRegex:
|
|
16022
|
-
hrRegex:
|
|
16023
|
-
fencesBeginRegex:
|
|
16024
|
-
headingBeginRegex:
|
|
16025
|
-
htmlBeginRegex:
|
|
16026
|
-
blockquoteBeginRegex:
|
|
16027
|
-
},
|
|
16028
|
-
blockquote:
|
|
16029
|
-
code:
|
|
16030
|
-
def:
|
|
16031
|
-
fences:
|
|
16032
|
-
heading:
|
|
16033
|
-
hr:
|
|
16034
|
-
html:
|
|
16035
|
-
lheading: Pb,
|
|
16036
|
-
list: Bb,
|
|
16037
|
-
newline: Db,
|
|
16038
|
-
paragraph: Gb,
|
|
16039
|
-
table: Sb,
|
|
16040
|
-
text: Lb
|
|
16041
|
-
}, Jb = wb("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ab).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Vb).getRegex(), Yb = {
|
|
16042
|
-
...qb,
|
|
16024
|
+
nextBulletRegex: wb((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
|
|
16025
|
+
hrRegex: wb((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
|
|
16026
|
+
fencesBeginRegex: wb((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
|
|
16027
|
+
headingBeginRegex: wb((e) => RegExp(`^ {0,${e}}#`)),
|
|
16028
|
+
htmlBeginRegex: wb((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
|
|
16029
|
+
blockquoteBeginRegex: wb((e) => RegExp(`^ {0,${e}}>`))
|
|
16030
|
+
}, Ob = /^(?:[ \t]*(?:\n|$))+/, kb = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ab = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, jb = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Mb = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Nb = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Pb = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Fb = Tb(Pb).replace(/bull/g, Nb).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ib = Tb(Pb).replace(/bull/g, Nb).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Lb = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Rb = /^[^\n]+/, zb = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Bb = Tb(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", zb).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Vb = Tb(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Nb).getRegex(), Hb = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ub = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Wb = Tb("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Ub).replace("tag", Hb).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Gb = (e) => Tb(Lb).replace("hr", jb).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Hb).getRegex(), Kb = Gb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), qb = Gb(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), Jb = {
|
|
16031
|
+
blockquote: Tb(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", qb).getRegex(),
|
|
16032
|
+
code: kb,
|
|
16033
|
+
def: Bb,
|
|
16034
|
+
fences: Ab,
|
|
16035
|
+
heading: Mb,
|
|
16036
|
+
hr: jb,
|
|
16037
|
+
html: Wb,
|
|
16043
16038
|
lheading: Fb,
|
|
16044
|
-
|
|
16045
|
-
|
|
16046
|
-
|
|
16047
|
-
|
|
16048
|
-
|
|
16039
|
+
list: Vb,
|
|
16040
|
+
newline: Ob,
|
|
16041
|
+
paragraph: Kb,
|
|
16042
|
+
table: Cb,
|
|
16043
|
+
text: Rb
|
|
16044
|
+
}, Yb = Tb("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", jb).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Hb).getRegex(), Xb = {
|
|
16045
|
+
...Jb,
|
|
16046
|
+
lheading: Ib,
|
|
16047
|
+
table: Yb,
|
|
16048
|
+
paragraph: Tb(Lb).replace("hr", jb).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Yb).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Hb).getRegex()
|
|
16049
|
+
}, Zb = {
|
|
16050
|
+
...Jb,
|
|
16051
|
+
html: Tb("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Ub).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
16049
16052
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
16050
16053
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
16051
|
-
fences:
|
|
16054
|
+
fences: Cb,
|
|
16052
16055
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
16053
|
-
paragraph:
|
|
16054
|
-
},
|
|
16055
|
-
_backpedal:
|
|
16056
|
-
anyPunctuation:
|
|
16057
|
-
autolink:
|
|
16058
|
-
blockSkip:
|
|
16059
|
-
br:
|
|
16060
|
-
code:
|
|
16061
|
-
del:
|
|
16062
|
-
delLDelim:
|
|
16063
|
-
delRDelim:
|
|
16064
|
-
emStrongLDelim: ux,
|
|
16065
|
-
emStrongRDelimAst: px,
|
|
16066
|
-
emStrongRDelimUnd: hx,
|
|
16067
|
-
escape: Zb,
|
|
16068
|
-
link: Cx,
|
|
16069
|
-
nolink: Tx,
|
|
16070
|
-
punctuation: ix,
|
|
16071
|
-
reflink: wx,
|
|
16072
|
-
reflinkSearch: Ex,
|
|
16073
|
-
tag: xx,
|
|
16074
|
-
text: ex,
|
|
16075
|
-
url: Sb
|
|
16076
|
-
}, kx = {
|
|
16077
|
-
...Ox,
|
|
16078
|
-
link: wb(/^!?\[(label)\]\((.*?)\)/).replace("label", Sx).getRegex(),
|
|
16079
|
-
reflink: wb(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Sx).getRegex()
|
|
16080
|
-
}, Ax = {
|
|
16081
|
-
...Ox,
|
|
16082
|
-
emStrongRDelimAst: mx,
|
|
16056
|
+
paragraph: Tb(Lb).replace("hr", jb).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Fb).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
16057
|
+
}, Qb = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, $b = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ex = /^( {2,}|\\)\n(?!\s*$)/, tx = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, nx = /[\p{P}\p{S}]/u, rx = /[\s\p{P}\p{S}]/u, ix = /[^\s\p{P}\p{S}]/u, ax = Tb(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, rx).getRegex(), ox = /(?!~)[\p{P}\p{S}]/u, sx = /(?!~)[\s\p{P}\p{S}]/u, cx = /(?:[^\s\p{P}\p{S}]|~)/u, lx = Tb(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Eb ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ux = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, dx = Tb(ux, "u").replace(/punct/g, nx).getRegex(), fx = Tb(ux, "u").replace(/punct/g, ox).getRegex(), px = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", mx = Tb(px, "gu").replace(/notPunctSpace/g, ix).replace(/punctSpace/g, rx).replace(/punct/g, nx).getRegex(), hx = Tb(px, "gu").replace(/notPunctSpace/g, cx).replace(/punctSpace/g, sx).replace(/punct/g, ox).getRegex(), gx = Tb("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ix).replace(/punctSpace/g, rx).replace(/punct/g, nx).getRegex(), _x = Tb(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, nx).getRegex(), vx = Tb("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, ix).replace(/punctSpace/g, rx).replace(/punct/g, nx).getRegex(), yx = Tb(/\\(punct)/, "gu").replace(/punct/g, nx).getRegex(), bx = Tb(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), xx = Tb(Ub).replace("(?:-->|$)", "-->").getRegex(), Sx = Tb("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", xx).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Cx = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, wx = Tb(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Cx).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Tx = Tb(/^!?\[(label)\]\[(ref)\]/).replace("label", Cx).replace("ref", zb).getRegex(), Ex = Tb(/^!?\[(ref)\](?:\[\])?/).replace("ref", zb).getRegex(), Dx = Tb("reflink|nolink(?!\\()", "g").replace("reflink", Tx).replace("nolink", Ex).getRegex(), Ox = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, kx = {
|
|
16058
|
+
_backpedal: Cb,
|
|
16059
|
+
anyPunctuation: yx,
|
|
16060
|
+
autolink: bx,
|
|
16061
|
+
blockSkip: lx,
|
|
16062
|
+
br: ex,
|
|
16063
|
+
code: $b,
|
|
16064
|
+
del: Cb,
|
|
16065
|
+
delLDelim: Cb,
|
|
16066
|
+
delRDelim: Cb,
|
|
16083
16067
|
emStrongLDelim: dx,
|
|
16084
|
-
|
|
16085
|
-
|
|
16086
|
-
|
|
16068
|
+
emStrongRDelimAst: mx,
|
|
16069
|
+
emStrongRDelimUnd: gx,
|
|
16070
|
+
escape: Qb,
|
|
16071
|
+
link: wx,
|
|
16072
|
+
nolink: Ex,
|
|
16073
|
+
punctuation: ax,
|
|
16074
|
+
reflink: Tx,
|
|
16075
|
+
reflinkSearch: Dx,
|
|
16076
|
+
tag: Sx,
|
|
16077
|
+
text: tx,
|
|
16078
|
+
url: Cb
|
|
16079
|
+
}, Ax = {
|
|
16080
|
+
...kx,
|
|
16081
|
+
link: Tb(/^!?\[(label)\]\((.*?)\)/).replace("label", Cx).getRegex(),
|
|
16082
|
+
reflink: Tb(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Cx).getRegex()
|
|
16083
|
+
}, jx = {
|
|
16084
|
+
...kx,
|
|
16085
|
+
emStrongRDelimAst: hx,
|
|
16086
|
+
emStrongLDelim: fx,
|
|
16087
|
+
delLDelim: _x,
|
|
16088
|
+
delRDelim: vx,
|
|
16089
|
+
url: Tb(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Ox).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
16087
16090
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
16088
16091
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
16089
|
-
text:
|
|
16090
|
-
}, jx = {
|
|
16091
|
-
...Ax,
|
|
16092
|
-
br: wb($b).replace("{2,}", "*").getRegex(),
|
|
16093
|
-
text: wb(Ax.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
16092
|
+
text: Tb(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Ox).getRegex()
|
|
16094
16093
|
}, Mx = {
|
|
16095
|
-
|
|
16096
|
-
|
|
16097
|
-
|
|
16094
|
+
...jx,
|
|
16095
|
+
br: Tb(ex).replace("{2,}", "*").getRegex(),
|
|
16096
|
+
text: Tb(jx.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
16098
16097
|
}, Nx = {
|
|
16099
|
-
normal:
|
|
16100
|
-
gfm:
|
|
16101
|
-
|
|
16102
|
-
pedantic: kx
|
|
16098
|
+
normal: Jb,
|
|
16099
|
+
gfm: Xb,
|
|
16100
|
+
pedantic: Zb
|
|
16103
16101
|
}, Px = {
|
|
16102
|
+
normal: kx,
|
|
16103
|
+
gfm: jx,
|
|
16104
|
+
breaks: Mx,
|
|
16105
|
+
pedantic: Ax
|
|
16106
|
+
}, Fx = {
|
|
16104
16107
|
"&": "&",
|
|
16105
16108
|
"<": "<",
|
|
16106
16109
|
">": ">",
|
|
16107
16110
|
"\"": """,
|
|
16108
16111
|
"'": "'"
|
|
16109
|
-
},
|
|
16110
|
-
function
|
|
16112
|
+
}, Ix = (e) => Fx[e];
|
|
16113
|
+
function Lx(e, t) {
|
|
16111
16114
|
if (t) {
|
|
16112
|
-
if (
|
|
16113
|
-
} else if (
|
|
16115
|
+
if (Db.escapeTest.test(e)) return e.replace(Db.escapeReplace, Ix);
|
|
16116
|
+
} else if (Db.escapeTestNoEncode.test(e)) return e.replace(Db.escapeReplaceNoEncode, Ix);
|
|
16114
16117
|
return e;
|
|
16115
16118
|
}
|
|
16116
|
-
function
|
|
16119
|
+
function Rx(e) {
|
|
16117
16120
|
try {
|
|
16118
|
-
e = encodeURI(e).replace(
|
|
16121
|
+
e = encodeURI(e).replace(Db.percentDecode, "%");
|
|
16119
16122
|
} catch {
|
|
16120
16123
|
return null;
|
|
16121
16124
|
}
|
|
16122
16125
|
return e;
|
|
16123
16126
|
}
|
|
16124
|
-
function
|
|
16125
|
-
let n = e.replace(
|
|
16127
|
+
function zx(e, t) {
|
|
16128
|
+
let n = e.replace(Db.findPipe, (e, t, n) => {
|
|
16126
16129
|
let r = !1, i = t;
|
|
16127
16130
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
16128
16131
|
return r ? "|" : " |";
|
|
16129
|
-
}).split(
|
|
16132
|
+
}).split(Db.splitPipe), r = 0;
|
|
16130
16133
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
|
|
16131
16134
|
else for (; n.length < t;) n.push("");
|
|
16132
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
16135
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(Db.slashPipe, "|");
|
|
16133
16136
|
return n;
|
|
16134
16137
|
}
|
|
16135
|
-
function
|
|
16138
|
+
function Bx(e, t, n) {
|
|
16136
16139
|
let r = e.length;
|
|
16137
16140
|
if (r === 0) return "";
|
|
16138
16141
|
let i = 0;
|
|
@@ -16144,12 +16147,12 @@ function zx(e, t, n) {
|
|
|
16144
16147
|
}
|
|
16145
16148
|
return e.slice(0, r - i);
|
|
16146
16149
|
}
|
|
16147
|
-
function
|
|
16150
|
+
function Vx(e) {
|
|
16148
16151
|
let t = e.split("\n"), n = t.length - 1;
|
|
16149
|
-
for (; n >= 0 &&
|
|
16152
|
+
for (; n >= 0 && Db.blankLine.test(t[n]);) n--;
|
|
16150
16153
|
return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
|
|
16151
16154
|
}
|
|
16152
|
-
function
|
|
16155
|
+
function Hx(e, t) {
|
|
16153
16156
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
16154
16157
|
let n = 0;
|
|
16155
16158
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -16157,7 +16160,7 @@ function Vx(e, t) {
|
|
|
16157
16160
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
16158
16161
|
return n > 0 ? -2 : -1;
|
|
16159
16162
|
}
|
|
16160
|
-
function
|
|
16163
|
+
function Ux(e, t = 0) {
|
|
16161
16164
|
let n = t, r = "";
|
|
16162
16165
|
for (let t of e) if (t === " ") {
|
|
16163
16166
|
let e = 4 - n % 4;
|
|
@@ -16165,7 +16168,7 @@ function Hx(e, t = 0) {
|
|
|
16165
16168
|
} else r += t, n++;
|
|
16166
16169
|
return r;
|
|
16167
16170
|
}
|
|
16168
|
-
function
|
|
16171
|
+
function Wx(e, t, n, r, i) {
|
|
16169
16172
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
16170
16173
|
r.state.inLink = !0;
|
|
16171
16174
|
let c = {
|
|
@@ -16178,7 +16181,7 @@ function Ux(e, t, n, r, i) {
|
|
|
16178
16181
|
};
|
|
16179
16182
|
return r.state.inLink = !1, c;
|
|
16180
16183
|
}
|
|
16181
|
-
function
|
|
16184
|
+
function Gx(e, t, n) {
|
|
16182
16185
|
let r = e.match(n.other.indentCodeCompensation);
|
|
16183
16186
|
if (r === null) return t;
|
|
16184
16187
|
let i = r[1];
|
|
@@ -16189,12 +16192,12 @@ function Wx(e, t, n) {
|
|
|
16189
16192
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
16190
16193
|
}).join("\n");
|
|
16191
16194
|
}
|
|
16192
|
-
var
|
|
16195
|
+
var Kx = class {
|
|
16193
16196
|
options;
|
|
16194
16197
|
rules;
|
|
16195
16198
|
lexer;
|
|
16196
16199
|
constructor(e) {
|
|
16197
|
-
this.options = e ||
|
|
16200
|
+
this.options = e || xb;
|
|
16198
16201
|
}
|
|
16199
16202
|
space(e) {
|
|
16200
16203
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -16206,7 +16209,7 @@ var Gx = class {
|
|
|
16206
16209
|
code(e) {
|
|
16207
16210
|
let t = this.rules.block.code.exec(e);
|
|
16208
16211
|
if (t) {
|
|
16209
|
-
let e = this.options.pedantic ? t[0] :
|
|
16212
|
+
let e = this.options.pedantic ? t[0] : Vx(t[0]);
|
|
16210
16213
|
return {
|
|
16211
16214
|
type: "code",
|
|
16212
16215
|
raw: e,
|
|
@@ -16218,7 +16221,7 @@ var Gx = class {
|
|
|
16218
16221
|
fences(e) {
|
|
16219
16222
|
let t = this.rules.block.fences.exec(e);
|
|
16220
16223
|
if (t) {
|
|
16221
|
-
let e = t[0], n =
|
|
16224
|
+
let e = t[0], n = Gx(e, t[3] || "", this.rules);
|
|
16222
16225
|
return {
|
|
16223
16226
|
type: "code",
|
|
16224
16227
|
raw: e,
|
|
@@ -16232,12 +16235,12 @@ var Gx = class {
|
|
|
16232
16235
|
if (t) {
|
|
16233
16236
|
let e = t[2].trim();
|
|
16234
16237
|
if (this.rules.other.endingHash.test(e)) {
|
|
16235
|
-
let t =
|
|
16238
|
+
let t = Bx(e, "#");
|
|
16236
16239
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
16237
16240
|
}
|
|
16238
16241
|
return {
|
|
16239
16242
|
type: "heading",
|
|
16240
|
-
raw:
|
|
16243
|
+
raw: Bx(t[0], "\n"),
|
|
16241
16244
|
depth: t[1].length,
|
|
16242
16245
|
text: e,
|
|
16243
16246
|
tokens: this.lexer.inline(e)
|
|
@@ -16248,13 +16251,13 @@ var Gx = class {
|
|
|
16248
16251
|
let t = this.rules.block.hr.exec(e);
|
|
16249
16252
|
if (t) return {
|
|
16250
16253
|
type: "hr",
|
|
16251
|
-
raw:
|
|
16254
|
+
raw: Bx(t[0], "\n")
|
|
16252
16255
|
};
|
|
16253
16256
|
}
|
|
16254
16257
|
blockquote(e) {
|
|
16255
16258
|
let t = this.rules.block.blockquote.exec(e);
|
|
16256
16259
|
if (t) {
|
|
16257
|
-
let e =
|
|
16260
|
+
let e = Bx(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
16258
16261
|
for (; e.length > 0;) {
|
|
16259
16262
|
let t = !1, a = [], o;
|
|
16260
16263
|
for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
@@ -16304,7 +16307,7 @@ ${c}` : c;
|
|
|
16304
16307
|
let n = !1, r = "", s = "";
|
|
16305
16308
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
16306
16309
|
r = t[0], e = e.substring(r.length);
|
|
16307
|
-
let c =
|
|
16310
|
+
let c = Ux(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
16308
16311
|
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
16309
16312
|
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
|
|
16310
16313
|
for (; e;) {
|
|
@@ -16370,7 +16373,7 @@ ${c}` : c;
|
|
|
16370
16373
|
html(e) {
|
|
16371
16374
|
let t = this.rules.block.html.exec(e);
|
|
16372
16375
|
if (t) {
|
|
16373
|
-
let e =
|
|
16376
|
+
let e = Vx(t[0]);
|
|
16374
16377
|
return {
|
|
16375
16378
|
type: "html",
|
|
16376
16379
|
block: !0,
|
|
@@ -16387,7 +16390,7 @@ ${c}` : c;
|
|
|
16387
16390
|
return {
|
|
16388
16391
|
type: "def",
|
|
16389
16392
|
tag: e,
|
|
16390
|
-
raw:
|
|
16393
|
+
raw: Bx(t[0], "\n"),
|
|
16391
16394
|
href: n,
|
|
16392
16395
|
title: r
|
|
16393
16396
|
};
|
|
@@ -16396,9 +16399,9 @@ ${c}` : c;
|
|
|
16396
16399
|
table(e) {
|
|
16397
16400
|
let t = this.rules.block.table.exec(e);
|
|
16398
16401
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
16399
|
-
let n =
|
|
16402
|
+
let n = zx(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
16400
16403
|
type: "table",
|
|
16401
|
-
raw:
|
|
16404
|
+
raw: Bx(t[0], "\n"),
|
|
16402
16405
|
header: [],
|
|
16403
16406
|
align: [],
|
|
16404
16407
|
rows: []
|
|
@@ -16411,7 +16414,7 @@ ${c}` : c;
|
|
|
16411
16414
|
header: !0,
|
|
16412
16415
|
align: a.align[e]
|
|
16413
16416
|
});
|
|
16414
|
-
for (let e of i) a.rows.push(
|
|
16417
|
+
for (let e of i) a.rows.push(zx(e, a.header.length).map((e, t) => ({
|
|
16415
16418
|
text: e,
|
|
16416
16419
|
tokens: this.lexer.inline(e),
|
|
16417
16420
|
header: !1,
|
|
@@ -16426,7 +16429,7 @@ ${c}` : c;
|
|
|
16426
16429
|
let e = t[1].trim();
|
|
16427
16430
|
return {
|
|
16428
16431
|
type: "heading",
|
|
16429
|
-
raw:
|
|
16432
|
+
raw: Bx(t[0], "\n"),
|
|
16430
16433
|
depth: t[2].charAt(0) === "=" ? 1 : 2,
|
|
16431
16434
|
text: e,
|
|
16432
16435
|
tokens: this.lexer.inline(e)
|
|
@@ -16479,10 +16482,10 @@ ${c}` : c;
|
|
|
16479
16482
|
let e = t[2].trim();
|
|
16480
16483
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
16481
16484
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
16482
|
-
let t =
|
|
16485
|
+
let t = Bx(e.slice(0, -1), "\\");
|
|
16483
16486
|
if ((e.length - t.length) % 2 == 0) return;
|
|
16484
16487
|
} else {
|
|
16485
|
-
let e =
|
|
16488
|
+
let e = Hx(t[2], "()");
|
|
16486
16489
|
if (e === -2) return;
|
|
16487
16490
|
if (e > -1) {
|
|
16488
16491
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -16494,7 +16497,7 @@ ${c}` : c;
|
|
|
16494
16497
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
16495
16498
|
e && (n = e[1], r = e[3]);
|
|
16496
16499
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
16497
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)),
|
|
16500
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Wx(t, {
|
|
16498
16501
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
16499
16502
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
16500
16503
|
}, t[0], this.lexer, this.rules);
|
|
@@ -16512,7 +16515,7 @@ ${c}` : c;
|
|
|
16512
16515
|
text: e
|
|
16513
16516
|
};
|
|
16514
16517
|
}
|
|
16515
|
-
return
|
|
16518
|
+
return Wx(n, e, n[0], this.lexer, this.rules);
|
|
16516
16519
|
}
|
|
16517
16520
|
}
|
|
16518
16521
|
emStrong(e, t, n = "") {
|
|
@@ -16644,29 +16647,29 @@ ${c}` : c;
|
|
|
16644
16647
|
};
|
|
16645
16648
|
}
|
|
16646
16649
|
}
|
|
16647
|
-
},
|
|
16650
|
+
}, qx = class e {
|
|
16648
16651
|
tokens;
|
|
16649
16652
|
options;
|
|
16650
16653
|
state;
|
|
16651
16654
|
inlineQueue;
|
|
16652
16655
|
tokenizer;
|
|
16653
16656
|
constructor(e) {
|
|
16654
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
16657
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || xb, this.options.tokenizer = this.options.tokenizer || new Kx(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
16655
16658
|
inLink: !1,
|
|
16656
16659
|
inRawBlock: !1,
|
|
16657
16660
|
top: !0
|
|
16658
16661
|
};
|
|
16659
16662
|
let t = {
|
|
16660
|
-
other:
|
|
16661
|
-
block:
|
|
16662
|
-
inline:
|
|
16663
|
+
other: Db,
|
|
16664
|
+
block: Nx.normal,
|
|
16665
|
+
inline: Px.normal
|
|
16663
16666
|
};
|
|
16664
|
-
this.options.pedantic ? (t.block =
|
|
16667
|
+
this.options.pedantic ? (t.block = Nx.pedantic, t.inline = Px.pedantic) : this.options.gfm && (t.block = Nx.gfm, this.options.breaks ? t.inline = Px.breaks : t.inline = Px.gfm), this.tokenizer.rules = t;
|
|
16665
16668
|
}
|
|
16666
16669
|
static get rules() {
|
|
16667
16670
|
return {
|
|
16668
|
-
block:
|
|
16669
|
-
inline:
|
|
16671
|
+
block: Nx,
|
|
16672
|
+
inline: Px
|
|
16670
16673
|
};
|
|
16671
16674
|
}
|
|
16672
16675
|
static lex(t, n) {
|
|
@@ -16676,7 +16679,7 @@ ${c}` : c;
|
|
|
16676
16679
|
return new e(n).inlineTokens(t);
|
|
16677
16680
|
}
|
|
16678
16681
|
lex(e) {
|
|
16679
|
-
e = e.replace(
|
|
16682
|
+
e = e.replace(Db.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
16680
16683
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
16681
16684
|
let t = this.inlineQueue[e];
|
|
16682
16685
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -16684,7 +16687,7 @@ ${c}` : c;
|
|
|
16684
16687
|
return this.inlineQueue = [], this.tokens;
|
|
16685
16688
|
}
|
|
16686
16689
|
blockTokens(e, t = [], n = !1) {
|
|
16687
|
-
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
16690
|
+
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(Db.tabCharGlobal, " ").replace(Db.spaceLine, ""));
|
|
16688
16691
|
let r = Infinity;
|
|
16689
16692
|
for (; e;) {
|
|
16690
16693
|
if (e.length < r) r = e.length;
|
|
@@ -16866,18 +16869,18 @@ ${c}` : c;
|
|
|
16866
16869
|
if (this.options.silent) console.error(t);
|
|
16867
16870
|
else throw Error(t);
|
|
16868
16871
|
}
|
|
16869
|
-
},
|
|
16872
|
+
}, Jx = class {
|
|
16870
16873
|
options;
|
|
16871
16874
|
parser;
|
|
16872
16875
|
constructor(e) {
|
|
16873
|
-
this.options = e ||
|
|
16876
|
+
this.options = e || xb;
|
|
16874
16877
|
}
|
|
16875
16878
|
space(e) {
|
|
16876
16879
|
return "";
|
|
16877
16880
|
}
|
|
16878
16881
|
code({ text: e, lang: t, escaped: n }) {
|
|
16879
|
-
let r = (t || "").match(
|
|
16880
|
-
return r ? "<pre><code class=\"language-" +
|
|
16882
|
+
let r = (t || "").match(Db.notSpaceStart)?.[0], i = e.replace(Db.endingNewline, "") + "\n";
|
|
16883
|
+
return r ? "<pre><code class=\"language-" + Lx(r) + "\">" + (n ? i : Lx(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : Lx(i, !0)) + "</code></pre>\n";
|
|
16881
16884
|
}
|
|
16882
16885
|
blockquote({ tokens: e }) {
|
|
16883
16886
|
return `<blockquote>
|
|
@@ -16947,7 +16950,7 @@ ${e}</tr>
|
|
|
16947
16950
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
16948
16951
|
}
|
|
16949
16952
|
codespan({ text: e }) {
|
|
16950
|
-
return `<code>${
|
|
16953
|
+
return `<code>${Lx(e, !0)}</code>`;
|
|
16951
16954
|
}
|
|
16952
16955
|
br(e) {
|
|
16953
16956
|
return "<br>";
|
|
@@ -16956,24 +16959,24 @@ ${e}</tr>
|
|
|
16956
16959
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
16957
16960
|
}
|
|
16958
16961
|
link({ href: e, title: t, tokens: n }) {
|
|
16959
|
-
let r = this.parser.parseInline(n), i =
|
|
16962
|
+
let r = this.parser.parseInline(n), i = Rx(e);
|
|
16960
16963
|
if (i === null) return r;
|
|
16961
16964
|
e = i;
|
|
16962
16965
|
let a = "<a href=\"" + e + "\"";
|
|
16963
|
-
return t && (a += " title=\"" +
|
|
16966
|
+
return t && (a += " title=\"" + Lx(t) + "\""), a += ">" + r + "</a>", a;
|
|
16964
16967
|
}
|
|
16965
16968
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
16966
16969
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
16967
|
-
let i =
|
|
16968
|
-
if (i === null) return
|
|
16970
|
+
let i = Rx(e);
|
|
16971
|
+
if (i === null) return Lx(n);
|
|
16969
16972
|
e = i;
|
|
16970
|
-
let a = `<img src="${e}" alt="${
|
|
16971
|
-
return t && (a += ` title="${
|
|
16973
|
+
let a = `<img src="${e}" alt="${Lx(n)}"`;
|
|
16974
|
+
return t && (a += ` title="${Lx(t)}"`), a += ">", a;
|
|
16972
16975
|
}
|
|
16973
16976
|
text(e) {
|
|
16974
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
16977
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Lx(e.text);
|
|
16975
16978
|
}
|
|
16976
|
-
},
|
|
16979
|
+
}, Yx = class {
|
|
16977
16980
|
strong({ text: e }) {
|
|
16978
16981
|
return e;
|
|
16979
16982
|
}
|
|
@@ -17004,12 +17007,12 @@ ${e}</tr>
|
|
|
17004
17007
|
checkbox({ raw: e }) {
|
|
17005
17008
|
return e;
|
|
17006
17009
|
}
|
|
17007
|
-
},
|
|
17010
|
+
}, Xx = class e {
|
|
17008
17011
|
options;
|
|
17009
17012
|
renderer;
|
|
17010
17013
|
textRenderer;
|
|
17011
17014
|
constructor(e) {
|
|
17012
|
-
this.options = e ||
|
|
17015
|
+
this.options = e || xb, this.options.renderer = this.options.renderer || new Jx(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Yx();
|
|
17013
17016
|
}
|
|
17014
17017
|
static parse(t, n) {
|
|
17015
17018
|
return new e(n).parse(t);
|
|
@@ -17155,11 +17158,11 @@ ${e}</tr>
|
|
|
17155
17158
|
}
|
|
17156
17159
|
return n;
|
|
17157
17160
|
}
|
|
17158
|
-
},
|
|
17161
|
+
}, Zx = class {
|
|
17159
17162
|
options;
|
|
17160
17163
|
block;
|
|
17161
17164
|
constructor(e) {
|
|
17162
|
-
this.options = e ||
|
|
17165
|
+
this.options = e || xb;
|
|
17163
17166
|
}
|
|
17164
17167
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
17165
17168
|
"preprocess",
|
|
@@ -17185,22 +17188,22 @@ ${e}</tr>
|
|
|
17185
17188
|
return e;
|
|
17186
17189
|
}
|
|
17187
17190
|
provideLexer(e = this.block) {
|
|
17188
|
-
return e ?
|
|
17191
|
+
return e ? qx.lex : qx.lexInline;
|
|
17189
17192
|
}
|
|
17190
17193
|
provideParser(e = this.block) {
|
|
17191
|
-
return e ?
|
|
17194
|
+
return e ? Xx.parse : Xx.parseInline;
|
|
17192
17195
|
}
|
|
17193
|
-
},
|
|
17194
|
-
defaults =
|
|
17196
|
+
}, Qx = new class {
|
|
17197
|
+
defaults = bb();
|
|
17195
17198
|
options = this.setOptions;
|
|
17196
17199
|
parse = this.parseMarkdown(!0);
|
|
17197
17200
|
parseInline = this.parseMarkdown(!1);
|
|
17198
|
-
Parser =
|
|
17199
|
-
Renderer =
|
|
17200
|
-
TextRenderer =
|
|
17201
|
-
Lexer =
|
|
17202
|
-
Tokenizer =
|
|
17203
|
-
Hooks =
|
|
17201
|
+
Parser = Xx;
|
|
17202
|
+
Renderer = Jx;
|
|
17203
|
+
TextRenderer = Yx;
|
|
17204
|
+
Lexer = qx;
|
|
17205
|
+
Tokenizer = Kx;
|
|
17206
|
+
Hooks = Zx;
|
|
17204
17207
|
constructor(...e) {
|
|
17205
17208
|
this.use(...e);
|
|
17206
17209
|
}
|
|
@@ -17251,7 +17254,7 @@ ${e}</tr>
|
|
|
17251
17254
|
}
|
|
17252
17255
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
17253
17256
|
}), n.extensions = t), e.renderer) {
|
|
17254
|
-
let t = this.defaults.renderer || new
|
|
17257
|
+
let t = this.defaults.renderer || new Jx(this.defaults);
|
|
17255
17258
|
for (let n in e.renderer) {
|
|
17256
17259
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
17257
17260
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -17264,7 +17267,7 @@ ${e}</tr>
|
|
|
17264
17267
|
n.renderer = t;
|
|
17265
17268
|
}
|
|
17266
17269
|
if (e.tokenizer) {
|
|
17267
|
-
let t = this.defaults.tokenizer || new
|
|
17270
|
+
let t = this.defaults.tokenizer || new Kx(this.defaults);
|
|
17268
17271
|
for (let n in e.tokenizer) {
|
|
17269
17272
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
17270
17273
|
if ([
|
|
@@ -17281,13 +17284,13 @@ ${e}</tr>
|
|
|
17281
17284
|
n.tokenizer = t;
|
|
17282
17285
|
}
|
|
17283
17286
|
if (e.hooks) {
|
|
17284
|
-
let t = this.defaults.hooks || new
|
|
17287
|
+
let t = this.defaults.hooks || new Zx();
|
|
17285
17288
|
for (let n in e.hooks) {
|
|
17286
17289
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
17287
17290
|
if (["options", "block"].includes(n)) continue;
|
|
17288
17291
|
let r = n, i = e.hooks[r], a = t[r];
|
|
17289
|
-
|
|
17290
|
-
if (this.defaults.async &&
|
|
17292
|
+
Zx.passThroughHooks.has(n) ? t[r] = (e) => {
|
|
17293
|
+
if (this.defaults.async && Zx.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
17291
17294
|
let n = await i.call(t, e);
|
|
17292
17295
|
return a.call(t, n);
|
|
17293
17296
|
})();
|
|
@@ -17324,10 +17327,10 @@ ${e}</tr>
|
|
|
17324
17327
|
}, this;
|
|
17325
17328
|
}
|
|
17326
17329
|
lexer(e, t) {
|
|
17327
|
-
return
|
|
17330
|
+
return qx.lex(e, t ?? this.defaults);
|
|
17328
17331
|
}
|
|
17329
17332
|
parser(e, t) {
|
|
17330
|
-
return
|
|
17333
|
+
return Xx.parse(e, t ?? this.defaults);
|
|
17331
17334
|
}
|
|
17332
17335
|
parseMarkdown(e) {
|
|
17333
17336
|
return (t, n) => {
|
|
@@ -17339,16 +17342,16 @@ ${e}</tr>
|
|
|
17339
17342
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
17340
17343
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
17341
17344
|
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
17342
|
-
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ?
|
|
17345
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? qx.lex : qx.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
17343
17346
|
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
17344
|
-
let o = await (i.hooks ? await i.hooks.provideParser(e) : e ?
|
|
17347
|
+
let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? Xx.parse : Xx.parseInline)(a, i);
|
|
17345
17348
|
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
17346
17349
|
})().catch(a);
|
|
17347
17350
|
try {
|
|
17348
17351
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
17349
|
-
let n = (i.hooks ? i.hooks.provideLexer(e) : e ?
|
|
17352
|
+
let n = (i.hooks ? i.hooks.provideLexer(e) : e ? qx.lex : qx.lexInline)(t, i);
|
|
17350
17353
|
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
17351
|
-
let r = (i.hooks ? i.hooks.provideParser(e) : e ?
|
|
17354
|
+
let r = (i.hooks ? i.hooks.provideParser(e) : e ? Xx.parse : Xx.parseInline)(n, i);
|
|
17352
17355
|
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
17353
17356
|
} catch (e) {
|
|
17354
17357
|
return a(e);
|
|
@@ -17358,7 +17361,7 @@ ${e}</tr>
|
|
|
17358
17361
|
onError(e, t) {
|
|
17359
17362
|
return (n) => {
|
|
17360
17363
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
17361
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
17364
|
+
let e = "<p>An error occurred:</p><pre>" + Lx(n.message + "", !0) + "</pre>";
|
|
17362
17365
|
return t ? Promise.resolve(e) : e;
|
|
17363
17366
|
}
|
|
17364
17367
|
if (t) return Promise.reject(n);
|
|
@@ -17366,19 +17369,19 @@ ${e}</tr>
|
|
|
17366
17369
|
};
|
|
17367
17370
|
}
|
|
17368
17371
|
}();
|
|
17369
|
-
function
|
|
17370
|
-
return
|
|
17371
|
-
}
|
|
17372
|
-
|
|
17373
|
-
return
|
|
17374
|
-
},
|
|
17375
|
-
return
|
|
17376
|
-
},
|
|
17377
|
-
return
|
|
17378
|
-
},
|
|
17372
|
+
function $x(e, t) {
|
|
17373
|
+
return Qx.parse(e, t);
|
|
17374
|
+
}
|
|
17375
|
+
$x.options = $x.setOptions = function(e) {
|
|
17376
|
+
return Qx.setOptions(e), $x.defaults = Qx.defaults, Sb($x.defaults), $x;
|
|
17377
|
+
}, $x.getDefaults = bb, $x.defaults = xb, $x.use = function(...e) {
|
|
17378
|
+
return Qx.use(...e), $x.defaults = Qx.defaults, Sb($x.defaults), $x;
|
|
17379
|
+
}, $x.walkTokens = function(e, t) {
|
|
17380
|
+
return Qx.walkTokens(e, t);
|
|
17381
|
+
}, $x.parseInline = Qx.parseInline, $x.Parser = Xx, $x.parser = Xx.parse, $x.Renderer = Jx, $x.TextRenderer = Yx, $x.Lexer = qx, $x.lexer = qx.lex, $x.Tokenizer = Kx, $x.Hooks = Zx, $x.parse = $x, $x.options, $x.setOptions, $x.use, $x.walkTokens, $x.parseInline, Xx.parse, qx.lex;
|
|
17379
17382
|
//#endregion
|
|
17380
17383
|
//#region node_modules/highlight.js/lib/core.js
|
|
17381
|
-
var
|
|
17384
|
+
var eS = /* @__PURE__ */ h(((e, t) => {
|
|
17382
17385
|
function n(e) {
|
|
17383
17386
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
17384
17387
|
throw Error("map is read-only");
|
|
@@ -18219,7 +18222,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
18219
18222
|
return Object.assign(e, L), e;
|
|
18220
18223
|
}, je = Ae({});
|
|
18221
18224
|
je.newInstance = () => Ae({}), t.exports = je, je.HighlightJS = je, je.default = je;
|
|
18222
|
-
})),
|
|
18225
|
+
})), tS = /* @__PURE__ */ h(((e, t) => {
|
|
18223
18226
|
function n(e) {
|
|
18224
18227
|
let t = e.regex, n = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, i = {
|
|
18225
18228
|
className: "symbol",
|
|
@@ -18384,7 +18387,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
18384
18387
|
};
|
|
18385
18388
|
}
|
|
18386
18389
|
t.exports = n;
|
|
18387
|
-
})),
|
|
18390
|
+
})), nS = /* @__PURE__ */ h(((e, t) => {
|
|
18388
18391
|
function n(e) {
|
|
18389
18392
|
let t = e.regex, n = {}, r = {
|
|
18390
18393
|
begin: /\$\{/,
|
|
@@ -18552,7 +18555,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
18552
18555
|
};
|
|
18553
18556
|
}
|
|
18554
18557
|
t.exports = n;
|
|
18555
|
-
})),
|
|
18558
|
+
})), rS = /* @__PURE__ */ h(((e, t) => {
|
|
18556
18559
|
function n(e) {
|
|
18557
18560
|
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
|
|
18558
18561
|
className: "type",
|
|
@@ -18727,7 +18730,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
18727
18730
|
};
|
|
18728
18731
|
}
|
|
18729
18732
|
t.exports = n;
|
|
18730
|
-
})),
|
|
18733
|
+
})), iS = /* @__PURE__ */ h(((e, t) => {
|
|
18731
18734
|
function n(e) {
|
|
18732
18735
|
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(?!struct)(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
|
|
18733
18736
|
className: "type",
|
|
@@ -18951,7 +18954,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
18951
18954
|
};
|
|
18952
18955
|
}
|
|
18953
18956
|
t.exports = n;
|
|
18954
|
-
})),
|
|
18957
|
+
})), aS = /* @__PURE__ */ h(((e, t) => {
|
|
18955
18958
|
function n(e) {
|
|
18956
18959
|
let t = [
|
|
18957
18960
|
"bool",
|
|
@@ -19210,7 +19213,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
19210
19213
|
};
|
|
19211
19214
|
}
|
|
19212
19215
|
t.exports = n;
|
|
19213
|
-
})),
|
|
19216
|
+
})), oS = /* @__PURE__ */ h(((e, t) => {
|
|
19214
19217
|
var n = (e) => ({
|
|
19215
19218
|
IMPORTANT: {
|
|
19216
19219
|
scope: "meta",
|
|
@@ -19349,7 +19352,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
19349
19352
|
};
|
|
19350
19353
|
}
|
|
19351
19354
|
t.exports = u;
|
|
19352
|
-
})),
|
|
19355
|
+
})), sS = /* @__PURE__ */ h(((e, t) => {
|
|
19353
19356
|
function n(e) {
|
|
19354
19357
|
let t = e.regex, n = {
|
|
19355
19358
|
begin: /<\/?[A-Za-z_]/,
|
|
@@ -19529,7 +19532,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
19529
19532
|
};
|
|
19530
19533
|
}
|
|
19531
19534
|
t.exports = n;
|
|
19532
|
-
})),
|
|
19535
|
+
})), cS = /* @__PURE__ */ h(((e, t) => {
|
|
19533
19536
|
function n(e) {
|
|
19534
19537
|
let t = e.regex;
|
|
19535
19538
|
return {
|
|
@@ -19567,7 +19570,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
19567
19570
|
};
|
|
19568
19571
|
}
|
|
19569
19572
|
t.exports = n;
|
|
19570
|
-
})),
|
|
19573
|
+
})), lS = /* @__PURE__ */ h(((e, t) => {
|
|
19571
19574
|
function n(e) {
|
|
19572
19575
|
let t = e.regex, n = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", r = t.either(/\b([A-Z]+[a-z0-9]+)+/, /\b([A-Z]+[a-z0-9]+)+[A-Z]+/), i = t.concat(r, /(::\w+)*/), a = {
|
|
19573
19576
|
"variable.constant": [
|
|
@@ -19828,7 +19831,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
19828
19831
|
};
|
|
19829
19832
|
}
|
|
19830
19833
|
t.exports = n;
|
|
19831
|
-
})),
|
|
19834
|
+
})), uS = /* @__PURE__ */ h(((e, t) => {
|
|
19832
19835
|
function n(e) {
|
|
19833
19836
|
let t = {
|
|
19834
19837
|
keyword: [
|
|
@@ -19967,7 +19970,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
19967
19970
|
};
|
|
19968
19971
|
}
|
|
19969
19972
|
t.exports = n;
|
|
19970
|
-
})),
|
|
19973
|
+
})), dS = /* @__PURE__ */ h(((e, t) => {
|
|
19971
19974
|
function n(e) {
|
|
19972
19975
|
let t = e.regex;
|
|
19973
19976
|
return {
|
|
@@ -20033,7 +20036,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
20033
20036
|
};
|
|
20034
20037
|
}
|
|
20035
20038
|
t.exports = n;
|
|
20036
|
-
})),
|
|
20039
|
+
})), fS = /* @__PURE__ */ h(((e, t) => {
|
|
20037
20040
|
function n(e) {
|
|
20038
20041
|
let t = e.regex, n = {
|
|
20039
20042
|
className: "number",
|
|
@@ -20120,7 +20123,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
20120
20123
|
};
|
|
20121
20124
|
}
|
|
20122
20125
|
t.exports = n;
|
|
20123
|
-
})),
|
|
20126
|
+
})), pS = /* @__PURE__ */ h(((e, t) => {
|
|
20124
20127
|
var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
|
|
20125
20128
|
className: "number",
|
|
20126
20129
|
variants: [
|
|
@@ -20288,7 +20291,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
20288
20291
|
};
|
|
20289
20292
|
}
|
|
20290
20293
|
t.exports = s;
|
|
20291
|
-
})),
|
|
20294
|
+
})), mS = /* @__PURE__ */ h(((e, t) => {
|
|
20292
20295
|
var n = "[A-Za-z$_][0-9A-Za-z$_]*", r = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), i = [
|
|
20293
20296
|
"true",
|
|
20294
20297
|
"false",
|
|
@@ -20723,7 +20726,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
20723
20726
|
};
|
|
20724
20727
|
}
|
|
20725
20728
|
t.exports = u;
|
|
20726
|
-
})),
|
|
20729
|
+
})), hS = /* @__PURE__ */ h(((e, t) => {
|
|
20727
20730
|
function n(e) {
|
|
20728
20731
|
let t = {
|
|
20729
20732
|
className: "attr",
|
|
@@ -20758,7 +20761,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
20758
20761
|
};
|
|
20759
20762
|
}
|
|
20760
20763
|
t.exports = n;
|
|
20761
|
-
})),
|
|
20764
|
+
})), gS = /* @__PURE__ */ h(((e, t) => {
|
|
20762
20765
|
var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
|
|
20763
20766
|
className: "number",
|
|
20764
20767
|
variants: [
|
|
@@ -20958,7 +20961,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
20958
20961
|
};
|
|
20959
20962
|
}
|
|
20960
20963
|
t.exports = o;
|
|
20961
|
-
})),
|
|
20964
|
+
})), _S = /* @__PURE__ */ h(((e, t) => {
|
|
20962
20965
|
var n = (e) => ({
|
|
20963
20966
|
IMPORTANT: {
|
|
20964
20967
|
scope: "meta",
|
|
@@ -21149,7 +21152,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
21149
21152
|
};
|
|
21150
21153
|
}
|
|
21151
21154
|
t.exports = d;
|
|
21152
|
-
})),
|
|
21155
|
+
})), vS = /* @__PURE__ */ h(((e, t) => {
|
|
21153
21156
|
function n(e) {
|
|
21154
21157
|
let t = "\\[=*\\[", n = "\\]=*\\]", r = {
|
|
21155
21158
|
begin: t,
|
|
@@ -21194,7 +21197,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
21194
21197
|
};
|
|
21195
21198
|
}
|
|
21196
21199
|
t.exports = n;
|
|
21197
|
-
})),
|
|
21200
|
+
})), yS = /* @__PURE__ */ h(((e, t) => {
|
|
21198
21201
|
function n(e) {
|
|
21199
21202
|
let t = {
|
|
21200
21203
|
className: "variable",
|
|
@@ -21250,7 +21253,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
21250
21253
|
};
|
|
21251
21254
|
}
|
|
21252
21255
|
t.exports = n;
|
|
21253
|
-
})),
|
|
21256
|
+
})), bS = /* @__PURE__ */ h(((e, t) => {
|
|
21254
21257
|
function n(e) {
|
|
21255
21258
|
let t = e.regex, n = /* @__PURE__ */ "abs.accept.alarm.and.atan2.bind.binmode.bless.break.caller.chdir.chmod.chomp.chop.chown.chr.chroot.class.close.closedir.connect.continue.cos.crypt.dbmclose.dbmopen.defined.delete.die.do.dump.each.else.elsif.endgrent.endhostent.endnetent.endprotoent.endpwent.endservent.eof.eval.exec.exists.exit.exp.fcntl.field.fileno.flock.for.foreach.fork.format.formline.getc.getgrent.getgrgid.getgrnam.gethostbyaddr.gethostbyname.gethostent.getlogin.getnetbyaddr.getnetbyname.getnetent.getpeername.getpgrp.getpriority.getprotobyname.getprotobynumber.getprotoent.getpwent.getpwnam.getpwuid.getservbyname.getservbyport.getservent.getsockname.getsockopt.given.glob.gmtime.goto.grep.gt.hex.if.index.int.ioctl.join.keys.kill.last.lc.lcfirst.length.link.listen.local.localtime.log.lstat.lt.ma.map.method.mkdir.msgctl.msgget.msgrcv.msgsnd.my.ne.next.no.not.oct.open.opendir.or.ord.our.pack.package.pipe.pop.pos.print.printf.prototype.push.q|0.qq.quotemeta.qw.qx.rand.read.readdir.readline.readlink.readpipe.recv.redo.ref.rename.require.reset.return.reverse.rewinddir.rindex.rmdir.say.scalar.seek.seekdir.select.semctl.semget.semop.send.setgrent.sethostent.setnetent.setpgrp.setpriority.setprotoent.setpwent.setservent.setsockopt.shift.shmctl.shmget.shmread.shmwrite.shutdown.sin.sleep.socket.socketpair.sort.splice.split.sprintf.sqrt.srand.stat.state.study.sub.substr.symlink.syscall.sysopen.sysread.sysseek.system.syswrite.tell.telldir.tie.tied.time.times.tr.truncate.uc.ucfirst.umask.undef.unless.unlink.unpack.unshift.untie.until.use.utime.values.vec.wait.waitpid.wantarray.warn.when.while.write.x|0.xor.y|0".split("."), r = /[dualxmsipngr]{0,12}/, i = {
|
|
21256
21259
|
$pattern: /[\w.]+/,
|
|
@@ -21441,7 +21444,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
21441
21444
|
};
|
|
21442
21445
|
}
|
|
21443
21446
|
t.exports = n;
|
|
21444
|
-
})),
|
|
21447
|
+
})), xS = /* @__PURE__ */ h(((e, t) => {
|
|
21445
21448
|
function n(e) {
|
|
21446
21449
|
let t = {
|
|
21447
21450
|
className: "built_in",
|
|
@@ -21557,7 +21560,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
21557
21560
|
};
|
|
21558
21561
|
}
|
|
21559
21562
|
t.exports = n;
|
|
21560
|
-
})),
|
|
21563
|
+
})), SS = /* @__PURE__ */ h(((e, t) => {
|
|
21561
21564
|
function n(e) {
|
|
21562
21565
|
let t = e.regex, n = /(?![A-Za-z0-9])(?![$])/, r = t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/, n), i = t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/, n), a = t.concat(/[A-Z]+/, n), o = {
|
|
21563
21566
|
scope: "variable",
|
|
@@ -21850,7 +21853,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
21850
21853
|
};
|
|
21851
21854
|
}
|
|
21852
21855
|
t.exports = n;
|
|
21853
|
-
})),
|
|
21856
|
+
})), CS = /* @__PURE__ */ h(((e, t) => {
|
|
21854
21857
|
function n(e) {
|
|
21855
21858
|
return {
|
|
21856
21859
|
name: "PHP template",
|
|
@@ -21892,7 +21895,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
21892
21895
|
};
|
|
21893
21896
|
}
|
|
21894
21897
|
t.exports = n;
|
|
21895
|
-
})),
|
|
21898
|
+
})), wS = /* @__PURE__ */ h(((e, t) => {
|
|
21896
21899
|
function n(e) {
|
|
21897
21900
|
return {
|
|
21898
21901
|
name: "Plain text",
|
|
@@ -21901,7 +21904,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
21901
21904
|
};
|
|
21902
21905
|
}
|
|
21903
21906
|
t.exports = n;
|
|
21904
|
-
})),
|
|
21907
|
+
})), TS = /* @__PURE__ */ h(((e, t) => {
|
|
21905
21908
|
function n(e) {
|
|
21906
21909
|
let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
|
|
21907
21910
|
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
@@ -22138,7 +22141,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
22138
22141
|
};
|
|
22139
22142
|
}
|
|
22140
22143
|
t.exports = n;
|
|
22141
|
-
})),
|
|
22144
|
+
})), ES = /* @__PURE__ */ h(((e, t) => {
|
|
22142
22145
|
function n(e) {
|
|
22143
22146
|
return {
|
|
22144
22147
|
aliases: ["pycon"],
|
|
@@ -22156,7 +22159,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
22156
22159
|
};
|
|
22157
22160
|
}
|
|
22158
22161
|
t.exports = n;
|
|
22159
|
-
})),
|
|
22162
|
+
})), DS = /* @__PURE__ */ h(((e, t) => {
|
|
22160
22163
|
function n(e) {
|
|
22161
22164
|
let t = e.regex, n = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, r = t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/, /0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/, /(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/), i = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/, a = t.either(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
|
|
22162
22165
|
return {
|
|
@@ -22295,7 +22298,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
22295
22298
|
};
|
|
22296
22299
|
}
|
|
22297
22300
|
t.exports = n;
|
|
22298
|
-
})),
|
|
22301
|
+
})), OS = /* @__PURE__ */ h(((e, t) => {
|
|
22299
22302
|
function n(e) {
|
|
22300
22303
|
let t = e.regex, n = /(r#)?/, r = t.concat(n, e.UNDERSCORE_IDENT_RE), i = t.concat(n, e.IDENT_RE), a = {
|
|
22301
22304
|
className: "title.function.invoke",
|
|
@@ -22463,7 +22466,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
22463
22466
|
};
|
|
22464
22467
|
}
|
|
22465
22468
|
t.exports = n;
|
|
22466
|
-
})),
|
|
22469
|
+
})), kS = /* @__PURE__ */ h(((e, t) => {
|
|
22467
22470
|
var n = (e) => ({
|
|
22468
22471
|
IMPORTANT: {
|
|
22469
22472
|
scope: "meta",
|
|
@@ -22612,7 +22615,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
22612
22615
|
};
|
|
22613
22616
|
}
|
|
22614
22617
|
t.exports = u;
|
|
22615
|
-
})),
|
|
22618
|
+
})), AS = /* @__PURE__ */ h(((e, t) => {
|
|
22616
22619
|
function n(e) {
|
|
22617
22620
|
return {
|
|
22618
22621
|
name: "Shell Session",
|
|
@@ -22628,7 +22631,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
22628
22631
|
};
|
|
22629
22632
|
}
|
|
22630
22633
|
t.exports = n;
|
|
22631
|
-
})),
|
|
22634
|
+
})), jS = /* @__PURE__ */ h(((e, t) => {
|
|
22632
22635
|
function n(e) {
|
|
22633
22636
|
let t = e.regex, n = e.COMMENT("--", "$"), r = {
|
|
22634
22637
|
scope: "string",
|
|
@@ -22745,7 +22748,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
22745
22748
|
};
|
|
22746
22749
|
}
|
|
22747
22750
|
t.exports = n;
|
|
22748
|
-
})),
|
|
22751
|
+
})), MS = /* @__PURE__ */ h(((e, t) => {
|
|
22749
22752
|
function n(e) {
|
|
22750
22753
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
22751
22754
|
}
|
|
@@ -23318,7 +23321,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
23318
23321
|
};
|
|
23319
23322
|
}
|
|
23320
23323
|
t.exports = T;
|
|
23321
|
-
})),
|
|
23324
|
+
})), NS = /* @__PURE__ */ h(((e, t) => {
|
|
23322
23325
|
function n(e) {
|
|
23323
23326
|
let t = "true false yes no null", n = {
|
|
23324
23327
|
className: "attr",
|
|
@@ -23461,7 +23464,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
23461
23464
|
};
|
|
23462
23465
|
}
|
|
23463
23466
|
t.exports = n;
|
|
23464
|
-
})),
|
|
23467
|
+
})), PS = /* @__PURE__ */ h(((e, t) => {
|
|
23465
23468
|
var n = "[A-Za-z$_][0-9A-Za-z$_]*", r = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), i = [
|
|
23466
23469
|
"true",
|
|
23467
23470
|
"false",
|
|
@@ -23981,7 +23984,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
23981
23984
|
}), a;
|
|
23982
23985
|
}
|
|
23983
23986
|
t.exports = d;
|
|
23984
|
-
})),
|
|
23987
|
+
})), FS = /* @__PURE__ */ h(((e, t) => {
|
|
23985
23988
|
function n(e) {
|
|
23986
23989
|
let t = e.regex, n = {
|
|
23987
23990
|
className: "string",
|
|
@@ -24049,7 +24052,7 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
24049
24052
|
};
|
|
24050
24053
|
}
|
|
24051
24054
|
t.exports = n;
|
|
24052
|
-
})),
|
|
24055
|
+
})), IS = /* @__PURE__ */ h(((e, t) => {
|
|
24053
24056
|
function n(e) {
|
|
24054
24057
|
e.regex;
|
|
24055
24058
|
let t = e.COMMENT(/\(;/, /;\)/);
|
|
@@ -24111,65 +24114,65 @@ var $x = /* @__PURE__ */ h(((e, t) => {
|
|
|
24111
24114
|
};
|
|
24112
24115
|
}
|
|
24113
24116
|
t.exports = n;
|
|
24114
|
-
})),
|
|
24115
|
-
var n =
|
|
24116
|
-
n.registerLanguage("xml",
|
|
24117
|
+
})), LS = (/* @__PURE__ */ _((/* @__PURE__ */ h(((e, t) => {
|
|
24118
|
+
var n = eS();
|
|
24119
|
+
n.registerLanguage("xml", tS()), n.registerLanguage("bash", nS()), n.registerLanguage("c", rS()), n.registerLanguage("cpp", iS()), n.registerLanguage("csharp", aS()), n.registerLanguage("css", oS()), n.registerLanguage("markdown", sS()), n.registerLanguage("diff", cS()), n.registerLanguage("ruby", lS()), n.registerLanguage("go", uS()), n.registerLanguage("graphql", dS()), n.registerLanguage("ini", fS()), n.registerLanguage("java", pS()), n.registerLanguage("javascript", mS()), n.registerLanguage("json", hS()), n.registerLanguage("kotlin", gS()), n.registerLanguage("less", _S()), n.registerLanguage("lua", vS()), n.registerLanguage("makefile", yS()), n.registerLanguage("perl", bS()), n.registerLanguage("objectivec", xS()), n.registerLanguage("php", SS()), n.registerLanguage("php-template", CS()), n.registerLanguage("plaintext", wS()), n.registerLanguage("python", TS()), n.registerLanguage("python-repl", ES()), n.registerLanguage("r", DS()), n.registerLanguage("rust", OS()), n.registerLanguage("scss", kS()), n.registerLanguage("shell", AS()), n.registerLanguage("sql", jS()), n.registerLanguage("swift", MS()), n.registerLanguage("yaml", NS()), n.registerLanguage("typescript", PS()), n.registerLanguage("vbnet", FS()), n.registerLanguage("wasm", IS()), n.HighlightJS = n, n.default = n, t.exports = n;
|
|
24117
24120
|
})))())).default;
|
|
24118
24121
|
//#endregion
|
|
24119
24122
|
//#region src/core/composables/useMarkdown.ts
|
|
24120
|
-
|
|
24123
|
+
$x.setOptions({
|
|
24121
24124
|
breaks: !0,
|
|
24122
24125
|
gfm: !0
|
|
24123
24126
|
});
|
|
24124
|
-
var
|
|
24125
|
-
|
|
24127
|
+
var RS = 2e4, zS = new $x.Renderer();
|
|
24128
|
+
zS.code = ({ text: e, lang: t }) => {
|
|
24126
24129
|
let n = (t || "").trim() || "plaintext", r = "";
|
|
24127
|
-
if (e.length > 2e4) r =
|
|
24130
|
+
if (e.length > 2e4) r = VS(e);
|
|
24128
24131
|
else try {
|
|
24129
|
-
r =
|
|
24132
|
+
r = LS.highlight(e, {
|
|
24130
24133
|
language: n,
|
|
24131
24134
|
ignoreIllegals: !0
|
|
24132
24135
|
}).value;
|
|
24133
24136
|
} catch {
|
|
24134
|
-
r =
|
|
24137
|
+
r = VS(e);
|
|
24135
24138
|
}
|
|
24136
|
-
let i = encodeURIComponent(e), a =
|
|
24139
|
+
let i = encodeURIComponent(e), a = BS(n);
|
|
24137
24140
|
return `<pre class="code-block" data-lang="${a}" data-code="${i}"><code class="hljs language-${a}">${r}</code></pre>`;
|
|
24138
24141
|
};
|
|
24139
|
-
function
|
|
24142
|
+
function BS(e) {
|
|
24140
24143
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
24141
24144
|
}
|
|
24142
|
-
function
|
|
24145
|
+
function VS(e) {
|
|
24143
24146
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
24144
24147
|
}
|
|
24145
|
-
var
|
|
24148
|
+
var HS = { ADD_ATTR: [
|
|
24146
24149
|
"data-code",
|
|
24147
24150
|
"data-lang",
|
|
24148
24151
|
"target",
|
|
24149
24152
|
"rel"
|
|
24150
24153
|
] };
|
|
24151
|
-
function HS(e) {
|
|
24152
|
-
return Yv.sanitize(e, VS);
|
|
24153
|
-
}
|
|
24154
24154
|
function US(e) {
|
|
24155
|
-
return
|
|
24155
|
+
return Yv.sanitize(e, HS);
|
|
24156
24156
|
}
|
|
24157
24157
|
function WS(e) {
|
|
24158
|
-
return
|
|
24158
|
+
return $x.parse(e || "", { renderer: zS });
|
|
24159
24159
|
}
|
|
24160
|
-
|
|
24161
|
-
|
|
24162
|
-
|
|
24160
|
+
function GS(e) {
|
|
24161
|
+
return US(WS(e));
|
|
24162
|
+
}
|
|
24163
|
+
var KS = 100, qS = 2e3;
|
|
24164
|
+
function JS(e) {
|
|
24165
|
+
let t = /* @__PURE__ */ Tn(GS(e())), n = 0, r = null;
|
|
24163
24166
|
function i() {
|
|
24164
|
-
r = null, n = Date.now(), t.value =
|
|
24167
|
+
r = null, n = Date.now(), t.value = GS(e());
|
|
24165
24168
|
}
|
|
24166
24169
|
return ri(e, () => {
|
|
24167
24170
|
let a = e();
|
|
24168
|
-
if (a.length <=
|
|
24169
|
-
r &&= (clearTimeout(r), null), n = Date.now(), t.value =
|
|
24171
|
+
if (a.length <= qS) {
|
|
24172
|
+
r &&= (clearTimeout(r), null), n = Date.now(), t.value = GS(a);
|
|
24170
24173
|
return;
|
|
24171
24174
|
}
|
|
24172
|
-
let o = n +
|
|
24175
|
+
let o = n + KS - Date.now();
|
|
24173
24176
|
o <= 0 ? (r &&= (clearTimeout(r), null), i()) : r ||= setTimeout(i, o);
|
|
24174
24177
|
}), Ze(() => {
|
|
24175
24178
|
r &&= (clearTimeout(r), null);
|
|
@@ -24187,20 +24190,20 @@ function qS(e) {
|
|
|
24187
24190
|
}
|
|
24188
24191
|
//#endregion
|
|
24189
24192
|
//#region src/core/components/CodePreview.vue?vue&type=script&setup=true&lang.ts
|
|
24190
|
-
var
|
|
24193
|
+
var YS = { class: "code-preview-modal" }, XS = { class: "preview-header" }, ZS = { class: "preview-title" }, QS = { class: "preview-tabs" }, $S = ["disabled"], eC = { class: "preview-actions" }, tC = ["title"], nC = {
|
|
24191
24194
|
key: 0,
|
|
24192
24195
|
viewBox: "0 0 16 16",
|
|
24193
24196
|
fill: "none",
|
|
24194
24197
|
"aria-hidden": "true"
|
|
24195
|
-
},
|
|
24198
|
+
}, rC = {
|
|
24196
24199
|
key: 1,
|
|
24197
24200
|
viewBox: "0 0 16 16",
|
|
24198
24201
|
fill: "none",
|
|
24199
24202
|
"aria-hidden": "true"
|
|
24200
|
-
},
|
|
24203
|
+
}, iC = ["title"], aC = ["title"], oC = { class: "preview-body" }, sC = ["srcdoc"], cC = {
|
|
24201
24204
|
key: 1,
|
|
24202
24205
|
class: "preview-source"
|
|
24203
|
-
},
|
|
24206
|
+
}, lC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24204
24207
|
__name: "CodePreview",
|
|
24205
24208
|
props: {
|
|
24206
24209
|
code: {},
|
|
@@ -24267,28 +24270,28 @@ app.mount('#app');
|
|
|
24267
24270
|
return (t, n) => (J(), Y("div", {
|
|
24268
24271
|
class: "code-preview-overlay",
|
|
24269
24272
|
onClick: n[3] ||= yl((e) => r("close"), ["self"])
|
|
24270
|
-
}, [X("div",
|
|
24271
|
-
X("span",
|
|
24272
|
-
X("div",
|
|
24273
|
+
}, [X("div", YS, [X("div", XS, [
|
|
24274
|
+
X("span", ZS, U(e.messages.codePreviewTitlePrefix) + U(e.lang), 1),
|
|
24275
|
+
X("div", QS, [X("button", {
|
|
24273
24276
|
class: H({ active: a.value === "preview" }),
|
|
24274
24277
|
disabled: !s.value,
|
|
24275
24278
|
onClick: n[0] ||= (e) => a.value = "preview"
|
|
24276
|
-
}, U(e.messages.codePreviewTab), 11,
|
|
24279
|
+
}, U(e.messages.codePreviewTab), 11, $S), X("button", {
|
|
24277
24280
|
class: H({ active: a.value === "source" }),
|
|
24278
24281
|
onClick: n[1] ||= (e) => a.value = "source"
|
|
24279
24282
|
}, U(e.messages.codeSourceTab), 3)]),
|
|
24280
|
-
X("div",
|
|
24283
|
+
X("div", eC, [
|
|
24281
24284
|
X("button", {
|
|
24282
24285
|
class: H(["icon-btn", { done: o.value }]),
|
|
24283
24286
|
title: o.value ? e.messages.copied : e.messages.codeCopyTitle,
|
|
24284
24287
|
onClick: u
|
|
24285
|
-
}, [o.value ? (J(), Y("svg",
|
|
24288
|
+
}, [o.value ? (J(), Y("svg", nC, [...n[4] ||= [X("path", {
|
|
24286
24289
|
d: "M3 8.5l3 3 7-7",
|
|
24287
24290
|
stroke: "currentColor",
|
|
24288
24291
|
"stroke-width": "1.6",
|
|
24289
24292
|
"stroke-linecap": "round",
|
|
24290
24293
|
"stroke-linejoin": "round"
|
|
24291
|
-
}, null, -1)]])) : (J(), Y("svg",
|
|
24294
|
+
}, null, -1)]])) : (J(), Y("svg", rC, [...n[5] ||= [X("rect", {
|
|
24292
24295
|
x: "5.5",
|
|
24293
24296
|
y: "5.5",
|
|
24294
24297
|
width: "8",
|
|
@@ -24300,7 +24303,7 @@ app.mount('#app');
|
|
|
24300
24303
|
d: "M10.5 3.5v-.5A1.5 1.5 0 0 0 9 1.5H3.5A1.5 1.5 0 0 0 2 3v5.5A1.5 1.5 0 0 0 3.5 10H4",
|
|
24301
24304
|
stroke: "currentColor",
|
|
24302
24305
|
"stroke-width": "1.3"
|
|
24303
|
-
}, null, -1)]]))], 10,
|
|
24306
|
+
}, null, -1)]]))], 10, tC),
|
|
24304
24307
|
X("button", {
|
|
24305
24308
|
class: "icon-btn",
|
|
24306
24309
|
title: e.messages.codeOpenTitle,
|
|
@@ -24320,7 +24323,7 @@ app.mount('#app');
|
|
|
24320
24323
|
"stroke-width": "1.3",
|
|
24321
24324
|
"stroke-linecap": "round",
|
|
24322
24325
|
"stroke-linejoin": "round"
|
|
24323
|
-
})], -1)]], 8,
|
|
24326
|
+
})], -1)]], 8, iC),
|
|
24324
24327
|
X("button", {
|
|
24325
24328
|
class: "icon-btn",
|
|
24326
24329
|
title: e.messages.close,
|
|
@@ -24334,25 +24337,25 @@ app.mount('#app');
|
|
|
24334
24337
|
stroke: "currentColor",
|
|
24335
24338
|
"stroke-width": "1.4",
|
|
24336
24339
|
"stroke-linecap": "round"
|
|
24337
|
-
})], -1)]], 8,
|
|
24340
|
+
})], -1)]], 8, aC)
|
|
24338
24341
|
])
|
|
24339
|
-
]), X("div",
|
|
24342
|
+
]), X("div", oC, [a.value === "preview" && s.value ? (J(), Y("iframe", {
|
|
24340
24343
|
key: 0,
|
|
24341
24344
|
ref_key: "iframeRef",
|
|
24342
24345
|
ref: i,
|
|
24343
24346
|
class: "preview-iframe",
|
|
24344
24347
|
sandbox: "allow-scripts allow-modals allow-popups allow-forms",
|
|
24345
24348
|
srcdoc: c.value
|
|
24346
|
-
}, null, 8,
|
|
24349
|
+
}, null, 8, sC)) : (J(), Y("pre", cC, [X("code", null, U(e.code), 1)]))])])]));
|
|
24347
24350
|
}
|
|
24348
|
-
}), [["__scopeId", "data-v-27eac25e"]]),
|
|
24351
|
+
}), [["__scopeId", "data-v-27eac25e"]]), uC = ["innerHTML"], dC = /* @__PURE__ */ Ii({
|
|
24349
24352
|
__name: "MessageContent",
|
|
24350
24353
|
props: {
|
|
24351
24354
|
content: {},
|
|
24352
24355
|
messages: { default: () => b_ }
|
|
24353
24356
|
},
|
|
24354
24357
|
setup(e) {
|
|
24355
|
-
let t = e, { html: n, codeBlocks: r } =
|
|
24358
|
+
let t = e, { html: n, codeBlocks: r } = JS(() => t.content), i = /* @__PURE__ */ wn(null), a = /* @__PURE__ */ wn(null), o = [
|
|
24356
24359
|
"html",
|
|
24357
24360
|
"htm",
|
|
24358
24361
|
"vue",
|
|
@@ -24425,7 +24428,7 @@ app.mount('#app');
|
|
|
24425
24428
|
ref_key: "containerRef",
|
|
24426
24429
|
ref: i,
|
|
24427
24430
|
innerHTML: G(n)
|
|
24428
|
-
}, null, 8,
|
|
24431
|
+
}, null, 8, uC), (J(), os(vi, { to: "body" }, [a.value ? (J(), os(lC, {
|
|
24429
24432
|
key: 0,
|
|
24430
24433
|
code: a.value.code,
|
|
24431
24434
|
lang: a.value.lang,
|
|
@@ -24437,10 +24440,10 @@ app.mount('#app');
|
|
|
24437
24440
|
"messages"
|
|
24438
24441
|
])) : Q("", !0)]))], 64));
|
|
24439
24442
|
}
|
|
24440
|
-
}),
|
|
24443
|
+
}), fC = { class: "typing-text" }, pC = {
|
|
24441
24444
|
key: 0,
|
|
24442
24445
|
class: "stream-cursor"
|
|
24443
|
-
},
|
|
24446
|
+
}, mC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24444
24447
|
__name: "MessageBubble",
|
|
24445
24448
|
props: {
|
|
24446
24449
|
content: {},
|
|
@@ -24451,29 +24454,29 @@ app.mount('#app');
|
|
|
24451
24454
|
messages: { default: () => ({ ...b_ }) }
|
|
24452
24455
|
},
|
|
24453
24456
|
setup(e) {
|
|
24454
|
-
return (t, n) => (J(), Y(q, null, [X("div", { class: H(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (J(), Y(q, { key: 0 }, [X("span", { class: H(["typing-dot", { pulse: e.showTyping }]) }, null, 2), X("span",
|
|
24457
|
+
return (t, n) => (J(), Y(q, null, [X("div", { class: H(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (J(), Y(q, { key: 0 }, [X("span", { class: H(["typing-dot", { pulse: e.showTyping }]) }, null, 2), X("span", fC, [Z(uy, { text: e.messages.thinking }, null, 8, ["text"])])], 64)) : (J(), Y(q, { key: 1 }, [e.role === "assistant" ? (J(), os(dC, {
|
|
24455
24458
|
key: 0,
|
|
24456
24459
|
content: e.content,
|
|
24457
24460
|
messages: e.messages
|
|
24458
|
-
}, null, 8, ["content", "messages"])) : (J(), Y(q, { key: 1 }, [_s(U(e.content), 1)], 64))], 64))], 2), e.showCursor ? (J(), Y("span",
|
|
24461
|
+
}, null, 8, ["content", "messages"])) : (J(), Y(q, { key: 1 }, [_s(U(e.content), 1)], 64))], 64))], 2), e.showCursor ? (J(), Y("span", pC)) : Q("", !0)], 64));
|
|
24459
24462
|
}
|
|
24460
|
-
}), [["__scopeId", "data-v-2aaa2787"]]),
|
|
24463
|
+
}), [["__scopeId", "data-v-2aaa2787"]]), hC = { class: "message-time" }, gC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24461
24464
|
__name: "MessageTime",
|
|
24462
24465
|
props: { time: {} },
|
|
24463
24466
|
setup(e) {
|
|
24464
|
-
return (t, n) => (J(), Y("div",
|
|
24467
|
+
return (t, n) => (J(), Y("div", hC, U(e.time), 1));
|
|
24465
24468
|
}
|
|
24466
|
-
}), [["__scopeId", "data-v-4a976e4a"]]),
|
|
24469
|
+
}), [["__scopeId", "data-v-4a976e4a"]]), _C = { class: "msg-actions" }, vC = ["title"], yC = {
|
|
24467
24470
|
key: 0,
|
|
24468
24471
|
viewBox: "0 0 16 16",
|
|
24469
24472
|
fill: "none",
|
|
24470
24473
|
"aria-hidden": "true"
|
|
24471
|
-
},
|
|
24474
|
+
}, bC = {
|
|
24472
24475
|
key: 1,
|
|
24473
24476
|
viewBox: "0 0 16 16",
|
|
24474
24477
|
fill: "none",
|
|
24475
24478
|
"aria-hidden": "true"
|
|
24476
|
-
},
|
|
24479
|
+
}, xC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24477
24480
|
__name: "MessageActions",
|
|
24478
24481
|
props: {
|
|
24479
24482
|
copied: { type: Boolean },
|
|
@@ -24481,17 +24484,17 @@ app.mount('#app');
|
|
|
24481
24484
|
},
|
|
24482
24485
|
emits: ["copy", "regenerate"],
|
|
24483
24486
|
setup(e) {
|
|
24484
|
-
return (t, n) => (J(), Y("div",
|
|
24487
|
+
return (t, n) => (J(), Y("div", _C, [X("button", {
|
|
24485
24488
|
class: H(["msg-action-btn", { done: e.copied }]),
|
|
24486
24489
|
title: e.copied ? e.messages.copied : e.messages.copy,
|
|
24487
24490
|
onClick: n[0] ||= (e) => t.$emit("copy")
|
|
24488
|
-
}, [e.copied ? (J(), Y("svg",
|
|
24491
|
+
}, [e.copied ? (J(), Y("svg", yC, [...n[2] ||= [X("path", {
|
|
24489
24492
|
d: "M3 8.5l3 3 7-7",
|
|
24490
24493
|
stroke: "currentColor",
|
|
24491
24494
|
"stroke-width": "1.6",
|
|
24492
24495
|
"stroke-linecap": "round",
|
|
24493
24496
|
"stroke-linejoin": "round"
|
|
24494
|
-
}, null, -1)]])) : (J(), Y("svg",
|
|
24497
|
+
}, null, -1)]])) : (J(), Y("svg", bC, [...n[3] ||= [X("rect", {
|
|
24495
24498
|
x: "5.5",
|
|
24496
24499
|
y: "5.5",
|
|
24497
24500
|
width: "8",
|
|
@@ -24503,7 +24506,7 @@ app.mount('#app');
|
|
|
24503
24506
|
d: "M10.5 3.5v-.5A1.5 1.5 0 0 0 9 1.5H3.5A1.5 1.5 0 0 0 2 3v5.5A1.5 1.5 0 0 0 3.5 10H4",
|
|
24504
24507
|
stroke: "currentColor",
|
|
24505
24508
|
"stroke-width": "1.3"
|
|
24506
|
-
}, null, -1)]])), X("span", null, U(e.copied ? e.messages.copied : e.messages.copy), 1)], 10,
|
|
24509
|
+
}, null, -1)]])), X("span", null, U(e.copied ? e.messages.copied : e.messages.copy), 1)], 10, vC), X("button", {
|
|
24507
24510
|
class: "msg-action-btn",
|
|
24508
24511
|
onClick: n[1] ||= (e) => t.$emit("regenerate")
|
|
24509
24512
|
}, [n[4] ||= X("svg", {
|
|
@@ -24523,38 +24526,38 @@ app.mount('#app');
|
|
|
24523
24526
|
"stroke-linejoin": "round"
|
|
24524
24527
|
})], -1), X("span", null, U(e.messages.regenerate), 1)])]));
|
|
24525
24528
|
}
|
|
24526
|
-
}), [["__scopeId", "data-v-dc051a49"]]),
|
|
24529
|
+
}), [["__scopeId", "data-v-dc051a49"]]), SC = {
|
|
24527
24530
|
key: 1,
|
|
24528
24531
|
class: "avatar-icon",
|
|
24529
24532
|
viewBox: "0 0 1024 1024",
|
|
24530
24533
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24531
24534
|
"aria-hidden": "true"
|
|
24532
|
-
},
|
|
24535
|
+
}, CC = {
|
|
24533
24536
|
key: 2,
|
|
24534
24537
|
class: "avatar-icon",
|
|
24535
24538
|
viewBox: "0 0 1024 1024",
|
|
24536
24539
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24537
24540
|
"aria-hidden": "true"
|
|
24538
|
-
},
|
|
24541
|
+
}, wC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24539
24542
|
__name: "AvatarIcon",
|
|
24540
24543
|
props: {
|
|
24541
24544
|
role: {},
|
|
24542
24545
|
glyph: {}
|
|
24543
24546
|
},
|
|
24544
24547
|
setup(e) {
|
|
24545
|
-
return (t, n) => e.glyph ? (J(), os(
|
|
24548
|
+
return (t, n) => e.glyph ? (J(), os(cy, {
|
|
24546
24549
|
key: 0,
|
|
24547
24550
|
icon: e.glyph,
|
|
24548
24551
|
class: "avatar-glyph"
|
|
24549
|
-
}, null, 8, ["icon"])) : e.role === "user" ? (J(), Y("svg",
|
|
24552
|
+
}, null, 8, ["icon"])) : e.role === "user" ? (J(), Y("svg", SC, [...n[0] ||= [X("path", { d: "M512 170.688a149.312 149.312 0 1 0 0 298.624 149.312 149.312 0 0 0 0-298.624zM277.312 320a234.688 234.688 0 1 1 469.376 0 234.688 234.688 0 0 1-469.376 0zM128 810.688a213.312 213.312 0 0 1 213.312-213.312h341.376A213.312 213.312 0 0 1 896 810.688v128H128v-128z m213.312-128a128 128 0 0 0-128 128v42.688h597.376v-42.688a128 128 0 0 0-128-128H341.312z" }, null, -1)]])) : (J(), Y("svg", CC, [...n[1] ||= [X("path", { d: "M717.12 274H762c82.842 0 150 67.158 150 150v200c0 82.842-67.158 150-150 150H262c-82.842 0-150-67.158-150-150V424c0-82.842 67.158-150 150-150h44.88l-18.268-109.602c-4.086-24.514 12.476-47.7 36.99-51.786 24.514-4.086 47.7 12.476 51.786 36.99l20 120c0.246 1.472 0.416 2.94 0.516 4.398h228.192c0.1-1.46 0.27-2.926 0.516-4.398l20-120c4.086-24.514 27.272-41.076 51.786-36.99 24.514 4.086 41.076 27.272 36.99 51.786L717.12 274zM262 364c-33.138 0-60 26.862-60 60v200c0 33.138 26.862 60 60 60h500c33.138 0 60-26.862 60-60V424c0-33.138-26.862-60-60-60H262z m50 548c-24.852 0-45-20.148-45-45S287.148 822 312 822h400c24.852 0 45 20.148 45 45S736.852 912 712 912H312z m-4-428c0-24.852 20.148-45 45-45S398 459.148 398 484v40c0 24.852-20.148 45-45 45S308 548.852 308 524v-40z m318 0c0-24.852 20.148-45 45-45S716 459.148 716 484v40c0 24.852-20.148 45-45 45S626 548.852 626 524v-40z" }, null, -1)]]));
|
|
24550
24553
|
}
|
|
24551
|
-
}), [["__scopeId", "data-v-a0b508ea"]]),
|
|
24554
|
+
}), [["__scopeId", "data-v-a0b508ea"]]), TC = ["data-msg-idx"], EC = {
|
|
24552
24555
|
key: 0,
|
|
24553
24556
|
class: "message-avatar"
|
|
24554
|
-
},
|
|
24557
|
+
}, DC = { class: "message-content" }, OC = {
|
|
24555
24558
|
key: 2,
|
|
24556
24559
|
class: "msg-focuses"
|
|
24557
|
-
},
|
|
24560
|
+
}, kC = ["title", "onClick"], AC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24558
24561
|
__name: "MessageRow",
|
|
24559
24562
|
props: {
|
|
24560
24563
|
message: {},
|
|
@@ -24578,17 +24581,17 @@ app.mount('#app');
|
|
|
24578
24581
|
return (t, c) => (J(), Y("div", {
|
|
24579
24582
|
class: H(["message-row", e.message.role]),
|
|
24580
24583
|
"data-msg-idx": e.index
|
|
24581
|
-
}, [e.showAvatar ? (J(), Y("div",
|
|
24584
|
+
}, [e.showAvatar ? (J(), Y("div", EC, [Z(wC, {
|
|
24582
24585
|
role: e.message.role,
|
|
24583
24586
|
glyph: e.message.role === "user" ? G(n).icons.userAvatar : G(n).icons.assistantAvatar
|
|
24584
|
-
}, null, 8, ["role", "glyph"])])) : Q("", !0), X("div",
|
|
24585
|
-
r.value ? (J(), os(
|
|
24587
|
+
}, null, 8, ["role", "glyph"])])) : Q("", !0), X("div", DC, [
|
|
24588
|
+
r.value ? (J(), os(Uy, {
|
|
24586
24589
|
key: 0,
|
|
24587
24590
|
text: i.value,
|
|
24588
24591
|
expanded: e.reasoningExpanded,
|
|
24589
24592
|
onToggle: c[0] ||= (e) => t.$emit("toggle-reasoning")
|
|
24590
24593
|
}, null, 8, ["text", "expanded"])) : Q("", !0),
|
|
24591
|
-
r.value ? (J(), os(
|
|
24594
|
+
r.value ? (J(), os(yb, {
|
|
24592
24595
|
key: 1,
|
|
24593
24596
|
steps: a.value,
|
|
24594
24597
|
icons: G(n).icons,
|
|
@@ -24598,13 +24601,13 @@ app.mount('#app');
|
|
|
24598
24601
|
"icons",
|
|
24599
24602
|
"messages"
|
|
24600
24603
|
])) : Q("", !0),
|
|
24601
|
-
e.message.role === "user" && e.message.focuses?.length ? (J(), Y("div",
|
|
24604
|
+
e.message.role === "user" && e.message.focuses?.length ? (J(), Y("div", OC, [(J(!0), Y(q, null, ca(e.message.focuses, (e) => (J(), Y("span", {
|
|
24602
24605
|
key: e.path,
|
|
24603
24606
|
class: "msg-focus-chip",
|
|
24604
24607
|
title: G(n).messages.historyFocusChipTitlePrefix + e.path,
|
|
24605
24608
|
onClick: (t) => G(n).focusChipClick(e)
|
|
24606
|
-
}, [Z(
|
|
24607
|
-
Z(
|
|
24609
|
+
}, [Z(cy, { icon: G(n).icons.focus }, null, 8, ["icon"]), _s(" " + U(e.path), 1)], 8, kC))), 128))])) : Q("", !0),
|
|
24610
|
+
Z(mC, {
|
|
24608
24611
|
messages: G(n).messages,
|
|
24609
24612
|
content: e.message.content,
|
|
24610
24613
|
role: e.message.role,
|
|
@@ -24619,29 +24622,29 @@ app.mount('#app');
|
|
|
24619
24622
|
"show-typing",
|
|
24620
24623
|
"show-cursor"
|
|
24621
24624
|
]),
|
|
24622
|
-
Z(
|
|
24623
|
-
o.value ? (J(), os(
|
|
24625
|
+
Z(gC, { time: e.time }, null, 8, ["time"]),
|
|
24626
|
+
o.value ? (J(), os(xC, {
|
|
24624
24627
|
key: 3,
|
|
24625
24628
|
messages: G(n).messages,
|
|
24626
24629
|
copied: e.copied,
|
|
24627
24630
|
onCopy: c[1] ||= (e) => t.$emit("copy"),
|
|
24628
24631
|
onRegenerate: c[2] ||= (e) => t.$emit("regenerate")
|
|
24629
24632
|
}, null, 8, ["messages", "copied"])) : Q("", !0)
|
|
24630
|
-
])], 10,
|
|
24633
|
+
])], 10, TC));
|
|
24631
24634
|
}
|
|
24632
|
-
}), [["__scopeId", "data-v-18d4a5dd"]]),
|
|
24635
|
+
}), [["__scopeId", "data-v-18d4a5dd"]]), jC = { class: "chat-body" }, MC = {
|
|
24633
24636
|
key: 0,
|
|
24634
24637
|
class: "empty-state"
|
|
24635
|
-
},
|
|
24638
|
+
}, NC = { class: "empty-icon" }, PC = {
|
|
24636
24639
|
key: 1,
|
|
24637
24640
|
class: "message-row assistant"
|
|
24638
|
-
},
|
|
24641
|
+
}, FC = {
|
|
24639
24642
|
key: 0,
|
|
24640
24643
|
class: "message-avatar"
|
|
24641
|
-
},
|
|
24644
|
+
}, IC = { class: "message-content" }, LC = {
|
|
24642
24645
|
key: 2,
|
|
24643
24646
|
class: "error-bar"
|
|
24644
|
-
},
|
|
24647
|
+
}, RC = { class: "error-text" }, zC = ["title"], BC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24645
24648
|
__name: "MessageList",
|
|
24646
24649
|
props: {
|
|
24647
24650
|
showAvatar: { type: Boolean },
|
|
@@ -24649,9 +24652,9 @@ app.mount('#app');
|
|
|
24649
24652
|
},
|
|
24650
24653
|
setup(e) {
|
|
24651
24654
|
let { chat: t, formatTime: n, copiedMsg: r, copyMessage: i, isPendingAssistant: a, isReasoningExpanded: o, toggleReasoning: s, canUndo: c, undo: l, icons: u, messages: d } = E_(), { state: f, retry: p, regenerate: m } = t, h = Qs(() => f.messages.length > 0), g = Qs(() => f.messages.some((e) => e.role === "user")), _ = Qs(() => f.messages[f.messages.length - 1]?.role === "assistant");
|
|
24652
|
-
return (t, v) => (J(), Y("div",
|
|
24653
|
-
h.value ? Q("", !0) : (J(), Y("div",
|
|
24654
|
-
(J(!0), Y(q, null, ca(G(f).messages, (t, c) => (J(), os(
|
|
24655
|
+
return (t, v) => (J(), Y("div", jC, [
|
|
24656
|
+
h.value ? Q("", !0) : (J(), Y("div", MC, [X("div", NC, [Z(cy, { icon: G(u).empty }, null, 8, ["icon"])]), X("p", null, [Z(uy, { text: G(d).emptyGreeting }, null, 8, ["text"])])])),
|
|
24657
|
+
(J(!0), Y(q, null, ca(G(f).messages, (t, c) => (J(), os(AC, {
|
|
24655
24658
|
key: c,
|
|
24656
24659
|
message: t,
|
|
24657
24660
|
index: c,
|
|
@@ -24681,10 +24684,10 @@ app.mount('#app');
|
|
|
24681
24684
|
"onCopy",
|
|
24682
24685
|
"onRegenerate"
|
|
24683
24686
|
]))), 128)),
|
|
24684
|
-
G(f).loading && !_.value ? (J(), Y("div",
|
|
24687
|
+
G(f).loading && !_.value ? (J(), Y("div", PC, [e.showAvatar ? (J(), Y("div", FC, [Z(wC, {
|
|
24685
24688
|
role: "assistant",
|
|
24686
24689
|
glyph: G(u).assistantAvatar
|
|
24687
|
-
}, null, 8, ["glyph"])])) : Q("", !0), X("div",
|
|
24690
|
+
}, null, 8, ["glyph"])])) : Q("", !0), X("div", IC, [Z(mC, {
|
|
24688
24691
|
content: "",
|
|
24689
24692
|
role: "assistant",
|
|
24690
24693
|
"is-pending-assistant": !0,
|
|
@@ -24692,70 +24695,70 @@ app.mount('#app');
|
|
|
24692
24695
|
"show-cursor": !1,
|
|
24693
24696
|
messages: G(d)
|
|
24694
24697
|
}, null, 8, ["show-typing", "messages"])])])) : Q("", !0),
|
|
24695
|
-
G(f).error ? (J(), Y("div",
|
|
24696
|
-
X("span",
|
|
24698
|
+
G(f).error ? (J(), Y("div", LC, [
|
|
24699
|
+
X("span", RC, U(G(f).error), 1),
|
|
24697
24700
|
g.value ? (J(), Y("button", {
|
|
24698
24701
|
key: 0,
|
|
24699
24702
|
class: "retry-btn",
|
|
24700
24703
|
onClick: v[0] ||= (...e) => G(p) && G(p)(...e)
|
|
24701
|
-
}, [Z(
|
|
24704
|
+
}, [Z(uy, { text: G(d).retry }, null, 8, ["text"])])) : Q("", !0),
|
|
24702
24705
|
G(c) ? (J(), Y("button", {
|
|
24703
24706
|
key: 1,
|
|
24704
24707
|
class: "undo-btn",
|
|
24705
24708
|
title: G(d).undoTitle,
|
|
24706
24709
|
onClick: v[1] ||= (...e) => G(l) && G(l)(...e)
|
|
24707
|
-
}, [Z(
|
|
24710
|
+
}, [Z(uy, { text: G(d).undo }, null, 8, ["text"])], 8, zC)) : Q("", !0)
|
|
24708
24711
|
])) : Q("", !0)
|
|
24709
24712
|
]));
|
|
24710
24713
|
}
|
|
24711
|
-
}), [["__scopeId", "data-v-080b33e4"]]),
|
|
24714
|
+
}), [["__scopeId", "data-v-080b33e4"]]), VC = {
|
|
24712
24715
|
key: 0,
|
|
24713
24716
|
class: "queued-bar"
|
|
24714
|
-
},
|
|
24717
|
+
}, HC = { class: "queued-head" }, UC = { class: "queued-icon" }, WC = { class: "queued-title" }, GC = { class: "queued-count" }, KC = { class: "queued-idx" }, qC = { class: "queued-text" }, JC = ["title", "onClick"], YC = ["title", "onClick"], XC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24715
24718
|
__name: "QueuedBar",
|
|
24716
24719
|
setup(e) {
|
|
24717
24720
|
let { chat: t, editQueued: n, icons: r, messages: i } = E_(), { queuedTasks: a, removeQueuedTask: o } = t;
|
|
24718
|
-
return (e, t) => G(a).length ? (J(), Y("div",
|
|
24719
|
-
X("span",
|
|
24720
|
-
X("span",
|
|
24721
|
-
X("span",
|
|
24721
|
+
return (e, t) => G(a).length ? (J(), Y("div", VC, [X("div", HC, [
|
|
24722
|
+
X("span", UC, [Z(cy, { icon: G(r).queued }, null, 8, ["icon"])]),
|
|
24723
|
+
X("span", WC, U(G(i).queuedTitle), 1),
|
|
24724
|
+
X("span", GC, U(G(a).length), 1)
|
|
24722
24725
|
]), (J(!0), Y(q, null, ca(G(a), (e, t) => (J(), Y("div", {
|
|
24723
24726
|
key: t,
|
|
24724
24727
|
class: "queued-item"
|
|
24725
24728
|
}, [
|
|
24726
|
-
X("span",
|
|
24727
|
-
X("span",
|
|
24729
|
+
X("span", KC, U(t + 1), 1),
|
|
24730
|
+
X("span", qC, U(e), 1),
|
|
24728
24731
|
X("button", {
|
|
24729
24732
|
class: "queued-act",
|
|
24730
24733
|
title: G(i).queuedEditTitle,
|
|
24731
24734
|
onClick: (e) => G(n)(t)
|
|
24732
|
-
}, [Z(
|
|
24735
|
+
}, [Z(cy, { icon: G(r).queuedEdit }, null, 8, ["icon"])], 8, JC),
|
|
24733
24736
|
X("button", {
|
|
24734
24737
|
class: "queued-act queued-del",
|
|
24735
24738
|
title: G(i).removeQueuedTitle,
|
|
24736
24739
|
onClick: (e) => G(o)(t)
|
|
24737
|
-
}, "✕", 8,
|
|
24740
|
+
}, "✕", 8, YC)
|
|
24738
24741
|
]))), 128))])) : Q("", !0);
|
|
24739
24742
|
}
|
|
24740
|
-
}), [["__scopeId", "data-v-7b61eb04"]]),
|
|
24743
|
+
}), [["__scopeId", "data-v-7b61eb04"]]), ZC = {
|
|
24741
24744
|
key: 0,
|
|
24742
24745
|
class: "approval-bar"
|
|
24743
|
-
},
|
|
24746
|
+
}, QC = { class: "approval-head" }, $C = { class: "approval-title" }, ew = {
|
|
24744
24747
|
key: 0,
|
|
24745
24748
|
class: "approval-question"
|
|
24746
|
-
},
|
|
24749
|
+
}, tw = {
|
|
24747
24750
|
key: 1,
|
|
24748
24751
|
class: "approval-context"
|
|
24749
|
-
},
|
|
24752
|
+
}, nw = {
|
|
24750
24753
|
key: 2,
|
|
24751
24754
|
class: "approval-recommend"
|
|
24752
|
-
},
|
|
24755
|
+
}, rw = {
|
|
24753
24756
|
key: 3,
|
|
24754
24757
|
class: "approval-options"
|
|
24755
|
-
},
|
|
24758
|
+
}, iw = ["onClick"], aw = { class: "approval-actions" }, ow = { class: "approval-head" }, sw = { class: "approval-title" }, cw = {
|
|
24756
24759
|
key: 0,
|
|
24757
24760
|
class: "approval-args"
|
|
24758
|
-
},
|
|
24761
|
+
}, lw = { class: "approval-actions" }, uw = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24759
24762
|
__name: "ApprovalBar",
|
|
24760
24763
|
setup(e) {
|
|
24761
24764
|
let t = E_(), { pendingApproval: n, resolveApproval: r } = t.chat, i = t.messages, a = /* @__PURE__ */ wn(!1);
|
|
@@ -24775,51 +24778,51 @@ app.mount('#app');
|
|
|
24775
24778
|
return String(e);
|
|
24776
24779
|
}
|
|
24777
24780
|
});
|
|
24778
|
-
return (e, l) => G(n) ? (J(), Y("div",
|
|
24779
|
-
X("div",
|
|
24780
|
-
G(n).args?.question ? (J(), Y("div",
|
|
24781
|
-
G(n).args?.context ? (J(), Y("div",
|
|
24782
|
-
G(n).args?.recommendation ? (J(), Y("div",
|
|
24783
|
-
s.value.length ? (J(), Y("div",
|
|
24781
|
+
return (e, l) => G(n) ? (J(), Y("div", ZC, [o.value ? (J(), Y(q, { key: 0 }, [
|
|
24782
|
+
X("div", QC, [l[5] ||= X("span", { class: "approval-icon" }, "❓", -1), X("span", $C, U(G(i).humanConfirmTitle), 1)]),
|
|
24783
|
+
G(n).args?.question ? (J(), Y("div", ew, U(G(n).args.question), 1)) : Q("", !0),
|
|
24784
|
+
G(n).args?.context ? (J(), Y("div", tw, U(G(n).args.context), 1)) : Q("", !0),
|
|
24785
|
+
G(n).args?.recommendation ? (J(), Y("div", nw, [Z(cy, { icon: G(t).icons.recommend }, null, 8, ["icon"]), _s(U(G(i).recommendPrefix) + U(G(n).args.recommendation), 1)])) : Q("", !0),
|
|
24786
|
+
s.value.length ? (J(), Y("div", rw, [(J(!0), Y(q, null, ca(s.value, (e) => (J(), Y("button", {
|
|
24784
24787
|
key: e,
|
|
24785
24788
|
class: "approval-opt",
|
|
24786
24789
|
onClick: (t) => G(r)(e)
|
|
24787
|
-
}, U(e), 9,
|
|
24788
|
-
X("div",
|
|
24790
|
+
}, U(e), 9, iw))), 128))])) : Q("", !0),
|
|
24791
|
+
X("div", aw, [X("button", {
|
|
24789
24792
|
class: "approval-deny",
|
|
24790
24793
|
onClick: l[0] ||= (e) => G(r)(!1)
|
|
24791
|
-
}, [Z(
|
|
24794
|
+
}, [Z(uy, { text: G(i).deny }, null, 8, ["text"])]), s.value.length ? Q("", !0) : (J(), Y("button", {
|
|
24792
24795
|
key: 0,
|
|
24793
24796
|
class: "approval-allow",
|
|
24794
24797
|
onClick: l[1] ||= (e) => G(r)(!0)
|
|
24795
|
-
}, [Z(
|
|
24798
|
+
}, [Z(uy, { text: G(i).approve }, null, 8, ["text"])]))])
|
|
24796
24799
|
], 64)) : (J(), Y(q, { key: 1 }, [
|
|
24797
|
-
X("div",
|
|
24800
|
+
X("div", ow, [
|
|
24798
24801
|
l[6] ||= X("span", { class: "approval-icon" }, "✋", -1),
|
|
24799
|
-
X("span",
|
|
24802
|
+
X("span", sw, [_s(U(G(i).toolConfirmPrefix), 1), X("code", null, U(G(n).toolName), 1)]),
|
|
24800
24803
|
c.value ? (J(), Y("button", {
|
|
24801
24804
|
key: 0,
|
|
24802
24805
|
class: "approval-toggle",
|
|
24803
24806
|
onClick: l[2] ||= (e) => a.value = !a.value
|
|
24804
24807
|
}, U(a.value ? G(i).collapseArgs : G(i).viewArgs) + U(a.value ? " ▴" : " ▾"), 1)) : Q("", !0)
|
|
24805
24808
|
]),
|
|
24806
|
-
c.value && a.value ? (J(), Y("pre",
|
|
24807
|
-
X("div",
|
|
24809
|
+
c.value && a.value ? (J(), Y("pre", cw, U(c.value), 1)) : Q("", !0),
|
|
24810
|
+
X("div", lw, [X("button", {
|
|
24808
24811
|
class: "approval-deny",
|
|
24809
24812
|
onClick: l[3] ||= (e) => G(r)(!1)
|
|
24810
|
-
}, [Z(
|
|
24813
|
+
}, [Z(uy, { text: G(i).deny }, null, 8, ["text"])]), X("button", {
|
|
24811
24814
|
class: "approval-allow",
|
|
24812
24815
|
onClick: l[4] ||= (e) => G(r)(!0)
|
|
24813
|
-
}, [Z(
|
|
24816
|
+
}, [Z(uy, { text: G(i).approve }, null, 8, ["text"])])])
|
|
24814
24817
|
], 64))])) : Q("", !0);
|
|
24815
24818
|
}
|
|
24816
|
-
}), [["__scopeId", "data-v-8566d3cd"]]),
|
|
24819
|
+
}), [["__scopeId", "data-v-8566d3cd"]]), dw = {
|
|
24817
24820
|
key: 0,
|
|
24818
24821
|
class: "conflict-bar"
|
|
24819
|
-
},
|
|
24822
|
+
}, fw = { class: "conflict-head" }, pw = { class: "conflict-icon" }, mw = { class: "conflict-title" }, hw = { class: "conflict-detail" }, gw = {
|
|
24820
24823
|
key: 0,
|
|
24821
24824
|
class: "conflict-diff"
|
|
24822
|
-
},
|
|
24825
|
+
}, _w = { class: "conflict-diff-col" }, vw = { class: "conflict-diff-label" }, yw = { class: "conflict-diff-pre" }, bw = { class: "conflict-diff-col" }, xw = { class: "conflict-diff-label" }, Sw = { class: "conflict-diff-pre" }, Cw = { class: "conflict-actions" }, ww = ["title"], Tw = ["title"], Ew = ["title"], Dw = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24823
24826
|
__name: "ConflictBar",
|
|
24824
24827
|
props: {
|
|
24825
24828
|
pendingConflict: {},
|
|
@@ -24851,47 +24854,47 @@ app.mount('#app');
|
|
|
24851
24854
|
return String(e);
|
|
24852
24855
|
}
|
|
24853
24856
|
});
|
|
24854
|
-
return (t, a) => e.pendingConflict ? (J(), Y("div",
|
|
24855
|
-
X("div",
|
|
24857
|
+
return (t, a) => e.pendingConflict ? (J(), Y("div", dw, [
|
|
24858
|
+
X("div", fw, [X("span", pw, [Z(cy, { icon: e.icons.conflict }, null, 8, ["icon"])]), X("span", mw, [
|
|
24856
24859
|
_s(U(e.messages.conflictTitlePrefix), 1),
|
|
24857
24860
|
X("code", null, U(e.pendingConflict.path), 1),
|
|
24858
24861
|
_s(U(e.messages.conflictTitleSuffix), 1)
|
|
24859
24862
|
])]),
|
|
24860
|
-
X("div",
|
|
24863
|
+
X("div", hw, U(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
|
|
24861
24864
|
X("button", {
|
|
24862
24865
|
class: "conflict-toggle",
|
|
24863
24866
|
onClick: a[0] ||= (e) => n.value = !n.value
|
|
24864
24867
|
}, U(n.value ? e.messages.collapseDiff : e.messages.viewDiff) + U(n.value ? " ▴" : " ▾"), 1),
|
|
24865
|
-
n.value ? (J(), Y("div",
|
|
24866
|
-
X("div",
|
|
24868
|
+
n.value ? (J(), Y("div", gw, [X("div", _w, [X("div", vw, U(e.messages.agentValueLabel), 1), X("pre", yw, U(r.value || e.messages.deleteNoValue), 1)]), X("div", bw, [X("div", xw, U(e.messages.currentValueLabel), 1), X("pre", Sw, U(i.value), 1)])])) : Q("", !0),
|
|
24869
|
+
X("div", Cw, [
|
|
24867
24870
|
X("button", {
|
|
24868
24871
|
class: "conflict-keep",
|
|
24869
24872
|
onClick: a[1] ||= (t) => e.onResolve?.("keep_external"),
|
|
24870
24873
|
title: e.messages.keepExternalTitle
|
|
24871
|
-
}, [Z(
|
|
24874
|
+
}, [Z(uy, { text: e.messages.keepExternal }, null, 8, ["text"])], 8, ww),
|
|
24872
24875
|
X("button", {
|
|
24873
24876
|
class: "conflict-overwrite",
|
|
24874
24877
|
onClick: a[2] ||= (t) => e.onResolve?.("overwrite"),
|
|
24875
24878
|
title: e.messages.overwriteTitle
|
|
24876
|
-
}, [Z(
|
|
24879
|
+
}, [Z(uy, { text: e.messages.overwrite }, null, 8, ["text"])], 8, Tw),
|
|
24877
24880
|
X("button", {
|
|
24878
24881
|
class: "conflict-restore",
|
|
24879
24882
|
onClick: a[3] ||= (t) => e.onResolve?.("restore"),
|
|
24880
24883
|
title: e.messages.restoreTitle
|
|
24881
|
-
}, [Z(
|
|
24884
|
+
}, [Z(uy, { text: e.messages.restore }, null, 8, ["text"])], 8, Ew)
|
|
24882
24885
|
])
|
|
24883
24886
|
])) : Q("", !0);
|
|
24884
24887
|
}
|
|
24885
|
-
}), [["__scopeId", "data-v-8263b7d4"]]),
|
|
24888
|
+
}), [["__scopeId", "data-v-8263b7d4"]]), Ow = { class: "chat-footer" }, kw = ["title"], Aw = { class: "chat-input-wrap" }, jw = {
|
|
24886
24889
|
key: 0,
|
|
24887
24890
|
class: "focus-chips"
|
|
24888
|
-
},
|
|
24891
|
+
}, Mw = ["title", "onClick"], Nw = { class: "focus-chip-icon" }, Pw = { class: "focus-chip-path" }, Fw = ["title", "onClick"], Iw = ["placeholder", "rows"], Lw = { class: "input-actions" }, Rw = { class: "send-hint" }, zw = ["disabled", "title"], Bw = {
|
|
24889
24892
|
key: 0,
|
|
24890
24893
|
width: "16",
|
|
24891
24894
|
height: "16",
|
|
24892
24895
|
viewBox: "0 0 24 24",
|
|
24893
24896
|
fill: "currentColor"
|
|
24894
|
-
},
|
|
24897
|
+
}, Vw = {
|
|
24895
24898
|
key: 2,
|
|
24896
24899
|
width: "18",
|
|
24897
24900
|
height: "18",
|
|
@@ -24899,7 +24902,7 @@ app.mount('#app');
|
|
|
24899
24902
|
fill: "none",
|
|
24900
24903
|
stroke: "currentColor",
|
|
24901
24904
|
"stroke-width": "2"
|
|
24902
|
-
},
|
|
24905
|
+
}, Hw = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24903
24906
|
__name: "ChatInput",
|
|
24904
24907
|
props: {
|
|
24905
24908
|
placeholder: {},
|
|
@@ -24907,241 +24910,241 @@ app.mount('#app');
|
|
|
24907
24910
|
},
|
|
24908
24911
|
setup(e) {
|
|
24909
24912
|
let t = E_(), { inputText: n, send: r, keydown: i, canUndo: a, undo: o, focuses: s, removeFocus: c, focusChipClick: l, icons: u, messages: d } = t, { state: f, stop: p } = t.chat;
|
|
24910
|
-
return (t, m) => (J(), Y("div",
|
|
24913
|
+
return (t, m) => (J(), Y("div", Ow, [G(a) ? (J(), Y("button", {
|
|
24911
24914
|
key: 0,
|
|
24912
24915
|
class: "undo-foot-btn",
|
|
24913
24916
|
title: G(d).undoTitle,
|
|
24914
24917
|
onClick: m[0] ||= (...e) => G(o) && G(o)(...e)
|
|
24915
|
-
}, U(G(d).undo), 9,
|
|
24916
|
-
G(s).length ? (J(), Y("div",
|
|
24918
|
+
}, U(G(d).undo), 9, kw)) : Q("", !0), X("div", Aw, [
|
|
24919
|
+
G(s).length ? (J(), Y("div", jw, [(J(!0), Y(q, null, ca(G(s), (e) => (J(), Y("span", {
|
|
24917
24920
|
key: e.path,
|
|
24918
24921
|
class: "focus-chip",
|
|
24919
24922
|
title: G(d).focusChipTitlePrefix + e.path + G(d).focusChipTitleHint,
|
|
24920
24923
|
onClick: (t) => G(l)(e)
|
|
24921
24924
|
}, [
|
|
24922
|
-
X("span",
|
|
24923
|
-
X("code",
|
|
24925
|
+
X("span", Nw, [Z(cy, { icon: G(u).focus }, null, 8, ["icon"])]),
|
|
24926
|
+
X("code", Pw, U(e.path), 1),
|
|
24924
24927
|
X("button", {
|
|
24925
24928
|
type: "button",
|
|
24926
24929
|
class: "focus-chip-x",
|
|
24927
24930
|
"data-test": "focus-clear",
|
|
24928
24931
|
title: G(d).removeFocus,
|
|
24929
24932
|
onClick: yl((t) => G(c)(e.path), ["stop"])
|
|
24930
|
-
}, "✕", 8,
|
|
24931
|
-
], 8,
|
|
24933
|
+
}, "✕", 8, Fw)
|
|
24934
|
+
], 8, Mw))), 128))])) : Q("", !0),
|
|
24932
24935
|
Zr(X("textarea", {
|
|
24933
24936
|
"onUpdate:modelValue": m[1] ||= (e) => /* @__PURE__ */ Cn(n) ? n.value = e : null,
|
|
24934
24937
|
class: H(["chat-input", { "has-focus-chip": G(s).length > 0 }]),
|
|
24935
24938
|
placeholder: e.placeholder,
|
|
24936
24939
|
rows: e.inputRows,
|
|
24937
24940
|
onKeydown: m[2] ||= (...e) => G(i) && G(i)(...e)
|
|
24938
|
-
}, null, 42,
|
|
24939
|
-
X("div",
|
|
24941
|
+
}, null, 42, Iw), [[gl, G(n)]]),
|
|
24942
|
+
X("div", Lw, [X("span", Rw, U(G(d).sendHint), 1), X("button", {
|
|
24940
24943
|
class: H(["send-btn", { "stop-btn": G(f).loading }]),
|
|
24941
24944
|
disabled: !G(f).loading && !G(n).trim(),
|
|
24942
24945
|
title: G(f).loading ? G(d).stopTitle : G(d).sendTitle,
|
|
24943
24946
|
onClick: m[3] ||= (e) => G(f).loading ? G(p)() : G(r)()
|
|
24944
|
-
}, [G(f).loading ? (J(), Y("svg",
|
|
24947
|
+
}, [G(f).loading ? (J(), Y("svg", Bw, [...m[4] ||= [X("rect", {
|
|
24945
24948
|
x: "6",
|
|
24946
24949
|
y: "6",
|
|
24947
24950
|
width: "12",
|
|
24948
24951
|
height: "12",
|
|
24949
24952
|
rx: "2"
|
|
24950
|
-
}, null, -1)]])) : G(u).send ? (J(), os(
|
|
24953
|
+
}, null, -1)]])) : G(u).send ? (J(), os(cy, {
|
|
24951
24954
|
key: 1,
|
|
24952
24955
|
icon: G(u).send
|
|
24953
|
-
}, null, 8, ["icon"])) : (J(), Y("svg",
|
|
24956
|
+
}, null, 8, ["icon"])) : (J(), Y("svg", Vw, [...m[5] ||= [X("line", {
|
|
24954
24957
|
x1: "22",
|
|
24955
24958
|
y1: "2",
|
|
24956
24959
|
x2: "11",
|
|
24957
24960
|
y2: "13"
|
|
24958
|
-
}, null, -1), X("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)]]))], 10,
|
|
24961
|
+
}, null, -1), X("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)]]))], 10, zw)])
|
|
24959
24962
|
])]));
|
|
24960
24963
|
}
|
|
24961
|
-
}), [["__scopeId", "data-v-9114bce6"]]),
|
|
24964
|
+
}), [["__scopeId", "data-v-9114bce6"]]), Uw = {
|
|
24962
24965
|
key: 0,
|
|
24963
24966
|
class: "debug-drawer"
|
|
24964
|
-
},
|
|
24967
|
+
}, Ww = { class: "drawer-header" }, Gw = { class: "tab-group" }, Kw = { class: "header-actions" }, qw = ["title"], Jw = ["title"], Yw = {
|
|
24965
24968
|
key: 0,
|
|
24966
24969
|
class: "drawer-filters"
|
|
24967
|
-
},
|
|
24970
|
+
}, Xw = ["onClick"], Zw = { class: "chip-count" }, Qw = { class: "chip-count" }, $w = { class: "drawer-body" }, eT = {
|
|
24968
24971
|
key: 0,
|
|
24969
24972
|
class: "trace-panel"
|
|
24970
|
-
},
|
|
24973
|
+
}, tT = {
|
|
24971
24974
|
key: 0,
|
|
24972
24975
|
class: "trace-empty"
|
|
24973
|
-
},
|
|
24976
|
+
}, nT = { class: "trace-metrics" }, rT = { class: "metric-card" }, iT = { class: "metric-card" }, aT = { class: "metric-card" }, oT = { class: "metric-card" }, sT = {
|
|
24974
24977
|
key: 0,
|
|
24975
24978
|
class: "metric-card"
|
|
24976
|
-
},
|
|
24979
|
+
}, cT = {
|
|
24977
24980
|
key: 1,
|
|
24978
24981
|
class: "metric-card"
|
|
24979
|
-
},
|
|
24982
|
+
}, lT = { class: "trace-spans" }, uT = { class: "span-ico" }, dT = { class: "span-name" }, fT = {
|
|
24980
24983
|
key: 0,
|
|
24981
24984
|
class: "span-dur"
|
|
24982
|
-
},
|
|
24985
|
+
}, pT = {
|
|
24983
24986
|
key: 1,
|
|
24984
24987
|
class: "span-status"
|
|
24985
|
-
},
|
|
24988
|
+
}, mT = {
|
|
24986
24989
|
key: 1,
|
|
24987
24990
|
class: "context-panel"
|
|
24988
|
-
},
|
|
24991
|
+
}, hT = {
|
|
24989
24992
|
key: 0,
|
|
24990
24993
|
class: "trace-empty"
|
|
24991
|
-
},
|
|
24994
|
+
}, gT = { class: "ctx-overview" }, _T = { class: "ctx-occupancy" }, vT = ["title"], yT = ["title"], bT = { class: "ctx-pct" }, xT = { class: "ctx-kv-row" }, ST = { class: "ctx-kv" }, CT = {
|
|
24992
24995
|
key: 0,
|
|
24993
24996
|
class: "ctx-kv"
|
|
24994
|
-
},
|
|
24997
|
+
}, wT = {
|
|
24995
24998
|
key: 1,
|
|
24996
24999
|
class: "ctx-kv"
|
|
24997
|
-
},
|
|
25000
|
+
}, TT = { class: "ctx-section-title" }, ET = ["title"], DT = { class: "ctx-cat-bar" }, OT = { class: "ctx-cat-tokens" }, kT = {
|
|
24998
25001
|
key: 0,
|
|
24999
25002
|
class: "ctx-compression"
|
|
25000
|
-
},
|
|
25003
|
+
}, AT = { class: "ctx-section-title" }, jT = { class: "ctx-kv-row" }, MT = { class: "ctx-kv" }, NT = { class: "ctx-kv" }, PT = { class: "ctx-kv" }, FT = {
|
|
25001
25004
|
key: 0,
|
|
25002
25005
|
class: "ctx-kv"
|
|
25003
|
-
},
|
|
25006
|
+
}, IT = {
|
|
25004
25007
|
key: 2,
|
|
25005
25008
|
class: "subagent-panel"
|
|
25006
|
-
},
|
|
25009
|
+
}, LT = {
|
|
25007
25010
|
key: 0,
|
|
25008
25011
|
class: "sub-section"
|
|
25009
|
-
},
|
|
25012
|
+
}, RT = { class: "sub-section-title" }, zT = {
|
|
25010
25013
|
key: 1,
|
|
25011
25014
|
class: "trace-empty"
|
|
25012
|
-
},
|
|
25015
|
+
}, BT = {
|
|
25013
25016
|
key: 0,
|
|
25014
25017
|
class: "sub-section"
|
|
25015
|
-
},
|
|
25018
|
+
}, VT = { class: "sub-section-title" }, HT = { class: "sub-head" }, UT = { class: "sub-label" }, WT = { class: "sub-steps-badge" }, GT = { class: "sub-task" }, KT = {
|
|
25016
25019
|
key: 1,
|
|
25017
25020
|
class: "sub-section"
|
|
25018
|
-
},
|
|
25021
|
+
}, qT = { class: "sub-section-title" }, JT = { class: "sub-head" }, YT = { class: "sub-label" }, XT = {
|
|
25019
25022
|
key: 0,
|
|
25020
25023
|
class: "sub-dur"
|
|
25021
|
-
},
|
|
25024
|
+
}, ZT = ["onClick"], QT = { class: "sub-task" }, $T = {
|
|
25022
25025
|
key: 0,
|
|
25023
25026
|
class: "sub-result"
|
|
25024
|
-
},
|
|
25027
|
+
}, eE = {
|
|
25025
25028
|
key: 1,
|
|
25026
25029
|
class: "sub-steps-list"
|
|
25027
|
-
},
|
|
25030
|
+
}, tE = { class: "sub-step-kind" }, nE = { class: "sub-step-name" }, rE = { class: "sub-step-ts" }, iE = {
|
|
25028
25031
|
key: 0,
|
|
25029
25032
|
class: "empty"
|
|
25030
|
-
},
|
|
25033
|
+
}, aE = { class: "log-head" }, oE = {
|
|
25031
25034
|
key: 0,
|
|
25032
25035
|
class: "log-source"
|
|
25033
|
-
},
|
|
25036
|
+
}, sE = { class: "log-time" }, cE = { class: "log-body" }, lE = { class: "kv-grid" }, uE = { class: "kv" }, dE = { class: "k" }, fE = { class: "v" }, pE = { class: "kv" }, mE = { class: "k" }, hE = { class: "v" }, gE = { class: "kv" }, _E = { class: "v" }, vE = { class: "kv" }, yE = { class: "k" }, bE = { class: "v" }, xE = { class: "section-label" }, SE = { class: "chip-row" }, CE = { class: "section-label" }, wE = { class: "msg-list" }, TE = { class: "msg-text" }, EE = { class: "badge-row" }, DE = { class: "badge" }, OE = {
|
|
25034
25037
|
key: 0,
|
|
25035
25038
|
class: "badge muted"
|
|
25036
|
-
},
|
|
25039
|
+
}, kE = { class: "badge muted" }, AE = {
|
|
25037
25040
|
key: 1,
|
|
25038
25041
|
class: "badge muted"
|
|
25039
|
-
},
|
|
25042
|
+
}, jE = ["onClick"], ME = {
|
|
25040
25043
|
key: 0,
|
|
25041
25044
|
class: "msg-list"
|
|
25042
|
-
},
|
|
25045
|
+
}, NE = { class: "msg-detail" }, PE = {
|
|
25043
25046
|
key: 0,
|
|
25044
25047
|
class: "msg-text"
|
|
25045
|
-
},
|
|
25048
|
+
}, FE = { class: "tc-inline-name" }, IE = { class: "tc-inline-args" }, LE = {
|
|
25046
25049
|
key: 1,
|
|
25047
25050
|
class: "tc-id"
|
|
25048
|
-
},
|
|
25051
|
+
}, RE = {
|
|
25049
25052
|
key: 1,
|
|
25050
25053
|
class: "log-raw"
|
|
25051
|
-
},
|
|
25054
|
+
}, zE = { class: "badge-row" }, BE = { class: "badge" }, VE = {
|
|
25052
25055
|
key: 0,
|
|
25053
25056
|
class: "badge warn"
|
|
25054
|
-
},
|
|
25057
|
+
}, HE = {
|
|
25055
25058
|
key: 0,
|
|
25056
25059
|
class: "resp-content"
|
|
25057
|
-
},
|
|
25060
|
+
}, UE = {
|
|
25058
25061
|
key: 1,
|
|
25059
25062
|
class: "tc-list"
|
|
25060
|
-
},
|
|
25063
|
+
}, WE = { class: "tc-name" }, GE = { class: "tc-args" }, KE = {
|
|
25061
25064
|
key: 2,
|
|
25062
25065
|
class: "usage-row"
|
|
25063
|
-
},
|
|
25066
|
+
}, qE = { class: "usage" }, JE = { class: "usage" }, YE = { class: "usage" }, XE = {
|
|
25064
25067
|
key: 3,
|
|
25065
25068
|
class: "tc-card inline"
|
|
25066
|
-
},
|
|
25069
|
+
}, ZE = { class: "tc-name" }, QE = { class: "tc-args" }, $E = {
|
|
25067
25070
|
key: 4,
|
|
25068
25071
|
class: "tc-card inline"
|
|
25069
|
-
},
|
|
25072
|
+
}, eD = { class: "tc-name" }, tD = { class: "tc-args" }, nD = {
|
|
25070
25073
|
key: 5,
|
|
25071
25074
|
class: "err-box"
|
|
25072
|
-
},
|
|
25075
|
+
}, rD = { class: "log-footer" }, iD = ["onClick"], aD = ["onClick"], oD = {
|
|
25073
25076
|
key: 0,
|
|
25074
25077
|
class: "log-raw"
|
|
25075
|
-
},
|
|
25078
|
+
}, sD = {
|
|
25076
25079
|
key: 0,
|
|
25077
25080
|
class: "empty"
|
|
25078
|
-
},
|
|
25081
|
+
}, cD = {
|
|
25079
25082
|
key: 1,
|
|
25080
25083
|
class: "flow-section"
|
|
25081
|
-
},
|
|
25084
|
+
}, lD = { class: "flow-section-title" }, uD = { class: "flow-ico" }, dD = { class: "flow-label" }, fD = { class: "flow-detail" }, pD = { class: "flow-time" }, mD = { class: "flow-round-head" }, hD = { class: "flow-round-body" }, gD = { class: "flow-ico" }, _D = { class: "flow-label" }, vD = { class: "flow-detail" }, yD = { class: "flow-time" }, bD = {
|
|
25082
25085
|
key: 5,
|
|
25083
25086
|
class: "info-body"
|
|
25084
|
-
},
|
|
25087
|
+
}, xD = {
|
|
25085
25088
|
key: 0,
|
|
25086
25089
|
class: "empty"
|
|
25087
|
-
},
|
|
25090
|
+
}, SD = { class: "info-section" }, CD = { class: "info-title" }, wD = { class: "kv-grid" }, TD = { class: "kv" }, ED = { class: "v" }, DD = { class: "kv" }, OD = { class: "k" }, kD = { class: "v" }, AD = { class: "kv" }, jD = { class: "k" }, MD = { class: "v" }, ND = { class: "kv" }, PD = { class: "k" }, FD = { class: "v" }, ID = {
|
|
25088
25091
|
class: "kv",
|
|
25089
25092
|
style: { "margin-top": "6px" }
|
|
25090
|
-
},
|
|
25093
|
+
}, LD = { class: "k" }, RD = {
|
|
25091
25094
|
class: "v",
|
|
25092
25095
|
style: { "font-size": "11px" }
|
|
25093
|
-
},
|
|
25096
|
+
}, zD = { class: "info-section" }, BD = { class: "info-title" }, VD = { class: "info-name" }, HD = { class: "info-desc" }, UD = {
|
|
25094
25097
|
key: 0,
|
|
25095
25098
|
class: "info-section"
|
|
25096
|
-
},
|
|
25099
|
+
}, WD = { class: "info-title" }, GD = { class: "info-hint" }, KD = ["onClick"], qD = { class: "info-desc" }, JD = {
|
|
25097
25100
|
key: 0,
|
|
25098
25101
|
class: "skill-content"
|
|
25099
|
-
},
|
|
25102
|
+
}, YD = {
|
|
25100
25103
|
key: 0,
|
|
25101
25104
|
class: "skill-loading"
|
|
25102
|
-
},
|
|
25105
|
+
}, XD = {
|
|
25103
25106
|
key: 1,
|
|
25104
25107
|
class: "skill-error"
|
|
25105
|
-
},
|
|
25108
|
+
}, ZD = {
|
|
25106
25109
|
key: 2,
|
|
25107
25110
|
class: "skill-pre"
|
|
25108
|
-
},
|
|
25111
|
+
}, QD = {
|
|
25109
25112
|
key: 1,
|
|
25110
25113
|
class: "info-section"
|
|
25111
|
-
},
|
|
25114
|
+
}, $D = { class: "info-title" }, eO = { class: "info-item" }, tO = { class: "info-name" }, nO = { class: "info-desc" }, rO = { class: "info-section" }, iO = { class: "info-title" }, aO = { class: "kv-grid" }, oO = { class: "kv" }, sO = { class: "k" }, cO = { class: "v" }, lO = { class: "kv" }, uO = { class: "k" }, dO = { class: "v" }, fO = { class: "kv" }, pO = { class: "k" }, mO = { class: "v" }, hO = { class: "kv" }, gO = { class: "k" }, _O = {
|
|
25112
25115
|
class: "v",
|
|
25113
25116
|
style: { "font-size": "11px" }
|
|
25114
|
-
},
|
|
25117
|
+
}, vO = {
|
|
25115
25118
|
key: 2,
|
|
25116
25119
|
class: "info-section"
|
|
25117
|
-
},
|
|
25120
|
+
}, yO = { class: "info-title" }, bO = { class: "info-name" }, xO = { class: "src-tag mcp" }, SO = { class: "info-desc" }, CO = {
|
|
25118
25121
|
key: 3,
|
|
25119
25122
|
class: "info-section"
|
|
25120
|
-
},
|
|
25123
|
+
}, wO = { class: "info-title" }, TO = { class: "kv-grid" }, EO = { class: "kv" }, DO = { class: "k" }, OO = { class: "v" }, kO = { class: "kv" }, AO = { class: "k" }, jO = { class: "v" }, MO = { class: "kv" }, NO = { class: "k" }, PO = { class: "v" }, FO = {
|
|
25121
25124
|
key: 0,
|
|
25122
25125
|
class: "kv"
|
|
25123
|
-
},
|
|
25126
|
+
}, IO = { class: "k" }, LO = {
|
|
25124
25127
|
class: "v",
|
|
25125
25128
|
style: { "font-size": "11px" }
|
|
25126
|
-
},
|
|
25129
|
+
}, RO = {
|
|
25127
25130
|
key: 4,
|
|
25128
25131
|
class: "info-section"
|
|
25129
|
-
},
|
|
25132
|
+
}, zO = { class: "info-title" }, BO = {
|
|
25130
25133
|
key: 5,
|
|
25131
25134
|
class: "info-section"
|
|
25132
|
-
},
|
|
25135
|
+
}, VO = { class: "info-title" }, HO = { class: "info-pre" }, UO = {
|
|
25133
25136
|
key: 6,
|
|
25134
25137
|
class: "info-section"
|
|
25135
|
-
},
|
|
25138
|
+
}, WO = { class: "info-title" }, GO = { class: "info-kv" }, KO = { class: "kv" }, qO = { class: "k" }, JO = { class: "v" }, YO = { class: "kv" }, XO = { class: "k" }, ZO = { class: "v" }, QO = { class: "kv" }, $O = { class: "k" }, ek = { class: "v" }, tk = { class: "kv" }, nk = { class: "k" }, rk = { class: "v" }, ik = { class: "kv" }, ak = { class: "k" }, ok = {
|
|
25136
25139
|
class: "v",
|
|
25137
25140
|
style: { "font-size": "11px" }
|
|
25138
|
-
},
|
|
25141
|
+
}, sk = {
|
|
25139
25142
|
key: 0,
|
|
25140
25143
|
class: "kv"
|
|
25141
|
-
},
|
|
25144
|
+
}, ck = { class: "k" }, lk = {
|
|
25142
25145
|
class: "v",
|
|
25143
25146
|
style: { "font-size": "11px" }
|
|
25144
|
-
},
|
|
25147
|
+
}, uk = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
25145
25148
|
__name: "DebugDrawer",
|
|
25146
25149
|
props: {
|
|
25147
25150
|
logs: { default: () => [] },
|
|
@@ -25395,8 +25398,8 @@ app.mount('#app');
|
|
|
25395
25398
|
}
|
|
25396
25399
|
}
|
|
25397
25400
|
return (t, n) => (J(), os(vi, { to: "body" }, [Z(gc, { name: "drawer" }, {
|
|
25398
|
-
default: Yr(() => [e.visible ? (J(), Y("div",
|
|
25399
|
-
X("div",
|
|
25401
|
+
default: Yr(() => [e.visible ? (J(), Y("div", Uw, [X("div", { class: H(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
|
|
25402
|
+
X("div", Ww, [X("div", Gw, [
|
|
25400
25403
|
X("button", {
|
|
25401
25404
|
class: H(["tab-btn", { active: b.value === "logs" }]),
|
|
25402
25405
|
onClick: n[0] ||= (e) => T("logs")
|
|
@@ -25425,44 +25428,44 @@ app.mount('#app');
|
|
|
25425
25428
|
class: H(["tab-btn", { active: b.value === "info" }]),
|
|
25426
25429
|
onClick: n[5] ||= (e) => T("info")
|
|
25427
25430
|
}, "🧬 " + U(s.value.debugTabInfo), 3)) : Q("", !0)
|
|
25428
|
-
]), X("div",
|
|
25431
|
+
]), X("div", Kw, [b.value === "logs" ? (J(), Y("button", {
|
|
25429
25432
|
key: 0,
|
|
25430
25433
|
class: "hd-btn",
|
|
25431
25434
|
title: s.value.debugClearLogs,
|
|
25432
25435
|
onClick: y
|
|
25433
|
-
}, "🗑️", 8,
|
|
25436
|
+
}, "🗑️", 8, qw)) : Q("", !0), X("button", {
|
|
25434
25437
|
class: "hd-btn",
|
|
25435
25438
|
title: s.value.close,
|
|
25436
25439
|
onClick: v
|
|
25437
|
-
}, "✕", 8,
|
|
25438
|
-
b.value === "logs" ? (J(), Y("div",
|
|
25440
|
+
}, "✕", 8, Jw)])]),
|
|
25441
|
+
b.value === "logs" ? (J(), Y("div", Yw, [(J(!0), Y(q, null, ca(c.value, (e, t) => (J(), Y("button", {
|
|
25439
25442
|
key: t,
|
|
25440
25443
|
class: H(["filter-chip", { active: i.value === t }]),
|
|
25441
25444
|
style: Oe({ "--chip-color": e.color }),
|
|
25442
25445
|
onClick: (e) => i.value = t
|
|
25443
|
-
}, [_s(U(e.icon) + " " + U(e.label) + " ", 1), X("span",
|
|
25446
|
+
}, [_s(U(e.icon) + " " + U(e.label) + " ", 1), X("span", Zw, U(d.value[t] || 0), 1)], 14, Xw))), 128)), X("button", {
|
|
25444
25447
|
class: H(["filter-chip all", { active: i.value === "all" }]),
|
|
25445
25448
|
onClick: n[6] ||= (e) => i.value = "all"
|
|
25446
|
-
}, [_s(U(s.value.debugFilterAll) + " ", 1), X("span",
|
|
25447
|
-
X("div",
|
|
25448
|
-
b.value === "trace" ? (J(), Y("div",
|
|
25449
|
-
X("div",
|
|
25450
|
-
X("div",
|
|
25451
|
-
X("div",
|
|
25452
|
-
X("div",
|
|
25453
|
-
M.value.compressions ? (J(), Y("div",
|
|
25454
|
-
M.value.totalTokens ? (J(), Y("div",
|
|
25455
|
-
]), X("div",
|
|
25449
|
+
}, [_s(U(s.value.debugFilterAll) + " ", 1), X("span", Qw, U(d.value.all || 0), 1)], 2)])) : Q("", !0),
|
|
25450
|
+
X("div", $w, [
|
|
25451
|
+
b.value === "trace" ? (J(), Y("div", eT, [M.value ? (J(), Y(q, { key: 1 }, [X("div", nT, [
|
|
25452
|
+
X("div", rT, [X("span", null, U(s.value.debugMetricRounds), 1), X("b", null, U(M.value.rounds), 1)]),
|
|
25453
|
+
X("div", iT, [X("span", null, U(s.value.debugMetricTotal), 1), X("b", null, U(M.value.totalDurationMs) + "ms", 1)]),
|
|
25454
|
+
X("div", aT, [X("span", null, U(s.value.debugMetricAvg), 1), X("b", null, U(M.value.avgRoundMs) + "ms", 1)]),
|
|
25455
|
+
X("div", oT, [X("span", null, U(s.value.debugMetricTools), 1), X("b", null, U(M.value.toolCalls) + "(✅" + U(Math.round(M.value.toolSuccessRate * 100)) + "%)", 1)]),
|
|
25456
|
+
M.value.compressions ? (J(), Y("div", sT, [X("span", null, U(s.value.debugMetricCompressions), 1), X("b", null, U(M.value.compressions), 1)])) : Q("", !0),
|
|
25457
|
+
M.value.totalTokens ? (J(), Y("div", cT, [n[7] ||= X("span", null, "Token", -1), X("b", null, U(M.value.totalTokens.total), 1)])) : Q("", !0)
|
|
25458
|
+
]), X("div", lT, [(J(!0), Y(q, null, ca(j.value, (e) => (J(), Y("div", {
|
|
25456
25459
|
key: e.id,
|
|
25457
25460
|
class: H(["trace-span", [e.type, e.status]])
|
|
25458
25461
|
}, [
|
|
25459
|
-
X("span",
|
|
25460
|
-
X("span",
|
|
25461
|
-
e.durationMs ? (J(), Y("span",
|
|
25462
|
-
e.status === "error" ? (J(), Y("span",
|
|
25463
|
-
], 2))), 128))])], 64)) : (J(), Y("div",
|
|
25464
|
-
b.value === "context" ? (J(), Y("div",
|
|
25465
|
-
X("div",
|
|
25462
|
+
X("span", uT, U(R(e.type)), 1),
|
|
25463
|
+
X("span", dT, U(e.name), 1),
|
|
25464
|
+
e.durationMs ? (J(), Y("span", fT, U(ee(e.durationMs)), 1)) : Q("", !0),
|
|
25465
|
+
e.status === "error" ? (J(), Y("span", pT, "❌")) : Q("", !0)
|
|
25466
|
+
], 2))), 128))])], 64)) : (J(), Y("div", tT, U(s.value.debugTraceEmpty), 1))])) : Q("", !0),
|
|
25467
|
+
b.value === "context" ? (J(), Y("div", mT, [N.value ? (J(), Y(q, { key: 1 }, [
|
|
25468
|
+
X("div", gT, [X("div", _T, [X("div", {
|
|
25466
25469
|
class: "ctx-bar-track",
|
|
25467
25470
|
title: `${s.value.debugCtxOccupancy} ${Math.round(N.value.occupancy * 100)}%`
|
|
25468
25471
|
}, [X("div", {
|
|
@@ -25473,12 +25476,12 @@ app.mount('#app');
|
|
|
25473
25476
|
class: "ctx-threshold-mark",
|
|
25474
25477
|
style: Oe({ left: Math.min(N.value.thresholdRatio * 100, 100) + "%" }),
|
|
25475
25478
|
title: s.value.debugCtxThreshold
|
|
25476
|
-
}, null, 12,
|
|
25477
|
-
X("span",
|
|
25478
|
-
N.value.contextWindow ? (J(), Y("span",
|
|
25479
|
-
N.value.thresholdRatio > 0 ? (J(), Y("span",
|
|
25479
|
+
}, null, 12, yT)) : Q("", !0)], 8, vT), X("span", bT, U(Math.round(N.value.occupancy * 100)) + "%", 1)]), X("div", xT, [
|
|
25480
|
+
X("span", ST, U(s.value.debugCtxTokens) + " " + U(N.value.totalTokens) + " token", 1),
|
|
25481
|
+
N.value.contextWindow ? (J(), Y("span", CT, U(s.value.debugCtxWindow) + " " + U(N.value.contextWindow), 1)) : Q("", !0),
|
|
25482
|
+
N.value.thresholdRatio > 0 ? (J(), Y("span", wT, U(s.value.debugCtxThresholdPct) + " " + U(Math.round(N.value.thresholdRatio * 100)) + "%", 1)) : Q("", !0)
|
|
25480
25483
|
])]),
|
|
25481
|
-
X("div",
|
|
25484
|
+
X("div", TT, U(s.value.debugCtxCategories), 1),
|
|
25482
25485
|
(J(!0), Y(q, null, ca(N.value.categories, (e) => (J(), Y("div", {
|
|
25483
25486
|
key: e.key,
|
|
25484
25487
|
class: "ctx-cat"
|
|
@@ -25486,222 +25489,222 @@ app.mount('#app');
|
|
|
25486
25489
|
X("span", {
|
|
25487
25490
|
class: "ctx-cat-label",
|
|
25488
25491
|
title: e.label
|
|
25489
|
-
}, U(e.label), 9,
|
|
25490
|
-
X("div",
|
|
25492
|
+
}, U(e.label), 9, ET),
|
|
25493
|
+
X("div", DT, [X("div", {
|
|
25491
25494
|
class: "ctx-cat-fill",
|
|
25492
25495
|
style: Oe({ width: Math.max(Math.round(e.pct * 100), 2) + "%" })
|
|
25493
25496
|
}, null, 4)]),
|
|
25494
|
-
X("span",
|
|
25497
|
+
X("span", OT, [_s(U(e.tokens) + " ", 1), X("i", null, "(" + U(Math.round(e.pct * 100)) + "%)", 1)])
|
|
25495
25498
|
]))), 128)),
|
|
25496
|
-
N.value.compression ? (J(), Y("div",
|
|
25497
|
-
X("span",
|
|
25498
|
-
X("span",
|
|
25499
|
-
X("span",
|
|
25500
|
-
N.value.compression.decision ? (J(), Y("span",
|
|
25499
|
+
N.value.compression ? (J(), Y("div", kT, [X("div", AT, U(s.value.debugCtxLastCompression), 1), X("div", jT, [
|
|
25500
|
+
X("span", MT, U(s.value.debugCtxSummarized) + " " + U(N.value.compression.roundsSummarized) + "/" + U(N.value.compression.roundsTotal) + U(s.value.debugCtxRoundsSuffix), 1),
|
|
25501
|
+
X("span", NT, U(s.value.debugCtxRecalled) + " " + U(N.value.compression.roundsRecalled), 1),
|
|
25502
|
+
X("span", PT, U(N.value.compression.strategy), 1),
|
|
25503
|
+
N.value.compression.decision ? (J(), Y("span", FT, "🤖 " + U(s.value.debugCtxAgentDecision) + U(ie(N.value.compression.decision)), 1)) : Q("", !0)
|
|
25501
25504
|
])])) : Q("", !0)
|
|
25502
|
-
], 64)) : (J(), Y("div",
|
|
25503
|
-
b.value === "subagent" ? (J(), Y("div",
|
|
25505
|
+
], 64)) : (J(), Y("div", hT, U(s.value.debugCtxEmpty), 1))])) : Q("", !0),
|
|
25506
|
+
b.value === "subagent" ? (J(), Y("div", IT, [ne.value.length ? (J(), Y("div", LT, [X("div", RT, "🔒 " + U(s.value.debugLocksTitle) + " (" + U(ne.value.length) + ")", 1), (J(!0), Y(q, null, ca(ne.value, ([e, t]) => (J(), Y("div", {
|
|
25504
25507
|
key: "lock-" + e,
|
|
25505
25508
|
class: "sub-task"
|
|
25506
|
-
}, "🔒 " + U(e) + " ← " + U(t), 1))), 128))])) : Q("", !0), !P.value.length && !F.value.length ? (J(), Y("div",
|
|
25509
|
+
}, "🔒 " + U(e) + " ← " + U(t), 1))), 128))])) : Q("", !0), !P.value.length && !F.value.length ? (J(), Y("div", zT, U(s.value.debugSubagentEmpty), 1)) : (J(), Y(q, { key: 2 }, [P.value.length ? (J(), Y("div", BT, [X("div", VT, "▶ " + U(s.value.debugSubRunningTitle) + " (" + U(P.value.length) + ")", 1), (J(!0), Y(q, null, ca(P.value, (e, t) => (J(), Y("div", {
|
|
25507
25510
|
key: "a" + t,
|
|
25508
25511
|
class: H(["sub-card", e.status])
|
|
25509
|
-
}, [X("div",
|
|
25512
|
+
}, [X("div", HT, [
|
|
25510
25513
|
X("span", {
|
|
25511
25514
|
class: "sub-status",
|
|
25512
25515
|
style: Oe({ background: I.value[e.status] && I.value[e.status].color || "#9ca3af" })
|
|
25513
25516
|
}, U(I.value[e.status] && I.value[e.status].label || e.status), 5),
|
|
25514
|
-
X("span",
|
|
25515
|
-
X("span",
|
|
25516
|
-
]), X("div",
|
|
25517
|
+
X("span", UT, U(e.label), 1),
|
|
25518
|
+
X("span", WT, U(e.steps.length) + U(s.value.debugStepsCountSuffix), 1)
|
|
25519
|
+
]), X("div", GT, U(A(e.task, 80)), 1)], 2))), 128))])) : Q("", !0), F.value.length ? (J(), Y("div", KT, [X("div", qT, "🕐 " + U(s.value.debugSubHistoryTitle) + " (" + U(F.value.length) + ")", 1), (J(!0), Y(q, null, ca(F.value, (e, t) => (J(), Y("div", {
|
|
25517
25520
|
key: "h" + t,
|
|
25518
25521
|
class: H(["sub-card", e.status])
|
|
25519
25522
|
}, [
|
|
25520
|
-
X("div",
|
|
25523
|
+
X("div", JT, [
|
|
25521
25524
|
X("span", {
|
|
25522
25525
|
class: "sub-status",
|
|
25523
25526
|
style: Oe({ background: I.value[e.status] && I.value[e.status].color || "#9ca3af" })
|
|
25524
25527
|
}, U(I.value[e.status] && I.value[e.status].label || e.status), 5),
|
|
25525
|
-
X("span",
|
|
25526
|
-
e.durationMs == null ? Q("", !0) : (J(), Y("span",
|
|
25528
|
+
X("span", YT, U(e.label), 1),
|
|
25529
|
+
e.durationMs == null ? Q("", !0) : (J(), Y("span", XT, U(ee(e.durationMs)), 1)),
|
|
25527
25530
|
e.steps.length ? (J(), Y("button", {
|
|
25528
25531
|
key: 1,
|
|
25529
25532
|
class: "sub-toggle",
|
|
25530
25533
|
onClick: (e) => re(t)
|
|
25531
|
-
}, U(L.value.has(t) ? s.value.collapse : s.value.debugStepsBtn), 9,
|
|
25534
|
+
}, U(L.value.has(t) ? s.value.collapse : s.value.debugStepsBtn), 9, ZT)) : Q("", !0)
|
|
25532
25535
|
]),
|
|
25533
|
-
X("div",
|
|
25534
|
-
e.resultPreview ? (J(), Y("div",
|
|
25535
|
-
L.value.has(t) && e.steps.length ? (J(), Y("div",
|
|
25536
|
+
X("div", QT, U(A(e.task, 80)), 1),
|
|
25537
|
+
e.resultPreview ? (J(), Y("div", $T, U(e.resultPreview), 1)) : Q("", !0),
|
|
25538
|
+
L.value.has(t) && e.steps.length ? (J(), Y("div", eE, [(J(!0), Y(q, null, ca(e.steps, (e, t) => (J(), Y("div", {
|
|
25536
25539
|
key: t,
|
|
25537
25540
|
class: "sub-step"
|
|
25538
25541
|
}, [
|
|
25539
|
-
X("span",
|
|
25540
|
-
X("span",
|
|
25541
|
-
X("span",
|
|
25542
|
+
X("span", tE, U(e.kind === "tool_call" ? "🔧" : "✅"), 1),
|
|
25543
|
+
X("span", nE, U(e.name), 1),
|
|
25544
|
+
X("span", rE, U(f(e.ts)), 1)
|
|
25542
25545
|
]))), 128))])) : Q("", !0)
|
|
25543
25546
|
], 2))), 128))])) : Q("", !0)], 64))])) : Q("", !0),
|
|
25544
|
-
b.value === "logs" ? (J(), Y(q, { key: 3 }, [u.value.length === 0 ? (J(), Y("div",
|
|
25547
|
+
b.value === "logs" ? (J(), Y(q, { key: 3 }, [u.value.length === 0 ? (J(), Y("div", iE, U(s.value.debugLogsEmpty), 1)) : Q("", !0), (J(!0), Y(q, null, ca(u.value, (e, t) => (J(), Y("div", {
|
|
25545
25548
|
key: t,
|
|
25546
25549
|
class: "log-item"
|
|
25547
25550
|
}, [
|
|
25548
|
-
X("div",
|
|
25551
|
+
X("div", aE, [
|
|
25549
25552
|
X("span", {
|
|
25550
25553
|
class: "log-type",
|
|
25551
25554
|
style: Oe({ background: c.value[e.type].color })
|
|
25552
25555
|
}, U(c.value[e.type].icon) + " " + U(c.value[e.type].label), 5),
|
|
25553
|
-
e.source ? (J(), Y("span",
|
|
25554
|
-
X("span",
|
|
25556
|
+
e.source ? (J(), Y("span", oE, "↳ " + U(e.source), 1)) : Q("", !0),
|
|
25557
|
+
X("span", sE, U(f(e.timestamp)), 1)
|
|
25555
25558
|
]),
|
|
25556
|
-
X("div",
|
|
25557
|
-
X("div",
|
|
25558
|
-
X("div",
|
|
25559
|
-
X("div",
|
|
25560
|
-
X("div",
|
|
25561
|
-
X("div",
|
|
25559
|
+
X("div", cE, [e.type === "context" ? (J(), Y(q, { key: 0 }, [
|
|
25560
|
+
X("div", lE, [
|
|
25561
|
+
X("div", uE, [X("span", dE, U(s.value.debugModel), 1), X("span", fE, U(e.data.model), 1)]),
|
|
25562
|
+
X("div", pE, [X("span", mE, U(s.value.debugTemperature), 1), X("span", hE, U(e.data.temperature), 1)]),
|
|
25563
|
+
X("div", gE, [n[8] ||= X("span", { class: "k" }, "MaxTokens", -1), X("span", _E, U(e.data.maxTokens), 1)]),
|
|
25564
|
+
X("div", vE, [X("span", yE, U(s.value.debugMessageCount), 1), X("span", bE, U(e.data.totalMessages), 1)])
|
|
25562
25565
|
]),
|
|
25563
|
-
X("div",
|
|
25564
|
-
X("div",
|
|
25566
|
+
X("div", xE, U(s.value.debugToolsLabel) + " (" + U(e.data.tools?.length || 0) + ")", 1),
|
|
25567
|
+
X("div", SE, [(J(!0), Y(q, null, ca(e.data.tools, (e) => (J(), Y("span", {
|
|
25565
25568
|
key: e,
|
|
25566
25569
|
class: "tool-chip"
|
|
25567
25570
|
}, U(e), 1))), 128))]),
|
|
25568
|
-
X("div",
|
|
25569
|
-
X("div",
|
|
25571
|
+
X("div", CE, U(s.value.debugContextMessages), 1),
|
|
25572
|
+
X("div", wE, [(J(!0), Y(q, null, ca(e.data.messages, (e, t) => (J(), Y("div", {
|
|
25570
25573
|
key: t,
|
|
25571
25574
|
class: "msg-row"
|
|
25572
25575
|
}, [X("span", {
|
|
25573
25576
|
class: "msg-role",
|
|
25574
25577
|
style: Oe({ background: _(e.type).color })
|
|
25575
|
-
}, U(_(e.type).label), 5), X("span",
|
|
25576
|
-
], 64)) : e.type === "llm_request" ? (J(), Y(q, { key: 1 }, [X("div",
|
|
25577
|
-
X("span",
|
|
25578
|
-
e.data.model ? (J(), Y("span",
|
|
25579
|
-
X("span",
|
|
25580
|
-
e.data.tools?.length ? (J(), Y("span",
|
|
25578
|
+
}, U(_(e.type).label), 5), X("span", TE, U(e.content), 1)]))), 128))])
|
|
25579
|
+
], 64)) : e.type === "llm_request" ? (J(), Y(q, { key: 1 }, [X("div", EE, [
|
|
25580
|
+
X("span", DE, U(s.value.debugRoundPrefix) + U(e.data.round) + U(s.value.debugRoundSuffix), 1),
|
|
25581
|
+
e.data.model ? (J(), Y("span", OE, U(e.data.model), 1)) : Q("", !0),
|
|
25582
|
+
X("span", kE, U((e.data.messages || []).length) + U(s.value.debugMsgCountSuffix), 1),
|
|
25583
|
+
e.data.tools?.length ? (J(), Y("span", AE, U(e.data.tools.length) + U(s.value.debugToolCountSuffix), 1)) : Q("", !0),
|
|
25581
25584
|
X("button", {
|
|
25582
25585
|
class: "view-toggle",
|
|
25583
25586
|
onClick: (e) => m(t)
|
|
25584
|
-
}, U(o.value.has(t) ? s.value.debugCardView : s.value.debugRequestBody), 9,
|
|
25585
|
-
]), o.value.has(t) ? (J(), Y("pre",
|
|
25587
|
+
}, U(o.value.has(t) ? s.value.debugCardView : s.value.debugRequestBody), 9, jE)
|
|
25588
|
+
]), o.value.has(t) ? (J(), Y("pre", RE, [X("code", null, U(h(e.data.messages)), 1)])) : (J(), Y("div", ME, [(J(!0), Y(q, null, ca(e.data.messages, (e, t) => (J(), Y("div", {
|
|
25586
25589
|
key: t,
|
|
25587
25590
|
class: "msg-row"
|
|
25588
25591
|
}, [X("span", {
|
|
25589
25592
|
class: "msg-role",
|
|
25590
25593
|
style: Oe({ background: _(e.role).color })
|
|
25591
|
-
}, U(_(e.role).label), 5), X("div",
|
|
25592
|
-
e.content ? (J(), Y("span",
|
|
25594
|
+
}, U(_(e.role).label), 5), X("div", NE, [
|
|
25595
|
+
e.content ? (J(), Y("span", PE, U(e.content), 1)) : Q("", !0),
|
|
25593
25596
|
(J(!0), Y(q, null, ca(e.tool_calls || [], (e, t) => (J(), Y("div", {
|
|
25594
25597
|
key: t,
|
|
25595
25598
|
class: "tc-inline"
|
|
25596
|
-
}, [X("span",
|
|
25597
|
-
e.tool_call_id ? (J(), Y("span",
|
|
25599
|
+
}, [X("span", FE, "🔧 " + U(e.function?.name || e.name), 1), X("code", IE, U(e.function?.arguments ?? e.args), 1)]))), 128)),
|
|
25600
|
+
e.tool_call_id ? (J(), Y("span", LE, "↳ tool_call_id: " + U(e.tool_call_id), 1)) : Q("", !0)
|
|
25598
25601
|
])]))), 128))]))], 64)) : e.type === "llm_response" ? (J(), Y(q, { key: 2 }, [
|
|
25599
|
-
X("div",
|
|
25600
|
-
e.data.content ? (J(), Y("div",
|
|
25601
|
-
e.data.toolCalls?.length ? (J(), Y("div",
|
|
25602
|
+
X("div", zE, [X("span", BE, U(s.value.debugRoundPrefix) + U(e.data.round) + U(s.value.debugRoundSuffix), 1), e.data.toolCalls?.length ? (J(), Y("span", VE, "🔧 " + U(e.data.toolCalls.length) + U(s.value.debugToolCallsSuffix), 1)) : Q("", !0)]),
|
|
25603
|
+
e.data.content ? (J(), Y("div", HE, U(e.data.content), 1)) : Q("", !0),
|
|
25604
|
+
e.data.toolCalls?.length ? (J(), Y("div", UE, [(J(!0), Y(q, null, ca(e.data.toolCalls, (e, t) => (J(), Y("div", {
|
|
25602
25605
|
key: t,
|
|
25603
25606
|
class: "tc-card"
|
|
25604
|
-
}, [X("div",
|
|
25605
|
-
e.data.usage ? (J(), Y("div",
|
|
25606
|
-
X("span",
|
|
25607
|
-
X("span",
|
|
25608
|
-
X("span",
|
|
25607
|
+
}, [X("div", WE, "🔧 " + U(e.name), 1), X("pre", GE, U(h(e.args)), 1)]))), 128))])) : Q("", !0),
|
|
25608
|
+
e.data.usage ? (J(), Y("div", KE, [
|
|
25609
|
+
X("span", qE, "prompt: " + U(e.data.usage.prompt_tokens ?? "-"), 1),
|
|
25610
|
+
X("span", JE, "completion: " + U(e.data.usage.completion_tokens ?? "-"), 1),
|
|
25611
|
+
X("span", YE, "total: " + U(e.data.usage.total_tokens ?? "-"), 1)
|
|
25609
25612
|
])) : Q("", !0)
|
|
25610
|
-
], 64)) : e.type === "tool_call" ? (J(), Y("div",
|
|
25611
|
-
X("div",
|
|
25613
|
+
], 64)) : e.type === "tool_call" ? (J(), Y("div", XE, [X("div", ZE, "🔧 " + U(e.data.name), 1), X("pre", QE, U(h(e.data.args)), 1)])) : e.type === "tool_result" ? (J(), Y("div", $E, [X("div", eD, "✅ " + U(e.data.name) + U(s.value.debugResultSuffix), 1), X("pre", tD, U(e.data.result), 1)])) : e.type === "error" ? (J(), Y("div", nD, U(e.data.tool ? `[${e.data.tool}] ` : "") + U(e.data.error), 1)) : Q("", !0)]),
|
|
25614
|
+
X("div", rD, [X("button", {
|
|
25612
25615
|
class: "raw-toggle",
|
|
25613
25616
|
onClick: (e) => p(t)
|
|
25614
|
-
}, U(a.value.has(t) ? s.value.debugCollapseRawJson : s.value.debugViewRawJson), 9,
|
|
25617
|
+
}, U(a.value.has(t) ? s.value.debugCollapseRawJson : s.value.debugViewRawJson), 9, iD), X("button", {
|
|
25615
25618
|
class: "raw-toggle",
|
|
25616
25619
|
onClick: (t) => G(__)(h(e.data))
|
|
25617
|
-
}, U(s.value.copy), 9,
|
|
25618
|
-
a.value.has(t) ? (J(), Y("pre",
|
|
25620
|
+
}, U(s.value.copy), 9, aD)]),
|
|
25621
|
+
a.value.has(t) ? (J(), Y("pre", oD, [X("code", null, U(h(e.data)), 1)])) : Q("", !0)
|
|
25619
25622
|
]))), 128))], 64)) : b.value === "flow" ? (J(), Y(q, { key: 4 }, [
|
|
25620
|
-
l.value.length ? Q("", !0) : (J(), Y("div",
|
|
25621
|
-
k.value.pre.length ? (J(), Y("div",
|
|
25623
|
+
l.value.length ? Q("", !0) : (J(), Y("div", sD, U(s.value.debugFlowEmpty), 1)),
|
|
25624
|
+
k.value.pre.length ? (J(), Y("div", cD, [X("div", lD, "⚙️ " + U(s.value.debugFlowPrep), 1), (J(!0), Y(q, null, ca(k.value.pre, (e, t) => (J(), Y("div", {
|
|
25622
25625
|
key: "p" + t,
|
|
25623
25626
|
class: H(["flow-node", e.type])
|
|
25624
25627
|
}, [
|
|
25625
|
-
X("span",
|
|
25626
|
-
X("span",
|
|
25627
|
-
X("span",
|
|
25628
|
-
X("span",
|
|
25628
|
+
X("span", uD, U(c.value[e.type]?.icon), 1),
|
|
25629
|
+
X("span", dD, U(c.value[e.type]?.label), 1),
|
|
25630
|
+
X("span", fD, U(z(e)), 1),
|
|
25631
|
+
X("span", pD, U(f(e.timestamp)), 1)
|
|
25629
25632
|
], 2))), 128))])) : Q("", !0),
|
|
25630
25633
|
(J(!0), Y(q, null, ca(k.value.rounds, (e) => (J(), Y("div", {
|
|
25631
25634
|
key: e.round,
|
|
25632
25635
|
class: "flow-round"
|
|
25633
|
-
}, [X("div",
|
|
25636
|
+
}, [X("div", mD, "🔁 " + U(s.value.debugRoundPrefix) + U(e.round) + U(s.value.debugRoundSuffix), 1), X("div", hD, [(J(!0), Y(q, null, ca(e.items, (e, t) => (J(), Y("div", {
|
|
25634
25637
|
key: t,
|
|
25635
25638
|
class: H(["flow-node", e.type])
|
|
25636
25639
|
}, [
|
|
25637
|
-
X("span",
|
|
25638
|
-
X("span",
|
|
25639
|
-
X("span",
|
|
25640
|
-
X("span",
|
|
25640
|
+
X("span", gD, U(c.value[e.type]?.icon), 1),
|
|
25641
|
+
X("span", _D, U(c.value[e.type]?.label), 1),
|
|
25642
|
+
X("span", vD, U(z(e)), 1),
|
|
25643
|
+
X("span", yD, U(f(e.timestamp)), 1)
|
|
25641
25644
|
], 2))), 128))])]))), 128))
|
|
25642
|
-
], 64)) : (J(), Y("div",
|
|
25643
|
-
X("div",
|
|
25644
|
-
X("div",
|
|
25645
|
-
X("div",
|
|
25646
|
-
X("div",
|
|
25647
|
-
X("div",
|
|
25648
|
-
X("div",
|
|
25649
|
-
X("div",
|
|
25645
|
+
], 64)) : (J(), Y("div", bD, [x.value ? (J(), Y(q, { key: 1 }, [
|
|
25646
|
+
X("div", SD, [
|
|
25647
|
+
X("div", CD, U(s.value.debugInfoBasic), 1),
|
|
25648
|
+
X("div", wD, [
|
|
25649
|
+
X("div", TD, [n[9] ||= X("span", { class: "k" }, "ID", -1), X("span", ED, U(x.value.id), 1)]),
|
|
25650
|
+
X("div", DD, [X("span", OD, U(s.value.debugModel), 1), X("span", kD, U(x.value.model || "-"), 1)]),
|
|
25651
|
+
X("div", AD, [X("span", jD, U(s.value.debugToolCount), 1), X("span", MD, U(x.value.tools.length), 1)]),
|
|
25652
|
+
X("div", ND, [X("span", PD, U(s.value.debugMiddleware), 1), X("span", FD, U(x.value.middleware.length), 1)])
|
|
25650
25653
|
]),
|
|
25651
|
-
X("div",
|
|
25654
|
+
X("div", ID, [X("span", LD, U(s.value.debugMiddlewareStack), 1), X("span", RD, U(x.value.middleware.join(" → ") || "-"), 1)])
|
|
25652
25655
|
]),
|
|
25653
|
-
X("div",
|
|
25656
|
+
X("div", zD, [X("div", BD, "🔧 " + U(s.value.debugToolsLabel) + " (" + U(x.value.tools.length) + ")", 1), (J(!0), Y(q, null, ca(x.value.tools, (e) => (J(), Y("div", {
|
|
25654
25657
|
key: e.name,
|
|
25655
25658
|
class: "info-item"
|
|
25656
|
-
}, [X("div",
|
|
25659
|
+
}, [X("div", VD, [_s(U(e.name), 1), e.source ? (J(), Y("span", {
|
|
25657
25660
|
key: 0,
|
|
25658
25661
|
class: H(["src-tag", O(e.source)])
|
|
25659
|
-
}, U(e.source), 3)) : Q("", !0)]), X("div",
|
|
25660
|
-
x.value.skills.length ? (J(), Y("div",
|
|
25662
|
+
}, U(e.source), 3)) : Q("", !0)]), X("div", HD, U(e.description), 1)]))), 128))]),
|
|
25663
|
+
x.value.skills.length ? (J(), Y("div", UD, [X("div", WD, [_s("📘 " + U(s.value.debugSkillsTitle) + " (" + U(x.value.skills.length) + ")", 1), X("span", GD, U(s.value.debugSkillsHint), 1)]), (J(!0), Y(q, null, ca(x.value.skills, (e) => (J(), Y("div", {
|
|
25661
25664
|
key: e.name,
|
|
25662
25665
|
class: "info-item"
|
|
25663
25666
|
}, [
|
|
25664
25667
|
X("div", {
|
|
25665
25668
|
class: "info-name skill-toggle",
|
|
25666
25669
|
onClick: (t) => C(e.name)
|
|
25667
|
-
}, [X("span", { class: H(["skill-arrow", { open: !!S.value[e.name] }]) }, "▶", 2), _s(" " + U(e.name), 1)], 8,
|
|
25668
|
-
X("div",
|
|
25669
|
-
S.value[e.name] ? (J(), Y("div",
|
|
25670
|
+
}, [X("span", { class: H(["skill-arrow", { open: !!S.value[e.name] }]) }, "▶", 2), _s(" " + U(e.name), 1)], 8, KD),
|
|
25671
|
+
X("div", qD, U(e.description), 1),
|
|
25672
|
+
S.value[e.name] ? (J(), Y("div", JD, [S.value[e.name].loading ? (J(), Y("div", YD, U(s.value.debugLoading), 1)) : S.value[e.name].error ? (J(), Y("div", XD, U(S.value[e.name].error), 1)) : S.value[e.name].content ? (J(), Y("pre", ZD, U(S.value[e.name].content), 1)) : Q("", !0)])) : Q("", !0)
|
|
25670
25673
|
]))), 128))])) : Q("", !0),
|
|
25671
|
-
x.value.data ? (J(), Y("div",
|
|
25672
|
-
X("div",
|
|
25673
|
-
X("div",
|
|
25674
|
-
X("div",
|
|
25675
|
-
X("div",
|
|
25676
|
-
X("div",
|
|
25674
|
+
x.value.data ? (J(), Y("div", QD, [X("div", $D, "📊 " + U(s.value.debugDataTitle), 1), X("div", eO, [X("div", tO, U(x.value.data.description || s.value.debugDataFallback), 1), X("div", nO, U(s.value.debugSchemaPrefix) + U(x.value.data.schema ? s.value.debugSchemaDeclared : s.value.debugSchemaMissing), 1)])])) : Q("", !0),
|
|
25675
|
+
X("div", rO, [X("div", iO, "🧬 " + U(s.value.debugSubagentTitle), 1), X("div", aO, [
|
|
25676
|
+
X("div", oO, [X("span", sO, U(s.value.debugEnabled), 1), X("span", cO, U(x.value.subagent.enabled ? s.value.debugYes : s.value.debugNo), 1)]),
|
|
25677
|
+
X("div", lO, [X("span", uO, U(s.value.debugMaxDepth), 1), X("span", dO, U(x.value.subagent.maxDepth), 1)]),
|
|
25678
|
+
X("div", fO, [X("span", pO, U(s.value.debugMaxParallel), 1), X("span", mO, U(x.value.subagent.maxParallel), 1)]),
|
|
25679
|
+
X("div", hO, [X("span", gO, U(s.value.debugExtraTools), 1), X("span", _O, U(x.value.subagent.allowedTools.length ? x.value.subagent.allowedTools.join(", ") : s.value.debugDefaultReadonly), 1)])
|
|
25677
25680
|
])]),
|
|
25678
|
-
x.value.mcp?.servers?.length ? (J(), Y("div",
|
|
25681
|
+
x.value.mcp?.servers?.length ? (J(), Y("div", vO, [X("div", yO, "🔌 MCP (" + U(x.value.mcp.servers.length) + ")", 1), (J(!0), Y(q, null, ca(x.value.mcp.servers, (e) => (J(), Y("div", {
|
|
25679
25682
|
key: e.name,
|
|
25680
25683
|
class: "info-item"
|
|
25681
|
-
}, [X("div",
|
|
25682
|
-
x.value.verify ? (J(), Y("div",
|
|
25683
|
-
X("div",
|
|
25684
|
-
X("div",
|
|
25685
|
-
X("div",
|
|
25686
|
-
x.value.verify.adversarial ? (J(), Y("div",
|
|
25684
|
+
}, [X("div", bO, [_s(U(e.name) + " ", 1), X("span", xO, U(e.toolCount) + U(s.value.debugToolCountSuffix), 1)]), X("div", SO, U(e.url), 1)]))), 128))])) : Q("", !0),
|
|
25685
|
+
x.value.verify ? (J(), Y("div", CO, [X("div", wO, "✅ " + U(s.value.debugVerifyTitle), 1), X("div", TO, [
|
|
25686
|
+
X("div", EO, [X("span", DO, U(s.value.debugEnabled), 1), X("span", OO, U(x.value.verify.enabled ? s.value.debugYes : s.value.debugNo), 1)]),
|
|
25687
|
+
X("div", kO, [X("span", AO, U(s.value.debugMaxAttempts), 1), X("span", jO, U(x.value.verify.maxAttempts), 1)]),
|
|
25688
|
+
X("div", MO, [X("span", NO, U(s.value.debugAdversarial), 1), X("span", PO, U(x.value.verify.adversarial ? s.value.debugOn : s.value.debugOff), 1)]),
|
|
25689
|
+
x.value.verify.adversarial ? (J(), Y("div", FO, [X("span", IO, U(s.value.debugAdversarialModel), 1), X("span", LO, U(x.value.model || "-") + U(s.value.debugSameAsMain), 1)])) : Q("", !0)
|
|
25687
25690
|
])])) : Q("", !0),
|
|
25688
|
-
x.value.todos.length ? (J(), Y("div",
|
|
25691
|
+
x.value.todos.length ? (J(), Y("div", RO, [X("div", zO, "📋 " + U(s.value.debugTodosTitle) + " (" + U(x.value.todos.length) + ")", 1), (J(!0), Y(q, null, ca(x.value.todos, (e, t) => (J(), Y("div", {
|
|
25689
25692
|
key: t,
|
|
25690
25693
|
class: "info-todo"
|
|
25691
25694
|
}, [X("span", {
|
|
25692
25695
|
class: "todo-tag",
|
|
25693
25696
|
style: Oe({ background: E.value[e.status] && E.value[e.status].color || "#9ca3af" })
|
|
25694
25697
|
}, U(D(e.status)), 5), X("span", null, U(e.content), 1)]))), 128))])) : Q("", !0),
|
|
25695
|
-
x.value.memory ? (J(), Y("div",
|
|
25696
|
-
x.value.lastCompression ? (J(), Y("div",
|
|
25697
|
-
X("div",
|
|
25698
|
-
X("div",
|
|
25699
|
-
X("div",
|
|
25700
|
-
X("div",
|
|
25701
|
-
X("div",
|
|
25702
|
-
x.value.lastCompression.decision ? (J(), Y("div",
|
|
25698
|
+
x.value.memory ? (J(), Y("div", BO, [X("div", VO, "📝 " + U(s.value.debugMemoryTitle), 1), X("pre", HO, U(x.value.memory), 1)])) : Q("", !0),
|
|
25699
|
+
x.value.lastCompression ? (J(), Y("div", UO, [X("div", WO, "🗜️ " + U(s.value.debugLastCompTitle), 1), X("div", GO, [
|
|
25700
|
+
X("div", KO, [X("span", qO, U(s.value.debugTriggered), 1), X("span", JO, U(x.value.lastCompression.triggered ? "✓" : s.value.debugNotTriggered), 1)]),
|
|
25701
|
+
X("div", YO, [X("span", XO, U(s.value.debugRoundsSummarized), 1), X("span", ZO, U(x.value.lastCompression.roundsSummarized) + " / " + U(x.value.lastCompression.roundsTotal), 1)]),
|
|
25702
|
+
X("div", QO, [X("span", $O, U(s.value.debugCtxRecalled), 1), X("span", ek, U(x.value.lastCompression.roundsRecalled) + U(s.value.debugCountSuffix), 1)]),
|
|
25703
|
+
X("div", tk, [X("span", nk, U(s.value.debugMessageCount), 1), X("span", rk, U(x.value.lastCompression.originalMessages) + " → " + U(x.value.lastCompression.compressedMessages), 1)]),
|
|
25704
|
+
X("div", ik, [X("span", ak, U(s.value.debugStrategy), 1), X("span", ok, U(x.value.lastCompression.strategy), 1)]),
|
|
25705
|
+
x.value.lastCompression.decision ? (J(), Y("div", sk, [X("span", ck, U(s.value.debugDecision), 1), X("span", lk, "🤖 " + U(ie(x.value.lastCompression.decision)), 1)])) : Q("", !0)
|
|
25703
25706
|
])])) : Q("", !0)
|
|
25704
|
-
], 64)) : (J(), Y("div",
|
|
25707
|
+
], 64)) : (J(), Y("div", xD, U(s.value.debugNoInfo), 1))]))
|
|
25705
25708
|
])
|
|
25706
25709
|
], 2), X("div", {
|
|
25707
25710
|
class: "drawer-mask",
|
|
@@ -25710,16 +25713,16 @@ app.mount('#app');
|
|
|
25710
25713
|
_: 1
|
|
25711
25714
|
})]));
|
|
25712
25715
|
}
|
|
25713
|
-
}), [["__scopeId", "data-v-c3c5a5dd"]]),
|
|
25716
|
+
}), [["__scopeId", "data-v-c3c5a5dd"]]), dk = { class: "skill-panel" }, fk = { class: "skill-header" }, pk = { class: "skill-title" }, mk = ["title"], hk = { class: "skill-section" }, gk = { class: "section-title" }, _k = ["title"], vk = { class: "field" }, yk = { class: "field-label" }, bk = ["disabled", "placeholder"], xk = { class: "field" }, Sk = { class: "field-label" }, Ck = ["placeholder"], wk = { class: "field field-textarea" }, Tk = { class: "field-label" }, Ek = ["placeholder"], Dk = {
|
|
25714
25717
|
key: 0,
|
|
25715
25718
|
class: "skill-error"
|
|
25716
|
-
},
|
|
25719
|
+
}, Ok = { class: "skill-section" }, kk = { class: "section-title" }, Ak = {
|
|
25717
25720
|
key: 0,
|
|
25718
25721
|
class: "empty-hint"
|
|
25719
|
-
},
|
|
25722
|
+
}, jk = {
|
|
25720
25723
|
key: 1,
|
|
25721
25724
|
class: "skill-list"
|
|
25722
|
-
},
|
|
25725
|
+
}, Mk = { class: "skill-actions" }, Nk = ["title", "onClick"], Pk = ["title", "onClick"], Fk = { class: "skill-hint" }, Ik = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
25723
25726
|
__name: "SkillPanel",
|
|
25724
25727
|
props: {
|
|
25725
25728
|
visible: { type: Boolean },
|
|
@@ -25774,55 +25777,55 @@ app.mount('#app');
|
|
|
25774
25777
|
key: 0,
|
|
25775
25778
|
class: "skill-mask",
|
|
25776
25779
|
onClick: n[4] ||= yl((e) => r("close"), ["self"])
|
|
25777
|
-
}, [X("div",
|
|
25778
|
-
X("div",
|
|
25780
|
+
}, [X("div", dk, [
|
|
25781
|
+
X("div", fk, [X("span", pk, U(e.messages.skillPanelTitle), 1), X("button", {
|
|
25779
25782
|
class: "skill-close",
|
|
25780
25783
|
title: e.messages.close,
|
|
25781
25784
|
onClick: n[0] ||= (e) => r("close")
|
|
25782
|
-
}, "✕", 8,
|
|
25783
|
-
X("div",
|
|
25784
|
-
X("div",
|
|
25785
|
+
}, "✕", 8, mk)]),
|
|
25786
|
+
X("div", hk, [
|
|
25787
|
+
X("div", gk, [_s(U(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (J(), Y("button", {
|
|
25785
25788
|
key: 0,
|
|
25786
25789
|
class: "btn btn-ghost btn-cancel",
|
|
25787
25790
|
title: e.messages.skillCancelEdit,
|
|
25788
25791
|
onClick: h
|
|
25789
|
-
}, U(e.messages.skillCancelEdit), 9,
|
|
25790
|
-
X("label",
|
|
25792
|
+
}, U(e.messages.skillCancelEdit), 9, _k)) : Q("", !0)]),
|
|
25793
|
+
X("label", vk, [X("span", yk, U(e.messages.skillNameLabel), 1), Zr(X("input", {
|
|
25791
25794
|
"onUpdate:modelValue": n[1] ||= (e) => i.value = e,
|
|
25792
25795
|
disabled: !!u.value,
|
|
25793
25796
|
placeholder: e.messages.skillNamePlaceholder,
|
|
25794
25797
|
class: "field-input"
|
|
25795
|
-
}, null, 8,
|
|
25796
|
-
X("label",
|
|
25798
|
+
}, null, 8, bk), [[gl, i.value]])]),
|
|
25799
|
+
X("label", xk, [X("span", Sk, U(e.messages.skillDescLabel), 1), Zr(X("input", {
|
|
25797
25800
|
"onUpdate:modelValue": n[2] ||= (e) => a.value = e,
|
|
25798
25801
|
placeholder: e.messages.skillDescPlaceholder,
|
|
25799
25802
|
class: "field-input"
|
|
25800
|
-
}, null, 8,
|
|
25801
|
-
X("label",
|
|
25803
|
+
}, null, 8, Ck), [[gl, a.value]])]),
|
|
25804
|
+
X("label", wk, [X("span", Tk, U(e.messages.skillContentLabel), 1), Zr(X("textarea", {
|
|
25802
25805
|
"onUpdate:modelValue": n[3] ||= (e) => o.value = e,
|
|
25803
25806
|
placeholder: e.messages.skillContentPlaceholder,
|
|
25804
25807
|
rows: "6",
|
|
25805
25808
|
class: "field-input"
|
|
25806
|
-
}, null, 8,
|
|
25807
|
-
s.value ? (J(), Y("div",
|
|
25809
|
+
}, null, 8, Ek), [[gl, o.value]])]),
|
|
25810
|
+
s.value ? (J(), Y("div", Dk, U(s.value), 1)) : Q("", !0),
|
|
25808
25811
|
X("button", {
|
|
25809
25812
|
class: "btn btn-primary",
|
|
25810
25813
|
onClick: f
|
|
25811
25814
|
}, U(u.value ? e.messages.skillSave : e.messages.skillAdd), 1)
|
|
25812
25815
|
]),
|
|
25813
|
-
X("div",
|
|
25816
|
+
X("div", Ok, [X("div", kk, U(e.messages.skillCreatedTitle) + "(" + U(c.value.length) + ")", 1), c.value.length ? (J(), Y("ul", jk, [(J(!0), Y(q, null, ca(c.value, (t) => (J(), Y("li", {
|
|
25814
25817
|
key: t,
|
|
25815
25818
|
class: "skill-item"
|
|
25816
|
-
}, [X("span", { class: H(["skill-name", { active: u.value === t }]) }, U(t), 3), X("span",
|
|
25819
|
+
}, [X("span", { class: H(["skill-name", { active: u.value === t }]) }, U(t), 3), X("span", Mk, [X("button", {
|
|
25817
25820
|
class: "btn btn-ghost btn-edit",
|
|
25818
25821
|
title: e.messages.skillEditTitle,
|
|
25819
25822
|
onClick: (e) => m(t)
|
|
25820
|
-
}, U(e.messages.skillEditBtn), 9,
|
|
25823
|
+
}, U(e.messages.skillEditBtn), 9, Nk), X("button", {
|
|
25821
25824
|
class: "btn btn-ghost btn-del",
|
|
25822
25825
|
title: e.messages.skillDeleteTitle,
|
|
25823
25826
|
onClick: (e) => p(t)
|
|
25824
|
-
}, U(e.messages.skillDeleteBtn), 9,
|
|
25825
|
-
X("div",
|
|
25827
|
+
}, U(e.messages.skillDeleteBtn), 9, Pk)])]))), 128))])) : (J(), Y("div", Ak, U(e.messages.skillEmpty), 1))]),
|
|
25828
|
+
X("div", Fk, [
|
|
25826
25829
|
_s(" 💡 " + U(e.messages.skillHintA) + " ", 1),
|
|
25827
25830
|
n[5] ||= X("code", null, "load_skill(name)", -1),
|
|
25828
25831
|
_s(" " + U(e.messages.skillHintB) + " ", 1),
|
|
@@ -25833,7 +25836,7 @@ app.mount('#app');
|
|
|
25833
25836
|
_: 1
|
|
25834
25837
|
})]));
|
|
25835
25838
|
}
|
|
25836
|
-
}), [["__scopeId", "data-v-fcd21121"]]),
|
|
25839
|
+
}), [["__scopeId", "data-v-fcd21121"]]), Lk = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
25837
25840
|
__name: "ChatDialog",
|
|
25838
25841
|
props: {
|
|
25839
25842
|
fetchResponse: {},
|
|
@@ -25935,7 +25938,7 @@ app.mount('#app');
|
|
|
25935
25938
|
f("header") ? la(t.$slots, "header", {
|
|
25936
25939
|
key: 0,
|
|
25937
25940
|
chat: G(i)
|
|
25938
|
-
}, () => [Z(
|
|
25941
|
+
}, () => [Z(ky, {
|
|
25939
25942
|
title: e.title || G(i).messages.defaultTitle,
|
|
25940
25943
|
drawer: e.drawer,
|
|
25941
25944
|
"debug-logs": e.debugLogs,
|
|
@@ -25960,7 +25963,7 @@ app.mount('#app');
|
|
|
25960
25963
|
f("focus") ? la(t.$slots, "focus", {
|
|
25961
25964
|
key: 1,
|
|
25962
25965
|
chat: G(i)
|
|
25963
|
-
}, () => [Z(
|
|
25966
|
+
}, () => [Z(By, {
|
|
25964
25967
|
"get-focus": e.getFocus,
|
|
25965
25968
|
"on-set-focus": e.onSetFocus,
|
|
25966
25969
|
"on-clear-focus": e.onClearFocus,
|
|
@@ -25986,7 +25989,7 @@ app.mount('#app');
|
|
|
25986
25989
|
key: 0,
|
|
25987
25990
|
name: "cs-slide"
|
|
25988
25991
|
}, {
|
|
25989
|
-
default: Yr(() => [la(t.$slots, "body", { chat: G(i) }, () => [Zr(Z(
|
|
25992
|
+
default: Yr(() => [la(t.$slots, "body", { chat: G(i) }, () => [Zr(Z(BC, {
|
|
25990
25993
|
"show-avatar": e.showAvatar,
|
|
25991
25994
|
"show-typing": e.showTyping
|
|
25992
25995
|
}, null, 8, ["show-avatar", "show-typing"]), [[Pc, G(a)]])], !0)]),
|
|
@@ -25995,15 +25998,15 @@ app.mount('#app');
|
|
|
25995
25998
|
f("queued") ? la(t.$slots, "queued", {
|
|
25996
25999
|
key: 1,
|
|
25997
26000
|
chat: G(i)
|
|
25998
|
-
}, () => [Z(
|
|
26001
|
+
}, () => [Z(XC)], !0) : Q("", !0),
|
|
25999
26002
|
f("approval") ? la(t.$slots, "approval", {
|
|
26000
26003
|
key: 2,
|
|
26001
26004
|
chat: G(i)
|
|
26002
|
-
}, () => [Z(
|
|
26005
|
+
}, () => [Z(uw)], !0) : Q("", !0),
|
|
26003
26006
|
f("conflict") ? la(t.$slots, "conflict", {
|
|
26004
26007
|
key: 3,
|
|
26005
26008
|
chat: G(i)
|
|
26006
|
-
}, () => [Z(
|
|
26009
|
+
}, () => [Z(Dw, {
|
|
26007
26010
|
"pending-conflict": e.pendingConflict,
|
|
26008
26011
|
"on-resolve": e.onResolveConflict,
|
|
26009
26012
|
icons: G(i).icons,
|
|
@@ -26019,7 +26022,7 @@ app.mount('#app');
|
|
|
26019
26022
|
key: 2,
|
|
26020
26023
|
name: "cs-slide"
|
|
26021
26024
|
}, {
|
|
26022
|
-
default: Yr(() => [la(t.$slots, "footer", { chat: G(i) }, () => [Z(
|
|
26025
|
+
default: Yr(() => [la(t.$slots, "footer", { chat: G(i) }, () => [Z(Hw, {
|
|
26023
26026
|
placeholder: e.placeholder || G(i).messages.inputPlaceholder,
|
|
26024
26027
|
"input-rows": e.inputRows
|
|
26025
26028
|
}, null, 8, ["placeholder", "input-rows"])], !0)]),
|
|
@@ -26028,7 +26031,7 @@ app.mount('#app');
|
|
|
26028
26031
|
f("debug") ? la(t.$slots, "debug", {
|
|
26029
26032
|
key: 3,
|
|
26030
26033
|
chat: G(i)
|
|
26031
|
-
}, () => [Z(
|
|
26034
|
+
}, () => [Z(uk, {
|
|
26032
26035
|
visible: G(o),
|
|
26033
26036
|
"onUpdate:visible": n[4] ||= (e) => /* @__PURE__ */ Cn(o) ? o.value = e : null,
|
|
26034
26037
|
logs: e.debugLogs,
|
|
@@ -26051,7 +26054,7 @@ app.mount('#app');
|
|
|
26051
26054
|
f("skill") ? la(t.$slots, "skill", {
|
|
26052
26055
|
key: 4,
|
|
26053
26056
|
chat: G(i)
|
|
26054
|
-
}, () => [Z(
|
|
26057
|
+
}, () => [Z(Ik, {
|
|
26055
26058
|
visible: G(s),
|
|
26056
26059
|
"on-add-skill": e.onAddSkill,
|
|
26057
26060
|
"on-remove-skill": e.onRemoveSkill,
|
|
@@ -26073,10 +26076,10 @@ app.mount('#app');
|
|
|
26073
26076
|
}), [["__scopeId", "data-v-22154cd1"]]);
|
|
26074
26077
|
//#endregion
|
|
26075
26078
|
//#region src/core/sdk/mountChatDialog.ts
|
|
26076
|
-
function
|
|
26079
|
+
function Rk(e) {
|
|
26077
26080
|
let { core: t, dialogCfg: n } = e, r = null, i = e.el, a = t.agent.debugLogs;
|
|
26078
26081
|
return r = Tl(/* @__PURE__ */ Ii({ setup() {
|
|
26079
|
-
return () => $s(
|
|
26082
|
+
return () => $s(Lk, {
|
|
26080
26083
|
fetchStream: e.streaming ? t.stream : void 0,
|
|
26081
26084
|
fetchResponse: e.streaming ? void 0 : (e, n) => {
|
|
26082
26085
|
if (n) {
|
|
@@ -26177,7 +26180,7 @@ function Lk(e) {
|
|
|
26177
26180
|
}
|
|
26178
26181
|
//#endregion
|
|
26179
26182
|
//#region src/core/sdk/ragSubagent.ts
|
|
26180
|
-
function
|
|
26183
|
+
function zk(e, t, n, r, i) {
|
|
26181
26184
|
let a = [];
|
|
26182
26185
|
e && a.push("vfs_grep + vfs_read(搜预注入文档)"), t && a.push(`${r}(语义检索)`), n && a.push(`${i}(按 source 加载)`), a.push("fetch_document(公网 URL)");
|
|
26183
26186
|
let o = [];
|
|
@@ -26192,7 +26195,7 @@ function Rk(e, t, n, r, i) {
|
|
|
26192
26195
|
|
|
26193
26196
|
你是只读检索角色,不要尝试修改任何数据。不要尝试上面未列出的工具。`;
|
|
26194
26197
|
}
|
|
26195
|
-
function
|
|
26198
|
+
function Bk(e, t, n, r, i) {
|
|
26196
26199
|
let a = [], o = [];
|
|
26197
26200
|
return e && (a.push("- vfs_grep / vfs_read:搜集成方预注入 vfs 的文档(组件文档 / UI 规范)—— 快、静态,先查"), o.push("- 静态文档(组件库文档 / UI 规范):vfs_grep")), t && (a.push(`- ${r}:语义检索(retriever 向量库)—— 模糊匹配,关键词不确定 / 语义相似时用`), o.push(`- 语义相似(「瀑布流组件」「倒计时」「拼团」):${r}`)), n && (a.push(`- ${i}:按 source 精确加载(已知文档 id / URL / key)—— 精确取特定文档`), o.push(`- 已知文档 id / URL:${i}`)), a.push("- fetch_document:公网 URL —— 查公开资料"), o.push("- 公开 URL(设计规范网站 / 第三方文档):fetch_document"), `# 知识检索策略(RAG)
|
|
26198
26201
|
|
|
@@ -26209,12 +26212,12 @@ ${a.join("\n")}
|
|
|
26209
26212
|
## 何时用何源
|
|
26210
26213
|
${o.join("\n")}`;
|
|
26211
26214
|
}
|
|
26212
|
-
var
|
|
26215
|
+
var Vk = {
|
|
26213
26216
|
name: "rag-search",
|
|
26214
26217
|
description: "多源知识检索策略:vfs 预注入文档 → 语义检索 → 指定文档加载 → 公网;综合结构化结论 + 溯源",
|
|
26215
|
-
getContent: () =>
|
|
26218
|
+
getContent: () => Bk(!0, !0, !0, "search_docs", "load_doc")
|
|
26216
26219
|
};
|
|
26217
|
-
function
|
|
26220
|
+
function Hk(e, n, i) {
|
|
26218
26221
|
return r(async ({ query: e, topK: t }) => {
|
|
26219
26222
|
try {
|
|
26220
26223
|
let r = await n(e, { topK: t ?? i });
|
|
@@ -26231,7 +26234,7 @@ function Vk(e, n, i) {
|
|
|
26231
26234
|
})
|
|
26232
26235
|
});
|
|
26233
26236
|
}
|
|
26234
|
-
function
|
|
26237
|
+
function Uk(e, n) {
|
|
26235
26238
|
return r(async ({ source: e }) => {
|
|
26236
26239
|
try {
|
|
26237
26240
|
let t = await n(e), r = Array.isArray(t) ? t : [t];
|
|
@@ -26245,19 +26248,19 @@ function Hk(e, n) {
|
|
|
26245
26248
|
schema: t.object({ source: t.string().describe("文档标识(id/URL/key)") })
|
|
26246
26249
|
});
|
|
26247
26250
|
}
|
|
26248
|
-
function
|
|
26251
|
+
function Wk(e) {
|
|
26249
26252
|
let { retriever: t, loader: n, useVfs: r = !0, id: i = "rag", description: a, topK: o = 5, searchToolName: s = "search_docs", loadToolName: c = "load_doc", maxToolRounds: l = 8, summarization: u, skills: d, extraTools: f } = e;
|
|
26250
26253
|
if (!t && !n && r === !1) throw Error("[page-agent-sdk][createRagSubagent] 至少配一种知识源:retriever / loader / useVfs(true)");
|
|
26251
26254
|
let p = [];
|
|
26252
|
-
t && p.push(
|
|
26255
|
+
t && p.push(Hk(s, t, o)), n && p.push(Uk(c, n)), f && p.push(...f);
|
|
26253
26256
|
let m = r ? [
|
|
26254
26257
|
"vfs_grep",
|
|
26255
26258
|
"vfs_read",
|
|
26256
26259
|
"vfs_json_read"
|
|
26257
|
-
] : void 0, h =
|
|
26260
|
+
] : void 0, h = zk(r, !!t, !!n, s, c), g = {
|
|
26258
26261
|
name: "rag-search",
|
|
26259
|
-
description:
|
|
26260
|
-
getContent: () =>
|
|
26262
|
+
description: Vk.description,
|
|
26263
|
+
getContent: () => Bk(r, !!t, !!n, s, c)
|
|
26261
26264
|
};
|
|
26262
26265
|
return {
|
|
26263
26266
|
id: i,
|
|
@@ -26272,8 +26275,8 @@ function Uk(e) {
|
|
|
26272
26275
|
}
|
|
26273
26276
|
//#endregion
|
|
26274
26277
|
//#region src/core/index.ts
|
|
26275
|
-
function
|
|
26276
|
-
return m_(e,
|
|
26278
|
+
function Gk(e) {
|
|
26279
|
+
return m_(e, Rk);
|
|
26277
26280
|
}
|
|
26278
26281
|
//#endregion
|
|
26279
|
-
export {
|
|
26282
|
+
export { uw as ApprovalBar, Dh as CAPABILITIES, Ah as CONTEXT_PRESETS, Lk as ChatDialog, ky as ChatHeader, Hw as ChatInput, lC as CodePreview, Vm as CompressDecisionSchema, Dw as ConflictBar, v_ as DEFAULT_DIALOG_ICONS, Kf as DEFAULT_PROMPT_SOFT_CAP, Wp as DEFAULT_SYSTEM_PROMPT, Gp as DEFAULT_SYSTEM_PROMPT_EN, uk as DebugDrawer, By as FocusBar, RS as HLJS_BLOCK_MAX_CHARS, sm as HTML_VOID_TAGS, vf as HUMAN_CONFIRM_TOOL_NAME, cy as IconGlyph, x_ as MESSAGES_EN_US, b_ as MESSAGES_ZH_CN, Ul as MIN_CONTEXT_WINDOW, dC as MessageContent, BC as MessageList, AC as MessageRow, XC as QueuedBar, Gf as SOFT_CAP_MIN_WINDOW, zf as STOP_WORDS, Ik as SkillPanel, hd as UNSAFE_KEYS, Ug as actionsToInspectInfo, Hg as actionsToTools, Il as agentError, Lp as analyzeContext, Od as applyPatchToClone, jd as applyPatchToLive, Fl as asAgentError, Kp as buildDataPrompt, Mm as buildHtmlFragmentSkill, qp as buildSystemPrompt, w_ as chatContextKey, gg as commitSetToBind, Up as connectMcp, C as constructLlmFromConfig, S as constructOpenLlmSync, __ as copyText, ku as createAgent, _f as createApprovalMiddleware, T_ as createChatContext, Gk as createChatSdk, Of as createCheckpointManager, kf as createCheckpointMiddleware, $m as createConflictManager, Rp as createContextInspectorMiddleware, wg as createDataOps, Pm as createHtmlFormatCheck, Lm as createHtmlSubagent, xf as createHumanConfirmMiddleware, bf as createHumanConfirmTool, bh as createMemoryBackend, uf as createMemoryMiddleware, y as createProxyLlm, Wk as createRagSubagent, qd as createSandboxRunner, kh as createSdkEvents, o_ as createSerialRunner, wh as createSessionStore, n_ as createSkillStore, mp as createSubagentMiddleware, Qf as createSubagentTracker, _p as createSubagentsMiddleware, Xg as createUsageHintsMiddleware, vp as createVerifyMiddleware, Zp as createVfs, Sh as createWebStorageBackend, wp as createWriteBackCheck, xd as deepClone, Kg as defineDataToolset, Yd as defineSkill, Rm as defineTool, bd as deleteByPath, Hm as deriveTitle, Ku as describeSchemaNode, pu as detectGarbledToolCall, _u as detectTransitionalReply, Fd as diffObjects, Ag as domToStructure, Mg as domTools, Gg as domToolsStatic, Vf as estimateMessageTokens, Hf as estimateRoundTokens, Gl as estimateTokens, T as extractReasoningDelta, ad as extractSchemaHint, zp as extractText, w as extractTextDelta, E as extractUsage, Eg as fetchDocTools, Wg as fetchTools, hg as filterByToolMode, Pd as findStrippedKeys, qu as formatConstraints, jl as formatZodIssues, vd as getByPath, jg as getDomTool, Fg as getEnvSummary, Nu as getSchemaAtPath, Au as getSchemaTopKeys, Jl as getTraceMetrics, Dd as hashValue, Nm as htmlFragmentSkill, ed as htmlOrchestratorPrompt, Uf as indexSummarize, Rg as inspectEnvTool, zg as inspectTools, Um as isChatModel, iu as isContextLengthError, Xv as isIconHtml, ju as isPathAllowed, fh as isQuotaError, gd as isUnsafePath, Wh as jpEval, Nl as jsonParseError, wd as limitDepth, WS as markedToHtml, Sd as maybeParseValue, Ad as moveByPath, x as normalizeBaseUrl, O as normalizeUsage, ql as offloadPassThroughChars, Kl as offloadThresholdChars, $u as presets, Bu as projectBySchema, zu as projectBySchemaDeep, Cd as projectFields, Wf as recallRounds, GS as renderMarkdownHtml, Ju as renderSchemaHint, Yu as renderSchemaOverview, Qu as renderSchemaShallow, Oh as resolveCapabilities, Mh as resolveContextOptions, Eh as resolveDialogConfig, y_ as resolveDialogIcons, C_ as resolveDialogMessages, Qm as resolveLlm, Wl as resolveModelCaps, qf as resolvePromptSoftCap, Th as resolveStorage, Nd as restoreInPlace, Md as restoreLive, Pl as routeError, Jd as runHostScript, Jh as runSandboxedScript, _d as safeMerge, Pg as safeSerialize, Td as safeStringify, mu as sanitizeGarbledContent, ey as sanitizeIconHtml, ry as sanitizeMessageHtml, Kh as searchJson, qg as selectBuiltinTools, yd as setByPath, Jf as shouldTriggerCompression, b as stripStainlessFetch, td as systemPromptHelpers, Bf as tokenize, $ as toolError, Mu as unwrapSchema, g_ as useChat, E_ as useChatContext, lm as validateHtmlFormat, e as z, Ml as zodError };
|