@d5render/cli 0.1.34 → 0.1.37

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
@@ -18809,6 +18809,7 @@ const getHash = "hash";
18809
18809
  const noMandatory = "dont't call under non-mandatory conditions";
18810
18810
  const file = "bin/copilot.js";
18811
18811
  const RUNTIME_CWD = join(dirname(fileURLToPath(import.meta.url)), "../");
18812
+ console.log("RUNTIME_CWD:", RUNTIME_CWD);
18812
18813
  const serveFile = join(RUNTIME_CWD, file);
18813
18814
  const envJson = buildEnv();
18814
18815
  const envUsed = {
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.34";
10
+ var version = "0.1.37";
11
11
 
12
12
  //#endregion
13
13
  //#region copilot/server/config.ts
@@ -16,6 +16,7 @@ const report = "report";
16
16
  const getHash = "hash";
17
17
  const file = "bin/copilot.js";
18
18
  const RUNTIME_CWD = join(dirname(fileURLToPath(import.meta.url)), "../");
19
+ console.log("RUNTIME_CWD:", RUNTIME_CWD);
19
20
  const serveFile = join(RUNTIME_CWD, file);
20
21
  const envJson = buildEnv();
21
22
  const envUsed = {
@@ -287,6 +288,8 @@ Otherwise, use chinese as default language to call the mcp tool '${name}-${repor
287
288
  },
288
289
  ...platform === "win32" && { windowsHide: true }
289
290
  });
291
+ console.log("执行命令:");
292
+ console.log(`node ${findCopilopt()} ${tools.join(" ")} --stream off -p ${prompt}`);
290
293
  copilot.stdout.setEncoding("utf8");
291
294
  copilot.stderr.setEncoding("utf8");
292
295
  copilot.stdout.on("data", (chunk) => {
@@ -306,11 +309,14 @@ Otherwise, use chinese as default language to call the mcp tool '${name}-${repor
306
309
  */
307
310
  function getCopilotPackageNames() {
308
311
  const packages = [];
312
+ console.log("platform:", platform);
313
+ console.log("arch:", arch);
309
314
  if (platform === "win32" && arch === "x64") packages.push("@github/copilot-win32-x64");
310
315
  else if (platform === "linux" && arch === "x64") packages.push("@github/copilot-linux-x64");
311
316
  else if (platform === "linux" && arch === "arm64") packages.push("@github/copilot-linux-arm64");
312
317
  else if (platform === "darwin" && arch === "arm64") packages.push("@github/copilot-darwin-arm64");
313
318
  packages.push("@github/copilot");
319
+ console.log("packages:", packages);
314
320
  return packages;
315
321
  }
316
322
  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.34",
7
+ "version": "0.1.37",
8
8
  "devDependencies": {
9
9
  "@modelcontextprotocol/sdk": "^1.25.1",
10
10
  "@types/node": "^25.0.3",