Files
Cognitive_Agent/domains
Miayui c4efdbe22f merge: sync feature/N7Web into feature/N7Web-Tech
# Conflicts:
#	apps/web-console/service-worker.js
#	src/cognitive_agent/application/mode_profile.py
#	src/cognitive_agent/application/mode_scene_catalog.py
#	src/cognitive_agent/application/seat_service.py
#	tests/e2e/test_seat_web_api.py
#	tests/unit/test_assistant_frontend_contract.py
#	tests/unit/test_vue_frontend_contract.py
2026-09-17 11:16:48 +08:00
..
2026-07-30 08:45:38 +08:00
2026-08-24 14:15:53 +08:00
2026-07-30 08:45:38 +08:00

Domain Plugins

每个子目录是一个完整的领域交付单元。领域插件只能依赖 cognitive_agent.sdk 和 contracts/,不得依赖其他领域或中央编排实现。

新领域从 _template/ 复制,目录名和 spec.domain 必须使用相同的 ASCII snake_case 标识。插件注册由 manifest.yaml 驱动,不在中央代码中硬编码领域列表。

领域目录固定结构:

<domain>/
├── README.md
├── OWNERS.yaml
├── manifest.yaml
├── config/
│   ├── capabilities.yaml
│   └── presets/
├── schemas/
│   └── function-parameters.schema.json
├── can/
│   └── signal-mapping.yaml
├── src/<domain>_domain/
└── tests/
    ├── unit/
    ├── contract/
    └── integration/