Gemini - Project Constitution
Priority: Code reliability and deterministic mappings.
Output: Clean, idiomatic Playwright (JS/TS) code.
No guessing: If a Selenium pattern is unknown, flag it for manual review or secondary research.
🏗️ Architectural Invariants
Use the 3-Layer Architecture (Architecture/Navigation/Tools).
All intermediate data resides in .tmp/.
gemini.md is the source of truth for schemas.
graph TD
User["User / QA Engineer"] -->|Pastes Java Code| UI["React/HTML UI"]
UI -->|REST API POST| Proxy["Node/PowerShell Proxy"]
Proxy -->|Sanitized Prompt| LLM["Ollama Local Engine"]
LLM -->|Generates TS| Proxy
Proxy -->|Returns Code| UI
UI -->|Displays Result| User
subgraph "Local Machine (Secure Zone)"
UI
Proxy
LLM
end
Loading
North Star: UI-based Selenium Java to Playwright (JS/TS) converter.
Integrations: TestNG (Selenium Java) to Playwright (JS/TS).
Source of Truth: UI Input (Code editor/Text area).
Delivery Payload: New local directory creation + UI display of converted code.
Behavioral Rules: Comprehensive conversion; prioritize readability over 1:1 mapping.
{
"source_code" : " string" ,
"source_language" : " java" ,
"framework" : " testng" ,
"target_language" : " javascript|typescript"
}
Output Schema (Converted Code)
{
"converted_code" : " string" ,
"target_path" : " string" ,
"status" : " success|error" ,
"logs" : [" string" ]
}
2026-01-28: Constitution initialized.