Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 21242cdd6d | |||
| 05a71cff9b | |||
| f7290d5563 | |||
| 848bd537ed | |||
| 1e623e5c0f | |||
| 2be083c0c9 | |||
| 828437779c | |||
| abe4ea80a0 | |||
| e14cb97232 | |||
| 2c7b23ac77 | |||
| cdd8b663f4 |
@@ -6,7 +6,10 @@
|
||||
"id": "health",
|
||||
"label": "运行检查",
|
||||
"description": "检查技能运行环境并返回结构化结果,不启动浏览器。",
|
||||
"placements": ["skill-detail", "agent"],
|
||||
"placements": [
|
||||
"skill-detail",
|
||||
"agent"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
@@ -18,7 +21,9 @@
|
||||
"id": "version",
|
||||
"label": "查看版本",
|
||||
"description": "返回技能版本和机器标识。",
|
||||
"placements": ["skill-detail"],
|
||||
"placements": [
|
||||
"skill-detail"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
@@ -30,7 +35,9 @@
|
||||
"id": "config-path",
|
||||
"label": "查看配置位置",
|
||||
"description": "返回技能配置文件位置。",
|
||||
"placements": ["skill-detail"],
|
||||
"placements": [
|
||||
"skill-detail"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
@@ -42,21 +49,29 @@
|
||||
"id": "add-todo",
|
||||
"label": "添加待办",
|
||||
"description": "添加待办事项。",
|
||||
"placements": ["skill-detail","toolbar"],
|
||||
"placements": [
|
||||
"skill-detail",
|
||||
"toolbar"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "todo",
|
||||
"args": [
|
||||
"add",
|
||||
"--title", "{{title}}",
|
||||
"--priority", "{{priority}}",
|
||||
"--due-at", "{{due-at}}"
|
||||
"--title",
|
||||
"{{title}}",
|
||||
"--priority",
|
||||
"{{priority}}",
|
||||
"--due-at",
|
||||
"{{due-at}}"
|
||||
]
|
||||
},
|
||||
"interaction": "form",
|
||||
"bind": {
|
||||
"tables": ["todos"]
|
||||
"tables": [
|
||||
"todos"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
@@ -71,7 +86,11 @@
|
||||
"title": "优先级",
|
||||
"description": "待办事项的优先级,可选。",
|
||||
"default": "normal",
|
||||
"enum": ["high", "normal", "low"]
|
||||
"enum": [
|
||||
"high",
|
||||
"normal",
|
||||
"low"
|
||||
]
|
||||
},
|
||||
"due-at": {
|
||||
"type": "number",
|
||||
@@ -80,11 +99,124 @@
|
||||
"display_type": "datetime_unix_seconds"
|
||||
}
|
||||
},
|
||||
"required": ["title", "priority"]
|
||||
"required": [
|
||||
"title",
|
||||
"priority"
|
||||
]
|
||||
},
|
||||
"hostEffects": {
|
||||
"onSuccess": ["reloadTable"]
|
||||
"onSuccess": [
|
||||
"reloadTable"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "item-create",
|
||||
"label": "新增记录",
|
||||
"description": "添加待办事项。",
|
||||
"replaces": "create",
|
||||
"placements": [],
|
||||
"executionProfile": "sync",
|
||||
"interaction": "form",
|
||||
"bind": {
|
||||
"tables": [
|
||||
"todos"
|
||||
]
|
||||
},
|
||||
"hostEffects": {
|
||||
"onSuccess": [
|
||||
"reloadTable"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
"title": "待办标题",
|
||||
"description": "待办事项的标题,必填。"
|
||||
},
|
||||
"priority": {
|
||||
"type": "string",
|
||||
"title": "优先级",
|
||||
"description": "待办事项的优先级,可选。",
|
||||
"default": "normal",
|
||||
"enum": [
|
||||
"high",
|
||||
"normal",
|
||||
"low"
|
||||
]
|
||||
},
|
||||
"due-at": {
|
||||
"type": "number",
|
||||
"title": "提醒时间",
|
||||
"description": "格式 YYYY-MM-DD HH:MM,如 2026-08-01。",
|
||||
"display_type": "datetime_unix_seconds"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"title",
|
||||
"priority"
|
||||
]
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "todo",
|
||||
"args": [
|
||||
"add",
|
||||
"--title",
|
||||
"{{title}}",
|
||||
"--priority",
|
||||
"{{priority}}",
|
||||
"--due-at",
|
||||
"{{due-at}}"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "todo-delete",
|
||||
"label": "删除记录",
|
||||
"description": "删除待办事项。",
|
||||
"replaces": "delete",
|
||||
"placements": [],
|
||||
"executionProfile": "sync",
|
||||
"interaction": "confirm",
|
||||
"confirmation": {
|
||||
"message": "确定删除该记录?关联数据将一并清理。"
|
||||
},
|
||||
"bind": {
|
||||
"tables": [
|
||||
"todos"
|
||||
]
|
||||
},
|
||||
"hostEffects": {
|
||||
"onSuccess": [
|
||||
"reloadTable",
|
||||
"clearSelection"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number",
|
||||
"title": "编号",
|
||||
"readOnly": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "todo",
|
||||
"args": [
|
||||
"delete",
|
||||
"ids",
|
||||
"{{id}}"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@
|
||||
| 主能力(Action id / CLI) | 对话 | 数据管理 | 定时 | 不挂理由(若不挂) |
|
||||
|---------------------------|------|----------|------|--------------------|
|
||||
| `todo add` | 挂 | toolbar(新增按钮) | 不挂 | 定时无意义 |
|
||||
| `todo list` | 挂 | 仅展示表 | 不挂 | 定时无意义 |
|
||||
| `todo list` | 挂 | row | 不挂 | 定时无意义 |
|
||||
| `todo done` | 挂 | row + batch(标记完成) | 不挂 | 定时无意义 |
|
||||
| `todo delete` | 挂 | row + batch(删除) | 不挂 | 定时无意义 |
|
||||
| `todo stats` | 挂 | toolbar(统计) | 不挂 | 定时无意义 |
|
||||
|
||||
@@ -69,17 +69,17 @@ def _seed_todos_display_metadata(cursor) -> None:
|
||||
{"column_name": "id", "display_name": "编号", "description": "主键",
|
||||
"visible": 1, "searchable": 1, "editable": 0, "display_type": "number"},
|
||||
{"column_name": "title", "display_name": "标题", "description": "待办事项内容",
|
||||
"grid_help": "简明描述要做的事", "visible": 1, "searchable": 1, "editable": 0,
|
||||
"grid_help": "简明描述要做的事", "visible": 1, "searchable": 1, "editable": 1,
|
||||
"display_type": "text"},
|
||||
{"column_name": "status", "display_name": "状态", "description": "pending/done",
|
||||
"grid_help": "pending=待办,done=完成", "visible": 1, "searchable": 1, "editable": 0,
|
||||
"display_type": "enum",
|
||||
"options_json": '[{"value":"pending","label":"待办"},{"value":"done","label":"完成"}]'},
|
||||
{"column_name": "priority", "display_name": "优先级", "description": "high/normal/low",
|
||||
"visible": 1, "searchable": 1, "editable": 0, "display_type": "enum",
|
||||
"visible": 1, "searchable": 1, "editable": 1, "display_type": "enum",
|
||||
"options_json": '[{"value":"high","label":"高"},{"value":"normal","label":"中"},{"value":"low","label":"低"}]'},
|
||||
{"column_name": "due_at", "display_name": "截止时间", "description": "Unix 秒;可空",
|
||||
"visible": 1, "searchable": 1, "editable": 0, "display_type": "datetime_unix_seconds"},
|
||||
"visible": 1, "searchable": 1, "editable": 1, "display_type": "datetime_unix_seconds"},
|
||||
{"column_name": "created_at", "display_name": "创建时间", "description": "Unix 秒",
|
||||
"visible": 1, "searchable": 0, "editable": 0, "display_type": "datetime_unix_seconds"},
|
||||
{"column_name": "updated_at", "display_name": "更新时间", "description": "Unix 秒",
|
||||
|
||||
Reference in New Issue
Block a user