@d5render/cli 0.1.74 → 0.1.76
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 +20 -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.76";
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region packages/env.ts
|
|
@@ -278,19 +278,24 @@ 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
|
+
console.log("config:", config);
|
|
282
|
+
console.log("platform:", platform);
|
|
283
|
+
console.log("readFileSync(config, 'utf8'):", readFileSync(config, "utf8"));
|
|
284
|
+
/** Windows 用 "@path"(给 shell 引号),Linux 用内联 JSON,避免 @path 写法触发未登录 */
|
|
285
|
+
function getTools() {
|
|
286
|
+
platform === "win32" ? `${config}` : readFileSync(config, "utf8");
|
|
287
|
+
return [
|
|
288
|
+
"--model",
|
|
289
|
+
"claude-opus-4.6",
|
|
290
|
+
"--allow-all-paths",
|
|
291
|
+
"--allow-all-tools",
|
|
292
|
+
"--enable-all-github-mcp-tools",
|
|
293
|
+
"--deny-tool",
|
|
294
|
+
"write",
|
|
295
|
+
"--stream",
|
|
296
|
+
"off"
|
|
297
|
+
];
|
|
298
|
+
}
|
|
294
299
|
async function deploy() {
|
|
295
300
|
if (!env.CI) return;
|
|
296
301
|
await changelog();
|
|
@@ -317,9 +322,8 @@ async function cli() {
|
|
|
317
322
|
if (httpProxy) env.HTTP_PROXY = httpProxy;
|
|
318
323
|
if (httpsProxy) env.HTTPS_PROXY = httpsProxy;
|
|
319
324
|
console.log("@d5render/cli version:", VERSION);
|
|
320
|
-
console.log("@d5render/cli env:", env);
|
|
321
325
|
const child = spawn(bind, [
|
|
322
|
-
...
|
|
326
|
+
...getTools(),
|
|
323
327
|
"-p",
|
|
324
328
|
`"${common_review_prompt.replace(/"/g, "\\\"")}"`
|
|
325
329
|
], {
|