Skip to content

Commit 68540b2

Browse files
committed
feat: 将项目协议从 MIT/ISC 迁移到 AGPL-3.0
- 替换 LICENSE 文件为 AGPL-3.0 完整协议文本 - 更新所有 package.json 的 license 字段为 AGPL-3.0-only - 更新 README 文件协议说明,采用简洁易懂的描述方式 - 为关键入口文件添加 AGPL-3.0 标准协议头部注释 - 明确说明 AGPL-3.0 允许商业使用但要求网络服务开源 BREAKING CHANGE: 协议从宽松的 MIT/ISC 变更为强 Copyleft 的 AGPL-3.0
1 parent 93c3709 commit 68540b2

File tree

15 files changed

+804
-32
lines changed

15 files changed

+804
-32
lines changed

LICENSE

Lines changed: 669 additions & 21 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<a href="https://trendshift.io/repositories/13813" target="_blank"><img src="https://trendshift.io/api/badge/repositories/13813" alt="linshenkx%2Fprompt-optimizer | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
1111

12-
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
12+
[![License](https://img.shields.io/badge/license-AGPL--3.0-blue.svg)](LICENSE)
1313
[![Docker Pulls](https://img.shields.io/docker/pulls/linshen/prompt-optimizer)](https://hub.docker.com/r/linshen/prompt-optimizer)
1414
![GitHub forks](https://img.shields.io/github/forks/linshenkx/prompt-optimizer?style=flat)
1515
[![Deploy with Vercel](https://img.shields.io/badge/Vercel-indigo?style=flat&logo=vercel)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flinshenkx%2Fprompt-optimizer)
@@ -422,7 +422,26 @@ pnpm dev:fresh # 完整重置并重新启动开发环境
422422

423423
## 📄 开源协议
424424

425-
本项目采用 [MIT](LICENSE) 协议开源。
425+
本项目采用 [AGPL-3.0](LICENSE) 协议开源。
426+
427+
**简单来说**:你可以自由使用、修改和商用本项目,但如果你把它做成网站或服务给别人用,需要公开你的源代码。
428+
429+
<details>
430+
<summary>👉 点击查看详细说明</summary>
431+
432+
**允许做什么:**
433+
- ✅ 个人使用、学习、研究
434+
- ✅ 公司内部使用(不对外提供服务)
435+
- ✅ 修改代码并用于商业项目
436+
- ✅ 收费销售或提供服务
437+
438+
**需要做什么:**
439+
- 📖 如果分发软件或提供网络服务,必须公开源代码
440+
- 📝 保留原作者的版权声明
441+
442+
**一句话核心**:可以商用,但不能闭源。
443+
444+
</details>
426445

427446
---
428447

README_EN.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<a href="https://trendshift.io/repositories/13813" target="_blank"><img src="https://trendshift.io/api/badge/repositories/13813" alt="linshenkx%2Fprompt-optimizer | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
1111

12-
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
12+
[![License](https://img.shields.io/badge/license-AGPL--3.0-blue.svg)](LICENSE)
1313
[![Docker Pulls](https://img.shields.io/docker/pulls/linshen/prompt-optimizer)](https://hub.docker.com/r/linshen/prompt-optimizer)
1414
![GitHub forks](https://img.shields.io/github/forks/linshenkx/prompt-optimizer?style=flat)
1515
[![Deploy with Vercel](https://img.shields.io/badge/Vercel-indigo?style=flat&logo=vercel)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flinshenkx%2Fprompt-optimizer)
@@ -424,7 +424,26 @@ Thanks to all the developers who have contributed to this project!
424424

425425
## 📄 License
426426

427-
This project is licensed under the [MIT](LICENSE) License.
427+
This project is licensed under [AGPL-3.0](LICENSE).
428+
429+
**In simple terms**: You can freely use, modify, and commercialize this project, but if you turn it into a website or service for others, you must share your source code.
430+
431+
<details>
432+
<summary>👉 Click for detailed explanation</summary>
433+
434+
**What you can do:**
435+
- ✅ Personal use, learning, and research
436+
- ✅ Internal company use (not offering public services)
437+
- ✅ Modify code for commercial projects
438+
- ✅ Charge for products or services
439+
440+
**What you must do:**
441+
- 📖 If distributing software or offering network services, disclose source code
442+
- 📝 Preserve original author's copyright notices
443+
444+
**Core principle**: Commercial use is allowed, but not closed-source.
445+
446+
</details>
428447

429448
---
430449

mkdocs/docs/zh/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[![GitHub stars](https://img.shields.io/github/stars/linshenkx/prompt-optimizer)](https://github.com/linshenkx/prompt-optimizer/stargazers)
66
![Chrome Web Store Users](https://img.shields.io/chrome-web-store/users/cakkkhboolfnadechdlgdcnjammejlna)
7-
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/linshenkx/prompt-optimizer/blob/main/LICENSE)
7+
[![License](https://img.shields.io/badge/license-AGPL--3.0-blue.svg)](https://github.com/linshenkx/prompt-optimizer/blob/main/LICENSE)
88

99
**一个强大的 AI 提示词优化工具,帮助你编写更好的 AI 提示词,提升 AI 输出质量**
1010

@@ -81,7 +81,7 @@
8181

8282
## 📄 开源协议
8383

84-
本项目采用 [MIT](https://github.com/linshenkx/prompt-optimizer/blob/main/LICENSE) 协议开源。
84+
本项目采用 [GNU Affero General Public License v3.0](https://github.com/linshenkx/prompt-optimizer/blob/main/LICENSE) 协议开源。
8585

8686
---
8787

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
},
8585
"keywords": [],
8686
"author": "",
87-
"license": "ISC",
87+
"license": "AGPL-3.0-only",
8888
"pnpm": {
8989
"onlyBuiltDependencies": [
9090
"electron"

packages/core/src/index.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Prompt Optimizer - AI提示词优化工具
3+
* Copyright (C) 2025 linshenkx
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU Affero General Public License as published
7+
* by the Free Software Foundation, version 3 of the License.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Affero General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Affero General Public License
15+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
*/
17+
118
// Core package entry point
219

320
// 导出模板相关

packages/desktop/main.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Prompt Optimizer - AI提示词优化工具
3+
* Copyright (C) 2025 linshenkx
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU Affero General Public License as published
7+
* by the Free Software Foundation, version 3 of the License.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Affero General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Affero General Public License
15+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
*/
17+
118
// 在所有其他模块之前初始化日志系统
219
const ConsoleLogger = require('./config/console-logger');
320
const consoleLogger = new ConsoleLogger();

packages/desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@
9494
"optimizer"
9595
],
9696
"author": "https://github.com/linshenkx",
97-
"license": "MIT"
97+
"license": "AGPL-3.0-only"
9898
}

packages/mcp-server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,4 @@ npx @modelcontextprotocol/inspector
165165

166166
## 许可证
167167

168-
MIT
168+
GNU Affero General Public License v3.0 (AGPL-3.0-only)

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"ai"
2525
],
2626
"author": "Prompt Optimizer Team",
27-
"license": "MIT",
27+
"license": "AGPL-3.0-only",
2828
"dependencies": {
2929
"@modelcontextprotocol/sdk": "^1.16.0",
3030
"@prompt-optimizer/core": "workspace:*",

0 commit comments

Comments
 (0)