spec-driven-agility 0.4.0 → 0.5.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/package.json +1 -1
- package/src/animation.js +15 -1
package/package.json
CHANGED
package/src/animation.js
CHANGED
|
@@ -77,7 +77,15 @@ const COLOR = {
|
|
|
77
77
|
'█': '\x1b[38;5;40m',
|
|
78
78
|
};
|
|
79
79
|
const PROMPT_COLOR = '\x1b[38;5;28m';
|
|
80
|
-
const PROMPT = '
|
|
80
|
+
const PROMPT = ' Press ENTER to continue... ';
|
|
81
|
+
|
|
82
|
+
// Panel a la derecha de la planta.
|
|
83
|
+
const PANEL_GAP = ' ';
|
|
84
|
+
const PANEL = {
|
|
85
|
+
6: { text: 'Spec Driven Agility', color: '\x1b[1m\x1b[38;5;40m' },
|
|
86
|
+
8: { text: 'Injecting commands and skills', color: '\x1b[38;5;34m' },
|
|
87
|
+
9: { text: 'into the repository root.', color: '\x1b[38;5;34m' },
|
|
88
|
+
};
|
|
81
89
|
|
|
82
90
|
function sleep(ms) {
|
|
83
91
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -104,6 +112,12 @@ function lineFor(y, phase) {
|
|
|
104
112
|
else ch = (x + y + phase) % 2 === 0 ? '█' : '▓';
|
|
105
113
|
out += COLOR[ch] + ch + RESET;
|
|
106
114
|
}
|
|
115
|
+
|
|
116
|
+
const panel = PANEL[y];
|
|
117
|
+
if (panel) {
|
|
118
|
+
out += `${PANEL_GAP}${panel.color}${panel.text}${RESET}`;
|
|
119
|
+
}
|
|
120
|
+
|
|
107
121
|
return out;
|
|
108
122
|
}
|
|
109
123
|
|