@omg-dev/app 0.6.68 → 0.6.70
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-DJV1KmfY.js → ChangelogPage-B9OljJUo.js} +15 -1
- package/dist-lib/{SessionFilesPanel-DB16wNdf.js → SessionFilesPanel-BRwIy915.js} +8 -8
- package/dist-lib/{TermView-BisjYRmz.js → TermView-DwfTM9gS.js} +2 -2
- package/dist-lib/{board-page-BV9Gy4uR.js → board-page-DBzQq5FG.js} +27 -37
- package/dist-lib/{chat-engine-Dt44Vh8k.js → chat-engine-DOExtPv_.js} +1 -1
- package/dist-lib/{coding-agents-page-Buv9DVpw.js → coding-agents-page-B8lslb_t.js} +1 -1
- package/dist-lib/{computer-page-ChAILKMS.js → computer-page-DH7IPeY5.js} +2 -2
- package/dist-lib/{embedded-DoqmW6eM.js → embedded-Dw2pU919.js} +9191 -8907
- package/dist-lib/index.js +3 -3
- package/dist-lib/{keyboard-CsIeW7CN.js → keyboard-ezPbUoyA.js} +1 -1
- package/dist-lib/{resume-session-sheet-CHmFuSuI.js → resume-session-sheet-C36cSipC.js} +125 -108
- package/dist-lib/{session-token-usage-DtrR5yfa.js → session-token-usage-C87Aq9tP.js} +1 -1
- package/dist-lib/{shipped-page-B_lXa3qN.js → shipped-page-BiR06zTN.js} +27 -27
- package/dist-lib/{streamdown-response-BlPaSmH7.js → streamdown-response-BnW1dbLR.js} +1 -1
- package/dist-lib/styles.css +1 -1
- package/package.json +3 -2
package/dist-lib/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@tanstack/react-router";
|
|
4
|
-
import {
|
|
4
|
+
import { ak as e, al as o, am as s } from "./embedded-Dw2pU919.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as OmgAppSurface,
|
|
7
7
|
o as OmgSettingsSurface,
|
|
8
|
-
|
|
8
|
+
s as createGrantTransport
|
|
9
9
|
};
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { jsx as t, jsxs as s, Fragment as
|
|
2
|
-
import { r as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { useState as a, useRef as
|
|
5
|
-
function
|
|
6
|
-
if (!
|
|
7
|
-
const i =
|
|
1
|
+
import { jsx as t, jsxs as s, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import { r as Y, P as Z, a as de, f as ue, g as me, h as he, X as ee, A as $, R as te, i as pe, S as fe, C as ge, j as se, T as xe, k as be, l as Ne, m as ve, L as we } from "./embedded-Dw2pU919.js";
|
|
3
|
+
import { cn as m } from "cnfast";
|
|
4
|
+
import { useState as a, useRef as D, useEffect as A, useCallback as ye } from "react";
|
|
5
|
+
function Se(n) {
|
|
6
|
+
if (!n) return "";
|
|
7
|
+
const i = n.split("/").filter(Boolean);
|
|
8
8
|
return i[i.length - 1] ?? "";
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
const
|
|
12
|
-
if (!
|
|
13
|
-
const
|
|
14
|
-
return !
|
|
10
|
+
function ke(n, i) {
|
|
11
|
+
const h = (i ?? "").trim();
|
|
12
|
+
if (!h) return "";
|
|
13
|
+
const y = (f) => f.replace(/\s+/g, " ").trim().toLowerCase(), d = y(h), p = y(n);
|
|
14
|
+
return !p || d === p || d.startsWith(p) || p.startsWith(d) ? "" : h;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
initial:
|
|
16
|
+
function Te({
|
|
17
|
+
initial: n,
|
|
18
18
|
scopedProject: i,
|
|
19
|
-
onRestore:
|
|
20
|
-
onPick:
|
|
19
|
+
onRestore: h,
|
|
20
|
+
onPick: y,
|
|
21
21
|
onClose: d
|
|
22
22
|
}) {
|
|
23
|
-
const
|
|
24
|
-
() =>
|
|
25
|
-
), [
|
|
26
|
-
|
|
27
|
-
), [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, [c]),
|
|
31
|
-
const e = () =>
|
|
32
|
-
return window.addEventListener(
|
|
33
|
-
window.removeEventListener(
|
|
23
|
+
const f = i && i !== "__all" ? i : "all", F = Y(), [l, M] = a(
|
|
24
|
+
() => F.some((e) => e.status !== "sent") ? "stash" : "sessions"
|
|
25
|
+
), [S, ae] = a(F), [g, T] = a(""), [k, re] = a(""), [x, _] = a("all"), [r, I] = a(f), [u, ne] = a(!1), [c, G] = a(
|
|
26
|
+
f === "all" && n ? n : []
|
|
27
|
+
), [C, H] = a(f === "all" && n ? n.length : 0), [j, O] = a({ agents: [], projects: [] }), [b, U] = a(0), [V, W] = a(!1), [q, B] = a(!1), Q = D(null), X = D(c), N = D(0);
|
|
28
|
+
A(() => {
|
|
29
|
+
X.current = c;
|
|
30
|
+
}, [c]), A(() => {
|
|
31
|
+
const e = () => ae(Y());
|
|
32
|
+
return window.addEventListener(Z, e), window.addEventListener("storage", e), () => {
|
|
33
|
+
window.removeEventListener(Z, e), window.removeEventListener("storage", e);
|
|
34
34
|
};
|
|
35
|
-
}, []),
|
|
36
|
-
const e = window.setTimeout(() =>
|
|
35
|
+
}, []), A(() => {
|
|
36
|
+
const e = window.setTimeout(() => re(g.trim()), 220);
|
|
37
37
|
return () => window.clearTimeout(e);
|
|
38
|
-
}, [
|
|
39
|
-
const
|
|
38
|
+
}, [g]);
|
|
39
|
+
const L = ye(
|
|
40
40
|
(e) => {
|
|
41
|
-
const o = e ? ++
|
|
42
|
-
e ?
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
if (o !==
|
|
46
|
-
const
|
|
47
|
-
|
|
41
|
+
const o = e ? ++N.current : N.current, z = e ? 0 : X.current.length;
|
|
42
|
+
e ? W(!0) : B(!0);
|
|
43
|
+
const v = new URLSearchParams({ limit: String(25), offset: String(z) });
|
|
44
|
+
k && v.set("search", k), x !== "all" && v.set("agent", x), r !== "all" && v.set("project", r), u && v.set("includeScheduled", "1"), de(`/api/sessions/resumable?${v.toString()}`).then((w) => {
|
|
45
|
+
if (o !== N.current) return;
|
|
46
|
+
const P = Array.isArray(w.sessions) ? w.sessions : [];
|
|
47
|
+
G((ce) => e ? P : [...ce, ...P]), H(w.total ?? P.length), U(w.scheduledTotal ?? 0), O(w.facets ?? { agents: [], projects: [] });
|
|
48
48
|
}).catch(() => {
|
|
49
|
-
o !==
|
|
49
|
+
o !== N.current || !e || (G([]), H(0), U(0), O({ agents: [], projects: [] }));
|
|
50
50
|
}).finally(() => {
|
|
51
|
-
o ===
|
|
51
|
+
o === N.current && (e ? W(!1) : B(!1));
|
|
52
52
|
});
|
|
53
53
|
},
|
|
54
|
-
[
|
|
54
|
+
[x, k, r, u]
|
|
55
55
|
);
|
|
56
|
-
|
|
57
|
-
l === "sessions" &&
|
|
58
|
-
}, [
|
|
59
|
-
const
|
|
60
|
-
(e) =>
|
|
61
|
-
),
|
|
56
|
+
A(() => {
|
|
57
|
+
l === "sessions" && L(!0);
|
|
58
|
+
}, [L, l]);
|
|
59
|
+
const R = g.trim().toLowerCase(), J = S.filter(
|
|
60
|
+
(e) => R ? `${e.text} ${e.sessionTitle ?? ""} ${e.project ?? ""}`.toLowerCase().includes(R) : !0
|
|
61
|
+
), le = V && !c.length, K = x !== "all" || r !== "all" || !!k, oe = c.length < C, ie = (e) => e === "draft" ? "Draft" : e === "sending" ? "Sending" : e === "failed" ? "Failed" : "Sent";
|
|
62
62
|
return /* @__PURE__ */ t(
|
|
63
|
-
|
|
63
|
+
ue,
|
|
64
64
|
{
|
|
65
65
|
open: !0,
|
|
66
66
|
repositionInputs: !1,
|
|
67
67
|
onOpenChange: (e) => {
|
|
68
68
|
e || d();
|
|
69
69
|
},
|
|
70
|
-
children: /* @__PURE__ */ t(
|
|
70
|
+
children: /* @__PURE__ */ t(me, { className: "mx-auto w-full max-w-2xl sm:max-w-2xl", children: /* @__PURE__ */ s("div", { className: "flex min-h-0 flex-col overflow-hidden max-h-[72dvh] group-data-[paged=true]/drawer-content:max-h-none group-data-[paged=true]/drawer-content:flex-1", children: [
|
|
71
71
|
/* @__PURE__ */ s("header", { className: "shrink-0 border-b border-border/70 pb-2", children: [
|
|
72
72
|
/* @__PURE__ */ s("div", { className: "flex h-9 items-center gap-2", children: [
|
|
73
|
-
/* @__PURE__ */ t(
|
|
73
|
+
/* @__PURE__ */ t(he, { className: "text-[15px] font-semibold", children: "Resume" }),
|
|
74
74
|
/* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground", children: "Stash & sessions" }),
|
|
75
75
|
/* @__PURE__ */ t(
|
|
76
76
|
"button",
|
|
@@ -79,7 +79,7 @@ function ke({
|
|
|
79
79
|
onClick: d,
|
|
80
80
|
"aria-label": "Close",
|
|
81
81
|
className: "ml-auto flex size-8 items-center justify-center rounded-full bg-muted text-muted-foreground transition hover:text-foreground active:scale-95",
|
|
82
|
-
children: /* @__PURE__ */ t(
|
|
82
|
+
children: /* @__PURE__ */ t(ee, { className: "size-4" })
|
|
83
83
|
}
|
|
84
84
|
)
|
|
85
85
|
] }),
|
|
@@ -89,15 +89,15 @@ function ke({
|
|
|
89
89
|
"button",
|
|
90
90
|
{
|
|
91
91
|
type: "button",
|
|
92
|
-
onClick: () =>
|
|
93
|
-
className:
|
|
92
|
+
onClick: () => M("stash"),
|
|
93
|
+
className: m(
|
|
94
94
|
"flex h-7 items-center gap-1.5 rounded-full px-3 transition",
|
|
95
95
|
l === "stash" ? "bg-background text-foreground shadow-sm" : "text-muted-foreground"
|
|
96
96
|
),
|
|
97
97
|
children: [
|
|
98
|
-
/* @__PURE__ */ t(
|
|
98
|
+
/* @__PURE__ */ t($, { className: "size-3.5" }),
|
|
99
99
|
"Stash",
|
|
100
|
-
|
|
100
|
+
S.length ? /* @__PURE__ */ t("span", { className: "tabular-nums opacity-60", children: S.length }) : null
|
|
101
101
|
]
|
|
102
102
|
}
|
|
103
103
|
),
|
|
@@ -105,24 +105,24 @@ function ke({
|
|
|
105
105
|
"button",
|
|
106
106
|
{
|
|
107
107
|
type: "button",
|
|
108
|
-
onClick: () =>
|
|
109
|
-
className:
|
|
108
|
+
onClick: () => M("sessions"),
|
|
109
|
+
className: m(
|
|
110
110
|
"flex h-7 items-center gap-1.5 rounded-full px-3 transition",
|
|
111
111
|
l === "sessions" ? "bg-background text-foreground shadow-sm" : "text-muted-foreground"
|
|
112
112
|
),
|
|
113
113
|
children: [
|
|
114
|
-
/* @__PURE__ */ t(
|
|
114
|
+
/* @__PURE__ */ t(te, { className: "size-3.5" }),
|
|
115
115
|
"Sessions",
|
|
116
|
-
|
|
116
|
+
C ? /* @__PURE__ */ t("span", { className: "tabular-nums opacity-60", children: C }) : null
|
|
117
117
|
]
|
|
118
118
|
}
|
|
119
119
|
)
|
|
120
120
|
] }),
|
|
121
|
-
l === "stash" &&
|
|
121
|
+
l === "stash" && S.length ? /* @__PURE__ */ t(
|
|
122
122
|
"button",
|
|
123
123
|
{
|
|
124
124
|
type: "button",
|
|
125
|
-
onClick: () =>
|
|
125
|
+
onClick: () => pe(),
|
|
126
126
|
className: "ml-auto h-8 rounded-full px-2.5 text-xs font-medium text-muted-foreground transition hover:bg-muted hover:text-destructive",
|
|
127
127
|
children: "Clear"
|
|
128
128
|
}
|
|
@@ -130,43 +130,43 @@ function ke({
|
|
|
130
130
|
] }),
|
|
131
131
|
/* @__PURE__ */ s("div", { className: "mt-2 flex items-center gap-1.5", children: [
|
|
132
132
|
/* @__PURE__ */ s("div", { className: "relative min-w-0 flex-1", children: [
|
|
133
|
-
/* @__PURE__ */ t(
|
|
133
|
+
/* @__PURE__ */ t(fe, { className: "pointer-events-none absolute left-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground/70" }),
|
|
134
134
|
/* @__PURE__ */ t(
|
|
135
135
|
"input",
|
|
136
136
|
{
|
|
137
|
-
ref:
|
|
138
|
-
value:
|
|
139
|
-
onChange: (e) =>
|
|
137
|
+
ref: Q,
|
|
138
|
+
value: g,
|
|
139
|
+
onChange: (e) => T(e.target.value),
|
|
140
140
|
placeholder: l === "stash" ? "Search prompts" : "Search sessions",
|
|
141
141
|
"aria-label": l === "stash" ? "Search stashed prompts" : "Search resumable sessions",
|
|
142
142
|
autoComplete: "off",
|
|
143
143
|
className: "h-8 w-full rounded-full border border-border bg-muted/40 pl-8 pr-8 text-xs outline-none transition focus:border-ring focus:bg-background"
|
|
144
144
|
}
|
|
145
145
|
),
|
|
146
|
-
|
|
146
|
+
g ? /* @__PURE__ */ t(
|
|
147
147
|
"button",
|
|
148
148
|
{
|
|
149
149
|
type: "button",
|
|
150
150
|
onClick: () => {
|
|
151
|
-
|
|
151
|
+
T(""), Q.current?.focus();
|
|
152
152
|
},
|
|
153
153
|
"aria-label": "Clear search",
|
|
154
154
|
className: "absolute right-1.5 top-1/2 flex size-6 -translate-y-1/2 items-center justify-center rounded-full text-muted-foreground",
|
|
155
|
-
children: /* @__PURE__ */ t(
|
|
155
|
+
children: /* @__PURE__ */ t(ee, { className: "size-3.5" })
|
|
156
156
|
}
|
|
157
157
|
) : null
|
|
158
158
|
] }),
|
|
159
|
-
l === "sessions" ? /* @__PURE__ */ s(
|
|
159
|
+
l === "sessions" ? /* @__PURE__ */ s(E, { children: [
|
|
160
160
|
/* @__PURE__ */ s(
|
|
161
161
|
"select",
|
|
162
162
|
{
|
|
163
|
-
value:
|
|
164
|
-
onChange: (e) =>
|
|
163
|
+
value: x,
|
|
164
|
+
onChange: (e) => _(e.target.value),
|
|
165
165
|
"aria-label": "Filter by agent",
|
|
166
166
|
className: "h-8 max-w-28 rounded-full border border-border bg-background px-2 text-xs outline-none",
|
|
167
167
|
children: [
|
|
168
168
|
/* @__PURE__ */ t("option", { value: "all", children: "All agents" }),
|
|
169
|
-
|
|
169
|
+
j.agents.map((e) => /* @__PURE__ */ s("option", { value: e.agent, children: [
|
|
170
170
|
e.agent,
|
|
171
171
|
" · ",
|
|
172
172
|
e.count
|
|
@@ -174,28 +174,45 @@ function ke({
|
|
|
174
174
|
]
|
|
175
175
|
}
|
|
176
176
|
),
|
|
177
|
-
|
|
177
|
+
j.projects.length || r !== "all" ? /* @__PURE__ */ s(
|
|
178
178
|
"select",
|
|
179
179
|
{
|
|
180
|
-
value:
|
|
181
|
-
onChange: (e) =>
|
|
180
|
+
value: r,
|
|
181
|
+
onChange: (e) => I(e.target.value),
|
|
182
182
|
"aria-label": "Filter by project",
|
|
183
183
|
className: "h-8 max-w-32 rounded-full border border-border bg-background px-2 text-xs outline-none",
|
|
184
184
|
children: [
|
|
185
185
|
/* @__PURE__ */ t("option", { value: "all", children: "All projects" }),
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
r !== "all" && !j.projects.some((e) => e.project === r) ? /* @__PURE__ */ t("option", { value: r, children: r }) : null,
|
|
187
|
+
j.projects.map((e) => /* @__PURE__ */ s("option", { value: e.project, children: [
|
|
188
188
|
e.project,
|
|
189
189
|
" · ",
|
|
190
190
|
e.count
|
|
191
191
|
] }, e.project))
|
|
192
192
|
]
|
|
193
193
|
}
|
|
194
|
+
) : null,
|
|
195
|
+
b || u ? /* @__PURE__ */ s(
|
|
196
|
+
"button",
|
|
197
|
+
{
|
|
198
|
+
type: "button",
|
|
199
|
+
onClick: () => ne((e) => !e),
|
|
200
|
+
"aria-pressed": u,
|
|
201
|
+
title: u ? "Hide scheduled auto-agent runs" : `Show ${b} scheduled auto-agent run${b === 1 ? "" : "s"}`,
|
|
202
|
+
className: m(
|
|
203
|
+
"flex h-8 shrink-0 items-center gap-1 rounded-full border px-2.5 text-xs font-medium transition",
|
|
204
|
+
u ? "border-transparent bg-foreground text-background" : "border-border bg-background text-muted-foreground hover:text-foreground"
|
|
205
|
+
),
|
|
206
|
+
children: [
|
|
207
|
+
/* @__PURE__ */ t(ge, { className: "size-3.5" }),
|
|
208
|
+
b ? /* @__PURE__ */ t("span", { className: "tabular-nums opacity-70", children: b }) : null
|
|
209
|
+
]
|
|
210
|
+
}
|
|
194
211
|
) : null
|
|
195
212
|
] }) : null
|
|
196
213
|
] })
|
|
197
214
|
] }),
|
|
198
|
-
/* @__PURE__ */ t("div", { className: "min-h-0 max-h-[min(28rem,55dvh)] overflow-y-auto overscroll-contain pt-1", children: l === "stash" ?
|
|
215
|
+
/* @__PURE__ */ t("div", { className: "min-h-0 max-h-[min(28rem,55dvh)] overflow-y-auto overscroll-contain pt-1", children: l === "stash" ? J.length ? /* @__PURE__ */ t("div", { className: "space-y-0.5", children: J.map((e) => /* @__PURE__ */ s(
|
|
199
216
|
"div",
|
|
200
217
|
{
|
|
201
218
|
className: "group flex items-center gap-1 rounded-xl transition hover:bg-muted",
|
|
@@ -205,18 +222,18 @@ function ke({
|
|
|
205
222
|
{
|
|
206
223
|
type: "button",
|
|
207
224
|
onClick: () => {
|
|
208
|
-
|
|
225
|
+
h(e), d();
|
|
209
226
|
},
|
|
210
227
|
className: "flex min-w-0 flex-1 items-center gap-2.5 px-2 py-2 text-left active:scale-[0.99]",
|
|
211
228
|
children: [
|
|
212
229
|
/* @__PURE__ */ t(
|
|
213
230
|
"span",
|
|
214
231
|
{
|
|
215
|
-
className:
|
|
232
|
+
className: m(
|
|
216
233
|
"flex size-7 shrink-0 items-center justify-center rounded-lg",
|
|
217
234
|
e.status === "draft" || e.status === "failed" ? "bg-primary/12 text-primary" : "bg-muted text-muted-foreground"
|
|
218
235
|
),
|
|
219
|
-
children: /* @__PURE__ */ t(
|
|
236
|
+
children: /* @__PURE__ */ t($, { className: "size-3.5" })
|
|
220
237
|
}
|
|
221
238
|
),
|
|
222
239
|
/* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
|
|
@@ -225,18 +242,18 @@ function ke({
|
|
|
225
242
|
/* @__PURE__ */ t(
|
|
226
243
|
"span",
|
|
227
244
|
{
|
|
228
|
-
className:
|
|
245
|
+
className: m(
|
|
229
246
|
"font-medium",
|
|
230
247
|
e.status === "failed" && "text-destructive",
|
|
231
248
|
e.status === "draft" && "text-primary"
|
|
232
249
|
),
|
|
233
|
-
children:
|
|
250
|
+
children: ie(e.status)
|
|
234
251
|
}
|
|
235
252
|
),
|
|
236
253
|
/* @__PURE__ */ t("span", { children: "·" }),
|
|
237
254
|
/* @__PURE__ */ t("span", { className: "truncate", children: e.source === "new-session" ? e.project || "New session" : e.sessionTitle || "Session" }),
|
|
238
255
|
/* @__PURE__ */ t("span", { children: "·" }),
|
|
239
|
-
/* @__PURE__ */ t("span", { className: "shrink-0 tabular-nums", children:
|
|
256
|
+
/* @__PURE__ */ t("span", { className: "shrink-0 tabular-nums", children: se(e.updatedAt) })
|
|
240
257
|
] })
|
|
241
258
|
] })
|
|
242
259
|
]
|
|
@@ -246,19 +263,19 @@ function ke({
|
|
|
246
263
|
"button",
|
|
247
264
|
{
|
|
248
265
|
type: "button",
|
|
249
|
-
onClick: () =>
|
|
266
|
+
onClick: () => be(e.id),
|
|
250
267
|
"aria-label": "Remove from Stash",
|
|
251
268
|
className: "mr-1 flex size-7 shrink-0 items-center justify-center rounded-full text-muted-foreground opacity-60 transition hover:bg-background hover:text-destructive group-hover:opacity-100",
|
|
252
|
-
children: /* @__PURE__ */ t(
|
|
269
|
+
children: /* @__PURE__ */ t(xe, { className: "size-3.5" })
|
|
253
270
|
}
|
|
254
271
|
)
|
|
255
272
|
]
|
|
256
273
|
},
|
|
257
274
|
e.id
|
|
258
275
|
)) }) : /* @__PURE__ */ s("div", { className: "flex h-full min-h-48 flex-col items-center justify-center gap-2 px-4 text-center text-sm text-muted-foreground", children: [
|
|
259
|
-
/* @__PURE__ */ t(
|
|
260
|
-
/* @__PURE__ */ t("span", { children:
|
|
261
|
-
] }) :
|
|
276
|
+
/* @__PURE__ */ t($, { className: "size-5" }),
|
|
277
|
+
/* @__PURE__ */ t("span", { children: R ? "No stashed prompts match" : "Typed and dictated prompts will appear here" })
|
|
278
|
+
] }) : le ? /* @__PURE__ */ t("div", { className: "animate-pulse space-y-1.5", "aria-hidden": !0, children: Array.from({ length: 6 }).map((e, o) => /* @__PURE__ */ s(
|
|
262
279
|
"div",
|
|
263
280
|
{
|
|
264
281
|
className: "flex items-center gap-3 rounded-xl border border-transparent bg-card px-3 py-2.5",
|
|
@@ -273,32 +290,32 @@ function ke({
|
|
|
273
290
|
},
|
|
274
291
|
o
|
|
275
292
|
)) }) : c.length === 0 ? /* @__PURE__ */ s("div", { className: "flex h-full min-h-48 flex-col items-center justify-center gap-2 px-4 text-center text-sm text-muted-foreground", children: [
|
|
276
|
-
/* @__PURE__ */ t(
|
|
277
|
-
/* @__PURE__ */ t("span", { children:
|
|
278
|
-
|
|
293
|
+
/* @__PURE__ */ t(te, { className: "size-5" }),
|
|
294
|
+
/* @__PURE__ */ t("span", { children: K ? "No sessions match" : "No recent sessions to resume" }),
|
|
295
|
+
K ? /* @__PURE__ */ t(
|
|
279
296
|
"button",
|
|
280
297
|
{
|
|
281
298
|
type: "button",
|
|
282
299
|
onClick: () => {
|
|
283
|
-
|
|
300
|
+
T(""), _("all"), I("all");
|
|
284
301
|
},
|
|
285
302
|
className: "rounded-full border border-border px-3 py-1 text-xs font-medium text-foreground",
|
|
286
303
|
children: "Clear filters"
|
|
287
304
|
}
|
|
288
305
|
) : null
|
|
289
|
-
] }) : /* @__PURE__ */ s(
|
|
290
|
-
/* @__PURE__ */ t("div", { className:
|
|
291
|
-
const o =
|
|
306
|
+
] }) : /* @__PURE__ */ s(E, { children: [
|
|
307
|
+
/* @__PURE__ */ t("div", { className: m("space-y-1.5 transition-opacity", V && "opacity-60"), children: c.map((e) => {
|
|
308
|
+
const o = Se(e.cwd), z = ke(e.title, e.lastUserText);
|
|
292
309
|
return /* @__PURE__ */ s(
|
|
293
310
|
"button",
|
|
294
311
|
{
|
|
295
312
|
type: "button",
|
|
296
|
-
onClick: () =>
|
|
313
|
+
onClick: () => y(e),
|
|
297
314
|
title: e.cwd || e.title,
|
|
298
315
|
className: "lfg-gborder flex w-full items-center gap-3 rounded-xl border border-transparent bg-card px-3 py-2.5 text-left transition hover:border-border hover:bg-muted/60 active:scale-[0.99]",
|
|
299
316
|
children: [
|
|
300
317
|
/* @__PURE__ */ t(
|
|
301
|
-
|
|
318
|
+
Ne,
|
|
302
319
|
{
|
|
303
320
|
session: e,
|
|
304
321
|
className: "size-8 rounded-md",
|
|
@@ -309,31 +326,31 @@ function ke({
|
|
|
309
326
|
/* @__PURE__ */ s("span", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
310
327
|
/* @__PURE__ */ s("span", { className: "flex items-baseline gap-1.5", children: [
|
|
311
328
|
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-sm font-medium leading-tight", children: e.title }),
|
|
312
|
-
/* @__PURE__ */ t("span", { className: "shrink-0 text-[10px] leading-tight tabular-nums text-muted-foreground/70", children:
|
|
329
|
+
/* @__PURE__ */ t("span", { className: "shrink-0 text-[10px] leading-tight tabular-nums text-muted-foreground/70", children: se(e.archivedAt ?? e.lastActivityAt) })
|
|
313
330
|
] }),
|
|
314
|
-
|
|
331
|
+
z ? /* @__PURE__ */ t("span", { className: "truncate text-xs leading-tight text-muted-foreground", children: z }) : null,
|
|
315
332
|
/* @__PURE__ */ s("span", { className: "flex min-w-0 items-center gap-1", children: [
|
|
316
333
|
/* @__PURE__ */ t("span", { className: "max-w-[50%] truncate rounded-full bg-muted px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground", children: e.project }),
|
|
317
334
|
o && o !== e.project ? /* @__PURE__ */ t("span", { className: "max-w-[50%] truncate rounded-full bg-muted/60 px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground/80", children: o }) : null
|
|
318
335
|
] })
|
|
319
336
|
] }),
|
|
320
|
-
/* @__PURE__ */ t(
|
|
337
|
+
/* @__PURE__ */ t(ve, { className: "size-3.5 shrink-0 text-muted-foreground/60" })
|
|
321
338
|
]
|
|
322
339
|
},
|
|
323
340
|
e.sessionId
|
|
324
341
|
);
|
|
325
342
|
}) }),
|
|
326
|
-
|
|
343
|
+
oe ? /* @__PURE__ */ t(
|
|
327
344
|
"button",
|
|
328
345
|
{
|
|
329
346
|
type: "button",
|
|
330
|
-
onClick: () =>
|
|
331
|
-
disabled:
|
|
347
|
+
onClick: () => L(!1),
|
|
348
|
+
disabled: q,
|
|
332
349
|
className: "mt-1 flex w-full items-center justify-center gap-2 rounded-xl px-3 py-2.5 text-xs font-medium text-muted-foreground transition hover:bg-muted disabled:opacity-60",
|
|
333
|
-
children:
|
|
334
|
-
/* @__PURE__ */ t(
|
|
350
|
+
children: q ? /* @__PURE__ */ s(E, { children: [
|
|
351
|
+
/* @__PURE__ */ t(we, { className: "size-3.5 animate-spin" }),
|
|
335
352
|
" Loading…"
|
|
336
|
-
] }) : `Load ${Math.min(25,
|
|
353
|
+
] }) : `Load ${Math.min(25, C - c.length)} more`
|
|
337
354
|
}
|
|
338
355
|
) : null
|
|
339
356
|
] }) })
|
|
@@ -342,5 +359,5 @@ function ke({
|
|
|
342
359
|
);
|
|
343
360
|
}
|
|
344
361
|
export {
|
|
345
|
-
|
|
362
|
+
Te as default
|
|
346
363
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as a, Fragment as w } from "react/jsx-runtime";
|
|
2
|
-
import { a as $, D as C, b as T, c as M, d as D, G as S, e as F, t as L, L as R } from "./embedded-
|
|
2
|
+
import { a as $, D as C, b as T, c as M, d as D, G as S, e as F, t as L, L as R } from "./embedded-Dw2pU919.js";
|
|
3
3
|
import { useState as g, useCallback as j, useEffect as z } from "react";
|
|
4
4
|
import "@base-ui/react/collapsible";
|
|
5
5
|
import { cn as P } from "cnfast";
|