@google/gemini-cli 0.43.0-preview.0 → 0.44.0-nightly.20260513.g5ee05c775
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-LFGJVOVZ.js → chunk-27SPXGT2.js} +24 -17
- package/bundle/{chunk-UIG2IVPJ.js → chunk-2VH3SA6M.js} +11 -9
- package/bundle/{chunk-X26T73X6.js → chunk-3KOQHVJU.js} +3 -3
- package/bundle/{chunk-HQXINMBL.js → chunk-4QQ5AHZP.js} +2 -2
- package/bundle/{chunk-P4UQCQUB.js → chunk-5EEEHNEE.js} +3 -3
- package/bundle/{chunk-WQOLTO3C.js → chunk-5SMSFUPB.js} +1 -1
- package/bundle/{chunk-SAISHGWW.js → chunk-AC2EWTF7.js} +69 -21
- package/bundle/{chunk-46T44JOY.js → chunk-ATSNFRDF.js} +1 -1
- package/bundle/{chunk-43AGRA7S.js → chunk-BA752AEU.js} +3 -3
- package/bundle/{chunk-JENIU3E3.js → chunk-FGYOOMPI.js} +1 -1
- package/bundle/{chunk-PYLHDAUK.js → chunk-FK45PHSI.js} +3 -3
- package/bundle/{chunk-6XOSIMPZ.js → chunk-FTY6BJEY.js} +9 -8
- package/bundle/{chunk-MRHFLHPJ.js → chunk-GCWBZXBS.js} +2 -2
- package/bundle/chunk-I2JHD4D3.js +512 -0
- package/bundle/{chunk-PSWUV2OO.js → chunk-IZJOLGNO.js} +3 -3
- package/bundle/{chunk-LBQFRHYD.js → chunk-J4YAW3P3.js} +1 -1
- package/bundle/chunk-KADNKBXT.js +118 -0
- package/bundle/{chunk-UNAVBUTP.js → chunk-LF33N5QM.js} +7030 -13068
- package/bundle/{chunk-Q23X5R4A.js → chunk-LO22NRY4.js} +24 -17
- package/bundle/{chunk-UJ26GAE5.js → chunk-M7OUJJZ2.js} +1 -1
- package/bundle/{chunk-4TLQKGTR.js → chunk-MFNKZZOB.js} +1 -1
- package/bundle/chunk-MLPM54XD.js +357247 -0
- package/bundle/{chunk-N6QYTC2T.js → chunk-N22WUHJE.js} +1 -1
- package/bundle/{chunk-QYUN3J2L.js → chunk-OC7XGTLV.js} +84 -64
- package/bundle/{chunk-MXKXLNQD.js → chunk-QDEK3TQ6.js} +3 -3
- package/bundle/{chunk-PGJUNQPO.js → chunk-QMXQUBC4.js} +11 -9
- package/bundle/chunk-TBHMNRI3.js +1571 -0
- package/bundle/{chunk-T3SUXLQQ.js → chunk-TOOOS4HD.js} +2 -2
- package/bundle/{chunk-SYD5SJFT.js → chunk-UHSQLPNG.js} +18 -13
- package/bundle/chunk-USS2A6NQ.js +156 -0
- package/bundle/chunk-WMTLLWRC.js +391 -0
- package/bundle/chunk-XDWZDV7C.js +17250 -0
- package/bundle/{chunk-NBRZ4A3S.js → chunk-YBYQH75I.js} +88 -44
- package/bundle/chunk-ZZN56QZ3.js +81656 -0
- package/bundle/{cleanup-EIZJH2E3.js → cleanup-2H3SANYB.js} +3 -3
- package/bundle/{cleanup-MI76P55B.js → cleanup-7GY7BVC6.js} +3 -3
- package/bundle/{cleanup-NZBQYB7U.js → cleanup-FERREFU6.js} +3 -3
- package/bundle/cleanup-VIITMMDH.js +33 -0
- package/bundle/{core-T2TBFAYG.js → core-GS6NXK7Y.js} +2 -2
- package/bundle/{devtoolsService-FYTOIC37.js → devtoolsService-FKC6Y4OE.js} +3 -3
- package/bundle/{devtoolsService-7KZDSYEF.js → devtoolsService-K2DRCZEY.js} +5 -4
- package/bundle/{devtoolsService-LV5NJ2BT.js → devtoolsService-PS6RYICL.js} +3 -3
- package/bundle/devtoolsService-ZDXC2NPD.js +857 -0
- package/bundle/{dist-ETX67B7P.js → dist-S3YUNQKP.js} +2 -2
- package/bundle/{core-ERSGIOMQ.js → dist-TBGNMYU2.js} +2 -2
- package/bundle/dist-ZEW43MLQ.js +2124 -0
- package/bundle/docs/changelogs/index.md +16 -0
- package/bundle/docs/changelogs/latest.md +259 -106
- package/bundle/docs/changelogs/preview.md +178 -227
- package/bundle/{gemini-JKWQQTKP.js → gemini-6YGVETF3.js} +20 -16
- package/bundle/{gemini-IVKBXHDT.js → gemini-7FCGNXOV.js} +207 -189
- package/bundle/gemini-IXZUGRVP.js +16360 -0
- package/bundle/{gemini-Z77GAAR6.js → gemini-WYTY4CD5.js} +20 -16
- package/bundle/gemini.js +8 -8
- package/bundle/{interactiveCli-36WZS6KT.js → interactiveCli-A2FV6NYD.js} +26 -24
- package/bundle/{interactiveCli-BQ36B66Z.js → interactiveCli-DWNRHVIB.js} +332 -311
- package/bundle/{interactiveCli-SME5QTEN.js → interactiveCli-H7N4UXVQ.js} +26 -24
- package/bundle/interactiveCli-XRZEELCX.js +34754 -0
- package/bundle/{liteRtServerManager-ISYDOBNC.js → liteRtServerManager-5C5EONBK.js} +5 -5
- package/bundle/{liteRtServerManager-2QD4R3A3.js → liteRtServerManager-NQKPNCLR.js} +5 -5
- package/bundle/{liteRtServerManager-N6OMT6W5.js → liteRtServerManager-UJBPII3P.js} +5 -5
- package/bundle/liteRtServerManager-UZCAJJCS.js +66 -0
- package/bundle/{memoryDiscovery-SJ7P6RCN.js → memoryDiscovery-ALKMYAPP.js} +1 -1
- package/bundle/{memoryDiscovery-LLSKN6HL.js → memoryDiscovery-XFCKEF3F.js} +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-TZF6EZRX.js → oauth2-provider-JNOY6NUI.js} +2 -2
- package/bundle/{oauth2-provider-DOSIH6VE.js → oauth2-provider-O6OA5EMU.js} +2 -2
- package/bundle/{oauth2-provider-VFOABWBW.js → oauth2-provider-QYCLASEA.js} +39 -73
- package/bundle/oauth2-provider-VWLTUFO7.js +237 -0
- package/bundle/{start-6NONW677.js → start-6FV3VPPH.js} +7 -7
- package/bundle/{start-M6MUPEJS.js → start-IWAUTCYF.js} +7 -7
- package/bundle/{start-3GPIRK3E.js → start-L4DAQUQM.js} +7 -7
- package/bundle/start-XTXUKP77.js +19 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
exitCli,
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FGYOOMPI.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-
|
|
61
|
+
} from "./chunk-UHSQLPNG.js";
|
|
62
62
|
import {
|
|
63
63
|
isDevelopment
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-BA752AEU.js";
|
|
65
65
|
import {
|
|
66
66
|
emptyIcon,
|
|
67
67
|
require_react
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-I2JHD4D3.js";
|
|
69
69
|
import {
|
|
70
70
|
AsyncFzf,
|
|
71
71
|
AuthType,
|
|
@@ -213,7 +213,7 @@ import {
|
|
|
213
213
|
stripAnsi,
|
|
214
214
|
tokenLimit,
|
|
215
215
|
uiTelemetryService
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-AC2EWTF7.js";
|
|
217
217
|
import {
|
|
218
218
|
ApprovalMode,
|
|
219
219
|
CoreEvent,
|
|
@@ -240,7 +240,7 @@ import {
|
|
|
240
240
|
shortenPath,
|
|
241
241
|
tildeifyPath,
|
|
242
242
|
unescapePath
|
|
243
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-M7OUJJZ2.js";
|
|
244
244
|
import {
|
|
245
245
|
require_src
|
|
246
246
|
} from "./chunk-RJTRUG2J.js";
|
|
@@ -40460,10 +40460,7 @@ function recursivelyHydrateStrings(obj, values) {
|
|
|
40460
40460
|
}
|
|
40461
40461
|
if (Array.isArray(obj)) {
|
|
40462
40462
|
return obj.map(
|
|
40463
|
-
(item) => (
|
|
40464
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
40465
|
-
recursivelyHydrateStrings(item, values)
|
|
40466
|
-
)
|
|
40463
|
+
(item) => recursivelyHydrateStrings(item, values)
|
|
40467
40464
|
);
|
|
40468
40465
|
}
|
|
40469
40466
|
if (typeof obj === "object" && obj !== null) {
|
|
@@ -40558,7 +40555,9 @@ async function maybePromptForSettings(extensionConfig, extensionId, requestSetti
|
|
|
40558
40555
|
settingsChanges.promptForEnv
|
|
40559
40556
|
)) {
|
|
40560
40557
|
const answer = await requestSetting(setting);
|
|
40561
|
-
|
|
40558
|
+
if (answer !== void 0) {
|
|
40559
|
+
allSettings[setting.envVar] = answer;
|
|
40560
|
+
}
|
|
40562
40561
|
}
|
|
40563
40562
|
const nonSensitiveSettings = {};
|
|
40564
40563
|
for (const setting of settings) {
|
|
@@ -40609,7 +40608,7 @@ async function promptForSetting(setting) {
|
|
|
40609
40608
|
message: `${setting.name}
|
|
40610
40609
|
${setting.description}`
|
|
40611
40610
|
});
|
|
40612
|
-
return response.value;
|
|
40611
|
+
return typeof response.value === "string" ? response.value : void 0;
|
|
40613
40612
|
}
|
|
40614
40613
|
async function getScopedEnvContents(extensionConfig, extensionId, scope, workspaceDir) {
|
|
40615
40614
|
const { name: extensionName } = extensionConfig;
|
|
@@ -40668,6 +40667,9 @@ async function updateSetting(extensionConfig, extensionId, settingKey, requestSe
|
|
|
40668
40667
|
return;
|
|
40669
40668
|
}
|
|
40670
40669
|
const newValue = await requestSetting(settingToUpdate);
|
|
40670
|
+
if (newValue === void 0) {
|
|
40671
|
+
return;
|
|
40672
|
+
}
|
|
40671
40673
|
const keychain = new KeychainTokenStorage(
|
|
40672
40674
|
getKeychainStorageName(extensionName, extensionId, scope, workspaceDir)
|
|
40673
40675
|
);
|
|
@@ -40888,7 +40890,12 @@ var ExtensionEnablementManager = class {
|
|
|
40888
40890
|
readConfig() {
|
|
40889
40891
|
try {
|
|
40890
40892
|
const content = fs12.readFileSync(this.configFilePath, "utf-8");
|
|
40891
|
-
|
|
40893
|
+
const parsed = JSON.parse(content);
|
|
40894
|
+
const schema = external_exports.record(
|
|
40895
|
+
external_exports.string(),
|
|
40896
|
+
external_exports.object({ overrides: external_exports.array(external_exports.string()) })
|
|
40897
|
+
);
|
|
40898
|
+
return schema.parse(parsed);
|
|
40892
40899
|
} catch (error) {
|
|
40893
40900
|
if (error instanceof Error && "code" in error && error.code === "ENOENT") {
|
|
40894
40901
|
return {};
|
|
@@ -44395,7 +44402,7 @@ var defaultRequestConfirmation = async (message) => {
|
|
|
44395
44402
|
message,
|
|
44396
44403
|
initial: false
|
|
44397
44404
|
});
|
|
44398
|
-
return response.confirm;
|
|
44405
|
+
return typeof response.confirm === "boolean" ? response.confirm : false;
|
|
44399
44406
|
};
|
|
44400
44407
|
async function getExtensionManager() {
|
|
44401
44408
|
const workspaceDir = process.cwd();
|
|
@@ -56456,7 +56463,7 @@ var authCommand = {
|
|
|
56456
56463
|
import process28 from "node:process";
|
|
56457
56464
|
|
|
56458
56465
|
// packages/cli/src/generated/git-commit.ts
|
|
56459
|
-
var GIT_COMMIT_INFO = "
|
|
56466
|
+
var GIT_COMMIT_INFO = "5ee05c775";
|
|
56460
56467
|
|
|
56461
56468
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
56462
56469
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -62217,7 +62224,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
62217
62224
|
type: "info",
|
|
62218
62225
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
62219
62226
|
});
|
|
62220
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
62227
|
+
const { MCPOAuthProvider } = await import("./dist-ZEW43MLQ.js");
|
|
62221
62228
|
let oauthConfig = server.oauth;
|
|
62222
62229
|
if (!oauthConfig) {
|
|
62223
62230
|
oauthConfig = { enabled: false };
|
|
@@ -80623,7 +80630,7 @@ var getLatestGitHubRelease = async (proxy) => {
|
|
|
80623
80630
|
if (!releaseTag) {
|
|
80624
80631
|
throw new Error(`Response did not include tag_name field`);
|
|
80625
80632
|
}
|
|
80626
|
-
return releaseTag;
|
|
80633
|
+
return typeof releaseTag === "string" ? releaseTag : "";
|
|
80627
80634
|
} catch (error) {
|
|
80628
80635
|
debugLogger.debug(
|
|
80629
80636
|
`Failed to determine latest run-gemini-cli release:`,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
require_strip_json_comments,
|
|
23
23
|
sanitizeFilenamePart,
|
|
24
24
|
stripAnsi
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LF33N5QM.js";
|
|
26
26
|
import {
|
|
27
27
|
CoreEvent,
|
|
28
28
|
FatalConfigError,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
external_exports,
|
|
34
34
|
getErrorMessage,
|
|
35
35
|
homedir
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-M7OUJJZ2.js";
|
|
37
37
|
import {
|
|
38
38
|
__commonJS,
|
|
39
39
|
__require,
|
|
@@ -15623,17 +15623,19 @@ function resolveEnvVarsInObjectInternal(obj, visited, customEnv) {
|
|
|
15623
15623
|
}
|
|
15624
15624
|
if (Array.isArray(obj)) {
|
|
15625
15625
|
if (visited.has(obj)) {
|
|
15626
|
-
|
|
15626
|
+
const copy = [...obj];
|
|
15627
|
+
const isTArray2 = (val) => Array.isArray(val);
|
|
15628
|
+
if (isTArray2(copy)) return copy;
|
|
15629
|
+
throw new Error("Unreachable");
|
|
15627
15630
|
}
|
|
15628
15631
|
visited.add(obj);
|
|
15629
|
-
const
|
|
15630
|
-
(item) => (
|
|
15631
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
15632
|
-
resolveEnvVarsInObjectInternal(item, visited, customEnv)
|
|
15633
|
-
)
|
|
15632
|
+
const mapped = obj.map(
|
|
15633
|
+
(item) => resolveEnvVarsInObjectInternal(item, visited, customEnv)
|
|
15634
15634
|
);
|
|
15635
15635
|
visited.delete(obj);
|
|
15636
|
-
|
|
15636
|
+
const isTArray = (val) => Array.isArray(val);
|
|
15637
|
+
if (isTArray(mapped)) return mapped;
|
|
15638
|
+
throw new Error("Unreachable");
|
|
15637
15639
|
}
|
|
15638
15640
|
if (typeof obj === "object") {
|
|
15639
15641
|
if (visited.has(obj)) {
|
|
@@ -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-
|
|
5
|
+
} from "./chunk-MFNKZZOB.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-
|
|
17
|
+
} from "./chunk-2VH3SA6M.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-M7OUJJZ2.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
isTelemetrySdkInitialized,
|
|
5
5
|
resetBrowserSession,
|
|
6
6
|
shutdownTelemetry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YBYQH75I.js";
|
|
8
8
|
import {
|
|
9
9
|
Storage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-N22WUHJE.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/cleanup.ts
|
|
13
13
|
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
|
exitCli,
|
|
4
4
|
require_source
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FGYOOMPI.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-
|
|
17
|
+
} from "./chunk-UHSQLPNG.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-M7OUJJZ2.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|
|
@@ -224,7 +224,7 @@ import {
|
|
|
224
224
|
toPathKey,
|
|
225
225
|
unescapePath,
|
|
226
226
|
zodToJsonSchema
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-M7OUJJZ2.js";
|
|
228
228
|
import {
|
|
229
229
|
wrapper_default
|
|
230
230
|
} from "./chunk-664ZODQF.js";
|
|
@@ -245820,7 +245820,12 @@ async function fetchCachedCredentials() {
|
|
|
245820
245820
|
for (const keyFile of pathsToTry) {
|
|
245821
245821
|
try {
|
|
245822
245822
|
const keyFileString = await fs20.readFile(keyFile, "utf-8");
|
|
245823
|
-
|
|
245823
|
+
const parsed = JSON.parse(keyFileString);
|
|
245824
|
+
const isOAuthCreds = (val) => typeof val === "object" && val !== null;
|
|
245825
|
+
if (isOAuthCreds(parsed)) {
|
|
245826
|
+
return parsed;
|
|
245827
|
+
}
|
|
245828
|
+
throw new Error("Invalid credentials format");
|
|
245824
245829
|
} catch (error40) {
|
|
245825
245830
|
debugLogger.debug(`Failed to load credentials from ${keyFile}:`, getErrorMessage(error40));
|
|
245826
245831
|
}
|
|
@@ -246294,8 +246299,8 @@ var EventMetadataKey;
|
|
|
246294
246299
|
})(EventMetadataKey || (EventMetadataKey = {}));
|
|
246295
246300
|
|
|
246296
246301
|
// packages/core/dist/src/generated/git-commit.js
|
|
246297
|
-
var GIT_COMMIT_INFO = "
|
|
246298
|
-
var CLI_VERSION = "0.
|
|
246302
|
+
var GIT_COMMIT_INFO = "5ee05c775";
|
|
246303
|
+
var CLI_VERSION = "0.44.0-nightly.20260512.g022e8baef";
|
|
246299
246304
|
|
|
246300
246305
|
// packages/core/dist/src/ide/detect-ide.js
|
|
246301
246306
|
var IDE_DEFINITIONS = {
|
|
@@ -269026,7 +269031,12 @@ async function getConnectionConfigFromFile(pid) {
|
|
|
269026
269031
|
try {
|
|
269027
269032
|
const portFile = path26.join(os17.tmpdir(), "gemini", "ide", `gemini-ide-server-${pid}.json`);
|
|
269028
269033
|
const portFileContents = await fs29.promises.readFile(portFile, "utf8");
|
|
269029
|
-
|
|
269034
|
+
const parsed = JSON.parse(portFileContents);
|
|
269035
|
+
const isConfig = (val) => typeof val === "object" && val !== null;
|
|
269036
|
+
if (isConfig(parsed)) {
|
|
269037
|
+
return parsed;
|
|
269038
|
+
}
|
|
269039
|
+
throw new Error("Invalid connection config format");
|
|
269030
269040
|
} catch {
|
|
269031
269041
|
}
|
|
269032
269042
|
const portFileDir = path26.join(os17.tmpdir(), "gemini", "ide");
|
|
@@ -269054,7 +269064,12 @@ async function getConnectionConfigFromFile(pid) {
|
|
|
269054
269064
|
}
|
|
269055
269065
|
const parsedContents = fileContents.map((content) => {
|
|
269056
269066
|
try {
|
|
269057
|
-
|
|
269067
|
+
const parsed = JSON.parse(content);
|
|
269068
|
+
const isConfig = (val) => typeof val === "object" && val !== null;
|
|
269069
|
+
if (isConfig(parsed)) {
|
|
269070
|
+
return parsed;
|
|
269071
|
+
}
|
|
269072
|
+
return void 0;
|
|
269058
269073
|
} catch (e2) {
|
|
269059
269074
|
logger.debug("Failed to parse JSON from config file: ", e2);
|
|
269060
269075
|
return void 0;
|
|
@@ -269396,7 +269411,7 @@ function getVersion() {
|
|
|
269396
269411
|
}
|
|
269397
269412
|
versionPromise = (async () => {
|
|
269398
269413
|
const pkgJson = await getPackageJson(__dirname4);
|
|
269399
|
-
return "0.
|
|
269414
|
+
return "0.44.0-nightly.20260512.g022e8baef";
|
|
269400
269415
|
})();
|
|
269401
269416
|
return versionPromise;
|
|
269402
269417
|
}
|
|
@@ -269612,8 +269627,11 @@ var IdeClient = class _IdeClient {
|
|
|
269612
269627
|
if (textPart?.text) {
|
|
269613
269628
|
try {
|
|
269614
269629
|
const parsedJson = JSON.parse(textPart.text);
|
|
269615
|
-
if (parsedJson
|
|
269616
|
-
|
|
269630
|
+
if (parsedJson) {
|
|
269631
|
+
const content = parsedJson.content;
|
|
269632
|
+
if (typeof content === "string") {
|
|
269633
|
+
return content;
|
|
269634
|
+
}
|
|
269617
269635
|
}
|
|
269618
269636
|
if (parsedJson && parsedJson.content === null) {
|
|
269619
269637
|
return void 0;
|
|
@@ -270941,7 +270959,12 @@ var BaseLlmClient = class {
|
|
|
270941
270959
|
responseMimeType: "application/json"
|
|
270942
270960
|
}
|
|
270943
270961
|
}, shouldRetryOnContent, "generateJson", role);
|
|
270944
|
-
|
|
270962
|
+
const parsed = JSON.parse(this.cleanJsonResponse(getResponseText(result2).trim(), model));
|
|
270963
|
+
const isRecord3 = (val) => typeof val === "object" && val !== null && !Array.isArray(val);
|
|
270964
|
+
if (isRecord3(parsed)) {
|
|
270965
|
+
return parsed;
|
|
270966
|
+
}
|
|
270967
|
+
throw new Error("Invalid JSON response format from LLM");
|
|
270945
270968
|
}
|
|
270946
270969
|
async generateEmbedding(texts) {
|
|
270947
270970
|
if (!texts || texts.length === 0) {
|
|
@@ -273904,7 +273927,12 @@ var FakeContentGenerator = class _FakeContentGenerator {
|
|
|
273904
273927
|
return response.response;
|
|
273905
273928
|
}
|
|
273906
273929
|
async generateContent(request, _userPromptId, role) {
|
|
273907
|
-
|
|
273930
|
+
const response = this.getNextResponse("generateContent", request);
|
|
273931
|
+
Object.setPrototypeOf(response, GenerateContentResponse.prototype);
|
|
273932
|
+
if (response instanceof GenerateContentResponse) {
|
|
273933
|
+
return response;
|
|
273934
|
+
}
|
|
273935
|
+
throw new Error("Failed to create GenerateContentResponse");
|
|
273908
273936
|
}
|
|
273909
273937
|
async generateContentStream(request, _userPromptId, role) {
|
|
273910
273938
|
const responses = this.getNextResponse("generateContentStream", request);
|
|
@@ -273919,7 +273947,12 @@ var FakeContentGenerator = class _FakeContentGenerator {
|
|
|
273919
273947
|
return this.getNextResponse("countTokens", request);
|
|
273920
273948
|
}
|
|
273921
273949
|
async embedContent(request) {
|
|
273922
|
-
|
|
273950
|
+
const response = this.getNextResponse("embedContent", request);
|
|
273951
|
+
Object.setPrototypeOf(response, EmbedContentResponse.prototype);
|
|
273952
|
+
if (response instanceof EmbedContentResponse) {
|
|
273953
|
+
return response;
|
|
273954
|
+
}
|
|
273955
|
+
throw new Error("Failed to create EmbedContentResponse");
|
|
273923
273956
|
}
|
|
273924
273957
|
};
|
|
273925
273958
|
|
|
@@ -301271,7 +301304,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
301271
301304
|
return provider;
|
|
301272
301305
|
}
|
|
301273
301306
|
case "oauth2": {
|
|
301274
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
301307
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-O6OA5EMU.js");
|
|
301275
301308
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
301276
301309
|
await provider.initialize();
|
|
301277
301310
|
return provider;
|
|
@@ -313646,7 +313679,12 @@ ${reminder}`;
|
|
|
313646
313679
|
if (!text) {
|
|
313647
313680
|
throw new Error("Invalid response from Local Gemini API: No text found");
|
|
313648
313681
|
}
|
|
313649
|
-
|
|
313682
|
+
const parsed = JSON.parse(result2.text);
|
|
313683
|
+
const isRecord3 = (val) => typeof val === "object" && val !== null && !Array.isArray(val);
|
|
313684
|
+
if (isRecord3(parsed)) {
|
|
313685
|
+
return parsed;
|
|
313686
|
+
}
|
|
313687
|
+
throw new Error("Invalid JSON response format from Local LLM");
|
|
313650
313688
|
} catch (error40) {
|
|
313651
313689
|
debugLogger.error(`[LocalLiteRtLmClient] Failed to generate content:`, error40);
|
|
313652
313690
|
throw error40;
|
|
@@ -337760,7 +337798,7 @@ var Config = class {
|
|
|
337760
337798
|
if (this.experimentalJitContext && this.memoryContextManager) {
|
|
337761
337799
|
await this.memoryContextManager.refresh();
|
|
337762
337800
|
} else {
|
|
337763
|
-
const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-
|
|
337801
|
+
const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-XFCKEF3F.js");
|
|
337764
337802
|
await refreshServerHierarchicalMemory2(this);
|
|
337765
337803
|
}
|
|
337766
337804
|
if (this._geminiClient?.isInitialized()) {
|
|
@@ -345832,13 +345870,23 @@ var RecursiveFileSearch = class {
|
|
|
345832
345870
|
if (pattern.includes("*") || !this.fzf) {
|
|
345833
345871
|
filteredCandidates = await filter3(candidates, pattern, options.signal);
|
|
345834
345872
|
} else {
|
|
345835
|
-
|
|
345836
|
-
|
|
345837
|
-
|
|
345838
|
-
|
|
345873
|
+
try {
|
|
345874
|
+
const fzfResult = await this.fzf.find(pattern);
|
|
345875
|
+
if (Array.isArray(fzfResult)) {
|
|
345876
|
+
filteredCandidates = fzfResult.map((entry) => {
|
|
345877
|
+
if (typeof entry === "object" && entry !== null && "item" in entry) {
|
|
345878
|
+
return String(entry.item);
|
|
345879
|
+
}
|
|
345880
|
+
return String(entry);
|
|
345881
|
+
});
|
|
345882
|
+
} else {
|
|
345883
|
+
shouldCache = false;
|
|
345884
|
+
filteredCandidates = [];
|
|
345885
|
+
}
|
|
345886
|
+
} catch {
|
|
345839
345887
|
shouldCache = false;
|
|
345840
|
-
|
|
345841
|
-
}
|
|
345888
|
+
filteredCandidates = [];
|
|
345889
|
+
}
|
|
345842
345890
|
}
|
|
345843
345891
|
if (shouldCache) {
|
|
345844
345892
|
this.resultCache.set(pattern, filteredCandidates);
|
|
@@ -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
|
checkExhaustive
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YBYQH75I.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__toESM
|
|
@@ -1,15 +1,15 @@
|
|
|
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-
|
|
4
|
+
} from "./chunk-GCWBZXBS.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
getChannelFromVersion,
|
|
8
8
|
isGitRepository
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AC2EWTF7.js";
|
|
10
10
|
import {
|
|
11
11
|
debugLogger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M7OUJJZ2.js";
|
|
13
13
|
|
|
14
14
|
// packages/cli/src/utils/installationInfo.ts
|
|
15
15
|
import * as fs from "node:fs";
|
|
@@ -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-
|
|
4
|
+
} from "./chunk-GCWBZXBS.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -1,15 +1,15 @@
|
|
|
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-
|
|
4
|
+
} from "./chunk-USS2A6NQ.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
getChannelFromVersion,
|
|
8
8
|
isGitRepository
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LF33N5QM.js";
|
|
10
10
|
import {
|
|
11
11
|
debugLogger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M7OUJJZ2.js";
|
|
13
13
|
|
|
14
14
|
// packages/cli/src/utils/installationInfo.ts
|
|
15
15
|
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-
|
|
5
|
+
} from "./chunk-MLPM54XD.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
|
|
468
|
+
case CoreToolCallStatus.Validating:
|
|
468
469
|
return "Pending" /* Pending */;
|
|
469
|
-
case
|
|
470
|
+
case CoreToolCallStatus.AwaitingApproval:
|
|
470
471
|
return "Confirming" /* Confirming */;
|
|
471
|
-
case
|
|
472
|
+
case CoreToolCallStatus.Executing:
|
|
472
473
|
return "Executing" /* Executing */;
|
|
473
|
-
case
|
|
474
|
+
case CoreToolCallStatus.Success:
|
|
474
475
|
return "Success" /* Success */;
|
|
475
|
-
case
|
|
476
|
+
case CoreToolCallStatus.Cancelled:
|
|
476
477
|
return "Canceled" /* Canceled */;
|
|
477
|
-
case
|
|
478
|
+
case CoreToolCallStatus.Error:
|
|
478
479
|
return "Error" /* Error */;
|
|
479
|
-
case
|
|
480
|
+
case CoreToolCallStatus.Scheduled:
|
|
480
481
|
return "Pending" /* Pending */;
|
|
481
482
|
default:
|
|
482
483
|
return checkExhaustive(coreStatus);
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
isTelemetrySdkInitialized,
|
|
5
5
|
resetBrowserSession,
|
|
6
6
|
shutdownTelemetry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AC2EWTF7.js";
|
|
8
8
|
import {
|
|
9
9
|
Storage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-M7OUJJZ2.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/cleanup.ts
|
|
13
13
|
import { promises as fs } from "node:fs";
|