Docs: precipitate Action Lookup skill_cli contract (v1.0.119)
All checks were successful
技能自动化发布 / release (push) Successful in 10s

This commit is contained in:
2026-09-28 11:56:12 +08:00
parent bf3bb9cd10
commit c49fcba157
12 changed files with 264 additions and 24 deletions

View File

@@ -413,9 +413,13 @@ class TestDocsStandards(unittest.TestCase):
"inputSchema 与参数表单",
"表单字段类型对照(须与 CRUD 对称)",
"跨表引用:Lookup",
"display_type: \"lookup\"",
'"display_type": "lookup"',
"extra_column",
"multiple",
"skill_cli",
"local_sql",
"external_api",
"items_path",
"数据管理新增/编辑",
"_jiangchang_columns.description",
"datetime_unix_seconds",
@@ -427,6 +431,21 @@ class TestDocsStandards(unittest.TestCase):
"列筛选",
):
self.assertIn(marker, text, msg=f"ACTIONS.md missing {marker!r}")
self.assertTrue(
os.path.isfile(
os.path.join(get_skill_root(), "assets/examples/lookup-skill-cli.action.example.json")
),
msg="lookup-skill-cli.action.example.json missing",
)
checklist = self._read("development/CHECKLIST.md")
self.assertIn("skill_cli", checklist)
account_mgr = self._read("development/ACCOUNT_MANAGER.md")
self.assertIn("skill_cli", account_mgr)
schema = self._read("references/SCHEMA.md")
self.assertIn("skill_cli", schema)
schema_json = self._read("assets/schemas/skill-actions.schema.json")
self.assertIn("skill_cli", schema_json)
self.assertIn('"skill"', schema_json)
def test_actions_md_disambiguates_visible_when_from_policy(self) -> None:
actions = self._read("references/ACTIONS.md")