page-agent-sdk 4.25.0 → 4.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/README.zh-CN.md +2 -1
- package/dist/page-agent-sdk.headless.js +16 -4
- package/dist/page-agent-sdk.iife.js +96 -96
- package/dist/page-agent-sdk.js +1030 -1013
- package/dist/page-agent-sdk.legacy.js +359 -341
- package/dist/page-agent-sdk.umd.cjs +7 -7
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -68707,8 +68707,20 @@ function yje(e, t) {
|
|
|
68707
68707
|
QP(), Uf(), M();
|
|
68708
68708
|
function w6(e, t) {
|
|
68709
68709
|
if (!e) return null;
|
|
68710
|
-
let n = t ? KQ(e, t) : e
|
|
68711
|
-
|
|
68710
|
+
let n = t ? KQ(e, t) : e;
|
|
68711
|
+
if (!n) return null;
|
|
68712
|
+
let r = n == null ? void 0 : n.shape;
|
|
68713
|
+
if (r && typeof r == "object") return Object.keys(r);
|
|
68714
|
+
let i = n == null ? void 0 : n.options;
|
|
68715
|
+
if (Array.isArray(i)) {
|
|
68716
|
+
let e = /* @__PURE__ */ new Set();
|
|
68717
|
+
for (let t of i) {
|
|
68718
|
+
let n = t == null ? void 0 : t.shape;
|
|
68719
|
+
if (n && typeof n == "object") for (let t of Object.keys(n)) e.add(t);
|
|
68720
|
+
}
|
|
68721
|
+
return e.size ? [...e] : null;
|
|
68722
|
+
}
|
|
68723
|
+
return null;
|
|
68712
68724
|
}
|
|
68713
68725
|
var T6 = (e) => e && e.length ? `(可用字段:${e.slice(0, 12).join(", ")}${e.length > 12 ? " …" : ""})` : "", E6 = (e) => /[.[]/.test(e) ? e.replace(/[.[][^.[]*$/, "") : "";
|
|
68714
68726
|
function D6(e) {
|
|
@@ -68784,7 +68796,7 @@ function D6(e) {
|
|
|
68784
68796
|
error: _Z({
|
|
68785
68797
|
code: "SCHEMA_STRIP",
|
|
68786
68798
|
message: `字段 ${c.join(", ")} 不在 schema 声明内,写入被拒绝(防静默丢失)`,
|
|
68787
|
-
hint:
|
|
68799
|
+
hint: `该数据结构不支持这些字段;请只用 schema 声明的字段,或在 data.schema 中声明后重试${T6(w6(t, E6(String(c[0]))))}`,
|
|
68788
68800
|
path: c[0],
|
|
68789
68801
|
details: { stripped: c }
|
|
68790
68802
|
}),
|
|
@@ -68828,7 +68840,7 @@ function bje(e) {
|
|
|
68828
68840
|
}, f = (e) => _Z({
|
|
68829
68841
|
code: "SCHEMA_STRIP",
|
|
68830
68842
|
message: `字段 ${e.join(", ")} 不在 schema 声明内,写入被拒绝(防静默丢失)`,
|
|
68831
|
-
hint:
|
|
68843
|
+
hint: `该数据结构不支持这些字段;请只用 schema 声明的字段,或在 data.schema 中声明后重试${T6(w6(t, E6(String(e[0]))))}`,
|
|
68832
68844
|
path: e[0],
|
|
68833
68845
|
details: { stripped: e }
|
|
68834
68846
|
}), p = [];
|
|
@@ -90048,7 +90060,7 @@ var hUe = { class: "msg-actions" }, gUe = ["title"], _Ue = ["title"], vUe = {
|
|
|
90048
90060
|
}, wWe = {
|
|
90049
90061
|
key: 2,
|
|
90050
90062
|
class: "approval-plan-context"
|
|
90051
|
-
}, TWe = { class: "approval-actions" }, Z9 = 20,
|
|
90063
|
+
}, TWe = { class: "approval-actions" }, EWe = ["disabled"], Z9 = 20, DWe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
90052
90064
|
__name: "ApprovalBar",
|
|
90053
90065
|
setup(e) {
|
|
90054
90066
|
let t = B7(), { pendingApproval: n, resolveApproval: r } = t.chat, i = t.messages, a = t.planConfirmation, o = /* @__PURE__ */ Iq(!1);
|
|
@@ -90075,14 +90087,18 @@ var hUe = { class: "msg-actions" }, gUe = ["title"], _Ue = ["title"], vUe = {
|
|
|
90075
90087
|
}), u = EX(() => {
|
|
90076
90088
|
var e, t;
|
|
90077
90089
|
return (e = (t = n.value) == null || (t = t.preview) == null ? void 0 : t.items) == null ? [] : e;
|
|
90078
|
-
}), d = EX(() => u.value.length > Z9)
|
|
90079
|
-
|
|
90080
|
-
|
|
90090
|
+
}), d = EX(() => u.value.length > Z9), f = EX(() => {
|
|
90091
|
+
var e;
|
|
90092
|
+
let t = (e = n.value) == null ? void 0 : e.preview;
|
|
90093
|
+
return !!t && t.ok === !1;
|
|
90094
|
+
});
|
|
90095
|
+
return (e, p) => {
|
|
90096
|
+
var m, h, g;
|
|
90081
90097
|
return Y(n) ? (X(), Z("div", rWe, [s.value ? (X(), Z(KY, { key: 0 }, [
|
|
90082
|
-
Q("div", iWe, [
|
|
90083
|
-
(
|
|
90084
|
-
(
|
|
90085
|
-
(
|
|
90098
|
+
Q("div", iWe, [p[5] || (p[5] = Q("span", { class: "approval-icon" }, "❓", -1)), Q("span", aWe, J(Y(i).humanConfirmTitle), 1)]),
|
|
90099
|
+
(m = Y(n).args) != null && m.question ? (X(), Z("div", oWe, J(Y(n).args.question), 1)) : $("", !0),
|
|
90100
|
+
(h = Y(n).args) != null && h.context ? (X(), Z("div", sWe, J(Y(n).args.context), 1)) : $("", !0),
|
|
90101
|
+
(g = Y(n).args) != null && g.recommendation ? (X(), Z("div", cWe, [oX(g9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), cX(J(Y(i).recommendPrefix) + J(Y(n).args.recommendation), 1)])) : $("", !0),
|
|
90086
90102
|
c.value.length ? (X(), Z("div", lWe, [(X(!0), Z(KY, null, nY(c.value, (e) => (X(), Z("button", {
|
|
90087
90103
|
key: e,
|
|
90088
90104
|
class: "approval-opt",
|
|
@@ -90090,20 +90106,20 @@ var hUe = { class: "msg-actions" }, gUe = ["title"], _Ue = ["title"], vUe = {
|
|
|
90090
90106
|
}, J(e), 9, uWe))), 128))])) : $("", !0),
|
|
90091
90107
|
Q("div", dWe, [Q("button", {
|
|
90092
90108
|
class: "approval-deny",
|
|
90093
|
-
onClick:
|
|
90109
|
+
onClick: p[0] || (p[0] = (e) => Y(r)(!1))
|
|
90094
90110
|
}, [oX(_9, { text: Y(i).deny }, null, 8, ["text"])]), c.value.length ? $("", !0) : (X(), Z("button", {
|
|
90095
90111
|
key: 0,
|
|
90096
90112
|
class: "approval-allow",
|
|
90097
|
-
onClick:
|
|
90113
|
+
onClick: p[1] || (p[1] = (e) => Y(r)(!0))
|
|
90098
90114
|
}, [oX(_9, { text: Y(i).approve }, null, 8, ["text"])]))])
|
|
90099
90115
|
], 64)) : (X(), Z(KY, { key: 1 }, [
|
|
90100
90116
|
Q("div", fWe, [
|
|
90101
|
-
|
|
90117
|
+
p[6] || (p[6] = Q("span", { class: "approval-icon" }, "✋", -1)),
|
|
90102
90118
|
Q("span", pWe, [cX(J(Y(i).toolConfirmPrefix), 1), Q("code", null, J(Y(n).toolName), 1)]),
|
|
90103
90119
|
l.value ? (X(), Z("button", {
|
|
90104
90120
|
key: 0,
|
|
90105
90121
|
class: "approval-toggle",
|
|
90106
|
-
onClick:
|
|
90122
|
+
onClick: p[2] || (p[2] = (e) => o.value = !o.value)
|
|
90107
90123
|
}, J(o.value ? Y(i).collapseArgs : Y(i).viewArgs) + J(o.value ? " ▴" : " ▾"), 1)) : $("", !0)
|
|
90108
90124
|
]),
|
|
90109
90125
|
l.value && o.value ? (X(), Z("pre", mWe, J(l.value), 1)) : $("", !0),
|
|
@@ -90120,7 +90136,7 @@ var hUe = { class: "msg-actions" }, gUe = ["title"], _Ue = ["title"], vUe = {
|
|
|
90120
90136
|
Q("code", yWe, J(e.jsonPath || "(主数据整体)"), 1),
|
|
90121
90137
|
Q("span", bWe, [
|
|
90122
90138
|
Q("span", xWe, J((n = e.oldSummary) == null ? "—" : n), 1),
|
|
90123
|
-
|
|
90139
|
+
p[7] || (p[7] = Q("span", { class: "preview-arrow" }, " → ", -1)),
|
|
90124
90140
|
Q("span", SWe, J((r = e.newSummary) == null ? "—" : r), 1)
|
|
90125
90141
|
])
|
|
90126
90142
|
], 8, _We);
|
|
@@ -90130,25 +90146,27 @@ var hUe = { class: "msg-actions" }, gUe = ["title"], _Ue = ["title"], vUe = {
|
|
|
90130
90146
|
Y(a) ? (X(), Z("div", wWe, [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),
|
|
90131
90147
|
Q("div", TWe, [Q("button", {
|
|
90132
90148
|
class: "approval-deny",
|
|
90133
|
-
onClick:
|
|
90149
|
+
onClick: p[3] || (p[3] = (e) => Y(r)(!1))
|
|
90134
90150
|
}, [oX(_9, { text: Y(i).deny }, null, 8, ["text"])]), Q("button", {
|
|
90135
90151
|
class: "approval-allow",
|
|
90136
|
-
|
|
90137
|
-
|
|
90152
|
+
disabled: f.value,
|
|
90153
|
+
"data-test": "approval-allow",
|
|
90154
|
+
onClick: p[4] || (p[4] = (e) => Y(r)(!0))
|
|
90155
|
+
}, [oX(_9, { text: Y(i).approve }, null, 8, ["text"])], 8, EWe)])
|
|
90138
90156
|
], 64))])) : $("", !0);
|
|
90139
90157
|
};
|
|
90140
90158
|
}
|
|
90141
|
-
}), [["__scopeId", "data-v-
|
|
90159
|
+
}), [["__scopeId", "data-v-3b1ae2a6"]]);
|
|
90142
90160
|
//#endregion
|
|
90143
90161
|
//#region src/core/components/ConflictBar.vue?vue&type=script&setup=true&lang.ts
|
|
90144
90162
|
M();
|
|
90145
|
-
var
|
|
90163
|
+
var OWe = {
|
|
90146
90164
|
key: 0,
|
|
90147
90165
|
class: "conflict-bar"
|
|
90148
|
-
},
|
|
90166
|
+
}, kWe = { class: "conflict-head" }, AWe = { class: "conflict-icon" }, jWe = { class: "conflict-title" }, MWe = { class: "conflict-detail" }, NWe = {
|
|
90149
90167
|
key: 0,
|
|
90150
90168
|
class: "conflict-diff"
|
|
90151
|
-
},
|
|
90169
|
+
}, PWe = { class: "conflict-diff-col" }, FWe = { class: "conflict-diff-label" }, IWe = { class: "conflict-diff-pre" }, LWe = { class: "conflict-diff-col" }, RWe = { class: "conflict-diff-label" }, zWe = { class: "conflict-diff-pre" }, BWe = { class: "conflict-actions" }, VWe = ["title"], HWe = ["title"], UWe = ["title"], WWe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
90152
90170
|
__name: "ConflictBar",
|
|
90153
90171
|
props: {
|
|
90154
90172
|
pendingConflict: {},
|
|
@@ -90182,19 +90200,19 @@ var DWe = {
|
|
|
90182
90200
|
return String(n);
|
|
90183
90201
|
}
|
|
90184
90202
|
});
|
|
90185
|
-
return (t, a) => e.pendingConflict ? (X(), Z("div",
|
|
90186
|
-
Q("div",
|
|
90203
|
+
return (t, a) => e.pendingConflict ? (X(), Z("div", OWe, [
|
|
90204
|
+
Q("div", kWe, [Q("span", AWe, [oX(g9, { icon: e.icons.conflict }, null, 8, ["icon"])]), Q("span", jWe, [
|
|
90187
90205
|
cX(J(e.messages.conflictTitlePrefix), 1),
|
|
90188
90206
|
Q("code", null, J(e.pendingConflict.path), 1),
|
|
90189
90207
|
cX(J(e.messages.conflictTitleSuffix), 1)
|
|
90190
90208
|
])]),
|
|
90191
|
-
Q("div",
|
|
90209
|
+
Q("div", MWe, J(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
|
|
90192
90210
|
Q("button", {
|
|
90193
90211
|
class: "conflict-toggle",
|
|
90194
90212
|
onClick: a[0] || (a[0] = (e) => n.value = !n.value)
|
|
90195
90213
|
}, J(n.value ? e.messages.collapseDiff : e.messages.viewDiff) + J(n.value ? " ▴" : " ▾"), 1),
|
|
90196
|
-
n.value ? (X(), Z("div",
|
|
90197
|
-
Q("div",
|
|
90214
|
+
n.value ? (X(), Z("div", NWe, [Q("div", PWe, [Q("div", FWe, J(e.messages.agentValueLabel), 1), Q("pre", IWe, J(r.value || e.messages.deleteNoValue), 1)]), Q("div", LWe, [Q("div", RWe, J(e.messages.currentValueLabel), 1), Q("pre", zWe, J(i.value), 1)])])) : $("", !0),
|
|
90215
|
+
Q("div", BWe, [
|
|
90198
90216
|
Q("button", {
|
|
90199
90217
|
class: "conflict-keep",
|
|
90200
90218
|
onClick: a[1] || (a[1] = (t) => {
|
|
@@ -90202,7 +90220,7 @@ var DWe = {
|
|
|
90202
90220
|
return (n = e.onResolve) == null ? void 0 : n.call(e, "keep_external");
|
|
90203
90221
|
}),
|
|
90204
90222
|
title: e.messages.keepExternalTitle
|
|
90205
|
-
}, [oX(_9, { text: e.messages.keepExternal }, null, 8, ["text"])], 8,
|
|
90223
|
+
}, [oX(_9, { text: e.messages.keepExternal }, null, 8, ["text"])], 8, VWe),
|
|
90206
90224
|
Q("button", {
|
|
90207
90225
|
class: "conflict-overwrite",
|
|
90208
90226
|
onClick: a[2] || (a[2] = (t) => {
|
|
@@ -90210,7 +90228,7 @@ var DWe = {
|
|
|
90210
90228
|
return (n = e.onResolve) == null ? void 0 : n.call(e, "overwrite");
|
|
90211
90229
|
}),
|
|
90212
90230
|
title: e.messages.overwriteTitle
|
|
90213
|
-
}, [oX(_9, { text: e.messages.overwrite }, null, 8, ["text"])], 8,
|
|
90231
|
+
}, [oX(_9, { text: e.messages.overwrite }, null, 8, ["text"])], 8, HWe),
|
|
90214
90232
|
Q("button", {
|
|
90215
90233
|
class: "conflict-restore",
|
|
90216
90234
|
onClick: a[3] || (a[3] = (t) => {
|
|
@@ -90218,49 +90236,49 @@ var DWe = {
|
|
|
90218
90236
|
return (n = e.onResolve) == null ? void 0 : n.call(e, "restore");
|
|
90219
90237
|
}),
|
|
90220
90238
|
title: e.messages.restoreTitle
|
|
90221
|
-
}, [oX(_9, { text: e.messages.restore }, null, 8, ["text"])], 8,
|
|
90239
|
+
}, [oX(_9, { text: e.messages.restore }, null, 8, ["text"])], 8, UWe)
|
|
90222
90240
|
])
|
|
90223
90241
|
])) : $("", !0);
|
|
90224
90242
|
}
|
|
90225
|
-
}), [["__scopeId", "data-v-36dda58c"]]),
|
|
90243
|
+
}), [["__scopeId", "data-v-36dda58c"]]), GWe = { class: "chat-footer" }, KWe = ["title"], qWe = {
|
|
90226
90244
|
key: 0,
|
|
90227
90245
|
class: "drop-hint"
|
|
90228
|
-
},
|
|
90246
|
+
}, JWe = {
|
|
90229
90247
|
key: 1,
|
|
90230
90248
|
class: "quick-actions",
|
|
90231
90249
|
"data-test": "quick-actions"
|
|
90232
|
-
},
|
|
90250
|
+
}, YWe = [
|
|
90233
90251
|
"disabled",
|
|
90234
90252
|
"data-test",
|
|
90235
90253
|
"title",
|
|
90236
90254
|
"onClick"
|
|
90237
|
-
],
|
|
90255
|
+
], XWe = {
|
|
90238
90256
|
key: 2,
|
|
90239
90257
|
class: "chip-stack"
|
|
90240
|
-
},
|
|
90258
|
+
}, ZWe = {
|
|
90241
90259
|
key: 0,
|
|
90242
90260
|
class: "focus-chips"
|
|
90243
|
-
},
|
|
90261
|
+
}, QWe = ["title", "onClick"], $We = { class: "focus-chip-icon" }, eGe = { class: "focus-chip-path" }, tGe = ["title", "onClick"], nGe = {
|
|
90244
90262
|
key: 1,
|
|
90245
90263
|
class: "quote-chips",
|
|
90246
90264
|
"data-test": "quote-chips"
|
|
90247
|
-
},
|
|
90265
|
+
}, rGe = ["title"], iGe = { class: "quote-chip-text" }, aGe = ["title"], oGe = {
|
|
90248
90266
|
key: 2,
|
|
90249
90267
|
class: "img-chips",
|
|
90250
90268
|
"data-test": "img-chips"
|
|
90251
|
-
},
|
|
90269
|
+
}, sGe = ["title"], cGe = ["src", "alt"], lGe = ["onClick"], uGe = {
|
|
90252
90270
|
key: 3,
|
|
90253
90271
|
class: "img-error",
|
|
90254
90272
|
"data-test": "img-error"
|
|
90255
|
-
},
|
|
90273
|
+
}, dGe = {
|
|
90256
90274
|
key: 3,
|
|
90257
90275
|
class: "gate-hint",
|
|
90258
90276
|
"data-test": "gate-hint"
|
|
90259
|
-
},
|
|
90277
|
+
}, fGe = [
|
|
90260
90278
|
"placeholder",
|
|
90261
90279
|
"rows",
|
|
90262
90280
|
"disabled"
|
|
90263
|
-
],
|
|
90281
|
+
], pGe = { class: "input-actions" }, mGe = { class: "send-hint" }, hGe = ["title", "disabled"], gGe = {
|
|
90264
90282
|
key: 1,
|
|
90265
90283
|
width: "15",
|
|
90266
90284
|
height: "15",
|
|
@@ -90270,13 +90288,13 @@ var DWe = {
|
|
|
90270
90288
|
"stroke-width": "2",
|
|
90271
90289
|
"stroke-linecap": "round",
|
|
90272
90290
|
"stroke-linejoin": "round"
|
|
90273
|
-
},
|
|
90291
|
+
}, _Ge = ["disabled", "title"], vGe = {
|
|
90274
90292
|
key: 0,
|
|
90275
90293
|
width: "16",
|
|
90276
90294
|
height: "16",
|
|
90277
90295
|
viewBox: "0 0 24 24",
|
|
90278
90296
|
fill: "currentColor"
|
|
90279
|
-
},
|
|
90297
|
+
}, yGe = {
|
|
90280
90298
|
key: 2,
|
|
90281
90299
|
width: "18",
|
|
90282
90300
|
height: "18",
|
|
@@ -90284,7 +90302,7 @@ var DWe = {
|
|
|
90284
90302
|
fill: "none",
|
|
90285
90303
|
stroke: "currentColor",
|
|
90286
90304
|
"stroke-width": "2"
|
|
90287
|
-
},
|
|
90305
|
+
}, bGe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
90288
90306
|
__name: "ChatInput",
|
|
90289
90307
|
props: {
|
|
90290
90308
|
placeholder: {},
|
|
@@ -90342,19 +90360,19 @@ var DWe = {
|
|
|
90342
90360
|
window.removeEventListener("dragstart", N, !0), window.removeEventListener("dragend", P, !0), te && clearTimeout(te);
|
|
90343
90361
|
}), (t, n) => {
|
|
90344
90362
|
var h;
|
|
90345
|
-
return X(), Z("div",
|
|
90363
|
+
return X(), Z("div", GWe, [Y(o) ? (X(), Z("button", {
|
|
90346
90364
|
key: 0,
|
|
90347
90365
|
class: "undo-foot-btn",
|
|
90348
90366
|
title: Y(f).undoTitle,
|
|
90349
90367
|
onClick: n[0] || (n[0] = (...e) => Y(s) && Y(s)(...e))
|
|
90350
|
-
}, J(Y(f).undo), 9,
|
|
90368
|
+
}, J(Y(f).undo), 9, KWe)) : $("", !0), Q("div", {
|
|
90351
90369
|
class: TK(["chat-input-wrap", { "drag-over": D.value }]),
|
|
90352
90370
|
onPointerdownCapture: T,
|
|
90353
90371
|
onDragover: n[5] || (n[5] = mZ((e) => D.value = !0, ["prevent"])),
|
|
90354
90372
|
onDragleave: n[6] || (n[6] = (e) => D.value = !1),
|
|
90355
90373
|
onDrop: mZ(A, ["prevent"])
|
|
90356
90374
|
}, [
|
|
90357
|
-
D.value ? (X(), Z("div",
|
|
90375
|
+
D.value ? (X(), Z("div", qWe, [n[7] || (n[7] = Q("svg", {
|
|
90358
90376
|
class: "drop-hint-icon",
|
|
90359
90377
|
viewBox: "0 0 24 24",
|
|
90360
90378
|
fill: "none",
|
|
@@ -90377,7 +90395,7 @@ var DWe = {
|
|
|
90377
90395
|
}),
|
|
90378
90396
|
Q("path", { d: "m21 15-4.35-4.35a1.5 1.5 0 0 0-2.12 0L5 20" })
|
|
90379
90397
|
], -1)), cX(" " + J(Y(f).imageDropHint), 1)])) : $("", !0),
|
|
90380
|
-
(h = e.quickActions) != null && h.length ? (X(), Z("div",
|
|
90398
|
+
(h = e.quickActions) != null && h.length ? (X(), Z("div", JWe, [(X(!0), Z(KY, null, nY(e.quickActions, (t, n) => (X(), Z("button", {
|
|
90381
90399
|
key: n,
|
|
90382
90400
|
type: "button",
|
|
90383
90401
|
class: "quick-action-chip",
|
|
@@ -90385,39 +90403,39 @@ var DWe = {
|
|
|
90385
90403
|
"data-test": `quick-action-${n}`,
|
|
90386
90404
|
title: t.prompt,
|
|
90387
90405
|
onClick: (e) => M(t)
|
|
90388
|
-
}, J(t.icon ? `${t.icon} ` : "") + J(t.label), 9,
|
|
90389
|
-
Y(c).length || Y(y).length || Y(p) || Y(S) ? (X(), Z("div",
|
|
90390
|
-
Y(c).length ? (X(), Z("div",
|
|
90406
|
+
}, J(t.icon ? `${t.icon} ` : "") + J(t.label), 9, YWe))), 128))])) : $("", !0),
|
|
90407
|
+
Y(c).length || Y(y).length || Y(p) || Y(S) ? (X(), Z("div", XWe, [
|
|
90408
|
+
Y(c).length ? (X(), Z("div", ZWe, [(X(!0), Z(KY, null, nY(Y(c), (e) => (X(), Z("span", {
|
|
90391
90409
|
key: e.path,
|
|
90392
90410
|
class: "focus-chip",
|
|
90393
90411
|
title: Y(f).focusChipTitlePrefix + e.path + Y(f).focusChipTitleHint,
|
|
90394
90412
|
onClick: (t) => Y(u)(e)
|
|
90395
90413
|
}, [
|
|
90396
|
-
Q("span",
|
|
90397
|
-
Q("code",
|
|
90414
|
+
Q("span", $We, [oX(g9, { icon: Y(d).focus }, null, 8, ["icon"])]),
|
|
90415
|
+
Q("code", eGe, J(e.path), 1),
|
|
90398
90416
|
Q("button", {
|
|
90399
90417
|
type: "button",
|
|
90400
90418
|
class: "focus-chip-x",
|
|
90401
90419
|
"data-test": "focus-clear",
|
|
90402
90420
|
title: Y(f).removeFocus,
|
|
90403
90421
|
onClick: mZ((t) => Y(l)(e.path), ["stop"])
|
|
90404
|
-
}, "✕", 8,
|
|
90405
|
-
], 8,
|
|
90406
|
-
Y(p) ? (X(), Z("div",
|
|
90422
|
+
}, "✕", 8, tGe)
|
|
90423
|
+
], 8, QWe))), 128))])) : $("", !0),
|
|
90424
|
+
Y(p) ? (X(), Z("div", nGe, [Q("span", {
|
|
90407
90425
|
class: "quote-chip",
|
|
90408
90426
|
title: w(Y(p))
|
|
90409
90427
|
}, [
|
|
90410
90428
|
n[8] || (n[8] = Q("span", { class: "quote-chip-icon" }, "❝", -1)),
|
|
90411
|
-
Q("span",
|
|
90429
|
+
Q("span", iGe, J(Y(p).text), 1),
|
|
90412
90430
|
Q("button", {
|
|
90413
90431
|
type: "button",
|
|
90414
90432
|
class: "focus-chip-x",
|
|
90415
90433
|
"data-test": "quote-clear",
|
|
90416
90434
|
title: Y(f).quoteRemove,
|
|
90417
90435
|
onClick: n[1] || (n[1] = mZ((e) => Y(m)(), ["stop"]))
|
|
90418
|
-
}, "✕", 8,
|
|
90419
|
-
], 8,
|
|
90420
|
-
Y(y).length ? (X(), Z("div",
|
|
90436
|
+
}, "✕", 8, aGe)
|
|
90437
|
+
], 8, rGe)])) : $("", !0),
|
|
90438
|
+
Y(y).length ? (X(), Z("div", oGe, [(X(!0), Z(KY, null, nY(Y(y), (e) => (X(), Z("span", {
|
|
90421
90439
|
key: e.id,
|
|
90422
90440
|
class: "img-chip",
|
|
90423
90441
|
title: e.name || Y(f).imageAlt
|
|
@@ -90425,15 +90443,15 @@ var DWe = {
|
|
|
90425
90443
|
class: "img-chip-thumb",
|
|
90426
90444
|
src: e.dataUri,
|
|
90427
90445
|
alt: e.name || Y(f).imageAlt
|
|
90428
|
-
}, null, 8,
|
|
90446
|
+
}, null, 8, cGe), Q("button", {
|
|
90429
90447
|
type: "button",
|
|
90430
90448
|
class: "img-chip-x",
|
|
90431
90449
|
"data-test": "img-chip-x",
|
|
90432
90450
|
onClick: (t) => Y(x)(e.id)
|
|
90433
|
-
}, "✕", 8,
|
|
90434
|
-
Y(S) ? (X(), Z("div",
|
|
90451
|
+
}, "✕", 8, lGe)], 8, sGe))), 128))])) : $("", !0),
|
|
90452
|
+
Y(S) ? (X(), Z("div", uGe, J(Y(S)), 1)) : $("", !0)
|
|
90435
90453
|
])) : $("", !0),
|
|
90436
|
-
e.gatePending ? (X(), Z("div",
|
|
90454
|
+
e.gatePending ? (X(), Z("div", dGe, J(Y(f).inputGateHint), 1)) : $("", !0),
|
|
90437
90455
|
fJ(Q("textarea", {
|
|
90438
90456
|
"onUpdate:modelValue": n[2] || (n[2] = (e) => /* @__PURE__ */ Fq(r) ? r.value = e : null),
|
|
90439
90457
|
class: "chat-input",
|
|
@@ -90442,9 +90460,9 @@ var DWe = {
|
|
|
90442
90460
|
disabled: e.gatePending,
|
|
90443
90461
|
onKeydown: n[3] || (n[3] = (...e) => Y(a) && Y(a)(...e)),
|
|
90444
90462
|
onPaste: j
|
|
90445
|
-
}, null, 40,
|
|
90446
|
-
Q("div",
|
|
90447
|
-
Q("span",
|
|
90463
|
+
}, null, 40, fGe), [[pZ, Y(r)]]),
|
|
90464
|
+
Q("div", pGe, [
|
|
90465
|
+
Q("span", mGe, J(Y(f).sendHint), 1),
|
|
90448
90466
|
Q("button", {
|
|
90449
90467
|
class: "attach-btn",
|
|
90450
90468
|
title: Y(f).attachImageTitle,
|
|
@@ -90454,7 +90472,7 @@ var DWe = {
|
|
|
90454
90472
|
}, [Y(d).attachImage ? (X(), tX(g9, {
|
|
90455
90473
|
key: 0,
|
|
90456
90474
|
icon: Y(d).attachImage
|
|
90457
|
-
}, null, 8, ["icon"])) : (X(), Z("svg",
|
|
90475
|
+
}, null, 8, ["icon"])) : (X(), Z("svg", gGe, [...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, hGe),
|
|
90458
90476
|
Q("input", {
|
|
90459
90477
|
ref_key: "fileInput",
|
|
90460
90478
|
ref: E,
|
|
@@ -90470,7 +90488,7 @@ var DWe = {
|
|
|
90470
90488
|
disabled: !Y(g).loading && !Y(r).trim() && !Y(y).length && !Y(C) || e.gatePending && !Y(g).loading,
|
|
90471
90489
|
title: Y(g).loading ? Y(f).stopTitle : Y(f).sendTitle,
|
|
90472
90490
|
onClick: n[4] || (n[4] = (e) => Y(g).loading ? Y(_)() : Y(i)())
|
|
90473
|
-
}, [Y(g).loading ? (X(), Z("svg",
|
|
90491
|
+
}, [Y(g).loading ? (X(), Z("svg", vGe, [...n[10] || (n[10] = [Q("rect", {
|
|
90474
90492
|
x: "6",
|
|
90475
90493
|
y: "6",
|
|
90476
90494
|
width: "12",
|
|
@@ -90479,12 +90497,12 @@ var DWe = {
|
|
|
90479
90497
|
}, null, -1)])])) : Y(d).send ? (X(), tX(g9, {
|
|
90480
90498
|
key: 1,
|
|
90481
90499
|
icon: Y(d).send
|
|
90482
|
-
}, null, 8, ["icon"])) : (X(), Z("svg",
|
|
90500
|
+
}, null, 8, ["icon"])) : (X(), Z("svg", yGe, [...n[11] || (n[11] = [Q("line", {
|
|
90483
90501
|
x1: "22",
|
|
90484
90502
|
y1: "2",
|
|
90485
90503
|
x2: "11",
|
|
90486
90504
|
y2: "13"
|
|
90487
|
-
}, null, -1), Q("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)])]))], 10,
|
|
90505
|
+
}, null, -1), Q("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)])]))], 10, _Ge)
|
|
90488
90506
|
])
|
|
90489
90507
|
], 34)]);
|
|
90490
90508
|
};
|
|
@@ -90493,178 +90511,178 @@ var DWe = {
|
|
|
90493
90511
|
//#endregion
|
|
90494
90512
|
//#region src/core/components/DebugDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
90495
90513
|
M();
|
|
90496
|
-
var
|
|
90514
|
+
var xGe = {
|
|
90497
90515
|
key: 0,
|
|
90498
90516
|
class: "debug-drawer"
|
|
90499
|
-
},
|
|
90517
|
+
}, SGe = { class: "drawer-header" }, CGe = { class: "tab-group" }, wGe = { class: "header-actions" }, TGe = ["title"], EGe = ["title"], DGe = ["title"], OGe = {
|
|
90500
90518
|
key: 0,
|
|
90501
90519
|
class: "drawer-filters"
|
|
90502
|
-
},
|
|
90520
|
+
}, kGe = ["onClick"], AGe = { class: "chip-count" }, jGe = { class: "chip-count" }, MGe = {
|
|
90503
90521
|
key: 0,
|
|
90504
90522
|
class: "context-panel"
|
|
90505
|
-
},
|
|
90523
|
+
}, NGe = {
|
|
90506
90524
|
key: 0,
|
|
90507
90525
|
class: "trace-empty"
|
|
90508
|
-
},
|
|
90526
|
+
}, PGe = { class: "ctx-overview" }, FGe = { class: "ctx-occupancy" }, IGe = ["title"], LGe = ["title"], RGe = { class: "ctx-pct" }, zGe = { class: "ctx-kv-row" }, BGe = { class: "ctx-kv" }, VGe = {
|
|
90509
90527
|
key: 0,
|
|
90510
90528
|
class: "ctx-kv"
|
|
90511
|
-
},
|
|
90529
|
+
}, HGe = {
|
|
90512
90530
|
key: 1,
|
|
90513
90531
|
class: "ctx-kv"
|
|
90514
|
-
},
|
|
90532
|
+
}, UGe = { class: "ctx-section-title" }, WGe = ["title"], GGe = { class: "ctx-cat-bar" }, KGe = { class: "ctx-cat-tokens" }, qGe = {
|
|
90515
90533
|
key: 0,
|
|
90516
90534
|
class: "ctx-compression"
|
|
90517
|
-
},
|
|
90535
|
+
}, JGe = { class: "ctx-section-title" }, YGe = { class: "ctx-kv-row" }, XGe = { class: "ctx-kv" }, ZGe = { class: "ctx-kv" }, QGe = { class: "ctx-kv" }, $Ge = {
|
|
90518
90536
|
key: 0,
|
|
90519
90537
|
class: "ctx-kv"
|
|
90520
|
-
},
|
|
90538
|
+
}, eKe = {
|
|
90521
90539
|
key: 1,
|
|
90522
90540
|
class: "subagent-panel"
|
|
90523
|
-
},
|
|
90541
|
+
}, tKe = {
|
|
90524
90542
|
key: 0,
|
|
90525
90543
|
class: "sub-section"
|
|
90526
|
-
},
|
|
90544
|
+
}, nKe = { class: "sub-section-title" }, rKe = {
|
|
90527
90545
|
key: 1,
|
|
90528
90546
|
class: "trace-empty"
|
|
90529
|
-
},
|
|
90547
|
+
}, iKe = {
|
|
90530
90548
|
key: 0,
|
|
90531
90549
|
class: "sub-section"
|
|
90532
|
-
},
|
|
90550
|
+
}, aKe = { class: "sub-section-title" }, oKe = { class: "sub-head" }, sKe = { class: "sub-label" }, cKe = { class: "sub-steps-badge" }, lKe = { class: "sub-task" }, uKe = {
|
|
90533
90551
|
key: 1,
|
|
90534
90552
|
class: "sub-section"
|
|
90535
|
-
},
|
|
90553
|
+
}, dKe = { class: "sub-section-title" }, fKe = { class: "sub-head" }, pKe = { class: "sub-label" }, mKe = {
|
|
90536
90554
|
key: 0,
|
|
90537
90555
|
class: "sub-dur"
|
|
90538
|
-
},
|
|
90556
|
+
}, hKe = ["onClick"], gKe = { class: "sub-task" }, _Ke = {
|
|
90539
90557
|
key: 0,
|
|
90540
90558
|
class: "sub-result"
|
|
90541
|
-
},
|
|
90559
|
+
}, vKe = {
|
|
90542
90560
|
key: 1,
|
|
90543
90561
|
class: "sub-steps-list"
|
|
90544
|
-
},
|
|
90562
|
+
}, yKe = { class: "sub-step-kind" }, bKe = { class: "sub-step-name" }, xKe = { class: "sub-step-ts" }, SKe = {
|
|
90545
90563
|
key: 0,
|
|
90546
90564
|
class: "empty"
|
|
90547
|
-
},
|
|
90565
|
+
}, CKe = ["onClick"], wKe = { class: "log-group-title" }, TKe = { class: "log-group-meta" }, EKe = {
|
|
90548
90566
|
key: 0,
|
|
90549
90567
|
class: "lg-badge"
|
|
90550
|
-
},
|
|
90568
|
+
}, DKe = {
|
|
90551
90569
|
key: 1,
|
|
90552
90570
|
class: "lg-badge"
|
|
90553
|
-
},
|
|
90571
|
+
}, OKe = {
|
|
90554
90572
|
key: 2,
|
|
90555
90573
|
class: "lg-badge err"
|
|
90556
|
-
},
|
|
90574
|
+
}, kKe = { class: "log-group-body" }, AKe = { class: "log-head" }, jKe = {
|
|
90557
90575
|
key: 0,
|
|
90558
90576
|
class: "log-source"
|
|
90559
|
-
},
|
|
90577
|
+
}, MKe = { class: "log-time" }, NKe = { class: "log-body" }, PKe = { class: "kv-grid" }, FKe = { class: "kv" }, IKe = { class: "k" }, LKe = { class: "v" }, RKe = { class: "kv" }, zKe = { class: "k" }, BKe = { class: "v" }, VKe = { class: "kv" }, HKe = { class: "v" }, UKe = { class: "kv" }, WKe = { class: "k" }, GKe = { class: "v" }, KKe = { class: "section-label" }, qKe = { class: "chip-row" }, JKe = { class: "section-label" }, YKe = { class: "msg-list" }, XKe = { class: "msg-text" }, ZKe = { class: "badge-row" }, QKe = { class: "badge" }, $Ke = {
|
|
90560
90578
|
key: 0,
|
|
90561
90579
|
class: "badge muted"
|
|
90562
|
-
},
|
|
90580
|
+
}, eqe = { class: "badge muted" }, tqe = {
|
|
90563
90581
|
key: 1,
|
|
90564
90582
|
class: "badge muted"
|
|
90565
|
-
},
|
|
90583
|
+
}, nqe = ["onClick"], rqe = ["title", "onClick"], iqe = ["onClick"], aqe = ["title", "onClick"], oqe = { class: "msg-detail" }, sqe = {
|
|
90566
90584
|
key: 0,
|
|
90567
90585
|
class: "msg-text"
|
|
90568
|
-
},
|
|
90586
|
+
}, cqe = { class: "tc-inline-name" }, lqe = { class: "tc-inline-args" }, uqe = {
|
|
90569
90587
|
key: 1,
|
|
90570
90588
|
class: "tc-id"
|
|
90571
|
-
},
|
|
90589
|
+
}, dqe = {
|
|
90572
90590
|
key: 1,
|
|
90573
90591
|
class: "log-raw"
|
|
90574
|
-
},
|
|
90592
|
+
}, fqe = { class: "badge-row" }, pqe = { class: "badge" }, mqe = {
|
|
90575
90593
|
key: 0,
|
|
90576
90594
|
class: "badge warn"
|
|
90577
|
-
},
|
|
90595
|
+
}, hqe = {
|
|
90578
90596
|
key: 0,
|
|
90579
90597
|
class: "resp-content"
|
|
90580
|
-
},
|
|
90598
|
+
}, gqe = {
|
|
90581
90599
|
key: 1,
|
|
90582
90600
|
class: "tc-list"
|
|
90583
|
-
},
|
|
90601
|
+
}, _qe = { class: "tc-name" }, vqe = { class: "tc-args" }, yqe = {
|
|
90584
90602
|
key: 2,
|
|
90585
90603
|
class: "usage-row"
|
|
90586
|
-
},
|
|
90604
|
+
}, bqe = { class: "usage" }, xqe = { class: "usage" }, Sqe = { class: "usage" }, Cqe = {
|
|
90587
90605
|
key: 0,
|
|
90588
90606
|
class: "usage"
|
|
90589
|
-
},
|
|
90607
|
+
}, wqe = { class: "tc-name" }, Tqe = {
|
|
90590
90608
|
key: 0,
|
|
90591
90609
|
class: "tc-dur"
|
|
90592
|
-
},
|
|
90610
|
+
}, Eqe = ["title", "onClick"], Dqe = { class: "tc-args" }, Oqe = { class: "tc-result-sep" }, kqe = { class: "tc-args tc-result" }, Aqe = {
|
|
90593
90611
|
key: 1,
|
|
90594
90612
|
class: "tc-card inline"
|
|
90595
|
-
},
|
|
90613
|
+
}, jqe = { class: "tc-name" }, Mqe = {
|
|
90596
90614
|
key: 0,
|
|
90597
90615
|
class: "tc-dur running"
|
|
90598
|
-
},
|
|
90616
|
+
}, Nqe = { class: "tc-args" }, Pqe = {
|
|
90599
90617
|
key: 4,
|
|
90600
90618
|
class: "err-box"
|
|
90601
|
-
},
|
|
90619
|
+
}, Fqe = { class: "log-footer" }, Iqe = ["onClick"], Lqe = ["onClick"], Rqe = {
|
|
90602
90620
|
key: 0,
|
|
90603
90621
|
class: "log-raw"
|
|
90604
|
-
},
|
|
90622
|
+
}, zqe = {
|
|
90605
90623
|
key: 3,
|
|
90606
90624
|
class: "info-body"
|
|
90607
|
-
},
|
|
90625
|
+
}, Bqe = {
|
|
90608
90626
|
key: 0,
|
|
90609
90627
|
class: "empty"
|
|
90610
|
-
},
|
|
90628
|
+
}, Vqe = { class: "info-section" }, Hqe = { class: "info-title" }, Uqe = { class: "kv-grid" }, Wqe = { class: "kv" }, Gqe = { class: "v" }, Kqe = { class: "kv" }, qqe = { class: "k" }, Jqe = { class: "v" }, Yqe = { class: "kv" }, Xqe = { class: "k" }, Zqe = { class: "v" }, Qqe = { class: "kv" }, $qe = { class: "k" }, eJe = { class: "v" }, tJe = {
|
|
90611
90629
|
class: "kv",
|
|
90612
90630
|
style: { "margin-top": "6px" }
|
|
90613
|
-
},
|
|
90631
|
+
}, nJe = { class: "k" }, rJe = {
|
|
90614
90632
|
class: "v",
|
|
90615
90633
|
style: { "font-size": "11px" }
|
|
90616
|
-
},
|
|
90634
|
+
}, iJe = { class: "info-section" }, aJe = { class: "info-title" }, oJe = { class: "info-name" }, sJe = { class: "info-desc" }, cJe = {
|
|
90617
90635
|
key: 0,
|
|
90618
90636
|
class: "info-section"
|
|
90619
|
-
},
|
|
90637
|
+
}, lJe = { class: "info-title" }, uJe = { class: "info-hint" }, dJe = ["onClick"], fJe = { class: "info-desc" }, pJe = {
|
|
90620
90638
|
key: 0,
|
|
90621
90639
|
class: "skill-content"
|
|
90622
|
-
},
|
|
90640
|
+
}, mJe = {
|
|
90623
90641
|
key: 0,
|
|
90624
90642
|
class: "skill-loading"
|
|
90625
|
-
},
|
|
90643
|
+
}, hJe = {
|
|
90626
90644
|
key: 1,
|
|
90627
90645
|
class: "skill-error"
|
|
90628
|
-
},
|
|
90646
|
+
}, gJe = {
|
|
90629
90647
|
key: 2,
|
|
90630
90648
|
class: "skill-pre"
|
|
90631
|
-
},
|
|
90649
|
+
}, _Je = {
|
|
90632
90650
|
key: 1,
|
|
90633
90651
|
class: "info-section"
|
|
90634
|
-
},
|
|
90652
|
+
}, vJe = { class: "info-title" }, yJe = { class: "info-item" }, bJe = { class: "info-name" }, xJe = { class: "info-desc" }, SJe = { class: "info-section" }, CJe = { class: "info-title" }, wJe = { class: "kv-grid" }, TJe = { class: "kv" }, EJe = { class: "k" }, DJe = { class: "v" }, OJe = { class: "kv" }, kJe = { class: "k" }, AJe = { class: "v" }, jJe = { class: "kv" }, MJe = { class: "k" }, NJe = { class: "v" }, PJe = { class: "kv" }, FJe = { class: "k" }, IJe = {
|
|
90635
90653
|
class: "v",
|
|
90636
90654
|
style: { "font-size": "11px" }
|
|
90637
|
-
},
|
|
90655
|
+
}, LJe = {
|
|
90638
90656
|
key: 2,
|
|
90639
90657
|
class: "info-section"
|
|
90640
|
-
},
|
|
90658
|
+
}, RJe = { class: "info-title" }, zJe = { class: "info-name" }, BJe = { class: "src-tag mcp" }, VJe = { class: "info-desc" }, HJe = {
|
|
90641
90659
|
key: 3,
|
|
90642
90660
|
class: "info-section"
|
|
90643
|
-
},
|
|
90661
|
+
}, UJe = { class: "info-title" }, WJe = { class: "kv-grid" }, GJe = { class: "kv" }, KJe = { class: "k" }, qJe = { class: "v" }, JJe = { class: "kv" }, YJe = { class: "k" }, XJe = { class: "v" }, ZJe = { class: "kv" }, QJe = { class: "k" }, $Je = { class: "v" }, eYe = {
|
|
90644
90662
|
key: 0,
|
|
90645
90663
|
class: "kv"
|
|
90646
|
-
},
|
|
90664
|
+
}, tYe = { class: "k" }, nYe = {
|
|
90647
90665
|
class: "v",
|
|
90648
90666
|
style: { "font-size": "11px" }
|
|
90649
|
-
},
|
|
90667
|
+
}, rYe = {
|
|
90650
90668
|
key: 4,
|
|
90651
90669
|
class: "info-section"
|
|
90652
|
-
},
|
|
90670
|
+
}, iYe = { class: "info-title" }, aYe = {
|
|
90653
90671
|
key: 5,
|
|
90654
90672
|
class: "info-section"
|
|
90655
|
-
},
|
|
90673
|
+
}, oYe = { class: "info-title" }, sYe = { class: "info-pre" }, cYe = {
|
|
90656
90674
|
key: 6,
|
|
90657
90675
|
class: "info-section"
|
|
90658
|
-
},
|
|
90676
|
+
}, lYe = { class: "info-title" }, uYe = { class: "info-kv" }, dYe = { class: "kv" }, fYe = { class: "k" }, pYe = { class: "v" }, mYe = { class: "kv" }, hYe = { class: "k" }, gYe = { class: "v" }, _Ye = { class: "kv" }, vYe = { class: "k" }, yYe = { class: "v" }, bYe = { class: "kv" }, xYe = { class: "k" }, SYe = { class: "v" }, CYe = { class: "kv" }, wYe = { class: "k" }, TYe = {
|
|
90659
90677
|
class: "v",
|
|
90660
90678
|
style: { "font-size": "11px" }
|
|
90661
|
-
},
|
|
90679
|
+
}, EYe = {
|
|
90662
90680
|
key: 0,
|
|
90663
90681
|
class: "kv"
|
|
90664
|
-
},
|
|
90682
|
+
}, DYe = { class: "k" }, OYe = {
|
|
90665
90683
|
class: "v",
|
|
90666
90684
|
style: { "font-size": "11px" }
|
|
90667
|
-
}, Q9 = 400,
|
|
90685
|
+
}, Q9 = 400, kYe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
90668
90686
|
__name: "DebugDrawer",
|
|
90669
90687
|
props: {
|
|
90670
90688
|
logs: { default: () => [] },
|
|
@@ -91083,8 +91101,8 @@ var bGe = {
|
|
|
91083
91101
|
return (t, n) => (X(), tX(DJ, { to: "body" }, [oX(LX, { name: "drawer" }, {
|
|
91084
91102
|
default: dJ(() => {
|
|
91085
91103
|
var t;
|
|
91086
|
-
return [e.visible ? (X(), Z("div",
|
|
91087
|
-
Q("div",
|
|
91104
|
+
return [e.visible ? (X(), Z("div", xGe, [Q("div", { class: TK(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
|
|
91105
|
+
Q("div", SGe, [Q("div", CGe, [
|
|
91088
91106
|
Q("button", {
|
|
91089
91107
|
class: TK(["tab-btn", { active: ue.value === "logs" }]),
|
|
91090
91108
|
onClick: n[0] || (n[0] = (e) => me("logs"))
|
|
@@ -91104,33 +91122,33 @@ var bGe = {
|
|
|
91104
91122
|
class: TK(["tab-btn", { active: ue.value === "info" }]),
|
|
91105
91123
|
onClick: n[3] || (n[3] = (e) => me("info"))
|
|
91106
91124
|
}, "🧬 " + J(y.value.debugTabInfo), 3)) : $("", !0)
|
|
91107
|
-
]), Q("div",
|
|
91125
|
+
]), Q("div", wGe, [
|
|
91108
91126
|
Q("button", {
|
|
91109
91127
|
class: "hd-btn",
|
|
91110
91128
|
title: y.value.debugCopyReport,
|
|
91111
91129
|
onClick: v
|
|
91112
|
-
}, J(g.value === "report" ? "✓" : "💾"), 9,
|
|
91130
|
+
}, J(g.value === "report" ? "✓" : "💾"), 9, TGe),
|
|
91113
91131
|
ue.value === "logs" ? (X(), Z("button", {
|
|
91114
91132
|
key: 0,
|
|
91115
91133
|
class: "hd-btn",
|
|
91116
91134
|
title: y.value.debugClearLogs,
|
|
91117
91135
|
onClick: le
|
|
91118
|
-
}, "🗑️", 8,
|
|
91136
|
+
}, "🗑️", 8, EGe)) : $("", !0),
|
|
91119
91137
|
Q("button", {
|
|
91120
91138
|
class: "hd-btn",
|
|
91121
91139
|
title: y.value.close,
|
|
91122
91140
|
onClick: F
|
|
91123
|
-
}, "✕", 8,
|
|
91141
|
+
}, "✕", 8, DGe)
|
|
91124
91142
|
])]),
|
|
91125
|
-
ue.value === "logs" ? (X(), Z("div",
|
|
91143
|
+
ue.value === "logs" ? (X(), Z("div", OGe, [(X(!0), Z(KY, null, nY(b.value, (e, t) => (X(), Z("button", {
|
|
91126
91144
|
key: t,
|
|
91127
91145
|
class: TK(["filter-chip", { active: i.value === t }]),
|
|
91128
91146
|
style: wK({ "--chip-color": e.color }),
|
|
91129
91147
|
onClick: (e) => i.value = t
|
|
91130
|
-
}, [cX(J(e.icon) + " " + J(e.label) + " ", 1), Q("span",
|
|
91148
|
+
}, [cX(J(e.icon) + " " + J(e.label) + " ", 1), Q("span", AGe, J(C.value[t] || 0), 1)], 14, kGe))), 128)), Q("button", {
|
|
91131
91149
|
class: TK(["filter-chip all", { active: i.value === "all" }]),
|
|
91132
91150
|
onClick: n[4] || (n[4] = (e) => i.value = "all")
|
|
91133
|
-
}, [cX(J(y.value.debugFilterAll) + " ", 1), Q("span",
|
|
91151
|
+
}, [cX(J(y.value.debugFilterAll) + " ", 1), Q("span", jGe, J(C.value.all || 0), 1)], 2)])) : $("", !0),
|
|
91134
91152
|
Q("div", {
|
|
91135
91153
|
class: "drawer-body",
|
|
91136
91154
|
ref_key: "drawerBodyEl",
|
|
@@ -91144,8 +91162,8 @@ var bGe = {
|
|
|
91144
91162
|
ref_key: "drawerContentsEl",
|
|
91145
91163
|
ref: c
|
|
91146
91164
|
}, [
|
|
91147
|
-
ue.value === "context" ? (X(), Z("div",
|
|
91148
|
-
Q("div",
|
|
91165
|
+
ue.value === "context" ? (X(), Z("div", MGe, [be.value ? (X(), Z(KY, { key: 1 }, [be.value ? (X(), Z(KY, { key: 0 }, [
|
|
91166
|
+
Q("div", PGe, [Q("div", FGe, [Q("div", {
|
|
91149
91167
|
class: "ctx-bar-track",
|
|
91150
91168
|
title: `${y.value.debugCtxOccupancy} ${Math.round(be.value.occupancy * 100)}%`
|
|
91151
91169
|
}, [Q("div", {
|
|
@@ -91156,12 +91174,12 @@ var bGe = {
|
|
|
91156
91174
|
class: "ctx-threshold-mark",
|
|
91157
91175
|
style: wK({ left: Math.min(be.value.thresholdRatio * 100, 100) + "%" }),
|
|
91158
91176
|
title: y.value.debugCtxThreshold
|
|
91159
|
-
}, null, 12,
|
|
91160
|
-
Q("span",
|
|
91161
|
-
be.value.contextWindow ? (X(), Z("span",
|
|
91162
|
-
be.value.thresholdRatio > 0 ? (X(), Z("span",
|
|
91177
|
+
}, null, 12, LGe)) : $("", !0)], 8, IGe), Q("span", RGe, J(Math.round(be.value.occupancy * 100)) + "%", 1)]), Q("div", zGe, [
|
|
91178
|
+
Q("span", BGe, J(y.value.debugCtxTokens) + " " + J(be.value.totalTokens) + " token", 1),
|
|
91179
|
+
be.value.contextWindow ? (X(), Z("span", VGe, J(y.value.debugCtxWindow) + " " + J(be.value.contextWindow), 1)) : $("", !0),
|
|
91180
|
+
be.value.thresholdRatio > 0 ? (X(), Z("span", HGe, J(y.value.debugCtxThresholdPct) + " " + J(Math.round(be.value.thresholdRatio * 100)) + "%", 1)) : $("", !0)
|
|
91163
91181
|
])]),
|
|
91164
|
-
Q("div",
|
|
91182
|
+
Q("div", UGe, J(y.value.debugCtxCategories), 1),
|
|
91165
91183
|
(X(!0), Z(KY, null, nY(be.value.categories, (e) => (X(), Z("div", {
|
|
91166
91184
|
key: e.key,
|
|
91167
91185
|
class: "ctx-cat"
|
|
@@ -91169,62 +91187,62 @@ var bGe = {
|
|
|
91169
91187
|
Q("span", {
|
|
91170
91188
|
class: "ctx-cat-label",
|
|
91171
91189
|
title: e.label
|
|
91172
|
-
}, J(e.label), 9,
|
|
91173
|
-
Q("div",
|
|
91190
|
+
}, J(e.label), 9, WGe),
|
|
91191
|
+
Q("div", GGe, [Q("div", {
|
|
91174
91192
|
class: "ctx-cat-fill",
|
|
91175
91193
|
style: wK({ width: Math.max(Math.round(e.pct * 100), 2) + "%" })
|
|
91176
91194
|
}, null, 4)]),
|
|
91177
|
-
Q("span",
|
|
91195
|
+
Q("span", KGe, [cX(J(e.tokens) + " ", 1), Q("i", null, "(" + J(Math.round(e.pct * 100)) + "%)", 1)])
|
|
91178
91196
|
]))), 128)),
|
|
91179
|
-
be.value.compression ? (X(), Z("div",
|
|
91180
|
-
Q("span",
|
|
91181
|
-
Q("span",
|
|
91182
|
-
Q("span",
|
|
91183
|
-
be.value.compression.decision ? (X(), Z("span",
|
|
91197
|
+
be.value.compression ? (X(), Z("div", qGe, [Q("div", JGe, J(y.value.debugCtxLastCompression), 1), Q("div", YGe, [
|
|
91198
|
+
Q("span", XGe, J(y.value.debugCtxSummarized) + " " + J(be.value.compression.roundsSummarized) + "/" + J(be.value.compression.roundsTotal) + J(y.value.debugCtxRoundsSuffix), 1),
|
|
91199
|
+
Q("span", ZGe, J(y.value.debugCtxRecalled) + " " + J(be.value.compression.roundsRecalled), 1),
|
|
91200
|
+
Q("span", QGe, J(be.value.compression.strategy), 1),
|
|
91201
|
+
be.value.compression.decision ? (X(), Z("span", $Ge, "🤖 " + J(y.value.debugCtxAgentDecision) + J(Oe(be.value.compression.decision)), 1)) : $("", !0)
|
|
91184
91202
|
])])) : $("", !0)
|
|
91185
|
-
], 64)) : $("", !0)], 64)) : (X(), Z("div",
|
|
91186
|
-
ue.value === "subagent" ? (X(), Z("div",
|
|
91203
|
+
], 64)) : $("", !0)], 64)) : (X(), Z("div", NGe, J(y.value.debugCtxEmpty), 1))])) : $("", !0),
|
|
91204
|
+
ue.value === "subagent" ? (X(), Z("div", eKe, [we.value.length ? (X(), Z("div", tKe, [Q("div", nKe, "🔒 " + J(y.value.debugLocksTitle) + " (" + J(we.value.length) + ")", 1), (X(!0), Z(KY, null, nY(we.value, ([e, t]) => (X(), Z("div", {
|
|
91187
91205
|
key: "lock-" + e,
|
|
91188
91206
|
class: "sub-task"
|
|
91189
|
-
}, "🔒 " + J(e) + " ← " + J(t), 1))), 128))])) : $("", !0), !Se.value.length && !Ce.value.length ? (X(), Z("div",
|
|
91207
|
+
}, "🔒 " + J(e) + " ← " + J(t), 1))), 128))])) : $("", !0), !Se.value.length && !Ce.value.length ? (X(), Z("div", rKe, J(y.value.debugSubagentEmpty), 1)) : (X(), Z(KY, { key: 2 }, [Se.value.length ? (X(), Z("div", iKe, [Q("div", aKe, "▶ " + J(y.value.debugSubRunningTitle) + " (" + J(Se.value.length) + ")", 1), (X(!0), Z(KY, null, nY(Se.value, (e, t) => (X(), Z("div", {
|
|
91190
91208
|
key: "a" + t,
|
|
91191
91209
|
class: TK(["sub-card", e.status])
|
|
91192
|
-
}, [Q("div",
|
|
91210
|
+
}, [Q("div", oKe, [
|
|
91193
91211
|
Q("span", {
|
|
91194
91212
|
class: "sub-status",
|
|
91195
91213
|
style: wK({ background: Te.value[e.status] && Te.value[e.status].color || "#9ca3af" })
|
|
91196
91214
|
}, J(Te.value[e.status] && Te.value[e.status].label || e.status), 5),
|
|
91197
|
-
Q("span",
|
|
91198
|
-
Q("span",
|
|
91199
|
-
]), Q("div",
|
|
91215
|
+
Q("span", sKe, J(e.label), 1),
|
|
91216
|
+
Q("span", cKe, J(e.steps.length) + J(y.value.debugStepsCountSuffix), 1)
|
|
91217
|
+
]), Q("div", lKe, J(ve(e.task, 80)), 1)], 2))), 128))])) : $("", !0), Ce.value.length ? (X(), Z("div", uKe, [Q("div", dKe, "🕐 " + J(y.value.debugSubHistoryTitle) + " (" + J(Ce.value.length) + ")", 1), (X(!0), Z(KY, null, nY(Ce.value, (e, t) => (X(), Z("div", {
|
|
91200
91218
|
key: "h" + t,
|
|
91201
91219
|
class: TK(["sub-card", e.status])
|
|
91202
91220
|
}, [
|
|
91203
|
-
Q("div",
|
|
91221
|
+
Q("div", fKe, [
|
|
91204
91222
|
Q("span", {
|
|
91205
91223
|
class: "sub-status",
|
|
91206
91224
|
style: wK({ background: Te.value[e.status] && Te.value[e.status].color || "#9ca3af" })
|
|
91207
91225
|
}, J(Te.value[e.status] && Te.value[e.status].label || e.status), 5),
|
|
91208
|
-
Q("span",
|
|
91209
|
-
e.durationMs == null ? $("", !0) : (X(), Z("span",
|
|
91226
|
+
Q("span", pKe, J(e.label), 1),
|
|
91227
|
+
e.durationMs == null ? $("", !0) : (X(), Z("span", mKe, J(ye(e.durationMs)), 1)),
|
|
91210
91228
|
e.steps.length ? (X(), Z("button", {
|
|
91211
91229
|
key: 1,
|
|
91212
91230
|
class: "sub-toggle",
|
|
91213
91231
|
onClick: (e) => De(t)
|
|
91214
|
-
}, J(Ee.value.has(t) ? y.value.collapse : y.value.debugStepsBtn), 9,
|
|
91232
|
+
}, J(Ee.value.has(t) ? y.value.collapse : y.value.debugStepsBtn), 9, hKe)) : $("", !0)
|
|
91215
91233
|
]),
|
|
91216
|
-
Q("div",
|
|
91217
|
-
e.resultPreview ? (X(), Z("div",
|
|
91218
|
-
Ee.value.has(t) && e.steps.length ? (X(), Z("div",
|
|
91234
|
+
Q("div", gKe, J(ve(e.task, 80)), 1),
|
|
91235
|
+
e.resultPreview ? (X(), Z("div", _Ke, J(e.resultPreview), 1)) : $("", !0),
|
|
91236
|
+
Ee.value.has(t) && e.steps.length ? (X(), Z("div", vKe, [(X(!0), Z(KY, null, nY(e.steps, (e, t) => (X(), Z("div", {
|
|
91219
91237
|
key: t,
|
|
91220
91238
|
class: "sub-step"
|
|
91221
91239
|
}, [
|
|
91222
|
-
Q("span",
|
|
91223
|
-
Q("span",
|
|
91224
|
-
Q("span",
|
|
91240
|
+
Q("span", yKe, J(e.kind === "tool_call" ? "🔧" : "✅"), 1),
|
|
91241
|
+
Q("span", bKe, J(e.name), 1),
|
|
91242
|
+
Q("span", xKe, J(re(e.ts)), 1)
|
|
91225
91243
|
]))), 128))])) : $("", !0)
|
|
91226
91244
|
], 2))), 128))])) : $("", !0)], 64))])) : $("", !0),
|
|
91227
|
-
ue.value === "logs" ? (X(), Z(KY, { key: 2 }, [S.value.length === 0 ? (X(), Z("div",
|
|
91245
|
+
ue.value === "logs" ? (X(), Z(KY, { key: 2 }, [S.value.length === 0 ? (X(), Z("div", SKe, J(y.value.debugLogsEmpty), 1)) : $("", !0), (X(!0), Z(KY, null, nY(k.value, (e) => (X(), Z("div", {
|
|
91228
91246
|
key: e.key,
|
|
91229
91247
|
class: "log-group"
|
|
91230
91248
|
}, [Q("div", {
|
|
@@ -91232,69 +91250,69 @@ var bGe = {
|
|
|
91232
91250
|
onClick: (t) => N(e.key)
|
|
91233
91251
|
}, [
|
|
91234
91252
|
Q("span", { class: TK(["log-group-arrow", { open: te(e.key) }]) }, "▶", 2),
|
|
91235
|
-
Q("span",
|
|
91236
|
-
Q("span",
|
|
91253
|
+
Q("span", wKe, J(P(e)), 1),
|
|
91254
|
+
Q("span", TKe, [
|
|
91237
91255
|
cX(J(re(e.firstTs)), 1),
|
|
91238
91256
|
e.lastTs > e.firstTs ? (X(), Z(KY, { key: 0 }, [cX(" ~ " + J(re(e.lastTs)), 1)], 64)) : $("", !0),
|
|
91239
91257
|
cX(" · " + J(ye(e.lastTs - e.firstTs)), 1)
|
|
91240
91258
|
]),
|
|
91241
|
-
e.toolCount ? (X(), Z("span",
|
|
91242
|
-
e.tokens == null ? $("", !0) : (X(), Z("span",
|
|
91243
|
-
e.errorCount ? (X(), Z("span",
|
|
91244
|
-
], 10,
|
|
91259
|
+
e.toolCount ? (X(), Z("span", EKe, "🔧 " + J(e.toolCount), 1)) : $("", !0),
|
|
91260
|
+
e.tokens == null ? $("", !0) : (X(), Z("span", DKe, "Σ " + J(e.tokens) + " tok", 1)),
|
|
91261
|
+
e.errorCount ? (X(), Z("span", OKe, "❌ " + J(e.errorCount), 1)) : $("", !0)
|
|
91262
|
+
], 10, CKe), fJ(Q("div", kKe, [(X(!0), Z(KY, null, nY(e.entries, ({ log: e, pairCall: t, prevMsgCount: r, uid: i }) => {
|
|
91245
91263
|
var o, s, c, l, u, v, x, S;
|
|
91246
91264
|
return X(), Z("div", {
|
|
91247
91265
|
key: i,
|
|
91248
91266
|
class: "log-item"
|
|
91249
91267
|
}, [
|
|
91250
|
-
Q("div",
|
|
91268
|
+
Q("div", AKe, [
|
|
91251
91269
|
Q("span", {
|
|
91252
91270
|
class: "log-type",
|
|
91253
91271
|
style: wK({ background: b.value[e.type].color })
|
|
91254
91272
|
}, J(b.value[e.type].icon) + " " + J(b.value[e.type].label), 5),
|
|
91255
|
-
e.source ? (X(), Z("span",
|
|
91256
|
-
Q("span",
|
|
91273
|
+
e.source ? (X(), Z("span", jKe, "↳ " + J(e.source), 1)) : $("", !0),
|
|
91274
|
+
Q("span", MKe, J(re(e.timestamp)), 1)
|
|
91257
91275
|
]),
|
|
91258
|
-
Q("div",
|
|
91259
|
-
Q("div",
|
|
91260
|
-
Q("div",
|
|
91261
|
-
Q("div",
|
|
91262
|
-
Q("div",
|
|
91263
|
-
Q("div",
|
|
91276
|
+
Q("div", NKe, [e.type === "context" ? (X(), Z(KY, { key: 0 }, [
|
|
91277
|
+
Q("div", PKe, [
|
|
91278
|
+
Q("div", FKe, [Q("span", IKe, J(y.value.debugModel), 1), Q("span", LKe, J(e.data.model), 1)]),
|
|
91279
|
+
Q("div", RKe, [Q("span", zKe, J(y.value.debugTemperature), 1), Q("span", BKe, J(e.data.temperature), 1)]),
|
|
91280
|
+
Q("div", VKe, [n[5] || (n[5] = Q("span", { class: "k" }, "MaxTokens", -1)), Q("span", HKe, J(e.data.maxTokens), 1)]),
|
|
91281
|
+
Q("div", UKe, [Q("span", WKe, J(y.value.debugMessageCount), 1), Q("span", GKe, J(e.data.totalMessages), 1)])
|
|
91264
91282
|
]),
|
|
91265
|
-
Q("div",
|
|
91266
|
-
Q("div",
|
|
91283
|
+
Q("div", KKe, J(y.value.debugToolsLabel) + " (" + J(((o = e.data.tools) == null ? void 0 : o.length) || 0) + ")", 1),
|
|
91284
|
+
Q("div", qKe, [(X(!0), Z(KY, null, nY(e.data.tools, (e) => (X(), Z("span", {
|
|
91267
91285
|
key: e,
|
|
91268
91286
|
class: "tool-chip"
|
|
91269
91287
|
}, J(e), 1))), 128))]),
|
|
91270
|
-
Q("div",
|
|
91271
|
-
Q("div",
|
|
91288
|
+
Q("div", JKe, J(y.value.debugContextMessages), 1),
|
|
91289
|
+
Q("div", YKe, [(X(!0), Z(KY, null, nY(e.data.messages, (e, t) => (X(), Z("div", {
|
|
91272
91290
|
key: t,
|
|
91273
91291
|
class: "msg-row"
|
|
91274
91292
|
}, [Q("span", {
|
|
91275
91293
|
class: "msg-role",
|
|
91276
91294
|
style: wK({ background: ce(e.type).color })
|
|
91277
|
-
}, J(ce(e.type).label), 5), Q("span",
|
|
91278
|
-
], 64)) : e.type === "llm_request" ? (X(), Z(KY, { key: 1 }, [Q("div",
|
|
91279
|
-
Q("span",
|
|
91280
|
-
e.data.model ? (X(), Z("span",
|
|
91281
|
-
Q("span",
|
|
91282
|
-
(s = e.data.tools) != null && s.length ? (X(), Z("span",
|
|
91295
|
+
}, J(ce(e.type).label), 5), Q("span", XKe, J(e.content), 1)]))), 128))])
|
|
91296
|
+
], 64)) : e.type === "llm_request" ? (X(), Z(KY, { key: 1 }, [Q("div", ZKe, [
|
|
91297
|
+
Q("span", QKe, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1),
|
|
91298
|
+
e.data.model ? (X(), Z("span", $Ke, J(e.data.model), 1)) : $("", !0),
|
|
91299
|
+
Q("span", eqe, [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)]),
|
|
91300
|
+
(s = e.data.tools) != null && s.length ? (X(), Z("span", tqe, J(e.data.tools.length) + J(y.value.debugToolCountSuffix), 1)) : $("", !0),
|
|
91283
91301
|
r != null && r > 0 ? (X(), Z("button", {
|
|
91284
91302
|
key: 2,
|
|
91285
91303
|
class: "view-toggle only-new-btn",
|
|
91286
91304
|
onClick: (e) => h(i)
|
|
91287
|
-
}, J(m.value.has(i) ? y.value.debugShowAll : y.value.debugOnlyNew), 9,
|
|
91305
|
+
}, J(m.value.has(i) ? y.value.debugShowAll : y.value.debugOnlyNew), 9, nqe)) : $("", !0),
|
|
91288
91306
|
Q("button", {
|
|
91289
91307
|
class: "view-toggle copy-btn",
|
|
91290
91308
|
title: y.value.copy,
|
|
91291
91309
|
onClick: (t) => _(oe(e.data.messages), "req" + i)
|
|
91292
|
-
}, J(g.value === "req" + i ? "✓" : "📋"), 9,
|
|
91310
|
+
}, J(g.value === "req" + i ? "✓" : "📋"), 9, rqe),
|
|
91293
91311
|
Q("button", {
|
|
91294
91312
|
class: "view-toggle",
|
|
91295
91313
|
onClick: (e) => ae(i)
|
|
91296
|
-
}, J(d.value.has(i) ? y.value.debugCardView : y.value.debugRequestBody), 9,
|
|
91297
|
-
]), d.value.has(i) ? (X(), Z("pre",
|
|
91314
|
+
}, J(d.value.has(i) ? y.value.debugCardView : y.value.debugRequestBody), 9, iqe)
|
|
91315
|
+
]), d.value.has(i) ? (X(), Z("pre", dqe, [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", {
|
|
91298
91316
|
key: e.base,
|
|
91299
91317
|
class: "msg-list"
|
|
91300
91318
|
}, [(X(!0), Z(KY, null, nY(e.list, (t, n) => {
|
|
@@ -91310,37 +91328,37 @@ var bGe = {
|
|
|
91310
91328
|
}, [Q("span", {
|
|
91311
91329
|
class: "msg-role",
|
|
91312
91330
|
style: wK({ background: ce(t.role).color })
|
|
91313
|
-
}, J(ce(t.role).label), 5), Q("div",
|
|
91314
|
-
t.content ? (X(), Z("span",
|
|
91331
|
+
}, J(ce(t.role).label), 5), Q("div", oqe, [
|
|
91332
|
+
t.content ? (X(), Z("span", sqe, J(t.content), 1)) : $("", !0),
|
|
91315
91333
|
(X(!0), Z(KY, null, nY(t.tool_calls || [], (e, t) => {
|
|
91316
91334
|
var n, r, i;
|
|
91317
91335
|
return X(), Z("div", {
|
|
91318
91336
|
key: t,
|
|
91319
91337
|
class: "tc-inline"
|
|
91320
|
-
}, [Q("span",
|
|
91338
|
+
}, [Q("span", cqe, "🔧 " + J(((n = e.function) == null ? void 0 : n.name) || e.name), 1), Q("code", lqe, J((r = (i = e.function) == null ? void 0 : i.arguments) == null ? e.args : r), 1)]);
|
|
91321
91339
|
}), 128)),
|
|
91322
|
-
t.tool_call_id ? (X(), Z("span",
|
|
91323
|
-
])], 10,
|
|
91340
|
+
t.tool_call_id ? (X(), Z("span", uqe, "↳ tool_call_id: " + J(t.tool_call_id), 1)) : $("", !0)
|
|
91341
|
+
])], 10, aqe);
|
|
91324
91342
|
}), 128))]))), 128))], 64)) : e.type === "llm_response" ? (X(), Z(KY, { key: 2 }, [
|
|
91325
|
-
Q("div",
|
|
91326
|
-
e.data.content ? (X(), Z("div",
|
|
91327
|
-
(l = e.data.toolCalls) != null && l.length ? (X(), Z("div",
|
|
91343
|
+
Q("div", fqe, [Q("span", pqe, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1), (c = e.data.toolCalls) != null && c.length ? (X(), Z("span", mqe, "🔧 " + J(e.data.toolCalls.length) + J(y.value.debugToolCallsSuffix), 1)) : $("", !0)]),
|
|
91344
|
+
e.data.content ? (X(), Z("div", hqe, J(e.data.content), 1)) : $("", !0),
|
|
91345
|
+
(l = e.data.toolCalls) != null && l.length ? (X(), Z("div", gqe, [(X(!0), Z(KY, null, nY(e.data.toolCalls, (e, t) => (X(), Z("div", {
|
|
91328
91346
|
key: t,
|
|
91329
91347
|
class: "tc-card"
|
|
91330
|
-
}, [Q("div",
|
|
91331
|
-
e.data.usage ? (X(), Z("div",
|
|
91332
|
-
Q("span",
|
|
91333
|
-
Q("span",
|
|
91334
|
-
Q("span",
|
|
91335
|
-
e.data.usage.reasoning_tokens ? (X(), Z("span",
|
|
91348
|
+
}, [Q("div", _qe, "🔧 " + J(e.name), 1), Q("pre", vqe, J(oe(e.args)), 1)]))), 128))])) : $("", !0),
|
|
91349
|
+
e.data.usage ? (X(), Z("div", yqe, [
|
|
91350
|
+
Q("span", bqe, "prompt: " + J((u = e.data.usage.prompt_tokens) == null ? "-" : u), 1),
|
|
91351
|
+
Q("span", xqe, "completion: " + J((v = e.data.usage.completion_tokens) == null ? "-" : v), 1),
|
|
91352
|
+
Q("span", Sqe, "total: " + J((x = e.data.usage.total_tokens) == null ? "-" : x), 1),
|
|
91353
|
+
e.data.usage.reasoning_tokens ? (X(), Z("span", Cqe, "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)
|
|
91336
91354
|
])) : $("", !0)
|
|
91337
91355
|
], 64)) : e.type === "tool_call" || e.type === "tool_result" ? (X(), Z(KY, { key: 3 }, [t ? (X(), Z("div", {
|
|
91338
91356
|
key: 0,
|
|
91339
91357
|
class: TK(["tc-card inline paired", { error: e.data.status === "error" }])
|
|
91340
91358
|
}, [
|
|
91341
|
-
Q("div",
|
|
91359
|
+
Q("div", wqe, [
|
|
91342
91360
|
cX(J(e.data.status === "error" ? "❌" : "✅") + " " + J(e.data.name) + " ", 1),
|
|
91343
|
-
e.data.durationMs == null ? $("", !0) : (X(), Z("span",
|
|
91361
|
+
e.data.durationMs == null ? $("", !0) : (X(), Z("span", Tqe, J(ye(e.data.durationMs)), 1)),
|
|
91344
91362
|
Q("button", {
|
|
91345
91363
|
class: "view-toggle copy-btn",
|
|
91346
91364
|
title: y.value.copy,
|
|
@@ -91348,84 +91366,84 @@ var bGe = {
|
|
|
91348
91366
|
var n;
|
|
91349
91367
|
return _(String((n = e.data.result) == null ? "" : n), "res" + i);
|
|
91350
91368
|
}
|
|
91351
|
-
}, J(g.value === "res" + i ? "✓" : "📋"), 9,
|
|
91369
|
+
}, J(g.value === "res" + i ? "✓" : "📋"), 9, Eqe)
|
|
91352
91370
|
]),
|
|
91353
|
-
Q("pre",
|
|
91354
|
-
Q("div",
|
|
91355
|
-
Q("pre",
|
|
91356
|
-
], 2)) : (X(), Z("div",
|
|
91357
|
-
Q("div",
|
|
91371
|
+
Q("pre", Dqe, J(oe(t.data.args)), 1),
|
|
91372
|
+
Q("div", Oqe, "↓ " + J(y.value.resultLabel), 1),
|
|
91373
|
+
Q("pre", kqe, J(e.data.result), 1)
|
|
91374
|
+
], 2)) : (X(), Z("div", Aqe, [Q("div", jqe, [cX(J(e.type === "tool_call" ? "🔧" : "✅") + " " + J(e.data.name) + " ", 1), e.type === "tool_call" ? (X(), Z("span", Mqe, J(y.value.statusRunning) + "…", 1)) : $("", !0)]), Q("pre", Nqe, J(e.type === "tool_call" ? oe(e.data.args) : e.data.result), 1)]))], 64)) : e.type === "error" ? (X(), Z("div", Pqe, J(e.data.tool ? `[${e.data.tool}] ` : "") + J(e.data.error), 1)) : $("", !0)]),
|
|
91375
|
+
Q("div", Fqe, [Q("button", {
|
|
91358
91376
|
class: "raw-toggle",
|
|
91359
91377
|
onClick: (e) => ie(i)
|
|
91360
|
-
}, J(a.value.has(i) ? y.value.debugCollapseRawJson : y.value.debugViewRawJson), 9,
|
|
91378
|
+
}, J(a.value.has(i) ? y.value.debugCollapseRawJson : y.value.debugViewRawJson), 9, Iqe), Q("button", {
|
|
91361
91379
|
class: "raw-toggle",
|
|
91362
91380
|
onClick: (t) => Y(I7)(oe(e.data))
|
|
91363
|
-
}, J(y.value.copy), 9,
|
|
91364
|
-
a.value.has(i) ? (X(), Z("pre",
|
|
91381
|
+
}, J(y.value.copy), 9, Lqe)]),
|
|
91382
|
+
a.value.has(i) ? (X(), Z("pre", Rqe, [Q("code", null, J(oe(e.data)), 1)])) : $("", !0)
|
|
91365
91383
|
]);
|
|
91366
|
-
}), 128))], 512), [[XX, te(e.key)]])]))), 128))], 64)) : ue.value === "info" ? (X(), Z("div",
|
|
91367
|
-
Q("div",
|
|
91368
|
-
Q("div",
|
|
91369
|
-
Q("div",
|
|
91370
|
-
Q("div",
|
|
91371
|
-
Q("div",
|
|
91372
|
-
Q("div",
|
|
91373
|
-
Q("div",
|
|
91384
|
+
}), 128))], 512), [[XX, te(e.key)]])]))), 128))], 64)) : ue.value === "info" ? (X(), Z("div", zqe, [I.value ? (X(), Z(KY, { key: 1 }, [
|
|
91385
|
+
Q("div", Vqe, [
|
|
91386
|
+
Q("div", Hqe, J(y.value.debugInfoBasic), 1),
|
|
91387
|
+
Q("div", Uqe, [
|
|
91388
|
+
Q("div", Wqe, [n[6] || (n[6] = Q("span", { class: "k" }, "ID", -1)), Q("span", Gqe, J(I.value.id), 1)]),
|
|
91389
|
+
Q("div", Kqe, [Q("span", qqe, J(y.value.debugModel), 1), Q("span", Jqe, J(I.value.model || "-"), 1)]),
|
|
91390
|
+
Q("div", Yqe, [Q("span", Xqe, J(y.value.debugToolCount), 1), Q("span", Zqe, J(I.value.tools.length), 1)]),
|
|
91391
|
+
Q("div", Qqe, [Q("span", $qe, J(y.value.debugMiddleware), 1), Q("span", eJe, J(I.value.middleware.length), 1)])
|
|
91374
91392
|
]),
|
|
91375
|
-
Q("div",
|
|
91393
|
+
Q("div", tJe, [Q("span", nJe, J(y.value.debugMiddlewareStack), 1), Q("span", rJe, J(I.value.middleware.join(" → ") || "-"), 1)])
|
|
91376
91394
|
]),
|
|
91377
|
-
Q("div",
|
|
91395
|
+
Q("div", iJe, [Q("div", aJe, "🔧 " + J(y.value.debugToolsLabel) + " (" + J(I.value.tools.length) + ")", 1), (X(!0), Z(KY, null, nY(I.value.tools, (e) => (X(), Z("div", {
|
|
91378
91396
|
key: e.name,
|
|
91379
91397
|
class: "info-item"
|
|
91380
|
-
}, [Q("div",
|
|
91398
|
+
}, [Q("div", oJe, [cX(J(e.name), 1), e.source ? (X(), Z("span", {
|
|
91381
91399
|
key: 0,
|
|
91382
91400
|
class: TK(["src-tag", _e(e.source)])
|
|
91383
|
-
}, J(e.source), 3)) : $("", !0)]), Q("div",
|
|
91384
|
-
I.value.skills.length ? (X(), Z("div",
|
|
91401
|
+
}, J(e.source), 3)) : $("", !0)]), Q("div", sJe, J(e.description), 1)]))), 128))]),
|
|
91402
|
+
I.value.skills.length ? (X(), Z("div", cJe, [Q("div", lJe, [cX("📘 " + J(y.value.debugSkillsTitle) + " (" + J(I.value.skills.length) + ")", 1), Q("span", uJe, J(y.value.debugSkillsHint), 1)]), (X(!0), Z(KY, null, nY(I.value.skills, (e) => (X(), Z("div", {
|
|
91385
91403
|
key: e.name,
|
|
91386
91404
|
class: "info-item"
|
|
91387
91405
|
}, [
|
|
91388
91406
|
Q("div", {
|
|
91389
91407
|
class: "info-name skill-toggle",
|
|
91390
91408
|
onClick: (t) => fe(e.name)
|
|
91391
|
-
}, [Q("span", { class: TK(["skill-arrow", { open: !!de.value[e.name] }]) }, "▶", 2), cX(" " + J(e.name), 1)], 8,
|
|
91392
|
-
Q("div",
|
|
91393
|
-
de.value[e.name] ? (X(), Z("div",
|
|
91409
|
+
}, [Q("span", { class: TK(["skill-arrow", { open: !!de.value[e.name] }]) }, "▶", 2), cX(" " + J(e.name), 1)], 8, dJe),
|
|
91410
|
+
Q("div", fJe, J(e.description), 1),
|
|
91411
|
+
de.value[e.name] ? (X(), Z("div", pJe, [de.value[e.name].loading ? (X(), Z("div", mJe, J(y.value.debugLoading), 1)) : de.value[e.name].error ? (X(), Z("div", hJe, J(de.value[e.name].error), 1)) : de.value[e.name].content ? (X(), Z("pre", gJe, J(de.value[e.name].content), 1)) : $("", !0)])) : $("", !0)
|
|
91394
91412
|
]))), 128))])) : $("", !0),
|
|
91395
|
-
I.value.data ? (X(), Z("div",
|
|
91396
|
-
Q("div",
|
|
91397
|
-
Q("div",
|
|
91398
|
-
Q("div",
|
|
91399
|
-
Q("div",
|
|
91400
|
-
Q("div",
|
|
91413
|
+
I.value.data ? (X(), Z("div", _Je, [Q("div", vJe, "📊 " + J(y.value.debugDataTitle), 1), Q("div", yJe, [Q("div", bJe, J(I.value.data.description || y.value.debugDataFallback), 1), Q("div", xJe, J(y.value.debugSchemaPrefix) + J(I.value.data.schema ? y.value.debugSchemaDeclared : y.value.debugSchemaMissing), 1)])])) : $("", !0),
|
|
91414
|
+
Q("div", SJe, [Q("div", CJe, "🧬 " + J(y.value.debugSubagentTitle), 1), Q("div", wJe, [
|
|
91415
|
+
Q("div", TJe, [Q("span", EJe, J(y.value.debugEnabled), 1), Q("span", DJe, J(I.value.subagent.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
|
|
91416
|
+
Q("div", OJe, [Q("span", kJe, J(y.value.debugMaxDepth), 1), Q("span", AJe, J(I.value.subagent.maxDepth), 1)]),
|
|
91417
|
+
Q("div", jJe, [Q("span", MJe, J(y.value.debugMaxParallel), 1), Q("span", NJe, J(I.value.subagent.maxParallel), 1)]),
|
|
91418
|
+
Q("div", PJe, [Q("span", FJe, J(y.value.debugExtraTools), 1), Q("span", IJe, J(I.value.subagent.allowedTools.length ? I.value.subagent.allowedTools.join(", ") : y.value.debugDefaultReadonly), 1)])
|
|
91401
91419
|
])]),
|
|
91402
|
-
!((t = I.value.mcp) == null || (t = t.servers) == null) && t.length ? (X(), Z("div",
|
|
91420
|
+
!((t = I.value.mcp) == null || (t = t.servers) == null) && t.length ? (X(), Z("div", LJe, [Q("div", RJe, "🔌 MCP (" + J(I.value.mcp.servers.length) + ")", 1), (X(!0), Z(KY, null, nY(I.value.mcp.servers, (e) => (X(), Z("div", {
|
|
91403
91421
|
key: e.name,
|
|
91404
91422
|
class: "info-item"
|
|
91405
|
-
}, [Q("div",
|
|
91406
|
-
I.value.verify ? (X(), Z("div",
|
|
91407
|
-
Q("div",
|
|
91408
|
-
Q("div",
|
|
91409
|
-
Q("div",
|
|
91410
|
-
I.value.verify.adversarial ? (X(), Z("div",
|
|
91423
|
+
}, [Q("div", zJe, [cX(J(e.name) + " ", 1), Q("span", BJe, J(e.toolCount) + J(y.value.debugToolCountSuffix), 1)]), Q("div", VJe, J(e.url), 1)]))), 128))])) : $("", !0),
|
|
91424
|
+
I.value.verify ? (X(), Z("div", HJe, [Q("div", UJe, "✅ " + J(y.value.debugVerifyTitle), 1), Q("div", WJe, [
|
|
91425
|
+
Q("div", GJe, [Q("span", KJe, J(y.value.debugEnabled), 1), Q("span", qJe, J(I.value.verify.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
|
|
91426
|
+
Q("div", JJe, [Q("span", YJe, J(y.value.debugMaxAttempts), 1), Q("span", XJe, J(I.value.verify.maxAttempts), 1)]),
|
|
91427
|
+
Q("div", ZJe, [Q("span", QJe, J(y.value.debugAdversarial), 1), Q("span", $Je, J(I.value.verify.adversarial ? y.value.debugOn : y.value.debugOff), 1)]),
|
|
91428
|
+
I.value.verify.adversarial ? (X(), Z("div", eYe, [Q("span", tYe, J(y.value.debugAdversarialModel), 1), Q("span", nYe, J(I.value.model || "-") + J(y.value.debugSameAsMain), 1)])) : $("", !0)
|
|
91411
91429
|
])])) : $("", !0),
|
|
91412
|
-
I.value.todos.length ? (X(), Z("div",
|
|
91430
|
+
I.value.todos.length ? (X(), Z("div", rYe, [Q("div", iYe, "📋 " + J(y.value.debugTodosTitle) + " (" + J(I.value.todos.length) + ")", 1), (X(!0), Z(KY, null, nY(I.value.todos, (e, t) => (X(), Z("div", {
|
|
91413
91431
|
key: t,
|
|
91414
91432
|
class: "info-todo"
|
|
91415
91433
|
}, [Q("span", {
|
|
91416
91434
|
class: "todo-tag",
|
|
91417
91435
|
style: wK({ background: he.value[e.status] && he.value[e.status].color || "#9ca3af" })
|
|
91418
91436
|
}, J(ge(e.status)), 5), Q("span", null, J(e.content), 1)]))), 128))])) : $("", !0),
|
|
91419
|
-
I.value.memory ? (X(), Z("div",
|
|
91420
|
-
I.value.lastCompression ? (X(), Z("div",
|
|
91421
|
-
Q("div",
|
|
91422
|
-
Q("div",
|
|
91423
|
-
Q("div",
|
|
91424
|
-
Q("div",
|
|
91425
|
-
Q("div",
|
|
91426
|
-
I.value.lastCompression.decision ? (X(), Z("div",
|
|
91437
|
+
I.value.memory ? (X(), Z("div", aYe, [Q("div", oYe, "📝 " + J(y.value.debugMemoryTitle), 1), Q("pre", sYe, J(I.value.memory), 1)])) : $("", !0),
|
|
91438
|
+
I.value.lastCompression ? (X(), Z("div", cYe, [Q("div", lYe, "🗜️ " + J(y.value.debugLastCompTitle), 1), Q("div", uYe, [
|
|
91439
|
+
Q("div", dYe, [Q("span", fYe, J(y.value.debugTriggered), 1), Q("span", pYe, J(I.value.lastCompression.triggered ? "✓" : y.value.debugNotTriggered), 1)]),
|
|
91440
|
+
Q("div", mYe, [Q("span", hYe, J(y.value.debugRoundsSummarized), 1), Q("span", gYe, J(I.value.lastCompression.roundsSummarized) + " / " + J(I.value.lastCompression.roundsTotal), 1)]),
|
|
91441
|
+
Q("div", _Ye, [Q("span", vYe, J(y.value.debugCtxRecalled), 1), Q("span", yYe, J(I.value.lastCompression.roundsRecalled) + J(y.value.debugCountSuffix), 1)]),
|
|
91442
|
+
Q("div", bYe, [Q("span", xYe, J(y.value.debugMessageCount), 1), Q("span", SYe, J(I.value.lastCompression.originalMessages) + " → " + J(I.value.lastCompression.compressedMessages), 1)]),
|
|
91443
|
+
Q("div", CYe, [Q("span", wYe, J(y.value.debugStrategy), 1), Q("span", TYe, J(I.value.lastCompression.strategy), 1)]),
|
|
91444
|
+
I.value.lastCompression.decision ? (X(), Z("div", EYe, [Q("span", DYe, J(y.value.debugDecision), 1), Q("span", OYe, "🤖 " + J(Oe(I.value.lastCompression.decision)), 1)])) : $("", !0)
|
|
91427
91445
|
])])) : $("", !0)
|
|
91428
|
-
], 64)) : (X(), Z("div",
|
|
91446
|
+
], 64)) : (X(), Z("div", Bqe, J(y.value.debugNoInfo), 1))])) : $("", !0)
|
|
91429
91447
|
], 512)], 512)], 512)
|
|
91430
91448
|
], 2), Q("div", {
|
|
91431
91449
|
class: "drawer-mask",
|
|
@@ -91435,7 +91453,7 @@ var bGe = {
|
|
|
91435
91453
|
_: 1
|
|
91436
91454
|
})]));
|
|
91437
91455
|
}
|
|
91438
|
-
}), [["__scopeId", "data-v-6d9e98b4"]]),
|
|
91456
|
+
}), [["__scopeId", "data-v-6d9e98b4"]]), AYe = ["title"], jYe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
91439
91457
|
__name: "SelectionMenu",
|
|
91440
91458
|
emits: ["quote"],
|
|
91441
91459
|
setup(e, { emit: t }) {
|
|
@@ -91523,18 +91541,18 @@ var bGe = {
|
|
|
91523
91541
|
title: Y(r).selectionMenuTitle,
|
|
91524
91542
|
onMousedown: t[0] || (t[0] = mZ(() => {}, ["prevent"])),
|
|
91525
91543
|
onClick: _
|
|
91526
|
-
}, "❝ " + J(Y(r).selectionMenuLabel), 41,
|
|
91544
|
+
}, "❝ " + J(Y(r).selectionMenuLabel), 41, AYe)], 4), [[XX, i.value]])]));
|
|
91527
91545
|
}
|
|
91528
|
-
}), [["__scopeId", "data-v-19e6dbb4"]]),
|
|
91546
|
+
}), [["__scopeId", "data-v-19e6dbb4"]]), MYe = { class: "skill-panel" }, NYe = { class: "skill-header" }, PYe = { class: "skill-title" }, FYe = ["title"], IYe = { class: "skill-section" }, LYe = { class: "section-title" }, RYe = ["title"], zYe = { class: "field" }, BYe = { class: "field-label" }, VYe = ["disabled", "placeholder"], HYe = { class: "field" }, UYe = { class: "field-label" }, WYe = ["placeholder"], GYe = { class: "field field-textarea" }, KYe = { class: "field-label" }, qYe = ["placeholder"], JYe = {
|
|
91529
91547
|
key: 0,
|
|
91530
91548
|
class: "skill-error"
|
|
91531
|
-
},
|
|
91549
|
+
}, YYe = { class: "skill-section" }, XYe = { class: "section-title" }, ZYe = {
|
|
91532
91550
|
key: 0,
|
|
91533
91551
|
class: "empty-hint"
|
|
91534
|
-
},
|
|
91552
|
+
}, QYe = {
|
|
91535
91553
|
key: 1,
|
|
91536
91554
|
class: "skill-list"
|
|
91537
|
-
},
|
|
91555
|
+
}, $Ye = { class: "skill-actions" }, eXe = ["title", "onClick"], tXe = ["title", "onClick"], nXe = { class: "skill-hint" }, rXe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
91538
91556
|
__name: "SkillPanel",
|
|
91539
91557
|
props: {
|
|
91540
91558
|
visible: { type: Boolean },
|
|
@@ -91590,55 +91608,55 @@ var bGe = {
|
|
|
91590
91608
|
key: 0,
|
|
91591
91609
|
class: "skill-mask",
|
|
91592
91610
|
onClick: n[4] || (n[4] = mZ((e) => r("close"), ["self"]))
|
|
91593
|
-
}, [Q("div",
|
|
91594
|
-
Q("div",
|
|
91611
|
+
}, [Q("div", MYe, [
|
|
91612
|
+
Q("div", NYe, [Q("span", PYe, J(e.messages.skillPanelTitle), 1), Q("button", {
|
|
91595
91613
|
class: "skill-close",
|
|
91596
91614
|
title: e.messages.close,
|
|
91597
91615
|
onClick: n[0] || (n[0] = (e) => r("close"))
|
|
91598
|
-
}, "✕", 8,
|
|
91599
|
-
Q("div",
|
|
91600
|
-
Q("div",
|
|
91616
|
+
}, "✕", 8, FYe)]),
|
|
91617
|
+
Q("div", IYe, [
|
|
91618
|
+
Q("div", LYe, [cX(J(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (X(), Z("button", {
|
|
91601
91619
|
key: 0,
|
|
91602
91620
|
class: "btn btn-ghost btn-cancel",
|
|
91603
91621
|
title: e.messages.skillCancelEdit,
|
|
91604
91622
|
onClick: h
|
|
91605
|
-
}, J(e.messages.skillCancelEdit), 9,
|
|
91606
|
-
Q("label",
|
|
91623
|
+
}, J(e.messages.skillCancelEdit), 9, RYe)) : $("", !0)]),
|
|
91624
|
+
Q("label", zYe, [Q("span", BYe, J(e.messages.skillNameLabel), 1), fJ(Q("input", {
|
|
91607
91625
|
"onUpdate:modelValue": n[1] || (n[1] = (e) => i.value = e),
|
|
91608
91626
|
disabled: !!u.value,
|
|
91609
91627
|
placeholder: e.messages.skillNamePlaceholder,
|
|
91610
91628
|
class: "field-input"
|
|
91611
|
-
}, null, 8,
|
|
91612
|
-
Q("label",
|
|
91629
|
+
}, null, 8, VYe), [[pZ, i.value]])]),
|
|
91630
|
+
Q("label", HYe, [Q("span", UYe, J(e.messages.skillDescLabel), 1), fJ(Q("input", {
|
|
91613
91631
|
"onUpdate:modelValue": n[2] || (n[2] = (e) => a.value = e),
|
|
91614
91632
|
placeholder: e.messages.skillDescPlaceholder,
|
|
91615
91633
|
class: "field-input"
|
|
91616
|
-
}, null, 8,
|
|
91617
|
-
Q("label",
|
|
91634
|
+
}, null, 8, WYe), [[pZ, a.value]])]),
|
|
91635
|
+
Q("label", GYe, [Q("span", KYe, J(e.messages.skillContentLabel), 1), fJ(Q("textarea", {
|
|
91618
91636
|
"onUpdate:modelValue": n[3] || (n[3] = (e) => o.value = e),
|
|
91619
91637
|
placeholder: e.messages.skillContentPlaceholder,
|
|
91620
91638
|
rows: "6",
|
|
91621
91639
|
class: "field-input"
|
|
91622
|
-
}, null, 8,
|
|
91623
|
-
s.value ? (X(), Z("div",
|
|
91640
|
+
}, null, 8, qYe), [[pZ, o.value]])]),
|
|
91641
|
+
s.value ? (X(), Z("div", JYe, J(s.value), 1)) : $("", !0),
|
|
91624
91642
|
Q("button", {
|
|
91625
91643
|
class: "btn btn-primary",
|
|
91626
91644
|
onClick: f
|
|
91627
91645
|
}, J(u.value ? e.messages.skillSave : e.messages.skillAdd), 1)
|
|
91628
91646
|
]),
|
|
91629
|
-
Q("div",
|
|
91647
|
+
Q("div", YYe, [Q("div", XYe, J(e.messages.skillCreatedTitle) + "(" + J(c.value.length) + ")", 1), c.value.length ? (X(), Z("ul", QYe, [(X(!0), Z(KY, null, nY(c.value, (t) => (X(), Z("li", {
|
|
91630
91648
|
key: t,
|
|
91631
91649
|
class: "skill-item"
|
|
91632
|
-
}, [Q("span", { class: TK(["skill-name", { active: u.value === t }]) }, J(t), 3), Q("span",
|
|
91650
|
+
}, [Q("span", { class: TK(["skill-name", { active: u.value === t }]) }, J(t), 3), Q("span", $Ye, [Q("button", {
|
|
91633
91651
|
class: "btn btn-ghost btn-edit",
|
|
91634
91652
|
title: e.messages.skillEditTitle,
|
|
91635
91653
|
onClick: (e) => m(t)
|
|
91636
|
-
}, J(e.messages.skillEditBtn), 9,
|
|
91654
|
+
}, J(e.messages.skillEditBtn), 9, eXe), Q("button", {
|
|
91637
91655
|
class: "btn btn-ghost btn-del",
|
|
91638
91656
|
title: e.messages.skillDeleteTitle,
|
|
91639
91657
|
onClick: (e) => p(t)
|
|
91640
|
-
}, J(e.messages.skillDeleteBtn), 9,
|
|
91641
|
-
Q("div",
|
|
91658
|
+
}, J(e.messages.skillDeleteBtn), 9, tXe)])]))), 128))])) : (X(), Z("div", ZYe, J(e.messages.skillEmpty), 1))]),
|
|
91659
|
+
Q("div", nXe, [
|
|
91642
91660
|
cX(" 💡 " + J(e.messages.skillHintA) + " ", 1),
|
|
91643
91661
|
n[5] || (n[5] = Q("code", null, "load_skill(name)", -1)),
|
|
91644
91662
|
cX(" " + J(e.messages.skillHintB) + " ", 1),
|
|
@@ -91653,7 +91671,7 @@ var bGe = {
|
|
|
91653
91671
|
//#endregion
|
|
91654
91672
|
//#region src/core/components/ChatDialog.vue?vue&type=script&setup=true&lang.ts
|
|
91655
91673
|
M();
|
|
91656
|
-
var
|
|
91674
|
+
var iXe = ["aria-valuenow"], aXe = "page-agent-sdk:drawerWidth", $9 = 320, oXe = 960, sXe = 420, cXe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
91657
91675
|
__name: "ChatDialog",
|
|
91658
91676
|
props: {
|
|
91659
91677
|
fetchResponse: {},
|
|
@@ -91778,7 +91796,7 @@ var rXe = ["aria-valuenow"], iXe = "page-agent-sdk:drawerWidth", $9 = 320, aXe =
|
|
|
91778
91796
|
function b() {
|
|
91779
91797
|
if (typeof localStorage > "u") return null;
|
|
91780
91798
|
try {
|
|
91781
|
-
let e = Number(localStorage.getItem(
|
|
91799
|
+
let e = Number(localStorage.getItem(aXe));
|
|
91782
91800
|
return Number.isFinite(e) && e >= $9 ? e : null;
|
|
91783
91801
|
} catch (e) {
|
|
91784
91802
|
return null;
|
|
@@ -91786,7 +91804,7 @@ var rXe = ["aria-valuenow"], iXe = "page-agent-sdk:drawerWidth", $9 = 320, aXe =
|
|
|
91786
91804
|
}
|
|
91787
91805
|
let x = /* @__PURE__ */ Iq(b()), S = /* @__PURE__ */ Iq(!1);
|
|
91788
91806
|
function C(e) {
|
|
91789
|
-
let t = typeof window < "u" ? window.innerWidth :
|
|
91807
|
+
let t = typeof window < "u" ? window.innerWidth : oXe, n = Math.max(Math.min(oXe, t * .9), $9);
|
|
91790
91808
|
return Math.min(Math.max(e, $9), n);
|
|
91791
91809
|
}
|
|
91792
91810
|
let w = EX(() => x.value == null ? typeof i.drawerWidth == "number" ? i.drawerWidth : null : x.value), T = EX(() => {
|
|
@@ -91815,13 +91833,13 @@ var rXe = ["aria-valuenow"], iXe = "page-agent-sdk:drawerWidth", $9 = 320, aXe =
|
|
|
91815
91833
|
}
|
|
91816
91834
|
function ee() {
|
|
91817
91835
|
if (!(x.value == null || typeof localStorage > "u")) try {
|
|
91818
|
-
localStorage.setItem(
|
|
91836
|
+
localStorage.setItem(aXe, String(x.value));
|
|
91819
91837
|
} catch (e) {}
|
|
91820
91838
|
}
|
|
91821
91839
|
function te(e) {
|
|
91822
91840
|
var t;
|
|
91823
91841
|
if (!D.value) return;
|
|
91824
|
-
let n = e.shiftKey ? 64 : 16, r = (t = w.value) == null ? typeof window < "u" ? Math.min(
|
|
91842
|
+
let n = e.shiftKey ? 64 : 16, r = (t = w.value) == null ? typeof window < "u" ? Math.min(sXe, window.innerWidth * .9) : sXe : t;
|
|
91825
91843
|
if (e.key === "ArrowLeft") x.value = C(r + n);
|
|
91826
91844
|
else if (e.key === "ArrowRight") x.value = C(r - n);
|
|
91827
91845
|
else return;
|
|
@@ -91856,7 +91874,7 @@ var rXe = ["aria-valuenow"], iXe = "page-agent-sdk:drawerWidth", $9 = 320, aXe =
|
|
|
91856
91874
|
onPointerup: M,
|
|
91857
91875
|
onPointercancel: M,
|
|
91858
91876
|
onKeydown: te
|
|
91859
|
-
}, null, 40,
|
|
91877
|
+
}, null, 40, iXe)) : $("", !0),
|
|
91860
91878
|
v("header") ? rY(t.$slots, "header", {
|
|
91861
91879
|
key: 1,
|
|
91862
91880
|
chat: Y(o)
|
|
@@ -91940,11 +91958,11 @@ var rXe = ["aria-valuenow"], iXe = "page-agent-sdk:drawerWidth", $9 = 320, aXe =
|
|
|
91940
91958
|
v("approval") ? rY(t.$slots, "approval", {
|
|
91941
91959
|
key: 2,
|
|
91942
91960
|
chat: Y(o)
|
|
91943
|
-
}, () => [oX(
|
|
91961
|
+
}, () => [oX(DWe)], !0) : $("", !0),
|
|
91944
91962
|
v("conflict") ? rY(t.$slots, "conflict", {
|
|
91945
91963
|
key: 3,
|
|
91946
91964
|
chat: Y(o)
|
|
91947
|
-
}, () => [oX(
|
|
91965
|
+
}, () => [oX(WWe, {
|
|
91948
91966
|
"pending-conflict": e.pendingConflict,
|
|
91949
91967
|
"on-resolve": e.onResolveConflict,
|
|
91950
91968
|
icons: Y(o).icons,
|
|
@@ -91960,7 +91978,7 @@ var rXe = ["aria-valuenow"], iXe = "page-agent-sdk:drawerWidth", $9 = 320, aXe =
|
|
|
91960
91978
|
key: 3,
|
|
91961
91979
|
name: "cs-slide"
|
|
91962
91980
|
}, {
|
|
91963
|
-
default: dJ(() => [rY(t.$slots, "footer", { chat: Y(o) }, () => [oX(
|
|
91981
|
+
default: dJ(() => [rY(t.$slots, "footer", { chat: Y(o) }, () => [oX(bGe, {
|
|
91964
91982
|
placeholder: e.placeholder || Y(o).messages.inputPlaceholder,
|
|
91965
91983
|
"input-rows": e.inputRows,
|
|
91966
91984
|
"gate-pending": m.value,
|
|
@@ -91980,7 +91998,7 @@ var rXe = ["aria-valuenow"], iXe = "page-agent-sdk:drawerWidth", $9 = 320, aXe =
|
|
|
91980
91998
|
v("debug") ? rY(t.$slots, "debug", {
|
|
91981
91999
|
key: 4,
|
|
91982
92000
|
chat: Y(o)
|
|
91983
|
-
}, () => [oX(
|
|
92001
|
+
}, () => [oX(kYe, {
|
|
91984
92002
|
visible: Y(c),
|
|
91985
92003
|
"onUpdate:visible": n[4] || (n[4] = (e) => /* @__PURE__ */ Fq(c) ? c.value = e : null),
|
|
91986
92004
|
logs: e.debugLogs,
|
|
@@ -92009,7 +92027,7 @@ var rXe = ["aria-valuenow"], iXe = "page-agent-sdk:drawerWidth", $9 = 320, aXe =
|
|
|
92009
92027
|
v("skill") ? rY(t.$slots, "skill", {
|
|
92010
92028
|
key: 5,
|
|
92011
92029
|
chat: Y(o)
|
|
92012
|
-
}, () => [oX(
|
|
92030
|
+
}, () => [oX(rXe, {
|
|
92013
92031
|
visible: Y(l),
|
|
92014
92032
|
"on-add-skill": e.onAddSkill,
|
|
92015
92033
|
"on-remove-skill": e.onRemoveSkill,
|
|
@@ -92026,7 +92044,7 @@ var rXe = ["aria-valuenow"], iXe = "page-agent-sdk:drawerWidth", $9 = 320, aXe =
|
|
|
92026
92044
|
"messages",
|
|
92027
92045
|
"onClose"
|
|
92028
92046
|
])], !0) : $("", !0),
|
|
92029
|
-
e.selectionMenu ? (X(), tX(
|
|
92047
|
+
e.selectionMenu ? (X(), tX(jYe, {
|
|
92030
92048
|
key: 6,
|
|
92031
92049
|
onQuote: n[6] || (n[6] = (t) => {
|
|
92032
92050
|
var n;
|
|
@@ -92040,7 +92058,7 @@ var rXe = ["aria-valuenow"], iXe = "page-agent-sdk:drawerWidth", $9 = 320, aXe =
|
|
|
92040
92058
|
//#endregion
|
|
92041
92059
|
//#region src/core/sdk/mountChatDialog.ts
|
|
92042
92060
|
M();
|
|
92043
|
-
function
|
|
92061
|
+
function lXe(e) {
|
|
92044
92062
|
let { core: t, dialogCfg: n } = e, r = null, i = e.el, a = () => {
|
|
92045
92063
|
var e, t;
|
|
92046
92064
|
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");
|
|
@@ -92049,7 +92067,7 @@ function cXe(e) {
|
|
|
92049
92067
|
return r = YSe(/* @__PURE__ */ HJ({ setup() {
|
|
92050
92068
|
return () => {
|
|
92051
92069
|
var r;
|
|
92052
|
-
return DX(
|
|
92070
|
+
return DX(cXe, j({
|
|
92053
92071
|
fetchStream: e.streaming ? t.stream : void 0,
|
|
92054
92072
|
fetchResponse: e.streaming ? void 0 : (e, n) => t.stream(e, () => {}, n),
|
|
92055
92073
|
title: n.title,
|
|
@@ -92206,7 +92224,7 @@ function cXe(e) {
|
|
|
92206
92224
|
};
|
|
92207
92225
|
}
|
|
92208
92226
|
QP(), Uf(), M();
|
|
92209
|
-
function
|
|
92227
|
+
function uXe(e, t, n, r, i) {
|
|
92210
92228
|
let a = [];
|
|
92211
92229
|
e && a.push("vfs_grep + vfs_read(搜预注入文档)"), t && a.push(`${r}(语义检索)`), n && a.push(`${i}(按 source 加载)`), a.push("fetch_document(公网 URL)");
|
|
92212
92230
|
let o = [];
|
|
@@ -92221,7 +92239,7 @@ function lXe(e, t, n, r, i) {
|
|
|
92221
92239
|
|
|
92222
92240
|
你是只读检索角色,不要尝试修改任何数据。不要尝试上面未列出的工具。`;
|
|
92223
92241
|
}
|
|
92224
|
-
function
|
|
92242
|
+
function dXe(e, t, n, r, i) {
|
|
92225
92243
|
let a = [], o = [];
|
|
92226
92244
|
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)
|
|
92227
92245
|
|
|
@@ -92238,12 +92256,12 @@ ${a.join("\n")}
|
|
|
92238
92256
|
## 何时用何源
|
|
92239
92257
|
${o.join("\n")}`;
|
|
92240
92258
|
}
|
|
92241
|
-
var
|
|
92259
|
+
var fXe = {
|
|
92242
92260
|
name: "rag-search",
|
|
92243
92261
|
description: "多源知识检索策略:vfs 预注入文档 → 语义检索 → 指定文档加载 → 公网;综合结构化结论 + 溯源",
|
|
92244
|
-
getContent: () =>
|
|
92262
|
+
getContent: () => dXe(!0, !0, !0, "search_docs", "load_doc")
|
|
92245
92263
|
};
|
|
92246
|
-
function
|
|
92264
|
+
function pXe(e, t, n) {
|
|
92247
92265
|
let r = qP(async ({ query: e, topK: r }) => {
|
|
92248
92266
|
try {
|
|
92249
92267
|
let i = await t(e, { topK: r == null ? n : r });
|
|
@@ -92261,7 +92279,7 @@ function fXe(e, t, n) {
|
|
|
92261
92279
|
});
|
|
92262
92280
|
return NZ([r]), r;
|
|
92263
92281
|
}
|
|
92264
|
-
function
|
|
92282
|
+
function mXe(e, t) {
|
|
92265
92283
|
let n = qP(async ({ source: e }) => {
|
|
92266
92284
|
try {
|
|
92267
92285
|
let n = await t(e), r = Array.isArray(n) ? n : [n];
|
|
@@ -92276,19 +92294,19 @@ function pXe(e, t) {
|
|
|
92276
92294
|
});
|
|
92277
92295
|
return NZ([n]), n;
|
|
92278
92296
|
}
|
|
92279
|
-
function
|
|
92297
|
+
function hXe(e) {
|
|
92280
92298
|
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;
|
|
92281
92299
|
if (!t && !n && r === !1) throw Error("[page-agent-sdk][createRagSubagent] 至少配一种知识源:retriever / loader / useVfs(true)");
|
|
92282
92300
|
let p = [];
|
|
92283
|
-
t && p.push(
|
|
92301
|
+
t && p.push(pXe(s, t, o)), n && p.push(mXe(c, n)), f && p.push(...f);
|
|
92284
92302
|
let m = r ? [
|
|
92285
92303
|
"vfs_grep",
|
|
92286
92304
|
"vfs_read",
|
|
92287
92305
|
"vfs_json_read"
|
|
92288
|
-
] : void 0, h =
|
|
92306
|
+
] : void 0, h = uXe(r, !!t, !!n, s, c), g = {
|
|
92289
92307
|
name: "rag-search",
|
|
92290
|
-
description:
|
|
92291
|
-
getContent: () =>
|
|
92308
|
+
description: fXe.description,
|
|
92309
|
+
getContent: () => dXe(r, !!t, !!n, s, c)
|
|
92292
92310
|
};
|
|
92293
92311
|
return j({
|
|
92294
92312
|
id: i,
|
|
@@ -92301,12 +92319,12 @@ function mXe(e) {
|
|
|
92301
92319
|
}, u === void 0 ? {} : { summarization: u });
|
|
92302
92320
|
}
|
|
92303
92321
|
P(), M();
|
|
92304
|
-
var
|
|
92322
|
+
var gXe = [
|
|
92305
92323
|
"timeoutMs",
|
|
92306
92324
|
"sampleMs",
|
|
92307
92325
|
"onSample"
|
|
92308
92326
|
];
|
|
92309
|
-
function
|
|
92327
|
+
function _Xe(e = {}) {
|
|
92310
92328
|
var t, n, r;
|
|
92311
92329
|
let i = (t = e.quietMs) == null ? 9e4 : t, a = (n = e.confirmSamples) == null ? 3 : n, o = (r = e.baselineMessageCount) == null ? 0 : r, s = 0;
|
|
92312
92330
|
return {
|
|
@@ -92318,14 +92336,14 @@ function gXe(e = {}) {
|
|
|
92318
92336
|
}
|
|
92319
92337
|
};
|
|
92320
92338
|
}
|
|
92321
|
-
var
|
|
92322
|
-
function
|
|
92339
|
+
var vXe = /* @__PURE__ */ new Set(["elapsedSec"]);
|
|
92340
|
+
function yXe(e, t, n = {}) {
|
|
92323
92341
|
var r, i, a;
|
|
92324
92342
|
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)]);
|
|
92325
92343
|
for (let n of p) {
|
|
92326
92344
|
var m, h;
|
|
92327
92345
|
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 = "";
|
|
92328
|
-
|
|
92346
|
+
vXe.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({
|
|
92329
92347
|
key: n,
|
|
92330
92348
|
prev: i,
|
|
92331
92349
|
cur: r,
|
|
@@ -92340,7 +92358,7 @@ function vXe(e, t, n = {}) {
|
|
|
92340
92358
|
fields: l
|
|
92341
92359
|
};
|
|
92342
92360
|
}
|
|
92343
|
-
function
|
|
92361
|
+
function bXe(e) {
|
|
92344
92362
|
let { sdk: t } = e, n = () => {
|
|
92345
92363
|
var e, n, r, i, a;
|
|
92346
92364
|
let o = (e = t.debugLogs.value) == null ? [] : e, s = o.length ? o[o.length - 1].timestamp : 0;
|
|
@@ -92354,7 +92372,7 @@ function yXe(e) {
|
|
|
92354
92372
|
};
|
|
92355
92373
|
return {
|
|
92356
92374
|
async waitForIdle(e = {}) {
|
|
92357
|
-
let { timeoutMs: r = 6e5, sampleMs: i = 2500, onSample: a } = e, o =
|
|
92375
|
+
let { timeoutMs: r = 6e5, sampleMs: i = 2500, onSample: a } = e, o = _Xe(N(e, gXe)), s = Date.now();
|
|
92358
92376
|
for (;;) {
|
|
92359
92377
|
let e = n(), h = o.push(e);
|
|
92360
92378
|
if (a == null || a(e), h === "done") return e;
|
|
@@ -92387,20 +92405,20 @@ function yXe(e) {
|
|
|
92387
92405
|
}
|
|
92388
92406
|
//#endregion
|
|
92389
92407
|
//#region src/core/components/CodePreview.vue?vue&type=script&setup=true&lang.ts
|
|
92390
|
-
var
|
|
92408
|
+
var xXe = { class: "code-preview-modal" }, SXe = { class: "preview-header" }, CXe = { class: "preview-title" }, wXe = { class: "preview-tabs" }, TXe = ["disabled"], EXe = { class: "preview-actions" }, DXe = ["title"], OXe = {
|
|
92391
92409
|
key: 0,
|
|
92392
92410
|
viewBox: "0 0 16 16",
|
|
92393
92411
|
fill: "none",
|
|
92394
92412
|
"aria-hidden": "true"
|
|
92395
|
-
},
|
|
92413
|
+
}, kXe = {
|
|
92396
92414
|
key: 1,
|
|
92397
92415
|
viewBox: "0 0 16 16",
|
|
92398
92416
|
fill: "none",
|
|
92399
92417
|
"aria-hidden": "true"
|
|
92400
|
-
},
|
|
92418
|
+
}, AXe = ["title"], jXe = ["title"], MXe = { class: "preview-body" }, NXe = ["srcdoc"], PXe = {
|
|
92401
92419
|
key: 1,
|
|
92402
92420
|
class: "preview-source"
|
|
92403
|
-
},
|
|
92421
|
+
}, FXe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
|
|
92404
92422
|
__name: "CodePreview",
|
|
92405
92423
|
props: {
|
|
92406
92424
|
code: {},
|
|
@@ -92467,28 +92485,28 @@ app.mount('#app');
|
|
|
92467
92485
|
return (t, n) => (X(), Z("div", {
|
|
92468
92486
|
class: "code-preview-overlay",
|
|
92469
92487
|
onClick: n[3] || (n[3] = mZ((e) => r("close"), ["self"]))
|
|
92470
|
-
}, [Q("div",
|
|
92471
|
-
Q("span",
|
|
92472
|
-
Q("div",
|
|
92488
|
+
}, [Q("div", xXe, [Q("div", SXe, [
|
|
92489
|
+
Q("span", CXe, J(e.messages.codePreviewTitlePrefix) + J(e.lang), 1),
|
|
92490
|
+
Q("div", wXe, [Q("button", {
|
|
92473
92491
|
class: TK({ active: a.value === "preview" }),
|
|
92474
92492
|
disabled: !s.value,
|
|
92475
92493
|
onClick: n[0] || (n[0] = (e) => a.value = "preview")
|
|
92476
|
-
}, J(e.messages.codePreviewTab), 11,
|
|
92494
|
+
}, J(e.messages.codePreviewTab), 11, TXe), Q("button", {
|
|
92477
92495
|
class: TK({ active: a.value === "source" }),
|
|
92478
92496
|
onClick: n[1] || (n[1] = (e) => a.value = "source")
|
|
92479
92497
|
}, J(e.messages.codeSourceTab), 3)]),
|
|
92480
|
-
Q("div",
|
|
92498
|
+
Q("div", EXe, [
|
|
92481
92499
|
Q("button", {
|
|
92482
92500
|
class: TK(["icon-btn", { done: o.value }]),
|
|
92483
92501
|
title: o.value ? e.messages.copied : e.messages.codeCopyTitle,
|
|
92484
92502
|
onClick: u
|
|
92485
|
-
}, [o.value ? (X(), Z("svg",
|
|
92503
|
+
}, [o.value ? (X(), Z("svg", OXe, [...n[4] || (n[4] = [Q("path", {
|
|
92486
92504
|
d: "M3 8.5l3 3 7-7",
|
|
92487
92505
|
stroke: "currentColor",
|
|
92488
92506
|
"stroke-width": "1.6",
|
|
92489
92507
|
"stroke-linecap": "round",
|
|
92490
92508
|
"stroke-linejoin": "round"
|
|
92491
|
-
}, null, -1)])])) : (X(), Z("svg",
|
|
92509
|
+
}, null, -1)])])) : (X(), Z("svg", kXe, [...n[5] || (n[5] = [Q("rect", {
|
|
92492
92510
|
x: "5.5",
|
|
92493
92511
|
y: "5.5",
|
|
92494
92512
|
width: "8",
|
|
@@ -92500,7 +92518,7 @@ app.mount('#app');
|
|
|
92500
92518
|
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",
|
|
92501
92519
|
stroke: "currentColor",
|
|
92502
92520
|
"stroke-width": "1.3"
|
|
92503
|
-
}, null, -1)])]))], 10,
|
|
92521
|
+
}, null, -1)])]))], 10, DXe),
|
|
92504
92522
|
Q("button", {
|
|
92505
92523
|
class: "icon-btn",
|
|
92506
92524
|
title: e.messages.codeOpenTitle,
|
|
@@ -92520,7 +92538,7 @@ app.mount('#app');
|
|
|
92520
92538
|
"stroke-width": "1.3",
|
|
92521
92539
|
"stroke-linecap": "round",
|
|
92522
92540
|
"stroke-linejoin": "round"
|
|
92523
|
-
})], -1)])], 8,
|
|
92541
|
+
})], -1)])], 8, AXe),
|
|
92524
92542
|
Q("button", {
|
|
92525
92543
|
class: "icon-btn",
|
|
92526
92544
|
title: e.messages.close,
|
|
@@ -92534,23 +92552,23 @@ app.mount('#app');
|
|
|
92534
92552
|
stroke: "currentColor",
|
|
92535
92553
|
"stroke-width": "1.4",
|
|
92536
92554
|
"stroke-linecap": "round"
|
|
92537
|
-
})], -1)])], 8,
|
|
92555
|
+
})], -1)])], 8, jXe)
|
|
92538
92556
|
])
|
|
92539
|
-
]), Q("div",
|
|
92557
|
+
]), Q("div", MXe, [a.value === "preview" && s.value ? (X(), Z("iframe", {
|
|
92540
92558
|
key: 0,
|
|
92541
92559
|
ref_key: "iframeRef",
|
|
92542
92560
|
ref: i,
|
|
92543
92561
|
class: "preview-iframe",
|
|
92544
92562
|
sandbox: "allow-scripts allow-modals allow-popups allow-forms",
|
|
92545
92563
|
srcdoc: c.value
|
|
92546
|
-
}, null, 8,
|
|
92564
|
+
}, null, 8, NXe)) : (X(), Z("pre", PXe, [Q("code", null, J(e.code), 1)]))])])]));
|
|
92547
92565
|
}
|
|
92548
92566
|
}), [["__scopeId", "data-v-27eac25e"]]);
|
|
92549
92567
|
//#endregion
|
|
92550
92568
|
//#region src/core/index.ts
|
|
92551
92569
|
Uf();
|
|
92552
|
-
function
|
|
92553
|
-
return aIe(e,
|
|
92570
|
+
function IXe(e) {
|
|
92571
|
+
return aIe(e, lXe);
|
|
92554
92572
|
}
|
|
92555
92573
|
//#endregion
|
|
92556
|
-
export {
|
|
92574
|
+
export { DWe as ApprovalBar, u8 as CAPABILITIES, iNe as CONTEXT_PRESETS, cXe as ChatDialog, aBe as ChatHeader, bGe as ChatInput, FXe as CodePreview, SMe as CompressDecisionSchema, WWe as ConflictBar, pFe as DEFAULT_COMPUTED_STYLES, L7 as DEFAULT_DIALOG_ICONS, i1 as DEFAULT_PROMPT_SOFT_CAP, zAe as DEFAULT_SYSTEM_PROMPT, BAe as DEFAULT_SYSTEM_PROMPT_EN, kYe as DebugDrawer, gBe as FocusBar, KHe as HLJS_BLOCK_MAX_CHARS, Dje as HTML_VOID_TAGS, x1 as HUMAN_CONFIRM_TOOL_NAME, g9 as IconGlyph, SZ as ImageInputError, rF as LOW_CAPS_HINT_BASELINE, xRe as MESSAGES_EN_US, R7 as MESSAGES_ZH_CN, eF as MIN_CONTEXT_WINDOW, WZ as MODEL_UNAVAILABLE_GUIDANCE, rUe as MessageContent, KUe as MessageList, IUe as MessageRow, nWe as QueuedBar, WTe as SOFT_CAP_MIN_WINDOW, Z$ as STOP_WORDS, rXe as SkillPanel, h$ as UNSAFE_KEYS, MFe as actionsToInspectInfo, jFe as actionsToTools, $Se as agentError, F1 as analyzeContext, k$ as applyPatchToClone, TTe as applyPatchToLive, k6 as applyPatchesToBind, YPe as applyProposalOps, XQ as arrayMinLength, xZ as asAgentError, iMe as buildCollectorJs, P8 as buildCssPath, h6 as buildDataPrompt, q6 as buildDiagnosticsReport, X6 as buildHtmlFragmentSkill, aMe as buildSandboxSrcdoc, qAe as buildSystemPrompt, AZ as captureSelectionQuote, z7 as chatContextKey, O6 as commitSetToBind, uMe as composeStructureThenRender, TZ as compressImage, LAe as connectMcp, RG as constructLlmFromConfig, IG as constructOpenLlmSync, I7 as copyText, O8 as countOccurrences, HQ as createAgent, b1 as createApprovalMiddleware, wRe as createChatContext, IXe as createChatSdk, O1 as createCheckpointManager, k1 as createCheckpointMiddleware, PMe as createConflictManager, I1 as createContextInspectorMiddleware, gMe as createCraftNoteCheck, P6 as createDataOps, bXe as createEvalHarness, mMe as createHtmlFormatCheck, lMe as createHtmlRenderCheck, vMe as createHtmlSubagent, C1 as createHumanConfirmMiddleware, S1 as createHumanConfirmTool, _Xe as createIdleDetector, o8 as createMemoryBackend, y1 as createMemoryMiddleware, zge as createProxyLlm, hXe as createRagSubagent, KZ as createSandboxRunner, rNe as createSdkEvents, ZFe as createSerialRunner, l8 as createSessionStore, ZMe as createSessionStoreWithBackend, JFe as createSkillStore, h1 as createSubagentMiddleware, c1 as createSubagentTracker, g1 as createSubagentsMiddleware, VFe as createUsageHintsMiddleware, A1 as createVerifyMiddleware, QAe as createVfs, s8 as createWebStorageBackend, j1 as createWriteBackCheck, GZ as decorateModelUnavailable, x$ as deepClone, FFe as defineDataToolset, kTe as defineSkill, yMe as defineTool, b$ as deleteByPath, CMe as deriveTitle, a$ as describeSchemaNode, NQ as detectGarbledToolCall, yQ as detectTransitionalReply, F$ as diffObjects, yXe as diffReport, I8 as domInfoTool, CFe as domInspectSkill, F8 as domSearchTool, iFe as domToStructure, j8 as domTools, PFe as domToolsStatic, ZQ as elementSchemaCandidates, N8 as ensureDomListenerRecorder, $$ as estimateMessageTokens, UTe as estimateRoundTokens, oF as estimateTokens, BG as extractReasoningDelta, m$ as extractSchemaHint, NAe as extractText, zG as extractTextDelta, VG as extractUsage, A8 as fetchDocTools, NFe as fetchTools, P$ as findStrippedKeys, o$ as formatConstraints, vZ as formatZodIssues, v$ as getByPath, aFe as getDomTool, vFe as getElementInfo, TFe as getEnvSummary, hFe as getRecordedListeners, sMe as getSandboxLifecycle, KQ as getSchemaAtPath, UQ as getSchemaTopKeys, k8 as hashContent, D$ as hashValue, pMe as htmlFragmentSkill, d$ as htmlOrchestratorPrompt, n1 as indexSummarize, OFe as inspectEnvTool, kFe as inspectTools, Q6 as isChatModel, HZ as isContextLengthError, m9 as isIconHtml, UZ as isModelUnavailableError, WQ as isPathAllowed, r8 as isQuotaError, g$ as isUnsafePath, ZZ as jpEval, bZ as jsonParseError, w$ as limitDepth, qPe as lineDiff, iF as lowCapsHint, QHe as markedToHtml, Zje as maskUrlCredentials, S$ as maybeParseValue, qje as measureWriteScale, j$ as moveByPath, FG as normalizeBaseUrl, rMe as normalizeRenderResult, HG as normalizeUsage, cF as offloadPassThroughChars, sF as offloadThresholdChars, mTe as presets, lTe as projectBySchema, n$ as projectBySchemaDeep, C$ as projectFields, r1 as recallRounds, cMe as renderInSandbox, X9 as renderMarkdownHtml, s$ as renderSchemaHint, c$ as renderSchemaOverview, u$ as renderSchemaShallow, d8 as resolveCapabilities, f8 as resolveContextOptions, eNe as resolveDialogConfig, bRe as resolveDialogIcons, CRe as resolveDialogMessages, NMe as resolveLlm, aF as resolveModelCaps, a1 as resolvePromptSoftCap, qQ as resolveSchemaPath, $Me as resolveStorage, N$ as restoreInPlace, M$ as restoreLive, QSe as routeError, eQ as runSandboxedScript, _$ as safeMerge, L8 as safeSerialize, T$ as safeStringify, PQ as sanitizeGarbledContent, wze as sanitizeIconHtml, Dze as sanitizeMessageHtml, YQ as schemaHasRefinement, gFe as searchDom, QZ as searchJson, IFe as selectBuiltinTools, y$ as setByPath, o1 as shouldTriggerCompression, J6 as stringifyDiagnosticsReport, PG as stripStainlessFetch, f$ as systemPromptHelpers, nF as tableMaxOutputTokens, Q$ as tokenize, _Z as toolError, GQ as unwrapSchema, yRe as useChat, B7 as useChatContext, JQ as validateAtPath, F6 as validateHtmlFormat, D6 as validateRootValueLocally, bje as validateWriteLocally, O$ as watchFieldsHash, nre as z, yZ as zodError };
|