@d5render/cli 0.1.79 → 0.1.80
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 +17 -25
- 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.80";
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region packages/env.ts
|
|
@@ -277,29 +277,21 @@ async function getCopilotUsage(options = {}) {
|
|
|
277
277
|
|
|
278
278
|
//#endregion
|
|
279
279
|
//#region review/copilot/deploy.ts
|
|
280
|
-
const
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
"--allow-all-tools",
|
|
296
|
-
"--enable-all-github-mcp-tools",
|
|
297
|
-
"--deny-tool",
|
|
298
|
-
"write",
|
|
299
|
-
"--stream",
|
|
300
|
-
"off"
|
|
301
|
-
];
|
|
302
|
-
}
|
|
280
|
+
const config = join(dirname(fileURLToPath(import.meta.url)), "copilot-mcp.json");
|
|
281
|
+
console.log("config:", config);
|
|
282
|
+
const tools = [
|
|
283
|
+
"--additional-mcp-config",
|
|
284
|
+
platform === "win32" ? `"@${config}"` : `@${config}`,
|
|
285
|
+
"--model",
|
|
286
|
+
"claude-opus-4.6",
|
|
287
|
+
"--allow-all-paths",
|
|
288
|
+
"--allow-all-tools",
|
|
289
|
+
"--enable-all-github-mcp-tools",
|
|
290
|
+
"--deny-tool",
|
|
291
|
+
"write",
|
|
292
|
+
"--stream",
|
|
293
|
+
"off"
|
|
294
|
+
];
|
|
303
295
|
async function deploy() {
|
|
304
296
|
if (!env.CI) return;
|
|
305
297
|
await changelog();
|
|
@@ -308,7 +300,7 @@ async function deploy() {
|
|
|
308
300
|
const token = await getCopilotUsage();
|
|
309
301
|
env["TOKEN_USAGE"] = String(token);
|
|
310
302
|
console.log("deploy customized config...");
|
|
311
|
-
writeFileSync(
|
|
303
|
+
writeFileSync(config, JSON.stringify({ mcpServers: { [name]: {
|
|
312
304
|
type: "local",
|
|
313
305
|
command: "node",
|
|
314
306
|
args: [serveFile, `--customizenv=${JSON.stringify(envUsed)}`],
|