🐛 fix(playbook): import Optional for cli compatibility

restore the missing typing.Optional import in scripts/playbook.py
so older python runtimes can import the CLI module successfully.

add a regression test for typing annotation imports and register it
in the tests README.
This commit is contained in:
csh
2026-05-19 10:09:55 +08:00
parent 63e24bfe54
commit c0729c7933
3 changed files with 34 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ tests/
├── test_firstparty_skills_quality.py # first-party skills 元数据与结构质量测试
├── test_gitattributes_modes.py # gitattr_mode 行为测试
├── test_no_backup_flags.py # no_backup 行为测试
├── test_playbook_typing_imports.py # playbook.py typing 导入兼容性测试
├── test_sync_directory_actions.py # sync_memory_bank/sync_prompts 行为测试
├── test_vendor_snapshot_templates.py # vendor 快照模板完整性测试
├── test_main_loop_cli.py # main_loop CLI 测试