fix: resolve Mistral Vibe setup naming inconsistencies
- Fix workflow name mismatch in generateWorkflowSkillContent
- Fix agent naming inconsistency in writeMistralVibeArtifacts and generateAgentSkillContent
- Replace hardcoded {bmad-folder} placeholders with configurable this.bmadFolderName
These changes ensure that directory names, frontmatter names, and file paths all align properly while maintaining support for configurable BMAD folder names.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
8043beef0c
commit
d8038d7848
|
|
@ -95,7 +95,9 @@ class MistralVibeSetup extends BaseIdeSetup {
|
||||||
let count = 0;
|
let count = 0;
|
||||||
for (const artifact of artifacts) {
|
for (const artifact of artifacts) {
|
||||||
const skillName =
|
const skillName =
|
||||||
prefix === 'agent' ? (artifact.name === 'bmad-master' ? 'agent-bmad-master' : `agent-bmm-${artifact.name}`) : artifact.name;
|
prefix === 'agent'
|
||||||
|
? (artifact.module === 'bmm' ? `agent-bmm-${artifact.name}` : `agent-${artifact.name}`)
|
||||||
|
: artifact.name;
|
||||||
|
|
||||||
const skillDir = path.join(destDir, skillName);
|
const skillDir = path.join(destDir, skillName);
|
||||||
await fs.ensureDir(skillDir);
|
await fs.ensureDir(skillDir);
|
||||||
|
|
@ -152,7 +154,7 @@ user-invocable: True
|
||||||
|
|
||||||
# ${skill.name.toUpperCase()}
|
# ${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/${this.bmadFolderName}/core/workflows/${skill.name}/workflow.md, READ its entire contents and follow its directions exactly!`;
|
||||||
|
|
||||||
await fs.writeFile(path.join(skillDir, 'SKILL.md'), skillContent);
|
await fs.writeFile(path.join(skillDir, 'SKILL.md'), skillContent);
|
||||||
count++;
|
count++;
|
||||||
|
|
@ -259,10 +261,10 @@ This skill provides ${skill.description.toLowerCase()} functionality.`;
|
||||||
async generateAgentSkillContent(artifact, skillName) {
|
async generateAgentSkillContent(artifact, skillName) {
|
||||||
const agentName = artifact.name;
|
const agentName = artifact.name;
|
||||||
const isBmmAgent = artifact.module === 'bmm';
|
const isBmmAgent = artifact.module === 'bmm';
|
||||||
const agentPath = isBmmAgent ? `{bmad-folder}/bmm/agents/${agentName}.md` : `{bmad-folder}/core/agents/${agentName}.md`;
|
const agentPath = isBmmAgent ? `${this.bmadFolderName}/bmm/agents/${agentName}.md` : `${this.bmadFolderName}/core/agents/${agentName}.md`;
|
||||||
|
|
||||||
return `---
|
return `---
|
||||||
name: ${skill.name}
|
name: ${skillName}
|
||||||
description: ${agentName} agent
|
description: ${agentName} agent
|
||||||
license: MIT
|
license: MIT
|
||||||
compatibility: Mistral Vibe CLI
|
compatibility: Mistral Vibe CLI
|
||||||
|
|
@ -291,21 +293,21 @@ You must fully embody this agent's persona and follow all activation instruction
|
||||||
switch (workflowName) {
|
switch (workflowName) {
|
||||||
case 'brainstorming':
|
case 'brainstorming':
|
||||||
case 'party-mode': {
|
case 'party-mode': {
|
||||||
workflowPath = `{bmad-folder}/core/workflows/${workflowName}/workflow.md`;
|
workflowPath = `${this.bmadFolderName}/core/workflows/${workflowName}/workflow.md`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'help': {
|
case 'help': {
|
||||||
workflowPath = `{bmad-folder}/core/tasks/help.md`;
|
workflowPath = `${this.bmadFolderName}/core/tasks/help.md`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
// BMM workflows are in various subdirectories
|
// BMM workflows are in various subdirectories
|
||||||
workflowPath = `{bmad-folder}/bmm/workflows/${workflowName}/workflow.md`;
|
workflowPath = `${this.bmadFolderName}/bmm/workflows/${workflowName}/workflow.md`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return `---
|
return `---
|
||||||
name: ${skill.name}
|
name: ${skillName}
|
||||||
description: ${this.getWorkflowDescription(workflowName)}
|
description: ${this.getWorkflowDescription(workflowName)}
|
||||||
license: MIT
|
license: MIT
|
||||||
compatibility: Mistral Vibe CLI
|
compatibility: Mistral Vibe CLI
|
||||||
|
|
@ -335,7 +337,7 @@ user-invocable: True
|
||||||
|
|
||||||
# ${skill.name.toUpperCase()}
|
# ${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/${this.bmadFolderName}/core/workflows/${skill.name}/workflow.md, READ its entire contents and follow its directions exactly!`;
|
||||||
}
|
}
|
||||||
|
|
||||||
getWorkflowDescription(workflowName) {
|
getWorkflowDescription(workflowName) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue