@d5render/cli 0.1.74 → 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.
Files changed (2) hide show
  1. package/bin/d5cli +18 -16
  2. 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.74";
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
- const tools = [
282
- "--additional-mcp-config",
283
- `"@${config}"`,
284
- "--model",
285
- "claude-opus-4.6",
286
- "--allow-all-paths",
287
- "--allow-all-tools",
288
- "--enable-all-github-mcp-tools",
289
- "--deny-tool",
290
- "write",
291
- "--stream",
292
- "off"
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
- ...tools,
324
+ ...getTools(),
323
325
  "-p",
324
326
  `"${common_review_prompt.replace(/"/g, "\\\"")}"`
325
327
  ], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d5render/cli",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "license": "MIT",
5
5
  "author": "jasirou",
6
6
  "bin": {