@mandujs/mcp 0.18.1 → 0.18.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.
- package/package.json +1 -1
- package/src/tools/guard.ts +3 -3
- package/src/tools/hydration.ts +9 -1
package/package.json
CHANGED
package/src/tools/guard.ts
CHANGED
|
@@ -82,8 +82,8 @@ export const guardToolDefinitions: Tool[] = [
|
|
|
82
82
|
properties: {
|
|
83
83
|
preset: {
|
|
84
84
|
type: "string",
|
|
85
|
-
enum: ["fsd", "clean", "hexagonal", "atomic", "mandu"],
|
|
86
|
-
description: "Architecture preset to use (default: from config or 'mandu')",
|
|
85
|
+
enum: ["fsd", "clean", "hexagonal", "atomic", "cqrs", "mandu"],
|
|
86
|
+
description: "Architecture preset to use (default: from config or 'mandu'). Use 'cqrs' for Command/Query separation.",
|
|
87
87
|
},
|
|
88
88
|
autoFix: {
|
|
89
89
|
type: "boolean",
|
|
@@ -120,7 +120,7 @@ export const guardToolDefinitions: Tool[] = [
|
|
|
120
120
|
},
|
|
121
121
|
preset: {
|
|
122
122
|
type: "string",
|
|
123
|
-
enum: ["fsd", "clean", "hexagonal", "atomic", "mandu"],
|
|
123
|
+
enum: ["fsd", "clean", "hexagonal", "atomic", "cqrs", "mandu"],
|
|
124
124
|
description: "Architecture preset for context",
|
|
125
125
|
},
|
|
126
126
|
},
|
package/src/tools/hydration.ts
CHANGED
|
@@ -28,6 +28,12 @@ export const hydrationToolDefinitions: Tool[] = [
|
|
|
28
28
|
type: "boolean",
|
|
29
29
|
description: "Generate source maps for debugging",
|
|
30
30
|
},
|
|
31
|
+
targetRouteIds: {
|
|
32
|
+
type: "array",
|
|
33
|
+
items: { type: "string" },
|
|
34
|
+
description:
|
|
35
|
+
"Only rebuild specific islands by routeId. Skips Runtime/Router/Vendor rebuild for faster incremental updates. Omit to rebuild everything.",
|
|
36
|
+
},
|
|
31
37
|
},
|
|
32
38
|
required: [],
|
|
33
39
|
},
|
|
@@ -115,9 +121,10 @@ export function hydrationTools(projectRoot: string) {
|
|
|
115
121
|
|
|
116
122
|
return {
|
|
117
123
|
mandu_build: async (args: Record<string, unknown>) => {
|
|
118
|
-
const { minify, sourcemap } = args as {
|
|
124
|
+
const { minify, sourcemap, targetRouteIds } = args as {
|
|
119
125
|
minify?: boolean;
|
|
120
126
|
sourcemap?: boolean;
|
|
127
|
+
targetRouteIds?: string[];
|
|
121
128
|
};
|
|
122
129
|
|
|
123
130
|
// Load manifest
|
|
@@ -130,6 +137,7 @@ export function hydrationTools(projectRoot: string) {
|
|
|
130
137
|
const result = await buildClientBundles(manifestResult.data, projectRoot, {
|
|
131
138
|
minify,
|
|
132
139
|
sourcemap,
|
|
140
|
+
targetRouteIds,
|
|
133
141
|
});
|
|
134
142
|
|
|
135
143
|
return {
|