diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..106adff --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 TecFancy + +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 2cf59b8..d0fab72 100644 --- a/README.md +++ b/README.md @@ -306,3 +306,7 @@ tiers; `discovery.ts` capability discovery; `config.ts` holds env config; `cli-exec.ts` local/SSH CLI execution; `win-cmd.ts` starting a `.cmd`/`.bat` CLI on Windows; `turn.ts` one learning turn (CLI JSONL event folding + formatting); `html-render.ts` answer → self-contained HTML. + +## License + +MIT — see [LICENSE](LICENSE). diff --git a/README.zh.md b/README.zh.md index 32ca7ba..d64d1fa 100644 --- a/README.zh.md +++ b/README.zh.md @@ -211,3 +211,7 @@ cordis.patch.yml # bundle patch:按包名插入插件 ``` `src/tools.ts` 定义四个工具,与宿主无关;`index.ts` 在 dsh 里注册它们;`mcp.ts` 经 MCP stdio 提供它们(`mcp-main.ts` 是 `dsh-deeptutor-mcp` bin 的入口);`cli-policy.ts` 是 `deeptutor_cli` 的安全分级;`discovery.ts` 负责 capability 发现;`config.ts` 环境配置;`cli-exec.ts` 本地/SSH CLI 执行;`win-cmd.ts` 在 Windows 上启动 `.cmd`/`.bat` 形式的 CLI;`turn.ts` 单次学习回合(CLI JSONL 事件折叠与格式化);`html-render.ts` 答案 → 自包含 HTML。 + +## 许可 + +MIT,见 [LICENSE](LICENSE)。 diff --git a/package.json b/package.json index 1dc2ba4..c3742d9 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,8 @@ "docs", "cordis.patch.yml", "README.md", - "README.zh.md" + "README.zh.md", + "LICENSE" ], "dsh": { "bundle": {