gufi-cli 0.1.4 β 0.1.6
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/CLAUDE.md +7 -7
- package/dist/index.js +77 -71
- package/package.json +1 -1
package/CLAUDE.md
CHANGED
|
@@ -1452,23 +1452,23 @@ gufi rows:create m360_t16192 --file datos.json
|
|
|
1452
1452
|
### Desarrollo de Views
|
|
1453
1453
|
|
|
1454
1454
|
```bash
|
|
1455
|
-
# Ver tus
|
|
1456
|
-
gufi
|
|
1455
|
+
# Ver tus views del Marketplace
|
|
1456
|
+
gufi views
|
|
1457
1457
|
|
|
1458
1458
|
# Descargar view para editar localmente
|
|
1459
|
-
gufi pull "Stock Overview"
|
|
1459
|
+
gufi view:pull "Stock Overview"
|
|
1460
1460
|
|
|
1461
1461
|
# Auto-sync al guardar archivos
|
|
1462
|
-
gufi watch
|
|
1462
|
+
gufi view:watch
|
|
1463
1463
|
|
|
1464
1464
|
# Ver console.log del LivePreview
|
|
1465
|
-
gufi logs
|
|
1465
|
+
gufi view:logs
|
|
1466
1466
|
|
|
1467
1467
|
# Subir cambios manualmente
|
|
1468
|
-
gufi push
|
|
1468
|
+
gufi view:push
|
|
1469
1469
|
|
|
1470
1470
|
# Ver estado de sincronizaciΓ³n
|
|
1471
|
-
gufi status
|
|
1471
|
+
gufi view:status
|
|
1472
1472
|
```
|
|
1473
1473
|
|
|
1474
1474
|
### Opciones Globales
|
package/dist/index.js
CHANGED
|
@@ -42,127 +42,133 @@ import { rowsListCommand, rowGetCommand, rowCreateCommand, rowUpdateCommand, row
|
|
|
42
42
|
const program = new Command();
|
|
43
43
|
program
|
|
44
44
|
.name("gufi")
|
|
45
|
-
.description("Gufi
|
|
46
|
-
.version("0.1.
|
|
47
|
-
//
|
|
45
|
+
.description("π£ Gufi CLI - Desarrolla mΓ³dulos, vistas y automations")
|
|
46
|
+
.version("0.1.6");
|
|
47
|
+
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
48
|
+
// π Auth
|
|
49
|
+
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
48
50
|
program
|
|
49
51
|
.command("login")
|
|
50
|
-
.description("
|
|
51
|
-
.option("--api <url>", "
|
|
52
|
+
.description("Iniciar sesiΓ³n en Gufi")
|
|
53
|
+
.option("--api <url>", "URL de API personalizada")
|
|
52
54
|
.action(loginCommand);
|
|
53
55
|
program
|
|
54
56
|
.command("logout")
|
|
55
|
-
.description("
|
|
57
|
+
.description("Cerrar sesiΓ³n")
|
|
56
58
|
.action(logoutCommand);
|
|
57
59
|
program
|
|
58
60
|
.command("whoami")
|
|
59
|
-
.description("
|
|
61
|
+
.description("Ver usuario actual")
|
|
60
62
|
.action(whoamiCommand);
|
|
61
|
-
// Sync commands
|
|
62
|
-
program
|
|
63
|
-
.command("pull [view]")
|
|
64
|
-
.description("Download view files from Gufi")
|
|
65
|
-
.action(pullCommand);
|
|
66
|
-
program
|
|
67
|
-
.command("push")
|
|
68
|
-
.description("Upload local changes to Gufi")
|
|
69
|
-
.action(pushCommand);
|
|
70
|
-
program
|
|
71
|
-
.command("watch [dir]")
|
|
72
|
-
.description("Watch for file changes and auto-sync")
|
|
73
|
-
.action(watchCommand);
|
|
74
|
-
program
|
|
75
|
-
.command("status")
|
|
76
|
-
.description("Show sync status")
|
|
77
|
-
.action(statusCommand);
|
|
78
|
-
program
|
|
79
|
-
.command("list")
|
|
80
|
-
.alias("ls")
|
|
81
|
-
.description("List your packages and views")
|
|
82
|
-
.action(listCommand);
|
|
83
|
-
program
|
|
84
|
-
.command("logs [dir]")
|
|
85
|
-
.description("Stream console logs from LivePreview in real-time")
|
|
86
|
-
.action(logsCommand);
|
|
87
63
|
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
88
|
-
//
|
|
64
|
+
// π’ Companies & Modules
|
|
89
65
|
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
90
66
|
program
|
|
91
67
|
.command("companies")
|
|
92
|
-
.description("
|
|
68
|
+
.description("Ver mis companies")
|
|
93
69
|
.action(companiesCommand);
|
|
70
|
+
program
|
|
71
|
+
.command("company:create <name>")
|
|
72
|
+
.description("Crear nueva company")
|
|
73
|
+
.action(companyCreateCommand);
|
|
94
74
|
program
|
|
95
75
|
.command("modules <company_id>")
|
|
96
|
-
.description("
|
|
76
|
+
.description("Ver mΓ³dulos de una company")
|
|
97
77
|
.action(modulesCommand);
|
|
98
78
|
program
|
|
99
79
|
.command("module <module_id>")
|
|
100
|
-
.description("
|
|
101
|
-
.option("-e, --edit", "
|
|
102
|
-
.option("-c, --company <id>", "
|
|
103
|
-
.option("-f, --file <path>", "
|
|
80
|
+
.description("Ver/editar JSON de un mΓ³dulo")
|
|
81
|
+
.option("-e, --edit", "Abrir en editor")
|
|
82
|
+
.option("-c, --company <id>", "ID de company")
|
|
83
|
+
.option("-f, --file <path>", "Exportar a archivo")
|
|
104
84
|
.action(moduleCommand);
|
|
105
85
|
program
|
|
106
86
|
.command("module:update <module_id> <json_file>")
|
|
107
|
-
.description("
|
|
108
|
-
.option("-c, --company <id>", "
|
|
109
|
-
.option("--dry-run", "
|
|
87
|
+
.description("Actualizar mΓ³dulo desde archivo JSON")
|
|
88
|
+
.option("-c, --company <id>", "ID de company")
|
|
89
|
+
.option("--dry-run", "Validar sin guardar")
|
|
110
90
|
.action(moduleUpdateCommand);
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
.action(companyCreateCommand);
|
|
91
|
+
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
92
|
+
// β‘ Automations
|
|
93
|
+
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
115
94
|
program
|
|
116
95
|
.command("automations")
|
|
117
|
-
.description("
|
|
118
|
-
.option("-c, --company <id>", "
|
|
96
|
+
.description("Ver scripts de automation")
|
|
97
|
+
.option("-c, --company <id>", "ID de company")
|
|
119
98
|
.action(automationsCommand);
|
|
120
99
|
program
|
|
121
100
|
.command("automation <name>")
|
|
122
|
-
.description("
|
|
123
|
-
.option("-e, --edit", "
|
|
124
|
-
.option("-c, --company <id>", "
|
|
125
|
-
.option("-f, --file <path>", "
|
|
101
|
+
.description("Ver/editar cΓ³digo de automation")
|
|
102
|
+
.option("-e, --edit", "Abrir en editor")
|
|
103
|
+
.option("-c, --company <id>", "ID de company")
|
|
104
|
+
.option("-f, --file <path>", "Exportar a archivo")
|
|
126
105
|
.action(automationCommand);
|
|
127
106
|
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
128
|
-
// Row CRUD
|
|
107
|
+
// π Row CRUD - Datos de tablas
|
|
129
108
|
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
130
109
|
program
|
|
131
110
|
.command("rows <table>")
|
|
132
|
-
.description("
|
|
133
|
-
.option("-l, --limit <n>", "
|
|
134
|
-
.option("-o, --offset <n>", "
|
|
135
|
-
.option("-s, --sort <field>", "
|
|
136
|
-
.option("--order <dir>", "
|
|
137
|
-
.option("-f, --filter <expr>", "
|
|
111
|
+
.description("Listar registros (ej: gufi rows m360_t16192)")
|
|
112
|
+
.option("-l, --limit <n>", "Cantidad", "20")
|
|
113
|
+
.option("-o, --offset <n>", "Desde", "0")
|
|
114
|
+
.option("-s, --sort <field>", "Ordenar por", "id")
|
|
115
|
+
.option("--order <dir>", "ASC/DESC", "DESC")
|
|
116
|
+
.option("-f, --filter <expr>", "Filtro (campo=valor)")
|
|
138
117
|
.action(rowsListCommand);
|
|
139
118
|
program
|
|
140
119
|
.command("row <table> <id>")
|
|
141
|
-
.description("
|
|
120
|
+
.description("Ver un registro por ID")
|
|
142
121
|
.action(rowGetCommand);
|
|
143
122
|
program
|
|
144
123
|
.command("row:create <table>")
|
|
145
|
-
.description("
|
|
146
|
-
.option("-d, --data <json>", "JSON
|
|
147
|
-
.option("-f, --file <path>", "JSON
|
|
124
|
+
.description("Crear registro")
|
|
125
|
+
.option("-d, --data <json>", "JSON con datos")
|
|
126
|
+
.option("-f, --file <path>", "Archivo JSON")
|
|
148
127
|
.action(rowCreateCommand);
|
|
149
128
|
program
|
|
150
129
|
.command("row:update <table> <id>")
|
|
151
|
-
.description("
|
|
152
|
-
.option("-d, --data <json>", "JSON
|
|
153
|
-
.option("-f, --file <path>", "JSON
|
|
130
|
+
.description("Actualizar registro")
|
|
131
|
+
.option("-d, --data <json>", "JSON con cambios")
|
|
132
|
+
.option("-f, --file <path>", "Archivo JSON")
|
|
154
133
|
.action(rowUpdateCommand);
|
|
155
134
|
program
|
|
156
135
|
.command("row:delete <table> <id>")
|
|
157
|
-
.description("
|
|
136
|
+
.description("Eliminar registro")
|
|
158
137
|
.action(rowDeleteCommand);
|
|
159
138
|
program
|
|
160
139
|
.command("row:duplicate <table> <id>")
|
|
161
|
-
.description("
|
|
140
|
+
.description("Duplicar registro existente")
|
|
162
141
|
.action(rowDuplicateCommand);
|
|
163
142
|
program
|
|
164
143
|
.command("rows:create <table>")
|
|
165
|
-
.description("
|
|
166
|
-
.option("-f, --file <path>", "
|
|
144
|
+
.description("Crear mΓΊltiples registros desde JSON")
|
|
145
|
+
.option("-f, --file <path>", "Archivo con array de objetos")
|
|
167
146
|
.action(rowsBulkCreateCommand);
|
|
147
|
+
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
148
|
+
// π¨ Views (Marketplace) - Desarrollo local
|
|
149
|
+
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
150
|
+
program
|
|
151
|
+
.command("views")
|
|
152
|
+
.description("Ver mis views del Marketplace")
|
|
153
|
+
.action(listCommand);
|
|
154
|
+
program
|
|
155
|
+
.command("view:pull [name]")
|
|
156
|
+
.description("Descargar vista para editar localmente")
|
|
157
|
+
.action(pullCommand);
|
|
158
|
+
program
|
|
159
|
+
.command("view:push")
|
|
160
|
+
.description("Subir cambios locales a Gufi")
|
|
161
|
+
.action(pushCommand);
|
|
162
|
+
program
|
|
163
|
+
.command("view:watch [dir]")
|
|
164
|
+
.description("Auto-sync al guardar archivos")
|
|
165
|
+
.action(watchCommand);
|
|
166
|
+
program
|
|
167
|
+
.command("view:status")
|
|
168
|
+
.description("Ver estado de sincronizaciΓ³n")
|
|
169
|
+
.action(statusCommand);
|
|
170
|
+
program
|
|
171
|
+
.command("view:logs [dir]")
|
|
172
|
+
.description("Ver console.log del LivePreview")
|
|
173
|
+
.action(logsCommand);
|
|
168
174
|
program.parse();
|