Skip to main content

mur_common/skill/
version.rs

1//! Schema version anchor for skill manifests.
2//!
3//! Versions are additive-only. Existing fields never change semantics;
4//! new optional fields bump the minor version.
5
6/// Current schema version written by `mur skill create` / `mur skill publish`.
7pub const SKILL_MANIFEST_SCHEMA_VERSION: &str = "2.2";
8
9/// Accepted schema versions. v2.0 manifests without `mcp_requirements` default
10/// to empty — behaviour unchanged. v2.2 adds `intent` + `tool_hint` on steps.
11pub fn is_supported(version: &str) -> bool {
12    matches!(version, "2.0" | "2.1" | "2.2")
13}