page-agent-sdk 4.23.1 → 4.23.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/dist/page-agent-sdk.iife.js +117 -117
- package/dist/page-agent-sdk.js +1439 -1388
- package/dist/page-agent-sdk.legacy.js +675 -624
- package/dist/page-agent-sdk.umd.cjs +27 -27
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -80824,51 +80824,85 @@ var _Be = ["open"], vBe = { class: "sub-reason-head" }, yBe = { class: "sub-reas
|
|
|
80824
80824
|
class: "sub-reason-body"
|
|
80825
80825
|
}, J(s.value) + J(e.subReason), 513)], 40, _Be));
|
|
80826
80826
|
}
|
|
80827
|
-
}), [["__scopeId", "data-v-
|
|
80827
|
+
}), [["__scopeId", "data-v-438cc063"]]), SBe = ["src", "alt"], CBe = ["title", "aria-label"], wBe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
80828
|
+
__name: "ImageLightbox",
|
|
80829
|
+
props: {
|
|
80830
|
+
src: {},
|
|
80831
|
+
alt: {},
|
|
80832
|
+
closeTitle: {}
|
|
80833
|
+
},
|
|
80834
|
+
emits: ["close"],
|
|
80835
|
+
setup(e, { emit: t }) {
|
|
80836
|
+
let n = e, r = t, i = "", a = (e) => {
|
|
80837
|
+
typeof document > "u" || (e ? (i = document.body.style.overflow, document.body.style.overflow = "hidden") : i !== "" && (document.body.style.overflow = i, i = ""));
|
|
80838
|
+
};
|
|
80839
|
+
gJ(() => n.src, (e) => a(!!e), { immediate: !0 }), eY(() => a(!1));
|
|
80840
|
+
let o = (e) => {
|
|
80841
|
+
e.key === "Escape" && n.src && r("close");
|
|
80842
|
+
};
|
|
80843
|
+
return $J(() => window.addEventListener("keydown", o)), eY(() => window.removeEventListener("keydown", o)), (t, n) => (X(), tX(DJ, { to: "body" }, [e.src ? (X(), Z("div", {
|
|
80844
|
+
key: 0,
|
|
80845
|
+
class: "pg-image-viewer",
|
|
80846
|
+
"data-test": "image-viewer",
|
|
80847
|
+
onClick: n[2] || (n[2] = (e) => r("close"))
|
|
80848
|
+
}, [Q("img", {
|
|
80849
|
+
class: "pg-image-viewer-img",
|
|
80850
|
+
src: e.src,
|
|
80851
|
+
alt: e.alt,
|
|
80852
|
+
onClick: n[0] || (n[0] = mZ(() => {}, ["stop"]))
|
|
80853
|
+
}, null, 8, SBe), Q("button", {
|
|
80854
|
+
type: "button",
|
|
80855
|
+
class: "pg-image-viewer-close",
|
|
80856
|
+
title: e.closeTitle,
|
|
80857
|
+
"aria-label": e.closeTitle,
|
|
80858
|
+
onClick: n[1] || (n[1] = (e) => r("close"))
|
|
80859
|
+
}, "✕", 8, CBe)])) : $("", !0)]));
|
|
80860
|
+
}
|
|
80861
|
+
}), [["__scopeId", "data-v-b4b0e457"]]);
|
|
80828
80862
|
//#endregion
|
|
80829
80863
|
//#region src/core/components/message/MessageSteps.vue?vue&type=script&setup=true&lang.ts
|
|
80830
80864
|
M();
|
|
80831
|
-
var
|
|
80865
|
+
var TBe = {
|
|
80832
80866
|
key: 0,
|
|
80833
80867
|
class: "steps-block"
|
|
80834
|
-
},
|
|
80868
|
+
}, EBe = { class: "step-head" }, DBe = { class: "step-name" }, OBe = {
|
|
80835
80869
|
key: 0,
|
|
80836
80870
|
class: "step-detail-hint"
|
|
80837
|
-
},
|
|
80871
|
+
}, kBe = ["title"], ABe = {
|
|
80838
80872
|
key: 2,
|
|
80839
80873
|
class: "step-count"
|
|
80840
|
-
},
|
|
80874
|
+
}, jBe = {
|
|
80841
80875
|
key: 3,
|
|
80842
80876
|
class: "step-duration"
|
|
80843
|
-
},
|
|
80877
|
+
}, MBe = ["onClick"], NBe = {
|
|
80844
80878
|
key: 0,
|
|
80845
80879
|
class: "step-shots",
|
|
80846
80880
|
"data-test": "step-shots"
|
|
80847
|
-
},
|
|
80881
|
+
}, PBe = ["title", "onClick"], FBe = ["src", "alt"], IBe = {
|
|
80848
80882
|
key: 1,
|
|
80849
80883
|
class: "step-detail"
|
|
80850
|
-
},
|
|
80884
|
+
}, LBe = {
|
|
80851
80885
|
key: 0,
|
|
80852
80886
|
class: "step-detail-call-label"
|
|
80853
|
-
},
|
|
80887
|
+
}, RBe = {
|
|
80854
80888
|
key: 1,
|
|
80855
80889
|
class: "step-detail-section"
|
|
80856
|
-
},
|
|
80890
|
+
}, zBe = { class: "step-detail-head" }, BBe = ["onClick"], VBe = { class: "step-detail-pre" }, HBe = {
|
|
80857
80891
|
key: 2,
|
|
80858
80892
|
class: "step-detail-section"
|
|
80859
|
-
},
|
|
80893
|
+
}, UBe = { class: "step-detail-head" }, WBe = ["onClick"], GBe = {
|
|
80860
80894
|
key: 3,
|
|
80861
80895
|
class: "step-detail-empty"
|
|
80862
|
-
},
|
|
80896
|
+
}, KBe = {
|
|
80863
80897
|
key: 3,
|
|
80864
80898
|
class: "step-children"
|
|
80865
|
-
},
|
|
80899
|
+
}, qBe = { class: "step-children-label" }, JBe = { class: "step-name" }, YBe = {
|
|
80866
80900
|
key: 0,
|
|
80867
80901
|
class: "step-count"
|
|
80868
|
-
},
|
|
80902
|
+
}, XBe = {
|
|
80869
80903
|
key: 1,
|
|
80870
80904
|
class: "step-status running"
|
|
80871
|
-
},
|
|
80905
|
+
}, ZBe = 2e3, QBe = 4e3, $Be = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
80872
80906
|
__name: "MessageSteps",
|
|
80873
80907
|
props: {
|
|
80874
80908
|
steps: {},
|
|
@@ -80945,10 +80979,11 @@ var SBe = {
|
|
|
80945
80979
|
function d(e) {
|
|
80946
80980
|
u.toggle(e);
|
|
80947
80981
|
}
|
|
80948
|
-
|
|
80982
|
+
let f = /* @__PURE__ */ Iq(void 0);
|
|
80983
|
+
function p(e) {
|
|
80949
80984
|
return !!(e != null && e.some((e) => e.args != null || e.result != null));
|
|
80950
80985
|
}
|
|
80951
|
-
function
|
|
80986
|
+
function m(e) {
|
|
80952
80987
|
if (e == null) return {
|
|
80953
80988
|
text: "",
|
|
80954
80989
|
truncated: !1
|
|
@@ -80959,36 +80994,36 @@ var SBe = {
|
|
|
80959
80994
|
} catch (t) {
|
|
80960
80995
|
n = String(e);
|
|
80961
80996
|
}
|
|
80962
|
-
return n.length >
|
|
80963
|
-
text: n.slice(0,
|
|
80997
|
+
return n.length > ZBe ? {
|
|
80998
|
+
text: n.slice(0, ZBe) + t.messages.displayTruncatedSuffix,
|
|
80964
80999
|
truncated: !0
|
|
80965
81000
|
} : {
|
|
80966
81001
|
text: n,
|
|
80967
81002
|
truncated: !1
|
|
80968
81003
|
};
|
|
80969
81004
|
}
|
|
80970
|
-
function
|
|
81005
|
+
function h(e) {
|
|
80971
81006
|
try {
|
|
80972
81007
|
let t = JSON.parse(e);
|
|
80973
81008
|
if (t && typeof t == "object") return JSON.stringify(t, null, 2);
|
|
80974
81009
|
} catch (e) {}
|
|
80975
81010
|
return e;
|
|
80976
81011
|
}
|
|
80977
|
-
function
|
|
81012
|
+
function g(e) {
|
|
80978
81013
|
if (e == null || e === "") return {
|
|
80979
81014
|
text: "",
|
|
80980
81015
|
truncated: !1
|
|
80981
81016
|
};
|
|
80982
|
-
let n =
|
|
80983
|
-
return n.length >
|
|
80984
|
-
text: n.slice(0,
|
|
81017
|
+
let n = h(e);
|
|
81018
|
+
return n.length > QBe ? {
|
|
81019
|
+
text: n.slice(0, QBe) + t.messages.displayTruncatedSuffix,
|
|
80985
81020
|
truncated: !0
|
|
80986
81021
|
} : {
|
|
80987
81022
|
text: n,
|
|
80988
81023
|
truncated: !1
|
|
80989
81024
|
};
|
|
80990
81025
|
}
|
|
80991
|
-
function
|
|
81026
|
+
function _(e, t, n) {
|
|
80992
81027
|
if (t && n != null) {
|
|
80993
81028
|
let e;
|
|
80994
81029
|
try {
|
|
@@ -81001,62 +81036,61 @@ var SBe = {
|
|
|
81001
81036
|
}
|
|
81002
81037
|
I7(e);
|
|
81003
81038
|
}
|
|
81004
|
-
return (t, s) => e.steps.length ? (X(), Z("div",
|
|
81039
|
+
return (t, s) => (X(), Z(KY, null, [e.steps.length ? (X(), Z("div", TBe, [(X(!0), Z(KY, null, nY(i.value, (t, i) => {
|
|
81005
81040
|
var s, c;
|
|
81006
81041
|
return X(), Z("div", {
|
|
81007
81042
|
key: i,
|
|
81008
81043
|
class: TK(["step-item", t.status])
|
|
81009
81044
|
}, [
|
|
81010
|
-
Q("div",
|
|
81045
|
+
Q("div", EBe, [
|
|
81011
81046
|
Q("span", { class: TK(["status-dot", t.status]) }, null, 2),
|
|
81012
|
-
Q("span",
|
|
81013
|
-
t.detail && t.count === 1 ? (X(), Z("span",
|
|
81047
|
+
Q("span", DBe, J(t.title), 1),
|
|
81048
|
+
t.detail && t.count === 1 ? (X(), Z("span", OBe, J(t.detail), 1)) : $("", !0),
|
|
81014
81049
|
a(t.name) ? (X(), Z("span", {
|
|
81015
81050
|
key: 1,
|
|
81016
81051
|
class: "subagent-badge",
|
|
81017
81052
|
title: e.messages.subagentBadgeTitle
|
|
81018
|
-
}, [oX(g9, { icon: e.icons.subagent }, null, 8, ["icon"]), cX(" " + J(e.messages.subagentBadge), 1)], 8,
|
|
81019
|
-
t.count > 1 ? (X(), Z("span",
|
|
81053
|
+
}, [oX(g9, { icon: e.icons.subagent }, null, 8, ["icon"]), cX(" " + J(e.messages.subagentBadge), 1)], 8, kBe)) : $("", !0),
|
|
81054
|
+
t.count > 1 ? (X(), Z("span", ABe, "×" + J(t.count), 1)) : $("", !0),
|
|
81020
81055
|
Q("span", { class: TK(["step-status", t.status]) }, [oX(_9, { text: n(t.status) }, null, 8, ["text"])], 2),
|
|
81021
|
-
t.durationMs != null && t.status !== "running" ? (X(), Z("span",
|
|
81022
|
-
|
|
81056
|
+
t.durationMs != null && t.status !== "running" ? (X(), Z("span", jBe, J(o(t.durationMs)), 1)) : $("", !0),
|
|
81057
|
+
p(t.calls) ? (X(), Z("button", {
|
|
81023
81058
|
key: 4,
|
|
81024
81059
|
type: "button",
|
|
81025
81060
|
class: TK(["step-detail-toggle", { open: u.has(i) }]),
|
|
81026
81061
|
onClick: (e) => d(i)
|
|
81027
|
-
}, J(u.has(i) ? e.messages.collapse : e.messages.expand), 11,
|
|
81062
|
+
}, J(u.has(i) ? e.messages.collapse : e.messages.expand), 11, MBe)) : $("", !0)
|
|
81028
81063
|
]),
|
|
81029
|
-
(s = t.calls) != null && s.some((e) => e.image) ? (X(), Z("div",
|
|
81030
|
-
|
|
81031
|
-
|
|
81032
|
-
|
|
81033
|
-
|
|
81034
|
-
|
|
81035
|
-
|
|
81036
|
-
|
|
81037
|
-
|
|
81038
|
-
|
|
81039
|
-
|
|
81040
|
-
|
|
81041
|
-
|
|
81042
|
-
|
|
81043
|
-
|
|
81044
|
-
|
|
81045
|
-
u.has(i) && (c = t.calls) != null && c.length ? (X(), Z("div", NBe, [(X(!0), Z(KY, null, nY(t.calls, (n, r) => (X(), Z("div", {
|
|
81064
|
+
(s = t.calls) != null && s.some((e) => e.image) ? (X(), Z("div", NBe, [(X(!0), Z(KY, null, nY(t.calls, (t, n) => fJ((X(), Z("button", {
|
|
81065
|
+
key: n,
|
|
81066
|
+
type: "button",
|
|
81067
|
+
class: "step-shot",
|
|
81068
|
+
title: e.messages.screenshotAlt,
|
|
81069
|
+
onClick: (e) => {
|
|
81070
|
+
var n;
|
|
81071
|
+
return f.value = (n = t.image) == null ? void 0 : n.dataUri;
|
|
81072
|
+
}
|
|
81073
|
+
}, [t.image ? (X(), Z("img", {
|
|
81074
|
+
key: 0,
|
|
81075
|
+
class: "step-shot-img",
|
|
81076
|
+
src: t.image.thumb || t.image.dataUri,
|
|
81077
|
+
alt: e.messages.screenshotAlt
|
|
81078
|
+
}, null, 8, FBe)) : $("", !0)], 8, PBe)), [[XX, t.image]])), 128))])) : $("", !0),
|
|
81079
|
+
u.has(i) && (c = t.calls) != null && c.length ? (X(), Z("div", IBe, [(X(!0), Z(KY, null, nY(t.calls, (n, r) => (X(), Z("div", {
|
|
81046
81080
|
key: r,
|
|
81047
81081
|
class: "step-detail-call"
|
|
81048
81082
|
}, [
|
|
81049
|
-
t.count > 1 ? (X(), Z("div",
|
|
81050
|
-
|
|
81083
|
+
t.count > 1 ? (X(), Z("div", LBe, J(e.messages.nthCallPrefix) + J(r + 1) + J(e.messages.nthCallSuffix), 1)) : $("", !0),
|
|
81084
|
+
m(n.args).text ? (X(), Z("div", RBe, [Q("div", zBe, [cX(J(e.messages.argsLabel), 1), Q("button", {
|
|
81051
81085
|
type: "button",
|
|
81052
81086
|
class: "step-detail-copy",
|
|
81053
|
-
onClick: (e) =>
|
|
81054
|
-
}, J(e.messages.copy), 9,
|
|
81055
|
-
n.status !== "running" &&
|
|
81087
|
+
onClick: (e) => _(m(n.args).text, m(n.args).truncated, n.args)
|
|
81088
|
+
}, J(e.messages.copy), 9, BBe)]), Q("pre", VBe, J(m(n.args).text), 1)])) : $("", !0),
|
|
81089
|
+
n.status !== "running" && g(n.result).text ? (X(), Z("div", HBe, [Q("div", UBe, [cX(J(e.messages.resultLabel), 1), Q("button", {
|
|
81056
81090
|
type: "button",
|
|
81057
81091
|
class: "step-detail-copy",
|
|
81058
|
-
onClick: (e) => g(
|
|
81059
|
-
}, J(e.messages.copy), 9,
|
|
81092
|
+
onClick: (e) => _(g(n.result).text, g(n.result).truncated, n.result)
|
|
81093
|
+
}, J(e.messages.copy), 9, WBe)]), Q("pre", { class: TK(["step-detail-pre", { err: n.status === "error" }]) }, J(g(n.result).text), 3)])) : n.status !== "running" && !g(n.result).text ? (X(), Z("div", GBe, J(e.messages.noResult), 1)) : $("", !0)
|
|
81060
81094
|
]))), 128))])) : $("", !0),
|
|
81061
81095
|
t.subReason ? (X(), tX(xBe, {
|
|
81062
81096
|
key: 2,
|
|
@@ -81070,19 +81104,28 @@ var SBe = {
|
|
|
81070
81104
|
"status",
|
|
81071
81105
|
"messages"
|
|
81072
81106
|
])) : $("", !0),
|
|
81073
|
-
t.children && t.children.length ? (X(), Z("div",
|
|
81107
|
+
t.children && t.children.length ? (X(), Z("div", KBe, [Q("div", qBe, [oX(g9, { icon: e.icons.subagentProgress }, null, 8, ["icon"]), cX(" " + J(e.messages.subagentProgress), 1)]), (X(!0), Z(KY, null, nY(r(t.children), (e, t) => (X(), Z("div", {
|
|
81074
81108
|
key: t,
|
|
81075
81109
|
class: TK(["step-child", e.status])
|
|
81076
81110
|
}, [
|
|
81077
81111
|
Q("span", { class: TK(["status-dot sm", e.status]) }, null, 2),
|
|
81078
|
-
Q("span",
|
|
81079
|
-
e.count > 1 ? (X(), Z("span",
|
|
81080
|
-
e.status === "running" ? (X(), Z("span",
|
|
81112
|
+
Q("span", JBe, J(e.title), 1),
|
|
81113
|
+
e.count > 1 ? (X(), Z("span", YBe, "×" + J(e.count), 1)) : $("", !0),
|
|
81114
|
+
e.status === "running" ? (X(), Z("span", XBe, "…")) : $("", !0)
|
|
81081
81115
|
], 2))), 128))])) : $("", !0)
|
|
81082
81116
|
], 2);
|
|
81083
|
-
}), 128))])) : $("", !0)
|
|
81084
|
-
|
|
81085
|
-
|
|
81117
|
+
}), 128))])) : $("", !0), oX(wBe, {
|
|
81118
|
+
src: f.value,
|
|
81119
|
+
alt: e.messages.screenshotAlt,
|
|
81120
|
+
"close-title": e.messages.close,
|
|
81121
|
+
onClose: s[0] || (s[0] = (e) => f.value = void 0)
|
|
81122
|
+
}, null, 8, [
|
|
81123
|
+
"src",
|
|
81124
|
+
"alt",
|
|
81125
|
+
"close-title"
|
|
81126
|
+
])], 64));
|
|
81127
|
+
}
|
|
81128
|
+
}), [["__scopeId", "data-v-89cf9a75"]]);
|
|
81086
81129
|
M(), k();
|
|
81087
81130
|
var v9;
|
|
81088
81131
|
function y9() {
|
|
@@ -81100,7 +81143,7 @@ function y9() {
|
|
|
81100
81143
|
};
|
|
81101
81144
|
}
|
|
81102
81145
|
var b9 = y9();
|
|
81103
|
-
function
|
|
81146
|
+
function eVe(e) {
|
|
81104
81147
|
b9 = e;
|
|
81105
81148
|
}
|
|
81106
81149
|
var x9 = { exec: () => null };
|
|
@@ -81121,7 +81164,7 @@ function C9(e, t = "") {
|
|
|
81121
81164
|
};
|
|
81122
81165
|
return r;
|
|
81123
81166
|
}
|
|
81124
|
-
var
|
|
81167
|
+
var tVe = ((e = "") => {
|
|
81125
81168
|
try {
|
|
81126
81169
|
return !!RegExp("(?<=1)(?<!1)" + e);
|
|
81127
81170
|
} catch (e) {
|
|
@@ -81184,91 +81227,91 @@ var QBe = ((e = "") => {
|
|
|
81184
81227
|
headingBeginRegex: S9((e) => RegExp(`^ {0,${e}}#`)),
|
|
81185
81228
|
htmlBeginRegex: S9((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
|
|
81186
81229
|
blockquoteBeginRegex: S9((e) => RegExp(`^ {0,${e}}>`))
|
|
81187
|
-
},
|
|
81188
|
-
blockquote: C9(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",
|
|
81189
|
-
code:
|
|
81190
|
-
def:
|
|
81191
|
-
fences:
|
|
81192
|
-
heading:
|
|
81230
|
+
}, nVe = /^(?:[ \t]*(?:\n|$))+/, rVe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, iVe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, T9 = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, aVe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, E9 = / {0,3}(?:[*+-]|\d{1,9}[.)])/, oVe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, sVe = C9(oVe).replace(/bull/g, E9).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(), cVe = C9(oVe).replace(/bull/g, E9).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(), D9 = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, lVe = /^[^\n]+/, O9 = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, uVe = C9(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", O9).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), dVe = C9(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, E9).getRegex(), k9 = "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", A9 = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, fVe = C9("^ {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", A9).replace("tag", k9).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), pVe = (e) => C9(D9).replace("hr", T9).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", k9).getRegex(), mVe = pVe(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), hVe = pVe(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), j9 = {
|
|
81231
|
+
blockquote: C9(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", hVe).getRegex(),
|
|
81232
|
+
code: rVe,
|
|
81233
|
+
def: uVe,
|
|
81234
|
+
fences: iVe,
|
|
81235
|
+
heading: aVe,
|
|
81193
81236
|
hr: T9,
|
|
81194
|
-
html:
|
|
81195
|
-
lheading:
|
|
81196
|
-
list:
|
|
81197
|
-
newline:
|
|
81198
|
-
paragraph:
|
|
81237
|
+
html: fVe,
|
|
81238
|
+
lheading: sVe,
|
|
81239
|
+
list: dVe,
|
|
81240
|
+
newline: nVe,
|
|
81241
|
+
paragraph: mVe,
|
|
81199
81242
|
table: x9,
|
|
81200
|
-
text:
|
|
81201
|
-
},
|
|
81202
|
-
lheading:
|
|
81203
|
-
table:
|
|
81204
|
-
paragraph: C9(D9).replace("hr", T9).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table",
|
|
81205
|
-
}),
|
|
81243
|
+
text: lVe
|
|
81244
|
+
}, gVe = C9("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", T9).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", k9).getRegex(), _Ve = j(j({}, j9), {}, {
|
|
81245
|
+
lheading: cVe,
|
|
81246
|
+
table: gVe,
|
|
81247
|
+
paragraph: C9(D9).replace("hr", T9).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", gVe).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", k9).getRegex()
|
|
81248
|
+
}), vVe = j(j({}, j9), {}, {
|
|
81206
81249
|
html: C9("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", A9).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(),
|
|
81207
81250
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
81208
81251
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
81209
81252
|
fences: x9,
|
|
81210
81253
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
81211
|
-
paragraph: C9(D9).replace("hr", T9).replace("heading", " *#{1,6} *[^\n]").replace("lheading",
|
|
81212
|
-
}),
|
|
81254
|
+
paragraph: C9(D9).replace("hr", T9).replace("heading", " *#{1,6} *[^\n]").replace("lheading", sVe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
81255
|
+
}), yVe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, bVe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xVe = /^( {2,}|\\)\n(?!\s*$)/, SVe = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, M9 = /* @__PURE__ */ RegExp("[\\p{P}\\p{S}]", "u"), N9 = /* @__PURE__ */ RegExp("[\\s\\p{P}\\p{S}]", "u"), P9 = /* @__PURE__ */ RegExp("[^\\s\\p{P}\\p{S}]", "u"), CVe = C9(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, N9).getRegex(), wVe = /* @__PURE__ */ RegExp("(?!~)[\\p{P}\\p{S}]", "u"), TVe = /* @__PURE__ */ RegExp("(?!~)[\\s\\p{P}\\p{S}]", "u"), EVe = /* @__PURE__ */ RegExp("(?:[^\\s\\p{P}\\p{S}]|~)", "u"), DVe = C9(/link|precode-code|html/, "g").replace("link", /* @__PURE__ */ RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)", "")).replace("precode-", tVe ? "(?<!`)()" : "(^^|[^`])").replace("code", /* @__PURE__ */ RegExp("(?<b>`+)[^`]+\\k<b>(?!`)", "")).replace("html", /<(?! )[^<>]*?>/).getRegex(), OVe = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, kVe = C9(OVe, "u").replace(/punct/g, M9).getRegex(), AVe = C9(OVe, "u").replace(/punct/g, wVe).getRegex(), jVe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", MVe = C9(jVe, "gu").replace(/notPunctSpace/g, P9).replace(/punctSpace/g, N9).replace(/punct/g, M9).getRegex(), NVe = C9(jVe, "gu").replace(/notPunctSpace/g, EVe).replace(/punctSpace/g, TVe).replace(/punct/g, wVe).getRegex(), PVe = C9("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, P9).replace(/punctSpace/g, N9).replace(/punct/g, M9).getRegex(), FVe = C9(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, M9).getRegex(), IVe = C9("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, P9).replace(/punctSpace/g, N9).replace(/punct/g, M9).getRegex(), LVe = C9(/\\(punct)/, "gu").replace(/punct/g, M9).getRegex(), RVe = C9(/^<(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(), zVe = C9(A9).replace("(?:-->|$)", "-->").getRegex(), BVe = C9("^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", zVe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), F9 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, VVe = C9(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", F9).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), HVe = C9(/^!?\[(label)\]\[(ref)\]/).replace("label", F9).replace("ref", O9).getRegex(), UVe = C9(/^!?\[(ref)\](?:\[\])?/).replace("ref", O9).getRegex(), WVe = C9("reflink|nolink(?!\\()", "g").replace("reflink", HVe).replace("nolink", UVe).getRegex(), GVe = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, I9 = {
|
|
81213
81256
|
_backpedal: x9,
|
|
81214
|
-
anyPunctuation:
|
|
81215
|
-
autolink:
|
|
81216
|
-
blockSkip:
|
|
81217
|
-
br:
|
|
81218
|
-
code:
|
|
81257
|
+
anyPunctuation: LVe,
|
|
81258
|
+
autolink: RVe,
|
|
81259
|
+
blockSkip: DVe,
|
|
81260
|
+
br: xVe,
|
|
81261
|
+
code: bVe,
|
|
81219
81262
|
del: x9,
|
|
81220
81263
|
delLDelim: x9,
|
|
81221
81264
|
delRDelim: x9,
|
|
81222
|
-
emStrongLDelim:
|
|
81223
|
-
emStrongRDelimAst:
|
|
81224
|
-
emStrongRDelimUnd:
|
|
81225
|
-
escape:
|
|
81226
|
-
link:
|
|
81227
|
-
nolink:
|
|
81228
|
-
punctuation:
|
|
81229
|
-
reflink:
|
|
81230
|
-
reflinkSearch:
|
|
81231
|
-
tag:
|
|
81232
|
-
text:
|
|
81265
|
+
emStrongLDelim: kVe,
|
|
81266
|
+
emStrongRDelimAst: MVe,
|
|
81267
|
+
emStrongRDelimUnd: PVe,
|
|
81268
|
+
escape: yVe,
|
|
81269
|
+
link: VVe,
|
|
81270
|
+
nolink: UVe,
|
|
81271
|
+
punctuation: CVe,
|
|
81272
|
+
reflink: HVe,
|
|
81273
|
+
reflinkSearch: WVe,
|
|
81274
|
+
tag: BVe,
|
|
81275
|
+
text: SVe,
|
|
81233
81276
|
url: x9
|
|
81234
|
-
},
|
|
81277
|
+
}, KVe = j(j({}, I9), {}, {
|
|
81235
81278
|
link: C9(/^!?\[(label)\]\((.*?)\)/).replace("label", F9).getRegex(),
|
|
81236
81279
|
reflink: C9(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", F9).getRegex()
|
|
81237
81280
|
}), L9 = j(j({}, I9), {}, {
|
|
81238
|
-
emStrongRDelimAst:
|
|
81239
|
-
emStrongLDelim:
|
|
81240
|
-
delLDelim:
|
|
81241
|
-
delRDelim:
|
|
81242
|
-
url: C9(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",
|
|
81281
|
+
emStrongRDelimAst: NVe,
|
|
81282
|
+
emStrongLDelim: AVe,
|
|
81283
|
+
delLDelim: FVe,
|
|
81284
|
+
delRDelim: IVe,
|
|
81285
|
+
url: C9(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", GVe).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
81243
81286
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
81244
81287
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
81245
|
-
text: C9(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",
|
|
81246
|
-
}),
|
|
81247
|
-
br: C9(
|
|
81288
|
+
text: C9(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", GVe).getRegex()
|
|
81289
|
+
}), qVe = j(j({}, L9), {}, {
|
|
81290
|
+
br: C9(xVe).replace("{2,}", "*").getRegex(),
|
|
81248
81291
|
text: C9(L9.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
81249
81292
|
}), R9 = {
|
|
81250
81293
|
normal: j9,
|
|
81251
|
-
gfm:
|
|
81252
|
-
pedantic:
|
|
81294
|
+
gfm: _Ve,
|
|
81295
|
+
pedantic: vVe
|
|
81253
81296
|
}, z9 = {
|
|
81254
81297
|
normal: I9,
|
|
81255
81298
|
gfm: L9,
|
|
81256
|
-
breaks:
|
|
81257
|
-
pedantic:
|
|
81258
|
-
},
|
|
81299
|
+
breaks: qVe,
|
|
81300
|
+
pedantic: KVe
|
|
81301
|
+
}, JVe = {
|
|
81259
81302
|
"&": "&",
|
|
81260
81303
|
"<": "<",
|
|
81261
81304
|
">": ">",
|
|
81262
81305
|
"\"": """,
|
|
81263
81306
|
"'": "'"
|
|
81264
|
-
},
|
|
81307
|
+
}, YVe = (e) => JVe[e];
|
|
81265
81308
|
function B9(e, t) {
|
|
81266
81309
|
if (t) {
|
|
81267
|
-
if (w9.escapeTest.test(e)) return e.replace(w9.escapeReplace,
|
|
81268
|
-
} else if (w9.escapeTestNoEncode.test(e)) return e.replace(w9.escapeReplaceNoEncode,
|
|
81310
|
+
if (w9.escapeTest.test(e)) return e.replace(w9.escapeReplace, YVe);
|
|
81311
|
+
} else if (w9.escapeTestNoEncode.test(e)) return e.replace(w9.escapeReplaceNoEncode, YVe);
|
|
81269
81312
|
return e;
|
|
81270
81313
|
}
|
|
81271
|
-
function
|
|
81314
|
+
function XVe(e) {
|
|
81272
81315
|
try {
|
|
81273
81316
|
e = encodeURI(e).replace(w9.percentDecode, "%");
|
|
81274
81317
|
} catch (e) {
|
|
@@ -81276,7 +81319,7 @@ function qVe(e) {
|
|
|
81276
81319
|
}
|
|
81277
81320
|
return e;
|
|
81278
81321
|
}
|
|
81279
|
-
function
|
|
81322
|
+
function ZVe(e, t) {
|
|
81280
81323
|
var n;
|
|
81281
81324
|
let r = e.replace(w9.findPipe, (e, t, n) => {
|
|
81282
81325
|
let r = !1, i = t;
|
|
@@ -81300,12 +81343,12 @@ function V9(e, t, n) {
|
|
|
81300
81343
|
}
|
|
81301
81344
|
return e.slice(0, r - i);
|
|
81302
81345
|
}
|
|
81303
|
-
function
|
|
81346
|
+
function QVe(e) {
|
|
81304
81347
|
let t = e.split("\n"), n = t.length - 1;
|
|
81305
81348
|
for (; n >= 0 && w9.blankLine.test(t[n]);) n--;
|
|
81306
81349
|
return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
|
|
81307
81350
|
}
|
|
81308
|
-
function
|
|
81351
|
+
function $Ve(e, t) {
|
|
81309
81352
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
81310
81353
|
let n = 0;
|
|
81311
81354
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -81313,7 +81356,7 @@ function XVe(e, t) {
|
|
|
81313
81356
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
81314
81357
|
return n > 0 ? -2 : -1;
|
|
81315
81358
|
}
|
|
81316
|
-
function
|
|
81359
|
+
function eHe(e, t = 0) {
|
|
81317
81360
|
let n = t, r = "";
|
|
81318
81361
|
for (let t of e) if (t === " ") {
|
|
81319
81362
|
let e = 4 - n % 4;
|
|
@@ -81321,7 +81364,7 @@ function ZVe(e, t = 0) {
|
|
|
81321
81364
|
} else r += t, n++;
|
|
81322
81365
|
return r;
|
|
81323
81366
|
}
|
|
81324
|
-
function
|
|
81367
|
+
function tHe(e, t, n, r, i) {
|
|
81325
81368
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
81326
81369
|
r.state.inLink = !0;
|
|
81327
81370
|
let c = {
|
|
@@ -81334,7 +81377,7 @@ function QVe(e, t, n, r, i) {
|
|
|
81334
81377
|
};
|
|
81335
81378
|
return r.state.inLink = !1, c;
|
|
81336
81379
|
}
|
|
81337
|
-
function
|
|
81380
|
+
function nHe(e, t, n) {
|
|
81338
81381
|
let r = e.match(n.other.indentCodeCompensation);
|
|
81339
81382
|
if (r === null) return t;
|
|
81340
81383
|
let i = r[1];
|
|
@@ -81359,7 +81402,7 @@ var H9 = class {
|
|
|
81359
81402
|
code(e) {
|
|
81360
81403
|
let t = this.rules.block.code.exec(e);
|
|
81361
81404
|
if (t) {
|
|
81362
|
-
let e = this.options.pedantic ? t[0] :
|
|
81405
|
+
let e = this.options.pedantic ? t[0] : QVe(t[0]);
|
|
81363
81406
|
return {
|
|
81364
81407
|
type: "code",
|
|
81365
81408
|
raw: e,
|
|
@@ -81371,7 +81414,7 @@ var H9 = class {
|
|
|
81371
81414
|
fences(e) {
|
|
81372
81415
|
let t = this.rules.block.fences.exec(e);
|
|
81373
81416
|
if (t) {
|
|
81374
|
-
let e = t[0], n =
|
|
81417
|
+
let e = t[0], n = nHe(e, t[3] || "", this.rules);
|
|
81375
81418
|
return {
|
|
81376
81419
|
type: "code",
|
|
81377
81420
|
raw: e,
|
|
@@ -81457,7 +81500,7 @@ ${c}` : c;
|
|
|
81457
81500
|
let n = !1, r = "", s = "";
|
|
81458
81501
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
81459
81502
|
r = t[0], e = e.substring(r.length);
|
|
81460
|
-
let c =
|
|
81503
|
+
let c = eHe(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
81461
81504
|
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) {
|
|
81462
81505
|
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);
|
|
81463
81506
|
for (; e;) {
|
|
@@ -81523,7 +81566,7 @@ ${c}` : c;
|
|
|
81523
81566
|
html(e) {
|
|
81524
81567
|
let t = this.rules.block.html.exec(e);
|
|
81525
81568
|
if (t) {
|
|
81526
|
-
let e =
|
|
81569
|
+
let e = QVe(t[0]);
|
|
81527
81570
|
return {
|
|
81528
81571
|
type: "html",
|
|
81529
81572
|
block: !0,
|
|
@@ -81550,7 +81593,7 @@ ${c}` : c;
|
|
|
81550
81593
|
var t;
|
|
81551
81594
|
let n = this.rules.block.table.exec(e);
|
|
81552
81595
|
if (!n || !this.rules.other.tableDelimiter.test(n[2])) return;
|
|
81553
|
-
let r =
|
|
81596
|
+
let r = ZVe(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 = {
|
|
81554
81597
|
type: "table",
|
|
81555
81598
|
raw: V9(n[0], "\n"),
|
|
81556
81599
|
header: [],
|
|
@@ -81565,7 +81608,7 @@ ${c}` : c;
|
|
|
81565
81608
|
header: !0,
|
|
81566
81609
|
align: o.align[e]
|
|
81567
81610
|
});
|
|
81568
|
-
for (let e of a) o.rows.push(
|
|
81611
|
+
for (let e of a) o.rows.push(ZVe(e, o.header.length).map((e, t) => ({
|
|
81569
81612
|
text: e,
|
|
81570
81613
|
tokens: this.lexer.inline(e),
|
|
81571
81614
|
header: !1,
|
|
@@ -81636,7 +81679,7 @@ ${c}` : c;
|
|
|
81636
81679
|
let t = V9(e.slice(0, -1), "\\");
|
|
81637
81680
|
if ((e.length - t.length) % 2 == 0) return;
|
|
81638
81681
|
} else {
|
|
81639
|
-
let e =
|
|
81682
|
+
let e = $Ve(t[2], "()");
|
|
81640
81683
|
if (e === -2) return;
|
|
81641
81684
|
if (e > -1) {
|
|
81642
81685
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -81648,7 +81691,7 @@ ${c}` : c;
|
|
|
81648
81691
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
81649
81692
|
e && (n = e[1], r = e[3]);
|
|
81650
81693
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
81651
|
-
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)),
|
|
81694
|
+
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)), tHe(t, {
|
|
81652
81695
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
81653
81696
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
81654
81697
|
}, t[0], this.lexer, this.rules);
|
|
@@ -81666,7 +81709,7 @@ ${c}` : c;
|
|
|
81666
81709
|
text: e
|
|
81667
81710
|
};
|
|
81668
81711
|
}
|
|
81669
|
-
return
|
|
81712
|
+
return tHe(n, e, n[0], this.lexer, this.rules);
|
|
81670
81713
|
}
|
|
81671
81714
|
}
|
|
81672
81715
|
emStrong(e, t, n = "") {
|
|
@@ -82108,7 +82151,7 @@ ${e}</tr>
|
|
|
82108
82151
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
82109
82152
|
}
|
|
82110
82153
|
link({ href: e, title: t, tokens: n }) {
|
|
82111
|
-
let r = this.parser.parseInline(n), i =
|
|
82154
|
+
let r = this.parser.parseInline(n), i = XVe(e);
|
|
82112
82155
|
if (i === null) return r;
|
|
82113
82156
|
e = i;
|
|
82114
82157
|
let a = "<a href=\"" + e + "\"";
|
|
@@ -82116,7 +82159,7 @@ ${e}</tr>
|
|
|
82116
82159
|
}
|
|
82117
82160
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
82118
82161
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
82119
|
-
let i =
|
|
82162
|
+
let i = XVe(e);
|
|
82120
82163
|
if (i === null) return B9(n);
|
|
82121
82164
|
e = i;
|
|
82122
82165
|
let a = `<img src="${e}" alt="${B9(n)}"`;
|
|
@@ -82500,15 +82543,15 @@ function Y9(e, t) {
|
|
|
82500
82543
|
return J9.parse(e, t);
|
|
82501
82544
|
}
|
|
82502
82545
|
Y9.options = Y9.setOptions = function(e) {
|
|
82503
|
-
return J9.setOptions(e), Y9.defaults = J9.defaults,
|
|
82546
|
+
return J9.setOptions(e), Y9.defaults = J9.defaults, eVe(Y9.defaults), Y9;
|
|
82504
82547
|
}, Y9.getDefaults = y9, Y9.defaults = b9, Y9.use = function(...e) {
|
|
82505
|
-
return J9.use(...e), Y9.defaults = J9.defaults,
|
|
82548
|
+
return J9.use(...e), Y9.defaults = J9.defaults, eVe(Y9.defaults), Y9;
|
|
82506
82549
|
}, Y9.walkTokens = function(e, t) {
|
|
82507
82550
|
return J9.walkTokens(e, t);
|
|
82508
82551
|
}, Y9.parseInline = J9.parseInline, Y9.Parser = K9, Y9.parser = K9.parse, Y9.Renderer = W9, Y9.TextRenderer = G9, Y9.Lexer = U9, Y9.lexer = U9.lex, Y9.Tokenizer = H9, Y9.Hooks = q9, Y9.parse = Y9, Y9.options, Y9.setOptions, Y9.use, Y9.walkTokens, Y9.parseInline, K9.parse, U9.lex;
|
|
82509
82552
|
//#endregion
|
|
82510
82553
|
//#region node_modules/highlight.js/lib/core.js
|
|
82511
|
-
var
|
|
82554
|
+
var rHe = /* @__PURE__ */ c(((e, t) => {
|
|
82512
82555
|
function n(e) {
|
|
82513
82556
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
82514
82557
|
throw Error("map is read-only");
|
|
@@ -83349,7 +83392,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
83349
83392
|
return Object.assign(e, ae), e;
|
|
83350
83393
|
}, Fe = Pe({});
|
|
83351
83394
|
Fe.newInstance = () => Pe({}), t.exports = Fe, Fe.HighlightJS = Fe, Fe.default = Fe;
|
|
83352
|
-
})),
|
|
83395
|
+
})), iHe = /* @__PURE__ */ c(((e, t) => {
|
|
83353
83396
|
function n(e) {
|
|
83354
83397
|
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 = {
|
|
83355
83398
|
className: "symbol",
|
|
@@ -83514,7 +83557,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
83514
83557
|
};
|
|
83515
83558
|
}
|
|
83516
83559
|
t.exports = n;
|
|
83517
|
-
})),
|
|
83560
|
+
})), aHe = /* @__PURE__ */ c(((e, t) => {
|
|
83518
83561
|
function n(e) {
|
|
83519
83562
|
let t = e.regex, n = {}, r = {
|
|
83520
83563
|
begin: /\$\{/,
|
|
@@ -83682,7 +83725,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
83682
83725
|
};
|
|
83683
83726
|
}
|
|
83684
83727
|
t.exports = n;
|
|
83685
|
-
})),
|
|
83728
|
+
})), oHe = /* @__PURE__ */ c(((e, t) => {
|
|
83686
83729
|
function n(e) {
|
|
83687
83730
|
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 = {
|
|
83688
83731
|
className: "type",
|
|
@@ -83857,7 +83900,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
83857
83900
|
};
|
|
83858
83901
|
}
|
|
83859
83902
|
t.exports = n;
|
|
83860
|
-
})),
|
|
83903
|
+
})), sHe = /* @__PURE__ */ c(((e, t) => {
|
|
83861
83904
|
function n(e) {
|
|
83862
83905
|
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 = {
|
|
83863
83906
|
className: "type",
|
|
@@ -84081,7 +84124,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
84081
84124
|
};
|
|
84082
84125
|
}
|
|
84083
84126
|
t.exports = n;
|
|
84084
|
-
})),
|
|
84127
|
+
})), cHe = /* @__PURE__ */ c(((e, t) => {
|
|
84085
84128
|
function n(e) {
|
|
84086
84129
|
let t = [
|
|
84087
84130
|
"bool",
|
|
@@ -84340,7 +84383,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
84340
84383
|
};
|
|
84341
84384
|
}
|
|
84342
84385
|
t.exports = n;
|
|
84343
|
-
})),
|
|
84386
|
+
})), lHe = /* @__PURE__ */ c(((e, t) => {
|
|
84344
84387
|
var n = (e) => ({
|
|
84345
84388
|
IMPORTANT: {
|
|
84346
84389
|
scope: "meta",
|
|
@@ -84479,7 +84522,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
84479
84522
|
};
|
|
84480
84523
|
}
|
|
84481
84524
|
t.exports = u;
|
|
84482
|
-
})),
|
|
84525
|
+
})), uHe = /* @__PURE__ */ c(((e, t) => {
|
|
84483
84526
|
function n(e) {
|
|
84484
84527
|
let t = e.regex, n = {
|
|
84485
84528
|
begin: /<\/?[A-Za-z_]/,
|
|
@@ -84659,7 +84702,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
84659
84702
|
};
|
|
84660
84703
|
}
|
|
84661
84704
|
t.exports = n;
|
|
84662
|
-
})),
|
|
84705
|
+
})), dHe = /* @__PURE__ */ c(((e, t) => {
|
|
84663
84706
|
function n(e) {
|
|
84664
84707
|
let t = e.regex;
|
|
84665
84708
|
return {
|
|
@@ -84697,7 +84740,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
84697
84740
|
};
|
|
84698
84741
|
}
|
|
84699
84742
|
t.exports = n;
|
|
84700
|
-
})),
|
|
84743
|
+
})), fHe = /* @__PURE__ */ c(((e, t) => {
|
|
84701
84744
|
function n(e) {
|
|
84702
84745
|
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 = {
|
|
84703
84746
|
"variable.constant": [
|
|
@@ -84958,7 +85001,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
84958
85001
|
};
|
|
84959
85002
|
}
|
|
84960
85003
|
t.exports = n;
|
|
84961
|
-
})),
|
|
85004
|
+
})), pHe = /* @__PURE__ */ c(((e, t) => {
|
|
84962
85005
|
function n(e) {
|
|
84963
85006
|
let t = {
|
|
84964
85007
|
keyword: [
|
|
@@ -85097,7 +85140,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
85097
85140
|
};
|
|
85098
85141
|
}
|
|
85099
85142
|
t.exports = n;
|
|
85100
|
-
})),
|
|
85143
|
+
})), mHe = /* @__PURE__ */ c(((e, t) => {
|
|
85101
85144
|
function n(e) {
|
|
85102
85145
|
let t = e.regex;
|
|
85103
85146
|
return {
|
|
@@ -85163,7 +85206,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
85163
85206
|
};
|
|
85164
85207
|
}
|
|
85165
85208
|
t.exports = n;
|
|
85166
|
-
})),
|
|
85209
|
+
})), hHe = /* @__PURE__ */ c(((e, t) => {
|
|
85167
85210
|
function n(e) {
|
|
85168
85211
|
let t = e.regex, n = {
|
|
85169
85212
|
className: "number",
|
|
@@ -85250,7 +85293,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
85250
85293
|
};
|
|
85251
85294
|
}
|
|
85252
85295
|
t.exports = n;
|
|
85253
|
-
})),
|
|
85296
|
+
})), gHe = /* @__PURE__ */ c(((e, t) => {
|
|
85254
85297
|
var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
|
|
85255
85298
|
className: "number",
|
|
85256
85299
|
variants: [
|
|
@@ -85418,7 +85461,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
85418
85461
|
};
|
|
85419
85462
|
}
|
|
85420
85463
|
t.exports = s;
|
|
85421
|
-
})),
|
|
85464
|
+
})), _He = /* @__PURE__ */ c(((e, t) => {
|
|
85422
85465
|
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 = [
|
|
85423
85466
|
"true",
|
|
85424
85467
|
"false",
|
|
@@ -85853,7 +85896,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
85853
85896
|
};
|
|
85854
85897
|
}
|
|
85855
85898
|
t.exports = u;
|
|
85856
|
-
})),
|
|
85899
|
+
})), vHe = /* @__PURE__ */ c(((e, t) => {
|
|
85857
85900
|
function n(e) {
|
|
85858
85901
|
let t = {
|
|
85859
85902
|
className: "attr",
|
|
@@ -85888,7 +85931,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
85888
85931
|
};
|
|
85889
85932
|
}
|
|
85890
85933
|
t.exports = n;
|
|
85891
|
-
})),
|
|
85934
|
+
})), yHe = /* @__PURE__ */ c(((e, t) => {
|
|
85892
85935
|
var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
|
|
85893
85936
|
className: "number",
|
|
85894
85937
|
variants: [
|
|
@@ -86088,7 +86131,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
86088
86131
|
};
|
|
86089
86132
|
}
|
|
86090
86133
|
t.exports = o;
|
|
86091
|
-
})),
|
|
86134
|
+
})), bHe = /* @__PURE__ */ c(((e, t) => {
|
|
86092
86135
|
var n = (e) => ({
|
|
86093
86136
|
IMPORTANT: {
|
|
86094
86137
|
scope: "meta",
|
|
@@ -86279,7 +86322,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
86279
86322
|
};
|
|
86280
86323
|
}
|
|
86281
86324
|
t.exports = d;
|
|
86282
|
-
})),
|
|
86325
|
+
})), xHe = /* @__PURE__ */ c(((e, t) => {
|
|
86283
86326
|
function n(e) {
|
|
86284
86327
|
let t = "\\[=*\\[", n = "\\]=*\\]", r = {
|
|
86285
86328
|
begin: t,
|
|
@@ -86324,7 +86367,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
86324
86367
|
};
|
|
86325
86368
|
}
|
|
86326
86369
|
t.exports = n;
|
|
86327
|
-
})),
|
|
86370
|
+
})), SHe = /* @__PURE__ */ c(((e, t) => {
|
|
86328
86371
|
function n(e) {
|
|
86329
86372
|
let t = {
|
|
86330
86373
|
className: "variable",
|
|
@@ -86380,7 +86423,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
86380
86423
|
};
|
|
86381
86424
|
}
|
|
86382
86425
|
t.exports = n;
|
|
86383
|
-
})),
|
|
86426
|
+
})), CHe = /* @__PURE__ */ c(((e, t) => {
|
|
86384
86427
|
function n(e) {
|
|
86385
86428
|
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 = {
|
|
86386
86429
|
$pattern: /[\w.]+/,
|
|
@@ -86571,7 +86614,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
86571
86614
|
};
|
|
86572
86615
|
}
|
|
86573
86616
|
t.exports = n;
|
|
86574
|
-
})),
|
|
86617
|
+
})), wHe = /* @__PURE__ */ c(((e, t) => {
|
|
86575
86618
|
function n(e) {
|
|
86576
86619
|
let t = {
|
|
86577
86620
|
className: "built_in",
|
|
@@ -86687,7 +86730,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
86687
86730
|
};
|
|
86688
86731
|
}
|
|
86689
86732
|
t.exports = n;
|
|
86690
|
-
})),
|
|
86733
|
+
})), THe = /* @__PURE__ */ c(((e, t) => {
|
|
86691
86734
|
function n(e) {
|
|
86692
86735
|
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 = {
|
|
86693
86736
|
scope: "variable",
|
|
@@ -86980,7 +87023,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
86980
87023
|
};
|
|
86981
87024
|
}
|
|
86982
87025
|
t.exports = n;
|
|
86983
|
-
})),
|
|
87026
|
+
})), EHe = /* @__PURE__ */ c(((e, t) => {
|
|
86984
87027
|
function n(e) {
|
|
86985
87028
|
return {
|
|
86986
87029
|
name: "PHP template",
|
|
@@ -87022,7 +87065,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
87022
87065
|
};
|
|
87023
87066
|
}
|
|
87024
87067
|
t.exports = n;
|
|
87025
|
-
})),
|
|
87068
|
+
})), DHe = /* @__PURE__ */ c(((e, t) => {
|
|
87026
87069
|
function n(e) {
|
|
87027
87070
|
return {
|
|
87028
87071
|
name: "Plain text",
|
|
@@ -87031,7 +87074,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
87031
87074
|
};
|
|
87032
87075
|
}
|
|
87033
87076
|
t.exports = n;
|
|
87034
|
-
})),
|
|
87077
|
+
})), OHe = /* @__PURE__ */ c(((e, t) => {
|
|
87035
87078
|
function n(e) {
|
|
87036
87079
|
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 = {
|
|
87037
87080
|
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
@@ -87268,7 +87311,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
87268
87311
|
};
|
|
87269
87312
|
}
|
|
87270
87313
|
t.exports = n;
|
|
87271
|
-
})),
|
|
87314
|
+
})), kHe = /* @__PURE__ */ c(((e, t) => {
|
|
87272
87315
|
function n(e) {
|
|
87273
87316
|
return {
|
|
87274
87317
|
aliases: ["pycon"],
|
|
@@ -87286,7 +87329,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
87286
87329
|
};
|
|
87287
87330
|
}
|
|
87288
87331
|
t.exports = n;
|
|
87289
|
-
})),
|
|
87332
|
+
})), AHe = /* @__PURE__ */ c(((e, t) => {
|
|
87290
87333
|
function n(e) {
|
|
87291
87334
|
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(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
|
|
87292
87335
|
return {
|
|
@@ -87425,7 +87468,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
87425
87468
|
};
|
|
87426
87469
|
}
|
|
87427
87470
|
t.exports = n;
|
|
87428
|
-
})),
|
|
87471
|
+
})), jHe = /* @__PURE__ */ c(((e, t) => {
|
|
87429
87472
|
function n(e) {
|
|
87430
87473
|
let t = e.regex, n = /(r#)?/, r = t.concat(n, e.UNDERSCORE_IDENT_RE), i = t.concat(n, e.IDENT_RE), a = {
|
|
87431
87474
|
className: "title.function.invoke",
|
|
@@ -87593,7 +87636,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
87593
87636
|
};
|
|
87594
87637
|
}
|
|
87595
87638
|
t.exports = n;
|
|
87596
|
-
})),
|
|
87639
|
+
})), MHe = /* @__PURE__ */ c(((e, t) => {
|
|
87597
87640
|
var n = (e) => ({
|
|
87598
87641
|
IMPORTANT: {
|
|
87599
87642
|
scope: "meta",
|
|
@@ -87742,7 +87785,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
87742
87785
|
};
|
|
87743
87786
|
}
|
|
87744
87787
|
t.exports = u;
|
|
87745
|
-
})),
|
|
87788
|
+
})), NHe = /* @__PURE__ */ c(((e, t) => {
|
|
87746
87789
|
function n(e) {
|
|
87747
87790
|
return {
|
|
87748
87791
|
name: "Shell Session",
|
|
@@ -87758,7 +87801,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
87758
87801
|
};
|
|
87759
87802
|
}
|
|
87760
87803
|
t.exports = n;
|
|
87761
|
-
})),
|
|
87804
|
+
})), PHe = /* @__PURE__ */ c(((e, t) => {
|
|
87762
87805
|
function n(e) {
|
|
87763
87806
|
let t = e.regex, n = e.COMMENT("--", "$"), r = {
|
|
87764
87807
|
scope: "string",
|
|
@@ -87875,7 +87918,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
87875
87918
|
};
|
|
87876
87919
|
}
|
|
87877
87920
|
t.exports = n;
|
|
87878
|
-
})),
|
|
87921
|
+
})), FHe = /* @__PURE__ */ c(((e, t) => {
|
|
87879
87922
|
function n(e) {
|
|
87880
87923
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
87881
87924
|
}
|
|
@@ -88448,7 +88491,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
88448
88491
|
};
|
|
88449
88492
|
}
|
|
88450
88493
|
t.exports = T;
|
|
88451
|
-
})),
|
|
88494
|
+
})), IHe = /* @__PURE__ */ c(((e, t) => {
|
|
88452
88495
|
function n(e) {
|
|
88453
88496
|
let t = "true false yes no null", n = {
|
|
88454
88497
|
className: "attr",
|
|
@@ -88591,7 +88634,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
88591
88634
|
};
|
|
88592
88635
|
}
|
|
88593
88636
|
t.exports = n;
|
|
88594
|
-
})),
|
|
88637
|
+
})), LHe = /* @__PURE__ */ c(((e, t) => {
|
|
88595
88638
|
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 = [
|
|
88596
88639
|
"true",
|
|
88597
88640
|
"false",
|
|
@@ -89111,7 +89154,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
89111
89154
|
}), a;
|
|
89112
89155
|
}
|
|
89113
89156
|
t.exports = d;
|
|
89114
|
-
})),
|
|
89157
|
+
})), RHe = /* @__PURE__ */ c(((e, t) => {
|
|
89115
89158
|
function n(e) {
|
|
89116
89159
|
let t = e.regex, n = {
|
|
89117
89160
|
className: "string",
|
|
@@ -89179,7 +89222,7 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
89179
89222
|
};
|
|
89180
89223
|
}
|
|
89181
89224
|
t.exports = n;
|
|
89182
|
-
})),
|
|
89225
|
+
})), zHe = /* @__PURE__ */ c(((e, t) => {
|
|
89183
89226
|
function n(e) {
|
|
89184
89227
|
e.regex;
|
|
89185
89228
|
let t = e.COMMENT(/\(;/, /;\)/);
|
|
@@ -89241,9 +89284,9 @@ var eHe = /* @__PURE__ */ c(((e, t) => {
|
|
|
89241
89284
|
};
|
|
89242
89285
|
}
|
|
89243
89286
|
t.exports = n;
|
|
89244
|
-
})),
|
|
89245
|
-
var n =
|
|
89246
|
-
n.registerLanguage("xml",
|
|
89287
|
+
})), BHe = (/* @__PURE__ */ d((/* @__PURE__ */ c(((e, t) => {
|
|
89288
|
+
var n = rHe();
|
|
89289
|
+
n.registerLanguage("xml", iHe()), n.registerLanguage("bash", aHe()), n.registerLanguage("c", oHe()), n.registerLanguage("cpp", sHe()), n.registerLanguage("csharp", cHe()), n.registerLanguage("css", lHe()), n.registerLanguage("markdown", uHe()), n.registerLanguage("diff", dHe()), n.registerLanguage("ruby", fHe()), n.registerLanguage("go", pHe()), n.registerLanguage("graphql", mHe()), n.registerLanguage("ini", hHe()), n.registerLanguage("java", gHe()), n.registerLanguage("javascript", _He()), n.registerLanguage("json", vHe()), n.registerLanguage("kotlin", yHe()), n.registerLanguage("less", bHe()), n.registerLanguage("lua", xHe()), n.registerLanguage("makefile", SHe()), n.registerLanguage("perl", CHe()), n.registerLanguage("objectivec", wHe()), n.registerLanguage("php", THe()), n.registerLanguage("php-template", EHe()), n.registerLanguage("plaintext", DHe()), n.registerLanguage("python", OHe()), n.registerLanguage("python-repl", kHe()), n.registerLanguage("r", AHe()), n.registerLanguage("rust", jHe()), n.registerLanguage("scss", MHe()), n.registerLanguage("shell", NHe()), n.registerLanguage("sql", PHe()), n.registerLanguage("swift", FHe()), n.registerLanguage("yaml", IHe()), n.registerLanguage("typescript", LHe()), n.registerLanguage("vbnet", RHe()), n.registerLanguage("wasm", zHe()), n.HighlightJS = n, n.default = n, t.exports = n;
|
|
89247
89290
|
})))())).default;
|
|
89248
89291
|
//#endregion
|
|
89249
89292
|
//#region src/core/composables/useMarkdown.ts
|
|
@@ -89251,55 +89294,55 @@ Y9.setOptions({
|
|
|
89251
89294
|
breaks: !0,
|
|
89252
89295
|
gfm: !0
|
|
89253
89296
|
});
|
|
89254
|
-
var
|
|
89255
|
-
|
|
89297
|
+
var VHe = 2e4, HHe = new Y9.Renderer();
|
|
89298
|
+
HHe.code = ({ text: e, lang: t }) => {
|
|
89256
89299
|
let n = (t || "").trim() || "plaintext", r = "";
|
|
89257
|
-
if (e.length > 2e4) r =
|
|
89300
|
+
if (e.length > 2e4) r = WHe(e);
|
|
89258
89301
|
else try {
|
|
89259
|
-
r =
|
|
89302
|
+
r = BHe.highlight(e, {
|
|
89260
89303
|
language: n,
|
|
89261
89304
|
ignoreIllegals: !0
|
|
89262
89305
|
}).value;
|
|
89263
89306
|
} catch (t) {
|
|
89264
|
-
r =
|
|
89307
|
+
r = WHe(e);
|
|
89265
89308
|
}
|
|
89266
|
-
let i = encodeURIComponent(e), a =
|
|
89309
|
+
let i = encodeURIComponent(e), a = UHe(n);
|
|
89267
89310
|
return `<pre class="code-block" data-lang="${a}" data-code="${i}"><code class="hljs language-${a}">${r}</code></pre>`;
|
|
89268
89311
|
};
|
|
89269
|
-
function
|
|
89312
|
+
function UHe(e) {
|
|
89270
89313
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
89271
89314
|
}
|
|
89272
|
-
function
|
|
89315
|
+
function WHe(e) {
|
|
89273
89316
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
89274
89317
|
}
|
|
89275
|
-
var
|
|
89318
|
+
var GHe = { ADD_ATTR: [
|
|
89276
89319
|
"data-code",
|
|
89277
89320
|
"data-lang",
|
|
89278
89321
|
"target",
|
|
89279
89322
|
"rel"
|
|
89280
89323
|
] };
|
|
89281
|
-
function
|
|
89282
|
-
return p9.sanitize(e,
|
|
89324
|
+
function KHe(e) {
|
|
89325
|
+
return p9.sanitize(e, GHe);
|
|
89283
89326
|
}
|
|
89284
|
-
function
|
|
89285
|
-
return Y9.parse(e || "", { renderer:
|
|
89327
|
+
function qHe(e) {
|
|
89328
|
+
return Y9.parse(e || "", { renderer: HHe });
|
|
89286
89329
|
}
|
|
89287
89330
|
function X9(e) {
|
|
89288
|
-
return
|
|
89331
|
+
return KHe(qHe(e));
|
|
89289
89332
|
}
|
|
89290
|
-
var
|
|
89291
|
-
function
|
|
89333
|
+
var JHe = 100, YHe = 2e3;
|
|
89334
|
+
function XHe(e) {
|
|
89292
89335
|
let t = /* @__PURE__ */ Lq(X9(e())), n = 0, r = null;
|
|
89293
89336
|
function i() {
|
|
89294
89337
|
r = null, n = Date.now(), t.value = X9(e());
|
|
89295
89338
|
}
|
|
89296
89339
|
return gJ(e, () => {
|
|
89297
89340
|
let a = e();
|
|
89298
|
-
if (a.length <=
|
|
89341
|
+
if (a.length <= YHe) {
|
|
89299
89342
|
r && (clearTimeout(r), r = null), n = Date.now(), t.value = X9(a);
|
|
89300
89343
|
return;
|
|
89301
89344
|
}
|
|
89302
|
-
let o = n +
|
|
89345
|
+
let o = n + JHe - Date.now();
|
|
89303
89346
|
o <= 0 ? (r && (clearTimeout(r), r = null), i()) : r || (r = setTimeout(i, o));
|
|
89304
89347
|
}), Rbe(() => {
|
|
89305
89348
|
r && (clearTimeout(r), r = null);
|
|
@@ -89317,14 +89360,14 @@ function qHe(e) {
|
|
|
89317
89360
|
}
|
|
89318
89361
|
//#endregion
|
|
89319
89362
|
//#region src/core/components/MessageContent.vue?vue&type=script&setup=true&lang.ts
|
|
89320
|
-
var
|
|
89363
|
+
var ZHe = ["innerHTML"], QHe = /* @__PURE__ */ HJ({
|
|
89321
89364
|
__name: "MessageContent",
|
|
89322
89365
|
props: {
|
|
89323
89366
|
content: {},
|
|
89324
89367
|
messages: { default: () => R7 }
|
|
89325
89368
|
},
|
|
89326
89369
|
setup(e) {
|
|
89327
|
-
let t = e, { html: n, codeBlocks: r } =
|
|
89370
|
+
let t = e, { html: n, codeBlocks: r } = XHe(() => t.content), i = /* @__PURE__ */ Iq(null);
|
|
89328
89371
|
function a(e, t) {
|
|
89329
89372
|
let n = {
|
|
89330
89373
|
html: "html",
|
|
@@ -89378,16 +89421,16 @@ var JHe = ["innerHTML"], YHe = /* @__PURE__ */ HJ({
|
|
|
89378
89421
|
ref_key: "containerRef",
|
|
89379
89422
|
ref: i,
|
|
89380
89423
|
innerHTML: Y(n)
|
|
89381
|
-
}, null, 8,
|
|
89424
|
+
}, null, 8, ZHe));
|
|
89382
89425
|
}
|
|
89383
89426
|
});
|
|
89384
89427
|
//#endregion
|
|
89385
89428
|
//#region src/core/components/message/MessageBubble.vue?vue&type=script&setup=true&lang.ts
|
|
89386
89429
|
M();
|
|
89387
|
-
var
|
|
89430
|
+
var $He = { class: "typing-text" }, eUe = {
|
|
89388
89431
|
key: 0,
|
|
89389
89432
|
class: "stream-cursor"
|
|
89390
|
-
},
|
|
89433
|
+
}, tUe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
89391
89434
|
__name: "MessageBubble",
|
|
89392
89435
|
props: {
|
|
89393
89436
|
content: {},
|
|
@@ -89398,33 +89441,33 @@ var XHe = { class: "typing-text" }, ZHe = {
|
|
|
89398
89441
|
messages: { default: () => j({}, R7) }
|
|
89399
89442
|
},
|
|
89400
89443
|
setup(e) {
|
|
89401
|
-
return (t, n) => (X(), Z(KY, null, [Q("div", { class: TK(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (X(), Z(KY, { key: 0 }, [Q("span", { class: TK(["typing-dot", { pulse: e.showTyping }]) }, null, 2), Q("span",
|
|
89444
|
+
return (t, n) => (X(), Z(KY, null, [Q("div", { class: TK(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (X(), Z(KY, { key: 0 }, [Q("span", { class: TK(["typing-dot", { pulse: e.showTyping }]) }, null, 2), Q("span", $He, [oX(_9, { text: e.messages.thinking }, null, 8, ["text"])])], 64)) : (X(), Z(KY, { key: 1 }, [e.role === "assistant" ? (X(), tX(QHe, {
|
|
89402
89445
|
key: 0,
|
|
89403
89446
|
content: e.content,
|
|
89404
89447
|
messages: e.messages
|
|
89405
|
-
}, null, 8, ["content", "messages"])) : (X(), Z(KY, { key: 1 }, [cX(J(e.content), 1)], 64))], 64))], 2), e.showCursor ? (X(), Z("span",
|
|
89448
|
+
}, null, 8, ["content", "messages"])) : (X(), Z(KY, { key: 1 }, [cX(J(e.content), 1)], 64))], 64))], 2), e.showCursor ? (X(), Z("span", eUe)) : $("", !0)], 64));
|
|
89406
89449
|
}
|
|
89407
|
-
}), [["__scopeId", "data-v-4b4111d8"]]),
|
|
89450
|
+
}), [["__scopeId", "data-v-4b4111d8"]]), nUe = { class: "message-time" }, rUe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
89408
89451
|
__name: "MessageTime",
|
|
89409
89452
|
props: { time: {} },
|
|
89410
89453
|
setup(e) {
|
|
89411
|
-
return (t, n) => (X(), Z("div",
|
|
89454
|
+
return (t, n) => (X(), Z("div", nUe, J(e.time), 1));
|
|
89412
89455
|
}
|
|
89413
89456
|
}), [["__scopeId", "data-v-4a976e4a"]]);
|
|
89414
89457
|
//#endregion
|
|
89415
89458
|
//#region src/core/components/message/MessageActions.vue?vue&type=script&setup=true&lang.ts
|
|
89416
89459
|
M();
|
|
89417
|
-
var
|
|
89460
|
+
var iUe = { class: "msg-actions" }, aUe = ["title"], oUe = {
|
|
89418
89461
|
key: 0,
|
|
89419
89462
|
viewBox: "0 0 16 16",
|
|
89420
89463
|
fill: "none",
|
|
89421
89464
|
"aria-hidden": "true"
|
|
89422
|
-
},
|
|
89465
|
+
}, sUe = {
|
|
89423
89466
|
key: 1,
|
|
89424
89467
|
viewBox: "0 0 16 16",
|
|
89425
89468
|
fill: "none",
|
|
89426
89469
|
"aria-hidden": "true"
|
|
89427
|
-
},
|
|
89470
|
+
}, cUe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
89428
89471
|
__name: "MessageActions",
|
|
89429
89472
|
props: {
|
|
89430
89473
|
copied: { type: Boolean },
|
|
@@ -89432,17 +89475,17 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89432
89475
|
},
|
|
89433
89476
|
emits: ["copy", "regenerate"],
|
|
89434
89477
|
setup(e) {
|
|
89435
|
-
return (t, n) => (X(), Z("div",
|
|
89478
|
+
return (t, n) => (X(), Z("div", iUe, [Q("button", {
|
|
89436
89479
|
class: TK(["msg-action-btn", { done: e.copied }]),
|
|
89437
89480
|
title: e.copied ? e.messages.copied : e.messages.copy,
|
|
89438
89481
|
onClick: n[0] || (n[0] = (e) => t.$emit("copy"))
|
|
89439
|
-
}, [e.copied ? (X(), Z("svg",
|
|
89482
|
+
}, [e.copied ? (X(), Z("svg", oUe, [...n[2] || (n[2] = [Q("path", {
|
|
89440
89483
|
d: "M3 8.5l3 3 7-7",
|
|
89441
89484
|
stroke: "currentColor",
|
|
89442
89485
|
"stroke-width": "1.6",
|
|
89443
89486
|
"stroke-linecap": "round",
|
|
89444
89487
|
"stroke-linejoin": "round"
|
|
89445
|
-
}, null, -1)])])) : (X(), Z("svg",
|
|
89488
|
+
}, null, -1)])])) : (X(), Z("svg", sUe, [...n[3] || (n[3] = [Q("rect", {
|
|
89446
89489
|
x: "5.5",
|
|
89447
89490
|
y: "5.5",
|
|
89448
89491
|
width: "8",
|
|
@@ -89454,7 +89497,7 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89454
89497
|
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",
|
|
89455
89498
|
stroke: "currentColor",
|
|
89456
89499
|
"stroke-width": "1.3"
|
|
89457
|
-
}, null, -1)])])), Q("span", null, J(e.copied ? e.messages.copied : e.messages.copy), 1)], 10,
|
|
89500
|
+
}, null, -1)])])), Q("span", null, J(e.copied ? e.messages.copied : e.messages.copy), 1)], 10, aUe), Q("button", {
|
|
89458
89501
|
class: "msg-action-btn",
|
|
89459
89502
|
onClick: n[1] || (n[1] = (e) => t.$emit("regenerate"))
|
|
89460
89503
|
}, [n[4] || (n[4] = Q("svg", {
|
|
@@ -89474,19 +89517,19 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89474
89517
|
"stroke-linejoin": "round"
|
|
89475
89518
|
})], -1)), Q("span", null, J(e.messages.regenerate), 1)])]));
|
|
89476
89519
|
}
|
|
89477
|
-
}), [["__scopeId", "data-v-dc051a49"]]),
|
|
89520
|
+
}), [["__scopeId", "data-v-dc051a49"]]), lUe = {
|
|
89478
89521
|
key: 1,
|
|
89479
89522
|
class: "avatar-icon",
|
|
89480
89523
|
viewBox: "0 0 1024 1024",
|
|
89481
89524
|
xmlns: "http://www.w3.org/2000/svg",
|
|
89482
89525
|
"aria-hidden": "true"
|
|
89483
|
-
},
|
|
89526
|
+
}, uUe = {
|
|
89484
89527
|
key: 2,
|
|
89485
89528
|
class: "avatar-icon",
|
|
89486
89529
|
viewBox: "0 0 1024 1024",
|
|
89487
89530
|
xmlns: "http://www.w3.org/2000/svg",
|
|
89488
89531
|
"aria-hidden": "true"
|
|
89489
|
-
},
|
|
89532
|
+
}, dUe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
89490
89533
|
__name: "AvatarIcon",
|
|
89491
89534
|
props: {
|
|
89492
89535
|
role: {},
|
|
@@ -89497,25 +89540,25 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89497
89540
|
key: 0,
|
|
89498
89541
|
icon: e.glyph,
|
|
89499
89542
|
class: "avatar-glyph"
|
|
89500
|
-
}, null, 8, ["icon"])) : e.role === "user" ? (X(), Z("svg",
|
|
89543
|
+
}, null, 8, ["icon"])) : e.role === "user" ? (X(), Z("svg", lUe, [...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", uUe, [...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)])]));
|
|
89501
89544
|
}
|
|
89502
|
-
}), [["__scopeId", "data-v-a0b508ea"]]),
|
|
89545
|
+
}), [["__scopeId", "data-v-a0b508ea"]]), fUe = ["data-msg-idx"], pUe = {
|
|
89503
89546
|
key: 0,
|
|
89504
89547
|
class: "message-avatar"
|
|
89505
|
-
},
|
|
89548
|
+
}, mUe = { class: "message-content" }, hUe = {
|
|
89506
89549
|
key: 2,
|
|
89507
89550
|
class: "msg-focuses"
|
|
89508
|
-
},
|
|
89551
|
+
}, gUe = ["title"], _Ue = {
|
|
89509
89552
|
key: 3,
|
|
89510
89553
|
class: "msg-quote",
|
|
89511
89554
|
"data-test": "msg-quote"
|
|
89512
|
-
},
|
|
89555
|
+
}, vUe = { class: "msg-quote-text" }, yUe = {
|
|
89513
89556
|
key: 0,
|
|
89514
89557
|
class: "msg-quote-source"
|
|
89515
|
-
},
|
|
89558
|
+
}, bUe = ["data-img-count"], xUe = ["title", "onClick"], SUe = ["src", "alt"], CUe = {
|
|
89516
89559
|
key: 1,
|
|
89517
89560
|
class: "msg-image-lost"
|
|
89518
|
-
},
|
|
89561
|
+
}, wUe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
89519
89562
|
__name: "MessageRow",
|
|
89520
89563
|
props: {
|
|
89521
89564
|
message: {},
|
|
@@ -89541,30 +89584,30 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89541
89584
|
}), a = EX(() => r.value && "reasoningTotal" in t.message ? t.message.reasoningTotal : void 0), o = EX(() => {
|
|
89542
89585
|
var e;
|
|
89543
89586
|
return r.value && "steps" in t.message ? (e = t.message.steps) == null ? [] : e : [];
|
|
89544
|
-
}), s = EX(() => r.value && !!t.message.content && !t.loading && t.isLast), c = EX(() => r.value && t.loading && t.isLast && !!t.message.content);
|
|
89545
|
-
return (t,
|
|
89546
|
-
var
|
|
89547
|
-
return X(), Z("div", {
|
|
89587
|
+
}), s = EX(() => r.value && !!t.message.content && !t.loading && t.isLast), c = EX(() => r.value && t.loading && t.isLast && !!t.message.content), l = /* @__PURE__ */ Iq(void 0);
|
|
89588
|
+
return (t, u) => {
|
|
89589
|
+
var d, f;
|
|
89590
|
+
return X(), Z(KY, null, [Q("div", {
|
|
89548
89591
|
class: TK(["message-row", e.message.role]),
|
|
89549
89592
|
"data-msg-idx": e.index
|
|
89550
|
-
}, [e.showAvatar ? (X(), Z("div",
|
|
89593
|
+
}, [e.showAvatar ? (X(), Z("div", pUe, [oX(dUe, {
|
|
89551
89594
|
role: e.message.role,
|
|
89552
89595
|
glyph: e.message.role === "user" ? Y(n).icons.userAvatar : Y(n).icons.assistantAvatar
|
|
89553
|
-
}, null, 8, ["role", "glyph"])])) : $("", !0), Q("div",
|
|
89596
|
+
}, null, 8, ["role", "glyph"])])) : $("", !0), Q("div", mUe, [
|
|
89554
89597
|
r.value ? (X(), tX(hBe, {
|
|
89555
89598
|
key: 0,
|
|
89556
89599
|
text: i.value,
|
|
89557
89600
|
total: a.value,
|
|
89558
89601
|
expanded: e.reasoningExpanded,
|
|
89559
89602
|
running: e.loading && e.isLast,
|
|
89560
|
-
onToggle:
|
|
89603
|
+
onToggle: u[0] || (u[0] = (e) => t.$emit("toggle-reasoning"))
|
|
89561
89604
|
}, null, 8, [
|
|
89562
89605
|
"text",
|
|
89563
89606
|
"total",
|
|
89564
89607
|
"expanded",
|
|
89565
89608
|
"running"
|
|
89566
89609
|
])) : $("", !0),
|
|
89567
|
-
r.value ? (X(), tX(
|
|
89610
|
+
r.value ? (X(), tX($Be, {
|
|
89568
89611
|
key: 1,
|
|
89569
89612
|
steps: o.value,
|
|
89570
89613
|
icons: Y(n).icons,
|
|
@@ -89576,30 +89619,29 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89576
89619
|
"messages",
|
|
89577
89620
|
"step-view"
|
|
89578
89621
|
])) : $("", !0),
|
|
89579
|
-
e.message.role === "user" && (
|
|
89622
|
+
e.message.role === "user" && (d = e.message.focuses) != null && d.length ? (X(), Z("div", hUe, [(X(!0), Z(KY, null, nY(e.message.focuses, (e) => (X(), Z("span", {
|
|
89580
89623
|
key: e.path,
|
|
89581
89624
|
class: "msg-focus-chip",
|
|
89582
89625
|
title: Y(n).messages.historyFocusChipTitlePrefix + e.path
|
|
89583
|
-
}, [oX(g9, { icon: Y(n).icons.focus }, null, 8, ["icon"]), cX(" " + J(e.path), 1)], 8,
|
|
89584
|
-
e.message.role === "user" && e.message.quote ? (X(), Z("div",
|
|
89585
|
-
e.message.role === "user" && (
|
|
89626
|
+
}, [oX(g9, { icon: Y(n).icons.focus }, null, 8, ["icon"]), cX(" " + J(e.path), 1)], 8, gUe))), 128))])) : $("", !0),
|
|
89627
|
+
e.message.role === "user" && e.message.quote ? (X(), Z("div", _Ue, [Q("blockquote", vUe, J(e.message.quote.text), 1), e.message.quote.source ? (X(), Z("span", yUe, "❝ " + J(e.message.quote.source), 1)) : $("", !0)])) : $("", !0),
|
|
89628
|
+
e.message.role === "user" && (f = e.message.images) != null && f.length ? (X(), Z("div", {
|
|
89586
89629
|
key: 4,
|
|
89587
89630
|
class: "msg-images",
|
|
89588
89631
|
"data-img-count": e.message.images.length
|
|
89589
|
-
}, [(X(!0), Z(KY, null, nY(e.message.images, (e) => (X(), Z("
|
|
89632
|
+
}, [(X(!0), Z(KY, null, nY(e.message.images, (e) => (X(), Z("button", {
|
|
89590
89633
|
key: e.id,
|
|
89634
|
+
type: "button",
|
|
89591
89635
|
class: "msg-image",
|
|
89592
|
-
href: e.url || e.dataUri,
|
|
89593
89636
|
title: e.name || Y(n).messages.imageAlt,
|
|
89594
|
-
|
|
89595
|
-
rel: "noopener noreferrer"
|
|
89637
|
+
onClick: (t) => l.value = e.dataUri || e.url
|
|
89596
89638
|
}, [e.thumb || e.dataUri ? (X(), Z("img", {
|
|
89597
89639
|
key: 0,
|
|
89598
89640
|
class: "msg-image-thumb",
|
|
89599
89641
|
src: e.thumb || e.dataUri,
|
|
89600
89642
|
alt: e.name || Y(n).messages.imageAlt
|
|
89601
|
-
}, null, 8,
|
|
89602
|
-
!r.value || e.message.content || e.isPendingAssistant ? (X(), tX(
|
|
89643
|
+
}, null, 8, SUe)) : (X(), Z("span", CUe, "🖼️"))], 8, xUe))), 128))], 8, bUe)) : $("", !0),
|
|
89644
|
+
!r.value || e.message.content || e.isPendingAssistant ? (X(), tX(tUe, {
|
|
89603
89645
|
key: 5,
|
|
89604
89646
|
messages: Y(n).messages,
|
|
89605
89647
|
content: e.message.content,
|
|
@@ -89615,30 +89657,39 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89615
89657
|
"show-typing",
|
|
89616
89658
|
"show-cursor"
|
|
89617
89659
|
])) : $("", !0),
|
|
89618
|
-
oX(
|
|
89619
|
-
s.value ? (X(), tX(
|
|
89660
|
+
oX(rUe, { time: e.time }, null, 8, ["time"]),
|
|
89661
|
+
s.value ? (X(), tX(cUe, {
|
|
89620
89662
|
key: 6,
|
|
89621
89663
|
messages: Y(n).messages,
|
|
89622
89664
|
copied: e.copied,
|
|
89623
|
-
onCopy:
|
|
89624
|
-
onRegenerate:
|
|
89665
|
+
onCopy: u[1] || (u[1] = (e) => t.$emit("copy")),
|
|
89666
|
+
onRegenerate: u[2] || (u[2] = (e) => t.$emit("regenerate"))
|
|
89625
89667
|
}, null, 8, ["messages", "copied"])) : $("", !0)
|
|
89626
|
-
])], 10,
|
|
89668
|
+
])], 10, fUe), oX(wBe, {
|
|
89669
|
+
src: l.value,
|
|
89670
|
+
alt: Y(n).messages.imageAlt,
|
|
89671
|
+
"close-title": Y(n).messages.close,
|
|
89672
|
+
onClose: u[3] || (u[3] = (e) => l.value = void 0)
|
|
89673
|
+
}, null, 8, [
|
|
89674
|
+
"src",
|
|
89675
|
+
"alt",
|
|
89676
|
+
"close-title"
|
|
89677
|
+
])], 64);
|
|
89627
89678
|
};
|
|
89628
89679
|
}
|
|
89629
|
-
}), [["__scopeId", "data-v-
|
|
89680
|
+
}), [["__scopeId", "data-v-135ee760"]]), TUe = { class: "chat-body" }, EUe = {
|
|
89630
89681
|
key: 0,
|
|
89631
89682
|
class: "empty-state"
|
|
89632
|
-
},
|
|
89683
|
+
}, DUe = { class: "empty-icon" }, OUe = {
|
|
89633
89684
|
key: 1,
|
|
89634
89685
|
class: "message-row assistant"
|
|
89635
|
-
},
|
|
89686
|
+
}, kUe = {
|
|
89636
89687
|
key: 0,
|
|
89637
89688
|
class: "message-avatar"
|
|
89638
|
-
},
|
|
89689
|
+
}, AUe = { class: "message-content" }, jUe = {
|
|
89639
89690
|
key: 2,
|
|
89640
89691
|
class: "error-bar"
|
|
89641
|
-
},
|
|
89692
|
+
}, MUe = { class: "error-text" }, NUe = ["title"], PUe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
89642
89693
|
__name: "MessageList",
|
|
89643
89694
|
props: {
|
|
89644
89695
|
showAvatar: { type: Boolean },
|
|
@@ -89649,9 +89700,9 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89649
89700
|
var e;
|
|
89650
89701
|
return ((e = f.messages[f.messages.length - 1]) == null ? void 0 : e.role) === "assistant";
|
|
89651
89702
|
});
|
|
89652
|
-
return (t, v) => (X(), Z("div",
|
|
89653
|
-
h.value ? $("", !0) : (X(), Z("div",
|
|
89654
|
-
(X(!0), Z(KY, null, nY(Y(f).messages, (t, c) => (X(), tX(
|
|
89703
|
+
return (t, v) => (X(), Z("div", TUe, [
|
|
89704
|
+
h.value ? $("", !0) : (X(), Z("div", EUe, [Q("div", DUe, [oX(g9, { icon: Y(u).empty }, null, 8, ["icon"])]), Q("p", null, [oX(_9, { text: Y(d).emptyGreeting }, null, 8, ["text"])])])),
|
|
89705
|
+
(X(!0), Z(KY, null, nY(Y(f).messages, (t, c) => (X(), tX(wUe, {
|
|
89655
89706
|
key: c,
|
|
89656
89707
|
message: t,
|
|
89657
89708
|
index: c,
|
|
@@ -89681,10 +89732,10 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89681
89732
|
"onCopy",
|
|
89682
89733
|
"onRegenerate"
|
|
89683
89734
|
]))), 128)),
|
|
89684
|
-
Y(f).loading && !_.value ? (X(), Z("div",
|
|
89735
|
+
Y(f).loading && !_.value ? (X(), Z("div", OUe, [e.showAvatar ? (X(), Z("div", kUe, [oX(dUe, {
|
|
89685
89736
|
role: "assistant",
|
|
89686
89737
|
glyph: Y(u).assistantAvatar
|
|
89687
|
-
}, null, 8, ["glyph"])])) : $("", !0), Q("div",
|
|
89738
|
+
}, null, 8, ["glyph"])])) : $("", !0), Q("div", AUe, [oX(tUe, {
|
|
89688
89739
|
content: "",
|
|
89689
89740
|
role: "assistant",
|
|
89690
89741
|
"is-pending-assistant": !0,
|
|
@@ -89692,8 +89743,8 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89692
89743
|
"show-cursor": !1,
|
|
89693
89744
|
messages: Y(d)
|
|
89694
89745
|
}, null, 8, ["show-typing", "messages"])])])) : $("", !0),
|
|
89695
|
-
Y(f).error ? (X(), Z("div",
|
|
89696
|
-
Q("span",
|
|
89746
|
+
Y(f).error ? (X(), Z("div", jUe, [
|
|
89747
|
+
Q("span", MUe, J(Y(f).error), 1),
|
|
89697
89748
|
g.value ? (X(), Z("button", {
|
|
89698
89749
|
key: 0,
|
|
89699
89750
|
class: "retry-btn",
|
|
@@ -89704,72 +89755,72 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89704
89755
|
class: "undo-btn",
|
|
89705
89756
|
title: Y(d).undoTitle,
|
|
89706
89757
|
onClick: v[1] || (v[1] = (...e) => Y(l) && Y(l)(...e))
|
|
89707
|
-
}, [oX(_9, { text: Y(d).undo }, null, 8, ["text"])], 8,
|
|
89758
|
+
}, [oX(_9, { text: Y(d).undo }, null, 8, ["text"])], 8, NUe)) : $("", !0)
|
|
89708
89759
|
])) : $("", !0)
|
|
89709
89760
|
]));
|
|
89710
89761
|
}
|
|
89711
|
-
}), [["__scopeId", "data-v-113939bc"]]),
|
|
89762
|
+
}), [["__scopeId", "data-v-113939bc"]]), FUe = {
|
|
89712
89763
|
key: 0,
|
|
89713
89764
|
class: "queued-bar"
|
|
89714
|
-
},
|
|
89765
|
+
}, IUe = { class: "queued-head" }, LUe = { class: "queued-icon" }, RUe = { class: "queued-title" }, zUe = { class: "queued-count" }, BUe = { class: "queued-idx" }, VUe = { class: "queued-text" }, HUe = ["title", "onClick"], UUe = ["title", "onClick"], WUe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
89715
89766
|
__name: "QueuedBar",
|
|
89716
89767
|
setup(e) {
|
|
89717
89768
|
let { chat: t, editQueued: n, icons: r, messages: i } = B7(), { queuedTasks: a, removeQueuedTask: o } = t;
|
|
89718
|
-
return (e, t) => Y(a).length ? (X(), Z("div",
|
|
89719
|
-
Q("span",
|
|
89720
|
-
Q("span",
|
|
89721
|
-
Q("span",
|
|
89769
|
+
return (e, t) => Y(a).length ? (X(), Z("div", FUe, [Q("div", IUe, [
|
|
89770
|
+
Q("span", LUe, [oX(g9, { icon: Y(r).queued }, null, 8, ["icon"])]),
|
|
89771
|
+
Q("span", RUe, J(Y(i).queuedTitle), 1),
|
|
89772
|
+
Q("span", zUe, J(Y(a).length), 1)
|
|
89722
89773
|
]), (X(!0), Z(KY, null, nY(Y(a), (e, t) => (X(), Z("div", {
|
|
89723
89774
|
key: t,
|
|
89724
89775
|
class: "queued-item"
|
|
89725
89776
|
}, [
|
|
89726
|
-
Q("span",
|
|
89727
|
-
Q("span",
|
|
89777
|
+
Q("span", BUe, J(t + 1), 1),
|
|
89778
|
+
Q("span", VUe, J(e), 1),
|
|
89728
89779
|
Q("button", {
|
|
89729
89780
|
class: "queued-act",
|
|
89730
89781
|
title: Y(i).queuedEditTitle,
|
|
89731
89782
|
onClick: (e) => Y(n)(t)
|
|
89732
|
-
}, [oX(g9, { icon: Y(r).queuedEdit }, null, 8, ["icon"])], 8,
|
|
89783
|
+
}, [oX(g9, { icon: Y(r).queuedEdit }, null, 8, ["icon"])], 8, HUe),
|
|
89733
89784
|
Q("button", {
|
|
89734
89785
|
class: "queued-act queued-del",
|
|
89735
89786
|
title: Y(i).removeQueuedTitle,
|
|
89736
89787
|
onClick: (e) => Y(o)(t)
|
|
89737
|
-
}, "✕", 8,
|
|
89788
|
+
}, "✕", 8, UUe)
|
|
89738
89789
|
]))), 128))])) : $("", !0);
|
|
89739
89790
|
}
|
|
89740
|
-
}), [["__scopeId", "data-v-02414fc9"]]),
|
|
89791
|
+
}), [["__scopeId", "data-v-02414fc9"]]), GUe = {
|
|
89741
89792
|
key: 0,
|
|
89742
89793
|
class: "approval-bar"
|
|
89743
|
-
},
|
|
89794
|
+
}, KUe = { class: "approval-head" }, qUe = { class: "approval-title" }, JUe = {
|
|
89744
89795
|
key: 0,
|
|
89745
89796
|
class: "approval-question"
|
|
89746
|
-
},
|
|
89797
|
+
}, YUe = {
|
|
89747
89798
|
key: 1,
|
|
89748
89799
|
class: "approval-context"
|
|
89749
|
-
},
|
|
89800
|
+
}, XUe = {
|
|
89750
89801
|
key: 2,
|
|
89751
89802
|
class: "approval-recommend"
|
|
89752
|
-
},
|
|
89803
|
+
}, ZUe = {
|
|
89753
89804
|
key: 3,
|
|
89754
89805
|
class: "approval-options"
|
|
89755
|
-
},
|
|
89806
|
+
}, QUe = ["onClick"], $Ue = { class: "approval-actions" }, eWe = { class: "approval-head" }, tWe = { class: "approval-title" }, nWe = {
|
|
89756
89807
|
key: 0,
|
|
89757
89808
|
class: "approval-args"
|
|
89758
|
-
},
|
|
89809
|
+
}, rWe = {
|
|
89759
89810
|
key: 1,
|
|
89760
89811
|
class: "approval-preview",
|
|
89761
89812
|
"data-test": "approval-preview"
|
|
89762
|
-
},
|
|
89813
|
+
}, iWe = {
|
|
89763
89814
|
key: 0,
|
|
89764
89815
|
class: "preview-error",
|
|
89765
89816
|
"data-test": "preview-error"
|
|
89766
|
-
},
|
|
89817
|
+
}, aWe = ["data-test"], oWe = { class: "preview-op" }, sWe = { class: "preview-path" }, cWe = { class: "preview-diff" }, lWe = { class: "preview-old" }, uWe = { class: "preview-new" }, dWe = {
|
|
89767
89818
|
key: 1,
|
|
89768
89819
|
class: "preview-more"
|
|
89769
|
-
},
|
|
89820
|
+
}, fWe = {
|
|
89770
89821
|
key: 2,
|
|
89771
89822
|
class: "approval-plan-context"
|
|
89772
|
-
},
|
|
89823
|
+
}, pWe = { class: "approval-actions" }, Z9 = 20, mWe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
89773
89824
|
__name: "ApprovalBar",
|
|
89774
89825
|
setup(e) {
|
|
89775
89826
|
let t = B7(), { pendingApproval: n, resolveApproval: r } = t.chat, i = t.messages, a = t.planConfirmation, o = /* @__PURE__ */ Iq(!1);
|
|
@@ -89799,17 +89850,17 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89799
89850
|
}), d = EX(() => u.value.length > Z9);
|
|
89800
89851
|
return (e, f) => {
|
|
89801
89852
|
var p, m, h;
|
|
89802
|
-
return Y(n) ? (X(), Z("div",
|
|
89803
|
-
Q("div",
|
|
89804
|
-
(p = Y(n).args) != null && p.question ? (X(), Z("div",
|
|
89805
|
-
(m = Y(n).args) != null && m.context ? (X(), Z("div",
|
|
89806
|
-
(h = Y(n).args) != null && h.recommendation ? (X(), Z("div",
|
|
89807
|
-
c.value.length ? (X(), Z("div",
|
|
89853
|
+
return Y(n) ? (X(), Z("div", GUe, [s.value ? (X(), Z(KY, { key: 0 }, [
|
|
89854
|
+
Q("div", KUe, [f[5] || (f[5] = Q("span", { class: "approval-icon" }, "❓", -1)), Q("span", qUe, J(Y(i).humanConfirmTitle), 1)]),
|
|
89855
|
+
(p = Y(n).args) != null && p.question ? (X(), Z("div", JUe, J(Y(n).args.question), 1)) : $("", !0),
|
|
89856
|
+
(m = Y(n).args) != null && m.context ? (X(), Z("div", YUe, J(Y(n).args.context), 1)) : $("", !0),
|
|
89857
|
+
(h = Y(n).args) != null && h.recommendation ? (X(), Z("div", XUe, [oX(g9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), cX(J(Y(i).recommendPrefix) + J(Y(n).args.recommendation), 1)])) : $("", !0),
|
|
89858
|
+
c.value.length ? (X(), Z("div", ZUe, [(X(!0), Z(KY, null, nY(c.value, (e) => (X(), Z("button", {
|
|
89808
89859
|
key: e,
|
|
89809
89860
|
class: "approval-opt",
|
|
89810
89861
|
onClick: (t) => Y(r)(e)
|
|
89811
|
-
}, J(e), 9,
|
|
89812
|
-
Q("div",
|
|
89862
|
+
}, J(e), 9, QUe))), 128))])) : $("", !0),
|
|
89863
|
+
Q("div", $Ue, [Q("button", {
|
|
89813
89864
|
class: "approval-deny",
|
|
89814
89865
|
onClick: f[0] || (f[0] = (e) => Y(r)(!1))
|
|
89815
89866
|
}, [oX(_9, { text: Y(i).deny }, null, 8, ["text"])]), c.value.length ? $("", !0) : (X(), Z("button", {
|
|
@@ -89818,18 +89869,18 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89818
89869
|
onClick: f[1] || (f[1] = (e) => Y(r)(!0))
|
|
89819
89870
|
}, [oX(_9, { text: Y(i).approve }, null, 8, ["text"])]))])
|
|
89820
89871
|
], 64)) : (X(), Z(KY, { key: 1 }, [
|
|
89821
|
-
Q("div",
|
|
89872
|
+
Q("div", eWe, [
|
|
89822
89873
|
f[6] || (f[6] = Q("span", { class: "approval-icon" }, "✋", -1)),
|
|
89823
|
-
Q("span",
|
|
89874
|
+
Q("span", tWe, [cX(J(Y(i).toolConfirmPrefix), 1), Q("code", null, J(Y(n).toolName), 1)]),
|
|
89824
89875
|
l.value ? (X(), Z("button", {
|
|
89825
89876
|
key: 0,
|
|
89826
89877
|
class: "approval-toggle",
|
|
89827
89878
|
onClick: f[2] || (f[2] = (e) => o.value = !o.value)
|
|
89828
89879
|
}, J(o.value ? Y(i).collapseArgs : Y(i).viewArgs) + J(o.value ? " ▴" : " ▾"), 1)) : $("", !0)
|
|
89829
89880
|
]),
|
|
89830
|
-
l.value && o.value ? (X(), Z("pre",
|
|
89831
|
-
u.value.length ? (X(), Z("div",
|
|
89832
|
-
Y(n).preview && !Y(n).preview.ok ? (X(), Z("div",
|
|
89881
|
+
l.value && o.value ? (X(), Z("pre", nWe, J(l.value), 1)) : $("", !0),
|
|
89882
|
+
u.value.length ? (X(), Z("div", rWe, [
|
|
89883
|
+
Y(n).preview && !Y(n).preview.ok ? (X(), Z("div", iWe, "⚠ " + J(Y(n).preview.error), 1)) : $("", !0),
|
|
89833
89884
|
(X(!0), Z(KY, null, nY(u.value.slice(0, Z9), (e, t) => {
|
|
89834
89885
|
var n, r;
|
|
89835
89886
|
return X(), Z("div", {
|
|
@@ -89837,19 +89888,19 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89837
89888
|
class: "preview-item",
|
|
89838
89889
|
"data-test": `preview-item-${t}`
|
|
89839
89890
|
}, [
|
|
89840
|
-
Q("span",
|
|
89841
|
-
Q("code",
|
|
89842
|
-
Q("span",
|
|
89843
|
-
Q("span",
|
|
89891
|
+
Q("span", oWe, J(e.op || "set"), 1),
|
|
89892
|
+
Q("code", sWe, J(e.jsonPath || "(主数据整体)"), 1),
|
|
89893
|
+
Q("span", cWe, [
|
|
89894
|
+
Q("span", lWe, J((n = e.oldSummary) == null ? "—" : n), 1),
|
|
89844
89895
|
f[7] || (f[7] = Q("span", { class: "preview-arrow" }, " → ", -1)),
|
|
89845
|
-
Q("span",
|
|
89896
|
+
Q("span", uWe, J((r = e.newSummary) == null ? "—" : r), 1)
|
|
89846
89897
|
])
|
|
89847
|
-
], 8,
|
|
89898
|
+
], 8, aWe);
|
|
89848
89899
|
}), 128)),
|
|
89849
|
-
d.value ? (X(), Z("div",
|
|
89900
|
+
d.value ? (X(), Z("div", dWe, "… 其余 " + J(u.value.length - Z9) + " 项", 1)) : $("", !0)
|
|
89850
89901
|
])) : $("", !0),
|
|
89851
|
-
Y(a) ? (X(), Z("div",
|
|
89852
|
-
Q("div",
|
|
89902
|
+
Y(a) ? (X(), Z("div", fWe, [oX(g9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), cX(J(Y(i).planConfirmedPrefix) + J(Y(a).choice) + J(Y(i).planConfirmedSuffix), 1)])) : $("", !0),
|
|
89903
|
+
Q("div", pWe, [Q("button", {
|
|
89853
89904
|
class: "approval-deny",
|
|
89854
89905
|
onClick: f[3] || (f[3] = (e) => Y(r)(!1))
|
|
89855
89906
|
}, [oX(_9, { text: Y(i).deny }, null, 8, ["text"])]), Q("button", {
|
|
@@ -89863,13 +89914,13 @@ var tUe = { class: "msg-actions" }, nUe = ["title"], rUe = {
|
|
|
89863
89914
|
//#endregion
|
|
89864
89915
|
//#region src/core/components/ConflictBar.vue?vue&type=script&setup=true&lang.ts
|
|
89865
89916
|
M();
|
|
89866
|
-
var
|
|
89917
|
+
var hWe = {
|
|
89867
89918
|
key: 0,
|
|
89868
89919
|
class: "conflict-bar"
|
|
89869
|
-
},
|
|
89920
|
+
}, gWe = { class: "conflict-head" }, _We = { class: "conflict-icon" }, vWe = { class: "conflict-title" }, yWe = { class: "conflict-detail" }, bWe = {
|
|
89870
89921
|
key: 0,
|
|
89871
89922
|
class: "conflict-diff"
|
|
89872
|
-
},
|
|
89923
|
+
}, xWe = { class: "conflict-diff-col" }, SWe = { class: "conflict-diff-label" }, CWe = { class: "conflict-diff-pre" }, wWe = { class: "conflict-diff-col" }, TWe = { class: "conflict-diff-label" }, EWe = { class: "conflict-diff-pre" }, DWe = { class: "conflict-actions" }, OWe = ["title"], kWe = ["title"], AWe = ["title"], jWe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
89873
89924
|
__name: "ConflictBar",
|
|
89874
89925
|
props: {
|
|
89875
89926
|
pendingConflict: {},
|
|
@@ -89903,19 +89954,19 @@ var fWe = {
|
|
|
89903
89954
|
return String(n);
|
|
89904
89955
|
}
|
|
89905
89956
|
});
|
|
89906
|
-
return (t, a) => e.pendingConflict ? (X(), Z("div",
|
|
89907
|
-
Q("div",
|
|
89957
|
+
return (t, a) => e.pendingConflict ? (X(), Z("div", hWe, [
|
|
89958
|
+
Q("div", gWe, [Q("span", _We, [oX(g9, { icon: e.icons.conflict }, null, 8, ["icon"])]), Q("span", vWe, [
|
|
89908
89959
|
cX(J(e.messages.conflictTitlePrefix), 1),
|
|
89909
89960
|
Q("code", null, J(e.pendingConflict.path), 1),
|
|
89910
89961
|
cX(J(e.messages.conflictTitleSuffix), 1)
|
|
89911
89962
|
])]),
|
|
89912
|
-
Q("div",
|
|
89963
|
+
Q("div", yWe, J(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
|
|
89913
89964
|
Q("button", {
|
|
89914
89965
|
class: "conflict-toggle",
|
|
89915
89966
|
onClick: a[0] || (a[0] = (e) => n.value = !n.value)
|
|
89916
89967
|
}, J(n.value ? e.messages.collapseDiff : e.messages.viewDiff) + J(n.value ? " ▴" : " ▾"), 1),
|
|
89917
|
-
n.value ? (X(), Z("div",
|
|
89918
|
-
Q("div",
|
|
89968
|
+
n.value ? (X(), Z("div", bWe, [Q("div", xWe, [Q("div", SWe, J(e.messages.agentValueLabel), 1), Q("pre", CWe, J(r.value || e.messages.deleteNoValue), 1)]), Q("div", wWe, [Q("div", TWe, J(e.messages.currentValueLabel), 1), Q("pre", EWe, J(i.value), 1)])])) : $("", !0),
|
|
89969
|
+
Q("div", DWe, [
|
|
89919
89970
|
Q("button", {
|
|
89920
89971
|
class: "conflict-keep",
|
|
89921
89972
|
onClick: a[1] || (a[1] = (t) => {
|
|
@@ -89923,7 +89974,7 @@ var fWe = {
|
|
|
89923
89974
|
return (n = e.onResolve) == null ? void 0 : n.call(e, "keep_external");
|
|
89924
89975
|
}),
|
|
89925
89976
|
title: e.messages.keepExternalTitle
|
|
89926
|
-
}, [oX(_9, { text: e.messages.keepExternal }, null, 8, ["text"])], 8,
|
|
89977
|
+
}, [oX(_9, { text: e.messages.keepExternal }, null, 8, ["text"])], 8, OWe),
|
|
89927
89978
|
Q("button", {
|
|
89928
89979
|
class: "conflict-overwrite",
|
|
89929
89980
|
onClick: a[2] || (a[2] = (t) => {
|
|
@@ -89931,7 +89982,7 @@ var fWe = {
|
|
|
89931
89982
|
return (n = e.onResolve) == null ? void 0 : n.call(e, "overwrite");
|
|
89932
89983
|
}),
|
|
89933
89984
|
title: e.messages.overwriteTitle
|
|
89934
|
-
}, [oX(_9, { text: e.messages.overwrite }, null, 8, ["text"])], 8,
|
|
89985
|
+
}, [oX(_9, { text: e.messages.overwrite }, null, 8, ["text"])], 8, kWe),
|
|
89935
89986
|
Q("button", {
|
|
89936
89987
|
class: "conflict-restore",
|
|
89937
89988
|
onClick: a[3] || (a[3] = (t) => {
|
|
@@ -89939,49 +89990,49 @@ var fWe = {
|
|
|
89939
89990
|
return (n = e.onResolve) == null ? void 0 : n.call(e, "restore");
|
|
89940
89991
|
}),
|
|
89941
89992
|
title: e.messages.restoreTitle
|
|
89942
|
-
}, [oX(_9, { text: e.messages.restore }, null, 8, ["text"])], 8,
|
|
89993
|
+
}, [oX(_9, { text: e.messages.restore }, null, 8, ["text"])], 8, AWe)
|
|
89943
89994
|
])
|
|
89944
89995
|
])) : $("", !0);
|
|
89945
89996
|
}
|
|
89946
|
-
}), [["__scopeId", "data-v-36dda58c"]]),
|
|
89997
|
+
}), [["__scopeId", "data-v-36dda58c"]]), MWe = { class: "chat-footer" }, NWe = ["title"], PWe = {
|
|
89947
89998
|
key: 0,
|
|
89948
89999
|
class: "drop-hint"
|
|
89949
|
-
},
|
|
90000
|
+
}, FWe = {
|
|
89950
90001
|
key: 1,
|
|
89951
90002
|
class: "quick-actions",
|
|
89952
90003
|
"data-test": "quick-actions"
|
|
89953
|
-
},
|
|
90004
|
+
}, IWe = [
|
|
89954
90005
|
"disabled",
|
|
89955
90006
|
"data-test",
|
|
89956
90007
|
"title",
|
|
89957
90008
|
"onClick"
|
|
89958
|
-
],
|
|
90009
|
+
], LWe = {
|
|
89959
90010
|
key: 2,
|
|
89960
90011
|
class: "chip-stack"
|
|
89961
|
-
},
|
|
90012
|
+
}, RWe = {
|
|
89962
90013
|
key: 0,
|
|
89963
90014
|
class: "focus-chips"
|
|
89964
|
-
},
|
|
90015
|
+
}, zWe = ["title", "onClick"], BWe = { class: "focus-chip-icon" }, VWe = { class: "focus-chip-path" }, HWe = ["title", "onClick"], UWe = {
|
|
89965
90016
|
key: 1,
|
|
89966
90017
|
class: "quote-chips",
|
|
89967
90018
|
"data-test": "quote-chips"
|
|
89968
|
-
},
|
|
90019
|
+
}, WWe = ["title"], GWe = { class: "quote-chip-text" }, KWe = ["title"], qWe = {
|
|
89969
90020
|
key: 2,
|
|
89970
90021
|
class: "img-chips",
|
|
89971
90022
|
"data-test": "img-chips"
|
|
89972
|
-
},
|
|
90023
|
+
}, JWe = ["title"], YWe = ["src", "alt"], XWe = ["onClick"], ZWe = {
|
|
89973
90024
|
key: 3,
|
|
89974
90025
|
class: "img-error",
|
|
89975
90026
|
"data-test": "img-error"
|
|
89976
|
-
},
|
|
90027
|
+
}, QWe = {
|
|
89977
90028
|
key: 3,
|
|
89978
90029
|
class: "gate-hint",
|
|
89979
90030
|
"data-test": "gate-hint"
|
|
89980
|
-
},
|
|
90031
|
+
}, $We = [
|
|
89981
90032
|
"placeholder",
|
|
89982
90033
|
"rows",
|
|
89983
90034
|
"disabled"
|
|
89984
|
-
],
|
|
90035
|
+
], eGe = { class: "input-actions" }, tGe = { class: "send-hint" }, nGe = ["title", "disabled"], rGe = {
|
|
89985
90036
|
key: 1,
|
|
89986
90037
|
width: "15",
|
|
89987
90038
|
height: "15",
|
|
@@ -89991,13 +90042,13 @@ var fWe = {
|
|
|
89991
90042
|
"stroke-width": "2",
|
|
89992
90043
|
"stroke-linecap": "round",
|
|
89993
90044
|
"stroke-linejoin": "round"
|
|
89994
|
-
},
|
|
90045
|
+
}, iGe = ["disabled", "title"], aGe = {
|
|
89995
90046
|
key: 0,
|
|
89996
90047
|
width: "16",
|
|
89997
90048
|
height: "16",
|
|
89998
90049
|
viewBox: "0 0 24 24",
|
|
89999
90050
|
fill: "currentColor"
|
|
90000
|
-
},
|
|
90051
|
+
}, oGe = {
|
|
90001
90052
|
key: 2,
|
|
90002
90053
|
width: "18",
|
|
90003
90054
|
height: "18",
|
|
@@ -90005,7 +90056,7 @@ var fWe = {
|
|
|
90005
90056
|
fill: "none",
|
|
90006
90057
|
stroke: "currentColor",
|
|
90007
90058
|
"stroke-width": "2"
|
|
90008
|
-
},
|
|
90059
|
+
}, sGe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
90009
90060
|
__name: "ChatInput",
|
|
90010
90061
|
props: {
|
|
90011
90062
|
placeholder: {},
|
|
@@ -90063,19 +90114,19 @@ var fWe = {
|
|
|
90063
90114
|
window.removeEventListener("dragstart", N, !0), window.removeEventListener("dragend", P, !0), te && clearTimeout(te);
|
|
90064
90115
|
}), (t, n) => {
|
|
90065
90116
|
var h;
|
|
90066
|
-
return X(), Z("div",
|
|
90117
|
+
return X(), Z("div", MWe, [Y(o) ? (X(), Z("button", {
|
|
90067
90118
|
key: 0,
|
|
90068
90119
|
class: "undo-foot-btn",
|
|
90069
90120
|
title: Y(f).undoTitle,
|
|
90070
90121
|
onClick: n[0] || (n[0] = (...e) => Y(s) && Y(s)(...e))
|
|
90071
|
-
}, J(Y(f).undo), 9,
|
|
90122
|
+
}, J(Y(f).undo), 9, NWe)) : $("", !0), Q("div", {
|
|
90072
90123
|
class: TK(["chat-input-wrap", { "drag-over": D.value }]),
|
|
90073
90124
|
onPointerdownCapture: T,
|
|
90074
90125
|
onDragover: n[5] || (n[5] = mZ((e) => D.value = !0, ["prevent"])),
|
|
90075
90126
|
onDragleave: n[6] || (n[6] = (e) => D.value = !1),
|
|
90076
90127
|
onDrop: mZ(A, ["prevent"])
|
|
90077
90128
|
}, [
|
|
90078
|
-
D.value ? (X(), Z("div",
|
|
90129
|
+
D.value ? (X(), Z("div", PWe, [n[7] || (n[7] = Q("svg", {
|
|
90079
90130
|
class: "drop-hint-icon",
|
|
90080
90131
|
viewBox: "0 0 24 24",
|
|
90081
90132
|
fill: "none",
|
|
@@ -90098,7 +90149,7 @@ var fWe = {
|
|
|
90098
90149
|
}),
|
|
90099
90150
|
Q("path", { d: "m21 15-4.35-4.35a1.5 1.5 0 0 0-2.12 0L5 20" })
|
|
90100
90151
|
], -1)), cX(" " + J(Y(f).imageDropHint), 1)])) : $("", !0),
|
|
90101
|
-
(h = e.quickActions) != null && h.length ? (X(), Z("div",
|
|
90152
|
+
(h = e.quickActions) != null && h.length ? (X(), Z("div", FWe, [(X(!0), Z(KY, null, nY(e.quickActions, (t, n) => (X(), Z("button", {
|
|
90102
90153
|
key: n,
|
|
90103
90154
|
type: "button",
|
|
90104
90155
|
class: "quick-action-chip",
|
|
@@ -90106,39 +90157,39 @@ var fWe = {
|
|
|
90106
90157
|
"data-test": `quick-action-${n}`,
|
|
90107
90158
|
title: t.prompt,
|
|
90108
90159
|
onClick: (e) => M(t)
|
|
90109
|
-
}, J(t.icon ? `${t.icon} ` : "") + J(t.label), 9,
|
|
90110
|
-
Y(c).length || Y(y).length || Y(p) || Y(S) ? (X(), Z("div",
|
|
90111
|
-
Y(c).length ? (X(), Z("div",
|
|
90160
|
+
}, J(t.icon ? `${t.icon} ` : "") + J(t.label), 9, IWe))), 128))])) : $("", !0),
|
|
90161
|
+
Y(c).length || Y(y).length || Y(p) || Y(S) ? (X(), Z("div", LWe, [
|
|
90162
|
+
Y(c).length ? (X(), Z("div", RWe, [(X(!0), Z(KY, null, nY(Y(c), (e) => (X(), Z("span", {
|
|
90112
90163
|
key: e.path,
|
|
90113
90164
|
class: "focus-chip",
|
|
90114
90165
|
title: Y(f).focusChipTitlePrefix + e.path + Y(f).focusChipTitleHint,
|
|
90115
90166
|
onClick: (t) => Y(u)(e)
|
|
90116
90167
|
}, [
|
|
90117
|
-
Q("span",
|
|
90118
|
-
Q("code",
|
|
90168
|
+
Q("span", BWe, [oX(g9, { icon: Y(d).focus }, null, 8, ["icon"])]),
|
|
90169
|
+
Q("code", VWe, J(e.path), 1),
|
|
90119
90170
|
Q("button", {
|
|
90120
90171
|
type: "button",
|
|
90121
90172
|
class: "focus-chip-x",
|
|
90122
90173
|
"data-test": "focus-clear",
|
|
90123
90174
|
title: Y(f).removeFocus,
|
|
90124
90175
|
onClick: mZ((t) => Y(l)(e.path), ["stop"])
|
|
90125
|
-
}, "✕", 8,
|
|
90126
|
-
], 8,
|
|
90127
|
-
Y(p) ? (X(), Z("div",
|
|
90176
|
+
}, "✕", 8, HWe)
|
|
90177
|
+
], 8, zWe))), 128))])) : $("", !0),
|
|
90178
|
+
Y(p) ? (X(), Z("div", UWe, [Q("span", {
|
|
90128
90179
|
class: "quote-chip",
|
|
90129
90180
|
title: w(Y(p))
|
|
90130
90181
|
}, [
|
|
90131
90182
|
n[8] || (n[8] = Q("span", { class: "quote-chip-icon" }, "❝", -1)),
|
|
90132
|
-
Q("span",
|
|
90183
|
+
Q("span", GWe, J(Y(p).text), 1),
|
|
90133
90184
|
Q("button", {
|
|
90134
90185
|
type: "button",
|
|
90135
90186
|
class: "focus-chip-x",
|
|
90136
90187
|
"data-test": "quote-clear",
|
|
90137
90188
|
title: Y(f).quoteRemove,
|
|
90138
90189
|
onClick: n[1] || (n[1] = mZ((e) => Y(m)(), ["stop"]))
|
|
90139
|
-
}, "✕", 8,
|
|
90140
|
-
], 8,
|
|
90141
|
-
Y(y).length ? (X(), Z("div",
|
|
90190
|
+
}, "✕", 8, KWe)
|
|
90191
|
+
], 8, WWe)])) : $("", !0),
|
|
90192
|
+
Y(y).length ? (X(), Z("div", qWe, [(X(!0), Z(KY, null, nY(Y(y), (e) => (X(), Z("span", {
|
|
90142
90193
|
key: e.id,
|
|
90143
90194
|
class: "img-chip",
|
|
90144
90195
|
title: e.name || Y(f).imageAlt
|
|
@@ -90146,15 +90197,15 @@ var fWe = {
|
|
|
90146
90197
|
class: "img-chip-thumb",
|
|
90147
90198
|
src: e.dataUri,
|
|
90148
90199
|
alt: e.name || Y(f).imageAlt
|
|
90149
|
-
}, null, 8,
|
|
90200
|
+
}, null, 8, YWe), Q("button", {
|
|
90150
90201
|
type: "button",
|
|
90151
90202
|
class: "img-chip-x",
|
|
90152
90203
|
"data-test": "img-chip-x",
|
|
90153
90204
|
onClick: (t) => Y(x)(e.id)
|
|
90154
|
-
}, "✕", 8,
|
|
90155
|
-
Y(S) ? (X(), Z("div",
|
|
90205
|
+
}, "✕", 8, XWe)], 8, JWe))), 128))])) : $("", !0),
|
|
90206
|
+
Y(S) ? (X(), Z("div", ZWe, J(Y(S)), 1)) : $("", !0)
|
|
90156
90207
|
])) : $("", !0),
|
|
90157
|
-
e.gatePending ? (X(), Z("div",
|
|
90208
|
+
e.gatePending ? (X(), Z("div", QWe, J(Y(f).inputGateHint), 1)) : $("", !0),
|
|
90158
90209
|
fJ(Q("textarea", {
|
|
90159
90210
|
"onUpdate:modelValue": n[2] || (n[2] = (e) => /* @__PURE__ */ Fq(r) ? r.value = e : null),
|
|
90160
90211
|
class: "chat-input",
|
|
@@ -90163,9 +90214,9 @@ var fWe = {
|
|
|
90163
90214
|
disabled: e.gatePending,
|
|
90164
90215
|
onKeydown: n[3] || (n[3] = (...e) => Y(a) && Y(a)(...e)),
|
|
90165
90216
|
onPaste: j
|
|
90166
|
-
}, null, 40,
|
|
90167
|
-
Q("div",
|
|
90168
|
-
Q("span",
|
|
90217
|
+
}, null, 40, $We), [[pZ, Y(r)]]),
|
|
90218
|
+
Q("div", eGe, [
|
|
90219
|
+
Q("span", tGe, J(Y(f).sendHint), 1),
|
|
90169
90220
|
Q("button", {
|
|
90170
90221
|
class: "attach-btn",
|
|
90171
90222
|
title: Y(f).attachImageTitle,
|
|
@@ -90175,7 +90226,7 @@ var fWe = {
|
|
|
90175
90226
|
}, [Y(d).attachImage ? (X(), tX(g9, {
|
|
90176
90227
|
key: 0,
|
|
90177
90228
|
icon: Y(d).attachImage
|
|
90178
|
-
}, null, 8, ["icon"])) : (X(), Z("svg",
|
|
90229
|
+
}, null, 8, ["icon"])) : (X(), Z("svg", rGe, [...n[9] || (n[9] = [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, nGe),
|
|
90179
90230
|
Q("input", {
|
|
90180
90231
|
ref_key: "fileInput",
|
|
90181
90232
|
ref: E,
|
|
@@ -90191,7 +90242,7 @@ var fWe = {
|
|
|
90191
90242
|
disabled: !Y(g).loading && !Y(r).trim() && !Y(y).length && !Y(C) || e.gatePending && !Y(g).loading,
|
|
90192
90243
|
title: Y(g).loading ? Y(f).stopTitle : Y(f).sendTitle,
|
|
90193
90244
|
onClick: n[4] || (n[4] = (e) => Y(g).loading ? Y(_)() : Y(i)())
|
|
90194
|
-
}, [Y(g).loading ? (X(), Z("svg",
|
|
90245
|
+
}, [Y(g).loading ? (X(), Z("svg", aGe, [...n[10] || (n[10] = [Q("rect", {
|
|
90195
90246
|
x: "6",
|
|
90196
90247
|
y: "6",
|
|
90197
90248
|
width: "12",
|
|
@@ -90200,12 +90251,12 @@ var fWe = {
|
|
|
90200
90251
|
}, null, -1)])])) : Y(d).send ? (X(), tX(g9, {
|
|
90201
90252
|
key: 1,
|
|
90202
90253
|
icon: Y(d).send
|
|
90203
|
-
}, null, 8, ["icon"])) : (X(), Z("svg",
|
|
90254
|
+
}, null, 8, ["icon"])) : (X(), Z("svg", oGe, [...n[11] || (n[11] = [Q("line", {
|
|
90204
90255
|
x1: "22",
|
|
90205
90256
|
y1: "2",
|
|
90206
90257
|
x2: "11",
|
|
90207
90258
|
y2: "13"
|
|
90208
|
-
}, null, -1), Q("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)])]))], 10,
|
|
90259
|
+
}, null, -1), Q("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)])]))], 10, iGe)
|
|
90209
90260
|
])
|
|
90210
90261
|
], 34)]);
|
|
90211
90262
|
};
|
|
@@ -90214,178 +90265,178 @@ var fWe = {
|
|
|
90214
90265
|
//#endregion
|
|
90215
90266
|
//#region src/core/components/DebugDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
90216
90267
|
M();
|
|
90217
|
-
var
|
|
90268
|
+
var cGe = {
|
|
90218
90269
|
key: 0,
|
|
90219
90270
|
class: "debug-drawer"
|
|
90220
|
-
},
|
|
90271
|
+
}, lGe = { class: "drawer-header" }, uGe = { class: "tab-group" }, dGe = { class: "header-actions" }, fGe = ["title"], pGe = ["title"], mGe = ["title"], hGe = {
|
|
90221
90272
|
key: 0,
|
|
90222
90273
|
class: "drawer-filters"
|
|
90223
|
-
},
|
|
90274
|
+
}, gGe = ["onClick"], _Ge = { class: "chip-count" }, vGe = { class: "chip-count" }, yGe = {
|
|
90224
90275
|
key: 0,
|
|
90225
90276
|
class: "context-panel"
|
|
90226
|
-
},
|
|
90277
|
+
}, bGe = {
|
|
90227
90278
|
key: 0,
|
|
90228
90279
|
class: "trace-empty"
|
|
90229
|
-
},
|
|
90280
|
+
}, xGe = { class: "ctx-overview" }, SGe = { class: "ctx-occupancy" }, CGe = ["title"], wGe = ["title"], TGe = { class: "ctx-pct" }, EGe = { class: "ctx-kv-row" }, DGe = { class: "ctx-kv" }, OGe = {
|
|
90230
90281
|
key: 0,
|
|
90231
90282
|
class: "ctx-kv"
|
|
90232
|
-
},
|
|
90283
|
+
}, kGe = {
|
|
90233
90284
|
key: 1,
|
|
90234
90285
|
class: "ctx-kv"
|
|
90235
|
-
},
|
|
90286
|
+
}, AGe = { class: "ctx-section-title" }, jGe = ["title"], MGe = { class: "ctx-cat-bar" }, NGe = { class: "ctx-cat-tokens" }, PGe = {
|
|
90236
90287
|
key: 0,
|
|
90237
90288
|
class: "ctx-compression"
|
|
90238
|
-
},
|
|
90289
|
+
}, FGe = { class: "ctx-section-title" }, IGe = { class: "ctx-kv-row" }, LGe = { class: "ctx-kv" }, RGe = { class: "ctx-kv" }, zGe = { class: "ctx-kv" }, BGe = {
|
|
90239
90290
|
key: 0,
|
|
90240
90291
|
class: "ctx-kv"
|
|
90241
|
-
},
|
|
90292
|
+
}, VGe = {
|
|
90242
90293
|
key: 1,
|
|
90243
90294
|
class: "subagent-panel"
|
|
90244
|
-
},
|
|
90295
|
+
}, HGe = {
|
|
90245
90296
|
key: 0,
|
|
90246
90297
|
class: "sub-section"
|
|
90247
|
-
},
|
|
90298
|
+
}, UGe = { class: "sub-section-title" }, WGe = {
|
|
90248
90299
|
key: 1,
|
|
90249
90300
|
class: "trace-empty"
|
|
90250
|
-
},
|
|
90301
|
+
}, GGe = {
|
|
90251
90302
|
key: 0,
|
|
90252
90303
|
class: "sub-section"
|
|
90253
|
-
},
|
|
90304
|
+
}, KGe = { class: "sub-section-title" }, qGe = { class: "sub-head" }, JGe = { class: "sub-label" }, YGe = { class: "sub-steps-badge" }, XGe = { class: "sub-task" }, ZGe = {
|
|
90254
90305
|
key: 1,
|
|
90255
90306
|
class: "sub-section"
|
|
90256
|
-
},
|
|
90307
|
+
}, QGe = { class: "sub-section-title" }, $Ge = { class: "sub-head" }, eKe = { class: "sub-label" }, tKe = {
|
|
90257
90308
|
key: 0,
|
|
90258
90309
|
class: "sub-dur"
|
|
90259
|
-
},
|
|
90310
|
+
}, nKe = ["onClick"], rKe = { class: "sub-task" }, iKe = {
|
|
90260
90311
|
key: 0,
|
|
90261
90312
|
class: "sub-result"
|
|
90262
|
-
},
|
|
90313
|
+
}, aKe = {
|
|
90263
90314
|
key: 1,
|
|
90264
90315
|
class: "sub-steps-list"
|
|
90265
|
-
},
|
|
90316
|
+
}, oKe = { class: "sub-step-kind" }, sKe = { class: "sub-step-name" }, cKe = { class: "sub-step-ts" }, lKe = {
|
|
90266
90317
|
key: 0,
|
|
90267
90318
|
class: "empty"
|
|
90268
|
-
},
|
|
90319
|
+
}, uKe = ["onClick"], dKe = { class: "log-group-title" }, fKe = { class: "log-group-meta" }, pKe = {
|
|
90269
90320
|
key: 0,
|
|
90270
90321
|
class: "lg-badge"
|
|
90271
|
-
},
|
|
90322
|
+
}, mKe = {
|
|
90272
90323
|
key: 1,
|
|
90273
90324
|
class: "lg-badge"
|
|
90274
|
-
},
|
|
90325
|
+
}, hKe = {
|
|
90275
90326
|
key: 2,
|
|
90276
90327
|
class: "lg-badge err"
|
|
90277
|
-
},
|
|
90328
|
+
}, gKe = { class: "log-group-body" }, _Ke = { class: "log-head" }, vKe = {
|
|
90278
90329
|
key: 0,
|
|
90279
90330
|
class: "log-source"
|
|
90280
|
-
},
|
|
90331
|
+
}, yKe = { class: "log-time" }, bKe = { class: "log-body" }, xKe = { class: "kv-grid" }, SKe = { class: "kv" }, CKe = { class: "k" }, wKe = { class: "v" }, TKe = { class: "kv" }, EKe = { class: "k" }, DKe = { class: "v" }, OKe = { class: "kv" }, kKe = { class: "v" }, AKe = { class: "kv" }, jKe = { class: "k" }, MKe = { class: "v" }, NKe = { class: "section-label" }, PKe = { class: "chip-row" }, FKe = { class: "section-label" }, IKe = { class: "msg-list" }, LKe = { class: "msg-text" }, RKe = { class: "badge-row" }, zKe = { class: "badge" }, BKe = {
|
|
90281
90332
|
key: 0,
|
|
90282
90333
|
class: "badge muted"
|
|
90283
|
-
},
|
|
90334
|
+
}, VKe = { class: "badge muted" }, HKe = {
|
|
90284
90335
|
key: 1,
|
|
90285
90336
|
class: "badge muted"
|
|
90286
|
-
},
|
|
90337
|
+
}, UKe = ["onClick"], WKe = ["title", "onClick"], GKe = ["onClick"], KKe = ["title", "onClick"], qKe = { class: "msg-detail" }, JKe = {
|
|
90287
90338
|
key: 0,
|
|
90288
90339
|
class: "msg-text"
|
|
90289
|
-
},
|
|
90340
|
+
}, YKe = { class: "tc-inline-name" }, XKe = { class: "tc-inline-args" }, ZKe = {
|
|
90290
90341
|
key: 1,
|
|
90291
90342
|
class: "tc-id"
|
|
90292
|
-
},
|
|
90343
|
+
}, QKe = {
|
|
90293
90344
|
key: 1,
|
|
90294
90345
|
class: "log-raw"
|
|
90295
|
-
},
|
|
90346
|
+
}, $Ke = { class: "badge-row" }, eqe = { class: "badge" }, tqe = {
|
|
90296
90347
|
key: 0,
|
|
90297
90348
|
class: "badge warn"
|
|
90298
|
-
},
|
|
90349
|
+
}, nqe = {
|
|
90299
90350
|
key: 0,
|
|
90300
90351
|
class: "resp-content"
|
|
90301
|
-
},
|
|
90352
|
+
}, rqe = {
|
|
90302
90353
|
key: 1,
|
|
90303
90354
|
class: "tc-list"
|
|
90304
|
-
},
|
|
90355
|
+
}, iqe = { class: "tc-name" }, aqe = { class: "tc-args" }, oqe = {
|
|
90305
90356
|
key: 2,
|
|
90306
90357
|
class: "usage-row"
|
|
90307
|
-
},
|
|
90358
|
+
}, sqe = { class: "usage" }, cqe = { class: "usage" }, lqe = { class: "usage" }, uqe = {
|
|
90308
90359
|
key: 0,
|
|
90309
90360
|
class: "usage"
|
|
90310
|
-
},
|
|
90361
|
+
}, dqe = { class: "tc-name" }, fqe = {
|
|
90311
90362
|
key: 0,
|
|
90312
90363
|
class: "tc-dur"
|
|
90313
|
-
},
|
|
90364
|
+
}, pqe = ["title", "onClick"], mqe = { class: "tc-args" }, hqe = { class: "tc-result-sep" }, gqe = { class: "tc-args tc-result" }, _qe = {
|
|
90314
90365
|
key: 1,
|
|
90315
90366
|
class: "tc-card inline"
|
|
90316
|
-
},
|
|
90367
|
+
}, vqe = { class: "tc-name" }, yqe = {
|
|
90317
90368
|
key: 0,
|
|
90318
90369
|
class: "tc-dur running"
|
|
90319
|
-
},
|
|
90370
|
+
}, bqe = { class: "tc-args" }, xqe = {
|
|
90320
90371
|
key: 4,
|
|
90321
90372
|
class: "err-box"
|
|
90322
|
-
},
|
|
90373
|
+
}, Sqe = { class: "log-footer" }, Cqe = ["onClick"], wqe = ["onClick"], Tqe = {
|
|
90323
90374
|
key: 0,
|
|
90324
90375
|
class: "log-raw"
|
|
90325
|
-
},
|
|
90376
|
+
}, Eqe = {
|
|
90326
90377
|
key: 3,
|
|
90327
90378
|
class: "info-body"
|
|
90328
|
-
},
|
|
90379
|
+
}, Dqe = {
|
|
90329
90380
|
key: 0,
|
|
90330
90381
|
class: "empty"
|
|
90331
|
-
},
|
|
90382
|
+
}, Oqe = { class: "info-section" }, kqe = { class: "info-title" }, Aqe = { class: "kv-grid" }, jqe = { class: "kv" }, Mqe = { class: "v" }, Nqe = { class: "kv" }, Pqe = { class: "k" }, Fqe = { class: "v" }, Iqe = { class: "kv" }, Lqe = { class: "k" }, Rqe = { class: "v" }, zqe = { class: "kv" }, Bqe = { class: "k" }, Vqe = { class: "v" }, Hqe = {
|
|
90332
90383
|
class: "kv",
|
|
90333
90384
|
style: { "margin-top": "6px" }
|
|
90334
|
-
},
|
|
90385
|
+
}, Uqe = { class: "k" }, Wqe = {
|
|
90335
90386
|
class: "v",
|
|
90336
90387
|
style: { "font-size": "11px" }
|
|
90337
|
-
},
|
|
90388
|
+
}, Gqe = { class: "info-section" }, Kqe = { class: "info-title" }, qqe = { class: "info-name" }, Jqe = { class: "info-desc" }, Yqe = {
|
|
90338
90389
|
key: 0,
|
|
90339
90390
|
class: "info-section"
|
|
90340
|
-
},
|
|
90391
|
+
}, Xqe = { class: "info-title" }, Zqe = { class: "info-hint" }, Qqe = ["onClick"], $qe = { class: "info-desc" }, eJe = {
|
|
90341
90392
|
key: 0,
|
|
90342
90393
|
class: "skill-content"
|
|
90343
|
-
},
|
|
90394
|
+
}, tJe = {
|
|
90344
90395
|
key: 0,
|
|
90345
90396
|
class: "skill-loading"
|
|
90346
|
-
},
|
|
90397
|
+
}, nJe = {
|
|
90347
90398
|
key: 1,
|
|
90348
90399
|
class: "skill-error"
|
|
90349
|
-
},
|
|
90400
|
+
}, rJe = {
|
|
90350
90401
|
key: 2,
|
|
90351
90402
|
class: "skill-pre"
|
|
90352
|
-
},
|
|
90403
|
+
}, iJe = {
|
|
90353
90404
|
key: 1,
|
|
90354
90405
|
class: "info-section"
|
|
90355
|
-
},
|
|
90406
|
+
}, aJe = { class: "info-title" }, oJe = { class: "info-item" }, sJe = { class: "info-name" }, cJe = { class: "info-desc" }, lJe = { class: "info-section" }, uJe = { class: "info-title" }, dJe = { class: "kv-grid" }, fJe = { class: "kv" }, pJe = { class: "k" }, mJe = { class: "v" }, hJe = { class: "kv" }, gJe = { class: "k" }, _Je = { class: "v" }, vJe = { class: "kv" }, yJe = { class: "k" }, bJe = { class: "v" }, xJe = { class: "kv" }, SJe = { class: "k" }, CJe = {
|
|
90356
90407
|
class: "v",
|
|
90357
90408
|
style: { "font-size": "11px" }
|
|
90358
|
-
},
|
|
90409
|
+
}, wJe = {
|
|
90359
90410
|
key: 2,
|
|
90360
90411
|
class: "info-section"
|
|
90361
|
-
},
|
|
90412
|
+
}, TJe = { class: "info-title" }, EJe = { class: "info-name" }, DJe = { class: "src-tag mcp" }, OJe = { class: "info-desc" }, kJe = {
|
|
90362
90413
|
key: 3,
|
|
90363
90414
|
class: "info-section"
|
|
90364
|
-
},
|
|
90415
|
+
}, AJe = { class: "info-title" }, jJe = { class: "kv-grid" }, MJe = { class: "kv" }, NJe = { class: "k" }, PJe = { class: "v" }, FJe = { class: "kv" }, IJe = { class: "k" }, LJe = { class: "v" }, RJe = { class: "kv" }, zJe = { class: "k" }, BJe = { class: "v" }, VJe = {
|
|
90365
90416
|
key: 0,
|
|
90366
90417
|
class: "kv"
|
|
90367
|
-
},
|
|
90418
|
+
}, HJe = { class: "k" }, UJe = {
|
|
90368
90419
|
class: "v",
|
|
90369
90420
|
style: { "font-size": "11px" }
|
|
90370
|
-
},
|
|
90421
|
+
}, WJe = {
|
|
90371
90422
|
key: 4,
|
|
90372
90423
|
class: "info-section"
|
|
90373
|
-
},
|
|
90424
|
+
}, GJe = { class: "info-title" }, KJe = {
|
|
90374
90425
|
key: 5,
|
|
90375
90426
|
class: "info-section"
|
|
90376
|
-
},
|
|
90427
|
+
}, qJe = { class: "info-title" }, JJe = { class: "info-pre" }, YJe = {
|
|
90377
90428
|
key: 6,
|
|
90378
90429
|
class: "info-section"
|
|
90379
|
-
},
|
|
90430
|
+
}, XJe = { class: "info-title" }, ZJe = { class: "info-kv" }, QJe = { class: "kv" }, $Je = { class: "k" }, eYe = { class: "v" }, tYe = { class: "kv" }, nYe = { class: "k" }, rYe = { class: "v" }, iYe = { class: "kv" }, aYe = { class: "k" }, oYe = { class: "v" }, sYe = { class: "kv" }, cYe = { class: "k" }, lYe = { class: "v" }, uYe = { class: "kv" }, dYe = { class: "k" }, fYe = {
|
|
90380
90431
|
class: "v",
|
|
90381
90432
|
style: { "font-size": "11px" }
|
|
90382
|
-
},
|
|
90433
|
+
}, pYe = {
|
|
90383
90434
|
key: 0,
|
|
90384
90435
|
class: "kv"
|
|
90385
|
-
},
|
|
90436
|
+
}, mYe = { class: "k" }, hYe = {
|
|
90386
90437
|
class: "v",
|
|
90387
90438
|
style: { "font-size": "11px" }
|
|
90388
|
-
}, Q9 = 400,
|
|
90439
|
+
}, Q9 = 400, gYe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
90389
90440
|
__name: "DebugDrawer",
|
|
90390
90441
|
props: {
|
|
90391
90442
|
logs: { default: () => [] },
|
|
@@ -90804,8 +90855,8 @@ var aGe = {
|
|
|
90804
90855
|
return (t, n) => (X(), tX(DJ, { to: "body" }, [oX(LX, { name: "drawer" }, {
|
|
90805
90856
|
default: dJ(() => {
|
|
90806
90857
|
var t;
|
|
90807
|
-
return [e.visible ? (X(), Z("div",
|
|
90808
|
-
Q("div",
|
|
90858
|
+
return [e.visible ? (X(), Z("div", cGe, [Q("div", { class: TK(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
|
|
90859
|
+
Q("div", lGe, [Q("div", uGe, [
|
|
90809
90860
|
Q("button", {
|
|
90810
90861
|
class: TK(["tab-btn", { active: ue.value === "logs" }]),
|
|
90811
90862
|
onClick: n[0] || (n[0] = (e) => me("logs"))
|
|
@@ -90825,33 +90876,33 @@ var aGe = {
|
|
|
90825
90876
|
class: TK(["tab-btn", { active: ue.value === "info" }]),
|
|
90826
90877
|
onClick: n[3] || (n[3] = (e) => me("info"))
|
|
90827
90878
|
}, "🧬 " + J(y.value.debugTabInfo), 3)) : $("", !0)
|
|
90828
|
-
]), Q("div",
|
|
90879
|
+
]), Q("div", dGe, [
|
|
90829
90880
|
Q("button", {
|
|
90830
90881
|
class: "hd-btn",
|
|
90831
90882
|
title: y.value.debugCopyReport,
|
|
90832
90883
|
onClick: v
|
|
90833
|
-
}, J(g.value === "report" ? "✓" : "💾"), 9,
|
|
90884
|
+
}, J(g.value === "report" ? "✓" : "💾"), 9, fGe),
|
|
90834
90885
|
ue.value === "logs" ? (X(), Z("button", {
|
|
90835
90886
|
key: 0,
|
|
90836
90887
|
class: "hd-btn",
|
|
90837
90888
|
title: y.value.debugClearLogs,
|
|
90838
90889
|
onClick: le
|
|
90839
|
-
}, "🗑️", 8,
|
|
90890
|
+
}, "🗑️", 8, pGe)) : $("", !0),
|
|
90840
90891
|
Q("button", {
|
|
90841
90892
|
class: "hd-btn",
|
|
90842
90893
|
title: y.value.close,
|
|
90843
90894
|
onClick: F
|
|
90844
|
-
}, "✕", 8,
|
|
90895
|
+
}, "✕", 8, mGe)
|
|
90845
90896
|
])]),
|
|
90846
|
-
ue.value === "logs" ? (X(), Z("div",
|
|
90897
|
+
ue.value === "logs" ? (X(), Z("div", hGe, [(X(!0), Z(KY, null, nY(b.value, (e, t) => (X(), Z("button", {
|
|
90847
90898
|
key: t,
|
|
90848
90899
|
class: TK(["filter-chip", { active: i.value === t }]),
|
|
90849
90900
|
style: wK({ "--chip-color": e.color }),
|
|
90850
90901
|
onClick: (e) => i.value = t
|
|
90851
|
-
}, [cX(J(e.icon) + " " + J(e.label) + " ", 1), Q("span",
|
|
90902
|
+
}, [cX(J(e.icon) + " " + J(e.label) + " ", 1), Q("span", _Ge, J(C.value[t] || 0), 1)], 14, gGe))), 128)), Q("button", {
|
|
90852
90903
|
class: TK(["filter-chip all", { active: i.value === "all" }]),
|
|
90853
90904
|
onClick: n[4] || (n[4] = (e) => i.value = "all")
|
|
90854
|
-
}, [cX(J(y.value.debugFilterAll) + " ", 1), Q("span",
|
|
90905
|
+
}, [cX(J(y.value.debugFilterAll) + " ", 1), Q("span", vGe, J(C.value.all || 0), 1)], 2)])) : $("", !0),
|
|
90855
90906
|
Q("div", {
|
|
90856
90907
|
class: "drawer-body",
|
|
90857
90908
|
ref_key: "drawerBodyEl",
|
|
@@ -90865,8 +90916,8 @@ var aGe = {
|
|
|
90865
90916
|
ref_key: "drawerContentsEl",
|
|
90866
90917
|
ref: c
|
|
90867
90918
|
}, [
|
|
90868
|
-
ue.value === "context" ? (X(), Z("div",
|
|
90869
|
-
Q("div",
|
|
90919
|
+
ue.value === "context" ? (X(), Z("div", yGe, [be.value ? (X(), Z(KY, { key: 1 }, [be.value ? (X(), Z(KY, { key: 0 }, [
|
|
90920
|
+
Q("div", xGe, [Q("div", SGe, [Q("div", {
|
|
90870
90921
|
class: "ctx-bar-track",
|
|
90871
90922
|
title: `${y.value.debugCtxOccupancy} ${Math.round(be.value.occupancy * 100)}%`
|
|
90872
90923
|
}, [Q("div", {
|
|
@@ -90877,12 +90928,12 @@ var aGe = {
|
|
|
90877
90928
|
class: "ctx-threshold-mark",
|
|
90878
90929
|
style: wK({ left: Math.min(be.value.thresholdRatio * 100, 100) + "%" }),
|
|
90879
90930
|
title: y.value.debugCtxThreshold
|
|
90880
|
-
}, null, 12,
|
|
90881
|
-
Q("span",
|
|
90882
|
-
be.value.contextWindow ? (X(), Z("span",
|
|
90883
|
-
be.value.thresholdRatio > 0 ? (X(), Z("span",
|
|
90931
|
+
}, null, 12, wGe)) : $("", !0)], 8, CGe), Q("span", TGe, J(Math.round(be.value.occupancy * 100)) + "%", 1)]), Q("div", EGe, [
|
|
90932
|
+
Q("span", DGe, J(y.value.debugCtxTokens) + " " + J(be.value.totalTokens) + " token", 1),
|
|
90933
|
+
be.value.contextWindow ? (X(), Z("span", OGe, J(y.value.debugCtxWindow) + " " + J(be.value.contextWindow), 1)) : $("", !0),
|
|
90934
|
+
be.value.thresholdRatio > 0 ? (X(), Z("span", kGe, J(y.value.debugCtxThresholdPct) + " " + J(Math.round(be.value.thresholdRatio * 100)) + "%", 1)) : $("", !0)
|
|
90884
90935
|
])]),
|
|
90885
|
-
Q("div",
|
|
90936
|
+
Q("div", AGe, J(y.value.debugCtxCategories), 1),
|
|
90886
90937
|
(X(!0), Z(KY, null, nY(be.value.categories, (e) => (X(), Z("div", {
|
|
90887
90938
|
key: e.key,
|
|
90888
90939
|
class: "ctx-cat"
|
|
@@ -90890,62 +90941,62 @@ var aGe = {
|
|
|
90890
90941
|
Q("span", {
|
|
90891
90942
|
class: "ctx-cat-label",
|
|
90892
90943
|
title: e.label
|
|
90893
|
-
}, J(e.label), 9,
|
|
90894
|
-
Q("div",
|
|
90944
|
+
}, J(e.label), 9, jGe),
|
|
90945
|
+
Q("div", MGe, [Q("div", {
|
|
90895
90946
|
class: "ctx-cat-fill",
|
|
90896
90947
|
style: wK({ width: Math.max(Math.round(e.pct * 100), 2) + "%" })
|
|
90897
90948
|
}, null, 4)]),
|
|
90898
|
-
Q("span",
|
|
90949
|
+
Q("span", NGe, [cX(J(e.tokens) + " ", 1), Q("i", null, "(" + J(Math.round(e.pct * 100)) + "%)", 1)])
|
|
90899
90950
|
]))), 128)),
|
|
90900
|
-
be.value.compression ? (X(), Z("div",
|
|
90901
|
-
Q("span",
|
|
90902
|
-
Q("span",
|
|
90903
|
-
Q("span",
|
|
90904
|
-
be.value.compression.decision ? (X(), Z("span",
|
|
90951
|
+
be.value.compression ? (X(), Z("div", PGe, [Q("div", FGe, J(y.value.debugCtxLastCompression), 1), Q("div", IGe, [
|
|
90952
|
+
Q("span", LGe, J(y.value.debugCtxSummarized) + " " + J(be.value.compression.roundsSummarized) + "/" + J(be.value.compression.roundsTotal) + J(y.value.debugCtxRoundsSuffix), 1),
|
|
90953
|
+
Q("span", RGe, J(y.value.debugCtxRecalled) + " " + J(be.value.compression.roundsRecalled), 1),
|
|
90954
|
+
Q("span", zGe, J(be.value.compression.strategy), 1),
|
|
90955
|
+
be.value.compression.decision ? (X(), Z("span", BGe, "🤖 " + J(y.value.debugCtxAgentDecision) + J(Oe(be.value.compression.decision)), 1)) : $("", !0)
|
|
90905
90956
|
])])) : $("", !0)
|
|
90906
|
-
], 64)) : $("", !0)], 64)) : (X(), Z("div",
|
|
90907
|
-
ue.value === "subagent" ? (X(), Z("div",
|
|
90957
|
+
], 64)) : $("", !0)], 64)) : (X(), Z("div", bGe, J(y.value.debugCtxEmpty), 1))])) : $("", !0),
|
|
90958
|
+
ue.value === "subagent" ? (X(), Z("div", VGe, [we.value.length ? (X(), Z("div", HGe, [Q("div", UGe, "🔒 " + J(y.value.debugLocksTitle) + " (" + J(we.value.length) + ")", 1), (X(!0), Z(KY, null, nY(we.value, ([e, t]) => (X(), Z("div", {
|
|
90908
90959
|
key: "lock-" + e,
|
|
90909
90960
|
class: "sub-task"
|
|
90910
|
-
}, "🔒 " + J(e) + " ← " + J(t), 1))), 128))])) : $("", !0), !Se.value.length && !Ce.value.length ? (X(), Z("div",
|
|
90961
|
+
}, "🔒 " + J(e) + " ← " + J(t), 1))), 128))])) : $("", !0), !Se.value.length && !Ce.value.length ? (X(), Z("div", WGe, J(y.value.debugSubagentEmpty), 1)) : (X(), Z(KY, { key: 2 }, [Se.value.length ? (X(), Z("div", GGe, [Q("div", KGe, "▶ " + J(y.value.debugSubRunningTitle) + " (" + J(Se.value.length) + ")", 1), (X(!0), Z(KY, null, nY(Se.value, (e, t) => (X(), Z("div", {
|
|
90911
90962
|
key: "a" + t,
|
|
90912
90963
|
class: TK(["sub-card", e.status])
|
|
90913
|
-
}, [Q("div",
|
|
90964
|
+
}, [Q("div", qGe, [
|
|
90914
90965
|
Q("span", {
|
|
90915
90966
|
class: "sub-status",
|
|
90916
90967
|
style: wK({ background: Te.value[e.status] && Te.value[e.status].color || "#9ca3af" })
|
|
90917
90968
|
}, J(Te.value[e.status] && Te.value[e.status].label || e.status), 5),
|
|
90918
|
-
Q("span",
|
|
90919
|
-
Q("span",
|
|
90920
|
-
]), Q("div",
|
|
90969
|
+
Q("span", JGe, J(e.label), 1),
|
|
90970
|
+
Q("span", YGe, J(e.steps.length) + J(y.value.debugStepsCountSuffix), 1)
|
|
90971
|
+
]), Q("div", XGe, J(ve(e.task, 80)), 1)], 2))), 128))])) : $("", !0), Ce.value.length ? (X(), Z("div", ZGe, [Q("div", QGe, "🕐 " + J(y.value.debugSubHistoryTitle) + " (" + J(Ce.value.length) + ")", 1), (X(!0), Z(KY, null, nY(Ce.value, (e, t) => (X(), Z("div", {
|
|
90921
90972
|
key: "h" + t,
|
|
90922
90973
|
class: TK(["sub-card", e.status])
|
|
90923
90974
|
}, [
|
|
90924
|
-
Q("div",
|
|
90975
|
+
Q("div", $Ge, [
|
|
90925
90976
|
Q("span", {
|
|
90926
90977
|
class: "sub-status",
|
|
90927
90978
|
style: wK({ background: Te.value[e.status] && Te.value[e.status].color || "#9ca3af" })
|
|
90928
90979
|
}, J(Te.value[e.status] && Te.value[e.status].label || e.status), 5),
|
|
90929
|
-
Q("span",
|
|
90930
|
-
e.durationMs == null ? $("", !0) : (X(), Z("span",
|
|
90980
|
+
Q("span", eKe, J(e.label), 1),
|
|
90981
|
+
e.durationMs == null ? $("", !0) : (X(), Z("span", tKe, J(ye(e.durationMs)), 1)),
|
|
90931
90982
|
e.steps.length ? (X(), Z("button", {
|
|
90932
90983
|
key: 1,
|
|
90933
90984
|
class: "sub-toggle",
|
|
90934
90985
|
onClick: (e) => De(t)
|
|
90935
|
-
}, J(Ee.value.has(t) ? y.value.collapse : y.value.debugStepsBtn), 9,
|
|
90986
|
+
}, J(Ee.value.has(t) ? y.value.collapse : y.value.debugStepsBtn), 9, nKe)) : $("", !0)
|
|
90936
90987
|
]),
|
|
90937
|
-
Q("div",
|
|
90938
|
-
e.resultPreview ? (X(), Z("div",
|
|
90939
|
-
Ee.value.has(t) && e.steps.length ? (X(), Z("div",
|
|
90988
|
+
Q("div", rKe, J(ve(e.task, 80)), 1),
|
|
90989
|
+
e.resultPreview ? (X(), Z("div", iKe, J(e.resultPreview), 1)) : $("", !0),
|
|
90990
|
+
Ee.value.has(t) && e.steps.length ? (X(), Z("div", aKe, [(X(!0), Z(KY, null, nY(e.steps, (e, t) => (X(), Z("div", {
|
|
90940
90991
|
key: t,
|
|
90941
90992
|
class: "sub-step"
|
|
90942
90993
|
}, [
|
|
90943
|
-
Q("span",
|
|
90944
|
-
Q("span",
|
|
90945
|
-
Q("span",
|
|
90994
|
+
Q("span", oKe, J(e.kind === "tool_call" ? "🔧" : "✅"), 1),
|
|
90995
|
+
Q("span", sKe, J(e.name), 1),
|
|
90996
|
+
Q("span", cKe, J(re(e.ts)), 1)
|
|
90946
90997
|
]))), 128))])) : $("", !0)
|
|
90947
90998
|
], 2))), 128))])) : $("", !0)], 64))])) : $("", !0),
|
|
90948
|
-
ue.value === "logs" ? (X(), Z(KY, { key: 2 }, [S.value.length === 0 ? (X(), Z("div",
|
|
90999
|
+
ue.value === "logs" ? (X(), Z(KY, { key: 2 }, [S.value.length === 0 ? (X(), Z("div", lKe, J(y.value.debugLogsEmpty), 1)) : $("", !0), (X(!0), Z(KY, null, nY(k.value, (e) => (X(), Z("div", {
|
|
90949
91000
|
key: e.key,
|
|
90950
91001
|
class: "log-group"
|
|
90951
91002
|
}, [Q("div", {
|
|
@@ -90953,69 +91004,69 @@ var aGe = {
|
|
|
90953
91004
|
onClick: (t) => N(e.key)
|
|
90954
91005
|
}, [
|
|
90955
91006
|
Q("span", { class: TK(["log-group-arrow", { open: te(e.key) }]) }, "▶", 2),
|
|
90956
|
-
Q("span",
|
|
90957
|
-
Q("span",
|
|
91007
|
+
Q("span", dKe, J(P(e)), 1),
|
|
91008
|
+
Q("span", fKe, [
|
|
90958
91009
|
cX(J(re(e.firstTs)), 1),
|
|
90959
91010
|
e.lastTs > e.firstTs ? (X(), Z(KY, { key: 0 }, [cX(" ~ " + J(re(e.lastTs)), 1)], 64)) : $("", !0),
|
|
90960
91011
|
cX(" · " + J(ye(e.lastTs - e.firstTs)), 1)
|
|
90961
91012
|
]),
|
|
90962
|
-
e.toolCount ? (X(), Z("span",
|
|
90963
|
-
e.tokens == null ? $("", !0) : (X(), Z("span",
|
|
90964
|
-
e.errorCount ? (X(), Z("span",
|
|
90965
|
-
], 10,
|
|
91013
|
+
e.toolCount ? (X(), Z("span", pKe, "🔧 " + J(e.toolCount), 1)) : $("", !0),
|
|
91014
|
+
e.tokens == null ? $("", !0) : (X(), Z("span", mKe, "Σ " + J(e.tokens) + " tok", 1)),
|
|
91015
|
+
e.errorCount ? (X(), Z("span", hKe, "❌ " + J(e.errorCount), 1)) : $("", !0)
|
|
91016
|
+
], 10, uKe), fJ(Q("div", gKe, [(X(!0), Z(KY, null, nY(e.entries, ({ log: e, pairCall: t, prevMsgCount: r, uid: i }) => {
|
|
90966
91017
|
var o, s, c, l, u, v, x, S;
|
|
90967
91018
|
return X(), Z("div", {
|
|
90968
91019
|
key: i,
|
|
90969
91020
|
class: "log-item"
|
|
90970
91021
|
}, [
|
|
90971
|
-
Q("div",
|
|
91022
|
+
Q("div", _Ke, [
|
|
90972
91023
|
Q("span", {
|
|
90973
91024
|
class: "log-type",
|
|
90974
91025
|
style: wK({ background: b.value[e.type].color })
|
|
90975
91026
|
}, J(b.value[e.type].icon) + " " + J(b.value[e.type].label), 5),
|
|
90976
|
-
e.source ? (X(), Z("span",
|
|
90977
|
-
Q("span",
|
|
91027
|
+
e.source ? (X(), Z("span", vKe, "↳ " + J(e.source), 1)) : $("", !0),
|
|
91028
|
+
Q("span", yKe, J(re(e.timestamp)), 1)
|
|
90978
91029
|
]),
|
|
90979
|
-
Q("div",
|
|
90980
|
-
Q("div",
|
|
90981
|
-
Q("div",
|
|
90982
|
-
Q("div",
|
|
90983
|
-
Q("div",
|
|
90984
|
-
Q("div",
|
|
91030
|
+
Q("div", bKe, [e.type === "context" ? (X(), Z(KY, { key: 0 }, [
|
|
91031
|
+
Q("div", xKe, [
|
|
91032
|
+
Q("div", SKe, [Q("span", CKe, J(y.value.debugModel), 1), Q("span", wKe, J(e.data.model), 1)]),
|
|
91033
|
+
Q("div", TKe, [Q("span", EKe, J(y.value.debugTemperature), 1), Q("span", DKe, J(e.data.temperature), 1)]),
|
|
91034
|
+
Q("div", OKe, [n[5] || (n[5] = Q("span", { class: "k" }, "MaxTokens", -1)), Q("span", kKe, J(e.data.maxTokens), 1)]),
|
|
91035
|
+
Q("div", AKe, [Q("span", jKe, J(y.value.debugMessageCount), 1), Q("span", MKe, J(e.data.totalMessages), 1)])
|
|
90985
91036
|
]),
|
|
90986
|
-
Q("div",
|
|
90987
|
-
Q("div",
|
|
91037
|
+
Q("div", NKe, J(y.value.debugToolsLabel) + " (" + J(((o = e.data.tools) == null ? void 0 : o.length) || 0) + ")", 1),
|
|
91038
|
+
Q("div", PKe, [(X(!0), Z(KY, null, nY(e.data.tools, (e) => (X(), Z("span", {
|
|
90988
91039
|
key: e,
|
|
90989
91040
|
class: "tool-chip"
|
|
90990
91041
|
}, J(e), 1))), 128))]),
|
|
90991
|
-
Q("div",
|
|
90992
|
-
Q("div",
|
|
91042
|
+
Q("div", FKe, J(y.value.debugContextMessages), 1),
|
|
91043
|
+
Q("div", IKe, [(X(!0), Z(KY, null, nY(e.data.messages, (e, t) => (X(), Z("div", {
|
|
90993
91044
|
key: t,
|
|
90994
91045
|
class: "msg-row"
|
|
90995
91046
|
}, [Q("span", {
|
|
90996
91047
|
class: "msg-role",
|
|
90997
91048
|
style: wK({ background: ce(e.type).color })
|
|
90998
|
-
}, J(ce(e.type).label), 5), Q("span",
|
|
90999
|
-
], 64)) : e.type === "llm_request" ? (X(), Z(KY, { key: 1 }, [Q("div",
|
|
91000
|
-
Q("span",
|
|
91001
|
-
e.data.model ? (X(), Z("span",
|
|
91002
|
-
Q("span",
|
|
91003
|
-
(s = e.data.tools) != null && s.length ? (X(), Z("span",
|
|
91049
|
+
}, J(ce(e.type).label), 5), Q("span", LKe, J(e.content), 1)]))), 128))])
|
|
91050
|
+
], 64)) : e.type === "llm_request" ? (X(), Z(KY, { key: 1 }, [Q("div", RKe, [
|
|
91051
|
+
Q("span", zKe, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1),
|
|
91052
|
+
e.data.model ? (X(), Z("span", BKe, J(e.data.model), 1)) : $("", !0),
|
|
91053
|
+
Q("span", VKe, [cX(J((e.data.messages || []).length) + J(y.value.debugMsgCountSuffix), 1), r != null && r < (e.data.messages || []).length ? (X(), Z(KY, { key: 0 }, [cX("(+" + J((e.data.messages || []).length - r) + ")", 1)], 64)) : $("", !0)]),
|
|
91054
|
+
(s = e.data.tools) != null && s.length ? (X(), Z("span", HKe, J(e.data.tools.length) + J(y.value.debugToolCountSuffix), 1)) : $("", !0),
|
|
91004
91055
|
r != null && r > 0 ? (X(), Z("button", {
|
|
91005
91056
|
key: 2,
|
|
91006
91057
|
class: "view-toggle only-new-btn",
|
|
91007
91058
|
onClick: (e) => h(i)
|
|
91008
|
-
}, J(m.value.has(i) ? y.value.debugShowAll : y.value.debugOnlyNew), 9,
|
|
91059
|
+
}, J(m.value.has(i) ? y.value.debugShowAll : y.value.debugOnlyNew), 9, UKe)) : $("", !0),
|
|
91009
91060
|
Q("button", {
|
|
91010
91061
|
class: "view-toggle copy-btn",
|
|
91011
91062
|
title: y.value.copy,
|
|
91012
91063
|
onClick: (t) => _(oe(e.data.messages), "req" + i)
|
|
91013
|
-
}, J(g.value === "req" + i ? "✓" : "📋"), 9,
|
|
91064
|
+
}, J(g.value === "req" + i ? "✓" : "📋"), 9, WKe),
|
|
91014
91065
|
Q("button", {
|
|
91015
91066
|
class: "view-toggle",
|
|
91016
91067
|
onClick: (e) => ae(i)
|
|
91017
|
-
}, J(d.value.has(i) ? y.value.debugCardView : y.value.debugRequestBody), 9,
|
|
91018
|
-
]), d.value.has(i) ? (X(), Z("pre",
|
|
91068
|
+
}, J(d.value.has(i) ? y.value.debugCardView : y.value.debugRequestBody), 9, GKe)
|
|
91069
|
+
]), d.value.has(i) ? (X(), Z("pre", QKe, [Q("code", null, J(oe(e.data.messages)), 1)])) : (X(!0), Z(KY, { key: 0 }, nY([ne(e, r, m.value.has(i))], (e) => (X(), Z("div", {
|
|
91019
91070
|
key: e.base,
|
|
91020
91071
|
class: "msg-list"
|
|
91021
91072
|
}, [(X(!0), Z(KY, null, nY(e.list, (t, n) => {
|
|
@@ -91031,37 +91082,37 @@ var aGe = {
|
|
|
91031
91082
|
}, [Q("span", {
|
|
91032
91083
|
class: "msg-role",
|
|
91033
91084
|
style: wK({ background: ce(t.role).color })
|
|
91034
|
-
}, J(ce(t.role).label), 5), Q("div",
|
|
91035
|
-
t.content ? (X(), Z("span",
|
|
91085
|
+
}, J(ce(t.role).label), 5), Q("div", qKe, [
|
|
91086
|
+
t.content ? (X(), Z("span", JKe, J(t.content), 1)) : $("", !0),
|
|
91036
91087
|
(X(!0), Z(KY, null, nY(t.tool_calls || [], (e, t) => {
|
|
91037
91088
|
var n, r, i;
|
|
91038
91089
|
return X(), Z("div", {
|
|
91039
91090
|
key: t,
|
|
91040
91091
|
class: "tc-inline"
|
|
91041
|
-
}, [Q("span",
|
|
91092
|
+
}, [Q("span", YKe, "🔧 " + J(((n = e.function) == null ? void 0 : n.name) || e.name), 1), Q("code", XKe, J((r = (i = e.function) == null ? void 0 : i.arguments) == null ? e.args : r), 1)]);
|
|
91042
91093
|
}), 128)),
|
|
91043
|
-
t.tool_call_id ? (X(), Z("span",
|
|
91044
|
-
])], 10,
|
|
91094
|
+
t.tool_call_id ? (X(), Z("span", ZKe, "↳ tool_call_id: " + J(t.tool_call_id), 1)) : $("", !0)
|
|
91095
|
+
])], 10, KKe);
|
|
91045
91096
|
}), 128))]))), 128))], 64)) : e.type === "llm_response" ? (X(), Z(KY, { key: 2 }, [
|
|
91046
|
-
Q("div",
|
|
91047
|
-
e.data.content ? (X(), Z("div",
|
|
91048
|
-
(l = e.data.toolCalls) != null && l.length ? (X(), Z("div",
|
|
91097
|
+
Q("div", $Ke, [Q("span", eqe, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1), (c = e.data.toolCalls) != null && c.length ? (X(), Z("span", tqe, "🔧 " + J(e.data.toolCalls.length) + J(y.value.debugToolCallsSuffix), 1)) : $("", !0)]),
|
|
91098
|
+
e.data.content ? (X(), Z("div", nqe, J(e.data.content), 1)) : $("", !0),
|
|
91099
|
+
(l = e.data.toolCalls) != null && l.length ? (X(), Z("div", rqe, [(X(!0), Z(KY, null, nY(e.data.toolCalls, (e, t) => (X(), Z("div", {
|
|
91049
91100
|
key: t,
|
|
91050
91101
|
class: "tc-card"
|
|
91051
|
-
}, [Q("div",
|
|
91052
|
-
e.data.usage ? (X(), Z("div",
|
|
91053
|
-
Q("span",
|
|
91054
|
-
Q("span",
|
|
91055
|
-
Q("span",
|
|
91056
|
-
e.data.usage.reasoning_tokens ? (X(), Z("span",
|
|
91102
|
+
}, [Q("div", iqe, "🔧 " + J(e.name), 1), Q("pre", aqe, J(oe(e.args)), 1)]))), 128))])) : $("", !0),
|
|
91103
|
+
e.data.usage ? (X(), Z("div", oqe, [
|
|
91104
|
+
Q("span", sqe, "prompt: " + J((u = e.data.usage.prompt_tokens) == null ? "-" : u), 1),
|
|
91105
|
+
Q("span", cqe, "completion: " + J((v = e.data.usage.completion_tokens) == null ? "-" : v), 1),
|
|
91106
|
+
Q("span", lqe, "total: " + J((x = e.data.usage.total_tokens) == null ? "-" : x), 1),
|
|
91107
|
+
e.data.usage.reasoning_tokens ? (X(), Z("span", uqe, "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)
|
|
91057
91108
|
])) : $("", !0)
|
|
91058
91109
|
], 64)) : e.type === "tool_call" || e.type === "tool_result" ? (X(), Z(KY, { key: 3 }, [t ? (X(), Z("div", {
|
|
91059
91110
|
key: 0,
|
|
91060
91111
|
class: TK(["tc-card inline paired", { error: e.data.status === "error" }])
|
|
91061
91112
|
}, [
|
|
91062
|
-
Q("div",
|
|
91113
|
+
Q("div", dqe, [
|
|
91063
91114
|
cX(J(e.data.status === "error" ? "❌" : "✅") + " " + J(e.data.name) + " ", 1),
|
|
91064
|
-
e.data.durationMs == null ? $("", !0) : (X(), Z("span",
|
|
91115
|
+
e.data.durationMs == null ? $("", !0) : (X(), Z("span", fqe, J(ye(e.data.durationMs)), 1)),
|
|
91065
91116
|
Q("button", {
|
|
91066
91117
|
class: "view-toggle copy-btn",
|
|
91067
91118
|
title: y.value.copy,
|
|
@@ -91069,84 +91120,84 @@ var aGe = {
|
|
|
91069
91120
|
var n;
|
|
91070
91121
|
return _(String((n = e.data.result) == null ? "" : n), "res" + i);
|
|
91071
91122
|
}
|
|
91072
|
-
}, J(g.value === "res" + i ? "✓" : "📋"), 9,
|
|
91123
|
+
}, J(g.value === "res" + i ? "✓" : "📋"), 9, pqe)
|
|
91073
91124
|
]),
|
|
91074
|
-
Q("pre",
|
|
91075
|
-
Q("div",
|
|
91076
|
-
Q("pre",
|
|
91077
|
-
], 2)) : (X(), Z("div",
|
|
91078
|
-
Q("div",
|
|
91125
|
+
Q("pre", mqe, J(oe(t.data.args)), 1),
|
|
91126
|
+
Q("div", hqe, "↓ " + J(y.value.resultLabel), 1),
|
|
91127
|
+
Q("pre", gqe, J(e.data.result), 1)
|
|
91128
|
+
], 2)) : (X(), Z("div", _qe, [Q("div", vqe, [cX(J(e.type === "tool_call" ? "🔧" : "✅") + " " + J(e.data.name) + " ", 1), e.type === "tool_call" ? (X(), Z("span", yqe, J(y.value.statusRunning) + "…", 1)) : $("", !0)]), Q("pre", bqe, J(e.type === "tool_call" ? oe(e.data.args) : e.data.result), 1)]))], 64)) : e.type === "error" ? (X(), Z("div", xqe, J(e.data.tool ? `[${e.data.tool}] ` : "") + J(e.data.error), 1)) : $("", !0)]),
|
|
91129
|
+
Q("div", Sqe, [Q("button", {
|
|
91079
91130
|
class: "raw-toggle",
|
|
91080
91131
|
onClick: (e) => ie(i)
|
|
91081
|
-
}, J(a.value.has(i) ? y.value.debugCollapseRawJson : y.value.debugViewRawJson), 9,
|
|
91132
|
+
}, J(a.value.has(i) ? y.value.debugCollapseRawJson : y.value.debugViewRawJson), 9, Cqe), Q("button", {
|
|
91082
91133
|
class: "raw-toggle",
|
|
91083
91134
|
onClick: (t) => Y(I7)(oe(e.data))
|
|
91084
|
-
}, J(y.value.copy), 9,
|
|
91085
|
-
a.value.has(i) ? (X(), Z("pre",
|
|
91135
|
+
}, J(y.value.copy), 9, wqe)]),
|
|
91136
|
+
a.value.has(i) ? (X(), Z("pre", Tqe, [Q("code", null, J(oe(e.data)), 1)])) : $("", !0)
|
|
91086
91137
|
]);
|
|
91087
|
-
}), 128))], 512), [[XX, te(e.key)]])]))), 128))], 64)) : ue.value === "info" ? (X(), Z("div",
|
|
91088
|
-
Q("div",
|
|
91089
|
-
Q("div",
|
|
91090
|
-
Q("div",
|
|
91091
|
-
Q("div",
|
|
91092
|
-
Q("div",
|
|
91093
|
-
Q("div",
|
|
91094
|
-
Q("div",
|
|
91138
|
+
}), 128))], 512), [[XX, te(e.key)]])]))), 128))], 64)) : ue.value === "info" ? (X(), Z("div", Eqe, [I.value ? (X(), Z(KY, { key: 1 }, [
|
|
91139
|
+
Q("div", Oqe, [
|
|
91140
|
+
Q("div", kqe, J(y.value.debugInfoBasic), 1),
|
|
91141
|
+
Q("div", Aqe, [
|
|
91142
|
+
Q("div", jqe, [n[6] || (n[6] = Q("span", { class: "k" }, "ID", -1)), Q("span", Mqe, J(I.value.id), 1)]),
|
|
91143
|
+
Q("div", Nqe, [Q("span", Pqe, J(y.value.debugModel), 1), Q("span", Fqe, J(I.value.model || "-"), 1)]),
|
|
91144
|
+
Q("div", Iqe, [Q("span", Lqe, J(y.value.debugToolCount), 1), Q("span", Rqe, J(I.value.tools.length), 1)]),
|
|
91145
|
+
Q("div", zqe, [Q("span", Bqe, J(y.value.debugMiddleware), 1), Q("span", Vqe, J(I.value.middleware.length), 1)])
|
|
91095
91146
|
]),
|
|
91096
|
-
Q("div",
|
|
91147
|
+
Q("div", Hqe, [Q("span", Uqe, J(y.value.debugMiddlewareStack), 1), Q("span", Wqe, J(I.value.middleware.join(" → ") || "-"), 1)])
|
|
91097
91148
|
]),
|
|
91098
|
-
Q("div",
|
|
91149
|
+
Q("div", Gqe, [Q("div", Kqe, "🔧 " + J(y.value.debugToolsLabel) + " (" + J(I.value.tools.length) + ")", 1), (X(!0), Z(KY, null, nY(I.value.tools, (e) => (X(), Z("div", {
|
|
91099
91150
|
key: e.name,
|
|
91100
91151
|
class: "info-item"
|
|
91101
|
-
}, [Q("div",
|
|
91152
|
+
}, [Q("div", qqe, [cX(J(e.name), 1), e.source ? (X(), Z("span", {
|
|
91102
91153
|
key: 0,
|
|
91103
91154
|
class: TK(["src-tag", _e(e.source)])
|
|
91104
|
-
}, J(e.source), 3)) : $("", !0)]), Q("div",
|
|
91105
|
-
I.value.skills.length ? (X(), Z("div",
|
|
91155
|
+
}, J(e.source), 3)) : $("", !0)]), Q("div", Jqe, J(e.description), 1)]))), 128))]),
|
|
91156
|
+
I.value.skills.length ? (X(), Z("div", Yqe, [Q("div", Xqe, [cX("📘 " + J(y.value.debugSkillsTitle) + " (" + J(I.value.skills.length) + ")", 1), Q("span", Zqe, J(y.value.debugSkillsHint), 1)]), (X(!0), Z(KY, null, nY(I.value.skills, (e) => (X(), Z("div", {
|
|
91106
91157
|
key: e.name,
|
|
91107
91158
|
class: "info-item"
|
|
91108
91159
|
}, [
|
|
91109
91160
|
Q("div", {
|
|
91110
91161
|
class: "info-name skill-toggle",
|
|
91111
91162
|
onClick: (t) => fe(e.name)
|
|
91112
|
-
}, [Q("span", { class: TK(["skill-arrow", { open: !!de.value[e.name] }]) }, "▶", 2), cX(" " + J(e.name), 1)], 8,
|
|
91113
|
-
Q("div",
|
|
91114
|
-
de.value[e.name] ? (X(), Z("div",
|
|
91163
|
+
}, [Q("span", { class: TK(["skill-arrow", { open: !!de.value[e.name] }]) }, "▶", 2), cX(" " + J(e.name), 1)], 8, Qqe),
|
|
91164
|
+
Q("div", $qe, J(e.description), 1),
|
|
91165
|
+
de.value[e.name] ? (X(), Z("div", eJe, [de.value[e.name].loading ? (X(), Z("div", tJe, J(y.value.debugLoading), 1)) : de.value[e.name].error ? (X(), Z("div", nJe, J(de.value[e.name].error), 1)) : de.value[e.name].content ? (X(), Z("pre", rJe, J(de.value[e.name].content), 1)) : $("", !0)])) : $("", !0)
|
|
91115
91166
|
]))), 128))])) : $("", !0),
|
|
91116
|
-
I.value.data ? (X(), Z("div",
|
|
91117
|
-
Q("div",
|
|
91118
|
-
Q("div",
|
|
91119
|
-
Q("div",
|
|
91120
|
-
Q("div",
|
|
91121
|
-
Q("div",
|
|
91167
|
+
I.value.data ? (X(), Z("div", iJe, [Q("div", aJe, "📊 " + J(y.value.debugDataTitle), 1), Q("div", oJe, [Q("div", sJe, J(I.value.data.description || y.value.debugDataFallback), 1), Q("div", cJe, J(y.value.debugSchemaPrefix) + J(I.value.data.schema ? y.value.debugSchemaDeclared : y.value.debugSchemaMissing), 1)])])) : $("", !0),
|
|
91168
|
+
Q("div", lJe, [Q("div", uJe, "🧬 " + J(y.value.debugSubagentTitle), 1), Q("div", dJe, [
|
|
91169
|
+
Q("div", fJe, [Q("span", pJe, J(y.value.debugEnabled), 1), Q("span", mJe, J(I.value.subagent.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
|
|
91170
|
+
Q("div", hJe, [Q("span", gJe, J(y.value.debugMaxDepth), 1), Q("span", _Je, J(I.value.subagent.maxDepth), 1)]),
|
|
91171
|
+
Q("div", vJe, [Q("span", yJe, J(y.value.debugMaxParallel), 1), Q("span", bJe, J(I.value.subagent.maxParallel), 1)]),
|
|
91172
|
+
Q("div", xJe, [Q("span", SJe, J(y.value.debugExtraTools), 1), Q("span", CJe, J(I.value.subagent.allowedTools.length ? I.value.subagent.allowedTools.join(", ") : y.value.debugDefaultReadonly), 1)])
|
|
91122
91173
|
])]),
|
|
91123
|
-
!((t = I.value.mcp) == null || (t = t.servers) == null) && t.length ? (X(), Z("div",
|
|
91174
|
+
!((t = I.value.mcp) == null || (t = t.servers) == null) && t.length ? (X(), Z("div", wJe, [Q("div", TJe, "🔌 MCP (" + J(I.value.mcp.servers.length) + ")", 1), (X(!0), Z(KY, null, nY(I.value.mcp.servers, (e) => (X(), Z("div", {
|
|
91124
91175
|
key: e.name,
|
|
91125
91176
|
class: "info-item"
|
|
91126
|
-
}, [Q("div",
|
|
91127
|
-
I.value.verify ? (X(), Z("div",
|
|
91128
|
-
Q("div",
|
|
91129
|
-
Q("div",
|
|
91130
|
-
Q("div",
|
|
91131
|
-
I.value.verify.adversarial ? (X(), Z("div",
|
|
91177
|
+
}, [Q("div", EJe, [cX(J(e.name) + " ", 1), Q("span", DJe, J(e.toolCount) + J(y.value.debugToolCountSuffix), 1)]), Q("div", OJe, J(e.url), 1)]))), 128))])) : $("", !0),
|
|
91178
|
+
I.value.verify ? (X(), Z("div", kJe, [Q("div", AJe, "✅ " + J(y.value.debugVerifyTitle), 1), Q("div", jJe, [
|
|
91179
|
+
Q("div", MJe, [Q("span", NJe, J(y.value.debugEnabled), 1), Q("span", PJe, J(I.value.verify.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
|
|
91180
|
+
Q("div", FJe, [Q("span", IJe, J(y.value.debugMaxAttempts), 1), Q("span", LJe, J(I.value.verify.maxAttempts), 1)]),
|
|
91181
|
+
Q("div", RJe, [Q("span", zJe, J(y.value.debugAdversarial), 1), Q("span", BJe, J(I.value.verify.adversarial ? y.value.debugOn : y.value.debugOff), 1)]),
|
|
91182
|
+
I.value.verify.adversarial ? (X(), Z("div", VJe, [Q("span", HJe, J(y.value.debugAdversarialModel), 1), Q("span", UJe, J(I.value.model || "-") + J(y.value.debugSameAsMain), 1)])) : $("", !0)
|
|
91132
91183
|
])])) : $("", !0),
|
|
91133
|
-
I.value.todos.length ? (X(), Z("div",
|
|
91184
|
+
I.value.todos.length ? (X(), Z("div", WJe, [Q("div", GJe, "📋 " + J(y.value.debugTodosTitle) + " (" + J(I.value.todos.length) + ")", 1), (X(!0), Z(KY, null, nY(I.value.todos, (e, t) => (X(), Z("div", {
|
|
91134
91185
|
key: t,
|
|
91135
91186
|
class: "info-todo"
|
|
91136
91187
|
}, [Q("span", {
|
|
91137
91188
|
class: "todo-tag",
|
|
91138
91189
|
style: wK({ background: he.value[e.status] && he.value[e.status].color || "#9ca3af" })
|
|
91139
91190
|
}, J(ge(e.status)), 5), Q("span", null, J(e.content), 1)]))), 128))])) : $("", !0),
|
|
91140
|
-
I.value.memory ? (X(), Z("div",
|
|
91141
|
-
I.value.lastCompression ? (X(), Z("div",
|
|
91142
|
-
Q("div",
|
|
91143
|
-
Q("div",
|
|
91144
|
-
Q("div",
|
|
91145
|
-
Q("div",
|
|
91146
|
-
Q("div",
|
|
91147
|
-
I.value.lastCompression.decision ? (X(), Z("div",
|
|
91191
|
+
I.value.memory ? (X(), Z("div", KJe, [Q("div", qJe, "📝 " + J(y.value.debugMemoryTitle), 1), Q("pre", JJe, J(I.value.memory), 1)])) : $("", !0),
|
|
91192
|
+
I.value.lastCompression ? (X(), Z("div", YJe, [Q("div", XJe, "🗜️ " + J(y.value.debugLastCompTitle), 1), Q("div", ZJe, [
|
|
91193
|
+
Q("div", QJe, [Q("span", $Je, J(y.value.debugTriggered), 1), Q("span", eYe, J(I.value.lastCompression.triggered ? "✓" : y.value.debugNotTriggered), 1)]),
|
|
91194
|
+
Q("div", tYe, [Q("span", nYe, J(y.value.debugRoundsSummarized), 1), Q("span", rYe, J(I.value.lastCompression.roundsSummarized) + " / " + J(I.value.lastCompression.roundsTotal), 1)]),
|
|
91195
|
+
Q("div", iYe, [Q("span", aYe, J(y.value.debugCtxRecalled), 1), Q("span", oYe, J(I.value.lastCompression.roundsRecalled) + J(y.value.debugCountSuffix), 1)]),
|
|
91196
|
+
Q("div", sYe, [Q("span", cYe, J(y.value.debugMessageCount), 1), Q("span", lYe, J(I.value.lastCompression.originalMessages) + " → " + J(I.value.lastCompression.compressedMessages), 1)]),
|
|
91197
|
+
Q("div", uYe, [Q("span", dYe, J(y.value.debugStrategy), 1), Q("span", fYe, J(I.value.lastCompression.strategy), 1)]),
|
|
91198
|
+
I.value.lastCompression.decision ? (X(), Z("div", pYe, [Q("span", mYe, J(y.value.debugDecision), 1), Q("span", hYe, "🤖 " + J(Oe(I.value.lastCompression.decision)), 1)])) : $("", !0)
|
|
91148
91199
|
])])) : $("", !0)
|
|
91149
|
-
], 64)) : (X(), Z("div",
|
|
91200
|
+
], 64)) : (X(), Z("div", Dqe, J(y.value.debugNoInfo), 1))])) : $("", !0)
|
|
91150
91201
|
], 512)], 512)], 512)
|
|
91151
91202
|
], 2), Q("div", {
|
|
91152
91203
|
class: "drawer-mask",
|
|
@@ -91156,7 +91207,7 @@ var aGe = {
|
|
|
91156
91207
|
_: 1
|
|
91157
91208
|
})]));
|
|
91158
91209
|
}
|
|
91159
|
-
}), [["__scopeId", "data-v-ffd46605"]]),
|
|
91210
|
+
}), [["__scopeId", "data-v-ffd46605"]]), _Ye = ["title"], vYe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
91160
91211
|
__name: "SelectionMenu",
|
|
91161
91212
|
emits: ["quote"],
|
|
91162
91213
|
setup(e, { emit: t }) {
|
|
@@ -91244,18 +91295,18 @@ var aGe = {
|
|
|
91244
91295
|
title: Y(r).selectionMenuTitle,
|
|
91245
91296
|
onMousedown: t[0] || (t[0] = mZ(() => {}, ["prevent"])),
|
|
91246
91297
|
onClick: _
|
|
91247
|
-
}, "❝ " + J(Y(r).selectionMenuLabel), 41,
|
|
91298
|
+
}, "❝ " + J(Y(r).selectionMenuLabel), 41, _Ye)], 4), [[XX, i.value]])]));
|
|
91248
91299
|
}
|
|
91249
|
-
}), [["__scopeId", "data-v-19e6dbb4"]]),
|
|
91300
|
+
}), [["__scopeId", "data-v-19e6dbb4"]]), yYe = { class: "skill-panel" }, bYe = { class: "skill-header" }, xYe = { class: "skill-title" }, SYe = ["title"], CYe = { class: "skill-section" }, wYe = { class: "section-title" }, TYe = ["title"], EYe = { class: "field" }, DYe = { class: "field-label" }, OYe = ["disabled", "placeholder"], kYe = { class: "field" }, AYe = { class: "field-label" }, jYe = ["placeholder"], MYe = { class: "field field-textarea" }, NYe = { class: "field-label" }, PYe = ["placeholder"], FYe = {
|
|
91250
91301
|
key: 0,
|
|
91251
91302
|
class: "skill-error"
|
|
91252
|
-
},
|
|
91303
|
+
}, IYe = { class: "skill-section" }, LYe = { class: "section-title" }, RYe = {
|
|
91253
91304
|
key: 0,
|
|
91254
91305
|
class: "empty-hint"
|
|
91255
|
-
},
|
|
91306
|
+
}, zYe = {
|
|
91256
91307
|
key: 1,
|
|
91257
91308
|
class: "skill-list"
|
|
91258
|
-
},
|
|
91309
|
+
}, BYe = { class: "skill-actions" }, VYe = ["title", "onClick"], HYe = ["title", "onClick"], UYe = { class: "skill-hint" }, WYe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
91259
91310
|
__name: "SkillPanel",
|
|
91260
91311
|
props: {
|
|
91261
91312
|
visible: { type: Boolean },
|
|
@@ -91311,55 +91362,55 @@ var aGe = {
|
|
|
91311
91362
|
key: 0,
|
|
91312
91363
|
class: "skill-mask",
|
|
91313
91364
|
onClick: n[4] || (n[4] = mZ((e) => r("close"), ["self"]))
|
|
91314
|
-
}, [Q("div",
|
|
91315
|
-
Q("div",
|
|
91365
|
+
}, [Q("div", yYe, [
|
|
91366
|
+
Q("div", bYe, [Q("span", xYe, J(e.messages.skillPanelTitle), 1), Q("button", {
|
|
91316
91367
|
class: "skill-close",
|
|
91317
91368
|
title: e.messages.close,
|
|
91318
91369
|
onClick: n[0] || (n[0] = (e) => r("close"))
|
|
91319
|
-
}, "✕", 8,
|
|
91320
|
-
Q("div",
|
|
91321
|
-
Q("div",
|
|
91370
|
+
}, "✕", 8, SYe)]),
|
|
91371
|
+
Q("div", CYe, [
|
|
91372
|
+
Q("div", wYe, [cX(J(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (X(), Z("button", {
|
|
91322
91373
|
key: 0,
|
|
91323
91374
|
class: "btn btn-ghost btn-cancel",
|
|
91324
91375
|
title: e.messages.skillCancelEdit,
|
|
91325
91376
|
onClick: h
|
|
91326
|
-
}, J(e.messages.skillCancelEdit), 9,
|
|
91327
|
-
Q("label",
|
|
91377
|
+
}, J(e.messages.skillCancelEdit), 9, TYe)) : $("", !0)]),
|
|
91378
|
+
Q("label", EYe, [Q("span", DYe, J(e.messages.skillNameLabel), 1), fJ(Q("input", {
|
|
91328
91379
|
"onUpdate:modelValue": n[1] || (n[1] = (e) => i.value = e),
|
|
91329
91380
|
disabled: !!u.value,
|
|
91330
91381
|
placeholder: e.messages.skillNamePlaceholder,
|
|
91331
91382
|
class: "field-input"
|
|
91332
|
-
}, null, 8,
|
|
91333
|
-
Q("label",
|
|
91383
|
+
}, null, 8, OYe), [[pZ, i.value]])]),
|
|
91384
|
+
Q("label", kYe, [Q("span", AYe, J(e.messages.skillDescLabel), 1), fJ(Q("input", {
|
|
91334
91385
|
"onUpdate:modelValue": n[2] || (n[2] = (e) => a.value = e),
|
|
91335
91386
|
placeholder: e.messages.skillDescPlaceholder,
|
|
91336
91387
|
class: "field-input"
|
|
91337
|
-
}, null, 8,
|
|
91338
|
-
Q("label",
|
|
91388
|
+
}, null, 8, jYe), [[pZ, a.value]])]),
|
|
91389
|
+
Q("label", MYe, [Q("span", NYe, J(e.messages.skillContentLabel), 1), fJ(Q("textarea", {
|
|
91339
91390
|
"onUpdate:modelValue": n[3] || (n[3] = (e) => o.value = e),
|
|
91340
91391
|
placeholder: e.messages.skillContentPlaceholder,
|
|
91341
91392
|
rows: "6",
|
|
91342
91393
|
class: "field-input"
|
|
91343
|
-
}, null, 8,
|
|
91344
|
-
s.value ? (X(), Z("div",
|
|
91394
|
+
}, null, 8, PYe), [[pZ, o.value]])]),
|
|
91395
|
+
s.value ? (X(), Z("div", FYe, J(s.value), 1)) : $("", !0),
|
|
91345
91396
|
Q("button", {
|
|
91346
91397
|
class: "btn btn-primary",
|
|
91347
91398
|
onClick: f
|
|
91348
91399
|
}, J(u.value ? e.messages.skillSave : e.messages.skillAdd), 1)
|
|
91349
91400
|
]),
|
|
91350
|
-
Q("div",
|
|
91401
|
+
Q("div", IYe, [Q("div", LYe, J(e.messages.skillCreatedTitle) + "(" + J(c.value.length) + ")", 1), c.value.length ? (X(), Z("ul", zYe, [(X(!0), Z(KY, null, nY(c.value, (t) => (X(), Z("li", {
|
|
91351
91402
|
key: t,
|
|
91352
91403
|
class: "skill-item"
|
|
91353
|
-
}, [Q("span", { class: TK(["skill-name", { active: u.value === t }]) }, J(t), 3), Q("span",
|
|
91404
|
+
}, [Q("span", { class: TK(["skill-name", { active: u.value === t }]) }, J(t), 3), Q("span", BYe, [Q("button", {
|
|
91354
91405
|
class: "btn btn-ghost btn-edit",
|
|
91355
91406
|
title: e.messages.skillEditTitle,
|
|
91356
91407
|
onClick: (e) => m(t)
|
|
91357
|
-
}, J(e.messages.skillEditBtn), 9,
|
|
91408
|
+
}, J(e.messages.skillEditBtn), 9, VYe), Q("button", {
|
|
91358
91409
|
class: "btn btn-ghost btn-del",
|
|
91359
91410
|
title: e.messages.skillDeleteTitle,
|
|
91360
91411
|
onClick: (e) => p(t)
|
|
91361
|
-
}, J(e.messages.skillDeleteBtn), 9,
|
|
91362
|
-
Q("div",
|
|
91412
|
+
}, J(e.messages.skillDeleteBtn), 9, HYe)])]))), 128))])) : (X(), Z("div", RYe, J(e.messages.skillEmpty), 1))]),
|
|
91413
|
+
Q("div", UYe, [
|
|
91363
91414
|
cX(" 💡 " + J(e.messages.skillHintA) + " ", 1),
|
|
91364
91415
|
n[5] || (n[5] = Q("code", null, "load_skill(name)", -1)),
|
|
91365
91416
|
cX(" " + J(e.messages.skillHintB) + " ", 1),
|
|
@@ -91374,7 +91425,7 @@ var aGe = {
|
|
|
91374
91425
|
//#endregion
|
|
91375
91426
|
//#region src/core/components/ChatDialog.vue?vue&type=script&setup=true&lang.ts
|
|
91376
91427
|
M();
|
|
91377
|
-
var
|
|
91428
|
+
var GYe = ["aria-valuenow"], KYe = "page-agent-sdk:drawerWidth", $9 = 320, qYe = 960, JYe = 420, YYe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
91378
91429
|
__name: "ChatDialog",
|
|
91379
91430
|
props: {
|
|
91380
91431
|
fetchResponse: {},
|
|
@@ -91499,7 +91550,7 @@ var HYe = ["aria-valuenow"], UYe = "page-agent-sdk:drawerWidth", $9 = 320, WYe =
|
|
|
91499
91550
|
function b() {
|
|
91500
91551
|
if (typeof localStorage > "u") return null;
|
|
91501
91552
|
try {
|
|
91502
|
-
let e = Number(localStorage.getItem(
|
|
91553
|
+
let e = Number(localStorage.getItem(KYe));
|
|
91503
91554
|
return Number.isFinite(e) && e >= $9 ? e : null;
|
|
91504
91555
|
} catch (e) {
|
|
91505
91556
|
return null;
|
|
@@ -91507,7 +91558,7 @@ var HYe = ["aria-valuenow"], UYe = "page-agent-sdk:drawerWidth", $9 = 320, WYe =
|
|
|
91507
91558
|
}
|
|
91508
91559
|
let x = /* @__PURE__ */ Iq(b()), S = /* @__PURE__ */ Iq(!1);
|
|
91509
91560
|
function C(e) {
|
|
91510
|
-
let t = typeof window < "u" ? window.innerWidth :
|
|
91561
|
+
let t = typeof window < "u" ? window.innerWidth : qYe, n = Math.max(Math.min(qYe, t * .9), $9);
|
|
91511
91562
|
return Math.min(Math.max(e, $9), n);
|
|
91512
91563
|
}
|
|
91513
91564
|
let w = EX(() => x.value == null ? typeof i.drawerWidth == "number" ? i.drawerWidth : null : x.value), T = EX(() => {
|
|
@@ -91536,13 +91587,13 @@ var HYe = ["aria-valuenow"], UYe = "page-agent-sdk:drawerWidth", $9 = 320, WYe =
|
|
|
91536
91587
|
}
|
|
91537
91588
|
function ee() {
|
|
91538
91589
|
if (!(x.value == null || typeof localStorage > "u")) try {
|
|
91539
|
-
localStorage.setItem(
|
|
91590
|
+
localStorage.setItem(KYe, String(x.value));
|
|
91540
91591
|
} catch (e) {}
|
|
91541
91592
|
}
|
|
91542
91593
|
function te(e) {
|
|
91543
91594
|
var t;
|
|
91544
91595
|
if (!D.value) return;
|
|
91545
|
-
let n = e.shiftKey ? 64 : 16, r = (t = w.value) == null ? typeof window < "u" ? Math.min(
|
|
91596
|
+
let n = e.shiftKey ? 64 : 16, r = (t = w.value) == null ? typeof window < "u" ? Math.min(JYe, window.innerWidth * .9) : JYe : t;
|
|
91546
91597
|
if (e.key === "ArrowLeft") x.value = C(r + n);
|
|
91547
91598
|
else if (e.key === "ArrowRight") x.value = C(r - n);
|
|
91548
91599
|
else return;
|
|
@@ -91577,7 +91628,7 @@ var HYe = ["aria-valuenow"], UYe = "page-agent-sdk:drawerWidth", $9 = 320, WYe =
|
|
|
91577
91628
|
onPointerup: M,
|
|
91578
91629
|
onPointercancel: M,
|
|
91579
91630
|
onKeydown: te
|
|
91580
|
-
}, null, 40,
|
|
91631
|
+
}, null, 40, GYe)) : $("", !0),
|
|
91581
91632
|
v("header") ? rY(t.$slots, "header", {
|
|
91582
91633
|
key: 1,
|
|
91583
91634
|
chat: Y(o)
|
|
@@ -91648,7 +91699,7 @@ var HYe = ["aria-valuenow"], UYe = "page-agent-sdk:drawerWidth", $9 = 320, WYe =
|
|
|
91648
91699
|
key: 0,
|
|
91649
91700
|
name: "cs-slide"
|
|
91650
91701
|
}, {
|
|
91651
|
-
default: dJ(() => [rY(t.$slots, "body", { chat: Y(o) }, () => [fJ(oX(
|
|
91702
|
+
default: dJ(() => [rY(t.$slots, "body", { chat: Y(o) }, () => [fJ(oX(PUe, {
|
|
91652
91703
|
"show-avatar": e.showAvatar,
|
|
91653
91704
|
"show-typing": e.showTyping
|
|
91654
91705
|
}, null, 8, ["show-avatar", "show-typing"]), [[XX, Y(s)]])], !0)]),
|
|
@@ -91657,15 +91708,15 @@ var HYe = ["aria-valuenow"], UYe = "page-agent-sdk:drawerWidth", $9 = 320, WYe =
|
|
|
91657
91708
|
v("queued") ? rY(t.$slots, "queued", {
|
|
91658
91709
|
key: 1,
|
|
91659
91710
|
chat: Y(o)
|
|
91660
|
-
}, () => [oX(
|
|
91711
|
+
}, () => [oX(WUe)], !0) : $("", !0),
|
|
91661
91712
|
v("approval") ? rY(t.$slots, "approval", {
|
|
91662
91713
|
key: 2,
|
|
91663
91714
|
chat: Y(o)
|
|
91664
|
-
}, () => [oX(
|
|
91715
|
+
}, () => [oX(mWe)], !0) : $("", !0),
|
|
91665
91716
|
v("conflict") ? rY(t.$slots, "conflict", {
|
|
91666
91717
|
key: 3,
|
|
91667
91718
|
chat: Y(o)
|
|
91668
|
-
}, () => [oX(
|
|
91719
|
+
}, () => [oX(jWe, {
|
|
91669
91720
|
"pending-conflict": e.pendingConflict,
|
|
91670
91721
|
"on-resolve": e.onResolveConflict,
|
|
91671
91722
|
icons: Y(o).icons,
|
|
@@ -91681,7 +91732,7 @@ var HYe = ["aria-valuenow"], UYe = "page-agent-sdk:drawerWidth", $9 = 320, WYe =
|
|
|
91681
91732
|
key: 3,
|
|
91682
91733
|
name: "cs-slide"
|
|
91683
91734
|
}, {
|
|
91684
|
-
default: dJ(() => [rY(t.$slots, "footer", { chat: Y(o) }, () => [oX(
|
|
91735
|
+
default: dJ(() => [rY(t.$slots, "footer", { chat: Y(o) }, () => [oX(sGe, {
|
|
91685
91736
|
placeholder: e.placeholder || Y(o).messages.inputPlaceholder,
|
|
91686
91737
|
"input-rows": e.inputRows,
|
|
91687
91738
|
"gate-pending": m.value,
|
|
@@ -91701,7 +91752,7 @@ var HYe = ["aria-valuenow"], UYe = "page-agent-sdk:drawerWidth", $9 = 320, WYe =
|
|
|
91701
91752
|
v("debug") ? rY(t.$slots, "debug", {
|
|
91702
91753
|
key: 4,
|
|
91703
91754
|
chat: Y(o)
|
|
91704
|
-
}, () => [oX(
|
|
91755
|
+
}, () => [oX(gYe, {
|
|
91705
91756
|
visible: Y(c),
|
|
91706
91757
|
"onUpdate:visible": n[4] || (n[4] = (e) => /* @__PURE__ */ Fq(c) ? c.value = e : null),
|
|
91707
91758
|
logs: e.debugLogs,
|
|
@@ -91730,7 +91781,7 @@ var HYe = ["aria-valuenow"], UYe = "page-agent-sdk:drawerWidth", $9 = 320, WYe =
|
|
|
91730
91781
|
v("skill") ? rY(t.$slots, "skill", {
|
|
91731
91782
|
key: 5,
|
|
91732
91783
|
chat: Y(o)
|
|
91733
|
-
}, () => [oX(
|
|
91784
|
+
}, () => [oX(WYe, {
|
|
91734
91785
|
visible: Y(l),
|
|
91735
91786
|
"on-add-skill": e.onAddSkill,
|
|
91736
91787
|
"on-remove-skill": e.onRemoveSkill,
|
|
@@ -91747,7 +91798,7 @@ var HYe = ["aria-valuenow"], UYe = "page-agent-sdk:drawerWidth", $9 = 320, WYe =
|
|
|
91747
91798
|
"messages",
|
|
91748
91799
|
"onClose"
|
|
91749
91800
|
])], !0) : $("", !0),
|
|
91750
|
-
e.selectionMenu ? (X(), tX(
|
|
91801
|
+
e.selectionMenu ? (X(), tX(vYe, {
|
|
91751
91802
|
key: 6,
|
|
91752
91803
|
onQuote: n[6] || (n[6] = (t) => {
|
|
91753
91804
|
var n;
|
|
@@ -91761,7 +91812,7 @@ var HYe = ["aria-valuenow"], UYe = "page-agent-sdk:drawerWidth", $9 = 320, WYe =
|
|
|
91761
91812
|
//#endregion
|
|
91762
91813
|
//#region src/core/sdk/mountChatDialog.ts
|
|
91763
91814
|
M();
|
|
91764
|
-
function
|
|
91815
|
+
function XYe(e) {
|
|
91765
91816
|
let { core: t, dialogCfg: n } = e, r = null, i = e.el, a = () => {
|
|
91766
91817
|
var e, t;
|
|
91767
91818
|
let n = (e = i.querySelector) == null ? void 0 : e.call(i, ".chat-dialog"), r = (t = i.querySelector) == null ? void 0 : t.call(i, ".chat-mask");
|
|
@@ -91770,7 +91821,7 @@ function qYe(e) {
|
|
|
91770
91821
|
return r = YSe(/* @__PURE__ */ HJ({ setup() {
|
|
91771
91822
|
return () => {
|
|
91772
91823
|
var r;
|
|
91773
|
-
return DX(
|
|
91824
|
+
return DX(YYe, j({
|
|
91774
91825
|
fetchStream: e.streaming ? t.stream : void 0,
|
|
91775
91826
|
fetchResponse: e.streaming ? void 0 : (e, n) => t.stream(e, () => {}, n),
|
|
91776
91827
|
title: n.title,
|
|
@@ -91927,7 +91978,7 @@ function qYe(e) {
|
|
|
91927
91978
|
};
|
|
91928
91979
|
}
|
|
91929
91980
|
QP(), Uf(), M();
|
|
91930
|
-
function
|
|
91981
|
+
function ZYe(e, t, n, r, i) {
|
|
91931
91982
|
let a = [];
|
|
91932
91983
|
e && a.push("vfs_grep + vfs_read(搜预注入文档)"), t && a.push(`${r}(语义检索)`), n && a.push(`${i}(按 source 加载)`), a.push("fetch_document(公网 URL)");
|
|
91933
91984
|
let o = [];
|
|
@@ -91942,7 +91993,7 @@ function JYe(e, t, n, r, i) {
|
|
|
91942
91993
|
|
|
91943
91994
|
你是只读检索角色,不要尝试修改任何数据。不要尝试上面未列出的工具。`;
|
|
91944
91995
|
}
|
|
91945
|
-
function
|
|
91996
|
+
function QYe(e, t, n, r, i) {
|
|
91946
91997
|
let a = [], o = [];
|
|
91947
91998
|
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)
|
|
91948
91999
|
|
|
@@ -91959,12 +92010,12 @@ ${a.join("\n")}
|
|
|
91959
92010
|
## 何时用何源
|
|
91960
92011
|
${o.join("\n")}`;
|
|
91961
92012
|
}
|
|
91962
|
-
var
|
|
92013
|
+
var $Ye = {
|
|
91963
92014
|
name: "rag-search",
|
|
91964
92015
|
description: "多源知识检索策略:vfs 预注入文档 → 语义检索 → 指定文档加载 → 公网;综合结构化结论 + 溯源",
|
|
91965
|
-
getContent: () =>
|
|
92016
|
+
getContent: () => QYe(!0, !0, !0, "search_docs", "load_doc")
|
|
91966
92017
|
};
|
|
91967
|
-
function
|
|
92018
|
+
function eXe(e, t, n) {
|
|
91968
92019
|
let r = qP(async ({ query: e, topK: r }) => {
|
|
91969
92020
|
try {
|
|
91970
92021
|
let i = await t(e, { topK: r == null ? n : r });
|
|
@@ -91982,7 +92033,7 @@ function ZYe(e, t, n) {
|
|
|
91982
92033
|
});
|
|
91983
92034
|
return NZ([r]), r;
|
|
91984
92035
|
}
|
|
91985
|
-
function
|
|
92036
|
+
function tXe(e, t) {
|
|
91986
92037
|
let n = qP(async ({ source: e }) => {
|
|
91987
92038
|
try {
|
|
91988
92039
|
let n = await t(e), r = Array.isArray(n) ? n : [n];
|
|
@@ -91997,19 +92048,19 @@ function QYe(e, t) {
|
|
|
91997
92048
|
});
|
|
91998
92049
|
return NZ([n]), n;
|
|
91999
92050
|
}
|
|
92000
|
-
function
|
|
92051
|
+
function nXe(e) {
|
|
92001
92052
|
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;
|
|
92002
92053
|
if (!t && !n && r === !1) throw Error("[page-agent-sdk][createRagSubagent] 至少配一种知识源:retriever / loader / useVfs(true)");
|
|
92003
92054
|
let p = [];
|
|
92004
|
-
t && p.push(
|
|
92055
|
+
t && p.push(eXe(s, t, o)), n && p.push(tXe(c, n)), f && p.push(...f);
|
|
92005
92056
|
let m = r ? [
|
|
92006
92057
|
"vfs_grep",
|
|
92007
92058
|
"vfs_read",
|
|
92008
92059
|
"vfs_json_read"
|
|
92009
|
-
] : void 0, h =
|
|
92060
|
+
] : void 0, h = ZYe(r, !!t, !!n, s, c), g = {
|
|
92010
92061
|
name: "rag-search",
|
|
92011
|
-
description:
|
|
92012
|
-
getContent: () =>
|
|
92062
|
+
description: $Ye.description,
|
|
92063
|
+
getContent: () => QYe(r, !!t, !!n, s, c)
|
|
92013
92064
|
};
|
|
92014
92065
|
return j({
|
|
92015
92066
|
id: i,
|
|
@@ -92022,12 +92073,12 @@ function $Ye(e) {
|
|
|
92022
92073
|
}, u === void 0 ? {} : { summarization: u });
|
|
92023
92074
|
}
|
|
92024
92075
|
P(), M();
|
|
92025
|
-
var
|
|
92076
|
+
var rXe = [
|
|
92026
92077
|
"timeoutMs",
|
|
92027
92078
|
"sampleMs",
|
|
92028
92079
|
"onSample"
|
|
92029
92080
|
];
|
|
92030
|
-
function
|
|
92081
|
+
function iXe(e = {}) {
|
|
92031
92082
|
var t, n, r;
|
|
92032
92083
|
let i = (t = e.quietMs) == null ? 9e4 : t, a = (n = e.confirmSamples) == null ? 3 : n, o = (r = e.baselineMessageCount) == null ? 0 : r, s = 0;
|
|
92033
92084
|
return {
|
|
@@ -92039,14 +92090,14 @@ function tXe(e = {}) {
|
|
|
92039
92090
|
}
|
|
92040
92091
|
};
|
|
92041
92092
|
}
|
|
92042
|
-
var
|
|
92043
|
-
function
|
|
92093
|
+
var aXe = /* @__PURE__ */ new Set(["elapsedSec"]);
|
|
92094
|
+
function oXe(e, t, n = {}) {
|
|
92044
92095
|
var r, i, a;
|
|
92045
92096
|
let o = (r = n.tokenAbs) == null ? 2e3 : r, s = (i = n.tokenPct) == null ? 15 : i, c = (a = n.toolCountAbs) == null ? 3 : a, l = [], u = 0, d = 0, f = 0, p = /* @__PURE__ */ new Set([...Object.keys(e == null ? {} : e), ...Object.keys(t == null ? {} : t)]);
|
|
92046
92097
|
for (let n of p) {
|
|
92047
92098
|
var m, h;
|
|
92048
92099
|
let r = Number((m = e == null ? void 0 : e[n]) == null ? 0 : m), i = Number((h = t == null ? void 0 : t[n]) == null ? 0 : h), a = r - i, p = i > 0 ? Math.round(a / i * 100) : 0, g = "";
|
|
92049
|
-
|
|
92100
|
+
aXe.has(n) || (n === "toolCount" ? Math.abs(a) > c : Math.abs(a) > o && Math.abs(p) >= s) && (g = a > 0 ? "up" : "down", g === "up" ? (u++, d++) : f++), l.push({
|
|
92050
92101
|
key: n,
|
|
92051
92102
|
prev: i,
|
|
92052
92103
|
cur: r,
|
|
@@ -92061,7 +92112,7 @@ function rXe(e, t, n = {}) {
|
|
|
92061
92112
|
fields: l
|
|
92062
92113
|
};
|
|
92063
92114
|
}
|
|
92064
|
-
function
|
|
92115
|
+
function sXe(e) {
|
|
92065
92116
|
let { sdk: t } = e, n = () => {
|
|
92066
92117
|
var e, n, r, i, a;
|
|
92067
92118
|
let o = (e = t.debugLogs.value) == null ? [] : e, s = o.length ? o[o.length - 1].timestamp : 0;
|
|
@@ -92075,7 +92126,7 @@ function iXe(e) {
|
|
|
92075
92126
|
};
|
|
92076
92127
|
return {
|
|
92077
92128
|
async waitForIdle(e = {}) {
|
|
92078
|
-
let { timeoutMs: r = 6e5, sampleMs: i = 2500, onSample: a } = e, o =
|
|
92129
|
+
let { timeoutMs: r = 6e5, sampleMs: i = 2500, onSample: a } = e, o = iXe(N(e, rXe)), s = Date.now();
|
|
92079
92130
|
for (;;) {
|
|
92080
92131
|
let e = n(), h = o.push(e);
|
|
92081
92132
|
if (a == null || a(e), h === "done") return e;
|
|
@@ -92108,20 +92159,20 @@ function iXe(e) {
|
|
|
92108
92159
|
}
|
|
92109
92160
|
//#endregion
|
|
92110
92161
|
//#region src/core/components/CodePreview.vue?vue&type=script&setup=true&lang.ts
|
|
92111
|
-
var
|
|
92162
|
+
var cXe = { class: "code-preview-modal" }, lXe = { class: "preview-header" }, uXe = { class: "preview-title" }, dXe = { class: "preview-tabs" }, fXe = ["disabled"], pXe = { class: "preview-actions" }, mXe = ["title"], hXe = {
|
|
92112
92163
|
key: 0,
|
|
92113
92164
|
viewBox: "0 0 16 16",
|
|
92114
92165
|
fill: "none",
|
|
92115
92166
|
"aria-hidden": "true"
|
|
92116
|
-
},
|
|
92167
|
+
}, gXe = {
|
|
92117
92168
|
key: 1,
|
|
92118
92169
|
viewBox: "0 0 16 16",
|
|
92119
92170
|
fill: "none",
|
|
92120
92171
|
"aria-hidden": "true"
|
|
92121
|
-
},
|
|
92172
|
+
}, _Xe = ["title"], vXe = ["title"], yXe = { class: "preview-body" }, bXe = ["srcdoc"], xXe = {
|
|
92122
92173
|
key: 1,
|
|
92123
92174
|
class: "preview-source"
|
|
92124
|
-
},
|
|
92175
|
+
}, SXe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
92125
92176
|
__name: "CodePreview",
|
|
92126
92177
|
props: {
|
|
92127
92178
|
code: {},
|
|
@@ -92188,28 +92239,28 @@ app.mount('#app');
|
|
|
92188
92239
|
return (t, n) => (X(), Z("div", {
|
|
92189
92240
|
class: "code-preview-overlay",
|
|
92190
92241
|
onClick: n[3] || (n[3] = mZ((e) => r("close"), ["self"]))
|
|
92191
|
-
}, [Q("div",
|
|
92192
|
-
Q("span",
|
|
92193
|
-
Q("div",
|
|
92242
|
+
}, [Q("div", cXe, [Q("div", lXe, [
|
|
92243
|
+
Q("span", uXe, J(e.messages.codePreviewTitlePrefix) + J(e.lang), 1),
|
|
92244
|
+
Q("div", dXe, [Q("button", {
|
|
92194
92245
|
class: TK({ active: a.value === "preview" }),
|
|
92195
92246
|
disabled: !s.value,
|
|
92196
92247
|
onClick: n[0] || (n[0] = (e) => a.value = "preview")
|
|
92197
|
-
}, J(e.messages.codePreviewTab), 11,
|
|
92248
|
+
}, J(e.messages.codePreviewTab), 11, fXe), Q("button", {
|
|
92198
92249
|
class: TK({ active: a.value === "source" }),
|
|
92199
92250
|
onClick: n[1] || (n[1] = (e) => a.value = "source")
|
|
92200
92251
|
}, J(e.messages.codeSourceTab), 3)]),
|
|
92201
|
-
Q("div",
|
|
92252
|
+
Q("div", pXe, [
|
|
92202
92253
|
Q("button", {
|
|
92203
92254
|
class: TK(["icon-btn", { done: o.value }]),
|
|
92204
92255
|
title: o.value ? e.messages.copied : e.messages.codeCopyTitle,
|
|
92205
92256
|
onClick: u
|
|
92206
|
-
}, [o.value ? (X(), Z("svg",
|
|
92257
|
+
}, [o.value ? (X(), Z("svg", hXe, [...n[4] || (n[4] = [Q("path", {
|
|
92207
92258
|
d: "M3 8.5l3 3 7-7",
|
|
92208
92259
|
stroke: "currentColor",
|
|
92209
92260
|
"stroke-width": "1.6",
|
|
92210
92261
|
"stroke-linecap": "round",
|
|
92211
92262
|
"stroke-linejoin": "round"
|
|
92212
|
-
}, null, -1)])])) : (X(), Z("svg",
|
|
92263
|
+
}, null, -1)])])) : (X(), Z("svg", gXe, [...n[5] || (n[5] = [Q("rect", {
|
|
92213
92264
|
x: "5.5",
|
|
92214
92265
|
y: "5.5",
|
|
92215
92266
|
width: "8",
|
|
@@ -92221,7 +92272,7 @@ app.mount('#app');
|
|
|
92221
92272
|
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",
|
|
92222
92273
|
stroke: "currentColor",
|
|
92223
92274
|
"stroke-width": "1.3"
|
|
92224
|
-
}, null, -1)])]))], 10,
|
|
92275
|
+
}, null, -1)])]))], 10, mXe),
|
|
92225
92276
|
Q("button", {
|
|
92226
92277
|
class: "icon-btn",
|
|
92227
92278
|
title: e.messages.codeOpenTitle,
|
|
@@ -92241,7 +92292,7 @@ app.mount('#app');
|
|
|
92241
92292
|
"stroke-width": "1.3",
|
|
92242
92293
|
"stroke-linecap": "round",
|
|
92243
92294
|
"stroke-linejoin": "round"
|
|
92244
|
-
})], -1)])], 8,
|
|
92295
|
+
})], -1)])], 8, _Xe),
|
|
92245
92296
|
Q("button", {
|
|
92246
92297
|
class: "icon-btn",
|
|
92247
92298
|
title: e.messages.close,
|
|
@@ -92255,23 +92306,23 @@ app.mount('#app');
|
|
|
92255
92306
|
stroke: "currentColor",
|
|
92256
92307
|
"stroke-width": "1.4",
|
|
92257
92308
|
"stroke-linecap": "round"
|
|
92258
|
-
})], -1)])], 8,
|
|
92309
|
+
})], -1)])], 8, vXe)
|
|
92259
92310
|
])
|
|
92260
|
-
]), Q("div",
|
|
92311
|
+
]), Q("div", yXe, [a.value === "preview" && s.value ? (X(), Z("iframe", {
|
|
92261
92312
|
key: 0,
|
|
92262
92313
|
ref_key: "iframeRef",
|
|
92263
92314
|
ref: i,
|
|
92264
92315
|
class: "preview-iframe",
|
|
92265
92316
|
sandbox: "allow-scripts allow-modals allow-popups allow-forms",
|
|
92266
92317
|
srcdoc: c.value
|
|
92267
|
-
}, null, 8,
|
|
92318
|
+
}, null, 8, bXe)) : (X(), Z("pre", xXe, [Q("code", null, J(e.code), 1)]))])])]));
|
|
92268
92319
|
}
|
|
92269
92320
|
}), [["__scopeId", "data-v-27eac25e"]]);
|
|
92270
92321
|
//#endregion
|
|
92271
92322
|
//#region src/core/index.ts
|
|
92272
92323
|
Uf();
|
|
92273
|
-
function
|
|
92274
|
-
return eIe(e,
|
|
92324
|
+
function CXe(e) {
|
|
92325
|
+
return eIe(e, XYe);
|
|
92275
92326
|
}
|
|
92276
92327
|
//#endregion
|
|
92277
|
-
export {
|
|
92328
|
+
export { mWe as ApprovalBar, u8 as CAPABILITIES, tNe as CONTEXT_PRESETS, YYe as ChatDialog, eBe as ChatHeader, sGe as ChatInput, SXe as CodePreview, yMe as CompressDecisionSchema, jWe as ConflictBar, cFe as DEFAULT_COMPUTED_STYLES, L7 as DEFAULT_DIALOG_ICONS, r1 as DEFAULT_PROMPT_SOFT_CAP, IAe as DEFAULT_SYSTEM_PROMPT, LAe as DEFAULT_SYSTEM_PROMPT_EN, gYe as DebugDrawer, dBe as FocusBar, VHe as HLJS_BLOCK_MAX_CHARS, wje as HTML_VOID_TAGS, b1 as HUMAN_CONFIRM_TOOL_NAME, g9 as IconGlyph, SZ as ImageInputError, rF as LOW_CAPS_HINT_BASELINE, gRe as MESSAGES_EN_US, R7 as MESSAGES_ZH_CN, eF as MIN_CONTEXT_WINDOW, WZ as MODEL_UNAVAILABLE_GUIDANCE, QHe as MessageContent, PUe as MessageList, wUe as MessageRow, WUe as QueuedBar, HTe as SOFT_CAP_MIN_WINDOW, X$ as STOP_WORDS, WYe as SkillPanel, m$ as UNSAFE_KEYS, DFe as actionsToInspectInfo, EFe as actionsToTools, $Se as agentError, P1 as analyzeContext, O$ as applyPatchToClone, CTe as applyPatchToLive, k6 as applyPatchesToBind, GPe as applyProposalOps, YQ as arrayMinLength, xZ as asAgentError, tMe as buildCollectorJs, P8 as buildCssPath, h6 as buildDataPrompt, q6 as buildDiagnosticsReport, X6 as buildHtmlFragmentSkill, nMe as buildSandboxSrcdoc, WAe as buildSystemPrompt, AZ as captureSelectionQuote, z7 as chatContextKey, O6 as commitSetToBind, sMe as composeStructureThenRender, TZ as compressImage, PAe as connectMcp, RG as constructLlmFromConfig, IG as constructOpenLlmSync, I7 as copyText, O8 as countOccurrences, VQ as createAgent, y1 as createApprovalMiddleware, yRe as createChatContext, CXe as createChatSdk, D1 as createCheckpointManager, O1 as createCheckpointMiddleware, jMe as createConflictManager, F1 as createContextInspectorMiddleware, pMe as createCraftNoteCheck, P6 as createDataOps, sXe as createEvalHarness, dMe as createHtmlFormatCheck, oMe as createHtmlRenderCheck, hMe as createHtmlSubagent, S1 as createHumanConfirmMiddleware, x1 as createHumanConfirmTool, iXe as createIdleDetector, o8 as createMemoryBackend, v1 as createMemoryMiddleware, zge as createProxyLlm, nXe as createRagSubagent, KZ as createSandboxRunner, eNe as createSdkEvents, KFe as createSerialRunner, l8 as createSessionStore, JMe as createSessionStoreWithBackend, UFe as createSkillStore, m1 as createSubagentMiddleware, s1 as createSubagentTracker, h1 as createSubagentsMiddleware, IFe as createUsageHintsMiddleware, k1 as createVerifyMiddleware, YAe as createVfs, s8 as createWebStorageBackend, A1 as createWriteBackCheck, GZ as decorateModelUnavailable, b$ as deepClone, AFe as defineDataToolset, DTe as defineSkill, gMe as defineTool, y$ as deleteByPath, bMe as deriveTitle, i$ as describeSchemaNode, MQ as detectGarbledToolCall, vQ as detectTransitionalReply, P$ as diffObjects, oXe as diffReport, I8 as domInfoTool, vFe as domInspectSkill, F8 as domSearchTool, eFe as domToStructure, j8 as domTools, kFe as domToolsStatic, XQ as elementSchemaCandidates, N8 as ensureDomListenerRecorder, Q$ as estimateMessageTokens, VTe as estimateRoundTokens, oF as estimateTokens, BG as extractReasoningDelta, p$ as extractSchemaHint, AAe as extractText, zG as extractTextDelta, VG as extractUsage, A8 as fetchDocTools, OFe as fetchTools, N$ as findStrippedKeys, a$ as formatConstraints, vZ as formatZodIssues, _$ as getByPath, tFe as getDomTool, pFe as getElementInfo, bFe as getEnvSummary, uFe as getRecordedListeners, iMe as getSandboxLifecycle, GQ as getSchemaAtPath, HQ as getSchemaTopKeys, k8 as hashContent, E$ as hashValue, uMe as htmlFragmentSkill, u$ as htmlOrchestratorPrompt, t1 as indexSummarize, CFe as inspectEnvTool, wFe as inspectTools, Q6 as isChatModel, HZ as isContextLengthError, m9 as isIconHtml, UZ as isModelUnavailableError, UQ as isPathAllowed, r8 as isQuotaError, h$ as isUnsafePath, ZZ as jpEval, bZ as jsonParseError, C$ as limitDepth, UPe as lineDiff, iF as lowCapsHint, qHe as markedToHtml, Jje as maskUrlCredentials, x$ as maybeParseValue, Wje as measureWriteScale, A$ as moveByPath, FG as normalizeBaseUrl, eMe as normalizeRenderResult, HG as normalizeUsage, cF as offloadPassThroughChars, sF as offloadThresholdChars, fTe as presets, sTe as projectBySchema, t$ as projectBySchemaDeep, S$ as projectFields, n1 as recallRounds, aMe as renderInSandbox, X9 as renderMarkdownHtml, o$ as renderSchemaHint, s$ as renderSchemaOverview, l$ as renderSchemaShallow, d8 as resolveCapabilities, f8 as resolveContextOptions, ZMe as resolveDialogConfig, hRe as resolveDialogIcons, vRe as resolveDialogMessages, AMe as resolveLlm, aF as resolveModelCaps, i1 as resolvePromptSoftCap, KQ as resolveSchemaPath, XMe as resolveStorage, M$ as restoreInPlace, j$ as restoreLive, QSe as routeError, eQ as runSandboxedScript, g$ as safeMerge, L8 as safeSerialize, w$ as safeStringify, NQ as sanitizeGarbledContent, yze as sanitizeIconHtml, Sze as sanitizeMessageHtml, JQ as schemaHasRefinement, dFe as searchDom, QZ as searchJson, jFe as selectBuiltinTools, v$ as setByPath, a1 as shouldTriggerCompression, J6 as stringifyDiagnosticsReport, PG as stripStainlessFetch, d$ as systemPromptHelpers, nF as tableMaxOutputTokens, Z$ as tokenize, _Z as toolError, WQ as unwrapSchema, mRe as useChat, B7 as useChatContext, qQ as validateAtPath, F6 as validateHtmlFormat, D6 as validateRootValueLocally, _je as validateWriteLocally, D$ as watchFieldsHash, nre as z, yZ as zodError };
|