feat: 整体更新同步

This commit is contained in:
2025-12-15 02:59:03 +08:00
parent ee1468492a
commit ed7c45b48e
15 changed files with 143 additions and 80 deletions

View File

@@ -98,7 +98,7 @@ aide flow next-step "任务优化完成,生成待定项"
提交待定项数据:
```bash
aide decide '<json数据>'
aide decide submit '<json数据>'
```
告知用户访问链接进行确认。

View File

@@ -99,7 +99,7 @@ partition "阶段2: 任务优化" {
partition "阶段3: 待定项处理" {
if (有待定项?) then (是)
:aide decide '<json>';
:aide decide submit '<json>';
:告知用户访问链接;
:aide decide result;
:aide flow next-step "用户完成待定项确认";
@@ -163,7 +163,7 @@ stop
**处理流程**
1. 准备待定项 JSON 数据
2. 调用 `aide decide '<json>'` 启动 Web 服务
2. 调用 `aide decide submit '<json>'` 启动 Web 服务
3. 告知用户访问链接进行确认
4. 调用 `aide decide result` 获取决策结果
@@ -228,7 +228,7 @@ aide config get task.source
**命令**
```bash
aide decide '<json数据>'
aide decide submit '<json数据>'
aide decide result
```

View File

@@ -298,11 +298,11 @@ aide flow 会自动校验环节跳转是否合理:
**用途**:通过 Web 界面处理待定项确认
#### aide decide提交数据
#### aide decide submit(提交数据)
**语法**
```
aide decide '<json数据>'
aide decide submit '<json数据>'
```
**输入格式**:见 [数据格式文档](../../../../aide-program/docs/formats/data.md)
@@ -397,7 +397,7 @@ aide flow next-step "任务分析完成"
aide flow next-step "任务优化完成,生成待定项"
# 处理待定项
aide decide '{"task":"...", "items":[...]}'
aide decide submit '{"task":"...", "items":[...]}'
aide decide result
aide flow next-step "用户完成待定项确认"

View File

@@ -210,12 +210,20 @@ aide flow 会自动校验环节跳转是否合理:
通过 Web 界面处理待定项确认。
### aide decide
```
aide decide {submit,result} ...
子命令:
submit <json> 提交待定项数据并启动 Web 服务
result 获取用户决策结果
```
### aide decide submit
提交待定项数据并启动 Web 服务。
```bash
aide decide '<json数据>'
aide decide submit '<json数据>'
```
**JSON 格式**
@@ -255,11 +263,21 @@ aide decide '<json数据>'
}
```
**配置项**(在 `.aide/config.toml``[decide]` 节):
| 配置项 | 默认值 | 说明 |
|--------|--------|------|
| `port` | 3721 | 起始端口 |
| `bind` | `"127.0.0.1"` | 监听地址,设为 `"0.0.0.0"` 可允许外部访问 |
| `url` | `""` | 自定义访问地址,为空时自动生成 |
| `timeout` | 0 | 超时时间0 表示不超时 |
**输出**
```
→ Web 服务已启动
→ 请访问: http://localhost:3721
→ 等待用户完成决策...
✓ 决策已完成
```
### aide decide result
@@ -281,6 +299,7 @@ aide decide result
```
> 注:`note` 字段仅在用户添加备注时出现
> 注:如果数据中有 `recommend` 字段,对应选项会默认选中
---
@@ -390,7 +409,7 @@ aide flow next-part verify "实现完成,开始验证"
```bash
# 提交待定项JSON 数据较长时建议保存到文件后通过 cat 传入)
aide decide '{"task":"...", "items":[...]}'
aide decide submit '{"task":"...", "items":[...]}'
# 获取结果
aide decide result