pkg/

directory
v0.45.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT

Directories

Path Synopsis
Package agent owns Peen's transport-independent agent runtime.
Package agent owns Peen's transport-independent agent runtime.
Package auditlog adds a durable JSON sink beside the process logger.
Package auditlog adds a durable JSON sink beside the process logger.
Package config loads Peen's deployment configuration from PEEN_ variables.
Package config loads Peen's deployment configuration from PEEN_ variables.
envtemplate
Package envtemplate renders Peen's commented .env file.
Package envtemplate renders Peen's commented .env file.
Package contentblob stores the repeated parts of a JSON document once, by content, and replaces them in the document with short references.
Package contentblob stores the repeated parts of a JSON document once, by content, and replaces them in the document with short references.
Package control owns the control surface's workspace policy and session registry.
Package control owns the control surface's workspace policy and session registry.
client
Package client is the local control client behind Peen's CLI commands.
Package client is the local control client behind Peen's CLI commands.
db
Package db opens Peen's SQLite database, applies its embedded migrations, and wires the generated gorm/gen repositories.
Package db opens Peen's SQLite database, applies its embedded migrations, and wires the generated gorm/gen repositories.
Package events carries typed notices about things that happened which the agent did not directly ask about: a process job ended, a child agent finished, or something outside Peen reported a change.
Package events carries typed notices about things that happened which the agent did not directly ask about: a process job ended, a child agent finished, or something outside Peen reported a change.
Package hooks runs validated layered hook actions at agent lifecycle points.
Package hooks runs validated layered hook actions at agent lifecycle points.
http
api
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
server
Package server exposes Peen's client-facing Serbewr HTTP API.
Package server exposes Peen's client-facing Serbewr HTTP API.
wsapi
Package wsapi holds Peen's generated WebSocket contract types, decoded and validated from api/asyncapi.yaml.
Package wsapi holds Peen's generated WebSocket contract types, decoded and validated from api/asyncapi.yaml.
Package mcptools connects a session's worker to the MCP servers the operator configures, through elelem's mcp package.
Package mcptools connects a session's worker to the MCP servers the operator configures, through elelem's mcp package.
Package memlistener is a net.Listener with no network address.
Package memlistener is a net.Listener with no network address.
Package metrics owns Peen's application Prometheus registry and its bounded runtime collectors.
Package metrics owns Peen's application Prometheus registry and its bounded runtime collectors.
Package metricsstore writes observations to metrics.db and enforces its retention.
Package metricsstore writes observations to metrics.db and enforces its retention.
Package naming holds the shape rule for names Peen invents and owns: tool names, hook event names, and session event types.
Package naming holds the shape rule for names Peen invents and owns: tool names, hook event names, and session event types.
Package nondumpable keeps a Peen process's memory and environment away from other processes that run as the same user.
Package nondumpable keeps a Peen process's memory and environment away from other processes that run as the same user.
Package oneshot runs one turn from the command line and exits.
Package oneshot runs one turn from the command line and exits.
Package pathglob matches slash-separated relative paths against the glob patterns hook matchers and scoped rules share, so one pattern means the same thing in both.
Package pathglob matches slash-separated relative paths against the glob patterns hook matchers and scoped rules share, so one pattern means the same thing in both.
Package publicerror turns an error into text that is safe to show a client.
Package publicerror turns an error into text that is safe to show a client.
Package runtimecontext carries local embedding dependencies across calls.
Package runtimecontext carries local embedding dependencies across calls.
control-api
Package controlapi serves the control surface that control-core opened.
Package controlapi serves the control surface that control-core opened.
control-core
Package controlcore opens the control surface's durable state and runtime.
Package controlcore opens the control surface's durable state and runtime.
Package session owns Peen's durable transport-neutral session transcript.
Package session owns Peen's durable transport-neutral session transcript.
Package worker is the boundary between Peen's control plane and the session-bound processes that actually run work.
Package worker is the boundary between Peen's control plane and the session-bound processes that actually run work.
controlspace
Package controlspace launches a session worker in the control agent space, as a child process of the controller.
Package controlspace launches a session worker in the control agent space, as a child process of the controller.
docker
Package docker launches a session worker as a psyb0t/peen sibling container.
Package docker launches a session worker as a psyb0t/peen sibling container.
dockerproxy
Package dockerproxy is the read-only Docker Engine API proxy behind `docker: readonly`.
Package dockerproxy is the read-only Docker Engine API proxy behind `docker: readonly`.
protocol
Package protocol carries Peen's private, session-bound worker protocol.
Package protocol carries Peen's private, session-bound worker protocol.
run
Package run is the body of the internal `peen worker` command.
Package run is the body of the internal `peen worker` command.
supervisor
Package supervisor owns the lifecycle of one controller's session workers.
Package supervisor owns the lifecycle of one controller's session workers.
workerlog
Package workerlog carries a worker process's log records into the controller's own logging stack.
Package workerlog carries a worker process's log records into the controller's own logging stack.
Package workspacefs supplies the filesystem boundary shared by tools and harness discovery.
Package workspacefs supplies the filesystem boundary shared by tools and harness discovery.

Jump to

Keyboard shortcuts

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