@d5render/cli 0.1.36 → 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/d5cli +6 -1
- package/package.json +1 -1
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.
|
|
10
|
+
var version = "0.1.37";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region copilot/server/config.ts
|
|
@@ -288,6 +288,8 @@ Otherwise, use chinese as default language to call the mcp tool '${name}-${repor
|
|
|
288
288
|
},
|
|
289
289
|
...platform === "win32" && { windowsHide: true }
|
|
290
290
|
});
|
|
291
|
+
console.log("执行命令:");
|
|
292
|
+
console.log(`node ${findCopilopt()} ${tools.join(" ")} --stream off -p ${prompt}`);
|
|
291
293
|
copilot.stdout.setEncoding("utf8");
|
|
292
294
|
copilot.stderr.setEncoding("utf8");
|
|
293
295
|
copilot.stdout.on("data", (chunk) => {
|
|
@@ -307,11 +309,14 @@ Otherwise, use chinese as default language to call the mcp tool '${name}-${repor
|
|
|
307
309
|
*/
|
|
308
310
|
function getCopilotPackageNames() {
|
|
309
311
|
const packages = [];
|
|
312
|
+
console.log("platform:", platform);
|
|
313
|
+
console.log("arch:", arch);
|
|
310
314
|
if (platform === "win32" && arch === "x64") packages.push("@github/copilot-win32-x64");
|
|
311
315
|
else if (platform === "linux" && arch === "x64") packages.push("@github/copilot-linux-x64");
|
|
312
316
|
else if (platform === "linux" && arch === "arm64") packages.push("@github/copilot-linux-arm64");
|
|
313
317
|
else if (platform === "darwin" && arch === "arm64") packages.push("@github/copilot-darwin-arm64");
|
|
314
318
|
packages.push("@github/copilot");
|
|
319
|
+
console.log("packages:", packages);
|
|
315
320
|
return packages;
|
|
316
321
|
}
|
|
317
322
|
function findCopilopt() {
|