@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.
- package/bin/d5cli +8 -11
- 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.
|
|
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() {
|