@google/gemini-cli 0.33.0-preview.2 → 0.33.0-preview.3

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/gemini.js CHANGED
@@ -113281,7 +113281,7 @@ async function initOauthClient(authType, config2) {
113281
113281
  }
113282
113282
  await triggerPostAuthCallbacks(client.credentials);
113283
113283
  } else {
113284
- if (!config2.getExperimentalZedIntegration()) {
113284
+ if (!config2.getAcpMode()) {
113285
113285
  const userConsent = await getConsentForOauth("");
113286
113286
  if (!userConsent) {
113287
113287
  throw new FatalCancellationError("Authentication cancelled by user.");
@@ -196293,8 +196293,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
196293
196293
  var init_git_commit = __esm({
196294
196294
  "packages/core/dist/src/generated/git-commit.js"() {
196295
196295
  "use strict";
196296
- GIT_COMMIT_INFO = "59702f913";
196297
- CLI_VERSION = "0.33.0-preview.2";
196296
+ GIT_COMMIT_INFO = "03a8fc311";
196297
+ CLI_VERSION = "0.33.0-preview.3";
196298
196298
  }
196299
196299
  });
196300
196300
 
@@ -292762,7 +292762,7 @@ function getVersion() {
292762
292762
  }
292763
292763
  versionPromise = (async () => {
292764
292764
  const pkgJson = await getPackageJson(__dirname3);
292765
- return "0.33.0-preview.2";
292765
+ return "0.33.0-preview.3";
292766
292766
  })();
292767
292767
  return versionPromise;
292768
292768
  }
@@ -433404,7 +433404,7 @@ var init_config4 = __esm({
433404
433404
  }
433405
433405
  }
433406
433406
  summarizeToolOutput;
433407
- experimentalZedIntegration = false;
433407
+ acpMode = false;
433408
433408
  loadMemoryFromIncludeDirectories = false;
433409
433409
  includeDirectoryTree = true;
433410
433410
  importFormat;
@@ -433558,7 +433558,7 @@ var init_config4 = __esm({
433558
433558
  protectLatestTurn: params.toolOutputMasking?.protectLatestTurn ?? DEFAULT_PROTECT_LATEST_TURN
433559
433559
  };
433560
433560
  this.maxSessionTurns = params.maxSessionTurns ?? -1;
433561
- this.experimentalZedIntegration = params.experimentalZedIntegration ?? false;
433561
+ this.acpMode = params.acpMode ?? false;
433562
433562
  this.listSessions = params.listSessions ?? false;
433563
433563
  this.deleteSession = params.deleteSession;
433564
433564
  this.listExtensions = params.listExtensions ?? false;
@@ -433736,7 +433736,7 @@ var init_config4 = __esm({
433736
433736
  }
433737
433737
  }
433738
433738
  });
433739
- if (!this.interactive || this.experimentalZedIntegration) {
433739
+ if (!this.interactive || this.acpMode) {
433740
433740
  await this.mcpInitializationPromise;
433741
433741
  }
433742
433742
  if (this.skillsSupport) {
@@ -434454,8 +434454,8 @@ var init_config4 = __esm({
434454
434454
  getUsageStatisticsEnabled() {
434455
434455
  return this.usageStatisticsEnabled;
434456
434456
  }
434457
- getExperimentalZedIntegration() {
434458
- return this.experimentalZedIntegration;
434457
+ getAcpMode() {
434458
+ return this.acpMode;
434459
434459
  }
434460
434460
  async waitForMcpInit() {
434461
434461
  if (this.mcpInitializationPromise) {
@@ -515083,7 +515083,7 @@ var WarningMessage = ({ text }) => {
515083
515083
  };
515084
515084
 
515085
515085
  // packages/cli/src/generated/git-commit.ts
515086
- var GIT_COMMIT_INFO2 = "393e9a171";
515086
+ var GIT_COMMIT_INFO2 = "b25c8137f";
515087
515087
 
515088
515088
  // packages/cli/src/ui/components/AboutBox.tsx
515089
515089
  init_dist8();
@@ -563500,7 +563500,7 @@ async function loadSandboxConfig(settings, argv) {
563500
563500
  const sandboxOption = argv.sandbox ?? settings.tools?.sandbox;
563501
563501
  const command2 = getSandboxCommand(sandboxOption);
563502
563502
  const packageJson2 = await getPackageJson(__dirname13);
563503
- const image2 = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.33.0-preview.2" ?? packageJson2?.config?.sandboxImageUri;
563503
+ const image2 = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.33.0-preview.3" ?? packageJson2?.config?.sandboxImageUri;
563504
563504
  return command2 && image2 ? { command: command2, image: image2 } : void 0;
563505
563505
  }
563506
563506
 
@@ -563641,9 +563641,12 @@ async function parseArguments2(settings) {
563641
563641
  (p) => p.split(",").map((s4) => s4.trim()).filter(Boolean)
563642
563642
  )
563643
563643
  )
563644
- }).option("experimental-acp", {
563644
+ }).option("acp", {
563645
563645
  type: "boolean",
563646
563646
  description: "Starts the agent in ACP mode"
563647
+ }).option("experimental-acp", {
563648
+ type: "boolean",
563649
+ description: "Starts the agent in ACP mode (deprecated, use --acp instead)"
563647
563650
  }).option("allowed-mcp-server-names", {
563648
563651
  type: "array",
563649
563652
  string: true,
@@ -563951,7 +563954,7 @@ async function loadCliConfig(settings, sessionId2, argv, options = {}) {
563951
563954
  }
563952
563955
  throw err2;
563953
563956
  }
563954
- const interactive = !!argv.promptInteractive || !!argv.experimentalAcp || !isHeadlessMode({ prompt: argv.prompt, query: argv.query }) && !argv.isCommand;
563957
+ const interactive = !!argv.promptInteractive || !!argv.acp || !!argv.experimentalAcp || !isHeadlessMode({ prompt: argv.prompt, query: argv.query }) && !argv.isCommand;
563955
563958
  const allowedTools = argv.allowedTools || settings.tools?.allowed || [];
563956
563959
  const allowedToolsSet = new Set(allowedTools);
563957
563960
  const extraExcludes = [];
@@ -564036,6 +564039,7 @@ async function loadCliConfig(settings, sessionId2, argv, options = {}) {
564036
564039
  }
564037
564040
  }
564038
564041
  return new Config({
564042
+ acpMode: !!argv.acp || !!argv.experimentalAcp,
564039
564043
  sessionId: sessionId2,
564040
564044
  clientVersion: await getVersion(),
564041
564045
  embeddingModel: DEFAULT_GEMINI_EMBEDDING_MODEL,
@@ -564084,7 +564088,6 @@ async function loadCliConfig(settings, sessionId2, argv, options = {}) {
564084
564088
  bugCommand: settings.advanced?.bugCommand,
564085
564089
  model: resolvedModel,
564086
564090
  maxSessionTurns: settings.model?.maxSessionTurns,
564087
- experimentalZedIntegration: argv.experimentalAcp || false,
564088
564091
  listExtensions: argv.listExtensions || false,
564089
564092
  listSessions: argv.listSessions || false,
564090
564093
  deleteSession: argv.deleteSession,
@@ -565645,7 +565648,7 @@ async function runNonInteractive({
565645
565648
  // packages/cli/src/gemini.tsx
565646
565649
  init_dist8();
565647
565650
 
565648
- // packages/cli/src/zed-integration/zedIntegration.ts
565651
+ // packages/cli/src/acp/acpClient.ts
565649
565652
  init_dist8();
565650
565653
 
565651
565654
  // node_modules/@agentclientprotocol/sdk/dist/acp.js
@@ -567054,7 +567057,7 @@ var RequestError3 = class _RequestError extends Error {
567054
567057
  }
567055
567058
  };
567056
567059
 
567057
- // packages/cli/src/zed-integration/fileSystemService.ts
567060
+ // packages/cli/src/acp/fileSystemService.ts
567058
567061
  var AcpFileSystemService = class {
567059
567062
  constructor(connection, sessionId2, capabilities, fallback) {
567060
567063
  this.connection = connection;
@@ -567084,7 +567087,7 @@ var AcpFileSystemService = class {
567084
567087
  }
567085
567088
  };
567086
567089
 
567087
- // packages/cli/src/zed-integration/acpErrors.ts
567090
+ // packages/cli/src/acp/acpErrors.ts
567088
567091
  init_dist8();
567089
567092
  function getAcpErrorMessage(error40) {
567090
567093
  const coreMessage = getErrorMessage(error40);
@@ -567105,14 +567108,14 @@ function extractRecursiveMessage(input) {
567105
567108
  return input;
567106
567109
  }
567107
567110
 
567108
- // packages/cli/src/zed-integration/zedIntegration.ts
567111
+ // packages/cli/src/acp/acpClient.ts
567109
567112
  import { Readable as Readable7, Writable as Writable5 } from "node:stream";
567110
567113
  init_zod();
567111
567114
  import * as fs130 from "node:fs/promises";
567112
567115
  import * as path151 from "node:path";
567113
567116
  import { randomUUID as randomUUID13 } from "node:crypto";
567114
567117
 
567115
- // packages/cli/src/zed-integration/commands/commandRegistry.ts
567118
+ // packages/cli/src/acp/commands/commandRegistry.ts
567116
567119
  init_dist8();
567117
567120
  var CommandRegistry = class {
567118
567121
  commands = /* @__PURE__ */ new Map();
@@ -567134,7 +567137,7 @@ var CommandRegistry = class {
567134
567137
  }
567135
567138
  };
567136
567139
 
567137
- // packages/cli/src/zed-integration/commands/memory.ts
567140
+ // packages/cli/src/acp/commands/memory.ts
567138
567141
  init_dist8();
567139
567142
  var DEFAULT_SANITIZATION_CONFIG = {
567140
567143
  allowedEnvironmentVariables: [],
@@ -567212,7 +567215,7 @@ var AddMemoryCommand = class {
567212
567215
  }
567213
567216
  };
567214
567217
 
567215
- // packages/cli/src/zed-integration/commands/extensions.ts
567218
+ // packages/cli/src/acp/commands/extensions.ts
567216
567219
  init_dist8();
567217
567220
  import { stat as stat13 } from "node:fs/promises";
567218
567221
  var ExtensionsCommand = class {
@@ -567530,7 +567533,7 @@ var UpdateExtensionCommand = class {
567530
567533
  }
567531
567534
  };
567532
567535
 
567533
- // packages/cli/src/zed-integration/commands/init.ts
567536
+ // packages/cli/src/acp/commands/init.ts
567534
567537
  init_dist8();
567535
567538
  import * as fs128 from "node:fs";
567536
567539
  import * as path149 from "node:path";
@@ -567574,7 +567577,7 @@ ${result2.content}`
567574
567577
  }
567575
567578
  };
567576
567579
 
567577
- // packages/cli/src/zed-integration/commands/restore.ts
567580
+ // packages/cli/src/acp/commands/restore.ts
567578
567581
  init_dist8();
567579
567582
  import * as fs129 from "node:fs/promises";
567580
567583
  import * as path150 from "node:path";
@@ -567701,7 +567704,7 @@ ${formatted}`
567701
567704
  }
567702
567705
  };
567703
567706
 
567704
- // packages/cli/src/zed-integration/commandHandler.ts
567707
+ // packages/cli/src/acp/commandHandler.ts
567705
567708
  var CommandHandler = class _CommandHandler {
567706
567709
  registry;
567707
567710
  constructor() {
@@ -567786,11 +567789,11 @@ var CommandHandler = class _CommandHandler {
567786
567789
  }
567787
567790
  };
567788
567791
 
567789
- // packages/cli/src/zed-integration/zedIntegration.ts
567792
+ // packages/cli/src/acp/acpClient.ts
567790
567793
  function hasMeta(obj) {
567791
567794
  return typeof obj === "object" && obj !== null && "_meta" in obj;
567792
567795
  }
567793
- async function runZedIntegration(config2, settings, argv) {
567796
+ async function runAcpClient(config2, settings, argv) {
567794
567797
  const { stdout: workingStdout } = createWorkingStdio();
567795
567798
  const stdout = Writable5.toWeb(workingStdout);
567796
567799
  const stdin = Readable7.toWeb(process.stdin);
@@ -569631,8 +569634,8 @@ ${finalArgs[promptIndex + 1]}`;
569631
569634
  if (settings.merged.security.auth.selectedType === AuthType2.LOGIN_WITH_GOOGLE && config2.isBrowserLaunchSuppressed()) {
569632
569635
  await getOauthClient(settings.merged.security.auth.selectedType, config2);
569633
569636
  }
569634
- if (config2.getExperimentalZedIntegration()) {
569635
- return runZedIntegration(config2, settings, argv);
569637
+ if (config2.getAcpMode()) {
569638
+ return runAcpClient(config2, settings, argv);
569636
569639
  }
569637
569640
  let input = config2.getQuestion();
569638
569641
  const useAlternateBuffer2 = shouldEnterAlternateScreen(
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google/gemini-cli-devtools",
3
- "version": "0.33.0-preview.2",
3
+ "version": "0.33.0-preview.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google/gemini-cli",
3
- "version": "0.33.0-preview.2",
3
+ "version": "0.33.0-preview.3",
4
4
  "description": "Gemini CLI",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {