Build the base YAML header.
(cls, title: str, description: str)
| 1141 | |
| 1142 | @classmethod |
| 1143 | def _build_yaml_header(cls, title: str, description: str) -> dict[str, Any]: |
| 1144 | """Build the base YAML header.""" |
| 1145 | header = { |
| 1146 | "version": "1.0.0", |
| 1147 | "title": title, |
| 1148 | "description": description, |
| 1149 | "author": {"contact": "spec-kit"}, |
| 1150 | "parameters": [ |
| 1151 | { |
| 1152 | "key": "args", |
| 1153 | "input_type": "string", |
| 1154 | "requirement": "optional", |
| 1155 | "default": "", |
| 1156 | "description": "User input passed to the command.", |
| 1157 | } |
| 1158 | ], |
| 1159 | "extensions": [{"type": "builtin", "name": "developer"}], |
| 1160 | "activities": ["Spec-Driven Development"], |
| 1161 | } |
| 1162 | return header |
| 1163 | |
| 1164 | @classmethod |
| 1165 | def _render_yaml(cls, title: str, description: str, body: str, source_id: str) -> str: |