@mandujs/core 0.12.2 → 0.13.1
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 +304 -304
- package/package.json +1 -1
- package/src/brain/architecture/analyzer.ts +28 -26
- package/src/brain/doctor/analyzer.ts +1 -1
- package/src/bundler/dev.ts +0 -1
- package/src/change/history.ts +3 -3
- package/src/change/snapshot.ts +10 -9
- package/src/change/transaction.ts +2 -2
- package/src/config/mandu.ts +103 -96
- package/src/config/validate.ts +225 -215
- package/src/error/classifier.ts +2 -2
- package/src/error/formatter.ts +32 -32
- package/src/error/stack-analyzer.ts +5 -0
- package/src/filling/context.ts +592 -569
- package/src/filling/index.ts +2 -0
- package/src/filling/sse.test.ts +168 -0
- package/src/filling/sse.ts +162 -0
- package/src/generator/contract-glue.ts +2 -1
- package/src/generator/generate.ts +12 -10
- package/src/generator/templates.ts +80 -79
- package/src/guard/auto-correct.ts +1 -1
- package/src/guard/check.ts +128 -128
- package/src/guard/presets/cqrs.test.ts +35 -14
- package/src/index.ts +7 -1
- package/src/paths.test.ts +47 -0
- package/src/paths.ts +47 -0
- package/src/report/build.ts +1 -1
- package/src/router/fs-routes.ts +344 -401
- package/src/router/fs-types.ts +270 -278
- package/src/router/index.ts +81 -81
- package/src/runtime/escape.ts +44 -0
- package/src/runtime/server.ts +281 -24
- package/src/runtime/ssr.ts +362 -367
- package/src/runtime/streaming-ssr.ts +1236 -1245
- package/src/watcher/rules.ts +5 -5
package/src/watcher/rules.ts
CHANGED
|
@@ -21,10 +21,10 @@ import fs from "fs/promises";
|
|
|
21
21
|
*/
|
|
22
22
|
export const MVP_RULES: ArchRule[] = [
|
|
23
23
|
{
|
|
24
|
-
id: "GENERATED_DIRECT_EDIT",
|
|
24
|
+
id: "GENERATED_DIRECT_EDIT",
|
|
25
25
|
name: "Generated Direct Edit",
|
|
26
26
|
description: "Generated 파일은 직접 수정하면 안 됩니다",
|
|
27
|
-
pattern: "**/generated/**",
|
|
27
|
+
pattern: "**/generated/**",
|
|
28
28
|
action: "warn",
|
|
29
29
|
message: "Generated 파일이 직접 수정되었습니다. 이 파일은 `mandu generate`로 재생성됩니다.",
|
|
30
30
|
agentAction: "regenerate",
|
|
@@ -64,10 +64,10 @@ export const MVP_RULES: ArchRule[] = [
|
|
|
64
64
|
agentCommand: "mandu_check_location",
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
id: "FORBIDDEN_IMPORT",
|
|
67
|
+
id: "FORBIDDEN_IMPORT",
|
|
68
68
|
name: "Forbidden Import in Generated",
|
|
69
69
|
description: "Generated 파일에서 금지된 모듈 import",
|
|
70
|
-
pattern: "**/generated/**",
|
|
70
|
+
pattern: "**/generated/**",
|
|
71
71
|
action: "warn",
|
|
72
72
|
message: "Generated 파일에서 금지된 모듈이 import되었습니다.",
|
|
73
73
|
forbiddenImports: ["fs", "child_process", "cluster", "worker_threads"],
|
|
@@ -88,7 +88,7 @@ export const MVP_RULES: ArchRule[] = [
|
|
|
88
88
|
id: "ISLAND_FIRST_MODIFIED",
|
|
89
89
|
name: "Island-First ComponentModule Modified",
|
|
90
90
|
description: "Island-First 방식으로 생성된 componentModule이 수동으로 변경되었습니다",
|
|
91
|
-
pattern: "
|
|
91
|
+
pattern: ".mandu/generated/web/routes/**",
|
|
92
92
|
action: "warn",
|
|
93
93
|
message: "Island-First componentModule이 수동 수정되었습니다. mandu generate를 실행하세요.",
|
|
94
94
|
agentAction: "regenerate",
|