sinapse-ai 7.0.4 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/.sinapse-ai/core-config.yaml +2 -26
  2. package/.sinapse-ai/data/entity-registry.yaml +759 -926
  3. package/.sinapse-ai/data/registry-update-log.jsonl +22 -0
  4. package/.sinapse-ai/infrastructure/scripts/ide-sync/index.js +1 -49
  5. package/.sinapse-ai/infrastructure/scripts/validate-parity.js +0 -7
  6. package/.sinapse-ai/install-manifest.yaml +11 -43
  7. package/README.en.md +6 -11
  8. package/README.md +6 -11
  9. package/bin/modules/env-config.js +1 -2
  10. package/bin/sinapse-init.js +23 -188
  11. package/docs/ide-integration.md +22 -263
  12. package/docs/installation/README.md +4 -6
  13. package/docs/installation/faq.md +10 -33
  14. package/docs/installation/linux.md +0 -23
  15. package/docs/installation/macos.md +0 -10
  16. package/docs/installation/troubleshooting.md +5 -9
  17. package/docs/installation/v4-quick-start.md +1 -1
  18. package/docs/installation/windows.md +0 -18
  19. package/package.json +1 -9
  20. package/packages/installer/src/config/ide-configs.js +3 -49
  21. package/squads/squad-cloning/squad.yaml +2 -2
  22. package/squads/squad-finance/squad.yaml +2 -2
  23. package/squads/squad-product/agents/product-orqx.md +1 -1
  24. package/squads/squad-product/squad.yaml +1 -1
  25. package/.sinapse-ai/infrastructure/scripts/ide-sync/transformers/antigravity.js +0 -105
  26. package/.sinapse-ai/infrastructure/scripts/ide-sync/transformers/cursor.js +0 -94
  27. package/.sinapse-ai/infrastructure/scripts/ide-sync/transformers/github-copilot.js +0 -184
  28. package/.sinapse-ai/infrastructure/scripts/validate-gemini-integration.js +0 -151
  29. package/.sinapse-ai/product/templates/ide-rules/antigravity-rules.md +0 -115
  30. package/.sinapse-ai/product/templates/ide-rules/copilot-rules.md +0 -92
  31. package/.sinapse-ai/product/templates/ide-rules/cursor-rules.md +0 -115
  32. package/.sinapse-ai/product/templates/ide-rules/gemini-rules.md +0 -87
  33. package/docs/pt/platforms/antigravity.md +0 -508
  34. package/docs/pt/platforms/cursor.md +0 -633
  35. package/docs/pt/platforms/gemini-cli.md +0 -481
  36. package/docs/pt/platforms/github-copilot.md +0 -478
@@ -1,508 +0,0 @@
1
- # Guia SINAPSE para AntiGravity
2
-
3
- > 🌐 [EN](../../platforms/antigravity.md) | **PT** | [ES](../../es/platforms/antigravity.md)
4
-
5
- ---
6
-
7
- > **Plataforma de Desenvolvimento Agêntico do Google** - Arquitetura Baseada em Workflows
8
-
9
- ---
10
-
11
- ## Visão Geral
12
-
13
- ### O que é o AntiGravity?
14
-
15
- AntiGravity é a plataforma de desenvolvimento agêntico do Google que permite que desenvolvedores construam e orquestrem workflows com IA. Ele apresenta uma abordagem única baseada em workflows para ativação de agentes e integração profunda com serviços do Google Cloud.
16
-
17
- ### Por que usar SINAPSE com AntiGravity?
18
-
19
- O AntiGravity oferece capacidades distintas:
20
-
21
- - **Sistema de Workflows**: Orquestre interações complexas de agentes
22
- - **Integração Google Cloud**: Firebase nativo, serviços GCP
23
- - **MCP Nativo**: Suporte integrado ao Model Context Protocol
24
- - **Ativação @mention**: Ativação padrão de agentes
25
- - **Workflows Multi-Agente**: Encadeie agentes juntos
26
-
27
- ### Comparação com Outras Plataformas
28
-
29
- | Recurso | AntiGravity | Claude Code | Cursor |
30
- |---------|:-----------:|:-----------:|:------:|
31
- | Sistema de Workflow | Sim | Task Tool | Composer |
32
- | Google Cloud Nativo | Sim | Não | Não |
33
- | Suporte MCP | Nativo | Nativo | Config |
34
- | Encadeamento de Agentes | Sim | Subagentes | Não |
35
-
36
- ---
37
-
38
- ## Requisitos
39
-
40
- ### Requisitos de Sistema
41
-
42
- | Requisito | Mínimo | Recomendado |
43
- |-----------|--------|-------------|
44
- | **RAM** | 4GB | 8GB+ |
45
- | **Espaço em Disco** | 1GB | 2GB+ |
46
- | **Node.js** | 18.0+ | 20.0+ |
47
-
48
- ### Requisitos de Conta
49
-
50
- - **Conta Google Cloud**
51
- - **Acesso AntiGravity** (via Google AI)
52
- - **Projeto Firebase** (opcional, para integrações)
53
-
54
- ---
55
-
56
- ## Instalação
57
-
58
- ### Passo 1: Instalar o AntiGravity
59
-
60
- ```bash
61
- # Instalar via npm
62
- npm install -g @google/antigravity
63
-
64
- # Ou usar o instalador do Google
65
- curl -fsSL https://get.antigravity.dev | sh
66
- ```
67
-
68
- ### Passo 2: Autenticar
69
-
70
- ```bash
71
- # Login com conta Google
72
- antigravity auth login
73
-
74
- # Ou configurar service account
75
- export GOOGLE_APPLICATION_CREDENTIALS="caminho/para/credentials.json"
76
- ```
77
-
78
- ### Passo 3: Instalar o SINAPSE
79
-
80
- ```bash
81
- cd seu-projeto
82
- npx @anthropic/sinapse init
83
- # Selecione "AntiGravity" quando solicitado
84
- ```
85
-
86
- ### Passo 4: Verificar a Instalação
87
-
88
- ```bash
89
- ls -la .antigravity/
90
- ls -la .agent/
91
- ```
92
-
93
- Estrutura esperada:
94
- ```
95
- projeto/
96
- ├── .antigravity/
97
- │ ├── rules.md # Regras principais
98
- │ ├── antigravity.json # Configuração
99
- │ └── agents/ # Definições de agentes
100
- └── .agent/
101
- └── workflows/ # Definições de workflow
102
- ├── dev-workflow.yaml
103
- ├── qa-workflow.yaml
104
- └── ...
105
- ```
106
-
107
- ---
108
-
109
- ## Configuração
110
-
111
- ### Configuração Principal
112
-
113
- **Localização:** `.antigravity/antigravity.json`
114
-
115
- ```json
116
- {
117
- "version": "1.0",
118
- "project": "nome-do-seu-projeto",
119
- "agents": {
120
- "default": "dev",
121
- "available": ["dev", "qa", "architect", "pm", "po", "analyst"]
122
- },
123
- "workflows": {
124
- "directory": ".agent/workflows"
125
- },
126
- "mcp": {
127
- "enabled": true,
128
- "servers": ["filesystem", "firebase"]
129
- }
130
- }
131
- ```
132
-
133
- ### Arquivo de Regras
134
-
135
- **Localização:** `.antigravity/rules.md`
136
-
137
- ```markdown
138
- # Regras SINAPSE para AntiGravity
139
-
140
- ## Sistema de Agentes
141
- - Use @nome-agente ou workflows para ativação
142
- - Siga definições de workflow para tarefas complexas
143
-
144
- ## Padrões de Desenvolvimento
145
- - Escreva código limpo e testado
146
- - Siga padrões existentes
147
- - Inclua tratamento abrangente de erros
148
- ```
149
-
150
- ### Definições de Workflow
151
-
152
- **Localização:** `.agent/workflows/`
153
-
154
- ```yaml
155
- # dev-workflow.yaml
156
- name: Workflow do Desenvolvedor
157
- trigger: "@developer"
158
- agent: developer
159
- steps:
160
- - name: analyze
161
- action: read_story
162
- input: "${story_path}"
163
- - name: implement
164
- action: write_code
165
- context: "${analyze.output}"
166
- - name: test
167
- action: run_tests
168
- ```
169
-
170
- ---
171
-
172
- ## Uso Básico
173
-
174
- ### Iniciando o AntiGravity
175
-
176
- ```bash
177
- # Iniciar no projeto atual
178
- antigravity start
179
-
180
- # Iniciar com workflow específico
181
- antigravity run dev-workflow
182
- ```
183
-
184
- ### Ativando Agentes
185
-
186
- **Via @mention:**
187
- ```
188
- @developer implemente a feature de autenticação de usuário
189
-
190
- @quality-gate revise este módulo para problemas de segurança
191
-
192
- @architect projete o API gateway
193
- ```
194
-
195
- **Via Workflow:**
196
- ```bash
197
- antigravity workflow run dev --input "implementar feature de auth"
198
- ```
199
-
200
- ### Comandos de Agente
201
-
202
- ```
203
- *help # Mostrar comandos disponíveis
204
- *workflow list # Listar workflows disponíveis
205
- *workflow run X # Executar workflow X
206
- *exit # Sair do agente atual
207
- ```
208
-
209
- ---
210
-
211
- ## Uso Avançado
212
-
213
- ### Orquestração de Workflow
214
-
215
- Crie workflows multi-agente complexos:
216
-
217
- ```yaml
218
- # feature-implementation.yaml
219
- name: Implementação de Feature
220
- description: Feature completa da story ao deployment
221
-
222
- stages:
223
- - name: planning
224
- agent: architect
225
- steps:
226
- - analyze_requirements
227
- - create_design_doc
228
-
229
- - name: implementation
230
- agent: developer
231
- depends_on: planning
232
- steps:
233
- - implement_feature
234
- - write_tests
235
-
236
- - name: quality
237
- agent: qa
238
- depends_on: implementation
239
- steps:
240
- - run_tests
241
- - security_review
242
-
243
- - name: documentation
244
- agent: developer
245
- depends_on: quality
246
- steps:
247
- - update_docs
248
- - create_changelog
249
- ```
250
-
251
- ### Integração MCP
252
-
253
- O AntiGravity tem suporte MCP nativo:
254
-
255
- ```json
256
- {
257
- "mcp": {
258
- "servers": {
259
- "filesystem": {
260
- "enabled": true
261
- },
262
- "firebase": {
263
- "enabled": true,
264
- "project": "seu-projeto-firebase"
265
- },
266
- "bigquery": {
267
- "enabled": true,
268
- "dataset": "seu-dataset"
269
- }
270
- }
271
- }
272
- }
273
- ```
274
-
275
- ### Serviços Google Cloud
276
-
277
- Integração direta com GCP:
278
-
279
- ```
280
- @developer Faça deploy desta função para Cloud Functions
281
-
282
- @devops Configure Cloud Run para este serviço
283
-
284
- @architect Projete usando Firestore para armazenamento de dados
285
- ```
286
-
287
- ### Encadeamento de Agentes
288
-
289
- Encadeie múltiplos agentes em um workflow:
290
-
291
- ```yaml
292
- chain:
293
- - agent: analyst
294
- task: "Analisar requisitos"
295
- output: requirements
296
-
297
- - agent: architect
298
- task: "Projetar solução"
299
- input: "${requirements}"
300
- output: design
301
-
302
- - agent: developer
303
- task: "Implementar solução"
304
- input: "${design}"
305
- ```
306
-
307
- ---
308
-
309
- ## Recursos Específicos do AntiGravity
310
-
311
- ### Dashboard de Workflow
312
-
313
- Acesse o editor visual de workflow:
314
- ```bash
315
- antigravity dashboard
316
- ```
317
-
318
- ### Integração Firebase
319
-
320
- ```yaml
321
- # Use Firebase em workflows
322
- firebase:
323
- firestore:
324
- collection: "projects/${project_id}/tasks"
325
- storage:
326
- bucket: "project-assets"
327
- ```
328
-
329
- ### Cloud Functions
330
-
331
- Faça deploy de funções com agentes:
332
-
333
- ```javascript
334
- // functions/agent-handler.js
335
- const { AntiGravity } = require('@google/antigravity');
336
-
337
- exports.handleRequest = AntiGravity.createFunction({
338
- agent: 'dev',
339
- workflow: 'code-review'
340
- });
341
- ```
342
-
343
- ---
344
-
345
- ## Sincronização de Agentes
346
-
347
- ### Como Funciona
348
-
349
- ```mermaid
350
- flowchart LR
351
- Source["SINAPSE Core<br/>.sinapse-ai/development/agents"] --> Parser["Parser de Agente"]
352
- Parser --> Transform["Transformador AntiGravity"]
353
- Transform --> Agents[".antigravity/agents/"]
354
- Transform --> Workflows[".agent/workflows/"]
355
- ```
356
-
357
- ### Comandos de Sincronização
358
-
359
- ```bash
360
- # Sincronizar todos os agentes e workflows
361
- npm run sync:ide
362
-
363
- # Sincronizar para AntiGravity
364
- npm run sync:ide -- --ide antigravity
365
- ```
366
-
367
- ### Formato de Agente
368
-
369
- O AntiGravity usa um formato híbrido:
370
-
371
- ```yaml
372
- # .antigravity/agents/dev.yaml
373
- name: dev
374
- displayName: Desenvolvedor
375
- description: Desenvolvedor Full Stack Sênior
376
-
377
- persona:
378
- role: Desenvolvedor Full Stack
379
- expertise:
380
- - TypeScript/JavaScript
381
- - Node.js, React
382
- - Design de banco de dados
383
- - Deploy em nuvem
384
-
385
- workflow:
386
- default: dev-workflow
387
- triggers:
388
- - "@developer"
389
- - "desenvolver"
390
- - "implementar"
391
- ```
392
-
393
- ---
394
-
395
- ## Limitações Conhecidas
396
-
397
- ### Limitações Atuais
398
-
399
- | Limitação | Solução Alternativa |
400
- |-----------|---------------------|
401
- | Conta Google necessária | Use service accounts |
402
- | Configuração complexa de workflow | Use templates |
403
- | Suporte limitado a IDEs | Foco em CLI |
404
-
405
- ### AntiGravity vs Claude Code
406
-
407
- | Aspecto | AntiGravity | Claude Code |
408
- |---------|-------------|-------------|
409
- | Sistema de Workflow | Nativo | Task Tool |
410
- | Cloud Nativo | Google | Qualquer |
411
- | MCP | Nativo | Nativo |
412
- | CLI | Sim | Sim |
413
-
414
- ---
415
-
416
- ## Troubleshooting
417
-
418
- ### Problemas Comuns
419
-
420
- #### Falha de Autenticação
421
- ```
422
- Error: Unable to authenticate
423
- ```
424
- **Solução:**
425
- ```bash
426
- antigravity auth logout
427
- antigravity auth login
428
- ```
429
-
430
- #### Workflow Não Encontrado
431
- ```
432
- Error: Workflow 'xyz' not found
433
- ```
434
- **Solução:**
435
- ```bash
436
- # Listar workflows disponíveis
437
- antigravity workflow list
438
-
439
- # Verificar diretório de workflows
440
- ls .agent/workflows/
441
- ```
442
-
443
- #### Agente Não Reconhecido
444
- ```
445
- Error: Unknown agent '@xyz'
446
- ```
447
- **Solução:**
448
- ```bash
449
- # Ressincronizar agentes
450
- npm run sync:ide
451
-
452
- # Verificar config do agente
453
- cat .antigravity/antigravity.json
454
- ```
455
-
456
- ### Logs
457
-
458
- ```bash
459
- # Ver logs do AntiGravity
460
- antigravity logs
461
-
462
- # Modo verbose
463
- antigravity --verbose start
464
- ```
465
-
466
- ---
467
-
468
- ## FAQ
469
-
470
- **P: Preciso do Google Cloud?**
471
- R: Recursos básicos funcionam sem ele, mas integração completa requer conta GCP.
472
-
473
- **P: Posso usar modelos não-Google?**
474
- R: AntiGravity usa principalmente modelos do Google, mas algumas configurações permitem modelos externos.
475
-
476
- **P: Qual a diferença entre agentes e workflows?**
477
- R: Agentes são personas com expertise; workflows orquestram ações de agentes em sequências.
478
-
479
- ---
480
-
481
- ## Migração
482
-
483
- ### Do Claude Code para AntiGravity
484
-
485
- 1. Seus agentes em `.sinapse-ai/` são portáveis
486
- 2. Inicialize AntiGravity:
487
- ```bash
488
- npx @anthropic/sinapse init --ide antigravity
489
- ```
490
- 3. Arquivos de workflow são gerados automaticamente
491
-
492
- ### Do AntiGravity para Outras IDEs
493
-
494
- 1. Agentes SINAPSE permanecem em `.sinapse-ai/`
495
- 2. Inicialize para a IDE de destino
496
- 3. Configs específicas da plataforma são geradas
497
-
498
- ---
499
-
500
- ## Recursos Adicionais
501
-
502
- - [Documentação AntiGravity](https://cloud.google.com/antigravity/docs)
503
- - [Google Cloud AI](https://cloud.google.com/ai)
504
- - [Integração Firebase](https://firebase.google.com)
505
-
506
- ---
507
-
508
- *SINAPSE - Guia da Plataforma AntiGravity v1.0*