@musistudio/claude-code-router 1.0.42 → 1.0.43
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 +7 -7
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -66123,7 +66123,7 @@ var require_package3 = __commonJS({
|
|
|
66123
66123
|
"package.json"(exports2, module2) {
|
|
66124
66124
|
module2.exports = {
|
|
66125
66125
|
name: "@musistudio/claude-code-router",
|
|
66126
|
-
version: "1.0.
|
|
66126
|
+
version: "1.0.43",
|
|
66127
66127
|
description: "Use Claude Code without an Anthropics account and route it to another LLM provider",
|
|
66128
66128
|
bin: {
|
|
66129
66129
|
ccr: "./dist/cli.js"
|
|
@@ -66143,7 +66143,7 @@ var require_package3 = __commonJS({
|
|
|
66143
66143
|
license: "MIT",
|
|
66144
66144
|
dependencies: {
|
|
66145
66145
|
"@fastify/static": "^8.2.0",
|
|
66146
|
-
"@musistudio/llms": "^1.0.
|
|
66146
|
+
"@musistudio/llms": "^1.0.28",
|
|
66147
66147
|
dotenv: "^16.4.7",
|
|
66148
66148
|
json5: "^2.2.3",
|
|
66149
66149
|
openurl: "^1.1.1",
|
|
@@ -66635,7 +66635,7 @@ var import_os = require("os");
|
|
|
66635
66635
|
var import_path4 = require("path");
|
|
66636
66636
|
init_utils();
|
|
66637
66637
|
|
|
66638
|
-
// node_modules/.pnpm/@musistudio+llms@1.0.
|
|
66638
|
+
// node_modules/.pnpm/@musistudio+llms@1.0.28_ws@8.18.3/node_modules/@musistudio/llms/dist/esm/server.mjs
|
|
66639
66639
|
var import_node_fs = require("node:fs");
|
|
66640
66640
|
var import_node_path4 = require("node:path");
|
|
66641
66641
|
var import_node_stream = __toESM(require("node:stream"), 1);
|
|
@@ -75662,7 +75662,7 @@ function jf(r, e, t, n) {
|
|
|
75662
75662
|
let l = { method: "POST", headers: o, body: JSON.stringify(e), signal: a };
|
|
75663
75663
|
return t.httpsProxy && (l.dispatcher = new import_undici.ProxyAgent(new URL(t.httpsProxy).toString())), n?.debug({ request: l, headers: Object.fromEntries(o.entries()), requestUrl: typeof r == "string" ? r : r.toString(), useProxy: t.httpsProxy }, "final request"), fetch(typeof r == "string" ? r : r.toString(), l);
|
|
75664
75664
|
}
|
|
75665
|
-
var Lf = "1.0.
|
|
75665
|
+
var Lf = "1.0.28";
|
|
75666
75666
|
async function o0(r, e, t, n) {
|
|
75667
75667
|
let o = r.body, a = r.provider, u = t._server.providerService.getProvider(a);
|
|
75668
75668
|
if (!u) throw nt(`Provider '${a}' not found`, 404, "provider_not_found");
|
|
@@ -76032,8 +76032,8 @@ data: ${JSON.stringify(H)}
|
|
|
76032
76032
|
K = he.pop() || "";
|
|
76033
76033
|
for (let fe of he) {
|
|
76034
76034
|
if (g || d) break;
|
|
76035
|
-
if (!fe.startsWith("data:
|
|
76036
|
-
let ye = fe.slice(
|
|
76035
|
+
if (!fe.startsWith("data:")) continue;
|
|
76036
|
+
let ye = fe.slice(5).trim();
|
|
76037
76037
|
if (this.logger.debug(`recieved data: ${ye}`), ye !== "[DONE]") try {
|
|
76038
76038
|
let re = JSON.parse(ye);
|
|
76039
76039
|
if (P++, this.logger.debug({ response: re }, "Original Response"), re.error) {
|
|
@@ -78851,7 +78851,7 @@ async function run(options = {}) {
|
|
|
78851
78851
|
}
|
|
78852
78852
|
};
|
|
78853
78853
|
read(clonedStream);
|
|
78854
|
-
done(originalStream);
|
|
78854
|
+
done(null, originalStream);
|
|
78855
78855
|
} else {
|
|
78856
78856
|
req.log.debug({ payload }, "onSend Hook");
|
|
78857
78857
|
sessionUsageCache.put(req.sessionId, payload.usage);
|
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.43",
|
|
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.28",
|
|
24
24
|
"dotenv": "^16.4.7",
|
|
25
25
|
"json5": "^2.2.3",
|
|
26
26
|
"openurl": "^1.1.1",
|