Compatibility & Versioning
Semantic Versioning
Extensions follow SemVer 2.0.0:
- MAJOR: Breaking changes (command API changes, config schema changes)
- MINOR: New features (new commands, new config options)
- PATCH: Bug fixes (no API changes)
Compatibility Checks
At installation:
python
def check_compatibility(extension_manifest: dict) -> bool:
"""Check if extension is compatible with current environment."""
requires = extension_manifest['requires']
# 1. Check spec-kit version
current_speckit = get_speckit_version() # e.g., "0.1.5"
required_speckit = requires['speckit_version'] # e.g., ">=0.1.0,<2.0.0"
if not version_satisfies(current_speckit, required_speckit):
raise IncompatibleVersionError(
f"Extension requires spec-kit {required_speckit}, "
f"but {current_speckit} is installed. "
f"Upgrade spec-kit with: uv tool install specify-cli --force"
)
# 2. Check required tools
for tool in requires.get('tools', []):
tool_name = tool['name']
tool_version = tool.get('version')
if tool.get('required', True):
if not check_tool(tool_name):
raise MissingToolError(
f"Extension requires tool: {tool_name}\n"
f"Install from: {tool.get('install_url', 'N/A')}"
)
if tool_version:
installed = get_tool_version(tool_name, tool.get('check_command'))
if not version_satisfies(installed, tool_version):
raise IncompatibleToolVersionError(
f"Extension requires {tool_name} {tool_version}, "
f"but {installed} is installed"
)
# 3. Check required commands
for cmd in requires.get('commands', []):
if not command_exists(cmd):
raise MissingCommandError(
f"Extension requires core command: {cmd}\n"
f"Update spec-kit to latest version"
)
return TrueDeprecation Policy
Extension manifest can mark features as deprecated:
yaml
provides:
commands:
- name: "speckit.jira.old-command"
file: "commands/old-command.md"
deprecated: true
deprecated_message: "Use speckit.jira.new-command instead"
removal_version: "2.0.0"At runtime, show warning:
text
⚠️ Warning: /speckit.jira.old-command is deprecated
Use /speckit.jira.new-command instead
This command will be removed in v2.0.0