internal/

directory
v0.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: Apache-2.0

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 is mashctl's view of the account resolver through the system account (ADR 0052): it looks the account JWT up on the servers, pushes a revision of it signed with the operator key, and reads it back to verify.
Package apply is mashctl's view of the account resolver through the system account (ADR 0052): it looks the account JWT up on the servers, pushes a revision of it signed with the operator key, and reads it back to verify.
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 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 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 operator and system keys of a server `mashctl init --local` stood up), kept as 0600 files in a 0700 directory (ADR 0052).
Package ctlkeys is the key store of mashctl: the account signing seed (and the operator and system keys of a server `mashctl init --local` stood up), 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 enroll signs the user credential of an endpoint from a PUBLIC key the endpoint made, so no private key reaches the central host, and records the endpoint (issue record, directory record, inbox).
Package enroll signs the user credential of an endpoint from a PUBLIC key the endpoint made, so no private key reaches the central host, and records the endpoint (issue record, directory record, inbox).
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 issue is the issue service (REQ-013, ADR 0104): it takes a request that holds a sender's PUBLIC key and the address the key is for, countersigned by the requester on the sender's host, and returns a user JWT for that key, signed with the owner group's scoped signing key and carrying the tags mash's own table gives that address.
Package issue is the issue service (REQ-013, ADR 0104): it takes a request that holds a sender's PUBLIC key and the address the key is for, countersigned by the requester on the sender's host, and returns a user JWT for that key, signed with the owner group's scoped signing key and carrying the tags mash's own table gives that address.
Package keycred makes a user key pair and builds a credentials file from a seed and a user JWT.
Package keycred makes a user key pair and builds a credentials file from a seed and a user JWT.
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 listset turns a list set into scoped-key permission templates and per-sender tags, and refuses to produce anything the NATS server would not enforce exactly as the lists say.
Package listset turns a list set into scoped-key permission templates and per-sender tags, and refuses to produce anything the NATS server would not enforce exactly as the lists say.
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 endpoint: signed by the account signing key and carrying the endpoint's own permission set (admin.Permissions).
Package mint makes the NATS user JWT and creds of one endpoint: signed by the account signing key and carrying the endpoint's own permission set (admin.Permissions).
Package namerule reads and applies mash's name-acceptance rule file, name-rule@1 (docs/name-rule.md, ADR 0077).
Package namerule reads and applies mash's name-acceptance rule file, name-rule@1 (docs/name-rule.md, ADR 0077).
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 holds the size limits the JWTs mash makes must fit.
Package policy holds the size limits the JWTs mash makes must fit.
Package policyapply is the core of the applied-policy gate (contract mash-messaging-policy REQ-011, draft-3).
Package policyapply is the core of the applied-policy gate (contract mash-messaging-policy REQ-011, draft-3).
Package policydoc decodes the list-set document: the one value per account that a policy author keeps and mash applies.
Package policydoc decodes the list-set document: the one value per account that a policy author keeps and mash applies.
Package policyintake is the intake of list sets: it watches the key `listset.<account>` of the policy bucket, checks each delivered revision against the account's adoption marker, hands a verified list set to an applier and reports every refusal.
Package policyintake is the intake of list sets: it watches the key `listset.<account>` of the policy bucket, checks each delivered revision against the account's adoption marker, hands a verified list set to an applier and reports every refusal.
Package policyserve is the production assembly of the list-set intake: the adapters the intake needs (decode, document in force, refusals, held keys, the write guard), the signer over the key store, the server limits read through the system account, and the Applier that builds everything policyapply.Apply needs for one verified document.
Package policyserve is the production assembly of the list-set intake: the adapters the intake needs (decode, document in force, refusals, held keys, the write guard), the signer over the key store, the server limits read through the system account, and the Applier that builds everything policyapply.Apply needs for one verified document.
Package policyview is the responder behind `mash policy show` and `mash policy explain` (REQ-010).
Package policyview is the responder behind `mash policy show` and `mash policy explain` (REQ-010).
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 reconcile is the first-list-set reconcile of an adopted account (AT-015, ADR 0111): it plans, and with a signer executes, the removal of what the account held before its first list set that the list set does not own.
Package reconcile is the first-list-set reconcile of an adopted account (AT-015, ADR 0111): it plans, and with a signer executes, the removal of what the account held before its first list set that the list set does not own.
Package releasenotes is the one place that judges a release's notes (ADR 0105, release standard rule 23): a release's notes and its change-log section are the same text, and it opens with prose before any list.
Package releasenotes is the one place that judges a release's notes (ADR 0105, release standard rule 23): a release's notes and its change-log section are the same text, and it opens with prose before any list.
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 requesterreg is the static requester registry: a file that says which requester public key may countersign an issue request for which host and owner group (REQ-013, ADR 0104).
Package requesterreg is the static requester registry: a file that says which requester public key may countersign an issue request for which host and owner group (REQ-013, ADR 0104).
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL