@google/gemini-cli-a2a-server 0.10.0-preview.1 → 0.10.0-preview.2

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.
@@ -288403,8 +288403,8 @@ var Float64Vector = import_vector.default.Float64Vector;
288403
288403
  var PointerVector = import_vector.default.PointerVector;
288404
288404
 
288405
288405
  // packages/core/dist/src/generated/git-commit.js
288406
- var GIT_COMMIT_INFO = "a6311e3c";
288407
- var CLI_VERSION = "0.10.0-preview.1";
288406
+ var GIT_COMMIT_INFO = "a1860838";
288407
+ var CLI_VERSION = "0.10.0-preview.2";
288408
288408
 
288409
288409
  // packages/core/dist/src/ide/detect-ide.js
288410
288410
  var IDE_DEFINITIONS = {
@@ -290867,7 +290867,7 @@ function createContentGeneratorConfig(config2, authType) {
290867
290867
  return contentGeneratorConfig;
290868
290868
  }
290869
290869
  async function createContentGenerator(config2, gcConfig, sessionId2) {
290870
- const version3 = "0.10.0-preview.1";
290870
+ const version3 = "0.10.0-preview.2";
290871
290871
  const userAgent = `GeminiCLI/${version3} (${process.platform}; ${process.arch})`;
290872
290872
  const baseHeaders = {
290873
290873
  "User-Agent": userAgent
@@ -335155,7 +335155,13 @@ IT IS CRITICAL TO FOLLOW THESE GUIDELINES TO AVOID EXCESSIVE TOKEN CONSUMPTION.
335155
335155
  - **Parallelism:** Execute multiple independent tool calls in parallel when feasible (i.e. searching the codebase).
335156
335156
  - **Command Execution:** Use the '${ShellTool.Name}' tool for running shell commands, remembering the safety rule to explain modifying commands first.
335157
335157
  - **Background Processes:** Use background processes (via \`&\`) for commands that are unlikely to stop on their own, e.g. \`node server.js &\`. If unsure, ask the user.
335158
- - **Interactive Commands:** Try to avoid shell commands that are likely to require user interaction (e.g. \`git rebase -i\`). Use non-interactive versions of commands (e.g. \`npm init -y\` instead of \`npm init\`) when available, and otherwise remind the user that interactive shell commands are not supported and may cause hangs until canceled by the user.
335158
+ ${function() {
335159
+ if (!config2.isInteractiveShellEnabled()) {
335160
+ return `- **Interactive Commands:** Some commands are interactive, meaning they can accept user input during their execution (e.g. ssh, vim). Only execute non-interactive commands. Use non-interactive versions of commands (e.g. \`npm init -y\` instead of \`npm init\`) when available. Interactive shell commands are not supported and may cause hangs until canceled by the user.`;
335161
+ } else {
335162
+ return `- **Interactive Commands:** Prefer non-interactive commands when it makes sense; however, some commands are only interactive and expect user input during their execution (e.g. ssh, vim). If you choose to execute an interactive command consider letting the user know they can press \`ctrl + f\` to focus into the shell to provide input.`;
335163
+ }
335164
+ }()}
335159
335165
  - **Remembering Facts:** Use the '${MemoryTool.Name}' tool to remember specific, *user-related* facts or preferences when the user explicitly asks, or when they state a clear, concise piece of information that would help personalize or streamline *your future interactions with them* (e.g., preferred coding style, common project paths they use, personal tool aliases). This tool is for user-specific information that should persist across sessions. Do *not* use it for general project context or information. If unsure whether to save something, you can ask the user, "Should I remember that for you?"
335160
335166
  - **Respect User Confirmations:** Most tool calls (also denoted as 'function calls') will first require confirmation from the user, where they will either approve or cancel the function call. If a user cancels a function call, respect their choice and do _not_ try to make the function call again. It is okay to request the tool call again _only_ if the user requests that same tool call on a subsequent prompt. When a user cancels a function call, assume best intentions from the user and consider inquiring if they prefer any alternative paths forward.
335161
335167
 
@@ -344065,6 +344071,7 @@ var Config = class {
344065
344071
  loadMemoryFromIncludeDirectories = false;
344066
344072
  chatCompression;
344067
344073
  interactive;
344074
+ ptyInfo;
344068
344075
  trustedFolder;
344069
344076
  useRipgrep;
344070
344077
  enableInteractiveShell;
@@ -344148,6 +344155,7 @@ var Config = class {
344148
344155
  this.loadMemoryFromIncludeDirectories = params.loadMemoryFromIncludeDirectories ?? false;
344149
344156
  this.chatCompression = params.chatCompression;
344150
344157
  this.interactive = params.interactive ?? false;
344158
+ this.ptyInfo = params.ptyInfo ?? "child_process";
344151
344159
  this.trustedFolder = params.trustedFolder;
344152
344160
  this.useRipgrep = params.useRipgrep ?? true;
344153
344161
  this.enableInteractiveShell = params.enableInteractiveShell ?? false;
@@ -344512,6 +344520,9 @@ var Config = class {
344512
344520
  getChatCompression() {
344513
344521
  return this.chatCompression;
344514
344522
  }
344523
+ isInteractiveShellEnabled() {
344524
+ return this.interactive && this.ptyInfo !== "child_process" && this.enableInteractiveShell;
344525
+ }
344515
344526
  isInteractive() {
344516
344527
  return this.interactive;
344517
344528
  }