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.
Files changed (3) hide show
  1. package/bin/phewsh.js +1 -1
  2. package/lib/ui.js +12 -77
  3. 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(` ${d('๐Ÿ˜ฎ\u200d๐Ÿ’จ')} ${d('๐Ÿคซ')}`);
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 animation โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
84
- // This is the first thing you see. It should feel like a breath.
85
- // Inhale (pause) โ†’ exhale (particles expand) โ†’ settle (logo forms) โ†’ calm.
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
- if (fast) {
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
- await sleep(150);
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 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phewsh",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Turn intent into action. Structure your thinking, execute your next step.",
5
5
  "bin": {
6
6
  "phewsh": "bin/phewsh.js"