8 Commits

Author SHA1 Message Date
6786a19953 chore: auto release commit (2026-09-11 15:24:58)
All checks were successful
技能自动化发布 / release (push) Successful in 6s
2026-09-11 15:24:58 +08:00
d10db1d667 chore: auto release commit (2026-09-11 15:12:31)
All checks were successful
技能自动化发布 / release (push) Successful in 8s
2026-09-11 15:12:31 +08:00
26efbf7f82 chore: auto release commit (2026-09-11 00:17:16)
All checks were successful
技能自动化发布 / release (push) Successful in 6s
2026-09-11 00:17:16 +08:00
cb9bb4342f chore: auto release commit (2026-09-11 00:04:36)
All checks were successful
技能自动化发布 / release (push) Successful in 5s
2026-09-11 00:04:37 +08:00
21242cdd6d chore: auto release commit (2026-09-10 23:57:26)
All checks were successful
技能自动化发布 / release (push) Successful in 5s
2026-09-10 23:57:26 +08:00
05a71cff9b chore: auto release commit (2026-09-10 23:56:06)
All checks were successful
技能自动化发布 / release (push) Successful in 5s
2026-09-10 23:56:06 +08:00
f7290d5563 chore: auto release commit (2026-09-10 23:53:22)
All checks were successful
技能自动化发布 / release (push) Successful in 5s
2026-09-10 23:53:22 +08:00
848bd537ed chore: auto release commit (2026-09-10 23:51:10)
All checks were successful
技能自动化发布 / release (push) Successful in 6s
2026-09-10 23:51:10 +08:00
3 changed files with 46 additions and 6 deletions

View File

@@ -173,6 +173,47 @@
]
}
},
{
"id": "todo-done-row",
"label": "完成本行",
"description": "将当前待办标记为已完成。",
"placements": [
"row"
],
"executionProfile": "sync",
"interaction": "direct",
"bind": {
"tables": [
"todos"
]
},
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number",
"title": "编号",
"readOnly": true
}
}
},
"hostEffects": {
"onSuccess": [
"reloadTable"
]
},
"entrypoint": {
"type": "cli",
"command": "todo",
"args": [
"done",
"{{id}}"
]
}
},
{
"id": "todo-delete",
"label": "删除记录",

View File

@@ -13,12 +13,11 @@
## 0.1 宿主入口定位
| 主能力(Action id / CLI) | 对话 | 数据管理 | 定时 | 不挂理由(若不挂) |
|---------------------------|------|----------|------|--------------------|
| `todo add` | 挂 | toolbar(新增按钮) | 不挂 | 定时无意义 |
| `todo list` | 挂 | 仅展示表 | 不挂 | 定时无意义 |
| `todo done` | 挂 | row + batch(标记完成) | 不挂 | 定时无意义 |
| `todo delete` | 挂 | row + batch(删除) | 不挂 | 定时无意义 |
| `todo list` | 挂 | row | 不挂 | 定时无意义 |
| `todo done`(Action `todo-done-row`) | 挂(短 CLI 直调) | row(「完成」按钮) | 不挂 | 定时无意义;batch 批量完成暂未声明 |
| `todo delete` | 挂 | row(「删除」按钮)) + batch(删除) | 不挂 | 定时无意义 |
| `todo stats` | 挂 | toolbar(统计) | 不挂 | 定时无意义 |
| `remind` | 挂 | toolbar | 挂 | 定时扫描到期/待办项并提醒 |
| `init-db` | 不挂 | 不挂 | 不挂 | 宿主安装/更新时静默调用,不对用户暴露 |
@@ -28,7 +27,6 @@
说明:
- `todos` 表在数据管理中为**整表只读**(`readonly=1`),所有增删改必须通过技能 Action(`todo add/done/delete`)走,宿主不直写业务表。
- 数据管理页面默认展示列:`title`、`status`、`priority`、`due_at`、`created_at`;默认按 `created_at` 倒序。
- `status` 与 `priority` 字段在数据管理中以下拉枚举展示(pending=待办/done=完成;high=高/normal=中/low=低)。
@@ -225,3 +223,4 @@
| 日期 | 版本 | 变更人 | 变更内容 |
|------|------|--------|----------|
| 2026-09-07 | v0.1.0 | - | 初版需求文档 |
| 2026-09-11 | v0.1.1 | - | 入口定位表登记行级 Action `todo-done-row`(todos 表操作列「完成本行」,sync/direct,`$row.$pk` 预填) |

View File

@@ -69,7 +69,7 @@ async def _run_template_demo(target: Optional[str], input_id: Optional[str]) ->
def cmd_run(target: Optional[str] = None, input_id: Optional[str] = None) -> int:
"""通用任务执行入口模板。复制后请实现真实业务逻辑。"""
log = _get_task_logger()
task_type = "demo"
task_type = "cmd_run"
with job_context(skill=SKILL_SLUG):
log.info(