feat: add note mode and workflow config

This commit is contained in:
shiyue
2026-06-12 16:39:44 +08:00
parent 5308a10b52
commit 8b2173be8f
93 changed files with 15292 additions and 50 deletions

View File

@@ -55,11 +55,10 @@ https://github.com/ZgDaniel/cc-web 给我装!
```bash
git clone https://github.com/ZgDaniel/cc-web.git
cd cc-web
cp .env.example .env # 可选,不设密码则首次启动自动生成
./start.sh
```
`start.sh` 会检查 Node.js/npm 环境,自动安装 PM2如未安装安装项目依赖并以 `ccweb` 为默认应用名启动或重启服务。
`start.sh` 会检查 Node.js/npm 环境,自动创建 `.env`(如不存在),引导输入初始登录密码,自动安装 PM2如未安装安装项目依赖并以 `ccweb` 为默认应用名启动或重启服务。
如只想前台临时运行,也可以手动执行:
@@ -202,13 +201,16 @@ tail -f logs/process.log | jq .
```bash
git clone https://github.com/ZgDaniel/cc-web.git
cd cc-web
cp .env.example .env # 可选,不设密码则首次启动自动生成
./start.sh
```
脚本默认执行以下动作:
- 检查 Node.js >= 18 与 npm
- 自动创建 `.env`(如不存在),并补齐默认 `PORT=8002`
- 首次部署时引导输入 `CC_WEB_PASSWORD`,写入 `.env` 后由服务迁移到 `config/auth.json`
- 如果已存在 `config/auth.json`,跳过初始密码设置,避免覆盖已修改的密码
- 检查 Claude / Codex CLI 是否可用;未安装时仅提示,不阻塞 Web 服务启动
- 检查 PM2未安装时自动执行 `npm install -g pm2`
- 使用 `npm ci` 安装项目依赖(无 `package-lock.json` 时退回 `npm install`
- 使用 PM2 启动或重启 `server.js`,默认应用名为 `ccweb`