proagents 1.6.19 → 1.6.21
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/.claude/settings.local.json +13 -1
- package/.proagents/.cursorrules +25 -10
- package/.proagents/.windsurfrules +25 -10
- package/.proagents/AGENTS.md +30 -11
- package/.proagents/AI_INSTRUCTIONS.md +86 -30
- package/.proagents/BOLT.md +25 -10
- package/.proagents/CLAUDE.md +25 -10
- package/.proagents/GEMINI.md +25 -10
- package/.proagents/KIRO.md +25 -10
- package/.proagents/LOVABLE.md +25 -10
- package/.proagents/PROAGENTS.md +96 -343
- package/.proagents/REPLIT.md +25 -10
- package/.proagents/activity.log +1 -0
- package/.proagents/custom-commands.yaml +0 -1
- package/.proagents/docs/command-details.md +1 -2
- package/.proagents/getting-started/ai-training-setup.md +0 -1
- package/.proagents/performance/README.md +59 -0
- package/.proagents/performance/bundle-analysis.md +375 -0
- package/.proagents/performance/load-testing.md +563 -0
- package/.proagents/performance/runtime-metrics.md +489 -0
- package/.proagents/performance/web-vitals.md +425 -0
- package/.proagents/platforms.yaml +66 -0
- package/.proagents/proagents.config.yaml +0 -1
- package/.proagents/prompts/ai-add.md +80 -0
- package/.proagents/prompts/ai-list.md +41 -0
- package/.proagents/prompts/ai-remove.md +112 -0
- package/.proagents/prompts/ai-sync.md +96 -0
- package/.proagents/workflow-modes/entry-modes.md +1 -6
- package/lib/commands/ai.js +100 -48
- package/lib/commands/init.js +89 -22
- package/package.json +1 -1
- package/.proagents/ANTIGRAVITY.md +0 -61
- package/.proagents/CHATGPT.md +0 -57
- package/.proagents/GROQ.md +0 -57
- package/.proagents/api-versioning/README.md +0 -257
- package/.proagents/api-versioning/changelog-template.md +0 -225
- package/.proagents/api-versioning/deprecation-workflow.md +0 -470
- package/.proagents/api-versioning/versioning-strategy.md +0 -291
- package/.proagents/automation/README.md +0 -38
- package/.proagents/automation/ai-behavior-rules.md +0 -339
- package/.proagents/automation/ai-prompt-injection.md +0 -331
- package/.proagents/automation/auto-decisions.md +0 -535
- package/.proagents/automation/decision-defaults.yaml +0 -317
- package/.proagents/cache/README.md +0 -110
- package/.proagents/cache/analysis-metadata.json +0 -76
- package/.proagents/cache/conventions.json +0 -125
- package/.proagents/cache/dependencies.json +0 -85
- package/.proagents/cache/features.json +0 -115
- package/.proagents/cache/patterns.json +0 -105
- package/.proagents/cache/schemas/conventions-schema.json +0 -138
- package/.proagents/cache/schemas/dependencies-schema.json +0 -95
- package/.proagents/cache/schemas/features-schema.json +0 -104
- package/.proagents/cache/schemas/metadata-schema.json +0 -83
- package/.proagents/cache/schemas/patterns-schema.json +0 -136
- package/.proagents/cache/schemas/structure-schema.json +0 -72
- package/.proagents/cache/structure.json +0 -109
- package/.proagents/checklists/README.md +0 -261
- package/.proagents/checklists/code-quality.md +0 -137
- package/.proagents/checklists/code-review.md +0 -148
- package/.proagents/checklists/pr-checklist.md +0 -78
- package/.proagents/checklists/pre-deployment.md +0 -132
- package/.proagents/checklists/pre-implementation.md +0 -80
- package/.proagents/checklists/testing.md +0 -120
- package/.proagents/checkpoints.json +0 -13
- package/.proagents/cicd/README.md +0 -338
- package/.proagents/cicd/azure-devops.md +0 -267
- package/.proagents/cicd/github-actions.md +0 -375
- package/.proagents/cicd/gitlab-ci.md +0 -278
- package/.proagents/cicd/jenkins.md +0 -317
- package/.proagents/collaboration/README.md +0 -143
- package/.proagents/collaboration/roles.md +0 -248
- package/.proagents/collaboration/sessions.md +0 -390
- package/.proagents/collaboration/sync.md +0 -358
- package/.proagents/cost/README.md +0 -48
- package/.proagents/cost/cost-template.md +0 -283
- package/.proagents/cost/estimation-framework.md +0 -287
- package/.proagents/database/README.md +0 -72
- package/.proagents/database/examples/001-create-users.sql +0 -129
- package/.proagents/database/examples/002-add-preferences.sql +0 -94
- package/.proagents/database/examples/003-add-index.sql +0 -105
- package/.proagents/database/examples/004-rename-column.sql +0 -122
- package/.proagents/database/examples/005-add-foreign-key.sql +0 -142
- package/.proagents/database/examples/006-data-migration.sql +0 -196
- package/.proagents/database/examples/007-drop-column.sql +0 -163
- package/.proagents/database/examples/README.md +0 -89
- package/.proagents/database/migration-workflow.md +0 -478
- package/.proagents/database/rollback-scripts.md +0 -487
- package/.proagents/database/safety-checks.md +0 -447
- package/.proagents/git/README.md +0 -68
- package/.proagents/git/branch-strategy.md +0 -164
- package/.proagents/git/commit-conventions.md +0 -241
- package/.proagents/git/pr-workflow.md +0 -286
- package/.proagents/git/rollback-procedures.md +0 -416
- package/.proagents/ide-integration/README.md +0 -124
- package/.proagents/ide-integration/cline-config.md +0 -429
- package/.proagents/ide-integration/continue-config.md +0 -380
- package/.proagents/ide-integration/cursor-rules.md +0 -280
- package/.proagents/ide-integration/github-copilot.md +0 -384
- package/.proagents/ide-integration/windsurf-rules.md +0 -314
- package/.proagents/integrations/README.md +0 -97
- package/.proagents/integrations/pm/README.md +0 -344
- package/.proagents/learning/README.md +0 -136
- package/.proagents/learning/adaptation.md +0 -305
- package/.proagents/learning/data-collection.md +0 -283
- package/.proagents/learning/implementation-guide.md +0 -865
- package/.proagents/learning/reports.md +0 -306
- package/.proagents/mcp/README.md +0 -133
- package/.proagents/mcp/context-providers.md +0 -442
- package/.proagents/mcp/server-config.md +0 -306
- package/.proagents/mcp/tools-definition.md +0 -513
- package/.proagents/pm-integration/README.md +0 -151
- package/.proagents/pm-integration/asana.md +0 -346
- package/.proagents/pm-integration/github-issues.md +0 -308
- package/.proagents/pm-integration/gitlab-issues.md +0 -482
- package/.proagents/pm-integration/jira.md +0 -364
- package/.proagents/pm-integration/linear.md +0 -409
- package/.proagents/pm-integration/notion.md +0 -275
- package/.proagents/pm-integration/sync-config.md +0 -533
- package/.proagents/pm-integration/trello.md +0 -159
- package/.proagents/rules/README.md +0 -179
- package/.proagents/rules/custom-rules-template.yaml +0 -286
- package/.proagents/rules/custom-rules.md +0 -754
- package/.proagents/rules/validation-rules-template.yaml +0 -517
- package/.proagents/runbooks/README.md +0 -219
- package/.proagents/runbooks/dependency-vulnerability.md +0 -505
- package/.proagents/runbooks/incident-response.md +0 -451
- package/.proagents/runbooks/performance-degradation.md +0 -584
- package/.proagents/runbooks/production-debugging.md +0 -489
- package/.proagents/sprints/README.md +0 -58
- package/.proagents/team/README.md +0 -256
- package/.proagents/team/code-ownership.md +0 -306
- package/.proagents/team/communication-templates.md +0 -441
- package/.proagents/team/handoff-protocol.md +0 -380
- package/.proagents/team/ide-setup/README.md +0 -103
- package/.proagents/team/ide-setup/cursor.md +0 -276
- package/.proagents/team/ide-setup/jetbrains.md +0 -330
- package/.proagents/team/ide-setup/neovim.md +0 -640
- package/.proagents/team/ide-setup/vscode.md +0 -348
- package/.proagents/team/onboarding.md +0 -278
- package/.proagents/time-tracking.json +0 -19
- package/.proagents/troubleshooting/README.md +0 -730
- package/.proagents/troubleshooting/ai-issues.md +0 -601
- package/.proagents/troubleshooting/workflow-issues.md +0 -571
|
@@ -1,416 +0,0 @@
|
|
|
1
|
-
# Git Rollback Procedures
|
|
2
|
-
|
|
3
|
-
Safe and effective rollback strategies using Git.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Overview
|
|
8
|
-
|
|
9
|
-
This guide covers rollback procedures for:
|
|
10
|
-
- Code rollbacks
|
|
11
|
-
- Release rollbacks
|
|
12
|
-
- Emergency hotfixes
|
|
13
|
-
- Database-coordinated rollbacks
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Rollback Types
|
|
18
|
-
|
|
19
|
-
### 1. Quick Rollback (Last Commit)
|
|
20
|
-
|
|
21
|
-
**When:** Single bad commit needs reverting
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
# Revert the last commit (creates new commit)
|
|
25
|
-
git revert HEAD
|
|
26
|
-
|
|
27
|
-
# Revert without auto-commit (review first)
|
|
28
|
-
git revert HEAD --no-commit
|
|
29
|
-
git diff --staged # Review changes
|
|
30
|
-
git commit -m "Revert: [original commit message]"
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
**Best for:** Small changes, bug fixes gone wrong
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
### 2. Feature Rollback (Multiple Commits)
|
|
38
|
-
|
|
39
|
-
**When:** Entire feature needs reverting
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
# Find where feature started
|
|
43
|
-
git log --oneline --graph
|
|
44
|
-
|
|
45
|
-
# Revert range of commits (oldest to newest)
|
|
46
|
-
git revert --no-commit abc123..def456
|
|
47
|
-
git commit -m "Revert: feature-name due to [reason]"
|
|
48
|
-
|
|
49
|
-
# OR revert a merge commit
|
|
50
|
-
git revert -m 1 <merge-commit-hash>
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
**Example:**
|
|
54
|
-
```bash
|
|
55
|
-
# Feature was merged in commit abc123
|
|
56
|
-
git revert -m 1 abc123
|
|
57
|
-
|
|
58
|
-
# Message
|
|
59
|
-
Revert: Merge feature/user-auth
|
|
60
|
-
|
|
61
|
-
Reason: Authentication causing 500 errors in production
|
|
62
|
-
Ticket: ISSUE-456
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
### 3. Release Rollback (Version Tag)
|
|
68
|
-
|
|
69
|
-
**When:** Entire release needs reverting
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
# Current: v1.2.0 (broken)
|
|
73
|
-
# Target: v1.1.0 (last stable)
|
|
74
|
-
|
|
75
|
-
# Option A: Reset to previous tag (CAREFUL - destructive)
|
|
76
|
-
git reset --hard v1.1.0
|
|
77
|
-
git push --force origin main # Requires permissions
|
|
78
|
-
|
|
79
|
-
# Option B: Revert all commits since last release (safe)
|
|
80
|
-
git revert --no-commit v1.1.0..v1.2.0
|
|
81
|
-
git commit -m "Revert: v1.2.0 release - rolling back to v1.1.0"
|
|
82
|
-
git tag v1.2.1
|
|
83
|
-
git push origin main --tags
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
**Best for:** Major release issues
|
|
87
|
-
|
|
88
|
-
---
|
|
89
|
-
|
|
90
|
-
### 4. Emergency Hotfix
|
|
91
|
-
|
|
92
|
-
**When:** Critical fix needed immediately
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
# Start from production tag
|
|
96
|
-
git checkout v1.2.0
|
|
97
|
-
git checkout -b hotfix/critical-fix
|
|
98
|
-
|
|
99
|
-
# Make minimal fix
|
|
100
|
-
# ... edit files ...
|
|
101
|
-
|
|
102
|
-
git add .
|
|
103
|
-
git commit -m "hotfix: Critical fix for [issue]"
|
|
104
|
-
|
|
105
|
-
# Create new tag
|
|
106
|
-
git tag v1.2.1
|
|
107
|
-
|
|
108
|
-
# Merge back to main
|
|
109
|
-
git checkout main
|
|
110
|
-
git merge hotfix/critical-fix
|
|
111
|
-
|
|
112
|
-
# Push everything
|
|
113
|
-
git push origin main --tags
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
## Rollback Decision Tree
|
|
119
|
-
|
|
120
|
-
```
|
|
121
|
-
Problem Detected
|
|
122
|
-
│
|
|
123
|
-
▼
|
|
124
|
-
┌──────────────────┐
|
|
125
|
-
│ Can quick fix? │──Yes──▶ Deploy hotfix
|
|
126
|
-
└──────────────────┘
|
|
127
|
-
│ No
|
|
128
|
-
▼
|
|
129
|
-
┌──────────────────┐
|
|
130
|
-
│ Single commit? │──Yes──▶ git revert HEAD
|
|
131
|
-
└──────────────────┘
|
|
132
|
-
│ No
|
|
133
|
-
▼
|
|
134
|
-
┌──────────────────┐
|
|
135
|
-
│ Feature merge? │──Yes──▶ git revert -m 1 <merge>
|
|
136
|
-
└──────────────────┘
|
|
137
|
-
│ No
|
|
138
|
-
▼
|
|
139
|
-
┌──────────────────┐
|
|
140
|
-
│ Multiple commits │──Yes──▶ git revert <range>
|
|
141
|
-
└──────────────────┘
|
|
142
|
-
│ No
|
|
143
|
-
▼
|
|
144
|
-
┌──────────────────┐
|
|
145
|
-
│ Full release? │──Yes──▶ Revert to previous tag
|
|
146
|
-
└──────────────────┘
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
---
|
|
150
|
-
|
|
151
|
-
## Rollback Checklist
|
|
152
|
-
|
|
153
|
-
### Before Rollback
|
|
154
|
-
```markdown
|
|
155
|
-
- [ ] Confirm the issue requires rollback (not fixable quickly)
|
|
156
|
-
- [ ] Identify exact commits/release to roll back
|
|
157
|
-
- [ ] Notify stakeholders (team, support, customers if needed)
|
|
158
|
-
- [ ] Check for database migrations that need reverting
|
|
159
|
-
- [ ] Prepare rollback script/commands
|
|
160
|
-
- [ ] Ensure access to deployment pipeline
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
### During Rollback
|
|
164
|
-
```markdown
|
|
165
|
-
- [ ] Put application in maintenance mode (if applicable)
|
|
166
|
-
- [ ] Execute Git rollback commands
|
|
167
|
-
- [ ] Revert any database migrations
|
|
168
|
-
- [ ] Deploy rolled-back code
|
|
169
|
-
- [ ] Verify application health checks
|
|
170
|
-
- [ ] Test critical paths manually
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
### After Rollback
|
|
174
|
-
```markdown
|
|
175
|
-
- [ ] Monitor error rates and performance
|
|
176
|
-
- [ ] Communicate completion to stakeholders
|
|
177
|
-
- [ ] Create incident report
|
|
178
|
-
- [ ] Schedule post-mortem
|
|
179
|
-
- [ ] Plan proper fix for original issue
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
---
|
|
183
|
-
|
|
184
|
-
## Database-Coordinated Rollback
|
|
185
|
-
|
|
186
|
-
When rollback involves database changes:
|
|
187
|
-
|
|
188
|
-
```bash
|
|
189
|
-
# 1. Put app in maintenance mode
|
|
190
|
-
./scripts/maintenance-mode on
|
|
191
|
-
|
|
192
|
-
# 2. Run database rollback
|
|
193
|
-
npm run db:migrate:down
|
|
194
|
-
# OR
|
|
195
|
-
npx prisma migrate reset --to <migration-name>
|
|
196
|
-
|
|
197
|
-
# 3. Verify database state
|
|
198
|
-
npm run db:verify
|
|
199
|
-
|
|
200
|
-
# 4. Git rollback
|
|
201
|
-
git revert <commits>
|
|
202
|
-
|
|
203
|
-
# 5. Deploy rolled-back code
|
|
204
|
-
./scripts/deploy
|
|
205
|
-
|
|
206
|
-
# 6. Exit maintenance mode
|
|
207
|
-
./scripts/maintenance-mode off
|
|
208
|
-
|
|
209
|
-
# 7. Verify application
|
|
210
|
-
curl -f https://api.example.com/health
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
---
|
|
214
|
-
|
|
215
|
-
## Rollback Scripts
|
|
216
|
-
|
|
217
|
-
### Automated Rollback Script
|
|
218
|
-
|
|
219
|
-
```bash
|
|
220
|
-
#!/bin/bash
|
|
221
|
-
# rollback.sh
|
|
222
|
-
|
|
223
|
-
set -e
|
|
224
|
-
|
|
225
|
-
# Configuration
|
|
226
|
-
ROLLBACK_TARGET="${1:-HEAD~1}"
|
|
227
|
-
ENVIRONMENT="${2:-staging}"
|
|
228
|
-
|
|
229
|
-
echo "=== Starting Rollback ==="
|
|
230
|
-
echo "Target: $ROLLBACK_TARGET"
|
|
231
|
-
echo "Environment: $ENVIRONMENT"
|
|
232
|
-
|
|
233
|
-
# Confirm
|
|
234
|
-
read -p "Continue? (y/n) " -n 1 -r
|
|
235
|
-
echo
|
|
236
|
-
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
|
237
|
-
exit 1
|
|
238
|
-
fi
|
|
239
|
-
|
|
240
|
-
# Create rollback branch
|
|
241
|
-
BRANCH="rollback/$(date +%Y%m%d-%H%M%S)"
|
|
242
|
-
git checkout -b "$BRANCH"
|
|
243
|
-
|
|
244
|
-
# Perform rollback
|
|
245
|
-
if [[ "$ROLLBACK_TARGET" == v* ]]; then
|
|
246
|
-
# Tag-based rollback
|
|
247
|
-
CURRENT_TAG=$(git describe --tags --abbrev=0)
|
|
248
|
-
git revert --no-commit "$ROLLBACK_TARGET..$CURRENT_TAG"
|
|
249
|
-
else
|
|
250
|
-
# Commit-based rollback
|
|
251
|
-
git revert --no-commit "$ROLLBACK_TARGET"
|
|
252
|
-
fi
|
|
253
|
-
|
|
254
|
-
# Commit rollback
|
|
255
|
-
git commit -m "Rollback to $ROLLBACK_TARGET
|
|
256
|
-
|
|
257
|
-
Environment: $ENVIRONMENT
|
|
258
|
-
Reason: Emergency rollback
|
|
259
|
-
Date: $(date)
|
|
260
|
-
"
|
|
261
|
-
|
|
262
|
-
# Push
|
|
263
|
-
git push origin "$BRANCH"
|
|
264
|
-
|
|
265
|
-
# Create PR (using GitHub CLI)
|
|
266
|
-
gh pr create \
|
|
267
|
-
--title "ROLLBACK: Revert to $ROLLBACK_TARGET" \
|
|
268
|
-
--body "## Emergency Rollback
|
|
269
|
-
|
|
270
|
-
Target: $ROLLBACK_TARGET
|
|
271
|
-
Environment: $ENVIRONMENT
|
|
272
|
-
Time: $(date)
|
|
273
|
-
|
|
274
|
-
### Checklist
|
|
275
|
-
- [ ] Database rollback completed (if applicable)
|
|
276
|
-
- [ ] Smoke tests passed
|
|
277
|
-
- [ ] Stakeholders notified
|
|
278
|
-
" \
|
|
279
|
-
--label "rollback,urgent"
|
|
280
|
-
|
|
281
|
-
echo "=== Rollback PR Created ==="
|
|
282
|
-
echo "Please review and merge to deploy"
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
---
|
|
286
|
-
|
|
287
|
-
## Recovery Scenarios
|
|
288
|
-
|
|
289
|
-
### Scenario 1: Accidental Force Push
|
|
290
|
-
|
|
291
|
-
```bash
|
|
292
|
-
# Find the previous HEAD in reflog
|
|
293
|
-
git reflog show origin/main
|
|
294
|
-
|
|
295
|
-
# Output:
|
|
296
|
-
# abc1234 origin/main@{0}: update by push --force
|
|
297
|
-
# xyz5678 origin/main@{1}: update by push <-- This is what we want
|
|
298
|
-
|
|
299
|
-
# Restore
|
|
300
|
-
git checkout main
|
|
301
|
-
git reset --hard xyz5678
|
|
302
|
-
git push --force origin main
|
|
303
|
-
|
|
304
|
-
# Notify team
|
|
305
|
-
echo "Main branch restored to xyz5678. Please re-pull."
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
### Scenario 2: Merged Wrong Branch
|
|
309
|
-
|
|
310
|
-
```bash
|
|
311
|
-
# Revert the merge commit
|
|
312
|
-
git revert -m 1 <merge-commit-hash>
|
|
313
|
-
|
|
314
|
-
# Push the revert
|
|
315
|
-
git push origin main
|
|
316
|
-
|
|
317
|
-
# Note: If you need to re-merge later
|
|
318
|
-
git checkout feature-branch
|
|
319
|
-
git revert <revert-commit-hash> # Undo the revert
|
|
320
|
-
git checkout main
|
|
321
|
-
git merge feature-branch
|
|
322
|
-
```
|
|
323
|
-
|
|
324
|
-
### Scenario 3: Lost Commits
|
|
325
|
-
|
|
326
|
-
```bash
|
|
327
|
-
# Check reflog for lost commits
|
|
328
|
-
git reflog
|
|
329
|
-
|
|
330
|
-
# Find the commit
|
|
331
|
-
git show abc1234
|
|
332
|
-
|
|
333
|
-
# Recover it
|
|
334
|
-
git cherry-pick abc1234
|
|
335
|
-
|
|
336
|
-
# Or create branch from it
|
|
337
|
-
git checkout -b recovered-commits abc1234
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
---
|
|
341
|
-
|
|
342
|
-
## Rollback Communication Template
|
|
343
|
-
|
|
344
|
-
```markdown
|
|
345
|
-
## Rollback Notification
|
|
346
|
-
|
|
347
|
-
**Status:** 🔄 Rollback In Progress / ✅ Rollback Complete
|
|
348
|
-
|
|
349
|
-
**Time:** [UTC timestamp]
|
|
350
|
-
**Environment:** [Production/Staging]
|
|
351
|
-
**Duration:** [Expected/Actual duration]
|
|
352
|
-
|
|
353
|
-
### What Happened
|
|
354
|
-
[Brief description of the issue that caused rollback]
|
|
355
|
-
|
|
356
|
-
### Impact
|
|
357
|
-
- [Affected features/services]
|
|
358
|
-
- [User impact description]
|
|
359
|
-
|
|
360
|
-
### Actions Taken
|
|
361
|
-
1. [Action 1]
|
|
362
|
-
2. [Action 2]
|
|
363
|
-
3. [Action 3]
|
|
364
|
-
|
|
365
|
-
### Current Status
|
|
366
|
-
- Application: [Healthy/Degraded/Down]
|
|
367
|
-
- Error rate: [X%]
|
|
368
|
-
- Response time: [Xms]
|
|
369
|
-
|
|
370
|
-
### Next Steps
|
|
371
|
-
- [ ] Complete root cause analysis
|
|
372
|
-
- [ ] Schedule fix implementation
|
|
373
|
-
- [ ] Post-mortem meeting
|
|
374
|
-
|
|
375
|
-
### Contact
|
|
376
|
-
[On-call engineer name/contact]
|
|
377
|
-
```
|
|
378
|
-
|
|
379
|
-
---
|
|
380
|
-
|
|
381
|
-
## Configuration
|
|
382
|
-
|
|
383
|
-
```yaml
|
|
384
|
-
# proagents.config.yaml
|
|
385
|
-
|
|
386
|
-
git:
|
|
387
|
-
rollback:
|
|
388
|
-
auto_create_backup_branch: true
|
|
389
|
-
require_confirmation: true
|
|
390
|
-
notify_on_rollback: true
|
|
391
|
-
|
|
392
|
-
notifications:
|
|
393
|
-
slack_channel: "#deployments"
|
|
394
|
-
email: ["oncall@company.com"]
|
|
395
|
-
|
|
396
|
-
protection:
|
|
397
|
-
require_approval_for_production: true
|
|
398
|
-
max_commits_without_confirmation: 5
|
|
399
|
-
|
|
400
|
-
scripts:
|
|
401
|
-
pre_rollback: "./scripts/pre-rollback.sh"
|
|
402
|
-
post_rollback: "./scripts/post-rollback.sh"
|
|
403
|
-
```
|
|
404
|
-
|
|
405
|
-
---
|
|
406
|
-
|
|
407
|
-
## Commands
|
|
408
|
-
|
|
409
|
-
| Command | Description |
|
|
410
|
-
|---------|-------------|
|
|
411
|
-
| `pa:rollback` | Start rollback wizard |
|
|
412
|
-
| `pa:rollback --last` | Revert last commit |
|
|
413
|
-
| `pa:rollback --to [tag]` | Rollback to specific tag |
|
|
414
|
-
| `pa:rollback --commits [n]` | Revert last n commits |
|
|
415
|
-
| `pa:rollback --dry-run` | Preview rollback changes |
|
|
416
|
-
| `pa:rollback --status` | Check current rollback status |
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
# IDE Integration
|
|
2
|
-
|
|
3
|
-
Configure AI-powered IDEs to work with ProAgents workflow.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Supported IDEs
|
|
8
|
-
|
|
9
|
-
| IDE | Configuration File | AI Backend |
|
|
10
|
-
|-----|-------------------|------------|
|
|
11
|
-
| [Cursor](./cursor-rules.md) | `.cursorrules` | Claude/GPT |
|
|
12
|
-
| [Windsurf](./windsurf-rules.md) | `.windsurfrules` | Cascade |
|
|
13
|
-
| [GitHub Copilot](./github-copilot.md) | `.github/copilot-instructions.md` | GPT-4 |
|
|
14
|
-
| [Cline](./cline-config.md) | `.clinerules` | Claude/GPT |
|
|
15
|
-
| [Continue](./continue-config.md) | `.continuerc.json` | Various |
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Quick Setup
|
|
20
|
-
|
|
21
|
-
### Generate Rules for Your IDE
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
# Generate Cursor rules
|
|
25
|
-
proagents ide generate cursor
|
|
26
|
-
|
|
27
|
-
# Generate Windsurf rules
|
|
28
|
-
proagents ide generate windsurf
|
|
29
|
-
|
|
30
|
-
# Generate all IDE rules
|
|
31
|
-
proagents ide generate all
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Manual Setup
|
|
35
|
-
|
|
36
|
-
Copy the appropriate rules file to your project root:
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
# Cursor
|
|
40
|
-
cp /path/to/.proagents/ide-integration/.cursorrules ./.cursorrules
|
|
41
|
-
|
|
42
|
-
# Windsurf
|
|
43
|
-
cp /path/to/.proagents/ide-integration/.windsurfrules ./.windsurfrules
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
---
|
|
47
|
-
|
|
48
|
-
## What IDE Rules Do
|
|
49
|
-
|
|
50
|
-
IDE rules configure the AI assistant to:
|
|
51
|
-
|
|
52
|
-
1. **Follow ProAgents Workflow**: Use the correct phases and checkpoints
|
|
53
|
-
2. **Match Project Patterns**: Follow detected code conventions
|
|
54
|
-
3. **Use Commands**: Recognize `pa:feature`, `pa:fix`, `pa:doc` commands
|
|
55
|
-
4. **Maintain Context**: Keep track of current feature and phase
|
|
56
|
-
5. **Apply Standards**: Enforce project-specific coding standards
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
|
|
60
|
-
## Configuration
|
|
61
|
-
|
|
62
|
-
```yaml
|
|
63
|
-
# proagents.config.yaml
|
|
64
|
-
ide:
|
|
65
|
-
# Auto-generate rules on init
|
|
66
|
-
auto_generate: true
|
|
67
|
-
|
|
68
|
-
# Target IDEs
|
|
69
|
-
targets:
|
|
70
|
-
- cursor
|
|
71
|
-
- windsurf
|
|
72
|
-
- copilot
|
|
73
|
-
|
|
74
|
-
# Include project-specific patterns
|
|
75
|
-
include_patterns: true
|
|
76
|
-
|
|
77
|
-
# Include learned preferences
|
|
78
|
-
include_learning: true
|
|
79
|
-
|
|
80
|
-
# Update frequency
|
|
81
|
-
auto_update: "on_config_change"
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
## Rule Synchronization
|
|
87
|
-
|
|
88
|
-
Keep IDE rules in sync with ProAgents config:
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
# Sync all IDE rules with current config
|
|
92
|
-
proagents ide sync
|
|
93
|
-
|
|
94
|
-
# Watch for changes and auto-sync
|
|
95
|
-
proagents ide watch
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
## Custom Rules
|
|
101
|
-
|
|
102
|
-
Add project-specific rules:
|
|
103
|
-
|
|
104
|
-
```yaml
|
|
105
|
-
# proagents.config.yaml
|
|
106
|
-
ide:
|
|
107
|
-
custom_rules:
|
|
108
|
-
- "Always use TypeScript strict mode"
|
|
109
|
-
- "Prefer functional components over class components"
|
|
110
|
-
- "Use Tailwind CSS for styling"
|
|
111
|
-
- "Follow the existing error handling patterns in src/utils/errors.ts"
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
These are automatically included in generated IDE rules.
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
## Documentation
|
|
119
|
-
|
|
120
|
-
- [Cursor Rules](./cursor-rules.md) - Configuration for Cursor IDE
|
|
121
|
-
- [Windsurf Rules](./windsurf-rules.md) - Configuration for Windsurf IDE
|
|
122
|
-
- [GitHub Copilot](./github-copilot.md) - Configuration for GitHub Copilot
|
|
123
|
-
- [Cline Config](./cline-config.md) - Configuration for Cline extension
|
|
124
|
-
- [Continue Config](./continue-config.md) - Configuration for Continue extension
|