@codex-app-sdk/vue 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5378,10 +5378,36 @@ var Mc = st({
5378
5378
  Dt
5379
5379
  ],
5380
5380
  themes: [kt, Ot]
5381
- }), Nc = new Set(Mc.getLoadedLanguages());
5382
- function Pc(e, t) {
5383
- let n = Ic(t);
5384
- if (!n || !Nc.has(n)) return Lc(e, t);
5381
+ }), Nc = new Set(Mc.getLoadedLanguages()), Pc = L(!1), Fc, Ic, Lc, Rc;
5382
+ function zc() {
5383
+ Rc ??= Promise.all([
5384
+ import("@pierre/highlights"),
5385
+ import("@pierre/highlights/themes/light-plus"),
5386
+ import("@pierre/highlights/themes/dark-plus")
5387
+ ]).then(([e, t, n]) => {
5388
+ Fc = e, Ic = t.default, Lc = n.default, Pc.value = !0;
5389
+ }).catch(() => {});
5390
+ }
5391
+ function Bc(e, t) {
5392
+ if (!Fc || !Ic || !Lc || !Fc.isSupportedLanguage(t)) return;
5393
+ let n = Fc.codeToTokens(e, {
5394
+ lang: t,
5395
+ themes: {
5396
+ light: Ic,
5397
+ dark: Lc
5398
+ },
5399
+ defaultColor: !1
5400
+ }), r = n.tokens.map((e) => `<span class="line">${e.map((e) => `<span style="${jc(Object.entries(e.htmlStyle ?? {}).map(([e, t]) => `${e}:${t}`).join(";"))}">${Ac(e.content)}</span>`).join("")}</span>`).join("\n");
5401
+ return `<pre class="highlights" style="${jc(n.rootStyle || "")}"><code>${r}</code></pre>`;
5402
+ }
5403
+ function Vc(e, t) {
5404
+ let n = Uc(t);
5405
+ if (!n || !Nc.has(n)) return Wc(e, t);
5406
+ zc(), Pc.value;
5407
+ try {
5408
+ let t = Bc(e, n);
5409
+ if (t !== void 0) return t;
5410
+ } catch {}
5385
5411
  try {
5386
5412
  return Mc.codeToHtml(e, {
5387
5413
  defaultColor: !1,
@@ -5392,10 +5418,10 @@ function Pc(e, t) {
5392
5418
  }
5393
5419
  });
5394
5420
  } catch {
5395
- return Lc(e, t);
5421
+ return Wc(e, t);
5396
5422
  }
5397
5423
  }
5398
- function Fc(e) {
5424
+ function Hc(e) {
5399
5425
  let t = (e ?? "").trim().toLowerCase(), n = t.match(/\.([^.\\/]+)$/)?.[1];
5400
5426
  switch (n) {
5401
5427
  case "patch": return "diff";
@@ -5420,38 +5446,38 @@ function Fc(e) {
5420
5446
  default: return t.endsWith("/dockerfile") || t === "dockerfile" ? "docker" : n;
5421
5447
  }
5422
5448
  }
5423
- function Ic(e) {
5449
+ function Uc(e) {
5424
5450
  let [t] = (e ?? "").trim().toLowerCase().split(/\s+/);
5425
5451
  return t || null;
5426
5452
  }
5427
- function Lc(e, t) {
5428
- let n = Ic(t);
5429
- return `<pre><code${n ? ` class="language-${jc(n)}"` : ""}>${Rc(e)}</code></pre>`;
5453
+ function Wc(e, t) {
5454
+ let n = Uc(t);
5455
+ return `<pre><code${n ? ` class="language-${jc(n)}"` : ""}>${Gc(e)}</code></pre>`;
5430
5456
  }
5431
- function Rc(e) {
5457
+ function Gc(e) {
5432
5458
  return e.split("\n").map((e) => `<span class="line">${Ac(e)}</span>`).join("\n");
5433
5459
  }
5434
5460
  //#endregion
5435
5461
  //#region src/chat/message-markdown.ts
5436
- var zc = new it();
5437
- zc.html = ({ text: e }) => Ac(e), zc.code = ({ text: e, lang: t }) => Pc(e, t), zc.link = ({ href: e, title: t, tokens: n }) => {
5438
- let r = Xc(n), i = qc(e);
5462
+ var Kc = new it();
5463
+ Kc.html = ({ text: e }) => Ac(e), Kc.code = ({ text: e, lang: t }) => Vc(e, t), Kc.link = ({ href: e, title: t, tokens: n }) => {
5464
+ let r = rl(n), i = el(e);
5439
5465
  if (!i) return `<span class="chat-message-link chat-message-link--blocked">${r}</span>`;
5440
- let a = t ? ` title="${jc(t)}"` : "", o = Yc(i), s = Uc(i) ? " target=\"_blank\" rel=\"noopener noreferrer\"" : "";
5466
+ let a = t ? ` title="${jc(t)}"` : "", o = nl(i), s = Xc(i) ? " target=\"_blank\" rel=\"noopener noreferrer\"" : "";
5441
5467
  return `<a class="chat-message-link" href="${jc(i)}"${a}${s}>${o}<span class="chat-message-link__label">${r}</span></a>`;
5442
- }, zc.image = ({ href: e, title: t, text: n }) => {
5443
- let r = Jc(e), i = jc(n);
5468
+ }, Kc.image = ({ href: e, title: t, text: n }) => {
5469
+ let r = tl(e), i = jc(n);
5444
5470
  if (!r) return `<span class="chat-message-image chat-message-image--blocked">${Ac(n)}</span>`;
5445
5471
  let a = t ? ` title="${jc(t)}"` : "";
5446
5472
  return `<img class="chat-message-image" src="${jc(r)}" alt="${i}"${a} loading="lazy" decoding="async" referrerpolicy="no-referrer">`;
5447
5473
  };
5448
- var Bc = new rt({
5474
+ var qc = new rt({
5449
5475
  async: !1,
5450
5476
  breaks: !0,
5451
5477
  gfm: !0,
5452
- renderer: zc
5478
+ renderer: Kc
5453
5479
  });
5454
- Bc.use(ot({
5480
+ qc.use(ot({
5455
5481
  maxExpand: 1e3,
5456
5482
  maxSize: 20,
5457
5483
  nonStandard: !1,
@@ -5459,7 +5485,7 @@ Bc.use(ot({
5459
5485
  strict: "ignore",
5460
5486
  throwOnError: !1,
5461
5487
  trust: !1
5462
- })), Bc.use({ extensions: [{
5488
+ })), qc.use({ extensions: [{
5463
5489
  name: "codexBlockKatex",
5464
5490
  level: "block",
5465
5491
  tokenizer(e) {
@@ -5471,7 +5497,7 @@ Bc.use(ot({
5471
5497
  };
5472
5498
  },
5473
5499
  renderer(e) {
5474
- return `${Gc(e.text, !0)}\n`;
5500
+ return `${Qc(e.text, !0)}\n`;
5475
5501
  }
5476
5502
  }, {
5477
5503
  name: "codexInlineKatex",
@@ -5485,14 +5511,14 @@ Bc.use(ot({
5485
5511
  };
5486
5512
  },
5487
5513
  renderer(e) {
5488
- return Gc(e.text, !1);
5514
+ return Qc(e.text, !1);
5489
5515
  }
5490
5516
  }] });
5491
- function Vc(e, t = {}) {
5492
- let n = Bc.parse(e);
5493
- return t.codeCopyLabel ? Hc(n, t.codeCopyLabel) : n;
5517
+ function Jc(e, t = {}) {
5518
+ let n = qc.parse(e);
5519
+ return t.codeCopyLabel ? Yc(n, t.codeCopyLabel) : n;
5494
5520
  }
5495
- function Hc(e, t) {
5521
+ function Yc(e, t) {
5496
5522
  let n = [
5497
5523
  `<button class="chat-code-block__copy" type="button" data-chat-code-copy aria-label="${jc(t)}" title="${jc(t)}">`,
5498
5524
  "<svg class=\"chat-code-block__copy-icon\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M8 8m-2 0a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2z\"/><path d=\"M16 6V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h2\"/></svg>",
@@ -5501,7 +5527,7 @@ function Hc(e, t) {
5501
5527
  ].join("");
5502
5528
  return e.replace(/(<pre\b[\s\S]*?<\/pre>)/g, `<div class="chat-code-block">${n}$1</div>`);
5503
5529
  }
5504
- function Uc(e) {
5530
+ function Xc(e) {
5505
5531
  try {
5506
5532
  let t = new URL(e);
5507
5533
  return t.protocol === "http:" || t.protocol === "https:";
@@ -5509,14 +5535,14 @@ function Uc(e) {
5509
5535
  return !1;
5510
5536
  }
5511
5537
  }
5512
- function Wc(e) {
5538
+ function Zc(e) {
5513
5539
  try {
5514
5540
  return new URL(e).protocol === "mailto:";
5515
5541
  } catch {
5516
5542
  return !1;
5517
5543
  }
5518
5544
  }
5519
- function Gc(e, t) {
5545
+ function Qc(e, t) {
5520
5546
  let n = at.renderToString(e, {
5521
5547
  displayMode: t,
5522
5548
  maxExpand: 1e3,
@@ -5528,14 +5554,14 @@ function Gc(e, t) {
5528
5554
  });
5529
5555
  return t ? `<span class="katex-display">${n}</span>` : n;
5530
5556
  }
5531
- var Kc = /* @__PURE__ */ new Set([
5557
+ var $c = /* @__PURE__ */ new Set([
5532
5558
  "file:",
5533
5559
  "http:",
5534
5560
  "https:",
5535
5561
  "mailto:",
5536
5562
  "tel:"
5537
5563
  ]);
5538
- function qc(e) {
5564
+ function el(e) {
5539
5565
  let t = e.trim();
5540
5566
  if (!t || /[\u0000-\u001f\u007f]/.test(t)) return null;
5541
5567
  if (/^[a-z]:[\\/]/i.test(t) || _n(t)) return t;
@@ -5543,15 +5569,15 @@ function qc(e) {
5543
5569
  let n = /^([a-z][a-z\d+.-]*):/i.exec(t)?.[1];
5544
5570
  if (!n) return t;
5545
5571
  let r = `${n.toLowerCase()}:`;
5546
- if (!Kc.has(r)) return null;
5572
+ if (!$c.has(r)) return null;
5547
5573
  try {
5548
5574
  return new URL(t), t;
5549
5575
  } catch {
5550
5576
  return null;
5551
5577
  }
5552
5578
  }
5553
- function Jc(e) {
5554
- let t = qc(e);
5579
+ function tl(e) {
5580
+ let t = el(e);
5555
5581
  if (!t || t.startsWith("#") || t.startsWith("?")) return null;
5556
5582
  try {
5557
5583
  let e = new URL(t).protocol;
@@ -5560,35 +5586,35 @@ function Jc(e) {
5560
5586
  return t;
5561
5587
  }
5562
5588
  }
5563
- function Yc(e) {
5564
- return Uc(e) ? "<svg class=\"chat-message-link__icon chat-message-link__icon--external\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15 3h6v6\"></path><path d=\"m10 14 11-11\"></path><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"></path></svg>" : Wc(e) ? "<svg class=\"chat-message-link__icon chat-message-link__icon--mail\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect width=\"20\" height=\"16\" x=\"2\" y=\"4\" rx=\"2\"></rect><path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\"></path></svg>" : "<svg class=\"chat-message-link__icon chat-message-link__icon--file\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\"></path><path d=\"M14 2v4a2 2 0 0 0 2 2h4\"></path></svg>";
5589
+ function nl(e) {
5590
+ return Xc(e) ? "<svg class=\"chat-message-link__icon chat-message-link__icon--external\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15 3h6v6\"></path><path d=\"m10 14 11-11\"></path><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"></path></svg>" : Zc(e) ? "<svg class=\"chat-message-link__icon chat-message-link__icon--mail\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect width=\"20\" height=\"16\" x=\"2\" y=\"4\" rx=\"2\"></rect><path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\"></path></svg>" : "<svg class=\"chat-message-link__icon chat-message-link__icon--file\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\"></path><path d=\"M14 2v4a2 2 0 0 0 2 2h4\"></path></svg>";
5565
5591
  }
5566
- function Xc(e) {
5567
- return e.map(Zc).join("");
5592
+ function rl(e) {
5593
+ return e.map(il).join("");
5568
5594
  }
5569
- function Zc(e) {
5595
+ function il(e) {
5570
5596
  if (!e || typeof e != "object") return "";
5571
5597
  let t = e;
5572
5598
  if (Array.isArray(t.tokens)) {
5573
- let e = Xc(t.tokens);
5599
+ let e = rl(t.tokens);
5574
5600
  return t.type === "strong" ? `<strong>${e}</strong>` : t.type === "em" ? `<em>${e}</em>` : e;
5575
5601
  }
5576
5602
  return t.type === "codespan" && typeof t.text == "string" ? `<code>${Ac(t.text)}</code>` : typeof t.text == "string" ? Ac(t.text) : typeof t.raw == "string" ? Ac(t.raw) : "";
5577
5603
  }
5578
5604
  //#endregion
5579
5605
  //#region src/chat/message-actions.ts
5580
- var Qc = /<tool\s+(id|index)="[^"]*"><\/tool>/g, $c = /<follow-up>[\s\S]*?<\/follow-up>/g, el = /<br\s*\/?>/gi;
5581
- function tl(e) {
5582
- return Oa(e).replace(Qc, "").replace($c, "").trim();
5606
+ var al = /<tool\s+(id|index)="[^"]*"><\/tool>/g, ol = /<follow-up>[\s\S]*?<\/follow-up>/g, sl = /<br\s*\/?>/gi;
5607
+ function cl(e) {
5608
+ return Oa(e).replace(al, "").replace(ol, "").trim();
5583
5609
  }
5584
- function nl(e) {
5585
- return ol(tl(e));
5610
+ function ll(e) {
5611
+ return pl(cl(e));
5586
5612
  }
5587
- function rl(e) {
5588
- return Vc(tl(e)).trim();
5613
+ function ul(e) {
5614
+ return Jc(cl(e)).trim();
5589
5615
  }
5590
- async function il(e, t = ji()) {
5591
- let n = nl(e), r = rl(e);
5616
+ async function dl(e, t = ji()) {
5617
+ let n = ll(e), r = ul(e);
5592
5618
  if (t) {
5593
5619
  await t.copyToClipboard({
5594
5620
  text: n,
@@ -5606,56 +5632,56 @@ async function il(e, t = ji()) {
5606
5632
  }
5607
5633
  await i.writeText(n);
5608
5634
  }
5609
- async function al(e, t = ji()) {
5635
+ async function fl(e, t = ji()) {
5610
5636
  if (t) {
5611
5637
  await t.copyToClipboard({ text: e });
5612
5638
  return;
5613
5639
  }
5614
5640
  await navigator.clipboard.writeText(e);
5615
5641
  }
5616
- function ol(e) {
5617
- let t = Vc(e).replace(el, "\n"), n = document.createElement("template");
5642
+ function pl(e) {
5643
+ let t = Jc(e).replace(sl, "\n"), n = document.createElement("template");
5618
5644
  n.innerHTML = t;
5619
5645
  let r = [];
5620
- return n.content.childNodes.forEach((e) => sl(e, r)), r.join("\n");
5646
+ return n.content.childNodes.forEach((e) => ml(e, r)), r.join("\n");
5621
5647
  }
5622
- function sl(e, t) {
5648
+ function ml(e, t) {
5623
5649
  if (e.nodeType === Node.TEXT_NODE) {
5624
5650
  let n = e.textContent.trim();
5625
- n && t.push(ll(n));
5651
+ n && t.push(gl(n));
5626
5652
  return;
5627
5653
  }
5628
5654
  if (!(e instanceof HTMLElement)) return;
5629
5655
  let n = e.tagName.toLowerCase();
5630
5656
  if (e.classList.contains("katex")) {
5631
- let n = cl(e).trim();
5632
- n && t.push(ll(n));
5657
+ let n = hl(e).trim();
5658
+ n && t.push(gl(n));
5633
5659
  return;
5634
5660
  }
5635
5661
  if (n === "pre") {
5636
5662
  let n = [...e.querySelectorAll(":scope > code > .line")].map((e) => e.textContent ?? "").join("\n").trim();
5637
- n && t.push(ll(n));
5663
+ n && t.push(gl(n));
5638
5664
  return;
5639
5665
  }
5640
5666
  if (n === "li" || n === "p" || /^h[1-6]$/.test(n)) {
5641
- let n = cl(e).trim();
5642
- n && t.push(ll(n));
5667
+ let n = hl(e).trim();
5668
+ n && t.push(gl(n));
5643
5669
  return;
5644
5670
  }
5645
- e.childNodes.forEach((e) => sl(e, t));
5671
+ e.childNodes.forEach((e) => ml(e, t));
5646
5672
  }
5647
- function cl(e) {
5648
- return e.nodeType === Node.TEXT_NODE ? e.textContent : e instanceof HTMLElement ? e.classList.contains("katex") ? e.querySelector("annotation[encoding=\"application/x-tex\"]")?.textContent ?? "" : [...e.childNodes].map(cl).join("") : "";
5673
+ function hl(e) {
5674
+ return e.nodeType === Node.TEXT_NODE ? e.textContent : e instanceof HTMLElement ? e.classList.contains("katex") ? e.querySelector("annotation[encoding=\"application/x-tex\"]")?.textContent ?? "" : [...e.childNodes].map(hl).join("") : "";
5649
5675
  }
5650
- function ll(e) {
5676
+ function gl(e) {
5651
5677
  return e.replace(/[ \t]+\n/g, "\n").replace(/\n{3,}/g, "\n\n");
5652
5678
  }
5653
5679
  //#endregion
5654
5680
  //#region src/chat/html-preview-document.ts
5655
- var ul = "<!doctype html><html><head>\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; script-src 'unsafe-inline' https:; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; connect-src 'none'; frame-src 'none'; form-action 'none'; base-uri 'none'\">\n</head><body><script>\naddEventListener('load', () => {\n document.open();\n addEventListener('message', function connect(event) {\n if (event.source !== parent || event.data !== 'codex-html-connect' || !event.ports[0]) return;\n removeEventListener('message', connect);\n const port = event.ports[0];\n port.onmessage = ({ data }) => {\n if (typeof data.chunk !== 'string') return;\n if (data.chunk) document.write(data.chunk);\n if (data.complete) document.close();\n };\n });\n parent.postMessage('codex-html-ready', '*');\n}, { once: true });\n<\/script></body></html>", dl = { class: "codex-chat-theme chat-html-block" }, fl = { class: "chat-html-block__header" }, pl = { class: "chat-html-block__title" }, ml = {
5681
+ var _l = "<!doctype html><html><head>\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; script-src 'unsafe-inline' https:; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; connect-src 'none'; frame-src 'none'; form-action 'none'; base-uri 'none'\">\n</head><body><script>\naddEventListener('load', () => {\n document.open();\n addEventListener('message', function connect(event) {\n if (event.source !== parent || event.data !== 'codex-html-connect' || !event.ports[0]) return;\n removeEventListener('message', connect);\n const port = event.ports[0];\n port.onmessage = ({ data }) => {\n if (typeof data.chunk !== 'string') return;\n if (data.chunk) document.write(data.chunk);\n if (data.complete) document.close();\n };\n });\n parent.postMessage('codex-html-ready', '*');\n}, { once: true });\n<\/script></body></html>", vl = { class: "codex-chat-theme chat-html-block" }, yl = { class: "chat-html-block__header" }, bl = { class: "chat-html-block__title" }, xl = {
5656
5682
  key: 0,
5657
5683
  class: "chat-html-block__status"
5658
- }, hl = { class: "chat-html-block__actions" }, gl = { class: "chat-html-block__viewport" }, _l = ["srcdoc", "title"], vl = { key: 0 }, yl = /*#__PURE__*/ X(/* @__PURE__ */ h({
5684
+ }, Sl = { class: "chat-html-block__actions" }, Cl = { class: "chat-html-block__viewport" }, wl = ["srcdoc", "title"], Tl = { key: 0 }, El = /*#__PURE__*/ X(/* @__PURE__ */ h({
5659
5685
  __name: "ChatHtmlBlock",
5660
5686
  props: {
5661
5687
  source: {},
@@ -5684,7 +5710,7 @@ var ul = "<!doctype html><html><head>\n<meta http-equiv=\"Content-Security-Polic
5684
5710
  }), f = !0, v());
5685
5711
  }
5686
5712
  function b() {
5687
- return al(t.source, r);
5713
+ return fl(t.source, r);
5688
5714
  }
5689
5715
  function x() {
5690
5716
  let e = URL.createObjectURL(new Blob([t.source], { type: "text/html" })), n = document.createElement("a");
@@ -5695,10 +5721,10 @@ var ul = "<!doctype html><html><head>\n<meta http-equiv=\"Content-Security-Polic
5695
5721
  return H(() => [t.source, t.complete], v), D(() => window.addEventListener("message", y)), E(() => {
5696
5722
  window.removeEventListener("message", y), _();
5697
5723
  for (let [e, t] of g) clearTimeout(t), URL.revokeObjectURL(e);
5698
- }), (t, r) => (k(), l("section", dl, [u("header", fl, [
5699
- u("span", pl, R(e.title || B(n)("chat.html.title")), 1),
5700
- e.complete ? c("", !0) : (k(), l("span", ml, R(B(n)("chat.html.streaming")), 1)),
5701
- u("div", hl, [
5724
+ }), (t, r) => (k(), l("section", vl, [u("header", yl, [
5725
+ u("span", bl, R(e.title || B(n)("chat.html.title")), 1),
5726
+ e.complete ? c("", !0) : (k(), l("span", xl, R(B(n)("chat.html.streaming")), 1)),
5727
+ u("div", Sl, [
5702
5728
  m(Ps, {
5703
5729
  label: B(n)(a.value ? "chat.html.preview" : "chat.html.source"),
5704
5730
  onClick: r[0] ||= (e) => a.value = !a.value
@@ -5719,57 +5745,57 @@ var ul = "<!doctype html><html><head>\n<meta http-equiv=\"Content-Security-Polic
5719
5745
  _: 1
5720
5746
  }, 8, ["label"])
5721
5747
  ])
5722
- ]), u("div", gl, [W((k(), l("iframe", {
5748
+ ]), u("div", Cl, [W((k(), l("iframe", {
5723
5749
  key: o.value,
5724
5750
  ref_key: "frame",
5725
5751
  ref: i,
5726
- srcdoc: B(ul),
5752
+ srcdoc: B(_l),
5727
5753
  title: e.title || B(n)("chat.html.title"),
5728
5754
  sandbox: "allow-scripts",
5729
5755
  referrerpolicy: "no-referrer"
5730
- }, null, 8, _l)), [[ie, !a.value]]), a.value ? (k(), l("pre", vl, [u("code", null, R(e.source), 1)])) : c("", !0)])]));
5756
+ }, null, 8, wl)), [[ie, !a.value]]), a.value ? (k(), l("pre", Tl, [u("code", null, R(e.source), 1)])) : c("", !0)])]));
5731
5757
  }
5732
- }), [["__scopeId", "data-v-f327ab9d"]]), bl = () => void 0, xl = Symbol("codex-app-sdk-tool-presentation");
5733
- function Sl(e) {
5734
- ee(xl, e);
5758
+ }), [["__scopeId", "data-v-f327ab9d"]]), Dl = () => void 0, Ol = Symbol("codex-app-sdk-tool-presentation");
5759
+ function kl(e) {
5760
+ ee(Ol, e);
5735
5761
  }
5736
- function Cl() {
5737
- return b(xl, bl);
5762
+ function Al() {
5763
+ return b(Ol, Dl);
5738
5764
  }
5739
5765
  //#endregion
5740
5766
  //#region src/chat/tool-call-details.ts
5741
- var wl = Symbol("codex-app-sdk-tool-call-details");
5742
- function Tl(e) {
5743
- ee(wl, e);
5767
+ var jl = Symbol("codex-app-sdk-tool-call-details");
5768
+ function Ml(e) {
5769
+ ee(jl, e);
5744
5770
  }
5745
- function El() {
5746
- let e = b(wl, !1);
5771
+ function Nl() {
5772
+ let e = b(jl, !1);
5747
5773
  return o(() => !!z(e));
5748
5774
  }
5749
5775
  //#endregion
5750
5776
  //#region src/chat/ChatToolCall.vue?vue&type=script&setup=true&lang.ts
5751
- var Dl = {
5777
+ var Pl = {
5752
5778
  key: 0,
5753
5779
  class: "chat-tool-call__summary"
5754
- }, Ol = {
5780
+ }, Fl = {
5755
5781
  key: 1,
5756
5782
  class: "chat-tool-call__header chat-tool-call__header--static"
5757
- }, kl = {
5783
+ }, Il = {
5758
5784
  key: 3,
5759
5785
  class: "chat-tool-call__body"
5760
- }, Al = {
5786
+ }, Ll = {
5761
5787
  key: 0,
5762
5788
  class: "chat-tool-call__section"
5763
- }, jl = { class: "chat-tool-call__json" }, Ml = {
5789
+ }, Rl = { class: "chat-tool-call__json" }, zl = {
5764
5790
  key: 1,
5765
5791
  class: "chat-tool-call__section"
5766
- }, Nl = { class: "chat-tool-call__json" }, Pl = { class: "chat-tool-call__body" }, Fl = {
5792
+ }, Bl = { class: "chat-tool-call__json" }, Vl = { class: "chat-tool-call__body" }, Hl = {
5767
5793
  key: 0,
5768
5794
  class: "chat-tool-call__section"
5769
- }, Il = { class: "chat-tool-call__json" }, Ll = {
5795
+ }, Ul = { class: "chat-tool-call__json" }, Wl = {
5770
5796
  key: 1,
5771
5797
  class: "chat-tool-call__section"
5772
- }, Rl = { class: "chat-tool-call__json" }, zl = /*#__PURE__*/ X(/* @__PURE__ */ h({
5798
+ }, Gl = { class: "chat-tool-call__json" }, Kl = /*#__PURE__*/ X(/* @__PURE__ */ h({
5773
5799
  __name: "ChatToolCall",
5774
5800
  props: {
5775
5801
  answeredClientRequestIds: {},
@@ -5788,7 +5814,7 @@ var Dl = {
5788
5814
  "open-link"
5789
5815
  ],
5790
5816
  setup(e, { emit: t }) {
5791
- let n = e, r = t, i = Yn(), a = Cl(), d = M(!1), f = El(), p = o(() => Sn(n.toolCall)), h = o(() => !n.toolCall.done && n.toolCall.state !== "completed"), g = o(() => Tn(n.toolCall.status)), _ = o(() => a({
5817
+ let n = e, r = t, i = Yn(), a = Al(), d = M(!1), f = Nl(), p = o(() => Sn(n.toolCall)), h = o(() => !n.toolCall.done && n.toolCall.state !== "completed"), g = o(() => Tn(n.toolCall.status)), _ = o(() => a({
5792
5818
  descriptor: g.value,
5793
5819
  ...n.toolCall.kind ? { kind: n.toolCall.kind } : {},
5794
5820
  ...n.toolCall.metadata ? { metadata: n.toolCall.metadata } : {},
@@ -5826,7 +5852,7 @@ var Dl = {
5826
5852
  "chat-tool-call--open": d.value,
5827
5853
  [`chat-tool-call--${e.toolCall.state}`]: !0
5828
5854
  }])
5829
- }, [e.summaryOnly ? (k(), l("div", Dl, [m(Do, {
5855
+ }, [e.summaryOnly ? (k(), l("div", Pl, [m(Do, {
5830
5856
  "line-diff": w.value,
5831
5857
  running: h.value,
5832
5858
  title: x.value.title,
@@ -5876,7 +5902,7 @@ var Dl = {
5876
5902
  ]), (k(), s(I(d.value ? B(ge) : B(me)), {
5877
5903
  class: "chat-tool-call__chevron",
5878
5904
  size: 15
5879
- }))])) : (k(), l("div", Ol, [m(Do, {
5905
+ }))])) : (k(), l("div", Fl, [m(Do, {
5880
5906
  "line-diff": w.value,
5881
5907
  running: h.value,
5882
5908
  title: x.value.title,
@@ -5895,22 +5921,22 @@ var Dl = {
5895
5921
  "title-target-parts",
5896
5922
  "tool-call",
5897
5923
  "tool-presentation"
5898
- ])])), e.headerless && D.value ? (k(), l("div", kl, [T.value ? (k(), l("div", Al, [n[5] ||= u("div", { class: "chat-tool-call__section-title" }, "Input", -1), u("pre", jl, R(A(p.value)), 1)])) : c("", !0), E.value ? (k(), l("div", Ml, [n[6] ||= u("div", { class: "chat-tool-call__section-title" }, "Result", -1), u("pre", Nl, R(A(e.toolCall.result)), 1)])) : c("", !0)])) : O.value ? (k(), s(Xs, {
5924
+ ])])), e.headerless && D.value ? (k(), l("div", Il, [T.value ? (k(), l("div", Ll, [n[5] ||= u("div", { class: "chat-tool-call__section-title" }, "Input", -1), u("pre", Rl, R(A(p.value)), 1)])) : c("", !0), E.value ? (k(), l("div", zl, [n[6] ||= u("div", { class: "chat-tool-call__section-title" }, "Result", -1), u("pre", Bl, R(A(e.toolCall.result)), 1)])) : c("", !0)])) : O.value ? (k(), s(Xs, {
5899
5925
  key: 4,
5900
5926
  open: d.value
5901
5927
  }, {
5902
- default: U(() => [u("div", Pl, [T.value ? (k(), l("div", Fl, [n[7] ||= u("div", { class: "chat-tool-call__section-title" }, "Input", -1), u("pre", Il, R(A(p.value)), 1)])) : c("", !0), E.value ? (k(), l("div", Ll, [n[8] ||= u("div", { class: "chat-tool-call__section-title" }, "Result", -1), u("pre", Rl, R(A(e.toolCall.result)), 1)])) : c("", !0)])]),
5928
+ default: U(() => [u("div", Vl, [T.value ? (k(), l("div", Hl, [n[7] ||= u("div", { class: "chat-tool-call__section-title" }, "Input", -1), u("pre", Ul, R(A(p.value)), 1)])) : c("", !0), E.value ? (k(), l("div", Wl, [n[8] ||= u("div", { class: "chat-tool-call__section-title" }, "Result", -1), u("pre", Gl, R(A(e.toolCall.result)), 1)])) : c("", !0)])]),
5903
5929
  _: 1
5904
5930
  }, 8, ["open"])) : c("", !0)], 2));
5905
5931
  }
5906
- }), [["__scopeId", "data-v-f2711f10"]]), Bl = {
5932
+ }), [["__scopeId", "data-v-f2711f10"]]), ql = {
5907
5933
  key: 1,
5908
5934
  class: "codex-chat-theme chat-tool-group"
5909
- }, Vl = ["data-label"], Hl = {
5935
+ }, Jl = ["data-label"], Yl = {
5910
5936
  key: 0,
5911
5937
  class: "chat-tool-group__diff",
5912
5938
  "aria-label": "Total line changes"
5913
- }, Ul = { class: "chat-tool-group__body" }, Wl = { class: "chat-tool-group__running-item-content" }, Gl = 3e3, Kl = /*#__PURE__*/ X(/* @__PURE__ */ h({
5939
+ }, Xl = { class: "chat-tool-group__body" }, Zl = { class: "chat-tool-group__running-item-content" }, Ql = 3e3, $l = /*#__PURE__*/ X(/* @__PURE__ */ h({
5914
5940
  __name: "ChatToolGroup",
5915
5941
  props: {
5916
5942
  activityTitle: {},
@@ -5927,7 +5953,7 @@ var Dl = {
5927
5953
  "open-link"
5928
5954
  ],
5929
5955
  setup(e, { emit: n }) {
5930
- let r = e, i = n, d = M(!1), f = M(/* @__PURE__ */ new Set()), p = /* @__PURE__ */ new Map(), h = new Set(r.toolCalls.filter(te).map((e) => e.id)), g = El(), _ = o(() => r.showToolDetails ?? g.value), v = o(() => r.toolCalls.length === 1), y = o(() => {
5956
+ let r = e, i = n, d = M(!1), f = M(/* @__PURE__ */ new Set()), p = /* @__PURE__ */ new Map(), h = new Set(r.toolCalls.filter(te).map((e) => e.id)), g = Nl(), _ = o(() => r.showToolDetails ?? g.value), v = o(() => r.toolCalls.length === 1), y = o(() => {
5931
5957
  if (!(!v.value || !r.toolCalls[0] || !ne(r.toolCalls[0]))) return r.toolCalls[0];
5932
5958
  }), b = o(() => r.toolCalls.filter((e) => !te(e))), x = o(() => !r.activityTitle && v.value && b.value.length === 1 ? r.toolCalls[0] : void 0), S = o(() => r.toolCalls.filter((e) => te(e) || !d.value && f.value.has(e.id) && x.value?.id !== e.id)), w = M(S.value.length > 0), T = o(() => Dn(r.toolCalls)), D = o(() => !!r.activityTitle || r.toolCalls.length > 1 || _.value && r.toolCalls.some(L)), O = o(() => {
5933
5959
  if (b.value.length > 0) {
@@ -5962,7 +5988,7 @@ var Dl = {
5962
5988
  return `${e} ${e === 1 ? "action" : "actions"}`;
5963
5989
  }
5964
5990
  function j(e) {
5965
- f.value = new Set(f.value).add(e), p.set(e, setTimeout(() => N(e), Gl));
5991
+ f.value = new Set(f.value).add(e), p.set(e, setTimeout(() => N(e), Ql));
5966
5992
  }
5967
5993
  function N(e) {
5968
5994
  let t = p.get(e);
@@ -5983,21 +6009,21 @@ var Dl = {
5983
6009
  function L(e) {
5984
6010
  return Sn(e) !== void 0 || e.result !== void 0 && e.result !== null;
5985
6011
  }
5986
- return (n, o) => y.value ? (k(), s(zl, {
6012
+ return (n, o) => y.value ? (k(), s(Kl, {
5987
6013
  key: 0,
5988
6014
  "answered-client-request-ids": e.answeredClientRequestIds,
5989
6015
  "tool-call": y.value,
5990
6016
  onCancel: o[0] ||= (e) => i("cancel"),
5991
6017
  onClientResponse: o[1] ||= (e) => i("client-response", e),
5992
6018
  onOpenLink: o[2] ||= (e) => i("open-link", e)
5993
- }, null, 8, ["answered-client-request-ids", "tool-call"])) : (k(), l("section", Bl, [
6019
+ }, null, 8, ["answered-client-request-ids", "tool-call"])) : (k(), l("section", ql, [
5994
6020
  r.toolCalls.length === 0 || x.value || b.value.length > 0 ? (k(), s(I(D.value ? "button" : "div"), {
5995
6021
  key: 0,
5996
6022
  class: C(["chat-tool-group__header", { "chat-tool-group__header--static": !D.value }]),
5997
6023
  type: D.value ? "button" : void 0,
5998
6024
  onClick: ee
5999
6025
  }, {
6000
- default: U(() => [x.value ? (k(), s(zl, {
6026
+ default: U(() => [x.value ? (k(), s(Kl, {
6001
6027
  key: 0,
6002
6028
  class: "chat-tool-group__active",
6003
6029
  "summary-only": "",
@@ -6017,8 +6043,8 @@ var Dl = {
6017
6043
  u("span", {
6018
6044
  class: "chat-tool-group__title",
6019
6045
  "data-label": O.value
6020
- }, R(O.value), 9, Vl),
6021
- T.value ? (k(), l("span", Hl, [T.value.addedLines ? (k(), s(mo, {
6046
+ }, R(O.value), 9, Jl),
6047
+ T.value ? (k(), l("span", Yl, [T.value.addedLines ? (k(), s(mo, {
6022
6048
  key: 0,
6023
6049
  kind: "added",
6024
6050
  label: "Total added lines",
@@ -6038,7 +6064,7 @@ var Dl = {
6038
6064
  _: 1
6039
6065
  }, 8, ["class", "type"])) : c("", !0),
6040
6066
  m(Xs, { open: d.value }, {
6041
- default: U(() => [u("div", Ul, [(k(!0), l(t, null, P(b.value, (t) => (k(), s(zl, {
6067
+ default: U(() => [u("div", Xl, [(k(!0), l(t, null, P(b.value, (t) => (k(), s(Kl, {
6042
6068
  key: t.id,
6043
6069
  "answered-client-request-ids": e.answeredClientRequestIds,
6044
6070
  headerless: v.value,
@@ -6066,7 +6092,7 @@ var Dl = {
6066
6092
  default: U(() => [(k(!0), l(t, null, P(S.value, (t) => (k(), l("div", {
6067
6093
  key: t.id,
6068
6094
  class: "chat-tool-group__running-item"
6069
- }, [u("div", Wl, [m(zl, {
6095
+ }, [u("div", Zl, [m(Kl, {
6070
6096
  class: "chat-tool-group__active",
6071
6097
  "summary-only": !_.value,
6072
6098
  "answered-client-request-ids": e.answeredClientRequestIds,
@@ -6088,7 +6114,7 @@ var Dl = {
6088
6114
  }), [["__scopeId", "data-v-7a9a4bb4"]]);
6089
6115
  //#endregion
6090
6116
  //#region src/chat/user-text.ts
6091
- function ql(e, t, n = [], r = [], i = []) {
6117
+ function eu(e, t, n = [], r = [], i = []) {
6092
6118
  return ae(t ?? [{
6093
6119
  type: "text",
6094
6120
  text: e
@@ -6139,19 +6165,19 @@ function ql(e, t, n = [], r = [], i = []) {
6139
6165
  }];
6140
6166
  });
6141
6167
  }
6142
- function Jl(e, t = [], n = [], r = []) {
6168
+ function tu(e, t = [], n = [], r = []) {
6143
6169
  let i = [], a = 0;
6144
- for (let o of e.matchAll(tu())) {
6170
+ for (let o of e.matchAll(cu())) {
6145
6171
  let s = o.index ?? 0;
6146
6172
  s > a && i.push({
6147
6173
  type: "text",
6148
6174
  text: e.slice(a, s)
6149
6175
  });
6150
6176
  let c = o[0], l = o[1], u = o[2], d = o[3], f = o[4], p = o[5];
6151
- l === void 0 ? u === void 0 ? f === void 0 ? i.push({ type: "line-break" }) : i.push(Yl(f, p, t, n, r) ?? {
6177
+ l === void 0 ? u === void 0 ? f === void 0 ? i.push({ type: "line-break" }) : i.push(nu(f, p, t, n, r) ?? {
6152
6178
  type: "text",
6153
6179
  text: c
6154
- }) : i.push(Xl(u, d, t, n) ?? {
6180
+ }) : i.push(ru(u, d, t, n) ?? {
6155
6181
  type: "text",
6156
6182
  text: c
6157
6183
  }) : i.push({
@@ -6164,7 +6190,7 @@ function Jl(e, t = [], n = [], r = []) {
6164
6190
  text: e.slice(a)
6165
6191
  }), i;
6166
6192
  }
6167
- function Yl(e, t, n, r, i) {
6193
+ function nu(e, t, n, r, i) {
6168
6194
  if (e === "$") {
6169
6195
  let i = r.find((e) => Mr(e, t));
6170
6196
  if (i) return {
@@ -6199,27 +6225,27 @@ function Yl(e, t, n, r, i) {
6199
6225
  ...s
6200
6226
  } : null;
6201
6227
  }
6202
- function Xl(e, t, n, r) {
6203
- let i = e.trim(), a = Zl(t);
6228
+ function ru(e, t, n, r) {
6229
+ let i = e.trim(), a = iu(t);
6204
6230
  if (i.startsWith("@") && a.startsWith("plugin://")) {
6205
- let e = $l(a.slice(9));
6231
+ let e = ou(a.slice(9));
6206
6232
  if (!e) return null;
6207
6233
  let t = n.find((t) => t.id === e), r = i.slice(1) || e.split("@")[0];
6208
6234
  return {
6209
6235
  type: "plugin-mention",
6210
- displayName: t?.displayName || eu(r, "App"),
6236
+ displayName: t?.displayName || su(r, "App"),
6211
6237
  href: a,
6212
6238
  label: i,
6213
6239
  ...t ? { plugin: t } : {}
6214
6240
  };
6215
6241
  }
6216
6242
  if (i.startsWith("$")) {
6217
- let e = Ql(a);
6243
+ let e = au(a);
6218
6244
  if (!e) return null;
6219
6245
  let t = r.find((t) => t.path === e);
6220
6246
  return {
6221
6247
  type: "skill-mention",
6222
- displayName: t ? kr(t, n) : eu(i, "Skill"),
6248
+ displayName: t ? kr(t, n) : su(i, "Skill"),
6223
6249
  href: a,
6224
6250
  label: i,
6225
6251
  ...t ? { skill: t } : {}
@@ -6227,12 +6253,12 @@ function Xl(e, t, n, r) {
6227
6253
  }
6228
6254
  return null;
6229
6255
  }
6230
- function Zl(e) {
6256
+ function iu(e) {
6231
6257
  let t = e.trim();
6232
6258
  return t.startsWith("<") && t.endsWith(">") ? t.slice(1, -1).trim() : t;
6233
6259
  }
6234
- function Ql(e) {
6235
- let t = e.split(/[?#]/, 1)[0], n = $l(t);
6260
+ function au(e) {
6261
+ let t = e.split(/[?#]/, 1)[0], n = ou(t);
6236
6262
  if (n.startsWith("file://")) try {
6237
6263
  n = decodeURIComponent(new URL(n).pathname);
6238
6264
  } catch {
@@ -6240,26 +6266,26 @@ function Ql(e) {
6240
6266
  }
6241
6267
  return /(?:^|[\\/])SKILL\.md$/i.test(n) ? n : null;
6242
6268
  }
6243
- function $l(e) {
6269
+ function ou(e) {
6244
6270
  try {
6245
6271
  return decodeURIComponent(e);
6246
6272
  } catch {
6247
6273
  return e;
6248
6274
  }
6249
6275
  }
6250
- function eu(e, t) {
6276
+ function su(e, t) {
6251
6277
  let n = e.trim().replace(/^[@$]/, "");
6252
- return !n || nu(n) ? t : n.split(/[-_:\s]/).filter(Boolean).map((e) => `${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(" ");
6278
+ return !n || lu(n) ? t : n.split(/[-_:\s]/).filter(Boolean).map((e) => `${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(" ");
6253
6279
  }
6254
- function tu() {
6280
+ function cu() {
6255
6281
  return /`([^`\n]+)`|\[([^\]\n]+)\]\(([^)\n]+)\)|(?<![\w.%+-])([$@/])([A-Za-z0-9_.:-]+(?:[ \t]+\([A-Za-z0-9_.-]+\))?)|(\n)/g;
6256
6282
  }
6257
- function nu(e) {
6283
+ function lu(e) {
6258
6284
  return /^app[-_]?[a-f\d]{16,}$/i.test(e);
6259
6285
  }
6260
6286
  //#endregion
6261
6287
  //#region src/chat/ChatUserText.vue?vue&type=script&setup=true&lang.ts
6262
- var ru = { class: "codex-chat-theme chat-user-text codex-markdown" }, iu = { key: 0 }, au = { key: 1 }, ou = { key: 2 }, su = ["title"], cu = { class: "chat-user-text__mention-label" }, lu = ["title"], uu = { class: "chat-user-text__mention-label" }, du = ["title"], fu = ["src", "onError"], pu = ["src", "onError"], mu = {
6288
+ var uu = { class: "codex-chat-theme chat-user-text codex-markdown" }, du = { key: 0 }, fu = { key: 1 }, pu = { key: 2 }, mu = ["title"], hu = { class: "chat-user-text__mention-label" }, gu = ["title"], _u = { class: "chat-user-text__mention-label" }, vu = ["title"], yu = ["src", "onError"], bu = ["src", "onError"], xu = {
6263
6289
  key: 2,
6264
6290
  class: "chat-user-text__mention-icon",
6265
6291
  "aria-hidden": "true",
@@ -6269,7 +6295,7 @@ var ru = { class: "codex-chat-theme chat-user-text codex-markdown" }, iu = { key
6269
6295
  "stroke-width": "1.9",
6270
6296
  "stroke-linecap": "round",
6271
6297
  "stroke-linejoin": "round"
6272
- }, hu = { class: "chat-user-text__mention-label" }, gu = /*#__PURE__*/ X(/* @__PURE__ */ h({
6298
+ }, Su = { class: "chat-user-text__mention-label" }, Cu = /*#__PURE__*/ X(/* @__PURE__ */ h({
6273
6299
  __name: "ChatUserText",
6274
6300
  props: {
6275
6301
  content: {},
@@ -6279,7 +6305,7 @@ var ru = { class: "codex-chat-theme chat-user-text codex-markdown" }, iu = { key
6279
6305
  skills: { default: () => [] }
6280
6306
  },
6281
6307
  setup(e) {
6282
- let n = e, r = A(/* @__PURE__ */ new Set()), i = o(() => ql(n.content, n.promptContent, n.plugins, n.skills, n.mentionGroups));
6308
+ let n = e, r = A(/* @__PURE__ */ new Set()), i = o(() => eu(n.content, n.promptContent, n.plugins, n.skills, n.mentionGroups));
6283
6309
  function a(e, t) {
6284
6310
  let n = e.type === "plugin-mention" ? t === "dark" && e.plugin?.iconUrlDark !== e.plugin?.iconUrl ? e.plugin?.iconUrlDark : t === "light" ? e.plugin?.iconUrl : void 0 : t === "light" ? e.skill?.iconSmall : void 0;
6285
6311
  return !n || r.has(n) ? null : n.startsWith("blob:") || n.startsWith("https://") || /^data:image\/(?:avif|bmp|gif|jpeg|png|svg\+xml|webp|x-icon);base64,/i.test(n) ? n : null;
@@ -6294,14 +6320,14 @@ var ru = { class: "codex-chat-theme chat-user-text codex-markdown" }, iu = { key
6294
6320
  function h(e) {
6295
6321
  return !!(e && /^#[\da-f]{3,8}$/i.test(e));
6296
6322
  }
6297
- return (e, n) => (k(), l("div", ru, [u("p", null, [(k(!0), l(t, null, P(i.value, (i, o) => (k(), l(t, { key: `${i.type}-${o}` }, [i.type === "text" ? (k(), l("span", iu, R(i.text), 1)) : i.type === "code" ? (k(), l("code", au, R(i.text), 1)) : i.type === "line-break" ? (k(), l("br", ou)) : i.type === "file-mention" ? (k(), l("span", {
6323
+ return (e, n) => (k(), l("div", uu, [u("p", null, [(k(!0), l(t, null, P(i.value, (i, o) => (k(), l(t, { key: `${i.type}-${o}` }, [i.type === "text" ? (k(), l("span", du, R(i.text), 1)) : i.type === "code" ? (k(), l("code", fu, R(i.text), 1)) : i.type === "line-break" ? (k(), l("br", pu)) : i.type === "file-mention" ? (k(), l("span", {
6298
6324
  key: 3,
6299
6325
  class: "chat-user-text__mention chat-user-text__mention--file",
6300
6326
  title: i.displayName
6301
6327
  }, [m(B(Se), {
6302
6328
  class: "chat-user-text__mention-icon",
6303
6329
  "aria-hidden": "true"
6304
- }), u("span", cu, R(i.displayName), 1)], 8, su)) : i.type === "custom-mention" ? F(e.$slots, "mention", {
6330
+ }), u("span", hu, R(i.displayName), 1)], 8, mu)) : i.type === "custom-mention" ? F(e.$slots, "mention", {
6305
6331
  group: i.group,
6306
6332
  item: i.item,
6307
6333
  token: i,
@@ -6312,7 +6338,7 @@ var ru = { class: "codex-chat-theme chat-user-text codex-markdown" }, iu = { key
6312
6338
  }, [m(B(He), {
6313
6339
  class: "chat-user-text__mention-icon",
6314
6340
  "aria-hidden": "true"
6315
- }), u("span", uu, R(i.displayName), 1)], 8, lu)], !0, 4) : (k(), l("span", {
6341
+ }), u("span", _u, R(i.displayName), 1)], 8, gu)], !0, 4) : (k(), l("span", {
6316
6342
  key: 5,
6317
6343
  class: C(["chat-user-text__mention", `chat-user-text__mention--${i.type === "plugin-mention" ? "plugin" : "skill"}`]),
6318
6344
  style: T(d(i)),
@@ -6331,7 +6357,7 @@ var ru = { class: "codex-chat-theme chat-user-text codex-markdown" }, iu = { key
6331
6357
  loading: "lazy",
6332
6358
  referrerpolicy: "no-referrer",
6333
6359
  onError: (e) => r.add(a(i, "light"))
6334
- }, null, 40, fu)) : c("", !0),
6360
+ }, null, 40, yu)) : c("", !0),
6335
6361
  a(i, "dark") ? (k(), l("img", {
6336
6362
  key: 1,
6337
6363
  class: "chat-user-text__mention-image chat-user-text__mention-image--dark",
@@ -6342,18 +6368,18 @@ var ru = { class: "codex-chat-theme chat-user-text codex-markdown" }, iu = { key
6342
6368
  loading: "lazy",
6343
6369
  referrerpolicy: "no-referrer",
6344
6370
  onError: (e) => r.add(a(i, "dark"))
6345
- }, null, 40, pu)) : c("", !0),
6346
- i.type === "plugin-mention" ? (k(), l("svg", mu, [...n[0] ||= [f("<path d=\"M8 3v4\" data-v-34b5fd00></path><path d=\"M16 3v4\" data-v-34b5fd00></path><path d=\"M6 7h12v3a6 6 0 0 1-12 0V7\" data-v-34b5fd00></path><path d=\"M12 16v5\" data-v-34b5fd00></path><path d=\"M9 21h6\" data-v-34b5fd00></path>", 5)]])) : (k(), s(B(He), {
6371
+ }, null, 40, bu)) : c("", !0),
6372
+ i.type === "plugin-mention" ? (k(), l("svg", xu, [...n[0] ||= [f("<path d=\"M8 3v4\" data-v-34b5fd00></path><path d=\"M16 3v4\" data-v-34b5fd00></path><path d=\"M6 7h12v3a6 6 0 0 1-12 0V7\" data-v-34b5fd00></path><path d=\"M12 16v5\" data-v-34b5fd00></path><path d=\"M9 21h6\" data-v-34b5fd00></path>", 5)]])) : (k(), s(B(He), {
6347
6373
  key: 3,
6348
6374
  class: "chat-user-text__mention-icon",
6349
6375
  "aria-hidden": "true"
6350
6376
  }))
6351
- ], 2), u("span", hu, R(i.displayName), 1)], 14, du))], 64))), 128))])]));
6377
+ ], 2), u("span", Su, R(i.displayName), 1)], 14, vu))], 64))), 128))])]));
6352
6378
  }
6353
- }), [["__scopeId", "data-v-34b5fd00"]]), _u = {
6379
+ }), [["__scopeId", "data-v-34b5fd00"]]), wu = {
6354
6380
  key: 1,
6355
6381
  class: "codex-chat-theme chat-visualization-block"
6356
- }, vu = /*#__PURE__*/ X(/* @__PURE__ */ h({
6382
+ }, Tu = /*#__PURE__*/ X(/* @__PURE__ */ h({
6357
6383
  __name: "ChatVisualizationBlock",
6358
6384
  props: {
6359
6385
  path: {},
@@ -6377,22 +6403,22 @@ var ru = { class: "codex-chat-theme chat-user-text codex-markdown" }, iu = { key
6377
6403
  m(B(Ee), { class: "chat-visualization-block__icon" }),
6378
6404
  u("span", null, R(e.title), 1),
6379
6405
  m(B(Y), { class: "chat-visualization-block__open" })
6380
- ])) : (k(), l("div", _u, [m(B(Ee), { class: "chat-visualization-block__icon" }), u("span", null, R(e.title), 1)]));
6406
+ ])) : (k(), l("div", wu, [m(B(Ee), { class: "chat-visualization-block__icon" }), u("span", null, R(e.title), 1)]));
6381
6407
  }
6382
6408
  }), [["__scopeId", "data-v-6aa2f6f0"]]);
6383
6409
  //#endregion
6384
6410
  //#region src/chat/work-duration.ts
6385
- function yu(e) {
6411
+ function Eu(e) {
6386
6412
  if (e == null || !Number.isFinite(e) || e < 1e3) return "";
6387
6413
  let t = Math.floor(e / 1e3), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = t % 60;
6388
6414
  return n > 0 ? r > 0 ? `${n}h ${r}m` : `${n}h` : r > 0 ? i > 0 ? `${r}m ${i}s` : `${r}m` : `${i}s`;
6389
6415
  }
6390
6416
  //#endregion
6391
6417
  //#region src/chat/ChatWorkGroup.vue?vue&type=script&setup=true&lang.ts
6392
- var bu = ["aria-expanded", "disabled"], xu = ["data-label"], Su = { class: "chat-work-group__body" }, Cu = {
6418
+ var Du = ["aria-expanded", "disabled"], Ou = ["data-label"], ku = { class: "chat-work-group__body" }, Au = {
6393
6419
  key: 2,
6394
6420
  class: "chat-work-group__body chat-work-group__body--continuation"
6395
- }, wu = /*#__PURE__*/ X(/* @__PURE__ */ h({
6421
+ }, ju = /*#__PURE__*/ X(/* @__PURE__ */ h({
6396
6422
  __name: "ChatWorkGroup",
6397
6423
  props: {
6398
6424
  active: { type: Boolean },
@@ -6408,9 +6434,9 @@ var bu = ["aria-expanded", "disabled"], xu = ["data-label"], Su = { class: "chat
6408
6434
  }, { immediate: !0 }), O(() => clearInterval(v));
6409
6435
  let y = o(() => {
6410
6436
  if (!a.value) return "";
6411
- if (!m.value) return yu(r.durationMs?.value);
6437
+ if (!m.value) return Eu(r.durationMs?.value);
6412
6438
  let e = r.startedAt?.value;
6413
- return e ? yu(_.value - Date.parse(e)) : "";
6439
+ return e ? Eu(_.value - Date.parse(e)) : "";
6414
6440
  }), x = o(() => {
6415
6441
  let e = { duration: y.value }, t = y.value !== "", i = m.value ? "working" : r?.status.value === "interrupted" ? "stopped" : r?.status.value === "failed" ? "failed" : "done";
6416
6442
  if (i === "working") return n(t ? "chat.work.workingFor" : "chat.work.working", e);
@@ -6444,18 +6470,18 @@ var bu = ["aria-expanded", "disabled"], xu = ["data-label"], Su = { class: "chat
6444
6470
  }, [u("span", {
6445
6471
  class: C(["chat-work-group__title", { "codex-text-shimmer": m.value }]),
6446
6472
  "data-label": x.value
6447
- }, R(x.value), 11, xu), m.value ? c("", !0) : (k(), s(I(h.value ? B(me) : B(he)), {
6473
+ }, R(x.value), 11, Ou), m.value ? c("", !0) : (k(), s(I(h.value ? B(me) : B(he)), {
6448
6474
  key: 0,
6449
6475
  size: 15
6450
- }))], 8, bu)) : c("", !0), g.value ? (k(), s(Xs, {
6476
+ }))], 8, Du)) : c("", !0), g.value ? (k(), s(Xs, {
6451
6477
  key: 1,
6452
6478
  open: h.value
6453
6479
  }, {
6454
- default: U(() => [u("div", Su, [F(e.$slots, "default", {}, void 0, !0)])]),
6480
+ default: U(() => [u("div", ku, [F(e.$slots, "default", {}, void 0, !0)])]),
6455
6481
  _: 3
6456
- }, 8, ["open"])) : (k(), l("div", Cu, [F(e.$slots, "default", {}, void 0, !0)]))], 2)) : c("", !0);
6482
+ }, 8, ["open"])) : (k(), l("div", Au, [F(e.$slots, "default", {}, void 0, !0)]))], 2)) : c("", !0);
6457
6483
  }
6458
- }), [["__scopeId", "data-v-0c35c769"]]), Tu = ["innerHTML"], Eu = ["innerHTML"], Du = /*#__PURE__*/ X(/* @__PURE__ */ h({
6484
+ }), [["__scopeId", "data-v-0c35c769"]]), Mu = ["innerHTML"], Nu = ["innerHTML"], Pu = /*#__PURE__*/ X(/* @__PURE__ */ h({
6459
6485
  __name: "ChatMessageBlock",
6460
6486
  props: {
6461
6487
  block: {},
@@ -6478,13 +6504,13 @@ var bu = ["aria-expanded", "disabled"], xu = ["data-label"], Su = { class: "chat
6478
6504
  "send-follow-up"
6479
6505
  ],
6480
6506
  setup(e, { emit: n }) {
6481
- let r = e, i = n, a = Yn(), f = Ai(), p = o(() => r.block.type === "text" || r.block.type === "reasoning" ? Vc(r.block.content, { codeCopyLabel: a("chat.code.copy") }) : ""), h = /* @__PURE__ */ new Map();
6507
+ let r = e, i = n, a = Yn(), f = Ai(), p = o(() => r.block.type === "text" || r.block.type === "reasoning" ? Jc(r.block.content, { codeCopyLabel: a("chat.code.copy") }) : ""), h = /* @__PURE__ */ new Map();
6482
6508
  async function g(e) {
6483
6509
  let t = (e.target instanceof Element ? e.target : null)?.closest("[data-chat-code-copy]");
6484
6510
  if (!t) return;
6485
6511
  let n = t.closest(".chat-code-block")?.querySelector("pre code")?.textContent;
6486
6512
  if (n === void 0) return;
6487
- await al(n, f), t.dataset.copied = "true", t.setAttribute("aria-label", a("chat.code.copied")), t.title = a("chat.code.copied");
6513
+ await fl(n, f), t.dataset.copied = "true", t.setAttribute("aria-label", a("chat.code.copied")), t.title = a("chat.code.copied");
6488
6514
  let r = h.get(t);
6489
6515
  clearTimeout(r), h.set(t, setTimeout(() => {
6490
6516
  t.removeAttribute("data-copied"), t.setAttribute("aria-label", a("chat.code.copy")), t.title = a("chat.code.copy"), h.delete(t);
@@ -6498,7 +6524,7 @@ var bu = ["aria-expanded", "disabled"], xu = ["data-label"], Su = { class: "chat
6498
6524
  return e.block.type === "user-text" ? F(n.$slots, "text", {
6499
6525
  block: e.block,
6500
6526
  content: e.block.content
6501
- }, () => [m(gu, {
6527
+ }, () => [m(Cu, {
6502
6528
  class: "chat-message-block chat-message-block--text",
6503
6529
  content: e.block.content,
6504
6530
  "prompt-content": e.block.promptContent,
@@ -6523,12 +6549,12 @@ var bu = ["aria-expanded", "disabled"], xu = ["data-label"], Su = { class: "chat
6523
6549
  class: "codex-chat-theme chat-message-block chat-message-block--text codex-markdown",
6524
6550
  innerHTML: p.value,
6525
6551
  onClick: g
6526
- }, null, 8, Tu)], !0, 1) : e.block.type === "reasoning" ? (k(), l("div", {
6552
+ }, null, 8, Mu)], !0, 1) : e.block.type === "reasoning" ? (k(), l("div", {
6527
6553
  key: 2,
6528
6554
  class: "codex-chat-theme chat-message-block chat-message-block--reasoning codex-markdown",
6529
6555
  innerHTML: p.value,
6530
6556
  onClick: g
6531
- }, null, 8, Eu)) : e.block.type === "html" ? (k(), s(yl, {
6557
+ }, null, 8, Nu)) : e.block.type === "html" ? (k(), s(El, {
6532
6558
  key: 3,
6533
6559
  source: e.block.source,
6534
6560
  title: e.block.title,
@@ -6540,7 +6566,7 @@ var bu = ["aria-expanded", "disabled"], xu = ["data-label"], Su = { class: "chat
6540
6566
  ])) : e.block.type === "mermaid" ? F(n.$slots, "mermaid", {
6541
6567
  block: e.block,
6542
6568
  code: e.block.code
6543
- }, () => [m(kc, { code: e.block.code }, null, 8, ["code"])], !0, 4) : e.block.type === "visualization" ? F(n.$slots, "visualization", { block: e.block }, () => [m(vu, {
6569
+ }, () => [m(kc, { code: e.block.code }, null, 8, ["code"])], !0, 4) : e.block.type === "visualization" ? F(n.$slots, "visualization", { block: e.block }, () => [m(Tu, {
6544
6570
  path: e.block.path,
6545
6571
  title: e.block.title,
6546
6572
  onOpenVisualization: r[0] ||= (e) => i("open-visualization", e)
@@ -6569,7 +6595,7 @@ var bu = ["aria-expanded", "disabled"], xu = ["data-label"], Su = { class: "chat
6569
6595
  }, null, 8, ["attachment", "open-image"])], !0, 8) : e.block.type === "tool" ? F(n.$slots, "tool", {
6570
6596
  block: e.block,
6571
6597
  toolCall: e.block.toolCall
6572
- }, () => [m(zl, {
6598
+ }, () => [m(Kl, {
6573
6599
  "answered-client-request-ids": e.answeredClientRequestIds,
6574
6600
  "show-tool-details": e.showToolDetails,
6575
6601
  "tool-call": e.block.toolCall,
@@ -6583,7 +6609,7 @@ var bu = ["aria-expanded", "disabled"], xu = ["data-label"], Su = { class: "chat
6583
6609
  ])], !0, 9) : e.block.type === "tool-group" ? F(n.$slots, "tool", {
6584
6610
  block: e.block,
6585
6611
  toolCalls: e.block.toolCalls
6586
- }, () => [m(Kl, {
6612
+ }, () => [m($l, {
6587
6613
  "activity-title": e.block.activityTitle,
6588
6614
  "answered-client-request-ids": e.answeredClientRequestIds,
6589
6615
  "show-tool-details": e.showToolDetails,
@@ -6596,7 +6622,7 @@ var bu = ["aria-expanded", "disabled"], xu = ["data-label"], Su = { class: "chat
6596
6622
  "answered-client-request-ids",
6597
6623
  "show-tool-details",
6598
6624
  "tool-calls"
6599
- ])], !0, 10) : e.block.type === "work-group" ? (k(), s(wu, {
6625
+ ])], !0, 10) : e.block.type === "work-group" ? (k(), s(ju, {
6600
6626
  key: 11,
6601
6627
  active: e.block.active,
6602
6628
  continuation: e.block.continuation,
@@ -6658,15 +6684,15 @@ var bu = ["aria-expanded", "disabled"], xu = ["data-label"], Su = { class: "chat
6658
6684
  }, null, 8, ["disabled", "prompts"])) : c("", !0);
6659
6685
  };
6660
6686
  }
6661
- }), [["__scopeId", "data-v-e5561e04"]]), Ou = 1440 * 60 * 1e3;
6662
- function ku(e, t = /* @__PURE__ */ new Date()) {
6687
+ }), [["__scopeId", "data-v-e5561e04"]]), Fu = 1440 * 60 * 1e3;
6688
+ function Iu(e, t = /* @__PURE__ */ new Date()) {
6663
6689
  let n = new Date(e);
6664
6690
  if (Number.isNaN(n.getTime())) return "";
6665
6691
  let r = {
6666
6692
  hour: "numeric",
6667
6693
  minute: "2-digit"
6668
6694
  };
6669
- return ju(n, t) ? new Intl.DateTimeFormat(void 0, r).format(n) : n.getTime() < t.getTime() && t.getTime() - n.getTime() < 7 * Ou ? new Intl.DateTimeFormat(void 0, {
6695
+ return Ru(n, t) ? new Intl.DateTimeFormat(void 0, r).format(n) : n.getTime() < t.getTime() && t.getTime() - n.getTime() < 7 * Fu ? new Intl.DateTimeFormat(void 0, {
6670
6696
  weekday: "short",
6671
6697
  ...r
6672
6698
  }).format(n) : new Intl.DateTimeFormat(void 0, {
@@ -6674,19 +6700,19 @@ function ku(e, t = /* @__PURE__ */ new Date()) {
6674
6700
  timeStyle: "short"
6675
6701
  }).format(n);
6676
6702
  }
6677
- function Au(e) {
6703
+ function Lu(e) {
6678
6704
  let t = new Date(e);
6679
6705
  return Number.isNaN(t.getTime()) ? "" : new Intl.DateTimeFormat(void 0, {
6680
6706
  dateStyle: "full",
6681
6707
  timeStyle: "short"
6682
6708
  }).format(t);
6683
6709
  }
6684
- function ju(e, t) {
6710
+ function Ru(e, t) {
6685
6711
  return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
6686
6712
  }
6687
6713
  //#endregion
6688
6714
  //#region src/chat/ChatMessageActions.vue?vue&type=script&setup=true&lang.ts
6689
- var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__PURE__*/ X(/* @__PURE__ */ h({
6715
+ var zu = ["aria-busy", "aria-label"], Bu = ["title"], Vu = ["title"], Hu = /*#__PURE__*/ X(/* @__PURE__ */ h({
6690
6716
  __name: "ChatMessageActions",
6691
6717
  props: {
6692
6718
  canDelete: {
@@ -6720,7 +6746,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
6720
6746
  "retry"
6721
6747
  ],
6722
6748
  setup(e, { emit: t }) {
6723
- let n = e, r = t, i = Yn(), a = o(() => n.presentation?.copy !== !1), u = o(() => n.presentation?.delete !== !1), d = o(() => n.presentation?.edit !== !1), f = o(() => n.presentation?.fork !== !1), p = o(() => n.presentation?.quote !== !1), h = o(() => n.presentation?.retry !== !1), g = o(() => n.message.createdAt ? ku(n.message.createdAt) : ""), _ = o(() => n.message.createdAt ? Au(n.message.createdAt) : void 0);
6749
+ let n = e, r = t, i = Yn(), a = o(() => n.presentation?.copy !== !1), u = o(() => n.presentation?.delete !== !1), d = o(() => n.presentation?.edit !== !1), f = o(() => n.presentation?.fork !== !1), p = o(() => n.presentation?.quote !== !1), h = o(() => n.presentation?.retry !== !1), g = o(() => n.message.createdAt ? Iu(n.message.createdAt) : ""), _ = o(() => n.message.createdAt ? Lu(n.message.createdAt) : void 0);
6724
6750
  async function v() {
6725
6751
  await n.copyAction?.(), r("copy");
6726
6752
  }
@@ -6733,7 +6759,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
6733
6759
  key: 0,
6734
6760
  class: "chat-message-actions__sent-at",
6735
6761
  title: _.value
6736
- }, R(g.value), 9, Nu)) : c("", !0),
6762
+ }, R(g.value), 9, Bu)) : c("", !0),
6737
6763
  a.value ? (k(), s(Js, {
6738
6764
  key: 1,
6739
6765
  action: v,
@@ -6798,10 +6824,10 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
6798
6824
  key: 7,
6799
6825
  class: "chat-message-actions__sent-at",
6800
6826
  title: _.value
6801
- }, R(g.value), 9, Pu)) : c("", !0)
6802
- ], 10, Mu));
6827
+ }, R(g.value), 9, Vu)) : c("", !0)
6828
+ ], 10, zu));
6803
6829
  }
6804
- }), [["__scopeId", "data-v-704b28cf"]]), Iu = ["data-label"], Lu = /*#__PURE__*/ X(/* @__PURE__ */ h({
6830
+ }), [["__scopeId", "data-v-704b28cf"]]), Uu = ["data-label"], Wu = /*#__PURE__*/ X(/* @__PURE__ */ h({
6805
6831
  __name: "ChatCompactionMessage",
6806
6832
  props: {
6807
6833
  completedTitle: {},
@@ -6813,9 +6839,9 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
6813
6839
  return (e, t) => (k(), l("div", { class: C(["codex-chat-theme chat-message chat-message--compaction", { "chat-message--compaction-running": n.value }]) }, [t[0] ||= u("div", { class: "chat-message__compaction-line" }, null, -1), u("span", {
6814
6840
  class: "chat-message__compaction-title",
6815
6841
  "data-label": r.value
6816
- }, [u("span", { class: C(["chat-message__compaction-label", { "codex-text-shimmer": n.value }]) }, R(r.value), 3)], 8, Iu)], 2));
6842
+ }, [u("span", { class: C(["chat-message__compaction-label", { "codex-text-shimmer": n.value }]) }, R(r.value), 3)], 8, Uu)], 2));
6817
6843
  }
6818
- }), [["__scopeId", "data-v-49449489"]]), Ru = { class: "codex-chat-theme chat-message__edit-card" }, zu = ["aria-label", "onKeydown"], Bu = { class: "chat-message__edit-actions" }, Vu = /*#__PURE__*/ X(/* @__PURE__ */ h({
6844
+ }), [["__scopeId", "data-v-49449489"]]), Gu = { class: "codex-chat-theme chat-message__edit-card" }, Ku = ["aria-label", "onKeydown"], qu = { class: "chat-message__edit-actions" }, Ju = /*#__PURE__*/ X(/* @__PURE__ */ h({
6819
6845
  __name: "ChatMessageEditor",
6820
6846
  props: {
6821
6847
  cancelLabel: {},
@@ -6857,7 +6883,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
6857
6883
  let e = i.value.trim();
6858
6884
  e && (a.value ? r("save", e, { content: se(a.value.readContent()) }) : r("save", e));
6859
6885
  }
6860
- return (t, n) => (k(), l("div", Ru, [e.promptContent?.some((e) => e.type === "mention") ? (k(), s(di, {
6886
+ return (t, n) => (k(), l("div", Gu, [e.promptContent?.some((e) => e.type === "mention") ? (k(), s(di, {
6861
6887
  key: 0,
6862
6888
  ref_key: "richInput",
6863
6889
  ref: a,
@@ -6884,7 +6910,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
6884
6910
  G(K(m, ["meta", "prevent"]), ["enter"]),
6885
6911
  G(K(m, ["ctrl", "prevent"]), ["enter"])
6886
6912
  ]
6887
- }, null, 40, zu)), [[V, i.value]]), u("div", Bu, [u("button", {
6913
+ }, null, 40, Ku)), [[V, i.value]]), u("div", qu, [u("button", {
6888
6914
  type: "button",
6889
6915
  class: "chat-message__edit-button",
6890
6916
  onClick: d
@@ -6894,23 +6920,23 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
6894
6920
  onClick: m
6895
6921
  }, R(e.saveLabel), 1)])]));
6896
6922
  }
6897
- }), [["__scopeId", "data-v-50787bcd"]]), Hu = { class: "chat-message__body" }, Uu = {
6923
+ }), [["__scopeId", "data-v-50787bcd"]]), Yu = { class: "chat-message__body" }, Xu = {
6898
6924
  key: 0,
6899
6925
  class: "chat-message--steer chat-message--steer-above"
6900
- }, Wu = {
6926
+ }, Zu = {
6901
6927
  key: 1,
6902
6928
  class: "chat-message__attachments",
6903
6929
  "aria-label": "Message attachments"
6904
- }, Gu = {
6930
+ }, Qu = {
6905
6931
  key: 2,
6906
6932
  class: "chat-message__stack"
6907
- }, Ku = {
6933
+ }, $u = {
6908
6934
  key: 0,
6909
6935
  class: "chat-message__empty-response"
6910
- }, qu = ["data-label"], Ju = {
6936
+ }, ed = ["data-label"], td = {
6911
6937
  key: 4,
6912
6938
  class: "chat-message--steer chat-message--steer-below"
6913
- }, Yu = /*#__PURE__*/ X(/* @__PURE__ */ h({
6939
+ }, nd = /*#__PURE__*/ X(/* @__PURE__ */ h({
6914
6940
  __name: "CodexMessage",
6915
6941
  props: {
6916
6942
  activityState: {},
@@ -7020,12 +7046,12 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7020
7046
  });
7021
7047
  }
7022
7048
  async function he() {
7023
- await il(h.value.content, a);
7049
+ await dl(h.value.content, a);
7024
7050
  }
7025
7051
  function ge(e) {
7026
7052
  return e.type === "text" ? e.content.trim().length > 0 : e.type === "attachment" || e.type === "media" || e.type === "mermaid" || e.type === "html" || e.type === "reasoning" || e.type === "tool" || e.type === "tool-group" || e.type === "visualization" || e.type === "work-group";
7027
7053
  }
7028
- return (n, r) => h.value.type === "compaction" ? (k(), s(Lu, {
7054
+ return (n, r) => h.value.type === "compaction" ? (k(), s(Wu, {
7029
7055
  key: 0,
7030
7056
  class: "codex-chat-theme",
7031
7057
  "completed-title": B(f)("chat.compaction.completed"),
@@ -7041,17 +7067,17 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7041
7067
  "chat-message--actions-visible": e.actionsAlwaysVisible && !V.value,
7042
7068
  "chat-message--editing": z.value
7043
7069
  }]])
7044
- }, [u("div", Hu, [
7045
- n.$slots.header ? (k(), l("div", Uu, [F(n.$slots, "header", {
7070
+ }, [u("div", Yu, [
7071
+ n.$slots.header ? (k(), l("div", Xu, [F(n.$slots, "header", {
7046
7072
  index: e.index,
7047
7073
  message: h.value
7048
7074
  }, void 0, !0)])) : c("", !0),
7049
- te.value.length > 0 ? (k(), l("div", Wu, [(k(!0), l(t, null, P(te.value, ({ block: t, blockIndex: r }) => F(n.$slots, "block", {
7075
+ te.value.length > 0 ? (k(), l("div", Zu, [(k(!0), l(t, null, P(te.value, ({ block: t, blockIndex: r }) => F(n.$slots, "block", {
7050
7076
  block: t,
7051
7077
  blockIndex: r,
7052
7078
  index: e.index,
7053
7079
  message: h.value
7054
- }, () => [m(Du, {
7080
+ }, () => [m(Pu, {
7055
7081
  block: t,
7056
7082
  "open-image": me
7057
7083
  }, d({ _: 2 }, [n.$slots.attachment ? {
@@ -7062,7 +7088,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7062
7088
  }), void 0, !0)]),
7063
7089
  key: "0"
7064
7090
  } : void 0]), 1032, ["block"])], !0, `attachment-${r}`)), 128))])) : c("", !0),
7065
- z.value || I.value.length > 0 || q.value || J.value || se.value ? (k(), l("div", Gu, [z.value ? (k(), s(Vu, {
7091
+ z.value || I.value.length > 0 || q.value || J.value || se.value ? (k(), l("div", Qu, [z.value ? (k(), s(Ju, {
7066
7092
  key: 0,
7067
7093
  "cancel-label": B(f)("chat.actions.cancel"),
7068
7094
  content: L.value,
@@ -7078,7 +7104,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7078
7104
  "input-label",
7079
7105
  "save-label"
7080
7106
  ])) : (k(), l(t, { key: 1 }, [
7081
- (k(!0), l(t, null, P(I.value, ({ block: a, blockIndex: o }) => (k(), l(t, { key: a.type === "tool" ? a.toolCall.id : `${a.type}-${o}` }, [a.type === "work-group" ? (k(), s(Du, {
7107
+ (k(!0), l(t, null, P(I.value, ({ block: a, blockIndex: o }) => (k(), l(t, { key: a.type === "tool" ? a.toolCall.id : `${a.type}-${o}` }, [a.type === "work-group" ? (k(), s(Pu, {
7082
7108
  key: 0,
7083
7109
  "answered-client-request-ids": e.answeredClientRequestIds,
7084
7110
  block: a,
@@ -7131,7 +7157,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7131
7157
  blockIndex: o,
7132
7158
  index: e.index,
7133
7159
  message: h.value
7134
- }, () => [m(Du, {
7160
+ }, () => [m(Pu, {
7135
7161
  "answered-client-request-ids": e.answeredClientRequestIds,
7136
7162
  block: a,
7137
7163
  "follow-ups-disabled": e.followUpsDisabled,
@@ -7187,14 +7213,14 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7187
7213
  "show-tool-details",
7188
7214
  "skills"
7189
7215
  ])], !0, 1)], 64))), 128)),
7190
- q.value ? (k(), l("span", Ku, R(B(f)("chat.message.emptyResponse")), 1)) : c("", !0),
7216
+ q.value ? (k(), l("span", $u, R(B(f)("chat.message.emptyResponse")), 1)) : c("", !0),
7191
7217
  J.value ? F(n.$slots, "thinking", {
7192
7218
  index: e.index,
7193
7219
  message: h.value
7194
7220
  }, () => [u("span", {
7195
7221
  class: "chat-message__thinking codex-text-shimmer",
7196
7222
  "data-label": p.value
7197
- }, R(p.value), 9, qu)], !0, 1) : se.value ? F(n.$slots, "status", {
7223
+ }, R(p.value), 9, ed)], !0, 1) : se.value ? F(n.$slots, "status", {
7198
7224
  index: e.index,
7199
7225
  message: h.value,
7200
7226
  status: "streaming"
@@ -7207,7 +7233,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7207
7233
  disabled: V.value,
7208
7234
  index: e.index,
7209
7235
  message: h.value
7210
- }, () => [m(Fu, {
7236
+ }, () => [m(Hu, {
7211
7237
  class: C(["chat-message__actions", { "chat-message__actions--reserved": V.value }]),
7212
7238
  "aria-hidden": V.value ? "true" : void 0,
7213
7239
  inert: V.value ? "" : void 0,
@@ -7239,10 +7265,10 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7239
7265
  "mutation-disabled",
7240
7266
  "presentation"
7241
7267
  ])], !0, 3) : c("", !0),
7242
- h.value.type === "steer" ? (k(), l("div", Ju, " Steered conversation ")) : c("", !0)
7268
+ h.value.type === "steer" ? (k(), l("div", td, " Steered conversation ")) : c("", !0)
7243
7269
  ])], 2));
7244
7270
  }
7245
- }), [["__scopeId", "data-v-e335a910"]]), Xu = { class: "codex-message-turn" }, Zu = /*#__PURE__*/ X(/* @__PURE__ */ h({
7271
+ }), [["__scopeId", "data-v-e335a910"]]), rd = { class: "codex-message-turn" }, id = /*#__PURE__*/ X(/* @__PURE__ */ h({
7246
7272
  __name: "CodexMessageTurn",
7247
7273
  props: {
7248
7274
  active: { type: Boolean },
@@ -7285,9 +7311,9 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7285
7311
  let n = xa(e).filter((e) => t.showToolBlocks || e.type !== "tool" && e.type !== "tool-group");
7286
7312
  return n.length === 0 ? !1 : i.value ? n.some((e) => Fa(e, t.answeredClientRequestIds)) : u.value && n.every((e) => e.type === "tool" || e.type === "tool-group");
7287
7313
  }
7288
- return (e, t) => (k(), l("div", Xu, [F(e.$slots, "default", {}, void 0, !0)]));
7314
+ return (e, t) => (k(), l("div", rd, [F(e.$slots, "default", {}, void 0, !0)]));
7289
7315
  }
7290
- }), [["__scopeId", "data-v-140530d7"]]), Qu = ["aria-label", "title"], $u = /*#__PURE__*/ X(/* @__PURE__ */ h({
7316
+ }), [["__scopeId", "data-v-140530d7"]]), ad = ["aria-label", "title"], od = /*#__PURE__*/ X(/* @__PURE__ */ h({
7291
7317
  __name: "CodexScrollToBottom",
7292
7318
  props: { label: { default: "Scroll to bottom" } },
7293
7319
  emits: ["click"],
@@ -7303,9 +7329,9 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7303
7329
  "aria-hidden": "true",
7304
7330
  size: 24,
7305
7331
  "stroke-width": 1.75
7306
- })], 8, Qu));
7332
+ })], 8, ad));
7307
7333
  }
7308
- }), [["__scopeId", "data-v-5a75ce89"]]), ed = ["aria-label"], td = { class: "codex-message-list__content" }, nd = { class: "codex-message-list__empty" }, rd = ["data-codex-message-index"], id = /*#__PURE__*/ X(/* @__PURE__ */ h({
7334
+ }), [["__scopeId", "data-v-5a75ce89"]]), sd = ["aria-label"], cd = { class: "codex-message-list__content" }, ld = { class: "codex-message-list__empty" }, ud = ["data-codex-message-index"], dd = /*#__PURE__*/ X(/* @__PURE__ */ h({
7309
7335
  __name: "CodexMessageList",
7310
7336
  props: {
7311
7337
  actionsDisabled: { type: Boolean },
@@ -7696,7 +7722,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7696
7722
  onClickCapture: he,
7697
7723
  onPointerdown: ge,
7698
7724
  onScroll: pe
7699
- }, [u("div", td, [N.value.length === 0 ? F(n.$slots, "empty", {}, () => [u("p", nd, R(e.emptyLabel), 1)], !0, 0) : (k(!0), l(t, { key: 1 }, P(I.value, (i) => (k(), s(Zu, {
7725
+ }, [u("div", cd, [N.value.length === 0 ? F(n.$slots, "empty", {}, () => [u("p", ld, R(e.emptyLabel), 1)], !0, 0) : (k(!0), l(t, { key: 1 }, P(I.value, (i) => (k(), s(id, {
7700
7726
  key: i.key,
7701
7727
  entries: i.entries,
7702
7728
  "answered-client-request-ids": e.answeredClientRequestIds,
@@ -7714,7 +7740,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7714
7740
  }, [n.$slots.message ? F(n.$slots, "message", {
7715
7741
  message: B($)(G(t.message, i.turnId)),
7716
7742
  index: t.index
7717
- }, void 0, !0, 0) : (k(), s(Yu, {
7743
+ }, void 0, !0, 0) : (k(), s(nd, {
7718
7744
  key: 1,
7719
7745
  "activity-state": t.activityState,
7720
7746
  "actions-disabled": e.actionsDisabled,
@@ -7814,7 +7840,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7814
7840
  "show-tool-details",
7815
7841
  "skills",
7816
7842
  "thread-actions-disabled"
7817
- ]))], 8, rd))), 128))]),
7843
+ ]))], 8, ud))), 128))]),
7818
7844
  _: 2
7819
7845
  }, 1032, [
7820
7846
  "entries",
@@ -7825,20 +7851,20 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7825
7851
  "started-at",
7826
7852
  "duration-ms",
7827
7853
  "turn-id"
7828
- ]))), 128))])], 544), se.value ? (k(), s($u, {
7854
+ ]))), 128))])], 544), se.value ? (k(), s(od, {
7829
7855
  key: 0,
7830
7856
  class: "codex-message-list__scroll-to-bottom",
7831
7857
  label: e.scrollToBottomLabel,
7832
7858
  onClick: Re
7833
- }, null, 8, ["label"])) : c("", !0)], 8, ed));
7859
+ }, null, 8, ["label"])) : c("", !0)], 8, sd));
7834
7860
  }
7835
- }), [["__scopeId", "data-v-de1bda22"]]), ad = {
7861
+ }), [["__scopeId", "data-v-de1bda22"]]), fd = {
7836
7862
  key: 0,
7837
7863
  class: "codex-workbench-layout__body codex-workbench-layout__body--scroll"
7838
- }, od = { class: "codex-workbench-layout__body-content" }, sd = {
7864
+ }, pd = { class: "codex-workbench-layout__body-content" }, md = {
7839
7865
  key: 1,
7840
7866
  class: "codex-workbench-layout__body codex-workbench-layout__body--child"
7841
- }, cd = /*#__PURE__*/ X(/* @__PURE__ */ h({
7867
+ }, hd = /*#__PURE__*/ X(/* @__PURE__ */ h({
7842
7868
  __name: "CodexWorkbenchLayout",
7843
7869
  props: { scrollMode: { default: "body" } },
7844
7870
  setup(e) {
@@ -7864,7 +7890,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7864
7890
  class: C(["codex-chat-theme codex-workbench-layout", `codex-workbench-layout--${e.scrollMode}`]),
7865
7891
  style: T(a.value)
7866
7892
  }, [
7867
- e.scrollMode === "body" ? (k(), l("div", ad, [u("div", od, [F(r.$slots, "default", {}, void 0, !0)])])) : (k(), l("div", sd, [F(r.$slots, "default", {}, void 0, !0)])),
7893
+ e.scrollMode === "body" ? (k(), l("div", fd, [u("div", pd, [F(r.$slots, "default", {}, void 0, !0)])])) : (k(), l("div", md, [F(r.$slots, "default", {}, void 0, !0)])),
7868
7894
  r.$slots.header ? (k(), l("div", {
7869
7895
  key: 2,
7870
7896
  ref_key: "headerEl",
@@ -7879,36 +7905,36 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
7879
7905
  }, [F(r.$slots, "footer", {}, void 0, !0)], 512)) : c("", !0)
7880
7906
  ], 6));
7881
7907
  }
7882
- }), [["__scopeId", "data-v-18471407"]]), ld = [
7908
+ }), [["__scopeId", "data-v-18471407"]]), gd = [
7883
7909
  "aria-busy",
7884
7910
  "aria-label",
7885
7911
  "data-codex-generating"
7886
- ], ud = {
7912
+ ], _d = {
7887
7913
  key: 1,
7888
7914
  class: "codex-conversation-pane__hero"
7889
- }, dd = { class: "codex-conversation-pane__hero-copy" }, fd = { key: 0 }, pd = {
7915
+ }, vd = { class: "codex-conversation-pane__hero-copy" }, yd = { key: 0 }, bd = {
7890
7916
  key: 0,
7891
7917
  class: "codex-conversation-pane__error",
7892
7918
  role: "alert"
7893
- }, md = {
7919
+ }, xd = {
7894
7920
  key: 1,
7895
7921
  class: "codex-conversation-pane__approvals"
7896
- }, hd = {
7922
+ }, Sd = {
7897
7923
  key: 0,
7898
7924
  class: "codex-conversation-pane__pending-question"
7899
- }, gd = ["aria-label"], _d = {
7925
+ }, Cd = ["aria-label"], wd = {
7900
7926
  key: 0,
7901
7927
  class: "codex-conversation-pane__attachments",
7902
7928
  "aria-label": "Prompt attachments"
7903
- }, vd = ["src", "alt"], yd = {
7929
+ }, Td = ["src", "alt"], Ed = {
7904
7930
  key: 1,
7905
7931
  class: "codex-conversation-pane__attachment-file",
7906
7932
  "aria-hidden": "true"
7907
- }, bd = ["title"], xd = { class: "codex-conversation-pane__attachment-actions" }, Sd = [
7933
+ }, Dd = ["title"], Od = { class: "codex-conversation-pane__attachment-actions" }, kd = [
7908
7934
  "aria-label",
7909
7935
  "disabled",
7910
7936
  "onClick"
7911
- ], Cd = /*#__PURE__*/ X(/* @__PURE__ */ h({
7937
+ ], Ad = /*#__PURE__*/ X(/* @__PURE__ */ h({
7912
7938
  __name: "CodexConversationPane",
7913
7939
  props: {
7914
7940
  ariaLabel: { default: "Conversation" },
@@ -8568,7 +8594,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8568
8594
  }, [vt.value ? (k(), s(Ms, {
8569
8595
  key: 0,
8570
8596
  class: "codex-conversation-pane__history-loader"
8571
- })) : (k(), s(cd, {
8597
+ })) : (k(), s(hd, {
8572
8598
  key: 1,
8573
8599
  class: "codex-conversation-pane__layout",
8574
8600
  "scroll-mode": "child"
@@ -8577,7 +8603,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8577
8603
  ref_key: "footerElement",
8578
8604
  ref: y,
8579
8605
  class: "codex-conversation-pane__footer"
8580
- }, [Ie.value ? (k(), l("p", pd, R(Ie.value), 1)) : c("", !0), De.value ? (k(), l("div", md, [F(n.$slots, "approval", { approval: De.value }, () => [(k(), s(sa, {
8606
+ }, [Ie.value ? (k(), l("p", bd, R(Ie.value), 1)) : c("", !0), De.value ? (k(), l("div", xd, [F(n.$slots, "approval", { approval: De.value }, () => [(k(), s(sa, {
8581
8607
  key: De.value.id,
8582
8608
  approval: De.value,
8583
8609
  disabled: Fe.value,
@@ -8683,7 +8709,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8683
8709
  "onUpdate:reasoningEffort": gn,
8684
8710
  "onUpdate:serviceTier": _n
8685
8711
  }, d({
8686
- "before-meta": U(() => [Y.value.length > 0 ? (k(), l("span", hd, [u("button", {
8712
+ "before-meta": U(() => [Y.value.length > 0 ? (k(), l("span", Sd, [u("button", {
8687
8713
  class: "codex-conversation-pane__pending-question-cancel",
8688
8714
  type: "button",
8689
8715
  "aria-label": "Cancel pending question",
@@ -8699,8 +8725,8 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8699
8725
  type: "button",
8700
8726
  "aria-label": Y.value.length === 1 ? "Pending question" : `${Y.value.length} pending questions`,
8701
8727
  onClick: r[3] ||= (e) => h.value = Y.value[0].id
8702
- }, R(Y.value.length === 1 ? "Pending question" : `${Y.value.length} pending questions`), 9, gd)])) : c("", !0)]),
8703
- before: U(() => [K.value.length > 0 ? (k(), l("div", _d, [(k(!0), l(t, null, P(K.value, (e, t) => (k(), l("div", {
8728
+ }, R(Y.value.length === 1 ? "Pending question" : `${Y.value.length} pending questions`), 9, Cd)])) : c("", !0)]),
8729
+ before: U(() => [K.value.length > 0 ? (k(), l("div", wd, [(k(!0), l(t, null, P(K.value, (e, t) => (k(), l("div", {
8704
8730
  key: e.id,
8705
8731
  class: "codex-conversation-pane__attachment"
8706
8732
  }, [
@@ -8709,12 +8735,12 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8709
8735
  class: "codex-conversation-pane__attachment-preview",
8710
8736
  src: e.previewUrl,
8711
8737
  alt: e.name
8712
- }, null, 8, vd)) : (k(), l("span", yd, "📎")),
8738
+ }, null, 8, Td)) : (k(), l("span", Ed, "📎")),
8713
8739
  u("span", {
8714
8740
  class: "codex-conversation-pane__attachment-name",
8715
8741
  title: e.name
8716
- }, R(e.name), 9, bd),
8717
- u("span", xd, [F(n.$slots, "composer-attachment-actions", {
8742
+ }, R(e.name), 9, Dd),
8743
+ u("span", Od, [F(n.$slots, "composer-attachment-actions", {
8718
8744
  attachments: K.value,
8719
8745
  index: t,
8720
8746
  disabled: Fe.value
@@ -8724,7 +8750,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8724
8750
  "aria-label": `Remove ${e.name}`,
8725
8751
  disabled: Fe.value,
8726
8752
  onClick: (t) => Gt(e.id)
8727
- }, [m(B(et), { "aria-hidden": "true" })], 8, Sd)])
8753
+ }, [m(B(et), { "aria-hidden": "true" })], 8, kd)])
8728
8754
  ]))), 128))])) : c("", !0), F(n.$slots, "composer-context", { disabled: Fe.value }, void 0, !0)]),
8729
8755
  _: 2
8730
8756
  }, [
@@ -8761,7 +8787,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8761
8787
  ]), 1032, /* @__PURE__ */ "autofocus.attach-enabled.capabilities.can-continue-interrupted-turn.commands.composer-state.context-usage.disabled.draft.empty-send-prompt.follow-up-behavior.files.has-attachments.has-external-content.interrupt-armed.plugins.prompt-history.prompt-history-loading.queued-prompt-id.is-sending.leading-menu-items.menu-items.model-menu-items.mention-groups.model-catalog-status.models.placeholder.approval-preset.plan-mode.presentation.selected-model-id.selected-reasoning-effort.selected-service-tier.skill-catalog-status.skills.transcribe-audio".split("."))),
8762
8788
  F(n.$slots, "after-composer", {}, void 0, !0)
8763
8789
  ], 64))], 512)]),
8764
- default: U(() => [yt.value ? (k(), s(id, {
8790
+ default: U(() => [yt.value ? (k(), s(dd, {
8765
8791
  key: 0,
8766
8792
  ref_key: "messageList",
8767
8793
  ref: b,
@@ -8861,23 +8887,23 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8861
8887
  fn: U((e) => [F(n.$slots, "message-tool", w(_(e)), void 0, !0)]),
8862
8888
  key: "9"
8863
8889
  } : void 0
8864
- ]), 1032, /* @__PURE__ */ "actions-disabled.active-turn-id.answered-client-request-ids.aria-label.busy.can-delete-turn.can-edit-turn.can-fork-turn.can-retry-turn.deleting-turn-id.empty-label.follow-ups-disabled.has-older-messages.hidden-client-request-ids.render-strategy.loading-older-messages.initial-message-batch-size.message-batch-size.message-text-selection.messages.mention-groups.plugins.presentation.reset-key.scroll-to-bottom-label.show-tool-details.skills.tool-visibility.transform-message.turns".split("."))) : (k(), l("div", ud, [F(n.$slots, "empty", {
8890
+ ]), 1032, /* @__PURE__ */ "actions-disabled.active-turn-id.answered-client-request-ids.aria-label.busy.can-delete-turn.can-edit-turn.can-fork-turn.can-retry-turn.deleting-turn-id.empty-label.follow-ups-disabled.has-older-messages.hidden-client-request-ids.render-strategy.loading-older-messages.initial-message-batch-size.message-batch-size.message-text-selection.messages.mention-groups.plugins.presentation.reset-key.scroll-to-bottom-label.show-tool-details.skills.tool-visibility.transform-message.turns".split("."))) : (k(), l("div", _d, [F(n.$slots, "empty", {
8865
8891
  title: e.emptyTitle,
8866
8892
  description: e.emptyDescription
8867
- }, () => [u("div", dd, [u("h1", null, R(e.emptyTitle), 1), e.emptyDescription ? (k(), l("p", fd, R(e.emptyDescription), 1)) : c("", !0)])], !0)]))]),
8893
+ }, () => [u("div", vd, [u("h1", null, R(e.emptyTitle), 1), e.emptyDescription ? (k(), l("p", yd, R(e.emptyDescription), 1)) : c("", !0)])], !0)]))]),
8868
8894
  _: 3
8869
- }))], 40, ld));
8895
+ }))], 40, gd));
8870
8896
  }
8871
- }), [["__scopeId", "data-v-249aa3bf"]]), wd = {
8897
+ }), [["__scopeId", "data-v-249aa3bf"]]), jd = {
8872
8898
  class: "codex-conversation-sidebar",
8873
8899
  "aria-label": "Conversations"
8874
- }, Td = { class: "codex-conversation-sidebar__header" }, Ed = { class: "codex-conversation-sidebar__brand" }, Dd = ["disabled"], Od = {
8900
+ }, Md = { class: "codex-conversation-sidebar__header" }, Nd = { class: "codex-conversation-sidebar__brand" }, Pd = ["disabled"], Fd = {
8875
8901
  key: 0,
8876
8902
  class: "codex-conversation-sidebar__empty"
8877
- }, kd = {
8903
+ }, Id = {
8878
8904
  key: 1,
8879
8905
  class: "codex-conversation-sidebar__list"
8880
- }, Ad = ["aria-current", "onClick"], jd = ["aria-label", "title"], Md = { class: "codex-conversation-sidebar__title" }, Nd = { class: "codex-conversation-sidebar__time" }, Pd = ["aria-label", "onClick"], Fd = /*#__PURE__*/ X(/* @__PURE__ */ h({
8906
+ }, Ld = ["aria-current", "onClick"], Rd = ["aria-label", "title"], zd = { class: "codex-conversation-sidebar__title" }, Bd = { class: "codex-conversation-sidebar__time" }, Vd = ["aria-label", "onClick"], Hd = /*#__PURE__*/ X(/* @__PURE__ */ h({
8881
8907
  __name: "CodexConversationSidebar",
8882
8908
  props: {
8883
8909
  activeConversationId: { default: null },
@@ -8909,12 +8935,12 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8909
8935
  let n = Math.floor(t / 60);
8910
8936
  return n < 24 ? `${n}h` : `${Math.floor(n / 24)}d`;
8911
8937
  }
8912
- return (n, o) => (k(), l("aside", wd, [u("div", Td, [u("span", Ed, R(e.brand), 1), u("button", {
8938
+ return (n, o) => (k(), l("aside", jd, [u("div", Md, [u("span", Nd, R(e.brand), 1), u("button", {
8913
8939
  class: "codex-conversation-sidebar__new",
8914
8940
  type: "button",
8915
8941
  disabled: e.createDisabled,
8916
8942
  onClick: o[0] ||= (e) => r("create")
8917
- }, [...o[1] ||= [u("span", { "aria-hidden": "true" }, "+", -1), p(" New thread ", -1)]], 8, Dd)]), e.conversations.length === 0 ? (k(), l("p", Od, R(e.loading ? "Loading threads…" : "No conversations yet"), 1)) : (k(), l("nav", kd, [(k(!0), l(t, null, P(e.conversations, (t) => (k(), l("div", {
8943
+ }, [...o[1] ||= [u("span", { "aria-hidden": "true" }, "+", -1), p(" New thread ", -1)]], 8, Pd)]), e.conversations.length === 0 ? (k(), l("p", Fd, R(e.loading ? "Loading threads…" : "No conversations yet"), 1)) : (k(), l("nav", Id, [(k(!0), l(t, null, P(e.conversations, (t) => (k(), l("div", {
8918
8944
  key: t.id,
8919
8945
  class: C(["codex-conversation-sidebar__item", { "codex-conversation-sidebar__item--active": t.id === e.activeConversationId }])
8920
8946
  }, [u("button", {
@@ -8927,10 +8953,10 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8927
8953
  class: C(["codex-conversation-sidebar__status", `codex-conversation-sidebar__status--${t.status}`]),
8928
8954
  "aria-label": `Status: ${t.status}`,
8929
8955
  title: t.status
8930
- }, null, 10, jd),
8931
- u("span", Md, R(t.title), 1),
8932
- u("span", Nd, R(a(t.updatedAt)), 1)
8933
- ], 8, Ad), u("button", {
8956
+ }, null, 10, Rd),
8957
+ u("span", zd, R(t.title), 1),
8958
+ u("span", Bd, R(a(t.updatedAt)), 1)
8959
+ ], 8, Ld), u("button", {
8934
8960
  class: "codex-conversation-sidebar__delete",
8935
8961
  type: "button",
8936
8962
  "aria-label": `Delete ${t.title}`,
@@ -8940,15 +8966,15 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8940
8966
  "aria-hidden": "true",
8941
8967
  fill: "none",
8942
8968
  viewBox: "0 0 24 24"
8943
- }, [u("path", { d: "M4 7h16M10 11v6m4-6v6M9 7l1-2h4l1 2m2 0-1 12H8L7 7" })], -1)]], 8, Pd)], 2))), 128))]))]));
8969
+ }, [u("path", { d: "M4 7h16M10 11v6m4-6v6M9 7l1-2h4l1 2m2 0-1 12H8L7 7" })], -1)]], 8, Vd)], 2))), 128))]))]));
8944
8970
  }
8945
- }), [["__scopeId", "data-v-97c47314"]]), Id = { class: "chat-composer-file-menu__section" }, Ld = ["onMousedown"], Rd = { class: "chat-composer-file-menu__name" }, zd = { class: "chat-composer-file-menu__path" }, Bd = {
8971
+ }), [["__scopeId", "data-v-97c47314"]]), Ud = { class: "chat-composer-file-menu__section" }, Wd = ["onMousedown"], Gd = { class: "chat-composer-file-menu__name" }, Kd = { class: "chat-composer-file-menu__path" }, qd = {
8946
8972
  key: 0,
8947
8973
  class: "chat-composer-file-menu__hint"
8948
- }, Vd = {
8974
+ }, Jd = {
8949
8975
  key: 1,
8950
8976
  class: "chat-composer-file-menu__empty"
8951
- }, Hd = /*#__PURE__*/ X(/* @__PURE__ */ h({
8977
+ }, Yd = /*#__PURE__*/ X(/* @__PURE__ */ h({
8952
8978
  __name: "ChatComposerFileMentionMenu",
8953
8979
  props: {
8954
8980
  activeIndex: {},
@@ -8969,7 +8995,7 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8969
8995
  role: "listbox",
8970
8996
  "aria-label": "Files"
8971
8997
  }, [
8972
- u("div", Id, R(B(r)("chat.files.title")), 1),
8998
+ u("div", Ud, R(B(r)("chat.files.title")), 1),
8973
8999
  (k(!0), l(t, null, P(e.visibleFiles, (t, r) => (k(), l("button", {
8974
9000
  key: t.path,
8975
9001
  class: C(["chat-composer-file-menu__item", { "chat-composer-file-menu__item--active": r === e.activeIndex }]),
@@ -8981,16 +9007,16 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
8981
9007
  class: "chat-composer-file-menu__icon",
8982
9008
  "aria-hidden": "true"
8983
9009
  }),
8984
- u("span", Rd, R(t.name), 1),
8985
- u("span", zd, R(t.path), 1)
8986
- ], 42, Ld))), 128)),
8987
- e.showHint ? (k(), l("div", Bd, R(B(r)("chat.files.hint")), 1)) : e.visibleFiles.length === 0 ? (k(), l("div", Vd, R(B(r)("chat.files.empty")), 1)) : c("", !0)
9010
+ u("span", Gd, R(t.name), 1),
9011
+ u("span", Kd, R(t.path), 1)
9012
+ ], 42, Wd))), 128)),
9013
+ e.showHint ? (k(), l("div", qd, R(B(r)("chat.files.hint")), 1)) : e.visibleFiles.length === 0 ? (k(), l("div", Jd, R(B(r)("chat.files.empty")), 1)) : c("", !0)
8988
9014
  ], 512));
8989
9015
  }
8990
- }), [["__scopeId", "data-v-122fc71c"]]), Ud = ["onMousedown"], Wd = ["src"], Gd = { class: "chat-composer-plugin-menu__main" }, Kd = { class: "chat-composer-plugin-menu__name" }, qd = { class: "chat-composer-plugin-menu__description" }, Jd = {
9016
+ }), [["__scopeId", "data-v-122fc71c"]]), Xd = ["onMousedown"], Zd = ["src"], Qd = { class: "chat-composer-plugin-menu__main" }, $d = { class: "chat-composer-plugin-menu__name" }, ef = { class: "chat-composer-plugin-menu__description" }, tf = {
8991
9017
  key: 0,
8992
9018
  class: "chat-composer-plugin-menu__empty"
8993
- }, Yd = /*#__PURE__*/ X(/* @__PURE__ */ h({
9019
+ }, nf = /*#__PURE__*/ X(/* @__PURE__ */ h({
8994
9020
  __name: "ChatComposerPluginMenu",
8995
9021
  props: {
8996
9022
  activeIndex: {},
@@ -9024,24 +9050,24 @@ var Mu = ["aria-busy", "aria-label"], Nu = ["title"], Pu = ["title"], Fu = /*#__
9024
9050
  alt: "",
9025
9051
  "aria-hidden": "true",
9026
9052
  referrerpolicy: "no-referrer"
9027
- }, null, 8, Wd)) : (k(), s(B(Ie), {
9053
+ }, null, 8, Zd)) : (k(), s(B(Ie), {
9028
9054
  key: 1,
9029
9055
  class: "chat-composer-plugin-menu__icon",
9030
9056
  "aria-hidden": "true"
9031
- })), u("span", Gd, [u("span", Kd, R(B(fr)(t)), 1), u("span", qd, R(B(pr)(t)), 1)])], 42, Ud))), 128)),
9032
- e.visiblePlugins.length === 0 ? (k(), l("div", Jd, "No matching plugins")) : c("", !0)
9057
+ })), u("span", Qd, [u("span", $d, R(B(fr)(t)), 1), u("span", ef, R(B(pr)(t)), 1)])], 42, Xd))), 128)),
9058
+ e.visiblePlugins.length === 0 ? (k(), l("div", tf, "No matching plugins")) : c("", !0)
9033
9059
  ], 512));
9034
9060
  }
9035
- }), [["__scopeId", "data-v-336657b0"]]), Xd = 0;
9036
- function Zd(e) {
9037
- return Xd += 1, {
9038
- id: `queued-prompt-${Xd}`,
9061
+ }), [["__scopeId", "data-v-336657b0"]]), rf = 0;
9062
+ function af(e) {
9063
+ return rf += 1, {
9064
+ id: `queued-prompt-${rf}`,
9039
9065
  text: e
9040
9066
  };
9041
9067
  }
9042
9068
  //#endregion
9043
9069
  //#region src/use-codex-surface.ts
9044
- var Qd = {
9070
+ var of = {
9045
9071
  status: "idle",
9046
9072
  authentication: {
9047
9073
  status: "notLoaded",
@@ -9086,8 +9112,8 @@ var Qd = {
9086
9112
  historyLoading: !1,
9087
9113
  error: null
9088
9114
  };
9089
- function $d(e) {
9090
- let t = A(structuredClone(Qd)), n = A(/* @__PURE__ */ new Set()), r = j(n), i = L(null), a = /* @__PURE__ */ new Set(), o = 0, s = (e) => {
9115
+ function sf(e) {
9116
+ let t = A(structuredClone(of)), n = A(/* @__PURE__ */ new Set()), r = j(n), i = L(null), a = /* @__PURE__ */ new Set(), o = 0, s = (e) => {
9091
9117
  Object.assign(t, e), n.clear();
9092
9118
  for (let t of e.answeredClientRequestIds) n.add(t);
9093
9119
  }, c = At(e, (e) => {
@@ -9148,7 +9174,7 @@ function $d(e) {
9148
9174
  }
9149
9175
  //#endregion
9150
9176
  //#region src/use-codex-live-chat.ts
9151
- function ef(e) {
9177
+ function cf(e) {
9152
9178
  let t = M("idle"), n = M(null), r = M(!1), i = M([]), a, o = !1;
9153
9179
  function s(t) {
9154
9180
  if (!(!("conversationId" in t) || t.conversationId !== e.conversationId)) {
@@ -9209,7 +9235,7 @@ function ef(e) {
9209
9235
  let a = new Audio();
9210
9236
  if (a.autoplay = !0, u.audio = a, i.ontrack = (e) => {
9211
9237
  a.srcObject = e.streams[0] ?? new MediaStream([e.track]), a.play().catch((e) => {
9212
- u.cancelled || (n.value = tf(e), d().catch(() => void 0));
9238
+ u.cancelled || (n.value = lf(e), d().catch(() => void 0));
9213
9239
  });
9214
9240
  }, i.onconnectionstatechange = () => {
9215
9241
  u.cancelled || (i.connectionState === "connected" && (clearTimeout(u.timer), t.value = "connected"), (i.connectionState === "failed" || i.connectionState === "closed") && (n.value = "Live chat connection ended", d().catch(() => void 0)));
@@ -9229,7 +9255,7 @@ function ef(e) {
9229
9255
  n.value = "Timed out connecting live chat", d().catch(() => void 0);
9230
9256
  }, 3e4));
9231
9257
  } catch (e) {
9232
- if (!u.cancelled) throw n.value = tf(e), t.value = "error", c(u), await l(u).catch(() => void 0), a === u && (a = void 0), e;
9258
+ if (!u.cancelled) throw n.value = lf(e), t.value = "error", c(u), await l(u).catch(() => void 0), a === u && (a = void 0), e;
9233
9259
  } finally {
9234
9260
  u.cancelled && c(u);
9235
9261
  }
@@ -9241,7 +9267,7 @@ function ef(e) {
9241
9267
  try {
9242
9268
  e.requested && await e.done?.catch(() => void 0), await l(e);
9243
9269
  } catch (e) {
9244
- throw n.value = tf(e), e;
9270
+ throw n.value = lf(e), e;
9245
9271
  } finally {
9246
9272
  a === e && (a = void 0), t.value = n.value ? "error" : "idle";
9247
9273
  }
@@ -9264,16 +9290,16 @@ function ef(e) {
9264
9290
  setMuted: f
9265
9291
  };
9266
9292
  }
9267
- function tf(e) {
9293
+ function lf(e) {
9268
9294
  return e instanceof Error ? e.message : String(e);
9269
9295
  }
9270
9296
  //#endregion
9271
9297
  //#region src/codex-theme.ts
9272
- function nf(e, t = {}) {
9298
+ function uf(e, t = {}) {
9273
9299
  let n = e.getAttribute("data-codex-theme"), r = /* @__PURE__ */ new Map(), i = t.mode ?? "system";
9274
9300
  e.setAttribute("data-codex-theme", i);
9275
9301
  for (let [n, i] of Object.entries(t.tokens ?? {})) {
9276
- let t = rf(n);
9302
+ let t = df(n);
9277
9303
  r.has(t) || r.set(t, e.style.getPropertyValue(t)), i == null || !i.trim() ? e.style.removeProperty(t) : e.style.setProperty(t, i);
9278
9304
  }
9279
9305
  return () => {
@@ -9281,7 +9307,7 @@ function nf(e, t = {}) {
9281
9307
  for (let [t, n] of r) n ? e.style.setProperty(t, n) : e.style.removeProperty(t);
9282
9308
  };
9283
9309
  }
9284
- function rf(e) {
9310
+ function df(e) {
9285
9311
  let t = e.trim();
9286
9312
  if (t.startsWith("--codex-")) return t;
9287
9313
  let n = t.replace(/^--/, "").replace(/([a-z\d])([A-Z])/g, "$1-$2").replace(/[^a-zA-Z\d-]+/g, "-").replace(/^-+|-+$/g, "").toLowerCase();
@@ -9289,6 +9315,6 @@ function rf(e) {
9289
9315
  return `--codex-${n}`;
9290
9316
  }
9291
9317
  //#endregion
9292
- export { mo as CodexAnimatedDiffStat, sa as CodexApprovalPrompt, Ws as CodexAttachmentBlock, Lu as CodexCompactionMessage, Ki as CodexComposer, cn as CodexComposerActionMenu, Wt as CodexComposerActiveModes, Er as CodexComposerAtMentionMenu, ds as CodexComposerDrawer, gs as CodexComposerDrawerRow, Hd as CodexComposerFileMentionMenu, on as CodexComposerMenu, rn as CodexComposerMenuList, Yd as CodexComposerPluginMenu, Bt as CodexComposerSendButton, Os as CodexComposerShelf, Vr as CodexComposerSkillMenu, ri as CodexComposerSlashMenu, un as CodexComposerVoiceButton, gn as CodexComposerVoiceField, er as CodexContextUsageIndicator, Ms as CodexConversationHistoryLoader, Cd as CodexConversationPane, Fd as CodexConversationSidebar, Xs as CodexFoldTransition, qs as CodexFollowUps, ss as CodexGoal, Ps as CodexIconButton, zs as CodexImageLightbox, mc as CodexMediaBlock, si as CodexMentionChip, kc as CodexMermaidBlock, Yu as CodexMessage, Fu as CodexMessageActions, Du as CodexMessageBlock, Vu as CodexMessageEditor, id as CodexMessageList, Zu as CodexMessageTurn, or as CodexModelReasoningSelector, $o as CodexQuestionRequest, xs as CodexQueuedPrompt, Ss as CodexQueuedPrompts, di as CodexRichTextEditor, $u as CodexScrollToBottom, zl as CodexToolCall, Do as CodexToolCallTitle, ts as CodexToolConfirmation, Kl as CodexToolGroup, ho as CodexToolIcon, Qo as CodexToolUserInputRequest, Ts as CodexTurnGitInfo, gu as CodexUserText, vu as CodexVisualizationBlock, wu as CodexWorkGroup, cd as CodexWorkbenchLayout, nf as applyCodexTheme, Kt as approvalPresetOptions, Nt as codexCapabilities, Pt as codexCommands, vn as codexConversationLinkFromHref, Wr as commandDescription, la as createCodexConversationPaneController, Zd as createQueuedChatPrompt, Gt as defaultApprovalPreset, Xn as defaultCodexChatTranslate, jt as defaultCodexConversationPresentation, Ur as filterComposerCommands, ci as filterComposerMentionGroups, dr as filterComposerPlugins, Or as filterComposerSkills, li as findComposerMention, ji as getCodexGlobalHostCapabilities, Mi as getCodexNativeRendererApi, eu as humanizeMentionName, Pi as ingestCodexAttachments, qt as isApprovalPreset, Fc as languageForFilePath, ql as parseAuthoredUserText, _n as parseCodexEditorFileReference, Jl as parseCodexUserText, Ni as pickCodexAttachments, pr as pluginDescription, fr as pluginDisplayName, mr as pluginInsertText, hr as pluginMatchesMention, Nr as promptSkillInputsFromText, Jn as provideCodexChatTranslate, ki as provideCodexHostCapabilities, Tl as provideCodexToolCallDetails, Sl as provideCodexToolPresentation, wn as registerCodexToolTitlePresenter, Pc as renderCodeBlock, Vc as renderMarkdown, ca as resolveCodexConversationPaneValue, Mt as resolveCodexConversationPresentation, Ar as skillDescription, kr as skillDisplayName, jr as skillInsertText, Mr as skillMatchesMention, Qa as surfaceMessageToChatMessage, $ as toCodexChatMessage, Za as toCodexChatMessages, Yn as useCodexChatTranslate, zi as useCodexComposerVoice, Ai as useCodexHostCapabilities, ef as useCodexLiveChat, $d as useCodexSurface, El as useCodexToolCallDetails, Cl as useCodexToolPresentation };
9318
+ export { mo as CodexAnimatedDiffStat, sa as CodexApprovalPrompt, Ws as CodexAttachmentBlock, Wu as CodexCompactionMessage, Ki as CodexComposer, cn as CodexComposerActionMenu, Wt as CodexComposerActiveModes, Er as CodexComposerAtMentionMenu, ds as CodexComposerDrawer, gs as CodexComposerDrawerRow, Yd as CodexComposerFileMentionMenu, on as CodexComposerMenu, rn as CodexComposerMenuList, nf as CodexComposerPluginMenu, Bt as CodexComposerSendButton, Os as CodexComposerShelf, Vr as CodexComposerSkillMenu, ri as CodexComposerSlashMenu, un as CodexComposerVoiceButton, gn as CodexComposerVoiceField, er as CodexContextUsageIndicator, Ms as CodexConversationHistoryLoader, Ad as CodexConversationPane, Hd as CodexConversationSidebar, Xs as CodexFoldTransition, qs as CodexFollowUps, ss as CodexGoal, Ps as CodexIconButton, zs as CodexImageLightbox, mc as CodexMediaBlock, si as CodexMentionChip, kc as CodexMermaidBlock, nd as CodexMessage, Hu as CodexMessageActions, Pu as CodexMessageBlock, Ju as CodexMessageEditor, dd as CodexMessageList, id as CodexMessageTurn, or as CodexModelReasoningSelector, $o as CodexQuestionRequest, xs as CodexQueuedPrompt, Ss as CodexQueuedPrompts, di as CodexRichTextEditor, od as CodexScrollToBottom, Kl as CodexToolCall, Do as CodexToolCallTitle, ts as CodexToolConfirmation, $l as CodexToolGroup, ho as CodexToolIcon, Qo as CodexToolUserInputRequest, Ts as CodexTurnGitInfo, Cu as CodexUserText, Tu as CodexVisualizationBlock, ju as CodexWorkGroup, hd as CodexWorkbenchLayout, uf as applyCodexTheme, Kt as approvalPresetOptions, Nt as codexCapabilities, Pt as codexCommands, vn as codexConversationLinkFromHref, Wr as commandDescription, la as createCodexConversationPaneController, af as createQueuedChatPrompt, Gt as defaultApprovalPreset, Xn as defaultCodexChatTranslate, jt as defaultCodexConversationPresentation, Ur as filterComposerCommands, ci as filterComposerMentionGroups, dr as filterComposerPlugins, Or as filterComposerSkills, li as findComposerMention, ji as getCodexGlobalHostCapabilities, Mi as getCodexNativeRendererApi, su as humanizeMentionName, Pi as ingestCodexAttachments, qt as isApprovalPreset, Hc as languageForFilePath, eu as parseAuthoredUserText, _n as parseCodexEditorFileReference, tu as parseCodexUserText, Ni as pickCodexAttachments, pr as pluginDescription, fr as pluginDisplayName, mr as pluginInsertText, hr as pluginMatchesMention, Nr as promptSkillInputsFromText, Jn as provideCodexChatTranslate, ki as provideCodexHostCapabilities, Ml as provideCodexToolCallDetails, kl as provideCodexToolPresentation, wn as registerCodexToolTitlePresenter, Vc as renderCodeBlock, Jc as renderMarkdown, ca as resolveCodexConversationPaneValue, Mt as resolveCodexConversationPresentation, Ar as skillDescription, kr as skillDisplayName, jr as skillInsertText, Mr as skillMatchesMention, Qa as surfaceMessageToChatMessage, $ as toCodexChatMessage, Za as toCodexChatMessages, Yn as useCodexChatTranslate, zi as useCodexComposerVoice, Ai as useCodexHostCapabilities, cf as useCodexLiveChat, sf as useCodexSurface, Nl as useCodexToolCallDetails, Al as useCodexToolPresentation };
9293
9319
 
9294
9320
  //# sourceMappingURL=index.js.map