@ainative/cody-cli 0.7.22 → 0.7.24

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.
Files changed (2) hide show
  1. package/dist/cli.js +216 -205
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -181024,7 +181024,7 @@ var init_metadata = __esm(() => {
181024
181024
  isClaudeAiAuth: isClaudeAISubscriber(),
181025
181025
  version: "0.7.15",
181026
181026
  versionBase: getVersionBase(),
181027
- buildTime: "1775426970",
181027
+ buildTime: "1775427960",
181028
181028
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
181029
181029
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
181030
181030
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -198282,21 +198282,21 @@ var init_string_width = __esm(() => {
198282
198282
  });
198283
198283
 
198284
198284
  // node_modules/wrap-ansi/index.js
198285
- function wrapAnsi(string4, columns2, options) {
198285
+ function wrapAnsi(string4, columns, options) {
198286
198286
  return String(string4).normalize().replaceAll(`\r
198287
198287
  `, `
198288
198288
  `).split(`
198289
- `).map((line) => exec2(line, columns2, options)).join(`
198289
+ `).map((line) => exec2(line, columns, options)).join(`
198290
198290
  `);
198291
198291
  }
198292
- var ESCAPES2, END_CODE = 39, ANSI_ESCAPE_BELL = "\x07", ANSI_CSI = "[", ANSI_OSC = "]", ANSI_SGR_TERMINATOR = "m", ANSI_ESCAPE_LINK, wrapAnsiCode = (code) => `${ESCAPES2.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`, wrapAnsiHyperlink = (url3) => `${ESCAPES2.values().next().value}${ANSI_ESCAPE_LINK}${url3}${ANSI_ESCAPE_BELL}`, wordLengths = (string4) => string4.split(" ").map((character) => stringWidth2(character)), wrapWord = (rows, word, columns2) => {
198292
+ var ESCAPES2, END_CODE = 39, ANSI_ESCAPE_BELL = "\x07", ANSI_CSI = "[", ANSI_OSC = "]", ANSI_SGR_TERMINATOR = "m", ANSI_ESCAPE_LINK, wrapAnsiCode = (code) => `${ESCAPES2.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`, wrapAnsiHyperlink = (url3) => `${ESCAPES2.values().next().value}${ANSI_ESCAPE_LINK}${url3}${ANSI_ESCAPE_BELL}`, wordLengths = (string4) => string4.split(" ").map((character) => stringWidth2(character)), wrapWord = (rows, word, columns) => {
198293
198293
  const characters = [...word];
198294
198294
  let isInsideEscape = false;
198295
198295
  let isInsideLinkEscape = false;
198296
198296
  let visible = stringWidth2(stripAnsi(rows.at(-1)));
198297
198297
  for (const [index, character] of characters.entries()) {
198298
198298
  const characterLength = stringWidth2(character);
198299
- if (visible + characterLength <= columns2) {
198299
+ if (visible + characterLength <= columns) {
198300
198300
  rows[rows.length - 1] += character;
198301
198301
  } else {
198302
198302
  rows.push(character);
@@ -198319,7 +198319,7 @@ var ESCAPES2, END_CODE = 39, ANSI_ESCAPE_BELL = "\x07", ANSI_CSI = "[", ANSI_OSC
198319
198319
  continue;
198320
198320
  }
198321
198321
  visible += characterLength;
198322
- if (visible === columns2 && index < characters.length - 1) {
198322
+ if (visible === columns && index < characters.length - 1) {
198323
198323
  rows.push("");
198324
198324
  visible = 0;
198325
198325
  }
@@ -198340,7 +198340,7 @@ var ESCAPES2, END_CODE = 39, ANSI_ESCAPE_BELL = "\x07", ANSI_CSI = "[", ANSI_OSC
198340
198340
  return string4;
198341
198341
  }
198342
198342
  return words.slice(0, last).join(" ") + words.slice(last).join("");
198343
- }, exec2 = (string4, columns2, options = {}) => {
198343
+ }, exec2 = (string4, columns, options = {}) => {
198344
198344
  if (options.trim !== false && string4.trim() === "") {
198345
198345
  return "";
198346
198346
  }
@@ -198355,7 +198355,7 @@ var ESCAPES2, END_CODE = 39, ANSI_ESCAPE_BELL = "\x07", ANSI_CSI = "[", ANSI_OSC
198355
198355
  }
198356
198356
  let rowLength = stringWidth2(rows.at(-1));
198357
198357
  if (index !== 0) {
198358
- if (rowLength >= columns2 && (options.wordWrap === false || options.trim === false)) {
198358
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
198359
198359
  rows.push("");
198360
198360
  rowLength = 0;
198361
198361
  }
@@ -198364,25 +198364,25 @@ var ESCAPES2, END_CODE = 39, ANSI_ESCAPE_BELL = "\x07", ANSI_CSI = "[", ANSI_OSC
198364
198364
  rowLength++;
198365
198365
  }
198366
198366
  }
198367
- if (options.hard && lengths[index] > columns2) {
198368
- const remainingColumns = columns2 - rowLength;
198369
- const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns2);
198370
- const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns2);
198367
+ if (options.hard && lengths[index] > columns) {
198368
+ const remainingColumns = columns - rowLength;
198369
+ const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
198370
+ const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
198371
198371
  if (breaksStartingNextLine < breaksStartingThisLine) {
198372
198372
  rows.push("");
198373
198373
  }
198374
- wrapWord(rows, word, columns2);
198374
+ wrapWord(rows, word, columns);
198375
198375
  continue;
198376
198376
  }
198377
- if (rowLength + lengths[index] > columns2 && rowLength > 0 && lengths[index] > 0) {
198378
- if (options.wordWrap === false && rowLength < columns2) {
198379
- wrapWord(rows, word, columns2);
198377
+ if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
198378
+ if (options.wordWrap === false && rowLength < columns) {
198379
+ wrapWord(rows, word, columns);
198380
198380
  continue;
198381
198381
  }
198382
198382
  rows.push("");
198383
198383
  }
198384
- if (rowLength + lengths[index] > columns2 && options.wordWrap === false) {
198385
- wrapWord(rows, word, columns2);
198384
+ if (rowLength + lengths[index] > columns && options.wordWrap === false) {
198385
+ wrapWord(rows, word, columns);
198386
198386
  continue;
198387
198387
  }
198388
198388
  rows[rows.length - 1] += word;
@@ -198451,22 +198451,22 @@ function sliceFit(text, start, end) {
198451
198451
  const s = sliceAnsi(text, start, end);
198452
198452
  return stringWidth(s) > end - start ? sliceAnsi(text, start, end - 1) : s;
198453
198453
  }
198454
- function truncate2(text, columns2, position) {
198455
- if (columns2 < 1)
198454
+ function truncate2(text, columns, position) {
198455
+ if (columns < 1)
198456
198456
  return "";
198457
- if (columns2 === 1)
198457
+ if (columns === 1)
198458
198458
  return ELLIPSIS;
198459
198459
  const length = stringWidth(text);
198460
- if (length <= columns2)
198460
+ if (length <= columns)
198461
198461
  return text;
198462
198462
  if (position === "start") {
198463
- return ELLIPSIS + sliceFit(text, length - columns2 + 1, length);
198463
+ return ELLIPSIS + sliceFit(text, length - columns + 1, length);
198464
198464
  }
198465
198465
  if (position === "middle") {
198466
- const half = Math.floor(columns2 / 2);
198467
- return sliceFit(text, 0, half) + ELLIPSIS + sliceFit(text, length - (columns2 - half) + 1, length);
198466
+ const half = Math.floor(columns / 2);
198467
+ return sliceFit(text, 0, half) + ELLIPSIS + sliceFit(text, length - (columns - half) + 1, length);
198468
198468
  }
198469
- return sliceFit(text, 0, columns2 - 1) + ELLIPSIS;
198469
+ return sliceFit(text, 0, columns - 1) + ELLIPSIS;
198470
198470
  }
198471
198471
  function wrapText2(text, maxWidth, wrapType) {
198472
198472
  if (wrapType === "wrap") {
@@ -202997,10 +202997,10 @@ var init_keyboard_event = __esm(() => {
202997
202997
  });
202998
202998
 
202999
202999
  // src/ink/frame.ts
203000
- function emptyFrame(rows, columns2, stylePool, charPool, hyperlinkPool) {
203000
+ function emptyFrame(rows, columns, stylePool, charPool, hyperlinkPool) {
203001
203001
  return {
203002
203002
  screen: createScreen(0, 0, stylePool, charPool, hyperlinkPool),
203003
- viewport: { width: columns2, height: rows },
203003
+ viewport: { width: columns, height: rows },
203004
203004
  cursor: { x: 0, y: 0, visible: true }
203005
203005
  };
203006
203006
  }
@@ -270173,13 +270173,13 @@ function OutputLine(t0) {
270173
270173
  linkifyUrls
270174
270174
  } = t0;
270175
270175
  const {
270176
- columns: columns2
270176
+ columns
270177
270177
  } = useTerminalSize();
270178
270178
  const expandShellOutput = useExpandShellOutput();
270179
270179
  const inVirtualList = React16.useContext(InVirtualListContext);
270180
270180
  const shouldShowFull = verbose || expandShellOutput;
270181
270181
  let t1;
270182
- if ($3[0] !== columns2 || $3[1] !== content || $3[2] !== inVirtualList || $3[3] !== linkifyUrls || $3[4] !== shouldShowFull) {
270182
+ if ($3[0] !== columns || $3[1] !== content || $3[2] !== inVirtualList || $3[3] !== linkifyUrls || $3[4] !== shouldShowFull) {
270183
270183
  bb0: {
270184
270184
  let formatted = tryJsonFormatContent(content);
270185
270185
  if (linkifyUrls) {
@@ -270189,9 +270189,9 @@ function OutputLine(t0) {
270189
270189
  t1 = stripUnderlineAnsi(formatted);
270190
270190
  break bb0;
270191
270191
  }
270192
- t1 = stripUnderlineAnsi(renderTruncatedContent(formatted, columns2, inVirtualList));
270192
+ t1 = stripUnderlineAnsi(renderTruncatedContent(formatted, columns, inVirtualList));
270193
270193
  }
270194
- $3[0] = columns2;
270194
+ $3[0] = columns;
270195
270195
  $3[1] = content;
270196
270196
  $3[2] = inVirtualList;
270197
270197
  $3[3] = linkifyUrls;
@@ -336499,8 +336499,14 @@ async function installOAuthTokens(tokens) {
336499
336499
  },
336500
336500
  ainativePlanCache: "AINative Free"
336501
336501
  }));
336502
- const envApiKey = process.env.ANTHROPIC_API_KEY;
336502
+ const envApiKey = process.env.ANTHROPIC_API_KEY || process.env.AINATIVE_API_KEY;
336503
336503
  if (envApiKey) {
336504
+ try {
336505
+ await saveApiKey(envApiKey);
336506
+ logForDebugging("[AINative] API key saved to keychain");
336507
+ } catch (e) {
336508
+ logForDebugging(`[AINative] Failed to save API key to keychain: ${e}`);
336509
+ }
336504
336510
  const normalized = envApiKey.slice(-20);
336505
336511
  saveGlobalConfig((current) => {
336506
336512
  const approved = current.customApiKeyResponses?.approved ?? [];
@@ -337690,7 +337696,7 @@ function TaskListV2({
337690
337696
  const [, forceUpdate] = React22.useState(0);
337691
337697
  const {
337692
337698
  rows,
337693
- columns: columns2
337699
+ columns
337694
337700
  } = useTerminalSize();
337695
337701
  const completionTimestampsRef = React22.useRef(new Map);
337696
337702
  const previousCompletedIdsRef = React22.useRef(null);
@@ -337823,7 +337829,7 @@ function TaskListV2({
337823
337829
  openBlockers: task_0.blockedBy.filter((id_3) => unresolvedTaskIds.has(id_3)),
337824
337830
  activity: task_0.owner ? teammateActivity[task_0.owner] : undefined,
337825
337831
  ownerActive: task_0.owner ? activeTeammates.has(task_0.owner) : false,
337826
- columns: columns2
337832
+ columns
337827
337833
  }, task_0.id, false, undefined, this)),
337828
337834
  maxDisplay > 0 && hiddenSummary && /* @__PURE__ */ jsx_dev_runtime62.jsxDEV(ThemedText, {
337829
337835
  dimColor: true,
@@ -337904,7 +337910,7 @@ function TaskItem(t0) {
337904
337910
  openBlockers,
337905
337911
  activity,
337906
337912
  ownerActive,
337907
- columns: columns2
337913
+ columns
337908
337914
  } = t0;
337909
337915
  const isCompleted = task.status === "completed";
337910
337916
  const isInProgress = task.status === "in_progress";
@@ -337922,7 +337928,7 @@ function TaskItem(t0) {
337922
337928
  color: color2
337923
337929
  } = t1;
337924
337930
  const showActivity = isInProgress && !isBlocked && activity;
337925
- const showOwner = columns2 >= 60 && task.owner && ownerActive;
337931
+ const showOwner = columns >= 60 && task.owner && ownerActive;
337926
337932
  let t2;
337927
337933
  if ($3[2] !== showOwner || $3[3] !== task.owner) {
337928
337934
  t2 = showOwner ? stringWidth(` (@${task.owner})`) : 0;
@@ -337933,7 +337939,7 @@ function TaskItem(t0) {
337933
337939
  t2 = $3[4];
337934
337940
  }
337935
337941
  const ownerWidth = t2;
337936
- const maxSubjectWidth = Math.max(15, columns2 - 15 - ownerWidth);
337942
+ const maxSubjectWidth = Math.max(15, columns - 15 - ownerWidth);
337937
337943
  let t3;
337938
337944
  if ($3[5] !== maxSubjectWidth || $3[6] !== task.subject) {
337939
337945
  t3 = truncateToWidth(task.subject, maxSubjectWidth);
@@ -337944,7 +337950,7 @@ function TaskItem(t0) {
337944
337950
  t3 = $3[7];
337945
337951
  }
337946
337952
  const displaySubject = t3;
337947
- const maxActivityWidth = Math.max(15, columns2 - 15);
337953
+ const maxActivityWidth = Math.max(15, columns - 15);
337948
337954
  let t4;
337949
337955
  if ($3[8] !== activity || $3[9] !== maxActivityWidth) {
337950
337956
  t4 = activity ? truncateToWidth(activity, maxActivityWidth) : undefined;
@@ -338991,7 +338997,7 @@ function SpinnerAnimationRow({
338991
338997
  pauseStartTimeRef,
338992
338998
  spinnerSuffix,
338993
338999
  verbose,
338994
- columns: columns2,
339000
+ columns,
338995
339001
  hasRunningTeammates,
338996
339002
  teammateTokens,
338997
339003
  foregroundedTeammate,
@@ -339051,7 +339057,7 @@ function SpinnerAnimationRow({
339051
339057
  const sep11 = SEP_WIDTH;
339052
339058
  const wantsThinking = thinkingStatus !== null;
339053
339059
  const wantsTimerAndTokens = verbose || hasRunningTeammates || effectiveElapsedMs > SHOW_TOKENS_AFTER_MS;
339054
- const availableSpace = columns2 - messageWidth - 5;
339060
+ const availableSpace = columns - messageWidth - 5;
339055
339061
  let showThinking = wantsThinking && availableSpace > thinkingWidthValue;
339056
339062
  if (!showThinking && wantsThinking && thinkingStatus === "thinking" && effortSuffix) {
339057
339063
  if (availableSpace > THINKING_BARE_WIDTH) {
@@ -343232,7 +343238,7 @@ function TeammateSpinnerLine({
343232
343238
  const treeChar = isHighlighted ? isLast ? "╘═" : "╞═" : isLast ? "└─" : "├─";
343233
343239
  const nameColor = toInkColor(teammate.identity.color);
343234
343240
  const {
343235
- columns: columns2
343241
+ columns
343236
343242
  } = useTerminalSize();
343237
343243
  const idleStartRef = import_react57.useRef(null);
343238
343244
  const frozenDurationRef = import_react57.useRef(null);
@@ -343263,10 +343269,10 @@ function TeammateSpinnerLine({
343263
343269
  const viewHintText = " · enter to view";
343264
343270
  const viewHintWidth = stringWidth(viewHintText);
343265
343271
  const minActivityWidth = 25;
343266
- const spaceWithFullName = columns2 - basePrefix - fullNameWidth - 2;
343267
- const showName = columns2 >= 60 && spaceWithFullName >= minActivityWidth;
343272
+ const spaceWithFullName = columns - basePrefix - fullNameWidth - 2;
343273
+ const showName = columns >= 60 && spaceWithFullName >= minActivityWidth;
343268
343274
  const nameWidth = showName ? fullNameWidth + 2 : 0;
343269
- const availableForActivity = columns2 - basePrefix - nameWidth;
343275
+ const availableForActivity = columns - basePrefix - nameWidth;
343270
343276
  const showViewHint = isSelected && !isForegrounded && availableForActivity > viewHintWidth + statsWidth + minActivityWidth + 5;
343271
343277
  const showSelectHint = isHighlighted && availableForActivity > selectHintWidth + (showViewHint ? viewHintWidth : 0) + statsWidth + minActivityWidth + 5;
343272
343278
  const showStats = availableForActivity > statsWidth + minActivityWidth + 5;
@@ -343826,7 +343832,7 @@ function SpinnerWithVerbInner({
343826
343832
  tasks
343827
343833
  }) : undefined;
343828
343834
  const {
343829
- columns: columns2
343835
+ columns
343830
343836
  } = useTerminalSize();
343831
343837
  const tasksV2 = useTasksV2();
343832
343838
  const [thinkingStatus, setThinkingStatus] = import_react58.useState(null);
@@ -343981,7 +343987,7 @@ function SpinnerWithVerbInner({
343981
343987
  pauseStartTimeRef,
343982
343988
  spinnerSuffix,
343983
343989
  verbose,
343984
- columns: columns2,
343990
+ columns,
343985
343991
  hasRunningTeammates,
343986
343992
  teammateTokens,
343987
343993
  foregroundedTeammate,
@@ -344030,7 +344036,7 @@ function BriefIdleStatus() {
344030
344036
  const connStatus = useAppState(_temp73);
344031
344037
  const runningCount = useAppState(_temp82);
344032
344038
  const {
344033
- columns: columns2
344039
+ columns
344034
344040
  } = useTerminalSize();
344035
344041
  const showConnWarning = connStatus === "reconnecting" || connStatus === "disconnected";
344036
344042
  const connText = connStatus === "reconnecting" ? "Reconnecting…" : "Disconnected";
@@ -344048,7 +344054,7 @@ function BriefIdleStatus() {
344048
344054
  }
344049
344055
  return t02;
344050
344056
  }
344051
- const pad = Math.max(1, columns2 - 2 - stringWidth(leftText) - stringWidth(rightText));
344057
+ const pad = Math.max(1, columns - 2 - stringWidth(leftText) - stringWidth(rightText));
344052
344058
  let t0;
344053
344059
  if ($3[1] !== leftText) {
344054
344060
  t0 = leftText ? /* @__PURE__ */ jsx_dev_runtime70.jsxDEV(ThemedText, {
@@ -344819,7 +344825,7 @@ function OAuthStatusMessage(t0) {
344819
344825
  return t8;
344820
344826
  }
344821
344827
  case "api_key_input": {
344822
- const apiKeyColumns = columns - 22;
344828
+ const apiKeyColumns = textInputColumns;
344823
344829
  return /* @__PURE__ */ jsx_dev_runtime71.jsxDEV(ThemedBox_default, {
344824
344830
  flexDirection: "column",
344825
344831
  gap: 1,
@@ -344853,6 +344859,11 @@ function OAuthStatusMessage(t0) {
344853
344859
  });
344854
344860
  return;
344855
344861
  }
344862
+ try {
344863
+ await saveApiKey(key);
344864
+ } catch (e) {
344865
+ logError2(e);
344866
+ }
344856
344867
  const normalized = key.slice(-20);
344857
344868
  saveGlobalConfig((current) => {
344858
344869
  const approved = current.customApiKeyResponses?.approved ?? [];
@@ -352523,7 +352534,7 @@ function StopHookSummaryMessage(t0) {
352523
352534
  stopReason
352524
352535
  } = message;
352525
352536
  const {
352526
- columns: columns2
352537
+ columns
352527
352538
  } = useTerminalSize();
352528
352539
  let t1;
352529
352540
  if ($3[0] !== hookInfos || $3[1] !== message.totalDurationMs) {
@@ -352614,7 +352625,7 @@ function StopHookSummaryMessage(t0) {
352614
352625
  } else {
352615
352626
  t4 = $3[16];
352616
352627
  }
352617
- const t5 = columns2 - 10;
352628
+ const t5 = columns - 10;
352618
352629
  let t6;
352619
352630
  if ($3[17] !== hookCount) {
352620
352631
  t6 = /* @__PURE__ */ jsx_dev_runtime105.jsxDEV(ThemedText, {
@@ -352787,7 +352798,7 @@ function SystemTextMessageInner(t0) {
352787
352798
  dimColor
352788
352799
  } = t0;
352789
352800
  const {
352790
- columns: columns2
352801
+ columns
352791
352802
  } = useTerminalSize();
352792
352803
  const bg = useSelectedMessageBg();
352793
352804
  const t1 = addMargin ? 1 : 0;
@@ -352808,7 +352819,7 @@ function SystemTextMessageInner(t0) {
352808
352819
  } else {
352809
352820
  t2 = $3[3];
352810
352821
  }
352811
- const t3 = columns2 - 10;
352822
+ const t3 = columns - 10;
352812
352823
  let t4;
352813
352824
  if ($3[4] !== content) {
352814
352825
  t4 = content.trim();
@@ -353497,7 +353508,7 @@ function UserToolRejectMessage(t0) {
353497
353508
  isTranscriptMode
353498
353509
  } = t0;
353499
353510
  const {
353500
- columns: columns2
353511
+ columns
353501
353512
  } = useTerminalSize();
353502
353513
  const [theme] = useTheme();
353503
353514
  if (!tool || !tool.renderToolUseRejectedMessage) {
@@ -353513,7 +353524,7 @@ function UserToolRejectMessage(t0) {
353513
353524
  const t1 = tool.inputSchema;
353514
353525
  let t2;
353515
353526
  let t3;
353516
- if ($3[1] !== columns2 || $3[2] !== input || $3[3] !== isTranscriptMode || $3[4] !== progressMessagesForMessage || $3[5] !== style || $3[6] !== theme || $3[7] !== tool || $3[8] !== tools || $3[9] !== verbose) {
353527
+ if ($3[1] !== columns || $3[2] !== input || $3[3] !== isTranscriptMode || $3[4] !== progressMessagesForMessage || $3[5] !== style || $3[6] !== theme || $3[7] !== tool || $3[8] !== tools || $3[9] !== verbose) {
353517
353528
  t3 = Symbol.for("react.early_return_sentinel");
353518
353529
  bb0: {
353519
353530
  const parsedInput = t1.safeParse(input);
@@ -353529,7 +353540,7 @@ function UserToolRejectMessage(t0) {
353529
353540
  break bb0;
353530
353541
  }
353531
353542
  t2 = tool.renderToolUseRejectedMessage(parsedInput.data, {
353532
- columns: columns2,
353543
+ columns,
353533
353544
  messages: [],
353534
353545
  tools,
353535
353546
  verbose,
@@ -353539,7 +353550,7 @@ function UserToolRejectMessage(t0) {
353539
353550
  isTranscriptMode
353540
353551
  }) ?? /* @__PURE__ */ jsx_dev_runtime110.jsxDEV(FallbackToolUseRejectedMessage, {}, undefined, false, undefined, this);
353541
353552
  }
353542
- $3[1] = columns2;
353553
+ $3[1] = columns;
353543
353554
  $3[2] = input;
353544
353555
  $3[3] = isTranscriptMode;
353545
353556
  $3[4] = progressMessagesForMessage;
@@ -354192,7 +354203,7 @@ function UserMessage(t0) {
354192
354203
  isTranscriptMode
354193
354204
  } = t0;
354194
354205
  const {
354195
- columns: columns2
354206
+ columns
354196
354207
  } = useTerminalSize();
354197
354208
  switch (param.type) {
354198
354209
  case "text": {
@@ -354235,7 +354246,7 @@ function UserMessage(t0) {
354235
354246
  return t2;
354236
354247
  }
354237
354248
  case "tool_result": {
354238
- const t1 = columns2 - 5;
354249
+ const t1 = columns - 5;
354239
354250
  let t2;
354240
354251
  if ($3[10] !== isTranscriptMode || $3[11] !== lookups || $3[12] !== message || $3[13] !== param || $3[14] !== progressMessagesForMessage || $3[15] !== style || $3[16] !== t1 || $3[17] !== tools || $3[18] !== verbose) {
354241
354252
  t2 = /* @__PURE__ */ jsx_dev_runtime114.jsxDEV(UserToolResultMessage, {
@@ -378676,7 +378687,7 @@ function FileEditToolUseRejectedMessage(t0) {
378676
378687
  verbose
378677
378688
  } = t0;
378678
378689
  const {
378679
- columns: columns2
378690
+ columns
378680
378691
  } = useTerminalSize();
378681
378692
  let t1;
378682
378693
  if ($3[0] !== operation) {
@@ -378763,7 +378774,7 @@ function FileEditToolUseRejectedMessage(t0) {
378763
378774
  }
378764
378775
  const truncatedContent = t52;
378765
378776
  const t62 = truncatedContent || "(No content)";
378766
- const t72 = columns2 - 12;
378777
+ const t72 = columns - 12;
378767
378778
  let t8;
378768
378779
  if ($3[16] !== file_path || $3[17] !== t62 || $3[18] !== t72) {
378769
378780
  t8 = /* @__PURE__ */ jsx_dev_runtime129.jsxDEV(HighlightedCode, {
@@ -378829,7 +378840,7 @@ function FileEditToolUseRejectedMessage(t0) {
378829
378840
  }
378830
378841
  return t52;
378831
378842
  }
378832
- const t5 = columns2 - 12;
378843
+ const t5 = columns - 12;
378833
378844
  let t6;
378834
378845
  if ($3[29] !== fileContent || $3[30] !== file_path || $3[31] !== firstLine || $3[32] !== patch || $3[33] !== t5) {
378835
378846
  t6 = /* @__PURE__ */ jsx_dev_runtime129.jsxDEV(StructuredDiffList, {
@@ -378893,7 +378904,7 @@ function FileEditToolUpdatedMessage(t0) {
378893
378904
  previewHint
378894
378905
  } = t0;
378895
378906
  const {
378896
- columns: columns2
378907
+ columns
378897
378908
  } = useTerminalSize();
378898
378909
  const numAdditions = structuredPatch2.reduce(_temp211, 0);
378899
378910
  const numRemovals = structuredPatch2.reduce(_temp46, 0);
@@ -378985,7 +378996,7 @@ function FileEditToolUpdatedMessage(t0) {
378985
378996
  } else {
378986
378997
  t5 = $3[12];
378987
378998
  }
378988
- const t6 = columns2 - 12;
378999
+ const t6 = columns - 12;
378989
379000
  let t7;
378990
379001
  if ($3[13] !== fileContent || $3[14] !== filePath || $3[15] !== firstLine || $3[16] !== structuredPatch2 || $3[17] !== t6) {
378991
379002
  t7 = /* @__PURE__ */ jsx_dev_runtime130.jsxDEV(StructuredDiffList, {
@@ -380264,7 +380275,7 @@ function FileWriteToolCreatedMessage(t0) {
380264
380275
  verbose
380265
380276
  } = t0;
380266
380277
  const {
380267
- columns: columns2
380278
+ columns
380268
380279
  } = useTerminalSize();
380269
380280
  const contentWithFallback = content || "(No content)";
380270
380281
  const numLines = countLines(content);
@@ -380328,7 +380339,7 @@ function FileWriteToolCreatedMessage(t0) {
380328
380339
  } else {
380329
380340
  t5 = $3[12];
380330
380341
  }
380331
- const t6 = columns2 - 12;
380342
+ const t6 = columns - 12;
380332
380343
  let t7;
380333
380344
  if ($3[13] !== filePath || $3[14] !== t5 || $3[15] !== t6) {
380334
380345
  t7 = /* @__PURE__ */ jsx_dev_runtime132.jsxDEV(ThemedBox_default, {
@@ -418996,7 +419007,7 @@ function getAnthropicEnvMetadata() {
418996
419007
  function getBuildAgeMinutes() {
418997
419008
  if (false)
418998
419009
  ;
418999
- const buildTime = new Date("1775426970").getTime();
419010
+ const buildTime = new Date("1775427960").getTime();
419000
419011
  if (isNaN(buildTime))
419001
419012
  return;
419002
419013
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -438842,8 +438853,8 @@ class Cursor {
438842
438853
  this.selection = selection;
438843
438854
  this.offset = Math.max(0, Math.min(this.text.length, offset));
438844
438855
  }
438845
- static fromText(text2, columns2, offset = 0, selection = 0) {
438846
- return new Cursor(new MeasuredText(text2, columns2 - 1), offset, selection);
438856
+ static fromText(text2, columns, offset = 0, selection = 0) {
438857
+ return new Cursor(new MeasuredText(text2, columns - 1), offset, selection);
438847
438858
  }
438848
438859
  getViewportStartLine(maxVisibleLines) {
438849
438860
  if (maxVisibleLines === undefined || maxVisibleLines <= 0)
@@ -439498,8 +439509,8 @@ class MeasuredText {
439498
439509
  text;
439499
439510
  navigationCache;
439500
439511
  graphemeBoundaries;
439501
- constructor(text2, columns2) {
439502
- this.columns = columns2;
439512
+ constructor(text2, columns) {
439513
+ this.columns = columns;
439503
439514
  this.text = text2.normalize("NFC");
439504
439515
  this.navigationCache = new Map;
439505
439516
  }
@@ -439811,7 +439822,7 @@ function useTextInput({
439811
439822
  multiline = false,
439812
439823
  cursorChar,
439813
439824
  invert,
439814
- columns: columns2,
439825
+ columns,
439815
439826
  onImagePaste: _onImagePaste,
439816
439827
  disableCursorMovementForUpDownKeys = false,
439817
439828
  disableEscapeDoublePress = false,
@@ -439827,7 +439838,7 @@ function useTextInput({
439827
439838
  }
439828
439839
  const offset = externalOffset;
439829
439840
  const setOffset = onOffsetChange;
439830
- const cursor = Cursor.fromText(originalValue, columns2, offset);
439841
+ const cursor = Cursor.fromText(originalValue, columns, offset);
439831
439842
  const { addNotification, removeNotification } = useNotifications();
439832
439843
  const handleCtrlC = useDoublePress((show) => {
439833
439844
  onExitMessage?.(show, "Ctrl-C");
@@ -439914,7 +439925,7 @@ function useTextInput({
439914
439925
  const newText = before + text2 + after;
439915
439926
  const newOffset = start + text2.length;
439916
439927
  updateYankLength(text2.length);
439917
- return Cursor.fromText(newText, columns2, newOffset);
439928
+ return Cursor.fromText(newText, columns, newOffset);
439918
439929
  }
439919
439930
  const handleCtrl = mapInput([
439920
439931
  ["a", () => cursor.startOfLine()],
@@ -441070,7 +441081,7 @@ var init_PromptInputFooterSuggestions = __esm(() => {
441070
441081
  maxColumnWidth,
441071
441082
  isSelected
441072
441083
  } = t0;
441073
- const columns2 = useTerminalSize().columns;
441084
+ const columns = useTerminalSize().columns;
441074
441085
  const isUnified = isUnifiedSuggestion(item.id);
441075
441086
  if (isUnified) {
441076
441087
  let t12;
@@ -441098,7 +441109,7 @@ var init_PromptInputFooterSuggestions = __esm(() => {
441098
441109
  t23 = $3[3];
441099
441110
  }
441100
441111
  const descReserve = t23;
441101
- const maxPathLength = columns2 - 2 - 4 - separatorWidth - descReserve;
441112
+ const maxPathLength = columns - 2 - 4 - separatorWidth - descReserve;
441102
441113
  let t32;
441103
441114
  if ($3[4] !== item.displayText || $3[5] !== maxPathLength) {
441104
441115
  t32 = truncatePathMiddle(item.displayText, maxPathLength);
@@ -441124,7 +441135,7 @@ var init_PromptInputFooterSuggestions = __esm(() => {
441124
441135
  displayText = item.displayText;
441125
441136
  }
441126
441137
  }
441127
- const availableWidth = columns2 - 2 - stringWidth(displayText) - separatorWidth - 4;
441138
+ const availableWidth = columns - 2 - stringWidth(displayText) - separatorWidth - 4;
441128
441139
  let lineContent;
441129
441140
  if (item.description) {
441130
441141
  const maxDescLength = Math.max(0, availableWidth);
@@ -441159,7 +441170,7 @@ var init_PromptInputFooterSuggestions = __esm(() => {
441159
441170
  }
441160
441171
  return t22;
441161
441172
  }
441162
- const maxNameWidth = Math.floor(columns2 * 0.4);
441173
+ const maxNameWidth = Math.floor(columns * 0.4);
441163
441174
  const displayTextWidth = Math.min(maxColumnWidth ?? stringWidth(item.displayText) + 5, maxNameWidth);
441164
441175
  const textColor_0 = item.color || (isSelected ? "suggestion" : undefined);
441165
441176
  const shouldDim = !isSelected;
@@ -441180,7 +441191,7 @@ var init_PromptInputFooterSuggestions = __esm(() => {
441180
441191
  const paddedDisplayText = displayText_0 + " ".repeat(Math.max(0, displayTextWidth - stringWidth(displayText_0)));
441181
441192
  const tagText = item.tag ? `[${item.tag}] ` : "";
441182
441193
  const tagWidth = stringWidth(tagText);
441183
- const descriptionWidth = Math.max(0, columns2 - displayTextWidth - tagWidth - 4);
441194
+ const descriptionWidth = Math.max(0, columns - displayTextWidth - tagWidth - 4);
441184
441195
  let t1;
441185
441196
  if ($3[19] !== descriptionWidth || $3[20] !== item.description) {
441186
441197
  t1 = item.description ? truncateToWidth(item.description.replace(/\s+/g, " "), descriptionWidth) : "";
@@ -446260,7 +446271,7 @@ function ThemePicker(t0) {
446260
446271
  const [theme] = useTheme();
446261
446272
  const themeSetting = useThemeSetting();
446262
446273
  const {
446263
- columns: columns2
446274
+ columns
446264
446275
  } = useTerminalSize();
446265
446276
  let t6;
446266
446277
  if ($3[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -446487,7 +446498,7 @@ function ThemePicker(t0) {
446487
446498
  t20 = $3[34];
446488
446499
  }
446489
446500
  let t21;
446490
- if ($3[35] !== columns2) {
446501
+ if ($3[35] !== columns) {
446491
446502
  t21 = /* @__PURE__ */ jsx_dev_runtime171.jsxDEV(ThemedBox_default, {
446492
446503
  flexDirection: "column",
446493
446504
  borderTop: true,
@@ -446501,10 +446512,10 @@ function ThemePicker(t0) {
446501
446512
  dim: false,
446502
446513
  filePath: "demo.js",
446503
446514
  firstLine: null,
446504
- width: columns2
446515
+ width: columns
446505
446516
  }, undefined, false, undefined, this)
446506
446517
  }, undefined, false, undefined, this);
446507
- $3[35] = columns2;
446518
+ $3[35] = columns;
446508
446519
  $3[36] = t21;
446509
446520
  } else {
446510
446521
  t21 = $3[36];
@@ -447989,13 +448000,13 @@ function useSearchInput({
447989
448000
  onExit: onExit2,
447990
448001
  onCancel,
447991
448002
  onExitUp,
447992
- columns: columns2,
448003
+ columns,
447993
448004
  passthroughCtrlKeys = [],
447994
448005
  initialQuery = "",
447995
448006
  backspaceExitsOnEmpty = true
447996
448007
  }) {
447997
448008
  const { columns: terminalColumns } = useTerminalSize();
447998
- const effectiveColumns = columns2 ?? terminalColumns;
448009
+ const effectiveColumns = columns ?? terminalColumns;
447999
448010
  const [query2, setQueryState] = import_react104.useState(initialQuery);
448000
448011
  const [cursorOffset, setCursorOffset] = import_react104.useState(initialQuery.length);
448001
448012
  const setQuery = import_react104.useCallback((q2) => {
@@ -450408,9 +450419,9 @@ function Usage() {
450408
450419
  const [error43, setError] = import_react107.useState(null);
450409
450420
  const [isLoading, setIsLoading] = import_react107.useState(true);
450410
450421
  const {
450411
- columns: columns2
450422
+ columns
450412
450423
  } = useTerminalSize();
450413
- const availableWidth = columns2 - 2;
450424
+ const availableWidth = columns - 2;
450414
450425
  const maxWidth = Math.min(availableWidth, 80);
450415
450426
  const loadUtilization = React53.useCallback(async () => {
450416
450427
  setIsLoading(true);
@@ -451991,12 +452002,12 @@ function extractFirstFrame(output) {
451991
452002
  return output;
451992
452003
  return output.slice(contentStart, endIndex);
451993
452004
  }
451994
- function renderToAnsiString(node, columns2) {
452005
+ function renderToAnsiString(node, columns) {
451995
452006
  return new Promise(async (resolve37) => {
451996
452007
  let output = "";
451997
452008
  const stream4 = new PassThrough3;
451998
- if (columns2 !== undefined) {
451999
- stream4.columns = columns2;
452009
+ if (columns !== undefined) {
452010
+ stream4.columns = columns;
452000
452011
  }
452001
452012
  stream4.on("data", (chunk) => {
452002
452013
  output += chunk.toString();
@@ -452011,8 +452022,8 @@ function renderToAnsiString(node, columns2) {
452011
452022
  await resolve37(extractFirstFrame(output));
452012
452023
  });
452013
452024
  }
452014
- async function renderToString(node, columns2) {
452015
- const output = await renderToAnsiString(node, columns2);
452025
+ async function renderToString(node, columns) {
452026
+ const output = await renderToAnsiString(node, columns);
452016
452027
  return stripAnsi(output);
452017
452028
  }
452018
452029
  var import_compiler_runtime148, import_react109, jsx_dev_runtime186, SYNC_START = "\x1B[?2026h", SYNC_END = "\x1B[?2026l";
@@ -452531,7 +452542,7 @@ function DiffDetailView(t0) {
452531
452542
  isUntracked
452532
452543
  } = t0;
452533
452544
  const {
452534
- columns: columns2
452545
+ columns
452535
452546
  } = useTerminalSize();
452536
452547
  let t1;
452537
452548
  bb0: {
@@ -452834,7 +452845,7 @@ function DiffDetailView(t0) {
452834
452845
  t5 = $3[38];
452835
452846
  }
452836
452847
  let t6;
452837
- if ($3[39] !== columns2 || $3[40] !== fileContent || $3[41] !== filePath || $3[42] !== firstLine || $3[43] !== hunks) {
452848
+ if ($3[39] !== columns || $3[40] !== fileContent || $3[41] !== filePath || $3[42] !== firstLine || $3[43] !== hunks) {
452838
452849
  t6 = hunks.length === 0 ? /* @__PURE__ */ jsx_dev_runtime188.jsxDEV(ThemedText, {
452839
452850
  dimColor: true,
452840
452851
  children: "No diff content"
@@ -452844,9 +452855,9 @@ function DiffDetailView(t0) {
452844
452855
  firstLine,
452845
452856
  fileContent,
452846
452857
  dim: false,
452847
- width: columns2 - 2 - 2
452858
+ width: columns - 2 - 2
452848
452859
  }, index, false, undefined, this));
452849
- $3[39] = columns2;
452860
+ $3[39] = columns;
452850
452861
  $3[40] = fileContent;
452851
452862
  $3[41] = filePath;
452852
452863
  $3[42] = firstLine;
@@ -452919,7 +452930,7 @@ function DiffFileList(t0) {
452919
452930
  selectedIndex
452920
452931
  } = t0;
452921
452932
  const {
452922
- columns: columns2
452933
+ columns
452923
452934
  } = useTerminalSize();
452924
452935
  let t1;
452925
452936
  bb0: {
@@ -452981,12 +452992,12 @@ function DiffFileList(t0) {
452981
452992
  let t2;
452982
452993
  let t3;
452983
452994
  let t4;
452984
- if ($3[6] !== columns2 || $3[7] !== endIndex || $3[8] !== files || $3[9] !== selectedIndex || $3[10] !== startIndex) {
452995
+ if ($3[6] !== columns || $3[7] !== endIndex || $3[8] !== files || $3[9] !== selectedIndex || $3[10] !== startIndex) {
452985
452996
  const visibleFiles = files.slice(startIndex, endIndex);
452986
452997
  const hasMoreAbove = startIndex > 0;
452987
452998
  hasMoreBelow = endIndex < files.length;
452988
452999
  needsPagination = files.length > MAX_VISIBLE_FILES;
452989
- const maxPathWidth = Math.max(20, columns2 - 16 - 3 - 4);
453000
+ const maxPathWidth = Math.max(20, columns - 16 - 3 - 4);
452990
453001
  T0 = ThemedBox_default;
452991
453002
  t2 = "column";
452992
453003
  if ($3[17] !== hasMoreAbove || $3[18] !== needsPagination || $3[19] !== startIndex) {
@@ -453016,7 +453027,7 @@ function DiffFileList(t0) {
453016
453027
  t52 = $3[24];
453017
453028
  }
453018
453029
  t4 = visibleFiles.map(t52);
453019
- $3[6] = columns2;
453030
+ $3[6] = columns;
453020
453031
  $3[7] = endIndex;
453021
453032
  $3[8] = files;
453022
453033
  $3[9] = selectedIndex;
@@ -456850,7 +456861,7 @@ function Commands(t0) {
456850
456861
  const {
456851
456862
  commands,
456852
456863
  maxHeight,
456853
- columns: columns2,
456864
+ columns,
456854
456865
  title,
456855
456866
  onCancel,
456856
456867
  emptyMessage
@@ -456859,7 +456870,7 @@ function Commands(t0) {
456859
456870
  headerFocused,
456860
456871
  focusHeader
456861
456872
  } = useTabHeaderFocus();
456862
- const maxWidth = Math.max(1, columns2 - 10);
456873
+ const maxWidth = Math.max(1, columns - 10);
456863
456874
  const visibleCount = Math.max(1, Math.floor((maxHeight - 10) / 2));
456864
456875
  let t1;
456865
456876
  if ($3[0] !== commands || $3[1] !== maxWidth) {
@@ -457548,7 +457559,7 @@ function HelpV2(t0) {
457548
457559
  } = t0;
457549
457560
  const {
457550
457561
  rows,
457551
- columns: columns2
457562
+ columns
457552
457563
  } = useTerminalSize();
457553
457564
  const maxHeight = Math.floor(rows / 2);
457554
457565
  const insideModal = useIsInsideModal();
@@ -457611,23 +457622,23 @@ function HelpV2(t0) {
457611
457622
  t4 = $3[8];
457612
457623
  }
457613
457624
  let tabs;
457614
- if ($3[9] !== antOnlyCommands || $3[10] !== builtinCommands || $3[11] !== close || $3[12] !== columns2 || $3[13] !== customCommands || $3[14] !== maxHeight) {
457625
+ if ($3[9] !== antOnlyCommands || $3[10] !== builtinCommands || $3[11] !== close || $3[12] !== columns || $3[13] !== customCommands || $3[14] !== maxHeight) {
457615
457626
  tabs = [t4];
457616
457627
  let t52;
457617
- if ($3[16] !== builtinCommands || $3[17] !== close || $3[18] !== columns2 || $3[19] !== maxHeight) {
457628
+ if ($3[16] !== builtinCommands || $3[17] !== close || $3[18] !== columns || $3[19] !== maxHeight) {
457618
457629
  t52 = /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Tab, {
457619
457630
  title: "commands",
457620
457631
  children: /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Commands, {
457621
457632
  commands: builtinCommands,
457622
457633
  maxHeight,
457623
- columns: columns2,
457634
+ columns,
457624
457635
  title: "Browse default commands:",
457625
457636
  onCancel: close
457626
457637
  }, undefined, false, undefined, this)
457627
457638
  }, "commands", false, undefined, this);
457628
457639
  $3[16] = builtinCommands;
457629
457640
  $3[17] = close;
457630
- $3[18] = columns2;
457641
+ $3[18] = columns;
457631
457642
  $3[19] = maxHeight;
457632
457643
  $3[20] = t52;
457633
457644
  } else {
@@ -457635,20 +457646,20 @@ function HelpV2(t0) {
457635
457646
  }
457636
457647
  tabs.push(t52);
457637
457648
  let t62;
457638
- if ($3[21] !== close || $3[22] !== columns2 || $3[23] !== customCommands || $3[24] !== maxHeight) {
457649
+ if ($3[21] !== close || $3[22] !== columns || $3[23] !== customCommands || $3[24] !== maxHeight) {
457639
457650
  t62 = /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Tab, {
457640
457651
  title: "custom-commands",
457641
457652
  children: /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Commands, {
457642
457653
  commands: customCommands,
457643
457654
  maxHeight,
457644
- columns: columns2,
457655
+ columns,
457645
457656
  title: "Browse custom commands:",
457646
457657
  emptyMessage: "No custom commands found",
457647
457658
  onCancel: close
457648
457659
  }, undefined, false, undefined, this)
457649
457660
  }, "custom", false, undefined, this);
457650
457661
  $3[21] = close;
457651
- $3[22] = columns2;
457662
+ $3[22] = columns;
457652
457663
  $3[23] = customCommands;
457653
457664
  $3[24] = maxHeight;
457654
457665
  $3[25] = t62;
@@ -457660,7 +457671,7 @@ function HelpV2(t0) {
457660
457671
  $3[9] = antOnlyCommands;
457661
457672
  $3[10] = builtinCommands;
457662
457673
  $3[11] = close;
457663
- $3[12] = columns2;
457674
+ $3[12] = columns;
457664
457675
  $3[13] = customCommands;
457665
457676
  $3[14] = maxHeight;
457666
457677
  $3[15] = tabs;
@@ -482922,24 +482933,24 @@ var init_transcriptSearch = __esm(() => {
482922
482933
  });
482923
482934
 
482924
482935
  // src/utils/logoV2Utils.ts
482925
- function getLayoutMode(columns2) {
482926
- if (columns2 >= 70)
482936
+ function getLayoutMode(columns) {
482937
+ if (columns >= 70)
482927
482938
  return "horizontal";
482928
482939
  return "compact";
482929
482940
  }
482930
- function calculateLayoutDimensions(columns2, layoutMode, optimalLeftWidth) {
482941
+ function calculateLayoutDimensions(columns, layoutMode, optimalLeftWidth) {
482931
482942
  if (layoutMode === "horizontal") {
482932
482943
  const leftWidth = optimalLeftWidth;
482933
482944
  const usedSpace = BORDER_PADDING + CONTENT_PADDING + DIVIDER_WIDTH + leftWidth;
482934
- const availableForRight = columns2 - usedSpace;
482945
+ const availableForRight = columns - usedSpace;
482935
482946
  let rightWidth = Math.max(30, availableForRight);
482936
- const totalWidth2 = Math.min(leftWidth + rightWidth + DIVIDER_WIDTH + CONTENT_PADDING, columns2 - BORDER_PADDING);
482947
+ const totalWidth2 = Math.min(leftWidth + rightWidth + DIVIDER_WIDTH + CONTENT_PADDING, columns - BORDER_PADDING);
482937
482948
  if (totalWidth2 < leftWidth + rightWidth + DIVIDER_WIDTH + CONTENT_PADDING) {
482938
482949
  rightWidth = totalWidth2 - leftWidth - DIVIDER_WIDTH - CONTENT_PADDING;
482939
482950
  }
482940
482951
  return { leftWidth, rightWidth, totalWidth: totalWidth2 };
482941
482952
  }
482942
- const totalWidth = Math.min(columns2 - BORDER_PADDING, MAX_LEFT_WIDTH + 20);
482953
+ const totalWidth = Math.min(columns - BORDER_PADDING, MAX_LEFT_WIDTH + 20);
482943
482954
  return {
482944
482955
  leftWidth: totalWidth,
482945
482956
  rightWidth: totalWidth,
@@ -483981,7 +483992,7 @@ var init_GuestPassesUpsell = __esm(() => {
483981
483992
  function CondensedLogo() {
483982
483993
  const $3 = import_compiler_runtime199.c(29);
483983
483994
  const {
483984
- columns: columns2
483995
+ columns
483985
483996
  } = useTerminalSize();
483986
483997
  const agent = useAppState(_temp114);
483987
483998
  const effortValue = useAppState(_temp243);
@@ -484031,7 +484042,7 @@ function CondensedLogo() {
484031
484042
  t3 = $3[6];
484032
484043
  }
484033
484044
  import_react144.useEffect(t2, t3);
484034
- const textWidth = Math.max(columns2 - 15, 20);
484045
+ const textWidth = Math.max(columns - 15, 20);
484035
484046
  const truncatedVersion = truncate(version6, Math.max(textWidth - 13, 6));
484036
484047
  const effortSuffix = getEffortSuffix(model, effortValue);
484037
484048
  const {
@@ -484396,7 +484407,7 @@ function LogoV2() {
484396
484407
  const activities = getRecentActivitySync();
484397
484408
  const username = getGlobalConfig().oauthAccount?.displayName ?? "";
484398
484409
  const {
484399
- columns: columns2
484410
+ columns
484400
484411
  } = useTerminalSize();
484401
484412
  let t0;
484402
484413
  if ($3[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -484656,13 +484667,13 @@ function LogoV2() {
484656
484667
  }
484657
484668
  return t232;
484658
484669
  }
484659
- const layoutMode = getLayoutMode(columns2);
484670
+ const layoutMode = getLayoutMode(columns);
484660
484671
  const userTheme = resolveThemeSetting(getGlobalConfig().theme);
484661
484672
  const borderTitle = ` ${color("claude", userTheme)("Cody CLI")} ${color("inactive", userTheme)(`v${version6}`)} `;
484662
484673
  const compactBorderTitle = color("claude", userTheme)(" Cody CLI ");
484663
484674
  if (layoutMode === "compact") {
484664
484675
  let welcomeMessage = formatWelcomeMessage(username);
484665
- if (stringWidth(welcomeMessage) > columns2 - 4) {
484676
+ if (stringWidth(welcomeMessage) > columns - 4) {
484666
484677
  let t113;
484667
484678
  if ($3[31] === Symbol.for("react.memo_cache_sentinel")) {
484668
484679
  t113 = formatWelcomeMessage(null);
@@ -484672,7 +484683,7 @@ function LogoV2() {
484672
484683
  }
484673
484684
  welcomeMessage = t113;
484674
484685
  }
484675
- const cwdAvailableWidth = agentName ? columns2 - 4 - 1 - stringWidth(agentName) - 3 : columns2 - 4;
484686
+ const cwdAvailableWidth = agentName ? columns - 4 - 1 - stringWidth(agentName) - 3 : columns - 4;
484676
484687
  const truncatedCwd = truncatePath(cwd2, Math.max(cwdAvailableWidth, 10));
484677
484688
  let t112;
484678
484689
  if ($3[32] !== compactBorderTitle) {
@@ -484760,7 +484771,7 @@ function LogoV2() {
484760
484771
  paddingX: 1,
484761
484772
  paddingY: 1,
484762
484773
  alignItems: "center",
484763
- width: columns2,
484774
+ width: columns,
484764
484775
  children: [
484765
484776
  /* @__PURE__ */ jsx_dev_runtime256.jsxDEV(ThemedText, {
484766
484777
  bold: true,
@@ -484797,7 +484808,7 @@ function LogoV2() {
484797
484808
  const {
484798
484809
  leftWidth,
484799
484810
  rightWidth
484800
- } = calculateLayoutDimensions(columns2, layoutMode, optimalLeftWidth);
484811
+ } = calculateLayoutDimensions(columns, layoutMode, optimalLeftWidth);
484801
484812
  const T0 = OffscreenFreeze;
484802
484813
  const T1 = ThemedBox_default;
484803
484814
  const t11 = "column";
@@ -485335,7 +485346,7 @@ function MessageRowImpl(t0) {
485335
485346
  onOpenRateLimitOptions,
485336
485347
  lastThinkingBlockId,
485337
485348
  latestBashOutputUUID,
485338
- columns: columns2,
485349
+ columns,
485339
485350
  isLoading,
485340
485351
  lookups
485341
485352
  } = t0;
@@ -485456,7 +485467,7 @@ function MessageRowImpl(t0) {
485456
485467
  }
485457
485468
  const hasMetadata = t5;
485458
485469
  const t6 = !hasMetadata;
485459
- const t7 = hasMetadata ? undefined : columns2;
485470
+ const t7 = hasMetadata ? undefined : columns;
485460
485471
  let t8;
485461
485472
  if ($3[37] !== commands || $3[38] !== inProgressToolUseIDs || $3[39] !== isActiveCollapsedGroup || $3[40] !== isStatic || $3[41] !== isTranscriptMode || $3[42] !== isUserContinuation || $3[43] !== lastThinkingBlockId || $3[44] !== latestBashOutputUUID || $3[45] !== lookups || $3[46] !== msg || $3[47] !== onOpenRateLimitOptions || $3[48] !== progressMessagesForMessage || $3[49] !== shouldAnimate || $3[50] !== t6 || $3[51] !== t7 || $3[52] !== tools || $3[53] !== verbose) {
485462
485473
  t8 = /* @__PURE__ */ jsx_dev_runtime259.jsxDEV(Message, {
@@ -485539,10 +485550,10 @@ function MessageRowImpl(t0) {
485539
485550
  t9 = $3[59];
485540
485551
  }
485541
485552
  let t10;
485542
- if ($3[60] !== columns2 || $3[61] !== messageEl || $3[62] !== t9) {
485553
+ if ($3[60] !== columns || $3[61] !== messageEl || $3[62] !== t9) {
485543
485554
  t10 = /* @__PURE__ */ jsx_dev_runtime259.jsxDEV(OffscreenFreeze, {
485544
485555
  children: /* @__PURE__ */ jsx_dev_runtime259.jsxDEV(ThemedBox_default, {
485545
- width: columns2,
485556
+ width: columns,
485546
485557
  flexDirection: "column",
485547
485558
  children: [
485548
485559
  t9,
@@ -485550,7 +485561,7 @@ function MessageRowImpl(t0) {
485550
485561
  ]
485551
485562
  }, undefined, true, undefined, this)
485552
485563
  }, undefined, false, undefined, this);
485553
- $3[60] = columns2;
485564
+ $3[60] = columns;
485554
485565
  $3[61] = messageEl;
485555
485566
  $3[62] = t9;
485556
485567
  $3[63] = t10;
@@ -486024,7 +486035,7 @@ var init_StatusNotices = __esm(() => {
486024
486035
  });
486025
486036
 
486026
486037
  // src/hooks/useVirtualScroll.ts
486027
- function useVirtualScroll(scrollRef, itemKeys, columns2) {
486038
+ function useVirtualScroll(scrollRef, itemKeys, columns) {
486028
486039
  const heightCache = import_react151.useRef(new Map);
486029
486040
  const offsetVersionRef = import_react151.useRef(0);
486030
486041
  const lastScrollTopRef = import_react151.useRef(0);
@@ -486035,13 +486046,13 @@ function useVirtualScroll(scrollRef, itemKeys, columns2) {
486035
486046
  });
486036
486047
  const itemRefs = import_react151.useRef(new Map);
486037
486048
  const refCache = import_react151.useRef(new Map);
486038
- const prevColumns = import_react151.useRef(columns2);
486049
+ const prevColumns = import_react151.useRef(columns);
486039
486050
  const skipMeasurementRef = import_react151.useRef(false);
486040
486051
  const prevRangeRef = import_react151.useRef(null);
486041
486052
  const freezeRendersRef = import_react151.useRef(0);
486042
- if (prevColumns.current !== columns2) {
486043
- const ratio = prevColumns.current / columns2;
486044
- prevColumns.current = columns2;
486053
+ if (prevColumns.current !== columns) {
486054
+ const ratio = prevColumns.current / columns;
486055
+ prevColumns.current = columns;
486045
486056
  for (const [k2, h2] of heightCache.current) {
486046
486057
  heightCache.current.set(k2, Math.max(1, Math.round(h2 * ratio)));
486047
486058
  }
@@ -486510,7 +486521,7 @@ function FullscreenLayout(t0) {
486510
486521
  const newMessageCount = t3 === undefined ? 0 : t3;
486511
486522
  const {
486512
486523
  rows: terminalRows,
486513
- columns: columns2
486524
+ columns
486514
486525
  } = useTerminalSize();
486515
486526
  const [stickyPrompt, setStickyPrompt] = import_react153.useState(null);
486516
486527
  let t4;
@@ -486691,11 +486702,11 @@ function FullscreenLayout(t0) {
486691
486702
  t17 = $3[32];
486692
486703
  }
486693
486704
  let t18;
486694
- if ($3[33] !== columns2 || $3[34] !== modal || $3[35] !== modalScrollRef || $3[36] !== terminalRows) {
486705
+ if ($3[33] !== columns || $3[34] !== modal || $3[35] !== modalScrollRef || $3[36] !== terminalRows) {
486695
486706
  t18 = modal != null && /* @__PURE__ */ jsx_dev_runtime263.jsxDEV(ModalContext, {
486696
486707
  value: {
486697
486708
  rows: terminalRows - MODAL_TRANSCRIPT_PEEK - 1,
486698
- columns: columns2 - 4,
486709
+ columns: columns - 4,
486699
486710
  scrollRef: modalScrollRef ?? null
486700
486711
  },
486701
486712
  children: /* @__PURE__ */ jsx_dev_runtime263.jsxDEV(ThemedBox_default, {
@@ -486712,7 +486723,7 @@ function FullscreenLayout(t0) {
486712
486723
  flexShrink: 0,
486713
486724
  children: /* @__PURE__ */ jsx_dev_runtime263.jsxDEV(ThemedText, {
486714
486725
  color: "permission",
486715
- children: "▔".repeat(columns2)
486726
+ children: "▔".repeat(columns)
486716
486727
  }, undefined, false, undefined, this)
486717
486728
  }, undefined, false, undefined, this),
486718
486729
  /* @__PURE__ */ jsx_dev_runtime263.jsxDEV(ThemedBox_default, {
@@ -486725,7 +486736,7 @@ function FullscreenLayout(t0) {
486725
486736
  ]
486726
486737
  }, undefined, true, undefined, this)
486727
486738
  }, undefined, false, undefined, this);
486728
- $3[33] = columns2;
486739
+ $3[33] = columns;
486729
486740
  $3[34] = modal;
486730
486741
  $3[35] = modalScrollRef;
486731
486742
  $3[36] = terminalRows;
@@ -487143,7 +487154,7 @@ function VirtualItem(t0) {
487143
487154
  function VirtualMessageList({
487144
487155
  messages,
487145
487156
  scrollRef,
487146
- columns: columns2,
487157
+ columns,
487147
487158
  itemKey,
487148
487159
  renderItem,
487149
487160
  onItemClick,
@@ -487183,7 +487194,7 @@ function VirtualMessageList({
487183
487194
  getItemElement,
487184
487195
  getItemHeight,
487185
487196
  scrollToIndex
487186
- } = useVirtualScroll(scrollRef, keys2, columns2);
487197
+ } = useVirtualScroll(scrollRef, keys2, columns);
487187
487198
  const [start, end] = range;
487188
487199
  const isVisible = import_react154.useCallback((i3) => {
487189
487200
  const h2 = getItemHeight(i3);
@@ -487912,7 +487923,7 @@ var import_compiler_runtime209, React83, import_react155, jsx_dev_runtime265, Lo
487912
487923
  renderRange
487913
487924
  }) => {
487914
487925
  const {
487915
- columns: columns2
487926
+ columns
487916
487927
  } = useTerminalSize();
487917
487928
  const toggleShowAllShortcut = useShortcutDisplay("transcript:toggleShowAll", "Transcript", "Ctrl+E");
487918
487929
  const normalizedMessages = import_react155.useMemo(() => normalizeMessages(messages).filter(isNotEmptyMessage), [messages]);
@@ -488093,7 +488104,7 @@ var import_compiler_runtime209, React83, import_react155, jsx_dev_runtime265, Lo
488093
488104
  onOpenRateLimitOptions,
488094
488105
  lastThinkingBlockId,
488095
488106
  latestBashOutputUUID,
488096
- columns: columns2,
488107
+ columns,
488097
488108
  isLoading,
488098
488109
  lookups: lookups_0
488099
488110
  }, k_0, false, undefined, this);
@@ -488106,7 +488117,7 @@ var import_compiler_runtime209, React83, import_react155, jsx_dev_runtime265, Lo
488106
488117
  marginTop: 1,
488107
488118
  children: /* @__PURE__ */ jsx_dev_runtime265.jsxDEV(Divider, {
488108
488119
  title: `${unseenDivider.count} new ${plural(unseenDivider.count, "message")}`,
488109
- width: columns2,
488120
+ width: columns,
488110
488121
  color: "inactive"
488111
488122
  }, undefined, false, undefined, this)
488112
488123
  }, "unseen-divider", false, undefined, this), wrapped];
@@ -488140,18 +488151,18 @@ var import_compiler_runtime209, React83, import_react155, jsx_dev_runtime265, Lo
488140
488151
  }, undefined, false, undefined, this),
488141
488152
  hasTruncatedMessages_0 && /* @__PURE__ */ jsx_dev_runtime265.jsxDEV(Divider, {
488142
488153
  title: `${toggleShowAllShortcut} to show ${source_default.bold(hiddenMessageCount_0)} previous messages`,
488143
- width: columns2
488154
+ width: columns
488144
488155
  }, undefined, false, undefined, this),
488145
488156
  isTranscriptMode && showAllInTranscript && hiddenMessageCount_0 > 0 && !disableRenderCap && /* @__PURE__ */ jsx_dev_runtime265.jsxDEV(Divider, {
488146
488157
  title: `${toggleShowAllShortcut} to hide ${source_default.bold(hiddenMessageCount_0)} previous messages`,
488147
- width: columns2
488158
+ width: columns
488148
488159
  }, undefined, false, undefined, this),
488149
488160
  virtualScrollRuntimeGate ? /* @__PURE__ */ jsx_dev_runtime265.jsxDEV(InVirtualListContext.Provider, {
488150
488161
  value: true,
488151
488162
  children: /* @__PURE__ */ jsx_dev_runtime265.jsxDEV(VirtualMessageList, {
488152
488163
  messages: renderableMessages,
488153
488164
  scrollRef,
488154
- columns: columns2,
488165
+ columns,
488155
488166
  itemKey: messageKey,
488156
488167
  renderItem: renderMessageRow,
488157
488168
  onItemClick,
@@ -489088,7 +489099,7 @@ function LogSelector(t0) {
489088
489099
  const maxHeight = t1 === undefined ? Infinity : t1;
489089
489100
  const showAllProjects = t2 === undefined ? false : t2;
489090
489101
  const terminalSize = useTerminalSize();
489091
- const columns2 = forceWidth === undefined ? terminalSize.columns : forceWidth;
489102
+ const columns = forceWidth === undefined ? terminalSize.columns : forceWidth;
489092
489103
  const exitState = useExitOnCtrlCDWithKeybindings(onCancel);
489093
489104
  const isTerminalFocused = useTerminalFocus();
489094
489105
  let t3;
@@ -489488,7 +489499,7 @@ function LogSelector(t0) {
489488
489499
  t28 = filteredLogs;
489489
489500
  }
489490
489501
  const displayedLogs = t28;
489491
- const maxLabelWidth = Math.max(30, columns2 - 4);
489502
+ const maxLabelWidth = Math.max(30, columns - 4);
489492
489503
  let t29;
489493
489504
  bb2: {
489494
489505
  if (!isResumeWithRenameEnabled) {
@@ -490205,11 +490216,11 @@ function LogSelector(t0) {
490205
490216
  t59 = $3[165];
490206
490217
  }
490207
490218
  let t60;
490208
- if ($3[166] !== columns2 || $3[167] !== displayedLogs.length || $3[168] !== effectiveTagIndex || $3[169] !== focusedIndex || $3[170] !== hasTags || $3[171] !== showAllProjects || $3[172] !== tagTabs || $3[173] !== viewMode || $3[174] !== visibleCount) {
490219
+ if ($3[166] !== columns || $3[167] !== displayedLogs.length || $3[168] !== effectiveTagIndex || $3[169] !== focusedIndex || $3[170] !== hasTags || $3[171] !== showAllProjects || $3[172] !== tagTabs || $3[173] !== viewMode || $3[174] !== visibleCount) {
490209
490220
  t60 = hasTags ? /* @__PURE__ */ jsx_dev_runtime269.jsxDEV(TagTabs, {
490210
490221
  tabs: tagTabs,
490211
490222
  selectedIndex: effectiveTagIndex,
490212
- availableWidth: columns2,
490223
+ availableWidth: columns,
490213
490224
  showAllProjects
490214
490225
  }, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime269.jsxDEV(ThemedBox_default, {
490215
490226
  flexShrink: 0,
@@ -490232,7 +490243,7 @@ function LogSelector(t0) {
490232
490243
  ]
490233
490244
  }, undefined, true, undefined, this)
490234
490245
  }, undefined, false, undefined, this);
490235
- $3[166] = columns2;
490246
+ $3[166] = columns;
490236
490247
  $3[167] = displayedLogs.length;
490237
490248
  $3[168] = effectiveTagIndex;
490238
490249
  $3[169] = focusedIndex;
@@ -490376,7 +490387,7 @@ function LogSelector(t0) {
490376
490387
  t69 = $3[201];
490377
490388
  }
490378
490389
  let t70;
490379
- if ($3[202] !== agenticSearchState.status || $3[203] !== branchFilterEnabled || $3[204] !== columns2 || $3[205] !== displayedLogs || $3[206] !== expandedGroupSessionIds || $3[207] !== flatOptions || $3[208] !== focusedLog || $3[209] !== focusedNode?.id || $3[210] !== handleFlatOptionsSelectFocus || $3[211] !== handleRenameSubmit || $3[212] !== handleTreeSelectFocus || $3[213] !== isAgenticSearchOptionFocused || $3[214] !== onCancel || $3[215] !== onSelect || $3[216] !== renameCursorOffset || $3[217] !== renameValue || $3[218] !== treeNodes || $3[219] !== viewMode || $3[220] !== visibleCount) {
490390
+ if ($3[202] !== agenticSearchState.status || $3[203] !== branchFilterEnabled || $3[204] !== columns || $3[205] !== displayedLogs || $3[206] !== expandedGroupSessionIds || $3[207] !== flatOptions || $3[208] !== focusedLog || $3[209] !== focusedNode?.id || $3[210] !== handleFlatOptionsSelectFocus || $3[211] !== handleRenameSubmit || $3[212] !== handleTreeSelectFocus || $3[213] !== isAgenticSearchOptionFocused || $3[214] !== onCancel || $3[215] !== onSelect || $3[216] !== renameCursorOffset || $3[217] !== renameValue || $3[218] !== treeNodes || $3[219] !== viewMode || $3[220] !== visibleCount) {
490380
490391
  t70 = agenticSearchState.status === "searching" ? null : viewMode === "rename" && focusedLog ? /* @__PURE__ */ jsx_dev_runtime269.jsxDEV(ThemedBox_default, {
490381
490392
  paddingLeft: 2,
490382
490393
  flexDirection: "column",
@@ -490392,7 +490403,7 @@ function LogSelector(t0) {
490392
490403
  onChange: setRenameValue,
490393
490404
  onSubmit: handleRenameSubmit,
490394
490405
  placeholder: getLogDisplayTitle(focusedLog, "Enter new session name"),
490395
- columns: columns2,
490406
+ columns,
490396
490407
  cursorOffset: renameCursorOffset,
490397
490408
  onChangeCursorOffset: setRenameCursorOffset,
490398
490409
  showCursor: true
@@ -490455,7 +490466,7 @@ function LogSelector(t0) {
490455
490466
  }, undefined, false, undefined, this);
490456
490467
  $3[202] = agenticSearchState.status;
490457
490468
  $3[203] = branchFilterEnabled;
490458
- $3[204] = columns2;
490469
+ $3[204] = columns;
490459
490470
  $3[205] = displayedLogs;
490460
490471
  $3[206] = expandedGroupSessionIds;
490461
490472
  $3[207] = flatOptions;
@@ -496512,7 +496523,7 @@ function ShellDetailDialog(t0) {
496512
496523
  onBack
496513
496524
  } = t0;
496514
496525
  const {
496515
- columns: columns2
496526
+ columns
496516
496527
  } = useTerminalSize();
496517
496528
  let t1;
496518
496529
  if ($3[0] !== shell) {
@@ -496800,7 +496811,7 @@ function ShellDetailDialog(t0) {
496800
496811
  t23 = $3[44];
496801
496812
  }
496802
496813
  let t24;
496803
- if ($3[45] !== columns2 || $3[46] !== deferredOutputPromise) {
496814
+ if ($3[45] !== columns || $3[46] !== deferredOutputPromise) {
496804
496815
  t24 = /* @__PURE__ */ jsx_dev_runtime285.jsxDEV(ThemedBox_default, {
496805
496816
  flexDirection: "column",
496806
496817
  children: [
@@ -496809,12 +496820,12 @@ function ShellDetailDialog(t0) {
496809
496820
  fallback: t23,
496810
496821
  children: /* @__PURE__ */ jsx_dev_runtime285.jsxDEV(ShellOutputContent, {
496811
496822
  outputPromise: deferredOutputPromise,
496812
- columns: columns2
496823
+ columns
496813
496824
  }, undefined, false, undefined, this)
496814
496825
  }, undefined, false, undefined, this)
496815
496826
  ]
496816
496827
  }, undefined, true, undefined, this);
496817
- $3[45] = columns2;
496828
+ $3[45] = columns;
496818
496829
  $3[46] = deferredOutputPromise;
496819
496830
  $3[47] = t24;
496820
496831
  } else {
@@ -496865,7 +496876,7 @@ function ShellOutputContent(t0) {
496865
496876
  const $3 = import_compiler_runtime224.c(19);
496866
496877
  const {
496867
496878
  outputPromise,
496868
- columns: columns2
496879
+ columns
496869
496880
  } = t0;
496870
496881
  const {
496871
496882
  content,
@@ -496914,7 +496925,7 @@ function ShellOutputContent(t0) {
496914
496925
  isIncomplete = $3[3];
496915
496926
  rendered = $3[4];
496916
496927
  }
496917
- const t1 = columns2 - 6;
496928
+ const t1 = columns - 6;
496918
496929
  let t2;
496919
496930
  if ($3[5] !== rendered) {
496920
496931
  t2 = rendered.map(_temp253);
@@ -497612,9 +497623,9 @@ function Item(t0) {
497612
497623
  isSelected
497613
497624
  } = t0;
497614
497625
  const {
497615
- columns: columns2
497626
+ columns
497616
497627
  } = useTerminalSize();
497617
- const maxActivityWidth = Math.max(30, columns2 - 26);
497628
+ const maxActivityWidth = Math.max(30, columns - 26);
497618
497629
  let t1;
497619
497630
  if ($3[0] === Symbol.for("react.memo_cache_sentinel")) {
497620
497631
  t1 = isCoordinatorMode();
@@ -499212,9 +499223,9 @@ function PermissionRuleInput(t0) {
499212
499223
  }
499213
499224
  useKeybinding("confirm:no", onCancel, t1);
499214
499225
  const {
499215
- columns: columns2
499226
+ columns
499216
499227
  } = useTerminalSize();
499217
- const textInputColumns = columns2 - 6;
499228
+ const textInputColumns = columns - 6;
499218
499229
  let t2;
499219
499230
  if ($3[1] !== onSubmit || $3[2] !== ruleBehavior) {
499220
499231
  t2 = (value) => {
@@ -511986,7 +511997,7 @@ var init_bridge_kick = __esm(() => {
511986
511997
  var call56 = async () => {
511987
511998
  return {
511988
511999
  type: "text",
511989
- value: `${"0.7.15"} (built ${"1775426970"})`
512000
+ value: `${"0.7.15"} (built ${"1775427960"})`
511990
512001
  };
511991
512002
  }, version6, version_default;
511992
512003
  var init_version = __esm(() => {
@@ -514541,7 +514552,7 @@ function ExportDialog({
514541
514552
  const [cursorOffset, setCursorOffset] = import_react188.useState(defaultFilename.length);
514542
514553
  const [showFilenameInput, setShowFilenameInput] = import_react188.useState(false);
514543
514554
  const {
514544
- columns: columns2
514555
+ columns
514545
514556
  } = useTerminalSize();
514546
514557
  const handleGoBack = import_react188.useCallback(() => {
514547
514558
  setShowFilenameInput(false);
@@ -514667,7 +514678,7 @@ function ExportDialog({
514667
514678
  onSubmit: handleFilenameSubmit,
514668
514679
  focus: true,
514669
514680
  showCursor: true,
514670
- columns: columns2,
514681
+ columns,
514671
514682
  cursorOffset,
514672
514683
  onChangeCursorOffset: setCursorOffset
514673
514684
  }, undefined, false, undefined, this)
@@ -514724,7 +514735,7 @@ function normalizedUpperBound(m2) {
514724
514735
  return Array.isArray(c6) ? c6.length : 1;
514725
514736
  }
514726
514737
  async function streamRenderedMessages(messages, tools, sink2, {
514727
- columns: columns2,
514738
+ columns,
514728
514739
  verbose = false,
514729
514740
  chunkSize = 40,
514730
514741
  onProgress
@@ -514748,7 +514759,7 @@ async function streamRenderedMessages(messages, tools, sink2, {
514748
514759
  renderRange: range
514749
514760
  }, undefined, false, undefined, this)
514750
514761
  }, undefined, false, undefined, this)
514751
- }, undefined, false, undefined, this), columns2);
514762
+ }, undefined, false, undefined, this), columns);
514752
514763
  let ceiling = chunkSize;
514753
514764
  for (const m2 of messages)
514754
514765
  ceiling += normalizedUpperBound(m2);
@@ -514760,10 +514771,10 @@ async function streamRenderedMessages(messages, tools, sink2, {
514760
514771
  onProgress?.(offset + chunkSize);
514761
514772
  }
514762
514773
  }
514763
- async function renderMessagesToPlainText(messages, tools = [], columns2) {
514774
+ async function renderMessagesToPlainText(messages, tools = [], columns) {
514764
514775
  const parts = [];
514765
514776
  await streamRenderedMessages(messages, tools, (chunk) => void parts.push(stripAnsi(chunk)), {
514766
- columns: columns2
514777
+ columns
514767
514778
  });
514768
514779
  return parts.join("");
514769
514780
  }
@@ -539288,7 +539299,7 @@ function UserMessageOption(t0) {
539288
539299
  paddingRight
539289
539300
  } = t0;
539290
539301
  const {
539291
- columns: columns2
539302
+ columns
539292
539303
  } = useTerminalSize();
539293
539304
  if (isCurrent) {
539294
539305
  let t12;
@@ -539320,7 +539331,7 @@ function UserMessageOption(t0) {
539320
539331
  let t4;
539321
539332
  let t5;
539322
539333
  let t6;
539323
- if ($3[3] !== color3 || $3[4] !== columns2 || $3[5] !== content || $3[6] !== dimColor || $3[7] !== lastBlock || $3[8] !== paddingRight) {
539334
+ if ($3[3] !== color3 || $3[4] !== columns || $3[5] !== content || $3[6] !== dimColor || $3[7] !== lastBlock || $3[8] !== paddingRight) {
539324
539335
  t6 = Symbol.for("react.early_return_sentinel");
539325
539336
  bb0: {
539326
539337
  const rawMessageText = typeof content === "string" ? content.trim() : lastBlock && isTextBlock2(lastBlock) ? lastBlock.text.trim() : "(no prompt)";
@@ -539423,12 +539434,12 @@ function UserMessageOption(t0) {
539423
539434
  T0 = ThemedText;
539424
539435
  t1 = color3;
539425
539436
  t2 = dimColor;
539426
- t3 = paddingRight ? truncate(messageText, columns2 - paddingRight, true) : messageText.slice(0, 500).split(`
539437
+ t3 = paddingRight ? truncate(messageText, columns - paddingRight, true) : messageText.slice(0, 500).split(`
539427
539438
  `).slice(0, 4).join(`
539428
539439
  `);
539429
539440
  }
539430
539441
  $3[3] = color3;
539431
- $3[4] = columns2;
539442
+ $3[4] = columns;
539432
539443
  $3[5] = content;
539433
539444
  $3[6] = dimColor;
539434
539445
  $3[7] = lastBlock;
@@ -539955,14 +539966,14 @@ function QuestionNavigationBar(t0) {
539955
539966
  } = t0;
539956
539967
  const hideSubmitTab = t1 === undefined ? false : t1;
539957
539968
  const {
539958
- columns: columns2
539969
+ columns
539959
539970
  } = useTerminalSize();
539960
539971
  let t2;
539961
- if ($3[0] !== columns2 || $3[1] !== currentQuestionIndex || $3[2] !== hideSubmitTab || $3[3] !== questions) {
539972
+ if ($3[0] !== columns || $3[1] !== currentQuestionIndex || $3[2] !== hideSubmitTab || $3[3] !== questions) {
539962
539973
  bb0: {
539963
539974
  const submitText = hideSubmitTab ? "" : ` ${figures_default.tick} Submit `;
539964
539975
  const fixedWidth = stringWidth("← ") + stringWidth(" →") + stringWidth(submitText);
539965
- const availableForTabs = columns2 - fixedWidth;
539976
+ const availableForTabs = columns - fixedWidth;
539966
539977
  if (availableForTabs <= 0) {
539967
539978
  let t33;
539968
539979
  if ($3[5] !== currentQuestionIndex || $3[6] !== questions) {
@@ -540020,7 +540031,7 @@ function QuestionNavigationBar(t0) {
540020
540031
  }
540021
540032
  t2 = tabHeaders.map(t32);
540022
540033
  }
540023
- $3[0] = columns2;
540034
+ $3[0] = columns;
540024
540035
  $3[1] = currentQuestionIndex;
540025
540036
  $3[2] = hideSubmitTab;
540026
540037
  $3[3] = questions;
@@ -540348,9 +540359,9 @@ function PreviewQuestionView({
540348
540359
  const LEFT_PANEL_WIDTH = 30;
540349
540360
  const GAP = 4;
540350
540361
  const {
540351
- columns: columns2
540362
+ columns
540352
540363
  } = useTerminalSize();
540353
- const previewMaxWidth = columns2 - LEFT_PANEL_WIDTH - GAP;
540364
+ const previewMaxWidth = columns - LEFT_PANEL_WIDTH - GAP;
540354
540365
  const PREVIEW_OVERHEAD = 11;
540355
540366
  const previewMaxLines = import_react202.useMemo(() => {
540356
540367
  return minContentHeight ? Math.max(1, minContentHeight - PREVIEW_OVERHEAD) : undefined;
@@ -544238,21 +544249,21 @@ function DiffBody(t0) {
544238
544249
  fileContent
544239
544250
  } = import_react208.use(promise3);
544240
544251
  const {
544241
- columns: columns2
544252
+ columns
544242
544253
  } = useTerminalSize();
544243
544254
  let t1;
544244
- if ($3[0] !== columns2 || $3[1] !== fileContent || $3[2] !== file_path || $3[3] !== firstLine || $3[4] !== patch) {
544255
+ if ($3[0] !== columns || $3[1] !== fileContent || $3[2] !== file_path || $3[3] !== firstLine || $3[4] !== patch) {
544245
544256
  t1 = /* @__PURE__ */ jsx_dev_runtime378.jsxDEV(DiffFrame, {
544246
544257
  children: /* @__PURE__ */ jsx_dev_runtime378.jsxDEV(StructuredDiffList, {
544247
544258
  hunks: patch,
544248
544259
  dim: false,
544249
- width: columns2,
544260
+ width: columns,
544250
544261
  filePath: file_path,
544251
544262
  firstLine,
544252
544263
  fileContent
544253
544264
  }, undefined, false, undefined, this)
544254
544265
  }, undefined, false, undefined, this);
544255
- $3[0] = columns2;
544266
+ $3[0] = columns;
544256
544267
  $3[1] = fileContent;
544257
544268
  $3[2] = file_path;
544258
544269
  $3[3] = firstLine;
@@ -548514,7 +548525,7 @@ function FileWriteToolDiff(t0) {
548514
548525
  oldContent
548515
548526
  } = t0;
548516
548527
  const {
548517
- columns: columns2
548528
+ columns
548518
548529
  } = useTerminalSize();
548519
548530
  let t1;
548520
548531
  bb0: {
@@ -548554,19 +548565,19 @@ function FileWriteToolDiff(t0) {
548554
548565
  }
548555
548566
  const firstLine = t2;
548556
548567
  let t3;
548557
- if ($3[6] !== columns2 || $3[7] !== content || $3[8] !== file_path || $3[9] !== firstLine || $3[10] !== hunks || $3[11] !== oldContent) {
548568
+ if ($3[6] !== columns || $3[7] !== content || $3[8] !== file_path || $3[9] !== firstLine || $3[10] !== hunks || $3[11] !== oldContent) {
548558
548569
  t3 = hunks ? intersperse(hunks.map((_2) => /* @__PURE__ */ jsx_dev_runtime391.jsxDEV(StructuredDiff, {
548559
548570
  patch: _2,
548560
548571
  dim: false,
548561
548572
  filePath: file_path,
548562
548573
  firstLine,
548563
548574
  fileContent: oldContent,
548564
- width: columns2 - 2
548575
+ width: columns - 2
548565
548576
  }, _2.newStart, false, undefined, this)), _temp180) : /* @__PURE__ */ jsx_dev_runtime391.jsxDEV(HighlightedCode, {
548566
548577
  code: content || "(No content)",
548567
548578
  filePath: file_path
548568
548579
  }, undefined, false, undefined, this);
548569
- $3[6] = columns2;
548580
+ $3[6] = columns;
548570
548581
  $3[7] = content;
548571
548582
  $3[8] = file_path;
548572
548583
  $3[9] = firstLine;
@@ -551177,7 +551188,7 @@ function ElicitationFormDialog({
551177
551188
  resolveAbortRef.current.clear();
551178
551189
  }, []);
551179
551190
  const {
551180
- columns: columns2,
551191
+ columns,
551181
551192
  rows
551182
551193
  } = useTerminalSize();
551183
551194
  const currentField = currentFieldIndex !== undefined ? schemaFields[currentFieldIndex] : undefined;
@@ -551850,7 +551861,7 @@ function ElicitationFormDialog({
551850
551861
  onChange: handleTextInputChange,
551851
551862
  onSubmit: handleTextInputSubmit,
551852
551863
  placeholder: `Type something…`,
551853
- columns: Math.min(columns2 - 20, 60),
551864
+ columns: Math.min(columns - 20, 60),
551854
551865
  cursorOffset: textInputCursorOffset,
551855
551866
  onChangeCursorOffset: setTextInputCursorOffset,
551856
551867
  focus: true,
@@ -561903,7 +561914,7 @@ function BackgroundTaskStatus(t0) {
561903
561914
  const isLeaderIdle = t2 === undefined ? false : t2;
561904
561915
  const setAppState = useSetAppState();
561905
561916
  const {
561906
- columns: columns2
561917
+ columns
561907
561918
  } = useTerminalSize();
561908
561919
  const tasks2 = useAppState(_temp195);
561909
561920
  const viewingAgentTaskId = useAppState(_temp281);
@@ -561979,7 +561990,7 @@ function BackgroundTaskStatus(t0) {
561979
561990
  t82 = $3[14];
561980
561991
  }
561981
561992
  const viewedIdx = t82;
561982
- const availableWidth = Math.max(20, columns2 - 20 - 4);
561993
+ const availableWidth = Math.max(20, columns - 20 - 4);
561983
561994
  const t92 = selectedIdx >= 0 ? selectedIdx : 0;
561984
561995
  let t102;
561985
561996
  if ($3[15] !== availableWidth || $3[16] !== pillWidths || $3[17] !== t92) {
@@ -562876,7 +562887,7 @@ function ModeIndicator({
562876
562887
  onOpenTasksDialog
562877
562888
  }) {
562878
562889
  const {
562879
- columns: columns2
562890
+ columns
562880
562891
  } = useTerminalSize();
562881
562892
  const modeCycleShortcut = useShortcutDisplay("chat:cycleMode", "Chat", "shift+tab");
562882
562893
  const tasks2 = useAppState((s) => s.tasks);
@@ -562924,7 +562935,7 @@ function ModeIndicator({
562924
562935
  const isViewingCompletedTeammate = isViewingTeammate && viewedTask != null && viewedTask.status !== "running";
562925
562936
  const hasBackgroundTasks = runningTaskCount > 0 || isViewingTeammate;
562926
562937
  const primaryItemCount = (isCoordinator || hasActiveMode ? 1 : 0) + (hasBackgroundTasks ? 1 : 0) + (hasTeams ? 1 : 0);
562927
- const shouldShowPrStatus = isPrStatusEnabled() && prStatus.number !== null && prStatus.reviewState !== null && prStatus.url !== null && primaryItemCount < 2 && (primaryItemCount === 0 || columns2 >= 80);
562938
+ const shouldShowPrStatus = isPrStatusEnabled() && prStatus.number !== null && prStatus.reviewState !== null && prStatus.url !== null && primaryItemCount < 2 && (primaryItemCount === 0 || columns >= 80);
562928
562939
  const shouldShowModeHint = primaryItemCount < 2;
562929
562940
  const hasInProcessTeammates = !showSpinnerTree && hasBackgroundTasks && Object.values(tasks2).some((t_1) => t_1.type === "in_process_teammate");
562930
562941
  const hasTeammatePills = hasInProcessTeammates || !showSpinnerTree && isViewingTeammate;
@@ -563208,13 +563219,13 @@ function PromptInputFooter({
563208
563219
  }) {
563209
563220
  const settings = useSettings();
563210
563221
  const {
563211
- columns: columns2,
563222
+ columns,
563212
563223
  rows
563213
563224
  } = useTerminalSize();
563214
563225
  const messagesRef = import_react254.useRef(messages);
563215
563226
  messagesRef.current = messages;
563216
563227
  const lastAssistantMessageId = import_react254.useMemo(() => getLastAssistantMessageId(messages), [messages]);
563217
- const isNarrow = columns2 < 80;
563228
+ const isNarrow = columns < 80;
563218
563229
  const isFullscreen = isFullscreenEnvEnabled();
563219
563230
  const isShort = isFullscreen && rows < 24;
563220
563231
  const coordinatorTaskCount = useCoordinatorTaskCount();
@@ -565275,10 +565286,10 @@ function PromptInput({
565275
565286
  useBuddyNotification();
565276
565287
  const companionSpeaking = false;
565277
565288
  const {
565278
- columns: columns2,
565289
+ columns,
565279
565290
  rows
565280
565291
  } = useTerminalSize();
565281
- const textInputColumns = columns2 - 3 - companionReservedColumns(columns2, companionSpeaking);
565292
+ const textInputColumns = columns - 3 - companionReservedColumns(columns, companionSpeaking);
565282
565293
  const maxVisibleLines = isFullscreenEnvEnabled() ? Math.max(MIN_INPUT_VIEWPORT_LINES, Math.floor(rows / 2) - PROMPT_FOOTER_LINES) : undefined;
565283
565294
  const handleInputClick = import_react259.useCallback((e) => {
565284
565295
  if (!input || isSearchingHistory)
@@ -565550,7 +565561,7 @@ function PromptInput({
565550
565561
  color: swarmBanner.bgColor,
565551
565562
  children: swarmBanner.text ? /* @__PURE__ */ jsx_dev_runtime435.jsxDEV(jsx_dev_runtime435.Fragment, {
565552
565563
  children: [
565553
- "─".repeat(Math.max(0, columns2 - stringWidth(swarmBanner.text) - 4)),
565564
+ "─".repeat(Math.max(0, columns - stringWidth(swarmBanner.text) - 4)),
565554
565565
  /* @__PURE__ */ jsx_dev_runtime435.jsxDEV(ThemedText, {
565555
565566
  backgroundColor: swarmBanner.bgColor,
565556
565567
  color: "inverseText",
@@ -565562,7 +565573,7 @@ function PromptInput({
565562
565573
  }, undefined, true, undefined, this),
565563
565574
  "──"
565564
565575
  ]
565565
- }, undefined, true, undefined, this) : "─".repeat(columns2)
565576
+ }, undefined, true, undefined, this) : "─".repeat(columns)
565566
565577
  }, undefined, false, undefined, this),
565567
565578
  /* @__PURE__ */ jsx_dev_runtime435.jsxDEV(ThemedBox_default, {
565568
565579
  flexDirection: "row",
@@ -565584,7 +565595,7 @@ function PromptInput({
565584
565595
  }, undefined, true, undefined, this),
565585
565596
  /* @__PURE__ */ jsx_dev_runtime435.jsxDEV(ThemedText, {
565586
565597
  color: swarmBanner.bgColor,
565587
- children: "─".repeat(columns2)
565598
+ children: "─".repeat(columns)
565588
565599
  }, undefined, false, undefined, this)
565589
565600
  ]
565590
565601
  }, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime435.jsxDEV(ThemedBox_default, {