phewsh 0.15.22 → 0.15.23

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.
@@ -1086,7 +1086,7 @@ async function main() {
1086
1086
  if (global._phewshChildren) {
1087
1087
  global._phewshChildren.forEach(c => { try { c.kill(); } catch {} });
1088
1088
  }
1089
- console.log('');
1089
+ try { require('../lib/intro').farewell(); } catch { /* sign-off is a nicety */ }
1090
1090
  console.log(` ${sage('session ended · ' + turns + ' exchanges · ' + (totalPromptTokens + totalCompletionTokens) + ' tokens')}`);
1091
1091
  if (decisionsThisSession > 0) {
1092
1092
  const stillPending = pendingDecisions().length;
package/lib/intro.js CHANGED
@@ -28,6 +28,25 @@ const FACE = [
28
28
  ' ███ ███',
29
29
  ];
30
30
 
31
+ // The shush mark (🤫) — rasterized from assets/shh.svg, same 30×14 grid.
32
+ // Bookends the session: phew opens it, shh signs off.
33
+ const SHH = [
34
+ ' ██ ███',
35
+ ' ██ █',
36
+ ' █ █',
37
+ ' █ ███ ███ █',
38
+ ' █ █',
39
+ '█ ██ █',
40
+ '█ █ █ █',
41
+ '█ █ █',
42
+ ' █ █',
43
+ ' █ █ █ █',
44
+ ' █ █ ██ █ █ █',
45
+ ' █ █ █ █',
46
+ ' ██ █ ██',
47
+ ' ██ █',
48
+ ];
49
+
31
50
  const LOGO = ['█▀█ █░█ █▀▀ █░█ █▀ █░█', '█▀▀ █▀█ ██▄ ▀▄▀ ▄█ █▀█'];
32
51
 
33
52
  function sleep(ms) { return new Promise((r) => setTimeout(r, ms)); }
@@ -80,4 +99,13 @@ async function playIntro(opts = {}) {
80
99
  return { toolsFound: harnesses.length };
81
100
  }
82
101
 
83
- module.exports = { playIntro, LOGO, FACE };
102
+ // Quiet sign-off the shush mark, printed static (no animation; exit is instant).
103
+ function farewell(opts = {}) {
104
+ const { out = console.log } = opts;
105
+ const { slate } = ui;
106
+ out('');
107
+ for (const line of SHH) out(` ${slate(line)}`);
108
+ out('');
109
+ }
110
+
111
+ module.exports = { playIntro, farewell, LOGO, FACE, SHH };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phewsh",
3
- "version": "0.15.22",
3
+ "version": "0.15.23",
4
4
  "description": "Turn intent into action. Structure your thinking, execute your next step.",
5
5
  "bin": {
6
6
  "phewsh": "bin/phewsh.js"