reevesagents 1.3.0 → 1.3.2

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.
@@ -9,7 +9,7 @@ import {
9
9
  listRunApprovals,
10
10
  readRunApproval,
11
11
  resolveRunApproval
12
- } from "./chunk-Z2JHNE7V.js";
12
+ } from "./chunk-VTLLF2Z4.js";
13
13
  import {
14
14
  ALLOWED_KEYS,
15
15
  BIN,
@@ -42,7 +42,7 @@ import {
42
42
  startRunFromPreset,
43
43
  startRunWithHead,
44
44
  stopRun
45
- } from "./chunk-65LHCGPC.js";
45
+ } from "./chunk-36SYE7IU.js";
46
46
  import "./chunk-D24DQQ6V.js";
47
47
 
48
48
  // src/mcp/server.ts
@@ -156,7 +156,9 @@ function buildProviderCatalog() {
156
156
  available: available[def.id],
157
157
  aliases: [...def.aliases],
158
158
  models: [...def.models],
159
- model_source: def.modelSource
159
+ model_source: def.modelSource,
160
+ supports_auth_mode: def.supportsAuthMode === true,
161
+ supports_effort: def.supportsEffort === true
160
162
  }));
161
163
  }
162
164
  function spawnHandler(a) {
@@ -619,4 +621,4 @@ export {
619
621
  sessionRunIsLive,
620
622
  startAgentMcpServer
621
623
  };
622
- //# sourceMappingURL=server-H2XEJQYT.js.map
624
+ //# sourceMappingURL=server-I2ROVLSH.js.map
@@ -1,10 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- localeCatalog
4
- } from "./chunk-4LWTEYRI.js";
3
+ localeCatalog,
4
+ translatePhrase
5
+ } from "./chunk-KVMBCWLI.js";
5
6
  import {
6
7
  modelValuesForProvider
7
- } from "./chunk-HS6TOISU.js";
8
+ } from "./chunk-TO32PH23.js";
8
9
  import {
9
10
  REEVESAGENTS_VERSION,
10
11
  attach,
@@ -13,7 +14,7 @@ import {
13
14
  hostStatus,
14
15
  listRunApprovals,
15
16
  resolveRunApproval
16
- } from "./chunk-Z2JHNE7V.js";
17
+ } from "./chunk-VTLLF2Z4.js";
17
18
  import {
18
19
  CONFIG_FIELDS,
19
20
  LANGUAGE_OPTIONS,
@@ -36,6 +37,8 @@ import {
36
37
  normalizeProvider,
37
38
  providerColor,
38
39
  providerDisplayName,
40
+ providerSupportsAuthMode,
41
+ providerSupportsEffort,
39
42
  readRun,
40
43
  runDoctor,
41
44
  runHasLiveTmuxTarget,
@@ -45,7 +48,7 @@ import {
45
48
  startRun,
46
49
  startRunFromPreset,
47
50
  stopRun
48
- } from "./chunk-65LHCGPC.js";
51
+ } from "./chunk-36SYE7IU.js";
49
52
  import "./chunk-D24DQQ6V.js";
50
53
 
51
54
  // src/web/server.ts
@@ -177,7 +180,9 @@ function listWebProviders() {
177
180
  name: providerDisplayName(id),
178
181
  available: available[id],
179
182
  color: providerColor(id),
180
- models: [...modelValuesForProvider(id)]
183
+ models: [...modelValuesForProvider(id)],
184
+ supportsAuthMode: providerSupportsAuthMode(id),
185
+ supportsEffort: providerSupportsEffort(id)
181
186
  }));
182
187
  }
183
188
 
@@ -655,7 +660,11 @@ function attachAllMcpHostsAction() {
655
660
  return { results: attachAll(), hosts: hostStatus() };
656
661
  }
657
662
  function configPayload() {
658
- return { config: loadConfig().global, fields: CONFIG_FIELDS.filter((field) => field.kind !== "language") };
663
+ const config = loadConfig().global;
664
+ return {
665
+ config,
666
+ fields: CONFIG_FIELDS.filter((field) => field.kind !== "language").map((field) => ({ ...field, label: translatePhrase(config.language, field.label) }))
667
+ };
659
668
  }
660
669
  function updateConfigAction(body) {
661
670
  const patch = {};
@@ -1006,4 +1015,4 @@ async function startWebServer(options = {}) {
1006
1015
  export {
1007
1016
  startWebServer
1008
1017
  };
1009
- //# sourceMappingURL=server-ZJKAIRL5.js.map
1018
+ //# sourceMappingURL=server-Y4HMP3OI.js.map
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  closeTuiWebServer,
4
4
  startWebFromTui
5
- } from "./chunk-5DOCQLT7.js";
5
+ } from "./chunk-GUM4JMVF.js";
6
6
  export {
7
7
  closeTuiWebServer,
8
8
  startWebFromTui
9
9
  };
10
- //# sourceMappingURL=tui-launch-VHLX6JOW.js.map
10
+ //# sourceMappingURL=tui-launch-SJNFGH42.js.map
package/dist/web/app.css CHANGED
@@ -79,11 +79,14 @@ body {
79
79
  }
80
80
 
81
81
  html[dir="rtl"] .topbar,
82
- html[dir="rtl"] .layout,
83
- html[dir="rtl"] .dialog {
82
+ html[dir="rtl"] .layout {
84
83
  direction: ltr;
85
84
  }
86
85
 
86
+ html[dir="rtl"] .dialog {
87
+ direction: rtl;
88
+ }
89
+
87
90
  html[dir="rtl"] .stage-title,
88
91
  html[dir="rtl"] .stage-sub,
89
92
  html[dir="rtl"] .overlay-card,
@@ -130,13 +133,16 @@ button { letter-spacing: 0; }
130
133
  /* topbar */
131
134
  .topbar {
132
135
  position: relative;
133
- height: var(--topbar-h);
136
+ min-height: var(--topbar-h);
137
+ height: auto;
134
138
  flex: 0 0 auto;
135
139
  display: flex;
140
+ flex-wrap: wrap;
136
141
  align-items: center;
142
+ align-content: center;
137
143
  justify-content: space-between;
138
144
  gap: var(--s-4);
139
- padding: 0 var(--s-4);
145
+ padding: var(--s-2) var(--s-4);
140
146
  border-bottom: 1px solid var(--border-soft);
141
147
  background:
142
148
  linear-gradient(90deg, rgba(111, 176, 168, 0.065), transparent 28%, rgba(168, 144, 209, 0.052) 64%, rgba(215, 168, 79, 0.045)),
@@ -148,7 +154,8 @@ button { letter-spacing: 0; }
148
154
  }
149
155
 
150
156
  .brand {
151
- min-width: 0;
157
+ min-width: max-content;
158
+ flex: 0 0 auto;
152
159
  display: flex;
153
160
  align-items: center;
154
161
  gap: var(--s-3);
@@ -189,12 +196,16 @@ button { letter-spacing: 0; }
189
196
  font-weight: 750;
190
197
  line-height: 1.05;
191
198
  letter-spacing: 0;
199
+ white-space: nowrap;
192
200
  }
193
201
 
194
202
  .topbar-actions {
195
- flex: 0 0 auto;
203
+ min-width: 0;
204
+ flex: 1 1 0;
196
205
  display: flex;
206
+ flex-wrap: wrap;
197
207
  align-items: center;
208
+ justify-content: flex-end;
198
209
  gap: var(--s-3);
199
210
  }
200
211
 
@@ -858,9 +869,9 @@ button { letter-spacing: 0; }
858
869
  .card {
859
870
  --agent-color: var(--accent);
860
871
  position: relative;
861
- display: grid;
862
- grid-template-columns: minmax(0, 1fr) auto;
863
- align-items: center;
872
+ display: flex;
873
+ flex-direction: column;
874
+ align-items: stretch;
864
875
  gap: var(--s-2);
865
876
  width: 100%;
866
877
  min-height: 66px;
@@ -922,6 +933,7 @@ button { letter-spacing: 0; }
922
933
 
923
934
  .card-main {
924
935
  min-width: 0;
936
+ width: 100%;
925
937
  display: grid;
926
938
  grid-template-columns: 38px minmax(0, 1fr);
927
939
  align-items: center;
@@ -1015,10 +1027,14 @@ button { letter-spacing: 0; }
1015
1027
  }
1016
1028
 
1017
1029
  .card-tail {
1030
+ min-width: 0;
1031
+ width: 100%;
1018
1032
  display: flex;
1033
+ flex-wrap: wrap;
1019
1034
  align-items: center;
1020
- justify-content: flex-end;
1035
+ justify-content: flex-start;
1021
1036
  gap: var(--s-2);
1037
+ padding-left: calc(38px + var(--s-3));
1022
1038
  }
1023
1039
 
1024
1040
  .dot {
@@ -1375,12 +1391,13 @@ button { letter-spacing: 0; }
1375
1391
  }
1376
1392
 
1377
1393
  .dialog form {
1394
+ --dialog-pad: var(--s-5);
1378
1395
  max-height: calc(100dvh - 32px);
1379
1396
  overflow-y: auto;
1380
1397
  display: flex;
1381
1398
  flex-direction: column;
1382
1399
  gap: var(--s-3);
1383
- padding: var(--s-5);
1400
+ padding: var(--dialog-pad);
1384
1401
  }
1385
1402
 
1386
1403
  .dialog-header {
@@ -1712,6 +1729,16 @@ button { letter-spacing: 0; }
1712
1729
  margin-top: var(--s-2);
1713
1730
  }
1714
1731
 
1732
+ .dialog form .dialog-actions {
1733
+ position: sticky;
1734
+ bottom: 0;
1735
+ z-index: 2;
1736
+ margin: var(--s-2) calc(-1 * var(--dialog-pad)) calc(-1 * var(--dialog-pad));
1737
+ padding: var(--s-3) var(--dialog-pad) var(--dialog-pad);
1738
+ border-top: 1px solid var(--border-soft);
1739
+ background: var(--panel);
1740
+ }
1741
+
1715
1742
  /* agent control (MCP installer) dialog */
1716
1743
  .mcp-dialog { width: min(560px, calc(100vw - 32px)); }
1717
1744
 
@@ -1744,6 +1771,10 @@ button { letter-spacing: 0; }
1744
1771
  border-color: color-mix(in srgb, var(--ok) 46%, var(--border));
1745
1772
  }
1746
1773
 
1774
+ .mcp-host-row[data-state="loading"] {
1775
+ border-style: dashed;
1776
+ }
1777
+
1747
1778
  .mcp-host-body {
1748
1779
  display: flex;
1749
1780
  flex-direction: column;
@@ -1773,7 +1804,8 @@ button { letter-spacing: 0; }
1773
1804
  .mcp-host-row[data-state="attached"] .mcp-host-status { color: var(--ok); }
1774
1805
  .mcp-host-row[data-state="detached"] .mcp-host-status { color: var(--warn); }
1775
1806
  .mcp-host-row[data-state="absent"] .mcp-host-status,
1776
- .mcp-host-row[data-state="manual"] .mcp-host-status { color: var(--faint); }
1807
+ .mcp-host-row[data-state="manual"] .mcp-host-status,
1808
+ .mcp-host-row[data-state="loading"] .mcp-host-status { color: var(--faint); }
1777
1809
 
1778
1810
  .mcp-host-action {
1779
1811
  min-height: 30px;
@@ -1911,7 +1943,7 @@ button { letter-spacing: 0; }
1911
1943
  }
1912
1944
 
1913
1945
  .brand {
1914
- min-width: 0;
1946
+ min-width: max-content;
1915
1947
  }
1916
1948
 
1917
1949
  .brand-duck {
@@ -2011,6 +2043,10 @@ button { letter-spacing: 0; }
2011
2043
  padding-inline: var(--s-1);
2012
2044
  }
2013
2045
 
2046
+ .card-tail {
2047
+ padding-left: calc(34px + var(--s-2));
2048
+ }
2049
+
2014
2050
  .stage-status {
2015
2051
  min-width: 64px;
2016
2052
  padding-inline: var(--s-2);
@@ -2034,7 +2070,8 @@ button { letter-spacing: 0; }
2034
2070
  }
2035
2071
 
2036
2072
  .dialog form {
2037
- padding: var(--s-4);
2073
+ --dialog-pad: var(--s-4);
2074
+ padding: var(--dialog-pad);
2038
2075
  }
2039
2076
  }
2040
2077
 
package/dist/web/app.js CHANGED
@@ -167,6 +167,24 @@
167
167
  'web.aboutProvidersNone': 'none detected',
168
168
  'web.aboutLicense': 'License',
169
169
  'web.aboutRepository': 'Repository',
170
+ 'web.doctorSubtitle': 'Environment health checks for this machine.',
171
+ 'web.refresh': 'Refresh',
172
+ 'web.aboutSubtitle': 'Local tmux-first workspace manager for AI CLI agents.',
173
+ 'web.configSubtitle': 'Edit global settings.',
174
+ 'web.save': 'Save',
175
+ 'web.presetsSubtitle': 'Saved agent-team templates.',
176
+ 'web.saveCurrentRun': 'Save current run',
177
+ 'web.auth': 'Auth',
178
+ 'web.authDefaultLogin': 'Default login',
179
+ 'web.authApiKey': 'API key',
180
+ 'web.authHelp': 'Default uses the signed-in CLI session. API key forces key-based auth.',
181
+ 'web.effort': 'Reasoning effort',
182
+ 'web.effortLow': 'Low',
183
+ 'web.effortMedium': 'Medium',
184
+ 'web.effortHigh': 'High',
185
+ 'web.effortXhigh': 'Extra high',
186
+ 'web.effortMax': 'Max',
187
+ 'web.effortHelp': 'Higher effort spends more on reasoning. Provider default is safest.',
170
188
  }
171
189
 
172
190
  const el = {
@@ -264,6 +282,9 @@
264
282
  let createSubmitting = false
265
283
  let mcpHosts = []
266
284
  let mcpBusy = false
285
+ let mcpLoading = false
286
+ let mcpLoadFailed = false
287
+ let doctorLoading = false
267
288
 
268
289
  // --- http helpers ---------------------------------------------------------
269
290
 
@@ -435,6 +456,34 @@
435
456
  el.stageTitle.textContent = t('web.noAgentSelected')
436
457
  el.stageSub.textContent = t('web.noAgentSub')
437
458
  }
459
+ document.querySelector('#auth-mode-field .field-label').textContent = t('web.auth')
460
+ document.querySelector('#f-auth-mode option[value=""]').textContent = t('web.authDefaultLogin')
461
+ document.querySelector('#f-auth-mode option[value="api-key"]').textContent = t('web.authApiKey')
462
+ document.querySelector('#auth-mode-field .field-help').textContent = t('web.authHelp')
463
+ document.querySelector('#effort-field .field-label').textContent = t('web.effort')
464
+ document.querySelector('#f-effort option[value=""]').textContent = t('web.providerDefault')
465
+ document.querySelector('#f-effort option[value="low"]').textContent = t('web.effortLow')
466
+ document.querySelector('#f-effort option[value="medium"]').textContent = t('web.effortMedium')
467
+ document.querySelector('#f-effort option[value="high"]').textContent = t('web.effortHigh')
468
+ document.querySelector('#f-effort option[value="xhigh"]').textContent = t('web.effortXhigh')
469
+ document.querySelector('#f-effort option[value="max"]').textContent = t('web.effortMax')
470
+ document.querySelector('#effort-field .field-help').textContent = t('web.effortHelp')
471
+ document.querySelector('#doctor-dialog .dialog-title').textContent = t('web.doctor')
472
+ document.querySelector('#doctor-dialog .dialog-subtitle').textContent = t('web.doctorSubtitle')
473
+ el.doctorRefresh.textContent = t('web.refresh')
474
+ el.doctorClose.textContent = t('web.mcpClose')
475
+ document.querySelector('#about-dialog .dialog-title').textContent = `${t('web.about')} ReevesAgents`
476
+ document.querySelector('#about-dialog .dialog-subtitle').textContent = t('web.aboutSubtitle')
477
+ el.aboutClose.textContent = t('web.mcpClose')
478
+ document.querySelector('#config-dialog .dialog-title').textContent = t('web.config')
479
+ document.querySelector('#config-dialog .dialog-subtitle').textContent = t('web.configSubtitle')
480
+ el.configSave.textContent = t('web.save')
481
+ el.configClose.textContent = t('web.mcpClose')
482
+ document.querySelector('#presets-dialog .dialog-title').textContent = t('web.presets')
483
+ document.querySelector('#presets-dialog .dialog-subtitle').textContent = t('web.presetsSubtitle')
484
+ document.querySelector('#preset-save-field .field-label').textContent = t('web.saveCurrentRun')
485
+ el.presetSave.textContent = t('web.saveCurrentRun')
486
+ el.presetsClose.textContent = t('web.mcpClose')
438
487
  renderSidebar()
439
488
  }
440
489
 
@@ -593,12 +642,13 @@
593
642
  updateCreateSubmitState()
594
643
  }
595
644
 
596
- // auth_mode only applies to Claude Code; reasoning effort applies to cc and codex.
597
- // Hide the irrelevant knobs and reset them so a stale value is never submitted.
645
+ // Auth mode and reasoning effort apply only to providers whose launch command
646
+ // uses them; the flags come from the provider registry via /api/state. Hide the
647
+ // irrelevant knobs and reset them so a stale value is never submitted.
598
648
  function updateLaunchKnobVisibility() {
599
- const provider = el.fProvider.value
600
- const showAuthMode = provider === 'cc'
601
- const showEffort = provider === 'cc' || provider === 'codex'
649
+ const provider = providerById(el.fProvider.value)
650
+ const showAuthMode = !!(provider && provider.supportsAuthMode)
651
+ const showEffort = !!(provider && provider.supportsEffort)
602
652
  el.authModeField.hidden = !showAuthMode
603
653
  el.effortField.hidden = !showEffort
604
654
  if (!showAuthMode) el.fAuthMode.value = ''
@@ -1558,6 +1608,9 @@
1558
1608
  }
1559
1609
 
1560
1610
  async function loadDoctor() {
1611
+ if (doctorLoading) return
1612
+ doctorLoading = true
1613
+ el.doctorRefresh.disabled = true
1561
1614
  el.doctorError.hidden = true
1562
1615
  el.doctorList.textContent = t('web.runningChecks')
1563
1616
  try {
@@ -1567,6 +1620,9 @@
1567
1620
  el.doctorList.textContent = ''
1568
1621
  el.doctorError.hidden = false
1569
1622
  el.doctorError.textContent = err.message
1623
+ } finally {
1624
+ doctorLoading = false
1625
+ el.doctorRefresh.disabled = false
1570
1626
  }
1571
1627
  }
1572
1628
 
@@ -1595,19 +1651,29 @@
1595
1651
 
1596
1652
  function openMcpDialog() {
1597
1653
  setMcpError(null)
1598
- el.mcpHostList.innerHTML = ''
1599
- el.mcpEmpty.hidden = true
1654
+ mcpHosts = []
1655
+ mcpLoading = true
1656
+ mcpLoadFailed = false
1657
+ renderMcpHosts()
1600
1658
  el.mcpDialog.showModal()
1601
1659
  loadMcpHosts()
1602
1660
  }
1603
1661
 
1604
1662
  async function loadMcpHosts() {
1663
+ mcpLoading = true
1664
+ mcpLoadFailed = false
1665
+ renderMcpHosts()
1605
1666
  try {
1606
1667
  const data = await api('GET', '/api/mcp-hosts')
1607
1668
  mcpHosts = (data && data.hosts) || []
1608
- renderMcpHosts()
1669
+ setMcpError(null)
1609
1670
  } catch (err) {
1671
+ mcpHosts = []
1672
+ mcpLoadFailed = true
1610
1673
  setMcpError(t('web.mcpLoadError', { message: err.message }))
1674
+ } finally {
1675
+ mcpLoading = false
1676
+ renderMcpHosts()
1611
1677
  }
1612
1678
  }
1613
1679
 
@@ -1625,6 +1691,31 @@
1625
1691
 
1626
1692
  function renderMcpHosts() {
1627
1693
  el.mcpHostList.innerHTML = ''
1694
+ if (mcpLoading) {
1695
+ el.mcpEmpty.hidden = true
1696
+ const row = document.createElement('div')
1697
+ row.className = 'mcp-host-row'
1698
+ row.dataset.state = 'loading'
1699
+ const body = document.createElement('div')
1700
+ body.className = 'mcp-host-body'
1701
+ const name = document.createElement('span')
1702
+ name.className = 'mcp-host-name'
1703
+ name.textContent = t('web.loading')
1704
+ body.appendChild(name)
1705
+ row.appendChild(body)
1706
+ const status = document.createElement('span')
1707
+ status.className = 'mcp-host-status'
1708
+ status.textContent = t('web.loading')
1709
+ row.appendChild(status)
1710
+ el.mcpHostList.appendChild(row)
1711
+ el.mcpAttachAll.disabled = true
1712
+ return
1713
+ }
1714
+ if (mcpLoadFailed) {
1715
+ el.mcpEmpty.hidden = true
1716
+ el.mcpAttachAll.disabled = true
1717
+ return
1718
+ }
1628
1719
  el.mcpEmpty.hidden = mcpHosts.length > 0
1629
1720
  for (const host of mcpHosts) {
1630
1721
  const row = document.createElement('div')
@@ -1666,7 +1757,7 @@
1666
1757
  }
1667
1758
  el.mcpHostList.appendChild(row)
1668
1759
  }
1669
- el.mcpAttachAll.disabled = mcpBusy || !mcpHosts.some(h => h.installed && !h.manual && !h.attached)
1760
+ el.mcpAttachAll.disabled = mcpBusy || mcpLoading || !mcpHosts.some(h => h.installed && !h.manual && !h.attached)
1670
1761
  }
1671
1762
 
1672
1763
  function setMcpError(message) {
@@ -1677,13 +1768,14 @@
1677
1768
 
1678
1769
  function applyMcpResult(data) {
1679
1770
  if (data && Array.isArray(data.hosts)) {
1771
+ mcpLoadFailed = false
1680
1772
  mcpHosts = data.hosts
1681
1773
  renderMcpHosts()
1682
1774
  }
1683
1775
  }
1684
1776
 
1685
1777
  async function attachHost(host) {
1686
- if (mcpBusy) return
1778
+ if (mcpBusy || mcpLoading) return
1687
1779
  mcpBusy = true
1688
1780
  setMcpError(null)
1689
1781
  renderMcpHosts()
@@ -1702,7 +1794,7 @@
1702
1794
  }
1703
1795
 
1704
1796
  async function detachHost(host) {
1705
- if (mcpBusy) return
1797
+ if (mcpBusy || mcpLoading) return
1706
1798
  mcpBusy = true
1707
1799
  setMcpError(null)
1708
1800
  renderMcpHosts()
@@ -1721,7 +1813,7 @@
1721
1813
  }
1722
1814
 
1723
1815
  async function attachAllHosts() {
1724
- if (mcpBusy) return
1816
+ if (mcpBusy || mcpLoading || mcpLoadFailed) return
1725
1817
  mcpBusy = true
1726
1818
  setMcpError(null)
1727
1819
  renderMcpHosts()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reevesagents",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Local tmux-first workspace manager for AI CLI agents",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.34.1",
@@ -14,6 +14,7 @@
14
14
  "files": [
15
15
  "dist",
16
16
  "!dist/**/*.map",
17
+ "AGENTS.md",
17
18
  "CHANGELOG.md",
18
19
  "LICENSE"
19
20
  ],
@@ -38,6 +39,7 @@
38
39
  "commander": "^14.0.3",
39
40
  "ink": "^7.0.2",
40
41
  "react": "^19.2.6",
42
+ "string-width": "^8.2.1",
41
43
  "strip-ansi": "^7.1.0"
42
44
  },
43
45
  "optionalDependencies": {
@@ -58,6 +60,7 @@
58
60
  "release-it": "^20.2.0",
59
61
  "tsup": "^8.5.1",
60
62
  "typescript": "^6.0.3",
63
+ "vite": "^8.0.16",
61
64
  "vitest": "^4.1.6"
62
65
  },
63
66
  "engines": {