From dd22d769f4bd5c4d1bb147526a4723623e67cd64 Mon Sep 17 00:00:00 2001 From: KimiSwitch Dev Date: Wed, 22 Jul 2026 13:35:02 +0800 Subject: [PATCH] docs: add MIT LICENSE and update README license reference - Add LICENSE file under MIT, copyright 2026 CodingPlan.site - Replace 'All rights reserved' note in README with link to LICENSE - Switch License badge from 'Private' to 'MIT' --- LICENSE | 21 +++++++++++++++++++++ README.md | 8 ++++---- 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8410cd8 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 CodingPlan.site + +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. \ No newline at end of file diff --git a/README.md b/README.md index b3968a0..4590e45 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![React](https://img.shields.io/badge/React-18-61dafb?logo=react)](https://react.dev) [![TypeScript](https://img.shields.io/badge/TypeScript-5.5-3178c6?logo=typescript)](https://www.typescriptlang.org) [![Rust](https://img.shields.io/badge/Rust-2021-ed764d?logo=rust)](https://www.rust-lang.org) -[![License](https://img.shields.io/badge/license-Private-lightgrey)](#license) +[![License](https://img.shields.io/badge/license-MIT-green)](./LICENSE) --- @@ -312,15 +312,15 @@ A: Vertex 需要 GCP project/location 凭证,当前实现留了 TODO,等 GCP **Q: 支持 macOS / Linux 吗?** A: 代码不依赖 Windows 专属 API,但 `tauri.conf.json` 的 bundle 目标目前只配了 `msi`。理论上把 `bundle.targets` 改成 `["app", "dmg"]` 等即可跨平台,但未验证。 +- 协议:MIT(详见 [LICENSE](./LICENSE)) + ## 安全提示 - API Key 以明文存储在本地 SQLite 和 Agent 原生配置里——**不要在共享电脑上保存** - 不要把 `pi-switch.db`、`config.toml`、`models.json` 提交到 Git - 应用 CSP 已收紧(`default-src 'self'`),但 WebView2 仍可能缓存表单内容,注意在公共电脑用完退出 -## License - -Private / All rights reserved. 仅供内部使用。 +- 许可证:MIT(详见 [LICENSE](./LICENSE)) ---