vite-plugin-opencode-assistant 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/client/index.js +1 -0
- package/lib/client/index.js +1 -0
- package/lib/client.js +127 -123
- package/package.json +4 -4
package/es/client/index.js
CHANGED
package/lib/client/index.js
CHANGED
package/lib/client.js
CHANGED
|
@@ -261,10 +261,10 @@ class ho {
|
|
|
261
261
|
* @internal
|
|
262
262
|
*/
|
|
263
263
|
runIfDirty() {
|
|
264
|
-
|
|
264
|
+
Ks(this) && this.run();
|
|
265
265
|
}
|
|
266
266
|
get dirty() {
|
|
267
|
-
return
|
|
267
|
+
return Ks(this);
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
let po = 0, Rt, Lt;
|
|
@@ -316,14 +316,14 @@ function mo(e) {
|
|
|
316
316
|
}
|
|
317
317
|
e.deps = t, e.depsTail = s;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Ks(e) {
|
|
320
320
|
for (let t = e.deps; t; t = t.nextDep)
|
|
321
321
|
if (t.dep.version !== t.version || t.dep.computed && (vo(t.dep.computed) || t.dep.version !== t.version))
|
|
322
322
|
return !0;
|
|
323
323
|
return !!e._dirty;
|
|
324
324
|
}
|
|
325
325
|
function vo(e) {
|
|
326
|
-
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion ===
|
|
326
|
+
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Kt) || (e.globalVersion = Kt, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !Ks(e))))
|
|
327
327
|
return;
|
|
328
328
|
e.flags |= 2;
|
|
329
329
|
const t = e.dep, s = Q, n = ke;
|
|
@@ -372,7 +372,7 @@ function En(e) {
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
let
|
|
375
|
+
let Kt = 0;
|
|
376
376
|
class ki {
|
|
377
377
|
constructor(t, s) {
|
|
378
378
|
this.sub = t, this.dep = s, this.version = s.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
@@ -396,7 +396,7 @@ class rn {
|
|
|
396
396
|
return s;
|
|
397
397
|
}
|
|
398
398
|
trigger(t) {
|
|
399
|
-
this.version++,
|
|
399
|
+
this.version++, Kt++, this.notify(t);
|
|
400
400
|
}
|
|
401
401
|
notify(t) {
|
|
402
402
|
nn();
|
|
@@ -422,9 +422,9 @@ function yo(e) {
|
|
|
422
422
|
}
|
|
423
423
|
const os = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ Symbol(
|
|
424
424
|
""
|
|
425
|
-
),
|
|
425
|
+
), Us = /* @__PURE__ */ Symbol(
|
|
426
426
|
""
|
|
427
|
-
),
|
|
427
|
+
), Ut = /* @__PURE__ */ Symbol(
|
|
428
428
|
""
|
|
429
429
|
);
|
|
430
430
|
function _e(e, t, s) {
|
|
@@ -438,7 +438,7 @@ function _e(e, t, s) {
|
|
|
438
438
|
function nt(e, t, s, n, o, i) {
|
|
439
439
|
const l = os.get(e);
|
|
440
440
|
if (!l) {
|
|
441
|
-
|
|
441
|
+
Kt++;
|
|
442
442
|
return;
|
|
443
443
|
}
|
|
444
444
|
const r = (c) => {
|
|
@@ -451,15 +451,15 @@ function nt(e, t, s, n, o, i) {
|
|
|
451
451
|
if (c && s === "length") {
|
|
452
452
|
const a = Number(n);
|
|
453
453
|
l.forEach((h, b) => {
|
|
454
|
-
(b === "length" || b ===
|
|
454
|
+
(b === "length" || b === Ut || !De(b) && b >= a) && r(h);
|
|
455
455
|
});
|
|
456
456
|
} else
|
|
457
|
-
switch ((s !== void 0 || l.has(void 0)) && r(l.get(s)), d && r(l.get(
|
|
457
|
+
switch ((s !== void 0 || l.has(void 0)) && r(l.get(s)), d && r(l.get(Ut)), t) {
|
|
458
458
|
case "add":
|
|
459
|
-
c ? d && r(l.get("length")) : (r(l.get(gt)), wt(e) && r(l.get(
|
|
459
|
+
c ? d && r(l.get("length")) : (r(l.get(gt)), wt(e) && r(l.get(Us)));
|
|
460
460
|
break;
|
|
461
461
|
case "delete":
|
|
462
|
-
c || (r(l.get(gt)), wt(e) && r(l.get(
|
|
462
|
+
c || (r(l.get(gt)), wt(e) && r(l.get(Us)));
|
|
463
463
|
break;
|
|
464
464
|
case "set":
|
|
465
465
|
wt(e) && r(l.get(gt));
|
|
@@ -473,11 +473,11 @@ function Bi(e, t) {
|
|
|
473
473
|
return s && s.get(t);
|
|
474
474
|
}
|
|
475
475
|
function yt(e) {
|
|
476
|
-
const t = /* @__PURE__ */
|
|
477
|
-
return t === e ? t : (_e(t, "iterate",
|
|
476
|
+
const t = /* @__PURE__ */ U(e);
|
|
477
|
+
return t === e ? t : (_e(t, "iterate", Ut), /* @__PURE__ */ Pe(e) ? t : t.map(Be));
|
|
478
478
|
}
|
|
479
479
|
function ys(e) {
|
|
480
|
-
return _e(e = /* @__PURE__ */
|
|
480
|
+
return _e(e = /* @__PURE__ */ U(e), "iterate", Ut), e;
|
|
481
481
|
}
|
|
482
482
|
function Ge(e, t) {
|
|
483
483
|
return /* @__PURE__ */ rt(e) ? At(/* @__PURE__ */ _t(e) ? Be(t) : t) : Be(t);
|
|
@@ -627,22 +627,22 @@ function Tn(e, t, s, n) {
|
|
|
627
627
|
return r ? Ge(e, c) : c;
|
|
628
628
|
}
|
|
629
629
|
function $s(e, t, s) {
|
|
630
|
-
const n = /* @__PURE__ */
|
|
631
|
-
_e(n, "iterate",
|
|
630
|
+
const n = /* @__PURE__ */ U(e);
|
|
631
|
+
_e(n, "iterate", Ut);
|
|
632
632
|
const o = n[t](...s);
|
|
633
|
-
return (o === -1 || o === !1) && /* @__PURE__ */ Ss(s[0]) ? (s[0] = /* @__PURE__ */
|
|
633
|
+
return (o === -1 || o === !1) && /* @__PURE__ */ Ss(s[0]) ? (s[0] = /* @__PURE__ */ U(s[0]), n[t](...s)) : o;
|
|
634
634
|
}
|
|
635
635
|
function Dt(e, t, s = []) {
|
|
636
636
|
it(), nn();
|
|
637
|
-
const n = (/* @__PURE__ */
|
|
637
|
+
const n = (/* @__PURE__ */ U(e))[t].apply(e, s);
|
|
638
638
|
return on(), lt(), n;
|
|
639
639
|
}
|
|
640
640
|
const Vi = /* @__PURE__ */ en("__proto__,__v_isRef,__isVue"), So = new Set(
|
|
641
641
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(De)
|
|
642
642
|
);
|
|
643
|
-
function
|
|
643
|
+
function Ki(e) {
|
|
644
644
|
De(e) || (e = String(e));
|
|
645
|
-
const t = /* @__PURE__ */
|
|
645
|
+
const t = /* @__PURE__ */ U(this);
|
|
646
646
|
return _e(t, "has", e), t.hasOwnProperty(e);
|
|
647
647
|
}
|
|
648
648
|
class xo {
|
|
@@ -668,7 +668,7 @@ class xo {
|
|
|
668
668
|
if (l && (c = ji[s]))
|
|
669
669
|
return c;
|
|
670
670
|
if (s === "hasOwnProperty")
|
|
671
|
-
return
|
|
671
|
+
return Ki;
|
|
672
672
|
}
|
|
673
673
|
const r = Reflect.get(
|
|
674
674
|
t,
|
|
@@ -696,7 +696,7 @@ class wo extends xo {
|
|
|
696
696
|
const l = F(t) && ms(s);
|
|
697
697
|
if (!this._isShallow) {
|
|
698
698
|
const d = /* @__PURE__ */ rt(i);
|
|
699
|
-
if (!/* @__PURE__ */ Pe(n) && !/* @__PURE__ */ rt(n) && (i = /* @__PURE__ */
|
|
699
|
+
if (!/* @__PURE__ */ Pe(n) && !/* @__PURE__ */ rt(n) && (i = /* @__PURE__ */ U(i), n = /* @__PURE__ */ U(n)), !l && /* @__PURE__ */ ae(i) && !/* @__PURE__ */ ae(n))
|
|
700
700
|
return d || (i.value = n), !0;
|
|
701
701
|
}
|
|
702
702
|
const r = l ? Number(s) < t.length : q(t, s), c = Reflect.set(
|
|
@@ -705,7 +705,7 @@ class wo extends xo {
|
|
|
705
705
|
n,
|
|
706
706
|
/* @__PURE__ */ ae(t) ? t : o
|
|
707
707
|
);
|
|
708
|
-
return t === /* @__PURE__ */
|
|
708
|
+
return t === /* @__PURE__ */ U(o) && (r ? ze(n, i) && nt(t, "set", s, n) : nt(t, "add", s, n)), c;
|
|
709
709
|
}
|
|
710
710
|
deleteProperty(t, s) {
|
|
711
711
|
const n = q(t, s);
|
|
@@ -725,7 +725,7 @@ class wo extends xo {
|
|
|
725
725
|
), Reflect.ownKeys(t);
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
class
|
|
728
|
+
class Ui extends xo {
|
|
729
729
|
constructor(t = !1) {
|
|
730
730
|
super(!0, t);
|
|
731
731
|
}
|
|
@@ -736,15 +736,15 @@ class Ki extends xo {
|
|
|
736
736
|
return !0;
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
const Wi = /* @__PURE__ */ new wo(), qi = /* @__PURE__ */ new
|
|
739
|
+
const Wi = /* @__PURE__ */ new wo(), qi = /* @__PURE__ */ new Ui(), Ji = /* @__PURE__ */ new wo(!0);
|
|
740
740
|
const Ws = (e) => e, Qt = (e) => Reflect.getPrototypeOf(e);
|
|
741
741
|
function Gi(e, t, s) {
|
|
742
742
|
return function(...n) {
|
|
743
|
-
const o = this.__v_raw, i = /* @__PURE__ */
|
|
743
|
+
const o = this.__v_raw, i = /* @__PURE__ */ U(o), l = wt(i), r = e === "entries" || e === Symbol.iterator && l, c = e === "keys" && l, d = o[e](...n), a = s ? Ws : t ? At : Be;
|
|
744
744
|
return !t && _e(
|
|
745
745
|
i,
|
|
746
746
|
"iterate",
|
|
747
|
-
c ?
|
|
747
|
+
c ? Us : gt
|
|
748
748
|
), pe(
|
|
749
749
|
// inheriting all iterator properties
|
|
750
750
|
Object.create(d),
|
|
@@ -769,7 +769,7 @@ function es(e) {
|
|
|
769
769
|
function Yi(e, t) {
|
|
770
770
|
const s = {
|
|
771
771
|
get(o) {
|
|
772
|
-
const i = this.__v_raw, l = /* @__PURE__ */
|
|
772
|
+
const i = this.__v_raw, l = /* @__PURE__ */ U(i), r = /* @__PURE__ */ U(o);
|
|
773
773
|
e || (ze(o, r) && _e(l, "get", o), _e(l, "get", r));
|
|
774
774
|
const { has: c } = Qt(l), d = t ? Ws : e ? At : Be;
|
|
775
775
|
if (c.call(l, o))
|
|
@@ -780,14 +780,14 @@ function Yi(e, t) {
|
|
|
780
780
|
},
|
|
781
781
|
get size() {
|
|
782
782
|
const o = this.__v_raw;
|
|
783
|
-
return !e && _e(/* @__PURE__ */
|
|
783
|
+
return !e && _e(/* @__PURE__ */ U(o), "iterate", gt), o.size;
|
|
784
784
|
},
|
|
785
785
|
has(o) {
|
|
786
|
-
const i = this.__v_raw, l = /* @__PURE__ */
|
|
786
|
+
const i = this.__v_raw, l = /* @__PURE__ */ U(i), r = /* @__PURE__ */ U(o);
|
|
787
787
|
return e || (ze(o, r) && _e(l, "has", o), _e(l, "has", r)), o === r ? i.has(o) : i.has(o) || i.has(r);
|
|
788
788
|
},
|
|
789
789
|
forEach(o, i) {
|
|
790
|
-
const l = this, r = l.__v_raw, c = /* @__PURE__ */
|
|
790
|
+
const l = this, r = l.__v_raw, c = /* @__PURE__ */ U(r), d = t ? Ws : e ? At : Be;
|
|
791
791
|
return !e && _e(c, "iterate", gt), r.forEach((a, h) => o.call(i, d(a), d(h), l));
|
|
792
792
|
}
|
|
793
793
|
};
|
|
@@ -800,26 +800,26 @@ function Yi(e, t) {
|
|
|
800
800
|
clear: es("clear")
|
|
801
801
|
} : {
|
|
802
802
|
add(o) {
|
|
803
|
-
const i = /* @__PURE__ */
|
|
803
|
+
const i = /* @__PURE__ */ U(this), l = Qt(i), r = /* @__PURE__ */ U(o), c = !t && !/* @__PURE__ */ Pe(o) && !/* @__PURE__ */ rt(o) ? r : o;
|
|
804
804
|
return l.has.call(i, c) || ze(o, c) && l.has.call(i, o) || ze(r, c) && l.has.call(i, r) || (i.add(c), nt(i, "add", c, c)), this;
|
|
805
805
|
},
|
|
806
806
|
set(o, i) {
|
|
807
|
-
!t && !/* @__PURE__ */ Pe(i) && !/* @__PURE__ */ rt(i) && (i = /* @__PURE__ */
|
|
808
|
-
const l = /* @__PURE__ */
|
|
807
|
+
!t && !/* @__PURE__ */ Pe(i) && !/* @__PURE__ */ rt(i) && (i = /* @__PURE__ */ U(i));
|
|
808
|
+
const l = /* @__PURE__ */ U(this), { has: r, get: c } = Qt(l);
|
|
809
809
|
let d = r.call(l, o);
|
|
810
|
-
d || (o = /* @__PURE__ */
|
|
810
|
+
d || (o = /* @__PURE__ */ U(o), d = r.call(l, o));
|
|
811
811
|
const a = c.call(l, o);
|
|
812
812
|
return l.set(o, i), d ? ze(i, a) && nt(l, "set", o, i) : nt(l, "add", o, i), this;
|
|
813
813
|
},
|
|
814
814
|
delete(o) {
|
|
815
|
-
const i = /* @__PURE__ */
|
|
815
|
+
const i = /* @__PURE__ */ U(this), { has: l, get: r } = Qt(i);
|
|
816
816
|
let c = l.call(i, o);
|
|
817
|
-
c || (o = /* @__PURE__ */
|
|
817
|
+
c || (o = /* @__PURE__ */ U(o), c = l.call(i, o)), r && r.call(i, o);
|
|
818
818
|
const d = i.delete(o);
|
|
819
819
|
return c && nt(i, "delete", o, void 0), d;
|
|
820
820
|
},
|
|
821
821
|
clear() {
|
|
822
|
-
const o = /* @__PURE__ */
|
|
822
|
+
const o = /* @__PURE__ */ U(this), i = o.size !== 0, l = o.clear();
|
|
823
823
|
return i && nt(
|
|
824
824
|
o,
|
|
825
825
|
"clear",
|
|
@@ -932,9 +932,9 @@ function Ss(e) {
|
|
|
932
932
|
return e ? !!e.__v_raw : !1;
|
|
933
933
|
}
|
|
934
934
|
// @__NO_SIDE_EFFECTS__
|
|
935
|
-
function
|
|
935
|
+
function U(e) {
|
|
936
936
|
const t = e && e.__v_raw;
|
|
937
|
-
return t ? /* @__PURE__ */
|
|
937
|
+
return t ? /* @__PURE__ */ U(t) : e;
|
|
938
938
|
}
|
|
939
939
|
function nl(e) {
|
|
940
940
|
return !q(e, "__v_skip") && Object.isExtensible(e) && co(e, "__v_skip", !0), e;
|
|
@@ -953,14 +953,14 @@ function ol(e, t) {
|
|
|
953
953
|
}
|
|
954
954
|
class il {
|
|
955
955
|
constructor(t, s) {
|
|
956
|
-
this.dep = new rn(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = s ? t : /* @__PURE__ */
|
|
956
|
+
this.dep = new rn(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = s ? t : /* @__PURE__ */ U(t), this._value = s ? t : Be(t), this.__v_isShallow = s;
|
|
957
957
|
}
|
|
958
958
|
get value() {
|
|
959
959
|
return this.dep.track(), this._value;
|
|
960
960
|
}
|
|
961
961
|
set value(t) {
|
|
962
962
|
const s = this._rawValue, n = this.__v_isShallow || /* @__PURE__ */ Pe(t) || /* @__PURE__ */ rt(t);
|
|
963
|
-
t = n ? t : /* @__PURE__ */
|
|
963
|
+
t = n ? t : /* @__PURE__ */ U(t), ze(t, s) && (this._rawValue = t, this._value = n ? t : Be(t), this.dep.trigger());
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
function Ao(e) {
|
|
@@ -978,7 +978,7 @@ function Mo(e) {
|
|
|
978
978
|
}
|
|
979
979
|
class rl {
|
|
980
980
|
constructor(t, s, n) {
|
|
981
|
-
this._object = t, this._defaultValue = n, this.__v_isRef = !0, this._value = void 0, this._key = De(s) ? s : String(s), this._raw = /* @__PURE__ */
|
|
981
|
+
this._object = t, this._defaultValue = n, this.__v_isRef = !0, this._value = void 0, this._key = De(s) ? s : String(s), this._raw = /* @__PURE__ */ U(t);
|
|
982
982
|
let o = !0, i = t;
|
|
983
983
|
if (!F(t) || De(this._key) || !ms(this._key))
|
|
984
984
|
do
|
|
@@ -1021,7 +1021,7 @@ function ul(e, t, s) {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
class al {
|
|
1023
1023
|
constructor(t, s, n) {
|
|
1024
|
-
this.fn = t, this.setter = s, this._value = void 0, this.dep = new rn(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion =
|
|
1024
|
+
this.fn = t, this.setter = s, this._value = void 0, this.dep = new rn(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Kt - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !s, this.isSSR = n;
|
|
1025
1025
|
}
|
|
1026
1026
|
/**
|
|
1027
1027
|
* @internal
|
|
@@ -1436,7 +1436,7 @@ function Bt(e, t, s, n, o = !1) {
|
|
|
1436
1436
|
n.shapeFlag & 512 && n.type.__asyncResolved && n.component.subTree.component && Bt(e, t, s, n.component.subTree);
|
|
1437
1437
|
return;
|
|
1438
1438
|
}
|
|
1439
|
-
const i = n.shapeFlag & 4 ? Ts(n.component) : n.el, l = o ? null : i, { i: r, r: c } = e, d = t && t.r, a = r.refs === X ? r.refs = {} : r.refs, h = r.setupState, b = /* @__PURE__ */
|
|
1439
|
+
const i = n.shapeFlag & 4 ? Ts(n.component) : n.el, l = o ? null : i, { i: r, r: c } = e, d = t && t.r, a = r.refs === X ? r.refs = {} : r.refs, h = r.setupState, b = /* @__PURE__ */ U(h), x = h === X ? so : (T) => Mn(a, T) ? !1 : q(b, T), O = (T, B) => !(B && Mn(a, B));
|
|
1440
1440
|
if (d != null && d !== c) {
|
|
1441
1441
|
if (On(t), ce(d))
|
|
1442
1442
|
a[d] = null, x(d) && (h[d] = null);
|
|
@@ -1751,8 +1751,8 @@ function Bl(e) {
|
|
|
1751
1751
|
} = t;
|
|
1752
1752
|
if (d && jl(d, n, null), l)
|
|
1753
1753
|
for (const Y in l) {
|
|
1754
|
-
const
|
|
1755
|
-
R(
|
|
1754
|
+
const K = l[Y];
|
|
1755
|
+
R(K) && (n[Y] = K.bind(s));
|
|
1756
1756
|
}
|
|
1757
1757
|
if (o) {
|
|
1758
1758
|
const Y = o.call(s, s);
|
|
@@ -1760,7 +1760,7 @@ function Bl(e) {
|
|
|
1760
1760
|
}
|
|
1761
1761
|
if (Gs = !0, i)
|
|
1762
1762
|
for (const Y in i) {
|
|
1763
|
-
const
|
|
1763
|
+
const K = i[Y], Fe = R(K) ? K.bind(s, s) : R(K.get) ? K.get.bind(s, s) : Xe, D = !R(K) && R(K.set) ? K.set.bind(s) : Xe, $ = Re({
|
|
1764
1764
|
get: Fe,
|
|
1765
1765
|
set: D
|
|
1766
1766
|
});
|
|
@@ -1776,21 +1776,21 @@ function Bl(e) {
|
|
|
1776
1776
|
Ho(r[Y], n, s, Y);
|
|
1777
1777
|
if (c) {
|
|
1778
1778
|
const Y = R(c) ? c.call(s) : c;
|
|
1779
|
-
Reflect.ownKeys(Y).forEach((
|
|
1780
|
-
$o(
|
|
1779
|
+
Reflect.ownKeys(Y).forEach((K) => {
|
|
1780
|
+
$o(K, Y[K]);
|
|
1781
1781
|
});
|
|
1782
1782
|
}
|
|
1783
1783
|
a && Dn(a, e, "c");
|
|
1784
|
-
function ie(Y,
|
|
1785
|
-
F(
|
|
1784
|
+
function ie(Y, K) {
|
|
1785
|
+
F(K) ? K.forEach((Fe) => Y(Fe.bind(s))) : K && Y(K.bind(s));
|
|
1786
1786
|
}
|
|
1787
1787
|
if (ie(Al, h), ie(hn, b), ie(Ml, x), ie(Ol, O), ie(Cl, T), ie(El, B), ie($l, fe), ie(Fl, ne), ie(Il, oe), ie(Pl, I), ie(pn, A), ie(Dl, Ae), F(ve))
|
|
1788
1788
|
if (ve.length) {
|
|
1789
1789
|
const Y = e.exposed || (e.exposed = {});
|
|
1790
|
-
ve.forEach((
|
|
1791
|
-
Object.defineProperty(Y,
|
|
1792
|
-
get: () => s[
|
|
1793
|
-
set: (Fe) => s[
|
|
1790
|
+
ve.forEach((K) => {
|
|
1791
|
+
Object.defineProperty(Y, K, {
|
|
1792
|
+
get: () => s[K],
|
|
1793
|
+
set: (Fe) => s[K] = Fe,
|
|
1794
1794
|
enumerable: !0
|
|
1795
1795
|
});
|
|
1796
1796
|
});
|
|
@@ -1885,7 +1885,7 @@ const Hl = {
|
|
|
1885
1885
|
components: $t,
|
|
1886
1886
|
directives: $t,
|
|
1887
1887
|
// watch
|
|
1888
|
-
watch:
|
|
1888
|
+
watch: Kl,
|
|
1889
1889
|
// provide / inject
|
|
1890
1890
|
provide: In,
|
|
1891
1891
|
inject: Vl
|
|
@@ -1923,7 +1923,7 @@ function Fn(e, t) {
|
|
|
1923
1923
|
Pn(t ?? {})
|
|
1924
1924
|
) : t;
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1926
|
+
function Kl(e, t) {
|
|
1927
1927
|
if (!e) return t;
|
|
1928
1928
|
if (!t) return e;
|
|
1929
1929
|
const s = pe(/* @__PURE__ */ Object.create(null), e);
|
|
@@ -1931,7 +1931,7 @@ function Ul(e, t) {
|
|
|
1931
1931
|
s[n] = be(e[n], t[n]);
|
|
1932
1932
|
return s;
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function Ko() {
|
|
1935
1935
|
return {
|
|
1936
1936
|
app: null,
|
|
1937
1937
|
config: {
|
|
@@ -1952,14 +1952,14 @@ function Uo() {
|
|
|
1952
1952
|
emitsCache: /* @__PURE__ */ new WeakMap()
|
|
1953
1953
|
};
|
|
1954
1954
|
}
|
|
1955
|
-
let
|
|
1955
|
+
let Ul = 0;
|
|
1956
1956
|
function Wl(e, t) {
|
|
1957
1957
|
return function(n, o = null) {
|
|
1958
1958
|
R(n) || (n = pe({}, n)), o != null && !G(o) && (o = null);
|
|
1959
|
-
const i =
|
|
1959
|
+
const i = Ko(), l = /* @__PURE__ */ new WeakSet(), r = [];
|
|
1960
1960
|
let c = !1;
|
|
1961
1961
|
const d = i.app = {
|
|
1962
|
-
_uid:
|
|
1962
|
+
_uid: Ul++,
|
|
1963
1963
|
_component: n,
|
|
1964
1964
|
_props: o,
|
|
1965
1965
|
_container: null,
|
|
@@ -2046,7 +2046,7 @@ function Jl(e, t, ...s) {
|
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
const Gl = /* @__PURE__ */ new WeakMap();
|
|
2049
|
-
function
|
|
2049
|
+
function Uo(e, t, s = !1) {
|
|
2050
2050
|
const n = s ? Gl : t.emitsCache, o = n.get(e);
|
|
2051
2051
|
if (o !== void 0)
|
|
2052
2052
|
return o;
|
|
@@ -2054,7 +2054,7 @@ function Ko(e, t, s = !1) {
|
|
|
2054
2054
|
let l = {}, r = !1;
|
|
2055
2055
|
if (!R(e)) {
|
|
2056
2056
|
const c = (d) => {
|
|
2057
|
-
const a =
|
|
2057
|
+
const a = Uo(d, t, !0);
|
|
2058
2058
|
a && (r = !0, pe(l, a));
|
|
2059
2059
|
};
|
|
2060
2060
|
!s && t.mixins.length && t.mixins.forEach(c), e.extends && c(e.extends), e.mixins && e.mixins.forEach(c);
|
|
@@ -2192,7 +2192,7 @@ function er(e, t, s, n) {
|
|
|
2192
2192
|
props: o,
|
|
2193
2193
|
attrs: i,
|
|
2194
2194
|
vnode: { patchFlag: l }
|
|
2195
|
-
} = e, r = /* @__PURE__ */
|
|
2195
|
+
} = e, r = /* @__PURE__ */ U(o), [c] = e.propsOptions;
|
|
2196
2196
|
let d = !1;
|
|
2197
2197
|
if (
|
|
2198
2198
|
// always force full diff in dev
|
|
@@ -2260,7 +2260,7 @@ function Yo(e, t, s, n) {
|
|
|
2260
2260
|
o && q(o, a = Le(c)) ? !i || !i.includes(a) ? s[a] = d : (r || (r = {}))[a] = d : Cs(e.emitsOptions, c) || (!(c in n) || d !== n[c]) && (n[c] = d, l = !0);
|
|
2261
2261
|
}
|
|
2262
2262
|
if (i) {
|
|
2263
|
-
const c = /* @__PURE__ */
|
|
2263
|
+
const c = /* @__PURE__ */ U(s), d = r || X;
|
|
2264
2264
|
for (let a = 0; a < i.length; a++) {
|
|
2265
2265
|
const h = i[a];
|
|
2266
2266
|
s[h] = zs(
|
|
@@ -2621,7 +2621,7 @@ function lr(e, t) {
|
|
|
2621
2621
|
v,
|
|
2622
2622
|
ks(f, g),
|
|
2623
2623
|
_
|
|
2624
|
-
) : w ||
|
|
2624
|
+
) : w || K(
|
|
2625
2625
|
u,
|
|
2626
2626
|
f,
|
|
2627
2627
|
S,
|
|
@@ -2728,7 +2728,7 @@ function lr(e, t) {
|
|
|
2728
2728
|
f,
|
|
2729
2729
|
!0
|
|
2730
2730
|
/* shallow */
|
|
2731
|
-
)) :
|
|
2731
|
+
)) : K(
|
|
2732
2732
|
u,
|
|
2733
2733
|
f,
|
|
2734
2734
|
p,
|
|
@@ -2791,9 +2791,9 @@ function lr(e, t) {
|
|
|
2791
2791
|
if (u.isMounted) {
|
|
2792
2792
|
let { next: C, bu: M, u: N, parent: V, vnode: z } = u;
|
|
2793
2793
|
{
|
|
2794
|
-
const
|
|
2795
|
-
if (
|
|
2796
|
-
C && (C.el = z.el, Y(u, C, w)),
|
|
2794
|
+
const Ue = ti(u);
|
|
2795
|
+
if (Ue) {
|
|
2796
|
+
C && (C.el = z.el, Y(u, C, w)), Ue.asyncDep.then(() => {
|
|
2797
2797
|
Ce(() => {
|
|
2798
2798
|
u.isUnmounted || m();
|
|
2799
2799
|
}, g);
|
|
@@ -2803,14 +2803,14 @@ function lr(e, t) {
|
|
|
2803
2803
|
}
|
|
2804
2804
|
let Z = C, le;
|
|
2805
2805
|
ht(u, !1), C ? (C.el = z.el, Y(u, C, w)) : C = z, M && Ps(M), (le = C.props && C.props.onVnodeBeforeUpdate) && qe(le, V, C, z), ht(u, !0);
|
|
2806
|
-
const he = $n(u),
|
|
2806
|
+
const he = $n(u), Ke = u.subTree;
|
|
2807
2807
|
u.subTree = he, T(
|
|
2808
|
-
|
|
2808
|
+
Ke,
|
|
2809
2809
|
he,
|
|
2810
2810
|
// parent may have changed if it's in a teleport
|
|
2811
|
-
h(
|
|
2811
|
+
h(Ke.el),
|
|
2812
2812
|
// anchor may have changed if it's in a fragment
|
|
2813
|
-
Ne(
|
|
2813
|
+
Ne(Ke),
|
|
2814
2814
|
u,
|
|
2815
2815
|
g,
|
|
2816
2816
|
_
|
|
@@ -2820,28 +2820,28 @@ function lr(e, t) {
|
|
|
2820
2820
|
);
|
|
2821
2821
|
} else {
|
|
2822
2822
|
let C;
|
|
2823
|
-
const { el: M, props: N } = f, { bm: V, m: z, parent: Z, root: le, type: he } = u,
|
|
2824
|
-
ht(u, !1), V && Ps(V), !
|
|
2823
|
+
const { el: M, props: N } = f, { bm: V, m: z, parent: Z, root: le, type: he } = u, Ke = Et(f);
|
|
2824
|
+
ht(u, !1), V && Ps(V), !Ke && (C = N && N.onVnodeBeforeMount) && qe(C, Z, f), ht(u, !0);
|
|
2825
2825
|
{
|
|
2826
2826
|
le.ce && le.ce._hasShadowRoot() && le.ce._injectChildStyle(
|
|
2827
2827
|
he,
|
|
2828
2828
|
u.parent ? u.parent.type : void 0
|
|
2829
2829
|
);
|
|
2830
|
-
const
|
|
2830
|
+
const Ue = u.subTree = $n(u);
|
|
2831
2831
|
T(
|
|
2832
2832
|
null,
|
|
2833
|
-
|
|
2833
|
+
Ue,
|
|
2834
2834
|
p,
|
|
2835
2835
|
v,
|
|
2836
2836
|
u,
|
|
2837
2837
|
g,
|
|
2838
2838
|
_
|
|
2839
|
-
), f.el =
|
|
2839
|
+
), f.el = Ue.el;
|
|
2840
2840
|
}
|
|
2841
|
-
if (z && Ce(z, g), !
|
|
2842
|
-
const
|
|
2841
|
+
if (z && Ce(z, g), !Ke && (C = N && N.onVnodeMounted)) {
|
|
2842
|
+
const Ue = f;
|
|
2843
2843
|
Ce(
|
|
2844
|
-
() => qe(C, Z,
|
|
2844
|
+
() => qe(C, Z, Ue),
|
|
2845
2845
|
g
|
|
2846
2846
|
);
|
|
2847
2847
|
}
|
|
@@ -2857,7 +2857,7 @@ function lr(e, t) {
|
|
|
2857
2857
|
f.component = u;
|
|
2858
2858
|
const v = u.vnode.props;
|
|
2859
2859
|
u.vnode = f, u.next = null, er(u, f.props, v, p), or(u, f.children, p), it(), An(u), lt();
|
|
2860
|
-
},
|
|
2860
|
+
}, K = (u, f, p, v, g, _, w, S, y = !1) => {
|
|
2861
2861
|
const m = u && u.children, P = u ? u.shapeFlag : 0, C = f.children, { patchFlag: M, shapeFlag: N } = f;
|
|
2862
2862
|
if (M > 0) {
|
|
2863
2863
|
if (M & 128) {
|
|
@@ -3011,7 +3011,7 @@ function lr(e, t) {
|
|
|
3011
3011
|
}
|
|
3012
3012
|
let Z, le = 0;
|
|
3013
3013
|
const he = M - V + 1;
|
|
3014
|
-
let
|
|
3014
|
+
let Ke = !1, Ue = 0;
|
|
3015
3015
|
const Pt = new Array(he);
|
|
3016
3016
|
for (m = 0; m < he; m++) Pt[m] = 0;
|
|
3017
3017
|
for (m = N; m <= C; m++) {
|
|
@@ -3029,7 +3029,7 @@ function lr(e, t) {
|
|
|
3029
3029
|
We = Z;
|
|
3030
3030
|
break;
|
|
3031
3031
|
}
|
|
3032
|
-
We === void 0 ? W(Me, g, _, !0) : (Pt[We - V] = m + 1, We >=
|
|
3032
|
+
We === void 0 ? W(Me, g, _, !0) : (Pt[We - V] = m + 1, We >= Ue ? Ue = We : Ke = !0, T(
|
|
3033
3033
|
Me,
|
|
3034
3034
|
f[We],
|
|
3035
3035
|
p,
|
|
@@ -3041,7 +3041,7 @@ function lr(e, t) {
|
|
|
3041
3041
|
y
|
|
3042
3042
|
), le++);
|
|
3043
3043
|
}
|
|
3044
|
-
const yn =
|
|
3044
|
+
const yn = Ke ? cr(Pt) : xt;
|
|
3045
3045
|
for (Z = yn.length - 1, m = he - 1; m >= 0; m--) {
|
|
3046
3046
|
const Me = V + m, We = f[Me], Sn = f[Me + 1], xn = Me + 1 < P ? (
|
|
3047
3047
|
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
@@ -3057,7 +3057,7 @@ function lr(e, t) {
|
|
|
3057
3057
|
w,
|
|
3058
3058
|
S,
|
|
3059
3059
|
y
|
|
3060
|
-
) :
|
|
3060
|
+
) : Ke && (Z < 0 || m !== yn[Z] ? $(We, p, xn, 2) : Z--);
|
|
3061
3061
|
}
|
|
3062
3062
|
}
|
|
3063
3063
|
}, $ = (u, f, p, v, g = null) => {
|
|
@@ -3211,7 +3211,7 @@ function lr(e, t) {
|
|
|
3211
3211
|
r: $e,
|
|
3212
3212
|
mt: Ve,
|
|
3213
3213
|
mc: fe,
|
|
3214
|
-
pc:
|
|
3214
|
+
pc: K,
|
|
3215
3215
|
pbc: ve,
|
|
3216
3216
|
n: Ne,
|
|
3217
3217
|
o: e
|
|
@@ -3513,7 +3513,7 @@ function qe(e, t, s, n = null) {
|
|
|
3513
3513
|
n
|
|
3514
3514
|
]);
|
|
3515
3515
|
}
|
|
3516
|
-
const gr =
|
|
3516
|
+
const gr = Ko();
|
|
3517
3517
|
let _r = 0;
|
|
3518
3518
|
function mr(e, t, s) {
|
|
3519
3519
|
const n = e.type, o = (t ? t.appContext : e.appContext) || gr, i = {
|
|
@@ -3549,7 +3549,7 @@ function mr(e, t, s) {
|
|
|
3549
3549
|
directives: null,
|
|
3550
3550
|
// resolved props and emits options
|
|
3551
3551
|
propsOptions: zo(n, o),
|
|
3552
|
-
emitsOptions:
|
|
3552
|
+
emitsOptions: Uo(n, o),
|
|
3553
3553
|
// emit
|
|
3554
3554
|
emit: null,
|
|
3555
3555
|
// to be set immediately
|
|
@@ -3852,7 +3852,7 @@ function ns(e, t, s) {
|
|
|
3852
3852
|
) : e[n] = s;
|
|
3853
3853
|
}
|
|
3854
3854
|
}
|
|
3855
|
-
const
|
|
3855
|
+
const Kn = ["Webkit", "Moz", "ms"], Hs = {};
|
|
3856
3856
|
function Ir(e, t) {
|
|
3857
3857
|
const s = Hs[t];
|
|
3858
3858
|
if (s)
|
|
@@ -3861,16 +3861,16 @@ function Ir(e, t) {
|
|
|
3861
3861
|
if (n !== "filter" && n in e)
|
|
3862
3862
|
return Hs[t] = n;
|
|
3863
3863
|
n = ro(n);
|
|
3864
|
-
for (let o = 0; o <
|
|
3865
|
-
const i =
|
|
3864
|
+
for (let o = 0; o < Kn.length; o++) {
|
|
3865
|
+
const i = Kn[o] + n;
|
|
3866
3866
|
if (i in e)
|
|
3867
3867
|
return Hs[t] = i;
|
|
3868
3868
|
}
|
|
3869
3869
|
return t;
|
|
3870
3870
|
}
|
|
3871
|
-
const
|
|
3871
|
+
const Un = "http://www.w3.org/1999/xlink";
|
|
3872
3872
|
function Wn(e, t, s, n, o, i = Fi(t)) {
|
|
3873
|
-
n && t.startsWith("xlink:") ? s == null ? e.removeAttributeNS(
|
|
3873
|
+
n && t.startsWith("xlink:") ? s == null ? e.removeAttributeNS(Un, t.slice(6, t.length)) : e.setAttributeNS(Un, t, s) : s == null || i && !uo(s) ? e.removeAttribute(t) : e.setAttribute(
|
|
3874
3874
|
t,
|
|
3875
3875
|
i ? "" : De(s) ? String(s) : s
|
|
3876
3876
|
);
|
|
@@ -3967,7 +3967,7 @@ const Yn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // lower
|
|
|
3967
3967
|
e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, Hr = (e, t, s, n, o, i) => {
|
|
3968
3968
|
const l = o === "svg";
|
|
3969
3969
|
t === "class" ? Mr(e, n, l) : t === "style" ? Dr(e, s, n) : gs(t) ? _s(t) || Nr(e, t, s, n, i) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : Vr(e, t, n, l)) ? (qn(e, t, n), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && Wn(e, t, n, l, i, t !== "value")) : /* #11081 force set props for possible async custom element */ e._isVueCE && // #12408 check if it's declared prop or it's async custom element
|
|
3970
|
-
(
|
|
3970
|
+
(Kr(e, t) || // @ts-expect-error _def is private
|
|
3971
3971
|
e._def.__asyncLoader && (/[A-Z]/.test(t) || !ce(n))) ? qn(e, Le(t), n, i, t) : (t === "true-value" ? e._trueValue = n : t === "false-value" && (e._falseValue = n), Wn(e, t, n, l));
|
|
3972
3972
|
};
|
|
3973
3973
|
function Vr(e, t, s, n) {
|
|
@@ -3982,7 +3982,7 @@ function Vr(e, t, s, n) {
|
|
|
3982
3982
|
}
|
|
3983
3983
|
return Yn(t) && ce(s) ? !1 : t in e;
|
|
3984
3984
|
}
|
|
3985
|
-
function
|
|
3985
|
+
function Kr(e, t) {
|
|
3986
3986
|
const s = (
|
|
3987
3987
|
// @ts-expect-error _def is private
|
|
3988
3988
|
e._def.props
|
|
@@ -3992,7 +3992,7 @@ function Ur(e, t) {
|
|
|
3992
3992
|
const n = Le(t);
|
|
3993
3993
|
return Array.isArray(s) ? s.some((o) => Le(o) === n) : Object.keys(s).some((o) => Le(o) === n);
|
|
3994
3994
|
}
|
|
3995
|
-
const
|
|
3995
|
+
const Ur = ["ctrl", "shift", "alt", "meta"], Wr = {
|
|
3996
3996
|
stop: (e) => e.stopPropagation(),
|
|
3997
3997
|
prevent: (e) => e.preventDefault(),
|
|
3998
3998
|
self: (e) => e.target !== e.currentTarget,
|
|
@@ -4003,7 +4003,7 @@ const Kr = ["ctrl", "shift", "alt", "meta"], Wr = {
|
|
|
4003
4003
|
left: (e) => "button" in e && e.button !== 0,
|
|
4004
4004
|
middle: (e) => "button" in e && e.button !== 1,
|
|
4005
4005
|
right: (e) => "button" in e && e.button !== 2,
|
|
4006
|
-
exact: (e, t) =>
|
|
4006
|
+
exact: (e, t) => Ur.some((s) => e[`${s}Key`] && !t.includes(s))
|
|
4007
4007
|
}, vn = (e, t) => {
|
|
4008
4008
|
if (!e) return e;
|
|
4009
4009
|
const s = e._withMods || (e._withMods = {}), n = t.join(".");
|
|
@@ -4482,20 +4482,21 @@ const vi = /* @__PURE__ */ ft({
|
|
|
4482
4482
|
loadingSessionList: o,
|
|
4483
4483
|
handleCreateSession: i,
|
|
4484
4484
|
handleSelectSession: l,
|
|
4485
|
-
handleDeleteSession: r
|
|
4486
|
-
|
|
4487
|
-
|
|
4485
|
+
handleDeleteSession: r,
|
|
4486
|
+
sessionKey: c
|
|
4487
|
+
} = bt(), d = /* @__PURE__ */ se(!1);
|
|
4488
|
+
let a = null;
|
|
4488
4489
|
mt(s, () => {
|
|
4489
|
-
|
|
4490
|
-
|
|
4490
|
+
d.value = !0, a && clearTimeout(a), a = setTimeout(() => {
|
|
4491
|
+
d.value = !1;
|
|
4491
4492
|
}, 200);
|
|
4492
4493
|
});
|
|
4493
|
-
const
|
|
4494
|
-
return
|
|
4495
|
-
}, set animTimer(
|
|
4496
|
-
|
|
4497
|
-
}, showSkeleton:
|
|
4498
|
-
return Object.defineProperty(
|
|
4494
|
+
const h = Re(() => !!d.value), b = { collapsed: s, sessions: n, loadingSessionList: o, handleCreateSession: i, handleSelectSession: l, handleDeleteSession: r, sessionKey: c, isAnimating: d, get animTimer() {
|
|
4495
|
+
return a;
|
|
4496
|
+
}, set animTimer(x) {
|
|
4497
|
+
a = x;
|
|
4498
|
+
}, showSkeleton: h };
|
|
4499
|
+
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
|
4499
4500
|
}
|
|
4500
4501
|
}), Oc = {
|
|
4501
4502
|
key: 0,
|
|
@@ -4599,7 +4600,7 @@ function kc(e, t, s, n, o, i) {
|
|
|
4599
4600
|
ue,
|
|
4600
4601
|
{ key: 1 },
|
|
4601
4602
|
us(n.sessions, (l) => (J(), ee("div", {
|
|
4602
|
-
key: l.
|
|
4603
|
+
key: l[n.sessionKey],
|
|
4603
4604
|
class: Te(["opencode-session-item", { active: l.active }]),
|
|
4604
4605
|
role: "option",
|
|
4605
4606
|
"aria-selected": l.active,
|
|
@@ -4707,7 +4708,7 @@ function Hc(e, t, s, n, o, i) {
|
|
|
4707
4708
|
], 10, jc);
|
|
4708
4709
|
}
|
|
4709
4710
|
bi.render = Hc;
|
|
4710
|
-
var Vc = bi,
|
|
4711
|
+
var Vc = bi, Kc = (e, t, s) => new Promise((n, o) => {
|
|
4711
4712
|
var i = (c) => {
|
|
4712
4713
|
try {
|
|
4713
4714
|
r(s.next(c));
|
|
@@ -4723,7 +4724,7 @@ var Vc = bi, Uc = (e, t, s) => new Promise((n, o) => {
|
|
|
4723
4724
|
}, r = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(i, l);
|
|
4724
4725
|
r((s = s.apply(e, t)).next());
|
|
4725
4726
|
});
|
|
4726
|
-
function
|
|
4727
|
+
function Uc(e, t) {
|
|
4727
4728
|
return e.length <= t ? e : `${e.slice(0, t)}...`;
|
|
4728
4729
|
}
|
|
4729
4730
|
function Wc(e, t) {
|
|
@@ -4738,7 +4739,7 @@ function qc(e) {
|
|
|
4738
4739
|
function Jc(e) {
|
|
4739
4740
|
var t, s;
|
|
4740
4741
|
const n = ((t = e.filePath) == null ? void 0 : t.split("/").pop()) || "未知文件", o = e.line ? `:${e.line}${e.column ? `:${e.column}` : ""}` : "";
|
|
4741
|
-
return `${(s = e.innerText) != null && s.trim() ? `${
|
|
4742
|
+
return `${(s = e.innerText) != null && s.trim() ? `${Uc(e.innerText.trim(), 30)} · ` : ""}${n}${o}`;
|
|
4742
4743
|
}
|
|
4743
4744
|
function Gc(e) {
|
|
4744
4745
|
const t = Re(() => e.selectMode.value), s = Re(
|
|
@@ -4795,7 +4796,7 @@ function Gc(e) {
|
|
|
4795
4796
|
e.onRemoveSelectedNode({ element: c.element, index: d, source: a });
|
|
4796
4797
|
}
|
|
4797
4798
|
function r() {
|
|
4798
|
-
return
|
|
4799
|
+
return Kc(this, null, function* () {
|
|
4799
4800
|
if (!e.selectedElements.value || e.selectedElements.value.length === 0) return;
|
|
4800
4801
|
(yield e.showConfirmDialog(
|
|
4801
4802
|
`确定要清空所有 ${e.selectedElements.value.length} 个已选节点吗?`
|
|
@@ -5032,6 +5033,7 @@ const yi = /* @__PURE__ */ ft(ru(Qs({}, {
|
|
|
5032
5033
|
selectShortcutLabel: { type: String, required: !1, default: "按 ESC 或 Ctrl+P 退出" },
|
|
5033
5034
|
selectMode: { type: Boolean, required: !1, default: !1 },
|
|
5034
5035
|
sessionListCollapsed: { type: Boolean, required: !1, default: !0 },
|
|
5036
|
+
sessionKey: { type: String, required: !1, default: "id" },
|
|
5035
5037
|
loading: { type: Boolean, required: !1, default: !1 },
|
|
5036
5038
|
loadingSessionList: { type: Boolean, required: !1 },
|
|
5037
5039
|
showEmptyState: { type: Boolean, required: !1, default: !1 },
|
|
@@ -5118,7 +5120,7 @@ const yi = /* @__PURE__ */ ft(ru(Qs({}, {
|
|
|
5118
5120
|
selectedElementItems: de,
|
|
5119
5121
|
handleClearSelectedNodes: ie,
|
|
5120
5122
|
handleClickSelectedNode: Y,
|
|
5121
|
-
handleRemoveSelectedNode:
|
|
5123
|
+
handleRemoveSelectedNode: K,
|
|
5122
5124
|
handleToggleSelectMode: Fe
|
|
5123
5125
|
} = Gc({
|
|
5124
5126
|
selectMode: /* @__PURE__ */ te(n, "selectMode"),
|
|
@@ -5152,6 +5154,7 @@ const yi = /* @__PURE__ */ ft(ru(Qs({}, {
|
|
|
5152
5154
|
selectMode: /* @__PURE__ */ te(n, "selectMode"),
|
|
5153
5155
|
selectEnabled: /* @__PURE__ */ te(n, "selectEnabled"),
|
|
5154
5156
|
sessionListCollapsed: B,
|
|
5157
|
+
sessionKey: /* @__PURE__ */ te(n, "sessionKey"),
|
|
5155
5158
|
loading: /* @__PURE__ */ te(n, "loading"),
|
|
5156
5159
|
loadingSessionList: /* @__PURE__ */ te(n, "loadingSessionList"),
|
|
5157
5160
|
showEmptyState: /* @__PURE__ */ te(n, "showEmptyState"),
|
|
@@ -5175,7 +5178,7 @@ const yi = /* @__PURE__ */ ft(ru(Qs({}, {
|
|
|
5175
5178
|
handleDeleteSession: Ie,
|
|
5176
5179
|
handleToggleSelectMode: Fe,
|
|
5177
5180
|
handleClickSelectedNode: Y,
|
|
5178
|
-
handleRemoveSelectedNode: (L) =>
|
|
5181
|
+
handleRemoveSelectedNode: (L) => K(L.item, L.index, L.source),
|
|
5179
5182
|
handleClearSelectedNodes: ie
|
|
5180
5183
|
});
|
|
5181
5184
|
const Zt = { props: n, emit: o, slots: i, notificationMessage: l, notificationVisible: r, get notificationTimer() {
|
|
@@ -5186,7 +5189,7 @@ const yi = /* @__PURE__ */ ft(ru(Qs({}, {
|
|
|
5186
5189
|
return b;
|
|
5187
5190
|
}, set dialogResolve(L) {
|
|
5188
5191
|
b = L;
|
|
5189
|
-
}, showConfirmDialog: x, handleDialogConfirm: O, handleDialogCancel: T, localSessionListCollapsed: B, buttonActive: k, containerClasses: I, iframeSource: j, sessionListTitle: A, handleClose: H, handleEmptyAction: ne, handleToggle: oe, handleToggleSessionList: fe, sessionItems: Ae, handleCreateSession: ve, handleDeleteSession: Ie, handleSelectSession: je, bubbleVisible: He, hasSelectedElements: Ve, selectedElementItems: de, handleClearSelectedNodes: ie, handleClickSelectedNode: Y, handleRemoveSelectedNode:
|
|
5192
|
+
}, showConfirmDialog: x, handleDialogConfirm: O, handleDialogCancel: T, localSessionListCollapsed: B, buttonActive: k, containerClasses: I, iframeSource: j, sessionListTitle: A, handleClose: H, handleEmptyAction: ne, handleToggle: oe, handleToggleSessionList: fe, sessionItems: Ae, handleCreateSession: ve, handleDeleteSession: Ie, handleSelectSession: je, bubbleVisible: He, hasSelectedElements: Ve, selectedElementItems: de, handleClearSelectedNodes: ie, handleClickSelectedNode: Y, handleRemoveSelectedNode: K, handleToggleSelectMode: Fe, highlightVisible: D, highlightStyle: $, tooltipVisible: W, tooltipStyle: $e, tooltipContent: As, Frame: sc, Header: ac, SelectHint: hc, SelectedBubbles: yc, SelectedNodes: Mc, SessionList: Bc, Trigger: Vc };
|
|
5190
5193
|
return Object.defineProperty(Zt, "__isScriptSetup", { enumerable: !1, value: !0 }), Zt;
|
|
5191
5194
|
}
|
|
5192
5195
|
})), cu = {
|
|
@@ -5550,7 +5553,7 @@ const bu = {
|
|
|
5550
5553
|
}
|
|
5551
5554
|
}
|
|
5552
5555
|
e.value = D, D && de();
|
|
5553
|
-
},
|
|
5556
|
+
}, K = (D) => {
|
|
5554
5557
|
c.value.some(
|
|
5555
5558
|
(W) => W.filePath === D.filePath && W.line === D.line
|
|
5556
5559
|
) ? ne("该元素已选中") : (c.value.push(D), ne(`已选中元素 (${c.value.length}个)`), de(!0));
|
|
@@ -5569,6 +5572,7 @@ const bu = {
|
|
|
5569
5572
|
iframeSrc: i.value,
|
|
5570
5573
|
currentSessionId: l.value,
|
|
5571
5574
|
sessions: r.value,
|
|
5575
|
+
sessionKey: "id",
|
|
5572
5576
|
selectedElements: c.value,
|
|
5573
5577
|
hotkeyLabel: B,
|
|
5574
5578
|
"onUpdate:open": Y,
|
|
@@ -5581,7 +5585,7 @@ const bu = {
|
|
|
5581
5585
|
"onCreate-session": fe,
|
|
5582
5586
|
"onDelete-session": Ae,
|
|
5583
5587
|
"onSelect-session": ve,
|
|
5584
|
-
"onClick-selected-node":
|
|
5588
|
+
"onClick-selected-node": K,
|
|
5585
5589
|
"onClear-selected-nodes": Fe,
|
|
5586
5590
|
"onRemove-selected-node": ({ index: D }) => {
|
|
5587
5591
|
c.value.splice(D, 1), de(!0);
|
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.8",
|
|
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.8",
|
|
40
|
+
"@vite-plugin-opencode-assistant/shared": "1.0.8",
|
|
41
|
+
"@vite-plugin-opencode-assistant/components": "1.0.8"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"vite": ">=4.0.0"
|