@d5render/cli 0.1.56 → 0.1.58
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/.github/instructions/severity.instructions.md +34 -19
- package/.skills/code-review/SKILL.md +35 -6
- package/.skills/devops/{README.md → SKILL.md} +21 -15
- package/README.md +30 -2
- package/bin/d5cli +210 -314
- package/bin/{copilot.js → mcpServer.js} +964 -927
- package/package.json +26 -23
- package/.github/instructions/code-review.instructions.md +0 -43
- package/CHANGELOG.md +0 -10
package/package.json
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d5render/cli",
|
|
3
|
-
"
|
|
3
|
+
"version": "0.1.58",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "jasirou",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"devDependencies": {
|
|
9
|
-
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
10
|
-
"@types/node": "^25.0.3",
|
|
11
|
-
"@types/vscode": "^1.107.0",
|
|
12
|
-
"@vscode/vsce": "^3.7.1",
|
|
13
|
-
"json5": "^2.2.3",
|
|
14
|
-
"oxfmt": "^0.21.0",
|
|
15
|
-
"oxlint": "^1.37.0",
|
|
16
|
-
"rolldown": "1.0.0-beta.58",
|
|
17
|
-
"vitest": "^4.0.17",
|
|
18
|
-
"zod": "^4.3.5"
|
|
6
|
+
"bin": {
|
|
7
|
+
"d5cli": "bin/d5cli"
|
|
19
8
|
},
|
|
20
9
|
"files": [
|
|
21
|
-
".
|
|
22
|
-
".github/instructions/severity.instructions.md",
|
|
23
|
-
".skills/devops",
|
|
10
|
+
"CHANGELOG.md",
|
|
24
11
|
".skills/code-review",
|
|
25
|
-
"
|
|
12
|
+
".skills/devops",
|
|
13
|
+
"bin/mcpServer.js",
|
|
26
14
|
"bin/d5cli",
|
|
27
|
-
"
|
|
15
|
+
".github/instructions/severity.instructions.md"
|
|
28
16
|
],
|
|
29
|
-
"
|
|
30
|
-
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./bin/d5cli",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"vscode-languageserver-protocol": "^3.17.5"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
24
|
+
"@types/node": "^25.1.0",
|
|
25
|
+
"@types/vscode": "^1.108.1",
|
|
26
|
+
"@vscode/vsce": "^3.7.1",
|
|
27
|
+
"json5": "^2.2.3",
|
|
28
|
+
"oxfmt": "^0.21.0",
|
|
29
|
+
"oxlint": "^1.42.0",
|
|
30
|
+
"rolldown": "1.0.0-rc.2",
|
|
31
|
+
"vitest": "^4.0.18",
|
|
32
|
+
"zod": "^4.3.6"
|
|
31
33
|
},
|
|
32
34
|
"scripts": {
|
|
33
|
-
"build
|
|
35
|
+
"build": "node ./setup.js build",
|
|
34
36
|
"release": "node ./setup.js publish",
|
|
35
|
-
"setup": "node ./setup.js"
|
|
37
|
+
"setup": "node ./setup.js",
|
|
38
|
+
"test": "node ./setup.js build:development"
|
|
36
39
|
}
|
|
37
40
|
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
applyTo: "**"
|
|
3
|
-
excludeAgent: ["code-review"]
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
1. **MUST** Take the file as the review target:
|
|
7
|
-
- The focus of this review is on the content involved in the diff but the evaluation dimensions need to be based on the file content.
|
|
8
|
-
- When the diff in the discrepancy report differs from the document content, the diff is only used as a line number reference.
|
|
9
|
-
- The actual content that needs to be reviewed should be **based on the document content**.
|
|
10
|
-
2. Establish context by **reading relevant files**, files that are **imported/used by** the diff files or are **structurally neighboring** them (e.g., related configuration or test files).
|
|
11
|
-
3. **Ensure the relationship diagram of the diff is complete:**
|
|
12
|
-
- After establishing the context, analyze the complete context of the difference code to ensure a relatively complete code relationship diagram can be built.
|
|
13
|
-
- If the content is incomplete, supplement the context and rebuild the relationship diagram.
|
|
14
|
-
4. Read the commit message as the basic understanding of the current change
|
|
15
|
-
5. Determine technology the repository belongs, draw upon your understanding of that technology, provide recommendations on cutting-edge technologies and best practices:
|
|
16
|
-
- **Consult the workspace introduction** yourself.
|
|
17
|
-
- Consult cutting-edge industry documentation yourself.
|
|
18
|
-
6. **Execute as many relevant commands as possible to enrich your context.**
|
|
19
|
-
7. **Prioritize Analysis Focus**:
|
|
20
|
-
- For all collected code, meticulously trace the logic to uncover functional bugs and correctness issues.
|
|
21
|
-
- Pay attention to the **correctness** of the analytical logic, the **efficiency** of the code, and its **long-term maintainability**.
|
|
22
|
-
- Concentrate your deepest analysis on the application code (non-test files).
|
|
23
|
-
- Actively consider edge cases, off-by-one errors, race conditions, and improper null/error handling.
|
|
24
|
-
- **focusing on major errors**, identify potential bugs, architectural impact, security vulnerabilities, performance bottlenecks, and clarity issues.
|
|
25
|
-
- focusing on last commit when the same functionality rolling commits occur.
|
|
26
|
-
8. **Maintain skepticism but verify carefully**:
|
|
27
|
-
- Gather as much context as possible for the code you suspect, raise questions only after **ensuring you have a sufficient understanding** of the business logic.
|
|
28
|
-
- If doubts persist even after establishing a complete context, lower the severity rating of the issue.
|
|
29
|
-
9. **Strictly** classify the severity according to the content of **file: [severity.instructions.md](./severity.instructions.md)**.
|
|
30
|
-
10. **Further summary report:**
|
|
31
|
-
- **Tone/Content:** **DO NOT** add comments that:
|
|
32
|
-
- Tell the user to "check," "confirm," "verify," or "ensure" something.
|
|
33
|
-
- Explain what the code change does or validate its purpose.
|
|
34
|
-
- Explain the code to the author (they are assumed to know their own code).
|
|
35
|
-
- Comment on missing trailing newlines or other purely stylistic issues that do not affect code execution or readability in a meaningful way.
|
|
36
|
-
- **Technical Detail:**
|
|
37
|
-
- Pay **meticulous attention to line numbers and indentation** in code suggestions; they **must** be correct and match the surrounding code.
|
|
38
|
-
- **NEVER** comment on license headers, copyright headers, or anything related to future dates/versions (e.g., "this date is in the future").
|
|
39
|
-
- **NEVER** comment on the presence or absence of comments in the code.
|
|
40
|
-
- **Formatting/Structure:**
|
|
41
|
-
- Keep the **change summary** concise (aim for a single sentence).
|
|
42
|
-
- Keep **comment bodies concise** and focused on a single issue.
|
|
43
|
-
- When similar issues occur frequently, please review the code to determine if it meets the change objectives.
|