server

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(
	ctx context.Context,
	tenantID, nodeInstanceID string,
	config *serverapi.Config,
	state *runtimestate.State,
	tracker libtracker.ActivityTracker,
	ps libbus.Messenger,
	dbInstance libdbexec.DBManager,
	tokenizerSvc ollamatokenizer.Tokenizer,
	repo llmrepo.ModelRepo,
	environmentExec taskengine.EnvExecutor,
	hookRepo taskengine.HookRepo,
	hitlSvc hitlservice.Service,
	taskService execservice.TasksEnvService,
	embedService embedservice.Service,
	execService execservice.ExecService,
	taskChainService taskchainservice.Service,
	vfsSvc vfsservice.Service,
	chainVFS vfsservice.Service,
	vfsRoot string,
) (http.Handler, func() error, error)

Build creates the combined HTTP handler (API routes + Beam SPA) without starting a network listener. The returned cleanup func must be called when done. Used by Run (HTTP server) and the Wails desktop entry point.

func Run

func Run(
	ctx context.Context,
	tenantID, nodeInstanceID string,
	config *serverapi.Config,
	state *runtimestate.State,
	tracker libtracker.ActivityTracker,
	ps libbus.Messenger,
	dbInstance libdbexec.DBManager,
	tokenizerSvc ollamatokenizer.Tokenizer,
	repo llmrepo.ModelRepo,
	environmentExec taskengine.EnvExecutor,
	hookRepo taskengine.HookRepo,
	hitlSvc hitlservice.Service,
	taskService execservice.TasksEnvService,
	embedService embedservice.Service,
	execService execservice.ExecService,
	taskChainService taskchainservice.Service,
	vfsSvc vfsservice.Service,
	chainVFS vfsservice.Service,
	vfsRoot string,
) (error, func() error)

Run starts the Contenox server with the given tenant ID and blocks until ctx is cancelled. The server loads its configuration from environment variables (see serverapi.Config). If tenantID is empty, a default local tenant ID is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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