reevesagents 1.7.2 → 1.7.4

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-TUYP7APK.js";
5
+ } from "./chunk-X6EBVSC7.js";
6
6
  import {
7
7
  sweepAgentsThrottled
8
- } from "./chunk-FL3LI2MU.js";
8
+ } from "./chunk-CFDTC6GY.js";
9
9
  import {
10
10
  translate,
11
11
  translatePhrase
12
- } from "./chunk-SFF7SYI6.js";
12
+ } from "./chunk-TIDTHK3L.js";
13
13
  import {
14
14
  modelDisplayName,
15
15
  modelValuesForProvider
16
- } from "./chunk-QMRLJAEV.js";
16
+ } from "./chunk-HIJYVPYH.js";
17
17
  import {
18
18
  REEVESAGENTS_VERSION,
19
19
  listRunApprovals,
20
20
  resolveRunApproval
21
- } from "./chunk-NKT6GFCD.js";
21
+ } from "./chunk-UH6K25MG.js";
22
22
  import {
23
23
  CONFIG_FIELDS,
24
24
  DEFAULT_LANGUAGE,
@@ -29,7 +29,6 @@ import {
29
29
  attachAll,
30
30
  autoCleanupRuns,
31
31
  coerceExtraArgs,
32
- colors,
33
32
  computeRunStatus,
34
33
  configExists,
35
34
  configPath,
@@ -65,26 +64,94 @@ import {
65
64
  runsDir,
66
65
  saveConfig,
67
66
  savePresetFromRun,
68
- sep,
69
67
  setConfigValues,
70
- space,
71
68
  spawnWorker,
72
69
  startRun,
73
70
  startRunFromPreset,
74
71
  stateRoot,
75
72
  stopRun
76
- } from "./chunk-CE6YASBF.js";
77
- import "./chunk-D24DQQ6V.js";
73
+ } from "./chunk-PDJ2CPVO.js";
74
+ import "./chunk-Q3WWQP2R.js";
78
75
  import {
79
76
  startWebFromTui
80
- } from "./chunk-EA6OGFOE.js";
77
+ } from "./chunk-LXZNX6EJ.js";
81
78
 
82
- // src/tui/router.tsx
79
+ // src/surfaces/tui/router.tsx
83
80
  import { createContext as createContext6, useContext as useContext6, useState as useState37, useCallback as useCallback5, useEffect as useEffect17, useRef as useRef4 } from "react";
84
81
  import { useApp as useApp3 } from "ink";
85
82
 
86
- // src/tui/contexts/ToastContext.tsx
83
+ // src/surfaces/tui/contexts/ToastContext.tsx
87
84
  import { createContext, useCallback, useContext, useEffect, useRef, useState } from "react";
85
+
86
+ // src/surfaces/tui/utils/tokens.ts
87
+ var colors = {
88
+ text: {
89
+ primary: "#ece7dc",
90
+ // body text
91
+ dim: "#b8b0a3",
92
+ // labels, secondary text
93
+ muted: "#817b70",
94
+ // tertiary text, divider labels
95
+ faint: "#55504a",
96
+ // disabled, dashed border edges
97
+ subtle: "#292622"
98
+ // near-background tints
99
+ },
100
+ accent: {
101
+ bright: "#7eb8f5",
102
+ // selection cursor, focused text, current breadcrumb
103
+ primary: "#5a96e0",
104
+ // panel titles, links, emphasis
105
+ deep: "#4a6fa5",
106
+ // inactive panel borders
107
+ ink: "#1e2d3e"
108
+ // selected button fill
109
+ },
110
+ surface: {
111
+ selected: "#1e2d3e",
112
+ // selected action fill
113
+ rail: "#314253",
114
+ // card rails and active separators
115
+ border: "#3a4b5f",
116
+ // card border strokes
117
+ quiet: "#36383d"
118
+ // outer rules
119
+ },
120
+ status: {
121
+ ok: "#83a36f",
122
+ // running, ok, approved
123
+ warn: "#d7a84f",
124
+ // stale, blocked, warn
125
+ error: "#d56a60",
126
+ // failed, denied, fail
127
+ info: "#7fb4d6"
128
+ // neutral info
129
+ },
130
+ brand: {
131
+ blue: "#3a7ad8",
132
+ // wordmark base
133
+ pale: "#a5cdf7",
134
+ // wordmark highlight
135
+ gradient: ["#a5cdf7", "#7eb8f5", "#5a96e0", "#3a7ad8", "#2457a7"]
136
+ // breath cycle
137
+ }
138
+ // Provider brand colors live with each provider in the registry
139
+ // (provider-registry.ts) and model family colors in utils/display.ts
140
+ // (MODEL_COLORS); read them through providerColor()/modelColor().
141
+ };
142
+ var sep = {
143
+ dot: " \xB7 ",
144
+ pipe: " \u2502 ",
145
+ arr: " \u2192 "
146
+ };
147
+ var space = {
148
+ none: 0,
149
+ sm: 1,
150
+ md: 2,
151
+ lg: 3
152
+ };
153
+
154
+ // src/surfaces/tui/contexts/ToastContext.tsx
88
155
  import { jsx } from "react/jsx-runtime";
89
156
  var ToastContext = createContext(null);
90
157
  var AUTO_DISMISS_MS = 4e3;
@@ -118,7 +185,7 @@ function severityColor(s) {
118
185
  return colors.accent.bright;
119
186
  }
120
187
 
121
- // src/tui/contexts/WizardContext.tsx
188
+ // src/surfaces/tui/contexts/WizardContext.tsx
122
189
  import { createContext as createContext2, useContext as useContext2, useState as useState2, useCallback as useCallback2 } from "react";
123
190
  import { jsx as jsx2 } from "react/jsx-runtime";
124
191
  var WizardContext = createContext2(null);
@@ -192,7 +259,7 @@ function WizardProvider({ children }) {
192
259
  }, children });
193
260
  }
194
261
 
195
- // src/tui/contexts/WorkerDraftContext.tsx
262
+ // src/surfaces/tui/contexts/WorkerDraftContext.tsx
196
263
  import { createContext as createContext3, useContext as useContext3, useState as useState3, useCallback as useCallback3 } from "react";
197
264
  import { jsx as jsx3 } from "react/jsx-runtime";
198
265
  var WorkerDraftContext = createContext3(null);
@@ -223,7 +290,7 @@ function WorkerDraftProvider({ children }) {
223
290
  return /* @__PURE__ */ jsx3(WorkerDraftContext.Provider, { value: { draft, update, reset }, children });
224
291
  }
225
292
 
226
- // src/tui/contexts/LanguageContext.tsx
293
+ // src/surfaces/tui/contexts/LanguageContext.tsx
227
294
  import { createContext as createContext4, useCallback as useCallback4, useContext as useContext4, useState as useState4 } from "react";
228
295
  import { jsx as jsx4 } from "react/jsx-runtime";
229
296
  var LanguageContext = createContext4(null);
@@ -258,7 +325,7 @@ function tuiLanguageLabel(code) {
258
325
  return `${option.flag} ${option.nativeName}`;
259
326
  }
260
327
 
261
- // src/tui/components/ErrorBoundary.tsx
328
+ // src/surfaces/tui/components/ErrorBoundary.tsx
262
329
  import { Component } from "react";
263
330
  import { Box, Text } from "ink";
264
331
  import { jsx as jsx5, jsxs } from "react/jsx-runtime";
@@ -286,18 +353,18 @@ var ErrorBoundary = class extends Component {
286
353
  }
287
354
  };
288
355
 
289
- // src/tui/screens/LanguageSelect.tsx
356
+ // src/surfaces/tui/screens/LanguageSelect.tsx
290
357
  import { useState as useState5 } from "react";
291
358
  import { Box as Box9, Text as Text9, useInput, useWindowSize as useWindowSize2 } from "ink";
292
359
 
293
- // src/tui/components/Frame.tsx
360
+ // src/surfaces/tui/components/Frame.tsx
294
361
  import { useInsertionEffect, useRef as useRef2 } from "react";
295
362
  import { Box as Box6, Text as Text6, useWindowSize } from "ink";
296
363
 
297
- // src/tui/components/Header.tsx
364
+ // src/surfaces/tui/components/Header.tsx
298
365
  import { Box as Box2, Text as Text2 } from "ink";
299
366
 
300
- // src/utils/glyphs.ts
367
+ // src/surfaces/tui/utils/glyphs.ts
301
368
  var glyphs = {
302
369
  cursor: {
303
370
  focused: "\u276F",
@@ -315,7 +382,7 @@ var glyphs = {
315
382
  }
316
383
  };
317
384
 
318
- // src/utils/width.ts
385
+ // src/surfaces/tui/utils/width.ts
319
386
  import stringWidth from "string-width";
320
387
  function displayWidth(text) {
321
388
  return stringWidth(text);
@@ -325,7 +392,7 @@ function padEndDisplay(text, targetWidth) {
325
392
  return gap > 0 ? text + " ".repeat(gap) : text;
326
393
  }
327
394
 
328
- // src/tui/components/Header.tsx
395
+ // src/surfaces/tui/components/Header.tsx
329
396
  import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
330
397
  function Header({ breadcrumb, meta, tmuxSession, columns }) {
331
398
  const width = Math.max(1, columns - 1);
@@ -369,7 +436,7 @@ function Header({ breadcrumb, meta, tmuxSession, columns }) {
369
436
  ] });
370
437
  }
371
438
 
372
- // src/tui/components/Tagline.tsx
439
+ // src/surfaces/tui/components/Tagline.tsx
373
440
  import { Box as Box3, Text as Text3 } from "ink";
374
441
  import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
375
442
  function Tagline({ text, rows, cols }) {
@@ -388,10 +455,10 @@ function Tagline({ text, rows, cols }) {
388
455
  ] });
389
456
  }
390
457
 
391
- // src/tui/components/Detail.tsx
458
+ // src/surfaces/tui/components/Detail.tsx
392
459
  import { Box as Box4, Text as Text4 } from "ink";
393
460
 
394
- // src/tui/components/borderStyles.ts
461
+ // src/surfaces/tui/components/borderStyles.ts
395
462
  var DASHED_BORDER = {
396
463
  topLeft: "\u250C",
397
464
  top: "\u2504",
@@ -403,7 +470,7 @@ var DASHED_BORDER = {
403
470
  bottomRight: "\u2518"
404
471
  };
405
472
 
406
- // src/tui/components/Detail.tsx
473
+ // src/surfaces/tui/components/Detail.tsx
407
474
  import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
408
475
  function Detail({ title, children }) {
409
476
  return /* @__PURE__ */ jsxs4(Box4, { flexDirection: "column", marginLeft: space.sm, borderStyle: DASHED_BORDER, borderColor: colors.accent.deep, paddingX: space.sm, paddingY: space.sm, children: [
@@ -412,7 +479,7 @@ function Detail({ title, children }) {
412
479
  ] });
413
480
  }
414
481
 
415
- // src/tui/components/StatusBar.tsx
482
+ // src/surfaces/tui/components/StatusBar.tsx
416
483
  import { Box as Box5, Text as Text5 } from "ink";
417
484
  import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
418
485
  function StatusBar({ context = "", keys, rows, cols }) {
@@ -437,7 +504,7 @@ function StatusBar({ context = "", keys, rows, cols }) {
437
504
  ] });
438
505
  }
439
506
 
440
- // src/tui/components/LayoutContext.tsx
507
+ // src/surfaces/tui/components/LayoutContext.tsx
441
508
  import { createContext as createContext5, useContext as useContext5 } from "react";
442
509
  import { jsx as jsx10 } from "react/jsx-runtime";
443
510
  var LayoutContext = createContext5({});
@@ -451,7 +518,7 @@ function panelWidth(columns) {
451
518
  return Math.max(1, columns);
452
519
  }
453
520
 
454
- // src/tui/components/Frame.tsx
521
+ // src/surfaces/tui/components/Frame.tsx
455
522
  import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
456
523
  var FLOOR_COLS = 40;
457
524
  var FLOOR_ROWS = 12;
@@ -551,8 +618,8 @@ function Frame({
551
618
  ] });
552
619
  }
553
620
 
554
- // src/tui/components/Row.tsx
555
- import React8 from "react";
621
+ // src/surfaces/tui/components/Row.tsx
622
+ import React7 from "react";
556
623
  import { Box as Box7, Text as Text7 } from "ink";
557
624
  import { Fragment, jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
558
625
  function truncateBadgeLabel(label, compact) {
@@ -619,7 +686,7 @@ function Row({
619
686
  inlineBadges.map((item, idx) => {
620
687
  const label = truncateBadgeLabel(translatePhrase(language, item.label), compact);
621
688
  const displayLabel = item.width && !compact ? label.padEnd(item.width) : label;
622
- return /* @__PURE__ */ jsxs7(React8.Fragment, { children: [
689
+ return /* @__PURE__ */ jsxs7(React7.Fragment, { children: [
623
690
  /* @__PURE__ */ jsx12(Text7, { color: badgeBracketColor, children: "[" }),
624
691
  /* @__PURE__ */ jsx12(Text7, { color: item.color, children: displayLabel }),
625
692
  /* @__PURE__ */ jsx12(Text7, { color: badgeBracketColor, children: "]" }),
@@ -665,7 +732,7 @@ function Row({
665
732
  ] });
666
733
  }
667
734
 
668
- // src/tui/components/Section.tsx
735
+ // src/surfaces/tui/components/Section.tsx
669
736
  import { Box as Box8, Text as Text8 } from "ink";
670
737
  import { Fragment as Fragment2, jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
671
738
  function Section({ label }) {
@@ -699,7 +766,7 @@ function SectionEnd() {
699
766
  ] }) });
700
767
  }
701
768
 
702
- // src/tui/screens/LanguageSelect.tsx
769
+ // src/surfaces/tui/screens/LanguageSelect.tsx
703
770
  import { Fragment as Fragment3, jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
704
771
  var LABEL_WIDTH = Math.max(...LANGUAGE_OPTIONS.map((option) => option.nativeName.length));
705
772
  function LanguageSelect() {
@@ -777,15 +844,15 @@ function LanguageSelect() {
777
844
  );
778
845
  }
779
846
 
780
- // src/tui/screens/Welcome.tsx
847
+ // src/surfaces/tui/screens/Welcome.tsx
781
848
  import { useInsertionEffect as useInsertionEffect2, useMemo as useMemo2, useRef as useRef3, useState as useState7 } from "react";
782
849
  import { Box as Box12, Text as Text12, useApp, useInput as useInput2, useWindowSize as useWindowSize3 } from "ink";
783
850
 
784
- // src/tui/components/Wordmark.tsx
851
+ // src/surfaces/tui/components/Wordmark.tsx
785
852
  import { useEffect as useEffect2, useMemo, useState as useState6 } from "react";
786
853
  import { Box as Box10, Text as Text10 } from "ink";
787
854
 
788
- // src/tui/brand/wordmark.ts
855
+ // src/surfaces/tui/brand/wordmark.ts
789
856
  var GLYPHS = {
790
857
  " ": ["000", "000", "000", "000", "000"],
791
858
  A: ["01110", "10001", "11111", "10001", "10001"],
@@ -840,7 +907,7 @@ function logoRowsHalf(lines = LOGO_LINES) {
840
907
  return out;
841
908
  }
842
909
 
843
- // src/tui/components/Wordmark.tsx
910
+ // src/surfaces/tui/components/Wordmark.tsx
844
911
  import { jsx as jsx15 } from "react/jsx-runtime";
845
912
  var BREATH_INTERVAL_MS = 1600;
846
913
  function useBreathFrame(enabled, intervalMs = BREATH_INTERVAL_MS) {
@@ -869,10 +936,10 @@ function Wordmark({ compact = false, animated = false, full = false, small = fal
869
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}`)) });
870
937
  }
871
938
 
872
- // src/tui/components/Mascot.tsx
939
+ // src/surfaces/tui/components/Mascot.tsx
873
940
  import { Box as Box11, Text as Text11 } from "ink";
874
941
 
875
- // src/tui/brand/duck-rendered.ts
942
+ // src/surfaces/tui/brand/duck-rendered.ts
876
943
  var DUCK_RENDERED = {
877
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",
878
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",
@@ -888,7 +955,7 @@ var DUCK_RENDERED = {
888
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"
889
956
  };
890
957
 
891
- // src/tui/components/Mascot.tsx
958
+ // src/surfaces/tui/components/Mascot.tsx
892
959
  import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
893
960
  function DuckRows({ artKey }) {
894
961
  const rows = DUCK_RENDERED[artKey].split("\n");
@@ -926,7 +993,7 @@ function Mascot({ variant, shift = "normal" }) {
926
993
  ] });
927
994
  }
928
995
 
929
- // src/tui/screens/Welcome.tsx
996
+ // src/surfaces/tui/screens/Welcome.tsx
930
997
  import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
931
998
  function pickMascotVariant(columns) {
932
999
  if (columns < 50) return "mini";
@@ -1069,11 +1136,11 @@ function Welcome() {
1069
1136
  ] }) });
1070
1137
  }
1071
1138
 
1072
- // src/tui/screens/Runs.tsx
1139
+ // src/surfaces/tui/screens/Runs.tsx
1073
1140
  import { useEffect as useEffect3, useMemo as useMemo3, useState as useState8 } from "react";
1074
1141
  import { Box as Box14, useInput as useInput3, useApp as useApp2, useWindowSize as useWindowSize4 } from "ink";
1075
1142
 
1076
- // src/tui/components/Legend.tsx
1143
+ // src/surfaces/tui/components/Legend.tsx
1077
1144
  import { Box as Box13, Text as Text13 } from "ink";
1078
1145
  import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
1079
1146
  function Legend({ items }) {
@@ -1091,12 +1158,12 @@ function Legend({ items }) {
1091
1158
  }) });
1092
1159
  }
1093
1160
 
1094
- // src/utils/agentLabel.ts
1161
+ // src/surfaces/tui/utils/agentLabel.ts
1095
1162
  function agentCountLabel(t, count) {
1096
1163
  return count === 1 ? t("runtime.agentsOne", { count }) : t("runtime.agentsMany", { count });
1097
1164
  }
1098
1165
 
1099
- // src/tui/screens/Runs.tsx
1166
+ // src/surfaces/tui/screens/Runs.tsx
1100
1167
  import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
1101
1168
  var ACTIONS = ["NewRun", "History", "Main Menu", "Quit"];
1102
1169
  var CHROME_ROWS = 18;
@@ -1382,11 +1449,11 @@ function Runs() {
1382
1449
  );
1383
1450
  }
1384
1451
 
1385
- // src/tui/screens/RunHistory.tsx
1452
+ // src/surfaces/tui/screens/RunHistory.tsx
1386
1453
  import { useEffect as useEffect4, useState as useState10 } from "react";
1387
1454
  import { Box as Box16, useInput as useInput5, useWindowSize as useWindowSize5 } from "ink";
1388
1455
 
1389
- // src/tui/components/Dialog.tsx
1456
+ // src/surfaces/tui/components/Dialog.tsx
1390
1457
  import { useState as useState9 } from "react";
1391
1458
  import { Box as Box15, Text as Text14, useInput as useInput4 } from "ink";
1392
1459
  import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
@@ -1406,7 +1473,7 @@ function Dialog({
1406
1473
  const displayBody = translatePhrase(language, body);
1407
1474
  const displayConfirm = translatePhrase(language, confirmLabel);
1408
1475
  const displayCancel = translatePhrase(language, cancelLabel);
1409
- useInput4((input, key) => {
1476
+ useInput4((_input, key) => {
1410
1477
  if (key.leftArrow) {
1411
1478
  setFocusedButton("cancel");
1412
1479
  } else if (key.rightArrow) {
@@ -1442,7 +1509,7 @@ function Dialog({
1442
1509
  ] });
1443
1510
  }
1444
1511
 
1445
- // src/tui/screens/RunHistory.tsx
1512
+ // src/surfaces/tui/screens/RunHistory.tsx
1446
1513
  import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
1447
1514
  var ACTIONS2 = ["DeleteSelected", "Back", "Main Menu"];
1448
1515
  var ACTION_COPY2 = {
@@ -1723,8 +1790,8 @@ function RunHistory() {
1723
1790
  );
1724
1791
  }
1725
1792
 
1726
- // src/tui/screens/Run.tsx
1727
- import React15, { useEffect as useEffect5, useState as useState11 } from "react";
1793
+ // src/surfaces/tui/screens/run/Run.tsx
1794
+ import React8, { useEffect as useEffect5, useState as useState11 } from "react";
1728
1795
  import { Box as Box17, Text as Text15, useInput as useInput6, useWindowSize as useWindowSize6 } from "ink";
1729
1796
  import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
1730
1797
  var REFRESH_INTERVAL_MS = 5e3;
@@ -1932,7 +1999,7 @@ function Run() {
1932
1999
  items.map((item, idx) => {
1933
2000
  const isSelected = selectedIdx === idx;
1934
2001
  if (item.action === "__section__") {
1935
- return /* @__PURE__ */ jsxs16(React15.Fragment, { children: [
2002
+ return /* @__PURE__ */ jsxs16(React8.Fragment, { children: [
1936
2003
  /* @__PURE__ */ jsx22(SectionEnd, {}),
1937
2004
  /* @__PURE__ */ jsx22(Section, { label: "Lifecycle" })
1938
2005
  ] }, "__section__");
@@ -1968,11 +2035,11 @@ function Run() {
1968
2035
  );
1969
2036
  }
1970
2037
 
1971
- // src/tui/screens/run/Agents.tsx
2038
+ // src/surfaces/tui/screens/run/RunAgents.tsx
1972
2039
  import { useEffect as useEffect6, useState as useState12 } from "react";
1973
2040
  import { Box as Box19, Text as Text17, useInput as useInput8, useWindowSize as useWindowSize7 } from "ink";
1974
2041
 
1975
- // src/tui/components/Pagination.tsx
2042
+ // src/surfaces/tui/components/Pagination.tsx
1976
2043
  import { Box as Box18, Text as Text16, useInput as useInput7 } from "ink";
1977
2044
  import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
1978
2045
  function Pagination({ page, total, focused = false, onPrev, onNext }) {
@@ -2008,7 +2075,7 @@ function Pagination({ page, total, focused = false, onPrev, onNext }) {
2008
2075
  ] });
2009
2076
  }
2010
2077
 
2011
- // src/tui/screens/run/Agents.tsx
2078
+ // src/surfaces/tui/screens/run/RunAgents.tsx
2012
2079
  import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
2013
2080
  var CHROME_ROWS3 = 13;
2014
2081
  var REFRESH_INTERVAL_MS2 = 5e3;
@@ -2295,7 +2362,7 @@ function RunAgents() {
2295
2362
  );
2296
2363
  }
2297
2364
 
2298
- // src/tui/screens/run/Output.tsx
2365
+ // src/surfaces/tui/screens/run/RunOutput.tsx
2299
2366
  import { useEffect as useEffect7, useState as useState13 } from "react";
2300
2367
  import { Box as Box20, Text as Text18, useInput as useInput9, useWindowSize as useWindowSize8 } from "ink";
2301
2368
  import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
@@ -2611,8 +2678,8 @@ function RunOutput() {
2611
2678
  );
2612
2679
  }
2613
2680
 
2614
- // src/tui/screens/AgentDetail.tsx
2615
- import React18, { useState as useState14 } from "react";
2681
+ // src/surfaces/tui/screens/run/AgentDetail.tsx
2682
+ import React9, { useState as useState14 } from "react";
2616
2683
  import { Box as Box21, Text as Text19, useInput as useInput10, useWindowSize as useWindowSize9 } from "ink";
2617
2684
  import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
2618
2685
  var LABELS2 = {
@@ -2824,7 +2891,7 @@ function AgentDetail() {
2824
2891
  items.map((item, idx) => {
2825
2892
  const isSelected = selectedIdx === idx;
2826
2893
  if (item.action === "__section__") {
2827
- return /* @__PURE__ */ jsxs20(React18.Fragment, { children: [
2894
+ return /* @__PURE__ */ jsxs20(React9.Fragment, { children: [
2828
2895
  /* @__PURE__ */ jsx26(SectionEnd, {}),
2829
2896
  /* @__PURE__ */ jsx26(Section, { label: "Actions" })
2830
2897
  ] }, "__section__");
@@ -2857,7 +2924,7 @@ function AgentDetail() {
2857
2924
  );
2858
2925
  }
2859
2926
 
2860
- // src/tui/screens/run/AgentOutput.tsx
2927
+ // src/surfaces/tui/screens/run/AgentOutput.tsx
2861
2928
  import { useEffect as useEffect8, useState as useState15 } from "react";
2862
2929
  import { Box as Box22, Text as Text20, useInput as useInput11, useWindowSize as useWindowSize10 } from "ink";
2863
2930
  import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
@@ -3112,7 +3179,7 @@ function AgentOutput() {
3112
3179
  );
3113
3180
  }
3114
3181
 
3115
- // src/tui/screens/run/AgentTask.tsx
3182
+ // src/surfaces/tui/screens/run/AgentTask.tsx
3116
3183
  import { useState as useState16 } from "react";
3117
3184
  import { Box as Box23, Text as Text21, useInput as useInput12 } from "ink";
3118
3185
  import { jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
@@ -3177,7 +3244,7 @@ function AgentTask() {
3177
3244
  );
3178
3245
  }
3179
3246
 
3180
- // src/tui/screens/run/AgentKill.tsx
3247
+ // src/surfaces/tui/screens/run/AgentKill.tsx
3181
3248
  import { useState as useState17 } from "react";
3182
3249
  import { Box as Box24, Text as Text22, useInput as useInput13 } from "ink";
3183
3250
  import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
@@ -3268,7 +3335,7 @@ function AgentKill() {
3268
3335
  );
3269
3336
  }
3270
3337
 
3271
- // src/tui/screens/NewRun.tsx
3338
+ // src/surfaces/tui/screens/newrun/NewRun.tsx
3272
3339
  import { useEffect as useEffect9 } from "react";
3273
3340
  import { Text as Text23 } from "ink";
3274
3341
  import { jsx as jsx30 } from "react/jsx-runtime";
@@ -3283,11 +3350,11 @@ function NewRun() {
3283
3350
  return /* @__PURE__ */ jsx30(WizardProvider, { children: /* @__PURE__ */ jsx30(NewRunInner, {}) });
3284
3351
  }
3285
3352
 
3286
- // src/tui/screens/newrun/02Basics.tsx
3353
+ // src/surfaces/tui/screens/newrun/NewRunBasics.tsx
3287
3354
  import { useState as useState19, useMemo as useMemo4 } from "react";
3288
3355
  import { useInput as useInput15, useWindowSize as useWindowSize11 } from "ink";
3289
3356
 
3290
- // src/tui/components/StepIndicator.tsx
3357
+ // src/surfaces/tui/components/StepIndicator.tsx
3291
3358
  import { Box as Box25, Text as Text24 } from "ink";
3292
3359
  import { jsx as jsx31, jsxs as jsxs24 } from "react/jsx-runtime";
3293
3360
  function StepIndicator({ step, total, name }) {
@@ -3302,7 +3369,7 @@ function StepIndicator({ step, total, name }) {
3302
3369
  ] });
3303
3370
  }
3304
3371
 
3305
- // src/tui/components/TextField.tsx
3372
+ // src/surfaces/tui/components/TextField.tsx
3306
3373
  import { useState as useState18, useEffect as useEffect10 } from "react";
3307
3374
  import { Box as Box26, Text as Text25, useInput as useInput14 } from "ink";
3308
3375
  import { jsx as jsx32, jsxs as jsxs25 } from "react/jsx-runtime";
@@ -3404,7 +3471,7 @@ function wrapLines(value, width) {
3404
3471
  return lines.length > 0 ? lines : [""];
3405
3472
  }
3406
3473
 
3407
- // src/tui/screens/newrun/02Basics.tsx
3474
+ // src/surfaces/tui/screens/newrun/NewRunBasics.tsx
3408
3475
  import { jsx as jsx33, jsxs as jsxs26 } from "react/jsx-runtime";
3409
3476
  var ACTION_LABEL_WIDTH7 = Math.max("Continue".length, "Back".length, "Reset Wizard".length);
3410
3477
  function NewRunBasics() {
@@ -3539,11 +3606,11 @@ function NewRunBasics() {
3539
3606
  );
3540
3607
  }
3541
3608
 
3542
- // src/tui/screens/newrun/03Root.tsx
3609
+ // src/surfaces/tui/screens/newrun/NewRunRoot.tsx
3543
3610
  import { useState as useState20, useMemo as useMemo5 } from "react";
3544
3611
  import { useInput as useInput16, useWindowSize as useWindowSize12 } from "ink";
3545
3612
 
3546
- // src/tui/components/ModelOptionList.tsx
3613
+ // src/surfaces/tui/components/ModelOptionList.tsx
3547
3614
  import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs27 } from "react/jsx-runtime";
3548
3615
  function ModelOptionList({ provider, values, current, selectedIdx, visibleCount }) {
3549
3616
  const rowCount = Math.max(1, visibleCount ?? values.length);
@@ -3580,7 +3647,7 @@ function ModelOptionList({ provider, values, current, selectedIdx, visibleCount
3580
3647
  ] });
3581
3648
  }
3582
3649
 
3583
- // src/tui/screens/newrun/03Root.tsx
3650
+ // src/surfaces/tui/screens/newrun/NewRunRoot.tsx
3584
3651
  import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs28 } from "react/jsx-runtime";
3585
3652
  var PERMISSIONS_VALUES = ["ask", "skip"];
3586
3653
  var EFFORT_VALUES = ["default", "low", "medium", "high", "xhigh", "max"];
@@ -3857,7 +3924,7 @@ function pickerBadge(field, provider) {
3857
3924
  return void 0;
3858
3925
  }
3859
3926
 
3860
- // src/tui/screens/newrun/04Workers.tsx
3927
+ // src/surfaces/tui/screens/newrun/NewRunWorkers.tsx
3861
3928
  import { useState as useState21 } from "react";
3862
3929
  import { useInput as useInput17, useWindowSize as useWindowSize13 } from "ink";
3863
3930
  import { Fragment as Fragment7, jsx as jsx36, jsxs as jsxs29 } from "react/jsx-runtime";
@@ -4012,7 +4079,7 @@ function NewRunWorkers() {
4012
4079
  );
4013
4080
  }
4014
4081
 
4015
- // src/tui/screens/newrun/04Worker.tsx
4082
+ // src/surfaces/tui/screens/newrun/NewRunWorker.tsx
4016
4083
  import { useState as useState22, useMemo as useMemo6 } from "react";
4017
4084
  import { useInput as useInput18, useWindowSize as useWindowSize14 } from "ink";
4018
4085
  import { Fragment as Fragment8, jsx as jsx37, jsxs as jsxs30 } from "react/jsx-runtime";
@@ -4292,7 +4359,7 @@ function pickerBadge2(field, provider) {
4292
4359
  return void 0;
4293
4360
  }
4294
4361
 
4295
- // src/tui/screens/newrun/05Review.tsx
4362
+ // src/surfaces/tui/screens/newrun/NewRunReview.tsx
4296
4363
  import { useState as useState23 } from "react";
4297
4364
  import { useInput as useInput19, useWindowSize as useWindowSize15 } from "ink";
4298
4365
  import { Fragment as Fragment9, jsx as jsx38, jsxs as jsxs31 } from "react/jsx-runtime";
@@ -4425,11 +4492,11 @@ function NewRunReview() {
4425
4492
  );
4426
4493
  }
4427
4494
 
4428
- // src/tui/screens/newrun/05Starting.tsx
4495
+ // src/surfaces/tui/screens/newrun/NewRunStarting.tsx
4429
4496
  import { useEffect as useEffect12, useState as useState25 } from "react";
4430
4497
  import { Box as Box28, Text as Text27, useInput as useInput20 } from "ink";
4431
4498
 
4432
- // src/tui/components/Spinner.tsx
4499
+ // src/surfaces/tui/components/Spinner.tsx
4433
4500
  import { useEffect as useEffect11, useState as useState24 } from "react";
4434
4501
  import { Box as Box27, Text as Text26 } from "ink";
4435
4502
  import { jsx as jsx39, jsxs as jsxs32 } from "react/jsx-runtime";
@@ -4449,7 +4516,7 @@ function Spinner({ label, color = colors.accent.primary }) {
4449
4516
  ] });
4450
4517
  }
4451
4518
 
4452
- // src/tui/screens/newrun/05Starting.tsx
4519
+ // src/surfaces/tui/screens/newrun/NewRunStarting.tsx
4453
4520
  import { jsx as jsx40, jsxs as jsxs33 } from "react/jsx-runtime";
4454
4521
  var ACTION_LABEL_WIDTH12 = Math.max("Retry".length, "Back to Review".length);
4455
4522
  function NewRunStarting() {
@@ -4573,7 +4640,7 @@ function NewRunStarting() {
4573
4640
  );
4574
4641
  }
4575
4642
 
4576
- // src/tui/screens/run/AddWorker.tsx
4643
+ // src/surfaces/tui/screens/run/AddWorker.tsx
4577
4644
  import { useState as useState26, useMemo as useMemo7 } from "react";
4578
4645
  import { useInput as useInput21, useWindowSize as useWindowSize16 } from "ink";
4579
4646
  import { Fragment as Fragment10, jsx as jsx41, jsxs as jsxs34 } from "react/jsx-runtime";
@@ -4881,7 +4948,7 @@ function pickerBadge3(field, provider) {
4881
4948
  return void 0;
4882
4949
  }
4883
4950
 
4884
- // src/tui/screens/run/Stop.tsx
4951
+ // src/surfaces/tui/screens/run/RunStop.tsx
4885
4952
  import { jsx as jsx42 } from "react/jsx-runtime";
4886
4953
  function RunStop() {
4887
4954
  const { selectedRunId, pop, resetStack } = useRouter();
@@ -4957,7 +5024,7 @@ function RunStop() {
4957
5024
  );
4958
5025
  }
4959
5026
 
4960
- // src/tui/screens/Settings.tsx
5027
+ // src/surfaces/tui/screens/Settings.tsx
4961
5028
  import { useMemo as useMemo8, useState as useState27 } from "react";
4962
5029
  import { Box as Box29, useInput as useInput22, useWindowSize as useWindowSize17 } from "ink";
4963
5030
  import { Fragment as Fragment11, jsx as jsx43, jsxs as jsxs35 } from "react/jsx-runtime";
@@ -5264,18 +5331,18 @@ function Settings() {
5264
5331
  );
5265
5332
  }
5266
5333
 
5267
- // src/tui/screens/AgentControl.tsx
5334
+ // src/surfaces/tui/screens/AgentControl.tsx
5268
5335
  import { useMemo as useMemo9, useState as useState28 } from "react";
5269
5336
  import { Box as Box31, useInput as useInput23, useWindowSize as useWindowSize18 } from "ink";
5270
5337
 
5271
- // src/tui/components/Primary.tsx
5338
+ // src/surfaces/tui/components/Primary.tsx
5272
5339
  import { Box as Box30 } from "ink";
5273
5340
  import { jsx as jsx44 } from "react/jsx-runtime";
5274
5341
  function Primary({ children }) {
5275
5342
  return /* @__PURE__ */ jsx44(Box30, { flexDirection: "column", flexGrow: 1, children });
5276
5343
  }
5277
5344
 
5278
- // src/tui/screens/AgentControl.tsx
5345
+ // src/surfaces/tui/screens/AgentControl.tsx
5279
5346
  import { jsx as jsx45, jsxs as jsxs36 } from "react/jsx-runtime";
5280
5347
  function hostGlyph(host) {
5281
5348
  if (!host.installed) return { char: glyphs.status.fail, color: colors.text.faint };
@@ -5324,7 +5391,7 @@ function AgentControl() {
5324
5391
  if (host.manual || !host.installed) return;
5325
5392
  const wasAttached = host.attached;
5326
5393
  const res = wasAttached ? detach(host.key) : attach(host.key);
5327
- setResult(!wasAttached && res.ok ? { ...res, message: `${res.message} \u2014 ${t("agentControl.restartHint")}` } : res);
5394
+ setResult(!wasAttached && res.ok ? { ...res, message: `${res.message}: ${t("agentControl.restartHint")}` } : res);
5328
5395
  setRefreshKey((k) => k + 1);
5329
5396
  }
5330
5397
  function runAttachAll() {
@@ -5335,7 +5402,7 @@ function AgentControl() {
5335
5402
  key: "all",
5336
5403
  label: t("agentControl.attachAll"),
5337
5404
  ok: results.every((r) => r.ok),
5338
- message: ok > 0 ? `${toast} \u2014 ${t("agentControl.restartHint")}` : toast
5405
+ message: ok > 0 ? `${toast}: ${t("agentControl.restartHint")}` : toast
5339
5406
  });
5340
5407
  setRefreshKey((k) => k + 1);
5341
5408
  }
@@ -5453,7 +5520,7 @@ function AgentControl() {
5453
5520
  );
5454
5521
  }
5455
5522
 
5456
- // src/tui/screens/Setup.tsx
5523
+ // src/surfaces/tui/screens/Setup.tsx
5457
5524
  import { useMemo as useMemo10, useState as useState29 } from "react";
5458
5525
  import { Box as Box32, Text as Text28, useInput as useInput24 } from "ink";
5459
5526
  import { jsx as jsx46, jsxs as jsxs37 } from "react/jsx-runtime";
@@ -5535,7 +5602,7 @@ function Setup() {
5535
5602
  );
5536
5603
  }
5537
5604
 
5538
- // src/tui/screens/Reference.tsx
5605
+ // src/surfaces/tui/screens/Reference.tsx
5539
5606
  import { useState as useState30 } from "react";
5540
5607
  import { useInput as useInput25, useWindowSize as useWindowSize19 } from "ink";
5541
5608
  import { Fragment as Fragment12, jsx as jsx47, jsxs as jsxs38 } from "react/jsx-runtime";
@@ -5556,7 +5623,7 @@ var CONTENT = [
5556
5623
  { type: "row", primary: "Human", trailing: "uses TUI/tmux and remains in charge" },
5557
5624
  { type: "row", primary: "Agent", trailing: "provider agent inside the run session" },
5558
5625
  { type: "section", label: "OSS" },
5559
- { type: "row", primary: "npm / Homebrew", trailing: "planned public install channels" },
5626
+ { type: "row", primary: "npm / Homebrew", trailing: "public install channels" },
5560
5627
  { type: "row", primary: "GitHub Releases", trailing: "tags, changelog, known limitations" }
5561
5628
  ];
5562
5629
  function Reference() {
@@ -5623,7 +5690,7 @@ function Reference() {
5623
5690
  );
5624
5691
  }
5625
5692
 
5626
- // src/tui/screens/Credits.tsx
5693
+ // src/surfaces/tui/screens/Credits.tsx
5627
5694
  import { useState as useState31 } from "react";
5628
5695
  import { Box as Box33, useInput as useInput26, useWindowSize as useWindowSize20 } from "ink";
5629
5696
  import { Fragment as Fragment13, jsx as jsx48, jsxs as jsxs39 } from "react/jsx-runtime";
@@ -5688,7 +5755,7 @@ function Credits() {
5688
5755
  );
5689
5756
  }
5690
5757
 
5691
- // src/tui/screens/Doctor.tsx
5758
+ // src/surfaces/tui/screens/Doctor.tsx
5692
5759
  import { useEffect as useEffect13, useMemo as useMemo11, useState as useState32 } from "react";
5693
5760
  import { Box as Box34, useInput as useInput27, useWindowSize as useWindowSize21 } from "ink";
5694
5761
  import { Fragment as Fragment14, jsx as jsx49, jsxs as jsxs40 } from "react/jsx-runtime";
@@ -5869,7 +5936,7 @@ function Doctor() {
5869
5936
  );
5870
5937
  }
5871
5938
 
5872
- // src/tui/screens/DoctorCheck.tsx
5939
+ // src/surfaces/tui/screens/DoctorCheck.tsx
5873
5940
  import { useEffect as useEffect14, useMemo as useMemo12, useState as useState33 } from "react";
5874
5941
  import { Box as Box35, Text as Text29, useInput as useInput28 } from "ink";
5875
5942
  import { Fragment as Fragment15, jsx as jsx50, jsxs as jsxs41 } from "react/jsx-runtime";
@@ -5954,7 +6021,7 @@ function DoctorCheck() {
5954
6021
  );
5955
6022
  }
5956
6023
 
5957
- // src/tui/screens/Approvals.tsx
6024
+ // src/surfaces/tui/screens/Approvals.tsx
5958
6025
  import { useEffect as useEffect15, useState as useState34 } from "react";
5959
6026
  import { Box as Box36, useInput as useInput29 } from "ink";
5960
6027
  import { jsx as jsx51, jsxs as jsxs42 } from "react/jsx-runtime";
@@ -6104,7 +6171,7 @@ function Approvals() {
6104
6171
  );
6105
6172
  }
6106
6173
 
6107
- // src/tui/screens/Config.tsx
6174
+ // src/surfaces/tui/screens/Config.tsx
6108
6175
  import { useState as useState35 } from "react";
6109
6176
  import { Box as Box37, useInput as useInput30 } from "ink";
6110
6177
  import { jsx as jsx52, jsxs as jsxs43 } from "react/jsx-runtime";
@@ -6213,7 +6280,7 @@ function Config() {
6213
6280
  );
6214
6281
  }
6215
6282
 
6216
- // src/tui/screens/Presets.tsx
6283
+ // src/surfaces/tui/screens/Presets.tsx
6217
6284
  import { useEffect as useEffect16, useState as useState36 } from "react";
6218
6285
  import { Box as Box38, useInput as useInput31 } from "ink";
6219
6286
  import { jsx as jsx53, jsxs as jsxs44 } from "react/jsx-runtime";
@@ -6401,7 +6468,7 @@ function Presets() {
6401
6468
  );
6402
6469
  }
6403
6470
 
6404
- // src/tui/router.tsx
6471
+ // src/surfaces/tui/router.tsx
6405
6472
  import { jsx as jsx54 } from "react/jsx-runtime";
6406
6473
  var RouterContext = createContext6(null);
6407
6474
  function useRouter() {
@@ -6572,4 +6639,4 @@ export {
6572
6639
  nextHistoryOnReset,
6573
6640
  useRouter
6574
6641
  };
6575
- //# sourceMappingURL=router-Q2JZ7NEX.js.map
6642
+ //# sourceMappingURL=router-KMZQ52T2.js.map