@c9up/ream 0.2.25 → 0.2.27

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 (178) hide show
  1. package/README.md +2 -0
  2. package/dist/Codemods.d.ts +12 -0
  3. package/dist/Codemods.d.ts.map +1 -1
  4. package/dist/Codemods.js +114 -23
  5. package/dist/Codemods.js.map +1 -1
  6. package/dist/HttpKernel.d.ts +5 -1
  7. package/dist/HttpKernel.d.ts.map +1 -1
  8. package/dist/HttpKernel.js +6 -6
  9. package/dist/HttpKernel.js.map +1 -1
  10. package/dist/Ignitor.d.ts.map +1 -1
  11. package/dist/Ignitor.js +87 -14
  12. package/dist/Ignitor.js.map +1 -1
  13. package/dist/console/Kernel.d.ts.map +1 -1
  14. package/dist/console/Kernel.js +20 -1
  15. package/dist/console/Kernel.js.map +1 -1
  16. package/dist/console/cliui.d.ts +9 -245
  17. package/dist/console/cliui.d.ts.map +1 -1
  18. package/dist/console/cliui.js +9 -583
  19. package/dist/console/cliui.js.map +1 -1
  20. package/dist/console/make/commands.d.ts +19 -0
  21. package/dist/console/make/commands.d.ts.map +1 -0
  22. package/dist/console/make/commands.js +252 -0
  23. package/dist/console/make/commands.js.map +1 -0
  24. package/dist/console/make/eject.d.ts +28 -0
  25. package/dist/console/make/eject.d.ts.map +1 -0
  26. package/dist/console/make/eject.js +161 -0
  27. package/dist/console/make/eject.js.map +1 -0
  28. package/dist/console/make/flush.d.ts +51 -0
  29. package/dist/console/make/flush.d.ts.map +1 -0
  30. package/dist/console/make/flush.js +93 -0
  31. package/dist/console/make/flush.js.map +1 -0
  32. package/dist/console/make/generators.d.ts +36 -0
  33. package/dist/console/make/generators.d.ts.map +1 -0
  34. package/dist/console/make/generators.js +148 -0
  35. package/dist/console/make/generators.js.map +1 -0
  36. package/dist/console/make/naming.d.ts +32 -0
  37. package/dist/console/make/naming.d.ts.map +1 -0
  38. package/dist/console/make/naming.js +82 -0
  39. package/dist/console/make/naming.js.map +1 -0
  40. package/dist/console/make/resolve.d.ts +46 -0
  41. package/dist/console/make/resolve.d.ts.map +1 -0
  42. package/dist/console/make/resolve.js +113 -0
  43. package/dist/console/make/resolve.js.map +1 -0
  44. package/dist/console/prompts.d.ts.map +1 -1
  45. package/dist/console/prompts.js +34 -46
  46. package/dist/console/prompts.js.map +1 -1
  47. package/dist/console/selection.d.ts +54 -0
  48. package/dist/console/selection.d.ts.map +1 -0
  49. package/dist/console/selection.js +235 -0
  50. package/dist/console/selection.js.map +1 -0
  51. package/dist/console/ui.d.ts +9 -15
  52. package/dist/console/ui.d.ts.map +1 -1
  53. package/dist/console/ui.js +11 -24
  54. package/dist/console/ui.js.map +1 -1
  55. package/dist/dev/fullReload.d.ts +35 -10
  56. package/dist/dev/fullReload.d.ts.map +1 -1
  57. package/dist/dev/fullReload.js +55 -14
  58. package/dist/dev/fullReload.js.map +1 -1
  59. package/dist/dev/hotWatcher.d.ts +19 -3
  60. package/dist/dev/hotWatcher.d.ts.map +1 -1
  61. package/dist/dev/hotWatcher.js +168 -18
  62. package/dist/dev/hotWatcher.js.map +1 -1
  63. package/dist/dev/readyBanner.d.ts +45 -0
  64. package/dist/dev/readyBanner.d.ts.map +1 -0
  65. package/dist/dev/readyBanner.js +72 -0
  66. package/dist/dev/readyBanner.js.map +1 -0
  67. package/dist/dev/shortcuts.d.ts +41 -0
  68. package/dist/dev/shortcuts.d.ts.map +1 -0
  69. package/dist/dev/shortcuts.js +142 -0
  70. package/dist/dev/shortcuts.js.map +1 -0
  71. package/dist/errors/prettyPrintError.d.ts.map +1 -1
  72. package/dist/errors/prettyPrintError.js +5 -8
  73. package/dist/errors/prettyPrintError.js.map +1 -1
  74. package/dist/errors/renderError.d.ts +46 -0
  75. package/dist/errors/renderError.d.ts.map +1 -0
  76. package/dist/errors/renderError.js +197 -0
  77. package/dist/errors/renderError.js.map +1 -0
  78. package/dist/hot.js +12 -2
  79. package/dist/hot.js.map +1 -1
  80. package/dist/index.d.ts +4 -3
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.js +5 -2
  83. package/dist/index.js.map +1 -1
  84. package/dist/profiler/MemoryProfileStore.d.ts +23 -0
  85. package/dist/profiler/MemoryProfileStore.d.ts.map +1 -0
  86. package/dist/profiler/MemoryProfileStore.js +70 -0
  87. package/dist/profiler/MemoryProfileStore.js.map +1 -0
  88. package/dist/profiler/Profiler.d.ts +56 -0
  89. package/dist/profiler/Profiler.d.ts.map +1 -0
  90. package/dist/profiler/Profiler.js +162 -0
  91. package/dist/profiler/Profiler.js.map +1 -0
  92. package/dist/profiler/collectors.d.ts +105 -0
  93. package/dist/profiler/collectors.d.ts.map +1 -0
  94. package/dist/profiler/collectors.js +164 -0
  95. package/dist/profiler/collectors.js.map +1 -0
  96. package/dist/profiler/endpoint.d.ts +27 -0
  97. package/dist/profiler/endpoint.d.ts.map +1 -0
  98. package/dist/profiler/endpoint.js +79 -0
  99. package/dist/profiler/endpoint.js.map +1 -0
  100. package/dist/profiler/index.d.ts +26 -0
  101. package/dist/profiler/index.d.ts.map +1 -0
  102. package/dist/profiler/index.js +41 -0
  103. package/dist/profiler/index.js.map +1 -0
  104. package/dist/profiler/middleware.d.ts +17 -0
  105. package/dist/profiler/middleware.d.ts.map +1 -0
  106. package/dist/profiler/middleware.js +79 -0
  107. package/dist/profiler/middleware.js.map +1 -0
  108. package/dist/profiler/render.d.ts +23 -0
  109. package/dist/profiler/render.d.ts.map +1 -0
  110. package/dist/profiler/render.js +141 -0
  111. package/dist/profiler/render.js.map +1 -0
  112. package/dist/profiler/toolbar.d.ts +34 -0
  113. package/dist/profiler/toolbar.d.ts.map +1 -0
  114. package/dist/profiler/toolbar.js +104 -0
  115. package/dist/profiler/toolbar.js.map +1 -0
  116. package/dist/profiler/types.d.ts +70 -0
  117. package/dist/profiler/types.d.ts.map +1 -0
  118. package/dist/profiler/types.js +11 -0
  119. package/dist/profiler/types.js.map +1 -0
  120. package/dist/router/Router.d.ts +11 -0
  121. package/dist/router/Router.d.ts.map +1 -1
  122. package/dist/router/Router.js +16 -0
  123. package/dist/router/Router.js.map +1 -1
  124. package/dist/stubs/index.d.ts +11 -0
  125. package/dist/stubs/index.d.ts.map +1 -0
  126. package/dist/stubs/index.js +12 -0
  127. package/dist/stubs/index.js.map +1 -0
  128. package/dist/stubs/template.d.ts +63 -0
  129. package/dist/stubs/template.d.ts.map +1 -0
  130. package/dist/stubs/template.js +209 -0
  131. package/dist/stubs/template.js.map +1 -0
  132. package/events.win32-x64-msvc.node +0 -0
  133. package/index.win32-x64-msvc.node +0 -0
  134. package/package.json +7 -1
  135. package/scheduler.win32-x64-msvc.node +0 -0
  136. package/src/Codemods.ts +153 -29
  137. package/src/HttpKernel.ts +12 -8
  138. package/src/Ignitor.ts +95 -14
  139. package/src/console/Kernel.ts +21 -1
  140. package/src/console/cliui.ts +44 -754
  141. package/src/console/make/commands.ts +270 -0
  142. package/src/console/make/eject.ts +163 -0
  143. package/src/console/make/flush.ts +125 -0
  144. package/src/console/make/generators.ts +176 -0
  145. package/src/console/make/naming.ts +85 -0
  146. package/src/console/make/resolve.ts +134 -0
  147. package/src/console/prompts.ts +45 -64
  148. package/src/console/selection.ts +274 -0
  149. package/src/console/ui.ts +12 -24
  150. package/src/dev/fullReload.ts +57 -15
  151. package/src/dev/hotWatcher.ts +165 -21
  152. package/src/dev/readyBanner.ts +84 -0
  153. package/src/dev/shortcuts.ts +158 -0
  154. package/src/errors/prettyPrintError.ts +5 -5
  155. package/src/errors/renderError.ts +230 -0
  156. package/src/hot.ts +12 -2
  157. package/src/index.ts +23 -3
  158. package/src/profiler/MemoryProfileStore.ts +75 -0
  159. package/src/profiler/Profiler.ts +182 -0
  160. package/src/profiler/collectors.ts +230 -0
  161. package/src/profiler/endpoint.ts +98 -0
  162. package/src/profiler/index.ts +56 -0
  163. package/src/profiler/middleware.ts +83 -0
  164. package/src/profiler/render.ts +173 -0
  165. package/src/profiler/toolbar.ts +106 -0
  166. package/src/profiler/types.ts +75 -0
  167. package/src/router/Router.ts +16 -0
  168. package/src/stubs/index.ts +14 -0
  169. package/src/stubs/template.ts +262 -0
  170. package/stubs/make/command.stub +29 -0
  171. package/stubs/make/controller.stub +30 -0
  172. package/stubs/make/entity.stub +11 -0
  173. package/stubs/make/event.stub +13 -0
  174. package/stubs/make/listener.stub +13 -0
  175. package/stubs/make/middleware.stub +16 -0
  176. package/stubs/make/provider.stub +26 -0
  177. package/stubs/make/service.stub +27 -0
  178. package/stubs/make/validator.stub +10 -0
@@ -1,250 +1,14 @@
1
1
  /**
2
- * Terminal UI (Console / `@poppinss/cliui` surface).
2
+ * Terminal UI — a thin re-export of `@c9up/lumen`.
3
3
  *
4
- * Everything renders through {@link Ui.write}, which is what makes the layer
5
- * testable: in `raw` mode nothing reaches the terminal and every line is kept
6
- * in memory for assertions. Colours become `name(text)` there — the same trick
7
- * Console uses, so an expected log stays a readable string instead of a soup of
8
- * escape codes.
9
- */
10
- /** Style names, in kleur's spelling. */
11
- declare const STYLES: {
12
- readonly reset: 0;
13
- readonly bold: 1;
14
- readonly dim: 2;
15
- readonly italic: 3;
16
- readonly underline: 4;
17
- readonly red: 31;
18
- readonly green: 32;
19
- readonly yellow: 33;
20
- readonly blue: 34;
21
- readonly magenta: 35;
22
- readonly cyan: 36;
23
- readonly white: 37;
24
- readonly grey: 90;
25
- readonly bgRed: 41;
26
- readonly bgGreen: 42;
27
- readonly bgYellow: 43;
28
- readonly bgBlue: 44;
29
- };
30
- export type StyleName = keyof typeof STYLES;
31
- /**
32
- * A chainable colour function.
33
- *
34
- * Called with text it renders; called with nothing it returns itself, which is
35
- * what allows Console's `colors.bgGreen().white(' CREATED ')`.
36
- */
37
- export type Colors = ((text?: string) => string & Colors) & {
38
- [K in StyleName]: Colors;
39
- };
40
- /** Where a line goes when the UI is not in raw mode. */
41
- type Stream = 'stdout' | 'stderr';
42
- /**
43
- * The console UI: colours, logger and widgets, plus the mode switch that makes
44
- * all of it assertable.
45
- */
46
- /** One captured line, with the stream it would have gone to. */
47
- export interface CapturedLog {
48
- message: string;
49
- stream: Stream;
50
- }
51
- export declare class Ui {
52
- #private;
53
- readonly colors: Colors;
54
- readonly logger: Logger;
55
- constructor();
56
- /** `raw` keeps every line in memory instead of printing it. */
57
- switchMode(mode: 'normal' | 'raw'): void;
58
- get mode(): 'normal' | 'raw';
59
- /** Everything written since raw mode was switched on. */
60
- getLogs(): string[];
61
- /** The same lines with the stream each one targeted. */
62
- getCapturedLogs(): CapturedLog[];
63
- /**
64
- * Table rows as they were given, before padding.
65
- *
66
- * Assertions compare data, not layout: `assertTableRows` should not break
67
- * because a column grew wider.
68
- */
69
- getTableRows(): string[][];
70
- /** @internal Recorded by {@link Table.render}. */
71
- captureTableRow(cells: readonly string[]): void;
72
- /** @internal The head row, kept apart from the data rows. */
73
- captureTableHead(cells: readonly string[]): void;
74
- /**
75
- * The header cells of the last rendered table.
76
- *
77
- * Kept apart from {@link getTableRows} so a caller can assert the data alone.
78
- * `assertTableRows` looks at both: Console treats the head as one more row, and a
79
- * test may or may not restate it.
80
- */
81
- getTableHead(): string[];
82
- /** The single sink every widget writes through. */
83
- write(line: string, stream?: Stream): void;
84
- table(): Table;
85
- sticker(): Box;
86
- instructions(): Box;
87
- tasks(options?: TasksOptions): Tasks;
88
- }
89
- /**
90
- * Command logger.
91
- *
92
- * Alert levels go to stderr so a command's data output stays pipeable — a
93
- * warning must not end up inside `ream list --json | jq`.
94
- */
95
- export declare class Logger {
96
- #private;
97
- constructor(ui: Ui);
98
- /**
99
- * Prepend a fixed marker to EVERY message from now on.
100
- *
101
- * Console's own `prefix` is per-message (`info(msg, { prefix })`, supported
102
- * below); this sticky form is kept because a command tagging all its output
103
- * should not repeat itself on every call.
104
- */
105
- prefix(value: string): this;
106
- suffix(value: string): this;
107
- info(message: string, options?: MessageOptions): void;
108
- success(message: string, options?: MessageOptions): void;
109
- warning(message: string, options?: MessageOptions): void;
110
- error(message: string | Error, options?: MessageOptions): void;
111
- /**
112
- * A message with animated trailing dots (Console `logger.await`).
113
- *
114
- * The animation only ticks on a TTY: on a pipe, or in raw mode, one line per
115
- * frame would be noise in a log and unassertable in a test.
116
- */
117
- await(message: string, options?: MessageOptions): Animation;
118
- fatal(message: string | Error): void;
119
- /** Only prints when DEBUG is set — the usual escape hatch for noisy detail. */
120
- debug(message: string): void;
121
- /** A line with no decoration. Use it for the command's own output. */
122
- log(message: string): void;
123
- /**
124
- * A step whose outcome is reported later (Console `logger.action`).
125
- *
126
- * const create = this.logger.action('creating config/auth.ts')
127
- * try { … ; create.displayDuration().succeeded() }
128
- * catch (error) { create.failed(error) }
129
- */
130
- action(title: string): Action;
131
- }
132
- /** Per-message decoration (Console `logger.info(msg, { prefix, suffix })`). */
133
- export interface MessageOptions {
134
- prefix?: string | number;
135
- suffix?: string | number;
136
- }
137
- /**
138
- * An "in progress" message with animated dots (Console `logger.await`).
139
- *
140
- * Only animates on a TTY. Elsewhere it prints the message once and each
141
- * `update` once more, which keeps logs and test assertions readable.
142
- */
143
- export declare class Animation {
144
- #private;
145
- constructor(ui: Ui, message: string, options: MessageOptions);
146
- start(): this;
147
- update(message: string, options?: MessageOptions): this;
148
- stop(): void;
149
- }
150
- /** A pending action, reported through one of its terminal methods. */
151
- export declare class Action {
152
- #private;
153
- constructor(ui: Ui, title: string, startedAt?: number);
154
- /** Append how long the action took. */
155
- displayDuration(): this;
156
- succeeded(): void;
157
- skipped(reason?: string): void;
158
- failed(error: unknown): void;
159
- }
160
- /** A cell with its alignment (Console `{ content, hAlign }`). */
161
- export interface TableCell {
162
- content: string;
163
- hAlign?: 'left' | 'right' | 'center';
164
- }
165
- export type TableInput = string | TableCell;
166
- /** A column-aligned table (Console `ui.table()`). */
167
- export declare class Table {
168
- #private;
169
- constructor(ui: Ui);
170
- head(columns: readonly TableInput[]): this;
171
- row(cells: readonly TableInput[]): this;
172
- /**
173
- * Stretch the table to the terminal width, the first column absorbing the
174
- * slack (Console `fullWidth`). Falls back to content width when the width is
175
- * unknown — a pipe has no columns.
176
- */
177
- fullWidth(): this;
178
- /**
179
- * Which column absorbs the slack in full-width mode (Console
180
- * `fluidColumnIndex`). Defaults to the first.
181
- */
182
- fluidColumnIndex(index: number): this;
183
- render(): void;
184
- }
185
- /**
186
- * A bordered box — `sticker()` for a highlighted block, `instructions()` for a
187
- * decorated list of steps.
188
- */
189
- export declare class Box {
190
- #private;
191
- constructor(ui: Ui, kind: 'sticker' | 'instructions');
192
- add(line: string): this;
193
- render(): void;
194
- }
195
- /** Handed to a task callback so it can report progress and failure. */
196
- export declare class TaskContext {
197
- #private;
198
- constructor(ui: Ui, title: string, verbose?: boolean);
199
- /**
200
- * Report progress.
201
- *
202
- * Verbose prints every message; minimal keeps only the last one, surfaced on
203
- * the task's final line. A progress loop otherwise floods the output with a
204
- * line per percent.
205
- */
206
- update(message: string): void;
207
- /** @internal The last progress message, shown when the task ends. */
208
- get lastMessage(): string;
209
- /**
210
- * Mark the task as failed. Returned from the callback rather than thrown, so
211
- * an expected failure reads like a value — Console's `return task.error(…)`.
212
- */
213
- error(reason: string | Error): Error;
214
- /** @internal */
215
- get failure(): Error | undefined;
216
- }
217
- export interface TaskOutcome {
218
- title: string;
219
- state: 'succeeded' | 'failed';
220
- message: string;
221
- error?: Error;
222
- }
223
- /**
224
- * A sequence of steps with their outcome (Console `ui.tasks()`).
4
+ * This file used to BE the implementation. It moved out because the framework
5
+ * was not its only consumer: the Rust CLI, helix's reporter and every package
6
+ * that prints a line all wanted the same `[ warn ]`, in the same yellow, and
7
+ * none of them can depend on ream.
225
8
  *
226
- * Sequential on purpose: the point is a readable progress report, and running
227
- * them concurrently would interleave the lines into noise. A failing task stops
228
- * the run — the ones after it usually depend on it.
9
+ * Kept as a module rather than deleted so existing imports — `from
10
+ * '../console/cliui.js'`, and `Logger`/`Ui` off the package barrel — keep
11
+ * resolving.
229
12
  */
230
- export interface TasksOptions {
231
- /**
232
- * Print every progress message instead of only the last one.
233
- *
234
- * Minimal is the default, as in Console: a hundred `Downloaded 42%` lines make a
235
- * transcript unreadable. Verbose is what a `--verbose` flag turns on.
236
- */
237
- verbose?: boolean;
238
- }
239
- export declare class Tasks {
240
- #private;
241
- constructor(ui: Ui, options?: TasksOptions);
242
- add(title: string, work: (task: TaskContext) => Promise<unknown>): this;
243
- /** Results in declaration order, including the task that failed. */
244
- get outcomes(): TaskOutcome[];
245
- run(): Promise<TaskOutcome[]>;
246
- }
247
- /** Removes the SGR escape sequences `colors` writes, leaving the visible text. */
248
- export declare function stripAnsi(text: string): string;
249
- export {};
13
+ export { Action, Box, type CapturedLog, type Colors, ConsoleRenderer, Logger, type LoggerOptions, MemoryRenderer, type MessageOptions, type Renderer, Spinner, Steps, type StyleName, stripAnsi, Table, type TableCell, type TableChars, type TableInput, type TableOptions, type TableRow, Task, type TaskCallback, TaskContext, type TaskError, type TaskFailure, type TaskOutcome, type TaskResult, type TaskState, Tasks, type TasksOptions, Ui, type UiMode, } from '@c9up/lumen';
250
14
  //# sourceMappingURL=cliui.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cliui.d.ts","sourceRoot":"","sources":["../../src/console/cliui.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,wCAAwC;AACxC,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;CAkBF,CAAA;AAEV,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,MAAM,CAAA;AAE3C;;;;;GAKG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAAC,GAAG;KAAG,CAAC,IAAI,SAAS,GAAG,MAAM;CAAE,CAAA;AAsDxF,wDAAwD;AACxD,KAAK,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEjC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACf;AAED,qBAAa,EAAE;;IAMb,QAAQ,CAA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