@d5render/cli 0.1.73 → 0.1.75
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 +18 -16
- package/package.json +1 -1
package/bin/d5cli
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath } from "node:url";
|
|
|
8
8
|
|
|
9
9
|
//#region package.json
|
|
10
10
|
var name$1 = "@d5render/cli";
|
|
11
|
-
var version = "0.1.
|
|
11
|
+
var version = "0.1.75";
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region packages/env.ts
|
|
@@ -278,19 +278,22 @@ async function getCopilotUsage(options = {}) {
|
|
|
278
278
|
//#endregion
|
|
279
279
|
//#region review/copilot/deploy.ts
|
|
280
280
|
const config = join(dirname(fileURLToPath(import.meta.url)), "copilot-mcp.json");
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
281
|
+
/** Windows 用 "@path"(给 shell 引号),Linux 用内联 JSON,避免 @path 写法触发未登录 */
|
|
282
|
+
function getTools() {
|
|
283
|
+
return [
|
|
284
|
+
"--additional-mcp-config",
|
|
285
|
+
platform === "win32" ? `"@${config}"` : readFileSync(config, "utf8"),
|
|
286
|
+
"--model",
|
|
287
|
+
"claude-opus-4.6",
|
|
288
|
+
"--allow-all-paths",
|
|
289
|
+
"--allow-all-tools",
|
|
290
|
+
"--enable-all-github-mcp-tools",
|
|
291
|
+
"--deny-tool",
|
|
292
|
+
"write",
|
|
293
|
+
"--stream",
|
|
294
|
+
"off"
|
|
295
|
+
];
|
|
296
|
+
}
|
|
294
297
|
async function deploy() {
|
|
295
298
|
if (!env.CI) return;
|
|
296
299
|
await changelog();
|
|
@@ -317,9 +320,8 @@ async function cli() {
|
|
|
317
320
|
if (httpProxy) env.HTTP_PROXY = httpProxy;
|
|
318
321
|
if (httpsProxy) env.HTTPS_PROXY = httpsProxy;
|
|
319
322
|
console.log("@d5render/cli version:", VERSION);
|
|
320
|
-
console.log("@d5render/cli env:", env);
|
|
321
323
|
const child = spawn(bind, [
|
|
322
|
-
...
|
|
324
|
+
...getTools(),
|
|
323
325
|
"-p",
|
|
324
326
|
`"${common_review_prompt.replace(/"/g, "\\\"")}"`
|
|
325
327
|
], {
|