Precipitate host contracts from task-plaza: visibleWhen equalsFrom, replaces gates, url openExternal, feishu data-sources (v1.0.128)
All checks were successful
技能自动化发布 / release (push) Successful in 14s

This commit is contained in:
2026-11-01 16:30:46 +08:00
parent d911bd28cd
commit 90eefc8653
15 changed files with 412 additions and 32 deletions

View File

@@ -0,0 +1,53 @@
{
"id": "item-delete-own",
"label": "删除",
"description": "删除自己拥有的记录。用户点宿主「删除」:行上仅所有者=当前用户时显示;勾选批量时他人记录由技能跳过。",
"replaces": "delete",
"placements": ["agent"],
"executionProfile": "sync",
"interaction": "confirm",
"interactionByPlacement": {
"delete": "confirm",
"agent": "form"
},
"confirmation": {
"message": "确认删除?仅删除你拥有的记录,他人记录会跳过;删除后不可恢复。"
},
"bind": {
"tables": ["business_items"],
"selectionMode": "required",
"visibleWhen": {
"field": "owner_user_id",
"equalsFrom": "currentUser.userId"
},
"inputMapping": {
"itemId": "$row.$pk",
"itemIds": "$selection.ids"
}
},
"hostEffects": {
"onSuccess": ["reloadTable", "clearSelection"]
},
"inputSchema": {
"type": "object",
"properties": {
"itemId": {
"type": "string",
"title": "编号",
"description": "行内触发时自动填入",
"readOnly": true
},
"itemIds": {
"type": "string",
"title": "编号列表",
"description": "勾选时自动填入",
"readOnly": true
}
}
},
"entrypoint": {
"type": "cli",
"command": "item-delete",
"args": ["--id", "{{itemId}}", "--ids", "{{itemIds}}"]
}
}