workspace: HBox+Tree, entire_url, urlwidget action
This commit is contained in:
parent
5af747e004
commit
be93db3a62
22
skills/sdlc/project-workflow/SKILL.md
Normal file
22
skills/sdlc/project-workflow/SKILL.md
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
name: project-workflow
|
||||
description: SDLC 项目推进标准流程——诊断→回答问题→启动agent→检查交付件
|
||||
trigger_keywords: [项目进展, 任务状态, 卡住了, 推进, 诊断]
|
||||
version: 1.0.0
|
||||
---
|
||||
|
||||
# SDLC 标准推进流程
|
||||
|
||||
当用户询问项目进展时,按以下流程操作:
|
||||
|
||||
1. **diagnose_project** — 获取整体状态(待执行/运行中/失败/待审核数量)
|
||||
2. 如果有待回答问题 → **list_questions** → **answer_question**
|
||||
3. 如果有 submitted 任务 → **start_agents** 启动 agent
|
||||
4. 查看交付件 → **list_deliverables**
|
||||
|
||||
## 常用工具速查
|
||||
- 看任务: list_tasks
|
||||
- 看详情: task_detail(task_id)
|
||||
- 看交付件: list_deliverables
|
||||
- 看进度: check_progress
|
||||
- 诊断: diagnose_project
|
||||
@ -1,4 +1,4 @@
|
||||
# workspace_popup.dspy - 返回 PopupWindow(用 subwidgets 标准方式)
|
||||
# workspace_popup.dspy - 返回工作空间 PopupWindow
|
||||
|
||||
uid = await get_user()
|
||||
if not uid:
|
||||
@ -30,18 +30,49 @@ async with DBPools().sqlorContext(dbname) as sor:
|
||||
else:
|
||||
resp = {
|
||||
"widgettype": "PopupWindow",
|
||||
"options": {"title": pname + " - 工作空间", "cwidth": 80, "cheight": 36, "auto_open": True},
|
||||
"options": {
|
||||
"title": pname + " - 工作空间",
|
||||
"cwidth": 80,
|
||||
"cheight": 36,
|
||||
"auto_open": True
|
||||
},
|
||||
"subwidgets": [{
|
||||
"widgettype": "Splitter",
|
||||
"options": {"direction": "horizontal", "split": "30%"},
|
||||
"subwidgets": [{
|
||||
"widgettype": "Tree", "id": "ws_tree",
|
||||
"options": {"dataurl": "/pipeline-sdlc/api/workspace_tree.dspy", "css": "filler", "padding": "4px", "cheight": "100%"},
|
||||
"binds": [{"wid": "self", "event": "selected", "actiontype": "urlwidget", "target": "ws_files", "options": {"url": "/pipeline-sdlc/api/workspace_files.dspy"}}]
|
||||
}, {
|
||||
"widgettype": "VScrollPanel", "id": "ws_files",
|
||||
"options": {"css": "filler", "padding": "8px", "gap": "4px"}
|
||||
}]
|
||||
"widgettype": "HBox",
|
||||
"options": {"height": "100%"},
|
||||
"subwidgets": [
|
||||
{
|
||||
"widgettype": "VBox",
|
||||
"options": {"width": "30%"},
|
||||
"subwidgets": [{
|
||||
"widgettype": "Tree",
|
||||
"id": "ws_tree",
|
||||
"options": {
|
||||
"dataurl": entire_url("/pipeline-sdlc/api/workspace_tree.dspy"),
|
||||
"css": "filler",
|
||||
"padding": "4px",
|
||||
"cheight": "100%"
|
||||
},
|
||||
"binds": [{
|
||||
"wid": "self",
|
||||
"event": "selected",
|
||||
"actiontype": "urlwidget",
|
||||
"target": "ws_files",
|
||||
"options": {
|
||||
"url": entire_url("/pipeline-sdlc/api/workspace_files.dspy")
|
||||
}
|
||||
}]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"widgettype": "VScrollPanel",
|
||||
"id": "ws_files",
|
||||
"options": {
|
||||
"css": "filler",
|
||||
"padding": "8px",
|
||||
"gap": "4px"
|
||||
}
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user