cdp-edge 2.0.7 → 2.0.8
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 +13 -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
|
@@ -203,27 +203,29 @@ 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
|
-
|
|
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:
|
|
208
|
+
Abra o terminal dentro da pasta do projeto do cliente e rode:
|
|
211
209
|
|
|
212
210
|
```bash
|
|
213
|
-
|
|
211
|
+
npx cdp-edge install
|
|
214
212
|
```
|
|
215
|
-
*(O ponto no final garante que os arquivos desçam diretamente dentro da pasta atual).*
|
|
216
213
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
Se preferir usar a linha de comando instalando o nosso CLI Privado do GitHub em todo o computador:
|
|
214
|
+
Ou instale globalmente e use em qualquer projeto:
|
|
220
215
|
|
|
221
216
|
```bash
|
|
222
|
-
npm install -g
|
|
217
|
+
npm install -g cdp-edge
|
|
223
218
|
cdp-edge install . --name "Nome do Projeto"
|
|
224
219
|
```
|
|
225
220
|
|
|
226
|
-
###
|
|
221
|
+
### OPÇÃO 2 — Instalação via Git Clone
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
git clone https://github.com/ricardosoli777/CDP-Edge-Premium.git .
|
|
225
|
+
```
|
|
226
|
+
*(O ponto no final garante que os arquivos desçam diretamente dentro da pasta atual).*
|
|
227
|
+
|
|
228
|
+
### Ativar no Claude Code
|
|
227
229
|
|
|
228
230
|
```bash
|
|
229
231
|
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.8'));
|
|
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);
|