proagents 1.6.13 → 1.6.16

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,60 @@
1
+ {
2
+ "_template_info": {
3
+ "description": "Template reference for common-patterns.json schema",
4
+ "note": "DO NOT modify this file - it gets updated with ProAgents upgrades",
5
+ "usage": "AI reads this to understand expected schema for common-patterns.json"
6
+ },
7
+
8
+ "$schema": "../schemas/patterns-schema.json",
9
+ "version": "1.0.0",
10
+ "updated_at": "2024-01-15T10:30:00Z",
11
+
12
+ "patterns": {
13
+ "component_patterns": [
14
+ {
15
+ "id": "pattern-id",
16
+ "name": "Pattern Name",
17
+ "frequency": 95,
18
+ "confidence": 0.98,
19
+ "template": "code template with {{placeholders}}"
20
+ }
21
+ ],
22
+ "api_patterns": [],
23
+ "error_handling": [],
24
+ "testing_patterns": []
25
+ },
26
+
27
+ "anti_patterns": [
28
+ {
29
+ "id": "anti-pattern-id",
30
+ "name": "Anti-pattern Name",
31
+ "detected_count": 0,
32
+ "suggestion": "How to fix",
33
+ "auto_suggest": true
34
+ }
35
+ ],
36
+
37
+ "learned_from": {
38
+ "codebase_analysis": 0,
39
+ "user_corrections": 0,
40
+ "explicit_teaching": 0
41
+ },
42
+
43
+ "_schema_notes": {
44
+ "patterns": {
45
+ "component_patterns": "React/Vue/etc component patterns",
46
+ "api_patterns": "API handler patterns",
47
+ "error_handling": "Error handling patterns",
48
+ "testing_patterns": "Test structure patterns"
49
+ },
50
+ "pattern_fields": {
51
+ "id": "Unique identifier",
52
+ "name": "Human-readable name",
53
+ "frequency": "How often used (0-100)",
54
+ "confidence": "AI confidence (0-1)",
55
+ "template": "Code template with {{placeholders}}"
56
+ },
57
+ "anti_patterns": "Patterns to avoid",
58
+ "learned_from": "Source of learning data"
59
+ }
60
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "_template_info": {
3
+ "description": "Template reference for user-preferences.json schema",
4
+ "note": "DO NOT modify this file - it gets updated with ProAgents upgrades",
5
+ "usage": "AI reads this to understand expected schema for user-preferences.json"
6
+ },
7
+
8
+ "$schema": "../schemas/user-preferences-schema.json",
9
+ "version": "1.0.0",
10
+ "updated_at": "2024-01-15T10:30:00Z",
11
+
12
+ "checkpoint_preferences": {
13
+ "usually_skips": ["after_requirements", "after_documentation"],
14
+ "always_reviews": ["after_design", "before_deployment"],
15
+ "auto_approve_conditions": [
16
+ {
17
+ "checkpoint": "after_analysis",
18
+ "condition": "files_changed < 5",
19
+ "confidence": 0.85
20
+ }
21
+ ]
22
+ },
23
+
24
+ "workflow_preferences": {
25
+ "preferred_mode": "full",
26
+ "skip_phases_for_bug_fixes": ["design", "documentation"],
27
+ "detail_level": "high",
28
+ "verbosity": "moderate"
29
+ },
30
+
31
+ "code_preferences": {
32
+ "naming_style": {
33
+ "components": "PascalCase",
34
+ "functions": "camelCase",
35
+ "constants": "UPPER_SNAKE_CASE",
36
+ "files": "kebab-case"
37
+ },
38
+ "formatting": {
39
+ "indent": 2,
40
+ "quotes": "single",
41
+ "semicolons": true,
42
+ "trailing_commas": "es5"
43
+ },
44
+ "patterns": {
45
+ "state_management": "zustand",
46
+ "data_fetching": "react-query",
47
+ "styling": "tailwind"
48
+ }
49
+ },
50
+
51
+ "review_preferences": {
52
+ "focus_areas": ["security", "performance", "accessibility"],
53
+ "thoroughness": "high",
54
+ "comment_style": "inline"
55
+ },
56
+
57
+ "notification_preferences": {
58
+ "on_checkpoint": true,
59
+ "on_completion": true,
60
+ "on_error": true,
61
+ "channels": ["terminal"]
62
+ },
63
+
64
+ "learning_consent": {
65
+ "track_corrections": true,
66
+ "track_patterns": true,
67
+ "share_anonymized": false
68
+ },
69
+
70
+ "_schema_notes": {
71
+ "checkpoint_preferences": "User's checkpoint review preferences",
72
+ "workflow_preferences": "How user prefers to work",
73
+ "code_preferences": "Coding style and patterns",
74
+ "review_preferences": "Code review settings",
75
+ "notification_preferences": "When to notify",
76
+ "learning_consent": "Privacy settings for learning"
77
+ }
78
+ }
@@ -0,0 +1,55 @@
1
+ # ProAgents Commands for Codex
2
+
3
+ This project uses ProAgents - an AI-agnostic development workflow framework.
4
+
5
+ ## MANDATORY: Every pa: Command Flow
6
+
7
+ ### BEFORE Any pa: Command (Auto-Sync)
8
+
9
+ **Read these files FIRST before doing anything:**
10
+
11
+ ```bash
12
+ cat .proagents/worklog/_context.md # Current state
13
+ cat .proagents/changelog/_recent.md # Recent changes
14
+ tail -10 .proagents/activity.log # Recent activity
15
+ ```
16
+
17
+ **This applies to EVERY command:** `pa:fix`, `pa:feature`, `pa:test`, `pa:doc`, etc.
18
+
19
+ ### AFTER Any pa: Command (Auto-Log)
20
+
21
+ **After EVERY file edit, IMMEDIATELY update these files:**
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
28
+
29
+ ## Essential Commands
30
+
31
+ | Command | Action |
32
+ |---------|--------|
33
+ | `pa:feature "name"` | Start new feature workflow |
34
+ | `pa:fix "bug"` | Quick bug fix mode |
35
+ | `pa:doc` | Documentation options |
36
+ | `pa:qa` | Quality assurance checks |
37
+ | `pa:test` | Run test workflow |
38
+ | `pa:deploy` | Deployment preparation |
39
+ | `pa:status` | Show current progress |
40
+
41
+ ## Full Command Reference
42
+
43
+ For complete command list, see: `./.proagents/AI_INSTRUCTIONS.md`
44
+
45
+ ## On `pa:` Command
46
+
47
+ 1. Read the corresponding file from `./.proagents/prompts/` or `./.proagents/workflow-modes/`
48
+ 2. Follow the workflow instructions
49
+ 3. Use project config from `./.proagents/proagents.config.yaml`
50
+
51
+ ## Key Files
52
+
53
+ - `./.proagents/AI_INSTRUCTIONS.md` - Complete command reference
54
+ - `./.proagents/WORKFLOW.md` - Full 10-phase workflow
55
+ - `./.proagents/prompts/` - Phase-specific prompts
@@ -41,6 +41,8 @@ tail -10 .proagents/activity.log 2>/dev/null
41
41
  5. AI logs to activity.log ← LOG ACTIVITY
42
42
  ```
43
43
 
44
+ **Note:** When updating `_recent.md` or `_context.md`, first read the corresponding `*.template.md` file to use the latest format. See "Using Template Reference Files" section below.
45
+
44
46
  ---
45
47
 
46
48
  ## CRITICAL PRINCIPLE: ALWAYS DO, NEVER JUST TELL
@@ -155,6 +157,37 @@ AI immediately updates these files (no user prompt needed):
155
157
  4. .proagents/changelog/modules/X.md ← Based on file path
156
158
  ```
157
159
 
160
+ ### Using Template Reference Files
161
+
162
+ **IMPORTANT:** Template files (`*.template.md`, `*.template.json`) provide the latest format for user data files.
163
+
164
+ | User Data File (EDIT THIS) | Template Reference (READ ONLY) |
165
+ |----------------------------|-------------------------------|
166
+ | `changelog/_recent.md` | `changelog/_recent.template.md` |
167
+ | `worklog/_context.md` | `worklog/_context.template.md` |
168
+ | `worklog/ai-stats.json` | `worklog/ai-stats.template.json` |
169
+ | `active-features/_index.json` | `active-features/_index.template.json` |
170
+ | `.learning/global/user-preferences.json` | `.learning/global/user-preferences.template.json` |
171
+ | `.learning/global/common-patterns.json` | `.learning/global/common-patterns.template.json` |
172
+
173
+ **How to use:**
174
+ 1. **Read the template FIRST** before creating/updating user data files
175
+ 2. **Apply the template format** to user data (structure, fields, sections)
176
+ 3. **NEVER modify template files** - they are READ ONLY (updated by framework)
177
+
178
+ **Why templates exist:**
179
+ - Templates get updated when ProAgents upgrades (new fields, better structure)
180
+ - User data files are preserved during upgrades (your content stays safe)
181
+ - AI always has access to the latest format by reading templates
182
+
183
+ **Common mistake to avoid:**
184
+ ```
185
+ WRONG: Edit _recent.template.md directly
186
+ RIGHT: Read _recent.template.md, then edit _recent.md using that format
187
+ ```
188
+
189
+ ---
190
+
158
191
  ### Auto-Log Format for _recent.md:
159
192
 
160
193
  After editing `src/auth/login.ts`, AI prepends to `_recent.md`:
@@ -0,0 +1,75 @@
1
+ {
2
+ "_template_info": {
3
+ "description": "Template reference for _index.json schema",
4
+ "note": "DO NOT modify this file - it gets updated with ProAgents upgrades",
5
+ "usage": "AI reads this to understand expected schema for _index.json"
6
+ },
7
+
8
+ "$schema": "./schemas/index-schema.json",
9
+ "version": "1.0.0",
10
+ "last_updated": "2024-03-13T10:30:00Z",
11
+
12
+ "active_features": [
13
+ {
14
+ "id": "feature-user-auth",
15
+ "name": "User Authentication",
16
+ "started_at": "2024-03-10T09:00:00Z",
17
+ "started_by": "claude",
18
+ "priority": "high",
19
+ "progress": 45,
20
+ "phase": "implementation"
21
+ }
22
+ ],
23
+
24
+ "paused_features": [
25
+ {
26
+ "id": "feature-dark-mode",
27
+ "name": "Dark Mode",
28
+ "paused_at": "2024-03-12T14:00:00Z",
29
+ "reason": "Waiting for design review"
30
+ }
31
+ ],
32
+
33
+ "completed_features": [
34
+ {
35
+ "id": "feature-login",
36
+ "name": "Login Page",
37
+ "completed_at": "2024-03-08T16:30:00Z",
38
+ "duration_days": 3
39
+ }
40
+ ],
41
+
42
+ "conflicts": {
43
+ "active": [],
44
+ "resolved": [
45
+ {
46
+ "files": ["src/auth.ts"],
47
+ "features": ["feature-user-auth", "feature-login"],
48
+ "resolved_at": "2024-03-08T12:00:00Z"
49
+ }
50
+ ]
51
+ },
52
+
53
+ "statistics": {
54
+ "total_active": 1,
55
+ "total_paused": 1,
56
+ "total_completed": 1,
57
+ "average_completion_days": 3,
58
+ "conflict_rate": 0.1
59
+ },
60
+
61
+ "_schema": {
62
+ "active_features": {
63
+ "type": "array",
64
+ "items": {
65
+ "id": "string - Unique feature ID",
66
+ "name": "string - Human-readable name",
67
+ "started_at": "string - ISO timestamp",
68
+ "started_by": "string - AI platform that started",
69
+ "priority": "string - low/medium/high",
70
+ "progress": "number - 0-100 percentage",
71
+ "phase": "string - planning/design/implementation/testing/review"
72
+ }
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,51 @@
1
+ # Recent Changes - Template Reference
2
+
3
+ > This is the FORMAT REFERENCE for `_recent.md`.
4
+ > AI should read this template when creating/updating `_recent.md`.
5
+ > DO NOT modify this file - it gets updated with ProAgents upgrades.
6
+
7
+ ---
8
+
9
+ ## Expected Structure
10
+
11
+ ```markdown
12
+ # Recent Changes
13
+
14
+ > Last 10 changes across all features/modules.
15
+ > Auto-updated by AI after each code change.
16
+
17
+ ---
18
+
19
+ ## Latest Changes
20
+
21
+ ### YYYY-MM-DD - [Change Type]
22
+ **Module:** [auto-detected from file path]
23
+ **AI:** [Platform] ([model])
24
+ **Files:** path/to/file.ts (+lines, -lines)
25
+ **Summary:** Brief description of change
26
+
27
+ ---
28
+ ```
29
+
30
+ ## Entry Format
31
+
32
+ Each entry should include:
33
+
34
+ | Field | Description | Example |
35
+ |-------|-------------|---------|
36
+ | Date | ISO format | `2024-03-13` |
37
+ | Change Type | bug-fix, feature, refactor, docs | `bug-fix` |
38
+ | Module | Auto-detected from path | `auth`, `api`, `ui` |
39
+ | AI | Platform and model | `Claude (opus-4)` |
40
+ | Files | Changed files with line counts | `src/auth.ts (+15, -3)` |
41
+ | Summary | Brief description | `Fixed login timeout issue` |
42
+
43
+ ## Auto-Update Rules
44
+
45
+ 1. **Prepend** new entries (newest first)
46
+ 2. **Keep only last 10** entries
47
+ 3. **Auto-detect module** from file path:
48
+ - `src/api/*` → api
49
+ - `src/auth/*` → auth
50
+ - `src/components/*` → ui
51
+ 4. **Update after every file edit**
@@ -0,0 +1,82 @@
1
+ # Current Project Context - Template Reference
2
+
3
+ > This is the FORMAT REFERENCE for `_context.md`.
4
+ > AI should read this template when creating/updating `_context.md`.
5
+ > DO NOT modify this file - it gets updated with ProAgents upgrades.
6
+
7
+ ---
8
+
9
+ ## Expected Structure
10
+
11
+ ```markdown
12
+ # Current Project Context
13
+
14
+ > **For AI Assistants:** Read this file first to understand current state.
15
+ > **Auto-updated** after each code change.
16
+
17
+ Last Updated: [ISO timestamp]
18
+ Last AI: [Platform (model)]
19
+
20
+ ---
21
+
22
+ ## Quick Summary
23
+ <!-- AI auto-generates - keep under 5 lines -->
24
+ ```
25
+ Last: [Last action]
26
+ Active: [Feature name or "No active features"]
27
+ Pending: [N] tasks
28
+ Tests: [Passing/Failing/Unknown]
29
+ Status: [Current status]
30
+ ```
31
+
32
+ ---
33
+
34
+ ## Test Status
35
+ <!-- AI updates after running tests -->
36
+ ```
37
+ Status: [Passing/Failing/Unknown]
38
+ Last Run: [Timestamp]
39
+ Failing: [Test names or "None"]
40
+ ```
41
+
42
+ ---
43
+
44
+ ## Feature Progress
45
+ <!-- AI auto-calculates -->
46
+ ```
47
+ [Feature name]: [X]% ([done]/[total] tasks)
48
+ ```
49
+
50
+ ---
51
+
52
+ ## Active Work
53
+ [Current active features or tasks]
54
+
55
+ ---
56
+
57
+ ## Recent Changes
58
+ [Last 3-5 changes]
59
+
60
+ ---
61
+
62
+ ## Pending Items
63
+ [Outstanding tasks]
64
+
65
+ ---
66
+
67
+ ## Quick Stats
68
+ | Metric | Value |
69
+ |--------|-------|
70
+ | Active Features | [N] |
71
+ | Completed Today | [N] |
72
+ | Open Issues | [N] |
73
+ ```
74
+
75
+ ## Auto-Update Rules
76
+
77
+ 1. **Update `Last Updated`** with current timestamp
78
+ 2. **Update `Last AI`** with current platform
79
+ 3. **Keep Quick Summary under 5 lines**
80
+ 4. **Update Test Status after test runs**
81
+ 5. **Update Recent Changes with last 3-5 items**
82
+ 6. **Calculate Feature Progress from active-features/**
@@ -0,0 +1,54 @@
1
+ {
2
+ "_template_info": {
3
+ "description": "Template reference for ai-stats.json schema",
4
+ "note": "DO NOT modify this file - it gets updated with ProAgents upgrades",
5
+ "usage": "AI reads this to understand expected schema for ai-stats.json"
6
+ },
7
+
8
+ "ai_platforms": {
9
+ "claude": {
10
+ "sessions": 0,
11
+ "tasks_completed": 0,
12
+ "files_modified": 0,
13
+ "reverts": 0,
14
+ "avg_session_minutes": 0,
15
+ "last_session": "2024-03-13T10:30:00Z"
16
+ },
17
+ "chatgpt": {
18
+ "sessions": 0,
19
+ "tasks_completed": 0,
20
+ "files_modified": 0,
21
+ "reverts": 0,
22
+ "avg_session_minutes": 0,
23
+ "last_session": null
24
+ }
25
+ },
26
+
27
+ "totals": {
28
+ "total_sessions": 0,
29
+ "total_tasks": 0,
30
+ "total_files_modified": 0,
31
+ "total_reverts": 0
32
+ },
33
+
34
+ "_schema": {
35
+ "ai_platforms": {
36
+ "type": "object",
37
+ "description": "Stats per AI platform",
38
+ "properties": {
39
+ "[platform_id]": {
40
+ "sessions": "number - Total sessions by this AI",
41
+ "tasks_completed": "number - Tasks completed",
42
+ "files_modified": "number - Files modified",
43
+ "reverts": "number - Changes reverted by user",
44
+ "avg_session_minutes": "number - Average session duration",
45
+ "last_session": "string|null - ISO timestamp of last session"
46
+ }
47
+ }
48
+ },
49
+ "totals": {
50
+ "type": "object",
51
+ "description": "Aggregated totals across all AIs"
52
+ }
53
+ }
54
+ }