Baseline commit of the existing Maquina Comercial Pessoal project

Tracks the app that was already in place (capture, treatment, outreach,
WhatsApp integration, server, frontend, tests, docs) so future feature
work can branch and use isolated worktrees.
This commit is contained in:
Gustavo
2026-07-31 10:54:07 -03:00
parent 6cd336a41e
commit d330bb5ff0
132 changed files with 29969 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { loadDotEnv, paths } from '../src/env.mjs';
import { downloadRfbDataset } from '../src/extract/rfb-downloader.mjs';
await loadDotEnv();
downloadRfbDataset({
rawDir: paths.rfbRaw,
onProgress: (progress) => {
const pct = progress.pct == null ? '' : `${progress.pct}% `;
console.log(`[RFB] ${pct}${progress.message}`);
}
}).then((result) => {
if (result.cancelled) process.exitCode = 2;
else console.log(`[RFB] snapshot ${result.snapshot} pronto: ${result.downloaded.length} baixados, ${result.skipped.length} reutilizados.`);
}).catch((error) => {
console.error(`[RFB] erro: ${error.stack || error.message}`);
process.exitCode = 1;
});