@musistudio/claude-code-router 1.0.30 → 1.0.32

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.
@@ -1,13 +1,10 @@
1
1
  version: "3.8"
2
2
 
3
3
  services:
4
- claude-code-reverse:
4
+ claude-code-router:
5
5
  build: .
6
6
  ports:
7
7
  - "3456:3456"
8
- environment:
9
- - ENABLE_ROUTER=${ENABLE_ROUTER}
10
- - OPENAI_API_KEY=${OPENAI_API_KEY}
11
- - OPENAI_BASE_URL=${OPENAI_BASE_URL}
12
- - OPENAI_MODEL=${OPENAI_MODEL}
8
+ volumes:
9
+ - ~/.claude-code-router:/root/.claude-code-router
13
10
  restart: unless-stopped
package/dockerfile CHANGED
@@ -2,11 +2,23 @@ FROM node:20-alpine
2
2
 
3
3
  WORKDIR /app
4
4
 
5
- COPY package*.json ./
6
- RUN npm i
7
-
5
+ # Copy all files
8
6
  COPY . .
9
7
 
8
+ # Install pnpm globally
9
+ RUN npm install -g pnpm
10
+
11
+ # Install dependencies
12
+ RUN pnpm install --frozen-lockfile
13
+
14
+ # Fix rollup optional dependencies issue
15
+ RUN cd ui && npm install
16
+
17
+ # Build the entire project including UI
18
+ RUN pnpm run build
19
+
20
+ # Expose port
10
21
  EXPOSE 3456
11
22
 
12
- CMD ["node", "index.mjs"]
23
+ # Start the router service
24
+ CMD ["node", "dist/cli.js", "start"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@musistudio/claude-code-router",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
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.16",
23
+ "@musistudio/llms": "^1.0.18",
24
24
  "dotenv": "^16.4.7",
25
25
  "json5": "^2.2.3",
26
26
  "openurl": "^1.1.1",