@mandujs/cli 0.15.1 → 0.15.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 (90) hide show
  1. package/README.ko.md +33 -33
  2. package/README.md +354 -354
  3. package/package.json +2 -2
  4. package/src/commands/check.ts +71 -7
  5. package/src/commands/contract.ts +173 -173
  6. package/src/commands/dev.ts +9 -42
  7. package/src/commands/guard-arch.ts +303 -303
  8. package/src/commands/init.ts +50 -5
  9. package/src/commands/monitor.ts +300 -300
  10. package/src/commands/openapi.ts +107 -107
  11. package/src/commands/registry.ts +1 -0
  12. package/src/commands/start.ts +9 -42
  13. package/src/errors/codes.ts +35 -35
  14. package/src/errors/index.ts +2 -2
  15. package/src/errors/messages.ts +143 -143
  16. package/src/hooks/index.ts +17 -17
  17. package/src/hooks/preaction.ts +256 -256
  18. package/src/main.ts +9 -7
  19. package/src/terminal/banner.ts +166 -166
  20. package/src/terminal/help.ts +306 -306
  21. package/src/terminal/index.ts +71 -71
  22. package/src/terminal/output.ts +295 -295
  23. package/src/terminal/palette.ts +30 -30
  24. package/src/terminal/progress.ts +327 -327
  25. package/src/terminal/stream-writer.ts +214 -214
  26. package/src/terminal/table.ts +354 -354
  27. package/src/terminal/theme.ts +142 -142
  28. package/src/util/bun.ts +6 -6
  29. package/src/util/fs.ts +23 -23
  30. package/src/util/handlers.ts +49 -5
  31. package/src/util/lockfile.ts +66 -0
  32. package/src/util/output.ts +22 -22
  33. package/src/util/port.ts +71 -71
  34. package/templates/default/AGENTS.md +96 -96
  35. package/templates/default/app/api/health/route.ts +13 -13
  36. package/templates/default/app/globals.css +49 -49
  37. package/templates/default/app/layout.tsx +27 -27
  38. package/templates/default/app/page.tsx +38 -38
  39. package/templates/default/src/client/shared/lib/utils.ts +16 -16
  40. package/templates/default/src/client/shared/ui/button.tsx +57 -57
  41. package/templates/default/src/client/shared/ui/card.tsx +1 -1
  42. package/templates/default/src/client/shared/ui/index.ts +21 -21
  43. package/templates/default/src/client/shared/ui/input.tsx +5 -1
  44. package/templates/default/tests/example.test.ts +58 -58
  45. package/templates/default/tests/helpers.ts +52 -52
  46. package/templates/default/tests/setup.ts +9 -9
  47. package/templates/default/tsconfig.json +23 -23
  48. package/templates/realtime-chat/AGENTS.md +96 -0
  49. package/templates/realtime-chat/app/api/chat/messages/route.ts +63 -0
  50. package/templates/realtime-chat/app/api/chat/stream/route.ts +48 -0
  51. package/templates/realtime-chat/app/api/health/route.ts +13 -0
  52. package/templates/realtime-chat/app/globals.css +49 -0
  53. package/templates/realtime-chat/app/layout.tsx +27 -0
  54. package/templates/realtime-chat/app/page.tsx +16 -0
  55. package/templates/realtime-chat/package.json +34 -0
  56. package/templates/realtime-chat/src/client/app/index.ts +1 -0
  57. package/templates/realtime-chat/src/client/entities/index.ts +1 -0
  58. package/templates/realtime-chat/src/client/features/chat/chat-api.ts +177 -0
  59. package/templates/realtime-chat/src/client/features/chat/realtime-chat-starter.client.tsx +89 -0
  60. package/templates/realtime-chat/src/client/features/chat/use-realtime-chat.ts +73 -0
  61. package/templates/realtime-chat/src/client/features/index.ts +1 -0
  62. package/templates/realtime-chat/src/client/pages/index.ts +1 -0
  63. package/templates/realtime-chat/src/client/shared/index.ts +1 -0
  64. package/templates/realtime-chat/src/client/shared/lib/utils.ts +16 -0
  65. package/templates/realtime-chat/src/client/shared/ui/button.tsx +57 -0
  66. package/templates/realtime-chat/src/client/shared/ui/card.tsx +78 -0
  67. package/templates/realtime-chat/src/client/shared/ui/index.ts +21 -0
  68. package/templates/realtime-chat/src/client/shared/ui/input.tsx +28 -0
  69. package/templates/realtime-chat/src/client/widgets/index.ts +1 -0
  70. package/templates/realtime-chat/src/server/api/index.ts +1 -0
  71. package/templates/realtime-chat/src/server/application/ai-adapter.ts +24 -0
  72. package/templates/realtime-chat/src/server/application/chat-store.ts +88 -0
  73. package/templates/realtime-chat/src/server/application/index.ts +1 -0
  74. package/templates/realtime-chat/src/server/core/index.ts +1 -0
  75. package/templates/realtime-chat/src/server/domain/index.ts +1 -0
  76. package/templates/realtime-chat/src/server/infra/index.ts +1 -0
  77. package/templates/realtime-chat/src/shared/contracts/chat.ts +29 -0
  78. package/templates/realtime-chat/src/shared/contracts/index.ts +1 -0
  79. package/templates/realtime-chat/src/shared/env/index.ts +1 -0
  80. package/templates/realtime-chat/src/shared/schema/index.ts +1 -0
  81. package/templates/realtime-chat/src/shared/types/index.ts +1 -0
  82. package/templates/realtime-chat/src/shared/utils/client/index.ts +1 -0
  83. package/templates/realtime-chat/src/shared/utils/server/index.ts +1 -0
  84. package/templates/realtime-chat/tests/chat-api.sse.test.ts +151 -0
  85. package/templates/realtime-chat/tests/chat-starter.test.ts +149 -0
  86. package/templates/realtime-chat/tests/chat-store.concurrency.test.ts +39 -0
  87. package/templates/realtime-chat/tests/example.test.ts +58 -0
  88. package/templates/realtime-chat/tests/helpers.ts +52 -0
  89. package/templates/realtime-chat/tests/setup.ts +9 -0
  90. package/templates/realtime-chat/tsconfig.json +23 -0
@@ -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";