@customyai/cli 0.1.1 → 0.6.0
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 +42 -0
- package/README.md +50 -4
- package/dist/bin.cjs +14 -4
- package/dist/bin.mjs +13 -3
- package/dist/chunk-6S5U7ZKO.cjs +1102 -0
- package/dist/chunk-L2FCAP2K.mjs +1087 -0
- package/dist/index.cjs +23 -7
- package/dist/index.d.cts +78 -6
- package/dist/index.d.ts +78 -6
- package/dist/index.mjs +1 -1
- package/package.json +7 -4
- package/dist/chunk-JQGTXI6C.cjs +0 -389
- package/dist/chunk-RAIHVQ4J.mjs +0 -378
package/dist/index.cjs
CHANGED
|
@@ -1,30 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6S5U7ZKO_cjs = require('./chunk-6S5U7ZKO.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.defineProperty(exports, "EXPERIMENTS_EXIT_CODES", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunk6S5U7ZKO_cjs.EXPERIMENTS_EXIT; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "PROVISIONING_EXIT_CODES", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunk6S5U7ZKO_cjs.EXIT; }
|
|
14
|
+
});
|
|
7
15
|
Object.defineProperty(exports, "SyncError", {
|
|
8
16
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6S5U7ZKO_cjs.SyncError; }
|
|
10
18
|
});
|
|
11
19
|
Object.defineProperty(exports, "generateAppTypes", {
|
|
12
20
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk6S5U7ZKO_cjs.generateAppTypes; }
|
|
14
22
|
});
|
|
15
23
|
Object.defineProperty(exports, "runCli", {
|
|
16
24
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk6S5U7ZKO_cjs.runCli; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "runExperimentsCli", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunk6S5U7ZKO_cjs.runExperimentsCli; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "runProvisioningCli", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk6S5U7ZKO_cjs.runProvisioningCli; }
|
|
18
34
|
});
|
|
19
35
|
Object.defineProperty(exports, "schemaToType", {
|
|
20
36
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk6S5U7ZKO_cjs.schemaToType; }
|
|
22
38
|
});
|
|
23
39
|
Object.defineProperty(exports, "syncApp", {
|
|
24
40
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk6S5U7ZKO_cjs.syncApp; }
|
|
26
42
|
});
|
|
27
43
|
Object.defineProperty(exports, "validateManifest", {
|
|
28
44
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk6S5U7ZKO_cjs.validateManifest; }
|
|
30
46
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -6,6 +6,10 @@ type CliIo = {
|
|
|
6
6
|
out: (line: string) => void;
|
|
7
7
|
err: (line: string) => void;
|
|
8
8
|
fetch?: typeof fetch;
|
|
9
|
+
/** Is stdin an interactive terminal? Production writes ask for confirmation only if so. */
|
|
10
|
+
isTTY?: boolean;
|
|
11
|
+
/** Asks a question on the terminal (the prompt goes to stderr) and returns the typed line. */
|
|
12
|
+
prompt?: (question: string) => Promise<string>;
|
|
9
13
|
};
|
|
10
14
|
declare function runCli(argv: string[], io: CliIo): Promise<number>;
|
|
11
15
|
|
|
@@ -56,16 +60,16 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
56
60
|
key: z.ZodString;
|
|
57
61
|
product: z.ZodString;
|
|
58
62
|
bindingKind: z.ZodOptional<z.ZodEnum<["product", "internal_service", "external_destination", "public_form", "private_collection", "external_source", "external_automation", "external_communication"]>>;
|
|
59
|
-
operations: z.ZodOptional<z.ZodArray<z.ZodEnum<["read", "propose", "submit", "read_owned", "write_owned", "research", "deliver_budget_alert", "deliver_notification"]>, "many">>;
|
|
63
|
+
operations: z.ZodOptional<z.ZodArray<z.ZodEnum<["read", "propose", "submit", "read_owned", "write_owned", "research", "deliver_budget_alert", "deliver_notification", "request_operator_approval"]>, "many">>;
|
|
60
64
|
}, "strict", z.ZodTypeAny, {
|
|
61
65
|
product: string;
|
|
62
66
|
key: string;
|
|
63
|
-
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification")[] | undefined;
|
|
67
|
+
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification" | "request_operator_approval")[] | undefined;
|
|
64
68
|
bindingKind?: "product" | "internal_service" | "external_destination" | "public_form" | "private_collection" | "external_source" | "external_automation" | "external_communication" | undefined;
|
|
65
69
|
}, {
|
|
66
70
|
product: string;
|
|
67
71
|
key: string;
|
|
68
|
-
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification")[] | undefined;
|
|
72
|
+
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification" | "request_operator_approval")[] | undefined;
|
|
69
73
|
bindingKind?: "product" | "internal_service" | "external_destination" | "public_form" | "private_collection" | "external_source" | "external_automation" | "external_communication" | undefined;
|
|
70
74
|
}>, "many">>;
|
|
71
75
|
events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -133,6 +137,33 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
133
137
|
aggregation: "sum" | "count" | "last";
|
|
134
138
|
unit: string;
|
|
135
139
|
}>, "many">>;
|
|
140
|
+
/** Opcional: permisos y roles de la app (clave `<clave-de-la-app>.…`, sin comodines). */
|
|
141
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
|
+
key: z.ZodString;
|
|
143
|
+
description: z.ZodString;
|
|
144
|
+
}, "strict", z.ZodTypeAny, {
|
|
145
|
+
key: string;
|
|
146
|
+
description: string;
|
|
147
|
+
}, {
|
|
148
|
+
key: string;
|
|
149
|
+
description: string;
|
|
150
|
+
}>, "many">>;
|
|
151
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
152
|
+
key: z.ZodString;
|
|
153
|
+
name: z.ZodString;
|
|
154
|
+
description: z.ZodDefault<z.ZodString>;
|
|
155
|
+
permissions: z.ZodArray<z.ZodString, "many">;
|
|
156
|
+
}, "strict", z.ZodTypeAny, {
|
|
157
|
+
key: string;
|
|
158
|
+
name: string;
|
|
159
|
+
description: string;
|
|
160
|
+
permissions: string[];
|
|
161
|
+
}, {
|
|
162
|
+
key: string;
|
|
163
|
+
name: string;
|
|
164
|
+
permissions: string[];
|
|
165
|
+
description?: string | undefined;
|
|
166
|
+
}>, "many">>;
|
|
136
167
|
}, "strict", z.ZodTypeAny, {
|
|
137
168
|
schema: "app/v1";
|
|
138
169
|
key: string;
|
|
@@ -154,7 +185,7 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
154
185
|
resources: {
|
|
155
186
|
product: string;
|
|
156
187
|
key: string;
|
|
157
|
-
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification")[] | undefined;
|
|
188
|
+
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification" | "request_operator_approval")[] | undefined;
|
|
158
189
|
bindingKind?: "product" | "internal_service" | "external_destination" | "public_form" | "private_collection" | "external_source" | "external_automation" | "external_communication" | undefined;
|
|
159
190
|
}[];
|
|
160
191
|
events: {
|
|
@@ -175,7 +206,17 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
175
206
|
aggregation: "sum" | "count" | "last";
|
|
176
207
|
unit: string;
|
|
177
208
|
}[];
|
|
209
|
+
permissions?: {
|
|
210
|
+
key: string;
|
|
211
|
+
description: string;
|
|
212
|
+
}[] | undefined;
|
|
178
213
|
$schema?: string | undefined;
|
|
214
|
+
roles?: {
|
|
215
|
+
key: string;
|
|
216
|
+
name: string;
|
|
217
|
+
description: string;
|
|
218
|
+
permissions: string[];
|
|
219
|
+
}[] | undefined;
|
|
179
220
|
}, {
|
|
180
221
|
schema: "app/v1";
|
|
181
222
|
key: string;
|
|
@@ -190,6 +231,10 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
190
231
|
lookupKey: string;
|
|
191
232
|
meter?: string | undefined;
|
|
192
233
|
}[] | undefined;
|
|
234
|
+
permissions?: {
|
|
235
|
+
key: string;
|
|
236
|
+
description: string;
|
|
237
|
+
}[] | undefined;
|
|
193
238
|
$schema?: string | undefined;
|
|
194
239
|
products?: {
|
|
195
240
|
product: string;
|
|
@@ -198,7 +243,7 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
198
243
|
resources?: {
|
|
199
244
|
product: string;
|
|
200
245
|
key: string;
|
|
201
|
-
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification")[] | undefined;
|
|
246
|
+
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification" | "request_operator_approval")[] | undefined;
|
|
202
247
|
bindingKind?: "product" | "internal_service" | "external_destination" | "public_form" | "private_collection" | "external_source" | "external_automation" | "external_communication" | undefined;
|
|
203
248
|
}[] | undefined;
|
|
204
249
|
events?: {
|
|
@@ -219,6 +264,12 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
219
264
|
aggregation: "sum" | "count" | "last";
|
|
220
265
|
unit: string;
|
|
221
266
|
}[] | undefined;
|
|
267
|
+
roles?: {
|
|
268
|
+
key: string;
|
|
269
|
+
name: string;
|
|
270
|
+
permissions: string[];
|
|
271
|
+
description?: string | undefined;
|
|
272
|
+
}[] | undefined;
|
|
222
273
|
}>;
|
|
223
274
|
type AppManifest = z.infer<typeof AppManifestSchema>;
|
|
224
275
|
|
|
@@ -260,9 +311,13 @@ type ProductReconciliation = {
|
|
|
260
311
|
status: "reconciled";
|
|
261
312
|
changed: boolean;
|
|
262
313
|
resourceId?: string;
|
|
314
|
+
permissions?: number;
|
|
315
|
+
roles?: number;
|
|
316
|
+
rolesOrphaned?: number;
|
|
263
317
|
} | {
|
|
264
318
|
status: "failed";
|
|
265
319
|
code: string;
|
|
320
|
+
conflicts?: string[];
|
|
266
321
|
};
|
|
267
322
|
type SyncResult = {
|
|
268
323
|
action: "installed" | "updated" | "unchanged";
|
|
@@ -298,4 +353,21 @@ type JsonSchema = {
|
|
|
298
353
|
declare function schemaToType(schema: JsonSchema | undefined, indent?: string): string;
|
|
299
354
|
declare function generateAppTypes(manifest: AppManifest): string;
|
|
300
355
|
|
|
301
|
-
|
|
356
|
+
declare const EXIT: {
|
|
357
|
+
readonly ok: 0;
|
|
358
|
+
readonly failure: 1;
|
|
359
|
+
readonly unsupported: 2;
|
|
360
|
+
readonly auth: 3;
|
|
361
|
+
readonly confirmation: 4;
|
|
362
|
+
};
|
|
363
|
+
declare function runProvisioningCli(group: string, args: string[], io: CliIo): Promise<number>;
|
|
364
|
+
|
|
365
|
+
declare const EXPERIMENTS_EXIT: {
|
|
366
|
+
readonly ok: 0;
|
|
367
|
+
readonly failure: 1;
|
|
368
|
+
readonly auth: 3;
|
|
369
|
+
readonly conflict: 4;
|
|
370
|
+
};
|
|
371
|
+
declare function runExperimentsCli(group: string, args: string[], io: CliIo): Promise<number>;
|
|
372
|
+
|
|
373
|
+
export { type CliIo, EXPERIMENTS_EXIT as EXPERIMENTS_EXIT_CODES, EXIT as PROVISIONING_EXIT_CODES, SyncError, type SyncOptions, type SyncResult, generateAppTypes, runCli, runExperimentsCli, runProvisioningCli, schemaToType, syncApp, validateManifest };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ type CliIo = {
|
|
|
6
6
|
out: (line: string) => void;
|
|
7
7
|
err: (line: string) => void;
|
|
8
8
|
fetch?: typeof fetch;
|
|
9
|
+
/** Is stdin an interactive terminal? Production writes ask for confirmation only if so. */
|
|
10
|
+
isTTY?: boolean;
|
|
11
|
+
/** Asks a question on the terminal (the prompt goes to stderr) and returns the typed line. */
|
|
12
|
+
prompt?: (question: string) => Promise<string>;
|
|
9
13
|
};
|
|
10
14
|
declare function runCli(argv: string[], io: CliIo): Promise<number>;
|
|
11
15
|
|
|
@@ -56,16 +60,16 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
56
60
|
key: z.ZodString;
|
|
57
61
|
product: z.ZodString;
|
|
58
62
|
bindingKind: z.ZodOptional<z.ZodEnum<["product", "internal_service", "external_destination", "public_form", "private_collection", "external_source", "external_automation", "external_communication"]>>;
|
|
59
|
-
operations: z.ZodOptional<z.ZodArray<z.ZodEnum<["read", "propose", "submit", "read_owned", "write_owned", "research", "deliver_budget_alert", "deliver_notification"]>, "many">>;
|
|
63
|
+
operations: z.ZodOptional<z.ZodArray<z.ZodEnum<["read", "propose", "submit", "read_owned", "write_owned", "research", "deliver_budget_alert", "deliver_notification", "request_operator_approval"]>, "many">>;
|
|
60
64
|
}, "strict", z.ZodTypeAny, {
|
|
61
65
|
product: string;
|
|
62
66
|
key: string;
|
|
63
|
-
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification")[] | undefined;
|
|
67
|
+
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification" | "request_operator_approval")[] | undefined;
|
|
64
68
|
bindingKind?: "product" | "internal_service" | "external_destination" | "public_form" | "private_collection" | "external_source" | "external_automation" | "external_communication" | undefined;
|
|
65
69
|
}, {
|
|
66
70
|
product: string;
|
|
67
71
|
key: string;
|
|
68
|
-
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification")[] | undefined;
|
|
72
|
+
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification" | "request_operator_approval")[] | undefined;
|
|
69
73
|
bindingKind?: "product" | "internal_service" | "external_destination" | "public_form" | "private_collection" | "external_source" | "external_automation" | "external_communication" | undefined;
|
|
70
74
|
}>, "many">>;
|
|
71
75
|
events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -133,6 +137,33 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
133
137
|
aggregation: "sum" | "count" | "last";
|
|
134
138
|
unit: string;
|
|
135
139
|
}>, "many">>;
|
|
140
|
+
/** Opcional: permisos y roles de la app (clave `<clave-de-la-app>.…`, sin comodines). */
|
|
141
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
|
+
key: z.ZodString;
|
|
143
|
+
description: z.ZodString;
|
|
144
|
+
}, "strict", z.ZodTypeAny, {
|
|
145
|
+
key: string;
|
|
146
|
+
description: string;
|
|
147
|
+
}, {
|
|
148
|
+
key: string;
|
|
149
|
+
description: string;
|
|
150
|
+
}>, "many">>;
|
|
151
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
152
|
+
key: z.ZodString;
|
|
153
|
+
name: z.ZodString;
|
|
154
|
+
description: z.ZodDefault<z.ZodString>;
|
|
155
|
+
permissions: z.ZodArray<z.ZodString, "many">;
|
|
156
|
+
}, "strict", z.ZodTypeAny, {
|
|
157
|
+
key: string;
|
|
158
|
+
name: string;
|
|
159
|
+
description: string;
|
|
160
|
+
permissions: string[];
|
|
161
|
+
}, {
|
|
162
|
+
key: string;
|
|
163
|
+
name: string;
|
|
164
|
+
permissions: string[];
|
|
165
|
+
description?: string | undefined;
|
|
166
|
+
}>, "many">>;
|
|
136
167
|
}, "strict", z.ZodTypeAny, {
|
|
137
168
|
schema: "app/v1";
|
|
138
169
|
key: string;
|
|
@@ -154,7 +185,7 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
154
185
|
resources: {
|
|
155
186
|
product: string;
|
|
156
187
|
key: string;
|
|
157
|
-
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification")[] | undefined;
|
|
188
|
+
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification" | "request_operator_approval")[] | undefined;
|
|
158
189
|
bindingKind?: "product" | "internal_service" | "external_destination" | "public_form" | "private_collection" | "external_source" | "external_automation" | "external_communication" | undefined;
|
|
159
190
|
}[];
|
|
160
191
|
events: {
|
|
@@ -175,7 +206,17 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
175
206
|
aggregation: "sum" | "count" | "last";
|
|
176
207
|
unit: string;
|
|
177
208
|
}[];
|
|
209
|
+
permissions?: {
|
|
210
|
+
key: string;
|
|
211
|
+
description: string;
|
|
212
|
+
}[] | undefined;
|
|
178
213
|
$schema?: string | undefined;
|
|
214
|
+
roles?: {
|
|
215
|
+
key: string;
|
|
216
|
+
name: string;
|
|
217
|
+
description: string;
|
|
218
|
+
permissions: string[];
|
|
219
|
+
}[] | undefined;
|
|
179
220
|
}, {
|
|
180
221
|
schema: "app/v1";
|
|
181
222
|
key: string;
|
|
@@ -190,6 +231,10 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
190
231
|
lookupKey: string;
|
|
191
232
|
meter?: string | undefined;
|
|
192
233
|
}[] | undefined;
|
|
234
|
+
permissions?: {
|
|
235
|
+
key: string;
|
|
236
|
+
description: string;
|
|
237
|
+
}[] | undefined;
|
|
193
238
|
$schema?: string | undefined;
|
|
194
239
|
products?: {
|
|
195
240
|
product: string;
|
|
@@ -198,7 +243,7 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
198
243
|
resources?: {
|
|
199
244
|
product: string;
|
|
200
245
|
key: string;
|
|
201
|
-
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification")[] | undefined;
|
|
246
|
+
operations?: ("read" | "propose" | "submit" | "read_owned" | "write_owned" | "research" | "deliver_budget_alert" | "deliver_notification" | "request_operator_approval")[] | undefined;
|
|
202
247
|
bindingKind?: "product" | "internal_service" | "external_destination" | "public_form" | "private_collection" | "external_source" | "external_automation" | "external_communication" | undefined;
|
|
203
248
|
}[] | undefined;
|
|
204
249
|
events?: {
|
|
@@ -219,6 +264,12 @@ declare const AppManifestSchema: z.ZodObject<{
|
|
|
219
264
|
aggregation: "sum" | "count" | "last";
|
|
220
265
|
unit: string;
|
|
221
266
|
}[] | undefined;
|
|
267
|
+
roles?: {
|
|
268
|
+
key: string;
|
|
269
|
+
name: string;
|
|
270
|
+
permissions: string[];
|
|
271
|
+
description?: string | undefined;
|
|
272
|
+
}[] | undefined;
|
|
222
273
|
}>;
|
|
223
274
|
type AppManifest = z.infer<typeof AppManifestSchema>;
|
|
224
275
|
|
|
@@ -260,9 +311,13 @@ type ProductReconciliation = {
|
|
|
260
311
|
status: "reconciled";
|
|
261
312
|
changed: boolean;
|
|
262
313
|
resourceId?: string;
|
|
314
|
+
permissions?: number;
|
|
315
|
+
roles?: number;
|
|
316
|
+
rolesOrphaned?: number;
|
|
263
317
|
} | {
|
|
264
318
|
status: "failed";
|
|
265
319
|
code: string;
|
|
320
|
+
conflicts?: string[];
|
|
266
321
|
};
|
|
267
322
|
type SyncResult = {
|
|
268
323
|
action: "installed" | "updated" | "unchanged";
|
|
@@ -298,4 +353,21 @@ type JsonSchema = {
|
|
|
298
353
|
declare function schemaToType(schema: JsonSchema | undefined, indent?: string): string;
|
|
299
354
|
declare function generateAppTypes(manifest: AppManifest): string;
|
|
300
355
|
|
|
301
|
-
|
|
356
|
+
declare const EXIT: {
|
|
357
|
+
readonly ok: 0;
|
|
358
|
+
readonly failure: 1;
|
|
359
|
+
readonly unsupported: 2;
|
|
360
|
+
readonly auth: 3;
|
|
361
|
+
readonly confirmation: 4;
|
|
362
|
+
};
|
|
363
|
+
declare function runProvisioningCli(group: string, args: string[], io: CliIo): Promise<number>;
|
|
364
|
+
|
|
365
|
+
declare const EXPERIMENTS_EXIT: {
|
|
366
|
+
readonly ok: 0;
|
|
367
|
+
readonly failure: 1;
|
|
368
|
+
readonly auth: 3;
|
|
369
|
+
readonly conflict: 4;
|
|
370
|
+
};
|
|
371
|
+
declare function runExperimentsCli(group: string, args: string[], io: CliIo): Promise<number>;
|
|
372
|
+
|
|
373
|
+
export { type CliIo, EXPERIMENTS_EXIT as EXPERIMENTS_EXIT_CODES, EXIT as PROVISIONING_EXIT_CODES, SyncError, type SyncOptions, type SyncResult, generateAppTypes, runCli, runExperimentsCli, runProvisioningCli, schemaToType, syncApp, validateManifest };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SyncError, generateAppTypes, runCli, schemaToType, syncApp, validateManifest } from './chunk-
|
|
1
|
+
export { EXPERIMENTS_EXIT as EXPERIMENTS_EXIT_CODES, EXIT as PROVISIONING_EXIT_CODES, SyncError, generateAppTypes, runCli, runExperimentsCli, runProvisioningCli, schemaToType, syncApp, validateManifest } from './chunk-L2FCAP2K.mjs';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@customyai/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Customy CLI
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Customy CLI: validate, type and sync customy.app.json (customy apps ...) and provision TEST users (customy users | audit | policy | whoami). Also usable as a library.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Customy <hello@customy.ai>",
|
|
7
7
|
"repository": {
|
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
"cli",
|
|
18
18
|
"manifest",
|
|
19
19
|
"codegen",
|
|
20
|
-
"sdk"
|
|
20
|
+
"sdk",
|
|
21
|
+
"provisioning",
|
|
22
|
+
"test-users"
|
|
21
23
|
],
|
|
22
24
|
"type": "module",
|
|
23
25
|
"main": "./dist/index.cjs",
|
|
@@ -54,6 +56,7 @@
|
|
|
54
56
|
"test": "vitest run"
|
|
55
57
|
},
|
|
56
58
|
"dependencies": {
|
|
59
|
+
"@customyai/provisioning": "^0.1.1",
|
|
57
60
|
"zod": "^3.23.8"
|
|
58
61
|
},
|
|
59
62
|
"devDependencies": {
|
|
@@ -64,6 +67,6 @@
|
|
|
64
67
|
},
|
|
65
68
|
"publishConfig": {
|
|
66
69
|
"access": "public",
|
|
67
|
-
"provenance":
|
|
70
|
+
"provenance": false
|
|
68
71
|
}
|
|
69
72
|
}
|