@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.
Files changed (59) hide show
  1. package/bundle/{chunk-RZLEHIPO.js → chunk-2ABM66ZR.js} +1 -1
  2. package/bundle/{chunk-KH7Y2E2B.js → chunk-3XIE7V2G.js} +1 -1
  3. package/bundle/{chunk-HGZ3O2PQ.js → chunk-4NKEZSZL.js} +2 -2
  4. package/bundle/{chunk-M67MTWAA.js → chunk-A3XZVE6S.js} +1 -1
  5. package/bundle/{chunk-JEEOZX7K.js → chunk-B2OARGJJ.js} +74 -39
  6. package/bundle/{chunk-PSFOLETP.js → chunk-B6PIKVSF.js} +97 -49
  7. package/bundle/{chunk-2ZVZANM2.js → chunk-BJ6YFFH2.js} +2 -2
  8. package/bundle/{chunk-O5W5VNIB.js → chunk-C45QOW2J.js} +1 -1
  9. package/bundle/{chunk-PPI7V737.js → chunk-DMTQDMOD.js} +1 -1
  10. package/bundle/{chunk-UOPSSTRT.js → chunk-DQXPDCC3.js} +6 -6
  11. package/bundle/{chunk-BXEIZYPT.js → chunk-F5YK2O2Q.js} +1 -1
  12. package/bundle/{chunk-4QJ7BLYU.js → chunk-GT76ECCD.js} +74 -39
  13. package/bundle/{chunk-WKLZQYVS.js → chunk-H4FKMO4N.js} +2 -2
  14. package/bundle/{chunk-JMNFQX6P.js → chunk-HKIALAT6.js} +1 -1
  15. package/bundle/{chunk-JTHK45BC.js → chunk-MKP6YHAI.js} +2 -2
  16. package/bundle/{chunk-FVKIOUK2.js → chunk-RDM3AHIW.js} +6 -6
  17. package/bundle/{chunk-OFQ5ZK6W.js → chunk-RP4KDMW3.js} +1 -1
  18. package/bundle/{chunk-LZ3EBZC7.js → chunk-SDLMN2WK.js} +1 -1
  19. package/bundle/{chunk-PUYH6WLU.js → chunk-SVRZDVKN.js} +1 -1
  20. package/bundle/{chunk-KAUTKFXF.js → chunk-TV3H5VBI.js} +6 -6
  21. package/bundle/{chunk-YQJLBMKU.js → chunk-UN6XCVMJ.js} +74 -39
  22. package/bundle/{chunk-CTIVBV4R.js → chunk-VKQT3B2X.js} +1 -1
  23. package/bundle/{chunk-S2RMF5OF.js → chunk-VWLKCG5Q.js} +6 -6
  24. package/bundle/{chunk-WZUAJ737.js → chunk-WCG76BEG.js} +1 -1
  25. package/bundle/{cleanup-7NMCYTRU.js → cleanup-7VP4F7GR.js} +2 -2
  26. package/bundle/{cleanup-LU6VH5LF.js → cleanup-MNQ2UZZG.js} +2 -2
  27. package/bundle/{cleanup-CC4DZYSL.js → cleanup-P53J5X4G.js} +2 -2
  28. package/bundle/{cleanup-QDR2CCLD.js → cleanup-PLWTY4UK.js} +2 -2
  29. package/bundle/{core-J5EG27YJ.js → core-UFCQUVAZ.js} +1 -1
  30. package/bundle/{devtoolsService-DVFBLZLE.js → devtoolsService-F4BITN2L.js} +2 -2
  31. package/bundle/{devtoolsService-F5VVJOGU.js → devtoolsService-K4I6YCD4.js} +2 -2
  32. package/bundle/{devtoolsService-LAXMLGUQ.js → devtoolsService-TPQOS3XD.js} +2 -2
  33. package/bundle/{devtoolsService-L4UM23JP.js → devtoolsService-UBZYOZNR.js} +2 -2
  34. package/bundle/{dist-3PE52RNR.js → dist-CRAFZ4EV.js} +1 -1
  35. package/bundle/{dist-BDCT3HTY.js → dist-KBXYTOD4.js} +1 -1
  36. package/bundle/{dist-SXIB7Y3D.js → dist-RP6V5FR5.js} +1 -1
  37. package/bundle/{gemini-43M45BZJ.js → gemini-3OZCG3O2.js} +12 -12
  38. package/bundle/{gemini-TUKIRRHO.js → gemini-OEXUXD4F.js} +12 -12
  39. package/bundle/{gemini-5JHX3PCD.js → gemini-RYFDQAFM.js} +12 -12
  40. package/bundle/{gemini-A2RKH6S6.js → gemini-ZYQZGZWC.js} +12 -12
  41. package/bundle/gemini.js +3 -3
  42. package/bundle/{interactiveCli-3ZFYCJ5T.js → interactiveCli-M2JHWWJW.js} +6 -6
  43. package/bundle/{interactiveCli-UEQVG6ZN.js → interactiveCli-ND2AVROW.js} +6 -6
  44. package/bundle/{interactiveCli-5KEHC4M6.js → interactiveCli-VO2T47FA.js} +6 -6
  45. package/bundle/{interactiveCli-SQE667CT.js → interactiveCli-ZSLDJYKZ.js} +6 -6
  46. package/bundle/{liteRtServerManager-YKGSBN3S.js → liteRtServerManager-ESWH5RRJ.js} +3 -3
  47. package/bundle/{liteRtServerManager-G54ML27L.js → liteRtServerManager-HMMIC3TU.js} +3 -3
  48. package/bundle/{liteRtServerManager-OMCP3UEP.js → liteRtServerManager-JHBFWDI6.js} +3 -3
  49. package/bundle/{liteRtServerManager-ROQMRMW3.js → liteRtServerManager-KR4G6HVQ.js} +3 -3
  50. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  51. package/bundle/{oauth2-provider-2Q7SY72N.js → oauth2-provider-25JJN4A4.js} +1 -1
  52. package/bundle/{oauth2-provider-LO4KVOIV.js → oauth2-provider-HPAQM7LS.js} +1 -1
  53. package/bundle/{oauth2-provider-PTW7EGZX.js → oauth2-provider-IJ4VRZ7W.js} +1 -1
  54. package/bundle/{oauth2-provider-R3XULSB6.js → oauth2-provider-RQPXCAE5.js} +1 -1
  55. package/bundle/{start-O5R43BH5.js → start-2XU4BDSD.js} +5 -5
  56. package/bundle/{start-G4HKE6RC.js → start-H6E5SBV7.js} +5 -5
  57. package/bundle/{start-M46TTTBT.js → start-KGL2CIOG.js} +5 -5
  58. package/bundle/{start-VMKLEM5K.js → start-PATVFSB6.js} +5 -5
  59. package/package.json +1 -1
@@ -4,7 +4,7 @@ import {
4
4
  isTelemetrySdkInitialized,
5
5
  resetBrowserSession,
6
6
  shutdownTelemetry
7
- } from "./chunk-PSFOLETP.js";
7
+ } from "./chunk-B6PIKVSF.js";
8
8
  import {
9
9
  Storage
10
10
  } from "./chunk-UHHRGNIO.js";
@@ -4,7 +4,7 @@ import {
4
4
  isTelemetrySdkInitialized,
5
5
  resetBrowserSession,
6
6
  shutdownTelemetry
7
- } from "./chunk-JEEOZX7K.js";
7
+ } from "./chunk-UN6XCVMJ.js";
8
8
  import {
9
9
  Storage
10
10
  } from "./chunk-F73F75XM.js";
@@ -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-WZUAJ737.js";
5
+ } from "./chunk-SVRZDVKN.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-PPI7V737.js";
17
+ } from "./chunk-A3XZVE6S.js";
18
18
  import {
19
19
  debugLogger
20
20
  } from "./chunk-F73F75XM.js";
@@ -21,7 +21,7 @@ import {
21
21
  require_strip_json_comments,
22
22
  sanitizeFilenamePart,
23
23
  stripAnsi
24
- } from "./chunk-4QJ7BLYU.js";
24
+ } from "./chunk-B2OARGJJ.js";
25
25
  import {
26
26
  CoreEvent,
27
27
  FatalConfigError,
@@ -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
- user_prompt: this.user_prompt,
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 = "7fd336f5f";
246079
- var CLI_VERSION = "0.40.0-preview.4";
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.0-preview.4";
269037
+ return "0.40.0";
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-LO4KVOIV.js");
300143
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-IJ4VRZ7W.js");
300109
300144
  const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
300110
300145
  await provider.initialize();
300111
300146
  return provider;
@@ -242985,6 +242985,16 @@ var UserPromptEvent = class {
242985
242985
  }
242986
242986
  };
242987
242987
  var EVENT_TOOL_CALL = "gemini_cli.tool_call";
242988
+ var TOOL_CALL_METADATA_SAFE_KEYS = [
242989
+ "model_added_lines",
242990
+ "model_removed_lines",
242991
+ "model_added_chars",
242992
+ "model_removed_chars",
242993
+ "user_added_lines",
242994
+ "user_removed_lines",
242995
+ "user_added_chars",
242996
+ "user_removed_chars"
242997
+ ];
242988
242998
  var ToolCallEvent = class {
242989
242999
  "event.name";
242990
243000
  "event.timestamp";
@@ -243068,7 +243078,6 @@ var ToolCallEvent = class {
243068
243078
  "event.name": EVENT_TOOL_CALL,
243069
243079
  "event.timestamp": this["event.timestamp"],
243070
243080
  function_name: this.function_name,
243071
- function_args: safeJsonStringify(this.function_args, 2),
243072
243081
  duration_ms: this.duration_ms,
243073
243082
  success: this.success,
243074
243083
  decision: this.decision,
@@ -243079,9 +243088,21 @@ var ToolCallEvent = class {
243079
243088
  extension_name: this.extension_name,
243080
243089
  extension_id: this.extension_id,
243081
243090
  start_time: this.start_time,
243082
- end_time: this.end_time,
243083
- metadata: this.metadata
243091
+ end_time: this.end_time
243084
243092
  };
243093
+ if (config2.getTelemetryLogPromptsEnabled() && this.function_args) {
243094
+ attributes["function_args"] = safeJsonStringify(this.function_args, 2);
243095
+ }
243096
+ if (this.metadata) {
243097
+ const metadata2 = config2.getTelemetryLogPromptsEnabled() ? this.metadata : Object.fromEntries(
243098
+ Object.entries(this.metadata).filter(
243099
+ ([k]) => TOOL_CALL_METADATA_SAFE_KEYS.includes(k)
243100
+ )
243101
+ );
243102
+ if (Object.keys(metadata2).length > 0) {
243103
+ attributes["metadata"] = safeJsonStringify(metadata2, 2);
243104
+ }
243105
+ }
243085
243106
  if (this.error) {
243086
243107
  attributes["error" /* Error */] = this.error;
243087
243108
  attributes["error.message"] = this.error;
@@ -243121,9 +243142,11 @@ var ApiRequestEvent = class {
243121
243142
  "event.name": EVENT_API_REQUEST,
243122
243143
  "event.timestamp": this["event.timestamp"],
243123
243144
  model: this.model,
243124
- prompt_id: this.prompt.prompt_id,
243125
- request_text: this.request_text
243145
+ prompt_id: this.prompt.prompt_id
243126
243146
  };
243147
+ if (config2.getTelemetryLogPromptsEnabled() && this.request_text) {
243148
+ attributes["request_text"] = this.request_text;
243149
+ }
243127
243150
  if (this.role) {
243128
243151
  attributes["role"] = this.role;
243129
243152
  }
@@ -243312,7 +243335,7 @@ var ApiResponseEvent = class {
243312
243335
  if (this.role) {
243313
243336
  attributes["role"] = this.role;
243314
243337
  }
243315
- if (this.response_text) {
243338
+ if (config2.getTelemetryLogPromptsEnabled() && this.response_text) {
243316
243339
  attributes["response_text"] = this.response_text;
243317
243340
  }
243318
243341
  if (this.status_code) {
@@ -243517,11 +243540,19 @@ var ConsecaPolicyGenerationEvent = class {
243517
243540
  const attributes = {
243518
243541
  ...getCommonAttributes(config2),
243519
243542
  "event.name": EVENT_CONSECA_POLICY_GENERATION,
243520
- "event.timestamp": this["event.timestamp"],
243521
- user_prompt: this.user_prompt,
243522
- trusted_content: this.trusted_content,
243523
- policy: this.policy
243543
+ "event.timestamp": this["event.timestamp"]
243524
243544
  };
243545
+ if (config2.getTelemetryLogPromptsEnabled()) {
243546
+ if (this.user_prompt) {
243547
+ attributes["user_prompt"] = this.user_prompt;
243548
+ }
243549
+ if (this.trusted_content) {
243550
+ attributes["trusted_content"] = this.trusted_content;
243551
+ }
243552
+ if (this.policy) {
243553
+ attributes["policy"] = this.policy;
243554
+ }
243555
+ }
243525
243556
  if (this.error) {
243526
243557
  attributes["error"] = this.error;
243527
243558
  }
@@ -243556,12 +243587,22 @@ var ConsecaVerdictEvent = class {
243556
243587
  ...getCommonAttributes(config2),
243557
243588
  "event.name": EVENT_CONSECA_VERDICT,
243558
243589
  "event.timestamp": this["event.timestamp"],
243559
- user_prompt: this.user_prompt,
243560
- policy: this.policy,
243561
- tool_call: this.tool_call,
243562
- verdict: this.verdict,
243563
- verdict_rationale: this.verdict_rationale
243590
+ verdict: this.verdict
243564
243591
  };
243592
+ if (config2.getTelemetryLogPromptsEnabled()) {
243593
+ if (this.user_prompt) {
243594
+ attributes["user_prompt"] = this.user_prompt;
243595
+ }
243596
+ if (this.policy) {
243597
+ attributes["policy"] = this.policy;
243598
+ }
243599
+ if (this.tool_call) {
243600
+ attributes["tool_call"] = this.tool_call;
243601
+ }
243602
+ if (this.verdict_rationale) {
243603
+ attributes["verdict_rationale"] = this.verdict_rationale;
243604
+ }
243605
+ }
243565
243606
  if (this.error) {
243566
243607
  attributes["error"] = this.error;
243567
243608
  }
@@ -246194,8 +246235,8 @@ import { createHash } from "node:crypto";
246194
246235
  import * as os12 from "node:os";
246195
246236
 
246196
246237
  // packages/core/src/generated/git-commit.ts
246197
- var GIT_COMMIT_INFO = "7fd336f5f";
246198
- var CLI_VERSION = "0.40.0-preview.4";
246238
+ var GIT_COMMIT_INFO = "239ede120";
246239
+ var CLI_VERSION = "0.40.0";
246199
246240
 
246200
246241
  // packages/core/src/ide/detect-ide.ts
246201
246242
  var IDE_DEFINITIONS = {
@@ -248208,20 +248249,23 @@ function logConsecaPolicyGeneration(config2, event) {
248208
248249
  debugLogger.debug("Conseca Policy Generation Event:", event);
248209
248250
  const clearcutLogger = ClearcutLogger.getInstance(config2);
248210
248251
  if (clearcutLogger) {
248211
- const data = [
248212
- {
248213
- gemini_cli_key: 165 /* CONSECA_USER_PROMPT */,
248214
- value: safeJsonStringify(event.user_prompt)
248215
- },
248216
- {
248217
- gemini_cli_key: 164 /* CONSECA_TRUSTED_CONTENT */,
248218
- value: safeJsonStringify(event.trusted_content)
248219
- },
248220
- {
248221
- gemini_cli_key: 161 /* CONSECA_GENERATED_POLICY */,
248222
- value: safeJsonStringify(event.policy)
248223
- }
248224
- ];
248252
+ const data = [];
248253
+ if (config2.getTelemetryLogPromptsEnabled()) {
248254
+ data.push(
248255
+ {
248256
+ gemini_cli_key: 165 /* CONSECA_USER_PROMPT */,
248257
+ value: safeJsonStringify(event.user_prompt)
248258
+ },
248259
+ {
248260
+ gemini_cli_key: 164 /* CONSECA_TRUSTED_CONTENT */,
248261
+ value: safeJsonStringify(event.trusted_content)
248262
+ },
248263
+ {
248264
+ gemini_cli_key: 161 /* CONSECA_GENERATED_POLICY */,
248265
+ value: safeJsonStringify(event.policy)
248266
+ }
248267
+ );
248268
+ }
248225
248269
  if (event.error) {
248226
248270
  data.push({
248227
248271
  gemini_cli_key: 166 /* CONSECA_ERROR */,
@@ -248245,27 +248289,31 @@ function logConsecaVerdict(config2, event) {
248245
248289
  const clearcutLogger = ClearcutLogger.getInstance(config2);
248246
248290
  if (clearcutLogger) {
248247
248291
  const data = [
248248
- {
248249
- gemini_cli_key: 165 /* CONSECA_USER_PROMPT */,
248250
- value: safeJsonStringify(event.user_prompt)
248251
- },
248252
- {
248253
- gemini_cli_key: 161 /* CONSECA_GENERATED_POLICY */,
248254
- value: safeJsonStringify(event.policy)
248255
- },
248256
- {
248257
- gemini_cli_key: 14 /* GEMINI_CLI_TOOL_CALL_NAME */,
248258
- value: safeJsonStringify(event.tool_call)
248259
- },
248260
248292
  {
248261
248293
  gemini_cli_key: 162 /* CONSECA_VERDICT_RESULT */,
248262
248294
  value: safeJsonStringify(event.verdict)
248263
- },
248264
- {
248265
- gemini_cli_key: 163 /* CONSECA_VERDICT_RATIONALE */,
248266
- value: event.verdict_rationale
248267
248295
  }
248268
248296
  ];
248297
+ if (config2.getTelemetryLogPromptsEnabled()) {
248298
+ data.push(
248299
+ {
248300
+ gemini_cli_key: 165 /* CONSECA_USER_PROMPT */,
248301
+ value: safeJsonStringify(event.user_prompt)
248302
+ },
248303
+ {
248304
+ gemini_cli_key: 161 /* CONSECA_GENERATED_POLICY */,
248305
+ value: safeJsonStringify(event.policy)
248306
+ },
248307
+ {
248308
+ gemini_cli_key: 14 /* GEMINI_CLI_TOOL_CALL_NAME */,
248309
+ value: safeJsonStringify(event.tool_call)
248310
+ },
248311
+ {
248312
+ gemini_cli_key: 163 /* CONSECA_VERDICT_RATIONALE */,
248313
+ value: event.verdict_rationale
248314
+ }
248315
+ );
248316
+ }
248269
248317
  if (event.error) {
248270
248318
  data.push({
248271
248319
  gemini_cli_key: 166 /* CONSECA_ERROR */,
@@ -269364,7 +269412,7 @@ function getVersion() {
269364
269412
  }
269365
269413
  versionPromise = (async () => {
269366
269414
  const pkgJson = await getPackageJson(__dirname4);
269367
- return "0.40.0-preview.4";
269415
+ return "0.40.0";
269368
269416
  })();
269369
269417
  return versionPromise;
269370
269418
  }
@@ -302371,7 +302419,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
302371
302419
  return provider;
302372
302420
  }
302373
302421
  case "oauth2": {
302374
- const { OAuth2AuthProvider } = await import("./oauth2-provider-R3XULSB6.js");
302422
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-RQPXCAE5.js");
302375
302423
  const provider = new OAuth2AuthProvider(
302376
302424
  authConfig,
302377
302425
  options.agentName ?? "unknown",
@@ -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-PUYH6WLU.js";
5
+ } from "./chunk-RP4KDMW3.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-LZ3EBZC7.js";
17
+ } from "./chunk-SDLMN2WK.js";
18
18
  import {
19
19
  debugLogger
20
20
  } from "./chunk-UHHRGNIO.js";
@@ -4,7 +4,7 @@ import {
4
4
  isTelemetrySdkInitialized,
5
5
  resetBrowserSession,
6
6
  shutdownTelemetry
7
- } from "./chunk-YQJLBMKU.js";
7
+ } from "./chunk-GT76ECCD.js";
8
8
  import {
9
9
  Storage
10
10
  } from "./chunk-F73F75XM.js";
@@ -21,7 +21,7 @@ import {
21
21
  require_strip_json_comments,
22
22
  sanitizeFilenamePart,
23
23
  stripAnsi
24
- } from "./chunk-YQJLBMKU.js";
24
+ } from "./chunk-GT76ECCD.js";
25
25
  import {
26
26
  CoreEvent,
27
27
  FatalConfigError,
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-PUYH6WLU.js";
9
+ } from "./chunk-RP4KDMW3.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-LZ3EBZC7.js";
62
+ } from "./chunk-SDLMN2WK.js";
63
63
  import {
64
64
  runExitCleanup
65
- } from "./chunk-RZLEHIPO.js";
65
+ } from "./chunk-2ABM66ZR.js";
66
66
  import {
67
67
  AsyncFzf,
68
68
  Config,
@@ -196,7 +196,7 @@ import {
196
196
  stripAnsi,
197
197
  tokenLimit,
198
198
  uiTelemetryService
199
- } from "./chunk-PSFOLETP.js";
199
+ } from "./chunk-B6PIKVSF.js";
200
200
  import {
201
201
  ApprovalMode,
202
202
  CoreEvent,
@@ -54991,7 +54991,7 @@ var authCommand = {
54991
54991
  import process29 from "node:process";
54992
54992
 
54993
54993
  // packages/cli/src/generated/git-commit.ts
54994
- var GIT_COMMIT_INFO = "7fd336f5f";
54994
+ var GIT_COMMIT_INFO = "239ede120";
54995
54995
 
54996
54996
  // packages/cli/src/ui/utils/historyExportUtils.ts
54997
54997
  import * as fsPromises from "node:fs/promises";
@@ -60476,7 +60476,7 @@ Use /mcp auth <server-name> to authenticate.`
60476
60476
  type: "info",
60477
60477
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
60478
60478
  });
60479
- const { MCPOAuthProvider } = await import("./core-J5EG27YJ.js");
60479
+ const { MCPOAuthProvider } = await import("./core-UFCQUVAZ.js");
60480
60480
  let oauthConfig = server.oauth;
60481
60481
  if (!oauthConfig) {
60482
60482
  oauthConfig = { enabled: false };
@@ -4,7 +4,7 @@ import {
4
4
  isTelemetrySdkInitialized,
5
5
  resetBrowserSession,
6
6
  shutdownTelemetry
7
- } from "./chunk-4QJ7BLYU.js";
7
+ } from "./chunk-B2OARGJJ.js";
8
8
  import {
9
9
  Storage
10
10
  } from "./chunk-F73F75XM.js";