internal/

directory
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0

Directories

Path Synopsis
Package actionexport delivers committed action evidence, never tool requests.
Package actionexport delivers committed action evidence, never tool requests.
Package adminui embeds the built Admin UI (admin-ui/, a Vite + React + TypeScript SPA) into the runkite binary, so `runkite serve` ships one executable with a working dashboard -- no separate deploy step, no Node.js runtime dependency for end users.
Package adminui embeds the built Admin UI (admin-ui/, a Vite + React + TypeScript SPA) into the runkite binary, so `runkite serve` ships one executable with a working dashboard -- no separate deploy step, no Node.js runtime dependency for end users.
Package api: Agent-to-Agent (A2A) delegation -- native sub-agent delegation where an agent calls another agent via the same Agent Protocol API, with real semantics for auth context propagation between agents, recursion limits, and cost attribution.
Package api: Agent-to-Agent (A2A) delegation -- native sub-agent delegation where an agent calls another agent via the same Agent Protocol API, with real semantics for auth context propagation between agents, recursion limits, and cost attribution.
Package auth implements authentication middleware for the Agent Protocol API.
Package auth implements authentication middleware for the Agent Protocol API.
Package bridge implements the gRPC server that runners connect to.
Package bridge implements the gRPC server that runners connect to.
Package config handles loading and parsing langgraph.json.
Package config handles loading and parsing langgraph.json.
Package connector implements the Connector/MCP Registry — pre-authenticated OAuth/MCP sessions for runners without implementing auth flows themselves.
Package connector implements the Connector/MCP Registry — pre-authenticated OAuth/MCP sessions for runners without implementing auth flows themselves.
Package cors implements CORS header handling for the Agent Protocol HTTP surface: a browser-based frontend on a different origin -- the common case, e.g.
Package cors implements CORS header handling for the Agent Protocol HTTP surface: a browser-based frontend on a different origin -- the common case, e.g.
Package credentials coordinates externally issued, short-lived database credentials.
Package credentials coordinates externally issued, short-lived database credentials.
Package cronschedule shares cron parsing between dispatch and advisory previews.
Package cronschedule shares cron parsing between dispatch and advisory previews.
Package customroutes builds the control-plane reverse proxy that mounts a product-owned HTTP app (in-runner ASGI/Node or sidecar) alongside the Agent Protocol API.
Package customroutes builds the control-plane reverse proxy that mounts a product-owned HTTP app (in-runner ASGI/Node or sidecar) alongside the Agent Protocol API.
Package execution defines operator-owned assignment routing boundaries.
Package execution defines operator-owned assignment routing boundaries.
Package finops provides optional model pricebooks and budget caps for run admission (F0) and usage_events USD estimates (F1 foundation).
Package finops provides optional model pricebooks and budget caps for run admission (F0) and usage_events USD estimates (F1 foundation).
Package hooks implements platform event hooks:
Package hooks implements platform event hooks:
Package jsonvalue preserves numbers in scoped application, policy, and opaque catalog JSON without changing unrelated control metadata or typed counters.
Package jsonvalue preserves numbers in scoped application, policy, and opaque catalog JSON without changing unrelated control metadata or typed counters.
Package metrics defines Prometheus metrics for the Runkite control plane.
Package metrics defines Prometheus metrics for the Runkite control plane.
Package models defines the data types for the Agent Protocol spec.
Package models defines the data types for the Agent Protocol spec.
Package pagecursor encodes opaque keyset pagination tokens for Admin list endpoints.
Package pagecursor encodes opaque keyset pagination tokens for Admin list endpoints.
Package policy is the control-plane PolicyProvider: static grants, optional argument predicates on MCP tools/call, and an optional sync webhook gate for connector session mint and MCP tools/call.
Package policy is the control-plane PolicyProvider: static grants, optional argument predicates on MCP tools/call, and an optional sync webhook gate for connector session mint and MCP tools/call.
Package ratelimit implements per-user, per-agent, and per-tenant rate limiting, configurable via langgraph.json's "rate_limit" section.
Package ratelimit implements per-user, per-agent, and per-tenant rate limiting, configurable via langgraph.json's "rate_limit" section.
Package secureheaders adds a small, always-on set of HTTP security headers to every response.
Package secureheaders adds a small, always-on set of HTTP security headers to every response.
Package state defines the StateStore interface for persistent storage of agents, threads, runs, and store items.
Package state defines the StateStore interface for persistent storage of agents, threads, runs, and store items.
conformance
Package conformance provides backend-agnostic test suites for the state.Store interface.
Package conformance provides backend-agnostic test suites for the state.Store interface.
migrate
Package migrate is a small numbered up/down schema migration runner for control-plane state stores and (separately) the pgvector vector store.
Package migrate is a small numbered up/down schema migration runner for control-plane state stores and (separately) the pgvector vector store.
mongo
Package mongo implements the state.Store interface using MongoDB.
Package mongo implements the state.Store interface using MongoDB.
mysql
Package mysql implements the state.Store interface using MySQL -- the second SQL exemplar alongside Postgres/SQLite, using the same conformance suite (internal/state/conformance) as every other backend.
Package mysql implements the state.Store interface using MySQL -- the second SQL exemplar alongside Postgres/SQLite, using the same conformance suite (internal/state/conformance) as every other backend.
postgres
Package postgres implements the state.Store interface using PostgreSQL via pgx.
Package postgres implements the state.Store interface using PostgreSQL via pgx.
sqlcompletion
Package sqlcompletion shares the transactional completion invariant between SQL backends.
Package sqlcompletion shares the transactional completion invariant between SQL backends.
sqlite
Package sqlite implements the state.Store interface using embedded SQLite.
Package sqlite implements the state.Store interface using embedded SQLite.
Package tenant implements multi-tenancy -- a flat tenant_id scope (not a full workspace/org/team hierarchy), threaded through context.Context rather than as an explicit parameter on every state.Store method.
Package tenant implements multi-tenancy -- a flat tenant_id scope (not a full workspace/org/team hierarchy), threaded through context.Context rather than as an explicit parameter on every state.Store method.
Package tracing wires the control plane into OpenTelemetry, giving an OTel observability fan-out (Langfuse, Phoenix, Jaeger, Datadog, any OTLP backend) for free: this package contains almost no custom exporter logic because otlptracegrpc/otlptracehttp already read every standard OTEL_EXPORTER_OTLP_* env var (endpoint, headers for hosted backends' auth tokens, TLS, compression, timeout) per the OTel spec.
Package tracing wires the control plane into OpenTelemetry, giving an OTel observability fan-out (Langfuse, Phoenix, Jaeger, Datadog, any OTLP backend) for free: this package contains almost no custom exporter logic because otlptracegrpc/otlptracehttp already read every standard OTEL_EXPORTER_OTLP_* env var (endpoint, headers for hosted backends' auth tokens, TLS, compression, timeout) per the OTel spec.
Package transport defines the interfaces for job dispatch and event delivery between the control plane and runners.
Package transport defines the interfaces for job dispatch and event delivery between the control plane and runners.
conformance
Package conformance provides transport-agnostic test suites that every JobQueue, EventBroker, and CancelBroker implementation must pass.
Package conformance provides transport-agnostic test suites that every JobQueue, EventBroker, and CancelBroker implementation must pass.
inprocess
Package inprocess provides in-memory implementations of JobQueue, EventBroker, and CancelBroker for conformance testing and local zero-dependency mode.
Package inprocess provides in-memory implementations of JobQueue, EventBroker, and CancelBroker for conformance testing and local zero-dependency mode.
kafka
Package kafkatransport implements transport.JobQueue using Kafka -- JobQueue only, deliberately, unlike NATS's full JobQueue+EventBroker+ CancelBroker triad (see internal/transport/nats's own package doc for why NATS earns the full triad and this doesn't): Kafka has no native pub/sub primitive suited to EventBroker's fan-out-plus-replay shape or CancelBroker's fire-and-forget signal, and bolting one on top of Kafka's own log model would be reinventing a second, unrelated technology rather than using Kafka for what it's actually good at.
Package kafkatransport implements transport.JobQueue using Kafka -- JobQueue only, deliberately, unlike NATS's full JobQueue+EventBroker+ CancelBroker triad (see internal/transport/nats's own package doc for why NATS earns the full triad and this doesn't): Kafka has no native pub/sub primitive suited to EventBroker's fan-out-plus-replay shape or CancelBroker's fire-and-forget signal, and bolting one on top of Kafka's own log model would be reinventing a second, unrelated technology rather than using Kafka for what it's actually good at.
nats
Package natstransport implements the full transport.JobQueue, transport.EventBroker, and transport.CancelBroker triad using NATS JetStream (queue and events) and NATS core pub/sub (cancel signals) -- the same three-interface completeness Redis's own transport package provides.
Package natstransport implements the full transport.JobQueue, transport.EventBroker, and transport.CancelBroker triad using NATS JetStream (queue and events) and NATS core pub/sub (cancel signals) -- the same three-interface completeness Redis's own transport package provides.
redis
Package redistransport implements the transport.JobQueue, transport.EventBroker, and transport.CancelBroker interfaces using Redis.
Package redistransport implements the transport.JobQueue, transport.EventBroker, and transport.CancelBroker interfaces using Redis.
Package vectorstore defines the VectorStore interface for semantic search over embeddings -- None (disabled) by default, pgvector/Qdrant/Weaviate/Pinecone in production.
Package vectorstore defines the VectorStore interface for semantic search over embeddings -- None (disabled) by default, pgvector/Qdrant/Weaviate/Pinecone in production.
conformance
Package conformance provides a backend-agnostic test suite for the vectorstore.VectorStore interface -- every backend (pgvector, Qdrant) runs the exact same tests, so a behavioral difference between them shows up as a test failure, not a surprise in production.
Package conformance provides a backend-agnostic test suite for the vectorstore.VectorStore interface -- every backend (pgvector, Qdrant) runs the exact same tests, so a behavioral difference between them shows up as a test failure, not a surprise in production.
pgvector
Package pgvector implements vectorstore.VectorStore using PostgreSQL's pgvector extension -- the vector/semantic store's Tier 1, stable backend.
Package pgvector implements vectorstore.VectorStore using PostgreSQL's pgvector extension -- the vector/semantic store's Tier 1, stable backend.
pinecone
Package pinecone implements vectorstore.VectorStore using Pinecone's REST API.
Package pinecone implements vectorstore.VectorStore using Pinecone's REST API.
qdrant
Package qdrant implements vectorstore.VectorStore using Qdrant's REST API -- the project's non-SQL exemplar for vector backends, same role Mongo plays for state.Store -- proof the vectorstore.VectorStore interface is implementable against a real standalone vector database, not just pgvector's SQL extension).
Package qdrant implements vectorstore.VectorStore using Qdrant's REST API -- the project's non-SQL exemplar for vector backends, same role Mongo plays for state.Store -- proof the vectorstore.VectorStore interface is implementable against a real standalone vector database, not just pgvector's SQL extension).
weaviate
Package weaviate implements vectorstore.VectorStore using Weaviate's REST + GraphQL APIs -- see internal/vectorstore/qdrant's package doc for the shared design principles (one shared class for every tenant/namespace, deterministic UUID v5 object IDs, plain HTTP rather than a generated client) this package follows too.
Package weaviate implements vectorstore.VectorStore using Weaviate's REST + GraphQL APIs -- see internal/vectorstore/qdrant's package doc for the shared design principles (one shared class for every tenant/namespace, deterministic UUID v5 object IDs, plain HTTP rather than a generated client) this package follows too.

Jump to

Keyboard shortcuts

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