sinapse-ai 7.4.4 → 7.4.6
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/.claude/CLAUDE.md +1 -0
- package/.claude/rules/nsn-mode.md +53 -0
- package/.sinapse-ai/constitution.md +29 -0
- package/.sinapse-ai/install-manifest.yaml +2 -2
- package/README.en.md +52 -36
- package/README.md +51 -35
- package/bin/utils/validate-publish.js +4 -49
- package/package.json +2 -2
- package/sinapse/agents/sinapse-orqx.md +26 -0
package/.claude/CLAUDE.md
CHANGED
|
@@ -21,6 +21,7 @@ O SINAPSE possui uma **Constitution formal** com princípios inegociáveis e gat
|
|
|
21
21
|
| IV | No Invention | MUST |
|
|
22
22
|
| V | Quality First | MUST |
|
|
23
23
|
| VI | Absolute Imports | SHOULD |
|
|
24
|
+
| VII | Ecosystem Metrics Accuracy | NON-NEGOTIABLE |
|
|
24
25
|
|
|
25
26
|
**Gates automáticos bloqueiam violações.** Consulte a Constitution para detalhes completos.
|
|
26
27
|
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# NSN Mode — Never Say Never (Global Rule)
|
|
2
|
+
|
|
3
|
+
> **NON-NEGOTIABLE**: This rule applies to ALL agents in the SINAPSE ecosystem.
|
|
4
|
+
> No agent may say "I can't" without first exhausting alternatives.
|
|
5
|
+
|
|
6
|
+
## Protocol
|
|
7
|
+
|
|
8
|
+
When ANY agent encounters a barrier (technical limitation, permission denied, tool failure, unknown approach):
|
|
9
|
+
|
|
10
|
+
1. **Classify** the barrier:
|
|
11
|
+
- `permission` — System permission missing
|
|
12
|
+
- `technical` — Tool or API limitation
|
|
13
|
+
- `knowledge` — Don't know how to do it
|
|
14
|
+
- `external` — External service blocks
|
|
15
|
+
|
|
16
|
+
2. **Search** for solutions:
|
|
17
|
+
- Use WebSearch/WebFetch to find workarounds
|
|
18
|
+
- Query patterns: `"{tool} {error} workaround"`, `"{action} alternative approach"`
|
|
19
|
+
- Check documentation for the tool/service
|
|
20
|
+
|
|
21
|
+
3. **Try 3+ alternatives** before escalating:
|
|
22
|
+
- If Tool A fails → try Tool B
|
|
23
|
+
- If API blocks → try browser automation
|
|
24
|
+
- If direct approach fails → try indirect approach
|
|
25
|
+
- If programmatic fails → try CLI tool
|
|
26
|
+
|
|
27
|
+
4. **Configure and test** the solution found:
|
|
28
|
+
- Install dependencies if needed
|
|
29
|
+
- Adjust permissions
|
|
30
|
+
- Test in isolated context
|
|
31
|
+
- Validate result
|
|
32
|
+
|
|
33
|
+
5. **Repeat** — If still blocked, return to step 2 with new context (max 5 cycles)
|
|
34
|
+
|
|
35
|
+
6. **Escalate** — After 5 cycles, report to user with detailed log of what was tried
|
|
36
|
+
|
|
37
|
+
## Anti-Patterns (FORBIDDEN)
|
|
38
|
+
|
|
39
|
+
- Saying "I can't do this" without trying alternatives
|
|
40
|
+
- Stopping at the first error
|
|
41
|
+
- Assuming something is impossible without researching
|
|
42
|
+
- Asking the user to do something the agent can automate
|
|
43
|
+
- Giving up without documenting what was tried
|
|
44
|
+
|
|
45
|
+
## Exceptions
|
|
46
|
+
|
|
47
|
+
- Destructive actions affecting user data → ask confirmation first
|
|
48
|
+
- Actions involving payment/purchase → ask confirmation first
|
|
49
|
+
- Actions violating laws or terms of service → inform and stop
|
|
50
|
+
|
|
51
|
+
## Applies To
|
|
52
|
+
|
|
53
|
+
Every agent: @developer, @quality-gate, @architect, @sinapse-orqx, all squad orqx agents, and all specialist agents within squads. No exceptions.
|
|
@@ -125,6 +125,35 @@ import { useStore } from '../../../stores/feature/store'
|
|
|
125
125
|
|
|
126
126
|
---
|
|
127
127
|
|
|
128
|
+
### VII. Ecosystem Metrics Accuracy (NON-NEGOTIABLE)
|
|
129
|
+
|
|
130
|
+
Métricas do ecossistema (contagem de squads, agentes, tasks, orqx) DEVEM ser estritamente exatas em todos os documentos, código e artefatos.
|
|
131
|
+
|
|
132
|
+
**Fonte de verdade:** `~/.sinapse/metadata.json` (gerado pelo installer a partir de contagem real de arquivos)
|
|
133
|
+
|
|
134
|
+
**Números canônicos atuais:**
|
|
135
|
+
- **18 squads** (diretórios com squad.yaml)
|
|
136
|
+
- **175 agentes** (174 em squads + 1 master sinapse-orqx)
|
|
137
|
+
- **20 comandos orqx** (18 squad orqx + sinapse-orqx + tools-orqx)
|
|
138
|
+
|
|
139
|
+
**Regras:**
|
|
140
|
+
- MUST: Todo documento que menciona contagem de squads/agentes DEVE usar os números exatos do metadata.json
|
|
141
|
+
- MUST: Ao adicionar ou remover um squad/agente, TODOS os documentos que referenciam a contagem DEVEM ser atualizados na mesma operação
|
|
142
|
+
- MUST NOT: Arredondar, estimar ou aproximar contagens — o número DEVE ser exato
|
|
143
|
+
- MUST NOT: Ter discrepância entre qualquer par de documentos que mencionam a mesma métrica
|
|
144
|
+
|
|
145
|
+
**Documentos que referenciam estas métricas (devem estar sincronizados):**
|
|
146
|
+
- `README.md` e `README.en.md` (header, body, tabela)
|
|
147
|
+
- `package.json` (description)
|
|
148
|
+
- `AGENTS.md` (contagens de orqx e especialistas)
|
|
149
|
+
- `sinapse-orqx.md` (todas as cópias: .sinapse-ai/, .claude/, .codex/, sinapse/)
|
|
150
|
+
- `packages/installer/src/wizard/feedback.js` (output do installer)
|
|
151
|
+
- `~/.sinapse/metadata.json` (fonte de verdade)
|
|
152
|
+
|
|
153
|
+
**Gate:** Qualquer PR que altere contagem de squads/agentes sem atualizar TODOS os documentos listados acima é BLOQUEADO.
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
128
157
|
## Governance
|
|
129
158
|
|
|
130
159
|
### Amendment Process
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
# - SHA256 hashes for change detection
|
|
8
8
|
# - File types for categorization
|
|
9
9
|
#
|
|
10
|
-
version: 7.4.
|
|
11
|
-
generated_at: "2026-03-
|
|
10
|
+
version: 7.4.6
|
|
11
|
+
generated_at: "2026-03-29T05:05:29.249Z"
|
|
12
12
|
generator: scripts/generate-install-manifest.js
|
|
13
13
|
file_count: 1101
|
|
14
14
|
files:
|
package/README.en.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
|
|
10
|
-
> **
|
|
10
|
+
> **175 AI agents. 18 specialized squads. One CLI.**
|
|
11
11
|
>
|
|
12
12
|
> SINAPSE AI is an open source framework that organizes AI agents into specialized squads to solve real problems in business, marketing, development, copywriting, design and more. Works directly in your terminal with Claude Code, Codex CLI or any compatible IDE.
|
|
13
13
|
|
|
@@ -19,8 +19,8 @@ SINAPSE AI is not another chatbot. It is an orchestration system where each agen
|
|
|
19
19
|
|
|
20
20
|
**What you get when you install:**
|
|
21
21
|
|
|
22
|
-
- **
|
|
23
|
-
- **
|
|
22
|
+
- **18 squad orchestrators (orqx)** ready to activate from the terminal
|
|
23
|
+
- **175 specialized agents** with their own knowledge bases
|
|
24
24
|
- **Complete workflows** for planning, development, QA and deploy
|
|
25
25
|
- **Story-Driven Development** with automatic progress tracking
|
|
26
26
|
- **Multi-IDE support**: Claude Code and Codex CLI
|
|
@@ -87,7 +87,7 @@ Each squad is a team of specialized agents with its own knowledge base, workflow
|
|
|
87
87
|
| **squad-finance** | Budget, pricing, profitability analysis | 5 |
|
|
88
88
|
| **claude-code-mastery** | Advanced Claude Code mastery | 8 |
|
|
89
89
|
|
|
90
|
-
**Total:
|
|
90
|
+
**Total: 18 squads, 175 specialized agents**
|
|
91
91
|
|
|
92
92
|
---
|
|
93
93
|
|
|
@@ -196,55 +196,71 @@ Use `@squad-creator` or see the [Squads Guide](docs/guides/squads-guide.md).
|
|
|
196
196
|
|
|
197
197
|
## Claude Code vs Codex CLI — Full Comparison
|
|
198
198
|
|
|
199
|
-
SINAPSE works on both IDEs.
|
|
199
|
+
SINAPSE works on both IDEs. Both support most features with different approaches.
|
|
200
200
|
|
|
201
201
|
### Features
|
|
202
202
|
|
|
203
|
-
| Feature | Claude Code | Codex CLI |
|
|
204
|
-
|
|
205
|
-
| **
|
|
206
|
-
| **Knowledge bases per squad** | YES | YES |
|
|
207
|
-
| **Tasks and workflows** | YES | YES |
|
|
208
|
-
| **Story-Driven Development** | YES | YES |
|
|
209
|
-
| **Agent commands (`*help`, `*task`)** | YES | YES |
|
|
210
|
-
| **Squad awareness auto-routing** | YES | YES |
|
|
211
|
-
| **
|
|
212
|
-
| **
|
|
213
|
-
| **MCP servers
|
|
214
|
-
| **
|
|
215
|
-
| **
|
|
216
|
-
| **
|
|
203
|
+
| Feature | Claude Code | Codex CLI | Notes |
|
|
204
|
+
|---------|:-----------:|:---------:|-------|
|
|
205
|
+
| **18 squads with 175 agents** | YES | YES | Identical on both |
|
|
206
|
+
| **Knowledge bases per squad** | YES | YES | Identical on both |
|
|
207
|
+
| **Tasks and workflows** | YES | YES | Identical on both |
|
|
208
|
+
| **Story-Driven Development** | YES | YES | Identical on both |
|
|
209
|
+
| **Agent commands (`*help`, `*task`)** | YES | YES | Identical on both |
|
|
210
|
+
| **Squad awareness auto-routing** | YES | YES | Identical on both |
|
|
211
|
+
| **NSN Mode (Never Say Never)** | YES | YES | Global rule on both |
|
|
212
|
+
| **Chrome Brain (browser automation)** | YES | YES | Claude: hooks auto-launch. Codex: via MCP or chrome-cdp-skill |
|
|
213
|
+
| **MCP servers** | YES | YES | Claude: `~/.claude.json`. Codex: `config.toml` or `codex mcp add` |
|
|
214
|
+
| **Hooks (PreToolUse / PostToolUse)** | YES | PARTIAL | Codex: Bash tool only, disabled on Windows |
|
|
215
|
+
| **Agent handoff protocol** | YES | YES | Via instructions + skills on both |
|
|
216
|
+
| **SYNAPSE context engine** | YES | PARTIAL | Codex: via instructions.md + skills (no dynamic rules) |
|
|
217
|
+
| **Native skills system** | NO | YES | Codex has `$skill-name` with progressive disclosure |
|
|
218
|
+
| **Multi-model (Claude + others)** | NO | YES | Codex supports any OpenAI model |
|
|
219
|
+
| **Parallel subagents** | YES | YES | Codex: configurable max 6 threads |
|
|
220
|
+
| **Non-interactive CI/CD** | NO | YES | Codex: `codex exec` with `--json` |
|
|
217
221
|
|
|
218
222
|
### How to Activate Agents
|
|
219
223
|
|
|
220
224
|
| Action | Claude Code | Codex CLI |
|
|
221
225
|
|--------|-------------|-----------|
|
|
222
|
-
| Main orchestrator | `/SINAPSE:agents:sinapse-orqx` |
|
|
223
|
-
| Brand squad | `@brand-orqx` | `sinapse-brand` |
|
|
224
|
-
| Copy squad | `@copy-orqx` | `sinapse-copy` |
|
|
225
|
-
| Developer | `@developer` | `sinapse-dev` |
|
|
226
|
+
| Main orchestrator | `/SINAPSE:agents:sinapse-orqx` | `@sinapse-orqx` or `$sinapse-orqx` |
|
|
227
|
+
| Brand squad | `@brand-orqx` | `@brand-orqx` or `$sinapse-brand` |
|
|
228
|
+
| Copy squad | `@copy-orqx` | `@copy-orqx` or `$sinapse-copy` |
|
|
229
|
+
| Developer | `@developer` | `@developer` or `$sinapse-dev` |
|
|
226
230
|
| List agents | `@sinapse-orqx *help` | `/skills` |
|
|
231
|
+
| Chrome Brain | Auto-activates by prompt | `codex mcp add chrome-devtools` |
|
|
227
232
|
|
|
228
233
|
### Where Each IDE Shines
|
|
229
234
|
|
|
230
|
-
**Claude Code** —
|
|
231
|
-
- Chrome Brain auto-activates
|
|
232
|
-
-
|
|
233
|
-
-
|
|
234
|
-
-
|
|
235
|
-
- Handoff protocol optimizes agent switching
|
|
235
|
+
**Claude Code** — Most integrated experience:
|
|
236
|
+
- Chrome Brain auto-activates via hooks (zero manual config)
|
|
237
|
+
- Context engine injects rules automatically by domain and file
|
|
238
|
+
- Deny/allow rules protect files deterministically
|
|
239
|
+
- Largest MCP server ecosystem (Figma, Supabase, Notion, etc.)
|
|
236
240
|
|
|
237
|
-
**Codex CLI** —
|
|
238
|
-
-
|
|
239
|
-
-
|
|
240
|
-
-
|
|
241
|
-
-
|
|
241
|
+
**Codex CLI** — Most flexible and extensible:
|
|
242
|
+
- Native skills with `$skill-name` and progressive disclosure
|
|
243
|
+
- Supports any OpenAI model (not just Claude)
|
|
244
|
+
- `codex exec` for non-interactive CI/CD automation
|
|
245
|
+
- Can run AS an MCP server (other agents can invoke Codex)
|
|
246
|
+
- Profiles for quick config switching
|
|
247
|
+
- Subagents with max 6 parallel threads
|
|
248
|
+
|
|
249
|
+
### Chrome Brain Setup on Codex CLI
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
# Add Chrome DevTools MCP to Codex
|
|
253
|
+
codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
|
|
254
|
+
|
|
255
|
+
# OR install the chrome-cdp skill (direct connection, no Puppeteer)
|
|
256
|
+
# pi install git:github.com/pasky/chrome-cdp-skill@v1.0.1
|
|
257
|
+
```
|
|
242
258
|
|
|
243
259
|
### Recommendation
|
|
244
260
|
|
|
245
|
-
>
|
|
261
|
+
> **Claude Code** for the most integrated and automated experience — Chrome Brain auto-activates, hooks run automatically, context engine injects rules.
|
|
246
262
|
>
|
|
247
|
-
>
|
|
263
|
+
> **Codex CLI** for model flexibility, native skills, and CI/CD automation — with minimal manual setup for Chrome Brain.
|
|
248
264
|
|
|
249
265
|
---
|
|
250
266
|
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
|
|
10
|
-
> **175 agentes de IA.
|
|
10
|
+
> **175 agentes de IA. 18 squads especializados. Uma CLI.**
|
|
11
11
|
>
|
|
12
12
|
> O SINAPSE AI e um framework open source que organiza agentes de IA em squads especializados para resolver problemas reais de negocios, marketing, desenvolvimento, copy, design e mais. Funciona direto no seu terminal com Claude Code, Codex CLI ou qualquer IDE compativel.
|
|
13
13
|
|
|
@@ -19,7 +19,7 @@ O SINAPSE AI nao e mais um chatbot. E um sistema de orquestracao onde cada agent
|
|
|
19
19
|
|
|
20
20
|
**O que voce ganha ao instalar:**
|
|
21
21
|
|
|
22
|
-
- **
|
|
22
|
+
- **18 orquestradores de squad (orqx)** prontos para ativar direto no terminal
|
|
23
23
|
- **175 agentes especializados** com knowledge bases proprias
|
|
24
24
|
- **Workflows completos** de planejamento, desenvolvimento, QA e deploy
|
|
25
25
|
- **Story-Driven Development** com rastreamento automatico de progresso
|
|
@@ -87,7 +87,7 @@ Cada squad e uma equipe de agentes especializados com knowledge base, workflows
|
|
|
87
87
|
| **squad-finance** | Budget, pricing, profitability analysis | 5 |
|
|
88
88
|
| **claude-code-mastery** | Dominio avancado do Claude Code | 8 |
|
|
89
89
|
|
|
90
|
-
**Total:
|
|
90
|
+
**Total: 18 squads, 175 agentes especializados**
|
|
91
91
|
|
|
92
92
|
---
|
|
93
93
|
|
|
@@ -221,55 +221,71 @@ Use `@squad-creator` ou veja o [Guia de Squads](docs/guides/squads-guide.md).
|
|
|
221
221
|
|
|
222
222
|
## Claude Code vs Codex CLI — Comparativo Completo
|
|
223
223
|
|
|
224
|
-
O SINAPSE funciona em ambas as IDEs.
|
|
224
|
+
O SINAPSE funciona em ambas as IDEs. Ambas suportam a maioria das funcionalidades com abordagens diferentes.
|
|
225
225
|
|
|
226
226
|
### Funcionalidades
|
|
227
227
|
|
|
228
|
-
| Funcionalidade | Claude Code | Codex CLI |
|
|
229
|
-
|
|
230
|
-
| **
|
|
231
|
-
| **Knowledge bases por squad** | SIM | SIM |
|
|
232
|
-
| **Tasks e workflows** | SIM | SIM |
|
|
233
|
-
| **Story-Driven Development** | SIM | SIM |
|
|
234
|
-
| **Agent commands (`*help`, `*task`)** | SIM | SIM |
|
|
235
|
-
| **Squad awareness auto-routing** | SIM | SIM |
|
|
236
|
-
| **
|
|
237
|
-
| **
|
|
238
|
-
| **MCP servers
|
|
239
|
-
| **
|
|
240
|
-
| **
|
|
241
|
-
| **
|
|
228
|
+
| Funcionalidade | Claude Code | Codex CLI | Notas |
|
|
229
|
+
|---------------|:-----------:|:---------:|-------|
|
|
230
|
+
| **18 squads com 175 agentes** | SIM | SIM | Identico em ambas |
|
|
231
|
+
| **Knowledge bases por squad** | SIM | SIM | Identico em ambas |
|
|
232
|
+
| **Tasks e workflows** | SIM | SIM | Identico em ambas |
|
|
233
|
+
| **Story-Driven Development** | SIM | SIM | Identico em ambas |
|
|
234
|
+
| **Agent commands (`*help`, `*task`)** | SIM | SIM | Identico em ambas |
|
|
235
|
+
| **Squad awareness auto-routing** | SIM | SIM | Identico em ambas |
|
|
236
|
+
| **NSN Mode (Never Say Never)** | SIM | SIM | Regra global em ambas |
|
|
237
|
+
| **Chrome Brain (browser automation)** | SIM | SIM | Claude: hooks auto-launch. Codex: via MCP ou chrome-cdp-skill |
|
|
238
|
+
| **MCP servers** | SIM | SIM | Claude: `~/.claude.json`. Codex: `config.toml` ou `codex mcp add` |
|
|
239
|
+
| **Hooks (PreToolUse / PostToolUse)** | SIM | PARCIAL | Codex: so Bash tool, desabilitado no Windows |
|
|
240
|
+
| **Agent handoff protocol** | SIM | SIM | Via instructions + skills em ambas |
|
|
241
|
+
| **SYNAPSE context engine** | SIM | PARCIAL | Codex: via instructions.md + skills (sem regras dinamicas) |
|
|
242
|
+
| **Skills system nativo** | NAO | SIM | Codex tem `$skill-name` com progressive disclosure |
|
|
243
|
+
| **Multi-model (Claude + outros)** | NAO | SIM | Codex suporta qualquer modelo OpenAI |
|
|
244
|
+
| **Subagents paralelos** | SIM | SIM | Codex: max 6 threads configuraveis |
|
|
245
|
+
| **CI/CD non-interactive** | NAO | SIM | Codex: `codex exec` com `--json` |
|
|
242
246
|
|
|
243
247
|
### Como Ativar Agentes
|
|
244
248
|
|
|
245
249
|
| Acao | Claude Code | Codex CLI |
|
|
246
250
|
|------|-------------|-----------|
|
|
247
|
-
| Orquestrador principal | `/SINAPSE:agents:sinapse-orqx` |
|
|
248
|
-
| Squad de brand | `@brand-orqx` | `sinapse-brand` |
|
|
249
|
-
| Squad de copy | `@copy-orqx` | `sinapse-copy` |
|
|
250
|
-
| Developer | `@developer` | `sinapse-dev` |
|
|
251
|
+
| Orquestrador principal | `/SINAPSE:agents:sinapse-orqx` | `@sinapse-orqx` ou `$sinapse-orqx` |
|
|
252
|
+
| Squad de brand | `@brand-orqx` | `@brand-orqx` ou `$sinapse-brand` |
|
|
253
|
+
| Squad de copy | `@copy-orqx` | `@copy-orqx` ou `$sinapse-copy` |
|
|
254
|
+
| Developer | `@developer` | `@developer` ou `$sinapse-dev` |
|
|
251
255
|
| Listar agentes | `@sinapse-orqx *help` | `/skills` |
|
|
256
|
+
| Chrome Brain | Auto-ativa por prompt | `codex mcp add chrome-devtools` |
|
|
252
257
|
|
|
253
258
|
### Onde Cada IDE Brilha
|
|
254
259
|
|
|
255
|
-
**Claude Code** — Experiencia
|
|
256
|
-
- Chrome Brain auto-ativa
|
|
257
|
-
-
|
|
258
|
-
-
|
|
259
|
-
-
|
|
260
|
-
- Handoff protocol otimiza troca entre agentes
|
|
260
|
+
**Claude Code** — Experiencia mais integrada:
|
|
261
|
+
- Chrome Brain auto-ativa por hooks (zero configuracao manual)
|
|
262
|
+
- Context engine injeta regras automaticamente por dominio e arquivo
|
|
263
|
+
- Deny/allow rules protegem arquivos deterministicamente
|
|
264
|
+
- Maior ecossistema de MCP servers (Figma, Supabase, Notion, etc.)
|
|
261
265
|
|
|
262
|
-
**Codex CLI** —
|
|
263
|
-
-
|
|
264
|
-
-
|
|
265
|
-
-
|
|
266
|
-
-
|
|
266
|
+
**Codex CLI** — Mais flexivel e extensivel:
|
|
267
|
+
- Skills nativas com `$skill-name` e progressive disclosure
|
|
268
|
+
- Suporta qualquer modelo OpenAI (nao apenas Claude)
|
|
269
|
+
- `codex exec` para automacao CI/CD sem interacao
|
|
270
|
+
- Pode rodar como MCP server (outros agentes invocam Codex)
|
|
271
|
+
- Profiles para alternar configuracoes rapidamente
|
|
272
|
+
- Subagents com max 6 threads paralelos
|
|
273
|
+
|
|
274
|
+
### Setup Chrome Brain no Codex CLI
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
# Adicionar Chrome DevTools MCP ao Codex
|
|
278
|
+
codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
|
|
279
|
+
|
|
280
|
+
# OU instalar a skill chrome-cdp (conexao direta, sem Puppeteer)
|
|
281
|
+
# pi install git:github.com/pasky/chrome-cdp-skill@v1.0.1
|
|
282
|
+
```
|
|
267
283
|
|
|
268
284
|
### Recomendacao
|
|
269
285
|
|
|
270
|
-
>
|
|
286
|
+
> **Claude Code** para quem quer a experiencia mais integrada e automatizada — Chrome Brain auto-ativa, hooks rodam sozinhos, context engine injeta regras.
|
|
271
287
|
>
|
|
272
|
-
>
|
|
288
|
+
> **Codex CLI** para quem quer flexibilidade de modelo, skills nativas, e automacao CI/CD — com setup manual minimo para Chrome Brain.
|
|
273
289
|
|
|
274
290
|
---
|
|
275
291
|
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Publish Safety Gate —
|
|
5
|
+
* Publish Safety Gate — File Count + Dependency Validation
|
|
6
6
|
* Story INS-4.10, INS-4.12
|
|
7
7
|
*
|
|
8
8
|
* Prevents publishing incomplete packages by validating:
|
|
9
|
-
* 1.
|
|
10
|
-
* 2.
|
|
11
|
-
* 3. Package file count meets minimum threshold (>= 50)
|
|
12
|
-
* 4. (INS-4.12) .sinapse-ai/package.json dependency completeness
|
|
9
|
+
* 1. Package file count meets minimum threshold (>= 50)
|
|
10
|
+
* 2. (INS-4.12) .sinapse-ai/package.json dependency completeness
|
|
13
11
|
*
|
|
14
12
|
* Exit codes: 0 = PASS, 1 = FAIL
|
|
15
13
|
* Usage: node bin/utils/validate-publish.js
|
|
@@ -20,57 +18,14 @@ const path = require('path');
|
|
|
20
18
|
const { execSync } = require('child_process');
|
|
21
19
|
|
|
22
20
|
const PROJECT_ROOT = path.join(__dirname, '..', '..');
|
|
23
|
-
const PRO_DIR = path.join(PROJECT_ROOT, 'pro');
|
|
24
|
-
const CRITICAL_FILE = path.join(PRO_DIR, 'license', 'license-api.js');
|
|
25
21
|
const MIN_FILE_COUNT = 50;
|
|
26
22
|
|
|
27
|
-
// CI environments may not have access to the private pro submodule
|
|
28
|
-
const IS_CI = process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
|
|
29
|
-
|
|
30
23
|
let passed = true;
|
|
31
24
|
let fileCount = 0;
|
|
32
25
|
|
|
33
|
-
// Check 1: pro/ submodule populated
|
|
34
26
|
console.log('--- Publish Safety Gate (INS-4.10) ---\n');
|
|
35
27
|
|
|
36
|
-
|
|
37
|
-
if (IS_CI) {
|
|
38
|
-
console.log('SKIP: pro/ directory not available (CI — private submodule requires separate access token)');
|
|
39
|
-
} else {
|
|
40
|
-
console.error('FAIL: pro/ directory does not exist.');
|
|
41
|
-
console.error(' Fix: git submodule update --init pro');
|
|
42
|
-
passed = false;
|
|
43
|
-
}
|
|
44
|
-
} else {
|
|
45
|
-
const entries = fs.readdirSync(PRO_DIR).filter(e => e !== '.git');
|
|
46
|
-
if (entries.length === 0) {
|
|
47
|
-
if (IS_CI) {
|
|
48
|
-
console.log('SKIP: pro/ submodule empty (CI — private submodule requires separate access token)');
|
|
49
|
-
} else {
|
|
50
|
-
console.error('FAIL: pro/ submodule not initialized (directory is empty).');
|
|
51
|
-
console.error(' Fix: git submodule update --init pro');
|
|
52
|
-
passed = false;
|
|
53
|
-
}
|
|
54
|
-
} else {
|
|
55
|
-
console.log(`PASS: pro/ submodule populated (${entries.length} entries)`);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Check 2: Critical file exists
|
|
60
|
-
if (!fs.existsSync(CRITICAL_FILE)) {
|
|
61
|
-
if (IS_CI) {
|
|
62
|
-
console.log('SKIP: pro/license/license-api.js not available (CI — private submodule)');
|
|
63
|
-
} else {
|
|
64
|
-
console.error('FAIL: pro/license/license-api.js not found.');
|
|
65
|
-
console.error(' This is a critical file required for Pro license validation.');
|
|
66
|
-
console.error(' Fix: git submodule update --init --recursive pro');
|
|
67
|
-
passed = false;
|
|
68
|
-
}
|
|
69
|
-
} else {
|
|
70
|
-
console.log('PASS: pro/license/license-api.js exists');
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Check 3: File count threshold via npm pack --dry-run
|
|
28
|
+
// Check 1: File count threshold via npm pack --dry-run
|
|
74
29
|
try {
|
|
75
30
|
const packOutput = execSync('npm pack --dry-run 2>&1', {
|
|
76
31
|
encoding: 'utf8',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sinapse-ai",
|
|
3
|
-
"version": "7.4.
|
|
4
|
-
"description": "SINAPSE AI: Framework de orquestracao de IA — 18 squads,
|
|
3
|
+
"version": "7.4.6",
|
|
4
|
+
"description": "SINAPSE AI: Framework de orquestracao de IA — 18 squads, 175 agentes especializados",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sinapse": "bin/sinapse.js",
|
|
7
7
|
"sinapse-ai": "bin/cli.js",
|
|
@@ -71,6 +71,32 @@ When the user provides ANY briefing, request, or initiative (regardless of compl
|
|
|
71
71
|
|
|
72
72
|
**The user should NEVER have to request orchestration or handoffs. This is Imperator's core function and must happen automatically on every briefing.**
|
|
73
73
|
|
|
74
|
+
## NON-NEGOTIABLE: NSN MODE (NEVER SAY NEVER)
|
|
75
|
+
|
|
76
|
+
> **Every agent under Imperator's command operates in NSN Mode.**
|
|
77
|
+
|
|
78
|
+
Before ANY agent says "I can't", "this is not possible", or "I don't know how":
|
|
79
|
+
1. Search the web for workarounds (WebSearch/WebFetch)
|
|
80
|
+
2. Try 3+ alternative approaches
|
|
81
|
+
3. Configure, test, repeat (max 5 cycles)
|
|
82
|
+
4. Only escalate after exhausting all alternatives with a detailed report
|
|
83
|
+
|
|
84
|
+
**Imperator enforces NSN across all squads.** If a squad agent gives up too early, Imperator intervenes with alternative routing or cross-squad coordination.
|
|
85
|
+
|
|
86
|
+
See `.claude/rules/nsn-mode.md` for the full protocol.
|
|
87
|
+
|
|
88
|
+
## NON-NEGOTIABLE: DOCUMENTATION HANDOFFS
|
|
89
|
+
|
|
90
|
+
> **Every orchestration plan MUST include documentation handoffs.**
|
|
91
|
+
|
|
92
|
+
No project continues without proper documentation. For every execution:
|
|
93
|
+
1. **Story file** must be created/updated with progress checkboxes
|
|
94
|
+
2. **File List** must be maintained in the story
|
|
95
|
+
3. **Architectural decisions** must be documented in the handoff artifact
|
|
96
|
+
4. **README/docs** must be updated when user-facing changes are made
|
|
97
|
+
|
|
98
|
+
Documentation is NOT optional. It is a handoff deliverable like code.
|
|
99
|
+
|
|
74
100
|
## COMPLETE AGENT DEFINITION
|
|
75
101
|
|
|
76
102
|
```yaml
|