Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .antigravity/automation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"project_name": "antigravity-manager-src",
"base_branch": "main",
"branch_prefix": "codex/",
"git": {
"push_remote": "fork",
"base_remote": "origin"
},
"validation": {
"local": [
"if (-not (Get-Command npm -ErrorAction SilentlyContinue)) { throw 'npm no esta en PATH' } else { npm run build }",
"if (-not (Get-Command cargo -ErrorAction SilentlyContinue)) { throw 'cargo no esta en PATH' } else { cargo check --manifest-path src-tauri\\Cargo.toml }"
],
"ci": [
"npm install --legacy-peer-deps",
"npx tsc --noEmit",
"npm run build",
"(cd src-tauri && cargo fmt -- --check)",
"(cd src-tauri && cargo clippy --all-targets --all-features -- -D warnings)",
"(cd src-tauri && cargo check)"
]
},
"pull_request": {
"enabled": true,
"draft": true
}
}
4 changes: 4 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Use `AGENTS.md` as the repo entrypoint.
If `AI.md` exists, read it too.
Use `docs/ARCHITECTURE.md`, `docs/DECISIONS.md`, `docs/PROGRESS.md`, and `docs/HANDOVER.md` when relevant.
Do not commit secrets or local-only memory files.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ __pycache__/

DOCKER_DEPLOYMENT.md
pnpm-lock.yaml
AI.local.md
CLAUDE.local.md
MEMORY.md
.antigravity/local.json
22 changes: 22 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# AGENTS.md - Antigravity Manager Fork

Usa `AI.md` como resumen neutral y `docs/` como base de conocimiento tecnica.

## Comandos rapidos

- `npm run dev`
- `npm run tauri dev`
- `npm run build`
- `npm run tauri build`

## Antes de editar

- lee `AI.md`
- revisa `README.md`
- usa `docs/ARCHITECTURE.md`, `docs/DECISIONS.md`, `docs/PROGRESS.md` y
`docs/HANDOVER.md` como memoria de trabajo

## Reglas

- no subas secretos ni entornos locales
- registra cambios de arquitectura y estado antes de cerrar la sesion
17 changes: 17 additions & 0 deletions AI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Antigravity Manager - AI Instructions

Este es el núcleo de gestión del ecosistema Antigravity. Siga estas reglas estrictamente.

## Comandos de Ejecución
- **Build (UI):** `npm run build`
- **Build (Tauri):** `npm run tauri build`
- **Dev:** `npm run dev` / `npm run tauri dev`

## Reglas de Desarrollo
- **Tauri/React:** La aplicación usa Tauri para el backend (Rust) y React/Vite para el frontend (TS).
- **Consistencia:** Mantenga las interfaces limpias y el estado sincronizado con el backend de Rust.
- **Documentación Local:** Antes de modificar el core de Tauri, lea `docs/` para entender la comunicación via comandos.

## Estado del Proyecto
- **Versión Actual:** Revisa `package.json`.
- **Progreso:** Revisa `docs/PROGRESS.md`.
3 changes: 3 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@AGENTS.md

Si existe `AI.md`, leelo tambien.
2 changes: 2 additions & 0 deletions GEMINI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Read `AGENTS.md` first.
If `AI.md` exists, read it too.
13 changes: 13 additions & 0 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Arquitectura del fork `antigravity-manager-src`

## Capas principales

- Frontend de escritorio: React + Vite
- Backend de aplicacion: Tauri
- Logica de proxy y modulos internos: Rust
- Documentacion tecnica especializada: `docs/`

## Regla de trabajo

Cuando una tarea afecte una integracion concreta, usa el documento tecnico mas
cercano dentro de `docs/` antes de redisenar el flujo.
18 changes: 18 additions & 0 deletions docs/DECISIONS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Registro de decisiones tecnicas

Este archivo se usa para registrar decisiones nuevas del fork local de
`Antigravity-Manager`.

## Decision 1 - Mantener docs especializados y una capa minima de estado

- Contexto: el repo ya trae muchos documentos tecnicos por tema.
- Decision: conservar esos documentos y sumar esta capa corta de estado:
`ARCHITECTURE.md`, `DECISIONS.md`, `PROGRESS.md`, `HANDOVER.md`.

## Decision 2 - Separar remoto de push y remoto base

- Contexto: este repo trabaja como fork local de `Antigravity-Manager`, con
`origin` apuntando al upstream y `fork` apuntando al repo del usuario.
- Decision: la automatizacion usa `git.push_remote = fork` y
`git.base_remote = origin` para evitar pushes al remoto equivocado y para
preparar PRs contra el upstream correcto.
12 changes: 12 additions & 0 deletions docs/HANDOVER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Handover

## Estado actual

No hay un handover bloqueante registrado en este momento.

## Regla de uso

Si una sesion queda a medias:
- deja el modulo exacto
- deja el archivo o documentos abiertos
- deja el siguiente comando de validacion
18 changes: 18 additions & 0 deletions docs/PROGRESS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Progreso

## Estado actual

- Repo con documentacion tecnica abundante por modulo.
- `AI.md` agregado como resumen neutral.
- `AGENTS.md` agregado como punto de entrada estandar.
- `.github/copilot-instructions.md` agregado como adaptador para GitHub.
- `.antigravity/automation.json` agregado con remotos separados para fork y
upstream.
- Se mantiene `ci.yml` existente como fuente principal de validacion en GitHub.

## Siguiente uso recomendado

Cuando se haga una intervencion real, deja aqui:
- que modulo se toco
- que se valido
- que riesgo queda abierto
2 changes: 1 addition & 1 deletion src-tauri/src/models/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl Default for CircuitBreakerConfig {
impl AppConfig {
pub fn new() -> Self {
Self {
language: "zh".to_string(),
language: "es".to_string(),
theme: "system".to_string(),
auto_refresh: true,
refresh_interval: 15,
Expand Down
3 changes: 2 additions & 1 deletion src-tauri/src/modules/i18n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ pub struct TrayTexts {
fn load_translations(lang: &str) -> HashMap<String, String> {
let json_content = match lang {
"en" | "en-US" => include_str!("../../../src/locales/en.json"),
"es" | "es-ES" | "es-MX" => include_str!("../../../src/locales/es.json"),
"tr" | "tr-TR" => include_str!("../../../src/locales/tr.json"),
_ => include_str!("../../../src/locales/zh.json"),
_ => include_str!("../../../src/locales/es.json"),
};

let v: Value = serde_json::from_str(json_content)
Expand Down
2 changes: 1 addition & 1 deletion src/components/navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function Navbar() {
{/* 设置按钮 - 自己处理响应式 */}
<NavSettings
theme={(config?.theme as 'light' | 'dark') || 'light'}
currentLanguage={config?.language || 'en'}
currentLanguage={config?.language || 'es'}
onThemeToggle={toggleTheme}
onLanguageChange={handleLanguageChange}
/>
Expand Down
3 changes: 2 additions & 1 deletion src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ i18n
translation: my,
},
},
fallbackLng: "en",
lng: "es",
fallbackLng: "es",
debug: false, // Set to true for development

interpolation: {
Expand Down
Loading