page-agent-sdk 4.2.1 → 4.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43065,6 +43065,22 @@ var xge = [
43065
43065
  vision: !0
43066
43066
  }
43067
43067
  },
43068
+ {
43069
+ pattern: /qwen3(\.\d+)?-vl/i,
43070
+ caps: {
43071
+ contextWindow: 262144,
43072
+ maxOutputTokens: 32768,
43073
+ vision: !0
43074
+ }
43075
+ },
43076
+ {
43077
+ pattern: /qwen3(\.\d+)?-(max|plus|flash)/i,
43078
+ caps: {
43079
+ contextWindow: 262144,
43080
+ maxOutputTokens: 32768,
43081
+ thinking: !0
43082
+ }
43083
+ },
43068
43084
  {
43069
43085
  pattern: /qwen-max|qwen-plus/i,
43070
43086
  caps: {
@@ -57473,89 +57489,106 @@ function D$(e, t) {
57473
57489
  }
57474
57490
  function O$(e) {
57475
57491
  var t;
57476
- let n = e.initialFocuses ? [...e.initialFocuses] : [], r = () => {
57492
+ let n = e.initialFocuses ? [...e.initialFocuses] : [], r = null, i = () => {
57493
+ var e;
57494
+ return (e = r) == null ? n : e;
57495
+ }, a = () => {
57477
57496
  var t;
57478
57497
  return (t = e.onChange) == null ? void 0 : t.call(e, [...n]);
57479
- }, i = (t = e.unfocusGuidance) == null ? "tool" : t, a = (e) => `若你的意图是修改聚焦组件本身(如给它新增页签/子项),请改写焦点路径的子路径重试${e ? `(如 ${e})` : ""};`, o = i === "tool" ? `需改其他组件请先 remove_focus / clear_focus 或换焦点。${a()}` : i === "ask-user" ? `焦点由用户在输入框设定与移除(聚焦 chip ✕);用户要求改其他组件时,提示用户移除聚焦后重试,勿尝试写焦点外(会被拒)。${a()}` : `需改其他组件时,在收口回复中说明需先取消焦点(焦点由主会话管理),勿尝试越界写。${a()}`, s = (e) => i === "tool" ? `${a(e)}需操作焦点外组件请先 remove_focus / clear_focus 或换焦点后重试。` : i === "ask-user" ? `${a(e)}焦点由用户在输入框管理,请提示用户移除输入框中的聚焦 chip 后重试(当前模式无 focus 工具)。` : `${a(e)}请只改焦点子树;需改其他组件时,在收口回复中说明需先取消焦点。`;
57498
+ }, o = (e, t) => {
57499
+ n = t(n), r !== null && e === "agent" && (r = t(r)), a();
57500
+ }, s = (t = e.unfocusGuidance) == null ? "tool" : t, c = (e) => `若你的意图是修改聚焦组件本身(如给它新增页签/子项),请改写焦点路径的子路径重试${e ? `(如 ${e})` : ""};`, l = s === "tool" ? `需改其他组件请先 remove_focus / clear_focus 或换焦点。${c()}` : s === "ask-user" ? `焦点由用户在输入框设定与移除(聚焦 chip ✕);用户要求改其他组件时,提示用户移除聚焦后重试,勿尝试写焦点外(会被拒)。${c()}` : `需改其他组件时,在收口回复中说明需先取消焦点(焦点由主会话管理),勿尝试越界写。${c()}`, u = (e) => s === "tool" ? `${c(e)}需操作焦点外组件请先 remove_focus / clear_focus 或换焦点后重试。` : s === "ask-user" ? `${c(e)}焦点由用户在输入框管理,请提示用户移除输入框中的聚焦 chip 后重试(当前模式无 focus 工具)。` : `${c(e)}请只改焦点子树;需改其他组件时,在收口回复中说明需先取消焦点。`;
57480
57501
  return {
57481
57502
  name: "focus",
57482
- beforeAgent: () => n.length ? {
57483
- focuses: [...n],
57484
- focus: n[0]
57485
- } : {},
57503
+ beforeAgent: () => (r = [...n], r.length ? {
57504
+ focuses: [...r],
57505
+ focus: r[0]
57506
+ } : {}),
57507
+ afterAgent: () => {
57508
+ r = null;
57509
+ },
57486
57510
  augmentPrompt: () => {
57487
- if (!n.length) return;
57488
- let t = [
57511
+ let t = i();
57512
+ if (!t.length) return;
57513
+ let n = [
57489
57514
  "## 当前精修目标",
57490
- n.map((e) => `· ${e.path}${e.label ? `(${e.label})` : ""}`).join("\n"),
57491
- `仅操作上述 ${n.length} 个聚焦子树${n.length > 1 ? "之一" : ""},用户未指明目标的指令默认作用于聚焦组件(「增加/修改/删除 X」类指令优先理解为对聚焦组件本身的改动 —— 如为其加页签/子项,写焦点路径的子路径;仅用户明确要求新建独立组件时才需解除焦点);不要改动其他组件;${o}`,
57515
+ t.map((e) => `· ${e.path}${e.label ? `(${e.label})` : ""}`).join("\n"),
57516
+ `仅操作上述 ${t.length} 个聚焦子树${t.length > 1 ? "之一" : ""},用户未指明目标的指令默认作用于聚焦组件(「增加/修改/删除 X」类指令优先理解为对聚焦组件本身的改动 —— 如为其加页签/子项,写焦点路径的子路径;仅用户明确要求新建独立组件时才需解除焦点);不要改动其他组件;${l}`,
57492
57517
  "用户用指示代词提问(「这是啥/这个/它是干什么的」等)时,所指默认是聚焦目标 —— 先 read 聚焦子树,再围绕聚焦组件回答,勿泛答整页",
57493
57518
  "read 不带路径时默认只返回聚焦子树;需要全量主数据时显式列顶层键(read({jsonPaths:[...]}) )"
57494
57519
  ], r = e.getSchema();
57495
57520
  if (r) {
57496
- let e = n.map((e) => {
57521
+ let e = t.map((e) => {
57497
57522
  let t = FQ(r, e.path);
57498
57523
  return t ? r$(t) : null;
57499
57524
  }).filter((e) => !!e);
57500
- e.length && t.push("", "## 焦点子树结构(仅此范围可操作)", ...e);
57525
+ e.length && n.push("", "## 焦点子树结构(仅此范围可操作)", ...e);
57501
57526
  }
57502
- return t.join("\n");
57527
+ return n.join("\n");
57503
57528
  },
57504
- wrapToolCall: async (t, r) => {
57505
- if (n.length) {
57506
- let l = n.map((e) => e.label ? `${e.path}(${e.label})` : e.path).join(", "), u = n.length === 1 ? `${n[0].path}.props.xxx` : void 0, d = (e) => ({
57507
- content: `PATH_DENIED · 聚焦越界:当前聚焦 [${l}],不可操作「${e}」。${s(u)}`,
57529
+ wrapToolCall: async (t, n) => {
57530
+ let r = i();
57531
+ if (r.length) {
57532
+ let i = r.map((e) => e.label ? `${e.path}(${e.label})` : e.path).join(", "), l = r.length === 1 ? `${r[0].path}.props.xxx` : void 0, d = (e) => ({
57533
+ content: `PATH_DENIED · 聚焦越界:当前聚焦 [${i}],不可操作「${e}」。${u(l)}`,
57508
57534
  status: "error"
57509
57535
  });
57510
57536
  if (t.name === "eval_script") {
57511
- var i;
57512
- if (((i = t.args) == null ? void 0 : i.mode) !== "transform") return r(t);
57513
- let o = T$(t.args);
57514
- if (!o.length) return d("(整体数据)");
57515
- for (let t of o) {
57516
- var a;
57517
- if (!n.some((e) => E$(t, e.path)) && !D$(t, (a = e.getBind) == null ? void 0 : a.call(e))) return d(t);
57537
+ var a;
57538
+ if (((a = t.args) == null ? void 0 : a.mode) !== "transform") return n(t);
57539
+ let i = T$(t.args);
57540
+ if (!i.length) return d("(整体数据)");
57541
+ for (let t of i) {
57542
+ var o;
57543
+ if (!r.some((e) => E$(t, e.path)) && !D$(t, (o = e.getBind) == null ? void 0 : o.call(e))) return d(t);
57518
57544
  }
57519
- return r(t);
57545
+ return n(t);
57520
57546
  }
57521
57547
  if (Vwe.has(t.name)) {
57522
- let r = T$(t.args);
57523
- if (!r.length) return d("(整体数据)");
57524
- for (let t of r) {
57525
- var o;
57526
- if (!n.some((e) => E$(t, e.path)) && !D$(t, (o = e.getBind) == null ? void 0 : o.call(e))) return d(t);
57548
+ let n = T$(t.args);
57549
+ if (!n.length) return d("(整体数据)");
57550
+ for (let t of n) {
57551
+ var s;
57552
+ if (!r.some((e) => E$(t, e.path)) && !D$(t, (s = e.getBind) == null ? void 0 : s.call(e))) return d(t);
57527
57553
  }
57528
57554
  }
57529
57555
  if (t.name === "read") {
57530
57556
  var c;
57531
- t.callConfig = j(j({}, (c = t.callConfig) == null ? {} : c), {}, { __pgFullTextPaths: n.map((e) => e.path) });
57557
+ t.callConfig = j(j({}, (c = t.callConfig) == null ? {} : c), {}, { __pgFullTextPaths: r.map((e) => e.path) });
57532
57558
  let e = t.args;
57533
57559
  if (!(e != null && e.jsonPath) && !(e != null && e.jsonPaths)) {
57534
- let i = n.map((e) => e.path), a = await r(j(j({}, t), {}, { args: j(j({}, e), {}, { jsonPaths: i }) })), o = `【聚焦模式】read 未带路径 → 默认返回聚焦子树(${i.join(", ")});需要全量主数据时显式列顶层键,如 read({jsonPaths:['<顶层键1>','<顶层键2>']})\n`;
57560
+ let i = r.map((e) => e.path), a = await n(j(j({}, t), {}, { args: j(j({}, e), {}, { jsonPaths: i }) })), o = `【聚焦模式】read 未带路径 → 默认返回聚焦子树(${i.join(", ")});需要全量主数据时显式列顶层键,如 read({jsonPaths:['<顶层键1>','<顶层键2>']})\n`;
57535
57561
  return j(j({}, a), {}, { content: o + a.content });
57536
57562
  }
57537
57563
  }
57538
57564
  }
57539
- return r(t);
57565
+ return n(t);
57540
57566
  },
57541
- setFocus: (e) => {
57542
- n = e ? [e] : [], r();
57567
+ setFocus: (e, t) => {
57568
+ o(t, () => e ? [e] : []);
57543
57569
  },
57544
57570
  getFocus: () => n[0],
57545
57571
  getFocuses: () => [...n],
57546
- addFocus: (e) => {
57547
- let t = n.findIndex((t) => t.path === e.path);
57548
- t >= 0 ? n[t] = e : n.push(e), r();
57572
+ addFocus: (e, t) => {
57573
+ o(t, (t) => {
57574
+ let n = t.findIndex((t) => t.path === e.path);
57575
+ if (n >= 0) {
57576
+ let r = [...t];
57577
+ return r[n] = e, r;
57578
+ }
57579
+ return [...t, e];
57580
+ });
57549
57581
  },
57550
- removeFocus: (e) => {
57551
- n = n.filter((t) => t.path !== e), r();
57582
+ removeFocus: (e, t) => {
57583
+ o(t, (t) => t.filter((t) => t.path !== e));
57552
57584
  },
57553
- clearFocus: () => {
57554
- n = [], r();
57585
+ clearFocus: (e) => {
57586
+ o(e, () => []);
57555
57587
  },
57556
57588
  reset: () => {
57557
- n = [], r();
57558
- }
57589
+ n = [], r = null, a();
57590
+ },
57591
+ isInvokeActive: () => r !== null
57559
57592
  };
57560
57593
  }
57561
57594
  _F(), Xf();
@@ -72519,7 +72552,7 @@ function aMe(e, t) {
72519
72552
  let mt = Ge.focus, ht = fF(async ({ path: e, label: t }) => {
72520
72553
  var n;
72521
72554
  let r = (n = et()) == null ? void 0 : n.schema;
72522
- return r ? FQ(r, e) ? (Ee.setFocus(j({ path: e }, t ? { label: t } : {})), `已聚焦到 ${e}${t ? `(${t})` : ""}。后续仅可写该子树(越界被拒),每轮只看到该组件结构。完成精修后调 clear_focus 退出。`) : `PATH_DENIED · 聚焦失败:path "${e}" 不在 schema 内。请先用 read 查看可操作路径再聚焦。` : "聚焦失败:当前无主数据 schema,无法聚焦。";
72555
+ return r ? FQ(r, e) ? (Ee.setFocus(j({ path: e }, t ? { label: t } : {}), "agent"), `已聚焦到 ${e}${t ? `(${t})` : ""}。后续仅可写该子树(越界被拒),每轮只看到该组件结构。完成精修后调 clear_focus 退出。`) : `PATH_DENIED · 聚焦失败:path "${e}" 不在 schema 内。请先用 read 查看可操作路径再聚焦。` : "聚焦失败:当前无主数据 schema,无法聚焦。";
72523
72556
  }, {
72524
72557
  name: "set_focus",
72525
72558
  description: "聚焦到指定组件子树(如 components.3)精修,替换全部已有焦点(非累积;要保留已有焦点追加用 add_focus)。聚焦后:仅可写该子树(越界 PATH_DENIED)+ 每轮只看到该组件结构。多组件页面精修其中一个时用,避免改到别处。先 read 定位 path 再聚焦;完成调 clear_focus。",
@@ -72527,7 +72560,7 @@ function aMe(e, t) {
72527
72560
  path: z().describe("要聚焦的组件 jsonPath,如 components.3"),
72528
72561
  label: z().optional().describe("人类可读标签,如「导航栏」")
72529
72562
  })
72530
- }), gt = fF(async () => (Ee.clearFocus(), "已清除聚焦,恢复全量可操作范围(可读写所有组件)。"), {
72563
+ }), gt = fF(async () => (Ee.clearFocus("agent"), "已清除聚焦,恢复全量可操作范围(可读写所有组件)。"), {
72531
72564
  name: "clear_focus",
72532
72565
  description: "清除当前聚焦,退出精修模式,恢复对全部组件的读写权限。",
72533
72566
  schema: B({}).optional()
@@ -72536,7 +72569,7 @@ function aMe(e, t) {
72536
72569
  let r = (n = et()) == null ? void 0 : n.schema;
72537
72570
  if (!r) return "聚焦失败:当前无主数据 schema,无法聚焦。";
72538
72571
  if (!FQ(r, e)) return `PATH_DENIED · 聚焦失败:path "${e}" 不在 schema 内。请先用 read 查看可操作路径再聚焦。`;
72539
- Ee.addFocus(j({ path: e }, t ? { label: t } : {}));
72572
+ Ee.addFocus(j({ path: e }, t ? { label: t } : {}), "agent");
72540
72573
  let i = Ee.getFocuses();
72541
72574
  return `已聚焦 ${e}${t ? `(${t})` : ""}(当前共 ${i.length} 个焦点:${i.map((e) => e.path).join(", ")})。后续仅可写这些子树之一(越界被拒)。`;
72542
72575
  }, {
@@ -72548,7 +72581,7 @@ function aMe(e, t) {
72548
72581
  })
72549
72582
  }), vt = fF(async ({ path: e }) => {
72550
72583
  let t = Ee.getFocuses().length;
72551
- Ee.removeFocus(e);
72584
+ Ee.removeFocus(e, "agent");
72552
72585
  let n = Ee.getFocuses();
72553
72586
  return n.length === t ? `path "${e}" 不在当前焦点列表中(当前:${n.map((e) => e.path).join(", ") || "无"})。` : n.length ? `已移除焦点 ${e}(剩余 ${n.length} 个:${n.map((e) => e.path).join(", ")})。` : `已移除焦点 ${e},聚焦已清空,恢复全量操作范围。`;
72554
72587
  }, {
@@ -73450,7 +73483,7 @@ function aMe(e, t) {
73450
73483
  var e;
73451
73484
  return (e = et()) == null ? void 0 : e.schema;
73452
73485
  }, e.debug);
73453
- return n.ok ? (Ee.setFocus(t), R.infoTick.value++, { ok: !0 }) : n;
73486
+ return n.ok ? (Ee.setFocus(t), e.debug && Ee.isInvokeActive() && console.info("[page-agent-sdk][focus] 在途流程进行中,聚焦将在下一次输入生效(当前流程不受影响)"), R.infoTick.value++, { ok: !0 }) : n;
73454
73487
  },
73455
73488
  addFocus(t) {
73456
73489
  let n = iMe(t, "addFocus", mt, () => {
@@ -73460,7 +73493,7 @@ function aMe(e, t) {
73460
73493
  return n.ok ? Ee.getFocuses().length >= 8 ? (e.debug && console.warn("[page-agent-sdk][focus] addFocus 拒绝:焦点数已达上限 8(augmentPrompt 注入每焦点子树 schema,过多致 system prompt 超预算)"), {
73461
73494
  ok: !1,
73462
73495
  error: "焦点数上限 8(避免 system prompt 撑爆)"
73463
- }) : (Ee.addFocus(t), R.infoTick.value++, { ok: !0 }) : n;
73496
+ }) : (Ee.addFocus(t), e.debug && Ee.isInvokeActive() && console.info("[page-agent-sdk][focus] 在途流程进行中,聚焦将在下一次输入生效(当前流程不受影响)"), R.infoTick.value++, { ok: !0 }) : n;
73464
73497
  },
73465
73498
  removeFocus(e) {
73466
73499
  mt && (Ee.removeFocus(e), R.infoTick.value++);
@@ -75408,6 +75441,7 @@ function bPe(e = {}) {
75408
75441
  content: "",
75409
75442
  timestamp: Date.now(),
75410
75443
  reasoning: "",
75444
+ reasoningTotal: 0,
75411
75445
  steps: []
75412
75446
  }), n = !1;
75413
75447
  c.messages.push(t);
@@ -75418,7 +75452,7 @@ function bPe(e = {}) {
75418
75452
  e.round > 1 && (t.content || t.reasoning) && (n = !0);
75419
75453
  break;
75420
75454
  case "reasoning":
75421
- n && (t.reasoning += "\n", n = !1), t.reasoning = (t.reasoning + e.delta).slice(-4e3);
75455
+ n && (t.reasoning += "\n", n = !1), t.reasoningTotal += e.delta.length, t.reasoning = (t.reasoning + e.delta).slice(-4e3);
75422
75456
  break;
75423
75457
  case "text":
75424
75458
  n && (t.content += "\n", n = !1), t.content += e.delta;
@@ -75517,8 +75551,11 @@ function bPe(e = {}) {
75517
75551
  await (i == null ? void 0 : i(c.messages));
75518
75552
  } catch (e) {}
75519
75553
  c.loading = !1, d = null;
75520
- let e = f.value.shift();
75521
- e !== void 0 && (_("user", e), c.loading = !0, c.error = null, d = new AbortController(), await v(d.signal));
75554
+ let t = f.value.shift();
75555
+ if (t !== void 0) {
75556
+ var n;
75557
+ _("user", t, (n = e.getFocuses) == null ? void 0 : n.call(e)), c.loading = !0, c.error = null, d = new AbortController(), await v(d.signal);
75558
+ }
75522
75559
  }
75523
75560
  function x(e) {
75524
75561
  f.value.splice(e, 1);
@@ -75680,7 +75717,7 @@ var B7 = {
75680
75717
  copyThinkingTruncTitle: "复制完整思考(渲染已截尾,复制取全量)",
75681
75718
  focusChipTitlePrefix: "精修中:",
75682
75719
  focusChipTitleHint: "(点击回看 · ✕ 移除)",
75683
- historyFocusChipTitlePrefix: "回看 ",
75720
+ historyFocusChipTitlePrefix: "发送时聚焦(路径可能已变):",
75684
75721
  removeFocus: "移除此焦点",
75685
75722
  sendHint: "Enter 发送 · Shift+Enter 换行",
75686
75723
  sendTitle: "发送",
@@ -75904,7 +75941,7 @@ var B7 = {
75904
75941
  copyThinkingTruncTitle: "Copy full reasoning (display truncated, copy gets all)",
75905
75942
  focusChipTitlePrefix: "Focus:",
75906
75943
  focusChipTitleHint: "(click to view · ✕ remove)",
75907
- historyFocusChipTitlePrefix: "View ",
75944
+ historyFocusChipTitlePrefix: "Focused at send (path may have changed): ",
75908
75945
  removeFocus: "Remove this focus",
75909
75946
  sendHint: "Enter to send · Shift+Enter for newline",
75910
75947
  sendTitle: "Send",
@@ -76108,7 +76145,8 @@ function TPe(e = {}) {
76108
76145
  onPersist: e.onPersist,
76109
76146
  onClear: e.onClear,
76110
76147
  onQueuedCleared: e.onQueuedCleared,
76111
- onBeforeRegenerate: e.onBeforeRegenerate
76148
+ onBeforeRegenerate: e.onBeforeRegenerate,
76149
+ getFocuses: e.getFocuses
76112
76150
  }), { state: r, sendMessage: i, removeQueuedTask: a, queuedTasks: o } = n, s = /* @__PURE__ */ Xq(""), c = /* @__PURE__ */ Xq(!0), l = () => {
76113
76151
  c.value = !c.value;
76114
76152
  }, u = /* @__PURE__ */ Xq(!1), d = () => {
@@ -77422,15 +77460,17 @@ var oIe = {
77422
77460
  running: {
77423
77461
  type: Boolean,
77424
77462
  default: !1
77425
- }
77463
+ },
77464
+ total: { default: void 0 }
77426
77465
  },
77427
77466
  emits: ["toggle"],
77428
77467
  setup(e) {
77429
77468
  let t = e, n = BX(() => {
77430
- let e = t.text.length;
77431
- if (e < 1e3) return String(e);
77432
- let n = e / 1e3;
77433
- return `${n >= 100 ? Math.round(n) : +n.toFixed(1)}k`;
77469
+ var e;
77470
+ let n = (e = t.total) == null ? t.text.length : e;
77471
+ if (n < 1e3) return String(n);
77472
+ let r = n / 1e3;
77473
+ return `${r >= 100 ? Math.round(r) : +r.toFixed(1)}k`;
77434
77474
  });
77435
77475
  return (t, r) => e.text ? (X(), Z("div", {
77436
77476
  key: 0,
@@ -77445,14 +77485,14 @@ var oIe = {
77445
77485
  Q("span", vIe, J(e.expanded ? "收起" : "展开"), 1)
77446
77486
  ]), e.expanded ? (X(), Z("div", yIe, J(e.text), 1)) : $("", !0)], 2)) : $("", !0);
77447
77487
  }
77448
- }), [["__scopeId", "data-v-b5a91bd4"]]);
77488
+ }), [["__scopeId", "data-v-7ff8ea75"]]);
77449
77489
  //#endregion
77450
77490
  //#region src/core/components/message/SubReasonDetails.vue?vue&type=script&setup=true&lang.ts
77451
77491
  M();
77452
77492
  var xIe = ["open"], SIe = { class: "sub-reason-head" }, CIe = {
77453
77493
  key: 0,
77454
77494
  class: "sub-reason-trunc"
77455
- }, wIe = ["title"], TIe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
77495
+ }, wIe = { class: "sub-reason-toggle" }, TIe = ["title"], EIe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
77456
77496
  __name: "SubReasonDetails",
77457
77497
  props: {
77458
77498
  subReason: {},
@@ -77493,56 +77533,57 @@ var xIe = ["open"], SIe = { class: "sub-reason-head" }, CIe = {
77493
77533
  Q("span", { class: zK(["status-dot sm", e.status === "running" ? "running" : "ok"]) }, null, 2),
77494
77534
  Q("span", { class: zK(["sub-reason-label", { pulsing: e.status === "running" }]) }, J(e.status === "running" ? `${e.messages.thinkingCountPrefix}${a.value}${e.messages.charCountSuffix}` : e.messages.reasoningTitle), 3),
77495
77535
  o.value ? (X(), Z("span", CIe, J(e.messages.truncatedNotePrefix) + J(e.subReason.length) + J(e.messages.truncatedNoteSuffix), 1)) : $("", !0),
77536
+ Q("span", wIe, J(r.value ? e.messages.collapse : e.messages.expand), 1),
77496
77537
  Q("button", {
77497
77538
  type: "button",
77498
77539
  class: zK(["sub-reason-copy", { copied: s.value }]),
77499
77540
  title: o.value ? e.messages.copyThinkingTruncTitle : e.messages.copyThinking,
77500
77541
  onClick: DZ(c, ["stop", "prevent"])
77501
- }, J(s.value ? e.messages.copied : e.messages.copy), 11, wIe)
77542
+ }, J(s.value ? e.messages.copied : e.messages.copy), 11, TIe)
77502
77543
  ]), Q("div", {
77503
77544
  ref_key: "bodyRef",
77504
77545
  ref: n,
77505
77546
  class: "sub-reason-body"
77506
77547
  }, J(o.value ? "…(前面已截断)\n" : "") + J(e.subReason), 513)], 40, xIe));
77507
77548
  }
77508
- }), [["__scopeId", "data-v-82b847cc"]]);
77549
+ }), [["__scopeId", "data-v-ee8bc184"]]);
77509
77550
  //#endregion
77510
77551
  //#region src/core/components/message/MessageSteps.vue?vue&type=script&setup=true&lang.ts
77511
77552
  M();
77512
- var EIe = {
77553
+ var DIe = {
77513
77554
  key: 0,
77514
77555
  class: "steps-block"
77515
- }, DIe = { class: "step-head" }, OIe = { class: "step-name" }, kIe = ["title"], AIe = {
77556
+ }, OIe = { class: "step-head" }, kIe = { class: "step-name" }, AIe = ["title"], jIe = {
77516
77557
  key: 1,
77517
77558
  class: "step-count"
77518
- }, jIe = {
77559
+ }, MIe = {
77519
77560
  key: 2,
77520
77561
  class: "step-duration"
77521
- }, MIe = ["onClick"], NIe = {
77562
+ }, NIe = ["onClick"], PIe = {
77522
77563
  key: 0,
77523
77564
  class: "step-detail"
77524
- }, PIe = {
77565
+ }, FIe = {
77525
77566
  key: 0,
77526
77567
  class: "step-detail-call-label"
77527
- }, FIe = {
77568
+ }, IIe = {
77528
77569
  key: 1,
77529
77570
  class: "step-detail-section"
77530
- }, IIe = { class: "step-detail-head" }, LIe = ["onClick"], RIe = { class: "step-detail-pre" }, zIe = {
77571
+ }, LIe = { class: "step-detail-head" }, RIe = ["onClick"], zIe = { class: "step-detail-pre" }, BIe = {
77531
77572
  key: 2,
77532
77573
  class: "step-detail-section"
77533
- }, BIe = { class: "step-detail-head" }, VIe = ["onClick"], HIe = {
77574
+ }, VIe = { class: "step-detail-head" }, HIe = ["onClick"], UIe = {
77534
77575
  key: 3,
77535
77576
  class: "step-detail-empty"
77536
- }, UIe = {
77577
+ }, WIe = {
77537
77578
  key: 2,
77538
77579
  class: "step-children"
77539
- }, WIe = { class: "step-children-label" }, GIe = { class: "step-name" }, KIe = {
77580
+ }, GIe = { class: "step-children-label" }, KIe = { class: "step-name" }, qIe = {
77540
77581
  key: 0,
77541
77582
  class: "step-count"
77542
- }, qIe = {
77583
+ }, JIe = {
77543
77584
  key: 1,
77544
77585
  class: "step-status running"
77545
- }, JIe = 2e3, YIe = 4e3, XIe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
77586
+ }, YIe = 2e3, XIe = 4e3, ZIe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
77546
77587
  __name: "MessageSteps",
77547
77588
  props: {
77548
77589
  steps: {},
@@ -77627,8 +77668,8 @@ var EIe = {
77627
77668
  } catch (t) {
77628
77669
  n = String(e);
77629
77670
  }
77630
- return n.length > JIe ? {
77631
- text: n.slice(0, JIe) + t.messages.displayTruncatedSuffix,
77671
+ return n.length > YIe ? {
77672
+ text: n.slice(0, YIe) + t.messages.displayTruncatedSuffix,
77632
77673
  truncated: !0
77633
77674
  } : {
77634
77675
  text: n,
@@ -77648,8 +77689,8 @@ var EIe = {
77648
77689
  truncated: !1
77649
77690
  };
77650
77691
  let n = m(e);
77651
- return n.length > YIe ? {
77652
- text: n.slice(0, YIe) + t.messages.displayTruncatedSuffix,
77692
+ return n.length > XIe ? {
77693
+ text: n.slice(0, XIe) + t.messages.displayTruncatedSuffix,
77653
77694
  truncated: !0
77654
77695
  } : {
77655
77696
  text: n,
@@ -77669,47 +77710,47 @@ var EIe = {
77669
77710
  }
77670
77711
  R7(e);
77671
77712
  }
77672
- return (t, s) => e.steps.length ? (X(), Z("div", EIe, [(X(!0), Z(oX, null, gY(i.value, (t, i) => {
77713
+ return (t, s) => e.steps.length ? (X(), Z("div", DIe, [(X(!0), Z(oX, null, gY(i.value, (t, i) => {
77673
77714
  var s;
77674
77715
  return X(), Z("div", {
77675
77716
  key: i,
77676
77717
  class: zK(["step-item", t.status])
77677
77718
  }, [
77678
- Q("div", DIe, [
77719
+ Q("div", OIe, [
77679
77720
  Q("span", { class: zK(["status-dot", t.status]) }, null, 2),
77680
- Q("span", OIe, J(t.name), 1),
77721
+ Q("span", kIe, J(t.name), 1),
77681
77722
  a(t.name) ? (X(), Z("span", {
77682
77723
  key: 0,
77683
77724
  class: "subagent-badge",
77684
77725
  title: e.messages.subagentBadgeTitle
77685
- }, [bX(v9, { icon: e.icons.subagent }, null, 8, ["icon"]), SX(" " + J(e.messages.subagentBadge), 1)], 8, kIe)) : $("", !0),
77686
- t.count > 1 ? (X(), Z("span", AIe, "×" + J(t.count), 1)) : $("", !0),
77726
+ }, [bX(v9, { icon: e.icons.subagent }, null, 8, ["icon"]), SX(" " + J(e.messages.subagentBadge), 1)], 8, AIe)) : $("", !0),
77727
+ t.count > 1 ? (X(), Z("span", jIe, "×" + J(t.count), 1)) : $("", !0),
77687
77728
  Q("span", { class: zK(["step-status", t.status]) }, [bX(y9, { text: n(t.status) }, null, 8, ["text"])], 2),
77688
- t.durationMs != null && t.status !== "running" ? (X(), Z("span", jIe, J(o(t.durationMs)), 1)) : $("", !0),
77729
+ t.durationMs != null && t.status !== "running" ? (X(), Z("span", MIe, J(o(t.durationMs)), 1)) : $("", !0),
77689
77730
  f(t.calls) ? (X(), Z("button", {
77690
77731
  key: 3,
77691
77732
  type: "button",
77692
77733
  class: zK(["step-detail-toggle", { open: u.has(i) }]),
77693
77734
  onClick: (e) => d(i)
77694
- }, J(u.has(i) ? e.messages.collapse : e.messages.expand), 11, MIe)) : $("", !0)
77735
+ }, J(u.has(i) ? e.messages.collapse : e.messages.expand), 11, NIe)) : $("", !0)
77695
77736
  ]),
77696
- u.has(i) && (s = t.calls) != null && s.length ? (X(), Z("div", NIe, [(X(!0), Z(oX, null, gY(t.calls, (n, r) => (X(), Z("div", {
77737
+ u.has(i) && (s = t.calls) != null && s.length ? (X(), Z("div", PIe, [(X(!0), Z(oX, null, gY(t.calls, (n, r) => (X(), Z("div", {
77697
77738
  key: r,
77698
77739
  class: "step-detail-call"
77699
77740
  }, [
77700
- t.count > 1 ? (X(), Z("div", PIe, J(e.messages.nthCallPrefix) + J(r + 1) + J(e.messages.nthCallSuffix), 1)) : $("", !0),
77701
- p(n.args).text ? (X(), Z("div", FIe, [Q("div", IIe, [SX(J(e.messages.argsLabel), 1), Q("button", {
77741
+ t.count > 1 ? (X(), Z("div", FIe, J(e.messages.nthCallPrefix) + J(r + 1) + J(e.messages.nthCallSuffix), 1)) : $("", !0),
77742
+ p(n.args).text ? (X(), Z("div", IIe, [Q("div", LIe, [SX(J(e.messages.argsLabel), 1), Q("button", {
77702
77743
  type: "button",
77703
77744
  class: "step-detail-copy",
77704
77745
  onClick: (e) => g(p(n.args).text, p(n.args).truncated, n.args)
77705
- }, J(e.messages.copy), 9, LIe)]), Q("pre", RIe, J(p(n.args).text), 1)])) : $("", !0),
77706
- n.status !== "running" && h(n.result).text ? (X(), Z("div", zIe, [Q("div", BIe, [SX(J(e.messages.resultLabel), 1), Q("button", {
77746
+ }, J(e.messages.copy), 9, RIe)]), Q("pre", zIe, J(p(n.args).text), 1)])) : $("", !0),
77747
+ n.status !== "running" && h(n.result).text ? (X(), Z("div", BIe, [Q("div", VIe, [SX(J(e.messages.resultLabel), 1), Q("button", {
77707
77748
  type: "button",
77708
77749
  class: "step-detail-copy",
77709
77750
  onClick: (e) => g(h(n.result).text, h(n.result).truncated, n.result)
77710
- }, J(e.messages.copy), 9, VIe)]), Q("pre", { class: zK(["step-detail-pre", { err: n.status === "error" }]) }, J(h(n.result).text), 3)])) : n.status !== "running" && !h(n.result).text ? (X(), Z("div", HIe, J(e.messages.noResult), 1)) : $("", !0)
77751
+ }, J(e.messages.copy), 9, HIe)]), Q("pre", { class: zK(["step-detail-pre", { err: n.status === "error" }]) }, J(h(n.result).text), 3)])) : n.status !== "running" && !h(n.result).text ? (X(), Z("div", UIe, J(e.messages.noResult), 1)) : $("", !0)
77711
77752
  ]))), 128))])) : $("", !0),
77712
- t.subReason ? (X(), hX(TIe, {
77753
+ t.subReason ? (X(), hX(EIe, {
77713
77754
  key: 1,
77714
77755
  "sub-reason": t.subReason,
77715
77756
  "sub-reason-full": t.subReasonFull,
@@ -77721,14 +77762,14 @@ var EIe = {
77721
77762
  "status",
77722
77763
  "messages"
77723
77764
  ])) : $("", !0),
77724
- t.children && t.children.length ? (X(), Z("div", UIe, [Q("div", WIe, [bX(v9, { icon: e.icons.subagentProgress }, null, 8, ["icon"]), SX(" " + J(e.messages.subagentProgress), 1)]), (X(!0), Z(oX, null, gY(r(t.children), (e, t) => (X(), Z("div", {
77765
+ t.children && t.children.length ? (X(), Z("div", WIe, [Q("div", GIe, [bX(v9, { icon: e.icons.subagentProgress }, null, 8, ["icon"]), SX(" " + J(e.messages.subagentProgress), 1)]), (X(!0), Z(oX, null, gY(r(t.children), (e, t) => (X(), Z("div", {
77725
77766
  key: t,
77726
77767
  class: zK(["step-child", e.status])
77727
77768
  }, [
77728
77769
  Q("span", { class: zK(["status-dot sm", e.status]) }, null, 2),
77729
- Q("span", GIe, J(e.name), 1),
77730
- e.count > 1 ? (X(), Z("span", KIe, "×" + J(e.count), 1)) : $("", !0),
77731
- e.status === "running" ? (X(), Z("span", qIe, "…")) : $("", !0)
77770
+ Q("span", KIe, J(e.name), 1),
77771
+ e.count > 1 ? (X(), Z("span", qIe, "×" + J(e.count), 1)) : $("", !0),
77772
+ e.status === "running" ? (X(), Z("span", JIe, "…")) : $("", !0)
77732
77773
  ], 2))), 128))])) : $("", !0)
77733
77774
  ], 2);
77734
77775
  }), 128))])) : $("", !0);
@@ -77751,7 +77792,7 @@ function x9() {
77751
77792
  };
77752
77793
  }
77753
77794
  var S9 = x9();
77754
- function ZIe(e) {
77795
+ function QIe(e) {
77755
77796
  S9 = e;
77756
77797
  }
77757
77798
  var C9 = { exec: () => null };
@@ -77772,7 +77813,7 @@ function T9(e, t = "") {
77772
77813
  };
77773
77814
  return r;
77774
77815
  }
77775
- var QIe = ((e = "") => {
77816
+ var $Ie = ((e = "") => {
77776
77817
  try {
77777
77818
  return !!RegExp("(?<=1)(?<!1)" + e);
77778
77819
  } catch (e) {
@@ -77835,91 +77876,91 @@ var QIe = ((e = "") => {
77835
77876
  headingBeginRegex: w9((e) => RegExp(`^ {0,${e}}#`)),
77836
77877
  htmlBeginRegex: w9((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
77837
77878
  blockquoteBeginRegex: w9((e) => RegExp(`^ {0,${e}}>`))
77838
- }, $Ie = /^(?:[ \t]*(?:\n|$))+/, eLe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, tLe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, D9 = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, nLe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, O9 = / {0,3}(?:[*+-]|\d{1,9}[.)])/, rLe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, iLe = T9(rLe).replace(/bull/g, O9).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), aLe = T9(rLe).replace(/bull/g, O9).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), k9 = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, oLe = /^[^\n]+/, A9 = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, sLe = T9(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", A9).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), cLe = T9(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, O9).getRegex(), j9 = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", M9 = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, lLe = T9("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", M9).replace("tag", j9).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), uLe = (e) => T9(k9).replace("hr", D9).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", j9).getRegex(), dLe = uLe(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), fLe = uLe(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), N9 = {
77839
- blockquote: T9(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", fLe).getRegex(),
77840
- code: eLe,
77841
- def: sLe,
77842
- fences: tLe,
77843
- heading: nLe,
77879
+ }, eLe = /^(?:[ \t]*(?:\n|$))+/, tLe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, nLe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, D9 = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, rLe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, O9 = / {0,3}(?:[*+-]|\d{1,9}[.)])/, iLe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, aLe = T9(iLe).replace(/bull/g, O9).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), oLe = T9(iLe).replace(/bull/g, O9).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), k9 = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, sLe = /^[^\n]+/, A9 = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, cLe = T9(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", A9).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), lLe = T9(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, O9).getRegex(), j9 = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", M9 = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, uLe = T9("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", M9).replace("tag", j9).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), dLe = (e) => T9(k9).replace("hr", D9).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", j9).getRegex(), fLe = dLe(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), pLe = dLe(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), N9 = {
77880
+ blockquote: T9(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pLe).getRegex(),
77881
+ code: tLe,
77882
+ def: cLe,
77883
+ fences: nLe,
77884
+ heading: rLe,
77844
77885
  hr: D9,
77845
- html: lLe,
77846
- lheading: iLe,
77847
- list: cLe,
77848
- newline: $Ie,
77849
- paragraph: dLe,
77850
- table: C9,
77851
- text: oLe
77852
- }, pLe = T9("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", D9).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", j9).getRegex(), mLe = j(j({}, N9), {}, {
77886
+ html: uLe,
77853
77887
  lheading: aLe,
77854
- table: pLe,
77855
- paragraph: T9(k9).replace("hr", D9).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", pLe).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", j9).getRegex()
77856
- }), hLe = j(j({}, N9), {}, {
77888
+ list: lLe,
77889
+ newline: eLe,
77890
+ paragraph: fLe,
77891
+ table: C9,
77892
+ text: sLe
77893
+ }, mLe = T9("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", D9).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", j9).getRegex(), hLe = j(j({}, N9), {}, {
77894
+ lheading: oLe,
77895
+ table: mLe,
77896
+ paragraph: T9(k9).replace("hr", D9).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", mLe).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", j9).getRegex()
77897
+ }), gLe = j(j({}, N9), {}, {
77857
77898
  html: T9("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", M9).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
77858
77899
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
77859
77900
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
77860
77901
  fences: C9,
77861
77902
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
77862
- paragraph: T9(k9).replace("hr", D9).replace("heading", " *#{1,6} *[^\n]").replace("lheading", iLe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
77863
- }), gLe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, _Le = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, vLe = /^( {2,}|\\)\n(?!\s*$)/, yLe = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, P9 = /* @__PURE__ */ RegExp("[\\p{P}\\p{S}]", "u"), F9 = /* @__PURE__ */ RegExp("[\\s\\p{P}\\p{S}]", "u"), I9 = /* @__PURE__ */ RegExp("[^\\s\\p{P}\\p{S}]", "u"), bLe = T9(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, F9).getRegex(), xLe = /* @__PURE__ */ RegExp("(?!~)[\\p{P}\\p{S}]", "u"), SLe = /* @__PURE__ */ RegExp("(?!~)[\\s\\p{P}\\p{S}]", "u"), CLe = /* @__PURE__ */ RegExp("(?:[^\\s\\p{P}\\p{S}]|~)", "u"), wLe = T9(/link|precode-code|html/, "g").replace("link", /* @__PURE__ */ RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)", "")).replace("precode-", QIe ? "(?<!`)()" : "(^^|[^`])").replace("code", /* @__PURE__ */ RegExp("(?<b>`+)[^`]+\\k<b>(?!`)", "")).replace("html", /<(?! )[^<>]*?>/).getRegex(), TLe = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ELe = T9(TLe, "u").replace(/punct/g, P9).getRegex(), DLe = T9(TLe, "u").replace(/punct/g, xLe).getRegex(), OLe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", kLe = T9(OLe, "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), ALe = T9(OLe, "gu").replace(/notPunctSpace/g, CLe).replace(/punctSpace/g, SLe).replace(/punct/g, xLe).getRegex(), jLe = T9("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), MLe = T9(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, P9).getRegex(), NLe = T9("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), PLe = T9(/\\(punct)/, "gu").replace(/punct/g, P9).getRegex(), FLe = T9(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ILe = T9(M9).replace("(?:-->|$)", "-->").getRegex(), LLe = T9("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ILe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), L9 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, RLe = T9(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", L9).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), zLe = T9(/^!?\[(label)\]\[(ref)\]/).replace("label", L9).replace("ref", A9).getRegex(), BLe = T9(/^!?\[(ref)\](?:\[\])?/).replace("ref", A9).getRegex(), VLe = T9("reflink|nolink(?!\\()", "g").replace("reflink", zLe).replace("nolink", BLe).getRegex(), HLe = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, R9 = {
77903
+ paragraph: T9(k9).replace("hr", D9).replace("heading", " *#{1,6} *[^\n]").replace("lheading", aLe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
77904
+ }), _Le = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, vLe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, yLe = /^( {2,}|\\)\n(?!\s*$)/, bLe = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, P9 = /* @__PURE__ */ RegExp("[\\p{P}\\p{S}]", "u"), F9 = /* @__PURE__ */ RegExp("[\\s\\p{P}\\p{S}]", "u"), I9 = /* @__PURE__ */ RegExp("[^\\s\\p{P}\\p{S}]", "u"), xLe = T9(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, F9).getRegex(), SLe = /* @__PURE__ */ RegExp("(?!~)[\\p{P}\\p{S}]", "u"), CLe = /* @__PURE__ */ RegExp("(?!~)[\\s\\p{P}\\p{S}]", "u"), wLe = /* @__PURE__ */ RegExp("(?:[^\\s\\p{P}\\p{S}]|~)", "u"), TLe = T9(/link|precode-code|html/, "g").replace("link", /* @__PURE__ */ RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)", "")).replace("precode-", $Ie ? "(?<!`)()" : "(^^|[^`])").replace("code", /* @__PURE__ */ RegExp("(?<b>`+)[^`]+\\k<b>(?!`)", "")).replace("html", /<(?! )[^<>]*?>/).getRegex(), ELe = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, DLe = T9(ELe, "u").replace(/punct/g, P9).getRegex(), OLe = T9(ELe, "u").replace(/punct/g, SLe).getRegex(), kLe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ALe = T9(kLe, "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), jLe = T9(kLe, "gu").replace(/notPunctSpace/g, wLe).replace(/punctSpace/g, CLe).replace(/punct/g, SLe).getRegex(), MLe = T9("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), NLe = T9(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, P9).getRegex(), PLe = T9("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, I9).replace(/punctSpace/g, F9).replace(/punct/g, P9).getRegex(), FLe = T9(/\\(punct)/, "gu").replace(/punct/g, P9).getRegex(), ILe = T9(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), LLe = T9(M9).replace("(?:-->|$)", "-->").getRegex(), RLe = T9("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", LLe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), L9 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, zLe = T9(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", L9).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), BLe = T9(/^!?\[(label)\]\[(ref)\]/).replace("label", L9).replace("ref", A9).getRegex(), VLe = T9(/^!?\[(ref)\](?:\[\])?/).replace("ref", A9).getRegex(), HLe = T9("reflink|nolink(?!\\()", "g").replace("reflink", BLe).replace("nolink", VLe).getRegex(), ULe = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, R9 = {
77864
77905
  _backpedal: C9,
77865
- anyPunctuation: PLe,
77866
- autolink: FLe,
77867
- blockSkip: wLe,
77868
- br: vLe,
77869
- code: _Le,
77906
+ anyPunctuation: FLe,
77907
+ autolink: ILe,
77908
+ blockSkip: TLe,
77909
+ br: yLe,
77910
+ code: vLe,
77870
77911
  del: C9,
77871
77912
  delLDelim: C9,
77872
77913
  delRDelim: C9,
77873
- emStrongLDelim: ELe,
77874
- emStrongRDelimAst: kLe,
77875
- emStrongRDelimUnd: jLe,
77876
- escape: gLe,
77877
- link: RLe,
77878
- nolink: BLe,
77879
- punctuation: bLe,
77880
- reflink: zLe,
77881
- reflinkSearch: VLe,
77882
- tag: LLe,
77883
- text: yLe,
77914
+ emStrongLDelim: DLe,
77915
+ emStrongRDelimAst: ALe,
77916
+ emStrongRDelimUnd: MLe,
77917
+ escape: _Le,
77918
+ link: zLe,
77919
+ nolink: VLe,
77920
+ punctuation: xLe,
77921
+ reflink: BLe,
77922
+ reflinkSearch: HLe,
77923
+ tag: RLe,
77924
+ text: bLe,
77884
77925
  url: C9
77885
- }, ULe = j(j({}, R9), {}, {
77926
+ }, WLe = j(j({}, R9), {}, {
77886
77927
  link: T9(/^!?\[(label)\]\((.*?)\)/).replace("label", L9).getRegex(),
77887
77928
  reflink: T9(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", L9).getRegex()
77888
77929
  }), z9 = j(j({}, R9), {}, {
77889
- emStrongRDelimAst: ALe,
77890
- emStrongLDelim: DLe,
77891
- delLDelim: MLe,
77892
- delRDelim: NLe,
77893
- url: T9(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", HLe).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
77930
+ emStrongRDelimAst: jLe,
77931
+ emStrongLDelim: OLe,
77932
+ delLDelim: NLe,
77933
+ delRDelim: PLe,
77934
+ url: T9(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ULe).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
77894
77935
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
77895
77936
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
77896
- text: T9(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", HLe).getRegex()
77897
- }), WLe = j(j({}, z9), {}, {
77898
- br: T9(vLe).replace("{2,}", "*").getRegex(),
77937
+ text: T9(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ULe).getRegex()
77938
+ }), GLe = j(j({}, z9), {}, {
77939
+ br: T9(yLe).replace("{2,}", "*").getRegex(),
77899
77940
  text: T9(z9.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
77900
77941
  }), B9 = {
77901
77942
  normal: N9,
77902
- gfm: mLe,
77903
- pedantic: hLe
77943
+ gfm: hLe,
77944
+ pedantic: gLe
77904
77945
  }, V9 = {
77905
77946
  normal: R9,
77906
77947
  gfm: z9,
77907
- breaks: WLe,
77908
- pedantic: ULe
77909
- }, GLe = {
77948
+ breaks: GLe,
77949
+ pedantic: WLe
77950
+ }, KLe = {
77910
77951
  "&": "&amp;",
77911
77952
  "<": "&lt;",
77912
77953
  ">": "&gt;",
77913
77954
  "\"": "&quot;",
77914
77955
  "'": "&#39;"
77915
- }, KLe = (e) => GLe[e];
77956
+ }, qLe = (e) => KLe[e];
77916
77957
  function H9(e, t) {
77917
77958
  if (t) {
77918
- if (E9.escapeTest.test(e)) return e.replace(E9.escapeReplace, KLe);
77919
- } else if (E9.escapeTestNoEncode.test(e)) return e.replace(E9.escapeReplaceNoEncode, KLe);
77959
+ if (E9.escapeTest.test(e)) return e.replace(E9.escapeReplace, qLe);
77960
+ } else if (E9.escapeTestNoEncode.test(e)) return e.replace(E9.escapeReplaceNoEncode, qLe);
77920
77961
  return e;
77921
77962
  }
77922
- function qLe(e) {
77963
+ function JLe(e) {
77923
77964
  try {
77924
77965
  e = encodeURI(e).replace(E9.percentDecode, "%");
77925
77966
  } catch (e) {
@@ -77927,7 +77968,7 @@ function qLe(e) {
77927
77968
  }
77928
77969
  return e;
77929
77970
  }
77930
- function JLe(e, t) {
77971
+ function YLe(e, t) {
77931
77972
  var n;
77932
77973
  let r = e.replace(E9.findPipe, (e, t, n) => {
77933
77974
  let r = !1, i = t;
@@ -77951,12 +77992,12 @@ function U9(e, t, n) {
77951
77992
  }
77952
77993
  return e.slice(0, r - i);
77953
77994
  }
77954
- function YLe(e) {
77995
+ function XLe(e) {
77955
77996
  let t = e.split("\n"), n = t.length - 1;
77956
77997
  for (; n >= 0 && E9.blankLine.test(t[n]);) n--;
77957
77998
  return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
77958
77999
  }
77959
- function XLe(e, t) {
78000
+ function ZLe(e, t) {
77960
78001
  if (e.indexOf(t[1]) === -1) return -1;
77961
78002
  let n = 0;
77962
78003
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -77964,7 +78005,7 @@ function XLe(e, t) {
77964
78005
  else if (e[r] === t[1] && (n--, n < 0)) return r;
77965
78006
  return n > 0 ? -2 : -1;
77966
78007
  }
77967
- function ZLe(e, t = 0) {
78008
+ function QLe(e, t = 0) {
77968
78009
  let n = t, r = "";
77969
78010
  for (let t of e) if (t === " ") {
77970
78011
  let e = 4 - n % 4;
@@ -77972,7 +78013,7 @@ function ZLe(e, t = 0) {
77972
78013
  } else r += t, n++;
77973
78014
  return r;
77974
78015
  }
77975
- function QLe(e, t, n, r, i) {
78016
+ function $Le(e, t, n, r, i) {
77976
78017
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
77977
78018
  r.state.inLink = !0;
77978
78019
  let c = {
@@ -77985,7 +78026,7 @@ function QLe(e, t, n, r, i) {
77985
78026
  };
77986
78027
  return r.state.inLink = !1, c;
77987
78028
  }
77988
- function $Le(e, t, n) {
78029
+ function eRe(e, t, n) {
77989
78030
  let r = e.match(n.other.indentCodeCompensation);
77990
78031
  if (r === null) return t;
77991
78032
  let i = r[1];
@@ -78010,7 +78051,7 @@ var W9 = class {
78010
78051
  code(e) {
78011
78052
  let t = this.rules.block.code.exec(e);
78012
78053
  if (t) {
78013
- let e = this.options.pedantic ? t[0] : YLe(t[0]);
78054
+ let e = this.options.pedantic ? t[0] : XLe(t[0]);
78014
78055
  return {
78015
78056
  type: "code",
78016
78057
  raw: e,
@@ -78022,7 +78063,7 @@ var W9 = class {
78022
78063
  fences(e) {
78023
78064
  let t = this.rules.block.fences.exec(e);
78024
78065
  if (t) {
78025
- let e = t[0], n = $Le(e, t[3] || "", this.rules);
78066
+ let e = t[0], n = eRe(e, t[3] || "", this.rules);
78026
78067
  return {
78027
78068
  type: "code",
78028
78069
  raw: e,
@@ -78108,7 +78149,7 @@ ${c}` : c;
78108
78149
  let n = !1, r = "", s = "";
78109
78150
  if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
78110
78151
  r = t[0], e = e.substring(r.length);
78111
- let c = ZLe(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
78152
+ let c = QLe(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
78112
78153
  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) {
78113
78154
  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);
78114
78155
  for (; e;) {
@@ -78174,7 +78215,7 @@ ${c}` : c;
78174
78215
  html(e) {
78175
78216
  let t = this.rules.block.html.exec(e);
78176
78217
  if (t) {
78177
- let e = YLe(t[0]);
78218
+ let e = XLe(t[0]);
78178
78219
  return {
78179
78220
  type: "html",
78180
78221
  block: !0,
@@ -78201,7 +78242,7 @@ ${c}` : c;
78201
78242
  var t;
78202
78243
  let n = this.rules.block.table.exec(e);
78203
78244
  if (!n || !this.rules.other.tableDelimiter.test(n[2])) return;
78204
- let r = JLe(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 = {
78245
+ let r = YLe(n[1]), i = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), a = (t = n[3]) != null && t.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], o = {
78205
78246
  type: "table",
78206
78247
  raw: U9(n[0], "\n"),
78207
78248
  header: [],
@@ -78216,7 +78257,7 @@ ${c}` : c;
78216
78257
  header: !0,
78217
78258
  align: o.align[e]
78218
78259
  });
78219
- for (let e of a) o.rows.push(JLe(e, o.header.length).map((e, t) => ({
78260
+ for (let e of a) o.rows.push(YLe(e, o.header.length).map((e, t) => ({
78220
78261
  text: e,
78221
78262
  tokens: this.lexer.inline(e),
78222
78263
  header: !1,
@@ -78287,7 +78328,7 @@ ${c}` : c;
78287
78328
  let t = U9(e.slice(0, -1), "\\");
78288
78329
  if ((e.length - t.length) % 2 == 0) return;
78289
78330
  } else {
78290
- let e = XLe(t[2], "()");
78331
+ let e = ZLe(t[2], "()");
78291
78332
  if (e === -2) return;
78292
78333
  if (e > -1) {
78293
78334
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -78299,7 +78340,7 @@ ${c}` : c;
78299
78340
  let e = this.rules.other.pedanticHrefTitle.exec(n);
78300
78341
  e && (n = e[1], r = e[3]);
78301
78342
  } else r = t[3] ? t[3].slice(1, -1) : "";
78302
- 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)), QLe(t, {
78343
+ return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), $Le(t, {
78303
78344
  href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
78304
78345
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
78305
78346
  }, t[0], this.lexer, this.rules);
@@ -78317,7 +78358,7 @@ ${c}` : c;
78317
78358
  text: e
78318
78359
  };
78319
78360
  }
78320
- return QLe(n, e, n[0], this.lexer, this.rules);
78361
+ return $Le(n, e, n[0], this.lexer, this.rules);
78321
78362
  }
78322
78363
  }
78323
78364
  emStrong(e, t, n = "") {
@@ -78759,7 +78800,7 @@ ${e}</tr>
78759
78800
  return `<del>${this.parser.parseInline(e)}</del>`;
78760
78801
  }
78761
78802
  link({ href: e, title: t, tokens: n }) {
78762
- let r = this.parser.parseInline(n), i = qLe(e);
78803
+ let r = this.parser.parseInline(n), i = JLe(e);
78763
78804
  if (i === null) return r;
78764
78805
  e = i;
78765
78806
  let a = "<a href=\"" + e + "\"";
@@ -78767,7 +78808,7 @@ ${e}</tr>
78767
78808
  }
78768
78809
  image({ href: e, title: t, text: n, tokens: r }) {
78769
78810
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
78770
- let i = qLe(e);
78811
+ let i = JLe(e);
78771
78812
  if (i === null) return H9(n);
78772
78813
  e = i;
78773
78814
  let a = `<img src="${e}" alt="${H9(n)}"`;
@@ -79151,15 +79192,15 @@ function Z9(e, t) {
79151
79192
  return X9.parse(e, t);
79152
79193
  }
79153
79194
  Z9.options = Z9.setOptions = function(e) {
79154
- return X9.setOptions(e), Z9.defaults = X9.defaults, ZIe(Z9.defaults), Z9;
79195
+ return X9.setOptions(e), Z9.defaults = X9.defaults, QIe(Z9.defaults), Z9;
79155
79196
  }, Z9.getDefaults = x9, Z9.defaults = S9, Z9.use = function(...e) {
79156
- return X9.use(...e), Z9.defaults = X9.defaults, ZIe(Z9.defaults), Z9;
79197
+ return X9.use(...e), Z9.defaults = X9.defaults, QIe(Z9.defaults), Z9;
79157
79198
  }, Z9.walkTokens = function(e, t) {
79158
79199
  return X9.walkTokens(e, t);
79159
79200
  }, Z9.parseInline = X9.parseInline, Z9.Parser = J9, Z9.parser = J9.parse, Z9.Renderer = K9, Z9.TextRenderer = q9, Z9.Lexer = G9, Z9.lexer = G9.lex, Z9.Tokenizer = W9, Z9.Hooks = Y9, Z9.parse = Z9, Z9.options, Z9.setOptions, Z9.use, Z9.walkTokens, Z9.parseInline, J9.parse, G9.lex;
79160
79201
  //#endregion
79161
79202
  //#region node_modules/highlight.js/lib/core.js
79162
- var eRe = /* @__PURE__ */ c(((e, t) => {
79203
+ var tRe = /* @__PURE__ */ c(((e, t) => {
79163
79204
  function n(e) {
79164
79205
  return e instanceof Map ? e.clear = e.delete = e.set = function() {
79165
79206
  throw Error("map is read-only");
@@ -80000,7 +80041,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
80000
80041
  return Object.assign(e, ae), e;
80001
80042
  }, Fe = Pe({});
80002
80043
  Fe.newInstance = () => Pe({}), t.exports = Fe, Fe.HighlightJS = Fe, Fe.default = Fe;
80003
- })), tRe = /* @__PURE__ */ c(((e, t) => {
80044
+ })), nRe = /* @__PURE__ */ c(((e, t) => {
80004
80045
  function n(e) {
80005
80046
  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 = {
80006
80047
  className: "symbol",
@@ -80165,7 +80206,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
80165
80206
  };
80166
80207
  }
80167
80208
  t.exports = n;
80168
- })), nRe = /* @__PURE__ */ c(((e, t) => {
80209
+ })), rRe = /* @__PURE__ */ c(((e, t) => {
80169
80210
  function n(e) {
80170
80211
  let t = e.regex, n = {}, r = {
80171
80212
  begin: /\$\{/,
@@ -80333,7 +80374,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
80333
80374
  };
80334
80375
  }
80335
80376
  t.exports = n;
80336
- })), rRe = /* @__PURE__ */ c(((e, t) => {
80377
+ })), iRe = /* @__PURE__ */ c(((e, t) => {
80337
80378
  function n(e) {
80338
80379
  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 = {
80339
80380
  className: "type",
@@ -80508,7 +80549,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
80508
80549
  };
80509
80550
  }
80510
80551
  t.exports = n;
80511
- })), iRe = /* @__PURE__ */ c(((e, t) => {
80552
+ })), aRe = /* @__PURE__ */ c(((e, t) => {
80512
80553
  function n(e) {
80513
80554
  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 = {
80514
80555
  className: "type",
@@ -80732,7 +80773,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
80732
80773
  };
80733
80774
  }
80734
80775
  t.exports = n;
80735
- })), aRe = /* @__PURE__ */ c(((e, t) => {
80776
+ })), oRe = /* @__PURE__ */ c(((e, t) => {
80736
80777
  function n(e) {
80737
80778
  let t = [
80738
80779
  "bool",
@@ -80991,7 +81032,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
80991
81032
  };
80992
81033
  }
80993
81034
  t.exports = n;
80994
- })), oRe = /* @__PURE__ */ c(((e, t) => {
81035
+ })), sRe = /* @__PURE__ */ c(((e, t) => {
80995
81036
  var n = (e) => ({
80996
81037
  IMPORTANT: {
80997
81038
  scope: "meta",
@@ -81130,7 +81171,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81130
81171
  };
81131
81172
  }
81132
81173
  t.exports = u;
81133
- })), sRe = /* @__PURE__ */ c(((e, t) => {
81174
+ })), cRe = /* @__PURE__ */ c(((e, t) => {
81134
81175
  function n(e) {
81135
81176
  let t = e.regex, n = {
81136
81177
  begin: /<\/?[A-Za-z_]/,
@@ -81310,7 +81351,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81310
81351
  };
81311
81352
  }
81312
81353
  t.exports = n;
81313
- })), cRe = /* @__PURE__ */ c(((e, t) => {
81354
+ })), lRe = /* @__PURE__ */ c(((e, t) => {
81314
81355
  function n(e) {
81315
81356
  let t = e.regex;
81316
81357
  return {
@@ -81348,7 +81389,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81348
81389
  };
81349
81390
  }
81350
81391
  t.exports = n;
81351
- })), lRe = /* @__PURE__ */ c(((e, t) => {
81392
+ })), uRe = /* @__PURE__ */ c(((e, t) => {
81352
81393
  function n(e) {
81353
81394
  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 = {
81354
81395
  "variable.constant": [
@@ -81609,7 +81650,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81609
81650
  };
81610
81651
  }
81611
81652
  t.exports = n;
81612
- })), uRe = /* @__PURE__ */ c(((e, t) => {
81653
+ })), dRe = /* @__PURE__ */ c(((e, t) => {
81613
81654
  function n(e) {
81614
81655
  let t = {
81615
81656
  keyword: [
@@ -81748,7 +81789,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81748
81789
  };
81749
81790
  }
81750
81791
  t.exports = n;
81751
- })), dRe = /* @__PURE__ */ c(((e, t) => {
81792
+ })), fRe = /* @__PURE__ */ c(((e, t) => {
81752
81793
  function n(e) {
81753
81794
  let t = e.regex;
81754
81795
  return {
@@ -81814,7 +81855,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81814
81855
  };
81815
81856
  }
81816
81857
  t.exports = n;
81817
- })), fRe = /* @__PURE__ */ c(((e, t) => {
81858
+ })), pRe = /* @__PURE__ */ c(((e, t) => {
81818
81859
  function n(e) {
81819
81860
  let t = e.regex, n = {
81820
81861
  className: "number",
@@ -81901,7 +81942,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
81901
81942
  };
81902
81943
  }
81903
81944
  t.exports = n;
81904
- })), pRe = /* @__PURE__ */ c(((e, t) => {
81945
+ })), mRe = /* @__PURE__ */ c(((e, t) => {
81905
81946
  var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
81906
81947
  className: "number",
81907
81948
  variants: [
@@ -82069,7 +82110,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
82069
82110
  };
82070
82111
  }
82071
82112
  t.exports = s;
82072
- })), mRe = /* @__PURE__ */ c(((e, t) => {
82113
+ })), hRe = /* @__PURE__ */ c(((e, t) => {
82073
82114
  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 = [
82074
82115
  "true",
82075
82116
  "false",
@@ -82504,7 +82545,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
82504
82545
  };
82505
82546
  }
82506
82547
  t.exports = u;
82507
- })), hRe = /* @__PURE__ */ c(((e, t) => {
82548
+ })), gRe = /* @__PURE__ */ c(((e, t) => {
82508
82549
  function n(e) {
82509
82550
  let t = {
82510
82551
  className: "attr",
@@ -82539,7 +82580,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
82539
82580
  };
82540
82581
  }
82541
82582
  t.exports = n;
82542
- })), gRe = /* @__PURE__ */ c(((e, t) => {
82583
+ })), _Re = /* @__PURE__ */ c(((e, t) => {
82543
82584
  var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
82544
82585
  className: "number",
82545
82586
  variants: [
@@ -82739,7 +82780,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
82739
82780
  };
82740
82781
  }
82741
82782
  t.exports = o;
82742
- })), _Re = /* @__PURE__ */ c(((e, t) => {
82783
+ })), vRe = /* @__PURE__ */ c(((e, t) => {
82743
82784
  var n = (e) => ({
82744
82785
  IMPORTANT: {
82745
82786
  scope: "meta",
@@ -82930,7 +82971,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
82930
82971
  };
82931
82972
  }
82932
82973
  t.exports = d;
82933
- })), vRe = /* @__PURE__ */ c(((e, t) => {
82974
+ })), yRe = /* @__PURE__ */ c(((e, t) => {
82934
82975
  function n(e) {
82935
82976
  let t = "\\[=*\\[", n = "\\]=*\\]", r = {
82936
82977
  begin: t,
@@ -82975,7 +83016,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
82975
83016
  };
82976
83017
  }
82977
83018
  t.exports = n;
82978
- })), yRe = /* @__PURE__ */ c(((e, t) => {
83019
+ })), bRe = /* @__PURE__ */ c(((e, t) => {
82979
83020
  function n(e) {
82980
83021
  let t = {
82981
83022
  className: "variable",
@@ -83031,7 +83072,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83031
83072
  };
83032
83073
  }
83033
83074
  t.exports = n;
83034
- })), bRe = /* @__PURE__ */ c(((e, t) => {
83075
+ })), xRe = /* @__PURE__ */ c(((e, t) => {
83035
83076
  function n(e) {
83036
83077
  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 = {
83037
83078
  $pattern: /[\w.]+/,
@@ -83222,7 +83263,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83222
83263
  };
83223
83264
  }
83224
83265
  t.exports = n;
83225
- })), xRe = /* @__PURE__ */ c(((e, t) => {
83266
+ })), SRe = /* @__PURE__ */ c(((e, t) => {
83226
83267
  function n(e) {
83227
83268
  let t = {
83228
83269
  className: "built_in",
@@ -83338,7 +83379,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83338
83379
  };
83339
83380
  }
83340
83381
  t.exports = n;
83341
- })), SRe = /* @__PURE__ */ c(((e, t) => {
83382
+ })), CRe = /* @__PURE__ */ c(((e, t) => {
83342
83383
  function n(e) {
83343
83384
  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 = {
83344
83385
  scope: "variable",
@@ -83631,7 +83672,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83631
83672
  };
83632
83673
  }
83633
83674
  t.exports = n;
83634
- })), CRe = /* @__PURE__ */ c(((e, t) => {
83675
+ })), wRe = /* @__PURE__ */ c(((e, t) => {
83635
83676
  function n(e) {
83636
83677
  return {
83637
83678
  name: "PHP template",
@@ -83673,7 +83714,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83673
83714
  };
83674
83715
  }
83675
83716
  t.exports = n;
83676
- })), wRe = /* @__PURE__ */ c(((e, t) => {
83717
+ })), TRe = /* @__PURE__ */ c(((e, t) => {
83677
83718
  function n(e) {
83678
83719
  return {
83679
83720
  name: "Plain text",
@@ -83682,7 +83723,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83682
83723
  };
83683
83724
  }
83684
83725
  t.exports = n;
83685
- })), TRe = /* @__PURE__ */ c(((e, t) => {
83726
+ })), ERe = /* @__PURE__ */ c(((e, t) => {
83686
83727
  function n(e) {
83687
83728
  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 = {
83688
83729
  $pattern: /[A-Za-z]\w+|__\w+__/,
@@ -83919,7 +83960,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83919
83960
  };
83920
83961
  }
83921
83962
  t.exports = n;
83922
- })), ERe = /* @__PURE__ */ c(((e, t) => {
83963
+ })), DRe = /* @__PURE__ */ c(((e, t) => {
83923
83964
  function n(e) {
83924
83965
  return {
83925
83966
  aliases: ["pycon"],
@@ -83937,7 +83978,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
83937
83978
  };
83938
83979
  }
83939
83980
  t.exports = n;
83940
- })), DRe = /* @__PURE__ */ c(((e, t) => {
83981
+ })), ORe = /* @__PURE__ */ c(((e, t) => {
83941
83982
  function n(e) {
83942
83983
  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(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
83943
83984
  return {
@@ -84076,7 +84117,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
84076
84117
  };
84077
84118
  }
84078
84119
  t.exports = n;
84079
- })), ORe = /* @__PURE__ */ c(((e, t) => {
84120
+ })), kRe = /* @__PURE__ */ c(((e, t) => {
84080
84121
  function n(e) {
84081
84122
  let t = e.regex, n = /(r#)?/, r = t.concat(n, e.UNDERSCORE_IDENT_RE), i = t.concat(n, e.IDENT_RE), a = {
84082
84123
  className: "title.function.invoke",
@@ -84244,7 +84285,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
84244
84285
  };
84245
84286
  }
84246
84287
  t.exports = n;
84247
- })), kRe = /* @__PURE__ */ c(((e, t) => {
84288
+ })), ARe = /* @__PURE__ */ c(((e, t) => {
84248
84289
  var n = (e) => ({
84249
84290
  IMPORTANT: {
84250
84291
  scope: "meta",
@@ -84393,7 +84434,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
84393
84434
  };
84394
84435
  }
84395
84436
  t.exports = u;
84396
- })), ARe = /* @__PURE__ */ c(((e, t) => {
84437
+ })), jRe = /* @__PURE__ */ c(((e, t) => {
84397
84438
  function n(e) {
84398
84439
  return {
84399
84440
  name: "Shell Session",
@@ -84409,7 +84450,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
84409
84450
  };
84410
84451
  }
84411
84452
  t.exports = n;
84412
- })), jRe = /* @__PURE__ */ c(((e, t) => {
84453
+ })), MRe = /* @__PURE__ */ c(((e, t) => {
84413
84454
  function n(e) {
84414
84455
  let t = e.regex, n = e.COMMENT("--", "$"), r = {
84415
84456
  scope: "string",
@@ -84526,7 +84567,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
84526
84567
  };
84527
84568
  }
84528
84569
  t.exports = n;
84529
- })), MRe = /* @__PURE__ */ c(((e, t) => {
84570
+ })), NRe = /* @__PURE__ */ c(((e, t) => {
84530
84571
  function n(e) {
84531
84572
  return e ? typeof e == "string" ? e : e.source : null;
84532
84573
  }
@@ -85099,7 +85140,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
85099
85140
  };
85100
85141
  }
85101
85142
  t.exports = T;
85102
- })), NRe = /* @__PURE__ */ c(((e, t) => {
85143
+ })), PRe = /* @__PURE__ */ c(((e, t) => {
85103
85144
  function n(e) {
85104
85145
  let t = "true false yes no null", n = {
85105
85146
  className: "attr",
@@ -85242,7 +85283,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
85242
85283
  };
85243
85284
  }
85244
85285
  t.exports = n;
85245
- })), PRe = /* @__PURE__ */ c(((e, t) => {
85286
+ })), FRe = /* @__PURE__ */ c(((e, t) => {
85246
85287
  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 = [
85247
85288
  "true",
85248
85289
  "false",
@@ -85762,7 +85803,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
85762
85803
  }), a;
85763
85804
  }
85764
85805
  t.exports = d;
85765
- })), FRe = /* @__PURE__ */ c(((e, t) => {
85806
+ })), IRe = /* @__PURE__ */ c(((e, t) => {
85766
85807
  function n(e) {
85767
85808
  let t = e.regex, n = {
85768
85809
  className: "string",
@@ -85830,7 +85871,7 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
85830
85871
  };
85831
85872
  }
85832
85873
  t.exports = n;
85833
- })), IRe = /* @__PURE__ */ c(((e, t) => {
85874
+ })), LRe = /* @__PURE__ */ c(((e, t) => {
85834
85875
  function n(e) {
85835
85876
  e.regex;
85836
85877
  let t = e.COMMENT(/\(;/, /;\)/);
@@ -85892,9 +85933,9 @@ var eRe = /* @__PURE__ */ c(((e, t) => {
85892
85933
  };
85893
85934
  }
85894
85935
  t.exports = n;
85895
- })), LRe = (/* @__PURE__ */ d((/* @__PURE__ */ c(((e, t) => {
85896
- var n = eRe();
85897
- n.registerLanguage("xml", tRe()), n.registerLanguage("bash", nRe()), n.registerLanguage("c", rRe()), n.registerLanguage("cpp", iRe()), n.registerLanguage("csharp", aRe()), n.registerLanguage("css", oRe()), n.registerLanguage("markdown", sRe()), n.registerLanguage("diff", cRe()), n.registerLanguage("ruby", lRe()), n.registerLanguage("go", uRe()), n.registerLanguage("graphql", dRe()), n.registerLanguage("ini", fRe()), n.registerLanguage("java", pRe()), n.registerLanguage("javascript", mRe()), n.registerLanguage("json", hRe()), n.registerLanguage("kotlin", gRe()), n.registerLanguage("less", _Re()), n.registerLanguage("lua", vRe()), n.registerLanguage("makefile", yRe()), n.registerLanguage("perl", bRe()), n.registerLanguage("objectivec", xRe()), n.registerLanguage("php", SRe()), n.registerLanguage("php-template", CRe()), n.registerLanguage("plaintext", wRe()), n.registerLanguage("python", TRe()), n.registerLanguage("python-repl", ERe()), n.registerLanguage("r", DRe()), n.registerLanguage("rust", ORe()), n.registerLanguage("scss", kRe()), n.registerLanguage("shell", ARe()), n.registerLanguage("sql", jRe()), n.registerLanguage("swift", MRe()), n.registerLanguage("yaml", NRe()), n.registerLanguage("typescript", PRe()), n.registerLanguage("vbnet", FRe()), n.registerLanguage("wasm", IRe()), n.HighlightJS = n, n.default = n, t.exports = n;
85936
+ })), RRe = (/* @__PURE__ */ d((/* @__PURE__ */ c(((e, t) => {
85937
+ var n = tRe();
85938
+ n.registerLanguage("xml", nRe()), n.registerLanguage("bash", rRe()), n.registerLanguage("c", iRe()), n.registerLanguage("cpp", aRe()), n.registerLanguage("csharp", oRe()), n.registerLanguage("css", sRe()), n.registerLanguage("markdown", cRe()), n.registerLanguage("diff", lRe()), n.registerLanguage("ruby", uRe()), n.registerLanguage("go", dRe()), n.registerLanguage("graphql", fRe()), n.registerLanguage("ini", pRe()), n.registerLanguage("java", mRe()), n.registerLanguage("javascript", hRe()), n.registerLanguage("json", gRe()), n.registerLanguage("kotlin", _Re()), n.registerLanguage("less", vRe()), n.registerLanguage("lua", yRe()), n.registerLanguage("makefile", bRe()), n.registerLanguage("perl", xRe()), n.registerLanguage("objectivec", SRe()), n.registerLanguage("php", CRe()), n.registerLanguage("php-template", wRe()), n.registerLanguage("plaintext", TRe()), n.registerLanguage("python", ERe()), n.registerLanguage("python-repl", DRe()), n.registerLanguage("r", ORe()), n.registerLanguage("rust", kRe()), n.registerLanguage("scss", ARe()), n.registerLanguage("shell", jRe()), n.registerLanguage("sql", MRe()), n.registerLanguage("swift", NRe()), n.registerLanguage("yaml", PRe()), n.registerLanguage("typescript", FRe()), n.registerLanguage("vbnet", IRe()), n.registerLanguage("wasm", LRe()), n.HighlightJS = n, n.default = n, t.exports = n;
85898
85939
  })))())).default;
85899
85940
  //#endregion
85900
85941
  //#region src/core/composables/useMarkdown.ts
@@ -85902,55 +85943,55 @@ Z9.setOptions({
85902
85943
  breaks: !0,
85903
85944
  gfm: !0
85904
85945
  });
85905
- var RRe = 2e4, zRe = new Z9.Renderer();
85906
- zRe.code = ({ text: e, lang: t }) => {
85946
+ var zRe = 2e4, BRe = new Z9.Renderer();
85947
+ BRe.code = ({ text: e, lang: t }) => {
85907
85948
  let n = (t || "").trim() || "plaintext", r = "";
85908
- if (e.length > 2e4) r = VRe(e);
85949
+ if (e.length > 2e4) r = HRe(e);
85909
85950
  else try {
85910
- r = LRe.highlight(e, {
85951
+ r = RRe.highlight(e, {
85911
85952
  language: n,
85912
85953
  ignoreIllegals: !0
85913
85954
  }).value;
85914
85955
  } catch (t) {
85915
- r = VRe(e);
85956
+ r = HRe(e);
85916
85957
  }
85917
- let i = encodeURIComponent(e), a = BRe(n);
85958
+ let i = encodeURIComponent(e), a = VRe(n);
85918
85959
  return `<pre class="code-block" data-lang="${a}" data-code="${i}"><code class="hljs language-${a}">${r}</code></pre>`;
85919
85960
  };
85920
- function BRe(e) {
85961
+ function VRe(e) {
85921
85962
  return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
85922
85963
  }
85923
- function VRe(e) {
85964
+ function HRe(e) {
85924
85965
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
85925
85966
  }
85926
- var HRe = { ADD_ATTR: [
85967
+ var URe = { ADD_ATTR: [
85927
85968
  "data-code",
85928
85969
  "data-lang",
85929
85970
  "target",
85930
85971
  "rel"
85931
85972
  ] };
85932
- function URe(e) {
85933
- return h9.sanitize(e, HRe);
85934
- }
85935
85973
  function WRe(e) {
85936
- return Z9.parse(e || "", { renderer: zRe });
85974
+ return h9.sanitize(e, URe);
85975
+ }
85976
+ function GRe(e) {
85977
+ return Z9.parse(e || "", { renderer: BRe });
85937
85978
  }
85938
85979
  function Q9(e) {
85939
- return URe(WRe(e));
85980
+ return WRe(GRe(e));
85940
85981
  }
85941
- var GRe = 100, KRe = 2e3;
85942
- function qRe(e) {
85982
+ var KRe = 100, qRe = 2e3;
85983
+ function JRe(e) {
85943
85984
  let t = /* @__PURE__ */ Zq(Q9(e())), n = 0, r = null;
85944
85985
  function i() {
85945
85986
  r = null, n = Date.now(), t.value = Q9(e());
85946
85987
  }
85947
85988
  return AJ(e, () => {
85948
85989
  let a = e();
85949
- if (a.length <= KRe) {
85990
+ if (a.length <= qRe) {
85950
85991
  r && (clearTimeout(r), r = null), n = Date.now(), t.value = Q9(a);
85951
85992
  return;
85952
85993
  }
85953
- let o = n + GRe - Date.now();
85994
+ let o = n + KRe - Date.now();
85954
85995
  o <= 0 ? (r && (clearTimeout(r), r = null), i()) : r || (r = setTimeout(i, o));
85955
85996
  }), vbe(() => {
85956
85997
  r && (clearTimeout(r), r = null);
@@ -85968,14 +86009,14 @@ function qRe(e) {
85968
86009
  }
85969
86010
  //#endregion
85970
86011
  //#region src/core/components/MessageContent.vue?vue&type=script&setup=true&lang.ts
85971
- var JRe = ["innerHTML"], YRe = /* @__PURE__ */ nY({
86012
+ var YRe = ["innerHTML"], XRe = /* @__PURE__ */ nY({
85972
86013
  __name: "MessageContent",
85973
86014
  props: {
85974
86015
  content: {},
85975
86016
  messages: { default: () => B7 }
85976
86017
  },
85977
86018
  setup(e) {
85978
- let t = e, { html: n, codeBlocks: r } = qRe(() => t.content), i = /* @__PURE__ */ Xq(null);
86019
+ let t = e, { html: n, codeBlocks: r } = JRe(() => t.content), i = /* @__PURE__ */ Xq(null);
85979
86020
  function a(e, t) {
85980
86021
  let n = {
85981
86022
  html: "html",
@@ -86029,16 +86070,16 @@ var JRe = ["innerHTML"], YRe = /* @__PURE__ */ nY({
86029
86070
  ref_key: "containerRef",
86030
86071
  ref: i,
86031
86072
  innerHTML: Y(n)
86032
- }, null, 8, JRe));
86073
+ }, null, 8, YRe));
86033
86074
  }
86034
86075
  });
86035
86076
  //#endregion
86036
86077
  //#region src/core/components/message/MessageBubble.vue?vue&type=script&setup=true&lang.ts
86037
86078
  M();
86038
- var XRe = { class: "typing-text" }, ZRe = {
86079
+ var ZRe = { class: "typing-text" }, QRe = {
86039
86080
  key: 0,
86040
86081
  class: "stream-cursor"
86041
- }, QRe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86082
+ }, $Re = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86042
86083
  __name: "MessageBubble",
86043
86084
  props: {
86044
86085
  content: {},
@@ -86049,33 +86090,33 @@ var XRe = { class: "typing-text" }, ZRe = {
86049
86090
  messages: { default: () => j({}, B7) }
86050
86091
  },
86051
86092
  setup(e) {
86052
- return (t, n) => (X(), Z(oX, null, [Q("div", { class: zK(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (X(), Z(oX, { key: 0 }, [Q("span", { class: zK(["typing-dot", { pulse: e.showTyping }]) }, null, 2), Q("span", XRe, [bX(y9, { text: e.messages.thinking }, null, 8, ["text"])])], 64)) : (X(), Z(oX, { key: 1 }, [e.role === "assistant" ? (X(), hX(YRe, {
86093
+ return (t, n) => (X(), Z(oX, null, [Q("div", { class: zK(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (X(), Z(oX, { key: 0 }, [Q("span", { class: zK(["typing-dot", { pulse: e.showTyping }]) }, null, 2), Q("span", ZRe, [bX(y9, { text: e.messages.thinking }, null, 8, ["text"])])], 64)) : (X(), Z(oX, { key: 1 }, [e.role === "assistant" ? (X(), hX(XRe, {
86053
86094
  key: 0,
86054
86095
  content: e.content,
86055
86096
  messages: e.messages
86056
- }, null, 8, ["content", "messages"])) : (X(), Z(oX, { key: 1 }, [SX(J(e.content), 1)], 64))], 64))], 2), e.showCursor ? (X(), Z("span", ZRe)) : $("", !0)], 64));
86097
+ }, null, 8, ["content", "messages"])) : (X(), Z(oX, { key: 1 }, [SX(J(e.content), 1)], 64))], 64))], 2), e.showCursor ? (X(), Z("span", QRe)) : $("", !0)], 64));
86057
86098
  }
86058
- }), [["__scopeId", "data-v-4b4111d8"]]), $Re = { class: "message-time" }, eze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86099
+ }), [["__scopeId", "data-v-4b4111d8"]]), eze = { class: "message-time" }, tze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86059
86100
  __name: "MessageTime",
86060
86101
  props: { time: {} },
86061
86102
  setup(e) {
86062
- return (t, n) => (X(), Z("div", $Re, J(e.time), 1));
86103
+ return (t, n) => (X(), Z("div", eze, J(e.time), 1));
86063
86104
  }
86064
86105
  }), [["__scopeId", "data-v-4a976e4a"]]);
86065
86106
  //#endregion
86066
86107
  //#region src/core/components/message/MessageActions.vue?vue&type=script&setup=true&lang.ts
86067
86108
  M();
86068
- var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86109
+ var nze = { class: "msg-actions" }, rze = ["title"], ize = {
86069
86110
  key: 0,
86070
86111
  viewBox: "0 0 16 16",
86071
86112
  fill: "none",
86072
86113
  "aria-hidden": "true"
86073
- }, ize = {
86114
+ }, aze = {
86074
86115
  key: 1,
86075
86116
  viewBox: "0 0 16 16",
86076
86117
  fill: "none",
86077
86118
  "aria-hidden": "true"
86078
- }, aze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86119
+ }, oze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86079
86120
  __name: "MessageActions",
86080
86121
  props: {
86081
86122
  copied: { type: Boolean },
@@ -86083,17 +86124,17 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86083
86124
  },
86084
86125
  emits: ["copy", "regenerate"],
86085
86126
  setup(e) {
86086
- return (t, n) => (X(), Z("div", tze, [Q("button", {
86127
+ return (t, n) => (X(), Z("div", nze, [Q("button", {
86087
86128
  class: zK(["msg-action-btn", { done: e.copied }]),
86088
86129
  title: e.copied ? e.messages.copied : e.messages.copy,
86089
86130
  onClick: n[0] || (n[0] = (e) => t.$emit("copy"))
86090
- }, [e.copied ? (X(), Z("svg", rze, [...n[2] || (n[2] = [Q("path", {
86131
+ }, [e.copied ? (X(), Z("svg", ize, [...n[2] || (n[2] = [Q("path", {
86091
86132
  d: "M3 8.5l3 3 7-7",
86092
86133
  stroke: "currentColor",
86093
86134
  "stroke-width": "1.6",
86094
86135
  "stroke-linecap": "round",
86095
86136
  "stroke-linejoin": "round"
86096
- }, null, -1)])])) : (X(), Z("svg", ize, [...n[3] || (n[3] = [Q("rect", {
86137
+ }, null, -1)])])) : (X(), Z("svg", aze, [...n[3] || (n[3] = [Q("rect", {
86097
86138
  x: "5.5",
86098
86139
  y: "5.5",
86099
86140
  width: "8",
@@ -86105,7 +86146,7 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86105
86146
  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",
86106
86147
  stroke: "currentColor",
86107
86148
  "stroke-width": "1.3"
86108
- }, null, -1)])])), Q("span", null, J(e.copied ? e.messages.copied : e.messages.copy), 1)], 10, nze), Q("button", {
86149
+ }, null, -1)])])), Q("span", null, J(e.copied ? e.messages.copied : e.messages.copy), 1)], 10, rze), Q("button", {
86109
86150
  class: "msg-action-btn",
86110
86151
  onClick: n[1] || (n[1] = (e) => t.$emit("regenerate"))
86111
86152
  }, [n[4] || (n[4] = Q("svg", {
@@ -86125,19 +86166,19 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86125
86166
  "stroke-linejoin": "round"
86126
86167
  })], -1)), Q("span", null, J(e.messages.regenerate), 1)])]));
86127
86168
  }
86128
- }), [["__scopeId", "data-v-dc051a49"]]), oze = {
86169
+ }), [["__scopeId", "data-v-dc051a49"]]), sze = {
86129
86170
  key: 1,
86130
86171
  class: "avatar-icon",
86131
86172
  viewBox: "0 0 1024 1024",
86132
86173
  xmlns: "http://www.w3.org/2000/svg",
86133
86174
  "aria-hidden": "true"
86134
- }, sze = {
86175
+ }, cze = {
86135
86176
  key: 2,
86136
86177
  class: "avatar-icon",
86137
86178
  viewBox: "0 0 1024 1024",
86138
86179
  xmlns: "http://www.w3.org/2000/svg",
86139
86180
  "aria-hidden": "true"
86140
- }, cze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86181
+ }, lze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86141
86182
  __name: "AvatarIcon",
86142
86183
  props: {
86143
86184
  role: {},
@@ -86148,18 +86189,18 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86148
86189
  key: 0,
86149
86190
  icon: e.glyph,
86150
86191
  class: "avatar-glyph"
86151
- }, null, 8, ["icon"])) : e.role === "user" ? (X(), Z("svg", oze, [...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", sze, [...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)])]));
86192
+ }, null, 8, ["icon"])) : e.role === "user" ? (X(), Z("svg", sze, [...n[0] || (n[0] = [Q("path", { d: "M512 170.688a149.312 149.312 0 1 0 0 298.624 149.312 149.312 0 0 0 0-298.624zM277.312 320a234.688 234.688 0 1 1 469.376 0 234.688 234.688 0 0 1-469.376 0zM128 810.688a213.312 213.312 0 0 1 213.312-213.312h341.376A213.312 213.312 0 0 1 896 810.688v128H128v-128z m213.312-128a128 128 0 0 0-128 128v42.688h597.376v-42.688a128 128 0 0 0-128-128H341.312z" }, null, -1)])])) : (X(), Z("svg", cze, [...n[1] || (n[1] = [Q("path", { d: "M717.12 274H762c82.842 0 150 67.158 150 150v200c0 82.842-67.158 150-150 150H262c-82.842 0-150-67.158-150-150V424c0-82.842 67.158-150 150-150h44.88l-18.268-109.602c-4.086-24.514 12.476-47.7 36.99-51.786 24.514-4.086 47.7 12.476 51.786 36.99l20 120c0.246 1.472 0.416 2.94 0.516 4.398h228.192c0.1-1.46 0.27-2.926 0.516-4.398l20-120c4.086-24.514 27.272-41.076 51.786-36.99 24.514 4.086 41.076 27.272 36.99 51.786L717.12 274zM262 364c-33.138 0-60 26.862-60 60v200c0 33.138 26.862 60 60 60h500c33.138 0 60-26.862 60-60V424c0-33.138-26.862-60-60-60H262z m50 548c-24.852 0-45-20.148-45-45S287.148 822 312 822h400c24.852 0 45 20.148 45 45S736.852 912 712 912H312z m-4-428c0-24.852 20.148-45 45-45S398 459.148 398 484v40c0 24.852-20.148 45-45 45S308 548.852 308 524v-40z m318 0c0-24.852 20.148-45 45-45S716 459.148 716 484v40c0 24.852-20.148 45-45 45S626 548.852 626 524v-40z" }, null, -1)])]));
86152
86193
  }
86153
- }), [["__scopeId", "data-v-a0b508ea"]]), lze = ["data-msg-idx"], uze = {
86194
+ }), [["__scopeId", "data-v-a0b508ea"]]), uze = ["data-msg-idx"], dze = {
86154
86195
  key: 0,
86155
86196
  class: "message-avatar"
86156
- }, dze = { class: "message-content" }, fze = {
86197
+ }, fze = { class: "message-content" }, pze = {
86157
86198
  key: 2,
86158
86199
  class: "msg-focuses"
86159
- }, pze = ["title", "onClick"], mze = ["data-img-count"], hze = ["href", "title"], gze = ["src", "alt"], _ze = {
86200
+ }, mze = ["title"], hze = ["data-img-count"], gze = ["href", "title"], _ze = ["src", "alt"], vze = {
86160
86201
  key: 1,
86161
86202
  class: "msg-image-lost"
86162
- }, vze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86203
+ }, yze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86163
86204
  __name: "MessageRow",
86164
86205
  props: {
86165
86206
  message: {},
@@ -86182,33 +86223,35 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86182
86223
  let t = e, n = H7(), r = BX(() => t.message.role === "assistant"), i = BX(() => {
86183
86224
  var e;
86184
86225
  return r.value && "reasoning" in t.message ? (e = t.message.reasoning) == null ? "" : e : "";
86185
- }), a = BX(() => {
86226
+ }), a = BX(() => r.value && "reasoningTotal" in t.message ? t.message.reasoningTotal : void 0), o = BX(() => {
86186
86227
  var e;
86187
86228
  return r.value && "steps" in t.message ? (e = t.message.steps) == null ? [] : e : [];
86188
- }), o = BX(() => r.value && !!t.message.content && !t.loading && t.isLast), s = BX(() => r.value && t.loading && t.isLast && !!t.message.content);
86189
- return (t, c) => {
86190
- var l, u;
86229
+ }), s = BX(() => r.value && !!t.message.content && !t.loading && t.isLast), c = BX(() => r.value && t.loading && t.isLast && !!t.message.content);
86230
+ return (t, l) => {
86231
+ var u, d;
86191
86232
  return X(), Z("div", {
86192
86233
  class: zK(["message-row", e.message.role]),
86193
86234
  "data-msg-idx": e.index
86194
- }, [e.showAvatar ? (X(), Z("div", uze, [bX(cze, {
86235
+ }, [e.showAvatar ? (X(), Z("div", dze, [bX(lze, {
86195
86236
  role: e.message.role,
86196
86237
  glyph: e.message.role === "user" ? Y(n).icons.userAvatar : Y(n).icons.assistantAvatar
86197
- }, null, 8, ["role", "glyph"])])) : $("", !0), Q("div", dze, [
86238
+ }, null, 8, ["role", "glyph"])])) : $("", !0), Q("div", fze, [
86198
86239
  r.value ? (X(), hX(bIe, {
86199
86240
  key: 0,
86200
86241
  text: i.value,
86242
+ total: a.value,
86201
86243
  expanded: e.reasoningExpanded,
86202
86244
  running: e.loading && e.isLast,
86203
- onToggle: c[0] || (c[0] = (e) => t.$emit("toggle-reasoning"))
86245
+ onToggle: l[0] || (l[0] = (e) => t.$emit("toggle-reasoning"))
86204
86246
  }, null, 8, [
86205
86247
  "text",
86248
+ "total",
86206
86249
  "expanded",
86207
86250
  "running"
86208
86251
  ])) : $("", !0),
86209
- r.value ? (X(), hX(XIe, {
86252
+ r.value ? (X(), hX(ZIe, {
86210
86253
  key: 1,
86211
- steps: a.value,
86254
+ steps: o.value,
86212
86255
  icons: Y(n).icons,
86213
86256
  messages: Y(n).messages
86214
86257
  }, null, 8, [
@@ -86216,13 +86259,12 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86216
86259
  "icons",
86217
86260
  "messages"
86218
86261
  ])) : $("", !0),
86219
- e.message.role === "user" && (l = e.message.focuses) != null && l.length ? (X(), Z("div", fze, [(X(!0), Z(oX, null, gY(e.message.focuses, (e) => (X(), Z("span", {
86262
+ e.message.role === "user" && (u = e.message.focuses) != null && u.length ? (X(), Z("div", pze, [(X(!0), Z(oX, null, gY(e.message.focuses, (e) => (X(), Z("span", {
86220
86263
  key: e.path,
86221
86264
  class: "msg-focus-chip",
86222
- title: Y(n).messages.historyFocusChipTitlePrefix + e.path,
86223
- onClick: (t) => Y(n).focusChipClick(e)
86224
- }, [bX(v9, { icon: Y(n).icons.focus }, null, 8, ["icon"]), SX(" " + J(e.path), 1)], 8, pze))), 128))])) : $("", !0),
86225
- e.message.role === "user" && (u = e.message.images) != null && u.length ? (X(), Z("div", {
86265
+ title: Y(n).messages.historyFocusChipTitlePrefix + e.path
86266
+ }, [bX(v9, { icon: Y(n).icons.focus }, null, 8, ["icon"]), SX(" " + J(e.path), 1)], 8, mze))), 128))])) : $("", !0),
86267
+ e.message.role === "user" && (d = e.message.images) != null && d.length ? (X(), Z("div", {
86226
86268
  key: 3,
86227
86269
  class: "msg-images",
86228
86270
  "data-img-count": e.message.images.length
@@ -86238,15 +86280,15 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86238
86280
  class: "msg-image-thumb",
86239
86281
  src: e.thumb || e.dataUri,
86240
86282
  alt: e.name || Y(n).messages.imageAlt
86241
- }, null, 8, gze)) : (X(), Z("span", _ze, "🖼️"))], 8, hze))), 128))], 8, mze)) : $("", !0),
86242
- !r.value || e.message.content || e.isPendingAssistant ? (X(), hX(QRe, {
86283
+ }, null, 8, _ze)) : (X(), Z("span", vze, "🖼️"))], 8, gze))), 128))], 8, hze)) : $("", !0),
86284
+ !r.value || e.message.content || e.isPendingAssistant ? (X(), hX($Re, {
86243
86285
  key: 4,
86244
86286
  messages: Y(n).messages,
86245
86287
  content: e.message.content,
86246
86288
  role: e.message.role,
86247
86289
  "is-pending-assistant": e.isPendingAssistant,
86248
86290
  "show-typing": e.showTyping,
86249
- "show-cursor": s.value
86291
+ "show-cursor": c.value
86250
86292
  }, null, 8, [
86251
86293
  "messages",
86252
86294
  "content",
@@ -86255,30 +86297,30 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86255
86297
  "show-typing",
86256
86298
  "show-cursor"
86257
86299
  ])) : $("", !0),
86258
- bX(eze, { time: e.time }, null, 8, ["time"]),
86259
- o.value ? (X(), hX(aze, {
86300
+ bX(tze, { time: e.time }, null, 8, ["time"]),
86301
+ s.value ? (X(), hX(oze, {
86260
86302
  key: 5,
86261
86303
  messages: Y(n).messages,
86262
86304
  copied: e.copied,
86263
- onCopy: c[1] || (c[1] = (e) => t.$emit("copy")),
86264
- onRegenerate: c[2] || (c[2] = (e) => t.$emit("regenerate"))
86305
+ onCopy: l[1] || (l[1] = (e) => t.$emit("copy")),
86306
+ onRegenerate: l[2] || (l[2] = (e) => t.$emit("regenerate"))
86265
86307
  }, null, 8, ["messages", "copied"])) : $("", !0)
86266
- ])], 10, lze);
86308
+ ])], 10, uze);
86267
86309
  };
86268
86310
  }
86269
- }), [["__scopeId", "data-v-63dccb17"]]), yze = { class: "chat-body" }, bze = {
86311
+ }), [["__scopeId", "data-v-053034ee"]]), bze = { class: "chat-body" }, xze = {
86270
86312
  key: 0,
86271
86313
  class: "empty-state"
86272
- }, xze = { class: "empty-icon" }, Sze = {
86314
+ }, Sze = { class: "empty-icon" }, Cze = {
86273
86315
  key: 1,
86274
86316
  class: "message-row assistant"
86275
- }, Cze = {
86317
+ }, wze = {
86276
86318
  key: 0,
86277
86319
  class: "message-avatar"
86278
- }, wze = { class: "message-content" }, Tze = {
86320
+ }, Tze = { class: "message-content" }, Eze = {
86279
86321
  key: 2,
86280
86322
  class: "error-bar"
86281
- }, Eze = { class: "error-text" }, Dze = ["title"], Oze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86323
+ }, Dze = { class: "error-text" }, Oze = ["title"], kze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86282
86324
  __name: "MessageList",
86283
86325
  props: {
86284
86326
  showAvatar: { type: Boolean },
@@ -86289,9 +86331,9 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86289
86331
  var e;
86290
86332
  return ((e = f.messages[f.messages.length - 1]) == null ? void 0 : e.role) === "assistant";
86291
86333
  });
86292
- return (t, v) => (X(), Z("div", yze, [
86293
- h.value ? $("", !0) : (X(), Z("div", bze, [Q("div", xze, [bX(v9, { icon: Y(u).empty }, null, 8, ["icon"])]), Q("p", null, [bX(y9, { text: Y(d).emptyGreeting }, null, 8, ["text"])])])),
86294
- (X(!0), Z(oX, null, gY(Y(f).messages, (t, c) => (X(), hX(vze, {
86334
+ return (t, v) => (X(), Z("div", bze, [
86335
+ h.value ? $("", !0) : (X(), Z("div", xze, [Q("div", Sze, [bX(v9, { icon: Y(u).empty }, null, 8, ["icon"])]), Q("p", null, [bX(y9, { text: Y(d).emptyGreeting }, null, 8, ["text"])])])),
86336
+ (X(!0), Z(oX, null, gY(Y(f).messages, (t, c) => (X(), hX(yze, {
86295
86337
  key: c,
86296
86338
  message: t,
86297
86339
  index: c,
@@ -86321,10 +86363,10 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86321
86363
  "onCopy",
86322
86364
  "onRegenerate"
86323
86365
  ]))), 128)),
86324
- Y(f).loading && !_.value ? (X(), Z("div", Sze, [e.showAvatar ? (X(), Z("div", Cze, [bX(cze, {
86366
+ Y(f).loading && !_.value ? (X(), Z("div", Cze, [e.showAvatar ? (X(), Z("div", wze, [bX(lze, {
86325
86367
  role: "assistant",
86326
86368
  glyph: Y(u).assistantAvatar
86327
- }, null, 8, ["glyph"])])) : $("", !0), Q("div", wze, [bX(QRe, {
86369
+ }, null, 8, ["glyph"])])) : $("", !0), Q("div", Tze, [bX($Re, {
86328
86370
  content: "",
86329
86371
  role: "assistant",
86330
86372
  "is-pending-assistant": !0,
@@ -86332,8 +86374,8 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86332
86374
  "show-cursor": !1,
86333
86375
  messages: Y(d)
86334
86376
  }, null, 8, ["show-typing", "messages"])])])) : $("", !0),
86335
- Y(f).error ? (X(), Z("div", Tze, [
86336
- Q("span", Eze, J(Y(f).error), 1),
86377
+ Y(f).error ? (X(), Z("div", Eze, [
86378
+ Q("span", Dze, J(Y(f).error), 1),
86337
86379
  g.value ? (X(), Z("button", {
86338
86380
  key: 0,
86339
86381
  class: "retry-btn",
@@ -86344,61 +86386,61 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86344
86386
  class: "undo-btn",
86345
86387
  title: Y(d).undoTitle,
86346
86388
  onClick: v[1] || (v[1] = (...e) => Y(l) && Y(l)(...e))
86347
- }, [bX(y9, { text: Y(d).undo }, null, 8, ["text"])], 8, Dze)) : $("", !0)
86389
+ }, [bX(y9, { text: Y(d).undo }, null, 8, ["text"])], 8, Oze)) : $("", !0)
86348
86390
  ])) : $("", !0)
86349
86391
  ]));
86350
86392
  }
86351
- }), [["__scopeId", "data-v-113939bc"]]), kze = {
86393
+ }), [["__scopeId", "data-v-113939bc"]]), Aze = {
86352
86394
  key: 0,
86353
86395
  class: "queued-bar"
86354
- }, Aze = { class: "queued-head" }, jze = { class: "queued-icon" }, Mze = { class: "queued-title" }, Nze = { class: "queued-count" }, Pze = { class: "queued-idx" }, Fze = { class: "queued-text" }, Ize = ["title", "onClick"], Lze = ["title", "onClick"], Rze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86396
+ }, jze = { class: "queued-head" }, Mze = { class: "queued-icon" }, Nze = { class: "queued-title" }, Pze = { class: "queued-count" }, Fze = { class: "queued-idx" }, Ize = { class: "queued-text" }, Lze = ["title", "onClick"], Rze = ["title", "onClick"], zze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86355
86397
  __name: "QueuedBar",
86356
86398
  setup(e) {
86357
86399
  let { chat: t, editQueued: n, icons: r, messages: i } = H7(), { queuedTasks: a, removeQueuedTask: o } = t;
86358
- return (e, t) => Y(a).length ? (X(), Z("div", kze, [Q("div", Aze, [
86359
- Q("span", jze, [bX(v9, { icon: Y(r).queued }, null, 8, ["icon"])]),
86360
- Q("span", Mze, J(Y(i).queuedTitle), 1),
86361
- Q("span", Nze, J(Y(a).length), 1)
86400
+ return (e, t) => Y(a).length ? (X(), Z("div", Aze, [Q("div", jze, [
86401
+ Q("span", Mze, [bX(v9, { icon: Y(r).queued }, null, 8, ["icon"])]),
86402
+ Q("span", Nze, J(Y(i).queuedTitle), 1),
86403
+ Q("span", Pze, J(Y(a).length), 1)
86362
86404
  ]), (X(!0), Z(oX, null, gY(Y(a), (e, t) => (X(), Z("div", {
86363
86405
  key: t,
86364
86406
  class: "queued-item"
86365
86407
  }, [
86366
- Q("span", Pze, J(t + 1), 1),
86367
- Q("span", Fze, J(e), 1),
86408
+ Q("span", Fze, J(t + 1), 1),
86409
+ Q("span", Ize, J(e), 1),
86368
86410
  Q("button", {
86369
86411
  class: "queued-act",
86370
86412
  title: Y(i).queuedEditTitle,
86371
86413
  onClick: (e) => Y(n)(t)
86372
- }, [bX(v9, { icon: Y(r).queuedEdit }, null, 8, ["icon"])], 8, Ize),
86414
+ }, [bX(v9, { icon: Y(r).queuedEdit }, null, 8, ["icon"])], 8, Lze),
86373
86415
  Q("button", {
86374
86416
  class: "queued-act queued-del",
86375
86417
  title: Y(i).removeQueuedTitle,
86376
86418
  onClick: (e) => Y(o)(t)
86377
- }, "✕", 8, Lze)
86419
+ }, "✕", 8, Rze)
86378
86420
  ]))), 128))])) : $("", !0);
86379
86421
  }
86380
- }), [["__scopeId", "data-v-02414fc9"]]), zze = {
86422
+ }), [["__scopeId", "data-v-02414fc9"]]), Bze = {
86381
86423
  key: 0,
86382
86424
  class: "approval-bar"
86383
- }, Bze = { class: "approval-head" }, Vze = { class: "approval-title" }, Hze = {
86425
+ }, Vze = { class: "approval-head" }, Hze = { class: "approval-title" }, Uze = {
86384
86426
  key: 0,
86385
86427
  class: "approval-question"
86386
- }, Uze = {
86428
+ }, Wze = {
86387
86429
  key: 1,
86388
86430
  class: "approval-context"
86389
- }, Wze = {
86431
+ }, Gze = {
86390
86432
  key: 2,
86391
86433
  class: "approval-recommend"
86392
- }, Gze = {
86434
+ }, Kze = {
86393
86435
  key: 3,
86394
86436
  class: "approval-options"
86395
- }, Kze = ["onClick"], qze = { class: "approval-actions" }, Jze = { class: "approval-head" }, Yze = { class: "approval-title" }, Xze = {
86437
+ }, qze = ["onClick"], Jze = { class: "approval-actions" }, Yze = { class: "approval-head" }, Xze = { class: "approval-title" }, Zze = {
86396
86438
  key: 0,
86397
86439
  class: "approval-args"
86398
- }, Zze = {
86440
+ }, Qze = {
86399
86441
  key: 1,
86400
86442
  class: "approval-plan-context"
86401
- }, Qze = { class: "approval-actions" }, $ze = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86443
+ }, $ze = { class: "approval-actions" }, eBe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86402
86444
  __name: "ApprovalBar",
86403
86445
  setup(e) {
86404
86446
  let t = H7(), { pendingApproval: n, resolveApproval: r } = t.chat, i = t.messages, a = t.planConfirmation, o = /* @__PURE__ */ Xq(!1);
@@ -86425,17 +86467,17 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86425
86467
  });
86426
86468
  return (e, u) => {
86427
86469
  var d, f, p;
86428
- return Y(n) ? (X(), Z("div", zze, [s.value ? (X(), Z(oX, { key: 0 }, [
86429
- Q("div", Bze, [u[5] || (u[5] = Q("span", { class: "approval-icon" }, "❓", -1)), Q("span", Vze, J(Y(i).humanConfirmTitle), 1)]),
86430
- (d = Y(n).args) != null && d.question ? (X(), Z("div", Hze, J(Y(n).args.question), 1)) : $("", !0),
86431
- (f = Y(n).args) != null && f.context ? (X(), Z("div", Uze, J(Y(n).args.context), 1)) : $("", !0),
86432
- (p = Y(n).args) != null && p.recommendation ? (X(), Z("div", Wze, [bX(v9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), SX(J(Y(i).recommendPrefix) + J(Y(n).args.recommendation), 1)])) : $("", !0),
86433
- c.value.length ? (X(), Z("div", Gze, [(X(!0), Z(oX, null, gY(c.value, (e) => (X(), Z("button", {
86470
+ return Y(n) ? (X(), Z("div", Bze, [s.value ? (X(), Z(oX, { key: 0 }, [
86471
+ Q("div", Vze, [u[5] || (u[5] = Q("span", { class: "approval-icon" }, "❓", -1)), Q("span", Hze, J(Y(i).humanConfirmTitle), 1)]),
86472
+ (d = Y(n).args) != null && d.question ? (X(), Z("div", Uze, J(Y(n).args.question), 1)) : $("", !0),
86473
+ (f = Y(n).args) != null && f.context ? (X(), Z("div", Wze, J(Y(n).args.context), 1)) : $("", !0),
86474
+ (p = Y(n).args) != null && p.recommendation ? (X(), Z("div", Gze, [bX(v9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), SX(J(Y(i).recommendPrefix) + J(Y(n).args.recommendation), 1)])) : $("", !0),
86475
+ c.value.length ? (X(), Z("div", Kze, [(X(!0), Z(oX, null, gY(c.value, (e) => (X(), Z("button", {
86434
86476
  key: e,
86435
86477
  class: "approval-opt",
86436
86478
  onClick: (t) => Y(r)(e)
86437
- }, J(e), 9, Kze))), 128))])) : $("", !0),
86438
- Q("div", qze, [Q("button", {
86479
+ }, J(e), 9, qze))), 128))])) : $("", !0),
86480
+ Q("div", Jze, [Q("button", {
86439
86481
  class: "approval-deny",
86440
86482
  onClick: u[0] || (u[0] = (e) => Y(r)(!1))
86441
86483
  }, [bX(y9, { text: Y(i).deny }, null, 8, ["text"])]), c.value.length ? $("", !0) : (X(), Z("button", {
@@ -86444,18 +86486,18 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86444
86486
  onClick: u[1] || (u[1] = (e) => Y(r)(!0))
86445
86487
  }, [bX(y9, { text: Y(i).approve }, null, 8, ["text"])]))])
86446
86488
  ], 64)) : (X(), Z(oX, { key: 1 }, [
86447
- Q("div", Jze, [
86489
+ Q("div", Yze, [
86448
86490
  u[6] || (u[6] = Q("span", { class: "approval-icon" }, "✋", -1)),
86449
- Q("span", Yze, [SX(J(Y(i).toolConfirmPrefix), 1), Q("code", null, J(Y(n).toolName), 1)]),
86491
+ Q("span", Xze, [SX(J(Y(i).toolConfirmPrefix), 1), Q("code", null, J(Y(n).toolName), 1)]),
86450
86492
  l.value ? (X(), Z("button", {
86451
86493
  key: 0,
86452
86494
  class: "approval-toggle",
86453
86495
  onClick: u[2] || (u[2] = (e) => o.value = !o.value)
86454
86496
  }, J(o.value ? Y(i).collapseArgs : Y(i).viewArgs) + J(o.value ? " ▴" : " ▾"), 1)) : $("", !0)
86455
86497
  ]),
86456
- l.value && o.value ? (X(), Z("pre", Xze, J(l.value), 1)) : $("", !0),
86457
- Y(a) ? (X(), Z("div", Zze, [bX(v9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), SX(J(Y(i).planConfirmedPrefix) + J(Y(a).choice) + J(Y(i).planConfirmedSuffix), 1)])) : $("", !0),
86458
- Q("div", Qze, [Q("button", {
86498
+ l.value && o.value ? (X(), Z("pre", Zze, J(l.value), 1)) : $("", !0),
86499
+ Y(a) ? (X(), Z("div", Qze, [bX(v9, { icon: Y(t).icons.recommend }, null, 8, ["icon"]), SX(J(Y(i).planConfirmedPrefix) + J(Y(a).choice) + J(Y(i).planConfirmedSuffix), 1)])) : $("", !0),
86500
+ Q("div", $ze, [Q("button", {
86459
86501
  class: "approval-deny",
86460
86502
  onClick: u[3] || (u[3] = (e) => Y(r)(!1))
86461
86503
  }, [bX(y9, { text: Y(i).deny }, null, 8, ["text"])]), Q("button", {
@@ -86469,13 +86511,13 @@ var tze = { class: "msg-actions" }, nze = ["title"], rze = {
86469
86511
  //#endregion
86470
86512
  //#region src/core/components/ConflictBar.vue?vue&type=script&setup=true&lang.ts
86471
86513
  M();
86472
- var eBe = {
86514
+ var tBe = {
86473
86515
  key: 0,
86474
86516
  class: "conflict-bar"
86475
- }, tBe = { class: "conflict-head" }, nBe = { class: "conflict-icon" }, rBe = { class: "conflict-title" }, iBe = { class: "conflict-detail" }, aBe = {
86517
+ }, nBe = { class: "conflict-head" }, rBe = { class: "conflict-icon" }, iBe = { class: "conflict-title" }, aBe = { class: "conflict-detail" }, oBe = {
86476
86518
  key: 0,
86477
86519
  class: "conflict-diff"
86478
- }, oBe = { class: "conflict-diff-col" }, sBe = { class: "conflict-diff-label" }, cBe = { class: "conflict-diff-pre" }, lBe = { class: "conflict-diff-col" }, uBe = { class: "conflict-diff-label" }, dBe = { class: "conflict-diff-pre" }, fBe = { class: "conflict-actions" }, pBe = ["title"], mBe = ["title"], hBe = ["title"], gBe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86520
+ }, sBe = { class: "conflict-diff-col" }, cBe = { class: "conflict-diff-label" }, lBe = { class: "conflict-diff-pre" }, uBe = { class: "conflict-diff-col" }, dBe = { class: "conflict-diff-label" }, fBe = { class: "conflict-diff-pre" }, pBe = { class: "conflict-actions" }, mBe = ["title"], hBe = ["title"], gBe = ["title"], _Be = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86479
86521
  __name: "ConflictBar",
86480
86522
  props: {
86481
86523
  pendingConflict: {},
@@ -86509,19 +86551,19 @@ var eBe = {
86509
86551
  return String(n);
86510
86552
  }
86511
86553
  });
86512
- return (t, a) => e.pendingConflict ? (X(), Z("div", eBe, [
86513
- Q("div", tBe, [Q("span", nBe, [bX(v9, { icon: e.icons.conflict }, null, 8, ["icon"])]), Q("span", rBe, [
86554
+ return (t, a) => e.pendingConflict ? (X(), Z("div", tBe, [
86555
+ Q("div", nBe, [Q("span", rBe, [bX(v9, { icon: e.icons.conflict }, null, 8, ["icon"])]), Q("span", iBe, [
86514
86556
  SX(J(e.messages.conflictTitlePrefix), 1),
86515
86557
  Q("code", null, J(e.pendingConflict.path), 1),
86516
86558
  SX(J(e.messages.conflictTitleSuffix), 1)
86517
86559
  ])]),
86518
- Q("div", iBe, J(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
86560
+ Q("div", aBe, J(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
86519
86561
  Q("button", {
86520
86562
  class: "conflict-toggle",
86521
86563
  onClick: a[0] || (a[0] = (e) => n.value = !n.value)
86522
86564
  }, J(n.value ? e.messages.collapseDiff : e.messages.viewDiff) + J(n.value ? " ▴" : " ▾"), 1),
86523
- n.value ? (X(), Z("div", aBe, [Q("div", oBe, [Q("div", sBe, J(e.messages.agentValueLabel), 1), Q("pre", cBe, J(r.value || e.messages.deleteNoValue), 1)]), Q("div", lBe, [Q("div", uBe, J(e.messages.currentValueLabel), 1), Q("pre", dBe, J(i.value), 1)])])) : $("", !0),
86524
- Q("div", fBe, [
86565
+ n.value ? (X(), Z("div", oBe, [Q("div", sBe, [Q("div", cBe, J(e.messages.agentValueLabel), 1), Q("pre", lBe, J(r.value || e.messages.deleteNoValue), 1)]), Q("div", uBe, [Q("div", dBe, J(e.messages.currentValueLabel), 1), Q("pre", fBe, J(i.value), 1)])])) : $("", !0),
86566
+ Q("div", pBe, [
86525
86567
  Q("button", {
86526
86568
  class: "conflict-keep",
86527
86569
  onClick: a[1] || (a[1] = (t) => {
@@ -86529,7 +86571,7 @@ var eBe = {
86529
86571
  return (n = e.onResolve) == null ? void 0 : n.call(e, "keep_external");
86530
86572
  }),
86531
86573
  title: e.messages.keepExternalTitle
86532
- }, [bX(y9, { text: e.messages.keepExternal }, null, 8, ["text"])], 8, pBe),
86574
+ }, [bX(y9, { text: e.messages.keepExternal }, null, 8, ["text"])], 8, mBe),
86533
86575
  Q("button", {
86534
86576
  class: "conflict-overwrite",
86535
86577
  onClick: a[2] || (a[2] = (t) => {
@@ -86537,7 +86579,7 @@ var eBe = {
86537
86579
  return (n = e.onResolve) == null ? void 0 : n.call(e, "overwrite");
86538
86580
  }),
86539
86581
  title: e.messages.overwriteTitle
86540
- }, [bX(y9, { text: e.messages.overwrite }, null, 8, ["text"])], 8, mBe),
86582
+ }, [bX(y9, { text: e.messages.overwrite }, null, 8, ["text"])], 8, hBe),
86541
86583
  Q("button", {
86542
86584
  class: "conflict-restore",
86543
86585
  onClick: a[3] || (a[3] = (t) => {
@@ -86545,28 +86587,28 @@ var eBe = {
86545
86587
  return (n = e.onResolve) == null ? void 0 : n.call(e, "restore");
86546
86588
  }),
86547
86589
  title: e.messages.restoreTitle
86548
- }, [bX(y9, { text: e.messages.restore }, null, 8, ["text"])], 8, hBe)
86590
+ }, [bX(y9, { text: e.messages.restore }, null, 8, ["text"])], 8, gBe)
86549
86591
  ])
86550
86592
  ])) : $("", !0);
86551
86593
  }
86552
- }), [["__scopeId", "data-v-36dda58c"]]), _Be = { class: "chat-footer" }, vBe = ["title"], yBe = {
86594
+ }), [["__scopeId", "data-v-36dda58c"]]), vBe = { class: "chat-footer" }, yBe = ["title"], bBe = {
86553
86595
  key: 0,
86554
86596
  class: "drop-hint"
86555
- }, bBe = {
86597
+ }, xBe = {
86556
86598
  key: 1,
86557
86599
  class: "chip-stack"
86558
- }, xBe = {
86600
+ }, SBe = {
86559
86601
  key: 0,
86560
86602
  class: "focus-chips"
86561
- }, SBe = ["title", "onClick"], CBe = { class: "focus-chip-icon" }, wBe = { class: "focus-chip-path" }, TBe = ["title", "onClick"], EBe = {
86603
+ }, CBe = ["title", "onClick"], wBe = { class: "focus-chip-icon" }, TBe = { class: "focus-chip-path" }, EBe = ["title", "onClick"], DBe = {
86562
86604
  key: 1,
86563
86605
  class: "img-chips",
86564
86606
  "data-test": "img-chips"
86565
- }, DBe = ["title"], OBe = ["src", "alt"], kBe = ["onClick"], ABe = {
86607
+ }, OBe = ["title"], kBe = ["src", "alt"], ABe = ["onClick"], jBe = {
86566
86608
  key: 2,
86567
86609
  class: "img-error",
86568
86610
  "data-test": "img-error"
86569
- }, jBe = ["placeholder", "rows"], MBe = { class: "input-actions" }, NBe = { class: "send-hint" }, PBe = ["title"], FBe = {
86611
+ }, MBe = ["placeholder", "rows"], NBe = { class: "input-actions" }, PBe = { class: "send-hint" }, FBe = ["title"], IBe = {
86570
86612
  key: 1,
86571
86613
  width: "15",
86572
86614
  height: "15",
@@ -86576,13 +86618,13 @@ var eBe = {
86576
86618
  "stroke-width": "2",
86577
86619
  "stroke-linecap": "round",
86578
86620
  "stroke-linejoin": "round"
86579
- }, IBe = ["disabled", "title"], LBe = {
86621
+ }, LBe = ["disabled", "title"], RBe = {
86580
86622
  key: 0,
86581
86623
  width: "16",
86582
86624
  height: "16",
86583
86625
  viewBox: "0 0 24 24",
86584
86626
  fill: "currentColor"
86585
- }, RBe = {
86627
+ }, zBe = {
86586
86628
  key: 2,
86587
86629
  width: "18",
86588
86630
  height: "18",
@@ -86590,7 +86632,7 @@ var eBe = {
86590
86632
  fill: "none",
86591
86633
  stroke: "currentColor",
86592
86634
  "stroke-width": "2"
86593
- }, zBe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86635
+ }, BBe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86594
86636
  __name: "ChatInput",
86595
86637
  props: {
86596
86638
  placeholder: {},
@@ -86619,36 +86661,36 @@ var eBe = {
86619
86661
  }
86620
86662
  r.length && h(r);
86621
86663
  };
86622
- return (t, h) => (X(), Z("div", _Be, [Y(a) ? (X(), Z("button", {
86664
+ return (t, h) => (X(), Z("div", vBe, [Y(a) ? (X(), Z("button", {
86623
86665
  key: 0,
86624
86666
  class: "undo-foot-btn",
86625
86667
  title: Y(d).undoTitle,
86626
86668
  onClick: h[0] || (h[0] = (...e) => Y(o) && Y(o)(...e))
86627
- }, J(Y(d).undo), 9, vBe)) : $("", !0), Q("div", {
86669
+ }, J(Y(d).undo), 9, yBe)) : $("", !0), Q("div", {
86628
86670
  class: zK(["chat-input-wrap", { "drag-over": b.value }]),
86629
86671
  onDragover: h[4] || (h[4] = DZ((e) => b.value = !0, ["prevent"])),
86630
86672
  onDragleave: h[5] || (h[5] = (e) => b.value = !1),
86631
86673
  onDrop: DZ(C, ["prevent"])
86632
86674
  }, [
86633
- b.value ? (X(), Z("div", yBe, J(Y(d).imageDropHint), 1)) : $("", !0),
86634
- Y(s).length || Y(m).length || Y(_) ? (X(), Z("div", bBe, [
86635
- Y(s).length ? (X(), Z("div", xBe, [(X(!0), Z(oX, null, gY(Y(s), (e) => (X(), Z("span", {
86675
+ b.value ? (X(), Z("div", bBe, J(Y(d).imageDropHint), 1)) : $("", !0),
86676
+ Y(s).length || Y(m).length || Y(_) ? (X(), Z("div", xBe, [
86677
+ Y(s).length ? (X(), Z("div", SBe, [(X(!0), Z(oX, null, gY(Y(s), (e) => (X(), Z("span", {
86636
86678
  key: e.path,
86637
86679
  class: "focus-chip",
86638
86680
  title: Y(d).focusChipTitlePrefix + e.path + Y(d).focusChipTitleHint,
86639
86681
  onClick: (t) => Y(l)(e)
86640
86682
  }, [
86641
- Q("span", CBe, [bX(v9, { icon: Y(u).focus }, null, 8, ["icon"])]),
86642
- Q("code", wBe, J(e.path), 1),
86683
+ Q("span", wBe, [bX(v9, { icon: Y(u).focus }, null, 8, ["icon"])]),
86684
+ Q("code", TBe, J(e.path), 1),
86643
86685
  Q("button", {
86644
86686
  type: "button",
86645
86687
  class: "focus-chip-x",
86646
86688
  "data-test": "focus-clear",
86647
86689
  title: Y(d).removeFocus,
86648
86690
  onClick: DZ((t) => Y(c)(e.path), ["stop"])
86649
- }, "✕", 8, TBe)
86650
- ], 8, SBe))), 128))])) : $("", !0),
86651
- Y(m).length ? (X(), Z("div", EBe, [(X(!0), Z(oX, null, gY(Y(m), (e) => (X(), Z("span", {
86691
+ }, "✕", 8, EBe)
86692
+ ], 8, CBe))), 128))])) : $("", !0),
86693
+ Y(m).length ? (X(), Z("div", DBe, [(X(!0), Z(oX, null, gY(Y(m), (e) => (X(), Z("span", {
86652
86694
  key: e.id,
86653
86695
  class: "img-chip",
86654
86696
  title: e.name || Y(d).imageAlt
@@ -86656,13 +86698,13 @@ var eBe = {
86656
86698
  class: "img-chip-thumb",
86657
86699
  src: e.dataUri,
86658
86700
  alt: e.name || Y(d).imageAlt
86659
- }, null, 8, OBe), Q("button", {
86701
+ }, null, 8, kBe), Q("button", {
86660
86702
  type: "button",
86661
86703
  class: "img-chip-x",
86662
86704
  "data-test": "img-chip-x",
86663
86705
  onClick: (t) => Y(g)(e.id)
86664
- }, "✕", 8, kBe)], 8, DBe))), 128))])) : $("", !0),
86665
- Y(_) ? (X(), Z("div", ABe, J(Y(_)), 1)) : $("", !0)
86706
+ }, "✕", 8, ABe)], 8, OBe))), 128))])) : $("", !0),
86707
+ Y(_) ? (X(), Z("div", jBe, J(Y(_)), 1)) : $("", !0)
86666
86708
  ])) : $("", !0),
86667
86709
  EJ(Q("textarea", {
86668
86710
  "onUpdate:modelValue": h[1] || (h[1] = (e) => /* @__PURE__ */ Yq(n) ? n.value = e : null),
@@ -86671,9 +86713,9 @@ var eBe = {
86671
86713
  rows: e.inputRows,
86672
86714
  onKeydown: h[2] || (h[2] = (...e) => Y(i) && Y(i)(...e)),
86673
86715
  onPaste: w
86674
- }, null, 40, jBe), [[EZ, Y(n)]]),
86675
- Q("div", MBe, [
86676
- Q("span", NBe, J(Y(d).sendHint), 1),
86716
+ }, null, 40, MBe), [[EZ, Y(n)]]),
86717
+ Q("div", NBe, [
86718
+ Q("span", PBe, J(Y(d).sendHint), 1),
86677
86719
  Q("button", {
86678
86720
  class: "attach-btn",
86679
86721
  title: Y(d).attachImageTitle,
@@ -86682,7 +86724,7 @@ var eBe = {
86682
86724
  }, [Y(u).attachImage ? (X(), hX(v9, {
86683
86725
  key: 0,
86684
86726
  icon: Y(u).attachImage
86685
- }, null, 8, ["icon"])) : (X(), Z("svg", FBe, [...h[6] || (h[6] = [Q("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" }, null, -1)])]))], 8, PBe),
86727
+ }, null, 8, ["icon"])) : (X(), Z("svg", IBe, [...h[6] || (h[6] = [Q("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" }, null, -1)])]))], 8, FBe),
86686
86728
  Q("input", {
86687
86729
  ref_key: "fileInput",
86688
86730
  ref: y,
@@ -86698,7 +86740,7 @@ var eBe = {
86698
86740
  disabled: !Y(f).loading && !Y(n).trim() && !Y(m).length && !Y(v),
86699
86741
  title: Y(f).loading ? Y(d).stopTitle : Y(d).sendTitle,
86700
86742
  onClick: h[3] || (h[3] = (e) => Y(f).loading ? Y(p)() : Y(r)())
86701
- }, [Y(f).loading ? (X(), Z("svg", LBe, [...h[7] || (h[7] = [Q("rect", {
86743
+ }, [Y(f).loading ? (X(), Z("svg", RBe, [...h[7] || (h[7] = [Q("rect", {
86702
86744
  x: "6",
86703
86745
  y: "6",
86704
86746
  width: "12",
@@ -86707,12 +86749,12 @@ var eBe = {
86707
86749
  }, null, -1)])])) : Y(u).send ? (X(), hX(v9, {
86708
86750
  key: 1,
86709
86751
  icon: Y(u).send
86710
- }, null, 8, ["icon"])) : (X(), Z("svg", RBe, [...h[8] || (h[8] = [Q("line", {
86752
+ }, null, 8, ["icon"])) : (X(), Z("svg", zBe, [...h[8] || (h[8] = [Q("line", {
86711
86753
  x1: "22",
86712
86754
  y1: "2",
86713
86755
  x2: "11",
86714
86756
  y2: "13"
86715
- }, null, -1), Q("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)])]))], 10, IBe)
86757
+ }, null, -1), Q("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)])]))], 10, LBe)
86716
86758
  ])
86717
86759
  ], 34)]));
86718
86760
  }
@@ -86720,178 +86762,178 @@ var eBe = {
86720
86762
  //#endregion
86721
86763
  //#region src/core/components/DebugDrawer.vue?vue&type=script&setup=true&lang.ts
86722
86764
  M();
86723
- var BBe = {
86765
+ var VBe = {
86724
86766
  key: 0,
86725
86767
  class: "debug-drawer"
86726
- }, VBe = { class: "drawer-header" }, HBe = { class: "tab-group" }, UBe = { class: "header-actions" }, WBe = ["title"], GBe = ["title"], KBe = ["title"], qBe = {
86768
+ }, HBe = { class: "drawer-header" }, UBe = { class: "tab-group" }, WBe = { class: "header-actions" }, GBe = ["title"], KBe = ["title"], qBe = ["title"], JBe = {
86727
86769
  key: 0,
86728
86770
  class: "drawer-filters"
86729
- }, JBe = ["onClick"], YBe = { class: "chip-count" }, XBe = { class: "chip-count" }, ZBe = {
86771
+ }, YBe = ["onClick"], XBe = { class: "chip-count" }, ZBe = { class: "chip-count" }, QBe = {
86730
86772
  key: 0,
86731
86773
  class: "context-panel"
86732
- }, QBe = {
86774
+ }, $Be = {
86733
86775
  key: 0,
86734
86776
  class: "trace-empty"
86735
- }, $Be = { class: "ctx-overview" }, eVe = { class: "ctx-occupancy" }, tVe = ["title"], nVe = ["title"], rVe = { class: "ctx-pct" }, iVe = { class: "ctx-kv-row" }, aVe = { class: "ctx-kv" }, oVe = {
86777
+ }, eVe = { class: "ctx-overview" }, tVe = { class: "ctx-occupancy" }, nVe = ["title"], rVe = ["title"], iVe = { class: "ctx-pct" }, aVe = { class: "ctx-kv-row" }, oVe = { class: "ctx-kv" }, sVe = {
86736
86778
  key: 0,
86737
86779
  class: "ctx-kv"
86738
- }, sVe = {
86780
+ }, cVe = {
86739
86781
  key: 1,
86740
86782
  class: "ctx-kv"
86741
- }, cVe = { class: "ctx-section-title" }, lVe = ["title"], uVe = { class: "ctx-cat-bar" }, dVe = { class: "ctx-cat-tokens" }, fVe = {
86783
+ }, lVe = { class: "ctx-section-title" }, uVe = ["title"], dVe = { class: "ctx-cat-bar" }, fVe = { class: "ctx-cat-tokens" }, pVe = {
86742
86784
  key: 0,
86743
86785
  class: "ctx-compression"
86744
- }, pVe = { class: "ctx-section-title" }, mVe = { class: "ctx-kv-row" }, hVe = { class: "ctx-kv" }, gVe = { class: "ctx-kv" }, _Ve = { class: "ctx-kv" }, vVe = {
86786
+ }, mVe = { class: "ctx-section-title" }, hVe = { class: "ctx-kv-row" }, gVe = { class: "ctx-kv" }, _Ve = { class: "ctx-kv" }, vVe = { class: "ctx-kv" }, yVe = {
86745
86787
  key: 0,
86746
86788
  class: "ctx-kv"
86747
- }, yVe = {
86789
+ }, bVe = {
86748
86790
  key: 1,
86749
86791
  class: "subagent-panel"
86750
- }, bVe = {
86792
+ }, xVe = {
86751
86793
  key: 0,
86752
86794
  class: "sub-section"
86753
- }, xVe = { class: "sub-section-title" }, SVe = {
86795
+ }, SVe = { class: "sub-section-title" }, CVe = {
86754
86796
  key: 1,
86755
86797
  class: "trace-empty"
86756
- }, CVe = {
86798
+ }, wVe = {
86757
86799
  key: 0,
86758
86800
  class: "sub-section"
86759
- }, wVe = { class: "sub-section-title" }, TVe = { class: "sub-head" }, EVe = { class: "sub-label" }, DVe = { class: "sub-steps-badge" }, OVe = { class: "sub-task" }, kVe = {
86801
+ }, TVe = { class: "sub-section-title" }, EVe = { class: "sub-head" }, DVe = { class: "sub-label" }, OVe = { class: "sub-steps-badge" }, kVe = { class: "sub-task" }, AVe = {
86760
86802
  key: 1,
86761
86803
  class: "sub-section"
86762
- }, AVe = { class: "sub-section-title" }, jVe = { class: "sub-head" }, MVe = { class: "sub-label" }, NVe = {
86804
+ }, jVe = { class: "sub-section-title" }, MVe = { class: "sub-head" }, NVe = { class: "sub-label" }, PVe = {
86763
86805
  key: 0,
86764
86806
  class: "sub-dur"
86765
- }, PVe = ["onClick"], FVe = { class: "sub-task" }, IVe = {
86807
+ }, FVe = ["onClick"], IVe = { class: "sub-task" }, LVe = {
86766
86808
  key: 0,
86767
86809
  class: "sub-result"
86768
- }, LVe = {
86810
+ }, RVe = {
86769
86811
  key: 1,
86770
86812
  class: "sub-steps-list"
86771
- }, RVe = { class: "sub-step-kind" }, zVe = { class: "sub-step-name" }, BVe = { class: "sub-step-ts" }, VVe = {
86813
+ }, zVe = { class: "sub-step-kind" }, BVe = { class: "sub-step-name" }, VVe = { class: "sub-step-ts" }, HVe = {
86772
86814
  key: 0,
86773
86815
  class: "empty"
86774
- }, HVe = ["onClick"], UVe = { class: "log-group-title" }, WVe = { class: "log-group-meta" }, GVe = {
86816
+ }, UVe = ["onClick"], WVe = { class: "log-group-title" }, GVe = { class: "log-group-meta" }, KVe = {
86775
86817
  key: 0,
86776
86818
  class: "lg-badge"
86777
- }, KVe = {
86819
+ }, qVe = {
86778
86820
  key: 1,
86779
86821
  class: "lg-badge"
86780
- }, qVe = {
86822
+ }, JVe = {
86781
86823
  key: 2,
86782
86824
  class: "lg-badge err"
86783
- }, JVe = { class: "log-group-body" }, YVe = { class: "log-head" }, XVe = {
86825
+ }, YVe = { class: "log-group-body" }, XVe = { class: "log-head" }, ZVe = {
86784
86826
  key: 0,
86785
86827
  class: "log-source"
86786
- }, ZVe = { class: "log-time" }, QVe = { class: "log-body" }, $Ve = { class: "kv-grid" }, eHe = { class: "kv" }, tHe = { class: "k" }, nHe = { class: "v" }, rHe = { class: "kv" }, iHe = { class: "k" }, aHe = { class: "v" }, oHe = { class: "kv" }, sHe = { class: "v" }, cHe = { class: "kv" }, lHe = { class: "k" }, uHe = { class: "v" }, dHe = { class: "section-label" }, fHe = { class: "chip-row" }, pHe = { class: "section-label" }, mHe = { class: "msg-list" }, hHe = { class: "msg-text" }, gHe = { class: "badge-row" }, _He = { class: "badge" }, vHe = {
86828
+ }, QVe = { class: "log-time" }, $Ve = { class: "log-body" }, eHe = { class: "kv-grid" }, tHe = { class: "kv" }, nHe = { class: "k" }, rHe = { class: "v" }, iHe = { class: "kv" }, aHe = { class: "k" }, oHe = { class: "v" }, sHe = { class: "kv" }, cHe = { class: "v" }, lHe = { class: "kv" }, uHe = { class: "k" }, dHe = { class: "v" }, fHe = { class: "section-label" }, pHe = { class: "chip-row" }, mHe = { class: "section-label" }, hHe = { class: "msg-list" }, gHe = { class: "msg-text" }, _He = { class: "badge-row" }, vHe = { class: "badge" }, yHe = {
86787
86829
  key: 0,
86788
86830
  class: "badge muted"
86789
- }, yHe = { class: "badge muted" }, bHe = {
86831
+ }, bHe = { class: "badge muted" }, xHe = {
86790
86832
  key: 1,
86791
86833
  class: "badge muted"
86792
- }, xHe = ["onClick"], SHe = ["title", "onClick"], CHe = ["onClick"], wHe = ["title", "onClick"], THe = { class: "msg-detail" }, EHe = {
86834
+ }, SHe = ["onClick"], CHe = ["title", "onClick"], wHe = ["onClick"], THe = ["title", "onClick"], EHe = { class: "msg-detail" }, DHe = {
86793
86835
  key: 0,
86794
86836
  class: "msg-text"
86795
- }, DHe = { class: "tc-inline-name" }, OHe = { class: "tc-inline-args" }, kHe = {
86837
+ }, OHe = { class: "tc-inline-name" }, kHe = { class: "tc-inline-args" }, AHe = {
86796
86838
  key: 1,
86797
86839
  class: "tc-id"
86798
- }, AHe = {
86840
+ }, jHe = {
86799
86841
  key: 1,
86800
86842
  class: "log-raw"
86801
- }, jHe = { class: "badge-row" }, MHe = { class: "badge" }, NHe = {
86843
+ }, MHe = { class: "badge-row" }, NHe = { class: "badge" }, PHe = {
86802
86844
  key: 0,
86803
86845
  class: "badge warn"
86804
- }, PHe = {
86846
+ }, FHe = {
86805
86847
  key: 0,
86806
86848
  class: "resp-content"
86807
- }, FHe = {
86849
+ }, IHe = {
86808
86850
  key: 1,
86809
86851
  class: "tc-list"
86810
- }, IHe = { class: "tc-name" }, LHe = { class: "tc-args" }, RHe = {
86852
+ }, LHe = { class: "tc-name" }, RHe = { class: "tc-args" }, zHe = {
86811
86853
  key: 2,
86812
86854
  class: "usage-row"
86813
- }, zHe = { class: "usage" }, BHe = { class: "usage" }, VHe = { class: "usage" }, HHe = {
86855
+ }, BHe = { class: "usage" }, VHe = { class: "usage" }, HHe = { class: "usage" }, UHe = {
86814
86856
  key: 0,
86815
86857
  class: "usage"
86816
- }, UHe = { class: "tc-name" }, WHe = {
86858
+ }, WHe = { class: "tc-name" }, GHe = {
86817
86859
  key: 0,
86818
86860
  class: "tc-dur"
86819
- }, GHe = ["title", "onClick"], KHe = { class: "tc-args" }, qHe = { class: "tc-result-sep" }, JHe = { class: "tc-args tc-result" }, YHe = {
86861
+ }, KHe = ["title", "onClick"], qHe = { class: "tc-args" }, JHe = { class: "tc-result-sep" }, YHe = { class: "tc-args tc-result" }, XHe = {
86820
86862
  key: 1,
86821
86863
  class: "tc-card inline"
86822
- }, XHe = { class: "tc-name" }, ZHe = {
86864
+ }, ZHe = { class: "tc-name" }, QHe = {
86823
86865
  key: 0,
86824
86866
  class: "tc-dur running"
86825
- }, QHe = { class: "tc-args" }, $He = {
86867
+ }, $He = { class: "tc-args" }, eUe = {
86826
86868
  key: 4,
86827
86869
  class: "err-box"
86828
- }, eUe = { class: "log-footer" }, tUe = ["onClick"], nUe = ["onClick"], rUe = {
86870
+ }, tUe = { class: "log-footer" }, nUe = ["onClick"], rUe = ["onClick"], iUe = {
86829
86871
  key: 0,
86830
86872
  class: "log-raw"
86831
- }, iUe = {
86873
+ }, aUe = {
86832
86874
  key: 3,
86833
86875
  class: "info-body"
86834
- }, aUe = {
86876
+ }, oUe = {
86835
86877
  key: 0,
86836
86878
  class: "empty"
86837
- }, oUe = { class: "info-section" }, sUe = { class: "info-title" }, cUe = { class: "kv-grid" }, lUe = { class: "kv" }, uUe = { class: "v" }, dUe = { class: "kv" }, fUe = { class: "k" }, pUe = { class: "v" }, mUe = { class: "kv" }, hUe = { class: "k" }, gUe = { class: "v" }, _Ue = { class: "kv" }, vUe = { class: "k" }, yUe = { class: "v" }, bUe = {
86879
+ }, sUe = { class: "info-section" }, cUe = { class: "info-title" }, lUe = { class: "kv-grid" }, uUe = { class: "kv" }, dUe = { class: "v" }, fUe = { class: "kv" }, pUe = { class: "k" }, mUe = { class: "v" }, hUe = { class: "kv" }, gUe = { class: "k" }, _Ue = { class: "v" }, vUe = { class: "kv" }, yUe = { class: "k" }, bUe = { class: "v" }, xUe = {
86838
86880
  class: "kv",
86839
86881
  style: { "margin-top": "6px" }
86840
- }, xUe = { class: "k" }, SUe = {
86882
+ }, SUe = { class: "k" }, CUe = {
86841
86883
  class: "v",
86842
86884
  style: { "font-size": "11px" }
86843
- }, CUe = { class: "info-section" }, wUe = { class: "info-title" }, TUe = { class: "info-name" }, EUe = { class: "info-desc" }, DUe = {
86885
+ }, wUe = { class: "info-section" }, TUe = { class: "info-title" }, EUe = { class: "info-name" }, DUe = { class: "info-desc" }, OUe = {
86844
86886
  key: 0,
86845
86887
  class: "info-section"
86846
- }, OUe = { class: "info-title" }, kUe = { class: "info-hint" }, AUe = ["onClick"], jUe = { class: "info-desc" }, MUe = {
86888
+ }, kUe = { class: "info-title" }, AUe = { class: "info-hint" }, jUe = ["onClick"], MUe = { class: "info-desc" }, NUe = {
86847
86889
  key: 0,
86848
86890
  class: "skill-content"
86849
- }, NUe = {
86891
+ }, PUe = {
86850
86892
  key: 0,
86851
86893
  class: "skill-loading"
86852
- }, PUe = {
86894
+ }, FUe = {
86853
86895
  key: 1,
86854
86896
  class: "skill-error"
86855
- }, FUe = {
86897
+ }, IUe = {
86856
86898
  key: 2,
86857
86899
  class: "skill-pre"
86858
- }, IUe = {
86900
+ }, LUe = {
86859
86901
  key: 1,
86860
86902
  class: "info-section"
86861
- }, LUe = { class: "info-title" }, RUe = { class: "info-item" }, zUe = { class: "info-name" }, BUe = { class: "info-desc" }, VUe = { class: "info-section" }, HUe = { class: "info-title" }, UUe = { class: "kv-grid" }, WUe = { class: "kv" }, GUe = { class: "k" }, KUe = { class: "v" }, qUe = { class: "kv" }, JUe = { class: "k" }, YUe = { class: "v" }, XUe = { class: "kv" }, ZUe = { class: "k" }, QUe = { class: "v" }, $Ue = { class: "kv" }, eWe = { class: "k" }, tWe = {
86903
+ }, RUe = { class: "info-title" }, zUe = { class: "info-item" }, BUe = { class: "info-name" }, VUe = { class: "info-desc" }, HUe = { class: "info-section" }, UUe = { class: "info-title" }, WUe = { class: "kv-grid" }, GUe = { class: "kv" }, KUe = { class: "k" }, qUe = { class: "v" }, JUe = { class: "kv" }, YUe = { class: "k" }, XUe = { class: "v" }, ZUe = { class: "kv" }, QUe = { class: "k" }, $Ue = { class: "v" }, eWe = { class: "kv" }, tWe = { class: "k" }, nWe = {
86862
86904
  class: "v",
86863
86905
  style: { "font-size": "11px" }
86864
- }, nWe = {
86906
+ }, rWe = {
86865
86907
  key: 2,
86866
86908
  class: "info-section"
86867
- }, rWe = { class: "info-title" }, iWe = { class: "info-name" }, aWe = { class: "src-tag mcp" }, oWe = { class: "info-desc" }, sWe = {
86909
+ }, iWe = { class: "info-title" }, aWe = { class: "info-name" }, oWe = { class: "src-tag mcp" }, sWe = { class: "info-desc" }, cWe = {
86868
86910
  key: 3,
86869
86911
  class: "info-section"
86870
- }, cWe = { class: "info-title" }, lWe = { class: "kv-grid" }, uWe = { class: "kv" }, dWe = { class: "k" }, fWe = { class: "v" }, pWe = { class: "kv" }, mWe = { class: "k" }, hWe = { class: "v" }, gWe = { class: "kv" }, _We = { class: "k" }, vWe = { class: "v" }, yWe = {
86912
+ }, lWe = { class: "info-title" }, uWe = { class: "kv-grid" }, dWe = { class: "kv" }, fWe = { class: "k" }, pWe = { class: "v" }, mWe = { class: "kv" }, hWe = { class: "k" }, gWe = { class: "v" }, _We = { class: "kv" }, vWe = { class: "k" }, yWe = { class: "v" }, bWe = {
86871
86913
  key: 0,
86872
86914
  class: "kv"
86873
- }, bWe = { class: "k" }, xWe = {
86915
+ }, xWe = { class: "k" }, SWe = {
86874
86916
  class: "v",
86875
86917
  style: { "font-size": "11px" }
86876
- }, SWe = {
86918
+ }, CWe = {
86877
86919
  key: 4,
86878
86920
  class: "info-section"
86879
- }, CWe = { class: "info-title" }, wWe = {
86921
+ }, wWe = { class: "info-title" }, TWe = {
86880
86922
  key: 5,
86881
86923
  class: "info-section"
86882
- }, TWe = { class: "info-title" }, EWe = { class: "info-pre" }, DWe = {
86924
+ }, EWe = { class: "info-title" }, DWe = { class: "info-pre" }, OWe = {
86883
86925
  key: 6,
86884
86926
  class: "info-section"
86885
- }, OWe = { class: "info-title" }, kWe = { class: "info-kv" }, AWe = { class: "kv" }, jWe = { class: "k" }, MWe = { class: "v" }, NWe = { class: "kv" }, PWe = { class: "k" }, FWe = { class: "v" }, IWe = { class: "kv" }, LWe = { class: "k" }, RWe = { class: "v" }, zWe = { class: "kv" }, BWe = { class: "k" }, VWe = { class: "v" }, HWe = { class: "kv" }, UWe = { class: "k" }, WWe = {
86927
+ }, kWe = { class: "info-title" }, AWe = { class: "info-kv" }, jWe = { class: "kv" }, MWe = { class: "k" }, NWe = { class: "v" }, PWe = { class: "kv" }, FWe = { class: "k" }, IWe = { class: "v" }, LWe = { class: "kv" }, RWe = { class: "k" }, zWe = { class: "v" }, BWe = { class: "kv" }, VWe = { class: "k" }, HWe = { class: "v" }, UWe = { class: "kv" }, WWe = { class: "k" }, GWe = {
86886
86928
  class: "v",
86887
86929
  style: { "font-size": "11px" }
86888
- }, GWe = {
86930
+ }, KWe = {
86889
86931
  key: 0,
86890
86932
  class: "kv"
86891
- }, KWe = { class: "k" }, qWe = {
86933
+ }, qWe = { class: "k" }, JWe = {
86892
86934
  class: "v",
86893
86935
  style: { "font-size": "11px" }
86894
- }, $9 = 400, JWe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86936
+ }, $9 = 400, YWe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
86895
86937
  __name: "DebugDrawer",
86896
86938
  props: {
86897
86939
  logs: { default: () => [] },
@@ -87310,8 +87352,8 @@ var BBe = {
87310
87352
  return (t, n) => (X(), hX(VJ, { to: "body" }, [bX(ZX, { name: "drawer" }, {
87311
87353
  default: TJ(() => {
87312
87354
  var t;
87313
- return [e.visible ? (X(), Z("div", BBe, [Q("div", { class: zK(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
87314
- Q("div", VBe, [Q("div", HBe, [
87355
+ return [e.visible ? (X(), Z("div", VBe, [Q("div", { class: zK(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
87356
+ Q("div", HBe, [Q("div", UBe, [
87315
87357
  Q("button", {
87316
87358
  class: zK(["tab-btn", { active: ue.value === "logs" }]),
87317
87359
  onClick: n[0] || (n[0] = (e) => me("logs"))
@@ -87331,33 +87373,33 @@ var BBe = {
87331
87373
  class: zK(["tab-btn", { active: ue.value === "info" }]),
87332
87374
  onClick: n[3] || (n[3] = (e) => me("info"))
87333
87375
  }, "🧬 " + J(y.value.debugTabInfo), 3)) : $("", !0)
87334
- ]), Q("div", UBe, [
87376
+ ]), Q("div", WBe, [
87335
87377
  Q("button", {
87336
87378
  class: "hd-btn",
87337
87379
  title: y.value.debugCopyReport,
87338
87380
  onClick: v
87339
- }, J(g.value === "report" ? "✓" : "💾"), 9, WBe),
87381
+ }, J(g.value === "report" ? "✓" : "💾"), 9, GBe),
87340
87382
  ue.value === "logs" ? (X(), Z("button", {
87341
87383
  key: 0,
87342
87384
  class: "hd-btn",
87343
87385
  title: y.value.debugClearLogs,
87344
87386
  onClick: le
87345
- }, "🗑️", 8, GBe)) : $("", !0),
87387
+ }, "🗑️", 8, KBe)) : $("", !0),
87346
87388
  Q("button", {
87347
87389
  class: "hd-btn",
87348
87390
  title: y.value.close,
87349
87391
  onClick: F
87350
- }, "✕", 8, KBe)
87392
+ }, "✕", 8, qBe)
87351
87393
  ])]),
87352
- ue.value === "logs" ? (X(), Z("div", qBe, [(X(!0), Z(oX, null, gY(b.value, (e, t) => (X(), Z("button", {
87394
+ ue.value === "logs" ? (X(), Z("div", JBe, [(X(!0), Z(oX, null, gY(b.value, (e, t) => (X(), Z("button", {
87353
87395
  key: t,
87354
87396
  class: zK(["filter-chip", { active: i.value === t }]),
87355
87397
  style: RK({ "--chip-color": e.color }),
87356
87398
  onClick: (e) => i.value = t
87357
- }, [SX(J(e.icon) + " " + J(e.label) + " ", 1), Q("span", YBe, J(C.value[t] || 0), 1)], 14, JBe))), 128)), Q("button", {
87399
+ }, [SX(J(e.icon) + " " + J(e.label) + " ", 1), Q("span", XBe, J(C.value[t] || 0), 1)], 14, YBe))), 128)), Q("button", {
87358
87400
  class: zK(["filter-chip all", { active: i.value === "all" }]),
87359
87401
  onClick: n[4] || (n[4] = (e) => i.value = "all")
87360
- }, [SX(J(y.value.debugFilterAll) + " ", 1), Q("span", XBe, J(C.value.all || 0), 1)], 2)])) : $("", !0),
87402
+ }, [SX(J(y.value.debugFilterAll) + " ", 1), Q("span", ZBe, J(C.value.all || 0), 1)], 2)])) : $("", !0),
87361
87403
  Q("div", {
87362
87404
  class: "drawer-body",
87363
87405
  ref_key: "drawerBodyEl",
@@ -87371,8 +87413,8 @@ var BBe = {
87371
87413
  ref_key: "drawerContentsEl",
87372
87414
  ref: c
87373
87415
  }, [
87374
- ue.value === "context" ? (X(), Z("div", ZBe, [be.value ? (X(), Z(oX, { key: 1 }, [be.value ? (X(), Z(oX, { key: 0 }, [
87375
- Q("div", $Be, [Q("div", eVe, [Q("div", {
87416
+ ue.value === "context" ? (X(), Z("div", QBe, [be.value ? (X(), Z(oX, { key: 1 }, [be.value ? (X(), Z(oX, { key: 0 }, [
87417
+ Q("div", eVe, [Q("div", tVe, [Q("div", {
87376
87418
  class: "ctx-bar-track",
87377
87419
  title: `${y.value.debugCtxOccupancy} ${Math.round(be.value.occupancy * 100)}%`
87378
87420
  }, [Q("div", {
@@ -87383,12 +87425,12 @@ var BBe = {
87383
87425
  class: "ctx-threshold-mark",
87384
87426
  style: RK({ left: Math.min(be.value.thresholdRatio * 100, 100) + "%" }),
87385
87427
  title: y.value.debugCtxThreshold
87386
- }, null, 12, nVe)) : $("", !0)], 8, tVe), Q("span", rVe, J(Math.round(be.value.occupancy * 100)) + "%", 1)]), Q("div", iVe, [
87387
- Q("span", aVe, J(y.value.debugCtxTokens) + " " + J(be.value.totalTokens) + " token", 1),
87388
- be.value.contextWindow ? (X(), Z("span", oVe, J(y.value.debugCtxWindow) + " " + J(be.value.contextWindow), 1)) : $("", !0),
87389
- be.value.thresholdRatio > 0 ? (X(), Z("span", sVe, J(y.value.debugCtxThresholdPct) + " " + J(Math.round(be.value.thresholdRatio * 100)) + "%", 1)) : $("", !0)
87428
+ }, null, 12, rVe)) : $("", !0)], 8, nVe), Q("span", iVe, J(Math.round(be.value.occupancy * 100)) + "%", 1)]), Q("div", aVe, [
87429
+ Q("span", oVe, J(y.value.debugCtxTokens) + " " + J(be.value.totalTokens) + " token", 1),
87430
+ be.value.contextWindow ? (X(), Z("span", sVe, J(y.value.debugCtxWindow) + " " + J(be.value.contextWindow), 1)) : $("", !0),
87431
+ be.value.thresholdRatio > 0 ? (X(), Z("span", cVe, J(y.value.debugCtxThresholdPct) + " " + J(Math.round(be.value.thresholdRatio * 100)) + "%", 1)) : $("", !0)
87390
87432
  ])]),
87391
- Q("div", cVe, J(y.value.debugCtxCategories), 1),
87433
+ Q("div", lVe, J(y.value.debugCtxCategories), 1),
87392
87434
  (X(!0), Z(oX, null, gY(be.value.categories, (e) => (X(), Z("div", {
87393
87435
  key: e.key,
87394
87436
  class: "ctx-cat"
@@ -87396,62 +87438,62 @@ var BBe = {
87396
87438
  Q("span", {
87397
87439
  class: "ctx-cat-label",
87398
87440
  title: e.label
87399
- }, J(e.label), 9, lVe),
87400
- Q("div", uVe, [Q("div", {
87441
+ }, J(e.label), 9, uVe),
87442
+ Q("div", dVe, [Q("div", {
87401
87443
  class: "ctx-cat-fill",
87402
87444
  style: RK({ width: Math.max(Math.round(e.pct * 100), 2) + "%" })
87403
87445
  }, null, 4)]),
87404
- Q("span", dVe, [SX(J(e.tokens) + " ", 1), Q("i", null, "(" + J(Math.round(e.pct * 100)) + "%)", 1)])
87446
+ Q("span", fVe, [SX(J(e.tokens) + " ", 1), Q("i", null, "(" + J(Math.round(e.pct * 100)) + "%)", 1)])
87405
87447
  ]))), 128)),
87406
- be.value.compression ? (X(), Z("div", fVe, [Q("div", pVe, J(y.value.debugCtxLastCompression), 1), Q("div", mVe, [
87407
- Q("span", hVe, J(y.value.debugCtxSummarized) + " " + J(be.value.compression.roundsSummarized) + "/" + J(be.value.compression.roundsTotal) + J(y.value.debugCtxRoundsSuffix), 1),
87408
- Q("span", gVe, J(y.value.debugCtxRecalled) + " " + J(be.value.compression.roundsRecalled), 1),
87409
- Q("span", _Ve, J(be.value.compression.strategy), 1),
87410
- be.value.compression.decision ? (X(), Z("span", vVe, "🤖 " + J(y.value.debugCtxAgentDecision) + J(Oe(be.value.compression.decision)), 1)) : $("", !0)
87448
+ be.value.compression ? (X(), Z("div", pVe, [Q("div", mVe, J(y.value.debugCtxLastCompression), 1), Q("div", hVe, [
87449
+ Q("span", gVe, J(y.value.debugCtxSummarized) + " " + J(be.value.compression.roundsSummarized) + "/" + J(be.value.compression.roundsTotal) + J(y.value.debugCtxRoundsSuffix), 1),
87450
+ Q("span", _Ve, J(y.value.debugCtxRecalled) + " " + J(be.value.compression.roundsRecalled), 1),
87451
+ Q("span", vVe, J(be.value.compression.strategy), 1),
87452
+ be.value.compression.decision ? (X(), Z("span", yVe, "🤖 " + J(y.value.debugCtxAgentDecision) + J(Oe(be.value.compression.decision)), 1)) : $("", !0)
87411
87453
  ])])) : $("", !0)
87412
- ], 64)) : $("", !0)], 64)) : (X(), Z("div", QBe, J(y.value.debugCtxEmpty), 1))])) : $("", !0),
87413
- ue.value === "subagent" ? (X(), Z("div", yVe, [we.value.length ? (X(), Z("div", bVe, [Q("div", xVe, "🔒 " + J(y.value.debugLocksTitle) + " (" + J(we.value.length) + ")", 1), (X(!0), Z(oX, null, gY(we.value, ([e, t]) => (X(), Z("div", {
87454
+ ], 64)) : $("", !0)], 64)) : (X(), Z("div", $Be, J(y.value.debugCtxEmpty), 1))])) : $("", !0),
87455
+ ue.value === "subagent" ? (X(), Z("div", bVe, [we.value.length ? (X(), Z("div", xVe, [Q("div", SVe, "🔒 " + J(y.value.debugLocksTitle) + " (" + J(we.value.length) + ")", 1), (X(!0), Z(oX, null, gY(we.value, ([e, t]) => (X(), Z("div", {
87414
87456
  key: "lock-" + e,
87415
87457
  class: "sub-task"
87416
- }, "🔒 " + J(e) + " ← " + J(t), 1))), 128))])) : $("", !0), !Se.value.length && !Ce.value.length ? (X(), Z("div", SVe, J(y.value.debugSubagentEmpty), 1)) : (X(), Z(oX, { key: 2 }, [Se.value.length ? (X(), Z("div", CVe, [Q("div", wVe, "▶ " + J(y.value.debugSubRunningTitle) + " (" + J(Se.value.length) + ")", 1), (X(!0), Z(oX, null, gY(Se.value, (e, t) => (X(), Z("div", {
87458
+ }, "🔒 " + J(e) + " ← " + J(t), 1))), 128))])) : $("", !0), !Se.value.length && !Ce.value.length ? (X(), Z("div", CVe, J(y.value.debugSubagentEmpty), 1)) : (X(), Z(oX, { key: 2 }, [Se.value.length ? (X(), Z("div", wVe, [Q("div", TVe, "▶ " + J(y.value.debugSubRunningTitle) + " (" + J(Se.value.length) + ")", 1), (X(!0), Z(oX, null, gY(Se.value, (e, t) => (X(), Z("div", {
87417
87459
  key: "a" + t,
87418
87460
  class: zK(["sub-card", e.status])
87419
- }, [Q("div", TVe, [
87461
+ }, [Q("div", EVe, [
87420
87462
  Q("span", {
87421
87463
  class: "sub-status",
87422
87464
  style: RK({ background: Te.value[e.status] && Te.value[e.status].color || "#9ca3af" })
87423
87465
  }, J(Te.value[e.status] && Te.value[e.status].label || e.status), 5),
87424
- Q("span", EVe, J(e.label), 1),
87425
- Q("span", DVe, J(e.steps.length) + J(y.value.debugStepsCountSuffix), 1)
87426
- ]), Q("div", OVe, J(ve(e.task, 80)), 1)], 2))), 128))])) : $("", !0), Ce.value.length ? (X(), Z("div", kVe, [Q("div", AVe, "🕐 " + J(y.value.debugSubHistoryTitle) + " (" + J(Ce.value.length) + ")", 1), (X(!0), Z(oX, null, gY(Ce.value, (e, t) => (X(), Z("div", {
87466
+ Q("span", DVe, J(e.label), 1),
87467
+ Q("span", OVe, J(e.steps.length) + J(y.value.debugStepsCountSuffix), 1)
87468
+ ]), Q("div", kVe, J(ve(e.task, 80)), 1)], 2))), 128))])) : $("", !0), Ce.value.length ? (X(), Z("div", AVe, [Q("div", jVe, "🕐 " + J(y.value.debugSubHistoryTitle) + " (" + J(Ce.value.length) + ")", 1), (X(!0), Z(oX, null, gY(Ce.value, (e, t) => (X(), Z("div", {
87427
87469
  key: "h" + t,
87428
87470
  class: zK(["sub-card", e.status])
87429
87471
  }, [
87430
- Q("div", jVe, [
87472
+ Q("div", MVe, [
87431
87473
  Q("span", {
87432
87474
  class: "sub-status",
87433
87475
  style: RK({ background: Te.value[e.status] && Te.value[e.status].color || "#9ca3af" })
87434
87476
  }, J(Te.value[e.status] && Te.value[e.status].label || e.status), 5),
87435
- Q("span", MVe, J(e.label), 1),
87436
- e.durationMs == null ? $("", !0) : (X(), Z("span", NVe, J(ye(e.durationMs)), 1)),
87477
+ Q("span", NVe, J(e.label), 1),
87478
+ e.durationMs == null ? $("", !0) : (X(), Z("span", PVe, J(ye(e.durationMs)), 1)),
87437
87479
  e.steps.length ? (X(), Z("button", {
87438
87480
  key: 1,
87439
87481
  class: "sub-toggle",
87440
87482
  onClick: (e) => De(t)
87441
- }, J(Ee.value.has(t) ? y.value.collapse : y.value.debugStepsBtn), 9, PVe)) : $("", !0)
87483
+ }, J(Ee.value.has(t) ? y.value.collapse : y.value.debugStepsBtn), 9, FVe)) : $("", !0)
87442
87484
  ]),
87443
- Q("div", FVe, J(ve(e.task, 80)), 1),
87444
- e.resultPreview ? (X(), Z("div", IVe, J(e.resultPreview), 1)) : $("", !0),
87445
- Ee.value.has(t) && e.steps.length ? (X(), Z("div", LVe, [(X(!0), Z(oX, null, gY(e.steps, (e, t) => (X(), Z("div", {
87485
+ Q("div", IVe, J(ve(e.task, 80)), 1),
87486
+ e.resultPreview ? (X(), Z("div", LVe, J(e.resultPreview), 1)) : $("", !0),
87487
+ Ee.value.has(t) && e.steps.length ? (X(), Z("div", RVe, [(X(!0), Z(oX, null, gY(e.steps, (e, t) => (X(), Z("div", {
87446
87488
  key: t,
87447
87489
  class: "sub-step"
87448
87490
  }, [
87449
- Q("span", RVe, J(e.kind === "tool_call" ? "🔧" : "✅"), 1),
87450
- Q("span", zVe, J(e.name), 1),
87451
- Q("span", BVe, J(re(e.ts)), 1)
87491
+ Q("span", zVe, J(e.kind === "tool_call" ? "🔧" : "✅"), 1),
87492
+ Q("span", BVe, J(e.name), 1),
87493
+ Q("span", VVe, J(re(e.ts)), 1)
87452
87494
  ]))), 128))])) : $("", !0)
87453
87495
  ], 2))), 128))])) : $("", !0)], 64))])) : $("", !0),
87454
- ue.value === "logs" ? (X(), Z(oX, { key: 2 }, [S.value.length === 0 ? (X(), Z("div", VVe, J(y.value.debugLogsEmpty), 1)) : $("", !0), (X(!0), Z(oX, null, gY(k.value, (e) => (X(), Z("div", {
87496
+ ue.value === "logs" ? (X(), Z(oX, { key: 2 }, [S.value.length === 0 ? (X(), Z("div", HVe, J(y.value.debugLogsEmpty), 1)) : $("", !0), (X(!0), Z(oX, null, gY(k.value, (e) => (X(), Z("div", {
87455
87497
  key: e.key,
87456
87498
  class: "log-group"
87457
87499
  }, [Q("div", {
@@ -87459,69 +87501,69 @@ var BBe = {
87459
87501
  onClick: (t) => N(e.key)
87460
87502
  }, [
87461
87503
  Q("span", { class: zK(["log-group-arrow", { open: te(e.key) }]) }, "▶", 2),
87462
- Q("span", UVe, J(P(e)), 1),
87463
- Q("span", WVe, [
87504
+ Q("span", WVe, J(P(e)), 1),
87505
+ Q("span", GVe, [
87464
87506
  SX(J(re(e.firstTs)), 1),
87465
87507
  e.lastTs > e.firstTs ? (X(), Z(oX, { key: 0 }, [SX(" ~ " + J(re(e.lastTs)), 1)], 64)) : $("", !0),
87466
87508
  SX(" · " + J(ye(e.lastTs - e.firstTs)), 1)
87467
87509
  ]),
87468
- e.toolCount ? (X(), Z("span", GVe, "🔧 " + J(e.toolCount), 1)) : $("", !0),
87469
- e.tokens == null ? $("", !0) : (X(), Z("span", KVe, "Σ " + J(e.tokens) + " tok", 1)),
87470
- e.errorCount ? (X(), Z("span", qVe, "❌ " + J(e.errorCount), 1)) : $("", !0)
87471
- ], 10, HVe), EJ(Q("div", JVe, [(X(!0), Z(oX, null, gY(e.entries, ({ log: e, pairCall: t, prevMsgCount: r, uid: i }) => {
87510
+ e.toolCount ? (X(), Z("span", KVe, "🔧 " + J(e.toolCount), 1)) : $("", !0),
87511
+ e.tokens == null ? $("", !0) : (X(), Z("span", qVe, "Σ " + J(e.tokens) + " tok", 1)),
87512
+ e.errorCount ? (X(), Z("span", JVe, "❌ " + J(e.errorCount), 1)) : $("", !0)
87513
+ ], 10, UVe), EJ(Q("div", YVe, [(X(!0), Z(oX, null, gY(e.entries, ({ log: e, pairCall: t, prevMsgCount: r, uid: i }) => {
87472
87514
  var o, s, c, l, u, v, x, S;
87473
87515
  return X(), Z("div", {
87474
87516
  key: i,
87475
87517
  class: "log-item"
87476
87518
  }, [
87477
- Q("div", YVe, [
87519
+ Q("div", XVe, [
87478
87520
  Q("span", {
87479
87521
  class: "log-type",
87480
87522
  style: RK({ background: b.value[e.type].color })
87481
87523
  }, J(b.value[e.type].icon) + " " + J(b.value[e.type].label), 5),
87482
- e.source ? (X(), Z("span", XVe, "↳ " + J(e.source), 1)) : $("", !0),
87483
- Q("span", ZVe, J(re(e.timestamp)), 1)
87524
+ e.source ? (X(), Z("span", ZVe, "↳ " + J(e.source), 1)) : $("", !0),
87525
+ Q("span", QVe, J(re(e.timestamp)), 1)
87484
87526
  ]),
87485
- Q("div", QVe, [e.type === "context" ? (X(), Z(oX, { key: 0 }, [
87486
- Q("div", $Ve, [
87487
- Q("div", eHe, [Q("span", tHe, J(y.value.debugModel), 1), Q("span", nHe, J(e.data.model), 1)]),
87488
- Q("div", rHe, [Q("span", iHe, J(y.value.debugTemperature), 1), Q("span", aHe, J(e.data.temperature), 1)]),
87489
- Q("div", oHe, [n[5] || (n[5] = Q("span", { class: "k" }, "MaxTokens", -1)), Q("span", sHe, J(e.data.maxTokens), 1)]),
87490
- Q("div", cHe, [Q("span", lHe, J(y.value.debugMessageCount), 1), Q("span", uHe, J(e.data.totalMessages), 1)])
87527
+ Q("div", $Ve, [e.type === "context" ? (X(), Z(oX, { key: 0 }, [
87528
+ Q("div", eHe, [
87529
+ Q("div", tHe, [Q("span", nHe, J(y.value.debugModel), 1), Q("span", rHe, J(e.data.model), 1)]),
87530
+ Q("div", iHe, [Q("span", aHe, J(y.value.debugTemperature), 1), Q("span", oHe, J(e.data.temperature), 1)]),
87531
+ Q("div", sHe, [n[5] || (n[5] = Q("span", { class: "k" }, "MaxTokens", -1)), Q("span", cHe, J(e.data.maxTokens), 1)]),
87532
+ Q("div", lHe, [Q("span", uHe, J(y.value.debugMessageCount), 1), Q("span", dHe, J(e.data.totalMessages), 1)])
87491
87533
  ]),
87492
- Q("div", dHe, J(y.value.debugToolsLabel) + " (" + J(((o = e.data.tools) == null ? void 0 : o.length) || 0) + ")", 1),
87493
- Q("div", fHe, [(X(!0), Z(oX, null, gY(e.data.tools, (e) => (X(), Z("span", {
87534
+ Q("div", fHe, J(y.value.debugToolsLabel) + " (" + J(((o = e.data.tools) == null ? void 0 : o.length) || 0) + ")", 1),
87535
+ Q("div", pHe, [(X(!0), Z(oX, null, gY(e.data.tools, (e) => (X(), Z("span", {
87494
87536
  key: e,
87495
87537
  class: "tool-chip"
87496
87538
  }, J(e), 1))), 128))]),
87497
- Q("div", pHe, J(y.value.debugContextMessages), 1),
87498
- Q("div", mHe, [(X(!0), Z(oX, null, gY(e.data.messages, (e, t) => (X(), Z("div", {
87539
+ Q("div", mHe, J(y.value.debugContextMessages), 1),
87540
+ Q("div", hHe, [(X(!0), Z(oX, null, gY(e.data.messages, (e, t) => (X(), Z("div", {
87499
87541
  key: t,
87500
87542
  class: "msg-row"
87501
87543
  }, [Q("span", {
87502
87544
  class: "msg-role",
87503
87545
  style: RK({ background: ce(e.type).color })
87504
- }, J(ce(e.type).label), 5), Q("span", hHe, J(e.content), 1)]))), 128))])
87505
- ], 64)) : e.type === "llm_request" ? (X(), Z(oX, { key: 1 }, [Q("div", gHe, [
87506
- Q("span", _He, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1),
87507
- e.data.model ? (X(), Z("span", vHe, J(e.data.model), 1)) : $("", !0),
87508
- Q("span", yHe, [SX(J((e.data.messages || []).length) + J(y.value.debugMsgCountSuffix), 1), r != null && r < (e.data.messages || []).length ? (X(), Z(oX, { key: 0 }, [SX("(+" + J((e.data.messages || []).length - r) + ")", 1)], 64)) : $("", !0)]),
87509
- (s = e.data.tools) != null && s.length ? (X(), Z("span", bHe, J(e.data.tools.length) + J(y.value.debugToolCountSuffix), 1)) : $("", !0),
87546
+ }, J(ce(e.type).label), 5), Q("span", gHe, J(e.content), 1)]))), 128))])
87547
+ ], 64)) : e.type === "llm_request" ? (X(), Z(oX, { key: 1 }, [Q("div", _He, [
87548
+ Q("span", vHe, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1),
87549
+ e.data.model ? (X(), Z("span", yHe, J(e.data.model), 1)) : $("", !0),
87550
+ Q("span", bHe, [SX(J((e.data.messages || []).length) + J(y.value.debugMsgCountSuffix), 1), r != null && r < (e.data.messages || []).length ? (X(), Z(oX, { key: 0 }, [SX("(+" + J((e.data.messages || []).length - r) + ")", 1)], 64)) : $("", !0)]),
87551
+ (s = e.data.tools) != null && s.length ? (X(), Z("span", xHe, J(e.data.tools.length) + J(y.value.debugToolCountSuffix), 1)) : $("", !0),
87510
87552
  r != null && r > 0 ? (X(), Z("button", {
87511
87553
  key: 2,
87512
87554
  class: "view-toggle only-new-btn",
87513
87555
  onClick: (e) => h(i)
87514
- }, J(m.value.has(i) ? y.value.debugShowAll : y.value.debugOnlyNew), 9, xHe)) : $("", !0),
87556
+ }, J(m.value.has(i) ? y.value.debugShowAll : y.value.debugOnlyNew), 9, SHe)) : $("", !0),
87515
87557
  Q("button", {
87516
87558
  class: "view-toggle copy-btn",
87517
87559
  title: y.value.copy,
87518
87560
  onClick: (t) => _(oe(e.data.messages), "req" + i)
87519
- }, J(g.value === "req" + i ? "✓" : "📋"), 9, SHe),
87561
+ }, J(g.value === "req" + i ? "✓" : "📋"), 9, CHe),
87520
87562
  Q("button", {
87521
87563
  class: "view-toggle",
87522
87564
  onClick: (e) => ae(i)
87523
- }, J(d.value.has(i) ? y.value.debugCardView : y.value.debugRequestBody), 9, CHe)
87524
- ]), d.value.has(i) ? (X(), Z("pre", AHe, [Q("code", null, J(oe(e.data.messages)), 1)])) : (X(!0), Z(oX, { key: 0 }, gY([ne(e, r, m.value.has(i))], (e) => (X(), Z("div", {
87565
+ }, J(d.value.has(i) ? y.value.debugCardView : y.value.debugRequestBody), 9, wHe)
87566
+ ]), d.value.has(i) ? (X(), Z("pre", jHe, [Q("code", null, J(oe(e.data.messages)), 1)])) : (X(!0), Z(oX, { key: 0 }, gY([ne(e, r, m.value.has(i))], (e) => (X(), Z("div", {
87525
87567
  key: e.base,
87526
87568
  class: "msg-list"
87527
87569
  }, [(X(!0), Z(oX, null, gY(e.list, (t, n) => {
@@ -87537,37 +87579,37 @@ var BBe = {
87537
87579
  }, [Q("span", {
87538
87580
  class: "msg-role",
87539
87581
  style: RK({ background: ce(t.role).color })
87540
- }, J(ce(t.role).label), 5), Q("div", THe, [
87541
- t.content ? (X(), Z("span", EHe, J(t.content), 1)) : $("", !0),
87582
+ }, J(ce(t.role).label), 5), Q("div", EHe, [
87583
+ t.content ? (X(), Z("span", DHe, J(t.content), 1)) : $("", !0),
87542
87584
  (X(!0), Z(oX, null, gY(t.tool_calls || [], (e, t) => {
87543
87585
  var n, r, i;
87544
87586
  return X(), Z("div", {
87545
87587
  key: t,
87546
87588
  class: "tc-inline"
87547
- }, [Q("span", DHe, "🔧 " + J(((n = e.function) == null ? void 0 : n.name) || e.name), 1), Q("code", OHe, J((r = (i = e.function) == null ? void 0 : i.arguments) == null ? e.args : r), 1)]);
87589
+ }, [Q("span", OHe, "🔧 " + J(((n = e.function) == null ? void 0 : n.name) || e.name), 1), Q("code", kHe, J((r = (i = e.function) == null ? void 0 : i.arguments) == null ? e.args : r), 1)]);
87548
87590
  }), 128)),
87549
- t.tool_call_id ? (X(), Z("span", kHe, "↳ tool_call_id: " + J(t.tool_call_id), 1)) : $("", !0)
87550
- ])], 10, wHe);
87591
+ t.tool_call_id ? (X(), Z("span", AHe, "↳ tool_call_id: " + J(t.tool_call_id), 1)) : $("", !0)
87592
+ ])], 10, THe);
87551
87593
  }), 128))]))), 128))], 64)) : e.type === "llm_response" ? (X(), Z(oX, { key: 2 }, [
87552
- Q("div", jHe, [Q("span", MHe, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1), (c = e.data.toolCalls) != null && c.length ? (X(), Z("span", NHe, "🔧 " + J(e.data.toolCalls.length) + J(y.value.debugToolCallsSuffix), 1)) : $("", !0)]),
87553
- e.data.content ? (X(), Z("div", PHe, J(e.data.content), 1)) : $("", !0),
87554
- (l = e.data.toolCalls) != null && l.length ? (X(), Z("div", FHe, [(X(!0), Z(oX, null, gY(e.data.toolCalls, (e, t) => (X(), Z("div", {
87594
+ Q("div", MHe, [Q("span", NHe, J(y.value.debugRoundPrefix) + J(e.data.round) + J(y.value.debugRoundSuffix), 1), (c = e.data.toolCalls) != null && c.length ? (X(), Z("span", PHe, "🔧 " + J(e.data.toolCalls.length) + J(y.value.debugToolCallsSuffix), 1)) : $("", !0)]),
87595
+ e.data.content ? (X(), Z("div", FHe, J(e.data.content), 1)) : $("", !0),
87596
+ (l = e.data.toolCalls) != null && l.length ? (X(), Z("div", IHe, [(X(!0), Z(oX, null, gY(e.data.toolCalls, (e, t) => (X(), Z("div", {
87555
87597
  key: t,
87556
87598
  class: "tc-card"
87557
- }, [Q("div", IHe, "🔧 " + J(e.name), 1), Q("pre", LHe, J(oe(e.args)), 1)]))), 128))])) : $("", !0),
87558
- e.data.usage ? (X(), Z("div", RHe, [
87559
- Q("span", zHe, "prompt: " + J((u = e.data.usage.prompt_tokens) == null ? "-" : u), 1),
87560
- Q("span", BHe, "completion: " + J((v = e.data.usage.completion_tokens) == null ? "-" : v), 1),
87561
- Q("span", VHe, "total: " + J((x = e.data.usage.total_tokens) == null ? "-" : x), 1),
87562
- e.data.usage.reasoning_tokens ? (X(), Z("span", HHe, "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)
87599
+ }, [Q("div", LHe, "🔧 " + J(e.name), 1), Q("pre", RHe, J(oe(e.args)), 1)]))), 128))])) : $("", !0),
87600
+ e.data.usage ? (X(), Z("div", zHe, [
87601
+ Q("span", BHe, "prompt: " + J((u = e.data.usage.prompt_tokens) == null ? "-" : u), 1),
87602
+ Q("span", VHe, "completion: " + J((v = e.data.usage.completion_tokens) == null ? "-" : v), 1),
87603
+ Q("span", HHe, "total: " + J((x = e.data.usage.total_tokens) == null ? "-" : x), 1),
87604
+ e.data.usage.reasoning_tokens ? (X(), Z("span", UHe, "reasoning: " + J(e.data.usage.reasoning_tokens) + "(" + J(Math.round(e.data.usage.reasoning_tokens / Math.max(1, (S = e.data.usage.completion_tokens) == null ? 0 : S) * 100)) + "%)", 1)) : $("", !0)
87563
87605
  ])) : $("", !0)
87564
87606
  ], 64)) : e.type === "tool_call" || e.type === "tool_result" ? (X(), Z(oX, { key: 3 }, [t ? (X(), Z("div", {
87565
87607
  key: 0,
87566
87608
  class: zK(["tc-card inline paired", { error: e.data.status === "error" }])
87567
87609
  }, [
87568
- Q("div", UHe, [
87610
+ Q("div", WHe, [
87569
87611
  SX(J(e.data.status === "error" ? "❌" : "✅") + " " + J(e.data.name) + " ", 1),
87570
- e.data.durationMs == null ? $("", !0) : (X(), Z("span", WHe, J(ye(e.data.durationMs)), 1)),
87612
+ e.data.durationMs == null ? $("", !0) : (X(), Z("span", GHe, J(ye(e.data.durationMs)), 1)),
87571
87613
  Q("button", {
87572
87614
  class: "view-toggle copy-btn",
87573
87615
  title: y.value.copy,
@@ -87575,84 +87617,84 @@ var BBe = {
87575
87617
  var n;
87576
87618
  return _(String((n = e.data.result) == null ? "" : n), "res" + i);
87577
87619
  }
87578
- }, J(g.value === "res" + i ? "✓" : "📋"), 9, GHe)
87620
+ }, J(g.value === "res" + i ? "✓" : "📋"), 9, KHe)
87579
87621
  ]),
87580
- Q("pre", KHe, J(oe(t.data.args)), 1),
87581
- Q("div", qHe, "↓ " + J(y.value.resultLabel), 1),
87582
- Q("pre", JHe, J(e.data.result), 1)
87583
- ], 2)) : (X(), Z("div", YHe, [Q("div", XHe, [SX(J(e.type === "tool_call" ? "🔧" : "✅") + " " + J(e.data.name) + " ", 1), e.type === "tool_call" ? (X(), Z("span", ZHe, J(y.value.statusRunning) + "…", 1)) : $("", !0)]), Q("pre", QHe, J(e.type === "tool_call" ? oe(e.data.args) : e.data.result), 1)]))], 64)) : e.type === "error" ? (X(), Z("div", $He, J(e.data.tool ? `[${e.data.tool}] ` : "") + J(e.data.error), 1)) : $("", !0)]),
87584
- Q("div", eUe, [Q("button", {
87622
+ Q("pre", qHe, J(oe(t.data.args)), 1),
87623
+ Q("div", JHe, "↓ " + J(y.value.resultLabel), 1),
87624
+ Q("pre", YHe, J(e.data.result), 1)
87625
+ ], 2)) : (X(), Z("div", XHe, [Q("div", ZHe, [SX(J(e.type === "tool_call" ? "🔧" : "✅") + " " + J(e.data.name) + " ", 1), e.type === "tool_call" ? (X(), Z("span", QHe, J(y.value.statusRunning) + "…", 1)) : $("", !0)]), Q("pre", $He, J(e.type === "tool_call" ? oe(e.data.args) : e.data.result), 1)]))], 64)) : e.type === "error" ? (X(), Z("div", eUe, J(e.data.tool ? `[${e.data.tool}] ` : "") + J(e.data.error), 1)) : $("", !0)]),
87626
+ Q("div", tUe, [Q("button", {
87585
87627
  class: "raw-toggle",
87586
87628
  onClick: (e) => ie(i)
87587
- }, J(a.value.has(i) ? y.value.debugCollapseRawJson : y.value.debugViewRawJson), 9, tUe), Q("button", {
87629
+ }, J(a.value.has(i) ? y.value.debugCollapseRawJson : y.value.debugViewRawJson), 9, nUe), Q("button", {
87588
87630
  class: "raw-toggle",
87589
87631
  onClick: (t) => Y(R7)(oe(e.data))
87590
- }, J(y.value.copy), 9, nUe)]),
87591
- a.value.has(i) ? (X(), Z("pre", rUe, [Q("code", null, J(oe(e.data)), 1)])) : $("", !0)
87632
+ }, J(y.value.copy), 9, rUe)]),
87633
+ a.value.has(i) ? (X(), Z("pre", iUe, [Q("code", null, J(oe(e.data)), 1)])) : $("", !0)
87592
87634
  ]);
87593
- }), 128))], 512), [[lZ, te(e.key)]])]))), 128))], 64)) : ue.value === "info" ? (X(), Z("div", iUe, [I.value ? (X(), Z(oX, { key: 1 }, [
87594
- Q("div", oUe, [
87595
- Q("div", sUe, J(y.value.debugInfoBasic), 1),
87596
- Q("div", cUe, [
87597
- Q("div", lUe, [n[6] || (n[6] = Q("span", { class: "k" }, "ID", -1)), Q("span", uUe, J(I.value.id), 1)]),
87598
- Q("div", dUe, [Q("span", fUe, J(y.value.debugModel), 1), Q("span", pUe, J(I.value.model || "-"), 1)]),
87599
- Q("div", mUe, [Q("span", hUe, J(y.value.debugToolCount), 1), Q("span", gUe, J(I.value.tools.length), 1)]),
87600
- Q("div", _Ue, [Q("span", vUe, J(y.value.debugMiddleware), 1), Q("span", yUe, J(I.value.middleware.length), 1)])
87635
+ }), 128))], 512), [[lZ, te(e.key)]])]))), 128))], 64)) : ue.value === "info" ? (X(), Z("div", aUe, [I.value ? (X(), Z(oX, { key: 1 }, [
87636
+ Q("div", sUe, [
87637
+ Q("div", cUe, J(y.value.debugInfoBasic), 1),
87638
+ Q("div", lUe, [
87639
+ Q("div", uUe, [n[6] || (n[6] = Q("span", { class: "k" }, "ID", -1)), Q("span", dUe, J(I.value.id), 1)]),
87640
+ Q("div", fUe, [Q("span", pUe, J(y.value.debugModel), 1), Q("span", mUe, J(I.value.model || "-"), 1)]),
87641
+ Q("div", hUe, [Q("span", gUe, J(y.value.debugToolCount), 1), Q("span", _Ue, J(I.value.tools.length), 1)]),
87642
+ Q("div", vUe, [Q("span", yUe, J(y.value.debugMiddleware), 1), Q("span", bUe, J(I.value.middleware.length), 1)])
87601
87643
  ]),
87602
- Q("div", bUe, [Q("span", xUe, J(y.value.debugMiddlewareStack), 1), Q("span", SUe, J(I.value.middleware.join(" → ") || "-"), 1)])
87644
+ Q("div", xUe, [Q("span", SUe, J(y.value.debugMiddlewareStack), 1), Q("span", CUe, J(I.value.middleware.join(" → ") || "-"), 1)])
87603
87645
  ]),
87604
- Q("div", CUe, [Q("div", wUe, "🔧 " + J(y.value.debugToolsLabel) + " (" + J(I.value.tools.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.tools, (e) => (X(), Z("div", {
87646
+ Q("div", wUe, [Q("div", TUe, "🔧 " + J(y.value.debugToolsLabel) + " (" + J(I.value.tools.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.tools, (e) => (X(), Z("div", {
87605
87647
  key: e.name,
87606
87648
  class: "info-item"
87607
- }, [Q("div", TUe, [SX(J(e.name), 1), e.source ? (X(), Z("span", {
87649
+ }, [Q("div", EUe, [SX(J(e.name), 1), e.source ? (X(), Z("span", {
87608
87650
  key: 0,
87609
87651
  class: zK(["src-tag", _e(e.source)])
87610
- }, J(e.source), 3)) : $("", !0)]), Q("div", EUe, J(e.description), 1)]))), 128))]),
87611
- I.value.skills.length ? (X(), Z("div", DUe, [Q("div", OUe, [SX("📘 " + J(y.value.debugSkillsTitle) + " (" + J(I.value.skills.length) + ")", 1), Q("span", kUe, J(y.value.debugSkillsHint), 1)]), (X(!0), Z(oX, null, gY(I.value.skills, (e) => (X(), Z("div", {
87652
+ }, J(e.source), 3)) : $("", !0)]), Q("div", DUe, J(e.description), 1)]))), 128))]),
87653
+ I.value.skills.length ? (X(), Z("div", OUe, [Q("div", kUe, [SX("📘 " + J(y.value.debugSkillsTitle) + " (" + J(I.value.skills.length) + ")", 1), Q("span", AUe, J(y.value.debugSkillsHint), 1)]), (X(!0), Z(oX, null, gY(I.value.skills, (e) => (X(), Z("div", {
87612
87654
  key: e.name,
87613
87655
  class: "info-item"
87614
87656
  }, [
87615
87657
  Q("div", {
87616
87658
  class: "info-name skill-toggle",
87617
87659
  onClick: (t) => fe(e.name)
87618
- }, [Q("span", { class: zK(["skill-arrow", { open: !!de.value[e.name] }]) }, "▶", 2), SX(" " + J(e.name), 1)], 8, AUe),
87619
- Q("div", jUe, J(e.description), 1),
87620
- de.value[e.name] ? (X(), Z("div", MUe, [de.value[e.name].loading ? (X(), Z("div", NUe, J(y.value.debugLoading), 1)) : de.value[e.name].error ? (X(), Z("div", PUe, J(de.value[e.name].error), 1)) : de.value[e.name].content ? (X(), Z("pre", FUe, J(de.value[e.name].content), 1)) : $("", !0)])) : $("", !0)
87660
+ }, [Q("span", { class: zK(["skill-arrow", { open: !!de.value[e.name] }]) }, "▶", 2), SX(" " + J(e.name), 1)], 8, jUe),
87661
+ Q("div", MUe, J(e.description), 1),
87662
+ de.value[e.name] ? (X(), Z("div", NUe, [de.value[e.name].loading ? (X(), Z("div", PUe, J(y.value.debugLoading), 1)) : de.value[e.name].error ? (X(), Z("div", FUe, J(de.value[e.name].error), 1)) : de.value[e.name].content ? (X(), Z("pre", IUe, J(de.value[e.name].content), 1)) : $("", !0)])) : $("", !0)
87621
87663
  ]))), 128))])) : $("", !0),
87622
- I.value.data ? (X(), Z("div", IUe, [Q("div", LUe, "📊 " + J(y.value.debugDataTitle), 1), Q("div", RUe, [Q("div", zUe, J(I.value.data.description || y.value.debugDataFallback), 1), Q("div", BUe, J(y.value.debugSchemaPrefix) + J(I.value.data.schema ? y.value.debugSchemaDeclared : y.value.debugSchemaMissing), 1)])])) : $("", !0),
87623
- Q("div", VUe, [Q("div", HUe, "🧬 " + J(y.value.debugSubagentTitle), 1), Q("div", UUe, [
87624
- Q("div", WUe, [Q("span", GUe, J(y.value.debugEnabled), 1), Q("span", KUe, J(I.value.subagent.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
87625
- Q("div", qUe, [Q("span", JUe, J(y.value.debugMaxDepth), 1), Q("span", YUe, J(I.value.subagent.maxDepth), 1)]),
87626
- Q("div", XUe, [Q("span", ZUe, J(y.value.debugMaxParallel), 1), Q("span", QUe, J(I.value.subagent.maxParallel), 1)]),
87627
- Q("div", $Ue, [Q("span", eWe, J(y.value.debugExtraTools), 1), Q("span", tWe, J(I.value.subagent.allowedTools.length ? I.value.subagent.allowedTools.join(", ") : y.value.debugDefaultReadonly), 1)])
87664
+ I.value.data ? (X(), Z("div", LUe, [Q("div", RUe, "📊 " + J(y.value.debugDataTitle), 1), Q("div", zUe, [Q("div", BUe, J(I.value.data.description || y.value.debugDataFallback), 1), Q("div", VUe, J(y.value.debugSchemaPrefix) + J(I.value.data.schema ? y.value.debugSchemaDeclared : y.value.debugSchemaMissing), 1)])])) : $("", !0),
87665
+ Q("div", HUe, [Q("div", UUe, "🧬 " + J(y.value.debugSubagentTitle), 1), Q("div", WUe, [
87666
+ Q("div", GUe, [Q("span", KUe, J(y.value.debugEnabled), 1), Q("span", qUe, J(I.value.subagent.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
87667
+ Q("div", JUe, [Q("span", YUe, J(y.value.debugMaxDepth), 1), Q("span", XUe, J(I.value.subagent.maxDepth), 1)]),
87668
+ Q("div", ZUe, [Q("span", QUe, J(y.value.debugMaxParallel), 1), Q("span", $Ue, J(I.value.subagent.maxParallel), 1)]),
87669
+ Q("div", eWe, [Q("span", tWe, J(y.value.debugExtraTools), 1), Q("span", nWe, J(I.value.subagent.allowedTools.length ? I.value.subagent.allowedTools.join(", ") : y.value.debugDefaultReadonly), 1)])
87628
87670
  ])]),
87629
- !((t = I.value.mcp) == null || (t = t.servers) == null) && t.length ? (X(), Z("div", nWe, [Q("div", rWe, "🔌 MCP (" + J(I.value.mcp.servers.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.mcp.servers, (e) => (X(), Z("div", {
87671
+ !((t = I.value.mcp) == null || (t = t.servers) == null) && t.length ? (X(), Z("div", rWe, [Q("div", iWe, "🔌 MCP (" + J(I.value.mcp.servers.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.mcp.servers, (e) => (X(), Z("div", {
87630
87672
  key: e.name,
87631
87673
  class: "info-item"
87632
- }, [Q("div", iWe, [SX(J(e.name) + " ", 1), Q("span", aWe, J(e.toolCount) + J(y.value.debugToolCountSuffix), 1)]), Q("div", oWe, J(e.url), 1)]))), 128))])) : $("", !0),
87633
- I.value.verify ? (X(), Z("div", sWe, [Q("div", cWe, "✅ " + J(y.value.debugVerifyTitle), 1), Q("div", lWe, [
87634
- Q("div", uWe, [Q("span", dWe, J(y.value.debugEnabled), 1), Q("span", fWe, J(I.value.verify.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
87635
- Q("div", pWe, [Q("span", mWe, J(y.value.debugMaxAttempts), 1), Q("span", hWe, J(I.value.verify.maxAttempts), 1)]),
87636
- Q("div", gWe, [Q("span", _We, J(y.value.debugAdversarial), 1), Q("span", vWe, J(I.value.verify.adversarial ? y.value.debugOn : y.value.debugOff), 1)]),
87637
- I.value.verify.adversarial ? (X(), Z("div", yWe, [Q("span", bWe, J(y.value.debugAdversarialModel), 1), Q("span", xWe, J(I.value.model || "-") + J(y.value.debugSameAsMain), 1)])) : $("", !0)
87674
+ }, [Q("div", aWe, [SX(J(e.name) + " ", 1), Q("span", oWe, J(e.toolCount) + J(y.value.debugToolCountSuffix), 1)]), Q("div", sWe, J(e.url), 1)]))), 128))])) : $("", !0),
87675
+ I.value.verify ? (X(), Z("div", cWe, [Q("div", lWe, "✅ " + J(y.value.debugVerifyTitle), 1), Q("div", uWe, [
87676
+ Q("div", dWe, [Q("span", fWe, J(y.value.debugEnabled), 1), Q("span", pWe, J(I.value.verify.enabled ? y.value.debugYes : y.value.debugNo), 1)]),
87677
+ Q("div", mWe, [Q("span", hWe, J(y.value.debugMaxAttempts), 1), Q("span", gWe, J(I.value.verify.maxAttempts), 1)]),
87678
+ Q("div", _We, [Q("span", vWe, J(y.value.debugAdversarial), 1), Q("span", yWe, J(I.value.verify.adversarial ? y.value.debugOn : y.value.debugOff), 1)]),
87679
+ I.value.verify.adversarial ? (X(), Z("div", bWe, [Q("span", xWe, J(y.value.debugAdversarialModel), 1), Q("span", SWe, J(I.value.model || "-") + J(y.value.debugSameAsMain), 1)])) : $("", !0)
87638
87680
  ])])) : $("", !0),
87639
- I.value.todos.length ? (X(), Z("div", SWe, [Q("div", CWe, "📋 " + J(y.value.debugTodosTitle) + " (" + J(I.value.todos.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.todos, (e, t) => (X(), Z("div", {
87681
+ I.value.todos.length ? (X(), Z("div", CWe, [Q("div", wWe, "📋 " + J(y.value.debugTodosTitle) + " (" + J(I.value.todos.length) + ")", 1), (X(!0), Z(oX, null, gY(I.value.todos, (e, t) => (X(), Z("div", {
87640
87682
  key: t,
87641
87683
  class: "info-todo"
87642
87684
  }, [Q("span", {
87643
87685
  class: "todo-tag",
87644
87686
  style: RK({ background: he.value[e.status] && he.value[e.status].color || "#9ca3af" })
87645
87687
  }, J(ge(e.status)), 5), Q("span", null, J(e.content), 1)]))), 128))])) : $("", !0),
87646
- I.value.memory ? (X(), Z("div", wWe, [Q("div", TWe, "📝 " + J(y.value.debugMemoryTitle), 1), Q("pre", EWe, J(I.value.memory), 1)])) : $("", !0),
87647
- I.value.lastCompression ? (X(), Z("div", DWe, [Q("div", OWe, "🗜️ " + J(y.value.debugLastCompTitle), 1), Q("div", kWe, [
87648
- Q("div", AWe, [Q("span", jWe, J(y.value.debugTriggered), 1), Q("span", MWe, J(I.value.lastCompression.triggered ? "✓" : y.value.debugNotTriggered), 1)]),
87649
- Q("div", NWe, [Q("span", PWe, J(y.value.debugRoundsSummarized), 1), Q("span", FWe, J(I.value.lastCompression.roundsSummarized) + " / " + J(I.value.lastCompression.roundsTotal), 1)]),
87650
- Q("div", IWe, [Q("span", LWe, J(y.value.debugCtxRecalled), 1), Q("span", RWe, J(I.value.lastCompression.roundsRecalled) + J(y.value.debugCountSuffix), 1)]),
87651
- Q("div", zWe, [Q("span", BWe, J(y.value.debugMessageCount), 1), Q("span", VWe, J(I.value.lastCompression.originalMessages) + " → " + J(I.value.lastCompression.compressedMessages), 1)]),
87652
- Q("div", HWe, [Q("span", UWe, J(y.value.debugStrategy), 1), Q("span", WWe, J(I.value.lastCompression.strategy), 1)]),
87653
- I.value.lastCompression.decision ? (X(), Z("div", GWe, [Q("span", KWe, J(y.value.debugDecision), 1), Q("span", qWe, "🤖 " + J(Oe(I.value.lastCompression.decision)), 1)])) : $("", !0)
87688
+ I.value.memory ? (X(), Z("div", TWe, [Q("div", EWe, "📝 " + J(y.value.debugMemoryTitle), 1), Q("pre", DWe, J(I.value.memory), 1)])) : $("", !0),
87689
+ I.value.lastCompression ? (X(), Z("div", OWe, [Q("div", kWe, "🗜️ " + J(y.value.debugLastCompTitle), 1), Q("div", AWe, [
87690
+ Q("div", jWe, [Q("span", MWe, J(y.value.debugTriggered), 1), Q("span", NWe, J(I.value.lastCompression.triggered ? "✓" : y.value.debugNotTriggered), 1)]),
87691
+ Q("div", PWe, [Q("span", FWe, J(y.value.debugRoundsSummarized), 1), Q("span", IWe, J(I.value.lastCompression.roundsSummarized) + " / " + J(I.value.lastCompression.roundsTotal), 1)]),
87692
+ Q("div", LWe, [Q("span", RWe, J(y.value.debugCtxRecalled), 1), Q("span", zWe, J(I.value.lastCompression.roundsRecalled) + J(y.value.debugCountSuffix), 1)]),
87693
+ Q("div", BWe, [Q("span", VWe, J(y.value.debugMessageCount), 1), Q("span", HWe, J(I.value.lastCompression.originalMessages) + " → " + J(I.value.lastCompression.compressedMessages), 1)]),
87694
+ Q("div", UWe, [Q("span", WWe, J(y.value.debugStrategy), 1), Q("span", GWe, J(I.value.lastCompression.strategy), 1)]),
87695
+ I.value.lastCompression.decision ? (X(), Z("div", KWe, [Q("span", qWe, J(y.value.debugDecision), 1), Q("span", JWe, "🤖 " + J(Oe(I.value.lastCompression.decision)), 1)])) : $("", !0)
87654
87696
  ])])) : $("", !0)
87655
- ], 64)) : (X(), Z("div", aUe, J(y.value.debugNoInfo), 1))])) : $("", !0)
87697
+ ], 64)) : (X(), Z("div", oUe, J(y.value.debugNoInfo), 1))])) : $("", !0)
87656
87698
  ], 512)], 512)], 512)
87657
87699
  ], 2), Q("div", {
87658
87700
  class: "drawer-mask",
@@ -87662,16 +87704,16 @@ var BBe = {
87662
87704
  _: 1
87663
87705
  })]));
87664
87706
  }
87665
- }), [["__scopeId", "data-v-ffd46605"]]), YWe = { class: "skill-panel" }, XWe = { class: "skill-header" }, ZWe = { class: "skill-title" }, QWe = ["title"], $We = { class: "skill-section" }, eGe = { class: "section-title" }, tGe = ["title"], nGe = { class: "field" }, rGe = { class: "field-label" }, iGe = ["disabled", "placeholder"], aGe = { class: "field" }, oGe = { class: "field-label" }, sGe = ["placeholder"], cGe = { class: "field field-textarea" }, lGe = { class: "field-label" }, uGe = ["placeholder"], dGe = {
87707
+ }), [["__scopeId", "data-v-ffd46605"]]), XWe = { class: "skill-panel" }, ZWe = { class: "skill-header" }, QWe = { class: "skill-title" }, $We = ["title"], eGe = { class: "skill-section" }, tGe = { class: "section-title" }, nGe = ["title"], rGe = { class: "field" }, iGe = { class: "field-label" }, aGe = ["disabled", "placeholder"], oGe = { class: "field" }, sGe = { class: "field-label" }, cGe = ["placeholder"], lGe = { class: "field field-textarea" }, uGe = { class: "field-label" }, dGe = ["placeholder"], fGe = {
87666
87708
  key: 0,
87667
87709
  class: "skill-error"
87668
- }, fGe = { class: "skill-section" }, pGe = { class: "section-title" }, mGe = {
87710
+ }, pGe = { class: "skill-section" }, mGe = { class: "section-title" }, hGe = {
87669
87711
  key: 0,
87670
87712
  class: "empty-hint"
87671
- }, hGe = {
87713
+ }, gGe = {
87672
87714
  key: 1,
87673
87715
  class: "skill-list"
87674
- }, gGe = { class: "skill-actions" }, _Ge = ["title", "onClick"], vGe = ["title", "onClick"], yGe = { class: "skill-hint" }, bGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
87716
+ }, _Ge = { class: "skill-actions" }, vGe = ["title", "onClick"], yGe = ["title", "onClick"], bGe = { class: "skill-hint" }, xGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
87675
87717
  __name: "SkillPanel",
87676
87718
  props: {
87677
87719
  visible: { type: Boolean },
@@ -87727,55 +87769,55 @@ var BBe = {
87727
87769
  key: 0,
87728
87770
  class: "skill-mask",
87729
87771
  onClick: n[4] || (n[4] = DZ((e) => r("close"), ["self"]))
87730
- }, [Q("div", YWe, [
87731
- Q("div", XWe, [Q("span", ZWe, J(e.messages.skillPanelTitle), 1), Q("button", {
87772
+ }, [Q("div", XWe, [
87773
+ Q("div", ZWe, [Q("span", QWe, J(e.messages.skillPanelTitle), 1), Q("button", {
87732
87774
  class: "skill-close",
87733
87775
  title: e.messages.close,
87734
87776
  onClick: n[0] || (n[0] = (e) => r("close"))
87735
- }, "✕", 8, QWe)]),
87736
- Q("div", $We, [
87737
- Q("div", eGe, [SX(J(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (X(), Z("button", {
87777
+ }, "✕", 8, $We)]),
87778
+ Q("div", eGe, [
87779
+ Q("div", tGe, [SX(J(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (X(), Z("button", {
87738
87780
  key: 0,
87739
87781
  class: "btn btn-ghost btn-cancel",
87740
87782
  title: e.messages.skillCancelEdit,
87741
87783
  onClick: h
87742
- }, J(e.messages.skillCancelEdit), 9, tGe)) : $("", !0)]),
87743
- Q("label", nGe, [Q("span", rGe, J(e.messages.skillNameLabel), 1), EJ(Q("input", {
87784
+ }, J(e.messages.skillCancelEdit), 9, nGe)) : $("", !0)]),
87785
+ Q("label", rGe, [Q("span", iGe, J(e.messages.skillNameLabel), 1), EJ(Q("input", {
87744
87786
  "onUpdate:modelValue": n[1] || (n[1] = (e) => i.value = e),
87745
87787
  disabled: !!u.value,
87746
87788
  placeholder: e.messages.skillNamePlaceholder,
87747
87789
  class: "field-input"
87748
- }, null, 8, iGe), [[EZ, i.value]])]),
87749
- Q("label", aGe, [Q("span", oGe, J(e.messages.skillDescLabel), 1), EJ(Q("input", {
87790
+ }, null, 8, aGe), [[EZ, i.value]])]),
87791
+ Q("label", oGe, [Q("span", sGe, J(e.messages.skillDescLabel), 1), EJ(Q("input", {
87750
87792
  "onUpdate:modelValue": n[2] || (n[2] = (e) => a.value = e),
87751
87793
  placeholder: e.messages.skillDescPlaceholder,
87752
87794
  class: "field-input"
87753
- }, null, 8, sGe), [[EZ, a.value]])]),
87754
- Q("label", cGe, [Q("span", lGe, J(e.messages.skillContentLabel), 1), EJ(Q("textarea", {
87795
+ }, null, 8, cGe), [[EZ, a.value]])]),
87796
+ Q("label", lGe, [Q("span", uGe, J(e.messages.skillContentLabel), 1), EJ(Q("textarea", {
87755
87797
  "onUpdate:modelValue": n[3] || (n[3] = (e) => o.value = e),
87756
87798
  placeholder: e.messages.skillContentPlaceholder,
87757
87799
  rows: "6",
87758
87800
  class: "field-input"
87759
- }, null, 8, uGe), [[EZ, o.value]])]),
87760
- s.value ? (X(), Z("div", dGe, J(s.value), 1)) : $("", !0),
87801
+ }, null, 8, dGe), [[EZ, o.value]])]),
87802
+ s.value ? (X(), Z("div", fGe, J(s.value), 1)) : $("", !0),
87761
87803
  Q("button", {
87762
87804
  class: "btn btn-primary",
87763
87805
  onClick: f
87764
87806
  }, J(u.value ? e.messages.skillSave : e.messages.skillAdd), 1)
87765
87807
  ]),
87766
- Q("div", fGe, [Q("div", pGe, J(e.messages.skillCreatedTitle) + "(" + J(c.value.length) + ")", 1), c.value.length ? (X(), Z("ul", hGe, [(X(!0), Z(oX, null, gY(c.value, (t) => (X(), Z("li", {
87808
+ Q("div", pGe, [Q("div", mGe, J(e.messages.skillCreatedTitle) + "(" + J(c.value.length) + ")", 1), c.value.length ? (X(), Z("ul", gGe, [(X(!0), Z(oX, null, gY(c.value, (t) => (X(), Z("li", {
87767
87809
  key: t,
87768
87810
  class: "skill-item"
87769
- }, [Q("span", { class: zK(["skill-name", { active: u.value === t }]) }, J(t), 3), Q("span", gGe, [Q("button", {
87811
+ }, [Q("span", { class: zK(["skill-name", { active: u.value === t }]) }, J(t), 3), Q("span", _Ge, [Q("button", {
87770
87812
  class: "btn btn-ghost btn-edit",
87771
87813
  title: e.messages.skillEditTitle,
87772
87814
  onClick: (e) => m(t)
87773
- }, J(e.messages.skillEditBtn), 9, _Ge), Q("button", {
87815
+ }, J(e.messages.skillEditBtn), 9, vGe), Q("button", {
87774
87816
  class: "btn btn-ghost btn-del",
87775
87817
  title: e.messages.skillDeleteTitle,
87776
87818
  onClick: (e) => p(t)
87777
- }, J(e.messages.skillDeleteBtn), 9, vGe)])]))), 128))])) : (X(), Z("div", mGe, J(e.messages.skillEmpty), 1))]),
87778
- Q("div", yGe, [
87819
+ }, J(e.messages.skillDeleteBtn), 9, yGe)])]))), 128))])) : (X(), Z("div", hGe, J(e.messages.skillEmpty), 1))]),
87820
+ Q("div", bGe, [
87779
87821
  SX(" 💡 " + J(e.messages.skillHintA) + " ", 1),
87780
87822
  n[5] || (n[5] = Q("code", null, "load_skill(name)", -1)),
87781
87823
  SX(" " + J(e.messages.skillHintB) + " ", 1),
@@ -87786,7 +87828,7 @@ var BBe = {
87786
87828
  _: 1
87787
87829
  })]));
87788
87830
  }
87789
- }), [["__scopeId", "data-v-fcd21121"]]), xGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
87831
+ }), [["__scopeId", "data-v-fcd21121"]]), SGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
87790
87832
  __name: "ChatDialog",
87791
87833
  props: {
87792
87834
  fetchResponse: {},
@@ -87977,7 +88019,7 @@ var BBe = {
87977
88019
  key: 0,
87978
88020
  name: "cs-slide"
87979
88021
  }, {
87980
- default: TJ(() => [_Y(t.$slots, "body", { chat: Y(o) }, () => [EJ(bX(Oze, {
88022
+ default: TJ(() => [_Y(t.$slots, "body", { chat: Y(o) }, () => [EJ(bX(kze, {
87981
88023
  "show-avatar": e.showAvatar,
87982
88024
  "show-typing": e.showTyping
87983
88025
  }, null, 8, ["show-avatar", "show-typing"]), [[lZ, Y(s)]])], !0)]),
@@ -87986,15 +88028,15 @@ var BBe = {
87986
88028
  _("queued") ? _Y(t.$slots, "queued", {
87987
88029
  key: 1,
87988
88030
  chat: Y(o)
87989
- }, () => [bX(Rze)], !0) : $("", !0),
88031
+ }, () => [bX(zze)], !0) : $("", !0),
87990
88032
  _("approval") ? _Y(t.$slots, "approval", {
87991
88033
  key: 2,
87992
88034
  chat: Y(o)
87993
- }, () => [bX($ze)], !0) : $("", !0),
88035
+ }, () => [bX(eBe)], !0) : $("", !0),
87994
88036
  _("conflict") ? _Y(t.$slots, "conflict", {
87995
88037
  key: 3,
87996
88038
  chat: Y(o)
87997
- }, () => [bX(gBe, {
88039
+ }, () => [bX(_Be, {
87998
88040
  "pending-conflict": e.pendingConflict,
87999
88041
  "on-resolve": e.onResolveConflict,
88000
88042
  icons: Y(o).icons,
@@ -88010,7 +88052,7 @@ var BBe = {
88010
88052
  key: 2,
88011
88053
  name: "cs-slide"
88012
88054
  }, {
88013
- default: TJ(() => [_Y(t.$slots, "footer", { chat: Y(o) }, () => [bX(zBe, {
88055
+ default: TJ(() => [_Y(t.$slots, "footer", { chat: Y(o) }, () => [bX(BBe, {
88014
88056
  placeholder: e.placeholder || Y(o).messages.inputPlaceholder,
88015
88057
  "input-rows": e.inputRows
88016
88058
  }, null, 8, ["placeholder", "input-rows"])], !0)]),
@@ -88019,7 +88061,7 @@ var BBe = {
88019
88061
  _("debug") ? _Y(t.$slots, "debug", {
88020
88062
  key: 3,
88021
88063
  chat: Y(o)
88022
- }, () => [bX(JWe, {
88064
+ }, () => [bX(YWe, {
88023
88065
  visible: Y(c),
88024
88066
  "onUpdate:visible": n[4] || (n[4] = (e) => /* @__PURE__ */ Yq(c) ? c.value = e : null),
88025
88067
  logs: e.debugLogs,
@@ -88048,7 +88090,7 @@ var BBe = {
88048
88090
  _("skill") ? _Y(t.$slots, "skill", {
88049
88091
  key: 4,
88050
88092
  chat: Y(o)
88051
- }, () => [bX(bGe, {
88093
+ }, () => [bX(xGe, {
88052
88094
  visible: Y(l),
88053
88095
  "on-add-skill": e.onAddSkill,
88054
88096
  "on-remove-skill": e.onRemoveSkill,
@@ -88071,12 +88113,12 @@ var BBe = {
88071
88113
  //#endregion
88072
88114
  //#region src/core/sdk/mountChatDialog.ts
88073
88115
  M();
88074
- function SGe(e) {
88116
+ function CGe(e) {
88075
88117
  let { core: t, dialogCfg: n } = e, r = null, i = e.el, a = t.agent.debugLogs;
88076
88118
  return r = ASe(/* @__PURE__ */ nY({ setup() {
88077
88119
  return () => {
88078
88120
  var r;
88079
- return VX(xGe, j({
88121
+ return VX(SGe, j({
88080
88122
  fetchStream: e.streaming ? t.stream : void 0,
88081
88123
  fetchResponse: e.streaming ? void 0 : (e, n) => {
88082
88124
  if (n) {
@@ -88203,7 +88245,7 @@ function SGe(e) {
88203
88245
  };
88204
88246
  }
88205
88247
  _F(), Xf(), M();
88206
- function CGe(e, t, n, r, i) {
88248
+ function wGe(e, t, n, r, i) {
88207
88249
  let a = [];
88208
88250
  e && a.push("vfs_grep + vfs_read(搜预注入文档)"), t && a.push(`${r}(语义检索)`), n && a.push(`${i}(按 source 加载)`), a.push("fetch_document(公网 URL)");
88209
88251
  let o = [];
@@ -88218,7 +88260,7 @@ function CGe(e, t, n, r, i) {
88218
88260
 
88219
88261
  你是只读检索角色,不要尝试修改任何数据。不要尝试上面未列出的工具。`;
88220
88262
  }
88221
- function wGe(e, t, n, r, i) {
88263
+ function TGe(e, t, n, r, i) {
88222
88264
  let a = [], o = [];
88223
88265
  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)
88224
88266
 
@@ -88235,12 +88277,12 @@ ${a.join("\n")}
88235
88277
  ## 何时用何源
88236
88278
  ${o.join("\n")}`;
88237
88279
  }
88238
- var TGe = {
88280
+ var EGe = {
88239
88281
  name: "rag-search",
88240
88282
  description: "多源知识检索策略:vfs 预注入文档 → 语义检索 → 指定文档加载 → 公网;综合结构化结论 + 溯源",
88241
- getContent: () => wGe(!0, !0, !0, "search_docs", "load_doc")
88283
+ getContent: () => TGe(!0, !0, !0, "search_docs", "load_doc")
88242
88284
  };
88243
- function EGe(e, t, n) {
88285
+ function DGe(e, t, n) {
88244
88286
  let r = fF(async ({ query: e, topK: r }) => {
88245
88287
  try {
88246
88288
  let i = await t(e, { topK: r == null ? n : r });
@@ -88258,7 +88300,7 @@ function EGe(e, t, n) {
88258
88300
  });
88259
88301
  return BZ([r]), r;
88260
88302
  }
88261
- function DGe(e, t) {
88303
+ function OGe(e, t) {
88262
88304
  let n = fF(async ({ source: e }) => {
88263
88305
  try {
88264
88306
  let n = await t(e), r = Array.isArray(n) ? n : [n];
@@ -88273,19 +88315,19 @@ function DGe(e, t) {
88273
88315
  });
88274
88316
  return BZ([n]), n;
88275
88317
  }
88276
- function OGe(e) {
88318
+ function kGe(e) {
88277
88319
  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;
88278
88320
  if (!t && !n && r === !1) throw Error("[page-agent-sdk][createRagSubagent] 至少配一种知识源:retriever / loader / useVfs(true)");
88279
88321
  let p = [];
88280
- t && p.push(EGe(s, t, o)), n && p.push(DGe(c, n)), f && p.push(...f);
88322
+ t && p.push(DGe(s, t, o)), n && p.push(OGe(c, n)), f && p.push(...f);
88281
88323
  let m = r ? [
88282
88324
  "vfs_grep",
88283
88325
  "vfs_read",
88284
88326
  "vfs_json_read"
88285
- ] : void 0, h = CGe(r, !!t, !!n, s, c), g = {
88327
+ ] : void 0, h = wGe(r, !!t, !!n, s, c), g = {
88286
88328
  name: "rag-search",
88287
- description: TGe.description,
88288
- getContent: () => wGe(r, !!t, !!n, s, c)
88329
+ description: EGe.description,
88330
+ getContent: () => TGe(r, !!t, !!n, s, c)
88289
88331
  };
88290
88332
  return j({
88291
88333
  id: i,
@@ -88299,20 +88341,20 @@ function OGe(e) {
88299
88341
  }
88300
88342
  //#endregion
88301
88343
  //#region src/core/components/CodePreview.vue?vue&type=script&setup=true&lang.ts
88302
- var kGe = { class: "code-preview-modal" }, AGe = { class: "preview-header" }, jGe = { class: "preview-title" }, MGe = { class: "preview-tabs" }, NGe = ["disabled"], PGe = { class: "preview-actions" }, FGe = ["title"], IGe = {
88344
+ var AGe = { class: "code-preview-modal" }, jGe = { class: "preview-header" }, MGe = { class: "preview-title" }, NGe = { class: "preview-tabs" }, PGe = ["disabled"], FGe = { class: "preview-actions" }, IGe = ["title"], LGe = {
88303
88345
  key: 0,
88304
88346
  viewBox: "0 0 16 16",
88305
88347
  fill: "none",
88306
88348
  "aria-hidden": "true"
88307
- }, LGe = {
88349
+ }, RGe = {
88308
88350
  key: 1,
88309
88351
  viewBox: "0 0 16 16",
88310
88352
  fill: "none",
88311
88353
  "aria-hidden": "true"
88312
- }, RGe = ["title"], zGe = ["title"], BGe = { class: "preview-body" }, VGe = ["srcdoc"], HGe = {
88354
+ }, zGe = ["title"], BGe = ["title"], VGe = { class: "preview-body" }, HGe = ["srcdoc"], UGe = {
88313
88355
  key: 1,
88314
88356
  class: "preview-source"
88315
- }, UGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
88357
+ }, WGe = /*#__PURE__*/ _9(/* @__PURE__ */ nY({
88316
88358
  __name: "CodePreview",
88317
88359
  props: {
88318
88360
  code: {},
@@ -88379,28 +88421,28 @@ app.mount('#app');
88379
88421
  return (t, n) => (X(), Z("div", {
88380
88422
  class: "code-preview-overlay",
88381
88423
  onClick: n[3] || (n[3] = DZ((e) => r("close"), ["self"]))
88382
- }, [Q("div", kGe, [Q("div", AGe, [
88383
- Q("span", jGe, J(e.messages.codePreviewTitlePrefix) + J(e.lang), 1),
88384
- Q("div", MGe, [Q("button", {
88424
+ }, [Q("div", AGe, [Q("div", jGe, [
88425
+ Q("span", MGe, J(e.messages.codePreviewTitlePrefix) + J(e.lang), 1),
88426
+ Q("div", NGe, [Q("button", {
88385
88427
  class: zK({ active: a.value === "preview" }),
88386
88428
  disabled: !s.value,
88387
88429
  onClick: n[0] || (n[0] = (e) => a.value = "preview")
88388
- }, J(e.messages.codePreviewTab), 11, NGe), Q("button", {
88430
+ }, J(e.messages.codePreviewTab), 11, PGe), Q("button", {
88389
88431
  class: zK({ active: a.value === "source" }),
88390
88432
  onClick: n[1] || (n[1] = (e) => a.value = "source")
88391
88433
  }, J(e.messages.codeSourceTab), 3)]),
88392
- Q("div", PGe, [
88434
+ Q("div", FGe, [
88393
88435
  Q("button", {
88394
88436
  class: zK(["icon-btn", { done: o.value }]),
88395
88437
  title: o.value ? e.messages.copied : e.messages.codeCopyTitle,
88396
88438
  onClick: u
88397
- }, [o.value ? (X(), Z("svg", IGe, [...n[4] || (n[4] = [Q("path", {
88439
+ }, [o.value ? (X(), Z("svg", LGe, [...n[4] || (n[4] = [Q("path", {
88398
88440
  d: "M3 8.5l3 3 7-7",
88399
88441
  stroke: "currentColor",
88400
88442
  "stroke-width": "1.6",
88401
88443
  "stroke-linecap": "round",
88402
88444
  "stroke-linejoin": "round"
88403
- }, null, -1)])])) : (X(), Z("svg", LGe, [...n[5] || (n[5] = [Q("rect", {
88445
+ }, null, -1)])])) : (X(), Z("svg", RGe, [...n[5] || (n[5] = [Q("rect", {
88404
88446
  x: "5.5",
88405
88447
  y: "5.5",
88406
88448
  width: "8",
@@ -88412,7 +88454,7 @@ app.mount('#app');
88412
88454
  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",
88413
88455
  stroke: "currentColor",
88414
88456
  "stroke-width": "1.3"
88415
- }, null, -1)])]))], 10, FGe),
88457
+ }, null, -1)])]))], 10, IGe),
88416
88458
  Q("button", {
88417
88459
  class: "icon-btn",
88418
88460
  title: e.messages.codeOpenTitle,
@@ -88432,7 +88474,7 @@ app.mount('#app');
88432
88474
  "stroke-width": "1.3",
88433
88475
  "stroke-linecap": "round",
88434
88476
  "stroke-linejoin": "round"
88435
- })], -1)])], 8, RGe),
88477
+ })], -1)])], 8, zGe),
88436
88478
  Q("button", {
88437
88479
  class: "icon-btn",
88438
88480
  title: e.messages.close,
@@ -88446,23 +88488,23 @@ app.mount('#app');
88446
88488
  stroke: "currentColor",
88447
88489
  "stroke-width": "1.4",
88448
88490
  "stroke-linecap": "round"
88449
- })], -1)])], 8, zGe)
88491
+ })], -1)])], 8, BGe)
88450
88492
  ])
88451
- ]), Q("div", BGe, [a.value === "preview" && s.value ? (X(), Z("iframe", {
88493
+ ]), Q("div", VGe, [a.value === "preview" && s.value ? (X(), Z("iframe", {
88452
88494
  key: 0,
88453
88495
  ref_key: "iframeRef",
88454
88496
  ref: i,
88455
88497
  class: "preview-iframe",
88456
88498
  sandbox: "allow-scripts allow-modals allow-popups allow-forms",
88457
88499
  srcdoc: c.value
88458
- }, null, 8, VGe)) : (X(), Z("pre", HGe, [Q("code", null, J(e.code), 1)]))])])]));
88500
+ }, null, 8, HGe)) : (X(), Z("pre", UGe, [Q("code", null, J(e.code), 1)]))])])]));
88459
88501
  }
88460
88502
  }), [["__scopeId", "data-v-27eac25e"]]);
88461
88503
  //#endregion
88462
88504
  //#region src/core/index.ts
88463
88505
  Xf();
88464
- function WGe(e) {
88465
- return oMe(e, SGe);
88506
+ function GGe(e) {
88507
+ return oMe(e, CGe);
88466
88508
  }
88467
88509
  //#endregion
88468
- export { $ze as ApprovalBar, O8 as CAPABILITIES, pje as CONTEXT_PRESETS, xGe as ChatDialog, aIe as ChatHeader, zBe as ChatInput, UGe as CodePreview, IAe as CompressDecisionSchema, gBe as ConflictBar, Cje as DEFAULT_COMPUTED_STYLES, z7 as DEFAULT_DIALOG_ICONS, G$ as DEFAULT_PROMPT_SOFT_CAP, pke as DEFAULT_SYSTEM_PROMPT, mke as DEFAULT_SYSTEM_PROMPT_EN, JWe as DebugDrawer, gIe as FocusBar, RRe as HLJS_BLOCK_MAX_CHARS, Gke as HTML_VOID_TAGS, c1 as HUMAN_CONFIRM_TOOL_NAME, v9 as IconGlyph, FZ as ImageInputError, SPe as MESSAGES_EN_US, B7 as MESSAGES_ZH_CN, yF as MIN_CONTEXT_WINDOW, ZZ as MODEL_UNAVAILABLE_GUIDANCE, YRe as MessageContent, Oze as MessageList, vze as MessageRow, Rze as QueuedBar, nTe as SOFT_CAP_MIN_WINDOW, z$ as STOP_WORDS, bGe as SkillPanel, i$ as UNSAFE_KEYS, Lje as actionsToInspectInfo, Ije as actionsToTools, PSe as agentError, x1 as analyzeContext, v$ as applyPatchToClone, Bwe as applyPatchToLive, X6 as applyPatchesToBind, zQ as arrayMinLength, PZ as asAgentError, yAe as buildCollectorJs, F8 as buildCssPath, P6 as buildDataPrompt, f8 as buildDiagnosticsReport, h8 as buildHtmlFragmentSkill, bAe as buildSandboxSrcdoc, hke as buildSystemPrompt, V7 as chatContextKey, Y6 as commitSetToBind, TAe as composeStructureThenRender, LZ as compressImage, fke as connectMcp, QG as constructLlmFromConfig, ZG as constructOpenLlmSync, R7 as copyText, jQ as createAgent, s1 as createApprovalMiddleware, TPe as createChatContext, WGe as createChatSdk, m1 as createCheckpointManager, h1 as createCheckpointMiddleware, KAe as createConflictManager, S1 as createContextInspectorMiddleware, t8 as createDataOps, kAe as createHtmlFormatCheck, wAe as createHtmlRenderCheck, MAe as createHtmlSubagent, u1 as createHumanConfirmMiddleware, l1 as createHumanConfirmTool, w8 as createMemoryBackend, o1 as createMemoryMiddleware, bge as createProxyLlm, OGe as createRagSubagent, $Z as createSandboxRunner, fje as createSdkEvents, Qje as createSerialRunner, D8 as createSessionStore, Yje as createSkillStore, n1 as createSubagentMiddleware, Y$ as createSubagentTracker, r1 as createSubagentsMiddleware, Wje as createUsageHintsMiddleware, g1 as createVerifyMiddleware, bke as createVfs, T8 as createWebStorageBackend, _1 as createWriteBackCheck, QZ as decorateModelUnavailable, u$ as deepClone, Bje as defineDataToolset, Hwe as defineSkill, NAe as defineTool, l$ as deleteByPath, LAe as deriveTitle, JQ as describeSchemaNode, TQ as detectGarbledToolCall, _Q as detectTransitionalReply, w$ as diffObjects, L8 as domInfoTool, R8 as domInspectSkill, I8 as domSearchTool, xje as domToStructure, M8 as domTools, zje as domToolsStatic, BQ as elementSchemaCandidates, P8 as ensureDomListenerRecorder, V$ as estimateMessageTokens, H$ as estimateRoundTokens, xF as estimateTokens, eK as extractReasoningDelta, r$ as extractSchemaHint, cke as extractText, $G as extractTextDelta, tK as extractUsage, j8 as fetchDocTools, Rje as fetchTools, C$ as findStrippedKeys, YQ as formatConstraints, jZ as formatZodIssues, s$ as getByPath, Sje as getDomTool, Oje as getElementInfo, Aje as getEnvSummary, Tje as getRecordedListeners, SAe as getSandboxLifecycle, FQ as getSchemaAtPath, MQ as getSchemaTopKeys, g$ as hashValue, OAe as htmlFragmentSkill, e$ as htmlOrchestratorPrompt, U$ as indexSummarize, Nje as inspectEnvTool, Pje as inspectTools, g8 as isChatModel, YZ as isContextLengthError, g9 as isIconHtml, XZ as isModelUnavailableError, NQ as isPathAllowed, x8 as isQuotaError, a$ as isUnsafePath, iQ as jpEval, NZ as jsonParseError, p$ as limitDepth, WRe as markedToHtml, gAe as maskUrlCredentials, d$ as maybeParseValue, fAe as measureWriteScale, b$ as moveByPath, XG as normalizeBaseUrl, vAe as normalizeRenderResult, nK as normalizeUsage, CF as offloadPassThroughChars, SF as offloadThresholdChars, Cwe as presets, vwe as projectBySchema, GQ as projectBySchemaDeep, f$ as projectFields, W$ as recallRounds, CAe as renderInSandbox, Q9 as renderMarkdownHtml, XQ as renderSchemaHint, ZQ as renderSchemaOverview, $Q as renderSchemaShallow, k8 as resolveCapabilities, A8 as resolveContextOptions, dje as resolveDialogConfig, xPe as resolveDialogIcons, wPe as resolveDialogMessages, GAe as resolveLlm, bF as resolveModelCaps, K$ as resolvePromptSoftCap, IQ as resolveSchemaPath, uje as resolveStorage, S$ as restoreInPlace, x$ as restoreLive, NSe as routeError, sQ as runSandboxedScript, o$ as safeMerge, z8 as safeSerialize, m$ as safeStringify, EQ as sanitizeGarbledContent, TFe as sanitizeIconHtml, OFe as sanitizeMessageHtml, RQ as schemaHasRefinement, Eje as searchDom, aQ as searchJson, Vje as selectBuiltinTools, c$ as setByPath, q$ as shouldTriggerCompression, p8 as stringifyDiagnosticsReport, YG as stripStainlessFetch, t$ as systemPromptHelpers, B$ as tokenize, AZ as toolError, PQ as unwrapSchema, bPe as useChat, H7 as useChatContext, LQ as validateAtPath, n8 as validateHtmlFormat, J6 as validateRootValueLocally, Rke as validateWriteLocally, _$ as watchFieldsHash, Yne as z, MZ as zodError };
88510
+ export { eBe as ApprovalBar, O8 as CAPABILITIES, pje as CONTEXT_PRESETS, SGe as ChatDialog, aIe as ChatHeader, BBe as ChatInput, WGe as CodePreview, IAe as CompressDecisionSchema, _Be as ConflictBar, Cje as DEFAULT_COMPUTED_STYLES, z7 as DEFAULT_DIALOG_ICONS, G$ as DEFAULT_PROMPT_SOFT_CAP, pke as DEFAULT_SYSTEM_PROMPT, mke as DEFAULT_SYSTEM_PROMPT_EN, YWe as DebugDrawer, gIe as FocusBar, zRe as HLJS_BLOCK_MAX_CHARS, Gke as HTML_VOID_TAGS, c1 as HUMAN_CONFIRM_TOOL_NAME, v9 as IconGlyph, FZ as ImageInputError, SPe as MESSAGES_EN_US, B7 as MESSAGES_ZH_CN, yF as MIN_CONTEXT_WINDOW, ZZ as MODEL_UNAVAILABLE_GUIDANCE, XRe as MessageContent, kze as MessageList, yze as MessageRow, zze as QueuedBar, nTe as SOFT_CAP_MIN_WINDOW, z$ as STOP_WORDS, xGe as SkillPanel, i$ as UNSAFE_KEYS, Lje as actionsToInspectInfo, Ije as actionsToTools, PSe as agentError, x1 as analyzeContext, v$ as applyPatchToClone, Bwe as applyPatchToLive, X6 as applyPatchesToBind, zQ as arrayMinLength, PZ as asAgentError, yAe as buildCollectorJs, F8 as buildCssPath, P6 as buildDataPrompt, f8 as buildDiagnosticsReport, h8 as buildHtmlFragmentSkill, bAe as buildSandboxSrcdoc, hke as buildSystemPrompt, V7 as chatContextKey, Y6 as commitSetToBind, TAe as composeStructureThenRender, LZ as compressImage, fke as connectMcp, QG as constructLlmFromConfig, ZG as constructOpenLlmSync, R7 as copyText, jQ as createAgent, s1 as createApprovalMiddleware, TPe as createChatContext, GGe as createChatSdk, m1 as createCheckpointManager, h1 as createCheckpointMiddleware, KAe as createConflictManager, S1 as createContextInspectorMiddleware, t8 as createDataOps, kAe as createHtmlFormatCheck, wAe as createHtmlRenderCheck, MAe as createHtmlSubagent, u1 as createHumanConfirmMiddleware, l1 as createHumanConfirmTool, w8 as createMemoryBackend, o1 as createMemoryMiddleware, bge as createProxyLlm, kGe as createRagSubagent, $Z as createSandboxRunner, fje as createSdkEvents, Qje as createSerialRunner, D8 as createSessionStore, Yje as createSkillStore, n1 as createSubagentMiddleware, Y$ as createSubagentTracker, r1 as createSubagentsMiddleware, Wje as createUsageHintsMiddleware, g1 as createVerifyMiddleware, bke as createVfs, T8 as createWebStorageBackend, _1 as createWriteBackCheck, QZ as decorateModelUnavailable, u$ as deepClone, Bje as defineDataToolset, Hwe as defineSkill, NAe as defineTool, l$ as deleteByPath, LAe as deriveTitle, JQ as describeSchemaNode, TQ as detectGarbledToolCall, _Q as detectTransitionalReply, w$ as diffObjects, L8 as domInfoTool, R8 as domInspectSkill, I8 as domSearchTool, xje as domToStructure, M8 as domTools, zje as domToolsStatic, BQ as elementSchemaCandidates, P8 as ensureDomListenerRecorder, V$ as estimateMessageTokens, H$ as estimateRoundTokens, xF as estimateTokens, eK as extractReasoningDelta, r$ as extractSchemaHint, cke as extractText, $G as extractTextDelta, tK as extractUsage, j8 as fetchDocTools, Rje as fetchTools, C$ as findStrippedKeys, YQ as formatConstraints, jZ as formatZodIssues, s$ as getByPath, Sje as getDomTool, Oje as getElementInfo, Aje as getEnvSummary, Tje as getRecordedListeners, SAe as getSandboxLifecycle, FQ as getSchemaAtPath, MQ as getSchemaTopKeys, g$ as hashValue, OAe as htmlFragmentSkill, e$ as htmlOrchestratorPrompt, U$ as indexSummarize, Nje as inspectEnvTool, Pje as inspectTools, g8 as isChatModel, YZ as isContextLengthError, g9 as isIconHtml, XZ as isModelUnavailableError, NQ as isPathAllowed, x8 as isQuotaError, a$ as isUnsafePath, iQ as jpEval, NZ as jsonParseError, p$ as limitDepth, GRe as markedToHtml, gAe as maskUrlCredentials, d$ as maybeParseValue, fAe as measureWriteScale, b$ as moveByPath, XG as normalizeBaseUrl, vAe as normalizeRenderResult, nK as normalizeUsage, CF as offloadPassThroughChars, SF as offloadThresholdChars, Cwe as presets, vwe as projectBySchema, GQ as projectBySchemaDeep, f$ as projectFields, W$ as recallRounds, CAe as renderInSandbox, Q9 as renderMarkdownHtml, XQ as renderSchemaHint, ZQ as renderSchemaOverview, $Q as renderSchemaShallow, k8 as resolveCapabilities, A8 as resolveContextOptions, dje as resolveDialogConfig, xPe as resolveDialogIcons, wPe as resolveDialogMessages, GAe as resolveLlm, bF as resolveModelCaps, K$ as resolvePromptSoftCap, IQ as resolveSchemaPath, uje as resolveStorage, S$ as restoreInPlace, x$ as restoreLive, NSe as routeError, sQ as runSandboxedScript, o$ as safeMerge, z8 as safeSerialize, m$ as safeStringify, EQ as sanitizeGarbledContent, TFe as sanitizeIconHtml, OFe as sanitizeMessageHtml, RQ as schemaHasRefinement, Eje as searchDom, aQ as searchJson, Vje as selectBuiltinTools, c$ as setByPath, q$ as shouldTriggerCompression, p8 as stringifyDiagnosticsReport, YG as stripStainlessFetch, t$ as systemPromptHelpers, B$ as tokenize, AZ as toolError, PQ as unwrapSchema, bPe as useChat, H7 as useChatContext, LQ as validateAtPath, n8 as validateHtmlFormat, J6 as validateRootValueLocally, Rke as validateWriteLocally, _$ as watchFieldsHash, Yne as z, MZ as zodError };