@decaf-ts/cli 0.4.4 → 0.4.6

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 (63) hide show
  1. package/README.md +1 -1
  2. package/dist/cli.cjs +1 -1
  3. package/dist/cli.cjs.map +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/cli.js.map +1 -1
  6. package/lib/CliWrapper.cjs +254 -91
  7. package/lib/CliWrapper.d.ts +32 -4
  8. package/lib/CliWrapper.js.map +1 -1
  9. package/lib/banners.cjs +394 -0
  10. package/lib/banners.d.ts +3 -0
  11. package/lib/banners.js.map +1 -0
  12. package/lib/demo/cli-module.cjs +9 -39
  13. package/lib/demo/cli-module.d.ts +0 -33
  14. package/lib/demo/cli-module.js.map +1 -1
  15. package/lib/environment.cjs +17 -0
  16. package/lib/environment.d.ts +17 -0
  17. package/lib/environment.js.map +1 -0
  18. package/lib/esm/CliWrapper.d.ts +32 -4
  19. package/lib/esm/CliWrapper.js +255 -92
  20. package/lib/esm/CliWrapper.js.map +1 -1
  21. package/lib/esm/banners.d.ts +3 -0
  22. package/lib/esm/banners.js +391 -0
  23. package/lib/esm/banners.js.map +1 -0
  24. package/lib/esm/demo/cli-module.d.ts +0 -33
  25. package/lib/esm/demo/cli-module.js +9 -39
  26. package/lib/esm/demo/cli-module.js.map +1 -1
  27. package/lib/esm/environment.d.ts +17 -0
  28. package/lib/esm/environment.js +11 -0
  29. package/lib/esm/environment.js.map +1 -0
  30. package/lib/esm/index.d.ts +1 -0
  31. package/lib/esm/index.js +1 -0
  32. package/lib/esm/index.js.map +1 -1
  33. package/lib/esm/logging.d.ts +3 -0
  34. package/lib/esm/logging.js +16 -0
  35. package/lib/esm/logging.js.map +1 -0
  36. package/lib/esm/slogans.d.ts +40 -0
  37. package/lib/esm/slogans.js +142 -0
  38. package/lib/esm/slogans.js.map +1 -0
  39. package/lib/esm/utils-module/cli-module.d.ts +2 -0
  40. package/lib/esm/utils-module/cli-module.js +77 -0
  41. package/lib/esm/utils-module/cli-module.js.map +1 -0
  42. package/lib/esm/utils.js +1 -1
  43. package/lib/esm/utils.js.map +1 -1
  44. package/lib/esm/version.d.ts +1 -1
  45. package/lib/esm/version.js +1 -1
  46. package/lib/index.cjs +1 -0
  47. package/lib/index.d.ts +1 -0
  48. package/lib/index.js.map +1 -1
  49. package/lib/logging.cjs +19 -0
  50. package/lib/logging.d.ts +3 -0
  51. package/lib/logging.js.map +1 -0
  52. package/lib/slogans.cjs +150 -0
  53. package/lib/slogans.d.ts +40 -0
  54. package/lib/slogans.js.map +1 -0
  55. package/lib/utils-module/cli-module.cjs +83 -0
  56. package/lib/utils-module/cli-module.d.ts +2 -0
  57. package/lib/utils-module/cli-module.js.map +1 -0
  58. package/lib/utils.cjs +1 -1
  59. package/lib/utils.js.map +1 -1
  60. package/lib/version.cjs +1 -1
  61. package/lib/version.d.ts +1 -1
  62. package/package.json +3 -2
  63. package/workdocs/assets/slogans.json +194 -0
@@ -0,0 +1,391 @@
1
+ /* eslint-disable no-useless-escape */
2
+ export const mainBanner = "";
3
+ export const banners = [
4
+ // 1. Standard Block
5
+ `
6
+ ____ _____ ____ _ _____ _____ ____
7
+ | _ \\| ____/ ___| / \\ | ___| |_ _/ ___|
8
+ | | | | _|| | / _ \\ | |_ | | \\___ \\
9
+ | |_| | |__| |___ / ___ \\| _| | | ___) |
10
+ |____/|_____\\____/_/ \\_\\_| |_| |____/
11
+ `,
12
+ // 2. Slant
13
+ `
14
+ ____ __ ______
15
+ / __ \\___ _________ _/ __/_ __/____
16
+ / / / / _ \\/ ___/ __ \`/ /_ / / / ___/
17
+ / /_/ / __/ /__/ /_/ / __/ / / (__ )
18
+ /_____/\\___/\\___/\\__,_/_/ /_/ /____/
19
+ `,
20
+ // 3. ANSI Shadow
21
+ `
22
+ ██████╗ ███████╗ ██████╗ █████╗ ███████╗ ████████╗███████╗
23
+ ██╔══██╗██╔════╝██╔════╝██╔══██╗██╔════╝ ╚══██╔══╝██╔════╝
24
+ ██║ ██║█████╗ ██║ ███████║█████╗ ██║ ███████╗
25
+ ██║ ██║██╔══╝ ██║ ██╔══██║██╔══╝ ██║ ╚════██║
26
+ ██████╔╝███████╗╚██████╗██║ ██║██║ ██║ ███████║
27
+ ╚═════╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝
28
+ `,
29
+ // 4. Small Slant
30
+ `
31
+ ___ __ ______
32
+ / _ \\___ _______ _/ _/ /_ __/
33
+ / // / -_) __/ _ \`/ _/ / /
34
+ /____/\\__/\\__/\\_,_/_/ /_/
35
+ `,
36
+ // 5. Bubble
37
+ `
38
+ _ _ _ _ _ _ _
39
+ / \\ / \\ / \\ / \\ / \\ / \\ / \\
40
+ ( D | e | c | a | f ) ( T | S )
41
+ \\_/ \\_/ \\_/ \\_/ \\_/ \\_/ \\_/
42
+ `,
43
+ // 6. Digital
44
+ `
45
+ +--+--+--+--+--+ +--+--+
46
+ |D |e |c |a |f | |T |S |
47
+ +--+--+--+--+--+ +--+--+
48
+ `,
49
+ // 7. Star Wars
50
+ `
51
+ .______ _______ ______ ___ _______ .___________. _______
52
+ | _ \\ | ____| / | / \\ | ____| | | / |
53
+ | | | | | |__ | ,----' / ^ \\ | |__ \`---| |----\` | (----\`
54
+ | | | | | __| | | / /_\\ \\ | __| | | \\ \\
55
+ | \`--' | | |____ | \`----./ _____ \\ | | | | .----) |
56
+ |_______/ |_______| \\______/__/ \\__\\ |__| |__| |_______/
57
+ `,
58
+ // 8. Lean
59
+ `
60
+ _/_/_/ _/_/_/ _/_/_/_/_/ _/_/_/
61
+ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/ _/
62
+ _/ _/ _/_/_/_/ _/ _/ _/ _/ _/_/_/ _/ _/_/
63
+ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
64
+ _/_/_/ _/_/_/ _/_/_/ _/_/_/ _/ _/ _/_/_/
65
+ `,
66
+ // 9. Doom
67
+ `
68
+ ______ __ _____ _____
69
+ | _ \\ / _| |_ _/ ___|
70
+ | | | |___ ___ __ _ ___| |_ | | \\ \`--.
71
+ | | | / _ \\/ __/ _\` |/ _ \\ _| | | \`--. \\
72
+ | |/ / __/ (_| (_| | __/ | | | /\\__/ /
73
+ |___/ \\___|\\___\\__,_|\\___|_| \\_/ \\____/
74
+ `,
75
+ // 10. Isometric
76
+ `
77
+ ___ ___ ___ ___ ___ ___ ___
78
+ /\\ \\ /\\ \\ /\\ \\ /\\ \\ /\\ \\ /\\ \\ /\\ \\
79
+ /::\\ \\ /::\\ \\ /::\\ \\ /::\\ \\ /::\\ \\ \\:\\ \\ /::\\ \\
80
+ /:/\\:\\ \\ /:/\\:\\ \\ /:/\\:\\ \\ /:/\\:\\ \\ /:/\\:\\ \\ \\:\\ \\ /:/\\ \\ \\
81
+ /:/ \\:\\__\\ /::\\~\\:\\ \\ /:/ \\:\\ \\ /::\\~\\:\\ \\ /::\\~\\:\\ \\ /::\\ \\ _\\:\\~\\ \\ \\
82
+ /:/__/ \\:|__| /:/\\:\\ \\:\\__\\ /:/__/ \\:\\__\\ /:/\\:\\ \\:\\__\\ /:/\\:\\ \\:\\__\\ /:/\\:\\__\\ /\\ \\:\\ \\ \\__\\
83
+ \\:\\ \\ /:/ / \\:\\~\\:\\ \\/__/ \\:\\ \\ \\/__/ \\/__\\:\\/:/ / \\:\\~\\:\\ \\/__/ /:/ \\/__/ \\:\\ \\:\\ \\/__/
84
+ \\:\\ /:/ / \\:\\ \\:\\__\\ \\:\\ \\ \\::/ / \\:\\ \\:\\__\\ /:/ / \\:\\ \\:\\__\\
85
+ \\:\\/:/ / \\:\\ \\/__/ \\:\\ \\ /:/ / \\:\\ \\/__/ \\/__/ \\:\\/:/ /
86
+ \\::/__/ \\:\\__\\ \\:\\__\\ /:/ / \\:\\__\\ \\::/ /
87
+ ~~ \\/__/ \\/__/ \\/__/ \\/__/ \\/__/
88
+ `,
89
+ // 11. Banner3
90
+ `
91
+ ######## ######## ###### ### ######## ######## ######
92
+ ## ## ## ## ## ## ## ## ## ## ##
93
+ ## ## ## ## ## ## ## ## ##
94
+ ## ## ###### ## ## ## ###### ####### ## ######
95
+ ## ## ## ## ######### ## ## ##
96
+ ## ## ## ## ## ## ## ## ## ## ##
97
+ ######## ######## ###### ## ## ## ## ######
98
+ `,
99
+ // 12. Big
100
+ `
101
+ _____ __ _______ _____
102
+ | __ \ / _| |__ __/ ____|
103
+ | | | | ___ ___ __ _| |_ ______| | | (___
104
+ | | | |/ _ \/ __/ _\` | _|______| | \___ \
105
+ | |__| | __/ (_| (_| | | | | ____) |
106
+ |_____/ \___|\___\__,_|_| |_| |_____/
107
+
108
+
109
+ `,
110
+ // 13. Soft
111
+ `
112
+
113
+ ,------. ,---. ,--------. ,---.
114
+ | .-. \ ,---. ,---. ,--,--./ .-',-----.'--. .--'' .-'
115
+ | | \ :| .-. :| .--'' ,-. || \`-,'-----' | | \`. \`-.
116
+ | '--' /\ --.\ \`--.\ '-' || .-' | | .-' |
117
+ \`-------' \`----' \`---' \`--\`--'\`--' \`--' \`-----'
118
+
119
+ `,
120
+ // 14. Doh
121
+ `
122
+
123
+
124
+ DDDDDDDDDDDDD ffffffffffffffff TTTTTTTTTTTTTTTTTTTTTTT SSSSSSSSSSSSSSS
125
+ D::::::::::::DDD f::::::::::::::::f T:::::::::::::::::::::T SS:::::::::::::::S
126
+ D:::::::::::::::DD f::::::::::::::::::f T:::::::::::::::::::::TS:::::SSSSSS::::::S
127
+ DDD:::::DDDDD:::::D f::::::fffffff:::::f T:::::TT:::::::TT:::::TS:::::S SSSSSSS
128
+ D:::::D D:::::D eeeeeeeeeeee cccccccccccccccc aaaaaaaaaaaaa f:::::f ffffff TTTTTT T:::::T TTTTTTS:::::S
129
+ D:::::D D:::::D ee::::::::::::ee cc:::::::::::::::c a::::::::::::a f:::::f T:::::T S:::::S
130
+ D:::::D D:::::D e::::::eeeee:::::ee c:::::::::::::::::c aaaaaaaaa:::::a f:::::::ffffff T:::::T S::::SSSS
131
+ D:::::D D:::::De::::::e e:::::ec:::::::cccccc:::::c a::::a f::::::::::::f --------------- T:::::T SS::::::SSSSS
132
+ D:::::D D:::::De:::::::eeeee::::::ec::::::c ccccccc aaaaaaa:::::a f::::::::::::f -:::::::::::::- T:::::T SSS::::::::SS
133
+ D:::::D D:::::De:::::::::::::::::e c:::::c aa::::::::::::a f:::::::ffffff --------------- T:::::T SSSSSS::::S
134
+ D:::::D D:::::De::::::eeeeeeeeeee c:::::c a::::aaaa::::::a f:::::f T:::::T S:::::S
135
+ D:::::D D:::::D e:::::::e c::::::c ccccccca::::a a:::::a f:::::f T:::::T S:::::S
136
+ DDD:::::DDDDD:::::D e::::::::e c:::::::cccccc:::::ca::::a a:::::a f:::::::f TT:::::::TT SSSSSSS S:::::S
137
+ D:::::::::::::::DD e::::::::eeeeeeee c:::::::::::::::::ca:::::aaaa::::::a f:::::::f T:::::::::T S::::::SSSSSS:::::S
138
+ D::::::::::::DDD ee:::::::::::::e cc:::::::::::::::c a::::::::::aa:::af:::::::f T:::::::::T S:::::::::::::::SS
139
+ DDDDDDDDDDDDD eeeeeeeeeeeeee cccccccccccccccc aaaaaaaaaa aaaafffffffff TTTTTTTTTTT SSSSSSSSSSSSSSS
140
+
141
+
142
+ `,
143
+ // 15. Cybermedium
144
+ `
145
+ ___ ____ ____ ____ ____ ___ ____
146
+ | \ |___ | |__| |___ __ | [__
147
+ |__/ |___ |___ | | | | ___]
148
+
149
+ `,
150
+ // 17. Roman
151
+ `
152
+ oooooooooo. .o88o. ooooooooooooo
153
+ \`888' \`Y8b 888 \`" 8' 888 \`8 .oooooo..o
154
+ 888 888 .ooooo. .ooooo. .oooo. o888oo 888 d8P' \`Y8
155
+ 888 888 d88' \`88b d88' \`"Y8 \`P )88b 888 888 Y88bo.
156
+ 888 888 888ooo888 888 .oP"888 888 8888888 888 \`"Y8888o.
157
+ 888 d88' 888 .o 888 .o8 d8( 888 888 888 \`"Y88b
158
+ o888bood8P' \`Y8bod8P' \`Y8bod8P' \`Y888""8o o888o o888o oo .d8P
159
+ `,
160
+ // 18. Slant Relief
161
+ `
162
+ __/\\\\\\\\\\\\________________________________________________________/\\\\\________________/\\\\\\\\\\\\\\\_____/\\\\\\\\\\\___
163
+ _\/\\\////////\\\____________________________________________________/\\\///________________\///////\\\/////____/\\\/////////\\\_
164
+ _\/\\\______\//\\\__________________________________________________/\\\__________________________\/\\\________\//\\\______\///__
165
+ _\/\\\_______\/\\\_____/\\\\\\\\______/\\\\\\\\__/\\\\\\\\\______/\\\\\\\\\____/\\\\\\\\\\\_______\/\\\_________\////\\\_________
166
+ _\/\\\_______\/\\\___/\\\/////\\\___/\\\//////__\////////\\\____\////\\\//____\///////////________\/\\\____________\////\\\______
167
+ _\/\\\_______\/\\\__/\\\\\\\\\\\___/\\\___________/\\\\\\\\\\______\/\\\__________________________\/\\\_______________\////\\\___
168
+ _\/\\\_______/\\\__\//\\///////___\//\\\_________/\\\/////\\\______\/\\\__________________________\/\\\________/\\\______\//\\\__
169
+ _\/\\\\\\\\\\\\/____\//\\\\\\\\\\__\///\\\\\\\\_\//\\\\\\\\/\\_____\/\\\__________________________\/\\\_______\///\\\\\\\\\\\/___
170
+ _\////////////_______\//////////_____\////////___\////////\//______\///___________________________\///__________\///////////_____
171
+ `,
172
+ // 19. Banner4
173
+ `
174
+ .########..########..######.....###....########.........########..######.
175
+ .##.....##.##.......##....##...##.##...##..................##....##....##
176
+ .##.....##.##.......##........##...##..##..................##....##......
177
+ .##.....##.######...##.......##.....##.######...#######....##.....######.
178
+ .##.....##.##.......##.......#########.##..................##..........##
179
+ .##.....##.##.......##....##.##.....##.##..................##....##....##
180
+ .########..########..######..##.....##.##..................##.....######.
181
+ `,
182
+ // 20. Future
183
+ `
184
+ ╺┳┓┏━╸┏━╸┏━┓┏━╸ ╺┳╸┏━┓
185
+ ┃┃┣╸ ┃ ┣━┫┣╸ ╺━╸ ┃ ┗━┓
186
+ ╺┻┛┗━╸┗━╸╹ ╹╹ ╹ ┗━┛
187
+ `,
188
+ ];
189
+ export const colorPalettes = {
190
+ sunset: [
191
+ "\x1b[38;5;215m", // soft orange
192
+ "\x1b[38;5;209m", // coral
193
+ "\x1b[38;5;205m", // pink
194
+ "\x1b[38;5;210m", // peachy
195
+ "\x1b[38;5;217m", // salmon
196
+ "\x1b[38;5;216m", // light coral
197
+ "\x1b[38;5;224m", // light peach
198
+ "\x1b[38;5;230m", // soft cream
199
+ ],
200
+ ocean: [
201
+ "\x1b[38;5;27m", // blue
202
+ "\x1b[38;5;33m", // dodger blue
203
+ "\x1b[38;5;39m", // deep sky blue
204
+ "\x1b[38;5;45m", // light blue
205
+ "\x1b[38;5;51m", // cyan
206
+ "\x1b[38;5;87m", // aqua
207
+ "\x1b[38;5;123m", // pale cyan
208
+ "\x1b[38;5;159m", // pale turquoise
209
+ ],
210
+ forest: [
211
+ "\x1b[38;5;22m", // dark green
212
+ "\x1b[38;5;28m", // green
213
+ "\x1b[38;5;34m", // forest green
214
+ "\x1b[38;5;40m", // lime green
215
+ "\x1b[38;5;46m", // lime
216
+ "\x1b[38;5;82m", // chartreuse
217
+ "\x1b[38;5;118m", // bright green
218
+ "\x1b[38;5;154m", // pale green
219
+ ],
220
+ fire: [
221
+ "\x1b[38;5;196m", // red
222
+ "\x1b[38;5;202m", // orange red
223
+ "\x1b[38;5;208m", // dark orange
224
+ "\x1b[38;5;214m", // orange
225
+ "\x1b[38;5;220m", // gold
226
+ "\x1b[38;5;226m", // yellow
227
+ "\x1b[38;5;228m", // light yellow
228
+ "\x1b[38;5;230m", // cream
229
+ ],
230
+ neon: [
231
+ "\x1b[38;5;198m", // hot pink
232
+ "\x1b[38;5;207m", // medium orchid
233
+ "\x1b[38;5;219m", // plum
234
+ "\x1b[38;5;123m", // cyan
235
+ "\x1b[38;5;51m", // bright cyan
236
+ "\x1b[38;5;46m", // neon green
237
+ "\x1b[38;5;226m", // neon yellow
238
+ "\x1b[38;5;201m", // magenta
239
+ ],
240
+ monochrome: [
241
+ "\x1b[38;5;232m", // black
242
+ "\x1b[38;5;236m", // dark gray
243
+ "\x1b[38;5;240m", // gray
244
+ "\x1b[38;5;244m", // light gray
245
+ "\x1b[38;5;248m", // silver
246
+ "\x1b[38;5;252m", // white smoke
247
+ "\x1b[38;5;255m", // white
248
+ "\x1b[38;5;250m", // gray
249
+ ],
250
+ pastel: [
251
+ "\x1b[38;5;217m", // pastel pink
252
+ "\x1b[38;5;223m", // pastel orange
253
+ "\x1b[38;5;229m", // pastel yellow
254
+ "\x1b[38;5;157m", // pastel green
255
+ "\x1b[38;5;159m", // pastel cyan
256
+ "\x1b[38;5;189m", // pastel blue
257
+ "\x1b[38;5;183m", // pastel purple
258
+ "\x1b[38;5;225m", // pastel magenta
259
+ ],
260
+ cyberpunk: [
261
+ "\x1b[38;5;201m", // magenta
262
+ "\x1b[38;5;198m", // deep pink
263
+ "\x1b[38;5;165m", // purple
264
+ "\x1b[38;5;93m", // purple blue
265
+ "\x1b[38;5;51m", // cyan
266
+ "\x1b[38;5;45m", // light blue
267
+ "\x1b[38;5;21m", // blue
268
+ "\x1b[38;5;226m", // yellow
269
+ ],
270
+ earth: [
271
+ "\x1b[38;5;94m", // brown
272
+ "\x1b[38;5;130m", // dark orange
273
+ "\x1b[38;5;136m", // gold
274
+ "\x1b[38;5;100m", // olive
275
+ "\x1b[38;5;58m", // dark olive
276
+ "\x1b[38;5;22m", // dark green
277
+ "\x1b[38;5;137m", // rosy brown
278
+ "\x1b[38;5;180m", // tan
279
+ ],
280
+ rainbow: [
281
+ "\x1b[38;5;196m", // red
282
+ "\x1b[38;5;208m", // orange
283
+ "\x1b[38;5;226m", // yellow
284
+ "\x1b[38;5;46m", // green
285
+ "\x1b[38;5;21m", // blue
286
+ "\x1b[38;5;57m", // indigo
287
+ "\x1b[38;5;129m", // violet
288
+ "\x1b[38;5;201m", // magenta
289
+ ],
290
+ aurora: [
291
+ "\x1b[38;5;57m",
292
+ "\x1b[38;5;93m",
293
+ "\x1b[38;5;111m",
294
+ "\x1b[38;5;147m",
295
+ "\x1b[38;5;183m",
296
+ "\x1b[38;5;189m",
297
+ "\x1b[38;5;195m",
298
+ "\x1b[38;5;201m",
299
+ ],
300
+ dusk: [
301
+ "\x1b[38;5;17m",
302
+ "\x1b[38;5;18m",
303
+ "\x1b[38;5;19m",
304
+ "\x1b[38;5;20m",
305
+ "\x1b[38;5;53m",
306
+ "\x1b[38;5;54m",
307
+ "\x1b[38;5;55m",
308
+ "\x1b[38;5;57m",
309
+ ],
310
+ electric: [
311
+ "\x1b[38;5;45m",
312
+ "\x1b[38;5;51m",
313
+ "\x1b[38;5;63m",
314
+ "\x1b[38;5;75m",
315
+ "\x1b[38;5;81m",
316
+ "\x1b[38;5;87m",
317
+ "\x1b[38;5;93m",
318
+ "\x1b[38;5;99m",
319
+ ],
320
+ mint: [
321
+ "\x1b[38;5;85m",
322
+ "\x1b[38;5;118m",
323
+ "\x1b[38;5;121m",
324
+ "\x1b[38;5;125m",
325
+ "\x1b[38;5;149m",
326
+ "\x1b[38;5;153m",
327
+ "\x1b[38;5;187m",
328
+ "\x1b[38;5;190m",
329
+ ],
330
+ carnival: [
331
+ "\x1b[38;5;201m",
332
+ "\x1b[38;5;205m",
333
+ "\x1b[38;5;209m",
334
+ "\x1b[38;5;213m",
335
+ "\x1b[38;5;217m",
336
+ "\x1b[38;5;221m",
337
+ "\x1b[38;5;225m",
338
+ "\x1b[38;5;229m",
339
+ ],
340
+ saffron: [
341
+ "\x1b[38;5;208m",
342
+ "\x1b[38;5;214m",
343
+ "\x1b[38;5;220m",
344
+ "\x1b[38;5;226m",
345
+ "\x1b[38;5;190m",
346
+ "\x1b[38;5;184m",
347
+ "\x1b[38;5;178m",
348
+ "\x1b[38;5;172m",
349
+ ],
350
+ neonGlitch: [
351
+ "\x1b[38;5;205m",
352
+ "\x1b[38;5;209m",
353
+ "\x1b[38;5;213m",
354
+ "\x1b[38;5;219m",
355
+ "\x1b[38;5;225m",
356
+ "\x1b[38;5;231m",
357
+ "\x1b[38;5;237m",
358
+ "\x1b[38;5;243m",
359
+ ],
360
+ berry: [
361
+ "\x1b[38;5;161m",
362
+ "\x1b[38;5;165m",
363
+ "\x1b[38;5;169m",
364
+ "\x1b[38;5;173m",
365
+ "\x1b[38;5;177m",
366
+ "\x1b[38;5;181m",
367
+ "\x1b[38;5;185m",
368
+ "\x1b[38;5;189m",
369
+ ],
370
+ cosmic: [
371
+ "\x1b[38;5;18m",
372
+ "\x1b[38;5;21m",
373
+ "\x1b[38;5;57m",
374
+ "\x1b[38;5;93m",
375
+ "\x1b[38;5;129m",
376
+ "\x1b[38;5;165m",
377
+ "\x1b[38;5;201m",
378
+ "\x1b[38;5;207m",
379
+ ],
380
+ sunbeam: [
381
+ "\x1b[38;5;226m",
382
+ "\x1b[38;5;220m",
383
+ "\x1b[38;5;214m",
384
+ "\x1b[38;5;208m",
385
+ "\x1b[38;5;202m",
386
+ "\x1b[38;5;196m",
387
+ "\x1b[38;5;190m",
388
+ "\x1b[38;5;184m",
389
+ ],
390
+ };
391
+ //# sourceMappingURL=banners.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banners.js","sourceRoot":"","sources":["../../src/banners.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,CAAC;AAE7B,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,oBAAoB;IACpB;;;;;;CAMD;IACC,WAAW;IACX;;;;;;CAMD;IACC,iBAAiB;IACjB;;;;;;;CAOD;IACC,iBAAiB;IACjB;;;;;CAKD;IACC,YAAY;IACZ;;;;;CAKD;IACC,aAAa;IACb;;;;CAID;IACC,eAAe;IACf;;;;;;;CAOD;IACC,UAAU;IACV;;;;;;CAMD;IACC,UAAU;IACV;;;;;;;CAOD;IACC,gBAAgB;IAChB;;;;;;;;;;;;CAYD;IACC,cAAc;IACd;;;;;;;;GAQC;IAED,UAAU;IACV;;;;;;;;;GASC;IAED,WAAW;IACX;;;;;;;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,eAAe;QACf,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;KACjB;IACD,OAAO,EAAE;QACP,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;KACjB;CACF,CAAC"}
@@ -1,35 +1,2 @@
1
1
  import { Command } from "commander";
2
- /**
3
- * @description Demo CLI module for Decaf libraries
4
- * @summary A minimal implementation showing how to extend the Decaf CLI with custom commands.
5
- * This module demonstrates the pattern for creating CLI modules that can be discovered and loaded by the Decaf CLI.
6
- *
7
- * @return {Command} The Command object to be added to the main Decaf CLI
8
- *
9
- * @function demo
10
- * @memberOf module:CLI
11
- *
12
- * @example
13
- * // Run the demo command with an argument
14
- * npx decaf demo command "something something"
15
- *
16
- * // Output:
17
- * // executed demo command with type variable: something something
18
- *
19
- * @mermaid
20
- * sequenceDiagram
21
- * participant User
22
- * participant CLI
23
- * participant DemoModule
24
- * participant Command
25
- *
26
- * User->>CLI: npx decaf demo command "arg"
27
- * CLI->>DemoModule: Load module
28
- * DemoModule->>Command: Create command
29
- * Command->>Command: Configure action
30
- * Command-->>DemoModule: Return command
31
- * DemoModule-->>CLI: Return command
32
- * CLI->>Command: Execute with args
33
- * Command->>Console: Log output
34
- */
35
2
  export default function demo(): Command;
@@ -1,43 +1,13 @@
1
1
  import { Command } from "commander";
2
- /**
3
- * @description Demo CLI module for Decaf libraries
4
- * @summary A minimal implementation showing how to extend the Decaf CLI with custom commands.
5
- * This module demonstrates the pattern for creating CLI modules that can be discovered and loaded by the Decaf CLI.
6
- *
7
- * @return {Command} The Command object to be added to the main Decaf CLI
8
- *
9
- * @function demo
10
- * @memberOf module:CLI
11
- *
12
- * @example
13
- * // Run the demo command with an argument
14
- * npx decaf demo command "something something"
15
- *
16
- * // Output:
17
- * // executed demo command with type variable: something something
18
- *
19
- * @mermaid
20
- * sequenceDiagram
21
- * participant User
22
- * participant CLI
23
- * participant DemoModule
24
- * participant Command
25
- *
26
- * User->>CLI: npx decaf demo command "arg"
27
- * CLI->>DemoModule: Load module
28
- * DemoModule->>Command: Create command
29
- * Command->>Command: Configure action
30
- * Command-->>DemoModule: Return command
31
- * DemoModule-->>CLI: Return command
32
- * CLI->>Command: Execute with args
33
- * Command->>Console: Log output
34
- */
2
+ const runCommand = new Command("command")
3
+ .description("A demo command")
4
+ .argument("<type>")
5
+ .action(async (type) => {
6
+ console.log(`executed demo command with type variable: ${type}`);
7
+ });
35
8
  export default function demo() {
36
- return new Command()
37
- .command("command <type>")
38
- .description("A demo command")
39
- .action((args) => {
40
- console.log(`executed demo command with type variable: ${args}`);
41
- });
9
+ const demoCommand = new Command("demo").description("Demo commands");
10
+ demoCommand.addCommand(runCommand);
11
+ return demoCommand;
42
12
  }
43
13
  //# sourceMappingURL=cli-module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli-module.js","sourceRoot":"","sources":["../../../src/demo/cli-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI;IAC1B,OAAO,IAAI,OAAO,EAAE;SACjB,OAAO,CAAC,gBAAgB,CAAC;SACzB,WAAW,CAAC,gBAAgB,CAAC;SAC7B,MAAM,CAAC,CAAC,IAAY,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,6CAA6C,IAAI,EAAE,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"cli-module.js","sourceRoot":"","sources":["../../../src/demo/cli-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,UAAU,GAAG,IAAI,OAAO,CAAC,SAAS,CAAC;KACtC,WAAW,CAAC,gBAAgB,CAAC;KAC7B,QAAQ,CAAC,QAAQ,CAAC;KAClB,MAAM,CAAC,KAAK,EAAE,IAAY,EAAE,EAAE;IAC7B,OAAO,CAAC,GAAG,CAAC,6CAA6C,IAAI,EAAE,CAAC,CAAC;AACnE,CAAC,CAAC,CAAC;AAEL,MAAM,CAAC,OAAO,UAAU,IAAI;IAC1B,MAAM,WAAW,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IACrE,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IACnC,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { LoggingConfig } from "@decaf-ts/logging";
2
+ export type DecafCliEnvironment = LoggingConfig & {
3
+ banner: boolean;
4
+ cliModuleRoot: string;
5
+ };
6
+ export declare const DefaultCliEnvironment: DecafCliEnvironment;
7
+ export declare const DecafCLieEnvironment: object & LoggingConfig & {
8
+ env: any;
9
+ } & {
10
+ banner: boolean;
11
+ cliModuleRoot: string;
12
+ } & import("typed-object-accumulator").ObjectAccumulator<object & LoggingConfig & {
13
+ env: any;
14
+ } & {
15
+ banner: boolean;
16
+ cliModuleRoot: string;
17
+ }>;
@@ -0,0 +1,11 @@
1
+ import path from "path";
2
+ import { LoggedEnvironment } from "@decaf-ts/logging";
3
+ const cliModuleRoot = process.env.CLI_MODULE_TOOT && process.env.CLI_MODULE_TOOT.length > 0
4
+ ? path.resolve(process.env.CLI_MODULE_TOOT)
5
+ : process.cwd();
6
+ export const DefaultCliEnvironment = {
7
+ banner: true,
8
+ cliModuleRoot,
9
+ };
10
+ export const DecafCLieEnvironment = LoggedEnvironment.accumulate(DefaultCliEnvironment);
11
+ //# sourceMappingURL=environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.js","sourceRoot":"","sources":["../../src/environment.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAiB,MAAM,mBAAmB,CAAC;AAOrE,MAAM,aAAa,GACjB,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC;IACnE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;IAC3C,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;AAEpB,MAAM,CAAC,MAAM,qBAAqB,GAAwB;IACxD,MAAM,EAAE,IAAI;IACZ,aAAa;CACS,CAAC;AAEzB,MAAM,CAAC,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,UAAU,CAC9D,qBAAqB,CACtB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./CliWrapper";
2
+ export * from "./environment";
2
3
  /**
3
4
  * @description Decaf-ts' CLI module
4
5
  * @summary This file will crawl the current working directory for files called {@link CLI_FILE_NAME}
package/lib/esm/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./CliWrapper.js";
2
+ export * from "./environment.js";
2
3
  /**
3
4
  * @description Decaf-ts' CLI module
4
5
  * @summary This file will crawl the current working directory for files called {@link CLI_FILE_NAME}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAA6B;AAE7B;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAA6B;AAC7B,iCAA8B;AAC9B;;;;;;;;;;;;;GAaG"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import { Logger } from "@decaf-ts/logging";
3
+ export declare function getCmdLogger(cmd: Command): Logger;
@@ -0,0 +1,16 @@
1
+ import { Logging } from "@decaf-ts/logging";
2
+ export function getCmdLogger(cmd) {
3
+ const inheritance = [cmd];
4
+ let parent = cmd.parent;
5
+ while (parent) {
6
+ inheritance.push(parent);
7
+ parent = parent.parent;
8
+ }
9
+ if (!parent)
10
+ throw new Error("Outshot the root parent. should not be possible");
11
+ const log = inheritance.reverse().reduce((accum, el) => {
12
+ return accum.for(el.name);
13
+ }, Logging.get());
14
+ return log;
15
+ }
16
+ //# sourceMappingURL=logging.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAU,MAAM,mBAAmB,CAAC;AAEpD,MAAM,UAAU,YAAY,CAAC,GAAY;IACvC,MAAM,WAAW,GAAU,CAAC,GAAG,CAAC,CAAC;IACjC,IAAI,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IACxB,OAAO,MAAM,EAAE,CAAC;QACd,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzB,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IACD,IAAI,CAAC,MAAM;QACT,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,MAAM,GAAG,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,KAAa,EAAE,EAAE,EAAE,EAAE;QAC7D,OAAO,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAClB,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { Logger } from "@decaf-ts/logging";
2
+ /**
3
+ * @description Reads and parses slogans from workdocs/assets/slogans.json.
4
+ * @summary Attempts to read a slogans.json file from the workdocs/assets directory at the given base path and returns its parsed contents as an array.
5
+ *
6
+ * @param {string} basePath - The base directory path where workdocs/assets/slogans.json should exist.
7
+ * @return {any[] | undefined} The parsed array from slogans.json, or undefined if the file doesn't exist.
8
+ *
9
+ * @function readSlogans
10
+ *
11
+ * @memberOf module:utils
12
+ */
13
+ export declare function readSlogans(log: Logger, basePath: string): {
14
+ Slogan: string;
15
+ }[] | undefined;
16
+ /**
17
+ * @description Collects slogans from a base path and all @decaf scoped packages.
18
+ * @summary Recursively collects slogans.json files from the given base path and all subdirectories under node_modules/@decaf/*. Results are stored in an object keyed by the package name (from package.json).
19
+ *
20
+ * @param {string} basePath - The base directory path to start collecting from.
21
+ * @return {Record<string, any[]>} An object mapping package names to their slogans arrays.
22
+ *
23
+ * @function collectSlogans
24
+ *
25
+ * @memberOf module:utils
26
+ */
27
+ export declare function collectSlogans(log: Logger, basePath: string): Record<string, any[]>;
28
+ /**
29
+ * @description Flattens collected slogans with weighted selection for a priority package.
30
+ * @summary Given a collection of slogans and a priority package name, returns a flat array where slogans from the priority package have a 30-40% chance of appearing at any given position.
31
+ *
32
+ * @param {Record<string, any[]>} slogansMap - Object mapping package names to slogan arrays.
33
+ * @param {string} priorityPackage - The package name whose slogans should be prioritized.
34
+ * @return {any[]} A flat array of all slogans with weighted distribution.
35
+ *
36
+ * @function flattenSlogansWithPriority
37
+ *
38
+ * @memberOf module:utils
39
+ */
40
+ export declare function flattenSlogansWithPriority(log: Logger, slogansMap: Record<string, any[]>, priorityPackage: string): any[];