Skip to main content

Crate mars_schema

Crate mars_schema 

Source
Expand description

Pure schema vocabulary, parsing, validation, and editing for Mars packages.

Re-exports§

pub use harness::HarnessId;

Modules§

agent
Agent definition reader.
claude
The Claude dialect: plugin and marketplace manifests, discovery, relocation and translation of Claude-shaped repositories into schema v1 items.
diagnostic
Stable diagnostics returned by schema operations.
dialect
Inbound dialect vocabulary for foreign definitions.
discover
Definition selection over a host-independent package tree, and the one bounded directory walk every convention scan shares (the binary’s bootstrap walk included).
edit
Canonical YAML emission for editors that splice bytes into authored frontmatter.
frontmatter
harness
Stable harness identifiers and authored-name parsing.
harness_overrides
harness-overrides: the per-harness passthrough blocks of an Agent or skill.
inspect
inspect: what is in a repository, before anything is selected or converted.
item
Package item vocabulary.
manifest
Package-manifest reading owned by the schema boundary.
markdown
Small Markdown syntax helpers shared by build and compiler paths.
mcp
Canonical MCP tool references in tools: / disallowed-tools: lists.
model_policy
Model-policy definition and validation shared by profiles and consumer config.
network
Shell network policy: the mode a profile, overlay, settings or CLI flag names, and the host grammar of its allow and deny sets.
normalize
normalize: turn a selection of a repository into schema v1 packages.
ordered
A JSON-shaped value that keeps mapping key order.
package
Versioned package metadata and manifest classification.
permission_set
One layer of an additive permission set: a plain list adds to lower layers, replace clears them.
plugin_metadata
Pure validation for Mars-generated plugin tree markers.
prepare
One-pass package classification, normalization, selection, and strict reading.
provider
Provider names, the hosts that supply skills Mars installs outside the dependency graph.
read
The serialized v1 reading shared by native and WASM callers.
skill
Skill definition reading.
tool_names
Mars tool-name grammar.
tool_natives
Explicit per-harness native tool names for Mars capabilities.
tool_policy
Canonical authored tool-policy values and frontmatter parsing.
tree
Host-independent package tree access.
upgrade
Pure legacy Mars definition and manifest upgrades to schema v1.

Constants§

VERSION
The schema crate version, kept in lockstep with the Mars CLI.