mcp-probe-kit 1.15.0 → 1.15.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/build/tools/css_order.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
// css_order 工具实现
|
|
2
2
|
export async function cssOrder(_args) {
|
|
3
3
|
try {
|
|
4
|
-
const message = `请根据以下规则**书写或重排 CSS**(不是解释规则)。目标是让 CSS 属性顺序更一致、可读、可维护。
|
|
5
|
-
|
|
6
|
-
如果我提供了 CSS 片段/文件,请直接给出**已按规则整理后的 CSS**;如果没提供,请先让我提供需要处理的 CSS。
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## 排序逻辑(由外向内,由大到小)
|
|
11
|
-
|
|
12
|
-
将属性分为五类,按顺序排列:
|
|
13
|
-
|
|
14
|
-
### 1. 定位属性 (Positioning)
|
|
15
|
-
决定元素“在哪里”。
|
|
16
|
-
- \`position\` / \`z-index\` / \`top\` / \`right\` / \`bottom\` / \`left\` / \`float\` / \`clear\`
|
|
17
|
-
|
|
18
|
-
### 2. 盒子模型 (Box Model)
|
|
19
|
-
决定元素“占多大空间”。
|
|
20
|
-
- \`display\` / \`flex\` / \`grid\` 相关属性
|
|
21
|
-
- \`width\` / \`height\` / \`max-width\` / \`min-width\`
|
|
22
|
-
- \`margin\` / \`padding\` / \`border\`
|
|
23
|
-
- \`box-sizing\` / \`overflow\`
|
|
24
|
-
|
|
25
|
-
### 3. 文本排版 (Typography)
|
|
26
|
-
决定元素内“文字内容”的样式。
|
|
27
|
-
- \`font-family\` / \`font-size\` / \`font-weight\` / \`line-height\`
|
|
28
|
-
- \`text-align\` / \`text-transform\` / \`text-decoration\` / \`letter-spacing\` / \`white-space\` / \`color\`
|
|
29
|
-
|
|
30
|
-
### 4. 视觉表现 (Visual/Decoration)
|
|
31
|
-
决定元素“皮肤”的外观。
|
|
32
|
-
- \`background\` / \`box-shadow\` / \`opacity\` / \`visibility\` / \`cursor\` / \`outline\`
|
|
33
|
-
|
|
34
|
-
### 5. 其他与交互 (Misc/Transitions)
|
|
35
|
-
动效和交互相关。
|
|
36
|
-
- \`transition\` / \`animation\` / \`transform\` / \`will-change\`
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## 处理要求
|
|
41
|
-
|
|
42
|
-
1. **只调整属性顺序,不改动语义**(除非存在明显重复/冲突属性)。
|
|
43
|
-
2. **保留注释与格式风格**(缩进、空行、选择器顺序不变)。
|
|
44
|
-
3. **同类属性保持原有相对顺序**,除非有明显更合理的排序。
|
|
45
|
-
4. 如果存在 **CSS 变量**(\`--*\`)或自定义属性,放在**当前类的最前**。
|
|
46
|
-
5. 如遇 CSS-in-JS、Tailwind 或非标准语法,**只处理可确定的纯 CSS 属性**。
|
|
47
|
-
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
## 快速对比表
|
|
51
|
-
|
|
52
|
-
| 顺序 | 类别 | 常用属性举例 | 核心目的 |
|
|
53
|
-
| --- | --- | --- | --- |
|
|
54
|
-
| **1** | **定位** | \`position\`, \`z-index\`, \`top\` | 确定位置 |
|
|
55
|
-
| **2** | **盒模型** | \`display\`, \`width\`, \`margin\`, \`padding\` | 确定形状和间距 |
|
|
56
|
-
| **3** | **排版** | \`font\`, \`line-height\`, \`color\`, \`text-align\` | 确定内容样式 |
|
|
57
|
-
| **4** | **视觉** | \`background\`, \`border-radius\`, \`box-shadow\` | 确定外观修饰 |
|
|
58
|
-
| **5** | **其他** | \`transition\`, \`transform\`, \`animation\` | 确定动态交互 |
|
|
4
|
+
const message = `请根据以下规则**书写或重排 CSS**(不是解释规则)。目标是让 CSS 属性顺序更一致、可读、可维护。
|
|
5
|
+
|
|
6
|
+
如果我提供了 CSS 片段/文件,请直接给出**已按规则整理后的 CSS**;如果没提供,请先让我提供需要处理的 CSS。
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 排序逻辑(由外向内,由大到小)
|
|
11
|
+
|
|
12
|
+
将属性分为五类,按顺序排列:
|
|
13
|
+
|
|
14
|
+
### 1. 定位属性 (Positioning)
|
|
15
|
+
决定元素“在哪里”。
|
|
16
|
+
- \`position\` / \`z-index\` / \`top\` / \`right\` / \`bottom\` / \`left\` / \`float\` / \`clear\`
|
|
17
|
+
|
|
18
|
+
### 2. 盒子模型 (Box Model)
|
|
19
|
+
决定元素“占多大空间”。
|
|
20
|
+
- \`display\` / \`flex\` / \`grid\` 相关属性
|
|
21
|
+
- \`width\` / \`height\` / \`max-width\` / \`min-width\`
|
|
22
|
+
- \`margin\` / \`padding\` / \`border\`
|
|
23
|
+
- \`box-sizing\` / \`overflow\`
|
|
24
|
+
|
|
25
|
+
### 3. 文本排版 (Typography)
|
|
26
|
+
决定元素内“文字内容”的样式。
|
|
27
|
+
- \`font-family\` / \`font-size\` / \`font-weight\` / \`line-height\`
|
|
28
|
+
- \`text-align\` / \`text-transform\` / \`text-decoration\` / \`letter-spacing\` / \`white-space\` / \`color\`
|
|
29
|
+
|
|
30
|
+
### 4. 视觉表现 (Visual/Decoration)
|
|
31
|
+
决定元素“皮肤”的外观。
|
|
32
|
+
- \`background\` / \`box-shadow\` / \`opacity\` / \`visibility\` / \`cursor\` / \`outline\`
|
|
33
|
+
|
|
34
|
+
### 5. 其他与交互 (Misc/Transitions)
|
|
35
|
+
动效和交互相关。
|
|
36
|
+
- \`transition\` / \`animation\` / \`transform\` / \`will-change\`
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 处理要求
|
|
41
|
+
|
|
42
|
+
1. **只调整属性顺序,不改动语义**(除非存在明显重复/冲突属性)。
|
|
43
|
+
2. **保留注释与格式风格**(缩进、空行、选择器顺序不变)。
|
|
44
|
+
3. **同类属性保持原有相对顺序**,除非有明显更合理的排序。
|
|
45
|
+
4. 如果存在 **CSS 变量**(\`--*\`)或自定义属性,放在**当前类的最前**。
|
|
46
|
+
5. 如遇 CSS-in-JS、Tailwind 或非标准语法,**只处理可确定的纯 CSS 属性**。
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 快速对比表
|
|
51
|
+
|
|
52
|
+
| 顺序 | 类别 | 常用属性举例 | 核心目的 |
|
|
53
|
+
| --- | --- | --- | --- |
|
|
54
|
+
| **1** | **定位** | \`position\`, \`z-index\`, \`top\` | 确定位置 |
|
|
55
|
+
| **2** | **盒模型** | \`display\`, \`width\`, \`margin\`, \`padding\` | 确定形状和间距 |
|
|
56
|
+
| **3** | **排版** | \`font\`, \`line-height\`, \`color\`, \`text-align\` | 确定内容样式 |
|
|
57
|
+
| **4** | **视觉** | \`background\`, \`border-radius\`, \`box-shadow\` | 确定外观修饰 |
|
|
58
|
+
| **5** | **其他** | \`transition\`, \`transform\`, \`animation\` | 确定动态交互 |
|
|
59
59
|
`;
|
|
60
60
|
return {
|
|
61
61
|
content: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-probe-kit",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.1",
|
|
4
4
|
"description": "AI Development Enhancement Toolkit - MCP Server with 49 practical tools (37 basic + 9 orchestration + 3 UI/UX) for code quality, development efficiency, project management, and complete UI/UX design workflow. Now with Ralph Loop for iterative development and UI/UX Pro Max for design-to-code automation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"LICENSE"
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@modelcontextprotocol/sdk": "^0.5.0"
|
|
66
|
+
"@modelcontextprotocol/sdk": "^0.5.0",
|
|
67
|
+
"csv-parse": "^6.1.0",
|
|
68
|
+
"tar": "^7.5.6"
|
|
67
69
|
},
|
|
68
70
|
"devDependencies": {
|
|
69
71
|
"@types/node": "^20.0.0",
|
|
70
72
|
"@types/tar": "^6.1.13",
|
|
71
73
|
"@vitest/ui": "^4.0.18",
|
|
72
|
-
"csv-parse": "^6.1.0",
|
|
73
74
|
"fast-check": "^4.5.3",
|
|
74
|
-
"tar": "^7.5.6",
|
|
75
75
|
"tsx": "^4.21.0",
|
|
76
76
|
"typescript": "^5.3.0",
|
|
77
77
|
"vitest": "^4.0.18"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|