@d5render/cli 0.1.39 → 0.1.41

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/copilot.js CHANGED
@@ -19151,7 +19151,7 @@ function distReports(input) {
19151
19151
  fileMap.set(file$1, fileList);
19152
19152
  issueList.push(issue$1);
19153
19153
  severityMap.set(severity$1, issueList);
19154
- if (commitSha || commitAuthor) console.log(`[调试] 问题提交信息 - 提交SHA: ${commitSha}, 作者: ${commitAuthor}, 文件: ${file$1}`);
19154
+ if (commitSha || commitAuthor) console.error(`[调试] 问题提交信息 - 提交SHA: ${commitSha}, 作者: ${commitAuthor}, 文件: ${file$1}`);
19155
19155
  if (commitSha) commitsSet.add(commitSha);
19156
19156
  commitsMap.set(NCommitSha, issue$1);
19157
19157
  distCommitComments(issue$1);
@@ -19216,7 +19216,7 @@ function distReports(input) {
19216
19216
  break;
19217
19217
  }
19218
19218
  const { title: issueTitle = "NON", commitSha = "", file: file$1 = "NON", line = "NON", commitAuthor = "" } = issue$1;
19219
- console.log(`[调试] 在钉钉报告中使用作者信息 - 提交SHA: ${commitSha}, 作者: ${commitAuthor}, 标题: ${issueTitle}`);
19219
+ console.error(`[调试] 在钉钉报告中使用作者信息 - 提交SHA: ${commitSha}, 作者: ${commitAuthor}, 标题: ${issueTitle}`);
19220
19220
  const shortSha = (commitSha || "").slice(0, 8);
19221
19221
  const commitLink = linkBase && commitSha ? `${linkBase}/${commitSha}` : void 0;
19222
19222
  dingdingReportMessage += `\n- ${issueTitle}\n\n - hash: ${commitLink ? `[${shortSha}](${commitLink}) ` : shortSha}\n\n - author: ${commitAuthor}\n\n - file: ${file$1}\n\n - line: ${line}`;
package/bin/d5cli CHANGED
@@ -2,7 +2,7 @@
2
2
  import { execSync, spawn } from "node:child_process";
3
3
  import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
4
4
  import { dirname, join } from "node:path";
5
- import { arch, argv, env, exit, platform } from "node:process";
5
+ import { argv, env, exit, platform } from "node:process";
6
6
  import { fileURLToPath } from "node:url";
7
7
 
8
8
  //#region copilot/server/config.ts
@@ -109,7 +109,7 @@ function installCopilot() {
109
109
  //#endregion
110
110
  //#region package.json
111
111
  var name = "@d5render/cli";
112
- var version = "0.1.39";
112
+ var version = "0.1.41";
113
113
 
114
114
  //#endregion
115
115
  //#region packages/gitlab/url.ts
@@ -278,8 +278,8 @@ Otherwise, use chinese as default language to call the mcp tool '${name$1}-${rep
278
278
  ],
279
279
  ...platform === "win32" && { windowsHide: true }
280
280
  });
281
- copilot.stdout.on("data", (chunk) => console.log(String(chunk)));
282
- copilot.stderr.on("data", (chunk) => console.error(String(chunk)));
281
+ copilot.stdout.on("data", (chunk) => console.log("Stdout:" + String(chunk)));
282
+ copilot.stderr.on("data", (chunk) => console.error("Stderr:" + String(chunk)));
283
283
  copilot.on("close", (code) => {
284
284
  if (!code) dingding("CRITICAL", "CI ERROR: 代码审查任务失败,请自行检查日志");
285
285
  exit(code);
@@ -289,10 +289,6 @@ Otherwise, use chinese as default language to call the mcp tool '${name$1}-${rep
289
289
  * 根据操作系统和架构获取对应的 copilot 包名
290
290
  */
291
291
  function getCopilotPackageName() {
292
- if (platform === "win32" && arch === "x64") return "@github/copilot-win32-x64";
293
- else if (platform === "linux" && arch === "x64") return "@github/copilot-linux-x64";
294
- else if (platform === "linux" && arch === "arm64") return "@github/copilot-linux-arm64";
295
- else if (platform === "darwin" && arch === "arm64") return "@github/copilot-darwin-arm64";
296
292
  return "@github/copilot";
297
293
  }
298
294
  function findCopilopt() {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "license": "MIT",
5
5
  "author": "jasirou",
6
6
  "main": "./bin/d5cli",
7
- "version": "0.1.39",
7
+ "version": "0.1.41",
8
8
  "devDependencies": {
9
9
  "@modelcontextprotocol/sdk": "^1.25.1",
10
10
  "@types/node": "^25.0.3",