phewsh 0.14.0 โ 0.14.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/bin/phewsh.js +1 -1
- package/lib/ui.js +12 -77
- package/package.json +1 -1
package/bin/phewsh.js
CHANGED
|
@@ -26,7 +26,7 @@ function showBrand() {
|
|
|
26
26
|
} catch { /* no config */ }
|
|
27
27
|
|
|
28
28
|
console.log('');
|
|
29
|
-
console.log(
|
|
29
|
+
console.log(' ๐ฎ\u200d๐จ ๐คซ');
|
|
30
30
|
console.log('');
|
|
31
31
|
console.log(` ${b(w('โโโ โโโ โโโ โโโ โโ โโโ'))}`);
|
|
32
32
|
console.log(` ${b(w('โโโ โโโ โโโ โโโ โโ โโโ'))}`);
|
package/lib/ui.js
CHANGED
|
@@ -80,87 +80,22 @@ function spinner(text = 'thinking', style = 'exhale') {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
// โโ The Exhale: signature brand
|
|
84
|
-
//
|
|
85
|
-
//
|
|
83
|
+
// โโ The Exhale: signature brand reveal โโโโโโโโโโโโโโโโโโโ
|
|
84
|
+
// Crisp over clever: plain prints with a breath of timing. No in-place
|
|
85
|
+
// rewrites, no cursor tricks, no dim-wrapped emoji โ those are exactly
|
|
86
|
+
// what render as grey boxes and artifacts across terminals. Every line
|
|
87
|
+
// lands once and stays put.
|
|
86
88
|
async function brandReveal(fast = false) {
|
|
87
|
-
|
|
88
|
-
console.log('');
|
|
89
|
-
console.log(` ${d('๐ฎ\u200d๐จ')} ${d('๐คซ')}`);
|
|
90
|
-
console.log('');
|
|
91
|
-
console.log(` ${b(cream('โโโ โโโ โโโ โโโ โโ โโโ'))}`);
|
|
92
|
-
console.log(` ${b(cream('โโโ โโโ โโโ โโโ โโ โโโ'))}`);
|
|
93
|
-
console.log('');
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
process.stdout.write(hide);
|
|
98
|
-
|
|
99
|
-
// Phase 1: The inhale โ brief stillness
|
|
100
|
-
console.log('');
|
|
101
|
-
await sleep(200);
|
|
102
|
-
|
|
103
|
-
// Phase 2: The exhale โ particles drift outward
|
|
104
|
-
const exhaleStages = [
|
|
105
|
-
' ยท',
|
|
106
|
-
' ยท ยท ยท',
|
|
107
|
-
' ยท ยท ยท ยท',
|
|
108
|
-
' ยท ยท ยท ยท ยท',
|
|
109
|
-
' ยท ยท ยท ยท ยท',
|
|
110
|
-
];
|
|
111
|
-
|
|
112
|
-
for (const stage of exhaleStages) {
|
|
113
|
-
process.stdout.write(`${clearLine} ${slate(stage)}`);
|
|
114
|
-
await sleep(70);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// Phase 3: Particles converge into the emoji
|
|
118
|
-
await sleep(100);
|
|
119
|
-
process.stdout.write(`${clearLine}`);
|
|
120
|
-
console.log(` ${d('๐ฎ\u200d๐จ')} ${d('๐คซ')}`);
|
|
89
|
+
const pause = (ms) => fast ? Promise.resolve() : sleep(ms);
|
|
121
90
|
console.log('');
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
// Phase 4: Logo wave โ each letter block appears left to right
|
|
125
|
-
const logoTop = ['โโโ', 'โโโ', 'โโโ', 'โโโ', 'โโ', 'โโโ'];
|
|
126
|
-
const logoBot = ['โโโ', 'โโโ', 'โโโ', 'โโโ', 'โโ', 'โโโ'];
|
|
127
|
-
|
|
128
|
-
let topLine = ' ';
|
|
129
|
-
let botLine = ' ';
|
|
130
|
-
|
|
131
|
-
for (let i = 0; i < logoTop.length; i++) {
|
|
132
|
-
topLine += cream(logoTop[i]) + ' ';
|
|
133
|
-
botLine += cream(logoBot[i]) + ' ';
|
|
134
|
-
|
|
135
|
-
// Overwrite both lines
|
|
136
|
-
if (i === 0) {
|
|
137
|
-
process.stdout.write(` ${b(topLine.trim())}`);
|
|
138
|
-
process.stdout.write('\n');
|
|
139
|
-
process.stdout.write(` ${b(botLine.trim())}`);
|
|
140
|
-
} else {
|
|
141
|
-
process.stdout.write(up(1));
|
|
142
|
-
process.stdout.write(`${clearLine} ${b(topLine.trim())}`);
|
|
143
|
-
process.stdout.write('\n');
|
|
144
|
-
process.stdout.write(`${clearLine} ${b(botLine.trim())}`);
|
|
145
|
-
}
|
|
146
|
-
await sleep(55);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
process.stdout.write('\n');
|
|
150
|
-
await sleep(100);
|
|
151
|
-
|
|
152
|
-
// Phase 5: Tagline fades in โ dim โ sage โ cream
|
|
153
|
-
const tagline = '.intent/ is your project\'s working memory.';
|
|
154
|
-
process.stdout.write(` ${slate(tagline)}`);
|
|
155
|
-
await sleep(200);
|
|
156
|
-
process.stdout.write(`${clearLine} ${sage(tagline)}`);
|
|
157
|
-
await sleep(200);
|
|
158
|
-
process.stdout.write(`${clearLine} ${teal(tagline)}`);
|
|
159
|
-
await sleep(300);
|
|
160
|
-
|
|
91
|
+
console.log(` ๐ฎโ๐จ ๐คซ`);
|
|
161
92
|
console.log('');
|
|
93
|
+
await pause(160);
|
|
94
|
+
console.log(` ${b(cream('โโโ โโโ โโโ โโโ โโ โโโ'))}`);
|
|
95
|
+
console.log(` ${b(cream('โโโ โโโ โโโ โโโ โโ โโโ'))}`);
|
|
96
|
+
await pause(160);
|
|
97
|
+
console.log(` ${sage(".intent/ is your project's working memory.")}`);
|
|
162
98
|
console.log('');
|
|
163
|
-
process.stdout.write(show);
|
|
164
99
|
}
|
|
165
100
|
|
|
166
101
|
// โโ Status panel โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|