Reorganize oracle/ and chatbot/ into proxmox/ per LXC/VM structure

- Move oracle/migration-scripts/ to proxmox/lxc108-oracle/migration/
- Move oracle/roa/ and oracle/roa-romconstruct/ to proxmox/lxc108-oracle/sql/
- Move oracle/standby-server-scripts/ to proxmox/vm109-windows-dr/
- Move chatbot/ to proxmox/lxc104-flowise/
- Update proxmox/README.md with new structure and navigation
- Update all documentation with correct directory references
- Remove unused input/claude-agent-sdk/ files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Marius
2026-01-27 17:28:53 +02:00
parent 4d51d5b2d2
commit a567f75f25
51 changed files with 233 additions and 1706 deletions

View File

@@ -1,148 +0,0 @@
# Claude Agent SDK - Documentație pentru Proiecte
Acest director conține documentație despre **Claude Agent SDK** și utilizarea acestuia în diverse contexte și proiecte.
## Fișiere Disponibile
### 📘 [claude-agent-sdk-documentation.md](./claude-agent-sdk-documentation.md)
Documentație completă despre Claude Agent SDK, inclusiv:
- **Overview**: Ce este și de ce este important
- **Instalare și Setup**: Configurare pentru Python și TypeScript
- **Arhitectură**: Concepte cheie (message blocks, query function, options)
- **Features**: Tools, permissions, MCP servers, context management
- **Cazuri de Utilizare**:
- Knowledge Management (Obsidian)
- Personal Assistants
- Custom Coding Assistants
- Customer Support
- Finance & Investment Agents
- SRE & DevOps Automation
- Research & Content Creation
- Telegram/Slack Bots
- **Exemple de Cod Detaliate**:
- Simple Query
- Custom CLI
- Obsidian Integration
- Telegram Bot cu Remote Coding
- MCP Server Setup
- Session Management
- Error Handling
- **Integrări Posibile**: Development tools, communication platforms, productivity tools
- **Monitoring**: Sentry integration, custom logging
- **Best Practices**: Security, permissions, testing, deployment
- **Resurse**: Links către documentație oficială, tutorials, community
## Quick Links
### Documentație Oficială Anthropic
- [Agent SDK Overview](https://docs.claude.com/en/api/agent-sdk/overview)
- [GitHub Python SDK](https://github.com/anthropics/claude-agent-sdk-python)
- [Building Agents Blog Post](https://www.anthropic.com/engineering/building-agents-with-the-claude-agent-sdk)
### Instalare Rapidă
**Python:**
```bash
pip install claude-agent-sdk
```
**TypeScript:**
```bash
npm install @anthropic-ai/claude-agent-sdk
```
### Example Rapid
```python
from claude_agent_sdk import query
options = {
"systemPrompt": "You are a helpful assistant.",
"cwd": "/workspace"
}
messages = [{"role": "user", "content": "Help me with X"}]
for message in query(messages=messages, options=options):
print(message)
```
## Utilizare în Proiecte
### Pentru Proiecte Noi
1. **Citește documentația completă** în `claude-agent-sdk-documentation.md`
2. **Identifică use case-ul** (coding, automation, knowledge management, etc.)
3. **Configurează agent options** (system prompt, permissions, MCP servers)
4. **Setup monitoring** (Sentry pentru production)
5. **Deploy** (Docker, serverless, etc.)
### Exemple de Aplicații
Din documentație poți învăța să construiești:
- 🤖 **Telegram/Slack bots** pentru remote coding
- 📓 **Obsidian/Notion integrations** pentru knowledge management
- 👨‍💻 **Custom coding assistants** pentru tech stack-ul tău
- 🔧 **DevOps automation** pentru infrastructure management
- 💬 **Customer support bots** cu acces la CRM/database
- 📊 **Finance analysis agents** cu API integrations
- 🔍 **Research assistants** pentru content creation
## Note Importante
### Security Best Practices
**DO:**
- Use granular permissions (`allowedTools: ["read", "glob"]`)
- Limit working directory (`cwd: "/safe/path"`)
- Use environment variables pentru secrets
- Setup monitoring (Sentry, logs)
- Test în non-production environment first
**DON'T:**
- Use `allowedTools: "*"` în production fără review
- Set `cwd: "/"` (root access)
- Hardcode API keys/tokens în code
- Deploy without monitoring
- Give bash access without command restrictions
### Cost Management
- Monitor token usage (vezi Sentry integration)
- Truncate conversation history când devine prea mare
- Use prompt caching (automatic în SDK)
- Consider Claude subscription vs API credits
### Production Readiness Checklist
- [ ] System prompt optimizat pentru use case
- [ ] Granular permissions configurate
- [ ] MCP servers necesari setup
- [ ] Error handling implementat
- [ ] Monitoring configured (Sentry/logs)
- [ ] Session management pentru conversații
- [ ] Docker/deployment configuration
- [ ] Environment variables pentru secrets
- [ ] Testing suite pentru agent behavior
- [ ] Documentation pentru team
## Contribuții și Updates
Documentația este bazată pe:
- **Transcript**: "Claude Code's Real Purpose (It's Bigger Than You Think)"
- **Documentație oficială**: Anthropic Claude Agent SDK (Ianuarie 2025)
- **Web research**: Tutorials, examples, community resources
Pentru updates:
- Verifică [documentația oficială](https://docs.claude.com/en/api/agent-sdk/overview)
- Urmărește [Anthropic blog](https://www.anthropic.com/news)
- GitHub repositories: [Python SDK](https://github.com/anthropics/claude-agent-sdk-python)
---
**Happy Building!** 🚀
*Pentru întrebări sau clarificări, consultă documentația completă sau resursele oficiale Anthropic.*

File diff suppressed because it is too large Load Diff

View File

@@ -15,11 +15,36 @@ proxmox/
│ ├── scripts/
│ └── config/
├── lxc104-flowise/ # LXC 104 - Flowise AI (Chatbot Maria)
│ ├── README.md # Infrastructură chatbot, ngrok, troubleshooting
│ └── docs/
│ ├── prd.md # Product Requirements Document
│ ├── v1-arhitectura.md # Arhitectură v1 (Flowise + Groq)
│ └── v2-arhitectura.md # Arhitectură v2 (Claude Agent SDK)
├── lxc108-oracle/ # LXC 108 - Oracle Database XE 21c
│ ├── README.md # Documentație completă Oracle
│ ├── scripts/
│ │ ├── export-roa2.sh
│ │ └── export-roa2.ps1
│ ├── migration/ # Scripturi migrare Oracle 10g → 21c
│ │ ├── README.md
│ │ ├── 00-MASTER-MIGRATION.sh
│ │ └── ...
│ └── sql/
│ ├── roa/ # SQL-uri Oracle 10g compatibilitate
│ └── roa-romconstruct/ # Package PACK_CONTAFIN
├── vm109-windows-dr/ # VM 109 - Windows Standby (Disaster Recovery)
│ ├── README.md # Configurare DR, RMAN backup
│ ├── docs/
│ │ ├── PLAN_TESTARE_MONITORIZARE.md
│ │ ├── PROXMOX_NOTIFICATIONS_README.md
│ │ └── archive/ # Planuri și statusuri anterioare
│ └── scripts/
│ ├── export-roa2.sh
── export-roa2.ps1
│ ├── rman_backup*.bat # Scripturi RMAN Windows
── transfer_backups.ps1 # Transfer backup-uri
│ └── *-proxmox.sh # Monitorizare din Proxmox
├── vm201-windows/ # VM 201 - Windows 11 (roacentral)
│ ├── README.md # Informații generale VM
@@ -63,6 +88,36 @@ ssh root@10.0.20.201 "upsc nutdev1"
---
### LXC 104 - Flowise AI (Chatbot Maria)
**Director:** `lxc104-flowise/`
**IP:** 10.0.20.161 | **Host:** pvemini
| Fișier | Descriere |
|--------|-----------|
| `README.md` | Configurare Flowise, ngrok, troubleshooting CORS |
| `docs/prd.md` | Product Requirements Document chatbot |
| `docs/v1-arhitectura.md` | Arhitectură Flowise + Groq |
| `docs/v2-arhitectura.md` | Arhitectură Claude Agent SDK (planificat) |
**Quick Start:**
```bash
# Status servicii
ssh root@10.0.20.201 "pct exec 104 -- systemctl status flowise"
ssh root@10.0.20.201 "pct exec 104 -- systemctl status ngrok"
# Restart Flowise
ssh root@10.0.20.201 "pct exec 104 -- systemctl restart flowise"
# Test chatbot
curl -s "https://mutual-special-koala.ngrok-free.app/api/v1/prediction/d4911620-07fe-41f8-adb4-f2f52d6ec766" \
-X POST -H "Content-Type: application/json" -d '{"question":"test"}'
```
**URL Public:** https://mutual-special-koala.ngrok-free.app
**Pagina Web:** https://www.romfast.ro/chatbot_maria.html
---
### LXC 108 - Oracle Database
**Director:** `lxc108-oracle/`
**IP:** 10.0.20.121 | **Host:** pvemini
@@ -87,6 +142,31 @@ sqlplus sys/romfastsoft@10.0.20.121:1521/roa as sysdba
---
### VM 109 - Windows Standby (Disaster Recovery)
**Director:** `vm109-windows-dr/`
**Rol:** Backup Oracle database de pe server extern Windows (RMAN)
| Fișier | Descriere |
|--------|-----------|
| `README.md` | Configurare DR, RMAN backup, scripturi transfer |
| `docs/PLAN_TESTARE_MONITORIZARE.md` | Plan testare și monitorizare DR |
| `docs/PROXMOX_NOTIFICATIONS_README.md` | Configurare notificări Proxmox |
| `docs/archive/` | Planuri implementare și statusuri anterioare |
| `scripts/rman_backup*.bat` | Scripturi RMAN pentru backup Windows |
| `scripts/transfer_backups.ps1` | Transfer backup-uri către storage |
| `scripts/*-proxmox.sh` | Scripturi monitorizare din Proxmox |
**Quick Start:**
```bash
# Monitorizare backup Oracle DR
/mnt/e/proiecte/ROMFASTSQL/proxmox/vm109-windows-dr/scripts/oracle-backup-monitor-proxmox.sh
# Test săptămânal DR
/mnt/e/proiecte/ROMFASTSQL/proxmox/vm109-windows-dr/scripts/weekly-dr-test-proxmox.sh
```
---
### VM 201 - Windows 11
**Director:** `vm201-windows/`
**IP:** DHCP | **Host:** pvemini | **Rol:** Reverse proxy IIS, client aplicații
@@ -126,13 +206,14 @@ echo | openssl s_client -connect roa.romfast.ro:443 -servername roa.romfast.ro 2
|------|------|-----|----------|--------------|
| 100 | portainer | 10.0.20.170 | Docker Management | `cluster/README.md` |
| 103 | dokploy | 10.0.20.167 | Deployment Platform | `cluster/README.md` |
| 104 | flowise | 10.0.20.161 | Flowise AI + Ollama | `cluster/README.md` |
| **104** | **flowise** | **10.0.20.161** | **Flowise AI (Chatbot Maria)** | **`lxc104-flowise/`** |
| 106 | gitea | 10.0.20.165 | Git Server | `cluster/README.md` |
| **108** | **central-oracle** | **10.0.20.121** | **Oracle XE 21c** | **`lxc108-oracle/`** |
### Virtual Machines
| VMID | Nume | OS | Documentație |
|------|------|----|--------------|
| **109** | **standby-dr** | **Windows Server** | **`vm109-windows-dr/`** |
| **201** | **roacentral** | **Windows 11** | **`vm201-windows/`** |
| 300 | Win11-Template | Windows 11 | `cluster/README.md` |
@@ -146,10 +227,24 @@ echo | openssl s_client -connect roa.romfast.ro:443 -servername roa.romfast.ro 2
- **Monitorizez HA cluster** → `cluster/cluster-ha-monitor.sh`
- **Gestionez UPS** → `cluster/ups/README.md`
### Flowise AI / Chatbot Maria (LXC 104)
- **Configurez chatbot** → `lxc104-flowise/README.md`
- **Troubleshooting CORS/ngrok** → `lxc104-flowise/README.md` → "Troubleshooting"
- **PRD Chatbot** → `lxc104-flowise/docs/prd.md`
- **Arhitectură viitoare** → `lxc104-flowise/docs/v2-arhitectura.md`
### Oracle Database (LXC 108)
- **Conectez la Oracle** → `lxc108-oracle/README.md` → "Conexiuni Oracle"
- **Export/Import DMP** → `lxc108-oracle/README.md` → "Export și Import Data Pump"
- **Restart Oracle** → `lxc108-oracle/README.md` → "Restart Oracle"
- **Scripturi migrare 10g→21c** → `lxc108-oracle/migration/README.md`
- **SQL-uri Oracle 10g** → `lxc108-oracle/sql/roa/`
### Windows VM 109 - Disaster Recovery
- **Configurez RMAN backup** → `vm109-windows-dr/README.md`
- **Monitorizez backup-uri** → `vm109-windows-dr/scripts/oracle-backup-monitor-proxmox.sh`
- **Test DR săptămânal** → `vm109-windows-dr/scripts/weekly-dr-test-proxmox.sh`
- **Plan testare DR** → `vm109-windows-dr/docs/PLAN_TESTARE_MONITORIZARE.md`
### Windows VM 201
- **Reînnoiesc certificate SSL** → `vm201-windows/docs/vm201-certificat-letsencrypt-iis.md`
@@ -168,7 +263,9 @@ echo | openssl s_client -connect roa.romfast.ro:443 -servername roa.romfast.ro 2
| Portainer Principal | http://10.0.20.170:9443 |
| Gitea | http://10.0.20.165:3000 |
| Dokploy | http://10.0.20.167:3000 |
| Flowise AI | http://10.0.20.161:3000 |
| Flowise AI (local) | http://10.0.20.161:3000 |
| Flowise AI (public) | https://mutual-special-koala.ngrok-free.app |
| Chatbot Maria | https://www.romfast.ro/chatbot_maria.html |
---

View File

@@ -1,4 +1,22 @@
# Infrastructura Chatbot Maria
# LXC 104 - Flowise AI (Chatbot Maria)
**Director:** `proxmox/lxc104-flowise/`
**VMID:** 104
**IP:** 10.0.20.161
**Host Proxmox:** pvemini
**Servicii:** Flowise AI, ngrok tunnel, Ollama (opțional)
---
## Documentație Adițională
| Fișier | Descriere |
|--------|-----------|
| `docs/prd.md` | Product Requirements Document - Chatbot Suport Tehnic |
| `docs/v1-arhitectura.md` | Arhitectură versiunea 1 (Flowise + Groq) |
| `docs/v2-arhitectura.md` | Arhitectură versiunea 2 (Claude Agent SDK) |
---
## Componente
@@ -139,3 +157,15 @@ Pagina încarcă widget-ul Flowise care se conectează la endpoint-ul ngrok.
- **Problemă 1**: Flowise nu avea CORS configurat
- **Problemă 2**: ngrok rula versiunea 3.16.0 (actualizată dar nerestartat din octombrie)
- **Soluție**: Adăugat CORS_ORIGINS și restart la ambele servicii
---
## Legături Utile
- **Proxmox Index:** `../README.md`
- **Cluster Info:** `../cluster/README.md`
---
**Ultima actualizare:** 2026-01-27
**Autor:** Marius Mutu

View File

@@ -1,6 +1,11 @@
# Product Requirements Document (PRD)
## Chatbot de Suport Tehnic RAG pentru ROMFAST
**Director:** `proxmox/lxc104-flowise/docs/`
**Arhitectură:** Vezi `v1-arhitectura.md` și `v2-arhitectura.md`
---
## 1. OVERVIEW ȘI OBIECTIVE
### 1.1 Problem Statement

View File

@@ -1,4 +1,10 @@
# Plan: Chatbot RAG pentru romfast.ro
# Plan: Chatbot RAG pentru romfast.ro (v1)
**Director:** `proxmox/lxc104-flowise/docs/`
**Status:** Implementat parțial (Flowise + Groq)
**Versiune următoare:** Vezi `v2-arhitectura.md` pentru Claude Agent SDK
---
## ARHITECTURĂ GENERALĂ

View File

@@ -1,3 +1,11 @@
# Arhitectură Chatbot Maria v2 - Claude Agent SDK
**Director:** `proxmox/lxc104-flowise/docs/`
**Status:** Planificat
**Versiune anterioară:** Vezi `v1-arhitectura.md` pentru Flowise + Groq
---
## 1. Introducere și Context
Chatbot-ul de suport tehnic ROMFAST va oferi răspunsuri asistate de RAG și Claude Agent SDK atât pe website, cât și în Telegram. Arhitectura propusă trebuie să asigure timpul de răspuns sub 5 secunde, disponibilitate ridicată, persistența sesiunilor și integrarea cu infrastructura existentă (Docker în LXC Proxmox).

View File

@@ -29,7 +29,7 @@
- **Image:** container-registry.oracle.com/database/express:21.3.0-xe
- **Versiune:** Oracle Database 21c Express Edition
- **Status:** Running (Up 3+ weeks, healthy)
- **Portainer:** http://10.0.20.121:9443
- **Portainer:** http://10.0.20.121:9000 (admin / parola281234)
### Porturi Expuse
| Port | Serviciu | Descriere |
@@ -489,16 +489,44 @@ ssh root@10.0.20.201 "pct exec 108 -- docker exec oracle-xe tail -100 /opt/oracl
---
## 📂 Subdirectoare
### migration/
Scripturi pentru migrarea Oracle 10g → 21c XE:
- `00-MASTER-MIGRATION.sh` - Script master orchestrare migrare
- `01-setup-oracle21c.sh` - Setup tablespace ROA + useri
- `02-export-source.sh` - Export universal (AUTO/MANUAL/LOCAL)
- `03-transfer-to-oracle21c.sh` - Transfer fișiere DMP
- `04-import-to-oracle21c.sh` - Import scheme + SYS objects
- `05-create-synonyms-grants.sh` - Creare sinonime + grant-uri
- `06-finalize-migration.sh` - Recompilare + verificare finală
**Documentație:** `migration/README.md`
### sql/
SQL-uri și packages Oracle:
- `sql/roa/` - SQL-uri compatibilitate Oracle 10g (scrie_jc_2007.sql, etc.)
- `sql/roa-romconstruct/` - Package PACK_CONTAFIN.pck
### scripts/
Scripturi operaționale:
- `export-roa2.sh` - Export PDB roa2
- `export-roa2.ps1` - Export pentru Windows
---
## 🔗 Legături Utile
**Pentru detalii Proxmox generale (cluster, toate LXC-uri/VM-uri):**
Vezi fișierul: `proxmox/proxmox-ssh-guide.md`
Vezi fișierul: `../cluster/README.md`
**Oracle Enterprise Manager Express:**
http://10.0.20.121:5500/em
**Portainer Docker Management:**
http://10.0.20.121:9443
- **URL:** http://10.0.20.121:9000
- **User:** admin
- **Parola:** parola281234
---

View File

@@ -1,5 +1,6 @@
# 🚀 SCRIPTURI AUTOMATIZARE MIGRARE ORACLE 10g → 21c XE
**Director:** `proxmox/lxc108-oracle/migration/`
**Data**: 1 Octombrie 2025
**Status**: ✅ TESTAT ȘI FUNCȚIONAL
**Versiune**: 2.1 - Universal Multi-platform + Export Flexibil
@@ -146,7 +147,7 @@ Scriptul **02-export-source.sh** suportă 3 moduri de export pentru maxim flexib
**Doar dacă nu ai Oracle 21c XE deja instalat!**
```bash
cd /mnt/e/proiecte/ROMFASTSQL/oracle/migration-scripts
cd /mnt/e/proiecte/ROMFASTSQL/proxmox/lxc108-oracle/migration
chmod +x *.sh
# Opțiunea 1: Rulare direct pe Proxmox host
@@ -179,7 +180,7 @@ PDB: ROA (XEPDB1 șters)
### Pasul 1: Setup Oracle 21c XE (pe WSL/Linux)
```bash
cd /mnt/e/proiecte/ROMFASTSQL/oracle/migration-scripts
cd /mnt/e/proiecte/ROMFASTSQL/proxmox/lxc108-oracle/migration
chmod +x *.sh
./01-setup-oracle21c.sh
```
@@ -417,8 +418,8 @@ CDB: XE
## 🔗 DOCUMENTAȚIE COMPLETĂ
Pentru detalii complete, vezi:
- `../MIGRATION-COMPLETE-GUIDE.md` - Ghid manual complet
- `../MIGRATION-CONNECTION-DETAILS.md` - Detalii conexiuni
- `../README.md` - Documentație principală LXC 108 Oracle
- `../../README.md` - Index Proxmox principal
---

View File

@@ -1,5 +1,7 @@
# Oracle 10g Compatibility
**Director:** `proxmox/lxc108-oracle/sql/roa/`
## Două versiuni disponibile pentru SCRIE_JC_2007
### 📄 Fișiere:

View File

@@ -1,3 +1,11 @@
# VM 109 - Oracle DR System (Windows Standby)
**Director Proxmox:** `proxmox/vm109-windows-dr/`
**VMID:** 109
**Rol:** Disaster Recovery pentru Oracle Database (backup RMAN de pe server Windows extern)
---
# 🛡️ Oracle DR System - Complete Architecture
## 📊 System Overview
@@ -508,13 +516,39 @@ LINUX WORKSTATION ─────────► VM 109 (10.0.20.37)
╠══════════════════════════════════════════════════════════════╣
║ SUPPORT: ║
║ Logs: /var/log/oracle-dr/ ║
║ Docs: /opt/scripts/PROXMOX_NOTIFICATIONS_README.md
║ Docs: proxmox/vm109-windows-dr/docs/
╚══════════════════════════════════════════════════════════════╝
```
---
**Last Updated:** October 31, 2025
## 📂 Structură Director
```
vm109-windows-dr/
├── README.md # Acest fișier
├── docs/
│ ├── PLAN_TESTARE_MONITORIZARE.md # Plan testare și monitorizare DR
│ ├── PROXMOX_NOTIFICATIONS_README.md # Configurare notificări Proxmox
│ └── archive/ # Planuri și statusuri anterioare
│ ├── DR_UPGRADE_TO_CUMULATIVE_PLAN.md
│ ├── DR_VM_MIGRATION_GUIDE.md
│ ├── DR_WINDOWS_VM_IMPLEMENTATION_PLAN.md
│ └── DR_WINDOWS_VM_STATUS_2025-10-09.md
└── scripts/
├── oracle-backup-monitor-proxmox.sh # Monitorizare zilnică (Proxmox)
├── weekly-dr-test-proxmox.sh # Test săptămânal DR (Proxmox)
├── rman_backup.bat # RMAN full backup (Windows)
├── rman_backup_incremental.bat # RMAN incremental (Windows)
├── transfer_backups.ps1 # Transfer backup-uri (Windows)
├── rman_restore_from_zero.ps1 # Restore complet (Windows DR)
├── cleanup_database.ps1 # Cleanup după test (Windows DR)
└── *.ps1 # Alte scripturi configurare
```
---
**Last Updated:** 2026-01-27
**Version:** 2.2 - Unified transfer script (transfer_backups.ps1)
**Status:** ✅ Production Ready

View File

@@ -1,5 +1,8 @@
# Plan de Testare pentru Scripturile de Monitorizare Oracle DR
**Director:** `proxmox/vm109-windows-dr/docs/`
**Scripturi:** `proxmox/vm109-windows-dr/scripts/`
## Obiective
1. Testarea funcționalității de notificări pentru scripturile de monitorizare
2. Verificarea funcționării corecte fără erori
@@ -54,7 +57,7 @@
4. Configurare cron pentru execuție automată
### Faza 5: Validare Format Notificări
1. Reinstalare template-uri compacte: `/opt/scripts/oracle-backup-monitor-proxmox.sh --install`
1. Reinstalare template-uri compacte: `scripts/oracle-backup-monitor-proxmox.sh --install`
2. Generare notificări reale din scripturi (backup monitor + DR test) și analiză în clienți email
3. Verificare afișare în client email (text + HTML) și în GUI Proxmox
4. Rulare `weekly-dr-test-proxmox.sh` în mediu controlat și validare sumar compact în email (inclusiv componente, pași, timeline)

View File

@@ -1,5 +1,8 @@
# Oracle DR Monitoring cu Notificări Proxmox Native
**Director:** `proxmox/vm109-windows-dr/docs/`
**Scripturi:** `proxmox/vm109-windows-dr/scripts/`
## 🎯 Overview
Sistem de monitorizare și alertare pentru Oracle DR care folosește **sistemul nativ de notificări Proxmox** (PVE::Notify) - același sistem folosit pentru alertele HA, backup-uri, etc.