cdp-edge 2.0.7 → 2.0.9

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
- > **v2.0.7** — Enterprise-Level Intelligence Engine · Cloudflare Workers · Meta CAPI v22.0 · GA4 MP · TikTok Events API v1.3
5
+ > **v2.0.9** — Enterprise-Level Intelligence Engine · Cloudflare Workers · Meta CAPI v22.0 · GA4 MP · TikTok Events API v1.3
6
6
 
7
7
  ---
8
8
 
@@ -203,27 +203,34 @@ POST /track (evento Lead)
203
203
 
204
204
  ## 💻 INSTALAÇÃO E USO
205
205
 
206
- > ⚠️ **Importante:** Escolha o método de instalação abaixo que melhor se adequa ao seu cenário de implantação.
206
+ ### OPÇÃO 1 Instalação via npm (Recomendada)
207
207
 
208
- ### OPÇÃO 1 Instalação Rápida e Confiável (Recomendada via Git Clone)
208
+ Abra o terminal dentro da pasta do projeto do cliente e rode:
209
209
 
210
- A forma mais pura, inquebrável e à prova de bugs para iniciar a base de um novo cliente. Basta criar uma pasta "vazia" para o seu cliente, abrir o terminal dentro dela e rodar:
210
+ ```bash
211
+ npx cdp-edge install
212
+ ```
213
+
214
+ Ou instale globalmente e use em qualquer projeto:
211
215
 
212
216
  ```bash
213
- git clone https://github.com/ricardosoli777/CDP-Edge-Premium.git .
217
+ npm install -g cdp-edge
218
+ cdp-edge install . --name "Nome do Projeto"
214
219
  ```
215
- *(O ponto no final garante que os arquivos desçam diretamente dentro da pasta atual).*
216
220
 
217
- ### OPÇÃO 2 Instalação via CLI Corporativo (Avançado)
221
+ > **Já tem o CDP Edge instalado globalmente?** Atualize para a versão mais recente:
222
+ > ```bash
223
+ > npm install -g cdp-edge@latest
224
+ > ```
218
225
 
219
- Se preferir usar a linha de comando instalando o nosso CLI Privado do GitHub em todo o computador:
226
+ ### OPÇÃO 2 Instalação via Git Clone
220
227
 
221
228
  ```bash
222
- npm install -g git+https://github.com/ricardosoli777/CDP-Edge-Premium.git
223
- cdp-edge install . --name "Nome do Projeto"
229
+ git clone https://github.com/ricardosoli777/CDP-Edge-Premium.git .
224
230
  ```
231
+ *(O ponto no final garante que os arquivos desçam diretamente dentro da pasta atual).*
225
232
 
226
- ### Passo 3 — Ativar no Claude Code
233
+ ### Ativar no Claude Code
227
234
 
228
235
  ```bash
229
236
  claude .
@@ -32,7 +32,7 @@ function printBanner() {
32
32
  console.log(chalk.cyan('╚██████╗██████╔╝██║ ███████╗██████╔╝╚██████╔╝███████╗'));
33
33
  console.log(chalk.cyan(' ╚═════╝╚═════╝ ╚═╝ ╚══════╝╚═════╝ ╚═════╝╚══════╝'));
34
34
  console.log('');
35
- console.log(chalk.gray(' Customer Data Platform on the Edge · Global Edge Tracking · v2.0.7'));
35
+ console.log(chalk.gray(' Customer Data Platform on the Edge · Global Edge Tracking · v2.0.9'));
36
36
  console.log('');
37
37
  console.log(chalk.gray('═'.repeat(68)));
38
38
  console.log('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-edge",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "CDP Edge - Quantum Tracking - Sistema multi-agente para tracking digital Cloudflare Native (Workers + D1)",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -296,7 +296,6 @@ export default {
296
296
  payload.utmContent = payload.utmContent || recovered.utm_content;
297
297
  payload.utmTerm = payload.utmTerm || recovered.utm_term;
298
298
  payload.utmRestored = true;
299
- console.log(`[UTM Resurrection] Recovered: ${recovered.utm_source}/${recovered.utm_medium}/${recovered.utm_campaign}`);
300
299
  }
301
300
  }
302
301
  }
@@ -765,7 +764,6 @@ export default {
765
764
  const cron = event.cron;
766
765
  const isMonthly = cron === '0 3 1 * *';
767
766
 
768
- console.log(`[Intelligence Agent] Cron executado: ${cron}`);
769
767
  ctx.waitUntil(runIntelligenceAgent(env, isMonthly ? 'monthly_audit' : 'weekly_check'));
770
768
  },
771
769
 
@@ -774,7 +772,6 @@ export default {
774
772
  for (const message of batch.messages) {
775
773
  const { eventType, payload, platform, attempt = 1 } = message.body;
776
774
 
777
- console.log(`[Queue] Reprocessando: ${platform}/${eventType} (tentativa ${attempt})`);
778
775
 
779
776
  try {
780
777
  if (platform === 'meta') await sendMetaCapi(env, eventType, payload, null, null);