@deneb-ui/cli 2.0.10 → 2.0.11
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/bin/index.js +16 -4
- package/package.json +3 -1
- package/src/recipes/ecommerce-storefront.json +1163 -0
- package/src/recipes/vanta-shoes-store.json +1138 -0
- package/src/tools/local-template-lab.cjs +1 -1
- package/src/tools/recipe-engine.cjs +158 -0
- package/src/tools/template-converter.cjs +218 -40
- package/src/tools/template-preview-focus-bridge.cjs +1 -1
package/bin/index.js
CHANGED
|
@@ -1123,16 +1123,28 @@ if (command === 'init') {
|
|
|
1123
1123
|
runValidateAndZip(commandArgs[0] || '.', commandArgs.slice(1));
|
|
1124
1124
|
} else if (command === 'update' || command === 'upgrade') {
|
|
1125
1125
|
updateDependencies(commandArgs);
|
|
1126
|
-
} else if (command === '
|
|
1127
|
-
const
|
|
1128
|
-
const
|
|
1129
|
-
|
|
1126
|
+
} else if (command === 'save-recipe' || command === 'learn') {
|
|
1127
|
+
const targetDir = path.resolve(commandArgs[0] || '.');
|
|
1128
|
+
const recipeName = commandArgs[1] || path.basename(targetDir);
|
|
1129
|
+
try {
|
|
1130
|
+
const { saveRecipeFromProject } = require('../src/tools/recipe-engine.cjs');
|
|
1131
|
+
const res = saveRecipeFromProject(targetDir, recipeName);
|
|
1132
|
+
console.log(`\n\x1b[32m✔ Successfully learned and saved recipe:\x1b[0m \x1b[1m${res.recipe.name}\x1b[0m`);
|
|
1133
|
+
console.log(` Saved to CLI recipe bank: \x1b[90m${res.globalDest}\x1b[0m`);
|
|
1134
|
+
console.log(` Saved to project recipe: \x1b[90m${res.localDest}\x1b[0m`);
|
|
1135
|
+
console.log(` Future runs of "npx @deneb-ui/cli init" will automatically apply these calibrated fix patterns!\n`);
|
|
1136
|
+
} catch (err) {
|
|
1137
|
+
console.error(`\x1b[31m✖ Failed to save recipe:\x1b[0m ${err.message}`);
|
|
1138
|
+
process.exit(1);
|
|
1139
|
+
}
|
|
1130
1140
|
} else {
|
|
1131
1141
|
console.log(`Usage: deneb <command> [options]
|
|
1132
1142
|
DENEB UI Framework — Powered by DENEB-UI Collaborate with FIVORA
|
|
1133
1143
|
|
|
1134
1144
|
Core Commands:
|
|
1135
1145
|
init Auto-convert & configure existing Next.js (shadcn/HeroUI/Tailwind) into editable Fivora template
|
|
1146
|
+
save-recipe Learn and save calibrated fixes & schemas into reusable recipe bank (e.g. deneb save-recipe . shoes-store)
|
|
1147
|
+
learn Alias for save-recipe
|
|
1136
1148
|
update Update DENEB packages (@deneb-ui/ui, @deneb-ui/cli) and UI components
|
|
1137
1149
|
validate Validate website configuration and visual editing contracts with Fivora platform
|
|
1138
1150
|
doctor Run comprehensive environment, manifest & asset diagnostic checks
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deneb-ui/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Official developer CLI for DENEB UI — Validating, scaffolding, testing, and packaging storefront templates. Created by Chamika Gayashan & Induranga Kawishwara.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"deneb": "bin/index.js",
|
|
7
7
|
"denebui": "bin/index.js",
|
|
8
8
|
"deneb-cli": "bin/index.js",
|
|
9
|
+
"@deneb-ui/cli": "bin/index.js",
|
|
10
|
+
"cli": "bin/index.js",
|
|
9
11
|
"ceeg": "bin/index.js",
|
|
10
12
|
"ceegui": "bin/index.js"
|
|
11
13
|
},
|