Skip to content

Refactor workspace into multiple crates and update documentation#30

Merged
Ink-dark merged 9 commits into
mainfrom
refactor/workspace-split
Jun 27, 2026
Merged

Refactor workspace into multiple crates and update documentation#30
Ink-dark merged 9 commits into
mainfrom
refactor/workspace-split

Conversation

@Ink-dark

Copy link
Copy Markdown
Contributor

No description provided.

Ink-dark and others added 7 commits June 22, 2026 09:55
chore: remove bundle files, add *.bundle to .gitignore

清理两个 bundle 文件 (v0.8.0-rebase-cherry-pick.bundle + agit.bundle),
在 .gitignore 添加 *.bundle 规则防止再次误提交。

Co-Authored-By: Claude <noreply@anthropic.com>
@
refactor: create workspace with agit-core library crate

将原 src/core/、src/config/、src/utils/ 迁移至 agit-core 库 crate。
- 扁平化模块层级(不再嵌套 crate::core::)
- 约 20 项 pub(crate) → pub 提升可见性
- resolve_llm_provider 改为 pub 供 agit-ai 使用
- 新增 Index/Tree 的 Default trait 实现

Co-Authored-By: Claude <noreply@anthropic.com>
@
refactor: extract agit-ai crate for AI-powered commit messages

将 src/ai/llm.rs 提取为独立的 agit-ai 库 crate。
依赖 agit-core::config 获取 LLM 配置,携带 reqwest 重依赖。
双版本分发:lite 版无此 crate,full 版包含 AI 功能。

Co-Authored-By: Claude <noreply@anthropic.com>
@
refactor: create agit-cli binary crate with command dispatch

将 CLI 层迁移至 agit-cli 二进制 crate。
- cli/mod.rs: clap derive, 29 子命令
- commands/: 29 个命令实现,导入路径改为 agit_core::
- ai/mod.rs: AI 模式开关 + #[cfg(feature = "ai")] re-export agit-ai
- output/mod.rs: JSON/YAML/color 输出
- main.rs: 移除 mod core/config/utils,改用 use agit_core::config

Co-Authored-By: Claude <noreply@anthropic.com>
@
test: migrate integration tests to agit-cli crate

将 tests/ 迁移至 agit-cli/tests/。
修复 common/mod.rs 二进制路径:CARGO_MANIFEST_DIR 上移一级到 workspace 根。
全部 69 个集成测试通过。

Co-Authored-By: Claude <noreply@anthropic.com>
@
docs: update documentation for workspace multi-crate structure

更新项目文档反映 workspace 拆分:
- CLAUDE.md: workspace 架构图、新构建命令、三 crate 模块路径
- README.md / README-zh_CN.md: Build from Source 和 Project Structure
- docs/ARCHITECTURE.md: 目录结构、技术栈、版本号 0.4.1→0.14.0
- CONTRIBUTING.md: 项目结构、构建命令
- CHANGELOG.md: 新增 v0.14.0 条目
- TODO.md: Phase 10 workspace 拆分记录

Co-Authored-By: Claude <noreply@anthropic.com>
@
chore: bump version to 0.14.0

Workspace 拆分完成,所有三个 crate 版本更新至 0.14.0。

Co-Authored-By: Claude <noreply@anthropic.com>
@
@Ink-dark Ink-dark self-assigned this Jun 27, 2026
Ink-dark and others added 2 commits June 27, 2026 13:23
fix(ci): update smoke test paths for workspace structure

tests/smoke/ → agit-cli/tests/smoke/ 适配 workspace 拆分后的新路径。

Co-Authored-By: Claude <noreply@anthropic.com>
@
fix(security): bump quinn-proto 0.11.14 → 0.11.15 for RUSTSEC-2026-0185

修复远程内存耗尽漏洞 (CVSS 7.5)。

Co-Authored-By: Claude <noreply@anthropic.com>
@
@Ink-dark Ink-dark merged commit b16fac2 into main Jun 27, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant