Skip to content

Commit ee5d1d8

Browse files
committed
chore(custom): create src/custom/ structure for proprietary modules
1 parent 3454bec commit ee5d1d8

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

src/custom/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Custom modules
2+
3+
Código propietario de Danochiss / Matrix Perfecta.
4+
5+
**REGLA:** Todo lo que vaya aquí NO se toca al hacer `git merge upstream/main`. Mantén los cambios al core de Evolution al mínimo absoluto (idealmente 1 línea por hook).
6+
7+
## Archivos
8+
9+
- `buttons-handler.ts` — Lógica custom de botones (estabiliza el envío, agrega sintaxis propia)
10+
- `matrix-perfecta.ts` — Puente con Cloudflare Worker para agrupar ráfagas 15s (futuro)
11+
12+
## Cómo traer features de Evolution oficial
13+
14+
```bash
15+
git fetch upstream
16+
git log upstream/main --oneline # ver qué hay nuevo
17+
git cherry-pick COMMIT_HASH # traer solo lo que queremos
18+
```
19+
20+
Si cherry-pick tiene conflicto en `src/custom/*`, es un bug — upstream no debería tocar esta carpeta.
21+
22+
## Cómo subir a producción
23+
24+
```bash
25+
git add .
26+
git commit -m "feat(custom): description"
27+
git push origin custom
28+
```
29+
30+
Easypanel detecta el push (cuando configuremos Git deploy) y redeploya automáticamente.

src/custom/buttons-handler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Custom button handler - our product differentiator

src/custom/matrix-perfecta.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Matrix perfecta integration

0 commit comments

Comments
 (0)