@d5render/cli 0.1.40 → 0.1.43

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
@@ -1,4 +1,4 @@
1
- import process$1, { argv } from "node:process";
1
+ import process$1, { argv, platform } from "node:process";
2
2
  import { dirname, join } from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
4
 
@@ -18845,7 +18845,10 @@ const tools = [
18845
18845
  "--deny-tool",
18846
18846
  "github-mcp-server"
18847
18847
  ];
18848
- tools.push("--model", "claude-sonnet-4.5");
18848
+ {
18849
+ const model = platform === "linux" ? "gemini-3-pro-preview" : "claude-sonnet-4.5";
18850
+ tools.push("--model", model);
18851
+ }
18849
18852
  function toEnv(key, defaultValue) {
18850
18853
  return envJson[key] || process.env[key] || defaultValue;
18851
18854
  }
@@ -19151,7 +19154,7 @@ function distReports(input) {
19151
19154
  fileMap.set(file$1, fileList);
19152
19155
  issueList.push(issue$1);
19153
19156
  severityMap.set(severity$1, issueList);
19154
- if (commitSha || commitAuthor) console.log(`[调试] 问题提交信息 - 提交SHA: ${commitSha}, 作者: ${commitAuthor}, 文件: ${file$1}`);
19157
+ if (commitSha || commitAuthor) console.error(`[调试] 问题提交信息 - 提交SHA: ${commitSha}, 作者: ${commitAuthor}, 文件: ${file$1}`);
19155
19158
  if (commitSha) commitsSet.add(commitSha);
19156
19159
  commitsMap.set(NCommitSha, issue$1);
19157
19160
  distCommitComments(issue$1);
@@ -19216,7 +19219,7 @@ function distReports(input) {
19216
19219
  break;
19217
19220
  }
19218
19221
  const { title: issueTitle = "NON", commitSha = "", file: file$1 = "NON", line = "NON", commitAuthor = "" } = issue$1;
19219
- console.log(`[调试] 在钉钉报告中使用作者信息 - 提交SHA: ${commitSha}, 作者: ${commitAuthor}, 标题: ${issueTitle}`);
19222
+ console.error(`[调试] 在钉钉报告中使用作者信息 - 提交SHA: ${commitSha}, 作者: ${commitAuthor}, 标题: ${issueTitle}`);
19220
19223
  const shortSha = (commitSha || "").slice(0, 8);
19221
19224
  const commitLink = linkBase && commitSha ? `${linkBase}/${commitSha}` : void 0;
19222
19225
  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
@@ -47,7 +47,10 @@ const tools = [
47
47
  "--deny-tool",
48
48
  "github-mcp-server"
49
49
  ];
50
- tools.push("--model", "claude-sonnet-4.5");
50
+ {
51
+ const model = platform === "linux" ? "gemini-3-pro-preview" : "claude-sonnet-4.5";
52
+ tools.push("--model", model);
53
+ }
51
54
  function toEnv(key, defaultValue) {
52
55
  return envJson[key] || process.env[key] || defaultValue;
53
56
  }
@@ -109,7 +112,7 @@ function installCopilot() {
109
112
  //#endregion
110
113
  //#region package.json
111
114
  var name = "@d5render/cli";
112
- var version = "0.1.40";
115
+ var version = "0.1.43";
113
116
 
114
117
  //#endregion
115
118
  //#region packages/gitlab/url.ts
@@ -208,7 +211,7 @@ async function deploy() {
208
211
  console.log("to new skill.");
209
212
  }
210
213
  async function need() {
211
- if (!env.CI) return;
214
+ if (!env.CI) return true;
212
215
  const { CI_MERGE_REQUEST_IID, CI_COMMIT_SHA } = env;
213
216
  const file$1 = join(TEMP, "CODEREVIEW");
214
217
  if (CI_MERGE_REQUEST_IID) {
@@ -312,8 +315,6 @@ function findCopilopt() {
312
315
  if (!existsSync(pkg)) throw new Error("安装的包找不到正确版本 " + pkg);
313
316
  const copilotPackage = JSON.parse(readFileSync(pkg, "utf8"));
314
317
  const binPath = typeof copilotPackage.bin === "string" ? copilotPackage.bin : copilotPackage.bin?.copilot || copilotPackage.bin?.[platformPackage] || copilotPackage.bin?.["@github/copilot"];
315
- console.log("binPath:", binPath);
316
- console.log("copilotPackage:", copilotPackage);
317
318
  if (!binPath) throw new Error("non copilot executable found");
318
319
  const copilotVersion = copilotPackage.version || "unknown";
319
320
  const copilotPath = join(copilot, binPath);
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.40",
7
+ "version": "0.1.43",
8
8
  "devDependencies": {
9
9
  "@modelcontextprotocol/sdk": "^1.25.1",
10
10
  "@types/node": "^25.0.3",