smoonb 0.0.58 → 0.0.59
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 +1 -14
- package/bin/smoonb.js +0 -13
- package/package.json +1 -1
- package/src/index.js +1 -5
- package/src/utils/banner.js +1 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Complete Supabase backup and migration tool**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Backup e restauração: completo e simples, como deveria ser
|
|
6
6
|
|
|
7
7
|
> **Nota sobre acesso comercial:** o Supa Moonbase passará a exigir validação de conta antes de executar operações (login + verificação de assinatura) em fase futura. Nesta versão, não há autenticação implementada — este README apenas apresenta a base legal/comercial. O uso operacional será regido pelos [Termos de Serviço](https://smoonb.com/terms) e pela [Política de Privacidade](https://smoonb.com/privacy).
|
|
8
8
|
|
|
@@ -153,10 +153,6 @@ Valor atual: https://abc123.supabase.co
|
|
|
153
153
|
Este é o valor correto do projeto alvo? (S/n): S
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
```bash
|
|
157
|
-
npx smoonb config --init
|
|
158
|
-
```
|
|
159
|
-
|
|
160
156
|
## 🎯 Uso
|
|
161
157
|
|
|
162
158
|
### Backup Completo
|
|
@@ -260,15 +256,6 @@ npx smoonb check
|
|
|
260
256
|
- ✅ Publicações Realtime
|
|
261
257
|
- ✅ Buckets de Storage
|
|
262
258
|
|
|
263
|
-
### Edge Functions
|
|
264
|
-
|
|
265
|
-
```bash
|
|
266
|
-
# Listar functions
|
|
267
|
-
npx smoonb functions list
|
|
268
|
-
|
|
269
|
-
# Deploy functions
|
|
270
|
-
npx smoonb functions push
|
|
271
|
-
```
|
|
272
259
|
|
|
273
260
|
## 🔧 Comandos Disponíveis
|
|
274
261
|
|
package/bin/smoonb.js
CHANGED
|
@@ -54,25 +54,12 @@ program
|
|
|
54
54
|
.option('--db-url <url>', 'URL da database de destino (override)')
|
|
55
55
|
.action(commands.restore);
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
program
|
|
59
|
-
.command('functions')
|
|
60
|
-
.description('Gerenciar Edge Functions do Supabase')
|
|
61
|
-
.action(commands.functions);
|
|
62
|
-
|
|
63
57
|
program
|
|
64
58
|
.command('check')
|
|
65
59
|
.description('Verificar integridade do projeto Supabase após restauração')
|
|
66
60
|
.option('-o, --output <file>', 'Arquivo de saída do relatório', 'check-report.json')
|
|
67
61
|
.action(commands.check);
|
|
68
62
|
|
|
69
|
-
program
|
|
70
|
-
.command('config')
|
|
71
|
-
.description('Configurar credenciais e configurações do smoonb')
|
|
72
|
-
.option('--init', 'Inicializar configuração')
|
|
73
|
-
.option('--show', 'Mostrar configuração atual')
|
|
74
|
-
.action(commands.config);
|
|
75
|
-
|
|
76
63
|
// Tratamento de erros
|
|
77
64
|
program.on('command:*', function (operands) {
|
|
78
65
|
console.error(chalk.red.bold('❌ Comando não reconhecido:'), operands[0]);
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -12,9 +12,7 @@ const { showBetaBanner } = require('./utils/banner');
|
|
|
12
12
|
// Exportar comandos
|
|
13
13
|
const backupCommand = require('./commands/backup');
|
|
14
14
|
const restoreCommand = require('./commands/restore');
|
|
15
|
-
const functionsCommand = require('./commands/functions');
|
|
16
15
|
const checkCommand = require('./commands/check');
|
|
17
|
-
const configCommand = require('./commands/config');
|
|
18
16
|
|
|
19
17
|
// Exportar utilitários
|
|
20
18
|
const supabaseUtils = require('./utils/supabase');
|
|
@@ -220,9 +218,7 @@ module.exports = {
|
|
|
220
218
|
commands: {
|
|
221
219
|
backup: backupCommand,
|
|
222
220
|
restore: restoreCommand,
|
|
223
|
-
|
|
224
|
-
check: checkCommand,
|
|
225
|
-
config: configCommand
|
|
221
|
+
check: checkCommand
|
|
226
222
|
},
|
|
227
223
|
|
|
228
224
|
// Utilitários
|
package/src/utils/banner.js
CHANGED
|
@@ -5,8 +5,7 @@ const chalk = require('chalk');
|
|
|
5
5
|
*/
|
|
6
6
|
function showBetaBanner() {
|
|
7
7
|
console.log(chalk.cyan.bold('\n🚀 Supa Moonbase (smoonb)\n'));
|
|
8
|
-
console.log(chalk.white('
|
|
9
|
-
console.log(chalk.white('Resolve o problema de backup incompleto das ferramentas existentes.\n'));
|
|
8
|
+
console.log(chalk.white('Backup e restauração: completo e simples, como deveria ser\n'));
|
|
10
9
|
|
|
11
10
|
console.log(chalk.cyan.bold('📦 Componentes de Backup:\n'));
|
|
12
11
|
console.log(chalk.white(' ✅ Database PostgreSQL (pg_dumpall + SQL separados)'));
|