@google/gemini-cli 0.35.0-preview.1 → 0.35.0-preview.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-RIKAIXXN.js → chunk-5OVDZKPV.js} +6 -6
- package/bundle/{chunk-FKGF3664.js → chunk-6AQAEYFC.js} +5315 -9974
- package/bundle/{chunk-OK6A2T3J.js → chunk-C2LINL7G.js} +14 -12
- package/bundle/{chunk-OVO7PV7Z.js → chunk-ELVZ5MKI.js} +4 -4
- package/bundle/{chunk-DHZSW3D5.js → chunk-HYF34ISK.js} +4 -4
- package/bundle/{chunk-FIQWQZVG.js → chunk-QO53VEHI.js} +15 -12
- package/bundle/{chunk-7JZWJYL2.js → chunk-SCIFYSWM.js} +4 -4
- package/bundle/{chunk-J7ZVHCWL.js → chunk-TYZCRVGB.js} +70 -58
- package/bundle/chunk-WTYAEXC3.js +325893 -0
- package/bundle/chunk-WXXNCSKU.js +92840 -0
- package/bundle/{core-OSNLJAKB.js → core-ZWMLWHG7.js} +2 -2
- package/bundle/{devtoolsService-UPY6AYM7.js → devtoolsService-DH7MKZL2.js} +3 -3
- package/bundle/{devtoolsService-YJFR2ZTU.js → devtoolsService-EVTQ32UO.js} +3 -3
- package/bundle/{devtoolsService-CH2PM4E2.js → devtoolsService-FPFZEEVK.js} +5 -4
- package/bundle/devtoolsService-XMVPJFZ7.js +855 -0
- package/bundle/{core-YBLRHI5E.js → dist-6LCHGUBD.js} +2 -2
- package/bundle/{dist-PQCTLJ67.js → dist-AWPSKKKO.js} +2 -2
- package/bundle/dist-WOQEPX5R.js +1781 -0
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-SIJB4G3Q.js → interactiveCli-7H3T4KJF.js} +4 -4
- package/bundle/{interactiveCli-AKIKCHLF.js → interactiveCli-E3DWTWRM.js} +239 -222
- package/bundle/{interactiveCli-3JVKXF42.js → interactiveCli-N4QW3NCZ.js} +4 -4
- package/bundle/interactiveCli-Z4Y6XB7M.js +48702 -0
- package/bundle/{memoryDiscovery-2RH76CMO.js → memoryDiscovery-7LUUOJNM.js} +1 -1
- package/bundle/{memoryDiscovery-P6SEGMWA.js → memoryDiscovery-RRX6QF4Y.js} +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-G4RXUPFH.js → oauth2-provider-CPMX7ITW.js} +2 -2
- package/bundle/{oauth2-provider-ZZIJ6OXB.js → oauth2-provider-IU6STKL7.js} +2 -2
- package/bundle/{oauth2-provider-N6KBVMX3.js → oauth2-provider-LTBDSRHY.js} +39 -73
- package/bundle/oauth2-provider-ZWWMTBET.js +238 -0
- package/package.json +1 -1
|
@@ -21271,7 +21271,7 @@ var require_filesubjecttokensupplier = __commonJS({
|
|
|
21271
21271
|
}));
|
|
21272
21272
|
var realpath2 = (0, util_1.promisify)(fs11.realpath ?? (() => {
|
|
21273
21273
|
}));
|
|
21274
|
-
var
|
|
21274
|
+
var lstat2 = (0, util_1.promisify)(fs11.lstat ?? (() => {
|
|
21275
21275
|
}));
|
|
21276
21276
|
var FileSubjectTokenSupplier = class {
|
|
21277
21277
|
filePath;
|
|
@@ -21297,7 +21297,7 @@ var require_filesubjecttokensupplier = __commonJS({
|
|
|
21297
21297
|
let parsedFilePath = this.filePath;
|
|
21298
21298
|
try {
|
|
21299
21299
|
parsedFilePath = await realpath2(parsedFilePath);
|
|
21300
|
-
if (!(await
|
|
21300
|
+
if (!(await lstat2(parsedFilePath)).isFile()) {
|
|
21301
21301
|
throw new Error();
|
|
21302
21302
|
}
|
|
21303
21303
|
} catch (err) {
|
|
@@ -51274,10 +51274,8 @@ async function findProjectRoot2(startDir) {
|
|
|
51274
51274
|
while (true) {
|
|
51275
51275
|
const gitPath = path9.join(currentDir, ".git");
|
|
51276
51276
|
try {
|
|
51277
|
-
|
|
51278
|
-
|
|
51279
|
-
return currentDir;
|
|
51280
|
-
}
|
|
51277
|
+
await fs10.access(gitPath);
|
|
51278
|
+
return currentDir;
|
|
51281
51279
|
} catch (error) {
|
|
51282
51280
|
const isENOENT = typeof error === "object" && error !== null && "code" in error && // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
|
|
51283
51281
|
error.code === "ENOENT";
|
|
@@ -51285,9 +51283,9 @@ async function findProjectRoot2(startDir) {
|
|
|
51285
51283
|
if (!isENOENT && !isTestEnv) {
|
|
51286
51284
|
if (typeof error === "object" && error !== null && "code" in error) {
|
|
51287
51285
|
const fsError = error;
|
|
51288
|
-
logger3.warn(`Error checking for .git
|
|
51286
|
+
logger3.warn(`Error checking for .git at ${gitPath}: ${fsError.message}`);
|
|
51289
51287
|
} else {
|
|
51290
|
-
logger3.warn(`Non-standard error checking for .git
|
|
51288
|
+
logger3.warn(`Non-standard error checking for .git at ${gitPath}: ${String(error)}`);
|
|
51291
51289
|
}
|
|
51292
51290
|
}
|
|
51293
51291
|
}
|
|
@@ -51457,8 +51455,10 @@ async function getEnvironmentMemoryPaths(trustedRoots) {
|
|
|
51457
51455
|
const allPaths = /* @__PURE__ */ new Set();
|
|
51458
51456
|
const traversalPromises = trustedRoots.map(async (root) => {
|
|
51459
51457
|
const resolvedRoot = normalizePath(root);
|
|
51460
|
-
|
|
51461
|
-
|
|
51458
|
+
const gitRoot = await findProjectRoot2(resolvedRoot);
|
|
51459
|
+
const ceiling = gitRoot ? normalizePath(gitRoot) : resolvedRoot;
|
|
51460
|
+
debugLogger.debug("[DEBUG] [MemoryDiscovery] Loading environment memory for trusted root:", resolvedRoot, "(Stopping at", gitRoot ? `git root: ${ceiling})` : `trusted root: ${ceiling} \u2014 no git root found)`);
|
|
51461
|
+
return findUpwardGeminiFiles(resolvedRoot, ceiling);
|
|
51462
51462
|
});
|
|
51463
51463
|
const pathArrays = await Promise.all(traversalPromises);
|
|
51464
51464
|
pathArrays.flat().forEach((p) => allPaths.add(p));
|
|
@@ -51577,7 +51577,9 @@ async function loadJitSubdirectoryMemory(targetPath, trustedRoots, alreadyLoaded
|
|
|
51577
51577
|
debugLogger.debug("[DEBUG] [MemoryDiscovery] JIT memory skipped:", resolvedTarget, "is not in any trusted root.");
|
|
51578
51578
|
return { files: [], fileIdentities: [] };
|
|
51579
51579
|
}
|
|
51580
|
-
|
|
51580
|
+
const gitRoot = await findProjectRoot2(bestRoot);
|
|
51581
|
+
const resolvedCeiling = gitRoot ? normalizePath(gitRoot) : bestRoot;
|
|
51582
|
+
debugLogger.debug("[DEBUG] [MemoryDiscovery] Loading JIT memory for", resolvedTarget, `(Trusted root: ${bestRoot}, Ceiling: ${resolvedCeiling}${gitRoot ? " [git root]" : " [trusted root, no git]"})`);
|
|
51581
51583
|
let startDir = resolvedTarget;
|
|
51582
51584
|
try {
|
|
51583
51585
|
const stat3 = await fs10.stat(resolvedTarget);
|
|
@@ -51587,7 +51589,7 @@ async function loadJitSubdirectoryMemory(targetPath, trustedRoots, alreadyLoaded
|
|
|
51587
51589
|
} catch {
|
|
51588
51590
|
startDir = normalizePath(path9.dirname(resolvedTarget));
|
|
51589
51591
|
}
|
|
51590
|
-
const potentialPaths = await findUpwardGeminiFiles(startDir,
|
|
51592
|
+
const potentialPaths = await findUpwardGeminiFiles(startDir, resolvedCeiling);
|
|
51591
51593
|
if (potentialPaths.length === 0) {
|
|
51592
51594
|
return { files: [], fileIdentities: [] };
|
|
51593
51595
|
}
|
|
@@ -184,7 +184,7 @@ import {
|
|
|
184
184
|
toFriendlyError,
|
|
185
185
|
unescapePath,
|
|
186
186
|
zodToJsonSchema
|
|
187
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-QO53VEHI.js";
|
|
188
188
|
import {
|
|
189
189
|
require_dist,
|
|
190
190
|
require_src
|
|
@@ -218119,7 +218119,7 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
218119
218119
|
var PointerVector = import_vector.default.PointerVector;
|
|
218120
218120
|
|
|
218121
218121
|
// packages/core/src/generated/git-commit.ts
|
|
218122
|
-
var GIT_COMMIT_INFO = "
|
|
218122
|
+
var GIT_COMMIT_INFO = "dd950088c";
|
|
218123
218123
|
var CLI_VERSION = "0.35.0-preview.1";
|
|
218124
218124
|
|
|
218125
218125
|
// packages/core/src/ide/detect-ide.ts
|
|
@@ -312188,7 +312188,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
312188
312188
|
return provider;
|
|
312189
312189
|
}
|
|
312190
312190
|
case "oauth2": {
|
|
312191
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
312191
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-CPMX7ITW.js");
|
|
312192
312192
|
const provider = new OAuth2AuthProvider(
|
|
312193
312193
|
authConfig,
|
|
312194
312194
|
options.agentName ?? "unknown",
|
|
@@ -324455,7 +324455,7 @@ var Config = class {
|
|
|
324455
324455
|
if (this.experimentalJitContext && this.contextManager) {
|
|
324456
324456
|
await this.contextManager.refresh();
|
|
324457
324457
|
} else {
|
|
324458
|
-
const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-
|
|
324458
|
+
const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-RRX6QF4Y.js");
|
|
324459
324459
|
await refreshServerHierarchicalMemory2(this);
|
|
324460
324460
|
}
|
|
324461
324461
|
if (this._geminiClient?.isInitialized()) {
|
|
@@ -150,7 +150,7 @@ import {
|
|
|
150
150
|
tokenLimit,
|
|
151
151
|
uiTelemetryService,
|
|
152
152
|
yellowBright
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-ELVZ5MKI.js";
|
|
154
154
|
import {
|
|
155
155
|
require_undici
|
|
156
156
|
} from "./chunk-37ZTTFQF.js";
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
shortenPath,
|
|
182
182
|
tildeifyPath,
|
|
183
183
|
unescapePath
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-QO53VEHI.js";
|
|
185
185
|
import {
|
|
186
186
|
__commonJS,
|
|
187
187
|
__export,
|
|
@@ -82763,7 +82763,7 @@ var authCommand = {
|
|
|
82763
82763
|
import process29 from "node:process";
|
|
82764
82764
|
|
|
82765
82765
|
// packages/cli/src/generated/git-commit.ts
|
|
82766
|
-
var GIT_COMMIT_INFO = "
|
|
82766
|
+
var GIT_COMMIT_INFO = "dd950088c";
|
|
82767
82767
|
|
|
82768
82768
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
82769
82769
|
import * as fsPromises2 from "node:fs/promises";
|
|
@@ -88096,7 +88096,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
88096
88096
|
type: "info",
|
|
88097
88097
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
88098
88098
|
});
|
|
88099
|
-
const { MCPOAuthProvider } = await import("./core-
|
|
88099
|
+
const { MCPOAuthProvider } = await import("./core-ZWMLWHG7.js");
|
|
88100
88100
|
let oauthConfig = server.oauth;
|
|
88101
88101
|
if (!oauthConfig) {
|
|
88102
88102
|
oauthConfig = { enabled: false };
|
|
@@ -21271,7 +21271,7 @@ var require_filesubjecttokensupplier = __commonJS({
|
|
|
21271
21271
|
}));
|
|
21272
21272
|
var realpath2 = (0, util_1.promisify)(fs11.realpath ?? (() => {
|
|
21273
21273
|
}));
|
|
21274
|
-
var
|
|
21274
|
+
var lstat2 = (0, util_1.promisify)(fs11.lstat ?? (() => {
|
|
21275
21275
|
}));
|
|
21276
21276
|
var FileSubjectTokenSupplier = class {
|
|
21277
21277
|
filePath;
|
|
@@ -21297,7 +21297,7 @@ var require_filesubjecttokensupplier = __commonJS({
|
|
|
21297
21297
|
let parsedFilePath = this.filePath;
|
|
21298
21298
|
try {
|
|
21299
21299
|
parsedFilePath = await realpath2(parsedFilePath);
|
|
21300
|
-
if (!(await
|
|
21300
|
+
if (!(await lstat2(parsedFilePath)).isFile()) {
|
|
21301
21301
|
throw new Error();
|
|
21302
21302
|
}
|
|
21303
21303
|
} catch (err) {
|
|
@@ -51444,10 +51444,8 @@ async function findProjectRoot2(startDir) {
|
|
|
51444
51444
|
while (true) {
|
|
51445
51445
|
const gitPath = path9.join(currentDir, ".git");
|
|
51446
51446
|
try {
|
|
51447
|
-
|
|
51448
|
-
|
|
51449
|
-
return currentDir;
|
|
51450
|
-
}
|
|
51447
|
+
await fs10.access(gitPath);
|
|
51448
|
+
return currentDir;
|
|
51451
51449
|
} catch (error) {
|
|
51452
51450
|
const isENOENT = typeof error === "object" && error !== null && "code" in error && // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
|
|
51453
51451
|
error.code === "ENOENT";
|
|
@@ -51456,11 +51454,11 @@ async function findProjectRoot2(startDir) {
|
|
|
51456
51454
|
if (typeof error === "object" && error !== null && "code" in error) {
|
|
51457
51455
|
const fsError = error;
|
|
51458
51456
|
logger3.warn(
|
|
51459
|
-
`Error checking for .git
|
|
51457
|
+
`Error checking for .git at ${gitPath}: ${fsError.message}`
|
|
51460
51458
|
);
|
|
51461
51459
|
} else {
|
|
51462
51460
|
logger3.warn(
|
|
51463
|
-
`Non-standard error checking for .git
|
|
51461
|
+
`Non-standard error checking for .git at ${gitPath}: ${String(error)}`
|
|
51464
51462
|
);
|
|
51465
51463
|
}
|
|
51466
51464
|
}
|
|
@@ -51679,12 +51677,15 @@ async function getEnvironmentMemoryPaths(trustedRoots) {
|
|
|
51679
51677
|
const allPaths = /* @__PURE__ */ new Set();
|
|
51680
51678
|
const traversalPromises = trustedRoots.map(async (root) => {
|
|
51681
51679
|
const resolvedRoot = normalizePath(root);
|
|
51680
|
+
const gitRoot = await findProjectRoot2(resolvedRoot);
|
|
51681
|
+
const ceiling = gitRoot ? normalizePath(gitRoot) : resolvedRoot;
|
|
51682
51682
|
debugLogger.debug(
|
|
51683
51683
|
"[DEBUG] [MemoryDiscovery] Loading environment memory for trusted root:",
|
|
51684
51684
|
resolvedRoot,
|
|
51685
|
-
"(Stopping
|
|
51685
|
+
"(Stopping at",
|
|
51686
|
+
gitRoot ? `git root: ${ceiling})` : `trusted root: ${ceiling} \u2014 no git root found)`
|
|
51686
51687
|
);
|
|
51687
|
-
return findUpwardGeminiFiles(resolvedRoot,
|
|
51688
|
+
return findUpwardGeminiFiles(resolvedRoot, ceiling);
|
|
51688
51689
|
});
|
|
51689
51690
|
const pathArrays = await Promise.all(traversalPromises);
|
|
51690
51691
|
pathArrays.flat().forEach((p) => allPaths.add(p));
|
|
@@ -51852,10 +51853,12 @@ async function loadJitSubdirectoryMemory(targetPath, trustedRoots, alreadyLoaded
|
|
|
51852
51853
|
);
|
|
51853
51854
|
return { files: [], fileIdentities: [] };
|
|
51854
51855
|
}
|
|
51856
|
+
const gitRoot = await findProjectRoot2(bestRoot);
|
|
51857
|
+
const resolvedCeiling = gitRoot ? normalizePath(gitRoot) : bestRoot;
|
|
51855
51858
|
debugLogger.debug(
|
|
51856
51859
|
"[DEBUG] [MemoryDiscovery] Loading JIT memory for",
|
|
51857
51860
|
resolvedTarget,
|
|
51858
|
-
`(Trusted root: ${bestRoot})`
|
|
51861
|
+
`(Trusted root: ${bestRoot}, Ceiling: ${resolvedCeiling}${gitRoot ? " [git root]" : " [trusted root, no git]"})`
|
|
51859
51862
|
);
|
|
51860
51863
|
let startDir = resolvedTarget;
|
|
51861
51864
|
try {
|
|
@@ -51866,7 +51869,7 @@ async function loadJitSubdirectoryMemory(targetPath, trustedRoots, alreadyLoaded
|
|
|
51866
51869
|
} catch {
|
|
51867
51870
|
startDir = normalizePath(path9.dirname(resolvedTarget));
|
|
51868
51871
|
}
|
|
51869
|
-
const potentialPaths = await findUpwardGeminiFiles(startDir,
|
|
51872
|
+
const potentialPaths = await findUpwardGeminiFiles(startDir, resolvedCeiling);
|
|
51870
51873
|
if (potentialPaths.length === 0) {
|
|
51871
51874
|
return { files: [], fileIdentities: [] };
|
|
51872
51875
|
}
|
|
@@ -161,7 +161,7 @@ import {
|
|
|
161
161
|
tokenLimit,
|
|
162
162
|
uiTelemetryService,
|
|
163
163
|
yellowBright
|
|
164
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-WTYAEXC3.js";
|
|
165
165
|
import {
|
|
166
166
|
require_undici
|
|
167
167
|
} from "./chunk-37ZTTFQF.js";
|
|
@@ -193,7 +193,7 @@ import {
|
|
|
193
193
|
shortenPath,
|
|
194
194
|
tildeifyPath,
|
|
195
195
|
unescapePath
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-C2LINL7G.js";
|
|
197
197
|
import {
|
|
198
198
|
__commonJS,
|
|
199
199
|
__export,
|
|
@@ -82775,7 +82775,7 @@ var authCommand = {
|
|
|
82775
82775
|
import process29 from "node:process";
|
|
82776
82776
|
|
|
82777
82777
|
// packages/cli/src/generated/git-commit.ts
|
|
82778
|
-
var GIT_COMMIT_INFO = "
|
|
82778
|
+
var GIT_COMMIT_INFO = "dd950088c";
|
|
82779
82779
|
|
|
82780
82780
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
82781
82781
|
import * as fsPromises2 from "node:fs/promises";
|
|
@@ -88108,7 +88108,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
88108
88108
|
type: "info",
|
|
88109
88109
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
88110
88110
|
});
|
|
88111
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
88111
|
+
const { MCPOAuthProvider } = await import("./dist-6LCHGUBD.js");
|
|
88112
88112
|
let oauthConfig = server.oauth;
|
|
88113
88113
|
if (!oauthConfig) {
|
|
88114
88114
|
oauthConfig = { enabled: false };
|