@google/gemini-cli 0.38.0 → 0.38.2

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 (28) hide show
  1. package/bundle/{chunk-UTDAP6W7.js → chunk-7DZN7VCC.js} +3 -3
  2. package/bundle/{chunk-ZN2B66X6.js → chunk-AQRXALHQ.js} +71 -59
  3. package/bundle/{chunk-UIKF2OKQ.js → chunk-EA775AOR.js} +36 -28
  4. package/bundle/{chunk-UKTSS4BC.js → chunk-GOUPAQ35.js} +6150 -11466
  5. package/bundle/chunk-IWSCP2GY.js +358524 -0
  6. package/bundle/chunk-Q7CZZHO7.js +85174 -0
  7. package/bundle/{chunk-A5WACHT3.js → chunk-X5TOY4FB.js} +36 -28
  8. package/bundle/{chunk-E3PKFKX6.js → chunk-YZOILRC2.js} +3 -3
  9. package/bundle/{core-3K4DOF2Q.js → core-RAI2NPSI.js} +1 -1
  10. package/bundle/{devtoolsService-7O5W72JB.js → devtoolsService-2DD6XOE6.js} +2 -2
  11. package/bundle/{devtoolsService-6WC7CXEJ.js → devtoolsService-2KNLVOTR.js} +5 -4
  12. package/bundle/{devtoolsService-4VP27OSR.js → devtoolsService-5IYWINEO.js} +2 -2
  13. package/bundle/devtoolsService-KBOQNX7Y.js +871 -0
  14. package/bundle/{dist-3YVD622R.js → dist-652RQ5SX.js} +1 -1
  15. package/bundle/{core-TF7HWCEH.js → dist-AXNLUOHP.js} +2 -2
  16. package/bundle/dist-O2DUQDKJ.js +1962 -0
  17. package/bundle/docs/cli/plan-mode.md +4 -0
  18. package/bundle/gemini.js +7 -7
  19. package/bundle/{interactiveCli-JYMN562N.js → interactiveCli-4OZNCCB5.js} +5 -5
  20. package/bundle/{interactiveCli-RKW6AY7S.js → interactiveCli-DVI6R3HR.js} +272 -255
  21. package/bundle/{interactiveCli-PTUYCBMF.js → interactiveCli-SMQ2327G.js} +5 -5
  22. package/bundle/interactiveCli-XAEPLVZH.js +49974 -0
  23. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  24. package/bundle/{oauth2-provider-NANAQOXS.js → oauth2-provider-57L67BI2.js} +1 -1
  25. package/bundle/{oauth2-provider-UZQMUGRV.js → oauth2-provider-7RYRHEEW.js} +39 -73
  26. package/bundle/oauth2-provider-GBEUTNFH.js +237 -0
  27. package/bundle/{oauth2-provider-EG32OGVI.js → oauth2-provider-YDLJAMOY.js} +1 -1
  28. package/package.json +1 -1
@@ -251363,8 +251363,8 @@ import { createHash } from "node:crypto";
251363
251363
  import * as os12 from "node:os";
251364
251364
 
251365
251365
  // packages/core/src/generated/git-commit.ts
251366
- var GIT_COMMIT_INFO = "e418e123e";
251367
- var CLI_VERSION = "0.38.0-preview.0";
251366
+ var GIT_COMMIT_INFO = "47c35f32f";
251367
+ var CLI_VERSION = "0.38.1";
251368
251368
 
251369
251369
  // packages/core/src/ide/detect-ide.ts
251370
251370
  var IDE_DEFINITIONS = {
@@ -275129,33 +275129,41 @@ function resolvePolicyChain(config2, preferredModel, wrapsAround = false) {
275129
275129
  if (!chain2) {
275130
275130
  chain2 = createSingleModelChain(modelFromConfig);
275131
275131
  }
275132
- return applyDynamicSlicing(chain2, resolvedModel, wrapsAround);
275133
- }
275134
- if (resolvedModel === DEFAULT_GEMINI_FLASH_LITE_MODEL) {
275135
- chain2 = getFlashLitePolicyChain();
275136
- } else if (isGemini3Model(resolvedModel, config2) || isAutoPreferred || isAutoConfigured) {
275137
- if (hasAccessToPreview) {
275138
- const previewEnabled = isGemini3Model(resolvedModel, config2) || preferredModel === PREVIEW_GEMINI_MODEL_AUTO || configuredModel === PREVIEW_GEMINI_MODEL_AUTO;
275139
- chain2 = getModelPolicyChain({
275140
- previewEnabled,
275141
- userTier: config2.getUserTier(),
275142
- useGemini31,
275143
- useGemini31FlashLite,
275144
- useCustomToolModel
275145
- });
275132
+ chain2 = applyDynamicSlicing(chain2, resolvedModel, wrapsAround);
275133
+ } else {
275134
+ if (resolvedModel === DEFAULT_GEMINI_FLASH_LITE_MODEL) {
275135
+ chain2 = getFlashLitePolicyChain();
275136
+ } else if (isGemini3Model(resolvedModel, config2) || isAutoPreferred || isAutoConfigured) {
275137
+ if (hasAccessToPreview) {
275138
+ const previewEnabled = isGemini3Model(resolvedModel, config2) || preferredModel === PREVIEW_GEMINI_MODEL_AUTO || configuredModel === PREVIEW_GEMINI_MODEL_AUTO;
275139
+ chain2 = getModelPolicyChain({
275140
+ previewEnabled,
275141
+ userTier: config2.getUserTier(),
275142
+ useGemini31,
275143
+ useGemini31FlashLite,
275144
+ useCustomToolModel
275145
+ });
275146
+ } else {
275147
+ chain2 = getModelPolicyChain({
275148
+ previewEnabled: false,
275149
+ userTier: config2.getUserTier(),
275150
+ useGemini31,
275151
+ useGemini31FlashLite,
275152
+ useCustomToolModel
275153
+ });
275154
+ }
275146
275155
  } else {
275147
- chain2 = getModelPolicyChain({
275148
- previewEnabled: false,
275149
- userTier: config2.getUserTier(),
275150
- useGemini31,
275151
- useGemini31FlashLite,
275152
- useCustomToolModel
275153
- });
275156
+ chain2 = createSingleModelChain(modelFromConfig);
275154
275157
  }
275155
- } else {
275156
- chain2 = createSingleModelChain(modelFromConfig);
275158
+ chain2 = applyDynamicSlicing(chain2, resolvedModel, wrapsAround);
275159
+ }
275160
+ if (config2?.getApprovalMode?.() === "plan" /* PLAN */) {
275161
+ return chain2.map((policy) => ({
275162
+ ...policy,
275163
+ actions: { ...SILENT_ACTIONS }
275164
+ }));
275157
275165
  }
275158
- return applyDynamicSlicing(chain2, resolvedModel, wrapsAround);
275166
+ return chain2;
275159
275167
  }
275160
275168
  function applyDynamicSlicing(chain2, resolvedModel, wrapsAround) {
275161
275169
  const activeIndex = chain2.findIndex(
@@ -278042,7 +278050,7 @@ function getVersion() {
278042
278050
  }
278043
278051
  versionPromise = (async () => {
278044
278052
  const pkgJson = await getPackageJson(__dirname4);
278045
- return "0.38.0-preview.0";
278053
+ return "0.38.1";
278046
278054
  })();
278047
278055
  return versionPromise;
278048
278056
  }
@@ -333063,7 +333071,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
333063
333071
  return provider;
333064
333072
  }
333065
333073
  case "oauth2": {
333066
- const { OAuth2AuthProvider } = await import("./oauth2-provider-UZQMUGRV.js");
333074
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-YDLJAMOY.js");
333067
333075
  const provider = new OAuth2AuthProvider(
333068
333076
  authConfig,
333069
333077
  options.agentName ?? "unknown",
@@ -156,7 +156,7 @@ import {
156
156
  tokenLimit,
157
157
  uiTelemetryService,
158
158
  yellowBright
159
- } from "./chunk-A5WACHT3.js";
159
+ } from "./chunk-X5TOY4FB.js";
160
160
  import {
161
161
  ApprovalMode,
162
162
  CoreEvent,
@@ -74920,7 +74920,7 @@ var authCommand = {
74920
74920
  import process34 from "node:process";
74921
74921
 
74922
74922
  // packages/cli/src/generated/git-commit.ts
74923
- var GIT_COMMIT_INFO = "e418e123e";
74923
+ var GIT_COMMIT_INFO = "47c35f32f";
74924
74924
 
74925
74925
  // packages/cli/src/ui/utils/historyExportUtils.ts
74926
74926
  import * as fsPromises2 from "node:fs/promises";
@@ -80400,7 +80400,7 @@ Use /mcp auth <server-name> to authenticate.`
80400
80400
  type: "info",
80401
80401
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
80402
80402
  });
80403
- const { MCPOAuthProvider } = await import("./core-3K4DOF2Q.js");
80403
+ const { MCPOAuthProvider } = await import("./core-RAI2NPSI.js");
80404
80404
  let oauthConfig = server.oauth;
80405
80405
  if (!oauthConfig) {
80406
80406
  oauthConfig = { enabled: false };
@@ -730,7 +730,7 @@ import {
730
730
  wrapInAccountChooser,
731
731
  writeToStderr,
732
732
  writeToStdout
733
- } from "./chunk-A5WACHT3.js";
733
+ } from "./chunk-X5TOY4FB.js";
734
734
  import {
735
735
  ACTIVATE_SKILL_TOOL_NAME,
736
736
  ALL_BUILTIN_TOOL_NAMES,
@@ -1,5 +1,5 @@
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
- import "./chunk-UIKF2OKQ.js";
2
+ import "./chunk-EA775AOR.js";
3
3
  import {
4
4
  CoreEvent,
5
5
  coreEvents,
@@ -837,7 +837,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
837
837
  return;
838
838
  }
839
839
  try {
840
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-3YVD622R.js");
840
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-O2DUQDKJ.js");
841
841
  const url = await startDevToolsServer(config);
842
842
  if (shouldLaunchBrowser()) {
843
843
  try {
@@ -1,9 +1,10 @@
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
- import "./chunk-UKTSS4BC.js";
2
+ import "./chunk-GOUPAQ35.js";
3
3
  import {
4
+ CoreEvent,
4
5
  coreEvents,
5
6
  debugLogger
6
- } from "./chunk-Z34XA6FT.js";
7
+ } from "./chunk-ETUADTWF.js";
7
8
  import {
8
9
  wrapper_default
9
10
  } from "./chunk-664ZODQF.js";
@@ -666,7 +667,7 @@ var bridgeAttached = false;
666
667
  function bridgeCoreEvents(capture) {
667
668
  if (bridgeAttached) return;
668
669
  bridgeAttached = true;
669
- coreEvents.on("console-log" /* ConsoleLog */, (payload) => {
670
+ coreEvents.on(CoreEvent.ConsoleLog, (payload) => {
670
671
  capture.logConsole(payload);
671
672
  });
672
673
  }
@@ -836,7 +837,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
836
837
  return;
837
838
  }
838
839
  try {
839
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-TF7HWCEH.js");
840
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-AXNLUOHP.js");
840
841
  const url = await startDevToolsServer(config);
841
842
  if (shouldLaunchBrowser()) {
842
843
  try {
@@ -1,5 +1,5 @@
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
- import "./chunk-A5WACHT3.js";
2
+ import "./chunk-X5TOY4FB.js";
3
3
  import {
4
4
  coreEvents,
5
5
  debugLogger
@@ -836,7 +836,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
836
836
  return;
837
837
  }
838
838
  try {
839
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-3K4DOF2Q.js");
839
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-RAI2NPSI.js");
840
840
  const url = await startDevToolsServer(config);
841
841
  if (shouldLaunchBrowser()) {
842
842
  try {