vite-plugin-opencode-assistant 1.0.43 → 1.0.44
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.
|
@@ -55,7 +55,13 @@ function useSessions(options) {
|
|
|
55
55
|
try {
|
|
56
56
|
const response = yield fetch(SESSIONS_API_PATH);
|
|
57
57
|
const data = yield response.json();
|
|
58
|
-
sessions.value = data.filter((s) =>
|
|
58
|
+
sessions.value = data.filter((s) => {
|
|
59
|
+
var _a2;
|
|
60
|
+
if (s.title === "__chrome_mcp_warmup__") return false;
|
|
61
|
+
if (s.parentID) return false;
|
|
62
|
+
if ((_a2 = s.time) == null ? void 0 : _a2.archived) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}).map((s) => {
|
|
59
65
|
var _a2;
|
|
60
66
|
return __spreadProps(__spreadValues({}, s), {
|
|
61
67
|
updatedAt: ((_a2 = s.time) == null ? void 0 : _a2.updated) || Date.now()
|
|
@@ -75,7 +75,13 @@ function useSessions(options) {
|
|
|
75
75
|
try {
|
|
76
76
|
const response = yield fetch(import_shared.SESSIONS_API_PATH);
|
|
77
77
|
const data = yield response.json();
|
|
78
|
-
sessions.value = data.filter((s) =>
|
|
78
|
+
sessions.value = data.filter((s) => {
|
|
79
|
+
var _a2;
|
|
80
|
+
if (s.title === "__chrome_mcp_warmup__") return false;
|
|
81
|
+
if (s.parentID) return false;
|
|
82
|
+
if ((_a2 = s.time) == null ? void 0 : _a2.archived) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}).map((s) => {
|
|
79
85
|
var _a2;
|
|
80
86
|
return __spreadProps(__spreadValues({}, s), {
|
|
81
87
|
updatedAt: ((_a2 = s.time) == null ? void 0 : _a2.updated) || Date.now()
|
package/lib/client.js
CHANGED
|
@@ -1057,8 +1057,8 @@ function Er(e, t = !1, n = Bt) {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
function Tr(e, t, n = ae) {
|
|
1059
1059
|
const { immediate: s, deep: o, once: i, scheduler: l, augmentJob: r, call: a } = n, f = (y) => o ? y : /* @__PURE__ */ We(y) || o === !1 || o === 0 ? yt(y, 1) : yt(y);
|
|
1060
|
-
let c, d, p, m,
|
|
1061
|
-
if (/* @__PURE__ */ Ee(e) ? (d = () => e.value,
|
|
1060
|
+
let c, d, p, m, E = !1, _ = !1;
|
|
1061
|
+
if (/* @__PURE__ */ Ee(e) ? (d = () => e.value, E = /* @__PURE__ */ We(e)) : /* @__PURE__ */ Wt(e) ? (d = () => f(e), E = !0) : U(e) ? (_ = !0, E = e.some((y) => /* @__PURE__ */ Wt(y) || /* @__PURE__ */ We(y)), d = () => e.map((y) => {
|
|
1062
1062
|
if (/* @__PURE__ */ Ee(y))
|
|
1063
1063
|
return y.value;
|
|
1064
1064
|
if (/* @__PURE__ */ Wt(y))
|
|
@@ -1099,7 +1099,7 @@ function Tr(e, t, n = ae) {
|
|
|
1099
1099
|
if (!(!(c.flags & 1) || !c.dirty && !y))
|
|
1100
1100
|
if (t) {
|
|
1101
1101
|
const B = c.run();
|
|
1102
|
-
if (o ||
|
|
1102
|
+
if (o || E || (_ ? B.some((I, j) => ut(I, x[j])) : ut(B, x))) {
|
|
1103
1103
|
p && p();
|
|
1104
1104
|
const I = Bt;
|
|
1105
1105
|
Bt = c;
|
|
@@ -1374,12 +1374,12 @@ function Pr(e, t, n = ae) {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
}
|
|
1376
1376
|
const c = $e;
|
|
1377
|
-
r.call = (m,
|
|
1377
|
+
r.call = (m, E, _) => St(m, c, E, _);
|
|
1378
1378
|
let d = !1;
|
|
1379
1379
|
i === "post" ? r.scheduler = (m) => {
|
|
1380
1380
|
ke(m, c && c.suspense);
|
|
1381
|
-
} : i !== "sync" && (d = !0, r.scheduler = (m,
|
|
1382
|
-
|
|
1381
|
+
} : i !== "sync" && (d = !0, r.scheduler = (m, E) => {
|
|
1382
|
+
E ? m() : Bs(m);
|
|
1383
1383
|
}), r.augmentJob = (m) => {
|
|
1384
1384
|
t && (m.flags |= 4), d && (m.flags |= 2, c && (m.id = c.uid, m.i = c));
|
|
1385
1385
|
};
|
|
@@ -1397,7 +1397,7 @@ 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:
|
|
1400
|
+
o: { insert: m, querySelector: E, createText: _, createComment: A }
|
|
1401
1401
|
} = f, D = $t(t.props);
|
|
1402
1402
|
let { dynamicChildren: x } = t;
|
|
1403
1403
|
const F = (I, j, V) => {
|
|
@@ -1412,7 +1412,7 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
|
|
|
1412
1412
|
a
|
|
1413
1413
|
);
|
|
1414
1414
|
}, y = (I = t) => {
|
|
1415
|
-
const j = $t(I.props), V = I.target = Ss(I.props,
|
|
1415
|
+
const j = $t(I.props), V = I.target = Ss(I.props, E), ce = ws(V, I, _, m);
|
|
1416
1416
|
V && (l !== "svg" && io(V) ? l = "svg" : l !== "mathml" && lo(V) && (l = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(V), j || (F(I, V, ce), un(I, !1)));
|
|
1417
1417
|
}, B = (I) => {
|
|
1418
1418
|
const j = () => {
|
|
@@ -1465,7 +1465,7 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
|
|
|
1465
1465
|
else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
|
|
1466
1466
|
const N = t.target = Ss(
|
|
1467
1467
|
t.props,
|
|
1468
|
-
|
|
1468
|
+
E
|
|
1469
1469
|
);
|
|
1470
1470
|
N && kn(
|
|
1471
1471
|
t,
|
|
@@ -1495,8 +1495,8 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
|
|
|
1495
1495
|
props: p
|
|
1496
1496
|
} = e;
|
|
1497
1497
|
let m = i || !$t(p);
|
|
1498
|
-
const
|
|
1499
|
-
if (
|
|
1498
|
+
const E = Lt.get(e);
|
|
1499
|
+
if (E && (E.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
1501
|
const A = r[_];
|
|
1502
1502
|
s(
|
|
@@ -1552,24 +1552,24 @@ function Ir(e, t, n, s, o, i, {
|
|
|
1552
1552
|
i
|
|
1553
1553
|
);
|
|
1554
1554
|
}
|
|
1555
|
-
const
|
|
1555
|
+
const E = t.target = Ss(
|
|
1556
1556
|
t.props,
|
|
1557
1557
|
a
|
|
1558
1558
|
), _ = $t(t.props);
|
|
1559
|
-
if (
|
|
1560
|
-
const A =
|
|
1561
|
-
t.shapeFlag & 16 && (_ ? (m(e, t), p(
|
|
1562
|
-
|
|
1559
|
+
if (E) {
|
|
1560
|
+
const A = E._lpa || E.firstChild;
|
|
1561
|
+
t.shapeFlag & 16 && (_ ? (m(e, t), p(E, A), t.targetAnchor || ws(
|
|
1562
|
+
E,
|
|
1563
1563
|
t,
|
|
1564
1564
|
c,
|
|
1565
1565
|
f,
|
|
1566
1566
|
// if target is the same as the main view, insert anchors before current node
|
|
1567
1567
|
// to avoid hydrating mismatch
|
|
1568
|
-
r(e) ===
|
|
1569
|
-
)) : (t.anchor = l(e), p(
|
|
1568
|
+
r(e) === E ? e : null
|
|
1569
|
+
)) : (t.anchor = l(e), p(E, A), t.targetAnchor || ws(E, t, c, f), d(
|
|
1570
1570
|
A && l(A),
|
|
1571
1571
|
t,
|
|
1572
|
-
|
|
1572
|
+
E,
|
|
1573
1573
|
n,
|
|
1574
1574
|
s,
|
|
1575
1575
|
o,
|
|
@@ -1629,13 +1629,13 @@ 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 ? Uo : (_) => ro(c, _) ? !1 : ne(p, _),
|
|
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 ? Uo : (_) => ro(c, _) ? !1 : ne(p, _), E = (_, A) => !(A && ro(c, A));
|
|
1633
1633
|
if (f != null && f !== a) {
|
|
1634
1634
|
if (ao(t), ve(f))
|
|
1635
1635
|
c[f] = null, m(f) && (d[f] = null);
|
|
1636
1636
|
else if (/* @__PURE__ */ Ee(f)) {
|
|
1637
1637
|
const _ = t;
|
|
1638
|
-
|
|
1638
|
+
E(f, _.k) && (f.value = null), _.k && (c[_.k] = null);
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
1641
|
if (te(a))
|
|
@@ -1645,7 +1645,7 @@ function pn(e, t, n, s, o = !1) {
|
|
|
1645
1645
|
if (_ || A) {
|
|
1646
1646
|
const D = () => {
|
|
1647
1647
|
if (e.f) {
|
|
1648
|
-
const x = _ ? m(a) ? d[a] : c[a] :
|
|
1648
|
+
const x = _ ? m(a) ? d[a] : c[a] : E() || !e.k ? a.value : c[e.k];
|
|
1649
1649
|
if (o)
|
|
1650
1650
|
U(x) && Yo(x, i);
|
|
1651
1651
|
else if (U(x))
|
|
@@ -1654,9 +1654,9 @@ function pn(e, t, n, s, o = !1) {
|
|
|
1654
1654
|
c[a] = [i], m(a) && (d[a] = c[a]);
|
|
1655
1655
|
else {
|
|
1656
1656
|
const F = [i];
|
|
1657
|
-
|
|
1657
|
+
E(a, e.k) && (a.value = F), e.k && (c[e.k] = F);
|
|
1658
1658
|
}
|
|
1659
|
-
} else _ ? (c[a] = l, m(a) && (d[a] = l)) : A && (
|
|
1659
|
+
} else _ ? (c[a] = l, m(a) && (d[a] = l)) : A && (E(a, e.k) && (a.value = l), e.k && (c[e.k] = l));
|
|
1660
1660
|
};
|
|
1661
1661
|
if (l) {
|
|
1662
1662
|
const x = () => {
|
|
@@ -1995,7 +1995,7 @@ function co(e) {
|
|
|
1995
1995
|
props: d,
|
|
1996
1996
|
data: p,
|
|
1997
1997
|
setupState: m,
|
|
1998
|
-
ctx:
|
|
1998
|
+
ctx: E,
|
|
1999
1999
|
inheritAttrs: _
|
|
2000
2000
|
} = e, A = Bn(e);
|
|
2001
2001
|
let D, x;
|
|
@@ -2010,7 +2010,7 @@ function co(e) {
|
|
|
2010
2010
|
d,
|
|
2011
2011
|
m,
|
|
2012
2012
|
p,
|
|
2013
|
-
|
|
2013
|
+
E
|
|
2014
2014
|
)
|
|
2015
2015
|
), x = r;
|
|
2016
2016
|
} else {
|
|
@@ -2127,11 +2127,11 @@ function Qr(e, t, n, s) {
|
|
|
2127
2127
|
if (ne(i, p))
|
|
2128
2128
|
m !== i[p] && (i[p] = m, f = !0);
|
|
2129
2129
|
else {
|
|
2130
|
-
const
|
|
2131
|
-
o[
|
|
2130
|
+
const E = Ze(p);
|
|
2131
|
+
o[E] = Cs(
|
|
2132
2132
|
a,
|
|
2133
2133
|
r,
|
|
2134
|
-
|
|
2134
|
+
E,
|
|
2135
2135
|
m,
|
|
2136
2136
|
e,
|
|
2137
2137
|
!1
|
|
@@ -2239,24 +2239,24 @@ function ea(e, t, n = !1) {
|
|
|
2239
2239
|
const c = Ze(f);
|
|
2240
2240
|
if (fo(c)) {
|
|
2241
2241
|
const d = i[f], p = l[c] = U(d) || te(d) ? { type: d } : tt({}, d), m = p.type;
|
|
2242
|
-
let
|
|
2242
|
+
let E = !1, _ = !0;
|
|
2243
2243
|
if (U(m))
|
|
2244
2244
|
for (let A = 0; A < m.length; ++A) {
|
|
2245
2245
|
const D = m[A], x = te(D) && D.name;
|
|
2246
2246
|
if (x === "Boolean") {
|
|
2247
|
-
|
|
2247
|
+
E = !0;
|
|
2248
2248
|
break;
|
|
2249
2249
|
} else x === "String" && (_ = !1);
|
|
2250
2250
|
}
|
|
2251
2251
|
else
|
|
2252
|
-
|
|
2252
|
+
E = te(m) && m.name === "Boolean";
|
|
2253
2253
|
p[
|
|
2254
2254
|
0
|
|
2255
2255
|
/* shouldCast */
|
|
2256
|
-
] =
|
|
2256
|
+
] = E, p[
|
|
2257
2257
|
1
|
|
2258
2258
|
/* shouldCastTrue */
|
|
2259
|
-
] = _, (
|
|
2259
|
+
] = _, (E || ne(p, "default")) && r.push(c);
|
|
2260
2260
|
}
|
|
2261
2261
|
}
|
|
2262
2262
|
const a = [l, r];
|
|
@@ -2323,28 +2323,28 @@ function ia(e, t) {
|
|
|
2323
2323
|
parentNode: d,
|
|
2324
2324
|
nextSibling: p,
|
|
2325
2325
|
setScopeId: m = At,
|
|
2326
|
-
insertStaticContent:
|
|
2327
|
-
} = e, _ = (u, h, g,
|
|
2326
|
+
insertStaticContent: E
|
|
2327
|
+
} = e, _ = (u, h, g, T = null, b = null, w = null, k = void 0, P = null, M = !!h.dynamicChildren) => {
|
|
2328
2328
|
if (u === h)
|
|
2329
2329
|
return;
|
|
2330
|
-
u && !rn(u, h) && (
|
|
2330
|
+
u && !rn(u, h) && (T = Ke(u), me(u, b, w, !0), u = null), h.patchFlag === -2 && (M = !1, h.dynamicChildren = null);
|
|
2331
2331
|
const { type: S, ref: H, shapeFlag: R } = h;
|
|
2332
2332
|
switch (S) {
|
|
2333
2333
|
case ts:
|
|
2334
|
-
A(u, h, g,
|
|
2334
|
+
A(u, h, g, T);
|
|
2335
2335
|
break;
|
|
2336
2336
|
case wt:
|
|
2337
|
-
D(u, h, g,
|
|
2337
|
+
D(u, h, g, T);
|
|
2338
2338
|
break;
|
|
2339
2339
|
case mn:
|
|
2340
|
-
u == null && x(h, g,
|
|
2340
|
+
u == null && x(h, g, T, k);
|
|
2341
2341
|
break;
|
|
2342
2342
|
case ue:
|
|
2343
2343
|
Re(
|
|
2344
2344
|
u,
|
|
2345
2345
|
h,
|
|
2346
2346
|
g,
|
|
2347
|
-
|
|
2347
|
+
T,
|
|
2348
2348
|
b,
|
|
2349
2349
|
w,
|
|
2350
2350
|
k,
|
|
@@ -2357,7 +2357,7 @@ function ia(e, t) {
|
|
|
2357
2357
|
u,
|
|
2358
2358
|
h,
|
|
2359
2359
|
g,
|
|
2360
|
-
|
|
2360
|
+
T,
|
|
2361
2361
|
b,
|
|
2362
2362
|
w,
|
|
2363
2363
|
k,
|
|
@@ -2367,7 +2367,7 @@ function ia(e, t) {
|
|
|
2367
2367
|
u,
|
|
2368
2368
|
h,
|
|
2369
2369
|
g,
|
|
2370
|
-
|
|
2370
|
+
T,
|
|
2371
2371
|
b,
|
|
2372
2372
|
w,
|
|
2373
2373
|
k,
|
|
@@ -2377,7 +2377,7 @@ function ia(e, t) {
|
|
|
2377
2377
|
u,
|
|
2378
2378
|
h,
|
|
2379
2379
|
g,
|
|
2380
|
-
|
|
2380
|
+
T,
|
|
2381
2381
|
b,
|
|
2382
2382
|
w,
|
|
2383
2383
|
k,
|
|
@@ -2387,48 +2387,48 @@ function ia(e, t) {
|
|
|
2387
2387
|
);
|
|
2388
2388
|
}
|
|
2389
2389
|
H != null && b ? pn(H, u && u.ref, w, h || u, !h) : H == null && u && u.ref != null && pn(u.ref, null, w, u, !0);
|
|
2390
|
-
}, A = (u, h, g,
|
|
2390
|
+
}, A = (u, h, g, T) => {
|
|
2391
2391
|
if (u == null)
|
|
2392
2392
|
s(
|
|
2393
2393
|
h.el = r(h.children),
|
|
2394
2394
|
g,
|
|
2395
|
-
|
|
2395
|
+
T
|
|
2396
2396
|
);
|
|
2397
2397
|
else {
|
|
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,
|
|
2401
|
+
}, D = (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
|
-
}, x = (u, h, g,
|
|
2408
|
-
[u.el, u.anchor] =
|
|
2407
|
+
}, x = (u, h, g, T) => {
|
|
2408
|
+
[u.el, u.anchor] = E(
|
|
2409
2409
|
u.children,
|
|
2410
2410
|
h,
|
|
2411
2411
|
g,
|
|
2412
|
-
|
|
2412
|
+
T,
|
|
2413
2413
|
u.el,
|
|
2414
2414
|
u.anchor
|
|
2415
2415
|
);
|
|
2416
|
-
}, F = ({ el: u, anchor: h }, g,
|
|
2416
|
+
}, F = ({ el: u, anchor: h }, g, T) => {
|
|
2417
2417
|
let b;
|
|
2418
2418
|
for (; u && u !== h; )
|
|
2419
|
-
b = p(u), s(u, g,
|
|
2420
|
-
s(h, g,
|
|
2419
|
+
b = p(u), s(u, g, T), u = b;
|
|
2420
|
+
s(h, g, T);
|
|
2421
2421
|
}, y = ({ el: u, anchor: h }) => {
|
|
2422
2422
|
let g;
|
|
2423
2423
|
for (; u && u !== h; )
|
|
2424
2424
|
g = p(u), o(u), u = g;
|
|
2425
2425
|
o(h);
|
|
2426
|
-
}, B = (u, h, g,
|
|
2426
|
+
}, B = (u, h, g, T, b, w, k, P, M) => {
|
|
2427
2427
|
if (h.type === "svg" ? k = "svg" : h.type === "math" && (k = "mathml"), u == null)
|
|
2428
2428
|
I(
|
|
2429
2429
|
h,
|
|
2430
2430
|
g,
|
|
2431
|
-
|
|
2431
|
+
T,
|
|
2432
2432
|
b,
|
|
2433
2433
|
w,
|
|
2434
2434
|
k,
|
|
@@ -2451,7 +2451,7 @@ function ia(e, t) {
|
|
|
2451
2451
|
S && S._endPatch();
|
|
2452
2452
|
}
|
|
2453
2453
|
}
|
|
2454
|
-
}, I = (u, h, g,
|
|
2454
|
+
}, I = (u, h, g, T, b, w, k, P) => {
|
|
2455
2455
|
let M, S;
|
|
2456
2456
|
const { props: H, shapeFlag: R, transition: W, dirs: C } = u;
|
|
2457
2457
|
if (M = u.el = l(
|
|
@@ -2463,28 +2463,28 @@ function ia(e, t) {
|
|
|
2463
2463
|
u.children,
|
|
2464
2464
|
M,
|
|
2465
2465
|
null,
|
|
2466
|
-
|
|
2466
|
+
T,
|
|
2467
2467
|
b,
|
|
2468
2468
|
us(u, w),
|
|
2469
2469
|
k,
|
|
2470
2470
|
P
|
|
2471
|
-
), C && Nt(u, null,
|
|
2471
|
+
), C && Nt(u, null, T, "created"), j(M, u, u.scopeId, k, T), H) {
|
|
2472
2472
|
for (const Y in H)
|
|
2473
|
-
Y !== "value" && !fn(Y) && i(M, Y, null, H[Y], w,
|
|
2474
|
-
"value" in H && i(M, "value", null, H.value, w), (S = H.onVnodeBeforeMount) && lt(S,
|
|
2473
|
+
Y !== "value" && !fn(Y) && i(M, Y, null, H[Y], w, T);
|
|
2474
|
+
"value" in H && i(M, "value", null, H.value, w), (S = H.onVnodeBeforeMount) && lt(S, T, u);
|
|
2475
2475
|
}
|
|
2476
|
-
C && Nt(u, null,
|
|
2476
|
+
C && Nt(u, null, T, "beforeMount");
|
|
2477
2477
|
const $ = la(b, W);
|
|
2478
2478
|
$ && W.beforeEnter(M), s(M, h, g), ((S = H && H.onVnodeMounted) || $ || C) && ke(() => {
|
|
2479
2479
|
try {
|
|
2480
|
-
S && lt(S,
|
|
2480
|
+
S && lt(S, T, u), $ && W.enter(M), C && Nt(u, null, T, "mounted");
|
|
2481
2481
|
} finally {
|
|
2482
2482
|
}
|
|
2483
2483
|
}, b);
|
|
2484
|
-
}, j = (u, h, g,
|
|
2485
|
-
if (g && m(u, g),
|
|
2486
|
-
for (let w = 0; w <
|
|
2487
|
-
m(u,
|
|
2484
|
+
}, j = (u, h, g, T, b) => {
|
|
2485
|
+
if (g && m(u, g), T)
|
|
2486
|
+
for (let w = 0; w < T.length; w++)
|
|
2487
|
+
m(u, T[w]);
|
|
2488
2488
|
if (b) {
|
|
2489
2489
|
let w = b.subTree;
|
|
2490
2490
|
if (h === w || zi(w.type) && (w.ssContent === h || w.ssFallback === h)) {
|
|
@@ -2498,7 +2498,7 @@ function ia(e, t) {
|
|
|
2498
2498
|
);
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
2501
|
-
}, V = (u, h, g,
|
|
2501
|
+
}, V = (u, h, g, T, b, w, k, P, M = 0) => {
|
|
2502
2502
|
for (let S = M; S < u.length; S++) {
|
|
2503
2503
|
const H = u[S] = P ? vt(u[S]) : ct(u[S]);
|
|
2504
2504
|
_(
|
|
@@ -2506,14 +2506,14 @@ function ia(e, t) {
|
|
|
2506
2506
|
H,
|
|
2507
2507
|
h,
|
|
2508
2508
|
g,
|
|
2509
|
-
|
|
2509
|
+
T,
|
|
2510
2510
|
b,
|
|
2511
2511
|
w,
|
|
2512
2512
|
k,
|
|
2513
2513
|
P
|
|
2514
2514
|
);
|
|
2515
2515
|
}
|
|
2516
|
-
}, ce = (u, h, g,
|
|
2516
|
+
}, ce = (u, h, g, T, b, w, k) => {
|
|
2517
2517
|
const P = h.el = u.el;
|
|
2518
2518
|
let { patchFlag: M, dynamicChildren: S, dirs: H } = h;
|
|
2519
2519
|
M |= u.patchFlag & 16;
|
|
@@ -2524,7 +2524,7 @@ function ia(e, t) {
|
|
|
2524
2524
|
S,
|
|
2525
2525
|
P,
|
|
2526
2526
|
g,
|
|
2527
|
-
|
|
2527
|
+
T,
|
|
2528
2528
|
us(h, b),
|
|
2529
2529
|
w
|
|
2530
2530
|
) : k || Ae(
|
|
@@ -2533,7 +2533,7 @@ function ia(e, t) {
|
|
|
2533
2533
|
P,
|
|
2534
2534
|
null,
|
|
2535
2535
|
g,
|
|
2536
|
-
|
|
2536
|
+
T,
|
|
2537
2537
|
us(h, b),
|
|
2538
2538
|
w,
|
|
2539
2539
|
!1
|
|
@@ -2551,8 +2551,8 @@ function ia(e, t) {
|
|
|
2551
2551
|
} else !k && S == null && _e(P, R, W, g, b);
|
|
2552
2552
|
((C = W.onVnodeUpdated) || H) && ke(() => {
|
|
2553
2553
|
C && lt(C, g, h, u), H && Nt(h, u, g, "updated");
|
|
2554
|
-
},
|
|
2555
|
-
}, fe = (u, h, g,
|
|
2554
|
+
}, T);
|
|
2555
|
+
}, fe = (u, h, g, T, b, w, k) => {
|
|
2556
2556
|
for (let P = 0; P < h.length; P++) {
|
|
2557
2557
|
const M = u[P], S = h[P], H = (
|
|
2558
2558
|
// oldVNode may be an errored async setup() component inside Suspense
|
|
@@ -2573,14 +2573,14 @@ function ia(e, t) {
|
|
|
2573
2573
|
S,
|
|
2574
2574
|
H,
|
|
2575
2575
|
null,
|
|
2576
|
-
|
|
2576
|
+
T,
|
|
2577
2577
|
b,
|
|
2578
2578
|
w,
|
|
2579
2579
|
k,
|
|
2580
2580
|
!0
|
|
2581
2581
|
);
|
|
2582
2582
|
}
|
|
2583
|
-
}, _e = (u, h, g,
|
|
2583
|
+
}, _e = (u, h, g, T, b) => {
|
|
2584
2584
|
if (h !== g) {
|
|
2585
2585
|
if (h !== ae)
|
|
2586
2586
|
for (const w in h)
|
|
@@ -2590,19 +2590,19 @@ function ia(e, t) {
|
|
|
2590
2590
|
h[w],
|
|
2591
2591
|
null,
|
|
2592
2592
|
b,
|
|
2593
|
-
|
|
2593
|
+
T
|
|
2594
2594
|
);
|
|
2595
2595
|
for (const w in g) {
|
|
2596
2596
|
if (fn(w)) continue;
|
|
2597
2597
|
const k = g[w], P = h[w];
|
|
2598
|
-
k !== P && w !== "value" && i(u, w, P, k, b,
|
|
2598
|
+
k !== P && w !== "value" && i(u, w, P, k, b, T);
|
|
2599
2599
|
}
|
|
2600
2600
|
"value" in g && i(u, "value", h.value, g.value, b);
|
|
2601
2601
|
}
|
|
2602
|
-
}, Re = (u, h, g,
|
|
2602
|
+
}, Re = (u, h, g, T, b, w, k, P, M) => {
|
|
2603
2603
|
const S = h.el = u ? u.el : r(""), H = h.anchor = u ? u.anchor : r("");
|
|
2604
2604
|
let { patchFlag: R, dynamicChildren: W, slotScopeIds: C } = h;
|
|
2605
|
-
C && (P = P ? P.concat(C) : C), u == null ? (s(S, g,
|
|
2605
|
+
C && (P = P ? P.concat(C) : C), u == null ? (s(S, g, T), s(H, g, T), V(
|
|
2606
2606
|
// #10007
|
|
2607
2607
|
// such fragment like `<></>` will be compiled into
|
|
2608
2608
|
// a fragment which doesn't have a children.
|
|
@@ -2645,26 +2645,26 @@ function ia(e, t) {
|
|
|
2645
2645
|
P,
|
|
2646
2646
|
M
|
|
2647
2647
|
);
|
|
2648
|
-
}, N = (u, h, g,
|
|
2648
|
+
}, N = (u, h, g, T, b, w, k, P, M) => {
|
|
2649
2649
|
h.slotScopeIds = P, u == null ? h.shapeFlag & 512 ? b.ctx.activate(
|
|
2650
2650
|
h,
|
|
2651
2651
|
g,
|
|
2652
|
-
|
|
2652
|
+
T,
|
|
2653
2653
|
k,
|
|
2654
2654
|
M
|
|
2655
2655
|
) : J(
|
|
2656
2656
|
h,
|
|
2657
2657
|
g,
|
|
2658
|
-
|
|
2658
|
+
T,
|
|
2659
2659
|
b,
|
|
2660
2660
|
w,
|
|
2661
2661
|
k,
|
|
2662
2662
|
M
|
|
2663
2663
|
) : se(u, h, M);
|
|
2664
|
-
}, J = (u, h, g,
|
|
2664
|
+
}, J = (u, h, g, T, b, w, k) => {
|
|
2665
2665
|
const P = u.component = ga(
|
|
2666
2666
|
u,
|
|
2667
|
-
|
|
2667
|
+
T,
|
|
2668
2668
|
b
|
|
2669
2669
|
);
|
|
2670
2670
|
if (Fr(u) && (P.ctx.renderer = ot), ma(P, !1, k), P.asyncDep) {
|
|
@@ -2683,16 +2683,16 @@ function ia(e, t) {
|
|
|
2683
2683
|
k
|
|
2684
2684
|
);
|
|
2685
2685
|
}, se = (u, h, g) => {
|
|
2686
|
-
const
|
|
2686
|
+
const T = h.component = u.component;
|
|
2687
2687
|
if (Gr(u, h, g))
|
|
2688
|
-
if (
|
|
2689
|
-
Oe(
|
|
2688
|
+
if (T.asyncDep && !T.asyncResolved) {
|
|
2689
|
+
Oe(T, h, g);
|
|
2690
2690
|
return;
|
|
2691
2691
|
} else
|
|
2692
|
-
|
|
2692
|
+
T.next = h, T.update();
|
|
2693
2693
|
else
|
|
2694
|
-
h.el = u.el,
|
|
2695
|
-
}, G = (u, h, g,
|
|
2694
|
+
h.el = u.el, T.vnode = h;
|
|
2695
|
+
}, G = (u, h, g, T, b, w, k) => {
|
|
2696
2696
|
const P = () => {
|
|
2697
2697
|
if (u.isMounted) {
|
|
2698
2698
|
let { next: R, bu: W, u: C, parent: $, vnode: Y } = u;
|
|
@@ -2738,7 +2738,7 @@ function ia(e, t) {
|
|
|
2738
2738
|
null,
|
|
2739
2739
|
Ue,
|
|
2740
2740
|
g,
|
|
2741
|
-
|
|
2741
|
+
T,
|
|
2742
2742
|
u,
|
|
2743
2743
|
b,
|
|
2744
2744
|
w
|
|
@@ -2751,7 +2751,7 @@ function ia(e, t) {
|
|
|
2751
2751
|
b
|
|
2752
2752
|
);
|
|
2753
2753
|
}
|
|
2754
|
-
(h.shapeFlag & 256 || X && Xt(X.vnode) && X.vnode.shapeFlag & 256) && u.a && ke(u.a, b), u.isMounted = !0, h = g =
|
|
2754
|
+
(h.shapeFlag & 256 || X && Xt(X.vnode) && X.vnode.shapeFlag & 256) && u.a && ke(u.a, b), u.isMounted = !0, h = g = T = null;
|
|
2755
2755
|
}
|
|
2756
2756
|
};
|
|
2757
2757
|
u.scope.on();
|
|
@@ -2761,9 +2761,9 @@ function ia(e, t) {
|
|
|
2761
2761
|
H.i = u, H.id = u.uid, M.scheduler = () => Bs(H), Ft(u, !0), S();
|
|
2762
2762
|
}, Oe = (u, h, g) => {
|
|
2763
2763
|
h.component = u;
|
|
2764
|
-
const
|
|
2765
|
-
u.vnode = h, u.next = null, Qr(u, h.props,
|
|
2766
|
-
}, Ae = (u, h, g,
|
|
2764
|
+
const T = u.vnode.props;
|
|
2765
|
+
u.vnode = h, u.next = null, Qr(u, h.props, T, g), sa(u, h.children, g), Mt(), so(u), Pt();
|
|
2766
|
+
}, Ae = (u, h, g, T, b, w, k, P, M = !1) => {
|
|
2767
2767
|
const S = u && u.children, H = u ? u.shapeFlag : 0, R = h.children, { patchFlag: W, shapeFlag: C } = h;
|
|
2768
2768
|
if (W > 0) {
|
|
2769
2769
|
if (W & 128) {
|
|
@@ -2771,7 +2771,7 @@ function ia(e, t) {
|
|
|
2771
2771
|
S,
|
|
2772
2772
|
R,
|
|
2773
2773
|
g,
|
|
2774
|
-
|
|
2774
|
+
T,
|
|
2775
2775
|
b,
|
|
2776
2776
|
w,
|
|
2777
2777
|
k,
|
|
@@ -2784,7 +2784,7 @@ function ia(e, t) {
|
|
|
2784
2784
|
S,
|
|
2785
2785
|
R,
|
|
2786
2786
|
g,
|
|
2787
|
-
|
|
2787
|
+
T,
|
|
2788
2788
|
b,
|
|
2789
2789
|
w,
|
|
2790
2790
|
k,
|
|
@@ -2798,7 +2798,7 @@ function ia(e, t) {
|
|
|
2798
2798
|
S,
|
|
2799
2799
|
R,
|
|
2800
2800
|
g,
|
|
2801
|
-
|
|
2801
|
+
T,
|
|
2802
2802
|
b,
|
|
2803
2803
|
w,
|
|
2804
2804
|
k,
|
|
@@ -2807,14 +2807,14 @@ function ia(e, t) {
|
|
|
2807
2807
|
) : qe(S, b, w, !0) : (H & 8 && c(g, ""), C & 16 && V(
|
|
2808
2808
|
R,
|
|
2809
2809
|
g,
|
|
2810
|
-
|
|
2810
|
+
T,
|
|
2811
2811
|
b,
|
|
2812
2812
|
w,
|
|
2813
2813
|
k,
|
|
2814
2814
|
P,
|
|
2815
2815
|
M
|
|
2816
2816
|
));
|
|
2817
|
-
}, Le = (u, h, g,
|
|
2817
|
+
}, Le = (u, h, g, T, b, w, k, P, M) => {
|
|
2818
2818
|
u = u || Kt, h = h || Kt;
|
|
2819
2819
|
const S = u.length, H = h.length, R = Math.min(S, H);
|
|
2820
2820
|
let W;
|
|
@@ -2842,7 +2842,7 @@ function ia(e, t) {
|
|
|
2842
2842
|
) : V(
|
|
2843
2843
|
h,
|
|
2844
2844
|
g,
|
|
2845
|
-
|
|
2845
|
+
T,
|
|
2846
2846
|
b,
|
|
2847
2847
|
w,
|
|
2848
2848
|
k,
|
|
@@ -2850,7 +2850,7 @@ function ia(e, t) {
|
|
|
2850
2850
|
M,
|
|
2851
2851
|
R
|
|
2852
2852
|
);
|
|
2853
|
-
}, ye = (u, h, g,
|
|
2853
|
+
}, ye = (u, h, g, T, b, w, k, P, M) => {
|
|
2854
2854
|
let S = 0;
|
|
2855
2855
|
const H = h.length;
|
|
2856
2856
|
let R = u.length - 1, W = H - 1;
|
|
@@ -2892,7 +2892,7 @@ function ia(e, t) {
|
|
|
2892
2892
|
}
|
|
2893
2893
|
if (S > R) {
|
|
2894
2894
|
if (S <= W) {
|
|
2895
|
-
const C = W + 1, $ = C < H ? h[C].el :
|
|
2895
|
+
const C = W + 1, $ = C < H ? h[C].el : T;
|
|
2896
2896
|
for (; S <= W; )
|
|
2897
2897
|
_(
|
|
2898
2898
|
null,
|
|
@@ -2952,7 +2952,7 @@ function ia(e, t) {
|
|
|
2952
2952
|
const Me = $ + S, Ie = h[Me], Ct = h[Me + 1], Dt = Me + 1 < H ? (
|
|
2953
2953
|
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
2954
2954
|
Ct.el || Hi(Ct)
|
|
2955
|
-
) :
|
|
2955
|
+
) : T;
|
|
2956
2956
|
Tt[S] === 0 ? _(
|
|
2957
2957
|
null,
|
|
2958
2958
|
Ie,
|
|
@@ -2966,14 +2966,14 @@ function ia(e, t) {
|
|
|
2966
2966
|
) : Be && (X < 0 || S !== On[X] ? ge(Ie, g, Dt, 2) : X--);
|
|
2967
2967
|
}
|
|
2968
2968
|
}
|
|
2969
|
-
}, ge = (u, h, g,
|
|
2969
|
+
}, ge = (u, h, g, T, b = null) => {
|
|
2970
2970
|
const { el: w, type: k, transition: P, children: M, shapeFlag: S } = u;
|
|
2971
2971
|
if (S & 6) {
|
|
2972
|
-
ge(u.component.subTree, h, g,
|
|
2972
|
+
ge(u.component.subTree, h, g, T);
|
|
2973
2973
|
return;
|
|
2974
2974
|
}
|
|
2975
2975
|
if (S & 128) {
|
|
2976
|
-
u.suspense.move(h, g,
|
|
2976
|
+
u.suspense.move(h, g, T);
|
|
2977
2977
|
return;
|
|
2978
2978
|
}
|
|
2979
2979
|
if (S & 64) {
|
|
@@ -2983,7 +2983,7 @@ function ia(e, t) {
|
|
|
2983
2983
|
if (k === ue) {
|
|
2984
2984
|
s(w, h, g);
|
|
2985
2985
|
for (let R = 0; R < M.length; R++)
|
|
2986
|
-
ge(M[R], h, g,
|
|
2986
|
+
ge(M[R], h, g, T);
|
|
2987
2987
|
s(u.anchor, h, g);
|
|
2988
2988
|
return;
|
|
2989
2989
|
}
|
|
@@ -2991,8 +2991,8 @@ function ia(e, t) {
|
|
|
2991
2991
|
F(u, h, g);
|
|
2992
2992
|
return;
|
|
2993
2993
|
}
|
|
2994
|
-
if (
|
|
2995
|
-
if (
|
|
2994
|
+
if (T !== 2 && S & 1 && P)
|
|
2995
|
+
if (T === 0)
|
|
2996
2996
|
P.beforeEnter(w), s(w, h, g), ke(() => P.enter(w), b);
|
|
2997
2997
|
else {
|
|
2998
2998
|
const { leave: R, delayLeave: W, afterLeave: C } = P, $ = () => {
|
|
@@ -3009,7 +3009,7 @@ function ia(e, t) {
|
|
|
3009
3009
|
}
|
|
3010
3010
|
else
|
|
3011
3011
|
s(w, h, g);
|
|
3012
|
-
}, me = (u, h, g,
|
|
3012
|
+
}, me = (u, h, g, T = !1, b = !1) => {
|
|
3013
3013
|
const {
|
|
3014
3014
|
type: w,
|
|
3015
3015
|
props: k,
|
|
@@ -3029,10 +3029,10 @@ function ia(e, t) {
|
|
|
3029
3029
|
const Y = H & 1 && W, X = !Xt(u);
|
|
3030
3030
|
let le;
|
|
3031
3031
|
if (X && (le = k && k.onVnodeBeforeUnmount) && lt(le, h, u), H & 6)
|
|
3032
|
-
Fe(u.component, g,
|
|
3032
|
+
Fe(u.component, g, T);
|
|
3033
3033
|
else {
|
|
3034
3034
|
if (H & 128) {
|
|
3035
|
-
u.suspense.unmount(g,
|
|
3035
|
+
u.suspense.unmount(g, T);
|
|
3036
3036
|
return;
|
|
3037
3037
|
}
|
|
3038
3038
|
Y && Nt(u, null, h, "beforeUnmount"), H & 64 ? u.type.remove(
|
|
@@ -3040,7 +3040,7 @@ function ia(e, t) {
|
|
|
3040
3040
|
h,
|
|
3041
3041
|
g,
|
|
3042
3042
|
ot,
|
|
3043
|
-
|
|
3043
|
+
T
|
|
3044
3044
|
) : S && // #5154
|
|
3045
3045
|
// when v-once is used inside a block, setBlockTracking(-1) marks the
|
|
3046
3046
|
// parent block with hasOnce: true
|
|
@@ -3053,16 +3053,16 @@ function ia(e, t) {
|
|
|
3053
3053
|
g,
|
|
3054
3054
|
!1,
|
|
3055
3055
|
!0
|
|
3056
|
-
) : (w === ue && R & 384 || !b && H & 16) && qe(M, h, g),
|
|
3056
|
+
) : (w === ue && R & 384 || !b && H & 16) && qe(M, h, g), T && st(u);
|
|
3057
3057
|
}
|
|
3058
3058
|
const de = $ != null && C == null;
|
|
3059
3059
|
(X && (le = k && k.onVnodeUnmounted) || Y || de) && ke(() => {
|
|
3060
3060
|
le && lt(le, h, u), Y && Nt(u, null, h, "unmounted"), de && (u.el = null);
|
|
3061
3061
|
}, g);
|
|
3062
3062
|
}, st = (u) => {
|
|
3063
|
-
const { type: h, el: g, anchor:
|
|
3063
|
+
const { type: h, el: g, anchor: T, transition: b } = u;
|
|
3064
3064
|
if (h === ue) {
|
|
3065
|
-
dt(g,
|
|
3065
|
+
dt(g, T);
|
|
3066
3066
|
return;
|
|
3067
3067
|
}
|
|
3068
3068
|
if (h === mn) {
|
|
@@ -3083,13 +3083,13 @@ function ia(e, t) {
|
|
|
3083
3083
|
g = p(u), o(u), u = g;
|
|
3084
3084
|
o(h);
|
|
3085
3085
|
}, Fe = (u, h, g) => {
|
|
3086
|
-
const { bum:
|
|
3087
|
-
ho(M), ho(S),
|
|
3086
|
+
const { bum: T, scope: b, job: w, subTree: k, um: P, m: M, a: S } = u;
|
|
3087
|
+
ho(M), ho(S), T && os(T), b.stop(), w && (w.flags |= 8, me(k, u, h, g)), P && ke(P, h), ke(() => {
|
|
3088
3088
|
u.isUnmounted = !0;
|
|
3089
3089
|
}, h);
|
|
3090
|
-
}, qe = (u, h, g,
|
|
3090
|
+
}, qe = (u, h, g, T = !1, b = !1, w = 0) => {
|
|
3091
3091
|
for (let k = w; k < u.length; k++)
|
|
3092
|
-
me(u[k], h, g,
|
|
3092
|
+
me(u[k], h, g, T, b);
|
|
3093
3093
|
}, Ke = (u) => {
|
|
3094
3094
|
if (u.shapeFlag & 6)
|
|
3095
3095
|
return Ke(u.component.subTree);
|
|
@@ -3100,8 +3100,8 @@ function ia(e, t) {
|
|
|
3100
3100
|
};
|
|
3101
3101
|
let Et = !1;
|
|
3102
3102
|
const kt = (u, h, g) => {
|
|
3103
|
-
let
|
|
3104
|
-
u == null ? h._vnode && (me(h._vnode, null, null, !0),
|
|
3103
|
+
let T;
|
|
3104
|
+
u == null ? h._vnode && (me(h._vnode, null, null, !0), T = h._vnode.component) : _(
|
|
3105
3105
|
h._vnode || null,
|
|
3106
3106
|
u,
|
|
3107
3107
|
h,
|
|
@@ -3109,7 +3109,7 @@ function ia(e, t) {
|
|
|
3109
3109
|
null,
|
|
3110
3110
|
null,
|
|
3111
3111
|
g
|
|
3112
|
-
), h._vnode = u, Et || (Et = !0, so(
|
|
3112
|
+
), h._vnode = u, Et || (Et = !0, so(T), Ti(), Et = !1);
|
|
3113
3113
|
}, ot = {
|
|
3114
3114
|
p: _,
|
|
3115
3115
|
um: me,
|
|
@@ -4031,9 +4031,9 @@ const sl = /* @__PURE__ */ Ve({
|
|
|
4031
4031
|
handleEmptyAction: f,
|
|
4032
4032
|
handleFrameLoaded: c
|
|
4033
4033
|
} = en();
|
|
4034
|
-
function d(m,
|
|
4034
|
+
function d(m, E) {
|
|
4035
4035
|
var _;
|
|
4036
|
-
(_ = n.value) != null && _.contentWindow && n.value.contentWindow.postMessage(Za({ type: m },
|
|
4036
|
+
(_ = n.value) != null && _.contentWindow && n.value.contentWindow.postMessage(Za({ type: m }, E), "*");
|
|
4037
4037
|
}
|
|
4038
4038
|
Xe(() => {
|
|
4039
4039
|
n.value && n.value.addEventListener("load", () => {
|
|
@@ -4168,7 +4168,7 @@ const ol = /* @__PURE__ */ Ve({
|
|
|
4168
4168
|
mode: d,
|
|
4169
4169
|
handleToggleSessionList: p,
|
|
4170
4170
|
handleToggleSelectMode: m,
|
|
4171
|
-
handleToggleTheme:
|
|
4171
|
+
handleToggleTheme: E,
|
|
4172
4172
|
handleClose: _,
|
|
4173
4173
|
handleToggleMinimize: A,
|
|
4174
4174
|
handleTogglePromptDock: D
|
|
@@ -4180,7 +4180,7 @@ const ol = /* @__PURE__ */ Ve({
|
|
|
4180
4180
|
auto: "自动跟随系统",
|
|
4181
4181
|
light: "亮色主题",
|
|
4182
4182
|
dark: "暗色主题"
|
|
4183
|
-
}[r.value]}`), B = { 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:
|
|
4183
|
+
}[r.value]}`), B = { 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: E, handleClose: _, handleToggleMinimize: A, handleTogglePromptDock: D, isSplitMode: x, themeIconTitle: F, themeIconLabel: y };
|
|
4184
4184
|
return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
|
|
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,7 +4441,7 @@ const il = /* @__PURE__ */ Ve({
|
|
|
4441
4441
|
}, 200);
|
|
4442
4442
|
});
|
|
4443
4443
|
const m = K(() => !!(d.value || i.value));
|
|
4444
|
-
function
|
|
4444
|
+
function E(A) {
|
|
4445
4445
|
var D, x;
|
|
4446
4446
|
return !c?.value || !A ? !1 : (x = (D = c.value[A]) == null ? void 0 : D.thinking) != null ? x : !1;
|
|
4447
4447
|
}
|
|
@@ -4449,7 +4449,7 @@ const il = /* @__PURE__ */ Ve({
|
|
|
4449
4449
|
return p;
|
|
4450
4450
|
}, set animTimer(A) {
|
|
4451
4451
|
p = A;
|
|
4452
|
-
}, showSkeleton: m, isSessionThinking:
|
|
4452
|
+
}, showSkeleton: m, isSessionThinking: E };
|
|
4453
4453
|
return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
|
|
4454
4454
|
}
|
|
4455
4455
|
}), bc = {
|
|
@@ -4720,7 +4720,7 @@ const rl = /* @__PURE__ */ Ve(Kc(qc({}, {
|
|
|
4720
4720
|
m.preventDefault(), i.value = !0, l.value = m.clientX, r.value = s.width, o("resize-start"), document.addEventListener("mousemove", f), document.addEventListener("mouseup", c);
|
|
4721
4721
|
}, f = (m) => {
|
|
4722
4722
|
if (!i.value) return;
|
|
4723
|
-
const
|
|
4723
|
+
const E = l.value - m.clientX, _ = Math.max(s.minWidth, Math.min(s.maxWidth, r.value + E));
|
|
4724
4724
|
o("resize", _);
|
|
4725
4725
|
}, c = () => {
|
|
4726
4726
|
i.value = !1, o("resize-end"), document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", c);
|
|
@@ -4811,8 +4811,8 @@ const al = /* @__PURE__ */ Ve(tu(eu({}, {
|
|
|
4811
4811
|
"no-transition": s.noTransition,
|
|
4812
4812
|
"split-mode": s.mode === "split"
|
|
4813
4813
|
}
|
|
4814
|
-
]),
|
|
4815
|
-
return Object.defineProperty(
|
|
4814
|
+
]), E = { props: s, emit: o, slots: i, frameRef: l, sendMessageToIframe: r, handleResizeStart: a, handleResize: f, handleResizeEnd: c, handleToggle: d, panelStyle: p, panelClasses: m, Frame: sc, Header: yc, SessionList: kc, SelectedNodes: $c, ResizeHandle: Yc };
|
|
4815
|
+
return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
|
|
4816
4816
|
}
|
|
4817
4817
|
})), nu = ["aria-expanded"], su = { class: "opencode-split-toggle-icon" }, ou = {
|
|
4818
4818
|
key: 0,
|
|
@@ -5063,7 +5063,7 @@ const ul = /* @__PURE__ */ Ve(yu(_u({}, {
|
|
|
5063
5063
|
left: a.value
|
|
5064
5064
|
})), m = (N, J) => N.reduce(
|
|
5065
5065
|
(se, G) => Math.abs(se - J) < Math.abs(G - J) ? se : G
|
|
5066
|
-
),
|
|
5066
|
+
), E = () => {
|
|
5067
5067
|
if (s.magnetic === "x")
|
|
5068
5068
|
if (D.value === "left")
|
|
5069
5069
|
l.value.x = p.value.left;
|
|
@@ -5098,7 +5098,7 @@ const ul = /* @__PURE__ */ Ve(yu(_u({}, {
|
|
|
5098
5098
|
y: G,
|
|
5099
5099
|
width: N.width,
|
|
5100
5100
|
height: N.height
|
|
5101
|
-
}, !_.value && (s.magnetic === "x" && D.value ? D.value === "left" ? l.value.x = p.value.left : l.value.x = p.value.right :
|
|
5101
|
+
}, !_.value && (s.magnetic === "x" && D.value ? D.value === "left" ? l.value.x = p.value.left : l.value.x = p.value.right : E(), 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
|
}
|
|
@@ -5144,7 +5144,7 @@ const ul = /* @__PURE__ */ Ve(yu(_u({}, {
|
|
|
5144
5144
|
const J = l.value.x + l.value.width / 2, se = c.value / 2;
|
|
5145
5145
|
D.value = J < se ? "left" : "right";
|
|
5146
5146
|
}
|
|
5147
|
-
if (
|
|
5147
|
+
if (E(), !y.isTap.value) {
|
|
5148
5148
|
o("drag-end");
|
|
5149
5149
|
const J = { x: l.value.x, y: l.value.y };
|
|
5150
5150
|
o("update:offset", J), (B !== J.x || I !== J.y) && o("offset-change", J);
|
|
@@ -5170,7 +5170,7 @@ const ul = /* @__PURE__ */ Ve(yu(_u({}, {
|
|
|
5170
5170
|
), t({
|
|
5171
5171
|
offset: K(() => ({ 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:
|
|
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: E, dragging: _, initialized: A, magneticSide: D, rootStyle: x, updateState: F, touch: y, get prevX() {
|
|
5174
5174
|
return B;
|
|
5175
5175
|
}, set prevX(N) {
|
|
5176
5176
|
B = N;
|
|
@@ -5227,8 +5227,8 @@ const fl = /* @__PURE__ */ Ve({
|
|
|
5227
5227
|
}), t({
|
|
5228
5228
|
offset: d
|
|
5229
5229
|
});
|
|
5230
|
-
const
|
|
5231
|
-
return Object.defineProperty(
|
|
5230
|
+
const E = { active: s, open: o, hotkeyLabel: i, thinking: l, resolvedTheme: r, handleToggle: a, bubbleOffset: f, handleBubbleOffsetChange: c, offset: d, emit: p, handleOffsetChange: m, FloatingBubble: Su };
|
|
5231
|
+
return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
|
|
5232
5232
|
}
|
|
5233
5233
|
}), wu = ["aria-expanded", "title"];
|
|
5234
5234
|
function Eu(e, t, n, s, o, i) {
|
|
@@ -5368,8 +5368,8 @@ function Mu(e) {
|
|
|
5368
5368
|
if (!c && f.includes(".")) {
|
|
5369
5369
|
const d = f.match(/^([a-z]+)\.([^[\s]+)/i);
|
|
5370
5370
|
if (d) {
|
|
5371
|
-
const p = d[1], m = d[2].split(".").filter(Boolean),
|
|
5372
|
-
c = document.querySelector(
|
|
5371
|
+
const p = d[1], m = d[2].split(".").filter(Boolean), E = `${p}.${m.join(".")}`;
|
|
5372
|
+
c = document.querySelector(E);
|
|
5373
5373
|
}
|
|
5374
5374
|
}
|
|
5375
5375
|
if (!c && f.match(/^([a-z]+)/i)) {
|
|
@@ -5381,12 +5381,12 @@ function Mu(e) {
|
|
|
5381
5381
|
const d = document.createElement("div");
|
|
5382
5382
|
d.className = "opencode-element-highlight-temp";
|
|
5383
5383
|
const p = document.querySelector(".opencode-widget");
|
|
5384
|
-
let m = "#3b82f6",
|
|
5384
|
+
let m = "#3b82f6", E = "rgba(59, 130, 246, 0.1)";
|
|
5385
5385
|
if (p) {
|
|
5386
5386
|
const A = getComputedStyle(p);
|
|
5387
|
-
m = A.getPropertyValue("--oc-primary").trim() || m,
|
|
5387
|
+
m = A.getPropertyValue("--oc-primary").trim() || m, E = A.getPropertyValue("--oc-primary-bg").trim() || E;
|
|
5388
5388
|
}
|
|
5389
|
-
d.style.border = `2px solid ${m}`, d.style.background =
|
|
5389
|
+
d.style.border = `2px solid ${m}`, d.style.background = E;
|
|
5390
5390
|
const _ = c.getBoundingClientRect();
|
|
5391
5391
|
d.style.top = `${_.top + window.scrollY}px`, d.style.left = `${_.left + window.scrollX}px`, d.style.width = `${_.width}px`, d.style.height = `${_.height}px`, document.body.appendChild(d), setTimeout(() => {
|
|
5392
5392
|
d.remove();
|
|
@@ -5505,7 +5505,7 @@ function Ru(e) {
|
|
|
5505
5505
|
function m() {
|
|
5506
5506
|
e.onEmptyAction();
|
|
5507
5507
|
}
|
|
5508
|
-
function
|
|
5508
|
+
function E() {
|
|
5509
5509
|
var _;
|
|
5510
5510
|
const D = (ps.indexOf(e.theme.value) + 1) % ps.length, x = ps[D];
|
|
5511
5511
|
(_ = e.onToggleTheme) == null || _.call(e, x);
|
|
@@ -5520,7 +5520,7 @@ function Ru(e) {
|
|
|
5520
5520
|
handleEmptyAction: m,
|
|
5521
5521
|
handleToggle: c,
|
|
5522
5522
|
handleToggleSessionList: p,
|
|
5523
|
-
handleToggleTheme:
|
|
5523
|
+
handleToggleTheme: E
|
|
5524
5524
|
};
|
|
5525
5525
|
}
|
|
5526
5526
|
function dl(e) {
|
|
@@ -5879,7 +5879,7 @@ function* _f(e, t) {
|
|
|
5879
5879
|
function yf(e, t) {
|
|
5880
5880
|
const { blacklist: n, whitelist: s, combineWithinSelector: o, maxCombinations: i } = t, l = qn(n), r = qn(s), a = (f, c) => {
|
|
5881
5881
|
const d = gf(e, c, t), p = mf(d, l, r), m = vf(p, r);
|
|
5882
|
-
return f[c] = o ? Array.from(Cl(m, { maxResults: i })) : m.map((
|
|
5882
|
+
return f[c] = o ? Array.from(Cl(m, { maxResults: i })) : m.map((E) => [E]), f;
|
|
5883
5883
|
};
|
|
5884
5884
|
return bf(t).reduce(a, {});
|
|
5885
5885
|
}
|
|
@@ -6225,7 +6225,7 @@ function ed(e) {
|
|
|
6225
6225
|
t.value = !1, s.value = !1;
|
|
6226
6226
|
}
|
|
6227
6227
|
const m = p;
|
|
6228
|
-
function
|
|
6228
|
+
function E() {
|
|
6229
6229
|
const A = window.__VUE_INSPECTOR__;
|
|
6230
6230
|
if (!A || A.__opencode_hooked) return;
|
|
6231
6231
|
const D = A.handleClick.bind(A);
|
|
@@ -6258,8 +6258,8 @@ function ed(e) {
|
|
|
6258
6258
|
const D = window.__VUE_INSPECTOR__;
|
|
6259
6259
|
A ? (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);
|
|
6260
6260
|
}), Xe(() => {
|
|
6261
|
-
window.__VUE_INSPECTOR__ ?
|
|
6262
|
-
window.__VUE_INSPECTOR__ && (
|
|
6261
|
+
window.__VUE_INSPECTOR__ ? E() : r = window.setInterval(() => {
|
|
6262
|
+
window.__VUE_INSPECTOR__ && (E(), r && (window.clearInterval(r), r = null));
|
|
6263
6263
|
}, l);
|
|
6264
6264
|
}), nt(() => {
|
|
6265
6265
|
r && window.clearInterval(r), document.removeEventListener("mousemove", m), document.removeEventListener("keydown", _, !0);
|
|
@@ -6332,14 +6332,14 @@ function sd(e) {
|
|
|
6332
6332
|
const od = 1440;
|
|
6333
6333
|
function id(e) {
|
|
6334
6334
|
const t = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), n = K(() => {
|
|
6335
|
-
var c, d, p, m,
|
|
6335
|
+
var c, d, p, m, E, _;
|
|
6336
6336
|
const A = e.splitMode.value || {};
|
|
6337
6337
|
return {
|
|
6338
6338
|
width: (c = A.width) != null ? c : 500,
|
|
6339
6339
|
minWidth: (d = A.minWidth) != null ? d : 400,
|
|
6340
6340
|
maxWidth: (p = A.maxWidth) != null ? p : 800,
|
|
6341
6341
|
resizable: (m = A.resizable) != null ? m : !0,
|
|
6342
|
-
shrinkPage: (
|
|
6342
|
+
shrinkPage: (E = A.shrinkPage) != null ? E : !0,
|
|
6343
6343
|
defaultOpen: (_ = A.defaultOpen) != null ? _ : !0
|
|
6344
6344
|
};
|
|
6345
6345
|
}), s = /* @__PURE__ */ L(n.value.width), o = K(() => e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || t.value >= od ? "split" : "bubble"), i = K(() => o.value === "split"), l = (c) => {
|
|
@@ -6426,7 +6426,7 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
|
|
|
6426
6426
|
}, Ge);
|
|
6427
6427
|
}, d = /* @__PURE__ */ L(!1), p = /* @__PURE__ */ L("");
|
|
6428
6428
|
let m = null;
|
|
6429
|
-
const
|
|
6429
|
+
const E = (O) => (p.value = O, d.value = !0, new Promise((Pe) => {
|
|
6430
6430
|
m = Pe;
|
|
6431
6431
|
})), _ = () => {
|
|
6432
6432
|
d.value = !1, m && m(!0);
|
|
@@ -6494,7 +6494,7 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
|
|
|
6494
6494
|
o("update:currentSessionId", O.id), o("select-session", O);
|
|
6495
6495
|
},
|
|
6496
6496
|
onDeleteSession: (O) => o("delete-session", O),
|
|
6497
|
-
showConfirmDialog:
|
|
6497
|
+
showConfirmDialog: E
|
|
6498
6498
|
}), {
|
|
6499
6499
|
bubbleVisible: qe,
|
|
6500
6500
|
hasSelectedElements: Ke,
|
|
@@ -6517,8 +6517,8 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
|
|
|
6517
6517
|
onClearSelectedNodes: () => {
|
|
6518
6518
|
o("clear-selected-nodes"), o("update:selectedElements", []);
|
|
6519
6519
|
},
|
|
6520
|
-
showConfirmDialog:
|
|
6521
|
-
}), { highlightVisible: h, highlightStyle: g, tooltipVisible:
|
|
6520
|
+
showConfirmDialog: E
|
|
6521
|
+
}), { highlightVisible: h, highlightStyle: g, tooltipVisible: T, tooltipStyle: b, tooltipContent: w } = ed({
|
|
6522
6522
|
selectMode: /* @__PURE__ */ Z(s, "selectMode"),
|
|
6523
6523
|
onAddSelectedNode: (O) => {
|
|
6524
6524
|
o("click-selected-node", O);
|
|
@@ -6681,7 +6681,7 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
|
|
|
6681
6681
|
handleBubbleOffsetChange: Tt
|
|
6682
6682
|
}), t({
|
|
6683
6683
|
showNotification: c,
|
|
6684
|
-
showConfirmDialog:
|
|
6684
|
+
showConfirmDialog: E,
|
|
6685
6685
|
sendMessageToIframe: F,
|
|
6686
6686
|
isSplitMode: M
|
|
6687
6687
|
});
|
|
@@ -6693,7 +6693,7 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
|
|
|
6693
6693
|
return m;
|
|
6694
6694
|
}, set dialogResolve(O) {
|
|
6695
6695
|
m = O;
|
|
6696
|
-
}, showConfirmDialog:
|
|
6696
|
+
}, showConfirmDialog: E, handleDialogConfirm: _, handleDialogCancel: A, frameRef: D, triggerRef: x, sendMessageToIframe: F, localSessionListCollapsed: y, minimized: B, promptDockVisible: I, isRestoring: j, iframeLoaded: V, splitPanelWidth: ce, syncStateToIframe: fe, handleFrameLoaded: _e, buttonActive: Re, containerClasses: N, 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: Ke, selectedElementItems: Et, handleClearSelectedNodes: kt, handleClickSelectedNode: ot, handleRemoveSelectedNode: tn, handleToggleSelectMode: u, highlightVisible: h, highlightStyle: g, tooltipVisible: T, tooltipStyle: b, tooltipContent: w, bubbleOffset: k, effectiveMode: P, isSplitMode: M, panelWidth: S, splitConfig: H, handleResize: R, handleSplitToggle: W, handleToggleMinimize: C, handleTogglePromptDock: $, windowWidth: Y, windowHeight: X, handleWindowResize: le, bubbleQuadrant: de, isBubbleOnRightSide: Be, chatPositionStyle: Ue, handleBubbleOffsetChange: Tt, handleResizeStart: On, handleResizeEnd: Me, chatAnimationOrigin: Ie, isDragging: Ct, get wasOpenBeforeDrag() {
|
|
6697
6697
|
return Dt;
|
|
6698
6698
|
}, set wasOpenBeforeDrag(O) {
|
|
6699
6699
|
Dt = O;
|
|
@@ -6955,7 +6955,7 @@ function Ml(e) {
|
|
|
6955
6955
|
f?.(x.data);
|
|
6956
6956
|
}
|
|
6957
6957
|
}
|
|
6958
|
-
function
|
|
6958
|
+
function E() {
|
|
6959
6959
|
if (!(c.value || d.value === "connecting")) {
|
|
6960
6960
|
if (s?.value === !1) {
|
|
6961
6961
|
d.value = "idle";
|
|
@@ -6973,7 +6973,7 @@ function Ml(e) {
|
|
|
6973
6973
|
p.value++;
|
|
6974
6974
|
const y = i * p.value;
|
|
6975
6975
|
setTimeout(() => {
|
|
6976
|
-
s?.value !== !1 && !c.value &&
|
|
6976
|
+
s?.value !== !1 && !c.value && E();
|
|
6977
6977
|
}, y);
|
|
6978
6978
|
} else x && r?.();
|
|
6979
6979
|
};
|
|
@@ -6984,7 +6984,7 @@ function Ml(e) {
|
|
|
6984
6984
|
p.value++;
|
|
6985
6985
|
const y = i * p.value;
|
|
6986
6986
|
setTimeout(() => {
|
|
6987
|
-
c.value ||
|
|
6987
|
+
c.value || E();
|
|
6988
6988
|
}, y);
|
|
6989
6989
|
}
|
|
6990
6990
|
}
|
|
@@ -6994,12 +6994,12 @@ function Ml(e) {
|
|
|
6994
6994
|
c.value && (c.value.close(), c.value = null, d.value = "disconnected", p.value = 0, r?.());
|
|
6995
6995
|
}
|
|
6996
6996
|
function A() {
|
|
6997
|
-
_(),
|
|
6997
|
+
_(), E();
|
|
6998
6998
|
}
|
|
6999
6999
|
function D() {
|
|
7000
7000
|
p.value = 0;
|
|
7001
7001
|
}
|
|
7002
|
-
return n && s?.value !== !1 &&
|
|
7002
|
+
return n && s?.value !== !1 && E(), nt(() => {
|
|
7003
7003
|
_();
|
|
7004
7004
|
}), {
|
|
7005
7005
|
// 状态
|
|
@@ -7009,7 +7009,7 @@ function Ml(e) {
|
|
|
7009
7009
|
isConnected: K(() => d.value === "connected"),
|
|
7010
7010
|
isConnecting: K(() => d.value === "connecting"),
|
|
7011
7011
|
// 方法
|
|
7012
|
-
connect:
|
|
7012
|
+
connect: E,
|
|
7013
7013
|
disconnect: _,
|
|
7014
7014
|
reconnect: A,
|
|
7015
7015
|
resetRetryCount: D
|
|
@@ -7146,7 +7146,7 @@ function Md(e) {
|
|
|
7146
7146
|
}), p = K(() => {
|
|
7147
7147
|
const y = n.value;
|
|
7148
7148
|
return y && l.value[y] || null;
|
|
7149
|
-
}), m = K(() => Object.values(l.value).some((y) => y.thinking)),
|
|
7149
|
+
}), m = K(() => Object.values(l.value).some((y) => y.thinking)), E = K(() => Object.values(l.value).filter((y) => y.thinking).length);
|
|
7150
7150
|
function _(y) {
|
|
7151
7151
|
delete l.value[y];
|
|
7152
7152
|
}
|
|
@@ -7174,7 +7174,7 @@ function Md(e) {
|
|
|
7174
7174
|
currentThinking: d,
|
|
7175
7175
|
currentSessionState: p,
|
|
7176
7176
|
hasAnyThinking: m,
|
|
7177
|
-
thinkingSessionCount:
|
|
7177
|
+
thinkingSessionCount: E,
|
|
7178
7178
|
// 方法
|
|
7179
7179
|
connect: c.connect,
|
|
7180
7180
|
disconnect: c.disconnect,
|
|
@@ -7190,9 +7190,9 @@ function Pd(e) {
|
|
|
7190
7190
|
s.value = !0;
|
|
7191
7191
|
try {
|
|
7192
7192
|
const m = await (await fetch(hs)).json();
|
|
7193
|
-
n.value = m.filter((
|
|
7194
|
-
...
|
|
7195
|
-
updatedAt:
|
|
7193
|
+
n.value = m.filter((E) => !(E.title === "__chrome_mcp_warmup__" || E.parentID || E.time?.archived)).map((E) => ({
|
|
7194
|
+
...E,
|
|
7195
|
+
updatedAt: E.time?.updated || Date.now()
|
|
7196
7196
|
})), n.value.length || f(), o.value = n.value[0]?.id || null;
|
|
7197
7197
|
} catch (p) {
|
|
7198
7198
|
console.error("[OpenCode] Failed to load sessions:", p);
|
|
@@ -7202,9 +7202,9 @@ function Pd(e) {
|
|
|
7202
7202
|
}, a = (p) => {
|
|
7203
7203
|
const m = n.value.findIndex((_) => _.id === p.id);
|
|
7204
7204
|
if (m === -1) return;
|
|
7205
|
-
const
|
|
7206
|
-
p.title && p.title !==
|
|
7207
|
-
...
|
|
7205
|
+
const E = n.value[m];
|
|
7206
|
+
p.title && p.title !== E.title && (n.value[m] = {
|
|
7207
|
+
...E,
|
|
7208
7208
|
title: p.title,
|
|
7209
7209
|
updatedAt: p.time?.updated || Date.now()
|
|
7210
7210
|
});
|
|
@@ -7450,8 +7450,8 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
|
|
|
7450
7450
|
proxyPort: d = 4098,
|
|
7451
7451
|
proxyHost: p = "localhost",
|
|
7452
7452
|
displayMode: m = "bubble",
|
|
7453
|
-
splitMode:
|
|
7454
|
-
} = t.config, _ = a, A = /* @__PURE__ */ L(
|
|
7453
|
+
splitMode: E
|
|
7454
|
+
} = t.config, _ = a, A = /* @__PURE__ */ L(E?.width ?? 500), D = K(() => `http://${p}:${d}`), x = (C, $) => {
|
|
7455
7455
|
l.value?.showNotification?.(C, $);
|
|
7456
7456
|
}, {
|
|
7457
7457
|
serviceStatus: F,
|
|
@@ -7512,11 +7512,11 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
|
|
|
7512
7512
|
qo(c, (C) => {
|
|
7513
7513
|
C.preventDefault(), b(!n.value);
|
|
7514
7514
|
});
|
|
7515
|
-
const
|
|
7515
|
+
const T = () => {
|
|
7516
7516
|
window.__VUE_INSPECTOR__ ? P(!s.value) : x("Vue Inspector 未加载,无法使用元素选择功能");
|
|
7517
7517
|
};
|
|
7518
7518
|
qo("ctrl+p", (C) => {
|
|
7519
|
-
C.preventDefault(),
|
|
7519
|
+
C.preventDefault(), T();
|
|
7520
7520
|
}), ze(F, (C, $) => {
|
|
7521
7521
|
C !== "idle" && $ === "idle" && (qe.connect(), Ke.connect()), C === "ready" && $ !== "ready" && ye();
|
|
7522
7522
|
}), Xe(() => {
|
|
@@ -7524,7 +7524,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
|
|
|
7524
7524
|
n.value = !0;
|
|
7525
7525
|
}, 1e3);
|
|
7526
7526
|
const C = ($) => {
|
|
7527
|
-
$.data?.type === "OPENCODE_READY" && J(), $.data?.type === "OPENCODE_KEYDOWN" && ($.data.key === "Escape" && s.value && P(!1), $.data.ctrlKey && $.data.key.toLowerCase() === "p" &&
|
|
7527
|
+
$.data?.type === "OPENCODE_READY" && J(), $.data?.type === "OPENCODE_KEYDOWN" && ($.data.key === "Escape" && s.value && P(!1), $.data.ctrlKey && $.data.key.toLowerCase() === "p" && T());
|
|
7528
7528
|
};
|
|
7529
7529
|
window.addEventListener("message", C);
|
|
7530
7530
|
});
|
|
@@ -7583,7 +7583,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
|
|
|
7583
7583
|
"hotkey-label": re(c),
|
|
7584
7584
|
thinking: re(Et),
|
|
7585
7585
|
"display-mode": re(m),
|
|
7586
|
-
"split-mode": re(
|
|
7586
|
+
"split-mode": re(E),
|
|
7587
7587
|
"split-panel-width": A.value,
|
|
7588
7588
|
"onUpdate:open": b,
|
|
7589
7589
|
"onUpdate:selectMode": P,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-opencode-assistant",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.44",
|
|
4
4
|
"description": "Embed OpenCode Web UI in your Vite dev server for real-time code modification and preview",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"unplugin-vue-inspector": "^2.4.0",
|
|
39
|
-
"@vite-plugin-opencode-assistant/
|
|
40
|
-
"@vite-plugin-opencode-assistant/
|
|
41
|
-
"@vite-plugin-opencode-assistant/components": "1.0.
|
|
39
|
+
"@vite-plugin-opencode-assistant/opencode": "1.0.44",
|
|
40
|
+
"@vite-plugin-opencode-assistant/shared": "1.0.44",
|
|
41
|
+
"@vite-plugin-opencode-assistant/components": "1.0.44"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"vite": ">=4.0.0"
|