@biffo/cli 0.279.2 → 0.280.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/dist/index.js +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8287,6 +8287,13 @@ import { Command as Command14 } from "commander";
|
|
|
8287
8287
|
|
|
8288
8288
|
// src/adapters/registry/index.ts
|
|
8289
8289
|
import { z as z8 } from "zod";
|
|
8290
|
+
var UiComponentEntrySchema = z8.object({
|
|
8291
|
+
type: z8.enum(["nav-link", "page", "dashboard-widget", "modal", "dialog"]),
|
|
8292
|
+
label: z8.string(),
|
|
8293
|
+
path: z8.string(),
|
|
8294
|
+
icon: z8.string().optional(),
|
|
8295
|
+
requires_auth: z8.boolean().optional()
|
|
8296
|
+
});
|
|
8290
8297
|
var RegistryPluginEntrySchema = z8.object({
|
|
8291
8298
|
name: z8.string().regex(/^[a-z][a-z0-9-]*$/),
|
|
8292
8299
|
version: z8.string().regex(/^\d+\.\d+\.\d+$/),
|
|
@@ -8298,7 +8305,7 @@ var RegistryPluginEntrySchema = z8.object({
|
|
|
8298
8305
|
required_core_version: z8.string().optional(),
|
|
8299
8306
|
infra_modules: z8.array(z8.string()).optional(),
|
|
8300
8307
|
api_routes: z8.array(z8.string()).optional(),
|
|
8301
|
-
ui_components: z8.array(
|
|
8308
|
+
ui_components: z8.array(UiComponentEntrySchema).optional(),
|
|
8302
8309
|
status: z8.enum(["active", "disabled"])
|
|
8303
8310
|
});
|
|
8304
8311
|
var PluginRegistrySchema = z8.object({
|
|
@@ -8414,7 +8421,8 @@ function printEntry(entry) {
|
|
|
8414
8421
|
console.log(` API routes: ${entry.api_routes.join(", ")}`);
|
|
8415
8422
|
}
|
|
8416
8423
|
if (entry.ui_components?.length) {
|
|
8417
|
-
|
|
8424
|
+
const summary = entry.ui_components.map((c) => `${c.label} (${c.type})`).join(", ");
|
|
8425
|
+
console.log(` UI components: ${summary}`);
|
|
8418
8426
|
}
|
|
8419
8427
|
console.log("");
|
|
8420
8428
|
}
|