@ainative/cody-cli 0.7.23 → 0.7.25

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 +226 -204
  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: "1775427403",
181027
+ buildTime: "1775445242",
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;
@@ -337696,7 +337696,7 @@ function TaskListV2({
337696
337696
  const [, forceUpdate] = React22.useState(0);
337697
337697
  const {
337698
337698
  rows,
337699
- columns: columns2
337699
+ columns
337700
337700
  } = useTerminalSize();
337701
337701
  const completionTimestampsRef = React22.useRef(new Map);
337702
337702
  const previousCompletedIdsRef = React22.useRef(null);
@@ -337829,7 +337829,7 @@ function TaskListV2({
337829
337829
  openBlockers: task_0.blockedBy.filter((id_3) => unresolvedTaskIds.has(id_3)),
337830
337830
  activity: task_0.owner ? teammateActivity[task_0.owner] : undefined,
337831
337831
  ownerActive: task_0.owner ? activeTeammates.has(task_0.owner) : false,
337832
- columns: columns2
337832
+ columns
337833
337833
  }, task_0.id, false, undefined, this)),
337834
337834
  maxDisplay > 0 && hiddenSummary && /* @__PURE__ */ jsx_dev_runtime62.jsxDEV(ThemedText, {
337835
337835
  dimColor: true,
@@ -337910,7 +337910,7 @@ function TaskItem(t0) {
337910
337910
  openBlockers,
337911
337911
  activity,
337912
337912
  ownerActive,
337913
- columns: columns2
337913
+ columns
337914
337914
  } = t0;
337915
337915
  const isCompleted = task.status === "completed";
337916
337916
  const isInProgress = task.status === "in_progress";
@@ -337928,7 +337928,7 @@ function TaskItem(t0) {
337928
337928
  color: color2
337929
337929
  } = t1;
337930
337930
  const showActivity = isInProgress && !isBlocked && activity;
337931
- const showOwner = columns2 >= 60 && task.owner && ownerActive;
337931
+ const showOwner = columns >= 60 && task.owner && ownerActive;
337932
337932
  let t2;
337933
337933
  if ($3[2] !== showOwner || $3[3] !== task.owner) {
337934
337934
  t2 = showOwner ? stringWidth(` (@${task.owner})`) : 0;
@@ -337939,7 +337939,7 @@ function TaskItem(t0) {
337939
337939
  t2 = $3[4];
337940
337940
  }
337941
337941
  const ownerWidth = t2;
337942
- const maxSubjectWidth = Math.max(15, columns2 - 15 - ownerWidth);
337942
+ const maxSubjectWidth = Math.max(15, columns - 15 - ownerWidth);
337943
337943
  let t3;
337944
337944
  if ($3[5] !== maxSubjectWidth || $3[6] !== task.subject) {
337945
337945
  t3 = truncateToWidth(task.subject, maxSubjectWidth);
@@ -337950,7 +337950,7 @@ function TaskItem(t0) {
337950
337950
  t3 = $3[7];
337951
337951
  }
337952
337952
  const displaySubject = t3;
337953
- const maxActivityWidth = Math.max(15, columns2 - 15);
337953
+ const maxActivityWidth = Math.max(15, columns - 15);
337954
337954
  let t4;
337955
337955
  if ($3[8] !== activity || $3[9] !== maxActivityWidth) {
337956
337956
  t4 = activity ? truncateToWidth(activity, maxActivityWidth) : undefined;
@@ -338997,7 +338997,7 @@ function SpinnerAnimationRow({
338997
338997
  pauseStartTimeRef,
338998
338998
  spinnerSuffix,
338999
338999
  verbose,
339000
- columns: columns2,
339000
+ columns,
339001
339001
  hasRunningTeammates,
339002
339002
  teammateTokens,
339003
339003
  foregroundedTeammate,
@@ -339057,7 +339057,7 @@ function SpinnerAnimationRow({
339057
339057
  const sep11 = SEP_WIDTH;
339058
339058
  const wantsThinking = thinkingStatus !== null;
339059
339059
  const wantsTimerAndTokens = verbose || hasRunningTeammates || effectiveElapsedMs > SHOW_TOKENS_AFTER_MS;
339060
- const availableSpace = columns2 - messageWidth - 5;
339060
+ const availableSpace = columns - messageWidth - 5;
339061
339061
  let showThinking = wantsThinking && availableSpace > thinkingWidthValue;
339062
339062
  if (!showThinking && wantsThinking && thinkingStatus === "thinking" && effortSuffix) {
339063
339063
  if (availableSpace > THINKING_BARE_WIDTH) {
@@ -343238,7 +343238,7 @@ function TeammateSpinnerLine({
343238
343238
  const treeChar = isHighlighted ? isLast ? "╘═" : "╞═" : isLast ? "└─" : "├─";
343239
343239
  const nameColor = toInkColor(teammate.identity.color);
343240
343240
  const {
343241
- columns: columns2
343241
+ columns
343242
343242
  } = useTerminalSize();
343243
343243
  const idleStartRef = import_react57.useRef(null);
343244
343244
  const frozenDurationRef = import_react57.useRef(null);
@@ -343269,10 +343269,10 @@ function TeammateSpinnerLine({
343269
343269
  const viewHintText = " · enter to view";
343270
343270
  const viewHintWidth = stringWidth(viewHintText);
343271
343271
  const minActivityWidth = 25;
343272
- const spaceWithFullName = columns2 - basePrefix - fullNameWidth - 2;
343273
- const showName = columns2 >= 60 && spaceWithFullName >= minActivityWidth;
343272
+ const spaceWithFullName = columns - basePrefix - fullNameWidth - 2;
343273
+ const showName = columns >= 60 && spaceWithFullName >= minActivityWidth;
343274
343274
  const nameWidth = showName ? fullNameWidth + 2 : 0;
343275
- const availableForActivity = columns2 - basePrefix - nameWidth;
343275
+ const availableForActivity = columns - basePrefix - nameWidth;
343276
343276
  const showViewHint = isSelected && !isForegrounded && availableForActivity > viewHintWidth + statsWidth + minActivityWidth + 5;
343277
343277
  const showSelectHint = isHighlighted && availableForActivity > selectHintWidth + (showViewHint ? viewHintWidth : 0) + statsWidth + minActivityWidth + 5;
343278
343278
  const showStats = availableForActivity > statsWidth + minActivityWidth + 5;
@@ -343832,7 +343832,7 @@ function SpinnerWithVerbInner({
343832
343832
  tasks
343833
343833
  }) : undefined;
343834
343834
  const {
343835
- columns: columns2
343835
+ columns
343836
343836
  } = useTerminalSize();
343837
343837
  const tasksV2 = useTasksV2();
343838
343838
  const [thinkingStatus, setThinkingStatus] = import_react58.useState(null);
@@ -343987,7 +343987,7 @@ function SpinnerWithVerbInner({
343987
343987
  pauseStartTimeRef,
343988
343988
  spinnerSuffix,
343989
343989
  verbose,
343990
- columns: columns2,
343990
+ columns,
343991
343991
  hasRunningTeammates,
343992
343992
  teammateTokens,
343993
343993
  foregroundedTeammate,
@@ -344036,7 +344036,7 @@ function BriefIdleStatus() {
344036
344036
  const connStatus = useAppState(_temp73);
344037
344037
  const runningCount = useAppState(_temp82);
344038
344038
  const {
344039
- columns: columns2
344039
+ columns
344040
344040
  } = useTerminalSize();
344041
344041
  const showConnWarning = connStatus === "reconnecting" || connStatus === "disconnected";
344042
344042
  const connText = connStatus === "reconnecting" ? "Reconnecting…" : "Disconnected";
@@ -344054,7 +344054,7 @@ function BriefIdleStatus() {
344054
344054
  }
344055
344055
  return t02;
344056
344056
  }
344057
- const pad = Math.max(1, columns2 - 2 - stringWidth(leftText) - stringWidth(rightText));
344057
+ const pad = Math.max(1, columns - 2 - stringWidth(leftText) - stringWidth(rightText));
344058
344058
  let t0;
344059
344059
  if ($3[1] !== leftText) {
344060
344060
  t0 = leftText ? /* @__PURE__ */ jsx_dev_runtime70.jsxDEV(ThemedText, {
@@ -344825,7 +344825,7 @@ function OAuthStatusMessage(t0) {
344825
344825
  return t8;
344826
344826
  }
344827
344827
  case "api_key_input": {
344828
- const apiKeyColumns = columns - 22;
344828
+ const apiKeyColumns = textInputColumns;
344829
344829
  return /* @__PURE__ */ jsx_dev_runtime71.jsxDEV(ThemedBox_default, {
344830
344830
  flexDirection: "column",
344831
344831
  gap: 1,
@@ -352534,7 +352534,7 @@ function StopHookSummaryMessage(t0) {
352534
352534
  stopReason
352535
352535
  } = message;
352536
352536
  const {
352537
- columns: columns2
352537
+ columns
352538
352538
  } = useTerminalSize();
352539
352539
  let t1;
352540
352540
  if ($3[0] !== hookInfos || $3[1] !== message.totalDurationMs) {
@@ -352625,7 +352625,7 @@ function StopHookSummaryMessage(t0) {
352625
352625
  } else {
352626
352626
  t4 = $3[16];
352627
352627
  }
352628
- const t5 = columns2 - 10;
352628
+ const t5 = columns - 10;
352629
352629
  let t6;
352630
352630
  if ($3[17] !== hookCount) {
352631
352631
  t6 = /* @__PURE__ */ jsx_dev_runtime105.jsxDEV(ThemedText, {
@@ -352798,7 +352798,7 @@ function SystemTextMessageInner(t0) {
352798
352798
  dimColor
352799
352799
  } = t0;
352800
352800
  const {
352801
- columns: columns2
352801
+ columns
352802
352802
  } = useTerminalSize();
352803
352803
  const bg = useSelectedMessageBg();
352804
352804
  const t1 = addMargin ? 1 : 0;
@@ -352819,7 +352819,7 @@ function SystemTextMessageInner(t0) {
352819
352819
  } else {
352820
352820
  t2 = $3[3];
352821
352821
  }
352822
- const t3 = columns2 - 10;
352822
+ const t3 = columns - 10;
352823
352823
  let t4;
352824
352824
  if ($3[4] !== content) {
352825
352825
  t4 = content.trim();
@@ -353508,7 +353508,7 @@ function UserToolRejectMessage(t0) {
353508
353508
  isTranscriptMode
353509
353509
  } = t0;
353510
353510
  const {
353511
- columns: columns2
353511
+ columns
353512
353512
  } = useTerminalSize();
353513
353513
  const [theme] = useTheme();
353514
353514
  if (!tool || !tool.renderToolUseRejectedMessage) {
@@ -353524,7 +353524,7 @@ function UserToolRejectMessage(t0) {
353524
353524
  const t1 = tool.inputSchema;
353525
353525
  let t2;
353526
353526
  let t3;
353527
- 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) {
353528
353528
  t3 = Symbol.for("react.early_return_sentinel");
353529
353529
  bb0: {
353530
353530
  const parsedInput = t1.safeParse(input);
@@ -353540,7 +353540,7 @@ function UserToolRejectMessage(t0) {
353540
353540
  break bb0;
353541
353541
  }
353542
353542
  t2 = tool.renderToolUseRejectedMessage(parsedInput.data, {
353543
- columns: columns2,
353543
+ columns,
353544
353544
  messages: [],
353545
353545
  tools,
353546
353546
  verbose,
@@ -353550,7 +353550,7 @@ function UserToolRejectMessage(t0) {
353550
353550
  isTranscriptMode
353551
353551
  }) ?? /* @__PURE__ */ jsx_dev_runtime110.jsxDEV(FallbackToolUseRejectedMessage, {}, undefined, false, undefined, this);
353552
353552
  }
353553
- $3[1] = columns2;
353553
+ $3[1] = columns;
353554
353554
  $3[2] = input;
353555
353555
  $3[3] = isTranscriptMode;
353556
353556
  $3[4] = progressMessagesForMessage;
@@ -354203,7 +354203,7 @@ function UserMessage(t0) {
354203
354203
  isTranscriptMode
354204
354204
  } = t0;
354205
354205
  const {
354206
- columns: columns2
354206
+ columns
354207
354207
  } = useTerminalSize();
354208
354208
  switch (param.type) {
354209
354209
  case "text": {
@@ -354246,7 +354246,7 @@ function UserMessage(t0) {
354246
354246
  return t2;
354247
354247
  }
354248
354248
  case "tool_result": {
354249
- const t1 = columns2 - 5;
354249
+ const t1 = columns - 5;
354250
354250
  let t2;
354251
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) {
354252
354252
  t2 = /* @__PURE__ */ jsx_dev_runtime114.jsxDEV(UserToolResultMessage, {
@@ -378687,7 +378687,7 @@ function FileEditToolUseRejectedMessage(t0) {
378687
378687
  verbose
378688
378688
  } = t0;
378689
378689
  const {
378690
- columns: columns2
378690
+ columns
378691
378691
  } = useTerminalSize();
378692
378692
  let t1;
378693
378693
  if ($3[0] !== operation) {
@@ -378774,7 +378774,7 @@ function FileEditToolUseRejectedMessage(t0) {
378774
378774
  }
378775
378775
  const truncatedContent = t52;
378776
378776
  const t62 = truncatedContent || "(No content)";
378777
- const t72 = columns2 - 12;
378777
+ const t72 = columns - 12;
378778
378778
  let t8;
378779
378779
  if ($3[16] !== file_path || $3[17] !== t62 || $3[18] !== t72) {
378780
378780
  t8 = /* @__PURE__ */ jsx_dev_runtime129.jsxDEV(HighlightedCode, {
@@ -378840,7 +378840,7 @@ function FileEditToolUseRejectedMessage(t0) {
378840
378840
  }
378841
378841
  return t52;
378842
378842
  }
378843
- const t5 = columns2 - 12;
378843
+ const t5 = columns - 12;
378844
378844
  let t6;
378845
378845
  if ($3[29] !== fileContent || $3[30] !== file_path || $3[31] !== firstLine || $3[32] !== patch || $3[33] !== t5) {
378846
378846
  t6 = /* @__PURE__ */ jsx_dev_runtime129.jsxDEV(StructuredDiffList, {
@@ -378904,7 +378904,7 @@ function FileEditToolUpdatedMessage(t0) {
378904
378904
  previewHint
378905
378905
  } = t0;
378906
378906
  const {
378907
- columns: columns2
378907
+ columns
378908
378908
  } = useTerminalSize();
378909
378909
  const numAdditions = structuredPatch2.reduce(_temp211, 0);
378910
378910
  const numRemovals = structuredPatch2.reduce(_temp46, 0);
@@ -378996,7 +378996,7 @@ function FileEditToolUpdatedMessage(t0) {
378996
378996
  } else {
378997
378997
  t5 = $3[12];
378998
378998
  }
378999
- const t6 = columns2 - 12;
378999
+ const t6 = columns - 12;
379000
379000
  let t7;
379001
379001
  if ($3[13] !== fileContent || $3[14] !== filePath || $3[15] !== firstLine || $3[16] !== structuredPatch2 || $3[17] !== t6) {
379002
379002
  t7 = /* @__PURE__ */ jsx_dev_runtime130.jsxDEV(StructuredDiffList, {
@@ -380275,7 +380275,7 @@ function FileWriteToolCreatedMessage(t0) {
380275
380275
  verbose
380276
380276
  } = t0;
380277
380277
  const {
380278
- columns: columns2
380278
+ columns
380279
380279
  } = useTerminalSize();
380280
380280
  const contentWithFallback = content || "(No content)";
380281
380281
  const numLines = countLines(content);
@@ -380339,7 +380339,7 @@ function FileWriteToolCreatedMessage(t0) {
380339
380339
  } else {
380340
380340
  t5 = $3[12];
380341
380341
  }
380342
- const t6 = columns2 - 12;
380342
+ const t6 = columns - 12;
380343
380343
  let t7;
380344
380344
  if ($3[13] !== filePath || $3[14] !== t5 || $3[15] !== t6) {
380345
380345
  t7 = /* @__PURE__ */ jsx_dev_runtime132.jsxDEV(ThemedBox_default, {
@@ -419007,7 +419007,7 @@ function getAnthropicEnvMetadata() {
419007
419007
  function getBuildAgeMinutes() {
419008
419008
  if (false)
419009
419009
  ;
419010
- const buildTime = new Date("1775427403").getTime();
419010
+ const buildTime = new Date("1775445242").getTime();
419011
419011
  if (isNaN(buildTime))
419012
419012
  return;
419013
419013
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -438853,8 +438853,8 @@ class Cursor {
438853
438853
  this.selection = selection;
438854
438854
  this.offset = Math.max(0, Math.min(this.text.length, offset));
438855
438855
  }
438856
- static fromText(text2, columns2, offset = 0, selection = 0) {
438857
- 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);
438858
438858
  }
438859
438859
  getViewportStartLine(maxVisibleLines) {
438860
438860
  if (maxVisibleLines === undefined || maxVisibleLines <= 0)
@@ -439509,8 +439509,8 @@ class MeasuredText {
439509
439509
  text;
439510
439510
  navigationCache;
439511
439511
  graphemeBoundaries;
439512
- constructor(text2, columns2) {
439513
- this.columns = columns2;
439512
+ constructor(text2, columns) {
439513
+ this.columns = columns;
439514
439514
  this.text = text2.normalize("NFC");
439515
439515
  this.navigationCache = new Map;
439516
439516
  }
@@ -439822,7 +439822,7 @@ function useTextInput({
439822
439822
  multiline = false,
439823
439823
  cursorChar,
439824
439824
  invert,
439825
- columns: columns2,
439825
+ columns,
439826
439826
  onImagePaste: _onImagePaste,
439827
439827
  disableCursorMovementForUpDownKeys = false,
439828
439828
  disableEscapeDoublePress = false,
@@ -439838,7 +439838,7 @@ function useTextInput({
439838
439838
  }
439839
439839
  const offset = externalOffset;
439840
439840
  const setOffset = onOffsetChange;
439841
- const cursor = Cursor.fromText(originalValue, columns2, offset);
439841
+ const cursor = Cursor.fromText(originalValue, columns, offset);
439842
439842
  const { addNotification, removeNotification } = useNotifications();
439843
439843
  const handleCtrlC = useDoublePress((show) => {
439844
439844
  onExitMessage?.(show, "Ctrl-C");
@@ -439925,7 +439925,7 @@ function useTextInput({
439925
439925
  const newText = before + text2 + after;
439926
439926
  const newOffset = start + text2.length;
439927
439927
  updateYankLength(text2.length);
439928
- return Cursor.fromText(newText, columns2, newOffset);
439928
+ return Cursor.fromText(newText, columns, newOffset);
439929
439929
  }
439930
439930
  const handleCtrl = mapInput([
439931
439931
  ["a", () => cursor.startOfLine()],
@@ -441081,7 +441081,7 @@ var init_PromptInputFooterSuggestions = __esm(() => {
441081
441081
  maxColumnWidth,
441082
441082
  isSelected
441083
441083
  } = t0;
441084
- const columns2 = useTerminalSize().columns;
441084
+ const columns = useTerminalSize().columns;
441085
441085
  const isUnified = isUnifiedSuggestion(item.id);
441086
441086
  if (isUnified) {
441087
441087
  let t12;
@@ -441109,7 +441109,7 @@ var init_PromptInputFooterSuggestions = __esm(() => {
441109
441109
  t23 = $3[3];
441110
441110
  }
441111
441111
  const descReserve = t23;
441112
- const maxPathLength = columns2 - 2 - 4 - separatorWidth - descReserve;
441112
+ const maxPathLength = columns - 2 - 4 - separatorWidth - descReserve;
441113
441113
  let t32;
441114
441114
  if ($3[4] !== item.displayText || $3[5] !== maxPathLength) {
441115
441115
  t32 = truncatePathMiddle(item.displayText, maxPathLength);
@@ -441135,7 +441135,7 @@ var init_PromptInputFooterSuggestions = __esm(() => {
441135
441135
  displayText = item.displayText;
441136
441136
  }
441137
441137
  }
441138
- const availableWidth = columns2 - 2 - stringWidth(displayText) - separatorWidth - 4;
441138
+ const availableWidth = columns - 2 - stringWidth(displayText) - separatorWidth - 4;
441139
441139
  let lineContent;
441140
441140
  if (item.description) {
441141
441141
  const maxDescLength = Math.max(0, availableWidth);
@@ -441170,7 +441170,7 @@ var init_PromptInputFooterSuggestions = __esm(() => {
441170
441170
  }
441171
441171
  return t22;
441172
441172
  }
441173
- const maxNameWidth = Math.floor(columns2 * 0.4);
441173
+ const maxNameWidth = Math.floor(columns * 0.4);
441174
441174
  const displayTextWidth = Math.min(maxColumnWidth ?? stringWidth(item.displayText) + 5, maxNameWidth);
441175
441175
  const textColor_0 = item.color || (isSelected ? "suggestion" : undefined);
441176
441176
  const shouldDim = !isSelected;
@@ -441191,7 +441191,7 @@ var init_PromptInputFooterSuggestions = __esm(() => {
441191
441191
  const paddedDisplayText = displayText_0 + " ".repeat(Math.max(0, displayTextWidth - stringWidth(displayText_0)));
441192
441192
  const tagText = item.tag ? `[${item.tag}] ` : "";
441193
441193
  const tagWidth = stringWidth(tagText);
441194
- const descriptionWidth = Math.max(0, columns2 - displayTextWidth - tagWidth - 4);
441194
+ const descriptionWidth = Math.max(0, columns - displayTextWidth - tagWidth - 4);
441195
441195
  let t1;
441196
441196
  if ($3[19] !== descriptionWidth || $3[20] !== item.description) {
441197
441197
  t1 = item.description ? truncateToWidth(item.description.replace(/\s+/g, " "), descriptionWidth) : "";
@@ -446271,7 +446271,7 @@ function ThemePicker(t0) {
446271
446271
  const [theme] = useTheme();
446272
446272
  const themeSetting = useThemeSetting();
446273
446273
  const {
446274
- columns: columns2
446274
+ columns
446275
446275
  } = useTerminalSize();
446276
446276
  let t6;
446277
446277
  if ($3[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -446498,7 +446498,7 @@ function ThemePicker(t0) {
446498
446498
  t20 = $3[34];
446499
446499
  }
446500
446500
  let t21;
446501
- if ($3[35] !== columns2) {
446501
+ if ($3[35] !== columns) {
446502
446502
  t21 = /* @__PURE__ */ jsx_dev_runtime171.jsxDEV(ThemedBox_default, {
446503
446503
  flexDirection: "column",
446504
446504
  borderTop: true,
@@ -446512,10 +446512,10 @@ function ThemePicker(t0) {
446512
446512
  dim: false,
446513
446513
  filePath: "demo.js",
446514
446514
  firstLine: null,
446515
- width: columns2
446515
+ width: columns
446516
446516
  }, undefined, false, undefined, this)
446517
446517
  }, undefined, false, undefined, this);
446518
- $3[35] = columns2;
446518
+ $3[35] = columns;
446519
446519
  $3[36] = t21;
446520
446520
  } else {
446521
446521
  t21 = $3[36];
@@ -448000,13 +448000,13 @@ function useSearchInput({
448000
448000
  onExit: onExit2,
448001
448001
  onCancel,
448002
448002
  onExitUp,
448003
- columns: columns2,
448003
+ columns,
448004
448004
  passthroughCtrlKeys = [],
448005
448005
  initialQuery = "",
448006
448006
  backspaceExitsOnEmpty = true
448007
448007
  }) {
448008
448008
  const { columns: terminalColumns } = useTerminalSize();
448009
- const effectiveColumns = columns2 ?? terminalColumns;
448009
+ const effectiveColumns = columns ?? terminalColumns;
448010
448010
  const [query2, setQueryState] = import_react104.useState(initialQuery);
448011
448011
  const [cursorOffset, setCursorOffset] = import_react104.useState(initialQuery.length);
448012
448012
  const setQuery = import_react104.useCallback((q2) => {
@@ -450419,9 +450419,9 @@ function Usage() {
450419
450419
  const [error43, setError] = import_react107.useState(null);
450420
450420
  const [isLoading, setIsLoading] = import_react107.useState(true);
450421
450421
  const {
450422
- columns: columns2
450422
+ columns
450423
450423
  } = useTerminalSize();
450424
- const availableWidth = columns2 - 2;
450424
+ const availableWidth = columns - 2;
450425
450425
  const maxWidth = Math.min(availableWidth, 80);
450426
450426
  const loadUtilization = React53.useCallback(async () => {
450427
450427
  setIsLoading(true);
@@ -452002,12 +452002,12 @@ function extractFirstFrame(output) {
452002
452002
  return output;
452003
452003
  return output.slice(contentStart, endIndex);
452004
452004
  }
452005
- function renderToAnsiString(node, columns2) {
452005
+ function renderToAnsiString(node, columns) {
452006
452006
  return new Promise(async (resolve37) => {
452007
452007
  let output = "";
452008
452008
  const stream4 = new PassThrough3;
452009
- if (columns2 !== undefined) {
452010
- stream4.columns = columns2;
452009
+ if (columns !== undefined) {
452010
+ stream4.columns = columns;
452011
452011
  }
452012
452012
  stream4.on("data", (chunk) => {
452013
452013
  output += chunk.toString();
@@ -452022,8 +452022,8 @@ function renderToAnsiString(node, columns2) {
452022
452022
  await resolve37(extractFirstFrame(output));
452023
452023
  });
452024
452024
  }
452025
- async function renderToString(node, columns2) {
452026
- const output = await renderToAnsiString(node, columns2);
452025
+ async function renderToString(node, columns) {
452026
+ const output = await renderToAnsiString(node, columns);
452027
452027
  return stripAnsi(output);
452028
452028
  }
452029
452029
  var import_compiler_runtime148, import_react109, jsx_dev_runtime186, SYNC_START = "\x1B[?2026h", SYNC_END = "\x1B[?2026l";
@@ -452542,7 +452542,7 @@ function DiffDetailView(t0) {
452542
452542
  isUntracked
452543
452543
  } = t0;
452544
452544
  const {
452545
- columns: columns2
452545
+ columns
452546
452546
  } = useTerminalSize();
452547
452547
  let t1;
452548
452548
  bb0: {
@@ -452845,7 +452845,7 @@ function DiffDetailView(t0) {
452845
452845
  t5 = $3[38];
452846
452846
  }
452847
452847
  let t6;
452848
- 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) {
452849
452849
  t6 = hunks.length === 0 ? /* @__PURE__ */ jsx_dev_runtime188.jsxDEV(ThemedText, {
452850
452850
  dimColor: true,
452851
452851
  children: "No diff content"
@@ -452855,9 +452855,9 @@ function DiffDetailView(t0) {
452855
452855
  firstLine,
452856
452856
  fileContent,
452857
452857
  dim: false,
452858
- width: columns2 - 2 - 2
452858
+ width: columns - 2 - 2
452859
452859
  }, index, false, undefined, this));
452860
- $3[39] = columns2;
452860
+ $3[39] = columns;
452861
452861
  $3[40] = fileContent;
452862
452862
  $3[41] = filePath;
452863
452863
  $3[42] = firstLine;
@@ -452930,7 +452930,7 @@ function DiffFileList(t0) {
452930
452930
  selectedIndex
452931
452931
  } = t0;
452932
452932
  const {
452933
- columns: columns2
452933
+ columns
452934
452934
  } = useTerminalSize();
452935
452935
  let t1;
452936
452936
  bb0: {
@@ -452992,12 +452992,12 @@ function DiffFileList(t0) {
452992
452992
  let t2;
452993
452993
  let t3;
452994
452994
  let t4;
452995
- 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) {
452996
452996
  const visibleFiles = files.slice(startIndex, endIndex);
452997
452997
  const hasMoreAbove = startIndex > 0;
452998
452998
  hasMoreBelow = endIndex < files.length;
452999
452999
  needsPagination = files.length > MAX_VISIBLE_FILES;
453000
- const maxPathWidth = Math.max(20, columns2 - 16 - 3 - 4);
453000
+ const maxPathWidth = Math.max(20, columns - 16 - 3 - 4);
453001
453001
  T0 = ThemedBox_default;
453002
453002
  t2 = "column";
453003
453003
  if ($3[17] !== hasMoreAbove || $3[18] !== needsPagination || $3[19] !== startIndex) {
@@ -453027,7 +453027,7 @@ function DiffFileList(t0) {
453027
453027
  t52 = $3[24];
453028
453028
  }
453029
453029
  t4 = visibleFiles.map(t52);
453030
- $3[6] = columns2;
453030
+ $3[6] = columns;
453031
453031
  $3[7] = endIndex;
453032
453032
  $3[8] = files;
453033
453033
  $3[9] = selectedIndex;
@@ -456861,7 +456861,7 @@ function Commands(t0) {
456861
456861
  const {
456862
456862
  commands,
456863
456863
  maxHeight,
456864
- columns: columns2,
456864
+ columns,
456865
456865
  title,
456866
456866
  onCancel,
456867
456867
  emptyMessage
@@ -456870,7 +456870,7 @@ function Commands(t0) {
456870
456870
  headerFocused,
456871
456871
  focusHeader
456872
456872
  } = useTabHeaderFocus();
456873
- const maxWidth = Math.max(1, columns2 - 10);
456873
+ const maxWidth = Math.max(1, columns - 10);
456874
456874
  const visibleCount = Math.max(1, Math.floor((maxHeight - 10) / 2));
456875
456875
  let t1;
456876
456876
  if ($3[0] !== commands || $3[1] !== maxWidth) {
@@ -457559,7 +457559,7 @@ function HelpV2(t0) {
457559
457559
  } = t0;
457560
457560
  const {
457561
457561
  rows,
457562
- columns: columns2
457562
+ columns
457563
457563
  } = useTerminalSize();
457564
457564
  const maxHeight = Math.floor(rows / 2);
457565
457565
  const insideModal = useIsInsideModal();
@@ -457622,23 +457622,23 @@ function HelpV2(t0) {
457622
457622
  t4 = $3[8];
457623
457623
  }
457624
457624
  let tabs;
457625
- 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) {
457626
457626
  tabs = [t4];
457627
457627
  let t52;
457628
- 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) {
457629
457629
  t52 = /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Tab, {
457630
457630
  title: "commands",
457631
457631
  children: /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Commands, {
457632
457632
  commands: builtinCommands,
457633
457633
  maxHeight,
457634
- columns: columns2,
457634
+ columns,
457635
457635
  title: "Browse default commands:",
457636
457636
  onCancel: close
457637
457637
  }, undefined, false, undefined, this)
457638
457638
  }, "commands", false, undefined, this);
457639
457639
  $3[16] = builtinCommands;
457640
457640
  $3[17] = close;
457641
- $3[18] = columns2;
457641
+ $3[18] = columns;
457642
457642
  $3[19] = maxHeight;
457643
457643
  $3[20] = t52;
457644
457644
  } else {
@@ -457646,20 +457646,20 @@ function HelpV2(t0) {
457646
457646
  }
457647
457647
  tabs.push(t52);
457648
457648
  let t62;
457649
- 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) {
457650
457650
  t62 = /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Tab, {
457651
457651
  title: "custom-commands",
457652
457652
  children: /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Commands, {
457653
457653
  commands: customCommands,
457654
457654
  maxHeight,
457655
- columns: columns2,
457655
+ columns,
457656
457656
  title: "Browse custom commands:",
457657
457657
  emptyMessage: "No custom commands found",
457658
457658
  onCancel: close
457659
457659
  }, undefined, false, undefined, this)
457660
457660
  }, "custom", false, undefined, this);
457661
457661
  $3[21] = close;
457662
- $3[22] = columns2;
457662
+ $3[22] = columns;
457663
457663
  $3[23] = customCommands;
457664
457664
  $3[24] = maxHeight;
457665
457665
  $3[25] = t62;
@@ -457671,7 +457671,7 @@ function HelpV2(t0) {
457671
457671
  $3[9] = antOnlyCommands;
457672
457672
  $3[10] = builtinCommands;
457673
457673
  $3[11] = close;
457674
- $3[12] = columns2;
457674
+ $3[12] = columns;
457675
457675
  $3[13] = customCommands;
457676
457676
  $3[14] = maxHeight;
457677
457677
  $3[15] = tabs;
@@ -482933,24 +482933,24 @@ var init_transcriptSearch = __esm(() => {
482933
482933
  });
482934
482934
 
482935
482935
  // src/utils/logoV2Utils.ts
482936
- function getLayoutMode(columns2) {
482937
- if (columns2 >= 70)
482936
+ function getLayoutMode(columns) {
482937
+ if (columns >= 70)
482938
482938
  return "horizontal";
482939
482939
  return "compact";
482940
482940
  }
482941
- function calculateLayoutDimensions(columns2, layoutMode, optimalLeftWidth) {
482941
+ function calculateLayoutDimensions(columns, layoutMode, optimalLeftWidth) {
482942
482942
  if (layoutMode === "horizontal") {
482943
482943
  const leftWidth = optimalLeftWidth;
482944
482944
  const usedSpace = BORDER_PADDING + CONTENT_PADDING + DIVIDER_WIDTH + leftWidth;
482945
- const availableForRight = columns2 - usedSpace;
482945
+ const availableForRight = columns - usedSpace;
482946
482946
  let rightWidth = Math.max(30, availableForRight);
482947
- 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);
482948
482948
  if (totalWidth2 < leftWidth + rightWidth + DIVIDER_WIDTH + CONTENT_PADDING) {
482949
482949
  rightWidth = totalWidth2 - leftWidth - DIVIDER_WIDTH - CONTENT_PADDING;
482950
482950
  }
482951
482951
  return { leftWidth, rightWidth, totalWidth: totalWidth2 };
482952
482952
  }
482953
- const totalWidth = Math.min(columns2 - BORDER_PADDING, MAX_LEFT_WIDTH + 20);
482953
+ const totalWidth = Math.min(columns - BORDER_PADDING, MAX_LEFT_WIDTH + 20);
482954
482954
  return {
482955
482955
  leftWidth: totalWidth,
482956
482956
  rightWidth: totalWidth,
@@ -483992,7 +483992,7 @@ var init_GuestPassesUpsell = __esm(() => {
483992
483992
  function CondensedLogo() {
483993
483993
  const $3 = import_compiler_runtime199.c(29);
483994
483994
  const {
483995
- columns: columns2
483995
+ columns
483996
483996
  } = useTerminalSize();
483997
483997
  const agent = useAppState(_temp114);
483998
483998
  const effortValue = useAppState(_temp243);
@@ -484042,7 +484042,7 @@ function CondensedLogo() {
484042
484042
  t3 = $3[6];
484043
484043
  }
484044
484044
  import_react144.useEffect(t2, t3);
484045
- const textWidth = Math.max(columns2 - 15, 20);
484045
+ const textWidth = Math.max(columns - 15, 20);
484046
484046
  const truncatedVersion = truncate(version6, Math.max(textWidth - 13, 6));
484047
484047
  const effortSuffix = getEffortSuffix(model, effortValue);
484048
484048
  const {
@@ -484407,7 +484407,7 @@ function LogoV2() {
484407
484407
  const activities = getRecentActivitySync();
484408
484408
  const username = getGlobalConfig().oauthAccount?.displayName ?? "";
484409
484409
  const {
484410
- columns: columns2
484410
+ columns
484411
484411
  } = useTerminalSize();
484412
484412
  let t0;
484413
484413
  if ($3[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -484667,13 +484667,13 @@ function LogoV2() {
484667
484667
  }
484668
484668
  return t232;
484669
484669
  }
484670
- const layoutMode = getLayoutMode(columns2);
484670
+ const layoutMode = getLayoutMode(columns);
484671
484671
  const userTheme = resolveThemeSetting(getGlobalConfig().theme);
484672
484672
  const borderTitle = ` ${color("claude", userTheme)("Cody CLI")} ${color("inactive", userTheme)(`v${version6}`)} `;
484673
484673
  const compactBorderTitle = color("claude", userTheme)(" Cody CLI ");
484674
484674
  if (layoutMode === "compact") {
484675
484675
  let welcomeMessage = formatWelcomeMessage(username);
484676
- if (stringWidth(welcomeMessage) > columns2 - 4) {
484676
+ if (stringWidth(welcomeMessage) > columns - 4) {
484677
484677
  let t113;
484678
484678
  if ($3[31] === Symbol.for("react.memo_cache_sentinel")) {
484679
484679
  t113 = formatWelcomeMessage(null);
@@ -484683,7 +484683,7 @@ function LogoV2() {
484683
484683
  }
484684
484684
  welcomeMessage = t113;
484685
484685
  }
484686
- const cwdAvailableWidth = agentName ? columns2 - 4 - 1 - stringWidth(agentName) - 3 : columns2 - 4;
484686
+ const cwdAvailableWidth = agentName ? columns - 4 - 1 - stringWidth(agentName) - 3 : columns - 4;
484687
484687
  const truncatedCwd = truncatePath(cwd2, Math.max(cwdAvailableWidth, 10));
484688
484688
  let t112;
484689
484689
  if ($3[32] !== compactBorderTitle) {
@@ -484771,7 +484771,7 @@ function LogoV2() {
484771
484771
  paddingX: 1,
484772
484772
  paddingY: 1,
484773
484773
  alignItems: "center",
484774
- width: columns2,
484774
+ width: columns,
484775
484775
  children: [
484776
484776
  /* @__PURE__ */ jsx_dev_runtime256.jsxDEV(ThemedText, {
484777
484777
  bold: true,
@@ -484808,7 +484808,7 @@ function LogoV2() {
484808
484808
  const {
484809
484809
  leftWidth,
484810
484810
  rightWidth
484811
- } = calculateLayoutDimensions(columns2, layoutMode, optimalLeftWidth);
484811
+ } = calculateLayoutDimensions(columns, layoutMode, optimalLeftWidth);
484812
484812
  const T0 = OffscreenFreeze;
484813
484813
  const T1 = ThemedBox_default;
484814
484814
  const t11 = "column";
@@ -485346,7 +485346,7 @@ function MessageRowImpl(t0) {
485346
485346
  onOpenRateLimitOptions,
485347
485347
  lastThinkingBlockId,
485348
485348
  latestBashOutputUUID,
485349
- columns: columns2,
485349
+ columns,
485350
485350
  isLoading,
485351
485351
  lookups
485352
485352
  } = t0;
@@ -485467,7 +485467,7 @@ function MessageRowImpl(t0) {
485467
485467
  }
485468
485468
  const hasMetadata = t5;
485469
485469
  const t6 = !hasMetadata;
485470
- const t7 = hasMetadata ? undefined : columns2;
485470
+ const t7 = hasMetadata ? undefined : columns;
485471
485471
  let t8;
485472
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) {
485473
485473
  t8 = /* @__PURE__ */ jsx_dev_runtime259.jsxDEV(Message, {
@@ -485550,10 +485550,10 @@ function MessageRowImpl(t0) {
485550
485550
  t9 = $3[59];
485551
485551
  }
485552
485552
  let t10;
485553
- if ($3[60] !== columns2 || $3[61] !== messageEl || $3[62] !== t9) {
485553
+ if ($3[60] !== columns || $3[61] !== messageEl || $3[62] !== t9) {
485554
485554
  t10 = /* @__PURE__ */ jsx_dev_runtime259.jsxDEV(OffscreenFreeze, {
485555
485555
  children: /* @__PURE__ */ jsx_dev_runtime259.jsxDEV(ThemedBox_default, {
485556
- width: columns2,
485556
+ width: columns,
485557
485557
  flexDirection: "column",
485558
485558
  children: [
485559
485559
  t9,
@@ -485561,7 +485561,7 @@ function MessageRowImpl(t0) {
485561
485561
  ]
485562
485562
  }, undefined, true, undefined, this)
485563
485563
  }, undefined, false, undefined, this);
485564
- $3[60] = columns2;
485564
+ $3[60] = columns;
485565
485565
  $3[61] = messageEl;
485566
485566
  $3[62] = t9;
485567
485567
  $3[63] = t10;
@@ -486035,7 +486035,7 @@ var init_StatusNotices = __esm(() => {
486035
486035
  });
486036
486036
 
486037
486037
  // src/hooks/useVirtualScroll.ts
486038
- function useVirtualScroll(scrollRef, itemKeys, columns2) {
486038
+ function useVirtualScroll(scrollRef, itemKeys, columns) {
486039
486039
  const heightCache = import_react151.useRef(new Map);
486040
486040
  const offsetVersionRef = import_react151.useRef(0);
486041
486041
  const lastScrollTopRef = import_react151.useRef(0);
@@ -486046,13 +486046,13 @@ function useVirtualScroll(scrollRef, itemKeys, columns2) {
486046
486046
  });
486047
486047
  const itemRefs = import_react151.useRef(new Map);
486048
486048
  const refCache = import_react151.useRef(new Map);
486049
- const prevColumns = import_react151.useRef(columns2);
486049
+ const prevColumns = import_react151.useRef(columns);
486050
486050
  const skipMeasurementRef = import_react151.useRef(false);
486051
486051
  const prevRangeRef = import_react151.useRef(null);
486052
486052
  const freezeRendersRef = import_react151.useRef(0);
486053
- if (prevColumns.current !== columns2) {
486054
- const ratio = prevColumns.current / columns2;
486055
- prevColumns.current = columns2;
486053
+ if (prevColumns.current !== columns) {
486054
+ const ratio = prevColumns.current / columns;
486055
+ prevColumns.current = columns;
486056
486056
  for (const [k2, h2] of heightCache.current) {
486057
486057
  heightCache.current.set(k2, Math.max(1, Math.round(h2 * ratio)));
486058
486058
  }
@@ -486521,7 +486521,7 @@ function FullscreenLayout(t0) {
486521
486521
  const newMessageCount = t3 === undefined ? 0 : t3;
486522
486522
  const {
486523
486523
  rows: terminalRows,
486524
- columns: columns2
486524
+ columns
486525
486525
  } = useTerminalSize();
486526
486526
  const [stickyPrompt, setStickyPrompt] = import_react153.useState(null);
486527
486527
  let t4;
@@ -486702,11 +486702,11 @@ function FullscreenLayout(t0) {
486702
486702
  t17 = $3[32];
486703
486703
  }
486704
486704
  let t18;
486705
- 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) {
486706
486706
  t18 = modal != null && /* @__PURE__ */ jsx_dev_runtime263.jsxDEV(ModalContext, {
486707
486707
  value: {
486708
486708
  rows: terminalRows - MODAL_TRANSCRIPT_PEEK - 1,
486709
- columns: columns2 - 4,
486709
+ columns: columns - 4,
486710
486710
  scrollRef: modalScrollRef ?? null
486711
486711
  },
486712
486712
  children: /* @__PURE__ */ jsx_dev_runtime263.jsxDEV(ThemedBox_default, {
@@ -486723,7 +486723,7 @@ function FullscreenLayout(t0) {
486723
486723
  flexShrink: 0,
486724
486724
  children: /* @__PURE__ */ jsx_dev_runtime263.jsxDEV(ThemedText, {
486725
486725
  color: "permission",
486726
- children: "▔".repeat(columns2)
486726
+ children: "▔".repeat(columns)
486727
486727
  }, undefined, false, undefined, this)
486728
486728
  }, undefined, false, undefined, this),
486729
486729
  /* @__PURE__ */ jsx_dev_runtime263.jsxDEV(ThemedBox_default, {
@@ -486736,7 +486736,7 @@ function FullscreenLayout(t0) {
486736
486736
  ]
486737
486737
  }, undefined, true, undefined, this)
486738
486738
  }, undefined, false, undefined, this);
486739
- $3[33] = columns2;
486739
+ $3[33] = columns;
486740
486740
  $3[34] = modal;
486741
486741
  $3[35] = modalScrollRef;
486742
486742
  $3[36] = terminalRows;
@@ -487154,7 +487154,7 @@ function VirtualItem(t0) {
487154
487154
  function VirtualMessageList({
487155
487155
  messages,
487156
487156
  scrollRef,
487157
- columns: columns2,
487157
+ columns,
487158
487158
  itemKey,
487159
487159
  renderItem,
487160
487160
  onItemClick,
@@ -487194,7 +487194,7 @@ function VirtualMessageList({
487194
487194
  getItemElement,
487195
487195
  getItemHeight,
487196
487196
  scrollToIndex
487197
- } = useVirtualScroll(scrollRef, keys2, columns2);
487197
+ } = useVirtualScroll(scrollRef, keys2, columns);
487198
487198
  const [start, end] = range;
487199
487199
  const isVisible = import_react154.useCallback((i3) => {
487200
487200
  const h2 = getItemHeight(i3);
@@ -487923,7 +487923,7 @@ var import_compiler_runtime209, React83, import_react155, jsx_dev_runtime265, Lo
487923
487923
  renderRange
487924
487924
  }) => {
487925
487925
  const {
487926
- columns: columns2
487926
+ columns
487927
487927
  } = useTerminalSize();
487928
487928
  const toggleShowAllShortcut = useShortcutDisplay("transcript:toggleShowAll", "Transcript", "Ctrl+E");
487929
487929
  const normalizedMessages = import_react155.useMemo(() => normalizeMessages(messages).filter(isNotEmptyMessage), [messages]);
@@ -488104,7 +488104,7 @@ var import_compiler_runtime209, React83, import_react155, jsx_dev_runtime265, Lo
488104
488104
  onOpenRateLimitOptions,
488105
488105
  lastThinkingBlockId,
488106
488106
  latestBashOutputUUID,
488107
- columns: columns2,
488107
+ columns,
488108
488108
  isLoading,
488109
488109
  lookups: lookups_0
488110
488110
  }, k_0, false, undefined, this);
@@ -488117,7 +488117,7 @@ var import_compiler_runtime209, React83, import_react155, jsx_dev_runtime265, Lo
488117
488117
  marginTop: 1,
488118
488118
  children: /* @__PURE__ */ jsx_dev_runtime265.jsxDEV(Divider, {
488119
488119
  title: `${unseenDivider.count} new ${plural(unseenDivider.count, "message")}`,
488120
- width: columns2,
488120
+ width: columns,
488121
488121
  color: "inactive"
488122
488122
  }, undefined, false, undefined, this)
488123
488123
  }, "unseen-divider", false, undefined, this), wrapped];
@@ -488151,18 +488151,18 @@ var import_compiler_runtime209, React83, import_react155, jsx_dev_runtime265, Lo
488151
488151
  }, undefined, false, undefined, this),
488152
488152
  hasTruncatedMessages_0 && /* @__PURE__ */ jsx_dev_runtime265.jsxDEV(Divider, {
488153
488153
  title: `${toggleShowAllShortcut} to show ${source_default.bold(hiddenMessageCount_0)} previous messages`,
488154
- width: columns2
488154
+ width: columns
488155
488155
  }, undefined, false, undefined, this),
488156
488156
  isTranscriptMode && showAllInTranscript && hiddenMessageCount_0 > 0 && !disableRenderCap && /* @__PURE__ */ jsx_dev_runtime265.jsxDEV(Divider, {
488157
488157
  title: `${toggleShowAllShortcut} to hide ${source_default.bold(hiddenMessageCount_0)} previous messages`,
488158
- width: columns2
488158
+ width: columns
488159
488159
  }, undefined, false, undefined, this),
488160
488160
  virtualScrollRuntimeGate ? /* @__PURE__ */ jsx_dev_runtime265.jsxDEV(InVirtualListContext.Provider, {
488161
488161
  value: true,
488162
488162
  children: /* @__PURE__ */ jsx_dev_runtime265.jsxDEV(VirtualMessageList, {
488163
488163
  messages: renderableMessages,
488164
488164
  scrollRef,
488165
- columns: columns2,
488165
+ columns,
488166
488166
  itemKey: messageKey,
488167
488167
  renderItem: renderMessageRow,
488168
488168
  onItemClick,
@@ -489099,7 +489099,7 @@ function LogSelector(t0) {
489099
489099
  const maxHeight = t1 === undefined ? Infinity : t1;
489100
489100
  const showAllProjects = t2 === undefined ? false : t2;
489101
489101
  const terminalSize = useTerminalSize();
489102
- const columns2 = forceWidth === undefined ? terminalSize.columns : forceWidth;
489102
+ const columns = forceWidth === undefined ? terminalSize.columns : forceWidth;
489103
489103
  const exitState = useExitOnCtrlCDWithKeybindings(onCancel);
489104
489104
  const isTerminalFocused = useTerminalFocus();
489105
489105
  let t3;
@@ -489499,7 +489499,7 @@ function LogSelector(t0) {
489499
489499
  t28 = filteredLogs;
489500
489500
  }
489501
489501
  const displayedLogs = t28;
489502
- const maxLabelWidth = Math.max(30, columns2 - 4);
489502
+ const maxLabelWidth = Math.max(30, columns - 4);
489503
489503
  let t29;
489504
489504
  bb2: {
489505
489505
  if (!isResumeWithRenameEnabled) {
@@ -490216,11 +490216,11 @@ function LogSelector(t0) {
490216
490216
  t59 = $3[165];
490217
490217
  }
490218
490218
  let t60;
490219
- 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) {
490220
490220
  t60 = hasTags ? /* @__PURE__ */ jsx_dev_runtime269.jsxDEV(TagTabs, {
490221
490221
  tabs: tagTabs,
490222
490222
  selectedIndex: effectiveTagIndex,
490223
- availableWidth: columns2,
490223
+ availableWidth: columns,
490224
490224
  showAllProjects
490225
490225
  }, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime269.jsxDEV(ThemedBox_default, {
490226
490226
  flexShrink: 0,
@@ -490243,7 +490243,7 @@ function LogSelector(t0) {
490243
490243
  ]
490244
490244
  }, undefined, true, undefined, this)
490245
490245
  }, undefined, false, undefined, this);
490246
- $3[166] = columns2;
490246
+ $3[166] = columns;
490247
490247
  $3[167] = displayedLogs.length;
490248
490248
  $3[168] = effectiveTagIndex;
490249
490249
  $3[169] = focusedIndex;
@@ -490387,7 +490387,7 @@ function LogSelector(t0) {
490387
490387
  t69 = $3[201];
490388
490388
  }
490389
490389
  let t70;
490390
- 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) {
490391
490391
  t70 = agenticSearchState.status === "searching" ? null : viewMode === "rename" && focusedLog ? /* @__PURE__ */ jsx_dev_runtime269.jsxDEV(ThemedBox_default, {
490392
490392
  paddingLeft: 2,
490393
490393
  flexDirection: "column",
@@ -490403,7 +490403,7 @@ function LogSelector(t0) {
490403
490403
  onChange: setRenameValue,
490404
490404
  onSubmit: handleRenameSubmit,
490405
490405
  placeholder: getLogDisplayTitle(focusedLog, "Enter new session name"),
490406
- columns: columns2,
490406
+ columns,
490407
490407
  cursorOffset: renameCursorOffset,
490408
490408
  onChangeCursorOffset: setRenameCursorOffset,
490409
490409
  showCursor: true
@@ -490466,7 +490466,7 @@ function LogSelector(t0) {
490466
490466
  }, undefined, false, undefined, this);
490467
490467
  $3[202] = agenticSearchState.status;
490468
490468
  $3[203] = branchFilterEnabled;
490469
- $3[204] = columns2;
490469
+ $3[204] = columns;
490470
490470
  $3[205] = displayedLogs;
490471
490471
  $3[206] = expandedGroupSessionIds;
490472
490472
  $3[207] = flatOptions;
@@ -496523,7 +496523,7 @@ function ShellDetailDialog(t0) {
496523
496523
  onBack
496524
496524
  } = t0;
496525
496525
  const {
496526
- columns: columns2
496526
+ columns
496527
496527
  } = useTerminalSize();
496528
496528
  let t1;
496529
496529
  if ($3[0] !== shell) {
@@ -496811,7 +496811,7 @@ function ShellDetailDialog(t0) {
496811
496811
  t23 = $3[44];
496812
496812
  }
496813
496813
  let t24;
496814
- if ($3[45] !== columns2 || $3[46] !== deferredOutputPromise) {
496814
+ if ($3[45] !== columns || $3[46] !== deferredOutputPromise) {
496815
496815
  t24 = /* @__PURE__ */ jsx_dev_runtime285.jsxDEV(ThemedBox_default, {
496816
496816
  flexDirection: "column",
496817
496817
  children: [
@@ -496820,12 +496820,12 @@ function ShellDetailDialog(t0) {
496820
496820
  fallback: t23,
496821
496821
  children: /* @__PURE__ */ jsx_dev_runtime285.jsxDEV(ShellOutputContent, {
496822
496822
  outputPromise: deferredOutputPromise,
496823
- columns: columns2
496823
+ columns
496824
496824
  }, undefined, false, undefined, this)
496825
496825
  }, undefined, false, undefined, this)
496826
496826
  ]
496827
496827
  }, undefined, true, undefined, this);
496828
- $3[45] = columns2;
496828
+ $3[45] = columns;
496829
496829
  $3[46] = deferredOutputPromise;
496830
496830
  $3[47] = t24;
496831
496831
  } else {
@@ -496876,7 +496876,7 @@ function ShellOutputContent(t0) {
496876
496876
  const $3 = import_compiler_runtime224.c(19);
496877
496877
  const {
496878
496878
  outputPromise,
496879
- columns: columns2
496879
+ columns
496880
496880
  } = t0;
496881
496881
  const {
496882
496882
  content,
@@ -496925,7 +496925,7 @@ function ShellOutputContent(t0) {
496925
496925
  isIncomplete = $3[3];
496926
496926
  rendered = $3[4];
496927
496927
  }
496928
- const t1 = columns2 - 6;
496928
+ const t1 = columns - 6;
496929
496929
  let t2;
496930
496930
  if ($3[5] !== rendered) {
496931
496931
  t2 = rendered.map(_temp253);
@@ -497623,9 +497623,9 @@ function Item(t0) {
497623
497623
  isSelected
497624
497624
  } = t0;
497625
497625
  const {
497626
- columns: columns2
497626
+ columns
497627
497627
  } = useTerminalSize();
497628
- const maxActivityWidth = Math.max(30, columns2 - 26);
497628
+ const maxActivityWidth = Math.max(30, columns - 26);
497629
497629
  let t1;
497630
497630
  if ($3[0] === Symbol.for("react.memo_cache_sentinel")) {
497631
497631
  t1 = isCoordinatorMode();
@@ -499223,9 +499223,9 @@ function PermissionRuleInput(t0) {
499223
499223
  }
499224
499224
  useKeybinding("confirm:no", onCancel, t1);
499225
499225
  const {
499226
- columns: columns2
499226
+ columns
499227
499227
  } = useTerminalSize();
499228
- const textInputColumns = columns2 - 6;
499228
+ const textInputColumns = columns - 6;
499229
499229
  let t2;
499230
499230
  if ($3[1] !== onSubmit || $3[2] !== ruleBehavior) {
499231
499231
  t2 = (value) => {
@@ -511997,7 +511997,7 @@ var init_bridge_kick = __esm(() => {
511997
511997
  var call56 = async () => {
511998
511998
  return {
511999
511999
  type: "text",
512000
- value: `${"0.7.15"} (built ${"1775427403"})`
512000
+ value: `${"0.7.15"} (built ${"1775445242"})`
512001
512001
  };
512002
512002
  }, version6, version_default;
512003
512003
  var init_version = __esm(() => {
@@ -514552,7 +514552,7 @@ function ExportDialog({
514552
514552
  const [cursorOffset, setCursorOffset] = import_react188.useState(defaultFilename.length);
514553
514553
  const [showFilenameInput, setShowFilenameInput] = import_react188.useState(false);
514554
514554
  const {
514555
- columns: columns2
514555
+ columns
514556
514556
  } = useTerminalSize();
514557
514557
  const handleGoBack = import_react188.useCallback(() => {
514558
514558
  setShowFilenameInput(false);
@@ -514678,7 +514678,7 @@ function ExportDialog({
514678
514678
  onSubmit: handleFilenameSubmit,
514679
514679
  focus: true,
514680
514680
  showCursor: true,
514681
- columns: columns2,
514681
+ columns,
514682
514682
  cursorOffset,
514683
514683
  onChangeCursorOffset: setCursorOffset
514684
514684
  }, undefined, false, undefined, this)
@@ -514735,7 +514735,7 @@ function normalizedUpperBound(m2) {
514735
514735
  return Array.isArray(c6) ? c6.length : 1;
514736
514736
  }
514737
514737
  async function streamRenderedMessages(messages, tools, sink2, {
514738
- columns: columns2,
514738
+ columns,
514739
514739
  verbose = false,
514740
514740
  chunkSize = 40,
514741
514741
  onProgress
@@ -514759,7 +514759,7 @@ async function streamRenderedMessages(messages, tools, sink2, {
514759
514759
  renderRange: range
514760
514760
  }, undefined, false, undefined, this)
514761
514761
  }, undefined, false, undefined, this)
514762
- }, undefined, false, undefined, this), columns2);
514762
+ }, undefined, false, undefined, this), columns);
514763
514763
  let ceiling = chunkSize;
514764
514764
  for (const m2 of messages)
514765
514765
  ceiling += normalizedUpperBound(m2);
@@ -514771,10 +514771,10 @@ async function streamRenderedMessages(messages, tools, sink2, {
514771
514771
  onProgress?.(offset + chunkSize);
514772
514772
  }
514773
514773
  }
514774
- async function renderMessagesToPlainText(messages, tools = [], columns2) {
514774
+ async function renderMessagesToPlainText(messages, tools = [], columns) {
514775
514775
  const parts = [];
514776
514776
  await streamRenderedMessages(messages, tools, (chunk) => void parts.push(stripAnsi(chunk)), {
514777
- columns: columns2
514777
+ columns
514778
514778
  });
514779
514779
  return parts.join("");
514780
514780
  }
@@ -532695,6 +532695,28 @@ async function* queryModel(messages, systemPrompt, thinkingConfig, tools, signal
532695
532695
  } else {
532696
532696
  filteredTools = tools.filter((t) => !toolMatchesName(t, TOOL_SEARCH_TOOL_NAME));
532697
532697
  }
532698
+ if (isAINativeProvider() && !isClaudeModelName(options.model)) {
532699
+ const CORE_TOOL_NAMES = new Set([
532700
+ "Bash",
532701
+ "Read",
532702
+ "Edit",
532703
+ "Write",
532704
+ "Glob",
532705
+ "Grep",
532706
+ "Agent",
532707
+ "WebFetch",
532708
+ "WebSearch",
532709
+ "AskUserQuestion",
532710
+ "TaskCreate",
532711
+ "TaskUpdate",
532712
+ "TaskList",
532713
+ "TodoWrite",
532714
+ "Skill",
532715
+ "ToolSearch"
532716
+ ]);
532717
+ filteredTools = filteredTools.filter((t) => CORE_TOOL_NAMES.has(t.name));
532718
+ logForDebugging(`[AINative] Limited tools to ${filteredTools.length} core tools for non-Claude model ${options.model}`);
532719
+ }
532698
532720
  const toolSearchHeader = useToolSearch ? getToolSearchBetaHeader() : null;
532699
532721
  if (toolSearchHeader && getAPIProvider() !== "bedrock") {
532700
532722
  if (!betas.includes(toolSearchHeader)) {
@@ -539299,7 +539321,7 @@ function UserMessageOption(t0) {
539299
539321
  paddingRight
539300
539322
  } = t0;
539301
539323
  const {
539302
- columns: columns2
539324
+ columns
539303
539325
  } = useTerminalSize();
539304
539326
  if (isCurrent) {
539305
539327
  let t12;
@@ -539331,7 +539353,7 @@ function UserMessageOption(t0) {
539331
539353
  let t4;
539332
539354
  let t5;
539333
539355
  let t6;
539334
- if ($3[3] !== color3 || $3[4] !== columns2 || $3[5] !== content || $3[6] !== dimColor || $3[7] !== lastBlock || $3[8] !== paddingRight) {
539356
+ if ($3[3] !== color3 || $3[4] !== columns || $3[5] !== content || $3[6] !== dimColor || $3[7] !== lastBlock || $3[8] !== paddingRight) {
539335
539357
  t6 = Symbol.for("react.early_return_sentinel");
539336
539358
  bb0: {
539337
539359
  const rawMessageText = typeof content === "string" ? content.trim() : lastBlock && isTextBlock2(lastBlock) ? lastBlock.text.trim() : "(no prompt)";
@@ -539434,12 +539456,12 @@ function UserMessageOption(t0) {
539434
539456
  T0 = ThemedText;
539435
539457
  t1 = color3;
539436
539458
  t2 = dimColor;
539437
- t3 = paddingRight ? truncate(messageText, columns2 - paddingRight, true) : messageText.slice(0, 500).split(`
539459
+ t3 = paddingRight ? truncate(messageText, columns - paddingRight, true) : messageText.slice(0, 500).split(`
539438
539460
  `).slice(0, 4).join(`
539439
539461
  `);
539440
539462
  }
539441
539463
  $3[3] = color3;
539442
- $3[4] = columns2;
539464
+ $3[4] = columns;
539443
539465
  $3[5] = content;
539444
539466
  $3[6] = dimColor;
539445
539467
  $3[7] = lastBlock;
@@ -539966,14 +539988,14 @@ function QuestionNavigationBar(t0) {
539966
539988
  } = t0;
539967
539989
  const hideSubmitTab = t1 === undefined ? false : t1;
539968
539990
  const {
539969
- columns: columns2
539991
+ columns
539970
539992
  } = useTerminalSize();
539971
539993
  let t2;
539972
- if ($3[0] !== columns2 || $3[1] !== currentQuestionIndex || $3[2] !== hideSubmitTab || $3[3] !== questions) {
539994
+ if ($3[0] !== columns || $3[1] !== currentQuestionIndex || $3[2] !== hideSubmitTab || $3[3] !== questions) {
539973
539995
  bb0: {
539974
539996
  const submitText = hideSubmitTab ? "" : ` ${figures_default.tick} Submit `;
539975
539997
  const fixedWidth = stringWidth("← ") + stringWidth(" →") + stringWidth(submitText);
539976
- const availableForTabs = columns2 - fixedWidth;
539998
+ const availableForTabs = columns - fixedWidth;
539977
539999
  if (availableForTabs <= 0) {
539978
540000
  let t33;
539979
540001
  if ($3[5] !== currentQuestionIndex || $3[6] !== questions) {
@@ -540031,7 +540053,7 @@ function QuestionNavigationBar(t0) {
540031
540053
  }
540032
540054
  t2 = tabHeaders.map(t32);
540033
540055
  }
540034
- $3[0] = columns2;
540056
+ $3[0] = columns;
540035
540057
  $3[1] = currentQuestionIndex;
540036
540058
  $3[2] = hideSubmitTab;
540037
540059
  $3[3] = questions;
@@ -540359,9 +540381,9 @@ function PreviewQuestionView({
540359
540381
  const LEFT_PANEL_WIDTH = 30;
540360
540382
  const GAP = 4;
540361
540383
  const {
540362
- columns: columns2
540384
+ columns
540363
540385
  } = useTerminalSize();
540364
- const previewMaxWidth = columns2 - LEFT_PANEL_WIDTH - GAP;
540386
+ const previewMaxWidth = columns - LEFT_PANEL_WIDTH - GAP;
540365
540387
  const PREVIEW_OVERHEAD = 11;
540366
540388
  const previewMaxLines = import_react202.useMemo(() => {
540367
540389
  return minContentHeight ? Math.max(1, minContentHeight - PREVIEW_OVERHEAD) : undefined;
@@ -544249,21 +544271,21 @@ function DiffBody(t0) {
544249
544271
  fileContent
544250
544272
  } = import_react208.use(promise3);
544251
544273
  const {
544252
- columns: columns2
544274
+ columns
544253
544275
  } = useTerminalSize();
544254
544276
  let t1;
544255
- if ($3[0] !== columns2 || $3[1] !== fileContent || $3[2] !== file_path || $3[3] !== firstLine || $3[4] !== patch) {
544277
+ if ($3[0] !== columns || $3[1] !== fileContent || $3[2] !== file_path || $3[3] !== firstLine || $3[4] !== patch) {
544256
544278
  t1 = /* @__PURE__ */ jsx_dev_runtime378.jsxDEV(DiffFrame, {
544257
544279
  children: /* @__PURE__ */ jsx_dev_runtime378.jsxDEV(StructuredDiffList, {
544258
544280
  hunks: patch,
544259
544281
  dim: false,
544260
- width: columns2,
544282
+ width: columns,
544261
544283
  filePath: file_path,
544262
544284
  firstLine,
544263
544285
  fileContent
544264
544286
  }, undefined, false, undefined, this)
544265
544287
  }, undefined, false, undefined, this);
544266
- $3[0] = columns2;
544288
+ $3[0] = columns;
544267
544289
  $3[1] = fileContent;
544268
544290
  $3[2] = file_path;
544269
544291
  $3[3] = firstLine;
@@ -548525,7 +548547,7 @@ function FileWriteToolDiff(t0) {
548525
548547
  oldContent
548526
548548
  } = t0;
548527
548549
  const {
548528
- columns: columns2
548550
+ columns
548529
548551
  } = useTerminalSize();
548530
548552
  let t1;
548531
548553
  bb0: {
@@ -548565,19 +548587,19 @@ function FileWriteToolDiff(t0) {
548565
548587
  }
548566
548588
  const firstLine = t2;
548567
548589
  let t3;
548568
- if ($3[6] !== columns2 || $3[7] !== content || $3[8] !== file_path || $3[9] !== firstLine || $3[10] !== hunks || $3[11] !== oldContent) {
548590
+ if ($3[6] !== columns || $3[7] !== content || $3[8] !== file_path || $3[9] !== firstLine || $3[10] !== hunks || $3[11] !== oldContent) {
548569
548591
  t3 = hunks ? intersperse(hunks.map((_2) => /* @__PURE__ */ jsx_dev_runtime391.jsxDEV(StructuredDiff, {
548570
548592
  patch: _2,
548571
548593
  dim: false,
548572
548594
  filePath: file_path,
548573
548595
  firstLine,
548574
548596
  fileContent: oldContent,
548575
- width: columns2 - 2
548597
+ width: columns - 2
548576
548598
  }, _2.newStart, false, undefined, this)), _temp180) : /* @__PURE__ */ jsx_dev_runtime391.jsxDEV(HighlightedCode, {
548577
548599
  code: content || "(No content)",
548578
548600
  filePath: file_path
548579
548601
  }, undefined, false, undefined, this);
548580
- $3[6] = columns2;
548602
+ $3[6] = columns;
548581
548603
  $3[7] = content;
548582
548604
  $3[8] = file_path;
548583
548605
  $3[9] = firstLine;
@@ -551188,7 +551210,7 @@ function ElicitationFormDialog({
551188
551210
  resolveAbortRef.current.clear();
551189
551211
  }, []);
551190
551212
  const {
551191
- columns: columns2,
551213
+ columns,
551192
551214
  rows
551193
551215
  } = useTerminalSize();
551194
551216
  const currentField = currentFieldIndex !== undefined ? schemaFields[currentFieldIndex] : undefined;
@@ -551861,7 +551883,7 @@ function ElicitationFormDialog({
551861
551883
  onChange: handleTextInputChange,
551862
551884
  onSubmit: handleTextInputSubmit,
551863
551885
  placeholder: `Type something…`,
551864
- columns: Math.min(columns2 - 20, 60),
551886
+ columns: Math.min(columns - 20, 60),
551865
551887
  cursorOffset: textInputCursorOffset,
551866
551888
  onChangeCursorOffset: setTextInputCursorOffset,
551867
551889
  focus: true,
@@ -561914,7 +561936,7 @@ function BackgroundTaskStatus(t0) {
561914
561936
  const isLeaderIdle = t2 === undefined ? false : t2;
561915
561937
  const setAppState = useSetAppState();
561916
561938
  const {
561917
- columns: columns2
561939
+ columns
561918
561940
  } = useTerminalSize();
561919
561941
  const tasks2 = useAppState(_temp195);
561920
561942
  const viewingAgentTaskId = useAppState(_temp281);
@@ -561990,7 +562012,7 @@ function BackgroundTaskStatus(t0) {
561990
562012
  t82 = $3[14];
561991
562013
  }
561992
562014
  const viewedIdx = t82;
561993
- const availableWidth = Math.max(20, columns2 - 20 - 4);
562015
+ const availableWidth = Math.max(20, columns - 20 - 4);
561994
562016
  const t92 = selectedIdx >= 0 ? selectedIdx : 0;
561995
562017
  let t102;
561996
562018
  if ($3[15] !== availableWidth || $3[16] !== pillWidths || $3[17] !== t92) {
@@ -562887,7 +562909,7 @@ function ModeIndicator({
562887
562909
  onOpenTasksDialog
562888
562910
  }) {
562889
562911
  const {
562890
- columns: columns2
562912
+ columns
562891
562913
  } = useTerminalSize();
562892
562914
  const modeCycleShortcut = useShortcutDisplay("chat:cycleMode", "Chat", "shift+tab");
562893
562915
  const tasks2 = useAppState((s) => s.tasks);
@@ -562935,7 +562957,7 @@ function ModeIndicator({
562935
562957
  const isViewingCompletedTeammate = isViewingTeammate && viewedTask != null && viewedTask.status !== "running";
562936
562958
  const hasBackgroundTasks = runningTaskCount > 0 || isViewingTeammate;
562937
562959
  const primaryItemCount = (isCoordinator || hasActiveMode ? 1 : 0) + (hasBackgroundTasks ? 1 : 0) + (hasTeams ? 1 : 0);
562938
- const shouldShowPrStatus = isPrStatusEnabled() && prStatus.number !== null && prStatus.reviewState !== null && prStatus.url !== null && primaryItemCount < 2 && (primaryItemCount === 0 || columns2 >= 80);
562960
+ const shouldShowPrStatus = isPrStatusEnabled() && prStatus.number !== null && prStatus.reviewState !== null && prStatus.url !== null && primaryItemCount < 2 && (primaryItemCount === 0 || columns >= 80);
562939
562961
  const shouldShowModeHint = primaryItemCount < 2;
562940
562962
  const hasInProcessTeammates = !showSpinnerTree && hasBackgroundTasks && Object.values(tasks2).some((t_1) => t_1.type === "in_process_teammate");
562941
562963
  const hasTeammatePills = hasInProcessTeammates || !showSpinnerTree && isViewingTeammate;
@@ -563219,13 +563241,13 @@ function PromptInputFooter({
563219
563241
  }) {
563220
563242
  const settings = useSettings();
563221
563243
  const {
563222
- columns: columns2,
563244
+ columns,
563223
563245
  rows
563224
563246
  } = useTerminalSize();
563225
563247
  const messagesRef = import_react254.useRef(messages);
563226
563248
  messagesRef.current = messages;
563227
563249
  const lastAssistantMessageId = import_react254.useMemo(() => getLastAssistantMessageId(messages), [messages]);
563228
- const isNarrow = columns2 < 80;
563250
+ const isNarrow = columns < 80;
563229
563251
  const isFullscreen = isFullscreenEnvEnabled();
563230
563252
  const isShort = isFullscreen && rows < 24;
563231
563253
  const coordinatorTaskCount = useCoordinatorTaskCount();
@@ -565286,10 +565308,10 @@ function PromptInput({
565286
565308
  useBuddyNotification();
565287
565309
  const companionSpeaking = false;
565288
565310
  const {
565289
- columns: columns2,
565311
+ columns,
565290
565312
  rows
565291
565313
  } = useTerminalSize();
565292
- const textInputColumns = columns2 - 3 - companionReservedColumns(columns2, companionSpeaking);
565314
+ const textInputColumns = columns - 3 - companionReservedColumns(columns, companionSpeaking);
565293
565315
  const maxVisibleLines = isFullscreenEnvEnabled() ? Math.max(MIN_INPUT_VIEWPORT_LINES, Math.floor(rows / 2) - PROMPT_FOOTER_LINES) : undefined;
565294
565316
  const handleInputClick = import_react259.useCallback((e) => {
565295
565317
  if (!input || isSearchingHistory)
@@ -565561,7 +565583,7 @@ function PromptInput({
565561
565583
  color: swarmBanner.bgColor,
565562
565584
  children: swarmBanner.text ? /* @__PURE__ */ jsx_dev_runtime435.jsxDEV(jsx_dev_runtime435.Fragment, {
565563
565585
  children: [
565564
- "─".repeat(Math.max(0, columns2 - stringWidth(swarmBanner.text) - 4)),
565586
+ "─".repeat(Math.max(0, columns - stringWidth(swarmBanner.text) - 4)),
565565
565587
  /* @__PURE__ */ jsx_dev_runtime435.jsxDEV(ThemedText, {
565566
565588
  backgroundColor: swarmBanner.bgColor,
565567
565589
  color: "inverseText",
@@ -565573,7 +565595,7 @@ function PromptInput({
565573
565595
  }, undefined, true, undefined, this),
565574
565596
  "──"
565575
565597
  ]
565576
- }, undefined, true, undefined, this) : "─".repeat(columns2)
565598
+ }, undefined, true, undefined, this) : "─".repeat(columns)
565577
565599
  }, undefined, false, undefined, this),
565578
565600
  /* @__PURE__ */ jsx_dev_runtime435.jsxDEV(ThemedBox_default, {
565579
565601
  flexDirection: "row",
@@ -565595,7 +565617,7 @@ function PromptInput({
565595
565617
  }, undefined, true, undefined, this),
565596
565618
  /* @__PURE__ */ jsx_dev_runtime435.jsxDEV(ThemedText, {
565597
565619
  color: swarmBanner.bgColor,
565598
- children: "─".repeat(columns2)
565620
+ children: "─".repeat(columns)
565599
565621
  }, undefined, false, undefined, this)
565600
565622
  ]
565601
565623
  }, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime435.jsxDEV(ThemedBox_default, {