diff --git a/tools/cli/installers/lib/ide/codex.js b/tools/cli/installers/lib/ide/codex.js index 60250a39..12bc2dcd 100644 --- a/tools/cli/installers/lib/ide/codex.js +++ b/tools/cli/installers/lib/ide/codex.js @@ -94,6 +94,8 @@ class CodexSetup extends BaseIdeSetup { const tasks = await getTasksFromBmad(bmadDir, options.selectedModules || []); const taskArtifacts = []; for (const task of tasks) { + const relativeTaskPath = path.relative(projectDir, task.path).replaceAll('\\', '/'); + const taskPromptPath = `{project-root}/${relativeTaskPath}`; const content = await this.readAndProcessWithProject( task.path, { @@ -105,7 +107,9 @@ class CodexSetup extends BaseIdeSetup { taskArtifacts.push({ type: 'task', module: task.module, + name: task.name, sourcePath: task.path, + path: taskPromptPath, relativePath: path.join(task.module, 'tasks', `${task.name}.md`), content, });