# `MontyPlugin.Capabilities`
[🔗](https://github.com/d-led/ex.monty.plugin/blob/v0.1.5/lib/monty_plugin/capabilities.ex#L1)

What a plugin host can reach, as the tags a plugin's `needs` are checked
against.

`MontyPlugin`'s `needs` says what a plugin calls while it answers: `:quiddity`
for the geometry, `:cadmpeg` for the file, `:monty` for the framework. A
cluster can only hold a plugin to that answer if the host publishes the other
half — what it carries — so a host's tags are its plugins *and* this.

## Two kinds of tag

* A **package** is on the node's code path or it is not, and that is a fact
  about the build rather than a promise in a deployment file. `Application`
  answers it, so `carried/0` asks; the tag is the name `needs` uses, which is
  the table below and nothing else in this package.
* What only the machine knows — `gpu`, `world:mujoco`, a licence server —
  arrives in `MONTY_CAPABILITIES`, comma-separated, the same variable a studio
  node reads when it says what it can do.

The declared tags are reported as written. A tag is compared, not parsed, and
the comparison that decides a placement is the reader's
(`ExTbpMonty.Cluster.Capabilities.offers?/2`, which normalises both sides), so
a spelling difference between two deployments is not a tag this module has to
correct.

# `carried`

```elixir
@spec carried((atom() -&gt; boolean())) :: [String.t()]
```

Every tag this host carries, sorted and without duplicates.

`installed?` is how the package question is asked — `Application` unless a
caller says otherwise. A test says otherwise, because the three packages are
other applications and are not on this package's own code path; a deployment
reads it as it is.

# `declared`

```elixir
@spec declared() :: [String.t()]
```

The tags `MONTY_CAPABILITIES` adds, in the order written.

Empty when it is unset, which is an answer: the packages are still reported,
and the machine has said nothing about itself.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
