geminize 1.0.0 → 1.1.0
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.
- checksums.yaml +4 -4
- data/.cursor/mcp.json +3 -0
- data/.cursor/rules/isolation_rules/Core/command-execution.mdc +235 -0
- data/.cursor/rules/isolation_rules/Core/complexity-decision-tree.mdc +187 -0
- data/.cursor/rules/isolation_rules/Core/creative-phase-enforcement.mdc +145 -0
- data/.cursor/rules/isolation_rules/Core/creative-phase-metrics.mdc +195 -0
- data/.cursor/rules/isolation_rules/Core/file-verification.mdc +198 -0
- data/.cursor/rules/isolation_rules/Core/platform-awareness.mdc +71 -0
- data/.cursor/rules/isolation_rules/Level3/planning-comprehensive.mdc +159 -0
- data/.cursor/rules/isolation_rules/Level3/task-tracking-intermediate.mdc +135 -0
- data/.cursor/rules/isolation_rules/Phases/CreativePhase/creative-phase-architecture.mdc +187 -0
- data/.cursor/rules/isolation_rules/main.mdc +123 -0
- data/.cursor/rules/isolation_rules/visual-maps/archive-mode-map.mdc +277 -0
- data/.cursor/rules/isolation_rules/visual-maps/creative-mode-map.mdc +224 -0
- data/.cursor/rules/isolation_rules/visual-maps/implement-mode-map.mdc +321 -0
- data/.cursor/rules/isolation_rules/visual-maps/plan-mode-map.mdc +269 -0
- data/.cursor/rules/isolation_rules/visual-maps/qa-mode-map.mdc +495 -0
- data/.cursor/rules/isolation_rules/visual-maps/reflect-mode-map.mdc +234 -0
- data/.cursor/rules/isolation_rules/visual-maps/van-mode-map.mdc +902 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-complexity-determination.mdc +60 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-file-verification.mdc +49 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-mode-map.mdc +49 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-platform-detection.mdc +50 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-checks/build-test.mdc +117 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-checks/config-check.mdc +103 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-checks/dependency-check.mdc +147 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-checks/environment-check.mdc +104 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-checks/file-verification.mdc +1 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-main.mdc +142 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/common-fixes.mdc +92 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/mode-transitions.mdc +101 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/reports.mdc +149 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/rule-calling-guide.mdc +66 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/rule-calling-help.mdc +19 -0
- data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-validation.md.old +363 -0
- data/.env.example +7 -0
- data/.memory_bank/activeContext.md +78 -0
- data/.memory_bank/progress.md +80 -0
- data/.memory_bank/projectbrief.md +29 -0
- data/.memory_bank/systemPatterns.md +90 -0
- data/.memory_bank/tasks.md +98 -0
- data/.memory_bank/techContext.md +73 -0
- data/.tool-versions +1 -0
- data/CHANGELOG.md +20 -0
- data/README.md +42 -5
- data/examples/models_api.rb +125 -0
- data/lib/geminize/configuration.rb +4 -4
- data/lib/geminize/model_info.rb +87 -8
- data/lib/geminize/models/model.rb +101 -109
- data/lib/geminize/models/model_list.rb +70 -28
- data/lib/geminize/request_builder.rb +29 -0
- data/lib/geminize/version.rb +1 -1
- data/lib/geminize.rb +71 -14
- metadata +45 -2
@@ -0,0 +1,142 @@
|
|
1
|
+
---
|
2
|
+
description: Visual process map for VAN QA mode (Technical Validation Entry Point)
|
3
|
+
globs: van-qa-main.mdc
|
4
|
+
alwaysApply: false
|
5
|
+
---
|
6
|
+
# VAN MODE: QA TECHNICAL VALIDATION (Main Entry)
|
7
|
+
|
8
|
+
> **TL;DR:** This is the entry point for the QA validation process that executes *after* CREATIVE mode and *before* BUILD mode. It ensures technical requirements are met before implementation begins.
|
9
|
+
|
10
|
+
## 📣 HOW TO USE THESE QA RULES
|
11
|
+
|
12
|
+
To access any QA validation rule or component, use the `fetch_rules` tool with exact rule names:
|
13
|
+
|
14
|
+
```
|
15
|
+
// CRITICAL: Always use fetch_rules to load validation components
|
16
|
+
// For detailed examples and guidance, load:
|
17
|
+
// isolation_rules/visual-maps/van-qa-utils/rule-calling-guide
|
18
|
+
```
|
19
|
+
|
20
|
+
## 🚀 VAN QA MODE ACTIVATION
|
21
|
+
|
22
|
+
After completing CREATIVE mode, when the user types "VAN QA", respond:
|
23
|
+
|
24
|
+
```mermaid
|
25
|
+
graph TD
|
26
|
+
UserQA["User Types: QA"] --> HighPriority["⚠️ HIGH PRIORITY COMMAND"]
|
27
|
+
HighPriority --> CurrentTask["Pause Current Task/Process"]
|
28
|
+
CurrentTask --> LoadQA["Load QA Main Map (This File)"]
|
29
|
+
LoadQA --> RunQA["Execute QA Validation Process"]
|
30
|
+
RunQA --> QAResults{"QA Results"}
|
31
|
+
|
32
|
+
QAResults -->|"PASS"| ResumeFlow["Resume Prior Process Flow"]
|
33
|
+
QAResults -->|"FAIL"| FixIssues["Fix Identified Issues"]
|
34
|
+
FixIssues --> ReRunQA["Re-run QA Validation"]
|
35
|
+
ReRunQA --> QAResults
|
36
|
+
|
37
|
+
style UserQA fill:#f8d486,stroke:#e8b84d,color:black
|
38
|
+
style HighPriority fill:#ff0000,stroke:#cc0000,color:white,stroke-width:3px
|
39
|
+
style LoadQA fill:#4da6ff,stroke:#0066cc,color:white
|
40
|
+
style RunQA fill:#4da6ff,stroke:#0066cc,color:white
|
41
|
+
style QAResults fill:#f6546a,stroke:#c30052,color:white
|
42
|
+
```
|
43
|
+
|
44
|
+
### QA Interruption Rules
|
45
|
+
|
46
|
+
1. **Immediate Precedence:** `QA` command interrupts everything.
|
47
|
+
2. **Load & Execute:** Load this map (`van-qa-main.mdc`) and its components (see below).
|
48
|
+
3. **Remediation Priority:** Fixes take priority over pending mode switches.
|
49
|
+
4. **Resume:** On PASS, resume the previous flow.
|
50
|
+
|
51
|
+
```
|
52
|
+
⚠️ QA OVERRIDE ACTIVATED
|
53
|
+
All other processes paused
|
54
|
+
QA validation checks now running...
|
55
|
+
Any issues found MUST be remediated before continuing with normal process flow
|
56
|
+
```
|
57
|
+
|
58
|
+
## 🔍 TECHNICAL VALIDATION OVERVIEW
|
59
|
+
|
60
|
+
Four-point validation process with selective loading:
|
61
|
+
|
62
|
+
```mermaid
|
63
|
+
graph TD
|
64
|
+
VANQA["VAN QA MODE"] --> FourChecks["FOUR-POINT VALIDATION"]
|
65
|
+
|
66
|
+
FourChecks --> DepCheck["1️⃣ DEPENDENCY VERIFICATION
|
67
|
+
Load: van-qa-checks/dependency-check.mdc"]
|
68
|
+
DepCheck --> ConfigCheck["2️⃣ CONFIGURATION VALIDATION
|
69
|
+
Load: van-qa-checks/config-check.mdc"]
|
70
|
+
ConfigCheck --> EnvCheck["3️⃣ ENVIRONMENT VALIDATION
|
71
|
+
Load: van-qa-checks/environment-check.mdc"]
|
72
|
+
EnvCheck --> MinBuildCheck["4️⃣ MINIMAL BUILD TEST
|
73
|
+
Load: van-qa-checks/build-test.mdc"]
|
74
|
+
|
75
|
+
MinBuildCheck --> ValidationResults{"All Checks<br>Passed?"}
|
76
|
+
ValidationResults -->|"Yes"| SuccessReport["GENERATE SUCCESS REPORT
|
77
|
+
Load: van-qa-utils/reports.mdc"]
|
78
|
+
ValidationResults -->|"No"| FailureReport["GENERATE FAILURE REPORT
|
79
|
+
Load: van-qa-utils/reports.mdc"]
|
80
|
+
|
81
|
+
SuccessReport --> BUILD_Transition["Trigger BUILD Mode
|
82
|
+
Load: van-qa-utils/mode-transitions.mdc"]
|
83
|
+
FailureReport --> FixIssues["Fix Technical Issues
|
84
|
+
Load: van-qa-utils/common-fixes.mdc"]
|
85
|
+
FixIssues --> ReValidate["Re-validate (Re-run VAN QA)"]
|
86
|
+
ReValidate --> FourChecks
|
87
|
+
|
88
|
+
style VANQA fill:#4da6ff,stroke:#0066cc,color:white
|
89
|
+
style FourChecks fill:#f6546a,stroke:#c30052,color:white
|
90
|
+
style ValidationResults fill:#f6546a,stroke:#c30052,color:white
|
91
|
+
style BUILD_Transition fill:#10b981,stroke:#059669,color:white
|
92
|
+
style FixIssues fill:#ff5555,stroke:#dd3333,color:white
|
93
|
+
```
|
94
|
+
|
95
|
+
## 🔄 INTEGRATION WITH DESIGN DECISIONS
|
96
|
+
|
97
|
+
Reads Creative Phase outputs to inform validation:
|
98
|
+
|
99
|
+
```mermaid
|
100
|
+
graph TD
|
101
|
+
Start["Read Design Decisions"] --> ReadCreative["Parse Creative Phase<br>Documentation"]
|
102
|
+
ReadCreative --> ExtractTech["Extract Technology<br>Choices"]
|
103
|
+
ExtractTech --> ExtractDeps["Extract Required<br>Dependencies"]
|
104
|
+
ExtractDeps --> BuildValidationPlan["Build Validation<br>Plan"]
|
105
|
+
BuildValidationPlan --> StartValidation["Start Four-Point<br>Validation Process"]
|
106
|
+
|
107
|
+
style Start fill:#4da6ff,stroke:#0066cc,color:white
|
108
|
+
style ExtractTech fill:#f6546a,stroke:#c30052,color:white
|
109
|
+
style BuildValidationPlan fill:#10b981,stroke:#059669,color:white
|
110
|
+
style StartValidation fill:#f6546a,stroke:#c30052,color:white
|
111
|
+
```
|
112
|
+
|
113
|
+
## 📋 COMPONENT LOADING SEQUENCE
|
114
|
+
|
115
|
+
The QA validation process follows this selective loading sequence:
|
116
|
+
|
117
|
+
1. **Main Entry (This File)**: `van-qa-main.mdc`
|
118
|
+
2. **Validation Checks**:
|
119
|
+
- `van-qa-checks/dependency-check.mdc`
|
120
|
+
- `van-qa-checks/config-check.mdc`
|
121
|
+
- `van-qa-checks/environment-check.mdc`
|
122
|
+
- `van-qa-checks/build-test.mdc`
|
123
|
+
3. **Utilities (As Needed)**:
|
124
|
+
- `van-qa-utils/reports.mdc`
|
125
|
+
- `van-qa-utils/common-fixes.mdc`
|
126
|
+
- `van-qa-utils/mode-transitions.mdc`
|
127
|
+
|
128
|
+
## 📋 FINAL QA VALIDATION CHECKPOINT
|
129
|
+
|
130
|
+
```
|
131
|
+
✓ SECTION CHECKPOINT: QA VALIDATION
|
132
|
+
- Dependency Verification Passed? [YES/NO]
|
133
|
+
- Configuration Validation Passed? [YES/NO]
|
134
|
+
- Environment Validation Passed? [YES/NO]
|
135
|
+
- Minimal Build Test Passed? [YES/NO]
|
136
|
+
|
137
|
+
→ If all YES: Ready for BUILD mode transition.
|
138
|
+
→ If any NO: Fix identified issues and re-run VAN QA.
|
139
|
+
```
|
140
|
+
|
141
|
+
**Next Step (on PASS):** Trigger BUILD mode (load `van-qa-utils/mode-transitions.mdc`).
|
142
|
+
**Next Step (on FAIL):** Address issues (load `van-qa-utils/common-fixes.mdc`) and re-run `VAN QA`.
|
@@ -0,0 +1,92 @@
|
|
1
|
+
---
|
2
|
+
description: Utility for VAN QA common validation fixes
|
3
|
+
globs: van-qa-utils/common-fixes.mdc
|
4
|
+
alwaysApply: false
|
5
|
+
---
|
6
|
+
# VAN QA: COMMON VALIDATION FIXES
|
7
|
+
|
8
|
+
> **TL;DR:** This component provides common fixes for issues that may arise during the QA validation process.
|
9
|
+
|
10
|
+
## 🧪 COMMON QA VALIDATION FIXES BY CATEGORY
|
11
|
+
|
12
|
+
### Dependency Issues
|
13
|
+
|
14
|
+
| Issue | Fix |
|
15
|
+
|-------|-----|
|
16
|
+
| **Missing Node.js** | Download and install Node.js from https://nodejs.org/ |
|
17
|
+
| **Outdated npm** | Run `npm install -g npm@latest` to update |
|
18
|
+
| **Missing packages** | Run `npm install` or `npm install [package-name]` |
|
19
|
+
| **Package version conflicts** | Adjust versions in package.json and run `npm install` |
|
20
|
+
| **Dependency resolution issues** | Run `npm cache clean -f` and try installing again |
|
21
|
+
|
22
|
+
### Configuration Issues
|
23
|
+
|
24
|
+
| Issue | Fix |
|
25
|
+
|-------|-----|
|
26
|
+
| **Invalid JSON** | Use a JSON validator (e.g., jsonlint) to check syntax |
|
27
|
+
| **Missing React plugin** | Add `import react from '@vitejs/plugin-react'` and `plugins: [react()]` to vite.config.js |
|
28
|
+
| **Incompatible TypeScript config** | Update `tsconfig.json` with correct React settings |
|
29
|
+
| **Mismatched version references** | Ensure consistent versions across configuration files |
|
30
|
+
| **Missing entries in config files** | Add required fields to configuration files |
|
31
|
+
|
32
|
+
### Environment Issues
|
33
|
+
|
34
|
+
| Issue | Fix |
|
35
|
+
|-------|-----|
|
36
|
+
| **Permission denied** | Run terminal as administrator (Windows) or use sudo (Mac/Linux) |
|
37
|
+
| **Port already in use** | Kill process using the port: `netstat -ano \| findstr :PORT` then `taskkill /F /PID PID` (Windows) or `lsof -i :PORT` then `kill -9 PID` (Mac/Linux) |
|
38
|
+
| **Missing build tools** | Install required command-line tools (git, node, etc.) |
|
39
|
+
| **Environment variable issues** | Set required environment variables: `$env:VAR_NAME = "value"` (PowerShell) or `export VAR_NAME="value"` (Bash) |
|
40
|
+
| **Disk space issues** | Free up disk space, clean npm/package cache files |
|
41
|
+
|
42
|
+
### Build Test Issues
|
43
|
+
|
44
|
+
| Issue | Fix |
|
45
|
+
|-------|-----|
|
46
|
+
| **Build fails** | Check console for specific error messages |
|
47
|
+
| **Test fails** | Verify minimal configuration is correct |
|
48
|
+
| **Path issues** | Ensure paths use correct separators for the platform (`\` for Windows, `/` for Mac/Linux) |
|
49
|
+
| **Missing dependencies** | Make sure all required dependencies are installed |
|
50
|
+
| **Script permissions** | Ensure script files have execution permissions (chmod +x on Unix) |
|
51
|
+
|
52
|
+
## 📝 ISSUE DIAGNOSIS PROCEDURES
|
53
|
+
|
54
|
+
### 1. Dependency Diagnosis
|
55
|
+
```powershell
|
56
|
+
# Find conflicting dependencies
|
57
|
+
npm ls [package-name]
|
58
|
+
|
59
|
+
# Check for outdated packages
|
60
|
+
npm outdated
|
61
|
+
|
62
|
+
# Check for vulnerabilities
|
63
|
+
npm audit
|
64
|
+
```
|
65
|
+
|
66
|
+
### 2. Configuration Diagnosis
|
67
|
+
```powershell
|
68
|
+
# List all configuration files
|
69
|
+
Get-ChildItem -Recurse -Include "*.json","*.config.js" | Select-Object FullName
|
70
|
+
|
71
|
+
# Find missing references in tsconfig.json
|
72
|
+
if (Test-Path "tsconfig.json") {
|
73
|
+
$tsconfig = Get-Content "tsconfig.json" -Raw | ConvertFrom-Json
|
74
|
+
if (-not $tsconfig.compilerOptions.jsx) {
|
75
|
+
Write-Output "Missing jsx setting in tsconfig.json"
|
76
|
+
}
|
77
|
+
}
|
78
|
+
```
|
79
|
+
|
80
|
+
### 3. Environment Diagnosis
|
81
|
+
```powershell
|
82
|
+
# Check process using a port (Windows)
|
83
|
+
netstat -ano | findstr ":3000"
|
84
|
+
|
85
|
+
# List environment variables
|
86
|
+
Get-ChildItem Env:
|
87
|
+
|
88
|
+
# Check disk space
|
89
|
+
Get-PSDrive C | Select-Object Used,Free
|
90
|
+
```
|
91
|
+
|
92
|
+
**Next Step:** Return to the validation process or follow the specific fix recommendations provided above.
|
data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/mode-transitions.mdc
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
---
|
2
|
+
description: Utility for VAN QA mode transitions
|
3
|
+
globs: van-qa-utils/mode-transitions.mdc
|
4
|
+
alwaysApply: false
|
5
|
+
---
|
6
|
+
# VAN QA: MODE TRANSITIONS
|
7
|
+
|
8
|
+
> **TL;DR:** This component handles transitions between modes, particularly the QA validation to BUILD mode transition, and prevents BUILD mode access without successful QA validation.
|
9
|
+
|
10
|
+
## 🔒 BUILD MODE PREVENTION MECHANISM
|
11
|
+
|
12
|
+
The system prevents moving to BUILD mode without passing QA validation:
|
13
|
+
|
14
|
+
```mermaid
|
15
|
+
graph TD
|
16
|
+
Start["User Types: BUILD"] --> CheckQA{"QA Validation<br>Completed?"}
|
17
|
+
CheckQA -->|"Yes and Passed"| AllowBuild["Allow BUILD Mode"]
|
18
|
+
CheckQA -->|"No or Failed"| BlockBuild["BLOCK BUILD MODE"]
|
19
|
+
BlockBuild --> Message["Display:<br>⚠️ QA VALIDATION REQUIRED"]
|
20
|
+
Message --> ReturnToVANQA["Prompt: Type VAN QA"]
|
21
|
+
|
22
|
+
style CheckQA fill:#f6546a,stroke:#c30052,color:white
|
23
|
+
style BlockBuild fill:#ff0000,stroke:#990000,color:white,stroke-width:3px
|
24
|
+
style Message fill:#ff5555,stroke:#dd3333,color:white
|
25
|
+
style ReturnToVANQA fill:#4da6ff,stroke:#0066cc,color:white
|
26
|
+
```
|
27
|
+
|
28
|
+
### Implementation Example (PowerShell):
|
29
|
+
```powershell
|
30
|
+
# Check QA status before allowing BUILD mode
|
31
|
+
function Check-QAValidationStatus {
|
32
|
+
$qaStatusFile = "memory-bank\.qa_validation_status" # Assumes status is written by reports.mdc
|
33
|
+
|
34
|
+
if (Test-Path $qaStatusFile) {
|
35
|
+
$status = Get-Content $qaStatusFile -Raw
|
36
|
+
if ($status -match "PASS") {
|
37
|
+
return $true
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
# Display block message
|
42
|
+
Write-Output "`n`n"
|
43
|
+
Write-Output "🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫"
|
44
|
+
Write-Output "⛔️ BUILD MODE BLOCKED: QA VALIDATION REQUIRED"
|
45
|
+
Write-Output "⛔️ You must complete QA validation before proceeding to BUILD mode"
|
46
|
+
Write-Output "`n"
|
47
|
+
Write-Output "Type 'VAN QA' to perform technical validation"
|
48
|
+
Write-Output "`n"
|
49
|
+
Write-Output "🚫 NO IMPLEMENTATION CAN PROCEED WITHOUT VALIDATION 🚫"
|
50
|
+
Write-Output "🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫🚫"
|
51
|
+
|
52
|
+
return $false
|
53
|
+
}
|
54
|
+
```
|
55
|
+
|
56
|
+
## 🚨 MODE TRANSITION TRIGGERS
|
57
|
+
|
58
|
+
### CREATIVE to VAN QA Transition:
|
59
|
+
After completing the CREATIVE phase, trigger this message to prompt QA validation:
|
60
|
+
|
61
|
+
```
|
62
|
+
⏭️ NEXT MODE: VAN QA
|
63
|
+
To validate technical requirements before implementation, please type 'VAN QA'
|
64
|
+
```
|
65
|
+
|
66
|
+
### VAN QA to BUILD Transition (On Success):
|
67
|
+
After successful QA validation, trigger this message to allow BUILD mode:
|
68
|
+
|
69
|
+
```
|
70
|
+
✅ TECHNICAL VALIDATION COMPLETE
|
71
|
+
All prerequisites verified successfully
|
72
|
+
You may now proceed to BUILD mode
|
73
|
+
Type 'BUILD' to begin implementation
|
74
|
+
```
|
75
|
+
|
76
|
+
### Manual BUILD Mode Access (When QA Already Passed):
|
77
|
+
When the user manually types 'BUILD', check the QA status before allowing access:
|
78
|
+
|
79
|
+
```powershell
|
80
|
+
# Handle BUILD mode request
|
81
|
+
function Handle-BuildModeRequest {
|
82
|
+
if (Check-QAValidationStatus) {
|
83
|
+
# Allow transition to BUILD mode
|
84
|
+
Write-Output "`n"
|
85
|
+
Write-Output "✅ QA VALIDATION CHECK: PASSED"
|
86
|
+
Write-Output "Loading BUILD mode..."
|
87
|
+
Write-Output "`n"
|
88
|
+
|
89
|
+
# Here you would load the BUILD mode map
|
90
|
+
# [Code to load BUILD mode map]
|
91
|
+
|
92
|
+
return $true
|
93
|
+
}
|
94
|
+
|
95
|
+
# QA validation failed or not completed, BUILD mode blocked
|
96
|
+
return $false
|
97
|
+
}
|
98
|
+
```
|
99
|
+
|
100
|
+
**Next Step (on QA SUCCESS):** Continue to BUILD mode.
|
101
|
+
**Next Step (on QA FAILURE):** Return to QA validation process.
|
@@ -0,0 +1,149 @@
|
|
1
|
+
---
|
2
|
+
description: Utility for VAN QA validation reports
|
3
|
+
globs: van-qa-utils/reports.mdc
|
4
|
+
alwaysApply: false
|
5
|
+
---
|
6
|
+
# VAN QA: VALIDATION REPORTS
|
7
|
+
|
8
|
+
> **TL;DR:** This component contains the formats for comprehensive success and failure reports generated upon completion of the QA validation process.
|
9
|
+
|
10
|
+
## 📋 COMPREHENSIVE SUCCESS REPORT FORMAT
|
11
|
+
|
12
|
+
After all four validation points pass, generate this success report:
|
13
|
+
|
14
|
+
```
|
15
|
+
╔═════════════════════ 🔍 QA VALIDATION REPORT ══════════════════════╗
|
16
|
+
│ PROJECT: [Project Name] | TIMESTAMP: [Current Date/Time] │
|
17
|
+
├─────────────────────────────────────────────────────────────────────┤
|
18
|
+
│ 1️⃣ DEPENDENCIES: ✓ Compatible │
|
19
|
+
│ 2️⃣ CONFIGURATION: ✓ Valid & Compatible │
|
20
|
+
│ 3️⃣ ENVIRONMENT: ✓ Ready │
|
21
|
+
│ 4️⃣ MINIMAL BUILD: ✓ Successful & Passed │
|
22
|
+
├─────────────────────────────────────────────────────────────────────┤
|
23
|
+
│ 🚨 FINAL VERDICT: PASS │
|
24
|
+
│ ➡️ Clear to proceed to BUILD mode │
|
25
|
+
╚═════════════════════════════════════════════════════════════════════╝
|
26
|
+
```
|
27
|
+
|
28
|
+
### Success Report Generation Example:
|
29
|
+
```powershell
|
30
|
+
function Generate-SuccessReport {
|
31
|
+
param (
|
32
|
+
[string]$ProjectName = "Current Project"
|
33
|
+
)
|
34
|
+
|
35
|
+
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
|
36
|
+
|
37
|
+
$report = @"
|
38
|
+
╔═════════════════════ 🔍 QA VALIDATION REPORT ══════════════════════╗
|
39
|
+
│ PROJECT: $ProjectName | TIMESTAMP: $timestamp │
|
40
|
+
├─────────────────────────────────────────────────────────────────────┤
|
41
|
+
│ 1️⃣ DEPENDENCIES: ✓ Compatible │
|
42
|
+
│ 2️⃣ CONFIGURATION: ✓ Valid & Compatible │
|
43
|
+
│ 3️⃣ ENVIRONMENT: ✓ Ready │
|
44
|
+
│ 4️⃣ MINIMAL BUILD: ✓ Successful & Passed │
|
45
|
+
├─────────────────────────────────────────────────────────────────────┤
|
46
|
+
│ 🚨 FINAL VERDICT: PASS │
|
47
|
+
│ ➡️ Clear to proceed to BUILD mode │
|
48
|
+
╚═════════════════════════════════════════════════════════════════════╝
|
49
|
+
"@
|
50
|
+
|
51
|
+
# Save validation status (used by BUILD mode prevention mechanism)
|
52
|
+
"PASS" | Set-Content -Path "memory-bank\.qa_validation_status"
|
53
|
+
|
54
|
+
return $report
|
55
|
+
}
|
56
|
+
```
|
57
|
+
|
58
|
+
## ❌ FAILURE REPORT FORMAT
|
59
|
+
|
60
|
+
If any validation step fails, generate this detailed failure report:
|
61
|
+
|
62
|
+
```
|
63
|
+
⚠️⚠️⚠️ QA VALIDATION FAILED ⚠️⚠️⚠️
|
64
|
+
|
65
|
+
The following issues must be resolved before proceeding to BUILD mode:
|
66
|
+
|
67
|
+
1️⃣ DEPENDENCY ISSUES:
|
68
|
+
- [Detailed description of dependency issues]
|
69
|
+
- [Recommended fix]
|
70
|
+
|
71
|
+
2️⃣ CONFIGURATION ISSUES:
|
72
|
+
- [Detailed description of configuration issues]
|
73
|
+
- [Recommended fix]
|
74
|
+
|
75
|
+
3️⃣ ENVIRONMENT ISSUES:
|
76
|
+
- [Detailed description of environment issues]
|
77
|
+
- [Recommended fix]
|
78
|
+
|
79
|
+
4️⃣ BUILD TEST ISSUES:
|
80
|
+
- [Detailed description of build test issues]
|
81
|
+
- [Recommended fix]
|
82
|
+
|
83
|
+
⚠️ BUILD MODE IS BLOCKED until these issues are resolved.
|
84
|
+
Type 'VAN QA' after fixing the issues to re-validate.
|
85
|
+
```
|
86
|
+
|
87
|
+
### Failure Report Generation Example:
|
88
|
+
```powershell
|
89
|
+
function Generate-FailureReport {
|
90
|
+
param (
|
91
|
+
[string[]]$DependencyIssues = @(),
|
92
|
+
[string[]]$ConfigIssues = @(),
|
93
|
+
[string[]]$EnvironmentIssues = @(),
|
94
|
+
[string[]]$BuildIssues = @()
|
95
|
+
)
|
96
|
+
|
97
|
+
$report = @"
|
98
|
+
⚠️⚠️⚠️ QA VALIDATION FAILED ⚠️⚠️⚠️
|
99
|
+
|
100
|
+
The following issues must be resolved before proceeding to BUILD mode:
|
101
|
+
|
102
|
+
"@
|
103
|
+
|
104
|
+
if ($DependencyIssues.Count -gt 0) {
|
105
|
+
$report += @"
|
106
|
+
1️⃣ DEPENDENCY ISSUES:
|
107
|
+
$(($DependencyIssues | ForEach-Object { "- $_" }) -join "`n")
|
108
|
+
|
109
|
+
"@
|
110
|
+
}
|
111
|
+
|
112
|
+
if ($ConfigIssues.Count -gt 0) {
|
113
|
+
$report += @"
|
114
|
+
2️⃣ CONFIGURATION ISSUES:
|
115
|
+
$(($ConfigIssues | ForEach-Object { "- $_" }) -join "`n")
|
116
|
+
|
117
|
+
"@
|
118
|
+
}
|
119
|
+
|
120
|
+
if ($EnvironmentIssues.Count -gt 0) {
|
121
|
+
$report += @"
|
122
|
+
3️⃣ ENVIRONMENT ISSUES:
|
123
|
+
$(($EnvironmentIssues | ForEach-Object { "- $_" }) -join "`n")
|
124
|
+
|
125
|
+
"@
|
126
|
+
}
|
127
|
+
|
128
|
+
if ($BuildIssues.Count -gt 0) {
|
129
|
+
$report += @"
|
130
|
+
4️⃣ BUILD TEST ISSUES:
|
131
|
+
$(($BuildIssues | ForEach-Object { "- $_" }) -join "`n")
|
132
|
+
|
133
|
+
"@
|
134
|
+
}
|
135
|
+
|
136
|
+
$report += @"
|
137
|
+
⚠️ BUILD MODE IS BLOCKED until these issues are resolved.
|
138
|
+
Type 'VAN QA' after fixing the issues to re-validate.
|
139
|
+
"@
|
140
|
+
|
141
|
+
# Save validation status (used by BUILD mode prevention mechanism)
|
142
|
+
"FAIL" | Set-Content -Path "memory-bank\.qa_validation_status"
|
143
|
+
|
144
|
+
return $report
|
145
|
+
}
|
146
|
+
```
|
147
|
+
|
148
|
+
**Next Step (on SUCCESS):** Load `van-qa-utils/mode-transitions.mdc` to handle BUILD mode transition.
|
149
|
+
**Next Step (on FAILURE):** Load `van-qa-utils/common-fixes.mdc` for issue remediation guidance.
|
data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/rule-calling-guide.mdc
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
---
|
2
|
+
description: Comprehensive guide for calling VAN QA rules
|
3
|
+
globs: van-qa-utils/rule-calling-guide.mdc
|
4
|
+
alwaysApply: false
|
5
|
+
---
|
6
|
+
# VAN QA: COMPREHENSIVE RULE CALLING GUIDE
|
7
|
+
|
8
|
+
> **TL;DR:** This reference guide shows how to properly call all VAN QA rules at the right time during the validation process.
|
9
|
+
|
10
|
+
## 🔍 RULE CALLING BASICS
|
11
|
+
|
12
|
+
Remember these key principles:
|
13
|
+
1. Always use the `fetch_rules` tool to load rules
|
14
|
+
2. Use exact rule paths
|
15
|
+
3. Load components only when needed
|
16
|
+
|
17
|
+
## 📋 MAIN QA ENTRY POINT
|
18
|
+
|
19
|
+
When user types "VAN QA", load the main entry point:
|
20
|
+
|
21
|
+
```
|
22
|
+
fetch_rules with "isolation_rules/visual-maps/van-qa-main"
|
23
|
+
```
|
24
|
+
|
25
|
+
## 📋 VALIDATION CHECKS
|
26
|
+
|
27
|
+
Load these components sequentially during validation:
|
28
|
+
|
29
|
+
```
|
30
|
+
1. fetch_rules with "isolation_rules/visual-maps/van-qa-checks/dependency-check"
|
31
|
+
2. fetch_rules with "isolation_rules/visual-maps/van-qa-checks/config-check"
|
32
|
+
3. fetch_rules with "isolation_rules/visual-maps/van-qa-checks/environment-check"
|
33
|
+
4. fetch_rules with "isolation_rules/visual-maps/van-qa-checks/build-test"
|
34
|
+
```
|
35
|
+
|
36
|
+
## 📋 UTILITY COMPONENTS
|
37
|
+
|
38
|
+
Load these when needed based on validation results:
|
39
|
+
|
40
|
+
```
|
41
|
+
- For reports: fetch_rules with "isolation_rules/visual-maps/van-qa-utils/reports"
|
42
|
+
- For fixes: fetch_rules with "isolation_rules/visual-maps/van-qa-utils/common-fixes"
|
43
|
+
- For transitions: fetch_rules with "isolation_rules/visual-maps/van-qa-utils/mode-transitions"
|
44
|
+
```
|
45
|
+
|
46
|
+
## ⚠️ CRITICAL REMINDERS
|
47
|
+
|
48
|
+
Remember to call these rules at these specific points:
|
49
|
+
- ALWAYS load the main QA entry point when "VAN QA" is typed
|
50
|
+
- ALWAYS load dependency-check before starting validation
|
51
|
+
- ALWAYS load reports after completing validation
|
52
|
+
- ALWAYS load mode-transitions after successful validation
|
53
|
+
- ALWAYS load common-fixes after failed validation
|
54
|
+
|
55
|
+
## 🔄 FULL VALIDATION SEQUENCE
|
56
|
+
|
57
|
+
Complete sequence for a QA validation process:
|
58
|
+
|
59
|
+
1. Load main entry: `isolation_rules/visual-maps/van-qa-main`
|
60
|
+
2. Load first check: `isolation_rules/visual-maps/van-qa-checks/dependency-check`
|
61
|
+
3. Load second check: `isolation_rules/visual-maps/van-qa-checks/config-check`
|
62
|
+
4. Load third check: `isolation_rules/visual-maps/van-qa-checks/environment-check`
|
63
|
+
5. Load fourth check: `isolation_rules/visual-maps/van-qa-checks/build-test`
|
64
|
+
6. If pass, load: `isolation_rules/visual-maps/van-qa-utils/reports`
|
65
|
+
7. If pass, load: `isolation_rules/visual-maps/van-qa-utils/mode-transitions`
|
66
|
+
8. If fail, load: `isolation_rules/visual-maps/van-qa-utils/common-fixes`
|
data/.cursor/rules/isolation_rules/visual-maps/van_mode_split/van-qa-utils/rule-calling-help.mdc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
description: Utility for remembering how to call VAN QA rules
|
3
|
+
globs: van-qa-utils/rule-calling-help.mdc
|
4
|
+
alwaysApply: false
|
5
|
+
---
|
6
|
+
# VAN QA: HOW TO CALL RULES
|
7
|
+
|
8
|
+
> **TL;DR:** This file provides examples and reminders on how to properly call VAN QA rules using the fetch_rules tool.
|
9
|
+
|
10
|
+
## 🚨 RULE CALLING SYNTAX
|
11
|
+
|
12
|
+
Always use the `fetch_rules` tool with the correct syntax:
|
13
|
+
|
14
|
+
```
|
15
|
+
<function_calls>
|
16
|
+
<invoke name="fetch_rules">
|
17
|
+
<parameter name="rule_names">["isolation_rules/visual-maps/rule-name"]
|
18
|
+
</invoke>
|
19
|
+
</function_calls>
|