@d5render/cli 0.1.50 → 0.1.51

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 +8 -11
  2. package/package.json +1 -1
package/bin/d5cli CHANGED
@@ -108,7 +108,7 @@ function installCopilot() {
108
108
  //#endregion
109
109
  //#region package.json
110
110
  var name = "@d5render/cli";
111
- var version = "0.1.50";
111
+ var version = "0.1.51";
112
112
 
113
113
  //#endregion
114
114
  //#region packages/gitlab/url.ts
@@ -191,12 +191,6 @@ async function deploy() {
191
191
  if (!env.CI) return;
192
192
  const HOME = env.USERPROFILE ?? env.HOME ?? env.HOMEPATH;
193
193
  if (!HOME) throw new Error("cannot find `USERPROFILE` directory");
194
- const config = join(HOME, ".copilot/config.json"), dir = join(HOME, ".copilot/skills/code-review");
195
- console.log("deploy...");
196
- if (existsSync(config)) {
197
- rmSync(config);
198
- console.log("removed config cache.");
199
- }
200
194
  const changelog = readFileSync(join(RUNTIME_CWD, "CHANGELOG.md"), "utf8");
201
195
  const cachepath = join(TEMP, "CHANGELOG-" + env.CI_RUNNER_ID || "0");
202
196
  let cache = "";
@@ -207,6 +201,12 @@ async function deploy() {
207
201
  console.log("updated CHANGELOG cache.");
208
202
  await dingding("NOTICE", `code-review/SKILL.md 更新\n\n细节请参考 [线上文档内容.skills](https://www.npmjs.com/package/@d5render/cli?activeTab=code)`);
209
203
  }
204
+ const config = join(HOME, ".copilot/config.json"), dir = join(HOME, ".copilot/skills/code-review");
205
+ console.log("deploy...");
206
+ if (existsSync(config)) {
207
+ rmSync(config);
208
+ console.log("removed config cache.");
209
+ }
210
210
  if (existsSync(dir)) rmSync(dir, {
211
211
  recursive: true,
212
212
  force: true
@@ -290,10 +290,7 @@ Otherwise, use chinese as default language to call the mcp tool '${name$1}-${rep
290
290
  copilot.stdout.on("data", (chunk) => console.log(String(chunk)));
291
291
  copilot.stderr.on("data", (chunk) => console.error(String(chunk)));
292
292
  return new Promise((res, rej) => {
293
- copilot.on("close", (code) => {
294
- if (!code) rej(/* @__PURE__ */ new Error("CI ERROR: 代码审查任务失败,请自行检查日志"));
295
- else res();
296
- });
293
+ copilot.on("close", (code) => res());
297
294
  });
298
295
  }
299
296
  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.50",
7
+ "version": "0.1.51",
8
8
  "devDependencies": {
9
9
  "@modelcontextprotocol/sdk": "^1.25.1",
10
10
  "@types/node": "^25.0.3",