@google/gemini-cli 0.65.0-preview.0 → 0.66.0-nightly.20261016.gdebf42324

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 (70) hide show
  1. package/bundle/{chunk-K7AA35SP.js → chunk-3VVLSLUB.js} +365 -230
  2. package/bundle/{chunk-K7NOVQ6G.js → chunk-4ORY5VV4.js} +376 -231
  3. package/bundle/{chunk-TP236FKO.js → chunk-4ZQK6FPV.js} +8243 -15166
  4. package/bundle/{chunk-VF5WQSOE.js → chunk-5U5H7MQT.js} +1 -1
  5. package/bundle/{chunk-H2CZXS7F.js → chunk-6CPZZAS6.js} +1 -1
  6. package/bundle/{chunk-2WVLIJA5.js → chunk-6ZNK3R6S.js} +145 -77
  7. package/bundle/{chunk-NL7ZHGCH.js → chunk-7WET2X2L.js} +1 -1
  8. package/bundle/{chunk-WTRK3NVX.js → chunk-ARZHETF7.js} +58 -27
  9. package/bundle/{chunk-HLOOE7YN.js → chunk-C6OZRRSW.js} +9 -8
  10. package/bundle/{chunk-LLE5Z636.js → chunk-CAK3GIEX.js} +58 -27
  11. package/bundle/{chunk-F6AJM4WN.js → chunk-DZK3RTN5.js} +3 -3
  12. package/bundle/{chunk-BFIV7GTA.js → chunk-EAJQUKYV.js} +2 -2
  13. package/bundle/{chunk-SN7QZKXC.js → chunk-EDXPBFMP.js} +122 -78
  14. package/bundle/{chunk-43EXRO7A.js → chunk-FMKAMURR.js} +145 -77
  15. package/bundle/{chunk-RPHDSDL6.js → chunk-GYABHSAN.js} +1 -1
  16. package/bundle/chunk-HZ3ULZA5.js +512 -0
  17. package/bundle/{chunk-V72FRESD.js → chunk-IPP4LAIJ.js} +2 -2
  18. package/bundle/{chunk-S7BCRBI4.js → chunk-L2JWNZ5I.js} +1 -1
  19. package/bundle/{chunk-4DCA4L53.js → chunk-LE7CRIQW.js} +2 -2
  20. package/bundle/{chunk-K4G5D5ZZ.js → chunk-NTMOGT2U.js} +1 -1
  21. package/bundle/{chunk-QJK54DSE.js → chunk-O7DL5A6M.js} +1 -1
  22. package/bundle/chunk-OUQNYX72.js +425 -0
  23. package/bundle/{chunk-GSQEBEGC.js → chunk-OWNTY4ZJ.js} +3 -3
  24. package/bundle/chunk-RATJW3IC.js +103284 -0
  25. package/bundle/{chunk-WGL5FJOS.js → chunk-RHS7LQYQ.js} +3 -3
  26. package/bundle/{chunk-V2R74WAG.js → chunk-T526OHX2.js} +151 -81
  27. package/bundle/chunk-TM5LN2M4.js +118 -0
  28. package/bundle/{chunk-4JGVVJGK.js → chunk-W4TOIVW2.js} +1 -1
  29. package/bundle/chunk-WWLKAUPJ.js +1571 -0
  30. package/bundle/chunk-XMMD2D57.js +154 -0
  31. package/bundle/chunk-XTRL4LHU.js +402181 -0
  32. package/bundle/chunk-YDKHD3KR.js +17603 -0
  33. package/bundle/{cleanup-HPADDONA.js → cleanup-D64VZM4F.js} +2 -2
  34. package/bundle/{cleanup-JOMSXKMP.js → cleanup-KQSUSZVK.js} +2 -2
  35. package/bundle/{cleanup-LYRJHMMO.js → cleanup-NFDCMZNM.js} +2 -2
  36. package/bundle/cleanup-PMQAGUR6.js +32 -0
  37. package/bundle/{core-NCJTYARO.js → core-AQSWLJFK.js} +13 -1
  38. package/bundle/{devtoolsService-HIZA3JGR.js → devtoolsService-4FKRWPRR.js} +2 -2
  39. package/bundle/{devtoolsService-WP2OPVPB.js → devtoolsService-HIMQQKQU.js} +2 -2
  40. package/bundle/{devtoolsService-JFJBTZ4B.js → devtoolsService-HNNM7RMB.js} +4 -3
  41. package/bundle/devtoolsService-ZFRR4BWT.js +4359 -0
  42. package/bundle/{dist-GQKLLBDW.js → dist-5ASSTNQ6.js} +13 -1
  43. package/bundle/{core-IVQAI4S6.js → dist-BLHNJM7E.js} +13 -1
  44. package/bundle/dist-KGTOLDFD.js +2280 -0
  45. package/bundle/docs/changelogs/index.md +22 -0
  46. package/bundle/docs/changelogs/latest.md +64 -54
  47. package/bundle/docs/changelogs/preview.md +91 -55
  48. package/bundle/docs/reference/configuration.md +8 -3
  49. package/bundle/{gemini-7CHJYSHM.js → gemini-5A6XE5MS.js} +14 -14
  50. package/bundle/{gemini-5TUKZVGS.js → gemini-6AUGEYTK.js} +14 -14
  51. package/bundle/{gemini-546WMAHG.js → gemini-CONRUIWA.js} +214 -198
  52. package/bundle/gemini-NNDIP5FI.js +17951 -0
  53. package/bundle/gemini.js +7 -7
  54. package/bundle/{interactiveCli-5XIAIY74.js → interactiveCli-4ASTHC7A.js} +1370 -1279
  55. package/bundle/{interactiveCli-L4PK7YY3.js → interactiveCli-A4AHHCYK.js} +1060 -988
  56. package/bundle/interactiveCli-BYRGNC52.js +35601 -0
  57. package/bundle/{interactiveCli-E3PUPYMZ.js → interactiveCli-DVYUBC7X.js} +1060 -988
  58. package/bundle/{liteRtServerManager-JCTYJBV5.js → liteRtServerManager-4YCGFHXM.js} +4 -4
  59. package/bundle/{liteRtServerManager-JERG6KYC.js → liteRtServerManager-B5VXJYB6.js} +4 -4
  60. package/bundle/{liteRtServerManager-22ISMNN2.js → liteRtServerManager-O5MQ7YAM.js} +4 -4
  61. package/bundle/liteRtServerManager-XTK5NKOU.js +65 -0
  62. package/bundle/{oauth2-provider-MKWWBW4K.js → oauth2-provider-DGDIJBPB.js} +1 -1
  63. package/bundle/{oauth2-provider-XRUER2XR.js → oauth2-provider-FL4LAMOD.js} +1 -1
  64. package/bundle/{oauth2-provider-477UJQX6.js → oauth2-provider-LJCH3JL4.js} +41 -79
  65. package/bundle/oauth2-provider-XMOANRFY.js +273 -0
  66. package/bundle/{start-MVIPJNQ5.js → start-EK5VVD43.js} +6 -6
  67. package/bundle/{start-RZWSVT55.js → start-EZBPBQGC.js} +6 -6
  68. package/bundle/{start-AGMBPY3O.js → start-TTVQ72ZW.js} +6 -6
  69. package/bundle/start-ZK46NOA3.js +18 -0
  70. package/package.json +1 -1
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-TP236FKO.js";
8
+ } from "./chunk-3VVLSLUB.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
3
  runExitCleanup
4
- } from "./chunk-RPHDSDL6.js";
4
+ } from "./chunk-XMMD2D57.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -33,7 +33,7 @@ import {
33
33
  partListUnionToString,
34
34
  require_strip_json_comments,
35
35
  sanitizeFilenamePart
36
- } from "./chunk-K7AA35SP.js";
36
+ } from "./chunk-4ZQK6FPV.js";
37
37
  import {
38
38
  __commonJS,
39
39
  __require,
@@ -16388,6 +16388,18 @@ var LoadedSettings = class {
16388
16388
  return;
16389
16389
  }
16390
16390
  this.isTrusted = isTrusted;
16391
+ if (isTrusted && Object.keys(this._workspaceFile.settings).length === 0 && Object.keys(this._workspaceFile.originalSettings).length > 0) {
16392
+ const resolvedWorkspaceSettings = resolveSettings(
16393
+ this._workspaceFile.originalSettings,
16394
+ this._workspaceFile.path,
16395
+ this.errors
16396
+ );
16397
+ normalizeLegacyTheme(resolvedWorkspaceSettings);
16398
+ this._workspaceFile = {
16399
+ ...this._workspaceFile,
16400
+ settings: resolvedWorkspaceSettings
16401
+ };
16402
+ }
16391
16403
  this.workspace = isTrusted ? this._workspaceFile : this.createEmptyWorkspace(this._workspaceFile);
16392
16404
  this._merged = this.computeMergedSettings();
16393
16405
  coreEvents.emitSettingsChanged();
@@ -16402,12 +16414,12 @@ var LoadedSettings = class {
16402
16414
  }
16403
16415
  computeMergedSettings(forceTrusted = false) {
16404
16416
  const isTrusted = forceTrusted || this.isTrusted;
16405
- const workspace = forceTrusted ? this._workspaceFile : this.workspace;
16417
+ const workspaceSettings = forceTrusted ? Object.keys(this._workspaceFile.settings).length > 0 ? this._workspaceFile.settings : this._workspaceFile.originalSettings : this.workspace.settings;
16406
16418
  const merged = mergeSettings(
16407
16419
  this.system.settings,
16408
16420
  this.systemDefaults.settings,
16409
16421
  this.user.settings,
16410
- workspace.settings,
16422
+ workspaceSettings,
16411
16423
  isTrusted
16412
16424
  );
16413
16425
  const adminSettingSchema = getSettingsSchema().admin;
@@ -16674,6 +16686,75 @@ function loadSettings(workspaceDir = process2.cwd()) {
16674
16686
  () => _doLoadSettings(normalizedWorkspaceDir)
16675
16687
  );
16676
16688
  }
16689
+ function isRecord(value) {
16690
+ return typeof value === "object" && value !== null && !Array.isArray(value);
16691
+ }
16692
+ function getParentRecord(root, objectPath) {
16693
+ let current = root;
16694
+ for (let i = 0; i < objectPath.length - 1; i++) {
16695
+ if (!isRecord(current)) {
16696
+ return void 0;
16697
+ }
16698
+ current = current[objectPath[i]];
16699
+ }
16700
+ return isRecord(current) ? current : void 0;
16701
+ }
16702
+ function coerceValidSettings(expandedSettings, issues) {
16703
+ const clone2 = structuredClone(expandedSettings);
16704
+ const pathsToRestore = [];
16705
+ for (const issue of issues) {
16706
+ const firstNumberIdx = issue.path.findIndex((p) => typeof p === "number");
16707
+ const objectPath = (firstNumberIdx === -1 ? issue.path : issue.path.slice(0, firstNumberIdx)).filter((p) => typeof p === "string");
16708
+ if (objectPath.length === 0) {
16709
+ return expandedSettings;
16710
+ }
16711
+ const lastKey = objectPath[objectPath.length - 1];
16712
+ const container = getParentRecord(clone2, objectPath);
16713
+ if (container && Object.hasOwn(container, lastKey)) {
16714
+ delete container[lastKey];
16715
+ pathsToRestore.push(objectPath);
16716
+ }
16717
+ }
16718
+ const partialValidation = validateSettings(clone2);
16719
+ if (!partialValidation.success || !partialValidation.data) {
16720
+ return expandedSettings;
16721
+ }
16722
+ const coerced = partialValidation.data;
16723
+ for (const objectPath of pathsToRestore) {
16724
+ const lastKey = objectPath[objectPath.length - 1];
16725
+ const sourceContainer = getParentRecord(expandedSettings, objectPath);
16726
+ const targetContainer = getParentRecord(coerced, objectPath);
16727
+ if (sourceContainer && targetContainer && Object.hasOwn(sourceContainer, lastKey)) {
16728
+ targetContainer[lastKey] = sourceContainer[lastKey];
16729
+ }
16730
+ }
16731
+ return coerced;
16732
+ }
16733
+ function normalizeLegacyTheme(settings) {
16734
+ if (settings.ui?.theme === "VS") {
16735
+ settings.ui.theme = DefaultLight.name;
16736
+ } else if (settings.ui?.theme === "VS2015") {
16737
+ settings.ui.theme = DefaultDark.name;
16738
+ }
16739
+ }
16740
+ function resolveSettings(rawSettings, filePath, settingsErrors) {
16741
+ if (Object.keys(rawSettings).length === 0) {
16742
+ return {};
16743
+ }
16744
+ const expandedSettings = resolveEnvVarsInObject(rawSettings);
16745
+ const validationResult = validateSettings(expandedSettings);
16746
+ if (!validationResult.success && validationResult.error) {
16747
+ if (settingsErrors) {
16748
+ settingsErrors.push({
16749
+ message: formatValidationError(validationResult.error, filePath),
16750
+ path: filePath,
16751
+ severity: "warning"
16752
+ });
16753
+ }
16754
+ return coerceValidSettings(expandedSettings, validationResult.error.issues);
16755
+ }
16756
+ return validationResult.data ?? expandedSettings;
16757
+ }
16677
16758
  function _doLoadSettings(workspaceDir) {
16678
16759
  let systemSettings = {};
16679
16760
  let systemDefaultSettings = {};
@@ -16695,37 +16776,9 @@ function _doLoadSettings(workspaceDir) {
16695
16776
  path: filePath,
16696
16777
  severity: "error"
16697
16778
  });
16698
- return { settings: {}, rawSettings: {} };
16699
- }
16700
- const settingsObject = rawSettings;
16701
- const expandedSettings = resolveEnvVarsInObject(
16702
- settingsObject
16703
- );
16704
- const validationResult = validateSettings(expandedSettings);
16705
- if (!validationResult.success && validationResult.error) {
16706
- const errorMessage = formatValidationError(
16707
- validationResult.error,
16708
- filePath
16709
- );
16710
- settingsErrors.push({
16711
- message: errorMessage,
16712
- path: filePath,
16713
- severity: "warning"
16714
- });
16715
- return {
16716
- settings: expandedSettings,
16717
- rawSettings: settingsObject,
16718
- rawJson: content
16719
- };
16779
+ return { rawSettings: {} };
16720
16780
  }
16721
- return {
16722
- // Since we've successfully validated expandedSettings against settingsZodSchema,
16723
- // it's safe to cast the resulting data to the Settings type.
16724
- // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
16725
- settings: validationResult.data ?? expandedSettings,
16726
- rawSettings: settingsObject,
16727
- rawJson: content
16728
- };
16781
+ return { rawSettings, rawJson: content };
16729
16782
  }
16730
16783
  } catch (error) {
16731
16784
  settingsErrors.push({
@@ -16734,12 +16787,12 @@ function _doLoadSettings(workspaceDir) {
16734
16787
  severity: "error"
16735
16788
  });
16736
16789
  }
16737
- return { settings: {}, rawSettings: {} };
16790
+ return { rawSettings: {} };
16738
16791
  };
16739
16792
  const securityCache = createPathSecurityCache();
16740
16793
  const loadSystemFile = (filePath, fileLabel) => {
16741
16794
  if (!fs4.existsSync(filePath)) {
16742
- return { settings: {}, rawSettings: {} };
16795
+ return { rawSettings: {} };
16743
16796
  }
16744
16797
  const check = isFileAndDirectorySecureSync(filePath, securityCache);
16745
16798
  if (!check.secure) {
@@ -16748,7 +16801,7 @@ function _doLoadSettings(workspaceDir) {
16748
16801
  path: filePath,
16749
16802
  severity: "warning"
16750
16803
  });
16751
- return { settings: {}, rawSettings: {} };
16804
+ return { rawSettings: {} };
16752
16805
  }
16753
16806
  return load(filePath);
16754
16807
  };
@@ -16758,26 +16811,10 @@ function _doLoadSettings(workspaceDir) {
16758
16811
  "system defaults"
16759
16812
  );
16760
16813
  const userResult = load(USER_SETTINGS_PATH);
16761
- let workspaceResult = {
16762
- settings: {},
16763
- rawSettings: {},
16764
- rawJson: void 0
16765
- };
16814
+ let workspaceResult = { rawSettings: {} };
16766
16815
  if (!storage.isWorkspaceHomeDir()) {
16767
16816
  workspaceResult = load(workspaceSettingsPath);
16768
16817
  }
16769
- const systemOriginalSettings = structuredClone(systemResult.rawSettings);
16770
- const systemDefaultsOriginalSettings = structuredClone(
16771
- systemDefaultsResult.rawSettings
16772
- );
16773
- const userOriginalSettings = structuredClone(userResult.rawSettings);
16774
- const workspaceOriginalSettings = structuredClone(
16775
- workspaceResult.rawSettings
16776
- );
16777
- systemSettings = systemResult.settings;
16778
- systemDefaultSettings = systemDefaultsResult.settings;
16779
- userSettings = userResult.settings;
16780
- workspaceSettings = workspaceResult.settings;
16781
16818
  const envAuthOverride = process2.env["GEMINI_CLI_AUTH_OVERRIDE"];
16782
16819
  if (envAuthOverride) {
16783
16820
  delete process2.env["GEMINI_CLI_AUTH_OVERRIDE"];
@@ -16788,31 +16825,34 @@ function _doLoadSettings(workspaceDir) {
16788
16825
  envAuthOverride
16789
16826
  ) : void 0;
16790
16827
  if (authOverride) {
16791
- if (!userSettings.security) {
16792
- userSettings.security = {};
16793
- }
16794
- if (!userSettings.security.auth) {
16795
- userSettings.security.auth = {};
16796
- }
16797
- userSettings.security.auth.selectedType = authOverride;
16798
- if (!userOriginalSettings.security) {
16799
- userOriginalSettings.security = {};
16800
- }
16801
- if (!userOriginalSettings.security.auth) {
16802
- userOriginalSettings.security.auth = {};
16803
- }
16804
- userOriginalSettings.security.auth.selectedType = authOverride;
16805
- }
16806
- if (userSettings.ui?.theme === "VS") {
16807
- userSettings.ui.theme = DefaultLight.name;
16808
- } else if (userSettings.ui?.theme === "VS2015") {
16809
- userSettings.ui.theme = DefaultDark.name;
16810
- }
16811
- if (workspaceSettings.ui?.theme === "VS") {
16812
- workspaceSettings.ui.theme = DefaultLight.name;
16813
- } else if (workspaceSettings.ui?.theme === "VS2015") {
16814
- workspaceSettings.ui.theme = DefaultDark.name;
16828
+ userResult.rawSettings = {
16829
+ ...userResult.rawSettings,
16830
+ security: {
16831
+ ...userResult.rawSettings?.security,
16832
+ auth: {
16833
+ ...userResult.rawSettings?.security?.auth,
16834
+ selectedType: authOverride
16835
+ }
16836
+ }
16837
+ };
16815
16838
  }
16839
+ const systemOriginalSettings = structuredClone(systemResult.rawSettings);
16840
+ const systemDefaultsOriginalSettings = structuredClone(
16841
+ systemDefaultsResult.rawSettings
16842
+ );
16843
+ const userOriginalSettings = structuredClone(userResult.rawSettings);
16844
+ const workspaceOriginalSettings = structuredClone(
16845
+ workspaceResult.rawSettings
16846
+ );
16847
+ systemSettings = resolveSettings(
16848
+ systemResult.rawSettings,
16849
+ systemSettingsPath
16850
+ );
16851
+ systemDefaultSettings = resolveSettings(
16852
+ systemDefaultsResult.rawSettings,
16853
+ systemDefaultsPath
16854
+ );
16855
+ userSettings = resolveSettings(userResult.rawSettings, USER_SETTINGS_PATH);
16816
16856
  const initialTrustCheckSettings = customDeepMerge(
16817
16857
  getMergeStrategyForPath,
16818
16858
  getDefaultsFromSchema(),
@@ -16821,6 +16861,12 @@ function _doLoadSettings(workspaceDir) {
16821
16861
  systemSettings
16822
16862
  );
16823
16863
  const isTrusted = isWorkspaceTrusted(initialTrustCheckSettings, workspaceDir)?.isTrusted ?? false;
16864
+ if (isTrusted) {
16865
+ workspaceSettings = resolveSettings(
16866
+ workspaceResult.rawSettings,
16867
+ workspaceSettingsPath
16868
+ );
16869
+ }
16824
16870
  const tempMergedSettings = mergeSettings(
16825
16871
  systemSettings,
16826
16872
  systemDefaultSettings,
@@ -16829,6 +16875,28 @@ function _doLoadSettings(workspaceDir) {
16829
16875
  isTrusted
16830
16876
  );
16831
16877
  loadEnvironment(tempMergedSettings, workspaceDir);
16878
+ systemSettings = resolveSettings(
16879
+ systemResult.rawSettings,
16880
+ systemSettingsPath,
16881
+ settingsErrors
16882
+ );
16883
+ systemDefaultSettings = resolveSettings(
16884
+ systemDefaultsResult.rawSettings,
16885
+ systemDefaultsPath,
16886
+ settingsErrors
16887
+ );
16888
+ userSettings = resolveSettings(
16889
+ userResult.rawSettings,
16890
+ USER_SETTINGS_PATH,
16891
+ settingsErrors
16892
+ );
16893
+ workspaceSettings = isTrusted ? resolveSettings(
16894
+ workspaceResult.rawSettings,
16895
+ workspaceSettingsPath,
16896
+ settingsErrors
16897
+ ) : {};
16898
+ normalizeLegacyTheme(userSettings);
16899
+ normalizeLegacyTheme(workspaceSettings);
16832
16900
  const fatalErrors = settingsErrors.filter((e) => e.severity === "error");
16833
16901
  if (fatalErrors.length > 0) {
16834
16902
  const errorMessages = fatalErrors.map(
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  CoreToolCallStatus,
4
4
  checkExhaustive
5
- } from "./chunk-K7AA35SP.js";
5
+ } from "./chunk-3VVLSLUB.js";
6
6
  import {
7
7
  __commonJS,
8
8
  __toESM
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  exitCli,
4
4
  require_source
5
- } from "./chunk-H2CZXS7F.js";
5
+ } from "./chunk-WWLKAUPJ.js";
6
6
  import {
7
7
  AppEvent,
8
8
  appEvents
@@ -63,15 +63,15 @@ import {
63
63
  stripUnsafeCharacters,
64
64
  toCodePoints,
65
65
  validateCustomTheme
66
- } from "./chunk-2WVLIJA5.js";
66
+ } from "./chunk-YDKHD3KR.js";
67
67
  import {
68
68
  isDevelopment
69
- } from "./chunk-4DCA4L53.js";
69
+ } from "./chunk-IPP4LAIJ.js";
70
70
  import {
71
71
  emptyIcon,
72
72
  mapCoreStatusToDisplayStatus,
73
73
  require_react
74
- } from "./chunk-NL7ZHGCH.js";
74
+ } from "./chunk-C6OZRRSW.js";
75
75
  import {
76
76
  ALL_EDITORS,
77
77
  ApprovalMode,
@@ -190,6 +190,7 @@ import {
190
190
  isProjectSkillPatchTarget,
191
191
  isSubpath,
192
192
  isTerminalEditor,
193
+ isTmux,
193
194
  isValidEditorType,
194
195
  is_wsl_default,
195
196
  listExtensions,
@@ -254,7 +255,7 @@ import {
254
255
  uiTelemetryService,
255
256
  unescapePath,
256
257
  validateUrlDestination
257
- } from "./chunk-K7AA35SP.js";
258
+ } from "./chunk-XTRL4LHU.js";
258
259
  import {
259
260
  require_src
260
261
  } from "./chunk-L6PII3GR.js";
@@ -7854,14 +7855,14 @@ var require_react_reconciler_production = __commonJS({
7854
7855
  }
7855
7856
  var exports2 = {};
7856
7857
  "use strict";
7857
- var React22 = require_react(), Scheduler = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
7858
+ var React23 = require_react(), Scheduler = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
7858
7859
  Symbol.for("react.scope");
7859
7860
  var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
7860
7861
  Symbol.for("react.legacy_hidden");
7861
7862
  Symbol.for("react.tracing_marker");
7862
7863
  var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
7863
7864
  Symbol.for("react.view_transition");
7864
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React22.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
7865
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React23.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
7865
7866
  $$$config.cloneMutableInstance;
7866
7867
  var appendInitialChild = $$$config.appendInitialChild, finalizeInitialChildren = $$$config.finalizeInitialChildren, shouldSetTextContent = $$$config.shouldSetTextContent, createTextInstance = $$$config.createTextInstance;
7867
7868
  $$$config.cloneMutableTextInstance;
@@ -74613,13 +74614,14 @@ var formatDuration = (milliseconds) => {
74613
74614
  if (milliseconds <= 0) {
74614
74615
  return "0s";
74615
74616
  }
74616
- if (milliseconds < 1e3) {
74617
- return `${Math.round(milliseconds)}ms`;
74617
+ const roundedMs = Math.round(milliseconds);
74618
+ if (roundedMs < 1e3) {
74619
+ return `${roundedMs}ms`;
74618
74620
  }
74619
- const totalSeconds = milliseconds / 1e3;
74620
- if (totalSeconds < 60) {
74621
- return `${totalSeconds.toFixed(1)}s`;
74621
+ if (milliseconds < 59950) {
74622
+ return `${(milliseconds / 1e3).toFixed(1)}s`;
74622
74623
  }
74624
+ const totalSeconds = Math.round(milliseconds / 1e3);
74623
74625
  const hours = Math.floor(totalSeconds / 3600);
74624
74626
  const minutes = Math.floor(totalSeconds % 3600 / 60);
74625
74627
  const seconds = Math.floor(totalSeconds % 60);
@@ -76067,25 +76069,53 @@ function Spinner({ type = "dots" }) {
76067
76069
  var build_default = Spinner;
76068
76070
 
76069
76071
  // packages/cli/src/ui/components/CliSpinner.tsx
76072
+ var import_cli_spinners2 = __toESM(require_cli_spinners(), 1);
76070
76073
  var import_react53 = __toESM(require_react(), 1);
76071
76074
  var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
76072
- var CliSpinner = (props) => {
76073
- const settings = useSettings();
76074
- const shouldShow = settings.merged.ui?.showSpinner !== false;
76075
- (0, import_react53.useEffect)(() => {
76076
- if (shouldShow) {
76077
- debugState.debugNumAnimatedComponents++;
76075
+ var TMUX_SPINNER_INTERVAL_MS = 120;
76076
+ var TmuxSpinner = import_react53.default.memo(
76077
+ ({ type = "dots" }) => {
76078
+ const [frame, setFrame] = (0, import_react53.useState)(0);
76079
+ const spinner = import_cli_spinners2.default[type] ?? import_cli_spinners2.default.dots;
76080
+ const intervalMs = Math.max(spinner.interval, TMUX_SPINNER_INTERVAL_MS);
76081
+ (0, import_react53.useEffect)(() => {
76082
+ const timer = setInterval(() => {
76083
+ setFrame(
76084
+ (previousFrame) => previousFrame >= spinner.frames.length - 1 ? 0 : previousFrame + 1
76085
+ );
76086
+ }, intervalMs);
76078
76087
  return () => {
76079
- debugState.debugNumAnimatedComponents--;
76088
+ clearInterval(timer);
76080
76089
  };
76090
+ }, [spinner, intervalMs]);
76091
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { children: spinner.frames[frame % spinner.frames.length] });
76092
+ }
76093
+ );
76094
+ TmuxSpinner.displayName = "TmuxSpinner";
76095
+ var CliSpinner = import_react53.default.memo(
76096
+ (props) => {
76097
+ const settings = useSettings();
76098
+ const shouldShow = settings.merged.ui?.showSpinner !== false;
76099
+ const inTmux2 = isTmux();
76100
+ (0, import_react53.useEffect)(() => {
76101
+ if (shouldShow) {
76102
+ debugState.debugNumAnimatedComponents++;
76103
+ return () => {
76104
+ debugState.debugNumAnimatedComponents--;
76105
+ };
76106
+ }
76107
+ return void 0;
76108
+ }, [shouldShow]);
76109
+ if (!shouldShow) {
76110
+ return null;
76081
76111
  }
76082
- return void 0;
76083
- }, [shouldShow]);
76084
- if (!shouldShow) {
76085
- return null;
76112
+ if (inTmux2) {
76113
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TmuxSpinner, { type: props.type });
76114
+ }
76115
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(build_default, { ...props });
76086
76116
  }
76087
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(build_default, { ...props });
76088
- };
76117
+ );
76118
+ CliSpinner.displayName = "CliSpinner";
76089
76119
 
76090
76120
  // packages/cli/src/ui/components/shared/ExpandableText.tsx
76091
76121
  var import_react54 = __toESM(require_react(), 1);
@@ -77864,7 +77894,7 @@ var authCommand = {
77864
77894
  import process29 from "node:process";
77865
77895
 
77866
77896
  // packages/cli/src/generated/git-commit.ts
77867
- var GIT_COMMIT_INFO = "ca417cd41";
77897
+ var GIT_COMMIT_INFO = "3e02a04c4";
77868
77898
 
77869
77899
  // packages/cli/src/ui/utils/historyExportUtils.ts
77870
77900
  import * as fsPromises from "node:fs/promises";
@@ -83671,7 +83701,7 @@ Use /mcp auth <server-name> to authenticate.`
83671
83701
  type: "info",
83672
83702
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
83673
83703
  });
83674
- const { MCPOAuthProvider } = await import("./dist-GQKLLBDW.js");
83704
+ const { MCPOAuthProvider } = await import("./dist-5ASSTNQ6.js");
83675
83705
  let oauthConfig = server.oauth;
83676
83706
  if (!oauthConfig) {
83677
83707
  oauthConfig = { enabled: false };
@@ -103006,6 +103036,7 @@ export {
103006
103036
  Footer,
103007
103037
  getAntigravityInstallInfo,
103008
103038
  build_default,
103039
+ TMUX_SPINNER_INTERVAL_MS,
103009
103040
  CliSpinner,
103010
103041
  MAX_WIDTH,
103011
103042
  ExpandableText,
@@ -1,7 +1,8 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
+ CoreToolCallStatus,
3
4
  checkExhaustive
4
- } from "./chunk-TP236FKO.js";
5
+ } from "./chunk-XTRL4LHU.js";
5
6
  import {
6
7
  __commonJS,
7
8
  __toESM
@@ -464,19 +465,19 @@ var require_react = __commonJS({
464
465
  var import_react = __toESM(require_react(), 1);
465
466
  function mapCoreStatusToDisplayStatus(coreStatus) {
466
467
  switch (coreStatus) {
467
- case "validating" /* Validating */:
468
+ case CoreToolCallStatus.Validating:
468
469
  return "Pending" /* Pending */;
469
- case "awaiting_approval" /* AwaitingApproval */:
470
+ case CoreToolCallStatus.AwaitingApproval:
470
471
  return "Confirming" /* Confirming */;
471
- case "executing" /* Executing */:
472
+ case CoreToolCallStatus.Executing:
472
473
  return "Executing" /* Executing */;
473
- case "success" /* Success */:
474
+ case CoreToolCallStatus.Success:
474
475
  return "Success" /* Success */;
475
- case "cancelled" /* Cancelled */:
476
+ case CoreToolCallStatus.Cancelled:
476
477
  return "Canceled" /* Canceled */;
477
- case "error" /* Error */:
478
+ case CoreToolCallStatus.Error:
478
479
  return "Error" /* Error */;
479
- case "scheduled" /* Scheduled */:
480
+ case CoreToolCallStatus.Scheduled:
480
481
  return "Pending" /* Pending */;
481
482
  default:
482
483
  return checkExhaustive(coreStatus);