@master/css-mcp 2.0.0-rc.79 → 2.0.0-rc.80
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/dist/contributor.js +2 -0
- package/dist/setup.d.ts +5 -0
- package/dist/setup.js +15 -0
- package/package.json +11 -11
package/dist/contributor.js
CHANGED
|
@@ -60,6 +60,8 @@ const PACKAGE_COMMON_PACKS = {
|
|
|
60
60
|
validator: [".ai/context/testing.md", ".ai/context/css-output.md"],
|
|
61
61
|
diagnostics: [".ai/context/testing.md", ".ai/context/package-boundaries.md"],
|
|
62
62
|
lint: [".ai/context/testing.md", ".ai/context/package-boundaries.md"],
|
|
63
|
+
create: [".ai/context/testing.md", ".ai/context/package-boundaries.md"],
|
|
64
|
+
"css-sv": [".ai/context/testing.md", ".ai/context/package-boundaries.md"],
|
|
63
65
|
vite: [".ai/context/package-boundaries.md", ".ai/context/css-output.md"],
|
|
64
66
|
webpack: [".ai/context/package-boundaries.md", ".ai/context/css-output.md"],
|
|
65
67
|
next: [".ai/context/package-boundaries.md", ".ai/context/css-output.md"],
|
package/dist/setup.d.ts
CHANGED
|
@@ -30,6 +30,10 @@ declare function auditSetup(context: MasterCSSMCPContext): Promise<{
|
|
|
30
30
|
name: string;
|
|
31
31
|
version: string;
|
|
32
32
|
}[];
|
|
33
|
+
setup: {
|
|
34
|
+
name: string;
|
|
35
|
+
version: string;
|
|
36
|
+
}[];
|
|
33
37
|
resolved: import("@master/css-project/workspace").MasterCSSWorkspacePackageResolution;
|
|
34
38
|
};
|
|
35
39
|
integrations: ({
|
|
@@ -53,6 +57,7 @@ declare function auditSetup(context: MasterCSSMCPContext): Promise<{
|
|
|
53
57
|
status: string;
|
|
54
58
|
entries: number;
|
|
55
59
|
declaredPackages: number;
|
|
60
|
+
setupPackages: number;
|
|
56
61
|
integrations: number;
|
|
57
62
|
errors: number;
|
|
58
63
|
warnings: number;
|
package/dist/setup.js
CHANGED
|
@@ -17,6 +17,7 @@ const MASTER_CSS_PACKAGES = [
|
|
|
17
17
|
"@master/css",
|
|
18
18
|
"@master/css-cli",
|
|
19
19
|
"@master/css-mcp",
|
|
20
|
+
"@master/create-css",
|
|
20
21
|
"@master/css-runtime",
|
|
21
22
|
"@master/css-language-server",
|
|
22
23
|
"@master/css.vite",
|
|
@@ -25,6 +26,8 @@ const MASTER_CSS_PACKAGES = [
|
|
|
25
26
|
"@master/css.nuxt",
|
|
26
27
|
"@master/css.astro",
|
|
27
28
|
"@master/css.svelte",
|
|
29
|
+
"@master/css-sv",
|
|
30
|
+
"@master/eslint-config-css",
|
|
28
31
|
"@master/eslint-plugin-css"
|
|
29
32
|
];
|
|
30
33
|
const INTEGRATION_PACKAGES = [
|
|
@@ -35,8 +38,10 @@ const INTEGRATION_PACKAGES = [
|
|
|
35
38
|
"@master/css.nuxt",
|
|
36
39
|
"@master/css.astro",
|
|
37
40
|
"@master/css.svelte",
|
|
41
|
+
"@master/eslint-config-css",
|
|
38
42
|
"@master/eslint-plugin-css"
|
|
39
43
|
];
|
|
44
|
+
const SETUP_PACKAGES = ["@master/create-css", "@master/css-sv"];
|
|
40
45
|
function getDependencies(packageJSON) {
|
|
41
46
|
return {
|
|
42
47
|
...packageJSON?.dependencies,
|
|
@@ -78,6 +83,13 @@ function detectDeclaredPackages(packageJSON) {
|
|
|
78
83
|
version: dependencies[name]
|
|
79
84
|
}));
|
|
80
85
|
}
|
|
86
|
+
function detectSetupPackages(packageJSON) {
|
|
87
|
+
const dependencies = getDependencies(packageJSON);
|
|
88
|
+
return SETUP_PACKAGES.filter((name) => dependencies[name]).map((name) => ({
|
|
89
|
+
name,
|
|
90
|
+
version: dependencies[name]
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
81
93
|
function detectIntegrations(packageJSON) {
|
|
82
94
|
const dependencies = getDependencies(packageJSON);
|
|
83
95
|
const scripts = packageJSON?.scripts || {};
|
|
@@ -115,6 +127,7 @@ async function auditSetup(context) {
|
|
|
115
127
|
const packageJSON = packageJSONResult.value;
|
|
116
128
|
const packageManager = detectPackageManager(context, packageJSON);
|
|
117
129
|
const declaredPackages = detectDeclaredPackages(packageJSON);
|
|
130
|
+
const setupPackages = detectSetupPackages(packageJSON);
|
|
118
131
|
const integrations = detectIntegrations(packageJSON);
|
|
119
132
|
const resolvedPackages = resolveMasterCSSWorkspacePackages(context.root);
|
|
120
133
|
const diagnostics = [];
|
|
@@ -142,6 +155,7 @@ async function auditSetup(context) {
|
|
|
142
155
|
},
|
|
143
156
|
packages: {
|
|
144
157
|
declared: declaredPackages,
|
|
158
|
+
setup: setupPackages,
|
|
145
159
|
resolved: resolvedPackages
|
|
146
160
|
},
|
|
147
161
|
integrations,
|
|
@@ -157,6 +171,7 @@ async function auditSetup(context) {
|
|
|
157
171
|
status,
|
|
158
172
|
entries: (manifest.entries.length ? manifest.entries : discoveredEntries).length,
|
|
159
173
|
declaredPackages: declaredPackages.length,
|
|
174
|
+
setupPackages: setupPackages.length,
|
|
160
175
|
integrations: integrations.length,
|
|
161
176
|
errors: diagnostics.filter((diagnostic) => diagnostic.severity === "error").length,
|
|
162
177
|
warnings: diagnostics.filter((diagnostic) => diagnostic.severity === "warning").length,
|
package/package.json
CHANGED
|
@@ -53,18 +53,18 @@
|
|
|
53
53
|
"fast-glob": "^3.3.3",
|
|
54
54
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
55
55
|
"zod": "^4.4.3",
|
|
56
|
-
"@master/css-compiler": "^2.0.0-rc.
|
|
57
|
-
"@master/css-engine": "^2.0.0-rc.
|
|
58
|
-
"@master/css-
|
|
59
|
-
"@master/css-language-service": "^2.0.0-rc.
|
|
60
|
-
"@master/css-
|
|
61
|
-
"@master/css-lint": "^2.0.0-rc.
|
|
62
|
-
"@master/css-project": "^2.0.0-rc.
|
|
63
|
-
"@master/css-
|
|
64
|
-
"@master/css-
|
|
65
|
-
"@master/css-
|
|
56
|
+
"@master/css-compiler": "^2.0.0-rc.80",
|
|
57
|
+
"@master/css-engine": "^2.0.0-rc.80",
|
|
58
|
+
"@master/css-diagnostics": "^2.0.0-rc.80",
|
|
59
|
+
"@master/css-language-service": "^2.0.0-rc.80",
|
|
60
|
+
"@master/css-lexer": "^2.0.0-rc.80",
|
|
61
|
+
"@master/css-lint": "^2.0.0-rc.80",
|
|
62
|
+
"@master/css-project": "^2.0.0-rc.80",
|
|
63
|
+
"@master/css-preset": "^2.0.0-rc.80",
|
|
64
|
+
"@master/css-server": "^2.0.0-rc.80",
|
|
65
|
+
"@master/css-validator": "^2.0.0-rc.80"
|
|
66
66
|
},
|
|
67
|
-
"version": "2.0.0-rc.
|
|
67
|
+
"version": "2.0.0-rc.80",
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "tsdown --config ../../shared/tsdown-package.config.ts",
|
|
70
70
|
"dev": "tsdown --config ../../shared/tsdown-package.config.ts --watch",
|