@thegitai/cli 1.0.0-beta.20 → 1.0.0-beta.21

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.
@@ -544,15 +544,16 @@ function buildLiveLines(state, width, spinnerFrame, elapsedSeconds) {
544
544
  lines.push(plainLine(''));
545
545
  }
546
546
  lines.push(plainLine(`${WORKING_CLOCK_ICON} Working · ${elapsedSeconds < 60 ? `${elapsedSeconds}s` : `${Math.floor(elapsedSeconds / 60)}m ${String(elapsedSeconds % 60).padStart(2, '0')}s`}`, { color: 'yellow' }));
547
- if (state.todos.length > 0) {
547
+ const todos = state.todos ?? [];
548
+ if (todos.length > 0) {
548
549
  lines.push(plainLine(''));
549
- lines.push(...renderTodoListLines(state.todos, width, { header: true }));
550
+ lines.push(...renderTodoListLines(todos, width, { header: true }));
550
551
  }
551
552
  const visibleTitle = state.thinkingTitle.trim();
552
553
  const visibleNotes = state.thinkingNotes.filter(Boolean);
553
554
  if (visibleTitle || visibleNotes.length > 0) {
554
555
  lines.push(plainLine(''));
555
- if (state.todos.length > 0) {
556
+ if (todos.length > 0) {
556
557
  const minimalText = visibleTitle && visibleTitle !== 'Thinking'
557
558
  ? visibleTitle
558
559
  : (visibleNotes[visibleNotes.length - 1] ?? '');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegitai/cli",
3
- "version": "1.0.0-beta.20",
3
+ "version": "1.0.0-beta.21",
4
4
  "description": "TheGitAI CLI client (source-visible, proprietary)",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://thegit.ai",
@@ -25,10 +25,10 @@
25
25
  "@lydell/node-pty-linux-x64": "1.1.0",
26
26
  "@lydell/node-pty-win32-arm64": "1.1.0",
27
27
  "@lydell/node-pty-win32-x64": "1.1.0",
28
- "@thegitai/tui-darwin-arm64": "1.0.0-beta.20",
29
- "@thegitai/tui-darwin-x64": "1.0.0-beta.20",
30
- "@thegitai/tui-linux-x64": "1.0.0-beta.20",
31
- "@thegitai/tui-win32-x64": "1.0.0-beta.20",
28
+ "@thegitai/tui-darwin-arm64": "1.0.0-beta.21",
29
+ "@thegitai/tui-darwin-x64": "1.0.0-beta.21",
30
+ "@thegitai/tui-linux-x64": "1.0.0-beta.21",
31
+ "@thegitai/tui-win32-x64": "1.0.0-beta.21",
32
32
  "@vscode/ripgrep": "1.18.0"
33
33
  },
34
34
  "publishConfig": {