Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
python -m pip check
- name: Run stable smoke tests
run: |
python -m pytest -q \
tests/code-tests/skills \
tests/mock-cli-tests
tests/mock-cli-tests \
tests/code-tests/serve/test_oauth_server.py \
tests/code-tests/serve/test_openai_oauth.py
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,14 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install '.[dev]'
python -m pip check
- name: Run stable smoke tests
run: |
python -m pytest -q \
tests/code-tests/skills \
tests/mock-cli-tests
tests/mock-cli-tests \
tests/code-tests/serve/test_oauth_server.py \
tests/code-tests/serve/test_openai_oauth.py
- name: Build distributions
run: |
python -m build
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ src/chattool/
├── client/ # 统一 CLI 主入口(chattool)
├── llm/ # LLM 路由、Chat 对象
├── config/ # 环境变量管理(chatenv)
├── tools/ # 工具箱(lark、image、nginx 等;成熟能力如 dns/network 已拆到独立包)
├── tools/ # 工具箱(nginx 等;CRS、DNS、GitHub、Lark、image 等成熟能力已拆到独立包)
├── mcp/ # MCP 入口与编排(工具实现下放到 tools/*/mcp.py)
├── setup/ # 环境安装脚本
├── serve/ # 服务端(截图、证书分发等)
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.

本项目按日期记录更新;正式发版信息也记录在本文件,不再维护待发布分组。

## 2026-10-20
- `7.1.5` patch:将共享 runtime 依赖对齐到 `chatstyle>=0.2.0,<0.3.0` 与 `chatenv>=0.2.10,<0.3.0`,避免和已使用 ChatStyle 0.2 的 ChatArch 独立包产生解析冲突;原交互参数与 adapter 保持不变。
- CRS 已由独立 ChatCRS 维护:移除 `chattool crs`、内嵌 CRS HTTP/CLI 实现及父包 CRSConfig 注册;`chattool[crs]` / `[arch]` 可安装 `ChatCRS>=0.3.5,<0.4.0`,实际命令使用 `chatcrs`。
- 保留 `chattool serve oauth`:将其复用的通用 OAuth helper 原样移到 `chattool.serve.openai_oauth`,同步迁移测试,避免清理 CRS 时破坏独立的 OAuth 服务。
- 更新 CRS 迁移说明、配置归属、双语 CLI 树与回归测试;不修改既有凭据或激活 profile。
- CI 与发布依赖安装后增加 `pip check`,阻止共享依赖声明冲突进入正式发布。

## 2026-08-12
- 准备 `7.1.4` patch 版本:为 ChatTool parent 顶层 CLI 增加真实 Click/LazyGroup 注册面生成的 `chattool --tree`,并补齐顶层 `chattool --version`。
- 文档与测试同步锁定当前 parent command surface:`browser`、`cc`、`client`、`crs`、`docker`、`explore`、`mcp`、`nginx`、`serve`、`skill`、`tplogin`;已迁出的 `dns`、`gh`、`image` 等不重新进入 parent CLI。
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ chattool serve local . --html index.html --dry-run
| Workspace | `chatup workspace` | 初始化围绕核心项目的人类-AI 协作工作区骨架;当前默认使用 `projects/` 作为实际工作的执行容器,workspace 根目录则保留 general-use 协议与上下文;可选 `--with-chattool`、`--with-chatblog`、`--with-memory` 分别挂载 ChatTool、ChatBlog、ChatMemory |
| Skills | `chattool skill install` | 安装 ChatTool skills 到 Codex / Claude / OpenCode |
| CC-Connect | `chattool cc` | cc-connect 快速配置与启动 |
| CRS 查询 | `chattool crs` | 查询 Claude Relay Service API key 用量、模型统计和只读 admin 信息 |
| CRS(独立包) | `chatcrs` | 安装 `chattool[crs]` 或 `ChatCRS`;CRS 功能已迁出,父包不再挂载命令或维护实现 |

## 文档

Expand All @@ -212,11 +212,11 @@ chatpypi init -i # 交互式选择模板、mkdocs/workflow 等
chatpypi probe mychat
```

也可以通过 `pip install "chattool[arch]"` 一次性安装 ChatGH、ChatUp、ChatPyPI、ChatNet、ChatLark、ChatImg。
也可以通过 `pip install "chattool[arch]"` 安装 ChatGH、ChatUp、ChatPyPI、ChatNet、ChatLark、ChatImg、ChatZulip、ChatCRS 等独立工具。

`ChatPyPI` / `chatpypi` 是 Python 包创建、构建、校验、上传与探测能力的 canonical owner;ChatTool 不再内置 `chattool pypi` 或 `chatpypi` wrapper。

默认模板生成的 `pyproject.toml` 会写入 `requires-python = ">=3.9"`;`chatarch` 模板默认写入 `requires-python = ">=3.10"`,并依赖 `chatstyle>=0.1.0,<0.2.0` 与 `chatenv>=0.2.2,<0.3.0`。
默认模板生成的 `pyproject.toml` 会写入 `requires-python = ">=3.9"`;`chatarch` 模板默认写入 `requires-python = ">=3.10"`,并依赖 `chatstyle>=0.2.0,<0.3.0` 与 `chatenv>=0.2.10,<0.3.0`。

`chatarch` 模板会额外生成 `DEVELOP.md`、`CHANGELOG.md`、`AGENTS.md`、`README.en.md`、`mkdocs.yml`、`docs/`、`tests/cli-tests/`、`tests/mock-cli-tests/`、`tests/code-tests/` 与 `.github/workflows/` 骨架;发布 workflow 由显式 `v*` tag 或 `workflow_dispatch` 触发,校验 tag 与包内 `__version__` 一致,并通过 PyPI Trusted Publishing 发布。默认不写 `environment: pypi`,除非 PyPI Trusted Publisher 明确配置了同名 environment。

Expand All @@ -234,7 +234,6 @@ chattool # Unified entry point for ChatTool services and scripts.
├── browser # Browser automation helpers.
├── cc # cc-connect helper commands.
├── client # Remote client tools.
├── crs # Claude Relay Service helper commands.
├── docker # Docker utility commands.
├── explore # Research and data exploration helpers.
├── mcp # MCP server inspection and launch helpers.
Expand Down
2 changes: 1 addition & 1 deletion README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ chattool serve local . --html index.html --dry-run
| Local HTML | `chattool serve local` | Serve a local HTML file or directory |
| Cert Mgmt | `chattool serve cert` / `chattool client cert` | SSL certificate distribution |
| Setup | `chatup codex/claude/opencode/hermes` | ChatTool setup has moved to the standalone ChatUp package. Install `chattool[setup]` or `chatup`, then use first-level `chatup ...` commands. |
| CRS | `chatcrs` | Install `chattool[crs]` or `ChatCRS`; the parent no longer embeds CRS commands, client code, or its config provider. |
| Workspace | `chatup workspace` | Create a collaboration workspace around a core project with `projects/` as the execution container and workspace-level files as the general-use protocol layer; supports `--with-chattool`, `--with-chatblog`, and `--with-memory` |
| Skills | `chattool skill install` | Install ChatTool skills to Codex / Claude / OpenCode |
| CC-Connect | `chattool cc` | Quick cc-connect setup and start |
Expand Down Expand Up @@ -205,7 +206,6 @@ chattool # Unified entry point for ChatTool services and scripts.
├── browser # Browser automation helpers.
├── cc # cc-connect helper commands.
├── client # Remote client tools.
├── crs # Claude Relay Service helper commands.
├── docker # Docker utility commands.
├── explore # Research and data exploration helpers.
├── mcp # MCP server inspection and launch helpers.
Expand Down
Loading
Loading