@d5render/cli 0.1.25 → 0.1.28

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.
Files changed (2) hide show
  1. package/bin/d5cli +11 -1
  2. package/package.json +1 -1
package/bin/d5cli CHANGED
@@ -7,7 +7,7 @@ import { fileURLToPath } from "node:url";
7
7
 
8
8
  //#region package.json
9
9
  var name$1 = "@d5render/cli";
10
- var version = "0.1.25";
10
+ var version = "0.1.28";
11
11
 
12
12
  //#endregion
13
13
  //#region packages/gitlab/url.ts
@@ -239,6 +239,7 @@ function installCopilot() {
239
239
  //#endregion
240
240
  //#region copilot/bin/index.ts
241
241
  try {
242
+ console.log("开始代码审查-1");
242
243
  codereview();
243
244
  } catch (error) {
244
245
  sendding("CRITICAL", "CRITICAL CI ERROR: 未知错误,请自行检查日志");
@@ -251,6 +252,7 @@ function codereview() {
251
252
  return;
252
253
  }
253
254
  install();
255
+ console.log("开始代码审查-2");
254
256
  const prompt = `Load skills, then call the mcp tool '${name}-${getHash}' to load code-review commits, if the task encounters an error, throw that.
255
257
  Otherwise, use chinese as default language to call the mcp tool '${name}-${report}'`;
256
258
  const copilot = spawn("node", [
@@ -276,11 +278,19 @@ Otherwise, use chinese as default language to call the mcp tool '${name}-${repor
276
278
  });
277
279
  copilot.stdout.setEncoding("utf8");
278
280
  copilot.stderr.setEncoding("utf8");
281
+ let str = "";
282
+ function write(chunk) {
283
+ console.log("这个是写:" + String(chunk));
284
+ }
279
285
  copilot.stdout.on("data", (chunk) => {
286
+ str += chunk;
280
287
  process.stdout.write(chunk);
288
+ write(chunk);
281
289
  });
282
290
  copilot.stderr.on("data", (chunk) => {
291
+ str += chunk;
283
292
  process.stderr.write(chunk);
293
+ write(chunk);
284
294
  });
285
295
  copilot.on("close", (code) => {
286
296
  sendding("CRITICAL", "CRITICAL CI ERROR: 代码审查任务失败,请自行检查日志");
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.25",
7
+ "version": "0.1.28",
8
8
  "devDependencies": {
9
9
  "@modelcontextprotocol/sdk": "^1.25.1",
10
10
  "@types/node": "^25.0.3",