devlyn-cli 4.2.0 → 4.2.2

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 (132) hide show
  1. package/README.md +4 -2
  2. package/bin/devlyn.js +184 -147
  3. package/bin/skill-history.json +140 -0
  4. package/bin/skill-ownership.js +67 -0
  5. package/node_modules/@inquirer/ansi/LICENSE +22 -0
  6. package/node_modules/@inquirer/ansi/README.md +121 -0
  7. package/node_modules/@inquirer/ansi/dist/index.d.ts +14 -0
  8. package/node_modules/@inquirer/ansi/dist/index.js +21 -0
  9. package/node_modules/@inquirer/ansi/package.json +79 -0
  10. package/node_modules/@inquirer/checkbox/LICENSE +22 -0
  11. package/node_modules/@inquirer/checkbox/README.md +265 -0
  12. package/node_modules/@inquirer/checkbox/dist/index.d.ts +67 -0
  13. package/node_modules/@inquirer/checkbox/dist/index.js +210 -0
  14. package/node_modules/@inquirer/checkbox/package.json +93 -0
  15. package/node_modules/@inquirer/core/LICENSE +22 -0
  16. package/node_modules/@inquirer/core/README.md +424 -0
  17. package/node_modules/@inquirer/core/dist/index.d.ts +13 -0
  18. package/node_modules/@inquirer/core/dist/index.js +12 -0
  19. package/node_modules/@inquirer/core/dist/lib/Separator.d.ts +10 -0
  20. package/node_modules/@inquirer/core/dist/lib/Separator.js +21 -0
  21. package/node_modules/@inquirer/core/dist/lib/__probe/p1.d.ts +9 -0
  22. package/node_modules/@inquirer/core/dist/lib/__probe/p1.js +4 -0
  23. package/node_modules/@inquirer/core/dist/lib/__probe/p2.d.ts +9 -0
  24. package/node_modules/@inquirer/core/dist/lib/__probe/p2.js +3 -0
  25. package/node_modules/@inquirer/core/dist/lib/__probe/p3.d.ts +9 -0
  26. package/node_modules/@inquirer/core/dist/lib/__probe/p3.js +5 -0
  27. package/node_modules/@inquirer/core/dist/lib/create-prompt.d.ts +11 -0
  28. package/node_modules/@inquirer/core/dist/lib/create-prompt.js +185 -0
  29. package/node_modules/@inquirer/core/dist/lib/errors.d.ts +20 -0
  30. package/node_modules/@inquirer/core/dist/lib/errors.js +21 -0
  31. package/node_modules/@inquirer/core/dist/lib/hook-engine.d.ts +17 -0
  32. package/node_modules/@inquirer/core/dist/lib/hook-engine.js +109 -0
  33. package/node_modules/@inquirer/core/dist/lib/key.d.ts +15 -0
  34. package/node_modules/@inquirer/core/dist/lib/key.js +34 -0
  35. package/node_modules/@inquirer/core/dist/lib/make-theme.d.ts +3 -0
  36. package/node_modules/@inquirer/core/dist/lib/make-theme.js +33 -0
  37. package/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.d.ts +15 -0
  38. package/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.js +121 -0
  39. package/node_modules/@inquirer/core/dist/lib/screen-manager.d.ts +14 -0
  40. package/node_modules/@inquirer/core/dist/lib/screen-manager.js +84 -0
  41. package/node_modules/@inquirer/core/dist/lib/theme.d.ts +166 -0
  42. package/node_modules/@inquirer/core/dist/lib/theme.js +29 -0
  43. package/node_modules/@inquirer/core/dist/lib/use-effect.d.ts +2 -0
  44. package/node_modules/@inquirer/core/dist/lib/use-effect.js +11 -0
  45. package/node_modules/@inquirer/core/dist/lib/use-keypress.d.ts +3 -0
  46. package/node_modules/@inquirer/core/dist/lib/use-keypress.js +20 -0
  47. package/node_modules/@inquirer/core/dist/lib/use-memo.d.ts +1 -0
  48. package/node_modules/@inquirer/core/dist/lib/use-memo.js +14 -0
  49. package/node_modules/@inquirer/core/dist/lib/use-prefix.d.ts +5 -0
  50. package/node_modules/@inquirer/core/dist/lib/use-prefix.js +35 -0
  51. package/node_modules/@inquirer/core/dist/lib/use-ref.d.ts +6 -0
  52. package/node_modules/@inquirer/core/dist/lib/use-ref.js +4 -0
  53. package/node_modules/@inquirer/core/dist/lib/use-state.d.ts +7 -0
  54. package/node_modules/@inquirer/core/dist/lib/use-state.js +28 -0
  55. package/node_modules/@inquirer/core/dist/lib/utils.d.ts +13 -0
  56. package/node_modules/@inquirer/core/dist/lib/utils.js +25 -0
  57. package/node_modules/@inquirer/core/package.json +98 -0
  58. package/node_modules/@inquirer/figures/LICENSE +22 -0
  59. package/node_modules/@inquirer/figures/dist/index.d.ts +275 -0
  60. package/node_modules/@inquirer/figures/dist/index.js +315 -0
  61. package/node_modules/@inquirer/figures/package.json +81 -0
  62. package/node_modules/@inquirer/select/LICENSE +22 -0
  63. package/node_modules/@inquirer/select/README.md +258 -0
  64. package/node_modules/@inquirer/select/dist/index.d.ts +42 -0
  65. package/node_modules/@inquirer/select/dist/index.js +191 -0
  66. package/node_modules/@inquirer/select/package.json +93 -0
  67. package/node_modules/@inquirer/type/LICENSE +22 -0
  68. package/node_modules/@inquirer/type/dist/index.d.ts +2 -0
  69. package/node_modules/@inquirer/type/dist/index.js +2 -0
  70. package/node_modules/@inquirer/type/dist/inquirer.d.ts +35 -0
  71. package/node_modules/@inquirer/type/dist/inquirer.js +1 -0
  72. package/node_modules/@inquirer/type/dist/utils.d.ts +45 -0
  73. package/node_modules/@inquirer/type/dist/utils.js +16 -0
  74. package/node_modules/@inquirer/type/package.json +88 -0
  75. package/node_modules/cli-width/LICENSE +13 -0
  76. package/node_modules/cli-width/README.md +71 -0
  77. package/node_modules/cli-width/index.d.ts +13 -0
  78. package/node_modules/cli-width/index.js +49 -0
  79. package/node_modules/cli-width/package.json +40 -0
  80. package/node_modules/fast-string-truncated-width/dist/index.d.ts +4 -0
  81. package/node_modules/fast-string-truncated-width/dist/index.js +111 -0
  82. package/node_modules/fast-string-truncated-width/dist/types.d.ts +19 -0
  83. package/node_modules/fast-string-truncated-width/dist/types.js +2 -0
  84. package/node_modules/fast-string-truncated-width/dist/utils.d.ts +4 -0
  85. package/node_modules/fast-string-truncated-width/dist/utils.js +20 -0
  86. package/node_modules/fast-string-truncated-width/license +21 -0
  87. package/node_modules/fast-string-truncated-width/package.json +35 -0
  88. package/node_modules/fast-string-truncated-width/readme.md +59 -0
  89. package/node_modules/fast-string-width/dist/index.d.ts +4 -0
  90. package/node_modules/fast-string-width/dist/index.js +14 -0
  91. package/node_modules/fast-string-width/license +21 -0
  92. package/node_modules/fast-string-width/package.json +34 -0
  93. package/node_modules/fast-string-width/readme.md +42 -0
  94. package/node_modules/fast-wrap-ansi/LICENSE +23 -0
  95. package/node_modules/fast-wrap-ansi/README.md +26 -0
  96. package/node_modules/fast-wrap-ansi/lib/main.d.ts +6 -0
  97. package/node_modules/fast-wrap-ansi/lib/main.js +218 -0
  98. package/node_modules/fast-wrap-ansi/package.json +51 -0
  99. package/node_modules/mute-stream/LICENSE +15 -0
  100. package/node_modules/mute-stream/README.md +68 -0
  101. package/node_modules/mute-stream/lib/index.js +142 -0
  102. package/node_modules/mute-stream/package.json +54 -0
  103. package/node_modules/signal-exit/LICENSE.txt +16 -0
  104. package/node_modules/signal-exit/README.md +74 -0
  105. package/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
  106. package/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  107. package/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  108. package/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  109. package/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
  110. package/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  111. package/node_modules/signal-exit/dist/cjs/index.js +279 -0
  112. package/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  113. package/node_modules/signal-exit/dist/cjs/package.json +3 -0
  114. package/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
  115. package/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  116. package/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  117. package/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  118. package/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
  119. package/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  120. package/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  121. package/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  122. package/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
  123. package/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  124. package/node_modules/signal-exit/dist/mjs/index.js +275 -0
  125. package/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  126. package/node_modules/signal-exit/dist/mjs/package.json +3 -0
  127. package/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
  128. package/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  129. package/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  130. package/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  131. package/node_modules/signal-exit/package.json +106 -0
  132. package/package.json +16 -2
@@ -0,0 +1,275 @@
1
+ declare const common: {
2
+ circleQuestionMark: string;
3
+ questionMarkPrefix: string;
4
+ square: string;
5
+ squareDarkShade: string;
6
+ squareMediumShade: string;
7
+ squareLightShade: string;
8
+ squareTop: string;
9
+ squareBottom: string;
10
+ squareLeft: string;
11
+ squareRight: string;
12
+ squareCenter: string;
13
+ bullet: string;
14
+ dot: string;
15
+ ellipsis: string;
16
+ pointerSmall: string;
17
+ triangleUp: string;
18
+ triangleUpSmall: string;
19
+ triangleDown: string;
20
+ triangleDownSmall: string;
21
+ triangleLeftSmall: string;
22
+ triangleRightSmall: string;
23
+ home: string;
24
+ heart: string;
25
+ musicNote: string;
26
+ musicNoteBeamed: string;
27
+ arrowUp: string;
28
+ arrowDown: string;
29
+ arrowLeft: string;
30
+ arrowRight: string;
31
+ arrowLeftRight: string;
32
+ arrowUpDown: string;
33
+ almostEqual: string;
34
+ notEqual: string;
35
+ lessOrEqual: string;
36
+ greaterOrEqual: string;
37
+ identical: string;
38
+ infinity: string;
39
+ subscriptZero: string;
40
+ subscriptOne: string;
41
+ subscriptTwo: string;
42
+ subscriptThree: string;
43
+ subscriptFour: string;
44
+ subscriptFive: string;
45
+ subscriptSix: string;
46
+ subscriptSeven: string;
47
+ subscriptEight: string;
48
+ subscriptNine: string;
49
+ oneHalf: string;
50
+ oneThird: string;
51
+ oneQuarter: string;
52
+ oneFifth: string;
53
+ oneSixth: string;
54
+ oneEighth: string;
55
+ twoThirds: string;
56
+ twoFifths: string;
57
+ threeQuarters: string;
58
+ threeFifths: string;
59
+ threeEighths: string;
60
+ fourFifths: string;
61
+ fiveSixths: string;
62
+ fiveEighths: string;
63
+ sevenEighths: string;
64
+ line: string;
65
+ lineBold: string;
66
+ lineDouble: string;
67
+ lineDashed0: string;
68
+ lineDashed1: string;
69
+ lineDashed2: string;
70
+ lineDashed3: string;
71
+ lineDashed4: string;
72
+ lineDashed5: string;
73
+ lineDashed6: string;
74
+ lineDashed7: string;
75
+ lineDashed8: string;
76
+ lineDashed9: string;
77
+ lineDashed10: string;
78
+ lineDashed11: string;
79
+ lineDashed12: string;
80
+ lineDashed13: string;
81
+ lineDashed14: string;
82
+ lineDashed15: string;
83
+ lineVertical: string;
84
+ lineVerticalBold: string;
85
+ lineVerticalDouble: string;
86
+ lineVerticalDashed0: string;
87
+ lineVerticalDashed1: string;
88
+ lineVerticalDashed2: string;
89
+ lineVerticalDashed3: string;
90
+ lineVerticalDashed4: string;
91
+ lineVerticalDashed5: string;
92
+ lineVerticalDashed6: string;
93
+ lineVerticalDashed7: string;
94
+ lineVerticalDashed8: string;
95
+ lineVerticalDashed9: string;
96
+ lineVerticalDashed10: string;
97
+ lineVerticalDashed11: string;
98
+ lineDownLeft: string;
99
+ lineDownLeftArc: string;
100
+ lineDownBoldLeftBold: string;
101
+ lineDownBoldLeft: string;
102
+ lineDownLeftBold: string;
103
+ lineDownDoubleLeftDouble: string;
104
+ lineDownDoubleLeft: string;
105
+ lineDownLeftDouble: string;
106
+ lineDownRight: string;
107
+ lineDownRightArc: string;
108
+ lineDownBoldRightBold: string;
109
+ lineDownBoldRight: string;
110
+ lineDownRightBold: string;
111
+ lineDownDoubleRightDouble: string;
112
+ lineDownDoubleRight: string;
113
+ lineDownRightDouble: string;
114
+ lineUpLeft: string;
115
+ lineUpLeftArc: string;
116
+ lineUpBoldLeftBold: string;
117
+ lineUpBoldLeft: string;
118
+ lineUpLeftBold: string;
119
+ lineUpDoubleLeftDouble: string;
120
+ lineUpDoubleLeft: string;
121
+ lineUpLeftDouble: string;
122
+ lineUpRight: string;
123
+ lineUpRightArc: string;
124
+ lineUpBoldRightBold: string;
125
+ lineUpBoldRight: string;
126
+ lineUpRightBold: string;
127
+ lineUpDoubleRightDouble: string;
128
+ lineUpDoubleRight: string;
129
+ lineUpRightDouble: string;
130
+ lineUpDownLeft: string;
131
+ lineUpBoldDownBoldLeftBold: string;
132
+ lineUpBoldDownBoldLeft: string;
133
+ lineUpDownLeftBold: string;
134
+ lineUpBoldDownLeftBold: string;
135
+ lineUpDownBoldLeftBold: string;
136
+ lineUpDownBoldLeft: string;
137
+ lineUpBoldDownLeft: string;
138
+ lineUpDoubleDownDoubleLeftDouble: string;
139
+ lineUpDoubleDownDoubleLeft: string;
140
+ lineUpDownLeftDouble: string;
141
+ lineUpDownRight: string;
142
+ lineUpBoldDownBoldRightBold: string;
143
+ lineUpBoldDownBoldRight: string;
144
+ lineUpDownRightBold: string;
145
+ lineUpBoldDownRightBold: string;
146
+ lineUpDownBoldRightBold: string;
147
+ lineUpDownBoldRight: string;
148
+ lineUpBoldDownRight: string;
149
+ lineUpDoubleDownDoubleRightDouble: string;
150
+ lineUpDoubleDownDoubleRight: string;
151
+ lineUpDownRightDouble: string;
152
+ lineDownLeftRight: string;
153
+ lineDownBoldLeftBoldRightBold: string;
154
+ lineDownLeftBoldRightBold: string;
155
+ lineDownBoldLeftRight: string;
156
+ lineDownBoldLeftBoldRight: string;
157
+ lineDownBoldLeftRightBold: string;
158
+ lineDownLeftRightBold: string;
159
+ lineDownLeftBoldRight: string;
160
+ lineDownDoubleLeftDoubleRightDouble: string;
161
+ lineDownDoubleLeftRight: string;
162
+ lineDownLeftDoubleRightDouble: string;
163
+ lineUpLeftRight: string;
164
+ lineUpBoldLeftBoldRightBold: string;
165
+ lineUpLeftBoldRightBold: string;
166
+ lineUpBoldLeftRight: string;
167
+ lineUpBoldLeftBoldRight: string;
168
+ lineUpBoldLeftRightBold: string;
169
+ lineUpLeftRightBold: string;
170
+ lineUpLeftBoldRight: string;
171
+ lineUpDoubleLeftDoubleRightDouble: string;
172
+ lineUpDoubleLeftRight: string;
173
+ lineUpLeftDoubleRightDouble: string;
174
+ lineUpDownLeftRight: string;
175
+ lineUpBoldDownBoldLeftBoldRightBold: string;
176
+ lineUpDownBoldLeftBoldRightBold: string;
177
+ lineUpBoldDownLeftBoldRightBold: string;
178
+ lineUpBoldDownBoldLeftRightBold: string;
179
+ lineUpBoldDownBoldLeftBoldRight: string;
180
+ lineUpBoldDownLeftRight: string;
181
+ lineUpDownBoldLeftRight: string;
182
+ lineUpDownLeftBoldRight: string;
183
+ lineUpDownLeftRightBold: string;
184
+ lineUpBoldDownBoldLeftRight: string;
185
+ lineUpDownLeftBoldRightBold: string;
186
+ lineUpBoldDownLeftBoldRight: string;
187
+ lineUpBoldDownLeftRightBold: string;
188
+ lineUpDownBoldLeftBoldRight: string;
189
+ lineUpDownBoldLeftRightBold: string;
190
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: string;
191
+ lineUpDoubleDownDoubleLeftRight: string;
192
+ lineUpDownLeftDoubleRightDouble: string;
193
+ lineCross: string;
194
+ lineBackslash: string;
195
+ lineSlash: string;
196
+ };
197
+ declare const specialMainSymbols: {
198
+ tick: string;
199
+ info: string;
200
+ warning: string;
201
+ cross: string;
202
+ squareSmall: string;
203
+ squareSmallFilled: string;
204
+ circle: string;
205
+ circleFilled: string;
206
+ circleDotted: string;
207
+ circleDouble: string;
208
+ circleCircle: string;
209
+ circleCross: string;
210
+ circlePipe: string;
211
+ radioOn: string;
212
+ radioOff: string;
213
+ checkboxOn: string;
214
+ checkboxOff: string;
215
+ checkboxCircleOn: string;
216
+ checkboxCircleOff: string;
217
+ pointer: string;
218
+ triangleUpOutline: string;
219
+ triangleLeft: string;
220
+ triangleRight: string;
221
+ lozenge: string;
222
+ lozengeOutline: string;
223
+ hamburger: string;
224
+ smiley: string;
225
+ mustache: string;
226
+ star: string;
227
+ play: string;
228
+ nodejs: string;
229
+ oneSeventh: string;
230
+ oneNinth: string;
231
+ oneTenth: string;
232
+ };
233
+ declare const specialFallbackSymbols: {
234
+ tick: string;
235
+ info: string;
236
+ warning: string;
237
+ cross: string;
238
+ squareSmall: string;
239
+ squareSmallFilled: string;
240
+ circle: string;
241
+ circleFilled: string;
242
+ circleDotted: string;
243
+ circleDouble: string;
244
+ circleCircle: string;
245
+ circleCross: string;
246
+ circlePipe: string;
247
+ radioOn: string;
248
+ radioOff: string;
249
+ checkboxOn: string;
250
+ checkboxOff: string;
251
+ checkboxCircleOn: string;
252
+ checkboxCircleOff: string;
253
+ pointer: string;
254
+ triangleUpOutline: string;
255
+ triangleLeft: string;
256
+ triangleRight: string;
257
+ lozenge: string;
258
+ lozengeOutline: string;
259
+ hamburger: string;
260
+ smiley: string;
261
+ mustache: string;
262
+ star: string;
263
+ play: string;
264
+ nodejs: string;
265
+ oneSeventh: string;
266
+ oneNinth: string;
267
+ oneTenth: string;
268
+ };
269
+ export declare const mainSymbols: typeof common & typeof specialMainSymbols;
270
+ export declare const fallbackSymbols: (typeof common & typeof specialFallbackSymbols) & Record<string, string>;
271
+ declare const figures: typeof mainSymbols | typeof fallbackSymbols;
272
+ export default figures;
273
+ export declare const replaceSymbols: (string: string, { useFallback }?: {
274
+ useFallback?: boolean;
275
+ }) => string;
@@ -0,0 +1,315 @@
1
+ // process.env dot-notation access prints:
2
+ // Property 'TERM' comes from an index signature, so it must be accessed with ['TERM'].ts(4111)
3
+ /* eslint dot-notation: ["off"] */
4
+ import process from 'node:process';
5
+ // Ported from is-unicode-supported
6
+ function isUnicodeSupported() {
7
+ if (!process.platform.startsWith('win')) {
8
+ return process.env['TERM'] !== 'linux'; // Linux console (kernel)
9
+ }
10
+ return (Boolean(process.env['CI']) || // CI environments generally support unicode
11
+ Boolean(process.env['WT_SESSION']) || // Windows Terminal
12
+ Boolean(process.env['TERMINUS_SUBLIME']) || // Terminus (<0.2.27)
13
+ process.env['ConEmuTask'] === '{cmd::Cmder}' || // ConEmu and cmder
14
+ process.env['TERM_PROGRAM'] === 'Terminus-Sublime' ||
15
+ process.env['TERM_PROGRAM'] === 'vscode' ||
16
+ process.env['TERM'] === 'xterm-256color' ||
17
+ process.env['TERM'] === 'alacritty' ||
18
+ process.env['TERMINAL_EMULATOR'] === 'JetBrains-JediTerm');
19
+ }
20
+ // Ported from figures
21
+ const common = {
22
+ circleQuestionMark: '(?)',
23
+ questionMarkPrefix: '(?)',
24
+ square: '█',
25
+ squareDarkShade: '▓',
26
+ squareMediumShade: '▒',
27
+ squareLightShade: '░',
28
+ squareTop: '▀',
29
+ squareBottom: '▄',
30
+ squareLeft: '▌',
31
+ squareRight: '▐',
32
+ squareCenter: '■',
33
+ bullet: '●',
34
+ dot: '․',
35
+ ellipsis: '…',
36
+ pointerSmall: '›',
37
+ triangleUp: '▲',
38
+ triangleUpSmall: '▴',
39
+ triangleDown: '▼',
40
+ triangleDownSmall: '▾',
41
+ triangleLeftSmall: '◂',
42
+ triangleRightSmall: '▸',
43
+ home: '⌂',
44
+ heart: '♥',
45
+ musicNote: '♪',
46
+ musicNoteBeamed: '♫',
47
+ arrowUp: '↑',
48
+ arrowDown: '↓',
49
+ arrowLeft: '←',
50
+ arrowRight: '→',
51
+ arrowLeftRight: '↔',
52
+ arrowUpDown: '↕',
53
+ almostEqual: '≈',
54
+ notEqual: '≠',
55
+ lessOrEqual: '≤',
56
+ greaterOrEqual: '≥',
57
+ identical: '≡',
58
+ infinity: '∞',
59
+ subscriptZero: '₀',
60
+ subscriptOne: '₁',
61
+ subscriptTwo: '₂',
62
+ subscriptThree: '₃',
63
+ subscriptFour: '₄',
64
+ subscriptFive: '₅',
65
+ subscriptSix: '₆',
66
+ subscriptSeven: '₇',
67
+ subscriptEight: '₈',
68
+ subscriptNine: '₉',
69
+ oneHalf: '½',
70
+ oneThird: '⅓',
71
+ oneQuarter: '¼',
72
+ oneFifth: '⅕',
73
+ oneSixth: '⅙',
74
+ oneEighth: '⅛',
75
+ twoThirds: '⅔',
76
+ twoFifths: '⅖',
77
+ threeQuarters: '¾',
78
+ threeFifths: '⅗',
79
+ threeEighths: '⅜',
80
+ fourFifths: '⅘',
81
+ fiveSixths: '⅚',
82
+ fiveEighths: '⅝',
83
+ sevenEighths: '⅞',
84
+ line: '─',
85
+ lineBold: '━',
86
+ lineDouble: '═',
87
+ lineDashed0: '┄',
88
+ lineDashed1: '┅',
89
+ lineDashed2: '┈',
90
+ lineDashed3: '┉',
91
+ lineDashed4: '╌',
92
+ lineDashed5: '╍',
93
+ lineDashed6: '╴',
94
+ lineDashed7: '╶',
95
+ lineDashed8: '╸',
96
+ lineDashed9: '╺',
97
+ lineDashed10: '╼',
98
+ lineDashed11: '╾',
99
+ lineDashed12: '−',
100
+ lineDashed13: '–',
101
+ lineDashed14: '‐',
102
+ lineDashed15: '⁃',
103
+ lineVertical: '│',
104
+ lineVerticalBold: '┃',
105
+ lineVerticalDouble: '║',
106
+ lineVerticalDashed0: '┆',
107
+ lineVerticalDashed1: '┇',
108
+ lineVerticalDashed2: '┊',
109
+ lineVerticalDashed3: '┋',
110
+ lineVerticalDashed4: '╎',
111
+ lineVerticalDashed5: '╏',
112
+ lineVerticalDashed6: '╵',
113
+ lineVerticalDashed7: '╷',
114
+ lineVerticalDashed8: '╹',
115
+ lineVerticalDashed9: '╻',
116
+ lineVerticalDashed10: '╽',
117
+ lineVerticalDashed11: '╿',
118
+ lineDownLeft: '┐',
119
+ lineDownLeftArc: '╮',
120
+ lineDownBoldLeftBold: '┓',
121
+ lineDownBoldLeft: '┒',
122
+ lineDownLeftBold: '┑',
123
+ lineDownDoubleLeftDouble: '╗',
124
+ lineDownDoubleLeft: '╖',
125
+ lineDownLeftDouble: '╕',
126
+ lineDownRight: '┌',
127
+ lineDownRightArc: '╭',
128
+ lineDownBoldRightBold: '┏',
129
+ lineDownBoldRight: '┎',
130
+ lineDownRightBold: '┍',
131
+ lineDownDoubleRightDouble: '╔',
132
+ lineDownDoubleRight: '╓',
133
+ lineDownRightDouble: '╒',
134
+ lineUpLeft: '┘',
135
+ lineUpLeftArc: '╯',
136
+ lineUpBoldLeftBold: '┛',
137
+ lineUpBoldLeft: '┚',
138
+ lineUpLeftBold: '┙',
139
+ lineUpDoubleLeftDouble: '╝',
140
+ lineUpDoubleLeft: '╜',
141
+ lineUpLeftDouble: '╛',
142
+ lineUpRight: '└',
143
+ lineUpRightArc: '╰',
144
+ lineUpBoldRightBold: '┗',
145
+ lineUpBoldRight: '┖',
146
+ lineUpRightBold: '┕',
147
+ lineUpDoubleRightDouble: '╚',
148
+ lineUpDoubleRight: '╙',
149
+ lineUpRightDouble: '╘',
150
+ lineUpDownLeft: '┤',
151
+ lineUpBoldDownBoldLeftBold: '┫',
152
+ lineUpBoldDownBoldLeft: '┨',
153
+ lineUpDownLeftBold: '┥',
154
+ lineUpBoldDownLeftBold: '┩',
155
+ lineUpDownBoldLeftBold: '┪',
156
+ lineUpDownBoldLeft: '┧',
157
+ lineUpBoldDownLeft: '┦',
158
+ lineUpDoubleDownDoubleLeftDouble: '╣',
159
+ lineUpDoubleDownDoubleLeft: '╢',
160
+ lineUpDownLeftDouble: '╡',
161
+ lineUpDownRight: '├',
162
+ lineUpBoldDownBoldRightBold: '┣',
163
+ lineUpBoldDownBoldRight: '┠',
164
+ lineUpDownRightBold: '┝',
165
+ lineUpBoldDownRightBold: '┡',
166
+ lineUpDownBoldRightBold: '┢',
167
+ lineUpDownBoldRight: '┟',
168
+ lineUpBoldDownRight: '┞',
169
+ lineUpDoubleDownDoubleRightDouble: '╠',
170
+ lineUpDoubleDownDoubleRight: '╟',
171
+ lineUpDownRightDouble: '╞',
172
+ lineDownLeftRight: '┬',
173
+ lineDownBoldLeftBoldRightBold: '┳',
174
+ lineDownLeftBoldRightBold: '┯',
175
+ lineDownBoldLeftRight: '┰',
176
+ lineDownBoldLeftBoldRight: '┱',
177
+ lineDownBoldLeftRightBold: '┲',
178
+ lineDownLeftRightBold: '┮',
179
+ lineDownLeftBoldRight: '┭',
180
+ lineDownDoubleLeftDoubleRightDouble: '╦',
181
+ lineDownDoubleLeftRight: '╥',
182
+ lineDownLeftDoubleRightDouble: '╤',
183
+ lineUpLeftRight: '┴',
184
+ lineUpBoldLeftBoldRightBold: '┻',
185
+ lineUpLeftBoldRightBold: '┷',
186
+ lineUpBoldLeftRight: '┸',
187
+ lineUpBoldLeftBoldRight: '┹',
188
+ lineUpBoldLeftRightBold: '┺',
189
+ lineUpLeftRightBold: '┶',
190
+ lineUpLeftBoldRight: '┵',
191
+ lineUpDoubleLeftDoubleRightDouble: '╩',
192
+ lineUpDoubleLeftRight: '╨',
193
+ lineUpLeftDoubleRightDouble: '╧',
194
+ lineUpDownLeftRight: '┼',
195
+ lineUpBoldDownBoldLeftBoldRightBold: '╋',
196
+ lineUpDownBoldLeftBoldRightBold: '╈',
197
+ lineUpBoldDownLeftBoldRightBold: '╇',
198
+ lineUpBoldDownBoldLeftRightBold: '╊',
199
+ lineUpBoldDownBoldLeftBoldRight: '╉',
200
+ lineUpBoldDownLeftRight: '╀',
201
+ lineUpDownBoldLeftRight: '╁',
202
+ lineUpDownLeftBoldRight: '┽',
203
+ lineUpDownLeftRightBold: '┾',
204
+ lineUpBoldDownBoldLeftRight: '╂',
205
+ lineUpDownLeftBoldRightBold: '┿',
206
+ lineUpBoldDownLeftBoldRight: '╃',
207
+ lineUpBoldDownLeftRightBold: '╄',
208
+ lineUpDownBoldLeftBoldRight: '╅',
209
+ lineUpDownBoldLeftRightBold: '╆',
210
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: '╬',
211
+ lineUpDoubleDownDoubleLeftRight: '╫',
212
+ lineUpDownLeftDoubleRightDouble: '╪',
213
+ lineCross: '╳',
214
+ lineBackslash: '╲',
215
+ lineSlash: '╱',
216
+ };
217
+ const specialMainSymbols = {
218
+ tick: '✔',
219
+ info: 'ℹ',
220
+ warning: '⚠',
221
+ cross: '✘',
222
+ squareSmall: '◻',
223
+ squareSmallFilled: '◼',
224
+ circle: '◯',
225
+ circleFilled: '◉',
226
+ circleDotted: '◌',
227
+ circleDouble: '◎',
228
+ circleCircle: 'ⓞ',
229
+ circleCross: 'ⓧ',
230
+ circlePipe: 'Ⓘ',
231
+ radioOn: '◉',
232
+ radioOff: '◯',
233
+ checkboxOn: '☒',
234
+ checkboxOff: '☐',
235
+ checkboxCircleOn: 'ⓧ',
236
+ checkboxCircleOff: 'Ⓘ',
237
+ pointer: '❯',
238
+ triangleUpOutline: '△',
239
+ triangleLeft: '◀',
240
+ triangleRight: '▶',
241
+ lozenge: '◆',
242
+ lozengeOutline: '◇',
243
+ hamburger: '☰',
244
+ smiley: '㋡',
245
+ mustache: '෴',
246
+ star: '★',
247
+ play: '▶',
248
+ nodejs: '⬢',
249
+ oneSeventh: '⅐',
250
+ oneNinth: '⅑',
251
+ oneTenth: '⅒',
252
+ };
253
+ const specialFallbackSymbols = {
254
+ tick: '√',
255
+ info: 'i',
256
+ warning: '‼',
257
+ cross: '×',
258
+ squareSmall: '□',
259
+ squareSmallFilled: '■',
260
+ circle: '( )',
261
+ circleFilled: '(*)',
262
+ circleDotted: '( )',
263
+ circleDouble: '( )',
264
+ circleCircle: '(○)',
265
+ circleCross: '(×)',
266
+ circlePipe: '(│)',
267
+ radioOn: '(*)',
268
+ radioOff: '( )',
269
+ checkboxOn: '[×]',
270
+ checkboxOff: '[ ]',
271
+ checkboxCircleOn: '(×)',
272
+ checkboxCircleOff: '( )',
273
+ pointer: '>',
274
+ triangleUpOutline: '∆',
275
+ triangleLeft: '◄',
276
+ triangleRight: '►',
277
+ lozenge: '♦',
278
+ lozengeOutline: '◊',
279
+ hamburger: '≡',
280
+ smiley: '☺',
281
+ mustache: '┌─┐',
282
+ star: '✶',
283
+ play: '►',
284
+ nodejs: '♦',
285
+ oneSeventh: '1/7',
286
+ oneNinth: '1/9',
287
+ oneTenth: '1/10',
288
+ };
289
+ export const mainSymbols = {
290
+ ...common,
291
+ ...specialMainSymbols,
292
+ };
293
+ export const fallbackSymbols = {
294
+ ...common,
295
+ ...specialFallbackSymbols,
296
+ };
297
+ const shouldUseMain = isUnicodeSupported();
298
+ const figures = shouldUseMain
299
+ ? mainSymbols
300
+ : fallbackSymbols;
301
+ export default figures;
302
+ const replacements = Object.entries(specialMainSymbols);
303
+ // On terminals which do not support Unicode symbols, substitute them to other symbols
304
+ export const replaceSymbols = (string, { useFallback = !shouldUseMain } = {}) => {
305
+ if (useFallback) {
306
+ for (const [key, mainSymbol] of replacements) {
307
+ const fallbackSymbol = fallbackSymbols[key];
308
+ if (!fallbackSymbol) {
309
+ throw new Error(`Unable to find fallback for ${key}`);
310
+ }
311
+ string = string.replaceAll(mainSymbol, fallbackSymbol);
312
+ }
313
+ }
314
+ return string;
315
+ };
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "@inquirer/figures",
3
+ "version": "2.0.9",
4
+ "description": "Vendored version of figures, for CJS compatibility",
5
+ "keywords": [
6
+ "answer",
7
+ "answers",
8
+ "ask",
9
+ "base",
10
+ "cli",
11
+ "command",
12
+ "command-line",
13
+ "confirm",
14
+ "enquirer",
15
+ "generate",
16
+ "generator",
17
+ "hyper",
18
+ "input",
19
+ "inquire",
20
+ "inquirer",
21
+ "interface",
22
+ "iterm",
23
+ "javascript",
24
+ "menu",
25
+ "node",
26
+ "nodejs",
27
+ "prompt",
28
+ "promptly",
29
+ "prompts",
30
+ "question",
31
+ "readline",
32
+ "scaffold",
33
+ "scaffolder",
34
+ "scaffolding",
35
+ "stdin",
36
+ "stdout",
37
+ "terminal",
38
+ "tty",
39
+ "types",
40
+ "typescript",
41
+ "ui",
42
+ "yeoman",
43
+ "yo",
44
+ "zsh"
45
+ ],
46
+ "license": "MIT",
47
+ "author": "Simon Boudrias <admin@simonboudrias.com>",
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "https://github.com/SBoudrias/Inquirer.js.git"
51
+ },
52
+ "files": [
53
+ "dist"
54
+ ],
55
+ "type": "module",
56
+ "sideEffects": false,
57
+ "exports": {
58
+ ".": {
59
+ "types": "./dist/index.d.ts",
60
+ "default": "./dist/index.js"
61
+ },
62
+ "./package.json": "./package.json"
63
+ },
64
+ "publishConfig": {
65
+ "access": "public"
66
+ },
67
+ "scripts": {
68
+ "tsc": "tsc"
69
+ },
70
+ "devDependencies": {
71
+ "@repo/tsconfig": "0.0.0",
72
+ "@types/node": "^26.1.1",
73
+ "typescript": "^6.0.2"
74
+ },
75
+ "engines": {
76
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
77
+ },
78
+ "main": "./dist/index.js",
79
+ "types": "./dist/index.d.ts",
80
+ "gitHead": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
81
+ }
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2025 Simon Boudrias
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.