@slamb2k/mad-skills 2.0.54 → 2.0.55
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/.claude-plugin/plugin.json +1 -1
- package/hooks/lib/banner.cjs +48 -15
- package/package.json +1 -1
- package/skills/manifest.json +1 -1
package/hooks/lib/banner.cjs
CHANGED
|
@@ -2,28 +2,61 @@
|
|
|
2
2
|
|
|
3
3
|
const config = require('./config.cjs');
|
|
4
4
|
|
|
5
|
+
// Unicode banner (Delta Corps Priest 1) — used when the terminal supports UTF-8.
|
|
5
6
|
// prettier-ignore
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
7
|
+
const BANNER_UNICODE = [
|
|
8
|
+
" ▄▄▄▄███▄▄▄▄ ▄████████ ████████▄",
|
|
9
|
+
"▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ▀███",
|
|
10
|
+
"███ ███ ███ ███ ███ ███ ███",
|
|
11
|
+
"███ ███ ███ ███ ███ ███ ███",
|
|
12
|
+
"███ ███ ███ ▀███████████ ███ ███",
|
|
13
|
+
"███ ███ ███ ███ ███ ███ ███",
|
|
14
|
+
"███ ███ ███ ███ ███ ███ ▄███",
|
|
15
|
+
" ▀█ ███ █▀ ███ █▀ ████████▀",
|
|
16
|
+
"",
|
|
17
|
+
" ▄████████ ▄█ ▄█▄ ▄█ ▄█ ▄█ ▄████████",
|
|
18
|
+
" ███ ███ ███ ▄███▀ ███ ███ ███ ███ ███",
|
|
19
|
+
" ███ █▀ ███▐██▀ ███▌ ███ ███ ███ █▀",
|
|
20
|
+
" ███ ▄█████▀ ███▌ ███ ███ ███",
|
|
21
|
+
"▀███████████ ▀▀█████▄ ███▌ ███ ███ ▀███████████",
|
|
22
|
+
" ███ ███▐██▄ ███ ███ ███ ███",
|
|
23
|
+
" ▄█ ███ ███ ▀███▄ ███ ███▌ ▄ ███▌ ▄ ▄█ ███",
|
|
24
|
+
" ▄████████▀ ███ ▀█▀ █▀ █████▄▄██ █████▄▄██ ▄████████▀",
|
|
25
|
+
" ▀ ▀ ▀",
|
|
16
26
|
];
|
|
17
27
|
|
|
18
|
-
|
|
28
|
+
// ASCII fallback (Rowan Cap) — used when the terminal locale is not UTF-8.
|
|
29
|
+
// prettier-ignore
|
|
30
|
+
const BANNER_ASCII = [
|
|
31
|
+
" dMMMMMMMMb .aMMMb dMMMMb",
|
|
32
|
+
" dMP\"dMP\"dMP dMP\"dMP dMP VMP",
|
|
33
|
+
" dMP dMP dMP dMMMMMP dMP dMP",
|
|
34
|
+
" dMP dMP dMP dMP dMP dMP.aMP",
|
|
35
|
+
"dMP dMP dMP dMP dMP dMMMMP\"",
|
|
36
|
+
"",
|
|
37
|
+
" .dMMMb dMP dMP dMP dMP dMP .dMMMb",
|
|
38
|
+
" dMP\" VP dMP.dMP amr dMP dMP dMP\" VP",
|
|
39
|
+
" VMMMb dMMMMK\" dMP dMP dMP VMMMb",
|
|
40
|
+
"dP .dMP dMP\"AMF dMP dMP dMP dP .dMP",
|
|
41
|
+
"VMMMP\" dMP dMP dMP dMMMMMP dMMMMMP VMMMP\"",
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
// True when the terminal locale advertises UTF-8, so box-drawing glyphs render.
|
|
45
|
+
function supportsUnicode() {
|
|
46
|
+
const locale = process.env.LC_ALL || process.env.LC_CTYPE || process.env.LANG || '';
|
|
47
|
+
return /utf-?8/i.test(locale);
|
|
48
|
+
}
|
|
19
49
|
|
|
20
50
|
function getBanner() {
|
|
51
|
+
const unicode = supportsUnicode();
|
|
52
|
+
const lines = unicode ? BANNER_UNICODE : BANNER_ASCII;
|
|
53
|
+
const separator = (unicode ? '─' : '-').repeat(70);
|
|
21
54
|
return [
|
|
22
|
-
...
|
|
23
|
-
|
|
55
|
+
...lines,
|
|
56
|
+
separator,
|
|
24
57
|
` Session Guard v${config.version}`,
|
|
25
|
-
|
|
58
|
+
separator,
|
|
26
59
|
].join('\n');
|
|
27
60
|
}
|
|
28
61
|
|
|
29
|
-
module.exports = { getBanner, BANNER_MARKER: '
|
|
62
|
+
module.exports = { getBanner, supportsUnicode, BANNER_MARKER: 'Session Guard' };
|
package/package.json
CHANGED
package/skills/manifest.json
CHANGED