@omg-dev/app 0.2.13 → 0.2.14
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-BGKHXsx-.js → ChangelogPage-CSgWs9k6.js} +17 -1
- package/dist-lib/{SessionFilesPanel-CaCEOii-.js → SessionFilesPanel-B8z9LfvK.js} +1 -1
- package/dist-lib/{TermView-BI8rYaUh.js → TermView-Cb-xX-ON.js} +1 -1
- package/dist-lib/{chat-engine-Bb22QP8h.js → chat-engine-BodQVvQD.js} +1 -1
- package/dist-lib/{coding-agents-page-DmazJLfZ.js → coding-agents-page-DqyOXuwH.js} +1 -1
- package/dist-lib/{embedded-RT02naeG.js → embedded-CoSxmqt_.js} +191 -182
- package/dist-lib/{highlighted-body-OFNGDK62-CEbbbEMt.js → highlighted-body-OFNGDK62-CU7AhWh2.js} +1 -1
- package/dist-lib/{index-DsMQG9W2.js → index-B69p0Dyd.js} +1 -1
- package/dist-lib/index.js +1 -1
- package/dist-lib/mermaid-GHXKKRXX-akZLSMsC.js +4 -0
- package/dist-lib/{resume-session-sheet-tcVo5Q9h.js → resume-session-sheet-JJKc1Mx7.js} +1 -1
- package/dist-lib/{session-token-usage-Cx_UOmuS.js → session-token-usage-DqKcSF3L.js} +1 -1
- package/dist-lib/{shipped-page-_BnFc1dm.js → shipped-page-CAktVthA.js} +1 -1
- package/dist-lib/{streamdown-response-BlwYN2WB.js → streamdown-response-CVn6mItY.js} +4 -4
- package/package.json +2 -2
- package/dist-lib/mermaid-GHXKKRXX-D7tiGUK-.js +0 -4
|
@@ -21,7 +21,7 @@ import { mergeProps as Ih } from "@base-ui/react/merge-props";
|
|
|
21
21
|
import { useRender as Eh } from "@base-ui/react/use-render";
|
|
22
22
|
import { Drawer as Xt } from "vaul";
|
|
23
23
|
import { Collapsible as Sl } from "@base-ui/react/collapsible";
|
|
24
|
-
import { Popover as
|
|
24
|
+
import { Popover as Ln } from "@base-ui/react/popover";
|
|
25
25
|
import { Menu as tn } from "@base-ui/react/menu";
|
|
26
26
|
import { ContextMenu as cn } from "@base-ui/react/context-menu";
|
|
27
27
|
const Hi = "live";
|
|
@@ -391,10 +391,10 @@ function sg(e) {
|
|
|
391
391
|
function Ya(e) {
|
|
392
392
|
return typeof e == "object" && e !== null && e.code === "agent_limit";
|
|
393
393
|
}
|
|
394
|
-
let
|
|
394
|
+
let Dn = rg(), tf = "", nf = null, rf = 0;
|
|
395
395
|
function sf(e, t = {}) {
|
|
396
396
|
var r;
|
|
397
|
-
e !==
|
|
397
|
+
e !== Dn && (rf += 1), Dn = e, tf = ((r = t.assetBaseUrl) == null ? void 0 : r.replace(/\/+$/, "")) ?? "", nf = t.errorSink ?? null;
|
|
398
398
|
}
|
|
399
399
|
function of() {
|
|
400
400
|
return rf;
|
|
@@ -403,20 +403,20 @@ function og() {
|
|
|
403
403
|
return nf;
|
|
404
404
|
}
|
|
405
405
|
function xe(e, t) {
|
|
406
|
-
return
|
|
406
|
+
return Dn.request(e, t);
|
|
407
407
|
}
|
|
408
408
|
function Pt(e, t) {
|
|
409
|
-
return
|
|
409
|
+
return Dn.fetch(e, t);
|
|
410
410
|
}
|
|
411
411
|
function ig(e, t, r) {
|
|
412
412
|
var s;
|
|
413
|
-
return ((s =
|
|
413
|
+
return ((s = Dn.upload) == null ? void 0 : s.call(Dn, e, t, r)) ?? Dn.fetch(e, t);
|
|
414
414
|
}
|
|
415
415
|
function ag() {
|
|
416
|
-
return
|
|
416
|
+
return Dn.openLiveSocket();
|
|
417
417
|
}
|
|
418
418
|
function P4(e) {
|
|
419
|
-
return
|
|
419
|
+
return Dn.openSocket(e);
|
|
420
420
|
}
|
|
421
421
|
function Kt(e) {
|
|
422
422
|
const t = e.startsWith("/") ? e : `/${e}`;
|
|
@@ -428,7 +428,7 @@ function _l(e) {
|
|
|
428
428
|
return !t || t.toLowerCase() === "unknown" ? null : t;
|
|
429
429
|
}
|
|
430
430
|
function lg() {
|
|
431
|
-
return _l("0.2.
|
|
431
|
+
return _l("0.2.14");
|
|
432
432
|
}
|
|
433
433
|
const ei = lg();
|
|
434
434
|
function cg(e) {
|
|
@@ -1090,7 +1090,7 @@ const S0 = [
|
|
|
1090
1090
|
* This source code is licensed under the ISC license.
|
|
1091
1091
|
* See the LICENSE file in the root directory of this source tree.
|
|
1092
1092
|
*/
|
|
1093
|
-
const T0 = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]],
|
|
1093
|
+
const T0 = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Lt = we("check", T0);
|
|
1094
1094
|
/**
|
|
1095
1095
|
* @license lucide-react v0.577.0 - ISC
|
|
1096
1096
|
*
|
|
@@ -2198,7 +2198,7 @@ const Rx = [
|
|
|
2198
2198
|
const Dx = [
|
|
2199
2199
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
2200
2200
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
2201
|
-
],
|
|
2201
|
+
], Dt = we("x", Dx);
|
|
2202
2202
|
var jx = { success: { pattern: [{ duration: 30, intensity: 0.5 }, { delay: 60, duration: 40, intensity: 1 }] }, warning: { pattern: [{ duration: 40, intensity: 0.8 }, { delay: 100, duration: 40, intensity: 0.6 }] }, error: { pattern: [{ duration: 40, intensity: 0.9 }, { delay: 40, duration: 40, intensity: 0.9 }, { delay: 40, duration: 40, intensity: 0.9 }] }, light: { pattern: [{ duration: 15, intensity: 0.4 }] }, medium: { pattern: [{ duration: 25, intensity: 0.7 }] }, heavy: { pattern: [{ duration: 35, intensity: 1 }] }, soft: { pattern: [{ duration: 40, intensity: 0.5 }] }, rigid: { pattern: [{ duration: 10, intensity: 1 }] }, selection: { pattern: [{ duration: 8, intensity: 0.3 }] }, nudge: { pattern: [{ duration: 80, intensity: 0.8 }, { delay: 80, duration: 50, intensity: 0.3 }] }, buzz: { pattern: [{ duration: 1e3, intensity: 1 }] } }, Bx = 16, Ux = 184, ud = 1e3, ti = 20;
|
|
2203
2203
|
function Fx(e) {
|
|
2204
2204
|
if (typeof e == "number") return { vibrations: [{ duration: e }] };
|
|
@@ -2518,30 +2518,30 @@ function ry(e) {
|
|
|
2518
2518
|
} catch {
|
|
2519
2519
|
}
|
|
2520
2520
|
}
|
|
2521
|
-
function
|
|
2521
|
+
function On(e, t) {
|
|
2522
2522
|
e && go().sound && ry(e), t != null && bt(t);
|
|
2523
2523
|
}
|
|
2524
2524
|
const vn = {
|
|
2525
2525
|
/** Generic button / control press. */
|
|
2526
|
-
tap: () =>
|
|
2526
|
+
tap: () => On("tap", "light"),
|
|
2527
2527
|
/** Choosing an item in a menu / list / segmented control. */
|
|
2528
|
-
select: () =>
|
|
2528
|
+
select: () => On("select", "selection"),
|
|
2529
2529
|
/** Flipping a switch or checkbox. */
|
|
2530
|
-
toggle: (e) =>
|
|
2530
|
+
toggle: (e) => On(e ? "toggleOn" : "toggleOff", e ? "medium" : "light"),
|
|
2531
2531
|
/** Submitting the composer / sending a message. */
|
|
2532
|
-
send: () =>
|
|
2532
|
+
send: () => On("send", "medium"),
|
|
2533
2533
|
/** A positive outcome (session created, saved, copied). */
|
|
2534
|
-
success: () =>
|
|
2534
|
+
success: () => On("success", "success"),
|
|
2535
2535
|
/** A failure / rejected action. */
|
|
2536
|
-
error: () =>
|
|
2536
|
+
error: () => On("error", "error"),
|
|
2537
2537
|
/** Stepping through options via swipe/scroll. */
|
|
2538
|
-
swipe: () =>
|
|
2538
|
+
swipe: () => On("swipe", "selection"),
|
|
2539
2539
|
/** A surface opening (dialog, popover, sheet). */
|
|
2540
|
-
open: () =>
|
|
2540
|
+
open: () => On("open", "light"),
|
|
2541
2541
|
/** A surface closing. */
|
|
2542
|
-
close: () =>
|
|
2542
|
+
close: () => On("close", null),
|
|
2543
2543
|
/** Passive inbound event (assistant reply / turn finished). */
|
|
2544
|
-
receive: () =>
|
|
2544
|
+
receive: () => On("receive", null)
|
|
2545
2545
|
}, sy = Fu(
|
|
2546
2546
|
"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",
|
|
2547
2547
|
{
|
|
@@ -2804,7 +2804,7 @@ component stack:${t}` : null
|
|
|
2804
2804
|
onClick: b,
|
|
2805
2805
|
"aria-label": "Copy error details",
|
|
2806
2806
|
title: "Copy error details",
|
|
2807
|
-
children: f ? /* @__PURE__ */ n(
|
|
2807
|
+
children: f ? /* @__PURE__ */ n(Lt, { className: "size-3.5", "aria-hidden": !0 }) : /* @__PURE__ */ n(br, { className: "size-3.5", "aria-hidden": !0 })
|
|
2808
2808
|
}
|
|
2809
2809
|
)
|
|
2810
2810
|
] }),
|
|
@@ -2831,26 +2831,26 @@ const Ma = ["circle", "squircle", "teardrop", "pebble", "hexagon"], _a = ["warm"
|
|
|
2831
2831
|
violet: { name: "Violet", stops: ["#8b5cf6", "#ec4899"], eye: "#fdf2fb" },
|
|
2832
2832
|
forest: { name: "Forest", stops: ["#14b8a6", "#84cc16"], eye: "#f4fce9" },
|
|
2833
2833
|
midnight: { name: "Midnight", stops: ["#7b8ba6", "#2b3446"], eye: "#e2f5fb" }
|
|
2834
|
-
}, bd = 12, Jr = Array.from({ length: bd }, (e, t) => -90 + t * (360 / bd)),
|
|
2834
|
+
}, bd = 12, Jr = Array.from({ length: bd }, (e, t) => -90 + t * (360 / bd)), Bn = 70, Ll = (e) => e * Math.PI / 180, xd = (e, t) => (e - t + 540) % 360 - 180, yd = (e, t, r) => e + (t - e) * r;
|
|
2835
2835
|
function gy(e) {
|
|
2836
2836
|
return 1 + 2.70158 * Math.pow(e - 1, 3) + 1.70158 * Math.pow(e - 1, 2);
|
|
2837
2837
|
}
|
|
2838
|
-
const gs = Jr.map(() =>
|
|
2838
|
+
const gs = Jr.map(() => Bn), by = Jr.map((e) => {
|
|
2839
2839
|
const t = Ll(e), r = Math.abs(Math.cos(t)), s = Math.abs(Math.sin(t));
|
|
2840
|
-
return
|
|
2840
|
+
return Bn / Math.pow(Math.pow(r, 4) + Math.pow(s, 4), 0.25);
|
|
2841
2841
|
}), xy = Jr.map((s) => {
|
|
2842
2842
|
const o = xd(s, 240), i = 0.36 * Math.exp(-(o * o) / 648), a = xd(s, 420), l = 0.16 * Math.exp(-(a * a) / 3200);
|
|
2843
|
-
return
|
|
2843
|
+
return Bn * (1 + i - l);
|
|
2844
2844
|
}), yy = [0.92, 0.95, 1.2, 1.06, 0.84, 0.8, 0.9, 1.14, 1.24, 0.98, 0.86, 0.88].map(
|
|
2845
|
-
(e) =>
|
|
2845
|
+
(e) => Bn * e
|
|
2846
2846
|
), vy = (() => {
|
|
2847
2847
|
const e = Math.PI / 3;
|
|
2848
2848
|
return Jr.map((t) => {
|
|
2849
2849
|
const s = (Ll(t) % e + e) % e, i = (Math.cos(Math.PI / 6) / Math.cos(s - Math.PI / 6) - 0.866) / (1 - 0.866);
|
|
2850
|
-
return
|
|
2850
|
+
return Bn * (0.9 + 0.14 * i);
|
|
2851
2851
|
});
|
|
2852
|
-
})(), wy = Jr.map(() =>
|
|
2853
|
-
(e) =>
|
|
2852
|
+
})(), wy = Jr.map(() => Bn * 1.08), ky = Jr.map(() => Bn * 0.86), Ny = [0.7, 0.74, 0.92, 1.08, 1.02, 0.9, 0.88, 0.9, 1.02, 1.08, 0.92, 0.74].map(
|
|
2853
|
+
(e) => Bn * e
|
|
2854
2854
|
), ni = { circle: gs, squircle: by, teardrop: xy, pebble: yy, hexagon: vy };
|
|
2855
2855
|
function Sy(e, t, r) {
|
|
2856
2856
|
return e.map((s, o) => {
|
|
@@ -2943,7 +2943,7 @@ function nr({
|
|
|
2943
2943
|
const ie = { ...ri[p.current].pupil };
|
|
2944
2944
|
if (k) {
|
|
2945
2945
|
const W = ri[p.current], P = (ni[h.current] ?? gs).map(
|
|
2946
|
-
(A, M) => A * (W.radii[M] /
|
|
2946
|
+
(A, M) => A * (W.radii[M] / Bn)
|
|
2947
2947
|
);
|
|
2948
2948
|
v.setAttribute("d", Ia(P)), C.setAttribute("transform", `translate(${W.pupil.x},${W.pupil.y})`), N.style.transform = W.closed ? vd : Ea;
|
|
2949
2949
|
return;
|
|
@@ -2956,7 +2956,7 @@ function nr({
|
|
|
2956
2956
|
};
|
|
2957
2957
|
J();
|
|
2958
2958
|
const le = My((W, P) => {
|
|
2959
|
-
const A = ri[p.current], T = (ni[h.current] ?? gs).map((Q, G) => Q * (A.radii[G] /
|
|
2959
|
+
const A = ri[p.current], T = (ni[h.current] ?? gs).map((Q, G) => Q * (A.radii[G] / Bn));
|
|
2960
2960
|
te !== p.current || V !== h.current ? (H = ee.slice(), X = T, K = P, z = A.dur, te = p.current, V = h.current, S.style.transform = `rotate(${A.tilt}deg)`, N.style.transform = A.closed ? vd : Ea) : z === 0 && (X = T);
|
|
2961
2961
|
let I;
|
|
2962
2962
|
if (z > 0) {
|
|
@@ -3032,7 +3032,7 @@ function Ay({ name: e, className: t }) {
|
|
|
3032
3032
|
return r ? /* @__PURE__ */ n("svg", { viewBox: "0 0 24 24", fill: "currentColor", role: "img", "aria-hidden": "true", className: t, children: /* @__PURE__ */ n("path", { d: r }) }) : null;
|
|
3033
3033
|
}
|
|
3034
3034
|
const $y = "20260819a";
|
|
3035
|
-
function
|
|
3035
|
+
function Fn(e) {
|
|
3036
3036
|
const t = `?v=${$y}`;
|
|
3037
3037
|
return Kt(e === "codex" || e === "codex-aisdk" ? `/agent-codex.svg${t}` : e === "grok" ? `/agent-grok.svg${t}` : e === "cursor" ? `/agent-cursor.svg${t}` : e === "fx" ? `/agent-fx.svg${t}` : e === "hermes" ? `/agent-hermes.svg${t}` : e === "opencode" ? `/agent-opencode.svg${t}` : e === "jcode" ? `/agent-jcode.svg${t}` : e === "pi" ? `/agent-pi.svg${t}` : e === "copilot" ? `/agent-copilot.svg${t}` : `/agent-claude.svg${t}`);
|
|
3038
3038
|
}
|
|
@@ -3115,7 +3115,7 @@ function Lf({
|
|
|
3115
3115
|
const o = Dy(e.agent, e.claudeAccountId), i = e.agentLabel || Po(e.agent), a = /* @__PURE__ */ n(
|
|
3116
3116
|
"img",
|
|
3117
3117
|
{
|
|
3118
|
-
src:
|
|
3118
|
+
src: Fn(e.agent),
|
|
3119
3119
|
alt: o == null ? i : `${i} ${o}`,
|
|
3120
3120
|
title: e.agentLabel || void 0,
|
|
3121
3121
|
className: t
|
|
@@ -3244,7 +3244,7 @@ const nv = Df, rv = {
|
|
|
3244
3244
|
function sv({ icon: e, className: t }) {
|
|
3245
3245
|
if (e.startsWith("agent:")) {
|
|
3246
3246
|
const s = e.slice(6);
|
|
3247
|
-
return /* @__PURE__ */ n("img", { src:
|
|
3247
|
+
return /* @__PURE__ */ n("img", { src: Fn(s), alt: Po(s), className: t });
|
|
3248
3248
|
}
|
|
3249
3249
|
if (e.startsWith("brand:"))
|
|
3250
3250
|
return /* @__PURE__ */ n(Ay, { name: e.slice(6), className: t });
|
|
@@ -3399,7 +3399,7 @@ function ov({
|
|
|
3399
3399
|
/* @__PURE__ */ n("span", { className: "block truncate text-sm font-medium", children: V.label }),
|
|
3400
3400
|
/* @__PURE__ */ n("span", { className: "block truncate text-xs text-muted-foreground", children: V.configured ? "Connected" : J ? "CLI not installed on this Computer" : Y ? "Install first, then sign in" : `Sign in with ${le}` })
|
|
3401
3401
|
] }),
|
|
3402
|
-
V.configured ? /* @__PURE__ */ n("span", { className: "flex size-8 items-center justify-center rounded-full bg-emerald-500/10 text-emerald-500", "aria-label": "Connected", children: /* @__PURE__ */ n(
|
|
3402
|
+
V.configured ? /* @__PURE__ */ n("span", { className: "flex size-8 items-center justify-center rounded-full bg-emerald-500/10 text-emerald-500", "aria-label": "Connected", children: /* @__PURE__ */ n(Lt, { className: "size-4" }) }) : /* @__PURE__ */ n(
|
|
3403
3403
|
ke,
|
|
3404
3404
|
{
|
|
3405
3405
|
variant: V.provider === "claude" ? "brand" : "outline",
|
|
@@ -3439,7 +3439,7 @@ function ov({
|
|
|
3439
3439
|
/* @__PURE__ */ n("span", { className: "block truncate text-sm font-medium", children: V.label }),
|
|
3440
3440
|
/* @__PURE__ */ n("span", { className: "block truncate text-xs text-muted-foreground", children: V.installed ? V.connected ? "Connected for private repos and PRs" : V.detail : "GitHub CLI is not installed" })
|
|
3441
3441
|
] }),
|
|
3442
|
-
V.connected ? /* @__PURE__ */ n("span", { className: "flex size-8 items-center justify-center rounded-full bg-emerald-500/10 text-emerald-500", "aria-label": "Connected", children: /* @__PURE__ */ n(
|
|
3442
|
+
V.connected ? /* @__PURE__ */ n("span", { className: "flex size-8 items-center justify-center rounded-full bg-emerald-500/10 text-emerald-500", "aria-label": "Connected", children: /* @__PURE__ */ n(Lt, { className: "size-4" }) }) : /* @__PURE__ */ n(
|
|
3443
3443
|
ke,
|
|
3444
3444
|
{
|
|
3445
3445
|
variant: "outline",
|
|
@@ -3474,7 +3474,7 @@ function ov({
|
|
|
3474
3474
|
{
|
|
3475
3475
|
className: "flex size-9 items-center justify-center rounded-xl border border-border bg-background shadow-sm animate-in fade-in-0 zoom-in-75 duration-300 ease-out [animation-fill-mode:backwards]",
|
|
3476
3476
|
style: { animationDelay: `${ie * 60}ms` },
|
|
3477
|
-
children: /* @__PURE__ */ n("img", { src:
|
|
3477
|
+
children: /* @__PURE__ */ n("img", { src: Fn(V), alt: Po(V), className: "size-5" })
|
|
3478
3478
|
},
|
|
3479
3479
|
V
|
|
3480
3480
|
)) }),
|
|
@@ -3574,7 +3574,7 @@ function jl(e, t = {}) {
|
|
|
3574
3574
|
const i = o.toString();
|
|
3575
3575
|
return i ? `${r}?${i}` : r;
|
|
3576
3576
|
}
|
|
3577
|
-
const
|
|
3577
|
+
const Pn = 1, ii = 8, pv = 2.5;
|
|
3578
3578
|
function Aa(e, t, r) {
|
|
3579
3579
|
return Math.min(r, Math.max(t, e));
|
|
3580
3580
|
}
|
|
@@ -3602,8 +3602,8 @@ function hv({
|
|
|
3602
3602
|
const p = oe((S, N, k) => {
|
|
3603
3603
|
const L = o.current;
|
|
3604
3604
|
L && a((H) => {
|
|
3605
|
-
const X = Aa(S,
|
|
3606
|
-
if (X ===
|
|
3605
|
+
const X = Aa(S, Pn, ii);
|
|
3606
|
+
if (X === Pn) return Or;
|
|
3607
3607
|
const ee = L.getBoundingClientRect(), K = N - ee.left, z = k - ee.top, te = X / H.scale;
|
|
3608
3608
|
return {
|
|
3609
3609
|
scale: X,
|
|
@@ -3618,8 +3618,8 @@ function hv({
|
|
|
3618
3618
|
a((k) => {
|
|
3619
3619
|
const L = o.current;
|
|
3620
3620
|
if (!L) return k;
|
|
3621
|
-
const H = Aa(k.scale * N,
|
|
3622
|
-
if (H ===
|
|
3621
|
+
const H = Aa(k.scale * N, Pn, ii);
|
|
3622
|
+
if (H === Pn) return Or;
|
|
3623
3623
|
const X = L.getBoundingClientRect(), ee = S.clientX - X.left, K = S.clientY - X.top, z = H / k.scale;
|
|
3624
3624
|
return { scale: H, ox: k.ox + ee * (1 - z), oy: k.oy + K * (1 - z) };
|
|
3625
3625
|
});
|
|
@@ -3645,8 +3645,8 @@ function hv({
|
|
|
3645
3645
|
if (te && d.current.dist > 0) {
|
|
3646
3646
|
const V = te.getBoundingClientRect(), ie = ee / d.current.dist, Y = K - d.current.mx, J = z - d.current.my, le = K - V.left, W = z - V.top;
|
|
3647
3647
|
a((P) => {
|
|
3648
|
-
const A = Aa(P.scale * ie,
|
|
3649
|
-
if (A ===
|
|
3648
|
+
const A = Aa(P.scale * ie, Pn, ii);
|
|
3649
|
+
if (A === Pn) return Or;
|
|
3650
3650
|
const M = A / P.scale;
|
|
3651
3651
|
return {
|
|
3652
3652
|
scale: A,
|
|
@@ -3660,18 +3660,18 @@ function hv({
|
|
|
3660
3660
|
}
|
|
3661
3661
|
if (N.size === 1) {
|
|
3662
3662
|
const H = L.x - k.x, X = L.y - k.y;
|
|
3663
|
-
(Math.abs(H) > 2 || Math.abs(X) > 2) && (u.current = !0), a((ee) => ee.scale <=
|
|
3663
|
+
(Math.abs(H) > 2 || Math.abs(X) > 2) && (u.current = !0), a((ee) => ee.scale <= Pn ? ee : { ...ee, ox: ee.ox + H, oy: ee.oy + X });
|
|
3664
3664
|
}
|
|
3665
3665
|
}
|
|
3666
3666
|
function w(S) {
|
|
3667
3667
|
const N = l.current;
|
|
3668
|
-
N.delete(S.pointerId), N.size < 2 && (d.current = null), N.size === 0 && (f(!1), !u.current && i.scale <=
|
|
3668
|
+
N.delete(S.pointerId), N.size < 2 && (d.current = null), N.size === 0 && (f(!1), !u.current && i.scale <= Pn && s());
|
|
3669
3669
|
}
|
|
3670
3670
|
function v(S) {
|
|
3671
|
-
i.scale >
|
|
3671
|
+
i.scale > Pn ? a(Or) : p(pv, S.clientX, S.clientY);
|
|
3672
3672
|
}
|
|
3673
3673
|
if (!r) return null;
|
|
3674
|
-
const C = i.scale >
|
|
3674
|
+
const C = i.scale > Pn;
|
|
3675
3675
|
return sr(
|
|
3676
3676
|
/* @__PURE__ */ c(
|
|
3677
3677
|
"div",
|
|
@@ -3709,7 +3709,7 @@ function hv({
|
|
|
3709
3709
|
}
|
|
3710
3710
|
),
|
|
3711
3711
|
/* @__PURE__ */ n(ai, { label: "Reset zoom", onClick: () => a(Or), disabled: !C, children: /* @__PURE__ */ n(Os, { className: "size-4" }) }),
|
|
3712
|
-
/* @__PURE__ */ n(ai, { label: "Close", onClick: s, children: /* @__PURE__ */ n(
|
|
3712
|
+
/* @__PURE__ */ n(ai, { label: "Close", onClick: s, children: /* @__PURE__ */ n(Dt, { className: "size-4" }) })
|
|
3713
3713
|
] }),
|
|
3714
3714
|
/* @__PURE__ */ n(
|
|
3715
3715
|
"img",
|
|
@@ -6178,7 +6178,7 @@ function ui(e) {
|
|
|
6178
6178
|
return e.label !== void 0;
|
|
6179
6179
|
}
|
|
6180
6180
|
const aw = 3, lw = "24px", cw = "16px", Rd = 4e3, dw = 356, uw = 14, fw = 45, mw = 200;
|
|
6181
|
-
function
|
|
6181
|
+
function Rn(...e) {
|
|
6182
6182
|
return e.filter(Boolean).join(" ");
|
|
6183
6183
|
}
|
|
6184
6184
|
function pw(e) {
|
|
@@ -6296,12 +6296,12 @@ const hw = (e) => {
|
|
|
6296
6296
|
if (le != null && le.loading) {
|
|
6297
6297
|
var rt;
|
|
6298
6298
|
return /* @__PURE__ */ ze.createElement("div", {
|
|
6299
|
-
className:
|
|
6299
|
+
className: Rn(J == null ? void 0 : J.loader, f == null || (rt = f.classNames) == null ? void 0 : rt.loader, "sonner-loader"),
|
|
6300
6300
|
"data-visible": B === "loading"
|
|
6301
6301
|
}, le.loading);
|
|
6302
6302
|
}
|
|
6303
6303
|
return /* @__PURE__ */ ze.createElement(K1, {
|
|
6304
|
-
className:
|
|
6304
|
+
className: Rn(J == null ? void 0 : J.loader, f == null || (Ke = f.classNames) == null ? void 0 : Ke.loader),
|
|
6305
6305
|
visible: B === "loading"
|
|
6306
6306
|
});
|
|
6307
6307
|
}
|
|
@@ -6310,7 +6310,7 @@ const hw = (e) => {
|
|
|
6310
6310
|
return /* @__PURE__ */ ze.createElement("li", {
|
|
6311
6311
|
tabIndex: 0,
|
|
6312
6312
|
ref: Fe,
|
|
6313
|
-
className:
|
|
6313
|
+
className: Rn(K, je, J == null ? void 0 : J.toast, f == null || (t = f.classNames) == null ? void 0 : t.toast, J == null ? void 0 : J.default, J == null ? void 0 : J[B], f == null || (r = f.classNames) == null ? void 0 : r[B]),
|
|
6314
6314
|
"data-sonner-toast": "",
|
|
6315
6315
|
"data-rich-colors": (Nt = f.richColors) != null ? Nt : k,
|
|
6316
6316
|
"data-styled": !(f.jsx || f.unstyled || p),
|
|
@@ -6400,19 +6400,19 @@ const hw = (e) => {
|
|
|
6400
6400
|
} : () => {
|
|
6401
6401
|
Le(), f.onDismiss == null || f.onDismiss.call(f, f);
|
|
6402
6402
|
},
|
|
6403
|
-
className:
|
|
6403
|
+
className: Rn(J == null ? void 0 : J.closeButton, f == null || (s = f.classNames) == null ? void 0 : s.closeButton)
|
|
6404
6404
|
}, (Ct = le == null ? void 0 : le.close) != null ? Ct : Q1) : null, (B || f.icon || f.promise) && f.icon !== null && ((le == null ? void 0 : le[B]) !== null || f.icon) ? /* @__PURE__ */ ze.createElement("div", {
|
|
6405
6405
|
"data-icon": "",
|
|
6406
|
-
className:
|
|
6406
|
+
className: Rn(J == null ? void 0 : J.icon, f == null || (o = f.classNames) == null ? void 0 : o.icon)
|
|
6407
6407
|
}, f.promise || f.type === "loading" && !f.icon ? f.icon || Ie() : null, f.type !== "loading" ? nt : null) : null, /* @__PURE__ */ ze.createElement("div", {
|
|
6408
6408
|
"data-content": "",
|
|
6409
|
-
className:
|
|
6409
|
+
className: Rn(J == null ? void 0 : J.content, f == null || (i = f.classNames) == null ? void 0 : i.content)
|
|
6410
6410
|
}, /* @__PURE__ */ ze.createElement("div", {
|
|
6411
6411
|
"data-title": "",
|
|
6412
|
-
className:
|
|
6412
|
+
className: Rn(J == null ? void 0 : J.title, f == null || (a = f.classNames) == null ? void 0 : a.title)
|
|
6413
6413
|
}, f.jsx ? f.jsx : typeof f.title == "function" ? f.title() : f.title), f.description ? /* @__PURE__ */ ze.createElement("div", {
|
|
6414
6414
|
"data-description": "",
|
|
6415
|
-
className:
|
|
6415
|
+
className: Rn(z, We, J == null ? void 0 : J.description, f == null || (l = f.classNames) == null ? void 0 : l.description)
|
|
6416
6416
|
}, typeof f.description == "function" ? f.description() : f.description) : null), /* @__PURE__ */ ze.isValidElement(f.cancel) ? f.cancel : f.cancel && ui(f.cancel) ? /* @__PURE__ */ ze.createElement("button", {
|
|
6417
6417
|
"data-button": !0,
|
|
6418
6418
|
"data-cancel": !0,
|
|
@@ -6420,7 +6420,7 @@ const hw = (e) => {
|
|
|
6420
6420
|
onClick: (Ke) => {
|
|
6421
6421
|
ui(f.cancel) && Se && (f.cancel.onClick == null || f.cancel.onClick.call(f.cancel, Ke), Le());
|
|
6422
6422
|
},
|
|
6423
|
-
className:
|
|
6423
|
+
className: Rn(J == null ? void 0 : J.cancelButton, f == null || (d = f.classNames) == null ? void 0 : d.cancelButton)
|
|
6424
6424
|
}, f.cancel.label) : null, /* @__PURE__ */ ze.isValidElement(f.action) ? f.action : f.action && ui(f.action) ? /* @__PURE__ */ ze.createElement("button", {
|
|
6425
6425
|
"data-button": !0,
|
|
6426
6426
|
"data-action": !0,
|
|
@@ -6428,7 +6428,7 @@ const hw = (e) => {
|
|
|
6428
6428
|
onClick: (Ke) => {
|
|
6429
6429
|
ui(f.action) && (f.action.onClick == null || f.action.onClick.call(f.action, Ke), !Ke.defaultPrevented && Le());
|
|
6430
6430
|
},
|
|
6431
|
-
className:
|
|
6431
|
+
className: Rn(J == null ? void 0 : J.actionButton, f == null || (u = f.classNames) == null ? void 0 : u.actionButton)
|
|
6432
6432
|
}, f.action.label) : null);
|
|
6433
6433
|
};
|
|
6434
6434
|
function Ld() {
|
|
@@ -7032,7 +7032,7 @@ function ts({
|
|
|
7032
7032
|
),
|
|
7033
7033
|
children: [
|
|
7034
7034
|
/* @__PURE__ */ n(
|
|
7035
|
-
|
|
7035
|
+
Dt,
|
|
7036
7036
|
{}
|
|
7037
7037
|
),
|
|
7038
7038
|
/* @__PURE__ */ n("span", { className: "sr-only", children: "Close" })
|
|
@@ -7213,7 +7213,7 @@ function Jw() {
|
|
|
7213
7213
|
variant: C.id === (w == null ? void 0 : w.id) ? "default" : "outline",
|
|
7214
7214
|
onClick: () => l(C.id),
|
|
7215
7215
|
children: [
|
|
7216
|
-
C.available ? /* @__PURE__ */ n(
|
|
7216
|
+
C.available ? /* @__PURE__ */ n(Lt, { className: "size-3.5" }) : null,
|
|
7217
7217
|
C.label.replace(/ \(.+\)$/, "")
|
|
7218
7218
|
]
|
|
7219
7219
|
},
|
|
@@ -8181,7 +8181,7 @@ function N2({ sid: e, onClose: t }) {
|
|
|
8181
8181
|
onClick: t,
|
|
8182
8182
|
"aria-label": "Close diff",
|
|
8183
8183
|
className: "rounded-lg p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",
|
|
8184
|
-
children: /* @__PURE__ */ n(
|
|
8184
|
+
children: /* @__PURE__ */ n(Dt, { className: "size-4" })
|
|
8185
8185
|
}
|
|
8186
8186
|
)
|
|
8187
8187
|
] }),
|
|
@@ -8231,7 +8231,7 @@ const S2 = $s(function({
|
|
|
8231
8231
|
s != null && s.merged ? "border-[var(--success)]/35 bg-[var(--success)]/10 text-foreground hover:bg-[var(--success)]/15" : "border-border bg-card/95 text-foreground hover:bg-card"
|
|
8232
8232
|
),
|
|
8233
8233
|
children: [
|
|
8234
|
-
s != null && s.merged ? /* @__PURE__ */ n(
|
|
8234
|
+
s != null && s.merged ? /* @__PURE__ */ n(Lt, { className: "size-3.5 text-[var(--success)]", strokeWidth: 2.5 }) : /* @__PURE__ */ n(wf, { className: "size-3.5 text-[var(--primary)]" }),
|
|
8235
8235
|
/* @__PURE__ */ c("span", { children: [
|
|
8236
8236
|
m,
|
|
8237
8237
|
" changed"
|
|
@@ -8254,7 +8254,7 @@ const S2 = $s(function({
|
|
|
8254
8254
|
] }) : null;
|
|
8255
8255
|
}), C2 = Qr(
|
|
8256
8256
|
"session-files-panel",
|
|
8257
|
-
() => import("./SessionFilesPanel-
|
|
8257
|
+
() => import("./SessionFilesPanel-B8z9LfvK.js")
|
|
8258
8258
|
);
|
|
8259
8259
|
function ec({ className: e, ...t }) {
|
|
8260
8260
|
return /* @__PURE__ */ n(
|
|
@@ -8617,7 +8617,7 @@ function Yt({
|
|
|
8617
8617
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
8618
8618
|
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
8619
8619
|
children: /* @__PURE__ */ n(tn.RadioItemIndicator, { children: /* @__PURE__ */ n(
|
|
8620
|
-
|
|
8620
|
+
Lt,
|
|
8621
8621
|
{}
|
|
8622
8622
|
) })
|
|
8623
8623
|
}
|
|
@@ -8797,7 +8797,7 @@ function mi({
|
|
|
8797
8797
|
{
|
|
8798
8798
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
8799
8799
|
"data-slot": "context-menu-radio-item-indicator",
|
|
8800
|
-
children: /* @__PURE__ */ n(cn.RadioItemIndicator, { children: /* @__PURE__ */ n(
|
|
8800
|
+
children: /* @__PURE__ */ n(cn.RadioItemIndicator, { children: /* @__PURE__ */ n(Lt, {}) })
|
|
8801
8801
|
}
|
|
8802
8802
|
),
|
|
8803
8803
|
t
|
|
@@ -8978,7 +8978,7 @@ async function B4() {
|
|
|
8978
8978
|
}
|
|
8979
8979
|
}
|
|
8980
8980
|
const X2 = Fi(
|
|
8981
|
-
() => import("./streamdown-response-
|
|
8981
|
+
() => import("./streamdown-response-CVn6mItY.js").then((e) => e.a).then((e) => ({ default: e.StreamdownResponse }))
|
|
8982
8982
|
);
|
|
8983
8983
|
function Xs({ className: e, from: t, ...r }) {
|
|
8984
8984
|
return /* @__PURE__ */ n(
|
|
@@ -9192,7 +9192,7 @@ function ek({
|
|
|
9192
9192
|
"aria-label": "Dismiss question",
|
|
9193
9193
|
title: "Dismiss — the agent stops waiting",
|
|
9194
9194
|
className: "-my-1 -mr-1.5 flex size-7 shrink-0 self-center items-center justify-center rounded-full text-muted-foreground/70 transition-[color,background-color,transform] duration-150 hover:bg-destructive/10 hover:text-destructive active:scale-[0.94] disabled:pointer-events-none disabled:opacity-40",
|
|
9195
|
-
children: /* @__PURE__ */ n(
|
|
9195
|
+
children: /* @__PURE__ */ n(Dt, { className: "size-3.5" })
|
|
9196
9196
|
}
|
|
9197
9197
|
)
|
|
9198
9198
|
] }),
|
|
@@ -9432,7 +9432,7 @@ function sk() {
|
|
|
9432
9432
|
/* @__PURE__ */ n(Al, { className: "size-4" }),
|
|
9433
9433
|
t === "native" ? "Install" : "How"
|
|
9434
9434
|
] }),
|
|
9435
|
-
/* @__PURE__ */ n(ke, { size: "icon-xs", variant: "ghost", onClick: a, "aria-label": "Dismiss install suggestion", children: /* @__PURE__ */ n(
|
|
9435
|
+
/* @__PURE__ */ n(ke, { size: "icon-xs", variant: "ghost", onClick: a, "aria-label": "Dismiss install suggestion", children: /* @__PURE__ */ n(Dt, { className: "size-3.5" }) })
|
|
9436
9436
|
] }),
|
|
9437
9437
|
/* @__PURE__ */ n(_m, { mode: t, open: i.instructionsOpen, onOpenChange: i.setInstructionsOpen })
|
|
9438
9438
|
] });
|
|
@@ -9696,7 +9696,7 @@ function hk() {
|
|
|
9696
9696
|
onClick: () => b(!1),
|
|
9697
9697
|
"aria-label": "Close",
|
|
9698
9698
|
className: "flex size-7 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground transition hover:text-foreground active:scale-95",
|
|
9699
|
-
children: /* @__PURE__ */ n(
|
|
9699
|
+
children: /* @__PURE__ */ n(Dt, { className: "size-3.5" })
|
|
9700
9700
|
}
|
|
9701
9701
|
)
|
|
9702
9702
|
] }),
|
|
@@ -11103,7 +11103,7 @@ function eN({
|
|
|
11103
11103
|
/* @__PURE__ */ n(
|
|
11104
11104
|
"img",
|
|
11105
11105
|
{
|
|
11106
|
-
src:
|
|
11106
|
+
src: Fn(W.kind),
|
|
11107
11107
|
alt: "",
|
|
11108
11108
|
className: "rounded-xl",
|
|
11109
11109
|
style: {
|
|
@@ -11277,7 +11277,7 @@ function nN() {
|
|
|
11277
11277
|
shouldSuppressClick: a
|
|
11278
11278
|
};
|
|
11279
11279
|
}
|
|
11280
|
-
const
|
|
11280
|
+
const Un = [
|
|
11281
11281
|
{ key: "aisdk", label: "claude", scheduled: !0 },
|
|
11282
11282
|
{ key: "codex-aisdk", label: "codex", scheduled: !0 },
|
|
11283
11283
|
{ key: "grok", label: "grok", scheduled: !0 },
|
|
@@ -11287,16 +11287,16 @@ const Bn = [
|
|
|
11287
11287
|
{ key: "jcode", label: "jcode" },
|
|
11288
11288
|
{ key: "pi", label: "pi" },
|
|
11289
11289
|
{ key: "copilot", label: "copilot" }
|
|
11290
|
-
], rN = new Set(
|
|
11290
|
+
], rN = new Set(Un.map((e) => e.key));
|
|
11291
11291
|
function gl(e, t) {
|
|
11292
11292
|
return e && rN.has(e) ? e : t;
|
|
11293
11293
|
}
|
|
11294
11294
|
function sN() {
|
|
11295
|
-
return
|
|
11295
|
+
return Un.filter((e) => e.scheduled);
|
|
11296
11296
|
}
|
|
11297
11297
|
const oN = 5;
|
|
11298
11298
|
function iN() {
|
|
11299
|
-
return
|
|
11299
|
+
return Un.slice(0, oN).map((e) => e.key);
|
|
11300
11300
|
}
|
|
11301
11301
|
function aN(e, t, r, s) {
|
|
11302
11302
|
return t.find((o) => (o.selectorId ?? o.key) === s) ?? t.find((o) => o.key === r) ?? t[0] ?? e.find((o) => o.key === r) ?? e[0];
|
|
@@ -11396,26 +11396,26 @@ function fN({ className: e, isStreaming: t, children: r, ...s }) {
|
|
|
11396
11396
|
function mN({ className: e, children: t, ...r }) {
|
|
11397
11397
|
return /* @__PURE__ */ n(ym, { className: $("mt-2 text-sm", e), ...r, children: /* @__PURE__ */ n(qo, { className: "ai-live-text max-w-full opacity-90", children: t }) });
|
|
11398
11398
|
}
|
|
11399
|
-
const pN = Fi(() => import("./chat-engine-
|
|
11399
|
+
const pN = Fi(() => import("./chat-engine-BodQVvQD.js"));
|
|
11400
11400
|
function hN() {
|
|
11401
|
-
const e = () => void import("./chat-engine-
|
|
11401
|
+
const e = () => void import("./chat-engine-BodQVvQD.js"), t = globalThis.requestIdleCallback;
|
|
11402
11402
|
typeof t == "function" ? t(e, { timeout: 3e3 }) : setTimeout(e, 1500);
|
|
11403
11403
|
}
|
|
11404
11404
|
const Gm = Qr(
|
|
11405
11405
|
"TermView",
|
|
11406
|
-
() => import("./TermView-
|
|
11407
|
-
), pu = Qr("ShippedPage", () => import("./shipped-page-
|
|
11406
|
+
() => import("./TermView-Cb-xX-ON.js").then((e) => ({ default: e.TermView }))
|
|
11407
|
+
), pu = Qr("ShippedPage", () => import("./shipped-page-CAktVthA.js")), gN = Qr(
|
|
11408
11408
|
"SessionTokenUsageDialog",
|
|
11409
|
-
() => import("./session-token-usage-
|
|
11409
|
+
() => import("./session-token-usage-DqKcSF3L.js")
|
|
11410
11410
|
), bN = Qr(
|
|
11411
11411
|
"CodingAgentsPage",
|
|
11412
|
-
() => import("./coding-agents-page-
|
|
11412
|
+
() => import("./coding-agents-page-DqyOXuwH.js")
|
|
11413
11413
|
), hu = Qr(
|
|
11414
11414
|
"ResumeSessionSheet",
|
|
11415
|
-
() => import("./resume-session-sheet-
|
|
11415
|
+
() => import("./resume-session-sheet-JJKc1Mx7.js")
|
|
11416
11416
|
), xN = Qr(
|
|
11417
11417
|
"ChangelogPage",
|
|
11418
|
-
() => import("./ChangelogPage-
|
|
11418
|
+
() => import("./ChangelogPage-CSgWs9k6.js")
|
|
11419
11419
|
), Xi = qt("configured"), yN = {
|
|
11420
11420
|
claude: "Claude",
|
|
11421
11421
|
codex: "Codex",
|
|
@@ -11550,7 +11550,7 @@ function ea(e) {
|
|
|
11550
11550
|
const zN = sN();
|
|
11551
11551
|
function ta(e, t = "configured", r = {}) {
|
|
11552
11552
|
var a, l;
|
|
11553
|
-
const s = r.scheduledOnly ?
|
|
11553
|
+
const s = r.scheduledOnly ? Un.filter((d) => d.scheduled) : Un, o = cc(s, e, t), i = (l = (a = e == null ? void 0 : e.find((d) => d.key === "aisdk")) == null ? void 0 : a.status.accounts) == null ? void 0 : l.filter((d) => d.connected);
|
|
11554
11554
|
return i != null && i.length ? o.flatMap(
|
|
11555
11555
|
(d) => d.key === "aisdk" ? [
|
|
11556
11556
|
{
|
|
@@ -11573,9 +11573,9 @@ function ta(e, t = "configured", r = {}) {
|
|
|
11573
11573
|
}
|
|
11574
11574
|
function ON(e, t = "configured") {
|
|
11575
11575
|
const r = ta(e, t), s = new Set(
|
|
11576
|
-
lN(
|
|
11576
|
+
lN(Un, e, t).map((o) => o.key)
|
|
11577
11577
|
);
|
|
11578
|
-
return s.size ?
|
|
11578
|
+
return s.size ? Un.flatMap((o) => {
|
|
11579
11579
|
const i = r.filter((a) => a.key === o.key);
|
|
11580
11580
|
return i.length ? i : s.has(o.key) ? [{ ...o, locked: !0 }] : [];
|
|
11581
11581
|
}) : r;
|
|
@@ -11972,7 +11972,7 @@ function fc({
|
|
|
11972
11972
|
/* @__PURE__ */ n(
|
|
11973
11973
|
"img",
|
|
11974
11974
|
{
|
|
11975
|
-
src:
|
|
11975
|
+
src: Fn(d),
|
|
11976
11976
|
alt: "",
|
|
11977
11977
|
className: $(
|
|
11978
11978
|
"size-5",
|
|
@@ -12081,7 +12081,7 @@ function mc({
|
|
|
12081
12081
|
"aria-label": `Remove ${a.name}`,
|
|
12082
12082
|
title: "Remove",
|
|
12083
12083
|
disabled: r || l,
|
|
12084
|
-
children: /* @__PURE__ */ n(
|
|
12084
|
+
children: /* @__PURE__ */ n(Dt, { className: "size-3.5" })
|
|
12085
12085
|
}
|
|
12086
12086
|
)
|
|
12087
12087
|
]
|
|
@@ -12886,7 +12886,7 @@ function u5({
|
|
|
12886
12886
|
transition: "transform 180ms cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 140ms ease-out"
|
|
12887
12887
|
},
|
|
12888
12888
|
className: "fixed z-50 flex touch-none select-none items-center justify-center rounded-full border border-border bg-background text-muted-foreground shadow-lg active:scale-95 hover:bg-muted hover:text-foreground",
|
|
12889
|
-
children: /* @__PURE__ */ n(
|
|
12889
|
+
children: /* @__PURE__ */ n(Dt, { className: "size-4" })
|
|
12890
12890
|
}
|
|
12891
12891
|
),
|
|
12892
12892
|
document.body
|
|
@@ -13003,7 +13003,7 @@ const ra = Bi(function({ onText: t, onAutoSubmit: r, onInterim: s, onCancel: o,
|
|
|
13003
13003
|
le ? X ? "z-10 bg-muted-foreground text-background" : "z-10 bg-destructive text-destructive-foreground" : d ? "relative z-10 bg-transparent text-muted-foreground hover:bg-transparent hover:text-foreground" : "text-muted-foreground hover:bg-muted",
|
|
13004
13004
|
l
|
|
13005
13005
|
),
|
|
13006
|
-
children: X ? /* @__PURE__ */ n(
|
|
13006
|
+
children: X ? /* @__PURE__ */ n(Dt, { className: "size-4" }) : f === "transcribing" || f === "starting" ? (
|
|
13007
13007
|
// "starting" spins too, so the tap visibly registers while the browser
|
|
13008
13008
|
// is prompting for / opening the mic instead of looking like a dead tap.
|
|
13009
13009
|
/* @__PURE__ */ n(pt, { className: "size-4 animate-spin" })
|
|
@@ -13128,7 +13128,7 @@ function f5({
|
|
|
13128
13128
|
le && "opacity-50",
|
|
13129
13129
|
m
|
|
13130
13130
|
),
|
|
13131
|
-
children: H ? /* @__PURE__ */ n(
|
|
13131
|
+
children: H ? /* @__PURE__ */ n(Dt, { className: "size-4" }) : t || J ? /* @__PURE__ */ n(pt, { className: "size-4 animate-spin" }) : Y ? /* @__PURE__ */ n(Ol, { className: "size-4" }) : /* @__PURE__ */ n(qi, { className: "size-4" })
|
|
13132
13132
|
}
|
|
13133
13133
|
);
|
|
13134
13134
|
}
|
|
@@ -13818,7 +13818,7 @@ function _5() {
|
|
|
13818
13818
|
});
|
|
13819
13819
|
},
|
|
13820
13820
|
[rt]
|
|
13821
|
-
), Jt = L2(), { onOpenHostSettings:
|
|
13821
|
+
), Jt = L2(), { onOpenHostSettings: $n } = ks(), Rt = v && !!$n, Sr = oe(() => et("notifications"), [et]), [Cr, Tr] = y(() => L), [fn, Wt] = y(!1), [Hn, or] = y(!1);
|
|
13822
13822
|
q(() => {
|
|
13823
13823
|
ye === "live" && Tr(!0), ye === "notifications" && Wt(!0), ye === "artifacts" && or(!0);
|
|
13824
13824
|
}, [ye]), q(() => {
|
|
@@ -14153,7 +14153,7 @@ function _5() {
|
|
|
14153
14153
|
}, [$e]);
|
|
14154
14154
|
const Ds = oe((g) => {
|
|
14155
14155
|
Re(g), g !== "__all" && g !== "__unassigned" && localStorage.setItem("lfg_user", g);
|
|
14156
|
-
}, []),
|
|
14156
|
+
}, []), zn = Be(
|
|
14157
14157
|
() => it.filter(
|
|
14158
14158
|
(g) => g.sessionId && !(_r && g.spawnedBy === "schedule") && // A pane target means a driveable TUI session. Harness-backed
|
|
14159
14159
|
// sessions have no pane, so admit those explicitly; otherwise Codex
|
|
@@ -14164,8 +14164,8 @@ function _5() {
|
|
|
14164
14164
|
),
|
|
14165
14165
|
[it, Ic, _r]
|
|
14166
14166
|
), js = Be(
|
|
14167
|
-
() =>
|
|
14168
|
-
[
|
|
14167
|
+
() => zn.filter((g) => id(g, _e)),
|
|
14168
|
+
[zn, _e]
|
|
14169
14169
|
), lr = Be(
|
|
14170
14170
|
() => Array.from(
|
|
14171
14171
|
/* @__PURE__ */ new Set([
|
|
@@ -14191,12 +14191,12 @@ function _5() {
|
|
|
14191
14191
|
const g = new Set(da.map((E) => E.id));
|
|
14192
14192
|
return la.filter((E) => g.has(E.agentId));
|
|
14193
14193
|
}, [la, $e, da]), Oc = Be(
|
|
14194
|
-
() =>
|
|
14195
|
-
[
|
|
14194
|
+
() => zn.map((g) => g.sessionId).filter((g) => !!g),
|
|
14195
|
+
[zn]
|
|
14196
14196
|
), Ar = oe(
|
|
14197
14197
|
(g) => {
|
|
14198
14198
|
if (!g.sessionId) return;
|
|
14199
|
-
const E =
|
|
14199
|
+
const E = zn.find(
|
|
14200
14200
|
(ce) => ce.sessionId === g.sessionId || ce.nativeSessionId === g.sessionId
|
|
14201
14201
|
), U = (E == null ? void 0 : E.project) || g.project;
|
|
14202
14202
|
if (U && tt(U), et("live"), E != null && E.sessionId) {
|
|
@@ -14215,16 +14215,16 @@ function _5() {
|
|
|
14215
14215
|
reviewLabel: g.reviewLabel
|
|
14216
14216
|
}), p({ sid: g.sessionId, n: Date.now() });
|
|
14217
14217
|
},
|
|
14218
|
-
[
|
|
14218
|
+
[zn, $t, et]
|
|
14219
14219
|
);
|
|
14220
14220
|
q(() => {
|
|
14221
14221
|
const g = w.current;
|
|
14222
14222
|
if (!g || Me || Yo) return;
|
|
14223
|
-
const E =
|
|
14223
|
+
const E = zn.find(
|
|
14224
14224
|
(U) => U.sessionId === g || U.nativeSessionId === g
|
|
14225
14225
|
);
|
|
14226
14226
|
E && (w.current = null, id(E, _e) || Re("__all"), $e !== "__all" && E.project !== $e && tt("__all"), et("live"), p({ sid: E.sessionId ?? g, n: Date.now() }));
|
|
14227
|
-
}, [
|
|
14227
|
+
}, [zn, Me, _e, $e, Yo, et]), q(() => {
|
|
14228
14228
|
if (!w.current || Me || Yo) return;
|
|
14229
14229
|
const g = window.setTimeout(() => {
|
|
14230
14230
|
var ce;
|
|
@@ -14275,11 +14275,11 @@ function _5() {
|
|
|
14275
14275
|
q(() => {
|
|
14276
14276
|
const g = h == null ? void 0 : h.sessionId;
|
|
14277
14277
|
if (!g) return;
|
|
14278
|
-
const E =
|
|
14278
|
+
const E = zn.find(
|
|
14279
14279
|
(U) => U.sessionId === g || U.nativeSessionId === g
|
|
14280
14280
|
);
|
|
14281
14281
|
E != null && E.sessionId && (b(null), p({ sid: E.sessionId, n: Date.now() }));
|
|
14282
|
-
}, [
|
|
14282
|
+
}, [zn, h]);
|
|
14283
14283
|
const ua = Oc.join(","), sn = Be(() => Kf(), []) === "ws", fa = oe((g) => {
|
|
14284
14284
|
if (!g.length) return;
|
|
14285
14285
|
const E = new Map(g.map((U) => [U.sessionId, U]));
|
|
@@ -15087,7 +15087,7 @@ ${g.reasoning.map((Gn) => `- ${Gn}`).join(`
|
|
|
15087
15087
|
"span",
|
|
15088
15088
|
{
|
|
15089
15089
|
"data-lfg-host-slot": "header-actions",
|
|
15090
|
-
"data-lfg-host-settings":
|
|
15090
|
+
"data-lfg-host-settings": Rt ? "menu" : void 0,
|
|
15091
15091
|
className: "flex items-center gap-1.5"
|
|
15092
15092
|
}
|
|
15093
15093
|
),
|
|
@@ -15098,7 +15098,7 @@ ${g.reasoning.map((Gn) => `- ${Gn}`).join(`
|
|
|
15098
15098
|
onOpenTab: et,
|
|
15099
15099
|
extraTabs: Jt,
|
|
15100
15100
|
showSettings: !1,
|
|
15101
|
-
onOpenHostSettings:
|
|
15101
|
+
onOpenHostSettings: Rt ? $n : void 0
|
|
15102
15102
|
}
|
|
15103
15103
|
)
|
|
15104
15104
|
] }) })
|
|
@@ -15195,6 +15195,14 @@ ${g.reasoning.map((Gn) => `- ${Gn}`).join(`
|
|
|
15195
15195
|
}
|
|
15196
15196
|
) }) }),
|
|
15197
15197
|
/* @__PURE__ */ n(ms, { className: "shrink-0", children: /* @__PURE__ */ c("div", { className: "glass-island flex h-11 items-center gap-1.5 rounded-full px-2", children: [
|
|
15198
|
+
v ? /* @__PURE__ */ n(
|
|
15199
|
+
"span",
|
|
15200
|
+
{
|
|
15201
|
+
"data-lfg-host-slot": "header-actions",
|
|
15202
|
+
"data-lfg-host-settings": Rt ? "menu" : void 0,
|
|
15203
|
+
className: "flex items-center gap-1.5"
|
|
15204
|
+
}
|
|
15205
|
+
) : null,
|
|
15198
15206
|
ye === "live" || ye === "bots" || ye === "notifications" || ye === "artifacts" ? (
|
|
15199
15207
|
// Page destinations live in PagesMenu. Desktop also keeps its
|
|
15200
15208
|
// project scope control here; mobile project scope lives in the
|
|
@@ -15242,7 +15250,8 @@ ${g.reasoning.map((Gn) => `- ${Gn}`).join(`
|
|
|
15242
15250
|
tab: ye,
|
|
15243
15251
|
onOpenTab: et,
|
|
15244
15252
|
extraTabs: Jt,
|
|
15245
|
-
showSettings: !v
|
|
15253
|
+
showSettings: !v,
|
|
15254
|
+
onOpenHostSettings: v && Rt ? $n : void 0
|
|
15246
15255
|
}
|
|
15247
15256
|
)
|
|
15248
15257
|
] }) })
|
|
@@ -15258,7 +15267,7 @@ ${g.reasoning.map((Gn) => `- ${Gn}`).join(`
|
|
|
15258
15267
|
onClick: () => Ze(null),
|
|
15259
15268
|
"aria-label": "Dismiss",
|
|
15260
15269
|
className: "-mr-1 shrink-0 rounded-md p-0.5 opacity-70 transition-opacity hover:opacity-100",
|
|
15261
|
-
children: /* @__PURE__ */ n(
|
|
15270
|
+
children: /* @__PURE__ */ n(Dt, { className: "size-4" })
|
|
15262
15271
|
}
|
|
15263
15272
|
)
|
|
15264
15273
|
] }) : null
|
|
@@ -15616,7 +15625,7 @@ ${g.reasoning.map((Gn) => `- ${Gn}`).join(`
|
|
|
15616
15625
|
pi: ["pi"]
|
|
15617
15626
|
}, ce = new Set(
|
|
15618
15627
|
cc(
|
|
15619
|
-
|
|
15628
|
+
Un,
|
|
15620
15629
|
V,
|
|
15621
15630
|
v ? "connected-or-opencode" : "configured"
|
|
15622
15631
|
).map((qe) => qe.key)
|
|
@@ -16005,7 +16014,7 @@ function z5({
|
|
|
16005
16014
|
),
|
|
16006
16015
|
/* @__PURE__ */ c(wr, { side: "top", align: "start", sideOffset: 8, className: "w-64 p-3", children: [
|
|
16007
16016
|
/* @__PURE__ */ c("div", { className: "mb-2 flex items-center gap-2", children: [
|
|
16008
|
-
/* @__PURE__ */ n("img", { src:
|
|
16017
|
+
/* @__PURE__ */ n("img", { src: Fn(e.kind), alt: "", className: "size-4" }),
|
|
16009
16018
|
/* @__PURE__ */ n("span", { className: "text-sm font-medium", children: e.label }),
|
|
16010
16019
|
e.plan ? /* @__PURE__ */ n("span", { className: "rounded-full bg-secondary px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-muted-foreground", children: e.plan }) : null
|
|
16011
16020
|
] }),
|
|
@@ -16551,7 +16560,7 @@ function O5({
|
|
|
16551
16560
|
/* @__PURE__ */ n("span", { className: "block truncate text-sm font-medium", children: O.label }),
|
|
16552
16561
|
/* @__PURE__ */ n("span", { className: "block truncate text-xs text-muted-foreground", children: O.status.setupRunning ? "Installing…" : O.status.configured ? "Connected" : ((de = O.status.checks.find((D) => !D.ok)) == null ? void 0 : de.label) || "Not set up" })
|
|
16553
16562
|
] }),
|
|
16554
|
-
O.status.configured ? /* @__PURE__ */ n(
|
|
16563
|
+
O.status.configured ? /* @__PURE__ */ n(Lt, { className: "size-4 shrink-0 text-emerald-500" }) : O.status.setupRunning ? /* @__PURE__ */ n(pt, { className: "size-4 shrink-0 animate-spin text-muted-foreground" }) : null
|
|
16555
16564
|
]
|
|
16556
16565
|
},
|
|
16557
16566
|
O.key
|
|
@@ -16561,7 +16570,7 @@ function O5({
|
|
|
16561
16570
|
] }),
|
|
16562
16571
|
v.lines.length > 0 && /* @__PURE__ */ c("div", { className: "mt-3 overflow-hidden rounded-xl border border-border bg-muted/40", children: [
|
|
16563
16572
|
/* @__PURE__ */ c("div", { className: "flex items-center gap-2 border-b border-border px-3 py-1.5 text-xs font-medium text-muted-foreground", children: [
|
|
16564
|
-
v.running ? /* @__PURE__ */ n(pt, { className: "size-3.5 animate-spin" }) : v.error ? /* @__PURE__ */ n("span", { className: "size-2 rounded-full bg-red-500" }) : /* @__PURE__ */ n(
|
|
16573
|
+
v.running ? /* @__PURE__ */ n(pt, { className: "size-3.5 animate-spin" }) : v.error ? /* @__PURE__ */ n("span", { className: "size-2 rounded-full bg-red-500" }) : /* @__PURE__ */ n(Lt, { className: "size-3.5 text-emerald-500" }),
|
|
16565
16574
|
v.running ? "Installing agents…" : v.error ? "Install failed" : "Install complete"
|
|
16566
16575
|
] }),
|
|
16567
16576
|
/* @__PURE__ */ n(
|
|
@@ -16895,7 +16904,7 @@ function pp({
|
|
|
16895
16904
|
}
|
|
16896
16905
|
);
|
|
16897
16906
|
}
|
|
16898
|
-
function
|
|
16907
|
+
function jn(e) {
|
|
16899
16908
|
return e.sessionId || e.nativeSessionId || e.tmuxName || "";
|
|
16900
16909
|
}
|
|
16901
16910
|
const vl = "lfg_pinned_sessions", hp = "lfg_mobile_pinned_sessions";
|
|
@@ -16912,7 +16921,7 @@ function wl() {
|
|
|
16912
16921
|
function gp(e, t) {
|
|
16913
16922
|
const r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
16914
16923
|
for (const p of e) {
|
|
16915
|
-
const h =
|
|
16924
|
+
const h = jn(p);
|
|
16916
16925
|
if (!h) continue;
|
|
16917
16926
|
const b = { session: p, children: [] };
|
|
16918
16927
|
r.set(h, b), p.sessionId && s.set(p.sessionId, h), p.nativeSessionId && s.set(p.nativeSessionId, h);
|
|
@@ -16924,8 +16933,8 @@ function gp(e, t) {
|
|
|
16924
16933
|
const w = r.get(x);
|
|
16925
16934
|
w && (w.children.push(h), o.add(p));
|
|
16926
16935
|
}
|
|
16927
|
-
const i = e.map((p) =>
|
|
16928
|
-
const b =
|
|
16936
|
+
const i = e.map((p) => jn(p)).filter((p) => p && r.has(p) && !o.has(p)).map((p) => r.get(p)).filter((p, h, b) => b.indexOf(p) === h), a = /* @__PURE__ */ new Map(), l = (p, h) => {
|
|
16937
|
+
const b = jn(p.session);
|
|
16929
16938
|
b && a.set(b, h), p.session.sessionId && a.set(p.session.sessionId, h), p.session.nativeSessionId && a.set(p.session.nativeSessionId, h);
|
|
16930
16939
|
for (const x of p.children) l(x, h);
|
|
16931
16940
|
};
|
|
@@ -16977,7 +16986,7 @@ function bp({
|
|
|
16977
16986
|
/* @__PURE__ */ n(
|
|
16978
16987
|
"img",
|
|
16979
16988
|
{
|
|
16980
|
-
src:
|
|
16989
|
+
src: Fn(e.agent),
|
|
16981
16990
|
alt: Po(e.agent),
|
|
16982
16991
|
className: $("rounded-md", r ? "size-8" : "size-6")
|
|
16983
16992
|
}
|
|
@@ -16987,7 +16996,7 @@ function bp({
|
|
|
16987
16996
|
{
|
|
16988
16997
|
"aria-hidden": !0,
|
|
16989
16998
|
className: "absolute -bottom-0.5 -right-0.5 flex size-2.5 items-center justify-center rounded-full bg-emerald-500 ring-2 ring-card",
|
|
16990
|
-
children: /* @__PURE__ */ n(
|
|
16999
|
+
children: /* @__PURE__ */ n(Lt, { className: "size-1.5 text-white", strokeWidth: 3 })
|
|
16991
17000
|
}
|
|
16992
17001
|
)
|
|
16993
17002
|
]
|
|
@@ -17107,7 +17116,7 @@ function B5({
|
|
|
17107
17116
|
// busyBySid changes frequently; include it so a parent follows a working child.
|
|
17108
17117
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17109
17118
|
[e, l]
|
|
17110
|
-
), Ye = new Set(Ue), Fe = (R) => Ye.has(
|
|
17119
|
+
), Ye = new Set(Ue), Fe = (R) => Ye.has(jn(R.session)) || R.children.some(Fe), Ne = (R) => !!R.session.botId, re = Pe.roots.filter(
|
|
17111
17120
|
(R) => Fe(R) && (!se || !Ne(R))
|
|
17112
17121
|
), B = Ng(se) ? Pe.roots.filter((R) => !Fe(R) && Ne(R)) : [], Se = Pe.roots.filter(
|
|
17113
17122
|
(R) => !Fe(R) && !Ne(R) && Pe.effectiveBusy(R)
|
|
@@ -17158,7 +17167,7 @@ function B5({
|
|
|
17158
17167
|
}
|
|
17159
17168
|
)
|
|
17160
17169
|
},
|
|
17161
|
-
|
|
17170
|
+
jn(R)
|
|
17162
17171
|
), Me = (R, ue = 1, Le = !0) => [
|
|
17163
17172
|
/* @__PURE__ */ c("div", { className: "relative", children: [
|
|
17164
17173
|
Le ? null : /* @__PURE__ */ n(
|
|
@@ -17182,7 +17191,7 @@ function B5({
|
|
|
17182
17191
|
R.children.length ? /* @__PURE__ */ n("div", { className: "relative ml-5 mt-1 flex flex-col gap-1.5 pb-1 pl-4 pt-1", children: R.children.flatMap(
|
|
17183
17192
|
(Ie, nt) => Me(Ie, ue + 1, nt === R.children.length - 1)
|
|
17184
17193
|
) }) : null
|
|
17185
|
-
] }, `child-${
|
|
17194
|
+
] }, `child-${jn(R.session)}`)
|
|
17186
17195
|
], Xe = (R) => R.children.length ? [
|
|
17187
17196
|
/* @__PURE__ */ c(
|
|
17188
17197
|
"div",
|
|
@@ -17201,7 +17210,7 @@ function B5({
|
|
|
17201
17210
|
)
|
|
17202
17211
|
]
|
|
17203
17212
|
},
|
|
17204
|
-
`family-${
|
|
17213
|
+
`family-${jn(R.session)}`
|
|
17205
17214
|
)
|
|
17206
17215
|
] : [He(R.session, 0)];
|
|
17207
17216
|
if (pe)
|
|
@@ -17599,13 +17608,13 @@ function U5({
|
|
|
17599
17608
|
const ht = Be(
|
|
17600
17609
|
() => gp(e, (_) => !!i[_.sessionId ?? ""]),
|
|
17601
17610
|
[e, i]
|
|
17602
|
-
), Ut = new Set(Q), Et = (_) => Ut.has(
|
|
17611
|
+
), Ut = new Set(Q), Et = (_) => Ut.has(jn(_.session)) || _.children.some(Et), et = ht.roots.filter(Et), nn = (_) => !!_.session.botId, An = ht.roots.filter(
|
|
17603
17612
|
(_) => !Et(_) && nn(_)
|
|
17604
17613
|
), kn = ht.roots.filter(
|
|
17605
17614
|
(_) => !Et(_) && !nn(_) && ht.effectiveBusy(_)
|
|
17606
17615
|
), Jt = ht.roots.filter(
|
|
17607
17616
|
(_) => !Et(_) && !nn(_) && !ht.effectiveBusy(_)
|
|
17608
|
-
),
|
|
17617
|
+
), $n = ht.flatten(et), Rt = ht.flatten(An), Sr = ht.flatten(kn), Cr = ht.flatten(Jt), Tr = Be(() => {
|
|
17609
17618
|
if (s !== "__all") return [];
|
|
17610
17619
|
const _ = /* @__PURE__ */ new Map();
|
|
17611
17620
|
for (const F of ht.roots.filter(
|
|
@@ -17616,10 +17625,10 @@ function U5({
|
|
|
17616
17625
|
}
|
|
17617
17626
|
return Array.from(_.entries()).map(([F, ae]) => ({ key: F, ...ae })).sort((F, ae) => F.label.localeCompare(ae.label));
|
|
17618
17627
|
}, [s, ht, Q]), fn = s === "__all" ? [
|
|
17619
|
-
|
|
17620
|
-
...
|
|
17628
|
+
...$n,
|
|
17629
|
+
...Rt,
|
|
17621
17630
|
...Tr.flatMap((_) => ht.flatten(_.nodes))
|
|
17622
|
-
] : [
|
|
17631
|
+
] : [...$n, ...Rt, ...Sr, ...Cr], Wt = Be(() => {
|
|
17623
17632
|
const _ = [];
|
|
17624
17633
|
for (const F of fn)
|
|
17625
17634
|
F.sessionId && _.push(F.sessionId);
|
|
@@ -17857,7 +17866,7 @@ function U5({
|
|
|
17857
17866
|
F
|
|
17858
17867
|
);
|
|
17859
17868
|
}, rn = (_, F = 0, ae = !0) => {
|
|
17860
|
-
const Je =
|
|
17869
|
+
const Je = jn(_.session);
|
|
17861
17870
|
return re ? /* @__PURE__ */ c("div", { className: "contents", children: [
|
|
17862
17871
|
Nn(_.session),
|
|
17863
17872
|
_.children.map(
|
|
@@ -17937,7 +17946,7 @@ function U5({
|
|
|
17937
17946
|
}
|
|
17938
17947
|
)
|
|
17939
17948
|
},
|
|
17940
|
-
|
|
17949
|
+
jn(_)
|
|
17941
17950
|
);
|
|
17942
17951
|
}, hn = f.length && !re ? /* @__PURE__ */ n(
|
|
17943
17952
|
Lr,
|
|
@@ -18150,16 +18159,16 @@ function U5({
|
|
|
18150
18159
|
/* @__PURE__ */ n(Mc, { active: ee, onOpenSessions: X, onOpenBots: H })
|
|
18151
18160
|
] }),
|
|
18152
18161
|
/* @__PURE__ */ n("div", { className: "session-list-scroll min-h-0 flex-1 overflow-y-auto px-1.5 py-2", children: ee === "chat" ? Z : /* @__PURE__ */ c(De, { children: [
|
|
18153
|
-
|
|
18162
|
+
$n.length ? /* @__PURE__ */ n(
|
|
18154
18163
|
Lr,
|
|
18155
18164
|
{
|
|
18156
18165
|
label: "Pinned",
|
|
18157
|
-
count:
|
|
18166
|
+
count: $n.length,
|
|
18158
18167
|
collapsed: re,
|
|
18159
18168
|
children: et.map((_) => rn(_))
|
|
18160
18169
|
}
|
|
18161
18170
|
) : null,
|
|
18162
|
-
|
|
18171
|
+
Rt.length ? /* @__PURE__ */ n(Lr, { label: "Bots", count: Rt.length, collapsed: re, children: An.map((_) => rn(_)) }) : null,
|
|
18163
18172
|
s === "__all" ? /* @__PURE__ */ c(De, { children: [
|
|
18164
18173
|
Tr.map((_) => /* @__PURE__ */ n(
|
|
18165
18174
|
Lr,
|
|
@@ -18318,7 +18327,7 @@ function F5({ onClose: e }) {
|
|
|
18318
18327
|
onClick: e,
|
|
18319
18328
|
"aria-label": "Close",
|
|
18320
18329
|
className: "flex size-7 items-center justify-center rounded-lg text-muted-foreground hover:bg-muted",
|
|
18321
|
-
children: /* @__PURE__ */ n(
|
|
18330
|
+
children: /* @__PURE__ */ n(Dt, { className: "size-4" })
|
|
18322
18331
|
}
|
|
18323
18332
|
)
|
|
18324
18333
|
] }),
|
|
@@ -18604,7 +18613,7 @@ function q5({
|
|
|
18604
18613
|
i ? "" : "pointer-events-none"
|
|
18605
18614
|
),
|
|
18606
18615
|
children: [
|
|
18607
|
-
/* @__PURE__ */ n(
|
|
18616
|
+
/* @__PURE__ */ n(Dt, { className: "size-5" }),
|
|
18608
18617
|
"Dismiss"
|
|
18609
18618
|
]
|
|
18610
18619
|
}
|
|
@@ -18781,7 +18790,7 @@ function W5({
|
|
|
18781
18790
|
}
|
|
18782
18791
|
) : null,
|
|
18783
18792
|
h ? /* @__PURE__ */ c("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: [
|
|
18784
|
-
/* @__PURE__ */ n(
|
|
18793
|
+
/* @__PURE__ */ n(Lt, { className: "size-3.5" }),
|
|
18785
18794
|
"Connected"
|
|
18786
18795
|
] }) : null
|
|
18787
18796
|
] }),
|
|
@@ -19864,7 +19873,7 @@ function Z5({
|
|
|
19864
19873
|
"Fork"
|
|
19865
19874
|
] }),
|
|
19866
19875
|
m ? /* @__PURE__ */ c(Kn, { onClick: m, children: [
|
|
19867
|
-
/* @__PURE__ */ n(
|
|
19876
|
+
/* @__PURE__ */ n(Dt, { className: "size-4" }),
|
|
19868
19877
|
"Close column"
|
|
19869
19878
|
] }) : null,
|
|
19870
19879
|
yr(e) ? /* @__PURE__ */ c(De, { children: [
|
|
@@ -20812,7 +20821,7 @@ const Np = $s(function({
|
|
|
20812
20821
|
onClick: p,
|
|
20813
20822
|
"aria-label": "Close column",
|
|
20814
20823
|
className: "flex size-7 shrink-0 items-center justify-center rounded-lg text-muted-foreground hover:bg-muted",
|
|
20815
|
-
children: /* @__PURE__ */ n(
|
|
20824
|
+
children: /* @__PURE__ */ n(Dt, { className: "size-4" })
|
|
20816
20825
|
}
|
|
20817
20826
|
) : null
|
|
20818
20827
|
]
|
|
@@ -21158,10 +21167,10 @@ function lS({ items: e, live: t }) {
|
|
|
21158
21167
|
/* @__PURE__ */ n("div", { className: "min-h-0 overflow-y-auto", children: x })
|
|
21159
21168
|
] })
|
|
21160
21169
|
] }) })
|
|
21161
|
-
] }) : /* @__PURE__ */ c(
|
|
21162
|
-
/* @__PURE__ */ n(
|
|
21163
|
-
/* @__PURE__ */ n(
|
|
21164
|
-
|
|
21170
|
+
] }) : /* @__PURE__ */ c(Ln.Root, { open: o, onOpenChange: b, children: [
|
|
21171
|
+
/* @__PURE__ */ n(Ln.Trigger, { render: w }),
|
|
21172
|
+
/* @__PURE__ */ n(Ln.Portal, { children: /* @__PURE__ */ n(Ln.Positioner, { side: "top", align: "start", sideOffset: 7, className: "isolate z-[170] outline-none", children: /* @__PURE__ */ c(
|
|
21173
|
+
Ln.Popup,
|
|
21165
21174
|
{
|
|
21166
21175
|
onMouseEnter: f,
|
|
21167
21176
|
onMouseLeave: p,
|
|
@@ -21409,7 +21418,7 @@ function Tu({
|
|
|
21409
21418
|
),
|
|
21410
21419
|
"aria-label": f ? "Message copied" : "Copy message",
|
|
21411
21420
|
title: f ? "Copied" : "Copy message",
|
|
21412
|
-
children: f ? /* @__PURE__ */ n(
|
|
21421
|
+
children: f ? /* @__PURE__ */ n(Lt, { className: "size-3.5" }) : /* @__PURE__ */ n(br, { className: "size-3.5" })
|
|
21413
21422
|
}
|
|
21414
21423
|
) : null,
|
|
21415
21424
|
l ? sr(
|
|
@@ -21720,7 +21729,7 @@ function gS({
|
|
|
21720
21729
|
r(d instanceof Error ? d.message : String(d)), a(null);
|
|
21721
21730
|
}
|
|
21722
21731
|
},
|
|
21723
|
-
children: i === o ? /* @__PURE__ */ n(pt, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ n(
|
|
21732
|
+
children: i === o ? /* @__PURE__ */ n(pt, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ n(Dt, { className: "size-4" })
|
|
21724
21733
|
}
|
|
21725
21734
|
)
|
|
21726
21735
|
] }),
|
|
@@ -21917,7 +21926,7 @@ function Nc({
|
|
|
21917
21926
|
onClick: () => s(!1),
|
|
21918
21927
|
className: "flex size-8 shrink-0 items-center justify-center rounded-full bg-muted",
|
|
21919
21928
|
"aria-label": "Close",
|
|
21920
|
-
children: /* @__PURE__ */ n(
|
|
21929
|
+
children: /* @__PURE__ */ n(Dt, { className: "size-4" })
|
|
21921
21930
|
}
|
|
21922
21931
|
)
|
|
21923
21932
|
] }),
|
|
@@ -22015,7 +22024,7 @@ function Nc({
|
|
|
22015
22024
|
disabled: !a || d,
|
|
22016
22025
|
onClick: () => a && void N("/api/projects/use-folder", { path: a.current }),
|
|
22017
22026
|
children: [
|
|
22018
|
-
/* @__PURE__ */ n(
|
|
22027
|
+
/* @__PURE__ */ n(Lt, { className: "size-4" }),
|
|
22019
22028
|
" Use This Folder"
|
|
22020
22029
|
]
|
|
22021
22030
|
}
|
|
@@ -22085,7 +22094,7 @@ function Mp({
|
|
|
22085
22094
|
h ? "bg-blue-500/15 text-blue-500" : "bg-muted text-muted-foreground"
|
|
22086
22095
|
),
|
|
22087
22096
|
children: [
|
|
22088
|
-
h ? /* @__PURE__ */ n(
|
|
22097
|
+
h ? /* @__PURE__ */ n(Lt, { className: "size-3.5" }) : /* @__PURE__ */ n(Oo, { className: "size-3.5" }),
|
|
22089
22098
|
h ? "Done" : "Manage"
|
|
22090
22099
|
]
|
|
22091
22100
|
}
|
|
@@ -22107,7 +22116,7 @@ function Mp({
|
|
|
22107
22116
|
]
|
|
22108
22117
|
}
|
|
22109
22118
|
),
|
|
22110
|
-
/* @__PURE__ */ n("button", { type: "button", onClick: () => s(!1), className: "flex size-8 items-center justify-center rounded-full bg-muted", "aria-label": "Close", children: /* @__PURE__ */ n(
|
|
22119
|
+
/* @__PURE__ */ n("button", { type: "button", onClick: () => s(!1), className: "flex size-8 items-center justify-center rounded-full bg-muted", "aria-label": "Close", children: /* @__PURE__ */ n(Dt, { className: "size-4" }) })
|
|
22111
22120
|
] })
|
|
22112
22121
|
] }),
|
|
22113
22122
|
x ? /* @__PURE__ */ n(
|
|
@@ -22152,7 +22161,7 @@ function Mp({
|
|
|
22152
22161
|
/* @__PURE__ */ n("span", { className: "block truncate text-sm font-medium", children: "All projects" }),
|
|
22153
22162
|
m ? /* @__PURE__ */ n("span", { className: "block truncate text-xs text-muted-foreground", children: "Show every session" }) : null
|
|
22154
22163
|
] }),
|
|
22155
|
-
X ? /* @__PURE__ */ n(
|
|
22164
|
+
X ? /* @__PURE__ */ n(Lt, { className: "size-4 shrink-0 text-emerald-500" }) : /* @__PURE__ */ n(Bt, { className: "size-4 shrink-0 text-muted-foreground" })
|
|
22156
22165
|
]
|
|
22157
22166
|
}
|
|
22158
22167
|
) : null,
|
|
@@ -22203,7 +22212,7 @@ function Mp({
|
|
|
22203
22212
|
/* @__PURE__ */ n("span", { className: "block truncate text-sm font-medium", children: K.name }),
|
|
22204
22213
|
m ? /* @__PURE__ */ n("span", { className: "block truncate text-xs text-muted-foreground", children: K.cwd }) : null
|
|
22205
22214
|
] }),
|
|
22206
|
-
K.cwd === r ? /* @__PURE__ */ n(
|
|
22215
|
+
K.cwd === r ? /* @__PURE__ */ n(Lt, { className: "size-4 shrink-0 text-emerald-500" }) : /* @__PURE__ */ n(Bt, { className: "size-4 shrink-0 text-muted-foreground" })
|
|
22207
22216
|
]
|
|
22208
22217
|
},
|
|
22209
22218
|
K.cwd
|
|
@@ -22496,7 +22505,7 @@ function _u({
|
|
|
22496
22505
|
function kn(Z) {
|
|
22497
22506
|
K(Z.cwd), localStorage.setItem("lfg_v2_repo", Z.cwd), a && a(En(Z)), D(!1);
|
|
22498
22507
|
}
|
|
22499
|
-
const { usage: Jt, loading:
|
|
22508
|
+
const { usage: Jt, loading: $n } = Lk({
|
|
22500
22509
|
agent: k,
|
|
22501
22510
|
accountId: k === "aisdk" && H || null,
|
|
22502
22511
|
combineAccounts: k === "aisdk" && !H,
|
|
@@ -22507,19 +22516,19 @@ function _u({
|
|
|
22507
22516
|
}, [ye, z]), q(() => {
|
|
22508
22517
|
wt.length && !wt.includes(V) && ie(wt.includes("high") ? "high" : wt[0]);
|
|
22509
22518
|
}, [V, wt]);
|
|
22510
|
-
const
|
|
22519
|
+
const Rt = Be(() => ta(x, C), [C, x]), Sr = Be(() => ON(x, C), [C, x]), Cr = RN(), Tr = LN(), fn = k === "aisdk" && H ? `aisdk:${H}` : k;
|
|
22511
22520
|
q(() => {
|
|
22512
22521
|
var _;
|
|
22513
|
-
if (
|
|
22514
|
-
const Z = (_ =
|
|
22522
|
+
if (Rt.some((F) => F.key === k)) return;
|
|
22523
|
+
const Z = (_ = Rt[0]) == null ? void 0 : _.key;
|
|
22515
22524
|
Z && (L(Z), te(localStorage.getItem(`lfg_model_${Z}`) || N(Z)));
|
|
22516
|
-
}, [k,
|
|
22517
|
-
if (k !== "aisdk" ||
|
|
22525
|
+
}, [k, Rt]), q(() => {
|
|
22526
|
+
if (k !== "aisdk" || Rt.find(
|
|
22518
22527
|
(F) => (F.selectorId ?? F.key) === fn
|
|
22519
22528
|
)) return;
|
|
22520
|
-
const _ =
|
|
22529
|
+
const _ = Rt.find((F) => F.key === "aisdk");
|
|
22521
22530
|
X((_ == null ? void 0 : _.accountId) ?? "");
|
|
22522
|
-
}, [k, fn,
|
|
22531
|
+
}, [k, fn, Rt]);
|
|
22523
22532
|
const Wt = j(null);
|
|
22524
22533
|
if (q(() => {
|
|
22525
22534
|
w && Wt.current !== w.nonce && (Wt.current = w.nonce, L(w.kind), w.kind === "aisdk" && X(w.accountId ?? ""), te(
|
|
@@ -22531,7 +22540,7 @@ function _u({
|
|
|
22531
22540
|
if (Z == null || Z.preventDefault(), Ut) return;
|
|
22532
22541
|
const ae = (_ ?? le).trim(), Je = Te;
|
|
22533
22542
|
if (!ae && !Je.length) return;
|
|
22534
|
-
if (!
|
|
22543
|
+
if (!Rt.some((Re) => Re.key === k)) {
|
|
22535
22544
|
const Re = "Set up and sign in to a coding agent before starting a session.";
|
|
22536
22545
|
fe(Re), ve.error(Re);
|
|
22537
22546
|
return;
|
|
@@ -22605,13 +22614,13 @@ function _u({
|
|
|
22605
22614
|
}
|
|
22606
22615
|
})();
|
|
22607
22616
|
}
|
|
22608
|
-
const or = f === "inline" && !p, zt = !!dt &&
|
|
22609
|
-
|
|
22610
|
-
|
|
22617
|
+
const or = f === "inline" && !p, zt = !!dt && Rt.some((Z) => Z.key === k) && (!!le.trim() || Te.length > 0), mn = aN(
|
|
22618
|
+
Un,
|
|
22619
|
+
Rt,
|
|
22611
22620
|
k,
|
|
22612
22621
|
fn
|
|
22613
|
-
) ??
|
|
22614
|
-
const _ =
|
|
22622
|
+
) ?? Un[0], pn = Sr, Mr = (Z) => {
|
|
22623
|
+
const _ = Rt;
|
|
22615
22624
|
if (_.length < 2) return;
|
|
22616
22625
|
const F = _.findIndex((st) => (st.selectorId ?? st.key) === fn), ae = ((F < 0 ? 0 : F) + Z + _.length) % _.length, Je = _[ae], Ae = Je.key;
|
|
22617
22626
|
(Je.selectorId ?? Ae) !== fn && (Ze(Z), ue((st) => st + 1), L(Ae), Ae === "aisdk" && X(Je.accountId ?? ""), te(localStorage.getItem(`lfg_model_${Ae}`) || N(Ae)), vn.swipe());
|
|
@@ -22703,7 +22712,7 @@ function _u({
|
|
|
22703
22712
|
/* @__PURE__ */ n("span", { className: "pointer-events-none relative flex size-5 items-center justify-center overflow-hidden", children: /* @__PURE__ */ n(
|
|
22704
22713
|
"img",
|
|
22705
22714
|
{
|
|
22706
|
-
src:
|
|
22715
|
+
src: Fn(k),
|
|
22707
22716
|
alt: "",
|
|
22708
22717
|
draggable: !1,
|
|
22709
22718
|
className: $(
|
|
@@ -22838,7 +22847,7 @@ function _u({
|
|
|
22838
22847
|
or ? "mt-2" : "mt-3"
|
|
22839
22848
|
),
|
|
22840
22849
|
children: [
|
|
22841
|
-
|
|
22850
|
+
$n ? /* @__PURE__ */ n($5, {}) : Jt ? /* @__PURE__ */ n(z5, { provider: Jt }) : null,
|
|
22842
22851
|
/* @__PURE__ */ n(
|
|
22843
22852
|
"span",
|
|
22844
22853
|
{
|
|
@@ -23576,7 +23585,7 @@ function Cc({
|
|
|
23576
23585
|
H ? "bg-primary/12 text-foreground ring-1 ring-inset ring-primary/20" : $("text-foreground focus-visible:bg-muted", !a && "hover:bg-muted")
|
|
23577
23586
|
),
|
|
23578
23587
|
children: [
|
|
23579
|
-
/* @__PURE__ */ n(
|
|
23588
|
+
/* @__PURE__ */ n(Lt, { className: $("size-4 shrink-0 text-primary", H ? "opacity-100" : "opacity-0") }),
|
|
23580
23589
|
/* @__PURE__ */ n("span", { className: "min-w-0 flex-1 truncate", children: L })
|
|
23581
23590
|
]
|
|
23582
23591
|
},
|
|
@@ -23627,17 +23636,17 @@ function Cc({
|
|
|
23627
23636
|
] })
|
|
23628
23637
|
}
|
|
23629
23638
|
) : null
|
|
23630
|
-
] }) : /* @__PURE__ */ c(
|
|
23631
|
-
/* @__PURE__ */ n(
|
|
23632
|
-
/* @__PURE__ */ n(
|
|
23633
|
-
|
|
23639
|
+
] }) : /* @__PURE__ */ c(Ln.Root, { open: l, onOpenChange: d, children: [
|
|
23640
|
+
/* @__PURE__ */ n(Ln.Trigger, { render: S }),
|
|
23641
|
+
/* @__PURE__ */ n(Ln.Portal, { children: /* @__PURE__ */ n(
|
|
23642
|
+
Ln.Positioner,
|
|
23634
23643
|
{
|
|
23635
23644
|
side: "bottom",
|
|
23636
23645
|
align: "start",
|
|
23637
23646
|
sideOffset: 6,
|
|
23638
23647
|
className: "isolate z-[170] outline-none",
|
|
23639
23648
|
children: /* @__PURE__ */ n(
|
|
23640
|
-
|
|
23649
|
+
Ln.Popup,
|
|
23641
23650
|
{
|
|
23642
23651
|
initialFocus: w ? h : !0,
|
|
23643
23652
|
className: "w-80 max-w-[calc(100vw-1rem)] rounded-2xl border border-border bg-popover p-2 text-popover-foreground shadow-2xl ring-1 ring-foreground/5 outline-none",
|
|
@@ -23920,7 +23929,7 @@ function NS({
|
|
|
23920
23929
|
disabled: f || !S.trim(),
|
|
23921
23930
|
onClick: Ve,
|
|
23922
23931
|
children: [
|
|
23923
|
-
/* @__PURE__ */ n(
|
|
23932
|
+
/* @__PURE__ */ n(Lt, { className: "size-4" }),
|
|
23924
23933
|
"Update agent"
|
|
23925
23934
|
]
|
|
23926
23935
|
}
|
|
@@ -23982,7 +23991,7 @@ function NS({
|
|
|
23982
23991
|
onClick: () => void Te(),
|
|
23983
23992
|
className: "flex-1",
|
|
23984
23993
|
children: [
|
|
23985
|
-
f ? /* @__PURE__ */ n(pt, { className: "size-4 animate-spin" }) : /* @__PURE__ */ n(
|
|
23994
|
+
f ? /* @__PURE__ */ n(pt, { className: "size-4 animate-spin" }) : /* @__PURE__ */ n(Lt, { className: "size-4" }),
|
|
23986
23995
|
"Make the change"
|
|
23987
23996
|
]
|
|
23988
23997
|
}
|
|
@@ -24040,7 +24049,7 @@ function NS({
|
|
|
24040
24049
|
},
|
|
24041
24050
|
className: "flex-1 text-[12.5px] font-medium text-muted-foreground",
|
|
24042
24051
|
children: [
|
|
24043
|
-
/* @__PURE__ */ n(
|
|
24052
|
+
/* @__PURE__ */ n(Dt, { className: "size-3.5" }),
|
|
24044
24053
|
"Dismiss"
|
|
24045
24054
|
]
|
|
24046
24055
|
}
|
|
@@ -25634,7 +25643,7 @@ function VS() {
|
|
|
25634
25643
|
/* @__PURE__ */ n("span", { className: "flex size-7 items-center justify-center rounded-[7px] border border-border bg-background", children: /* @__PURE__ */ n(
|
|
25635
25644
|
"img",
|
|
25636
25645
|
{
|
|
25637
|
-
src:
|
|
25646
|
+
src: Fn(a.kind),
|
|
25638
25647
|
alt: Po(a.kind),
|
|
25639
25648
|
className: "size-4"
|
|
25640
25649
|
}
|
|
@@ -25789,7 +25798,7 @@ function Ou({
|
|
|
25789
25798
|
children: o
|
|
25790
25799
|
}
|
|
25791
25800
|
),
|
|
25792
|
-
i ? a ? /* @__PURE__ */ n(
|
|
25801
|
+
i ? a ? /* @__PURE__ */ n(Lt, { className: "size-3.5 text-success" }) : /* @__PURE__ */ n(br, { className: "size-3.5 text-muted-foreground/60" }) : null
|
|
25793
25802
|
] })
|
|
25794
25803
|
] });
|
|
25795
25804
|
return i ? /* @__PURE__ */ n(
|
|
@@ -26992,7 +27001,7 @@ function s4({
|
|
|
26992
27001
|
/* @__PURE__ */ n(
|
|
26993
27002
|
"img",
|
|
26994
27003
|
{
|
|
26995
|
-
src:
|
|
27004
|
+
src: Fn(m.agent ?? "aisdk"),
|
|
26996
27005
|
alt: "",
|
|
26997
27006
|
className: "size-3.5 shrink-0"
|
|
26998
27007
|
}
|
|
@@ -27241,7 +27250,7 @@ export {
|
|
|
27241
27250
|
R4 as U,
|
|
27242
27251
|
Of as V,
|
|
27243
27252
|
Zl as W,
|
|
27244
|
-
|
|
27253
|
+
Dt as X,
|
|
27245
27254
|
P1 as Y,
|
|
27246
27255
|
ek as Z,
|
|
27247
27256
|
Nm as _,
|
|
@@ -27265,13 +27274,13 @@ export {
|
|
|
27265
27274
|
Lo as c,
|
|
27266
27275
|
ns as d,
|
|
27267
27276
|
Gi as e,
|
|
27268
|
-
|
|
27277
|
+
Fn as f,
|
|
27269
27278
|
Za as g,
|
|
27270
27279
|
Rf as h,
|
|
27271
27280
|
Fr as i,
|
|
27272
27281
|
Po as j,
|
|
27273
27282
|
ve as k,
|
|
27274
|
-
|
|
27283
|
+
Lt as l,
|
|
27275
27284
|
M1 as m,
|
|
27276
27285
|
Do as n,
|
|
27277
27286
|
jo as o,
|