@customyai/cli 0.1.0 → 0.1.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @customyai/cli
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Scopes de Access para apps: `ACCESS_SCOPES` añade `users:read`, `catalog:read` y `flags:read` (antes solo `capabilities:read` y `users:contact:read`). `catalog.*` ya no necesita `admin:*`: con `catalog:read` una credencial de máquina (llave, token opaco o JWT de `machineTokens`) lee el catálogo comercial de su propio entorno —nunca el maestro global— y nada más. `customy apps validate` acepta esos tres scopes para `customy-access` en `customy.app.json`; `admin:*` y las escrituras siguen rechazados.
|
|
8
|
+
|
|
3
9
|
## 0.1.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/bin.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkJQGTXI6C_cjs = require('./chunk-JQGTXI6C.cjs');
|
|
5
5
|
|
|
6
6
|
// src/bin.ts
|
|
7
|
-
|
|
7
|
+
chunkJQGTXI6C_cjs.runCli(process.argv.slice(2), {
|
|
8
8
|
cwd: process.cwd(),
|
|
9
9
|
env: process.env,
|
|
10
10
|
out: (line) => console.log(line),
|
package/dist/bin.mjs
CHANGED
|
@@ -216,7 +216,7 @@ var AppManifestSchema = zod.z.object({
|
|
|
216
216
|
plans: zod.z.array(AppPlanSchema).max(32).default([]),
|
|
217
217
|
meters: zod.z.array(AppMeterSchema).max(64).default([])
|
|
218
218
|
}).strict();
|
|
219
|
-
var APP_ACCESS_SCOPES = ["capabilities:read", "users:contact:read"];
|
|
219
|
+
var APP_ACCESS_SCOPES = ["capabilities:read", "users:contact:read", "users:read", "flags:read", "catalog:read"];
|
|
220
220
|
var APP_ACCESS_SCOPE_SET = new Set(APP_ACCESS_SCOPES);
|
|
221
221
|
function appScopeAllowed(product2, scope) {
|
|
222
222
|
if (product2 === "customy-access") return APP_ACCESS_SCOPE_SET.has(scope);
|
|
@@ -210,7 +210,7 @@ var AppManifestSchema = z.object({
|
|
|
210
210
|
plans: z.array(AppPlanSchema).max(32).default([]),
|
|
211
211
|
meters: z.array(AppMeterSchema).max(64).default([])
|
|
212
212
|
}).strict();
|
|
213
|
-
var APP_ACCESS_SCOPES = ["capabilities:read", "users:contact:read"];
|
|
213
|
+
var APP_ACCESS_SCOPES = ["capabilities:read", "users:contact:read", "users:read", "flags:read", "catalog:read"];
|
|
214
214
|
var APP_ACCESS_SCOPE_SET = new Set(APP_ACCESS_SCOPES);
|
|
215
215
|
function appScopeAllowed(product2, scope) {
|
|
216
216
|
if (product2 === "customy-access") return APP_ACCESS_SCOPE_SET.has(scope);
|
package/dist/index.cjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJQGTXI6C_cjs = require('./chunk-JQGTXI6C.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "SyncError", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkJQGTXI6C_cjs.SyncError; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "generateAppTypes", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkJQGTXI6C_cjs.generateAppTypes; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "runCli", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkJQGTXI6C_cjs.runCli; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "schemaToType", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkJQGTXI6C_cjs.schemaToType; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "syncApp", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkJQGTXI6C_cjs.syncApp; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "validateManifest", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkJQGTXI6C_cjs.validateManifest; }
|
|
30
30
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SyncError, generateAppTypes, runCli, schemaToType, syncApp, validateManifest } from './chunk-
|
|
1
|
+
export { SyncError, generateAppTypes, runCli, schemaToType, syncApp, validateManifest } from './chunk-RAIHVQ4J.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@customyai/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Customy CLI for apps: validate, type and sync customy.app.json (customy apps validate | codegen | sync). Also usable as a library.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Customy <hello@customy.ai>",
|