@sepveneto/dnde-agent 0.2.0-beta.7 → 0.2.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -154,6 +154,8 @@ const queryProduct = defineAgentTool({
154
154
  `editor_operator({ action: 'add', widget: 'product', target: '页面节点 UUID' })`。
155
155
  工具参数不包含 `items`;即使模型额外传入也会被移除。每次 Agent Run 都会
156
156
  创建独立的 Context,失败时保留待添加数据以支持同一轮重试,成功后清空。
157
+ 同一轮模型回复中的 function tools 会按调用顺序串行执行,保证前序工具写入的
158
+ Context 在后续工具(例如 `editor_operator`)执行时已经可见。
157
159
 
158
160
  ## 业务工具
159
161
 
@@ -1,7 +1,7 @@
1
1
  var V = Object.defineProperty;
2
2
  var Q = (t, s, e) => s in t ? V(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
3
3
  var a = (t, s, e) => Q(t, typeof s != "symbol" ? s + "" : s, e);
4
- import { C as E, U as x, r as X, t as I, o as v, s as y, a as Z, w as A, i as q, e as ee, A as te, n as k, b as R, p as C, c as se, S as ie, d as ne, M as re, f as ae } from "./index-DFfwYP9V.js";
4
+ import { C as E, U as x, r as X, t as I, o as v, s as y, a as Z, w as A, i as q, e as ee, A as te, n as k, b as R, p as C, c as se, S as ie, d as ne, M as re, f as ae } from "./index-0F_QrOIG.js";
5
5
  function oe(t) {
6
6
  return t ? !(typeof t == "object" && t && "constructor" in t && typeof t.constructor == "function" ? t.constructor.name : "").includes("ChatCompletions") : !0;
7
7
  }
package/dist/element.js CHANGED
@@ -41909,7 +41909,7 @@ function X1(e, t, n) {
41909
41909
  if (!(e._pendingInput.length === 0 || !r || eI(t, n)))
41910
41910
  throw new O("Pending RunState input requires exactly one server-managed conversation owner", e);
41911
41911
  }
41912
- async function XOe(e, t, n) {
41912
+ async function eke(e, t, n) {
41913
41913
  const r = jye();
41914
41914
  return n != null && n.stream ? await r.run(e, t, n) : await r.run(e, t, n);
41915
41915
  }
@@ -64843,7 +64843,7 @@ function Nxe(e, t, n) {
64843
64843
  t.pendingItems && Dxe(n) && (e.pendingItems = []);
64844
64844
  }
64845
64845
  const VC = "initialization";
64846
- function jke(e) {
64846
+ function Fke(e) {
64847
64847
  return {
64848
64848
  ...e,
64849
64849
  kind: "agent-tool",
@@ -65094,11 +65094,13 @@ function Kxe(e) {
65094
65094
  agents: s ? [i, s] : [i]
65095
65095
  };
65096
65096
  }
65097
- const qxe = "browser-proxy";
65098
- function Wxe(e) {
65097
+ const qxe = Object.freeze({
65098
+ maxFunctionToolConcurrency: 1
65099
+ }), Wxe = "browser-proxy";
65100
+ function Hxe(e) {
65099
65101
  return (e == null ? void 0 : e.trim().replace(/\/+$/, "")) || Lxe;
65100
65102
  }
65101
- function Hxe(e) {
65103
+ function Gxe(e) {
65102
65104
  return e === "chat_completions" ? "chat_completions" : "responses";
65103
65105
  }
65104
65106
  function lf(e, t) {
@@ -65111,7 +65113,7 @@ function Zi(e, t) {
65111
65113
  const n = e[t];
65112
65114
  return typeof n == "string" ? n : void 0;
65113
65115
  }
65114
- function Gxe(e) {
65116
+ function Zxe(e) {
65115
65117
  if (typeof e != "string")
65116
65118
  return e;
65117
65119
  try {
@@ -65120,7 +65122,7 @@ function Gxe(e) {
65120
65122
  return e;
65121
65123
  }
65122
65124
  }
65123
- function Zxe(e) {
65125
+ function Jxe(e) {
65124
65126
  const t = zd(e.rawItem);
65125
65127
  return (Array.isArray(t.content) ? t.content : []).map((r) => Zi(zd(r), "text")).filter((r) => !!r).join(`
65126
65128
  `);
@@ -65130,10 +65132,10 @@ function Hz(e, t) {
65130
65132
  (n) => n.type === "tool" && n.toolCallId === t
65131
65133
  );
65132
65134
  }
65133
- function Jxe(e, t, n, r) {
65135
+ function Vxe(e, t, n, r) {
65134
65136
  var o, s, i, a, c, u, l, d;
65135
65137
  if (e.name === "reasoning_item_created" && n === "data") {
65136
- const f = Zxe(e.item);
65138
+ const f = Jxe(e.item);
65137
65139
  f && (lf(t, { type: "reasoning", text: f }), r());
65138
65140
  return;
65139
65141
  }
@@ -65141,7 +65143,7 @@ function Jxe(e, t, n, r) {
65141
65143
  const f = zd(e.item.rawItem), p = (i = (s = (o = Zi(f, "callId")) != null ? o : Zi(f, "call_id")) != null ? s : Zi(f, "id")) != null ? i : globalThis.crypto.randomUUID();
65142
65144
  if (Hz(t, p))
65143
65145
  return;
65144
- const h = (c = (a = Zi(f, "name")) != null ? a : Zi(zd(e.item), "toolName")) != null ? c : e.name === "handoff_requested" ? "transfer_to_agent" : "tool", y = Gxe((u = f.arguments) != null ? u : f.input), g = f.output;
65146
+ const h = (c = (a = Zi(f, "name")) != null ? a : Zi(zd(e.item), "toolName")) != null ? c : e.name === "handoff_requested" ? "transfer_to_agent" : "tool", y = Zxe((u = f.arguments) != null ? u : f.input), g = f.output;
65145
65147
  lf(t, {
65146
65148
  type: "tool",
65147
65149
  toolCallId: p,
@@ -65172,12 +65174,12 @@ function Jxe(e, t, n, r) {
65172
65174
  }), r());
65173
65175
  }
65174
65176
  }
65175
- function Vxe(e) {
65177
+ function Yxe(e) {
65176
65178
  return e.parts.map((t) => t.type === "text" ? t.text : t.type === "file" ? xB(t) : "").filter(Boolean).join(`
65177
65179
 
65178
65180
  `);
65179
65181
  }
65180
- function Yxe(e) {
65182
+ function Qxe(e) {
65181
65183
  var t;
65182
65184
  try {
65183
65185
  return (t = localStorage.getItem(e)) != null ? t : void 0;
@@ -65185,18 +65187,18 @@ function Yxe(e) {
65185
65187
  return;
65186
65188
  }
65187
65189
  }
65188
- function Qxe(e, t) {
65190
+ function Xxe(e, t) {
65189
65191
  try {
65190
65192
  localStorage.setItem(e, t);
65191
65193
  } catch (n) {
65192
65194
  }
65193
65195
  }
65194
- function Xxe(e = {}) {
65196
+ function eOe(e = {}) {
65195
65197
  var _, m;
65196
65198
  const t = {
65197
- baseURL: Wxe(e.baseURL),
65199
+ baseURL: Hxe(e.baseURL),
65198
65200
  model: ((_ = e.model) == null ? void 0 : _.trim()) || wR,
65199
- apiMode: Hxe(e.apiMode)
65201
+ apiMode: Gxe(e.apiMode)
65200
65202
  }, { agent: n, agents: r } = Kxe({
65201
65203
  model: t.model,
65202
65204
  api: (m = e.api) != null ? m : {},
@@ -65227,7 +65229,7 @@ function Xxe(e = {}) {
65227
65229
  v.push(await u(T));
65228
65230
  } catch (x) {
65229
65231
  }
65230
- const I = Vxe(A).trim();
65232
+ const I = Yxe(A).trim();
65231
65233
  !I && v.length === 0 || (A.role === "assistant" ? b.push(bv(I)) : A.role === "system" ? b.push(kge(I)) : b.push(T1(aM(I, v))));
65232
65234
  }
65233
65235
  return b;
@@ -65236,7 +65238,7 @@ function Xxe(e = {}) {
65236
65238
  let b = c.get(w);
65237
65239
  if (!b) {
65238
65240
  const A = new Ue({
65239
- apiKey: qxe,
65241
+ apiKey: Wxe,
65240
65242
  baseURL: t.baseURL,
65241
65243
  dangerouslyAllowBrowser: !0
65242
65244
  });
@@ -65246,6 +65248,7 @@ function Xxe(e = {}) {
65246
65248
  useResponses: w === "responses",
65247
65249
  cacheResponsesWebSocketModels: !1
65248
65250
  }),
65251
+ toolExecution: qxe,
65249
65252
  tracingDisabled: !0
65250
65253
  }), c.set(w, b);
65251
65254
  }
@@ -65255,10 +65258,10 @@ function Xxe(e = {}) {
65255
65258
  return `${a}:agent:${w}`;
65256
65259
  }
65257
65260
  function p(w, b) {
65258
- Qxe(f(w), b);
65261
+ Xxe(f(w), b);
65259
65262
  }
65260
65263
  async function h(w, b) {
65261
- const A = Yxe(f(w));
65264
+ const A = Qxe(f(w));
65262
65265
  return {
65263
65266
  activeAgentName: A && o.has(A) ? A : n.name,
65264
65267
  session: new h_e({
@@ -65314,7 +65317,7 @@ function Xxe(e = {}) {
65314
65317
  ee && (F = lf(v, { type: "text", text: ee }), P());
65315
65318
  continue;
65316
65319
  }
65317
- Jxe(ie, v, A, P);
65320
+ Vxe(ie, v, A, P);
65318
65321
  continue;
65319
65322
  }
65320
65323
  D.activeAgentName = ie.agent.name, p(w, D.activeAgentName), A === "data" && (lf(v, {
@@ -65330,7 +65333,7 @@ function Xxe(e = {}) {
65330
65333
  runTurn: g
65331
65334
  };
65332
65335
  }
65333
- const eOe = ["aria-valuemax", "aria-valuenow"], tOe = { class: "assistant-toolbar" }, nOe = { class: "assistant-brand" }, rOe = { class: "assistant-brand-copy" }, oOe = { class: "assistant-toolbar-actions" }, sOe = { class: "assistant-drawer-body" }, tw = 360, Gz = 520, iOe = 16, aOe = /* @__PURE__ */ Vg({
65336
+ const tOe = ["aria-valuemax", "aria-valuenow"], nOe = { class: "assistant-toolbar" }, rOe = { class: "assistant-brand" }, oOe = { class: "assistant-brand-copy" }, sOe = { class: "assistant-toolbar-actions" }, iOe = { class: "assistant-drawer-body" }, tw = 360, Gz = 520, aOe = 16, cOe = /* @__PURE__ */ Vg({
65334
65337
  __name: "Copilot",
65335
65338
  props: {
65336
65339
  api: { default: () => ({}), type: Object },
@@ -65348,7 +65351,7 @@ const eOe = ["aria-valuemax", "aria-valuenow"], tOe = { class: "assistant-toolba
65348
65351
  return ((Y = t.api.model) == null ? void 0 : Y.model) || "qwen3.6-flash";
65349
65352
  }), c = wc(() => {
65350
65353
  var Y, ne, ie;
65351
- return Xxe({
65354
+ return eOe({
65352
65355
  baseURL: (Y = t.api.model) == null ? void 0 : Y.baseURL,
65353
65356
  model: (ne = t.api.model) == null ? void 0 : ne.model,
65354
65357
  apiMode: (ie = t.api.model) == null ? void 0 : ie.apiMode,
@@ -65364,7 +65367,7 @@ const eOe = ["aria-valuemax", "aria-valuenow"], tOe = { class: "assistant-toolba
65364
65367
  typeof window == "undefined" ? 1440 : window.innerWidth
65365
65368
  ), d = wc(() => Math.max(
65366
65369
  tw,
65367
- l.value - iOe
65370
+ l.value - aOe
65368
65371
  ));
65369
65372
  function f(Y) {
65370
65373
  return Math.round(Math.min(
@@ -65486,9 +65489,9 @@ const eOe = ["aria-valuemax", "aria-valuenow"], tOe = { class: "assistant-toolba
65486
65489
  onDblclick: q
65487
65490
  }, [...ne[1] || (ne[1] = [
65488
65491
  Se("span", { "aria-hidden": "true" }, null, -1)
65489
- ])], 40, eOe),
65490
- Se("header", tOe, [
65491
- Se("div", nOe, [
65492
+ ])], 40, tOe),
65493
+ Se("header", nOe, [
65494
+ Se("div", rOe, [
65492
65495
  ne[3] || (ne[3] = Se("span", {
65493
65496
  class: "assistant-brand-mark",
65494
65497
  "aria-hidden": "true"
@@ -65497,12 +65500,12 @@ const eOe = ["aria-valuemax", "aria-valuenow"], tOe = { class: "assistant-toolba
65497
65500
  Se("path", { d: "M12 2.8 13.8 9l6.2 1.8-6.2 1.8L12 19l-1.8-6.4L4 10.8 10.2 9 12 2.8Z" })
65498
65501
  ])
65499
65502
  ], -1)),
65500
- Se("span", rOe, [
65503
+ Se("span", oOe, [
65501
65504
  Se("strong", { id: o }, Yt(e.title), 1),
65502
65505
  ne[2] || (ne[2] = Se("small", null, "Agent workspace", -1))
65503
65506
  ])
65504
65507
  ]),
65505
- Se("div", oOe, [
65508
+ Se("div", sOe, [
65506
65509
  Se("button", {
65507
65510
  type: "button",
65508
65511
  class: "assistant-new-session",
@@ -65541,7 +65544,7 @@ const eOe = ["aria-valuemax", "aria-valuenow"], tOe = { class: "assistant-toolba
65541
65544
  ])], 512)
65542
65545
  ])
65543
65546
  ]),
65544
- Se("div", sOe, [
65547
+ Se("div", iOe, [
65545
65548
  (mt(), hS(UY, {
65546
65549
  key: `${i.value}-${a.value}`,
65547
65550
  mode: "data",
@@ -65579,41 +65582,41 @@ const eOe = ["aria-valuemax", "aria-valuenow"], tOe = { class: "assistant-toolba
65579
65582
  ], 512))
65580
65583
  ], 2));
65581
65584
  }
65582
- }), cOe = ':host{--page-bg: #fff;--surface: #fff;--surface-raised: #f7f7f5;--surface-code: #f4f4f1;--border: #d9d9d5;--border-soft: #e7e7e3;--text: #111;--text-muted: #4f4f4b;--text-subtle: #73736e;--accent: #111;--accent-hover: #2c2c29;--accent-soft: rgba(17, 17, 17, .07);--danger: #b42318;display:block;position:fixed;z-index:2147483000;inset:0;color:var(--text);font-family:Space Grotesk,IBM Plex Sans,Segoe UI,sans-serif;color-scheme:light;isolation:isolate;pointer-events:none}:host([hidden]){display:none}*{box-sizing:border-box}button,textarea{font:inherit}button{color:inherit}button:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent-hover);outline-offset:2px}svg{display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.chat-view{width:100%;color:var(--text)}.chat-header{margin:0 0 18px}.chat-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:var(--text-subtle);font-size:11px;letter-spacing:.02em}.live-badge{display:inline-flex;align-items:center;gap:7px;color:#3f3f3b}.live-dot{width:6px;height:6px;border-radius:50%;background:#168447;box-shadow:0 0 0 4px #16844714}.meta-divider{width:1px;height:12px;background:#deded9}.chat-header h1{margin:0;color:var(--text);font-size:clamp(28px,4vw,38px);font-weight:570;line-height:1.08;letter-spacing:-.045em}.chat-header p{max-width:720px;margin:9px 0 0;color:var(--text-muted);font-size:13px;line-height:1.6}.chat-panel{display:flex;overflow:hidden;min-height:0;flex-direction:column;border:1px solid var(--border-soft);border-radius:18px;background:#fff;box-shadow:0 18px 50px #00000014,inset 0 1px #fff}.message-list{display:flex;overflow-y:auto;min-height:0;flex:1;flex-direction:column;gap:24px;padding:28px;scrollbar-color:#c8c8c3 transparent;scrollbar-width:thin}.empty-state{display:flex;width:100%;min-height:370px;flex:none;flex-direction:column;align-items:center;justify-content:center;align-self:center;margin-block:auto;padding:16px;text-align:center}.empty-orbit{position:relative;display:grid;width:62px;height:62px;margin-bottom:21px;place-items:center;border:1px solid #d8d8d3;border-radius:50%;color:#262623;background:radial-gradient(circle,rgb(17 17 17 / 7%),transparent 68%),#f7f7f4}.empty-orbit svg{width:27px}.orbit-ring{position:absolute;inset:-8px;border:1px solid #e7e7e2;border-radius:50%}.orbit-ring:after{position:absolute;top:4px;right:7px;width:5px;height:5px;border-radius:50%;background:#111;box-shadow:0 0 10px #0003;content:""}.empty-state h2{margin:0;color:var(--text);font-size:20px;font-weight:580;letter-spacing:-.02em}.empty-state>p{max-width:500px;margin:9px 0 22px;color:var(--text-subtle);font-size:13px;line-height:1.65}.example-list{display:grid;width:min(100%,450px);gap:8px}.example-prompt{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid var(--border-soft);border-radius:10px;color:#393936;background:#fbfbf9;font-size:13px;text-align:left;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.example-prompt:hover{border-color:#aaa9a4;color:var(--text);background:#f2f2ef}.example-prompt svg{width:15px;flex:0 0 auto}.message-row{display:flex;align-items:flex-start;gap:12px;animation:message-in .22s ease-out both}.message-row.user{justify-content:flex-end}.avatar{display:grid;width:30px;height:30px;flex:0 0 30px;margin-top:22px;place-items:center;border:1px solid #deded9;border-radius:9px;color:#262623;background:#f3f3f0}.assistant-avatar svg{width:16px}.message-content{max-width:min(80%,680px);min-width:0}.message-row.user .message-content{display:flex;flex-direction:column;align-items:flex-end}.message-label{display:flex;align-items:center;gap:8px;margin:0 2px 7px;color:var(--text-subtle);font-size:11px;font-weight:570;letter-spacing:.055em;text-transform:uppercase}.streaming-label{color:#5f5f5a;letter-spacing:.03em;text-transform:none}.streaming-label:before{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:currentColor;content:"";animation:pulse 1.2s ease-in-out infinite}.message-bubble{display:grid;min-width:80px;gap:10px;padding:13px 15px;border:1px solid var(--border-soft);border-radius:4px 14px 14px;color:#1f1f1d;background:#f7f7f4;font-size:14px;line-height:1.65}.message-row.user .message-bubble{border-color:#111;border-radius:14px 4px 14px 14px;color:#fff;background:#111}.message-row.user .markdown-content{white-space:pre-wrap}.message-row.user .markdown-content strong,.message-row.user .markdown-content a{color:#fff}.message-row.user .markdown-content code{border-color:#fff;color:#111;background:#fff}.message-file{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;border:1px solid #deded9;border-radius:9px;background:#fff}.message-row.user .message-file{border-color:#ffffff38;background:#ffffff14}.message-file.is-image{display:grid;width:min(100%,300px);gap:7px;padding:6px}.message-file-image{display:block;width:100%;max-height:190px;border-radius:6px;object-fit:cover;background:#ecece8}.message-file.is-image>span:last-child{padding:0 4px 3px}.message-file-icon{display:grid;width:29px;height:29px;flex:0 0 29px;place-items:center;border-radius:7px;color:#262623;background:#f0f0ed}.message-file-icon svg{width:16px}.message-file>span:last-child{display:grid;min-width:0;gap:1px}.message-file strong{overflow:hidden;color:#191917;font-size:12.5px;font-weight:570;text-overflow:ellipsis;white-space:nowrap}.message-file small{color:#777771;font-size:10.5px}.message-row.user .message-file-icon{color:#fff;background:#ffffff1f}.message-row.user .message-file strong{color:#fff}.message-row.user .message-file small{color:#ffffffa3}.markdown-content{min-width:0;overflow-wrap:anywhere}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content p{margin:0 0 10px}.markdown-content ul,.markdown-content ol{margin:8px 0 10px;padding-left:21px}.markdown-content li+li{margin-top:4px}.markdown-content strong{color:#111;font-weight:650}.markdown-content a{color:#111;text-decoration-thickness:1px;text-underline-offset:2px}.markdown-content code{padding:2px 5px;border:1px solid #deded9;border-radius:5px;background:var(--surface-code);font-family:SFMono-Regular,Consolas,monospace;font-size:.9em}.markdown-content pre{overflow-x:auto;margin:12px 0;padding:12px;border:1px solid #deded9;border-radius:9px;background:var(--surface-code)}.markdown-content pre code{padding:0;border:0;background:transparent}.markdown-content blockquote{margin:12px 0;padding-left:13px;border-left:2px solid var(--accent);color:var(--text-muted)}.part-card{min-width:0;padding:12px;border:1px solid #e3e3de;border-radius:10px;color:#444440;background:#fbfbf9;font-size:12.5px}.reasoning summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer}.reasoning summary::-webkit-details-marker{display:none}.reasoning summary strong,.tool-heading strong{display:block;color:#181816;font-size:12.5px;font-weight:580}.reasoning summary small,.tool-heading small{display:block;margin-top:2px;color:var(--text-subtle);font-size:10.5px;line-height:1.4}.part-icon{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;border:1px solid #dfdfda;border-radius:7px;color:#444440;background:#f3f3f0}.part-icon svg{width:15px}.reasoning .chevron{width:15px;margin-left:auto;transition:transform .16s ease}.reasoning[open] .chevron{transform:rotate(90deg)}.part-body{margin:12px 0 1px 36px;padding-top:11px;border-top:1px solid #e8e8e3;color:#555550}.tool-heading{display:flex;align-items:center;gap:9px}.tool summary.tool-heading{list-style:none;cursor:pointer}.tool summary.tool-heading::-webkit-details-marker{display:none}.status-pill{margin-left:auto;padding:3px 7px;border-radius:999px;font-size:10px;line-height:1.4}.status-pill.running{color:#444440;background:#ecece8}.status-pill.complete{color:#166534;background:#edf7f0}.tool-chevron{width:15px;flex:0 0 15px;transition:transform .16s ease}.tool[open] .tool-chevron{transform:rotate(90deg)}.tool-body{margin-top:11px;padding-top:1px;border-top:1px solid #e8e8e3}.tool-section{display:grid;gap:5px;margin-top:11px}.tool-label{color:var(--text-subtle);font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}.part-card pre{overflow-x:auto;margin:0;padding:9px 10px;border:1px solid #e1e1dc;border-radius:7px;color:#333330;background:#f3f3f0;font-family:SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.55}.tool-error{margin:10px 0 0;color:var(--danger)}.thinking{display:flex;align-items:center;gap:4px;min-height:21px}.thinking i{width:5px;height:5px;border-radius:50%;background:#8a8a84;animation:thinking 1.2s ease-in-out infinite}.thinking i:nth-child(2){animation-delay:.12s}.thinking i:nth-child(3){animation-delay:.24s}.error-banner{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #f1c7c2;border-radius:9px;color:var(--danger);background:#fff3f1;font-size:12px}.error-banner svg{width:17px;flex:0 0 auto}.composer-area{padding:15px 18px 13px;border-top:1px solid var(--border-soft);background:#fff}.composer{display:flex;align-items:flex-end;gap:10px;padding:8px 8px 8px 14px;border:1px solid #d6d6d1;border-radius:12px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease}.composer-main{display:grid;min-width:0;flex:1;gap:7px}.composer-input{display:flex;min-width:0;align-items:flex-end;gap:8px}.composer:focus-within{border-color:#111;box-shadow:0 0 0 3px #11111112}.composer textarea{width:100%;min-height:37px;max-height:140px;padding:8px 0;resize:none;border:0;outline:0;color:var(--text);background:transparent;font-size:14px;line-height:1.45}.composer textarea::placeholder{color:#8a8a84}.composer textarea:disabled{cursor:not-allowed;opacity:.7}.attach-button{display:grid;width:32px;height:32px;flex:0 0 32px;margin-bottom:2px;place-items:center;border:1px solid #dcdcd7;border-radius:8px;color:#555550;background:#fbfbf9;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.attach-button:hover:not(:disabled){border-color:#aaa9a4;color:#111;background:#f2f2ef}.attach-button:disabled{cursor:not-allowed;opacity:.4}.attach-button svg{width:17px}.pending-files{display:flex;flex-wrap:wrap;gap:6px}.pending-file{display:flex;max-width:100%;align-items:center;gap:7px;padding:6px 7px;border:1px solid #deded9;border-radius:8px;color:#444440;background:#f7f7f4;font-size:11.5px}.pending-file.uploading{color:#686863}.pending-file svg{width:15px;flex:0 0 15px;color:#333330}.pending-file.is-image{padding:4px 7px 4px 4px}.pending-file-preview{width:28px;height:28px;flex:0 0 28px;border-radius:6px;object-fit:cover;background:#e6e6e1}.pending-file-name{overflow:hidden;max-width:220px;text-overflow:ellipsis;white-space:nowrap}.pending-file-size{color:#81817b;font-size:10.5px}.remove-file{display:grid;width:18px;height:18px;padding:0;place-items:center;border:0;border-radius:4px;color:#777771;background:transparent;font-size:15px;line-height:1;cursor:pointer}.remove-file:hover:not(:disabled){color:#fff;background:#111}.remove-file:disabled{cursor:not-allowed;opacity:.4}.file-spinner{width:12px;height:12px;flex:0 0 12px;border:1.5px solid #d2d2cd;border-top-color:#222;border-radius:50%;animation:spin .7s linear infinite}.file-error{margin:0;color:var(--danger);font-size:11.5px;line-height:1.5}.file-input{display:none}.send-button{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border:0;border-radius:9px;color:#fff;background:var(--accent);cursor:pointer;transition:background .16s ease,opacity .16s ease}.send-button:hover:not(:disabled){background:var(--accent-hover)}.send-button:disabled{cursor:not-allowed;opacity:.38}.send-button.stop{color:#333330;background:#ecece8}.send-button svg{width:18px}.composer-hint{display:flex;justify-content:space-between;gap:20px;padding:9px 4px 0;color:#85857f;font-size:10.5px}.demo-note{margin:15px 4px 0;color:#777771;font-size:11.5px;line-height:1.55;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap}@keyframes message-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes thinking{0%,70%,to{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}@keyframes pulse{0%,to{opacity:.45}50%{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 560px){.message-list{padding:18px 14px}.message-content{max-width:calc(100% - 42px)}.composer-area{padding:12px}.composer-hint span:first-child{display:none}.pending-file-name{max-width:150px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}', uOe = ".assistant-root[data-v-d26eb739]{position:fixed;z-index:2147483000;inset:0;pointer-events:none}.assistant-drawer[data-v-d26eb739]{--page-bg: #fff;--surface: #fff;--surface-raised: #f7f7f5;--surface-code: #f4f4f1;--border: #d9d9d5;--border-soft: #e7e7e3;--text: #111;--text-muted: #4f4f4b;--text-subtle: #73736e;--accent: #111;--accent-hover: #2c2c29;--accent-soft: rgb(17 17 17 / 7%);--danger: #b42318;position:absolute;top:0;right:0;bottom:0;display:flex;width:min(var(--assistant-drawer-width, 520px),calc(100vw - 16px));min-width:min(360px,100vw);flex-direction:column;border-left:1px solid #d9d9d5;color:#111;background:#fff;box-shadow:-16px 0 48px #0000001f;pointer-events:auto;will-change:transform}.assistant-toolbar[data-v-d26eb739]{display:flex;min-height:64px;flex:0 0 64px;align-items:center;justify-content:space-between;gap:16px;padding:0 18px 0 20px;border-bottom:1px solid #ebebe7;background:#fff}.assistant-brand[data-v-d26eb739]{display:flex;min-width:0;align-items:center;gap:10px}.assistant-brand-mark[data-v-d26eb739]{display:grid;flex:0 0 auto;place-items:center;border-radius:9px;color:#fff;background:#111}.assistant-brand-mark[data-v-d26eb739]{width:32px;height:32px}.assistant-brand-mark svg[data-v-d26eb739]{width:17px}.assistant-brand-copy[data-v-d26eb739]{display:grid;min-width:0;gap:1px}.assistant-brand-copy strong[data-v-d26eb739]{overflow:hidden;color:#111;font-size:14px;font-weight:650;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.assistant-brand-copy small[data-v-d26eb739]{color:#85857f;font-size:10.5px;letter-spacing:.04em}.assistant-toolbar-actions[data-v-d26eb739]{display:flex;flex:0 0 auto;align-items:center;gap:12px}.assistant-new-session[data-v-d26eb739]{display:inline-flex;height:32px;align-items:center;gap:6px;padding:0 10px;border:1px solid #e1e1dd;border-radius:9px;color:#444;background:#fff;font-size:11.5px;cursor:pointer;transition:color .16s ease,border-color .16s ease,background .16s ease}.assistant-new-session[data-v-d26eb739]:hover{border-color:#bdbdb8;color:#111;background:#f5f5f2}.assistant-new-session svg[data-v-d26eb739]{width:14px}.assistant-status[data-v-d26eb739]{display:inline-flex;align-items:center;gap:6px;color:#777771;font-size:10.5px}.assistant-status i[data-v-d26eb739]{width:6px;height:6px;border-radius:50%;background:#a9a9a3}.assistant-status.running i[data-v-d26eb739]{background:#168447;box-shadow:0 0 0 3px #1684471a}.assistant-close[data-v-d26eb739]{display:grid;width:32px;height:32px;padding:0;place-items:center;border:1px solid #e1e1dd;border-radius:9px;color:#444;background:#fff;cursor:pointer;transition:color .16s ease,border-color .16s ease,background .16s ease}.assistant-close[data-v-d26eb739]:hover{border-color:#bdbdb8;color:#111;background:#f5f5f2}.assistant-close svg[data-v-d26eb739]{width:16px}.assistant-drawer-body[data-v-d26eb739]{display:flex;overflow:hidden;min-height:0;flex:1;flex-direction:column;padding:18px}.assistant-drawer-body[data-v-d26eb739] .chat-view{display:flex;min-height:0;flex:1;flex-direction:column}.assistant-drawer-body[data-v-d26eb739] .chat-header{display:none}.assistant-drawer-body[data-v-d26eb739] .chat-panel,.assistant-drawer-body[data-v-d26eb739] .message-list{min-height:0;flex:1}.assistant-drawer-body[data-v-d26eb739] .empty-state{margin-block:auto}.resize-handle[data-v-d26eb739]{position:absolute;z-index:2;top:0;bottom:0;left:-6px;width:12px;border:0;outline:0;cursor:col-resize;touch-action:none}.resize-handle span[data-v-d26eb739]{position:absolute;top:50%;left:4px;width:4px;height:44px;border:1px solid #e5e5e1;border-radius:999px;background:#fff;box-shadow:0 1px 4px #00000014;transform:translateY(-50%);transition:border-color .16s ease,background .16s ease}.resize-handle:hover span[data-v-d26eb739],.resize-handle:focus-visible span[data-v-d26eb739],.is-resizing .resize-handle span[data-v-d26eb739]{border-color:#111;background:#111}.assistant-button[data-v-d26eb739]{position:absolute;right:10px;bottom:24px;display:inline-flex;flex-shrink:0;align-items:center;gap:8px;padding:10px 18px;border:0;border-radius:999px;color:#fff;background:#1677ff;box-shadow:0 8px 20px #1677ff59;cursor:pointer;pointer-events:auto}.assistant-button .dot[data-v-d26eb739]{width:8px;height:8px;border-radius:50%;background:#ffccc7}.assistant-button .dot.ok[data-v-d26eb739]{background:#b7eb8f}.assistant-drawer-enter-active[data-v-d26eb739],.assistant-drawer-leave-active[data-v-d26eb739]{transition:transform .24s cubic-bezier(.22,1,.36,1)}.assistant-drawer-enter-from[data-v-d26eb739],.assistant-drawer-leave-to[data-v-d26eb739]{transform:translate(100%)}@media (max-width: 560px){.assistant-drawer[data-v-d26eb739]{width:100vw;min-width:0;border-left:0;box-shadow:none}.assistant-toolbar[data-v-d26eb739]{padding-inline:14px}.assistant-status[data-v-d26eb739]{display:none}.assistant-new-session[data-v-d26eb739]{width:32px;padding:0;justify-content:center}.assistant-new-session span[data-v-d26eb739]{display:none}.assistant-drawer-body[data-v-d26eb739]{padding:12px}.resize-handle[data-v-d26eb739]{display:none}.assistant-button[data-v-d26eb739]{right:8px;bottom:16px;padding:10px 14px}}@media (prefers-reduced-motion: reduce){.assistant-drawer-enter-active[data-v-d26eb739],.assistant-drawer-leave-active[data-v-d26eb739]{transition-duration:.01ms}}", lOe = (e, t) => {
65585
+ }), uOe = ':host{--page-bg: #fff;--surface: #fff;--surface-raised: #f7f7f5;--surface-code: #f4f4f1;--border: #d9d9d5;--border-soft: #e7e7e3;--text: #111;--text-muted: #4f4f4b;--text-subtle: #73736e;--accent: #111;--accent-hover: #2c2c29;--accent-soft: rgba(17, 17, 17, .07);--danger: #b42318;display:block;position:fixed;z-index:2147483000;inset:0;color:var(--text);font-family:Space Grotesk,IBM Plex Sans,Segoe UI,sans-serif;color-scheme:light;isolation:isolate;pointer-events:none}:host([hidden]){display:none}*{box-sizing:border-box}button,textarea{font:inherit}button{color:inherit}button:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent-hover);outline-offset:2px}svg{display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.chat-view{width:100%;color:var(--text)}.chat-header{margin:0 0 18px}.chat-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:var(--text-subtle);font-size:11px;letter-spacing:.02em}.live-badge{display:inline-flex;align-items:center;gap:7px;color:#3f3f3b}.live-dot{width:6px;height:6px;border-radius:50%;background:#168447;box-shadow:0 0 0 4px #16844714}.meta-divider{width:1px;height:12px;background:#deded9}.chat-header h1{margin:0;color:var(--text);font-size:clamp(28px,4vw,38px);font-weight:570;line-height:1.08;letter-spacing:-.045em}.chat-header p{max-width:720px;margin:9px 0 0;color:var(--text-muted);font-size:13px;line-height:1.6}.chat-panel{display:flex;overflow:hidden;min-height:0;flex-direction:column;border:1px solid var(--border-soft);border-radius:18px;background:#fff;box-shadow:0 18px 50px #00000014,inset 0 1px #fff}.message-list{display:flex;overflow-y:auto;min-height:0;flex:1;flex-direction:column;gap:24px;padding:28px;scrollbar-color:#c8c8c3 transparent;scrollbar-width:thin}.empty-state{display:flex;width:100%;min-height:370px;flex:none;flex-direction:column;align-items:center;justify-content:center;align-self:center;margin-block:auto;padding:16px;text-align:center}.empty-orbit{position:relative;display:grid;width:62px;height:62px;margin-bottom:21px;place-items:center;border:1px solid #d8d8d3;border-radius:50%;color:#262623;background:radial-gradient(circle,rgb(17 17 17 / 7%),transparent 68%),#f7f7f4}.empty-orbit svg{width:27px}.orbit-ring{position:absolute;inset:-8px;border:1px solid #e7e7e2;border-radius:50%}.orbit-ring:after{position:absolute;top:4px;right:7px;width:5px;height:5px;border-radius:50%;background:#111;box-shadow:0 0 10px #0003;content:""}.empty-state h2{margin:0;color:var(--text);font-size:20px;font-weight:580;letter-spacing:-.02em}.empty-state>p{max-width:500px;margin:9px 0 22px;color:var(--text-subtle);font-size:13px;line-height:1.65}.example-list{display:grid;width:min(100%,450px);gap:8px}.example-prompt{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid var(--border-soft);border-radius:10px;color:#393936;background:#fbfbf9;font-size:13px;text-align:left;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.example-prompt:hover{border-color:#aaa9a4;color:var(--text);background:#f2f2ef}.example-prompt svg{width:15px;flex:0 0 auto}.message-row{display:flex;align-items:flex-start;gap:12px;animation:message-in .22s ease-out both}.message-row.user{justify-content:flex-end}.avatar{display:grid;width:30px;height:30px;flex:0 0 30px;margin-top:22px;place-items:center;border:1px solid #deded9;border-radius:9px;color:#262623;background:#f3f3f0}.assistant-avatar svg{width:16px}.message-content{max-width:min(80%,680px);min-width:0}.message-row.user .message-content{display:flex;flex-direction:column;align-items:flex-end}.message-label{display:flex;align-items:center;gap:8px;margin:0 2px 7px;color:var(--text-subtle);font-size:11px;font-weight:570;letter-spacing:.055em;text-transform:uppercase}.streaming-label{color:#5f5f5a;letter-spacing:.03em;text-transform:none}.streaming-label:before{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:currentColor;content:"";animation:pulse 1.2s ease-in-out infinite}.message-bubble{display:grid;min-width:80px;gap:10px;padding:13px 15px;border:1px solid var(--border-soft);border-radius:4px 14px 14px;color:#1f1f1d;background:#f7f7f4;font-size:14px;line-height:1.65}.message-row.user .message-bubble{border-color:#111;border-radius:14px 4px 14px 14px;color:#fff;background:#111}.message-row.user .markdown-content{white-space:pre-wrap}.message-row.user .markdown-content strong,.message-row.user .markdown-content a{color:#fff}.message-row.user .markdown-content code{border-color:#fff;color:#111;background:#fff}.message-file{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;border:1px solid #deded9;border-radius:9px;background:#fff}.message-row.user .message-file{border-color:#ffffff38;background:#ffffff14}.message-file.is-image{display:grid;width:min(100%,300px);gap:7px;padding:6px}.message-file-image{display:block;width:100%;max-height:190px;border-radius:6px;object-fit:cover;background:#ecece8}.message-file.is-image>span:last-child{padding:0 4px 3px}.message-file-icon{display:grid;width:29px;height:29px;flex:0 0 29px;place-items:center;border-radius:7px;color:#262623;background:#f0f0ed}.message-file-icon svg{width:16px}.message-file>span:last-child{display:grid;min-width:0;gap:1px}.message-file strong{overflow:hidden;color:#191917;font-size:12.5px;font-weight:570;text-overflow:ellipsis;white-space:nowrap}.message-file small{color:#777771;font-size:10.5px}.message-row.user .message-file-icon{color:#fff;background:#ffffff1f}.message-row.user .message-file strong{color:#fff}.message-row.user .message-file small{color:#ffffffa3}.markdown-content{min-width:0;overflow-wrap:anywhere}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content p{margin:0 0 10px}.markdown-content ul,.markdown-content ol{margin:8px 0 10px;padding-left:21px}.markdown-content li+li{margin-top:4px}.markdown-content strong{color:#111;font-weight:650}.markdown-content a{color:#111;text-decoration-thickness:1px;text-underline-offset:2px}.markdown-content code{padding:2px 5px;border:1px solid #deded9;border-radius:5px;background:var(--surface-code);font-family:SFMono-Regular,Consolas,monospace;font-size:.9em}.markdown-content pre{overflow-x:auto;margin:12px 0;padding:12px;border:1px solid #deded9;border-radius:9px;background:var(--surface-code)}.markdown-content pre code{padding:0;border:0;background:transparent}.markdown-content blockquote{margin:12px 0;padding-left:13px;border-left:2px solid var(--accent);color:var(--text-muted)}.part-card{min-width:0;padding:12px;border:1px solid #e3e3de;border-radius:10px;color:#444440;background:#fbfbf9;font-size:12.5px}.reasoning summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer}.reasoning summary::-webkit-details-marker{display:none}.reasoning summary strong,.tool-heading strong{display:block;color:#181816;font-size:12.5px;font-weight:580}.reasoning summary small,.tool-heading small{display:block;margin-top:2px;color:var(--text-subtle);font-size:10.5px;line-height:1.4}.part-icon{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;border:1px solid #dfdfda;border-radius:7px;color:#444440;background:#f3f3f0}.part-icon svg{width:15px}.reasoning .chevron{width:15px;margin-left:auto;transition:transform .16s ease}.reasoning[open] .chevron{transform:rotate(90deg)}.part-body{margin:12px 0 1px 36px;padding-top:11px;border-top:1px solid #e8e8e3;color:#555550}.tool-heading{display:flex;align-items:center;gap:9px}.tool summary.tool-heading{list-style:none;cursor:pointer}.tool summary.tool-heading::-webkit-details-marker{display:none}.status-pill{margin-left:auto;padding:3px 7px;border-radius:999px;font-size:10px;line-height:1.4}.status-pill.running{color:#444440;background:#ecece8}.status-pill.complete{color:#166534;background:#edf7f0}.tool-chevron{width:15px;flex:0 0 15px;transition:transform .16s ease}.tool[open] .tool-chevron{transform:rotate(90deg)}.tool-body{margin-top:11px;padding-top:1px;border-top:1px solid #e8e8e3}.tool-section{display:grid;gap:5px;margin-top:11px}.tool-label{color:var(--text-subtle);font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}.part-card pre{overflow-x:auto;margin:0;padding:9px 10px;border:1px solid #e1e1dc;border-radius:7px;color:#333330;background:#f3f3f0;font-family:SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.55}.tool-error{margin:10px 0 0;color:var(--danger)}.thinking{display:flex;align-items:center;gap:4px;min-height:21px}.thinking i{width:5px;height:5px;border-radius:50%;background:#8a8a84;animation:thinking 1.2s ease-in-out infinite}.thinking i:nth-child(2){animation-delay:.12s}.thinking i:nth-child(3){animation-delay:.24s}.error-banner{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #f1c7c2;border-radius:9px;color:var(--danger);background:#fff3f1;font-size:12px}.error-banner svg{width:17px;flex:0 0 auto}.composer-area{padding:15px 18px 13px;border-top:1px solid var(--border-soft);background:#fff}.composer{display:flex;align-items:flex-end;gap:10px;padding:8px 8px 8px 14px;border:1px solid #d6d6d1;border-radius:12px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease}.composer-main{display:grid;min-width:0;flex:1;gap:7px}.composer-input{display:flex;min-width:0;align-items:flex-end;gap:8px}.composer:focus-within{border-color:#111;box-shadow:0 0 0 3px #11111112}.composer textarea{width:100%;min-height:37px;max-height:140px;padding:8px 0;resize:none;border:0;outline:0;color:var(--text);background:transparent;font-size:14px;line-height:1.45}.composer textarea::placeholder{color:#8a8a84}.composer textarea:disabled{cursor:not-allowed;opacity:.7}.attach-button{display:grid;width:32px;height:32px;flex:0 0 32px;margin-bottom:2px;place-items:center;border:1px solid #dcdcd7;border-radius:8px;color:#555550;background:#fbfbf9;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.attach-button:hover:not(:disabled){border-color:#aaa9a4;color:#111;background:#f2f2ef}.attach-button:disabled{cursor:not-allowed;opacity:.4}.attach-button svg{width:17px}.pending-files{display:flex;flex-wrap:wrap;gap:6px}.pending-file{display:flex;max-width:100%;align-items:center;gap:7px;padding:6px 7px;border:1px solid #deded9;border-radius:8px;color:#444440;background:#f7f7f4;font-size:11.5px}.pending-file.uploading{color:#686863}.pending-file svg{width:15px;flex:0 0 15px;color:#333330}.pending-file.is-image{padding:4px 7px 4px 4px}.pending-file-preview{width:28px;height:28px;flex:0 0 28px;border-radius:6px;object-fit:cover;background:#e6e6e1}.pending-file-name{overflow:hidden;max-width:220px;text-overflow:ellipsis;white-space:nowrap}.pending-file-size{color:#81817b;font-size:10.5px}.remove-file{display:grid;width:18px;height:18px;padding:0;place-items:center;border:0;border-radius:4px;color:#777771;background:transparent;font-size:15px;line-height:1;cursor:pointer}.remove-file:hover:not(:disabled){color:#fff;background:#111}.remove-file:disabled{cursor:not-allowed;opacity:.4}.file-spinner{width:12px;height:12px;flex:0 0 12px;border:1.5px solid #d2d2cd;border-top-color:#222;border-radius:50%;animation:spin .7s linear infinite}.file-error{margin:0;color:var(--danger);font-size:11.5px;line-height:1.5}.file-input{display:none}.send-button{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border:0;border-radius:9px;color:#fff;background:var(--accent);cursor:pointer;transition:background .16s ease,opacity .16s ease}.send-button:hover:not(:disabled){background:var(--accent-hover)}.send-button:disabled{cursor:not-allowed;opacity:.38}.send-button.stop{color:#333330;background:#ecece8}.send-button svg{width:18px}.composer-hint{display:flex;justify-content:space-between;gap:20px;padding:9px 4px 0;color:#85857f;font-size:10.5px}.demo-note{margin:15px 4px 0;color:#777771;font-size:11.5px;line-height:1.55;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap}@keyframes message-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes thinking{0%,70%,to{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}@keyframes pulse{0%,to{opacity:.45}50%{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 560px){.message-list{padding:18px 14px}.message-content{max-width:calc(100% - 42px)}.composer-area{padding:12px}.composer-hint span:first-child{display:none}.pending-file-name{max-width:150px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}', lOe = ".assistant-root[data-v-d26eb739]{position:fixed;z-index:2147483000;inset:0;pointer-events:none}.assistant-drawer[data-v-d26eb739]{--page-bg: #fff;--surface: #fff;--surface-raised: #f7f7f5;--surface-code: #f4f4f1;--border: #d9d9d5;--border-soft: #e7e7e3;--text: #111;--text-muted: #4f4f4b;--text-subtle: #73736e;--accent: #111;--accent-hover: #2c2c29;--accent-soft: rgb(17 17 17 / 7%);--danger: #b42318;position:absolute;top:0;right:0;bottom:0;display:flex;width:min(var(--assistant-drawer-width, 520px),calc(100vw - 16px));min-width:min(360px,100vw);flex-direction:column;border-left:1px solid #d9d9d5;color:#111;background:#fff;box-shadow:-16px 0 48px #0000001f;pointer-events:auto;will-change:transform}.assistant-toolbar[data-v-d26eb739]{display:flex;min-height:64px;flex:0 0 64px;align-items:center;justify-content:space-between;gap:16px;padding:0 18px 0 20px;border-bottom:1px solid #ebebe7;background:#fff}.assistant-brand[data-v-d26eb739]{display:flex;min-width:0;align-items:center;gap:10px}.assistant-brand-mark[data-v-d26eb739]{display:grid;flex:0 0 auto;place-items:center;border-radius:9px;color:#fff;background:#111}.assistant-brand-mark[data-v-d26eb739]{width:32px;height:32px}.assistant-brand-mark svg[data-v-d26eb739]{width:17px}.assistant-brand-copy[data-v-d26eb739]{display:grid;min-width:0;gap:1px}.assistant-brand-copy strong[data-v-d26eb739]{overflow:hidden;color:#111;font-size:14px;font-weight:650;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.assistant-brand-copy small[data-v-d26eb739]{color:#85857f;font-size:10.5px;letter-spacing:.04em}.assistant-toolbar-actions[data-v-d26eb739]{display:flex;flex:0 0 auto;align-items:center;gap:12px}.assistant-new-session[data-v-d26eb739]{display:inline-flex;height:32px;align-items:center;gap:6px;padding:0 10px;border:1px solid #e1e1dd;border-radius:9px;color:#444;background:#fff;font-size:11.5px;cursor:pointer;transition:color .16s ease,border-color .16s ease,background .16s ease}.assistant-new-session[data-v-d26eb739]:hover{border-color:#bdbdb8;color:#111;background:#f5f5f2}.assistant-new-session svg[data-v-d26eb739]{width:14px}.assistant-status[data-v-d26eb739]{display:inline-flex;align-items:center;gap:6px;color:#777771;font-size:10.5px}.assistant-status i[data-v-d26eb739]{width:6px;height:6px;border-radius:50%;background:#a9a9a3}.assistant-status.running i[data-v-d26eb739]{background:#168447;box-shadow:0 0 0 3px #1684471a}.assistant-close[data-v-d26eb739]{display:grid;width:32px;height:32px;padding:0;place-items:center;border:1px solid #e1e1dd;border-radius:9px;color:#444;background:#fff;cursor:pointer;transition:color .16s ease,border-color .16s ease,background .16s ease}.assistant-close[data-v-d26eb739]:hover{border-color:#bdbdb8;color:#111;background:#f5f5f2}.assistant-close svg[data-v-d26eb739]{width:16px}.assistant-drawer-body[data-v-d26eb739]{display:flex;overflow:hidden;min-height:0;flex:1;flex-direction:column;padding:18px}.assistant-drawer-body[data-v-d26eb739] .chat-view{display:flex;min-height:0;flex:1;flex-direction:column}.assistant-drawer-body[data-v-d26eb739] .chat-header{display:none}.assistant-drawer-body[data-v-d26eb739] .chat-panel,.assistant-drawer-body[data-v-d26eb739] .message-list{min-height:0;flex:1}.assistant-drawer-body[data-v-d26eb739] .empty-state{margin-block:auto}.resize-handle[data-v-d26eb739]{position:absolute;z-index:2;top:0;bottom:0;left:-6px;width:12px;border:0;outline:0;cursor:col-resize;touch-action:none}.resize-handle span[data-v-d26eb739]{position:absolute;top:50%;left:4px;width:4px;height:44px;border:1px solid #e5e5e1;border-radius:999px;background:#fff;box-shadow:0 1px 4px #00000014;transform:translateY(-50%);transition:border-color .16s ease,background .16s ease}.resize-handle:hover span[data-v-d26eb739],.resize-handle:focus-visible span[data-v-d26eb739],.is-resizing .resize-handle span[data-v-d26eb739]{border-color:#111;background:#111}.assistant-button[data-v-d26eb739]{position:absolute;right:10px;bottom:24px;display:inline-flex;flex-shrink:0;align-items:center;gap:8px;padding:10px 18px;border:0;border-radius:999px;color:#fff;background:#1677ff;box-shadow:0 8px 20px #1677ff59;cursor:pointer;pointer-events:auto}.assistant-button .dot[data-v-d26eb739]{width:8px;height:8px;border-radius:50%;background:#ffccc7}.assistant-button .dot.ok[data-v-d26eb739]{background:#b7eb8f}.assistant-drawer-enter-active[data-v-d26eb739],.assistant-drawer-leave-active[data-v-d26eb739]{transition:transform .24s cubic-bezier(.22,1,.36,1)}.assistant-drawer-enter-from[data-v-d26eb739],.assistant-drawer-leave-to[data-v-d26eb739]{transform:translate(100%)}@media (max-width: 560px){.assistant-drawer[data-v-d26eb739]{width:100vw;min-width:0;border-left:0;box-shadow:none}.assistant-toolbar[data-v-d26eb739]{padding-inline:14px}.assistant-status[data-v-d26eb739]{display:none}.assistant-new-session[data-v-d26eb739]{width:32px;padding:0;justify-content:center}.assistant-new-session span[data-v-d26eb739]{display:none}.assistant-drawer-body[data-v-d26eb739]{padding:12px}.resize-handle[data-v-d26eb739]{display:none}.assistant-button[data-v-d26eb739]{right:8px;bottom:16px;padding:10px 14px}}@media (prefers-reduced-motion: reduce){.assistant-drawer-enter-active[data-v-d26eb739],.assistant-drawer-leave-active[data-v-d26eb739]{transition-duration:.01ms}}", dOe = (e, t) => {
65583
65586
  const n = e.__vccOpts || e;
65584
65587
  for (const [r, o] of t)
65585
65588
  n[r] = o;
65586
65589
  return n;
65587
- }, dOe = /* @__PURE__ */ lOe(aOe, [["styles", [cOe, uOe]], ["__scopeId", "data-v-d26eb739"]]);
65588
- function fOe(e) {
65590
+ }, fOe = /* @__PURE__ */ dOe(cOe, [["styles", [uOe, lOe]], ["__scopeId", "data-v-d26eb739"]]);
65591
+ function pOe(e) {
65589
65592
  return { ...e, kind: "agent-tool" };
65590
65593
  }
65591
- const Fke = fOe, pOe = dOe;
65592
- function hOe() {
65593
- return /* @__PURE__ */ YJ(pOe);
65594
+ const zke = pOe, hOe = fOe;
65595
+ function mOe() {
65596
+ return /* @__PURE__ */ YJ(hOe);
65594
65597
  }
65595
- const mOe = "dnd-agent";
65598
+ const gOe = "dnd-agent";
65596
65599
  let lx;
65597
- function gOe() {
65598
- return lx || (lx = hOe()), lx;
65600
+ function yOe() {
65601
+ return lx || (lx = mOe()), lx;
65599
65602
  }
65600
- function yOe(e = mOe) {
65603
+ function _Oe(e = gOe) {
65601
65604
  if (!(typeof window == "undefined" || !window.customElements))
65602
- return window.customElements.get(e) || window.customElements.define(e, gOe()), e;
65605
+ return window.customElements.get(e) || window.customElements.define(e, yOe()), e;
65603
65606
  }
65604
- yOe();
65605
- function _Oe(e) {
65607
+ _Oe();
65608
+ function wOe(e) {
65606
65609
  return e ? !(typeof e == "object" && e && "constructor" in e && typeof e.constructor == "function" ? e.constructor.name : "").includes("ChatCompletions") : !0;
65607
65610
  }
65608
- function wOe(e) {
65611
+ function bOe(e) {
65609
65612
  return d9(e);
65610
65613
  }
65611
65614
  function d9(e) {
65612
65615
  return e ? !(typeof e == "object" && e && "constructor" in e && typeof e.constructor == "function" ? e.constructor.name : "").includes("ChatCompletions") : !1;
65613
65616
  }
65614
- class bOe {
65617
+ class vOe {
65615
65618
  }
65616
- class vOe extends bOe {
65619
+ class SOe extends vOe {
65617
65620
  constructor(n = 0.9, r = 24e4) {
65618
65621
  super();
65619
65622
  C(this, "thresholdRatio");
@@ -65635,27 +65638,27 @@ class Ld {
65635
65638
  this.contextWindow = t;
65636
65639
  }
65637
65640
  static forModel(t) {
65638
- for (const n of AOe(t)) {
65639
- if (TOe.has(n))
65640
- return new Ld(1047576);
65641
+ for (const n of TOe(t)) {
65641
65642
  if (xOe.has(n))
65642
- return new Ld(4e5);
65643
+ return new Ld(1047576);
65643
65644
  if (OOe.has(n))
65644
- return new Ld(2e5);
65645
+ return new Ld(4e5);
65645
65646
  if (kOe.has(n))
65647
+ return new Ld(2e5);
65648
+ if (ROe.has(n))
65646
65649
  return new Ld(128e3);
65647
65650
  }
65648
65651
  }
65649
65652
  }
65650
- class SOe extends gI {
65651
- constructor(n = new vOe()) {
65653
+ class IOe extends gI {
65654
+ constructor(n = new SOe()) {
65652
65655
  super();
65653
65656
  C(this, "type", "compaction");
65654
65657
  C(this, "policy");
65655
65658
  this.policy = n;
65656
65659
  }
65657
65660
  samplingParams(n) {
65658
- if (n.modelInstance && !_Oe(n.modelInstance))
65661
+ if (n.modelInstance && !wOe(n.modelInstance))
65659
65662
  return {};
65660
65663
  const r = typeof n.model == "string" ? n.model : void 0;
65661
65664
  return {
@@ -65674,17 +65677,17 @@ class SOe extends gI {
65674
65677
  return r === -1 ? n : n.slice(r);
65675
65678
  }
65676
65679
  }
65677
- function IOe(e = {}) {
65678
- return new SOe(e.policy);
65680
+ function AOe(e = {}) {
65681
+ return new IOe(e.policy);
65679
65682
  }
65680
- function AOe(e) {
65683
+ function TOe(e) {
65681
65684
  const t = e.trim();
65682
65685
  if (!t)
65683
65686
  return [];
65684
65687
  const r = (t.includes("/") ? t.slice(t.lastIndexOf("/") + 1) : t).toLowerCase(), o = r.replace(/-\d{4}-\d{2}-\d{2}$/u, "");
65685
65688
  return [.../* @__PURE__ */ new Set([r, o])];
65686
65689
  }
65687
- const TOe = /* @__PURE__ */ new Set([
65690
+ const xOe = /* @__PURE__ */ new Set([
65688
65691
  "gpt-5.6",
65689
65692
  "gpt-5.6-sol",
65690
65693
  "gpt-5.6-terra",
@@ -65699,7 +65702,7 @@ const TOe = /* @__PURE__ */ new Set([
65699
65702
  "gpt-4.1-mini-2025-04-14",
65700
65703
  "gpt-4.1-nano",
65701
65704
  "gpt-4.1-nano-2025-04-14"
65702
- ]), xOe = /* @__PURE__ */ new Set([
65705
+ ]), OOe = /* @__PURE__ */ new Set([
65703
65706
  "gpt-5",
65704
65707
  "gpt-5-codex",
65705
65708
  "gpt-5-mini",
@@ -65717,7 +65720,7 @@ const TOe = /* @__PURE__ */ new Set([
65717
65720
  "gpt-5.3-codex-spark",
65718
65721
  "gpt-5.4-mini",
65719
65722
  "gpt-5.4-nano"
65720
- ]), OOe = /* @__PURE__ */ new Set([
65723
+ ]), kOe = /* @__PURE__ */ new Set([
65721
65724
  "codex-mini-latest",
65722
65725
  "o1",
65723
65726
  "o1-2024-12-17",
@@ -65730,7 +65733,7 @@ const TOe = /* @__PURE__ */ new Set([
65730
65733
  "o4-mini",
65731
65734
  "o4-mini-2025-04-16",
65732
65735
  "o4-mini-deep-research"
65733
- ]), kOe = /* @__PURE__ */ new Set([
65736
+ ]), ROe = /* @__PURE__ */ new Set([
65734
65737
  "gpt-4o",
65735
65738
  "gpt-4o-2024-08-06",
65736
65739
  "gpt-4o-mini",
@@ -65739,7 +65742,7 @@ const TOe = /* @__PURE__ */ new Set([
65739
65742
  "gpt-5.1-chat-latest",
65740
65743
  "gpt-5.2-chat-latest",
65741
65744
  "gpt-5.3-chat-latest"
65742
- ]), ROe = {
65745
+ ]), EOe = {
65743
65746
  type: "object",
65744
65747
  properties: {
65745
65748
  patch: {
@@ -65789,7 +65792,7 @@ function e0(e) {
65789
65792
  return String(e);
65790
65793
  }
65791
65794
  }
65792
- function EOe(e) {
65795
+ function POe(e) {
65793
65796
  if (typeof e == "string")
65794
65797
  return e;
65795
65798
  const t = e.image;
@@ -65800,7 +65803,7 @@ function EOe(e) {
65800
65803
  const n = t;
65801
65804
  return typeof n.url == "string" ? n.url : typeof n.fileId == "string" ? `OpenAI file reference: ${n.fileId}` : typeof n.data == "string" ? `data:${typeof n.mediaType == "string" ? n.mediaType : "application/octet-stream"};base64,${n.data}` : n.data instanceof Uint8Array ? `data:${typeof n.mediaType == "string" ? n.mediaType : "application/octet-stream"};base64,${Bs(n.data)}` : "No image data was returned by the sandbox session.";
65802
65805
  }
65803
- function POe(e, t) {
65806
+ function COe(e, t) {
65804
65807
  const n = e0(t);
65805
65808
  if (/not found/iu.test(n))
65806
65809
  return `image path \`${e}\` was not found`;
@@ -65813,7 +65816,7 @@ function POe(e, t) {
65813
65816
  const r = t instanceof Error ? t.name : typeof t;
65814
65817
  return `unable to read image at \`${e}\`: ${r}`;
65815
65818
  }
65816
- function COe(e) {
65819
+ function MOe(e) {
65817
65820
  const t = e.trimStart();
65818
65821
  if (t.startsWith(bR))
65819
65822
  return nb(t);
@@ -65826,9 +65829,9 @@ function COe(e) {
65826
65829
  error: `Invalid apply_patch JSON: ${e0(r)}`
65827
65830
  };
65828
65831
  }
65829
- return MOe(n);
65832
+ return $Oe(n);
65830
65833
  }
65831
- function MOe(e) {
65834
+ function $Oe(e) {
65832
65835
  if (typeof e == "string")
65833
65836
  return nb(e);
65834
65837
  if (Array.isArray(e))
@@ -65878,11 +65881,11 @@ function nb(e) {
65878
65881
  const o = t[r];
65879
65882
  let s;
65880
65883
  if (o.startsWith(YC))
65881
- s = $Oe(t, r);
65882
- else if (o.startsWith(QC))
65883
65884
  s = DOe(t, r);
65884
- else if (o.startsWith(XC))
65885
+ else if (o.startsWith(QC))
65885
65886
  s = NOe(t, r);
65887
+ else if (o.startsWith(XC))
65888
+ s = jOe(t, r);
65886
65889
  else
65887
65890
  return {
65888
65891
  ok: !1,
@@ -65897,7 +65900,7 @@ function nb(e) {
65897
65900
  error: "apply_patch input must include at least one file operation."
65898
65901
  } : { ok: !0, operations: n };
65899
65902
  }
65900
- function $Oe(e, t) {
65903
+ function DOe(e, t) {
65901
65904
  const n = Jv(e[t], YC);
65902
65905
  if (!n)
65903
65906
  return { error: `Missing path in apply_patch header: ${e[t]}` };
@@ -65920,7 +65923,7 @@ function $Oe(e, t) {
65920
65923
  nextIndex: t
65921
65924
  };
65922
65925
  }
65923
- function DOe(e, t) {
65926
+ function NOe(e, t) {
65924
65927
  const n = Jv(e[t], QC);
65925
65928
  return n ? (t += 1, t < e.length - 1 && !t0(e[t]) ? { error: `Delete File patch for ${n} must not include a diff.` } : {
65926
65929
  operation: {
@@ -65930,7 +65933,7 @@ function DOe(e, t) {
65930
65933
  nextIndex: t
65931
65934
  }) : { error: `Missing path in apply_patch header: ${e[t]}` };
65932
65935
  }
65933
- function NOe(e, t) {
65936
+ function jOe(e, t) {
65934
65937
  const n = Jv(e[t], XC);
65935
65938
  if (!n)
65936
65939
  return { error: `Missing path in apply_patch header: ${e[t]}` };
@@ -65967,7 +65970,7 @@ function f9(e) {
65967
65970
  `)}
65968
65971
  `;
65969
65972
  }
65970
- async function jOe(e, t, n) {
65973
+ async function FOe(e, t, n) {
65971
65974
  var o;
65972
65975
  let r;
65973
65976
  try {
@@ -65989,32 +65992,32 @@ async function jOe(e, t, n) {
65989
65992
  }
65990
65993
  return (r == null ? void 0 : r.status) === "failed" ? r.output ? `Patch failed: ${r.output}` : "Patch failed." : (o = r == null ? void 0 : r.output) != null ? o : "Patch applied.";
65991
65994
  }
65992
- async function FOe(e, t, n) {
65995
+ async function zOe(e, t, n) {
65993
65996
  const r = [];
65994
65997
  for (const o of t) {
65995
- const s = await jOe(e, o, n);
65998
+ const s = await FOe(e, o, n);
65996
65999
  s && r.push(s);
65997
66000
  }
65998
66001
  return r.join(`
65999
66002
  `) || "Patch applied.";
66000
66003
  }
66001
- function zOe(e) {
66004
+ function LOe(e) {
66002
66005
  return {
66003
66006
  type: "function",
66004
66007
  name: "apply_patch",
66005
66008
  description: "Applies a create, update, move, or delete file patch in the sandbox workspace. Accepts a freeform patch string or structured apply_patch operations.",
66006
- parameters: ROe,
66009
+ parameters: EOe,
66007
66010
  strict: !1,
66008
66011
  deferLoading: !1,
66009
66012
  needsApproval: async () => !1,
66010
66013
  isEnabled: async () => !0,
66011
66014
  invoke: async (n, r) => {
66012
- const o = COe(r);
66013
- return o.ok ? await FOe(e, o.operations, n) : o.error;
66015
+ const o = MOe(r);
66016
+ return o.ok ? await zOe(e, o.operations, n) : o.error;
66014
66017
  }
66015
66018
  };
66016
66019
  }
66017
- class LOe extends gI {
66020
+ class BOe extends gI {
66018
66021
  constructor(n = {}) {
66019
66022
  super();
66020
66023
  C(this, "type", "filesystem");
@@ -66026,7 +66029,7 @@ class LOe extends gI {
66026
66029
  const n = PP(this.type, this._session), r = (a = n.createEditor) == null ? void 0 : a.call(n, this._runAs);
66027
66030
  if (!r)
66028
66031
  throw new O("Filesystem sandbox sessions must provide createEditor().");
66029
- const o = (c = this._workspaceScope) != null && c.cwd ? BOe(r, this._workspaceScope) : r, s = [], i = async (u, l) => {
66032
+ const o = (c = this._workspaceScope) != null && c.cwd ? UOe(r, this._workspaceScope) : r, s = [], i = async (u, l) => {
66030
66033
  var f, p;
66031
66034
  if (!n.viewImage)
66032
66035
  throw new O("Filesystem sandbox sessions must provide viewImage().");
@@ -66040,7 +66043,7 @@ class LOe extends gI {
66040
66043
  runAs: this._runAs
66041
66044
  }), this.tracingParent(l));
66042
66045
  } catch (h) {
66043
- return POe(u, h);
66046
+ return COe(u, h);
66044
66047
  }
66045
66048
  };
66046
66049
  return d9(this._modelInstance) ? s.push(Hs({
@@ -66056,14 +66059,14 @@ class LOe extends gI {
66056
66059
  parameters: V({
66057
66060
  path: E().describe("Path to an image file in the sandbox workspace or an explicitly granted sandbox path")
66058
66061
  }),
66059
- execute: async ({ path: u }, l, d) => EOe(await i(u, d))
66060
- })), wOe(this._modelInstance) ? s.push(Iae({
66062
+ execute: async ({ path: u }, l, d) => POe(await i(u, d))
66063
+ })), bOe(this._modelInstance) ? s.push(Iae({
66061
66064
  name: "apply_patch",
66062
66065
  editor: o
66063
- })) : s.push(zOe(o)), this.configureTools ? this.configureTools([...s]) : s;
66066
+ })) : s.push(LOe(o)), this.configureTools ? this.configureTools([...s]) : s;
66064
66067
  }
66065
66068
  }
66066
- function BOe(e, t) {
66069
+ function UOe(e, t) {
66067
66070
  return {
66068
66071
  createFile: async (n, r) => await e.createFile({ ...n, path: t.anchor(n.path) }, r),
66069
66072
  updateFile: async (n, r) => await e.updateFile({
@@ -66074,10 +66077,10 @@ function BOe(e, t) {
66074
66077
  deleteFile: async (n, r) => await e.deleteFile({ ...n, path: t.anchor(n.path) }, r)
66075
66078
  };
66076
66079
  }
66077
- function UOe(e = {}) {
66078
- return new LOe(e);
66080
+ function KOe(e = {}) {
66081
+ return new BOe(e);
66079
66082
  }
66080
- const KOe = 1e4, qOe = 250, WOe = [
66083
+ const qOe = 1e4, WOe = 250, HOe = [
66081
66084
  "When using the shell:",
66082
66085
  "- Use `exec_command` for shell execution.",
66083
66086
  "- If available, use `write_stdin` to interact with or poll running sessions.",
@@ -66086,7 +66089,7 @@ const KOe = 1e4, qOe = 250, WOe = [
66086
66089
  "- Avoid using Python scripts just to print large file chunks."
66087
66090
  ].join(`
66088
66091
  `);
66089
- class HOe extends gI {
66092
+ class GOe extends gI {
66090
66093
  constructor(n = {}) {
66091
66094
  super();
66092
66095
  C(this, "type", "shell");
@@ -66108,7 +66111,7 @@ class HOe extends gI {
66108
66111
  shell: E().optional().describe("Shell binary to launch. Defaults to the user's default shell."),
66109
66112
  login: Kr().default(!0).describe("Whether to run the shell with -l/-i semantics. Defaults to true."),
66110
66113
  tty: Kr().default(!1).describe("Whether to allocate a TTY for the command. Defaults to false (plain pipes); set to true to open a PTY and access TTY process."),
66111
- yield_time_ms: ve().int().min(0).default(KOe).describe("How long to wait (in milliseconds) for output before yielding."),
66114
+ yield_time_ms: ve().int().min(0).default(qOe).describe("How long to wait (in milliseconds) for output before yielding."),
66112
66115
  max_output_tokens: ve().int().min(1).optional().describe("Maximum number of tokens to return. Excess output will be truncated.")
66113
66116
  }),
66114
66117
  execute: async ({ cmd: s, workdir: i, shell: a, login: c, tty: u, yield_time_ms: l, max_output_tokens: d }, f, p) => {
@@ -66140,7 +66143,7 @@ class HOe extends gI {
66140
66143
  parameters: V({
66141
66144
  session_id: ve().int().describe("Identifier of the running unified exec session."),
66142
66145
  chars: E().default("").describe("Bytes to write to stdin (may be empty to poll)."),
66143
- yield_time_ms: ve().int().min(0).default(qOe).describe("How long to wait (in milliseconds) for output before yielding."),
66146
+ yield_time_ms: ve().int().min(0).default(WOe).describe("How long to wait (in milliseconds) for output before yielding."),
66144
66147
  max_output_tokens: ve().int().min(1).optional().describe("Maximum number of tokens to return. Excess output will be truncated.")
66145
66148
  }),
66146
66149
  execute: async ({ session_id: s, chars: i, yield_time_ms: a, max_output_tokens: c }, u, l) => await gn("sandbox.write_stdin", {
@@ -66154,11 +66157,11 @@ class HOe extends gI {
66154
66157
  })), this.configureTools ? this.configureTools([...r]) : r;
66155
66158
  }
66156
66159
  instructions() {
66157
- return WOe;
66160
+ return HOe;
66158
66161
  }
66159
66162
  }
66160
- function GOe(e = {}) {
66161
- return new HOe(e);
66163
+ function ZOe(e = {}) {
66164
+ return new GOe(e);
66162
66165
  }
66163
66166
  zl`
66164
66167
  A skill is a set of local instructions to follow that is stored in a \`SKILL.md\` file. Below is the list of skills that can be used. Each entry includes a name, description, and file path so you can open the source for full instructions when using a specific skill.
@@ -66201,11 +66204,11 @@ zl`
66201
66204
  - When variants exist (frameworks, providers, domains), pick only the relevant reference file(s) and note that choice.
66202
66205
  - Safety and fallback: If a skill can't be applied cleanly (missing files, unclear instructions), state the issue, pick the next-best approach, and continue.
66203
66206
  `;
66204
- function ZOe() {
66205
- return [UOe(), GOe(), IOe()];
66207
+ function JOe() {
66208
+ return [KOe(), ZOe(), AOe()];
66206
66209
  }
66207
- const JOe = {
66208
- default: ZOe
66210
+ const VOe = {
66211
+ default: JOe
66209
66212
  };
66210
66213
  var aL, cL;
66211
66214
  class n0 extends (cL = vo, aL = MO, cL) {
@@ -66220,7 +66223,7 @@ class n0 extends (cL = vo, aL = MO, cL) {
66220
66223
  C(this, "runtimeManifest");
66221
66224
  if (n.baseInstructions !== void 0 && typeof n.baseInstructions != "string" && typeof n.baseInstructions != "function")
66222
66225
  throw new TypeError("SandboxAgent baseInstructions must be a string or function.");
66223
- this.defaultManifest = n.defaultManifest ? Jo(n.defaultManifest) : void 0, this.baseInstructions = n.baseInstructions, this.capabilities = (r = n.capabilities) != null ? r : JOe.default(), this.runAs = VOe(n.runAs), this.runtimeManifest = (o = this.defaultManifest) != null ? o : new Wr();
66226
+ this.defaultManifest = n.defaultManifest ? Jo(n.defaultManifest) : void 0, this.baseInstructions = n.baseInstructions, this.capabilities = (r = n.capabilities) != null ? r : VOe.default(), this.runAs = YOe(n.runAs), this.runtimeManifest = (o = this.defaultManifest) != null ? o : new Wr();
66224
66227
  }
66225
66228
  clone(n) {
66226
66229
  var r, o, s, i, a, c, u, l, d, f, p, h, y, g, _, m, w, b, A;
@@ -66247,7 +66250,7 @@ class n0 extends (cL = vo, aL = MO, cL) {
66247
66250
  });
66248
66251
  }
66249
66252
  }
66250
- function VOe(e) {
66253
+ function YOe(e) {
66251
66254
  if (e !== void 0) {
66252
66255
  if (typeof e == "string") {
66253
66256
  const t = e.trim();
@@ -66268,22 +66271,22 @@ export {
66268
66271
  wR as DEFAULT_AGENT_MODEL,
66269
66272
  VC as INITIALIZATION_TOOL_ROLE,
66270
66273
  h_e as MemorySession,
66271
- pOe as MpdAgent,
66274
+ hOe as MpdAgent,
66272
66275
  iC as Runner,
66273
66276
  Nxe as completeEditorOperation,
66274
- hOe as createAgentElement,
66275
- Xxe as createAgentRuntime,
66277
+ mOe as createAgentElement,
66278
+ eOe as createAgentRuntime,
66276
66279
  Kxe as createAgents,
66277
66280
  Mxe as createEditorAgentContext,
66278
- fOe as defineAgentTool,
66279
- Fke as defineCapability,
66280
- jke as defineInitializationTool,
66281
+ pOe as defineAgentTool,
66282
+ zke as defineCapability,
66283
+ Fke as defineInitializationTool,
66281
66284
  Dxe as editorOperationSucceeded,
66282
66285
  jxe as findInitializationTool,
66283
- gOe as getAgentElement,
66286
+ yOe as getAgentElement,
66284
66287
  $xe as prepareEditorOperation,
66285
- yOe as registerAgentElement,
66288
+ _Oe as registerAgentElement,
66286
66289
  pb as resolveAgentServiceURL,
66287
- XOe as run,
66290
+ eke as run,
66288
66291
  Hs as tool
66289
66292
  };
@@ -21123,7 +21123,7 @@ async function tae({ runContext: e }) {
21123
21123
  gS(oe, "Failed to dispose computer for run context:", o);
21124
21124
  }
21125
21125
  }
21126
- function Vxe(e) {
21126
+ function Yxe(e) {
21127
21127
  var o;
21128
21128
  const t = (o = e.name) != null ? o : "apply_patch", n = nW(e.allowedCallers, t), r = typeof e.needsApproval == "function" ? e.needsApproval : async () => typeof e.needsApproval == "boolean" ? e.needsApproval : !1;
21129
21129
  return {
@@ -35162,7 +35162,7 @@ class zhe {
35162
35162
  const r = Nn(this.memory.layout.sessionsDir, `${t}.jsonl`), o = await this.storage.readText(r);
35163
35163
  if (!o)
35164
35164
  throw new O(`Memory rollout transcript was not found: ${r}`);
35165
- const { SandboxAgent: s } = await import("./agent-CCbfDM5U.js"), i = new s({
35165
+ const { SandboxAgent: s } = await import("./agent-CfRVWxVS.js"), i = new s({
35166
35166
  name: "sandbox-memory-phase-one",
35167
35167
  instructions: Lpe(n.extraPrompt),
35168
35168
  model: n.phaseOneModel,
@@ -35214,7 +35214,7 @@ class zhe {
35214
35214
  selectedItems: n.selected
35215
35215
  }))
35216
35216
  return;
35217
- const { SandboxAgent: r } = await import("./agent-CCbfDM5U.js"), o = new r({
35217
+ const { SandboxAgent: r } = await import("./agent-CfRVWxVS.js"), o = new r({
35218
35218
  name: "sandbox-memory-phase-two",
35219
35219
  model: t.phaseTwoModel,
35220
35220
  modelSettings: t.phaseTwoModelSettings,
@@ -41909,7 +41909,7 @@ function zj(e, t, n) {
41909
41909
  if (!(e._pendingInput.length === 0 || !r || VS(t, n)))
41910
41910
  throw new O("Pending RunState input requires exactly one server-managed conversation owner", e);
41911
41911
  }
41912
- async function Yxe(e, t, n) {
41912
+ async function Qxe(e, t, n) {
41913
41913
  const r = yye();
41914
41914
  return n != null && n.stream ? await r.run(e, t, n) : await r.run(e, t, n);
41915
41915
  }
@@ -64843,7 +64843,7 @@ function gxe(e, t, n) {
64843
64843
  t.pendingItems && mxe(n) && (e.pendingItems = []);
64844
64844
  }
64845
64845
  const BC = "initialization";
64846
- function DOe(e) {
64846
+ function NOe(e) {
64847
64847
  return {
64848
64848
  ...e,
64849
64849
  kind: "agent-tool",
@@ -65094,11 +65094,13 @@ function Ixe(e) {
65094
65094
  agents: s ? [i, s] : [i]
65095
65095
  };
65096
65096
  }
65097
- const Axe = "browser-proxy";
65098
- function Txe(e) {
65097
+ const Axe = Object.freeze({
65098
+ maxFunctionToolConcurrency: 1
65099
+ }), Txe = "browser-proxy";
65100
+ function xxe(e) {
65099
65101
  return (e == null ? void 0 : e.trim().replace(/\/+$/, "")) || bxe;
65100
65102
  }
65101
- function xxe(e) {
65103
+ function Oxe(e) {
65102
65104
  return e === "chat_completions" ? "chat_completions" : "responses";
65103
65105
  }
65104
65106
  function af(e, t) {
@@ -65111,7 +65113,7 @@ function Gi(e, t) {
65111
65113
  const n = e[t];
65112
65114
  return typeof n == "string" ? n : void 0;
65113
65115
  }
65114
- function Oxe(e) {
65116
+ function Rxe(e) {
65115
65117
  if (typeof e != "string")
65116
65118
  return e;
65117
65119
  try {
@@ -65120,7 +65122,7 @@ function Oxe(e) {
65120
65122
  return e;
65121
65123
  }
65122
65124
  }
65123
- function Rxe(e) {
65125
+ function kxe(e) {
65124
65126
  const t = jd(e.rawItem);
65125
65127
  return (Array.isArray(t.content) ? t.content : []).map((r) => Gi(jd(r), "text")).filter((r) => !!r).join(`
65126
65128
  `);
@@ -65130,10 +65132,10 @@ function Cz(e, t) {
65130
65132
  (n) => n.type === "tool" && n.toolCallId === t
65131
65133
  );
65132
65134
  }
65133
- function kxe(e, t, n, r) {
65135
+ function Exe(e, t, n, r) {
65134
65136
  var o, s, i, a, c, u, l, d;
65135
65137
  if (e.name === "reasoning_item_created" && n === "data") {
65136
- const f = Rxe(e.item);
65138
+ const f = kxe(e.item);
65137
65139
  f && (af(t, { type: "reasoning", text: f }), r());
65138
65140
  return;
65139
65141
  }
@@ -65141,7 +65143,7 @@ function kxe(e, t, n, r) {
65141
65143
  const f = jd(e.item.rawItem), p = (i = (s = (o = Gi(f, "callId")) != null ? o : Gi(f, "call_id")) != null ? s : Gi(f, "id")) != null ? i : globalThis.crypto.randomUUID();
65142
65144
  if (Cz(t, p))
65143
65145
  return;
65144
- const h = (c = (a = Gi(f, "name")) != null ? a : Gi(jd(e.item), "toolName")) != null ? c : e.name === "handoff_requested" ? "transfer_to_agent" : "tool", y = Oxe((u = f.arguments) != null ? u : f.input), g = f.output;
65146
+ const h = (c = (a = Gi(f, "name")) != null ? a : Gi(jd(e.item), "toolName")) != null ? c : e.name === "handoff_requested" ? "transfer_to_agent" : "tool", y = Rxe((u = f.arguments) != null ? u : f.input), g = f.output;
65145
65147
  af(t, {
65146
65148
  type: "tool",
65147
65149
  toolCallId: p,
@@ -65172,12 +65174,12 @@ function kxe(e, t, n, r) {
65172
65174
  }), r());
65173
65175
  }
65174
65176
  }
65175
- function Exe(e) {
65177
+ function Pxe(e) {
65176
65178
  return e.parts.map((t) => t.type === "text" ? t.text : t.type === "file" ? aB(t) : "").filter(Boolean).join(`
65177
65179
 
65178
65180
  `);
65179
65181
  }
65180
- function Pxe(e) {
65182
+ function Cxe(e) {
65181
65183
  var t;
65182
65184
  try {
65183
65185
  return (t = localStorage.getItem(e)) != null ? t : void 0;
@@ -65185,18 +65187,18 @@ function Pxe(e) {
65185
65187
  return;
65186
65188
  }
65187
65189
  }
65188
- function Cxe(e, t) {
65190
+ function Mxe(e, t) {
65189
65191
  try {
65190
65192
  localStorage.setItem(e, t);
65191
65193
  } catch (n) {
65192
65194
  }
65193
65195
  }
65194
- function Mxe(e = {}) {
65196
+ function $xe(e = {}) {
65195
65197
  var _, m;
65196
65198
  const t = {
65197
- baseURL: Txe(e.baseURL),
65199
+ baseURL: xxe(e.baseURL),
65198
65200
  model: ((_ = e.model) == null ? void 0 : _.trim()) || dk,
65199
- apiMode: xxe(e.apiMode)
65201
+ apiMode: Oxe(e.apiMode)
65200
65202
  }, { agent: n, agents: r } = Ixe({
65201
65203
  model: t.model,
65202
65204
  api: (m = e.api) != null ? m : {},
@@ -65227,7 +65229,7 @@ function Mxe(e = {}) {
65227
65229
  v.push(await u(T));
65228
65230
  } catch (x) {
65229
65231
  }
65230
- const I = Exe(A).trim();
65232
+ const I = Pxe(A).trim();
65231
65233
  !I && v.length === 0 || (A.role === "assistant" ? b.push(yv(I)) : A.role === "system" ? b.push(cge(I)) : b.push(dj(H0(I, v))));
65232
65234
  }
65233
65235
  return b;
@@ -65236,7 +65238,7 @@ function Mxe(e = {}) {
65236
65238
  let b = c.get(w);
65237
65239
  if (!b) {
65238
65240
  const A = new Ue({
65239
- apiKey: Axe,
65241
+ apiKey: Txe,
65240
65242
  baseURL: t.baseURL,
65241
65243
  dangerouslyAllowBrowser: !0
65242
65244
  });
@@ -65246,6 +65248,7 @@ function Mxe(e = {}) {
65246
65248
  useResponses: w === "responses",
65247
65249
  cacheResponsesWebSocketModels: !1
65248
65250
  }),
65251
+ toolExecution: Axe,
65249
65252
  tracingDisabled: !0
65250
65253
  }), c.set(w, b);
65251
65254
  }
@@ -65255,10 +65258,10 @@ function Mxe(e = {}) {
65255
65258
  return `${a}:agent:${w}`;
65256
65259
  }
65257
65260
  function p(w, b) {
65258
- Cxe(f(w), b);
65261
+ Mxe(f(w), b);
65259
65262
  }
65260
65263
  async function h(w, b) {
65261
- const A = Pxe(f(w));
65264
+ const A = Cxe(f(w));
65262
65265
  return {
65263
65266
  activeAgentName: A && o.has(A) ? A : n.name,
65264
65267
  session: new Zye({
@@ -65314,7 +65317,7 @@ function Mxe(e = {}) {
65314
65317
  ee && (F = af(v, { type: "text", text: ee }), P());
65315
65318
  continue;
65316
65319
  }
65317
- kxe(ie, v, A, P);
65320
+ Exe(ie, v, A, P);
65318
65321
  continue;
65319
65322
  }
65320
65323
  D.activeAgentName = ie.agent.name, p(w, D.activeAgentName), A === "data" && (af(v, {
@@ -65330,7 +65333,7 @@ function Mxe(e = {}) {
65330
65333
  runTurn: g
65331
65334
  };
65332
65335
  }
65333
- const $xe = ["aria-valuemax", "aria-valuenow"], Dxe = { class: "assistant-toolbar" }, Nxe = { class: "assistant-brand" }, jxe = { class: "assistant-brand-copy" }, Fxe = { class: "assistant-toolbar-actions" }, zxe = { class: "assistant-drawer-body" }, X_ = 360, Mz = 520, Lxe = 16, Bxe = /* @__PURE__ */ Zg({
65336
+ const Dxe = ["aria-valuemax", "aria-valuenow"], Nxe = { class: "assistant-toolbar" }, jxe = { class: "assistant-brand" }, Fxe = { class: "assistant-brand-copy" }, zxe = { class: "assistant-toolbar-actions" }, Lxe = { class: "assistant-drawer-body" }, X_ = 360, Mz = 520, Bxe = 16, Uxe = /* @__PURE__ */ Zg({
65334
65337
  __name: "Copilot",
65335
65338
  props: {
65336
65339
  api: { default: () => ({}), type: Object },
@@ -65348,7 +65351,7 @@ const $xe = ["aria-valuemax", "aria-valuenow"], Dxe = { class: "assistant-toolba
65348
65351
  return ((V = t.api.model) == null ? void 0 : V.model) || "qwen3.6-flash";
65349
65352
  }), c = _c(() => {
65350
65353
  var V, ne, ie;
65351
- return Mxe({
65354
+ return $xe({
65352
65355
  baseURL: (V = t.api.model) == null ? void 0 : V.baseURL,
65353
65356
  model: (ne = t.api.model) == null ? void 0 : ne.model,
65354
65357
  apiMode: (ie = t.api.model) == null ? void 0 : ie.apiMode,
@@ -65364,7 +65367,7 @@ const $xe = ["aria-valuemax", "aria-valuenow"], Dxe = { class: "assistant-toolba
65364
65367
  typeof window == "undefined" ? 1440 : window.innerWidth
65365
65368
  ), d = _c(() => Math.max(
65366
65369
  X_,
65367
- l.value - Lxe
65370
+ l.value - Bxe
65368
65371
  ));
65369
65372
  function f(V) {
65370
65373
  return Math.round(Math.min(
@@ -65486,9 +65489,9 @@ const $xe = ["aria-valuemax", "aria-valuenow"], Dxe = { class: "assistant-toolba
65486
65489
  onDblclick: q
65487
65490
  }, [...ne[1] || (ne[1] = [
65488
65491
  ve("span", { "aria-hidden": "true" }, null, -1)
65489
- ])], 40, $xe),
65490
- ve("header", Dxe, [
65491
- ve("div", Nxe, [
65492
+ ])], 40, Dxe),
65493
+ ve("header", Nxe, [
65494
+ ve("div", jxe, [
65492
65495
  ne[3] || (ne[3] = ve("span", {
65493
65496
  class: "assistant-brand-mark",
65494
65497
  "aria-hidden": "true"
@@ -65497,12 +65500,12 @@ const $xe = ["aria-valuemax", "aria-valuenow"], Dxe = { class: "assistant-toolba
65497
65500
  ve("path", { d: "M12 2.8 13.8 9l6.2 1.8-6.2 1.8L12 19l-1.8-6.4L4 10.8 10.2 9 12 2.8Z" })
65498
65501
  ])
65499
65502
  ], -1)),
65500
- ve("span", jxe, [
65503
+ ve("span", Fxe, [
65501
65504
  ve("strong", { id: o }, Yt(e.title), 1),
65502
65505
  ne[2] || (ne[2] = ve("small", null, "Agent workspace", -1))
65503
65506
  ])
65504
65507
  ]),
65505
- ve("div", Fxe, [
65508
+ ve("div", zxe, [
65506
65509
  ve("button", {
65507
65510
  type: "button",
65508
65511
  class: "assistant-new-session",
@@ -65541,7 +65544,7 @@ const $xe = ["aria-valuemax", "aria-valuenow"], Dxe = { class: "assistant-toolba
65541
65544
  ])], 512)
65542
65545
  ])
65543
65546
  ]),
65544
- ve("div", zxe, [
65547
+ ve("div", Lxe, [
65545
65548
  (mt(), lS(bY, {
65546
65549
  key: `${i.value}-${a.value}`,
65547
65550
  mode: "data",
@@ -65579,40 +65582,40 @@ const $xe = ["aria-valuemax", "aria-valuenow"], Dxe = { class: "assistant-toolba
65579
65582
  ], 512))
65580
65583
  ], 2));
65581
65584
  }
65582
- }), Uxe = ':host{--page-bg: #fff;--surface: #fff;--surface-raised: #f7f7f5;--surface-code: #f4f4f1;--border: #d9d9d5;--border-soft: #e7e7e3;--text: #111;--text-muted: #4f4f4b;--text-subtle: #73736e;--accent: #111;--accent-hover: #2c2c29;--accent-soft: rgba(17, 17, 17, .07);--danger: #b42318;display:block;position:fixed;z-index:2147483000;inset:0;color:var(--text);font-family:Space Grotesk,IBM Plex Sans,Segoe UI,sans-serif;color-scheme:light;isolation:isolate;pointer-events:none}:host([hidden]){display:none}*{box-sizing:border-box}button,textarea{font:inherit}button{color:inherit}button:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent-hover);outline-offset:2px}svg{display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.chat-view{width:100%;color:var(--text)}.chat-header{margin:0 0 18px}.chat-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:var(--text-subtle);font-size:11px;letter-spacing:.02em}.live-badge{display:inline-flex;align-items:center;gap:7px;color:#3f3f3b}.live-dot{width:6px;height:6px;border-radius:50%;background:#168447;box-shadow:0 0 0 4px #16844714}.meta-divider{width:1px;height:12px;background:#deded9}.chat-header h1{margin:0;color:var(--text);font-size:clamp(28px,4vw,38px);font-weight:570;line-height:1.08;letter-spacing:-.045em}.chat-header p{max-width:720px;margin:9px 0 0;color:var(--text-muted);font-size:13px;line-height:1.6}.chat-panel{display:flex;overflow:hidden;min-height:0;flex-direction:column;border:1px solid var(--border-soft);border-radius:18px;background:#fff;box-shadow:0 18px 50px #00000014,inset 0 1px #fff}.message-list{display:flex;overflow-y:auto;min-height:0;flex:1;flex-direction:column;gap:24px;padding:28px;scrollbar-color:#c8c8c3 transparent;scrollbar-width:thin}.empty-state{display:flex;width:100%;min-height:370px;flex:none;flex-direction:column;align-items:center;justify-content:center;align-self:center;margin-block:auto;padding:16px;text-align:center}.empty-orbit{position:relative;display:grid;width:62px;height:62px;margin-bottom:21px;place-items:center;border:1px solid #d8d8d3;border-radius:50%;color:#262623;background:radial-gradient(circle,rgb(17 17 17 / 7%),transparent 68%),#f7f7f4}.empty-orbit svg{width:27px}.orbit-ring{position:absolute;inset:-8px;border:1px solid #e7e7e2;border-radius:50%}.orbit-ring:after{position:absolute;top:4px;right:7px;width:5px;height:5px;border-radius:50%;background:#111;box-shadow:0 0 10px #0003;content:""}.empty-state h2{margin:0;color:var(--text);font-size:20px;font-weight:580;letter-spacing:-.02em}.empty-state>p{max-width:500px;margin:9px 0 22px;color:var(--text-subtle);font-size:13px;line-height:1.65}.example-list{display:grid;width:min(100%,450px);gap:8px}.example-prompt{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid var(--border-soft);border-radius:10px;color:#393936;background:#fbfbf9;font-size:13px;text-align:left;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.example-prompt:hover{border-color:#aaa9a4;color:var(--text);background:#f2f2ef}.example-prompt svg{width:15px;flex:0 0 auto}.message-row{display:flex;align-items:flex-start;gap:12px;animation:message-in .22s ease-out both}.message-row.user{justify-content:flex-end}.avatar{display:grid;width:30px;height:30px;flex:0 0 30px;margin-top:22px;place-items:center;border:1px solid #deded9;border-radius:9px;color:#262623;background:#f3f3f0}.assistant-avatar svg{width:16px}.message-content{max-width:min(80%,680px);min-width:0}.message-row.user .message-content{display:flex;flex-direction:column;align-items:flex-end}.message-label{display:flex;align-items:center;gap:8px;margin:0 2px 7px;color:var(--text-subtle);font-size:11px;font-weight:570;letter-spacing:.055em;text-transform:uppercase}.streaming-label{color:#5f5f5a;letter-spacing:.03em;text-transform:none}.streaming-label:before{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:currentColor;content:"";animation:pulse 1.2s ease-in-out infinite}.message-bubble{display:grid;min-width:80px;gap:10px;padding:13px 15px;border:1px solid var(--border-soft);border-radius:4px 14px 14px;color:#1f1f1d;background:#f7f7f4;font-size:14px;line-height:1.65}.message-row.user .message-bubble{border-color:#111;border-radius:14px 4px 14px 14px;color:#fff;background:#111}.message-row.user .markdown-content{white-space:pre-wrap}.message-row.user .markdown-content strong,.message-row.user .markdown-content a{color:#fff}.message-row.user .markdown-content code{border-color:#fff;color:#111;background:#fff}.message-file{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;border:1px solid #deded9;border-radius:9px;background:#fff}.message-row.user .message-file{border-color:#ffffff38;background:#ffffff14}.message-file.is-image{display:grid;width:min(100%,300px);gap:7px;padding:6px}.message-file-image{display:block;width:100%;max-height:190px;border-radius:6px;object-fit:cover;background:#ecece8}.message-file.is-image>span:last-child{padding:0 4px 3px}.message-file-icon{display:grid;width:29px;height:29px;flex:0 0 29px;place-items:center;border-radius:7px;color:#262623;background:#f0f0ed}.message-file-icon svg{width:16px}.message-file>span:last-child{display:grid;min-width:0;gap:1px}.message-file strong{overflow:hidden;color:#191917;font-size:12.5px;font-weight:570;text-overflow:ellipsis;white-space:nowrap}.message-file small{color:#777771;font-size:10.5px}.message-row.user .message-file-icon{color:#fff;background:#ffffff1f}.message-row.user .message-file strong{color:#fff}.message-row.user .message-file small{color:#ffffffa3}.markdown-content{min-width:0;overflow-wrap:anywhere}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content p{margin:0 0 10px}.markdown-content ul,.markdown-content ol{margin:8px 0 10px;padding-left:21px}.markdown-content li+li{margin-top:4px}.markdown-content strong{color:#111;font-weight:650}.markdown-content a{color:#111;text-decoration-thickness:1px;text-underline-offset:2px}.markdown-content code{padding:2px 5px;border:1px solid #deded9;border-radius:5px;background:var(--surface-code);font-family:SFMono-Regular,Consolas,monospace;font-size:.9em}.markdown-content pre{overflow-x:auto;margin:12px 0;padding:12px;border:1px solid #deded9;border-radius:9px;background:var(--surface-code)}.markdown-content pre code{padding:0;border:0;background:transparent}.markdown-content blockquote{margin:12px 0;padding-left:13px;border-left:2px solid var(--accent);color:var(--text-muted)}.part-card{min-width:0;padding:12px;border:1px solid #e3e3de;border-radius:10px;color:#444440;background:#fbfbf9;font-size:12.5px}.reasoning summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer}.reasoning summary::-webkit-details-marker{display:none}.reasoning summary strong,.tool-heading strong{display:block;color:#181816;font-size:12.5px;font-weight:580}.reasoning summary small,.tool-heading small{display:block;margin-top:2px;color:var(--text-subtle);font-size:10.5px;line-height:1.4}.part-icon{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;border:1px solid #dfdfda;border-radius:7px;color:#444440;background:#f3f3f0}.part-icon svg{width:15px}.reasoning .chevron{width:15px;margin-left:auto;transition:transform .16s ease}.reasoning[open] .chevron{transform:rotate(90deg)}.part-body{margin:12px 0 1px 36px;padding-top:11px;border-top:1px solid #e8e8e3;color:#555550}.tool-heading{display:flex;align-items:center;gap:9px}.tool summary.tool-heading{list-style:none;cursor:pointer}.tool summary.tool-heading::-webkit-details-marker{display:none}.status-pill{margin-left:auto;padding:3px 7px;border-radius:999px;font-size:10px;line-height:1.4}.status-pill.running{color:#444440;background:#ecece8}.status-pill.complete{color:#166534;background:#edf7f0}.tool-chevron{width:15px;flex:0 0 15px;transition:transform .16s ease}.tool[open] .tool-chevron{transform:rotate(90deg)}.tool-body{margin-top:11px;padding-top:1px;border-top:1px solid #e8e8e3}.tool-section{display:grid;gap:5px;margin-top:11px}.tool-label{color:var(--text-subtle);font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}.part-card pre{overflow-x:auto;margin:0;padding:9px 10px;border:1px solid #e1e1dc;border-radius:7px;color:#333330;background:#f3f3f0;font-family:SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.55}.tool-error{margin:10px 0 0;color:var(--danger)}.thinking{display:flex;align-items:center;gap:4px;min-height:21px}.thinking i{width:5px;height:5px;border-radius:50%;background:#8a8a84;animation:thinking 1.2s ease-in-out infinite}.thinking i:nth-child(2){animation-delay:.12s}.thinking i:nth-child(3){animation-delay:.24s}.error-banner{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #f1c7c2;border-radius:9px;color:var(--danger);background:#fff3f1;font-size:12px}.error-banner svg{width:17px;flex:0 0 auto}.composer-area{padding:15px 18px 13px;border-top:1px solid var(--border-soft);background:#fff}.composer{display:flex;align-items:flex-end;gap:10px;padding:8px 8px 8px 14px;border:1px solid #d6d6d1;border-radius:12px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease}.composer-main{display:grid;min-width:0;flex:1;gap:7px}.composer-input{display:flex;min-width:0;align-items:flex-end;gap:8px}.composer:focus-within{border-color:#111;box-shadow:0 0 0 3px #11111112}.composer textarea{width:100%;min-height:37px;max-height:140px;padding:8px 0;resize:none;border:0;outline:0;color:var(--text);background:transparent;font-size:14px;line-height:1.45}.composer textarea::placeholder{color:#8a8a84}.composer textarea:disabled{cursor:not-allowed;opacity:.7}.attach-button{display:grid;width:32px;height:32px;flex:0 0 32px;margin-bottom:2px;place-items:center;border:1px solid #dcdcd7;border-radius:8px;color:#555550;background:#fbfbf9;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.attach-button:hover:not(:disabled){border-color:#aaa9a4;color:#111;background:#f2f2ef}.attach-button:disabled{cursor:not-allowed;opacity:.4}.attach-button svg{width:17px}.pending-files{display:flex;flex-wrap:wrap;gap:6px}.pending-file{display:flex;max-width:100%;align-items:center;gap:7px;padding:6px 7px;border:1px solid #deded9;border-radius:8px;color:#444440;background:#f7f7f4;font-size:11.5px}.pending-file.uploading{color:#686863}.pending-file svg{width:15px;flex:0 0 15px;color:#333330}.pending-file.is-image{padding:4px 7px 4px 4px}.pending-file-preview{width:28px;height:28px;flex:0 0 28px;border-radius:6px;object-fit:cover;background:#e6e6e1}.pending-file-name{overflow:hidden;max-width:220px;text-overflow:ellipsis;white-space:nowrap}.pending-file-size{color:#81817b;font-size:10.5px}.remove-file{display:grid;width:18px;height:18px;padding:0;place-items:center;border:0;border-radius:4px;color:#777771;background:transparent;font-size:15px;line-height:1;cursor:pointer}.remove-file:hover:not(:disabled){color:#fff;background:#111}.remove-file:disabled{cursor:not-allowed;opacity:.4}.file-spinner{width:12px;height:12px;flex:0 0 12px;border:1.5px solid #d2d2cd;border-top-color:#222;border-radius:50%;animation:spin .7s linear infinite}.file-error{margin:0;color:var(--danger);font-size:11.5px;line-height:1.5}.file-input{display:none}.send-button{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border:0;border-radius:9px;color:#fff;background:var(--accent);cursor:pointer;transition:background .16s ease,opacity .16s ease}.send-button:hover:not(:disabled){background:var(--accent-hover)}.send-button:disabled{cursor:not-allowed;opacity:.38}.send-button.stop{color:#333330;background:#ecece8}.send-button svg{width:18px}.composer-hint{display:flex;justify-content:space-between;gap:20px;padding:9px 4px 0;color:#85857f;font-size:10.5px}.demo-note{margin:15px 4px 0;color:#777771;font-size:11.5px;line-height:1.55;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap}@keyframes message-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes thinking{0%,70%,to{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}@keyframes pulse{0%,to{opacity:.45}50%{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 560px){.message-list{padding:18px 14px}.message-content{max-width:calc(100% - 42px)}.composer-area{padding:12px}.composer-hint span:first-child{display:none}.pending-file-name{max-width:150px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}', Kxe = ".assistant-root[data-v-d26eb739]{position:fixed;z-index:2147483000;inset:0;pointer-events:none}.assistant-drawer[data-v-d26eb739]{--page-bg: #fff;--surface: #fff;--surface-raised: #f7f7f5;--surface-code: #f4f4f1;--border: #d9d9d5;--border-soft: #e7e7e3;--text: #111;--text-muted: #4f4f4b;--text-subtle: #73736e;--accent: #111;--accent-hover: #2c2c29;--accent-soft: rgb(17 17 17 / 7%);--danger: #b42318;position:absolute;top:0;right:0;bottom:0;display:flex;width:min(var(--assistant-drawer-width, 520px),calc(100vw - 16px));min-width:min(360px,100vw);flex-direction:column;border-left:1px solid #d9d9d5;color:#111;background:#fff;box-shadow:-16px 0 48px #0000001f;pointer-events:auto;will-change:transform}.assistant-toolbar[data-v-d26eb739]{display:flex;min-height:64px;flex:0 0 64px;align-items:center;justify-content:space-between;gap:16px;padding:0 18px 0 20px;border-bottom:1px solid #ebebe7;background:#fff}.assistant-brand[data-v-d26eb739]{display:flex;min-width:0;align-items:center;gap:10px}.assistant-brand-mark[data-v-d26eb739]{display:grid;flex:0 0 auto;place-items:center;border-radius:9px;color:#fff;background:#111}.assistant-brand-mark[data-v-d26eb739]{width:32px;height:32px}.assistant-brand-mark svg[data-v-d26eb739]{width:17px}.assistant-brand-copy[data-v-d26eb739]{display:grid;min-width:0;gap:1px}.assistant-brand-copy strong[data-v-d26eb739]{overflow:hidden;color:#111;font-size:14px;font-weight:650;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.assistant-brand-copy small[data-v-d26eb739]{color:#85857f;font-size:10.5px;letter-spacing:.04em}.assistant-toolbar-actions[data-v-d26eb739]{display:flex;flex:0 0 auto;align-items:center;gap:12px}.assistant-new-session[data-v-d26eb739]{display:inline-flex;height:32px;align-items:center;gap:6px;padding:0 10px;border:1px solid #e1e1dd;border-radius:9px;color:#444;background:#fff;font-size:11.5px;cursor:pointer;transition:color .16s ease,border-color .16s ease,background .16s ease}.assistant-new-session[data-v-d26eb739]:hover{border-color:#bdbdb8;color:#111;background:#f5f5f2}.assistant-new-session svg[data-v-d26eb739]{width:14px}.assistant-status[data-v-d26eb739]{display:inline-flex;align-items:center;gap:6px;color:#777771;font-size:10.5px}.assistant-status i[data-v-d26eb739]{width:6px;height:6px;border-radius:50%;background:#a9a9a3}.assistant-status.running i[data-v-d26eb739]{background:#168447;box-shadow:0 0 0 3px #1684471a}.assistant-close[data-v-d26eb739]{display:grid;width:32px;height:32px;padding:0;place-items:center;border:1px solid #e1e1dd;border-radius:9px;color:#444;background:#fff;cursor:pointer;transition:color .16s ease,border-color .16s ease,background .16s ease}.assistant-close[data-v-d26eb739]:hover{border-color:#bdbdb8;color:#111;background:#f5f5f2}.assistant-close svg[data-v-d26eb739]{width:16px}.assistant-drawer-body[data-v-d26eb739]{display:flex;overflow:hidden;min-height:0;flex:1;flex-direction:column;padding:18px}.assistant-drawer-body[data-v-d26eb739] .chat-view{display:flex;min-height:0;flex:1;flex-direction:column}.assistant-drawer-body[data-v-d26eb739] .chat-header{display:none}.assistant-drawer-body[data-v-d26eb739] .chat-panel,.assistant-drawer-body[data-v-d26eb739] .message-list{min-height:0;flex:1}.assistant-drawer-body[data-v-d26eb739] .empty-state{margin-block:auto}.resize-handle[data-v-d26eb739]{position:absolute;z-index:2;top:0;bottom:0;left:-6px;width:12px;border:0;outline:0;cursor:col-resize;touch-action:none}.resize-handle span[data-v-d26eb739]{position:absolute;top:50%;left:4px;width:4px;height:44px;border:1px solid #e5e5e1;border-radius:999px;background:#fff;box-shadow:0 1px 4px #00000014;transform:translateY(-50%);transition:border-color .16s ease,background .16s ease}.resize-handle:hover span[data-v-d26eb739],.resize-handle:focus-visible span[data-v-d26eb739],.is-resizing .resize-handle span[data-v-d26eb739]{border-color:#111;background:#111}.assistant-button[data-v-d26eb739]{position:absolute;right:10px;bottom:24px;display:inline-flex;flex-shrink:0;align-items:center;gap:8px;padding:10px 18px;border:0;border-radius:999px;color:#fff;background:#1677ff;box-shadow:0 8px 20px #1677ff59;cursor:pointer;pointer-events:auto}.assistant-button .dot[data-v-d26eb739]{width:8px;height:8px;border-radius:50%;background:#ffccc7}.assistant-button .dot.ok[data-v-d26eb739]{background:#b7eb8f}.assistant-drawer-enter-active[data-v-d26eb739],.assistant-drawer-leave-active[data-v-d26eb739]{transition:transform .24s cubic-bezier(.22,1,.36,1)}.assistant-drawer-enter-from[data-v-d26eb739],.assistant-drawer-leave-to[data-v-d26eb739]{transform:translate(100%)}@media (max-width: 560px){.assistant-drawer[data-v-d26eb739]{width:100vw;min-width:0;border-left:0;box-shadow:none}.assistant-toolbar[data-v-d26eb739]{padding-inline:14px}.assistant-status[data-v-d26eb739]{display:none}.assistant-new-session[data-v-d26eb739]{width:32px;padding:0;justify-content:center}.assistant-new-session span[data-v-d26eb739]{display:none}.assistant-drawer-body[data-v-d26eb739]{padding:12px}.resize-handle[data-v-d26eb739]{display:none}.assistant-button[data-v-d26eb739]{right:8px;bottom:16px;padding:10px 14px}}@media (prefers-reduced-motion: reduce){.assistant-drawer-enter-active[data-v-d26eb739],.assistant-drawer-leave-active[data-v-d26eb739]{transition-duration:.01ms}}", qxe = (e, t) => {
65585
+ }), Kxe = ':host{--page-bg: #fff;--surface: #fff;--surface-raised: #f7f7f5;--surface-code: #f4f4f1;--border: #d9d9d5;--border-soft: #e7e7e3;--text: #111;--text-muted: #4f4f4b;--text-subtle: #73736e;--accent: #111;--accent-hover: #2c2c29;--accent-soft: rgba(17, 17, 17, .07);--danger: #b42318;display:block;position:fixed;z-index:2147483000;inset:0;color:var(--text);font-family:Space Grotesk,IBM Plex Sans,Segoe UI,sans-serif;color-scheme:light;isolation:isolate;pointer-events:none}:host([hidden]){display:none}*{box-sizing:border-box}button,textarea{font:inherit}button{color:inherit}button:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent-hover);outline-offset:2px}svg{display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.chat-view{width:100%;color:var(--text)}.chat-header{margin:0 0 18px}.chat-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:var(--text-subtle);font-size:11px;letter-spacing:.02em}.live-badge{display:inline-flex;align-items:center;gap:7px;color:#3f3f3b}.live-dot{width:6px;height:6px;border-radius:50%;background:#168447;box-shadow:0 0 0 4px #16844714}.meta-divider{width:1px;height:12px;background:#deded9}.chat-header h1{margin:0;color:var(--text);font-size:clamp(28px,4vw,38px);font-weight:570;line-height:1.08;letter-spacing:-.045em}.chat-header p{max-width:720px;margin:9px 0 0;color:var(--text-muted);font-size:13px;line-height:1.6}.chat-panel{display:flex;overflow:hidden;min-height:0;flex-direction:column;border:1px solid var(--border-soft);border-radius:18px;background:#fff;box-shadow:0 18px 50px #00000014,inset 0 1px #fff}.message-list{display:flex;overflow-y:auto;min-height:0;flex:1;flex-direction:column;gap:24px;padding:28px;scrollbar-color:#c8c8c3 transparent;scrollbar-width:thin}.empty-state{display:flex;width:100%;min-height:370px;flex:none;flex-direction:column;align-items:center;justify-content:center;align-self:center;margin-block:auto;padding:16px;text-align:center}.empty-orbit{position:relative;display:grid;width:62px;height:62px;margin-bottom:21px;place-items:center;border:1px solid #d8d8d3;border-radius:50%;color:#262623;background:radial-gradient(circle,rgb(17 17 17 / 7%),transparent 68%),#f7f7f4}.empty-orbit svg{width:27px}.orbit-ring{position:absolute;inset:-8px;border:1px solid #e7e7e2;border-radius:50%}.orbit-ring:after{position:absolute;top:4px;right:7px;width:5px;height:5px;border-radius:50%;background:#111;box-shadow:0 0 10px #0003;content:""}.empty-state h2{margin:0;color:var(--text);font-size:20px;font-weight:580;letter-spacing:-.02em}.empty-state>p{max-width:500px;margin:9px 0 22px;color:var(--text-subtle);font-size:13px;line-height:1.65}.example-list{display:grid;width:min(100%,450px);gap:8px}.example-prompt{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid var(--border-soft);border-radius:10px;color:#393936;background:#fbfbf9;font-size:13px;text-align:left;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.example-prompt:hover{border-color:#aaa9a4;color:var(--text);background:#f2f2ef}.example-prompt svg{width:15px;flex:0 0 auto}.message-row{display:flex;align-items:flex-start;gap:12px;animation:message-in .22s ease-out both}.message-row.user{justify-content:flex-end}.avatar{display:grid;width:30px;height:30px;flex:0 0 30px;margin-top:22px;place-items:center;border:1px solid #deded9;border-radius:9px;color:#262623;background:#f3f3f0}.assistant-avatar svg{width:16px}.message-content{max-width:min(80%,680px);min-width:0}.message-row.user .message-content{display:flex;flex-direction:column;align-items:flex-end}.message-label{display:flex;align-items:center;gap:8px;margin:0 2px 7px;color:var(--text-subtle);font-size:11px;font-weight:570;letter-spacing:.055em;text-transform:uppercase}.streaming-label{color:#5f5f5a;letter-spacing:.03em;text-transform:none}.streaming-label:before{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:currentColor;content:"";animation:pulse 1.2s ease-in-out infinite}.message-bubble{display:grid;min-width:80px;gap:10px;padding:13px 15px;border:1px solid var(--border-soft);border-radius:4px 14px 14px;color:#1f1f1d;background:#f7f7f4;font-size:14px;line-height:1.65}.message-row.user .message-bubble{border-color:#111;border-radius:14px 4px 14px 14px;color:#fff;background:#111}.message-row.user .markdown-content{white-space:pre-wrap}.message-row.user .markdown-content strong,.message-row.user .markdown-content a{color:#fff}.message-row.user .markdown-content code{border-color:#fff;color:#111;background:#fff}.message-file{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;border:1px solid #deded9;border-radius:9px;background:#fff}.message-row.user .message-file{border-color:#ffffff38;background:#ffffff14}.message-file.is-image{display:grid;width:min(100%,300px);gap:7px;padding:6px}.message-file-image{display:block;width:100%;max-height:190px;border-radius:6px;object-fit:cover;background:#ecece8}.message-file.is-image>span:last-child{padding:0 4px 3px}.message-file-icon{display:grid;width:29px;height:29px;flex:0 0 29px;place-items:center;border-radius:7px;color:#262623;background:#f0f0ed}.message-file-icon svg{width:16px}.message-file>span:last-child{display:grid;min-width:0;gap:1px}.message-file strong{overflow:hidden;color:#191917;font-size:12.5px;font-weight:570;text-overflow:ellipsis;white-space:nowrap}.message-file small{color:#777771;font-size:10.5px}.message-row.user .message-file-icon{color:#fff;background:#ffffff1f}.message-row.user .message-file strong{color:#fff}.message-row.user .message-file small{color:#ffffffa3}.markdown-content{min-width:0;overflow-wrap:anywhere}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content p{margin:0 0 10px}.markdown-content ul,.markdown-content ol{margin:8px 0 10px;padding-left:21px}.markdown-content li+li{margin-top:4px}.markdown-content strong{color:#111;font-weight:650}.markdown-content a{color:#111;text-decoration-thickness:1px;text-underline-offset:2px}.markdown-content code{padding:2px 5px;border:1px solid #deded9;border-radius:5px;background:var(--surface-code);font-family:SFMono-Regular,Consolas,monospace;font-size:.9em}.markdown-content pre{overflow-x:auto;margin:12px 0;padding:12px;border:1px solid #deded9;border-radius:9px;background:var(--surface-code)}.markdown-content pre code{padding:0;border:0;background:transparent}.markdown-content blockquote{margin:12px 0;padding-left:13px;border-left:2px solid var(--accent);color:var(--text-muted)}.part-card{min-width:0;padding:12px;border:1px solid #e3e3de;border-radius:10px;color:#444440;background:#fbfbf9;font-size:12.5px}.reasoning summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer}.reasoning summary::-webkit-details-marker{display:none}.reasoning summary strong,.tool-heading strong{display:block;color:#181816;font-size:12.5px;font-weight:580}.reasoning summary small,.tool-heading small{display:block;margin-top:2px;color:var(--text-subtle);font-size:10.5px;line-height:1.4}.part-icon{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;border:1px solid #dfdfda;border-radius:7px;color:#444440;background:#f3f3f0}.part-icon svg{width:15px}.reasoning .chevron{width:15px;margin-left:auto;transition:transform .16s ease}.reasoning[open] .chevron{transform:rotate(90deg)}.part-body{margin:12px 0 1px 36px;padding-top:11px;border-top:1px solid #e8e8e3;color:#555550}.tool-heading{display:flex;align-items:center;gap:9px}.tool summary.tool-heading{list-style:none;cursor:pointer}.tool summary.tool-heading::-webkit-details-marker{display:none}.status-pill{margin-left:auto;padding:3px 7px;border-radius:999px;font-size:10px;line-height:1.4}.status-pill.running{color:#444440;background:#ecece8}.status-pill.complete{color:#166534;background:#edf7f0}.tool-chevron{width:15px;flex:0 0 15px;transition:transform .16s ease}.tool[open] .tool-chevron{transform:rotate(90deg)}.tool-body{margin-top:11px;padding-top:1px;border-top:1px solid #e8e8e3}.tool-section{display:grid;gap:5px;margin-top:11px}.tool-label{color:var(--text-subtle);font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}.part-card pre{overflow-x:auto;margin:0;padding:9px 10px;border:1px solid #e1e1dc;border-radius:7px;color:#333330;background:#f3f3f0;font-family:SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.55}.tool-error{margin:10px 0 0;color:var(--danger)}.thinking{display:flex;align-items:center;gap:4px;min-height:21px}.thinking i{width:5px;height:5px;border-radius:50%;background:#8a8a84;animation:thinking 1.2s ease-in-out infinite}.thinking i:nth-child(2){animation-delay:.12s}.thinking i:nth-child(3){animation-delay:.24s}.error-banner{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #f1c7c2;border-radius:9px;color:var(--danger);background:#fff3f1;font-size:12px}.error-banner svg{width:17px;flex:0 0 auto}.composer-area{padding:15px 18px 13px;border-top:1px solid var(--border-soft);background:#fff}.composer{display:flex;align-items:flex-end;gap:10px;padding:8px 8px 8px 14px;border:1px solid #d6d6d1;border-radius:12px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease}.composer-main{display:grid;min-width:0;flex:1;gap:7px}.composer-input{display:flex;min-width:0;align-items:flex-end;gap:8px}.composer:focus-within{border-color:#111;box-shadow:0 0 0 3px #11111112}.composer textarea{width:100%;min-height:37px;max-height:140px;padding:8px 0;resize:none;border:0;outline:0;color:var(--text);background:transparent;font-size:14px;line-height:1.45}.composer textarea::placeholder{color:#8a8a84}.composer textarea:disabled{cursor:not-allowed;opacity:.7}.attach-button{display:grid;width:32px;height:32px;flex:0 0 32px;margin-bottom:2px;place-items:center;border:1px solid #dcdcd7;border-radius:8px;color:#555550;background:#fbfbf9;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.attach-button:hover:not(:disabled){border-color:#aaa9a4;color:#111;background:#f2f2ef}.attach-button:disabled{cursor:not-allowed;opacity:.4}.attach-button svg{width:17px}.pending-files{display:flex;flex-wrap:wrap;gap:6px}.pending-file{display:flex;max-width:100%;align-items:center;gap:7px;padding:6px 7px;border:1px solid #deded9;border-radius:8px;color:#444440;background:#f7f7f4;font-size:11.5px}.pending-file.uploading{color:#686863}.pending-file svg{width:15px;flex:0 0 15px;color:#333330}.pending-file.is-image{padding:4px 7px 4px 4px}.pending-file-preview{width:28px;height:28px;flex:0 0 28px;border-radius:6px;object-fit:cover;background:#e6e6e1}.pending-file-name{overflow:hidden;max-width:220px;text-overflow:ellipsis;white-space:nowrap}.pending-file-size{color:#81817b;font-size:10.5px}.remove-file{display:grid;width:18px;height:18px;padding:0;place-items:center;border:0;border-radius:4px;color:#777771;background:transparent;font-size:15px;line-height:1;cursor:pointer}.remove-file:hover:not(:disabled){color:#fff;background:#111}.remove-file:disabled{cursor:not-allowed;opacity:.4}.file-spinner{width:12px;height:12px;flex:0 0 12px;border:1.5px solid #d2d2cd;border-top-color:#222;border-radius:50%;animation:spin .7s linear infinite}.file-error{margin:0;color:var(--danger);font-size:11.5px;line-height:1.5}.file-input{display:none}.send-button{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border:0;border-radius:9px;color:#fff;background:var(--accent);cursor:pointer;transition:background .16s ease,opacity .16s ease}.send-button:hover:not(:disabled){background:var(--accent-hover)}.send-button:disabled{cursor:not-allowed;opacity:.38}.send-button.stop{color:#333330;background:#ecece8}.send-button svg{width:18px}.composer-hint{display:flex;justify-content:space-between;gap:20px;padding:9px 4px 0;color:#85857f;font-size:10.5px}.demo-note{margin:15px 4px 0;color:#777771;font-size:11.5px;line-height:1.55;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap}@keyframes message-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes thinking{0%,70%,to{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}@keyframes pulse{0%,to{opacity:.45}50%{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 560px){.message-list{padding:18px 14px}.message-content{max-width:calc(100% - 42px)}.composer-area{padding:12px}.composer-hint span:first-child{display:none}.pending-file-name{max-width:150px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}', qxe = ".assistant-root[data-v-d26eb739]{position:fixed;z-index:2147483000;inset:0;pointer-events:none}.assistant-drawer[data-v-d26eb739]{--page-bg: #fff;--surface: #fff;--surface-raised: #f7f7f5;--surface-code: #f4f4f1;--border: #d9d9d5;--border-soft: #e7e7e3;--text: #111;--text-muted: #4f4f4b;--text-subtle: #73736e;--accent: #111;--accent-hover: #2c2c29;--accent-soft: rgb(17 17 17 / 7%);--danger: #b42318;position:absolute;top:0;right:0;bottom:0;display:flex;width:min(var(--assistant-drawer-width, 520px),calc(100vw - 16px));min-width:min(360px,100vw);flex-direction:column;border-left:1px solid #d9d9d5;color:#111;background:#fff;box-shadow:-16px 0 48px #0000001f;pointer-events:auto;will-change:transform}.assistant-toolbar[data-v-d26eb739]{display:flex;min-height:64px;flex:0 0 64px;align-items:center;justify-content:space-between;gap:16px;padding:0 18px 0 20px;border-bottom:1px solid #ebebe7;background:#fff}.assistant-brand[data-v-d26eb739]{display:flex;min-width:0;align-items:center;gap:10px}.assistant-brand-mark[data-v-d26eb739]{display:grid;flex:0 0 auto;place-items:center;border-radius:9px;color:#fff;background:#111}.assistant-brand-mark[data-v-d26eb739]{width:32px;height:32px}.assistant-brand-mark svg[data-v-d26eb739]{width:17px}.assistant-brand-copy[data-v-d26eb739]{display:grid;min-width:0;gap:1px}.assistant-brand-copy strong[data-v-d26eb739]{overflow:hidden;color:#111;font-size:14px;font-weight:650;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.assistant-brand-copy small[data-v-d26eb739]{color:#85857f;font-size:10.5px;letter-spacing:.04em}.assistant-toolbar-actions[data-v-d26eb739]{display:flex;flex:0 0 auto;align-items:center;gap:12px}.assistant-new-session[data-v-d26eb739]{display:inline-flex;height:32px;align-items:center;gap:6px;padding:0 10px;border:1px solid #e1e1dd;border-radius:9px;color:#444;background:#fff;font-size:11.5px;cursor:pointer;transition:color .16s ease,border-color .16s ease,background .16s ease}.assistant-new-session[data-v-d26eb739]:hover{border-color:#bdbdb8;color:#111;background:#f5f5f2}.assistant-new-session svg[data-v-d26eb739]{width:14px}.assistant-status[data-v-d26eb739]{display:inline-flex;align-items:center;gap:6px;color:#777771;font-size:10.5px}.assistant-status i[data-v-d26eb739]{width:6px;height:6px;border-radius:50%;background:#a9a9a3}.assistant-status.running i[data-v-d26eb739]{background:#168447;box-shadow:0 0 0 3px #1684471a}.assistant-close[data-v-d26eb739]{display:grid;width:32px;height:32px;padding:0;place-items:center;border:1px solid #e1e1dd;border-radius:9px;color:#444;background:#fff;cursor:pointer;transition:color .16s ease,border-color .16s ease,background .16s ease}.assistant-close[data-v-d26eb739]:hover{border-color:#bdbdb8;color:#111;background:#f5f5f2}.assistant-close svg[data-v-d26eb739]{width:16px}.assistant-drawer-body[data-v-d26eb739]{display:flex;overflow:hidden;min-height:0;flex:1;flex-direction:column;padding:18px}.assistant-drawer-body[data-v-d26eb739] .chat-view{display:flex;min-height:0;flex:1;flex-direction:column}.assistant-drawer-body[data-v-d26eb739] .chat-header{display:none}.assistant-drawer-body[data-v-d26eb739] .chat-panel,.assistant-drawer-body[data-v-d26eb739] .message-list{min-height:0;flex:1}.assistant-drawer-body[data-v-d26eb739] .empty-state{margin-block:auto}.resize-handle[data-v-d26eb739]{position:absolute;z-index:2;top:0;bottom:0;left:-6px;width:12px;border:0;outline:0;cursor:col-resize;touch-action:none}.resize-handle span[data-v-d26eb739]{position:absolute;top:50%;left:4px;width:4px;height:44px;border:1px solid #e5e5e1;border-radius:999px;background:#fff;box-shadow:0 1px 4px #00000014;transform:translateY(-50%);transition:border-color .16s ease,background .16s ease}.resize-handle:hover span[data-v-d26eb739],.resize-handle:focus-visible span[data-v-d26eb739],.is-resizing .resize-handle span[data-v-d26eb739]{border-color:#111;background:#111}.assistant-button[data-v-d26eb739]{position:absolute;right:10px;bottom:24px;display:inline-flex;flex-shrink:0;align-items:center;gap:8px;padding:10px 18px;border:0;border-radius:999px;color:#fff;background:#1677ff;box-shadow:0 8px 20px #1677ff59;cursor:pointer;pointer-events:auto}.assistant-button .dot[data-v-d26eb739]{width:8px;height:8px;border-radius:50%;background:#ffccc7}.assistant-button .dot.ok[data-v-d26eb739]{background:#b7eb8f}.assistant-drawer-enter-active[data-v-d26eb739],.assistant-drawer-leave-active[data-v-d26eb739]{transition:transform .24s cubic-bezier(.22,1,.36,1)}.assistant-drawer-enter-from[data-v-d26eb739],.assistant-drawer-leave-to[data-v-d26eb739]{transform:translate(100%)}@media (max-width: 560px){.assistant-drawer[data-v-d26eb739]{width:100vw;min-width:0;border-left:0;box-shadow:none}.assistant-toolbar[data-v-d26eb739]{padding-inline:14px}.assistant-status[data-v-d26eb739]{display:none}.assistant-new-session[data-v-d26eb739]{width:32px;padding:0;justify-content:center}.assistant-new-session span[data-v-d26eb739]{display:none}.assistant-drawer-body[data-v-d26eb739]{padding:12px}.resize-handle[data-v-d26eb739]{display:none}.assistant-button[data-v-d26eb739]{right:8px;bottom:16px;padding:10px 14px}}@media (prefers-reduced-motion: reduce){.assistant-drawer-enter-active[data-v-d26eb739],.assistant-drawer-leave-active[data-v-d26eb739]{transition-duration:.01ms}}", Wxe = (e, t) => {
65583
65586
  const n = e.__vccOpts || e;
65584
65587
  for (const [r, o] of t)
65585
65588
  n[r] = o;
65586
65589
  return n;
65587
- }, Wxe = /* @__PURE__ */ qxe(Bxe, [["styles", [Uxe, Kxe]], ["__scopeId", "data-v-d26eb739"]]);
65588
- function Hxe(e) {
65590
+ }, Hxe = /* @__PURE__ */ Wxe(Uxe, [["styles", [Kxe, qxe]], ["__scopeId", "data-v-d26eb739"]]);
65591
+ function Gxe(e) {
65589
65592
  return { ...e, kind: "agent-tool" };
65590
65593
  }
65591
- const NOe = Hxe, Gxe = Wxe;
65592
- function jOe() {
65593
- return /* @__PURE__ */ kJ(Gxe);
65594
+ const jOe = Gxe, Zxe = Hxe;
65595
+ function FOe() {
65596
+ return /* @__PURE__ */ kJ(Zxe);
65594
65597
  }
65595
65598
  export {
65596
65599
  Zne as A,
65597
- Hxe as B,
65600
+ Gxe as B,
65598
65601
  nhe as C,
65599
65602
  bxe as D,
65600
- NOe as E,
65603
+ jOe as E,
65601
65604
  Zye as F,
65602
- Yxe as G,
65605
+ Qxe as G,
65603
65606
  BC as I,
65604
65607
  wo as M,
65605
65608
  YP as R,
65606
65609
  jD as S,
65607
65610
  O as U,
65608
- Vxe as a,
65611
+ Yxe as a,
65609
65612
  Uo as b,
65610
65613
  Zo as c,
65611
65614
  As as d,
65612
65615
  _i as e,
65613
65616
  cP as f,
65614
- Gxe as g,
65615
- jOe as h,
65617
+ Zxe as g,
65618
+ FOe as h,
65616
65619
  dm as i,
65617
65620
  Ixe as j,
65618
65621
  dk as k,
@@ -65626,9 +65629,9 @@ export {
65626
65629
  E as s,
65627
65630
  Sl as t,
65628
65631
  hxe as u,
65629
- DOe as v,
65632
+ NOe as v,
65630
65633
  Zn as w,
65631
65634
  yxe as x,
65632
- Mxe as y,
65635
+ $xe as y,
65633
65636
  ub as z
65634
65637
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as t, D as n, k as s, I as i, F as o, g as r, R as A, l as d, h as l, y as E, j as T, m as c, B as g, E as p, v as I, q as L, x as O, u as _, z as m, G as R, t as f } from "./index-DFfwYP9V.js";
1
+ import { c as t, D as n, k as s, I as i, F as o, g as r, R as A, l as d, h as l, y as E, j as T, m as c, B as g, E as p, v as I, q as L, x as O, u as _, z as m, G as R, t as f } from "./index-0F_QrOIG.js";
2
2
  export {
3
3
  t as Agent,
4
4
  n as DEFAULT_AGENT_BFF_URL,
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,QAAQ,EAGT,MAAM,SAAS,CAAA;AAuBhB,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,WAAW,GAAG,kBAAkB,CAAA;CAC1C;AAED,MAAM,WAAW,mBAAoB,SAAQ,OAAO,CAAC,kBAAkB,CAAC;IACtE,GAAG,CAAC,EAAE,YAAY,CAAA;IAClB,KAAK,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC3C;AAED,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,MAAM,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,QAAQ,CAAA;IACd,OAAO,EAAE,WAAW,CAAA;IACpB,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,WAAW,CAAC,EAAE,QAAQ,EAAE,CAAA;IACxB,MAAM,EAAE,WAAW,CAAA;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAA;IAC7C,OAAO,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACnD;AA+KD;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,GAAE,mBAAwB,GAChC,YAAY,CAyOd"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,QAAQ,EAGT,MAAM,SAAS,CAAA;AAwBhB,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,WAAW,GAAG,kBAAkB,CAAA;CAC1C;AAED,MAAM,WAAW,mBAAoB,SAAQ,OAAO,CAAC,kBAAkB,CAAC;IACtE,GAAG,CAAC,EAAE,YAAY,CAAA;IAClB,KAAK,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC3C;AAED,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,MAAM,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,QAAQ,CAAA;IACd,OAAO,EAAE,WAAW,CAAA;IACpB,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,WAAW,CAAC,EAAE,QAAQ,EAAE,CAAA;IACxB,MAAM,EAAE,WAAW,CAAA;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAA;IAC7C,OAAO,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACnD;AA+KD;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,GAAE,mBAAwB,GAChC,YAAY,CA0Od"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Business tools can prepare data that a later edit tool consumes. The Agents
3
+ * SDK starts function tools from one model response concurrently by default,
4
+ * so a later tool may otherwise run before the context written by an earlier
5
+ * tool is available. Keep tool execution ordered within each Agent Run.
6
+ */
7
+ export declare const AGENT_TOOL_EXECUTION: Readonly<{
8
+ maxFunctionToolConcurrency: 1;
9
+ }>;
10
+ //# sourceMappingURL=toolExecution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolExecution.d.ts","sourceRoot":"","sources":["../src/toolExecution.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;EAE/B,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sepveneto/dnde-agent",
3
3
  "type": "module",
4
- "version": "0.2.0-beta.7",
4
+ "version": "0.2.0-beta.8",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",