page-agent-sdk 4.2.0 → 4.2.2
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/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/page-agent-sdk.headless.js +5 -3
- package/dist/page-agent-sdk.iife.js +20 -20
- package/dist/page-agent-sdk.js +671 -665
- package/dist/page-agent-sdk.legacy.js +568 -561
- package/dist/page-agent-sdk.umd.cjs +33 -33
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -42885,7 +42885,7 @@ function yge(e) {
|
|
|
42885
42885
|
return !!(e == null || typeof e == "string" || e instanceof ArrayBuffer || ArrayBuffer.isView(e) || typeof Blob < "u" && e instanceof Blob || e instanceof URLSearchParams || e instanceof FormData);
|
|
42886
42886
|
}
|
|
42887
42887
|
function bge(e) {
|
|
42888
|
-
let t = e.model || "
|
|
42888
|
+
let t = e.model || "deepseek-v4-flash", n = e.temperature, r = e.maxTokens, i = e.baseUrl;
|
|
42889
42889
|
if (e.mode === "direct") {
|
|
42890
42890
|
let a = !1;
|
|
42891
42891
|
try {
|
|
@@ -55796,7 +55796,7 @@ function AQ(e) {
|
|
|
55796
55796
|
}
|
|
55797
55797
|
function jQ(e) {
|
|
55798
55798
|
var t, n, r;
|
|
55799
|
-
let { apiKey: i, baseUrl: a, model: o = "
|
|
55799
|
+
let { apiKey: i, baseUrl: a, model: o = "deepseek-v4-flash", temperature: s = .7, maxTokens: c, extraBody: l, extraConfig: u, systemPrompt: d, tools: f = [], middleware: p = [], maxToolRounds: m, maxIterations: h, maxRetries: g = 2, retryDelayMs: _ = 500, stallMs: v = KZ, streamMaxMs: y = qZ, toolTimeoutMs: b, maxParallelTools: x = 1, maxVerifyAttempts: S = 0, roundTokenBudget: C = 0, onLog: w, onLlmChange: T, imageContentFormat: E = "openai", staleReadInvalidation: D = !0, debug: O = !1 } = e, k = m == null ? dwe : m;
|
|
55800
55800
|
(!Number.isFinite(k) || k < 1) && (console.warn(`[page-agent-sdk] maxToolRounds=${k} 非法(须 ≥1 正整数),已 clamp 到 1(0/负数致主循环 while 不进 → agent 不调 LLM 静默返回兜底文案)`), k = 1);
|
|
55801
55801
|
let A = bF({
|
|
55802
55802
|
model: o,
|
|
@@ -57489,6 +57489,7 @@ function O$(e) {
|
|
|
57489
57489
|
"## 当前精修目标",
|
|
57490
57490
|
n.map((e) => `· ${e.path}${e.label ? `(${e.label})` : ""}`).join("\n"),
|
|
57491
57491
|
`仅操作上述 ${n.length} 个聚焦子树${n.length > 1 ? "之一" : ""},用户未指明目标的指令默认作用于聚焦组件(「增加/修改/删除 X」类指令优先理解为对聚焦组件本身的改动 —— 如为其加页签/子项,写焦点路径的子路径;仅用户明确要求新建独立组件时才需解除焦点);不要改动其他组件;${o}`,
|
|
57492
|
+
"用户用指示代词提问(「这是啥/这个/它是干什么的」等)时,所指默认是聚焦目标 —— 先 read 聚焦子树,再围绕聚焦组件回答,勿泛答整页",
|
|
57492
57493
|
"read 不带路径时默认只返回聚焦子树;需要全量主数据时显式列顶层键(read({jsonPaths:[...]}) )"
|
|
57493
57494
|
], r = e.getSchema();
|
|
57494
57495
|
if (r) {
|
|
@@ -75407,6 +75408,7 @@ function bPe(e = {}) {
|
|
|
75407
75408
|
content: "",
|
|
75408
75409
|
timestamp: Date.now(),
|
|
75409
75410
|
reasoning: "",
|
|
75411
|
+
reasoningTotal: 0,
|
|
75410
75412
|
steps: []
|
|
75411
75413
|
}), n = !1;
|
|
75412
75414
|
c.messages.push(t);
|
|
@@ -75417,7 +75419,7 @@ function bPe(e = {}) {
|
|
|
75417
75419
|
e.round > 1 && (t.content || t.reasoning) && (n = !0);
|
|
75418
75420
|
break;
|
|
75419
75421
|
case "reasoning":
|
|
75420
|
-
n && (t.reasoning += "\n", n = !1), t.reasoning = (t.reasoning + e.delta).slice(-4e3);
|
|
75422
|
+
n && (t.reasoning += "\n", n = !1), t.reasoningTotal += e.delta.length, t.reasoning = (t.reasoning + e.delta).slice(-4e3);
|
|
75421
75423
|
break;
|
|
75422
75424
|
case "text":
|
|
75423
75425
|
n && (t.content += "\n", n = !1), t.content += e.delta;
|
|
@@ -77421,15 +77423,17 @@ var oIe = {
|
|
|
77421
77423
|
running: {
|
|
77422
77424
|
type: Boolean,
|
|
77423
77425
|
default: !1
|
|
77424
|
-
}
|
|
77426
|
+
},
|
|
77427
|
+
total: { default: void 0 }
|
|
77425
77428
|
},
|
|
77426
77429
|
emits: ["toggle"],
|
|
77427
77430
|
setup(e) {
|
|
77428
77431
|
let t = e, n = BX(() => {
|
|
77429
|
-
|
|
77430
|
-
|
|
77431
|
-
|
|
77432
|
-
|
|
77432
|
+
var e;
|
|
77433
|
+
let n = (e = t.total) == null ? t.text.length : e;
|
|
77434
|
+
if (n < 1e3) return String(n);
|
|
77435
|
+
let r = n / 1e3;
|
|
77436
|
+
return `${r >= 100 ? Math.round(r) : +r.toFixed(1)}k`;
|
|
77433
77437
|
});
|
|
77434
77438
|
return (t, r) => e.text ? (X(), Z("div", {
|
|
77435
77439
|
key: 0,
|
|
@@ -77444,14 +77448,14 @@ var oIe = {
|
|
|
77444
77448
|
Q("span", vIe, J(e.expanded ? "收起" : "展开"), 1)
|
|
77445
77449
|
]), e.expanded ? (X(), Z("div", yIe, J(e.text), 1)) : $("", !0)], 2)) : $("", !0);
|
|
77446
77450
|
}
|
|
77447
|
-
}), [["__scopeId", "data-v-
|
|
77451
|
+
}), [["__scopeId", "data-v-7ff8ea75"]]);
|
|
77448
77452
|
//#endregion
|
|
77449
77453
|
//#region src/core/components/message/SubReasonDetails.vue?vue&type=script&setup=true&lang.ts
|
|
77450
77454
|
M();
|
|
77451
77455
|
var xIe = ["open"], SIe = { class: "sub-reason-head" }, CIe = {
|
|
77452
77456
|
key: 0,
|
|
77453
77457
|
class: "sub-reason-trunc"
|
|
77454
|
-
}, wIe = ["title"],
|
|
77458
|
+
}, wIe = { class: "sub-reason-toggle" }, TIe = ["title"], EIe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
77455
77459
|
__name: "SubReasonDetails",
|
|
77456
77460
|
props: {
|
|
77457
77461
|
subReason: {},
|
|
@@ -77492,56 +77496,57 @@ var xIe = ["open"], SIe = { class: "sub-reason-head" }, CIe = {
|
|
|
77492
77496
|
Q("span", { class: zK(["status-dot sm", e.status === "running" ? "running" : "ok"]) }, null, 2),
|
|
77493
77497
|
Q("span", { class: zK(["sub-reason-label", { pulsing: e.status === "running" }]) }, J(e.status === "running" ? `${e.messages.thinkingCountPrefix}${a.value}${e.messages.charCountSuffix}` : e.messages.reasoningTitle), 3),
|
|
77494
77498
|
o.value ? (X(), Z("span", CIe, J(e.messages.truncatedNotePrefix) + J(e.subReason.length) + J(e.messages.truncatedNoteSuffix), 1)) : $("", !0),
|
|
77499
|
+
Q("span", wIe, J(r.value ? e.messages.collapse : e.messages.expand), 1),
|
|
77495
77500
|
Q("button", {
|
|
77496
77501
|
type: "button",
|
|
77497
77502
|
class: zK(["sub-reason-copy", { copied: s.value }]),
|
|
77498
77503
|
title: o.value ? e.messages.copyThinkingTruncTitle : e.messages.copyThinking,
|
|
77499
77504
|
onClick: DZ(c, ["stop", "prevent"])
|
|
77500
|
-
}, J(s.value ? e.messages.copied : e.messages.copy), 11,
|
|
77505
|
+
}, J(s.value ? e.messages.copied : e.messages.copy), 11, TIe)
|
|
77501
77506
|
]), Q("div", {
|
|
77502
77507
|
ref_key: "bodyRef",
|
|
77503
77508
|
ref: n,
|
|
77504
77509
|
class: "sub-reason-body"
|
|
77505
77510
|
}, J(o.value ? "…(前面已截断)\n" : "") + J(e.subReason), 513)], 40, xIe));
|
|
77506
77511
|
}
|
|
77507
|
-
}), [["__scopeId", "data-v-
|
|
77512
|
+
}), [["__scopeId", "data-v-ee8bc184"]]);
|
|
77508
77513
|
//#endregion
|
|
77509
77514
|
//#region src/core/components/message/MessageSteps.vue?vue&type=script&setup=true&lang.ts
|
|
77510
77515
|
M();
|
|
77511
|
-
var
|
|
77516
|
+
var DIe = {
|
|
77512
77517
|
key: 0,
|
|
77513
77518
|
class: "steps-block"
|
|
77514
|
-
},
|
|
77519
|
+
}, OIe = { class: "step-head" }, kIe = { class: "step-name" }, AIe = ["title"], jIe = {
|
|
77515
77520
|
key: 1,
|
|
77516
77521
|
class: "step-count"
|
|
77517
|
-
},
|
|
77522
|
+
}, MIe = {
|
|
77518
77523
|
key: 2,
|
|
77519
77524
|
class: "step-duration"
|
|
77520
|
-
},
|
|
77525
|
+
}, NIe = ["onClick"], PIe = {
|
|
77521
77526
|
key: 0,
|
|
77522
77527
|
class: "step-detail"
|
|
77523
|
-
},
|
|
77528
|
+
}, FIe = {
|
|
77524
77529
|
key: 0,
|
|
77525
77530
|
class: "step-detail-call-label"
|
|
77526
|
-
},
|
|
77531
|
+
}, IIe = {
|
|
77527
77532
|
key: 1,
|
|
77528
77533
|
class: "step-detail-section"
|
|
77529
|
-
},
|
|
77534
|
+
}, LIe = { class: "step-detail-head" }, RIe = ["onClick"], zIe = { class: "step-detail-pre" }, BIe = {
|
|
77530
77535
|
key: 2,
|
|
77531
77536
|
class: "step-detail-section"
|
|
77532
|
-
},
|
|
77537
|
+
}, VIe = { class: "step-detail-head" }, HIe = ["onClick"], UIe = {
|
|
77533
77538
|
key: 3,
|
|
77534
77539
|
class: "step-detail-empty"
|
|
77535
|
-
},
|
|
77540
|
+
}, WIe = {
|
|
77536
77541
|
key: 2,
|
|
77537
77542
|
class: "step-children"
|
|
77538
|
-
},
|
|
77543
|
+
}, GIe = { class: "step-children-label" }, KIe = { class: "step-name" }, qIe = {
|
|
77539
77544
|
key: 0,
|
|
77540
77545
|
class: "step-count"
|
|
77541
|
-
},
|
|
77546
|
+
}, JIe = {
|
|
77542
77547
|
key: 1,
|
|
77543
77548
|
class: "step-status running"
|
|
77544
|
-
},
|
|
77549
|
+
}, YIe = 2e3, XIe = 4e3, ZIe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
77545
77550
|
__name: "MessageSteps",
|
|
77546
77551
|
props: {
|
|
77547
77552
|
steps: {},
|
|
@@ -77626,8 +77631,8 @@ var EIe = {
|
|
|
77626
77631
|
} catch (t) {
|
|
77627
77632
|
n = String(e);
|
|
77628
77633
|
}
|
|
77629
|
-
return n.length >
|
|
77630
|
-
text: n.slice(0,
|
|
77634
|
+
return n.length > YIe ? {
|
|
77635
|
+
text: n.slice(0, YIe) + t.messages.displayTruncatedSuffix,
|
|
77631
77636
|
truncated: !0
|
|
77632
77637
|
} : {
|
|
77633
77638
|
text: n,
|
|
@@ -77647,8 +77652,8 @@ var EIe = {
|
|
|
77647
77652
|
truncated: !1
|
|
77648
77653
|
};
|
|
77649
77654
|
let n = m(e);
|
|
77650
|
-
return n.length >
|
|
77651
|
-
text: n.slice(0,
|
|
77655
|
+
return n.length > XIe ? {
|
|
77656
|
+
text: n.slice(0, XIe) + t.messages.displayTruncatedSuffix,
|
|
77652
77657
|
truncated: !0
|
|
77653
77658
|
} : {
|
|
77654
77659
|
text: n,
|
|
@@ -77668,47 +77673,47 @@ var EIe = {
|
|
|
77668
77673
|
}
|
|
77669
77674
|
R7(e);
|
|
77670
77675
|
}
|
|
77671
|
-
return (t, s) => e.steps.length ? (X(), Z("div",
|
|
77676
|
+
return (t, s) => e.steps.length ? (X(), Z("div", DIe, [(X(!0), Z(oX, null, gY(i.value, (t, i) => {
|
|
77672
77677
|
var s;
|
|
77673
77678
|
return X(), Z("div", {
|
|
77674
77679
|
key: i,
|
|
77675
77680
|
class: zK(["step-item", t.status])
|
|
77676
77681
|
}, [
|
|
77677
|
-
Q("div",
|
|
77682
|
+
Q("div", OIe, [
|
|
77678
77683
|
Q("span", { class: zK(["status-dot", t.status]) }, null, 2),
|
|
77679
|
-
Q("span",
|
|
77684
|
+
Q("span", kIe, J(t.name), 1),
|
|
77680
77685
|
a(t.name) ? (X(), Z("span", {
|
|
77681
77686
|
key: 0,
|
|
77682
77687
|
class: "subagent-badge",
|
|
77683
77688
|
title: e.messages.subagentBadgeTitle
|
|
77684
|
-
}, [bX(v9, { icon: e.icons.subagent }, null, 8, ["icon"]), SX(" " + J(e.messages.subagentBadge), 1)], 8,
|
|
77685
|
-
t.count > 1 ? (X(), Z("span",
|
|
77689
|
+
}, [bX(v9, { icon: e.icons.subagent }, null, 8, ["icon"]), SX(" " + J(e.messages.subagentBadge), 1)], 8, AIe)) : $("", !0),
|
|
77690
|
+
t.count > 1 ? (X(), Z("span", jIe, "×" + J(t.count), 1)) : $("", !0),
|
|
77686
77691
|
Q("span", { class: zK(["step-status", t.status]) }, [bX(y9, { text: n(t.status) }, null, 8, ["text"])], 2),
|
|
77687
|
-
t.durationMs != null && t.status !== "running" ? (X(), Z("span",
|
|
77692
|
+
t.durationMs != null && t.status !== "running" ? (X(), Z("span", MIe, J(o(t.durationMs)), 1)) : $("", !0),
|
|
77688
77693
|
f(t.calls) ? (X(), Z("button", {
|
|
77689
77694
|
key: 3,
|
|
77690
77695
|
type: "button",
|
|
77691
77696
|
class: zK(["step-detail-toggle", { open: u.has(i) }]),
|
|
77692
77697
|
onClick: (e) => d(i)
|
|
77693
|
-
}, J(u.has(i) ? e.messages.collapse : e.messages.expand), 11,
|
|
77698
|
+
}, J(u.has(i) ? e.messages.collapse : e.messages.expand), 11, NIe)) : $("", !0)
|
|
77694
77699
|
]),
|
|
77695
|
-
u.has(i) && (s = t.calls) != null && s.length ? (X(), Z("div",
|
|
77700
|
+
u.has(i) && (s = t.calls) != null && s.length ? (X(), Z("div", PIe, [(X(!0), Z(oX, null, gY(t.calls, (n, r) => (X(), Z("div", {
|
|
77696
77701
|
key: r,
|
|
77697
77702
|
class: "step-detail-call"
|
|
77698
77703
|
}, [
|
|
77699
|
-
t.count > 1 ? (X(), Z("div",
|
|
77700
|
-
p(n.args).text ? (X(), Z("div",
|
|
77704
|
+
t.count > 1 ? (X(), Z("div", FIe, J(e.messages.nthCallPrefix) + J(r + 1) + J(e.messages.nthCallSuffix), 1)) : $("", !0),
|
|
77705
|
+
p(n.args).text ? (X(), Z("div", IIe, [Q("div", LIe, [SX(J(e.messages.argsLabel), 1), Q("button", {
|
|
77701
77706
|
type: "button",
|
|
77702
77707
|
class: "step-detail-copy",
|
|
77703
77708
|
onClick: (e) => g(p(n.args).text, p(n.args).truncated, n.args)
|
|
77704
|
-
}, J(e.messages.copy), 9,
|
|
77705
|
-
n.status !== "running" && h(n.result).text ? (X(), Z("div",
|
|
77709
|
+
}, J(e.messages.copy), 9, RIe)]), Q("pre", zIe, J(p(n.args).text), 1)])) : $("", !0),
|
|
77710
|
+
n.status !== "running" && h(n.result).text ? (X(), Z("div", BIe, [Q("div", VIe, [SX(J(e.messages.resultLabel), 1), Q("button", {
|
|
77706
77711
|
type: "button",
|
|
77707
77712
|
class: "step-detail-copy",
|
|
77708
77713
|
onClick: (e) => g(h(n.result).text, h(n.result).truncated, n.result)
|
|
77709
|
-
}, J(e.messages.copy), 9,
|
|
77714
|
+
}, J(e.messages.copy), 9, HIe)]), Q("pre", { class: zK(["step-detail-pre", { err: n.status === "error" }]) }, J(h(n.result).text), 3)])) : n.status !== "running" && !h(n.result).text ? (X(), Z("div", UIe, J(e.messages.noResult), 1)) : $("", !0)
|
|
77710
77715
|
]))), 128))])) : $("", !0),
|
|
77711
|
-
t.subReason ? (X(), hX(
|
|
77716
|
+
t.subReason ? (X(), hX(EIe, {
|
|
77712
77717
|
key: 1,
|
|
77713
77718
|
"sub-reason": t.subReason,
|
|
77714
77719
|
"sub-reason-full": t.subReasonFull,
|
|
@@ -77720,14 +77725,14 @@ var EIe = {
|
|
|
77720
77725
|
"status",
|
|
77721
77726
|
"messages"
|
|
77722
77727
|
])) : $("", !0),
|
|
77723
|
-
t.children && t.children.length ? (X(), Z("div",
|
|
77728
|
+
t.children && t.children.length ? (X(), Z("div", WIe, [Q("div", GIe, [bX(v9, { icon: e.icons.subagentProgress }, null, 8, ["icon"]), SX(" " + J(e.messages.subagentProgress), 1)]), (X(!0), Z(oX, null, gY(r(t.children), (e, t) => (X(), Z("div", {
|
|
77724
77729
|
key: t,
|
|
77725
77730
|
class: zK(["step-child", e.status])
|
|
77726
77731
|
}, [
|
|
77727
77732
|
Q("span", { class: zK(["status-dot sm", e.status]) }, null, 2),
|
|
77728
|
-
Q("span",
|
|
77729
|
-
e.count > 1 ? (X(), Z("span",
|
|
77730
|
-
e.status === "running" ? (X(), Z("span",
|
|
77733
|
+
Q("span", KIe, J(e.name), 1),
|
|
77734
|
+
e.count > 1 ? (X(), Z("span", qIe, "×" + J(e.count), 1)) : $("", !0),
|
|
77735
|
+
e.status === "running" ? (X(), Z("span", JIe, "…")) : $("", !0)
|
|
77731
77736
|
], 2))), 128))])) : $("", !0)
|
|
77732
77737
|
], 2);
|
|
77733
77738
|
}), 128))])) : $("", !0);
|
|
@@ -77750,7 +77755,7 @@ function x9() {
|
|
|
77750
77755
|
};
|
|
77751
77756
|
}
|
|
77752
77757
|
var S9 = x9();
|
|
77753
|
-
function
|
|
77758
|
+
function QIe(e) {
|
|
77754
77759
|
S9 = e;
|
|
77755
77760
|
}
|
|
77756
77761
|
var C9 = { exec: () => null };
|
|
@@ -77771,7 +77776,7 @@ function T9(e, t = "") {
|
|
|
77771
77776
|
};
|
|
77772
77777
|
return r;
|
|
77773
77778
|
}
|
|
77774
|
-
var
|
|
77779
|
+
var $Ie = ((e = "") => {
|
|
77775
77780
|
try {
|
|
77776
77781
|
return !!RegExp("(?<=1)(?<!1)" + e);
|
|
77777
77782
|
} catch (e) {
|
|
@@ -77834,91 +77839,91 @@ var QIe = ((e = "") => {
|
|
|
77834
77839
|
headingBeginRegex: w9((e) => RegExp(`^ {0,${e}}#`)),
|
|
77835
77840
|
htmlBeginRegex: w9((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
|
|
77836
77841
|
blockquoteBeginRegex: w9((e) => RegExp(`^ {0,${e}}>`))
|
|
77837
|
-
},
|
|
77838
|
-
blockquote: T9(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",
|
|
77839
|
-
code:
|
|
77840
|
-
def:
|
|
77841
|
-
fences:
|
|
77842
|
-
heading:
|
|
77842
|
+
}, eLe = /^(?:[ \t]*(?:\n|$))+/, tLe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, nLe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, D9 = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, rLe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, O9 = / {0,3}(?:[*+-]|\d{1,9}[.)])/, iLe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, aLe = T9(iLe).replace(/bull/g, O9).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(), oLe = T9(iLe).replace(/bull/g, O9).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(), k9 = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, sLe = /^[^\n]+/, A9 = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, cLe = T9(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", A9).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), lLe = T9(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, O9).getRegex(), j9 = "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", M9 = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, uLe = T9("^ {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", M9).replace("tag", j9).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), dLe = (e) => T9(k9).replace("hr", D9).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", j9).getRegex(), fLe = dLe(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), pLe = dLe(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), N9 = {
|
|
77843
|
+
blockquote: T9(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pLe).getRegex(),
|
|
77844
|
+
code: tLe,
|
|
77845
|
+
def: cLe,
|
|
77846
|
+
fences: nLe,
|
|
77847
|
+
heading: rLe,
|
|
77843
77848
|
hr: D9,
|
|
77844
|
-
html:
|
|
77845
|
-
lheading: iLe,
|
|
77846
|
-
list: cLe,
|
|
77847
|
-
newline: $Ie,
|
|
77848
|
-
paragraph: dLe,
|
|
77849
|
-
table: C9,
|
|
77850
|
-
text: oLe
|
|
77851
|
-
}, pLe = T9("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", D9).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", j9).getRegex(), mLe = j(j({}, N9), {}, {
|
|
77849
|
+
html: uLe,
|
|
77852
77850
|
lheading: aLe,
|
|
77853
|
-
|
|
77854
|
-
|
|
77855
|
-
|
|
77851
|
+
list: lLe,
|
|
77852
|
+
newline: eLe,
|
|
77853
|
+
paragraph: fLe,
|
|
77854
|
+
table: C9,
|
|
77855
|
+
text: sLe
|
|
77856
|
+
}, mLe = T9("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", D9).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", j9).getRegex(), hLe = j(j({}, N9), {}, {
|
|
77857
|
+
lheading: oLe,
|
|
77858
|
+
table: mLe,
|
|
77859
|
+
paragraph: T9(k9).replace("hr", D9).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", mLe).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", j9).getRegex()
|
|
77860
|
+
}), gLe = j(j({}, N9), {}, {
|
|
77856
77861
|
html: T9("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", M9).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(),
|
|
77857
77862
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
77858
77863
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
77859
77864
|
fences: C9,
|
|
77860
77865
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
77861
|
-
paragraph: T9(k9).replace("hr", D9).replace("heading", " *#{1,6} *[^\n]").replace("lheading",
|
|
77862
|
-
}),
|
|
77866
|
+
paragraph: T9(k9).replace("hr", D9).replace("heading", " *#{1,6} *[^\n]").replace("lheading", aLe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
77867
|
+
}), _Le = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, vLe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, yLe = /^( {2,}|\\)\n(?!\s*$)/, bLe = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, P9 = /* @__PURE__ */ RegExp("[\\p{P}\\p{S}]", "u"), F9 = /* @__PURE__ */ RegExp("[\\s\\p{P}\\p{S}]", "u"), I9 = /* @__PURE__ */ RegExp("[^\\s\\p{P}\\p{S}]", "u"), xLe = T9(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, F9).getRegex(), SLe = /* @__PURE__ */ RegExp("(?!~)[\\p{P}\\p{S}]", "u"), CLe = /* @__PURE__ */ RegExp("(?!~)[\\s\\p{P}\\p{S}]", "u"), wLe = /* @__PURE__ */ RegExp("(?:[^\\s\\p{P}\\p{S}]|~)", "u"), TLe = T9(/link|precode-code|html/, "g").replace("link", /* @__PURE__ */ RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)", "")).replace("precode-", $Ie ? "(?<!`)()" : "(^^|[^`])").replace("code", /* @__PURE__ */ RegExp("(?<b>`+)[^`]+\\k<b>(?!`)", "")).replace("html", /<(?! )[^<>]*?>/).getRegex(), ELe = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, DLe = T9(ELe, "u").replace(/punct/g, P9).getRegex(), OLe = T9(ELe, "u").replace(/punct/g, SLe).getRegex(), kLe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ALe = T9(kLe, "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), jLe = T9(kLe, "gu").replace(/notPunctSpace/g, wLe).replace(/punctSpace/g, CLe).replace(/punct/g, SLe).getRegex(), MLe = T9("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), NLe = T9(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, P9).getRegex(), PLe = T9("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), FLe = T9(/\\(punct)/, "gu").replace(/punct/g, P9).getRegex(), ILe = T9(/^<(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(), LLe = T9(M9).replace("(?:-->|$)", "-->").getRegex(), RLe = T9("^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", LLe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), L9 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, zLe = T9(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", L9).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), BLe = T9(/^!?\[(label)\]\[(ref)\]/).replace("label", L9).replace("ref", A9).getRegex(), VLe = T9(/^!?\[(ref)\](?:\[\])?/).replace("ref", A9).getRegex(), HLe = T9("reflink|nolink(?!\\()", "g").replace("reflink", BLe).replace("nolink", VLe).getRegex(), ULe = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, R9 = {
|
|
77863
77868
|
_backpedal: C9,
|
|
77864
|
-
anyPunctuation:
|
|
77865
|
-
autolink:
|
|
77866
|
-
blockSkip:
|
|
77867
|
-
br:
|
|
77868
|
-
code:
|
|
77869
|
+
anyPunctuation: FLe,
|
|
77870
|
+
autolink: ILe,
|
|
77871
|
+
blockSkip: TLe,
|
|
77872
|
+
br: yLe,
|
|
77873
|
+
code: vLe,
|
|
77869
77874
|
del: C9,
|
|
77870
77875
|
delLDelim: C9,
|
|
77871
77876
|
delRDelim: C9,
|
|
77872
|
-
emStrongLDelim:
|
|
77873
|
-
emStrongRDelimAst:
|
|
77874
|
-
emStrongRDelimUnd:
|
|
77875
|
-
escape:
|
|
77876
|
-
link:
|
|
77877
|
-
nolink:
|
|
77878
|
-
punctuation:
|
|
77879
|
-
reflink:
|
|
77880
|
-
reflinkSearch:
|
|
77881
|
-
tag:
|
|
77882
|
-
text:
|
|
77877
|
+
emStrongLDelim: DLe,
|
|
77878
|
+
emStrongRDelimAst: ALe,
|
|
77879
|
+
emStrongRDelimUnd: MLe,
|
|
77880
|
+
escape: _Le,
|
|
77881
|
+
link: zLe,
|
|
77882
|
+
nolink: VLe,
|
|
77883
|
+
punctuation: xLe,
|
|
77884
|
+
reflink: BLe,
|
|
77885
|
+
reflinkSearch: HLe,
|
|
77886
|
+
tag: RLe,
|
|
77887
|
+
text: bLe,
|
|
77883
77888
|
url: C9
|
|
77884
|
-
},
|
|
77889
|
+
}, WLe = j(j({}, R9), {}, {
|
|
77885
77890
|
link: T9(/^!?\[(label)\]\((.*?)\)/).replace("label", L9).getRegex(),
|
|
77886
77891
|
reflink: T9(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", L9).getRegex()
|
|
77887
77892
|
}), z9 = j(j({}, R9), {}, {
|
|
77888
|
-
emStrongRDelimAst:
|
|
77889
|
-
emStrongLDelim:
|
|
77890
|
-
delLDelim:
|
|
77891
|
-
delRDelim:
|
|
77892
|
-
url: T9(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",
|
|
77893
|
+
emStrongRDelimAst: jLe,
|
|
77894
|
+
emStrongLDelim: OLe,
|
|
77895
|
+
delLDelim: NLe,
|
|
77896
|
+
delRDelim: PLe,
|
|
77897
|
+
url: T9(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ULe).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
77893
77898
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
77894
77899
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
77895
|
-
text: T9(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",
|
|
77896
|
-
}),
|
|
77897
|
-
br: T9(
|
|
77900
|
+
text: T9(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ULe).getRegex()
|
|
77901
|
+
}), GLe = j(j({}, z9), {}, {
|
|
77902
|
+
br: T9(yLe).replace("{2,}", "*").getRegex(),
|
|
77898
77903
|
text: T9(z9.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
77899
77904
|
}), B9 = {
|
|
77900
77905
|
normal: N9,
|
|
77901
|
-
gfm:
|
|
77902
|
-
pedantic:
|
|
77906
|
+
gfm: hLe,
|
|
77907
|
+
pedantic: gLe
|
|
77903
77908
|
}, V9 = {
|
|
77904
77909
|
normal: R9,
|
|
77905
77910
|
gfm: z9,
|
|
77906
|
-
breaks:
|
|
77907
|
-
pedantic:
|
|
77908
|
-
},
|
|
77911
|
+
breaks: GLe,
|
|
77912
|
+
pedantic: WLe
|
|
77913
|
+
}, KLe = {
|
|
77909
77914
|
"&": "&",
|
|
77910
77915
|
"<": "<",
|
|
77911
77916
|
">": ">",
|
|
77912
77917
|
"\"": """,
|
|
77913
77918
|
"'": "'"
|
|
77914
|
-
},
|
|
77919
|
+
}, qLe = (e) => KLe[e];
|
|
77915
77920
|
function H9(e, t) {
|
|
77916
77921
|
if (t) {
|
|
77917
|
-
if (E9.escapeTest.test(e)) return e.replace(E9.escapeReplace,
|
|
77918
|
-
} else if (E9.escapeTestNoEncode.test(e)) return e.replace(E9.escapeReplaceNoEncode,
|
|
77922
|
+
if (E9.escapeTest.test(e)) return e.replace(E9.escapeReplace, qLe);
|
|
77923
|
+
} else if (E9.escapeTestNoEncode.test(e)) return e.replace(E9.escapeReplaceNoEncode, qLe);
|
|
77919
77924
|
return e;
|
|
77920
77925
|
}
|
|
77921
|
-
function
|
|
77926
|
+
function JLe(e) {
|
|
77922
77927
|
try {
|
|
77923
77928
|
e = encodeURI(e).replace(E9.percentDecode, "%");
|
|
77924
77929
|
} catch (e) {
|
|
@@ -77926,7 +77931,7 @@ function qLe(e) {
|
|
|
77926
77931
|
}
|
|
77927
77932
|
return e;
|
|
77928
77933
|
}
|
|
77929
|
-
function
|
|
77934
|
+
function YLe(e, t) {
|
|
77930
77935
|
var n;
|
|
77931
77936
|
let r = e.replace(E9.findPipe, (e, t, n) => {
|
|
77932
77937
|
let r = !1, i = t;
|
|
@@ -77950,12 +77955,12 @@ function U9(e, t, n) {
|
|
|
77950
77955
|
}
|
|
77951
77956
|
return e.slice(0, r - i);
|
|
77952
77957
|
}
|
|
77953
|
-
function
|
|
77958
|
+
function XLe(e) {
|
|
77954
77959
|
let t = e.split("\n"), n = t.length - 1;
|
|
77955
77960
|
for (; n >= 0 && E9.blankLine.test(t[n]);) n--;
|
|
77956
77961
|
return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
|
|
77957
77962
|
}
|
|
77958
|
-
function
|
|
77963
|
+
function ZLe(e, t) {
|
|
77959
77964
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
77960
77965
|
let n = 0;
|
|
77961
77966
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -77963,7 +77968,7 @@ function XLe(e, t) {
|
|
|
77963
77968
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
77964
77969
|
return n > 0 ? -2 : -1;
|
|
77965
77970
|
}
|
|
77966
|
-
function
|
|
77971
|
+
function QLe(e, t = 0) {
|
|
77967
77972
|
let n = t, r = "";
|
|
77968
77973
|
for (let t of e) if (t === " ") {
|
|
77969
77974
|
let e = 4 - n % 4;
|
|
@@ -77971,7 +77976,7 @@ function ZLe(e, t = 0) {
|
|
|
77971
77976
|
} else r += t, n++;
|
|
77972
77977
|
return r;
|
|
77973
77978
|
}
|
|
77974
|
-
function
|
|
77979
|
+
function $Le(e, t, n, r, i) {
|
|
77975
77980
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
77976
77981
|
r.state.inLink = !0;
|
|
77977
77982
|
let c = {
|
|
@@ -77984,7 +77989,7 @@ function QLe(e, t, n, r, i) {
|
|
|
77984
77989
|
};
|
|
77985
77990
|
return r.state.inLink = !1, c;
|
|
77986
77991
|
}
|
|
77987
|
-
function
|
|
77992
|
+
function eRe(e, t, n) {
|
|
77988
77993
|
let r = e.match(n.other.indentCodeCompensation);
|
|
77989
77994
|
if (r === null) return t;
|
|
77990
77995
|
let i = r[1];
|
|
@@ -78009,7 +78014,7 @@ var W9 = class {
|
|
|
78009
78014
|
code(e) {
|
|
78010
78015
|
let t = this.rules.block.code.exec(e);
|
|
78011
78016
|
if (t) {
|
|
78012
|
-
let e = this.options.pedantic ? t[0] :
|
|
78017
|
+
let e = this.options.pedantic ? t[0] : XLe(t[0]);
|
|
78013
78018
|
return {
|
|
78014
78019
|
type: "code",
|
|
78015
78020
|
raw: e,
|
|
@@ -78021,7 +78026,7 @@ var W9 = class {
|
|
|
78021
78026
|
fences(e) {
|
|
78022
78027
|
let t = this.rules.block.fences.exec(e);
|
|
78023
78028
|
if (t) {
|
|
78024
|
-
let e = t[0], n =
|
|
78029
|
+
let e = t[0], n = eRe(e, t[3] || "", this.rules);
|
|
78025
78030
|
return {
|
|
78026
78031
|
type: "code",
|
|
78027
78032
|
raw: e,
|
|
@@ -78107,7 +78112,7 @@ ${c}` : c;
|
|
|
78107
78112
|
let n = !1, r = "", s = "";
|
|
78108
78113
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
78109
78114
|
r = t[0], e = e.substring(r.length);
|
|
78110
|
-
let c =
|
|
78115
|
+
let c = QLe(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
78111
78116
|
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) {
|
|
78112
78117
|
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);
|
|
78113
78118
|
for (; e;) {
|
|
@@ -78173,7 +78178,7 @@ ${c}` : c;
|
|
|
78173
78178
|
html(e) {
|
|
78174
78179
|
let t = this.rules.block.html.exec(e);
|
|
78175
78180
|
if (t) {
|
|
78176
|
-
let e =
|
|
78181
|
+
let e = XLe(t[0]);
|
|
78177
78182
|
return {
|
|
78178
78183
|
type: "html",
|
|
78179
78184
|
block: !0,
|
|
@@ -78200,7 +78205,7 @@ ${c}` : c;
|
|
|
78200
78205
|
var t;
|
|
78201
78206
|
let n = this.rules.block.table.exec(e);
|
|
78202
78207
|
if (!n || !this.rules.other.tableDelimiter.test(n[2])) return;
|
|
78203
|
-
let r =
|
|
78208
|
+
let r = YLe(n[1]), i = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), a = (t = n[3]) != null && t.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], o = {
|
|
78204
78209
|
type: "table",
|
|
78205
78210
|
raw: U9(n[0], "\n"),
|
|
78206
78211
|
header: [],
|
|
@@ -78215,7 +78220,7 @@ ${c}` : c;
|
|
|
78215
78220
|
header: !0,
|
|
78216
78221
|
align: o.align[e]
|
|
78217
78222
|
});
|
|
78218
|
-
for (let e of a) o.rows.push(
|
|
78223
|
+
for (let e of a) o.rows.push(YLe(e, o.header.length).map((e, t) => ({
|
|
78219
78224
|
text: e,
|
|
78220
78225
|
tokens: this.lexer.inline(e),
|
|
78221
78226
|
header: !1,
|
|
@@ -78286,7 +78291,7 @@ ${c}` : c;
|
|
|
78286
78291
|
let t = U9(e.slice(0, -1), "\\");
|
|
78287
78292
|
if ((e.length - t.length) % 2 == 0) return;
|
|
78288
78293
|
} else {
|
|
78289
|
-
let e =
|
|
78294
|
+
let e = ZLe(t[2], "()");
|
|
78290
78295
|
if (e === -2) return;
|
|
78291
78296
|
if (e > -1) {
|
|
78292
78297
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -78298,7 +78303,7 @@ ${c}` : c;
|
|
|
78298
78303
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
78299
78304
|
e && (n = e[1], r = e[3]);
|
|
78300
78305
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
78301
|
-
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)),
|
|
78306
|
+
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)), $Le(t, {
|
|
78302
78307
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
78303
78308
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
78304
78309
|
}, t[0], this.lexer, this.rules);
|
|
@@ -78316,7 +78321,7 @@ ${c}` : c;
|
|
|
78316
78321
|
text: e
|
|
78317
78322
|
};
|
|
78318
78323
|
}
|
|
78319
|
-
return
|
|
78324
|
+
return $Le(n, e, n[0], this.lexer, this.rules);
|
|
78320
78325
|
}
|
|
78321
78326
|
}
|
|
78322
78327
|
emStrong(e, t, n = "") {
|
|
@@ -78758,7 +78763,7 @@ ${e}</tr>
|
|
|
78758
78763
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
78759
78764
|
}
|
|
78760
78765
|
link({ href: e, title: t, tokens: n }) {
|
|
78761
|
-
let r = this.parser.parseInline(n), i =
|
|
78766
|
+
let r = this.parser.parseInline(n), i = JLe(e);
|
|
78762
78767
|
if (i === null) return r;
|
|
78763
78768
|
e = i;
|
|
78764
78769
|
let a = "<a href=\"" + e + "\"";
|
|
@@ -78766,7 +78771,7 @@ ${e}</tr>
|
|
|
78766
78771
|
}
|
|
78767
78772
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
78768
78773
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
78769
|
-
let i =
|
|
78774
|
+
let i = JLe(e);
|
|
78770
78775
|
if (i === null) return H9(n);
|
|
78771
78776
|
e = i;
|
|
78772
78777
|
let a = `<img src="${e}" alt="${H9(n)}"`;
|
|
@@ -79150,15 +79155,15 @@ function Z9(e, t) {
|
|
|
79150
79155
|
return X9.parse(e, t);
|
|
79151
79156
|
}
|
|
79152
79157
|
Z9.options = Z9.setOptions = function(e) {
|
|
79153
|
-
return X9.setOptions(e), Z9.defaults = X9.defaults,
|
|
79158
|
+
return X9.setOptions(e), Z9.defaults = X9.defaults, QIe(Z9.defaults), Z9;
|
|
79154
79159
|
}, Z9.getDefaults = x9, Z9.defaults = S9, Z9.use = function(...e) {
|
|
79155
|
-
return X9.use(...e), Z9.defaults = X9.defaults,
|
|
79160
|
+
return X9.use(...e), Z9.defaults = X9.defaults, QIe(Z9.defaults), Z9;
|
|
79156
79161
|
}, Z9.walkTokens = function(e, t) {
|
|
79157
79162
|
return X9.walkTokens(e, t);
|
|
79158
79163
|
}, Z9.parseInline = X9.parseInline, Z9.Parser = J9, Z9.parser = J9.parse, Z9.Renderer = K9, Z9.TextRenderer = q9, Z9.Lexer = G9, Z9.lexer = G9.lex, Z9.Tokenizer = W9, Z9.Hooks = Y9, Z9.parse = Z9, Z9.options, Z9.setOptions, Z9.use, Z9.walkTokens, Z9.parseInline, J9.parse, G9.lex;
|
|
79159
79164
|
//#endregion
|
|
79160
79165
|
//#region node_modules/highlight.js/lib/core.js
|
|
79161
|
-
var
|
|
79166
|
+
var tRe = /* @__PURE__ */ c(((e, t) => {
|
|
79162
79167
|
function n(e) {
|
|
79163
79168
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
79164
79169
|
throw Error("map is read-only");
|
|
@@ -79999,7 +80004,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
79999
80004
|
return Object.assign(e, ae), e;
|
|
80000
80005
|
}, Fe = Pe({});
|
|
80001
80006
|
Fe.newInstance = () => Pe({}), t.exports = Fe, Fe.HighlightJS = Fe, Fe.default = Fe;
|
|
80002
|
-
})),
|
|
80007
|
+
})), nRe = /* @__PURE__ */ c(((e, t) => {
|
|
80003
80008
|
function n(e) {
|
|
80004
80009
|
let t = e.regex, n = t.concat(/* @__PURE__ */ RegExp("[\\p{L}_]", "u"), t.optional(/* @__PURE__ */ RegExp("[\\p{L}0-9_.-]*:", "u")), /* @__PURE__ */ RegExp("[\\p{L}0-9_.-]*", "u")), r = /* @__PURE__ */ RegExp("[\\p{L}0-9._:-]+", "u"), i = {
|
|
80005
80010
|
className: "symbol",
|
|
@@ -80164,7 +80169,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
80164
80169
|
};
|
|
80165
80170
|
}
|
|
80166
80171
|
t.exports = n;
|
|
80167
|
-
})),
|
|
80172
|
+
})), rRe = /* @__PURE__ */ c(((e, t) => {
|
|
80168
80173
|
function n(e) {
|
|
80169
80174
|
let t = e.regex, n = {}, r = {
|
|
80170
80175
|
begin: /\$\{/,
|
|
@@ -80332,7 +80337,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
80332
80337
|
};
|
|
80333
80338
|
}
|
|
80334
80339
|
t.exports = n;
|
|
80335
|
-
})),
|
|
80340
|
+
})), iRe = /* @__PURE__ */ c(((e, t) => {
|
|
80336
80341
|
function n(e) {
|
|
80337
80342
|
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 = {
|
|
80338
80343
|
className: "type",
|
|
@@ -80507,7 +80512,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
80507
80512
|
};
|
|
80508
80513
|
}
|
|
80509
80514
|
t.exports = n;
|
|
80510
|
-
})),
|
|
80515
|
+
})), aRe = /* @__PURE__ */ c(((e, t) => {
|
|
80511
80516
|
function n(e) {
|
|
80512
80517
|
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 = {
|
|
80513
80518
|
className: "type",
|
|
@@ -80731,7 +80736,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
80731
80736
|
};
|
|
80732
80737
|
}
|
|
80733
80738
|
t.exports = n;
|
|
80734
|
-
})),
|
|
80739
|
+
})), oRe = /* @__PURE__ */ c(((e, t) => {
|
|
80735
80740
|
function n(e) {
|
|
80736
80741
|
let t = [
|
|
80737
80742
|
"bool",
|
|
@@ -80990,7 +80995,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
80990
80995
|
};
|
|
80991
80996
|
}
|
|
80992
80997
|
t.exports = n;
|
|
80993
|
-
})),
|
|
80998
|
+
})), sRe = /* @__PURE__ */ c(((e, t) => {
|
|
80994
80999
|
var n = (e) => ({
|
|
80995
81000
|
IMPORTANT: {
|
|
80996
81001
|
scope: "meta",
|
|
@@ -81129,7 +81134,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
81129
81134
|
};
|
|
81130
81135
|
}
|
|
81131
81136
|
t.exports = u;
|
|
81132
|
-
})),
|
|
81137
|
+
})), cRe = /* @__PURE__ */ c(((e, t) => {
|
|
81133
81138
|
function n(e) {
|
|
81134
81139
|
let t = e.regex, n = {
|
|
81135
81140
|
begin: /<\/?[A-Za-z_]/,
|
|
@@ -81309,7 +81314,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
81309
81314
|
};
|
|
81310
81315
|
}
|
|
81311
81316
|
t.exports = n;
|
|
81312
|
-
})),
|
|
81317
|
+
})), lRe = /* @__PURE__ */ c(((e, t) => {
|
|
81313
81318
|
function n(e) {
|
|
81314
81319
|
let t = e.regex;
|
|
81315
81320
|
return {
|
|
@@ -81347,7 +81352,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
81347
81352
|
};
|
|
81348
81353
|
}
|
|
81349
81354
|
t.exports = n;
|
|
81350
|
-
})),
|
|
81355
|
+
})), uRe = /* @__PURE__ */ c(((e, t) => {
|
|
81351
81356
|
function n(e) {
|
|
81352
81357
|
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 = {
|
|
81353
81358
|
"variable.constant": [
|
|
@@ -81608,7 +81613,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
81608
81613
|
};
|
|
81609
81614
|
}
|
|
81610
81615
|
t.exports = n;
|
|
81611
|
-
})),
|
|
81616
|
+
})), dRe = /* @__PURE__ */ c(((e, t) => {
|
|
81612
81617
|
function n(e) {
|
|
81613
81618
|
let t = {
|
|
81614
81619
|
keyword: [
|
|
@@ -81747,7 +81752,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
81747
81752
|
};
|
|
81748
81753
|
}
|
|
81749
81754
|
t.exports = n;
|
|
81750
|
-
})),
|
|
81755
|
+
})), fRe = /* @__PURE__ */ c(((e, t) => {
|
|
81751
81756
|
function n(e) {
|
|
81752
81757
|
let t = e.regex;
|
|
81753
81758
|
return {
|
|
@@ -81813,7 +81818,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
81813
81818
|
};
|
|
81814
81819
|
}
|
|
81815
81820
|
t.exports = n;
|
|
81816
|
-
})),
|
|
81821
|
+
})), pRe = /* @__PURE__ */ c(((e, t) => {
|
|
81817
81822
|
function n(e) {
|
|
81818
81823
|
let t = e.regex, n = {
|
|
81819
81824
|
className: "number",
|
|
@@ -81900,7 +81905,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
81900
81905
|
};
|
|
81901
81906
|
}
|
|
81902
81907
|
t.exports = n;
|
|
81903
|
-
})),
|
|
81908
|
+
})), mRe = /* @__PURE__ */ c(((e, t) => {
|
|
81904
81909
|
var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
|
|
81905
81910
|
className: "number",
|
|
81906
81911
|
variants: [
|
|
@@ -82068,7 +82073,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
82068
82073
|
};
|
|
82069
82074
|
}
|
|
82070
82075
|
t.exports = s;
|
|
82071
|
-
})),
|
|
82076
|
+
})), hRe = /* @__PURE__ */ c(((e, t) => {
|
|
82072
82077
|
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 = [
|
|
82073
82078
|
"true",
|
|
82074
82079
|
"false",
|
|
@@ -82503,7 +82508,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
82503
82508
|
};
|
|
82504
82509
|
}
|
|
82505
82510
|
t.exports = u;
|
|
82506
|
-
})),
|
|
82511
|
+
})), gRe = /* @__PURE__ */ c(((e, t) => {
|
|
82507
82512
|
function n(e) {
|
|
82508
82513
|
let t = {
|
|
82509
82514
|
className: "attr",
|
|
@@ -82538,7 +82543,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
82538
82543
|
};
|
|
82539
82544
|
}
|
|
82540
82545
|
t.exports = n;
|
|
82541
|
-
})),
|
|
82546
|
+
})), _Re = /* @__PURE__ */ c(((e, t) => {
|
|
82542
82547
|
var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
|
|
82543
82548
|
className: "number",
|
|
82544
82549
|
variants: [
|
|
@@ -82738,7 +82743,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
82738
82743
|
};
|
|
82739
82744
|
}
|
|
82740
82745
|
t.exports = o;
|
|
82741
|
-
})),
|
|
82746
|
+
})), vRe = /* @__PURE__ */ c(((e, t) => {
|
|
82742
82747
|
var n = (e) => ({
|
|
82743
82748
|
IMPORTANT: {
|
|
82744
82749
|
scope: "meta",
|
|
@@ -82929,7 +82934,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
82929
82934
|
};
|
|
82930
82935
|
}
|
|
82931
82936
|
t.exports = d;
|
|
82932
|
-
})),
|
|
82937
|
+
})), yRe = /* @__PURE__ */ c(((e, t) => {
|
|
82933
82938
|
function n(e) {
|
|
82934
82939
|
let t = "\\[=*\\[", n = "\\]=*\\]", r = {
|
|
82935
82940
|
begin: t,
|
|
@@ -82974,7 +82979,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
82974
82979
|
};
|
|
82975
82980
|
}
|
|
82976
82981
|
t.exports = n;
|
|
82977
|
-
})),
|
|
82982
|
+
})), bRe = /* @__PURE__ */ c(((e, t) => {
|
|
82978
82983
|
function n(e) {
|
|
82979
82984
|
let t = {
|
|
82980
82985
|
className: "variable",
|
|
@@ -83030,7 +83035,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
83030
83035
|
};
|
|
83031
83036
|
}
|
|
83032
83037
|
t.exports = n;
|
|
83033
|
-
})),
|
|
83038
|
+
})), xRe = /* @__PURE__ */ c(((e, t) => {
|
|
83034
83039
|
function n(e) {
|
|
83035
83040
|
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 = {
|
|
83036
83041
|
$pattern: /[\w.]+/,
|
|
@@ -83221,7 +83226,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
83221
83226
|
};
|
|
83222
83227
|
}
|
|
83223
83228
|
t.exports = n;
|
|
83224
|
-
})),
|
|
83229
|
+
})), SRe = /* @__PURE__ */ c(((e, t) => {
|
|
83225
83230
|
function n(e) {
|
|
83226
83231
|
let t = {
|
|
83227
83232
|
className: "built_in",
|
|
@@ -83337,7 +83342,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
83337
83342
|
};
|
|
83338
83343
|
}
|
|
83339
83344
|
t.exports = n;
|
|
83340
|
-
})),
|
|
83345
|
+
})), CRe = /* @__PURE__ */ c(((e, t) => {
|
|
83341
83346
|
function n(e) {
|
|
83342
83347
|
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 = {
|
|
83343
83348
|
scope: "variable",
|
|
@@ -83630,7 +83635,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
83630
83635
|
};
|
|
83631
83636
|
}
|
|
83632
83637
|
t.exports = n;
|
|
83633
|
-
})),
|
|
83638
|
+
})), wRe = /* @__PURE__ */ c(((e, t) => {
|
|
83634
83639
|
function n(e) {
|
|
83635
83640
|
return {
|
|
83636
83641
|
name: "PHP template",
|
|
@@ -83672,7 +83677,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
83672
83677
|
};
|
|
83673
83678
|
}
|
|
83674
83679
|
t.exports = n;
|
|
83675
|
-
})),
|
|
83680
|
+
})), TRe = /* @__PURE__ */ c(((e, t) => {
|
|
83676
83681
|
function n(e) {
|
|
83677
83682
|
return {
|
|
83678
83683
|
name: "Plain text",
|
|
@@ -83681,7 +83686,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
83681
83686
|
};
|
|
83682
83687
|
}
|
|
83683
83688
|
t.exports = n;
|
|
83684
|
-
})),
|
|
83689
|
+
})), ERe = /* @__PURE__ */ c(((e, t) => {
|
|
83685
83690
|
function n(e) {
|
|
83686
83691
|
let t = e.regex, n = /* @__PURE__ */ RegExp("[\\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 = {
|
|
83687
83692
|
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
@@ -83918,7 +83923,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
83918
83923
|
};
|
|
83919
83924
|
}
|
|
83920
83925
|
t.exports = n;
|
|
83921
|
-
})),
|
|
83926
|
+
})), DRe = /* @__PURE__ */ c(((e, t) => {
|
|
83922
83927
|
function n(e) {
|
|
83923
83928
|
return {
|
|
83924
83929
|
aliases: ["pycon"],
|
|
@@ -83936,7 +83941,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
83936
83941
|
};
|
|
83937
83942
|
}
|
|
83938
83943
|
t.exports = n;
|
|
83939
|
-
})),
|
|
83944
|
+
})), ORe = /* @__PURE__ */ c(((e, t) => {
|
|
83940
83945
|
function n(e) {
|
|
83941
83946
|
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(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
|
|
83942
83947
|
return {
|
|
@@ -84075,7 +84080,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
84075
84080
|
};
|
|
84076
84081
|
}
|
|
84077
84082
|
t.exports = n;
|
|
84078
|
-
})),
|
|
84083
|
+
})), kRe = /* @__PURE__ */ c(((e, t) => {
|
|
84079
84084
|
function n(e) {
|
|
84080
84085
|
let t = e.regex, n = /(r#)?/, r = t.concat(n, e.UNDERSCORE_IDENT_RE), i = t.concat(n, e.IDENT_RE), a = {
|
|
84081
84086
|
className: "title.function.invoke",
|
|
@@ -84243,7 +84248,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
84243
84248
|
};
|
|
84244
84249
|
}
|
|
84245
84250
|
t.exports = n;
|
|
84246
|
-
})),
|
|
84251
|
+
})), ARe = /* @__PURE__ */ c(((e, t) => {
|
|
84247
84252
|
var n = (e) => ({
|
|
84248
84253
|
IMPORTANT: {
|
|
84249
84254
|
scope: "meta",
|
|
@@ -84392,7 +84397,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
84392
84397
|
};
|
|
84393
84398
|
}
|
|
84394
84399
|
t.exports = u;
|
|
84395
|
-
})),
|
|
84400
|
+
})), jRe = /* @__PURE__ */ c(((e, t) => {
|
|
84396
84401
|
function n(e) {
|
|
84397
84402
|
return {
|
|
84398
84403
|
name: "Shell Session",
|
|
@@ -84408,7 +84413,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
84408
84413
|
};
|
|
84409
84414
|
}
|
|
84410
84415
|
t.exports = n;
|
|
84411
|
-
})),
|
|
84416
|
+
})), MRe = /* @__PURE__ */ c(((e, t) => {
|
|
84412
84417
|
function n(e) {
|
|
84413
84418
|
let t = e.regex, n = e.COMMENT("--", "$"), r = {
|
|
84414
84419
|
scope: "string",
|
|
@@ -84525,7 +84530,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
84525
84530
|
};
|
|
84526
84531
|
}
|
|
84527
84532
|
t.exports = n;
|
|
84528
|
-
})),
|
|
84533
|
+
})), NRe = /* @__PURE__ */ c(((e, t) => {
|
|
84529
84534
|
function n(e) {
|
|
84530
84535
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
84531
84536
|
}
|
|
@@ -85098,7 +85103,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
85098
85103
|
};
|
|
85099
85104
|
}
|
|
85100
85105
|
t.exports = T;
|
|
85101
|
-
})),
|
|
85106
|
+
})), PRe = /* @__PURE__ */ c(((e, t) => {
|
|
85102
85107
|
function n(e) {
|
|
85103
85108
|
let t = "true false yes no null", n = {
|
|
85104
85109
|
className: "attr",
|
|
@@ -85241,7 +85246,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
85241
85246
|
};
|
|
85242
85247
|
}
|
|
85243
85248
|
t.exports = n;
|
|
85244
|
-
})),
|
|
85249
|
+
})), FRe = /* @__PURE__ */ c(((e, t) => {
|
|
85245
85250
|
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 = [
|
|
85246
85251
|
"true",
|
|
85247
85252
|
"false",
|
|
@@ -85761,7 +85766,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
85761
85766
|
}), a;
|
|
85762
85767
|
}
|
|
85763
85768
|
t.exports = d;
|
|
85764
|
-
})),
|
|
85769
|
+
})), IRe = /* @__PURE__ */ c(((e, t) => {
|
|
85765
85770
|
function n(e) {
|
|
85766
85771
|
let t = e.regex, n = {
|
|
85767
85772
|
className: "string",
|
|
@@ -85829,7 +85834,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
85829
85834
|
};
|
|
85830
85835
|
}
|
|
85831
85836
|
t.exports = n;
|
|
85832
|
-
})),
|
|
85837
|
+
})), LRe = /* @__PURE__ */ c(((e, t) => {
|
|
85833
85838
|
function n(e) {
|
|
85834
85839
|
e.regex;
|
|
85835
85840
|
let t = e.COMMENT(/\(;/, /;\)/);
|
|
@@ -85891,9 +85896,9 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
|
|
|
85891
85896
|
};
|
|
85892
85897
|
}
|
|
85893
85898
|
t.exports = n;
|
|
85894
|
-
})),
|
|
85895
|
-
var n =
|
|
85896
|
-
n.registerLanguage("xml",
|
|
85899
|
+
})), RRe = (/* @__PURE__ */ d((/* @__PURE__ */ c(((e, t) => {
|
|
85900
|
+
var n = tRe();
|
|
85901
|
+
n.registerLanguage("xml", nRe()), n.registerLanguage("bash", rRe()), n.registerLanguage("c", iRe()), n.registerLanguage("cpp", aRe()), n.registerLanguage("csharp", oRe()), n.registerLanguage("css", sRe()), n.registerLanguage("markdown", cRe()), n.registerLanguage("diff", lRe()), n.registerLanguage("ruby", uRe()), n.registerLanguage("go", dRe()), n.registerLanguage("graphql", fRe()), n.registerLanguage("ini", pRe()), n.registerLanguage("java", mRe()), n.registerLanguage("javascript", hRe()), n.registerLanguage("json", gRe()), n.registerLanguage("kotlin", _Re()), n.registerLanguage("less", vRe()), n.registerLanguage("lua", yRe()), n.registerLanguage("makefile", bRe()), n.registerLanguage("perl", xRe()), n.registerLanguage("objectivec", SRe()), n.registerLanguage("php", CRe()), n.registerLanguage("php-template", wRe()), n.registerLanguage("plaintext", TRe()), n.registerLanguage("python", ERe()), n.registerLanguage("python-repl", DRe()), n.registerLanguage("r", ORe()), n.registerLanguage("rust", kRe()), n.registerLanguage("scss", ARe()), n.registerLanguage("shell", jRe()), n.registerLanguage("sql", MRe()), n.registerLanguage("swift", NRe()), n.registerLanguage("yaml", PRe()), n.registerLanguage("typescript", FRe()), n.registerLanguage("vbnet", IRe()), n.registerLanguage("wasm", LRe()), n.HighlightJS = n, n.default = n, t.exports = n;
|
|
85897
85902
|
})))())).default;
|
|
85898
85903
|
//#endregion
|
|
85899
85904
|
//#region src/core/composables/useMarkdown.ts
|
|
@@ -85901,55 +85906,55 @@ Z9.setOptions({
|
|
|
85901
85906
|
breaks: !0,
|
|
85902
85907
|
gfm: !0
|
|
85903
85908
|
});
|
|
85904
|
-
var
|
|
85905
|
-
|
|
85909
|
+
var zRe = 2e4, BRe = new Z9.Renderer();
|
|
85910
|
+
BRe.code = ({ text: e, lang: t }) => {
|
|
85906
85911
|
let n = (t || "").trim() || "plaintext", r = "";
|
|
85907
|
-
if (e.length > 2e4) r =
|
|
85912
|
+
if (e.length > 2e4) r = HRe(e);
|
|
85908
85913
|
else try {
|
|
85909
|
-
r =
|
|
85914
|
+
r = RRe.highlight(e, {
|
|
85910
85915
|
language: n,
|
|
85911
85916
|
ignoreIllegals: !0
|
|
85912
85917
|
}).value;
|
|
85913
85918
|
} catch (t) {
|
|
85914
|
-
r =
|
|
85919
|
+
r = HRe(e);
|
|
85915
85920
|
}
|
|
85916
|
-
let i = encodeURIComponent(e), a =
|
|
85921
|
+
let i = encodeURIComponent(e), a = VRe(n);
|
|
85917
85922
|
return `<pre class="code-block" data-lang="${a}" data-code="${i}"><code class="hljs language-${a}">${r}</code></pre>`;
|
|
85918
85923
|
};
|
|
85919
|
-
function
|
|
85924
|
+
function VRe(e) {
|
|
85920
85925
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
85921
85926
|
}
|
|
85922
|
-
function
|
|
85927
|
+
function HRe(e) {
|
|
85923
85928
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
85924
85929
|
}
|
|
85925
|
-
var
|
|
85930
|
+
var URe = { ADD_ATTR: [
|
|
85926
85931
|
"data-code",
|
|
85927
85932
|
"data-lang",
|
|
85928
85933
|
"target",
|
|
85929
85934
|
"rel"
|
|
85930
85935
|
] };
|
|
85931
|
-
function URe(e) {
|
|
85932
|
-
return h9.sanitize(e, HRe);
|
|
85933
|
-
}
|
|
85934
85936
|
function WRe(e) {
|
|
85935
|
-
return
|
|
85937
|
+
return h9.sanitize(e, URe);
|
|
85938
|
+
}
|
|
85939
|
+
function GRe(e) {
|
|
85940
|
+
return Z9.parse(e || "", { renderer: BRe });
|
|
85936
85941
|
}
|
|
85937
85942
|
function Q9(e) {
|
|
85938
|
-
return
|
|
85943
|
+
return WRe(GRe(e));
|
|
85939
85944
|
}
|
|
85940
|
-
var
|
|
85941
|
-
function
|
|
85945
|
+
var KRe = 100, qRe = 2e3;
|
|
85946
|
+
function JRe(e) {
|
|
85942
85947
|
let t = /* @__PURE__ */ Zq(Q9(e())), n = 0, r = null;
|
|
85943
85948
|
function i() {
|
|
85944
85949
|
r = null, n = Date.now(), t.value = Q9(e());
|
|
85945
85950
|
}
|
|
85946
85951
|
return AJ(e, () => {
|
|
85947
85952
|
let a = e();
|
|
85948
|
-
if (a.length <=
|
|
85953
|
+
if (a.length <= qRe) {
|
|
85949
85954
|
r && (clearTimeout(r), r = null), n = Date.now(), t.value = Q9(a);
|
|
85950
85955
|
return;
|
|
85951
85956
|
}
|
|
85952
|
-
let o = n +
|
|
85957
|
+
let o = n + KRe - Date.now();
|
|
85953
85958
|
o <= 0 ? (r && (clearTimeout(r), r = null), i()) : r || (r = setTimeout(i, o));
|
|
85954
85959
|
}), vbe(() => {
|
|
85955
85960
|
r && (clearTimeout(r), r = null);
|
|
@@ -85967,14 +85972,14 @@ function qRe(e) {
|
|
|
85967
85972
|
}
|
|
85968
85973
|
//#endregion
|
|
85969
85974
|
//#region src/core/components/MessageContent.vue?vue&type=script&setup=true&lang.ts
|
|
85970
|
-
var
|
|
85975
|
+
var YRe = ["innerHTML"], XRe = /* @__PURE__ */ nY({
|
|
85971
85976
|
__name: "MessageContent",
|
|
85972
85977
|
props: {
|
|
85973
85978
|
content: {},
|
|
85974
85979
|
messages: { default: () => B7 }
|
|
85975
85980
|
},
|
|
85976
85981
|
setup(e) {
|
|
85977
|
-
let t = e, { html: n, codeBlocks: r } =
|
|
85982
|
+
let t = e, { html: n, codeBlocks: r } = JRe(() => t.content), i = /* @__PURE__ */ Xq(null);
|
|
85978
85983
|
function a(e, t) {
|
|
85979
85984
|
let n = {
|
|
85980
85985
|
html: "html",
|
|
@@ -86028,16 +86033,16 @@ var JRe = ["innerHTML"], YRe = /* @__PURE__ */ nY({
|
|
|
86028
86033
|
ref_key: "containerRef",
|
|
86029
86034
|
ref: i,
|
|
86030
86035
|
innerHTML: Y(n)
|
|
86031
|
-
}, null, 8,
|
|
86036
|
+
}, null, 8, YRe));
|
|
86032
86037
|
}
|
|
86033
86038
|
});
|
|
86034
86039
|
//#endregion
|
|
86035
86040
|
//#region src/core/components/message/MessageBubble.vue?vue&type=script&setup=true&lang.ts
|
|
86036
86041
|
M();
|
|
86037
|
-
var
|
|
86042
|
+
var ZRe = { class: "typing-text" }, QRe = {
|
|
86038
86043
|
key: 0,
|
|
86039
86044
|
class: "stream-cursor"
|
|
86040
|
-
},
|
|
86045
|
+
}, $Re = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
86041
86046
|
__name: "MessageBubble",
|
|
86042
86047
|
props: {
|
|
86043
86048
|
content: {},
|
|
@@ -86048,33 +86053,33 @@ var XRe = { class: "typing-text" }, ZRe = {
|
|
|
86048
86053
|
messages: { default: () => j({}, B7) }
|
|
86049
86054
|
},
|
|
86050
86055
|
setup(e) {
|
|
86051
|
-
return (t, n) => (X(), Z(oX, null, [Q("div", { class: zK(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (X(), Z(oX, { key: 0 }, [Q("span", { class: zK(["typing-dot", { pulse: e.showTyping }]) }, null, 2), Q("span",
|
|
86056
|
+
return (t, n) => (X(), Z(oX, null, [Q("div", { class: zK(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (X(), Z(oX, { key: 0 }, [Q("span", { class: zK(["typing-dot", { pulse: e.showTyping }]) }, null, 2), Q("span", ZRe, [bX(y9, { text: e.messages.thinking }, null, 8, ["text"])])], 64)) : (X(), Z(oX, { key: 1 }, [e.role === "assistant" ? (X(), hX(XRe, {
|
|
86052
86057
|
key: 0,
|
|
86053
86058
|
content: e.content,
|
|
86054
86059
|
messages: e.messages
|
|
86055
|
-
}, null, 8, ["content", "messages"])) : (X(), Z(oX, { key: 1 }, [SX(J(e.content), 1)], 64))], 64))], 2), e.showCursor ? (X(), Z("span",
|
|
86060
|
+
}, null, 8, ["content", "messages"])) : (X(), Z(oX, { key: 1 }, [SX(J(e.content), 1)], 64))], 64))], 2), e.showCursor ? (X(), Z("span", QRe)) : $("", !0)], 64));
|
|
86056
86061
|
}
|
|
86057
|
-
}), [["__scopeId", "data-v-4b4111d8"]]),
|
|
86062
|
+
}), [["__scopeId", "data-v-4b4111d8"]]), eze = { class: "message-time" }, tze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
86058
86063
|
__name: "MessageTime",
|
|
86059
86064
|
props: { time: {} },
|
|
86060
86065
|
setup(e) {
|
|
86061
|
-
return (t, n) => (X(), Z("div",
|
|
86066
|
+
return (t, n) => (X(), Z("div", eze, J(e.time), 1));
|
|
86062
86067
|
}
|
|
86063
86068
|
}), [["__scopeId", "data-v-4a976e4a"]]);
|
|
86064
86069
|
//#endregion
|
|
86065
86070
|
//#region src/core/components/message/MessageActions.vue?vue&type=script&setup=true&lang.ts
|
|
86066
86071
|
M();
|
|
86067
|
-
var
|
|
86072
|
+
var nze = { class: "msg-actions" }, rze = ["title"], ize = {
|
|
86068
86073
|
key: 0,
|
|
86069
86074
|
viewBox: "0 0 16 16",
|
|
86070
86075
|
fill: "none",
|
|
86071
86076
|
"aria-hidden": "true"
|
|
86072
|
-
},
|
|
86077
|
+
}, aze = {
|
|
86073
86078
|
key: 1,
|
|
86074
86079
|
viewBox: "0 0 16 16",
|
|
86075
86080
|
fill: "none",
|
|
86076
86081
|
"aria-hidden": "true"
|
|
86077
|
-
},
|
|
86082
|
+
}, oze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
86078
86083
|
__name: "MessageActions",
|
|
86079
86084
|
props: {
|
|
86080
86085
|
copied: { type: Boolean },
|
|
@@ -86082,17 +86087,17 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86082
86087
|
},
|
|
86083
86088
|
emits: ["copy", "regenerate"],
|
|
86084
86089
|
setup(e) {
|
|
86085
|
-
return (t, n) => (X(), Z("div",
|
|
86090
|
+
return (t, n) => (X(), Z("div", nze, [Q("button", {
|
|
86086
86091
|
class: zK(["msg-action-btn", { done: e.copied }]),
|
|
86087
86092
|
title: e.copied ? e.messages.copied : e.messages.copy,
|
|
86088
86093
|
onClick: n[0] || (n[0] = (e) => t.$emit("copy"))
|
|
86089
|
-
}, [e.copied ? (X(), Z("svg",
|
|
86094
|
+
}, [e.copied ? (X(), Z("svg", ize, [...n[2] || (n[2] = [Q("path", {
|
|
86090
86095
|
d: "M3 8.5l3 3 7-7",
|
|
86091
86096
|
stroke: "currentColor",
|
|
86092
86097
|
"stroke-width": "1.6",
|
|
86093
86098
|
"stroke-linecap": "round",
|
|
86094
86099
|
"stroke-linejoin": "round"
|
|
86095
|
-
}, null, -1)])])) : (X(), Z("svg",
|
|
86100
|
+
}, null, -1)])])) : (X(), Z("svg", aze, [...n[3] || (n[3] = [Q("rect", {
|
|
86096
86101
|
x: "5.5",
|
|
86097
86102
|
y: "5.5",
|
|
86098
86103
|
width: "8",
|
|
@@ -86104,7 +86109,7 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86104
86109
|
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",
|
|
86105
86110
|
stroke: "currentColor",
|
|
86106
86111
|
"stroke-width": "1.3"
|
|
86107
|
-
}, null, -1)])])), Q("span", null, J(e.copied ? e.messages.copied : e.messages.copy), 1)], 10,
|
|
86112
|
+
}, null, -1)])])), Q("span", null, J(e.copied ? e.messages.copied : e.messages.copy), 1)], 10, rze), Q("button", {
|
|
86108
86113
|
class: "msg-action-btn",
|
|
86109
86114
|
onClick: n[1] || (n[1] = (e) => t.$emit("regenerate"))
|
|
86110
86115
|
}, [n[4] || (n[4] = Q("svg", {
|
|
@@ -86124,19 +86129,19 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86124
86129
|
"stroke-linejoin": "round"
|
|
86125
86130
|
})], -1)), Q("span", null, J(e.messages.regenerate), 1)])]));
|
|
86126
86131
|
}
|
|
86127
|
-
}), [["__scopeId", "data-v-dc051a49"]]),
|
|
86132
|
+
}), [["__scopeId", "data-v-dc051a49"]]), sze = {
|
|
86128
86133
|
key: 1,
|
|
86129
86134
|
class: "avatar-icon",
|
|
86130
86135
|
viewBox: "0 0 1024 1024",
|
|
86131
86136
|
xmlns: "http://www.w3.org/2000/svg",
|
|
86132
86137
|
"aria-hidden": "true"
|
|
86133
|
-
},
|
|
86138
|
+
}, cze = {
|
|
86134
86139
|
key: 2,
|
|
86135
86140
|
class: "avatar-icon",
|
|
86136
86141
|
viewBox: "0 0 1024 1024",
|
|
86137
86142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
86138
86143
|
"aria-hidden": "true"
|
|
86139
|
-
},
|
|
86144
|
+
}, lze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
86140
86145
|
__name: "AvatarIcon",
|
|
86141
86146
|
props: {
|
|
86142
86147
|
role: {},
|
|
@@ -86147,18 +86152,18 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86147
86152
|
key: 0,
|
|
86148
86153
|
icon: e.glyph,
|
|
86149
86154
|
class: "avatar-glyph"
|
|
86150
|
-
}, null, 8, ["icon"])) : e.role === "user" ? (X(), Z("svg",
|
|
86155
|
+
}, null, 8, ["icon"])) : e.role === "user" ? (X(), Z("svg", sze, [...n[0] || (n[0] = [Q("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)])])) : (X(), Z("svg", cze, [...n[1] || (n[1] = [Q("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)])]));
|
|
86151
86156
|
}
|
|
86152
|
-
}), [["__scopeId", "data-v-a0b508ea"]]),
|
|
86157
|
+
}), [["__scopeId", "data-v-a0b508ea"]]), uze = ["data-msg-idx"], dze = {
|
|
86153
86158
|
key: 0,
|
|
86154
86159
|
class: "message-avatar"
|
|
86155
|
-
},
|
|
86160
|
+
}, fze = { class: "message-content" }, pze = {
|
|
86156
86161
|
key: 2,
|
|
86157
86162
|
class: "msg-focuses"
|
|
86158
|
-
},
|
|
86163
|
+
}, mze = ["title", "onClick"], hze = ["data-img-count"], gze = ["href", "title"], _ze = ["src", "alt"], vze = {
|
|
86159
86164
|
key: 1,
|
|
86160
86165
|
class: "msg-image-lost"
|
|
86161
|
-
},
|
|
86166
|
+
}, yze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
86162
86167
|
__name: "MessageRow",
|
|
86163
86168
|
props: {
|
|
86164
86169
|
message: {},
|
|
@@ -86181,33 +86186,35 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86181
86186
|
let t = e, n = H7(), r = BX(() => t.message.role === "assistant"), i = BX(() => {
|
|
86182
86187
|
var e;
|
|
86183
86188
|
return r.value && "reasoning" in t.message ? (e = t.message.reasoning) == null ? "" : e : "";
|
|
86184
|
-
}), a = BX(() => {
|
|
86189
|
+
}), a = BX(() => r.value && "reasoningTotal" in t.message ? t.message.reasoningTotal : void 0), o = BX(() => {
|
|
86185
86190
|
var e;
|
|
86186
86191
|
return r.value && "steps" in t.message ? (e = t.message.steps) == null ? [] : e : [];
|
|
86187
|
-
}),
|
|
86188
|
-
return (t,
|
|
86189
|
-
var
|
|
86192
|
+
}), s = BX(() => r.value && !!t.message.content && !t.loading && t.isLast), c = BX(() => r.value && t.loading && t.isLast && !!t.message.content);
|
|
86193
|
+
return (t, l) => {
|
|
86194
|
+
var u, d;
|
|
86190
86195
|
return X(), Z("div", {
|
|
86191
86196
|
class: zK(["message-row", e.message.role]),
|
|
86192
86197
|
"data-msg-idx": e.index
|
|
86193
|
-
}, [e.showAvatar ? (X(), Z("div",
|
|
86198
|
+
}, [e.showAvatar ? (X(), Z("div", dze, [bX(lze, {
|
|
86194
86199
|
role: e.message.role,
|
|
86195
86200
|
glyph: e.message.role === "user" ? Y(n).icons.userAvatar : Y(n).icons.assistantAvatar
|
|
86196
|
-
}, null, 8, ["role", "glyph"])])) : $("", !0), Q("div",
|
|
86201
|
+
}, null, 8, ["role", "glyph"])])) : $("", !0), Q("div", fze, [
|
|
86197
86202
|
r.value ? (X(), hX(bIe, {
|
|
86198
86203
|
key: 0,
|
|
86199
86204
|
text: i.value,
|
|
86205
|
+
total: a.value,
|
|
86200
86206
|
expanded: e.reasoningExpanded,
|
|
86201
86207
|
running: e.loading && e.isLast,
|
|
86202
|
-
onToggle:
|
|
86208
|
+
onToggle: l[0] || (l[0] = (e) => t.$emit("toggle-reasoning"))
|
|
86203
86209
|
}, null, 8, [
|
|
86204
86210
|
"text",
|
|
86211
|
+
"total",
|
|
86205
86212
|
"expanded",
|
|
86206
86213
|
"running"
|
|
86207
86214
|
])) : $("", !0),
|
|
86208
|
-
r.value ? (X(), hX(
|
|
86215
|
+
r.value ? (X(), hX(ZIe, {
|
|
86209
86216
|
key: 1,
|
|
86210
|
-
steps:
|
|
86217
|
+
steps: o.value,
|
|
86211
86218
|
icons: Y(n).icons,
|
|
86212
86219
|
messages: Y(n).messages
|
|
86213
86220
|
}, null, 8, [
|
|
@@ -86215,13 +86222,13 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86215
86222
|
"icons",
|
|
86216
86223
|
"messages"
|
|
86217
86224
|
])) : $("", !0),
|
|
86218
|
-
e.message.role === "user" && (
|
|
86225
|
+
e.message.role === "user" && (u = e.message.focuses) != null && u.length ? (X(), Z("div", pze, [(X(!0), Z(oX, null, gY(e.message.focuses, (e) => (X(), Z("span", {
|
|
86219
86226
|
key: e.path,
|
|
86220
86227
|
class: "msg-focus-chip",
|
|
86221
86228
|
title: Y(n).messages.historyFocusChipTitlePrefix + e.path,
|
|
86222
86229
|
onClick: (t) => Y(n).focusChipClick(e)
|
|
86223
|
-
}, [bX(v9, { icon: Y(n).icons.focus }, null, 8, ["icon"]), SX(" " + J(e.path), 1)], 8,
|
|
86224
|
-
e.message.role === "user" && (
|
|
86230
|
+
}, [bX(v9, { icon: Y(n).icons.focus }, null, 8, ["icon"]), SX(" " + J(e.path), 1)], 8, mze))), 128))])) : $("", !0),
|
|
86231
|
+
e.message.role === "user" && (d = e.message.images) != null && d.length ? (X(), Z("div", {
|
|
86225
86232
|
key: 3,
|
|
86226
86233
|
class: "msg-images",
|
|
86227
86234
|
"data-img-count": e.message.images.length
|
|
@@ -86237,15 +86244,15 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86237
86244
|
class: "msg-image-thumb",
|
|
86238
86245
|
src: e.thumb || e.dataUri,
|
|
86239
86246
|
alt: e.name || Y(n).messages.imageAlt
|
|
86240
|
-
}, null, 8,
|
|
86241
|
-
!r.value || e.message.content || e.isPendingAssistant ? (X(), hX(
|
|
86247
|
+
}, null, 8, _ze)) : (X(), Z("span", vze, "🖼️"))], 8, gze))), 128))], 8, hze)) : $("", !0),
|
|
86248
|
+
!r.value || e.message.content || e.isPendingAssistant ? (X(), hX($Re, {
|
|
86242
86249
|
key: 4,
|
|
86243
86250
|
messages: Y(n).messages,
|
|
86244
86251
|
content: e.message.content,
|
|
86245
86252
|
role: e.message.role,
|
|
86246
86253
|
"is-pending-assistant": e.isPendingAssistant,
|
|
86247
86254
|
"show-typing": e.showTyping,
|
|
86248
|
-
"show-cursor":
|
|
86255
|
+
"show-cursor": c.value
|
|
86249
86256
|
}, null, 8, [
|
|
86250
86257
|
"messages",
|
|
86251
86258
|
"content",
|
|
@@ -86254,30 +86261,30 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86254
86261
|
"show-typing",
|
|
86255
86262
|
"show-cursor"
|
|
86256
86263
|
])) : $("", !0),
|
|
86257
|
-
bX(
|
|
86258
|
-
|
|
86264
|
+
bX(tze, { time: e.time }, null, 8, ["time"]),
|
|
86265
|
+
s.value ? (X(), hX(oze, {
|
|
86259
86266
|
key: 5,
|
|
86260
86267
|
messages: Y(n).messages,
|
|
86261
86268
|
copied: e.copied,
|
|
86262
|
-
onCopy:
|
|
86263
|
-
onRegenerate:
|
|
86269
|
+
onCopy: l[1] || (l[1] = (e) => t.$emit("copy")),
|
|
86270
|
+
onRegenerate: l[2] || (l[2] = (e) => t.$emit("regenerate"))
|
|
86264
86271
|
}, null, 8, ["messages", "copied"])) : $("", !0)
|
|
86265
|
-
])], 10,
|
|
86272
|
+
])], 10, uze);
|
|
86266
86273
|
};
|
|
86267
86274
|
}
|
|
86268
|
-
}), [["__scopeId", "data-v-
|
|
86275
|
+
}), [["__scopeId", "data-v-dc92d354"]]), bze = { class: "chat-body" }, xze = {
|
|
86269
86276
|
key: 0,
|
|
86270
86277
|
class: "empty-state"
|
|
86271
|
-
},
|
|
86278
|
+
}, Sze = { class: "empty-icon" }, Cze = {
|
|
86272
86279
|
key: 1,
|
|
86273
86280
|
class: "message-row assistant"
|
|
86274
|
-
},
|
|
86281
|
+
}, wze = {
|
|
86275
86282
|
key: 0,
|
|
86276
86283
|
class: "message-avatar"
|
|
86277
|
-
},
|
|
86284
|
+
}, Tze = { class: "message-content" }, Eze = {
|
|
86278
86285
|
key: 2,
|
|
86279
86286
|
class: "error-bar"
|
|
86280
|
-
},
|
|
86287
|
+
}, Dze = { class: "error-text" }, Oze = ["title"], kze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
86281
86288
|
__name: "MessageList",
|
|
86282
86289
|
props: {
|
|
86283
86290
|
showAvatar: { type: Boolean },
|
|
@@ -86288,9 +86295,9 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86288
86295
|
var e;
|
|
86289
86296
|
return ((e = f.messages[f.messages.length - 1]) == null ? void 0 : e.role) === "assistant";
|
|
86290
86297
|
});
|
|
86291
|
-
return (t, v) => (X(), Z("div",
|
|
86292
|
-
h.value ? $("", !0) : (X(), Z("div",
|
|
86293
|
-
(X(!0), Z(oX, null, gY(Y(f).messages, (t, c) => (X(), hX(
|
|
86298
|
+
return (t, v) => (X(), Z("div", bze, [
|
|
86299
|
+
h.value ? $("", !0) : (X(), Z("div", xze, [Q("div", Sze, [bX(v9, { icon: Y(u).empty }, null, 8, ["icon"])]), Q("p", null, [bX(y9, { text: Y(d).emptyGreeting }, null, 8, ["text"])])])),
|
|
86300
|
+
(X(!0), Z(oX, null, gY(Y(f).messages, (t, c) => (X(), hX(yze, {
|
|
86294
86301
|
key: c,
|
|
86295
86302
|
message: t,
|
|
86296
86303
|
index: c,
|
|
@@ -86320,10 +86327,10 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86320
86327
|
"onCopy",
|
|
86321
86328
|
"onRegenerate"
|
|
86322
86329
|
]))), 128)),
|
|
86323
|
-
Y(f).loading && !_.value ? (X(), Z("div",
|
|
86330
|
+
Y(f).loading && !_.value ? (X(), Z("div", Cze, [e.showAvatar ? (X(), Z("div", wze, [bX(lze, {
|
|
86324
86331
|
role: "assistant",
|
|
86325
86332
|
glyph: Y(u).assistantAvatar
|
|
86326
|
-
}, null, 8, ["glyph"])])) : $("", !0), Q("div",
|
|
86333
|
+
}, null, 8, ["glyph"])])) : $("", !0), Q("div", Tze, [bX($Re, {
|
|
86327
86334
|
content: "",
|
|
86328
86335
|
role: "assistant",
|
|
86329
86336
|
"is-pending-assistant": !0,
|
|
@@ -86331,8 +86338,8 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86331
86338
|
"show-cursor": !1,
|
|
86332
86339
|
messages: Y(d)
|
|
86333
86340
|
}, null, 8, ["show-typing", "messages"])])])) : $("", !0),
|
|
86334
|
-
Y(f).error ? (X(), Z("div",
|
|
86335
|
-
Q("span",
|
|
86341
|
+
Y(f).error ? (X(), Z("div", Eze, [
|
|
86342
|
+
Q("span", Dze, J(Y(f).error), 1),
|
|
86336
86343
|
g.value ? (X(), Z("button", {
|
|
86337
86344
|
key: 0,
|
|
86338
86345
|
class: "retry-btn",
|
|
@@ -86343,61 +86350,61 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86343
86350
|
class: "undo-btn",
|
|
86344
86351
|
title: Y(d).undoTitle,
|
|
86345
86352
|
onClick: v[1] || (v[1] = (...e) => Y(l) && Y(l)(...e))
|
|
86346
|
-
}, [bX(y9, { text: Y(d).undo }, null, 8, ["text"])], 8,
|
|
86353
|
+
}, [bX(y9, { text: Y(d).undo }, null, 8, ["text"])], 8, Oze)) : $("", !0)
|
|
86347
86354
|
])) : $("", !0)
|
|
86348
86355
|
]));
|
|
86349
86356
|
}
|
|
86350
|
-
}), [["__scopeId", "data-v-113939bc"]]),
|
|
86357
|
+
}), [["__scopeId", "data-v-113939bc"]]), Aze = {
|
|
86351
86358
|
key: 0,
|
|
86352
86359
|
class: "queued-bar"
|
|
86353
|
-
},
|
|
86360
|
+
}, jze = { class: "queued-head" }, Mze = { class: "queued-icon" }, Nze = { class: "queued-title" }, Pze = { class: "queued-count" }, Fze = { class: "queued-idx" }, Ize = { class: "queued-text" }, Lze = ["title", "onClick"], Rze = ["title", "onClick"], zze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
86354
86361
|
__name: "QueuedBar",
|
|
86355
86362
|
setup(e) {
|
|
86356
86363
|
let { chat: t, editQueued: n, icons: r, messages: i } = H7(), { queuedTasks: a, removeQueuedTask: o } = t;
|
|
86357
|
-
return (e, t) => Y(a).length ? (X(), Z("div",
|
|
86358
|
-
Q("span",
|
|
86359
|
-
Q("span",
|
|
86360
|
-
Q("span",
|
|
86364
|
+
return (e, t) => Y(a).length ? (X(), Z("div", Aze, [Q("div", jze, [
|
|
86365
|
+
Q("span", Mze, [bX(v9, { icon: Y(r).queued }, null, 8, ["icon"])]),
|
|
86366
|
+
Q("span", Nze, J(Y(i).queuedTitle), 1),
|
|
86367
|
+
Q("span", Pze, J(Y(a).length), 1)
|
|
86361
86368
|
]), (X(!0), Z(oX, null, gY(Y(a), (e, t) => (X(), Z("div", {
|
|
86362
86369
|
key: t,
|
|
86363
86370
|
class: "queued-item"
|
|
86364
86371
|
}, [
|
|
86365
|
-
Q("span",
|
|
86366
|
-
Q("span",
|
|
86372
|
+
Q("span", Fze, J(t + 1), 1),
|
|
86373
|
+
Q("span", Ize, J(e), 1),
|
|
86367
86374
|
Q("button", {
|
|
86368
86375
|
class: "queued-act",
|
|
86369
86376
|
title: Y(i).queuedEditTitle,
|
|
86370
86377
|
onClick: (e) => Y(n)(t)
|
|
86371
|
-
}, [bX(v9, { icon: Y(r).queuedEdit }, null, 8, ["icon"])], 8,
|
|
86378
|
+
}, [bX(v9, { icon: Y(r).queuedEdit }, null, 8, ["icon"])], 8, Lze),
|
|
86372
86379
|
Q("button", {
|
|
86373
86380
|
class: "queued-act queued-del",
|
|
86374
86381
|
title: Y(i).removeQueuedTitle,
|
|
86375
86382
|
onClick: (e) => Y(o)(t)
|
|
86376
|
-
}, "✕", 8,
|
|
86383
|
+
}, "✕", 8, Rze)
|
|
86377
86384
|
]))), 128))])) : $("", !0);
|
|
86378
86385
|
}
|
|
86379
|
-
}), [["__scopeId", "data-v-02414fc9"]]),
|
|
86386
|
+
}), [["__scopeId", "data-v-02414fc9"]]), Bze = {
|
|
86380
86387
|
key: 0,
|
|
86381
86388
|
class: "approval-bar"
|
|
86382
|
-
},
|
|
86389
|
+
}, Vze = { class: "approval-head" }, Hze = { class: "approval-title" }, Uze = {
|
|
86383
86390
|
key: 0,
|
|
86384
86391
|
class: "approval-question"
|
|
86385
|
-
},
|
|
86392
|
+
}, Wze = {
|
|
86386
86393
|
key: 1,
|
|
86387
86394
|
class: "approval-context"
|
|
86388
|
-
},
|
|
86395
|
+
}, Gze = {
|
|
86389
86396
|
key: 2,
|
|
86390
86397
|
class: "approval-recommend"
|
|
86391
|
-
},
|
|
86398
|
+
}, Kze = {
|
|
86392
86399
|
key: 3,
|
|
86393
86400
|
class: "approval-options"
|
|
86394
|
-
},
|
|
86401
|
+
}, qze = ["onClick"], Jze = { class: "approval-actions" }, Yze = { class: "approval-head" }, Xze = { class: "approval-title" }, Zze = {
|
|
86395
86402
|
key: 0,
|
|
86396
86403
|
class: "approval-args"
|
|
86397
|
-
},
|
|
86404
|
+
}, Qze = {
|
|
86398
86405
|
key: 1,
|
|
86399
86406
|
class: "approval-plan-context"
|
|
86400
|
-
},
|
|
86407
|
+
}, $ze = { class: "approval-actions" }, eBe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
86401
86408
|
__name: "ApprovalBar",
|
|
86402
86409
|
setup(e) {
|
|
86403
86410
|
let t = H7(), { pendingApproval: n, resolveApproval: r } = t.chat, i = t.messages, a = t.planConfirmation, o = /* @__PURE__ */ Xq(!1);
|
|
@@ -86424,17 +86431,17 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86424
86431
|
});
|
|
86425
86432
|
return (e, u) => {
|
|
86426
86433
|
var d, f, p;
|
|
86427
|
-
return Y(n) ? (X(), Z("div",
|
|
86428
|
-
Q("div",
|
|
86429
|
-
(d = Y(n).args) != null && d.question ? (X(), Z("div",
|
|
86430
|
-
(f = Y(n).args) != null && f.context ? (X(), Z("div",
|
|
86431
|
-
(p = Y(n).args) != null && p.recommendation ? (X(), Z("div",
|
|
86432
|
-
c.value.length ? (X(), Z("div",
|
|
86434
|
+
return Y(n) ? (X(), Z("div", Bze, [s.value ? (X(), Z(oX, { key: 0 }, [
|
|
86435
|
+
Q("div", Vze, [u[5] || (u[5] = Q("span", { class: "approval-icon" }, "❓", -1)), Q("span", Hze, J(Y(i).humanConfirmTitle), 1)]),
|
|
86436
|
+
(d = Y(n).args) != null && d.question ? (X(), Z("div", Uze, J(Y(n).args.question), 1)) : $("", !0),
|
|
86437
|
+
(f = Y(n).args) != null && f.context ? (X(), Z("div", Wze, J(Y(n).args.context), 1)) : $("", !0),
|
|
86438
|
+
(p = Y(n).args) != null && p.recommendation ? (X(), Z("div", Gze, [bX(v9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), SX(J(Y(i).recommendPrefix) + J(Y(n).args.recommendation), 1)])) : $("", !0),
|
|
86439
|
+
c.value.length ? (X(), Z("div", Kze, [(X(!0), Z(oX, null, gY(c.value, (e) => (X(), Z("button", {
|
|
86433
86440
|
key: e,
|
|
86434
86441
|
class: "approval-opt",
|
|
86435
86442
|
onClick: (t) => Y(r)(e)
|
|
86436
|
-
}, J(e), 9,
|
|
86437
|
-
Q("div",
|
|
86443
|
+
}, J(e), 9, qze))), 128))])) : $("", !0),
|
|
86444
|
+
Q("div", Jze, [Q("button", {
|
|
86438
86445
|
class: "approval-deny",
|
|
86439
86446
|
onClick: u[0] || (u[0] = (e) => Y(r)(!1))
|
|
86440
86447
|
}, [bX(y9, { text: Y(i).deny }, null, 8, ["text"])]), c.value.length ? $("", !0) : (X(), Z("button", {
|
|
@@ -86443,18 +86450,18 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86443
86450
|
onClick: u[1] || (u[1] = (e) => Y(r)(!0))
|
|
86444
86451
|
}, [bX(y9, { text: Y(i).approve }, null, 8, ["text"])]))])
|
|
86445
86452
|
], 64)) : (X(), Z(oX, { key: 1 }, [
|
|
86446
|
-
Q("div",
|
|
86453
|
+
Q("div", Yze, [
|
|
86447
86454
|
u[6] || (u[6] = Q("span", { class: "approval-icon" }, "✋", -1)),
|
|
86448
|
-
Q("span",
|
|
86455
|
+
Q("span", Xze, [SX(J(Y(i).toolConfirmPrefix), 1), Q("code", null, J(Y(n).toolName), 1)]),
|
|
86449
86456
|
l.value ? (X(), Z("button", {
|
|
86450
86457
|
key: 0,
|
|
86451
86458
|
class: "approval-toggle",
|
|
86452
86459
|
onClick: u[2] || (u[2] = (e) => o.value = !o.value)
|
|
86453
86460
|
}, J(o.value ? Y(i).collapseArgs : Y(i).viewArgs) + J(o.value ? " ▴" : " ▾"), 1)) : $("", !0)
|
|
86454
86461
|
]),
|
|
86455
|
-
l.value && o.value ? (X(), Z("pre",
|
|
86456
|
-
Y(a) ? (X(), Z("div",
|
|
86457
|
-
Q("div",
|
|
86462
|
+
l.value && o.value ? (X(), Z("pre", Zze, J(l.value), 1)) : $("", !0),
|
|
86463
|
+
Y(a) ? (X(), Z("div", Qze, [bX(v9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), SX(J(Y(i).planConfirmedPrefix) + J(Y(a).choice) + J(Y(i).planConfirmedSuffix), 1)])) : $("", !0),
|
|
86464
|
+
Q("div", $ze, [Q("button", {
|
|
86458
86465
|
class: "approval-deny",
|
|
86459
86466
|
onClick: u[3] || (u[3] = (e) => Y(r)(!1))
|
|
86460
86467
|
}, [bX(y9, { text: Y(i).deny }, null, 8, ["text"])]), Q("button", {
|
|
@@ -86468,13 +86475,13 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
|
|
|
86468
86475
|
//#endregion
|
|
86469
86476
|
//#region src/core/components/ConflictBar.vue?vue&type=script&setup=true&lang.ts
|
|
86470
86477
|
M();
|
|
86471
|
-
var
|
|
86478
|
+
var tBe = {
|
|
86472
86479
|
key: 0,
|
|
86473
86480
|
class: "conflict-bar"
|
|
86474
|
-
},
|
|
86481
|
+
}, nBe = { class: "conflict-head" }, rBe = { class: "conflict-icon" }, iBe = { class: "conflict-title" }, aBe = { class: "conflict-detail" }, oBe = {
|
|
86475
86482
|
key: 0,
|
|
86476
86483
|
class: "conflict-diff"
|
|
86477
|
-
},
|
|
86484
|
+
}, sBe = { class: "conflict-diff-col" }, cBe = { class: "conflict-diff-label" }, lBe = { class: "conflict-diff-pre" }, uBe = { class: "conflict-diff-col" }, dBe = { class: "conflict-diff-label" }, fBe = { class: "conflict-diff-pre" }, pBe = { class: "conflict-actions" }, mBe = ["title"], hBe = ["title"], gBe = ["title"], _Be = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
86478
86485
|
__name: "ConflictBar",
|
|
86479
86486
|
props: {
|
|
86480
86487
|
pendingConflict: {},
|
|
@@ -86508,19 +86515,19 @@ var eBe = {
|
|
|
86508
86515
|
return String(n);
|
|
86509
86516
|
}
|
|
86510
86517
|
});
|
|
86511
|
-
return (t, a) => e.pendingConflict ? (X(), Z("div",
|
|
86512
|
-
Q("div",
|
|
86518
|
+
return (t, a) => e.pendingConflict ? (X(), Z("div", tBe, [
|
|
86519
|
+
Q("div", nBe, [Q("span", rBe, [bX(v9, { icon: e.icons.conflict }, null, 8, ["icon"])]), Q("span", iBe, [
|
|
86513
86520
|
SX(J(e.messages.conflictTitlePrefix), 1),
|
|
86514
86521
|
Q("code", null, J(e.pendingConflict.path), 1),
|
|
86515
86522
|
SX(J(e.messages.conflictTitleSuffix), 1)
|
|
86516
86523
|
])]),
|
|
86517
|
-
Q("div",
|
|
86524
|
+
Q("div", aBe, J(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
|
|
86518
86525
|
Q("button", {
|
|
86519
86526
|
class: "conflict-toggle",
|
|
86520
86527
|
onClick: a[0] || (a[0] = (e) => n.value = !n.value)
|
|
86521
86528
|
}, J(n.value ? e.messages.collapseDiff : e.messages.viewDiff) + J(n.value ? " ▴" : " ▾"), 1),
|
|
86522
|
-
n.value ? (X(), Z("div",
|
|
86523
|
-
Q("div",
|
|
86529
|
+
n.value ? (X(), Z("div", oBe, [Q("div", sBe, [Q("div", cBe, J(e.messages.agentValueLabel), 1), Q("pre", lBe, J(r.value || e.messages.deleteNoValue), 1)]), Q("div", uBe, [Q("div", dBe, J(e.messages.currentValueLabel), 1), Q("pre", fBe, J(i.value), 1)])])) : $("", !0),
|
|
86530
|
+
Q("div", pBe, [
|
|
86524
86531
|
Q("button", {
|
|
86525
86532
|
class: "conflict-keep",
|
|
86526
86533
|
onClick: a[1] || (a[1] = (t) => {
|
|
@@ -86528,7 +86535,7 @@ var eBe = {
|
|
|
86528
86535
|
return (n = e.onResolve) == null ? void 0 : n.call(e, "keep_external");
|
|
86529
86536
|
}),
|
|
86530
86537
|
title: e.messages.keepExternalTitle
|
|
86531
|
-
}, [bX(y9, { text: e.messages.keepExternal }, null, 8, ["text"])], 8,
|
|
86538
|
+
}, [bX(y9, { text: e.messages.keepExternal }, null, 8, ["text"])], 8, mBe),
|
|
86532
86539
|
Q("button", {
|
|
86533
86540
|
class: "conflict-overwrite",
|
|
86534
86541
|
onClick: a[2] || (a[2] = (t) => {
|
|
@@ -86536,7 +86543,7 @@ var eBe = {
|
|
|
86536
86543
|
return (n = e.onResolve) == null ? void 0 : n.call(e, "overwrite");
|
|
86537
86544
|
}),
|
|
86538
86545
|
title: e.messages.overwriteTitle
|
|
86539
|
-
}, [bX(y9, { text: e.messages.overwrite }, null, 8, ["text"])], 8,
|
|
86546
|
+
}, [bX(y9, { text: e.messages.overwrite }, null, 8, ["text"])], 8, hBe),
|
|
86540
86547
|
Q("button", {
|
|
86541
86548
|
class: "conflict-restore",
|
|
86542
86549
|
onClick: a[3] || (a[3] = (t) => {
|
|
@@ -86544,28 +86551,28 @@ var eBe = {
|
|
|
86544
86551
|
return (n = e.onResolve) == null ? void 0 : n.call(e, "restore");
|
|
86545
86552
|
}),
|
|
86546
86553
|
title: e.messages.restoreTitle
|
|
86547
|
-
}, [bX(y9, { text: e.messages.restore }, null, 8, ["text"])], 8,
|
|
86554
|
+
}, [bX(y9, { text: e.messages.restore }, null, 8, ["text"])], 8, gBe)
|
|
86548
86555
|
])
|
|
86549
86556
|
])) : $("", !0);
|
|
86550
86557
|
}
|
|
86551
|
-
}), [["__scopeId", "data-v-36dda58c"]]),
|
|
86558
|
+
}), [["__scopeId", "data-v-36dda58c"]]), vBe = { class: "chat-footer" }, yBe = ["title"], bBe = {
|
|
86552
86559
|
key: 0,
|
|
86553
86560
|
class: "drop-hint"
|
|
86554
|
-
},
|
|
86561
|
+
}, xBe = {
|
|
86555
86562
|
key: 1,
|
|
86556
86563
|
class: "chip-stack"
|
|
86557
|
-
},
|
|
86564
|
+
}, SBe = {
|
|
86558
86565
|
key: 0,
|
|
86559
86566
|
class: "focus-chips"
|
|
86560
|
-
},
|
|
86567
|
+
}, CBe = ["title", "onClick"], wBe = { class: "focus-chip-icon" }, TBe = { class: "focus-chip-path" }, EBe = ["title", "onClick"], DBe = {
|
|
86561
86568
|
key: 1,
|
|
86562
86569
|
class: "img-chips",
|
|
86563
86570
|
"data-test": "img-chips"
|
|
86564
|
-
},
|
|
86571
|
+
}, OBe = ["title"], kBe = ["src", "alt"], ABe = ["onClick"], jBe = {
|
|
86565
86572
|
key: 2,
|
|
86566
86573
|
class: "img-error",
|
|
86567
86574
|
"data-test": "img-error"
|
|
86568
|
-
},
|
|
86575
|
+
}, MBe = ["placeholder", "rows"], NBe = { class: "input-actions" }, PBe = { class: "send-hint" }, FBe = ["title"], IBe = {
|
|
86569
86576
|
key: 1,
|
|
86570
86577
|
width: "15",
|
|
86571
86578
|
height: "15",
|
|
@@ -86575,13 +86582,13 @@ var eBe = {
|
|
|
86575
86582
|
"stroke-width": "2",
|
|
86576
86583
|
"stroke-linecap": "round",
|
|
86577
86584
|
"stroke-linejoin": "round"
|
|
86578
|
-
},
|
|
86585
|
+
}, LBe = ["disabled", "title"], RBe = {
|
|
86579
86586
|
key: 0,
|
|
86580
86587
|
width: "16",
|
|
86581
86588
|
height: "16",
|
|
86582
86589
|
viewBox: "0 0 24 24",
|
|
86583
86590
|
fill: "currentColor"
|
|
86584
|
-
},
|
|
86591
|
+
}, zBe = {
|
|
86585
86592
|
key: 2,
|
|
86586
86593
|
width: "18",
|
|
86587
86594
|
height: "18",
|
|
@@ -86589,7 +86596,7 @@ var eBe = {
|
|
|
86589
86596
|
fill: "none",
|
|
86590
86597
|
stroke: "currentColor",
|
|
86591
86598
|
"stroke-width": "2"
|
|
86592
|
-
},
|
|
86599
|
+
}, BBe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
86593
86600
|
__name: "ChatInput",
|
|
86594
86601
|
props: {
|
|
86595
86602
|
placeholder: {},
|
|
@@ -86618,36 +86625,36 @@ var eBe = {
|
|
|
86618
86625
|
}
|
|
86619
86626
|
r.length && h(r);
|
|
86620
86627
|
};
|
|
86621
|
-
return (t, h) => (X(), Z("div",
|
|
86628
|
+
return (t, h) => (X(), Z("div", vBe, [Y(a) ? (X(), Z("button", {
|
|
86622
86629
|
key: 0,
|
|
86623
86630
|
class: "undo-foot-btn",
|
|
86624
86631
|
title: Y(d).undoTitle,
|
|
86625
86632
|
onClick: h[0] || (h[0] = (...e) => Y(o) && Y(o)(...e))
|
|
86626
|
-
}, J(Y(d).undo), 9,
|
|
86633
|
+
}, J(Y(d).undo), 9, yBe)) : $("", !0), Q("div", {
|
|
86627
86634
|
class: zK(["chat-input-wrap", { "drag-over": b.value }]),
|
|
86628
86635
|
onDragover: h[4] || (h[4] = DZ((e) => b.value = !0, ["prevent"])),
|
|
86629
86636
|
onDragleave: h[5] || (h[5] = (e) => b.value = !1),
|
|
86630
86637
|
onDrop: DZ(C, ["prevent"])
|
|
86631
86638
|
}, [
|
|
86632
|
-
b.value ? (X(), Z("div",
|
|
86633
|
-
Y(s).length || Y(m).length || Y(_) ? (X(), Z("div",
|
|
86634
|
-
Y(s).length ? (X(), Z("div",
|
|
86639
|
+
b.value ? (X(), Z("div", bBe, J(Y(d).imageDropHint), 1)) : $("", !0),
|
|
86640
|
+
Y(s).length || Y(m).length || Y(_) ? (X(), Z("div", xBe, [
|
|
86641
|
+
Y(s).length ? (X(), Z("div", SBe, [(X(!0), Z(oX, null, gY(Y(s), (e) => (X(), Z("span", {
|
|
86635
86642
|
key: e.path,
|
|
86636
86643
|
class: "focus-chip",
|
|
86637
86644
|
title: Y(d).focusChipTitlePrefix + e.path + Y(d).focusChipTitleHint,
|
|
86638
86645
|
onClick: (t) => Y(l)(e)
|
|
86639
86646
|
}, [
|
|
86640
|
-
Q("span",
|
|
86641
|
-
Q("code",
|
|
86647
|
+
Q("span", wBe, [bX(v9, { icon: Y(u).focus }, null, 8, ["icon"])]),
|
|
86648
|
+
Q("code", TBe, J(e.path), 1),
|
|
86642
86649
|
Q("button", {
|
|
86643
86650
|
type: "button",
|
|
86644
86651
|
class: "focus-chip-x",
|
|
86645
86652
|
"data-test": "focus-clear",
|
|
86646
86653
|
title: Y(d).removeFocus,
|
|
86647
86654
|
onClick: DZ((t) => Y(c)(e.path), ["stop"])
|
|
86648
|
-
}, "✕", 8,
|
|
86649
|
-
], 8,
|
|
86650
|
-
Y(m).length ? (X(), Z("div",
|
|
86655
|
+
}, "✕", 8, EBe)
|
|
86656
|
+
], 8, CBe))), 128))])) : $("", !0),
|
|
86657
|
+
Y(m).length ? (X(), Z("div", DBe, [(X(!0), Z(oX, null, gY(Y(m), (e) => (X(), Z("span", {
|
|
86651
86658
|
key: e.id,
|
|
86652
86659
|
class: "img-chip",
|
|
86653
86660
|
title: e.name || Y(d).imageAlt
|
|
@@ -86655,13 +86662,13 @@ var eBe = {
|
|
|
86655
86662
|
class: "img-chip-thumb",
|
|
86656
86663
|
src: e.dataUri,
|
|
86657
86664
|
alt: e.name || Y(d).imageAlt
|
|
86658
|
-
}, null, 8,
|
|
86665
|
+
}, null, 8, kBe), Q("button", {
|
|
86659
86666
|
type: "button",
|
|
86660
86667
|
class: "img-chip-x",
|
|
86661
86668
|
"data-test": "img-chip-x",
|
|
86662
86669
|
onClick: (t) => Y(g)(e.id)
|
|
86663
|
-
}, "✕", 8,
|
|
86664
|
-
Y(_) ? (X(), Z("div",
|
|
86670
|
+
}, "✕", 8, ABe)], 8, OBe))), 128))])) : $("", !0),
|
|
86671
|
+
Y(_) ? (X(), Z("div", jBe, J(Y(_)), 1)) : $("", !0)
|
|
86665
86672
|
])) : $("", !0),
|
|
86666
86673
|
EJ(Q("textarea", {
|
|
86667
86674
|
"onUpdate:modelValue": h[1] || (h[1] = (e) => /* @__PURE__ */ Yq(n) ? n.value = e : null),
|
|
@@ -86670,9 +86677,9 @@ var eBe = {
|
|
|
86670
86677
|
rows: e.inputRows,
|
|
86671
86678
|
onKeydown: h[2] || (h[2] = (...e) => Y(i) && Y(i)(...e)),
|
|
86672
86679
|
onPaste: w
|
|
86673
|
-
}, null, 40,
|
|
86674
|
-
Q("div",
|
|
86675
|
-
Q("span",
|
|
86680
|
+
}, null, 40, MBe), [[EZ, Y(n)]]),
|
|
86681
|
+
Q("div", NBe, [
|
|
86682
|
+
Q("span", PBe, J(Y(d).sendHint), 1),
|
|
86676
86683
|
Q("button", {
|
|
86677
86684
|
class: "attach-btn",
|
|
86678
86685
|
title: Y(d).attachImageTitle,
|
|
@@ -86681,7 +86688,7 @@ var eBe = {
|
|
|
86681
86688
|
}, [Y(u).attachImage ? (X(), hX(v9, {
|
|
86682
86689
|
key: 0,
|
|
86683
86690
|
icon: Y(u).attachImage
|
|
86684
|
-
}, null, 8, ["icon"])) : (X(), Z("svg",
|
|
86691
|
+
}, null, 8, ["icon"])) : (X(), Z("svg", IBe, [...h[6] || (h[6] = [Q("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" }, null, -1)])]))], 8, FBe),
|
|
86685
86692
|
Q("input", {
|
|
86686
86693
|
ref_key: "fileInput",
|
|
86687
86694
|
ref: y,
|
|
@@ -86697,7 +86704,7 @@ var eBe = {
|
|
|
86697
86704
|
disabled: !Y(f).loading && !Y(n).trim() && !Y(m).length && !Y(v),
|
|
86698
86705
|
title: Y(f).loading ? Y(d).stopTitle : Y(d).sendTitle,
|
|
86699
86706
|
onClick: h[3] || (h[3] = (e) => Y(f).loading ? Y(p)() : Y(r)())
|
|
86700
|
-
}, [Y(f).loading ? (X(), Z("svg",
|
|
86707
|
+
}, [Y(f).loading ? (X(), Z("svg", RBe, [...h[7] || (h[7] = [Q("rect", {
|
|
86701
86708
|
x: "6",
|
|
86702
86709
|
y: "6",
|
|
86703
86710
|
width: "12",
|
|
@@ -86706,12 +86713,12 @@ var eBe = {
|
|
|
86706
86713
|
}, null, -1)])])) : Y(u).send ? (X(), hX(v9, {
|
|
86707
86714
|
key: 1,
|
|
86708
86715
|
icon: Y(u).send
|
|
86709
|
-
}, null, 8, ["icon"])) : (X(), Z("svg",
|
|
86716
|
+
}, null, 8, ["icon"])) : (X(), Z("svg", zBe, [...h[8] || (h[8] = [Q("line", {
|
|
86710
86717
|
x1: "22",
|
|
86711
86718
|
y1: "2",
|
|
86712
86719
|
x2: "11",
|
|
86713
86720
|
y2: "13"
|
|
86714
|
-
}, null, -1), Q("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)])]))], 10,
|
|
86721
|
+
}, null, -1), Q("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)])]))], 10, LBe)
|
|
86715
86722
|
])
|
|
86716
86723
|
], 34)]));
|
|
86717
86724
|
}
|
|
@@ -86719,178 +86726,178 @@ var eBe = {
|
|
|
86719
86726
|
//#endregion
|
|
86720
86727
|
//#region src/core/components/DebugDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
86721
86728
|
M();
|
|
86722
|
-
var
|
|
86729
|
+
var VBe = {
|
|
86723
86730
|
key: 0,
|
|
86724
86731
|
class: "debug-drawer"
|
|
86725
|
-
},
|
|
86732
|
+
}, HBe = { class: "drawer-header" }, UBe = { class: "tab-group" }, WBe = { class: "header-actions" }, GBe = ["title"], KBe = ["title"], qBe = ["title"], JBe = {
|
|
86726
86733
|
key: 0,
|
|
86727
86734
|
class: "drawer-filters"
|
|
86728
|
-
},
|
|
86735
|
+
}, YBe = ["onClick"], XBe = { class: "chip-count" }, ZBe = { class: "chip-count" }, QBe = {
|
|
86729
86736
|
key: 0,
|
|
86730
86737
|
class: "context-panel"
|
|
86731
|
-
},
|
|
86738
|
+
}, $Be = {
|
|
86732
86739
|
key: 0,
|
|
86733
86740
|
class: "trace-empty"
|
|
86734
|
-
},
|
|
86741
|
+
}, eVe = { class: "ctx-overview" }, tVe = { class: "ctx-occupancy" }, nVe = ["title"], rVe = ["title"], iVe = { class: "ctx-pct" }, aVe = { class: "ctx-kv-row" }, oVe = { class: "ctx-kv" }, sVe = {
|
|
86735
86742
|
key: 0,
|
|
86736
86743
|
class: "ctx-kv"
|
|
86737
|
-
},
|
|
86744
|
+
}, cVe = {
|
|
86738
86745
|
key: 1,
|
|
86739
86746
|
class: "ctx-kv"
|
|
86740
|
-
},
|
|
86747
|
+
}, lVe = { class: "ctx-section-title" }, uVe = ["title"], dVe = { class: "ctx-cat-bar" }, fVe = { class: "ctx-cat-tokens" }, pVe = {
|
|
86741
86748
|
key: 0,
|
|
86742
86749
|
class: "ctx-compression"
|
|
86743
|
-
},
|
|
86750
|
+
}, mVe = { class: "ctx-section-title" }, hVe = { class: "ctx-kv-row" }, gVe = { class: "ctx-kv" }, _Ve = { class: "ctx-kv" }, vVe = { class: "ctx-kv" }, yVe = {
|
|
86744
86751
|
key: 0,
|
|
86745
86752
|
class: "ctx-kv"
|
|
86746
|
-
},
|
|
86753
|
+
}, bVe = {
|
|
86747
86754
|
key: 1,
|
|
86748
86755
|
class: "subagent-panel"
|
|
86749
|
-
},
|
|
86756
|
+
}, xVe = {
|
|
86750
86757
|
key: 0,
|
|
86751
86758
|
class: "sub-section"
|
|
86752
|
-
},
|
|
86759
|
+
}, SVe = { class: "sub-section-title" }, CVe = {
|
|
86753
86760
|
key: 1,
|
|
86754
86761
|
class: "trace-empty"
|
|
86755
|
-
},
|
|
86762
|
+
}, wVe = {
|
|
86756
86763
|
key: 0,
|
|
86757
86764
|
class: "sub-section"
|
|
86758
|
-
},
|
|
86765
|
+
}, TVe = { class: "sub-section-title" }, EVe = { class: "sub-head" }, DVe = { class: "sub-label" }, OVe = { class: "sub-steps-badge" }, kVe = { class: "sub-task" }, AVe = {
|
|
86759
86766
|
key: 1,
|
|
86760
86767
|
class: "sub-section"
|
|
86761
|
-
},
|
|
86768
|
+
}, jVe = { class: "sub-section-title" }, MVe = { class: "sub-head" }, NVe = { class: "sub-label" }, PVe = {
|
|
86762
86769
|
key: 0,
|
|
86763
86770
|
class: "sub-dur"
|
|
86764
|
-
},
|
|
86771
|
+
}, FVe = ["onClick"], IVe = { class: "sub-task" }, LVe = {
|
|
86765
86772
|
key: 0,
|
|
86766
86773
|
class: "sub-result"
|
|
86767
|
-
},
|
|
86774
|
+
}, RVe = {
|
|
86768
86775
|
key: 1,
|
|
86769
86776
|
class: "sub-steps-list"
|
|
86770
|
-
},
|
|
86777
|
+
}, zVe = { class: "sub-step-kind" }, BVe = { class: "sub-step-name" }, VVe = { class: "sub-step-ts" }, HVe = {
|
|
86771
86778
|
key: 0,
|
|
86772
86779
|
class: "empty"
|
|
86773
|
-
},
|
|
86780
|
+
}, UVe = ["onClick"], WVe = { class: "log-group-title" }, GVe = { class: "log-group-meta" }, KVe = {
|
|
86774
86781
|
key: 0,
|
|
86775
86782
|
class: "lg-badge"
|
|
86776
|
-
},
|
|
86783
|
+
}, qVe = {
|
|
86777
86784
|
key: 1,
|
|
86778
86785
|
class: "lg-badge"
|
|
86779
|
-
},
|
|
86786
|
+
}, JVe = {
|
|
86780
86787
|
key: 2,
|
|
86781
86788
|
class: "lg-badge err"
|
|
86782
|
-
},
|
|
86789
|
+
}, YVe = { class: "log-group-body" }, XVe = { class: "log-head" }, ZVe = {
|
|
86783
86790
|
key: 0,
|
|
86784
86791
|
class: "log-source"
|
|
86785
|
-
},
|
|
86792
|
+
}, QVe = { class: "log-time" }, $Ve = { class: "log-body" }, eHe = { class: "kv-grid" }, tHe = { class: "kv" }, nHe = { class: "k" }, rHe = { class: "v" }, iHe = { class: "kv" }, aHe = { class: "k" }, oHe = { class: "v" }, sHe = { class: "kv" }, cHe = { class: "v" }, lHe = { class: "kv" }, uHe = { class: "k" }, dHe = { class: "v" }, fHe = { class: "section-label" }, pHe = { class: "chip-row" }, mHe = { class: "section-label" }, hHe = { class: "msg-list" }, gHe = { class: "msg-text" }, _He = { class: "badge-row" }, vHe = { class: "badge" }, yHe = {
|
|
86786
86793
|
key: 0,
|
|
86787
86794
|
class: "badge muted"
|
|
86788
|
-
},
|
|
86795
|
+
}, bHe = { class: "badge muted" }, xHe = {
|
|
86789
86796
|
key: 1,
|
|
86790
86797
|
class: "badge muted"
|
|
86791
|
-
},
|
|
86798
|
+
}, SHe = ["onClick"], CHe = ["title", "onClick"], wHe = ["onClick"], THe = ["title", "onClick"], EHe = { class: "msg-detail" }, DHe = {
|
|
86792
86799
|
key: 0,
|
|
86793
86800
|
class: "msg-text"
|
|
86794
|
-
},
|
|
86801
|
+
}, OHe = { class: "tc-inline-name" }, kHe = { class: "tc-inline-args" }, AHe = {
|
|
86795
86802
|
key: 1,
|
|
86796
86803
|
class: "tc-id"
|
|
86797
|
-
},
|
|
86804
|
+
}, jHe = {
|
|
86798
86805
|
key: 1,
|
|
86799
86806
|
class: "log-raw"
|
|
86800
|
-
},
|
|
86807
|
+
}, MHe = { class: "badge-row" }, NHe = { class: "badge" }, PHe = {
|
|
86801
86808
|
key: 0,
|
|
86802
86809
|
class: "badge warn"
|
|
86803
|
-
},
|
|
86810
|
+
}, FHe = {
|
|
86804
86811
|
key: 0,
|
|
86805
86812
|
class: "resp-content"
|
|
86806
|
-
},
|
|
86813
|
+
}, IHe = {
|
|
86807
86814
|
key: 1,
|
|
86808
86815
|
class: "tc-list"
|
|
86809
|
-
},
|
|
86816
|
+
}, LHe = { class: "tc-name" }, RHe = { class: "tc-args" }, zHe = {
|
|
86810
86817
|
key: 2,
|
|
86811
86818
|
class: "usage-row"
|
|
86812
|
-
},
|
|
86819
|
+
}, BHe = { class: "usage" }, VHe = { class: "usage" }, HHe = { class: "usage" }, UHe = {
|
|
86813
86820
|
key: 0,
|
|
86814
86821
|
class: "usage"
|
|
86815
|
-
},
|
|
86822
|
+
}, WHe = { class: "tc-name" }, GHe = {
|
|
86816
86823
|
key: 0,
|
|
86817
86824
|
class: "tc-dur"
|
|
86818
|
-
},
|
|
86825
|
+
}, KHe = ["title", "onClick"], qHe = { class: "tc-args" }, JHe = { class: "tc-result-sep" }, YHe = { class: "tc-args tc-result" }, XHe = {
|
|
86819
86826
|
key: 1,
|
|
86820
86827
|
class: "tc-card inline"
|
|
86821
|
-
},
|
|
86828
|
+
}, ZHe = { class: "tc-name" }, QHe = {
|
|
86822
86829
|
key: 0,
|
|
86823
86830
|
class: "tc-dur running"
|
|
86824
|
-
},
|
|
86831
|
+
}, $He = { class: "tc-args" }, eUe = {
|
|
86825
86832
|
key: 4,
|
|
86826
86833
|
class: "err-box"
|
|
86827
|
-
},
|
|
86834
|
+
}, tUe = { class: "log-footer" }, nUe = ["onClick"], rUe = ["onClick"], iUe = {
|
|
86828
86835
|
key: 0,
|
|
86829
86836
|
class: "log-raw"
|
|
86830
|
-
},
|
|
86837
|
+
}, aUe = {
|
|
86831
86838
|
key: 3,
|
|
86832
86839
|
class: "info-body"
|
|
86833
|
-
},
|
|
86840
|
+
}, oUe = {
|
|
86834
86841
|
key: 0,
|
|
86835
86842
|
class: "empty"
|
|
86836
|
-
},
|
|
86843
|
+
}, sUe = { class: "info-section" }, cUe = { class: "info-title" }, lUe = { class: "kv-grid" }, uUe = { class: "kv" }, dUe = { class: "v" }, fUe = { class: "kv" }, pUe = { class: "k" }, mUe = { class: "v" }, hUe = { class: "kv" }, gUe = { class: "k" }, _Ue = { class: "v" }, vUe = { class: "kv" }, yUe = { class: "k" }, bUe = { class: "v" }, xUe = {
|
|
86837
86844
|
class: "kv",
|
|
86838
86845
|
style: { "margin-top": "6px" }
|
|
86839
|
-
},
|
|
86846
|
+
}, SUe = { class: "k" }, CUe = {
|
|
86840
86847
|
class: "v",
|
|
86841
86848
|
style: { "font-size": "11px" }
|
|
86842
|
-
},
|
|
86849
|
+
}, wUe = { class: "info-section" }, TUe = { class: "info-title" }, EUe = { class: "info-name" }, DUe = { class: "info-desc" }, OUe = {
|
|
86843
86850
|
key: 0,
|
|
86844
86851
|
class: "info-section"
|
|
86845
|
-
},
|
|
86852
|
+
}, kUe = { class: "info-title" }, AUe = { class: "info-hint" }, jUe = ["onClick"], MUe = { class: "info-desc" }, NUe = {
|
|
86846
86853
|
key: 0,
|
|
86847
86854
|
class: "skill-content"
|
|
86848
|
-
},
|
|
86855
|
+
}, PUe = {
|
|
86849
86856
|
key: 0,
|
|
86850
86857
|
class: "skill-loading"
|
|
86851
|
-
},
|
|
86858
|
+
}, FUe = {
|
|
86852
86859
|
key: 1,
|
|
86853
86860
|
class: "skill-error"
|
|
86854
|
-
},
|
|
86861
|
+
}, IUe = {
|
|
86855
86862
|
key: 2,
|
|
86856
86863
|
class: "skill-pre"
|
|
86857
|
-
},
|
|
86864
|
+
}, LUe = {
|
|
86858
86865
|
key: 1,
|
|
86859
86866
|
class: "info-section"
|
|
86860
|
-
},
|
|
86867
|
+
}, RUe = { class: "info-title" }, zUe = { class: "info-item" }, BUe = { class: "info-name" }, VUe = { class: "info-desc" }, HUe = { class: "info-section" }, UUe = { class: "info-title" }, WUe = { class: "kv-grid" }, GUe = { class: "kv" }, KUe = { class: "k" }, qUe = { class: "v" }, JUe = { class: "kv" }, YUe = { class: "k" }, XUe = { class: "v" }, ZUe = { class: "kv" }, QUe = { class: "k" }, $Ue = { class: "v" }, eWe = { class: "kv" }, tWe = { class: "k" }, nWe = {
|
|
86861
86868
|
class: "v",
|
|
86862
86869
|
style: { "font-size": "11px" }
|
|
86863
|
-
},
|
|
86870
|
+
}, rWe = {
|
|
86864
86871
|
key: 2,
|
|
86865
86872
|
class: "info-section"
|
|
86866
|
-
},
|
|
86873
|
+
}, iWe = { class: "info-title" }, aWe = { class: "info-name" }, oWe = { class: "src-tag mcp" }, sWe = { class: "info-desc" }, cWe = {
|
|
86867
86874
|
key: 3,
|
|
86868
86875
|
class: "info-section"
|
|
86869
|
-
},
|
|
86876
|
+
}, lWe = { class: "info-title" }, uWe = { class: "kv-grid" }, dWe = { class: "kv" }, fWe = { class: "k" }, pWe = { class: "v" }, mWe = { class: "kv" }, hWe = { class: "k" }, gWe = { class: "v" }, _We = { class: "kv" }, vWe = { class: "k" }, yWe = { class: "v" }, bWe = {
|
|
86870
86877
|
key: 0,
|
|
86871
86878
|
class: "kv"
|
|
86872
|
-
},
|
|
86879
|
+
}, xWe = { class: "k" }, SWe = {
|
|
86873
86880
|
class: "v",
|
|
86874
86881
|
style: { "font-size": "11px" }
|
|
86875
|
-
},
|
|
86882
|
+
}, CWe = {
|
|
86876
86883
|
key: 4,
|
|
86877
86884
|
class: "info-section"
|
|
86878
|
-
},
|
|
86885
|
+
}, wWe = { class: "info-title" }, TWe = {
|
|
86879
86886
|
key: 5,
|
|
86880
86887
|
class: "info-section"
|
|
86881
|
-
},
|
|
86888
|
+
}, EWe = { class: "info-title" }, DWe = { class: "info-pre" }, OWe = {
|
|
86882
86889
|
key: 6,
|
|
86883
86890
|
class: "info-section"
|
|
86884
|
-
},
|
|
86891
|
+
}, kWe = { class: "info-title" }, AWe = { class: "info-kv" }, jWe = { class: "kv" }, MWe = { class: "k" }, NWe = { class: "v" }, PWe = { class: "kv" }, FWe = { class: "k" }, IWe = { class: "v" }, LWe = { class: "kv" }, RWe = { class: "k" }, zWe = { class: "v" }, BWe = { class: "kv" }, VWe = { class: "k" }, HWe = { class: "v" }, UWe = { class: "kv" }, WWe = { class: "k" }, GWe = {
|
|
86885
86892
|
class: "v",
|
|
86886
86893
|
style: { "font-size": "11px" }
|
|
86887
|
-
},
|
|
86894
|
+
}, KWe = {
|
|
86888
86895
|
key: 0,
|
|
86889
86896
|
class: "kv"
|
|
86890
|
-
},
|
|
86897
|
+
}, qWe = { class: "k" }, JWe = {
|
|
86891
86898
|
class: "v",
|
|
86892
86899
|
style: { "font-size": "11px" }
|
|
86893
|
-
}, $9 = 400,
|
|
86900
|
+
}, $9 = 400, YWe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
86894
86901
|
__name: "DebugDrawer",
|
|
86895
86902
|
props: {
|
|
86896
86903
|
logs: { default: () => [] },
|
|
@@ -87309,8 +87316,8 @@ var BBe = {
|
|
|
87309
87316
|
return (t, n) => (X(), hX(VJ, { to: "body" }, [bX(ZX, { name: "drawer" }, {
|
|
87310
87317
|
default: TJ(() => {
|
|
87311
87318
|
var t;
|
|
87312
|
-
return [e.visible ? (X(), Z("div",
|
|
87313
|
-
Q("div",
|
|
87319
|
+
return [e.visible ? (X(), Z("div", VBe, [Q("div", { class: zK(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
|
|
87320
|
+
Q("div", HBe, [Q("div", UBe, [
|
|
87314
87321
|
Q("button", {
|
|
87315
87322
|
class: zK(["tab-btn", { active: ue.value === "logs" }]),
|
|
87316
87323
|
onClick: n[0] || (n[0] = (e) => me("logs"))
|
|
@@ -87330,33 +87337,33 @@ var BBe = {
|
|
|
87330
87337
|
class: zK(["tab-btn", { active: ue.value === "info" }]),
|
|
87331
87338
|
onClick: n[3] || (n[3] = (e) => me("info"))
|
|
87332
87339
|
}, "🧬 " + J(y.value.debugTabInfo), 3)) : $("", !0)
|
|
87333
|
-
]), Q("div",
|
|
87340
|
+
]), Q("div", WBe, [
|
|
87334
87341
|
Q("button", {
|
|
87335
87342
|
class: "hd-btn",
|
|
87336
87343
|
title: y.value.debugCopyReport,
|
|
87337
87344
|
onClick: v
|
|
87338
|
-
}, J(g.value === "report" ? "✓" : "💾"), 9,
|
|
87345
|
+
}, J(g.value === "report" ? "✓" : "💾"), 9, GBe),
|
|
87339
87346
|
ue.value === "logs" ? (X(), Z("button", {
|
|
87340
87347
|
key: 0,
|
|
87341
87348
|
class: "hd-btn",
|
|
87342
87349
|
title: y.value.debugClearLogs,
|
|
87343
87350
|
onClick: le
|
|
87344
|
-
}, "🗑️", 8,
|
|
87351
|
+
}, "🗑️", 8, KBe)) : $("", !0),
|
|
87345
87352
|
Q("button", {
|
|
87346
87353
|
class: "hd-btn",
|
|
87347
87354
|
title: y.value.close,
|
|
87348
87355
|
onClick: F
|
|
87349
|
-
}, "✕", 8,
|
|
87356
|
+
}, "✕", 8, qBe)
|
|
87350
87357
|
])]),
|
|
87351
|
-
ue.value === "logs" ? (X(), Z("div",
|
|
87358
|
+
ue.value === "logs" ? (X(), Z("div", JBe, [(X(!0), Z(oX, null, gY(b.value, (e, t) => (X(), Z("button", {
|
|
87352
87359
|
key: t,
|
|
87353
87360
|
class: zK(["filter-chip", { active: i.value === t }]),
|
|
87354
87361
|
style: RK({ "--chip-color": e.color }),
|
|
87355
87362
|
onClick: (e) => i.value = t
|
|
87356
|
-
}, [SX(J(e.icon) + " " + J(e.label) + " ", 1), Q("span",
|
|
87363
|
+
}, [SX(J(e.icon) + " " + J(e.label) + " ", 1), Q("span", XBe, J(C.value[t] || 0), 1)], 14, YBe))), 128)), Q("button", {
|
|
87357
87364
|
class: zK(["filter-chip all", { active: i.value === "all" }]),
|
|
87358
87365
|
onClick: n[4] || (n[4] = (e) => i.value = "all")
|
|
87359
|
-
}, [SX(J(y.value.debugFilterAll) + " ", 1), Q("span",
|
|
87366
|
+
}, [SX(J(y.value.debugFilterAll) + " ", 1), Q("span", ZBe, J(C.value.all || 0), 1)], 2)])) : $("", !0),
|
|
87360
87367
|
Q("div", {
|
|
87361
87368
|
class: "drawer-body",
|
|
87362
87369
|
ref_key: "drawerBodyEl",
|
|
@@ -87370,8 +87377,8 @@ var BBe = {
|
|
|
87370
87377
|
ref_key: "drawerContentsEl",
|
|
87371
87378
|
ref: c
|
|
87372
87379
|
}, [
|
|
87373
|
-
ue.value === "context" ? (X(), Z("div",
|
|
87374
|
-
Q("div",
|
|
87380
|
+
ue.value === "context" ? (X(), Z("div", QBe, [be.value ? (X(), Z(oX, { key: 1 }, [be.value ? (X(), Z(oX, { key: 0 }, [
|
|
87381
|
+
Q("div", eVe, [Q("div", tVe, [Q("div", {
|
|
87375
87382
|
class: "ctx-bar-track",
|
|
87376
87383
|
title: `${y.value.debugCtxOccupancy} ${Math.round(be.value.occupancy * 100)}%`
|
|
87377
87384
|
}, [Q("div", {
|
|
@@ -87382,12 +87389,12 @@ var BBe = {
|
|
|
87382
87389
|
class: "ctx-threshold-mark",
|
|
87383
87390
|
style: RK({ left: Math.min(be.value.thresholdRatio * 100, 100) + "%" }),
|
|
87384
87391
|
title: y.value.debugCtxThreshold
|
|
87385
|
-
}, null, 12,
|
|
87386
|
-
Q("span",
|
|
87387
|
-
be.value.contextWindow ? (X(), Z("span",
|
|
87388
|
-
be.value.thresholdRatio > 0 ? (X(), Z("span",
|
|
87392
|
+
}, null, 12, rVe)) : $("", !0)], 8, nVe), Q("span", iVe, J(Math.round(be.value.occupancy * 100)) + "%", 1)]), Q("div", aVe, [
|
|
87393
|
+
Q("span", oVe, J(y.value.debugCtxTokens) + " " + J(be.value.totalTokens) + " token", 1),
|
|
87394
|
+
be.value.contextWindow ? (X(), Z("span", sVe, J(y.value.debugCtxWindow) + " " + J(be.value.contextWindow), 1)) : $("", !0),
|
|
87395
|
+
be.value.thresholdRatio > 0 ? (X(), Z("span", cVe, J(y.value.debugCtxThresholdPct) + " " + J(Math.round(be.value.thresholdRatio * 100)) + "%", 1)) : $("", !0)
|
|
87389
87396
|
])]),
|
|
87390
|
-
Q("div",
|
|
87397
|
+
Q("div", lVe, J(y.value.debugCtxCategories), 1),
|
|
87391
87398
|
(X(!0), Z(oX, null, gY(be.value.categories, (e) => (X(), Z("div", {
|
|
87392
87399
|
key: e.key,
|
|
87393
87400
|
class: "ctx-cat"
|
|
@@ -87395,62 +87402,62 @@ var BBe = {
|
|
|
87395
87402
|
Q("span", {
|
|
87396
87403
|
class: "ctx-cat-label",
|
|
87397
87404
|
title: e.label
|
|
87398
|
-
}, J(e.label), 9,
|
|
87399
|
-
Q("div",
|
|
87405
|
+
}, J(e.label), 9, uVe),
|
|
87406
|
+
Q("div", dVe, [Q("div", {
|
|
87400
87407
|
class: "ctx-cat-fill",
|
|
87401
87408
|
style: RK({ width: Math.max(Math.round(e.pct * 100), 2) + "%" })
|
|
87402
87409
|
}, null, 4)]),
|
|
87403
|
-
Q("span",
|
|
87410
|
+
Q("span", fVe, [SX(J(e.tokens) + " ", 1), Q("i", null, "(" + J(Math.round(e.pct * 100)) + "%)", 1)])
|
|
87404
87411
|
]))), 128)),
|
|
87405
|
-
be.value.compression ? (X(), Z("div",
|
|
87406
|
-
Q("span",
|
|
87407
|
-
Q("span",
|
|
87408
|
-
Q("span",
|
|
87409
|
-
be.value.compression.decision ? (X(), Z("span",
|
|
87412
|
+
be.value.compression ? (X(), Z("div", pVe, [Q("div", mVe, J(y.value.debugCtxLastCompression), 1), Q("div", hVe, [
|
|
87413
|
+
Q("span", gVe, J(y.value.debugCtxSummarized) + " " + J(be.value.compression.roundsSummarized) + "/" + J(be.value.compression.roundsTotal) + J(y.value.debugCtxRoundsSuffix), 1),
|
|
87414
|
+
Q("span", _Ve, J(y.value.debugCtxRecalled) + " " + J(be.value.compression.roundsRecalled), 1),
|
|
87415
|
+
Q("span", vVe, J(be.value.compression.strategy), 1),
|
|
87416
|
+
be.value.compression.decision ? (X(), Z("span", yVe, "🤖 " + J(y.value.debugCtxAgentDecision) + J(Oe(be.value.compression.decision)), 1)) : $("", !0)
|
|
87410
87417
|
])])) : $("", !0)
|
|
87411
|
-
], 64)) : $("", !0)], 64)) : (X(), Z("div",
|
|
87412
|
-
ue.value === "subagent" ? (X(), Z("div",
|
|
87418
|
+
], 64)) : $("", !0)], 64)) : (X(), Z("div", $Be, J(y.value.debugCtxEmpty), 1))])) : $("", !0),
|
|
87419
|
+
ue.value === "subagent" ? (X(), Z("div", bVe, [we.value.length ? (X(), Z("div", xVe, [Q("div", SVe, "🔒 " + J(y.value.debugLocksTitle) + " (" + J(we.value.length) + ")", 1), (X(!0), Z(oX, null, gY(we.value, ([e, t]) => (X(), Z("div", {
|
|
87413
87420
|
key: "lock-" + e,
|
|
87414
87421
|
class: "sub-task"
|
|
87415
|
-
}, "🔒 " + J(e) + " ← " + J(t), 1))), 128))])) : $("", !0), !Se.value.length && !Ce.value.length ? (X(), Z("div",
|
|
87422
|
+
}, "🔒 " + J(e) + " ← " + J(t), 1))), 128))])) : $("", !0), !Se.value.length && !Ce.value.length ? (X(), Z("div", CVe, J(y.value.debugSubagentEmpty), 1)) : (X(), Z(oX, { key: 2 }, [Se.value.length ? (X(), Z("div", wVe, [Q("div", TVe, "▶ " + J(y.value.debugSubRunningTitle) + " (" + J(Se.value.length) + ")", 1), (X(!0), Z(oX, null, gY(Se.value, (e, t) => (X(), Z("div", {
|
|
87416
87423
|
key: "a" + t,
|
|
87417
87424
|
class: zK(["sub-card", e.status])
|
|
87418
|
-
}, [Q("div",
|
|
87425
|
+
}, [Q("div", EVe, [
|
|
87419
87426
|
Q("span", {
|
|
87420
87427
|
class: "sub-status",
|
|
87421
87428
|
style: RK({ background: Te.value[e.status] && Te.value[e.status].color || "#9ca3af" })
|
|
87422
87429
|
}, J(Te.value[e.status] && Te.value[e.status].label || e.status), 5),
|
|
87423
|
-
Q("span",
|
|
87424
|
-
Q("span",
|
|
87425
|
-
]), Q("div",
|
|
87430
|
+
Q("span", DVe, J(e.label), 1),
|
|
87431
|
+
Q("span", OVe, J(e.steps.length) + J(y.value.debugStepsCountSuffix), 1)
|
|
87432
|
+
]), Q("div", kVe, J(ve(e.task, 80)), 1)], 2))), 128))])) : $("", !0), Ce.value.length ? (X(), Z("div", AVe, [Q("div", jVe, "🕐 " + J(y.value.debugSubHistoryTitle) + " (" + J(Ce.value.length) + ")", 1), (X(!0), Z(oX, null, gY(Ce.value, (e, t) => (X(), Z("div", {
|
|
87426
87433
|
key: "h" + t,
|
|
87427
87434
|
class: zK(["sub-card", e.status])
|
|
87428
87435
|
}, [
|
|
87429
|
-
Q("div",
|
|
87436
|
+
Q("div", MVe, [
|
|
87430
87437
|
Q("span", {
|
|
87431
87438
|
class: "sub-status",
|
|
87432
87439
|
style: RK({ background: Te.value[e.status] && Te.value[e.status].color || "#9ca3af" })
|
|
87433
87440
|
}, J(Te.value[e.status] && Te.value[e.status].label || e.status), 5),
|
|
87434
|
-
Q("span",
|
|
87435
|
-
e.durationMs == null ? $("", !0) : (X(), Z("span",
|
|
87441
|
+
Q("span", NVe, J(e.label), 1),
|
|
87442
|
+
e.durationMs == null ? $("", !0) : (X(), Z("span", PVe, J(ye(e.durationMs)), 1)),
|
|
87436
87443
|
e.steps.length ? (X(), Z("button", {
|
|
87437
87444
|
key: 1,
|
|
87438
87445
|
class: "sub-toggle",
|
|
87439
87446
|
onClick: (e) => De(t)
|
|
87440
|
-
}, J(Ee.value.has(t) ? y.value.collapse : y.value.debugStepsBtn), 9,
|
|
87447
|
+
}, J(Ee.value.has(t) ? y.value.collapse : y.value.debugStepsBtn), 9, FVe)) : $("", !0)
|
|
87441
87448
|
]),
|
|
87442
|
-
Q("div",
|
|
87443
|
-
e.resultPreview ? (X(), Z("div",
|
|
87444
|
-
Ee.value.has(t) && e.steps.length ? (X(), Z("div",
|
|
87449
|
+
Q("div", IVe, J(ve(e.task, 80)), 1),
|
|
87450
|
+
e.resultPreview ? (X(), Z("div", LVe, J(e.resultPreview), 1)) : $("", !0),
|
|
87451
|
+
Ee.value.has(t) && e.steps.length ? (X(), Z("div", RVe, [(X(!0), Z(oX, null, gY(e.steps, (e, t) => (X(), Z("div", {
|
|
87445
87452
|
key: t,
|
|
87446
87453
|
class: "sub-step"
|
|
87447
87454
|
}, [
|
|
87448
|
-
Q("span",
|
|
87449
|
-
Q("span",
|
|
87450
|
-
Q("span",
|
|
87455
|
+
Q("span", zVe, J(e.kind === "tool_call" ? "🔧" : "✅"), 1),
|
|
87456
|
+
Q("span", BVe, J(e.name), 1),
|
|
87457
|
+
Q("span", VVe, J(re(e.ts)), 1)
|
|
87451
87458
|
]))), 128))])) : $("", !0)
|
|
87452
87459
|
], 2))), 128))])) : $("", !0)], 64))])) : $("", !0),
|
|
87453
|
-
ue.value === "logs" ? (X(), Z(oX, { key: 2 }, [S.value.length === 0 ? (X(), Z("div",
|
|
87460
|
+
ue.value === "logs" ? (X(), Z(oX, { key: 2 }, [S.value.length === 0 ? (X(), Z("div", HVe, J(y.value.debugLogsEmpty), 1)) : $("", !0), (X(!0), Z(oX, null, gY(k.value, (e) => (X(), Z("div", {
|
|
87454
87461
|
key: e.key,
|
|
87455
87462
|
class: "log-group"
|
|
87456
87463
|
}, [Q("div", {
|
|
@@ -87458,69 +87465,69 @@ var BBe = {
|
|
|
87458
87465
|
onClick: (t) => N(e.key)
|
|
87459
87466
|
}, [
|
|
87460
87467
|
Q("span", { class: zK(["log-group-arrow", { open: te(e.key) }]) }, "▶", 2),
|
|
87461
|
-
Q("span",
|
|
87462
|
-
Q("span",
|
|
87468
|
+
Q("span", WVe, J(P(e)), 1),
|
|
87469
|
+
Q("span", GVe, [
|
|
87463
87470
|
SX(J(re(e.firstTs)), 1),
|
|
87464
87471
|
e.lastTs > e.firstTs ? (X(), Z(oX, { key: 0 }, [SX(" ~ " + J(re(e.lastTs)), 1)], 64)) : $("", !0),
|
|
87465
87472
|
SX(" · " + J(ye(e.lastTs - e.firstTs)), 1)
|
|
87466
87473
|
]),
|
|
87467
|
-
e.toolCount ? (X(), Z("span",
|
|
87468
|
-
e.tokens == null ? $("", !0) : (X(), Z("span",
|
|
87469
|
-
e.errorCount ? (X(), Z("span",
|
|
87470
|
-
], 10,
|
|
87474
|
+
e.toolCount ? (X(), Z("span", KVe, "🔧 " + J(e.toolCount), 1)) : $("", !0),
|
|
87475
|
+
e.tokens == null ? $("", !0) : (X(), Z("span", qVe, "Σ " + J(e.tokens) + " tok", 1)),
|
|
87476
|
+
e.errorCount ? (X(), Z("span", JVe, "❌ " + J(e.errorCount), 1)) : $("", !0)
|
|
87477
|
+
], 10, UVe), EJ(Q("div", YVe, [(X(!0), Z(oX, null, gY(e.entries, ({ log: e, pairCall: t, prevMsgCount: r, uid: i }) => {
|
|
87471
87478
|
var o, s, c, l, u, v, x, S;
|
|
87472
87479
|
return X(), Z("div", {
|
|
87473
87480
|
key: i,
|
|
87474
87481
|
class: "log-item"
|
|
87475
87482
|
}, [
|
|
87476
|
-
Q("div",
|
|
87483
|
+
Q("div", XVe, [
|
|
87477
87484
|
Q("span", {
|
|
87478
87485
|
class: "log-type",
|
|
87479
87486
|
style: RK({ background: b.value[e.type].color })
|
|
87480
87487
|
}, J(b.value[e.type].icon) + " " + J(b.value[e.type].label), 5),
|
|
87481
|
-
e.source ? (X(), Z("span",
|
|
87482
|
-
Q("span",
|
|
87488
|
+
e.source ? (X(), Z("span", ZVe, "↳ " + J(e.source), 1)) : $("", !0),
|
|
87489
|
+
Q("span", QVe, J(re(e.timestamp)), 1)
|
|
87483
87490
|
]),
|
|
87484
|
-
Q("div",
|
|
87485
|
-
Q("div",
|
|
87486
|
-
Q("div",
|
|
87487
|
-
Q("div",
|
|
87488
|
-
Q("div",
|
|
87489
|
-
Q("div",
|
|
87491
|
+
Q("div", $Ve, [e.type === "context" ? (X(), Z(oX, { key: 0 }, [
|
|
87492
|
+
Q("div", eHe, [
|
|
87493
|
+
Q("div", tHe, [Q("span", nHe, J(y.value.debugModel), 1), Q("span", rHe, J(e.data.model), 1)]),
|
|
87494
|
+
Q("div", iHe, [Q("span", aHe, J(y.value.debugTemperature), 1), Q("span", oHe, J(e.data.temperature), 1)]),
|
|
87495
|
+
Q("div", sHe, [n[5] || (n[5] = Q("span", { class: "k" }, "MaxTokens", -1)), Q("span", cHe, J(e.data.maxTokens), 1)]),
|
|
87496
|
+
Q("div", lHe, [Q("span", uHe, J(y.value.debugMessageCount), 1), Q("span", dHe, J(e.data.totalMessages), 1)])
|
|
87490
87497
|
]),
|
|
87491
|
-
Q("div",
|
|
87492
|
-
Q("div",
|
|
87498
|
+
Q("div", fHe, J(y.value.debugToolsLabel) + " (" + J(((o = e.data.tools) == null ? void 0 : o.length) || 0) + ")", 1),
|
|
87499
|
+
Q("div", pHe, [(X(!0), Z(oX, null, gY(e.data.tools, (e) => (X(), Z("span", {
|
|
87493
87500
|
key: e,
|
|
87494
87501
|
class: "tool-chip"
|
|
87495
87502
|
}, J(e), 1))), 128))]),
|
|
87496
|
-
Q("div",
|
|
87497
|
-
Q("div",
|
|
87503
|
+
Q("div", mHe, J(y.value.debugContextMessages), 1),
|
|
87504
|
+
Q("div", hHe, [(X(!0), Z(oX, null, gY(e.data.messages, (e, t) => (X(), Z("div", {
|
|
87498
87505
|
key: t,
|
|
87499
87506
|
class: "msg-row"
|
|
87500
87507
|
}, [Q("span", {
|
|
87501
87508
|
class: "msg-role",
|
|
87502
87509
|
style: RK({ background: ce(e.type).color })
|
|
87503
|
-
}, J(ce(e.type).label), 5), Q("span",
|
|
87504
|
-
], 64)) : e.type === "llm_request" ? (X(), Z(oX, { key: 1 }, [Q("div",
|
|
87505
|
-
Q("span",
|
|
87506
|
-
e.data.model ? (X(), Z("span",
|
|
87507
|
-
Q("span",
|
|
87508
|
-
(s = e.data.tools) != null && s.length ? (X(), Z("span",
|
|
87510
|
+
}, J(ce(e.type).label), 5), Q("span", gHe, J(e.content), 1)]))), 128))])
|
|
87511
|
+
], 64)) : e.type === "llm_request" ? (X(), Z(oX, { key: 1 }, [Q("div", _He, [
|
|
87512
|
+
Q("span", vHe, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1),
|
|
87513
|
+
e.data.model ? (X(), Z("span", yHe, J(e.data.model), 1)) : $("", !0),
|
|
87514
|
+
Q("span", bHe, [SX(J((e.data.messages || []).length) + J(y.value.debugMsgCountSuffix), 1), r != null && r < (e.data.messages || []).length ? (X(), Z(oX, { key: 0 }, [SX("(+" + J((e.data.messages || []).length - r) + ")", 1)], 64)) : $("", !0)]),
|
|
87515
|
+
(s = e.data.tools) != null && s.length ? (X(), Z("span", xHe, J(e.data.tools.length) + J(y.value.debugToolCountSuffix), 1)) : $("", !0),
|
|
87509
87516
|
r != null && r > 0 ? (X(), Z("button", {
|
|
87510
87517
|
key: 2,
|
|
87511
87518
|
class: "view-toggle only-new-btn",
|
|
87512
87519
|
onClick: (e) => h(i)
|
|
87513
|
-
}, J(m.value.has(i) ? y.value.debugShowAll : y.value.debugOnlyNew), 9,
|
|
87520
|
+
}, J(m.value.has(i) ? y.value.debugShowAll : y.value.debugOnlyNew), 9, SHe)) : $("", !0),
|
|
87514
87521
|
Q("button", {
|
|
87515
87522
|
class: "view-toggle copy-btn",
|
|
87516
87523
|
title: y.value.copy,
|
|
87517
87524
|
onClick: (t) => _(oe(e.data.messages), "req" + i)
|
|
87518
|
-
}, J(g.value === "req" + i ? "✓" : "📋"), 9,
|
|
87525
|
+
}, J(g.value === "req" + i ? "✓" : "📋"), 9, CHe),
|
|
87519
87526
|
Q("button", {
|
|
87520
87527
|
class: "view-toggle",
|
|
87521
87528
|
onClick: (e) => ae(i)
|
|
87522
|
-
}, J(d.value.has(i) ? y.value.debugCardView : y.value.debugRequestBody), 9,
|
|
87523
|
-
]), d.value.has(i) ? (X(), Z("pre",
|
|
87529
|
+
}, J(d.value.has(i) ? y.value.debugCardView : y.value.debugRequestBody), 9, wHe)
|
|
87530
|
+
]), d.value.has(i) ? (X(), Z("pre", jHe, [Q("code", null, J(oe(e.data.messages)), 1)])) : (X(!0), Z(oX, { key: 0 }, gY([ne(e, r, m.value.has(i))], (e) => (X(), Z("div", {
|
|
87524
87531
|
key: e.base,
|
|
87525
87532
|
class: "msg-list"
|
|
87526
87533
|
}, [(X(!0), Z(oX, null, gY(e.list, (t, n) => {
|
|
@@ -87536,37 +87543,37 @@ var BBe = {
|
|
|
87536
87543
|
}, [Q("span", {
|
|
87537
87544
|
class: "msg-role",
|
|
87538
87545
|
style: RK({ background: ce(t.role).color })
|
|
87539
|
-
}, J(ce(t.role).label), 5), Q("div",
|
|
87540
|
-
t.content ? (X(), Z("span",
|
|
87546
|
+
}, J(ce(t.role).label), 5), Q("div", EHe, [
|
|
87547
|
+
t.content ? (X(), Z("span", DHe, J(t.content), 1)) : $("", !0),
|
|
87541
87548
|
(X(!0), Z(oX, null, gY(t.tool_calls || [], (e, t) => {
|
|
87542
87549
|
var n, r, i;
|
|
87543
87550
|
return X(), Z("div", {
|
|
87544
87551
|
key: t,
|
|
87545
87552
|
class: "tc-inline"
|
|
87546
|
-
}, [Q("span",
|
|
87553
|
+
}, [Q("span", OHe, "🔧 " + J(((n = e.function) == null ? void 0 : n.name) || e.name), 1), Q("code", kHe, J((r = (i = e.function) == null ? void 0 : i.arguments) == null ? e.args : r), 1)]);
|
|
87547
87554
|
}), 128)),
|
|
87548
|
-
t.tool_call_id ? (X(), Z("span",
|
|
87549
|
-
])], 10,
|
|
87555
|
+
t.tool_call_id ? (X(), Z("span", AHe, "↳ tool_call_id: " + J(t.tool_call_id), 1)) : $("", !0)
|
|
87556
|
+
])], 10, THe);
|
|
87550
87557
|
}), 128))]))), 128))], 64)) : e.type === "llm_response" ? (X(), Z(oX, { key: 2 }, [
|
|
87551
|
-
Q("div",
|
|
87552
|
-
e.data.content ? (X(), Z("div",
|
|
87553
|
-
(l = e.data.toolCalls) != null && l.length ? (X(), Z("div",
|
|
87558
|
+
Q("div", MHe, [Q("span", NHe, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1), (c = e.data.toolCalls) != null && c.length ? (X(), Z("span", PHe, "🔧 " + J(e.data.toolCalls.length) + J(y.value.debugToolCallsSuffix), 1)) : $("", !0)]),
|
|
87559
|
+
e.data.content ? (X(), Z("div", FHe, J(e.data.content), 1)) : $("", !0),
|
|
87560
|
+
(l = e.data.toolCalls) != null && l.length ? (X(), Z("div", IHe, [(X(!0), Z(oX, null, gY(e.data.toolCalls, (e, t) => (X(), Z("div", {
|
|
87554
87561
|
key: t,
|
|
87555
87562
|
class: "tc-card"
|
|
87556
|
-
}, [Q("div",
|
|
87557
|
-
e.data.usage ? (X(), Z("div",
|
|
87558
|
-
Q("span",
|
|
87559
|
-
Q("span",
|
|
87560
|
-
Q("span",
|
|
87561
|
-
e.data.usage.reasoning_tokens ? (X(), Z("span",
|
|
87563
|
+
}, [Q("div", LHe, "🔧 " + J(e.name), 1), Q("pre", RHe, J(oe(e.args)), 1)]))), 128))])) : $("", !0),
|
|
87564
|
+
e.data.usage ? (X(), Z("div", zHe, [
|
|
87565
|
+
Q("span", BHe, "prompt: " + J((u = e.data.usage.prompt_tokens) == null ? "-" : u), 1),
|
|
87566
|
+
Q("span", VHe, "completion: " + J((v = e.data.usage.completion_tokens) == null ? "-" : v), 1),
|
|
87567
|
+
Q("span", HHe, "total: " + J((x = e.data.usage.total_tokens) == null ? "-" : x), 1),
|
|
87568
|
+
e.data.usage.reasoning_tokens ? (X(), Z("span", UHe, "reasoning: " + J(e.data.usage.reasoning_tokens) + "(" + J(Math.round(e.data.usage.reasoning_tokens / Math.max(1, (S = e.data.usage.completion_tokens) == null ? 0 : S) * 100)) + "%)", 1)) : $("", !0)
|
|
87562
87569
|
])) : $("", !0)
|
|
87563
87570
|
], 64)) : e.type === "tool_call" || e.type === "tool_result" ? (X(), Z(oX, { key: 3 }, [t ? (X(), Z("div", {
|
|
87564
87571
|
key: 0,
|
|
87565
87572
|
class: zK(["tc-card inline paired", { error: e.data.status === "error" }])
|
|
87566
87573
|
}, [
|
|
87567
|
-
Q("div",
|
|
87574
|
+
Q("div", WHe, [
|
|
87568
87575
|
SX(J(e.data.status === "error" ? "❌" : "✅") + " " + J(e.data.name) + " ", 1),
|
|
87569
|
-
e.data.durationMs == null ? $("", !0) : (X(), Z("span",
|
|
87576
|
+
e.data.durationMs == null ? $("", !0) : (X(), Z("span", GHe, J(ye(e.data.durationMs)), 1)),
|
|
87570
87577
|
Q("button", {
|
|
87571
87578
|
class: "view-toggle copy-btn",
|
|
87572
87579
|
title: y.value.copy,
|
|
@@ -87574,84 +87581,84 @@ var BBe = {
|
|
|
87574
87581
|
var n;
|
|
87575
87582
|
return _(String((n = e.data.result) == null ? "" : n), "res" + i);
|
|
87576
87583
|
}
|
|
87577
|
-
}, J(g.value === "res" + i ? "✓" : "📋"), 9,
|
|
87584
|
+
}, J(g.value === "res" + i ? "✓" : "📋"), 9, KHe)
|
|
87578
87585
|
]),
|
|
87579
|
-
Q("pre",
|
|
87580
|
-
Q("div",
|
|
87581
|
-
Q("pre",
|
|
87582
|
-
], 2)) : (X(), Z("div",
|
|
87583
|
-
Q("div",
|
|
87586
|
+
Q("pre", qHe, J(oe(t.data.args)), 1),
|
|
87587
|
+
Q("div", JHe, "↓ " + J(y.value.resultLabel), 1),
|
|
87588
|
+
Q("pre", YHe, J(e.data.result), 1)
|
|
87589
|
+
], 2)) : (X(), Z("div", XHe, [Q("div", ZHe, [SX(J(e.type === "tool_call" ? "🔧" : "✅") + " " + J(e.data.name) + " ", 1), e.type === "tool_call" ? (X(), Z("span", QHe, J(y.value.statusRunning) + "…", 1)) : $("", !0)]), Q("pre", $He, J(e.type === "tool_call" ? oe(e.data.args) : e.data.result), 1)]))], 64)) : e.type === "error" ? (X(), Z("div", eUe, J(e.data.tool ? `[${e.data.tool}] ` : "") + J(e.data.error), 1)) : $("", !0)]),
|
|
87590
|
+
Q("div", tUe, [Q("button", {
|
|
87584
87591
|
class: "raw-toggle",
|
|
87585
87592
|
onClick: (e) => ie(i)
|
|
87586
|
-
}, J(a.value.has(i) ? y.value.debugCollapseRawJson : y.value.debugViewRawJson), 9,
|
|
87593
|
+
}, J(a.value.has(i) ? y.value.debugCollapseRawJson : y.value.debugViewRawJson), 9, nUe), Q("button", {
|
|
87587
87594
|
class: "raw-toggle",
|
|
87588
87595
|
onClick: (t) => Y(R7)(oe(e.data))
|
|
87589
|
-
}, J(y.value.copy), 9,
|
|
87590
|
-
a.value.has(i) ? (X(), Z("pre",
|
|
87596
|
+
}, J(y.value.copy), 9, rUe)]),
|
|
87597
|
+
a.value.has(i) ? (X(), Z("pre", iUe, [Q("code", null, J(oe(e.data)), 1)])) : $("", !0)
|
|
87591
87598
|
]);
|
|
87592
|
-
}), 128))], 512), [[lZ, te(e.key)]])]))), 128))], 64)) : ue.value === "info" ? (X(), Z("div",
|
|
87593
|
-
Q("div",
|
|
87594
|
-
Q("div",
|
|
87595
|
-
Q("div",
|
|
87596
|
-
Q("div",
|
|
87597
|
-
Q("div",
|
|
87598
|
-
Q("div",
|
|
87599
|
-
Q("div",
|
|
87599
|
+
}), 128))], 512), [[lZ, te(e.key)]])]))), 128))], 64)) : ue.value === "info" ? (X(), Z("div", aUe, [I.value ? (X(), Z(oX, { key: 1 }, [
|
|
87600
|
+
Q("div", sUe, [
|
|
87601
|
+
Q("div", cUe, J(y.value.debugInfoBasic), 1),
|
|
87602
|
+
Q("div", lUe, [
|
|
87603
|
+
Q("div", uUe, [n[6] || (n[6] = Q("span", { class: "k" }, "ID", -1)), Q("span", dUe, J(I.value.id), 1)]),
|
|
87604
|
+
Q("div", fUe, [Q("span", pUe, J(y.value.debugModel), 1), Q("span", mUe, J(I.value.model || "-"), 1)]),
|
|
87605
|
+
Q("div", hUe, [Q("span", gUe, J(y.value.debugToolCount), 1), Q("span", _Ue, J(I.value.tools.length), 1)]),
|
|
87606
|
+
Q("div", vUe, [Q("span", yUe, J(y.value.debugMiddleware), 1), Q("span", bUe, J(I.value.middleware.length), 1)])
|
|
87600
87607
|
]),
|
|
87601
|
-
Q("div",
|
|
87608
|
+
Q("div", xUe, [Q("span", SUe, J(y.value.debugMiddlewareStack), 1), Q("span", CUe, J(I.value.middleware.join(" → ") || "-"), 1)])
|
|
87602
87609
|
]),
|
|
87603
|
-
Q("div",
|
|
87610
|
+
Q("div", wUe, [Q("div", TUe, "🔧 " + J(y.value.debugToolsLabel) + " (" + J(I.value.tools.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.tools, (e) => (X(), Z("div", {
|
|
87604
87611
|
key: e.name,
|
|
87605
87612
|
class: "info-item"
|
|
87606
|
-
}, [Q("div",
|
|
87613
|
+
}, [Q("div", EUe, [SX(J(e.name), 1), e.source ? (X(), Z("span", {
|
|
87607
87614
|
key: 0,
|
|
87608
87615
|
class: zK(["src-tag", _e(e.source)])
|
|
87609
|
-
}, J(e.source), 3)) : $("", !0)]), Q("div",
|
|
87610
|
-
I.value.skills.length ? (X(), Z("div",
|
|
87616
|
+
}, J(e.source), 3)) : $("", !0)]), Q("div", DUe, J(e.description), 1)]))), 128))]),
|
|
87617
|
+
I.value.skills.length ? (X(), Z("div", OUe, [Q("div", kUe, [SX("📘 " + J(y.value.debugSkillsTitle) + " (" + J(I.value.skills.length) + ")", 1), Q("span", AUe, J(y.value.debugSkillsHint), 1)]), (X(!0), Z(oX, null, gY(I.value.skills, (e) => (X(), Z("div", {
|
|
87611
87618
|
key: e.name,
|
|
87612
87619
|
class: "info-item"
|
|
87613
87620
|
}, [
|
|
87614
87621
|
Q("div", {
|
|
87615
87622
|
class: "info-name skill-toggle",
|
|
87616
87623
|
onClick: (t) => fe(e.name)
|
|
87617
|
-
}, [Q("span", { class: zK(["skill-arrow", { open: !!de.value[e.name] }]) }, "▶", 2), SX(" " + J(e.name), 1)], 8,
|
|
87618
|
-
Q("div",
|
|
87619
|
-
de.value[e.name] ? (X(), Z("div",
|
|
87624
|
+
}, [Q("span", { class: zK(["skill-arrow", { open: !!de.value[e.name] }]) }, "▶", 2), SX(" " + J(e.name), 1)], 8, jUe),
|
|
87625
|
+
Q("div", MUe, J(e.description), 1),
|
|
87626
|
+
de.value[e.name] ? (X(), Z("div", NUe, [de.value[e.name].loading ? (X(), Z("div", PUe, J(y.value.debugLoading), 1)) : de.value[e.name].error ? (X(), Z("div", FUe, J(de.value[e.name].error), 1)) : de.value[e.name].content ? (X(), Z("pre", IUe, J(de.value[e.name].content), 1)) : $("", !0)])) : $("", !0)
|
|
87620
87627
|
]))), 128))])) : $("", !0),
|
|
87621
|
-
I.value.data ? (X(), Z("div",
|
|
87622
|
-
Q("div",
|
|
87623
|
-
Q("div",
|
|
87624
|
-
Q("div",
|
|
87625
|
-
Q("div",
|
|
87626
|
-
Q("div",
|
|
87628
|
+
I.value.data ? (X(), Z("div", LUe, [Q("div", RUe, "📊 " + J(y.value.debugDataTitle), 1), Q("div", zUe, [Q("div", BUe, J(I.value.data.description || y.value.debugDataFallback), 1), Q("div", VUe, J(y.value.debugSchemaPrefix) + J(I.value.data.schema ? y.value.debugSchemaDeclared : y.value.debugSchemaMissing), 1)])])) : $("", !0),
|
|
87629
|
+
Q("div", HUe, [Q("div", UUe, "🧬 " + J(y.value.debugSubagentTitle), 1), Q("div", WUe, [
|
|
87630
|
+
Q("div", GUe, [Q("span", KUe, J(y.value.debugEnabled), 1), Q("span", qUe, J(I.value.subagent.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
|
|
87631
|
+
Q("div", JUe, [Q("span", YUe, J(y.value.debugMaxDepth), 1), Q("span", XUe, J(I.value.subagent.maxDepth), 1)]),
|
|
87632
|
+
Q("div", ZUe, [Q("span", QUe, J(y.value.debugMaxParallel), 1), Q("span", $Ue, J(I.value.subagent.maxParallel), 1)]),
|
|
87633
|
+
Q("div", eWe, [Q("span", tWe, J(y.value.debugExtraTools), 1), Q("span", nWe, J(I.value.subagent.allowedTools.length ? I.value.subagent.allowedTools.join(", ") : y.value.debugDefaultReadonly), 1)])
|
|
87627
87634
|
])]),
|
|
87628
|
-
!((t = I.value.mcp) == null || (t = t.servers) == null) && t.length ? (X(), Z("div",
|
|
87635
|
+
!((t = I.value.mcp) == null || (t = t.servers) == null) && t.length ? (X(), Z("div", rWe, [Q("div", iWe, "🔌 MCP (" + J(I.value.mcp.servers.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.mcp.servers, (e) => (X(), Z("div", {
|
|
87629
87636
|
key: e.name,
|
|
87630
87637
|
class: "info-item"
|
|
87631
|
-
}, [Q("div",
|
|
87632
|
-
I.value.verify ? (X(), Z("div",
|
|
87633
|
-
Q("div",
|
|
87634
|
-
Q("div",
|
|
87635
|
-
Q("div",
|
|
87636
|
-
I.value.verify.adversarial ? (X(), Z("div",
|
|
87638
|
+
}, [Q("div", aWe, [SX(J(e.name) + " ", 1), Q("span", oWe, J(e.toolCount) + J(y.value.debugToolCountSuffix), 1)]), Q("div", sWe, J(e.url), 1)]))), 128))])) : $("", !0),
|
|
87639
|
+
I.value.verify ? (X(), Z("div", cWe, [Q("div", lWe, "✅ " + J(y.value.debugVerifyTitle), 1), Q("div", uWe, [
|
|
87640
|
+
Q("div", dWe, [Q("span", fWe, J(y.value.debugEnabled), 1), Q("span", pWe, J(I.value.verify.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
|
|
87641
|
+
Q("div", mWe, [Q("span", hWe, J(y.value.debugMaxAttempts), 1), Q("span", gWe, J(I.value.verify.maxAttempts), 1)]),
|
|
87642
|
+
Q("div", _We, [Q("span", vWe, J(y.value.debugAdversarial), 1), Q("span", yWe, J(I.value.verify.adversarial ? y.value.debugOn : y.value.debugOff), 1)]),
|
|
87643
|
+
I.value.verify.adversarial ? (X(), Z("div", bWe, [Q("span", xWe, J(y.value.debugAdversarialModel), 1), Q("span", SWe, J(I.value.model || "-") + J(y.value.debugSameAsMain), 1)])) : $("", !0)
|
|
87637
87644
|
])])) : $("", !0),
|
|
87638
|
-
I.value.todos.length ? (X(), Z("div",
|
|
87645
|
+
I.value.todos.length ? (X(), Z("div", CWe, [Q("div", wWe, "📋 " + J(y.value.debugTodosTitle) + " (" + J(I.value.todos.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.todos, (e, t) => (X(), Z("div", {
|
|
87639
87646
|
key: t,
|
|
87640
87647
|
class: "info-todo"
|
|
87641
87648
|
}, [Q("span", {
|
|
87642
87649
|
class: "todo-tag",
|
|
87643
87650
|
style: RK({ background: he.value[e.status] && he.value[e.status].color || "#9ca3af" })
|
|
87644
87651
|
}, J(ge(e.status)), 5), Q("span", null, J(e.content), 1)]))), 128))])) : $("", !0),
|
|
87645
|
-
I.value.memory ? (X(), Z("div",
|
|
87646
|
-
I.value.lastCompression ? (X(), Z("div",
|
|
87647
|
-
Q("div",
|
|
87648
|
-
Q("div",
|
|
87649
|
-
Q("div",
|
|
87650
|
-
Q("div",
|
|
87651
|
-
Q("div",
|
|
87652
|
-
I.value.lastCompression.decision ? (X(), Z("div",
|
|
87652
|
+
I.value.memory ? (X(), Z("div", TWe, [Q("div", EWe, "📝 " + J(y.value.debugMemoryTitle), 1), Q("pre", DWe, J(I.value.memory), 1)])) : $("", !0),
|
|
87653
|
+
I.value.lastCompression ? (X(), Z("div", OWe, [Q("div", kWe, "🗜️ " + J(y.value.debugLastCompTitle), 1), Q("div", AWe, [
|
|
87654
|
+
Q("div", jWe, [Q("span", MWe, J(y.value.debugTriggered), 1), Q("span", NWe, J(I.value.lastCompression.triggered ? "✓" : y.value.debugNotTriggered), 1)]),
|
|
87655
|
+
Q("div", PWe, [Q("span", FWe, J(y.value.debugRoundsSummarized), 1), Q("span", IWe, J(I.value.lastCompression.roundsSummarized) + " / " + J(I.value.lastCompression.roundsTotal), 1)]),
|
|
87656
|
+
Q("div", LWe, [Q("span", RWe, J(y.value.debugCtxRecalled), 1), Q("span", zWe, J(I.value.lastCompression.roundsRecalled) + J(y.value.debugCountSuffix), 1)]),
|
|
87657
|
+
Q("div", BWe, [Q("span", VWe, J(y.value.debugMessageCount), 1), Q("span", HWe, J(I.value.lastCompression.originalMessages) + " → " + J(I.value.lastCompression.compressedMessages), 1)]),
|
|
87658
|
+
Q("div", UWe, [Q("span", WWe, J(y.value.debugStrategy), 1), Q("span", GWe, J(I.value.lastCompression.strategy), 1)]),
|
|
87659
|
+
I.value.lastCompression.decision ? (X(), Z("div", KWe, [Q("span", qWe, J(y.value.debugDecision), 1), Q("span", JWe, "🤖 " + J(Oe(I.value.lastCompression.decision)), 1)])) : $("", !0)
|
|
87653
87660
|
])])) : $("", !0)
|
|
87654
|
-
], 64)) : (X(), Z("div",
|
|
87661
|
+
], 64)) : (X(), Z("div", oUe, J(y.value.debugNoInfo), 1))])) : $("", !0)
|
|
87655
87662
|
], 512)], 512)], 512)
|
|
87656
87663
|
], 2), Q("div", {
|
|
87657
87664
|
class: "drawer-mask",
|
|
@@ -87661,16 +87668,16 @@ var BBe = {
|
|
|
87661
87668
|
_: 1
|
|
87662
87669
|
})]));
|
|
87663
87670
|
}
|
|
87664
|
-
}), [["__scopeId", "data-v-ffd46605"]]),
|
|
87671
|
+
}), [["__scopeId", "data-v-ffd46605"]]), XWe = { class: "skill-panel" }, ZWe = { class: "skill-header" }, QWe = { class: "skill-title" }, $We = ["title"], eGe = { class: "skill-section" }, tGe = { class: "section-title" }, nGe = ["title"], rGe = { class: "field" }, iGe = { class: "field-label" }, aGe = ["disabled", "placeholder"], oGe = { class: "field" }, sGe = { class: "field-label" }, cGe = ["placeholder"], lGe = { class: "field field-textarea" }, uGe = { class: "field-label" }, dGe = ["placeholder"], fGe = {
|
|
87665
87672
|
key: 0,
|
|
87666
87673
|
class: "skill-error"
|
|
87667
|
-
},
|
|
87674
|
+
}, pGe = { class: "skill-section" }, mGe = { class: "section-title" }, hGe = {
|
|
87668
87675
|
key: 0,
|
|
87669
87676
|
class: "empty-hint"
|
|
87670
|
-
},
|
|
87677
|
+
}, gGe = {
|
|
87671
87678
|
key: 1,
|
|
87672
87679
|
class: "skill-list"
|
|
87673
|
-
},
|
|
87680
|
+
}, _Ge = { class: "skill-actions" }, vGe = ["title", "onClick"], yGe = ["title", "onClick"], bGe = { class: "skill-hint" }, xGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
87674
87681
|
__name: "SkillPanel",
|
|
87675
87682
|
props: {
|
|
87676
87683
|
visible: { type: Boolean },
|
|
@@ -87726,55 +87733,55 @@ var BBe = {
|
|
|
87726
87733
|
key: 0,
|
|
87727
87734
|
class: "skill-mask",
|
|
87728
87735
|
onClick: n[4] || (n[4] = DZ((e) => r("close"), ["self"]))
|
|
87729
|
-
}, [Q("div",
|
|
87730
|
-
Q("div",
|
|
87736
|
+
}, [Q("div", XWe, [
|
|
87737
|
+
Q("div", ZWe, [Q("span", QWe, J(e.messages.skillPanelTitle), 1), Q("button", {
|
|
87731
87738
|
class: "skill-close",
|
|
87732
87739
|
title: e.messages.close,
|
|
87733
87740
|
onClick: n[0] || (n[0] = (e) => r("close"))
|
|
87734
|
-
}, "✕", 8,
|
|
87735
|
-
Q("div",
|
|
87736
|
-
Q("div",
|
|
87741
|
+
}, "✕", 8, $We)]),
|
|
87742
|
+
Q("div", eGe, [
|
|
87743
|
+
Q("div", tGe, [SX(J(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (X(), Z("button", {
|
|
87737
87744
|
key: 0,
|
|
87738
87745
|
class: "btn btn-ghost btn-cancel",
|
|
87739
87746
|
title: e.messages.skillCancelEdit,
|
|
87740
87747
|
onClick: h
|
|
87741
|
-
}, J(e.messages.skillCancelEdit), 9,
|
|
87742
|
-
Q("label",
|
|
87748
|
+
}, J(e.messages.skillCancelEdit), 9, nGe)) : $("", !0)]),
|
|
87749
|
+
Q("label", rGe, [Q("span", iGe, J(e.messages.skillNameLabel), 1), EJ(Q("input", {
|
|
87743
87750
|
"onUpdate:modelValue": n[1] || (n[1] = (e) => i.value = e),
|
|
87744
87751
|
disabled: !!u.value,
|
|
87745
87752
|
placeholder: e.messages.skillNamePlaceholder,
|
|
87746
87753
|
class: "field-input"
|
|
87747
|
-
}, null, 8,
|
|
87748
|
-
Q("label",
|
|
87754
|
+
}, null, 8, aGe), [[EZ, i.value]])]),
|
|
87755
|
+
Q("label", oGe, [Q("span", sGe, J(e.messages.skillDescLabel), 1), EJ(Q("input", {
|
|
87749
87756
|
"onUpdate:modelValue": n[2] || (n[2] = (e) => a.value = e),
|
|
87750
87757
|
placeholder: e.messages.skillDescPlaceholder,
|
|
87751
87758
|
class: "field-input"
|
|
87752
|
-
}, null, 8,
|
|
87753
|
-
Q("label",
|
|
87759
|
+
}, null, 8, cGe), [[EZ, a.value]])]),
|
|
87760
|
+
Q("label", lGe, [Q("span", uGe, J(e.messages.skillContentLabel), 1), EJ(Q("textarea", {
|
|
87754
87761
|
"onUpdate:modelValue": n[3] || (n[3] = (e) => o.value = e),
|
|
87755
87762
|
placeholder: e.messages.skillContentPlaceholder,
|
|
87756
87763
|
rows: "6",
|
|
87757
87764
|
class: "field-input"
|
|
87758
|
-
}, null, 8,
|
|
87759
|
-
s.value ? (X(), Z("div",
|
|
87765
|
+
}, null, 8, dGe), [[EZ, o.value]])]),
|
|
87766
|
+
s.value ? (X(), Z("div", fGe, J(s.value), 1)) : $("", !0),
|
|
87760
87767
|
Q("button", {
|
|
87761
87768
|
class: "btn btn-primary",
|
|
87762
87769
|
onClick: f
|
|
87763
87770
|
}, J(u.value ? e.messages.skillSave : e.messages.skillAdd), 1)
|
|
87764
87771
|
]),
|
|
87765
|
-
Q("div",
|
|
87772
|
+
Q("div", pGe, [Q("div", mGe, J(e.messages.skillCreatedTitle) + "(" + J(c.value.length) + ")", 1), c.value.length ? (X(), Z("ul", gGe, [(X(!0), Z(oX, null, gY(c.value, (t) => (X(), Z("li", {
|
|
87766
87773
|
key: t,
|
|
87767
87774
|
class: "skill-item"
|
|
87768
|
-
}, [Q("span", { class: zK(["skill-name", { active: u.value === t }]) }, J(t), 3), Q("span",
|
|
87775
|
+
}, [Q("span", { class: zK(["skill-name", { active: u.value === t }]) }, J(t), 3), Q("span", _Ge, [Q("button", {
|
|
87769
87776
|
class: "btn btn-ghost btn-edit",
|
|
87770
87777
|
title: e.messages.skillEditTitle,
|
|
87771
87778
|
onClick: (e) => m(t)
|
|
87772
|
-
}, J(e.messages.skillEditBtn), 9,
|
|
87779
|
+
}, J(e.messages.skillEditBtn), 9, vGe), Q("button", {
|
|
87773
87780
|
class: "btn btn-ghost btn-del",
|
|
87774
87781
|
title: e.messages.skillDeleteTitle,
|
|
87775
87782
|
onClick: (e) => p(t)
|
|
87776
|
-
}, J(e.messages.skillDeleteBtn), 9,
|
|
87777
|
-
Q("div",
|
|
87783
|
+
}, J(e.messages.skillDeleteBtn), 9, yGe)])]))), 128))])) : (X(), Z("div", hGe, J(e.messages.skillEmpty), 1))]),
|
|
87784
|
+
Q("div", bGe, [
|
|
87778
87785
|
SX(" 💡 " + J(e.messages.skillHintA) + " ", 1),
|
|
87779
87786
|
n[5] || (n[5] = Q("code", null, "load_skill(name)", -1)),
|
|
87780
87787
|
SX(" " + J(e.messages.skillHintB) + " ", 1),
|
|
@@ -87785,7 +87792,7 @@ var BBe = {
|
|
|
87785
87792
|
_: 1
|
|
87786
87793
|
})]));
|
|
87787
87794
|
}
|
|
87788
|
-
}), [["__scopeId", "data-v-fcd21121"]]),
|
|
87795
|
+
}), [["__scopeId", "data-v-fcd21121"]]), SGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
87789
87796
|
__name: "ChatDialog",
|
|
87790
87797
|
props: {
|
|
87791
87798
|
fetchResponse: {},
|
|
@@ -87976,7 +87983,7 @@ var BBe = {
|
|
|
87976
87983
|
key: 0,
|
|
87977
87984
|
name: "cs-slide"
|
|
87978
87985
|
}, {
|
|
87979
|
-
default: TJ(() => [_Y(t.$slots, "body", { chat: Y(o) }, () => [EJ(bX(
|
|
87986
|
+
default: TJ(() => [_Y(t.$slots, "body", { chat: Y(o) }, () => [EJ(bX(kze, {
|
|
87980
87987
|
"show-avatar": e.showAvatar,
|
|
87981
87988
|
"show-typing": e.showTyping
|
|
87982
87989
|
}, null, 8, ["show-avatar", "show-typing"]), [[lZ, Y(s)]])], !0)]),
|
|
@@ -87985,15 +87992,15 @@ var BBe = {
|
|
|
87985
87992
|
_("queued") ? _Y(t.$slots, "queued", {
|
|
87986
87993
|
key: 1,
|
|
87987
87994
|
chat: Y(o)
|
|
87988
|
-
}, () => [bX(
|
|
87995
|
+
}, () => [bX(zze)], !0) : $("", !0),
|
|
87989
87996
|
_("approval") ? _Y(t.$slots, "approval", {
|
|
87990
87997
|
key: 2,
|
|
87991
87998
|
chat: Y(o)
|
|
87992
|
-
}, () => [bX(
|
|
87999
|
+
}, () => [bX(eBe)], !0) : $("", !0),
|
|
87993
88000
|
_("conflict") ? _Y(t.$slots, "conflict", {
|
|
87994
88001
|
key: 3,
|
|
87995
88002
|
chat: Y(o)
|
|
87996
|
-
}, () => [bX(
|
|
88003
|
+
}, () => [bX(_Be, {
|
|
87997
88004
|
"pending-conflict": e.pendingConflict,
|
|
87998
88005
|
"on-resolve": e.onResolveConflict,
|
|
87999
88006
|
icons: Y(o).icons,
|
|
@@ -88009,7 +88016,7 @@ var BBe = {
|
|
|
88009
88016
|
key: 2,
|
|
88010
88017
|
name: "cs-slide"
|
|
88011
88018
|
}, {
|
|
88012
|
-
default: TJ(() => [_Y(t.$slots, "footer", { chat: Y(o) }, () => [bX(
|
|
88019
|
+
default: TJ(() => [_Y(t.$slots, "footer", { chat: Y(o) }, () => [bX(BBe, {
|
|
88013
88020
|
placeholder: e.placeholder || Y(o).messages.inputPlaceholder,
|
|
88014
88021
|
"input-rows": e.inputRows
|
|
88015
88022
|
}, null, 8, ["placeholder", "input-rows"])], !0)]),
|
|
@@ -88018,7 +88025,7 @@ var BBe = {
|
|
|
88018
88025
|
_("debug") ? _Y(t.$slots, "debug", {
|
|
88019
88026
|
key: 3,
|
|
88020
88027
|
chat: Y(o)
|
|
88021
|
-
}, () => [bX(
|
|
88028
|
+
}, () => [bX(YWe, {
|
|
88022
88029
|
visible: Y(c),
|
|
88023
88030
|
"onUpdate:visible": n[4] || (n[4] = (e) => /* @__PURE__ */ Yq(c) ? c.value = e : null),
|
|
88024
88031
|
logs: e.debugLogs,
|
|
@@ -88047,7 +88054,7 @@ var BBe = {
|
|
|
88047
88054
|
_("skill") ? _Y(t.$slots, "skill", {
|
|
88048
88055
|
key: 4,
|
|
88049
88056
|
chat: Y(o)
|
|
88050
|
-
}, () => [bX(
|
|
88057
|
+
}, () => [bX(xGe, {
|
|
88051
88058
|
visible: Y(l),
|
|
88052
88059
|
"on-add-skill": e.onAddSkill,
|
|
88053
88060
|
"on-remove-skill": e.onRemoveSkill,
|
|
@@ -88070,12 +88077,12 @@ var BBe = {
|
|
|
88070
88077
|
//#endregion
|
|
88071
88078
|
//#region src/core/sdk/mountChatDialog.ts
|
|
88072
88079
|
M();
|
|
88073
|
-
function
|
|
88080
|
+
function CGe(e) {
|
|
88074
88081
|
let { core: t, dialogCfg: n } = e, r = null, i = e.el, a = t.agent.debugLogs;
|
|
88075
88082
|
return r = ASe(/* @__PURE__ */ nY({ setup() {
|
|
88076
88083
|
return () => {
|
|
88077
88084
|
var r;
|
|
88078
|
-
return VX(
|
|
88085
|
+
return VX(SGe, j({
|
|
88079
88086
|
fetchStream: e.streaming ? t.stream : void 0,
|
|
88080
88087
|
fetchResponse: e.streaming ? void 0 : (e, n) => {
|
|
88081
88088
|
if (n) {
|
|
@@ -88202,7 +88209,7 @@ function SGe(e) {
|
|
|
88202
88209
|
};
|
|
88203
88210
|
}
|
|
88204
88211
|
_F(), Xf(), M();
|
|
88205
|
-
function
|
|
88212
|
+
function wGe(e, t, n, r, i) {
|
|
88206
88213
|
let a = [];
|
|
88207
88214
|
e && a.push("vfs_grep + vfs_read(搜预注入文档)"), t && a.push(`${r}(语义检索)`), n && a.push(`${i}(按 source 加载)`), a.push("fetch_document(公网 URL)");
|
|
88208
88215
|
let o = [];
|
|
@@ -88217,7 +88224,7 @@ function CGe(e, t, n, r, i) {
|
|
|
88217
88224
|
|
|
88218
88225
|
你是只读检索角色,不要尝试修改任何数据。不要尝试上面未列出的工具。`;
|
|
88219
88226
|
}
|
|
88220
|
-
function
|
|
88227
|
+
function TGe(e, t, n, r, i) {
|
|
88221
88228
|
let a = [], o = [];
|
|
88222
88229
|
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)
|
|
88223
88230
|
|
|
@@ -88234,12 +88241,12 @@ ${a.join("\n")}
|
|
|
88234
88241
|
## 何时用何源
|
|
88235
88242
|
${o.join("\n")}`;
|
|
88236
88243
|
}
|
|
88237
|
-
var
|
|
88244
|
+
var EGe = {
|
|
88238
88245
|
name: "rag-search",
|
|
88239
88246
|
description: "多源知识检索策略:vfs 预注入文档 → 语义检索 → 指定文档加载 → 公网;综合结构化结论 + 溯源",
|
|
88240
|
-
getContent: () =>
|
|
88247
|
+
getContent: () => TGe(!0, !0, !0, "search_docs", "load_doc")
|
|
88241
88248
|
};
|
|
88242
|
-
function
|
|
88249
|
+
function DGe(e, t, n) {
|
|
88243
88250
|
let r = fF(async ({ query: e, topK: r }) => {
|
|
88244
88251
|
try {
|
|
88245
88252
|
let i = await t(e, { topK: r == null ? n : r });
|
|
@@ -88257,7 +88264,7 @@ function EGe(e, t, n) {
|
|
|
88257
88264
|
});
|
|
88258
88265
|
return BZ([r]), r;
|
|
88259
88266
|
}
|
|
88260
|
-
function
|
|
88267
|
+
function OGe(e, t) {
|
|
88261
88268
|
let n = fF(async ({ source: e }) => {
|
|
88262
88269
|
try {
|
|
88263
88270
|
let n = await t(e), r = Array.isArray(n) ? n : [n];
|
|
@@ -88272,19 +88279,19 @@ function DGe(e, t) {
|
|
|
88272
88279
|
});
|
|
88273
88280
|
return BZ([n]), n;
|
|
88274
88281
|
}
|
|
88275
|
-
function
|
|
88282
|
+
function kGe(e) {
|
|
88276
88283
|
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;
|
|
88277
88284
|
if (!t && !n && r === !1) throw Error("[page-agent-sdk][createRagSubagent] 至少配一种知识源:retriever / loader / useVfs(true)");
|
|
88278
88285
|
let p = [];
|
|
88279
|
-
t && p.push(
|
|
88286
|
+
t && p.push(DGe(s, t, o)), n && p.push(OGe(c, n)), f && p.push(...f);
|
|
88280
88287
|
let m = r ? [
|
|
88281
88288
|
"vfs_grep",
|
|
88282
88289
|
"vfs_read",
|
|
88283
88290
|
"vfs_json_read"
|
|
88284
|
-
] : void 0, h =
|
|
88291
|
+
] : void 0, h = wGe(r, !!t, !!n, s, c), g = {
|
|
88285
88292
|
name: "rag-search",
|
|
88286
|
-
description:
|
|
88287
|
-
getContent: () =>
|
|
88293
|
+
description: EGe.description,
|
|
88294
|
+
getContent: () => TGe(r, !!t, !!n, s, c)
|
|
88288
88295
|
};
|
|
88289
88296
|
return j({
|
|
88290
88297
|
id: i,
|
|
@@ -88298,20 +88305,20 @@ function OGe(e) {
|
|
|
88298
88305
|
}
|
|
88299
88306
|
//#endregion
|
|
88300
88307
|
//#region src/core/components/CodePreview.vue?vue&type=script&setup=true&lang.ts
|
|
88301
|
-
var
|
|
88308
|
+
var AGe = { class: "code-preview-modal" }, jGe = { class: "preview-header" }, MGe = { class: "preview-title" }, NGe = { class: "preview-tabs" }, PGe = ["disabled"], FGe = { class: "preview-actions" }, IGe = ["title"], LGe = {
|
|
88302
88309
|
key: 0,
|
|
88303
88310
|
viewBox: "0 0 16 16",
|
|
88304
88311
|
fill: "none",
|
|
88305
88312
|
"aria-hidden": "true"
|
|
88306
|
-
},
|
|
88313
|
+
}, RGe = {
|
|
88307
88314
|
key: 1,
|
|
88308
88315
|
viewBox: "0 0 16 16",
|
|
88309
88316
|
fill: "none",
|
|
88310
88317
|
"aria-hidden": "true"
|
|
88311
|
-
},
|
|
88318
|
+
}, zGe = ["title"], BGe = ["title"], VGe = { class: "preview-body" }, HGe = ["srcdoc"], UGe = {
|
|
88312
88319
|
key: 1,
|
|
88313
88320
|
class: "preview-source"
|
|
88314
|
-
},
|
|
88321
|
+
}, WGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
|
|
88315
88322
|
__name: "CodePreview",
|
|
88316
88323
|
props: {
|
|
88317
88324
|
code: {},
|
|
@@ -88378,28 +88385,28 @@ app.mount('#app');
|
|
|
88378
88385
|
return (t, n) => (X(), Z("div", {
|
|
88379
88386
|
class: "code-preview-overlay",
|
|
88380
88387
|
onClick: n[3] || (n[3] = DZ((e) => r("close"), ["self"]))
|
|
88381
|
-
}, [Q("div",
|
|
88382
|
-
Q("span",
|
|
88383
|
-
Q("div",
|
|
88388
|
+
}, [Q("div", AGe, [Q("div", jGe, [
|
|
88389
|
+
Q("span", MGe, J(e.messages.codePreviewTitlePrefix) + J(e.lang), 1),
|
|
88390
|
+
Q("div", NGe, [Q("button", {
|
|
88384
88391
|
class: zK({ active: a.value === "preview" }),
|
|
88385
88392
|
disabled: !s.value,
|
|
88386
88393
|
onClick: n[0] || (n[0] = (e) => a.value = "preview")
|
|
88387
|
-
}, J(e.messages.codePreviewTab), 11,
|
|
88394
|
+
}, J(e.messages.codePreviewTab), 11, PGe), Q("button", {
|
|
88388
88395
|
class: zK({ active: a.value === "source" }),
|
|
88389
88396
|
onClick: n[1] || (n[1] = (e) => a.value = "source")
|
|
88390
88397
|
}, J(e.messages.codeSourceTab), 3)]),
|
|
88391
|
-
Q("div",
|
|
88398
|
+
Q("div", FGe, [
|
|
88392
88399
|
Q("button", {
|
|
88393
88400
|
class: zK(["icon-btn", { done: o.value }]),
|
|
88394
88401
|
title: o.value ? e.messages.copied : e.messages.codeCopyTitle,
|
|
88395
88402
|
onClick: u
|
|
88396
|
-
}, [o.value ? (X(), Z("svg",
|
|
88403
|
+
}, [o.value ? (X(), Z("svg", LGe, [...n[4] || (n[4] = [Q("path", {
|
|
88397
88404
|
d: "M3 8.5l3 3 7-7",
|
|
88398
88405
|
stroke: "currentColor",
|
|
88399
88406
|
"stroke-width": "1.6",
|
|
88400
88407
|
"stroke-linecap": "round",
|
|
88401
88408
|
"stroke-linejoin": "round"
|
|
88402
|
-
}, null, -1)])])) : (X(), Z("svg",
|
|
88409
|
+
}, null, -1)])])) : (X(), Z("svg", RGe, [...n[5] || (n[5] = [Q("rect", {
|
|
88403
88410
|
x: "5.5",
|
|
88404
88411
|
y: "5.5",
|
|
88405
88412
|
width: "8",
|
|
@@ -88411,7 +88418,7 @@ app.mount('#app');
|
|
|
88411
88418
|
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",
|
|
88412
88419
|
stroke: "currentColor",
|
|
88413
88420
|
"stroke-width": "1.3"
|
|
88414
|
-
}, null, -1)])]))], 10,
|
|
88421
|
+
}, null, -1)])]))], 10, IGe),
|
|
88415
88422
|
Q("button", {
|
|
88416
88423
|
class: "icon-btn",
|
|
88417
88424
|
title: e.messages.codeOpenTitle,
|
|
@@ -88431,7 +88438,7 @@ app.mount('#app');
|
|
|
88431
88438
|
"stroke-width": "1.3",
|
|
88432
88439
|
"stroke-linecap": "round",
|
|
88433
88440
|
"stroke-linejoin": "round"
|
|
88434
|
-
})], -1)])], 8,
|
|
88441
|
+
})], -1)])], 8, zGe),
|
|
88435
88442
|
Q("button", {
|
|
88436
88443
|
class: "icon-btn",
|
|
88437
88444
|
title: e.messages.close,
|
|
@@ -88445,23 +88452,23 @@ app.mount('#app');
|
|
|
88445
88452
|
stroke: "currentColor",
|
|
88446
88453
|
"stroke-width": "1.4",
|
|
88447
88454
|
"stroke-linecap": "round"
|
|
88448
|
-
})], -1)])], 8,
|
|
88455
|
+
})], -1)])], 8, BGe)
|
|
88449
88456
|
])
|
|
88450
|
-
]), Q("div",
|
|
88457
|
+
]), Q("div", VGe, [a.value === "preview" && s.value ? (X(), Z("iframe", {
|
|
88451
88458
|
key: 0,
|
|
88452
88459
|
ref_key: "iframeRef",
|
|
88453
88460
|
ref: i,
|
|
88454
88461
|
class: "preview-iframe",
|
|
88455
88462
|
sandbox: "allow-scripts allow-modals allow-popups allow-forms",
|
|
88456
88463
|
srcdoc: c.value
|
|
88457
|
-
}, null, 8,
|
|
88464
|
+
}, null, 8, HGe)) : (X(), Z("pre", UGe, [Q("code", null, J(e.code), 1)]))])])]));
|
|
88458
88465
|
}
|
|
88459
88466
|
}), [["__scopeId", "data-v-27eac25e"]]);
|
|
88460
88467
|
//#endregion
|
|
88461
88468
|
//#region src/core/index.ts
|
|
88462
88469
|
Xf();
|
|
88463
|
-
function
|
|
88464
|
-
return oMe(e,
|
|
88470
|
+
function GGe(e) {
|
|
88471
|
+
return oMe(e, CGe);
|
|
88465
88472
|
}
|
|
88466
88473
|
//#endregion
|
|
88467
|
-
export {
|
|
88474
|
+
export { eBe as ApprovalBar, O8 as CAPABILITIES, pje as CONTEXT_PRESETS, SGe as ChatDialog, aIe as ChatHeader, BBe as ChatInput, WGe as CodePreview, IAe as CompressDecisionSchema, _Be as ConflictBar, Cje as DEFAULT_COMPUTED_STYLES, z7 as DEFAULT_DIALOG_ICONS, G$ as DEFAULT_PROMPT_SOFT_CAP, pke as DEFAULT_SYSTEM_PROMPT, mke as DEFAULT_SYSTEM_PROMPT_EN, YWe as DebugDrawer, gIe as FocusBar, zRe as HLJS_BLOCK_MAX_CHARS, Gke as HTML_VOID_TAGS, c1 as HUMAN_CONFIRM_TOOL_NAME, v9 as IconGlyph, FZ as ImageInputError, SPe as MESSAGES_EN_US, B7 as MESSAGES_ZH_CN, yF as MIN_CONTEXT_WINDOW, ZZ as MODEL_UNAVAILABLE_GUIDANCE, XRe as MessageContent, kze as MessageList, yze as MessageRow, zze as QueuedBar, nTe as SOFT_CAP_MIN_WINDOW, z$ as STOP_WORDS, xGe as SkillPanel, i$ as UNSAFE_KEYS, Lje as actionsToInspectInfo, Ije as actionsToTools, PSe as agentError, x1 as analyzeContext, v$ as applyPatchToClone, Bwe as applyPatchToLive, X6 as applyPatchesToBind, zQ as arrayMinLength, PZ as asAgentError, yAe as buildCollectorJs, F8 as buildCssPath, P6 as buildDataPrompt, f8 as buildDiagnosticsReport, h8 as buildHtmlFragmentSkill, bAe as buildSandboxSrcdoc, hke as buildSystemPrompt, V7 as chatContextKey, Y6 as commitSetToBind, TAe as composeStructureThenRender, LZ as compressImage, fke as connectMcp, QG as constructLlmFromConfig, ZG as constructOpenLlmSync, R7 as copyText, jQ as createAgent, s1 as createApprovalMiddleware, TPe as createChatContext, GGe as createChatSdk, m1 as createCheckpointManager, h1 as createCheckpointMiddleware, KAe as createConflictManager, S1 as createContextInspectorMiddleware, t8 as createDataOps, kAe as createHtmlFormatCheck, wAe as createHtmlRenderCheck, MAe as createHtmlSubagent, u1 as createHumanConfirmMiddleware, l1 as createHumanConfirmTool, w8 as createMemoryBackend, o1 as createMemoryMiddleware, bge as createProxyLlm, kGe as createRagSubagent, $Z as createSandboxRunner, fje as createSdkEvents, Qje as createSerialRunner, D8 as createSessionStore, Yje as createSkillStore, n1 as createSubagentMiddleware, Y$ as createSubagentTracker, r1 as createSubagentsMiddleware, Wje as createUsageHintsMiddleware, g1 as createVerifyMiddleware, bke as createVfs, T8 as createWebStorageBackend, _1 as createWriteBackCheck, QZ as decorateModelUnavailable, u$ as deepClone, Bje as defineDataToolset, Hwe as defineSkill, NAe as defineTool, l$ as deleteByPath, LAe as deriveTitle, JQ as describeSchemaNode, TQ as detectGarbledToolCall, _Q as detectTransitionalReply, w$ as diffObjects, L8 as domInfoTool, R8 as domInspectSkill, I8 as domSearchTool, xje as domToStructure, M8 as domTools, zje as domToolsStatic, BQ as elementSchemaCandidates, P8 as ensureDomListenerRecorder, V$ as estimateMessageTokens, H$ as estimateRoundTokens, xF as estimateTokens, eK as extractReasoningDelta, r$ as extractSchemaHint, cke as extractText, $G as extractTextDelta, tK as extractUsage, j8 as fetchDocTools, Rje as fetchTools, C$ as findStrippedKeys, YQ as formatConstraints, jZ as formatZodIssues, s$ as getByPath, Sje as getDomTool, Oje as getElementInfo, Aje as getEnvSummary, Tje as getRecordedListeners, SAe as getSandboxLifecycle, FQ as getSchemaAtPath, MQ as getSchemaTopKeys, g$ as hashValue, OAe as htmlFragmentSkill, e$ as htmlOrchestratorPrompt, U$ as indexSummarize, Nje as inspectEnvTool, Pje as inspectTools, g8 as isChatModel, YZ as isContextLengthError, g9 as isIconHtml, XZ as isModelUnavailableError, NQ as isPathAllowed, x8 as isQuotaError, a$ as isUnsafePath, iQ as jpEval, NZ as jsonParseError, p$ as limitDepth, GRe as markedToHtml, gAe as maskUrlCredentials, d$ as maybeParseValue, fAe as measureWriteScale, b$ as moveByPath, XG as normalizeBaseUrl, vAe as normalizeRenderResult, nK as normalizeUsage, CF as offloadPassThroughChars, SF as offloadThresholdChars, Cwe as presets, vwe as projectBySchema, GQ as projectBySchemaDeep, f$ as projectFields, W$ as recallRounds, CAe as renderInSandbox, Q9 as renderMarkdownHtml, XQ as renderSchemaHint, ZQ as renderSchemaOverview, $Q as renderSchemaShallow, k8 as resolveCapabilities, A8 as resolveContextOptions, dje as resolveDialogConfig, xPe as resolveDialogIcons, wPe as resolveDialogMessages, GAe as resolveLlm, bF as resolveModelCaps, K$ as resolvePromptSoftCap, IQ as resolveSchemaPath, uje as resolveStorage, S$ as restoreInPlace, x$ as restoreLive, NSe as routeError, sQ as runSandboxedScript, o$ as safeMerge, z8 as safeSerialize, m$ as safeStringify, EQ as sanitizeGarbledContent, TFe as sanitizeIconHtml, OFe as sanitizeMessageHtml, RQ as schemaHasRefinement, Eje as searchDom, aQ as searchJson, Vje as selectBuiltinTools, c$ as setByPath, q$ as shouldTriggerCompression, p8 as stringifyDiagnosticsReport, YG as stripStainlessFetch, t$ as systemPromptHelpers, B$ as tokenize, AZ as toolError, PQ as unwrapSchema, bPe as useChat, H7 as useChatContext, LQ as validateAtPath, n8 as validateHtmlFormat, J6 as validateRootValueLocally, Rke as validateWriteLocally, _$ as watchFieldsHash, Yne as z, MZ as zodError };
|