MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / check_schema

Method check_schema

atomic-agent/src/integrations/manifest.rs:82–93  ·  view source on GitHub ↗

Reject manifests from a newer schema than this CLI understands.

(&self)

Source from the content-addressed store, hash-verified

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<()> {

Callers 1

loadMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected