沉淀 Lookup 分页勾选小表契约,避免再造一套控件
All checks were successful
技能自动化发布 / release (push) Successful in 7s

This commit is contained in:
2026-09-30 11:21:37 +08:00
parent afe0788488
commit cef7e366cf
12 changed files with 140 additions and 10 deletions

View File

@@ -0,0 +1,47 @@
{
"_comment": "形状参考:Action Lookup 分页勾选小表。仍是 display_type=lookup,加 presentation=paged_table。完整契约见 references/ACTIONS.md「分页勾选小表」。不要新造 display_type。skill_cli 的 stdout 须为一行 {items,total};0 条也成功退出。列表命令不要在 main.py 入口加载整包 jiangchang_skill_core 或 Playwright。",
"schemaVersion": 1,
"skill": "your-skill-slug",
"actions": [
{
"id": "import-picked",
"label": "导入文章",
"description": "从已生成文章里勾选要导入的,可翻页。",
"placements": ["toolbar"],
"executionProfile": "sync",
"interaction": "form",
"bind": {
"tables": ["articles"],
"selectionMode": "none"
},
"entrypoint": {
"type": "cli",
"command": "import-articles",
"args": ["--ids", "{{articleIds}}"]
},
"inputSchema": {
"type": "object",
"required": ["articleIds"],
"properties": {
"articleIds": {
"type": "string",
"title": "选择文章",
"description": "勾选要导入的文章。可翻页,可本页全选。",
"display_type": "lookup",
"lookup": {
"source": "skill_cli",
"skill": "geo-generate-article-all",
"command": "title",
"args": ["list-generated-json", "--platform", "toutiaohao"],
"value_column": "id",
"label_column": "title",
"multiple": true,
"presentation": "paged_table",
"page_size": 10
}
}
}
}
}
]
}