@thegitai/cli 1.0.0-preview.17 → 1.0.0-preview.19

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.
@@ -768,7 +768,6 @@ function modelPickerPanelSideLine(content, innerWidth) {
768
768
  }
769
769
  const MODEL_PICKER_COST_WIDTH = 6;
770
770
  const MODEL_PICKER_MODEL_WIDTH = 42;
771
- const MODEL_PICKER_NUMBER_WIDTH = 4;
772
771
  const MODEL_PICKER_SEPARATOR = ' │ ';
773
772
  const MODEL_PICKER_WIDE_MIN_WIDTH = 78;
774
773
  function modelPickerTopBorder(panelWidth) {
@@ -795,7 +794,6 @@ function modelPickerCostText(rating) {
795
794
  }
796
795
  function modelPickerNotesWidth(innerWidth) {
797
796
  return Math.max(18, innerWidth -
798
- MODEL_PICKER_NUMBER_WIDTH -
799
797
  MODEL_PICKER_MODEL_WIDTH -
800
798
  MODEL_PICKER_COST_WIDTH -
801
799
  MODEL_PICKER_SEPARATOR.length * 2);
@@ -818,12 +816,10 @@ function modelPickerItemLines(option, selected, innerWidth) {
818
816
  : selected
819
817
  ? { color: 'cyan', bold: true }
820
818
  : {};
821
- const numberCell = modelPickerCell(String(option.publicId), MODEL_PICKER_NUMBER_WIDTH, { color: 'cyan', bold: selected, ...selectedStyle });
822
819
  const cost = modelPickerCostText(option.costRating);
823
820
  if (innerWidth < MODEL_PICKER_WIDE_MIN_WIDTH) {
824
- const modelWidth = Math.max(12, innerWidth - MODEL_PICKER_NUMBER_WIDTH - MODEL_PICKER_COST_WIDTH - 2);
821
+ const modelWidth = Math.max(12, innerWidth - MODEL_PICKER_COST_WIDTH - 2);
825
822
  const row = [
826
- numberCell,
827
823
  ...modelPickerModelSpans(option, selected, modelWidth, false, labelStyle, selectedStyle),
828
824
  span(' ', selectedStyle),
829
825
  modelPickerCell(cost, MODEL_PICKER_COST_WIDTH, selectedStyle),
@@ -833,7 +829,6 @@ function modelPickerItemLines(option, selected, innerWidth) {
833
829
  ];
834
830
  }
835
831
  const row = [
836
- numberCell,
837
832
  ...modelPickerModelSpans(option, selected, MODEL_PICKER_MODEL_WIDTH, true, labelStyle, selectedStyle),
838
833
  span(MODEL_PICKER_SEPARATOR, { color: 'gray', ...selectedStyle }),
839
834
  modelPickerCell(cost, MODEL_PICKER_COST_WIDTH, selectedStyle),
@@ -850,9 +845,9 @@ function modelPickerItemLines(option, selected, innerWidth) {
850
845
  function modelPickerHeaderLine(innerWidth) {
851
846
  const heading = { color: MODEL_PICKER_ACCENT_COLOR, bold: true };
852
847
  if (innerWidth < MODEL_PICKER_WIDE_MIN_WIDTH) {
853
- return line(modelPickerCell('#', MODEL_PICKER_NUMBER_WIDTH, heading), modelPickerCell('Model', Math.max(1, innerWidth - MODEL_PICKER_NUMBER_WIDTH), heading));
848
+ return line(modelPickerCell('Model', Math.max(1, innerWidth), heading));
854
849
  }
855
- return line(modelPickerCell('#', MODEL_PICKER_NUMBER_WIDTH, heading), modelPickerCell('Model', MODEL_PICKER_MODEL_WIDTH, heading), span(MODEL_PICKER_SEPARATOR, { color: 'gray' }), modelPickerCell('Cost', MODEL_PICKER_COST_WIDTH, heading), span(MODEL_PICKER_SEPARATOR, { color: 'gray' }), modelPickerCell('Notes', modelPickerNotesWidth(innerWidth), heading));
850
+ return line(modelPickerCell('Model', MODEL_PICKER_MODEL_WIDTH, heading), span(MODEL_PICKER_SEPARATOR, { color: 'gray' }), modelPickerCell('Cost', MODEL_PICKER_COST_WIDTH, heading), span(MODEL_PICKER_SEPARATOR, { color: 'gray' }), modelPickerCell('Notes', modelPickerNotesWidth(innerWidth), heading));
856
851
  }
857
852
  function buildModelPickerPanel(options, selectedIndex, width, availableHeight) {
858
853
  const panelWidth = Math.max(28, Math.min(width, MODEL_PICKER_PANEL_MAX_WIDTH));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegitai/cli",
3
- "version": "1.0.0-preview.17",
3
+ "version": "1.0.0-preview.19",
4
4
  "description": "TheGitAI is an AI coding agent for your terminal. It indexes your repository, writes and edits files, runs commands, and builds features with you.",
5
5
  "keywords": [
6
6
  "ai",
@@ -37,10 +37,10 @@
37
37
  "@lydell/node-pty-linux-x64": "1.1.0",
38
38
  "@lydell/node-pty-win32-arm64": "1.1.0",
39
39
  "@lydell/node-pty-win32-x64": "1.1.0",
40
- "@thegitai/tui-darwin-arm64": "1.0.0-preview.17",
41
- "@thegitai/tui-darwin-x64": "1.0.0-preview.17",
42
- "@thegitai/tui-linux-x64": "1.0.0-preview.17",
43
- "@thegitai/tui-win32-x64": "1.0.0-preview.17",
40
+ "@thegitai/tui-darwin-arm64": "1.0.0-preview.19",
41
+ "@thegitai/tui-darwin-x64": "1.0.0-preview.19",
42
+ "@thegitai/tui-linux-x64": "1.0.0-preview.19",
43
+ "@thegitai/tui-win32-x64": "1.0.0-preview.19",
44
44
  "@vscode/ripgrep": "1.18.0"
45
45
  },
46
46
  "publishConfig": {