65 lines
1.7 KiB
JSON
65 lines
1.7 KiB
JSON
{
|
||
"schemaVersion": 1,
|
||
"skill": "account-manager",
|
||
"actions": [
|
||
{
|
||
"id": "reveal-profile",
|
||
"label": "打开文件位置",
|
||
"description": "在系统文件管理器中打开该账号的浏览器 Profile 目录。",
|
||
"placements": ["row"],
|
||
"executionProfile": "sync",
|
||
"interaction": "direct",
|
||
"bind": {
|
||
"tables": ["accounts"],
|
||
"inputMapping": { "accountId": "$row.$pk" }
|
||
},
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"required": ["accountId"],
|
||
"properties": {
|
||
"accountId": {
|
||
"type": "number",
|
||
"title": "账号 ID",
|
||
"description": "accounts 表主键",
|
||
"readOnly": true
|
||
}
|
||
}
|
||
},
|
||
"entrypoint": {
|
||
"type": "cli",
|
||
"command": "account",
|
||
"args": ["reveal-profile", "{{accountId}}"]
|
||
}
|
||
},
|
||
{
|
||
"id": "open-browser",
|
||
"label": "打开浏览器",
|
||
"description": "用该账号持久化 Profile 直接打开系统 Chrome/Edge,仅供肉眼核对(不做登录判定)。与打开文件位置同为一点即开。",
|
||
"placements": ["row"],
|
||
"executionProfile": "sync",
|
||
"interaction": "direct",
|
||
"bind": {
|
||
"tables": ["accounts"],
|
||
"inputMapping": { "accountId": "$row.$pk" }
|
||
},
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"required": ["accountId"],
|
||
"properties": {
|
||
"accountId": {
|
||
"type": "number",
|
||
"title": "账号 ID",
|
||
"description": "accounts 表主键",
|
||
"readOnly": true
|
||
}
|
||
}
|
||
},
|
||
"entrypoint": {
|
||
"type": "cli",
|
||
"command": "account",
|
||
"args": ["open", "{{accountId}}"]
|
||
}
|
||
}
|
||
]
|
||
}
|