Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cdd8b663f4 | |||
| 285138ebf4 |
@@ -6,7 +6,10 @@
|
|||||||
"id": "health",
|
"id": "health",
|
||||||
"label": "运行检查",
|
"label": "运行检查",
|
||||||
"description": "检查技能运行环境并返回结构化结果,不启动浏览器。",
|
"description": "检查技能运行环境并返回结构化结果,不启动浏览器。",
|
||||||
"placements": ["skill-detail", "agent"],
|
"placements": [
|
||||||
|
"skill-detail",
|
||||||
|
"agent"
|
||||||
|
],
|
||||||
"executionProfile": "sync",
|
"executionProfile": "sync",
|
||||||
"entrypoint": {
|
"entrypoint": {
|
||||||
"type": "cli",
|
"type": "cli",
|
||||||
@@ -18,7 +21,9 @@
|
|||||||
"id": "version",
|
"id": "version",
|
||||||
"label": "查看版本",
|
"label": "查看版本",
|
||||||
"description": "返回技能版本和机器标识。",
|
"description": "返回技能版本和机器标识。",
|
||||||
"placements": ["skill-detail"],
|
"placements": [
|
||||||
|
"skill-detail"
|
||||||
|
],
|
||||||
"executionProfile": "sync",
|
"executionProfile": "sync",
|
||||||
"entrypoint": {
|
"entrypoint": {
|
||||||
"type": "cli",
|
"type": "cli",
|
||||||
@@ -30,7 +35,9 @@
|
|||||||
"id": "config-path",
|
"id": "config-path",
|
||||||
"label": "查看配置位置",
|
"label": "查看配置位置",
|
||||||
"description": "返回技能配置文件位置。",
|
"description": "返回技能配置文件位置。",
|
||||||
"placements": ["skill-detail"],
|
"placements": [
|
||||||
|
"skill-detail"
|
||||||
|
],
|
||||||
"executionProfile": "sync",
|
"executionProfile": "sync",
|
||||||
"entrypoint": {
|
"entrypoint": {
|
||||||
"type": "cli",
|
"type": "cli",
|
||||||
@@ -42,21 +49,29 @@
|
|||||||
"id": "add-todo",
|
"id": "add-todo",
|
||||||
"label": "添加待办",
|
"label": "添加待办",
|
||||||
"description": "添加待办事项。",
|
"description": "添加待办事项。",
|
||||||
"placements": ["skill-detail","toolbar"],
|
"placements": [
|
||||||
|
"skill-detail",
|
||||||
|
"toolbar"
|
||||||
|
],
|
||||||
"executionProfile": "sync",
|
"executionProfile": "sync",
|
||||||
"entrypoint": {
|
"entrypoint": {
|
||||||
"type": "cli",
|
"type": "cli",
|
||||||
"command": "todo",
|
"command": "todo",
|
||||||
"args": [
|
"args": [
|
||||||
"add",
|
"add",
|
||||||
"--title", "{{title}}",
|
"--title",
|
||||||
"--priority", "{{priority}}",
|
"{{title}}",
|
||||||
"--due-at", "{{due_at}}"
|
"--priority",
|
||||||
|
"{{priority}}",
|
||||||
|
"--due-at",
|
||||||
|
"{{due-at}}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"interaction": "form",
|
"interaction": "form",
|
||||||
"bind": {
|
"bind": {
|
||||||
"tables": ["todos"]
|
"tables": [
|
||||||
|
"todos"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"inputSchema": {
|
"inputSchema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@@ -70,21 +85,93 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "优先级",
|
"title": "优先级",
|
||||||
"description": "待办事项的优先级,可选。",
|
"description": "待办事项的优先级,可选。",
|
||||||
"default": "medium",
|
"default": "normal",
|
||||||
"enum": ["high", "medium", "low"]
|
"enum": [
|
||||||
|
"high",
|
||||||
|
"normal",
|
||||||
|
"low"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"due_at": {
|
"due-at": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"title": "提醒时间",
|
"title": "提醒时间",
|
||||||
"description": "格式 YYYY-MM-DD HH:MM,如 2026-08-01。",
|
"description": "格式 YYYY-MM-DD HH:MM,如 2026-08-01。",
|
||||||
"display_type": "datetime_unix_seconds"
|
"display_type": "datetime_unix_seconds"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["title", "priority"]
|
"required": [
|
||||||
|
"title",
|
||||||
|
"priority"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"hostEffects": {
|
"hostEffects": {
|
||||||
"onSuccess": ["reloadTable"]
|
"onSuccess": [
|
||||||
|
"reloadTable"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "todo-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}}"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user