Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
a7fd984
Create AGENTS.md
GaruBrothers Apr 14, 2026
de16f1f
Modelos free
GaruBrothers Apr 14, 2026
5123e14
Rename
GaruBrothers Apr 14, 2026
9eaf01c
Branding: renombra Claude Code a BotValia y agrega modo OpenRouter
GaruBrothers Apr 14, 2026
1ba8342
OpenRouter: corrige endpoint y autenticación Anthropic-compatible
GaruBrothers Apr 14, 2026
bd00871
OpenRouter: reduce tokens por defecto para evitar error 402 por créditos
GaruBrothers Apr 14, 2026
36a86ca
Prioriza modelos gratuitos rápidos en OpenRouter con preset y límites…
GaruBrothers Apr 14, 2026
b9b4a92
Corrige IDs de modelos OpenRouter y normaliza prefijos para modo free…
GaruBrothers Apr 14, 2026
6941020
Prioriza modelos free rápidos de OpenRouter y agrega listado de model…
GaruBrothers Apr 14, 2026
eb5ecde
Agrega modelo OpenRouter fijo por archivo y comandos para set/clear m…
GaruBrothers Apr 14, 2026
1e78ed4
Desactiva aviso heredado de instalador nativo en notificaciones de ar…
GaruBrothers Apr 14, 2026
5070c69
Implementa memoria infinita de 3 niveles con búsqueda semántica y com…
GaruBrothers Apr 14, 2026
e2a01c0
Implementa enrutador automático de modelo por intención (código vs ge…
GaruBrothers Apr 14, 2026
34df807
Muestra modelo activo por turno con origen de selección en la convers…
GaruBrothers Apr 14, 2026
ec29bb3
Configura router de modelos con fallback por perfil (código y general…
GaruBrothers Apr 14, 2026
f6e2026
Muestra siempre el modelo activo en el footer y sincroniza selección …
GaruBrothers Apr 14, 2026
e0251d6
Cambia identidad base del sistema a Agente Luca 1.0 y elimina forzado…
GaruBrothers Apr 14, 2026
d3ec751
Cambia el logo de BotValia a un robot celeste
GaruBrothers Apr 14, 2026
2741882
Falbacks
GaruBrothers Apr 14, 2026
e82536e
Correcion cambio de modelo fallback auto
GaruBrothers Apr 14, 2026
c30d066
xxx
GaruBrothers Apr 14, 2026
a79dde1
Revert "xxx"
GaruBrothers Apr 14, 2026
0f5d167
Funmcional
GaruBrothers Apr 15, 2026
55e0ea7
Memoria fase 1
GaruBrothers Apr 15, 2026
7f1259a
Memoria fase 2
GaruBrothers Apr 15, 2026
9fc5c62
Memoria fase 3
GaruBrothers Apr 15, 2026
c1f900e
Improve validation tooling and startup checks
GaruBrothers Apr 28, 2026
0347f46
Restore SDK and auth type contracts
GaruBrothers Apr 28, 2026
31526e3
Rebrand BotValia copy and tighten SDK types
GaruBrothers Apr 28, 2026
c05430a
Restore optional module stubs and control contracts
GaruBrothers Apr 28, 2026
7849d8f
Restore plugin contracts and normalize ant gates
GaruBrothers Apr 28, 2026
d41b70d
Tighten restored type contracts and runtime shims
GaruBrothers Apr 29, 2026
c698cc9
Add auto provider routing and fallback launcher
GaruBrothers Apr 29, 2026
c013ade
Improve auto model fallbacks
GaruBrothers Apr 29, 2026
d6e7a9f
Keep OpenRouter auto primaries with provider fallbacks
GaruBrothers Apr 29, 2026
1b4e2d4
Add free-only model selection and provider autos
GaruBrothers Apr 29, 2026
1df32f4
Show selected mode and response model in footer
GaruBrothers Apr 29, 2026
d034b6e
Add Auto All free model routing
GaruBrothers Apr 29, 2026
4e5b8a5
Split free model picker into auto and manual menus
GaruBrothers Apr 29, 2026
990b8e1
Fix auto model UI selection state
GaruBrothers Apr 29, 2026
b04fea3
Use botvalia in CLI resume hints
GaruBrothers Apr 29, 2026
9ac49bf
Expand free fallback routing and add swarm plan
GaruBrothers Apr 29, 2026
89e6ffa
Auto-repair Anthropic SDK runtime files
GaruBrothers Apr 30, 2026
8e4eecf
Add team event routing and fallback smoke test
GaruBrothers Apr 30, 2026
f6e3289
Add swarm team event envelope
GaruBrothers Apr 30, 2026
e4389f5
Align REPL auto routing and add mailbox wakeups
GaruBrothers Apr 30, 2026
b750bf1
Wake inbox consumers on local mailbox writes
GaruBrothers Apr 30, 2026
21095ab
Reforzar fallbacks free con pools de cuentas y endpoints
GaruBrothers Apr 30, 2026
eb10581
Mejorar mensajes de error para proveedores free
GaruBrothers Apr 30, 2026
f9c4487
Agregar prueba difícil en resultTest
GaruBrothers Apr 30, 2026
ad544ee
Reforzar router free y documentar perfiles locales
GaruBrothers Apr 30, 2026
f1a99f4
Alinear primarios free con el catalogo vigente
GaruBrothers Apr 30, 2026
69caee9
Renovar logo de arranque y limpiar branding visible
GaruBrothers Apr 30, 2026
5c3ffc0
Limpiar branding visible en auto y agentes
GaruBrothers Apr 30, 2026
e941875
Reforzar verificación final y artefactos físicos
GaruBrothers Apr 30, 2026
030fc5a
Agregar control /swarm para coordinación en vivo
GaruBrothers Apr 30, 2026
47f7ace
Mejorar logo de inicio y guía de swarm
GaruBrothers Apr 30, 2026
678a560
Refinar logo de inicio con prisma a color
GaruBrothers Apr 30, 2026
2fb32ed
Adoptar logo minimal para el arranque
GaruBrothers Apr 30, 2026
c3f73df
Activar swarms y agregar atajo de creación
GaruBrothers Apr 30, 2026
fbf282a
Alinear logo de inicio con la referencia visual
GaruBrothers Apr 30, 2026
2113468
Crear swarms desde el comando sin depender del modelo
GaruBrothers Apr 30, 2026
896eca1
Corregir creación de swarms en modo free
GaruBrothers Apr 30, 2026
0bd93fd
Silenciar notificaciones idle del swarm
GaruBrothers Apr 30, 2026
b6f276b
Endurecer el arranque silencioso del swarm
GaruBrothers Apr 30, 2026
1840506
Evitar que Enter se filtre al abrir /swarm
GaruBrothers Apr 30, 2026
d2c0093
Subir cambios pendientes de BotValia Code
GaruBrothers Apr 30, 2026
9952261
Agregar plan para BotValia Desktop
GaruBrothers Apr 30, 2026
882c9d7
Crear base del runtime reutilizable
GaruBrothers Apr 30, 2026
e3004a4
Conectar el runtime con QueryEngine
GaruBrothers Apr 30, 2026
adeaba2
Usar el runtime en el wrapper de QueryEngine
GaruBrothers Apr 30, 2026
c4ac24d
Registrar sesiones activas del runtime
GaruBrothers Apr 30, 2026
cbc82a2
Agregar servicio de sesiones del runtime
GaruBrothers Apr 30, 2026
ad90074
Definir protocolo local del runtime
GaruBrothers Apr 30, 2026
7260f79
Agregar transporte WebSocket del runtime
GaruBrothers Apr 30, 2026
c105dd5
Agregar bridge local del runtime desktop
GaruBrothers Apr 30, 2026
b1ce207
Agregar inspector visual del runtime
GaruBrothers Apr 30, 2026
4794542
Corregir carga del comando runtime
GaruBrothers Apr 30, 2026
681e57a
Mantener visible la sesión principal del runtime
GaruBrothers Apr 30, 2026
957d227
Registrar la sesión runtime en el REPL interactivo
GaruBrothers Apr 30, 2026
21ed04c
Agregar controles al inspector runtime
GaruBrothers Apr 30, 2026
f2c49f1
Mostrar conversación y swarm en el inspector runtime
GaruBrothers Apr 30, 2026
3930775
Mostrar BotValia Code grande en el arranque
GaruBrothers Apr 30, 2026
b81f881
Mejorar transcript y controles de swarm en el inspector
GaruBrothers Apr 30, 2026
5ec830f
Agregar auto refresh y monitor de swarm al inspector
GaruBrothers May 1, 2026
e831793
Rediseñar el inspector runtime como workspace de chat
GaruBrothers May 1, 2026
97799ed
Checkpoint BotValia runtime and UI state
GaruBrothers May 2, 2026
521cf00
Integrate CodeUI runtime shell and unify botvalia launcher
GaruBrothers May 2, 2026
8c8cdc0
Improve direct @agent messaging
GaruBrothers May 2, 2026
f72b61d
Align botvalia launcher startup with auto mode
GaruBrothers May 2, 2026
3d6bc6f
Stabilize CLI startup shell
GaruBrothers May 2, 2026
431cf13
Stabilize BotValia CLI shell and runtime UI
GaruBrothers May 2, 2026
77ce3bd
Record stable CLI and UI checkpoints
GaruBrothers May 2, 2026
832f7a7
Ignore local skill and runtime build artifacts
GaruBrothers May 2, 2026
295d6de
Fix runtime web streaming and channel context
GaruBrothers May 2, 2026
24a6d12
Add task rail and runtime thinking stream
GaruBrothers May 2, 2026
6f4574f
Update docs and compact runtime chat
GaruBrothers May 2, 2026
2273e02
Replace visible Claude branding with BotValia
GaruBrothers May 2, 2026
acc1a36
Polish premium theme and model help
GaruBrothers May 3, 2026
da5c0f2
Docs: agrega regla para no tocar sistema sin permiso
GaruBrothers May 4, 2026
dfa8717
Harden OSS runtime security and execution UX
GaruBrothers May 4, 2026
05d6bc6
Harden OSS release hygiene and internal insights safety
GaruBrothers May 4, 2026
7531bd7
Sanitize cached insights session metadata
GaruBrothers May 4, 2026
92c55f6
Hide OSS-safe updater banner in normal CLI flow
GaruBrothers May 4, 2026
4772dba
Fix CI security preflight install resolution
GaruBrothers May 4, 2026
f639c71
Tighten security preflight and remediate audit backlog
GaruBrothers May 4, 2026
f8cd49a
Rename visible legacy branding to BotValia
GaruBrothers May 4, 2026
d6d1ace
Adopt .botvalia skills path in CLI UX
GaruBrothers May 4, 2026
2ae878d
Improve copy fidelity and BotValia identity UX
GaruBrothers May 4, 2026
7143603
docs: enforce pnpm migration guidance
GaruBrothers May 13, 2026
f81dd84
Harden runtime session ownership
GaruBrothers May 13, 2026
4b1eb5c
Add remaining local workflow updates
GaruBrothers May 13, 2026
77cddd2
Hide interactive thinking traces
GaruBrothers May 13, 2026
a7def7e
Simplify manual model picker overflow hints
GaruBrothers May 13, 2026
9816b87
Clarify queued prompt state in the input
GaruBrothers May 13, 2026
54dba7a
Fix /model update audit snapshot
GaruBrothers May 13, 2026
ca1c16c
Polish runtime UI and inspector
GaruBrothers May 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .botvalia/openrouter-model.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
qwen/qwen3-coder:free
33 changes: 33 additions & 0 deletions .github/workflows/security-preflight.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Security Preflight

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
security-preflight:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.12

- name: Run OSS security preflight
run: bun run security:preflight

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Boot version check
run: bun run version
49 changes: 48 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,57 @@ coverage/
.turbo/

*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
*.tmp
*.swp
*.swo
*.pid
*.seed

.claude/
.botvalia/
.agents/
.idea/
.vscode/
.vscode/
skills-lock.json

# Secrets and local env overrides
.env
.env.*
!.env.example
!.env.sample
!.env.template
!.env.test.example
!.env.test.sample
*.local
*.secret
*.secrets
.npmrc

# Certificates and private keys
*.pem
*.key
*.p12
*.pfx
*.crt
*.cer
*.der
*.csr

# Local session/state artifacts
server-sessions.json
*.session.json
*.sqlite
*.sqlite3
*.db
*.db-*

# Generated package/runtime artifacts
*.tgz
BotValia-CodeUI/.next/
BotValia-CodeUI/.runtime-next/
BotValia-CodeUI/.swc/
BotValia-CodeUI/.vercel/
BotValia-CodeUI/out/
79 changes: 79 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<!-- IA-SYSTEM-PROTECTION:BEGIN -->
> **REGLA OBLIGATORIA PARA CUALQUIER IA**
>
> Ningun agente de IA, incluyendo Codex, ChatGPT, Gemini o similares, puede modificar, mover, borrar, instalar, desinstalar o intervenir archivos del sistema Windows, navegadores, perfiles de navegador, extensiones, complementos, configuraciones del equipo ni otros recursos fuera de este proyecto sin permiso explicito y especifico del usuario.
>
> Si el usuario no lo pide de forma explicita y puntual, se asume prohibido.
<!-- IA-SYSTEM-PROTECTION:END -->
# AGENTS.md

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.

## What This Is

Reconstructed TypeScript source tree of the Codex CLI, recovered from source maps of the public npm release. Some native modules are replaced with compatible shims in `shims/`. This is **not** the original private upstream development repo.

## Development Commands

```bash
bun install # Install dependencies (includes local shim packages)
bun run dev # Start CLI interactively (alias: bun run start)
bun run version # Verify the CLI boots and prints version
```

**Requirements:** Bun >= 1.3.5, Node.js >= 24

There is no lint, test, or build script. Validation is manual: boot the CLI and exercise the changed path.

## Boot Sequence

`src/dev-entry.ts` is the entry point. It scans for missing relative imports across `src/` and `vendor/`. If any are missing, it prints a diagnostic and exits. When all imports resolve, it forwards to `src/entrypoints/cli.tsx` → `src/main.tsx` which runs full initialization (auth, GrowthBook, MCP, settings, Commander.js) and launches the React/Ink REPL.

## Architecture

- **`src/main.tsx`** — Full CLI initialization: side-effect imports for startup profiling, MDM reads, and keychain prefetch must stay at the top and in order.
- **`src/query.ts` / `src/QueryEngine.ts`** — Streaming API call loop, tool execution, auto-compaction, session lifecycle, and persistence.
- **`src/commands.ts`** — Slash command registration (`/commit`, `/review`, `/config`, `/compact`, `/memory`, `/plan`, etc.).
- **`src/tools/`** — 53 tool implementations, each in its own directory (e.g., `BashTool/`, `FileEditTool/`, `AgentTool/`).
- **`src/commands/`** — 87 slash command implementations, each in its own directory with an `index.ts` entry.
- **`src/services/`** — Backend services: API client (`api/`), MCP protocol (`mcp/`), session compaction (`compact/`), analytics/feature flags (`analytics/`).
- **`src/components/`** — Terminal UI components built with React + Ink (messages, inputs, diffs, permission dialogs, status bar).
- **`src/hooks/`** — Custom React hooks for tools, voice, IDE integration, vim mode, sessions, tasks.
- **`src/ink/`** — Custom Ink fork handling layout, focus, ANSI rendering, virtual scrolling, and click detection.
- **`src/vim/`** — Full vim keybinding engine (motions, operators, text objects).
- **`src/coordinator/`** — Multi-agent coordination, conditionally loaded via `bun:bundle` feature flag `COORDINATOR_MODE`.
- **`src/assistant/`** — KAIROS assistant mode, conditionally loaded via feature flag `KAIROS`.
- **`src/bridge/`** — Remote bridge control for web/IDE connections.
- **`shims/`** — Compatibility replacements for private native modules (`color-diff-napi`, `modifiers-napi`, `url-handler-napi`, and upstream-private MCP packages).
- **`vendor/`** — Native binding source code (`audio-capture-src`, `image-processor-src`, `modifiers-napi-src`, `url-handler-src`).

## Code Style

- TypeScript with ESM imports and `react-jsx`. `strict` mode is off in tsconfig.
- Most files omit semicolons and use single quotes — match surrounding file style exactly.
- `camelCase` for variables/functions, `PascalCase` for React components and classes, `kebab-case` for command directories.
- Import order: when comments warn against reordering, keep imports stable. `main.tsx` side-effect imports at the top are order-sensitive.
- Path alias: `src/*` maps to `./src/*` via tsconfig paths.
- Prefer small, focused modules over broad utility dumps.

## Testing & Validation

There is no automated test suite. For any change:

1. Boot the CLI with `bun run dev`.
2. Smoke-test version output with `bun run version`.
3. Exercise the specific command, service, or UI path you changed.

When adding tests, place them close to the feature they cover and name them after the module or behavior under test.

## Commit Style

Use short, imperative commit subjects (e.g., `Fix MCP config normalization`). In PRs, explain user-visible impact and list validation steps.

## Key Constraints

- `dev-entry.ts` gates startup on zero missing imports. Any new module must be resolvable or the CLI won't boot.
- Conditional imports via `bun:bundle` feature flags (`COORDINATOR_MODE`, `KAIROS`) use `require()` to avoid circular dependencies — preserve this pattern.
- Changes to shims should maintain API compatibility with the original native modules they replace.
- This is a reconstructed source tree — prefer minimal, auditable changes. Document any workaround added because a module was restored with fallbacks or shim behavior.

93 changes: 93 additions & 0 deletions BASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<!-- IA-SYSTEM-PROTECTION:BEGIN -->
> **REGLA OBLIGATORIA PARA CUALQUIER IA**
>
> Ningun agente de IA, incluyendo Codex, Claude, ChatGPT, Gemini o similares, puede modificar, mover, borrar, instalar, desinstalar o intervenir archivos del sistema Windows, navegadores, perfiles de navegador, extensiones, complementos, configuraciones del equipo ni otros recursos fuera de este proyecto sin permiso explicito y especifico del usuario.
>
> Si el usuario no lo pide de forma explicita y puntual, se asume prohibido.
<!-- IA-SYSTEM-PROTECTION:END -->
# BotValia Base

## Overview

Base Markdown template for documenting the `botvalia-code` repository.

## Project

- Name: `@botvalia/botvalia-code`
- Type: Reconstructed TypeScript CLI source tree
- Runtime: Bun `>=1.3.5`, Node.js `>=24`

## Purpose

Describe here what this project does, who it is for, and the main problem it solves.

## Quickstart

```bash
bun install
bun run dev:auto
bun run version
```

## Main Areas

- `src/`: core CLI source code
- `shims/`: compatibility replacements for native/private modules
- `vendor/`: native binding source code
- `scripts/`: helper scripts for local execution modes

## Notes

- `src/dev-entry.ts` blocks startup if relative imports are missing.
- This repository is reconstructed, so changes should stay minimal and auditable.
- Manual validation is preferred for each changed path.

## Model Routing

- `/model` top level: `Auto (All)`, `Auto (OpenRouter)`, `Auto (Ollama)`, `Manual`.
- `Auto (All)`: recommended hybrid free routing across OpenRouter and Ollama, organized by `Code`, `General`, and `Fast`.
- `Auto (OpenRouter)`: same-provider OpenRouter routing with multiple curated fallbacks per lane.
- `Auto (Ollama)`: same-provider Ollama routing with multiple curated fallbacks per lane.
- `Manual`: opens a second list with fixed models ordered by use-case (`Code`, `General`, `Fast`).
- `openrouter/free`: OpenRouter router for free models, not a fixed manual model.
- BotValia persists per-project route cooldowns in `.claude/model-route-cooldowns.json` so failed free routes go to the back of the queue between sessions.
- Launchers can query the live OpenRouter free catalog via `/api/v1/models` and prefer models that are actually free/visible there.
- Launchers can query Ollama inventory via `/api/tags` and prefer models that are actually installed.
- `BOTVALIA_OPENROUTER_API_KEYS`: comma-separated OpenRouter key pool for credential/credit failover.
- `BOTVALIA_OLLAMA_ENDPOINTS`: semicolon/comma-separated endpoint pool using `baseUrl|apiKey`.
- `BOTVALIA_OLLAMA_BASE_URLS` + `BOTVALIA_OLLAMA_API_KEYS`: alternate indexed pool format for Ollama/LiteLLM-compatible endpoints.

## Local Memory

- Current local memory is low-token and practical, not a full vector DB.
- Semantic retrieval uses local hash embeddings plus cosine similarity over project JSON files in `.botvalia/memory/`.
- There is a heavier `memory_plugin/` prototype in the repo, but it is not the main runtime path today.
- Instruction memory currently resolves in this order:
1. managed `CLAUDE.md`
2. user `~/.claude/CLAUDE.md`
3. project `CLAUDE.md`, `.claude/CLAUDE.md`, `.claude/rules/*.md`
4. local `CLAUDE.local.md`
- Memory files support `@path` includes and files closer to the current working directory have higher priority.

## Onboarding And Profiles

- `/init` is the current onboarding command for generating or updating project instructions.
- With `NEW_INIT` enabled, `/init` can also scaffold `CLAUDE.local.md`, project skills, and hooks.
- `/memory` opens instruction files and memory folders in the configured editor.
- `/skills` lists bundled, plugin, user, and project skills available to the current session.
- The cleanest current specialization paths are:
- project skills in `.claude/skills/<skill-name>/SKILL.md`
- per-session prompt profiles via `--append-system-prompt-file`
- plugins for enable/disable bundles
- Suggested activable workflows: `ux-audit`, `ui-polish`, `qa-regression`.
- Starter templates: [UX_UI_QA_SKILLS.md](UX_UI_QA_SKILLS.md)

## Validation

```bash
bun run version
bun run version:auto
```

Document here any extra manual checks needed for the specific feature being worked on.

9 changes: 9 additions & 0 deletions BotValia-CodeUI/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# GEMINI_API_KEY: Required for Gemini AI API calls.
# AI Studio automatically injects this at runtime from user secrets.
# Users configure this via the Secrets panel in the AI Studio UI.
GEMINI_API_KEY="MY_GEMINI_API_KEY"

# APP_URL: The URL where this applet is hosted.
# AI Studio automatically injects this at runtime with the Cloud Run service URL.
# Used for self-referential links, OAuth callbacks, and API endpoints.
APP_URL="MY_APP_URL"
3 changes: 3 additions & 0 deletions BotValia-CodeUI/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next"
}
31 changes: 31 additions & 0 deletions BotValia-CodeUI/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!-- AI-PACKAGE-MANAGER-POLICY: SECURITY MANDATE. Use pnpm 11 only for dependency installation and script execution in this repo tree. Do not use npm, yarn, or bun as package managers here. If a repo still has package-lock.json, yarn.lock, bun.lock, or lacks pnpm-lock.yaml, migrate it with "pnpm import" and then "pnpm install", commit pnpm-lock.yaml, and stop documenting npm-based flows. This policy was tightened after the TanStack npm supply-chain compromise disclosed on 2026-05-11. -->

<!-- IA-SYSTEM-PROTECTION:BEGIN -->
> **REGLA OBLIGATORIA PARA CUALQUIER IA**
>
> Ningun agente de IA, incluyendo Codex, Claude, ChatGPT, Gemini o similares, puede modificar, mover, borrar, instalar, desinstalar o intervenir archivos del sistema Windows, navegadores, perfiles de navegador, extensiones, complementos, configuraciones del equipo ni otros recursos fuera de este proyecto sin permiso explicito y especifico del usuario.
>
> Si el usuario no lo pide de forma explicita y puntual, se asume prohibido.
<!-- IA-SYSTEM-PROTECTION:END -->
<div align="center">
<img width="1200" height="475" alt="GHBanner" src="https://github.com/user-attachments/assets/0aa67016-6eaf-458a-adb2-6e31a0763ed6" />
</div>

# Run and deploy your AI Studio app

This contains everything you need to run your app locally.

View your app in AI Studio: https://ai.studio/apps/ba94abc3-bfa9-4693-b322-8a9519a5c0fa

## Run Locally

**Prerequisites:** Node.js


1. Install dependencies with `pnpm 11`:
`pnpm install`
If the repo still lacks `pnpm-lock.yaml`, migrate it with `pnpm import` and rerun `pnpm install`.
2. Set the `GEMINI_API_KEY` in [.env.local](.env.local) to your Gemini API key
3. Run the app:
`pnpm run dev`

81 changes: 81 additions & 0 deletions BotValia-CodeUI/app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
@import "tailwindcss";

@theme {
--color-canvas: var(--color-canvas);
--color-panel: var(--color-panel);
--color-border-subtle: var(--color-border-subtle);
--color-text-main: var(--color-text-main);
--color-text-muted: var(--color-text-muted);
--color-glass-bg: var(--color-glass-bg);
--color-glass-border: var(--color-glass-border);
}

:root {
--color-canvas: #050505;
--color-panel: #0c0c0c;
--color-border-subtle: rgba(255, 255, 255, 0.05);
--color-text-main: #f3f4f6;
--color-text-muted: #9ca3af;
--color-glass-bg: rgba(0, 0, 0, 0.4);
--color-glass-border: rgba(255, 255, 255, 0.05);
--font-sans: "Segoe UI", "SF Pro Display", "Inter", system-ui, sans-serif;
--font-mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

html,
body {
min-height: 100%;
}

body {
font-family: var(--font-sans);
background: var(--color-canvas);
color: var(--color-text-main);
}

code,
pre,
kbd,
samp {
font-family: var(--font-mono);
}

/* Magic Premium Theme Inversion */
.light-theme {
/* Corporate AI Light: Soft cool-gray background instead of blinding white */
filter: invert(0.9) hue-rotate(180deg) brightness(1.05) contrast(1.02) saturate(1.1);
background-color: #030712; /* Subtle dark blue base influences the inversion towards corporate cool-gray */
}

/* Re-invert things that shouldn't be inverted (like images, avatars) */
.light-theme img,
.light-theme video,
.light-theme [style*="background-image"] {
filter: invert(1) hue-rotate(180deg);
}

@layer utilities {
.scrollbar-hide {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
display: none; /* Chrome, Safari and Opera */
}

/* Custom thin scrollbar */
.scrollbar-thin::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.scrollbar-thin::-webkit-scrollbar-track {
background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.2);
}
}
Loading