@google/gemini-cli 0.40.0-preview.2 → 0.40.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-WL5MCPV2.js → chunk-35STMVQ6.js} +2 -2
- package/bundle/{chunk-EFCQXWIF.js → chunk-47HVBRLD.js} +3 -3
- package/bundle/{chunk-HV36F4CL.js → chunk-5UA5NDVP.js} +134 -354
- package/bundle/{chunk-IUVLJUOL.js → chunk-B4NHGUNE.js} +2 -2
- package/bundle/{chunk-NO7STVVM.js → chunk-EEQGWBJU.js} +1413 -1089
- package/bundle/{chunk-IMEC72NS.js → chunk-EJ5U5A3P.js} +1 -1
- package/bundle/{chunk-33ANPP4S.js → chunk-ELANWZTZ.js} +3 -3
- package/bundle/{chunk-3GU3LF3I.js → chunk-F2KGMQCY.js} +180 -9
- package/bundle/{chunk-VCGILCZV.js → chunk-F73F75XM.js} +16 -0
- package/bundle/{chunk-PLUWJHZZ.js → chunk-FRCZJECU.js} +237 -54
- package/bundle/{chunk-UBXB5AEJ.js → chunk-GDNYA45E.js} +3 -3
- package/bundle/{chunk-TDW6FM3A.js → chunk-KITSDDOZ.js} +1 -1
- package/bundle/{chunk-WHIWQCI5.js → chunk-KKO2XSBY.js} +1 -1
- package/bundle/{chunk-GXRQOXQF.js → chunk-KUAEOA2Q.js} +177 -7
- package/bundle/{chunk-4IJPDKI6.js → chunk-KVGAAOEJ.js} +146 -364
- package/bundle/{chunk-QK7UWGBN.js → chunk-MRSOTTBM.js} +1380 -1081
- package/bundle/{chunk-MUGUV6RZ.js → chunk-MUEKKRWF.js} +2 -2
- package/bundle/chunk-R4ZCSDPK.js +80018 -0
- package/bundle/chunk-RMQT572G.js +156 -0
- package/bundle/chunk-RVU5Q4NB.js +118 -0
- package/bundle/{chunk-2RHFUIH4.js → chunk-UHHRGNIO.js} +16 -0
- package/bundle/chunk-UX5CFZ75.js +17505 -0
- package/bundle/{chunk-RM43GNQQ.js → chunk-UZ5SUJO4.js} +7709 -12907
- package/bundle/chunk-VQVLJLWD.js +1571 -0
- package/bundle/{chunk-NIVCRM5L.js → chunk-VUHGADMU.js} +134 -354
- package/bundle/chunk-YCTQOSY2.js +351149 -0
- package/bundle/{cleanup-A7WXWAMI.js → cleanup-BWZ7GONS.js} +3 -3
- package/bundle/{cleanup-EWPIME2M.js → cleanup-F6XR3KDW.js} +3 -3
- package/bundle/{cleanup-IPLJJT5S.js → cleanup-PS3UGKWX.js} +3 -3
- package/bundle/cleanup-VV6AV4T2.js +33 -0
- package/bundle/{core-VCDK23ZC.js → core-NDKZ44LE.js} +28 -2
- package/bundle/{devtoolsService-B5VVZ752.js → devtoolsService-DNFLMYOX.js} +3 -3
- package/bundle/{devtoolsService-2JXSALRU.js → devtoolsService-F6QBRWPB.js} +5 -4
- package/bundle/{devtoolsService-6Y6YER6T.js → devtoolsService-XGIYIDBD.js} +3 -3
- package/bundle/devtoolsService-YD6JSR34.js +852 -0
- package/bundle/{dist-UIXQETMC.js → dist-54TUMSKA.js} +28 -2
- package/bundle/{core-BQT6T3CH.js → dist-6KUUELBS.js} +28 -2
- package/bundle/dist-QHCXV4N4.js +2046 -0
- package/bundle/docs/cli/cli-reference.md +1 -0
- package/bundle/docs/cli/trusted-folders.md +28 -0
- package/bundle/docs/reference/configuration.md +14 -0
- package/bundle/{gemini-ID44Z5SV.js → gemini-HLGERR6W.js} +65 -21
- package/bundle/{gemini-54LH6RUH.js → gemini-IRPF2U4N.js} +241 -182
- package/bundle/gemini-QZM4UKD6.js +16087 -0
- package/bundle/{gemini-44W2QEZI.js → gemini-TU6PHHWE.js} +63 -20
- package/bundle/gemini.js +3 -3
- package/bundle/{interactiveCli-5MTJDFYC.js → interactiveCli-374EDFUA.js} +17 -167
- package/bundle/{interactiveCli-JFBPGMNM.js → interactiveCli-EKTBCA5F.js} +30 -179
- package/bundle/{interactiveCli-5B3X6RNB.js → interactiveCli-GRSDCSR3.js} +300 -432
- package/bundle/interactiveCli-HN4DKCW5.js +34448 -0
- package/bundle/{liteRtServerManager-76V63PRJ.js → liteRtServerManager-46V57ROR.js} +4 -4
- package/bundle/{liteRtServerManager-WQMDPACQ.js → liteRtServerManager-E34UIEBJ.js} +4 -4
- package/bundle/{liteRtServerManager-6GJWEP5W.js → liteRtServerManager-EAWDC35K.js} +4 -4
- package/bundle/liteRtServerManager-HTDKEOQC.js +65 -0
- package/bundle/{memoryDiscovery-RYHYLAPJ.js → memoryDiscovery-CZURD35O.js} +1 -1
- package/bundle/{memoryDiscovery-HWEYBJE7.js → memoryDiscovery-GZLXKRGB.js} +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-JCKLNKRV.js → oauth2-provider-N7Q7FNNA.js} +2 -2
- package/bundle/{oauth2-provider-EX6SQEZP.js → oauth2-provider-TW3RXTUS.js} +2 -2
- package/bundle/{oauth2-provider-ZF52AWQY.js → oauth2-provider-UQIDMKYA.js} +39 -73
- package/bundle/oauth2-provider-WTRWHBI2.js +237 -0
- package/bundle/{start-CYDJTOAP.js → start-4D5PYHGK.js} +6 -6
- package/bundle/{start-SHOUHW3Y.js → start-7DJXXKMH.js} +6 -6
- package/bundle/{start-B6EMQCH5.js → start-ERRBQVDH.js} +6 -6
- package/bundle/start-TKRKH572.js +18 -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-KKO2XSBY.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_BACKGROUND_OPACITY,
|
|
12
12
|
DEFAULT_BORDER_OPACITY,
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
escapeAnsiCtrlCodes,
|
|
33
33
|
getBinaryPath,
|
|
34
34
|
getCachedStringWidth,
|
|
35
|
+
getSettingsSchema,
|
|
35
36
|
getThemeTypeFromBackgroundColor,
|
|
36
37
|
interpolateColor,
|
|
37
38
|
isBinaryInstalled,
|
|
@@ -58,10 +59,10 @@ import {
|
|
|
58
59
|
stripUnsafeCharacters,
|
|
59
60
|
toCodePoints,
|
|
60
61
|
validateCustomTheme
|
|
61
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-VUHGADMU.js";
|
|
62
63
|
import {
|
|
63
64
|
runExitCleanup
|
|
64
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-B4NHGUNE.js";
|
|
65
66
|
import {
|
|
66
67
|
AsyncFzf,
|
|
67
68
|
Config,
|
|
@@ -195,7 +196,7 @@ import {
|
|
|
195
196
|
stripAnsi,
|
|
196
197
|
tokenLimit,
|
|
197
198
|
uiTelemetryService
|
|
198
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-EEQGWBJU.js";
|
|
199
200
|
import {
|
|
200
201
|
ApprovalMode,
|
|
201
202
|
CoreEvent,
|
|
@@ -221,7 +222,7 @@ import {
|
|
|
221
222
|
shortenPath,
|
|
222
223
|
tildeifyPath,
|
|
223
224
|
unescapePath
|
|
224
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-UHHRGNIO.js";
|
|
225
226
|
import {
|
|
226
227
|
require_src
|
|
227
228
|
} from "./chunk-RJTRUG2J.js";
|
|
@@ -45773,6 +45774,165 @@ var McpServerEnablementManager = class _McpServerEnablementManager {
|
|
|
45773
45774
|
}
|
|
45774
45775
|
};
|
|
45775
45776
|
|
|
45777
|
+
// packages/cli/src/utils/settingsUtils.ts
|
|
45778
|
+
function flattenSchema(schema, prefix = "") {
|
|
45779
|
+
let result = {};
|
|
45780
|
+
for (const key in schema) {
|
|
45781
|
+
const newKey = prefix ? `${prefix}.${key}` : key;
|
|
45782
|
+
const definition = schema[key];
|
|
45783
|
+
result[newKey] = { ...definition, key: newKey };
|
|
45784
|
+
if (definition.properties) {
|
|
45785
|
+
result = { ...result, ...flattenSchema(definition.properties, newKey) };
|
|
45786
|
+
}
|
|
45787
|
+
}
|
|
45788
|
+
return result;
|
|
45789
|
+
}
|
|
45790
|
+
var _FLATTENED_SCHEMA;
|
|
45791
|
+
function getFlattenedSchema() {
|
|
45792
|
+
return _FLATTENED_SCHEMA ?? (_FLATTENED_SCHEMA = flattenSchema(getSettingsSchema()));
|
|
45793
|
+
}
|
|
45794
|
+
function getSettingDefinition(key) {
|
|
45795
|
+
return getFlattenedSchema()[key];
|
|
45796
|
+
}
|
|
45797
|
+
function getDefaultValue(key) {
|
|
45798
|
+
return getFlattenedSchema()[key]?.default;
|
|
45799
|
+
}
|
|
45800
|
+
function getDialogRestartRequiredSettings() {
|
|
45801
|
+
return Object.values(getFlattenedSchema()).filter(
|
|
45802
|
+
(definition) => definition.requiresRestart && definition.showInDialog !== false
|
|
45803
|
+
).map((definition) => definition.key);
|
|
45804
|
+
}
|
|
45805
|
+
function isRecord(value) {
|
|
45806
|
+
return typeof value === "object" && value !== null;
|
|
45807
|
+
}
|
|
45808
|
+
function isSettingsValue(value) {
|
|
45809
|
+
if (value === void 0) return true;
|
|
45810
|
+
if (value === null) return false;
|
|
45811
|
+
const type = typeof value;
|
|
45812
|
+
return type === "string" || type === "number" || type === "boolean" || type === "object";
|
|
45813
|
+
}
|
|
45814
|
+
function getNestedValue(obj, path37) {
|
|
45815
|
+
let current = obj;
|
|
45816
|
+
for (const key of path37) {
|
|
45817
|
+
if (!isRecord(current) || !(key in current)) {
|
|
45818
|
+
return void 0;
|
|
45819
|
+
}
|
|
45820
|
+
current = current[key];
|
|
45821
|
+
}
|
|
45822
|
+
return current;
|
|
45823
|
+
}
|
|
45824
|
+
function getEffectiveValue(key, settings) {
|
|
45825
|
+
const definition = getSettingDefinition(key);
|
|
45826
|
+
if (!definition) {
|
|
45827
|
+
return void 0;
|
|
45828
|
+
}
|
|
45829
|
+
const path37 = key.split(".");
|
|
45830
|
+
const value = getNestedValue(settings, path37);
|
|
45831
|
+
if (value !== void 0 && isSettingsValue(value)) {
|
|
45832
|
+
return value;
|
|
45833
|
+
}
|
|
45834
|
+
return definition.default;
|
|
45835
|
+
}
|
|
45836
|
+
function getDialogSettingKeys() {
|
|
45837
|
+
return Object.values(getFlattenedSchema()).filter((definition) => definition.showInDialog !== false).map((definition) => definition.key);
|
|
45838
|
+
}
|
|
45839
|
+
function isInSettingsScope(key, scopeSettings) {
|
|
45840
|
+
const path37 = key.split(".");
|
|
45841
|
+
const value = getNestedValue(scopeSettings, path37);
|
|
45842
|
+
return value !== void 0;
|
|
45843
|
+
}
|
|
45844
|
+
function getDisplayValue(key, scopeSettings, _mergedSettings) {
|
|
45845
|
+
const definition = getSettingDefinition(key);
|
|
45846
|
+
const existsInScope = isInSettingsScope(key, scopeSettings);
|
|
45847
|
+
let value;
|
|
45848
|
+
if (existsInScope) {
|
|
45849
|
+
value = getEffectiveValue(key, scopeSettings);
|
|
45850
|
+
} else {
|
|
45851
|
+
value = getDefaultValue(key);
|
|
45852
|
+
}
|
|
45853
|
+
let valueString = String(value);
|
|
45854
|
+
if (definition?.type === "object" && value !== null && typeof value === "object") {
|
|
45855
|
+
valueString = JSON.stringify(value);
|
|
45856
|
+
} else if (definition?.type === "enum" && definition.options) {
|
|
45857
|
+
const option = definition.options?.find((option2) => option2.value === value);
|
|
45858
|
+
valueString = option?.label ?? `${value}`;
|
|
45859
|
+
}
|
|
45860
|
+
if (definition?.unit === "%" && typeof value === "number") {
|
|
45861
|
+
valueString = `${value} (${Math.round(value * 100)}%)`;
|
|
45862
|
+
} else if (definition?.unit) {
|
|
45863
|
+
valueString = `${valueString}${definition.unit}`;
|
|
45864
|
+
}
|
|
45865
|
+
if (existsInScope) {
|
|
45866
|
+
return `${valueString}*`;
|
|
45867
|
+
}
|
|
45868
|
+
return valueString;
|
|
45869
|
+
}
|
|
45870
|
+
function tryParseJsonStringArray(input) {
|
|
45871
|
+
try {
|
|
45872
|
+
const parsed = JSON.parse(input);
|
|
45873
|
+
if (Array.isArray(parsed) && parsed.every((item) => typeof item === "string")) {
|
|
45874
|
+
return parsed;
|
|
45875
|
+
}
|
|
45876
|
+
return null;
|
|
45877
|
+
} catch {
|
|
45878
|
+
return null;
|
|
45879
|
+
}
|
|
45880
|
+
}
|
|
45881
|
+
function tryParseJsonObject(input) {
|
|
45882
|
+
try {
|
|
45883
|
+
const parsed = JSON.parse(input);
|
|
45884
|
+
if (isRecord(parsed) && !Array.isArray(parsed)) {
|
|
45885
|
+
return parsed;
|
|
45886
|
+
}
|
|
45887
|
+
return null;
|
|
45888
|
+
} catch {
|
|
45889
|
+
return null;
|
|
45890
|
+
}
|
|
45891
|
+
}
|
|
45892
|
+
function parseStringArrayValue(input) {
|
|
45893
|
+
const trimmed = input.trim();
|
|
45894
|
+
if (trimmed === "") return [];
|
|
45895
|
+
return tryParseJsonStringArray(trimmed) ?? input.split(",").map((p2) => p2.trim()).filter((p2) => p2.length > 0);
|
|
45896
|
+
}
|
|
45897
|
+
function parseObjectValue(input) {
|
|
45898
|
+
const trimmed = input.trim();
|
|
45899
|
+
if (trimmed === "") {
|
|
45900
|
+
return null;
|
|
45901
|
+
}
|
|
45902
|
+
return tryParseJsonObject(trimmed);
|
|
45903
|
+
}
|
|
45904
|
+
function parseEditedValue(type, newValue) {
|
|
45905
|
+
if (type === "number") {
|
|
45906
|
+
if (newValue.trim() === "") {
|
|
45907
|
+
return null;
|
|
45908
|
+
}
|
|
45909
|
+
const numParsed = Number(newValue.trim());
|
|
45910
|
+
if (Number.isNaN(numParsed)) {
|
|
45911
|
+
return null;
|
|
45912
|
+
}
|
|
45913
|
+
return numParsed;
|
|
45914
|
+
}
|
|
45915
|
+
if (type === "array") {
|
|
45916
|
+
return parseStringArrayValue(newValue);
|
|
45917
|
+
}
|
|
45918
|
+
if (type === "object") {
|
|
45919
|
+
return parseObjectValue(newValue);
|
|
45920
|
+
}
|
|
45921
|
+
return newValue;
|
|
45922
|
+
}
|
|
45923
|
+
function getEditValue(type, rawValue) {
|
|
45924
|
+
if (rawValue === void 0) {
|
|
45925
|
+
return void 0;
|
|
45926
|
+
}
|
|
45927
|
+
if (type === "array" && Array.isArray(rawValue)) {
|
|
45928
|
+
return rawValue.join(", ");
|
|
45929
|
+
}
|
|
45930
|
+
if (type === "object" && rawValue !== null && typeof rawValue === "object") {
|
|
45931
|
+
return JSON.stringify(rawValue);
|
|
45932
|
+
}
|
|
45933
|
+
return void 0;
|
|
45934
|
+
}
|
|
45935
|
+
|
|
45776
45936
|
// packages/cli/src/ui/hooks/atCommandProcessor.ts
|
|
45777
45937
|
import * as fs19 from "node:fs/promises";
|
|
45778
45938
|
import * as path13 from "node:path";
|
|
@@ -54837,7 +54997,7 @@ var authCommand = {
|
|
|
54837
54997
|
import process29 from "node:process";
|
|
54838
54998
|
|
|
54839
54999
|
// packages/cli/src/generated/git-commit.ts
|
|
54840
|
-
var GIT_COMMIT_INFO = "
|
|
55000
|
+
var GIT_COMMIT_INFO = "61c6a2adf";
|
|
54841
55001
|
|
|
54842
55002
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
54843
55003
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -60322,7 +60482,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
60322
60482
|
type: "info",
|
|
60323
60483
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
60324
60484
|
});
|
|
60325
|
-
const { MCPOAuthProvider } = await import("./core-
|
|
60485
|
+
const { MCPOAuthProvider } = await import("./core-NDKZ44LE.js");
|
|
60326
60486
|
let oauthConfig = server.oauth;
|
|
60327
60487
|
if (!oauthConfig) {
|
|
60328
60488
|
oauthConfig = { enabled: false };
|
|
@@ -79606,6 +79766,16 @@ export {
|
|
|
79606
79766
|
linkSkill,
|
|
79607
79767
|
uninstallSkill,
|
|
79608
79768
|
statusCommand,
|
|
79769
|
+
getSettingDefinition,
|
|
79770
|
+
getDialogRestartRequiredSettings,
|
|
79771
|
+
isRecord,
|
|
79772
|
+
getNestedValue,
|
|
79773
|
+
getEffectiveValue,
|
|
79774
|
+
getDialogSettingKeys,
|
|
79775
|
+
isInSettingsScope,
|
|
79776
|
+
getDisplayValue,
|
|
79777
|
+
parseEditedValue,
|
|
79778
|
+
getEditValue,
|
|
79609
79779
|
ConsolePatcher,
|
|
79610
79780
|
clipboardy_default,
|
|
79611
79781
|
escapeAtSymbols,
|