vite-plugin-opencode-assistant 1.0.39 → 1.0.40

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.
Files changed (2) hide show
  1. package/lib/client.js +272 -272
  2. package/package.json +4 -4
package/lib/client.js CHANGED
@@ -1085,21 +1085,21 @@ function Tr(e, t, n = ae) {
1085
1085
  const y = d, $ = o === !0 ? 1 / 0 : o;
1086
1086
  d = () => yt(y(), $);
1087
1087
  }
1088
- const x = Kl(), D = () => {
1089
- c.stop(), x && x.active && Yo(x.effects, c);
1088
+ const O = Kl(), R = () => {
1089
+ c.stop(), O && O.active && Yo(O.effects, c);
1090
1090
  };
1091
1091
  if (i && t) {
1092
1092
  const y = t;
1093
1093
  t = (...$) => {
1094
- y(...$), D();
1094
+ y(...$), R();
1095
1095
  };
1096
1096
  }
1097
- let O = _ ? new Array(e.length).fill(Pn) : Pn;
1097
+ let A = _ ? new Array(e.length).fill(Pn) : Pn;
1098
1098
  const B = (y) => {
1099
1099
  if (!(!(c.flags & 1) || !c.dirty && !y))
1100
1100
  if (t) {
1101
1101
  const $ = c.run();
1102
- if (o || C || (_ ? $.some((N, j) => ut(N, O[j])) : ut($, O))) {
1102
+ if (o || C || (_ ? $.some((N, j) => ut(N, A[j])) : ut($, A))) {
1103
1103
  p && p();
1104
1104
  const N = Bt;
1105
1105
  Bt = c;
@@ -1107,10 +1107,10 @@ function Tr(e, t, n = ae) {
1107
1107
  const j = [
1108
1108
  $,
1109
1109
  // pass undefined as the old value when it's changed for the first time
1110
- O === Pn ? void 0 : _ && O[0] === Pn ? [] : O,
1110
+ A === Pn ? void 0 : _ && A[0] === Pn ? [] : A,
1111
1111
  m
1112
1112
  ];
1113
- O = $, a ? a(t, 3, j) : (
1113
+ A = $, a ? a(t, 3, j) : (
1114
1114
  // @ts-expect-error
1115
1115
  t(...j)
1116
1116
  );
@@ -1130,7 +1130,7 @@ function Tr(e, t, n = ae) {
1130
1130
  for (const $ of y) $();
1131
1131
  Ln.delete(c);
1132
1132
  }
1133
- }, t ? s ? B(!0) : O = c.run() : l ? l(B.bind(null, !0), !0) : c.run(), D.pause = c.pause.bind(c), D.resume = c.resume.bind(c), D.stop = D, D;
1133
+ }, t ? s ? B(!0) : A = c.run() : l ? l(B.bind(null, !0), !0) : c.run(), R.pause = c.pause.bind(c), R.resume = c.resume.bind(c), R.stop = R, R;
1134
1134
  }
1135
1135
  function yt(e, t = 1 / 0, n) {
1136
1136
  if (t <= 0 || !ie(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t))
@@ -1397,9 +1397,9 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
1397
1397
  mc: c,
1398
1398
  pc: d,
1399
1399
  pbc: p,
1400
- o: { insert: m, querySelector: C, createText: _, createComment: x }
1401
- } = f, D = $t(t.props);
1402
- let { dynamicChildren: O } = t;
1400
+ o: { insert: m, querySelector: C, createText: _, createComment: O }
1401
+ } = f, R = $t(t.props);
1402
+ let { dynamicChildren: A } = t;
1403
1403
  const B = (N, j, z) => {
1404
1404
  N.shapeFlag & 16 && c(
1405
1405
  N.children,
@@ -1426,7 +1426,7 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
1426
1426
  $(t);
1427
1427
  return;
1428
1428
  }
1429
- D && (B(t, n, j), un(t, !0)), y();
1429
+ R && (B(t, n, j), un(t, !0)), y();
1430
1430
  } else {
1431
1431
  t.el = e.el;
1432
1432
  const N = t.anchor = e.anchor, j = Lt.get(e);
@@ -1436,9 +1436,9 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
1436
1436
  }
1437
1437
  t.targetStart = e.targetStart;
1438
1438
  const z = t.target = e.target, ce = t.targetAnchor = e.targetAnchor, fe = $t(e.props), _e = fe ? n : z, Re = fe ? N : ce;
1439
- if (l === "svg" || io(z) ? l = "svg" : (l === "mathml" || lo(z)) && (l = "mathml"), O ? (p(
1439
+ if (l === "svg" || io(z) ? l = "svg" : (l === "mathml" || lo(z)) && (l = "mathml"), A ? (p(
1440
1440
  e.dynamicChildren,
1441
- O,
1441
+ A,
1442
1442
  _e,
1443
1443
  o,
1444
1444
  i,
@@ -1454,7 +1454,7 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
1454
1454
  l,
1455
1455
  r,
1456
1456
  !1
1457
- ), D)
1457
+ ), R)
1458
1458
  fe ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : kn(
1459
1459
  t,
1460
1460
  n,
@@ -1481,7 +1481,7 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
1481
1481
  f,
1482
1482
  1
1483
1483
  );
1484
- un(t, D);
1484
+ un(t, R);
1485
1485
  }
1486
1486
  },
1487
1487
  remove(e, t, n, { um: s, o: { remove: o } }, i) {
@@ -1498,13 +1498,13 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
1498
1498
  const C = Lt.get(e);
1499
1499
  if (C && (C.flags |= 8, Lt.delete(e), m = !1), d && (o(f), o(c)), i && o(a), l & 16)
1500
1500
  for (let _ = 0; _ < r.length; _++) {
1501
- const x = r[_];
1501
+ const O = r[_];
1502
1502
  s(
1503
- x,
1503
+ O,
1504
1504
  t,
1505
1505
  n,
1506
1506
  m,
1507
- !!x.dynamicChildren
1507
+ !!O.dynamicChildren
1508
1508
  );
1509
1509
  }
1510
1510
  },
@@ -1527,25 +1527,25 @@ function kn(e, t, n, { o: { insert: s }, m: o }, i = 2) {
1527
1527
  function Ir(e, t, n, s, o, i, {
1528
1528
  o: { nextSibling: l, parentNode: r, querySelector: a, insert: f, createText: c }
1529
1529
  }, d) {
1530
- function p(x, D) {
1531
- let O = D;
1532
- for (; O; ) {
1533
- if (O && O.nodeType === 8) {
1534
- if (O.data === "teleport start anchor")
1535
- t.targetStart = O;
1536
- else if (O.data === "teleport anchor") {
1537
- t.targetAnchor = O, x._lpa = t.targetAnchor && l(t.targetAnchor);
1530
+ function p(O, R) {
1531
+ let A = R;
1532
+ for (; A; ) {
1533
+ if (A && A.nodeType === 8) {
1534
+ if (A.data === "teleport start anchor")
1535
+ t.targetStart = A;
1536
+ else if (A.data === "teleport anchor") {
1537
+ t.targetAnchor = A, O._lpa = t.targetAnchor && l(t.targetAnchor);
1538
1538
  break;
1539
1539
  }
1540
1540
  }
1541
- O = l(O);
1541
+ A = l(A);
1542
1542
  }
1543
1543
  }
1544
- function m(x, D) {
1545
- D.anchor = d(
1546
- l(x),
1547
- D,
1548
- r(x),
1544
+ function m(O, R) {
1545
+ R.anchor = d(
1546
+ l(O),
1547
+ R,
1548
+ r(O),
1549
1549
  n,
1550
1550
  s,
1551
1551
  o,
@@ -1557,8 +1557,8 @@ function Ir(e, t, n, s, o, i, {
1557
1557
  a
1558
1558
  ), _ = $t(t.props);
1559
1559
  if (C) {
1560
- const x = C._lpa || C.firstChild;
1561
- t.shapeFlag & 16 && (_ ? (m(e, t), p(C, x), t.targetAnchor || ws(
1560
+ const O = C._lpa || C.firstChild;
1561
+ t.shapeFlag & 16 && (_ ? (m(e, t), p(C, O), t.targetAnchor || ws(
1562
1562
  C,
1563
1563
  t,
1564
1564
  c,
@@ -1566,8 +1566,8 @@ function Ir(e, t, n, s, o, i, {
1566
1566
  // if target is the same as the main view, insert anchors before current node
1567
1567
  // to avoid hydrating mismatch
1568
1568
  r(e) === C ? e : null
1569
- )) : (t.anchor = l(e), p(C, x), t.targetAnchor || ws(C, t, c, f), d(
1570
- x && l(x),
1569
+ )) : (t.anchor = l(e), p(C, O), t.targetAnchor || ws(C, t, c, f), d(
1570
+ O && l(O),
1571
1571
  t,
1572
1572
  C,
1573
1573
  n,
@@ -1615,9 +1615,9 @@ const $n = /* @__PURE__ */ new WeakMap();
1615
1615
  function pn(e, t, n, s, o = !1) {
1616
1616
  if (U(e)) {
1617
1617
  e.forEach(
1618
- (_, x) => pn(
1618
+ (_, O) => pn(
1619
1619
  _,
1620
- t && (U(t) ? t[x] : t),
1620
+ t && (U(t) ? t[O] : t),
1621
1621
  n,
1622
1622
  s,
1623
1623
  o
@@ -1629,7 +1629,7 @@ function pn(e, t, n, s, o = !1) {
1629
1629
  s.shapeFlag & 512 && s.type.__asyncResolved && s.component.subTree.component && pn(e, t, n, s.component.subTree);
1630
1630
  return;
1631
1631
  }
1632
- const i = s.shapeFlag & 4 ? ns(s.component) : s.el, l = o ? null : i, { i: r, r: a } = e, f = t && t.r, c = r.refs === ae ? r.refs = {} : r.refs, d = r.setupState, p = /* @__PURE__ */ Q(d), m = d === ae ? Ko : (_) => ro(c, _) ? !1 : ne(p, _), C = (_, x) => !(x && ro(c, x));
1632
+ const i = s.shapeFlag & 4 ? ns(s.component) : s.el, l = o ? null : i, { i: r, r: a } = e, f = t && t.r, c = r.refs === ae ? r.refs = {} : r.refs, d = r.setupState, p = /* @__PURE__ */ Q(d), m = d === ae ? Ko : (_) => ro(c, _) ? !1 : ne(p, _), C = (_, O) => !(O && ro(c, O));
1633
1633
  if (f != null && f !== a) {
1634
1634
  if (ao(t), ve(f))
1635
1635
  c[f] = null, m(f) && (d[f] = null);
@@ -1641,30 +1641,30 @@ function pn(e, t, n, s, o = !1) {
1641
1641
  if (te(a))
1642
1642
  Cn(a, r, 12, [l, c]);
1643
1643
  else {
1644
- const _ = ve(a), x = /* @__PURE__ */ Ee(a);
1645
- if (_ || x) {
1646
- const D = () => {
1644
+ const _ = ve(a), O = /* @__PURE__ */ Ee(a);
1645
+ if (_ || O) {
1646
+ const R = () => {
1647
1647
  if (e.f) {
1648
- const O = _ ? m(a) ? d[a] : c[a] : C() || !e.k ? a.value : c[e.k];
1648
+ const A = _ ? m(a) ? d[a] : c[a] : C() || !e.k ? a.value : c[e.k];
1649
1649
  if (o)
1650
- U(O) && Yo(O, i);
1651
- else if (U(O))
1652
- O.includes(i) || O.push(i);
1650
+ U(A) && Yo(A, i);
1651
+ else if (U(A))
1652
+ A.includes(i) || A.push(i);
1653
1653
  else if (_)
1654
1654
  c[a] = [i], m(a) && (d[a] = c[a]);
1655
1655
  else {
1656
1656
  const B = [i];
1657
1657
  C(a, e.k) && (a.value = B), e.k && (c[e.k] = B);
1658
1658
  }
1659
- } else _ ? (c[a] = l, m(a) && (d[a] = l)) : x && (C(a, e.k) && (a.value = l), e.k && (c[e.k] = l));
1659
+ } else _ ? (c[a] = l, m(a) && (d[a] = l)) : O && (C(a, e.k) && (a.value = l), e.k && (c[e.k] = l));
1660
1660
  };
1661
1661
  if (l) {
1662
- const O = () => {
1663
- D(), $n.delete(e);
1662
+ const A = () => {
1663
+ R(), $n.delete(e);
1664
1664
  };
1665
- O.id = -1, $n.set(e, O), ke(O, n);
1665
+ A.id = -1, $n.set(e, A), ke(A, n);
1666
1666
  } else
1667
- ao(e), D();
1667
+ ao(e), R();
1668
1668
  }
1669
1669
  }
1670
1670
  }
@@ -1997,12 +1997,12 @@ function co(e) {
1997
1997
  setupState: m,
1998
1998
  ctx: C,
1999
1999
  inheritAttrs: _
2000
- } = e, x = Bn(e);
2001
- let D, O;
2000
+ } = e, O = Bn(e);
2001
+ let R, A;
2002
2002
  try {
2003
2003
  if (n.shapeFlag & 4) {
2004
2004
  const y = o || s, $ = y;
2005
- D = ct(
2005
+ R = ct(
2006
2006
  f.call(
2007
2007
  $,
2008
2008
  y,
@@ -2012,10 +2012,10 @@ function co(e) {
2012
2012
  p,
2013
2013
  C
2014
2014
  )
2015
- ), O = r;
2015
+ ), A = r;
2016
2016
  } else {
2017
2017
  const y = t;
2018
- D = ct(
2018
+ R = ct(
2019
2019
  y.length > 1 ? y(
2020
2020
  d,
2021
2021
  { attrs: r, slots: l, emit: a }
@@ -2023,20 +2023,20 @@ function co(e) {
2023
2023
  d,
2024
2024
  null
2025
2025
  )
2026
- ), O = t.props ? r : Yr(r);
2026
+ ), A = t.props ? r : Yr(r);
2027
2027
  }
2028
2028
  } catch (y) {
2029
- vn.length = 0, Qn(y, e, 1), D = we(wt);
2029
+ vn.length = 0, Qn(y, e, 1), R = we(wt);
2030
2030
  }
2031
- let B = D;
2032
- if (O && _ !== !1) {
2033
- const y = Object.keys(O), { shapeFlag: $ } = B;
2034
- y.length && $ & 7 && (i && y.some(Kn) && (O = Xr(
2035
- O,
2031
+ let B = R;
2032
+ if (A && _ !== !1) {
2033
+ const y = Object.keys(A), { shapeFlag: $ } = B;
2034
+ y.length && $ & 7 && (i && y.some(Kn) && (A = Xr(
2035
+ A,
2036
2036
  i
2037
- )), B = Zt(B, O, !1, !0));
2037
+ )), B = Zt(B, A, !1, !0));
2038
2038
  }
2039
- return n.dirs && (B = Zt(B, null, !1, !0), B.dirs = B.dirs ? B.dirs.concat(n.dirs) : n.dirs), n.transition && $s(B, n.transition), D = B, Bn(x), D;
2039
+ return n.dirs && (B = Zt(B, null, !1, !0), B.dirs = B.dirs ? B.dirs.concat(n.dirs) : n.dirs), n.transition && $s(B, n.transition), R = B, Bn(O), R;
2040
2040
  }
2041
2041
  const Yr = (e) => {
2042
2042
  let t;
@@ -2241,12 +2241,12 @@ function ea(e, t, n = !1) {
2241
2241
  const d = i[f], p = l[c] = U(d) || te(d) ? { type: d } : tt({}, d), m = p.type;
2242
2242
  let C = !1, _ = !0;
2243
2243
  if (U(m))
2244
- for (let x = 0; x < m.length; ++x) {
2245
- const D = m[x], O = te(D) && D.name;
2246
- if (O === "Boolean") {
2244
+ for (let O = 0; O < m.length; ++O) {
2245
+ const R = m[O], A = te(R) && R.name;
2246
+ if (A === "Boolean") {
2247
2247
  C = !0;
2248
2248
  break;
2249
- } else O === "String" && (_ = !1);
2249
+ } else A === "String" && (_ = !1);
2250
2250
  }
2251
2251
  else
2252
2252
  C = te(m) && m.name === "Boolean";
@@ -2328,16 +2328,16 @@ function ia(e, t) {
2328
2328
  if (u === h)
2329
2329
  return;
2330
2330
  u && !rn(u, h) && (T = Ue(u), me(u, b, S, !0), u = null), h.patchFlag === -2 && (M = !1, h.dynamicChildren = null);
2331
- const { type: w, ref: W, shapeFlag: R } = h;
2331
+ const { type: w, ref: W, shapeFlag: D } = h;
2332
2332
  switch (w) {
2333
2333
  case ts:
2334
- x(u, h, g, T);
2334
+ O(u, h, g, T);
2335
2335
  break;
2336
2336
  case wt:
2337
- D(u, h, g, T);
2337
+ R(u, h, g, T);
2338
2338
  break;
2339
2339
  case mn:
2340
- u == null && O(h, g, T, P);
2340
+ u == null && A(h, g, T, P);
2341
2341
  break;
2342
2342
  case ue:
2343
2343
  Re(
@@ -2353,7 +2353,7 @@ function ia(e, t) {
2353
2353
  );
2354
2354
  break;
2355
2355
  default:
2356
- R & 1 ? $(
2356
+ D & 1 ? $(
2357
2357
  u,
2358
2358
  h,
2359
2359
  g,
@@ -2363,7 +2363,7 @@ function ia(e, t) {
2363
2363
  P,
2364
2364
  k,
2365
2365
  M
2366
- ) : R & 6 ? I(
2366
+ ) : D & 6 ? I(
2367
2367
  u,
2368
2368
  h,
2369
2369
  g,
@@ -2373,7 +2373,7 @@ function ia(e, t) {
2373
2373
  P,
2374
2374
  k,
2375
2375
  M
2376
- ) : (R & 64 || R & 128) && w.process(
2376
+ ) : (D & 64 || D & 128) && w.process(
2377
2377
  u,
2378
2378
  h,
2379
2379
  g,
@@ -2387,7 +2387,7 @@ function ia(e, t) {
2387
2387
  );
2388
2388
  }
2389
2389
  W != null && b ? pn(W, u && u.ref, S, h || u, !h) : W == null && u && u.ref != null && pn(u.ref, null, S, u, !0);
2390
- }, x = (u, h, g, T) => {
2390
+ }, O = (u, h, g, T) => {
2391
2391
  if (u == null)
2392
2392
  s(
2393
2393
  h.el = r(h.children),
@@ -2398,13 +2398,13 @@ function ia(e, t) {
2398
2398
  const b = h.el = u.el;
2399
2399
  h.children !== u.children && f(b, h.children);
2400
2400
  }
2401
- }, D = (u, h, g, T) => {
2401
+ }, R = (u, h, g, T) => {
2402
2402
  u == null ? s(
2403
2403
  h.el = a(h.children || ""),
2404
2404
  g,
2405
2405
  T
2406
2406
  ) : h.el = u.el;
2407
- }, O = (u, h, g, T) => {
2407
+ }, A = (u, h, g, T) => {
2408
2408
  [u.el, u.anchor] = C(
2409
2409
  u.children,
2410
2410
  h,
@@ -2453,13 +2453,13 @@ function ia(e, t) {
2453
2453
  }
2454
2454
  }, N = (u, h, g, T, b, S, P, k) => {
2455
2455
  let M, w;
2456
- const { props: W, shapeFlag: R, transition: E, dirs: F } = u;
2456
+ const { props: W, shapeFlag: D, transition: E, dirs: F } = u;
2457
2457
  if (M = u.el = l(
2458
2458
  u.type,
2459
2459
  S,
2460
2460
  W && W.is,
2461
2461
  W
2462
- ), R & 8 ? c(M, u.children) : R & 16 && z(
2462
+ ), D & 8 ? c(M, u.children) : D & 16 && z(
2463
2463
  u.children,
2464
2464
  M,
2465
2465
  null,
@@ -2517,9 +2517,9 @@ function ia(e, t) {
2517
2517
  const k = h.el = u.el;
2518
2518
  let { patchFlag: M, dynamicChildren: w, dirs: W } = h;
2519
2519
  M |= u.patchFlag & 16;
2520
- const R = u.props || ae, E = h.props || ae;
2520
+ const D = u.props || ae, E = h.props || ae;
2521
2521
  let F;
2522
- if (g && Ft(g, !1), (F = E.onVnodeBeforeUpdate) && lt(F, g, h, u), W && Nt(h, u, g, "beforeUpdate"), g && Ft(g, !0), (R.innerHTML && E.innerHTML == null || R.textContent && E.textContent == null) && c(k, ""), w ? fe(
2522
+ if (g && Ft(g, !1), (F = E.onVnodeBeforeUpdate) && lt(F, g, h, u), W && Nt(h, u, g, "beforeUpdate"), g && Ft(g, !0), (D.innerHTML && E.innerHTML == null || D.textContent && E.textContent == null) && c(k, ""), w ? fe(
2523
2523
  u.dynamicChildren,
2524
2524
  w,
2525
2525
  k,
@@ -2539,16 +2539,16 @@ function ia(e, t) {
2539
2539
  !1
2540
2540
  ), M > 0) {
2541
2541
  if (M & 16)
2542
- _e(k, R, E, g, b);
2543
- else if (M & 2 && R.class !== E.class && i(k, "class", null, E.class, b), M & 4 && i(k, "style", R.style, E.style, b), M & 8) {
2542
+ _e(k, D, E, g, b);
2543
+ else if (M & 2 && D.class !== E.class && i(k, "class", null, E.class, b), M & 4 && i(k, "style", D.style, E.style, b), M & 8) {
2544
2544
  const X = h.dynamicProps;
2545
2545
  for (let K = 0; K < X.length; K++) {
2546
- const Y = X[K], le = R[Y], de = E[Y];
2546
+ const Y = X[K], le = D[Y], de = E[Y];
2547
2547
  (de !== le || Y === "value") && i(k, Y, le, de, b, g);
2548
2548
  }
2549
2549
  }
2550
2550
  M & 1 && u.children !== h.children && c(k, h.children);
2551
- } else !P && w == null && _e(k, R, E, g, b);
2551
+ } else !P && w == null && _e(k, D, E, g, b);
2552
2552
  ((F = E.onVnodeUpdated) || W) && ke(() => {
2553
2553
  F && lt(F, g, h, u), W && Nt(h, u, g, "updated");
2554
2554
  }, T);
@@ -2601,7 +2601,7 @@ function ia(e, t) {
2601
2601
  }
2602
2602
  }, Re = (u, h, g, T, b, S, P, k, M) => {
2603
2603
  const w = h.el = u ? u.el : r(""), W = h.anchor = u ? u.anchor : r("");
2604
- let { patchFlag: R, dynamicChildren: E, slotScopeIds: F } = h;
2604
+ let { patchFlag: D, dynamicChildren: E, slotScopeIds: F } = h;
2605
2605
  F && (k = k ? k.concat(F) : F), u == null ? (s(w, g, T), s(W, g, T), z(
2606
2606
  // #10007
2607
2607
  // such fragment like `<></>` will be compiled into
@@ -2615,7 +2615,7 @@ function ia(e, t) {
2615
2615
  P,
2616
2616
  k,
2617
2617
  M
2618
- )) : R > 0 && R & 64 && E && // #2715 the previous fragment could've been a BAILed one as a result
2618
+ )) : D > 0 && D & 64 && E && // #2715 the previous fragment could've been a BAILed one as a result
2619
2619
  // of renderSlot() with no valid children
2620
2620
  u.dynamicChildren && u.dynamicChildren.length === E.length ? (fe(
2621
2621
  u.dynamicChildren,
@@ -2670,7 +2670,7 @@ function ia(e, t) {
2670
2670
  if (Fr(u) && (k.ctx.renderer = ot), ma(k, !1, P), k.asyncDep) {
2671
2671
  if (b && b.registerDep(k, G, P), !u.el) {
2672
2672
  const M = k.subTree = we(wt);
2673
- D(null, M, h, g), u.placeholder = M.el;
2673
+ R(null, M, h, g), u.placeholder = M.el;
2674
2674
  }
2675
2675
  } else
2676
2676
  G(
@@ -2695,11 +2695,11 @@ function ia(e, t) {
2695
2695
  }, G = (u, h, g, T, b, S, P) => {
2696
2696
  const k = () => {
2697
2697
  if (u.isMounted) {
2698
- let { next: R, bu: E, u: F, parent: X, vnode: K } = u;
2698
+ let { next: D, bu: E, u: F, parent: X, vnode: K } = u;
2699
2699
  {
2700
2700
  const Ke = Wi(u);
2701
2701
  if (Ke) {
2702
- R && (R.el = K.el, Oe(u, R, P)), Ke.asyncDep.then(() => {
2702
+ D && (D.el = K.el, Oe(u, D, P)), Ke.asyncDep.then(() => {
2703
2703
  ke(() => {
2704
2704
  u.isUnmounted || w();
2705
2705
  }, b);
@@ -2707,8 +2707,8 @@ function ia(e, t) {
2707
2707
  return;
2708
2708
  }
2709
2709
  }
2710
- let Y = R, le;
2711
- Ft(u, !1), R ? (R.el = K.el, Oe(u, R, P)) : R = K, E && os(E), (le = R.props && R.props.onVnodeBeforeUpdate) && lt(le, X, R, K), Ft(u, !0);
2710
+ let Y = D, le;
2711
+ Ft(u, !1), D ? (D.el = K.el, Oe(u, D, P)) : D = K, E && os(E), (le = D.props && D.props.onVnodeBeforeUpdate) && lt(le, X, D, K), Ft(u, !0);
2712
2712
  const de = co(u), Be = u.subTree;
2713
2713
  u.subTree = de, _(
2714
2714
  Be,
@@ -2720,14 +2720,14 @@ function ia(e, t) {
2720
2720
  u,
2721
2721
  b,
2722
2722
  S
2723
- ), R.el = de.el, Y === null && Jr(u, de.el), F && ke(F, b), (le = R.props && R.props.onVnodeUpdated) && ke(
2724
- () => lt(le, X, R, K),
2723
+ ), D.el = de.el, Y === null && Jr(u, de.el), F && ke(F, b), (le = D.props && D.props.onVnodeUpdated) && ke(
2724
+ () => lt(le, X, D, K),
2725
2725
  b
2726
2726
  );
2727
2727
  } else {
2728
- let R;
2728
+ let D;
2729
2729
  const { el: E, props: F } = h, { bm: X, m: K, parent: Y, root: le, type: de } = u, Be = Xt(h);
2730
- Ft(u, !1), X && os(X), !Be && (R = F && F.onVnodeBeforeMount) && lt(R, Y, h), Ft(u, !0);
2730
+ Ft(u, !1), X && os(X), !Be && (D = F && F.onVnodeBeforeMount) && lt(D, Y, h), Ft(u, !0);
2731
2731
  {
2732
2732
  le.ce && le.ce._hasShadowRoot() && le.ce._injectChildStyle(
2733
2733
  de,
@@ -2744,10 +2744,10 @@ function ia(e, t) {
2744
2744
  S
2745
2745
  ), h.el = Ke.el;
2746
2746
  }
2747
- if (K && ke(K, b), !Be && (R = F && F.onVnodeMounted)) {
2747
+ if (K && ke(K, b), !Be && (D = F && F.onVnodeMounted)) {
2748
2748
  const Ke = h;
2749
2749
  ke(
2750
- () => lt(R, Y, Ke),
2750
+ () => lt(D, Y, Ke),
2751
2751
  b
2752
2752
  );
2753
2753
  }
@@ -2764,12 +2764,12 @@ function ia(e, t) {
2764
2764
  const T = u.vnode.props;
2765
2765
  u.vnode = h, u.next = null, Qr(u, h.props, T, g), sa(u, h.children, g), Mt(), so(u), Pt();
2766
2766
  }, Ae = (u, h, g, T, b, S, P, k, M = !1) => {
2767
- const w = u && u.children, W = u ? u.shapeFlag : 0, R = h.children, { patchFlag: E, shapeFlag: F } = h;
2767
+ const w = u && u.children, W = u ? u.shapeFlag : 0, D = h.children, { patchFlag: E, shapeFlag: F } = h;
2768
2768
  if (E > 0) {
2769
2769
  if (E & 128) {
2770
2770
  ye(
2771
2771
  w,
2772
- R,
2772
+ D,
2773
2773
  g,
2774
2774
  T,
2775
2775
  b,
@@ -2782,7 +2782,7 @@ function ia(e, t) {
2782
2782
  } else if (E & 256) {
2783
2783
  Le(
2784
2784
  w,
2785
- R,
2785
+ D,
2786
2786
  g,
2787
2787
  T,
2788
2788
  b,
@@ -2794,9 +2794,9 @@ function ia(e, t) {
2794
2794
  return;
2795
2795
  }
2796
2796
  }
2797
- F & 8 ? (W & 16 && qe(w, b, S), R !== w && c(g, R)) : W & 16 ? F & 16 ? ye(
2797
+ F & 8 ? (W & 16 && qe(w, b, S), D !== w && c(g, D)) : W & 16 ? F & 16 ? ye(
2798
2798
  w,
2799
- R,
2799
+ D,
2800
2800
  g,
2801
2801
  T,
2802
2802
  b,
@@ -2805,7 +2805,7 @@ function ia(e, t) {
2805
2805
  k,
2806
2806
  M
2807
2807
  ) : qe(w, b, S, !0) : (W & 8 && c(g, ""), F & 16 && z(
2808
- R,
2808
+ D,
2809
2809
  g,
2810
2810
  T,
2811
2811
  b,
@@ -2816,9 +2816,9 @@ function ia(e, t) {
2816
2816
  ));
2817
2817
  }, Le = (u, h, g, T, b, S, P, k, M) => {
2818
2818
  u = u || Ut, h = h || Ut;
2819
- const w = u.length, W = h.length, R = Math.min(w, W);
2819
+ const w = u.length, W = h.length, D = Math.min(w, W);
2820
2820
  let E;
2821
- for (E = 0; E < R; E++) {
2821
+ for (E = 0; E < D; E++) {
2822
2822
  const F = h[E] = M ? vt(h[E]) : ct(h[E]);
2823
2823
  _(
2824
2824
  u[E],
@@ -2838,7 +2838,7 @@ function ia(e, t) {
2838
2838
  S,
2839
2839
  !0,
2840
2840
  !1,
2841
- R
2841
+ D
2842
2842
  ) : z(
2843
2843
  h,
2844
2844
  g,
@@ -2848,13 +2848,13 @@ function ia(e, t) {
2848
2848
  P,
2849
2849
  k,
2850
2850
  M,
2851
- R
2851
+ D
2852
2852
  );
2853
2853
  }, ye = (u, h, g, T, b, S, P, k, M) => {
2854
2854
  let w = 0;
2855
2855
  const W = h.length;
2856
- let R = u.length - 1, E = W - 1;
2857
- for (; w <= R && w <= E; ) {
2856
+ let D = u.length - 1, E = W - 1;
2857
+ for (; w <= D && w <= E; ) {
2858
2858
  const F = u[w], X = h[w] = M ? vt(h[w]) : ct(h[w]);
2859
2859
  if (rn(F, X))
2860
2860
  _(
@@ -2872,8 +2872,8 @@ function ia(e, t) {
2872
2872
  break;
2873
2873
  w++;
2874
2874
  }
2875
- for (; w <= R && w <= E; ) {
2876
- const F = u[R], X = h[E] = M ? vt(h[E]) : ct(h[E]);
2875
+ for (; w <= D && w <= E; ) {
2876
+ const F = u[D], X = h[E] = M ? vt(h[E]) : ct(h[E]);
2877
2877
  if (rn(F, X))
2878
2878
  _(
2879
2879
  F,
@@ -2888,9 +2888,9 @@ function ia(e, t) {
2888
2888
  );
2889
2889
  else
2890
2890
  break;
2891
- R--, E--;
2891
+ D--, E--;
2892
2892
  }
2893
- if (w > R) {
2893
+ if (w > D) {
2894
2894
  if (w <= E) {
2895
2895
  const F = E + 1, X = F < W ? h[F].el : T;
2896
2896
  for (; w <= E; )
@@ -2907,7 +2907,7 @@ function ia(e, t) {
2907
2907
  ), w++;
2908
2908
  }
2909
2909
  } else if (w > E)
2910
- for (; w <= R; )
2910
+ for (; w <= D; )
2911
2911
  me(u[w], b, S, !0), w++;
2912
2912
  else {
2913
2913
  const F = w, X = w, K = /* @__PURE__ */ new Map();
@@ -2920,7 +2920,7 @@ function ia(e, t) {
2920
2920
  let Be = !1, Ke = 0;
2921
2921
  const Tt = new Array(de);
2922
2922
  for (w = 0; w < de; w++) Tt[w] = 0;
2923
- for (w = F; w <= R; w++) {
2923
+ for (w = F; w <= D; w++) {
2924
2924
  const Me = u[w];
2925
2925
  if (le >= de) {
2926
2926
  me(Me, b, S, !0);
@@ -2982,8 +2982,8 @@ function ia(e, t) {
2982
2982
  }
2983
2983
  if (P === ue) {
2984
2984
  s(S, h, g);
2985
- for (let R = 0; R < M.length; R++)
2986
- ge(M[R], h, g, T);
2985
+ for (let D = 0; D < M.length; D++)
2986
+ ge(M[D], h, g, T);
2987
2987
  s(u.anchor, h, g);
2988
2988
  return;
2989
2989
  }
@@ -2995,13 +2995,13 @@ function ia(e, t) {
2995
2995
  if (T === 0)
2996
2996
  k.beforeEnter(S), s(S, h, g), ke(() => k.enter(S), b);
2997
2997
  else {
2998
- const { leave: R, delayLeave: E, afterLeave: F } = k, X = () => {
2998
+ const { leave: D, delayLeave: E, afterLeave: F } = k, X = () => {
2999
2999
  u.ctx.isUnmounted ? o(S) : s(S, h, g);
3000
3000
  }, K = () => {
3001
3001
  S._isLeaving && S[Nr](
3002
3002
  !0
3003
3003
  /* cancelled */
3004
- ), R(S, () => {
3004
+ ), D(S, () => {
3005
3005
  X(), F && F();
3006
3006
  });
3007
3007
  };
@@ -3017,12 +3017,12 @@ function ia(e, t) {
3017
3017
  children: M,
3018
3018
  dynamicChildren: w,
3019
3019
  shapeFlag: W,
3020
- patchFlag: R,
3020
+ patchFlag: D,
3021
3021
  dirs: E,
3022
3022
  cacheIndex: F,
3023
3023
  memo: X
3024
3024
  } = u;
3025
- if (R === -2 && (b = !1), k != null && (Mt(), pn(k, null, g, u, !0), Pt()), F != null && (h.renderCache[F] = void 0), W & 256) {
3025
+ if (D === -2 && (b = !1), k != null && (Mt(), pn(k, null, g, u, !0), Pt()), F != null && (h.renderCache[F] = void 0), W & 256) {
3026
3026
  h.ctx.deactivate(u);
3027
3027
  return;
3028
3028
  }
@@ -3047,13 +3047,13 @@ function ia(e, t) {
3047
3047
  // so that it doesn't take the fast path during unmount - otherwise
3048
3048
  // components nested in v-once are never unmounted.
3049
3049
  !w.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
3050
- (S !== ue || R > 0 && R & 64) ? qe(
3050
+ (S !== ue || D > 0 && D & 64) ? qe(
3051
3051
  w,
3052
3052
  h,
3053
3053
  g,
3054
3054
  !1,
3055
3055
  !0
3056
- ) : (S === ue && R & 384 || !b && W & 16) && qe(M, h, g), T && st(u);
3056
+ ) : (S === ue && D & 384 || !b && W & 16) && qe(M, h, g), T && st(u);
3057
3057
  }
3058
3058
  const de = X != null && F == null;
3059
3059
  (Y && (le = P && P.onVnodeUnmounted) || K || de) && ke(() => {
@@ -4170,9 +4170,9 @@ const ol = /* @__PURE__ */ Ve({
4170
4170
  handleToggleSelectMode: m,
4171
4171
  handleToggleTheme: C,
4172
4172
  handleClose: _,
4173
- handleToggleMinimize: x,
4174
- handleTogglePromptDock: D
4175
- } = en(), O = q(() => d.value === "split"), B = q(() => `主题: ${{
4173
+ handleToggleMinimize: O,
4174
+ handleTogglePromptDock: R
4175
+ } = en(), A = q(() => d.value === "split"), B = q(() => `主题: ${{
4176
4176
  auto: "自动",
4177
4177
  light: "亮色",
4178
4178
  dark: "暗色"
@@ -4180,7 +4180,7 @@ const ol = /* @__PURE__ */ Ve({
4180
4180
  auto: "自动跟随系统",
4181
4181
  light: "亮色主题",
4182
4182
  dark: "暗色主题"
4183
- }[r.value]}`), $ = { title: n, sessionListTitle: s, sessionListCollapsed: o, selectMode: i, selectEnabled: l, theme: r, resolvedTheme: a, minimized: f, promptDockVisible: c, mode: d, handleToggleSessionList: p, handleToggleSelectMode: m, handleToggleTheme: C, handleClose: _, handleToggleMinimize: x, handleTogglePromptDock: D, isSplitMode: O, themeIconTitle: B, themeIconLabel: y };
4183
+ }[r.value]}`), $ = { title: n, sessionListTitle: s, sessionListCollapsed: o, selectMode: i, selectEnabled: l, theme: r, resolvedTheme: a, minimized: f, promptDockVisible: c, mode: d, handleToggleSessionList: p, handleToggleSelectMode: m, handleToggleTheme: C, handleClose: _, handleToggleMinimize: O, handleTogglePromptDock: R, isSplitMode: A, themeIconTitle: B, themeIconLabel: y };
4184
4184
  return Object.defineProperty($, "__isScriptSetup", { enumerable: !1, value: !0 }), $;
4185
4185
  }
4186
4186
  }), oc = { class: "opencode-chat-header" }, ic = { class: "opencode-chat-header-left" }, lc = ["title", "aria-label", "aria-expanded"], rc = ["aria-pressed", "disabled"], ac = ["title", "aria-label"], cc = {
@@ -4441,14 +4441,14 @@ const il = /* @__PURE__ */ Ve({
4441
4441
  }, 200);
4442
4442
  });
4443
4443
  const m = q(() => !!(d.value || i.value));
4444
- function C(x) {
4445
- var D, O;
4446
- return !c?.value || !x ? !1 : (O = (D = c.value[x]) == null ? void 0 : D.thinking) != null ? O : !1;
4444
+ function C(O) {
4445
+ var R, A;
4446
+ return !c?.value || !O ? !1 : (A = (R = c.value[O]) == null ? void 0 : R.thinking) != null ? A : !1;
4447
4447
  }
4448
4448
  const _ = { collapsed: n, sessions: s, loadingSessionList: o, showSessionListSkeleton: i, handleCreateSession: l, handleSelectSession: r, handleDeleteSession: a, sessionKey: f, sessionStates: c, isAnimating: d, get animTimer() {
4449
4449
  return p;
4450
- }, set animTimer(x) {
4451
- p = x;
4450
+ }, set animTimer(O) {
4451
+ p = O;
4452
4452
  }, showSkeleton: m, isSessionThinking: C };
4453
4453
  return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
4454
4454
  }
@@ -4709,7 +4709,7 @@ const rl = /* @__PURE__ */ Ve(Uc(qc({}, {
4709
4709
  }), {
4710
4710
  __name: "ResizeHandle",
4711
4711
  props: {
4712
- width: { type: Number, required: !0, default: 500 },
4712
+ width: { type: Number, required: !1, default: 500 },
4713
4713
  minWidth: { type: Number, required: !1, default: 400 },
4714
4714
  maxWidth: { type: Number, required: !1, default: 800 }
4715
4715
  },
@@ -4784,9 +4784,9 @@ const al = /* @__PURE__ */ Ve(tu(eu({}, {
4784
4784
  "-animationOrigin.x": _.animationOrigin.x,
4785
4785
  "-animationOrigin.y": _.animationOrigin.y
4786
4786
  }));
4787
- const s = e, o = n, i = ki(), l = /* @__PURE__ */ L(null), r = (_, x) => {
4788
- var D;
4789
- (D = l.value) == null || D.sendMessageToIframe(_, x);
4787
+ const s = e, o = n, i = ki(), l = /* @__PURE__ */ L(null), r = (_, O) => {
4788
+ var R;
4789
+ (R = l.value) == null || R.sendMessageToIframe(_, O);
4790
4790
  };
4791
4791
  t({
4792
4792
  sendMessageToIframe: r,
@@ -5065,16 +5065,16 @@ const ul = /* @__PURE__ */ Ve(yu(_u({}, {
5065
5065
  (se, G) => Math.abs(se - J) < Math.abs(G - J) ? se : G
5066
5066
  ), C = () => {
5067
5067
  if (s.magnetic === "x")
5068
- if (D.value === "left")
5068
+ if (R.value === "left")
5069
5069
  l.value.x = p.value.left;
5070
- else if (D.value === "right")
5070
+ else if (R.value === "right")
5071
5071
  l.value.x = p.value.right;
5072
5072
  else {
5073
5073
  const I = m(
5074
5074
  [p.value.left, p.value.right],
5075
5075
  l.value.x
5076
5076
  );
5077
- l.value.x = I, D.value = I === p.value.left ? "left" : "right";
5077
+ l.value.x = I, R.value = I === p.value.left ? "left" : "right";
5078
5078
  }
5079
5079
  if (s.magnetic === "y") {
5080
5080
  const I = m(
@@ -5083,9 +5083,9 @@ const ul = /* @__PURE__ */ Ve(yu(_u({}, {
5083
5083
  );
5084
5084
  l.value.y = I;
5085
5085
  }
5086
- }, _ = /* @__PURE__ */ L(!1), x = /* @__PURE__ */ L(!1), D = /* @__PURE__ */ L(null), O = q(() => {
5086
+ }, _ = /* @__PURE__ */ L(!1), O = /* @__PURE__ */ L(!1), R = /* @__PURE__ */ L(null), A = q(() => {
5087
5087
  const I = {}, J = `${l.value.x}px`, se = `${l.value.y}px`;
5088
- return I.transform = `translate3d(${J}, ${se}, 0)`, _.value || !x.value ? I.transition = "none" : I.transition = "transform 0.3s ease", I;
5088
+ return I.transform = `translate3d(${J}, ${se}, 0)`, _.value || !O.value ? I.transition = "none" : I.transition = "transform 0.3s ease", I;
5089
5089
  }), B = () => {
5090
5090
  if (!i.value || typeof window > "u") return;
5091
5091
  const I = i.value.getBoundingClientRect(), { offset: J } = s;
@@ -5098,7 +5098,7 @@ const ul = /* @__PURE__ */ Ve(yu(_u({}, {
5098
5098
  y: G,
5099
5099
  width: I.width,
5100
5100
  height: I.height
5101
- }, !_.value && (s.magnetic === "x" && D.value ? D.value === "left" ? l.value.x = p.value.left : l.value.x = p.value.right : C(), l.value.x !== Le || l.value.y !== ye)) {
5101
+ }, !_.value && (s.magnetic === "x" && R.value ? R.value === "left" ? l.value.x = p.value.left : l.value.x = p.value.right : C(), l.value.x !== Le || l.value.y !== ye)) {
5102
5102
  const ge = { x: l.value.x, y: l.value.y };
5103
5103
  o("update:offset", ge), o("offset-change", ge);
5104
5104
  }
@@ -5142,7 +5142,7 @@ const ul = /* @__PURE__ */ Ve(yu(_u({}, {
5142
5142
  _.value = !1, document.body.classList.remove("floating-bubble-dragging"), I && !("touches" in I) && I.type === "mouseup" && (window.removeEventListener("mousemove", z), window.removeEventListener("mouseup", ce)), requestAnimationFrame(() => {
5143
5143
  if (s.magnetic === "x" && !y.isTap.value) {
5144
5144
  const J = l.value.x + l.value.width / 2, se = c.value / 2;
5145
- D.value = J < se ? "left" : "right";
5145
+ R.value = J < se ? "left" : "right";
5146
5146
  }
5147
5147
  if (C(), !y.isTap.value) {
5148
5148
  o("drag-end");
@@ -5157,7 +5157,7 @@ const ul = /* @__PURE__ */ Ve(yu(_u({}, {
5157
5157
  };
5158
5158
  Xe(() => {
5159
5159
  B(), requestAnimationFrame(() => {
5160
- x.value = !0;
5160
+ O.value = !0;
5161
5161
  }), typeof window < "u" && window.addEventListener("resize", _e), i.value && i.value.addEventListener("touchmove", z, {
5162
5162
  passive: !1
5163
5163
  });
@@ -5170,7 +5170,7 @@ const ul = /* @__PURE__ */ Ve(yu(_u({}, {
5170
5170
  ), t({
5171
5171
  offset: q(() => ({ x: l.value.x, y: l.value.y }))
5172
5172
  });
5173
- const Re = { props: s, emit: o, rootRef: i, state: l, isObject: r, gapX: a, gapY: f, windowWidth: c, windowHeight: d, boundary: p, closest: m, applyMagnetic: C, dragging: _, initialized: x, magneticSide: D, rootStyle: O, updateState: B, touch: y, get prevX() {
5173
+ const Re = { props: s, emit: o, rootRef: i, state: l, isObject: r, gapX: a, gapY: f, windowWidth: c, windowHeight: d, boundary: p, closest: m, applyMagnetic: C, dragging: _, initialized: O, magneticSide: R, rootStyle: A, updateState: B, touch: y, get prevX() {
5174
5174
  return $;
5175
5175
  }, set prevX(I) {
5176
5176
  $ = I;
@@ -5383,8 +5383,8 @@ function Mu(e) {
5383
5383
  const p = document.querySelector(".opencode-widget");
5384
5384
  let m = "#3b82f6", C = "rgba(59, 130, 246, 0.1)";
5385
5385
  if (p) {
5386
- const x = getComputedStyle(p);
5387
- m = x.getPropertyValue("--oc-primary").trim() || m, C = x.getPropertyValue("--oc-primary-bg").trim() || C;
5386
+ const O = getComputedStyle(p);
5387
+ m = O.getPropertyValue("--oc-primary").trim() || m, C = O.getPropertyValue("--oc-primary-bg").trim() || C;
5388
5388
  }
5389
5389
  d.style.border = `2px solid ${m}`, d.style.background = C;
5390
5390
  const _ = c.getBoundingClientRect();
@@ -5493,8 +5493,8 @@ function Ru(e) {
5493
5493
  (_ = e.onToggleSelectMode) == null || _.call(e, !1);
5494
5494
  return;
5495
5495
  }
5496
- const x = !e.open.value;
5497
- e.onToggle(x);
5496
+ const O = !e.open.value;
5497
+ e.onToggle(O);
5498
5498
  }
5499
5499
  function d() {
5500
5500
  e.onClose();
@@ -5507,8 +5507,8 @@ function Ru(e) {
5507
5507
  }
5508
5508
  function C() {
5509
5509
  var _;
5510
- const D = (ps.indexOf(e.theme.value) + 1) % ps.length, O = ps[D];
5511
- (_ = e.onToggleTheme) == null || _.call(e, O);
5510
+ const R = (ps.indexOf(e.theme.value) + 1) % ps.length, A = ps[R];
5511
+ (_ = e.onToggleTheme) == null || _.call(e, A);
5512
5512
  }
5513
5513
  return {
5514
5514
  buttonActive: r,
@@ -6175,21 +6175,21 @@ function ed(e) {
6175
6175
  height: "0px"
6176
6176
  }), s = /* @__PURE__ */ L(!1), o = /* @__PURE__ */ L({ top: "0px", left: "0px" }), i = /* @__PURE__ */ L({ description: "", fileInfo: "" }), l = 500;
6177
6177
  let r = null, a = "#3b82f6", f = "rgba(59, 130, 246, 0.1)";
6178
- function c(x) {
6179
- x.forEach((D) => {
6180
- D && (D.style.pointerEvents = "none");
6178
+ function c(O) {
6179
+ O.forEach((R) => {
6180
+ R && (R.style.pointerEvents = "none");
6181
6181
  });
6182
6182
  }
6183
- function d(x) {
6184
- x.forEach((D) => {
6185
- D && (D.style.pointerEvents = "");
6183
+ function d(O) {
6184
+ O.forEach((R) => {
6185
+ R && (R.style.pointerEvents = "");
6186
6186
  });
6187
6187
  }
6188
- function p(x) {
6188
+ function p(O) {
6189
6189
  if (!e.selectMode.value) return;
6190
- const D = document.querySelector(".opencode-element-highlight"), O = document.querySelector(".opencode-element-tooltip"), B = document.querySelector(".opencode-select-mode-hint"), y = document.querySelector(".floating-bubble"), $ = [D, O, B, y];
6190
+ const R = document.querySelector(".opencode-element-highlight"), A = document.querySelector(".opencode-element-tooltip"), B = document.querySelector(".opencode-select-mode-hint"), y = document.querySelector(".floating-bubble"), $ = [R, A, B, y];
6191
6191
  c($);
6192
- const N = Wo(x), j = Ho(x, N);
6192
+ const N = Wo(O), j = Ho(O, N);
6193
6193
  if (d($), N) {
6194
6194
  const z = document.querySelector(".opencode-widget");
6195
6195
  if (z) {
@@ -6226,13 +6226,13 @@ function ed(e) {
6226
6226
  }
6227
6227
  const m = p;
6228
6228
  function C() {
6229
- const x = window.__VUE_INSPECTOR__;
6230
- if (!x || x.__opencode_hooked) return;
6231
- const D = x.handleClick.bind(x);
6232
- x.handleClick = function(O) {
6229
+ const O = window.__VUE_INSPECTOR__;
6230
+ if (!O || O.__opencode_hooked) return;
6231
+ const R = O.handleClick.bind(O);
6232
+ O.handleClick = function(A) {
6233
6233
  if (e.selectMode.value) {
6234
- O.preventDefault(), O.stopPropagation();
6235
- const B = Wo(O), y = Ho(O, B);
6234
+ A.preventDefault(), A.stopPropagation();
6235
+ const B = Wo(A), y = Ho(A, B);
6236
6236
  if (B) {
6237
6237
  const $ = zf(B), N = jo(B), j = {
6238
6238
  filePath: y.file,
@@ -6245,15 +6245,15 @@ function ed(e) {
6245
6245
  }
6246
6246
  return;
6247
6247
  }
6248
- return D.call(x, O);
6249
- }, x.__opencode_hooked = !0;
6248
+ return R.call(O, A);
6249
+ }, O.__opencode_hooked = !0;
6250
6250
  }
6251
- function _(x) {
6252
- x.key === "Escape" && e.selectMode.value && (x.preventDefault(), x.stopPropagation(), e.onExitSelectMode());
6251
+ function _(O) {
6252
+ O.key === "Escape" && e.selectMode.value && (O.preventDefault(), O.stopPropagation(), e.onExitSelectMode());
6253
6253
  }
6254
- return ze(e.selectMode, (x) => {
6255
- const D = window.__VUE_INSPECTOR__;
6256
- x ? (D && D.enable(), document.addEventListener("mousemove", m), document.addEventListener("keydown", _, !0)) : (D && D.disable(), document.removeEventListener("mousemove", m), document.removeEventListener("keydown", _, !0), t.value = !1, s.value = !1);
6254
+ return ze(e.selectMode, (O) => {
6255
+ const R = window.__VUE_INSPECTOR__;
6256
+ O ? (R && R.enable(), document.addEventListener("mousemove", m), document.addEventListener("keydown", _, !0)) : (R && R.disable(), document.removeEventListener("mousemove", m), document.removeEventListener("keydown", _, !0), t.value = !1, s.value = !1);
6257
6257
  }), Xe(() => {
6258
6258
  window.__VUE_INSPECTOR__ ? C() : r = window.setInterval(() => {
6259
6259
  window.__VUE_INSPECTOR__ && (C(), r && (window.clearInterval(r), r = null));
@@ -6330,14 +6330,14 @@ const od = 1440;
6330
6330
  function id(e) {
6331
6331
  const t = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), n = q(() => {
6332
6332
  var c, d, p, m, C, _;
6333
- const x = e.splitMode.value || {};
6333
+ const O = e.splitMode.value || {};
6334
6334
  return {
6335
- width: (c = x.width) != null ? c : 500,
6336
- minWidth: (d = x.minWidth) != null ? d : 400,
6337
- maxWidth: (p = x.maxWidth) != null ? p : 800,
6338
- resizable: (m = x.resizable) != null ? m : !0,
6339
- shrinkPage: (C = x.shrinkPage) != null ? C : !0,
6340
- defaultOpen: (_ = x.defaultOpen) != null ? _ : !0
6335
+ width: (c = O.width) != null ? c : 500,
6336
+ minWidth: (d = O.minWidth) != null ? d : 400,
6337
+ maxWidth: (p = O.maxWidth) != null ? p : 800,
6338
+ resizable: (m = O.resizable) != null ? m : !0,
6339
+ shrinkPage: (C = O.shrinkPage) != null ? C : !0,
6340
+ defaultOpen: (_ = O.defaultOpen) != null ? _ : !0
6341
6341
  };
6342
6342
  }), s = /* @__PURE__ */ L(n.value.width), o = q(() => e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || t.value >= od ? "split" : "bubble"), i = q(() => o.value === "split"), l = (c) => {
6343
6343
  var d;
@@ -6410,28 +6410,28 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6410
6410
  },
6411
6411
  emits: ["update:open", "update:selectMode", "update:sessionListCollapsed", "update:currentSessionId", "update:selectedElements", "update:theme", "update:thinking", "update:splitPanelWidth", "toggle", "close", "toggle-session-list", "toggle-select-mode", "toggle-theme", "create-session", "select-session", "delete-session", "click-selected-node", "remove-selected-node", "clear-selected-nodes", "empty-action", "frame-loaded", "thinking-change", "split-panel-width-change"],
6412
6412
  setup(e, { expose: t, emit: n }) {
6413
- Zi((A) => ({
6413
+ Zi((x) => ({
6414
6414
  "-chatAnimationOrigin.x": Ie.value.x,
6415
6415
  "-chatAnimationOrigin.y": Ie.value.y
6416
6416
  }));
6417
6417
  const s = e, o = n, i = ki(), l = /* @__PURE__ */ L(""), r = /* @__PURE__ */ L(!1), a = /* @__PURE__ */ L("widget");
6418
6418
  let f = null;
6419
- const c = (A, Pe) => {
6419
+ const c = (x, Pe) => {
6420
6420
  const { duration: Ge = 3e3, mode: ht = "widget" } = Pe || {};
6421
- l.value = A, r.value = !0, a.value = ht, f && clearTimeout(f), f = setTimeout(() => {
6421
+ l.value = x, r.value = !0, a.value = ht, f && clearTimeout(f), f = setTimeout(() => {
6422
6422
  r.value = !1;
6423
6423
  }, Ge);
6424
6424
  }, d = /* @__PURE__ */ L(!1), p = /* @__PURE__ */ L("");
6425
6425
  let m = null;
6426
- const C = (A) => (p.value = A, d.value = !0, new Promise((Pe) => {
6426
+ const C = (x) => (p.value = x, d.value = !0, new Promise((Pe) => {
6427
6427
  m = Pe;
6428
6428
  })), _ = () => {
6429
6429
  d.value = !1, m && m(!0);
6430
- }, x = () => {
6430
+ }, O = () => {
6431
6431
  d.value = !1, m && m(!1);
6432
- }, D = /* @__PURE__ */ L(null), O = /* @__PURE__ */ L(null), B = (A, Pe) => {
6432
+ }, R = /* @__PURE__ */ L(null), A = /* @__PURE__ */ L(null), B = (x, Pe) => {
6433
6433
  var Ge;
6434
- (Ge = D.value) == null || Ge.sendMessageToIframe(A, Pe);
6434
+ (Ge = R.value) == null || Ge.sendMessageToIframe(x, Pe);
6435
6435
  }, y = /* @__PURE__ */ L(s.sessionListCollapsed), $ = /* @__PURE__ */ L(!1), N = /* @__PURE__ */ L(!0), j = /* @__PURE__ */ L(!0), z = /* @__PURE__ */ L(!1), ce = /* @__PURE__ */ L(s.splitPanelWidth), fe = () => {
6436
6436
  z.value && (B("prompt-dock-visibility-change", { visible: N.value }), B("minimize-state-change", { minimized: $.value }));
6437
6437
  }, _e = () => {
@@ -6443,13 +6443,13 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6443
6443
  sendMessageToIframe: B
6444
6444
  }), ze(
6445
6445
  () => s.sessionListCollapsed,
6446
- (A) => {
6447
- y.value = A;
6446
+ (x) => {
6447
+ y.value = x;
6448
6448
  }
6449
6449
  ), ze(
6450
6450
  () => s.splitPanelWidth,
6451
- (A) => {
6452
- ce.value = A;
6451
+ (x) => {
6452
+ ce.value = x;
6453
6453
  }
6454
6454
  );
6455
6455
  const {
@@ -6469,32 +6469,32 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6469
6469
  selectMode: /* @__PURE__ */ Z(s, "selectMode"),
6470
6470
  iframeSrc: /* @__PURE__ */ Z(s, "iframeSrc"),
6471
6471
  sessionListCollapsed: y,
6472
- onToggle: (A) => {
6473
- o("update:open", A), o("toggle", A);
6472
+ onToggle: (x) => {
6473
+ o("update:open", x), o("toggle", x);
6474
6474
  },
6475
- onToggleSelectMode: (A) => {
6476
- o("update:selectMode", A), o("toggle-select-mode", A);
6475
+ onToggleSelectMode: (x) => {
6476
+ o("update:selectMode", x), o("toggle-select-mode", x);
6477
6477
  },
6478
6478
  onClose: () => {
6479
6479
  o("update:open", !1), o("close");
6480
6480
  },
6481
- onToggleSessionList: (A) => {
6482
- y.value = A, o("update:sessionListCollapsed", A), o("toggle-session-list", A);
6481
+ onToggleSessionList: (x) => {
6482
+ y.value = x, o("update:sessionListCollapsed", x), o("toggle-session-list", x);
6483
6483
  },
6484
6484
  onEmptyAction: () => {
6485
6485
  o("empty-action");
6486
6486
  },
6487
- onToggleTheme: (A) => {
6488
- o("update:theme", A), o("toggle-theme", A);
6487
+ onToggleTheme: (x) => {
6488
+ o("update:theme", x), o("toggle-theme", x);
6489
6489
  }
6490
6490
  }), { sessionItems: me, handleCreateSession: st, handleDeleteSession: dt, handleSelectSession: Fe } = Du({
6491
6491
  sessions: /* @__PURE__ */ Z(s, "sessions"),
6492
6492
  currentSessionId: /* @__PURE__ */ Z(s, "currentSessionId"),
6493
6493
  onCreateSession: () => o("create-session"),
6494
- onSelectSession: (A) => {
6495
- o("update:currentSessionId", A.id), o("select-session", A);
6494
+ onSelectSession: (x) => {
6495
+ o("update:currentSessionId", x.id), o("select-session", x);
6496
6496
  },
6497
- onDeleteSession: (A) => o("delete-session", A),
6497
+ onDeleteSession: (x) => o("delete-session", x),
6498
6498
  showConfirmDialog: C
6499
6499
  }), {
6500
6500
  bubbleVisible: qe,
@@ -6507,13 +6507,13 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6507
6507
  } = Mu({
6508
6508
  selectMode: /* @__PURE__ */ Z(s, "selectMode"),
6509
6509
  selectedElements: /* @__PURE__ */ Z(s, "selectedElements"),
6510
- onToggleSelectMode: (A) => {
6511
- o("update:selectMode", A), o("toggle-select-mode", A);
6510
+ onToggleSelectMode: (x) => {
6511
+ o("update:selectMode", x), o("toggle-select-mode", x);
6512
6512
  },
6513
- onRemoveSelectedNode: (A) => {
6514
- o("remove-selected-node", A);
6513
+ onRemoveSelectedNode: (x) => {
6514
+ o("remove-selected-node", x);
6515
6515
  const Pe = [...s.selectedElements];
6516
- Pe.splice(A.index, 1), o("update:selectedElements", Pe);
6516
+ Pe.splice(x.index, 1), o("update:selectedElements", Pe);
6517
6517
  },
6518
6518
  onClearSelectedNodes: () => {
6519
6519
  o("clear-selected-nodes"), o("update:selectedElements", []);
@@ -6521,8 +6521,8 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6521
6521
  showConfirmDialog: C
6522
6522
  }), { highlightVisible: h, highlightStyle: g, tooltipVisible: T, tooltipStyle: b, tooltipContent: S } = ed({
6523
6523
  selectMode: /* @__PURE__ */ Z(s, "selectMode"),
6524
- onAddSelectedNode: (A) => {
6525
- o("click-selected-node", A);
6524
+ onAddSelectedNode: (x) => {
6525
+ o("click-selected-node", x);
6526
6526
  },
6527
6527
  onExitSelectMode: () => {
6528
6528
  o("update:selectMode", !1), o("toggle-select-mode", !1);
@@ -6532,17 +6532,17 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6532
6532
  isSplitMode: M,
6533
6533
  panelWidth: w,
6534
6534
  splitConfig: W,
6535
- handleResize: R,
6535
+ handleResize: D,
6536
6536
  handleToggle: E
6537
6537
  } = id({
6538
6538
  displayMode: /* @__PURE__ */ Z(s, "displayMode"),
6539
6539
  splitMode: /* @__PURE__ */ Z(s, "splitMode"),
6540
6540
  open: /* @__PURE__ */ Z(s, "open"),
6541
- onOpenChange: (A) => {
6542
- o("update:open", A), o("toggle", A);
6541
+ onOpenChange: (x) => {
6542
+ o("update:open", x), o("toggle", x);
6543
6543
  },
6544
- onWidthChange: (A) => {
6545
- ce.value = A, o("update:splitPanelWidth", A), o("split-panel-width-change", A);
6544
+ onWidthChange: (x) => {
6545
+ ce.value = x, o("update:splitPanelWidth", x), o("split-panel-width-change", x);
6546
6546
  }
6547
6547
  });
6548
6548
  sd({
@@ -6553,15 +6553,15 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6553
6553
  theme: /* @__PURE__ */ Z(s, "theme"),
6554
6554
  sessionListCollapsed: y,
6555
6555
  splitPanelWidth: ce,
6556
- onRestore: (A) => {
6557
- if (A.open !== void 0 && A.open !== s.open && (o("update:open", A.open), o("toggle", A.open)), A.minimized !== void 0 && ($.value = A.minimized), A.bubbleOffset !== void 0) {
6556
+ onRestore: (x) => {
6557
+ if (x.open !== void 0 && x.open !== s.open && (o("update:open", x.open), o("toggle", x.open)), x.minimized !== void 0 && ($.value = x.minimized), x.bubbleOffset !== void 0) {
6558
6558
  const ht = window.innerWidth - 44 - 10, Rt = window.innerHeight - 44 - 10;
6559
6559
  P.value = {
6560
- x: Math.max(10, Math.min(A.bubbleOffset.x, ht)),
6561
- y: Math.max(10, Math.min(A.bubbleOffset.y, Rt))
6560
+ x: Math.max(10, Math.min(x.bubbleOffset.x, ht)),
6561
+ y: Math.max(10, Math.min(x.bubbleOffset.y, Rt))
6562
6562
  };
6563
6563
  }
6564
- A.theme !== void 0 && A.theme !== s.theme && (o("update:theme", A.theme), o("toggle-theme", A.theme)), A.sessionListCollapsed !== void 0 && A.sessionListCollapsed !== s.sessionListCollapsed && (y.value = A.sessionListCollapsed, o("update:sessionListCollapsed", A.sessionListCollapsed)), A.promptDockVisible !== void 0 ? N.value = A.promptDockVisible : $.value && (N.value = !1), Si(() => {
6564
+ x.theme !== void 0 && x.theme !== s.theme && (o("update:theme", x.theme), o("toggle-theme", x.theme)), x.sessionListCollapsed !== void 0 && x.sessionListCollapsed !== s.sessionListCollapsed && (y.value = x.sessionListCollapsed, o("update:sessionListCollapsed", x.sessionListCollapsed)), x.promptDockVisible !== void 0 ? N.value = x.promptDockVisible : $.value && (N.value = !1), x.splitPanelWidth !== void 0 && x.splitPanelWidth !== s.splitPanelWidth && D(x.splitPanelWidth), Si(() => {
6565
6565
  fe(), setTimeout(() => {
6566
6566
  j.value = !1;
6567
6567
  }, 50);
@@ -6581,17 +6581,17 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6581
6581
  typeof window < "u" && window.removeEventListener("resize", le);
6582
6582
  });
6583
6583
  const de = q(() => {
6584
- var A, Pe, Ge, ht;
6584
+ var x, Pe, Ge, ht;
6585
6585
  if (typeof window > "u") return "bottom-right";
6586
- const Rt = K.value / 2, xt = Y.value / 2, pt = 44, Ye = (Pe = (A = O.value) == null ? void 0 : A.offset) != null ? Pe : P.value, It = ((Ge = Ye?.x) != null ? Ge : K.value - pt - 24) + pt / 2, it = ((ht = Ye?.y) != null ? ht : Y.value - pt - 24) + pt / 2;
6586
+ const Rt = K.value / 2, xt = Y.value / 2, pt = 44, Ye = (Pe = (x = A.value) == null ? void 0 : x.offset) != null ? Pe : P.value, It = ((Ge = Ye?.x) != null ? Ge : K.value - pt - 24) + pt / 2, it = ((ht = Ye?.y) != null ? ht : Y.value - pt - 24) + pt / 2;
6587
6587
  return It >= Rt && it >= xt ? "bottom-right" : It < Rt && it >= xt ? "bottom-left" : It >= Rt && it < xt ? "top-right" : "top-left";
6588
6588
  }), Be = q(() => {
6589
- const A = de.value;
6590
- return A === "top-right" || A === "bottom-right";
6589
+ const x = de.value;
6590
+ return x === "top-right" || x === "bottom-right";
6591
6591
  }), Ke = q(() => {
6592
- var A, Pe, Ge;
6592
+ var x, Pe, Ge;
6593
6593
  if (typeof window > "u") return {};
6594
- const ht = $.value ? 300 : 700, Rt = $.value ? 300 : Math.min(Y.value * 0.86, Y.value - 40), xt = 24, pt = 44, Ye = 20, It = (Ge = (Pe = (A = O.value) == null ? void 0 : A.offset) != null ? Pe : P.value) != null ? Ge : { x: K.value - pt - xt, y: Y.value - pt - xt }, it = {};
6594
+ const ht = $.value ? 300 : 700, Rt = $.value ? 300 : Math.min(Y.value * 0.86, Y.value - 40), xt = 24, pt = 44, Ye = 20, It = (Ge = (Pe = (x = A.value) == null ? void 0 : x.offset) != null ? Pe : P.value) != null ? Ge : { x: K.value - pt - xt, y: Y.value - pt - xt }, it = {};
6595
6595
  if (Be.value) {
6596
6596
  let Je = K.value - It.x + xt;
6597
6597
  const sn = Ye, on = K.value - ht - Ye;
@@ -6604,8 +6604,8 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6604
6604
  let nn = Y.value - It.y - pt;
6605
6605
  const Zs = Y.value - Rt - Ye;
6606
6606
  return nn > Zs && (nn = Zs), nn < Ye && (nn = Ye), it.bottom = `${nn}px`, it;
6607
- }), Tt = (A) => {
6608
- P.value = A;
6607
+ }), Tt = (x) => {
6608
+ P.value = x;
6609
6609
  }, On = () => {
6610
6610
  Ct.value = !0;
6611
6611
  }, Me = () => {
@@ -6654,8 +6654,8 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6654
6654
  bubbleOffset: P,
6655
6655
  mode: k,
6656
6656
  sessionStates: q(() => {
6657
- var A;
6658
- return (A = s.sessionStates) != null ? A : {};
6657
+ var x;
6658
+ return (x = s.sessionStates) != null ? x : {};
6659
6659
  }),
6660
6660
  iframeSource: J,
6661
6661
  buttonActive: Re,
@@ -6676,23 +6676,23 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6676
6676
  handleDeleteSession: dt,
6677
6677
  handleToggleSelectMode: u,
6678
6678
  handleClickSelectedNode: ot,
6679
- handleRemoveSelectedNode: (A) => tn(A.item, A.index, A.source),
6679
+ handleRemoveSelectedNode: (x) => tn(x.item, x.index, x.source),
6680
6680
  handleClearSelectedNodes: kt,
6681
6681
  handleFrameLoaded: _e,
6682
6682
  handleBubbleOffsetChange: Tt
6683
6683
  });
6684
6684
  const Js = { props: s, emit: o, slots: i, notificationMessage: l, notificationVisible: r, notificationMode: a, get notificationTimer() {
6685
6685
  return f;
6686
- }, set notificationTimer(A) {
6687
- f = A;
6686
+ }, set notificationTimer(x) {
6687
+ f = x;
6688
6688
  }, showNotification: c, dialogVisible: d, dialogMessage: p, get dialogResolve() {
6689
6689
  return m;
6690
- }, set dialogResolve(A) {
6691
- m = A;
6692
- }, showConfirmDialog: C, handleDialogConfirm: _, handleDialogCancel: x, frameRef: D, triggerRef: O, sendMessageToIframe: B, localSessionListCollapsed: y, minimized: $, promptDockVisible: N, isRestoring: j, iframeLoaded: z, splitPanelWidth: ce, syncStateToIframe: fe, handleFrameLoaded: _e, buttonActive: Re, containerClasses: I, iframeSource: J, sessionListTitle: se, resolvedTheme: G, handleClose: Oe, handleEmptyAction: Ae, handleToggle: Le, handleToggleSessionList: ye, handleToggleTheme: ge, sessionItems: me, handleCreateSession: st, handleDeleteSession: dt, handleSelectSession: Fe, bubbleVisible: qe, hasSelectedElements: Ue, selectedElementItems: Et, handleClearSelectedNodes: kt, handleClickSelectedNode: ot, handleRemoveSelectedNode: tn, handleToggleSelectMode: u, highlightVisible: h, highlightStyle: g, tooltipVisible: T, tooltipStyle: b, tooltipContent: S, bubbleOffset: P, effectiveMode: k, isSplitMode: M, panelWidth: w, splitConfig: W, handleResize: R, handleSplitToggle: E, handleToggleMinimize: F, handleTogglePromptDock: X, windowWidth: K, windowHeight: Y, handleWindowResize: le, bubbleQuadrant: de, isBubbleOnRightSide: Be, chatPositionStyle: Ke, handleBubbleOffsetChange: Tt, handleResizeStart: On, handleResizeEnd: Me, chatAnimationOrigin: Ie, isDragging: Ct, get wasOpenBeforeDrag() {
6690
+ }, set dialogResolve(x) {
6691
+ m = x;
6692
+ }, showConfirmDialog: C, handleDialogConfirm: _, handleDialogCancel: O, frameRef: R, triggerRef: A, sendMessageToIframe: B, localSessionListCollapsed: y, minimized: $, promptDockVisible: N, isRestoring: j, iframeLoaded: z, splitPanelWidth: ce, syncStateToIframe: fe, handleFrameLoaded: _e, buttonActive: Re, containerClasses: I, iframeSource: J, sessionListTitle: se, resolvedTheme: G, handleClose: Oe, handleEmptyAction: Ae, handleToggle: Le, handleToggleSessionList: ye, handleToggleTheme: ge, sessionItems: me, handleCreateSession: st, handleDeleteSession: dt, handleSelectSession: Fe, bubbleVisible: qe, hasSelectedElements: Ue, selectedElementItems: Et, handleClearSelectedNodes: kt, handleClickSelectedNode: ot, handleRemoveSelectedNode: tn, handleToggleSelectMode: u, highlightVisible: h, highlightStyle: g, tooltipVisible: T, tooltipStyle: b, tooltipContent: S, bubbleOffset: P, effectiveMode: k, isSplitMode: M, panelWidth: w, splitConfig: W, handleResize: D, handleSplitToggle: E, handleToggleMinimize: F, handleTogglePromptDock: X, windowWidth: K, windowHeight: Y, handleWindowResize: le, bubbleQuadrant: de, isBubbleOnRightSide: Be, chatPositionStyle: Ke, handleBubbleOffsetChange: Tt, handleResizeStart: On, handleResizeEnd: Me, chatAnimationOrigin: Ie, isDragging: Ct, get wasOpenBeforeDrag() {
6693
6693
  return Dt;
6694
- }, set wasOpenBeforeDrag(A) {
6695
- Dt = A;
6694
+ }, set wasOpenBeforeDrag(x) {
6695
+ Dt = x;
6696
6696
  }, handleDragStart: kl, handleDragEnd: Dl, ChatPanel: cu, SelectHint: du, Trigger: Tu };
6697
6697
  return Object.defineProperty(Js, "__isScriptSetup", { enumerable: !1, value: !0 }), Js;
6698
6698
  }
@@ -6943,12 +6943,12 @@ function Ml(e) {
6943
6943
  onError: a,
6944
6944
  onMessage: f
6945
6945
  } = e, c = /* @__PURE__ */ L(null), d = /* @__PURE__ */ L("idle"), p = /* @__PURE__ */ L(0);
6946
- function m(O) {
6946
+ function m(A) {
6947
6947
  try {
6948
- const B = JSON.parse(O.data);
6948
+ const B = JSON.parse(A.data);
6949
6949
  f?.(B);
6950
6950
  } catch {
6951
- f?.(O.data);
6951
+ f?.(A.data);
6952
6952
  }
6953
6953
  }
6954
6954
  function C() {
@@ -6962,7 +6962,7 @@ function Ml(e) {
6962
6962
  c.value = new EventSource(t), c.value.onopen = () => {
6963
6963
  d.value = "connected", p.value = 0, l?.();
6964
6964
  }, c.value.onmessage = m, c.value.onerror = () => {
6965
- const O = d.value === "connected";
6965
+ const A = d.value === "connected";
6966
6966
  d.value = "error", c.value?.close(), c.value = null;
6967
6967
  const B = new Error(`SSE connection error: ${t}`);
6968
6968
  if (a?.(B), p.value < o) {
@@ -6971,11 +6971,11 @@ function Ml(e) {
6971
6971
  setTimeout(() => {
6972
6972
  s?.value !== !1 && !c.value && C();
6973
6973
  }, y);
6974
- } else O && r?.();
6974
+ } else A && r?.();
6975
6975
  };
6976
- } catch (O) {
6976
+ } catch (A) {
6977
6977
  d.value = "error";
6978
- const B = O instanceof Error ? O : new Error(String(O));
6978
+ const B = A instanceof Error ? A : new Error(String(A));
6979
6979
  if (a?.(B), p.value < o) {
6980
6980
  p.value++;
6981
6981
  const y = i * p.value;
@@ -6989,10 +6989,10 @@ function Ml(e) {
6989
6989
  function _() {
6990
6990
  c.value && (c.value.close(), c.value = null, d.value = "disconnected", p.value = 0, r?.());
6991
6991
  }
6992
- function x() {
6992
+ function O() {
6993
6993
  _(), C();
6994
6994
  }
6995
- function D() {
6995
+ function R() {
6996
6996
  p.value = 0;
6997
6997
  }
6998
6998
  return n && s?.value !== !1 && C(), nt(() => {
@@ -7007,8 +7007,8 @@ function Ml(e) {
7007
7007
  // 方法
7008
7008
  connect: C,
7009
7009
  disconnect: _,
7010
- reconnect: x,
7011
- resetRetryCount: D
7010
+ reconnect: O,
7011
+ resetRetryCount: R
7012
7012
  };
7013
7013
  }
7014
7014
  function Od(e = {}) {
@@ -7146,18 +7146,18 @@ function Md(e) {
7146
7146
  function _(y) {
7147
7147
  delete l.value[y];
7148
7148
  }
7149
- function x() {
7149
+ function O() {
7150
7150
  l.value = {};
7151
7151
  }
7152
- function D(y) {
7152
+ function R(y) {
7153
7153
  return l.value[y];
7154
7154
  }
7155
- function O(y) {
7155
+ function A(y) {
7156
7156
  return l.value[y]?.thinking ?? !1;
7157
7157
  }
7158
7158
  function B(y) {
7159
7159
  return y.reduce(
7160
- ($, N) => ($[N] = O(N), $),
7160
+ ($, N) => ($[N] = A(N), $),
7161
7161
  {}
7162
7162
  );
7163
7163
  }
@@ -7175,9 +7175,9 @@ function Md(e) {
7175
7175
  connect: c.connect,
7176
7176
  disconnect: c.disconnect,
7177
7177
  clearSessionState: _,
7178
- clearAllSessionStates: x,
7179
- getSessionState: D,
7180
- isSessionThinking: O,
7178
+ clearAllSessionStates: O,
7179
+ getSessionState: R,
7180
+ isSessionThinking: A,
7181
7181
  getSessionsThinking: B
7182
7182
  };
7183
7183
  }
@@ -7447,7 +7447,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7447
7447
  proxyHost: p = "localhost",
7448
7448
  displayMode: m = "bubble",
7449
7449
  splitMode: C
7450
- } = t.config, _ = a, x = /* @__PURE__ */ L(C?.width ?? 500), D = q(() => `http://${p}:${d}`), O = (E, F) => {
7450
+ } = t.config, _ = a, O = /* @__PURE__ */ L(C?.width ?? 500), R = q(() => `http://${p}:${d}`), A = (E, F) => {
7451
7451
  l.value?.showNotification?.(E, F);
7452
7452
  }, {
7453
7453
  serviceStatus: B,
@@ -7468,7 +7468,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7468
7468
  deleteSession: me,
7469
7469
  selectSession: st,
7470
7470
  updateSessionInfo: dt
7471
- } = Pd({ showNotification: O }), { updateContext: Fe } = Id(B, fe), qe = Od({
7471
+ } = Pd({ showNotification: A }), { updateContext: Fe } = Id(B, fe), qe = Od({
7472
7472
  onStatusSync: (E) => {
7473
7473
  E.isStarted !== void 0 && E.isStarted && B.value === "idle" && ce(), E.task && z(E.task, E.errorType, E.errorMessage), B.value !== "idle" && ye();
7474
7474
  },
@@ -7478,7 +7478,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7478
7478
  onClearElements: () => Re(),
7479
7479
  onConnected: () => Fe(!0)
7480
7480
  }), Ue = Md({
7481
- proxyBaseUrl: D.value,
7481
+ proxyBaseUrl: R.value,
7482
7482
  currentSessionId: Oe,
7483
7483
  onConnected: () => {
7484
7484
  console.log("[OpenCode] Session SSE connected");
@@ -7490,9 +7490,9 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7490
7490
  r.value = !0;
7491
7491
  try {
7492
7492
  const F = await (await fetch("/__opencode_warmup__", { method: "POST" })).json();
7493
- F.success ? (y.value = !1, B.value = "ready", O("Chrome DevTools MCP 连接成功")) : F.errorType === "AI_TIMEOUT" ? O("AI 响应超时,请检查 OpenCode AI 模型配置") : F.errorType === "AI_RESPONSE_ERROR" ? O("AI 响应错误,请检查 OpenCode AI 模型配置") : F.errorType === "CHROME_NOT_CONNECTED" ? O("Chrome 远程调试未开启,请按照提示操作") : O(F.error || "重试失败,请确认 Chrome 远程调试已开启");
7493
+ F.success ? (y.value = !1, B.value = "ready", A("Chrome DevTools MCP 连接成功")) : F.errorType === "AI_TIMEOUT" ? A("AI 响应超时,请检查 OpenCode AI 模型配置") : F.errorType === "AI_RESPONSE_ERROR" ? A("AI 响应错误,请检查 OpenCode AI 模型配置") : F.errorType === "CHROME_NOT_CONNECTED" ? A("Chrome 远程调试未开启,请按照提示操作") : A(F.error || "重试失败,请确认 Chrome 远程调试已开启");
7494
7494
  } catch (E) {
7495
- console.error("[OpenCode] Retry warmup failed:", E), O("重试失败,请稍后再试");
7495
+ console.error("[OpenCode] Retry warmup failed:", E), A("重试失败,请稍后再试");
7496
7496
  } finally {
7497
7497
  r.value = !1;
7498
7498
  }
@@ -7508,7 +7508,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7508
7508
  qo(c, (E) => {
7509
7509
  E.preventDefault(), T(!n.value);
7510
7510
  }), qo("ctrl+p", (E) => {
7511
- E.preventDefault(), window.__VUE_INSPECTOR__ ? s.value = !s.value : O("Vue Inspector 未加载,无法使用元素选择功能");
7511
+ E.preventDefault(), window.__VUE_INSPECTOR__ ? s.value = !s.value : A("Vue Inspector 未加载,无法使用元素选择功能");
7512
7512
  }), ze(B, (E, F) => {
7513
7513
  E !== "idle" && F === "idle" && (qe.connect(), Ue.connect());
7514
7514
  }), Xe(() => {
@@ -7525,7 +7525,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7525
7525
  i.value = !0;
7526
7526
  const F = await g();
7527
7527
  if (i.value = !1, !F) {
7528
- O("服务启动失败");
7528
+ A("服务启动失败");
7529
7529
  return;
7530
7530
  }
7531
7531
  }
@@ -7538,9 +7538,9 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7538
7538
  };
7539
7539
  l.value?.sendMessageToIframe("OPENCODE_INSERT_FILE_PART", {
7540
7540
  element: F
7541
- }), O("节点已添加到对话框", { mode: "page" });
7541
+ }), A("节点已添加到对话框", { mode: "page" });
7542
7542
  }, S = () => {
7543
- Re(), Fe(!0), O("已清除所有选中元素");
7543
+ Re(), Fe(!0), A("已清除所有选中元素");
7544
7544
  }, P = (E) => {
7545
7545
  s.value = E, !E && !n.value && (n.value = !0);
7546
7546
  }, k = (E) => {
@@ -7548,10 +7548,10 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7548
7548
  }, M = (E) => {
7549
7549
  I.value = E;
7550
7550
  }, w = (E) => {
7551
- x.value = E;
7551
+ O.value = E;
7552
7552
  }, W = ({ index: E }) => {
7553
7553
  _e(E), Fe(!0);
7554
- }, R = () => {
7554
+ }, D = () => {
7555
7555
  Le.value = !1;
7556
7556
  };
7557
7557
  return (E, F) => (H(), ft(re(wd), {
@@ -7574,7 +7574,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7574
7574
  thinking: re(Et),
7575
7575
  "display-mode": re(m),
7576
7576
  "split-mode": re(C),
7577
- "split-panel-width": x.value,
7577
+ "split-panel-width": O.value,
7578
7578
  "onUpdate:open": T,
7579
7579
  "onUpdate:selectMode": P,
7580
7580
  "onUpdate:sessionListCollapsed": k,
@@ -7588,7 +7588,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7588
7588
  onClearSelectedNodes: S,
7589
7589
  onRemoveSelectedNode: W,
7590
7590
  onEmptyAction: re(ge),
7591
- onFrameLoaded: R
7591
+ onFrameLoaded: D
7592
7592
  }, {
7593
7593
  loading: he(() => [
7594
7594
  we(Fd, { "loading-text": u.value }, null, 8, ["loading-text"])