@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
|
@@ -243146,6 +243146,16 @@ var UserPromptEvent = class {
|
|
|
243146
243146
|
}
|
|
243147
243147
|
};
|
|
243148
243148
|
var EVENT_TOOL_CALL = "gemini_cli.tool_call";
|
|
243149
|
+
var TOOL_CALL_METADATA_SAFE_KEYS = [
|
|
243150
|
+
"model_added_lines",
|
|
243151
|
+
"model_removed_lines",
|
|
243152
|
+
"model_added_chars",
|
|
243153
|
+
"model_removed_chars",
|
|
243154
|
+
"user_added_lines",
|
|
243155
|
+
"user_removed_lines",
|
|
243156
|
+
"user_added_chars",
|
|
243157
|
+
"user_removed_chars"
|
|
243158
|
+
];
|
|
243149
243159
|
var ToolCallEvent = class {
|
|
243150
243160
|
"event.name";
|
|
243151
243161
|
"event.timestamp";
|
|
@@ -243229,7 +243239,6 @@ var ToolCallEvent = class {
|
|
|
243229
243239
|
"event.name": EVENT_TOOL_CALL,
|
|
243230
243240
|
"event.timestamp": this["event.timestamp"],
|
|
243231
243241
|
function_name: this.function_name,
|
|
243232
|
-
function_args: safeJsonStringify(this.function_args, 2),
|
|
243233
243242
|
duration_ms: this.duration_ms,
|
|
243234
243243
|
success: this.success,
|
|
243235
243244
|
decision: this.decision,
|
|
@@ -243240,9 +243249,21 @@ var ToolCallEvent = class {
|
|
|
243240
243249
|
extension_name: this.extension_name,
|
|
243241
243250
|
extension_id: this.extension_id,
|
|
243242
243251
|
start_time: this.start_time,
|
|
243243
|
-
end_time: this.end_time
|
|
243244
|
-
metadata: this.metadata
|
|
243252
|
+
end_time: this.end_time
|
|
243245
243253
|
};
|
|
243254
|
+
if (config2.getTelemetryLogPromptsEnabled() && this.function_args) {
|
|
243255
|
+
attributes["function_args"] = safeJsonStringify(this.function_args, 2);
|
|
243256
|
+
}
|
|
243257
|
+
if (this.metadata) {
|
|
243258
|
+
const metadata2 = config2.getTelemetryLogPromptsEnabled() ? this.metadata : Object.fromEntries(
|
|
243259
|
+
Object.entries(this.metadata).filter(
|
|
243260
|
+
([k]) => TOOL_CALL_METADATA_SAFE_KEYS.includes(k)
|
|
243261
|
+
)
|
|
243262
|
+
);
|
|
243263
|
+
if (Object.keys(metadata2).length > 0) {
|
|
243264
|
+
attributes["metadata"] = safeJsonStringify(metadata2, 2);
|
|
243265
|
+
}
|
|
243266
|
+
}
|
|
243246
243267
|
if (this.error) {
|
|
243247
243268
|
attributes["error" /* Error */] = this.error;
|
|
243248
243269
|
attributes["error.message"] = this.error;
|
|
@@ -243282,9 +243303,11 @@ var ApiRequestEvent = class {
|
|
|
243282
243303
|
"event.name": EVENT_API_REQUEST,
|
|
243283
243304
|
"event.timestamp": this["event.timestamp"],
|
|
243284
243305
|
model: this.model,
|
|
243285
|
-
prompt_id: this.prompt.prompt_id
|
|
243286
|
-
request_text: this.request_text
|
|
243306
|
+
prompt_id: this.prompt.prompt_id
|
|
243287
243307
|
};
|
|
243308
|
+
if (config2.getTelemetryLogPromptsEnabled() && this.request_text) {
|
|
243309
|
+
attributes["request_text"] = this.request_text;
|
|
243310
|
+
}
|
|
243288
243311
|
if (this.role) {
|
|
243289
243312
|
attributes["role"] = this.role;
|
|
243290
243313
|
}
|
|
@@ -243473,7 +243496,7 @@ var ApiResponseEvent = class {
|
|
|
243473
243496
|
if (this.role) {
|
|
243474
243497
|
attributes["role"] = this.role;
|
|
243475
243498
|
}
|
|
243476
|
-
if (this.response_text) {
|
|
243499
|
+
if (config2.getTelemetryLogPromptsEnabled() && this.response_text) {
|
|
243477
243500
|
attributes["response_text"] = this.response_text;
|
|
243478
243501
|
}
|
|
243479
243502
|
if (this.status_code) {
|
|
@@ -243678,11 +243701,19 @@ var ConsecaPolicyGenerationEvent = class {
|
|
|
243678
243701
|
const attributes = {
|
|
243679
243702
|
...getCommonAttributes(config2),
|
|
243680
243703
|
"event.name": EVENT_CONSECA_POLICY_GENERATION,
|
|
243681
|
-
"event.timestamp": this["event.timestamp"]
|
|
243682
|
-
user_prompt: this.user_prompt,
|
|
243683
|
-
trusted_content: this.trusted_content,
|
|
243684
|
-
policy: this.policy
|
|
243704
|
+
"event.timestamp": this["event.timestamp"]
|
|
243685
243705
|
};
|
|
243706
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
243707
|
+
if (this.user_prompt) {
|
|
243708
|
+
attributes["user_prompt"] = this.user_prompt;
|
|
243709
|
+
}
|
|
243710
|
+
if (this.trusted_content) {
|
|
243711
|
+
attributes["trusted_content"] = this.trusted_content;
|
|
243712
|
+
}
|
|
243713
|
+
if (this.policy) {
|
|
243714
|
+
attributes["policy"] = this.policy;
|
|
243715
|
+
}
|
|
243716
|
+
}
|
|
243686
243717
|
if (this.error) {
|
|
243687
243718
|
attributes["error"] = this.error;
|
|
243688
243719
|
}
|
|
@@ -243717,12 +243748,22 @@ var ConsecaVerdictEvent = class {
|
|
|
243717
243748
|
...getCommonAttributes(config2),
|
|
243718
243749
|
"event.name": EVENT_CONSECA_VERDICT,
|
|
243719
243750
|
"event.timestamp": this["event.timestamp"],
|
|
243720
|
-
|
|
243721
|
-
policy: this.policy,
|
|
243722
|
-
tool_call: this.tool_call,
|
|
243723
|
-
verdict: this.verdict,
|
|
243724
|
-
verdict_rationale: this.verdict_rationale
|
|
243751
|
+
verdict: this.verdict
|
|
243725
243752
|
};
|
|
243753
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
243754
|
+
if (this.user_prompt) {
|
|
243755
|
+
attributes["user_prompt"] = this.user_prompt;
|
|
243756
|
+
}
|
|
243757
|
+
if (this.policy) {
|
|
243758
|
+
attributes["policy"] = this.policy;
|
|
243759
|
+
}
|
|
243760
|
+
if (this.tool_call) {
|
|
243761
|
+
attributes["tool_call"] = this.tool_call;
|
|
243762
|
+
}
|
|
243763
|
+
if (this.verdict_rationale) {
|
|
243764
|
+
attributes["verdict_rationale"] = this.verdict_rationale;
|
|
243765
|
+
}
|
|
243766
|
+
}
|
|
243726
243767
|
if (this.error) {
|
|
243727
243768
|
attributes["error"] = this.error;
|
|
243728
243769
|
}
|
|
@@ -246355,7 +246396,7 @@ import { createHash } from "node:crypto";
|
|
|
246355
246396
|
import * as os12 from "node:os";
|
|
246356
246397
|
|
|
246357
246398
|
// packages/core/src/generated/git-commit.ts
|
|
246358
|
-
var GIT_COMMIT_INFO = "
|
|
246399
|
+
var GIT_COMMIT_INFO = "7d233ddd5";
|
|
246359
246400
|
var CLI_VERSION = "0.41.0-preview.0";
|
|
246360
246401
|
|
|
246361
246402
|
// packages/core/src/ide/detect-ide.ts
|
|
@@ -248369,20 +248410,23 @@ function logConsecaPolicyGeneration(config2, event) {
|
|
|
248369
248410
|
debugLogger.debug("Conseca Policy Generation Event:", event);
|
|
248370
248411
|
const clearcutLogger = ClearcutLogger.getInstance(config2);
|
|
248371
248412
|
if (clearcutLogger) {
|
|
248372
|
-
const data = [
|
|
248373
|
-
|
|
248374
|
-
|
|
248375
|
-
|
|
248376
|
-
|
|
248377
|
-
|
|
248378
|
-
|
|
248379
|
-
|
|
248380
|
-
|
|
248381
|
-
|
|
248382
|
-
|
|
248383
|
-
|
|
248384
|
-
|
|
248385
|
-
|
|
248413
|
+
const data = [];
|
|
248414
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
248415
|
+
data.push(
|
|
248416
|
+
{
|
|
248417
|
+
gemini_cli_key: 165 /* CONSECA_USER_PROMPT */,
|
|
248418
|
+
value: safeJsonStringify(event.user_prompt)
|
|
248419
|
+
},
|
|
248420
|
+
{
|
|
248421
|
+
gemini_cli_key: 164 /* CONSECA_TRUSTED_CONTENT */,
|
|
248422
|
+
value: safeJsonStringify(event.trusted_content)
|
|
248423
|
+
},
|
|
248424
|
+
{
|
|
248425
|
+
gemini_cli_key: 161 /* CONSECA_GENERATED_POLICY */,
|
|
248426
|
+
value: safeJsonStringify(event.policy)
|
|
248427
|
+
}
|
|
248428
|
+
);
|
|
248429
|
+
}
|
|
248386
248430
|
if (event.error) {
|
|
248387
248431
|
data.push({
|
|
248388
248432
|
gemini_cli_key: 166 /* CONSECA_ERROR */,
|
|
@@ -248406,27 +248450,31 @@ function logConsecaVerdict(config2, event) {
|
|
|
248406
248450
|
const clearcutLogger = ClearcutLogger.getInstance(config2);
|
|
248407
248451
|
if (clearcutLogger) {
|
|
248408
248452
|
const data = [
|
|
248409
|
-
{
|
|
248410
|
-
gemini_cli_key: 165 /* CONSECA_USER_PROMPT */,
|
|
248411
|
-
value: safeJsonStringify(event.user_prompt)
|
|
248412
|
-
},
|
|
248413
|
-
{
|
|
248414
|
-
gemini_cli_key: 161 /* CONSECA_GENERATED_POLICY */,
|
|
248415
|
-
value: safeJsonStringify(event.policy)
|
|
248416
|
-
},
|
|
248417
|
-
{
|
|
248418
|
-
gemini_cli_key: 14 /* GEMINI_CLI_TOOL_CALL_NAME */,
|
|
248419
|
-
value: safeJsonStringify(event.tool_call)
|
|
248420
|
-
},
|
|
248421
248453
|
{
|
|
248422
248454
|
gemini_cli_key: 162 /* CONSECA_VERDICT_RESULT */,
|
|
248423
248455
|
value: safeJsonStringify(event.verdict)
|
|
248424
|
-
},
|
|
248425
|
-
{
|
|
248426
|
-
gemini_cli_key: 163 /* CONSECA_VERDICT_RATIONALE */,
|
|
248427
|
-
value: event.verdict_rationale
|
|
248428
248456
|
}
|
|
248429
248457
|
];
|
|
248458
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
248459
|
+
data.push(
|
|
248460
|
+
{
|
|
248461
|
+
gemini_cli_key: 165 /* CONSECA_USER_PROMPT */,
|
|
248462
|
+
value: safeJsonStringify(event.user_prompt)
|
|
248463
|
+
},
|
|
248464
|
+
{
|
|
248465
|
+
gemini_cli_key: 161 /* CONSECA_GENERATED_POLICY */,
|
|
248466
|
+
value: safeJsonStringify(event.policy)
|
|
248467
|
+
},
|
|
248468
|
+
{
|
|
248469
|
+
gemini_cli_key: 14 /* GEMINI_CLI_TOOL_CALL_NAME */,
|
|
248470
|
+
value: safeJsonStringify(event.tool_call)
|
|
248471
|
+
},
|
|
248472
|
+
{
|
|
248473
|
+
gemini_cli_key: 163 /* CONSECA_VERDICT_RATIONALE */,
|
|
248474
|
+
value: event.verdict_rationale
|
|
248475
|
+
}
|
|
248476
|
+
);
|
|
248477
|
+
}
|
|
248430
248478
|
if (event.error) {
|
|
248431
248479
|
data.push({
|
|
248432
248480
|
gemini_cli_key: 166 /* CONSECA_ERROR */,
|
|
@@ -302646,7 +302694,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
302646
302694
|
return provider;
|
|
302647
302695
|
}
|
|
302648
302696
|
case "oauth2": {
|
|
302649
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
302697
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-JPCBTTS2.js");
|
|
302650
302698
|
const provider = new OAuth2AuthProvider(
|
|
302651
302699
|
authConfig,
|
|
302652
302700
|
options.agentName ?? "unknown",
|