diff --git a/.github/workflows/cdn.yml b/.github/workflows/cdn.yml
deleted file mode 100644
index 6223aa6..0000000
--- a/.github/workflows/cdn.yml
+++ /dev/null
@@ -1,33 +0,0 @@
-name: CDN
-
-on:
- push:
- branches:
- - main
- paths:
- - "cdn/**"
- - ".github/workflows/cdn.yml"
- workflow_dispatch:
-
-permissions:
- contents: read
-
-concurrency:
- group: cdn
- cancel-in-progress: false
-
-jobs:
- deploy:
- name: Deploy Cloudflare Pages
- runs-on: ubuntu-latest
- steps:
- - name: Check out repository
- uses: actions/checkout@v6
-
- - name: Deploy CDN assets
- uses: cloudflare/wrangler-action@v3
- with:
- apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- workingDirectory: cdn
- command: pages deploy public --project-name=claude-code-router-cdn --branch=${{ github.ref_name }}
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..ea7e8ac
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2025 musistudio
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
index 1377e08..e53da3b 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,7 @@
+
@@ -281,3 +282,7 @@ A huge thank you to all our sponsors for their generous support.
- @x\*g
(If your name is masked, please contact me via my homepage email to update it with your GitHub username.)
+
+## License
+
+This project is licensed under the [MIT License](LICENSE).
diff --git a/README_zh.md b/README_zh.md
index dc81f80..dfe6b3a 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -4,6 +4,7 @@
+
@@ -281,3 +282,7 @@ macOS 打包 hook 会在产物生成前验证代码签名、公证票据 staplin - @x\*g (如果你的名字被打码,请通过我的主页邮箱联系我更新为 GitHub 用户名。) + +## 许可证 + +本项目基于 [MIT License](LICENSE) 发布。 diff --git a/cdn/package.json b/cdn/package.json index 3968876..f49b77a 100644 --- a/cdn/package.json +++ b/cdn/package.json @@ -2,6 +2,7 @@ "name": "claude-code-router-cdn", "private": true, "version": "0.1.0", + "license": "MIT", "type": "module", "scripts": { "deploy": "wrangler pages deploy public --project-name=claude-code-router-cdn", diff --git a/docs/package-lock.json b/docs/package-lock.json index 02de48c..92adc81 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "claude-code-router-docs", "version": "0.1.0", + "license": "MIT", "devDependencies": { "astro": "7.0.0", "lucide-astro": "^0.556.0" diff --git a/docs/package.json b/docs/package.json index b2046bf..0f0aa87 100644 --- a/docs/package.json +++ b/docs/package.json @@ -2,6 +2,7 @@ "name": "claude-code-router-docs", "private": true, "version": "0.1.0", + "license": "MIT", "type": "module", "scripts": { "dev": "astro dev", diff --git a/package-lock.json b/package-lock.json index 036ccac..a741305 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "claude-code-router", "version": "3.0.2", + "license": "MIT", "dependencies": { "@the-next-ai/ai-gateway": "^1.0.1", "@the-next-ai/bot-gateway-sdk": "^0.1.0", diff --git a/package.json b/package.json index 6666ca5..1a070ff 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "claude-code-router", "private": true, "version": "3.0.2", + "license": "MIT", "description": "Desktop scaffold for Claude Code Router.", "main": "dist/main/main.js", "bin": {