@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.
- package/bundle/{chunk-UTDAP6W7.js → chunk-7DZN7VCC.js} +3 -3
- package/bundle/{chunk-ZN2B66X6.js → chunk-AQRXALHQ.js} +71 -59
- package/bundle/{chunk-UIKF2OKQ.js → chunk-EA775AOR.js} +36 -28
- package/bundle/{chunk-UKTSS4BC.js → chunk-GOUPAQ35.js} +6150 -11466
- package/bundle/chunk-IWSCP2GY.js +358524 -0
- package/bundle/chunk-Q7CZZHO7.js +85174 -0
- package/bundle/{chunk-A5WACHT3.js → chunk-X5TOY4FB.js} +36 -28
- package/bundle/{chunk-E3PKFKX6.js → chunk-YZOILRC2.js} +3 -3
- package/bundle/{core-3K4DOF2Q.js → core-RAI2NPSI.js} +1 -1
- package/bundle/{devtoolsService-7O5W72JB.js → devtoolsService-2DD6XOE6.js} +2 -2
- package/bundle/{devtoolsService-6WC7CXEJ.js → devtoolsService-2KNLVOTR.js} +5 -4
- package/bundle/{devtoolsService-4VP27OSR.js → devtoolsService-5IYWINEO.js} +2 -2
- package/bundle/devtoolsService-KBOQNX7Y.js +871 -0
- package/bundle/{dist-3YVD622R.js → dist-652RQ5SX.js} +1 -1
- package/bundle/{core-TF7HWCEH.js → dist-AXNLUOHP.js} +2 -2
- package/bundle/dist-O2DUQDKJ.js +1962 -0
- package/bundle/docs/cli/plan-mode.md +4 -0
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-JYMN562N.js → interactiveCli-4OZNCCB5.js} +5 -5
- package/bundle/{interactiveCli-RKW6AY7S.js → interactiveCli-DVI6R3HR.js} +272 -255
- package/bundle/{interactiveCli-PTUYCBMF.js → interactiveCli-SMQ2327G.js} +5 -5
- package/bundle/interactiveCli-XAEPLVZH.js +49974 -0
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-NANAQOXS.js → oauth2-provider-57L67BI2.js} +1 -1
- package/bundle/{oauth2-provider-UZQMUGRV.js → oauth2-provider-7RYRHEEW.js} +39 -73
- package/bundle/oauth2-provider-GBEUTNFH.js +237 -0
- package/bundle/{oauth2-provider-EG32OGVI.js → oauth2-provider-YDLJAMOY.js} +1 -1
- 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 = "
|
|
251367
|
-
var CLI_VERSION = "0.38.
|
|
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
|
-
|
|
275133
|
-
}
|
|
275134
|
-
|
|
275135
|
-
|
|
275136
|
-
|
|
275137
|
-
|
|
275138
|
-
|
|
275139
|
-
|
|
275140
|
-
|
|
275141
|
-
|
|
275142
|
-
|
|
275143
|
-
|
|
275144
|
-
|
|
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 =
|
|
275148
|
-
previewEnabled: false,
|
|
275149
|
-
userTier: config2.getUserTier(),
|
|
275150
|
-
useGemini31,
|
|
275151
|
-
useGemini31FlashLite,
|
|
275152
|
-
useCustomToolModel
|
|
275153
|
-
});
|
|
275156
|
+
chain2 = createSingleModelChain(modelFromConfig);
|
|
275154
275157
|
}
|
|
275155
|
-
|
|
275156
|
-
|
|
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
|
|
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.
|
|
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-
|
|
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-
|
|
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 = "
|
|
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-
|
|
80403
|
+
const { MCPOAuthProvider } = await import("./core-RAI2NPSI.js");
|
|
80404
80404
|
let oauthConfig = server.oauth;
|
|
80405
80405
|
if (!oauthConfig) {
|
|
80406
80406
|
oauthConfig = { enabled: false };
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
2
|
+
import "./chunk-GOUPAQ35.js";
|
|
3
3
|
import {
|
|
4
|
+
CoreEvent,
|
|
4
5
|
coreEvents,
|
|
5
6
|
debugLogger
|
|
6
|
-
} from "./chunk-
|
|
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(
|
|
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("./
|
|
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-
|
|
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-
|
|
839
|
+
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-RAI2NPSI.js");
|
|
840
840
|
const url = await startDevToolsServer(config);
|
|
841
841
|
if (shouldLaunchBrowser()) {
|
|
842
842
|
try {
|