@d5render/cli 0.1.63 → 0.1.65
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 -3
- package/package.json +1 -1
package/bin/d5cli
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { argv, env
|
|
2
|
+
import { argv, env } from "node:process";
|
|
3
3
|
import { execSync, spawn } from "node:child_process";
|
|
4
4
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
@@ -277,7 +277,7 @@ async function getCopilotUsage(options = {}) {
|
|
|
277
277
|
const config = join(dirname(fileURLToPath(import.meta.url)), "copilot-mcp.json");
|
|
278
278
|
const tools = [
|
|
279
279
|
"--additional-mcp-config",
|
|
280
|
-
|
|
280
|
+
`"@${config}"`,
|
|
281
281
|
"--model",
|
|
282
282
|
"claude-opus-4.6",
|
|
283
283
|
"--allow-all-paths",
|
|
@@ -324,7 +324,7 @@ async function cli() {
|
|
|
324
324
|
"pipe",
|
|
325
325
|
"pipe"
|
|
326
326
|
],
|
|
327
|
-
|
|
327
|
+
shell: true
|
|
328
328
|
});
|
|
329
329
|
child.stdout.on("data", (chunk) => console.log(String(chunk)));
|
|
330
330
|
child.stderr.on("data", (chunk) => console.error(String(chunk)));
|
|
@@ -337,6 +337,9 @@ async function cli() {
|
|
|
337
337
|
//#endregion
|
|
338
338
|
//#region review/index.ts
|
|
339
339
|
async function codereview() {
|
|
340
|
+
try {
|
|
341
|
+
console.log(execSync("npm list -g @d5render/cli --depth=0").toString());
|
|
342
|
+
} catch {}
|
|
340
343
|
try {
|
|
341
344
|
if (!await need()) {
|
|
342
345
|
console.log("重复提交,进程跳过");
|