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 +18 -11
- package/dist/commands/install.js +1 -1
- package/package.json +1 -1
- package/server-edge-tracker/index.js +0 -3
- package/server-edge-tracker/worker.js +4577 -4596
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.
|
|
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
|
-
|
|
206
|
+
### OPÇÃO 1 — Instalação via npm (Recomendada)
|
|
207
207
|
|
|
208
|
-
|
|
208
|
+
Abra o terminal dentro da pasta do projeto do cliente e rode:
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
```bash
|
|
211
|
+
npx cdp-edge install
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Ou instale globalmente e use em qualquer projeto:
|
|
211
215
|
|
|
212
216
|
```bash
|
|
213
|
-
|
|
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
|
-
|
|
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
|
-
|
|
226
|
+
### OPÇÃO 2 — Instalação via Git Clone
|
|
220
227
|
|
|
221
228
|
```bash
|
|
222
|
-
|
|
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
|
-
###
|
|
233
|
+
### Ativar no Claude Code
|
|
227
234
|
|
|
228
235
|
```bash
|
|
229
236
|
claude .
|
package/dist/commands/install.js
CHANGED
|
@@ -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.
|
|
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
|
@@ -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);
|