290 lines
6.3 KiB
JSON
290 lines
6.3 KiB
JSON
{
|
||
"schemaVersion": 1,
|
||
"skill": "add-todo-all",
|
||
"actions": [
|
||
{
|
||
"id": "health",
|
||
"label": "运行检查",
|
||
"description": "检查技能运行环境并返回结构化结果,不启动浏览器。",
|
||
"placements": [
|
||
"skill-detail",
|
||
"agent"
|
||
],
|
||
"executionProfile": "sync",
|
||
"entrypoint": {
|
||
"type": "cli",
|
||
"command": "health",
|
||
"args": []
|
||
}
|
||
},
|
||
{
|
||
"id": "version",
|
||
"label": "查看版本",
|
||
"description": "返回技能版本和机器标识。",
|
||
"placements": [
|
||
"skill-detail"
|
||
],
|
||
"executionProfile": "sync",
|
||
"entrypoint": {
|
||
"type": "cli",
|
||
"command": "version",
|
||
"args": []
|
||
}
|
||
},
|
||
{
|
||
"id": "config-path",
|
||
"label": "查看配置位置",
|
||
"description": "返回技能配置文件位置。",
|
||
"placements": [
|
||
"skill-detail"
|
||
],
|
||
"executionProfile": "sync",
|
||
"entrypoint": {
|
||
"type": "cli",
|
||
"command": "config-path",
|
||
"args": []
|
||
}
|
||
},
|
||
{
|
||
"id": "add-todo",
|
||
"label": "添加待办",
|
||
"description": "添加待办事项。",
|
||
"placements": [
|
||
"skill-detail",
|
||
"toolbar"
|
||
],
|
||
"executionProfile": "sync",
|
||
"entrypoint": {
|
||
"type": "cli",
|
||
"command": "todo",
|
||
"args": [
|
||
"add",
|
||
"--title",
|
||
"{{title}}",
|
||
"--priority",
|
||
"{{priority}}",
|
||
"--due-at",
|
||
"{{due-at}}"
|
||
]
|
||
},
|
||
"interaction": "form",
|
||
"bind": {
|
||
"tables": [
|
||
"todos"
|
||
]
|
||
},
|
||
"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"
|
||
]
|
||
},
|
||
"hostEffects": {
|
||
"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-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": "删除记录",
|
||
"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}}"
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"id": "todo-remind",
|
||
"placements": [
|
||
"agent",
|
||
"cron"
|
||
],
|
||
"executionProfile": "async",
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"seconds": {
|
||
"type": "number",
|
||
"default": 3
|
||
}
|
||
}
|
||
},
|
||
"label": "到期提醒",
|
||
"description": "在指定时间提醒到期的待办事项。",
|
||
"entrypoint": {
|
||
"type": "cli",
|
||
"command": "remind",
|
||
"args": [
|
||
"--seconds",
|
||
"{{seconds}}"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
} |