@peasant-labs/fairtrade 0.0.14 → 0.0.15
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/commons.js +1 -1
- package/dist/lib/components.css +1 -1
- package/dist/lib/{ui-DpXQaQyi.js → ui-AQb8nalD.js} +636 -627
- package/dist/lib/ui.js +1 -1
- package/package.json +4 -2
|
@@ -2,26 +2,26 @@ import { _t as e, gt as t, ht as n, it as r } from "./InUseShell-CY5Acw6t.js";
|
|
|
2
2
|
import { r as i } from "./ChartLine-Cycmpjep.js";
|
|
3
3
|
import { Fragment as a, cloneElement as o, createContext as s, isValidElement as c, useCallback as l, useContext as u, useEffect as d, useId as f, useLayoutEffect as p, useMemo as m, useReducer as h, useRef as g, useState as _ } from "react";
|
|
4
4
|
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
5
|
-
import { AlertTriangle as x, ArrowDownToLine as S, ArrowDownWideNarrow as C, ArrowLeft as w, ArrowRight as T, ArrowUp as E, ArrowUpToLine as D, BookOpen as O, Bot as k, Brain as A, Calendar as ee, Check as j, CheckCircle2 as M, ChevronDown as N, ChevronLeft as
|
|
5
|
+
import { AlertTriangle as x, ArrowDownToLine as S, ArrowDownWideNarrow as C, ArrowLeft as w, ArrowRight as T, ArrowUp as E, ArrowUpToLine as D, BookOpen as O, Bot as k, Brain as A, Calendar as ee, Check as j, CheckCircle2 as M, ChevronDown as N, ChevronLeft as te, ChevronRight as P, ChevronUp as ne, ChevronsUpDown as F, Circle as re, CircleAlert as I, CircleCheck as ie, CircleSlash as ae, CircleX as oe, Clock as se, Coins as ce, Copy as le, CornerDownLeft as ue, CornerDownRight as de, Cpu as fe, Download as pe, Eye as me, EyeOff as he, FilePlus2 as ge, FileSearch as _e, FileText as ve, Filter as ye, Flag as be, Focus as xe, GitCommit as Se, GitCommitHorizontal as Ce, Globe as we, HardDrive as L, Hash as Te, HelpCircle as R, Inbox as Ee, Layers as De, LayoutList as Oe, Link as ke, List as Ae, ListChecks as je, ListTree as Me, Loader as Ne, LoaderCircle as Pe, Lock as Fe, MessageSquareText as Ie, Minus as Le, MoreHorizontal as Re, Network as ze, PanelLeftClose as Be, PanelLeftOpen as Ve, PanelRightClose as He, PanelRightOpen as Ue, Pencil as We, Play as Ge, Plug as Ke, Plus as qe, RefreshCw as Je, RotateCcw as z, RotateCw as Ye, Search as Xe, SearchX as Ze, Send as Qe, Settings2 as $e, Share2 as et, ShieldAlert as tt, ShieldCheck as nt, ShieldHalf as rt, SlidersHorizontal as it, Sparkles as at, SunMoon as ot, Tags as st, Terminal as ct, TrendingDown as lt, TrendingUp as ut, TriangleAlert as dt, User as ft, UserPlus as pt, Users as mt, WifiOff as ht, Wrench as gt, X as _t } from "lucide-react";
|
|
6
6
|
import { EntryType as vt, Harness as yt, Role as bt, SessionOutcome as xt, StopReason as St, ToolCallKind as Ct, zObservedModelID as wt } from "@peasant-labs/schema";
|
|
7
7
|
import { getCoreRowModel as Tt, getSortedRowModel as Et, useReactTable as Dt } from "@tanstack/react-table";
|
|
8
|
-
import { Bar as Ot, BarChart as kt, Line as At, LineChart as
|
|
9
|
-
import { createPortal as
|
|
8
|
+
import { Bar as Ot, BarChart as kt, Line as At, LineChart as jt, ResponsiveContainer as Mt } from "recharts";
|
|
9
|
+
import { createPortal as Nt } from "react-dom";
|
|
10
10
|
//#region \0rolldown/runtime.js
|
|
11
|
-
var
|
|
11
|
+
var B = Object.create, V = Object.defineProperty, Pt = Object.getOwnPropertyDescriptor, Ft = Object.getOwnPropertyNames, It = Object.getPrototypeOf, Lt = Object.prototype.hasOwnProperty, Rt = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), zt = (e, t) => {
|
|
12
12
|
let n = {};
|
|
13
|
-
for (var r in e)
|
|
13
|
+
for (var r in e) V(n, r, {
|
|
14
14
|
get: e[r],
|
|
15
15
|
enumerable: !0
|
|
16
16
|
});
|
|
17
|
-
return t ||
|
|
17
|
+
return t || V(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
18
18
|
}, Bt = (e, t, n, r) => {
|
|
19
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i = Ft(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !Lt.call(e, s) && s !== n &&
|
|
19
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = Ft(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !Lt.call(e, s) && s !== n && V(e, s, {
|
|
20
20
|
get: ((e) => t[e]).bind(null, s),
|
|
21
21
|
enumerable: !(r = Pt(t, s)) || r.enumerable
|
|
22
22
|
});
|
|
23
23
|
return e;
|
|
24
|
-
}, Vt = (e, t, n) => (n = e == null ? {} :
|
|
24
|
+
}, Vt = (e, t, n) => (n = e == null ? {} : B(It(e)), Bt(t || !e || !e.__esModule ? V(n, "default", {
|
|
25
25
|
value: e,
|
|
26
26
|
enumerable: !0
|
|
27
27
|
}) : n, e)), Ht = {
|
|
@@ -324,7 +324,7 @@ function en({ checked: e, defaultChecked: t = !1, onChange: n, disabled: r = !1,
|
|
|
324
324
|
className: "sw-state",
|
|
325
325
|
"aria-live": i ? "polite" : void 0,
|
|
326
326
|
children: [
|
|
327
|
-
/* @__PURE__ */ y(i ?
|
|
327
|
+
/* @__PURE__ */ y(i ? Ne : c ?? (m ? ie : re), {
|
|
328
328
|
className: i ? "sw-busy-spin" : void 0,
|
|
329
329
|
"aria-hidden": "true"
|
|
330
330
|
}),
|
|
@@ -387,7 +387,7 @@ function nn({ pressed: t, defaultPressed: n = !1, onChange: r, brand: i, icon: a
|
|
|
387
387
|
]
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function rn({ label: e, color: t, bare: n = !1, className: r = "", ...i }) {
|
|
391
391
|
let a = /* @__PURE__ */ y("span", {
|
|
392
392
|
className: "chipx-dot",
|
|
393
393
|
style: t ? { "--c": t } : void 0
|
|
@@ -402,7 +402,7 @@ function H({ label: e, color: t, bare: n = !1, className: r = "", ...i }) {
|
|
|
402
402
|
children: [a, e]
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function an({ count: e, unread: t = !1, className: n = "", ...r }) {
|
|
406
406
|
return /* @__PURE__ */ y("span", {
|
|
407
407
|
className: [
|
|
408
408
|
"chipx-count",
|
|
@@ -416,14 +416,14 @@ function rn({ count: e, unread: t = !1, className: n = "", ...r }) {
|
|
|
416
416
|
}
|
|
417
417
|
//#endregion
|
|
418
418
|
//#region src/ui/Card.jsx
|
|
419
|
-
function
|
|
419
|
+
function on({ children: e, link: t = !1, className: n, ...r }) {
|
|
420
420
|
return /* @__PURE__ */ y(t ? "a" : "div", {
|
|
421
421
|
className: ["card", n].filter(Boolean).join(" "),
|
|
422
422
|
...r,
|
|
423
423
|
children: e
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function sn({ thumb: e, head: t, title: n, desc: r, bullets: i, foot: a, link: o = !0, className: s, children: c, ...l }) {
|
|
427
427
|
let u = o ? "a" : "div", d = o && l["aria-label"] == null && l["aria-labelledby"] == null && typeof n == "string" ? n : void 0;
|
|
428
428
|
return /* @__PURE__ */ b(u, {
|
|
429
429
|
className: [
|
|
@@ -461,14 +461,14 @@ function on({ thumb: e, head: t, title: n, desc: r, bullets: i, foot: a, link: o
|
|
|
461
461
|
})]
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function cn({ children: e, link: t = !1, className: n, ...r }) {
|
|
465
465
|
return /* @__PURE__ */ y(t ? "a" : "div", {
|
|
466
466
|
className: ["row", n].filter(Boolean).join(" "),
|
|
467
467
|
...r,
|
|
468
468
|
children: e
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function H({ icon: e, value: t, children: n, className: r, ...i }) {
|
|
472
472
|
return /* @__PURE__ */ b("span", {
|
|
473
473
|
className: ["metaitem", r].filter(Boolean).join(" "),
|
|
474
474
|
...i,
|
|
@@ -558,7 +558,7 @@ function un({ items: e = [], label: t = "breadcrumb" }) {
|
|
|
558
558
|
className: "cur",
|
|
559
559
|
"aria-current": "page",
|
|
560
560
|
children: a
|
|
561
|
-
}) : a, r ? null : /* @__PURE__ */ y(
|
|
561
|
+
}) : a, r ? null : /* @__PURE__ */ y(P, {
|
|
562
562
|
className: "lucide",
|
|
563
563
|
"aria-hidden": "true"
|
|
564
564
|
})]
|
|
@@ -607,7 +607,7 @@ function fn({ page: e = 1, total: t = 1, onPrev: n, onNext: r, onChange: i, labe
|
|
|
607
607
|
o || (n ? n() : i && i(e - 1));
|
|
608
608
|
},
|
|
609
609
|
disabled: o,
|
|
610
|
-
children: /* @__PURE__ */ y(
|
|
610
|
+
children: /* @__PURE__ */ y(te, { "aria-hidden": "true" })
|
|
611
611
|
}),
|
|
612
612
|
/* @__PURE__ */ b("span", {
|
|
613
613
|
"aria-live": "polite",
|
|
@@ -631,7 +631,7 @@ function fn({ page: e = 1, total: t = 1, onPrev: n, onNext: r, onChange: i, labe
|
|
|
631
631
|
s || (r ? r() : i && i(e + 1));
|
|
632
632
|
},
|
|
633
633
|
disabled: s,
|
|
634
|
-
children: /* @__PURE__ */ y(
|
|
634
|
+
children: /* @__PURE__ */ y(P, { "aria-hidden": "true" })
|
|
635
635
|
})
|
|
636
636
|
]
|
|
637
637
|
});
|
|
@@ -674,7 +674,7 @@ function mn({ page: e, defaultPage: t = 1, total: n, totalItems: r, pageSize: i
|
|
|
674
674
|
"aria-label": "previous page",
|
|
675
675
|
disabled: h,
|
|
676
676
|
onClick: () => m(p - 1),
|
|
677
|
-
children: [/* @__PURE__ */ y(
|
|
677
|
+
children: [/* @__PURE__ */ y(te, { "aria-hidden": "true" }), /* @__PURE__ */ y("span", { children: "prev" })]
|
|
678
678
|
}),
|
|
679
679
|
/* @__PURE__ */ y("ul", {
|
|
680
680
|
className: "pgn-list",
|
|
@@ -697,7 +697,7 @@ function mn({ page: e, defaultPage: t = 1, total: n, totalItems: r, pageSize: i
|
|
|
697
697
|
"aria-label": "next page",
|
|
698
698
|
disabled: g,
|
|
699
699
|
onClick: () => m(p + 1),
|
|
700
|
-
children: [/* @__PURE__ */ y("span", { children: "next" }), /* @__PURE__ */ y(
|
|
700
|
+
children: [/* @__PURE__ */ y("span", { children: "next" }), /* @__PURE__ */ y(P, { "aria-hidden": "true" })]
|
|
701
701
|
})
|
|
702
702
|
]
|
|
703
703
|
});
|
|
@@ -1044,7 +1044,7 @@ function On({ value: e = 0, min: t = 0, max: n = 100, label: r, ariaLabel: i, sh
|
|
|
1044
1044
|
})]
|
|
1045
1045
|
});
|
|
1046
1046
|
}
|
|
1047
|
-
function kn({ children: e, icon: t =
|
|
1047
|
+
function kn({ children: e, icon: t = Pe, className: n }) {
|
|
1048
1048
|
return /* @__PURE__ */ b("span", {
|
|
1049
1049
|
className: n ? `fb-spin ${n}` : "fb-spin",
|
|
1050
1050
|
role: "status",
|
|
@@ -1058,7 +1058,7 @@ function kn({ children: e, icon: t = Ne, className: n }) {
|
|
|
1058
1058
|
});
|
|
1059
1059
|
}
|
|
1060
1060
|
function An({ variant: e = "ok", title: t, children: n, icon: r, onClose: i, closeLabel: a = "dismiss notification", className: o }) {
|
|
1061
|
-
let s = e === "err", c = r ?? (s ?
|
|
1061
|
+
let s = e === "err", c = r ?? (s ? oe : ie);
|
|
1062
1062
|
return /* @__PURE__ */ b("div", {
|
|
1063
1063
|
className: [
|
|
1064
1064
|
"fb-toast",
|
|
@@ -1094,11 +1094,11 @@ function An({ variant: e = "ok", title: t, children: n, icon: r, onClose: i, clo
|
|
|
1094
1094
|
function jn({ variant: e = "empty", title: t, children: n, icon: r, className: i }) {
|
|
1095
1095
|
let a = e === "error", o = e === "loading", s = {
|
|
1096
1096
|
loading: {
|
|
1097
|
-
icon:
|
|
1097
|
+
icon: Pe,
|
|
1098
1098
|
title: "loading"
|
|
1099
1099
|
},
|
|
1100
1100
|
error: {
|
|
1101
|
-
icon:
|
|
1101
|
+
icon: I,
|
|
1102
1102
|
title: "error"
|
|
1103
1103
|
},
|
|
1104
1104
|
empty: {
|
|
@@ -1185,7 +1185,7 @@ function Mn({ columns: e, rows: t, selectable: n = !1, rowKey: r, defaultSort: i
|
|
|
1185
1185
|
},
|
|
1186
1186
|
getCoreRowModel: Tt(),
|
|
1187
1187
|
getSortedRowModel: Et()
|
|
1188
|
-
}),
|
|
1188
|
+
}), te = M.getSortedRowModel().rows, P = e.length + +!!n;
|
|
1189
1189
|
return /* @__PURE__ */ y("div", {
|
|
1190
1190
|
className: `tbl-wrap${p ? " " + p : ""}`,
|
|
1191
1191
|
children: /* @__PURE__ */ b("table", {
|
|
@@ -1211,7 +1211,7 @@ function Mn({ columns: e, rows: t, selectable: n = !1, rowKey: r, defaultSort: i
|
|
|
1211
1211
|
})
|
|
1212
1212
|
})
|
|
1213
1213
|
}), e.map((e) => {
|
|
1214
|
-
let t = C?.key === e.key, n = t ? C.dir === "asc" ? "ascending" : "descending" : "none", r = t ? C.dir === "asc" ?
|
|
1214
|
+
let t = C?.key === e.key, n = t ? C.dir === "asc" ? "ascending" : "descending" : "none", r = t ? C.dir === "asc" ? ne : N : F;
|
|
1215
1215
|
return /* @__PURE__ */ y("th", {
|
|
1216
1216
|
scope: "col",
|
|
1217
1217
|
className: Pn("tbl-th", e.align),
|
|
@@ -1233,11 +1233,11 @@ function Mn({ columns: e, rows: t, selectable: n = !1, rowKey: r, defaultSort: i
|
|
|
1233
1233
|
})
|
|
1234
1234
|
}, e.key);
|
|
1235
1235
|
})] }) }),
|
|
1236
|
-
/* @__PURE__ */ y("tbody", { children:
|
|
1236
|
+
/* @__PURE__ */ y("tbody", { children: te.length === 0 ? /* @__PURE__ */ y("tr", { children: /* @__PURE__ */ y("td", {
|
|
1237
1237
|
className: "tbl-empty",
|
|
1238
|
-
colSpan:
|
|
1238
|
+
colSpan: P,
|
|
1239
1239
|
children: "no rows"
|
|
1240
|
-
}) }) :
|
|
1240
|
+
}) }) : te.map((t, r) => {
|
|
1241
1241
|
let i = t.original, a = t.getIsSelected();
|
|
1242
1242
|
return /* @__PURE__ */ b("tr", {
|
|
1243
1243
|
className: a ? "tbl-row is-selected" : "tbl-row",
|
|
@@ -1300,7 +1300,7 @@ function Ln({ data: e, type: t = "line", color: n = "teal", width: r = 88, heigh
|
|
|
1300
1300
|
},
|
|
1301
1301
|
role: "img",
|
|
1302
1302
|
"aria-label": o,
|
|
1303
|
-
children: /* @__PURE__ */ y(
|
|
1303
|
+
children: /* @__PURE__ */ y(Mt, {
|
|
1304
1304
|
width: "100%",
|
|
1305
1305
|
height: "100%",
|
|
1306
1306
|
children: t === "bar" ? /* @__PURE__ */ y(kt, {
|
|
@@ -1319,7 +1319,7 @@ function Ln({ data: e, type: t = "line", color: n = "teal", width: r = 88, heigh
|
|
|
1319
1319
|
radius: 0,
|
|
1320
1320
|
isAnimationActive: !1
|
|
1321
1321
|
})
|
|
1322
|
-
}) : /* @__PURE__ */ y(
|
|
1322
|
+
}) : /* @__PURE__ */ y(jt, {
|
|
1323
1323
|
data: c,
|
|
1324
1324
|
margin: {
|
|
1325
1325
|
top: 2,
|
|
@@ -1428,11 +1428,11 @@ function zn() {
|
|
|
1428
1428
|
var Bn = {
|
|
1429
1429
|
read: O,
|
|
1430
1430
|
grep: Xe,
|
|
1431
|
-
edit:
|
|
1432
|
-
write:
|
|
1431
|
+
edit: We,
|
|
1432
|
+
write: ge,
|
|
1433
1433
|
bash: ct,
|
|
1434
|
-
task:
|
|
1435
|
-
webfetch:
|
|
1434
|
+
task: je,
|
|
1435
|
+
webfetch: we,
|
|
1436
1436
|
default: gt
|
|
1437
1437
|
}, Vn = (e) => e >= 1e3 ? (e / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : String(e), Hn = {
|
|
1438
1438
|
user: {
|
|
@@ -1447,7 +1447,7 @@ var Bn = {
|
|
|
1447
1447
|
},
|
|
1448
1448
|
subagent: {
|
|
1449
1449
|
cls: "tl-item--subagent",
|
|
1450
|
-
glyph:
|
|
1450
|
+
glyph: de,
|
|
1451
1451
|
label: "subagent"
|
|
1452
1452
|
},
|
|
1453
1453
|
tool: {
|
|
@@ -1471,7 +1471,7 @@ function Un({ block: e, open: t, onToggle: n }) {
|
|
|
1471
1471
|
"aria-expanded": o,
|
|
1472
1472
|
onClick: () => a ? n?.() : i((e) => !e),
|
|
1473
1473
|
children: [
|
|
1474
|
-
y(o ? N :
|
|
1474
|
+
y(o ? N : P, {
|
|
1475
1475
|
className: "lucide",
|
|
1476
1476
|
"aria-hidden": "true"
|
|
1477
1477
|
}),
|
|
@@ -1620,7 +1620,7 @@ function Wn({ tool: e }) {
|
|
|
1620
1620
|
children: [e.duration && /* @__PURE__ */ b("span", {
|
|
1621
1621
|
className: "tl-durbadge tnum",
|
|
1622
1622
|
children: [
|
|
1623
|
-
/* @__PURE__ */ y(
|
|
1623
|
+
/* @__PURE__ */ y(se, {
|
|
1624
1624
|
className: "lucide",
|
|
1625
1625
|
"aria-hidden": "true"
|
|
1626
1626
|
}),
|
|
@@ -1657,7 +1657,7 @@ function Wn({ tool: e }) {
|
|
|
1657
1657
|
target: "_blank",
|
|
1658
1658
|
rel: "noreferrer",
|
|
1659
1659
|
children: [
|
|
1660
|
-
/* @__PURE__ */ y(
|
|
1660
|
+
/* @__PURE__ */ y(we, {
|
|
1661
1661
|
className: "lucide",
|
|
1662
1662
|
"aria-hidden": "true"
|
|
1663
1663
|
}),
|
|
@@ -1728,7 +1728,7 @@ function Gn({ tool: e }) {
|
|
|
1728
1728
|
className: "tl-thinking-toggle",
|
|
1729
1729
|
"aria-expanded": t,
|
|
1730
1730
|
onClick: () => n((e) => !e),
|
|
1731
|
-
children: [y(t ? N :
|
|
1731
|
+
children: [y(t ? N : P, {
|
|
1732
1732
|
className: "lucide",
|
|
1733
1733
|
"aria-hidden": "true"
|
|
1734
1734
|
}), /* @__PURE__ */ y("span", { children: "result" })]
|
|
@@ -1749,7 +1749,7 @@ function Kn({ tool: e, index: t = 0, open: n, onToggle: r, renderTool: i }) {
|
|
|
1749
1749
|
"aria-expanded": c,
|
|
1750
1750
|
onClick: l,
|
|
1751
1751
|
children: [
|
|
1752
|
-
y(c ? N :
|
|
1752
|
+
y(c ? N : P, {
|
|
1753
1753
|
className: "lucide tl-tool-chev",
|
|
1754
1754
|
"aria-hidden": "true"
|
|
1755
1755
|
}),
|
|
@@ -1820,7 +1820,7 @@ function qn({ item: e, renderTool: t, renderBody: n }) {
|
|
|
1820
1820
|
}), /* @__PURE__ */ b("div", {
|
|
1821
1821
|
className: "tl-cp",
|
|
1822
1822
|
children: [
|
|
1823
|
-
/* @__PURE__ */ y(
|
|
1823
|
+
/* @__PURE__ */ y(Ce, {
|
|
1824
1824
|
className: "lucide",
|
|
1825
1825
|
"aria-hidden": "true"
|
|
1826
1826
|
}),
|
|
@@ -1892,7 +1892,7 @@ function qn({ item: e, renderTool: t, renderBody: n }) {
|
|
|
1892
1892
|
className: "tl-tokens tnum",
|
|
1893
1893
|
title: Vn(o.in) + " in, " + Vn(o.out) + " out",
|
|
1894
1894
|
children: [
|
|
1895
|
-
/* @__PURE__ */ y(
|
|
1895
|
+
/* @__PURE__ */ y(ce, {
|
|
1896
1896
|
className: "lucide",
|
|
1897
1897
|
"aria-hidden": "true"
|
|
1898
1898
|
}),
|
|
@@ -1931,7 +1931,7 @@ function Jn({ items: e = [], renderTool: t, renderBody: n, dense: r = !1, ariaLa
|
|
|
1931
1931
|
/* @__PURE__ */ y("span", {
|
|
1932
1932
|
className: "ring",
|
|
1933
1933
|
"aria-hidden": "true",
|
|
1934
|
-
children: /* @__PURE__ */ y(
|
|
1934
|
+
children: /* @__PURE__ */ y(se, {
|
|
1935
1935
|
className: "lucide",
|
|
1936
1936
|
"aria-hidden": "true"
|
|
1937
1937
|
})
|
|
@@ -1951,11 +1951,11 @@ function Xn() {
|
|
|
1951
1951
|
}
|
|
1952
1952
|
var Zn = {
|
|
1953
1953
|
ok: {
|
|
1954
|
-
icon:
|
|
1954
|
+
icon: ie,
|
|
1955
1955
|
title: "done"
|
|
1956
1956
|
},
|
|
1957
1957
|
err: {
|
|
1958
|
-
icon:
|
|
1958
|
+
icon: oe,
|
|
1959
1959
|
title: "something went wrong"
|
|
1960
1960
|
}
|
|
1961
1961
|
};
|
|
@@ -2078,7 +2078,7 @@ function er({ children: e, placement: t = "bottom-right", max: n = 4, duration:
|
|
|
2078
2078
|
let n = C({
|
|
2079
2079
|
message: t.pending ?? "working",
|
|
2080
2080
|
title: t.pendingTitle ?? "in progress",
|
|
2081
|
-
icon:
|
|
2081
|
+
icon: Pe,
|
|
2082
2082
|
duration: Infinity
|
|
2083
2083
|
});
|
|
2084
2084
|
return Promise.resolve(e).then((e) => (w(n, {
|
|
@@ -2416,7 +2416,7 @@ function Sr({ value: e, defaultValue: t = {
|
|
|
2416
2416
|
from: x.from,
|
|
2417
2417
|
to: fr(e, x.from) >= 0 ? e : x.from
|
|
2418
2418
|
}));
|
|
2419
|
-
},
|
|
2419
|
+
}, ne = l((e) => {
|
|
2420
2420
|
let t = U(e);
|
|
2421
2421
|
t && (T(e), C((e) => {
|
|
2422
2422
|
let n = dr(e, o - 1), r = t.y < e.y || t.y === e.y && t.m < e.m, i = t.y > n.y || t.y === n.y && t.m > n.m;
|
|
@@ -2440,36 +2440,36 @@ function Sr({ value: e, defaultValue: t = {
|
|
|
2440
2440
|
e && (e.focus(), k.current = !1);
|
|
2441
2441
|
}
|
|
2442
2442
|
}, [u]);
|
|
2443
|
-
let
|
|
2443
|
+
let F = (e, t) => {
|
|
2444
2444
|
let n = e;
|
|
2445
2445
|
for (let r = 0; r < 400; r++) {
|
|
2446
2446
|
if (n = ur(n, t), mr(n, i, a)) return n;
|
|
2447
2447
|
if (t > 0 && a && fr(n, a) > 0 || t < 0 && i && fr(n, i) < 0) return e;
|
|
2448
2448
|
}
|
|
2449
2449
|
return e;
|
|
2450
|
-
},
|
|
2450
|
+
}, re = (e) => {
|
|
2451
2451
|
let t = w, n = null;
|
|
2452
2452
|
switch (e.key) {
|
|
2453
2453
|
case "ArrowLeft":
|
|
2454
|
-
n =
|
|
2454
|
+
n = F(t, -1);
|
|
2455
2455
|
break;
|
|
2456
2456
|
case "ArrowRight":
|
|
2457
|
-
n =
|
|
2457
|
+
n = F(t, 1);
|
|
2458
2458
|
break;
|
|
2459
2459
|
case "ArrowUp":
|
|
2460
|
-
n =
|
|
2460
|
+
n = F(t, -7);
|
|
2461
2461
|
break;
|
|
2462
2462
|
case "ArrowDown":
|
|
2463
|
-
n =
|
|
2463
|
+
n = F(t, 7);
|
|
2464
2464
|
break;
|
|
2465
2465
|
case "Home": {
|
|
2466
2466
|
let e = U(t), r = ur(t, -((new Date(e.y, e.m, e.d).getDay() - s + 7) % 7));
|
|
2467
|
-
n = mr(r, i, a) ? r :
|
|
2467
|
+
n = mr(r, i, a) ? r : F(r, 1);
|
|
2468
2468
|
break;
|
|
2469
2469
|
}
|
|
2470
2470
|
case "End": {
|
|
2471
2471
|
let e = U(t), r = ur(t, 6 - (new Date(e.y, e.m, e.d).getDay() - s + 7) % 7);
|
|
2472
|
-
n = mr(r, i, a) ? r :
|
|
2472
|
+
n = mr(r, i, a) ? r : F(r, -1);
|
|
2473
2473
|
break;
|
|
2474
2474
|
}
|
|
2475
2475
|
case "PageUp": {
|
|
@@ -2488,8 +2488,8 @@ function Sr({ value: e, defaultValue: t = {
|
|
|
2488
2488
|
return;
|
|
2489
2489
|
default: return;
|
|
2490
2490
|
}
|
|
2491
|
-
n && (e.preventDefault(),
|
|
2492
|
-
},
|
|
2491
|
+
n && (e.preventDefault(), ne(n));
|
|
2492
|
+
}, I = x?.from && !x?.to && E && fr(E, x.from) >= 0 ? E : null, ie = m(() => {
|
|
2493
2493
|
let e = [];
|
|
2494
2494
|
for (let t = 0; t < 7; t++) e.push(ir[(s - 1 + t + 7) % 7]);
|
|
2495
2495
|
return e;
|
|
@@ -2498,7 +2498,7 @@ function Sr({ value: e, defaultValue: t = {
|
|
|
2498
2498
|
className: ["dr-cal", c].filter(Boolean).join(" "),
|
|
2499
2499
|
children: /* @__PURE__ */ y("div", {
|
|
2500
2500
|
className: "dr-grids",
|
|
2501
|
-
onKeyDown:
|
|
2501
|
+
onKeyDown: re,
|
|
2502
2502
|
onMouseLeave: () => D(null),
|
|
2503
2503
|
children: ee.map((e, t) => {
|
|
2504
2504
|
let { y: n, m: r } = e, o = cr(n, r), c = lr(n, r, s), l = [];
|
|
@@ -2519,7 +2519,7 @@ function Sr({ value: e, defaultValue: t = {
|
|
|
2519
2519
|
onClick: () => C((e) => dr(e, -1)),
|
|
2520
2520
|
"aria-label": "previous month",
|
|
2521
2521
|
disabled: !!i && fr(or(n, r, 1), vr(i)) <= 0,
|
|
2522
|
-
children: /* @__PURE__ */ y(
|
|
2522
|
+
children: /* @__PURE__ */ y(te, { "aria-hidden": "true" })
|
|
2523
2523
|
}) : /* @__PURE__ */ y("span", {
|
|
2524
2524
|
className: "dr-nav",
|
|
2525
2525
|
"aria-hidden": "true",
|
|
@@ -2540,7 +2540,7 @@ function Sr({ value: e, defaultValue: t = {
|
|
|
2540
2540
|
onClick: () => C((e) => dr(e, 1)),
|
|
2541
2541
|
"aria-label": "next month",
|
|
2542
2542
|
disabled: !!a && fr(or(n, r, o), yr(a)) >= 0,
|
|
2543
|
-
children: /* @__PURE__ */ y(
|
|
2543
|
+
children: /* @__PURE__ */ y(P, { "aria-hidden": "true" })
|
|
2544
2544
|
}) : /* @__PURE__ */ y("span", {
|
|
2545
2545
|
className: "dr-nav",
|
|
2546
2546
|
"aria-hidden": "true",
|
|
@@ -2554,7 +2554,7 @@ function Sr({ value: e, defaultValue: t = {
|
|
|
2554
2554
|
children: [/* @__PURE__ */ y("div", {
|
|
2555
2555
|
className: "dr-wdrow",
|
|
2556
2556
|
role: "row",
|
|
2557
|
-
children:
|
|
2557
|
+
children: ie.map((e) => /* @__PURE__ */ y("span", {
|
|
2558
2558
|
className: "dr-wd",
|
|
2559
2559
|
role: "columnheader",
|
|
2560
2560
|
"aria-hidden": "true",
|
|
@@ -2569,7 +2569,7 @@ function Sr({ value: e, defaultValue: t = {
|
|
|
2569
2569
|
role: "gridcell",
|
|
2570
2570
|
"aria-hidden": "true"
|
|
2571
2571
|
}, t);
|
|
2572
|
-
let o = or(n, r, e), s = !mr(o, i, a), c = x?.from === o, l = x?.to === o, u = c || l, d = x?.from && x?.to && pr(o, x.from, x.to), f = !d &&
|
|
2572
|
+
let o = or(n, r, e), s = !mr(o, i, a), c = x?.from === o, l = x?.to === o, u = c || l, d = x?.from && x?.to && pr(o, x.from, x.to), f = !d && I && pr(o, x.from, I), p = o === A, m = o === w, h = ["dr-day"];
|
|
2573
2573
|
return u ? h.push("dr-edge") : d ? h.push("dr-in-range") : f && h.push("dr-preview"), p && h.push("dr-today"), /* @__PURE__ */ y("div", {
|
|
2574
2574
|
className: "dr-cell",
|
|
2575
2575
|
role: "gridcell",
|
|
@@ -2607,25 +2607,25 @@ function wr({ value: e, defaultValue: t = {
|
|
|
2607
2607
|
from: null,
|
|
2608
2608
|
to: null
|
|
2609
2609
|
}, onChange: n, onDraftChange: r, presets: i = br, min: a, max: o, numberOfMonths: s = 2, weekStartsOn: c = 1, placeholder: l = "any dates", label: u, align: m = "start", size: h = "md", disabled: v = !1, clearable: x = !0, id: S }) {
|
|
2610
|
-
let C = f(), w = S || `dr-${C}`, T = `${w}-pop`, E = `${w}-label`, D = e !== void 0, [O, k] = _(t), A = D ? e : O, [j, M] = _(!1),
|
|
2610
|
+
let C = f(), w = S || `dr-${C}`, T = `${w}-pop`, E = `${w}-label`, D = e !== void 0, [O, k] = _(t), A = D ? e : O, [j, M] = _(!1), te = g(null), P = g(null), ne = g(null), F = (e, t) => {
|
|
2611
2611
|
D || k(e), t ? n?.(e) : r?.(e);
|
|
2612
|
-
},
|
|
2612
|
+
}, re = () => {
|
|
2613
2613
|
v || M(!0);
|
|
2614
|
-
},
|
|
2615
|
-
M(!1), e && requestAnimationFrame(() =>
|
|
2614
|
+
}, I = (e) => {
|
|
2615
|
+
M(!1), e && requestAnimationFrame(() => P.current?.focus());
|
|
2616
2616
|
};
|
|
2617
2617
|
d(() => {
|
|
2618
2618
|
if (!j) return;
|
|
2619
2619
|
let e = (e) => {
|
|
2620
|
-
|
|
2620
|
+
te.current && !te.current.contains(e.target) && I(!1);
|
|
2621
2621
|
}, t = (e) => {
|
|
2622
|
-
e.key === "Escape" && (e.preventDefault(),
|
|
2622
|
+
e.key === "Escape" && (e.preventDefault(), I(!0));
|
|
2623
2623
|
};
|
|
2624
2624
|
return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
|
|
2625
2625
|
document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
|
|
2626
2626
|
};
|
|
2627
2627
|
}, [j]), p(() => {
|
|
2628
|
-
let e =
|
|
2628
|
+
let e = ne.current;
|
|
2629
2629
|
if (!e) return;
|
|
2630
2630
|
if (!j) {
|
|
2631
2631
|
e.style.marginLeft = "", e.style.marginRight = "";
|
|
@@ -2638,23 +2638,23 @@ function wr({ value: e, defaultValue: t = {
|
|
|
2638
2638
|
};
|
|
2639
2639
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
2640
2640
|
}, [j]);
|
|
2641
|
-
let
|
|
2642
|
-
(e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (j || (e.preventDefault(),
|
|
2643
|
-
}, ie = (e) => {
|
|
2644
|
-
I(e, !0);
|
|
2641
|
+
let ie = (e) => {
|
|
2642
|
+
(e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (j || (e.preventDefault(), re()));
|
|
2645
2643
|
}, ae = (e) => {
|
|
2646
|
-
|
|
2644
|
+
F(e, !0);
|
|
2647
2645
|
}, oe = (e) => {
|
|
2648
|
-
|
|
2649
|
-
}, se = () => {
|
|
2650
|
-
I(
|
|
2646
|
+
F(e, !1);
|
|
2647
|
+
}, se = (e) => {
|
|
2648
|
+
F(e.range(), !0), I(!0);
|
|
2649
|
+
}, ce = () => {
|
|
2650
|
+
F({
|
|
2651
2651
|
from: null,
|
|
2652
2652
|
to: null
|
|
2653
2653
|
}, !0);
|
|
2654
|
-
},
|
|
2654
|
+
}, le = !A?.from && !A?.to, ue = le ? l : hr(A), de = le ? l : `dates: ${_r(A)}`, fe = xr(A), pe = le ? "no range selected" : A.from && !A.to ? `from ${hr({
|
|
2655
2655
|
from: A.from,
|
|
2656
2656
|
to: null
|
|
2657
|
-
})}` : `${hr(A)} (${
|
|
2657
|
+
})}` : `${hr(A)} (${fe} ${fe === 1 ? "day" : "days"})`, me = i && i.length > 0;
|
|
2658
2658
|
return /* @__PURE__ */ b("div", {
|
|
2659
2659
|
className: "dr-field",
|
|
2660
2660
|
children: [u && /* @__PURE__ */ y("label", {
|
|
@@ -2664,9 +2664,9 @@ function wr({ value: e, defaultValue: t = {
|
|
|
2664
2664
|
children: u
|
|
2665
2665
|
}), /* @__PURE__ */ b("div", {
|
|
2666
2666
|
className: "dr-anchor",
|
|
2667
|
-
ref:
|
|
2667
|
+
ref: te,
|
|
2668
2668
|
children: [/* @__PURE__ */ b("button", {
|
|
2669
|
-
ref:
|
|
2669
|
+
ref: P,
|
|
2670
2670
|
type: "button",
|
|
2671
2671
|
id: w,
|
|
2672
2672
|
className: [
|
|
@@ -2678,19 +2678,19 @@ function wr({ value: e, defaultValue: t = {
|
|
|
2678
2678
|
"aria-haspopup": "dialog",
|
|
2679
2679
|
"aria-expanded": j ? "true" : "false",
|
|
2680
2680
|
"aria-controls": T,
|
|
2681
|
-
"aria-label":
|
|
2681
|
+
"aria-label": de,
|
|
2682
2682
|
"aria-labelledby": u ? `${E} ${w}` : void 0,
|
|
2683
2683
|
disabled: v,
|
|
2684
|
-
onClick: () => j ?
|
|
2685
|
-
onKeyDown:
|
|
2684
|
+
onClick: () => j ? I(!0) : re(),
|
|
2685
|
+
onKeyDown: ie,
|
|
2686
2686
|
children: [
|
|
2687
2687
|
/* @__PURE__ */ y(ee, {
|
|
2688
2688
|
className: "dr-ico",
|
|
2689
2689
|
"aria-hidden": "true"
|
|
2690
2690
|
}),
|
|
2691
2691
|
/* @__PURE__ */ y("span", {
|
|
2692
|
-
className:
|
|
2693
|
-
children:
|
|
2692
|
+
className: le ? "dr-value dr-empty" : "dr-value",
|
|
2693
|
+
children: ue
|
|
2694
2694
|
}),
|
|
2695
2695
|
/* @__PURE__ */ y(N, {
|
|
2696
2696
|
className: "dr-caret",
|
|
@@ -2698,14 +2698,14 @@ function wr({ value: e, defaultValue: t = {
|
|
|
2698
2698
|
})
|
|
2699
2699
|
]
|
|
2700
2700
|
}), /* @__PURE__ */ b("div", {
|
|
2701
|
-
ref:
|
|
2701
|
+
ref: ne,
|
|
2702
2702
|
className: ["dr-pop", m === "end" ? "dr-end" : ""].filter(Boolean).join(" "),
|
|
2703
2703
|
id: T,
|
|
2704
2704
|
role: "dialog",
|
|
2705
2705
|
"aria-label": "choose a date range",
|
|
2706
2706
|
hidden: !j,
|
|
2707
2707
|
children: [
|
|
2708
|
-
|
|
2708
|
+
me && /* @__PURE__ */ y("div", {
|
|
2709
2709
|
className: "dr-presets",
|
|
2710
2710
|
role: "group",
|
|
2711
2711
|
"aria-label": "quick ranges",
|
|
@@ -2713,7 +2713,7 @@ function wr({ value: e, defaultValue: t = {
|
|
|
2713
2713
|
type: "button",
|
|
2714
2714
|
className: "dr-preset",
|
|
2715
2715
|
"aria-pressed": Cr(A, e) ? "true" : "false",
|
|
2716
|
-
onClick: () =>
|
|
2716
|
+
onClick: () => se(e),
|
|
2717
2717
|
children: e.label
|
|
2718
2718
|
}, e.id))
|
|
2719
2719
|
}),
|
|
@@ -2721,8 +2721,8 @@ function wr({ value: e, defaultValue: t = {
|
|
|
2721
2721
|
className: "dr-body",
|
|
2722
2722
|
children: [j && /* @__PURE__ */ y(Sr, {
|
|
2723
2723
|
value: A,
|
|
2724
|
-
onChange:
|
|
2725
|
-
onDraftChange:
|
|
2724
|
+
onChange: ae,
|
|
2725
|
+
onDraftChange: oe,
|
|
2726
2726
|
min: a,
|
|
2727
2727
|
max: o,
|
|
2728
2728
|
numberOfMonths: s,
|
|
@@ -2733,13 +2733,13 @@ function wr({ value: e, defaultValue: t = {
|
|
|
2733
2733
|
className: "dr-foot",
|
|
2734
2734
|
children: [/* @__PURE__ */ y("span", {
|
|
2735
2735
|
className: "dr-readout",
|
|
2736
|
-
children:
|
|
2736
|
+
children: pe
|
|
2737
2737
|
}), /* @__PURE__ */ b("div", {
|
|
2738
2738
|
className: "dr-foot-actions",
|
|
2739
|
-
children: [x && !
|
|
2739
|
+
children: [x && !le && /* @__PURE__ */ b("button", {
|
|
2740
2740
|
type: "button",
|
|
2741
2741
|
className: "btn btn-secondary btn-sm",
|
|
2742
|
-
onClick:
|
|
2742
|
+
onClick: ce,
|
|
2743
2743
|
children: [/* @__PURE__ */ y(_t, {
|
|
2744
2744
|
className: "dr-ico",
|
|
2745
2745
|
"aria-hidden": "true"
|
|
@@ -2747,7 +2747,7 @@ function wr({ value: e, defaultValue: t = {
|
|
|
2747
2747
|
}), /* @__PURE__ */ y("button", {
|
|
2748
2748
|
type: "button",
|
|
2749
2749
|
className: "btn btn-primary btn-sm",
|
|
2750
|
-
onClick: () =>
|
|
2750
|
+
onClick: () => I(!0),
|
|
2751
2751
|
children: "apply"
|
|
2752
2752
|
})]
|
|
2753
2753
|
})]
|
|
@@ -2756,7 +2756,7 @@ function wr({ value: e, defaultValue: t = {
|
|
|
2756
2756
|
/* @__PURE__ */ y("span", {
|
|
2757
2757
|
className: "dr-live",
|
|
2758
2758
|
"aria-live": "polite",
|
|
2759
|
-
children: j ?
|
|
2759
|
+
children: j ? pe : ""
|
|
2760
2760
|
})
|
|
2761
2761
|
]
|
|
2762
2762
|
})]
|
|
@@ -2849,7 +2849,7 @@ function Dr({ open: e, onClose: t, onTheme: n, sections: r }) {
|
|
|
2849
2849
|
}].filter((e) => t(e.label)), a = r.filter((e) => t(e.label)).map((e) => ({
|
|
2850
2850
|
...e,
|
|
2851
2851
|
kind: "section",
|
|
2852
|
-
Icon:
|
|
2852
|
+
Icon: Te
|
|
2853
2853
|
}));
|
|
2854
2854
|
return [{
|
|
2855
2855
|
group: "actions",
|
|
@@ -3367,7 +3367,7 @@ function Kr({ buckets: e = [], value: t, defaultValue: n = 1, onScrub: r, branch
|
|
|
3367
3367
|
O,
|
|
3368
3368
|
u,
|
|
3369
3369
|
T
|
|
3370
|
-
]), M = i.slice(0, o), N = i.length - M.length,
|
|
3370
|
+
]), M = i.slice(0, o), N = i.length - M.length, te = u > 1 ? T / (u - 1) * 100 : 0, P = u > 1 ? T / (u - 1) * 100 : 100;
|
|
3371
3371
|
return /* @__PURE__ */ b("section", {
|
|
3372
3372
|
className: `ts2-scope ts2${s ? ` ${s}` : ""}`,
|
|
3373
3373
|
"aria-label": a,
|
|
@@ -3404,7 +3404,7 @@ function Kr({ buckets: e = [], value: t, defaultValue: n = 1, onScrub: r, branch
|
|
|
3404
3404
|
u > 0 && /* @__PURE__ */ y("span", {
|
|
3405
3405
|
className: "ts2-covered",
|
|
3406
3406
|
"aria-hidden": "true",
|
|
3407
|
-
style: { left: `${
|
|
3407
|
+
style: { left: `${te}%` }
|
|
3408
3408
|
}),
|
|
3409
3409
|
/* @__PURE__ */ y("div", {
|
|
3410
3410
|
className: "ts2-bars",
|
|
@@ -3422,7 +3422,7 @@ function Kr({ buckets: e = [], value: t, defaultValue: n = 1, onScrub: r, branch
|
|
|
3422
3422
|
u > 0 && /* @__PURE__ */ y("span", {
|
|
3423
3423
|
className: "ts2-playhead",
|
|
3424
3424
|
"aria-hidden": "true",
|
|
3425
|
-
style: { left: `${
|
|
3425
|
+
style: { left: `${P}%` },
|
|
3426
3426
|
children: /* @__PURE__ */ y("span", { className: "ts2-playhead__grip" })
|
|
3427
3427
|
}),
|
|
3428
3428
|
u > 0 && /* @__PURE__ */ y("span", {
|
|
@@ -3492,7 +3492,7 @@ function Yr({ children: e, title: t = "what am i looking at?", defaultOpen: n =
|
|
|
3492
3492
|
/* @__PURE__ */ y("span", {
|
|
3493
3493
|
className: "xpl-mark",
|
|
3494
3494
|
"aria-hidden": "true",
|
|
3495
|
-
children: /* @__PURE__ */ y(
|
|
3495
|
+
children: /* @__PURE__ */ y(R, { className: "lucide" })
|
|
3496
3496
|
}),
|
|
3497
3497
|
/* @__PURE__ */ y("span", {
|
|
3498
3498
|
className: "xpl-title",
|
|
@@ -3692,7 +3692,7 @@ function ri({ match: e, onToggle: t }) {
|
|
|
3692
3692
|
className: "rdx-toggle",
|
|
3693
3693
|
"aria-pressed": f,
|
|
3694
3694
|
onClick: p,
|
|
3695
|
-
children: [y(f ?
|
|
3695
|
+
children: [y(f ? he : me, { "aria-hidden": "true" }), f ? "revert" : "keep"]
|
|
3696
3696
|
})
|
|
3697
3697
|
]
|
|
3698
3698
|
}), /* @__PURE__ */ b("div", {
|
|
@@ -3709,7 +3709,7 @@ function ri({ match: e, onToggle: t }) {
|
|
|
3709
3709
|
/* @__PURE__ */ y("span", {
|
|
3710
3710
|
className: "rdx-glyph",
|
|
3711
3711
|
"aria-hidden": "true",
|
|
3712
|
-
children: y(f ?
|
|
3712
|
+
children: y(f ? me : Le, { "aria-hidden": "true" })
|
|
3713
3713
|
}),
|
|
3714
3714
|
/* @__PURE__ */ b("span", {
|
|
3715
3715
|
className: "rdx-code",
|
|
@@ -3732,7 +3732,7 @@ function ri({ match: e, onToggle: t }) {
|
|
|
3732
3732
|
/* @__PURE__ */ y("span", {
|
|
3733
3733
|
className: "rdx-glyph",
|
|
3734
3734
|
"aria-hidden": "true",
|
|
3735
|
-
children: /* @__PURE__ */ y(
|
|
3735
|
+
children: /* @__PURE__ */ y(qe, { "aria-hidden": "true" })
|
|
3736
3736
|
}),
|
|
3737
3737
|
/* @__PURE__ */ b("span", {
|
|
3738
3738
|
className: "rdx-code",
|
|
@@ -3892,7 +3892,7 @@ function oi({ destination: e, sent: t = [], private: n = [], className: r = "",
|
|
|
3892
3892
|
className: "rdx-where-col",
|
|
3893
3893
|
children: [/* @__PURE__ */ b("div", {
|
|
3894
3894
|
className: "rdx-where-col-head",
|
|
3895
|
-
children: [/* @__PURE__ */ y(
|
|
3895
|
+
children: [/* @__PURE__ */ y(Fe, {
|
|
3896
3896
|
className: "rdx-where-col-icon rdx-where-col-icon-private",
|
|
3897
3897
|
"aria-hidden": "true"
|
|
3898
3898
|
}), /* @__PURE__ */ y("span", {
|
|
@@ -3902,7 +3902,7 @@ function oi({ destination: e, sent: t = [], private: n = [], className: r = "",
|
|
|
3902
3902
|
}), /* @__PURE__ */ y("ul", {
|
|
3903
3903
|
className: "rdx-trows",
|
|
3904
3904
|
children: n.map((e, t) => /* @__PURE__ */ y(ai, {
|
|
3905
|
-
icon:
|
|
3905
|
+
icon: Fe,
|
|
3906
3906
|
tone: "private",
|
|
3907
3907
|
children: e
|
|
3908
3908
|
}, t))
|
|
@@ -4233,7 +4233,7 @@ function pi({ subject: e, onApprove: t, onReject: n, approveLabel: r = "approve"
|
|
|
4233
4233
|
className: "mod-bar-inner",
|
|
4234
4234
|
children: [/* @__PURE__ */ b("span", {
|
|
4235
4235
|
className: "mod-bar-subject",
|
|
4236
|
-
children: [/* @__PURE__ */ y(
|
|
4236
|
+
children: [/* @__PURE__ */ y(se, {
|
|
4237
4237
|
className: "mod-bar-clock",
|
|
4238
4238
|
"aria-hidden": "true"
|
|
4239
4239
|
}), /* @__PURE__ */ y("span", {
|
|
@@ -4277,7 +4277,7 @@ function mi({ title: e = "pending review", items: t = [], onApprove: n, onReject
|
|
|
4277
4277
|
children: [/* @__PURE__ */ b("header", {
|
|
4278
4278
|
className: "mod-queue-head",
|
|
4279
4279
|
children: [
|
|
4280
|
-
/* @__PURE__ */ y(
|
|
4280
|
+
/* @__PURE__ */ y(je, {
|
|
4281
4281
|
className: "mod-queue-ico",
|
|
4282
4282
|
"aria-hidden": "true"
|
|
4283
4283
|
}),
|
|
@@ -4296,7 +4296,7 @@ function mi({ title: e = "pending review", items: t = [], onApprove: n, onReject
|
|
|
4296
4296
|
children: [/* @__PURE__ */ y("span", {
|
|
4297
4297
|
className: "mod-empty-ico",
|
|
4298
4298
|
"aria-hidden": "true",
|
|
4299
|
-
children: /* @__PURE__ */ y(
|
|
4299
|
+
children: /* @__PURE__ */ y(Ee, {})
|
|
4300
4300
|
}), /* @__PURE__ */ y("p", {
|
|
4301
4301
|
className: "mod-empty-msg",
|
|
4302
4302
|
children: i
|
|
@@ -4304,7 +4304,7 @@ function mi({ title: e = "pending review", items: t = [], onApprove: n, onReject
|
|
|
4304
4304
|
}) : /* @__PURE__ */ y("ul", {
|
|
4305
4305
|
className: "mod-list",
|
|
4306
4306
|
children: t.map((e) => {
|
|
4307
|
-
let t = o[e.id], i = e.kind === "member" ? pt :
|
|
4307
|
+
let t = o[e.id], i = e.kind === "member" ? pt : Ee;
|
|
4308
4308
|
return /* @__PURE__ */ b("li", {
|
|
4309
4309
|
className: [
|
|
4310
4310
|
"mod-row",
|
|
@@ -4471,7 +4471,7 @@ function gi({ members: e = [], onRole: t, onRemove: n, title: r = "members", rol
|
|
|
4471
4471
|
children: ["role for ", e.handle]
|
|
4472
4472
|
}), c ? /* @__PURE__ */ b("span", {
|
|
4473
4473
|
className: "rr-role-locked",
|
|
4474
|
-
children: [/* @__PURE__ */ y(
|
|
4474
|
+
children: [/* @__PURE__ */ y(Fe, {
|
|
4475
4475
|
className: "rr-lock",
|
|
4476
4476
|
"aria-hidden": "true"
|
|
4477
4477
|
}), "owner"]
|
|
@@ -4605,7 +4605,7 @@ function bi({ tasks: e = [], onJump: t, totalMs: n, defaultCollapsed: r = !1, la
|
|
|
4605
4605
|
"aria-controls": "swf-list",
|
|
4606
4606
|
title: "show or hide the per-task duration rows",
|
|
4607
4607
|
children: [
|
|
4608
|
-
/* @__PURE__ */ y(
|
|
4608
|
+
/* @__PURE__ */ y(Me, {
|
|
4609
4609
|
className: "swf-toggle-ic",
|
|
4610
4610
|
"aria-hidden": "true"
|
|
4611
4611
|
}),
|
|
@@ -4698,7 +4698,7 @@ function Ci({ state: e }) {
|
|
|
4698
4698
|
children: [e === "all" && /* @__PURE__ */ y(j, {
|
|
4699
4699
|
className: "gms-box-glyph",
|
|
4700
4700
|
strokeWidth: 3
|
|
4701
|
-
}), e === "some" && /* @__PURE__ */ y(
|
|
4701
|
+
}), e === "some" && /* @__PURE__ */ y(Le, {
|
|
4702
4702
|
className: "gms-box-glyph",
|
|
4703
4703
|
strokeWidth: 3
|
|
4704
4704
|
})]
|
|
@@ -4799,7 +4799,7 @@ function wi({ groups: e = [], value: t, defaultValue: n, onChange: r, tokenLabel
|
|
|
4799
4799
|
"aria-expanded": o,
|
|
4800
4800
|
"aria-controls": s,
|
|
4801
4801
|
children: [
|
|
4802
|
-
/* @__PURE__ */ y(
|
|
4802
|
+
/* @__PURE__ */ y(P, {
|
|
4803
4803
|
className: "gms-caret",
|
|
4804
4804
|
"data-open": o || void 0,
|
|
4805
4805
|
"aria-hidden": "true"
|
|
@@ -4931,7 +4931,7 @@ function Oi({ id: e, eyebrow: t, children: n, className: r = "", ...i }) {
|
|
|
4931
4931
|
...i,
|
|
4932
4932
|
children: [t && /* @__PURE__ */ b("span", {
|
|
4933
4933
|
className: "ec-target-eyebrow",
|
|
4934
|
-
children: [/* @__PURE__ */ y(
|
|
4934
|
+
children: [/* @__PURE__ */ y(de, {
|
|
4935
4935
|
className: "ec-target-eyebrow-icon",
|
|
4936
4936
|
"aria-hidden": "true"
|
|
4937
4937
|
}), t]
|
|
@@ -4977,7 +4977,7 @@ function ji({ label: e, range: t, active: n = !1, stickyTop: r = "var(--nav-h)",
|
|
|
4977
4977
|
"data-active": n ? "true" : void 0,
|
|
4978
4978
|
"aria-current": n ? "true" : void 0,
|
|
4979
4979
|
children: [
|
|
4980
|
-
/* @__PURE__ */ y(
|
|
4980
|
+
/* @__PURE__ */ y(De, {
|
|
4981
4981
|
className: "lucide tm2-phase-icon",
|
|
4982
4982
|
size: 14,
|
|
4983
4983
|
strokeWidth: 1.75,
|
|
@@ -5088,7 +5088,7 @@ function Pi({ hash: e, message: t, time: n, files: r, ins: i = 0, del: a = 0, cl
|
|
|
5088
5088
|
/* @__PURE__ */ b("div", {
|
|
5089
5089
|
className: "tm2-marker-chip",
|
|
5090
5090
|
children: [
|
|
5091
|
-
/* @__PURE__ */ y(
|
|
5091
|
+
/* @__PURE__ */ y(Se, {
|
|
5092
5092
|
className: "lucide tm2-marker-icon",
|
|
5093
5093
|
size: 14,
|
|
5094
5094
|
strokeWidth: 1.75,
|
|
@@ -5166,7 +5166,7 @@ function Fi({ prompt: e, ordinal: t, onNext: n, nextLabel: r = "next", stickyTop
|
|
|
5166
5166
|
type: "button",
|
|
5167
5167
|
className: "tm2-eyebrow tm2-contextbar-next",
|
|
5168
5168
|
onClick: n,
|
|
5169
|
-
children: [/* @__PURE__ */ y("span", { children: r }), /* @__PURE__ */ y(
|
|
5169
|
+
children: [/* @__PURE__ */ y("span", { children: r }), /* @__PURE__ */ y(ue, {
|
|
5170
5170
|
className: "lucide tm2-contextbar-next-icon",
|
|
5171
5171
|
size: 14,
|
|
5172
5172
|
strokeWidth: 1.75,
|
|
@@ -5179,13 +5179,13 @@ function Fi({ prompt: e, ordinal: t, onNext: n, nextLabel: r = "next", stickyTop
|
|
|
5179
5179
|
//#endregion
|
|
5180
5180
|
//#region src/ui/ToolRenderers.jsx
|
|
5181
5181
|
var Ii = {
|
|
5182
|
-
read:
|
|
5183
|
-
edit:
|
|
5184
|
-
write:
|
|
5182
|
+
read: ve,
|
|
5183
|
+
edit: We,
|
|
5184
|
+
write: ge,
|
|
5185
5185
|
bash: ct,
|
|
5186
5186
|
grep: Xe,
|
|
5187
5187
|
task: k,
|
|
5188
|
-
webfetch:
|
|
5188
|
+
webfetch: we
|
|
5189
5189
|
};
|
|
5190
5190
|
function Li(e, t = 64) {
|
|
5191
5191
|
if (!e) return "";
|
|
@@ -5212,7 +5212,7 @@ function Bi({ status: e }) {
|
|
|
5212
5212
|
let t = e === "error";
|
|
5213
5213
|
return /* @__PURE__ */ b("span", {
|
|
5214
5214
|
className: `trx-status${t ? " trx-status-error" : " trx-status-ok"}`,
|
|
5215
|
-
children: [/* @__PURE__ */ y(t ?
|
|
5215
|
+
children: [/* @__PURE__ */ y(t ? I : j, { "aria-hidden": "true" }), /* @__PURE__ */ y("span", {
|
|
5216
5216
|
className: "trx-status-word",
|
|
5217
5217
|
children: t ? "error" : "ok"
|
|
5218
5218
|
})]
|
|
@@ -5270,7 +5270,7 @@ function Hi({ tool: e }) {
|
|
|
5270
5270
|
});
|
|
5271
5271
|
}
|
|
5272
5272
|
function Ui({ type: e, text: t }) {
|
|
5273
|
-
let n = e === "add" ?
|
|
5273
|
+
let n = e === "add" ? qe : Le;
|
|
5274
5274
|
return /* @__PURE__ */ b("div", {
|
|
5275
5275
|
className: `trx-diffrow trx-diff-${e}`,
|
|
5276
5276
|
role: "row",
|
|
@@ -5340,7 +5340,7 @@ function Gi({ tool: e }) {
|
|
|
5340
5340
|
/* @__PURE__ */ b("div", {
|
|
5341
5341
|
className: `trx-exit${a ? " trx-exit-failed" : ""}`,
|
|
5342
5342
|
children: [
|
|
5343
|
-
a && /* @__PURE__ */ y(
|
|
5343
|
+
a && /* @__PURE__ */ y(I, {
|
|
5344
5344
|
"aria-hidden": "true",
|
|
5345
5345
|
className: "trx-exit-icon"
|
|
5346
5346
|
}),
|
|
@@ -5439,7 +5439,7 @@ function qi({ tool: e }) {
|
|
|
5439
5439
|
}),
|
|
5440
5440
|
/* @__PURE__ */ b("div", {
|
|
5441
5441
|
className: "trx-task-line",
|
|
5442
|
-
children: [/* @__PURE__ */ y(
|
|
5442
|
+
children: [/* @__PURE__ */ y(P, {
|
|
5443
5443
|
"aria-hidden": "true",
|
|
5444
5444
|
className: "trx-task-arrow"
|
|
5445
5445
|
}), /* @__PURE__ */ y("span", {
|
|
@@ -5461,7 +5461,7 @@ function Ji({ tool: e }) {
|
|
|
5461
5461
|
children: [
|
|
5462
5462
|
/* @__PURE__ */ b("div", {
|
|
5463
5463
|
className: "trx-webfetch-head",
|
|
5464
|
-
children: [/* @__PURE__ */ y(
|
|
5464
|
+
children: [/* @__PURE__ */ y(we, {
|
|
5465
5465
|
"aria-hidden": "true",
|
|
5466
5466
|
className: "trx-webfetch-icon"
|
|
5467
5467
|
}), n ? /* @__PURE__ */ y("a", {
|
|
@@ -5540,7 +5540,7 @@ function Qi({ tool: e, defaultOpen: t = !1, className: n = "", ...r }) {
|
|
|
5540
5540
|
"aria-controls": l,
|
|
5541
5541
|
onClick: () => a((e) => !e),
|
|
5542
5542
|
children: [
|
|
5543
|
-
/* @__PURE__ */ y(
|
|
5543
|
+
/* @__PURE__ */ y(P, {
|
|
5544
5544
|
"aria-hidden": "true",
|
|
5545
5545
|
className: "trx-chevron"
|
|
5546
5546
|
}),
|
|
@@ -5598,13 +5598,13 @@ function aa({ steps: e = [], open: t, onClose: n, onFinish: r, onStepChange: i,
|
|
|
5598
5598
|
let t = e + 1;
|
|
5599
5599
|
return M.current?.(t), t;
|
|
5600
5600
|
});
|
|
5601
|
-
}, [E]),
|
|
5601
|
+
}, [E]), te = l(() => {
|
|
5602
5602
|
s((e) => {
|
|
5603
5603
|
if (e <= 0) return e;
|
|
5604
5604
|
let t = e - 1;
|
|
5605
5605
|
return M.current?.(t), t;
|
|
5606
5606
|
});
|
|
5607
|
-
}, []),
|
|
5607
|
+
}, []), P = l(() => {
|
|
5608
5608
|
A.current?.();
|
|
5609
5609
|
}, []);
|
|
5610
5610
|
p(() => {
|
|
@@ -5650,9 +5650,9 @@ function aa({ steps: e = [], open: t, onClose: n, onFinish: r, onStepChange: i,
|
|
|
5650
5650
|
window.cancelAnimationFrame(t), e && typeof e.focus == "function" && requestAnimationFrame(() => e.focus());
|
|
5651
5651
|
};
|
|
5652
5652
|
}, [D]);
|
|
5653
|
-
let
|
|
5653
|
+
let ne = l((e) => {
|
|
5654
5654
|
if (e.key === "Escape") {
|
|
5655
|
-
e.preventDefault(),
|
|
5655
|
+
e.preventDefault(), P();
|
|
5656
5656
|
return;
|
|
5657
5657
|
}
|
|
5658
5658
|
if (e.key === "ArrowRight") {
|
|
@@ -5660,7 +5660,7 @@ function aa({ steps: e = [], open: t, onClose: n, onFinish: r, onStepChange: i,
|
|
|
5660
5660
|
return;
|
|
5661
5661
|
}
|
|
5662
5662
|
if (e.key === "ArrowLeft") {
|
|
5663
|
-
e.preventDefault(), O ||
|
|
5663
|
+
e.preventDefault(), O || te();
|
|
5664
5664
|
return;
|
|
5665
5665
|
}
|
|
5666
5666
|
if (e.key === "Tab") {
|
|
@@ -5675,92 +5675,92 @@ function aa({ steps: e = [], open: t, onClose: n, onFinish: r, onStepChange: i,
|
|
|
5675
5675
|
e.shiftKey && document.activeElement === r ? (e.preventDefault(), i.focus()) : !e.shiftKey && document.activeElement === i && (e.preventDefault(), r.focus());
|
|
5676
5676
|
}
|
|
5677
5677
|
}, [
|
|
5678
|
-
F,
|
|
5679
|
-
N,
|
|
5680
5678
|
P,
|
|
5679
|
+
N,
|
|
5680
|
+
te,
|
|
5681
5681
|
O
|
|
5682
5682
|
]);
|
|
5683
5683
|
if (!f || !D) return null;
|
|
5684
|
-
let
|
|
5684
|
+
let F = window.innerWidth, re = window.innerHeight, I = c ? {
|
|
5685
5685
|
top: c.top - $i,
|
|
5686
5686
|
left: c.left - $i,
|
|
5687
5687
|
width: c.width + $i * 2,
|
|
5688
5688
|
height: c.height + $i * 2
|
|
5689
|
-
} : null,
|
|
5690
|
-
if (
|
|
5691
|
-
let e =
|
|
5692
|
-
|
|
5693
|
-
let n = ra(
|
|
5694
|
-
|
|
5695
|
-
top:
|
|
5689
|
+
} : null, ie, ae = "center";
|
|
5690
|
+
if (I) {
|
|
5691
|
+
let e = re - (I.top + I.height), t = e > 220 || e > I.top;
|
|
5692
|
+
ae = t ? "below" : "above";
|
|
5693
|
+
let n = ra(I.left + I.width / 2 - ta / 2, na, Math.max(na, F - ta - na));
|
|
5694
|
+
ie = t ? {
|
|
5695
|
+
top: I.top + I.height + ea,
|
|
5696
5696
|
left: n,
|
|
5697
5697
|
width: ta
|
|
5698
5698
|
} : {
|
|
5699
|
-
bottom:
|
|
5699
|
+
bottom: re - I.top + ea,
|
|
5700
5700
|
left: n,
|
|
5701
5701
|
width: ta
|
|
5702
5702
|
};
|
|
5703
|
-
} else
|
|
5703
|
+
} else ie = {
|
|
5704
5704
|
top: "50%",
|
|
5705
5705
|
left: "50%",
|
|
5706
5706
|
transform: "translate(-50%, -50%)",
|
|
5707
5707
|
width: ta
|
|
5708
5708
|
};
|
|
5709
|
-
return
|
|
5709
|
+
return Nt(/* @__PURE__ */ b("div", {
|
|
5710
5710
|
className: "tour-root",
|
|
5711
5711
|
role: "dialog",
|
|
5712
5712
|
"aria-modal": "true",
|
|
5713
5713
|
"aria-labelledby": a,
|
|
5714
|
-
onKeyDown:
|
|
5715
|
-
children: [
|
|
5714
|
+
onKeyDown: ne,
|
|
5715
|
+
children: [I ? /* @__PURE__ */ b(v, { children: [
|
|
5716
5716
|
/* @__PURE__ */ y("span", {
|
|
5717
5717
|
className: "tour-scrim",
|
|
5718
5718
|
"aria-hidden": "true",
|
|
5719
5719
|
style: {
|
|
5720
5720
|
top: 0,
|
|
5721
5721
|
left: 0,
|
|
5722
|
-
width:
|
|
5723
|
-
height: Math.max(0,
|
|
5722
|
+
width: F,
|
|
5723
|
+
height: Math.max(0, I.top)
|
|
5724
5724
|
}
|
|
5725
5725
|
}),
|
|
5726
5726
|
/* @__PURE__ */ y("span", {
|
|
5727
5727
|
className: "tour-scrim",
|
|
5728
5728
|
"aria-hidden": "true",
|
|
5729
5729
|
style: {
|
|
5730
|
-
top:
|
|
5730
|
+
top: I.top + I.height,
|
|
5731
5731
|
left: 0,
|
|
5732
|
-
width:
|
|
5733
|
-
height: Math.max(0,
|
|
5732
|
+
width: F,
|
|
5733
|
+
height: Math.max(0, re - (I.top + I.height))
|
|
5734
5734
|
}
|
|
5735
5735
|
}),
|
|
5736
5736
|
/* @__PURE__ */ y("span", {
|
|
5737
5737
|
className: "tour-scrim",
|
|
5738
5738
|
"aria-hidden": "true",
|
|
5739
5739
|
style: {
|
|
5740
|
-
top:
|
|
5740
|
+
top: I.top,
|
|
5741
5741
|
left: 0,
|
|
5742
|
-
width: Math.max(0,
|
|
5743
|
-
height:
|
|
5742
|
+
width: Math.max(0, I.left),
|
|
5743
|
+
height: I.height
|
|
5744
5744
|
}
|
|
5745
5745
|
}),
|
|
5746
5746
|
/* @__PURE__ */ y("span", {
|
|
5747
5747
|
className: "tour-scrim",
|
|
5748
5748
|
"aria-hidden": "true",
|
|
5749
5749
|
style: {
|
|
5750
|
-
top:
|
|
5751
|
-
left:
|
|
5752
|
-
width: Math.max(0,
|
|
5753
|
-
height:
|
|
5750
|
+
top: I.top,
|
|
5751
|
+
left: I.left + I.width,
|
|
5752
|
+
width: Math.max(0, F - (I.left + I.width)),
|
|
5753
|
+
height: I.height
|
|
5754
5754
|
}
|
|
5755
5755
|
}),
|
|
5756
5756
|
/* @__PURE__ */ y("span", {
|
|
5757
5757
|
className: "tour-ring",
|
|
5758
5758
|
"aria-hidden": "true",
|
|
5759
5759
|
style: {
|
|
5760
|
-
top:
|
|
5761
|
-
left:
|
|
5762
|
-
width:
|
|
5763
|
-
height:
|
|
5760
|
+
top: I.top,
|
|
5761
|
+
left: I.left,
|
|
5762
|
+
width: I.width,
|
|
5763
|
+
height: I.height
|
|
5764
5764
|
}
|
|
5765
5765
|
})
|
|
5766
5766
|
] }) : /* @__PURE__ */ y("span", {
|
|
@@ -5769,13 +5769,13 @@ function aa({ steps: e = [], open: t, onClose: n, onFinish: r, onStepChange: i,
|
|
|
5769
5769
|
style: {
|
|
5770
5770
|
top: 0,
|
|
5771
5771
|
left: 0,
|
|
5772
|
-
width:
|
|
5773
|
-
height:
|
|
5772
|
+
width: F,
|
|
5773
|
+
height: re
|
|
5774
5774
|
}
|
|
5775
5775
|
}), /* @__PURE__ */ b("div", {
|
|
5776
|
-
className: `tour-coach tour-coach--${
|
|
5776
|
+
className: `tour-coach tour-coach--${ae}`,
|
|
5777
5777
|
ref: S,
|
|
5778
|
-
style:
|
|
5778
|
+
style: ie,
|
|
5779
5779
|
tabIndex: -1,
|
|
5780
5780
|
children: [
|
|
5781
5781
|
/* @__PURE__ */ b("div", {
|
|
@@ -5792,7 +5792,7 @@ function aa({ steps: e = [], open: t, onClose: n, onFinish: r, onStepChange: i,
|
|
|
5792
5792
|
type: "button",
|
|
5793
5793
|
className: "tour-close",
|
|
5794
5794
|
"aria-label": "skip tour",
|
|
5795
|
-
onClick:
|
|
5795
|
+
onClick: P,
|
|
5796
5796
|
children: /* @__PURE__ */ y(_t, {
|
|
5797
5797
|
size: 16,
|
|
5798
5798
|
"aria-hidden": "true"
|
|
@@ -5821,7 +5821,7 @@ function aa({ steps: e = [], open: t, onClose: n, onFinish: r, onStepChange: i,
|
|
|
5821
5821
|
children: [/* @__PURE__ */ b("button", {
|
|
5822
5822
|
type: "button",
|
|
5823
5823
|
className: "tour-btn tour-btn--ghost",
|
|
5824
|
-
onClick:
|
|
5824
|
+
onClick: te,
|
|
5825
5825
|
disabled: O,
|
|
5826
5826
|
children: [/* @__PURE__ */ y(w, {
|
|
5827
5827
|
size: 16,
|
|
@@ -5851,13 +5851,13 @@ function aa({ steps: e = [], open: t, onClose: n, onFinish: r, onStepChange: i,
|
|
|
5851
5851
|
var oa = {
|
|
5852
5852
|
live: {
|
|
5853
5853
|
tone: "live",
|
|
5854
|
-
icon:
|
|
5854
|
+
icon: L,
|
|
5855
5855
|
word: "live",
|
|
5856
5856
|
note: "on this computer · no internet"
|
|
5857
5857
|
},
|
|
5858
5858
|
connecting: {
|
|
5859
5859
|
tone: "connecting",
|
|
5860
|
-
icon:
|
|
5860
|
+
icon: Ne,
|
|
5861
5861
|
word: "connecting",
|
|
5862
5862
|
note: "reaching the local program…"
|
|
5863
5863
|
},
|
|
@@ -5879,7 +5879,7 @@ function sa({ value: e, label: t = "copy" }) {
|
|
|
5879
5879
|
} catch {}
|
|
5880
5880
|
},
|
|
5881
5881
|
"aria-label": n ? "copied to clipboard" : `${t} command to clipboard`,
|
|
5882
|
-
children: [y(n ? j :
|
|
5882
|
+
children: [y(n ? j : le, { "aria-hidden": "true" }), /* @__PURE__ */ y("span", {
|
|
5883
5883
|
className: "cx-copy-label",
|
|
5884
5884
|
children: n ? "copied" : t
|
|
5885
5885
|
})]
|
|
@@ -5917,7 +5917,7 @@ function la({ onRetry: e, title: t, body: n }) {
|
|
|
5917
5917
|
role: "status",
|
|
5918
5918
|
"aria-live": "polite",
|
|
5919
5919
|
children: [
|
|
5920
|
-
/* @__PURE__ */ y(
|
|
5920
|
+
/* @__PURE__ */ y(Ke, {
|
|
5921
5921
|
className: "cx-panel-icon",
|
|
5922
5922
|
"aria-hidden": "true"
|
|
5923
5923
|
}),
|
|
@@ -5967,7 +5967,7 @@ function da({ status: e, loading: t = !1, error: n = !1, empty: r = !1, children
|
|
|
5967
5967
|
children: f
|
|
5968
5968
|
});
|
|
5969
5969
|
}
|
|
5970
|
-
function fa({ icon: e =
|
|
5970
|
+
function fa({ icon: e = L, title: t, body: n, command: r, privacy: i = "nothing leaves your machine", as: a = "h3", className: o = "", ...s }) {
|
|
5971
5971
|
return /* @__PURE__ */ b("div", {
|
|
5972
5972
|
className: ["cx-teach", o].filter(Boolean).join(" "),
|
|
5973
5973
|
...s,
|
|
@@ -6000,7 +6000,7 @@ function fa({ icon: e = R, title: t, body: n, command: r, privacy: i = "nothing
|
|
|
6000
6000
|
}),
|
|
6001
6001
|
i && /* @__PURE__ */ b("p", {
|
|
6002
6002
|
className: "cx-teach-privacy",
|
|
6003
|
-
children: [/* @__PURE__ */ y(
|
|
6003
|
+
children: [/* @__PURE__ */ y(Fe, {
|
|
6004
6004
|
className: "cx-teach-privacy-icon",
|
|
6005
6005
|
"aria-hidden": "true"
|
|
6006
6006
|
}), i]
|
|
@@ -6132,7 +6132,7 @@ var _a = /^[A-Za-z0-9][A-Za-z0-9-]{1,28}[A-Za-z0-9]$/, va = /* @__PURE__ */ new
|
|
|
6132
6132
|
]), ya = {
|
|
6133
6133
|
idle: null,
|
|
6134
6134
|
checking: {
|
|
6135
|
-
Icon:
|
|
6135
|
+
Icon: Pe,
|
|
6136
6136
|
word: "checking…",
|
|
6137
6137
|
tone: "si-state-checking",
|
|
6138
6138
|
spin: !0
|
|
@@ -6143,12 +6143,12 @@ var _a = /^[A-Za-z0-9][A-Za-z0-9-]{1,28}[A-Za-z0-9]$/, va = /* @__PURE__ */ new
|
|
|
6143
6143
|
tone: "si-state-ok"
|
|
6144
6144
|
},
|
|
6145
6145
|
taken: {
|
|
6146
|
-
Icon:
|
|
6146
|
+
Icon: ae,
|
|
6147
6147
|
word: "taken",
|
|
6148
6148
|
tone: "si-state-bad"
|
|
6149
6149
|
},
|
|
6150
6150
|
invalid: {
|
|
6151
|
-
Icon:
|
|
6151
|
+
Icon: I,
|
|
6152
6152
|
word: "invalid",
|
|
6153
6153
|
tone: "si-state-bad"
|
|
6154
6154
|
}
|
|
@@ -6355,7 +6355,7 @@ function Ta({ command: e, label: t, className: n = "", ...r }) {
|
|
|
6355
6355
|
onClick: o,
|
|
6356
6356
|
"aria-label": i ? `copied ${c}` : `copy ${c}`,
|
|
6357
6357
|
title: i ? "copied" : "copy command",
|
|
6358
|
-
children: [y(i ? j :
|
|
6358
|
+
children: [y(i ? j : le, {
|
|
6359
6359
|
className: "cli-copy-ic",
|
|
6360
6360
|
"aria-hidden": "true"
|
|
6361
6361
|
}), /* @__PURE__ */ y("span", {
|
|
@@ -6572,7 +6572,7 @@ function Pa({ order: e = "recent", onOrder: t, providers: n = [], activeProvider
|
|
|
6572
6572
|
"aria-label": "provider",
|
|
6573
6573
|
children: [/* @__PURE__ */ b("h3", {
|
|
6574
6574
|
className: "fr-heading",
|
|
6575
|
-
children: [/* @__PURE__ */ y(
|
|
6575
|
+
children: [/* @__PURE__ */ y(fe, {
|
|
6576
6576
|
className: "lucide fr-heading-ico",
|
|
6577
6577
|
"aria-hidden": "true"
|
|
6578
6578
|
}), /* @__PURE__ */ y("span", {
|
|
@@ -6754,12 +6754,12 @@ function za({ data: e = [], total: t, label: n = "provider distribution", classN
|
|
|
6754
6754
|
//#region src/ui/VisibilityControl.jsx
|
|
6755
6755
|
var Ba = {
|
|
6756
6756
|
public: {
|
|
6757
|
-
Icon:
|
|
6757
|
+
Icon: me,
|
|
6758
6758
|
word: "public",
|
|
6759
6759
|
noun: "public"
|
|
6760
6760
|
},
|
|
6761
6761
|
private: {
|
|
6762
|
-
Icon:
|
|
6762
|
+
Icon: he,
|
|
6763
6763
|
word: "private",
|
|
6764
6764
|
noun: "private"
|
|
6765
6765
|
},
|
|
@@ -6805,12 +6805,12 @@ function Ha({ visibility: e = "private", sharedWith: t, size: n = "md" }) {
|
|
|
6805
6805
|
}
|
|
6806
6806
|
var Ua = [{
|
|
6807
6807
|
value: "private",
|
|
6808
|
-
Icon:
|
|
6808
|
+
Icon: Fe,
|
|
6809
6809
|
label: "private",
|
|
6810
6810
|
desc: "Only you can view this."
|
|
6811
6811
|
}, {
|
|
6812
6812
|
value: "public",
|
|
6813
|
-
Icon:
|
|
6813
|
+
Icon: we,
|
|
6814
6814
|
label: "public",
|
|
6815
6815
|
desc: "Anyone with the link can view."
|
|
6816
6816
|
}];
|
|
@@ -6901,7 +6901,7 @@ function qa({ on: e = !1, onToggle: t }) {
|
|
|
6901
6901
|
"aria-pressed": e,
|
|
6902
6902
|
onClick: () => t?.(!e),
|
|
6903
6903
|
children: [
|
|
6904
|
-
/* @__PURE__ */ y(
|
|
6904
|
+
/* @__PURE__ */ y(xe, {
|
|
6905
6905
|
className: "vc-focus-icon",
|
|
6906
6906
|
"aria-hidden": "true"
|
|
6907
6907
|
}),
|
|
@@ -12587,13 +12587,13 @@ function Iu(e, t, n) {
|
|
|
12587
12587
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(t), d;
|
|
12588
12588
|
}
|
|
12589
12589
|
function d(s) {
|
|
12590
|
-
return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t :
|
|
12590
|
+
return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t : P) : fl(s) ? (e.consume(s), o = String.fromCharCode(s), g) : n(s);
|
|
12591
12591
|
}
|
|
12592
12592
|
function f(a) {
|
|
12593
|
-
return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : fl(a) ? (e.consume(a), i = 4, r.interrupt ? t :
|
|
12593
|
+
return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : fl(a) ? (e.consume(a), i = 4, r.interrupt ? t : P) : n(a);
|
|
12594
12594
|
}
|
|
12595
12595
|
function p(i) {
|
|
12596
|
-
return i === 45 ? (e.consume(i), r.interrupt ? t :
|
|
12596
|
+
return i === 45 ? (e.consume(i), r.interrupt ? t : P) : n(i);
|
|
12597
12597
|
}
|
|
12598
12598
|
function m(i) {
|
|
12599
12599
|
return i === "CDATA[".charCodeAt(s++) ? (e.consume(i), s === 6 ? r.interrupt ? t : O : m) : n(i);
|
|
@@ -12642,10 +12642,10 @@ function Iu(e, t, n) {
|
|
|
12642
12642
|
return t === null || Y(t) ? O(t) : Z(t) ? (e.consume(t), D) : n(t);
|
|
12643
12643
|
}
|
|
12644
12644
|
function O(t) {
|
|
12645
|
-
return t === 45 && i === 2 ? (e.consume(t), j) : t === 60 && i === 1 ? (e.consume(t), M) : t === 62 && i === 4 ? (e.consume(t),
|
|
12645
|
+
return t === 45 && i === 2 ? (e.consume(t), j) : t === 60 && i === 1 ? (e.consume(t), M) : t === 62 && i === 4 ? (e.consume(t), ne) : t === 63 && i === 3 ? (e.consume(t), P) : t === 93 && i === 5 ? (e.consume(t), te) : Y(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Nu, F, k)(t)) : t === null || Y(t) ? (e.exit("htmlFlowData"), k(t)) : (e.consume(t), O);
|
|
12646
12646
|
}
|
|
12647
12647
|
function k(t) {
|
|
12648
|
-
return e.check(Pu, A,
|
|
12648
|
+
return e.check(Pu, A, F)(t);
|
|
12649
12649
|
}
|
|
12650
12650
|
function A(t) {
|
|
12651
12651
|
return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), ee;
|
|
@@ -12654,7 +12654,7 @@ function Iu(e, t, n) {
|
|
|
12654
12654
|
return t === null || Y(t) ? k(t) : (e.enter("htmlFlowData"), O(t));
|
|
12655
12655
|
}
|
|
12656
12656
|
function j(t) {
|
|
12657
|
-
return t === 45 ? (e.consume(t),
|
|
12657
|
+
return t === 45 ? (e.consume(t), P) : O(t);
|
|
12658
12658
|
}
|
|
12659
12659
|
function M(t) {
|
|
12660
12660
|
return t === 47 ? (e.consume(t), o = "", N) : O(t);
|
|
@@ -12662,20 +12662,20 @@ function Iu(e, t, n) {
|
|
|
12662
12662
|
function N(t) {
|
|
12663
12663
|
if (t === 62) {
|
|
12664
12664
|
let n = o.toLowerCase();
|
|
12665
|
-
return ju.includes(n) ? (e.consume(t),
|
|
12665
|
+
return ju.includes(n) ? (e.consume(t), ne) : O(t);
|
|
12666
12666
|
}
|
|
12667
12667
|
return fl(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), N) : O(t);
|
|
12668
12668
|
}
|
|
12669
|
-
function
|
|
12670
|
-
return t === 93 ? (e.consume(t),
|
|
12669
|
+
function te(t) {
|
|
12670
|
+
return t === 93 ? (e.consume(t), P) : O(t);
|
|
12671
12671
|
}
|
|
12672
|
-
function
|
|
12673
|
-
return t === 62 ? (e.consume(t),
|
|
12672
|
+
function P(t) {
|
|
12673
|
+
return t === 62 ? (e.consume(t), ne) : t === 45 && i === 2 ? (e.consume(t), P) : O(t);
|
|
12674
12674
|
}
|
|
12675
|
-
function
|
|
12676
|
-
return t === null || Y(t) ? (e.exit("htmlFlowData"),
|
|
12675
|
+
function ne(t) {
|
|
12676
|
+
return t === null || Y(t) ? (e.exit("htmlFlowData"), F(t)) : (e.consume(t), ne);
|
|
12677
12677
|
}
|
|
12678
|
-
function
|
|
12678
|
+
function F(n) {
|
|
12679
12679
|
return e.exit("htmlFlow"), t(n);
|
|
12680
12680
|
}
|
|
12681
12681
|
}
|
|
@@ -12786,9 +12786,9 @@ function Bu(e, t, n) {
|
|
|
12786
12786
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), N;
|
|
12787
12787
|
}
|
|
12788
12788
|
function N(t) {
|
|
12789
|
-
return Z(t) ? Q(e,
|
|
12789
|
+
return Z(t) ? Q(e, te, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : te(t);
|
|
12790
12790
|
}
|
|
12791
|
-
function
|
|
12791
|
+
function te(t) {
|
|
12792
12792
|
return e.enter("htmlTextData"), o(t);
|
|
12793
12793
|
}
|
|
12794
12794
|
}
|
|
@@ -13574,60 +13574,60 @@ function qd(e) {
|
|
|
13574
13574
|
"strong"
|
|
13575
13575
|
],
|
|
13576
13576
|
enter: {
|
|
13577
|
-
autolink: a(
|
|
13577
|
+
autolink: a(ve),
|
|
13578
13578
|
autolinkProtocol: T,
|
|
13579
13579
|
autolinkEmail: T,
|
|
13580
|
-
atxHeading: a(
|
|
13581
|
-
blockQuote: a(
|
|
13580
|
+
atxHeading: a(me),
|
|
13581
|
+
blockQuote: a(le),
|
|
13582
13582
|
characterEscape: T,
|
|
13583
13583
|
characterReference: T,
|
|
13584
|
-
codeFenced: a(
|
|
13584
|
+
codeFenced: a(ue),
|
|
13585
13585
|
codeFencedFenceInfo: o,
|
|
13586
13586
|
codeFencedFenceMeta: o,
|
|
13587
|
-
codeIndented: a(
|
|
13588
|
-
codeText: a(
|
|
13587
|
+
codeIndented: a(ue, o),
|
|
13588
|
+
codeText: a(de, o),
|
|
13589
13589
|
codeTextData: T,
|
|
13590
13590
|
data: T,
|
|
13591
13591
|
codeFlowValue: T,
|
|
13592
|
-
definition: a(
|
|
13592
|
+
definition: a(fe),
|
|
13593
13593
|
definitionDestinationString: o,
|
|
13594
13594
|
definitionLabelString: o,
|
|
13595
13595
|
definitionTitleString: o,
|
|
13596
|
-
emphasis: a(
|
|
13597
|
-
hardBreakEscape: a(
|
|
13598
|
-
hardBreakTrailing: a(
|
|
13599
|
-
htmlFlow: a(
|
|
13596
|
+
emphasis: a(pe),
|
|
13597
|
+
hardBreakEscape: a(he),
|
|
13598
|
+
hardBreakTrailing: a(he),
|
|
13599
|
+
htmlFlow: a(ge, o),
|
|
13600
13600
|
htmlFlowData: T,
|
|
13601
|
-
htmlText: a(
|
|
13601
|
+
htmlText: a(ge, o),
|
|
13602
13602
|
htmlTextData: T,
|
|
13603
|
-
image: a(
|
|
13603
|
+
image: a(_e),
|
|
13604
13604
|
label: o,
|
|
13605
|
-
link: a(
|
|
13606
|
-
listItem: a(
|
|
13605
|
+
link: a(ve),
|
|
13606
|
+
listItem: a(be),
|
|
13607
13607
|
listItemValue: f,
|
|
13608
|
-
listOrdered: a(
|
|
13609
|
-
listUnordered: a(
|
|
13610
|
-
paragraph: a(
|
|
13611
|
-
reference:
|
|
13608
|
+
listOrdered: a(ye, d),
|
|
13609
|
+
listUnordered: a(ye),
|
|
13610
|
+
paragraph: a(xe),
|
|
13611
|
+
reference: re,
|
|
13612
13612
|
referenceString: o,
|
|
13613
13613
|
resourceDestinationString: o,
|
|
13614
13614
|
resourceTitleString: o,
|
|
13615
|
-
setextHeading: a(
|
|
13616
|
-
strong: a(
|
|
13617
|
-
thematicBreak: a(
|
|
13615
|
+
setextHeading: a(me),
|
|
13616
|
+
strong: a(Se),
|
|
13617
|
+
thematicBreak: a(we)
|
|
13618
13618
|
},
|
|
13619
13619
|
exit: {
|
|
13620
13620
|
atxHeading: c(),
|
|
13621
13621
|
atxHeadingSequence: x,
|
|
13622
13622
|
autolink: c(),
|
|
13623
|
-
autolinkEmail:
|
|
13624
|
-
autolinkProtocol:
|
|
13623
|
+
autolinkEmail: ce,
|
|
13624
|
+
autolinkProtocol: se,
|
|
13625
13625
|
blockQuote: c(),
|
|
13626
13626
|
characterEscapeValue: E,
|
|
13627
|
-
characterReferenceMarkerHexadecimal:
|
|
13628
|
-
characterReferenceMarkerNumeric:
|
|
13629
|
-
characterReferenceValue:
|
|
13630
|
-
characterReference:
|
|
13627
|
+
characterReferenceMarkerHexadecimal: ie,
|
|
13628
|
+
characterReferenceMarkerNumeric: ie,
|
|
13629
|
+
characterReferenceValue: ae,
|
|
13630
|
+
characterReference: oe,
|
|
13631
13631
|
codeFenced: c(g),
|
|
13632
13632
|
codeFencedFence: h,
|
|
13633
13633
|
codeFencedFenceInfo: p,
|
|
@@ -13649,7 +13649,7 @@ function qd(e) {
|
|
|
13649
13649
|
htmlText: c(A),
|
|
13650
13650
|
htmlTextData: E,
|
|
13651
13651
|
image: c(M),
|
|
13652
|
-
label:
|
|
13652
|
+
label: te,
|
|
13653
13653
|
labelText: N,
|
|
13654
13654
|
lineEnding: D,
|
|
13655
13655
|
link: c(j),
|
|
@@ -13657,10 +13657,10 @@ function qd(e) {
|
|
|
13657
13657
|
listOrdered: c(),
|
|
13658
13658
|
listUnordered: c(),
|
|
13659
13659
|
paragraph: c(),
|
|
13660
|
-
referenceString:
|
|
13661
|
-
resourceDestinationString:
|
|
13662
|
-
resourceTitleString:
|
|
13663
|
-
resource:
|
|
13660
|
+
referenceString: I,
|
|
13661
|
+
resourceDestinationString: P,
|
|
13662
|
+
resourceTitleString: ne,
|
|
13663
|
+
resource: F,
|
|
13664
13664
|
setextHeading: c(w),
|
|
13665
13665
|
setextHeadingLineSequence: C,
|
|
13666
13666
|
setextHeadingText: S,
|
|
@@ -13853,7 +13853,7 @@ function qd(e) {
|
|
|
13853
13853
|
}
|
|
13854
13854
|
function T(e) {
|
|
13855
13855
|
let t = this.stack[this.stack.length - 1].children, n = t[t.length - 1];
|
|
13856
|
-
(!n || n.type !== "text") && (n =
|
|
13856
|
+
(!n || n.type !== "text") && (n = Ce(), n.position = {
|
|
13857
13857
|
start: Jd(e.start),
|
|
13858
13858
|
end: void 0
|
|
13859
13859
|
}, t.push(n)), this.stack.push(n);
|
|
@@ -13906,58 +13906,58 @@ function qd(e) {
|
|
|
13906
13906
|
let t = this.sliceSerialize(e), n = this.stack[this.stack.length - 2];
|
|
13907
13907
|
n.label = Ud(t), n.identifier = bu(t).toLowerCase();
|
|
13908
13908
|
}
|
|
13909
|
-
function
|
|
13909
|
+
function te() {
|
|
13910
13910
|
let e = this.stack[this.stack.length - 1], t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
13911
13911
|
this.data.inReference = !0, n.type === "link" ? n.children = e.children : n.alt = t;
|
|
13912
13912
|
}
|
|
13913
|
-
function
|
|
13913
|
+
function P() {
|
|
13914
13914
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
13915
13915
|
t.url = e;
|
|
13916
13916
|
}
|
|
13917
|
-
function
|
|
13917
|
+
function ne() {
|
|
13918
13918
|
let e = this.resume(), t = this.stack[this.stack.length - 1];
|
|
13919
13919
|
t.title = e;
|
|
13920
13920
|
}
|
|
13921
|
-
function
|
|
13921
|
+
function F() {
|
|
13922
13922
|
this.data.inReference = void 0;
|
|
13923
13923
|
}
|
|
13924
|
-
function
|
|
13924
|
+
function re() {
|
|
13925
13925
|
this.data.referenceType = "collapsed";
|
|
13926
13926
|
}
|
|
13927
|
-
function
|
|
13927
|
+
function I(e) {
|
|
13928
13928
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
13929
13929
|
n.label = t, n.identifier = bu(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
|
|
13930
13930
|
}
|
|
13931
|
-
function
|
|
13931
|
+
function ie(e) {
|
|
13932
13932
|
this.data.characterReferenceType = e.type;
|
|
13933
13933
|
}
|
|
13934
|
-
function
|
|
13934
|
+
function ae(e) {
|
|
13935
13935
|
let t = this.sliceSerialize(e), n = this.data.characterReferenceType, r;
|
|
13936
13936
|
n ? (r = Vd(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : r = Kl(t);
|
|
13937
13937
|
let i = this.stack[this.stack.length - 1];
|
|
13938
13938
|
i.value += r;
|
|
13939
13939
|
}
|
|
13940
|
-
function
|
|
13940
|
+
function oe(e) {
|
|
13941
13941
|
let t = this.stack.pop();
|
|
13942
13942
|
t.position.end = Jd(e.end);
|
|
13943
13943
|
}
|
|
13944
|
-
function
|
|
13944
|
+
function se(e) {
|
|
13945
13945
|
E.call(this, e);
|
|
13946
13946
|
let t = this.stack[this.stack.length - 1];
|
|
13947
13947
|
t.url = this.sliceSerialize(e);
|
|
13948
13948
|
}
|
|
13949
|
-
function
|
|
13949
|
+
function ce(e) {
|
|
13950
13950
|
E.call(this, e);
|
|
13951
13951
|
let t = this.stack[this.stack.length - 1];
|
|
13952
13952
|
t.url = "mailto:" + this.sliceSerialize(e);
|
|
13953
13953
|
}
|
|
13954
|
-
function
|
|
13954
|
+
function le() {
|
|
13955
13955
|
return {
|
|
13956
13956
|
type: "blockquote",
|
|
13957
13957
|
children: []
|
|
13958
13958
|
};
|
|
13959
13959
|
}
|
|
13960
|
-
function
|
|
13960
|
+
function ue() {
|
|
13961
13961
|
return {
|
|
13962
13962
|
type: "code",
|
|
13963
13963
|
lang: null,
|
|
@@ -13965,13 +13965,13 @@ function qd(e) {
|
|
|
13965
13965
|
value: ""
|
|
13966
13966
|
};
|
|
13967
13967
|
}
|
|
13968
|
-
function
|
|
13968
|
+
function de() {
|
|
13969
13969
|
return {
|
|
13970
13970
|
type: "inlineCode",
|
|
13971
13971
|
value: ""
|
|
13972
13972
|
};
|
|
13973
13973
|
}
|
|
13974
|
-
function
|
|
13974
|
+
function fe() {
|
|
13975
13975
|
return {
|
|
13976
13976
|
type: "definition",
|
|
13977
13977
|
identifier: "",
|
|
@@ -13980,29 +13980,29 @@ function qd(e) {
|
|
|
13980
13980
|
url: ""
|
|
13981
13981
|
};
|
|
13982
13982
|
}
|
|
13983
|
-
function
|
|
13983
|
+
function pe() {
|
|
13984
13984
|
return {
|
|
13985
13985
|
type: "emphasis",
|
|
13986
13986
|
children: []
|
|
13987
13987
|
};
|
|
13988
13988
|
}
|
|
13989
|
-
function
|
|
13989
|
+
function me() {
|
|
13990
13990
|
return {
|
|
13991
13991
|
type: "heading",
|
|
13992
13992
|
depth: 0,
|
|
13993
13993
|
children: []
|
|
13994
13994
|
};
|
|
13995
13995
|
}
|
|
13996
|
-
function
|
|
13996
|
+
function he() {
|
|
13997
13997
|
return { type: "break" };
|
|
13998
13998
|
}
|
|
13999
|
-
function
|
|
13999
|
+
function ge() {
|
|
14000
14000
|
return {
|
|
14001
14001
|
type: "html",
|
|
14002
14002
|
value: ""
|
|
14003
14003
|
};
|
|
14004
14004
|
}
|
|
14005
|
-
function
|
|
14005
|
+
function _e() {
|
|
14006
14006
|
return {
|
|
14007
14007
|
type: "image",
|
|
14008
14008
|
title: null,
|
|
@@ -14010,7 +14010,7 @@ function qd(e) {
|
|
|
14010
14010
|
alt: null
|
|
14011
14011
|
};
|
|
14012
14012
|
}
|
|
14013
|
-
function
|
|
14013
|
+
function ve() {
|
|
14014
14014
|
return {
|
|
14015
14015
|
type: "link",
|
|
14016
14016
|
title: null,
|
|
@@ -14018,7 +14018,7 @@ function qd(e) {
|
|
|
14018
14018
|
children: []
|
|
14019
14019
|
};
|
|
14020
14020
|
}
|
|
14021
|
-
function
|
|
14021
|
+
function ye(e) {
|
|
14022
14022
|
return {
|
|
14023
14023
|
type: "list",
|
|
14024
14024
|
ordered: e.type === "listOrdered",
|
|
@@ -14027,7 +14027,7 @@ function qd(e) {
|
|
|
14027
14027
|
children: []
|
|
14028
14028
|
};
|
|
14029
14029
|
}
|
|
14030
|
-
function
|
|
14030
|
+
function be(e) {
|
|
14031
14031
|
return {
|
|
14032
14032
|
type: "listItem",
|
|
14033
14033
|
spread: e._spread,
|
|
@@ -14035,25 +14035,25 @@ function qd(e) {
|
|
|
14035
14035
|
children: []
|
|
14036
14036
|
};
|
|
14037
14037
|
}
|
|
14038
|
-
function
|
|
14038
|
+
function xe() {
|
|
14039
14039
|
return {
|
|
14040
14040
|
type: "paragraph",
|
|
14041
14041
|
children: []
|
|
14042
14042
|
};
|
|
14043
14043
|
}
|
|
14044
|
-
function
|
|
14044
|
+
function Se() {
|
|
14045
14045
|
return {
|
|
14046
14046
|
type: "strong",
|
|
14047
14047
|
children: []
|
|
14048
14048
|
};
|
|
14049
14049
|
}
|
|
14050
|
-
function
|
|
14050
|
+
function Ce() {
|
|
14051
14051
|
return {
|
|
14052
14052
|
type: "text",
|
|
14053
14053
|
value: ""
|
|
14054
14054
|
};
|
|
14055
14055
|
}
|
|
14056
|
-
function
|
|
14056
|
+
function we() {
|
|
14057
14057
|
return { type: "thematicBreak" };
|
|
14058
14058
|
}
|
|
14059
14059
|
}
|
|
@@ -17723,7 +17723,7 @@ function __({ block: e }) {
|
|
|
17723
17723
|
"aria-expanded": t,
|
|
17724
17724
|
onClick: () => n((e) => !e),
|
|
17725
17725
|
children: [
|
|
17726
|
-
y(t ? N :
|
|
17726
|
+
y(t ? N : P, {
|
|
17727
17727
|
size: 13,
|
|
17728
17728
|
"aria-hidden": "true"
|
|
17729
17729
|
}),
|
|
@@ -17781,7 +17781,7 @@ function y_({ entry: e, byTurn: t = !1, onJump: n }) {
|
|
|
17781
17781
|
children: [/* @__PURE__ */ b("div", {
|
|
17782
17782
|
className: "txn-de-head",
|
|
17783
17783
|
children: [
|
|
17784
|
-
/* @__PURE__ */ y(e.dels === 0 && e.hunks.every((e) => (e.lines ?? []).every((e) => e.sign === "add")) ?
|
|
17784
|
+
/* @__PURE__ */ y(e.dels === 0 && e.hunks.every((e) => (e.lines ?? []).every((e) => e.sign === "add")) ? ge : We, {
|
|
17785
17785
|
size: 14,
|
|
17786
17786
|
"aria-hidden": "true"
|
|
17787
17787
|
}),
|
|
@@ -17855,7 +17855,7 @@ function S_({ tool: e }) {
|
|
|
17855
17855
|
className: "txn-details-toggle",
|
|
17856
17856
|
"aria-expanded": t,
|
|
17857
17857
|
onClick: () => n((e) => !e),
|
|
17858
|
-
children: [y(t ? N :
|
|
17858
|
+
children: [y(t ? N : P, {
|
|
17859
17859
|
size: 13,
|
|
17860
17860
|
"aria-hidden": "true"
|
|
17861
17861
|
}), " result"]
|
|
@@ -17955,7 +17955,7 @@ function O_({ tool: e }) {
|
|
|
17955
17955
|
children: [s && /* @__PURE__ */ b("span", {
|
|
17956
17956
|
className: "txn-durbadge tnum",
|
|
17957
17957
|
children: [
|
|
17958
|
-
/* @__PURE__ */ y(
|
|
17958
|
+
/* @__PURE__ */ y(se, {
|
|
17959
17959
|
size: 12,
|
|
17960
17960
|
"aria-hidden": "true"
|
|
17961
17961
|
}),
|
|
@@ -18020,7 +18020,7 @@ function A_({ tool: e }) {
|
|
|
18020
18020
|
target: "_blank",
|
|
18021
18021
|
rel: "noreferrer",
|
|
18022
18022
|
children: [
|
|
18023
|
-
/* @__PURE__ */ y(
|
|
18023
|
+
/* @__PURE__ */ y(we, {
|
|
18024
18024
|
size: 13,
|
|
18025
18025
|
"aria-hidden": "true"
|
|
18026
18026
|
}),
|
|
@@ -18079,11 +18079,11 @@ function M_({ tool: e }) {
|
|
|
18079
18079
|
//#region src/ui/transcript/ToolCall.jsx
|
|
18080
18080
|
var N_ = {
|
|
18081
18081
|
read: O,
|
|
18082
|
-
edits:
|
|
18082
|
+
edits: We,
|
|
18083
18083
|
bash: ct,
|
|
18084
18084
|
search: Xe,
|
|
18085
|
-
fetch:
|
|
18086
|
-
tasks:
|
|
18085
|
+
fetch: we,
|
|
18086
|
+
tasks: je,
|
|
18087
18087
|
other: gt
|
|
18088
18088
|
};
|
|
18089
18089
|
function P_(e) {
|
|
@@ -18091,7 +18091,7 @@ function P_(e) {
|
|
|
18091
18091
|
}
|
|
18092
18092
|
function F_({ tool: e, open: t = !1, onToggle: n }) {
|
|
18093
18093
|
if (!e) return null;
|
|
18094
|
-
let r = e.group === "edits" && /^write$/i.test(e.name) ?
|
|
18094
|
+
let r = e.group === "edits" && /^write$/i.test(e.name) ? ge : N_[e.group] || gt, i = e.group === "bash" && e.exitCode != null && e.exitCode !== 0, a = P_(e.durationMs);
|
|
18095
18095
|
return /* @__PURE__ */ b("div", {
|
|
18096
18096
|
className: "toolcall txn-toolcall",
|
|
18097
18097
|
children: [/* @__PURE__ */ b("button", {
|
|
@@ -18100,7 +18100,7 @@ function F_({ tool: e, open: t = !1, onToggle: n }) {
|
|
|
18100
18100
|
"aria-expanded": t,
|
|
18101
18101
|
onClick: n,
|
|
18102
18102
|
children: [
|
|
18103
|
-
y(t ? N :
|
|
18103
|
+
y(t ? N : P, {
|
|
18104
18104
|
size: 13,
|
|
18105
18105
|
"aria-hidden": "true",
|
|
18106
18106
|
className: "txn-tc-chev"
|
|
@@ -18166,7 +18166,7 @@ function R_({ turn: e, active: i = !1, openTools: a = {}, toggleTool: o = () =>
|
|
|
18166
18166
|
harness: _,
|
|
18167
18167
|
accent: !0,
|
|
18168
18168
|
label: S
|
|
18169
|
-
}) : y(g ?
|
|
18169
|
+
}) : y(g ? de : h ? ft : gt, {
|
|
18170
18170
|
size: 14,
|
|
18171
18171
|
"aria-hidden": "true"
|
|
18172
18172
|
}), C]
|
|
@@ -18195,7 +18195,7 @@ function R_({ turn: e, active: i = !1, openTools: a = {}, toggleTool: o = () =>
|
|
|
18195
18195
|
"aria-label": "copy link to turn " + e.label,
|
|
18196
18196
|
title: "copy link to this turn",
|
|
18197
18197
|
onClick: () => s(e.index),
|
|
18198
|
-
children: y(c ? j :
|
|
18198
|
+
children: y(c ? j : ke, {
|
|
18199
18199
|
size: 13,
|
|
18200
18200
|
"aria-hidden": "true"
|
|
18201
18201
|
})
|
|
@@ -18217,7 +18217,7 @@ function R_({ turn: e, active: i = !1, openTools: a = {}, toggleTool: o = () =>
|
|
|
18217
18217
|
className: "txn-tokbadge tnum",
|
|
18218
18218
|
title: I_(e.tokens.in) + " in · " + I_(e.tokens.out) + " out",
|
|
18219
18219
|
children: [
|
|
18220
|
-
/* @__PURE__ */ y(
|
|
18220
|
+
/* @__PURE__ */ y(ce, {
|
|
18221
18221
|
size: 12,
|
|
18222
18222
|
"aria-hidden": "true"
|
|
18223
18223
|
}),
|
|
@@ -18263,7 +18263,7 @@ function R_({ turn: e, active: i = !1, openTools: a = {}, toggleTool: o = () =>
|
|
|
18263
18263
|
/* @__PURE__ */ b("div", {
|
|
18264
18264
|
className: "subtask-head",
|
|
18265
18265
|
children: [
|
|
18266
|
-
/* @__PURE__ */ y(
|
|
18266
|
+
/* @__PURE__ */ y(de, {
|
|
18267
18267
|
size: 13,
|
|
18268
18268
|
"aria-hidden": "true"
|
|
18269
18269
|
}),
|
|
@@ -18283,7 +18283,7 @@ function R_({ turn: e, active: i = !1, openTools: a = {}, toggleTool: o = () =>
|
|
|
18283
18283
|
className: "subtask-foot",
|
|
18284
18284
|
children: /* @__PURE__ */ b("span", {
|
|
18285
18285
|
className: "elbow",
|
|
18286
|
-
children: [/* @__PURE__ */ y(
|
|
18286
|
+
children: [/* @__PURE__ */ y(de, {
|
|
18287
18287
|
size: 13,
|
|
18288
18288
|
"aria-hidden": "true"
|
|
18289
18289
|
}), " returned to claude"]
|
|
@@ -18299,10 +18299,10 @@ function R_({ turn: e, active: i = !1, openTools: a = {}, toggleTool: o = () =>
|
|
|
18299
18299
|
//#endregion
|
|
18300
18300
|
//#region src/ui/transcript/OutlineRail.jsx
|
|
18301
18301
|
var z_ = {
|
|
18302
|
-
request:
|
|
18303
|
-
phase:
|
|
18302
|
+
request: Ge,
|
|
18303
|
+
phase: be,
|
|
18304
18304
|
error: x,
|
|
18305
|
-
checkpoint:
|
|
18305
|
+
checkpoint: Ce,
|
|
18306
18306
|
final: at
|
|
18307
18307
|
}, B_ = {
|
|
18308
18308
|
error: {
|
|
@@ -18312,17 +18312,17 @@ var z_ = {
|
|
|
18312
18312
|
},
|
|
18313
18313
|
retry: {
|
|
18314
18314
|
label: "retry",
|
|
18315
|
-
icon:
|
|
18315
|
+
icon: Je,
|
|
18316
18316
|
tip: "the same tool ran 3+ times within 5 turns"
|
|
18317
18317
|
},
|
|
18318
18318
|
revert: {
|
|
18319
18319
|
label: "reverted edit",
|
|
18320
|
-
icon:
|
|
18320
|
+
icon: z,
|
|
18321
18321
|
tip: "a file was edited again after an earlier change"
|
|
18322
18322
|
},
|
|
18323
18323
|
subagent: {
|
|
18324
18324
|
label: "subagent",
|
|
18325
|
-
icon:
|
|
18325
|
+
icon: de,
|
|
18326
18326
|
tip: "a Task spawned a nested subagent at depth > 0"
|
|
18327
18327
|
}
|
|
18328
18328
|
}, V_ = [
|
|
@@ -18340,7 +18340,7 @@ function H_({ viewModel: e, tab: t, onJump: n = () => {} }) {
|
|
|
18340
18340
|
className: "txn-ol-row",
|
|
18341
18341
|
onClick: () => n(e.turn ?? 0),
|
|
18342
18342
|
children: [
|
|
18343
|
-
/* @__PURE__ */ y(
|
|
18343
|
+
/* @__PURE__ */ y(We, {
|
|
18344
18344
|
size: 13,
|
|
18345
18345
|
"aria-hidden": "true"
|
|
18346
18346
|
}),
|
|
@@ -18371,7 +18371,7 @@ function H_({ viewModel: e, tab: t, onJump: n = () => {} }) {
|
|
|
18371
18371
|
className: "txn-ol-row",
|
|
18372
18372
|
onClick: () => n(e.turn ?? 0),
|
|
18373
18373
|
children: [
|
|
18374
|
-
/* @__PURE__ */ y(
|
|
18374
|
+
/* @__PURE__ */ y(ve, {
|
|
18375
18375
|
size: 13,
|
|
18376
18376
|
"aria-hidden": "true"
|
|
18377
18377
|
}),
|
|
@@ -18395,7 +18395,7 @@ function H_({ viewModel: e, tab: t, onJump: n = () => {} }) {
|
|
|
18395
18395
|
}) : t === "highlights" ? /* @__PURE__ */ y("ul", {
|
|
18396
18396
|
className: "txn-outline",
|
|
18397
18397
|
children: i.map((e) => {
|
|
18398
|
-
let t = z_[e.kind] ??
|
|
18398
|
+
let t = z_[e.kind] ?? P, r = e.kind === "checkpoint";
|
|
18399
18399
|
return /* @__PURE__ */ y("li", { children: /* @__PURE__ */ b("button", {
|
|
18400
18400
|
type: "button",
|
|
18401
18401
|
className: "txn-ol-row",
|
|
@@ -18476,7 +18476,7 @@ function U_({ title: e, children: t, defaultOpen: n = !0 }) {
|
|
|
18476
18476
|
"aria-expanded": r,
|
|
18477
18477
|
onClick: () => i((e) => !e),
|
|
18478
18478
|
children: [
|
|
18479
|
-
y(r ? N :
|
|
18479
|
+
y(r ? N : P, {
|
|
18480
18480
|
size: 13,
|
|
18481
18481
|
"aria-hidden": "true"
|
|
18482
18482
|
}),
|
|
@@ -18543,7 +18543,7 @@ function G_({ label: e = "", on: t = !1, onToggle: n = () => {} }) {
|
|
|
18543
18543
|
var K_ = {
|
|
18544
18544
|
edits: {
|
|
18545
18545
|
label: "file edits",
|
|
18546
|
-
icon:
|
|
18546
|
+
icon: We
|
|
18547
18547
|
},
|
|
18548
18548
|
bash: {
|
|
18549
18549
|
label: "bash",
|
|
@@ -18559,11 +18559,11 @@ var K_ = {
|
|
|
18559
18559
|
},
|
|
18560
18560
|
fetch: {
|
|
18561
18561
|
label: "fetch",
|
|
18562
|
-
icon:
|
|
18562
|
+
icon: we
|
|
18563
18563
|
},
|
|
18564
18564
|
tasks: {
|
|
18565
18565
|
label: "tasks",
|
|
18566
|
-
icon:
|
|
18566
|
+
icon: je
|
|
18567
18567
|
},
|
|
18568
18568
|
other: {
|
|
18569
18569
|
label: "other",
|
|
@@ -18704,7 +18704,7 @@ function J_({ tab: e, filters: t = q_, onFiltersChange: n = () => {}, counts: r
|
|
|
18704
18704
|
onClick: (e) => {
|
|
18705
18705
|
e.preventDefault(), u((e) => !e);
|
|
18706
18706
|
},
|
|
18707
|
-
children: ["tool calls ", y(l ? N :
|
|
18707
|
+
children: ["tool calls ", y(l ? N : P, {
|
|
18708
18708
|
size: 12,
|
|
18709
18709
|
"aria-hidden": "true"
|
|
18710
18710
|
})]
|
|
@@ -18765,7 +18765,7 @@ function J_({ tab: e, filters: t = q_, onFiltersChange: n = () => {}, counts: r
|
|
|
18765
18765
|
/* @__PURE__ */ b(W_, {
|
|
18766
18766
|
checked: h.retries,
|
|
18767
18767
|
onChange: () => T({ retries: !h.retries }),
|
|
18768
|
-
children: [/* @__PURE__ */ y(
|
|
18768
|
+
children: [/* @__PURE__ */ y(Je, {
|
|
18769
18769
|
size: 13,
|
|
18770
18770
|
"aria-hidden": "true"
|
|
18771
18771
|
}), " retries"]
|
|
@@ -18773,7 +18773,7 @@ function J_({ tab: e, filters: t = q_, onFiltersChange: n = () => {}, counts: r
|
|
|
18773
18773
|
/* @__PURE__ */ b(W_, {
|
|
18774
18774
|
checked: h.revert,
|
|
18775
18775
|
onChange: () => T({ revert: !h.revert }),
|
|
18776
|
-
children: [/* @__PURE__ */ y(
|
|
18776
|
+
children: [/* @__PURE__ */ y(z, {
|
|
18777
18777
|
size: 13,
|
|
18778
18778
|
"aria-hidden": "true"
|
|
18779
18779
|
}), " re-edit"]
|
|
@@ -18950,9 +18950,9 @@ var X_ = {
|
|
|
18950
18950
|
chip: "chip-err"
|
|
18951
18951
|
}
|
|
18952
18952
|
}, Z_ = {
|
|
18953
|
-
token:
|
|
18954
|
-
prompt:
|
|
18955
|
-
loop:
|
|
18953
|
+
token: ce,
|
|
18954
|
+
prompt: ve,
|
|
18955
|
+
loop: Je
|
|
18956
18956
|
};
|
|
18957
18957
|
function Q_({ bands: e = [] }) {
|
|
18958
18958
|
return !e || e.length === 0 ? null : /* @__PURE__ */ b("div", {
|
|
@@ -19049,7 +19049,7 @@ function tv({ turnId: e, current: t, onSave: n = () => {}, onClose: r = () => {}
|
|
|
19049
19049
|
children: [
|
|
19050
19050
|
/* @__PURE__ */ b("div", {
|
|
19051
19051
|
className: "pop-head",
|
|
19052
|
-
children: [/* @__PURE__ */ y(
|
|
19052
|
+
children: [/* @__PURE__ */ y(be, {
|
|
19053
19053
|
size: 14,
|
|
19054
19054
|
"aria-hidden": "true"
|
|
19055
19055
|
}), /* @__PURE__ */ b("span", {
|
|
@@ -19270,31 +19270,31 @@ function yv(e, t, n) {
|
|
|
19270
19270
|
r
|
|
19271
19271
|
])];
|
|
19272
19272
|
}
|
|
19273
|
-
var bv = [
|
|
19273
|
+
var bv = 56, xv = [
|
|
19274
19274
|
"highlights",
|
|
19275
19275
|
"trace",
|
|
19276
19276
|
"diffs",
|
|
19277
19277
|
"files",
|
|
19278
19278
|
"annotations"
|
|
19279
|
-
],
|
|
19279
|
+
], Sv = {
|
|
19280
19280
|
highlights: "highlights",
|
|
19281
19281
|
trace: "full trace",
|
|
19282
19282
|
diffs: "diffs",
|
|
19283
19283
|
files: "files",
|
|
19284
19284
|
annotations: "annotations"
|
|
19285
|
-
},
|
|
19286
|
-
exploration:
|
|
19285
|
+
}, Cv = {
|
|
19286
|
+
exploration: _e,
|
|
19287
19287
|
debugging: x,
|
|
19288
|
-
implementation:
|
|
19289
|
-
planning:
|
|
19288
|
+
implementation: We,
|
|
19289
|
+
planning: Me,
|
|
19290
19290
|
review: nt
|
|
19291
|
-
},
|
|
19292
|
-
request:
|
|
19293
|
-
phase:
|
|
19291
|
+
}, wv = {
|
|
19292
|
+
request: Ge,
|
|
19293
|
+
phase: be,
|
|
19294
19294
|
error: x,
|
|
19295
|
-
checkpoint:
|
|
19295
|
+
checkpoint: Ce,
|
|
19296
19296
|
final: at
|
|
19297
|
-
},
|
|
19297
|
+
}, Tv = {
|
|
19298
19298
|
error: {
|
|
19299
19299
|
label: "error",
|
|
19300
19300
|
icon: x,
|
|
@@ -19303,23 +19303,23 @@ var bv = [
|
|
|
19303
19303
|
},
|
|
19304
19304
|
retry: {
|
|
19305
19305
|
label: "retry",
|
|
19306
|
-
icon:
|
|
19306
|
+
icon: Je,
|
|
19307
19307
|
chip: "chip-warn",
|
|
19308
19308
|
tip: "the same tool ran 3+ times within 5 turns"
|
|
19309
19309
|
},
|
|
19310
19310
|
revert: {
|
|
19311
19311
|
label: "reverted edit",
|
|
19312
|
-
icon:
|
|
19312
|
+
icon: z,
|
|
19313
19313
|
chip: "chip-warn",
|
|
19314
19314
|
tip: "a file was edited again after an earlier change"
|
|
19315
19315
|
},
|
|
19316
19316
|
subagent: {
|
|
19317
19317
|
label: "subagent",
|
|
19318
|
-
icon:
|
|
19318
|
+
icon: de,
|
|
19319
19319
|
chip: "",
|
|
19320
19320
|
tip: "a Task spawned a nested subagent at depth > 0"
|
|
19321
19321
|
}
|
|
19322
|
-
},
|
|
19322
|
+
}, Ev = Object.freeze({
|
|
19323
19323
|
categories: {
|
|
19324
19324
|
prompts: !0,
|
|
19325
19325
|
responses: !0,
|
|
@@ -19339,13 +19339,13 @@ var bv = [
|
|
|
19339
19339
|
},
|
|
19340
19340
|
checkpoint: "all"
|
|
19341
19341
|
});
|
|
19342
|
-
function
|
|
19342
|
+
function Dv({ phase: e }) {
|
|
19343
19343
|
return /* @__PURE__ */ b("div", {
|
|
19344
19344
|
className: "phase txn-phase",
|
|
19345
19345
|
children: [/* @__PURE__ */ b("span", {
|
|
19346
19346
|
className: "lbl",
|
|
19347
19347
|
children: [
|
|
19348
|
-
/* @__PURE__ */ y(
|
|
19348
|
+
/* @__PURE__ */ y(Cv[e.icon] ?? Cv[e.id] ?? be, {
|
|
19349
19349
|
size: 14,
|
|
19350
19350
|
"aria-hidden": "true"
|
|
19351
19351
|
}),
|
|
@@ -19364,7 +19364,7 @@ function Ev({ phase: e }) {
|
|
|
19364
19364
|
})]
|
|
19365
19365
|
});
|
|
19366
19366
|
}
|
|
19367
|
-
function
|
|
19367
|
+
function Ov({ task: e }) {
|
|
19368
19368
|
let t = [
|
|
19369
19369
|
e.durationMs ? vi(e.durationMs) : null,
|
|
19370
19370
|
e.tools == null ? null : `${e.tools} tools`,
|
|
@@ -19381,7 +19381,7 @@ function Dv({ task: e }) {
|
|
|
19381
19381
|
})]
|
|
19382
19382
|
});
|
|
19383
19383
|
}
|
|
19384
|
-
function
|
|
19384
|
+
function kv({ commit: e }) {
|
|
19385
19385
|
let t = e.adds != null || e.dels != null || e.files != null ? `+${e.adds ?? 0} −${e.dels ?? 0}${e.files == null ? "" : ` · ${e.files} files`}` : null;
|
|
19386
19386
|
return /* @__PURE__ */ b("div", {
|
|
19387
19387
|
className: "marker txn-checkpoint",
|
|
@@ -19390,7 +19390,7 @@ function Ov({ commit: e }) {
|
|
|
19390
19390
|
/* @__PURE__ */ b("span", {
|
|
19391
19391
|
className: "mkc",
|
|
19392
19392
|
children: [
|
|
19393
|
-
/* @__PURE__ */ y(
|
|
19393
|
+
/* @__PURE__ */ y(Ce, {
|
|
19394
19394
|
size: 14,
|
|
19395
19395
|
"aria-hidden": "true"
|
|
19396
19396
|
}),
|
|
@@ -19412,31 +19412,31 @@ function Ov({ commit: e }) {
|
|
|
19412
19412
|
]
|
|
19413
19413
|
});
|
|
19414
19414
|
}
|
|
19415
|
-
function
|
|
19416
|
-
let
|
|
19415
|
+
function Av({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThemeChange: o, graphSlot: s, activeTab: c, onTabChange: u, viewMode: f, onViewModeChange: h, leftRailOpen: S, onLeftRailOpenChange: C, rightRailOpen: w, onRightRailOpenChange: T, openTools: E, onOpenToolsChange: D, initialPosition: O, activeTurn: k, onActiveTurnChange: A, search: ee, onSearchChange: M, filters: te, onFiltersChange: F, savedLabels: re, onSavedLabelsChange: I, shareOpen: ie, onShareOpenChange: ae, moreOpen: oe, onMoreOpenChange: le, breadcrumb: ue, LinkComponent: de, renderTurnPanel: fe, renderTurnActions: he, anchorHref: ge, headerActions: _e, streamPrelude: be }) {
|
|
19416
|
+
let xe = e, Se = t ?? {}, [we] = yv(i, o, "dark"), [L, Te] = yv(c, u, "trace"), [R, Ee] = yv(f, h, "list"), [De, je] = yv(S, C, !0), [Ne, Pe] = yv(w, T, !0), [Fe, Le] = yv(E, D, {}), [Ge, Ke] = yv(k, A, xe?.turns?.[0]?.index ?? 0), [qe, Je] = yv(ee, M, ""), [z, Ye] = yv(te, F, Ev), [Ze, Qe] = yv(re, I, {}), [$e, tt] = yv(ie, ae, !1), [rt, ot] = yv(oe, le, !1), [st, ct] = _(null), [lt, ut] = _(!1), [dt, pt] = _(null), [ht, vt] = _(!1), [yt, bt] = _(!1), xt = yt && L === "trace" && R === "list", [St, Ct] = _(!1), [wt, Tt] = _(0), [Et, Dt] = _("file"), [Ot, kt] = _({}), [At, jt] = _({
|
|
19417
19417
|
key: "path",
|
|
19418
19418
|
dir: "asc"
|
|
19419
|
-
}), [
|
|
19420
|
-
t ?
|
|
19421
|
-
}, []),
|
|
19422
|
-
...
|
|
19423
|
-
[e]: !
|
|
19424
|
-
}),
|
|
19419
|
+
}), [Mt, Nt] = _(null), B = xe?.session ?? {}, V = xe?.turns ?? [], Pt = g({}), Ft = g(null), It = g(null), Lt = g(0), Rt = g(null), zt = g(!1), Bt = g({}), Vt = g(0), Ht = g(null), Ut = g(null), Wt = g(!1), Gt = g(L), Kt = g(B?.id ?? ""), qt = l((e, t) => {
|
|
19420
|
+
t ? Pt.current[e] = t : delete Pt.current[e];
|
|
19421
|
+
}, []), Jt = (e) => Le({
|
|
19422
|
+
...Fe,
|
|
19423
|
+
[e]: !Fe[e]
|
|
19424
|
+
}), Yt = xe?.analytics?.phases ?? [], Xt = xe?.tasks ?? [], Zt = xe?.files ?? [], Qt = xe?.diffs ?? [], $t = xe?.highlights ?? [], en = xe?.analytics?.scorecardBands ?? [], tn = B?.git?.commits ?? [], nn = xe?.analytics?.patternAnnotations ?? V.flatMap((e) => e.annotations ?? []), rn = xe?.filterIndex?.toolGroupCounts ?? {}, an = V.find((e) => e.index === Ge)?.effectiveModel, on = m(() => {
|
|
19425
19425
|
let e = /* @__PURE__ */ new Map();
|
|
19426
|
-
for (let t of
|
|
19426
|
+
for (let t of Xt) {
|
|
19427
19427
|
let n = t.turnIndices?.[0];
|
|
19428
19428
|
n != null && e.set(n, t);
|
|
19429
19429
|
}
|
|
19430
19430
|
return e;
|
|
19431
|
-
}, [
|
|
19432
|
-
let { categories: e, tags: t, checkpoint: n } =
|
|
19431
|
+
}, [Xt]), sn = !!Se.canLabel, cn = sn ? (e) => pt(e) : void 0, H = m(() => {
|
|
19432
|
+
let { categories: e, tags: t, checkpoint: n } = z, r = (n === "all" ? null : tn.find((e) => e.shortHash === n || e.hash === n))?.turn;
|
|
19433
19433
|
return V.filter((n) => !(n.role === "user" && !e.prompts || n.role === "assistant" && !e.responses || t.errors && !n.isError && !(n.toolCalls && n.toolCalls.some((e) => e.isError)) || r != null && n.index > r));
|
|
19434
19434
|
}, [
|
|
19435
19435
|
V,
|
|
19436
|
-
|
|
19437
|
-
|
|
19438
|
-
]),
|
|
19439
|
-
let e =
|
|
19436
|
+
z,
|
|
19437
|
+
tn
|
|
19438
|
+
]), ln = l(() => {
|
|
19439
|
+
let e = Ft.current;
|
|
19440
19440
|
if (!e) return null;
|
|
19441
19441
|
let t = typeof document < "u" ? document.activeElement : null, n = t instanceof Element ? t.closest(".txn-anchor[data-turn-control]") : null;
|
|
19442
19442
|
return {
|
|
@@ -19448,101 +19448,101 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19448
19448
|
control: "anchor"
|
|
19449
19449
|
} : t === e ? { kind: "scroller" } : { kind: "tab" }
|
|
19450
19450
|
};
|
|
19451
|
-
}, [B?.id]),
|
|
19452
|
-
if (!e || e.sessionId !== (B?.id ?? "") ||
|
|
19453
|
-
|
|
19451
|
+
}, [B?.id]), un = l((e) => {
|
|
19452
|
+
if (!e || e.sessionId !== (B?.id ?? "") || Ut.current != null) return;
|
|
19453
|
+
Vt.current += 1;
|
|
19454
19454
|
let t = {
|
|
19455
19455
|
...e,
|
|
19456
|
-
requestKey: `trace-reading-position-${
|
|
19456
|
+
requestKey: `trace-reading-position-${Vt.current}`,
|
|
19457
19457
|
restoreRequested: !1
|
|
19458
19458
|
};
|
|
19459
|
-
|
|
19460
|
-
}, [B?.id]),
|
|
19461
|
-
|
|
19459
|
+
Ut.current = t, Nt(t);
|
|
19460
|
+
}, [B?.id]), dn = l(() => {
|
|
19461
|
+
L !== "trace" || R !== "list" || un(ln());
|
|
19462
19462
|
}, [
|
|
19463
|
-
|
|
19464
|
-
|
|
19465
|
-
|
|
19466
|
-
|
|
19467
|
-
]),
|
|
19468
|
-
let e =
|
|
19463
|
+
un,
|
|
19464
|
+
ln,
|
|
19465
|
+
L,
|
|
19466
|
+
R
|
|
19467
|
+
]), fn = l(() => {
|
|
19468
|
+
let e = Ut.current;
|
|
19469
19469
|
if (!e || e.sessionId !== (B?.id ?? "") || e.restoreRequested) return;
|
|
19470
19470
|
let t = {
|
|
19471
19471
|
...e,
|
|
19472
19472
|
restoreRequested: !0
|
|
19473
19473
|
};
|
|
19474
|
-
|
|
19475
|
-
}, [B?.id,
|
|
19474
|
+
Ut.current = t, Nt(t), Ee("list");
|
|
19475
|
+
}, [B?.id, Ee]);
|
|
19476
19476
|
p(() => {
|
|
19477
19477
|
let e = B?.id ?? "";
|
|
19478
|
-
|
|
19479
|
-
}, [B?.id,
|
|
19480
|
-
if (
|
|
19481
|
-
let e =
|
|
19482
|
-
e && (
|
|
19478
|
+
Kt.current !== e && (Kt.current = e, Ht.current = null, Ut.current = null, Vt.current = 0, Wt.current = !1, Gt.current = L, Nt(null));
|
|
19479
|
+
}, [B?.id, L]), p(() => {
|
|
19480
|
+
if (L !== "trace" || R !== "list") return;
|
|
19481
|
+
let e = ln();
|
|
19482
|
+
e && (Ht.current = e);
|
|
19483
19483
|
}, [
|
|
19484
|
-
|
|
19484
|
+
ln,
|
|
19485
|
+
L,
|
|
19485
19486
|
R,
|
|
19486
|
-
z,
|
|
19487
19487
|
H
|
|
19488
19488
|
]), p(() => {
|
|
19489
|
-
|
|
19489
|
+
Gt.current === "trace" && L !== "trace" ? un(Ht.current) : Gt.current !== "trace" && L === "trace" && c !== void 0 && (Wt.current ? Wt.current = !1 : fn()), Gt.current = L;
|
|
19490
19490
|
}, [
|
|
19491
19491
|
c,
|
|
19492
|
-
|
|
19493
|
-
|
|
19494
|
-
|
|
19492
|
+
un,
|
|
19493
|
+
fn,
|
|
19494
|
+
L
|
|
19495
19495
|
]);
|
|
19496
|
-
let
|
|
19497
|
-
e === "trace" ?
|
|
19496
|
+
let pn = l((e) => {
|
|
19497
|
+
e === "trace" ? fn() : dn(), Te(e);
|
|
19498
19498
|
}, [
|
|
19499
|
-
|
|
19500
|
-
|
|
19501
|
-
|
|
19502
|
-
]),
|
|
19503
|
-
let t =
|
|
19499
|
+
dn,
|
|
19500
|
+
fn,
|
|
19501
|
+
Te
|
|
19502
|
+
]), mn = l((e) => {
|
|
19503
|
+
let t = Ft.current, n = e.kind === "turn" ? Pt.current[e.turnIndex] : null, r = fv(e, {
|
|
19504
19504
|
authoritativeTurnIndices: V.map((e) => e.index),
|
|
19505
19505
|
renderedTurnIndices: H.map((e) => e.index),
|
|
19506
|
-
viewReady:
|
|
19506
|
+
viewReady: L === "trace" && R === "list",
|
|
19507
19507
|
scrollerReady: t != null,
|
|
19508
19508
|
targetReady: e.kind === "top" || n != null
|
|
19509
19509
|
});
|
|
19510
19510
|
return r === "applied" ? e.kind === "top" ? (t.scrollTo({
|
|
19511
19511
|
top: 0,
|
|
19512
19512
|
behavior: "auto"
|
|
19513
|
-
}),
|
|
19513
|
+
}), Ht.current = ln(), "applied") : (n.scrollIntoView({
|
|
19514
19514
|
block: "start",
|
|
19515
19515
|
behavior: "auto"
|
|
19516
|
-
}),
|
|
19516
|
+
}), Ht.current = ln(), "applied") : r;
|
|
19517
19517
|
}, [
|
|
19518
|
-
|
|
19519
|
-
|
|
19518
|
+
ln,
|
|
19519
|
+
L,
|
|
19520
19520
|
V,
|
|
19521
|
-
|
|
19521
|
+
R,
|
|
19522
19522
|
H
|
|
19523
|
-
]),
|
|
19524
|
-
let t =
|
|
19523
|
+
]), hn = l((e) => {
|
|
19524
|
+
let t = Ut.current ?? Mt;
|
|
19525
19525
|
if (!t || t.sessionId !== (B?.id ?? "") || e.requestKey !== t.requestKey) return "discarded";
|
|
19526
|
-
let n =
|
|
19526
|
+
let n = Ft.current, r = fv(e, {
|
|
19527
19527
|
authoritativeTurnIndices: V.map((e) => e.index),
|
|
19528
19528
|
renderedTurnIndices: H.map((e) => e.index),
|
|
19529
|
-
viewReady:
|
|
19529
|
+
viewReady: L === "trace" && R === "list",
|
|
19530
19530
|
scrollerReady: n != null,
|
|
19531
19531
|
targetReady: !0
|
|
19532
19532
|
});
|
|
19533
19533
|
return r === "applied" ? (n.scrollTo({
|
|
19534
19534
|
top: t.scrollTop,
|
|
19535
19535
|
behavior: "auto"
|
|
19536
|
-
}), t.focusOrigin.kind === "scroller" ? n.focus({ preventScroll: !0 }) : t.focusOrigin.kind === "descendant" ? (
|
|
19536
|
+
}), t.focusOrigin.kind === "scroller" ? n.focus({ preventScroll: !0 }) : t.focusOrigin.kind === "descendant" ? (Pt.current[t.focusOrigin.turnIndex]?.querySelector?.(`.txn-anchor[data-turn-control="${t.focusOrigin.turnIndex}"]`) ?? Bt.current.trace)?.focus({ preventScroll: !0 }) : Bt.current.trace?.focus({ preventScroll: !0 }), Ht.current = {
|
|
19537
19537
|
scrollTop: t.scrollTop,
|
|
19538
19538
|
focusOrigin: t.focusOrigin
|
|
19539
|
-
},
|
|
19539
|
+
}, Ut.current = null, Nt(null), "applied") : r;
|
|
19540
19540
|
}, [
|
|
19541
19541
|
B?.id,
|
|
19542
|
-
|
|
19543
|
-
|
|
19542
|
+
L,
|
|
19543
|
+
Mt,
|
|
19544
19544
|
V,
|
|
19545
|
-
|
|
19545
|
+
R,
|
|
19546
19546
|
H
|
|
19547
19547
|
]);
|
|
19548
19548
|
_v({
|
|
@@ -19553,39 +19553,39 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19553
19553
|
turnIndex: k
|
|
19554
19554
|
},
|
|
19555
19555
|
readiness: [
|
|
19556
|
+
L,
|
|
19556
19557
|
R,
|
|
19557
|
-
z,
|
|
19558
19558
|
V,
|
|
19559
19559
|
H
|
|
19560
19560
|
],
|
|
19561
|
-
apply:
|
|
19561
|
+
apply: mn
|
|
19562
19562
|
}), _v({
|
|
19563
19563
|
sessionId: B?.id,
|
|
19564
|
-
initialPosition:
|
|
19564
|
+
initialPosition: Mt?.restoreRequested ? {
|
|
19565
19565
|
kind: "top",
|
|
19566
|
-
requestKey:
|
|
19566
|
+
requestKey: Mt.requestKey
|
|
19567
19567
|
} : null,
|
|
19568
19568
|
readiness: [
|
|
19569
|
-
|
|
19570
|
-
|
|
19569
|
+
Mt?.restoreRequested,
|
|
19570
|
+
Mt?.requestKey,
|
|
19571
|
+
L,
|
|
19571
19572
|
R,
|
|
19572
|
-
z,
|
|
19573
19573
|
V,
|
|
19574
19574
|
H
|
|
19575
19575
|
],
|
|
19576
|
-
apply:
|
|
19576
|
+
apply: hn
|
|
19577
19577
|
});
|
|
19578
|
-
let
|
|
19578
|
+
let gn = m(() => ({
|
|
19579
19579
|
categories: {
|
|
19580
19580
|
prompts: V.filter((e) => e.role === "user").length,
|
|
19581
19581
|
responses: V.filter((e) => e.role === "assistant").length,
|
|
19582
19582
|
thinking: V.filter((e) => e.thinking).length,
|
|
19583
19583
|
toolcalls: V.reduce((e, t) => e + (t.toolCalls ? t.toolCalls.length : 0), 0)
|
|
19584
19584
|
},
|
|
19585
|
-
toolGroups:
|
|
19586
|
-
}), [V,
|
|
19587
|
-
if (!
|
|
19588
|
-
let e =
|
|
19585
|
+
toolGroups: rn
|
|
19586
|
+
}), [V, rn]), _n = +!z.categories.prompts + +!z.categories.responses + +!z.categories.thinking + +!z.categories.toolcalls + +!!z.tags.errors + +!!z.tags.retries + +!!z.tags.revert + Object.values(z.toolGroups).filter((e) => !e).length, vn = m(() => {
|
|
19587
|
+
if (!qe.trim()) return [];
|
|
19588
|
+
let e = qe.toLowerCase(), t = [];
|
|
19589
19589
|
for (let n of V) {
|
|
19590
19590
|
(n.content || "").toLowerCase().includes(e) && t.push({
|
|
19591
19591
|
turn: n.index,
|
|
@@ -19600,16 +19600,16 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19600
19600
|
}
|
|
19601
19601
|
}
|
|
19602
19602
|
return t;
|
|
19603
|
-
}, [
|
|
19604
|
-
let e = H.findIndex((e) => e.index ===
|
|
19603
|
+
}, [qe, V]), yn = m(() => {
|
|
19604
|
+
let e = H.findIndex((e) => e.index === Ge);
|
|
19605
19605
|
return {
|
|
19606
19606
|
cur: Math.max(1, e + 1),
|
|
19607
19607
|
total: H.length
|
|
19608
19608
|
};
|
|
19609
|
-
}, [
|
|
19610
|
-
function
|
|
19611
|
-
t &&
|
|
19612
|
-
let t =
|
|
19609
|
+
}, [Ge, H]);
|
|
19610
|
+
function bn(e, { switchTab: t = !0 } = {}) {
|
|
19611
|
+
t && L !== "trace" && (Wt.current = !0, Te("trace")), Ee("list"), Ke(e), typeof requestAnimationFrame == "function" && requestAnimationFrame(() => {
|
|
19612
|
+
let t = Pt.current[e], n = Ft.current;
|
|
19613
19613
|
if (t && n) {
|
|
19614
19614
|
let e = typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
19615
19615
|
n.scrollTo({
|
|
@@ -19619,25 +19619,25 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19619
19619
|
}
|
|
19620
19620
|
});
|
|
19621
19621
|
}
|
|
19622
|
-
function
|
|
19623
|
-
let t = H.map((e) => e.index), n = t.indexOf(
|
|
19624
|
-
t[r] != null &&
|
|
19622
|
+
function xn(e) {
|
|
19623
|
+
let t = H.map((e) => e.index), n = t.indexOf(Ge), r = Math.max(0, Math.min(t.length - 1, n + e));
|
|
19624
|
+
t[r] != null && bn(t[r], { switchTab: !1 });
|
|
19625
19625
|
}
|
|
19626
|
-
function
|
|
19626
|
+
function Sn(e) {
|
|
19627
19627
|
if (ct(e), typeof navigator < "u" && navigator.clipboard) {
|
|
19628
19628
|
let t = "#turn-" + e;
|
|
19629
|
-
if (
|
|
19630
|
-
let n =
|
|
19629
|
+
if (ge) {
|
|
19630
|
+
let n = ge(e);
|
|
19631
19631
|
t = n.startsWith("/") && typeof window < "u" ? window.location.origin + n : n;
|
|
19632
19632
|
}
|
|
19633
19633
|
navigator.clipboard.writeText(t).catch(() => {});
|
|
19634
19634
|
}
|
|
19635
19635
|
setTimeout(() => ct((t) => t === e ? null : t), 1500);
|
|
19636
19636
|
}
|
|
19637
|
-
function
|
|
19637
|
+
function Cn() {
|
|
19638
19638
|
ut(!0), n.onCopyLink && n.onCopyLink(), setTimeout(() => ut(!1), 1500);
|
|
19639
19639
|
}
|
|
19640
|
-
function
|
|
19640
|
+
function wn(e, t) {
|
|
19641
19641
|
if (dt == null) return;
|
|
19642
19642
|
let r = {
|
|
19643
19643
|
outcome: e,
|
|
@@ -19648,100 +19648,109 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19648
19648
|
[dt]: r
|
|
19649
19649
|
}), n.onLabel && n.onLabel(dt, r), pt(null);
|
|
19650
19650
|
}
|
|
19651
|
-
function
|
|
19652
|
-
let
|
|
19651
|
+
function Tn(e) {
|
|
19652
|
+
let t = e.scrollTop > bv;
|
|
19653
|
+
vt(t);
|
|
19654
|
+
let n = It.current;
|
|
19655
|
+
n && n.offsetHeight > 0 && (Lt.current = n.offsetHeight);
|
|
19656
|
+
let r = e.scrollHeight - e.clientHeight - Lt.current, i = !!n && typeof document < "u" && n.contains(document.activeElement);
|
|
19657
|
+
bt(t && !i && r > 80);
|
|
19658
|
+
}
|
|
19659
|
+
function En() {
|
|
19660
|
+
let e = Ft.current;
|
|
19653
19661
|
if (!e) return;
|
|
19654
|
-
|
|
19662
|
+
Ht.current = ln(), Tn(e);
|
|
19655
19663
|
let t = H[0]?.index ?? 0;
|
|
19656
19664
|
for (let n of H) {
|
|
19657
|
-
let r =
|
|
19665
|
+
let r = Pt.current[n.index];
|
|
19658
19666
|
r && r.offsetTop - e.scrollTop <= e.clientHeight * .4 && (t = n.index);
|
|
19659
19667
|
}
|
|
19660
|
-
|
|
19668
|
+
Ke(t);
|
|
19661
19669
|
}
|
|
19662
|
-
function
|
|
19663
|
-
e.edited ?
|
|
19670
|
+
function Dn(e) {
|
|
19671
|
+
e.edited ? pn("diffs") : bn(e.turn ?? 0);
|
|
19664
19672
|
}
|
|
19665
|
-
function
|
|
19673
|
+
function On(e, t) {
|
|
19666
19674
|
let n = t.getBoundingClientRect(), r = Math.max(0, Math.min(1, (e - n.left) / n.width)), i = V.length - 1, a = V[i > 0 ? Math.round(r * i) : 0];
|
|
19667
19675
|
if (!a) return;
|
|
19668
|
-
let o =
|
|
19676
|
+
let o = Pt.current[a.index], s = Ft.current;
|
|
19669
19677
|
o && s && (s.scrollTo({
|
|
19670
19678
|
top: o.offsetTop - 12,
|
|
19671
19679
|
behavior: "auto"
|
|
19672
|
-
}),
|
|
19680
|
+
}), Ke(a.index));
|
|
19673
19681
|
}
|
|
19674
|
-
let
|
|
19675
|
-
let t =
|
|
19682
|
+
let kn = (e) => {
|
|
19683
|
+
let t = xv.indexOf(L);
|
|
19676
19684
|
if (t < 0) return;
|
|
19677
19685
|
let n = t;
|
|
19678
|
-
if (e.key === "ArrowRight" || e.key === "ArrowDown") n = (t + 1) %
|
|
19679
|
-
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") n = (t - 1 +
|
|
19686
|
+
if (e.key === "ArrowRight" || e.key === "ArrowDown") n = (t + 1) % xv.length;
|
|
19687
|
+
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") n = (t - 1 + xv.length) % xv.length;
|
|
19680
19688
|
else if (e.key === "Home") n = 0;
|
|
19681
|
-
else if (e.key === "End") n =
|
|
19689
|
+
else if (e.key === "End") n = xv.length - 1;
|
|
19682
19690
|
else return;
|
|
19683
|
-
e.preventDefault(),
|
|
19691
|
+
e.preventDefault(), dn(), pn(xv[n]), Bt.current[xv[n]]?.focus();
|
|
19684
19692
|
};
|
|
19685
19693
|
d(() => {
|
|
19686
19694
|
function e(e) {
|
|
19687
19695
|
if ((e.metaKey || e.ctrlKey) && (e.key === "f" || e.key === "F")) {
|
|
19688
|
-
e.preventDefault(),
|
|
19696
|
+
e.preventDefault(), Ct(!0), pn("trace"), setTimeout(() => Rt.current?.focus(), 0);
|
|
19689
19697
|
return;
|
|
19690
19698
|
}
|
|
19691
|
-
if (e.key === "Escape" &&
|
|
19692
|
-
|
|
19699
|
+
if (e.key === "Escape" && St) {
|
|
19700
|
+
Ct(!1);
|
|
19693
19701
|
return;
|
|
19694
19702
|
}
|
|
19695
19703
|
let t = ["INPUT", "TEXTAREA"].includes(document.activeElement?.tagName ?? "");
|
|
19696
|
-
|
|
19704
|
+
St || t || e.metaKey || e.ctrlKey || e.altKey || L !== "trace" || R !== "list" || (e.key === "j" || e.key === "ArrowDown" ? (e.preventDefault(), xn(1)) : (e.key === "k" || e.key === "ArrowUp") && (e.preventDefault(), xn(-1)));
|
|
19697
19705
|
}
|
|
19698
19706
|
if (!(typeof window > "u")) return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
19699
19707
|
}, [
|
|
19700
|
-
|
|
19708
|
+
St,
|
|
19709
|
+
L,
|
|
19701
19710
|
R,
|
|
19702
|
-
|
|
19703
|
-
We,
|
|
19711
|
+
Ge,
|
|
19704
19712
|
H,
|
|
19705
|
-
|
|
19713
|
+
pn
|
|
19706
19714
|
]), d(() => {
|
|
19707
|
-
if (!
|
|
19708
|
-
let e =
|
|
19715
|
+
if (!St || vn.length === 0) return;
|
|
19716
|
+
let e = vn[Math.min(wt, vn.length - 1)], t = Pt.current[e.turn], n = Ft.current;
|
|
19709
19717
|
if (t && n) {
|
|
19710
19718
|
let r = typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
19711
19719
|
n.scrollTo({
|
|
19712
19720
|
top: t.offsetTop - 12,
|
|
19713
19721
|
behavior: r ? "auto" : "smooth"
|
|
19714
|
-
}),
|
|
19722
|
+
}), Ke(e.turn);
|
|
19715
19723
|
}
|
|
19716
19724
|
}, [
|
|
19717
|
-
|
|
19718
|
-
|
|
19719
|
-
|
|
19725
|
+
wt,
|
|
19726
|
+
vn,
|
|
19727
|
+
St
|
|
19720
19728
|
]);
|
|
19721
|
-
let
|
|
19722
|
-
let e = [...
|
|
19729
|
+
let An = m(() => {
|
|
19730
|
+
let e = [...Zt];
|
|
19723
19731
|
return e.sort((e, t) => {
|
|
19724
|
-
let n =
|
|
19725
|
-
return
|
|
19732
|
+
let n = At.key === "path" ? e.path.localeCompare(t.path) : e.adds + e.dels - (t.adds + t.dels);
|
|
19733
|
+
return At.dir === "asc" ? n : -n;
|
|
19726
19734
|
}), e;
|
|
19727
|
-
}, [
|
|
19735
|
+
}, [Zt, At]), jn = m(() => {
|
|
19728
19736
|
let e = /* @__PURE__ */ new Map();
|
|
19729
|
-
for (let t of
|
|
19737
|
+
for (let t of Qt) e.has(t.path) || e.set(t.path, []), e.get(t.path).push(t);
|
|
19730
19738
|
return [...e.entries()];
|
|
19731
|
-
}, [
|
|
19739
|
+
}, [Qt]), Mn = tn.filter((e) => e.turn != null), Nn = tn.filter((e) => e.turn == null), Pn = B.title ?? Xt[0]?.prompt ?? V.find((e) => e.role === "user")?.content ?? B.id ?? "transcript", Fn = (Pn.codePointAt(158) ?? 0) > 65535 ? 158 : 159, In = Pn.length > 160 ? Pn.slice(0, Fn).trimEnd() + "…" : Pn;
|
|
19732
19740
|
return /* @__PURE__ */ b("div", {
|
|
19733
|
-
className: "txn-app" + (
|
|
19734
|
-
"data-theme":
|
|
19741
|
+
className: "txn-app" + (we === "light" ? " txn-light" : "") + (xt ? " txn-app-condensed" : ""),
|
|
19742
|
+
"data-theme": we,
|
|
19735
19743
|
children: [
|
|
19736
19744
|
/* @__PURE__ */ b("header", {
|
|
19737
19745
|
className: "txn-header",
|
|
19746
|
+
ref: It,
|
|
19738
19747
|
children: [
|
|
19739
19748
|
/* @__PURE__ */ b("div", {
|
|
19740
19749
|
className: "txn-header-top",
|
|
19741
19750
|
children: [/* @__PURE__ */ y("nav", {
|
|
19742
19751
|
className: "crumb txn-crumb",
|
|
19743
19752
|
"aria-label": "breadcrumb",
|
|
19744
|
-
children: (
|
|
19753
|
+
children: (ue ?? [
|
|
19745
19754
|
{
|
|
19746
19755
|
label: "sessions",
|
|
19747
19756
|
href: "#"
|
|
@@ -19752,8 +19761,8 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19752
19761
|
},
|
|
19753
19762
|
{ label: B.id }
|
|
19754
19763
|
]).map((e, t, n) => {
|
|
19755
|
-
let r =
|
|
19756
|
-
return /* @__PURE__ */ b(a, { children: [t > 0 && /* @__PURE__ */ y(
|
|
19764
|
+
let r = de ?? "a", i = t === n.length - 1;
|
|
19765
|
+
return /* @__PURE__ */ b(a, { children: [t > 0 && /* @__PURE__ */ y(P, {
|
|
19757
19766
|
size: 13,
|
|
19758
19767
|
"aria-hidden": "true"
|
|
19759
19768
|
}), !i && e.href != null ? /* @__PURE__ */ y(r, {
|
|
@@ -19768,7 +19777,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19768
19777
|
}), /* @__PURE__ */ b("div", {
|
|
19769
19778
|
className: "txn-actions",
|
|
19770
19779
|
children: [
|
|
19771
|
-
|
|
19780
|
+
_e,
|
|
19772
19781
|
/* @__PURE__ */ b("div", {
|
|
19773
19782
|
className: "menu-anchor",
|
|
19774
19783
|
children: [/* @__PURE__ */ b("button", {
|
|
@@ -19799,7 +19808,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19799
19808
|
children: /* @__PURE__ */ b("ul", {
|
|
19800
19809
|
className: "menu-list",
|
|
19801
19810
|
children: [
|
|
19802
|
-
|
|
19811
|
+
Se.canContribute && /* @__PURE__ */ y("li", { children: /* @__PURE__ */ b("button", {
|
|
19803
19812
|
type: "button",
|
|
19804
19813
|
className: "menu-item",
|
|
19805
19814
|
role: "menuitem",
|
|
@@ -19819,9 +19828,9 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19819
19828
|
className: "menu-item",
|
|
19820
19829
|
role: "menuitem",
|
|
19821
19830
|
onClick: () => {
|
|
19822
|
-
tt(!1),
|
|
19831
|
+
tt(!1), Cn();
|
|
19823
19832
|
},
|
|
19824
|
-
children: [y(lt ? j :
|
|
19833
|
+
children: [y(lt ? j : ke, {
|
|
19825
19834
|
size: 14,
|
|
19826
19835
|
"aria-hidden": "true"
|
|
19827
19836
|
}), /* @__PURE__ */ y("span", {
|
|
@@ -19829,14 +19838,14 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19829
19838
|
children: lt ? "copied" : "copy link"
|
|
19830
19839
|
})]
|
|
19831
19840
|
}) }),
|
|
19832
|
-
|
|
19841
|
+
Se.canChangeVisibility && /* @__PURE__ */ y("li", { children: /* @__PURE__ */ b("button", {
|
|
19833
19842
|
type: "button",
|
|
19834
19843
|
className: "menu-item",
|
|
19835
19844
|
role: "menuitem",
|
|
19836
19845
|
onClick: () => {
|
|
19837
19846
|
tt(!1), n.onChangeVisibility && n.onChangeVisibility();
|
|
19838
19847
|
},
|
|
19839
|
-
children: [/* @__PURE__ */ y(
|
|
19848
|
+
children: [/* @__PURE__ */ y(me, {
|
|
19840
19849
|
size: 14,
|
|
19841
19850
|
"aria-hidden": "true"
|
|
19842
19851
|
}), /* @__PURE__ */ y("span", {
|
|
@@ -19859,7 +19868,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19859
19868
|
onClick: () => {
|
|
19860
19869
|
ot((e) => !e), tt(!1);
|
|
19861
19870
|
},
|
|
19862
|
-
children: /* @__PURE__ */ y(
|
|
19871
|
+
children: /* @__PURE__ */ y(Re, {
|
|
19863
19872
|
size: 14,
|
|
19864
19873
|
"aria-hidden": "true"
|
|
19865
19874
|
})
|
|
@@ -19871,14 +19880,14 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19871
19880
|
children: /* @__PURE__ */ b("ul", {
|
|
19872
19881
|
className: "menu-list",
|
|
19873
19882
|
children: [
|
|
19874
|
-
|
|
19883
|
+
Se.canEdit && /* @__PURE__ */ y("li", { children: /* @__PURE__ */ b("button", {
|
|
19875
19884
|
type: "button",
|
|
19876
19885
|
className: "menu-item",
|
|
19877
19886
|
role: "menuitem",
|
|
19878
19887
|
onClick: () => {
|
|
19879
19888
|
ot(!1), n.onEdit && n.onEdit();
|
|
19880
19889
|
},
|
|
19881
|
-
children: [/* @__PURE__ */ y(
|
|
19890
|
+
children: [/* @__PURE__ */ y(We, {
|
|
19882
19891
|
size: 14,
|
|
19883
19892
|
"aria-hidden": "true"
|
|
19884
19893
|
}), /* @__PURE__ */ y("span", {
|
|
@@ -19886,8 +19895,8 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19886
19895
|
children: "edit"
|
|
19887
19896
|
})]
|
|
19888
19897
|
}) }),
|
|
19889
|
-
|
|
19890
|
-
|
|
19898
|
+
Se.canExport && /* @__PURE__ */ b(v, { children: [
|
|
19899
|
+
Se.canEdit && /* @__PURE__ */ y("li", {
|
|
19891
19900
|
role: "separator",
|
|
19892
19901
|
children: /* @__PURE__ */ y("hr", { className: "menu-sep" })
|
|
19893
19902
|
}),
|
|
@@ -19906,7 +19915,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19906
19915
|
onClick: () => {
|
|
19907
19916
|
ot(!1), n.onExport && n.onExport(e);
|
|
19908
19917
|
},
|
|
19909
|
-
children: [/* @__PURE__ */ y(
|
|
19918
|
+
children: [/* @__PURE__ */ y(pe, {
|
|
19910
19919
|
size: 14,
|
|
19911
19920
|
"aria-hidden": "true"
|
|
19912
19921
|
}), /* @__PURE__ */ y("span", {
|
|
@@ -19924,7 +19933,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19924
19933
|
className: "menu-item",
|
|
19925
19934
|
role: "menuitem",
|
|
19926
19935
|
onClick: () => ot(!1),
|
|
19927
|
-
children: [/* @__PURE__ */ y(
|
|
19936
|
+
children: [/* @__PURE__ */ y(Ie, {
|
|
19928
19937
|
size: 14,
|
|
19929
19938
|
"aria-hidden": "true"
|
|
19930
19939
|
}), /* @__PURE__ */ y("span", {
|
|
@@ -19941,8 +19950,8 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19941
19950
|
}),
|
|
19942
19951
|
/* @__PURE__ */ y("h2", {
|
|
19943
19952
|
className: "txn-title",
|
|
19944
|
-
title:
|
|
19945
|
-
children:
|
|
19953
|
+
title: In,
|
|
19954
|
+
children: In
|
|
19946
19955
|
}),
|
|
19947
19956
|
/* @__PURE__ */ b("div", {
|
|
19948
19957
|
className: "txn-meta chips",
|
|
@@ -19990,7 +19999,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
19990
19999
|
className: "metaitem",
|
|
19991
20000
|
title: "session duration",
|
|
19992
20001
|
children: [
|
|
19993
|
-
/* @__PURE__ */ y(
|
|
20002
|
+
/* @__PURE__ */ y(se, {
|
|
19994
20003
|
size: 14,
|
|
19995
20004
|
"aria-hidden": "true"
|
|
19996
20005
|
}),
|
|
@@ -20004,7 +20013,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20004
20013
|
B.turnCount != null && /* @__PURE__ */ b("span", {
|
|
20005
20014
|
className: "metaitem",
|
|
20006
20015
|
children: [
|
|
20007
|
-
/* @__PURE__ */ y(
|
|
20016
|
+
/* @__PURE__ */ y(Me, {
|
|
20008
20017
|
size: 14,
|
|
20009
20018
|
"aria-hidden": "true"
|
|
20010
20019
|
}),
|
|
@@ -20035,7 +20044,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20035
20044
|
className: "metaitem",
|
|
20036
20045
|
title: vv(B.tokensIn ?? 0) + " in · " + vv(B.tokensOut ?? 0) + " out",
|
|
20037
20046
|
children: [
|
|
20038
|
-
/* @__PURE__ */ y(
|
|
20047
|
+
/* @__PURE__ */ y(ce, {
|
|
20039
20048
|
size: 14,
|
|
20040
20049
|
"aria-hidden": "true"
|
|
20041
20050
|
}),
|
|
@@ -20047,26 +20056,26 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20047
20056
|
" tokens"
|
|
20048
20057
|
]
|
|
20049
20058
|
}),
|
|
20050
|
-
|
|
20059
|
+
tn.length > 0 && /* @__PURE__ */ b("span", {
|
|
20051
20060
|
className: "metaitem",
|
|
20052
20061
|
children: [
|
|
20053
|
-
/* @__PURE__ */ y(
|
|
20062
|
+
/* @__PURE__ */ y(Ce, {
|
|
20054
20063
|
size: 14,
|
|
20055
20064
|
"aria-hidden": "true"
|
|
20056
20065
|
}),
|
|
20057
20066
|
" ",
|
|
20058
20067
|
/* @__PURE__ */ y("b", {
|
|
20059
20068
|
className: "tnum",
|
|
20060
|
-
children:
|
|
20069
|
+
children: tn.length
|
|
20061
20070
|
}),
|
|
20062
20071
|
" ",
|
|
20063
|
-
|
|
20072
|
+
tn.length === 1 ? "commit" : "commits"
|
|
20064
20073
|
]
|
|
20065
20074
|
}),
|
|
20066
20075
|
B.git?.filesChanged != null && /* @__PURE__ */ b("span", {
|
|
20067
20076
|
className: "metaitem",
|
|
20068
20077
|
children: [
|
|
20069
|
-
/* @__PURE__ */ y(
|
|
20078
|
+
/* @__PURE__ */ y(ve, {
|
|
20070
20079
|
size: 14,
|
|
20071
20080
|
"aria-hidden": "true"
|
|
20072
20081
|
}),
|
|
@@ -20101,22 +20110,22 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20101
20110
|
className: "tabs txn-tabs",
|
|
20102
20111
|
role: "tablist",
|
|
20103
20112
|
"aria-label": "session views",
|
|
20104
|
-
onKeyDown:
|
|
20105
|
-
children:
|
|
20106
|
-
let t =
|
|
20113
|
+
onKeyDown: kn,
|
|
20114
|
+
children: xv.map((e) => {
|
|
20115
|
+
let t = L === e, n = e === "highlights" ? $t.length : e === "trace" ? V.length : e === "diffs" ? Qt.length : e === "files" ? Zt.length : nn.length;
|
|
20107
20116
|
return /* @__PURE__ */ b("button", {
|
|
20108
|
-
ref: (t) =>
|
|
20117
|
+
ref: (t) => Bt.current[e] = t,
|
|
20109
20118
|
type: "button",
|
|
20110
20119
|
role: "tab",
|
|
20111
20120
|
"aria-selected": t,
|
|
20112
20121
|
tabIndex: t ? 0 : -1,
|
|
20113
20122
|
className: "tab txn-tab" + (t ? " active" : ""),
|
|
20114
20123
|
onMouseDown: (t) => {
|
|
20115
|
-
t.button === 0 && e !== "trace" &&
|
|
20124
|
+
t.button === 0 && e !== "trace" && dn();
|
|
20116
20125
|
},
|
|
20117
|
-
onClick: () =>
|
|
20126
|
+
onClick: () => pn(e),
|
|
20118
20127
|
children: [
|
|
20119
|
-
|
|
20128
|
+
Sv[e],
|
|
20120
20129
|
" ",
|
|
20121
20130
|
/* @__PURE__ */ y("span", {
|
|
20122
20131
|
className: "cnt tnum",
|
|
@@ -20128,16 +20137,16 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20128
20137
|
}),
|
|
20129
20138
|
/* @__PURE__ */ b("div", {
|
|
20130
20139
|
className: "txn-body-grid",
|
|
20131
|
-
"data-left-rail":
|
|
20132
|
-
"data-right-rail":
|
|
20140
|
+
"data-left-rail": De ? "open" : "closed",
|
|
20141
|
+
"data-right-rail": Ne ? "open" : "closed",
|
|
20133
20142
|
children: [
|
|
20134
|
-
|
|
20143
|
+
De ? /* @__PURE__ */ b("aside", {
|
|
20135
20144
|
className: "txn-rail txn-rail-left",
|
|
20136
20145
|
"aria-label": "user turns outline",
|
|
20137
20146
|
children: [/* @__PURE__ */ b("div", {
|
|
20138
20147
|
className: "txn-rail-head",
|
|
20139
20148
|
children: [
|
|
20140
|
-
/* @__PURE__ */ y(
|
|
20149
|
+
/* @__PURE__ */ y(Oe, {
|
|
20141
20150
|
size: 13,
|
|
20142
20151
|
"aria-hidden": "true"
|
|
20143
20152
|
}),
|
|
@@ -20147,8 +20156,8 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20147
20156
|
className: "txn-rail-collapse",
|
|
20148
20157
|
"aria-label": "collapse user turns outline",
|
|
20149
20158
|
title: "collapse",
|
|
20150
|
-
onClick: () =>
|
|
20151
|
-
children: /* @__PURE__ */ y(
|
|
20159
|
+
onClick: () => je(!1),
|
|
20160
|
+
children: /* @__PURE__ */ y(Be, {
|
|
20152
20161
|
size: 14,
|
|
20153
20162
|
"aria-hidden": "true"
|
|
20154
20163
|
})
|
|
@@ -20158,9 +20167,9 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20158
20167
|
className: "txn-rail-body",
|
|
20159
20168
|
id: "txn-rail-left-body",
|
|
20160
20169
|
children: /* @__PURE__ */ y(H_, {
|
|
20161
|
-
viewModel:
|
|
20162
|
-
tab:
|
|
20163
|
-
onJump: (e) =>
|
|
20170
|
+
viewModel: xe,
|
|
20171
|
+
tab: L,
|
|
20172
|
+
onJump: (e) => bn(e, { switchTab: !1 })
|
|
20164
20173
|
})
|
|
20165
20174
|
})]
|
|
20166
20175
|
}) : /* @__PURE__ */ y("div", {
|
|
@@ -20170,8 +20179,8 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20170
20179
|
className: "txn-rail-reopen",
|
|
20171
20180
|
"aria-label": "expand user turns outline",
|
|
20172
20181
|
title: "expand user turns",
|
|
20173
|
-
onClick: () =>
|
|
20174
|
-
children: [/* @__PURE__ */ y(
|
|
20182
|
+
onClick: () => je(!0),
|
|
20183
|
+
children: [/* @__PURE__ */ y(Ve, {
|
|
20175
20184
|
size: 14,
|
|
20176
20185
|
"aria-hidden": "true"
|
|
20177
20186
|
}), /* @__PURE__ */ y("span", {
|
|
@@ -20183,27 +20192,27 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20183
20192
|
/* @__PURE__ */ b("section", {
|
|
20184
20193
|
className: "txn-center",
|
|
20185
20194
|
role: "tabpanel",
|
|
20186
|
-
"aria-label":
|
|
20195
|
+
"aria-label": L,
|
|
20187
20196
|
children: [
|
|
20188
|
-
|
|
20189
|
-
className: "txn-trace" + (ht &&
|
|
20197
|
+
L === "trace" && /* @__PURE__ */ b("div", {
|
|
20198
|
+
className: "txn-trace" + (ht && R === "list" ? " txn-trace-pinned" : ""),
|
|
20190
20199
|
children: [
|
|
20191
|
-
ht &&
|
|
20200
|
+
ht && R === "list" && /* @__PURE__ */ b("div", {
|
|
20192
20201
|
className: "txn-sticky",
|
|
20193
20202
|
children: [
|
|
20194
20203
|
B.harness && /* @__PURE__ */ y(r, {
|
|
20195
20204
|
harness: B.harness,
|
|
20196
20205
|
accent: !0
|
|
20197
20206
|
}),
|
|
20198
|
-
|
|
20207
|
+
an && /* @__PURE__ */ y("span", {
|
|
20199
20208
|
className: "txn-sticky-model mono",
|
|
20200
|
-
children:
|
|
20209
|
+
children: an
|
|
20201
20210
|
}),
|
|
20202
20211
|
/* @__PURE__ */ y(Y_, {
|
|
20203
20212
|
turns: V,
|
|
20204
|
-
active:
|
|
20205
|
-
onSeek:
|
|
20206
|
-
draggingRef:
|
|
20213
|
+
active: Ge,
|
|
20214
|
+
onSeek: On,
|
|
20215
|
+
draggingRef: zt
|
|
20207
20216
|
})
|
|
20208
20217
|
]
|
|
20209
20218
|
}),
|
|
@@ -20221,18 +20230,18 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20221
20230
|
children: [/* @__PURE__ */ b("button", {
|
|
20222
20231
|
type: "button",
|
|
20223
20232
|
className: "bs-seg-opt",
|
|
20224
|
-
"aria-pressed":
|
|
20225
|
-
onClick: () =>
|
|
20226
|
-
children: [/* @__PURE__ */ y(
|
|
20233
|
+
"aria-pressed": R === "list",
|
|
20234
|
+
onClick: () => Ee("list"),
|
|
20235
|
+
children: [/* @__PURE__ */ y(Ae, {
|
|
20227
20236
|
size: 14,
|
|
20228
20237
|
"aria-hidden": "true"
|
|
20229
20238
|
}), " list"]
|
|
20230
20239
|
}), /* @__PURE__ */ b("button", {
|
|
20231
20240
|
type: "button",
|
|
20232
20241
|
className: "bs-seg-opt",
|
|
20233
|
-
"aria-pressed":
|
|
20234
|
-
onClick: () =>
|
|
20235
|
-
children: [/* @__PURE__ */ y(
|
|
20242
|
+
"aria-pressed": R === "graph",
|
|
20243
|
+
onClick: () => Ee("graph"),
|
|
20244
|
+
children: [/* @__PURE__ */ y(ze, {
|
|
20236
20245
|
size: 14,
|
|
20237
20246
|
"aria-hidden": "true"
|
|
20238
20247
|
}), " graph"]
|
|
@@ -20240,18 +20249,18 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20240
20249
|
})
|
|
20241
20250
|
})]
|
|
20242
20251
|
}),
|
|
20243
|
-
|
|
20252
|
+
R === "graph" ? /* @__PURE__ */ y("div", {
|
|
20244
20253
|
className: "txn-graphslot",
|
|
20245
20254
|
children: s ? s({
|
|
20246
|
-
viewModel:
|
|
20247
|
-
activeTurn:
|
|
20248
|
-
onSelectTurn: (e) =>
|
|
20255
|
+
viewModel: xe,
|
|
20256
|
+
activeTurn: Ge,
|
|
20257
|
+
onSelectTurn: (e) => Ke(e)
|
|
20249
20258
|
}) : /* @__PURE__ */ b("div", {
|
|
20250
20259
|
className: "empty",
|
|
20251
20260
|
children: [
|
|
20252
20261
|
/* @__PURE__ */ y("div", {
|
|
20253
20262
|
className: "ring",
|
|
20254
|
-
children: /* @__PURE__ */ y(
|
|
20263
|
+
children: /* @__PURE__ */ y(ze, {
|
|
20255
20264
|
size: 20,
|
|
20256
20265
|
"aria-hidden": "true"
|
|
20257
20266
|
})
|
|
@@ -20268,26 +20277,26 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20268
20277
|
className: "txn-streamwrap",
|
|
20269
20278
|
children: /* @__PURE__ */ b("div", {
|
|
20270
20279
|
className: "txn-stream",
|
|
20271
|
-
ref:
|
|
20280
|
+
ref: Ft,
|
|
20272
20281
|
role: "region",
|
|
20273
20282
|
"aria-label": "full trace turns",
|
|
20274
20283
|
onFocusCapture: () => {
|
|
20275
|
-
let e =
|
|
20276
|
-
e && (
|
|
20284
|
+
let e = ln();
|
|
20285
|
+
e && (Ht.current = e);
|
|
20277
20286
|
},
|
|
20278
|
-
onScroll:
|
|
20287
|
+
onScroll: En,
|
|
20279
20288
|
tabIndex: -1,
|
|
20280
20289
|
children: [
|
|
20281
|
-
|
|
20290
|
+
be != null && /* @__PURE__ */ y("div", {
|
|
20282
20291
|
className: "txn-stream-prelude",
|
|
20283
|
-
children:
|
|
20292
|
+
children: be
|
|
20284
20293
|
}),
|
|
20285
20294
|
H.length === 0 && /* @__PURE__ */ b("div", {
|
|
20286
20295
|
className: "empty",
|
|
20287
20296
|
children: [
|
|
20288
20297
|
/* @__PURE__ */ y("div", {
|
|
20289
20298
|
className: "ring",
|
|
20290
|
-
children: /* @__PURE__ */ y(
|
|
20299
|
+
children: /* @__PURE__ */ y(ye, {
|
|
20291
20300
|
size: 20,
|
|
20292
20301
|
"aria-hidden": "true"
|
|
20293
20302
|
})
|
|
@@ -20297,45 +20306,45 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20297
20306
|
]
|
|
20298
20307
|
}),
|
|
20299
20308
|
H.map((e, t) => {
|
|
20300
|
-
let n = H[t - 1], r =
|
|
20309
|
+
let n = H[t - 1], r = Yt.find((t) => e.index >= t.from && e.index <= t.to), i = n ? Yt.find((e) => n.index >= e.from && n.index <= e.to) : null, a = z.views.hidden && r && (!i || i.id !== r.id), o = on.get(e.index), s = Mn.filter((t) => t.turn === e.index);
|
|
20301
20310
|
return /* @__PURE__ */ b("div", { children: [
|
|
20302
|
-
a && /* @__PURE__ */ y(
|
|
20303
|
-
e.role === "user" && o && /* @__PURE__ */ y(
|
|
20311
|
+
a && /* @__PURE__ */ y(Dv, { phase: r }),
|
|
20312
|
+
e.role === "user" && o && /* @__PURE__ */ y(Ov, { task: o }),
|
|
20304
20313
|
/* @__PURE__ */ y(R_, {
|
|
20305
20314
|
turn: e,
|
|
20306
|
-
active:
|
|
20307
|
-
openTools:
|
|
20308
|
-
toggleTool:
|
|
20309
|
-
onCopyAnchor:
|
|
20315
|
+
active: Ge === e.index,
|
|
20316
|
+
openTools: Fe,
|
|
20317
|
+
toggleTool: Jt,
|
|
20318
|
+
onCopyAnchor: Sn,
|
|
20310
20319
|
copied: st === e.index,
|
|
20311
|
-
registerRef:
|
|
20312
|
-
onLabel:
|
|
20313
|
-
renderActions:
|
|
20320
|
+
registerRef: qt,
|
|
20321
|
+
onLabel: cn,
|
|
20322
|
+
renderActions: he,
|
|
20314
20323
|
savedLabel: Ze[e.index],
|
|
20315
|
-
compact:
|
|
20316
|
-
expandAll:
|
|
20324
|
+
compact: z.views.compact,
|
|
20325
|
+
expandAll: z.views.expandAll
|
|
20317
20326
|
}),
|
|
20318
|
-
|
|
20319
|
-
s.map((e) => /* @__PURE__ */ y(
|
|
20327
|
+
fe ? fe(e) : null,
|
|
20328
|
+
s.map((e) => /* @__PURE__ */ y(kv, { commit: e }, e.hash))
|
|
20320
20329
|
] }, e.index);
|
|
20321
20330
|
}),
|
|
20322
|
-
|
|
20331
|
+
Nn.map((e) => /* @__PURE__ */ y(kv, { commit: e }, e.hash))
|
|
20323
20332
|
]
|
|
20324
20333
|
})
|
|
20325
20334
|
})
|
|
20326
20335
|
]
|
|
20327
20336
|
}),
|
|
20328
|
-
|
|
20337
|
+
L === "highlights" && /* @__PURE__ */ b("div", {
|
|
20329
20338
|
className: "txn-highlights",
|
|
20330
|
-
children: [/* @__PURE__ */ y(Q_, { bands:
|
|
20339
|
+
children: [/* @__PURE__ */ y(Q_, { bands: en }), /* @__PURE__ */ y("div", {
|
|
20331
20340
|
className: "txn-hl-cards",
|
|
20332
|
-
children:
|
|
20333
|
-
let t =
|
|
20341
|
+
children: $t.map((e) => {
|
|
20342
|
+
let t = wv[e.kind] ?? at, n = e.kind === "checkpoint";
|
|
20334
20343
|
return /* @__PURE__ */ b("button", {
|
|
20335
20344
|
type: "button",
|
|
20336
20345
|
className: "txn-hl-card" + (n ? " txn-hl-static" : ""),
|
|
20337
20346
|
disabled: n,
|
|
20338
|
-
onClick: () => !n &&
|
|
20347
|
+
onClick: () => !n && bn(e.turn),
|
|
20339
20348
|
children: [
|
|
20340
20349
|
/* @__PURE__ */ y("span", {
|
|
20341
20350
|
className: "txn-hl-ico" + (e.err ? " txn-hl-err" : ""),
|
|
@@ -20380,7 +20389,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20380
20389
|
e.tokens && /* @__PURE__ */ b("span", {
|
|
20381
20390
|
className: "txn-tokbadge tnum",
|
|
20382
20391
|
children: [
|
|
20383
|
-
/* @__PURE__ */ y(
|
|
20392
|
+
/* @__PURE__ */ y(ce, {
|
|
20384
20393
|
size: 12,
|
|
20385
20394
|
"aria-hidden": "true"
|
|
20386
20395
|
}),
|
|
@@ -20392,7 +20401,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20392
20401
|
className: "txn-hl-time",
|
|
20393
20402
|
children: e.time
|
|
20394
20403
|
}),
|
|
20395
|
-
!n && /* @__PURE__ */ y(
|
|
20404
|
+
!n && /* @__PURE__ */ y(P, {
|
|
20396
20405
|
size: 14,
|
|
20397
20406
|
"aria-hidden": "true"
|
|
20398
20407
|
})
|
|
@@ -20403,20 +20412,20 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20403
20412
|
})
|
|
20404
20413
|
})]
|
|
20405
20414
|
}),
|
|
20406
|
-
|
|
20415
|
+
L === "diffs" && /* @__PURE__ */ b("div", {
|
|
20407
20416
|
className: "txn-diffs",
|
|
20408
20417
|
children: [/* @__PURE__ */ b("div", {
|
|
20409
20418
|
className: "txn-diffs-head",
|
|
20410
20419
|
children: [/* @__PURE__ */ b("span", {
|
|
20411
20420
|
className: "txn-diffs-count tnum",
|
|
20412
20421
|
children: [
|
|
20413
|
-
|
|
20422
|
+
Qt.length,
|
|
20414
20423
|
" ",
|
|
20415
|
-
|
|
20424
|
+
Qt.length === 1 ? "edit" : "edits",
|
|
20416
20425
|
" across ",
|
|
20417
|
-
|
|
20426
|
+
jn.length,
|
|
20418
20427
|
" ",
|
|
20419
|
-
|
|
20428
|
+
jn.length === 1 ? "file" : "files"
|
|
20420
20429
|
]
|
|
20421
20430
|
}), /* @__PURE__ */ y("div", {
|
|
20422
20431
|
className: "txn-diffs-actions",
|
|
@@ -20427,36 +20436,36 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20427
20436
|
children: [/* @__PURE__ */ y("button", {
|
|
20428
20437
|
type: "button",
|
|
20429
20438
|
className: "bs-seg-opt",
|
|
20430
|
-
"aria-pressed":
|
|
20431
|
-
onClick: () =>
|
|
20439
|
+
"aria-pressed": Et === "file",
|
|
20440
|
+
onClick: () => Dt("file"),
|
|
20432
20441
|
children: "by file"
|
|
20433
20442
|
}), /* @__PURE__ */ y("button", {
|
|
20434
20443
|
type: "button",
|
|
20435
20444
|
className: "bs-seg-opt",
|
|
20436
|
-
"aria-pressed":
|
|
20437
|
-
onClick: () =>
|
|
20445
|
+
"aria-pressed": Et === "turn",
|
|
20446
|
+
onClick: () => Dt("turn"),
|
|
20438
20447
|
children: "by turn"
|
|
20439
20448
|
})]
|
|
20440
20449
|
})
|
|
20441
20450
|
})]
|
|
20442
|
-
}),
|
|
20443
|
-
let n = t.reduce((e, t) => e + t.adds, 0), r = t.reduce((e, t) => e + t.dels, 0), i =
|
|
20451
|
+
}), Et === "file" ? jn.map(([e, t]) => {
|
|
20452
|
+
let n = t.reduce((e, t) => e + t.adds, 0), r = t.reduce((e, t) => e + t.dels, 0), i = Ot[e] ?? !0;
|
|
20444
20453
|
return /* @__PURE__ */ b("div", {
|
|
20445
20454
|
className: "txn-filegroup",
|
|
20446
20455
|
children: [/* @__PURE__ */ b("button", {
|
|
20447
20456
|
type: "button",
|
|
20448
20457
|
className: "txn-fg-head",
|
|
20449
20458
|
"aria-expanded": i,
|
|
20450
|
-
onClick: () =>
|
|
20459
|
+
onClick: () => kt((t) => ({
|
|
20451
20460
|
...t,
|
|
20452
20461
|
[e]: !(t[e] ?? !0)
|
|
20453
20462
|
})),
|
|
20454
20463
|
children: [
|
|
20455
|
-
y(i ? N :
|
|
20464
|
+
y(i ? N : P, {
|
|
20456
20465
|
size: 14,
|
|
20457
20466
|
"aria-hidden": "true"
|
|
20458
20467
|
}),
|
|
20459
|
-
/* @__PURE__ */ y(
|
|
20468
|
+
/* @__PURE__ */ y(We, {
|
|
20460
20469
|
size: 14,
|
|
20461
20470
|
"aria-hidden": "true"
|
|
20462
20471
|
}),
|
|
@@ -20489,28 +20498,28 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20489
20498
|
]
|
|
20490
20499
|
}), i && t.map((e, t) => /* @__PURE__ */ y(y_, {
|
|
20491
20500
|
entry: e,
|
|
20492
|
-
onJump: () => e.turn != null &&
|
|
20501
|
+
onJump: () => e.turn != null && bn(e.turn)
|
|
20493
20502
|
}, t))]
|
|
20494
20503
|
}, e);
|
|
20495
20504
|
}) : /* @__PURE__ */ y("div", {
|
|
20496
20505
|
className: "txn-difflist",
|
|
20497
|
-
children:
|
|
20506
|
+
children: Qt.map((e, t) => /* @__PURE__ */ y(y_, {
|
|
20498
20507
|
entry: e,
|
|
20499
20508
|
byTurn: !0,
|
|
20500
|
-
onJump: () => e.turn != null &&
|
|
20509
|
+
onJump: () => e.turn != null && bn(e.turn)
|
|
20501
20510
|
}, t))
|
|
20502
20511
|
})]
|
|
20503
20512
|
}),
|
|
20504
|
-
|
|
20513
|
+
L === "files" && /* @__PURE__ */ b("div", {
|
|
20505
20514
|
className: "txn-files",
|
|
20506
20515
|
children: [/* @__PURE__ */ y("div", {
|
|
20507
20516
|
className: "txn-files-head",
|
|
20508
20517
|
children: /* @__PURE__ */ b("span", {
|
|
20509
20518
|
className: "txn-files-count tnum",
|
|
20510
20519
|
children: [
|
|
20511
|
-
|
|
20520
|
+
Zt.length,
|
|
20512
20521
|
" ",
|
|
20513
|
-
|
|
20522
|
+
Zt.length === 1 ? "file" : "files"
|
|
20514
20523
|
]
|
|
20515
20524
|
})
|
|
20516
20525
|
}), /* @__PURE__ */ b("table", {
|
|
@@ -20518,11 +20527,11 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20518
20527
|
children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ b("tr", { children: [/* @__PURE__ */ y("th", { children: /* @__PURE__ */ b("button", {
|
|
20519
20528
|
type: "button",
|
|
20520
20529
|
className: "txn-sort",
|
|
20521
|
-
onClick: () =>
|
|
20530
|
+
onClick: () => jt((e) => ({
|
|
20522
20531
|
key: "path",
|
|
20523
20532
|
dir: e.key === "path" && e.dir === "asc" ? "desc" : "asc"
|
|
20524
20533
|
})),
|
|
20525
|
-
children: ["file ",
|
|
20534
|
+
children: ["file ", At.key === "path" ? At.dir === "asc" ? /* @__PURE__ */ y(ne, {
|
|
20526
20535
|
size: 12,
|
|
20527
20536
|
"aria-hidden": "true"
|
|
20528
20537
|
}) : /* @__PURE__ */ y(N, {
|
|
@@ -20534,11 +20543,11 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20534
20543
|
children: /* @__PURE__ */ b("button", {
|
|
20535
20544
|
type: "button",
|
|
20536
20545
|
className: "txn-sort",
|
|
20537
|
-
onClick: () =>
|
|
20546
|
+
onClick: () => jt((e) => ({
|
|
20538
20547
|
key: "churn",
|
|
20539
20548
|
dir: e.key === "churn" && e.dir === "asc" ? "desc" : "asc"
|
|
20540
20549
|
})),
|
|
20541
|
-
children: ["lines +/− ",
|
|
20550
|
+
children: ["lines +/− ", At.key === "churn" ? At.dir === "asc" ? /* @__PURE__ */ y(ne, {
|
|
20542
20551
|
size: 12,
|
|
20543
20552
|
"aria-hidden": "true"
|
|
20544
20553
|
}) : /* @__PURE__ */ y(N, {
|
|
@@ -20546,19 +20555,19 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20546
20555
|
"aria-hidden": "true"
|
|
20547
20556
|
}) : null]
|
|
20548
20557
|
})
|
|
20549
|
-
})] }) }), /* @__PURE__ */ y("tbody", { children:
|
|
20558
|
+
})] }) }), /* @__PURE__ */ y("tbody", { children: An.map((e) => /* @__PURE__ */ b("tr", {
|
|
20550
20559
|
className: "txn-filerow",
|
|
20551
20560
|
children: [/* @__PURE__ */ y("td", { children: /* @__PURE__ */ b("button", {
|
|
20552
20561
|
type: "button",
|
|
20553
20562
|
className: "txn-file-cell",
|
|
20554
|
-
onClick: () =>
|
|
20563
|
+
onClick: () => Dn(e),
|
|
20555
20564
|
"aria-label": e.edited ? `${e.path}, jump to diffs` : `${e.path}, jump to last read`,
|
|
20556
20565
|
title: e.edited ? "jump to diffs" : "jump to last read",
|
|
20557
20566
|
children: [
|
|
20558
|
-
e.edited ? /* @__PURE__ */ y(
|
|
20567
|
+
e.edited ? /* @__PURE__ */ y(We, {
|
|
20559
20568
|
size: 13,
|
|
20560
20569
|
"aria-hidden": "true"
|
|
20561
|
-
}) : /* @__PURE__ */ y(
|
|
20570
|
+
}) : /* @__PURE__ */ y(ve, {
|
|
20562
20571
|
size: 13,
|
|
20563
20572
|
"aria-hidden": "true"
|
|
20564
20573
|
}),
|
|
@@ -20599,13 +20608,13 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20599
20608
|
}, e.path)) })]
|
|
20600
20609
|
})]
|
|
20601
20610
|
}),
|
|
20602
|
-
|
|
20611
|
+
L === "annotations" && /* @__PURE__ */ b("div", {
|
|
20603
20612
|
className: "txn-annotations",
|
|
20604
20613
|
children: [/* @__PURE__ */ y("p", {
|
|
20605
20614
|
className: "txn-anno-intro",
|
|
20606
20615
|
children: "auto-detected friction moments: tool errors and non-zero exits, retry loops, edits that re-touch a file, and subagent spawns. click a row to jump to the turn."
|
|
20607
|
-
}),
|
|
20608
|
-
let t =
|
|
20616
|
+
}), nn.map((e) => {
|
|
20617
|
+
let t = Tv[e.kind] ?? {
|
|
20609
20618
|
label: e.kind,
|
|
20610
20619
|
icon: x,
|
|
20611
20620
|
chip: "",
|
|
@@ -20614,7 +20623,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20614
20623
|
return /* @__PURE__ */ b("button", {
|
|
20615
20624
|
type: "button",
|
|
20616
20625
|
className: "txn-anno-row",
|
|
20617
|
-
onClick: () =>
|
|
20626
|
+
onClick: () => bn(e.turn),
|
|
20618
20627
|
children: [
|
|
20619
20628
|
/* @__PURE__ */ b("span", {
|
|
20620
20629
|
className: "txn-anno-turn tnum",
|
|
@@ -20644,7 +20653,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20644
20653
|
className: "txn-anno-preview mono",
|
|
20645
20654
|
children: e.preview
|
|
20646
20655
|
}),
|
|
20647
|
-
/* @__PURE__ */ y(
|
|
20656
|
+
/* @__PURE__ */ y(P, {
|
|
20648
20657
|
size: 14,
|
|
20649
20658
|
"aria-hidden": "true"
|
|
20650
20659
|
})
|
|
@@ -20654,7 +20663,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20654
20663
|
})
|
|
20655
20664
|
]
|
|
20656
20665
|
}),
|
|
20657
|
-
|
|
20666
|
+
Ne ? /* @__PURE__ */ b("aside", {
|
|
20658
20667
|
className: "txn-rail txn-rail-right",
|
|
20659
20668
|
"aria-label": "filters",
|
|
20660
20669
|
children: [/* @__PURE__ */ b("div", {
|
|
@@ -20665,17 +20674,17 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20665
20674
|
"aria-hidden": "true"
|
|
20666
20675
|
}),
|
|
20667
20676
|
" filters",
|
|
20668
|
-
|
|
20677
|
+
_n > 0 && /* @__PURE__ */ y("span", {
|
|
20669
20678
|
className: "chipx-count unread tnum",
|
|
20670
|
-
children:
|
|
20679
|
+
children: _n
|
|
20671
20680
|
}),
|
|
20672
20681
|
/* @__PURE__ */ y("button", {
|
|
20673
20682
|
type: "button",
|
|
20674
20683
|
className: "txn-rail-collapse",
|
|
20675
20684
|
"aria-label": "collapse filters",
|
|
20676
20685
|
title: "collapse",
|
|
20677
|
-
onClick: () =>
|
|
20678
|
-
children: /* @__PURE__ */ y(
|
|
20686
|
+
onClick: () => Pe(!1),
|
|
20687
|
+
children: /* @__PURE__ */ y(He, {
|
|
20679
20688
|
size: 14,
|
|
20680
20689
|
"aria-hidden": "true"
|
|
20681
20690
|
})
|
|
@@ -20685,18 +20694,18 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20685
20694
|
className: "txn-rail-body",
|
|
20686
20695
|
id: "txn-rail-right-body",
|
|
20687
20696
|
children: /* @__PURE__ */ y(J_, {
|
|
20688
|
-
tab:
|
|
20689
|
-
filters:
|
|
20697
|
+
tab: L,
|
|
20698
|
+
filters: z,
|
|
20690
20699
|
onFiltersChange: Ye,
|
|
20691
|
-
counts:
|
|
20692
|
-
checkpoints:
|
|
20693
|
-
filtersActive:
|
|
20700
|
+
counts: gn,
|
|
20701
|
+
checkpoints: tn,
|
|
20702
|
+
filtersActive: _n,
|
|
20694
20703
|
onClear: () => Ye({
|
|
20695
|
-
...
|
|
20704
|
+
...Ev,
|
|
20696
20705
|
toolGroups: Object.fromEntries(eo.map((e) => [e, !0]))
|
|
20697
20706
|
}),
|
|
20698
|
-
onJumpStart: () =>
|
|
20699
|
-
onJumpLatest: () =>
|
|
20707
|
+
onJumpStart: () => bn(H[0]?.index ?? 0, { switchTab: !1 }),
|
|
20708
|
+
onJumpLatest: () => bn(H[H.length - 1]?.index ?? 0, { switchTab: !1 })
|
|
20700
20709
|
})
|
|
20701
20710
|
})]
|
|
20702
20711
|
}) : /* @__PURE__ */ y("div", {
|
|
@@ -20706,22 +20715,22 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20706
20715
|
className: "txn-rail-reopen",
|
|
20707
20716
|
"aria-label": "expand filters",
|
|
20708
20717
|
title: "expand filters",
|
|
20709
|
-
onClick: () =>
|
|
20710
|
-
children: [/* @__PURE__ */ y(
|
|
20718
|
+
onClick: () => Pe(!0),
|
|
20719
|
+
children: [/* @__PURE__ */ y(Ue, {
|
|
20711
20720
|
size: 14,
|
|
20712
20721
|
"aria-hidden": "true"
|
|
20713
20722
|
}), /* @__PURE__ */ b("span", {
|
|
20714
20723
|
className: "txn-rail-strip-label",
|
|
20715
|
-
children: ["filters",
|
|
20724
|
+
children: ["filters", _n > 0 ? /* @__PURE__ */ y("span", {
|
|
20716
20725
|
className: "chipx-count unread tnum",
|
|
20717
|
-
children:
|
|
20726
|
+
children: _n
|
|
20718
20727
|
}) : null]
|
|
20719
20728
|
})]
|
|
20720
20729
|
})
|
|
20721
20730
|
})
|
|
20722
20731
|
]
|
|
20723
20732
|
}),
|
|
20724
|
-
|
|
20733
|
+
St && /* @__PURE__ */ b("div", {
|
|
20725
20734
|
className: "txn-search",
|
|
20726
20735
|
children: [
|
|
20727
20736
|
/* @__PURE__ */ y(Xe, {
|
|
@@ -20730,29 +20739,29 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20730
20739
|
className: "txn-search-ico"
|
|
20731
20740
|
}),
|
|
20732
20741
|
/* @__PURE__ */ y("input", {
|
|
20733
|
-
ref:
|
|
20742
|
+
ref: Rt,
|
|
20734
20743
|
className: "txn-search-input",
|
|
20735
20744
|
placeholder: "search across turns, tool args, and results…",
|
|
20736
|
-
value:
|
|
20745
|
+
value: qe,
|
|
20737
20746
|
onChange: (e) => {
|
|
20738
|
-
|
|
20747
|
+
Je(e.target.value), Tt(0);
|
|
20739
20748
|
},
|
|
20740
20749
|
onKeyDown: (e) => {
|
|
20741
|
-
e.key === "Enter" && (e.preventDefault(),
|
|
20750
|
+
e.key === "Enter" && (e.preventDefault(), Tt((t) => vn.length ? e.shiftKey ? (t - 1 + vn.length) % vn.length : (t + 1) % vn.length : 0)), e.key === "Escape" && Ct(!1);
|
|
20742
20751
|
},
|
|
20743
20752
|
"aria-label": "search transcript"
|
|
20744
20753
|
}),
|
|
20745
20754
|
/* @__PURE__ */ y("span", {
|
|
20746
20755
|
className: "txn-search-count tnum",
|
|
20747
|
-
children:
|
|
20756
|
+
children: vn.length ? `${wt + 1}/${vn.length}` : "0 matches"
|
|
20748
20757
|
}),
|
|
20749
20758
|
/* @__PURE__ */ y("button", {
|
|
20750
20759
|
type: "button",
|
|
20751
20760
|
className: "txn-search-nav",
|
|
20752
20761
|
"aria-label": "previous match",
|
|
20753
|
-
disabled: !
|
|
20754
|
-
onClick: () =>
|
|
20755
|
-
children: /* @__PURE__ */ y(
|
|
20762
|
+
disabled: !vn.length,
|
|
20763
|
+
onClick: () => Tt((e) => (e - 1 + vn.length) % vn.length),
|
|
20764
|
+
children: /* @__PURE__ */ y(ne, {
|
|
20756
20765
|
size: 14,
|
|
20757
20766
|
"aria-hidden": "true"
|
|
20758
20767
|
})
|
|
@@ -20761,8 +20770,8 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20761
20770
|
type: "button",
|
|
20762
20771
|
className: "txn-search-nav",
|
|
20763
20772
|
"aria-label": "next match",
|
|
20764
|
-
disabled: !
|
|
20765
|
-
onClick: () =>
|
|
20773
|
+
disabled: !vn.length,
|
|
20774
|
+
onClick: () => Tt((e) => (e + 1) % vn.length),
|
|
20766
20775
|
children: /* @__PURE__ */ y(N, {
|
|
20767
20776
|
size: 14,
|
|
20768
20777
|
"aria-hidden": "true"
|
|
@@ -20776,7 +20785,7 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20776
20785
|
type: "button",
|
|
20777
20786
|
className: "txn-search-x",
|
|
20778
20787
|
"aria-label": "close search",
|
|
20779
|
-
onClick: () =>
|
|
20788
|
+
onClick: () => Ct(!1),
|
|
20780
20789
|
children: /* @__PURE__ */ y(_t, {
|
|
20781
20790
|
size: 14,
|
|
20782
20791
|
"aria-hidden": "true"
|
|
@@ -20784,19 +20793,19 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20784
20793
|
})
|
|
20785
20794
|
]
|
|
20786
20795
|
}),
|
|
20787
|
-
|
|
20796
|
+
L === "trace" && R === "list" && H.length > 0 && /* @__PURE__ */ b("div", {
|
|
20788
20797
|
className: "txn-progress tnum",
|
|
20789
20798
|
"aria-hidden": "true",
|
|
20790
20799
|
children: [
|
|
20791
|
-
|
|
20800
|
+
yn.cur,
|
|
20792
20801
|
" of ",
|
|
20793
|
-
|
|
20802
|
+
yn.total
|
|
20794
20803
|
]
|
|
20795
20804
|
}),
|
|
20796
|
-
|
|
20805
|
+
sn && dt != null && /* @__PURE__ */ y(tv, {
|
|
20797
20806
|
turnId: dt,
|
|
20798
20807
|
current: Ze[dt],
|
|
20799
|
-
onSave:
|
|
20808
|
+
onSave: wn,
|
|
20800
20809
|
onClose: () => pt(null)
|
|
20801
20810
|
}),
|
|
20802
20811
|
/* @__PURE__ */ b("div", {
|
|
@@ -20828,22 +20837,22 @@ function kv({ viewModel: e, capabilities: t, callbacks: n = {}, theme: i, onThem
|
|
|
20828
20837
|
}
|
|
20829
20838
|
//#endregion
|
|
20830
20839
|
//#region src/ui/transcript/graph/GraphTurnNode.jsx
|
|
20831
|
-
function
|
|
20840
|
+
function jv(e) {
|
|
20832
20841
|
return e >= 1e3 ? (e / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : String(e);
|
|
20833
20842
|
}
|
|
20834
|
-
function
|
|
20843
|
+
function Mv(e, t) {
|
|
20835
20844
|
return e === "user" ? "you" : t ? "subagent" : e === "assistant" ? "assistant" : e;
|
|
20836
20845
|
}
|
|
20837
|
-
function
|
|
20846
|
+
function Nv({ role: e, agentName: t, provider: r, hasError: i }) {
|
|
20838
20847
|
return i ? "clay" : e === "user" ? "teal" : t ? "mauve" : e === "assistant" ? r === void 0 ? "amber" : n(r) : null;
|
|
20839
20848
|
}
|
|
20840
|
-
function
|
|
20841
|
-
let g =
|
|
20849
|
+
function Pv({ role: e, agentName: t, turnNumber: n, contentPreview: r, toolCount: i, totalTokens: a, tokensIn: o, tokensOut: s, hasError: c = !1, hasRetry: l = !1, hasRevert: u = !1, isSearchMatch: d = !1, isFilteredOut: f = !1, isSelected: p = !1, provider: m, className: h = "" }) {
|
|
20850
|
+
let g = Nv({
|
|
20842
20851
|
role: e,
|
|
20843
20852
|
agentName: t,
|
|
20844
20853
|
provider: m,
|
|
20845
20854
|
hasError: c
|
|
20846
|
-
}), _ =
|
|
20855
|
+
}), _ = Mv(e, t), v = c ? "error" : l ? "retry" : u ? "re-edit" : null, x = o != null || s != null ? `${o ?? 0} in · ${s ?? 0} out` : void 0;
|
|
20847
20856
|
return /* @__PURE__ */ b("div", {
|
|
20848
20857
|
className: [
|
|
20849
20858
|
"ft-gnode",
|
|
@@ -20896,7 +20905,7 @@ function Nv({ role: e, agentName: t, turnNumber: n, contentPreview: r, toolCount
|
|
|
20896
20905
|
}), a > 0 && /* @__PURE__ */ y("span", {
|
|
20897
20906
|
className: "ft-gnode-meta-tokens",
|
|
20898
20907
|
title: x,
|
|
20899
|
-
children:
|
|
20908
|
+
children: jv(a)
|
|
20900
20909
|
})]
|
|
20901
20910
|
})
|
|
20902
20911
|
]
|
|
@@ -20904,19 +20913,19 @@ function Nv({ role: e, agentName: t, turnNumber: n, contentPreview: r, toolCount
|
|
|
20904
20913
|
}
|
|
20905
20914
|
//#endregion
|
|
20906
20915
|
//#region src/ui/transcript/graph/GraphToolNode.jsx
|
|
20907
|
-
function
|
|
20916
|
+
function Fv(e) {
|
|
20908
20917
|
return e == null || e <= 0 ? "" : e < 1e3 ? `${Math.round(e)}ms` : `${(e / 1e3).toFixed(1).replace(/\.0$/, "")}s`;
|
|
20909
20918
|
}
|
|
20910
|
-
function
|
|
20919
|
+
function Iv(e) {
|
|
20911
20920
|
if (!e) return "";
|
|
20912
20921
|
let t = e.split("/");
|
|
20913
20922
|
return t[t.length - 1] || e;
|
|
20914
20923
|
}
|
|
20915
|
-
function
|
|
20924
|
+
function Lv(e) {
|
|
20916
20925
|
return !!e.isError || e.exitCode != null && e.exitCode !== 0;
|
|
20917
20926
|
}
|
|
20918
|
-
function
|
|
20919
|
-
let o = e.slice(0, i), s = e.length - o.length, c =
|
|
20927
|
+
function Rv({ tools: e, totalDurationMs: t, hasError: n = !1, isFilteredOut: r = !1, max: i = 4, className: a = "" }) {
|
|
20928
|
+
let o = e.slice(0, i), s = e.length - o.length, c = Fv(t), l = e.length;
|
|
20920
20929
|
return /* @__PURE__ */ b("div", {
|
|
20921
20930
|
className: [
|
|
20922
20931
|
"ft-gnode",
|
|
@@ -20937,7 +20946,7 @@ function Lv({ tools: e, totalDurationMs: t, hasError: n = !1, isFilteredOut: r =
|
|
|
20937
20946
|
}), /* @__PURE__ */ b("ul", {
|
|
20938
20947
|
className: "ft-gnode-tools-list",
|
|
20939
20948
|
children: [o.map((e) => {
|
|
20940
|
-
let t =
|
|
20949
|
+
let t = Lv(e), n = e.preview || Iv(e.filePath);
|
|
20941
20950
|
return /* @__PURE__ */ b("li", {
|
|
20942
20951
|
className: `ft-gnode-tools-row${t ? " ft-gnode-tools-row-failed" : ""}`,
|
|
20943
20952
|
children: [
|
|
@@ -20968,7 +20977,7 @@ function Lv({ tools: e, totalDurationMs: t, hasError: n = !1, isFilteredOut: r =
|
|
|
20968
20977
|
}
|
|
20969
20978
|
//#endregion
|
|
20970
20979
|
//#region src/ui/transcript/graph/GraphSubagentBranch.jsx
|
|
20971
|
-
function
|
|
20980
|
+
function zv({ agentName: e, depth: t, className: n = "" }) {
|
|
20972
20981
|
return /* @__PURE__ */ b("div", {
|
|
20973
20982
|
className: ["ft-gnode-lane", n].filter(Boolean).join(" "),
|
|
20974
20983
|
children: [
|
|
@@ -20989,7 +20998,7 @@ function Rv({ agentName: e, depth: t, className: n = "" }) {
|
|
|
20989
20998
|
}
|
|
20990
20999
|
//#endregion
|
|
20991
21000
|
//#region src/ui/transcript/graph/GraphLegend.jsx
|
|
20992
|
-
var
|
|
21001
|
+
var Bv = Object.freeze([
|
|
20993
21002
|
{
|
|
20994
21003
|
kind: "user",
|
|
20995
21004
|
label: "you"
|
|
@@ -21011,7 +21020,7 @@ var zv = Object.freeze([
|
|
|
21011
21020
|
label: "error"
|
|
21012
21021
|
}
|
|
21013
21022
|
]);
|
|
21014
|
-
function
|
|
21023
|
+
function Vv({ kind: e, provider: t }) {
|
|
21015
21024
|
switch (e) {
|
|
21016
21025
|
case "user": return "teal";
|
|
21017
21026
|
case "assistant": return t === void 0 ? "amber" : n(t);
|
|
@@ -21020,11 +21029,11 @@ function Bv({ kind: e, provider: t }) {
|
|
|
21020
21029
|
default: return null;
|
|
21021
21030
|
}
|
|
21022
21031
|
}
|
|
21023
|
-
function
|
|
21032
|
+
function Hv({ items: e = Bv, className: t = "" }) {
|
|
21024
21033
|
return /* @__PURE__ */ y("div", {
|
|
21025
21034
|
className: ["ft-graph-legend", t].filter(Boolean).join(" "),
|
|
21026
21035
|
children: e.map((e) => {
|
|
21027
|
-
let t =
|
|
21036
|
+
let t = Vv(e), n = t ? { background: `var(--${t})` } : void 0;
|
|
21028
21037
|
return /* @__PURE__ */ b("span", {
|
|
21029
21038
|
className: "ft-graph-legend-item",
|
|
21030
21039
|
children: [/* @__PURE__ */ y("span", {
|
|
@@ -21038,4 +21047,4 @@ function Vv({ items: e = zv, className: t = "" }) {
|
|
|
21038
21047
|
});
|
|
21039
21048
|
}
|
|
21040
21049
|
//#endregion
|
|
21041
|
-
export { Wa as $, Kn as $t, Es as A, en as An, li as At, po as B, Gt as Bn, Rr as Bt, F_ as C,
|
|
21050
|
+
export { Wa as $, Kn as $t, Es as A, en as An, li as At, po as B, Gt as Bn, Rr as Bt, F_ as C, sn as Cn, wi as Ct, v_ as D, an as Dn, gi as Dt, y_ as E, tn as En, _i as Et, ho as F, Jt as Fn, Yr as Ft, $a as G, wr as Gt, bo as H, Dr as Ht, es as I, Xt as In, Xr as It, Za as J, er as Jt, Ja as K, Sr as Kt, zo as L, Yt as Ln, Kr as Lt, os as M, Qt as Mn, si as Mt, vo as N, $t as Nn, ii as Nt, __ as O, nn as On, pi as Ot, Yo as P, Kt as Pn, oi as Pt, Ha as Q, qn as Qt, $o as R, Ut as Rn, zr as Rt, R_ as S, on as Sn, Oi as St, S_ as T, cn as Tn, hi as Tt, eo as U, Tr as Ut, Lo as V, Ar as Vt, Ya as W, br as Wt, qa as X, Un as Xt, Xa as Y, tr as Yt, Ka as Z, Jn as Zt, J_ as _, mn as _n, Mi as _t, Pv as a, Dn as an, Ea as at, U_ as b, dn as bn, Fi as bt, gv as c, En as cn, Sa as ct, hv as d, Sn as dn, ca as dt, Rn as en, Ra as et, fv as f, Cn as fn, da as ft, Y_ as g, gn, Pi as gt, Q_ as h, _n as hn, Qi as ht, Rv as i, On as in, Pa as it, fs as j, Zt as jn, ci as jt, g_ as k, rn as kn, mi as kt, uv as l, bn as ln, Ca as lt, tv as m, yn as mn, aa as mt, Hv as n, Mn as nn, La as nt, Av as o, kn as on, Ta as ot, pv as p, wn as pn, fa as pt, Qa as q, hr as qt, zv as r, jn as rn, Ia as rt, _v as s, An as sn, ka as st, Bv as t, Ln as tn, za as tt, dv as u, xn as un, ga as ut, G_ as v, fn as vn, ji as vt, M_ as w, H as wn, bi as wt, H_ as x, ln as xn, Di as xt, W_ as y, un as yn, Ni as yt, uo as z, Wt as zn, Br as zt };
|