منصة ذكاء اصطناعي آمنة مع بنية ثلاثية الفصوص - Secure AI Platform with Three-Lobe Architecture
flowchart TD
subgraph "Comet-X Digital Entity"
Executive[Executive Lobe<br/>Service Worker<br/>Control & Memory]
Sensory[Sensory Lobe<br/>Shadow DOM<br/>Input & Context]
Cognitive[Cognitive Lobe<br/>Offscreen Canvas<br/>Local AI Models]
User[X User] -->|Input| Sensory
Sensory -->|Context| Executive
Executive -->|Coordination| Cognitive
Cognitive -->|Response| Executive
Executive -->|Output| User
end
- Node.js 20+
- Docker & Docker Compose (optional)
# Install dependencies
npm ci
# Start backend server
npm start
# API available at http://localhost:3000
# Swagger docs at http://localhost:3000/docscd frontend
# Install dependencies
npm install
# Start development server
npm run dev
# Frontend available at http://localhost:5173Run both frontend and backend with one command:
docker-compose up --buildServices:
- Frontend: http://localhost (port 80)
- Backend API: http://localhost:3000
- Swagger Docs: http://localhost:3000/docs
GET /health- Health checkGET /api/v1/models- List available AI modelsPOST /api/v1/chat- Send chat messageGET /api/v1/status- System statusGET /docs- Swagger API documentation
- ✅ Dark theme (Laplace color scheme)
- ✅ Model selector (DeepSeek-R1, GPT-4, Claude, Llama)
- ✅ Thinking/Reasoning block display
- ✅ Code syntax highlighting
- ✅ File upload support
- ✅ Chat history sidebar
- ✅ Streaming effect for responses
- ✅ SSH Terminal component with:
- Root connection support
- Interactive terminal
- Command history
- Private key support
- ✅ RESTful API with Express
- ✅ CORS enabled
- ✅ Swagger documentation
- ✅ Error handling
- ✅ Health monitoring
- GitHub Pages: https://grar00t.github.io/gratech-comet-x/
- Azure Static Web: يتم النشر تلقائياً عبر OIDC
- Docker Image:
ghcr.io/grar00t/gratech-comet-x:latest
- أضف أسرار X وAzure (بدون كشف القيم).
- فعّل OIDC في Entra ID مع Federated Credential.
- ادفع إلى
mainلمشاهدة Workflows تعمل.
- CodeQL (Security tab)
- Dependabot (تحديثات)
- Trivy (فحص Docker)
- حماية الفرع main (PR + Status checks)