chore: run format
This commit is contained in:
@@ -3,10 +3,7 @@
|
||||
"task-master-ai": {
|
||||
"type": "stdio",
|
||||
"command": "npx",
|
||||
"args": [
|
||||
"-y",
|
||||
"task-master-ai"
|
||||
]
|
||||
"args": ["-y", "task-master-ai"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,4 +90,4 @@
|
||||
"reasoning": "While technically less complex than core systems, building an intuitive configuration editor with validation, versioning, and import/export requires careful UI/UX design and robust data handling."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,30 +50,35 @@ export const kiroProfile = createProfile({
|
||||
to: '---\ninclusion: always\n---'
|
||||
}
|
||||
],
|
||||
|
||||
|
||||
// Add lifecycle hook to copy Kiro hooks
|
||||
onPostConvert: (projectRoot, assetsDir) => {
|
||||
const hooksSourceDir = path.join(assetsDir, 'kiro-hooks');
|
||||
const hooksTargetDir = path.join(projectRoot, '.kiro', 'hooks');
|
||||
|
||||
|
||||
// Create hooks directory if it doesn't exist
|
||||
if (!fs.existsSync(hooksTargetDir)) {
|
||||
fs.mkdirSync(hooksTargetDir, { recursive: true });
|
||||
}
|
||||
|
||||
|
||||
// Copy all .kiro.hook files
|
||||
if (fs.existsSync(hooksSourceDir)) {
|
||||
const hookFiles = fs.readdirSync(hooksSourceDir).filter(f => f.endsWith('.kiro.hook'));
|
||||
|
||||
hookFiles.forEach(file => {
|
||||
const hookFiles = fs
|
||||
.readdirSync(hooksSourceDir)
|
||||
.filter((f) => f.endsWith('.kiro.hook'));
|
||||
|
||||
hookFiles.forEach((file) => {
|
||||
const sourcePath = path.join(hooksSourceDir, file);
|
||||
const targetPath = path.join(hooksTargetDir, file);
|
||||
|
||||
|
||||
fs.copyFileSync(sourcePath, targetPath);
|
||||
});
|
||||
|
||||
|
||||
if (hookFiles.length > 0) {
|
||||
log('info', `[Kiro] Installed ${hookFiles.length} Taskmaster hooks in .kiro/hooks/`);
|
||||
log(
|
||||
'info',
|
||||
`[Kiro] Installed ${hookFiles.length} Taskmaster hooks in .kiro/hooks/`
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user