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 cellwidth measures text in terminal cells: 1 for most characters, 2 for East Asian wide and fullwidth ones and emoji, 0 for combining marks.
|
Package cellwidth measures text in terminal cells: 1 for most characters, 2 for East Asian wide and fullwidth ones and emoji, 0 for combining marks. |
|
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 cliframe is the frame shared by the mash and mashctl command lines: the global options, accepted anywhere in the arguments, and the error report.
|
Package cliframe is the frame shared by the mash and mashctl command lines: the global options, accepted anywhere in the arguments, and the error report. |
|
Package cmdcore defines a command once and serves it through both doors: the command line and an MCP tool.
|
Package cmdcore defines a command once and serves it through both doors: the command line and an MCP tool. |
|
cmds
Package cmds holds the commands defined on cmdcore: each is a params struct, a result struct and a Run, served through both the command line and the MCP tool.
|
Package cmds holds the commands defined on cmdcore: each is a params struct, a result struct and a Run, served through both the command line and the MCP tool. |
|
render
Package render holds the small text helpers shared by the commands' human output: relative times, aligned tables, the terminal width, colour and plural counts.
|
Package render holds the small text helpers shared by the commands' human output: relative times, aligned tables, the terminal width, colour and plural counts. |
|
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 of mashctl.
|
Package ctl is the admin verb set of mashctl. |
|
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 joinfile is the join file: the one text file whoever runs a mesh hands to a machine that is to join it.
|
Package joinfile is the join file: the one text file whoever runs a mesh hands to a machine that is to join it. |
|
Package keycred makes a user key pair.
|
Package keycred makes a user key pair. |
|
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 natsfixture is test fixtures only: nothing in a release binary may import it (isolation_test.go checks).
|
Package natsfixture is test fixtures only: nothing in a release binary may import it (isolation_test.go checks). |
|
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 policyserve holds the production pieces of a policy apply: the signer over the key store, the server limits read through the system account, and the inbox and credential provisioning.
|
Package policyserve holds the production pieces of a policy apply: the signer over the key store, the server limits read through the system account, and the inbox and credential provisioning. |
|
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 refgen generates the plain-markdown command reference under docs/reference from the spec files in spec/.
|
Package refgen generates the plain-markdown command reference under docs/reference from the spec files in spec/. |
|
Package releasenotes is the one place that judges a release's notes (ADR 0105): 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): 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 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 sapsdk reaches the SAP Go SDK's identity package (synadia-agents.go, github.com/bogworks/synadia-agents.go/identity) behind mash's own types.
|
Package sapsdk reaches the SAP Go SDK's identity package (synadia-agents.go, github.com/bogworks/synadia-agents.go/identity) behind mash's own types. |
|
discovery
Package discovery is the verify step of a discovery answer (S5, REQ-016).
|
Package discovery is the verify step of a discovery answer (S5, REQ-016). |
|
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.