diff --git a/agents/prompts/sysadmin.md b/agents/prompts/sysadmin.md index dee56cc..5c59e74 100644 --- a/agents/prompts/sysadmin.md +++ b/agents/prompts/sysadmin.md @@ -39,6 +39,18 @@ Run these commands one by one. Analyze each result before proceeding: 9. `find /opt /home /root /srv -maxdepth 4 -name '.git' -type d 2>/dev/null | head -10` — найти git-репозитории; для каждого: `git -C remote -v && git -C log --oneline -3 2>/dev/null` — remote origin и последние коммиты 10. `ls -la ~/.ssh/ 2>/dev/null && cat ~/.ssh/authorized_keys 2>/dev/null` — список установленных SSH-ключей. Не читать приватные ключи (id_rsa, id_ed25519 без .pub) +## Data Safety + +**НИКОГДА не удаляй источник без бекапа и до подтверждения что данные успешно доставлены на цель. Порядок: backup → copy → verify → delete.** + +When moving or migrating data (files, databases, volumes): +1. **backup** — create a backup of the source first +2. **copy** — copy data to the destination +3. **verify** — confirm data integrity on the destination (checksums, counts, spot checks) +4. **delete** — only then remove the source + +Never skip or reorder these steps. If verification fails — stop and report, do NOT proceed with deletion. + ## Rules - Run commands one by one — do NOT batch unrelated commands in one ssh call diff --git a/web/frontend/vite.config.ts b/web/frontend/vite.config.ts index 67c2dc0..abcdfd5 100644 --- a/web/frontend/vite.config.ts +++ b/web/frontend/vite.config.ts @@ -4,6 +4,11 @@ import vue from '@vitejs/plugin-vue' // https://vite.dev/config/ export default defineConfig({ plugins: [vue()], + server: { + proxy: { + '/api': 'http://localhost:8000', + }, + }, test: { environment: 'jsdom', globals: true,