From 6577dd3445a4aa2175b45c4f81201e0506874dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C6=B0=C6=A1ng=20B=E1=BA=A3o=20Duy?= Date: Wed, 10 Sep 2025 22:25:14 +0700 Subject: [PATCH] bmad don't had agents/sugagent yet. So, with it only the command --- tools/installer/lib/ide-setup.js | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/tools/installer/lib/ide-setup.js b/tools/installer/lib/ide-setup.js index 68760d6f..8e43c33f 100644 --- a/tools/installer/lib/ide-setup.js +++ b/tools/installer/lib/ide-setup.js @@ -1609,7 +1609,10 @@ class IdeSetup extends BaseIdeSetup { } const agentTitle = await this.getAgentTitle(agentId, installDir); - const commandPath = path.join(agentCommandsDir, `${agentId}.toml`); + const commandPath = path.join( + taskCommandsDir, + `BMad:agents:${agentId}.md`, + ); // Get relative path from installDir to agent file for @{file} reference const relativeAgentPath = path @@ -1617,16 +1620,16 @@ class IdeSetup extends BaseIdeSetup { .replaceAll("\\", "/"); const tomlContent = `--- -description = "Activates the ${agentTitle} agent from the BMad Method." +description: "Activates the ${agentTitle} agent from the BMad Method." --- CRITICAL: You are now the BMad '${agentTitle}' agent. Adopt its persona, follow its instructions, and use its capabilities. The full agent definition is below. -@{${relativeAgentPath}} +@${relativeAgentPath} `; await fileManager.writeFile(commandPath, tomlContent); console.log( - chalk.green(`✓ Created agent command: /bmad:agents:${agentId}`), + chalk.green(`✓ Created agent command: /BMad:agents:${agentId}`), ); } @@ -1645,22 +1648,23 @@ CRITICAL: You are now the BMad '${agentTitle}' agent. Adopt its persona, follow .split("-") .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) .join(" "); - const commandPath = path.join(taskCommandsDir, `${taskId}.toml`); + const commandPath = path.join(taskCommandsDir, `BMad:tasks:${taskId}.md`); // Get relative path from installDir to task file for @{file} reference const relativeTaskPath = path .relative(installDir, taskPath) .replaceAll("\\", "/"); - const tomlContent = `description = "Executes the BMad Task: ${taskTitle}" -prompt = """ + const tomlContent = `--- +description: "Executes the BMad Task: ${taskTitle}" +--- CRITICAL: You are to execute the BMad Task defined below. -@{${relativeTaskPath}} -"""`; +@${relativeTaskPath} +`; await fileManager.writeFile(commandPath, tomlContent); - console.log(chalk.green(`✓ Created task command: /bmad:tasks:${taskId}`)); + console.log(chalk.green(`✓ Created task command: /BMad:tasks:${taskId}`)); } console.log( @@ -1669,7 +1673,7 @@ CRITICAL: You are to execute the BMad Task defined below. ); console.log( chalk.dim( - "You can now use commands like /bmad:agents:dev or /bmad:tasks:create-doc.", + "You can now use commands like /BMad:agents:dev or /BMad:tasks:create-doc.", ), );