Compare commits
No commits in common. "df103fc19bd58071f9dbff8a40d47efb0e1515f1" and "d83680838b802cf9ca1c1f69eb27f76560e890d3" have entirely different histories.
df103fc19b
...
d83680838b
|
|
@ -530,11 +530,6 @@ class BaseIdeSetup {
|
|||
content = content.replaceAll('_bmad', this.bmadFolderName);
|
||||
}
|
||||
|
||||
// Replace {bmad-folder} placeholder if present
|
||||
if (typeof content === 'string' && content.includes('{bmad-folder}')) {
|
||||
content = content.replaceAll('{bmad-folder}', this.bmadFolderName);
|
||||
}
|
||||
|
||||
// Replace escape sequence _bmad with literal _bmad
|
||||
if (typeof content === 'string' && content.includes('_bmad')) {
|
||||
content = content.replaceAll('_bmad', '_bmad');
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ class MistralVibeSetup extends BaseIdeSetup {
|
|||
await fs.ensureDir(skillDir);
|
||||
|
||||
const skillContent = `---
|
||||
name: ${skillName}
|
||||
name: ${skill.name}
|
||||
description: ${skill.description}
|
||||
license: MIT
|
||||
compatibility: Mistral Vibe CLI
|
||||
|
|
@ -152,7 +152,7 @@ user-invocable: True
|
|||
|
||||
# ${skill.name.toUpperCase()}
|
||||
|
||||
IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @.vibe/{bmad-folder}/core/workflows/${skill.name}/workflow.md, READ its entire contents and follow its directions exactly!`;
|
||||
IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @.vibe/_bmad/core/workflows/${skill.name}/workflow.md, READ its entire contents and follow its directions exactly!`;
|
||||
|
||||
await fs.writeFile(path.join(skillDir, 'SKILL.md'), skillContent);
|
||||
count++;
|
||||
|
|
@ -256,10 +256,19 @@ This skill provides ${skill.description.toLowerCase()} functionality.`;
|
|||
return written;
|
||||
}
|
||||
|
||||
async generateAgentSkillContent(artifact, skillName) {
|
||||
const agentName = artifact.name;
|
||||
const isBmmAgent = artifact.module === 'bmm';
|
||||
const agentPath = isBmmAgent ? `{bmad-folder}/bmm/agents/${agentName}.md` : `{bmad-folder}/core/agents/${agentName}.md`;
|
||||
async generateAgentSkillContent(skill, bmadDir) {
|
||||
// Generate agent skill content in the exact format
|
||||
const agentName = skill.name.replace('agent-', '');
|
||||
const isBmmAgent = skill.name.startsWith('agent-bmm-');
|
||||
|
||||
// Read the actual agent file to get the path
|
||||
let agentPath;
|
||||
if (isBmmAgent) {
|
||||
const realAgentName = agentName.replace('bmm-', '');
|
||||
agentPath = `_bmad/bmm/agents/${realAgentName}.md`;
|
||||
} else {
|
||||
agentPath = `_bmad/core/agents/${agentName}.md`;
|
||||
}
|
||||
|
||||
return `---
|
||||
name: ${skill.name}
|
||||
|
|
@ -282,25 +291,25 @@ You must fully embody this agent's persona and follow all activation instruction
|
|||
</agent-activation>`;
|
||||
}
|
||||
|
||||
async generateWorkflowSkillContent(workflow, skillName) {
|
||||
async generateWorkflowSkillContent(skill, bmadDir) {
|
||||
// Generate workflow skill content in the exact format
|
||||
const workflowName = skillName.replace('bmm-', '');
|
||||
const workflowName = skill.name.replace('bmm-', '');
|
||||
|
||||
// Determine the workflow path based on the workflow name
|
||||
let workflowPath;
|
||||
switch (workflowName) {
|
||||
case 'brainstorming':
|
||||
case 'party-mode': {
|
||||
workflowPath = `{bmad-folder}/core/workflows/${workflowName}/workflow.md`;
|
||||
workflowPath = `_bmad/core/workflows/${workflowName}/workflow.md`;
|
||||
break;
|
||||
}
|
||||
case 'help': {
|
||||
workflowPath = `{bmad-folder}/core/tasks/help.md`;
|
||||
workflowPath = `_bmad/core/tasks/help.md`;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
// BMM workflows are in various subdirectories
|
||||
workflowPath = `{bmad-folder}/bmm/workflows/${workflowName}/workflow.md`;
|
||||
workflowPath = `_bmad/bmm/workflows/${workflowName}/workflow.md`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -335,7 +344,7 @@ user-invocable: True
|
|||
|
||||
# ${skill.name.toUpperCase()}
|
||||
|
||||
IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @.vibe/{bmad-folder}/core/workflows/${skill.name}/workflow.md, READ its entire contents and follow its directions exactly!`;
|
||||
IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @.vibe/_bmad/core/workflows/${skill.name}/workflow.md, READ its entire contents and follow its directions exactly!`;
|
||||
}
|
||||
|
||||
getWorkflowDescription(workflowName) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue