Files
agent-aide/.aide/task-plans/spec-01.md
2025-12-19 02:30:45 +08:00

54 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 子计划 1基础配置修改
## 目标
完成两项基础配置修改:
1.`gitignore_aide` 默认值改为 `false`
2. 使 `aide init` 支持在任意目录执行原地初始化
## 具体步骤
### 1.1 修改 gitignore_aide 默认值
**位置**`aide-program/aide/` 中的配置相关模块
**操作**
1. 找到 `gitignore_aide` 配置项的默认值定义
2. 将默认值从 `true` 改为 `false`
3. 更新相关文档说明
### 1.2 修改 aide init 行为
**当前行为**:可能限制只能在项目根目录执行
**目标行为**
-`git init` 一样可以在任意目录执行
- 即使当前目录是已有 `.aide` 管理的子目录,也能执行原地初始化
- 在当前目录创建新的 `.aide/` 目录和配置
**位置**`aide-program/aide/` 中的 init 相关模块
**操作**
1. 分析当前 `aide init` 的实现逻辑
2. 移除或修改目录检查限制
3. 确保在任意目录都能创建 `.aide/` 目录
4. 测试验证
## 验证标准
- [ ] `aide init` 后项目的 `.gitignore` 不自动添加 `.aide/` 条目
- [ ] 在任意目录执行 `aide init` 能成功创建 `.aide/` 目录
- [ ] 在已有 `.aide` 的项目子目录中执行 `aide init` 能成功创建新的 `.aide/`
- [ ] 不影响已有的 aide 功能
## 依赖
- 前置:无
- 后续:无(独立任务)
## 风险评估
- **风险等级**:低
- **潜在影响**:已有使用默认配置的项目可能需要手动调整
- **缓解措施**:在 CHANGELOG 中明确说明变更