@musistudio/claude-code-router 1.0.69 → 1.0.70
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/dist/cli.js +5 -5
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -67756,7 +67756,7 @@ var require_package3 = __commonJS({
|
|
|
67756
67756
|
"package.json"(exports2, module2) {
|
|
67757
67757
|
module2.exports = {
|
|
67758
67758
|
name: "@musistudio/claude-code-router",
|
|
67759
|
-
version: "1.0.
|
|
67759
|
+
version: "1.0.70",
|
|
67760
67760
|
description: "Use Claude Code without an Anthropics account and route it to another LLM provider",
|
|
67761
67761
|
bin: {
|
|
67762
67762
|
ccr: "dist/cli.js"
|
|
@@ -67776,7 +67776,7 @@ var require_package3 = __commonJS({
|
|
|
67776
67776
|
license: "MIT",
|
|
67777
67777
|
dependencies: {
|
|
67778
67778
|
"@fastify/static": "^8.2.0",
|
|
67779
|
-
"@musistudio/llms": "^1.0.
|
|
67779
|
+
"@musistudio/llms": "^1.0.44",
|
|
67780
67780
|
"@inquirer/prompts": "^5.0.0",
|
|
67781
67781
|
dotenv: "^16.4.7",
|
|
67782
67782
|
"find-process": "^2.0.0",
|
|
@@ -70931,7 +70931,7 @@ var import_os2 = require("os");
|
|
|
70931
70931
|
var import_path5 = require("path");
|
|
70932
70932
|
init_utils();
|
|
70933
70933
|
|
|
70934
|
-
// node_modules/.pnpm/@musistudio+llms@1.0.
|
|
70934
|
+
// node_modules/.pnpm/@musistudio+llms@1.0.44_ws@8.18.3/node_modules/@musistudio/llms/dist/esm/server.mjs
|
|
70935
70935
|
var import_node_fs = require("node:fs");
|
|
70936
70936
|
var import_node_path4 = require("node:path");
|
|
70937
70937
|
var import_node_stream = __toESM(require("node:stream"), 1);
|
|
@@ -79958,7 +79958,7 @@ function Gf(r, e, t, n, o) {
|
|
|
79958
79958
|
let d = { method: "POST", headers: i, body: JSON.stringify(e), signal: u };
|
|
79959
79959
|
return t.httpsProxy && (d.dispatcher = new import_undici.ProxyAgent(new URL(t.httpsProxy).toString())), n?.debug({ reqId: o.req.id, request: d, headers: Object.fromEntries(i.entries()), requestUrl: typeof r == "string" ? r : r.toString(), useProxy: t.httpsProxy }, "final request"), fetch(typeof r == "string" ? r : r.toString(), d);
|
|
79960
79960
|
}
|
|
79961
|
-
var Wf = "1.0.
|
|
79961
|
+
var Wf = "1.0.44";
|
|
79962
79962
|
async function f0(r, e, t, n) {
|
|
79963
79963
|
let o = r.body, i = r.provider, u = t._server.providerService.getProvider(i);
|
|
79964
79964
|
if (!u) throw nt(`Provider '${i}' not found`, 404, "provider_not_found");
|
|
@@ -79992,7 +79992,7 @@ async function p0(r, e, t, n, o, i, u) {
|
|
|
79992
79992
|
f.config?.headers && (g = { ...g, ...f.config.headers }, delete g.host, delete f.config.headers), e = { ...e, ...f.config, headers: g };
|
|
79993
79993
|
} else r = f;
|
|
79994
79994
|
}
|
|
79995
|
-
let d = { ...e?.headers || {} };
|
|
79995
|
+
let d = { Authorization: `Bearer ${t.apiKey}`, ...e?.headers || {} };
|
|
79996
79996
|
for (let f in d) (d[f] === "undefined" || ["authorization", "Authorization"].includes(f) && d[f]?.includes("undefined")) && delete d[f];
|
|
79997
79997
|
let h = await Gf(l, r, { httpsProxy: n._server.configService.getHttpsProxy(), ...e, headers: JSON.parse(JSON.stringify(d)) }, n.log, u);
|
|
79998
79998
|
if (!h.ok) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@musistudio/claude-code-router",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.70",
|
|
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"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@fastify/static": "^8.2.0",
|
|
23
|
-
"@musistudio/llms": "^1.0.
|
|
23
|
+
"@musistudio/llms": "^1.0.44",
|
|
24
24
|
"@inquirer/prompts": "^5.0.0",
|
|
25
25
|
"dotenv": "^16.4.7",
|
|
26
26
|
"find-process": "^2.0.0",
|