@@ -330,6 +330,7 @@ async function initializeFramework(targetDir, options) {
330
330
console . log ( '' ) ;
331
331
332
332
// Ask if they want to run a health check
333
+ let userChoseSecurityCheckup = false ;
333
334
if ( ! options . yes ) {
334
335
console . log ( '' ) ;
335
336
console . log ( chalk . cyan ( '┌─────────────────────────────────────────────────────────────────┐' ) ) ;
@@ -341,6 +342,7 @@ async function initializeFramework(targetDir, options) {
341
342
console . log ( '' ) ;
342
343
343
344
const runCheckup = await promptConfirmation ( chalk . yellow ( 'Run security checkup? (y/N): ' ) ) ;
345
+ userChoseSecurityCheckup = runCheckup ;
344
346
345
347
if ( runCheckup ) {
346
348
console . log ( '' ) ;
@@ -356,13 +358,21 @@ async function initializeFramework(targetDir, options) {
356
358
console . log ( chalk . yellow ( '│' ) + ' ask Claude Code: ' + chalk . yellow ( '│' ) ) ;
357
359
console . log ( chalk . yellow ( '│' ) + ' ' + chalk . yellow ( '│' ) ) ;
358
360
console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' "Please review this codebase and update the CLAUDE.md' ) + ' ' + chalk . yellow ( '│' ) ) ;
359
- console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' and CONDUCTOR.md files with the actual project details.' ) + ' ' + chalk . yellow ( '│' ) ) ;
360
- console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' Also perform a security health check and list any' ) + ' ' + chalk . yellow ( '│' ) ) ;
361
- console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' potential vulnerabilities or concerns (like exposed' ) + ' ' + chalk . yellow ( '│' ) ) ;
362
- console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' .env files, API keys in code, missing .gitignore' ) + ' ' + chalk . yellow ( '│' ) ) ;
363
- console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' entries, outdated dependencies with known vulnerabilities,' ) + ' ' + chalk . yellow ( '│' ) ) ;
364
- console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' or insecure configurations) - just list them as warnings,' ) + ' ' + chalk . yellow ( '│' ) ) ;
365
- console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' don\'t fix anything."' ) + ' ' + chalk . yellow ( '│' ) ) ;
361
+
362
+ if ( userChoseSecurityCheckup && ! options . yes ) {
363
+ // User already ran security checkup, so don't include it in the prompt
364
+ console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' and CONDUCTOR.md files with the actual project details."' ) + ' ' + chalk . yellow ( '│' ) ) ;
365
+ } else {
366
+ // User didn't run security checkup OR used --yes flag, so include it in the prompt
367
+ console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' and CONDUCTOR.md files with the actual project details.' ) + ' ' + chalk . yellow ( '│' ) ) ;
368
+ console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' Also perform a security health check and list any' ) + ' ' + chalk . yellow ( '│' ) ) ;
369
+ console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' potential vulnerabilities or concerns (like exposed' ) + ' ' + chalk . yellow ( '│' ) ) ;
370
+ console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' .env files, API keys in code, missing .gitignore' ) + ' ' + chalk . yellow ( '│' ) ) ;
371
+ console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' entries, outdated dependencies with known vulnerabilities,' ) + ' ' + chalk . yellow ( '│' ) ) ;
372
+ console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' or insecure configurations) - just list them as warnings,' ) + ' ' + chalk . yellow ( '│' ) ) ;
373
+ console . log ( chalk . yellow ( '│' ) + chalk . cyan ( ' don\'t fix anything."' ) + ' ' + chalk . yellow ( '│' ) ) ;
374
+ }
375
+
366
376
console . log ( chalk . yellow ( '│' ) + ' ' + chalk . yellow ( '│' ) ) ;
367
377
console . log ( chalk . yellow ( '│' ) + ' This one-time setup ensures your docs match your project! 🚀 ' + chalk . yellow ( '│' ) ) ;
368
378
console . log ( chalk . yellow ( '└─────────────────────────────────────────────────────────────────┘' ) ) ;
@@ -408,6 +418,9 @@ async function animateThankYou() {
408
418
console . log ( '' ) ;
409
419
console . log ( chalk . gray ( ' Happy documenting with Claude!' ) ) ;
410
420
console . log ( '' ) ;
421
+ console . log ( chalk . gray ( ' Improved with contributions from our amazing contributors' ) ) ;
422
+ console . log ( chalk . gray ( ' See: ' ) + chalk . blue . underline ( 'https://github.com/superbasicstudio/claude-conductor/blob/main/THANKS.md' ) ) ;
423
+ console . log ( '' ) ;
411
424
}
412
425
413
426
async function copyTemplates ( templatesDir , targetPath , force , full = false , newlyCreatedFiles ) {
0 commit comments