@tutti-os/app-release-tools 0.0.32 → 0.0.33
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.
|
@@ -254,11 +254,21 @@ function validateCLICommand(command, label, scope, seenPaths) {
|
|
|
254
254
|
}
|
|
255
255
|
seenPaths.add(pathKey);
|
|
256
256
|
requireNonEmpty(command.summary, `${label}.summary`);
|
|
257
|
+
validateCLIVisibility(command.visibility, `${label}.visibility`);
|
|
257
258
|
validateCLIInputSchema(command.inputSchema, `${label}.inputSchema`);
|
|
258
259
|
validateCLIOutput(command.output, `${label}.output`);
|
|
259
260
|
validateCLIHandler(command.handler, `${label}.handler`);
|
|
260
261
|
}
|
|
261
262
|
|
|
263
|
+
function validateCLIVisibility(visibility, label) {
|
|
264
|
+
if (visibility === undefined) {
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
if (!["public", "integration"].includes(visibility)) {
|
|
268
|
+
throw new Error(`${label} must be public or integration`);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
262
272
|
function validateCLIInputSchema(schema, label) {
|
|
263
273
|
if (schema === undefined) {
|
|
264
274
|
return;
|