Documentation
¶
Overview ¶
Package server is the memcode gateway runtime — the first external surface of memcode's event/agent spine. It starts each configured channel, DURABLY records every accepted inbound message before acknowledging the provider, then a worker drains that inbox: each message runs as a detached agent job (crash-isolated subprocess, reusing internal/jobs) and the result is posted back. Gateway activity is logged to the main event store, but an inbound chat message is never turned into a project objective. Coding is one use of this loop, not what it's built around: an inbound message is just a task.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, root string, mainStore store.Store, settings gwconfig.Settings, out io.Writer) error
Run starts every configured surface, then drains the durable inbox until ctx is cancelled. root is the project the agent operates in; mainStore is the project's event log (for gateway_* events); settings holds the non-secret gateway config.
Types ¶
This section is empty.