@d5render/cli 0.1.89 → 0.1.91

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.
@@ -19,7 +19,7 @@ Then,
19
19
  - Another of:
20
20
  - Read all modified codes block, build a complete data flow and call relationship graph about the codes to review logic
21
21
  - Consider whether there is a better implementation for the current logic.
22
- - One more of: Read the Git messages and modification history chronologically
22
+ - One more of: Read the history of diff blocks
23
23
  - Identify issues by incorporating commit history.
24
24
  - Consider other related aspects of the current function and provide corresponding suggestions.
25
25
  - Parallel subagents have the following additions.
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.89";
11
+ var version = "0.1.91";
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(tmpdir(), `.${NAME}`);
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")), feedback_cachepath = join(env.CI_PROJECT_DIR || "", `../../.${NAME}`);
137
- if (changelog === (existsSync(cachepath) ? readFileSync(cachepath, "utf8") : existsSync(feedback_cachepath) ? readFileSync(feedback_cachepath, "utf8") : "")) return;
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.89",
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
- "scripts": {
20
- "build": "node ./setup.js build",
21
- "release": "node ./setup.js publish",
22
- "setup": "node ./setup.js",
23
- "test": "node ./setup.js build:development"
24
- },
25
- "dependencies": {
26
- "vscode-languageserver-protocol": "^3.17.5"
27
- },
28
- "devDependencies": {
29
- "@modelcontextprotocol/sdk": "^1.25.3",
30
- "@types/node": "^25.1.0",
31
- "@types/vscode": "^1.108.1",
32
- "@vscode/vsce": "^3.7.1",
33
- "json5": "^2.2.3",
34
- "oxfmt": "^0.21.0",
35
- "oxlint": "^1.42.0",
36
- "rolldown": "1.0.0-rc.2",
37
- "vitest": "^4.0.18",
38
- "zod": "^4.3.6"
39
- }
40
- }
1
+ {
2
+ "name": "@d5render/cli",
3
+ "version": "0.1.91",
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
+ }