ebade 0.2.0 → 0.2.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/cli/scaffold.js +46 -15
- package/demo.gif +0 -0
- package/demo.mp4 +0 -0
- package/demo.tape +63 -0
- package/package.json +1 -1
package/cli/scaffold.js
CHANGED
|
@@ -730,32 +730,63 @@ ${colors.yellow}💡 Tip:${colors.reset} AI Agents can read ${
|
|
|
730
730
|
// CLI Entry Point
|
|
731
731
|
// ============================================
|
|
732
732
|
const args = process.argv.slice(2);
|
|
733
|
+
const command = args[0];
|
|
733
734
|
|
|
734
|
-
|
|
735
|
+
function showHelp() {
|
|
735
736
|
console.log(`
|
|
736
|
-
${colors.bright}ebade
|
|
737
|
+
${colors.bright}ebade CLI${colors.reset} - The Agent-First Framework
|
|
737
738
|
|
|
738
|
-
Usage
|
|
739
|
-
npx ebade
|
|
739
|
+
${colors.dim}Usage:${colors.reset}
|
|
740
|
+
npx ebade <command> [options]
|
|
740
741
|
|
|
741
|
-
|
|
742
|
+
${colors.dim}Commands:${colors.reset}
|
|
743
|
+
scaffold <file> [output] Scaffold a project from ebade file
|
|
744
|
+
|
|
745
|
+
${colors.dim}Examples:${colors.reset}
|
|
742
746
|
npx ebade scaffold examples/ecommerce.ebade.yaml ./output
|
|
747
|
+
npx ebade scaffold my-project.ebade.yaml
|
|
743
748
|
|
|
744
|
-
|
|
745
|
-
ebade
|
|
746
|
-
output-dir Output directory (default: ./output)
|
|
749
|
+
${colors.dim}Learn more:${colors.reset}
|
|
750
|
+
https://ebade.dev
|
|
747
751
|
`);
|
|
748
|
-
process.exit(1);
|
|
749
752
|
}
|
|
750
753
|
|
|
751
|
-
|
|
752
|
-
|
|
754
|
+
if (
|
|
755
|
+
args.length === 0 ||
|
|
756
|
+
command === "help" ||
|
|
757
|
+
command === "--help" ||
|
|
758
|
+
command === "-h"
|
|
759
|
+
) {
|
|
760
|
+
showHelp();
|
|
761
|
+
process.exit(0);
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
if (command === "scaffold") {
|
|
765
|
+
const ebadeFile = args[1];
|
|
766
|
+
const outputDir = args[2] || "./output";
|
|
767
|
+
|
|
768
|
+
if (!ebadeFile) {
|
|
769
|
+
console.error(
|
|
770
|
+
`${colors.red}Error:${colors.reset} Please provide an ebade file path.`
|
|
771
|
+
);
|
|
772
|
+
console.log(
|
|
773
|
+
`\n${colors.dim}Usage:${colors.reset} npx ebade scaffold <file.ebade.yaml> [output-dir]\n`
|
|
774
|
+
);
|
|
775
|
+
process.exit(1);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
if (!fs.existsSync(ebadeFile)) {
|
|
779
|
+
console.error(
|
|
780
|
+
`${colors.red}Error:${colors.reset} ebade file not found: ${ebadeFile}`
|
|
781
|
+
);
|
|
782
|
+
process.exit(1);
|
|
783
|
+
}
|
|
753
784
|
|
|
754
|
-
|
|
785
|
+
scaffold(ebadeFile, outputDir);
|
|
786
|
+
} else {
|
|
755
787
|
console.error(
|
|
756
|
-
`${colors.red}Error:${colors.reset}
|
|
788
|
+
`${colors.red}Error:${colors.reset} Unknown command: ${command}`
|
|
757
789
|
);
|
|
790
|
+
showHelp();
|
|
758
791
|
process.exit(1);
|
|
759
792
|
}
|
|
760
|
-
|
|
761
|
-
scaffold(ebadeFile, outputDir);
|
package/demo.gif
CHANGED
|
Binary file
|
package/demo.mp4
ADDED
|
Binary file
|
package/demo.tape
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# ebade Demo Video Script
|
|
2
|
+
# Run with: vhs demo.tape
|
|
3
|
+
# Outputs: demo.gif + demo.mp4
|
|
4
|
+
|
|
5
|
+
# Outputs - both formats
|
|
6
|
+
Output demo.gif
|
|
7
|
+
Output demo.mp4
|
|
8
|
+
|
|
9
|
+
# Configuration
|
|
10
|
+
Set FontSize 20
|
|
11
|
+
Set Width 1200
|
|
12
|
+
Set Height 700
|
|
13
|
+
Set Theme "Catppuccin Mocha"
|
|
14
|
+
Set Padding 30
|
|
15
|
+
Set TypingSpeed 50ms
|
|
16
|
+
Set PlaybackSpeed 1.0
|
|
17
|
+
|
|
18
|
+
# Clear and prepare
|
|
19
|
+
Hide
|
|
20
|
+
Type "clear"
|
|
21
|
+
Enter
|
|
22
|
+
Sleep 500ms
|
|
23
|
+
Show
|
|
24
|
+
|
|
25
|
+
# Intro
|
|
26
|
+
Type "# 🧠 ebade - The Agent-First Framework"
|
|
27
|
+
Enter
|
|
28
|
+
Sleep 1.2s
|
|
29
|
+
|
|
30
|
+
Type "# Scaffold a full SaaS Dashboard in seconds..."
|
|
31
|
+
Enter
|
|
32
|
+
Sleep 1.5s
|
|
33
|
+
|
|
34
|
+
# The magic command with npx
|
|
35
|
+
Type "npx ebade scaffold examples/saas-dashboard.ebade.yaml ./output/demo"
|
|
36
|
+
Sleep 500ms
|
|
37
|
+
Enter
|
|
38
|
+
|
|
39
|
+
# Wait for CLI output (ASCII logo + spinners + summary)
|
|
40
|
+
Sleep 10s
|
|
41
|
+
|
|
42
|
+
# Show generated file
|
|
43
|
+
Type ""
|
|
44
|
+
Enter
|
|
45
|
+
Sleep 500ms
|
|
46
|
+
|
|
47
|
+
Type "head -12 output/demo/AnalyticsHQ/app/page.tsx"
|
|
48
|
+
Enter
|
|
49
|
+
Sleep 4s
|
|
50
|
+
|
|
51
|
+
# Final tagline
|
|
52
|
+
Type ""
|
|
53
|
+
Enter
|
|
54
|
+
Type "# ✅ 51 files. ~70% fewer tokens. In 0.1s."
|
|
55
|
+
Enter
|
|
56
|
+
Sleep 500ms
|
|
57
|
+
Type "# 🌱 Green AI. Kind to Earth."
|
|
58
|
+
Enter
|
|
59
|
+
Sleep 500ms
|
|
60
|
+
Type "# → ebade.dev"
|
|
61
|
+
Enter
|
|
62
|
+
|
|
63
|
+
Sleep 3s
|