@musistudio/claude-code-router 1.0.13 → 1.0.14

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/README.md CHANGED
@@ -40,7 +40,10 @@ ccr code
40
40
  "anthropic/claude-sonnet-4",
41
41
  "anthropic/claude-3.5-sonnet",
42
42
  "anthropic/claude-3.7-sonnet:thinking"
43
- ]
43
+ ],
44
+ "transformer": {
45
+ "use": ["openrouter"]
46
+ }
44
47
  },
45
48
  {
46
49
  "name": "deepseek",
package/dist/cli.js CHANGED
@@ -54957,7 +54957,7 @@ var initConfig = async () => {
54957
54957
  return config;
54958
54958
  };
54959
54959
 
54960
- // node_modules/.pnpm/@musistudio+llms@1.0.2_ws@8.18.3_zod@3.25.67/node_modules/@musistudio/llms/dist/esm/server.mjs
54960
+ // node_modules/.pnpm/@musistudio+llms@1.0.3_ws@8.18.3_zod@3.25.67/node_modules/@musistudio/llms/dist/esm/server.mjs
54961
54961
  var import_fastify = __toESM(require_fastify(), 1);
54962
54962
  var import_cors = __toESM(require_cors(), 1);
54963
54963
  var import_fs = require("fs");
@@ -55666,8 +55666,8 @@ Examples:
55666
55666
  if (e.headers.get("Content-Type")?.includes("application/json")) {
55667
55667
  let t = await e.json();
55668
55668
  if (t?.choices[0]?.message.tool_calls?.length && t?.choices[0]?.message.tool_calls[0]?.function?.name === "ExitTool") {
55669
- let n = JSON.parse(toolCall.function.arguments || "{}");
55670
- t.choices[0].message.content = n.response || "", delete t.choices[0].message.tool_calls;
55669
+ let n = t?.choices[0]?.message.tool_calls[0], o = JSON.parse(n.function.arguments || "{}");
55670
+ t.choices[0].message.content = o.response || "", delete t.choices[0].message.tool_calls;
55671
55671
  }
55672
55672
  return new Response(JSON.stringify(t), { status: e.status, statusText: e.statusText, headers: e.headers });
55673
55673
  } else if (e.headers.get("Content-Type")?.includes("stream")) {
@@ -56229,7 +56229,7 @@ async function executeCodeCommand(args = []) {
56229
56229
  }
56230
56230
 
56231
56231
  // package.json
56232
- var version = "1.0.13";
56232
+ var version = "1.0.14";
56233
56233
 
56234
56234
  // src/cli.ts
56235
56235
  var import_child_process2 = require("child_process");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@musistudio/claude-code-router",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Use Claude Code without an Anthropics account and route it to another LLM provider",
5
5
  "bin": {
6
6
  "ccr": "./dist/cli.js"
@@ -18,7 +18,7 @@
18
18
  "author": "musistudio",
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@musistudio/llms": "^1.0.2",
21
+ "@musistudio/llms": "^1.0.3",
22
22
  "dotenv": "^16.4.7",
23
23
  "tiktoken": "^1.0.21",
24
24
  "uuid": "^11.1.0"