@google/gemini-cli 0.41.0-preview.0 → 0.41.0-preview.1
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-NQUBPNAU.js → chunk-36LZQV4W.js} +6 -6
- package/bundle/{chunk-EOA2HX63.js → chunk-45OGXTFK.js} +2 -2
- package/bundle/{chunk-HR7I3HEY.js → chunk-5QI3ZXQB.js} +1 -1
- package/bundle/{chunk-WYBLOXVK.js → chunk-5Z2T77EB.js} +1 -1
- package/bundle/{chunk-WSDOIL74.js → chunk-6NFVEILC.js} +73 -38
- package/bundle/{chunk-MJJLAQ6U.js → chunk-C5CRFFTY.js} +1 -1
- package/bundle/{chunk-IEYJEBJX.js → chunk-DAEE6Y5T.js} +67 -54
- package/bundle/{chunk-JC6VKC3C.js → chunk-DCHOW6BK.js} +1 -1
- package/bundle/{chunk-FZCJQ7YB.js → chunk-DOHALVIP.js} +6 -6
- package/bundle/{chunk-PXLG652S.js → chunk-EQSLZT5Z.js} +95 -47
- package/bundle/chunk-FFVUMIL3.js +80034 -0
- package/bundle/{chunk-MVAX27IS.js → chunk-KCDF3RDO.js} +3 -3
- package/bundle/{chunk-YBG43HPA.js → chunk-KJ4M7JXR.js} +1 -1
- package/bundle/{chunk-X2LHBPEJ.js → chunk-NGB7ZVQL.js} +14 -12
- package/bundle/{chunk-42DYHGPE.js → chunk-QRSHDIRX.js} +1 -1
- package/bundle/{chunk-WROAWEH3.js → chunk-QY23ZEK3.js} +6728 -12460
- package/bundle/{chunk-BKZ2ONXI.js → chunk-R4LSW45D.js} +1 -1
- package/bundle/chunk-T5I4M6M4.js +118 -0
- package/bundle/{chunk-3ANRVMZF.js → chunk-TBBDQEFQ.js} +2 -2
- package/bundle/{chunk-LAT5YFL4.js → chunk-U6WUS35U.js} +2 -2
- package/bundle/chunk-VJ6K3S57.js +156 -0
- package/bundle/chunk-VLSVN2FJ.js +1571 -0
- package/bundle/chunk-VWYB6GSK.js +17656 -0
- package/bundle/chunk-XO6NKGWV.js +354496 -0
- package/bundle/{cleanup-KLFDN77S.js → cleanup-3COTQVPP.js} +2 -2
- package/bundle/{cleanup-UES5UWIG.js → cleanup-FIE6MCAE.js} +2 -2
- package/bundle/{cleanup-Z4RYESBA.js → cleanup-PREOBLFK.js} +3 -3
- package/bundle/cleanup-YY2EUT56.js +33 -0
- package/bundle/{core-Q32MZ3QF.js → core-GZOFEER4.js} +1 -1
- package/bundle/{devtoolsService-ZDMUH5GA.js → devtoolsService-DV36S632.js} +2 -2
- package/bundle/{devtoolsService-N3SEUDJ7.js → devtoolsService-JPBL5I7F.js} +5 -4
- package/bundle/devtoolsService-M4LZEBZD.js +857 -0
- package/bundle/{devtoolsService-P5BXPJX5.js → devtoolsService-QXOHXSMJ.js} +2 -2
- package/bundle/{dist-UL5N47TA.js → dist-HASTHPE3.js} +1 -1
- package/bundle/{core-3W43VO4W.js → dist-JVRDP7SO.js} +2 -2
- package/bundle/dist-NSJ6AA4L.js +2068 -0
- package/bundle/{gemini-K6LJN552.js → gemini-FTUVOUHP.js} +11 -11
- package/bundle/{gemini-PL45Y473.js → gemini-IGRTXHCM.js} +11 -11
- package/bundle/{gemini-DGVTFOIS.js → gemini-KIM7O55W.js} +191 -175
- package/bundle/gemini-SFFHSCEY.js +15988 -0
- package/bundle/gemini.js +3 -3
- package/bundle/{interactiveCli-O7Y36MPM.js → interactiveCli-7HPLINVC.js} +6 -6
- package/bundle/{interactiveCli-ZJGQKU2Z.js → interactiveCli-JOX7MFFH.js} +6 -6
- package/bundle/{interactiveCli-JL5IXH2I.js → interactiveCli-K4FIT7TA.js} +290 -272
- package/bundle/interactiveCli-LTPR447O.js +35052 -0
- package/bundle/{liteRtServerManager-QGTT3QOY.js → liteRtServerManager-BENLLSF2.js} +3 -3
- package/bundle/{liteRtServerManager-2LAXDWUG.js → liteRtServerManager-KDO6UAQ5.js} +4 -4
- package/bundle/liteRtServerManager-MQIQXXZQ.js +65 -0
- package/bundle/{liteRtServerManager-YCLQ2VZR.js → liteRtServerManager-VGYEHFUE.js} +3 -3
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-ZUEDS4RO.js → oauth2-provider-EWMNT6D6.js} +1 -1
- package/bundle/{oauth2-provider-Q5QVFX4W.js → oauth2-provider-JPCBTTS2.js} +1 -1
- package/bundle/{oauth2-provider-RR3PO6KR.js → oauth2-provider-M3WV4GJM.js} +39 -73
- package/bundle/oauth2-provider-UVXCM7G3.js +237 -0
- package/bundle/{start-P6O7G2IY.js → start-4MSISK2E.js} +5 -5
- package/bundle/{start-6ZXD64J4.js → start-ATOE57Z4.js} +6 -6
- package/bundle/start-AVEON6UU.js +18 -0
- package/bundle/{start-V4W5V2EL.js → start-KBB2UTE5.js} +5 -5
- 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-QRSHDIRX.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_BACKGROUND_OPACITY,
|
|
12
12
|
DEFAULT_BORDER_OPACITY,
|
|
@@ -59,10 +59,10 @@ import {
|
|
|
59
59
|
stripUnsafeCharacters,
|
|
60
60
|
toCodePoints,
|
|
61
61
|
validateCustomTheme
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-VWYB6GSK.js";
|
|
63
63
|
import {
|
|
64
64
|
runExitCleanup
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-VJ6K3S57.js";
|
|
66
66
|
import {
|
|
67
67
|
AsyncFzf,
|
|
68
68
|
AuthType,
|
|
@@ -208,7 +208,7 @@ import {
|
|
|
208
208
|
stripAnsi,
|
|
209
209
|
tokenLimit,
|
|
210
210
|
uiTelemetryService
|
|
211
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-QY23ZEK3.js";
|
|
212
212
|
import {
|
|
213
213
|
ApprovalMode,
|
|
214
214
|
CoreEvent,
|
|
@@ -55003,7 +55003,7 @@ var authCommand = {
|
|
|
55003
55003
|
import process29 from "node:process";
|
|
55004
55004
|
|
|
55005
55005
|
// packages/cli/src/generated/git-commit.ts
|
|
55006
|
-
var GIT_COMMIT_INFO = "
|
|
55006
|
+
var GIT_COMMIT_INFO = "7d233ddd5";
|
|
55007
55007
|
|
|
55008
55008
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
55009
55009
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -60488,7 +60488,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
60488
60488
|
type: "info",
|
|
60489
60489
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
60490
60490
|
});
|
|
60491
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
60491
|
+
const { MCPOAuthProvider } = await import("./dist-NSJ6AA4L.js");
|
|
60492
60492
|
let oauthConfig = server.oauth;
|
|
60493
60493
|
if (!oauthConfig) {
|
|
60494
60494
|
oauthConfig = { enabled: false };
|
|
@@ -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-C5CRFFTY.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NGB7ZVQL.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
20
|
} from "./chunk-SAJ72M2G.js";
|
|
@@ -242982,6 +242982,16 @@ var UserPromptEvent = class {
|
|
|
242982
242982
|
}
|
|
242983
242983
|
};
|
|
242984
242984
|
var EVENT_TOOL_CALL = "gemini_cli.tool_call";
|
|
242985
|
+
var TOOL_CALL_METADATA_SAFE_KEYS = [
|
|
242986
|
+
"model_added_lines",
|
|
242987
|
+
"model_removed_lines",
|
|
242988
|
+
"model_added_chars",
|
|
242989
|
+
"model_removed_chars",
|
|
242990
|
+
"user_added_lines",
|
|
242991
|
+
"user_removed_lines",
|
|
242992
|
+
"user_added_chars",
|
|
242993
|
+
"user_removed_chars"
|
|
242994
|
+
];
|
|
242985
242995
|
var ToolCallEvent = class {
|
|
242986
242996
|
"event.name";
|
|
242987
242997
|
"event.timestamp";
|
|
@@ -243063,7 +243073,6 @@ var ToolCallEvent = class {
|
|
|
243063
243073
|
"event.name": EVENT_TOOL_CALL,
|
|
243064
243074
|
"event.timestamp": this["event.timestamp"],
|
|
243065
243075
|
function_name: this.function_name,
|
|
243066
|
-
function_args: safeJsonStringify(this.function_args, 2),
|
|
243067
243076
|
duration_ms: this.duration_ms,
|
|
243068
243077
|
success: this.success,
|
|
243069
243078
|
decision: this.decision,
|
|
@@ -243074,9 +243083,17 @@ var ToolCallEvent = class {
|
|
|
243074
243083
|
extension_name: this.extension_name,
|
|
243075
243084
|
extension_id: this.extension_id,
|
|
243076
243085
|
start_time: this.start_time,
|
|
243077
|
-
end_time: this.end_time
|
|
243078
|
-
metadata: this.metadata
|
|
243086
|
+
end_time: this.end_time
|
|
243079
243087
|
};
|
|
243088
|
+
if (config2.getTelemetryLogPromptsEnabled() && this.function_args) {
|
|
243089
|
+
attributes["function_args"] = safeJsonStringify(this.function_args, 2);
|
|
243090
|
+
}
|
|
243091
|
+
if (this.metadata) {
|
|
243092
|
+
const metadata2 = config2.getTelemetryLogPromptsEnabled() ? this.metadata : Object.fromEntries(Object.entries(this.metadata).filter(([k]) => TOOL_CALL_METADATA_SAFE_KEYS.includes(k)));
|
|
243093
|
+
if (Object.keys(metadata2).length > 0) {
|
|
243094
|
+
attributes["metadata"] = safeJsonStringify(metadata2, 2);
|
|
243095
|
+
}
|
|
243096
|
+
}
|
|
243080
243097
|
if (this.error) {
|
|
243081
243098
|
attributes[CoreToolCallStatus.Error] = this.error;
|
|
243082
243099
|
attributes["error.message"] = this.error;
|
|
@@ -243116,9 +243133,11 @@ var ApiRequestEvent = class {
|
|
|
243116
243133
|
"event.name": EVENT_API_REQUEST,
|
|
243117
243134
|
"event.timestamp": this["event.timestamp"],
|
|
243118
243135
|
model: this.model,
|
|
243119
|
-
prompt_id: this.prompt.prompt_id
|
|
243120
|
-
request_text: this.request_text
|
|
243136
|
+
prompt_id: this.prompt.prompt_id
|
|
243121
243137
|
};
|
|
243138
|
+
if (config2.getTelemetryLogPromptsEnabled() && this.request_text) {
|
|
243139
|
+
attributes["request_text"] = this.request_text;
|
|
243140
|
+
}
|
|
243122
243141
|
if (this.role) {
|
|
243123
243142
|
attributes["role"] = this.role;
|
|
243124
243143
|
}
|
|
@@ -243301,7 +243320,7 @@ var ApiResponseEvent = class {
|
|
|
243301
243320
|
if (this.role) {
|
|
243302
243321
|
attributes["role"] = this.role;
|
|
243303
243322
|
}
|
|
243304
|
-
if (this.response_text) {
|
|
243323
|
+
if (config2.getTelemetryLogPromptsEnabled() && this.response_text) {
|
|
243305
243324
|
attributes["response_text"] = this.response_text;
|
|
243306
243325
|
}
|
|
243307
243326
|
if (this.status_code) {
|
|
@@ -243511,11 +243530,19 @@ var ConsecaPolicyGenerationEvent = class {
|
|
|
243511
243530
|
const attributes = {
|
|
243512
243531
|
...getCommonAttributes(config2),
|
|
243513
243532
|
"event.name": EVENT_CONSECA_POLICY_GENERATION,
|
|
243514
|
-
"event.timestamp": this["event.timestamp"]
|
|
243515
|
-
user_prompt: this.user_prompt,
|
|
243516
|
-
trusted_content: this.trusted_content,
|
|
243517
|
-
policy: this.policy
|
|
243533
|
+
"event.timestamp": this["event.timestamp"]
|
|
243518
243534
|
};
|
|
243535
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
243536
|
+
if (this.user_prompt) {
|
|
243537
|
+
attributes["user_prompt"] = this.user_prompt;
|
|
243538
|
+
}
|
|
243539
|
+
if (this.trusted_content) {
|
|
243540
|
+
attributes["trusted_content"] = this.trusted_content;
|
|
243541
|
+
}
|
|
243542
|
+
if (this.policy) {
|
|
243543
|
+
attributes["policy"] = this.policy;
|
|
243544
|
+
}
|
|
243545
|
+
}
|
|
243519
243546
|
if (this.error) {
|
|
243520
243547
|
attributes["error"] = this.error;
|
|
243521
243548
|
}
|
|
@@ -243550,12 +243577,22 @@ var ConsecaVerdictEvent = class {
|
|
|
243550
243577
|
...getCommonAttributes(config2),
|
|
243551
243578
|
"event.name": EVENT_CONSECA_VERDICT,
|
|
243552
243579
|
"event.timestamp": this["event.timestamp"],
|
|
243553
|
-
|
|
243554
|
-
policy: this.policy,
|
|
243555
|
-
tool_call: this.tool_call,
|
|
243556
|
-
verdict: this.verdict,
|
|
243557
|
-
verdict_rationale: this.verdict_rationale
|
|
243580
|
+
verdict: this.verdict
|
|
243558
243581
|
};
|
|
243582
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
243583
|
+
if (this.user_prompt) {
|
|
243584
|
+
attributes["user_prompt"] = this.user_prompt;
|
|
243585
|
+
}
|
|
243586
|
+
if (this.policy) {
|
|
243587
|
+
attributes["policy"] = this.policy;
|
|
243588
|
+
}
|
|
243589
|
+
if (this.tool_call) {
|
|
243590
|
+
attributes["tool_call"] = this.tool_call;
|
|
243591
|
+
}
|
|
243592
|
+
if (this.verdict_rationale) {
|
|
243593
|
+
attributes["verdict_rationale"] = this.verdict_rationale;
|
|
243594
|
+
}
|
|
243595
|
+
}
|
|
243559
243596
|
if (this.error) {
|
|
243560
243597
|
attributes["error"] = this.error;
|
|
243561
243598
|
}
|
|
@@ -246236,7 +246273,7 @@ var EventMetadataKey;
|
|
|
246236
246273
|
})(EventMetadataKey || (EventMetadataKey = {}));
|
|
246237
246274
|
|
|
246238
246275
|
// packages/core/dist/src/generated/git-commit.js
|
|
246239
|
-
var GIT_COMMIT_INFO = "
|
|
246276
|
+
var GIT_COMMIT_INFO = "7d233ddd5";
|
|
246240
246277
|
var CLI_VERSION = "0.41.0-preview.0";
|
|
246241
246278
|
|
|
246242
246279
|
// packages/core/dist/src/ide/detect-ide.js
|
|
@@ -248219,20 +248256,19 @@ function logConsecaPolicyGeneration(config2, event) {
|
|
|
248219
248256
|
debugLogger.debug("Conseca Policy Generation Event:", event);
|
|
248220
248257
|
const clearcutLogger = ClearcutLogger.getInstance(config2);
|
|
248221
248258
|
if (clearcutLogger) {
|
|
248222
|
-
const data = [
|
|
248223
|
-
|
|
248259
|
+
const data = [];
|
|
248260
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
248261
|
+
data.push({
|
|
248224
248262
|
gemini_cli_key: EventMetadataKey.CONSECA_USER_PROMPT,
|
|
248225
248263
|
value: safeJsonStringify(event.user_prompt)
|
|
248226
|
-
},
|
|
248227
|
-
{
|
|
248264
|
+
}, {
|
|
248228
248265
|
gemini_cli_key: EventMetadataKey.CONSECA_TRUSTED_CONTENT,
|
|
248229
248266
|
value: safeJsonStringify(event.trusted_content)
|
|
248230
|
-
},
|
|
248231
|
-
{
|
|
248267
|
+
}, {
|
|
248232
248268
|
gemini_cli_key: EventMetadataKey.CONSECA_GENERATED_POLICY,
|
|
248233
248269
|
value: safeJsonStringify(event.policy)
|
|
248234
|
-
}
|
|
248235
|
-
|
|
248270
|
+
});
|
|
248271
|
+
}
|
|
248236
248272
|
if (event.error) {
|
|
248237
248273
|
data.push({
|
|
248238
248274
|
gemini_cli_key: EventMetadataKey.CONSECA_ERROR,
|
|
@@ -248256,26 +248292,25 @@ function logConsecaVerdict(config2, event) {
|
|
|
248256
248292
|
if (clearcutLogger) {
|
|
248257
248293
|
const data = [
|
|
248258
248294
|
{
|
|
248295
|
+
gemini_cli_key: EventMetadataKey.CONSECA_VERDICT_RESULT,
|
|
248296
|
+
value: safeJsonStringify(event.verdict)
|
|
248297
|
+
}
|
|
248298
|
+
];
|
|
248299
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
248300
|
+
data.push({
|
|
248259
248301
|
gemini_cli_key: EventMetadataKey.CONSECA_USER_PROMPT,
|
|
248260
248302
|
value: safeJsonStringify(event.user_prompt)
|
|
248261
|
-
},
|
|
248262
|
-
{
|
|
248303
|
+
}, {
|
|
248263
248304
|
gemini_cli_key: EventMetadataKey.CONSECA_GENERATED_POLICY,
|
|
248264
248305
|
value: safeJsonStringify(event.policy)
|
|
248265
|
-
},
|
|
248266
|
-
{
|
|
248306
|
+
}, {
|
|
248267
248307
|
gemini_cli_key: EventMetadataKey.GEMINI_CLI_TOOL_CALL_NAME,
|
|
248268
248308
|
value: safeJsonStringify(event.tool_call)
|
|
248269
|
-
},
|
|
248270
|
-
{
|
|
248271
|
-
gemini_cli_key: EventMetadataKey.CONSECA_VERDICT_RESULT,
|
|
248272
|
-
value: safeJsonStringify(event.verdict)
|
|
248273
|
-
},
|
|
248274
|
-
{
|
|
248309
|
+
}, {
|
|
248275
248310
|
gemini_cli_key: EventMetadataKey.CONSECA_VERDICT_RATIONALE,
|
|
248276
248311
|
value: event.verdict_rationale
|
|
248277
|
-
}
|
|
248278
|
-
|
|
248312
|
+
});
|
|
248313
|
+
}
|
|
248279
248314
|
if (event.error) {
|
|
248280
248315
|
data.push({
|
|
248281
248316
|
gemini_cli_key: EventMetadataKey.CONSECA_ERROR,
|
|
@@ -269181,7 +269216,7 @@ function getVersion() {
|
|
|
269181
269216
|
}
|
|
269182
269217
|
versionPromise = (async () => {
|
|
269183
269218
|
const pkgJson = await getPackageJson(__dirname4);
|
|
269184
|
-
return "0.41.0-preview.
|
|
269219
|
+
return "0.41.0-preview.1";
|
|
269185
269220
|
})();
|
|
269186
269221
|
return versionPromise;
|
|
269187
269222
|
}
|
|
@@ -300371,7 +300406,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
300371
300406
|
return provider;
|
|
300372
300407
|
}
|
|
300373
300408
|
case "oauth2": {
|
|
300374
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
300409
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-EWMNT6D6.js");
|
|
300375
300410
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
300376
300411
|
await provider.initialize();
|
|
300377
300412
|
return provider;
|
|
@@ -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-U6WUS35U.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|