TM

{{ task.name }}
← 返回任务列表 {% if prev_slug %}‹ 上一个{% endif %} {% if next_slug %}下一个 ›{% endif %}
#{{ task.number }} {{ task.name }}
{% if '失败' in task.status or '超时' in task.status %} {% endif %} {% if '归档' in task.status %} {% else %} {% endif %} {{ task.status }}
🧠 | 技能: {% set sl = task.skills|default('[]') %}{% set ps = [] %}{% if sl is string %}{% set ps = sl|fromjson %}{% else %}{% set ps = sl %}{% endif %}{% if ps and ps|length > 0 %}{% for s in ps %}{{ s }}{% endfor %}{% else %}未绑定{% endif %}
Agent: GET metadata POST metadata/{section} GET lessons GET latest-exec 发链接 → agent自动读最新索引+经验+技能
📊 KG 节点 关系 源文件 Agent: gbrain查询
📖 代码索引 - Agent: GET /api/code-index/search/{slug}?q=关键词 0 token语义搜索代码
📂 {{ task.category or '未分类' }} 👤 {{ task.executor or '华硕' }} | 🎯 {{ cache_hit_rate }} | 📋 {{ requirements|length }}需求 ▶ {{ executions|length }}执行 🕐 {{ (task.updated_at or '-')[:10] }} {{ task.work_folder or '' }}
📋 详细索引 加载中...
技术要点/SEO/已完成优化/经验全文 — 点此展开
🔄 追加需求与想法
📐 多行格式:内容 | 时间 (点击展开)
写软著说明书 | 2h→ 2小时后执行
检查文件完整性→ 立即执行
更新部署文档 | 2026-06-01 10:00→ 定时
生成专利附图 | 6h→ 延时
不写时间 = 使用右侧按钮选择的时间
0
需求只排队不触发,点「全部顺序执行」按顺序依次执行

📋 需求变更日志 · {{ requirements|length }} 最新在前

{% if requirements %} {% for r in requirements %} {% set is_child = r.parent_req_id and r.parent_req_id|string != '' %}
{% if is_child %}↳ 跟进 #{{ r.parent_req_id }}{% endif %} 🕐 {{ r.created_at[:16] }} {% set ns0 = namespace(exec_start='', exec_end='') %} {% for e in executions %} {% if e.requirement_id == r.id %} {% if e.started_at and not ns0.exec_start %}{% set ns0.exec_start = e.started_at[:16] %}{% endif %} {% if e.completed_at and not ns0.exec_end %}{% set ns0.exec_end = e.completed_at[:16] %}{% endif %} {% endif %} {% endfor %} {% if ns0.exec_start %} ▶ 执行 {{ ns0.exec_start }}{% if ns0.exec_end %}✓ 完成 {{ ns0.exec_end }}{% endif %} {% elif r.scheduled_at and r.scheduled_at != '' %} ⏰ 预计 {{ r.scheduled_at[:16] }} {% endif %} #{{ r.id }}
{{ r.content|req_title }}
{{ {'waiting':'等待执行','scheduled':'定时待执行','executing':'执行中','completed':'已完成','failed':'失败'}.get(r.status, r.status) }}
{{ r.content }}
{% set ns = namespace(execs=[], total_tokens=0, total_cost=0) %} {% for e in executions %} {% if e.requirement_id == r.id %} {% set ns.execs = ns.execs + [e] %} {% set ns.total_tokens = ns.total_tokens + (e.tokens_used|default(0)) %} {% set ns.total_cost = ns.total_cost + (e.cost|default(0)) %} {% endif %} {% endfor %} {% if ns.execs %}
关联执行 · {{ ns.execs|length }}次 · ⚡{{ ns.total_tokens }}tokens · ¥{{ "%.4f"|format(ns.total_cost) }}
{% for e in ns.execs %}
{{ (e.completed_at or '')[:19] }} {{ e.status }} {% if e.duration %}⏱ {{ e.duration }}{% endif %}
{% if e.id %} 📄 详情 {% endif %}
{{ e.result_brief[:120] }}
{% endfor %}
{% endif %}
{% endfor %} {% else %}
📝
暂无追加需求
{% endif %}

📜 全部执行记录 · {{ executions|length }} {% if executions|length > 5 %} {% endif %}

{% if executions %} {% for e in executions %}
🕐 {{ (e.completed_at or e.started_at or '')[:19] }} {% if e.requirement_id and e.requirement_id > 0 %} 需求#{{ e.requirement_id }} {% endif %}
{{ e.status }}
{{ e.result_brief[:300] }}
{% if e.tokens_used and e.tokens_used > 0 %} ⚡ {{ e.tokens_used }} tokens · 💰 ¥{{ "%.4f"|format(e.cost) }} {% endif %} {% if e.duration %} ⏱ {{ e.duration }} {% endif %}
{% if e.id %} 📄 查看完整执行报告 → {% endif %}
{% endfor %} {% else %}
📜
暂无执行记录
{% endif %}

🧠 经验教训 (P3 总结)

⏳ 加载中...

🔗 相关推荐 (同类任务经验)

⏳ 加载中...

📋 计划历史 (P1 预计划)

⏳ 加载中...

🔗 任务依赖 (DAG)

加载中...

🏛️ 关联实体 (App/网站/客户)

⏳ 加载中...
📋 执行队列 加载中...
点击展开排队状态
⏳ 加载中...