sinapse-ai 7.3.3 → 7.4.1
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.
- package/.sinapse-ai/data/entity-registry.yaml +763 -765
- package/.sinapse-ai/development/templates/chrome-brain/knowledge-base/chrome-brain.md +161 -0
- package/.sinapse-ai/development/templates/chrome-brain/rules/chrome-brain-autoload.md +56 -0
- package/.sinapse-ai/development/templates/chrome-brain/scripts/chrome-brain-log.sh +67 -0
- package/.sinapse-ai/development/templates/chrome-brain/scripts/chrome-debug.sh +232 -0
- package/.sinapse-ai/development/templates/chrome-brain/scripts/chrome-ensure.sh +210 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-animations.md +50 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-brand.md +42 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-claude.md +49 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-cloning.md +50 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-commercial.md +41 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-content.md +45 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-copy.md +44 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-cybersecurity.md +42 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-design.md +50 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-growth.md +45 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-paidmedia.md +47 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-product.md +49 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-research.md +41 -0
- package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-storytelling.md +41 -0
- package/.sinapse-ai/install-manifest.yaml +81 -5
- package/CHROME-BRAIN-INSTALL.md +93 -0
- package/README.md +28 -1
- package/bin/modules/chrome-brain-installer.js +757 -0
- package/bin/sinapse.js +18 -0
- package/install-chrome-brain.sh +1328 -0
- package/package.json +3 -1
- package/packages/installer/src/wizard/index.js +24 -0
- package/packages/sinapse-install/src/capabilities/chrome-brain.js +962 -0
- package/packages/sinapse-install/src/installer.js +60 -2
- package/sinapse/agents/sinapse-orqx.md +27 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Chrome Brain Integration — Squad Paid Media (Apex)
|
|
2
|
+
> Squad Paid Media tem acesso ao Chrome Brain para captura de landing pages de concorrentes, extracao de criativos publicitarios, analise de lead forms e auditoria Lighthouse de paginas de destino.
|
|
3
|
+
## Tier: 2
|
|
4
|
+
## Quando Ativar
|
|
5
|
+
- Analise de landing page de concorrente (estrutura, copy, CTA, formulario)
|
|
6
|
+
- Extracao de criativos publicitarios visiveis em bibliotecas de anuncios (Meta Ad Library, Google Ads Transparency)
|
|
7
|
+
- Auditoria de lead forms de concorrentes (campos, UX, numero de steps, fricao)
|
|
8
|
+
- Lighthouse audit de landing pages proprias ou de clientes (performance impacta Quality Score)
|
|
9
|
+
- Captura de SERP ads para analise de headlines, descriptions e extensoes
|
|
10
|
+
## O Que Recebe do Chrome Brain
|
|
11
|
+
- Screenshots de landing pages de concorrentes em multiplos breakpoints
|
|
12
|
+
- Estrutura de landing page extraida (hero, beneficios, prova social, CTA, formulario)
|
|
13
|
+
- Criativos de anuncios capturados da Meta Ad Library e Google Ads Transparency Center
|
|
14
|
+
- Lead form analysis: campos, tipos de input, validacoes, numero de steps
|
|
15
|
+
- Lighthouse scores de landing pages (performance, mobile usability)
|
|
16
|
+
- SERP screenshots com anuncios pagos destacados
|
|
17
|
+
## O Que Envia pro Chrome Brain
|
|
18
|
+
- URLs de landing pages para captura batch
|
|
19
|
+
- Filtros para Meta Ad Library (anunciante, pais, plataforma)
|
|
20
|
+
- Landing pages proprias para auditoria Lighthouse
|
|
21
|
+
- Requests de captura mobile-first (375px) para analise de UX mobile
|
|
22
|
+
|
|
23
|
+
## Tools Disponiveis
|
|
24
|
+
|
|
25
|
+
1. **Chrome DevTools MCP** (29 tools) — acoes rapidas, screenshots, audit
|
|
26
|
+
2. **dev-browser** — scraping complexo, batch operations
|
|
27
|
+
3. **claude-in-chrome** — fallback visual
|
|
28
|
+
|
|
29
|
+
## Session Management
|
|
30
|
+
|
|
31
|
+
- Max 15 screenshots por sessao
|
|
32
|
+
- Salvar outputs em arquivo antes de acumular
|
|
33
|
+
- Rotacionar sessao a cada ~12 screenshots
|
|
34
|
+
|
|
35
|
+
## NSN Mode
|
|
36
|
+
|
|
37
|
+
Ativo. Se uma acao de browser falhar, tentar alternativas automaticamente.
|
|
38
|
+
Buscar solucao na internet. Configurar, testar, repetir. Max 5 ciclos.
|
|
39
|
+
|
|
40
|
+
## Auto-Learning
|
|
41
|
+
|
|
42
|
+
Ao descobrir novo pattern ou resolver barreira via NSN, atualizar:
|
|
43
|
+
`~/.sinapse/sinapse/knowledge-base/chrome-brain.md` → secao Learnings Log
|
|
44
|
+
|
|
45
|
+
## Referencia Completa
|
|
46
|
+
|
|
47
|
+
`~/.sinapse/sinapse/knowledge-base/chrome-brain.md`
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Chrome Brain Integration — Squad Product (Orbit)
|
|
2
|
+
|
|
3
|
+
> Squad Product tem acesso ao Chrome Brain para analise de produtos concorrentes, mapeamento de user journeys, captura de onboarding flows e benchmark de funcionalidades.
|
|
4
|
+
|
|
5
|
+
## Tier: 3
|
|
6
|
+
|
|
7
|
+
## Quando Ativar
|
|
8
|
+
|
|
9
|
+
- Analise de produto concorrente (funcionalidades, pricing, UX, fluxos)
|
|
10
|
+
- Captura de onboarding flows e product tours de referencia
|
|
11
|
+
- Mapeamento de user journey em aplicacoes web
|
|
12
|
+
- Benchmark de funcionalidades e features entre competidores
|
|
13
|
+
|
|
14
|
+
## O Que Recebe do Chrome Brain
|
|
15
|
+
|
|
16
|
+
- Screenshots de funcionalidades de produtos concorrentes
|
|
17
|
+
- Onboarding flows capturados passo a passo
|
|
18
|
+
- User journey mapeado com screenshots e navegacao
|
|
19
|
+
- Pricing pages e feature comparison tables extraidas
|
|
20
|
+
|
|
21
|
+
## O Que Envia pro Chrome Brain
|
|
22
|
+
|
|
23
|
+
N/A para esta squad
|
|
24
|
+
|
|
25
|
+
## Tools Disponiveis
|
|
26
|
+
|
|
27
|
+
1. **Chrome DevTools MCP** (29 tools) — acoes rapidas, screenshots, audit
|
|
28
|
+
2. **dev-browser** — scraping complexo, batch operations
|
|
29
|
+
3. **claude-in-chrome** — fallback visual
|
|
30
|
+
|
|
31
|
+
## Session Management
|
|
32
|
+
|
|
33
|
+
- Max 15 screenshots por sessao
|
|
34
|
+
- Salvar outputs em arquivo antes de acumular
|
|
35
|
+
- Rotacionar sessao a cada ~12 screenshots
|
|
36
|
+
|
|
37
|
+
## NSN Mode
|
|
38
|
+
|
|
39
|
+
Ativo. Se uma acao de browser falhar, tentar alternativas automaticamente.
|
|
40
|
+
Buscar solucao na internet. Configurar, testar, repetir. Max 5 ciclos.
|
|
41
|
+
|
|
42
|
+
## Auto-Learning
|
|
43
|
+
|
|
44
|
+
Ao descobrir novo pattern ou resolver barreira via NSN, atualizar:
|
|
45
|
+
`~/.sinapse/sinapse/knowledge-base/chrome-brain.md` secao Learnings Log
|
|
46
|
+
|
|
47
|
+
## Referencia Completa
|
|
48
|
+
|
|
49
|
+
`~/.sinapse/sinapse/knowledge-base/chrome-brain.md`
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Chrome Brain Integration — Squad Research (Prism)
|
|
2
|
+
> Squad Research tem acesso ao Chrome Brain para coleta de dados de sites concorrentes, precos publicos, portfolios e case studies.
|
|
3
|
+
## Tier: 3
|
|
4
|
+
## Quando Ativar
|
|
5
|
+
- Coleta de dados publicos de concorrentes (servicos, precos, equipe, localizacoes)
|
|
6
|
+
- Captura de portfolios e case studies de empresas de referencia
|
|
7
|
+
- Extracao de informacoes de mercado de fontes publicas
|
|
8
|
+
- Mapeamento de presenca digital de concorrentes
|
|
9
|
+
## O Que Recebe do Chrome Brain
|
|
10
|
+
- Dados estruturados de sites concorrentes
|
|
11
|
+
- Portfolios e case studies extraidos com texto e screenshots
|
|
12
|
+
- Rankings e listas de diretories do setor
|
|
13
|
+
- Reviews e depoimentos publicos
|
|
14
|
+
## O Que Envia pro Chrome Brain
|
|
15
|
+
N/A para esta squad
|
|
16
|
+
|
|
17
|
+
## Tools Disponiveis
|
|
18
|
+
|
|
19
|
+
1. **Chrome DevTools MCP** (29 tools) — acoes rapidas, screenshots, audit
|
|
20
|
+
2. **dev-browser** — scraping complexo, batch operations
|
|
21
|
+
3. **claude-in-chrome** — fallback visual
|
|
22
|
+
|
|
23
|
+
## Session Management
|
|
24
|
+
|
|
25
|
+
- Max 15 screenshots por sessao
|
|
26
|
+
- Salvar outputs em arquivo antes de acumular
|
|
27
|
+
- Rotacionar sessao a cada ~12 screenshots
|
|
28
|
+
|
|
29
|
+
## NSN Mode
|
|
30
|
+
|
|
31
|
+
Ativo. Se uma acao de browser falhar, tentar alternativas automaticamente.
|
|
32
|
+
Buscar solucao na internet. Configurar, testar, repetir. Max 5 ciclos.
|
|
33
|
+
|
|
34
|
+
## Auto-Learning
|
|
35
|
+
|
|
36
|
+
Ao descobrir novo pattern ou resolver barreira via NSN, atualizar:
|
|
37
|
+
`~/.sinapse/sinapse/knowledge-base/chrome-brain.md` → secao Learnings Log
|
|
38
|
+
|
|
39
|
+
## Referencia Completa
|
|
40
|
+
|
|
41
|
+
`~/.sinapse/sinapse/knowledge-base/chrome-brain.md`
|
package/.sinapse-ai/development/templates/chrome-brain/squad-integrations/squad-storytelling.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Chrome Brain Integration — Squad Storytelling (Arc)
|
|
2
|
+
> Squad Storytelling tem acesso ao Chrome Brain para captura de apresentacoes web, analise de estrutura narrativa de landing pages e storytelling patterns.
|
|
3
|
+
## Tier: 3
|
|
4
|
+
## Quando Ativar
|
|
5
|
+
- Captura de apresentacoes HTML publicadas na web
|
|
6
|
+
- Analise de estrutura narrativa de landing pages (arco emocional, pacing)
|
|
7
|
+
- Extracao de storytelling patterns de paginas de alta conversao
|
|
8
|
+
- Captura de narrative flow de onboarding ou product tours
|
|
9
|
+
## O Que Recebe do Chrome Brain
|
|
10
|
+
- HTML de apresentacoes web (slides + transicoes)
|
|
11
|
+
- Estrutura narrativa mapeada por funcao na historia
|
|
12
|
+
- Sequencia de CTAs no arco narrativo
|
|
13
|
+
- Screenshots de momentos-chave
|
|
14
|
+
## O Que Envia pro Chrome Brain
|
|
15
|
+
N/A para esta squad
|
|
16
|
+
|
|
17
|
+
## Tools Disponiveis
|
|
18
|
+
|
|
19
|
+
1. **Chrome DevTools MCP** (29 tools) — acoes rapidas, screenshots, audit
|
|
20
|
+
2. **dev-browser** — scraping complexo, batch operations
|
|
21
|
+
3. **claude-in-chrome** — fallback visual
|
|
22
|
+
|
|
23
|
+
## Session Management
|
|
24
|
+
|
|
25
|
+
- Max 15 screenshots por sessao
|
|
26
|
+
- Salvar outputs em arquivo antes de acumular
|
|
27
|
+
- Rotacionar sessao a cada ~12 screenshots
|
|
28
|
+
|
|
29
|
+
## NSN Mode
|
|
30
|
+
|
|
31
|
+
Ativo. Se uma acao de browser falhar, tentar alternativas automaticamente.
|
|
32
|
+
Buscar solucao na internet. Configurar, testar, repetir. Max 5 ciclos.
|
|
33
|
+
|
|
34
|
+
## Auto-Learning
|
|
35
|
+
|
|
36
|
+
Ao descobrir novo pattern ou resolver barreira via NSN, atualizar:
|
|
37
|
+
`~/.sinapse/sinapse/knowledge-base/chrome-brain.md` → secao Learnings Log
|
|
38
|
+
|
|
39
|
+
## Referencia Completa
|
|
40
|
+
|
|
41
|
+
`~/.sinapse/sinapse/knowledge-base/chrome-brain.md`
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
# - SHA256 hashes for change detection
|
|
8
8
|
# - File types for categorization
|
|
9
9
|
#
|
|
10
|
-
version: 7.
|
|
11
|
-
generated_at: "2026-03-
|
|
10
|
+
version: 7.4.1
|
|
11
|
+
generated_at: "2026-03-27T15:01:17.079Z"
|
|
12
12
|
generator: scripts/generate-install-manifest.js
|
|
13
|
-
file_count:
|
|
13
|
+
file_count: 1101
|
|
14
14
|
files:
|
|
15
15
|
- path: cli/commands/config/index.js
|
|
16
16
|
hash: sha256:66f111eceef0f60fa0a8904add783b615d55b01d5fe36408623c3dd828e702f6
|
|
@@ -1217,9 +1217,9 @@ files:
|
|
|
1217
1217
|
type: data
|
|
1218
1218
|
size: 9586
|
|
1219
1219
|
- path: data/entity-registry.yaml
|
|
1220
|
-
hash: sha256:
|
|
1220
|
+
hash: sha256:b57be94586adc273f3f57905c2a430ecc9e0135b1101dd076b8b53829b01855f
|
|
1221
1221
|
type: data
|
|
1222
|
-
size:
|
|
1222
|
+
size: 511377
|
|
1223
1223
|
- path: data/learned-patterns.yaml
|
|
1224
1224
|
hash: sha256:24ac0b160615583a0ff783d3da8af80b7f94191575d6db2054ec8e10a3f945dc
|
|
1225
1225
|
type: data
|
|
@@ -2560,6 +2560,82 @@ files:
|
|
|
2560
2560
|
hash: sha256:abb8d46dce28abb9cd140931db4283202d7c2b89220c43283c6518813a0911ad
|
|
2561
2561
|
type: template
|
|
2562
2562
|
size: 1988
|
|
2563
|
+
- path: development/templates/chrome-brain/knowledge-base/chrome-brain.md
|
|
2564
|
+
hash: sha256:ed47917601edfe48153290ea57b3d367220ceba6b976e7222c2451af6b4a6566
|
|
2565
|
+
type: template
|
|
2566
|
+
size: 5923
|
|
2567
|
+
- path: development/templates/chrome-brain/rules/chrome-brain-autoload.md
|
|
2568
|
+
hash: sha256:a3079e8e30f252f4a0da766b930bccc15d0288c3012482c0ad4901ccba27bc5d
|
|
2569
|
+
type: template
|
|
2570
|
+
size: 1944
|
|
2571
|
+
- path: development/templates/chrome-brain/scripts/chrome-brain-log.sh
|
|
2572
|
+
hash: sha256:d72c54d9b67745fac667f1fb05387f11b9bfc55b8bebb64cca67c9a44171d436
|
|
2573
|
+
type: template
|
|
2574
|
+
size: 2592
|
|
2575
|
+
- path: development/templates/chrome-brain/scripts/chrome-debug.sh
|
|
2576
|
+
hash: sha256:5907538f71757df0954533507e5efac4ebb4c18f92fb93cd305b61fa1c379809
|
|
2577
|
+
type: template
|
|
2578
|
+
size: 7207
|
|
2579
|
+
- path: development/templates/chrome-brain/scripts/chrome-ensure.sh
|
|
2580
|
+
hash: sha256:eab2018b622c8550381c6d4555f4496595859b98401dff63a3036abf8433ebfa
|
|
2581
|
+
type: template
|
|
2582
|
+
size: 6557
|
|
2583
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-animations.md
|
|
2584
|
+
hash: sha256:596de202b6745b48bec2367f0e45788e1f87526b02fe44c9f0d212ff1e90b4c3
|
|
2585
|
+
type: template
|
|
2586
|
+
size: 2385
|
|
2587
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-brand.md
|
|
2588
|
+
hash: sha256:a443cadd2a26d5b42104b652d963d3a91280028040e028ea615f5e65b357e85f
|
|
2589
|
+
type: template
|
|
2590
|
+
size: 1524
|
|
2591
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-claude.md
|
|
2592
|
+
hash: sha256:96574264bde6758ee361372cdf2200ed5849f67ab7e2ac4a11827258058c0a8e
|
|
2593
|
+
type: template
|
|
2594
|
+
size: 2310
|
|
2595
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-cloning.md
|
|
2596
|
+
hash: sha256:5360a6a6450d0c0199f72f2732d7ed8dbed5dc95e40c0aa612a92e11c95cf8db
|
|
2597
|
+
type: template
|
|
2598
|
+
size: 2374
|
|
2599
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-commercial.md
|
|
2600
|
+
hash: sha256:51f67b9da647ad34b80384fc27ecb922caa9505ca514822bc2a3c48742b35ee9
|
|
2601
|
+
type: template
|
|
2602
|
+
size: 1505
|
|
2603
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-content.md
|
|
2604
|
+
hash: sha256:c8b6acc503b81e00634a4f9dab0d04fc612059f1bfb25e06cad3f019d8993ba0
|
|
2605
|
+
type: template
|
|
2606
|
+
size: 1927
|
|
2607
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-copy.md
|
|
2608
|
+
hash: sha256:1df523d5d6d45b03b8bf2eb750efd43dc07f51dfd20ef29014360d8c2822b515
|
|
2609
|
+
type: template
|
|
2610
|
+
size: 1870
|
|
2611
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-cybersecurity.md
|
|
2612
|
+
hash: sha256:d047aceaee0c4982e664ada4ef5762e94b00e6a969fcfa6c102c761416c7e300
|
|
2613
|
+
type: template
|
|
2614
|
+
size: 1524
|
|
2615
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-design.md
|
|
2616
|
+
hash: sha256:fe6e03aec703e0596047f4093ece9a6428c5f2abf8707f095d3593f417f13033
|
|
2617
|
+
type: template
|
|
2618
|
+
size: 2376
|
|
2619
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-growth.md
|
|
2620
|
+
hash: sha256:232314cf5b68f143c8882156119420df4d9cbad45451f615e57e73b63772b43d
|
|
2621
|
+
type: template
|
|
2622
|
+
size: 1958
|
|
2623
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-paidmedia.md
|
|
2624
|
+
hash: sha256:22358b19cd1bdfc33bad208b48e0c4394e5ae5ce15224a962ff5fce93acf8a95
|
|
2625
|
+
type: template
|
|
2626
|
+
size: 2197
|
|
2627
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-product.md
|
|
2628
|
+
hash: sha256:0a5315bc0eb357e116417ca8f8512137bdedcb1bf961f62d491a41690dfbb257
|
|
2629
|
+
type: template
|
|
2630
|
+
size: 1533
|
|
2631
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-research.md
|
|
2632
|
+
hash: sha256:5c8bd62eeafef10528d6128a185ea317d1bc1e45ecc550971c6136f50d57f15f
|
|
2633
|
+
type: template
|
|
2634
|
+
size: 1479
|
|
2635
|
+
- path: development/templates/chrome-brain/squad-integrations/squad-storytelling.md
|
|
2636
|
+
hash: sha256:a76afb13f29e56e84f520b93088195dc75610569e1e72e1867f588e86795a12e
|
|
2637
|
+
type: template
|
|
2638
|
+
size: 1492
|
|
2563
2639
|
- path: development/templates/code-intel-integration-pattern.md
|
|
2564
2640
|
hash: sha256:205a68b8473b2b01af18d0146a3221c114ce6c14dd35ba50e47ae8d055186896
|
|
2565
2641
|
type: template
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Chrome Brain — Browser Automation for SINAPSE
|
|
2
|
+
|
|
3
|
+
Chrome Brain is a **cross-squad capability** that gives ALL SINAPSE agents the power to control Chrome in real-time: navigate sites, clone pages, fill forms, audit performance, extract data, and create 3D animations.
|
|
4
|
+
|
|
5
|
+
## Quick Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Option 1: Via SINAPSE CLI (recommended)
|
|
9
|
+
sinapse chrome-brain install
|
|
10
|
+
|
|
11
|
+
# Option 2: Via npx
|
|
12
|
+
npx sinapse-ai chrome-brain install
|
|
13
|
+
|
|
14
|
+
# Option 3: Standalone script (macOS/Linux)
|
|
15
|
+
chmod +x install-chrome-brain.sh
|
|
16
|
+
./install-chrome-brain.sh
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## What Gets Installed
|
|
20
|
+
|
|
21
|
+
| Component | Location | Purpose |
|
|
22
|
+
|-----------|----------|---------|
|
|
23
|
+
| `chrome-ensure` | `~/.local/bin/` | Auto-launch Chrome debug (hook) |
|
|
24
|
+
| `chrome-debug` | `~/.local/bin/` | Manual Chrome debug launch |
|
|
25
|
+
| `chrome-brain-log` | `~/.local/bin/` | Session logger (hook) |
|
|
26
|
+
| PreToolUse hooks | `~/.claude/settings.json` | Auto-launch before chrome tools |
|
|
27
|
+
| PostToolUse hooks | `~/.claude/settings.json` | Log usage after chrome tools |
|
|
28
|
+
| Chrome DevTools MCP | `~/.claude.json` | 29 browser control tools |
|
|
29
|
+
| Autoload rule | `~/.sinapse/.claude/rules/` | Auto-activation triggers |
|
|
30
|
+
| Master KB | `~/.sinapse/sinapse/knowledge-base/` | Patterns, NSN mode, learnings |
|
|
31
|
+
| 13 squad integrations | `~/.sinapse/squad-*/knowledge-base/` | Per-squad handoff protocols |
|
|
32
|
+
|
|
33
|
+
## How It Works
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
1. User says "abre o site google.com" (or any browser trigger)
|
|
37
|
+
2. Chrome Brain auto-activates (no command needed)
|
|
38
|
+
3. PreToolUse hook runs chrome-ensure → Chrome starts on port 9222
|
|
39
|
+
4. Agent uses Chrome DevTools MCP (29 tools) to execute the task
|
|
40
|
+
5. PostToolUse hook logs usage and tracks screenshot count
|
|
41
|
+
6. Results handed off to the domain squad for processing
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Verify Installation
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
sinapse chrome-brain status
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Uninstall
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
sinapse chrome-brain uninstall
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Supported Platforms
|
|
57
|
+
|
|
58
|
+
- macOS (Google Chrome)
|
|
59
|
+
- Linux (google-chrome, chromium-browser, chromium)
|
|
60
|
+
- Windows (via Git Bash / WSL)
|
|
61
|
+
|
|
62
|
+
## Requirements
|
|
63
|
+
|
|
64
|
+
- Node.js >= 20
|
|
65
|
+
- Google Chrome or Chromium
|
|
66
|
+
- SINAPSE framework (`~/.sinapse/` must exist)
|
|
67
|
+
|
|
68
|
+
## Architecture
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
Chrome (--remote-debugging-port=9222)
|
|
72
|
+
|
|
|
73
|
+
+-- Chrome DevTools MCP (29 tools) — navigate, click, fill, screenshot, audit
|
|
74
|
+
+-- dev-browser (Playwright) — complex scraping, batch operations
|
|
75
|
+
+-- claude-in-chrome (Extension) — visual fallback
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Tooling priority:** Chrome DevTools MCP > dev-browser > claude-in-chrome
|
|
79
|
+
|
|
80
|
+
## Session Limits
|
|
81
|
+
|
|
82
|
+
- Max 15 screenshots per session
|
|
83
|
+
- Rotate at 12 screenshots (warning)
|
|
84
|
+
- Prefer `evaluate_script` over `take_snapshot` (lighter)
|
|
85
|
+
|
|
86
|
+
## NSN Mode (Never Say Never)
|
|
87
|
+
|
|
88
|
+
When any agent hits a barrier, it MUST try 3+ alternatives before escalating. Search the web for workarounds, try different tools, configure and test. Max 5 cycles.
|
|
89
|
+
|
|
90
|
+
## Full Reference
|
|
91
|
+
|
|
92
|
+
After installation, the complete knowledge base is at:
|
|
93
|
+
`~/.sinapse/sinapse/knowledge-base/chrome-brain.md`
|
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ cd seu-projeto && npx sinapse-ai install
|
|
|
48
48
|
npx sinapse-ai@latest install
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
O wizard detecta seu ambiente, configura sua IDE
|
|
51
|
+
O wizard detecta seu ambiente, configura sua IDE, instala os squads e ativa o **Chrome Brain** (browser automation) automaticamente.
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
54
|
# Diagnostico
|
|
@@ -91,6 +91,31 @@ Cada squad e uma equipe de agentes especializados com knowledge base, workflows
|
|
|
91
91
|
|
|
92
92
|
---
|
|
93
93
|
|
|
94
|
+
## Chrome Brain — Browser Automation
|
|
95
|
+
|
|
96
|
+
Todos os agentes do SINAPSE podem controlar o Chrome em tempo real: navegar sites, clonar paginas, preencher formularios, auditar performance e extrair dados.
|
|
97
|
+
|
|
98
|
+
**Instalado automaticamente** pelo wizard. Zero configuracao manual.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
# Verificar status
|
|
102
|
+
sinapse chrome-brain status
|
|
103
|
+
|
|
104
|
+
# Reinstalar/atualizar
|
|
105
|
+
sinapse chrome-brain install
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Como funciona:**
|
|
109
|
+
1. Voce diz: "abre o site google.com"
|
|
110
|
+
2. Chrome Brain auto-ativa (sem comando manual)
|
|
111
|
+
3. Chrome inicia automaticamente na porta 9222
|
|
112
|
+
4. Agente usa 29 tools do Chrome DevTools MCP
|
|
113
|
+
5. Resultado entregue ao squad do dominio
|
|
114
|
+
|
|
115
|
+
**Suporte:** macOS, Linux, Windows (Git Bash/WSL)
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
94
119
|
## Como Usar
|
|
95
120
|
|
|
96
121
|
### No Claude Code
|
|
@@ -213,6 +238,8 @@ npx sinapse-ai doctor # Diagnostico
|
|
|
213
238
|
npx sinapse-ai doctor --fix # Corrigir problemas
|
|
214
239
|
npx sinapse-ai info # Info do sistema
|
|
215
240
|
npx sinapse-ai uninstall # Remover
|
|
241
|
+
sinapse chrome-brain install # Instalar Chrome Brain
|
|
242
|
+
sinapse chrome-brain status # Status do Chrome Brain
|
|
216
243
|
```
|
|
217
244
|
|
|
218
245
|
---
|