cdp-edge 1.5.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.
- package/README.md +377 -0
- package/bin/cdp-edge.js +53 -0
- package/contracts/api-versions.json +368 -0
- package/dist/commands/analyze.js +52 -0
- package/dist/commands/infra.js +54 -0
- package/dist/commands/server.js +174 -0
- package/dist/commands/setup.js +123 -0
- package/dist/commands/validate.js +84 -0
- package/dist/index.js +12 -0
- package/package.json +72 -0
- package/templates/captura-de-lead.md +78 -0
- package/templates/captura-lead-evento-externo.md +99 -0
- package/templates/checkout-proprio.md +111 -0
- package/templates/multi-step-checkout.md +672 -0
- package/templates/pagina-obrigado.md +55 -0
- package/templates/pinterest/conversions-api-template.js +144 -0
- package/templates/pinterest/event-mappings.json +48 -0
- package/templates/pinterest/tag-template.js +28 -0
- package/templates/quiz-funnel.md +68 -0
- package/templates/reddit/conversions-api-template.js +205 -0
- package/templates/reddit/event-mappings.json +56 -0
- package/templates/reddit/pixel-template.js +19 -0
- package/templates/scenarios/behavior-engine.js +425 -0
- package/templates/scenarios/real-estate-logic.md +50 -0
- package/templates/scenarios/sales-page-logic.md +50 -0
- package/templates/trafego-direto.md +582 -0
- package/templates/webinar-registration.md +63 -0
package/README.md
ADDED
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
# 🚀 CDP Edge - Quantum Tracking
|
|
2
|
+
|
|
3
|
+
**Padrão Quantum Tracking: 100% Cloudflare Edge.** Sem GTM. Sem Stape. Sem cookies de terceiros.
|
|
4
|
+
|
|
5
|
+
> **v1.1.0** — Cloudflare Queue + KV + Workers AI · Meta CAPI v22.0 · GA4 MP · TikTok Events API v1.3
|
|
6
|
+
|
|
7
|
+
- **Precisão Máxima**: Meta CAPI v22.0+, GA4 MP e TikTok Events API v1.3.
|
|
8
|
+
- **Identity Graph**: Persistência de leads e eventos via Cloudflare D1.
|
|
9
|
+
- **Anti-Adblock**: Endpoint Same-Domain indetectável.
|
|
10
|
+
- **Human-Behavior Engine**: Score de engajamento (0-100) em tempo real.
|
|
11
|
+
- **Queue Retry**: Zero perda de conversão — eventos com falha reenfileirados automaticamente.
|
|
12
|
+
- **Geo Intelligence**: Cidade, estado e CEP em todos os eventos (Workers Paid).
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 🏗️ ARQUITETURA QUANTUM (CLOUDFARE NATIVE)
|
|
17
|
+
|
|
18
|
+
O CDP Edge não é um "script de rastreio", é uma **Content Delivery Network (CDN)** com inteligência de dados acoplada.
|
|
19
|
+
|
|
20
|
+
```mermaid
|
|
21
|
+
graph TD
|
|
22
|
+
User((Usuário)) -->|Interação| SDK[cdpTrack SDK + Behavior Engine]
|
|
23
|
+
SDK -->|Edge Fetch| Worker[Cloudflare Worker Agent]
|
|
24
|
+
Worker -->|Identity Graph| D1[(D1 SQL Database)]
|
|
25
|
+
Worker -->|Background Job| Queue[Cloudflare Queues]
|
|
26
|
+
Queue -->|Server Dispatch| Meta[Meta CAPI v22.0]
|
|
27
|
+
Queue -->|Server Dispatch| Google[GA4 / Google Ads]
|
|
28
|
+
Queue -->|Server Dispatch| TikTok[TikTok API v1.3]
|
|
29
|
+
D1 -->|Retention Reports| Dash[Dashboard Agent]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 🖱 CATÁLOGO DE AGENTES ESPECIALISTAS
|
|
35
|
+
|
|
36
|
+
O sistema é composto por mais de 30 agentes coordenados pelo **Master Orchestrator**. Cada um possui uma função técnica específica:
|
|
37
|
+
|
|
38
|
+
### 🧠 Núcleo de Inteligência
|
|
39
|
+
| Agente | Função |
|
|
40
|
+
|---|---|
|
|
41
|
+
| **Master Orchestrator** | Coordenação central de especialistas e validação Quantum Tier. |
|
|
42
|
+
| **Page Analyzer** | Mapeamento automático de CTAs, Forms e Nicho do site. |
|
|
43
|
+
| **Validator Agent** | Auditoria de código, segurança e conformidade de APIs. |
|
|
44
|
+
| **Memory Agent** | Gestão de contexto e checkpoints técnicos da sessão. |
|
|
45
|
+
| **Intelligence Agent** | Monitoramento de atualizações de API (Meta v22.0+, etc). |
|
|
46
|
+
|
|
47
|
+
### 🚀 Despachantes de Plataforma
|
|
48
|
+
| Agente | Especialidade |
|
|
49
|
+
|---|---|
|
|
50
|
+
| **Meta Agent** | Facebook Pixel + CAPI (EMQ Max). |
|
|
51
|
+
| **Google Agent** | GA4 + Google Ads Server-Side. |
|
|
52
|
+
| **TikTok Agent** | TikTok Pixel + Events API v1.3. |
|
|
53
|
+
| **Plataformas Ads** | Pinterest, Reddit, Bing, LinkedIn, Spotify. |
|
|
54
|
+
| **Browser Agent** | Geração do SDK `cdpTrack.js` lightweight. |
|
|
55
|
+
|
|
56
|
+
### 🛡️ Módulos Enterprise (Premium)
|
|
57
|
+
| Agente | Função |
|
|
58
|
+
|---|---|
|
|
59
|
+
| **Attribution Agent** | Atribuição Multi-Touch de alta fidelidade. |
|
|
60
|
+
| **Security Agent** | Rate Limiting, Criptografia AES-256 e Bot Defense. |
|
|
61
|
+
| **Compliance Agent** | Gestão de LGPD e GDPR (Consent Mode v2). |
|
|
62
|
+
| **Performance Opt.** | Otimização de Caches e Queries D1 SQL. |
|
|
63
|
+
| **CRM Integration** | Sincronia D1 ↔ HubSpot/Salesforce via CRM Agent. |
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## 💻 INSTALAÇÃO E USO (POWERShell)
|
|
68
|
+
|
|
69
|
+
### Opção 1: Instalar Globalmente
|
|
70
|
+
|
|
71
|
+
```powershell
|
|
72
|
+
# 1. Instalar o pacote
|
|
73
|
+
npm install -g cdp-edge
|
|
74
|
+
|
|
75
|
+
# 2. Verificar instalação
|
|
76
|
+
cdp-edge --version
|
|
77
|
+
|
|
78
|
+
# 3. Executar
|
|
79
|
+
cdp-edge
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Opção 2: Usar via npx (sem instalar)
|
|
83
|
+
|
|
84
|
+
```powershell
|
|
85
|
+
# Executar direto
|
|
86
|
+
npx cdp-edge
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## 📋 COMANDOS DISPONÍVEIS
|
|
92
|
+
|
|
93
|
+
### Comando Único (Wizard Interativo)
|
|
94
|
+
|
|
95
|
+
```powershell
|
|
96
|
+
# Inicia wizard completo no diretório atual
|
|
97
|
+
cdp-edge
|
|
98
|
+
|
|
99
|
+
# Ou em outro diretório
|
|
100
|
+
cdp-edge "C:\caminho\do\projeto"
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Comandos Específicos
|
|
104
|
+
|
|
105
|
+
#### 1. Setup Completo
|
|
106
|
+
|
|
107
|
+
```powershell
|
|
108
|
+
# Configuração interativa completa
|
|
109
|
+
cdp-edge setup
|
|
110
|
+
|
|
111
|
+
# Setup em diretório específico
|
|
112
|
+
cdp-edge setup "C:\meu-projeto"
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**O que faz:**
|
|
116
|
+
- Pergunta plataformas (Meta, TikTok, GA4, etc.)
|
|
117
|
+
- Pergunta tipo de produto (lead, checkout, webinar, etc.)
|
|
118
|
+
- Analisa arquivos do projeto
|
|
119
|
+
- Gera código de tracking (Browser + Server)
|
|
120
|
+
- Cria schema D1 SQL
|
|
121
|
+
- Gera configuração Wrangler
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
#### 2. Analisar Páginas
|
|
126
|
+
|
|
127
|
+
```powershell
|
|
128
|
+
# Analisar diretório atual
|
|
129
|
+
cdp-edge analyze .
|
|
130
|
+
|
|
131
|
+
# Analisar projeto específico
|
|
132
|
+
cdp-edge analyze "C:\caminho\do\projeto"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
**O que faz:**
|
|
136
|
+
- Lê todos os arquivos HTML/JS
|
|
137
|
+
- Detecta CTAs e formulários
|
|
138
|
+
- Identifica nicho do negócio
|
|
139
|
+
- Sugere micro-eventos comportamentais
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
#### 3. Gerar Infraestrutura Server
|
|
144
|
+
|
|
145
|
+
```powershell
|
|
146
|
+
# Gerar Worker + D1 no diretório atual
|
|
147
|
+
cdp-edge server .
|
|
148
|
+
|
|
149
|
+
# Gerar em diretório específico
|
|
150
|
+
cdp-edge server "C:\meu-worker-cloudflare"
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**Arquivos gerados:**
|
|
154
|
+
- `worker.js` - Cloudflare Worker completo
|
|
155
|
+
- `schema.sql` - Schema D1 para persistência
|
|
156
|
+
- `wrangler.toml` - Configuração do Wrangler
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
#### 4. Validar Tracking Existente
|
|
161
|
+
|
|
162
|
+
```powershell
|
|
163
|
+
# Validar arquivo específico
|
|
164
|
+
cdp-edge validate "C:\meu-projeto\tracking.js"
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
**O que verifica:**
|
|
168
|
+
- Presença de `event_id` (deduplicação)
|
|
169
|
+
- Hashing SHA256 para PII (e-mail, telefone)
|
|
170
|
+
- Detecção de GTM/Stape (avisa para migrar)
|
|
171
|
+
- Conformidade com APIs mais recentes
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
#### 5. Guia de Infraestrutura
|
|
176
|
+
|
|
177
|
+
```powershell
|
|
178
|
+
# Mostra guia passo a passo do zero ao deploy
|
|
179
|
+
cdp-edge infra
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Cobre:**
|
|
183
|
+
- Criação de conta Cloudflare
|
|
184
|
+
- Instalação Wrangler CLI
|
|
185
|
+
- Configuração D1 Database
|
|
186
|
+
- Setup de secrets (API tokens)
|
|
187
|
+
- Deploy via `wrangler deploy`
|
|
188
|
+
- Configuração de domínio e rotas
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## 🔄 CICLO DE VIDA DO SETUP (/setup)
|
|
193
|
+
|
|
194
|
+
1. **FASE 0 — Checkpoint:** Sincronização de contexto via Memory Agent.
|
|
195
|
+
2. **FASE 1 — Análise:** Detecção automática de nicho e estrutura da página.
|
|
196
|
+
3. **FASE 2 — Mapeamento:** Identificação de CTAs, Forms e Gateways de venda.
|
|
197
|
+
4. **FASE 3 — Geração:** Código paralelo para Browser (`cdpTrack`), Worker e D1 SQL.
|
|
198
|
+
5. **FASE 4 — Auditoria:** Validação rigorosa e correções automáticas (Validator).
|
|
199
|
+
6. **FASE 5 — Deploy:** Publicação instantânea via `wrangler deploy`.
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## 📁 ESTRUTURA DO REPOSITÓRIO
|
|
204
|
+
|
|
205
|
+
```text
|
|
206
|
+
CDP Edge/
|
|
207
|
+
├── README.md # Você está aqui. A bíblia do sistema.
|
|
208
|
+
├── CLAUDE.md # Guia de desenvolvimento e padrões.
|
|
209
|
+
├── extracted-skill/ # O motor da IA (Agentes e Knowledge Base).
|
|
210
|
+
│ └── tracking-events-generator/
|
|
211
|
+
│ ├── agents/ # 35+ agentes especialistas
|
|
212
|
+
│ ├── models/ # Checklists de cenários de negócio
|
|
213
|
+
│ ├── cdpTrack.js # SDK Browser (window.cdpTrack)
|
|
214
|
+
│ └── knowledge-base.md # Enciclopédia de APIs e Schemas
|
|
215
|
+
├── server-edge-tracker/ # Cloudflare Worker (Infra de Borda)
|
|
216
|
+
│ ├── worker.js # Handler principal + Queue consumer
|
|
217
|
+
│ ├── schema.sql # D1 Schema (Identity Graph)
|
|
218
|
+
│ └── wrangler.toml # Bindings: D1 + Queue + KV + AI
|
|
219
|
+
├── bin/ # CLI Executável (cdp-edge)
|
|
220
|
+
└── templates/ # Templates por cenário de negócio
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## 📚 EXEMPLOS DE USO POWERShell
|
|
226
|
+
|
|
227
|
+
### Cenário 1: Setup Completo para Landing Page
|
|
228
|
+
|
|
229
|
+
```powershell
|
|
230
|
+
# 1. Navegar para o projeto
|
|
231
|
+
cd "C:\Users\comer\meus-projetos\landing-page-lead"
|
|
232
|
+
|
|
233
|
+
# 2. Executar setup
|
|
234
|
+
cdp-edge setup
|
|
235
|
+
|
|
236
|
+
# 3. Responder perguntas do wizard
|
|
237
|
+
# - Plataformas: [ ] Meta (Facebook/Instagram)
|
|
238
|
+
# - Tipo: Lead Capture (Formulário)
|
|
239
|
+
# - Server-side: [x] Sim
|
|
240
|
+
|
|
241
|
+
# 4. Arquivos gerados automaticamente:
|
|
242
|
+
# - cdpTrack.js (Browser SDK)
|
|
243
|
+
# - tracking.config.js
|
|
244
|
+
# - worker.js (Cloudflare Worker)
|
|
245
|
+
# - schema.sql (D1 Database)
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Cenário 2: Apenas Infraestrutura Cloudflare
|
|
249
|
+
|
|
250
|
+
```powershell
|
|
251
|
+
# 1. Criar diretório para o Worker
|
|
252
|
+
New-Item -Path "C:\meu-worker-cloudflare" -ItemType Directory
|
|
253
|
+
cd "C:\meu-worker-cloudflare"
|
|
254
|
+
|
|
255
|
+
# 2. Gerar infraestrutura
|
|
256
|
+
cdp-edge server .
|
|
257
|
+
|
|
258
|
+
# 3. Deploy com Wrangler
|
|
259
|
+
wrangler deploy
|
|
260
|
+
|
|
261
|
+
# 4. Configurar secrets
|
|
262
|
+
wrangler secret put META_ACCESS_TOKEN
|
|
263
|
+
wrangler secret put TIKTOK_ACCESS_TOKEN
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### Cenário 3: Validar Código Existe
|
|
267
|
+
|
|
268
|
+
```powershell
|
|
269
|
+
# 1. Validar arquivo de tracking
|
|
270
|
+
cdp-edge validate "C:\meu-projeto\tracking.js"
|
|
271
|
+
|
|
272
|
+
# 2. Ver relatório
|
|
273
|
+
# Status: PASS
|
|
274
|
+
# Score: 85/100
|
|
275
|
+
#
|
|
276
|
+
# ⚠️ Avisos:
|
|
277
|
+
# └─ Hashing não detectado para PII
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### Cenário 4: Análise de Projeto
|
|
281
|
+
|
|
282
|
+
```powershell
|
|
283
|
+
# 1. Analisar projeto completo
|
|
284
|
+
cdp-edge analyze "C:\meu-projeto-web"
|
|
285
|
+
|
|
286
|
+
# 2. Resultado
|
|
287
|
+
# 📊 Eventos detectados:
|
|
288
|
+
# leads: 2
|
|
289
|
+
# purchases: 1
|
|
290
|
+
# views: 3
|
|
291
|
+
# custom: 0
|
|
292
|
+
#
|
|
293
|
+
# 🎯 Nicho identificado: E-commerce (SaaS)
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
## ⚡ COMANDOS RÁPIDOS (CLI)
|
|
299
|
+
|
|
300
|
+
| Comando | Descrição |
|
|
301
|
+
|---------|-----------|
|
|
302
|
+
| `cdp-edge` | Wizard interativo completo |
|
|
303
|
+
| `cdp-edge setup [dir]` | Configuração guiada |
|
|
304
|
+
| `cdp-edge analyze <dir>` | Análise de páginas |
|
|
305
|
+
| `cdp-edge server <dir>` | Gerar infraestrutura Workers + D1 |
|
|
306
|
+
| `cdp-edge validate <file>` | Auditoria de código |
|
|
307
|
+
| `cdp-edge infra` | Guia Cloudflare |
|
|
308
|
+
| `cdp-edge --help` | Ajuda completa |
|
|
309
|
+
| `cdp-edge --version` | Versão instalada |
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## 🔧 SOLUÇÃO DE PROBLEMAS
|
|
314
|
+
|
|
315
|
+
### Erro: "cdp-edge não é reconhecido"
|
|
316
|
+
|
|
317
|
+
```powershell
|
|
318
|
+
# Solução 1: Instalar globalmente
|
|
319
|
+
npm install -g cdp-edge
|
|
320
|
+
|
|
321
|
+
# Solução 2: Usar npx
|
|
322
|
+
npx cdp-edge
|
|
323
|
+
|
|
324
|
+
# Solução 3: Verificar PATH
|
|
325
|
+
$env:Path -split ';' | Where-Object { $_ -like '*node*' }
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
### Erro: "Permissão negada ao escrever arquivos"
|
|
329
|
+
|
|
330
|
+
```powershell
|
|
331
|
+
# Executar PowerShell como Administrador
|
|
332
|
+
# 1. Clique com botão direito no PowerShell
|
|
333
|
+
# 2. "Executar como administrador"
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
### Erro: "Módulo não encontrado"
|
|
337
|
+
|
|
338
|
+
```powershell
|
|
339
|
+
# Limpar cache npm
|
|
340
|
+
npm cache clean --force
|
|
341
|
+
|
|
342
|
+
# Reinstalar pacote
|
|
343
|
+
npm install -g cdp-edge
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
---
|
|
347
|
+
|
|
348
|
+
## 🖱️ HUMAN-BEHAVIOR ENGINE (O MOTOR DE INTENÇÃO)
|
|
349
|
+
|
|
350
|
+
A joia da coroa do CDP Edge. Capturamos o que o usuário **sente** e **faz**, e não apenas onde ele clica.
|
|
351
|
+
|
|
352
|
+
### 🌡️ Engagement Scoring Engine (0-100)
|
|
353
|
+
Cada ação do usuário soma (ou subtrai) pontos em tempo real:
|
|
354
|
+
* **Scroll (25-90%)**: +5 a +15 pontos.
|
|
355
|
+
* **VSL Watch (25-100%)**: +10 a +50 pontos.
|
|
356
|
+
* **Copy Intent**: +20 pontos ao copiar cupons ou chaves PIX.
|
|
357
|
+
* **Form Interaction**: +10 pontos por campo preenchido.
|
|
358
|
+
* **Rage Click**: -10 pontos (sinal de frustração técnica).
|
|
359
|
+
* **Gatilho Hot Lead**: Ao atingir **80 pontos**, disparar `High_Intent_Lead` para as plataformas.
|
|
360
|
+
|
|
361
|
+
### 🎥 VSL & Video Tracker
|
|
362
|
+
Monitoramento nativo de retenção em vídeos YouTube e Vimeo sem necessidade de scripts externos pesados.
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
## 📞 SUPORTE
|
|
367
|
+
|
|
368
|
+
- **Documentação**: Verifique `CLAUDE.md` para padrões de desenvolvimento
|
|
369
|
+
- **Issues**: https://github.com/ricardosoli777/CDP-Edge-Premium/issues
|
|
370
|
+
- **Releases**: https://github.com/ricardosoli777/CDP-Edge-Premium/releases
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
### **CDP Edge — By Rica Soares**
|
|
375
|
+
> "Dados sem inteligência são apenas ruído. No Quantum Tier, transformamos dados em ROAS."
|
|
376
|
+
|
|
377
|
+
© 2026 CDP Edge Premium. Todos os direitos reservados.
|
package/bin/cdp-edge.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* CDP Edge CLI - Entry Point
|
|
5
|
+
* Sistema multi-agente para tracking digital Quantum Tier
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { Command } from 'commander';
|
|
9
|
+
import { runSetupWizard } from '../dist/commands/setup.js';
|
|
10
|
+
import { runAnalyze } from '../dist/commands/analyze.js';
|
|
11
|
+
import { runServer } from '../dist/commands/server.js';
|
|
12
|
+
import { runValidate } from '../dist/commands/validate.js';
|
|
13
|
+
import { runInfra } from '../dist/commands/infra.js';
|
|
14
|
+
|
|
15
|
+
const program = new Command();
|
|
16
|
+
|
|
17
|
+
program
|
|
18
|
+
.name('cdp-edge')
|
|
19
|
+
.description('CDP Edge Quantum Tier - Sistema multi-agente para tracking digital Cloudflare Native')
|
|
20
|
+
.version('1.0.0');
|
|
21
|
+
|
|
22
|
+
// Comando padrão (wizard interativo)
|
|
23
|
+
program
|
|
24
|
+
.argument('[dir]', 'Diretório do projeto', '.')
|
|
25
|
+
.action(runSetupWizard);
|
|
26
|
+
|
|
27
|
+
// Comandos específicos
|
|
28
|
+
program
|
|
29
|
+
.command('setup [dir]')
|
|
30
|
+
.description('Configuração completa com wizard interativo')
|
|
31
|
+
.action(runSetupWizard);
|
|
32
|
+
|
|
33
|
+
program
|
|
34
|
+
.command('analyze <dir>')
|
|
35
|
+
.description('Analisa páginas e detecta eventos de tracking')
|
|
36
|
+
.action(runAnalyze);
|
|
37
|
+
|
|
38
|
+
program
|
|
39
|
+
.command('server <dir>')
|
|
40
|
+
.description('Gera apenas infraestrutura Cloudflare Workers + D1')
|
|
41
|
+
.action(runServer);
|
|
42
|
+
|
|
43
|
+
program
|
|
44
|
+
.command('validate <file>')
|
|
45
|
+
.description('Audita tracking existente')
|
|
46
|
+
.action(runValidate);
|
|
47
|
+
|
|
48
|
+
program
|
|
49
|
+
.command('infra')
|
|
50
|
+
.description('Mostra guia de setup de infraestrutura Cloudflare')
|
|
51
|
+
.action(runInfra);
|
|
52
|
+
|
|
53
|
+
program.parse(process.argv);
|