@musistudio/claude-code-router 1.0.56 → 1.0.57

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
@@ -587,5 +587,7 @@ A huge thank you to all our sponsors for their generous support!
587
587
  - @\*霄
588
588
  - @\*\*吉
589
589
  - @\*\*飞
590
+ - @\*\*驰
591
+ - @x\*g
590
592
 
591
593
  (If your name is masked, please contact me via my homepage email to update it with your GitHub username.)
package/README_zh.md CHANGED
@@ -560,6 +560,8 @@ jobs:
560
560
  - @\*霄
561
561
  - @\*\*吉
562
562
  - @\*\*飞
563
+ - @\*\*驰
564
+ - @x\*g
563
565
 
564
566
  (如果您的名字被屏蔽,请通过我的主页电子邮件与我联系,以便使用您的 GitHub 用户名进行更新。)
565
567
 
package/dist/cli.js CHANGED
@@ -67693,7 +67693,7 @@ var require_package3 = __commonJS({
67693
67693
  "package.json"(exports2, module2) {
67694
67694
  module2.exports = {
67695
67695
  name: "@musistudio/claude-code-router",
67696
- version: "1.0.55",
67696
+ version: "1.0.57",
67697
67697
  description: "Use Claude Code without an Anthropics account and route it to another LLM provider",
67698
67698
  bin: {
67699
67699
  ccr: "dist/cli.js"
@@ -83330,7 +83330,7 @@ async function run(options = {}) {
83330
83330
  });
83331
83331
  });
83332
83332
  server.addHook("preHandler", async (req, reply) => {
83333
- if (req.url.startsWith("/v1/messages")) {
83333
+ if (req.url.startsWith("/v1/messages") && !req.url.startsWith("/v1/messages/count_tokens")) {
83334
83334
  const useAgents = [];
83335
83335
  for (const agent of agents_default.getAllAgents()) {
83336
83336
  if (agent.shouldHandle(req, config)) {
@@ -83363,7 +83363,7 @@ async function run(options = {}) {
83363
83363
  event.emit("onError", request, reply, error);
83364
83364
  });
83365
83365
  server.addHook("onSend", (req, reply, payload, done) => {
83366
- if (req.sessionId && req.url.startsWith("/v1/messages")) {
83366
+ if (req.sessionId && req.url.startsWith("/v1/messages") && !req.url.startsWith("/v1/messages/count_tokens")) {
83367
83367
  if (payload instanceof ReadableStream) {
83368
83368
  if (req.agents) {
83369
83369
  const abortController = new AbortController();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@musistudio/claude-code-router",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
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"