@google/gemini-cli 0.40.0-preview.5 → 0.40.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-RZLEHIPO.js → chunk-2ABM66ZR.js} +1 -1
- package/bundle/{chunk-KH7Y2E2B.js → chunk-3XIE7V2G.js} +1 -1
- package/bundle/{chunk-HGZ3O2PQ.js → chunk-4NKEZSZL.js} +2 -2
- package/bundle/{chunk-M67MTWAA.js → chunk-A3XZVE6S.js} +1 -1
- package/bundle/{chunk-JEEOZX7K.js → chunk-B2OARGJJ.js} +74 -39
- package/bundle/{chunk-PSFOLETP.js → chunk-B6PIKVSF.js} +97 -49
- package/bundle/{chunk-2ZVZANM2.js → chunk-BJ6YFFH2.js} +2 -2
- package/bundle/{chunk-O5W5VNIB.js → chunk-C45QOW2J.js} +1 -1
- package/bundle/{chunk-PPI7V737.js → chunk-DMTQDMOD.js} +1 -1
- package/bundle/{chunk-UOPSSTRT.js → chunk-DQXPDCC3.js} +6 -6
- package/bundle/{chunk-BXEIZYPT.js → chunk-F5YK2O2Q.js} +1 -1
- package/bundle/{chunk-4QJ7BLYU.js → chunk-GT76ECCD.js} +74 -39
- package/bundle/{chunk-WKLZQYVS.js → chunk-H4FKMO4N.js} +2 -2
- package/bundle/{chunk-JMNFQX6P.js → chunk-HKIALAT6.js} +1 -1
- package/bundle/{chunk-JTHK45BC.js → chunk-MKP6YHAI.js} +2 -2
- package/bundle/{chunk-FVKIOUK2.js → chunk-RDM3AHIW.js} +6 -6
- package/bundle/{chunk-OFQ5ZK6W.js → chunk-RP4KDMW3.js} +1 -1
- package/bundle/{chunk-LZ3EBZC7.js → chunk-SDLMN2WK.js} +1 -1
- package/bundle/{chunk-PUYH6WLU.js → chunk-SVRZDVKN.js} +1 -1
- package/bundle/{chunk-KAUTKFXF.js → chunk-TV3H5VBI.js} +6 -6
- package/bundle/{chunk-YQJLBMKU.js → chunk-UN6XCVMJ.js} +74 -39
- package/bundle/{chunk-CTIVBV4R.js → chunk-VKQT3B2X.js} +1 -1
- package/bundle/{chunk-S2RMF5OF.js → chunk-VWLKCG5Q.js} +6 -6
- package/bundle/{chunk-WZUAJ737.js → chunk-WCG76BEG.js} +1 -1
- package/bundle/{cleanup-7NMCYTRU.js → cleanup-7VP4F7GR.js} +2 -2
- package/bundle/{cleanup-LU6VH5LF.js → cleanup-MNQ2UZZG.js} +2 -2
- package/bundle/{cleanup-CC4DZYSL.js → cleanup-P53J5X4G.js} +2 -2
- package/bundle/{cleanup-QDR2CCLD.js → cleanup-PLWTY4UK.js} +2 -2
- package/bundle/{core-J5EG27YJ.js → core-UFCQUVAZ.js} +1 -1
- package/bundle/{devtoolsService-DVFBLZLE.js → devtoolsService-F4BITN2L.js} +2 -2
- package/bundle/{devtoolsService-F5VVJOGU.js → devtoolsService-K4I6YCD4.js} +2 -2
- package/bundle/{devtoolsService-LAXMLGUQ.js → devtoolsService-TPQOS3XD.js} +2 -2
- package/bundle/{devtoolsService-L4UM23JP.js → devtoolsService-UBZYOZNR.js} +2 -2
- package/bundle/{dist-3PE52RNR.js → dist-CRAFZ4EV.js} +1 -1
- package/bundle/{dist-BDCT3HTY.js → dist-KBXYTOD4.js} +1 -1
- package/bundle/{dist-SXIB7Y3D.js → dist-RP6V5FR5.js} +1 -1
- package/bundle/{gemini-43M45BZJ.js → gemini-3OZCG3O2.js} +12 -12
- package/bundle/{gemini-TUKIRRHO.js → gemini-OEXUXD4F.js} +12 -12
- package/bundle/{gemini-5JHX3PCD.js → gemini-RYFDQAFM.js} +12 -12
- package/bundle/{gemini-A2RKH6S6.js → gemini-ZYQZGZWC.js} +12 -12
- package/bundle/gemini.js +3 -3
- package/bundle/{interactiveCli-3ZFYCJ5T.js → interactiveCli-M2JHWWJW.js} +6 -6
- package/bundle/{interactiveCli-UEQVG6ZN.js → interactiveCli-ND2AVROW.js} +6 -6
- package/bundle/{interactiveCli-5KEHC4M6.js → interactiveCli-VO2T47FA.js} +6 -6
- package/bundle/{interactiveCli-SQE667CT.js → interactiveCli-ZSLDJYKZ.js} +6 -6
- package/bundle/{liteRtServerManager-YKGSBN3S.js → liteRtServerManager-ESWH5RRJ.js} +3 -3
- package/bundle/{liteRtServerManager-G54ML27L.js → liteRtServerManager-HMMIC3TU.js} +3 -3
- package/bundle/{liteRtServerManager-OMCP3UEP.js → liteRtServerManager-JHBFWDI6.js} +3 -3
- package/bundle/{liteRtServerManager-ROQMRMW3.js → liteRtServerManager-KR4G6HVQ.js} +3 -3
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-2Q7SY72N.js → oauth2-provider-25JJN4A4.js} +1 -1
- package/bundle/{oauth2-provider-LO4KVOIV.js → oauth2-provider-HPAQM7LS.js} +1 -1
- package/bundle/{oauth2-provider-PTW7EGZX.js → oauth2-provider-IJ4VRZ7W.js} +1 -1
- package/bundle/{oauth2-provider-R3XULSB6.js → oauth2-provider-RQPXCAE5.js} +1 -1
- package/bundle/{start-O5R43BH5.js → start-2XU4BDSD.js} +5 -5
- package/bundle/{start-G4HKE6RC.js → start-H6E5SBV7.js} +5 -5
- package/bundle/{start-M46TTTBT.js → start-KGL2CIOG.js} +5 -5
- package/bundle/{start-VMKLEM5K.js → start-PATVFSB6.js} +5 -5
- package/package.json +1 -1
|
@@ -242821,6 +242821,16 @@ var UserPromptEvent = class {
|
|
|
242821
242821
|
}
|
|
242822
242822
|
};
|
|
242823
242823
|
var EVENT_TOOL_CALL = "gemini_cli.tool_call";
|
|
242824
|
+
var TOOL_CALL_METADATA_SAFE_KEYS = [
|
|
242825
|
+
"model_added_lines",
|
|
242826
|
+
"model_removed_lines",
|
|
242827
|
+
"model_added_chars",
|
|
242828
|
+
"model_removed_chars",
|
|
242829
|
+
"user_added_lines",
|
|
242830
|
+
"user_removed_lines",
|
|
242831
|
+
"user_added_chars",
|
|
242832
|
+
"user_removed_chars"
|
|
242833
|
+
];
|
|
242824
242834
|
var ToolCallEvent = class {
|
|
242825
242835
|
"event.name";
|
|
242826
242836
|
"event.timestamp";
|
|
@@ -242902,7 +242912,6 @@ var ToolCallEvent = class {
|
|
|
242902
242912
|
"event.name": EVENT_TOOL_CALL,
|
|
242903
242913
|
"event.timestamp": this["event.timestamp"],
|
|
242904
242914
|
function_name: this.function_name,
|
|
242905
|
-
function_args: safeJsonStringify(this.function_args, 2),
|
|
242906
242915
|
duration_ms: this.duration_ms,
|
|
242907
242916
|
success: this.success,
|
|
242908
242917
|
decision: this.decision,
|
|
@@ -242913,9 +242922,17 @@ var ToolCallEvent = class {
|
|
|
242913
242922
|
extension_name: this.extension_name,
|
|
242914
242923
|
extension_id: this.extension_id,
|
|
242915
242924
|
start_time: this.start_time,
|
|
242916
|
-
end_time: this.end_time
|
|
242917
|
-
metadata: this.metadata
|
|
242925
|
+
end_time: this.end_time
|
|
242918
242926
|
};
|
|
242927
|
+
if (config2.getTelemetryLogPromptsEnabled() && this.function_args) {
|
|
242928
|
+
attributes["function_args"] = safeJsonStringify(this.function_args, 2);
|
|
242929
|
+
}
|
|
242930
|
+
if (this.metadata) {
|
|
242931
|
+
const metadata2 = config2.getTelemetryLogPromptsEnabled() ? this.metadata : Object.fromEntries(Object.entries(this.metadata).filter(([k]) => TOOL_CALL_METADATA_SAFE_KEYS.includes(k)));
|
|
242932
|
+
if (Object.keys(metadata2).length > 0) {
|
|
242933
|
+
attributes["metadata"] = safeJsonStringify(metadata2, 2);
|
|
242934
|
+
}
|
|
242935
|
+
}
|
|
242919
242936
|
if (this.error) {
|
|
242920
242937
|
attributes[CoreToolCallStatus.Error] = this.error;
|
|
242921
242938
|
attributes["error.message"] = this.error;
|
|
@@ -242955,9 +242972,11 @@ var ApiRequestEvent = class {
|
|
|
242955
242972
|
"event.name": EVENT_API_REQUEST,
|
|
242956
242973
|
"event.timestamp": this["event.timestamp"],
|
|
242957
242974
|
model: this.model,
|
|
242958
|
-
prompt_id: this.prompt.prompt_id
|
|
242959
|
-
request_text: this.request_text
|
|
242975
|
+
prompt_id: this.prompt.prompt_id
|
|
242960
242976
|
};
|
|
242977
|
+
if (config2.getTelemetryLogPromptsEnabled() && this.request_text) {
|
|
242978
|
+
attributes["request_text"] = this.request_text;
|
|
242979
|
+
}
|
|
242961
242980
|
if (this.role) {
|
|
242962
242981
|
attributes["role"] = this.role;
|
|
242963
242982
|
}
|
|
@@ -243140,7 +243159,7 @@ var ApiResponseEvent = class {
|
|
|
243140
243159
|
if (this.role) {
|
|
243141
243160
|
attributes["role"] = this.role;
|
|
243142
243161
|
}
|
|
243143
|
-
if (this.response_text) {
|
|
243162
|
+
if (config2.getTelemetryLogPromptsEnabled() && this.response_text) {
|
|
243144
243163
|
attributes["response_text"] = this.response_text;
|
|
243145
243164
|
}
|
|
243146
243165
|
if (this.status_code) {
|
|
@@ -243350,11 +243369,19 @@ var ConsecaPolicyGenerationEvent = class {
|
|
|
243350
243369
|
const attributes = {
|
|
243351
243370
|
...getCommonAttributes(config2),
|
|
243352
243371
|
"event.name": EVENT_CONSECA_POLICY_GENERATION,
|
|
243353
|
-
"event.timestamp": this["event.timestamp"]
|
|
243354
|
-
user_prompt: this.user_prompt,
|
|
243355
|
-
trusted_content: this.trusted_content,
|
|
243356
|
-
policy: this.policy
|
|
243372
|
+
"event.timestamp": this["event.timestamp"]
|
|
243357
243373
|
};
|
|
243374
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
243375
|
+
if (this.user_prompt) {
|
|
243376
|
+
attributes["user_prompt"] = this.user_prompt;
|
|
243377
|
+
}
|
|
243378
|
+
if (this.trusted_content) {
|
|
243379
|
+
attributes["trusted_content"] = this.trusted_content;
|
|
243380
|
+
}
|
|
243381
|
+
if (this.policy) {
|
|
243382
|
+
attributes["policy"] = this.policy;
|
|
243383
|
+
}
|
|
243384
|
+
}
|
|
243358
243385
|
if (this.error) {
|
|
243359
243386
|
attributes["error"] = this.error;
|
|
243360
243387
|
}
|
|
@@ -243389,12 +243416,22 @@ var ConsecaVerdictEvent = class {
|
|
|
243389
243416
|
...getCommonAttributes(config2),
|
|
243390
243417
|
"event.name": EVENT_CONSECA_VERDICT,
|
|
243391
243418
|
"event.timestamp": this["event.timestamp"],
|
|
243392
|
-
|
|
243393
|
-
policy: this.policy,
|
|
243394
|
-
tool_call: this.tool_call,
|
|
243395
|
-
verdict: this.verdict,
|
|
243396
|
-
verdict_rationale: this.verdict_rationale
|
|
243419
|
+
verdict: this.verdict
|
|
243397
243420
|
};
|
|
243421
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
243422
|
+
if (this.user_prompt) {
|
|
243423
|
+
attributes["user_prompt"] = this.user_prompt;
|
|
243424
|
+
}
|
|
243425
|
+
if (this.policy) {
|
|
243426
|
+
attributes["policy"] = this.policy;
|
|
243427
|
+
}
|
|
243428
|
+
if (this.tool_call) {
|
|
243429
|
+
attributes["tool_call"] = this.tool_call;
|
|
243430
|
+
}
|
|
243431
|
+
if (this.verdict_rationale) {
|
|
243432
|
+
attributes["verdict_rationale"] = this.verdict_rationale;
|
|
243433
|
+
}
|
|
243434
|
+
}
|
|
243398
243435
|
if (this.error) {
|
|
243399
243436
|
attributes["error"] = this.error;
|
|
243400
243437
|
}
|
|
@@ -246075,8 +246112,8 @@ var EventMetadataKey;
|
|
|
246075
246112
|
})(EventMetadataKey || (EventMetadataKey = {}));
|
|
246076
246113
|
|
|
246077
246114
|
// packages/core/dist/src/generated/git-commit.js
|
|
246078
|
-
var GIT_COMMIT_INFO = "
|
|
246079
|
-
var CLI_VERSION = "0.40.0
|
|
246115
|
+
var GIT_COMMIT_INFO = "239ede120";
|
|
246116
|
+
var CLI_VERSION = "0.40.0";
|
|
246080
246117
|
|
|
246081
246118
|
// packages/core/dist/src/ide/detect-ide.js
|
|
246082
246119
|
var IDE_DEFINITIONS = {
|
|
@@ -248058,20 +248095,19 @@ function logConsecaPolicyGeneration(config2, event) {
|
|
|
248058
248095
|
debugLogger.debug("Conseca Policy Generation Event:", event);
|
|
248059
248096
|
const clearcutLogger = ClearcutLogger.getInstance(config2);
|
|
248060
248097
|
if (clearcutLogger) {
|
|
248061
|
-
const data = [
|
|
248062
|
-
|
|
248098
|
+
const data = [];
|
|
248099
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
248100
|
+
data.push({
|
|
248063
248101
|
gemini_cli_key: EventMetadataKey.CONSECA_USER_PROMPT,
|
|
248064
248102
|
value: safeJsonStringify(event.user_prompt)
|
|
248065
|
-
},
|
|
248066
|
-
{
|
|
248103
|
+
}, {
|
|
248067
248104
|
gemini_cli_key: EventMetadataKey.CONSECA_TRUSTED_CONTENT,
|
|
248068
248105
|
value: safeJsonStringify(event.trusted_content)
|
|
248069
|
-
},
|
|
248070
|
-
{
|
|
248106
|
+
}, {
|
|
248071
248107
|
gemini_cli_key: EventMetadataKey.CONSECA_GENERATED_POLICY,
|
|
248072
248108
|
value: safeJsonStringify(event.policy)
|
|
248073
|
-
}
|
|
248074
|
-
|
|
248109
|
+
});
|
|
248110
|
+
}
|
|
248075
248111
|
if (event.error) {
|
|
248076
248112
|
data.push({
|
|
248077
248113
|
gemini_cli_key: EventMetadataKey.CONSECA_ERROR,
|
|
@@ -248095,26 +248131,25 @@ function logConsecaVerdict(config2, event) {
|
|
|
248095
248131
|
if (clearcutLogger) {
|
|
248096
248132
|
const data = [
|
|
248097
248133
|
{
|
|
248134
|
+
gemini_cli_key: EventMetadataKey.CONSECA_VERDICT_RESULT,
|
|
248135
|
+
value: safeJsonStringify(event.verdict)
|
|
248136
|
+
}
|
|
248137
|
+
];
|
|
248138
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
248139
|
+
data.push({
|
|
248098
248140
|
gemini_cli_key: EventMetadataKey.CONSECA_USER_PROMPT,
|
|
248099
248141
|
value: safeJsonStringify(event.user_prompt)
|
|
248100
|
-
},
|
|
248101
|
-
{
|
|
248142
|
+
}, {
|
|
248102
248143
|
gemini_cli_key: EventMetadataKey.CONSECA_GENERATED_POLICY,
|
|
248103
248144
|
value: safeJsonStringify(event.policy)
|
|
248104
|
-
},
|
|
248105
|
-
{
|
|
248145
|
+
}, {
|
|
248106
248146
|
gemini_cli_key: EventMetadataKey.GEMINI_CLI_TOOL_CALL_NAME,
|
|
248107
248147
|
value: safeJsonStringify(event.tool_call)
|
|
248108
|
-
},
|
|
248109
|
-
{
|
|
248110
|
-
gemini_cli_key: EventMetadataKey.CONSECA_VERDICT_RESULT,
|
|
248111
|
-
value: safeJsonStringify(event.verdict)
|
|
248112
|
-
},
|
|
248113
|
-
{
|
|
248148
|
+
}, {
|
|
248114
248149
|
gemini_cli_key: EventMetadataKey.CONSECA_VERDICT_RATIONALE,
|
|
248115
248150
|
value: event.verdict_rationale
|
|
248116
|
-
}
|
|
248117
|
-
|
|
248151
|
+
});
|
|
248152
|
+
}
|
|
248118
248153
|
if (event.error) {
|
|
248119
248154
|
data.push({
|
|
248120
248155
|
gemini_cli_key: EventMetadataKey.CONSECA_ERROR,
|
|
@@ -268999,7 +269034,7 @@ function getVersion() {
|
|
|
268999
269034
|
}
|
|
269000
269035
|
versionPromise = (async () => {
|
|
269001
269036
|
const pkgJson = await getPackageJson(__dirname4);
|
|
269002
|
-
return "0.40.
|
|
269037
|
+
return "0.40.1";
|
|
269003
269038
|
})();
|
|
269004
269039
|
return versionPromise;
|
|
269005
269040
|
}
|
|
@@ -300105,7 +300140,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
300105
300140
|
return provider;
|
|
300106
300141
|
}
|
|
300107
300142
|
case "oauth2": {
|
|
300108
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
300143
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-25JJN4A4.js");
|
|
300109
300144
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
300110
300145
|
await provider.initialize();
|
|
300111
300146
|
return provider;
|
|
@@ -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-WCG76BEG.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-DMTQDMOD.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
20
|
} from "./chunk-F73F75XM.js";
|
|
@@ -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-3XIE7V2G.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -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-HKIALAT6.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-VKQT3B2X.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
20
|
} from "./chunk-F73F75XM.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
exitCli,
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SVRZDVKN.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-A3XZVE6S.js";
|
|
63
63
|
import {
|
|
64
64
|
runExitCleanup
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-F5YK2O2Q.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-B2OARGJJ.js";
|
|
212
212
|
import {
|
|
213
213
|
ApprovalMode,
|
|
214
214
|
CoreEvent,
|
|
@@ -55004,7 +55004,7 @@ var authCommand = {
|
|
|
55004
55004
|
import process29 from "node:process";
|
|
55005
55005
|
|
|
55006
55006
|
// packages/cli/src/generated/git-commit.ts
|
|
55007
|
-
var GIT_COMMIT_INFO = "
|
|
55007
|
+
var GIT_COMMIT_INFO = "239ede120";
|
|
55008
55008
|
|
|
55009
55009
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
55010
55010
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -60489,7 +60489,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
60489
60489
|
type: "info",
|
|
60490
60490
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
60491
60491
|
});
|
|
60492
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
60492
|
+
const { MCPOAuthProvider } = await import("./dist-RP6V5FR5.js");
|
|
60493
60493
|
let oauthConfig = server.oauth;
|
|
60494
60494
|
if (!oauthConfig) {
|
|
60495
60495
|
oauthConfig = { enabled: false };
|
|
@@ -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-2ABM66ZR.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -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-F5YK2O2Q.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
exitCli,
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WCG76BEG.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-DMTQDMOD.js";
|
|
63
63
|
import {
|
|
64
64
|
runExitCleanup
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-C45QOW2J.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-GT76ECCD.js";
|
|
212
212
|
import {
|
|
213
213
|
ApprovalMode,
|
|
214
214
|
CoreEvent,
|
|
@@ -55004,7 +55004,7 @@ var authCommand = {
|
|
|
55004
55004
|
import process29 from "node:process";
|
|
55005
55005
|
|
|
55006
55006
|
// packages/cli/src/generated/git-commit.ts
|
|
55007
|
-
var GIT_COMMIT_INFO = "
|
|
55007
|
+
var GIT_COMMIT_INFO = "239ede120";
|
|
55008
55008
|
|
|
55009
55009
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
55010
55010
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -60489,7 +60489,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
60489
60489
|
type: "info",
|
|
60490
60490
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
60491
60491
|
});
|
|
60492
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
60492
|
+
const { MCPOAuthProvider } = await import("./dist-CRAFZ4EV.js");
|
|
60493
60493
|
let oauthConfig = server.oauth;
|
|
60494
60494
|
if (!oauthConfig) {
|
|
60495
60495
|
oauthConfig = { enabled: false };
|
|
@@ -242821,6 +242821,16 @@ var UserPromptEvent = class {
|
|
|
242821
242821
|
}
|
|
242822
242822
|
};
|
|
242823
242823
|
var EVENT_TOOL_CALL = "gemini_cli.tool_call";
|
|
242824
|
+
var TOOL_CALL_METADATA_SAFE_KEYS = [
|
|
242825
|
+
"model_added_lines",
|
|
242826
|
+
"model_removed_lines",
|
|
242827
|
+
"model_added_chars",
|
|
242828
|
+
"model_removed_chars",
|
|
242829
|
+
"user_added_lines",
|
|
242830
|
+
"user_removed_lines",
|
|
242831
|
+
"user_added_chars",
|
|
242832
|
+
"user_removed_chars"
|
|
242833
|
+
];
|
|
242824
242834
|
var ToolCallEvent = class {
|
|
242825
242835
|
"event.name";
|
|
242826
242836
|
"event.timestamp";
|
|
@@ -242902,7 +242912,6 @@ var ToolCallEvent = class {
|
|
|
242902
242912
|
"event.name": EVENT_TOOL_CALL,
|
|
242903
242913
|
"event.timestamp": this["event.timestamp"],
|
|
242904
242914
|
function_name: this.function_name,
|
|
242905
|
-
function_args: safeJsonStringify(this.function_args, 2),
|
|
242906
242915
|
duration_ms: this.duration_ms,
|
|
242907
242916
|
success: this.success,
|
|
242908
242917
|
decision: this.decision,
|
|
@@ -242913,9 +242922,17 @@ var ToolCallEvent = class {
|
|
|
242913
242922
|
extension_name: this.extension_name,
|
|
242914
242923
|
extension_id: this.extension_id,
|
|
242915
242924
|
start_time: this.start_time,
|
|
242916
|
-
end_time: this.end_time
|
|
242917
|
-
metadata: this.metadata
|
|
242925
|
+
end_time: this.end_time
|
|
242918
242926
|
};
|
|
242927
|
+
if (config2.getTelemetryLogPromptsEnabled() && this.function_args) {
|
|
242928
|
+
attributes["function_args"] = safeJsonStringify(this.function_args, 2);
|
|
242929
|
+
}
|
|
242930
|
+
if (this.metadata) {
|
|
242931
|
+
const metadata2 = config2.getTelemetryLogPromptsEnabled() ? this.metadata : Object.fromEntries(Object.entries(this.metadata).filter(([k]) => TOOL_CALL_METADATA_SAFE_KEYS.includes(k)));
|
|
242932
|
+
if (Object.keys(metadata2).length > 0) {
|
|
242933
|
+
attributes["metadata"] = safeJsonStringify(metadata2, 2);
|
|
242934
|
+
}
|
|
242935
|
+
}
|
|
242919
242936
|
if (this.error) {
|
|
242920
242937
|
attributes[CoreToolCallStatus.Error] = this.error;
|
|
242921
242938
|
attributes["error.message"] = this.error;
|
|
@@ -242955,9 +242972,11 @@ var ApiRequestEvent = class {
|
|
|
242955
242972
|
"event.name": EVENT_API_REQUEST,
|
|
242956
242973
|
"event.timestamp": this["event.timestamp"],
|
|
242957
242974
|
model: this.model,
|
|
242958
|
-
prompt_id: this.prompt.prompt_id
|
|
242959
|
-
request_text: this.request_text
|
|
242975
|
+
prompt_id: this.prompt.prompt_id
|
|
242960
242976
|
};
|
|
242977
|
+
if (config2.getTelemetryLogPromptsEnabled() && this.request_text) {
|
|
242978
|
+
attributes["request_text"] = this.request_text;
|
|
242979
|
+
}
|
|
242961
242980
|
if (this.role) {
|
|
242962
242981
|
attributes["role"] = this.role;
|
|
242963
242982
|
}
|
|
@@ -243140,7 +243159,7 @@ var ApiResponseEvent = class {
|
|
|
243140
243159
|
if (this.role) {
|
|
243141
243160
|
attributes["role"] = this.role;
|
|
243142
243161
|
}
|
|
243143
|
-
if (this.response_text) {
|
|
243162
|
+
if (config2.getTelemetryLogPromptsEnabled() && this.response_text) {
|
|
243144
243163
|
attributes["response_text"] = this.response_text;
|
|
243145
243164
|
}
|
|
243146
243165
|
if (this.status_code) {
|
|
@@ -243350,11 +243369,19 @@ var ConsecaPolicyGenerationEvent = class {
|
|
|
243350
243369
|
const attributes = {
|
|
243351
243370
|
...getCommonAttributes(config2),
|
|
243352
243371
|
"event.name": EVENT_CONSECA_POLICY_GENERATION,
|
|
243353
|
-
"event.timestamp": this["event.timestamp"]
|
|
243354
|
-
user_prompt: this.user_prompt,
|
|
243355
|
-
trusted_content: this.trusted_content,
|
|
243356
|
-
policy: this.policy
|
|
243372
|
+
"event.timestamp": this["event.timestamp"]
|
|
243357
243373
|
};
|
|
243374
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
243375
|
+
if (this.user_prompt) {
|
|
243376
|
+
attributes["user_prompt"] = this.user_prompt;
|
|
243377
|
+
}
|
|
243378
|
+
if (this.trusted_content) {
|
|
243379
|
+
attributes["trusted_content"] = this.trusted_content;
|
|
243380
|
+
}
|
|
243381
|
+
if (this.policy) {
|
|
243382
|
+
attributes["policy"] = this.policy;
|
|
243383
|
+
}
|
|
243384
|
+
}
|
|
243358
243385
|
if (this.error) {
|
|
243359
243386
|
attributes["error"] = this.error;
|
|
243360
243387
|
}
|
|
@@ -243389,12 +243416,22 @@ var ConsecaVerdictEvent = class {
|
|
|
243389
243416
|
...getCommonAttributes(config2),
|
|
243390
243417
|
"event.name": EVENT_CONSECA_VERDICT,
|
|
243391
243418
|
"event.timestamp": this["event.timestamp"],
|
|
243392
|
-
|
|
243393
|
-
policy: this.policy,
|
|
243394
|
-
tool_call: this.tool_call,
|
|
243395
|
-
verdict: this.verdict,
|
|
243396
|
-
verdict_rationale: this.verdict_rationale
|
|
243419
|
+
verdict: this.verdict
|
|
243397
243420
|
};
|
|
243421
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
243422
|
+
if (this.user_prompt) {
|
|
243423
|
+
attributes["user_prompt"] = this.user_prompt;
|
|
243424
|
+
}
|
|
243425
|
+
if (this.policy) {
|
|
243426
|
+
attributes["policy"] = this.policy;
|
|
243427
|
+
}
|
|
243428
|
+
if (this.tool_call) {
|
|
243429
|
+
attributes["tool_call"] = this.tool_call;
|
|
243430
|
+
}
|
|
243431
|
+
if (this.verdict_rationale) {
|
|
243432
|
+
attributes["verdict_rationale"] = this.verdict_rationale;
|
|
243433
|
+
}
|
|
243434
|
+
}
|
|
243398
243435
|
if (this.error) {
|
|
243399
243436
|
attributes["error"] = this.error;
|
|
243400
243437
|
}
|
|
@@ -246075,8 +246112,8 @@ var EventMetadataKey;
|
|
|
246075
246112
|
})(EventMetadataKey || (EventMetadataKey = {}));
|
|
246076
246113
|
|
|
246077
246114
|
// packages/core/dist/src/generated/git-commit.js
|
|
246078
|
-
var GIT_COMMIT_INFO = "
|
|
246079
|
-
var CLI_VERSION = "0.40.
|
|
246115
|
+
var GIT_COMMIT_INFO = "239ede120";
|
|
246116
|
+
var CLI_VERSION = "0.40.1";
|
|
246080
246117
|
|
|
246081
246118
|
// packages/core/dist/src/ide/detect-ide.js
|
|
246082
246119
|
var IDE_DEFINITIONS = {
|
|
@@ -248058,20 +248095,19 @@ function logConsecaPolicyGeneration(config2, event) {
|
|
|
248058
248095
|
debugLogger.debug("Conseca Policy Generation Event:", event);
|
|
248059
248096
|
const clearcutLogger = ClearcutLogger.getInstance(config2);
|
|
248060
248097
|
if (clearcutLogger) {
|
|
248061
|
-
const data = [
|
|
248062
|
-
|
|
248098
|
+
const data = [];
|
|
248099
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
248100
|
+
data.push({
|
|
248063
248101
|
gemini_cli_key: EventMetadataKey.CONSECA_USER_PROMPT,
|
|
248064
248102
|
value: safeJsonStringify(event.user_prompt)
|
|
248065
|
-
},
|
|
248066
|
-
{
|
|
248103
|
+
}, {
|
|
248067
248104
|
gemini_cli_key: EventMetadataKey.CONSECA_TRUSTED_CONTENT,
|
|
248068
248105
|
value: safeJsonStringify(event.trusted_content)
|
|
248069
|
-
},
|
|
248070
|
-
{
|
|
248106
|
+
}, {
|
|
248071
248107
|
gemini_cli_key: EventMetadataKey.CONSECA_GENERATED_POLICY,
|
|
248072
248108
|
value: safeJsonStringify(event.policy)
|
|
248073
|
-
}
|
|
248074
|
-
|
|
248109
|
+
});
|
|
248110
|
+
}
|
|
248075
248111
|
if (event.error) {
|
|
248076
248112
|
data.push({
|
|
248077
248113
|
gemini_cli_key: EventMetadataKey.CONSECA_ERROR,
|
|
@@ -248095,26 +248131,25 @@ function logConsecaVerdict(config2, event) {
|
|
|
248095
248131
|
if (clearcutLogger) {
|
|
248096
248132
|
const data = [
|
|
248097
248133
|
{
|
|
248134
|
+
gemini_cli_key: EventMetadataKey.CONSECA_VERDICT_RESULT,
|
|
248135
|
+
value: safeJsonStringify(event.verdict)
|
|
248136
|
+
}
|
|
248137
|
+
];
|
|
248138
|
+
if (config2.getTelemetryLogPromptsEnabled()) {
|
|
248139
|
+
data.push({
|
|
248098
248140
|
gemini_cli_key: EventMetadataKey.CONSECA_USER_PROMPT,
|
|
248099
248141
|
value: safeJsonStringify(event.user_prompt)
|
|
248100
|
-
},
|
|
248101
|
-
{
|
|
248142
|
+
}, {
|
|
248102
248143
|
gemini_cli_key: EventMetadataKey.CONSECA_GENERATED_POLICY,
|
|
248103
248144
|
value: safeJsonStringify(event.policy)
|
|
248104
|
-
},
|
|
248105
|
-
{
|
|
248145
|
+
}, {
|
|
248106
248146
|
gemini_cli_key: EventMetadataKey.GEMINI_CLI_TOOL_CALL_NAME,
|
|
248107
248147
|
value: safeJsonStringify(event.tool_call)
|
|
248108
|
-
},
|
|
248109
|
-
{
|
|
248110
|
-
gemini_cli_key: EventMetadataKey.CONSECA_VERDICT_RESULT,
|
|
248111
|
-
value: safeJsonStringify(event.verdict)
|
|
248112
|
-
},
|
|
248113
|
-
{
|
|
248148
|
+
}, {
|
|
248114
248149
|
gemini_cli_key: EventMetadataKey.CONSECA_VERDICT_RATIONALE,
|
|
248115
248150
|
value: event.verdict_rationale
|
|
248116
|
-
}
|
|
248117
|
-
|
|
248151
|
+
});
|
|
248152
|
+
}
|
|
248118
248153
|
if (event.error) {
|
|
248119
248154
|
data.push({
|
|
248120
248155
|
gemini_cli_key: EventMetadataKey.CONSECA_ERROR,
|
|
@@ -268999,7 +269034,7 @@ function getVersion() {
|
|
|
268999
269034
|
}
|
|
269000
269035
|
versionPromise = (async () => {
|
|
269001
269036
|
const pkgJson = await getPackageJson(__dirname4);
|
|
269002
|
-
return "0.40.
|
|
269037
|
+
return "0.40.1";
|
|
269003
269038
|
})();
|
|
269004
269039
|
return versionPromise;
|
|
269005
269040
|
}
|
|
@@ -300105,7 +300140,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
300105
300140
|
return provider;
|
|
300106
300141
|
}
|
|
300107
300142
|
case "oauth2": {
|
|
300108
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
300143
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-HPAQM7LS.js");
|
|
300109
300144
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
300110
300145
|
await provider.initialize();
|
|
300111
300146
|
return provider;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
exitCli,
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HKIALAT6.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-VKQT3B2X.js";
|
|
63
63
|
import {
|
|
64
64
|
runExitCleanup
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-3XIE7V2G.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-UN6XCVMJ.js";
|
|
212
212
|
import {
|
|
213
213
|
ApprovalMode,
|
|
214
214
|
CoreEvent,
|
|
@@ -55004,7 +55004,7 @@ var authCommand = {
|
|
|
55004
55004
|
import process29 from "node:process";
|
|
55005
55005
|
|
|
55006
55006
|
// packages/cli/src/generated/git-commit.ts
|
|
55007
|
-
var GIT_COMMIT_INFO = "
|
|
55007
|
+
var GIT_COMMIT_INFO = "7a382e066";
|
|
55008
55008
|
|
|
55009
55009
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
55010
55010
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -60489,7 +60489,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
60489
60489
|
type: "info",
|
|
60490
60490
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
60491
60491
|
});
|
|
60492
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
60492
|
+
const { MCPOAuthProvider } = await import("./dist-KBXYTOD4.js");
|
|
60493
60493
|
let oauthConfig = server.oauth;
|
|
60494
60494
|
if (!oauthConfig) {
|
|
60495
60495
|
oauthConfig = { enabled: false };
|
|
@@ -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-C45QOW2J.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-F5YK2O2Q.js";
|
|
15
|
+
import "./chunk-B2OARGJJ.js";
|
|
16
16
|
import "./chunk-F73F75XM.js";
|
|
17
17
|
import "./chunk-664ZODQF.js";
|
|
18
18
|
import "./chunk-RJTRUG2J.js";
|