proagents 1.6.10 → 1.6.11

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.
@@ -327,11 +327,313 @@ Generate release notes:
327
327
 
328
328
  ### pa:changelog
329
329
 
330
- Update changelog:
330
+ **AI updates ALL changelog files for cross-AI continuity.**
331
331
 
332
- 1. Read changes since last entry
333
- 2. Format according to Keep a Changelog
334
- 3. Update `./CHANGELOG.md`
332
+ 1. Update `./CHANGELOG.md` (public changelog)
333
+ 2. Prepend to `.proagents/changelog/_recent.md` (last 10 changes)
334
+ 3. Update feature changelog if working on a feature
335
+ 4. Update module changelog based on files modified
336
+
337
+ ```bash
338
+ # AI workflow:
339
+ # 1. Identify what changed
340
+ # 2. Determine feature/module from context
341
+
342
+ # 3. Update root changelog
343
+ # Edit ./CHANGELOG.md
344
+
345
+ # 4. Prepend to recent changes
346
+ # Edit .proagents/changelog/_recent.md
347
+
348
+ # 5. Update feature changelog (if applicable)
349
+ # Edit .proagents/changelog/features/[feature-name].md
350
+
351
+ # 6. Update module changelog (auto-detect from paths)
352
+ # Edit .proagents/changelog/modules/[module].md
353
+ ```
354
+
355
+ ### pa:changelog-feature [name]
356
+
357
+ View/update specific feature changelog:
358
+ ```bash
359
+ cat .proagents/changelog/features/[name].md
360
+ ```
361
+
362
+ ### pa:changelog-module [name]
363
+
364
+ View/update specific module changelog:
365
+ ```bash
366
+ cat .proagents/changelog/modules/[name].md
367
+ ```
368
+
369
+ ---
370
+
371
+ ## Cross-AI Continuity Commands
372
+
373
+ ### pa:sync
374
+
375
+ **Run FIRST when starting work on any AI platform.**
376
+
377
+ AI reads context files to understand current state:
378
+
379
+ ```bash
380
+ # AI executes:
381
+ cat .proagents/worklog/_context.md
382
+ cat .proagents/changelog/_recent.md
383
+ ls -t .proagents/worklog/*.md | head -3 | xargs cat
384
+ cat .proagents/active-features/_index.json
385
+ tail -20 .proagents/activity.log
386
+ ```
387
+
388
+ Then reports:
389
+ ```
390
+ Project Context Loaded!
391
+
392
+ Active Work:
393
+ - Feature: user-auth (70% complete)
394
+ - Last: JWT validation added by Claude
395
+
396
+ Recent Changes:
397
+ 1. Added login validation (Claude, Mar 11)
398
+ 2. Fixed API endpoint (Gemini, Mar 10)
399
+
400
+ Pending:
401
+ - [ ] Complete email verification
402
+ - [ ] Add unit tests
403
+
404
+ Ready to continue. What would you like to work on?
405
+ ```
406
+
407
+ ### pa:session-start
408
+
409
+ Begin a new work session:
410
+
411
+ ```bash
412
+ # AI creates session log
413
+ DATE=$(date '+%Y-%m-%d')
414
+ # Creates: .proagents/worklog/YYYY-MM-DD-[ai]-001.md
415
+ ```
416
+
417
+ ### pa:session-end
418
+
419
+ Finalize session and update all tracking:
420
+
421
+ ```bash
422
+ # AI updates:
423
+ # 1. Session log with summary and next steps
424
+ # 2. .proagents/worklog/_context.md
425
+ # 3. .proagents/changelog/_recent.md
426
+ # 4. Feature/module changelogs
427
+ # 5. activity.log
428
+ ```
429
+
430
+ Output:
431
+ ```
432
+ Session Complete!
433
+ - Duration: 45 min
434
+ - Tasks: 3 completed
435
+ - Files: 5 modified
436
+
437
+ Updated:
438
+ ✓ worklog/_context.md
439
+ ✓ worklog/2024-03-11-claude-001.md
440
+ ✓ changelog/features/user-auth.md
441
+ ✓ changelog/_recent.md
442
+ ✓ activity.log
443
+
444
+ Next AI can continue from: [next steps listed]
445
+ ```
446
+
447
+ ### pa:resume
448
+
449
+ **Quick resume for returning AI - loads context and shows next action.**
450
+
451
+ ```bash
452
+ # AI executes:
453
+ cat .proagents/worklog/_context.md
454
+ cat .proagents/changelog/_recent.md
455
+ ls -t .proagents/worklog/*.md 2>/dev/null | head -2 | tail -1 | xargs cat
456
+ tail -10 .proagents/activity.log
457
+ ```
458
+
459
+ Output:
460
+ ```
461
+ Resume Context
462
+ ══════════════
463
+ Last Session: 2024-03-11 by Claude (opus-4)
464
+ Duration: 45 min
465
+
466
+ What Was Done:
467
+ - Added JWT validation
468
+ - Fixed login bug
469
+ - Updated API docs
470
+
471
+ Pending Tasks:
472
+ 1. [ ] Complete email verification
473
+ 2. [ ] Add unit tests for auth
474
+
475
+ Files Recently Modified:
476
+ - src/auth/login.ts (2 hours ago)
477
+ - src/auth/validate.ts (2 hours ago)
478
+
479
+ Suggested Next Action:
480
+ → Continue with "Complete email verification"
481
+
482
+ Ready to proceed?
483
+ ```
484
+
485
+ ### pa:conflict-check
486
+
487
+ **Check if files you're about to modify were changed by another AI.**
488
+
489
+ AI runs before editing any file:
490
+
491
+ ```bash
492
+ # Check recent changes to files
493
+ cat .proagents/changelog/_recent.md | grep -A2 "Files:"
494
+ cat .proagents/worklog/_context.md | grep -A5 "Recent Changes"
495
+ ```
496
+
497
+ Output if conflict detected:
498
+ ```
499
+ ⚠️ CONFLICT WARNING
500
+ ═══════════════════
501
+ File: src/auth/login.ts
502
+ Last modified: 2 hours ago by Gemini (1.5-pro)
503
+ Changes: Added email validation
504
+
505
+ Options:
506
+ 1. Review changes first (recommended)
507
+ 2. Proceed with caution
508
+ 3. Coordinate with previous AI's work
509
+
510
+ Your action?
511
+ ```
512
+
513
+ ### Validation Reminder
514
+
515
+ **AI checks if previous session logged changes properly.**
516
+
517
+ On `pa:sync`, AI also checks:
518
+
519
+ ```bash
520
+ # Compare git changes vs changelog entries
521
+ git diff --name-only HEAD~3 > /tmp/git_changes.txt
522
+ grep -o "src/[^ ]*" .proagents/changelog/_recent.md > /tmp/logged_changes.txt
523
+
524
+ # If git has changes not in changelog:
525
+ echo "⚠️ Warning: Some changes may not be logged"
526
+ ```
527
+
528
+ Output if missing logs:
529
+ ```
530
+ ⚠️ LOGGING VALIDATION
531
+ ═════════════════════
532
+ Git shows 5 files changed since last session.
533
+ Changelog shows 2 files logged.
534
+
535
+ Missing from changelog:
536
+ - src/utils/helpers.ts
537
+ - src/api/endpoints.ts
538
+ - tests/auth.test.ts
539
+
540
+ Previous AI may have forgotten to log. Consider adding entries.
541
+ ```
542
+
543
+ ---
544
+
545
+ ## Issue/Fix Linking
546
+
547
+ **Link changes to issue numbers in changelogs.**
548
+
549
+ Format for _recent.md:
550
+ ```markdown
551
+ ### YYYY-MM-DD - Bug Fix
552
+ **Issue:** #123
553
+ **Module:** auth
554
+ **AI:** Claude (opus-4)
555
+ **Files:** src/auth/login.ts (+5, -2)
556
+ **Summary:** Fixed null check in email validation
557
+ **Closes:** #123
558
+
559
+ ---
560
+ ```
561
+
562
+ AI auto-detects issue numbers from:
563
+ - User message: "fix issue #123" or "closes #456"
564
+ - Branch name: `fix/123-login-bug`
565
+ - Commit message: `Fixes #123`
566
+
567
+ ---
568
+
569
+ ## File-Level Lock Tracking
570
+
571
+ **Track which files each AI is actively editing.**
572
+
573
+ When AI starts editing a file:
574
+
575
+ ```bash
576
+ # Add to .proagents/.active-files
577
+ echo "src/auth/login.ts|Claude|opus-4|$(date -Iseconds)" >> .proagents/.active-files
578
+ ```
579
+
580
+ Before editing any file, AI checks:
581
+ ```bash
582
+ grep "src/auth/login.ts" .proagents/.active-files
583
+ ```
584
+
585
+ If file is locked by another AI:
586
+ ```
587
+ ⚠️ FILE IN USE
588
+ ══════════════
589
+ File: src/auth/login.ts
590
+ Locked by: Gemini (1.5-pro)
591
+ Since: 10 minutes ago
592
+
593
+ Options:
594
+ 1. Wait and retry
595
+ 2. Edit different file
596
+ 3. Force proceed (may cause conflicts)
597
+ ```
598
+
599
+ On session end, AI clears its file locks:
600
+ ```bash
601
+ grep -v "|Claude|" .proagents/.active-files > /tmp/active && mv /tmp/active .proagents/.active-files
602
+ ```
603
+
604
+ ---
605
+
606
+ ## Git Commit Integration
607
+
608
+ **Auto-populate changelog from git commits.**
609
+
610
+ ### pa:changelog --from-git
611
+
612
+ AI parses recent commits and updates changelog:
613
+
614
+ ```bash
615
+ # Get recent commits
616
+ git log --oneline --since="24 hours ago" --format="%h|%s|%an"
617
+ ```
618
+
619
+ For each commit, AI:
620
+ 1. Extracts files changed: `git show --name-only HASH`
621
+ 2. Detects module from file paths
622
+ 3. Extracts issue numbers from message
623
+ 4. Prepends to `_recent.md`
624
+
625
+ Example auto-generated entry:
626
+ ```markdown
627
+ ### 2024-03-11 - Commit abc123
628
+ **Module:** auth (auto-detected)
629
+ **Author:** Developer
630
+ **Files:** src/auth/login.ts, src/auth/validate.ts
631
+ **Summary:** Add JWT token validation
632
+ **Commit:** abc123
633
+ **Issues:** #123, #124
634
+
635
+ ---
636
+ ```
335
637
 
336
638
  ---
337
639
 
@@ -840,6 +840,110 @@ MAINTENANCE:
840
840
 
841
841
  ---
842
842
 
843
+ ## Enhanced Changelog System (Cross-AI Continuity)
844
+
845
+ **AI must update multiple changelog files for cross-AI continuity.**
846
+
847
+ ### pa:changelog Workflow:
848
+
849
+ ```bash
850
+ # 1. Update root CHANGELOG.md
851
+ # 2. Update .proagents/changelog/_recent.md (prepend)
852
+ # 3. Update feature changelog if applicable
853
+ # 4. Update module changelog based on files changed
854
+ ```
855
+
856
+ ### Changelog Locations:
857
+
858
+ | File | Purpose | Updated When |
859
+ |------|---------|--------------|
860
+ | `./CHANGELOG.md` | Public changelog | Major changes |
861
+ | `.proagents/changelog/_recent.md` | Last 10 changes | Every change |
862
+ | `.proagents/changelog/features/[name].md` | Feature history | Working on feature |
863
+ | `.proagents/changelog/modules/[name].md` | Module history | Modifying module |
864
+
865
+ ### Feature Changelog Format:
866
+
867
+ Create `.proagents/changelog/features/[feature-name].md`:
868
+
869
+ ```markdown
870
+ # Feature: [Feature Name]
871
+
872
+ Created: YYYY-MM-DD
873
+ Status: active | completed | paused
874
+ Branch: feature/[name]
875
+
876
+ ---
877
+
878
+ ## Changelog
879
+
880
+ ### YYYY-MM-DD - [AI Platform]
881
+ **Phase:** implementation | testing | review
882
+ **Changes:**
883
+ - Change 1
884
+ - Change 2
885
+ **Files:**
886
+ - src/path/file.ts (+50, -10)
887
+ - src/path/other.ts (new)
888
+ **Decisions:**
889
+ - Decision and reason
890
+ **Next:** What comes next
891
+
892
+ ---
893
+ ```
894
+
895
+ ### Module Changelog Format:
896
+
897
+ Create `.proagents/changelog/modules/[module].md`:
898
+
899
+ ```markdown
900
+ # Module: [Module Name]
901
+
902
+ Path: src/[module]/
903
+ Type: api | service | component | utility
904
+
905
+ ---
906
+
907
+ ## Changelog
908
+
909
+ ### YYYY-MM-DD - [AI Platform]
910
+ **Context:** [Feature or Fix name]
911
+ **Changes:**
912
+ - Change description
913
+ **Files:**
914
+ - file.ts (+lines, -lines)
915
+
916
+ ---
917
+ ```
918
+
919
+ ### Module Auto-Detection:
920
+
921
+ AI detects module from file path:
922
+ - `src/api/*`, `routes/*` → `modules/api.md`
923
+ - `src/auth/*` → `modules/auth.md`
924
+ - `src/components/*` → `modules/ui.md`
925
+ - `src/services/*` → `modules/services.md`
926
+ - `src/utils/*`, `lib/*` → `modules/utils.md`
927
+ - `tests/*` → `modules/tests.md`
928
+
929
+ ### _recent.md Format:
930
+
931
+ Prepend to `.proagents/changelog/_recent.md`:
932
+
933
+ ```markdown
934
+ ### YYYY-MM-DD - [Change Type]
935
+ **Feature/Module:** name
936
+ **AI:** Platform (model)
937
+ **Files:** file1.ts, file2.ts
938
+ **Summary:** Brief description of change
939
+
940
+ ---
941
+ ```
942
+
943
+ Keep only last 10 entries (remove oldest when adding new).
944
+
945
+ ---
946
+
843
947
  ## Commands Reference
844
948
 
845
949
  | Command | Description | Output Location |