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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Componentes Detalhados do Sistema VICK AI
|
| 2 |
+
|
| 3 |
+
Este documento lista todos os componentes incluídos no hash de registro oficial.
|
| 4 |
+
|
| 5 |
+
**Hash Principal**: `196660c17a32fdc82764f738bcb3b8cc6f93bc7df942977ca9a8fc0a5e6c3e73`
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
## 📊 Visão Geral
|
| 10 |
+
|
| 11 |
+
- **Total de Componentes**: 55
|
| 12 |
+
- **Código Autoral**: ~15.000 linhas
|
| 13 |
+
- **Categorias**: 7
|
| 14 |
+
- **Linguagens**: Python, SQL, JavaScript, Shell
|
| 15 |
+
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
## 🧬 Categoria 0: LLM Fingerprint
|
| 19 |
+
|
| 20 |
+
**Hash da Categoria**: `565674f9f82e82854f6079faeaf1e2585df369797a0a38765691e0b6576a0ce9`
|
| 21 |
+
|
| 22 |
+
### Componentes do Modelo de IA
|
| 23 |
+
|
| 24 |
+
| Componente | Hash (32 chars) | Descrição |
|
| 25 |
+
|------------|----------------|-----------|
|
| 26 |
+
| vocabulary_sample | `44c2f46b715f585c6ab513970e8a006b` | Amostra do vocabulário/tokenizer |
|
| 27 |
+
| behavioral_signature | `9c8a2cdfef1a7eff23f7b3ebc8e2eefe` | Assinatura comportamental (respostas) |
|
| 28 |
+
| architecture_config | `4d5226f0e066deefd02d458e227d4e5c` | Configuração de arquitetura |
|
| 29 |
+
| weight_sample | `45b71fe98efe5f530b825dce6f5049d7` | Amostra de pesos do modelo |
|
| 30 |
+
|
| 31 |
+
**Nota**: Fingerprint genérico que comprova a existência de um modelo de IA sem revelar vendor/origem.
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## 📝 Categoria 1: System Prompts
|
| 36 |
+
|
| 37 |
+
**Hash da Categoria**: `9f378dd41f5c199ee73baf49eb76415557f17310290a3397d4ec2828bd321c88`
|
| 38 |
+
|
| 39 |
+
### DNA do Sistema (2 arquivos)
|
| 40 |
+
|
| 41 |
+
| Arquivo | Hash | Descrição |
|
| 42 |
+
|---------|------|-----------|
|
| 43 |
+
| vick_system_prompt.txt | `05c5238645f0b3ced144944cb7f918cde35eca0cbffa416243e516be926ff9f7` | Prompt principal (personalidade VICK) |
|
| 44 |
+
| vick_cli_system_prompt.txt | `97d9eb8f26c321d22eea2734684105b7fe622b6e5ebd6e9285750d4ab8533e45` | Prompt CLI |
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
## ⚙️ Categoria 2: Serviços Customizados
|
| 49 |
+
|
| 50 |
+
**Hash da Categoria**: `26710eb83df46541385259095f3355741c65d00fa2415759e10e16d12a5aeb04`
|
| 51 |
+
|
| 52 |
+
### Backend Services (11 arquivos Python)
|
| 53 |
+
|
| 54 |
+
| Serviço | Hash | Linhas* | Função |
|
| 55 |
+
|---------|------|---------|--------|
|
| 56 |
+
| auth_service.py | `efedf443e8787e0d821f9895a89b3fa68ee9431c876a3fc8e9460d34849a93a0` | ~289 | Autenticação JWT |
|
| 57 |
+
| autohome_tools.py | `440e4a4a654798f6e46055c8fe10bda1f2db2438822e3324f6a923c949ce9807` | ~847 | Integração IoT/Smart Home |
|
| 58 |
+
| vision_service_advanced.py | `ba9032378c6069810cc1cb8732589bcf4cb89714349ea9458c7376c20325f4fe` | ~512 | Visão computacional |
|
| 59 |
+
| web_search_service.py | `b8b2d87c57eb17cc0e15e64dbeceb58e464fdb5c2e483dd335e05e256140209a` | ~423 | Busca web (Tavily) |
|
| 60 |
+
| automation_service.py | `957b6728075afc78ea876e43f0382ea6039be9d49eeb86791e352277ebbc96f0` | ~678 | Automação de tarefas |
|
| 61 |
+
| automation_service_standalone.py | `77dbc3bd0b40fa9bf9a0f9f30929722d7f89757d833949627b61fed696189760` | ~589 | Automação standalone |
|
| 62 |
+
| vick_proxy_service.py | `9ed777db67a69e7b8f33d1f36b5c609801c22696a5eddf18b17936b5471c2c2c` | ~234 | Proxy e load balancing |
|
| 63 |
+
| admin_panel_service.py | `0ce02b9b0d9389171b994413f63cb91c88e7705320a8c51ed97a242255ea6f4f` | ~456 | Painel administrativo |
|
| 64 |
+
| dev_panel_service.py | `c2b462a220760e53eacb4824c8a7463bc528fc0500e32f62eca698a70a4a91fa` | ~391 | Painel de desenvolvimento |
|
| 65 |
+
| api_vickai_service.py | `df5cbd8bc5a9310532e0189821680fca91d4cc8e6a85141d468fab6182e973eb` | ~312 | API REST pública |
|
| 66 |
+
| cli_auth_service.py | `718b5c1a2430ca979a958f591e3527dc0c06fdae090087203453a912b2d3f5e7` | ~267 | CLI autenticado |
|
| 67 |
+
|
| 68 |
+
**Subtotal**: ~5.000 linhas de código Python autoral
|
| 69 |
+
|
| 70 |
+
\* Linhas estimadas
|
| 71 |
+
|
| 72 |
+
---
|
| 73 |
+
|
| 74 |
+
## 🗄️ Categoria 3: Database Schema
|
| 75 |
+
|
| 76 |
+
**Hash da Categoria**: `406b5a8cc538b6f024d7fcbde1ac1e26d5c517ea324f5330e00df5e0d5085078`
|
| 77 |
+
|
| 78 |
+
### Schemas SQL (5 arquivos)
|
| 79 |
+
|
| 80 |
+
| Arquivo | Hash | Tabelas | Descrição |
|
| 81 |
+
|---------|------|---------|-----------|
|
| 82 |
+
| create_tables.sql | `0f0ff31600a5d53afcec978728185b5e34f2c4efc1002a30e7405edb925f6b6a` | 4 | Schema principal |
|
| 83 |
+
| create_api_tables.sql | `65b64dc80b18f312c9fd9344a276e31b10a93e65649028a784cb13978a368873` | 2 | Tabelas API |
|
| 84 |
+
| create_email_verification_tables.sql | `8b04c13b066ee11ce274d39f543bb857784e65a0e8cc51038f6ac72cdf89b054` | 1 | Verificação email |
|
| 85 |
+
| add_user_names.sql | `486c7637f62d2b6eb8585b73767bc197550be4214a9dffa70769fef81cfc3b53` | - | Migrations |
|
| 86 |
+
| clear_chat_history.sql | `f589931b58443fb1278c475ba9a669ff28d5d3fff440234ca9607af46204f11b` | - | Utilities |
|
| 87 |
+
|
| 88 |
+
**Tabelas PostgreSQL**:
|
| 89 |
+
- `users` - Usuários e credenciais
|
| 90 |
+
- `sessions` - Sessões JWT
|
| 91 |
+
- `conversations` - Conversas
|
| 92 |
+
- `messages` - Histórico de mensagens
|
| 93 |
+
- `api_keys` - Chaves de API
|
| 94 |
+
- `email_verification` - Verificação de email
|
| 95 |
+
- `user_settings` - Configurações
|
| 96 |
+
- `usage_stats` - Estatísticas
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
## 🚀 Categoria 4: Scripts de Inicialização
|
| 101 |
+
|
| 102 |
+
**Hash da Categoria**: `1a666d1fa110f5cb1080f5cdd87e09bbf749800491f2c582f8ff94bcef482ea6`
|
| 103 |
+
|
| 104 |
+
### Scripts Shell (27 arquivos)
|
| 105 |
+
|
| 106 |
+
| Tipo | Quantidade | Descrição |
|
| 107 |
+
|------|-----------|-----------|
|
| 108 |
+
| Configurações de Modelo | 8 | Diferentes modos (rápido, equilibrado, turbo, ultra, etc) |
|
| 109 |
+
| Serviços | 6 | Auth, Vision, Web Search, Admin Panel, etc |
|
| 110 |
+
| Automação | 3 | Automation standalone, turbo, padrão |
|
| 111 |
+
| Deploy | 5 | Cloud, daemon, sistema completo |
|
| 112 |
+
| Integrações | 3 | WhatsApp, CLI, frontend |
|
| 113 |
+
| Outros | 2 | LLM Tavily, desenvolvimento |
|
| 114 |
+
|
| 115 |
+
**Exemplos**:
|
| 116 |
+
- `iniciar_vick_qwen72b_turbo.sh` - Modo high performance
|
| 117 |
+
- `iniciar_vick_rapido.sh` - Modo rápido (3B)
|
| 118 |
+
- `iniciar_automation_standalone.sh` - Automação standalone
|
| 119 |
+
- `iniciar_admin_panel.sh` - Painel administrativo
|
| 120 |
+
|
| 121 |
+
**Subtotal**: ~2.000 linhas de Shell script
|
| 122 |
+
|
| 123 |
+
---
|
| 124 |
+
|
| 125 |
+
## 🎨 Categoria 5: Frontend Customizado
|
| 126 |
+
|
| 127 |
+
**Hash da Categoria**: `c4fd645b0d33200dc5b7b5836908e922c08176fc5cee622e1ce9fe369ac4c997`
|
| 128 |
+
|
| 129 |
+
### Interface de Usuário (3 arquivos)
|
| 130 |
+
|
| 131 |
+
| Componente | Hash | Descrição |
|
| 132 |
+
|------------|------|-----------|
|
| 133 |
+
| index.html | `97f64dc36fdee6f708dc94ef5b38129433920a4a69d173962d7d18fc4c340dbd` | Interface web |
|
| 134 |
+
| index.html.gz | `fb3e5032333c2d66b4ce2d93e7ccc76c2f4e1762d859fb60a9c666320451b85e` | Versão comprimida |
|
| 135 |
+
| vick-ios-app-package.json | `4bd81c2b21c0458a0088dc8a8bdc03853b03eb43355b6476c539d2df54cf0567` | App mobile config |
|
| 136 |
+
|
| 137 |
+
**Tecnologias**:
|
| 138 |
+
- React 18 + TypeScript
|
| 139 |
+
- Capacitor (iOS/Android)
|
| 140 |
+
- Design system customizado
|
| 141 |
+
- Chat em tempo real
|
| 142 |
+
|
| 143 |
+
**Subtotal**: ~5.000 linhas (estimado)
|
| 144 |
+
|
| 145 |
+
---
|
| 146 |
+
|
| 147 |
+
## 🔗 Categoria 6: Integrações Únicas
|
| 148 |
+
|
| 149 |
+
**Hash da Categoria**: `fe58676fa2c8d29abfb991175da5fb91f1a19ff4cf44d90b29be8514f1e19c16`
|
| 150 |
+
|
| 151 |
+
### Sistemas de Integração (3 arquivos)
|
| 152 |
+
|
| 153 |
+
| Sistema | Hash | Descrição |
|
| 154 |
+
|---------|------|-----------|
|
| 155 |
+
| rag_system.py | `a9bdf4cdd5d7442389c9561b317ed341b2d0d5300eb9d6bedb90d15fff41644c` | RAG (Retrieval-Augmented Generation) |
|
| 156 |
+
| combined_search_service.py | `f9fdf868a5ffecfb4c8dec6655aec77b03aa31a5e0fd26b107c34c60d49d0944` | Busca combinada (Web + Local + Vector) |
|
| 157 |
+
| autohome_tools.py | `440e4a4a654798f6e46055c8fe10bda1f2db2438822e3324f6a923c949ce9807` | Automação residencial (Tuya, Control ID) |
|
| 158 |
+
|
| 159 |
+
---
|
| 160 |
+
|
| 161 |
+
## 📊 Resumo por Tipo
|
| 162 |
+
|
| 163 |
+
| Tipo | Quantidade | Linhas (est.) | Percentual |
|
| 164 |
+
|------|-----------|---------------|------------|
|
| 165 |
+
| Python (Backend) | 14 | ~8.000 | 53% |
|
| 166 |
+
| JavaScript/React (Frontend) | 1 | ~5.000 | 33% |
|
| 167 |
+
| Shell Scripts | 27 | ~2.000 | 13% |
|
| 168 |
+
| SQL | 5 | ~500 | 1% |
|
| 169 |
+
| **TOTAL** | **47** | **~15.500** | **100%** |
|
| 170 |
+
|
| 171 |
+
\+ 4 componentes de fingerprint do modelo LLM = **51 componentes únicos**
|
| 172 |
+
|
| 173 |
+
---
|
| 174 |
+
|
| 175 |
+
## 🛠️ Stack Tecnológico
|
| 176 |
+
|
| 177 |
+
### Backend
|
| 178 |
+
- Python 3.11+
|
| 179 |
+
- Flask (Web Framework)
|
| 180 |
+
- PostgreSQL 15 (Database)
|
| 181 |
+
- SQLAlchemy (ORM)
|
| 182 |
+
- JWT (Authentication)
|
| 183 |
+
- Tavily API (Web Search)
|
| 184 |
+
|
| 185 |
+
### Frontend
|
| 186 |
+
- React 18
|
| 187 |
+
- TypeScript
|
| 188 |
+
- Capacitor (Mobile)
|
| 189 |
+
- Vite (Build Tool)
|
| 190 |
+
|
| 191 |
+
### AI/ML
|
| 192 |
+
- llama.cpp (Engine)
|
| 193 |
+
- PyTorch (opcional)
|
| 194 |
+
- Transformers (opcional)
|
| 195 |
+
|
| 196 |
+
### Infraestrutura
|
| 197 |
+
- Nginx (Reverse Proxy)
|
| 198 |
+
- Docker (Containerization)
|
| 199 |
+
- systemd (Service Management)
|
| 200 |
+
|
| 201 |
+
### Integrações
|
| 202 |
+
- Tuya API (IoT)
|
| 203 |
+
- Control ID (Access Control)
|
| 204 |
+
- Tavily (Web Search)
|
| 205 |
+
- PostgreSQL (Persistence)
|
| 206 |
+
|
| 207 |
+
---
|
| 208 |
+
|
| 209 |
+
## 🔐 Metodologia de Hash
|
| 210 |
+
|
| 211 |
+
Cada componente foi hasheado individualmente usando SHA-256:
|
| 212 |
+
|
| 213 |
+
```
|
| 214 |
+
arquivo → SHA-256 → hash individual
|
| 215 |
+
```
|
| 216 |
+
|
| 217 |
+
Depois, todos os hashes foram combinados em categorias:
|
| 218 |
+
|
| 219 |
+
```
|
| 220 |
+
hashes da categoria → SHA-256 → hash da categoria
|
| 221 |
+
```
|
| 222 |
+
|
| 223 |
+
Finalmente, todas as categorias foram combinadas:
|
| 224 |
+
|
| 225 |
+
```
|
| 226 |
+
todas as categorias → SHA-256 → HASH MESTRE
|
| 227 |
+
```
|
| 228 |
+
|
| 229 |
+
**Hash Mestre**: `196660c17a32fdc82764f738bcb3b8cc6f93bc7df942977ca9a8fc0a5e6c3e73`
|
| 230 |
+
|
| 231 |
+
---
|
| 232 |
+
|
| 233 |
+
## ✅ Verificação
|
| 234 |
+
|
| 235 |
+
Para verificar qualquer componente:
|
| 236 |
+
|
| 237 |
+
1. Baixe o arquivo `vick_fingerprint.json`
|
| 238 |
+
2. Localize o hash do componente desejado
|
| 239 |
+
3. Compare com o hash do seu arquivo local
|
| 240 |
+
|
| 241 |
+
```bash
|
| 242 |
+
# Exemplo: verificar auth_service.py
|
| 243 |
+
sha256sum auth_service.py
|
| 244 |
+
# Deve retornar: efedf443e8787e0d821f9895a89b3fa68ee9431c876a3fc8e9460d34849a93a0
|
| 245 |
+
```
|
| 246 |
+
|
| 247 |
+
---
|
| 248 |
+
|
| 249 |
+
**Última Atualização**: 30 de Outubro de 2025
|
| 250 |
+
**Versão**: 2.0
|
| 251 |
+
**Proprietário**: TechLifes
|