v1

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v1.0.26

type Option func(*svcConfig)

Option configures the Services wiring at construction time.

func WithMomMcpHttpMiddleware added in v1.0.26

func WithMomMcpHttpMiddleware(mcp artel_q.McpName, mw executors.HttpMiddleware) Option

WithMomMcpHttpMiddleware registers an http.RoundTripper middleware scoped to every tool of one MoM on the MoM http executor. Appended to the options passed to mom.New.

func WithMomToolHttpMiddleware added in v1.0.26

func WithMomToolHttpMiddleware(tool artel_q.McpToolName, mw executors.HttpMiddleware) Option

WithMomToolHttpMiddleware registers an http.RoundTripper middleware scoped to one MoM tool ("<mcp>.<tool>") on the MoM http executor. Appended to the options passed to mom.New.

type Services

type Services struct {
	Auth                service.AuthService
	Vault               service.VaultService
	CouchInstance       service.CouchInstanceService
	S3Instance          service.S3InstanceService
	DockerHost          service.DockerHostService
	AdminCouch          service.AdminCouchService
	Mcp                 service.McpService
	Subscription        service.SubscriptionService
	Prompt              service.PromptService
	TaskTracker         service.TaskTrackerService
	Notes               service.NotesService
	AdminUsers          service.AdminUsersService
	AdminSubscriptions  service.AdminSubscriptionsService
	ExternalConnections service.ExternalConnectionService
	Mom                 service.MomService
	PublicDocs          service.PublicDocsService
	SetupWizard         service.SetupWizardService
	AdminSettings       service.AdminSystemSettingsService
	PostgresInstance    service.PostgresInstanceService
	Skills              service.SkillsService
	// Tract is constructed in internal/app/custom.go (not here) — it depends on Mcp and Mom,
	// which must already exist as service.McpService/service.MomService values to compose the
	// tract.ToolExecutor without the tract package importing internal/service/v1/mcp.
	Tract service.TractService
	// Workbench is constructed in internal/app/custom.go (not here) rather than above alongside
	// DockerHost, purely because it composes services.ExternalConnections, which doesn't exist
	// yet mid-construction of this struct literal. Set unconditionally by custom.go.
	Workbench service.WorkbenchService
	// SimpleChat is constructed in internal/app/custom.go (not here) for the same reason as
	// Tract: its agent loop composes the already-built Mcp service to list and execute tools,
	// which isn't available as a service.McpService value mid-construction of this struct.
	SimpleChat service.SimpleChatService
}

func New

func New(repo *pg.Repos, cfg config.EnvironmentConfig, opts ...Option) (*Services, error)

func (*Services) AdminCouchService

func (s *Services) AdminCouchService() service.AdminCouchService

func (*Services) AdminSubscriptionsService

func (s *Services) AdminSubscriptionsService() service.AdminSubscriptionsService

func (*Services) AdminSystemSettingsService

func (s *Services) AdminSystemSettingsService() service.AdminSystemSettingsService

func (*Services) AdminUsersService

func (s *Services) AdminUsersService() service.AdminUsersService

func (*Services) AuthService

func (s *Services) AuthService() service.AuthService

func (*Services) CouchInstanceService

func (s *Services) CouchInstanceService() service.CouchInstanceService

func (*Services) ExternalConnectionService

func (s *Services) ExternalConnectionService() service.ExternalConnectionService

func (*Services) McpService

func (s *Services) McpService() service.McpService

func (*Services) MomService

func (s *Services) MomService() service.MomService

func (*Services) NotesService

func (s *Services) NotesService() service.NotesService

func (*Services) PostgresInstanceService added in v1.0.15

func (s *Services) PostgresInstanceService() service.PostgresInstanceService

func (*Services) PromptService

func (s *Services) PromptService() service.PromptService

func (*Services) PublicDocsService

func (s *Services) PublicDocsService() service.PublicDocsService

func (*Services) S3InstanceService

func (s *Services) S3InstanceService() service.S3InstanceService

func (*Services) SetupWizardService

func (s *Services) SetupWizardService() service.SetupWizardService

func (*Services) SimpleChatService added in v1.0.25

func (s *Services) SimpleChatService() service.SimpleChatService

func (*Services) SkillsService added in v1.0.25

func (s *Services) SkillsService() service.SkillsService

func (*Services) SubscriptionService

func (s *Services) SubscriptionService() service.SubscriptionService

func (*Services) TaskTrackerService

func (s *Services) TaskTrackerService() service.TaskTrackerService

func (*Services) TractService

func (s *Services) TractService() service.TractService

func (*Services) VaultService

func (s *Services) VaultService() service.VaultService

func (*Services) WorkbenchService

func (s *Services) WorkbenchService() service.WorkbenchService

Directories

Path Synopsis
Package adminsettings implements AdminSystemSettingsService — an administrator's view over the same single-row global instance configuration the first-run setup wizard (internal/service/v1/setupwizard) edits pre-setup, exposed post-setup for an admin to revisit.
Package adminsettings implements AdminSystemSettingsService — an administrator's view over the same single-row global instance configuration the first-run setup wizard (internal/service/v1/setupwizard) edits pre-setup, exposed post-setup for an admin to revisit.
Package dockerhosts implements service.DockerHostService: admin CRUD over the pool of Docker daemons that back per-vault workbench containers.
Package dockerhosts implements service.DockerHostService: admin CRUD over the pool of Docker daemons that back per-vault workbench containers.
mcp
Package postgresinstances is the admin CRUD service for the shared pool of Postgres servers (admin pool or BYOK) that per-vault databases are provisioned on — mirrors internal/service/v1/s3instances.
Package postgresinstances is the admin CRUD service for the shared pool of Postgres servers (admin pool or BYOK) that per-vault databases are provisioned on — mirrors internal/service/v1/s3instances.
Package public_docs implements the anonymous, auth-exempt read surface backing PublicDocsAPI (see internal/api/server/artel_api/public_docs_grpc.pb.go's doc comment and docs/architecture.md).
Package public_docs implements the anonymous, auth-exempt read surface backing PublicDocsAPI (see internal/api/server/artel_api/public_docs_grpc.pb.go's doc comment and docs/architecture.md).
githubdocs
Package githubdocs serves the built-in "Artel Quick Start" docs tree straight from this repo's own public GitHub remote (docs/public/ on the master branch), so a fresh Artel instance has something real to point an anonymous /docs visitor at before any CouchDB vault has been published.
Package githubdocs serves the built-in "Artel Quick Start" docs tree straight from this repo's own public GitHub remote (docs/public/ on the master branch), so a fresh Artel instance has something real to point an anonymous /docs visitor at before any CouchDB vault has been published.
Package setupwizard implements the first-run setup wizard — see internal/service/interfaces.go's SetupWizardService doc comment for the flow this drives.
Package setupwizard implements the first-run setup wizard — see internal/service/interfaces.go's SetupWizardService doc comment for the flow this drives.
Package simplechat implements service.SimpleChatService: the in-process, container-free "Simple Chat" agent.
Package simplechat implements service.SimpleChatService: the in-process, container-free "Simple Chat" agent.
Package tasktracker backs the TaskTrackersAPI wire contract (unchanged) on top of the generic external_connections + MoM path instead of a dedicated task_trackers table/client.
Package tasktracker backs the TaskTrackersAPI wire contract (unchanged) on top of the generic external_connections + MoM path instead of a dedicated task_trackers table/client.
script
Package script is the pluggable execution backend for Tract "script" steps.
Package script is the pluggable execution backend for Tract "script" steps.
Package workbench implements service.WorkbenchService: it manages the per-(vault, user) Docker container backing a vault member's cloud workbench — every vault member gets their own workbench, tracked through domain.WorkbenchStatus's state machine, provisioned via internal/clients/workbenchdocker's Docker client.
Package workbench implements service.WorkbenchService: it manages the per-(vault, user) Docker container backing a vault member's cloud workbench — every vault member gets their own workbench, tracked through domain.WorkbenchStatus's state machine, provisioned via internal/clients/workbenchdocker's Docker client.

Jump to

Keyboard shortcuts

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