@d5render/cli 0.1.89 → 0.1.90
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/bin/d5cli +4 -5
- package/package.json +40 -40
package/bin/d5cli
CHANGED
|
@@ -3,13 +3,12 @@ import { argv, cwd, env, platform } from "node:process";
|
|
|
3
3
|
import { execSync, spawn } from "node:child_process";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
|
6
|
-
import { tmpdir } from "node:os";
|
|
7
6
|
import { dirname, join } from "node:path";
|
|
8
7
|
import { fileURLToPath } from "node:url";
|
|
9
8
|
|
|
10
9
|
//#region package.json
|
|
11
10
|
var name$1 = "@d5render/cli";
|
|
12
|
-
var version = "0.1.
|
|
11
|
+
var version = "0.1.90";
|
|
13
12
|
|
|
14
13
|
//#endregion
|
|
15
14
|
//#region packages/env.ts
|
|
@@ -127,14 +126,14 @@ async function sendding(title, text) {
|
|
|
127
126
|
const NAME = name$1.replaceAll("/", "_");
|
|
128
127
|
const VERSION = version;
|
|
129
128
|
const CWD = env.CI_PROJECT_DIR || cwd();
|
|
130
|
-
const TEMP = join(
|
|
129
|
+
const TEMP = join(env.CI_PROJECT_DIR || "", `../../.${NAME}`);
|
|
131
130
|
const common_review_prompt = `Load code-review skills, then call the mcp tool '${name}-${getHash}' to load code-review commits.
|
|
132
131
|
Then use chinese(中文) to call the mcp tool '${name}-${report}', only main agent can call the tool '${name}-${report}', **prevent** subagent from calling tool '${name}-${report}`;
|
|
133
132
|
async function changelog() {
|
|
134
133
|
if (!existsSync(TEMP)) mkdirSync(TEMP, { recursive: true });
|
|
135
134
|
const changelog = readFileSync(join(RUNTIME_CWD, "README.md"), "utf8");
|
|
136
|
-
const cachepath = join(TEMP, "CHANGELOG_" + createHash("md5").update(env.DINGTALK_WEBHOOK || env.CI_RUNNER_ID || env.CI_PROJECT_ID || "").digest("hex"))
|
|
137
|
-
if (changelog === (existsSync(cachepath) ? readFileSync(cachepath, "utf8") :
|
|
135
|
+
const cachepath = join(TEMP, "CHANGELOG_" + createHash("md5").update(env.DINGTALK_WEBHOOK || env.CI_RUNNER_ID || env.CI_PROJECT_ID || "").digest("hex"));
|
|
136
|
+
if (changelog === (existsSync(cachepath) ? readFileSync(cachepath, "utf8") : "")) return;
|
|
138
137
|
writeFileSync(cachepath, changelog, "utf8");
|
|
139
138
|
console.log("updated CHANGELOG cache...");
|
|
140
139
|
let matched = changelog.match(/CHANGELOG[\s\S]*?(#+[^\n]*\n+([\s\S]*?))(?=#+|$)/)?.[1] ?? "";
|
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@d5render/cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"author": "jasirou",
|
|
6
|
-
"bin": {
|
|
7
|
-
"d5cli": "bin/d5cli"
|
|
8
|
-
},
|
|
9
|
-
"files": [
|
|
10
|
-
"CHANGELOG.md",
|
|
11
|
-
".skills/code-review",
|
|
12
|
-
".skills/devops",
|
|
13
|
-
"bin/d5cli",
|
|
14
|
-
"bin/mcpServer.js",
|
|
15
|
-
".github/instructions/severity.instructions.md"
|
|
16
|
-
],
|
|
17
|
-
"type": "module",
|
|
18
|
-
"main": "./bin/d5cli",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"vscode
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@d5render/cli",
|
|
3
|
+
"version": "0.1.90",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "jasirou",
|
|
6
|
+
"bin": {
|
|
7
|
+
"d5cli": "bin/d5cli"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"CHANGELOG.md",
|
|
11
|
+
".skills/code-review",
|
|
12
|
+
".skills/devops",
|
|
13
|
+
"bin/d5cli",
|
|
14
|
+
"bin/mcpServer.js",
|
|
15
|
+
".github/instructions/severity.instructions.md"
|
|
16
|
+
],
|
|
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"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "node ./setup.js build",
|
|
36
|
+
"release": "node ./setup.js publish",
|
|
37
|
+
"setup": "node ./setup.js",
|
|
38
|
+
"test": "node ./setup.js build:development"
|
|
39
|
+
}
|
|
40
|
+
}
|