Directories
¶
| Path | Synopsis |
|---|---|
|
Package admin provisions mash endpoints: the permission template a NATS user needs, and the streams, consumer and directory record behind it.
|
Package admin provisions mash endpoints: the permission template a NATS user needs, and the streams, consumer and directory record behind it. |
|
Package adrindex generates docs/decisions/INDEX.md from the records' front matter (ADR 0068).
|
Package adrindex generates docs/decisions/INDEX.md from the records' front matter (ADR 0068). |
|
Package apply pushes a compiled policy to the MASH account (ADR 0052, 0053): one scoped signing key per zone in the account JWT.
|
Package apply pushes a compiled policy to the MASH account (ADR 0052, 0053): one scoped signing key per zone in the account JWT. |
|
Package bootstrap stands up the configuration of a local operator-mode NATS server with JetStream for one developer (`mashctl init --local`, ADR 0052): keys through the ctlkeys store, the operator, system account, MASH account and two user JWTs, a server.conf that preloads them, an open policy file and a config.json.
|
Package bootstrap stands up the configuration of a local operator-mode NATS server with JetStream for one developer (`mashctl init --local`, ADR 0052): keys through the ctlkeys store, the operator, system account, MASH account and two user JWTs, a server.conf that preloads them, an open policy file and a config.json. |
|
Package claudesettings reads Claude Code's managed settings, read-only, to say whether mash is on the channel allowlist.
|
Package claudesettings reads Claude Code's managed settings, read-only, to say whether mash is on the channel allowlist. |
|
Package config loads mash's settings: config.json in the config directory (see ConfigDir), then the environment, which wins.
|
Package config loads mash's settings: config.json in the config directory (see ConfigDir), then the environment, which wins. |
|
Package ctl is the admin verb set shared by mashctl and the deprecated `mash admin`.
|
Package ctl is the admin verb set shared by mashctl and the deprecated `mash admin`. |
|
Package ctlkeys is the key store of mashctl: the account signing seed and the per-zone scoped signing seeds, kept as 0600 files in a 0700 directory (ADR 0052).
|
Package ctlkeys is the key store of mashctl: the account signing seed and the per-zone scoped signing seeds, kept as 0600 files in a 0700 directory (ADR 0052). |
|
Package endpoint is one mash endpoint: its NATS connection, identity, lease, inbox and view of the directory.
|
Package endpoint is one mash endpoint: its NATS connection, identity, lease, inbox and view of the directory. |
|
Package host isolates what is specific to the agent host a mash session runs in (Claude Code today), so other hosts (Hermes, Pi) can plug in later.
|
Package host isolates what is specific to the agent host a mash session runs in (Claude Code today), so other hosts (Hermes, Pi) can plug in later. |
|
Package kind is a message's kind: what the sender wants of the recipient, which decides whether it wakes an idle session.
|
Package kind is a message's kind: what the sender wants of the recipient, which decides whether it wakes an idle session. |
|
Package mcp is a minimal Model Context Protocol server over stdio, enough to be a Claude Code channel: initialize (declaring claude/channel), tools, ping, and notifications/claude/channel.
|
Package mcp is a minimal Model Context Protocol server over stdio, enough to be a Claude Code channel: initialize (declaring claude/channel), tools, ping, and notifications/claude/channel. |
|
Package mint makes the NATS user JWT and creds of one policy endpoint: signed by the endpoint's zone scoped signing key, carrying the endpoint's compiled tags and nothing else (the zone key's template grants the permissions).
|
Package mint makes the NATS user JWT and creds of one policy endpoint: signed by the endpoint's zone scoped signing key, carrying the endpoint's compiled tags and nothing else (the zone key's template grants the permissions). |
|
Package natsauth connects to NATS with a user creds file without turning the client into a signing oracle.
|
Package natsauth connects to NATS with a user creds file without turning the client into a signing oracle. |
|
Package policy is mash's policy file: who may mail whom, as labels and rules, compiled into each endpoint's publish permissions.
|
Package policy is mash's policy file: who may mail whom, as labels and rules, compiled into each endpoint's publish permissions. |
|
Package policyfile edits a policy file in place without disturbing it: comments, blank lines, key order and the author's flow or block style all survive, because an edit is a small splice into the file's text at positions the YAML node tree reports, not a re-encoding of the tree (which would drop blank lines and reflow comments).
|
Package policyfile edits a policy file in place without disturbing it: comments, blank lines, key order and the author's flow or block style all survive, because an edit is a small splice into the file's text at positions the YAML node tree reports, not a re-encoding of the tree (which would drop blank lines and reflow comments). |
|
Package portable holds the portable-code lint: a plain go test that walks the source tree and counts places where product code carries a personal convention (a person's or machine's name, a home or temp path, a foreign GitHub org, an inline long timeout).
|
Package portable holds the portable-code lint: a plain go test that walks the source tree and counts places where product code carries a personal convention (a person's or machine's name, a home or temp path, a foreign GitHub org, an inline long timeout). |
|
Package render turns mail into the text a Claude session sees: a small batch in full, a large one as a digest of one line per message.
|
Package render turns mail into the text a Claude session sees: a small batch in full, a large one as a digest of one line per message. |
|
Package sap implements the parts of the Synadia Agent Protocol 0.3 that mash uses: subjects (§2), and sender identity (§13).
|
Package sap implements the parts of the Synadia Agent Protocol 0.3 that mash uses: subjects (§2), and sender identity (§13). |
|
Package spool is the hand-over between serve and a Claude Code session's hooks (hook delivery, mash v0.2.0).
|
Package spool is the hand-over between serve and a Claude Code session's hooks (hook delivery, mash v0.2.0). |
|
Package store holds mash's JetStream layout: per-endpoint inbox streams, their consumer, and the directory and lease KV buckets (spec section 5).
|
Package store holds mash's JetStream layout: per-endpoint inbox streams, their consumer, and the directory and lease KV buckets (spec section 5). |
|
Package testenv runs an in-process nats-server in operator mode for integration tests.
|
Package testenv runs an in-process nats-server in operator mode for integration tests. |
Click to show internal directories.
Click to hide internal directories.