From 46111b3987864da0fa098929e5ee6b5454900c3b Mon Sep 17 00:00:00 2001 From: catlog22 Date: Sun, 18 Jan 2026 14:22:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(cli):=20=E6=9B=B4=E6=96=B0=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=A0=BC=E5=BC=8F=E4=BB=A5=E5=8C=85=E5=90=AB=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E5=92=8C=E6=A8=A1=E6=9D=BF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ccw/src/commands/cli.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ccw/src/commands/cli.ts b/ccw/src/commands/cli.ts index 65c9b4b6..c849fd66 100644 --- a/ccw/src/commands/cli.ts +++ b/ccw/src/commands/cli.ts @@ -767,20 +767,20 @@ async function execAction(positionalPrompt: string | undefined, options: CliExec } // Concatenate systemRules and roles to the end of prompt (if loaded) - // Format: [USER_PROMPT]\n[SYSTEM_RULES]\n[ROLES] + // Format: [USER_PROMPT]\n\nProtocol (mode): [content]\n\nTemplate (rule): [content] // Skip concatenation when using --commit with review mode (prompt not allowed) if (!skipTemplates && (systemRules || roles)) { const parts: string[] = [actualPrompt]; if (systemRules) { - parts.push(`=== SYSTEM RULES ===\n${systemRules}`); + parts.push(`Protocol (${mode}):\n${systemRules}`); } if (roles) { - parts.push(`=== ROLES ===\n${roles}`); + parts.push(`Template (${effectiveRule}):\n${roles}`); } actualPrompt = parts.join('\n\n'); if (debug) { - console.log(chalk.gray(` Prompt structure: USER_PROMPT(${prompt_to_use.length}) + SYSTEM_RULES(${systemRules.length}) + ROLES(${roles.length})`)); + console.log(chalk.gray(` Prompt structure: USER_PROMPT(${prompt_to_use.length}) + Protocol(${systemRules.length}) + Template(${roles.length})`)); console.log(chalk.gray(` Total prompt length: ${actualPrompt.length} chars`)); } }