agileflow 2.94.1 โ†’ 2.95.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +3 -3
  3. package/lib/colors.generated.js +117 -0
  4. package/lib/colors.js +59 -109
  5. package/lib/generator-factory.js +333 -0
  6. package/lib/path-utils.js +49 -0
  7. package/lib/session-registry.js +25 -15
  8. package/lib/smart-json-file.js +40 -32
  9. package/lib/state-machine.js +286 -0
  10. package/package.json +1 -1
  11. package/scripts/agileflow-configure.js +7 -6
  12. package/scripts/archive-completed-stories.sh +86 -11
  13. package/scripts/babysit-context-restore.js +89 -0
  14. package/scripts/claude-tmux.sh +111 -5
  15. package/scripts/damage-control/bash-tool-damage-control.js +11 -247
  16. package/scripts/damage-control/edit-tool-damage-control.js +9 -249
  17. package/scripts/damage-control/write-tool-damage-control.js +9 -244
  18. package/scripts/generate-colors.js +314 -0
  19. package/scripts/lib/colors.generated.sh +82 -0
  20. package/scripts/lib/colors.sh +10 -70
  21. package/scripts/lib/configure-features.js +401 -0
  22. package/scripts/lib/context-loader.js +181 -52
  23. package/scripts/precompact-context.sh +54 -17
  24. package/scripts/session-coordinator.sh +2 -2
  25. package/scripts/session-manager.js +653 -10
  26. package/src/core/commands/audit.md +93 -0
  27. package/src/core/commands/auto.md +73 -0
  28. package/src/core/commands/babysit.md +169 -13
  29. package/src/core/commands/baseline.md +73 -0
  30. package/src/core/commands/batch.md +64 -0
  31. package/src/core/commands/blockers.md +60 -0
  32. package/src/core/commands/board.md +66 -0
  33. package/src/core/commands/choose.md +77 -0
  34. package/src/core/commands/ci.md +77 -0
  35. package/src/core/commands/compress.md +27 -1
  36. package/src/core/commands/configure.md +126 -10
  37. package/src/core/commands/council.md +74 -0
  38. package/src/core/commands/debt.md +72 -0
  39. package/src/core/commands/deploy.md +73 -0
  40. package/src/core/commands/deps.md +68 -0
  41. package/src/core/commands/docs.md +60 -0
  42. package/src/core/commands/feedback.md +68 -0
  43. package/src/core/commands/ideate.md +74 -0
  44. package/src/core/commands/impact.md +74 -0
  45. package/src/core/commands/install.md +529 -0
  46. package/src/core/commands/maintain.md +558 -0
  47. package/src/core/commands/metrics.md +75 -0
  48. package/src/core/commands/multi-expert.md +74 -0
  49. package/src/core/commands/packages.md +69 -0
  50. package/src/core/commands/readme-sync.md +64 -0
  51. package/src/core/commands/research/analyze.md +285 -121
  52. package/src/core/commands/research/import.md +281 -109
  53. package/src/core/commands/retro.md +76 -0
  54. package/src/core/commands/review.md +72 -0
  55. package/src/core/commands/rlm.md +83 -0
  56. package/src/core/commands/rpi.md +90 -0
  57. package/src/core/commands/session/cleanup.md +214 -12
  58. package/src/core/commands/session/end.md +155 -17
  59. package/src/core/commands/sprint.md +72 -0
  60. package/src/core/commands/story-validate.md +68 -0
  61. package/src/core/commands/template.md +69 -0
  62. package/src/core/commands/tests.md +83 -0
  63. package/src/core/commands/update.md +59 -0
  64. package/src/core/commands/validate-expertise.md +76 -0
  65. package/src/core/commands/velocity.md +74 -0
  66. package/src/core/commands/verify.md +91 -0
  67. package/src/core/commands/whats-new.md +69 -0
  68. package/src/core/commands/workflow.md +88 -0
  69. package/src/core/templates/command-documentation.md +187 -0
  70. package/tools/cli/commands/session.js +1171 -0
  71. package/tools/cli/commands/setup.js +2 -81
  72. package/tools/cli/installers/core/installer.js +0 -5
  73. package/tools/cli/installers/ide/claude-code.js +6 -0
  74. package/tools/cli/lib/config-manager.js +42 -5
@@ -651,6 +651,74 @@ OUTPUT
651
651
 
652
652
  ---
653
653
 
654
+ ## Expected Output
655
+
656
+ ### Success - Dependency Graph
657
+
658
+ ```
659
+ ๐Ÿ“Š Dependency Analysis: EP-0026
660
+ โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
661
+
662
+ Story Dependency Graph:
663
+
664
+ US-0050 (User registration)
665
+ โ†“
666
+ US-0051 (User login) โ†โ”€โ”€โ”€โ”€โ”€โ”€โ”
667
+ โ†“ โ”‚
668
+ US-0053 (OAuth Google) โ”€โ”€โ”€โ”€โ”€โ”ค
669
+ โ†“ โ”‚
670
+ US-0056 (Session mgmt) โ”€โ”€โ”€โ”€โ”€โ”˜
671
+ โ†“
672
+ US-0057 (Dashboard)
673
+
674
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
675
+
676
+ ๐ŸŽฏ Critical Path:
677
+ US-0050 โ†’ US-0051 โ†’ US-0053 โ†’ US-0056 โ†’ US-0057
678
+ Duration: 6.5 days
679
+
680
+ โšก Parallel Opportunities:
681
+ - US-0054 (OAuth GitHub) can run parallel to US-0053
682
+ - US-0055 (Rate limiting) has no dependencies
683
+
684
+ โš ๏ธ Bottleneck: US-0051 (blocks 3 stories)
685
+ Consider: Add second developer or reduce scope
686
+ ```
687
+
688
+ ### Success - Circular Dependency Warning
689
+
690
+ ```
691
+ ๐Ÿ“Š Dependency Analysis
692
+ โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
693
+
694
+ โš ๏ธ CIRCULAR DEPENDENCY DETECTED:
695
+
696
+ US-0060 โ†’ US-0061 โ†’ US-0062 โ†’ US-0060
697
+
698
+ This creates a deadlock. Suggested fix:
699
+ 1. Remove dependency: US-0062 โ†’ US-0060
700
+ 2. Or split US-0060 into two stories
701
+
702
+ Show resolution options? [Y/n]
703
+ ```
704
+
705
+ ### Error - No Dependencies Defined
706
+
707
+ ```
708
+ โš ๏ธ No story dependencies found in EP-0026
709
+
710
+ Stories exist but no depends_on defined.
711
+
712
+ Add dependencies:
713
+ /agileflow:story:view US-0050
714
+ # Then edit to add depends_on: ["US-0049"]
715
+
716
+ Or visualize by owner:
717
+ /agileflow:deps VIEW=by-owner
718
+ ```
719
+
720
+ ---
721
+
654
722
  ## Related Commands
655
723
 
656
724
  - `/agileflow:blockers` - Track blockers
@@ -399,6 +399,66 @@ OUTPUT
399
399
 
400
400
  ---
401
401
 
402
+ ## Expected Output
403
+
404
+ ### Success - Gap Analysis
405
+
406
+ ```
407
+ ๐Ÿ“š Documentation Gap Analysis
408
+ โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
409
+
410
+ Scanning codebase...
411
+ โœ“ Found 45 exported functions
412
+ โœ“ Found 12 API endpoints
413
+ โœ“ Found 8 React components
414
+
415
+ ๐Ÿ“Š Coverage Report:
416
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
417
+ โ”‚ Category โ”‚ Documented โ”‚ Total โ”‚ Coverage โ”‚
418
+ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
419
+ โ”‚ API Endpoints โ”‚ 10 โ”‚ 12 โ”‚ 83% ๐ŸŸก โ”‚
420
+ โ”‚ Public Functions โ”‚ 38 โ”‚ 45 โ”‚ 84% ๐ŸŸก โ”‚
421
+ โ”‚ React Components โ”‚ 8 โ”‚ 8 โ”‚ 100% ๐ŸŸข โ”‚
422
+ โ”‚ README files โ”‚ 5 โ”‚ 8 โ”‚ 63% ๐Ÿ”ด โ”‚
423
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
424
+
425
+ ๐Ÿ”ด Missing Documentation:
426
+ 1. POST /api/orders/bulk - No JSDoc or OpenAPI spec
427
+ 2. POST /api/webhooks/stripe - No JSDoc or OpenAPI spec
428
+ 3. docs/06-stories/README.md - Folder missing README
429
+ 4. docs/07-testing/README.md - Folder missing README
430
+
431
+ Generate missing docs? [Y/n]
432
+ ```
433
+
434
+ ### Success - Docs Updated
435
+
436
+ ```
437
+ ๐Ÿ“š Documentation Update
438
+ โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
439
+
440
+ โœ“ Updated docs/api/orders.md (added bulk endpoint)
441
+ โœ“ Created docs/06-stories/README.md
442
+ โœ“ Created docs/07-testing/README.md
443
+ โœ“ Regenerated docs/api/openapi.yaml
444
+
445
+ 4 files updated.
446
+ Coverage: 63% โ†’ 88% (+25%)
447
+ ```
448
+
449
+ ### Error - Source Not Found
450
+
451
+ ```
452
+ โŒ Error: Source directory not found
453
+
454
+ Path: src/api/
455
+
456
+ Please verify project structure or specify source:
457
+ /agileflow:docs SOURCE=lib/
458
+ ```
459
+
460
+ ---
461
+
402
462
  ## Related Commands
403
463
 
404
464
  - `/agileflow:readme-sync` - Sync folder README with contents
@@ -525,6 +525,74 @@ OUTPUT
525
525
 
526
526
  ---
527
527
 
528
+ ## Expected Output
529
+
530
+ ### Success - Feedback Collected
531
+
532
+ ```
533
+ ๐Ÿ“ Feedback Collection
534
+ โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
535
+
536
+ Session: Sprint 12 Review
537
+ Agent: AG-API
538
+
539
+ Questions:
540
+ 1. What went well this sprint?
541
+ > "Testing workflow improvements saved significant time"
542
+
543
+ 2. What could be improved?
544
+ > "Better documentation for new patterns"
545
+
546
+ 3. Any blockers or concerns?
547
+ > "None currently"
548
+
549
+ 4. Rate sprint (1-5): โญโญโญโญโ˜† (4/5)
550
+
551
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
552
+ โœ… Feedback Saved
553
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
554
+
555
+ Saved to: docs/09-agents/feedback/sprint-12-AG-API.md
556
+
557
+ Create improvement story for documentation? [Y/n]
558
+ ```
559
+
560
+ ### Success - Team Summary
561
+
562
+ ```
563
+ ๐Ÿ“ Sprint 12 Feedback Summary
564
+ โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
565
+
566
+ Responses: 5/6 agents (83%)
567
+ Average Rating: 4.2/5
568
+
569
+ ๐ŸŸข Top Wins:
570
+ - Testing workflow improvements (3 mentions)
571
+ - Clear acceptance criteria (2 mentions)
572
+ - Good collaboration on US-0050
573
+
574
+ ๐ŸŸก Areas for Improvement:
575
+ - Documentation for new patterns (3 mentions)
576
+ - Earlier blocker detection (2 mentions)
577
+
578
+ ๐Ÿ“Š Sentiment: Positive
579
+ Trend: โ†‘ from 3.8 last sprint
580
+ ```
581
+
582
+ ### Error - No Active Sprint
583
+
584
+ ```
585
+ โŒ Error: No active sprint found
586
+
587
+ Start a sprint first:
588
+ /agileflow:sprint ACTION=start
589
+
590
+ Or provide sprint manually:
591
+ /agileflow:feedback SPRINT=12
592
+ ```
593
+
594
+ ---
595
+
528
596
  ## Related Commands
529
597
 
530
598
  - `/agileflow:retro` - Sprint retrospective
@@ -572,6 +572,80 @@ After generating output, present options:
572
572
 
573
573
  ---
574
574
 
575
+ ## Expected Output
576
+
577
+ ### Success - Ideation Report
578
+
579
+ ```
580
+ ๐Ÿ’ก Ideation Analysis: SCOPE=all DEPTH=deep
581
+ โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
582
+
583
+ Deploying 6 domain experts...
584
+ โœ“ Security Expert
585
+ โœ“ Performance Expert
586
+ โœ“ Code Quality Expert
587
+ โœ“ UX Expert
588
+ โœ“ Architecture Expert
589
+ โœ“ DevOps Expert
590
+
591
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
592
+
593
+ ๐Ÿ”’ SECURITY (2 ideas)
594
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
595
+ โ”‚ 1. Add rate limiting to /api/auth endpoints โ”‚
596
+ โ”‚ Impact: HIGH | Effort: LOW | Confidence: 95% โ”‚
597
+ โ”‚ Experts: Security โœ“, DevOps โœ“ โ”‚
598
+ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
599
+ โ”‚ 2. Implement CSRF protection โ”‚
600
+ โ”‚ Impact: HIGH | Effort: MEDIUM | Confidence: 90% โ”‚
601
+ โ”‚ Experts: Security โœ“, Code Quality โœ“ โ”‚
602
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
603
+
604
+ โšก PERFORMANCE (1 idea)
605
+ โ”‚ 1. Add Redis caching for user sessions โ”‚
606
+ โ”‚ Impact: MEDIUM | Effort: MEDIUM | Confidence: 85% โ”‚
607
+
608
+ ๐Ÿงน CODE QUALITY (2 ideas)
609
+ โ”‚ 1. Extract validation logic to shared module โ”‚
610
+ โ”‚ 2. Add TypeScript strict mode โ”‚
611
+
612
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
613
+ ๐Ÿ“Š Summary: 5 ideas from 6 experts
614
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
615
+
616
+ Top recommendation: Rate limiting (#1 - 95% confidence)
617
+ Create stories for these ideas? [Y/n]
618
+ ```
619
+
620
+ ### Success - Stories Created
621
+
622
+ ```
623
+ โœ“ Created US-0200: Add rate limiting to auth endpoints
624
+ โœ“ Created US-0201: Implement CSRF protection
625
+ โœ“ Created US-0202: Add Redis session caching
626
+ โœ“ Created US-0203: Extract validation module
627
+ โœ“ Created US-0204: Enable TypeScript strict mode
628
+
629
+ 5 stories added to EP-0027 (Ideation Improvements)
630
+ ```
631
+
632
+ ### Error - Scope Invalid
633
+
634
+ ```
635
+ โŒ Error: Invalid scope: network
636
+
637
+ Valid scopes:
638
+ - all: Full codebase analysis
639
+ - security: Security vulnerabilities
640
+ - perf: Performance optimizations
641
+ - code: Code quality improvements
642
+ - ux: User experience enhancements
643
+
644
+ Usage: /agileflow:ideate SCOPE=security DEPTH=deep
645
+ ```
646
+
647
+ ---
648
+
575
649
  ## Related Commands
576
650
 
577
651
  - `/agileflow:multi-expert` - Deploy multiple experts for analysis
@@ -323,6 +323,80 @@ OUTPUT
323
323
 
324
324
  ---
325
325
 
326
+ ## Expected Output
327
+
328
+ ### Success - Impact Analysis
329
+
330
+ ```
331
+ ๐Ÿ” Impact Analysis
332
+ โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
333
+
334
+ Analyzing changes in: src/api/auth.js
335
+
336
+ ๐Ÿ“ Files Affected:
337
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
338
+ โ”‚ Direct Changes โ”‚
339
+ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
340
+ โ”‚ M src/api/auth.js (modified) โ”‚
341
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
342
+
343
+ ๐Ÿ”— Dependent Files (imports auth.js):
344
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
345
+ โ”‚ src/api/users.js โ”‚
346
+ โ”‚ src/api/sessions.js โ”‚
347
+ โ”‚ src/middleware/authenticate.js โ”‚
348
+ โ”‚ src/pages/api/login.js โ”‚
349
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
350
+
351
+ ๐Ÿงช Test Coverage:
352
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
353
+ โ”‚ File โ”‚ Tests โ”‚ Coverage โ”‚ Status โ”‚
354
+ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
355
+ โ”‚ src/api/auth.js โ”‚ 15 tests โ”‚ 92% โ”‚ ๐ŸŸข โ”‚
356
+ โ”‚ src/api/users.js โ”‚ 8 tests โ”‚ 85% โ”‚ ๐ŸŸข โ”‚
357
+ โ”‚ src/middleware/authenticate โ”‚ 5 tests โ”‚ 78% โ”‚ ๐ŸŸก โ”‚
358
+ โ”‚ src/api/sessions.js โ”‚ 0 tests โ”‚ 0% โ”‚ ๐Ÿ”ด โ”‚
359
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
360
+
361
+ โš ๏ธ Risk Assessment: MEDIUM
362
+ - sessions.js has no test coverage
363
+ - authenticate.js coverage below 80%
364
+
365
+ Recommendations:
366
+ ๐Ÿ”ด CRITICAL: Add tests for src/api/sessions.js
367
+ ๐ŸŸก RECOMMENDED: Improve authenticate.js coverage
368
+
369
+ Run affected tests? [Y/n]
370
+ ```
371
+
372
+ ### Success - Clean Impact
373
+
374
+ ```
375
+ ๐Ÿ” Impact Analysis
376
+ โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
377
+
378
+ Analyzing changes in: src/utils/format.js
379
+
380
+ โœ… Low Risk Change
381
+ - 2 files depend on this module
382
+ - All have >80% test coverage
383
+ - No breaking API changes detected
384
+
385
+ Safe to proceed with PR.
386
+ ```
387
+
388
+ ### Error - File Not Found
389
+
390
+ ```
391
+ โŒ Error: File not found: src/api/authh.js
392
+
393
+ Did you mean: src/api/auth.js?
394
+
395
+ Usage: /agileflow:impact FILE=src/api/auth.js
396
+ ```
397
+
398
+ ---
399
+
326
400
  ## Related Commands
327
401
 
328
402
  - `/agileflow:tests` - Set up testing infrastructure