@google/gemini-cli-a2a-server 0.63.0-nightly.20260929.gfe6350238 → 0.63.0-preview.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.
- package/dist/a2a-server.mjs +16 -13
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -68712,7 +68712,7 @@ function sanitizeFilenamePart(part) {
|
|
|
68712
68712
|
return part.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
68713
68713
|
}
|
|
68714
68714
|
function formatTruncatedToolOutput(contentStr, outputFile, maxChars) {
|
|
68715
|
-
if (contentStr.length <= maxChars)
|
|
68715
|
+
if (maxChars <= 0 || contentStr.length <= maxChars)
|
|
68716
68716
|
return contentStr;
|
|
68717
68717
|
const headChars = Math.floor(maxChars * 0.2);
|
|
68718
68718
|
const tailChars = maxChars - headChars;
|
|
@@ -221340,8 +221340,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
|
|
|
221340
221340
|
var init_git_commit = __esm({
|
|
221341
221341
|
"packages/core/dist/src/generated/git-commit.js"() {
|
|
221342
221342
|
"use strict";
|
|
221343
|
-
GIT_COMMIT_INFO = "
|
|
221344
|
-
CLI_VERSION = "0.63.0-
|
|
221343
|
+
GIT_COMMIT_INFO = "d75234cae";
|
|
221344
|
+
CLI_VERSION = "0.63.0-preview.0";
|
|
221345
221345
|
}
|
|
221346
221346
|
});
|
|
221347
221347
|
|
|
@@ -337077,7 +337077,7 @@ function getVersion() {
|
|
|
337077
337077
|
}
|
|
337078
337078
|
versionPromise = (async () => {
|
|
337079
337079
|
const pkgJson = await getPackageJson(__dirname4);
|
|
337080
|
-
return "0.63.0-
|
|
337080
|
+
return "0.63.0-preview.0";
|
|
337081
337081
|
})();
|
|
337082
337082
|
return versionPromise;
|
|
337083
337083
|
}
|
|
@@ -369469,6 +369469,15 @@ You are operating with a persistent file-based task tracking system located at \
|
|
|
369469
369469
|
function renderPlanningWorkflow(options) {
|
|
369470
369470
|
if (!options)
|
|
369471
369471
|
return "";
|
|
369472
|
+
const consultSection = options.interactive ? `### 2. Consult
|
|
369473
|
+
The depth of your consultation should be proportional to the task's complexity. Before proceeding to Step 3 (Draft), you MUST discuss your findings and proposed strategy with the user to reach an informal agreement.
|
|
369474
|
+
- **Simple Tasks:** Briefly describe your proposed strategy in the chat to ensure alignment, then **STOP and wait** for the user to confirm agreement before drafting the plan.
|
|
369475
|
+
- **Standard Tasks:** If multiple viable approaches exist, present a concise summary (including pros/cons and your recommendation) via ${formatToolName(ASK_USER_TOOL_NAME)} and wait for a decision.
|
|
369476
|
+
- **Complex Tasks:** You MUST present at least two viable approaches with detailed trade-offs via ${formatToolName(ASK_USER_TOOL_NAME)} and obtain approval before drafting the plan.
|
|
369477
|
+
|
|
369478
|
+
**CRITICAL:** You MUST NOT proceed to Step 3 (Draft) or Step 4 (Review & Approval) in the same turn as your initial strategy proposal. You MUST wait for user feedback and reach a clear agreement before drafting or submitting the plan.` : `### 2. Determine Strategy
|
|
369479
|
+
Synthesize your exploration findings to select the best approach and implementation strategy. Because you are running non-interactively, proceed directly to Step 3 (Draft) autonomously without halting or waiting for user confirmation.`;
|
|
369480
|
+
const reviewAndApprovalSection = options.interactive ? `ONLY use the built-in ${formatToolName(EXIT_PLAN_MODE_TOOL_NAME)} tool to present the plan for formal approval AFTER you have reached an informal agreement with the user in the chat regarding the proposed strategy. **CRITICAL: NEVER attempt to call this tool via ${formatToolName(SHELL_TOOL_NAME)}.** When called, this tool will present the plan and formally request approval.` : `Use the built-in ${formatToolName(EXIT_PLAN_MODE_TOOL_NAME)} tool to finalize the plan. **CRITICAL: NEVER attempt to call this tool via ${formatToolName(SHELL_TOOL_NAME)}.** When called, this tool will present the plan and begin implementation.`;
|
|
369472
369481
|
return `
|
|
369473
369482
|
# Active Approval Mode: Plan
|
|
369474
369483
|
|
|
@@ -369483,7 +369492,7 @@ ${options.planModeToolsList}
|
|
|
369483
369492
|
## Rules
|
|
369484
369493
|
1. **Read-Only:** You cannot modify source code. You may ONLY use read-only tools to explore, and you can only write to \`${options.plansDir}/\`. If the user asks you to modify source code directly, you MUST explain that you are in Plan Mode and must first create a plan and get approval.
|
|
369485
369494
|
2. **Write Constraint:** ${formatToolName(WRITE_FILE_TOOL_NAME)} and ${formatToolName(EDIT_TOOL_NAME)} may ONLY be used to write .md plan files to \`${options.plansDir}/\`. They cannot modify source code.
|
|
369486
|
-
3. **Efficiency:** Autonomously combine discovery and drafting phases to minimize conversational turns. If the request is ambiguous, use ${formatToolName(ASK_USER_TOOL_NAME)} to clarify. Use multi-select to offer flexibility and include detailed descriptions for each option to help the user understand the implications of their choice
|
|
369495
|
+
3. **Efficiency:** Autonomously combine discovery and drafting phases to minimize conversational turns.${options.interactive ? ` If the request is ambiguous, use ${formatToolName(ASK_USER_TOOL_NAME)} to clarify. Use multi-select to offer flexibility and include detailed descriptions for each option to help the user understand the implications of their choice.` : ""}
|
|
369487
369496
|
4. **Inquiries and Directives:** Distinguish between Inquiries and Directives to minimize unnecessary planning.
|
|
369488
369497
|
- **Inquiries:** If the request is an **Inquiry** (e.g., "How does X work?"), answer directly. DO NOT create a plan.
|
|
369489
369498
|
- **Directives:** If the request is a **Directive** (e.g., "Fix bug Y"), follow the workflow below.
|
|
@@ -369497,13 +369506,7 @@ Plan Mode uses an adaptive planning workflow where the research depth, plan stru
|
|
|
369497
369506
|
### 1. Explore & Analyze
|
|
369498
369507
|
Analyze requirements and use search/read tools to explore the codebase. Systematically map affected modules, trace data flow, and identify dependencies.
|
|
369499
369508
|
|
|
369500
|
-
|
|
369501
|
-
The depth of your consultation should be proportional to the task's complexity. Before proceeding to Step 3 (Draft), you MUST discuss your findings and proposed strategy with the user to reach an informal agreement.
|
|
369502
|
-
- **Simple Tasks:** Briefly describe your proposed strategy in the chat to ensure alignment, then **STOP and wait** for the user to confirm agreement before drafting the plan.
|
|
369503
|
-
- **Standard Tasks:** If multiple viable approaches exist, present a concise summary (including pros/cons and your recommendation) via ${formatToolName(ASK_USER_TOOL_NAME)} and wait for a decision.
|
|
369504
|
-
- **Complex Tasks:** You MUST present at least two viable approaches with detailed trade-offs via ${formatToolName(ASK_USER_TOOL_NAME)} and obtain approval before drafting the plan.
|
|
369505
|
-
|
|
369506
|
-
**CRITICAL:** You MUST NOT proceed to Step 3 (Draft) or Step 4 (Review & Approval) in the same turn as your initial strategy proposal. You MUST wait for user feedback and reach a clear agreement before drafting or submitting the plan.
|
|
369509
|
+
${consultSection}
|
|
369507
369510
|
|
|
369508
369511
|
### 3. Draft
|
|
369509
369512
|
Write the implementation plan to \`${options.plansDir}/\`. The plan's structure adapts to the task:
|
|
@@ -369512,7 +369515,7 @@ Write the implementation plan to \`${options.plansDir}/\`. The plan's structure
|
|
|
369512
369515
|
- **Complex Tasks:** Include **Background & Motivation**, **Scope & Impact**, **Proposed Solution**, **Alternatives Considered**, a phased **Implementation Plan**, **Verification**, and **Migration & Rollback** strategies.${options.interactive ? "\n- **Alignment Check:** After drafting the plan, you MUST present it to the user in the chat (adhering to Rule 7 for presenting plans) to ensure alignment on the specific details. Ask for feedback or confirmation, and proceed to Step 4 (Review & Approval) once the user agrees with the detailed plan." : ""}
|
|
369513
369516
|
|
|
369514
369517
|
### 4. Review & Approval
|
|
369515
|
-
|
|
369518
|
+
${reviewAndApprovalSection}
|
|
369516
369519
|
|
|
369517
369520
|
${renderApprovedPlanSection(options.approvedPlanPath)}`.trim();
|
|
369518
369521
|
}
|