proagents 1.0.14 → 1.0.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.
package/package.json
CHANGED
|
@@ -57,22 +57,81 @@ When the user types commands starting with `pa:`, recognize and execute them:
|
|
|
57
57
|
| `pa:ai-list` | List installed AI platforms |
|
|
58
58
|
| `pa:ai-add` | Add more AI platforms |
|
|
59
59
|
| `pa:ai-remove` | Remove AI platforms from config |
|
|
60
|
+
| `pa:ai-sync` | Sync config with existing files |
|
|
60
61
|
|
|
61
62
|
**How to execute AI Platform commands:**
|
|
62
63
|
|
|
64
|
+
**IMPORTANT - Multi-AI Environment:**
|
|
65
|
+
When multiple AI tools work on the same project, they don't share context. Before executing ANY `pa:ai-*` command:
|
|
66
|
+
1. ALWAYS read fresh state from files (don't rely on cached/previous knowledge)
|
|
67
|
+
2. Read `./proagents/proagents.config.yaml` for current config
|
|
68
|
+
3. Check which files actually exist in project root
|
|
69
|
+
4. If you detect mismatches, inform user and suggest `pa:ai-sync`
|
|
70
|
+
|
|
63
71
|
For `pa:ai-list`:
|
|
64
72
|
- Read `./proagents/proagents.config.yaml` and show the `platforms` array
|
|
65
|
-
- Show which AI instruction files exist in project root
|
|
73
|
+
- Show which AI instruction files exist in project root
|
|
66
74
|
|
|
67
75
|
For `pa:ai-add`:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
76
|
+
1. Show available platforms to user:
|
|
77
|
+
| Platform | File Created |
|
|
78
|
+
|----------|--------------|
|
|
79
|
+
| Claude Code | CLAUDE.md |
|
|
80
|
+
| Cursor | .cursorrules |
|
|
81
|
+
| Windsurf | .windsurfrules |
|
|
82
|
+
| GitHub Copilot | .github/copilot-instructions.md |
|
|
83
|
+
| ChatGPT | CHATGPT.md |
|
|
84
|
+
| Gemini | GEMINI.md |
|
|
85
|
+
| Bolt | BOLT.md |
|
|
86
|
+
| Lovable | LOVABLE.md |
|
|
87
|
+
| Replit | REPLIT.md |
|
|
88
|
+
| Kiro | KIRO.md |
|
|
89
|
+
| Groq | GROQ.md |
|
|
90
|
+
| AntiGravity | ANTIGRAVITY.md |
|
|
91
|
+
|
|
92
|
+
2. Ask user which platforms to add
|
|
93
|
+
3. For each selected platform:
|
|
94
|
+
- Copy content from `./proagents/{PLATFORM}.md` (e.g., `./proagents/CLAUDE.md`)
|
|
95
|
+
- If target file exists, wrap new content with markers and append:
|
|
96
|
+
```
|
|
97
|
+
<!-- PROAGENTS:START -->
|
|
98
|
+
{content from proagents folder}
|
|
99
|
+
<!-- PROAGENTS:END -->
|
|
100
|
+
```
|
|
101
|
+
- If target file doesn't exist, create it with the content wrapped in markers
|
|
102
|
+
4. Update `./proagents/proagents.config.yaml` to add platform to `platforms` array
|
|
71
103
|
|
|
72
104
|
For `pa:ai-remove`:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
105
|
+
1. Read `./proagents/proagents.config.yaml` to get current platforms
|
|
106
|
+
2. Show list and ask which to remove
|
|
107
|
+
3. For each selected:
|
|
108
|
+
- Remove the PROAGENTS section (between markers) from the file, OR delete the file if it only contains ProAgents content
|
|
109
|
+
- Update config to remove from `platforms` array
|
|
110
|
+
|
|
111
|
+
For `pa:ai-sync`:
|
|
112
|
+
1. Scan project root for AI instruction files
|
|
113
|
+
2. Read current config from `./proagents/proagents.config.yaml`
|
|
114
|
+
3. Compare and show differences:
|
|
115
|
+
- Files that exist but not in config
|
|
116
|
+
- Config entries that don't have matching files
|
|
117
|
+
4. Ask user: "Add missing files to config?" or "Remove orphan config entries?"
|
|
118
|
+
5. Update config to match actual files
|
|
119
|
+
|
|
120
|
+
**Platform ID to File Mapping:**
|
|
121
|
+
| Platform ID | File |
|
|
122
|
+
|-------------|------|
|
|
123
|
+
| claude | CLAUDE.md |
|
|
124
|
+
| cursor | .cursorrules |
|
|
125
|
+
| windsurf | .windsurfrules |
|
|
126
|
+
| copilot | .github/copilot-instructions.md |
|
|
127
|
+
| chatgpt | CHATGPT.md |
|
|
128
|
+
| gemini | GEMINI.md |
|
|
129
|
+
| bolt | BOLT.md |
|
|
130
|
+
| lovable | LOVABLE.md |
|
|
131
|
+
| replit | REPLIT.md |
|
|
132
|
+
| kiro | KIRO.md |
|
|
133
|
+
| groq | GROQ.md |
|
|
134
|
+
| antigravity | ANTIGRAVITY.md |
|
|
76
135
|
|
|
77
136
|
### Configuration
|
|
78
137
|
| Command | Action |
|
package/proagents/PROAGENTS.md
CHANGED
|
@@ -15,9 +15,10 @@ Execute these commands when user types them (prefix: `pa:`):
|
|
|
15
15
|
| `pa:doc` | Generate documentation |
|
|
16
16
|
| `pa:release` | Generate release notes → `./RELEASE_NOTES.md` |
|
|
17
17
|
| `pa:changelog` | Update `./CHANGELOG.md` |
|
|
18
|
-
| `pa:ai-list` |
|
|
19
|
-
| `pa:ai-add` |
|
|
20
|
-
| `pa:ai-remove` |
|
|
18
|
+
| `pa:ai-list` | Read config, show installed AI platforms |
|
|
19
|
+
| `pa:ai-add` | Show platform options, create AI instruction files |
|
|
20
|
+
| `pa:ai-remove` | Show installed platforms, remove selected files |
|
|
21
|
+
| `pa:ai-sync` | Sync config with existing files (fix mismatches) |
|
|
21
22
|
|
|
22
23
|
## Feature Workflow
|
|
23
24
|
|