cdp-edge 2.2.4 → 2.2.5

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.2.0** — Granite 4.0 Micro · K-means Vetorial Real (bge-m3) · Sem emails descartáveis · Cloudflare Workers · Meta CAPI v22.0 · GA4 MP · TikTok Events API v1.3
5
+ > **v2.2.5** — Versão Dinâmica · Correção de banner e CLI · Cloudflare Workers · Meta CAPI v22.0 · GA4 MP · TikTok Events API v1.3
6
6
 
7
7
  ---
8
8
 
@@ -25,6 +25,16 @@ Meu ecossistema opera como um Cérebro de Conversão Privado na borda. Quando um
25
25
 
26
26
  ---
27
27
 
28
+ ## 📋 CHANGELOG v2.2.5 (11 de Abril de 2026)
29
+
30
+ ### 🔧 Correção de Versão Dinâmica
31
+
32
+ - **Versão Dinâmica**: `bin/cdp-edge.js` e `dist/commands/install.js` agora leem a versão do `package.json` dinamicamente
33
+ - **Banner Corrigido**: O banner de instalação agora mostra sempre a versão correta (`cdp-edge --version`)
34
+ - **Compatibilidade**: Garante que a versão exibida no CLI e banner esteja sempre sincronizada com o `package.json`
35
+
36
+ ---
37
+
28
38
  ## 📋 CHANGELOG v2.2.0 (10 de Abril de 2026)
29
39
 
30
40
  ### 🤖 AI Engine Upgrade — Novos Modelos
package/bin/cdp-edge.js CHANGED
@@ -5,6 +5,9 @@
5
5
  * Sistema multi-agente para tracking digital Quantum Tier
6
6
  */
7
7
 
8
+ import fs from 'fs';
9
+ import path from 'path';
10
+ import { fileURLToPath } from 'url';
8
11
  import { Command } from 'commander';
9
12
  import { runSetupWizard } from '../dist/commands/setup.js';
10
13
  import { runAnalyze } from '../dist/commands/analyze.js';
@@ -13,12 +16,18 @@ import { runValidate } from '../dist/commands/validate.js';
13
16
  import { runInfra } from '../dist/commands/infra.js';
14
17
  import { runInstall } from '../dist/commands/install.js';
15
18
 
19
+ // Ler versão do package.json
20
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
21
+ const packageJsonPath = path.join(__dirname, '..', 'package.json');
22
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
23
+ const CDP_VERSION = packageJson.version;
24
+
16
25
  const program = new Command();
17
26
 
18
27
  program
19
28
  .name('cdp-edge')
20
29
  .description('CDP Edge Quantum Tier - Sistema multi-agente para tracking digital Cloudflare Native')
21
- .version('2.0.7');
30
+ .version(CDP_VERSION);
22
31
 
23
32
  // Comando padrão (wizard interativo)
24
33
  program
@@ -18,6 +18,11 @@ import chalk from 'chalk';
18
18
 
19
19
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
20
20
 
21
+ // Ler versão do package.json
22
+ const packageJsonPath = path.join(__dirname, '..', '..', 'package.json');
23
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
24
+ const CDP_VERSION = packageJson.version;
25
+
21
26
  // Raiz do pacote CDP Edge (2 níveis acima de dist/commands/)
22
27
  const CDP_EDGE_ROOT = path.resolve(__dirname, '..', '..');
23
28
 
@@ -32,7 +37,7 @@ function printBanner() {
32
37
  console.log(chalk.cyan('╚██████╗██████╔╝██║ ███████╗██████╔╝╚██████╔╝███████╗'));
33
38
  console.log(chalk.cyan(' ╚═════╝╚═════╝ ╚═╝ ╚══════╝╚═════╝ ╚═════╝╚══════╝'));
34
39
  console.log('');
35
- console.log(chalk.gray(' Customer Data Platform on the Edge · Global Edge Tracking · v2.0.9'));
40
+ console.log(chalk.gray(` Customer Data Platform on the Edge · Global Edge Tracking · v${CDP_VERSION}`));
36
41
  console.log('');
37
42
  console.log(chalk.gray('═'.repeat(68)));
38
43
  console.log('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-edge",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
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",