@mandujs/cli 0.12.2 → 0.13.0
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/README.ko.md +234 -234
- package/README.md +354 -354
- package/package.json +2 -2
- package/src/commands/contract.ts +173 -173
- package/src/commands/dev.ts +8 -68
- package/src/commands/doctor.ts +27 -27
- package/src/commands/guard-arch.ts +303 -303
- package/src/commands/guard-check.ts +3 -3
- package/src/commands/monitor.ts +300 -300
- package/src/commands/openapi.ts +107 -107
- package/src/commands/registry.ts +367 -357
- package/src/commands/routes.ts +228 -228
- package/src/commands/start.ts +184 -0
- package/src/errors/codes.ts +35 -35
- package/src/errors/index.ts +2 -2
- package/src/errors/messages.ts +143 -143
- package/src/hooks/index.ts +17 -17
- package/src/hooks/preaction.ts +256 -256
- package/src/main.ts +37 -34
- package/src/terminal/banner.ts +166 -166
- package/src/terminal/help.ts +306 -306
- package/src/terminal/index.ts +71 -71
- package/src/terminal/output.ts +295 -295
- package/src/terminal/palette.ts +30 -30
- package/src/terminal/progress.ts +327 -327
- package/src/terminal/stream-writer.ts +214 -214
- package/src/terminal/table.ts +354 -354
- package/src/terminal/theme.ts +142 -142
- package/src/util/bun.ts +6 -6
- package/src/util/fs.ts +23 -23
- package/src/util/handlers.ts +96 -0
- package/src/util/manifest.ts +52 -52
- package/src/util/output.ts +22 -22
- package/src/util/port.ts +71 -71
- package/templates/default/AGENTS.md +96 -96
- package/templates/default/app/api/health/route.ts +13 -13
- package/templates/default/app/globals.css +49 -49
- package/templates/default/app/layout.tsx +27 -27
- package/templates/default/app/page.tsx +38 -38
- package/templates/default/package.json +1 -0
- package/templates/default/src/client/shared/lib/utils.ts +16 -16
- package/templates/default/src/client/shared/ui/button.tsx +57 -57
- package/templates/default/src/client/shared/ui/card.tsx +78 -78
- package/templates/default/src/client/shared/ui/index.ts +21 -21
- package/templates/default/src/client/shared/ui/input.tsx +24 -24
- package/templates/default/tests/example.test.ts +58 -58
- package/templates/default/tests/helpers.ts +52 -52
- package/templates/default/tests/setup.ts +9 -9
- package/templates/default/tsconfig.json +12 -14
- package/templates/default/apps/server/main.ts +0 -67
- package/templates/default/apps/web/entry.tsx +0 -35
package/src/terminal/index.ts
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Terminal UI module
|
|
3
|
-
*
|
|
4
|
-
* DNA-009: Color palette & theme
|
|
5
|
-
* DNA-013: Safe Stream Writer
|
|
6
|
-
* DNA-015: Semantic help system
|
|
7
|
-
* DNA-017: Hero banner
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
export { MANDU_PALETTE, type ManduColor } from "./palette.js";
|
|
11
|
-
export { theme, isRich, colorize, stripAnsi } from "./theme.js";
|
|
12
|
-
export {
|
|
13
|
-
shouldShowBanner,
|
|
14
|
-
renderHeroBanner,
|
|
15
|
-
renderMiniBanner,
|
|
16
|
-
renderBoxBanner,
|
|
17
|
-
} from "./banner.js";
|
|
18
|
-
export {
|
|
19
|
-
createSafeStreamWriter,
|
|
20
|
-
getSafeWriter,
|
|
21
|
-
safePrint,
|
|
22
|
-
safePrintln,
|
|
23
|
-
safePrintError,
|
|
24
|
-
type SafeStreamWriter,
|
|
25
|
-
type SafeStreamWriterOptions,
|
|
26
|
-
} from "./stream-writer.js";
|
|
27
|
-
export {
|
|
28
|
-
getOutputMode,
|
|
29
|
-
createFormatContext,
|
|
30
|
-
formatOutput,
|
|
31
|
-
formatError,
|
|
32
|
-
formatSuccess,
|
|
33
|
-
formatWarning,
|
|
34
|
-
formatInfo,
|
|
35
|
-
formatList,
|
|
36
|
-
type OutputMode,
|
|
37
|
-
type OutputOptions,
|
|
38
|
-
type FormatContext,
|
|
39
|
-
} from "./output.js";
|
|
40
|
-
export {
|
|
41
|
-
renderTable,
|
|
42
|
-
renderKeyValueTable,
|
|
43
|
-
type TableColumn,
|
|
44
|
-
type BorderStyle,
|
|
45
|
-
type RenderTableOptions,
|
|
46
|
-
} from "./table.js";
|
|
47
|
-
export {
|
|
48
|
-
createCliProgress,
|
|
49
|
-
withProgress,
|
|
50
|
-
startSpinner,
|
|
51
|
-
runSteps,
|
|
52
|
-
type ProgressOptions,
|
|
53
|
-
type ProgressReporter,
|
|
54
|
-
} from "./progress.js";
|
|
55
|
-
export {
|
|
56
|
-
formatHelpExample,
|
|
57
|
-
formatHelpExampleGroup,
|
|
58
|
-
formatHelpOption,
|
|
59
|
-
formatHelpSubcommand,
|
|
60
|
-
formatSectionTitle,
|
|
61
|
-
renderHelp,
|
|
62
|
-
renderCommandHelp,
|
|
63
|
-
formatUsageHint,
|
|
64
|
-
formatErrorHint,
|
|
65
|
-
MANDU_HELP,
|
|
66
|
-
type HelpExample,
|
|
67
|
-
type HelpOption,
|
|
68
|
-
type HelpSubcommand,
|
|
69
|
-
type HelpSection,
|
|
70
|
-
type HelpDefinition,
|
|
71
|
-
} from "./help.js";
|
|
1
|
+
/**
|
|
2
|
+
* Terminal UI module
|
|
3
|
+
*
|
|
4
|
+
* DNA-009: Color palette & theme
|
|
5
|
+
* DNA-013: Safe Stream Writer
|
|
6
|
+
* DNA-015: Semantic help system
|
|
7
|
+
* DNA-017: Hero banner
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export { MANDU_PALETTE, type ManduColor } from "./palette.js";
|
|
11
|
+
export { theme, isRich, colorize, stripAnsi } from "./theme.js";
|
|
12
|
+
export {
|
|
13
|
+
shouldShowBanner,
|
|
14
|
+
renderHeroBanner,
|
|
15
|
+
renderMiniBanner,
|
|
16
|
+
renderBoxBanner,
|
|
17
|
+
} from "./banner.js";
|
|
18
|
+
export {
|
|
19
|
+
createSafeStreamWriter,
|
|
20
|
+
getSafeWriter,
|
|
21
|
+
safePrint,
|
|
22
|
+
safePrintln,
|
|
23
|
+
safePrintError,
|
|
24
|
+
type SafeStreamWriter,
|
|
25
|
+
type SafeStreamWriterOptions,
|
|
26
|
+
} from "./stream-writer.js";
|
|
27
|
+
export {
|
|
28
|
+
getOutputMode,
|
|
29
|
+
createFormatContext,
|
|
30
|
+
formatOutput,
|
|
31
|
+
formatError,
|
|
32
|
+
formatSuccess,
|
|
33
|
+
formatWarning,
|
|
34
|
+
formatInfo,
|
|
35
|
+
formatList,
|
|
36
|
+
type OutputMode,
|
|
37
|
+
type OutputOptions,
|
|
38
|
+
type FormatContext,
|
|
39
|
+
} from "./output.js";
|
|
40
|
+
export {
|
|
41
|
+
renderTable,
|
|
42
|
+
renderKeyValueTable,
|
|
43
|
+
type TableColumn,
|
|
44
|
+
type BorderStyle,
|
|
45
|
+
type RenderTableOptions,
|
|
46
|
+
} from "./table.js";
|
|
47
|
+
export {
|
|
48
|
+
createCliProgress,
|
|
49
|
+
withProgress,
|
|
50
|
+
startSpinner,
|
|
51
|
+
runSteps,
|
|
52
|
+
type ProgressOptions,
|
|
53
|
+
type ProgressReporter,
|
|
54
|
+
} from "./progress.js";
|
|
55
|
+
export {
|
|
56
|
+
formatHelpExample,
|
|
57
|
+
formatHelpExampleGroup,
|
|
58
|
+
formatHelpOption,
|
|
59
|
+
formatHelpSubcommand,
|
|
60
|
+
formatSectionTitle,
|
|
61
|
+
renderHelp,
|
|
62
|
+
renderCommandHelp,
|
|
63
|
+
formatUsageHint,
|
|
64
|
+
formatErrorHint,
|
|
65
|
+
MANDU_HELP,
|
|
66
|
+
type HelpExample,
|
|
67
|
+
type HelpOption,
|
|
68
|
+
type HelpSubcommand,
|
|
69
|
+
type HelpSection,
|
|
70
|
+
type HelpDefinition,
|
|
71
|
+
} from "./help.js";
|