internal/

directory
v0.43.0 Latest Latest
Warning

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

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

Directories

Path Synopsis
pkg
agent
Package agent owns Peen's transport-independent agent runtime.
Package agent owns Peen's transport-independent agent runtime.
auditlog
Package auditlog adds a durable JSON sink beside the process logger.
Package auditlog adds a durable JSON sink beside the process logger.
config
Package config loads Peen's deployment configuration from PEEN_ variables.
Package config loads Peen's deployment configuration from PEEN_ variables.
config/envtemplate
Package envtemplate renders Peen's commented .env file.
Package envtemplate renders Peen's commented .env file.
contentblob
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.
control
Package control owns the control surface's workspace policy and session registry.
Package control owns the control surface's workspace policy and session registry.
control/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.
events
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.
hooks
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.
http/server
Package server exposes Peen's client-facing Serbewr HTTP API.
Package server exposes Peen's client-facing Serbewr HTTP API.
http/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.
mcptools
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.
memlistener
Package memlistener is a net.Listener with no network address.
Package memlistener is a net.Listener with no network address.
metrics
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.
naming
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.
nondumpable
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.
oneshot
Package oneshot runs one turn from the command line and exits.
Package oneshot runs one turn from the command line and exits.
pathglob
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.
publicerror
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.
runtimecontext
Package runtimecontext carries local embedding dependencies across calls.
Package runtimecontext carries local embedding dependencies across calls.
services/control-api
Package controlapi serves the control surface that control-core opened.
Package controlapi serves the control surface that control-core opened.
services/control-core
Package controlcore opens the control surface's durable state and runtime.
Package controlcore opens the control surface's durable state and runtime.
session
Package session owns Peen's durable transport-neutral session transcript.
Package session owns Peen's durable transport-neutral session transcript.
worker
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.
worker/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.
worker/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.
worker/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`.
worker/protocol
Package protocol carries Peen's private, session-bound worker protocol.
Package protocol carries Peen's private, session-bound worker protocol.
worker/run
Package run is the body of the internal `peen worker` command.
Package run is the body of the internal `peen worker` command.
worker/supervisor
Package supervisor owns the lifecycle of one controller's session workers.
Package supervisor owns the lifecycle of one controller's session workers.
worker/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.
workspacefs
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