Documentation
¶
Index ¶
- Constants
- func Register(router *mux.Router, service *Service)
- func RegisterMCP(router *mux.Router, service *Service)
- func RegisterWellKnown(router *mux.Router, service *Service)
- func ReleaseHealthProbeHandler() http.Handler
- type AccountDeactivator
- type AccountDeprovisioner
- type CompositeMatrixHistoryReader
- type Config
- type CreateRoomRequest
- type CreateRoomResult
- type DatabaseStore
- type DendriteMatrixSessionIssuer
- type DendriteTransport
- type HTTPMatrixHistoryReader
- type HTTPMatrixProfileResolver
- type InviteUserRequest
- type JoinRoomRequest
- type JoinRoomResult
- type KickUserRequest
- type LeaveRoomRequest
- type MatrixChannelContentReader
- type MatrixHistoryReader
- type MatrixProfileUpdater
- type MatrixSessionIssuer
- type OutputRoomEventConsumer
- type PluginInvokeRequest
- type PluginRunner
- type PluginRunnerOperation
- type PluginStreamEvent
- type PushRuleManager
- type RedactEventRequest
- type RedactEventResult
- type RoomChannel
- type RoomCreatorReader
- type RoomMember
- type RoomStateEvent
- type SendMessageRequest
- type SendMessageResult
- type SendStateEventRequest
- type Service
- func NewService(cfg Config) *Service
- func NewServiceWithStore(ctx context.Context, cfg Config, store Store) (*Service, error)
- func NewServiceWithStoreAndTransport(ctx context.Context, cfg Config, store Store, transport Transport) (*Service, error)
- func NewServiceWithTransport(cfg Config, transport Transport) *Service
- func (s *Service) AccessToken() string
- func (s *Service) AgentToken() string
- func (s *Service) Authenticate(token string) bool
- func (s *Service) Authorize(token, action string) bool
- func (s *Service) BlockedDirectMessage(ctx context.Context, roomID, peerMXID string) (bool, error)
- func (s *Service) DurableMatrixMutationReady() bool
- func (s *Service) Handle(ctx context.Context, action string, params map[string]any) (any, *apiError)
- func (s *Service) InvokeGroupAgentCapability(ctx context.Context, operation string, raw []byte) (any, error)
- func (s *Service) InvokeProductCapability(ctx context.Context, action string, params map[string]any) (any, error)
- func (s *Service) MatrixHistoryAccessToken(ctx context.Context) (string, error)
- func (s *Service) OwnerMXID() string
- func (s *Service) PreparedMatrixMutationStore() dirextalktransport.PreparedMatrixMutationStore
- func (s *Service) ProductCapabilityDatabase() *sql.DB
- func (s *Service) ProjectOutputEvent(ctx context.Context, output roomserverAPI.OutputEvent) error
- func (s *Service) ProjectRoomEvent(ctx context.Context, event *types.HeaderedEvent) error
- func (s *Service) RecordAgentExecutionCompletion(ctx context.Context, receipt dirextalkdomain.AgentExecutionCompletionReceipt) (bool, error)
- func (s *Service) SetAccountDeactivator(deactivator AccountDeactivator)
- func (s *Service) SetAccountDeprovisioner(deprovisioner AccountDeprovisioner)
- func (s *Service) SetMatrixMessageReader(reader matrixMessageReader)
- func (s *Service) SetMatrixProfileResolver(resolver matrixProfileResolver)
- func (s *Service) SetMatrixSessionIssuer(issuer MatrixSessionIssuer)
- func (s *Service) SetProjectorStarted(started bool)
- func (s *Service) SetPushRuleManager(manager PushRuleManager)
- func (s *Service) SetReadMarkerPositionResolver(resolver readMarkerPositionResolver)
- type Store
- type Transport
- type UpdateMemberProfileRequest
Constants ¶
const ( DirextalkRoomTypeDirect = productpolicy.DirextalkRoomTypeDirect DirextalkRoomTypeGroup = productpolicy.DirextalkRoomTypeGroup DirextalkRoomTypeChannel = productpolicy.DirextalkRoomTypeChannel DirextalkRoomTypeSystem = "io.dirextalk.room.system" DirextalkRoomProfileEventType = productpolicy.DirextalkRoomProfileEventType DirextalkMemberPolicyEventType = productpolicy.DirextalkMemberPolicyEventType DirextalkJoinRequestEventType = productpolicy.DirextalkJoinRequestEventType DirextalkChannelPostSettingsEventType = productpolicy.DirextalkChannelPostSettingsEventType DirextalkAgentStatusEventType = "io.dirextalk.agent.status" AgentGatewayContentKey = "io.dirextalk.agent_gateway" AgentGatewaySourceContentKey = "io.dirextalk.gateway_source" )
const GroupAgentAssetsStateEventType = "io.dirextalk.group_agent_assets"
GroupAgentAssetsStateEventType carries the group's servers and delivered artifacts in the room, so every member reads the same view of what this group Agent built and produced.
const GroupAgentMemoryStateEventType = "io.dirextalk.group_agent_memory"
GroupAgentMemoryStateEventType carries the group's own rolling digest in the room, so every member's node holds the same memory of that group.
const GroupAgentSchedulesStateEventType = "io.dirextalk.group_agent_schedules"
GroupAgentSchedulesStateEventType carries the group Agent's schedule list in the room itself. Matrix federates room state to every member's node, so a member on another node reads the same list without any cross-node call.
const PathPrefix = "/_p2p/"
Variables ¶
This section is empty.
Functions ¶
func RegisterMCP ¶
func RegisterWellKnown ¶
func ReleaseHealthProbeHandler ¶ added in v1.1.67
ReleaseHealthProbeHandler exposes the same build metadata handler at its production path without initializing ProductCore dependencies.
Types ¶
type AccountDeactivator ¶
type AccountDeprovisioner ¶
type CompositeMatrixHistoryReader ¶
type CompositeMatrixHistoryReader struct {
// contains filtered or unexported fields
}
func NewCompositeMatrixHistoryReader ¶
func NewCompositeMatrixHistoryReader(messages MatrixHistoryReader, channelContent MatrixChannelContentReader) *CompositeMatrixHistoryReader
func (*CompositeMatrixHistoryReader) ListChannelContent ¶
func (r *CompositeMatrixHistoryReader) ListChannelContent(ctx context.Context, roomID string, limit int) ([]matrixhistory.Event, error)
func (*CompositeMatrixHistoryReader) ListOrdinaryMessages ¶
func (r *CompositeMatrixHistoryReader) ListOrdinaryMessages(ctx context.Context, roomID string, page matrixhistory.Page) (matrixhistory.MessagePageResult, error)
type Config ¶
type Config struct {
ServerName string
Homeserver string
// AccountGeneration is the immutable deployment generation shared with
// Agent and Product Capability mTLS metadata. A deleted/recreated account
// stack must boot with a new value so stale grants cannot cross the fence.
AccountGeneration int64
RemoteNodeInsecureSkipTLSVerify bool
RemoteNodeAllowPrivateBaseURLs bool
P2PEventRetentionMaxRows int64
P2PEventRetentionPruneOnWrite bool
PushRules PushRuleManager
PluginRunner PluginRunner
// NativeAgentVoiceCallbackURL is the HTTPS base URL of the private Agent
// callback listener. In external Native Agent mode public voice callback
// paths are relayed here; they never fall back to a local voice runtime.
NativeAgentVoiceCallbackURL string
NativeAgentVoiceCallbackAuthToken string
NativeAgentVoiceCallbackCAFile string
NativeAgentVoiceCallbackClientCertFile string
NativeAgentVoiceCallbackClientKeyFile string
NativeAgentVoiceCallbackServerName string
NativeAgentVoiceCallbackHTTPClient *http.Client
NativeAgentVoiceCallbackMaxBodyBytes int64
NativeAgentVoiceCallbackTimeout time.Duration
// NativeAgentGrantPrivateKey signs short-lived owner session tickets and
// Product Capability grants. Clients and Agent receive only signed tokens
// or the public verification key.
NativeAgentGrantPrivateKey []byte
ReleaseController releasecontrol.Controller
CentralVersionSource releasecontrol.CentralVersionSource
CentralAgentVersionSource releasecontrol.CentralAgentVersionSource
AgentVersionSource releasecontrol.AgentVersionSource
// AllowAccountDeleteWithoutUpdater is an explicit standalone deployment
// opt-in. Production deployments with an updater keep the fail-closed
// watchdog; isolated local stacks rely on the durable Agent/message-server
// deprovision fences instead of a Unix updater sidecar.
AllowAccountDeleteWithoutUpdater bool
}
type CreateRoomRequest ¶
type CreateRoomRequest = dirextalktransport.CreateRoomRequest
type CreateRoomResult ¶
type CreateRoomResult = dirextalktransport.CreateRoomResult
type DatabaseStore ¶
type DatabaseStore = p2pstorage.DatabaseStore
func NewDatabaseStore ¶
func NewDatabaseStore(ctx context.Context, cm *sqlutil.Connections, dbProperties *config.DatabaseOptions) (*DatabaseStore, error)
func NewUnmigratedDatabaseStore ¶
func NewUnmigratedDatabaseStore(db *sql.DB, writer sqlutil.Writer) *DatabaseStore
type DendriteMatrixSessionIssuer ¶
type DendriteMatrixSessionIssuer = dirextalksession.Issuer
func NewDendriteAccountDeactivator ¶
func NewDendriteAccountDeactivator(userAPI userapi.UserInternalAPI, serverName spec.ServerName) *DendriteMatrixSessionIssuer
func NewDendriteMatrixSessionIssuer ¶
func NewDendriteMatrixSessionIssuer(userAPI userapi.UserInternalAPI, serverName spec.ServerName) *DendriteMatrixSessionIssuer
type DendriteTransport ¶
type DendriteTransport = dendrite.DendriteTransport
func NewDendriteTransport ¶
func NewDendriteTransport(serverName spec.ServerName, keyID gomatrixserverlib.KeyID, privateKey ed25519.PrivateKey, rsAPI roomserverAPI.ClientRoomserverAPI) *DendriteTransport
type HTTPMatrixHistoryReader ¶
type HTTPMatrixHistoryReader = matrixhistory.HTTPMessageReader
type HTTPMatrixProfileResolver ¶
type HTTPMatrixProfileResolver = dirextalkmatrix.HTTPProfileResolver
func NewHTTPMatrixProfileResolver ¶
func NewHTTPMatrixProfileResolver(baseURL string, client *http.Client) *HTTPMatrixProfileResolver
type InviteUserRequest ¶
type InviteUserRequest = dirextalktransport.InviteUserRequest
type JoinRoomRequest ¶
type JoinRoomRequest = dirextalktransport.JoinRoomRequest
type JoinRoomResult ¶
type JoinRoomResult = dirextalktransport.JoinRoomResult
type KickUserRequest ¶
type KickUserRequest = dirextalktransport.KickUserRequest
type LeaveRoomRequest ¶
type LeaveRoomRequest = dirextalktransport.LeaveRoomRequest
type MatrixHistoryReader ¶
type MatrixHistoryReader interface {
ListOrdinaryMessages(ctx context.Context, roomID string, page matrixhistory.Page) (matrixhistory.MessagePageResult, error)
}
type MatrixProfileUpdater ¶
type MatrixSessionIssuer ¶
type OutputRoomEventConsumer ¶
type OutputRoomEventConsumer = projectormodule.OutputRoomEventConsumer
func NewOutputRoomEventConsumer ¶
func NewOutputRoomEventConsumer(process *process.ProcessContext, cfg *config.JetStream, js nats.JetStreamContext, service *Service) *OutputRoomEventConsumer
type PluginInvokeRequest ¶
type PluginInvokeRequest = pluginsmodule.InvokeRequest
type PluginRunner ¶
type PluginRunner = pluginsmodule.Runner
Public aliases preserve Config.PluginRunner and custom runner integrations.
type PluginRunnerOperation ¶
type PluginRunnerOperation = pluginsmodule.RunnerOperation
type PluginStreamEvent ¶
type PluginStreamEvent = pluginsmodule.StreamEvent
type PushRuleManager ¶
type RedactEventRequest ¶
type RedactEventRequest = dirextalktransport.RedactEventRequest
type RedactEventResult ¶
type RedactEventResult = dirextalktransport.RedactEventResult
type RoomChannel ¶
type RoomChannel = dirextalktransport.RoomChannel
type RoomCreatorReader ¶ added in v1.0.6
type RoomCreatorReader = dirextalktransport.RoomCreatorReader
type RoomMember ¶
type RoomMember = dirextalktransport.RoomMember
type RoomStateEvent ¶
type RoomStateEvent = dirextalktransport.RoomStateEvent
type SendMessageRequest ¶
type SendMessageRequest = dirextalktransport.SendMessageRequest
type SendMessageResult ¶
type SendMessageResult = dirextalktransport.SendMessageResult
type SendStateEventRequest ¶
type SendStateEventRequest = dirextalktransport.SendStateEventRequest
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewServiceWithStore ¶
func NewServiceWithTransport ¶
func (*Service) AccessToken ¶
func (*Service) AgentToken ¶
func (*Service) Authenticate ¶
func (*Service) BlockedDirectMessage ¶ added in v1.0.9
BlockedDirectMessage checks the owner's exact contact-and-room block pair.
func (*Service) DurableMatrixMutationReady ¶ added in v1.1.3
func (*Service) InvokeGroupAgentCapability ¶ added in v1.1.72
func (s *Service) InvokeGroupAgentCapability(ctx context.Context, operation string, raw []byte) (any, error)
InvokeGroupAgentCapability is private service work, not a model tool or owner-ticket API. The caller supplies only a persisted request identity; room, sender, owner, generation and Ying identity are server-derived.
func (*Service) InvokeProductCapability ¶ added in v1.1.3
func (s *Service) InvokeProductCapability(ctx context.Context, action string, params map[string]any) (any, error)
InvokeProductCapability is the single ProductCapability SPI used by the external Native Agent gateway. It delegates to the existing ProductCore / Matrix MCP modules, so capability additions do not create another HTTP action or a second persistence model.
func (*Service) MatrixHistoryAccessToken ¶
MatrixHistoryAccessToken remains the public setup callback for the existing owner Matrix history reader.
func (*Service) PreparedMatrixMutationStore ¶ added in v1.1.3
func (s *Service) PreparedMatrixMutationStore() dirextalktransport.PreparedMatrixMutationStore
func (*Service) ProductCapabilityDatabase ¶ added in v1.1.3
ProductCapabilityDatabase exposes the already-migrated shared PostgreSQL handle for durable capability operation records. It is intentionally narrow: capability handlers still use ProductCore/Matrix ports, not this database.
func (*Service) ProjectOutputEvent ¶
func (s *Service) ProjectOutputEvent(ctx context.Context, output roomserverAPI.OutputEvent) error
func (*Service) ProjectRoomEvent ¶
func (*Service) RecordAgentExecutionCompletion ¶ added in v1.1.29
func (s *Service) RecordAgentExecutionCompletion(ctx context.Context, receipt dirextalkdomain.AgentExecutionCompletionReceipt) (bool, error)
RecordAgentExecutionCompletion persists only the minimal Agent completion receipt and the owner realtime invalidation. Result text, artifacts, plan, quote, and AWS resource details remain in Agent authority.
func (*Service) SetAccountDeactivator ¶
func (s *Service) SetAccountDeactivator(deactivator AccountDeactivator)
func (*Service) SetAccountDeprovisioner ¶
func (s *Service) SetAccountDeprovisioner(deprovisioner AccountDeprovisioner)
func (*Service) SetMatrixMessageReader ¶
func (s *Service) SetMatrixMessageReader(reader matrixMessageReader)
func (*Service) SetMatrixProfileResolver ¶
func (s *Service) SetMatrixProfileResolver(resolver matrixProfileResolver)
func (*Service) SetMatrixSessionIssuer ¶
func (s *Service) SetMatrixSessionIssuer(issuer MatrixSessionIssuer)
func (*Service) SetProjectorStarted ¶
func (*Service) SetPushRuleManager ¶
func (s *Service) SetPushRuleManager(manager PushRuleManager)
func (*Service) SetReadMarkerPositionResolver ¶ added in v1.0.4
func (s *Service) SetReadMarkerPositionResolver(resolver readMarkerPositionResolver)
type Store ¶
type Store interface {
dirextalkdomain.GroupAgentStore
operationsmodule.Store
channelsmodule.ContentStore
pluginsmodule.Store
reportsmodule.Store
// contains filtered or unexported methods
}
type Transport ¶
type Transport = dirextalktransport.Transport
type UpdateMemberProfileRequest ¶
type UpdateMemberProfileRequest = dirextalktransport.UpdateMemberProfileRequest
Source Files
¶
- action_registry.go
- consumer.go
- conversation_service.go
- dendrite_transport.go
- events_http.go
- matrix_history_reader.go
- matrix_profile_resolver.go
- matrix_session.go
- mcp_service.go
- plugin_runner.go
- product_capability.go
- product_native.go
- projector.go
- projector_ports.go
- remote_public.go
- routing.go
- service.go
- service_account_delete.go
- service_action_auth.go
- service_agent_api.go
- service_blocks.go
- service_channel_backfill.go
- service_channel_join.go
- service_channels.go
- service_contact_direct_room_adapter.go
- service_group_agent.go
- service_groups.go
- service_helpers.go
- service_member_invites.go
- service_member_mutation.go
- service_member_persistence.go
- service_operation_recovery.go
- service_portal.go
- service_profile_sync.go
- service_release.go
- service_room_reactivation.go
- service_system_report.go
- storage_adapter.go
- transport.go
- voice_relay.go
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
action
Package action owns the shared ProductCore action boundary primitives.
|
Package action owns the shared ProductCore action boundary primitives. |
|
agent
Package agent owns Message Server account controls for the Matrix-backed Online Agent.
|
Package agent owns Message Server account controls for the Matrix-backed Online Agent. |
|
blocks
Package blocks owns ProductCore contact-block actions and block lookups.
|
Package blocks owns ProductCore contact-block actions and block lookups. |
|
calls
Package calls owns ProductCore call-session actions and lifecycle projection.
|
Package calls owns ProductCore call-session actions and lifecycle projection. |
|
channels
Package channels owns ProductCore channel CRUD, listing, lifecycle, and member-count persistence orchestration.
|
Package channels owns ProductCore channel CRUD, listing, lifecycle, and member-count persistence orchestration. |
|
contacts
Package contacts owns contact reads and durable contact-save orchestration.
|
Package contacts owns contact reads and durable contact-save orchestration. |
|
conversation
Package conversation owns ProductCore conversation actions and read-model presentation.
|
Package conversation owns ProductCore conversation actions and read-model presentation. |
|
events
Package events owns the durable ProductCore event stream, sequence allocation, retention, cursor validation, and live waiter notification.
|
Package events owns the durable ProductCore event stream, sequence allocation, retention, cursor validation, and live waiter notification. |
|
groups
Package groups owns ProductCore group CRUD, listing, lifecycle, and policy actions.
|
Package groups owns ProductCore group CRUD, listing, lifecycle, and policy actions. |
|
httpapi
Package httpapi owns the ProductCore and MCP HTTP protocol adapters.
|
Package httpapi owns the ProductCore and MCP HTTP protocol adapters. |
|
mcp
Package mcp adapts Dirextalk product state and Matrix transport to the shared internal/dirextalkmcp capability service.
|
Package mcp adapts Dirextalk product state and Matrix transport to the shared internal/dirextalkmcp capability service. |
|
members
Package members owns shared ProductCore group and channel member reads and lifecycle and policy mutations.
|
Package members owns shared ProductCore group and channel member reads and lifecycle and policy mutations. |
|
operations
Package operations defines durable records for recoverable ProductCore operations.
|
Package operations defines durable records for recoverable ProductCore operations. |
|
plugins
Package plugins owns the non-Agent plugin ProductCore actions, persistence orchestration, invocation validation, and Docker runner boundary.
|
Package plugins owns the non-Agent plugin ProductCore actions, persistence orchestration, invocation validation, and Docker runner boundary. |
|
portal
Package portal owns portal authentication, session rotation, password, and runtime-status ProductCore workflows.
|
Package portal owns portal authentication, session rotation, password, and runtime-status ProductCore workflows. |
|
profile
Package profile owns the owner profile ProductCore workflow and public well-known projection.
|
Package profile owns the owner profile ProductCore workflow and public well-known projection. |
|
projector
Package projector owns roomserver output consumption and projection dispatch.
|
Package projector owns roomserver output consumption and projection dispatch. |
|
registryjson
Package registryjson contains strict JSON primitives for built-in registries.
|
Package registryjson contains strict JSON primitives for built-in registries. |
|
release
Package release owns the ProductCore release status, apply, and client-build reporting workflows.
|
Package release owns the ProductCore release status, apply, and client-build reporting workflows. |
|
reports
Package reports owns report submission, durable report creation, and the related Matrix system-notification projection.
|
Package reports owns report submission, durable report creation, and the related Matrix system-notification projection. |
|
social
Package social owns ProductCore favorite and follow actions.
|
Package social owns ProductCore favorite and follow actions. |