Expand description
Pure schema vocabulary, parsing, validation, and editing for Mars packages.
Re-exports§
Modules§
- agent
- Agent definition reader.
- alias
- A
[models.<alias>]table ofmars.toml: how an alias names a model, and the pure resolution of it over models.dev rows. - check
- What is wrong with a package, from its files and its dependencies:
mars checkand the WASMcheckshare this one function. It has no host I/O, and it reports what is true of the package wherever it runs. A finding that exists only because a harness target or an older Mars cannot take something belongs where that target or version exists (the binary). - claude
- The Claude dialect: plugin and marketplace manifests, discovery, relocation and translation of Claude-shaped repositories into schema v1 items.
- config
- What
mars.tomlholds beyond[package]and the dependency tables:[settings],[models],[agents],[skills]and[plugin], read as the CLI reads them, and the reader the project’s other config files share. - 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.
- effort
- Resolving a requested effort to a level the chosen model and harness both take.
- 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.- hooks
- The
hook.tomldefinition and every per-target hook rule. - inspect
inspect: what is in a repository, before anything is selected or converted.- item
- Package item vocabulary.
- keys
- The keys a Mars release gates: a file that uses one needs a floor at or above the release that
first read it. This lists keys Mars reads today and when they arrived, nothing about keys it
no longer reads. A file’s version floor is
floorover the keysusedfinds in it, plus the uses a caller derives from other files (a hook, a profile’s tool rule). - 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 Pi and a generated Claude/Codex plugin tree copy. - model_
policy - Model-policy definition and validation shared by profiles and consumer config.
- models
- The models.dev catalog row and the pure alias resolver over it.
- 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.
- package_
tools [package.tools]and the Agents the package ships.- 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.
- resolve
- Which version of which source, for a whole dependency graph.
- retired
- Keys and target directories Mars moved off, each with the page that says how to fix it. A
reader that meets a key warns once (
field.retired) and does not read it. Delete this module and every key here falls back to the ordinaryfield.unknown. - selection
- Item selection: which Agents, skills and package-level documents of a settled dependency graph a consumer installs.
- skill
- Skill definition reading.
- tool_
cover - Which tool-rule key covers which: the one place that decides whether one rule’s scope holds inside another’s.
- 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.
- tool_
project - Lowering a tool policy onto one host: the native names each rule becomes, the gaps Mars cannot name, and which stricter rule wins a shared name.
- tool_
rule_ map - An ordered map from tool key to action:
[settings.tools]and the rule entries of[agents.<name>.tools]inmars.toml. - tree
- Host-independent package tree access.
- 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.