claude-discover 1.10.12 → 1.10.13

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.
@@ -1,5 +1,5 @@
1
1
  import { r as __toESM } from "./rolldown-runtime-SbdDWaPq.js";
2
- import { A as intervalToDuration, B as startOfWeek, C as ChevronDown, D as isSameMonth, E as isToday, F as endOfMonth, G as Go, H as addMonths, I as endOfDay, J as require_jsx_runtime, K as Po, L as isSameDay, M as format, N as endOfWeek, O as isSameWeek, P as startOfMonth, R as addWeeks, S as ChevronRight, T as ArrowDownToLine, U as addDays, V as addHours, W as Ao, X as require_client, Y as require_compiler_runtime, Z as require_react, _ as Globe, a as Z, b as DollarSign, c as Markdown$1, d as Zap, f as WandSparkles, g as LaptopMinimal, h as MessageSquare, i as JsonView, j as getDaysInMonth, k as parse, l as defaultUrlTransform, m as OctagonX, n as w, o as rehypeHighlight, p as Terminal, q as Vo, r as vscodeTheme, s as remarkGfm, t as C, u as encode, v as GitBranch, w as Brain, x as Clock, y as Gauge, z as startOfDay } from "./vendors-SMhG_B6d.js";
2
+ import { A as intervalToDuration, B as startOfWeek, C as ChevronDown, D as isSameMonth, E as isToday, F as endOfMonth, G as Ki, H as addMonths, I as endOfDay, J as require_jsx_runtime, K as Qi, L as isSameDay, M as format, N as endOfWeek, O as isSameWeek, P as startOfMonth, R as addWeeks, S as ChevronRight, T as ArrowDownToLine, U as addDays, V as addHours, W as Hi, X as require_client, Y as require_compiler_runtime, Z as require_react, _ as Globe, a as ve, b as DollarSign, c as Markdown$1, d as Zap, f as WandSparkles, g as LaptopMinimal, h as MessageSquare, i as JsonView, j as getDaysInMonth, k as parse, l as defaultUrlTransform, m as OctagonX, n as w, o as rehypeHighlight, p as Terminal, q as la, r as vscodeTheme, s as remarkGfm, t as C, u as encode, v as GitBranch, w as Brain, x as Clock, y as Gauge, z as startOfDay } from "./vendors-C1ZLrYHz.js";
3
3
  // src/renderer/utils/colors.js
4
4
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
5
5
  var import_client = require_client();
@@ -39,8 +39,10 @@ function useLocalStorage(key, initial) {
39
39
  if ($[0] !== initial || $[1] !== key) {
40
40
  t0 = () => {
41
41
  const raw = localStorage.getItem(key);
42
- if (raw === null) return typeof initial === "function" ? initial() : initial;
43
- return JSON.parse(raw);
42
+ try {
43
+ if (raw !== null) return JSON.parse(raw);
44
+ } catch {}
45
+ return typeof initial === "function" ? initial() : initial;
44
46
  };
45
47
  $[0] = initial;
46
48
  $[1] = key;
@@ -51,7 +53,7 @@ function useLocalStorage(key, initial) {
51
53
  let t2;
52
54
  if ($[3] !== key || $[4] !== value) {
53
55
  t1 = () => {
54
- localStorage.setItem(key, JSON.stringify(value));
56
+ if (value !== void 0) localStorage.setItem(key, JSON.stringify(value));
55
57
  };
56
58
  t2 = [key, value];
57
59
  $[3] = key;
@@ -73,11 +75,11 @@ function useLocalStorage(key, initial) {
73
75
  }
74
76
  function clearOutdatedLocalStorage() {
75
77
  const version = localStorage.getItem(VERSION_KEY);
76
- if (version !== "1.10.12") {
77
- const [MAJOR, MINOR, PATCH] = "1.10.12".split(".");
78
+ if (version !== "1.10.13") {
79
+ const [MAJOR, MINOR, PATCH] = "1.10.13".split(".");
78
80
  const [major, minor, patch] = (version ?? "").split(".");
79
81
  if (MAJOR !== major || MINOR !== minor) localStorage.clear();
80
- localStorage.setItem(VERSION_KEY, "1.10.12");
82
+ localStorage.setItem(VERSION_KEY, "1.10.13");
81
83
  }
82
84
  }
83
85
  // src/renderer/utils/useMouse.js
@@ -1037,7 +1039,7 @@ function layoutGroups(sessions, bar, expanded) {
1037
1039
  if (collapsed.has(s.filePath)) continue;
1038
1040
  addItem(s, {
1039
1041
  id: s.filePath,
1040
- label: s.summary || s.firstUserPrompt || s.firstUserCommand || s.sessionId,
1042
+ label: s.agentDescription || s.summary || s.firstUserPrompt || s.firstUserCommand || s.sessionId,
1041
1043
  start: s.startedAt,
1042
1044
  end: endOf(s),
1043
1045
  source: s.source,
@@ -2420,10 +2422,18 @@ function instructionTitle(it, model) {
2420
2422
  const parts = [it.memory_type, it.model && it.model !== model && it.model].filter(Boolean).join(", ");
2421
2423
  return parts ? `${it.name ?? it.file_path} (${parts})` : it.name ?? it.file_path;
2422
2424
  }
2423
- function compactTitle({ trigger, preTokens }) {
2424
- const detail = [trigger, preTokens && `${fmtCompact(preTokens)} context tokens before`].filter(Boolean).join(" · ");
2425
- return detail ? `Conversation compacted (${detail})` : "Conversation compacted";
2425
+ var compactTitle = (block) => compactTitleParts(block).join("");
2426
+ function compactTitleParts({ trigger, preTokens, summarizing: u }) {
2427
+ const detail = [trigger, preTokens && `${fmtCompact(preTokens)} context tokens before`].filter(Boolean);
2428
+ const note = u ? `summarizing ${fmtCompact(usageTotal(u))} tokens${u.cache_read_input_tokens ? "" : ", no cache hit"}` : "summarizing cost not logged";
2429
+ return [
2430
+ `Conversation compacted (${detail.map((d) => `${d} · `).join("")}`,
2431
+ note,
2432
+ ")"
2433
+ ];
2426
2434
  }
2435
+ var rewindTitle = ({ since }) => since != null ? ["Rewind: Claude no longer sees the conversation ", `since ${format(since, "HH:mm:ss")}`] : ["Rewind: Claude no longer sees the earlier conversation", ""];
2436
+ var usageTotal = (u) => (u.input_tokens || 0) + (u.output_tokens || 0) + (u.cache_creation_input_tokens || 0) + (u.cache_read_input_tokens || 0);
2427
2437
  function safeJson(x) {
2428
2438
  try {
2429
2439
  return JSON.stringify(x, null, 2);
@@ -2794,17 +2804,17 @@ function SessionList(t0) {
2794
2804
  (0, import_react.useEffect)(t1, t2);
2795
2805
  let t3;
2796
2806
  if ($[3] !== sessions) {
2797
- t3 = () => lastChange(sessions.map(_temp3$3));
2807
+ t3 = () => lastChange(sessions.map(_temp3$4));
2798
2808
  $[3] = sessions;
2799
2809
  $[4] = t3;
2800
2810
  } else t3 = $[4];
2801
2811
  const now = useClock(t3);
2802
- const labelCommand = _temp4$3;
2812
+ const labelCommand = _temp4$4;
2803
2813
  let t4;
2804
2814
  if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
2805
2815
  t4 = (s_1) => {
2806
2816
  const c = labelCommand(s_1);
2807
- return c ? `${c.name || c.message} ${c.args}` : s_1.aiTitle || s_1.summary || s_1.firstUserPrompt || s_1.sessionId || "";
2817
+ return c ? `${c.name || c.message} ${c.args}` : s_1.agentDescription || s_1.aiTitle || s_1.summary || s_1.firstUserPrompt || s_1.sessionId || "";
2808
2818
  };
2809
2819
  $[5] = t4;
2810
2820
  } else t4 = $[5];
@@ -2816,6 +2826,7 @@ function SessionList(t0) {
2816
2826
  t5 = q ? sessions.filter((s_2) => [
2817
2827
  s_2.customTitle,
2818
2828
  s_2.agentName,
2829
+ s_2.agentDescription,
2819
2830
  s_2.tag,
2820
2831
  s_2.aiTitle,
2821
2832
  s_2.summary,
@@ -3306,10 +3317,10 @@ function _temp6$1(a_0, b_0) {
3306
3317
  function _temp5$2(a, b) {
3307
3318
  return (b.cost || 0) - (a.cost || 0);
3308
3319
  }
3309
- function _temp4$3(s_0) {
3310
- return !(s_0.aiTitle || s_0.summary || s_0.firstUserPrompt) && parseCommand(s_0.firstUserCommand);
3320
+ function _temp4$4(s_0) {
3321
+ return !(s_0.agentDescription || s_0.aiTitle || s_0.summary || s_0.firstUserPrompt) && parseCommand(s_0.firstUserCommand);
3311
3322
  }
3312
- function _temp3$3(s) {
3323
+ function _temp3$4(s) {
3313
3324
  return s.lastActivityAt;
3314
3325
  }
3315
3326
  function _temp2$5() {
@@ -3440,7 +3451,8 @@ var noteTurn = (it, note, uuid) => metaTurn(it, "system", [{
3440
3451
  folded: !note.level,
3441
3452
  ...note
3442
3453
  }], uuid);
3443
- function flatten(items, { loop = [], side = [] } = {}) {
3454
+ function flatten(items, { loop = [], side = [], compacts = [] } = {}) {
3455
+ const summarizing = [...compacts];
3444
3456
  const turns = [];
3445
3457
  const results = {};
3446
3458
  const resultTs = {};
@@ -3457,9 +3469,15 @@ function flatten(items, { loop = [], side = [] } = {}) {
3457
3469
  while (byUuid.get(p)?.type === "attachment") p = byUuid.get(p).parentUuid;
3458
3470
  return p ?? it.uuid;
3459
3471
  };
3472
+ const firstChild = /* @__PURE__ */ new Map();
3473
+ const promptTs = [];
3474
+ let lastPrompt = 0;
3460
3475
  let lastTs = null;
3461
3476
  for (let it of items) {
3462
3477
  if (it._relogged) continue;
3478
+ const key = !it.isSidechain && it.parentUuid;
3479
+ if (key && !firstChild.has(key)) firstChild.set(key, it);
3480
+ const sibling = key && firstChild.get(key);
3463
3481
  const ts = it.timestamp ? Date.parse(it.timestamp) : null;
3464
3482
  const prevTs = lastTs;
3465
3483
  if (ts != null) lastTs = ts;
@@ -3477,6 +3495,7 @@ function flatten(items, { loop = [], side = [] } = {}) {
3477
3495
  } else {
3478
3496
  turn.blocks[0].trigger = it.compactMetadata?.trigger;
3479
3497
  turn.blocks[0].preTokens = it.compactMetadata?.preTokens;
3498
+ while (summarizing[0]?.timestamp <= it.timestamp) turn.blocks[0].summarizing = summarizing.shift().usage;
3480
3499
  }
3481
3500
  continue;
3482
3501
  }
@@ -3588,10 +3607,18 @@ function flatten(items, { loop = [], side = [] } = {}) {
3588
3607
  results[b.tool_use_id] = b;
3589
3608
  resultTs[b.tool_use_id] = ts;
3590
3609
  }
3610
+ let rewind = role === "user" && sibling && sibling.uuid !== it.uuid ? { since: Date.parse(sibling.timestamp) } : null;
3611
+ const n = role === "user" && it.origin?.kind === "human" && it.turnPosition?.promptIndex;
3612
+ if (n > 0) {
3613
+ if (!rewind && n <= lastPrompt) rewind = { since: promptTs[n] ?? null };
3614
+ lastPrompt = n;
3615
+ promptTs[n] = ts;
3616
+ }
3591
3617
  turns.push({
3592
3618
  uuid: it.uuid,
3593
3619
  role,
3594
3620
  prompt: role === "system" && !it.turnCompanion,
3621
+ rewind,
3595
3622
  ts: it.timestamp ? Date.parse(it.timestamp) : null,
3596
3623
  model: msg.model || null,
3597
3624
  msgId: msg.id || null,
@@ -3758,6 +3785,11 @@ function cycleDurations(groups) {
3758
3785
  });
3759
3786
  }
3760
3787
  var contextSize = (u) => (u.input_tokens || 0) + (u.cache_read_input_tokens || 0) + (u.cache_creation_input_tokens || 0);
3788
+ function contextTokens(meta, { loop = [] } = {}) {
3789
+ if (!meta.contextCompacted) return meta.lastContextTokens;
3790
+ const first = loop.filter((s) => s.timestamp === loop[0].timestamp);
3791
+ return meta.lastContextTokens + first.reduce((a, s) => a + countTokens(s.content, s.model), 0);
3792
+ }
3761
3793
  function branchPoint(groups, forkedFrom, forkedAt, continuesFrom) {
3762
3794
  if (!forkedFrom || continuesFrom != null) return null;
3763
3795
  const i = groups.findIndex((g) => g.turns.some((t) => t.ts > forkedAt));
@@ -4316,7 +4348,7 @@ function Tip(t0) {
4316
4348
  const t2 = `tip ${t1 === void 0 ? "" : t1}`;
4317
4349
  let t3;
4318
4350
  if ($[3] !== props || $[4] !== t2) {
4319
- t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Z, {
4351
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ve, {
4320
4352
  className: t2,
4321
4353
  border: "1px solid var(--tooltip-border)",
4322
4354
  arrowSize: 11,
@@ -4435,6 +4467,14 @@ function ConversationView(t0) {
4435
4467
  title: branch.from,
4436
4468
  children: ["Branched from session ", branch.from.slice(0, 8)]
4437
4469
  });
4470
+ const rewinds = groups.map(_temp2$4);
4471
+ const showSince = (since) => {
4472
+ const from = groups.findIndex((g_1) => g_1.turns.some((t_0) => t_0.ts >= since));
4473
+ [...zoomRef.current.querySelectorAll("[data-group]")].find((el) => Number(el.dataset.group) >= from)?.scrollIntoView({
4474
+ behavior: "smooth",
4475
+ block: "start"
4476
+ });
4477
+ };
4438
4478
  const t13 = ExpandAllContext;
4439
4479
  const t14 = TranscriptFileContext;
4440
4480
  const t15 = `conversation${hasTimeline ? " has-token-timeline" : ""}`;
@@ -4475,31 +4515,36 @@ function ConversationView(t0) {
4475
4515
  $[13] = onShowPeriodOf;
4476
4516
  $[14] = t18;
4477
4517
  } else t18 = $[14];
4478
- const t19 = shown.map((g_0, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
4518
+ const t19 = shown.map((g_2, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
4479
4519
  i === branch?.index && branchDivider,
4480
- g_0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
4481
- className: `conv-row conv-row-${g_0.kind}`,
4520
+ rewinds[i] && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RewindDivider, {
4521
+ rewind: rewinds[i],
4522
+ onShowSince: showSince
4523
+ }),
4524
+ g_2 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
4525
+ className: `conv-row conv-row-${g_2.kind}`,
4526
+ "data-group": i,
4482
4527
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(LazyMount, {
4483
4528
  eager: i < 8,
4484
4529
  forceMount: findOpen,
4485
4530
  placeholderMinHeight: 80,
4486
- children: g_0.kind === "user" || g_0.kind === "system" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputRow, {
4487
- kind: g_0.kind,
4488
- turns: g_0.turns,
4531
+ children: g_2.kind === "user" || g_2.kind === "system" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputRow, {
4532
+ kind: g_2.kind,
4533
+ turns: g_2.turns,
4489
4534
  point: points[i],
4490
4535
  index: i
4491
- }) : g_0.kind === "assistant" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AssistantCard, {
4492
- turns: g_0.turns,
4536
+ }) : g_2.kind === "assistant" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AssistantCard, {
4537
+ turns: g_2.turns,
4493
4538
  point: points[i],
4494
4539
  index: i,
4495
4540
  duration: durations[i],
4496
4541
  ctxLimit,
4497
4542
  showAuthor: groups[i - 1]?.kind !== "assistant"
4498
- }) : g_0.kind === "compact" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Compaction, { block: g_0.turns[0].blocks[0] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstructionRun, {
4499
- turns: g_0.turns,
4543
+ }) : g_2.kind === "compact" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Compaction, { block: g_2.turns[0].blocks[0] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstructionRun, {
4544
+ turns: g_2.turns,
4500
4545
  model
4501
4546
  })
4502
- }), hasTimeline && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TokenPoint, { at: Math.max(...groups[i].turns.map(_temp$7)) })]
4547
+ }), hasTimeline && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TokenPoint, { at: Math.max(...groups[i].turns.map(_temp3$3)) })]
4503
4548
  }),
4504
4549
  groups[i].kind === "user" && groups[i].turns.some(isClearTurn) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Divider, {
4505
4550
  className: "conv-divider",
@@ -4588,30 +4633,90 @@ function ConversationView(t0) {
4588
4633
  } else t26 = $[38];
4589
4634
  return t26;
4590
4635
  }
4636
+ function _temp3$3(t_1) {
4637
+ return t_1.ts ?? 0;
4638
+ }
4639
+ function _temp2$4(g_0) {
4640
+ return g_0.turns.find(_temp$7)?.rewind;
4641
+ }
4591
4642
  function _temp$7(t) {
4592
- return t.ts ?? 0;
4643
+ return t.rewind;
4593
4644
  }
4594
- function Compaction(t0) {
4645
+ function RewindDivider(t0) {
4595
4646
  const $ = (0, import_compiler_runtime.c)(9);
4647
+ const { rewind, onShowSince } = t0;
4648
+ let t1;
4649
+ if ($[0] !== rewind) {
4650
+ t1 = rewindTitle(rewind);
4651
+ $[0] = rewind;
4652
+ $[1] = t1;
4653
+ } else t1 = $[1];
4654
+ const [head, since] = t1;
4655
+ let t2;
4656
+ if ($[2] !== onShowSince || $[3] !== rewind || $[4] !== since) {
4657
+ t2 = since && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
4658
+ type: "button",
4659
+ className: "conv-rewind-since",
4660
+ onClick: () => onShowSince(rewind.since),
4661
+ "data-tooltip-content": "Show where it began",
4662
+ children: since
4663
+ });
4664
+ $[2] = onShowSince;
4665
+ $[3] = rewind;
4666
+ $[4] = since;
4667
+ $[5] = t2;
4668
+ } else t2 = $[5];
4669
+ let t3;
4670
+ if ($[6] !== head || $[7] !== t2) {
4671
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Divider, {
4672
+ className: "conv-divider conv-rewind",
4673
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [head, t2] })
4674
+ });
4675
+ $[6] = head;
4676
+ $[7] = t2;
4677
+ $[8] = t3;
4678
+ } else t3 = $[8];
4679
+ return t3;
4680
+ }
4681
+ function Compaction(t0) {
4682
+ const $ = (0, import_compiler_runtime.c)(14);
4596
4683
  const { block } = t0;
4597
4684
  let t1;
4598
4685
  if ($[0] !== block) {
4599
- t1 = compactTitle(block);
4686
+ t1 = compactTitleParts(block);
4600
4687
  $[0] = block;
4601
4688
  $[1] = t1;
4602
4689
  } else t1 = $[1];
4603
- let t2;
4604
- if ($[2] !== t1) {
4605
- t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Divider, {
4606
- className: "conv-divider",
4607
- children: t1
4690
+ const [head, note, tail] = t1;
4691
+ const t2 = block.summarizing ? "proxy-text" : void 0;
4692
+ let t3;
4693
+ if ($[2] !== note || $[3] !== t2) {
4694
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
4695
+ className: t2,
4696
+ children: note
4608
4697
  });
4609
- $[2] = t1;
4698
+ $[2] = note;
4610
4699
  $[3] = t2;
4611
- } else t2 = $[3];
4612
- let t3;
4613
- if ($[4] !== block.summary) {
4614
- t3 = block.summary && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collapsible, {
4700
+ $[4] = t3;
4701
+ } else t3 = $[4];
4702
+ let t4;
4703
+ if ($[5] !== head || $[6] !== t3 || $[7] !== tail) {
4704
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Divider, {
4705
+ className: "conv-divider",
4706
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
4707
+ head,
4708
+ t3,
4709
+ tail
4710
+ ] })
4711
+ });
4712
+ $[5] = head;
4713
+ $[6] = t3;
4714
+ $[7] = tail;
4715
+ $[8] = t4;
4716
+ } else t4 = $[8];
4717
+ let t5;
4718
+ if ($[9] !== block.summary) {
4719
+ t5 = block.summary && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collapsible, {
4615
4720
  title: "Compact summary",
4616
4721
  tokens: countTokens(block.summary),
4617
4722
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Markdown, {
@@ -4620,17 +4725,17 @@ function Compaction(t0) {
4620
4725
  autoFence: true
4621
4726
  })
4622
4727
  });
4623
- $[4] = block.summary;
4624
- $[5] = t3;
4625
- } else t3 = $[5];
4626
- let t4;
4627
- if ($[6] !== t2 || $[7] !== t3) {
4628
- t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [t2, t3] });
4629
- $[6] = t2;
4630
- $[7] = t3;
4631
- $[8] = t4;
4632
- } else t4 = $[8];
4633
- return t4;
4728
+ $[9] = block.summary;
4729
+ $[10] = t5;
4730
+ } else t5 = $[10];
4731
+ let t6;
4732
+ if ($[11] !== t4 || $[12] !== t5) {
4733
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [t4, t5] });
4734
+ $[11] = t4;
4735
+ $[12] = t5;
4736
+ $[13] = t6;
4737
+ } else t6 = $[13];
4738
+ return t6;
4634
4739
  }
4635
4740
  var ClaudeIcon = () => {
4636
4741
  const $ = (0, import_compiler_runtime.c)(1);
@@ -4849,8 +4954,8 @@ function InputRow(t0) {
4849
4954
  const [open, setOpen] = useCollapsed(false);
4850
4955
  let t1;
4851
4956
  if ($[0] !== index || $[1] !== kind || $[2] !== open || $[3] !== point || $[4] !== setOpen || $[5] !== turns) {
4852
- const msgs = turns.filter(_temp2$4);
4853
- const folded = turns.filter(isFolded).flatMap(_temp3$2);
4957
+ const msgs = turns.filter(_temp4$3);
4958
+ const folded = turns.filter(isFolded).flatMap(_temp5$1);
4854
4959
  const counted = new Set(folded.filter(isCounted));
4855
4960
  const ctxItems = folded.filter((b) => !counted.has(b));
4856
4961
  const ts = (msgs[0] ?? turns[0]).ts;
@@ -4914,13 +5019,13 @@ function InputRow(t0) {
4914
5019
  children: [
4915
5020
  t4,
4916
5021
  t5,
4917
- msgs.some(_temp4$2) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
5022
+ msgs.some(_temp6) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
4918
5023
  className: "msg-summary",
4919
5024
  children: "queued during the previous turn"
4920
5025
  }),
4921
5026
  ctxItems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
4922
5027
  className: "msg-summary",
4923
- onClick: () => setOpen(_temp5$1),
5028
+ onClick: () => setOpen(_temp7),
4924
5029
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
4925
5030
  className: "aux-chevron",
4926
5031
  children: open ? "▾" : "▸"
@@ -4936,7 +5041,7 @@ function InputRow(t0) {
4936
5041
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Block, { block: b_1 })
4937
5042
  }, i) : open && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Block, { block: b_1 }, i))
4938
5043
  }),
4939
- msgs.map(_temp6)
5044
+ msgs.map(_temp8)
4940
5045
  ]
4941
5046
  });
4942
5047
  $[0] = index;
@@ -4949,19 +5054,19 @@ function InputRow(t0) {
4949
5054
  } else t1 = $[6];
4950
5055
  return t1;
4951
5056
  }
4952
- function _temp6(t_2) {
5057
+ function _temp8(t_2) {
4953
5058
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TurnRow, { turn: t_2 }, t_2.uuid);
4954
5059
  }
4955
- function _temp5$1(v) {
5060
+ function _temp7(v) {
4956
5061
  return !v;
4957
5062
  }
4958
- function _temp4$2(t_1) {
5063
+ function _temp6(t_1) {
4959
5064
  return t_1.queued;
4960
5065
  }
4961
- function _temp3$2(t_0) {
5066
+ function _temp5$1(t_0) {
4962
5067
  return t_0.blocks;
4963
5068
  }
4964
- function _temp2$4(t) {
5069
+ function _temp4$3(t) {
4965
5070
  return !isFolded(t);
4966
5071
  }
4967
5072
  function AssistantCard(t0) {
@@ -4969,12 +5074,12 @@ function AssistantCard(t0) {
4969
5074
  const { turns, point, index, duration, ctxLimit, showAuthor: t1 } = t0;
4970
5075
  const showAuthor = t1 === void 0 ? true : t1;
4971
5076
  const [open, setOpen] = useCollapsed(false);
4972
- const toolBlocks = turns.flatMap(_temp8);
4973
- const errorCount = toolBlocks.filter(_temp9).length;
4974
- const skillCount = toolBlocks.filter(_temp10).length;
4975
- const isAux = _temp12;
5077
+ const toolBlocks = turns.flatMap(_temp10);
5078
+ const errorCount = toolBlocks.filter(_temp11).length;
5079
+ const skillCount = toolBlocks.filter(_temp12).length;
5080
+ const isAux = _temp14;
4976
5081
  const foldable = toolBlocks.length > 0 && turns.some(isAux);
4977
- const end = turns.findLast(_temp13)?.ts ?? null;
5082
+ const end = turns.findLast(_temp15)?.ts ?? null;
4978
5083
  const [everOpen, setEverOpen] = (0, import_react.useState)(false);
4979
5084
  if (open && !everOpen) setEverOpen(true);
4980
5085
  const hidden = (t_2) => !open && foldable && isAux(t_2);
@@ -5010,7 +5115,7 @@ function AssistantCard(t0) {
5010
5115
  const parts = t5;
5011
5116
  let t6;
5012
5117
  if ($[8] !== parts) {
5013
- t6 = parts.map(_temp14);
5118
+ t6 = parts.map(_temp16);
5014
5119
  $[8] = parts;
5015
5120
  $[9] = t6;
5016
5121
  } else t6 = $[9];
@@ -5033,7 +5138,7 @@ function AssistantCard(t0) {
5033
5138
  } else t9 = $[13];
5034
5139
  const t10 = parts.length > 0 && (foldable ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
5035
5140
  className: "msg-summary",
5036
- onClick: () => setOpen(_temp15),
5141
+ onClick: () => setOpen(_temp17),
5037
5142
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
5038
5143
  className: "aux-chevron",
5039
5144
  children: open ? "▾" : "▸"
@@ -5119,31 +5224,31 @@ function AssistantCard(t0) {
5119
5224
  } else t17 = $[31];
5120
5225
  return t17;
5121
5226
  }
5122
- function _temp15(v) {
5227
+ function _temp17(v) {
5123
5228
  return !v;
5124
5229
  }
5125
- function _temp14(p, i) {
5230
+ function _temp16(p, i) {
5126
5231
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [i > 0 && ", ", p] }, i);
5127
5232
  }
5128
- function _temp13(t_1) {
5233
+ function _temp15(t_1) {
5129
5234
  return t_1.ts != null;
5130
5235
  }
5131
- function _temp12(t_0) {
5132
- return t_0.role === "system" ? isFolded(t_0) : !t_0.blocks.some(_temp11);
5236
+ function _temp14(t_0) {
5237
+ return t_0.role === "system" ? isFolded(t_0) : !t_0.blocks.some(_temp13);
5133
5238
  }
5134
- function _temp11(b_2) {
5239
+ function _temp13(b_2) {
5135
5240
  return b_2.type === "text";
5136
5241
  }
5137
- function _temp10(b_1) {
5242
+ function _temp12(b_1) {
5138
5243
  return b_1.name === "Skill";
5139
5244
  }
5140
- function _temp9(b_0) {
5245
+ function _temp11(b_0) {
5141
5246
  return b_0.result?.is_error;
5142
5247
  }
5143
- function _temp8(t) {
5144
- return t.blocks.filter(_temp7);
5248
+ function _temp10(t) {
5249
+ return t.blocks.filter(_temp9);
5145
5250
  }
5146
- function _temp7(b) {
5251
+ function _temp9(b) {
5147
5252
  return b.type === "tool_use";
5148
5253
  }
5149
5254
  function TurnRow(t0) {
@@ -5169,7 +5274,7 @@ function TurnRow(t0) {
5169
5274
  }
5170
5275
  let t3;
5171
5276
  if ($[4] !== turn.blocks) {
5172
- t3 = turn.blocks.some(_temp16);
5277
+ t3 = turn.blocks.some(_temp18);
5173
5278
  $[4] = turn.blocks;
5174
5279
  $[5] = t3;
5175
5280
  } else t3 = $[5];
@@ -5180,7 +5285,7 @@ function TurnRow(t0) {
5180
5285
  let t7;
5181
5286
  let t8;
5182
5287
  if ($[6] !== contextBlocks || $[7] !== hasError || $[8] !== hidden || $[9] !== otherBlocks || $[10] !== speaker || $[11] !== turn.blocks || $[12] !== turn.role || $[13] !== turn.ts) {
5183
- const instructions = turn.blocks.filter(_temp17);
5288
+ const instructions = turn.blocks.filter(_temp19);
5184
5289
  t8 = `turn turn-${turn.role} ${hasError ? "turn-error" : ""} ${hidden ? "turn-hidden" : ""}`;
5185
5290
  t4 = "turn-blocks";
5186
5291
  if ($[19] !== contextBlocks) {
@@ -5188,7 +5293,7 @@ function TurnRow(t0) {
5188
5293
  className: "attachment",
5189
5294
  defaultOpen: false,
5190
5295
  title: plural(contextBlocks.length, "attachment"),
5191
- children: contextBlocks.map(_temp18)
5296
+ children: contextBlocks.map(_temp20)
5192
5297
  });
5193
5298
  $[19] = contextBlocks;
5194
5299
  $[20] = t5;
@@ -5207,7 +5312,7 @@ function TurnRow(t0) {
5207
5312
  t7 = instructions.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
5208
5313
  className: "aux instruction-total",
5209
5314
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ApproxTokens, {
5210
- tokens: instructions.reduce(_temp19, 0),
5315
+ tokens: instructions.reduce(_temp21, 0),
5211
5316
  tip: "Approx. total tokens"
5212
5317
  })
5213
5318
  });
@@ -5259,10 +5364,10 @@ function TurnRow(t0) {
5259
5364
  } else t10 = $[32];
5260
5365
  return t10;
5261
5366
  }
5262
- function _temp19(a, b_4) {
5367
+ function _temp21(a, b_4) {
5263
5368
  return a + countTokens(b_4.it.content, b_4.it.model);
5264
5369
  }
5265
- function _temp18(b_2, i) {
5370
+ function _temp20(b_2, i) {
5266
5371
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Attachment, {
5267
5372
  att: b_2.attachment,
5268
5373
  rendered: b_2.rendered,
@@ -5270,10 +5375,10 @@ function _temp18(b_2, i) {
5270
5375
  unsent: b_2.unsent
5271
5376
  }, i);
5272
5377
  }
5273
- function _temp17(b_1) {
5378
+ function _temp19(b_1) {
5274
5379
  return b_1.type === "instruction";
5275
5380
  }
5276
- function _temp16(b_0) {
5381
+ function _temp18(b_0) {
5277
5382
  return b_0.type === "tool_use" && b_0.result?.is_error;
5278
5383
  }
5279
5384
  function Block(t0) {
@@ -5511,7 +5616,7 @@ function Block(t0) {
5511
5616
  } else t6 = $[49];
5512
5617
  let t7;
5513
5618
  if ($[50] !== parts) {
5514
- t7 = parts.map(_temp20);
5619
+ t7 = parts.map(_temp22);
5515
5620
  $[50] = parts;
5516
5621
  $[51] = t7;
5517
5622
  } else t7 = $[51];
@@ -5686,7 +5791,7 @@ function Block(t0) {
5686
5791
  } else t6 = $[97];
5687
5792
  return t6;
5688
5793
  }
5689
- function _temp20(p, i) {
5794
+ function _temp22(p, i) {
5690
5795
  return p.type === "text" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SavedOutputLink, { text: p.text }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { children: p.text })] }, i) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Block, { block: p }, i);
5691
5796
  }
5692
5797
  function SavedOutputLink(t0) {
@@ -5848,7 +5953,7 @@ function Collapsible(t0) {
5848
5953
  const t3 = `aux ${className || ""}`;
5849
5954
  let t4;
5850
5955
  if ($[0] !== setOpen) {
5851
- t4 = () => setOpen(_temp21);
5956
+ t4 = () => setOpen(_temp23);
5852
5957
  $[0] = setOpen;
5853
5958
  $[1] = t4;
5854
5959
  } else t4 = $[1];
@@ -5927,7 +6032,7 @@ function Collapsible(t0) {
5927
6032
  } else t12 = $[23];
5928
6033
  return t12;
5929
6034
  }
5930
- function _temp21(v) {
6035
+ function _temp23(v) {
5931
6036
  return !v;
5932
6037
  }
5933
6038
  var fmtElapsed = (ms) => ms < 1e3 ? "<1s" : fmtDuration(ms);
@@ -5968,7 +6073,7 @@ function InstructionRun(t0) {
5968
6073
  const { turns, model } = t0;
5969
6074
  let t1;
5970
6075
  if ($[0] !== model || $[1] !== turns) {
5971
- const strips = turns.flatMap(_temp22).map(_temp23);
6076
+ const strips = turns.flatMap(_temp24).map(_temp25);
5972
6077
  let t2;
5973
6078
  let t3;
5974
6079
  let t4;
@@ -6028,11 +6133,11 @@ function InstructionRun(t0) {
6028
6133
  } else t1 = $[2];
6029
6134
  return t1;
6030
6135
  }
6031
- function _temp23(t0) {
6136
+ function _temp25(t0) {
6032
6137
  const { it } = t0;
6033
6138
  return it;
6034
6139
  }
6035
- function _temp22(t) {
6140
+ function _temp24(t) {
6036
6141
  return t.blocks;
6037
6142
  }
6038
6143
  function InstructionFile(t0) {
@@ -6054,7 +6159,7 @@ function InstructionFile(t0) {
6054
6159
  t10 = `aux instruction-file ${className}`;
6055
6160
  t7 = "aux-toggle";
6056
6161
  if ($[14] !== setOpen) {
6057
- t8 = () => setOpen(_temp24);
6162
+ t8 = () => setOpen(_temp26);
6058
6163
  $[14] = setOpen;
6059
6164
  $[15] = t8;
6060
6165
  } else t8 = $[15];
@@ -6167,7 +6272,7 @@ function InstructionFile(t0) {
6167
6272
  } else t15 = $[38];
6168
6273
  return t15;
6169
6274
  }
6170
- function _temp24(v) {
6275
+ function _temp26(v) {
6171
6276
  return !v;
6172
6277
  }
6173
6278
  function ItemFolds(t0) {
@@ -6692,11 +6797,7 @@ var splitUrl = (url) => {
6692
6797
  return [method, path.join(" ")];
6693
6798
  };
6694
6799
  var tokens = (n) => n == null ? "" : n < 1e3 ? `${n}` : `${(n / 1e3).toFixed(1)}k`;
6695
- var totalTokens = (rec) => {
6696
- const u = rec?.response?.usage;
6697
- if (!u) return null;
6698
- return (u.input_tokens || 0) + (u.output_tokens || 0) + (u.cache_creation_input_tokens || 0) + (u.cache_read_input_tokens || 0);
6699
- };
6800
+ var totalTokens = (rec) => rec?.response?.usage ? usageTotal(rec.response.usage) : null;
6700
6801
  var collapsedHint = (value, keyName) => {
6701
6802
  if (value?.role) {
6702
6803
  const counts = /* @__PURE__ */ new Map();
@@ -7046,7 +7147,7 @@ function RequestsView(t0) {
7046
7147
  }
7047
7148
  let t7;
7048
7149
  if ($[17] !== records) {
7049
- t7 = new Set(records.map(_temp3$1));
7150
+ t7 = new Set(records.map(_temp3$2));
7050
7151
  $[17] = records;
7051
7152
  $[18] = t7;
7052
7153
  } else t7 = $[18];
@@ -7059,7 +7160,7 @@ function RequestsView(t0) {
7059
7160
  const missed = items?.filter((o) => o.requestId && !captured.has(o.requestId)) ?? [];
7060
7161
  const gapRow = (t12, to) => {
7061
7162
  const from = t12 === void 0 ? "" : t12;
7062
- const n = new Set(missed.filter((o_0) => o_0.timestamp >= from && (!to || o_0.timestamp < to)).map(_temp4$1)).size;
7163
+ const n = new Set(missed.filter((o_0) => o_0.timestamp >= from && (!to || o_0.timestamp < to)).map(_temp4$2)).size;
7063
7164
  return n > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", {
7064
7165
  className: "requests-missed",
7065
7166
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Divider, { children: [
@@ -7198,10 +7299,10 @@ function RequestsView(t0) {
7198
7299
  } else t17 = $[45];
7199
7300
  return t17;
7200
7301
  }
7201
- function _temp4$1(o_1) {
7302
+ function _temp4$2(o_1) {
7202
7303
  return o_1.requestId;
7203
7304
  }
7204
- function _temp3$1(r) {
7305
+ function _temp3$2(r) {
7205
7306
  return r.responseHeaders?.["request-id"];
7206
7307
  }
7207
7308
  function _temp2$3(p) {
@@ -7333,8 +7434,8 @@ function AgentOutput(t0) {
7333
7434
  }
7334
7435
  // src/renderer/sessions/SessionSummary.jsx
7335
7436
  function SessionSummary(t0) {
7336
- const $ = (0, import_compiler_runtime.c)(252);
7337
- const { meta, items, requestLog, agent, granularity: t1 } = t0;
7437
+ const $ = (0, import_compiler_runtime.c)(236);
7438
+ const { meta, items, instructions, requestLog, agent, granularity: t1 } = t0;
7338
7439
  const timeFormat = (t1 === void 0 ? "day" : t1) === "day" ? "pp" : "MMM d, pp";
7339
7440
  const t = meta.tokens;
7340
7441
  const totalTokens = meta.totalTokens;
@@ -7351,369 +7452,323 @@ function SessionSummary(t0) {
7351
7452
  $[1] = t2;
7352
7453
  } else t2 = $[1];
7353
7454
  const modelLabel = t2;
7455
+ let compactions;
7456
+ let rewinds;
7354
7457
  let t3;
7355
7458
  let t4;
7356
7459
  let t5;
7357
7460
  let t6;
7358
7461
  let t7;
7359
7462
  let t8;
7360
- if ($[2] !== activeDuration || $[3] !== agent || $[4] !== cost || $[5] !== items || $[6] !== meta || $[7] !== modelLabel || $[8] !== totalTokens) {
7463
+ if ($[2] !== activeDuration || $[3] !== agent || $[4] !== cost || $[5] !== instructions || $[6] !== items || $[7] !== meta || $[8] !== modelLabel || $[9] !== totalTokens) {
7361
7464
  const advice = cacheAdvice(meta);
7362
- let T0;
7363
- let T1;
7364
- let ctxLimit;
7365
- let ctxTone;
7465
+ const ctxLimit = contextWindow(meta.models);
7466
+ const ctx = contextTokens(meta, instructions);
7467
+ const ctxTone = tone(ctx, THRESHOLDS.context);
7468
+ let t9;
7469
+ if ($[18] !== items) {
7470
+ const turns = items ? flatten(items) : [];
7471
+ rewinds = turns.filter(_temp$4).length;
7472
+ t9 = turns.filter(_temp2$2);
7473
+ $[18] = items;
7474
+ $[19] = rewinds;
7475
+ $[20] = t9;
7476
+ } else {
7477
+ rewinds = $[19];
7478
+ t9 = $[20];
7479
+ }
7480
+ compactions = t9.length;
7481
+ const busy = agent.running || !items;
7366
7482
  let t10;
7483
+ if ($[21] !== agent) {
7484
+ t10 = (e) => {
7485
+ e.preventDefault();
7486
+ const question = e.currentTarget.elements.question.value.trim();
7487
+ if (question) agent.ask(question);
7488
+ };
7489
+ $[21] = agent;
7490
+ $[22] = t10;
7491
+ } else t10 = $[22];
7492
+ const ask = t10;
7493
+ t7 = "session-summary";
7367
7494
  let t11;
7495
+ if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
7496
+ t11 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
7497
+ className: "summary-label",
7498
+ children: "Session Analyze"
7499
+ });
7500
+ $[23] = t11;
7501
+ } else t11 = $[23];
7368
7502
  let t12;
7503
+ if ($[24] !== busy) {
7504
+ t12 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("textarea", {
7505
+ name: "question",
7506
+ rows: 3,
7507
+ placeholder: "Ask anything about this session…",
7508
+ disabled: busy,
7509
+ onKeyDown: _temp3$1
7510
+ });
7511
+ $[24] = busy;
7512
+ $[25] = t12;
7513
+ } else t12 = $[25];
7369
7514
  let t13;
7515
+ if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
7516
+ t13 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WandSparkles, { size: 12 });
7517
+ $[26] = t13;
7518
+ } else t13 = $[26];
7370
7519
  let t14;
7520
+ if ($[27] !== busy) {
7521
+ t14 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
7522
+ type: "submit",
7523
+ className: "button-primary",
7524
+ disabled: busy,
7525
+ children: [t13, " Ask"]
7526
+ });
7527
+ $[27] = busy;
7528
+ $[28] = t14;
7529
+ } else t14 = $[28];
7371
7530
  let t15;
7372
- let t16;
7373
- let t9;
7374
- if ($[15] !== activeDuration || $[16] !== agent || $[17] !== cost || $[18] !== items || $[19] !== meta.lastContextTokens || $[20] !== meta.models || $[21] !== meta.priceUnknown || $[22] !== modelLabel || $[23] !== totalTokens) {
7375
- ctxLimit = contextWindow(meta.models);
7376
- let t17;
7377
- if ($[40] !== meta.lastContextTokens) {
7378
- t17 = tone(meta.lastContextTokens, THRESHOLDS.context);
7379
- $[40] = meta.lastContextTokens;
7380
- $[41] = t17;
7381
- } else t17 = $[41];
7382
- ctxTone = t17;
7383
- const busy = agent.running || !items;
7384
- let t18;
7385
- if ($[42] !== agent) {
7386
- t18 = (e) => {
7387
- e.preventDefault();
7388
- const question = e.currentTarget.elements.question.value.trim();
7389
- if (question) agent.ask(question);
7390
- };
7391
- $[42] = agent;
7392
- $[43] = t18;
7393
- } else t18 = $[43];
7394
- const ask = t18;
7395
- t7 = "session-summary";
7396
- let t19;
7397
- if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
7398
- t19 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
7399
- className: "summary-label",
7400
- children: "Session Analyze"
7401
- });
7402
- $[44] = t19;
7403
- } else t19 = $[44];
7404
- let t20;
7405
- if ($[45] !== busy) {
7406
- t20 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("textarea", {
7407
- name: "question",
7408
- rows: 3,
7409
- placeholder: "Ask anything about this session…",
7410
- disabled: busy,
7411
- onKeyDown: _temp$4
7412
- });
7413
- $[45] = busy;
7414
- $[46] = t20;
7415
- } else t20 = $[46];
7416
- let t21;
7417
- if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
7418
- t21 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WandSparkles, { size: 12 });
7419
- $[47] = t21;
7420
- } else t21 = $[47];
7421
- let t22;
7422
- if ($[48] !== busy) {
7423
- t22 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
7424
- type: "submit",
7425
- className: "button-primary",
7426
- disabled: busy,
7427
- children: [t21, " Ask"]
7428
- });
7429
- $[48] = busy;
7430
- $[49] = t22;
7431
- } else t22 = $[49];
7432
- let t23;
7433
- if ($[50] !== ask || $[51] !== t20 || $[52] !== t22) {
7434
- t23 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", {
7435
- className: "summary-ask",
7436
- onSubmit: ask,
7437
- children: [t20, t22]
7438
- });
7439
- $[50] = ask;
7440
- $[51] = t20;
7441
- $[52] = t22;
7442
- $[53] = t23;
7443
- } else t23 = $[53];
7444
- let t24;
7445
- if ($[54] !== agent) {
7446
- t24 = () => agent.analyze();
7447
- $[54] = agent;
7448
- $[55] = t24;
7449
- } else t24 = $[55];
7450
- let t25;
7451
- if ($[56] !== busy || $[57] !== t24) {
7452
- t25 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
7453
- type: "button",
7454
- onClick: t24,
7455
- disabled: busy,
7456
- children: "How to optimize?"
7457
- });
7458
- $[56] = busy;
7459
- $[57] = t24;
7460
- $[58] = t25;
7461
- } else t25 = $[58];
7462
- let t26;
7463
- if ($[59] !== agent) {
7464
- t26 = () => agent.diagnose();
7465
- $[59] = agent;
7466
- $[60] = t26;
7467
- } else t26 = $[60];
7468
- let t27;
7469
- if ($[61] !== busy || $[62] !== t26) {
7470
- t27 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
7471
- type: "button",
7472
- onClick: t26,
7473
- disabled: busy,
7474
- children: "What went wrong?"
7475
- });
7476
- $[61] = busy;
7477
- $[62] = t26;
7478
- $[63] = t27;
7479
- } else t27 = $[63];
7480
- let t28;
7481
- if ($[64] !== t25 || $[65] !== t27) {
7482
- t28 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
7483
- className: "summary-ask-presets",
7484
- children: [t25, t27]
7485
- });
7486
- $[64] = t25;
7487
- $[65] = t27;
7488
- $[66] = t28;
7489
- } else t28 = $[66];
7490
- if ($[67] !== t23 || $[68] !== t28) {
7491
- t8 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
7492
- className: "summary-head",
7493
- children: [
7494
- t19,
7495
- t23,
7496
- t28
7497
- ]
7498
- });
7499
- $[67] = t23;
7500
- $[68] = t28;
7501
- $[69] = t8;
7502
- } else t8 = $[69];
7503
- t3 = "session-summary-body";
7504
- if ($[70] !== agent.error || $[71] !== agent.output || $[72] !== agent.running) {
7505
- t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
7506
- className: "summary-ai",
7507
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AgentOutput, {
7508
- output: agent.output,
7509
- running: agent.running,
7510
- error: agent.error
7511
- })
7512
- });
7513
- $[70] = agent.error;
7514
- $[71] = agent.output;
7515
- $[72] = agent.running;
7516
- $[73] = t4;
7517
- } else t4 = $[73];
7518
- T1 = Section;
7519
- t13 = "Summary";
7520
- let t29;
7521
- if ($[74] !== meta.priceUnknown || $[75] !== modelLabel) {
7522
- t29 = meta.priceUnknown && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7523
- className: "danger-badge",
7524
- role: "img",
7525
- "aria-label": "No price entry",
7526
- "data-tooltip-content": `No price entry for ${modelLabel} — cost is missing or understated`,
7527
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DollarSign, { size: 11 })
7528
- });
7529
- $[74] = meta.priceUnknown;
7530
- $[75] = modelLabel;
7531
- $[76] = t29;
7532
- } else t29 = $[76];
7533
- let t30;
7534
- if ($[77] !== cost) {
7535
- t30 = tone(cost, THRESHOLDS.cost);
7536
- $[77] = cost;
7537
- $[78] = t30;
7538
- } else t30 = $[78];
7539
- let t31;
7540
- if ($[79] !== cost) {
7541
- t31 = fmtUSD(cost);
7542
- $[79] = cost;
7543
- $[80] = t31;
7544
- } else t31 = $[80];
7545
- let t32;
7546
- if ($[81] !== t30 || $[82] !== t31) {
7547
- t32 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7548
- className: t30,
7549
- children: t31
7550
- });
7551
- $[81] = t30;
7552
- $[82] = t31;
7553
- $[83] = t32;
7554
- } else t32 = $[83];
7555
- if ($[84] !== t29 || $[85] !== t32) {
7556
- t14 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7557
- label: "Estimated cost",
7558
- value: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [t29, t32] })
7559
- });
7560
- $[84] = t29;
7561
- $[85] = t32;
7562
- $[86] = t14;
7563
- } else t14 = $[86];
7564
- let t33;
7565
- if ($[87] !== totalTokens) {
7566
- t33 = tone(totalTokens, THRESHOLDS.tokens);
7567
- $[87] = totalTokens;
7568
- $[88] = t33;
7569
- } else t33 = $[88];
7570
- let t34;
7571
- if ($[89] !== totalTokens) {
7572
- t34 = fmtCompact(totalTokens);
7573
- $[89] = totalTokens;
7574
- $[90] = t34;
7575
- } else t34 = $[90];
7576
- if ($[91] !== t33 || $[92] !== t34) {
7577
- t15 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7578
- label: "Total tokens",
7579
- value: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7580
- className: t33,
7581
- children: t34
7582
- })
7583
- });
7584
- $[91] = t33;
7585
- $[92] = t34;
7586
- $[93] = t15;
7587
- } else t15 = $[93];
7588
- let t35;
7589
- if ($[94] !== activeDuration) {
7590
- t35 = tone(activeDuration, THRESHOLDS.workTime);
7591
- $[94] = activeDuration;
7592
- $[95] = t35;
7593
- } else t35 = $[95];
7594
- let t36;
7595
- if ($[96] !== activeDuration) {
7596
- t36 = fmtDuration(activeDuration);
7597
- $[96] = activeDuration;
7598
- $[97] = t36;
7599
- } else t36 = $[97];
7600
- if ($[98] !== t35 || $[99] !== t36) {
7601
- t16 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7602
- label: "Working time",
7603
- value: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7604
- className: t35,
7605
- children: t36
7606
- })
7607
- });
7608
- $[98] = t35;
7609
- $[99] = t36;
7610
- $[100] = t16;
7611
- } else t16 = $[100];
7612
- T0 = Field;
7613
- t12 = "Context size";
7614
- t11 = ctxTone;
7615
- if ($[101] !== meta.lastContextTokens) {
7616
- t9 = fmtCompact(meta.lastContextTokens);
7617
- $[101] = meta.lastContextTokens;
7618
- $[102] = t9;
7619
- } else t9 = $[102];
7620
- t10 = fmtCompact(ctxLimit);
7621
- $[15] = activeDuration;
7622
- $[16] = agent;
7623
- $[17] = cost;
7624
- $[18] = items;
7625
- $[19] = meta.lastContextTokens;
7626
- $[20] = meta.models;
7627
- $[21] = meta.priceUnknown;
7628
- $[22] = modelLabel;
7629
- $[23] = totalTokens;
7630
- $[24] = T0;
7631
- $[25] = T1;
7632
- $[26] = ctxLimit;
7633
- $[27] = ctxTone;
7634
- $[28] = t10;
7635
- $[29] = t11;
7531
+ if ($[29] !== ask || $[30] !== t12 || $[31] !== t14) {
7532
+ t15 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", {
7533
+ className: "summary-ask",
7534
+ onSubmit: ask,
7535
+ children: [t12, t14]
7536
+ });
7537
+ $[29] = ask;
7636
7538
  $[30] = t12;
7637
- $[31] = t13;
7638
- $[32] = t14;
7639
- $[33] = t15;
7539
+ $[31] = t14;
7540
+ $[32] = t15;
7541
+ } else t15 = $[32];
7542
+ let t16;
7543
+ if ($[33] !== agent) {
7544
+ t16 = () => agent.analyze();
7545
+ $[33] = agent;
7640
7546
  $[34] = t16;
7641
- $[35] = t3;
7642
- $[36] = t4;
7643
- $[37] = t7;
7644
- $[38] = t8;
7645
- $[39] = t9;
7646
- } else {
7647
- T0 = $[24];
7648
- T1 = $[25];
7649
- ctxLimit = $[26];
7650
- ctxTone = $[27];
7651
- t10 = $[28];
7652
- t11 = $[29];
7653
- t12 = $[30];
7654
- t13 = $[31];
7655
- t14 = $[32];
7656
- t15 = $[33];
7657
- t16 = $[34];
7658
- t3 = $[35];
7659
- t4 = $[36];
7660
- t7 = $[37];
7661
- t8 = $[38];
7662
- t9 = $[39];
7663
- }
7664
- const t17 = `${t9} / ${t10}`;
7547
+ } else t16 = $[34];
7548
+ let t17;
7549
+ if ($[35] !== busy || $[36] !== t16) {
7550
+ t17 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
7551
+ type: "button",
7552
+ onClick: t16,
7553
+ disabled: busy,
7554
+ children: "How to optimize?"
7555
+ });
7556
+ $[35] = busy;
7557
+ $[36] = t16;
7558
+ $[37] = t17;
7559
+ } else t17 = $[37];
7665
7560
  let t18;
7666
- if ($[103] !== t11 || $[104] !== t17) {
7667
- t18 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7668
- className: t11,
7669
- children: t17
7561
+ if ($[38] !== agent) {
7562
+ t18 = () => agent.diagnose();
7563
+ $[38] = agent;
7564
+ $[39] = t18;
7565
+ } else t18 = $[39];
7566
+ let t19;
7567
+ if ($[40] !== busy || $[41] !== t18) {
7568
+ t19 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
7569
+ type: "button",
7570
+ onClick: t18,
7571
+ disabled: busy,
7572
+ children: "What went wrong?"
7670
7573
  });
7671
- $[103] = t11;
7672
- $[104] = t17;
7673
- $[105] = t18;
7674
- } else t18 = $[105];
7675
- const t19 = meta.lastContextTokens / ctxLimit * 100;
7574
+ $[40] = busy;
7575
+ $[41] = t18;
7576
+ $[42] = t19;
7577
+ } else t19 = $[42];
7676
7578
  let t20;
7677
- if ($[106] !== ctxTone || $[107] !== t19) {
7678
- t20 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProgressBar, {
7679
- pct: t19,
7579
+ if ($[43] !== t17 || $[44] !== t19) {
7580
+ t20 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
7581
+ className: "summary-ask-presets",
7582
+ children: [t17, t19]
7583
+ });
7584
+ $[43] = t17;
7585
+ $[44] = t19;
7586
+ $[45] = t20;
7587
+ } else t20 = $[45];
7588
+ if ($[46] !== t15 || $[47] !== t20) {
7589
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
7590
+ className: "summary-head",
7591
+ children: [
7592
+ t11,
7593
+ t15,
7594
+ t20
7595
+ ]
7596
+ });
7597
+ $[46] = t15;
7598
+ $[47] = t20;
7599
+ $[48] = t8;
7600
+ } else t8 = $[48];
7601
+ t3 = "session-summary-body";
7602
+ if ($[49] !== agent.error || $[50] !== agent.output || $[51] !== agent.running) {
7603
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
7604
+ className: "summary-ai",
7605
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AgentOutput, {
7606
+ output: agent.output,
7607
+ running: agent.running,
7608
+ error: agent.error
7609
+ })
7610
+ });
7611
+ $[49] = agent.error;
7612
+ $[50] = agent.output;
7613
+ $[51] = agent.running;
7614
+ $[52] = t4;
7615
+ } else t4 = $[52];
7616
+ const T0 = Section;
7617
+ const t21 = "Summary";
7618
+ let t22;
7619
+ if ($[53] !== meta.priceUnknown || $[54] !== modelLabel) {
7620
+ t22 = meta.priceUnknown && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7621
+ className: "danger-badge",
7622
+ role: "img",
7623
+ "aria-label": "No price entry",
7624
+ "data-tooltip-content": `No price entry for ${modelLabel} — cost is missing or understated`,
7625
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DollarSign, { size: 11 })
7626
+ });
7627
+ $[53] = meta.priceUnknown;
7628
+ $[54] = modelLabel;
7629
+ $[55] = t22;
7630
+ } else t22 = $[55];
7631
+ let t23;
7632
+ if ($[56] !== cost) {
7633
+ t23 = tone(cost, THRESHOLDS.cost);
7634
+ $[56] = cost;
7635
+ $[57] = t23;
7636
+ } else t23 = $[57];
7637
+ let t24;
7638
+ if ($[58] !== cost) {
7639
+ t24 = fmtUSD(cost);
7640
+ $[58] = cost;
7641
+ $[59] = t24;
7642
+ } else t24 = $[59];
7643
+ let t25;
7644
+ if ($[60] !== t23 || $[61] !== t24) {
7645
+ t25 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7646
+ className: t23,
7647
+ children: t24
7648
+ });
7649
+ $[60] = t23;
7650
+ $[61] = t24;
7651
+ $[62] = t25;
7652
+ } else t25 = $[62];
7653
+ let t26;
7654
+ if ($[63] !== t22 || $[64] !== t25) {
7655
+ t26 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7656
+ label: "Estimated cost",
7657
+ value: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [t22, t25] })
7658
+ });
7659
+ $[63] = t22;
7660
+ $[64] = t25;
7661
+ $[65] = t26;
7662
+ } else t26 = $[65];
7663
+ let t27;
7664
+ if ($[66] !== totalTokens) {
7665
+ t27 = tone(totalTokens, THRESHOLDS.tokens);
7666
+ $[66] = totalTokens;
7667
+ $[67] = t27;
7668
+ } else t27 = $[67];
7669
+ let t28;
7670
+ if ($[68] !== totalTokens) {
7671
+ t28 = fmtCompact(totalTokens);
7672
+ $[68] = totalTokens;
7673
+ $[69] = t28;
7674
+ } else t28 = $[69];
7675
+ let t29;
7676
+ if ($[70] !== t27 || $[71] !== t28) {
7677
+ t29 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7678
+ label: "Total tokens",
7679
+ value: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7680
+ className: t27,
7681
+ children: t28
7682
+ })
7683
+ });
7684
+ $[70] = t27;
7685
+ $[71] = t28;
7686
+ $[72] = t29;
7687
+ } else t29 = $[72];
7688
+ let t30;
7689
+ if ($[73] !== activeDuration) {
7690
+ t30 = tone(activeDuration, THRESHOLDS.workTime);
7691
+ $[73] = activeDuration;
7692
+ $[74] = t30;
7693
+ } else t30 = $[74];
7694
+ let t31;
7695
+ if ($[75] !== activeDuration) {
7696
+ t31 = fmtDuration(activeDuration);
7697
+ $[75] = activeDuration;
7698
+ $[76] = t31;
7699
+ } else t31 = $[76];
7700
+ let t32;
7701
+ if ($[77] !== t30 || $[78] !== t31) {
7702
+ t32 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7703
+ label: "Working time",
7704
+ value: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7705
+ className: t30,
7706
+ children: t31
7707
+ })
7708
+ });
7709
+ $[77] = t30;
7710
+ $[78] = t31;
7711
+ $[79] = t32;
7712
+ } else t32 = $[79];
7713
+ const T1 = Field;
7714
+ const t33 = "Context size";
7715
+ const t34 = ctxTone;
7716
+ const t35 = meta.contextCompacted ? "Estimated until the next reply: what the compaction kept plus the System row" : void 0;
7717
+ const t36 = `${meta.contextCompacted ? "~ " : ""}${fmtCompact(ctx)} / ${fmtCompact(ctxLimit)}`;
7718
+ let t37;
7719
+ if ($[80] !== t34 || $[81] !== t35 || $[82] !== t36) {
7720
+ t37 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7721
+ className: t34,
7722
+ "data-tooltip-content": t35,
7723
+ children: t36
7724
+ });
7725
+ $[80] = t34;
7726
+ $[81] = t35;
7727
+ $[82] = t36;
7728
+ $[83] = t37;
7729
+ } else t37 = $[83];
7730
+ const t38 = ctx / ctxLimit * 100;
7731
+ let t39;
7732
+ if ($[84] !== ctxTone || $[85] !== t38) {
7733
+ t39 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProgressBar, {
7734
+ pct: t38,
7680
7735
  tone: ctxTone
7681
7736
  });
7682
- $[106] = ctxTone;
7683
- $[107] = t19;
7684
- $[108] = t20;
7685
- } else t20 = $[108];
7686
- let t21;
7687
- if ($[109] !== T0 || $[110] !== t12 || $[111] !== t18 || $[112] !== t20) {
7688
- t21 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(T0, {
7689
- label: t12,
7690
- value: t18,
7691
- below: t20
7737
+ $[84] = ctxTone;
7738
+ $[85] = t38;
7739
+ $[86] = t39;
7740
+ } else t39 = $[86];
7741
+ let t40;
7742
+ if ($[87] !== T1 || $[88] !== t33 || $[89] !== t37 || $[90] !== t39) {
7743
+ t40 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(T1, {
7744
+ label: t33,
7745
+ value: t37,
7746
+ below: t39
7692
7747
  });
7693
- $[109] = T0;
7694
- $[110] = t12;
7695
- $[111] = t18;
7696
- $[112] = t20;
7697
- $[113] = t21;
7698
- } else t21 = $[113];
7699
- if ($[114] !== T1 || $[115] !== t13 || $[116] !== t14 || $[117] !== t15 || $[118] !== t16 || $[119] !== t21) {
7700
- t5 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(T1, {
7701
- title: t13,
7748
+ $[87] = T1;
7749
+ $[88] = t33;
7750
+ $[89] = t37;
7751
+ $[90] = t39;
7752
+ $[91] = t40;
7753
+ } else t40 = $[91];
7754
+ if ($[92] !== T0 || $[93] !== t21 || $[94] !== t26 || $[95] !== t29 || $[96] !== t32 || $[97] !== t40) {
7755
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(T0, {
7756
+ title: t21,
7702
7757
  children: [
7703
- t14,
7704
- t15,
7705
- t16,
7706
- t21
7758
+ t26,
7759
+ t29,
7760
+ t32,
7761
+ t40
7707
7762
  ]
7708
7763
  });
7709
- $[114] = T1;
7710
- $[115] = t13;
7711
- $[116] = t14;
7712
- $[117] = t15;
7713
- $[118] = t16;
7714
- $[119] = t21;
7715
- $[120] = t5;
7716
- } else t5 = $[120];
7764
+ $[92] = T0;
7765
+ $[93] = t21;
7766
+ $[94] = t26;
7767
+ $[95] = t29;
7768
+ $[96] = t32;
7769
+ $[97] = t40;
7770
+ $[98] = t5;
7771
+ } else t5 = $[98];
7717
7772
  t6 = advice && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Section, {
7718
7773
  title: "Potential savings",
7719
7774
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
@@ -7728,131 +7783,136 @@ function SessionSummary(t0) {
7728
7783
  $[2] = activeDuration;
7729
7784
  $[3] = agent;
7730
7785
  $[4] = cost;
7731
- $[5] = items;
7732
- $[6] = meta;
7733
- $[7] = modelLabel;
7734
- $[8] = totalTokens;
7735
- $[9] = t3;
7736
- $[10] = t4;
7737
- $[11] = t5;
7738
- $[12] = t6;
7739
- $[13] = t7;
7740
- $[14] = t8;
7786
+ $[5] = instructions;
7787
+ $[6] = items;
7788
+ $[7] = meta;
7789
+ $[8] = modelLabel;
7790
+ $[9] = totalTokens;
7791
+ $[10] = compactions;
7792
+ $[11] = rewinds;
7793
+ $[12] = t3;
7794
+ $[13] = t4;
7795
+ $[14] = t5;
7796
+ $[15] = t6;
7797
+ $[16] = t7;
7798
+ $[17] = t8;
7741
7799
  } else {
7742
- t3 = $[9];
7743
- t4 = $[10];
7744
- t5 = $[11];
7745
- t6 = $[12];
7746
- t7 = $[13];
7747
- t8 = $[14];
7800
+ compactions = $[10];
7801
+ rewinds = $[11];
7802
+ t3 = $[12];
7803
+ t4 = $[13];
7804
+ t5 = $[14];
7805
+ t6 = $[15];
7806
+ t7 = $[16];
7807
+ t8 = $[17];
7748
7808
  }
7749
7809
  let t9;
7750
- if ($[121] !== t.input) {
7810
+ if ($[99] !== t.input) {
7751
7811
  t9 = fmtNum(t.input);
7752
- $[121] = t.input;
7753
- $[122] = t9;
7754
- } else t9 = $[122];
7812
+ $[99] = t.input;
7813
+ $[100] = t9;
7814
+ } else t9 = $[100];
7755
7815
  let t10;
7756
- if ($[123] !== t9) {
7816
+ if ($[101] !== t9) {
7757
7817
  t10 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7758
7818
  label: "Input",
7759
7819
  value: t9
7760
7820
  });
7761
- $[123] = t9;
7762
- $[124] = t10;
7763
- } else t10 = $[124];
7821
+ $[101] = t9;
7822
+ $[102] = t10;
7823
+ } else t10 = $[102];
7764
7824
  let t11;
7765
- if ($[125] !== t.output) {
7825
+ if ($[103] !== t.output) {
7766
7826
  t11 = fmtNum(t.output);
7767
- $[125] = t.output;
7768
- $[126] = t11;
7769
- } else t11 = $[126];
7827
+ $[103] = t.output;
7828
+ $[104] = t11;
7829
+ } else t11 = $[104];
7770
7830
  let t12;
7771
- if ($[127] !== t11) {
7831
+ if ($[105] !== t11) {
7772
7832
  t12 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7773
7833
  label: "Output",
7774
7834
  value: t11
7775
7835
  });
7776
- $[127] = t11;
7777
- $[128] = t12;
7778
- } else t12 = $[128];
7836
+ $[105] = t11;
7837
+ $[106] = t12;
7838
+ } else t12 = $[106];
7779
7839
  const t13 = t.cacheCreation5m || 0;
7780
7840
  let t14;
7781
- if ($[129] !== t13) {
7841
+ if ($[107] !== t13) {
7782
7842
  t14 = fmtNum(t13);
7783
- $[129] = t13;
7784
- $[130] = t14;
7785
- } else t14 = $[130];
7843
+ $[107] = t13;
7844
+ $[108] = t14;
7845
+ } else t14 = $[108];
7786
7846
  let t15;
7787
- if ($[131] !== t14) {
7847
+ if ($[109] !== t14) {
7788
7848
  t15 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7789
7849
  label: "Cache write (5m)",
7790
7850
  value: t14
7791
7851
  });
7792
- $[131] = t14;
7793
- $[132] = t15;
7794
- } else t15 = $[132];
7852
+ $[109] = t14;
7853
+ $[110] = t15;
7854
+ } else t15 = $[110];
7795
7855
  const t16 = t.cacheCreation1h || 0;
7796
7856
  let t17;
7797
- if ($[133] !== t16) {
7857
+ if ($[111] !== t16) {
7798
7858
  t17 = fmtNum(t16);
7799
- $[133] = t16;
7800
- $[134] = t17;
7801
- } else t17 = $[134];
7859
+ $[111] = t16;
7860
+ $[112] = t17;
7861
+ } else t17 = $[112];
7802
7862
  let t18;
7803
- if ($[135] !== t17) {
7863
+ if ($[113] !== t17) {
7804
7864
  t18 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7805
7865
  label: "Cache write (1h)",
7806
7866
  value: t17
7807
7867
  });
7808
- $[135] = t17;
7809
- $[136] = t18;
7810
- } else t18 = $[136];
7868
+ $[113] = t17;
7869
+ $[114] = t18;
7870
+ } else t18 = $[114];
7811
7871
  let t19;
7812
- if ($[137] !== t.cacheRead) {
7872
+ if ($[115] !== t.cacheRead) {
7813
7873
  t19 = fmtNum(t.cacheRead);
7814
- $[137] = t.cacheRead;
7815
- $[138] = t19;
7816
- } else t19 = $[138];
7874
+ $[115] = t.cacheRead;
7875
+ $[116] = t19;
7876
+ } else t19 = $[116];
7817
7877
  let t20;
7818
- if ($[139] !== t19) {
7878
+ if ($[117] !== t19) {
7819
7879
  t20 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7820
7880
  label: "Cache read",
7821
7881
  value: t19
7822
7882
  });
7823
- $[139] = t19;
7824
- $[140] = t20;
7825
- } else t20 = $[140];
7883
+ $[117] = t19;
7884
+ $[118] = t20;
7885
+ } else t20 = $[118];
7826
7886
  const t21 = cacheHitRatio * 100;
7827
7887
  let t22;
7828
- if ($[141] !== t21) {
7888
+ if ($[119] !== t21) {
7829
7889
  t22 = t21.toFixed(0);
7830
- $[141] = t21;
7831
- $[142] = t22;
7832
- } else t22 = $[142];
7890
+ $[119] = t21;
7891
+ $[120] = t22;
7892
+ } else t22 = $[120];
7833
7893
  const t23 = `${t22}%`;
7834
7894
  let t24;
7835
- if ($[143] !== t23) {
7895
+ if ($[121] !== t23) {
7836
7896
  t24 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7837
7897
  label: "Cache hit ratio",
7838
7898
  value: t23
7839
7899
  });
7840
- $[143] = t23;
7841
- $[144] = t24;
7842
- } else t24 = $[144];
7900
+ $[121] = t23;
7901
+ $[122] = t24;
7902
+ } else t24 = $[122];
7843
7903
  let t25;
7844
- if ($[145] !== hasServerTools || $[146] !== stu.webFetch || $[147] !== stu.webSearch) {
7904
+ if ($[123] !== hasServerTools || $[124] !== stu.webFetch || $[125] !== stu.webSearch) {
7845
7905
  t25 = hasServerTools && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7846
7906
  label: "Server tools (search / fetch)",
7847
7907
  value: `${fmtNum(stu.webSearch)} / ${fmtNum(stu.webFetch)}`
7848
7908
  });
7849
- $[145] = hasServerTools;
7850
- $[146] = stu.webFetch;
7851
- $[147] = stu.webSearch;
7852
- $[148] = t25;
7853
- } else t25 = $[148];
7909
+ $[123] = hasServerTools;
7910
+ $[124] = stu.webFetch;
7911
+ $[125] = stu.webSearch;
7912
+ $[126] = t25;
7913
+ } else t25 = $[126];
7854
7914
  let t26;
7855
- if ($[149] !== t10 || $[150] !== t12 || $[151] !== t15 || $[152] !== t18 || $[153] !== t20 || $[154] !== t24 || $[155] !== t25) {
7915
+ if ($[127] !== t10 || $[128] !== t12 || $[129] !== t15 || $[130] !== t18 || $[131] !== t20 || $[132] !== t24 || $[133] !== t25) {
7856
7916
  t26 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Section, {
7857
7917
  title: "Tokens",
7858
7918
  children: [
@@ -7865,91 +7925,91 @@ function SessionSummary(t0) {
7865
7925
  t25
7866
7926
  ]
7867
7927
  });
7868
- $[149] = t10;
7869
- $[150] = t12;
7870
- $[151] = t15;
7871
- $[152] = t18;
7872
- $[153] = t20;
7873
- $[154] = t24;
7874
- $[155] = t25;
7875
- $[156] = t26;
7876
- } else t26 = $[156];
7928
+ $[127] = t10;
7929
+ $[128] = t12;
7930
+ $[129] = t15;
7931
+ $[130] = t18;
7932
+ $[131] = t20;
7933
+ $[132] = t24;
7934
+ $[133] = t25;
7935
+ $[134] = t26;
7936
+ } else t26 = $[134];
7877
7937
  let t27;
7878
- if ($[157] !== meta.startedAt || $[158] !== timeFormat) {
7938
+ if ($[135] !== meta.startedAt || $[136] !== timeFormat) {
7879
7939
  t27 = format(meta.startedAt, timeFormat);
7880
- $[157] = meta.startedAt;
7881
- $[158] = timeFormat;
7882
- $[159] = t27;
7883
- } else t27 = $[159];
7940
+ $[135] = meta.startedAt;
7941
+ $[136] = timeFormat;
7942
+ $[137] = t27;
7943
+ } else t27 = $[137];
7884
7944
  let t28;
7885
- if ($[160] !== t27) {
7945
+ if ($[138] !== t27) {
7886
7946
  t28 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7887
7947
  label: "Started",
7888
7948
  value: t27
7889
7949
  });
7890
- $[160] = t27;
7891
- $[161] = t28;
7892
- } else t28 = $[161];
7950
+ $[138] = t27;
7951
+ $[139] = t28;
7952
+ } else t28 = $[139];
7893
7953
  let t29;
7894
- if ($[162] !== meta.lastActivityAt || $[163] !== timeFormat) {
7954
+ if ($[140] !== meta.lastActivityAt || $[141] !== timeFormat) {
7895
7955
  t29 = format(meta.lastActivityAt, timeFormat);
7896
- $[162] = meta.lastActivityAt;
7897
- $[163] = timeFormat;
7898
- $[164] = t29;
7899
- } else t29 = $[164];
7956
+ $[140] = meta.lastActivityAt;
7957
+ $[141] = timeFormat;
7958
+ $[142] = t29;
7959
+ } else t29 = $[142];
7900
7960
  let t30;
7901
- if ($[165] !== t29) {
7961
+ if ($[143] !== t29) {
7902
7962
  t30 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7903
7963
  label: "Last activity",
7904
7964
  value: t29
7905
7965
  });
7906
- $[165] = t29;
7907
- $[166] = t30;
7908
- } else t30 = $[166];
7966
+ $[143] = t29;
7967
+ $[144] = t30;
7968
+ } else t30 = $[144];
7909
7969
  let t31;
7910
- if ($[167] !== wallDuration) {
7970
+ if ($[145] !== wallDuration) {
7911
7971
  t31 = fmtDuration(wallDuration);
7912
- $[167] = wallDuration;
7913
- $[168] = t31;
7914
- } else t31 = $[168];
7972
+ $[145] = wallDuration;
7973
+ $[146] = t31;
7974
+ } else t31 = $[146];
7915
7975
  let t32;
7916
- if ($[169] !== t31) {
7976
+ if ($[147] !== t31) {
7917
7977
  t32 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7918
7978
  label: "Wall duration",
7919
7979
  value: t31
7920
7980
  });
7921
- $[169] = t31;
7922
- $[170] = t32;
7923
- } else t32 = $[170];
7981
+ $[147] = t31;
7982
+ $[148] = t32;
7983
+ } else t32 = $[148];
7924
7984
  let t33;
7925
- if ($[171] !== meta.activityPeriods.length) {
7985
+ if ($[149] !== meta.activityPeriods.length) {
7926
7986
  t33 = fmtNum(meta.activityPeriods.length);
7927
- $[171] = meta.activityPeriods.length;
7928
- $[172] = t33;
7929
- } else t33 = $[172];
7987
+ $[149] = meta.activityPeriods.length;
7988
+ $[150] = t33;
7989
+ } else t33 = $[150];
7930
7990
  let t34;
7931
- if ($[173] !== t33) {
7991
+ if ($[151] !== t33) {
7932
7992
  t34 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7933
7993
  label: "Active periods",
7934
7994
  value: t33
7935
7995
  });
7936
- $[173] = t33;
7937
- $[174] = t34;
7938
- } else t34 = $[174];
7996
+ $[151] = t33;
7997
+ $[152] = t34;
7998
+ } else t34 = $[152];
7939
7999
  let t35;
7940
- if ($[175] !== meta.messageCount) {
8000
+ if ($[153] !== meta.messageCount) {
7941
8001
  t35 = tone(meta.messageCount, THRESHOLDS.messages);
7942
- $[175] = meta.messageCount;
7943
- $[176] = t35;
7944
- } else t35 = $[176];
8002
+ $[153] = meta.messageCount;
8003
+ $[154] = t35;
8004
+ } else t35 = $[154];
7945
8005
  let t36;
7946
- if ($[177] !== meta.messageCount) {
8006
+ if ($[155] !== meta.messageCount) {
7947
8007
  t36 = fmtNum(meta.messageCount);
7948
- $[177] = meta.messageCount;
7949
- $[178] = t36;
7950
- } else t36 = $[178];
8008
+ $[155] = meta.messageCount;
8009
+ $[156] = t36;
8010
+ } else t36 = $[156];
7951
8011
  let t37;
7952
- if ($[179] !== t35 || $[180] !== t36) {
8012
+ if ($[157] !== t35 || $[158] !== t36) {
7953
8013
  t37 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7954
8014
  label: "Messages",
7955
8015
  value: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
@@ -7957,28 +8017,46 @@ function SessionSummary(t0) {
7957
8017
  children: t36
7958
8018
  })
7959
8019
  });
7960
- $[179] = t35;
7961
- $[180] = t36;
7962
- $[181] = t37;
7963
- } else t37 = $[181];
8020
+ $[157] = t35;
8021
+ $[158] = t36;
8022
+ $[159] = t37;
8023
+ } else t37 = $[159];
7964
8024
  let t38;
7965
- if ($[182] !== meta) {
8025
+ if ($[160] !== meta) {
7966
8026
  t38 = fmtToolCalls(meta);
7967
- $[182] = meta;
7968
- $[183] = t38;
7969
- } else t38 = $[183];
8027
+ $[160] = meta;
8028
+ $[161] = t38;
8029
+ } else t38 = $[161];
7970
8030
  let t39;
7971
- if ($[184] !== t38) {
8031
+ if ($[162] !== t38) {
7972
8032
  t39 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
7973
8033
  label: "Tool calls",
7974
8034
  value: t38
7975
8035
  });
7976
- $[184] = t38;
7977
- $[185] = t39;
7978
- } else t39 = $[185];
8036
+ $[162] = t38;
8037
+ $[163] = t39;
8038
+ } else t39 = $[163];
7979
8039
  let t40;
7980
- if ($[186] !== t28 || $[187] !== t30 || $[188] !== t32 || $[189] !== t34 || $[190] !== t37 || $[191] !== t39) {
7981
- t40 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Section, {
8040
+ if ($[164] !== compactions) {
8041
+ t40 = compactions > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8042
+ label: "Compactions",
8043
+ value: fmtNum(compactions)
8044
+ });
8045
+ $[164] = compactions;
8046
+ $[165] = t40;
8047
+ } else t40 = $[165];
8048
+ let t41;
8049
+ if ($[166] !== rewinds) {
8050
+ t41 = rewinds > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8051
+ label: "Rewinds",
8052
+ value: fmtNum(rewinds)
8053
+ });
8054
+ $[166] = rewinds;
8055
+ $[167] = t41;
8056
+ } else t41 = $[167];
8057
+ let t42;
8058
+ if ($[168] !== t28 || $[169] !== t30 || $[170] !== t32 || $[171] !== t34 || $[172] !== t37 || $[173] !== t39 || $[174] !== t40 || $[175] !== t41) {
8059
+ t42 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Section, {
7982
8060
  title: "Activity",
7983
8061
  children: [
7984
8062
  t28,
@@ -7986,20 +8064,24 @@ function SessionSummary(t0) {
7986
8064
  t32,
7987
8065
  t34,
7988
8066
  t37,
7989
- t39
8067
+ t39,
8068
+ t40,
8069
+ t41
7990
8070
  ]
7991
8071
  });
7992
- $[186] = t28;
7993
- $[187] = t30;
7994
- $[188] = t32;
7995
- $[189] = t34;
7996
- $[190] = t37;
7997
- $[191] = t39;
7998
- $[192] = t40;
7999
- } else t40 = $[192];
8000
- let t41;
8001
- if ($[193] !== meta.sessionId) {
8002
- t41 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8072
+ $[168] = t28;
8073
+ $[169] = t30;
8074
+ $[170] = t32;
8075
+ $[171] = t34;
8076
+ $[172] = t37;
8077
+ $[173] = t39;
8078
+ $[174] = t40;
8079
+ $[175] = t41;
8080
+ $[176] = t42;
8081
+ } else t42 = $[176];
8082
+ let t43;
8083
+ if ($[177] !== meta.sessionId) {
8084
+ t43 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8003
8085
  label: "Session ID",
8004
8086
  value: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
8005
8087
  className: "session-id",
@@ -8009,240 +8091,246 @@ function SessionSummary(t0) {
8009
8091
  full: true,
8010
8092
  autoselect: true
8011
8093
  });
8012
- $[193] = meta.sessionId;
8013
- $[194] = t41;
8014
- } else t41 = $[194];
8015
- let t42;
8016
- if ($[195] !== modelLabel) {
8017
- t42 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8094
+ $[177] = meta.sessionId;
8095
+ $[178] = t43;
8096
+ } else t43 = $[178];
8097
+ let t44;
8098
+ if ($[179] !== modelLabel) {
8099
+ t44 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8018
8100
  label: "Model",
8019
8101
  value: modelLabel,
8020
8102
  mono: true
8021
8103
  });
8022
- $[195] = modelLabel;
8023
- $[196] = t42;
8024
- } else t42 = $[196];
8025
- let t43;
8026
- if ($[197] !== meta.efforts) {
8027
- t43 = meta.efforts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8104
+ $[179] = modelLabel;
8105
+ $[180] = t44;
8106
+ } else t44 = $[180];
8107
+ let t45;
8108
+ if ($[181] !== meta.efforts) {
8109
+ t45 = meta.efforts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8028
8110
  label: "Effort",
8029
8111
  value: meta.efforts.join(", ")
8030
8112
  });
8031
- $[197] = meta.efforts;
8032
- $[198] = t43;
8033
- } else t43 = $[198];
8034
- let t44;
8035
- if ($[199] !== meta.serviceTier) {
8036
- t44 = meta.serviceTier && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8113
+ $[181] = meta.efforts;
8114
+ $[182] = t45;
8115
+ } else t45 = $[182];
8116
+ let t46;
8117
+ if ($[183] !== meta.serviceTier) {
8118
+ t46 = meta.serviceTier && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8037
8119
  label: "Service tier",
8038
8120
  value: meta.serviceTier
8039
8121
  });
8040
- $[199] = meta.serviceTier;
8041
- $[200] = t44;
8042
- } else t44 = $[200];
8043
- let t45;
8044
- if ($[201] !== meta.fastPricingUnknown || $[202] !== meta.speed) {
8045
- t45 = meta.speed && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8122
+ $[183] = meta.serviceTier;
8123
+ $[184] = t46;
8124
+ } else t46 = $[184];
8125
+ let t47;
8126
+ if ($[185] !== meta.fastPricingUnknown || $[186] !== meta.speed) {
8127
+ t47 = meta.speed && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8046
8128
  label: "Speed",
8047
8129
  value: meta.speed === "fast" ? meta.fastPricingUnknown ? "fast (pricing unknown)" : "fast" : meta.speed
8048
8130
  });
8049
- $[201] = meta.fastPricingUnknown;
8050
- $[202] = meta.speed;
8051
- $[203] = t45;
8052
- } else t45 = $[203];
8053
- let t46;
8054
- if ($[204] !== meta.tag) {
8055
- t46 = meta.tag && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8131
+ $[185] = meta.fastPricingUnknown;
8132
+ $[186] = meta.speed;
8133
+ $[187] = t47;
8134
+ } else t47 = $[187];
8135
+ let t48;
8136
+ if ($[188] !== meta.tag) {
8137
+ t48 = meta.tag && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8056
8138
  label: "Tag",
8057
8139
  value: meta.tag,
8058
8140
  mono: true
8059
8141
  });
8060
- $[204] = meta.tag;
8061
- $[205] = t46;
8062
- } else t46 = $[205];
8063
- const t47 = meta.gitBranch || "—";
8064
- let t48;
8065
- if ($[206] !== t47) {
8066
- t48 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8142
+ $[188] = meta.tag;
8143
+ $[189] = t48;
8144
+ } else t48 = $[189];
8145
+ const t49 = meta.gitBranch || "—";
8146
+ let t50;
8147
+ if ($[190] !== t49) {
8148
+ t50 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8067
8149
  label: "Git branch",
8068
- value: t47,
8150
+ value: t49,
8069
8151
  mono: true
8070
8152
  });
8071
- $[206] = t47;
8072
- $[207] = t48;
8073
- } else t48 = $[207];
8074
- const t49 = meta.source || meta.entrypoint || "—";
8075
- let t50;
8076
- if ($[208] !== t49) {
8077
- t50 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8153
+ $[190] = t49;
8154
+ $[191] = t50;
8155
+ } else t50 = $[191];
8156
+ const t51 = meta.source || meta.entrypoint || "—";
8157
+ let t52;
8158
+ if ($[192] !== t51) {
8159
+ t52 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8078
8160
  label: "Source",
8079
- value: t49
8080
- });
8081
- $[208] = t49;
8082
- $[209] = t50;
8083
- } else t50 = $[209];
8084
- let t51;
8085
- if ($[210] !== meta.hasScheduledTask) {
8086
- t51 = meta.hasScheduledTask && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8161
+ value: t51
8162
+ });
8163
+ $[192] = t51;
8164
+ $[193] = t52;
8165
+ } else t52 = $[193];
8166
+ let t53;
8167
+ if ($[194] !== meta.hasScheduledTask) {
8168
+ t53 = meta.hasScheduledTask && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8087
8169
  label: "Scheduled",
8088
8170
  value: "yes"
8089
8171
  });
8090
- $[210] = meta.hasScheduledTask;
8091
- $[211] = t51;
8092
- } else t51 = $[211];
8093
- const t52 = meta.version || "—";
8094
- let t53;
8095
- if ($[212] !== t52) {
8096
- t53 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8172
+ $[194] = meta.hasScheduledTask;
8173
+ $[195] = t53;
8174
+ } else t53 = $[195];
8175
+ const t54 = meta.version || "—";
8176
+ let t55;
8177
+ if ($[196] !== t54) {
8178
+ t55 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8097
8179
  label: "CLI version",
8098
- value: t52,
8180
+ value: t54,
8099
8181
  mono: true
8100
8182
  });
8101
- $[212] = t52;
8102
- $[213] = t53;
8103
- } else t53 = $[213];
8104
- const t54 = meta.project || "—";
8105
- let t55;
8106
- if ($[214] !== t54) {
8107
- t55 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8183
+ $[196] = t54;
8184
+ $[197] = t55;
8185
+ } else t55 = $[197];
8186
+ const t56 = meta.project || "—";
8187
+ let t57;
8188
+ if ($[198] !== t56) {
8189
+ t57 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8108
8190
  label: "Project",
8109
- value: t54,
8191
+ value: t56,
8110
8192
  mono: true,
8111
8193
  full: true,
8112
8194
  autoselect: true
8113
8195
  });
8114
- $[214] = t54;
8115
- $[215] = t55;
8116
- } else t55 = $[215];
8117
- let t56;
8118
- if ($[216] !== meta.subdir) {
8119
- t56 = meta.subdir && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8196
+ $[198] = t56;
8197
+ $[199] = t57;
8198
+ } else t57 = $[199];
8199
+ let t58;
8200
+ if ($[200] !== meta.subdir) {
8201
+ t58 = meta.subdir && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8120
8202
  label: "Subfolder",
8121
8203
  value: meta.subdir,
8122
8204
  mono: true,
8123
8205
  full: true,
8124
8206
  autoselect: true
8125
8207
  });
8126
- $[216] = meta.subdir;
8127
- $[217] = t56;
8128
- } else t56 = $[217];
8129
- let t57;
8130
- if ($[218] !== meta.worktreePath) {
8131
- t57 = meta.worktreePath && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8208
+ $[200] = meta.subdir;
8209
+ $[201] = t58;
8210
+ } else t58 = $[201];
8211
+ let t59;
8212
+ if ($[202] !== meta.worktreePath) {
8213
+ t59 = meta.worktreePath && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8132
8214
  label: "Worktree",
8133
8215
  value: meta.worktreePath,
8134
8216
  mono: true,
8135
8217
  full: true,
8136
8218
  autoselect: true
8137
8219
  });
8138
- $[218] = meta.worktreePath;
8139
- $[219] = t57;
8140
- } else t57 = $[219];
8141
- let t58;
8142
- if ($[220] !== meta.filePath) {
8143
- t58 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8220
+ $[202] = meta.worktreePath;
8221
+ $[203] = t59;
8222
+ } else t59 = $[203];
8223
+ let t60;
8224
+ if ($[204] !== meta.filePath) {
8225
+ t60 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8144
8226
  label: "Log file",
8145
8227
  value: meta.filePath,
8146
8228
  mono: true,
8147
8229
  full: true,
8148
8230
  autoselect: true
8149
8231
  });
8150
- $[220] = meta.filePath;
8151
- $[221] = t58;
8152
- } else t58 = $[221];
8153
- let t59;
8154
- if ($[222] !== requestLog) {
8155
- t59 = requestLog && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8232
+ $[204] = meta.filePath;
8233
+ $[205] = t60;
8234
+ } else t60 = $[205];
8235
+ let t61;
8236
+ if ($[206] !== requestLog) {
8237
+ t61 = requestLog && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
8156
8238
  label: "Proxy log",
8157
8239
  value: requestLog,
8158
8240
  mono: true,
8159
8241
  full: true,
8160
8242
  autoselect: true
8161
8243
  });
8162
- $[222] = requestLog;
8163
- $[223] = t59;
8164
- } else t59 = $[223];
8165
- let t60;
8166
- if ($[224] !== t41 || $[225] !== t42 || $[226] !== t43 || $[227] !== t44 || $[228] !== t45 || $[229] !== t46 || $[230] !== t48 || $[231] !== t50 || $[232] !== t51 || $[233] !== t53 || $[234] !== t55 || $[235] !== t56 || $[236] !== t57 || $[237] !== t58 || $[238] !== t59) {
8167
- t60 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Section, {
8244
+ $[206] = requestLog;
8245
+ $[207] = t61;
8246
+ } else t61 = $[207];
8247
+ let t62;
8248
+ if ($[208] !== t43 || $[209] !== t44 || $[210] !== t45 || $[211] !== t46 || $[212] !== t47 || $[213] !== t48 || $[214] !== t50 || $[215] !== t52 || $[216] !== t53 || $[217] !== t55 || $[218] !== t57 || $[219] !== t58 || $[220] !== t59 || $[221] !== t60 || $[222] !== t61) {
8249
+ t62 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Section, {
8168
8250
  title: "Identity",
8169
8251
  children: [
8170
- t41,
8171
- " ",
8172
- t42,
8173
8252
  t43,
8253
+ " ",
8174
8254
  t44,
8175
8255
  t45,
8176
8256
  t46,
8257
+ t47,
8177
8258
  t48,
8178
8259
  t50,
8179
- t51,
8260
+ t52,
8180
8261
  t53,
8181
8262
  t55,
8182
- t56,
8183
8263
  t57,
8184
8264
  t58,
8185
- t59
8265
+ t59,
8266
+ t60,
8267
+ t61
8186
8268
  ]
8187
8269
  });
8188
- $[224] = t41;
8189
- $[225] = t42;
8190
- $[226] = t43;
8191
- $[227] = t44;
8192
- $[228] = t45;
8193
- $[229] = t46;
8194
- $[230] = t48;
8195
- $[231] = t50;
8196
- $[232] = t51;
8197
- $[233] = t53;
8198
- $[234] = t55;
8199
- $[235] = t56;
8200
- $[236] = t57;
8201
- $[237] = t58;
8202
- $[238] = t59;
8203
- $[239] = t60;
8204
- } else t60 = $[239];
8205
- let t61;
8206
- if ($[240] !== t26 || $[241] !== t3 || $[242] !== t4 || $[243] !== t40 || $[244] !== t5 || $[245] !== t6 || $[246] !== t60) {
8207
- t61 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
8270
+ $[208] = t43;
8271
+ $[209] = t44;
8272
+ $[210] = t45;
8273
+ $[211] = t46;
8274
+ $[212] = t47;
8275
+ $[213] = t48;
8276
+ $[214] = t50;
8277
+ $[215] = t52;
8278
+ $[216] = t53;
8279
+ $[217] = t55;
8280
+ $[218] = t57;
8281
+ $[219] = t58;
8282
+ $[220] = t59;
8283
+ $[221] = t60;
8284
+ $[222] = t61;
8285
+ $[223] = t62;
8286
+ } else t62 = $[223];
8287
+ let t63;
8288
+ if ($[224] !== t26 || $[225] !== t3 || $[226] !== t4 || $[227] !== t42 || $[228] !== t5 || $[229] !== t6 || $[230] !== t62) {
8289
+ t63 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
8208
8290
  className: t3,
8209
8291
  children: [
8210
8292
  t4,
8211
8293
  t5,
8212
8294
  t6,
8213
8295
  t26,
8214
- t40,
8215
- t60
8296
+ t42,
8297
+ t62
8216
8298
  ]
8217
8299
  });
8218
- $[240] = t26;
8219
- $[241] = t3;
8220
- $[242] = t4;
8221
- $[243] = t40;
8222
- $[244] = t5;
8223
- $[245] = t6;
8224
- $[246] = t60;
8225
- $[247] = t61;
8226
- } else t61 = $[247];
8227
- let t62;
8228
- if ($[248] !== t61 || $[249] !== t7 || $[250] !== t8) {
8229
- t62 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
8300
+ $[224] = t26;
8301
+ $[225] = t3;
8302
+ $[226] = t4;
8303
+ $[227] = t42;
8304
+ $[228] = t5;
8305
+ $[229] = t6;
8306
+ $[230] = t62;
8307
+ $[231] = t63;
8308
+ } else t63 = $[231];
8309
+ let t64;
8310
+ if ($[232] !== t63 || $[233] !== t7 || $[234] !== t8) {
8311
+ t64 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
8230
8312
  className: t7,
8231
- children: [t8, t61]
8313
+ children: [t8, t63]
8232
8314
  });
8233
- $[248] = t61;
8234
- $[249] = t7;
8235
- $[250] = t8;
8236
- $[251] = t62;
8237
- } else t62 = $[251];
8238
- return t62;
8315
+ $[232] = t63;
8316
+ $[233] = t7;
8317
+ $[234] = t8;
8318
+ $[235] = t64;
8319
+ } else t64 = $[235];
8320
+ return t64;
8239
8321
  }
8240
- function _temp$4(e_0) {
8322
+ function _temp3$1(e_0) {
8241
8323
  if (e_0.key === "Enter" && !e_0.shiftKey) {
8242
8324
  e_0.preventDefault();
8243
8325
  e_0.currentTarget.form.requestSubmit();
8244
8326
  }
8245
8327
  }
8328
+ function _temp2$2(t_1) {
8329
+ return t_1.role === "compact";
8330
+ }
8331
+ function _temp$4(t_0) {
8332
+ return t_0.rewind;
8333
+ }
8246
8334
  function Section(t0) {
8247
8335
  const $ = (0, import_compiler_runtime.c)(5);
8248
8336
  const { title, children } = t0;
@@ -8270,7 +8358,7 @@ function Section(t0) {
8270
8358
  function Field(t0) {
8271
8359
  const $ = (0, import_compiler_runtime.c)(22);
8272
8360
  const { label, value, mono, full, below, autoselect } = t0;
8273
- const selectAll = autoselect ? _temp2$2 : void 0;
8361
+ const selectAll = autoselect ? _temp4$1 : void 0;
8274
8362
  if (below) {
8275
8363
  let t1;
8276
8364
  if ($[0] !== label) {
@@ -8352,7 +8440,7 @@ function Field(t0) {
8352
8440
  } else t5 = $[21];
8353
8441
  return t5;
8354
8442
  }
8355
- function _temp2$2(e) {
8443
+ function _temp4$1(e) {
8356
8444
  const range = document.createRange();
8357
8445
  range.selectNodeContents(e.currentTarget);
8358
8446
  const sel = window.getSelection();
@@ -8484,7 +8572,7 @@ function renderTurn(t, seen, model) {
8484
8572
  }
8485
8573
  const time = t.ts != null ? ` · ${format(t.ts, "HH:mm:ss")}` : "";
8486
8574
  const cleared = isClearTurn(t) ? "\n\n**Context cleared**" : "";
8487
- return `**${role}${time}${stats.length ? ` (${stats.join(" · ")})` : ""}:**\n\n${blocks.join("\n\n")}${cleared}`;
8575
+ return `${t.rewind ? `**${rewindTitle(t.rewind).join("")}**\n\n` : ""}**${role}${time}${stats.length ? ` (${stats.join(" · ")})` : ""}:**\n\n${blocks.join("\n\n")}${cleared}`;
8488
8576
  }
8489
8577
  function renderTranscript(turns, { forkedFrom, forkedAt, continuesFrom }) {
8490
8578
  const model = currentModel(turns);
@@ -8503,10 +8591,14 @@ function markdownSession(meta, items, instructions = {}, requestLog = null) {
8503
8591
  const stu = meta.serverToolUse;
8504
8592
  const wallDuration = meta.lastActivityAt - meta.startedAt;
8505
8593
  const ctxLimit = contextWindow(meta.models);
8506
- const contextPct = Math.round(meta.lastContextTokens / ctxLimit * 100);
8594
+ const ctx = contextTokens(meta, instructions);
8595
+ const contextPct = Math.round(ctx / ctxLimit * 100);
8507
8596
  const advice = cacheAdvice(meta);
8508
8597
  const cacheHitPct = (meta.cacheHitRatio * 100).toFixed(0);
8509
- const conversation = `\n# Conversation\n\n${items ? renderTranscript(flatten(items, instructions), meta) : "_Loading…_"}`;
8598
+ const turns = items ? flatten(items, instructions) : [];
8599
+ const rewinds = turns.filter((t) => t.rewind).length;
8600
+ const compactions = turns.filter((t) => t.role === "compact").length;
8601
+ const conversation = `\n# Conversation\n\n${items ? renderTranscript(turns, meta) : "_Loading…_"}`;
8510
8602
  return { body: `
8511
8603
  <summary>
8512
8604
  ${escapeFrame(`
@@ -8516,7 +8608,7 @@ ${escapeFrame(`
8516
8608
  - Estimated cost: ${fmtUSD(meta.cost)}
8517
8609
  - Total tokens: ${fmtCompact(meta.totalTokens)}
8518
8610
  - Working time: ${fmtDuration(meta.activeMs)}
8519
- - Context size: ${fmtCompact(meta.lastContextTokens)} / ${fmtCompact(ctxLimit)} (${contextPct}%)${advice ? `
8611
+ - Context size: ${meta.contextCompacted ? "~" : ""}${fmtCompact(ctx)} / ${fmtCompact(ctxLimit)} (${contextPct}%${meta.contextCompacted ? ", estimated until the next reply" : ""})${advice ? `
8520
8612
 
8521
8613
  ## Potential savings
8522
8614
  - ${CACHE_LABELS[advice.policy]}: (${advice.pct.toFixed(0)}%) −${fmtUSD(advice.saving)}` : ""}
@@ -8539,7 +8631,9 @@ ${meta.continuesTo ? `- Continues on: ${format(meta.continuesTo, "PPpp")} (later
8539
8631
  - Active periods: ${fmtNum(meta.activityPeriods.length)}
8540
8632
  - Messages: ${fmtNum(meta.messageCount)}
8541
8633
  - Tool calls: ${fmtToolCalls(meta)}
8542
-
8634
+ ${compactions ? `- Compactions: ${fmtNum(compactions)}
8635
+ ` : ""}${rewinds ? `- Rewinds: ${fmtNum(rewinds)}
8636
+ ` : ""}
8543
8637
  ## Identity
8544
8638
  - Session ID: ${meta.sessionId}
8545
8639
  - Model: ${meta.models.join(", ") || "—"}
@@ -8720,7 +8814,7 @@ var TABS = [
8720
8814
  }
8721
8815
  ];
8722
8816
  function Session(t0) {
8723
- const $ = (0, import_compiler_runtime.c)(59);
8817
+ const $ = (0, import_compiler_runtime.c)(60);
8724
8818
  const { meta, missing, date, granularity: t1, onShowPeriodOf } = t0;
8725
8819
  const granularity = t1 === void 0 ? "day" : t1;
8726
8820
  const [read, setRead] = (0, import_react.useState)(NOT_READ);
@@ -8944,24 +9038,26 @@ function Session(t0) {
8944
9038
  $[48] = t16;
8945
9039
  } else t16 = $[48];
8946
9040
  let t17;
8947
- if ($[49] !== agent || $[50] !== granularity || $[51] !== items || $[52] !== meta || $[53] !== requestLog || $[54] !== viewKey) {
9041
+ if ($[49] !== agent || $[50] !== granularity || $[51] !== instructions || $[52] !== items || $[53] !== meta || $[54] !== requestLog || $[55] !== viewKey) {
8948
9042
  t17 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SessionSummary, {
8949
9043
  meta,
8950
9044
  items,
9045
+ instructions,
8951
9046
  requestLog,
8952
9047
  agent,
8953
9048
  granularity
8954
9049
  }, viewKey);
8955
9050
  $[49] = agent;
8956
9051
  $[50] = granularity;
8957
- $[51] = items;
8958
- $[52] = meta;
8959
- $[53] = requestLog;
8960
- $[54] = viewKey;
8961
- $[55] = t17;
8962
- } else t17 = $[55];
9052
+ $[51] = instructions;
9053
+ $[52] = items;
9054
+ $[53] = meta;
9055
+ $[54] = requestLog;
9056
+ $[55] = viewKey;
9057
+ $[56] = t17;
9058
+ } else t17 = $[56];
8963
9059
  let t18;
8964
- if ($[56] !== t16 || $[57] !== t17) {
9060
+ if ($[57] !== t16 || $[58] !== t17) {
8965
9061
  t18 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
8966
9062
  className: "session-view",
8967
9063
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
@@ -8978,10 +9074,10 @@ function Session(t0) {
8978
9074
  })
8979
9075
  })
8980
9076
  });
8981
- $[56] = t16;
8982
- $[57] = t17;
8983
- $[58] = t18;
8984
- } else t18 = $[58];
9077
+ $[57] = t16;
9078
+ $[58] = t17;
9079
+ $[59] = t18;
9080
+ } else t18 = $[59];
8985
9081
  return t18;
8986
9082
  }
8987
9083
  // src/renderer/ui/StatusSwitch.jsx
@@ -9551,33 +9647,32 @@ function UsageLimits(t0) {
9551
9647
  $[1] = t1;
9552
9648
  } else t1 = $[1];
9553
9649
  const tip = t1;
9554
- const t2 = limits?.fiveHour;
9555
- let t3;
9556
- if ($[2] !== placeholder || $[3] !== t2) {
9557
- t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UsageBar, {
9650
+ let t2;
9651
+ if ($[2] !== limits?.fiveHour || $[3] !== placeholder) {
9652
+ t2 = limits?.fiveHour !== null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UsageBar, {
9558
9653
  label: "Daily",
9559
- limit: t2,
9654
+ limit: limits?.fiveHour,
9560
9655
  placeholder
9561
9656
  });
9562
- $[2] = placeholder;
9563
- $[3] = t2;
9564
- $[4] = t3;
9565
- } else t3 = $[4];
9566
- const t4 = limits?.sevenDay;
9567
- let t5;
9568
- if ($[5] !== placeholder || $[6] !== t4) {
9569
- t5 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UsageBar, {
9657
+ $[2] = limits?.fiveHour;
9658
+ $[3] = placeholder;
9659
+ $[4] = t2;
9660
+ } else t2 = $[4];
9661
+ const t3 = limits?.sevenDay;
9662
+ let t4;
9663
+ if ($[5] !== placeholder || $[6] !== t3) {
9664
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UsageBar, {
9570
9665
  label: "Weekly",
9571
- limit: t4,
9666
+ limit: t3,
9572
9667
  placeholder
9573
9668
  });
9574
9669
  $[5] = placeholder;
9575
- $[6] = t4;
9576
- $[7] = t5;
9577
- } else t5 = $[7];
9578
- let t6;
9670
+ $[6] = t3;
9671
+ $[7] = t4;
9672
+ } else t4 = $[7];
9673
+ let t5;
9579
9674
  if ($[8] !== id || $[9] !== tip) {
9580
- t6 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tip, {
9675
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tip, {
9581
9676
  id,
9582
9677
  clickable: true,
9583
9678
  className: "tip-unbounded statusbar-tip",
@@ -9585,33 +9680,33 @@ function UsageLimits(t0) {
9585
9680
  });
9586
9681
  $[8] = id;
9587
9682
  $[9] = tip;
9588
- $[10] = t6;
9589
- } else t6 = $[10];
9590
- let t7;
9591
- if ($[11] !== id || $[12] !== t3 || $[13] !== t5 || $[14] !== t6) {
9592
- t7 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
9683
+ $[10] = t5;
9684
+ } else t5 = $[10];
9685
+ let t6;
9686
+ if ($[11] !== id || $[12] !== t2 || $[13] !== t4 || $[14] !== t5) {
9687
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
9593
9688
  className: "statusbar-limits",
9594
9689
  "data-tooltip-id": id,
9595
9690
  children: [
9596
- t3,
9597
- t5,
9598
- t6
9691
+ t2,
9692
+ t4,
9693
+ t5
9599
9694
  ]
9600
9695
  });
9601
9696
  $[11] = id;
9602
- $[12] = t3;
9603
- $[13] = t5;
9604
- $[14] = t6;
9605
- $[15] = t7;
9606
- } else t7 = $[15];
9607
- return t7;
9697
+ $[12] = t2;
9698
+ $[13] = t4;
9699
+ $[14] = t5;
9700
+ $[15] = t6;
9701
+ } else t6 = $[15];
9702
+ return t6;
9608
9703
  }
9609
9704
  function useRateLimits() {
9610
- const $ = (0, import_compiler_runtime.c)(2);
9611
- const [limits, setLimits] = (0, import_react.useState)();
9705
+ const $ = (0, import_compiler_runtime.c)(3);
9706
+ const [limits, setLimits] = useLocalStorage("usage.limits");
9612
9707
  let t0;
9613
9708
  let t1;
9614
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
9709
+ if ($[0] !== setLimits) {
9615
9710
  t0 = () => {
9616
9711
  const check = (opts) => document.hidden || window.api.getRateLimits(opts).then(setLimits);
9617
9712
  const onFocus = () => check();
@@ -9623,12 +9718,13 @@ function useRateLimits() {
9623
9718
  window.removeEventListener("focus", onFocus);
9624
9719
  };
9625
9720
  };
9626
- t1 = [];
9627
- $[0] = t0;
9628
- $[1] = t1;
9721
+ t1 = [setLimits];
9722
+ $[0] = setLimits;
9723
+ $[1] = t0;
9724
+ $[2] = t1;
9629
9725
  } else {
9630
- t0 = $[0];
9631
- t1 = $[1];
9726
+ t0 = $[1];
9727
+ t1 = $[2];
9632
9728
  }
9633
9729
  (0, import_react.useEffect)(t0, t1);
9634
9730
  return limits;
@@ -9969,7 +10065,7 @@ function App() {
9969
10065
  };
9970
10066
  $[5] = t4;
9971
10067
  } else t4 = $[5];
9972
- const { defaultLayout, onLayoutChanged } = Vo(t4);
10068
+ const { defaultLayout, onLayoutChanged } = la(t4);
9973
10069
  let t5;
9974
10070
  if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
9975
10071
  t5 = {
@@ -9979,7 +10075,7 @@ function App() {
9979
10075
  };
9980
10076
  $[6] = t5;
9981
10077
  } else t5 = $[6];
9982
- const { defaultLayout: rootLayout, onLayoutChanged: onRootLayoutChanged } = Vo(t5);
10078
+ const { defaultLayout: rootLayout, onLayoutChanged: onRootLayoutChanged } = la(t5);
9983
10079
  let t6;
9984
10080
  if ($[7] !== anchor || $[8] !== granularity) {
9985
10081
  t6 = endOfPeriod(anchor, granularity);
@@ -10304,7 +10400,7 @@ function App() {
10304
10400
  } else t28 = $[86];
10305
10401
  let t29;
10306
10402
  if ($[87] !== t22 || $[88] !== t28) {
10307
- t29 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Ao, {
10403
+ t29 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Ki, {
10308
10404
  id: "gantt",
10309
10405
  defaultSize: 450,
10310
10406
  minSize: 180,
@@ -10317,7 +10413,7 @@ function App() {
10317
10413
  } else t29 = $[89];
10318
10414
  let t30;
10319
10415
  if ($[90] === Symbol.for("react.memo_cache_sentinel")) {
10320
- t30 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Go, { className: "resize-handle resize-handle-h" });
10416
+ t30 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Qi, { className: "resize-handle resize-handle-h" });
10321
10417
  $[90] = t30;
10322
10418
  } else t30 = $[90];
10323
10419
  let t31;
@@ -10334,7 +10430,7 @@ function App() {
10334
10430
  const t32 = selected?.filePath ?? null;
10335
10431
  let t33;
10336
10432
  if ($[92] !== dayItems.past || $[93] !== deepLink || $[94] !== t32) {
10337
- t33 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Ao, {
10433
+ t33 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Ki, {
10338
10434
  id: "list",
10339
10435
  defaultSize: 450,
10340
10436
  minSize: 200,
@@ -10354,7 +10450,7 @@ function App() {
10354
10450
  } else t33 = $[95];
10355
10451
  let t34;
10356
10452
  if ($[96] === Symbol.for("react.memo_cache_sentinel")) {
10357
- t34 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Go, { className: "resize-handle resize-handle-v" });
10453
+ t34 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Qi, { className: "resize-handle resize-handle-v" });
10358
10454
  $[96] = t34;
10359
10455
  } else t34 = $[96];
10360
10456
  const t35 = selected?.filePath;
@@ -10401,7 +10497,7 @@ function App() {
10401
10497
  } else t40 = $[110];
10402
10498
  let t41;
10403
10499
  if ($[111] !== t36 || $[112] !== t40) {
10404
- t41 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ao, {
10500
+ t41 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ki, {
10405
10501
  id: "detail",
10406
10502
  minSize: 30,
10407
10503
  className: "body-pane",
@@ -10417,11 +10513,11 @@ function App() {
10417
10513
  } else t41 = $[113];
10418
10514
  let t42;
10419
10515
  if ($[114] !== defaultLayout || $[115] !== onLayoutChanged || $[116] !== t33 || $[117] !== t41) {
10420
- t42 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ao, {
10516
+ t42 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ki, {
10421
10517
  id: "body",
10422
10518
  minSize: 20,
10423
10519
  className: "body-outer section session",
10424
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Po, {
10520
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Hi, {
10425
10521
  orientation: "horizontal",
10426
10522
  disableCursor: true,
10427
10523
  className: "body",
@@ -10442,7 +10538,7 @@ function App() {
10442
10538
  } else t42 = $[118];
10443
10539
  let t43;
10444
10540
  if ($[119] !== onRootLayoutChanged || $[120] !== rootLayout || $[121] !== t29 || $[122] !== t42) {
10445
- t43 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Po, {
10541
+ t43 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Hi, {
10446
10542
  orientation: "vertical",
10447
10543
  disableCursor: true,
10448
10544
  className: "app-main",