coreapi

package
v0.1.59 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureGoth

func ConfigureGoth(cfg *config.Config)

ConfigureGoth initializes OAuth providers and the cookie session store.

Types

type Options

type Options struct {
	LLMClient                   corellm.Client
	AdminMiddleware             echo.MiddlewareFunc
	UserProvisioner             auth.UserProvisioner
	CoreInstanceID              uuid.UUID
	RuntimeSignalBus            runtime.RuntimeSignalBus
	AgentMetricDirtyStore       agent.AgentMetricDirtyStore
	ExternalExecutionAuthorizer *externalexecution.Authorizer
	RuntimePKI                  *runtimepki.Manager
}

type Services

type Services struct {
	Auth        *auth.Service
	Admin       *coreadmin.Service
	AgentMarket *agent.MarketService
	Agent       *agent.Service
	Skill       *skill.Service
	Runtime     *runtime.Service
	// RuntimeSessions is set only for the narrow attach-only lifecycle so the
	// process can durably detach its Sessions during the Core handoff.
	RuntimeSessions *runtime.RuntimeSessionService
	// RuntimeController owns hijacked Runtime WebSocket lifecycles. The API
	// process drains it before shutting down either HTTP listener.
	RuntimeController *runtime.RuntimeHTTPController
	Webhook           *webhook.Service
	A2A               *a2a.Service
	Workflow          *workflow.Service
	ExternalExecution *externalexecution.Service
	Registry          *registry.Service
	Benchmark         *skill.BenchmarkService
	Task              *task.Service
	MCP               *mcp.Service
	Delivery          *delivery.Service
	UserToken         *usertoken.Service
	UserStatus        auth.UserStatusChecker
	// EventWake is advisory infrastructure. PostgreSQL remains authoritative;
	// selected wait paths use it only to decide when to re-read database facts.
	EventWake  *eventwake.Infrastructure
	RunUpdates *runtime.RunUpdateHub
}

func Register

func Register(rootCtx context.Context, e *echo.Echo, pool *pgxpool.Pool, cfg *config.Config, opts Options) *Services

Register mounts all core-owned HTTP routes and starts core-owned workers.

func RegisterRuntimeAttachOnly added in v0.1.56

func RegisterRuntimeAttachOnly(
	rootCtx context.Context,
	e *echo.Echo,
	pool *pgxpool.Pool,
	cfg *config.Config,
	opts Options,
) *Services

RegisterRuntimeAttachOnly mounts the deliberately narrow Core surface used before a release crosses its producer boundary. This function does not start any application, delivery, workflow, registry, metric, cancellation, Runtime-maintenance, signal, or outbox worker.

type ShutdownFunc

type ShutdownFunc func(context.Context) error

func StartA2AGRPCServer

func StartA2AGRPCServer(rootCtx context.Context, cfg *config.Config, services *Services) (ShutdownFunc, error)

Jump to

Keyboard shortcuts

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