From 8c9889be1abb3c0a4dfa03ebd21dd16166c46c2b Mon Sep 17 00:00:00 2001 From: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com> Date: Tue, 22 Jul 2025 21:41:46 +0300 Subject: [PATCH] chore: run format --- .mcp.json | 7 ++---- .../task-complexity-report_cc-kiro-hooks.json | 2 +- src/profiles/kiro.js | 23 +++++++++++-------- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.mcp.json b/.mcp.json index a748e21e..26a129bf 100644 --- a/.mcp.json +++ b/.mcp.json @@ -3,10 +3,7 @@ "task-master-ai": { "type": "stdio", "command": "npx", - "args": [ - "-y", - "task-master-ai" - ] + "args": ["-y", "task-master-ai"] } } -} \ No newline at end of file +} diff --git a/.taskmaster/reports/task-complexity-report_cc-kiro-hooks.json b/.taskmaster/reports/task-complexity-report_cc-kiro-hooks.json index c34bf7a9..9106ccf8 100644 --- a/.taskmaster/reports/task-complexity-report_cc-kiro-hooks.json +++ b/.taskmaster/reports/task-complexity-report_cc-kiro-hooks.json @@ -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." } ] -} \ No newline at end of file +} diff --git a/src/profiles/kiro.js b/src/profiles/kiro.js index fd7a4c95..5eb32fb6 100644 --- a/src/profiles/kiro.js +++ b/src/profiles/kiro.js @@ -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/` + ); } } }