@theelena/catalog-cli 0.1.0 → 0.1.2
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/dist/index.js +42 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -161,7 +161,46 @@ var SecretGuard = class {
|
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
+
// package.json
|
|
165
|
+
var package_default = {
|
|
166
|
+
name: "@theelena/catalog-cli",
|
|
167
|
+
version: "0.1.2",
|
|
168
|
+
description: "CLI de cat\xE1logo de Elena con autorizaci\xF3n humana y credenciales de restaurante",
|
|
169
|
+
author: "Elena Tech",
|
|
170
|
+
license: "MIT",
|
|
171
|
+
type: "module",
|
|
172
|
+
publishConfig: {
|
|
173
|
+
access: "public",
|
|
174
|
+
registry: "https://registry.npmjs.org/"
|
|
175
|
+
},
|
|
176
|
+
bin: {
|
|
177
|
+
"elena-catalog": "./dist/index.js"
|
|
178
|
+
},
|
|
179
|
+
files: [
|
|
180
|
+
"dist",
|
|
181
|
+
"package.json"
|
|
182
|
+
],
|
|
183
|
+
engines: {
|
|
184
|
+
node: ">=20"
|
|
185
|
+
},
|
|
186
|
+
scripts: {
|
|
187
|
+
build: "tsup",
|
|
188
|
+
typecheck: "tsc --noEmit",
|
|
189
|
+
test: "vitest run --maxWorkers=2"
|
|
190
|
+
},
|
|
191
|
+
dependencies: {
|
|
192
|
+
"@theelena/sdk": "0.1.2"
|
|
193
|
+
},
|
|
194
|
+
devDependencies: {
|
|
195
|
+
"@types/node": "^22",
|
|
196
|
+
tsup: "^8.5.1",
|
|
197
|
+
typescript: "^5",
|
|
198
|
+
vitest: "^4.1.9"
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
|
|
164
202
|
// src/arguments.ts
|
|
203
|
+
var CLI_VERSION = package_default.version;
|
|
165
204
|
var grammar = {
|
|
166
205
|
"auth login": { args: 0, required: ["--base-url"], optional: ["--no-open"] },
|
|
167
206
|
"auth status": { args: 0, required: [], optional: [] },
|
|
@@ -244,7 +283,7 @@ function applyRequest(flags) {
|
|
|
244
283
|
payloadHash: flags["--payload-hash"]
|
|
245
284
|
});
|
|
246
285
|
}
|
|
247
|
-
var HELP = `elena-catalog
|
|
286
|
+
var HELP = `elena-catalog ${CLI_VERSION} \u2014 cat\xE1logo de un restaurante, con aprobaci\xF3n humana
|
|
248
287
|
|
|
249
288
|
Comandos (salida JSON estable; --json disponible globalmente):
|
|
250
289
|
auth login --base-url <https-origin> [--no-open]
|
|
@@ -885,7 +924,8 @@ async function runCli(argv, overrides = {}) {
|
|
|
885
924
|
return 0;
|
|
886
925
|
}
|
|
887
926
|
if (parsed.command === "version") {
|
|
888
|
-
runtime.stdout(
|
|
927
|
+
runtime.stdout(`${CLI_VERSION}
|
|
928
|
+
`);
|
|
889
929
|
return 0;
|
|
890
930
|
}
|
|
891
931
|
if (parsed.command === "auth logout") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theelena/catalog-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CLI de catálogo de Elena con autorización humana y credenciales de restaurante",
|
|
5
5
|
"author": "Elena Tech",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"test": "vitest run --maxWorkers=2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@theelena/sdk": "0.1.
|
|
28
|
+
"@theelena/sdk": "0.1.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22",
|