reevesagents 1.7.3 → 1.7.5

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.
@@ -2,23 +2,23 @@
2
2
  import {
3
3
  buildOnboardingState,
4
4
  readTuiOpenToken
5
- } from "./chunk-MKNSEZTG.js";
6
- import {
7
- sweepAgentsThrottled
8
- } from "./chunk-JX6SHZKB.js";
5
+ } from "./chunk-MEIFYC3B.js";
6
+ import "./chunk-YAR57K3U.js";
9
7
  import {
10
8
  translate,
11
9
  translatePhrase
12
- } from "./chunk-OVNVE2TJ.js";
10
+ } from "./chunk-BITRLLG5.js";
13
11
  import {
14
12
  modelDisplayName,
15
13
  modelValuesForProvider
16
- } from "./chunk-GNS5ULTD.js";
14
+ } from "./chunk-EZJQYBYP.js";
17
15
  import {
18
16
  REEVESAGENTS_VERSION,
19
17
  listRunApprovals,
20
- resolveRunApproval
21
- } from "./chunk-EXUYSBTC.js";
18
+ resolveRunApproval,
19
+ sweepAgentsThrottled,
20
+ sweepOrphanSessionsThrottled
21
+ } from "./chunk-4ARHWX5G.js";
22
22
  import {
23
23
  CONFIG_FIELDS,
24
24
  DEFAULT_LANGUAGE,
@@ -70,20 +70,20 @@ import {
70
70
  startRunFromPreset,
71
71
  stateRoot,
72
72
  stopRun
73
- } from "./chunk-GSWMKYSU.js";
74
- import "./chunk-D24DQQ6V.js";
73
+ } from "./chunk-HHNMES47.js";
74
+ import "./chunk-Q3WWQP2R.js";
75
75
  import {
76
76
  startWebFromTui
77
- } from "./chunk-7K3XRI7L.js";
77
+ } from "./chunk-5K4BBZMS.js";
78
78
 
79
- // src/tui/router.tsx
79
+ // src/surfaces/tui/router.tsx
80
80
  import { createContext as createContext6, useContext as useContext6, useState as useState37, useCallback as useCallback5, useEffect as useEffect17, useRef as useRef4 } from "react";
81
81
  import { useApp as useApp3 } from "ink";
82
82
 
83
- // src/tui/contexts/ToastContext.tsx
83
+ // src/surfaces/tui/contexts/ToastContext.tsx
84
84
  import { createContext, useCallback, useContext, useEffect, useRef, useState } from "react";
85
85
 
86
- // src/tui/utils/tokens.ts
86
+ // src/surfaces/tui/utils/tokens.ts
87
87
  var colors = {
88
88
  text: {
89
89
  primary: "#ece7dc",
@@ -151,7 +151,7 @@ var space = {
151
151
  lg: 3
152
152
  };
153
153
 
154
- // src/tui/contexts/ToastContext.tsx
154
+ // src/surfaces/tui/contexts/ToastContext.tsx
155
155
  import { jsx } from "react/jsx-runtime";
156
156
  var ToastContext = createContext(null);
157
157
  var AUTO_DISMISS_MS = 4e3;
@@ -185,7 +185,7 @@ function severityColor(s) {
185
185
  return colors.accent.bright;
186
186
  }
187
187
 
188
- // src/tui/contexts/WizardContext.tsx
188
+ // src/surfaces/tui/contexts/WizardContext.tsx
189
189
  import { createContext as createContext2, useContext as useContext2, useState as useState2, useCallback as useCallback2 } from "react";
190
190
  import { jsx as jsx2 } from "react/jsx-runtime";
191
191
  var WizardContext = createContext2(null);
@@ -259,7 +259,7 @@ function WizardProvider({ children }) {
259
259
  }, children });
260
260
  }
261
261
 
262
- // src/tui/contexts/WorkerDraftContext.tsx
262
+ // src/surfaces/tui/contexts/WorkerDraftContext.tsx
263
263
  import { createContext as createContext3, useContext as useContext3, useState as useState3, useCallback as useCallback3 } from "react";
264
264
  import { jsx as jsx3 } from "react/jsx-runtime";
265
265
  var WorkerDraftContext = createContext3(null);
@@ -290,7 +290,7 @@ function WorkerDraftProvider({ children }) {
290
290
  return /* @__PURE__ */ jsx3(WorkerDraftContext.Provider, { value: { draft, update, reset }, children });
291
291
  }
292
292
 
293
- // src/tui/contexts/LanguageContext.tsx
293
+ // src/surfaces/tui/contexts/LanguageContext.tsx
294
294
  import { createContext as createContext4, useCallback as useCallback4, useContext as useContext4, useState as useState4 } from "react";
295
295
  import { jsx as jsx4 } from "react/jsx-runtime";
296
296
  var LanguageContext = createContext4(null);
@@ -325,7 +325,7 @@ function tuiLanguageLabel(code) {
325
325
  return `${option.flag} ${option.nativeName}`;
326
326
  }
327
327
 
328
- // src/tui/components/ErrorBoundary.tsx
328
+ // src/surfaces/tui/components/ErrorBoundary.tsx
329
329
  import { Component } from "react";
330
330
  import { Box, Text } from "ink";
331
331
  import { jsx as jsx5, jsxs } from "react/jsx-runtime";
@@ -353,18 +353,18 @@ var ErrorBoundary = class extends Component {
353
353
  }
354
354
  };
355
355
 
356
- // src/tui/screens/LanguageSelect.tsx
356
+ // src/surfaces/tui/screens/LanguageSelect.tsx
357
357
  import { useState as useState5 } from "react";
358
358
  import { Box as Box9, Text as Text9, useInput, useWindowSize as useWindowSize2 } from "ink";
359
359
 
360
- // src/tui/components/Frame.tsx
360
+ // src/surfaces/tui/components/Frame.tsx
361
361
  import { useInsertionEffect, useRef as useRef2 } from "react";
362
362
  import { Box as Box6, Text as Text6, useWindowSize } from "ink";
363
363
 
364
- // src/tui/components/Header.tsx
364
+ // src/surfaces/tui/components/Header.tsx
365
365
  import { Box as Box2, Text as Text2 } from "ink";
366
366
 
367
- // src/tui/utils/glyphs.ts
367
+ // src/surfaces/tui/utils/glyphs.ts
368
368
  var glyphs = {
369
369
  cursor: {
370
370
  focused: "\u276F",
@@ -382,7 +382,7 @@ var glyphs = {
382
382
  }
383
383
  };
384
384
 
385
- // src/tui/utils/width.ts
385
+ // src/surfaces/tui/utils/width.ts
386
386
  import stringWidth from "string-width";
387
387
  function displayWidth(text) {
388
388
  return stringWidth(text);
@@ -392,7 +392,7 @@ function padEndDisplay(text, targetWidth) {
392
392
  return gap > 0 ? text + " ".repeat(gap) : text;
393
393
  }
394
394
 
395
- // src/tui/components/Header.tsx
395
+ // src/surfaces/tui/components/Header.tsx
396
396
  import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
397
397
  function Header({ breadcrumb, meta, tmuxSession, columns }) {
398
398
  const width = Math.max(1, columns - 1);
@@ -436,7 +436,7 @@ function Header({ breadcrumb, meta, tmuxSession, columns }) {
436
436
  ] });
437
437
  }
438
438
 
439
- // src/tui/components/Tagline.tsx
439
+ // src/surfaces/tui/components/Tagline.tsx
440
440
  import { Box as Box3, Text as Text3 } from "ink";
441
441
  import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
442
442
  function Tagline({ text, rows, cols }) {
@@ -455,10 +455,10 @@ function Tagline({ text, rows, cols }) {
455
455
  ] });
456
456
  }
457
457
 
458
- // src/tui/components/Detail.tsx
458
+ // src/surfaces/tui/components/Detail.tsx
459
459
  import { Box as Box4, Text as Text4 } from "ink";
460
460
 
461
- // src/tui/components/borderStyles.ts
461
+ // src/surfaces/tui/components/borderStyles.ts
462
462
  var DASHED_BORDER = {
463
463
  topLeft: "\u250C",
464
464
  top: "\u2504",
@@ -470,7 +470,7 @@ var DASHED_BORDER = {
470
470
  bottomRight: "\u2518"
471
471
  };
472
472
 
473
- // src/tui/components/Detail.tsx
473
+ // src/surfaces/tui/components/Detail.tsx
474
474
  import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
475
475
  function Detail({ title, children }) {
476
476
  return /* @__PURE__ */ jsxs4(Box4, { flexDirection: "column", marginLeft: space.sm, borderStyle: DASHED_BORDER, borderColor: colors.accent.deep, paddingX: space.sm, paddingY: space.sm, children: [
@@ -479,7 +479,7 @@ function Detail({ title, children }) {
479
479
  ] });
480
480
  }
481
481
 
482
- // src/tui/components/StatusBar.tsx
482
+ // src/surfaces/tui/components/StatusBar.tsx
483
483
  import { Box as Box5, Text as Text5 } from "ink";
484
484
  import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
485
485
  function StatusBar({ context = "", keys, rows, cols }) {
@@ -504,7 +504,7 @@ function StatusBar({ context = "", keys, rows, cols }) {
504
504
  ] });
505
505
  }
506
506
 
507
- // src/tui/components/LayoutContext.tsx
507
+ // src/surfaces/tui/components/LayoutContext.tsx
508
508
  import { createContext as createContext5, useContext as useContext5 } from "react";
509
509
  import { jsx as jsx10 } from "react/jsx-runtime";
510
510
  var LayoutContext = createContext5({});
@@ -518,7 +518,7 @@ function panelWidth(columns) {
518
518
  return Math.max(1, columns);
519
519
  }
520
520
 
521
- // src/tui/components/Frame.tsx
521
+ // src/surfaces/tui/components/Frame.tsx
522
522
  import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
523
523
  var FLOOR_COLS = 40;
524
524
  var FLOOR_ROWS = 12;
@@ -618,8 +618,8 @@ function Frame({
618
618
  ] });
619
619
  }
620
620
 
621
- // src/tui/components/Row.tsx
622
- import React8 from "react";
621
+ // src/surfaces/tui/components/Row.tsx
622
+ import React7 from "react";
623
623
  import { Box as Box7, Text as Text7 } from "ink";
624
624
  import { Fragment, jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
625
625
  function truncateBadgeLabel(label, compact) {
@@ -686,7 +686,7 @@ function Row({
686
686
  inlineBadges.map((item, idx) => {
687
687
  const label = truncateBadgeLabel(translatePhrase(language, item.label), compact);
688
688
  const displayLabel = item.width && !compact ? label.padEnd(item.width) : label;
689
- return /* @__PURE__ */ jsxs7(React8.Fragment, { children: [
689
+ return /* @__PURE__ */ jsxs7(React7.Fragment, { children: [
690
690
  /* @__PURE__ */ jsx12(Text7, { color: badgeBracketColor, children: "[" }),
691
691
  /* @__PURE__ */ jsx12(Text7, { color: item.color, children: displayLabel }),
692
692
  /* @__PURE__ */ jsx12(Text7, { color: badgeBracketColor, children: "]" }),
@@ -732,7 +732,7 @@ function Row({
732
732
  ] });
733
733
  }
734
734
 
735
- // src/tui/components/Section.tsx
735
+ // src/surfaces/tui/components/Section.tsx
736
736
  import { Box as Box8, Text as Text8 } from "ink";
737
737
  import { Fragment as Fragment2, jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
738
738
  function Section({ label }) {
@@ -766,7 +766,7 @@ function SectionEnd() {
766
766
  ] }) });
767
767
  }
768
768
 
769
- // src/tui/screens/LanguageSelect.tsx
769
+ // src/surfaces/tui/screens/LanguageSelect.tsx
770
770
  import { Fragment as Fragment3, jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
771
771
  var LABEL_WIDTH = Math.max(...LANGUAGE_OPTIONS.map((option) => option.nativeName.length));
772
772
  function LanguageSelect() {
@@ -844,15 +844,15 @@ function LanguageSelect() {
844
844
  );
845
845
  }
846
846
 
847
- // src/tui/screens/Welcome.tsx
847
+ // src/surfaces/tui/screens/Welcome.tsx
848
848
  import { useInsertionEffect as useInsertionEffect2, useMemo as useMemo2, useRef as useRef3, useState as useState7 } from "react";
849
849
  import { Box as Box12, Text as Text12, useApp, useInput as useInput2, useWindowSize as useWindowSize3 } from "ink";
850
850
 
851
- // src/tui/components/Wordmark.tsx
851
+ // src/surfaces/tui/components/Wordmark.tsx
852
852
  import { useEffect as useEffect2, useMemo, useState as useState6 } from "react";
853
853
  import { Box as Box10, Text as Text10 } from "ink";
854
854
 
855
- // src/tui/brand/wordmark.ts
855
+ // src/surfaces/tui/brand/wordmark.ts
856
856
  var GLYPHS = {
857
857
  " ": ["000", "000", "000", "000", "000"],
858
858
  A: ["01110", "10001", "11111", "10001", "10001"],
@@ -907,7 +907,7 @@ function logoRowsHalf(lines = LOGO_LINES) {
907
907
  return out;
908
908
  }
909
909
 
910
- // src/tui/components/Wordmark.tsx
910
+ // src/surfaces/tui/components/Wordmark.tsx
911
911
  import { jsx as jsx15 } from "react/jsx-runtime";
912
912
  var BREATH_INTERVAL_MS = 1600;
913
913
  function useBreathFrame(enabled, intervalMs = BREATH_INTERVAL_MS) {
@@ -936,10 +936,10 @@ function Wordmark({ compact = false, animated = false, full = false, small = fal
936
936
  return /* @__PURE__ */ jsx15(Box10, { flexDirection: "column", children: rows.map((row, rowIdx) => /* @__PURE__ */ jsx15(Box10, { children: chunks(row, compact ? 3 : 4).map((part, chunkIdx) => /* @__PURE__ */ jsx15(Text10, { color: colorForChunk(rowIdx, chunkIdx, animate ? frame : 0), bold: true, children: part }, `${rowIdx}-${chunkIdx}`)) }, `${rowIdx}-${row}`)) });
937
937
  }
938
938
 
939
- // src/tui/components/Mascot.tsx
939
+ // src/surfaces/tui/components/Mascot.tsx
940
940
  import { Box as Box11, Text as Text11 } from "ink";
941
941
 
942
- // src/tui/brand/duck-rendered.ts
942
+ // src/surfaces/tui/brand/duck-rendered.ts
943
943
  var DUCK_RENDERED = {
944
944
  hero: "\x1B[39m \x1B[38;5;1m \x1B[38;5;136m\u2583\x1B[38;5;221m\u2584\u2585\u2585\x1B[38;5;215m\u2584\x1B[38;5;136m\u2582 \x1B[39m\n \x1B[38;5;130m\u2581\x1B[38;5;208m\u2582\u259F\x1B[38;5;221m\u2588\u2588\x1B[38;5;179m\u2588\x1B[38;5;222m\u2588\x1B[38;5;221m\u2588\u2588\x1B[38;5;136m\u2599 \x1B[39m\n \x1B[38;5;202m\u2588\u2588\x1B[38;5;208m\u2588\x1B[38;5;221m\u2588\u2588\u2586\x1B[38;5;222m\u2588\x1B[38;5;221m\u2588\u2588\u2588\u2584\x1B[38;5;215m\u2584\x1B[38;5;221m\u2583\u2582\x1B[38;5;136m\u2581 \x1B[39m\n \x1B[38;5;166m\u2594\u2594\x1B[38;5;136m\u2580\x1B[38;5;215m\u2588\x1B[38;5;221m\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\x1B[38;5;215m\u2587\x1B[38;5;178m\u2585\x1B[38;5;214m\u2585\x1B[38;5;136m\u258F\x1B[39m\n \x1B[38;5;1m \x1B[38;5;178m\u2595\x1B[38;5;221m\u2588\u2588\u2588\u2588\u2588\x1B[38;5;214m\u2588\u2588\u2588\x1B[38;5;178m\u2588\u2588\x1B[38;5;214m\u2588\u2588\u2588\x1B[38;5;221m\u2588\x1B[38;5;178m\u2589 \x1B[39m\n \x1B[38;5;1m \x1B[38;5;142m\u259C\x1B[38;5;221m\u2588\u2588\u2588\u2588\x1B[38;5;214m\u2588\u2588\u2588\x1B[38;5;178m\u2588\u2588\x1B[38;5;214m\u2588\u2588\u2588\x1B[38;5;178m\u2588\u2598 \x1B[39m\n \x1B[38;5;1m \x1B[38;5;136m\u2580\x1B[38;5;221m\u2580\x1B[38;5;178m\u259C\x1B[38;5;142m\u2588\x1B[38;5;178m\u2588\u2588\u2588\x1B[38;5;136m\u2588\x1B[38;5;221m\u2580\x1B[38;5;178m\u2580\x1B[38;5;215m\u2594 \x1B[39m\n \x1B[38;5;1m \x1B[39m",
945
945
  single: "\x1B[39m \x1B[38;5;1m \x1B[38;5;94m\u2597\x1B[38;5;178m\u2585\x1B[38;5;221m\u2586\x1B[38;5;178m\u2586\u2584 \x1B[39m\n\x1B[38;5;130m\u2597\x1B[38;5;208m\u2585\u2588\x1B[38;5;221m\u2588\x1B[38;5;179m\u2588\x1B[38;5;221m\u2588\u2588\x1B[38;5;178m\u258B\u2581 \x1B[39m\n\x1B[38;5;130m\u259D\x1B[38;5;166m\u2580\x1B[38;5;136m\u259C\x1B[38;5;221m\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2587\x1B[38;5;178m\u2586\x1B[38;5;221m\u2583\x1B[38;5;178m\u2596\x1B[39m\n \x1B[38;5;1m \x1B[38;5;100m\u2590\x1B[38;5;221m\u2588\u2588\u2588\x1B[38;5;214m\u2588\u2588\x1B[38;5;178m\u2588\u2588\u2588\x1B[38;5;214m\u2588\x1B[38;5;221m\u2588\x1B[38;5;136m\u258F\x1B[39m\n \x1B[38;5;1m \x1B[38;5;136m\u2580\x1B[38;5;178m\u259C\x1B[38;5;215m\u2588\x1B[38;5;221m\u2588\x1B[38;5;220m\u2588\x1B[38;5;214m\u2588\u2588\x1B[38;5;178m\u2588\u259B\u2598 \x1B[39m\n \x1B[38;5;1m \x1B[38;5;178m\u2594\u2594 \x1B[39m",
@@ -955,7 +955,7 @@ var DUCK_RENDERED = {
955
955
  miniDown: "\x1B[39m \x1B[38;5;1m \x1B[39m\n\x1B[38;5;94m\u2590\x1B[38;5;221m\u2587\x1B[38;5;215m\u2583\x1B[38;5;136m\u2582\x1B[39m"
956
956
  };
957
957
 
958
- // src/tui/components/Mascot.tsx
958
+ // src/surfaces/tui/components/Mascot.tsx
959
959
  import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
960
960
  function DuckRows({ artKey }) {
961
961
  const rows = DUCK_RENDERED[artKey].split("\n");
@@ -993,7 +993,7 @@ function Mascot({ variant, shift = "normal" }) {
993
993
  ] });
994
994
  }
995
995
 
996
- // src/tui/screens/Welcome.tsx
996
+ // src/surfaces/tui/screens/Welcome.tsx
997
997
  import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
998
998
  function pickMascotVariant(columns) {
999
999
  if (columns < 50) return "mini";
@@ -1136,11 +1136,11 @@ function Welcome() {
1136
1136
  ] }) });
1137
1137
  }
1138
1138
 
1139
- // src/tui/screens/Runs.tsx
1139
+ // src/surfaces/tui/screens/Runs.tsx
1140
1140
  import { useEffect as useEffect3, useMemo as useMemo3, useState as useState8 } from "react";
1141
1141
  import { Box as Box14, useInput as useInput3, useApp as useApp2, useWindowSize as useWindowSize4 } from "ink";
1142
1142
 
1143
- // src/tui/components/Legend.tsx
1143
+ // src/surfaces/tui/components/Legend.tsx
1144
1144
  import { Box as Box13, Text as Text13 } from "ink";
1145
1145
  import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
1146
1146
  function Legend({ items }) {
@@ -1158,12 +1158,12 @@ function Legend({ items }) {
1158
1158
  }) });
1159
1159
  }
1160
1160
 
1161
- // src/tui/utils/agentLabel.ts
1161
+ // src/surfaces/tui/utils/agentLabel.ts
1162
1162
  function agentCountLabel(t, count) {
1163
1163
  return count === 1 ? t("runtime.agentsOne", { count }) : t("runtime.agentsMany", { count });
1164
1164
  }
1165
1165
 
1166
- // src/tui/screens/Runs.tsx
1166
+ // src/surfaces/tui/screens/Runs.tsx
1167
1167
  import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
1168
1168
  var ACTIONS = ["NewRun", "History", "Main Menu", "Quit"];
1169
1169
  var CHROME_ROWS = 18;
@@ -1210,6 +1210,7 @@ function Runs() {
1210
1210
  const [runScroll, setRunScroll] = useState8(0);
1211
1211
  function refresh() {
1212
1212
  sweepAgentsThrottled();
1213
+ sweepOrphanSessionsThrottled();
1213
1214
  autoCleanupRuns();
1214
1215
  const next = listRuns();
1215
1216
  setRuns((prev) => {
@@ -1449,11 +1450,11 @@ function Runs() {
1449
1450
  );
1450
1451
  }
1451
1452
 
1452
- // src/tui/screens/RunHistory.tsx
1453
+ // src/surfaces/tui/screens/RunHistory.tsx
1453
1454
  import { useEffect as useEffect4, useState as useState10 } from "react";
1454
1455
  import { Box as Box16, useInput as useInput5, useWindowSize as useWindowSize5 } from "ink";
1455
1456
 
1456
- // src/tui/components/Dialog.tsx
1457
+ // src/surfaces/tui/components/Dialog.tsx
1457
1458
  import { useState as useState9 } from "react";
1458
1459
  import { Box as Box15, Text as Text14, useInput as useInput4 } from "ink";
1459
1460
  import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
@@ -1473,7 +1474,7 @@ function Dialog({
1473
1474
  const displayBody = translatePhrase(language, body);
1474
1475
  const displayConfirm = translatePhrase(language, confirmLabel);
1475
1476
  const displayCancel = translatePhrase(language, cancelLabel);
1476
- useInput4((input, key) => {
1477
+ useInput4((_input, key) => {
1477
1478
  if (key.leftArrow) {
1478
1479
  setFocusedButton("cancel");
1479
1480
  } else if (key.rightArrow) {
@@ -1509,7 +1510,7 @@ function Dialog({
1509
1510
  ] });
1510
1511
  }
1511
1512
 
1512
- // src/tui/screens/RunHistory.tsx
1513
+ // src/surfaces/tui/screens/RunHistory.tsx
1513
1514
  import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
1514
1515
  var ACTIONS2 = ["DeleteSelected", "Back", "Main Menu"];
1515
1516
  var ACTION_COPY2 = {
@@ -1790,8 +1791,8 @@ function RunHistory() {
1790
1791
  );
1791
1792
  }
1792
1793
 
1793
- // src/tui/screens/run/Run.tsx
1794
- import React15, { useEffect as useEffect5, useState as useState11 } from "react";
1794
+ // src/surfaces/tui/screens/run/Run.tsx
1795
+ import React8, { useEffect as useEffect5, useState as useState11 } from "react";
1795
1796
  import { Box as Box17, Text as Text15, useInput as useInput6, useWindowSize as useWindowSize6 } from "ink";
1796
1797
  import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
1797
1798
  var REFRESH_INTERVAL_MS = 5e3;
@@ -1999,7 +2000,7 @@ function Run() {
1999
2000
  items.map((item, idx) => {
2000
2001
  const isSelected = selectedIdx === idx;
2001
2002
  if (item.action === "__section__") {
2002
- return /* @__PURE__ */ jsxs16(React15.Fragment, { children: [
2003
+ return /* @__PURE__ */ jsxs16(React8.Fragment, { children: [
2003
2004
  /* @__PURE__ */ jsx22(SectionEnd, {}),
2004
2005
  /* @__PURE__ */ jsx22(Section, { label: "Lifecycle" })
2005
2006
  ] }, "__section__");
@@ -2035,11 +2036,11 @@ function Run() {
2035
2036
  );
2036
2037
  }
2037
2038
 
2038
- // src/tui/screens/run/RunAgents.tsx
2039
+ // src/surfaces/tui/screens/run/RunAgents.tsx
2039
2040
  import { useEffect as useEffect6, useState as useState12 } from "react";
2040
2041
  import { Box as Box19, Text as Text17, useInput as useInput8, useWindowSize as useWindowSize7 } from "ink";
2041
2042
 
2042
- // src/tui/components/Pagination.tsx
2043
+ // src/surfaces/tui/components/Pagination.tsx
2043
2044
  import { Box as Box18, Text as Text16, useInput as useInput7 } from "ink";
2044
2045
  import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
2045
2046
  function Pagination({ page, total, focused = false, onPrev, onNext }) {
@@ -2075,7 +2076,7 @@ function Pagination({ page, total, focused = false, onPrev, onNext }) {
2075
2076
  ] });
2076
2077
  }
2077
2078
 
2078
- // src/tui/screens/run/RunAgents.tsx
2079
+ // src/surfaces/tui/screens/run/RunAgents.tsx
2079
2080
  import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
2080
2081
  var CHROME_ROWS3 = 13;
2081
2082
  var REFRESH_INTERVAL_MS2 = 5e3;
@@ -2362,7 +2363,7 @@ function RunAgents() {
2362
2363
  );
2363
2364
  }
2364
2365
 
2365
- // src/tui/screens/run/RunOutput.tsx
2366
+ // src/surfaces/tui/screens/run/RunOutput.tsx
2366
2367
  import { useEffect as useEffect7, useState as useState13 } from "react";
2367
2368
  import { Box as Box20, Text as Text18, useInput as useInput9, useWindowSize as useWindowSize8 } from "ink";
2368
2369
  import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
@@ -2678,8 +2679,8 @@ function RunOutput() {
2678
2679
  );
2679
2680
  }
2680
2681
 
2681
- // src/tui/screens/run/AgentDetail.tsx
2682
- import React18, { useState as useState14 } from "react";
2682
+ // src/surfaces/tui/screens/run/AgentDetail.tsx
2683
+ import React9, { useState as useState14 } from "react";
2683
2684
  import { Box as Box21, Text as Text19, useInput as useInput10, useWindowSize as useWindowSize9 } from "ink";
2684
2685
  import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
2685
2686
  var LABELS2 = {
@@ -2891,7 +2892,7 @@ function AgentDetail() {
2891
2892
  items.map((item, idx) => {
2892
2893
  const isSelected = selectedIdx === idx;
2893
2894
  if (item.action === "__section__") {
2894
- return /* @__PURE__ */ jsxs20(React18.Fragment, { children: [
2895
+ return /* @__PURE__ */ jsxs20(React9.Fragment, { children: [
2895
2896
  /* @__PURE__ */ jsx26(SectionEnd, {}),
2896
2897
  /* @__PURE__ */ jsx26(Section, { label: "Actions" })
2897
2898
  ] }, "__section__");
@@ -2924,7 +2925,7 @@ function AgentDetail() {
2924
2925
  );
2925
2926
  }
2926
2927
 
2927
- // src/tui/screens/run/AgentOutput.tsx
2928
+ // src/surfaces/tui/screens/run/AgentOutput.tsx
2928
2929
  import { useEffect as useEffect8, useState as useState15 } from "react";
2929
2930
  import { Box as Box22, Text as Text20, useInput as useInput11, useWindowSize as useWindowSize10 } from "ink";
2930
2931
  import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
@@ -3179,7 +3180,7 @@ function AgentOutput() {
3179
3180
  );
3180
3181
  }
3181
3182
 
3182
- // src/tui/screens/run/AgentTask.tsx
3183
+ // src/surfaces/tui/screens/run/AgentTask.tsx
3183
3184
  import { useState as useState16 } from "react";
3184
3185
  import { Box as Box23, Text as Text21, useInput as useInput12 } from "ink";
3185
3186
  import { jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
@@ -3244,7 +3245,7 @@ function AgentTask() {
3244
3245
  );
3245
3246
  }
3246
3247
 
3247
- // src/tui/screens/run/AgentKill.tsx
3248
+ // src/surfaces/tui/screens/run/AgentKill.tsx
3248
3249
  import { useState as useState17 } from "react";
3249
3250
  import { Box as Box24, Text as Text22, useInput as useInput13 } from "ink";
3250
3251
  import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
@@ -3335,7 +3336,7 @@ function AgentKill() {
3335
3336
  );
3336
3337
  }
3337
3338
 
3338
- // src/tui/screens/newrun/NewRun.tsx
3339
+ // src/surfaces/tui/screens/newrun/NewRun.tsx
3339
3340
  import { useEffect as useEffect9 } from "react";
3340
3341
  import { Text as Text23 } from "ink";
3341
3342
  import { jsx as jsx30 } from "react/jsx-runtime";
@@ -3350,11 +3351,11 @@ function NewRun() {
3350
3351
  return /* @__PURE__ */ jsx30(WizardProvider, { children: /* @__PURE__ */ jsx30(NewRunInner, {}) });
3351
3352
  }
3352
3353
 
3353
- // src/tui/screens/newrun/NewRunBasics.tsx
3354
+ // src/surfaces/tui/screens/newrun/NewRunBasics.tsx
3354
3355
  import { useState as useState19, useMemo as useMemo4 } from "react";
3355
3356
  import { useInput as useInput15, useWindowSize as useWindowSize11 } from "ink";
3356
3357
 
3357
- // src/tui/components/StepIndicator.tsx
3358
+ // src/surfaces/tui/components/StepIndicator.tsx
3358
3359
  import { Box as Box25, Text as Text24 } from "ink";
3359
3360
  import { jsx as jsx31, jsxs as jsxs24 } from "react/jsx-runtime";
3360
3361
  function StepIndicator({ step, total, name }) {
@@ -3369,7 +3370,7 @@ function StepIndicator({ step, total, name }) {
3369
3370
  ] });
3370
3371
  }
3371
3372
 
3372
- // src/tui/components/TextField.tsx
3373
+ // src/surfaces/tui/components/TextField.tsx
3373
3374
  import { useState as useState18, useEffect as useEffect10 } from "react";
3374
3375
  import { Box as Box26, Text as Text25, useInput as useInput14 } from "ink";
3375
3376
  import { jsx as jsx32, jsxs as jsxs25 } from "react/jsx-runtime";
@@ -3471,7 +3472,7 @@ function wrapLines(value, width) {
3471
3472
  return lines.length > 0 ? lines : [""];
3472
3473
  }
3473
3474
 
3474
- // src/tui/screens/newrun/NewRunBasics.tsx
3475
+ // src/surfaces/tui/screens/newrun/NewRunBasics.tsx
3475
3476
  import { jsx as jsx33, jsxs as jsxs26 } from "react/jsx-runtime";
3476
3477
  var ACTION_LABEL_WIDTH7 = Math.max("Continue".length, "Back".length, "Reset Wizard".length);
3477
3478
  function NewRunBasics() {
@@ -3606,11 +3607,11 @@ function NewRunBasics() {
3606
3607
  );
3607
3608
  }
3608
3609
 
3609
- // src/tui/screens/newrun/NewRunRoot.tsx
3610
+ // src/surfaces/tui/screens/newrun/NewRunRoot.tsx
3610
3611
  import { useState as useState20, useMemo as useMemo5 } from "react";
3611
3612
  import { useInput as useInput16, useWindowSize as useWindowSize12 } from "ink";
3612
3613
 
3613
- // src/tui/components/ModelOptionList.tsx
3614
+ // src/surfaces/tui/components/ModelOptionList.tsx
3614
3615
  import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs27 } from "react/jsx-runtime";
3615
3616
  function ModelOptionList({ provider, values, current, selectedIdx, visibleCount }) {
3616
3617
  const rowCount = Math.max(1, visibleCount ?? values.length);
@@ -3647,7 +3648,7 @@ function ModelOptionList({ provider, values, current, selectedIdx, visibleCount
3647
3648
  ] });
3648
3649
  }
3649
3650
 
3650
- // src/tui/screens/newrun/NewRunRoot.tsx
3651
+ // src/surfaces/tui/screens/newrun/NewRunRoot.tsx
3651
3652
  import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs28 } from "react/jsx-runtime";
3652
3653
  var PERMISSIONS_VALUES = ["ask", "skip"];
3653
3654
  var EFFORT_VALUES = ["default", "low", "medium", "high", "xhigh", "max"];
@@ -3924,7 +3925,7 @@ function pickerBadge(field, provider) {
3924
3925
  return void 0;
3925
3926
  }
3926
3927
 
3927
- // src/tui/screens/newrun/NewRunWorkers.tsx
3928
+ // src/surfaces/tui/screens/newrun/NewRunWorkers.tsx
3928
3929
  import { useState as useState21 } from "react";
3929
3930
  import { useInput as useInput17, useWindowSize as useWindowSize13 } from "ink";
3930
3931
  import { Fragment as Fragment7, jsx as jsx36, jsxs as jsxs29 } from "react/jsx-runtime";
@@ -4079,7 +4080,7 @@ function NewRunWorkers() {
4079
4080
  );
4080
4081
  }
4081
4082
 
4082
- // src/tui/screens/newrun/NewRunWorker.tsx
4083
+ // src/surfaces/tui/screens/newrun/NewRunWorker.tsx
4083
4084
  import { useState as useState22, useMemo as useMemo6 } from "react";
4084
4085
  import { useInput as useInput18, useWindowSize as useWindowSize14 } from "ink";
4085
4086
  import { Fragment as Fragment8, jsx as jsx37, jsxs as jsxs30 } from "react/jsx-runtime";
@@ -4359,7 +4360,7 @@ function pickerBadge2(field, provider) {
4359
4360
  return void 0;
4360
4361
  }
4361
4362
 
4362
- // src/tui/screens/newrun/NewRunReview.tsx
4363
+ // src/surfaces/tui/screens/newrun/NewRunReview.tsx
4363
4364
  import { useState as useState23 } from "react";
4364
4365
  import { useInput as useInput19, useWindowSize as useWindowSize15 } from "ink";
4365
4366
  import { Fragment as Fragment9, jsx as jsx38, jsxs as jsxs31 } from "react/jsx-runtime";
@@ -4492,11 +4493,11 @@ function NewRunReview() {
4492
4493
  );
4493
4494
  }
4494
4495
 
4495
- // src/tui/screens/newrun/NewRunStarting.tsx
4496
+ // src/surfaces/tui/screens/newrun/NewRunStarting.tsx
4496
4497
  import { useEffect as useEffect12, useState as useState25 } from "react";
4497
4498
  import { Box as Box28, Text as Text27, useInput as useInput20 } from "ink";
4498
4499
 
4499
- // src/tui/components/Spinner.tsx
4500
+ // src/surfaces/tui/components/Spinner.tsx
4500
4501
  import { useEffect as useEffect11, useState as useState24 } from "react";
4501
4502
  import { Box as Box27, Text as Text26 } from "ink";
4502
4503
  import { jsx as jsx39, jsxs as jsxs32 } from "react/jsx-runtime";
@@ -4516,7 +4517,7 @@ function Spinner({ label, color = colors.accent.primary }) {
4516
4517
  ] });
4517
4518
  }
4518
4519
 
4519
- // src/tui/screens/newrun/NewRunStarting.tsx
4520
+ // src/surfaces/tui/screens/newrun/NewRunStarting.tsx
4520
4521
  import { jsx as jsx40, jsxs as jsxs33 } from "react/jsx-runtime";
4521
4522
  var ACTION_LABEL_WIDTH12 = Math.max("Retry".length, "Back to Review".length);
4522
4523
  function NewRunStarting() {
@@ -4640,7 +4641,7 @@ function NewRunStarting() {
4640
4641
  );
4641
4642
  }
4642
4643
 
4643
- // src/tui/screens/run/AddWorker.tsx
4644
+ // src/surfaces/tui/screens/run/AddWorker.tsx
4644
4645
  import { useState as useState26, useMemo as useMemo7 } from "react";
4645
4646
  import { useInput as useInput21, useWindowSize as useWindowSize16 } from "ink";
4646
4647
  import { Fragment as Fragment10, jsx as jsx41, jsxs as jsxs34 } from "react/jsx-runtime";
@@ -4948,7 +4949,7 @@ function pickerBadge3(field, provider) {
4948
4949
  return void 0;
4949
4950
  }
4950
4951
 
4951
- // src/tui/screens/run/RunStop.tsx
4952
+ // src/surfaces/tui/screens/run/RunStop.tsx
4952
4953
  import { jsx as jsx42 } from "react/jsx-runtime";
4953
4954
  function RunStop() {
4954
4955
  const { selectedRunId, pop, resetStack } = useRouter();
@@ -5024,7 +5025,7 @@ function RunStop() {
5024
5025
  );
5025
5026
  }
5026
5027
 
5027
- // src/tui/screens/Settings.tsx
5028
+ // src/surfaces/tui/screens/Settings.tsx
5028
5029
  import { useMemo as useMemo8, useState as useState27 } from "react";
5029
5030
  import { Box as Box29, useInput as useInput22, useWindowSize as useWindowSize17 } from "ink";
5030
5031
  import { Fragment as Fragment11, jsx as jsx43, jsxs as jsxs35 } from "react/jsx-runtime";
@@ -5331,18 +5332,18 @@ function Settings() {
5331
5332
  );
5332
5333
  }
5333
5334
 
5334
- // src/tui/screens/AgentControl.tsx
5335
+ // src/surfaces/tui/screens/AgentControl.tsx
5335
5336
  import { useMemo as useMemo9, useState as useState28 } from "react";
5336
5337
  import { Box as Box31, useInput as useInput23, useWindowSize as useWindowSize18 } from "ink";
5337
5338
 
5338
- // src/tui/components/Primary.tsx
5339
+ // src/surfaces/tui/components/Primary.tsx
5339
5340
  import { Box as Box30 } from "ink";
5340
5341
  import { jsx as jsx44 } from "react/jsx-runtime";
5341
5342
  function Primary({ children }) {
5342
5343
  return /* @__PURE__ */ jsx44(Box30, { flexDirection: "column", flexGrow: 1, children });
5343
5344
  }
5344
5345
 
5345
- // src/tui/screens/AgentControl.tsx
5346
+ // src/surfaces/tui/screens/AgentControl.tsx
5346
5347
  import { jsx as jsx45, jsxs as jsxs36 } from "react/jsx-runtime";
5347
5348
  function hostGlyph(host) {
5348
5349
  if (!host.installed) return { char: glyphs.status.fail, color: colors.text.faint };
@@ -5391,7 +5392,7 @@ function AgentControl() {
5391
5392
  if (host.manual || !host.installed) return;
5392
5393
  const wasAttached = host.attached;
5393
5394
  const res = wasAttached ? detach(host.key) : attach(host.key);
5394
- setResult(!wasAttached && res.ok ? { ...res, message: `${res.message} \u2014 ${t("agentControl.restartHint")}` } : res);
5395
+ setResult(!wasAttached && res.ok ? { ...res, message: `${res.message}: ${t("agentControl.restartHint")}` } : res);
5395
5396
  setRefreshKey((k) => k + 1);
5396
5397
  }
5397
5398
  function runAttachAll() {
@@ -5402,7 +5403,7 @@ function AgentControl() {
5402
5403
  key: "all",
5403
5404
  label: t("agentControl.attachAll"),
5404
5405
  ok: results.every((r) => r.ok),
5405
- message: ok > 0 ? `${toast} \u2014 ${t("agentControl.restartHint")}` : toast
5406
+ message: ok > 0 ? `${toast}: ${t("agentControl.restartHint")}` : toast
5406
5407
  });
5407
5408
  setRefreshKey((k) => k + 1);
5408
5409
  }
@@ -5520,7 +5521,7 @@ function AgentControl() {
5520
5521
  );
5521
5522
  }
5522
5523
 
5523
- // src/tui/screens/Setup.tsx
5524
+ // src/surfaces/tui/screens/Setup.tsx
5524
5525
  import { useMemo as useMemo10, useState as useState29 } from "react";
5525
5526
  import { Box as Box32, Text as Text28, useInput as useInput24 } from "ink";
5526
5527
  import { jsx as jsx46, jsxs as jsxs37 } from "react/jsx-runtime";
@@ -5602,7 +5603,7 @@ function Setup() {
5602
5603
  );
5603
5604
  }
5604
5605
 
5605
- // src/tui/screens/Reference.tsx
5606
+ // src/surfaces/tui/screens/Reference.tsx
5606
5607
  import { useState as useState30 } from "react";
5607
5608
  import { useInput as useInput25, useWindowSize as useWindowSize19 } from "ink";
5608
5609
  import { Fragment as Fragment12, jsx as jsx47, jsxs as jsxs38 } from "react/jsx-runtime";
@@ -5623,7 +5624,7 @@ var CONTENT = [
5623
5624
  { type: "row", primary: "Human", trailing: "uses TUI/tmux and remains in charge" },
5624
5625
  { type: "row", primary: "Agent", trailing: "provider agent inside the run session" },
5625
5626
  { type: "section", label: "OSS" },
5626
- { type: "row", primary: "npm / Homebrew", trailing: "planned public install channels" },
5627
+ { type: "row", primary: "npm / Homebrew", trailing: "public install channels" },
5627
5628
  { type: "row", primary: "GitHub Releases", trailing: "tags, changelog, known limitations" }
5628
5629
  ];
5629
5630
  function Reference() {
@@ -5690,7 +5691,7 @@ function Reference() {
5690
5691
  );
5691
5692
  }
5692
5693
 
5693
- // src/tui/screens/Credits.tsx
5694
+ // src/surfaces/tui/screens/Credits.tsx
5694
5695
  import { useState as useState31 } from "react";
5695
5696
  import { Box as Box33, useInput as useInput26, useWindowSize as useWindowSize20 } from "ink";
5696
5697
  import { Fragment as Fragment13, jsx as jsx48, jsxs as jsxs39 } from "react/jsx-runtime";
@@ -5755,7 +5756,7 @@ function Credits() {
5755
5756
  );
5756
5757
  }
5757
5758
 
5758
- // src/tui/screens/Doctor.tsx
5759
+ // src/surfaces/tui/screens/Doctor.tsx
5759
5760
  import { useEffect as useEffect13, useMemo as useMemo11, useState as useState32 } from "react";
5760
5761
  import { Box as Box34, useInput as useInput27, useWindowSize as useWindowSize21 } from "ink";
5761
5762
  import { Fragment as Fragment14, jsx as jsx49, jsxs as jsxs40 } from "react/jsx-runtime";
@@ -5936,7 +5937,7 @@ function Doctor() {
5936
5937
  );
5937
5938
  }
5938
5939
 
5939
- // src/tui/screens/DoctorCheck.tsx
5940
+ // src/surfaces/tui/screens/DoctorCheck.tsx
5940
5941
  import { useEffect as useEffect14, useMemo as useMemo12, useState as useState33 } from "react";
5941
5942
  import { Box as Box35, Text as Text29, useInput as useInput28 } from "ink";
5942
5943
  import { Fragment as Fragment15, jsx as jsx50, jsxs as jsxs41 } from "react/jsx-runtime";
@@ -6021,7 +6022,7 @@ function DoctorCheck() {
6021
6022
  );
6022
6023
  }
6023
6024
 
6024
- // src/tui/screens/Approvals.tsx
6025
+ // src/surfaces/tui/screens/Approvals.tsx
6025
6026
  import { useEffect as useEffect15, useState as useState34 } from "react";
6026
6027
  import { Box as Box36, useInput as useInput29 } from "ink";
6027
6028
  import { jsx as jsx51, jsxs as jsxs42 } from "react/jsx-runtime";
@@ -6171,7 +6172,7 @@ function Approvals() {
6171
6172
  );
6172
6173
  }
6173
6174
 
6174
- // src/tui/screens/Config.tsx
6175
+ // src/surfaces/tui/screens/Config.tsx
6175
6176
  import { useState as useState35 } from "react";
6176
6177
  import { Box as Box37, useInput as useInput30 } from "ink";
6177
6178
  import { jsx as jsx52, jsxs as jsxs43 } from "react/jsx-runtime";
@@ -6280,7 +6281,7 @@ function Config() {
6280
6281
  );
6281
6282
  }
6282
6283
 
6283
- // src/tui/screens/Presets.tsx
6284
+ // src/surfaces/tui/screens/Presets.tsx
6284
6285
  import { useEffect as useEffect16, useState as useState36 } from "react";
6285
6286
  import { Box as Box38, useInput as useInput31 } from "ink";
6286
6287
  import { jsx as jsx53, jsxs as jsxs44 } from "react/jsx-runtime";
@@ -6468,7 +6469,7 @@ function Presets() {
6468
6469
  );
6469
6470
  }
6470
6471
 
6471
- // src/tui/router.tsx
6472
+ // src/surfaces/tui/router.tsx
6472
6473
  import { jsx as jsx54 } from "react/jsx-runtime";
6473
6474
  var RouterContext = createContext6(null);
6474
6475
  function useRouter() {
@@ -6639,4 +6640,4 @@ export {
6639
6640
  nextHistoryOnReset,
6640
6641
  useRouter
6641
6642
  };
6642
- //# sourceMappingURL=router-RZANKWMI.js.map
6643
+ //# sourceMappingURL=router-2LPA3MHU.js.map