新增: Phase 4 注入 — @[项目] 关联任务/灵感 + 三个工具 path 可选
- Augmentation 新增 extra 字段(项目关联信息/任务关联信息/灵感关联信息) - ProjectResolver: @[项目] 时自动查前5条进行中任务+前3条待评估灵感 - TaskResolver/IdeaResolver: extra 预留(后续按需追加) - render_one 渲染 extra 行 - search_files/grep/list_directory path 改为可选,不传时返回引导提示
This commit is contained in:
@@ -66,6 +66,7 @@ fn render_one(aug: &Augmentation, out: &mut String, label: &str) {
|
||||
status,
|
||||
description,
|
||||
path,
|
||||
extra,
|
||||
..
|
||||
} => {
|
||||
out.push_str("【");
|
||||
@@ -85,6 +86,10 @@ fn render_one(aug: &Augmentation, out: &mut String, label: &str) {
|
||||
out.push_str(description);
|
||||
out.push('\n');
|
||||
}
|
||||
for line in extra {
|
||||
out.push_str(line);
|
||||
out.push('\n');
|
||||
}
|
||||
out.push('\n');
|
||||
}
|
||||
Augmentation::Task {
|
||||
@@ -92,6 +97,7 @@ fn render_one(aug: &Augmentation, out: &mut String, label: &str) {
|
||||
status,
|
||||
description,
|
||||
project_name,
|
||||
extra,
|
||||
..
|
||||
} => {
|
||||
out.push_str("【");
|
||||
@@ -111,12 +117,17 @@ fn render_one(aug: &Augmentation, out: &mut String, label: &str) {
|
||||
out.push_str(description);
|
||||
out.push('\n');
|
||||
}
|
||||
for line in extra {
|
||||
out.push_str(line);
|
||||
out.push('\n');
|
||||
}
|
||||
out.push('\n');
|
||||
}
|
||||
Augmentation::Idea {
|
||||
title,
|
||||
status,
|
||||
description,
|
||||
extra,
|
||||
..
|
||||
} => {
|
||||
out.push_str("【");
|
||||
@@ -131,6 +142,10 @@ fn render_one(aug: &Augmentation, out: &mut String, label: &str) {
|
||||
out.push_str(description);
|
||||
out.push('\n');
|
||||
}
|
||||
for line in extra {
|
||||
out.push_str(line);
|
||||
out.push('\n');
|
||||
}
|
||||
out.push('\n');
|
||||
}
|
||||
Augmentation::Skill {
|
||||
|
||||
Reference in New Issue
Block a user