@google/gemini-cli 0.46.0-preview.0 → 0.47.0-nightly.20260604.g4196596f7

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-773AJHDP.js → chunk-3W7O744A.js} +7 -7
  2. package/bundle/{chunk-S2ICEQVC.js → chunk-6NI3XGUW.js} +3 -3
  3. package/bundle/{chunk-J444UQD3.js → chunk-A3QBI6HT.js} +1 -1
  4. package/bundle/{chunk-2GMVQS2Q.js → chunk-AW75DLSA.js} +1 -1
  5. package/bundle/{chunk-GTRQQGSJ.js → chunk-BB7JWK6H.js} +1 -1
  6. package/bundle/{chunk-4K3E3G6Z.js → chunk-C2QIEMR3.js} +8 -5
  7. package/bundle/{chunk-BOJOJVNV.js → chunk-CHV5VX6V.js} +1 -1
  8. package/bundle/{chunk-4AGOZ7LL.js → chunk-CRXOPS47.js} +7 -7
  9. package/bundle/{chunk-FIM2LOYZ.js → chunk-CVUIGVVW.js} +84 -41
  10. package/bundle/{chunk-F2LLVPPS.js → chunk-D6S4W2BY.js} +2 -2
  11. package/bundle/{chunk-YMNECODB.js → chunk-DJ4OX7HV.js} +9 -8
  12. package/bundle/{chunk-MFYAVF7Y.js → chunk-EO3RKLTR.js} +67 -54
  13. package/bundle/{chunk-HMR43ZX2.js → chunk-FKA6UHBW.js} +2 -2
  14. package/bundle/{chunk-SHFHGDWR.js → chunk-GRGDQ7OF.js} +2 -2
  15. package/bundle/{chunk-ZXN4VW7M.js → chunk-H3N5WAYS.js} +1 -1
  16. package/bundle/{chunk-QFEJQS5X.js → chunk-IIRRE2XB.js} +1 -1
  17. package/bundle/{chunk-HZNEV3DS.js → chunk-K2SOQJMX.js} +1 -1
  18. package/bundle/{chunk-TDYUKPZH.js → chunk-KAOVKGFU.js} +1 -1
  19. package/bundle/{chunk-5LUCCXOB.js → chunk-MCHAK65W.js} +1 -1
  20. package/bundle/{chunk-RXG3JOOZ.js → chunk-NGEP3723.js} +1 -1
  21. package/bundle/{chunk-HHFFICNK.js → chunk-OQQDPZ7U.js} +92 -43
  22. package/bundle/{chunk-LBE2WKE7.js → chunk-P2LFCR6H.js} +3 -3
  23. package/bundle/{chunk-XRDSBRG4.js → chunk-PML6IHTI.js} +7596 -14082
  24. package/bundle/chunk-PQODER6W.js +81685 -0
  25. package/bundle/{chunk-ZQGZKIDD.js → chunk-S6TN66XT.js} +3 -3
  26. package/bundle/chunk-SHFWC7OK.js +154 -0
  27. package/bundle/chunk-SMQML5YF.js +512 -0
  28. package/bundle/chunk-UGUHWSGX.js +394571 -0
  29. package/bundle/chunk-WMO6YVSB.js +17320 -0
  30. package/bundle/chunk-WXZDGQ54.js +1571 -0
  31. package/bundle/chunk-XV2S2W35.js +118 -0
  32. package/bundle/chunk-XYFHAF63.js +398 -0
  33. package/bundle/{cleanup-2WXD6UQP.js → cleanup-BW23QVLV.js} +2 -2
  34. package/bundle/{cleanup-L3CLNVX6.js → cleanup-JXW2VUDZ.js} +2 -2
  35. package/bundle/{cleanup-SUDL37MT.js → cleanup-KBVHA63R.js} +2 -2
  36. package/bundle/cleanup-R6VVJEFJ.js +32 -0
  37. package/bundle/{core-VVRQ2GQD.js → core-63AY4S7W.js} +3 -1
  38. package/bundle/{devtoolsService-GLW7S6PS.js → devtoolsService-3QDYHBLU.js} +2 -2
  39. package/bundle/{devtoolsService-ZYCBBAV3.js → devtoolsService-6YXHJCBF.js} +2 -2
  40. package/bundle/{devtoolsService-E62WA3CY.js → devtoolsService-RXKSY7NL.js} +4 -3
  41. package/bundle/devtoolsService-YMGOQMUC.js +856 -0
  42. package/bundle/{dist-GPCRVPKS.js → dist-N2CG2AMX.js} +3 -1
  43. package/bundle/{core-MOYKPEYV.js → dist-VGFRXX7L.js} +3 -1
  44. package/bundle/dist-YXW6V43L.js +2140 -0
  45. package/bundle/docs/changelogs/index.md +18 -0
  46. package/bundle/docs/changelogs/latest.md +46 -202
  47. package/bundle/docs/changelogs/preview.md +28 -46
  48. package/bundle/docs/reference/configuration.md +3 -1
  49. package/bundle/{gemini-KV5CHM4H.js → gemini-AAMKVFDD.js} +18 -15
  50. package/bundle/{gemini-2JTOIMGM.js → gemini-EXJ4NN2B.js} +216 -197
  51. package/bundle/{gemini-R5NCXCEL.js → gemini-KQNXT2ZJ.js} +18 -15
  52. package/bundle/gemini-ZYAZIA2G.js +16409 -0
  53. package/bundle/gemini.js +7 -7
  54. package/bundle/{interactiveCli-RMWTSIEN.js → interactiveCli-3IVXIVOK.js} +17 -11
  55. package/bundle/{interactiveCli-7SIMXKNU.js → interactiveCli-3NDTSBQY.js} +323 -298
  56. package/bundle/{interactiveCli-HVAQTBJK.js → interactiveCli-BZXT4YE7.js} +17 -11
  57. package/bundle/interactiveCli-DQQXO4EG.js +34742 -0
  58. package/bundle/{liteRtServerManager-FY23PYSD.js → liteRtServerManager-3QE47ARR.js} +4 -4
  59. package/bundle/{liteRtServerManager-LDS45QKP.js → liteRtServerManager-BQ6ESYAD.js} +4 -4
  60. package/bundle/{liteRtServerManager-BP7XKGNU.js → liteRtServerManager-OHUH3BTG.js} +4 -4
  61. package/bundle/liteRtServerManager-TZR3DY3E.js +65 -0
  62. package/bundle/{oauth2-provider-VVNBQH45.js → oauth2-provider-7XEK25LP.js} +1 -1
  63. package/bundle/{oauth2-provider-4SSSEI6P.js → oauth2-provider-JSOMG32Z.js} +38 -72
  64. package/bundle/{oauth2-provider-KL44D6HV.js → oauth2-provider-TLVZNHJT.js} +1 -1
  65. package/bundle/oauth2-provider-Z6MAYPWZ.js +235 -0
  66. package/bundle/{start-FRM2XDGC.js → start-7ARDPJQK.js} +6 -6
  67. package/bundle/{start-OEPJINIW.js → start-IYTVBQDA.js} +6 -6
  68. package/bundle/{start-DLEOBFRC.js → start-JFCYACG2.js} +6 -6
  69. package/bundle/start-Y7LRN45L.js +18 -0
  70. package/package.json +1 -1
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-BOJOJVNV.js";
9
+ } from "./chunk-K2SOQJMX.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -58,14 +58,14 @@ import {
58
58
  stripUnsafeCharacters,
59
59
  toCodePoints,
60
60
  validateCustomTheme
61
- } from "./chunk-4K3E3G6Z.js";
61
+ } from "./chunk-H3N5WAYS.js";
62
62
  import {
63
63
  isDevelopment
64
- } from "./chunk-SHFHGDWR.js";
64
+ } from "./chunk-FKA6UHBW.js";
65
65
  import {
66
66
  emptyIcon,
67
67
  require_react
68
- } from "./chunk-TDYUKPZH.js";
68
+ } from "./chunk-KAOVKGFU.js";
69
69
  import {
70
70
  ALL_EDITORS,
71
71
  ApprovalMode,
@@ -230,7 +230,7 @@ import {
230
230
  tokenLimit,
231
231
  uiTelemetryService,
232
232
  unescapePath
233
- } from "./chunk-HHFFICNK.js";
233
+ } from "./chunk-OQQDPZ7U.js";
234
234
  import {
235
235
  require_src
236
236
  } from "./chunk-TUDYL3X4.js";
@@ -56501,7 +56501,7 @@ var authCommand = {
56501
56501
  import process28 from "node:process";
56502
56502
 
56503
56503
  // packages/cli/src/generated/git-commit.ts
56504
- var GIT_COMMIT_INFO = "cfcecebe8";
56504
+ var GIT_COMMIT_INFO = "4196596f7";
56505
56505
 
56506
56506
  // packages/cli/src/ui/utils/historyExportUtils.ts
56507
56507
  import * as fsPromises from "node:fs/promises";
@@ -62262,7 +62262,7 @@ Use /mcp auth <server-name> to authenticate.`
62262
62262
  type: "info",
62263
62263
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
62264
62264
  });
62265
- const { MCPOAuthProvider } = await import("./core-VVRQ2GQD.js");
62265
+ const { MCPOAuthProvider } = await import("./core-63AY4S7W.js");
62266
62266
  let oauthConfig = server.oauth;
62267
62267
  if (!oauthConfig) {
62268
62268
  oauthConfig = { enabled: false };
@@ -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-BOJOJVNV.js";
5
+ } from "./chunk-CHV5VX6V.js";
6
6
  import {
7
7
  DEFAULT_PORT,
8
8
  SERVER_START_WAIT_MS,
@@ -14,10 +14,10 @@ import {
14
14
  isServerRunning,
15
15
  resolveGemmaConfig,
16
16
  writeServerProcessInfo
17
- } from "./chunk-4K3E3G6Z.js";
17
+ } from "./chunk-C2QIEMR3.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-HHFFICNK.js";
20
+ } from "./chunk-CVUIGVVW.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -32,7 +32,7 @@ import {
32
32
  require_strip_json_comments,
33
33
  sanitizeFilenamePart,
34
34
  stripAnsi
35
- } from "./chunk-FIM2LOYZ.js";
35
+ } from "./chunk-UGUHWSGX.js";
36
36
  import {
37
37
  __commonJS,
38
38
  __require,
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-HHFFICNK.js";
8
+ } from "./chunk-OQQDPZ7U.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -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-FIM2LOYZ.js";
5
+ } from "./chunk-UGUHWSGX.js";
6
6
  import {
7
7
  __commonJS,
8
8
  __toESM
@@ -1,6 +1,9 @@
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
  AuthProviderType,
4
+ AuthType,
5
+ CoreEvent,
6
+ CoreToolCallStatus,
4
7
  DEFAULT_MODEL_CONFIGS,
5
8
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
6
9
  EDITOR_OPTIONS,
@@ -29,7 +32,7 @@ import {
29
32
  require_strip_json_comments,
30
33
  sanitizeFilenamePart,
31
34
  stripAnsi
32
- } from "./chunk-HHFFICNK.js";
35
+ } from "./chunk-CVUIGVVW.js";
33
36
  import {
34
37
  __commonJS,
35
38
  __require,
@@ -10217,7 +10220,7 @@ function convertSessionToHistoryFormats(messages) {
10217
10220
  args: tool.args,
10218
10221
  description: tool.description || "",
10219
10222
  renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
10220
- status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
10223
+ status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
10221
10224
  resultDisplay: tool.resultDisplay,
10222
10225
  confirmationDetails: void 0
10223
10226
  }))
@@ -16278,8 +16281,8 @@ var LoadedSettings = class {
16278
16281
  // React will pass a listener fn into this subscribe fn
16279
16282
  // that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
16280
16283
  subscribe(listener) {
16281
- coreEvents.on("settings-changed" /* SettingsChanged */, listener);
16282
- return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
16284
+ coreEvents.on(CoreEvent.SettingsChanged, listener);
16285
+ return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
16283
16286
  }
16284
16287
  getSnapshot() {
16285
16288
  return this._snapshot;
@@ -16423,7 +16426,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
16423
16426
  }
16424
16427
  }
16425
16428
  let value = "cloudshell-gca";
16426
- if (selectedAuthType === "vertex-ai" /* USE_VERTEX_AI */) {
16429
+ if (selectedAuthType === AuthType.USE_VERTEX_AI) {
16427
16430
  value = process2.env[USER_GCP_PROJECT];
16428
16431
  }
16429
16432
  if (envFilePath && fs4.existsSync(envFilePath)) {
@@ -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-2GMVQS2Q.js";
4
+ } from "./chunk-IIRRE2XB.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-5LUCCXOB.js";
9
+ } from "./chunk-CHV5VX6V.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -58,14 +58,14 @@ import {
58
58
  stripUnsafeCharacters,
59
59
  toCodePoints,
60
60
  validateCustomTheme
61
- } from "./chunk-J444UQD3.js";
61
+ } from "./chunk-C2QIEMR3.js";
62
62
  import {
63
63
  isDevelopment
64
- } from "./chunk-HMR43ZX2.js";
64
+ } from "./chunk-D6S4W2BY.js";
65
65
  import {
66
66
  emptyIcon,
67
67
  require_react
68
- } from "./chunk-GTRQQGSJ.js";
68
+ } from "./chunk-DJ4OX7HV.js";
69
69
  import {
70
70
  ALL_EDITORS,
71
71
  ApprovalMode,
@@ -243,7 +243,7 @@ import {
243
243
  tokenLimit,
244
244
  uiTelemetryService,
245
245
  unescapePath
246
- } from "./chunk-FIM2LOYZ.js";
246
+ } from "./chunk-CVUIGVVW.js";
247
247
  import {
248
248
  require_src
249
249
  } from "./chunk-TUDYL3X4.js";
@@ -56514,7 +56514,7 @@ var authCommand = {
56514
56514
  import process28 from "node:process";
56515
56515
 
56516
56516
  // packages/cli/src/generated/git-commit.ts
56517
- var GIT_COMMIT_INFO = "480e2e7cd";
56517
+ var GIT_COMMIT_INFO = "bd0bc9a74";
56518
56518
 
56519
56519
  // packages/cli/src/ui/utils/historyExportUtils.ts
56520
56520
  import * as fsPromises from "node:fs/promises";
@@ -62275,7 +62275,7 @@ Use /mcp auth <server-name> to authenticate.`
62275
62275
  type: "info",
62276
62276
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
62277
62277
  });
62278
- const { MCPOAuthProvider } = await import("./dist-GPCRVPKS.js");
62278
+ const { MCPOAuthProvider } = await import("./dist-N2CG2AMX.js");
62279
62279
  let oauthConfig = server.oauth;
62280
62280
  if (!oauthConfig) {
62281
62281
  oauthConfig = { enabled: false };
@@ -3017,8 +3017,8 @@ var require_graceful_fs = __commonJS({
3017
3017
  }
3018
3018
  var fs$copyFile = fs95.copyFile;
3019
3019
  if (fs$copyFile)
3020
- fs95.copyFile = copyFile;
3021
- function copyFile(src, dest, flags2, cb) {
3020
+ fs95.copyFile = copyFile2;
3021
+ function copyFile2(src, dest, flags2, cb) {
3022
3022
  if (typeof flags2 === "function") {
3023
3023
  cb = flags2;
3024
3024
  flags2 = 0;
@@ -14069,7 +14069,7 @@ var require_filesubjecttokensupplier = __commonJS({
14069
14069
  }));
14070
14070
  var realpath5 = (0, util_1.promisify)(fs94.realpath ?? (() => {
14071
14071
  }));
14072
- var lstat5 = (0, util_1.promisify)(fs94.lstat ?? (() => {
14072
+ var lstat6 = (0, util_1.promisify)(fs94.lstat ?? (() => {
14073
14073
  }));
14074
14074
  var FileSubjectTokenSupplier = class {
14075
14075
  filePath;
@@ -14095,7 +14095,7 @@ var require_filesubjecttokensupplier = __commonJS({
14095
14095
  let parsedFilePath = this.filePath;
14096
14096
  try {
14097
14097
  parsedFilePath = await realpath5(parsedFilePath);
14098
- if (!(await lstat5(parsedFilePath)).isFile()) {
14098
+ if (!(await lstat6(parsedFilePath)).isFile()) {
14099
14099
  throw new Error();
14100
14100
  }
14101
14101
  } catch (err2) {
@@ -25004,7 +25004,7 @@ var require_filesubjecttokensupplier2 = __commonJS({
25004
25004
  });
25005
25005
  var realpath5 = (0, util_1.promisify)((_b = fs94.realpath) !== null && _b !== void 0 ? _b : () => {
25006
25006
  });
25007
- var lstat5 = (0, util_1.promisify)((_c = fs94.lstat) !== null && _c !== void 0 ? _c : () => {
25007
+ var lstat6 = (0, util_1.promisify)((_c = fs94.lstat) !== null && _c !== void 0 ? _c : () => {
25008
25008
  });
25009
25009
  var FileSubjectTokenSupplier = class {
25010
25010
  /**
@@ -25027,7 +25027,7 @@ var require_filesubjecttokensupplier2 = __commonJS({
25027
25027
  let parsedFilePath = this.filePath;
25028
25028
  try {
25029
25029
  parsedFilePath = await realpath5(parsedFilePath);
25030
- if (!(await lstat5(parsedFilePath)).isFile()) {
25030
+ if (!(await lstat6(parsedFilePath)).isFile()) {
25031
25031
  throw new Error();
25032
25032
  }
25033
25033
  } catch (err2) {
@@ -275811,6 +275811,7 @@ var PREVIEW_GEMINI_FLASH_MODEL = "gemini-3-flash-preview";
275811
275811
  var DEFAULT_GEMINI_MODEL = "gemini-2.5-pro";
275812
275812
  var DEFAULT_GEMINI_FLASH_MODEL = "gemini-2.5-flash";
275813
275813
  var DEFAULT_GEMINI_3_5_FLASH_MODEL = "gemini-3.5-flash";
275814
+ var SECONDARY_GEMINI_3_5_FLASH_MODEL = "gemini-3-flash";
275814
275815
  function setFlashModels(preview, defaultFlash) {
275815
275816
  PREVIEW_GEMINI_FLASH_MODEL = preview;
275816
275817
  DEFAULT_GEMINI_FLASH_MODEL = defaultFlash;
@@ -275828,6 +275829,7 @@ var VALID_GEMINI_MODELS = /* @__PURE__ */ new Set([
275828
275829
  DEFAULT_GEMINI_MODEL,
275829
275830
  DEFAULT_GEMINI_FLASH_MODEL,
275830
275831
  DEFAULT_GEMINI_3_5_FLASH_MODEL,
275832
+ SECONDARY_GEMINI_3_5_FLASH_MODEL,
275831
275833
  DEFAULT_GEMINI_FLASH_LITE_MODEL,
275832
275834
  GEMMA_4_31B_IT_MODEL,
275833
275835
  GEMMA_4_26B_A4B_IT_MODEL
@@ -275840,10 +275842,10 @@ var GEMINI_MODEL_ALIAS_FLASH = "flash";
275840
275842
  var GEMINI_MODEL_ALIAS_FLASH_LITE = "flash-lite";
275841
275843
  var DEFAULT_GEMINI_EMBEDDING_MODEL = "gemini-embedding-001";
275842
275844
  var DEFAULT_THINKING_MODE = 8192;
275843
- function getAutoModelDescription(hasAccessToPreview, useGemini3_1 = false) {
275845
+ function getAutoModelDescription(hasAccessToPreview, useGemini3_1 = false, useGemini3_5Flash = false) {
275844
275846
  const proModel = hasAccessToPreview ? useGemini3_1 ? PREVIEW_GEMINI_3_1_MODEL : PREVIEW_GEMINI_MODEL : DEFAULT_GEMINI_MODEL;
275845
- const flashModel = hasAccessToPreview ? PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
275846
- return `Let Gemini CLI decide the best model for the task: ${proModel}, ${flashModel}`;
275847
+ const flashModel = hasAccessToPreview ? useGemini3_5Flash ? DEFAULT_GEMINI_3_5_FLASH_MODEL : PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
275848
+ return `Let Gemini CLI decide the best model for the task: ${getDisplayString(proModel)}, ${getDisplayString(flashModel)}`;
275847
275849
  }
275848
275850
  function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config2, useGemini3_5Flash = false) {
275849
275851
  const normalizedModel = Array.isArray(requestedModel) ? String(requestedModel.at(-1) ?? "").trim() || "" : typeof requestedModel !== "string" ? String(requestedModel ?? "").trim() || "" : requestedModel.trim() || "";
@@ -275859,7 +275861,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
275859
275861
  return DEFAULT_GEMINI_FLASH_LITE_MODEL;
275860
275862
  }
275861
275863
  if (resolved2.includes("flash")) {
275862
- return useGemini3_5Flash ? DEFAULT_GEMINI_3_5_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
275864
+ return DEFAULT_GEMINI_FLASH_MODEL;
275863
275865
  }
275864
275866
  return DEFAULT_GEMINI_MODEL;
275865
275867
  }
@@ -275888,7 +275890,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
275888
275890
  break;
275889
275891
  }
275890
275892
  case GEMINI_MODEL_ALIAS_FLASH: {
275891
- resolved = useGemini3_5Flash ? DEFAULT_GEMINI_3_5_FLASH_MODEL : PREVIEW_GEMINI_FLASH_MODEL;
275893
+ resolved = useGemini3_5Flash ? DEFAULT_GEMINI_FLASH_MODEL : PREVIEW_GEMINI_FLASH_MODEL;
275892
275894
  break;
275893
275895
  }
275894
275896
  case GEMINI_MODEL_ALIAS_FLASH_LITE: {
@@ -275903,13 +275905,13 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
275903
275905
  if (resolved === "none") {
275904
275906
  return DEFAULT_GEMINI_FLASH_LITE_MODEL;
275905
275907
  }
275906
- if (useGemini3_5Flash && isFlashModel(resolved)) {
275907
- return DEFAULT_GEMINI_3_5_FLASH_MODEL;
275908
+ if (useGemini3_5Flash && isFlashModel(resolved) && normalizedModel !== PREVIEW_GEMINI_FLASH_MODEL) {
275909
+ return DEFAULT_GEMINI_FLASH_MODEL;
275908
275910
  }
275909
275911
  if (!hasAccessToPreview && isPreviewModel(resolved)) {
275910
275912
  switch (resolved) {
275911
275913
  case PREVIEW_GEMINI_FLASH_MODEL:
275912
- return useGemini3_5Flash ? DEFAULT_GEMINI_3_5_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
275914
+ return DEFAULT_GEMINI_FLASH_MODEL;
275913
275915
  case PREVIEW_GEMINI_MODEL:
275914
275916
  case PREVIEW_GEMINI_3_1_MODEL:
275915
275917
  case PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL:
@@ -275919,7 +275921,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
275919
275921
  return DEFAULT_GEMINI_FLASH_LITE_MODEL;
275920
275922
  }
275921
275923
  if (resolved.includes("flash")) {
275922
- return useGemini3_5Flash ? DEFAULT_GEMINI_3_5_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
275924
+ return DEFAULT_GEMINI_FLASH_MODEL;
275923
275925
  }
275924
275926
  return DEFAULT_GEMINI_MODEL;
275925
275927
  }
@@ -275927,7 +275929,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
275927
275929
  return resolved;
275928
275930
  }
275929
275931
  function isFlashModel(model) {
275930
- return model === DEFAULT_GEMINI_FLASH_MODEL || model === PREVIEW_GEMINI_FLASH_MODEL || model === DEFAULT_GEMINI_3_5_FLASH_MODEL || model === "flash" || model.endsWith("flash");
275932
+ return model === DEFAULT_GEMINI_FLASH_MODEL || model === PREVIEW_GEMINI_FLASH_MODEL || model === DEFAULT_GEMINI_3_5_FLASH_MODEL || model === SECONDARY_GEMINI_3_5_FLASH_MODEL || model === "flash" || model.endsWith("flash");
275931
275933
  }
275932
275934
  function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config2, useGemini3_5Flash = false) {
275933
275935
  if (config2?.getExperimentalDynamicModelConfiguration?.() === true) {
@@ -275940,11 +275942,11 @@ function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false
275940
275942
  }
275941
275943
  if (modelAlias === GEMINI_MODEL_ALIAS_FLASH) {
275942
275944
  if (requestedModel === DEFAULT_GEMINI_MODEL_AUTO || requestedModel === DEFAULT_GEMINI_MODEL) {
275943
- return useGemini3_5Flash ? DEFAULT_GEMINI_3_5_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
275945
+ return DEFAULT_GEMINI_FLASH_MODEL;
275944
275946
  }
275945
275947
  if (requestedModel === PREVIEW_GEMINI_MODEL_AUTO || requestedModel === PREVIEW_GEMINI_MODEL || requestedModel === GEMINI_MODEL_ALIAS_AUTO) {
275946
275948
  if (useGemini3_5Flash) {
275947
- return DEFAULT_GEMINI_3_5_FLASH_MODEL;
275949
+ return DEFAULT_GEMINI_FLASH_MODEL;
275948
275950
  }
275949
275951
  return hasAccessToPreview ? PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
275950
275952
  }
@@ -275960,6 +275962,8 @@ function getDisplayString(model, config2) {
275960
275962
  }
275961
275963
  }
275962
275964
  switch (model) {
275965
+ case "gemini-3-flash":
275966
+ return DEFAULT_GEMINI_3_5_FLASH_MODEL;
275963
275967
  case GEMINI_MODEL_ALIAS_AUTO:
275964
275968
  return "Auto";
275965
275969
  case PREVIEW_GEMINI_MODEL_AUTO:
@@ -279296,8 +279300,8 @@ function isValidToolName(name3, options = {}) {
279296
279300
  }
279297
279301
 
279298
279302
  // packages/core/dist/src/generated/git-commit.js
279299
- var GIT_COMMIT_INFO = "cfcecebe8";
279300
- var CLI_VERSION = "0.46.0-preview.0";
279303
+ var GIT_COMMIT_INFO = "4196596f7";
279304
+ var CLI_VERSION = "0.47.0-nightly.20260604.g4196596f7";
279301
279305
 
279302
279306
  // packages/core/dist/src/ide/detect-ide.js
279303
279307
  var IDE_DEFINITIONS = {
@@ -303462,7 +303466,7 @@ function getVersion() {
303462
303466
  }
303463
303467
  versionPromise = (async () => {
303464
303468
  const pkgJson = await getPackageJson(__dirname4);
303465
- return "0.46.0-preview.0";
303469
+ return "0.47.0-nightly.20260604.g4196596f7";
303466
303470
  })();
303467
303471
  return versionPromise;
303468
303472
  }
@@ -335800,7 +335804,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
335800
335804
  return provider;
335801
335805
  }
335802
335806
  case "oauth2": {
335803
- const { OAuth2AuthProvider } = await import("./oauth2-provider-VVNBQH45.js");
335807
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-JSOMG32Z.js");
335804
335808
  const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
335805
335809
  await provider.initialize();
335806
335810
  return provider;
@@ -335944,6 +335948,7 @@ var ModelConfigService = class _ModelConfigService {
335944
335948
  const definitions = this.config.modelDefinitions ?? {};
335945
335949
  const shouldShowPreviewModels = context2.hasAccessToPreview ?? false;
335946
335950
  const useGemini31 = context2.useGemini3_1 ?? false;
335951
+ const useGemini3_5Flash = context2.useGemini3_5Flash ?? false;
335947
335952
  const mainOptions = Object.entries(definitions).filter(([_2, m]) => {
335948
335953
  if (m.isVisible !== true)
335949
335954
  return false;
@@ -335955,7 +335960,7 @@ var ModelConfigService = class _ModelConfigService {
335955
335960
  }).map(([id, m]) => {
335956
335961
  let description = m.dialogDescription ?? "";
335957
335962
  if (id === "auto") {
335958
- description = getAutoModelDescription(shouldShowPreviewModels, useGemini31);
335963
+ description = getAutoModelDescription(shouldShowPreviewModels, useGemini31, useGemini3_5Flash);
335959
335964
  } else if (id === "auto-gemini-3" && useGemini31) {
335960
335965
  description = description.replace("gemini-3-pro", "gemini-3.1-pro");
335961
335966
  }
@@ -355694,7 +355699,8 @@ ${formattedHistory}
355694
355699
  config2.getUseCustomToolModel(),
355695
355700
  config2.getHasAccessToPreviewModel()
355696
355701
  ]);
355697
- const selectedModel = resolveClassifierModel(context2.requestedModel ?? config2.getModel(), routerResponse.model_choice, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2);
355702
+ const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
355703
+ const selectedModel = resolveClassifierModel(context2.requestedModel ?? config2.getModel(), routerResponse.model_choice, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2, useGemini3_5Flash);
355698
355704
  return {
355699
355705
  model: selectedModel,
355700
355706
  metadata: {
@@ -355855,7 +355861,8 @@ var ClassifierStrategy = class {
355855
355861
  config2.getGemini31Launched(),
355856
355862
  config2.getUseCustomToolModel()
355857
355863
  ]);
355858
- const selectedModel = normalizeModelId(resolveClassifierModel(normalizeModelId(model), routerResponse.model_choice, useGemini3_1, useCustomToolModel, config2.getHasAccessToPreviewModel?.() ?? true, config2));
355864
+ const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
355865
+ const selectedModel = normalizeModelId(resolveClassifierModel(normalizeModelId(model), routerResponse.model_choice, useGemini3_1, useCustomToolModel, config2.getHasAccessToPreviewModel?.() ?? true, config2, useGemini3_5Flash));
355859
355866
  const service = config2.getModelAvailabilityService();
355860
355867
  const snapshot = service.snapshot(selectedModel);
355861
355868
  if (!snapshot.available) {
@@ -355998,7 +356005,8 @@ var NumericalClassifierStrategy = class {
355998
356005
  config2.getGemini31Launched(),
355999
356006
  config2.getUseCustomToolModel()
356000
356007
  ]);
356001
- const selectedModel = normalizeModelId(resolveClassifierModel(normalizeModelId(model), modelAlias, useGemini3_1, useCustomToolModel, config2.getHasAccessToPreviewModel?.() ?? true, config2));
356008
+ const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
356009
+ const selectedModel = normalizeModelId(resolveClassifierModel(normalizeModelId(model), modelAlias, useGemini3_1, useCustomToolModel, config2.getHasAccessToPreviewModel?.() ?? true, config2, useGemini3_5Flash));
356002
356010
  const service = config2.getModelAvailabilityService();
356003
356011
  const snapshot = service.snapshot(selectedModel);
356004
356012
  if (!snapshot.available) {
@@ -356151,8 +356159,9 @@ var ApprovalModeStrategy = class {
356151
356159
  config2.getUseCustomToolModel(),
356152
356160
  config2.getHasAccessToPreviewModel()
356153
356161
  ]);
356162
+ const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
356154
356163
  if (approvalMode === ApprovalMode.PLAN) {
356155
- const proModel = resolveClassifierModel(model, GEMINI_MODEL_ALIAS_PRO, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2);
356164
+ const proModel = resolveClassifierModel(model, GEMINI_MODEL_ALIAS_PRO, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2, useGemini3_5Flash);
356156
356165
  return {
356157
356166
  model: proModel,
356158
356167
  metadata: {
@@ -356162,7 +356171,7 @@ var ApprovalModeStrategy = class {
356162
356171
  }
356163
356172
  };
356164
356173
  } else if (approvedPlanPath) {
356165
- const flashModel = resolveClassifierModel(model, GEMINI_MODEL_ALIAS_FLASH, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2);
356174
+ const flashModel = resolveClassifierModel(model, GEMINI_MODEL_ALIAS_FLASH, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2, useGemini3_5Flash);
356166
356175
  return {
356167
356176
  model: flashModel,
356168
356177
  metadata: {
@@ -356712,9 +356721,12 @@ var DEFAULT_MODEL_CONFIGS = {
356712
356721
  "gemini-3-flash-preview": {
356713
356722
  default: "gemini-3-flash-preview",
356714
356723
  contexts: [
356715
- { condition: { useGemini3_5Flash: true }, target: "gemini-3.5-flash" },
356716
356724
  {
356717
- condition: { hasAccessToPreview: false },
356725
+ condition: { hasAccessToPreview: false, useGemini3_5Flash: true },
356726
+ target: "gemini-3.5-flash"
356727
+ },
356728
+ {
356729
+ condition: { hasAccessToPreview: false, useGemini3_5Flash: false },
356718
356730
  target: "gemini-2.5-flash"
356719
356731
  }
356720
356732
  ]
@@ -361477,6 +361489,7 @@ function createPolicyUpdater(policyEngine, messageBus, storage2) {
361477
361489
  }
361478
361490
  if (message.persist) {
361479
361491
  persistenceQueue = persistenceQueue.then(async () => {
361492
+ let tmpFile;
361480
361493
  try {
361481
361494
  const policyFile = message.persistScope === "workspace" ? storage2.getWorkspaceAutoSavedPolicyPath() : storage2.getAutoSavedPolicyPath();
361482
361495
  await fs73.mkdir(path83.dirname(policyFile), { recursive: true });
@@ -361488,8 +361501,16 @@ function createPolicyUpdater(policyEngine, messageBus, storage2) {
361488
361501
  existingData = parsed;
361489
361502
  }
361490
361503
  } catch (error40) {
361491
- if (!isNodeError(error40) || error40.code !== "ENOENT") {
361492
- debugLogger.warn(`Failed to parse ${policyFile}, overwriting with new policy.`, error40);
361504
+ if (isNodeError(error40) && error40.code === "ENOENT") {
361505
+ } else if (!isNodeError(error40)) {
361506
+ coreEvents.emitFeedback("warning", `Syntax error found in policy file. Backing up corrupted file to ${policyFile}.bak and starting fresh.`);
361507
+ if (!(await fs73.lstat(policyFile).catch(() => null))?.isSymbolicLink()) {
361508
+ await fs73.copyFile(policyFile, `${policyFile}.bak`).catch(() => {
361509
+ });
361510
+ }
361511
+ existingData = {};
361512
+ } else {
361513
+ throw error40;
361493
361514
  }
361494
361515
  }
361495
361516
  if (!existingData.rule) {
@@ -361520,7 +361541,7 @@ function createPolicyUpdater(policyEngine, messageBus, storage2) {
361520
361541
  }
361521
361542
  const newContent = import_toml3.default.stringify(existingData);
361522
361543
  const tmpSuffix = crypto18.randomBytes(8).toString("hex");
361523
- const tmpFile = `${policyFile}.${tmpSuffix}.tmp`;
361544
+ tmpFile = `${policyFile}.${tmpSuffix}.tmp`;
361524
361545
  let handle2;
361525
361546
  try {
361526
361547
  handle2 = await fs73.open(tmpFile, "wx");
@@ -361528,9 +361549,26 @@ function createPolicyUpdater(policyEngine, messageBus, storage2) {
361528
361549
  } finally {
361529
361550
  await handle2?.close();
361530
361551
  }
361531
- await fs73.rename(tmpFile, policyFile);
361552
+ try {
361553
+ await fs73.rename(tmpFile, policyFile);
361554
+ } catch (renameError) {
361555
+ if (isNodeError(renameError) && (renameError.code === "EXDEV" || renameError.code === "EBUSY")) {
361556
+ if ((await fs73.lstat(policyFile).catch(() => null))?.isSymbolicLink())
361557
+ throw renameError;
361558
+ await fs73.copyFile(tmpFile, policyFile);
361559
+ await fs73.unlink(tmpFile).catch(() => {
361560
+ });
361561
+ } else {
361562
+ throw renameError;
361563
+ }
361564
+ }
361532
361565
  } catch (error40) {
361533
- coreEvents.emitFeedback("error", `Failed to persist policy for ${toolName}`, error40);
361566
+ if (tmpFile) {
361567
+ await fs73.unlink(tmpFile).catch(() => {
361568
+ });
361569
+ }
361570
+ const reason = error40 instanceof Error ? error40.message : String(error40);
361571
+ coreEvents.emitFeedback("error", `Failed to persist policy for ${toolName}: ${reason}`, error40);
361534
361572
  }
361535
361573
  });
361536
361574
  }
@@ -375627,7 +375665,11 @@ ${sections.join("\n")}
375627
375665
  return this.experiments?.flags[ExperimentFlags.GEMINI_3_5_FLASH_GA_LAUNCHED]?.boolValue ?? false;
375628
375666
  })();
375629
375667
  if (hasAccess) {
375630
- setFlashModels("gemini-3.5-flash", "gemini-3.5-flash");
375668
+ if (authType === AuthType2.USE_GEMINI) {
375669
+ setFlashModels("gemini-3-flash-preview", "gemini-3.5-flash");
375670
+ } else {
375671
+ setFlashModels("gemini-3-flash", "gemini-3-flash");
375672
+ }
375631
375673
  } else {
375632
375674
  setFlashModels("gemini-3-flash-preview", "gemini-2.5-flash");
375633
375675
  }
@@ -381137,7 +381179,7 @@ import { readdir as readdir11, stat as stat11 } from "node:fs/promises";
381137
381179
  import * as sp2 from "node:path";
381138
381180
 
381139
381181
  // packages/core/node_modules/readdirp/index.js
381140
- import { lstat as lstat3, readdir as readdir10, realpath as realpath4, stat as stat9 } from "node:fs/promises";
381182
+ import { lstat as lstat4, readdir as readdir10, realpath as realpath4, stat as stat9 } from "node:fs/promises";
381141
381183
  import { join as pjoin, relative as prelative, resolve as presolve, sep as psep } from "node:path";
381142
381184
  import { Readable as Readable4 } from "node:stream";
381143
381185
  var EntryTypes = {
@@ -381218,7 +381260,7 @@ var ReaddirpStream = class extends Readable4 {
381218
381260
  const { root, type: type2 } = opts;
381219
381261
  this._fileFilter = normalizeFilter(opts.fileFilter);
381220
381262
  this._directoryFilter = normalizeFilter(opts.directoryFilter);
381221
- const statMethod = opts.lstat ? lstat3 : stat9;
381263
+ const statMethod = opts.lstat ? lstat4 : stat9;
381222
381264
  if (wantBigintFsStats) {
381223
381265
  this._stat = (path113) => statMethod(path113, { bigint: true });
381224
381266
  } else {
@@ -381328,7 +381370,7 @@ var ReaddirpStream = class extends Readable4 {
381328
381370
  const full = entry.fullPath;
381329
381371
  try {
381330
381372
  const entryRealPath = await realpath4(full);
381331
- const entryRealPathStats = await lstat3(entryRealPath);
381373
+ const entryRealPathStats = await lstat4(entryRealPath);
381332
381374
  if (entryRealPathStats.isFile()) {
381333
381375
  return "file";
381334
381376
  }
@@ -381371,7 +381413,7 @@ function readdirp(root, options = {}) {
381371
381413
 
381372
381414
  // packages/core/node_modules/chokidar/handler.js
381373
381415
  import { watch as fs_watch, unwatchFile, watchFile } from "node:fs";
381374
- import { realpath as fsrealpath, lstat as lstat4, open as open7, stat as stat10 } from "node:fs/promises";
381416
+ import { realpath as fsrealpath, lstat as lstat5, open as open7, stat as stat10 } from "node:fs/promises";
381375
381417
  import { type as osType } from "node:os";
381376
381418
  import * as sp from "node:path";
381377
381419
  var STR_DATA = "data";
@@ -381398,7 +381440,7 @@ var EVENTS = {
381398
381440
  };
381399
381441
  var EV = EVENTS;
381400
381442
  var THROTTLE_MODE_WATCH = "watch";
381401
- var statMethods = { lstat: lstat4, stat: stat10 };
381443
+ var statMethods = { lstat: lstat5, stat: stat10 };
381402
381444
  var KEY_LISTENERS = "listeners";
381403
381445
  var KEY_ERR = "errHandlers";
381404
381446
  var KEY_RAW = "rawEmitters";
@@ -393341,6 +393383,7 @@ export {
393341
393383
  DEFAULT_GEMINI_MODEL,
393342
393384
  DEFAULT_GEMINI_FLASH_MODEL,
393343
393385
  DEFAULT_GEMINI_3_5_FLASH_MODEL,
393386
+ SECONDARY_GEMINI_3_5_FLASH_MODEL,
393344
393387
  setFlashModels,
393345
393388
  DEFAULT_GEMINI_FLASH_LITE_MODEL,
393346
393389
  PREVIEW_GEMINI_FLASH_LITE_MODEL,
@@ -1,13 +1,13 @@
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-QFEJQS5X.js";
4
+ } from "./chunk-IIRRE2XB.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-XRDSBRG4.js";
10
+ } from "./chunk-CVUIGVVW.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -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-XRDSBRG4.js";
5
+ } from "./chunk-CVUIGVVW.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);