proagents 1.6.1 → 1.6.3
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/.proagents/AI_INSTRUCTIONS.md +74 -19
- package/lib/commands/ai.js +1 -1
- package/package.json +1 -1
|
@@ -1990,7 +1990,56 @@ For `pa:alias-add`:
|
|
|
1990
1990
|
**How to execute Mobile Test Suite commands:**
|
|
1991
1991
|
|
|
1992
1992
|
For `pa:test-mobile`:
|
|
1993
|
-
1.
|
|
1993
|
+
1. **FIRST: Check required tools are installed (FAIL if missing, do NOT skip):**
|
|
1994
|
+
```
|
|
1995
|
+
Checking required tools...
|
|
1996
|
+
✓ Node.js (v18.0.0)
|
|
1997
|
+
✓ Jest / Vitest
|
|
1998
|
+
✓ React Native Testing Library
|
|
1999
|
+
✗ MISSING: Maestro - Required for E2E tests
|
|
2000
|
+
✗ MISSING: Detox - Required for E2E tests
|
|
2001
|
+
|
|
2002
|
+
══════════════════════════════════════════════════════════
|
|
2003
|
+
ERROR: Missing required tools. Cannot run mobile test suite.
|
|
2004
|
+
══════════════════════════════════════════════════════════
|
|
2005
|
+
|
|
2006
|
+
Install missing tools manually:
|
|
2007
|
+
brew install maestro
|
|
2008
|
+
npm install -g detox-cli
|
|
2009
|
+
|
|
2010
|
+
Or let me install them for you:
|
|
2011
|
+
→ Type "yes" to auto-install missing tools
|
|
2012
|
+
→ Type "no" to cancel
|
|
2013
|
+
|
|
2014
|
+
Or run with limited tests:
|
|
2015
|
+
pa:test-mobile --unit-only (skip E2E tests)
|
|
2016
|
+
pa:test-mobile --skip-visual (skip visual tests)
|
|
2017
|
+
```
|
|
2018
|
+
|
|
2019
|
+
**IMPORTANT:** Never silently skip tests due to missing tools. Always:
|
|
2020
|
+
- Show clear error about what's missing
|
|
2021
|
+
- Provide installation instructions for each missing tool
|
|
2022
|
+
- Offer to auto-install missing tools (ask user permission first)
|
|
2023
|
+
- Fail the test suite if user declines (exit code 1)
|
|
2024
|
+
- Offer alternative flags (--unit-only, --skip-e2e, --skip-visual)
|
|
2025
|
+
|
|
2026
|
+
**Auto-install behavior:**
|
|
2027
|
+
If user agrees to auto-install:
|
|
2028
|
+
```
|
|
2029
|
+
Installing missing tools...
|
|
2030
|
+
|
|
2031
|
+
Installing Maestro...
|
|
2032
|
+
→ curl -Ls "https://get.maestro.mobile.dev" | bash
|
|
2033
|
+
✓ Maestro installed successfully
|
|
2034
|
+
|
|
2035
|
+
Installing Detox CLI...
|
|
2036
|
+
→ npm install -g detox-cli
|
|
2037
|
+
✓ Detox CLI installed successfully
|
|
2038
|
+
|
|
2039
|
+
All tools installed. Running test suite...
|
|
2040
|
+
```
|
|
2041
|
+
|
|
2042
|
+
2. If all tools present, run comprehensive mobile test suite:
|
|
1994
2043
|
```
|
|
1995
2044
|
Mobile Test Suite
|
|
1996
2045
|
═════════════════
|
|
@@ -2046,7 +2095,7 @@ For `pa:test-mobile`:
|
|
|
2046
2095
|
Run `pa:test-auto-fix` to automatically fix these issues.
|
|
2047
2096
|
```
|
|
2048
2097
|
|
|
2049
|
-
|
|
2098
|
+
3. Generate detailed test report at `./.proagents/test-reports/mobile-{timestamp}.md`
|
|
2050
2099
|
|
|
2051
2100
|
For `pa:test-visual`:
|
|
2052
2101
|
1. Take screenshots of all screens/components
|
|
@@ -2419,23 +2468,29 @@ For `pa:ai-list`:
|
|
|
2419
2468
|
- Show which AI instruction files exist in project root
|
|
2420
2469
|
|
|
2421
2470
|
For `pa:ai-add`:
|
|
2422
|
-
1. Show
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
|
2426
|
-
|
|
2427
|
-
|
|
|
2428
|
-
|
|
|
2429
|
-
|
|
|
2430
|
-
|
|
|
2431
|
-
|
|
|
2432
|
-
|
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2471
|
+
1. Show ALL platforms to user (always show complete list):
|
|
2472
|
+
|
|
2473
|
+
**IDE-based AI Assistants:**
|
|
2474
|
+
| Platform | File Created | Description |
|
|
2475
|
+
|----------|--------------|-------------|
|
|
2476
|
+
| Claude Code | CLAUDE.md | Anthropic Claude in terminal/IDE |
|
|
2477
|
+
| Cursor | .cursorrules | Cursor AI IDE |
|
|
2478
|
+
| Windsurf | .windsurfrules | Codeium Windsurf IDE |
|
|
2479
|
+
| GitHub Copilot | .github/copilot-instructions.md | GitHub Copilot |
|
|
2480
|
+
| AWS Kiro | KIRO.md | AWS Kiro IDE |
|
|
2481
|
+
| Antigravity | ANTIGRAVITY.md | Antigravity IDE (Gemini/Claude) |
|
|
2482
|
+
|
|
2483
|
+
**Web-based AI Platforms:**
|
|
2484
|
+
| Platform | File Created | Description |
|
|
2485
|
+
|----------|--------------|-------------|
|
|
2486
|
+
| ChatGPT | CHATGPT.md | OpenAI ChatGPT |
|
|
2487
|
+
| Gemini | GEMINI.md | Google Gemini |
|
|
2488
|
+
| Replit AI | REPLIT.md | Replit Ghostwriter |
|
|
2489
|
+
| Bolt.new | BOLT.md | StackBlitz Bolt |
|
|
2490
|
+
| Lovable | LOVABLE.md | Lovable (GPT Engineer) |
|
|
2491
|
+
| Groq | GROQ.md | Groq fast inference |
|
|
2492
|
+
|
|
2493
|
+
2. Ask user which platforms to add (show all 12 options)
|
|
2439
2494
|
3. For each selected platform:
|
|
2440
2495
|
- Copy content from `./.proagents/{PLATFORM}.md` (e.g., `./.proagents/CLAUDE.md`)
|
|
2441
2496
|
- If target file exists, wrap new content with markers and append:
|
package/lib/commands/ai.js
CHANGED
|
@@ -361,7 +361,7 @@ export async function aiAddCommand() {
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
console.log(chalk.gray('\nAI instruction files added to project root.'));
|
|
364
|
-
console.log(chalk.gray('Config updated in proagents/proagents.config.yaml\n'));
|
|
364
|
+
console.log(chalk.gray('Config updated in .proagents/proagents.config.yaml\n'));
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
/**
|