internal/

directory
v0.67.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: MIT

Directories

Path Synopsis
Package access is who may do what: the seeded roles and groups, the checks a resolver makes against a caller's effective permissions, and the one rescue path that bypasses them.
Package access is who may do what: the seeded roles and groups, the checks a resolver makes against a caller's effective permissions, and the one rescue path that bypasses them.
Package addressbook implements authorized contact commands independently of transport.
Package addressbook implements authorized contact commands independently of transport.
Package agent is a person's agent: the worker that does its processing with nobody present, and — in later milestones — the conversation it holds with the person and the tools it reaches everything through.
Package agent is a person's agent: the worker that does its processing with nobody present, and — in later milestones — the conversation it holds with the person and the tools it reaches everything through.
feedback
Package feedback records corrections for subsequent agent work.
Package feedback records corrections for subsequent agent work.
indexed
Package indexed is searching and reading what a person's sources put in front of their agent: the documents a pass read, and the passages they were cut into.
Package indexed is searching and reading what a person's sources put in front of their agent: the documents a pass read, and the passages they were cut into.
reading
Package reading is how far the night has got through what was indexed: one measure that the API, the command line and the knowledge tool share, in a package of its own because the tool cannot import the agent.
Package reading is how far the night has got through what was indexed: one measure that the API, the command line and the knowledge tool share, in a package of its own because the tool cannot import the agent.
tools
Package tools is the agent's tool kit: what a tool is, what a call and a result are, the catalog with its permissions and policy, and the registry every tool package registers into from its own init.
Package tools is the agent's tool kit: what a tool is, what a call and a result are, the catalog with its permissions and policy, and the registry every tool package registers into from its own init.
tools/account
Package account is the person's own account: profile, tokens, sessions, app passwords, and what their permissions let them do.
Package account is the person's own account: profile, tokens, sessions, app passwords, and what their permissions let them do.
tools/agentprofile
Package agentprofile is the agent's own profile, as the person tells it in conversation: what it is called, which language it talks in, and the lines the person wants added to its standing instructions.
Package agentprofile is the agent's own profile, as the person tells it in conversation: what it is called, which language it talks in, and the lines the person wants added to its standing instructions.
tools/all
Package all imports every tool package, so that importing it is importing the catalog.
Package all imports every tool package, so that importing it is importing the catalog.
tools/artifact
Package artifact is what the agent makes for the person to open beside the conversation: a page, a drawing or a document it wrote, kept as a file of the conversation, served to its owner alone and in a sandbox.
Package artifact is what the agent makes for the person to open beside the conversation: a page, a drawing or a document it wrote, kept as a file of the conversation, served to its owner alone and in a sandbox.
tools/askuser
Package askuser is the question to the person, for when the answer changes what happens.
Package askuser is the question to the person, for when the answer changes what happens.
tools/browser
Package browser is the agent's browser: a page in the operator's headless Chrome, signed in as nobody, read as a tree with [ref=N] on everything that can be acted on; or, with target tab, the person's own attached tab, with their session, while they watch.
Package browser is the agent's browser: a page in the operator's headless Chrome, signed in as nobody, read as a tree with [ref=N] on everything that can be acted on; or, with target tab, the person's own attached tab, with their session, while they watch.
tools/calendar
Package calendar is what the agent knows about its person's diary: what they have on, when they are free, and -- asking first -- putting something in.
Package calendar is what the agent knows about its person's diary: what they have on, when they are free, and -- asking first -- putting something in.
tools/coding
Package coding hands a piece of work to a coding agent on the person's own computer.
Package coding hands a piece of work to a coding agent on the person's own computer.
tools/computer
Package computer is the person's own computer, when they attached one with `teanode computer`: a shell to run a command in, and its files to read, write, list and search, as the person, anywhere on it.
Package computer is the person's own computer, when they attached one with `teanode computer`: a shell to run a command in, and its files to read, write, list and search, as the person, anywhere on it.
tools/connected
Package connected is the tool for the servers that speak the Model Context Protocol: what the operator has declared, what this person has connected, and the two steps of setting one up.
Package connected is the tool for the servers that speak the Model Context Protocol: what the operator has declared, what this person has connected, and the two steps of setting one up.
tools/contact
Package contact is the person's address book: the people they keep.
Package contact is the person's address book: the people they keep.
tools/conversation
Package conversation is how the agent reaches what was said before: the other conversations this person has with it, and the transcripts of the runs nobody watched.
Package conversation is how the agent reaches what was said before: the other conversations this person has with it, and the transcripts of the runs nobody watched.
tools/datetime
Package datetime is the agent's time arithmetic: now, a conversion between zones, a duration added, the difference between two times, a phrase such as "next Tuesday 3pm" read in the person's zone.
Package datetime is the agent's time arithmetic: now, a conversion between zones, a duration added, the difference between two times, a phrase such as "next Tuesday 3pm" read in the person's zone.
tools/domain
Package domain is the operator's domains and their delivery: domains, addresses, sending credentials, the queue.
Package domain is the operator's domains and their delivery: domains, addresses, sending credentials, the queue.
tools/folder
Package folder lists and manages a mailbox's folders.
Package folder lists and manages a mailbox's folders.
tools/goal
Package goal is the conversation's standing instruction: the sentence the agent keeps working toward across turns of its own, and the one tool that says where it is with it.
Package goal is the conversation's standing instruction: the sentence the agent keeps working toward across turns of its own, and the one tool that says where it is with it.
tools/knowledge
Package knowledge is the tool for what the person pointed their agent at: their checkout, their chat archive, their notes, their wiki.
Package knowledge is the tool for what the person pointed their agent at: their checkout, their chat archive, their notes, their wiki.
tools/mailact
Package mailact acts on messages: marks, stars, files, junks, trashes.
Package mailact acts on messages: marks, stars, files, junks, trashes.
tools/mailaudit
Package mailaudit is the mail audit as tools: search, one message, its content, marks, and the reports.
Package mailaudit is the mail audit as tools: search, one message, its content, marks, and the reports.
tools/mailbox
Package mailbox is what the mailbox tools share: the person's mailboxes and folders as the API lists them, a conversation and a message's content as the tools read them.
Package mailbox is what the mailbox tools share: the person's mailboxes and folders as the API lists them, a conversation and a message's content as the tools read them.
tools/mailboxsettings
Package mailboxsettings renames a mailbox or sets its signature.
Package mailboxsettings renames a mailbox or sets its signature.
tools/mailcomposehelp
Package mailcomposehelp writes the body of a reply for the person to use, without saving anything.
Package mailcomposehelp writes the body of a reply for the person to use, without saving anything.
tools/maildraft
Package maildraft writes a draft into Drafts for the person to send.
Package maildraft writes a draft into Drafts for the person to send.
tools/mailread
Package mailread reads a message, or the conversation it belongs to, as text the model can weigh.
Package mailread reads a message, or the conversation it belongs to, as text the model can weigh.
tools/mailsearch
Package mailsearch finds messages by words, by meaning where it exists, and by what the agent decided about them.
Package mailsearch finds messages by words, by meaning where it exists, and by what the agent decided about them.
tools/mailsend
Package mailsend sends a draft, with the person's word.
Package mailsend sends a draft, with the person's word.
tools/memory
Package memory is the tool the agent keeps what it knows about the person with: a graph of pages, each addressed by a path, with facts on them and links between them.
Package memory is the tool the agent keeps what it knows about the person with: a graph of pages, each addressed by a path, with facts on them and links between them.
tools/memorycheck
Package memorycheck is the memory check as the agent runs it in conversation: drafting questions from what it remembers about the person, putting them one at a time, and recording what the person says.
Package memorycheck is the memory check as the agent runs it in conversation: drafting questions from what it remembers about the person, putting them one at a time, and recording what the person says.
tools/operator
Package operator is what the operator's tools share: a document run as the person with its answer as a map, and the domains the person manages as the API lists them.
Package operator is what the operator's tools share: a document run as the person with its answer as a map, and the domains the person manages as the API lists them.
tools/people
Package people is the operator's people and access: accounts, groups, roles, and the audit log.
Package people is the operator's people and access: accounts, groups, roles, and the audit log.
tools/replyqueue
Package replyqueue is the replies the agent holds on the person's behalf, and the <pending> overlay that lists them.
Package replyqueue is the replies the agent holds on the person's behalf, and the <pending> overlay that lists them.
tools/rule
Package rule is the mailbox's rules as tools: listed, added, changed, removed, tried and applied.
Package rule is the mailbox's rules as tools: listed, added, changed, removed, tried and applied.
tools/schedule
Package schedule is the tool the agent keeps its own times with: a prompt run on a cron line, at one moment, or a distance from now, in the person's zone, with nobody present.
Package schedule is the tool the agent keeps its own times with: a prompt run on a cron line, at one moment, or a distance from now, in the person's zone, with nobody present.
tools/server
Package server is the server itself: its status, its settings, an upgrade.
Package server is the server itself: its status, its settings, an upgrade.
tools/share
Package share is how the agent hands the person a file: the photo on a message, a file from their computer, something already in the conversation.
Package share is how the agent hands the person a file: the photo on a message, a file from their computer, something already in the conversation.
tools/subscription
Package subscription is the mailing lists a mailbox receives and the ways out of each.
Package subscription is the mailing lists a mailbox receives and the ways out of each.
tools/todo
Package todo is a conversation's task list: the agent's own, laid out when a piece of work has several steps and kept as it goes, so the agent keeps its place and the person watches its progress.
Package todo is a conversation's task list: the agent's own, laid out when a piece of work has several steps and kept as it goes, so the agent keeps its place and the person watches its progress.
tools/toolsearch
Package toolsearch loads tools that are listed but not sent, when the catalog is long: the model names what it wants to do and the matching tools join the request from the next round.
Package toolsearch loads tools that are listed but not sent, when the catalog is long: the model names what it wants to do and the matching tools join the request from the next round.
tools/webfetch
Package webfetch reads a web page as text for the agent: a public one through this server, with the same guarded fetcher the rest of the server uses, or any one through a computer the person attached, on the networks that computer is on.
Package webfetch reads a web page as text for the agent: a public one through this server, with the same guarded fetcher the rest of the server uses, or any one through a computer the person attached, on the networks that computer is on.
tools/websearch
Package websearch asks the search service the operator configured.
Package websearch asks the search service the operator configured.
api
Package api holds what every version of the HTTP API shares: the error values, the request context, and the paths.
Package api holds what every version of the HTTP API shares: the error values, the request context, and the paths.
v1api
Package v1api serves version 1 of the HTTP API, mounted at /api/v1.
Package v1api serves version 1 of the HTTP API, mounted at /api/v1.
v1api/apigraph
Package apigraph implements the GraphQL endpoint, which is the whole of the management API.
Package apigraph implements the GraphQL endpoint, which is the whole of the management API.
v1api/apimail
Package apimail serves a stored message in its original form.
Package apimail serves a stored message in its original form.
v1api/apimedia
Package apimedia stores the pictures an operator puts in a template and serves them to the mail programs that later ask for them.
Package apimedia stores the pictures an operator puts in a template and serves them to the mail programs that later ask for them.
v1api/apioauth
Package apioauth answers the questions a program asks before it has a credential: who authorizes this server, and where do I go to be let in.
Package apioauth answers the questions a program asks before it has a credential: who authorizes this server, and where do I go to be let in.
v1api/apisend
Package apisend implements the endpoint that sends a templated message.
Package apisend implements the endpoint that sends a templated message.
v1api/apisso
Package apisso is the two HTTP paths a single sign-on passes through: the one that sends the browser to the identity provider, and the one it comes back to.
Package apisso is the two HTTP paths a single sign-on passes through: the one that sends the browser to the identity provider, and the one it comes back to.
Package bimi reads the logo a sending domain publishes for its mail.
Package bimi reads the logo a sending domain publishes for its mail.
Package bootstrap reads the settings a server needs before it can read its settings.
Package bootstrap reads the settings a server needs before it can read its settings.
Package browser drives a Chrome the operator runs beside the server, over the DevTools protocol: a fresh, isolated context per run, a page in it, and the few things a model needs — navigate, read the page as a tree it can point into, click, type, scroll, wait, screenshot.
Package browser drives a Chrome the operator runs beside the server, over the DevTools protocol: a fresh, isolated context per run, a page in it, and the few things a model needs — navigate, read the page as a tree it can point into, click, type, scroll, wait, screenshot.
Package calendar knows the iCalendar format, so that nothing else has to.
Package calendar knows the iCalendar format, so that nothing else has to.
commands
Package commands applies authorized calendar changes independently of transport.
Package commands applies authorized calendar changes independently of transport.
Package channel is the primary conversation on a chat app: a person's own bot in Telegram or Discord, run by the server, through which they talk to their agent.
Package channel is the primary conversation on a chat app: a person's own bot in Telegram or Discord, run by the server, through which they talk to their agent.
discord
Package discord is a client for Discord as a personal agent's bot needs it: the gateway websocket for what is said to the bot, and the REST calls to answer.
Package discord is a client for Discord as a personal agent's bot needs it: the gateway websocket for what is said to the bot, and the REST calls to answer.
telegram
Package telegram is a client for Telegram's Bot API, as much of it as a personal agent's bot needs: updates polled, messages sent and edited, typing shown, files fetched and sent, the command menu set.
Package telegram is a client for Telegram's Bot API, as much of it as a personal agent's bot needs: updates polled, messages sent and edited, typing shown, files fetched and sent, the command menu set.
Package client talks to a running TeaNode server's GraphQL API.
Package client talks to a running TeaNode server's GraphQL API.
cmd
Package cmd implements the teanode subcommands.
Package cmd implements the teanode subcommands.
server
Package server implements the subcommands of teanode-server: running the mail server, and the few operations that write the database directly rather than going through a running server.
Package server implements the subcommands of teanode-server: running the mail server, and the few operations that write the database directly rather than going through a running server.
Package computer is the person's own computer as their agent reaches it: the program `teanode computer` runs there, answering the agent's requests over a websocket to the server, as the person, anywhere on the machine, and running what the server sends.
Package computer is the person's own computer as their agent reaches it: the program `teanode computer` runs there, answering the agent's requests over a websocket to the server, as the person, anywhere on the machine, and running what the server sends.
Package config defines the TeaNode configuration and the store that owns it.
Package config defines the TeaNode configuration and the store that owns it.
Package contacts knows the vCard format, so that nothing else has to.
Package contacts knows the vCard format, so that nothing else has to.
Package dav serves a person's address book and their calendar to their phone and their desktop, over CardDAV and CalDAV.
Package dav serves a person's address book and their calendar to their phone and their desktop, over CardDAV and CalDAV.
db
Package db provides the database interface.
Package db provides the database interface.
dbtest
Package dbtest provides test helpers for database operations.
Package dbtest provides test helpers for database operations.
migrations
Package migrations provides database schema migrations.
Package migrations provides database schema migrations.
Package decide asks a question whose answers are known in advance and gets one of them back, without a model writing any prose.
Package decide asks a question whose answers are known in advance and gets one of them back, without a model writing any prose.
Package dns checks that each configured domain publishes the DNS records it needs, and reports what is missing.
Package dns checks that each configured domain publishes the DNS records it needs, and reports what is missing.
Package frontend serves the dashboard, which is compiled into the binary.
Package frontend serves the dashboard, which is compiled into the binary.
Package imap serves mailboxes to mail programs.
Package imap serves mailboxes to mail programs.
Package llm talks to language models and knows nothing about mail.
Package llm talks to language models and knows nothing about mail.
Package mailbox implements authorized mailbox commands independently of their HTTP, agent or other transport adapters.
Package mailbox implements authorized mailbox commands independently of their HTTP, agent or other transport adapters.
Package mailer sends mail on this server's own behalf: a message somebody composed in the dashboard, or a template rendered for an application that called the send endpoint.
Package mailer sends mail on this server's own behalf: a message somebody composed in the dashboard, or a template rendered for an application that called the send endpoint.
Package mcp is a client for servers that speak the Model Context Protocol: the one wire format the model providers, the editors and most services have settled on for "here are my tools, call them".
Package mcp is a client for servers that speak the Model Context Protocol: the one wire format the model providers, the editors and most services have settled on for "here are my tools, call them".
Package mcpserve answers the Model Context Protocol, the other way round from internal/mcp: that package calls out to servers somebody else runs, and this one lets somebody else's program -- a coding harness, an editor -- call in and use what this server can do.
Package mcpserve answers the Model Context Protocol, the other way round from internal/mcp: that package calls out to servers somebody else runs, and this one lets somebody else's program -- a coding harness, an editor -- call in and use what this server can do.
Package models holds the structs shared between the database, the API and the mail path.
Package models holds the structs shared between the database, the API and the mail path.
Package mx implements mail exchange processing.
Package mx implements mail exchange processing.
Package scheduling is invitations by mail.
Package scheduling is invitations by mail.
Package skills is how tools arrive without a release: a skill is a file of declarations, fetched from a registry that signs what it publishes, read as data and carried out by the interpreter here.
Package skills is how tools arrive without a release: a skill is a file of declarations, fetched from a registry that signs what it publishes, read as data and carried out by the interpreter here.
Package sources reads a source type: a YAML file saying how to read one kind of knowledge source, either by naming a reader built into TeaNode or by listing the commands and web requests that list and read it.
Package sources reads a source type: a YAML file saying how to read one kind of knowledge source, either by naming a reader built into TeaNode or by listing the commands and web requests that list and read it.
Package spamfilter is the seam between the server and whatever scores its mail.
Package spamfilter is the seam between the server and whatever scores its mail.
Package sso signs people in through an OpenID Connect identity provider.
Package sso signs people in through an OpenID Connect identity provider.
Package storage keeps the raw bytes of messages the server has handled.
Package storage keeps the raw bytes of messages the server has handled.
Package strainer scores mail for spam inside this server.
Package strainer scores mail for spam inside this server.
Package upgrade tells a running server what has been released since it was built, and replaces it with a newer one when it is asked to.
Package upgrade tells a running server what has been released since it was built, and replaces it with a newer one when it is asked to.
util
aggregate
Package aggregate is the shape a list query takes its filtering, sorting and faceting in.
Package aggregate is the shape a list query takes its filtering, sorting and faceting in.
arc
Package arc implements Authenticated Received Chain (ARC) validation and signing.
Package arc implements Authenticated Received Chain (ARC) validation and signing.
atomicfile
Package atomicfile provides helpers for atomic write-and-rename of files.
Package atomicfile provides helpers for atomic write-and-rename of files.
authres
Package authres parses and formats Authentication-Results
Package authres parses and formats Authentication-Results
autoacme
Package autoacme provides automatic ACME certificate management.
Package autoacme provides automatic ACME certificate management.
bufferpool
Package bufferpool provides a pool of reusable byte buffers.
Package bufferpool provides a pool of reusable byte buffers.
ceremony
Package ceremony parks the state of a challenge-response exchange between its two halves.
Package ceremony parks the state of a challenge-response exchange between its two halves.
clamav
Package clamav provides a client for ClamAV antivirus scanning.
Package clamav provides a client for ClamAV antivirus scanning.
commentparse
Package commentparse parses source code comments and creates a source code comment database.
Package commentparse parses source code comments and creates a source code comment database.
connctx
Package connctx provides helpers to set connection deadlines and watch for cancellation.
Package connctx provides helpers to set connection deadlines and watch for cancellation.
debugutil
Package debugutil provides debug server utilities.
Package debugutil provides debug server utilities.
deferutil
Package deferutil contains the guard every goroutine in this codebase starts with.
Package deferutil contains the guard every goroutine in this codebase starts with.
dkim
Package dkim implements DKIM (DomainKeys Identified Mail) signing and verification.
Package dkim implements DKIM (DomainKeys Identified Mail) signing and verification.
dmarc
Package dmarc implements DMARC as specified in RFC 7489
Package dmarc implements DMARC as specified in RFC 7489
dropper
Package dropper provides IP-based connection dropping using trie lookups.
Package dropper provides IP-based connection dropping using trie lookups.
dropper/trie
Package trie is a path-compressed (PC) trie implementation of the ranger interface inspired by this blog post: https://vincent.bernat.im/en/blog/2017-ipv4-route-lookup-linux
Package trie is a path-compressed (PC) trie implementation of the ranger interface inspired by this blog post: https://vincent.bernat.im/en/blog/2017-ipv4-route-lookup-linux
dsn
Package dsn provides Delivery Status Notification (DSN) generation.
Package dsn provides Delivery Status Notification (DSN) generation.
geoip
Package geoip provides IP geolocation using MaxMind databases.
Package geoip provides IP geolocation using MaxMind databases.
graphapi
Package graphapi provides a GraphQL schema generator using reflection.
Package graphapi provides a GraphQL schema generator using reflection.
mailparse
Package mailparse provides email parsing and canonicalization utilities.
Package mailparse provides email parsing and canonicalization utilities.
periodic
Package periodic provides a standard way to periodically run a handler at a specific time interval.
Package periodic provides a standard way to periodically run a handler at a specific time interval.
ratelimit
Package ratelimit provides token bucket rate limiting.
Package ratelimit provides token bucket rate limiting.
resolver
Package resolver provides DNS resolution with caching.
Package resolver provides DNS resolution with caching.
safefetch
Package safefetch fetches something a stranger named, without letting them choose where this server connects to.
Package safefetch fetches something a stranger named, without letting them choose where this server connects to.
secretbox
Package secretbox encrypts a secret so it can be stored somewhere less trusted than the secret itself — in practice, a column of the database.
Package secretbox encrypts a secret so it can be stored somewhere less trusted than the secret itself — in practice, a column of the database.
security
Package security provides cryptographic utilities for random generation and signing.
Package security provides cryptographic utilities for random generation and signing.
smtpc
Package smtpc implements an SMTP client.
Package smtpc implements an SMTP client.
smtpd
Package smtpd implements a basic SMTP server
Package smtpd implements a basic SMTP server
spamc
Package spamc provides a client for SpamAssassin spam checking.
Package spamc provides a client for SpamAssassin spam checking.
spf
Package spf implements SPF (Sender Policy Framework) lookup and validation.
Package spf implements SPF (Sender Policy Framework) lookup and validation.
templating
Package templating provides template rendering with layout inheritance.
Package templating provides template rendering with layout inheritance.
testmail
Package testmail builds synthetic messages and keys for tests.
Package testmail builds synthetic messages and keys for tests.
Package version reports the build version of the binary.
Package version reports the build version of the binary.
Package web provides the HTTP server and routing infrastructure.
Package web provides the HTTP server and routing infrastructure.

Jump to

Keyboard shortcuts

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