@thegitai/cli 1.0.0-preview.47 → 1.0.0-preview.49

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.
@@ -691,6 +691,20 @@ function thinkingHeaderLine(spinnerFrame, title, width) {
691
691
  function thinkingNoteLine(note, width) {
692
692
  return line(span('│ ', { color: 'green' }), span(fitLine(note, Math.max(8, width - 3)), { color: 'ansi256(248)' }));
693
693
  }
694
+ function buildRecoveryStatusLines(status, width) {
695
+ const [label = '', ...rest] = status.split(' · ');
696
+ const detail = rest.join(' · ');
697
+ const labelSpan = span(fitLine(label, Math.max(1, width - 2)), { color: 'yellow', bold: true });
698
+ if (!detail)
699
+ return [line(span('● ', { color: 'yellow' }), labelSpan)];
700
+ if (displayWidth(`● ${label} · ${detail}`) <= width) {
701
+ return [line(span('● ', { color: 'yellow' }), labelSpan, span(` · ${detail}`))];
702
+ }
703
+ return [
704
+ line(span('● ', { color: 'yellow' }), labelSpan),
705
+ ...wrapText(detail, Math.max(1, width - 2)).map((row) => plainLine(` ${row}`)),
706
+ ];
707
+ }
694
708
  function buildLiveLines(state, width, spinnerFrame, elapsedSeconds, nowMs) {
695
709
  if (!state.busy)
696
710
  return [];
@@ -722,6 +736,9 @@ function buildLiveLines(state, width, spinnerFrame, elapsedSeconds, nowMs) {
722
736
  lines.push(plainLine(''));
723
737
  }
724
738
  lines.push(plainLine(buildWorkingClockLine(state, elapsedSeconds), { color: 'yellow' }));
739
+ if (state.recoveryStatus) {
740
+ lines.push(...buildRecoveryStatusLines(state.recoveryStatus, width));
741
+ }
725
742
  const turnMessages = state.turnMessages ?? [];
726
743
  if (turnMessages.length > 0) {
727
744
  lines.push(plainLine(''));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegitai/cli",
3
- "version": "1.0.0-preview.47",
3
+ "version": "1.0.0-preview.49",
4
4
  "description": "TheGitAI is an agentic AI coding tool for your terminal. It reads and searches your repository, writes and edits files, runs your tests, and verifies the change before handing it back.",
5
5
  "keywords": [
6
6
  "agentic-ai",
@@ -44,11 +44,11 @@
44
44
  "@lydell/node-pty-linux-x64": "1.1.0",
45
45
  "@lydell/node-pty-win32-arm64": "1.1.0",
46
46
  "@lydell/node-pty-win32-x64": "1.1.0",
47
- "@thegitai/tui-darwin-arm64": "1.0.0-preview.47",
48
- "@thegitai/tui-darwin-x64": "1.0.0-preview.47",
49
- "@thegitai/tui-linux-arm64": "1.0.0-preview.47",
50
- "@thegitai/tui-linux-x64": "1.0.0-preview.47",
51
- "@thegitai/tui-win32-x64": "1.0.0-preview.47",
47
+ "@thegitai/tui-darwin-arm64": "1.0.0-preview.49",
48
+ "@thegitai/tui-darwin-x64": "1.0.0-preview.49",
49
+ "@thegitai/tui-linux-arm64": "1.0.0-preview.49",
50
+ "@thegitai/tui-linux-x64": "1.0.0-preview.49",
51
+ "@thegitai/tui-win32-x64": "1.0.0-preview.49",
52
52
  "@vscode/ripgrep": "1.18.0"
53
53
  },
54
54
  "repository": {