Documentation
¶
Overview ¶
Package emailcli holds the files that ship inside the binary, so that `email hermes files` and `email hermes install` write exactly what was released: the agent skill, the Hermes integration and the policy templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EmailSkill []byte
EmailSkill is the agent skill (skills/email/SKILL.md).
var HermesCronJob []byte
HermesCronJob is the email triage cron job for `email hermes seed-cron`.
var HermesRouteScript []byte
HermesRouteScript is the Hermes webhook route script for `email watch`.
var PolicyTemplates embed.FS
PolicyTemplates holds docs/policy/<name>.toml.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
email
command
|
|
|
internal
|
|
|
audit
Package audit appends one JSON line per write operation (and per policy denial) to audit.jsonl in the state directory.
|
Package audit appends one JSON line per write operation (and per policy denial) to audit.jsonl in the state directory. |
|
auth
Package auth stores account metadata and provider tokens, and enforces the account lock (the mailbox a token belongs to must match the one recorded at login).
|
Package auth stores account metadata and provider tokens, and enforces the account lock (the mailbox a token belongs to must match the one recorded at login). |
|
auth/oauthflow
Package oauthflow runs the browser half of an OAuth 2.0 authorization code + PKCE login for a public client.
|
Package oauthflow runs the browser half of an OAuth 2.0 authorization code + PKCE login for a public client. |
|
cli
Package cli wires cobra commands to the service layer.
|
Package cli wires cobra commands to the service layer. |
|
errs
Package errs defines the CLI's typed errors and their exit codes.
|
Package errs defines the CLI's typed errors and their exit codes. |
|
hermes
Package hermes connects email to a Hermes agent: it writes the skill and the webhook route script into HERMES_HOME, seeds the triage cron job through the `hermes` CLI, and renders the watch service and the config.yaml snippet.
|
Package hermes connects email to a Hermes agent: it writes the skill and the webhook route script into HERMES_HOME, seeds the triage cron job through the `hermes` CLI, and renders the watch service and the config.yaml snippet. |
|
mailmime
Package mailmime writes and reads RFC 5322 / MIME messages for the providers that deal in raw messages (gmail drafts, imap).
|
Package mailmime writes and reads RFC 5322 / MIME messages for the providers that deal in raw messages (gmail drafts, imap). |
|
policy
Package policy is the gate every operation passes through.
|
Package policy is the gate every operation passes through. |
|
provider
Package provider defines the unified mail model and the capability interfaces that each backend (msgraph, gmail, imap, fake) implements.
|
Package provider defines the unified mail model and the capability interfaces that each backend (msgraph, gmail, imap, fake) implements. |
|
provider/fake
Package fake is an in-memory provider for tests and for trying the CLI without a real mailbox.
|
Package fake is an in-memory provider for tests and for trying the CLI without a real mailbox. |
|
provider/gmail
Package gmail implements the provider interfaces on the Gmail REST API (Google Workspace accounts), with OAuth auth code + PKCE login.
|
Package gmail implements the provider interfaces on the Gmail REST API (Google Workspace accounts), with OAuth auth code + PKCE login. |
|
provider/imap
Package imap is the provider for mailboxes reached over IMAP and SMTP with a password: personal Gmail with an app password, or any IMAP server.
|
Package imap is the provider for mailboxes reached over IMAP and SMTP with a password: personal Gmail with an app password, or any IMAP server. |
|
provider/msgraph
Package msgraph implements the provider interfaces on Microsoft Graph (Microsoft 365 / Exchange Online) with delegated, device-code auth.
|
Package msgraph implements the provider interfaces on Microsoft Graph (Microsoft 365 / Exchange Online) with delegated, device-code auth. |
|
service
Package service is the layer between the CLI and providers.
|
Package service is the layer between the CLI and providers. |
|
watch
Package watch is `email watch`: a long-running process that waits for new mail and wakes the agent with one HTTP notification per batch, so the agent spends no tokens while nothing arrives.
|
Package watch is `email watch`: a long-running process that waits for new mail and wakes the agent with one HTTP notification per batch, so the agent spends no tokens while nothing arrives. |