commit 67ff2655da1367925946f1f84e6e2fdd4a056d49 Author: codemao-cli Date: Sat May 2 23:55:39 2026 +0800 feat: codemao-cli v1.0.0 - 62 个 API 端点 (13 个域名) - BCM 文件格式解析 - 示例作品下载 - 模板下载 - 端点搜索 - MIT 开源 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1f09ade --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +*.bcmkn +*.bcmknk +*.png +.DS_Store diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..14fac91 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 + +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 new file mode 100644 index 0000000..b8c4ae5 --- /dev/null +++ b/README.md @@ -0,0 +1,160 @@ +# Codemao CLI + +编程猫 (Codemao) 社区命令行工具。无需登录即可访问公开 API,解析 BCM 作品文件。 + +## 安装 + +```bash +npm install -g codemao-cli +``` + +或直接运行: + +```bash +npx codemao-cli help +``` + +## 功能 + +| 命令 | 说明 | +|------|------| +| `codemao sample list` | 列出 14 个官方示例作品 | +| `codemao sample download ` | 下载示例 BCM 文件 | +| `codemao bcm info ` | 解析 BCM 文件摘要 | +| `codemao bcm actors ` | 列出所有角色 | +| `codemao bcm blocks ` | 列出所有积木 | +| `codemao bcm extract ` | 提取资源 URL | +| `codemao work list` | 列出用户作品 (需登录) | +| `codemao download