@google/gemini-cli-a2a-server 0.10.0-preview.0 → 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.
- package/dist/a2a-server.mjs +23 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -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 = "
|
|
288407
|
-
var CLI_VERSION = "0.10.0-preview.
|
|
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.
|
|
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
|
-
|
|
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;
|
|
@@ -344165,7 +344173,13 @@ var Config = class {
|
|
|
344165
344173
|
this.useWriteTodos = params.useWriteTodos ?? false;
|
|
344166
344174
|
this.useModelRouter = params.useModelRouter ?? false;
|
|
344167
344175
|
this.enableMessageBusIntegration = params.enableMessageBusIntegration ?? false;
|
|
344168
|
-
this.codebaseInvestigatorSettings =
|
|
344176
|
+
this.codebaseInvestigatorSettings = {
|
|
344177
|
+
enabled: params.codebaseInvestigatorSettings?.enabled ?? true,
|
|
344178
|
+
maxNumTurns: params.codebaseInvestigatorSettings?.maxNumTurns ?? 15,
|
|
344179
|
+
maxTimeMinutes: params.codebaseInvestigatorSettings?.maxTimeMinutes ?? 5,
|
|
344180
|
+
thinkingBudget: params.codebaseInvestigatorSettings?.thinkingBudget ?? DEFAULT_THINKING_MODE,
|
|
344181
|
+
model: params.codebaseInvestigatorSettings?.model ?? DEFAULT_GEMINI_MODEL
|
|
344182
|
+
};
|
|
344169
344183
|
this.continueOnFailedApiCall = params.continueOnFailedApiCall ?? true;
|
|
344170
344184
|
this.enableShellOutputEfficiency = params.enableShellOutputEfficiency ?? true;
|
|
344171
344185
|
this.extensionManagement = params.extensionManagement ?? true;
|
|
@@ -344506,6 +344520,9 @@ var Config = class {
|
|
|
344506
344520
|
getChatCompression() {
|
|
344507
344521
|
return this.chatCompression;
|
|
344508
344522
|
}
|
|
344523
|
+
isInteractiveShellEnabled() {
|
|
344524
|
+
return this.interactive && this.ptyInfo !== "child_process" && this.enableInteractiveShell;
|
|
344525
|
+
}
|
|
344509
344526
|
isInteractive() {
|
|
344510
344527
|
return this.interactive;
|
|
344511
344528
|
}
|
|
@@ -344653,7 +344670,7 @@ var Config = class {
|
|
|
344653
344670
|
if (this.getUseWriteTodos()) {
|
|
344654
344671
|
registerCoreTool(WriteTodosTool, this);
|
|
344655
344672
|
}
|
|
344656
|
-
if (this.getCodebaseInvestigatorSettings()
|
|
344673
|
+
if (this.getCodebaseInvestigatorSettings().enabled) {
|
|
344657
344674
|
const definition = this.agentRegistry.getDefinition("codebase_investigator");
|
|
344658
344675
|
if (definition) {
|
|
344659
344676
|
const excludeTools = this.getExcludeTools() || [];
|