Versions in this module Expand all Collapse all v0 v0.0.4 Mar 16, 2026 Changes in this version + func DecodeParams(raw json.RawMessage, target interface{}) error + func RegisterJSON[T any](r *Registry, method string, ...) + type ArtifactContentRef struct + Data map[string]interface{} + type ArtifactDeleteResult struct + DeletedAudit bool + DeletedFile bool + ID string + type ArtifactPruneResult struct + DeletedFiles int + Kept int + Pruned int + type ArtifactSummary struct + Data map[string]interface{} + type ConfigSaveRequest struct + Config map[string]interface{} + ConfirmRisky bool + Mode string + type ConfigSaveResponse struct + ChangedFields []string + Details interface{} + RequiresConfirm bool + Saved bool + type ConfigService interface + Save func(context.Context, ConfigSaveRequest) (*ConfigSaveResponse, *Error) + View func(context.Context, ConfigViewRequest) (*ConfigViewResponse, *Error) + type ConfigViewRequest struct + IncludeHotReloadInfo bool + Mode string + type ConfigViewResponse struct + Config interface{} + HotReloadFieldDetails []map[string]interface{} + HotReloadFields []string + PrettyText string + RawConfig interface{} + type CronService interface + Get func(context.Context, GetCronJobRequest) (*GetCronJobResponse, *Error) + List func(context.Context, ListCronJobsRequest) (*ListCronJobsResponse, *Error) + Mutate func(context.Context, MutateCronJobRequest) (*MutateCronJobResponse, *Error) + type DeleteNodeArtifactRequest struct + ID string + type DeleteNodeArtifactResponse struct + type DeleteWorkspaceFileRequest struct + Path string + Scope string + type DeleteWorkspaceFileResponse struct + Deleted bool + Path string + type DispatchNodeRequest struct + Action string + Args map[string]interface{} + Mode string + Model string + Node string + Task string + type DispatchNodeResponse struct + Result nodes.Response + type Error struct + Code string + Details interface{} + Message string + Retryable bool + type GetCronJobRequest struct + ID string + type GetCronJobResponse struct + Job interface{} + type GetNodeArtifactRequest struct + ID string + type GetNodeArtifactResponse struct + Artifact map[string]interface{} + Found bool + type HeartbeatNodeRequest struct + ID string + type HeartbeatNodeResponse struct + ID string + type ListCronJobsRequest struct + type ListCronJobsResponse struct + Jobs []interface{} + type ListNodeArtifactsRequest struct + Action string + Kind string + Limit int + Node string + type ListNodeArtifactsResponse struct + ArtifactRetention map[string]interface{} + Items []map[string]interface{} + type ListProviderModelsRequest struct + Provider string + type ListProviderModelsResponse struct + Default string + Models []string + Provider string + type ListWorkspaceFilesRequest struct + Scope string + type ListWorkspaceFilesResponse struct + Files []string + type MethodHandler func(context.Context, json.RawMessage) (interface{}, *Error) + type MutateCronJobRequest struct + Action string + Args map[string]interface{} + type MutateCronJobResponse struct + Result interface{} + type NodeService interface + DeleteArtifact func(context.Context, DeleteNodeArtifactRequest) (*DeleteNodeArtifactResponse, *Error) + Dispatch func(context.Context, DispatchNodeRequest) (*DispatchNodeResponse, *Error) + GetArtifact func(context.Context, GetNodeArtifactRequest) (*GetNodeArtifactResponse, *Error) + Heartbeat func(context.Context, HeartbeatNodeRequest) (*HeartbeatNodeResponse, *Error) + ListArtifacts func(context.Context, ListNodeArtifactsRequest) (*ListNodeArtifactsResponse, *Error) + PruneArtifacts func(context.Context, PruneNodeArtifactsRequest) (*PruneNodeArtifactsResponse, *Error) + Register func(context.Context, RegisterNodeRequest) (*RegisterNodeResponse, *Error) + type ProviderChatRequest struct + Messages []map[string]interface{} + Model string + Options map[string]interface{} + Provider string + Tools []map[string]interface{} + type ProviderChatResponse struct + Content string + FinishReason string + ToolCalls []map[string]interface{} + Usage map[string]interface{} + type ProviderCountTokensRequest struct + Messages []map[string]interface{} + Model string + Options map[string]interface{} + Provider string + Tools []map[string]interface{} + type ProviderCountTokensResponse struct + Usage map[string]interface{} + type ProviderRuntimeActionRequest struct + Action string + OnlyExpiring bool + Provider string + type ProviderRuntimeActionResponse struct + Result map[string]interface{} + type ProviderRuntimeViewRequest struct + ChangesOnly bool + CooldownUntilBeforeSec int + Cursor int + HealthBelow int + Kind string + Limit int + Provider string + Reason string + Sort string + Target string + WindowSec int + type ProviderRuntimeViewResponse struct + View map[string]interface{} + type ProviderService interface + Chat func(context.Context, ProviderChatRequest) (*ProviderChatResponse, *Error) + CountTokens func(context.Context, ProviderCountTokensRequest) (*ProviderCountTokensResponse, *Error) + ListModels func(context.Context, ListProviderModelsRequest) (*ListProviderModelsResponse, *Error) + RuntimeAction func(context.Context, ProviderRuntimeActionRequest) (*ProviderRuntimeActionResponse, *Error) + RuntimeView func(context.Context, ProviderRuntimeViewRequest) (*ProviderRuntimeViewResponse, *Error) + UpdateModels func(context.Context, UpdateProviderModelsRequest) (*UpdateProviderModelsResponse, *Error) + type PruneNodeArtifactsRequest struct + Action string + KeepLatest int + Kind string + Limit int + Node string + type PruneNodeArtifactsResponse struct + type ReadWorkspaceFileRequest struct + Path string + Scope string + type ReadWorkspaceFileResponse struct + Content string + Found bool + Path string + type RegisterNodeRequest struct + Node nodes.NodeInfo + type RegisterNodeResponse struct + ID string + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Handle(ctx context.Context, req Request) (interface{}, *Error) + func (r *Registry) Register(method string, handler MethodHandler) + type Request struct + Method string + Params json.RawMessage + RequestID string + func (r Request) NormalizedMethod() string + type Response struct + Error *Error + OK bool + RequestID string + Result interface{} + type SkillsMutateRequest struct + Action string + Content string + Description string + File string + ID string + IgnoreSuspicious bool + Name string + SystemPrompt string + Tools []string + type SkillsMutateResponse struct + ClawhubPath string + Deleted bool + File string + ID string + Imported []string + Installed string + InstalledOK bool + Name string + Output string + type SkillsService interface + Mutate func(context.Context, SkillsMutateRequest) (*SkillsMutateResponse, *Error) + View func(context.Context, SkillsViewRequest) (*SkillsViewResponse, *Error) + type SkillsViewItem struct + CheckError string + Description string + Enabled bool + ID string + Name string + RemoteFound bool + RemoteVersion string + Source string + SystemPrompt string + Tools []string + UpdateChecked bool + type SkillsViewRequest struct + CheckUpdates bool + File string + Files bool + ID string + type SkillsViewResponse struct + ClawhubInstalled bool + ClawhubPath string + Content string + File string + FilesList []string + ID string + Skills []SkillsViewItem + Source string + type UpdateProviderModelsRequest struct + Model string + Models []string + Provider string + type UpdateProviderModelsResponse struct + Models []string + Provider string + type WorkspaceService interface + DeleteFile func(context.Context, DeleteWorkspaceFileRequest) (*DeleteWorkspaceFileResponse, *Error) + ListFiles func(context.Context, ListWorkspaceFilesRequest) (*ListWorkspaceFilesResponse, *Error) + ReadFile func(context.Context, ReadWorkspaceFileRequest) (*ReadWorkspaceFileResponse, *Error) + WriteFile func(context.Context, WriteWorkspaceFileRequest) (*WriteWorkspaceFileResponse, *Error) + type WriteWorkspaceFileRequest struct + Content string + Path string + Scope string + type WriteWorkspaceFileResponse struct + Path string + Saved bool