@google/gemini-cli 0.41.0 → 0.41.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-CZW4D4RQ.js → chunk-2M535E4N.js} +1 -1
  2. package/bundle/{chunk-J7E7PI4S.js → chunk-3GXWDP2Z.js} +2 -2
  3. package/bundle/{chunk-7LNZOOC7.js → chunk-5ER6FL2Y.js} +6 -6
  4. package/bundle/{chunk-TOU7GDCS.js → chunk-7FNKSW4V.js} +3 -3
  5. package/bundle/{chunk-KHDD5ZQT.js → chunk-ADVHH43I.js} +1 -1
  6. package/bundle/{chunk-4CB5QYON.js → chunk-B54V2534.js} +1 -1
  7. package/bundle/{chunk-KYES7RJ6.js → chunk-BDY3Y2BR.js} +67 -54
  8. package/bundle/{chunk-5ZVQP4WN.js → chunk-C3LH3AWP.js} +1 -1
  9. package/bundle/chunk-CD2YCJUK.js +1571 -0
  10. package/bundle/{chunk-G2G5UOIR.js → chunk-ERP434XO.js} +2 -2
  11. package/bundle/{chunk-KMY2ICHB.js → chunk-GFBZBZM3.js} +1 -1
  12. package/bundle/chunk-GFQ7AKID.js +80034 -0
  13. package/bundle/{chunk-5ECQHX5C.js → chunk-HBHMDJOI.js} +2 -2
  14. package/bundle/{chunk-V7GQYOIO.js → chunk-KZLRP6TK.js} +14 -12
  15. package/bundle/{chunk-CWJ5KY34.js → chunk-MKCUVUHS.js} +1 -1
  16. package/bundle/chunk-MTG3QVUK.js +156 -0
  17. package/bundle/{chunk-CSDNDSTO.js → chunk-NET4RIEQ.js} +5 -6
  18. package/bundle/{chunk-RVECIZP6.js → chunk-NGEOWUR5.js} +1 -1
  19. package/bundle/{chunk-GLO32GZ3.js → chunk-QQRBSOY4.js} +6674 -12455
  20. package/bundle/chunk-RP6RRIFW.js +354495 -0
  21. package/bundle/chunk-WDKZY7RV.js +118 -0
  22. package/bundle/chunk-WKN2PII5.js +17656 -0
  23. package/bundle/{chunk-F6MNV4SZ.js → chunk-WYR3JYKD.js} +6 -6
  24. package/bundle/{chunk-B2LNN6KY.js → chunk-ZJ6QM64B.js} +5 -6
  25. package/bundle/{cleanup-KMEBTV6K.js → cleanup-4US6BQ7H.js} +2 -2
  26. package/bundle/{cleanup-OJM7LXCH.js → cleanup-AUMQFWYH.js} +2 -2
  27. package/bundle/{cleanup-PMJYRELA.js → cleanup-CCK65JHL.js} +3 -3
  28. package/bundle/cleanup-PDD4G7CM.js +33 -0
  29. package/bundle/{core-MMHOAGLI.js → core-IIYBYA3H.js} +1 -1
  30. package/bundle/{devtoolsService-BDOWEGHR.js → devtoolsService-5ERNFOME.js} +2 -2
  31. package/bundle/{devtoolsService-YPN2GRY7.js → devtoolsService-BI57Y3RH.js} +2 -2
  32. package/bundle/{devtoolsService-ARI22QWG.js → devtoolsService-G5DQ5SFK.js} +5 -4
  33. package/bundle/devtoolsService-V5XEJ55W.js +857 -0
  34. package/bundle/{dist-V6XXY2AS.js → dist-32N3LPNC.js} +1 -1
  35. package/bundle/{core-4PBU56P6.js → dist-5VLOJX4U.js} +2 -2
  36. package/bundle/dist-FEOGEVKF.js +2068 -0
  37. package/bundle/{gemini-RGSMPB6F.js → gemini-OHH6WLHR.js} +191 -175
  38. package/bundle/gemini-PXQLGA7D.js +15988 -0
  39. package/bundle/{gemini-GSCVWK7Y.js → gemini-ZGIV3WZZ.js} +11 -11
  40. package/bundle/{gemini-LDARUG77.js → gemini-ZQZBCZWU.js} +11 -11
  41. package/bundle/gemini.js +3 -3
  42. package/bundle/{interactiveCli-5JCJD3F5.js → interactiveCli-7ONNIC6E.js} +6 -6
  43. package/bundle/interactiveCli-FBIC3JEN.js +35052 -0
  44. package/bundle/{interactiveCli-KSSJ4M5C.js → interactiveCli-NFPPWAK4.js} +6 -6
  45. package/bundle/{interactiveCli-ZNAMZNEE.js → interactiveCli-UPXIMCUC.js} +290 -272
  46. package/bundle/{liteRtServerManager-I6PXKOCJ.js → liteRtServerManager-5Y2K46O6.js} +3 -3
  47. package/bundle/{liteRtServerManager-QZCLWSIV.js → liteRtServerManager-BYX3KONC.js} +4 -4
  48. package/bundle/{liteRtServerManager-PG57YSDR.js → liteRtServerManager-CGOJZBD4.js} +3 -3
  49. package/bundle/liteRtServerManager-X6WJ4JCX.js +65 -0
  50. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  51. package/bundle/{oauth2-provider-MV6Q65XJ.js → oauth2-provider-RRLKUWA6.js} +1 -1
  52. package/bundle/{oauth2-provider-356MTA5N.js → oauth2-provider-XEGUC3FK.js} +1 -1
  53. package/bundle/{oauth2-provider-SWABWSBH.js → oauth2-provider-XW4ECB2J.js} +39 -73
  54. package/bundle/oauth2-provider-YQK2OECL.js +237 -0
  55. package/bundle/{start-S2GPZKGW.js → start-D3TFWOXP.js} +5 -5
  56. package/bundle/{start-FWXRAXKY.js → start-EFBJ3Y46.js} +6 -6
  57. package/bundle/start-SYKO5XMN.js +18 -0
  58. package/bundle/{start-MWJKRZPA.js → start-XFACWOPQ.js} +5 -5
  59. package/package.json +1 -1
@@ -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-KHDD5ZQT.js";
5
+ } from "./chunk-ADVHH43I.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-V7GQYOIO.js";
17
+ } from "./chunk-NGEOWUR5.js";
18
18
  import {
19
19
  debugLogger
20
20
  } from "./chunk-XRLFHCHC.js";
@@ -1,6 +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
  AuthProviderType,
4
+ CoreToolCallStatus,
4
5
  DEFAULT_MODEL_CONFIGS,
5
6
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
6
7
  SESSION_FILE_PREFIX,
@@ -20,8 +21,9 @@ import {
20
21
  require_strip_json_comments,
21
22
  sanitizeFilenamePart,
22
23
  stripAnsi
23
- } from "./chunk-GLO32GZ3.js";
24
+ } from "./chunk-QQRBSOY4.js";
24
25
  import {
26
+ CoreEvent,
25
27
  FatalConfigError,
26
28
  GEMINI_DIR,
27
29
  Storage,
@@ -30,7 +32,7 @@ import {
30
32
  external_exports,
31
33
  getErrorMessage,
32
34
  homedir
33
- } from "./chunk-XRLFHCHC.js";
35
+ } from "./chunk-SAJ72M2G.js";
34
36
  import {
35
37
  __commonJS,
36
38
  __require,
@@ -10064,19 +10066,19 @@ function isWorkspaceTrusted(settings, workspaceDir = process.cwd(), headlessOpti
10064
10066
  var import_react = __toESM(require_react(), 1);
10065
10067
  function mapCoreStatusToDisplayStatus(coreStatus) {
10066
10068
  switch (coreStatus) {
10067
- case "validating" /* Validating */:
10069
+ case CoreToolCallStatus.Validating:
10068
10070
  return "Pending" /* Pending */;
10069
- case "awaiting_approval" /* AwaitingApproval */:
10071
+ case CoreToolCallStatus.AwaitingApproval:
10070
10072
  return "Confirming" /* Confirming */;
10071
- case "executing" /* Executing */:
10073
+ case CoreToolCallStatus.Executing:
10072
10074
  return "Executing" /* Executing */;
10073
- case "success" /* Success */:
10075
+ case CoreToolCallStatus.Success:
10074
10076
  return "Success" /* Success */;
10075
- case "cancelled" /* Cancelled */:
10077
+ case CoreToolCallStatus.Cancelled:
10076
10078
  return "Canceled" /* Canceled */;
10077
- case "error" /* Error */:
10079
+ case CoreToolCallStatus.Error:
10078
10080
  return "Error" /* Error */;
10079
- case "scheduled" /* Scheduled */:
10081
+ case CoreToolCallStatus.Scheduled:
10080
10082
  return "Pending" /* Pending */;
10081
10083
  default:
10082
10084
  return checkExhaustive(coreStatus);
@@ -10683,7 +10685,7 @@ function convertSessionToHistoryFormats(messages) {
10683
10685
  args: tool.args,
10684
10686
  description: tool.description || "",
10685
10687
  renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
10686
- status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
10688
+ status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
10687
10689
  resultDisplay: tool.resultDisplay,
10688
10690
  confirmationDetails: void 0
10689
10691
  }))
@@ -16664,8 +16666,8 @@ var LoadedSettings = class {
16664
16666
  // React will pass a listener fn into this subscribe fn
16665
16667
  // that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
16666
16668
  subscribe(listener) {
16667
- coreEvents.on("settings-changed" /* SettingsChanged */, listener);
16668
- return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
16669
+ coreEvents.on(CoreEvent.SettingsChanged, listener);
16670
+ return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
16669
16671
  }
16670
16672
  getSnapshot() {
16671
16673
  return this._snapshot;
@@ -4,7 +4,7 @@ import {
4
4
  isTelemetrySdkInitialized,
5
5
  resetBrowserSession,
6
6
  shutdownTelemetry
7
- } from "./chunk-B2LNN6KY.js";
7
+ } from "./chunk-ZJ6QM64B.js";
8
8
  import {
9
9
  Storage
10
10
  } from "./chunk-XRLFHCHC.js";
@@ -0,0 +1,156 @@
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
+ import {
3
+ ExitCodes,
4
+ isTelemetrySdkInitialized,
5
+ resetBrowserSession,
6
+ shutdownTelemetry
7
+ } from "./chunk-NET4RIEQ.js";
8
+ import {
9
+ Storage
10
+ } from "./chunk-SAJ72M2G.js";
11
+
12
+ // packages/cli/src/utils/cleanup.ts
13
+ import { promises as fs } from "node:fs";
14
+ import { join } from "node:path";
15
+ var cleanupFunctions = [];
16
+ var syncCleanupFunctions = [];
17
+ var configForTelemetry = null;
18
+ var isShuttingDown = false;
19
+ function registerCleanup(fn) {
20
+ cleanupFunctions.push(fn);
21
+ }
22
+ function removeCleanup(fn) {
23
+ const index = cleanupFunctions.indexOf(fn);
24
+ if (index !== -1) {
25
+ cleanupFunctions.splice(index, 1);
26
+ }
27
+ }
28
+ function registerSyncCleanup(fn) {
29
+ syncCleanupFunctions.push(fn);
30
+ }
31
+ function removeSyncCleanup(fn) {
32
+ const index = syncCleanupFunctions.indexOf(fn);
33
+ if (index !== -1) {
34
+ syncCleanupFunctions.splice(index, 1);
35
+ }
36
+ }
37
+ function resetCleanupForTesting() {
38
+ cleanupFunctions.length = 0;
39
+ syncCleanupFunctions.length = 0;
40
+ configForTelemetry = null;
41
+ isShuttingDown = false;
42
+ }
43
+ function runSyncCleanup() {
44
+ for (const fn of syncCleanupFunctions) {
45
+ try {
46
+ fn();
47
+ } catch {
48
+ }
49
+ }
50
+ syncCleanupFunctions.length = 0;
51
+ }
52
+ function registerTelemetryConfig(config) {
53
+ configForTelemetry = config;
54
+ }
55
+ async function runExitCleanup() {
56
+ await drainStdin();
57
+ runSyncCleanup();
58
+ for (const fn of cleanupFunctions) {
59
+ try {
60
+ await fn();
61
+ } catch {
62
+ }
63
+ }
64
+ cleanupFunctions.length = 0;
65
+ try {
66
+ await resetBrowserSession();
67
+ } catch {
68
+ }
69
+ if (configForTelemetry) {
70
+ try {
71
+ await configForTelemetry.dispose();
72
+ } catch {
73
+ }
74
+ }
75
+ if (configForTelemetry && isTelemetrySdkInitialized()) {
76
+ try {
77
+ await shutdownTelemetry(configForTelemetry);
78
+ } catch {
79
+ }
80
+ }
81
+ }
82
+ async function drainStdin() {
83
+ if (!process.stdin?.isTTY) return;
84
+ process.stdin.resume().removeAllListeners("data").on("data", () => {
85
+ });
86
+ await new Promise((resolve) => setTimeout(resolve, 50));
87
+ }
88
+ async function gracefulShutdown(_reason) {
89
+ if (isShuttingDown) {
90
+ return;
91
+ }
92
+ isShuttingDown = true;
93
+ await runExitCleanup();
94
+ process.exit(ExitCodes.SUCCESS);
95
+ }
96
+ function setupSignalHandlers() {
97
+ process.on("SIGHUP", () => gracefulShutdown("SIGHUP"));
98
+ process.on("SIGTERM", () => gracefulShutdown("SIGTERM"));
99
+ process.on("SIGINT", () => gracefulShutdown("SIGINT"));
100
+ }
101
+ function setupTtyCheck() {
102
+ let intervalId = null;
103
+ let isCheckingTty = false;
104
+ intervalId = setInterval(async () => {
105
+ if (isCheckingTty || isShuttingDown) {
106
+ return;
107
+ }
108
+ if (process.env["SANDBOX"]) {
109
+ return;
110
+ }
111
+ if (!process.stdin.isTTY && !process.stdout.isTTY) {
112
+ isCheckingTty = true;
113
+ if (intervalId) {
114
+ clearInterval(intervalId);
115
+ intervalId = null;
116
+ }
117
+ await gracefulShutdown("TTY loss");
118
+ }
119
+ }, 5e3);
120
+ intervalId.unref();
121
+ return () => {
122
+ if (intervalId) {
123
+ clearInterval(intervalId);
124
+ intervalId = null;
125
+ }
126
+ };
127
+ }
128
+ async function cleanupCheckpoints() {
129
+ const storage = new Storage(process.cwd());
130
+ await storage.initialize();
131
+ const tempDir = storage.getProjectTempDir();
132
+ const checkpointsDir = join(tempDir, "checkpoints");
133
+ try {
134
+ await fs.rm(checkpointsDir, { recursive: true, force: true });
135
+ } catch {
136
+ }
137
+ }
138
+
139
+ export {
140
+ registerCleanup,
141
+ removeCleanup,
142
+ registerSyncCleanup,
143
+ removeSyncCleanup,
144
+ resetCleanupForTesting,
145
+ runSyncCleanup,
146
+ registerTelemetryConfig,
147
+ runExitCleanup,
148
+ setupSignalHandlers,
149
+ setupTtyCheck,
150
+ cleanupCheckpoints
151
+ };
152
+ /**
153
+ * @license
154
+ * Copyright 2025 Google LLC
155
+ * SPDX-License-Identifier: Apache-2.0
156
+ */
@@ -246273,8 +246273,8 @@ var EventMetadataKey;
246273
246273
  })(EventMetadataKey || (EventMetadataKey = {}));
246274
246274
 
246275
246275
  // packages/core/dist/src/generated/git-commit.js
246276
- var GIT_COMMIT_INFO = "6339fd95f";
246277
- var CLI_VERSION = "0.41.0";
246276
+ var GIT_COMMIT_INFO = "7d5b3584f";
246277
+ var CLI_VERSION = "0.41.1";
246278
246278
 
246279
246279
  // packages/core/dist/src/ide/detect-ide.js
246280
246280
  var IDE_DEFINITIONS = {
@@ -269216,7 +269216,7 @@ function getVersion() {
269216
269216
  }
269217
269217
  versionPromise = (async () => {
269218
269218
  const pkgJson = await getPackageJson(__dirname4);
269219
- return "0.41.0";
269219
+ return "0.41.1";
269220
269220
  })();
269221
269221
  return versionPromise;
269222
269222
  }
@@ -300406,7 +300406,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
300406
300406
  return provider;
300407
300407
  }
300408
300408
  case "oauth2": {
300409
- const { OAuth2AuthProvider } = await import("./oauth2-provider-356MTA5N.js");
300409
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-XEGUC3FK.js");
300410
300410
  const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
300411
300411
  await provider.initialize();
300412
300412
  return provider;
@@ -319498,8 +319498,7 @@ var PolicyEngine = class {
319498
319498
  return false;
319499
319499
  if (!hasRedirection(command))
319500
319500
  return false;
319501
- const sandboxEnabled = !(this.sandboxManager instanceof NoopSandboxManager);
319502
- if (sandboxEnabled && (this.approvalMode === ApprovalMode.AUTO_EDIT || this.approvalMode === ApprovalMode.YOLO)) {
319501
+ if (this.approvalMode === ApprovalMode.AUTO_EDIT || this.approvalMode === ApprovalMode.YOLO) {
319503
319502
  return false;
319504
319503
  }
319505
319504
  return true;
@@ -20,7 +20,7 @@ import {
20
20
  require_strip_json_comments,
21
21
  sanitizeFilenamePart,
22
22
  stripAnsi
23
- } from "./chunk-B2LNN6KY.js";
23
+ } from "./chunk-ZJ6QM64B.js";
24
24
  import {
25
25
  FatalConfigError,
26
26
  GEMINI_DIR,