Reject manifests from a newer schema than this CLI understands.
(&self)
| 80 | |
| 81 | /// Reject manifests from a newer schema than this CLI understands. |
| 82 | pub fn check_schema(&self) -> AgentResult<()> { |
| 83 | if self.schema != SUPPORTED_SCHEMA { |
| 84 | return Err(AgentError::Integration { |
| 85 | agent: self.agent.clone(), |
| 86 | reason: format!( |
| 87 | "unsupported manifest schema {} (this CLI understands schema {})", |
| 88 | self.schema, SUPPORTED_SCHEMA |
| 89 | ), |
| 90 | }); |
| 91 | } |
| 92 | Ok(()) |
| 93 | } |
| 94 | |
| 95 | /// Enforce the package's `requires.atomic` gate against the running CLI. |
| 96 | pub fn check_cli_version(&self, cli_version: &str) -> AgentResult<()> { |