@d5render/cli 0.1.1 → 0.1.3

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/CHANGELOG.md CHANGED
@@ -1,9 +1,9 @@
1
- ## 0.1.1 (2026-01-08)
1
+ ## 0.1.3 (2026-01-08)
2
2
  skills:review 0.0.0
3
3
 
4
4
  评审流程转移至skills内
5
5
  增加去重功能
6
6
 
7
7
 
8
- ## 0.1.0 (2026-01-07)
9
- 基础评审能力
8
+ ## 0.1.0 (2026-01-07)
9
+ 基础评审能力
package/bin/d5cli CHANGED
@@ -7,7 +7,7 @@ import { fileURLToPath } from "node:url";
7
7
 
8
8
  //#region package.json
9
9
  var name = "@d5render/cli";
10
- var version = "0.1.1";
10
+ var version = "0.1.3";
11
11
 
12
12
  //#endregion
13
13
  //#region copilot/server/config.ts
@@ -116,7 +116,7 @@ function send(title, text) {
116
116
  //#endregion
117
117
  //#region copilot/bin/deploy.ts
118
118
  const root = () => {
119
- const dir = env.HOME || env.HOMEPATH;
119
+ const dir = env.HOME ?? env.HOMEPATH;
120
120
  if (!dir) throw new Error("cannot find home directory");
121
121
  return dir;
122
122
  };
@@ -125,8 +125,7 @@ function deploy() {
125
125
  const cl = join(cwd, "bin/CHANGELOG.md");
126
126
  if (existsSync(cl)) {
127
127
  let clt = readFileSync(cl, "utf8");
128
- rmSync(cl);
129
- if (env.DINGTALK_WEBHOOK) send("NOTICE", `#### cli upgrade\n\n${clt}\n\n##### [HISTORY CHANGELOG](https://www.npmjs.com/package/${name}/v/${version}?activeTab=code)`).catch(() => {});
128
+ if (env.DINGTALK_WEBHOOK) send("NOTICE", `#### cli upgrade\n\n${clt}\n\n##### [HISTORY CHANGELOG](https://www.npmjs.com/package/${name}/v/${version}?activeTab=code)`).then(() => rmSync(cl)).catch(() => {});
130
129
  }
131
130
  const dir = join(root(), ".copilot/skills/codereview");
132
131
  if (!existsSync(dir)) mkdirSync(dir, { recursive: true });
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.1",
7
+ "version": "0.1.3",
8
8
  "devDependencies": {
9
9
  "@modelcontextprotocol/sdk": "^1.25.1",
10
10
  "@types/node": "^25.0.3",