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.
- dependency
- One
[dependencies]or[local-dependencies]entry, as a package manifest or a consumermars.tomlwrites it: its source, selectors and filter, and the rules that hold wherever it is read. The consumer’s configuration, a package’s manifest reading andmars addall read an entry throughEntry::read, which holds every rule and says, byStrictness, which of them refuse and which only warn. - 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.
- filter
- Which of a package’s items a dependency entry selects: the authored
agents,skills,exclude,only_skills,only_agentsandrenamekeys, their consistency rule, and theFilterModethey resolve to. - frontmatter
- git_url
- 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.
- links
- The skill body-link rule: which relative links leave a skill’s payload and stop resolving once the skills are installed.
- 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. - mcp_
server - The authored MCP server definition: the vocabulary and the pure parse of one
mcp/<name>/mcp.toml. - mcp_
servers - The
mcpServersentry: the one codec for the shape Claude’s.mcp.jsondeclares and Cursor, Pi and a generated Claude/Codex plugin tree copy. - model_
policy - Model-policy definition and validation shared by profiles and consumer config.
- names
- Names and relative coordinates the dependency vocabulary is built from: item names, source
subpaths, and rename maps. Pure string handling; separators normalize to
/on every host. - 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,
replaceclears 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.
- selection
- Item selection: which Agents, skills and package-level documents of a settled dependency graph a consumer installs.
- 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.
- version
- The two version grammars Mars reads and how a version is chosen among a repository’s tags.
- visibility
- Whether an effectful package item (a hook or an MCP server) crosses a package boundary.
Macros§
Constants§
- VERSION
- The schema crate version, kept in lockstep with the Mars CLI.