@d5render/cli 0.1.61 → 0.1.62

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 +3 -2
  2. package/package.json +1 -1
package/bin/d5cli CHANGED
@@ -268,7 +268,7 @@ async function getCopilotUsage(options = {}) {
268
268
  try {
269
269
  return formatInternalResult(await fetchInternalUsage());
270
270
  } catch {
271
- return "使用量未知";
271
+ return null;
272
272
  }
273
273
  }
274
274
 
@@ -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
- `"@${config}"`,
280
+ platform === "win32" ? `"@${config}"` : `@${config}`,
281
281
  "--model",
282
282
  "claude-opus-4.6",
283
283
  "--allow-all-paths",
@@ -295,6 +295,7 @@ async function deploy() {
295
295
  deploySkills();
296
296
  const token = await getCopilotUsage();
297
297
  env["TOKEN_USAGE"] = String(token);
298
+ console.log("deploy customized config...");
298
299
  writeFileSync(config, JSON.stringify({ mcpServers: { [name]: {
299
300
  type: "local",
300
301
  command: "node",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d5render/cli",
3
- "version": "0.1.61",
3
+ "version": "0.1.62",
4
4
  "license": "MIT",
5
5
  "author": "jasirou",
6
6
  "bin": {