fix: address Bugbot review comments

- Remove redundant conditional in --smart flag (both branches were identical)
- Include templates directory in npm package files
This commit is contained in:
Prateek 2026-02-16 09:10:25 +05:30
parent 7729bd89c6
commit f5259c367c
2 changed files with 4 additions and 6 deletions

View File

@ -9,7 +9,8 @@
},
"main": "dist/index.js",
"files": [
"dist"
"dist",
"templates"
],
"repository": {
"type": "git",

View File

@ -401,17 +401,14 @@ async function handleAutoMode(outputPath: string, smart: boolean): Promise<void>
console.log();
// Generate agent rules
let agentRules: string;
if (smart) {
// TODO: Implement AI-powered rule generation in future PR
console.log(chalk.yellow(" ⚠ AI-powered rule generation not yet implemented"));
console.log(chalk.dim(" Using template-based rules for now...\n"));
agentRules = await generateRulesFromTemplates(projectType);
} else {
agentRules = await generateRulesFromTemplates(projectType);
}
const agentRules = await generateRulesFromTemplates(projectType);
// Build config with smart defaults
const projectId = env.isGitRepo ? basename(workingDir) : "my-project";
const repo = env.ownerRepo || "owner/repo";