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.
Files changed (3) hide show
  1. package/CLAUDE.md +7 -7
  2. package/dist/index.js +77 -71
  3. 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 packages y views
1456
- gufi list
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 Developer CLI - Develop Gufi views locally")
46
- .version("0.1.0");
47
- // Auth commands
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("Login to Gufi")
51
- .option("--api <url>", "Custom 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("Logout from Gufi")
57
+ .description("Cerrar sesiΓ³n")
56
58
  .action(logoutCommand);
57
59
  program
58
60
  .command("whoami")
59
- .description("Show current logged in user")
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
- // SDK Commands - Companies, Modules, Automations
64
+ // 🏒 Companies & Modules
89
65
  // ════════════════════════════════════════════════════════════════════
90
66
  program
91
67
  .command("companies")
92
- .description("List your companies")
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("List modules of a company")
76
+ .description("Ver mΓ³dulos de una company")
97
77
  .action(modulesCommand);
98
78
  program
99
79
  .command("module <module_id>")
100
- .description("View or edit a module JSON")
101
- .option("-e, --edit", "Open in editor to edit")
102
- .option("-c, --company <id>", "Company ID (if not default)")
103
- .option("-f, --file <path>", "Save JSON to file")
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("Update module from a JSON file")
108
- .option("-c, --company <id>", "Company ID (if not default)")
109
- .option("--dry-run", "Validate without saving")
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
- program
112
- .command("company:create <name>")
113
- .description("Create a new company")
114
- .action(companyCreateCommand);
91
+ // ════════════════════════════════════════════════════════════════════
92
+ // ⚑ Automations
93
+ // ════════════════════════════════════════════════════════════════════
115
94
  program
116
95
  .command("automations")
117
- .description("List all automation scripts")
118
- .option("-c, --company <id>", "Company ID (if not default)")
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("View or edit an automation by name")
123
- .option("-e, --edit", "Open in editor to edit")
124
- .option("-c, --company <id>", "Company ID (if not default)")
125
- .option("-f, --file <path>", "Save code to file")
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 Commands - Create, Read, Update, Delete rows
107
+ // πŸ“Š Row CRUD - Datos de tablas
129
108
  // ════════════════════════════════════════════════════════════════════
130
109
  program
131
110
  .command("rows <table>")
132
- .description("List rows from a table")
133
- .option("-l, --limit <n>", "Number of rows to fetch", "20")
134
- .option("-o, --offset <n>", "Starting offset", "0")
135
- .option("-s, --sort <field>", "Sort by field", "id")
136
- .option("--order <dir>", "Sort order (ASC/DESC)", "DESC")
137
- .option("-f, --filter <expr>", "Filter expression (field=value)")
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("Get a single row by ID")
120
+ .description("Ver un registro por ID")
142
121
  .action(rowGetCommand);
143
122
  program
144
123
  .command("row:create <table>")
145
- .description("Create a new row")
146
- .option("-d, --data <json>", "JSON data for the row")
147
- .option("-f, --file <path>", "JSON file with row data")
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("Update a row by ID")
152
- .option("-d, --data <json>", "JSON data to update")
153
- .option("-f, --file <path>", "JSON file with update data")
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("Delete a row by ID")
136
+ .description("Eliminar registro")
158
137
  .action(rowDeleteCommand);
159
138
  program
160
139
  .command("row:duplicate <table> <id>")
161
- .description("Duplicate an existing row")
140
+ .description("Duplicar registro existente")
162
141
  .action(rowDuplicateCommand);
163
142
  program
164
143
  .command("rows:create <table>")
165
- .description("Bulk create rows from JSON file")
166
- .option("-f, --file <path>", "JSON file with array of rows")
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gufi-cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "CLI for developing Gufi Marketplace views locally with Claude Code",
5
5
  "bin": {
6
6
  "gufi": "./bin/gufi.js"