proagents 1.6.10 → 1.6.12

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.
@@ -0,0 +1,4 @@
1
+ # Active File Locks
2
+ # Format: filepath|AI_platform|timestamp
3
+ # AI adds entry when editing, removes on session end
4
+
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -31,12 +31,32 @@ This project uses ProAgents - an AI-agnostic development workflow framework.
31
31
 
32
32
  **Multiple AI tools may work on this project simultaneously. They do NOT share context.**
33
33
 
34
+ ### AUTOMATIC Context Loading (No Manual pa:sync Needed)
35
+
36
+ **On FIRST pa: command of session, AI AUTOMATICALLY does:**
37
+
38
+ ```bash
39
+ # 1. Load context (replaces manual pa:sync)
40
+ cat .proagents/worklog/_context.md 2>/dev/null
41
+ cat .proagents/changelog/_recent.md 2>/dev/null | head -30
42
+ tail -10 .proagents/activity.log 2>/dev/null
43
+
44
+ # 2. Check for conflicts
45
+ cat .proagents/.active-files 2>/dev/null
46
+
47
+ # 3. Validate previous logging
48
+ git diff --name-only HEAD~3 2>/dev/null | wc -l
49
+ ```
50
+
51
+ **User does NOT need to type pa:sync - it happens automatically.**
52
+
34
53
  ### Before ANY `pa:` command:
35
54
 
36
- 1. **Read project context** - `./.proagents/context.md`
55
+ 1. **Auto-load context** - Read `worklog/_context.md` and `changelog/_recent.md`
37
56
  2. **Check activity log** - `./.proagents/activity.log`
38
57
  3. **Check feedback** - `./.proagents/feedback.md` (learn from past corrections!)
39
58
  4. **Check watchlist** - `./.proagents/watchlist.yaml` (files requiring confirmation)
59
+ 5. **Check file locks** - `./.proagents/.active-files`
40
60
 
41
61
  ### After ANY `pa:` command:
42
62
 
@@ -79,6 +99,216 @@ Check lock before starting. Delete when done.
79
99
 
80
100
  ---
81
101
 
102
+ ## CRITICAL: Auto-Log Every Code Change
103
+
104
+ **AI MUST automatically log EVERY code change. This is NOT optional.**
105
+
106
+ ### After EVERY file edit/create/delete:
107
+
108
+ AI immediately updates these files (no user prompt needed):
109
+
110
+ ```
111
+ 1. .proagents/changelog/_recent.md ← Prepend change summary
112
+ 2. .proagents/worklog/_context.md ← Update current state
113
+ 3. .proagents/changelog/features/X.md ← If working on feature
114
+ 4. .proagents/changelog/modules/X.md ← Based on file path
115
+ ```
116
+
117
+ ### Auto-Log Format for _recent.md:
118
+
119
+ After editing `src/auth/login.ts`, AI prepends to `_recent.md`:
120
+
121
+ ```markdown
122
+ ### [DATE] - Code Change
123
+ **Module:** auth
124
+ **AI:** [Platform] ([model])
125
+ **Files:** src/auth/login.ts (+15, -3)
126
+ **Summary:** Added email validation to login function
127
+
128
+ ---
129
+ ```
130
+
131
+ ### Module Detection (Auto):
132
+
133
+ | File Path Changed | Update This Changelog |
134
+ |-------------------|----------------------|
135
+ | `src/api/*`, `routes/*` | `changelog/modules/api.md` |
136
+ | `src/auth/*` | `changelog/modules/auth.md` |
137
+ | `src/components/*` | `changelog/modules/ui.md` |
138
+ | `src/services/*` | `changelog/modules/services.md` |
139
+ | `src/utils/*`, `lib/*` | `changelog/modules/utils.md` |
140
+ | `tests/*`, `*.test.*` | `changelog/modules/tests.md` |
141
+ | `src/database/*`, `models/*` | `changelog/modules/database.md` |
142
+
143
+ ### Example - AI Edits a File:
144
+
145
+ ```
146
+ User: Fix the login validation bug
147
+
148
+ AI: [Reads file, makes edit to src/auth/login.ts]
149
+
150
+ AI: [AUTOMATICALLY does these updates - no user prompt:]
151
+
152
+ 1. Prepends to .proagents/changelog/_recent.md:
153
+ ### 2024-03-11 - Bug Fix
154
+ **Module:** auth
155
+ **AI:** Claude (opus-4)
156
+ **Files:** src/auth/login.ts (+5, -2)
157
+ **Summary:** Fixed null check in email validation
158
+
159
+ 2. Updates .proagents/changelog/modules/auth.md (creates if not exists)
160
+
161
+ 3. Updates .proagents/worklog/_context.md with latest change
162
+
163
+ AI: "Fixed the login validation bug in src/auth/login.ts"
164
+ ```
165
+
166
+ ### Log Rollbacks & Corrections Too:
167
+
168
+ When removing or correcting previous changes, also log:
169
+
170
+ ```markdown
171
+ ### YYYY-MM-DD - Rollback/Correction
172
+ **Module:** auth
173
+ **AI:** Claude (opus-4)
174
+ **Files:** src/auth/login.ts (-20 lines removed)
175
+ **Summary:** Reverted email validation - caused login failures
176
+ **Reason:** Previous change broke existing functionality
177
+
178
+ ---
179
+ ```
180
+
181
+ ### WRONG vs RIGHT:
182
+
183
+ | WRONG | RIGHT |
184
+ |-------|-------|
185
+ | Edit file → Tell user "done" | Edit file → Update changelogs → Tell user "done" |
186
+ | Wait for pa:changelog command | Auto-update after every change |
187
+ | Only log at session end | Log immediately after each change |
188
+ | Undo changes silently | Log rollback with reason |
189
+
190
+ ---
191
+
192
+ ## Cross-AI Session Tracking (AUTOMATIC)
193
+
194
+ **All session tracking is AUTOMATIC. User does NOT need to run these commands manually.**
195
+
196
+ ### Automatic Behavior:
197
+
198
+ | What | When | User Action Needed |
199
+ |------|------|-------------------|
200
+ | Load context | First pa: command | **None** - Auto |
201
+ | Log changes | After each edit | **None** - Auto |
202
+ | Update _context.md | After each edit | **None** - Auto |
203
+ | Check conflicts | Before editing files | **None** - Auto |
204
+
205
+ ### On First pa: Command (Auto-Sync):
206
+
207
+ AI automatically reads context (no manual pa:sync needed):
208
+ ```bash
209
+ cat .proagents/worklog/_context.md # Current state
210
+ cat .proagents/changelog/_recent.md # Recent changes
211
+ tail -10 .proagents/activity.log # Recent commands
212
+ cat .proagents/.active-files 2>/dev/null # Check file locks
213
+ ```
214
+
215
+ ### During Work (Auto-Log):
216
+
217
+ After ANY code modification, AI must update:
218
+
219
+ 1. **Session Log** (`worklog/YYYY-MM-DD-[ai]-[num].md`)
220
+ - Tasks completed
221
+ - Files changed
222
+ - Decisions made
223
+
224
+ 2. **Feature Changelog** (`changelog/features/[name].md`)
225
+ - If working on a feature
226
+
227
+ 3. **Module Changelog** (`changelog/modules/[name].md`)
228
+ - Based on file paths modified
229
+
230
+ ### On Session End (pa:session-end):
231
+
232
+ AI updates:
233
+ ```bash
234
+ # 1. Update context summary
235
+ # Edit .proagents/worklog/_context.md with current state
236
+
237
+ # 2. Update recent changes
238
+ # Prepend to .proagents/changelog/_recent.md
239
+
240
+ # 3. Finalize session log with "Next Steps"
241
+
242
+ # 4. Log to activity.log
243
+ echo "[$(date '+%Y-%m-%d %H:%M')] [AI:model] [pa:session-end] Session complete" >> .proagents/activity.log
244
+ ```
245
+
246
+ ### Module Auto-Detection:
247
+
248
+ | File Path | Module Changelog |
249
+ |-----------|------------------|
250
+ | `src/api/*` | `modules/api.md` |
251
+ | `src/auth/*` | `modules/auth.md` |
252
+ | `src/components/*` | `modules/ui.md` |
253
+ | `src/services/*` | `modules/services.md` |
254
+ | `tests/*` | `modules/tests.md` |
255
+
256
+ ### Conflict Check (Before Editing):
257
+
258
+ Before modifying any file, AI checks if another AI recently changed it:
259
+
260
+ ```bash
261
+ grep "src/auth/login.ts" .proagents/changelog/_recent.md
262
+ ```
263
+
264
+ If found, warn user:
265
+ ```
266
+ ⚠️ File src/auth/login.ts was modified by Gemini 2 hours ago.
267
+ Review changes before editing? [Y/n]
268
+ ```
269
+
270
+ ### File-Level Lock:
271
+
272
+ When editing files, track them:
273
+
274
+ ```bash
275
+ # On edit start:
276
+ echo "src/auth/login.ts|Claude|$(date -Iseconds)" >> .proagents/.active-files
277
+
278
+ # On session end - clear your locks:
279
+ grep -v "|Claude|" .proagents/.active-files > /tmp/af && mv /tmp/af .proagents/.active-files
280
+ ```
281
+
282
+ ### Validation on pa:sync:
283
+
284
+ AI checks if previous session logged properly:
285
+
286
+ ```bash
287
+ # Compare git changes vs logged changes
288
+ git diff --name-only HEAD~3 2>/dev/null | wc -l # Files changed
289
+ grep -c "Files:" .proagents/changelog/_recent.md # Files logged
290
+ ```
291
+
292
+ If mismatch, warn:
293
+ ```
294
+ ⚠️ Previous session may have unlogged changes. Check git log.
295
+ ```
296
+
297
+ ### Issue Linking:
298
+
299
+ Auto-detect issue numbers from user input and include in changelog:
300
+
301
+ ```markdown
302
+ ### 2024-03-11 - Bug Fix
303
+ **Issue:** #123
304
+ **Module:** auth
305
+ **Files:** src/auth/login.ts
306
+ **Summary:** Fixed validation bug
307
+ **Closes:** #123
308
+ ```
309
+
310
+ ---
311
+
82
312
  ## Command Quick Reference
83
313
 
84
314
  ### Aliases
@@ -177,6 +407,21 @@ Check lock before starting. Delete when done.
177
407
  | `pa:handoff` | Create handoff notes |
178
408
  | `pa:feedback "text"` | Log feedback for AI learning |
179
409
  | `pa:decision "title"` | Log architectural decision |
410
+
411
+ ### Cross-AI Continuity (CRITICAL)
412
+ | Command | Action |
413
+ |---------|--------|
414
+ | `pa:sync` | **Run FIRST** - Load project context |
415
+ | `pa:resume` | Quick resume - shows last session + next action |
416
+ | `pa:session-start` | Begin new work session |
417
+ | `pa:session-end` | Finalize session, update logs |
418
+ | `pa:conflict-check` | Check if files modified by other AI |
419
+ | `pa:history` | View command history |
420
+ | `pa:progress` | View feature progress |
421
+ | `pa:changelog` | Update all changelogs |
422
+ | `pa:changelog --from-git` | Auto-populate from git commits |
423
+ | `pa:changelog-feature X` | View feature changelog |
424
+ | `pa:changelog-module X` | View module changelog |
180
425
  | `pa:error "desc"` | Log error and solution |
181
426
 
182
427
  ### Configuration
@@ -219,6 +464,10 @@ When user types a `pa:` command:
219
464
  | `pa:fix` | `./workflow-modes/entry-modes.md` |
220
465
  | `pa:debug` | `./prompts/10-debug-logs.md` |
221
466
  | `pa:logs` | `./prompts/10-debug-logs.md` |
467
+ | `pa:sync` | `./prompts/11-session-tracking.md` |
468
+ | `pa:session-start` | `./prompts/11-session-tracking.md` |
469
+ | `pa:session-end` | `./prompts/11-session-tracking.md` |
470
+ | `pa:changelog` | `./prompts/11-session-tracking.md` + `./prompts/07-documentation.md` |
222
471
 
223
472
  ---
224
473
 
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -5,7 +5,28 @@ Execute these commands when user types them (prefix: `pa:`):
5
5
  ## Quick Aliases
6
6
  `pa:f` → feature | `pa:s` → status | `pa:h` → help | `pa:d` → doc | `pa:t` → test | `pa:q` → qa | `pa:a` → analyze | `pa:r` → requirements | `pa:p` → plan | `pa:i` → implement
7
7
 
8
- > **Multi-AI Note:** Multiple AIs may work on this project. Always read `./.proagents/activity.log` before executing commands, and log your actions after completing them.
8
+ > **Multi-AI Note:** Multiple AIs may work on this project. Context loading and logging is AUTOMATIC.
9
+
10
+ ## AUTOMATIC Session Handling
11
+
12
+ **On FIRST pa: command, AI automatically:**
13
+ 1. Reads `.proagents/worklog/_context.md` (context)
14
+ 2. Reads `.proagents/changelog/_recent.md` (recent changes)
15
+ 3. Checks `.proagents/.active-files` (file locks)
16
+
17
+ **User does NOT need to run pa:sync manually.**
18
+
19
+ ## CRITICAL: Auto-Log Every Code Change
20
+
21
+ **After EVERY file edit/create/delete, AI MUST immediately update:**
22
+
23
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
24
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
25
+ 3. `.proagents/worklog/_context.md` - Update current state
26
+
27
+ **Module detection:** `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui, `src/services/*`→services
28
+
29
+ **Do NOT wait for user prompt. Log automatically after every change.**
9
30
 
10
31
  ## Commands
11
32
 
@@ -46,7 +67,7 @@ Execute these commands when user types them (prefix: `pa:`):
46
67
  | Command | What to Do |
47
68
  |---------|------------|
48
69
  | `pa:next` | Show next step in current workflow |
49
- | `pa:resume` | Resume paused feature from last checkpoint |
70
+ | `pa:resume` | Quick resume - load last session + show next action |
50
71
  | `pa:skip` | Skip current phase, move to next |
51
72
  | `pa:back` | Go back to previous phase |
52
73
  | `pa:progress` | Show visual progress bar |
@@ -59,7 +80,9 @@ Execute these commands when user types them (prefix: `pa:`):
59
80
  | `pa:diff` | Show changes since last session |
60
81
  | `pa:history` | Show command history with results |
61
82
  | `pa:checkpoint` | Create snapshot/restore point |
62
- | `pa:undo` | Undo last AI action (git revert) |
83
+ | `pa:undo` | Undo last AI action (git revert)
84
+ | `pa:conflict-check` | Check if files modified by other AI |
85
+ | `pa:changelog --from-git` | Auto-populate changelog from git commits | |
63
86
 
64
87
  ## Sprint & Estimation
65
88
 
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -0,0 +1,24 @@
1
+ # Recent Changes
2
+
3
+ > Last 10 changes across all features/modules.
4
+ > Auto-updated by AI after each code change.
5
+
6
+ ---
7
+
8
+ ## Latest Changes
9
+
10
+ No changes recorded yet.
11
+
12
+ ---
13
+
14
+ <!--
15
+ Format for entries (AI adds above this line):
16
+
17
+ ### YYYY-MM-DD - [Change Type]
18
+ **Module:** [auto-detected from file path]
19
+ **AI:** [Platform] ([model])
20
+ **Files:** path/to/file.ts (+lines, -lines)
21
+ **Summary:** Brief description of change
22
+
23
+ ---
24
+ -->
@@ -0,0 +1,68 @@
1
+ # Feature Changelogs
2
+
3
+ One file per feature tracking all changes.
4
+
5
+ ---
6
+
7
+ ## Structure
8
+
9
+ ```
10
+ features/
11
+ ├── README.md # This file
12
+ ├── user-auth.md # All changes to user-auth feature
13
+ ├── payment-flow.md # All changes to payment feature
14
+ └── dashboard.md # All changes to dashboard feature
15
+ ```
16
+
17
+ ---
18
+
19
+ ## File Format
20
+
21
+ Each feature changelog follows this format:
22
+
23
+ ```markdown
24
+ # Feature: [Feature Name]
25
+
26
+ Created: YYYY-MM-DD
27
+ Status: [active | completed | paused]
28
+ Branch: feature/feature-name
29
+
30
+ ---
31
+
32
+ ## Changelog
33
+
34
+ ### YYYY-MM-DD - [AI Platform]
35
+ **Phase:** implementation
36
+ **Changes:**
37
+ - Added login validation
38
+ - Created LoginForm component
39
+ **Files:**
40
+ - src/auth/login.ts (+50, -10)
41
+ - src/components/LoginForm.tsx (new)
42
+ **Decisions:**
43
+ - Used Formik for form handling
44
+ **Next:** Add password reset flow
45
+
46
+ ---
47
+
48
+ ### YYYY-MM-DD - [AI Platform]
49
+ ...
50
+ ```
51
+
52
+ ---
53
+
54
+ ## Auto-Creation
55
+
56
+ When AI runs `pa:feature "user-auth"`:
57
+ 1. Creates `features/user-auth.md`
58
+ 2. Initializes with template
59
+ 3. Updates on every change
60
+
61
+ ---
62
+
63
+ ## Commands
64
+
65
+ | Command | Action |
66
+ |---------|--------|
67
+ | `pa:changelog` | Update root + feature changelog |
68
+ | `pa:changelog-feature X` | View feature X changelog |
@@ -0,0 +1,62 @@
1
+ # Module Changelogs
2
+
3
+ Track changes by code module/component.
4
+
5
+ ---
6
+
7
+ ## Structure
8
+
9
+ ```
10
+ modules/
11
+ ├── README.md # This file
12
+ ├── api.md # All API changes
13
+ ├── auth.md # All auth module changes
14
+ ├── ui.md # All UI component changes
15
+ └── database.md # All database changes
16
+ ```
17
+
18
+ ---
19
+
20
+ ## File Format
21
+
22
+ ```markdown
23
+ # Module: [Module Name]
24
+
25
+ Path: src/[module]/
26
+ Type: [api | service | component | utility]
27
+
28
+ ---
29
+
30
+ ## Changelog
31
+
32
+ ### YYYY-MM-DD - [AI Platform]
33
+ **Context:** [Feature or Fix name]
34
+ **Changes:**
35
+ - Added rate limiting middleware
36
+ - Updated error responses
37
+ **Files:**
38
+ - src/api/middleware/rateLimit.ts (new)
39
+ - src/api/errors.ts (+20, -5)
40
+
41
+ ---
42
+ ```
43
+
44
+ ---
45
+
46
+ ## Auto-Detection
47
+
48
+ AI automatically detects module from file path:
49
+ - `src/api/*` → modules/api.md
50
+ - `src/auth/*` → modules/auth.md
51
+ - `src/components/*` → modules/ui.md
52
+ - `src/services/*` → modules/services.md
53
+ - `src/utils/*` → modules/utils.md
54
+
55
+ ---
56
+
57
+ ## Commands
58
+
59
+ | Command | Action |
60
+ |---------|--------|
61
+ | `pa:changelog-module X` | View module X changelog |
62
+ | `pa:modules` | List all modules with change counts |