@omg-dev/app 0.6.75 → 0.6.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/{ChangelogPage-D0JuVcxX.js → ChangelogPage-DxSQRCcs.js} +5 -1
- package/dist-lib/{SessionFilesPanel-DFlE2sDs.js → SessionFilesPanel-DIjaFFwk.js} +1 -1
- package/dist-lib/{TermView-D8DwYe6F.js → TermView-DDfB2XdC.js} +2 -2
- package/dist-lib/{board-page-Bn2CnSNZ.js → board-page-BpBn1uJC.js} +1 -1
- package/dist-lib/{chat-engine-C5hfnKw7.js → chat-engine-AzA5eEdf.js} +1 -1
- package/dist-lib/{coding-agents-page-B-FRe8Gt.js → coding-agents-page-BmJC3ueU.js} +1 -1
- package/dist-lib/{computer-page-DgRMRrC1.js → computer-page-Dfqm9TAg.js} +2 -2
- package/dist-lib/{embedded-DgEPNOE8.js → embedded-CnX0FDq7.js} +233 -203
- package/dist-lib/index.js +1 -1
- package/dist-lib/{keyboard-CaOkYpG7.js → keyboard-iN9__7l4.js} +1 -1
- package/dist-lib/{resume-session-sheet-DDk4tj85.js → resume-session-sheet-D9avZQxS.js} +1 -1
- package/dist-lib/{session-token-usage-BgDKhhtc.js → session-token-usage-D7aT5gLm.js} +1 -1
- package/dist-lib/{shipped-page-C8QqUL8-.js → shipped-page-rfUFoqwY.js} +1 -1
- package/dist-lib/{streamdown-response-CHOl9NM-.js → streamdown-response-BPkKpPUj.js} +1 -1
- package/package.json +3 -3
|
@@ -201,9 +201,9 @@ function eu(e) {
|
|
|
201
201
|
function Zl(e) {
|
|
202
202
|
return typeof e == "object" && e !== null && e.status === 404;
|
|
203
203
|
}
|
|
204
|
-
let
|
|
204
|
+
let ar = rw(), v0 = "", w0 = null, N0 = 0;
|
|
205
205
|
function k0(e, t = {}) {
|
|
206
|
-
e !==
|
|
206
|
+
e !== ar && (N0 += 1), ar = e, v0 = t.assetBaseUrl?.replace(/\/+$/, "") ?? "", w0 = t.errorSink ?? null;
|
|
207
207
|
}
|
|
208
208
|
function bi() {
|
|
209
209
|
return N0;
|
|
@@ -212,29 +212,29 @@ function ow() {
|
|
|
212
212
|
return w0;
|
|
213
213
|
}
|
|
214
214
|
function xe(e, t) {
|
|
215
|
-
return
|
|
215
|
+
return ar.request(e, t);
|
|
216
216
|
}
|
|
217
217
|
function jt(e, t) {
|
|
218
|
-
return
|
|
218
|
+
return ar.fetch(e, t);
|
|
219
219
|
}
|
|
220
220
|
function iw(e, t, n) {
|
|
221
|
-
return
|
|
221
|
+
return ar.upload?.(e, t, n) ?? ar.fetch(e, t);
|
|
222
222
|
}
|
|
223
223
|
function aw(e) {
|
|
224
|
-
return
|
|
224
|
+
return ar.openLiveSocket(e);
|
|
225
225
|
}
|
|
226
226
|
function Pz(e) {
|
|
227
|
-
return
|
|
227
|
+
return ar.openSocket(e);
|
|
228
228
|
}
|
|
229
229
|
function S0(e, t) {
|
|
230
230
|
return e.assetUrl?.(t) ?? null;
|
|
231
231
|
}
|
|
232
232
|
function C0(e) {
|
|
233
|
-
return S0(
|
|
233
|
+
return S0(ar, e);
|
|
234
234
|
}
|
|
235
235
|
async function lw(e) {
|
|
236
|
-
const t = S0(
|
|
237
|
-
return t !== null ? t : await
|
|
236
|
+
const t = S0(ar, e);
|
|
237
|
+
return t !== null ? t : await ar.resolveAssetUrl?.(e) ?? null;
|
|
238
238
|
}
|
|
239
239
|
function An(e) {
|
|
240
240
|
const t = e.startsWith("/") ? e : `/${e}`;
|
|
@@ -590,7 +590,7 @@ function Aa(e) {
|
|
|
590
590
|
return e.label !== void 0;
|
|
591
591
|
}
|
|
592
592
|
const Iw = 3, _w = "24px", Fw = "16px", gh = 4e3, Ow = 356, Rw = 14, $w = 45, Lw = 200;
|
|
593
|
-
function
|
|
593
|
+
function mr(...e) {
|
|
594
594
|
return e.filter(Boolean).join(" ");
|
|
595
595
|
}
|
|
596
596
|
function zw(e) {
|
|
@@ -708,12 +708,12 @@ const Dw = (e) => {
|
|
|
708
708
|
if (H?.loading) {
|
|
709
709
|
var de;
|
|
710
710
|
return /* @__PURE__ */ Ie.createElement("div", {
|
|
711
|
-
className:
|
|
711
|
+
className: mr(W?.loader, f == null || (de = f.classNames) == null ? void 0 : de.loader, "sonner-loader"),
|
|
712
712
|
"data-visible": Je === "loading"
|
|
713
713
|
}, H.loading);
|
|
714
714
|
}
|
|
715
715
|
return /* @__PURE__ */ Ie.createElement(xw, {
|
|
716
|
-
className:
|
|
716
|
+
className: mr(W?.loader, f == null || (oe = f.classNames) == null ? void 0 : oe.loader),
|
|
717
717
|
visible: Je === "loading"
|
|
718
718
|
});
|
|
719
719
|
}
|
|
@@ -722,7 +722,7 @@ const Dw = (e) => {
|
|
|
722
722
|
return /* @__PURE__ */ Ie.createElement("li", {
|
|
723
723
|
tabIndex: 0,
|
|
724
724
|
ref: ue,
|
|
725
|
-
className:
|
|
725
|
+
className: mr(j, P, W?.toast, f == null || (t = f.classNames) == null ? void 0 : t.toast, W?.default, W?.[Je], f == null || (n = f.classNames) == null ? void 0 : n[Je]),
|
|
726
726
|
"data-sonner-toast": "",
|
|
727
727
|
"data-rich-colors": (He = f.richColors) != null ? He : O,
|
|
728
728
|
"data-styled": !(f.jsx || f.unstyled || h),
|
|
@@ -812,19 +812,19 @@ const Dw = (e) => {
|
|
|
812
812
|
} : () => {
|
|
813
813
|
Me(), f.onDismiss == null || f.onDismiss.call(f, f);
|
|
814
814
|
},
|
|
815
|
-
className:
|
|
815
|
+
className: mr(W?.closeButton, f == null || (r = f.classNames) == null ? void 0 : r.closeButton)
|
|
816
816
|
}, (Ue = H?.close) != null ? Ue : Nw) : null, (Je || f.icon || f.promise) && f.icon !== null && (H?.[Je] !== null || f.icon) ? /* @__PURE__ */ Ie.createElement("div", {
|
|
817
817
|
"data-icon": "",
|
|
818
|
-
className:
|
|
818
|
+
className: mr(W?.icon, f == null || (o = f.classNames) == null ? void 0 : o.icon)
|
|
819
819
|
}, f.promise || f.type === "loading" && !f.icon ? f.icon || Pe() : null, f.type !== "loading" ? Le : null) : null, /* @__PURE__ */ Ie.createElement("div", {
|
|
820
820
|
"data-content": "",
|
|
821
|
-
className:
|
|
821
|
+
className: mr(W?.content, f == null || (i = f.classNames) == null ? void 0 : i.content)
|
|
822
822
|
}, /* @__PURE__ */ Ie.createElement("div", {
|
|
823
823
|
"data-title": "",
|
|
824
|
-
className:
|
|
824
|
+
className: mr(W?.title, f == null || (a = f.classNames) == null ? void 0 : a.title)
|
|
825
825
|
}, f.jsx ? f.jsx : typeof f.title == "function" ? f.title() : f.title), f.description ? /* @__PURE__ */ Ie.createElement("div", {
|
|
826
826
|
"data-description": "",
|
|
827
|
-
className:
|
|
827
|
+
className: mr(C, $e, W?.description, f == null || (l = f.classNames) == null ? void 0 : l.description)
|
|
828
828
|
}, typeof f.description == "function" ? f.description() : f.description) : null), /* @__PURE__ */ Ie.isValidElement(f.cancel) ? f.cancel : f.cancel && Aa(f.cancel) ? /* @__PURE__ */ Ie.createElement("button", {
|
|
829
829
|
"data-button": !0,
|
|
830
830
|
"data-cancel": !0,
|
|
@@ -832,7 +832,7 @@ const Dw = (e) => {
|
|
|
832
832
|
onClick: (oe) => {
|
|
833
833
|
Aa(f.cancel) && We && (f.cancel.onClick == null || f.cancel.onClick.call(f.cancel, oe), Me());
|
|
834
834
|
},
|
|
835
|
-
className:
|
|
835
|
+
className: mr(W?.cancelButton, f == null || (c = f.classNames) == null ? void 0 : c.cancelButton)
|
|
836
836
|
}, f.cancel.label) : null, /* @__PURE__ */ Ie.isValidElement(f.action) ? f.action : f.action && Aa(f.action) ? /* @__PURE__ */ Ie.createElement("button", {
|
|
837
837
|
"data-button": !0,
|
|
838
838
|
"data-action": !0,
|
|
@@ -840,7 +840,7 @@ const Dw = (e) => {
|
|
|
840
840
|
onClick: (oe) => {
|
|
841
841
|
Aa(f.action) && (f.action.onClick == null || f.action.onClick.call(f.action, oe), !oe.defaultPrevented && Me());
|
|
842
842
|
},
|
|
843
|
-
className:
|
|
843
|
+
className: mr(W?.actionButton, f == null || (d = f.classNames) == null ? void 0 : d.actionButton)
|
|
844
844
|
}, f.action.label) : null);
|
|
845
845
|
};
|
|
846
846
|
function xh() {
|
|
@@ -1366,30 +1366,30 @@ function iN(e) {
|
|
|
1366
1366
|
} catch {
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function hr(e, t) {
|
|
1370
1370
|
e && Ai().sound && iN(e), t != null && Ft(t);
|
|
1371
1371
|
}
|
|
1372
1372
|
const Gn = {
|
|
1373
1373
|
/** Generic button / control press. */
|
|
1374
|
-
tap: () =>
|
|
1374
|
+
tap: () => hr("tap", "light"),
|
|
1375
1375
|
/** Choosing an item in a menu / list / segmented control. */
|
|
1376
|
-
select: () =>
|
|
1376
|
+
select: () => hr("select", "selection"),
|
|
1377
1377
|
/** Flipping a switch or checkbox. */
|
|
1378
|
-
toggle: (e) =>
|
|
1378
|
+
toggle: (e) => hr(e ? "toggleOn" : "toggleOff", e ? "medium" : "light"),
|
|
1379
1379
|
/** Submitting the composer / sending a message. */
|
|
1380
|
-
send: () =>
|
|
1380
|
+
send: () => hr("send", "medium"),
|
|
1381
1381
|
/** A positive outcome (session created, saved, copied). */
|
|
1382
|
-
success: () =>
|
|
1382
|
+
success: () => hr("success", "success"),
|
|
1383
1383
|
/** A failure / rejected action. */
|
|
1384
|
-
error: () =>
|
|
1384
|
+
error: () => hr("error", "error"),
|
|
1385
1385
|
/** Stepping through options via swipe/scroll. */
|
|
1386
|
-
swipe: () =>
|
|
1386
|
+
swipe: () => hr("swipe", "selection"),
|
|
1387
1387
|
/** A surface opening (dialog, popover, sheet). */
|
|
1388
|
-
open: () =>
|
|
1388
|
+
open: () => hr("open", "light"),
|
|
1389
1389
|
/** A surface closing. */
|
|
1390
|
-
close: () =>
|
|
1390
|
+
close: () => hr("close", null),
|
|
1391
1391
|
/** Passive inbound event (assistant reply / turn finished). */
|
|
1392
|
-
receive: () =>
|
|
1392
|
+
receive: () => hr("receive", null)
|
|
1393
1393
|
}, aN = h0(
|
|
1394
1394
|
"group/button inline-flex shrink-0 items-center justify-center rounded-4xl border border-transparent bg-clip-padding text-sm font-semibold whitespace-nowrap transition-[transform,background-color,box-shadow,color,border-color,filter,opacity] duration-200 ease-apple outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 active:scale-[0.97] active:transition-none disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1395
1395
|
{
|
|
@@ -1492,7 +1492,7 @@ function Hn(e, t) {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
const lN = Hn(
|
|
1494
1494
|
"StreamdownResponse",
|
|
1495
|
-
() => import("./streamdown-response-
|
|
1495
|
+
() => import("./streamdown-response-BPkKpPUj.js").then((e) => ({ default: e.StreamdownResponse }))
|
|
1496
1496
|
);
|
|
1497
1497
|
function $s({ className: e, from: t, ...n }) {
|
|
1498
1498
|
return /* @__PURE__ */ s(
|
|
@@ -2032,7 +2032,7 @@ const KN = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], pn = ye("chevron-do
|
|
|
2032
2032
|
* This source code is licensed under the ISC license.
|
|
2033
2033
|
* See the LICENSE file in the root directory of this source tree.
|
|
2034
2034
|
*/
|
|
2035
|
-
const GN = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]],
|
|
2035
|
+
const GN = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], yr = ye("chevron-left", GN);
|
|
2036
2036
|
/**
|
|
2037
2037
|
* @license lucide-react v0.577.0 - ISC
|
|
2038
2038
|
*
|
|
@@ -3940,7 +3940,7 @@ function QS(e, t, n, r) {
|
|
|
3940
3940
|
t && c > 0 && (i.push({ id: r.take(`space-${a}`), string: " " }), a += 1), i.push({ id: J0(l, a, r), string: l }), a += l.length;
|
|
3941
3941
|
}), i;
|
|
3942
3942
|
}
|
|
3943
|
-
var vl = "torph-root", lu = "torph-item",
|
|
3943
|
+
var vl = "torph-root", lu = "torph-item", gr = "torph-id", cu = "torph-kind", Io = "torph-slot", Us = "torph-exiting", wi = "torph-sr", du = "torph-debug", Ta = "empty", ZS = { linear: [0, 0, 1, 1], ease: [0.25, 0.1, 0.25, 1], "ease-in": [0.42, 0, 1, 1], "ease-out": [0, 0, 0.58, 1], "ease-in-out": [0.42, 0, 0.58, 1] }, Dh = (e, t, n) => {
|
|
3944
3944
|
let r = 1 - n;
|
|
3945
3945
|
return 3 * r * r * n * e + 3 * r * n * n * t + n * n * n;
|
|
3946
3946
|
};
|
|
@@ -4109,7 +4109,7 @@ function fd(e) {
|
|
|
4109
4109
|
let t = Array.from(e.children), n = {}, r = e.getBoundingClientRect();
|
|
4110
4110
|
return t.forEach((o, i) => {
|
|
4111
4111
|
if (o.hasAttribute(Us) || o.hasAttribute(wi) || o.tagName === "BR") return;
|
|
4112
|
-
let a = o.getAttribute(
|
|
4112
|
+
let a = o.getAttribute(gr) || `child-${i}`, l = o.getBoundingClientRect(), { tx: c, ty: d } = lc(o);
|
|
4113
4113
|
n[a] = { x: l.left - r.left - c, y: l.top - r.top - d };
|
|
4114
4114
|
}), n;
|
|
4115
4115
|
}
|
|
@@ -4151,7 +4151,7 @@ function gC(e, t) {
|
|
|
4151
4151
|
}
|
|
4152
4152
|
function fu(e, t) {
|
|
4153
4153
|
let n = document.createElement(e);
|
|
4154
|
-
return n.setAttribute(lu, ""), n.setAttribute(
|
|
4154
|
+
return n.setAttribute(lu, ""), n.setAttribute(gr, t), n.setAttribute("aria-hidden", "true"), n;
|
|
4155
4155
|
}
|
|
4156
4156
|
function xC(e, t) {
|
|
4157
4157
|
let n = /* @__PURE__ */ new Map();
|
|
@@ -4171,7 +4171,7 @@ function bC(e, t) {
|
|
|
4171
4171
|
let n = Array.from(e.children), r = /* @__PURE__ */ new Set();
|
|
4172
4172
|
for (let o of n) {
|
|
4173
4173
|
if (o.hasAttribute(Us)) continue;
|
|
4174
|
-
let i = o.getAttribute(
|
|
4174
|
+
let i = o.getAttribute(gr);
|
|
4175
4175
|
if (!i || r.has(i)) continue;
|
|
4176
4176
|
let a = t.get(i);
|
|
4177
4177
|
if (a) {
|
|
@@ -4199,7 +4199,7 @@ function nx(e) {
|
|
|
4199
4199
|
function yC(e, t, n, r) {
|
|
4200
4200
|
let o = /* @__PURE__ */ new Map();
|
|
4201
4201
|
t.forEach((i) => {
|
|
4202
|
-
let a = i.getAttribute(
|
|
4202
|
+
let a = i.getAttribute(gr);
|
|
4203
4203
|
n.has(a) && !i.hasAttribute(Us) && (o.set(a, i), i.remove());
|
|
4204
4204
|
}), Array.from(e.childNodes).forEach((i) => {
|
|
4205
4205
|
i.nodeType === Node.TEXT_NODE && i.remove();
|
|
@@ -4530,7 +4530,7 @@ var Vh = class pu {
|
|
|
4530
4530
|
} else a = au(e, this.options.locale, i), l = /* @__PURE__ */ new Map();
|
|
4531
4531
|
let c = a.length === 0;
|
|
4532
4532
|
c && (a = [{ id: Ta, string: "" }]), bC(t, l), this.prevMeasures = fd(this.element);
|
|
4533
|
-
let d = Array.from(t.children).filter((S) => !S.hasAttribute(wi)), u = new Set(a.map((S) => S.id)), f = d.filter((S) => !u.has(S.getAttribute(
|
|
4533
|
+
let d = Array.from(t.children).filter((S) => !S.hasAttribute(wi)), u = new Set(a.map((S) => S.id)), f = d.filter((S) => !u.has(S.getAttribute(gr)) && !S.hasAttribute(Us)), h = new Set(f), p = d.map((S) => S.getAttribute(gr)), g = mC(d, h, p, u);
|
|
4534
4534
|
xC(t, f), yC(t, d, u, a), this.currentMeasures = fd(this.element);
|
|
4535
4535
|
let x = a.reduce((S, O) => O.string === `
|
|
4536
4536
|
` ? S + 1 : S, 1), y = (t.offsetHeight || 20 * x) / x;
|
|
@@ -4540,7 +4540,7 @@ var Vh = class pu {
|
|
|
4540
4540
|
let w = this.isInitialRender ? [] : Wh(d, new Set(f)), k = new Set(w.flat());
|
|
4541
4541
|
for (let S of w) AC(S, { duration: this.options.duration, ease: this.options.ease });
|
|
4542
4542
|
if (f.forEach((S) => {
|
|
4543
|
-
if (this.isInitialRender || S.getAttribute(
|
|
4543
|
+
if (this.isInitialRender || S.getAttribute(gr) === Ta) {
|
|
4544
4544
|
S.remove();
|
|
4545
4545
|
return;
|
|
4546
4546
|
}
|
|
@@ -4555,12 +4555,12 @@ var Vh = class pu {
|
|
|
4555
4555
|
}
|
|
4556
4556
|
updateStyles(e, t, n) {
|
|
4557
4557
|
if (this.isInitialRender) return;
|
|
4558
|
-
let r = Array.from(this.element.children).filter((u) => !u.hasAttribute(wi)), o = e.map((u) => u.id), i = new Map(e.map((u) => [u.id, u.kind])), a = r.filter((u) => !u.hasAttribute(Us) && u.tagName !== "BR" && u.getAttribute(
|
|
4558
|
+
let r = Array.from(this.element.children).filter((u) => !u.hasAttribute(wi)), o = e.map((u) => u.id), i = new Map(e.map((u) => [u.id, u.kind])), a = r.filter((u) => !u.hasAttribute(Us) && u.tagName !== "BR" && u.getAttribute(gr) !== Ta), l = new Set(a.filter((u) => !this.prevMeasures[u.getAttribute(gr)])), c = /* @__PURE__ */ new Set();
|
|
4559
4559
|
for (let u of Wh(a, l)) u.forEach((f) => c.add(f)), MC(u, { duration: this.options.duration, ease: this.options.ease });
|
|
4560
4560
|
let d = new Set(o.filter((u) => this.prevMeasures[u]));
|
|
4561
4561
|
r.forEach((u, f) => {
|
|
4562
4562
|
if (u.hasAttribute(Us) || u.tagName === "BR" || c.has(u)) return;
|
|
4563
|
-
let h = u.getAttribute(
|
|
4563
|
+
let h = u.getAttribute(gr) || `child-${f}`;
|
|
4564
4564
|
if (h === Ta) return;
|
|
4565
4565
|
let p = !this.prevMeasures[h], g = p ? tx(e.findIndex((w) => w.id === h), o, d) : h, { dx: x, dy: y } = g ? Uh(this.prevMeasures, t, g) : { dx: 0, dy: 0 }, b = i.get(h);
|
|
4566
4566
|
b && p ? kC(u, { deltaX: x, deltaY: y, slideDistance: n, kind: b, duration: this.options.duration, ease: this.options.ease }) : b ? rx(u, { deltaX: x, deltaY: y, duration: this.options.duration, ease: this.options.ease }) : pC(u, { deltaX: x, deltaY: y, isNew: p, duration: this.options.duration, ease: this.options.ease });
|
|
@@ -4609,7 +4609,7 @@ function KC(e) {
|
|
|
4609
4609
|
return { ref: t, update: i };
|
|
4610
4610
|
}
|
|
4611
4611
|
const GC = typeof Element < "u" && typeof Element.prototype.animate == "function" && typeof Element.prototype.getAnimations == "function";
|
|
4612
|
-
function
|
|
4612
|
+
function br({ children: e, shimmer: t, as: n = "span", className: r, style: o, ...i }) {
|
|
4613
4613
|
const a = t ? void 0 : r, l = t ? void 0 : o;
|
|
4614
4614
|
let c;
|
|
4615
4615
|
return GC ? c = /* @__PURE__ */ s(VC, { as: n, className: a, style: l, ...i, children: e }) : c = /* @__PURE__ */ s(n, { className: a, style: l, children: e }), t ? /* @__PURE__ */ s("span", { "data-slot": "shimmer-text", "data-text": e, className: D("lfg-shimmer-text", r), style: o, children: c }) : c;
|
|
@@ -4669,7 +4669,7 @@ function YC({
|
|
|
4669
4669
|
h ? "translate-y-1 opacity-0" : "translate-y-0 opacity-100 delay-150"
|
|
4670
4670
|
),
|
|
4671
4671
|
children: /* @__PURE__ */ s("span", { className: "min-w-0 leading-none", children: /* @__PURE__ */ s(
|
|
4672
|
-
|
|
4672
|
+
br,
|
|
4673
4673
|
{
|
|
4674
4674
|
shimmer: !f && !y && w && k,
|
|
4675
4675
|
className: D(
|
|
@@ -4817,7 +4817,7 @@ function _i({ onClose: e, title: t, footer: n, children: r }) {
|
|
|
4817
4817
|
onKeyDown: (o) => o.stopPropagation(),
|
|
4818
4818
|
children: [
|
|
4819
4819
|
/* @__PURE__ */ s("header", { className: "shrink-0 border-b border-border pt-[env(safe-area-inset-top,0px)]", children: /* @__PURE__ */ m("div", { className: "mx-auto flex w-full max-w-4xl items-center gap-2 px-4 py-2", children: [
|
|
4820
|
-
/* @__PURE__ */ s(Ln.Close, { "aria-label": "Back", className: "flex size-11 shrink-0 items-center justify-center rounded-full hover:bg-muted", children: /* @__PURE__ */ s(
|
|
4820
|
+
/* @__PURE__ */ s(Ln.Close, { "aria-label": "Back", className: "flex size-11 shrink-0 items-center justify-center rounded-full hover:bg-muted", children: /* @__PURE__ */ s(yr, { className: "size-5" }) }),
|
|
4821
4821
|
/* @__PURE__ */ s(Ln.Title, { className: "min-w-0 truncate text-base font-semibold", children: t })
|
|
4822
4822
|
] }) }),
|
|
4823
4823
|
/* @__PURE__ */ s("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-contain [scroll-padding-block:1rem]", children: /* @__PURE__ */ s("div", { className: "mx-auto w-full max-w-4xl px-4 py-4 pb-[max(var(--lfg-safe-bottom),1rem)] sm:px-6", children: r }) }),
|
|
@@ -4886,7 +4886,7 @@ function c5({
|
|
|
4886
4886
|
}) {
|
|
4887
4887
|
return /* @__PURE__ */ s(fx.Provider, { value: e, children: t });
|
|
4888
4888
|
}
|
|
4889
|
-
function
|
|
4889
|
+
function vr() {
|
|
4890
4890
|
return nt(fx);
|
|
4891
4891
|
}
|
|
4892
4892
|
const mx = [
|
|
@@ -5174,7 +5174,7 @@ function Rf(e) {
|
|
|
5174
5174
|
return !t || t.toLowerCase() === "unknown" ? null : t;
|
|
5175
5175
|
}
|
|
5176
5176
|
function _5() {
|
|
5177
|
-
return Rf("0.6.
|
|
5177
|
+
return Rf("0.6.76");
|
|
5178
5178
|
}
|
|
5179
5179
|
const Yh = _5();
|
|
5180
5180
|
function F5(e) {
|
|
@@ -7827,7 +7827,7 @@ function fc(e, t = {}) {
|
|
|
7827
7827
|
const i = o.toString();
|
|
7828
7828
|
return i ? `${n}?${i}` : n;
|
|
7829
7829
|
}
|
|
7830
|
-
const
|
|
7830
|
+
const pr = 1, Oa = 8, HM = 2.5;
|
|
7831
7831
|
function vd(e, t, n) {
|
|
7832
7832
|
return Math.min(n, Math.max(t, e));
|
|
7833
7833
|
}
|
|
@@ -7855,8 +7855,8 @@ function qM({
|
|
|
7855
7855
|
const h = se((k, S, O) => {
|
|
7856
7856
|
const T = o.current;
|
|
7857
7857
|
T && a((L) => {
|
|
7858
|
-
const U = vd(k,
|
|
7859
|
-
if (U ===
|
|
7858
|
+
const U = vd(k, pr, Oa);
|
|
7859
|
+
if (U === pr) return Ts;
|
|
7860
7860
|
const R = T.getBoundingClientRect(), j = S - R.left, C = O - R.top, G = U / L.scale;
|
|
7861
7861
|
return {
|
|
7862
7862
|
scale: U,
|
|
@@ -7871,8 +7871,8 @@ function qM({
|
|
|
7871
7871
|
a((O) => {
|
|
7872
7872
|
const T = o.current;
|
|
7873
7873
|
if (!T) return O;
|
|
7874
|
-
const L = vd(O.scale * S,
|
|
7875
|
-
if (L ===
|
|
7874
|
+
const L = vd(O.scale * S, pr, Oa);
|
|
7875
|
+
if (L === pr) return Ts;
|
|
7876
7876
|
const U = T.getBoundingClientRect(), R = k.clientX - U.left, j = k.clientY - U.top, C = L / O.scale;
|
|
7877
7877
|
return { scale: L, ox: O.ox + R * (1 - C), oy: O.oy + j * (1 - C) };
|
|
7878
7878
|
});
|
|
@@ -7898,8 +7898,8 @@ function qM({
|
|
|
7898
7898
|
if (G && c.current.dist > 0) {
|
|
7899
7899
|
const Z = G.getBoundingClientRect(), $ = R / c.current.dist, M = j - c.current.mx, W = C - c.current.my, H = j - Z.left, _ = C - Z.top;
|
|
7900
7900
|
a((B) => {
|
|
7901
|
-
const z = vd(B.scale * $,
|
|
7902
|
-
if (z ===
|
|
7901
|
+
const z = vd(B.scale * $, pr, Oa);
|
|
7902
|
+
if (z === pr) return Ts;
|
|
7903
7903
|
const E = z / B.scale;
|
|
7904
7904
|
return {
|
|
7905
7905
|
scale: z,
|
|
@@ -7913,18 +7913,18 @@ function qM({
|
|
|
7913
7913
|
}
|
|
7914
7914
|
if (S.size === 1) {
|
|
7915
7915
|
const L = T.x - O.x, U = T.y - O.y;
|
|
7916
|
-
(Math.abs(L) > 2 || Math.abs(U) > 2) && (d.current = !0), a((R) => R.scale <=
|
|
7916
|
+
(Math.abs(L) > 2 || Math.abs(U) > 2) && (d.current = !0), a((R) => R.scale <= pr ? R : { ...R, ox: R.ox + L, oy: R.oy + U });
|
|
7917
7917
|
}
|
|
7918
7918
|
}
|
|
7919
7919
|
function y(k) {
|
|
7920
7920
|
const S = l.current;
|
|
7921
|
-
S.delete(k.pointerId), S.size < 2 && (c.current = null), S.size === 0 && (f(!1), !d.current && i.scale <=
|
|
7921
|
+
S.delete(k.pointerId), S.size < 2 && (c.current = null), S.size === 0 && (f(!1), !d.current && i.scale <= pr && r());
|
|
7922
7922
|
}
|
|
7923
7923
|
function b(k) {
|
|
7924
|
-
i.scale >
|
|
7924
|
+
i.scale > pr ? a(Ts) : h(HM, k.clientX, k.clientY);
|
|
7925
7925
|
}
|
|
7926
7926
|
if (!n) return null;
|
|
7927
|
-
const w = i.scale >
|
|
7927
|
+
const w = i.scale > pr;
|
|
7928
7928
|
return gs(
|
|
7929
7929
|
/* @__PURE__ */ m(
|
|
7930
7930
|
"div",
|
|
@@ -9256,6 +9256,7 @@ const sb = {
|
|
|
9256
9256
|
computerMcpEnabled: !1,
|
|
9257
9257
|
transcriptView: "full",
|
|
9258
9258
|
skippedUpdateVersion: "",
|
|
9259
|
+
autoUpdateEnabled: !0,
|
|
9259
9260
|
customInstructions: "",
|
|
9260
9261
|
...sb
|
|
9261
9262
|
};
|
|
@@ -11098,7 +11099,7 @@ function Ou(e, t = eo()) {
|
|
|
11098
11099
|
};
|
|
11099
11100
|
return r >= 0 ? n[r] = a : n.unshift(a), Wo(n, t), a;
|
|
11100
11101
|
}
|
|
11101
|
-
function
|
|
11102
|
+
function xr(e, t, n = eo()) {
|
|
11102
11103
|
if (!e || !n) return;
|
|
11103
11104
|
const r = Zi(n), o = r.findIndex((i) => i.id === e);
|
|
11104
11105
|
o < 0 || (r[o] = { ...r[o], status: t, updatedAt: Date.now() }, Wo(r, n));
|
|
@@ -16188,7 +16189,7 @@ function lO(e, t = 0) {
|
|
|
16188
16189
|
return t === 401 || t === 403 ? "The speech API key was rejected. Check Voice settings." : t === 429 ? "Speech transcription is temporarily unavailable. Check API credit or try again later." : "Speech transcription failed. Try again.";
|
|
16189
16190
|
}
|
|
16190
16191
|
}
|
|
16191
|
-
function
|
|
16192
|
+
function wr({ className: e, type: t, ...n }) {
|
|
16192
16193
|
return /* @__PURE__ */ s(
|
|
16193
16194
|
Qv,
|
|
16194
16195
|
{
|
|
@@ -16329,7 +16330,7 @@ function mO() {
|
|
|
16329
16330
|
/* @__PURE__ */ m("div", { className: "space-y-2", children: [
|
|
16330
16331
|
/* @__PURE__ */ s("label", { htmlFor: "voice-api-key", className: "font-medium", children: "API key" }),
|
|
16331
16332
|
/* @__PURE__ */ s(
|
|
16332
|
-
|
|
16333
|
+
wr,
|
|
16333
16334
|
{
|
|
16334
16335
|
id: "voice-api-key",
|
|
16335
16336
|
type: "password",
|
|
@@ -16487,7 +16488,7 @@ function wc({
|
|
|
16487
16488
|
// pending so the label can morph in place instead of remounting.
|
|
16488
16489
|
/* @__PURE__ */ m("span", { className: "flex min-w-0 flex-1 items-center gap-2.5", children: [
|
|
16489
16490
|
h ? /* @__PURE__ */ s(ot, { className: "size-4 animate-spin" }) : u ? i ?? o : o,
|
|
16490
|
-
/* @__PURE__ */ s(
|
|
16491
|
+
/* @__PURE__ */ s(br, { className: "truncate", children: b })
|
|
16491
16492
|
] })
|
|
16492
16493
|
),
|
|
16493
16494
|
// Base UI menu items use this prop to decide whether selection dismisses
|
|
@@ -16538,7 +16539,7 @@ function g1({
|
|
|
16538
16539
|
}
|
|
16539
16540
|
);
|
|
16540
16541
|
}
|
|
16541
|
-
function
|
|
16542
|
+
function ir({
|
|
16542
16543
|
className: e,
|
|
16543
16544
|
onCheckedChange: t,
|
|
16544
16545
|
...n
|
|
@@ -17418,7 +17419,7 @@ const WO = Br(function({
|
|
|
17418
17419
|
] }) : null;
|
|
17419
17420
|
}), HO = Hn(
|
|
17420
17421
|
"session-files-panel",
|
|
17421
|
-
() => import("./SessionFilesPanel-
|
|
17422
|
+
() => import("./SessionFilesPanel-DIjaFFwk.js")
|
|
17422
17423
|
);
|
|
17423
17424
|
function kc() {
|
|
17424
17425
|
let e = document.activeElement;
|
|
@@ -18438,7 +18439,7 @@ function uR({
|
|
|
18438
18439
|
/* @__PURE__ */ m("div", { className: "flex flex-col gap-1.5", children: [
|
|
18439
18440
|
/* @__PURE__ */ s("label", { htmlFor: "machine-name", className: "text-xs font-medium text-muted-foreground", children: "Name" }),
|
|
18440
18441
|
/* @__PURE__ */ s(
|
|
18441
|
-
|
|
18442
|
+
wr,
|
|
18442
18443
|
{
|
|
18443
18444
|
id: "machine-name",
|
|
18444
18445
|
value: d,
|
|
@@ -18603,7 +18604,7 @@ function S1({
|
|
|
18603
18604
|
collapsed: t = !1,
|
|
18604
18605
|
onSelect: n = lx
|
|
18605
18606
|
}) {
|
|
18606
|
-
const [r, o] = N(null), [i, a] = N(null), { transportLive: l } = Qs(), c =
|
|
18607
|
+
const [r, o] = N(null), [i, a] = N(null), { transportLive: l } = Qs(), c = vr().machines, d = mR(!c, n), u = c ? {
|
|
18607
18608
|
entries: c.machines.map(fR),
|
|
18608
18609
|
activeId: c.activeId,
|
|
18609
18610
|
select: (S) => c.onSelect(S.id)
|
|
@@ -19062,9 +19063,9 @@ function kR({ user: e, scope: t, addConnector: n, onClose: r }) {
|
|
|
19062
19063
|
" Add a custom MCP server",
|
|
19063
19064
|
/* @__PURE__ */ s("button", { type: "button", onClick: r, className: "ml-auto text-xs font-normal text-muted-foreground hover:text-foreground", children: "Cancel" })
|
|
19064
19065
|
] }),
|
|
19065
|
-
/* @__PURE__ */ s(
|
|
19066
|
+
/* @__PURE__ */ s(wr, { value: o, onChange: (b) => i(b.target.value), placeholder: "Name", "aria-label": "Connector name", className: "h-8 text-xs" }),
|
|
19066
19067
|
/* @__PURE__ */ s(
|
|
19067
|
-
|
|
19068
|
+
wr,
|
|
19068
19069
|
{
|
|
19069
19070
|
value: a,
|
|
19070
19071
|
onChange: (b) => l(b.target.value),
|
|
@@ -19089,7 +19090,7 @@ function kR({ user: e, scope: t, addConnector: n, onClose: r }) {
|
|
|
19089
19090
|
),
|
|
19090
19091
|
/* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
|
|
19091
19092
|
u === "header" ? /* @__PURE__ */ s(
|
|
19092
|
-
|
|
19093
|
+
wr,
|
|
19093
19094
|
{
|
|
19094
19095
|
value: c,
|
|
19095
19096
|
onChange: (b) => d(b.target.value),
|
|
@@ -19152,7 +19153,7 @@ function SR({ user: e, scope: t, addConnector: n }) {
|
|
|
19152
19153
|
")"
|
|
19153
19154
|
] }) : null
|
|
19154
19155
|
] }),
|
|
19155
|
-
/* @__PURE__ */ s(
|
|
19156
|
+
/* @__PURE__ */ s(wr, { value: r, onChange: (x) => o(x.target.value), placeholder: "Search connectors, e.g. github, notion, stripe", "aria-label": "Search catalog", className: "h-8 text-xs" }),
|
|
19156
19157
|
d ? /* @__PURE__ */ s("p", { className: "px-1 text-xs text-destructive", children: d }) : null,
|
|
19157
19158
|
/* @__PURE__ */ s("ul", { className: "max-h-72 space-y-1 overflow-y-auto", children: i === null ? /* @__PURE__ */ s("li", { className: "px-1 text-xs text-muted-foreground", children: "Loading." }) : i.length === 0 ? /* @__PURE__ */ s("li", { className: "px-1 text-xs text-muted-foreground", children: "No matches." }) : i.map((x) => /* @__PURE__ */ m("li", { className: "flex items-center gap-2 rounded-lg px-2 py-1.5 text-xs hover:bg-foreground/[0.03]", "data-catalog": x.slug, children: [
|
|
19158
19159
|
/* @__PURE__ */ s(C1, { src: x.icon, alt: "" }),
|
|
@@ -19332,7 +19333,7 @@ function _R() {
|
|
|
19332
19333
|
children: [
|
|
19333
19334
|
/* @__PURE__ */ s(un, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
19334
19335
|
/* @__PURE__ */ s(
|
|
19335
|
-
|
|
19336
|
+
wr,
|
|
19336
19337
|
{
|
|
19337
19338
|
value: u,
|
|
19338
19339
|
onChange: (b) => f(b.target.value),
|
|
@@ -19445,7 +19446,7 @@ function FR({
|
|
|
19445
19446
|
]
|
|
19446
19447
|
}
|
|
19447
19448
|
) : /* @__PURE__ */ s(
|
|
19448
|
-
|
|
19449
|
+
wr,
|
|
19449
19450
|
{
|
|
19450
19451
|
value: l,
|
|
19451
19452
|
onChange: ($) => c($.target.value),
|
|
@@ -19510,7 +19511,7 @@ function FR({
|
|
|
19510
19511
|
},
|
|
19511
19512
|
children: [
|
|
19512
19513
|
/* @__PURE__ */ s(
|
|
19513
|
-
|
|
19514
|
+
wr,
|
|
19514
19515
|
{
|
|
19515
19516
|
value: i,
|
|
19516
19517
|
onChange: ($) => a($.target.value),
|
|
@@ -19655,7 +19656,7 @@ function FR({
|
|
|
19655
19656
|
},
|
|
19656
19657
|
children: [
|
|
19657
19658
|
/* @__PURE__ */ s(
|
|
19658
|
-
|
|
19659
|
+
wr,
|
|
19659
19660
|
{
|
|
19660
19661
|
value: y,
|
|
19661
19662
|
onChange: ($) => b($.target.value),
|
|
@@ -19746,16 +19747,16 @@ function DR({
|
|
|
19746
19747
|
onSettingsChange: t,
|
|
19747
19748
|
children: n
|
|
19748
19749
|
}) {
|
|
19749
|
-
const [r, o] = N(null), [i, a] = N(!0), [l, c] = N(null), [d, u] = N(!1), f = se(async (
|
|
19750
|
-
|
|
19750
|
+
const [r, o] = N(null), [i, a] = N(!0), [l, c] = N(null), [d, u] = N(!1), f = se(async (k = !1, S = !1) => {
|
|
19751
|
+
S || (a(!0), c(null));
|
|
19751
19752
|
try {
|
|
19752
|
-
const
|
|
19753
|
-
if (!A1(
|
|
19754
|
-
o(
|
|
19755
|
-
} catch (
|
|
19756
|
-
|
|
19753
|
+
const T = await xe(k ? "/api/install?refresh=1" : "/api/install", { cache: "no-store" });
|
|
19754
|
+
if (!A1(T)) throw new Error("Could not check for updates");
|
|
19755
|
+
o(T);
|
|
19756
|
+
} catch (O) {
|
|
19757
|
+
S || c(O instanceof Error ? O.message : "Could not check for updates");
|
|
19757
19758
|
} finally {
|
|
19758
|
-
|
|
19759
|
+
S || a(!1);
|
|
19759
19760
|
}
|
|
19760
19761
|
}, []);
|
|
19761
19762
|
V(() => {
|
|
@@ -19764,10 +19765,10 @@ function DR({
|
|
|
19764
19765
|
const h = r?.install?.channel;
|
|
19765
19766
|
V(() => {
|
|
19766
19767
|
if (h !== "release") return;
|
|
19767
|
-
const
|
|
19768
|
+
const k = setInterval(() => {
|
|
19768
19769
|
f(!1, !0);
|
|
19769
19770
|
}, 3e4);
|
|
19770
|
-
return () => clearInterval(
|
|
19771
|
+
return () => clearInterval(k);
|
|
19771
19772
|
}, [h, f]);
|
|
19772
19773
|
const p = r?.update ?? null, g = M1(p), x = OR(p, e.skippedUpdateVersion), y = se(async () => {
|
|
19773
19774
|
if (g)
|
|
@@ -19777,7 +19778,13 @@ function DR({
|
|
|
19777
19778
|
ve.error("Could not save — the update will keep nudging you");
|
|
19778
19779
|
}
|
|
19779
19780
|
u(!1);
|
|
19780
|
-
}, [g, t]), b = {
|
|
19781
|
+
}, [g, t]), b = se(async (k) => {
|
|
19782
|
+
try {
|
|
19783
|
+
await t({ autoUpdateEnabled: k });
|
|
19784
|
+
} catch {
|
|
19785
|
+
ve.error("Could not save auto-update");
|
|
19786
|
+
}
|
|
19787
|
+
}, [t]), w = {
|
|
19781
19788
|
info: r,
|
|
19782
19789
|
status: p,
|
|
19783
19790
|
channel: r?.install?.channel,
|
|
@@ -19791,9 +19798,11 @@ function DR({
|
|
|
19791
19798
|
drawerOpen: d,
|
|
19792
19799
|
openDrawer: () => u(!0),
|
|
19793
19800
|
closeDrawer: () => u(!1),
|
|
19794
|
-
skip: y
|
|
19801
|
+
skip: y,
|
|
19802
|
+
autoUpdateEnabled: e.autoUpdateEnabled !== !1,
|
|
19803
|
+
setAutoUpdateEnabled: b
|
|
19795
19804
|
};
|
|
19796
|
-
return /* @__PURE__ */ m(I1.Provider, { value:
|
|
19805
|
+
return /* @__PURE__ */ m(I1.Provider, { value: w, children: [
|
|
19797
19806
|
n,
|
|
19798
19807
|
/* @__PURE__ */ s(WR, {})
|
|
19799
19808
|
] });
|
|
@@ -19824,7 +19833,18 @@ function _1() {
|
|
|
19824
19833
|
);
|
|
19825
19834
|
}
|
|
19826
19835
|
function PR() {
|
|
19827
|
-
const {
|
|
19836
|
+
const {
|
|
19837
|
+
status: e,
|
|
19838
|
+
channel: t,
|
|
19839
|
+
updateCommand: n,
|
|
19840
|
+
checking: r,
|
|
19841
|
+
error: o,
|
|
19842
|
+
refresh: i,
|
|
19843
|
+
nudgeVisible: a,
|
|
19844
|
+
openDrawer: l,
|
|
19845
|
+
autoUpdateEnabled: c,
|
|
19846
|
+
setAutoUpdateEnabled: d
|
|
19847
|
+
} = hm(), u = e?.state === "available" || e?.state === "staged", f = t === "source" || t === "release", h = u && !e.restartSupported ? `${e.restartBlockedReason ?? "Automatic restart is unavailable on this install."}${n ? ` Update from a terminal instead: ${n}` : ""}` : null, p = o ?? h ?? (r ? "Checking for updates…" : u ? e?.message : t === "release" ? c ? "Downloads new releases. Restart to apply." : "Off — check and update yourself" : null);
|
|
19828
19848
|
return (
|
|
19829
19849
|
// A bare row, not a card. It sits inside the Computer card next to the
|
|
19830
19850
|
// Frontend and Computer version rows, because those three answer one
|
|
@@ -19845,25 +19865,35 @@ function PR() {
|
|
|
19845
19865
|
] }),
|
|
19846
19866
|
/* @__PURE__ */ m("div", { className: "min-w-0", children: [
|
|
19847
19867
|
/* @__PURE__ */ s("div", { className: "text-sm font-medium", children: "Updates" }),
|
|
19848
|
-
|
|
19868
|
+
p ? /* @__PURE__ */ s(
|
|
19849
19869
|
"div",
|
|
19850
19870
|
{
|
|
19851
19871
|
className: D(
|
|
19852
19872
|
"text-xs text-muted-foreground",
|
|
19853
|
-
o ||
|
|
19873
|
+
o || h ? "text-pretty" : "truncate",
|
|
19854
19874
|
o && "text-destructive"
|
|
19855
19875
|
),
|
|
19856
|
-
children:
|
|
19876
|
+
children: p
|
|
19857
19877
|
}
|
|
19858
19878
|
) : null
|
|
19859
19879
|
] })
|
|
19860
19880
|
] }),
|
|
19861
|
-
|
|
19862
|
-
|
|
19863
|
-
|
|
19864
|
-
|
|
19865
|
-
|
|
19866
|
-
|
|
19881
|
+
/* @__PURE__ */ m("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
19882
|
+
t === "release" ? /* @__PURE__ */ s(
|
|
19883
|
+
ir,
|
|
19884
|
+
{
|
|
19885
|
+
checked: c,
|
|
19886
|
+
onCheckedChange: (g) => void d(g),
|
|
19887
|
+
"aria-label": "Automatically download updates"
|
|
19888
|
+
}
|
|
19889
|
+
) : null,
|
|
19890
|
+
u ? /* @__PURE__ */ m(we, { size: "sm", onClick: l, children: [
|
|
19891
|
+
e?.state === "staged" ? /* @__PURE__ */ s(Dn, { className: "size-4" }) : /* @__PURE__ */ s(Vs, { className: "size-4" }),
|
|
19892
|
+
T1(e)
|
|
19893
|
+
] }) : /* @__PURE__ */ m(we, { size: "sm", variant: "outline", onClick: () => void i(!0), disabled: r || !f, children: [
|
|
19894
|
+
/* @__PURE__ */ s(Dn, { className: D("size-4", r && "animate-spin") }),
|
|
19895
|
+
"Check"
|
|
19896
|
+
] })
|
|
19867
19897
|
] })
|
|
19868
19898
|
] })
|
|
19869
19899
|
);
|
|
@@ -21706,34 +21736,34 @@ function q$({ className: e, isStreaming: t, children: n, ...r }) {
|
|
|
21706
21736
|
e
|
|
21707
21737
|
),
|
|
21708
21738
|
...r,
|
|
21709
|
-
children: n ?? /* @__PURE__ */ s(ze, { children: /* @__PURE__ */ s(
|
|
21739
|
+
children: n ?? /* @__PURE__ */ s(ze, { children: /* @__PURE__ */ s(br, { shimmer: t, children: t ? i ? `Thinking… ${i}` : "Thinking…" : i ? `Thought for ${i}` : "Thought" }) })
|
|
21710
21740
|
}
|
|
21711
21741
|
);
|
|
21712
21742
|
}
|
|
21713
21743
|
function V$({ className: e, children: t, ...n }) {
|
|
21714
21744
|
return /* @__PURE__ */ s(ra, { className: D("mt-2 text-sm", e), ...n, children: /* @__PURE__ */ s(Wi, { className: "ai-live-text max-w-full opacity-90", children: t }) });
|
|
21715
21745
|
}
|
|
21716
|
-
const K$ = Hn("OmgChatEngine", () => import("./chat-engine-
|
|
21746
|
+
const K$ = Hn("OmgChatEngine", () => import("./chat-engine-AzA5eEdf.js"));
|
|
21717
21747
|
function G$() {
|
|
21718
|
-
const e = () => void import("./chat-engine-
|
|
21748
|
+
const e = () => void import("./chat-engine-AzA5eEdf.js").catch(() => {
|
|
21719
21749
|
}), t = globalThis.requestIdleCallback;
|
|
21720
21750
|
typeof t == "function" ? t(e, { timeout: 3e3 }) : setTimeout(e, 1500);
|
|
21721
21751
|
}
|
|
21722
21752
|
const q1 = Hn(
|
|
21723
21753
|
"TermView",
|
|
21724
|
-
() => import("./TermView-
|
|
21725
|
-
), Vg = Hn("ShippedPage", () => import("./shipped-page-
|
|
21754
|
+
() => import("./TermView-DDfB2XdC.js").then((e) => ({ default: e.TermView }))
|
|
21755
|
+
), Vg = Hn("ShippedPage", () => import("./shipped-page-rfUFoqwY.js")), Y$ = Hn(
|
|
21726
21756
|
"SessionTokenUsageDialog",
|
|
21727
|
-
() => import("./session-token-usage-
|
|
21757
|
+
() => import("./session-token-usage-D7aT5gLm.js")
|
|
21728
21758
|
), X$ = Hn(
|
|
21729
21759
|
"CodingAgentsPage",
|
|
21730
|
-
() => import("./coding-agents-page-
|
|
21731
|
-
), J$ = Hn("ComputerPage", () => import("./computer-page-
|
|
21760
|
+
() => import("./coding-agents-page-BmJC3ueU.js")
|
|
21761
|
+
), J$ = Hn("ComputerPage", () => import("./computer-page-Dfqm9TAg.js")), V1 = Hn("BoardPage", () => import("./board-page-BpBn1uJC.js")), Kg = Hn(
|
|
21732
21762
|
"ResumeSessionSheet",
|
|
21733
|
-
() => import("./resume-session-sheet-
|
|
21763
|
+
() => import("./resume-session-sheet-D9avZQxS.js")
|
|
21734
21764
|
), Q$ = Hn(
|
|
21735
21765
|
"ChangelogPage",
|
|
21736
|
-
() => import("./ChangelogPage-
|
|
21766
|
+
() => import("./ChangelogPage-DxSQRCcs.js")
|
|
21737
21767
|
), sa = Kt("configured"), Z$ = {
|
|
21738
21768
|
claude: "Claude",
|
|
21739
21769
|
codex: "Codex",
|
|
@@ -21936,11 +21966,11 @@ function x8() {
|
|
|
21936
21966
|
const ty = Kt(() => {
|
|
21937
21967
|
});
|
|
21938
21968
|
function b8() {
|
|
21939
|
-
const { onOpenSettingsPage: e } =
|
|
21969
|
+
const { onOpenSettingsPage: e } = vr(), t = nt(ty);
|
|
21940
21970
|
return e ?? t;
|
|
21941
21971
|
}
|
|
21942
21972
|
function y8() {
|
|
21943
|
-
const { onPlanLimit: e } =
|
|
21973
|
+
const { onPlanLimit: e } = vr();
|
|
21944
21974
|
return se(
|
|
21945
21975
|
(t, n) => !e || !sw(t) ? !1 : (e({
|
|
21946
21976
|
message: t instanceof Error ? t.message : String(t),
|
|
@@ -22052,7 +22082,7 @@ function w8({
|
|
|
22052
22082
|
"aria-label": "Back",
|
|
22053
22083
|
className: "flex h-8 items-center gap-1 rounded-full pl-1.5 pr-3 text-[13px] font-medium text-muted-foreground transition-colors hover:text-foreground active:scale-[0.96]",
|
|
22054
22084
|
children: [
|
|
22055
|
-
/* @__PURE__ */ s(
|
|
22085
|
+
/* @__PURE__ */ s(yr, { className: "size-[18px]" }),
|
|
22056
22086
|
/* @__PURE__ */ s("span", { children: "Back" })
|
|
22057
22087
|
]
|
|
22058
22088
|
}
|
|
@@ -22916,7 +22946,7 @@ function Zg(e) {
|
|
|
22916
22946
|
}
|
|
22917
22947
|
}
|
|
22918
22948
|
function K8(e) {
|
|
22919
|
-
const [t, n] = N("idle"), [r, o] = N(0), i = K(0), a = K(0), l = K(null), c = K(null), { hostedTranscription: d } =
|
|
22949
|
+
const [t, n] = N("idle"), [r, o] = N(0), i = K(0), a = K(0), l = K(null), c = K(null), { hostedTranscription: d } = vr(), u = K(d);
|
|
22920
22950
|
u.current = d;
|
|
22921
22951
|
const f = K(!1), h = K(null), p = K(0), g = K(null), x = K(null), y = K(null), b = se(() => {
|
|
22922
22952
|
y.current !== null && (clearTimeout(y.current), y.current = null);
|
|
@@ -23895,7 +23925,7 @@ function d6({ user: e }) {
|
|
|
23895
23925
|
}, [i]), i)
|
|
23896
23926
|
return /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
|
|
23897
23927
|
/* @__PURE__ */ s("span", { className: "max-w-[10rem] text-right text-xs leading-tight text-muted-foreground", children: i }),
|
|
23898
|
-
/* @__PURE__ */ s(
|
|
23928
|
+
/* @__PURE__ */ s(ir, { checked: !1, disabled: !0, "aria-label": `Notifications unavailable: ${i}` })
|
|
23899
23929
|
] });
|
|
23900
23930
|
const a = async () => {
|
|
23901
23931
|
if (!r) {
|
|
@@ -23923,7 +23953,7 @@ function d6({ user: e }) {
|
|
|
23923
23953
|
}
|
|
23924
23954
|
};
|
|
23925
23955
|
return /* @__PURE__ */ s(
|
|
23926
|
-
|
|
23956
|
+
ir,
|
|
23927
23957
|
{
|
|
23928
23958
|
checked: t,
|
|
23929
23959
|
onCheckedChange: () => void a(),
|
|
@@ -24022,7 +24052,7 @@ function h6() {
|
|
|
24022
24052
|
defaultAgent: O,
|
|
24023
24053
|
viewer: T,
|
|
24024
24054
|
onAnalyticsEvent: L
|
|
24025
|
-
} =
|
|
24055
|
+
} = vr(), U = l5(x) || !!y.current;
|
|
24026
24056
|
V(() => {
|
|
24027
24057
|
if (b)
|
|
24028
24058
|
return document.documentElement.dataset.lfgEmbed = "true", () => {
|
|
@@ -24102,7 +24132,7 @@ function h6() {
|
|
|
24102
24132
|
/* @__PURE__ */ new Map()
|
|
24103
24133
|
), fe = K(0), Re = K(/* @__PURE__ */ new Map()), qe = K(0), at = K(0), st = K(/* @__PURE__ */ new Map()), [et, Lt] = N([]), [J, ie] = N(null), [pe, ce] = N(null), [Me, Pe] = N(!1), [Le, He] = N(null), Ue = K(Le);
|
|
24104
24134
|
Ue.current = Le;
|
|
24105
|
-
const [oe, de] = N([]), [ke, Ve] = N(!0), [Mt, gt] = N(null), [Rt, $t] = N(!1), [wt, Tt] = N(!1), [on, en] = N(null), [Zt, sn] = N(0), [
|
|
24135
|
+
const [oe, de] = N([]), [ke, Ve] = N(!0), [Mt, gt] = N(null), [Rt, $t] = N(!1), [wt, Tt] = N(!1), [on, en] = N(null), [Zt, sn] = N(0), [lr, gn] = N(!1), St = Vv(), qt = fh({ select: (v) => v.location.pathname }), Xn = fh({ select: (v) => v.location.search }), [Jt, vn] = N(
|
|
24106
24136
|
() => localStorage.getItem("lfg_user")
|
|
24107
24137
|
), [ae, Ne] = N(FM), [Fe, dt] = N(jf), [ht, Ut] = N([]);
|
|
24108
24138
|
V(() => {
|
|
@@ -24117,7 +24147,7 @@ function h6() {
|
|
|
24117
24147
|
}, [Jt, ae]);
|
|
24118
24148
|
const an = se((v) => {
|
|
24119
24149
|
OM(v), Ne(v === "owner" ? "" : v);
|
|
24120
|
-
}, []), _n = t5(qt), be = Fe.hiddenPages.includes(_n) ? Lo : _n, fn = be === "bots" ? qt.split("/").filter(Boolean) : [], Fn = fn[1] ?? null,
|
|
24150
|
+
}, []), _n = t5(qt), be = Fe.hiddenPages.includes(_n) ? Lo : _n, fn = be === "bots" ? qt.split("/").filter(Boolean) : [], Fn = fn[1] ?? null, cr = Fn === "new" ? "new" : fn[2] === "edit" ? Fn : null, wn = Fn && Fn !== "new" ? Fn : null, Nn = n5(qt), Ir = se(
|
|
24121
24151
|
(v) => ({
|
|
24122
24152
|
...v.embed ? { embed: v.embed } : {},
|
|
24123
24153
|
...v.embedOrigin ? { embedOrigin: v.embedOrigin } : {}
|
|
@@ -24130,12 +24160,12 @@ function h6() {
|
|
|
24130
24160
|
[St, Ir]
|
|
24131
24161
|
), so = se(() => {
|
|
24132
24162
|
St({ to: "/", search: Ir });
|
|
24133
|
-
}, [St, Ir]), ln = wn ? Xn.conversation ?? null : null, _r = be === "term" || l !== null,
|
|
24134
|
-
|
|
24163
|
+
}, [St, Ir]), ln = wn ? Xn.conversation ?? null : null, _r = be === "term" || l !== null, dr = K(be);
|
|
24164
|
+
dr.current = be;
|
|
24135
24165
|
const lt = se(
|
|
24136
24166
|
(v) => {
|
|
24137
|
-
const F = typeof v == "function" ? v(
|
|
24138
|
-
if (!o5(
|
|
24167
|
+
const F = typeof v == "function" ? v(dr.current) : v;
|
|
24168
|
+
if (!o5(dr.current, F)) return;
|
|
24139
24169
|
const te = (le) => ({
|
|
24140
24170
|
...le.embed ? { embed: le.embed } : {},
|
|
24141
24171
|
...le.embedOrigin ? { embedOrigin: le.embedOrigin } : {}
|
|
@@ -24182,11 +24212,11 @@ function h6() {
|
|
|
24182
24212
|
});
|
|
24183
24213
|
},
|
|
24184
24214
|
[St]
|
|
24185
|
-
), Sn = ZO(), { onOpenHostSettings:
|
|
24215
|
+
), Sn = ZO(), { onOpenHostSettings: ur } = vr(), { machines: Vr } = vr(), Kr = XC(
|
|
24186
24216
|
Vr?.activeId ?? cc().id,
|
|
24187
24217
|
Jt,
|
|
24188
24218
|
et.find((v) => v.email === Jt)
|
|
24189
|
-
), re = b && !!
|
|
24219
|
+
), re = b && !!ur, [Ce, Te] = N(() => U), [ct, Pt] = N(!1), [yt, jn] = N(!1);
|
|
24190
24220
|
V(() => {
|
|
24191
24221
|
be === "live" && Te(!0), be === "notifications" && Pt(!0), be === "artifacts" && jn(!0);
|
|
24192
24222
|
}, [be]), V(() => {
|
|
@@ -24557,7 +24587,7 @@ function h6() {
|
|
|
24557
24587
|
}, [Bt]);
|
|
24558
24588
|
const ao = se((v) => {
|
|
24559
24589
|
fa(v), $E(v, w) && localStorage.setItem("lfg_user", v);
|
|
24560
|
-
}, [w]),
|
|
24590
|
+
}, [w]), fr = Ee(
|
|
24561
24591
|
() => rt.filter(
|
|
24562
24592
|
(v) => v.sessionId && !(tn && v.spawnedBy === "schedule") && // A pane target means a driveable TUI session. Harness-backed
|
|
24563
24593
|
// sessions have no pane, so admit those explicitly; otherwise Codex
|
|
@@ -24568,8 +24598,8 @@ function h6() {
|
|
|
24568
24598
|
),
|
|
24569
24599
|
[rt, jm, tn]
|
|
24570
24600
|
), ei = Ee(
|
|
24571
|
-
() =>
|
|
24572
|
-
[
|
|
24601
|
+
() => fr.filter((v) => Zh(v, bt)),
|
|
24602
|
+
[fr, bt]
|
|
24573
24603
|
), Yr = Ee(
|
|
24574
24604
|
() => Array.from(
|
|
24575
24605
|
/* @__PURE__ */ new Set([
|
|
@@ -24595,12 +24625,12 @@ function h6() {
|
|
|
24595
24625
|
const v = new Set(jc.map((F) => F.id));
|
|
24596
24626
|
return Pc.filter((F) => v.has(F.agentId));
|
|
24597
24627
|
}, [Pc, Bt, jc]), qm = Ee(
|
|
24598
|
-
() =>
|
|
24599
|
-
[
|
|
24628
|
+
() => fr.map((v) => v.sessionId).filter((v) => !!v),
|
|
24629
|
+
[fr]
|
|
24600
24630
|
), As = se(
|
|
24601
24631
|
(v) => {
|
|
24602
24632
|
if (!v.sessionId) return;
|
|
24603
|
-
const F =
|
|
24633
|
+
const F = fr.find(
|
|
24604
24634
|
(le) => le.sessionId === v.sessionId || le.nativeSessionId === v.sessionId
|
|
24605
24635
|
), te = F?.project || v.project;
|
|
24606
24636
|
if (te && Gr(te), lt("live"), F?.sessionId) {
|
|
@@ -24619,16 +24649,16 @@ function h6() {
|
|
|
24619
24649
|
reviewLabel: v.reviewLabel
|
|
24620
24650
|
}), h({ sid: v.sessionId, n: Date.now() });
|
|
24621
24651
|
},
|
|
24622
|
-
[
|
|
24652
|
+
[fr, Jt, lt]
|
|
24623
24653
|
);
|
|
24624
24654
|
V(() => {
|
|
24625
24655
|
const v = y.current;
|
|
24626
24656
|
if (!v || ke || ga) return;
|
|
24627
|
-
const F =
|
|
24657
|
+
const F = fr.find(
|
|
24628
24658
|
(te) => te.sessionId === v || te.nativeSessionId === v
|
|
24629
24659
|
);
|
|
24630
24660
|
F && (y.current = null, Zh(F, bt) || fa("__all"), Bt !== "__all" && F.project !== Bt && Gr("__all"), lt("live"), h({ sid: F.sessionId ?? v, n: Date.now() }));
|
|
24631
|
-
}, [
|
|
24661
|
+
}, [fr, ke, bt, Bt, ga, lt]), V(() => {
|
|
24632
24662
|
if (!y.current || ke || ga) return;
|
|
24633
24663
|
const v = window.setTimeout(() => {
|
|
24634
24664
|
const F = y.current;
|
|
@@ -24678,11 +24708,11 @@ function h6() {
|
|
|
24678
24708
|
V(() => {
|
|
24679
24709
|
const v = p?.sessionId;
|
|
24680
24710
|
if (!v) return;
|
|
24681
|
-
const F =
|
|
24711
|
+
const F = fr.find(
|
|
24682
24712
|
(te) => te.sessionId === v || te.nativeSessionId === v
|
|
24683
24713
|
);
|
|
24684
24714
|
F?.sessionId && (g(null), h({ sid: F.sessionId, n: Date.now() }));
|
|
24685
|
-
}, [
|
|
24715
|
+
}, [fr, p]);
|
|
24686
24716
|
const Wc = qm.join(","), nn = Ee(() => pb(), []) === "ws", Vm = K(0), Km = K(xn);
|
|
24687
24717
|
Km.current = xn;
|
|
24688
24718
|
const Hc = se((v) => {
|
|
@@ -25427,7 +25457,7 @@ ${v.reasoning.map((Rr) => `- ${Rr}`).join(`
|
|
|
25427
25457
|
coach: pe?.hosted?.coach ?? null,
|
|
25428
25458
|
sessionCount: rt.length,
|
|
25429
25459
|
autoAgentCount: ne.length
|
|
25430
|
-
}, lh = p5(ah), Rv = !
|
|
25460
|
+
}, lh = p5(ah), Rv = !lr && x5({
|
|
25431
25461
|
embedded: b,
|
|
25432
25462
|
bare: k,
|
|
25433
25463
|
introSeen: Qc,
|
|
@@ -25526,7 +25556,7 @@ ${v.reasoning.map((Rr) => `- ${Rr}`).join(`
|
|
|
25526
25556
|
// composer mounted underneath means it rides the keyboard up and down (and
|
|
25527
25557
|
// repads <main> as it goes) behind the sheet — motion you can see through
|
|
25528
25558
|
// the backdrop, for a control you can't reach.
|
|
25529
|
-
!l && be === "live", $v = td ? "pb-[calc(var(--lfg-inline-composer-height,var(--lfg-composer-clear))+var(--lfg-mobile-surface-dock-height))] [scroll-padding-bottom:calc(var(--lfg-inline-composer-height,var(--lfg-composer-clear))+var(--lfg-mobile-surface-dock-height))]" : R && (be === "bots" || be === "auto") ? "pb-[calc(var(--lfg-mobile-surface-dock-height)+var(--lfg-device-safe-bottom))] [scroll-padding-bottom:calc(var(--lfg-mobile-surface-dock-height)+var(--lfg-device-safe-bottom))]" : be === "live" ? Z ? "pb-[calc(var(--lfg-inline-composer-height,var(--lfg-composer-clear))+0.75rem)] md:pb-3" : "pb-[var(--lfg-above-orb)] md:pb-3" : "pb-3", Zr =
|
|
25559
|
+
!l && be === "live", $v = td ? "pb-[calc(var(--lfg-inline-composer-height,var(--lfg-composer-clear))+var(--lfg-mobile-surface-dock-height))] [scroll-padding-bottom:calc(var(--lfg-inline-composer-height,var(--lfg-composer-clear))+var(--lfg-mobile-surface-dock-height))]" : R && (be === "bots" || be === "auto") ? "pb-[calc(var(--lfg-mobile-surface-dock-height)+var(--lfg-device-safe-bottom))] [scroll-padding-bottom:calc(var(--lfg-mobile-surface-dock-height)+var(--lfg-device-safe-bottom))]" : be === "live" ? Z ? "pb-[calc(var(--lfg-inline-composer-height,var(--lfg-composer-clear))+0.75rem)] md:pb-3" : "pb-[var(--lfg-above-orb)] md:pb-3" : "pb-3", Zr = cr === "new" ? "new" : cr ? pt.find((v) => v.id === cr) ?? null : null, ch = be === "bots" && j, nd = be === "auto" && j, dh = /* @__PURE__ */ s(
|
|
25530
25560
|
iz,
|
|
25531
25561
|
{
|
|
25532
25562
|
autoAgents: ne,
|
|
@@ -25662,7 +25692,7 @@ ${v.reasoning.map((Rr) => `- ${Rr}`).join(`
|
|
|
25662
25692
|
onOpenTab: lt,
|
|
25663
25693
|
extraTabs: Sn,
|
|
25664
25694
|
showSettings: !1,
|
|
25665
|
-
onOpenHostSettings: re ?
|
|
25695
|
+
onOpenHostSettings: re ? ur : void 0
|
|
25666
25696
|
}
|
|
25667
25697
|
)
|
|
25668
25698
|
] }) })
|
|
@@ -25703,7 +25733,7 @@ ${v.reasoning.map((Rr) => `- ${Rr}`).join(`
|
|
|
25703
25733
|
"aria-label": "Back to Live",
|
|
25704
25734
|
className: "glass-island flex h-11 items-center gap-1 rounded-full pl-2 pr-3 text-[13px] font-medium text-muted-foreground transition-colors hover:text-foreground active:scale-[0.96]",
|
|
25705
25735
|
children: [
|
|
25706
|
-
/* @__PURE__ */ s(
|
|
25736
|
+
/* @__PURE__ */ s(yr, { className: "size-[18px]" }),
|
|
25707
25737
|
/* @__PURE__ */ s("span", { children: "Live" })
|
|
25708
25738
|
]
|
|
25709
25739
|
}
|
|
@@ -25730,7 +25760,7 @@ ${v.reasoning.map((Rr) => `- ${Rr}`).join(`
|
|
|
25730
25760
|
"aria-label": "Back to Live",
|
|
25731
25761
|
className: "flex h-8 items-center gap-1 rounded-full pl-1.5 pr-3 text-[13px] font-medium tracking-[-0.01em] text-muted-foreground transition-colors duration-200 ease-out hover:text-foreground active:scale-[0.96]",
|
|
25732
25762
|
children: [
|
|
25733
|
-
/* @__PURE__ */ s(
|
|
25763
|
+
/* @__PURE__ */ s(yr, { className: "size-[18px]" }),
|
|
25734
25764
|
/* @__PURE__ */ s("span", { children: "Live" })
|
|
25735
25765
|
]
|
|
25736
25766
|
}
|
|
@@ -25755,7 +25785,7 @@ ${v.reasoning.map((Rr) => `- ${Rr}`).join(`
|
|
|
25755
25785
|
"aria-label": "Back",
|
|
25756
25786
|
className: "flex h-8 items-center gap-1 rounded-full pl-1.5 pr-3 text-[13px] font-medium tracking-[-0.01em] text-muted-foreground transition-colors duration-200 ease-out hover:text-foreground active:scale-[0.96]",
|
|
25757
25787
|
children: [
|
|
25758
|
-
/* @__PURE__ */ s(
|
|
25788
|
+
/* @__PURE__ */ s(yr, { className: "size-[18px]" }),
|
|
25759
25789
|
/* @__PURE__ */ s("span", { children: b || be === "settings" ? "Live" : "Settings" })
|
|
25760
25790
|
]
|
|
25761
25791
|
}
|
|
@@ -25811,7 +25841,7 @@ ${v.reasoning.map((Rr) => `- ${Rr}`).join(`
|
|
|
25811
25841
|
onOpenTab: lt,
|
|
25812
25842
|
extraTabs: Sn,
|
|
25813
25843
|
showSettings: !b,
|
|
25814
|
-
onOpenHostSettings: b && re ?
|
|
25844
|
+
onOpenHostSettings: b && re ? ur : void 0
|
|
25815
25845
|
}
|
|
25816
25846
|
)
|
|
25817
25847
|
] }) })
|
|
@@ -25895,7 +25925,7 @@ ${v.reasoning.map((Rr) => `- ${Rr}`).join(`
|
|
|
25895
25925
|
onOpenTab: lt,
|
|
25896
25926
|
extraTabs: Sn,
|
|
25897
25927
|
showSettings: !b,
|
|
25898
|
-
onOpenHostSettings: re ?
|
|
25928
|
+
onOpenHostSettings: re ? ur : void 0
|
|
25899
25929
|
}
|
|
25900
25930
|
),
|
|
25901
25931
|
repos: oe,
|
|
@@ -26961,7 +26991,7 @@ function v6({
|
|
|
26961
26991
|
b.lines.length > 0 && /* @__PURE__ */ m("div", { className: "mt-3 overflow-hidden rounded-xl border border-border bg-muted/40", children: [
|
|
26962
26992
|
/* @__PURE__ */ m("div", { className: "flex items-center gap-2 border-b border-border px-3 py-1.5 text-xs font-medium text-muted-foreground", children: [
|
|
26963
26993
|
b.running ? /* @__PURE__ */ s(ot, { className: "size-3.5 animate-spin" }) : b.error ? /* @__PURE__ */ s("span", { className: "size-2 rounded-full bg-red-500" }) : /* @__PURE__ */ s(Dt, { className: "size-3.5 text-emerald-500" }),
|
|
26964
|
-
/* @__PURE__ */ s(
|
|
26994
|
+
/* @__PURE__ */ s(br, { children: b.running ? "Installing agents…" : b.error ? "Install failed" : "Install complete" })
|
|
26965
26995
|
] }),
|
|
26966
26996
|
/* @__PURE__ */ s(
|
|
26967
26997
|
"pre",
|
|
@@ -26982,7 +27012,7 @@ function v6({
|
|
|
26982
27012
|
className: "mt-4 flex w-full items-center justify-center gap-2 rounded-xl bg-foreground px-3 py-2.5 text-sm font-medium text-background transition-opacity disabled:opacity-50",
|
|
26983
27013
|
children: [
|
|
26984
27014
|
f || Y ? /* @__PURE__ */ s(ot, { className: "size-4 animate-spin" }) : null,
|
|
26985
|
-
/* @__PURE__ */ s(
|
|
27015
|
+
/* @__PURE__ */ s(br, { children: Y ? "Installing selected agents…" : ge > 0 ? `Install ${ge} selected ${ge === 1 ? "agent" : "agents"}` : "Select agents to install" })
|
|
26986
27016
|
]
|
|
26987
27017
|
}
|
|
26988
27018
|
),
|
|
@@ -27690,7 +27720,7 @@ function _6({
|
|
|
27690
27720
|
stageOverride: Oe = null,
|
|
27691
27721
|
hostSettingsInMenu: De = !1
|
|
27692
27722
|
}) {
|
|
27693
|
-
const he =
|
|
27723
|
+
const he = vr().machines, Ae = Nc(), { conversations: je, selectedConversationId: Ge, markRead: rt } = nt(Mc), Ye = 4, Xe = r || "__all", ue = encodeURIComponent(Xe), Be = `lfg_stage_pinned:${ue}`, Qe = `lfg_rail_collapsed:${ue}`, Je = se(() => {
|
|
27694
27724
|
try {
|
|
27695
27725
|
const re = localStorage.getItem(Be) ?? (Xe === "__all" ? localStorage.getItem("lfg_stage_pinned") : null);
|
|
27696
27726
|
if (!re) return [];
|
|
@@ -27856,7 +27886,7 @@ function _6({
|
|
|
27856
27886
|
for (const Ce of Nu(M, e, je))
|
|
27857
27887
|
Ce.sessionId && re.set(Ce.sessionId, Ce.bot);
|
|
27858
27888
|
return re;
|
|
27859
|
-
}, [je, M, e]),
|
|
27889
|
+
}, [je, M, e]), lr = se(
|
|
27860
27890
|
(re) => {
|
|
27861
27891
|
for (const [Ce, Te] of sn) if (Te.id === re) return Ce;
|
|
27862
27892
|
return null;
|
|
@@ -27867,7 +27897,7 @@ function _6({
|
|
|
27867
27897
|
[M, W]
|
|
27868
27898
|
), St = W ? je.find(
|
|
27869
27899
|
(re) => re.botId === W && (re.conversationId === Ge || re.sessionId === Ge)
|
|
27870
|
-
)?.sessionId ??
|
|
27900
|
+
)?.sessionId ?? lr(W) : null;
|
|
27871
27901
|
V(() => {
|
|
27872
27902
|
$ !== "chat" || !St || (X((re) => re === St ? re : St), at(St));
|
|
27873
27903
|
}, [$, St]);
|
|
@@ -27905,7 +27935,7 @@ function _6({
|
|
|
27905
27935
|
}, [Fn]), V(() => {
|
|
27906
27936
|
qe && document.querySelector(`[data-rail-sid="${qe}"]`)?.scrollIntoView({ block: "nearest" });
|
|
27907
27937
|
}, [qe]);
|
|
27908
|
-
const
|
|
27938
|
+
const cr = se(
|
|
27909
27939
|
(re) => {
|
|
27910
27940
|
const Ce = de.current ? fn.indexOf(de.current) : -1, Te = fn.indexOf(re);
|
|
27911
27941
|
if (Ce < 0 || Te < 0) {
|
|
@@ -27920,12 +27950,12 @@ function _6({
|
|
|
27920
27950
|
), wn = se(
|
|
27921
27951
|
(re, Ce) => {
|
|
27922
27952
|
if (Ce && de.current) {
|
|
27923
|
-
|
|
27953
|
+
cr(re), Mt(re);
|
|
27924
27954
|
return;
|
|
27925
27955
|
}
|
|
27926
27956
|
de.current = re, at(re), on(re), Mt(re);
|
|
27927
27957
|
},
|
|
27928
|
-
[
|
|
27958
|
+
[cr, on, Mt]
|
|
27929
27959
|
), Nn = se(
|
|
27930
27960
|
async (re) => {
|
|
27931
27961
|
if (!re) return;
|
|
@@ -27966,7 +27996,7 @@ function _6({
|
|
|
27966
27996
|
columnIds: wt,
|
|
27967
27997
|
activate: wn,
|
|
27968
27998
|
pulseStage: Mt,
|
|
27969
|
-
selectTo:
|
|
27999
|
+
selectTo: cr,
|
|
27970
28000
|
togglePin: en,
|
|
27971
28001
|
closeColumn: Zt,
|
|
27972
28002
|
closeSession: Hr,
|
|
@@ -27988,7 +28018,7 @@ function _6({
|
|
|
27988
28018
|
columnIds: wt,
|
|
27989
28019
|
activate: wn,
|
|
27990
28020
|
pulseStage: Mt,
|
|
27991
|
-
selectTo:
|
|
28021
|
+
selectTo: cr,
|
|
27992
28022
|
togglePin: en,
|
|
27993
28023
|
closeColumn: Zt,
|
|
27994
28024
|
closeSession: Hr,
|
|
@@ -28132,7 +28162,7 @@ function _6({
|
|
|
28132
28162
|
},
|
|
28133
28163
|
Ce
|
|
28134
28164
|
);
|
|
28135
|
-
},
|
|
28165
|
+
}, dr = Ee(() => wt.map((re) => {
|
|
28136
28166
|
if (t?.sessionId === re)
|
|
28137
28167
|
return { sid: re, session: t };
|
|
28138
28168
|
const Ce = qt.nodeForSessionId(re), Te = Ce?.session.sessionId ?? re;
|
|
@@ -28230,7 +28260,7 @@ function _6({
|
|
|
28230
28260
|
}, [$, St, gn, qt, e]), Jn = Ee(() => {
|
|
28231
28261
|
const re = Q ? Ve.get(Q) : void 0;
|
|
28232
28262
|
return Q && re ? [{ sid: Q, session: re }] : [];
|
|
28233
|
-
}, [Q, Ve]), Sn = $ === "chat" ? kn : $ === "board" ? Jn :
|
|
28263
|
+
}, [Q, Ve]), Sn = $ === "chat" ? kn : $ === "board" ? Jn : dr, ur = Sn.length + ($ === "board" ? 1 : 0), Vr = Nu(M, e, je), Kr = (
|
|
28234
28264
|
// Same small-caps category header the Chat rail puts over Working and Idle.
|
|
28235
28265
|
// The switch bar says which surface you are on; this says what the list is
|
|
28236
28266
|
// and how many, which is what the other rail lists all say.
|
|
@@ -28403,7 +28433,7 @@ function _6({
|
|
|
28403
28433
|
className: D(
|
|
28404
28434
|
"grid h-full min-h-0 min-w-0 flex-1 gap-3",
|
|
28405
28435
|
// 1 pane → full; 2 → side by side; 3-4 → 2×2 (panes 1&2 top, 3&4 bottom).
|
|
28406
|
-
|
|
28436
|
+
ur <= 1 ? "grid-cols-1 grid-rows-1" : ur === 2 ? "grid-cols-2 grid-rows-1" : "grid-cols-2 grid-rows-2"
|
|
28407
28437
|
),
|
|
28408
28438
|
children: $ === "auto" ? /* @__PURE__ */ s("div", { className: "h-full min-h-0 overflow-y-auto px-2 pt-2", children: Oe }) : $ === "board" ? /* @__PURE__ */ m(ze, { children: [
|
|
28409
28439
|
/* @__PURE__ */ s("div", { className: "h-full min-h-0 min-w-0 overflow-hidden pt-2", children: /* @__PURE__ */ s(G1.Provider, { value: on, children: Oe }) }),
|
|
@@ -28415,7 +28445,7 @@ function _6({
|
|
|
28415
28445
|
className: "h-full min-h-0 min-w-0",
|
|
28416
28446
|
children: lt(
|
|
28417
28447
|
Ce,
|
|
28418
|
-
$ !== "chat" && (
|
|
28448
|
+
$ !== "chat" && (dr.length > 1 || Ce.shippedReview) ? () => Zt(re) : void 0
|
|
28419
28449
|
)
|
|
28420
28450
|
},
|
|
28421
28451
|
re
|
|
@@ -29170,7 +29200,7 @@ function xy({
|
|
|
29170
29200
|
title: "Group related findings and launch linked agents to execute them",
|
|
29171
29201
|
children: [
|
|
29172
29202
|
t ? /* @__PURE__ */ s(ot, { className: "animate-spin" }) : /* @__PURE__ */ s(Ks, {}),
|
|
29173
|
-
o ? /* @__PURE__ */ s(
|
|
29203
|
+
o ? /* @__PURE__ */ s(br, { children: t ? "Starting…" : "Triage & execute" }) : null
|
|
29174
29204
|
]
|
|
29175
29205
|
}
|
|
29176
29206
|
);
|
|
@@ -29239,7 +29269,7 @@ function $6({
|
|
|
29239
29269
|
onClick: () => void w(),
|
|
29240
29270
|
disabled: o,
|
|
29241
29271
|
className: "shrink-0 rounded-lg bg-warning px-3 py-1.5 font-medium text-white disabled:opacity-50",
|
|
29242
|
-
children: /* @__PURE__ */ s(
|
|
29272
|
+
children: /* @__PURE__ */ s(br, { children: o ? "Continuing…" : "Continue" })
|
|
29243
29273
|
}
|
|
29244
29274
|
) : null,
|
|
29245
29275
|
g ? /* @__PURE__ */ s(
|
|
@@ -29249,7 +29279,7 @@ function $6({
|
|
|
29249
29279
|
onClick: () => void y("opus"),
|
|
29250
29280
|
disabled: o,
|
|
29251
29281
|
className: "shrink-0 rounded-lg bg-warning px-3 py-1.5 font-medium text-white disabled:opacity-50",
|
|
29252
|
-
children: /* @__PURE__ */ s(
|
|
29282
|
+
children: /* @__PURE__ */ s(br, { children: o ? "Resuming…" : "Resume on Opus" })
|
|
29253
29283
|
}
|
|
29254
29284
|
) : null,
|
|
29255
29285
|
x ? /* @__PURE__ */ s(
|
|
@@ -29259,7 +29289,7 @@ function $6({
|
|
|
29259
29289
|
onClick: () => void y("opencode/big-pickle"),
|
|
29260
29290
|
disabled: o,
|
|
29261
29291
|
className: "shrink-0 rounded-lg bg-warning px-3 py-1.5 font-medium text-white disabled:opacity-50",
|
|
29262
|
-
children: /* @__PURE__ */ s(
|
|
29292
|
+
children: /* @__PURE__ */ s(br, { children: o ? "Switching…" : "Use Big Pickle" })
|
|
29263
29293
|
}
|
|
29264
29294
|
) : null,
|
|
29265
29295
|
u && !h && !p ? /* @__PURE__ */ s(
|
|
@@ -29269,7 +29299,7 @@ function $6({
|
|
|
29269
29299
|
onClick: () => void b(),
|
|
29270
29300
|
disabled: o || !r,
|
|
29271
29301
|
className: "shrink-0 rounded-lg bg-warning px-3 py-1.5 font-medium text-white disabled:opacity-50",
|
|
29272
|
-
children: /* @__PURE__ */ s(
|
|
29302
|
+
children: /* @__PURE__ */ s(br, { children: o ? "Opening…" : `Sign in to ${f}` })
|
|
29273
29303
|
}
|
|
29274
29304
|
) : null,
|
|
29275
29305
|
p ? /* @__PURE__ */ m("span", { className: "flex shrink-0 items-center gap-1.5 rounded-lg bg-emerald-500/15 px-3 py-1.5 font-medium text-emerald-700 dark:text-emerald-300", children: [
|
|
@@ -29882,7 +29912,7 @@ function B6({
|
|
|
29882
29912
|
...Ge ? { user: Ge } : {}
|
|
29883
29913
|
})
|
|
29884
29914
|
});
|
|
29885
|
-
if (
|
|
29915
|
+
if (xr(J?.id, "sent"), ce.msg?.status === "held") {
|
|
29886
29916
|
const Me = ce.msg;
|
|
29887
29917
|
Ye(
|
|
29888
29918
|
(Pe) => Pe.some((Le) => Le.id === Me.id) ? Pe : [...Pe, Me]
|
|
@@ -29903,7 +29933,7 @@ function B6({
|
|
|
29903
29933
|
prompt: pe,
|
|
29904
29934
|
user: e.assignedUser || void 0
|
|
29905
29935
|
})
|
|
29906
|
-
}),
|
|
29936
|
+
}), xr(J?.id, "sent");
|
|
29907
29937
|
for (const ce of at)
|
|
29908
29938
|
ce.previewUrl && URL.revokeObjectURL(ce.previewUrl);
|
|
29909
29939
|
_([]), I(), ve.success("Session resumed"), await d();
|
|
@@ -29928,8 +29958,8 @@ function B6({
|
|
|
29928
29958
|
},
|
|
29929
29959
|
{ body: { mode: Re } }
|
|
29930
29960
|
)
|
|
29931
|
-
).then(() =>
|
|
29932
|
-
|
|
29961
|
+
).then(() => xr(J?.id, "sent")).catch((ce) => {
|
|
29962
|
+
xr(J?.id, "draft"), w((Me) => Me || qe), l(ce instanceof Error ? ce.message : String(ce));
|
|
29933
29963
|
});
|
|
29934
29964
|
for (const ce of g) x(ce, qe);
|
|
29935
29965
|
for (const ce of at)
|
|
@@ -29938,7 +29968,7 @@ function B6({
|
|
|
29938
29968
|
l(ce instanceof Error ? ce.message : String(ce));
|
|
29939
29969
|
});
|
|
29940
29970
|
} catch (ie) {
|
|
29941
|
-
|
|
29971
|
+
xr(J?.id, "draft"), l(ie instanceof Error ? ie.message : String(ie)), w((pe) => pe || qe);
|
|
29942
29972
|
} finally {
|
|
29943
29973
|
S(!1);
|
|
29944
29974
|
}
|
|
@@ -31925,7 +31955,7 @@ const V6 = Br(function({
|
|
|
31925
31955
|
top: ae.scrollTop,
|
|
31926
31956
|
stick: f
|
|
31927
31957
|
}), Re(!0), requestAnimationFrame(() => Rt.current?.focus());
|
|
31928
|
-
}, [Ge, f]),
|
|
31958
|
+
}, [Ge, f]), lr = se(() => {
|
|
31929
31959
|
Tt.current += 1, Re(!1), gt(null), Ve(null), Ue(null), de(null), J([]), Ia();
|
|
31930
31960
|
const ae = d.current, Ne = $t.current;
|
|
31931
31961
|
if ($t.current = null, !ae || !Ne) return;
|
|
@@ -31939,12 +31969,12 @@ const V6 = Br(function({
|
|
|
31939
31969
|
}, [Ae, $e, Se]), gn = se(
|
|
31940
31970
|
(ae) => {
|
|
31941
31971
|
if (ae.key === "Escape") {
|
|
31942
|
-
ae.preventDefault(),
|
|
31972
|
+
ae.preventDefault(), lr();
|
|
31943
31973
|
return;
|
|
31944
31974
|
}
|
|
31945
31975
|
ae.key === "Enter" && (ae.preventDefault(), Zt(ae.shiftKey ? 1 : -1));
|
|
31946
31976
|
},
|
|
31947
|
-
[
|
|
31977
|
+
[lr, Zt]
|
|
31948
31978
|
);
|
|
31949
31979
|
V(() => {
|
|
31950
31980
|
Tt.current += 1, wt.current = !1, $t.current = null, Re(!1), at(""), et([]), J([]), pe(0), Me(!1), Le(0), Ve(null), gt(null), Ue(null), de(null), Ia();
|
|
@@ -32230,7 +32260,7 @@ const V6 = Br(function({
|
|
|
32230
32260
|
"button",
|
|
32231
32261
|
{
|
|
32232
32262
|
type: "button",
|
|
32233
|
-
onClick:
|
|
32263
|
+
onClick: lr,
|
|
32234
32264
|
"aria-label": "Close find",
|
|
32235
32265
|
title: "Close find (Escape)",
|
|
32236
32266
|
className: "flex size-6 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-accent hover:text-foreground",
|
|
@@ -33331,7 +33361,7 @@ function Fm({
|
|
|
33331
33361
|
onClick: () => void L(l.parent),
|
|
33332
33362
|
className: "flex w-full items-center gap-3 border-b border-border px-3 py-3 text-left active:bg-muted",
|
|
33333
33363
|
children: [
|
|
33334
|
-
/* @__PURE__ */ s("span", { className: "flex size-9 items-center justify-center rounded-xl bg-muted", children: /* @__PURE__ */ s(
|
|
33364
|
+
/* @__PURE__ */ s("span", { className: "flex size-9 items-center justify-center rounded-xl bg-muted", children: /* @__PURE__ */ s(yr, { className: "size-4" }) }),
|
|
33335
33365
|
/* @__PURE__ */ s("span", { className: "text-sm font-medium", children: "Back" })
|
|
33336
33366
|
]
|
|
33337
33367
|
}
|
|
@@ -33659,7 +33689,7 @@ function Qd({
|
|
|
33659
33689
|
codingAgents: x,
|
|
33660
33690
|
agentRequest: y
|
|
33661
33691
|
}) {
|
|
33662
|
-
const b = Qs(), w = Ns(), k = nt(sa), S = nt(to), { defaultAgent: O } =
|
|
33692
|
+
const b = Qs(), w = Ns(), k = nt(sa), S = nt(to), { defaultAgent: O } = vr(), T = Bi(S.defaultAgent, O), L = (ne) => w.defaults[ne] ?? no[ne], U = (ne) => {
|
|
33663
33693
|
const Ze = ne === S.defaultAgent && S.defaultModel ? S.defaultModel : "";
|
|
33664
33694
|
return !S.showComposerModels && Ze ? Ze : localStorage.getItem(`lfg_model_${ne}`) || Ze || L(ne);
|
|
33665
33695
|
}, [R, j] = N(
|
|
@@ -33838,8 +33868,8 @@ function Qd({
|
|
|
33838
33868
|
model: Nt,
|
|
33839
33869
|
overLimit: it || void 0
|
|
33840
33870
|
})
|
|
33841
|
-
}).then(() => (
|
|
33842
|
-
throw
|
|
33871
|
+
}).then(() => (xr(pt?.id, "sent"), Ze && ee(""), c())).catch((tt) => {
|
|
33872
|
+
throw xr(pt?.id, "draft"), ee((Vt) => Vt || Ze), tt;
|
|
33843
33873
|
}),
|
|
33844
33874
|
{
|
|
33845
33875
|
loading: "Resuming session…",
|
|
@@ -33871,7 +33901,7 @@ function Qd({
|
|
|
33871
33901
|
V(() => {
|
|
33872
33902
|
e && A(Ds(r || localStorage.getItem("lfg_user"), n));
|
|
33873
33903
|
}, [e, r, n]);
|
|
33874
|
-
const Zt = w.models[R] ?? Nr[R], sn = ks(R, M),
|
|
33904
|
+
const Zt = w.models[R] ?? Nr[R], sn = ks(R, M), lr = S.showComposerFastMode && IT({ agent: R, model: M }), gn = B && lr, St = AT({ agent: R, model: M, thinkingLevels: sn }), qt = E && St && gn && H === "high", Xn = o !== "__all" ? t.find((ne) => zr(ne) === o) : void 0, Jt = !!Xn, vn = o === "__all", ae = gT({
|
|
33875
33905
|
scopedCwd: Xn?.cwd,
|
|
33876
33906
|
lastCwd: Z,
|
|
33877
33907
|
repos: t
|
|
@@ -33914,7 +33944,7 @@ function Qd({
|
|
|
33914
33944
|
function Fn(ne) {
|
|
33915
33945
|
I(ne), Ed(localStorage, ne), ne && St ? (z(!0), Ad(localStorage, R, !0), _("high")) : !ne && qt && (z(!1), Ad(localStorage, R, !1));
|
|
33916
33946
|
}
|
|
33917
|
-
function
|
|
33947
|
+
function cr(ne) {
|
|
33918
33948
|
z(ne), Ad(localStorage, R, ne), !ne && E && (I(!1), Ed(localStorage, !1));
|
|
33919
33949
|
}
|
|
33920
33950
|
function wn(ne) {
|
|
@@ -33936,7 +33966,7 @@ function Qd({
|
|
|
33936
33966
|
if (V(() => {
|
|
33937
33967
|
y && _r.current !== y.nonce && (_r.current = y.nonce, j(y.kind), y.kind === "aisdk" && G(y.accountId ?? ""), W(U(y.kind)));
|
|
33938
33968
|
}, [y]), !e && !X) return null;
|
|
33939
|
-
function
|
|
33969
|
+
function dr(ne, Ze, pt) {
|
|
33940
33970
|
if (ne?.preventDefault(), Fe || b.loading || !b.ready || b.status !== "live" || b.error) return;
|
|
33941
33971
|
const Nt = (Ze ?? Y).trim(), xt = ue;
|
|
33942
33972
|
if (!Nt && !xt.length) return;
|
|
@@ -33981,7 +34011,7 @@ function Qd({
|
|
|
33981
34011
|
Ct && (fl(Ct), iy(Ct)), kt.archivedSessionCount && ve.info(
|
|
33982
34012
|
`Archived ${kt.archivedSessionCount} idle session${kt.archivedSessionCount === 1 ? "" : "s"} to free memory`,
|
|
33983
34013
|
{ description: "Their transcripts are still available from Resume." }
|
|
33984
|
-
),
|
|
34014
|
+
), xr(vt?.id, "sent"), await c({ launchId: Ct, sessionId: Ct, session: kt?.session ?? null });
|
|
33985
34015
|
};
|
|
33986
34016
|
try {
|
|
33987
34017
|
const kt = xt.length ? await Promise.all(xt.map($e)) : [], Ct = Vl(Nt, kt);
|
|
@@ -33990,7 +34020,7 @@ function Qd({
|
|
|
33990
34020
|
Fr = await _t(Ct, !1);
|
|
33991
34021
|
} catch (Cs) {
|
|
33992
34022
|
if (!eu(Cs)) throw Cs;
|
|
33993
|
-
|
|
34023
|
+
xr(vt?.id, "draft"), ee((Qn) => Qn || Nt), ry(Cs, "create", () => {
|
|
33994
34024
|
(async () => {
|
|
33995
34025
|
try {
|
|
33996
34026
|
const Qn = ge.current.trim(), oo = Qn && Qn !== Nt.trim() ? Vl(ge.current, kt) : Ct, ca = await _t(oo, !0);
|
|
@@ -34005,7 +34035,7 @@ function Qd({
|
|
|
34005
34035
|
}
|
|
34006
34036
|
await Wt(Fr);
|
|
34007
34037
|
} catch (kt) {
|
|
34008
|
-
if (
|
|
34038
|
+
if (xr(vt?.id, "draft"), ee((Fr) => Fr || Nt), so(kt, "start-session")) return;
|
|
34009
34039
|
const Ct = kt instanceof Error ? kt.message : String(kt);
|
|
34010
34040
|
Ye(Ct), ve.error(Ct || "Couldn't create session");
|
|
34011
34041
|
} finally {
|
|
@@ -34033,7 +34063,7 @@ function Qd({
|
|
|
34033
34063
|
(xt.selectorId ?? ut) !== ln && (oe(ne), ke((it) => it + 1), j(ut), ut === "aisdk" && G(xt.accountId ?? ""), W(U(ut)), Gn.swipe());
|
|
34034
34064
|
};
|
|
34035
34065
|
He.current = Sn;
|
|
34036
|
-
const
|
|
34066
|
+
const ur = () => {
|
|
34037
34067
|
Gn.tap(), p?.(!1), f === "drawer" && l(), Hr("coding-agents");
|
|
34038
34068
|
}, Vr = (ne, Ze) => {
|
|
34039
34069
|
if (f === "inline" && h && ln === (Ze?.selectorId ?? ne)) {
|
|
@@ -34048,7 +34078,7 @@ function Qd({
|
|
|
34048
34078
|
value: R,
|
|
34049
34079
|
selectedId: ln,
|
|
34050
34080
|
flat: f === "inline",
|
|
34051
|
-
onLocked:
|
|
34081
|
+
onLocked: ur,
|
|
34052
34082
|
onSelect: Vr
|
|
34053
34083
|
}
|
|
34054
34084
|
), re = /* @__PURE__ */ m(ze, { children: [
|
|
@@ -34076,7 +34106,7 @@ function Qd({
|
|
|
34076
34106
|
agentBadge: kn.badge,
|
|
34077
34107
|
selectedId: ln,
|
|
34078
34108
|
onSelectAgent: Vr,
|
|
34079
|
-
onLocked:
|
|
34109
|
+
onLocked: ur,
|
|
34080
34110
|
model: M,
|
|
34081
34111
|
models: Zt,
|
|
34082
34112
|
onModelChange: W,
|
|
@@ -34096,11 +34126,11 @@ function Qd({
|
|
|
34096
34126
|
immersive: !0
|
|
34097
34127
|
}
|
|
34098
34128
|
),
|
|
34099
|
-
|
|
34129
|
+
lr && !qt ? /* @__PURE__ */ s(
|
|
34100
34130
|
bL,
|
|
34101
34131
|
{
|
|
34102
34132
|
enabled: gn,
|
|
34103
|
-
onToggle: () =>
|
|
34133
|
+
onToggle: () => cr(!gn),
|
|
34104
34134
|
flat: f === "inline"
|
|
34105
34135
|
}
|
|
34106
34136
|
) : null,
|
|
@@ -34184,7 +34214,7 @@ function Qd({
|
|
|
34184
34214
|
/* @__PURE__ */ m(
|
|
34185
34215
|
"form",
|
|
34186
34216
|
{
|
|
34187
|
-
onSubmit:
|
|
34217
|
+
onSubmit: dr,
|
|
34188
34218
|
...Xe.dropZoneProps,
|
|
34189
34219
|
"aria-busy": Fe,
|
|
34190
34220
|
className: D(
|
|
@@ -34262,7 +34292,7 @@ function Qd({
|
|
|
34262
34292
|
},
|
|
34263
34293
|
onAutoSubmit: (ne, Ze) => {
|
|
34264
34294
|
const pt = Ze.trim() ? `${Ze.trimEnd()} ${ne}` : ne;
|
|
34265
|
-
|
|
34295
|
+
dr(void 0, pt);
|
|
34266
34296
|
},
|
|
34267
34297
|
onCancel: (ne) => ht(ne)
|
|
34268
34298
|
}
|
|
@@ -34352,7 +34382,7 @@ function Qd({
|
|
|
34352
34382
|
thinkingLevel: H,
|
|
34353
34383
|
thinkingLevels: qt ? ["high"] : Q1(R) ? sn : [],
|
|
34354
34384
|
onLaunch: (ne) => {
|
|
34355
|
-
wn(ne),
|
|
34385
|
+
wn(ne), dr(void 0, void 0, ne);
|
|
34356
34386
|
}
|
|
34357
34387
|
}
|
|
34358
34388
|
)
|
|
@@ -35804,7 +35834,7 @@ function wL({
|
|
|
35804
35834
|
onClick: () => g(null),
|
|
35805
35835
|
className: "flex items-center gap-1 rounded-md py-1 pr-2 text-[12.5px] font-medium text-muted-foreground hover:text-foreground",
|
|
35806
35836
|
children: [
|
|
35807
|
-
/* @__PURE__ */ s(
|
|
35837
|
+
/* @__PURE__ */ s(yr, { className: "size-4" }),
|
|
35808
35838
|
"All ",
|
|
35809
35839
|
h.length,
|
|
35810
35840
|
" from ",
|
|
@@ -36383,7 +36413,7 @@ function SL({
|
|
|
36383
36413
|
/* @__PURE__ */ s(R2, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
36384
36414
|
/* @__PURE__ */ s("span", { className: "text-sm", children: "Enabled" }),
|
|
36385
36415
|
/* @__PURE__ */ s("span", { className: "ml-auto flex items-center", children: /* @__PURE__ */ s(
|
|
36386
|
-
|
|
36416
|
+
ir,
|
|
36387
36417
|
{
|
|
36388
36418
|
checked: R,
|
|
36389
36419
|
onCheckedChange: j,
|
|
@@ -36782,7 +36812,7 @@ function RL({
|
|
|
36782
36812
|
/* @__PURE__ */ s(pn, { className: "size-3 text-muted-foreground/70" })
|
|
36783
36813
|
] }),
|
|
36784
36814
|
/* @__PURE__ */ s(
|
|
36785
|
-
|
|
36815
|
+
ir,
|
|
36786
36816
|
{
|
|
36787
36817
|
checked: e.botAutoCompactionEnabled,
|
|
36788
36818
|
onCheckedChange: (y) => void f({ botAutoCompactionEnabled: y }),
|
|
@@ -38004,7 +38034,7 @@ function XL({
|
|
|
38004
38034
|
/* @__PURE__ */ s("span", { className: "text-sm font-medium", children: "Dark mode" })
|
|
38005
38035
|
] }),
|
|
38006
38036
|
/* @__PURE__ */ s(
|
|
38007
|
-
|
|
38037
|
+
ir,
|
|
38008
38038
|
{
|
|
38009
38039
|
checked: e,
|
|
38010
38040
|
onCheckedChange: t,
|
|
@@ -38025,7 +38055,7 @@ function XL({
|
|
|
38025
38055
|
/* @__PURE__ */ s("span", { className: "text-sm font-medium", children: "Sound effects" })
|
|
38026
38056
|
] }),
|
|
38027
38057
|
/* @__PURE__ */ s(
|
|
38028
|
-
|
|
38058
|
+
ir,
|
|
38029
38059
|
{
|
|
38030
38060
|
checked: p.sound,
|
|
38031
38061
|
onCheckedChange: (x) => Yw({ sound: x }),
|
|
@@ -38039,7 +38069,7 @@ function XL({
|
|
|
38039
38069
|
/* @__PURE__ */ s("span", { className: "text-sm font-medium", children: "Swipe between chats" })
|
|
38040
38070
|
] }),
|
|
38041
38071
|
/* @__PURE__ */ s(
|
|
38042
|
-
|
|
38072
|
+
ir,
|
|
38043
38073
|
{
|
|
38044
38074
|
checked: g.swipeBetweenChats,
|
|
38045
38075
|
onCheckedChange: (x) => DT({ swipeBetweenChats: x }),
|
|
@@ -38102,7 +38132,7 @@ function JL({
|
|
|
38102
38132
|
settings: e,
|
|
38103
38133
|
onChange: t
|
|
38104
38134
|
}) {
|
|
38105
|
-
const [n, r] = N(!1), o = nt(uc), i = nt(sa), a = Ns(), { defaultAgent: l } =
|
|
38135
|
+
const [n, r] = N(!1), o = nt(uc), i = nt(sa), a = Ns(), { defaultAgent: l } = vr(), c = Ee(
|
|
38106
38136
|
() => aa(o, i, { scheduledOnly: !1 }),
|
|
38107
38137
|
[i, o]
|
|
38108
38138
|
), d = Bi(e.defaultAgent, l), u = Xo(d), f = e.defaultAgent === d && e.defaultModel || a.defaults[d] || no[d], h = c.find((y) => y.key === d), { viewer: p, roles: g } = nt(Uf), x = [
|
|
@@ -38210,7 +38240,7 @@ function JL({
|
|
|
38210
38240
|
/* @__PURE__ */ s("div", { className: "text-xs text-muted-foreground", children: b ? `Hidden by the ${p.role.name} role.` : y.hint })
|
|
38211
38241
|
] }),
|
|
38212
38242
|
/* @__PURE__ */ s(
|
|
38213
|
-
|
|
38243
|
+
ir,
|
|
38214
38244
|
{
|
|
38215
38245
|
checked: b ? !1 : e[y.key],
|
|
38216
38246
|
disabled: b,
|
|
@@ -38708,7 +38738,7 @@ function sz({
|
|
|
38708
38738
|
onClick: l,
|
|
38709
38739
|
"aria-label": "Back to bots",
|
|
38710
38740
|
className: "-ml-2 flex size-9 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors duration-200 ease-out hover:text-foreground active:scale-[0.96]",
|
|
38711
|
-
children: /* @__PURE__ */ s(
|
|
38741
|
+
children: /* @__PURE__ */ s(yr, { className: "size-[18px]" })
|
|
38712
38742
|
}
|
|
38713
38743
|
),
|
|
38714
38744
|
/* @__PURE__ */ s(cs, { bot: b, working: L, size: 28 }),
|
|
@@ -38738,7 +38768,7 @@ function sz({
|
|
|
38738
38768
|
document.body
|
|
38739
38769
|
) : /* @__PURE__ */ m("section", { className: "mx-auto flex h-[calc(100dvh-6rem)] w-full max-w-3xl flex-col overflow-hidden rounded-xl border border-border bg-card md:h-[calc(100dvh-7rem)]", "data-lfg-page-column": !0, children: [
|
|
38740
38770
|
/* @__PURE__ */ m("header", { className: "flex min-h-[3.75rem] items-center gap-2 border-b border-border px-3 py-2", children: [
|
|
38741
|
-
/* @__PURE__ */ s(we, { variant: "ghost", size: "icon-sm", onClick: l, "aria-label": "Back to bots", children: /* @__PURE__ */ s(
|
|
38771
|
+
/* @__PURE__ */ s(we, { variant: "ghost", size: "icon-sm", onClick: l, "aria-label": "Back to bots", children: /* @__PURE__ */ s(yr, { className: "size-5" }) }),
|
|
38742
38772
|
/* @__PURE__ */ s(cs, { bot: b, working: L, size: 32 }),
|
|
38743
38773
|
/* @__PURE__ */ m("span", { className: "min-w-0 flex-1", children: [
|
|
38744
38774
|
/* @__PURE__ */ s("span", { className: "block truncate text-[15px] font-semibold leading-tight", children: b.name }),
|
|
@@ -38901,7 +38931,7 @@ function oz({
|
|
|
38901
38931
|
onClick: l,
|
|
38902
38932
|
"aria-label": p ? "Back to chat" : "Back to bots",
|
|
38903
38933
|
className: "shrink-0",
|
|
38904
|
-
children: /* @__PURE__ */ s(
|
|
38934
|
+
children: /* @__PURE__ */ s(yr, { className: "size-5" })
|
|
38905
38935
|
}
|
|
38906
38936
|
),
|
|
38907
38937
|
/* @__PURE__ */ s("span", { className: "min-w-0 flex-1 truncate text-[15px] font-semibold", children: p ? "Edit bot" : "New bot" }),
|
|
@@ -39024,7 +39054,7 @@ function oz({
|
|
|
39024
39054
|
) : null,
|
|
39025
39055
|
p ? /* @__PURE__ */ m("div", { className: "mt-3 flex items-center justify-between rounded-xl border border-border px-3 py-2", children: [
|
|
39026
39056
|
/* @__PURE__ */ s("span", { className: "text-sm", children: "Enabled" }),
|
|
39027
|
-
/* @__PURE__ */ s(
|
|
39057
|
+
/* @__PURE__ */ s(ir, { checked: O, onCheckedChange: T, "aria-label": "Enable bot" })
|
|
39028
39058
|
] }) : null,
|
|
39029
39059
|
/* @__PURE__ */ m(ta, { open: E, onOpenChange: I, className: "mt-3", children: [
|
|
39030
39060
|
/* @__PURE__ */ m(na, { className: "flex w-full items-center justify-between rounded-xl border border-border px-3 py-2 text-sm", children: [
|
|
@@ -39246,7 +39276,7 @@ function iz({
|
|
|
39246
39276
|
onClick: (T) => T.stopPropagation(),
|
|
39247
39277
|
onKeyDown: (T) => T.stopPropagation(),
|
|
39248
39278
|
children: /* @__PURE__ */ s(
|
|
39249
|
-
|
|
39279
|
+
ir,
|
|
39250
39280
|
{
|
|
39251
39281
|
checked: S.enabled,
|
|
39252
39282
|
onCheckedChange: (T) => i(S.id, T),
|
|
@@ -39519,7 +39549,7 @@ export {
|
|
|
39519
39549
|
e4 as a7,
|
|
39520
39550
|
jt as a8,
|
|
39521
39551
|
Ak as a9,
|
|
39522
|
-
|
|
39552
|
+
yr as aa,
|
|
39523
39553
|
ic as ab,
|
|
39524
39554
|
Ef as ac,
|
|
39525
39555
|
Hn as ad,
|
|
@@ -39546,7 +39576,7 @@ export {
|
|
|
39546
39576
|
Ht as m,
|
|
39547
39577
|
Ti as n,
|
|
39548
39578
|
Af as o,
|
|
39549
|
-
|
|
39579
|
+
ir as p,
|
|
39550
39580
|
jr as q,
|
|
39551
39581
|
Zi as r,
|
|
39552
39582
|
ru as s,
|