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
@@ -363,6 +363,80 @@ Launching experts now...
363
363
 
364
364
  ---
365
365
 
366
+ ## Expected Output
367
+
368
+ ### Success - Multi-Expert Analysis
369
+
370
+ ```
371
+ 🧠 Multi-Expert Analysis
372
+ ══════════════════════════════════════════════════════════════
373
+
374
+ Question: Should we add caching to the user API?
375
+
376
+ Deploying 3 experts...
377
+ βœ“ Performance Expert launched
378
+ βœ“ Security Expert launched
379
+ βœ“ Architecture Expert launched
380
+
381
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
382
+
383
+ ⚑ PERFORMANCE EXPERT
384
+ "Yes, caching would reduce DB load by ~60% based on
385
+ read patterns. Recommend Redis with 5-minute TTL."
386
+ Confidence: 90%
387
+
388
+ πŸ”’ SECURITY EXPERT
389
+ "Ensure cache invalidation on sensitive updates.
390
+ Use per-user cache keys to prevent data leakage."
391
+ Confidence: 85%
392
+
393
+ πŸ›οΈ ARCHITECTURE EXPERT
394
+ "Start with single-node Redis. Cluster only if
395
+ needed for HA. Consider cache-aside pattern."
396
+ Confidence: 88%
397
+
398
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
399
+ πŸ“Š Consensus: YES (88% confidence)
400
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
401
+
402
+ Synthesized Recommendation:
403
+ Add Redis caching with cache-aside pattern,
404
+ 5-minute TTL, per-user keys, and proper
405
+ invalidation on user updates.
406
+
407
+ Document this decision? /agileflow:adr
408
+ ```
409
+
410
+ ### Success - Experts Disagree
411
+
412
+ ```
413
+ 🧠 Multi-Expert Analysis
414
+ ══════════════════════════════════════════════════════════════
415
+
416
+ ⚠️ Expert Disagreement Detected
417
+
418
+ Experts split on approach:
419
+ - Performance: Recommends Redis (90%)
420
+ - Cost Expert: Recommends in-memory (85%)
421
+ - Ops Expert: Recommends managed service (80%)
422
+
423
+ Run debate mode for resolution?
424
+ /agileflow:council --mode debate
425
+ ```
426
+
427
+ ### Error - Insufficient Context
428
+
429
+ ```
430
+ ❌ Error: Question too vague for expert analysis
431
+
432
+ "Is this good?" - What is "this"?
433
+
434
+ Provide specific context:
435
+ /agileflow:multi-expert "Should we use Redis or Memcached for session storage given our 10K DAU scale?"
436
+ ```
437
+
438
+ ---
439
+
366
440
  ## Related Commands
367
441
 
368
442
  - `/agileflow:review` - AI-powered code review
@@ -457,6 +457,75 @@ Depending on ACTION:
457
457
 
458
458
  ---
459
459
 
460
+ ## Expected Output
461
+
462
+ ### Success - Dependency Dashboard
463
+
464
+ ```
465
+ πŸ“¦ Dependency Dashboard
466
+ ══════════════════════════════════════════════════════════════
467
+
468
+ Total: 127 dependencies (89 prod, 38 dev)
469
+
470
+ πŸ”΄ CRITICAL UPDATES (2)
471
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
472
+ β”‚ lodash 4.17.19 β†’ 4.17.21 (security fix CVE-2021-23337) β”‚
473
+ β”‚ axios 0.21.0 β†’ 0.21.4 (security fix CVE-2021-3749) β”‚
474
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
475
+
476
+ 🟑 MAJOR UPDATES (5)
477
+ β”‚ react 17.0.2 β†’ 18.2.0 (breaking changes) β”‚
478
+ β”‚ typescript 4.9.5 β†’ 5.3.3 (new features) β”‚
479
+ β”‚ jest 28.1.3 β†’ 29.7.0 (breaking changes) β”‚
480
+ β”‚ eslint 8.45.0 β†’ 9.0.0 (config format change) β”‚
481
+ β”‚ next 13.4.19 β†’ 14.1.0 (breaking changes) β”‚
482
+
483
+ 🟒 MINOR/PATCH (12)
484
+ β”‚ Various minor updates available... β”‚
485
+
486
+ πŸ“Š Health Score: 🟑 72/100
487
+ Recommendation: Address security updates immediately
488
+
489
+ Apply critical updates? [Y/n]
490
+ ```
491
+
492
+ ### Success - Security Audit
493
+
494
+ ```
495
+ πŸ“¦ Security Audit
496
+ ══════════════════════════════════════════════════════════════
497
+
498
+ Running npm audit...
499
+
500
+ Found 3 vulnerabilities:
501
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
502
+ β”‚ Severity β”‚ Package β”‚ Issue β”‚
503
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
504
+ β”‚ πŸ”΄ High β”‚ lodash β”‚ Prototype Pollution (CVE-2021-23337)β”‚
505
+ β”‚ πŸ”΄ High β”‚ axios β”‚ SSRF vulnerability (CVE-2021-3749) β”‚
506
+ β”‚ 🟑 Moderateβ”‚ semver β”‚ ReDoS vulnerability β”‚
507
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
508
+
509
+ Auto-fix available for 2 of 3 vulnerabilities.
510
+ Run npm audit fix? [Y/n]
511
+ ```
512
+
513
+ ### Error - No Package.json
514
+
515
+ ```
516
+ ❌ Error: No package.json found
517
+
518
+ This command requires a Node.js project.
519
+
520
+ Initialize first:
521
+ npm init
522
+
523
+ Or specify path:
524
+ /agileflow:packages PATH=./packages/api
525
+ ```
526
+
527
+ ---
528
+
460
529
  ## Related Commands
461
530
 
462
531
  - `/agileflow:diagnose` - System health diagnostics
@@ -257,6 +257,70 @@ Only the `## Contents` section of README.md:
257
257
 
258
258
  ---
259
259
 
260
+ ## Expected Output
261
+
262
+ ### Success - README Synced
263
+
264
+ ```
265
+ πŸ“ Syncing docs/02-practices/README.md
266
+ ══════════════════════════════════════════════════════════════
267
+
268
+ Found 8 files:
269
+ β€’ README.md (existing)
270
+ β€’ testing.md – Test strategy, patterns, test infrastructure
271
+ β€’ git-branching.md – Git workflow, branching strategy
272
+ β€’ ci.md – CI/CD pipeline configuration, testing gates
273
+ β€’ security.md – Security practices, input validation
274
+ β€’ releasing.md – Release procedures, versioning
275
+
276
+ Proposed Changes to ## Contents Section:
277
+ ─────────────────────────────────────────
278
+ - **testing.md** – Test strategy, patterns, test infrastructure
279
+ - **git-branching.md** – Git workflow, branching strategy
280
+ - **ci.md** – CI/CD pipeline configuration, testing gates
281
+ - **security.md** – Security practices, input validation
282
+ - **releasing.md** – Release procedures, versioning
283
+
284
+ Update README.md with these changes? (YES/NO)
285
+
286
+ βœ… README.md updated successfully!
287
+ ```
288
+
289
+ ### Success - All Folders Synced
290
+
291
+ ```
292
+ πŸ“ Syncing All Documentation Folders
293
+ ══════════════════════════════════════════════════════════════
294
+
295
+ Spawning readme-updater agents...
296
+
297
+ βœ“ docs/02-practices (8 files)
298
+ βœ“ docs/03-decisions (12 files)
299
+ βœ“ docs/04-architecture (15 files)
300
+ βœ“ docs/05-epics (6 files)
301
+ βœ“ docs/06-stories (42 files)
302
+
303
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
304
+ Summary: 5 READMEs updated
305
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
306
+ ```
307
+
308
+ ### Error - Folder Not Found
309
+
310
+ ```
311
+ ❌ Folder not found: docs/invalid-folder
312
+
313
+ Available documentation folders:
314
+ β€’ docs/02-practices
315
+ β€’ docs/03-decisions
316
+ β€’ docs/04-architecture
317
+ β€’ docs/05-epics
318
+
319
+ Usage: /agileflow:readme-sync FOLDER=docs/02-practices
320
+ ```
321
+
322
+ ---
323
+
260
324
  ## Related Commands
261
325
 
262
326
  - `/agileflow:docs` - Synchronize documentation with code