@google/gemini-cli 0.35.0-preview.1 → 0.35.0-preview.3
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-7JZWJYL2.js → chunk-5SBB3P4L.js} +4 -4
- package/bundle/{chunk-RIKAIXXN.js → chunk-BSHOJUT2.js} +7 -11
- package/bundle/{chunk-OK6A2T3J.js → chunk-C2LINL7G.js} +14 -12
- package/bundle/{chunk-OVO7PV7Z.js → chunk-GGMTXEJO.js} +7 -11
- package/bundle/{chunk-J7ZVHCWL.js → chunk-HC2FCDHO.js} +70 -58
- package/bundle/{chunk-FKGF3664.js → chunk-L5MOJUPU.js} +5316 -9979
- package/bundle/{chunk-FIQWQZVG.js → chunk-QO53VEHI.js} +15 -12
- package/bundle/{chunk-DHZSW3D5.js → chunk-UMBTJI7I.js} +4 -4
- package/bundle/chunk-UXRMEIL2.js +92840 -0
- package/bundle/chunk-YTK7AJUV.js +325889 -0
- package/bundle/{core-OSNLJAKB.js → core-LTXVJI4H.js} +2 -2
- package/bundle/{devtoolsService-UPY6AYM7.js → devtoolsService-442KPRIR.js} +3 -3
- package/bundle/{devtoolsService-YJFR2ZTU.js → devtoolsService-R5JE4MLS.js} +3 -3
- package/bundle/{devtoolsService-CH2PM4E2.js → devtoolsService-WKGY5DWT.js} +5 -4
- package/bundle/devtoolsService-WNWR6HYK.js +855 -0
- package/bundle/{core-YBLRHI5E.js → dist-56D2FMJJ.js} +2 -2
- package/bundle/{dist-PQCTLJ67.js → dist-GL2LLCWF.js} +2 -2
- package/bundle/dist-PMCRGIU3.js +1781 -0
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-SIJB4G3Q.js → interactiveCli-6Z6IFUTV.js} +4 -4
- package/bundle/{interactiveCli-AKIKCHLF.js → interactiveCli-7XKQ7W7K.js} +239 -222
- package/bundle/{interactiveCli-3JVKXF42.js → interactiveCli-PZEQS2Z6.js} +4 -4
- package/bundle/interactiveCli-ZWXGL7LQ.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-ZZIJ6OXB.js → oauth2-provider-32N4SW2N.js} +2 -2
- package/bundle/{oauth2-provider-G4RXUPFH.js → oauth2-provider-7CBBPEZS.js} +2 -2
- package/bundle/{oauth2-provider-N6KBVMX3.js → oauth2-provider-L2WMQ3QS.js} +39 -73
- package/bundle/oauth2-provider-V2ZMYLUK.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) {
|
|
@@ -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
|
}
|
|
@@ -150,7 +150,7 @@ import {
|
|
|
150
150
|
tokenLimit,
|
|
151
151
|
uiTelemetryService,
|
|
152
152
|
yellowBright
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-GGMTXEJO.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 = "d1de82c46";
|
|
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-LTXVJI4H.js");
|
|
88100
88100
|
let oauthConfig = server.oauth;
|
|
88101
88101
|
if (!oauthConfig) {
|
|
88102
88102
|
oauthConfig = { enabled: false };
|