-
Notifications
You must be signed in to change notification settings - Fork 1
docs: instruções de ambiente de desenvolvimento (Cursor Cloud) #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,33 @@ | ||||||||||
| # AGENTS.md | ||||||||||
|
|
||||||||||
| Workspace multi-repo: este projeto vive em `/agent/repos/Skill`. Outros repos relacionados ficam em `/agent/repos/` (ex.: `legal-ai-flow-hub`, `juridic-ai-nexus`, `JurisBotIA`). Ver também `CLAUDE.md` neste diretório. | ||||||||||
|
|
||||||||||
| ## Cursor Cloud specific instructions | ||||||||||
|
|
||||||||||
| ### Skill — Analista Processual (este repo) | ||||||||||
|
|
||||||||||
| - **Venv:** `.venv` na raiz (`python3 -m venv .venv` na primeira vez). | ||||||||||
| - **Instalar:** `.venv/bin/pip install -r requirements.txt` | ||||||||||
| - **Se venv falhar:** instalar pacote de sistema `python3.12-venv` (uma vez por VM). | ||||||||||
| - **Dev UI local sem login:** | ||||||||||
| `.venv/bin/python -m analista_processual --no-auth --host 0.0.0.0 --port 7860` | ||||||||||
| → http://127.0.0.1:7860/ | ||||||||||
| - **Secrets:** `ANTHROPIC_API_KEY` obrigatória para `analisar` / chat com agentes; `DEMANDAS_DIR` opcional (padrão `~/demandas`). | ||||||||||
| - **CLI:** `nova`, `listar`, `info`, `analisar`, `consultar` — `python -m analista_processual --help`. | ||||||||||
| - **Smoke de sintaxe:** `python -m py_compile analista_processual/*.py` (não há pytest no repo). | ||||||||||
|
Comment on lines
+16
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Para garantir que os comandos CLI e o smoke test de sintaxe rodem no ambiente virtual correto (com todas as dependências instaladas), é recomendável utilizar o caminho do executável do venv (
Suggested change
|
||||||||||
| - **Deploy prod:** `deploy/setup.sh` — só em servidor; não faz parte do refresh automático da VM. | ||||||||||
|
|
||||||||||
| ### legal-ai-flow-hub (AdvLabIA) — repo irmão | ||||||||||
|
|
||||||||||
| - Caminho: `/agent/repos/legal-ai-flow-hub` | ||||||||||
| - `npm install` → `npm run dev -- --host 0.0.0.0 --port 5173` → http://127.0.0.1:5173/ | ||||||||||
| - `npm run build` valida o frontend; `npm run lint` pode falhar por regras ESLint já existentes no repo. | ||||||||||
| - Supabase na nuvem via `.env` (`VITE_SUPABASE_*`); landing funciona sem `.env`. | ||||||||||
|
|
||||||||||
| ### tmux | ||||||||||
|
|
||||||||||
| Servidores de dev convém rodar em sessões tmux (`skill-gradio`, `advlabia-vite`) com `tmux -f /exec-daemon/tmux.portal.conf`. | ||||||||||
|
|
||||||||||
| ### JurisBotIA (opcional) | ||||||||||
|
|
||||||||||
| Fork Supabase pesado: Docker em `JurisBotIA/docker` + `pnpm dev:studio`. Não iniciar no script de update da VM. | ||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usar um pacote de versão fixa como
python3.12-venvpode falhar se a VM do Cursor Cloud utilizar uma versão diferente do Python como padrão (por exemplo, Python 3.11, que é o especificado nodeploy/setup.sh). Recomenda-se utilizar o pacote genéricopython3-venv, que instala automaticamente a dependência correta para a versão padrão do Python do sistema.