cdp-edge 1.11.0 → 1.11.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/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Padrão Quantum Tracking: 100% Cloudflare Edge.** Sem GTM. Sem Stape. Sem cookies de terceiros.
|
|
4
4
|
|
|
5
|
-
> **v1.
|
|
5
|
+
> **v1.2.0** — Cloudflare Queue + KV + Workers AI · Meta CAPI v22.0 · GA4 MP · TikTok Events API v1.3
|
|
6
6
|
|
|
7
7
|
- **Precisão Máxima**: Meta CAPI v22.0+, GA4 MP e TikTok Events API v1.3.
|
|
8
8
|
- **Identity Graph**: Persistência de leads e eventos via Cloudflare D1.
|
|
@@ -64,129 +64,127 @@ O sistema é composto por mais de 30 agentes coordenados pelo **Master Orchestra
|
|
|
64
64
|
|
|
65
65
|
---
|
|
66
66
|
|
|
67
|
-
## 💻 INSTALAÇÃO E USO
|
|
67
|
+
## 💻 INSTALAÇÃO E USO
|
|
68
68
|
|
|
69
|
-
###
|
|
69
|
+
### Instalar Globalmente
|
|
70
70
|
|
|
71
|
-
```
|
|
72
|
-
# 1. Instalar o pacote
|
|
71
|
+
```bash
|
|
73
72
|
npm install -g cdp-edge
|
|
74
|
-
|
|
75
|
-
# 2. Verificar instalação
|
|
76
73
|
cdp-edge --version
|
|
77
|
-
|
|
78
|
-
# 3. Executar
|
|
79
|
-
cdp-edge
|
|
80
74
|
```
|
|
81
75
|
|
|
82
|
-
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 📋 COMANDOS DISPONÍVEIS
|
|
79
|
+
|
|
80
|
+
### `install` — Instalar CDP Edge em um projeto cliente
|
|
81
|
+
|
|
82
|
+
**O comando principal.** Configura o CDP Edge em qualquer projeto e habilita o `/cdp` no Claude Code.
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
# Instalar no diretório atual
|
|
86
|
+
cdp-edge install .
|
|
87
|
+
|
|
88
|
+
# Instalar em outro diretório
|
|
89
|
+
cdp-edge install ./meu-projeto
|
|
83
90
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
91
|
+
# Com nome do projeto
|
|
92
|
+
cdp-edge install ./meu-projeto --name "Landing Page XYZ"
|
|
93
|
+
|
|
94
|
+
# Incluir .cursorrules para Cursor IDE
|
|
95
|
+
cdp-edge install ./meu-projeto --cursor
|
|
87
96
|
```
|
|
88
97
|
|
|
89
|
-
|
|
98
|
+
**O que cria na raiz do projeto:**
|
|
90
99
|
|
|
91
|
-
|
|
100
|
+
| Arquivo/Pasta | Função |
|
|
101
|
+
|---|---|
|
|
102
|
+
| `cdp-edge/` | Skill completa (agentes, SDK, worker, templates, docs) |
|
|
103
|
+
| `.claude/commands/cdp.md` | Habilita `/cdp` no Claude Code |
|
|
104
|
+
| `CLAUDE.md` | Auto-ativação ao abrir sessão |
|
|
105
|
+
| `.cursorrules` | Integração Cursor IDE (flag `--cursor`) |
|
|
92
106
|
|
|
93
|
-
|
|
107
|
+
**Fluxo após install:**
|
|
94
108
|
|
|
95
|
-
```
|
|
96
|
-
#
|
|
97
|
-
|
|
109
|
+
```bash
|
|
110
|
+
# 1. Criar e instalar
|
|
111
|
+
mkdir meu-projeto
|
|
112
|
+
cdp-edge install ./meu-projeto
|
|
98
113
|
|
|
99
|
-
#
|
|
100
|
-
|
|
114
|
+
# 2. Abrir no Claude Code
|
|
115
|
+
claude ./meu-projeto
|
|
116
|
+
|
|
117
|
+
# 3. Ativar o Orchestrator
|
|
118
|
+
/cdp
|
|
101
119
|
```
|
|
102
120
|
|
|
103
|
-
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
### Outros Comandos
|
|
104
124
|
|
|
105
|
-
####
|
|
125
|
+
#### `setup` — Wizard interativo
|
|
106
126
|
|
|
107
|
-
```
|
|
108
|
-
# Configuração interativa completa
|
|
127
|
+
```bash
|
|
109
128
|
cdp-edge setup
|
|
110
|
-
|
|
111
|
-
# Setup em diretório específico
|
|
112
|
-
cdp-edge setup "C:\meu-projeto"
|
|
129
|
+
cdp-edge setup ./meu-projeto
|
|
113
130
|
```
|
|
114
131
|
|
|
115
132
|
**O que faz:**
|
|
116
133
|
- Pergunta plataformas (Meta, TikTok, GA4, etc.)
|
|
117
134
|
- Pergunta tipo de produto (lead, checkout, webinar, etc.)
|
|
118
|
-
- Analisa arquivos do projeto
|
|
119
135
|
- Gera código de tracking (Browser + Server)
|
|
120
|
-
- Cria schema D1 SQL
|
|
121
|
-
- Gera configuração Wrangler
|
|
136
|
+
- Cria schema D1 SQL e configuração Wrangler
|
|
122
137
|
|
|
123
138
|
---
|
|
124
139
|
|
|
125
|
-
####
|
|
140
|
+
#### `analyze` — Analisar páginas
|
|
126
141
|
|
|
127
|
-
```
|
|
128
|
-
# Analisar diretório atual
|
|
142
|
+
```bash
|
|
129
143
|
cdp-edge analyze .
|
|
130
|
-
|
|
131
|
-
# Analisar projeto específico
|
|
132
|
-
cdp-edge analyze "C:\caminho\do\projeto"
|
|
144
|
+
cdp-edge analyze ./meu-projeto
|
|
133
145
|
```
|
|
134
146
|
|
|
135
147
|
**O que faz:**
|
|
136
|
-
- Lê todos os arquivos HTML/JS
|
|
137
148
|
- Detecta CTAs e formulários
|
|
138
149
|
- Identifica nicho do negócio
|
|
139
150
|
- Sugere micro-eventos comportamentais
|
|
140
151
|
|
|
141
152
|
---
|
|
142
153
|
|
|
143
|
-
####
|
|
154
|
+
#### `server` — Gerar infraestrutura Cloudflare
|
|
144
155
|
|
|
145
|
-
```
|
|
146
|
-
# Gerar Worker + D1 no diretório atual
|
|
156
|
+
```bash
|
|
147
157
|
cdp-edge server .
|
|
148
|
-
|
|
149
|
-
# Gerar em diretório específico
|
|
150
|
-
cdp-edge server "C:\meu-worker-cloudflare"
|
|
158
|
+
cdp-edge server ./meu-worker
|
|
151
159
|
```
|
|
152
160
|
|
|
153
161
|
**Arquivos gerados:**
|
|
154
|
-
- `worker.js`
|
|
155
|
-
- `schema.sql`
|
|
156
|
-
- `wrangler.toml`
|
|
162
|
+
- `worker.js` — Cloudflare Worker completo
|
|
163
|
+
- `schema.sql` — Schema D1
|
|
164
|
+
- `wrangler.toml` — Configuração Wrangler
|
|
157
165
|
|
|
158
166
|
---
|
|
159
167
|
|
|
160
|
-
####
|
|
168
|
+
#### `validate` — Auditar tracking existente
|
|
161
169
|
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
cdp-edge validate "C:\meu-projeto\tracking.js"
|
|
170
|
+
```bash
|
|
171
|
+
cdp-edge validate tracking.js
|
|
165
172
|
```
|
|
166
173
|
|
|
167
174
|
**O que verifica:**
|
|
168
|
-
-
|
|
169
|
-
-
|
|
170
|
-
- Detecção de GTM/Stape
|
|
171
|
-
- Conformidade com APIs
|
|
175
|
+
- `event_id` para deduplicação
|
|
176
|
+
- SHA256 para PII (e-mail, telefone)
|
|
177
|
+
- Detecção de GTM/Stape
|
|
178
|
+
- Conformidade com APIs
|
|
172
179
|
|
|
173
180
|
---
|
|
174
181
|
|
|
175
|
-
####
|
|
182
|
+
#### `infra` — Guia de infraestrutura Cloudflare
|
|
176
183
|
|
|
177
|
-
```
|
|
178
|
-
# Mostra guia passo a passo do zero ao deploy
|
|
184
|
+
```bash
|
|
179
185
|
cdp-edge infra
|
|
180
186
|
```
|
|
181
187
|
|
|
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
188
|
---
|
|
191
189
|
|
|
192
190
|
## 🔄 CICLO DE VIDA DO SETUP (/setup)
|
|
@@ -204,93 +202,84 @@ cdp-edge infra
|
|
|
204
202
|
|
|
205
203
|
```text
|
|
206
204
|
CDP Edge/
|
|
207
|
-
├── README.md # Você está aqui.
|
|
205
|
+
├── README.md # Você está aqui.
|
|
208
206
|
├── CLAUDE.md # Guia de desenvolvimento e padrões.
|
|
209
207
|
├── extracted-skill/ # O motor da IA (Agentes e Knowledge Base).
|
|
210
208
|
│ └── tracking-events-generator/
|
|
211
|
-
│ ├── agents/ #
|
|
212
|
-
│ ├── models/ # Checklists de cenários de negócio
|
|
209
|
+
│ ├── agents/ # 39+ agentes especialistas
|
|
213
210
|
│ ├── cdpTrack.js # SDK Browser (window.cdpTrack)
|
|
214
|
-
│ └──
|
|
211
|
+
│ └── micro-events.js # Scroll, vídeo, hover, click tracking
|
|
215
212
|
├── server-edge-tracker/ # Cloudflare Worker (Infra de Borda)
|
|
216
213
|
│ ├── worker.js # Handler principal + Queue consumer
|
|
217
214
|
│ ├── schema.sql # D1 Schema (Identity Graph)
|
|
218
215
|
│ └── wrangler.toml # Bindings: D1 + Queue + KV + AI
|
|
219
216
|
├── bin/ # CLI Executável (cdp-edge)
|
|
220
|
-
|
|
217
|
+
├── dist/commands/ # Implementação dos comandos CLI
|
|
218
|
+
│ └── install.js # cdp-edge install
|
|
219
|
+
├── templates/
|
|
220
|
+
│ ├── install/
|
|
221
|
+
│ │ ├── CLAUDE.md # Template de auto-ativação para projetos
|
|
222
|
+
│ │ └── .claude/commands/
|
|
223
|
+
│ │ └── cdp.md # Define /cdp no Claude Code
|
|
224
|
+
│ ├── vsl-page.md # Template VSL / vídeo de vendas
|
|
225
|
+
│ └── afiliado-sem-landing.md # Template bridge page afiliado
|
|
226
|
+
└── docs/
|
|
227
|
+
├── quick-start.md # Do zero ao deploy
|
|
228
|
+
├── events-reference.md # Catálogo completo de eventos
|
|
229
|
+
├── sdk-reference.md # API pública do cdpTrack.js
|
|
230
|
+
└── installation.md # Instalar CDP Edge em projetos clientes
|
|
221
231
|
```
|
|
222
232
|
|
|
223
233
|
---
|
|
224
234
|
|
|
225
|
-
## 📚 EXEMPLOS DE USO
|
|
226
|
-
|
|
227
|
-
### Cenário 1: Setup Completo para Landing Page
|
|
235
|
+
## 📚 EXEMPLOS DE USO
|
|
228
236
|
|
|
229
|
-
|
|
230
|
-
# 1. Navegar para o projeto
|
|
231
|
-
cd "C:\Users\comer\meus-projetos\landing-page-lead"
|
|
237
|
+
### Cenário 1: Novo projeto com Claude Code
|
|
232
238
|
|
|
233
|
-
|
|
234
|
-
|
|
239
|
+
```bash
|
|
240
|
+
# 1. Criar projeto e instalar CDP Edge
|
|
241
|
+
mkdir landing-page-lead
|
|
242
|
+
cdp-edge install ./landing-page-lead --name "Landing Page Lead"
|
|
235
243
|
|
|
236
|
-
#
|
|
237
|
-
|
|
238
|
-
# - Tipo: Lead Capture (Formulário)
|
|
239
|
-
# - Server-side: [x] Sim
|
|
244
|
+
# 2. Abrir no Claude Code
|
|
245
|
+
claude ./landing-page-lead
|
|
240
246
|
|
|
241
|
-
#
|
|
242
|
-
|
|
243
|
-
#
|
|
244
|
-
# - worker.js (Cloudflare Worker)
|
|
245
|
-
# - schema.sql (D1 Database)
|
|
247
|
+
# 3. Ativar o Orchestrator
|
|
248
|
+
/cdp
|
|
249
|
+
# → CDP Edge inicia, faz perguntas, gera toda a infraestrutura
|
|
246
250
|
```
|
|
247
251
|
|
|
248
252
|
### Cenário 2: Apenas Infraestrutura Cloudflare
|
|
249
253
|
|
|
250
|
-
```
|
|
251
|
-
# 1.
|
|
252
|
-
|
|
253
|
-
cd "C:\meu-worker-cloudflare"
|
|
254
|
-
|
|
255
|
-
# 2. Gerar infraestrutura
|
|
256
|
-
cdp-edge server .
|
|
254
|
+
```bash
|
|
255
|
+
# 1. Gerar infraestrutura Worker + D1
|
|
256
|
+
cdp-edge server ./meu-worker
|
|
257
257
|
|
|
258
|
-
#
|
|
258
|
+
# 2. Deploy
|
|
259
|
+
cd meu-worker
|
|
259
260
|
wrangler deploy
|
|
260
261
|
|
|
261
|
-
#
|
|
262
|
+
# 3. Configurar secrets
|
|
262
263
|
wrangler secret put META_ACCESS_TOKEN
|
|
263
264
|
wrangler secret put TIKTOK_ACCESS_TOKEN
|
|
264
265
|
```
|
|
265
266
|
|
|
266
|
-
### Cenário 3: Validar Código
|
|
267
|
+
### Cenário 3: Validar Código Existente
|
|
267
268
|
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
cdp-edge validate "C:\meu-projeto\tracking.js"
|
|
269
|
+
```bash
|
|
270
|
+
cdp-edge validate tracking.js
|
|
271
271
|
|
|
272
|
-
#
|
|
273
|
-
#
|
|
274
|
-
# Score: 85/100
|
|
275
|
-
#
|
|
276
|
-
# ⚠️ Avisos:
|
|
277
|
-
# └─ Hashing não detectado para PII
|
|
272
|
+
# Status: PASS | Score: 85/100
|
|
273
|
+
# ⚠ Hashing não detectado para PII
|
|
278
274
|
```
|
|
279
275
|
|
|
280
276
|
### Cenário 4: Análise de Projeto
|
|
281
277
|
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
#
|
|
287
|
-
# 📊 Eventos detectados:
|
|
288
|
-
# leads: 2
|
|
289
|
-
# purchases: 1
|
|
290
|
-
# views: 3
|
|
291
|
-
# custom: 0
|
|
292
|
-
#
|
|
293
|
-
# 🎯 Nicho identificado: E-commerce (SaaS)
|
|
278
|
+
```bash
|
|
279
|
+
cdp-edge analyze ./meu-projeto-web
|
|
280
|
+
|
|
281
|
+
# 📊 Eventos detectados: leads: 2 | purchases: 1 | views: 3
|
|
282
|
+
# 🎯 Nicho identificado: E-commerce
|
|
294
283
|
```
|
|
295
284
|
|
|
296
285
|
---
|
|
@@ -299,8 +288,8 @@ cdp-edge analyze "C:\meu-projeto-web"
|
|
|
299
288
|
|
|
300
289
|
| Comando | Descrição |
|
|
301
290
|
|---------|-----------|
|
|
302
|
-
| `cdp-edge` |
|
|
303
|
-
| `cdp-edge setup [dir]` | Configuração guiada |
|
|
291
|
+
| `cdp-edge install [dir]` | **Instala CDP Edge + habilita /cdp no Claude Code** |
|
|
292
|
+
| `cdp-edge setup [dir]` | Configuração guiada (wizard) |
|
|
304
293
|
| `cdp-edge analyze <dir>` | Análise de páginas |
|
|
305
294
|
| `cdp-edge server <dir>` | Gerar infraestrutura Workers + D1 |
|
|
306
295
|
| `cdp-edge validate <file>` | Auditoria de código |
|
|
@@ -312,34 +301,35 @@ cdp-edge analyze "C:\meu-projeto-web"
|
|
|
312
301
|
|
|
313
302
|
## 🔧 SOLUÇÃO DE PROBLEMAS
|
|
314
303
|
|
|
304
|
+
### Erro: "Cannot find module dist/commands/install.js"
|
|
305
|
+
|
|
306
|
+
O npm ainda tem a versão antiga em cache. Instale direto do GitHub para ter a versão mais recente:
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
npm uninstall -g cdp-edge
|
|
310
|
+
npm install -g github:ricardosoli777/CDP-Edge-Premium
|
|
311
|
+
cdp-edge --version
|
|
312
|
+
```
|
|
313
|
+
|
|
315
314
|
### Erro: "cdp-edge não é reconhecido"
|
|
316
315
|
|
|
317
|
-
```
|
|
318
|
-
#
|
|
316
|
+
```bash
|
|
317
|
+
# Instalar globalmente
|
|
319
318
|
npm install -g cdp-edge
|
|
320
319
|
|
|
321
|
-
#
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
# Solução 3: Verificar PATH
|
|
325
|
-
$env:Path -split ';' | Where-Object { $_ -like '*node*' }
|
|
320
|
+
# Ou instalar direto do repositório
|
|
321
|
+
npm install -g github:ricardosoli777/CDP-Edge-Premium
|
|
326
322
|
```
|
|
327
323
|
|
|
328
324
|
### Erro: "Permissão negada ao escrever arquivos"
|
|
329
325
|
|
|
330
|
-
|
|
331
|
-
# Executar PowerShell como Administrador
|
|
332
|
-
# 1. Clique com botão direito no PowerShell
|
|
333
|
-
# 2. "Executar como administrador"
|
|
334
|
-
```
|
|
326
|
+
Execute o terminal como Administrador (Windows) ou use `sudo` (Mac/Linux).
|
|
335
327
|
|
|
336
|
-
### Erro: "Módulo não encontrado"
|
|
328
|
+
### Erro: "Módulo não encontrado" (outros módulos)
|
|
337
329
|
|
|
338
|
-
```
|
|
339
|
-
# Limpar cache npm
|
|
330
|
+
```bash
|
|
340
331
|
npm cache clean --force
|
|
341
|
-
|
|
342
|
-
# Reinstalar pacote
|
|
332
|
+
npm uninstall -g cdp-edge
|
|
343
333
|
npm install -g cdp-edge
|
|
344
334
|
```
|
|
345
335
|
|
package/bin/cdp-edge.js
CHANGED
|
@@ -18,7 +18,7 @@ const program = new Command();
|
|
|
18
18
|
program
|
|
19
19
|
.name('cdp-edge')
|
|
20
20
|
.description('CDP Edge Quantum Tier - Sistema multi-agente para tracking digital Cloudflare Native')
|
|
21
|
-
.version('1.
|
|
21
|
+
.version('1.2.0');
|
|
22
22
|
|
|
23
23
|
// Comando padrão (wizard interativo)
|
|
24
24
|
program
|
|
@@ -756,12 +756,14 @@ Ao ser ativado, o Master Orchestrator exibe imediatamente:
|
|
|
756
756
|
>
|
|
757
757
|
> Sou o seu Orquestrador de Rastreamento. Vou configurar toda a infraestrutura de tracking server-side para o seu projeto, usando **Cloudflare Workers + D1** — 100% imune a Ad-Blockers e iOS 14.5+.
|
|
758
758
|
>
|
|
759
|
-
>
|
|
760
|
-
> 1. 🔑 Você me passa suas credenciais e tokens
|
|
761
|
-
> 2. 📊 Você seleciona as plataformas de anúncio
|
|
762
|
-
> 3. 🚀 Eu executo tudo automaticamente e entrego o relatório final
|
|
759
|
+
> Para começar, preciso entender o seu projeto:
|
|
763
760
|
>
|
|
764
|
-
>
|
|
761
|
+
> **Como você vende?**
|
|
762
|
+
> - **A)** Tenho página de vendas / landing page
|
|
763
|
+
> - **B)** Vendo apenas pelo WhatsApp (sem página)
|
|
764
|
+
> - **C)** Sou afiliado (sem página própria)
|
|
765
|
+
>
|
|
766
|
+
> Me diga qual caminho e já iniciamos o setup.
|
|
765
767
|
|
|
766
768
|
---
|
|
767
769
|
|
|
@@ -786,9 +788,11 @@ Antes de iniciar qualquer fase de geração de código, o Master Orchestrator DE
|
|
|
786
788
|
|
|
787
789
|
3. **Carregar o contexto de sessão no Master:**
|
|
788
790
|
- Se o arquivo não existir → criar estrutura vazia, iniciar novo projeto
|
|
789
|
-
- Se
|
|
790
|
-
|
|
791
|
-
|
|
791
|
+
- Se `session_id` for `null` → projeto novo, ignorar o arquivo e iniciar do zero
|
|
792
|
+
- Se `session_id` existir E `project_path` for igual ao diretório atual → sessão válida, retomar e exibir:
|
|
793
|
+
> *"🔄 Retomando projeto em andamento. X eventos já implementados."*
|
|
794
|
+
- Se `session_id` existir E `project_path` for DIFERENTE do diretório atual → contexto de outro projeto, **ignorar completamente** e iniciar do zero
|
|
795
|
+
- Se `project_status: "COMPLETED"` → projeto encerrado, iniciar do zero
|
|
792
796
|
|
|
793
797
|
4. **Atualizar Memory Agent periodicamente:**
|
|
794
798
|
- A cada 15 minutos de conversa ou a cada 3 agentes executados
|
|
@@ -1,109 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
{
|
|
2
2
|
"session_metadata": {
|
|
3
|
-
"session_id":
|
|
4
|
-
"started_at":
|
|
5
|
-
"last_updated":
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"user_id": "comer"
|
|
3
|
+
"session_id": null,
|
|
4
|
+
"started_at": null,
|
|
5
|
+
"last_updated": null,
|
|
6
|
+
"project_path": null,
|
|
7
|
+
"user_id": null
|
|
9
8
|
},
|
|
10
9
|
"context_state": {
|
|
11
|
-
"current_phase":
|
|
12
|
-
"platforms_configured": [
|
|
13
|
-
"platforms_pending": [
|
|
14
|
-
"events_mapped": [
|
|
15
|
-
"events_implemented": [
|
|
16
|
-
"infrastructure_type":
|
|
10
|
+
"current_phase": null,
|
|
11
|
+
"platforms_configured": [],
|
|
12
|
+
"platforms_pending": [],
|
|
13
|
+
"events_mapped": [],
|
|
14
|
+
"events_implemented": [],
|
|
15
|
+
"infrastructure_type": null
|
|
17
16
|
},
|
|
18
|
-
"api_versions": {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"measurement_protocol": "v2",
|
|
27
|
-
"verified_at": "2026-03-27T15:00:00.000Z"
|
|
28
|
-
},
|
|
29
|
-
"tiktok": {
|
|
30
|
-
"pixel": "v1.3",
|
|
31
|
-
"events_api": "v1.3",
|
|
32
|
-
"verified_at": "2026-03-27T15:00:00.000Z"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"technical_decisions": [
|
|
36
|
-
{
|
|
37
|
-
"id": "decision_001",
|
|
38
|
-
"decision": "Purga de infraestrutura legada (GTM, Stape, N8N, EasyPanel, Sheets)",
|
|
39
|
-
"made_by": "master-orchestrator",
|
|
40
|
-
"reasoning": "Arquitetura Quantum Tier exige 100% Cloudflare-Native",
|
|
41
|
-
"timestamp": "2026-03-27T14:30:00.000Z",
|
|
42
|
-
"status": "implemented"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"id": "decision_002",
|
|
46
|
-
"decision": "Implementação das 13 melhorias criticas (ctx.waitUntil, _cdp_uid, HMAC)",
|
|
47
|
-
"made_by": "validator-agent",
|
|
48
|
-
"reasoning": "Melhorar performance e resiliência dos webhooks",
|
|
49
|
-
"timestamp": "2026-03-27T15:00:00.000Z",
|
|
50
|
-
"status": "implemented"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"secrets_configured": {
|
|
54
|
-
"meta": {
|
|
55
|
-
"pixel_id": "SET",
|
|
56
|
-
"access_token": "SET",
|
|
57
|
-
"verified_at": "2026-03-27T15:00:00.000Z"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"validator_corrections": [
|
|
61
|
-
{
|
|
62
|
-
"id": "correction_001",
|
|
63
|
-
"agent": "server-tracking",
|
|
64
|
-
"issue": "Timeout nos webhooks",
|
|
65
|
-
"fix": "Adicionado ctx.waitUntil e resposta imediata 200 OK",
|
|
66
|
-
"fixed_by": "validator-agent",
|
|
67
|
-
"timestamp": "2026-03-27T15:00:00.000Z",
|
|
68
|
-
"revalidated": true
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"files_generated": [
|
|
72
|
-
{
|
|
73
|
-
"file": "worker.js",
|
|
74
|
-
"agent": "server-tracking",
|
|
75
|
-
"status": "updated",
|
|
76
|
-
"generated_at": "2026-03-27T15:00:00.000Z"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"file": "zai.skill.ps1",
|
|
80
|
-
"agent": "user",
|
|
81
|
-
"status": "generated",
|
|
82
|
-
"generated_at": "2026-03-27T15:05:00.000Z"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
"user_notes": [
|
|
86
|
-
{
|
|
87
|
-
"id": "note_001",
|
|
88
|
-
"content": "Novo script de configuração Z.AI adicionado para Claude Code",
|
|
89
|
-
"timestamp": "2026-03-27T15:06:00.000Z",
|
|
90
|
-
"priority": "medium"
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
"next_steps": [
|
|
94
|
-
"Reescrever multi-step-checkout.md para Quantum Tier",
|
|
95
|
-
"Implementar agentes especialistas para LinkedIn e Microsoft Ads",
|
|
96
|
-
"Monitorar performance do Identity Graph no D1"
|
|
97
|
-
],
|
|
98
|
-
"session_metrics": {
|
|
99
|
-
"total_time_minutes": 23,
|
|
100
|
-
"agents_spawned": 4,
|
|
101
|
-
"agents_with_errors": 0,
|
|
102
|
-
"files_generated": 2,
|
|
103
|
-
"lines_of_code": 150,
|
|
104
|
-
"corrections_applied": 1,
|
|
105
|
-
"hallucinations_detected": 0,
|
|
106
|
-
"interventions_made": 0,
|
|
107
|
-
"efficiency_score": 100
|
|
108
|
-
}
|
|
17
|
+
"api_versions": {},
|
|
18
|
+
"technical_decisions": [],
|
|
19
|
+
"secrets_configured": {},
|
|
20
|
+
"validator_corrections": [],
|
|
21
|
+
"files_generated": [],
|
|
22
|
+
"user_notes": [],
|
|
23
|
+
"next_steps": [],
|
|
24
|
+
"session_metrics": {}
|
|
109
25
|
}
|
package/package.json
CHANGED