@google/gemini-cli 0.69.0 → 0.70.0

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 (75) hide show
  1. package/bundle/{chunk-TPD3RZ2B.js → chunk-37D3S3FZ.js} +65559 -51236
  2. package/bundle/{chunk-MJHJIOO6.js → chunk-3VGGGCOZ.js} +35 -29
  3. package/bundle/{chunk-RRELGD6D.js → chunk-4BWP3TDK.js} +1 -1
  4. package/bundle/{chunk-76IL5AQS.js → chunk-5VFAWK3F.js} +1 -1
  5. package/bundle/{chunk-2NIO2MYP.js → chunk-6IKD2NB3.js} +1 -1
  6. package/bundle/{chunk-FZXMW23P.js → chunk-7JS2T75Z.js} +1 -1
  7. package/bundle/{chunk-TEYXLQ5H.js → chunk-AMHNNZY2.js} +1165 -21669
  8. package/bundle/{chunk-SM722TVE.js → chunk-BOIBJEIO.js} +3 -3
  9. package/bundle/{chunk-XXN6WBQW.js → chunk-CB37EK5Y.js} +3 -3
  10. package/bundle/{chunk-BBQ3J3KD.js → chunk-CMKRWIX6.js} +1165 -21669
  11. package/bundle/{chunk-66UT6FAS.js → chunk-EG2BSKPF.js} +1 -1
  12. package/bundle/{chunk-5WVS3LFE.js → chunk-FHK4RNCX.js} +1165 -21669
  13. package/bundle/{chunk-6CG4XKVB.js → chunk-FXAACYC3.js} +1 -1
  14. package/bundle/{chunk-6MSIVBAV.js → chunk-G6SC5BOV.js} +1 -1
  15. package/bundle/{chunk-HFG3LZOT.js → chunk-GFBMTAPD.js} +625 -22
  16. package/bundle/{chunk-2NWFKUZR.js → chunk-JLKRLYZG.js} +35 -29
  17. package/bundle/{chunk-KZYASN6P.js → chunk-KV6XIC2Z.js} +1 -1
  18. package/bundle/{chunk-Y4PW6PYG.js → chunk-LMBUPWFC.js} +65559 -51236
  19. package/bundle/{chunk-RPOY63FV.js → chunk-LMNAB62M.js} +625 -22
  20. package/bundle/{chunk-IUUIT4SU.js → chunk-N7J54YNL.js} +1 -0
  21. package/bundle/{chunk-E2O7673V.js → chunk-QYKA4YD7.js} +3 -3
  22. package/bundle/{chunk-4ICD47UK.js → chunk-RFQXG324.js} +1 -1
  23. package/bundle/{chunk-CU3LIREC.js → chunk-SPAMAY26.js} +1 -1
  24. package/bundle/{chunk-X4P3RZYU.js → chunk-UF44X63P.js} +65411 -51125
  25. package/bundle/{chunk-7JVLRJNT.js → chunk-V4HIE5G5.js} +1 -1
  26. package/bundle/{chunk-TO7WASPI.js → chunk-VHXUWMGE.js} +35 -29
  27. package/bundle/{chunk-664ZODQF.js → chunk-W2AJR23G.js} +137 -58
  28. package/bundle/{chunk-VWFWPAOZ.js → chunk-WRWAVEME.js} +1 -1
  29. package/bundle/{chunk-L7UQY2JQ.js → chunk-YOEWNBDC.js} +625 -22
  30. package/bundle/{cleanup-4RG2PSND.js → cleanup-BMYAIPAL.js} +4 -4
  31. package/bundle/{cleanup-QM4BFPJ4.js → cleanup-CWOSCK57.js} +4 -4
  32. package/bundle/{cleanup-XYZT64H7.js → cleanup-JTPRPYIQ.js} +4 -4
  33. package/bundle/{core-JN57UMDL.js → core-HYVGBZPP.js} +13 -3
  34. package/bundle/{dist-RVQZS637.js → core-XZECNCR2.js} +13 -3
  35. package/bundle/{devtools-TYCPOPV3.js → devtools-WUGMIOCT.js} +1 -1
  36. package/bundle/devtoolsService-ER22TM2Y.js +919 -0
  37. package/bundle/devtoolsService-O5VD5YWD.js +918 -0
  38. package/bundle/devtoolsService-WNJOZ7ZT.js +918 -0
  39. package/bundle/{core-3UXW77KZ.js → dist-75NDR3EX.js} +13 -3
  40. package/bundle/docs/changelogs/index.md +22 -0
  41. package/bundle/docs/changelogs/latest.md +100 -92
  42. package/bundle/docs/changelogs/preview.md +116 -104
  43. package/bundle/docs/cli/enterprise.md +23 -5
  44. package/bundle/docs/ide-integration/ide-companion-spec.md +10 -4
  45. package/bundle/docs/reference/policy-engine.md +45 -6
  46. package/bundle/docs/tools/shell.md +2 -1
  47. package/bundle/{formatError-I6YST2IJ.js → formatError-FYLLVZDF.js} +4 -4
  48. package/bundle/{formatError-R5NIXYBT.js → formatError-M4GLDFGE.js} +4 -4
  49. package/bundle/{formatError-5QTHC2BU.js → formatError-QOZLAZ32.js} +4 -4
  50. package/bundle/{gemini-SS7CDNKE.js → gemini-AYDYW6NZ.js} +676 -288
  51. package/bundle/{gemini-VN2552TI.js → gemini-FRSP6LA3.js} +676 -288
  52. package/bundle/{gemini-BCCY3LUV.js → gemini-PG2FEK5D.js} +676 -288
  53. package/bundle/gemini.js +35 -17
  54. package/bundle/{getMachineId-bsd-TXG52NKR.js → getMachineId-bsd-3TGNBDZQ.js} +1 -1
  55. package/bundle/{getMachineId-darwin-7OE4DDZ6.js → getMachineId-darwin-2CFT4JKO.js} +1 -1
  56. package/bundle/{getMachineId-linux-SHIFKOOX.js → getMachineId-linux-BXATTKN2.js} +1 -1
  57. package/bundle/{getMachineId-unsupported-5U5DOEYY.js → getMachineId-unsupported-VHPOSMKR.js} +1 -1
  58. package/bundle/{getMachineId-win-6KLLGOI4.js → getMachineId-win-IGXROMTR.js} +1 -1
  59. package/bundle/{interactiveCli-X6WWC2C6.js → interactiveCli-6TVFB4R5.js} +36 -18
  60. package/bundle/{interactiveCli-SGZ2VGTY.js → interactiveCli-76LAQB3B.js} +36 -18
  61. package/bundle/{interactiveCli-MX4SNKPZ.js → interactiveCli-BYWR7IEK.js} +36 -18
  62. package/bundle/{liteRtServerManager-CAJIW3PE.js → liteRtServerManager-BYJWS5BO.js} +6 -6
  63. package/bundle/{liteRtServerManager-FQPKIHVD.js → liteRtServerManager-GIRVSE6M.js} +6 -6
  64. package/bundle/{liteRtServerManager-6PM4BXYU.js → liteRtServerManager-KZ62KJW3.js} +6 -6
  65. package/bundle/{oauth2-provider-T3DF3FTA.js → oauth2-provider-SFFQQ6OE.js} +3 -3
  66. package/bundle/{oauth2-provider-RIS25NZW.js → oauth2-provider-SRH6I6G7.js} +3 -3
  67. package/bundle/{oauth2-provider-D4UNDFN3.js → oauth2-provider-ZBFFAIQE.js} +3 -3
  68. package/bundle/{src-XZYPU6PJ.js → src-MVBNXN6P.js} +3 -3504
  69. package/bundle/{start-FVNQP7EB.js → start-OLEVDFQS.js} +8 -8
  70. package/bundle/{start-WSOZZWBK.js → start-PLK5XHJC.js} +8 -8
  71. package/bundle/{start-76F65FZ5.js → start-Q66LTS3Y.js} +8 -8
  72. package/package.json +1 -1
  73. package/bundle/devtoolsService-K3FKQFZP.js +0 -4422
  74. package/bundle/devtoolsService-QLI75YCI.js +0 -4421
  75. package/bundle/devtoolsService-XZRXARUU.js +0 -4421
@@ -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-66UT6FAS.js";
4
+ } from "./chunk-V4HIE5G5.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
@@ -17,7 +17,7 @@ import {
17
17
  require_re,
18
18
  require_semver,
19
19
  require_valid
20
- } from "./chunk-TPD3RZ2B.js";
20
+ } from "./chunk-UF44X63P.js";
21
21
  import {
22
22
  __commonJS,
23
23
  __toESM
@@ -1472,15 +1472,6 @@ function getInstallationInfo(projectRoot, isAutoUpdateEnabled) {
1472
1472
  }
1473
1473
  const realPath = fs.realpathSync(cliPath).replace(/\\/g, "/");
1474
1474
  const normalizedProjectRoot = projectRoot?.replace(/\\/g, "/");
1475
- const isGit = isGitRepository(process2.cwd());
1476
- if (isGit && normalizedProjectRoot && realPath.startsWith(normalizedProjectRoot) && !realPath.includes("/node_modules/")) {
1477
- return {
1478
- packageManager: "unknown" /* UNKNOWN */,
1479
- // Not managed by a package manager in this sense
1480
- isGlobal: false,
1481
- updateMessage: 'Running from a local git clone. Please update with "git pull".'
1482
- };
1483
- }
1484
1475
  if (realPath.includes("/.npm/_npx") || realPath.includes("/npm/_npx")) {
1485
1476
  return {
1486
1477
  packageManager: "npx" /* NPX */,
@@ -1495,23 +1486,6 @@ function getInstallationInfo(projectRoot, isAutoUpdateEnabled) {
1495
1486
  updateMessage: "Running via pnpx, update not applicable."
1496
1487
  };
1497
1488
  }
1498
- if (process2.platform === "darwin") {
1499
- try {
1500
- const brewPrefix = childProcess.execSync("brew --prefix gemini-cli", {
1501
- encoding: "utf8",
1502
- stdio: ["ignore", "pipe", "ignore"]
1503
- }).trim();
1504
- const brewRealPath = fs.realpathSync(brewPrefix);
1505
- if (realPath.startsWith(brewRealPath)) {
1506
- return {
1507
- packageManager: "homebrew" /* HOMEBREW */,
1508
- isGlobal: true,
1509
- updateMessage: 'Installed via Homebrew. Please update with "brew upgrade gemini-cli".'
1510
- };
1511
- }
1512
- } catch {
1513
- }
1514
- }
1515
1489
  if (realPath.includes("/.volta/") || realPath.includes("/Volta/")) {
1516
1490
  const updateCommand2 = "volta install @google/gemini-cli@latest";
1517
1491
  return {
@@ -1555,6 +1529,32 @@ function getInstallationInfo(projectRoot, isAutoUpdateEnabled) {
1555
1529
  updateMessage: isAutoUpdateEnabled ? "Installed with bun. Attempting to automatically update now..." : `Please run ${updateCommand2} to update`
1556
1530
  };
1557
1531
  }
1532
+ const isSourceCheckoutPath = realPath.endsWith("/packages/cli") || /\/(?:packages\/cli(?:\/dist)?|bundle)\/[^/]+$/.test(realPath);
1533
+ if (!realPath.includes("/node_modules/") && isSourceCheckoutPath && isGitRepository(path.posix.dirname(realPath))) {
1534
+ return {
1535
+ packageManager: "unknown" /* UNKNOWN */,
1536
+ // Not managed by a package manager in this sense
1537
+ isGlobal: false,
1538
+ updateMessage: 'Running from a local git clone. Please update with "git pull".'
1539
+ };
1540
+ }
1541
+ if (process2.platform === "darwin") {
1542
+ try {
1543
+ const brewPrefix = childProcess.execSync("brew --prefix gemini-cli", {
1544
+ encoding: "utf8",
1545
+ stdio: ["ignore", "pipe", "ignore"]
1546
+ }).trim();
1547
+ const brewRealPath = fs.realpathSync(brewPrefix);
1548
+ if (realPath.startsWith(brewRealPath)) {
1549
+ return {
1550
+ packageManager: "homebrew" /* HOMEBREW */,
1551
+ isGlobal: true,
1552
+ updateMessage: 'Installed via Homebrew. Please update with "brew upgrade gemini-cli".'
1553
+ };
1554
+ }
1555
+ } catch {
1556
+ }
1557
+ }
1558
1558
  if (normalizedProjectRoot && realPath.startsWith(`${normalizedProjectRoot}/node_modules`)) {
1559
1559
  let pm = "npm" /* NPM */;
1560
1560
  if (fs.existsSync(path.join(projectRoot, "yarn.lock"))) {
@@ -1860,11 +1860,15 @@ function handleChildProcessClose(code, signal, removeForwarders, resolve2) {
1860
1860
  }
1861
1861
  var RELAUNCH_EXIT_CODE = 199;
1862
1862
  var isRelaunching = false;
1863
+ var initialProcessSend = process.send;
1864
+ function isIPCAvailable() {
1865
+ return typeof process.send === "function" && (!process.env["VITEST"] || process.send !== initialProcessSend || "mock" in process.send);
1866
+ }
1863
1867
  async function relaunchApp(options) {
1864
1868
  if (isRelaunching) return;
1865
1869
  isRelaunching = true;
1866
1870
  await waitForUpdateCompletion();
1867
- if (process.send && !process.env["VITEST"] && options?.overrideAuthType) {
1871
+ if (isIPCAvailable() && options?.overrideAuthType) {
1868
1872
  await new Promise((resolve2) => {
1869
1873
  let resolved = false;
1870
1874
  const done = () => {
@@ -1945,8 +1949,10 @@ export {
1945
1949
  setupSignalForwarding,
1946
1950
  handleChildProcessClose,
1947
1951
  RELAUNCH_EXIT_CODE,
1952
+ isIPCAvailable,
1948
1953
  relaunchApp,
1949
1954
  getScriptArgs,
1955
+ isSeaEnvironment,
1950
1956
  getSpawnConfig
1951
1957
  };
1952
1958
  /**
@@ -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
  checkExhaustive
4
- } from "./chunk-Y4PW6PYG.js";
4
+ } from "./chunk-37D3S3FZ.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __toESM
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  CoreToolCallStatus,
4
4
  checkExhaustive
5
- } from "./chunk-X4P3RZYU.js";
5
+ } from "./chunk-UF44X63P.js";
6
6
  import {
7
7
  __commonJS,
8
8
  __toESM
@@ -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-66UT6FAS.js";
4
+ } from "./chunk-WRWAVEME.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-7JVLRJNT.js";
4
+ } from "./chunk-V4HIE5G5.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require