feat: bind accounts create to add-web via replaces
All checks were successful
技能自动化发布 / release (push) Successful in 6s
All checks were successful
技能自动化发布 / release (push) Successful in 6s
This commit is contained in:
@@ -2,6 +2,80 @@
|
||||
"schemaVersion": 1,
|
||||
"skill": "account-manager",
|
||||
"actions": [
|
||||
{
|
||||
"id": "account-add-web",
|
||||
"label": "新增账号",
|
||||
"description": "登记网页/RPA 账号并自动创建浏览器 Profile 目录(走 account add-web,非宿主直写库)。",
|
||||
"replaces": "create",
|
||||
"placements": [],
|
||||
"executionProfile": "sync",
|
||||
"interaction": "form",
|
||||
"bind": {
|
||||
"tables": ["accounts"]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"required": ["platform", "accountLabel"],
|
||||
"properties": {
|
||||
"platform": {
|
||||
"type": "string",
|
||||
"title": "平台",
|
||||
"description": "平台键或显示名,如 cosco / 抖音"
|
||||
},
|
||||
"accountLabel": {
|
||||
"type": "string",
|
||||
"title": "账号名称"
|
||||
},
|
||||
"loginId": {
|
||||
"type": "string",
|
||||
"title": "登录账号"
|
||||
},
|
||||
"loginIdType": {
|
||||
"type": "string",
|
||||
"title": "登录标识类型",
|
||||
"default": "unknown"
|
||||
},
|
||||
"tenantId": {
|
||||
"type": "string",
|
||||
"title": "租户编号"
|
||||
},
|
||||
"environment": {
|
||||
"type": "string",
|
||||
"title": "环境",
|
||||
"default": "production"
|
||||
},
|
||||
"role": {
|
||||
"type": "string",
|
||||
"title": "角色",
|
||||
"default": "default"
|
||||
},
|
||||
"providerCode": {
|
||||
"type": "string",
|
||||
"title": "供应商代码"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"title": "入口链接"
|
||||
}
|
||||
}
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "account",
|
||||
"args": [
|
||||
"add-web",
|
||||
"--platform", "{{platform}}",
|
||||
"--label", "{{accountLabel}}",
|
||||
"--login-id", "{{loginId}}",
|
||||
"--login-id-type", "{{loginIdType}}",
|
||||
"--tenant-id", "{{tenantId}}",
|
||||
"--environment", "{{environment}}",
|
||||
"--role", "{{role}}",
|
||||
"--provider-code", "{{providerCode}}",
|
||||
"--url", "{{url}}"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "reveal-profile",
|
||||
"label": "打开文件位置",
|
||||
|
||||
Reference in New Issue
Block a user