Documentation
¶
Index ¶
- Constants
- Variables
- func AgentCompactionBudget(selected protocol.ConversationModel, percent uint8) *protocol.ConversationCompactionBudget
- func AgentTurnReviewed(ctx context.Context, db *sql.Conn, turn protocol.TurnID) (bool, error)
- func AppendCanonical(ctx context.Context, db *sql.Conn, session protocol.SessionID, ...) (protocol.ConversationEntry, []protocol.Event, error)
- func ApplyIdentityDirectory(ctx context.Context, db *sql.Conn, source protocol.NodeID, revision uint64, ...) error
- func ApprovedWorkspaceRequest(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) error
- func AssignSessionMemberModel(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (protocol.RoleSnapshot, error)
- func AuthorizeLocalModelRemoval(ctx context.Context, db *sql.Conn, request protocol.Request) error
- func AuthorizePluginRequest(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, ...) (protocol.PluginInfo, error)
- func BackupPlan(ctx context.Context, db *sql.Conn, expected *uint64) (backup.Plan, error)
- func BackupSource(ctx context.Context, db *sql.Conn, node protocol.NodeID, profile string, ...) (backup.Plan, []string, error)
- func BeginApproval(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) (protocol.ConversationApproval, []protocol.Event, error)
- func BeginMCPElicitation(ctx context.Context, db *sql.Conn, record canonical.Record) (protocol.ConversationEntry, protocol.ConversationQuestion, []protocol.Event, ...)
- func BeginQuestion(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) (protocol.ConversationQuestion, []protocol.Event, error)
- func BindTurnAttachments(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) error
- func CallerUser(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID) (protocol.User, error)
- func CancelMCPElicitation(ctx context.Context, db *sql.Conn, id protocol.QuestionID) (protocol.ConversationQuestion, []protocol.Event, error)
- func CanonicalEntry(record canonical.Record, sequence uint64) (protocol.ConversationEntry, error)
- func CaptureCanonicalPayload(ctx context.Context, db *sql.Conn, data json.RawMessage) (canonical.Payload, error)
- func CaptureFileCheckpointsRequest(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) error
- func CapturePluginGeneration(ctx context.Context, db *sql.Conn, node protocol.NodeID, selected string, ...) (protocol.ConversationProvider, protocol.SessionConfig, *protocol.Secret, error)
- func CaptureProvider(ctx context.Context, db *sql.Conn, provider protocol.ConversationProvider) (protocol.ConversationProvider, error)
- func CaptureProviderAuthorization(ctx context.Context, db *sql.Conn, id protocol.ProviderID) (protocol.ConversationProvider, error)
- func CaptureSearchProvider(ctx context.Context, db *sql.Conn, selection protocol.SearchModelConfig) (protocol.ConversationProvider, error)
- func CaptureSessionRoles(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (protocol.RoleSnapshot, error)
- func CapturedPluginCard(ctx context.Context, db *sql.Conn, receipt protocol.PluginCardReceipt) (protocol.PluginInfo, protocol.PluginCardSummary, error)
- func CapturedUser(ctx context.Context, db *sql.Conn) (protocol.UserID, error)
- func CapturedUserFromContext(ctx context.Context) (protocol.UserID, bool)
- func CheckArtifactAccess(ctx context.Context, db *sql.Conn, id protocol.ArtifactID) error
- func CheckChildAccess(ctx context.Context, db *sql.Conn, kind, id string) error
- func CheckControllerLoginWait(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, ...) (protocol.ConversationRun, error)
- func CheckIdentityCreation(ctx context.Context, profile string) error
- func CheckKnowledgeOutcome(ctx context.Context, db *sql.Conn, request protocol.Request, ...) error
- func CheckKnowledgeScope(ctx context.Context, request protocol.Request) error
- func CheckNotificationAccess(ctx context.Context, db *sql.Conn, id protocol.NotificationID) error
- func CheckPluginCardRequest(ctx context.Context, db *sql.Conn, node, _ protocol.NodeID, ...) error
- func CheckPluginConnectionRequest(request protocol.Request, info protocol.PluginInfo) error
- func CheckPluginConnectionTarget(ctx context.Context, db *sql.Conn, scope protocol.PluginContext, ...) error
- func CheckPluginPlanAction(ctx context.Context, db *sql.Conn, request protocol.Request, ...) error
- func CheckPluginRequest(ctx context.Context, db *sql.Conn, request protocol.Request, ...) error
- func CheckProjectAccess(ctx context.Context, db *sql.Conn, id protocol.ProjectID, manage bool) error
- func CheckProviderResource(ctx context.Context, db *sql.Conn, capture ProviderResourceCapture) error
- func CheckSessionAccess(ctx context.Context, db *sql.Conn, id protocol.SessionID) error
- func CheckTerminalAccess(ctx context.Context, db *sql.Conn, id protocol.TerminalID) error
- func CheckTurnAccess(ctx context.Context, db *sql.Conn, id protocol.TurnID) error
- func CheckWorktreeAccess(ctx context.Context, db *sql.Conn, id protocol.WorktreeID) error
- func CheckpointContent(ctx context.Context, db *sql.Conn, session protocol.SessionID, ...) (protocol.ConversationCheckpointContent, error)
- func ClaimHook(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) error
- func ClassifyPeer(ctx context.Context, db *sql.Conn, node, peer protocol.NodeID, hasNode bool) error
- func CollectPlugins(ctx context.Context, db *sql.Conn) (map[string]struct{}, error)
- func CommandBackgroundPending(ctx context.Context, db *sql.Conn, snapshot protocol.ProcessSnapshot) (bool, error)
- func CommandFollowUpAllowed(ctx context.Context, db *sql.Conn, session protocol.SessionID) (bool, error)
- func CompleteConnectorLogin(ctx context.Context, db *sql.Conn, capture ConnectorLoginCapture, ...) (protocol.PluginConnectorConnection, error)
- func CompleteProviderLogin(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) ([]protocol.Event, error)
- func CompleteProviderModelDiscovery(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) ([]protocol.Event, error)
- func CompleteProviderRenewal(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) ([]protocol.Event, error)
- func ConfigureWorkspaceApproval(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) (protocol.ConversationApproval, error)
- func ConnectionBound(ctx context.Context, db *sql.Conn, turn protocol.TurnID) (*protocol.ConnectionResource, error)
- func ConnectionCommand(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) (protocol.Command, error)
- func ConnectionCreated(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) (bool, error)
- func ConnectionOwner(ctx context.Context, db *sql.Conn, turn protocol.TurnID) (protocol.ConversationRun, error)
- func ConnectionPermits(bound *protocol.ConnectionResource, project *protocol.ProjectID, ...) bool
- func ConnectionProjection(ctx context.Context, db *sql.Conn, record ConnectorRecord) (protocol.PluginConnectorConnection, error)
- func ConnectionTrust(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) (protocol.SshTrust, error)
- func Connections(ctx context.Context, db *sql.Conn) ([]protocol.PluginConnectorConnection, error)
- func ConnectorDeclaration(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, ...) (protocol.PluginInfo, protocol.PluginConnectorDeclaration, error)
- func ConnectorDeclarations(info protocol.PluginInfo) []protocol.PluginConnectorDeclaration
- func ConnectorRenewalAt(record ConnectorRecord) *uint64
- func ConnectorTypes(ctx context.Context, db *sql.Conn) ([]protocol.PluginConnectorType, error)
- func ConsumeChildBackground(ctx context.Context, db *sql.Conn, parent protocol.TurnID, ...) ([]protocol.Event, error)
- func ConsumeCommandBackground(ctx context.Context, db *sql.Conn, parent protocol.TurnID, ...) ([]protocol.Event, error)
- func ConsumeStoppedChildren(ctx context.Context, db *sql.Conn, parent protocol.TurnID, ...) ([]protocol.Event, error)
- func ControllerLoginReplacementAvailable(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (bool, error)
- func CreateUser(ctx context.Context, db *sql.Conn, name string) (protocol.User, error)
- func CurrentController(ctx context.Context, db *sql.Conn, node protocol.NodeID) (protocol.NodeID, error)
- func CurrentUser(ctx context.Context, db *sql.Conn) (protocol.User, error)
- func DelegationAvailable(session protocol.Session, turn protocol.QueuedTurn) bool
- func DeliverBackground(ctx context.Context, db *sql.Conn, turn protocol.TurnID, initialNotice bool, ...) (*protocol.ConversationEntry, []protocol.Event, error)
- func DeliverInputBackground(ctx context.Context, db *sql.Conn, turn protocol.TurnID, now time.Time) (*protocol.ConversationEntry, []protocol.Event, error)
- func DetachChildren(ctx context.Context, db *sql.Conn, parent protocol.TurnID, ...) ([]protocol.Event, error)
- func DiscardAttachment(ctx context.Context, db *sql.Conn, caller protocol.NodeID, ...) error
- func DiscardDraftAttachment(ctx context.Context, db *sql.Conn, caller protocol.NodeID, ...) error
- func DispatchJobContext(ctx context.Context, db *sql.Conn, identity protocol.JobID) (context.Context, error)
- func DispatchSettingsChanged(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, ...) ([]protocol.Event, error)
- func DispatchTick(ctx context.Context, db *sql.Conn, node protocol.NodeID, timestamp int64, ...) (dispatcher.Batch, []protocol.Event, error)
- func EffectivePluginMCP(settings ResolvedPluginSettings, declared protocol.PluginMcpConfiguration) (protocol.PluginMcpConfiguration, error)
- func EffectiveTurnCredential(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) (protocol.CredentialRef, error)
- func EventCursor(ctx context.Context, db *sql.Conn) (uint64, error)
- func EventPage(ctx context.Context, db *sql.Conn, node protocol.NodeID, after, through uint64) (uint64, []protocol.EventEnvelope, error)
- func ExecuteAgentCommand(ctx context.Context, db *sql.Conn, node protocol.NodeID, profile string, ...) (protocol.Output, []protocol.Event, error)
- func ExecuteBackgroundCommand(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, ...) (protocol.Output, []protocol.Event, error)
- func ExecuteCommand(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, ...) (protocol.Output, []protocol.Event, error)
- func ExecuteConnectorCommand(ctx context.Context, db *sql.Conn, command protocol.Command, ...) (protocol.Output, error)
- func ExecuteDatabaseCommand(ctx context.Context, db *sql.Conn, command protocol.Command) (protocol.Output, []protocol.Event, error)
- func ExecuteDispatch(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (protocol.Output, []protocol.Event, error)
- func ExecuteDispatchAdmitted(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (protocol.Output, []protocol.Event, error)
- func ExecuteIdentityCommand(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, ...) (protocol.Output, []protocol.Event, error)
- func ExecuteKnowledge(ctx context.Context, db *sql.Conn, request protocol.Request) (protocol.Output, []protocol.Event, error)
- func ExecutePluginStorageCommand(ctx context.Context, db *sql.Conn, node protocol.NodeID, profile string, ...) (protocol.Output, []protocol.Event, error)
- func ExecuteProviderCommand(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (output protocol.Output, changes []protocol.Event, resultErr error)
- func ExecuteSshCommand(ctx context.Context, db *sql.Conn, command protocol.Command) (protocol.Output, []protocol.Event, error)
- func ExecuteTeamCommand(ctx context.Context, db *sql.Conn, command protocol.Command) (protocol.Output, []protocol.Event, error)
- func ExpireApproval(ctx context.Context, db *sql.Conn, id protocol.ApprovalID) (protocol.ConversationApproval, []protocol.Event, error)
- func ExpireQuestion(ctx context.Context, db *sql.Conn, id protocol.QuestionID) (protocol.ConversationQuestion, []protocol.Event, error)
- func FilterPluginDatabases(ctx context.Context, db *sql.Conn, scope protocol.PluginContext, ...) ([]protocol.DatabaseProfile, error)
- func FilterPluginSsh(ctx context.Context, db *sql.Conn, scope protocol.PluginContext, ...) ([]protocol.SshProfile, error)
- func FinishChildBackground(ctx context.Context, db *sql.Conn, child protocol.ConversationRun, ...) ([]protocol.Event, error)
- func FinishCommand(ctx context.Context, db *sql.Conn, finished process.Finished, now time.Time) ([]protocol.Event, error)
- func FinishDispatch(ctx context.Context, db *sql.Conn, identity protocol.JobID, result error, ...) ([]protocol.Event, error)
- func FinishFilesCommand(ctx context.Context, db *sql.Conn, caller protocol.NodeID, ...) ([]protocol.Event, error)
- func FinishHook(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) error
- func FinishQueuedChild(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) ([]protocol.Event, error)
- func FinishRemovedWorktree(ctx context.Context, db *sql.Conn, id protocol.WorktreeID) ([]protocol.Event, error)
- func FinishTurn(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) (protocol.ConversationRun, []protocol.Event, error)
- func FitConversationPage(page *protocol.ConversationPage, extraBytes int) ([]protocol.TurnID, error)
- func ForgetLocalModel(ctx context.Context, db *sql.Conn, id string) (bool, error)
- func ForkPluginConversation(ctx context.Context, db *sql.Conn, source, target protocol.SessionID, ...) error
- func FrozenHooks(ctx context.Context, db *sql.Conn, turn protocol.TurnID) (protocol.HooksSettings, error)
- func GetBlob(ctx context.Context, connection *sql.Conn, digest string) ([]byte, error)
- func GetTurnAttachment(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) (protocol.Attachment, error)
- func GuideChild(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (ChildState, *AgentInvocation, []protocol.Event, error)
- func HoldStoppedCommands(ctx context.Context, db *sql.Conn, session protocol.SessionID) error
- func HostRemovals(ctx context.Context, db *sql.Conn) ([]link.HostRemovalAttempt, error)
- func HydrateCanonicalPayload(ctx context.Context, db *sql.Conn, payload canonical.Payload) (json.RawMessage, error)
- func IdentityPeerRelationships(ctx context.Context, db *sql.Conn) ([]link.PeerRelationship, error)
- func InitializeConfigurationUsers(ctx context.Context, db *sql.Conn) error
- func InitializeIdentity(ctx context.Context, db *sql.Conn) error
- func InsertAttachment(ctx context.Context, db *sql.Conn, caller protocol.NodeID, ...) error
- func InsertDraftAttachment(ctx context.Context, db *sql.Conn, caller protocol.NodeID, ...) error
- func InstallCatalogPlugin(ctx context.Context, db *sql.Conn, info protocol.PluginInfo, ...) (protocol.PluginInfo, error)
- func InstallPlugin(ctx context.Context, db *sql.Conn, info protocol.PluginInfo, ...) (protocol.PluginInfo, error)
- func IsStorageFull(err error) bool
- func KnowledgeExecutionContext(ctx context.Context, db *sql.Conn, stored KnowledgeStored) (context.Context, error)
- func KnowledgePackageFromContext(ctx context.Context) (protocol.PluginInfo, bool)
- func KnowledgeStorageChanged(ctx context.Context, db *sql.Conn, request protocol.Request) (bool, error)
- func KnowledgeStorageCommand(command protocol.Command) bool
- func KnowledgeStorageUnchanged(ctx context.Context, db *sql.Conn, stored KnowledgeStored, ...) (bool, error)
- func LatestAgentPlan(records []canonical.Record) *protocol.ConversationProgress
- func LegacyStorageUser(ctx context.Context, db *sql.Conn) (protocol.UserID, error)
- func LinkAddresses(ctx context.Context, db *sql.Conn) ([]link.EndpointAddress, error)
- func LinkDirections(ctx context.Context, db *sql.Conn) ([]link.PeerTrust, error)
- func LinkPeers(ctx context.Context, db *sql.Conn) ([]protocol.NodeID, error)
- func ListArtifactRevisions(ctx context.Context, db *sql.Conn, id protocol.ArtifactID, before *uint32, ...) (protocol.ArtifactRevisionPage, error)
- func ListArtifacts(ctx context.Context, db *sql.Conn, session protocol.SessionID, ...) (protocol.ArtifactPage, error)
- func ListAssociatedSessions(ctx context.Context, db *sql.Conn, request protocol.Request) (protocol.ConversationAssociationAssociatedSessions, error)
- func ListConversationAssets(ctx context.Context, db *sql.Conn, session protocol.SessionID, ...) (protocol.ConversationAssetsPage, error)
- func ListDatabases(ctx context.Context, db *sql.Conn) ([]protocol.DatabaseProfile, error)
- func ListFileCheckpoints(ctx context.Context, db *sql.Conn, session protocol.SessionID, ...) (protocol.ConversationCheckpointPage, error)
- func ListKnowledgeCollections(ctx context.Context, db *sql.Conn, request protocol.Request) ([]protocol.KnowledgeCollection, error)
- func ListPluginKeys(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, ...) (protocol.PluginStoragePage, error)
- func ListSsh(ctx context.Context, db *sql.Conn) ([]protocol.SshProfile, error)
- func ListSshTerminals(ctx context.Context, db *sql.Conn, profile protocol.SshID, ...) ([]protocol.TerminalInfo, error)
- func ListTurnAttachments(ctx context.Context, db *sql.Conn, turn protocol.TurnID) ([]protocol.Attachment, error)
- func ListUsers(ctx context.Context, db *sql.Conn) ([]protocol.User, error)
- func LoadAgentContext(ctx context.Context, db *sql.Conn, session protocol.SessionID) (canonical.Context, []string, error)
- func LocalModelDefinition(ctx context.Context, db *sql.Conn, id string) (*protocol.ModelsDefinition, error)
- func LocalUser(ctx context.Context, db *sql.Conn) (protocol.User, error)
- func MCPFormSpec(message string, schema json.RawMessage) (protocol.ConversationQuestionSpec, error)
- func MCPSettingsTargets(schema *protocol.PluginSettingsSchema, ...) map[string]string
- func MarkCheckpointRestored(ctx context.Context, db *sql.Conn, id protocol.CheckpointID) error
- func MarkProviderRenewalUncertain(ctx context.Context, db *sql.Conn, provider protocol.ConversationProvider, ...) error
- func MaterializeSemanticSearch(ctx context.Context, db *sql.Conn, request protocol.Request, plan SemanticPlan, ...) (page protocol.PluginStorageSearchPage, stale bool, err error)
- func MediaConfig(provider protocol.ProviderID, name string) protocol.SessionConfig
- func MediaModels(ctx context.Context, db *sql.Conn) ([]protocol.MediaCandidate, error)
- func MigrateHeadlessPeers(ctx context.Context, db *sql.Conn) error
- func NarrowLegacyController(ctx context.Context, db *sql.Conn, peer protocol.NodeID) error
- func NextChildGuidance(ctx context.Context, db *sql.Conn, recipient protocol.TurnID) (*protocol.ConversationRun, []protocol.Event, error)
- func NextCounter(ctx context.Context, connection *sql.Conn, namespace Counter) (uint64, error)
- func OAuthHost(ctx context.Context, db *sql.Conn) (string, error)
- func OAuthRegistration(ctx context.Context, db *sql.Conn, key string) (*string, error)
- func ObserveCommandStop(ctx context.Context, db *sql.Conn, parent protocol.TurnID, ...) ([]protocol.Event, error)
- func OriginalTurnUser(ctx context.Context, db *sql.Conn, turn protocol.TurnID) (protocol.User, error)
- func OrphanedKnowledge(ctx context.Context, db *sql.Conn, catalog []KnowledgeStored) (bool, error)
- func PairIdentityMember(ctx context.Context, db *sql.Conn, node, peer protocol.NodeID, ...) error
- func PairIdentityPeer(ctx context.Context, db *sql.Conn, node, peer protocol.NodeID, ...) error
- func PairLinkPeer(ctx context.Context, db *sql.Conn, peer protocol.NodeID, ...) error
- func PairPeerIdentity(ctx context.Context, db *sql.Conn, node, peer protocol.NodeID, ...) error
- func PendingGuidance(ctx context.Context, db *sql.Conn, recipient protocol.TurnID) (bool, error)
- func PluginConnectionAction(ctx context.Context, db *sql.Conn, request protocol.Request) (protocol.PluginAction, bool, error)
- func PluginModels(ctx context.Context, db *sql.Conn) (protocol.PluginModelsCatalog, error)
- func PluginRecorded(ctx context.Context, db *sql.Conn, name string) (bool, error)
- func PluginRequestPackage(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, ...) (protocol.PluginInfo, error)
- func PluginSearchDefinition(name string) string
- func PluginSearchDefinitions(ctx context.Context, db *sql.Conn) ([]string, error)
- func PluginSettingsBody(ctx context.Context, db *sql.Conn, name string, revision uint64) (json.RawMessage, error)
- func PluginStatusEntries(info protocol.PluginInfo, states []protocol.PluginUiState) []protocol.PluginUiStatusEntry
- func PluginStorageRequestContext(ctx context.Context, db *sql.Conn, request protocol.Request) (context.Context, error)
- func PluginTransactionProviders(ctx context.Context, db *sql.Conn, request protocol.Request) ([]protocol.ProviderID, error)
- func PowerFailed(ctx context.Context, db *sql.Conn, code int64) ([]protocol.Event, error)
- func PrepareBackup(ctx context.Context, db *sql.Conn, profile string, command protocol.Command) error
- func PrepareCheckpointRestore(ctx context.Context, db *sql.Conn, session protocol.SessionID, ...) (protocol.ConversationCheckpointContent, ...)
- func PrepareHostRemoval(ctx context.Context, db *sql.Conn, host protocol.NodeID, ...) (link.HostRemovalAttempt, error)
- func PrepareProviderCommand(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (*providers.Work, error)
- func PrepareRestored(ctx context.Context, staging string, node protocol.NodeID, ...) ([]string, error)
- func PrepareSessionForward(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, ...) (protocol.Request, error)
- func PrepareTurnHunk(ctx context.Context, db *sql.Conn, ...) (files.HunkChange, error)
- func ProbeConnector(ctx context.Context, db *sql.Conn, previous ConnectorRecord, ...) (protocol.PluginConnectorConnection, error)
- func ProjectConnectorConsent(value protocol.PluginConnectorConnection, previous, current *ConnectorBound) protocol.PluginConnectorConnection
- func ProviderRecoveryIdentity(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (string, string, error)
- func PruneDraftAttachments(ctx context.Context, db *sql.Conn, now time.Time) error
- func PruneResourceCatalogSources(ctx context.Context, db *sql.Conn, entry protocol.NodeID, ...) ([]protocol.NodeID, error)
- func PublishArtifactWrite(ctx context.Context, db *sql.Conn, capture ArtifactWrite, digest string) (protocol.Output, error)
- func PublishPlanReview(ctx context.Context, db *sql.Conn, turn protocol.TurnID, now time.Time) (*protocol.ConversationEntry, *protocol.ConversationQuestion, []protocol.Event, ...)
- func PutBlob(ctx context.Context, connection *sql.Conn, data []byte) (string, error)
- func ReadActivityCatalog(ctx context.Context, db *sql.Conn, node protocol.NodeID) (protocol.ActivityCatalog, error)
- func ReadActivityPreviews(ctx context.Context, db *sql.Conn, sessions []protocol.SessionID) ([]protocol.ActivityPreview, error)
- func ReadAgentCommand(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (protocol.Output, error)
- func ReadAgentCommandForCaller(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, ...) (protocol.Output, error)
- func ReadAgentReference(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (json.RawMessage, error)
- func ReadAgentRun(ctx context.Context, db *sql.Conn, turn protocol.TurnID) (protocol.ConversationRun, error)
- func ReadAgentStatistics(ctx context.Context, db *sql.Conn, session protocol.SessionID) (protocol.ConversationStatistics, error)
- func ReadApproval(ctx context.Context, db *sql.Conn, id protocol.ApprovalID) (protocol.ConversationApproval, error)
- func ReadArtifactCommand(ctx context.Context, db *sql.Conn, request protocol.Request) (protocol.Output, error)
- func ReadAssistantDeclaration(ctx context.Context, db *sql.Conn, binding protocol.PluginConversationBinding) (protocol.PluginConversationDeclaration, error)
- func ReadAttachment(ctx context.Context, db *sql.Conn, worktree protocol.WorktreeID, ...) (protocol.Attachment, error)
- func ReadBackgroundTasks(ctx context.Context, db *sql.Conn, session protocol.SessionID) ([]protocol.ConversationBackgroundTask, error)
- func ReadBackupSettings(ctx context.Context, db *sql.Conn) (protocol.BackupSettings, error)
- func ReadCanonicalImage(ctx context.Context, db *sql.Conn, session protocol.SessionID, ...) ([]byte, error)
- func ReadChildRole(ctx context.Context, db *sql.Conn, turn protocol.TurnID) (*protocol.RoleProfile, error)
- func ReadCodeIndexSettings(ctx context.Context, db *sql.Conn) (protocol.CodeIndexSettings, error)
- func ReadCompaction(ctx context.Context, db *sql.Conn) (protocol.ConversationCompactionSettings, error)
- func ReadConfigurationCache(ctx context.Context, db *sql.Conn, category, id string) (json.RawMessage, bool, error)
- func ReadConfigurationFollow(ctx context.Context, db *sql.Conn) (protocol.ConfigurationFollowStatus, error)
- func ReadConversation(ctx context.Context, db *sql.Conn, session protocol.SessionID, ...) (protocol.ConversationHistory, error)
- func ReadConversationTurn(ctx context.Context, db *sql.Conn, session protocol.SessionID, ...) (protocol.ConversationTurnHistory, error)
- func ReadDatabase(ctx context.Context, db *sql.Conn, id protocol.DatabaseID) (*protocol.DatabaseProfile, error)
- func ReadDefaults(ctx context.Context, db *sql.Conn) (protocol.Defaults, error)
- func ReadDispatchTurn(ctx context.Context, db *sql.Conn, node protocol.NodeID, packageName string, ...) (protocol.TurnID, error)
- func ReadDraftAttachment(ctx context.Context, db *sql.Conn, caller protocol.NodeID, ...) (protocol.Attachment, error)
- func ReadFilesCommand(ctx context.Context, db *sql.Conn, caller protocol.NodeID, ...) (protocol.Output, error)
- func ReadHooks(ctx context.Context, db *sql.Conn) (protocol.HooksSettings, error)
- func ReadIdentity(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID) (protocol.IdentityState, error)
- func ReadIdentityCommand(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, ...) (protocol.Output, error)
- func ReadIdentityDirectory(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID) (protocol.HostDirectory, error)
- func ReadLocalModelSettings(ctx context.Context, db *sql.Conn) (protocol.ModelsLocalSettings, error)
- func ReadMediaSettings(ctx context.Context, db *sql.Conn) (protocol.MediaSettings, error)
- func ReadNetworkSelection(ctx context.Context, db *sql.Conn) (uint64, *protocol.NetworkSelection, error)
- func ReadNotifications(ctx context.Context, db *sql.Conn) ([]protocol.NotificationNotice, error)
- func ReadPlugin(ctx context.Context, db *sql.Conn, name string) (*protocol.PluginInfo, error)
- func ReadPluginCommand(ctx context.Context, db *sql.Conn, request protocol.Request) (protocol.Output, error)
- func ReadPluginConnection(ctx context.Context, db *sql.Conn, profile string, ...) (protocol.PluginConnectionStatus, error)
- func ReadPluginConnectionAdmitted(ctx context.Context, db *sql.Conn, profile string, info protocol.PluginInfo, ...) (protocol.PluginConnectionStatus, error)
- func ReadPluginConversationValue(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, ...) (protocol.PluginStorageConversationEntry, error)
- func ReadPluginInfos(ctx context.Context, db *sql.Conn) ([]protocol.PluginInfo, error)
- func ReadPluginSettings(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, ...) (protocol.PluginSettingsState, error)
- func ReadPluginStatusPackages(ctx context.Context, db *sql.Conn, scope protocol.PluginUiStatusScope) ([]protocol.PluginInfo, error)
- func ReadPluginValue(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, ...) (protocol.PluginStorageEntry, error)
- func ReadPluginVersion(ctx context.Context, db *sql.Conn, reference protocol.PluginReference) (protocol.PluginInfo, error)
- func ReadPlugins(ctx context.Context, db *sql.Conn) ([]protocol.PluginSummary, error)
- func ReadPower(ctx context.Context, db *sql.Conn) (protocol.PowerSettings, error)
- func ReadProjects(ctx context.Context, db *sql.Conn) ([]protocol.Project, error)
- func ReadProviderAuthorization(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (*protocol.Secret, error)
- func ReadProviderCatalogStatus(ctx context.Context, db *sql.Conn) (protocol.ConversationCatalogStatus, error)
- func ReadProviderCommand(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (protocol.Output, error)
- func ReadProviderSnapshot(ctx context.Context, db *sql.Conn, node protocol.NodeID) ([]protocol.ConversationProvider, []protocol.ConversationQuotaSnapshot, error)
- func ReadPythonSettings(ctx context.Context, db *sql.Conn) (protocol.PythonSettings, error)
- func ReadQuestion(ctx context.Context, db *sql.Conn, id protocol.QuestionID) (protocol.ConversationQuestion, error)
- func ReadQueue(ctx context.Context, db *sql.Conn, session protocol.SessionID) (protocol.ConversationQueue, error)
- func ReadResourceCatalogSources(ctx context.Context, db *sql.Conn, entry protocol.NodeID) ([]protocol.ResourceSource, error)
- func ReadRoles(ctx context.Context, db *sql.Conn) ([]protocol.RoleProfile, error)
- func ReadRuntimeProviderCredential(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (*protocol.Secret, error)
- func ReadSandboxSettings(ctx context.Context, db *sql.Conn) (protocol.SandboxSettings, error)
- func ReadSearchSettings(ctx context.Context, db *sql.Conn) (protocol.SearchSettings, error)
- func ReadSession(ctx context.Context, db *sql.Conn, id protocol.SessionID) (protocol.Session, error)
- func ReadSessions(ctx context.Context, db *sql.Conn) ([]protocol.Session, error)
- func ReadSsh(ctx context.Context, db *sql.Conn, id protocol.SshID, revision uint64) (protocol.SshProfile, protocol.SshCredential, error)
- func ReadTeamCommand(ctx context.Context, db *sql.Conn, command protocol.Command) (protocol.Output, error)
- func ReadTeamSettings(ctx context.Context, db *sql.Conn) (protocol.TeamSettings, error)
- func ReadTeams(ctx context.Context, db *sql.Conn) ([]protocol.TeamProfile, error)
- func ReadTelemetry(ctx context.Context, db *sql.Conn) (protocol.TelemetrySettings, error)
- func ReadTerminal(ctx context.Context, db *sql.Conn, id protocol.TerminalID) (protocol.TerminalInfo, error)
- func ReadTerminalSettings(ctx context.Context, db *sql.Conn) (protocol.TerminalSettings, error)
- func ReadTerminals(ctx context.Context, db *sql.Conn) ([]protocol.TerminalInfo, error)
- func ReadTurnDiff(ctx context.Context, db *sql.Conn, session protocol.SessionID, ...) (protocol.ConversationCheckpointTurnDiff, error)
- func ReadTurnHunks(ctx context.Context, db *sql.Conn, session protocol.SessionID, ...) (protocol.ConversationCheckpointHunkReview, error)
- func ReadWebSearchPlan(ctx context.Context, db *sql.Conn) (web.SearchPlan, error)
- func ReadWorkspaceRoot(ctx context.Context, db *sql.Conn, worktree protocol.WorktreeID, internal bool) (string, error)
- func ReadWorktrees(ctx context.Context, db *sql.Conn) ([]protocol.Worktree, error)
- func ReconcileProviderQuotas(ctx context.Context, db *sql.Conn, node protocol.NodeID) ([]protocol.Event, error)
- func RecordBackupOutcome(ctx context.Context, db *sql.Conn, outcome protocol.BackupOutcome) error
- func RecordConnectionSave(ctx context.Context, db *sql.Conn, request protocol.Request) error
- func RecordEvents(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) ([]protocol.EventEnvelope, error)
- func RecordHostRemoval(ctx context.Context, db *sql.Conn, host protocol.NodeID, ...) error
- func RecordKnowledgeProgress(ctx context.Context, db *sql.Conn, id protocol.KnowledgeID, generation uint64, ...) (bool, error)
- func RecordPluginStatusDiagnostic(ctx context.Context, db *sql.Conn, ...) ([]protocol.Event, error)
- func RecoverCommands(ctx context.Context, db *sql.Conn, now time.Time) ([]protocol.Event, error)
- func RecoverConnectorLogins(ctx context.Context, db *sql.Conn) error
- func RecoverCredentialRenewals(ctx context.Context, db *sql.Conn, node protocol.NodeID) error
- func RecoverRuns(ctx context.Context, db *sql.Conn, now time.Time) ([]protocol.Event, error)
- func RecoverTerminals(ctx context.Context, db *sql.Conn) error
- func RefreshEventAccess(ctx context.Context, db *sql.Conn, event protocol.EventEnvelope) (protocol.EventEnvelope, error)
- func RefreshTurnRoles(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) error
- func RegisterChildBackground(ctx context.Context, db *sql.Conn, parent, child protocol.ConversationRun, ...) ([]protocol.Event, error)
- func RegisterCommand(ctx context.Context, db *sql.Conn, request protocol.Request, now time.Time) ([]protocol.Event, error)
- func RegisterCreatedWorktree(ctx context.Context, db *sql.Conn, value protocol.Worktree, adopt bool) (protocol.Worktree, []protocol.Event, error)
- func RegisterKnowledgeSemantic(ctx context.Context, db *sql.Conn) (bool, error)
- func RegisterLocalModel(ctx context.Context, db *sql.Conn, capabilities localmodels.Capabilities, ...) (protocol.Output, []protocol.Event, error)
- func RegisterPromotedCommand(ctx context.Context, db *sql.Conn, request protocol.Request, now time.Time) ([]protocol.Event, error)
- func ReleaseBackground(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) ([]protocol.Event, error)
- func ReleaseChildren(ctx context.Context, db *sql.Conn, parent protocol.TurnID, ...) ([]protocol.Event, error)
- func RelocateProfile(ctx context.Context, db *sql.Conn, original, target string) error
- func RememberIdentityPeerName(ctx context.Context, db *sql.Conn, peer protocol.NodeID, name string) error
- func RememberLinkPeer(ctx context.Context, db *sql.Conn, address link.EndpointAddress) error
- func RemovePlugin(ctx context.Context, db *sql.Conn, name string, expectedRevision uint64) (protocol.PluginSummary, error)
- func RemovePluginValue(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, ...) (protocol.PluginStorageEntry, error)
- func RemoveResourceCatalogSource(ctx context.Context, db *sql.Conn, source protocol.NodeID) error
- func RemovedArtifactOwners(ctx context.Context, db *sql.Conn) ([]protocol.SessionID, error)
- func ResolveMediaBinding(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (model.Binding, error)
- func ResolvePluginInfo(ctx context.Context, db *sql.Conn, reference protocol.PluginReference) (protocol.PluginInfo, error)
- func ResolvePluginMessageCommand(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (*protocol.Request, error)
- func ResolvePluginModel(ctx context.Context, db *sql.Conn, selected string, effort *protocol.Effort, ...) (protocol.ConversationProvider, protocol.SessionConfig, error)
- func ResolvePluginStatusScope(ctx context.Context, db *sql.Conn, scope protocol.PluginUiStatusScope) (protocol.PluginUiStatusScope, error)
- func ResolvePluginViewInfo(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, ...) (protocol.PluginInfo, error)
- func ResolveSearchBinding(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (model.Binding, error)
- func ResolveToolCommandStream(ctx context.Context, db *sql.Conn, caller protocol.NodeID, ...) (protocol.SessionID, protocol.RequestID, error)
- func ResolveTurnAttachment(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) (protocol.Attachment, error)
- func ResolveUser(ctx context.Context, db *sql.Conn, id protocol.UserID) (protocol.User, error)
- func RestorePluginConversation(ctx context.Context, db *sql.Conn, session protocol.SessionID) error
- func RetainedAttachments(ctx context.Context, db *sql.Conn) (map[protocol.AttachmentID]bool, error)
- func RetireImportedPeerRoutes(ctx context.Context, db *sql.Conn) error
- func RevokeIdentityDevice(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, ...) error
- func RewindPluginConversation(ctx context.Context, db *sql.Conn, session protocol.SessionID, ...) error
- func RuntimeCredentialEvent(event string) bool
- func SameKnowledgeStored(left, right KnowledgeStored) bool
- func SaveBackupSettings(ctx context.Context, db *sql.Conn, input protocol.BackupUpdate, ...) (protocol.BackupSettings, []protocol.Event, error)
- func SaveCodeIndexSettings(ctx context.Context, db *sql.Conn, input protocol.CodeIndexSettings, ...) (protocol.CodeIndexSettings, error)
- func SaveDefaults(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (protocol.Defaults, error)
- func SaveHooks(ctx context.Context, db *sql.Conn, input protocol.HooksSettings, ...) (protocol.HooksSettings, error)
- func SaveLocalModelSettings(ctx context.Context, db *sql.Conn, settings protocol.ModelsLocalSettings) (protocol.Output, []protocol.Event, error)
- func SaveNetworkSelection(ctx context.Context, db *sql.Conn, expected uint64, ...) (uint64, error)
- func SaveOAuthRegistration(ctx context.Context, db *sql.Conn, key, client string) error
- func SavePluginMCP(ctx context.Context, db *sql.Conn, input protocol.CommandSavePluginMcpPayload, ...) (protocol.PluginInfo, error)
- func SavePluginSettings(ctx context.Context, db *sql.Conn, ...) (protocol.PluginSettingsState, error)
- func SavePythonSettings(ctx context.Context, db *sql.Conn, input protocol.PythonSettings) (protocol.Output, []protocol.Event, error)
- func SaveResourceCatalogSource(ctx context.Context, db *sql.Conn, entry protocol.NodeID, ...) error
- func SaveSandboxSettings(ctx context.Context, db *sql.Conn, input protocol.SandboxSettings) (protocol.SandboxSettings, error)
- func SaveSearchSettings(ctx context.Context, db *sql.Conn, request protocol.Request, ...) (protocol.Output, []protocol.Event, error)
- func SaveStandaloneMCPSettings(ctx context.Context, db *sql.Conn, info protocol.PluginInfo, ...) (protocol.PluginInfo, error)
- func SaveTerminal(ctx context.Context, db *sql.Conn, value protocol.TerminalInfo, event bool) ([]protocol.Event, error)
- func SaveTerminalSettings(ctx context.Context, db *sql.Conn, input protocol.TerminalSettings) (protocol.TerminalSettings, []protocol.Event, error)
- func ScheduleBackground(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (*protocol.QueuedTurn, []protocol.Event, error)
- func SearchPluginValues(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, ...) (protocol.PluginStorageSearchPage, error)
- func SearchSettingsController(request protocol.Request) bool
- func SelectSessionRoles(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (protocol.RoleSnapshot, error)
- func SetIdentityPeerDirection(ctx context.Context, db *sql.Conn, peer protocol.NodeID, ...) error
- func SetLinkDirection(ctx context.Context, db *sql.Conn, peer protocol.NodeID, ...) error
- func SetLinkTrust(ctx context.Context, db *sql.Conn, peer protocol.NodeID, trusted bool) error
- func SetPluginEnabled(ctx context.Context, db *sql.Conn, name string, expectedRevision uint64, ...) (protocol.PluginInfo, error)
- func SetPluginMCPAllowed(ctx context.Context, db *sql.Conn, ...) (protocol.PluginInfo, error)
- func SetPluginPinned(ctx context.Context, db *sql.Conn, name string, expectedRevision uint64, ...) (protocol.PluginInfo, error)
- func SetRunCredentialWait(ctx context.Context, db *sql.Conn, node protocol.NodeID, turn protocol.TurnID, ...) ([]protocol.Event, error)
- func SettleStoppedChildren(ctx context.Context, db *sql.Conn, now time.Time) ([]protocol.Event, error)
- func Snapshot(ctx context.Context, db *sql.Conn, node protocol.NodeID) (protocol.Snapshot, error)
- func StallCommand(ctx context.Context, db *sql.Conn, stalled process.Stalled, now time.Time) ([]protocol.Event, bool, error)
- func StartConnectorLogin(ctx context.Context, db *sql.Conn, capture ConnectorLoginCapture) error
- func StartSessionProvider(ctx context.Context, db *sql.Conn, draft protocol.ConversationStart) (protocol.ProviderID, error)
- func StopChild(ctx context.Context, db *sql.Conn, parent protocol.TurnID, ...) (protocol.ConversationRun, []protocol.Event, error)
- func SupportsAgentCommand(kind string) bool
- func SupportsFilesCommand(kind string) bool
- func SupportsProviderCommand(kind string) bool
- func SupportsTeamCommand(kind string) bool
- func SupportsTeamRead(kind string) bool
- func UserFromContext(ctx context.Context) (protocol.User, bool)
- func ValidAgentProgress(value protocol.ConversationProgress) bool
- func ValidateConnectionTrust(ctx context.Context, db *sql.Conn, turn protocol.TurnID, ...) error
- func ValidateMCPElicitation(ctx context.Context, db *sql.Conn, record canonical.Record) error
- func ValidatePluginStatusStates(info protocol.PluginInfo, value json.RawMessage) ([]protocol.PluginUiState, error)
- func ValidateProjectDraft(value protocol.ProjectsDraft) error
- func ValidateRole(role protocol.RoleProfile) error
- func ValidateTeam(team protocol.TeamProfile) error
- func ViewCodeIndexSettings(ctx context.Context, db *sql.Conn) (protocol.CodeIndexSettings, error)
- func WithCapturedUser(ctx context.Context, user protocol.UserID) context.Context
- func WithKnowledgePackage(ctx context.Context, info protocol.PluginInfo) context.Context
- func WithKnowledgeScope(ctx context.Context, scope *protocol.ResourceScope) (context.Context, error)
- func WithUser(ctx context.Context, user protocol.User) context.Context
- func WritePluginConversationValue(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, ...) (protocol.PluginStorageConversationEntry, error)
- func WritePluginValue(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, ...) (protocol.PluginStorageEntry, error)
- type AgentGuidance
- type AgentHistorySource
- type AgentInstruction
- type AgentInvocation
- func ClaimChild(ctx context.Context, db *sql.Conn, turn protocol.TurnID, now time.Time) (*AgentInvocation, []protocol.Event, error)
- func ClaimNext(ctx context.Context, db *sql.Conn, now time.Time) (*AgentInvocation, []protocol.Event, error)
- func DelegateAgent(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (AgentInvocation, []protocol.Event, error)
- func DelegatePrepared(ctx context.Context, db *sql.Conn, node protocol.NodeID, ...) (AgentInvocation, []protocol.Event, error)
- type AgentReviewChange
- type AgentState
- type ApprovalBinding
- type ArtifactRead
- type ArtifactWrite
- type AutomaticChain
- type BackgroundRecord
- type ChildState
- type Closed
- type ConnectionAction
- type ConnectionActionKind
- type ConnectionCatalog
- type ConnectionDatabaseInput
- type ConnectionInspection
- type ConnectionSshInput
- type ConnectionStatus
- type ConnectorBound
- type ConnectorLoginCapture
- type ConnectorRecord
- func ConnectorAuthorization(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, ...) (ConnectorRecord, protocol.PluginConnectorDeclaration, error)
- func ReadConnectorRecord(ctx context.Context, db *sql.Conn, id protocol.PluginConnectorID) (ConnectorRecord, error)
- func SaveConnectorGrant(ctx context.Context, db *sql.Conn, previous ConnectorRecord, ...) (ConnectorRecord, error)
- type Counter
- type CredentialRenewal
- type DatabaseBrowse
- type DatabaseOperation
- type DatabaseQuery
- type DatabaseTunnel
- type Exclusive
- type Handle
- func (handle *Handle) Close() error
- func (handle *Handle) Exclusive(ctx context.Context) (*Exclusive, error)
- func (handle *Handle) Path() string
- func (handle *Handle) Pause(ctx context.Context) (*Closed, error)
- func (handle *Handle) Read(ctx context.Context, callback func(*sql.Conn) error) error
- func (handle *Handle) Write(ctx context.Context, callback func(*sql.Conn) error) error
- type KnowledgeCapture
- type KnowledgeSource
- type KnowledgeStoragePage
- type KnowledgeStorageRecord
- type KnowledgeStored
- type LocalModelCatalog
- type MediaAssignment
- type MediaCapture
- type Pinned
- type PluginValueRank
- type PreparedPaths
- type ProjectRemoval
- type ProviderLoginCapture
- type ProviderRenewal
- type ProviderResourceCapture
- type ResolvedPluginSettings
- type SemanticPlan
- type SemanticSelection
- type SemanticStamp
- type SessionLeftover
- type Store
- type SubagentListOptions
- type SubagentPage
- type SubagentSummary
- type TurnFacts
- type TurnTokens
- type WorkspaceGitCapture
Constants ¶
const ChildTurnLimitSummary = "Stopped at its action limit before finishing; guide_agent can continue it."
ChildTurnLimitSummary accompanies the potentially partial child response.
const KnowledgeStoragePageLimit = 16
KnowledgeStoragePageLimit bounds the plugin values of one source page.
const MaxKnowledgeCollections = 128
MaxKnowledgeCollections bounds the collections of one Node.
Variables ¶
var CodeSchema string
var ErrCommandHeld = errors.New("background command is held by a stop")
ErrCommandHeld reports that a command held by a user stop records no stall yet.
var ErrProviderRenewalNotSelected = errors.New("scheduled provider authorization is no longer selected")
ErrProviderRenewalNotSelected means the account stopped being eligible after the scheduler collected it.
var KnowledgeSchema string
var NodeSchema string
Functions ¶
func AgentCompactionBudget ¶
func AgentCompactionBudget(selected protocol.ConversationModel, percent uint8) *protocol.ConversationCompactionBudget
AgentCompactionBudget describes the same captured threshold used by execution.
func AgentTurnReviewed ¶
AgentTurnReviewed follows explicit completion of a planning input. Nonempty feedback returns through the tool response so the model can revise its plan.
func AppendCanonical ¶
func AppendCanonical(ctx context.Context, db *sql.Conn, session protocol.SessionID, record canonical.Record) (protocol.ConversationEntry, []protocol.Event, error)
AppendCanonical preserves immutable record identity and updates only derived membership and materialized state in the caller's transaction.
func ApplyIdentityDirectory ¶
func ApprovedWorkspaceRequest ¶
func ApprovedWorkspaceRequest(ctx context.Context, db *sql.Conn, turn protocol.TurnID, approval protocol.ApprovalID, request protocol.Request) error
ApprovedWorkspaceRequest keeps the exact durable identity already claimed by the loop; preparing an effect never creates another request after approval.
func AuthorizeLocalModelRemoval ¶
AuthorizeLocalModelRemoval admits a plugin's model removal only as the approved tool call that captured it. Controllers pass.
func AuthorizePluginRequest ¶
func AuthorizePluginRequest(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, request protocol.Request, invocation *protocol.PluginInfo) (protocol.PluginInfo, error)
AuthorizePluginRequest keeps verified dispatch provenance inside the Node. Authored plugin contexts cannot grant themselves deferred session creation.
func BackupPlan ¶
BackupPlan captures the configuration of one operation. A non-nil expected revision must match the stored one.
func BackupSource ¶
func BackupSource(ctx context.Context, db *sql.Conn, node protocol.NodeID, profile string, revision uint64) (backup.Plan, []string, error)
BackupSource reads the plan and profile-relative content roots while the caller holds exclusive ownership through the database copy.
func BeginApproval ¶
func BeginMCPElicitation ¶
func BeginQuestion ¶
func BindTurnAttachments ¶
func CallerUser ¶
func CallerUser(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID) (protocol.User, error)
CallerUser resolves only authenticated inbound device membership. A known outbound host does not become a controller by presenting its device identity.
func CancelMCPElicitation ¶
func CanonicalEntry ¶
func CaptureCanonicalPayload ¶
func CaptureCanonicalPayload(ctx context.Context, db *sql.Conn, data json.RawMessage) (canonical.Payload, error)
CaptureCanonicalPayload externalizes only declared MIME-tagged binary fields.
func CaptureFileCheckpointsRequest ¶
func CaptureFileCheckpointsRequest(ctx context.Context, db *sql.Conn, turn protocol.TurnID, approval protocol.ApprovalID, request protocol.Request, prepared *files.Prepared) error
CaptureFileCheckpointsRequest records what the approved request's prepared change replaces. Call it in the admission transaction before releasing the prepared filesystem effect.
func CapturePluginGeneration ¶
func CaptureProvider ¶
func CaptureProvider(ctx context.Context, db *sql.Conn, provider protocol.ConversationProvider) (protocol.ConversationProvider, error)
CaptureProvider freezes current native declaration policy independently of the saved configuration. Inherited turns retain their existing captured binding.
func CaptureProviderAuthorization ¶
func CaptureProviderAuthorization(ctx context.Context, db *sql.Conn, id protocol.ProviderID) (protocol.ConversationProvider, error)
CaptureProviderAuthorization also reads the unlisted provider a paired Node forwarded, which holds only a transferable authentication.
func CaptureSearchProvider ¶
func CaptureSearchProvider(ctx context.Context, db *sql.Conn, selection protocol.SearchModelConfig) (protocol.ConversationProvider, error)
CaptureSearchProvider freezes public metadata while credentials remain current.
func CaptureSessionRoles ¶
func CapturedPluginCard ¶
func CapturedPluginCard(ctx context.Context, db *sql.Conn, receipt protocol.PluginCardReceipt) (protocol.PluginInfo, protocol.PluginCardSummary, error)
func CapturedUserFromContext ¶
func CheckArtifactAccess ¶
func CheckChildAccess ¶
func CheckControllerLoginWait ¶
func CheckControllerLoginWait(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, input protocol.CommandResumeControllerLoginPayload) (protocol.ConversationRun, error)
CheckControllerLoginWait is repeated before admission and in the effect transaction. A shared project's visibility alone never grants the right to change another controller's captured account.
func CheckIdentityCreation ¶ added in v0.2.4
CheckIdentityCreation requires a fresh database family before a missing link.key can be created. Call it while holding the profile lock.
func CheckKnowledgeOutcome ¶
func CheckKnowledgeOutcome(ctx context.Context, db *sql.Conn, request protocol.Request, output protocol.Output) error
CheckKnowledgeOutcome checks current collection access before a stored result can be disclosed again. A delete result has no remaining source to expose.
func CheckKnowledgeScope ¶
CheckKnowledgeScope checks a trusted runtime's declared knowledge action. Ordinary plugin requests keep using the main plugin authorization path.
func CheckNotificationAccess ¶
func CheckPluginCardRequest ¶
func CheckPluginConnectionRequest ¶
func CheckPluginConnectionRequest(request protocol.Request, info protocol.PluginInfo) error
func CheckPluginConnectionTarget ¶
func CheckPluginConnectionTarget(ctx context.Context, db *sql.Conn, scope protocol.PluginContext, target protocol.ConnectionResource) error
CheckPluginConnectionTarget applies the core sharing decision to the resource a plugin scope captured. A Node-wide controller surface manages every connection.
func CheckPluginPlanAction ¶
func CheckPluginRequest ¶
func CheckProjectAccess ¶
func CheckProviderResource ¶
func CheckSessionAccess ¶
func CheckTerminalAccess ¶
func CheckTurnAccess ¶
func CheckWorktreeAccess ¶
func CheckpointContent ¶
func ClassifyPeer ¶
func ClassifyPeer(ctx context.Context, db *sql.Conn, node, peer protocol.NodeID, hasNode bool) error
ClassifyPeer applies the authenticated device type to an existing pairing. It never adds trust, changes direction, or rewrites captured history owners.
func CollectPlugins ¶
CollectPlugins deletes the package versions and settings revisions that no installation, queued callback, admitted turn or bound provider or assistant refers to, and returns the digests still in use so their directories can be kept. A removed package keeps its latest settings revision: reinstalling it restores that configuration. The caller runs this only while nothing can install or capture a package.
func CommandBackgroundPending ¶ added in v0.2.4
func CommandBackgroundPending(ctx context.Context, db *sql.Conn, snapshot protocol.ProcessSnapshot) (bool, error)
CommandBackgroundPending checks for committed evidence. A process with a failed completion write exposes its retained output without another write.
func CommandFollowUpAllowed ¶ added in v0.2.4
func CommandFollowUpAllowed(ctx context.Context, db *sql.Conn, session protocol.SessionID) (bool, error)
CommandFollowUpAllowed gates automatic delivery from commands owned by a conversation. A delegated session polls its commands within the child turn.
func CompleteConnectorLogin ¶
func CompleteConnectorLogin(ctx context.Context, db *sql.Conn, capture ConnectorLoginCapture, grant *authorization.Issued, identity *protocol.PluginConnectorIdentity, failed bool) (protocol.PluginConnectorConnection, error)
func CompleteProviderLogin ¶
func CompleteProviderModelDiscovery ¶
func CompleteProviderModelDiscovery(ctx context.Context, db *sql.Conn, node protocol.NodeID, captured protocol.ConversationProvider, catalog protocol.ConversationDiscoveryCatalog) ([]protocol.Event, error)
CompleteProviderModelDiscovery adds an account's discovered models after sign-in. The captured revision keeps a late result from replacing edits or a new login. Existing models keep their configuration and adopt current native OAuth speed tiers.
func CompleteProviderRenewal ¶
func ConfigureWorkspaceApproval ¶
func ConfigureWorkspaceApproval(ctx context.Context, db *sql.Conn, turn protocol.TurnID, value protocol.ConversationApproval, operation protocol.ToolOperation, command protocol.Command, changes *protocol.ChangePreview) (protocol.ConversationApproval, error)
ConfigureWorkspaceApproval applies the captured native operation's source permission policy before its approval is committed and shown to controllers.
func ConnectionBound ¶
func ConnectionBound(ctx context.Context, db *sql.Conn, turn protocol.TurnID) (*protocol.ConnectionResource, error)
ConnectionBound returns the resource the turn's captured configuration is bound to, if any.
func ConnectionCommand ¶
func ConnectionCommand(ctx context.Context, db *sql.Conn, turn protocol.TurnID, owner protocol.PluginReference, target *protocol.ConnectionResource, action ConnectionAction, captured []protocol.ConnectionResource) (protocol.Command, error)
ConnectionCommand translates a captured tool request into the shared command the Node workers execute, after checking the turn may reach its target.
func ConnectionCreated ¶
func ConnectionCreated(ctx context.Context, db *sql.Conn, turn protocol.TurnID, owner protocol.PluginReference, target protocol.ConnectionResource) (bool, error)
ConnectionCreated reports whether this turn's package created the target through its own approved and completed save. Such a connection is available in the same turn before another admission captures its new identifier.
func ConnectionOwner ¶
func ConnectionOwner(ctx context.Context, db *sql.Conn, turn protocol.TurnID) (protocol.ConversationRun, error)
ConnectionOwner returns the running turn that owns a connection operation.
func ConnectionPermits ¶
func ConnectionPermits(bound *protocol.ConnectionResource, project *protocol.ProjectID, target protocol.ConnectionResource, sharing *protocol.ConnectionSharing) bool
ConnectionPermits is the execution Node's sharing decision. An SSH conversation's primary connection is its default, not an access boundary: it can manage this Node's saved SSH profiles. Database conversations keep their resource boundary; project conversations use their sharing rules.
func ConnectionProjection ¶
func ConnectionProjection(ctx context.Context, db *sql.Conn, record ConnectorRecord) (protocol.PluginConnectorConnection, error)
func ConnectionTrust ¶
func ConnectionTrust(ctx context.Context, db *sql.Conn, turn protocol.TurnID, owner protocol.PluginReference, inspection ConnectionInspection, captured []protocol.ConnectionResource) (protocol.SshTrust, error)
ConnectionTrust builds the host-key consent an approval presents for a captured SSH operation.
func Connections ¶
func ConnectorDeclaration ¶
func ConnectorDeclaration(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, connector string) (protocol.PluginInfo, protocol.PluginConnectorDeclaration, error)
func ConnectorDeclarations ¶
func ConnectorDeclarations(info protocol.PluginInfo) []protocol.PluginConnectorDeclaration
func ConnectorRenewalAt ¶
func ConnectorRenewalAt(record ConnectorRecord) *uint64
func ConnectorTypes ¶
func ConsumeChildBackground ¶
func ConsumeStoppedChildren ¶
func ConsumeStoppedChildren(ctx context.Context, db *sql.Conn, parent protocol.TurnID, children []protocol.TurnID) ([]protocol.Event, error)
ConsumeStoppedChildren consumes the completion records of the child turns a stopped or failed parent turn cancelled. The parent's history already holds their cancellation, so the records never join a later message or start a notice turn.
func ControllerLoginReplacementAvailable ¶
func ControllerLoginReplacementAvailable(ctx context.Context, db *sql.Conn, node protocol.NodeID, input protocol.CommandResumeControllerLoginPayload) (bool, error)
ControllerLoginReplacementAvailable checks retained controller credentials before admitting a durable recovery. Local credentials are checked at admission.
func CreateUser ¶
func CurrentController ¶
func CurrentController(ctx context.Context, db *sql.Conn, node protocol.NodeID) (protocol.NodeID, error)
CurrentController resolves the Node identity used by captured controller credentials. A user without a recorded controller resolves to this Node.
func CurrentUser ¶
CurrentUser defaults only trusted internal maintenance to the local user. Public Node entry points resolve CallerUser before they call a service.
func DelegationAvailable ¶ added in v0.2.1
func DelegationAvailable(session protocol.Session, turn protocol.QueuedTurn) bool
DelegationAvailable uses the captured turn. A team supplies a roster, while Collaborate also supports children that inherit the parent's model.
func DeliverBackground ¶ added in v0.2.3
func DeliverBackground(ctx context.Context, db *sql.Conn, turn protocol.TurnID, initialNotice bool, now time.Time) (*protocol.ConversationEntry, []protocol.Event, error)
DeliverBackground appends one hidden callback and settles its evidence in the caller's write. An initial notice takes only the queued turn's reservation. It may produce queue events without an entry if the evidence was collected.
func DeliverInputBackground ¶ added in v0.2.3
func DeliverInputBackground(ctx context.Context, db *sql.Conn, turn protocol.TurnID, now time.Time) (*protocol.ConversationEntry, []protocol.Event, error)
DeliverInputBackground preserves waiting results, including held and non-follow-up commands, at an initial user or package input boundary only.
func DetachChildren ¶ added in v0.2.4
func DetachChildren(ctx context.Context, db *sql.Conn, parent protocol.TurnID, children []protocol.TurnID) ([]protocol.Event, error)
DetachChildren hands a turn's foreground children to background delivery when the turn makes no further model call. Their completion records then follow up like a background child's: as a notice, or with the next input.
func DiscardAttachment ¶
func DiscardDraftAttachment ¶
func DispatchJobContext ¶
func DispatchJobContext(ctx context.Context, db *sql.Conn, identity protocol.JobID) (context.Context, error)
DispatchJobContext restores a trusted scheduled operation's canonical actor separately from the immutable settings principal retained at enqueue time.
func DispatchSettingsChanged ¶
func DispatchTick ¶
func EffectivePluginMCP ¶
func EffectivePluginMCP(settings ResolvedPluginSettings, declared protocol.PluginMcpConfiguration) (protocol.PluginMcpConfiguration, error)
func EffectiveTurnCredential ¶
func EffectiveTurnCredential(ctx context.Context, db *sql.Conn, turn protocol.TurnID, captured protocol.CredentialRef) (protocol.CredentialRef, error)
EffectiveTurnCredential leaves the admission capture immutable. Only this run's future model steps consult the latest explicitly accepted recovery.
func EventPage ¶
func EventPage(ctx context.Context, db *sql.Conn, node protocol.NodeID, after, through uint64) (uint64, []protocol.EventEnvelope, error)
EventPage bounds each read while preserving the committed cursor watermark.
func ExecuteAgentCommand ¶
func ExecuteCommand ¶
func ExecuteConnectorCommand ¶
func ExecuteDatabaseCommand ¶
func ExecuteDatabaseCommand(ctx context.Context, db *sql.Conn, command protocol.Command) (protocol.Output, []protocol.Event, error)
ExecuteDatabaseCommand owns the profile configuration commands. Passwords stay in their own column and never enter an output, event or fault.
func ExecuteDispatch ¶
func ExecuteDispatchAdmitted ¶
func ExecuteIdentityCommand ¶
func ExecuteKnowledge ¶
func ExecuteKnowledge(ctx context.Context, db *sql.Conn, request protocol.Request) (protocol.Output, []protocol.Event, error)
ExecuteKnowledge applies one collection mutation.
func ExecuteProviderCommand ¶
func ExecuteSshCommand ¶
func ExecuteTeamCommand ¶
func ExpireApproval ¶
func ExpireQuestion ¶
func FilterPluginDatabases ¶
func FilterPluginDatabases(ctx context.Context, db *sql.Conn, scope protocol.PluginContext, profiles []protocol.DatabaseProfile) ([]protocol.DatabaseProfile, error)
FilterPluginDatabases keeps the profiles a plugin scope may reach.
func FilterPluginSsh ¶
func FilterPluginSsh(ctx context.Context, db *sql.Conn, scope protocol.PluginContext, profiles []protocol.SshProfile) ([]protocol.SshProfile, error)
FilterPluginSsh keeps the profiles a plugin scope may reach.
func FinishChildBackground ¶
func FinishCommand ¶
func FinishDispatch ¶
func FinishFilesCommand ¶
func FinishHook ¶
func FinishQueuedChild ¶
func FinishRemovedWorktree ¶
func FinishTurn ¶
func FitConversationPage ¶
func ForgetLocalModel ¶
ForgetLocalModel deletes the registration of a model whose files were removed and reports whether it did. A model the settings select or a knowledge collection names stays registered, so that the choice keeps its name and the collection its model. A pinned model has no registration and stays listed.
func ForkPluginConversation ¶
func FrozenHooks ¶
func GetTurnAttachment ¶
func GuideChild ¶
func GuideChild(ctx context.Context, db *sql.Conn, node protocol.NodeID, parent protocol.TurnID, identity canonical.ToolIdentity, arguments json.RawMessage, overlap bool, now time.Time) (ChildState, *AgentInvocation, []protocol.Event, error)
GuideChild guides or resumes a child of the parent turn. identity is the recorded call, guide_agent or a package tool bound to agents.guide, and locates it in the conversation; arguments are the ones that execute, which such a package tool prepares.
func HoldStoppedCommands ¶ added in v0.2.4
HoldStoppedCommands keeps a user stop from being undone by command evidence: the session's running and undelivered command results start no notice turn and join the user's next message instead. The Node stops the non-service commands after the stop commits; their completion finds a held record.
func HostRemovals ¶
func HydrateCanonicalPayload ¶
func InitializeConfigurationUsers ¶
InitializeConfigurationUsers runs after the local user exists in the same rehearsed schema transaction. Legacy configuration remains private to it.
func InitializeIdentity ¶
InitializeIdentity fixes the owner of legacy unprefixed storage namespaces. Its identity stays stable when the local administrator flag moves in a merge.
func InsertAttachment ¶
func InsertDraftAttachment ¶
func InsertDraftAttachment(ctx context.Context, db *sql.Conn, caller protocol.NodeID, value protocol.Attachment, now time.Time) error
InsertDraftAttachment records a file published in the profile's attachment store before its controller has created a conversation or worktree.
func InstallCatalogPlugin ¶
func InstallCatalogPlugin(ctx context.Context, db *sql.Conn, info protocol.PluginInfo, expectedRevision uint64, mode protocol.PluginInstallMode, declared protocol.PluginMcpConfiguration) (protocol.PluginInfo, error)
func InstallPlugin ¶
func IsStorageFull ¶ added in v0.2.4
IsStorageFull reports when the storage engine could not write for lack of space.
func KnowledgeExecutionContext ¶
func KnowledgeExecutionContext(ctx context.Context, db *sql.Conn, stored KnowledgeStored) (context.Context, error)
KnowledgeExecutionContext restores the owner of a trusted indexing capture. Public queries select allowed collections before the indexing service uses it.
func KnowledgePackageFromContext ¶
func KnowledgePackageFromContext(ctx context.Context) (protocol.PluginInfo, bool)
KnowledgePackageFromContext reads only the package installed by the verified resource-call entry point, never a package declared in model arguments.
func KnowledgeStorageChanged ¶
func KnowledgeStorageChanged(ctx context.Context, db *sql.Conn, request protocol.Request) (bool, error)
KnowledgeStorageChanged follows a committed storage write of a plugin: it registers a collection that gained its first source and restarts the indexing of the package's automatic collections. It runs in the transaction of the write.
func KnowledgeStorageCommand ¶
KnowledgeStorageCommand reports a command that may change the plugin values a storage collection indexes.
func KnowledgeStorageUnchanged ¶
func KnowledgeStorageUnchanged(ctx context.Context, db *sql.Conn, stored KnowledgeStored, record KnowledgeStorageRecord) (bool, error)
KnowledgeStorageUnchanged rechecks a captured record before its chunks are published or its citation is returned.
func LatestAgentPlan ¶ added in v0.2.4
func LatestAgentPlan(records []canonical.Record) *protocol.ConversationProgress
LatestAgentPlan returns the last successful plan in chronological session history unless all its steps are completed or skipped.
func LegacyStorageUser ¶
func LinkAddresses ¶
func LinkDirections ¶
LinkDirections loads persisted direction independently of reachability.
func ListArtifactRevisions ¶
func ListArtifacts ¶
func ListAssociatedSessions ¶
func ListAssociatedSessions(ctx context.Context, db *sql.Conn, request protocol.Request) (protocol.ConversationAssociationAssociatedSessions, error)
ListAssociatedSessions pages the sessions a package associated with one business identity, newest first. A worktree scope confines the page.
func ListConversationAssets ¶
func ListConversationAssets(ctx context.Context, db *sql.Conn, session protocol.SessionID, query protocol.ConversationAssetsQuery) (protocol.ConversationAssetsPage, error)
ListConversationAssets derives bounded inventory pages from canonical history. It does not index workspace writes or inspect the filesystem.
func ListDatabases ¶
func ListFileCheckpoints ¶
func ListKnowledgeCollections ¶
func ListKnowledgeCollections(ctx context.Context, db *sql.Conn, request protocol.Request) ([]protocol.KnowledgeCollection, error)
ListKnowledgeCollections lists the collections a request may read.
func ListPluginKeys ¶
func ListSshTerminals ¶
func ListSshTerminals(ctx context.Context, db *sql.Conn, profile protocol.SshID, caller protocol.NodeID) ([]protocol.TerminalInfo, error)
ListSshTerminals returns the caller's open terminals of one SSH profile.
func ListTurnAttachments ¶
func LoadAgentContext ¶
func LoadAgentContext(ctx context.Context, db *sql.Conn, session protocol.SessionID) (canonical.Context, []string, error)
LoadAgentContext reads a session's materialized context and loaded tools without its history. Captured is derived from history and stays unset.
func LocalModelDefinition ¶
func LocalModelDefinition(ctx context.Context, db *sql.Conn, id string) (*protocol.ModelsDefinition, error)
LocalModelDefinition reads one pinned or registered definition.
func MCPFormSpec ¶
func MCPFormSpec(message string, schema json.RawMessage) (protocol.ConversationQuestionSpec, error)
func MCPSettingsTargets ¶
func MCPSettingsTargets(schema *protocol.PluginSettingsSchema, configuration protocol.PluginMcpConfiguration) map[string]string
func MarkCheckpointRestored ¶
MarkCheckpointRestored records that a checkpoint's change was undone, in the transaction that stores the restore's receipt, so the fact survives a restart and reaches every controller with the checkpoint list.
func MarkProviderRenewalUncertain ¶
func MarkProviderRenewalUncertain(ctx context.Context, db *sql.Conn, provider protocol.ConversationProvider, id protocol.CredentialID) error
func MaterializeSemanticSearch ¶
func MaterializeSemanticSearch(ctx context.Context, db *sql.Conn, request protocol.Request, plan SemanticPlan, selection SemanticSelection) (page protocol.PluginStorageSearchPage, stale bool, err error)
MaterializeSemanticSearch reads the selected values of a plan. A result whose source, tags, grants or embedding choice moved since the plan falls back to the keyword page and reports it stale.
func MediaConfig ¶
func MediaConfig(provider protocol.ProviderID, name string) protocol.SessionConfig
MediaConfig selects one assigned model outside any session.
func MediaModels ¶
MediaModels lists, per purpose, the enabled models whose capability tags include it and whose channel has a driver for it.
func MigrateHeadlessPeers ¶
MigrateHeadlessPeers preserves inbound access without treating legacy Host controllers as outbound execution services.
func NarrowLegacyController ¶
func NextChildGuidance ¶
func NextCounter ¶
NextCounter advances a watermark inside the caller's existing write transaction.
func OAuthRegistration ¶
func ObserveCommandStop ¶ added in v0.2.4
func ObserveCommandStop(ctx context.Context, db *sql.Conn, parent protocol.TurnID, snapshot protocol.ProcessSnapshot, now time.Time) ([]protocol.Event, error)
ObserveCommandStop records a stop acknowledged by a tool turn. Only a confirmed stopped outcome is consumed by that acknowledgment.
func OriginalTurnUser ¶
func OriginalTurnUser(ctx context.Context, db *sql.Conn, turn protocol.TurnID) (protocol.User, error)
OriginalTurnUser does not follow merged_into: immutable settings revisions with the same number can contain different credentials for different users.
func OrphanedKnowledge ¶
OrphanedKnowledge reports whether any collection of a catalog lost its owner.
func PairIdentityMember ¶
func PairIdentityMember(ctx context.Context, db *sql.Conn, node, peer protocol.NodeID, direction link.PeerDirection, inviter *protocol.UserID, myDevice bool) error
PairIdentityMember receives only the sharing endpoint's captured invitation scope. A repeated pairing never transfers an existing device to another user.
func PairIdentityPeer ¶
func PairLinkPeer ¶
func PairLinkPeer(ctx context.Context, db *sql.Conn, peer protocol.NodeID, direction link.PeerDirection) error
PairLinkPeer unions two explicit pairings without moving a device between users. Only a newly admitted controller creates a new local user.
func PairPeerIdentity ¶
func PairPeerIdentity(ctx context.Context, db *sql.Conn, node, peer protocol.NodeID, direction link.PeerDirection, hasNode bool) error
PairPeerIdentity records fresh membership and its authenticated device type in one transaction. A shell joins the local user without creating an orphan user.
func PendingGuidance ¶
func PluginConnectionAction ¶
func PluginConnectionAction(ctx context.Context, db *sql.Conn, request protocol.Request) (protocol.PluginAction, bool, error)
PluginConnectionAction maps a database or SSH command to the software action its package must declare and checks that the captured plugin scope may reach the command's connection. It reports false for every command outside the two families, including terminals that are not SSH terminals.
func PluginModels ¶
func PluginRecorded ¶
func PluginRequestPackage ¶
func PluginSearchDefinition ¶
func PluginSearchDefinitions ¶
func PluginSettingsBody ¶
func PluginStatusEntries ¶
func PluginStatusEntries(info protocol.PluginInfo, states []protocol.PluginUiState) []protocol.PluginUiStatusEntry
func PluginStorageRequestContext ¶
func PluginStorageRequestContext(ctx context.Context, db *sql.Conn, request protocol.Request) (context.Context, error)
PluginStorageRequestContext resolves the requested namespace through the captured resource. The personal namespace remains the default for old SDKs.
func PowerFailed ¶
PowerFailed records the system's refusal of the idle-sleep request as an error notice carrying its code.
func PrepareBackup ¶
func PrepareBackup(ctx context.Context, db *sql.Conn, profile string, command protocol.Command) error
PrepareBackup refuses a durable backup command before it is admitted.
func PrepareCheckpointRestore ¶
func PrepareCheckpointRestore(ctx context.Context, db *sql.Conn, session protocol.SessionID, id protocol.CheckpointID, worktree protocol.WorktreeID, root string) (protocol.ConversationCheckpointContent, []*protocol.ConversationCheckpointVersion, error)
PrepareCheckpointRestore captures a checkpoint's content for a restore and the versions that already count as restored: what the file held before this change or before an earlier change of the same turn to the same file.
func PrepareHostRemoval ¶
func PrepareProviderCommand ¶
func PrepareRestored ¶
func PrepareRestored(ctx context.Context, staging string, node protocol.NodeID, original, target string) ([]string, error)
PrepareRestored validates an unpacked profile in private staging, upgrades its Node database to the current schema and rewrites the paths that pointed into the original profile. It returns the staging-relative files of the pre-upgrade database copy, which the restored profile retains.
func PrepareSessionForward ¶
func PrepareSessionForward(ctx context.Context, db *sql.Conn, node, caller protocol.NodeID, request protocol.Request) (protocol.Request, error)
PrepareSessionForward keeps exact replays of already admitted operations, but a new session must be created by the Node that owns its selected model.
func PrepareTurnHunk ¶
func PrepareTurnHunk(ctx context.Context, db *sql.Conn, selection protocol.ConversationCheckpointHunkSelection, root string) (files.HunkChange, error)
func ProbeConnector ¶
func ProbeConnector(ctx context.Context, db *sql.Conn, previous ConnectorRecord, identity *protocol.PluginConnectorIdentity, checked uint64, failure *protocol.Fault) (protocol.PluginConnectorConnection, error)
func ProjectConnectorConsent ¶
func ProjectConnectorConsent(value protocol.PluginConnectorConnection, previous, current *ConnectorBound) protocol.PluginConnectorConnection
func ProviderRecoveryIdentity ¶
func ProviderRecoveryIdentity(ctx context.Context, db *sql.Conn, node protocol.NodeID, provider protocol.ConversationProvider, reference protocol.CredentialRef) (string, string, error)
ProviderRecoveryIdentity reads account identity even after expiry, without treating an expired token or an unresolved refresh as usable authorization.
func PruneDraftAttachments ¶
PruneDraftAttachments keeps abandoned uploads for the same retry window as their finish receipts. A later collection removes the unreferenced files.
func PruneResourceCatalogSources ¶
func PruneResourceCatalogSources(ctx context.Context, db *sql.Conn, entry protocol.NodeID, allowed []protocol.NodeID) ([]protocol.NodeID, error)
PruneResourceCatalogSources follows explicit relationship removal, including removals made while this Node was stopped. A failed peer listing must not call this with an empty list.
func PublishArtifactWrite ¶
func PublishPlanReview ¶
func ReadActivityCatalog ¶
func ReadActivityPreviews ¶
func ReadAgentCommand ¶
func ReadAgentReference ¶
func ReadAgentReference(ctx context.Context, db *sql.Conn, node protocol.NodeID, source AgentHistorySource, kind string, arguments json.RawMessage) (json.RawMessage, error)
func ReadAgentRun ¶
func ReadAgentStatistics ¶
func ReadAgentStatistics(ctx context.Context, db *sql.Conn, session protocol.SessionID) (protocol.ConversationStatistics, error)
ReadAgentStatistics derives session totals from canonical turn membership. The caller's transaction keeps usage, observation and policy reads consistent.
func ReadApproval ¶
func ReadApproval(ctx context.Context, db *sql.Conn, id protocol.ApprovalID) (protocol.ConversationApproval, error)
func ReadArtifactCommand ¶
func ReadAssistantDeclaration ¶
func ReadAssistantDeclaration(ctx context.Context, db *sql.Conn, binding protocol.PluginConversationBinding) (protocol.PluginConversationDeclaration, error)
ReadAssistantDeclaration returns the declaration in an exact package capture.
func ReadAttachment ¶
func ReadAttachment(ctx context.Context, db *sql.Conn, worktree protocol.WorktreeID, id protocol.AttachmentID) (protocol.Attachment, error)
func ReadBackgroundTasks ¶
func ReadBackupSettings ¶
ReadBackupSettings returns the settings without any credential value.
func ReadCanonicalImage ¶
func ReadChildRole ¶
func ReadCodeIndexSettings ¶
ReadCodeIndexSettings returns the saved enablement, enabled by default.
func ReadCompaction ¶
func ReadConfigurationCache ¶
func ReadConfigurationFollow ¶
func ReadConversation ¶
func ReadConversationTurn ¶
func ReadDatabase ¶
func ReadDatabase(ctx context.Context, db *sql.Conn, id protocol.DatabaseID) (*protocol.DatabaseProfile, error)
ReadDatabase returns nil when the profile is not saved on this Node.
func ReadDispatchTurn ¶
func ReadDraftAttachment ¶
func ReadFilesCommand ¶
func ReadIdentity ¶
func ReadIdentityCommand ¶
func ReadIdentityDirectory ¶
func ReadLocalModelSettings ¶
func ReadLocalModelSettings(ctx context.Context, db *sql.Conn) (protocol.ModelsLocalSettings, error)
ReadLocalModelSettings reads the saved choices and mirror.
func ReadMediaSettings ¶
ReadMediaSettings returns the saved bindings and names every bound purpose whose model cannot run now.
func ReadNetworkSelection ¶
func ReadNotifications ¶
func ReadPlugin ¶
func ReadPluginCommand ¶
func ReadPluginConnection ¶
func ReadPluginInfos ¶
func ReadPluginSettings ¶
func ReadPluginStatusPackages ¶
func ReadPluginStatusPackages(ctx context.Context, db *sql.Conn, scope protocol.PluginUiStatusScope) ([]protocol.PluginInfo, error)
func ReadPluginValue ¶
func ReadPluginValue(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, key string) (protocol.PluginStorageEntry, error)
func ReadPluginVersion ¶
func ReadPluginVersion(ctx context.Context, db *sql.Conn, reference protocol.PluginReference) (protocol.PluginInfo, error)
ReadPluginVersion reads an immutable package capture independently of its live installation. It never creates inventory or substitutes a newer package.
func ReadPlugins ¶
func ReadProjects ¶
func ReadProviderCommand ¶
func ReadProviderSnapshot ¶
func ReadProviderSnapshot(ctx context.Context, db *sql.Conn, node protocol.NodeID) ([]protocol.ConversationProvider, []protocol.ConversationQuotaSnapshot, error)
ReadProviderSnapshot exposes only the current user's providers. Authentication material is absent from both returned public projections.
func ReadPythonSettings ¶
func ReadQuestion ¶
func ReadQuestion(ctx context.Context, db *sql.Conn, id protocol.QuestionID) (protocol.ConversationQuestion, error)
func ReadResourceCatalogSources ¶
func ReadResourceCatalogSources(ctx context.Context, db *sql.Conn, entry protocol.NodeID) ([]protocol.ResourceSource, error)
Resource catalogs are projections of the current user's authenticated direct routes. They deliberately cannot store a full Snapshot, credentials, session history, file content or knowledge indexes.
func ReadSandboxSettings ¶
func ReadSearchSettings ¶
func ReadSession ¶
func ReadSessions ¶
func ReadTeamCommand ¶
func ReadTeamSettings ¶
func ReadTelemetry ¶
func ReadTerminal ¶
func ReadTerminal(ctx context.Context, db *sql.Conn, id protocol.TerminalID) (protocol.TerminalInfo, error)
func ReadTerminalSettings ¶
func ReadTerminals ¶
func ReadTurnDiff ¶
func ReadTurnHunks ¶
func ReadWebSearchPlan ¶
ReadWebSearchPlan copies private credentials into a Node-owned execution capture. The caller binds the frozen model callback before leaving its admission owner.
func ReadWorkspaceRoot ¶
func ReadWorkspaceRoot(ctx context.Context, db *sql.Conn, worktree protocol.WorktreeID, internal bool) (string, error)
ReadWorkspaceRoot captures database ownership only. Filesystem work follows after the caller closes its read lease.
func ReadWorktrees ¶
func ReconcileProviderQuotas ¶
func RecordBackupOutcome ¶
RecordBackupOutcome keeps how the most recent backup ended, for the Backup page. It is not a settings change: the revision stays.
func RecordConnectionSave ¶
RecordConnectionSave keeps an authorized turn's save without its secret. Call it after authorization in the save's writer transaction, so a failed save rolls back its proof. Controller saves have no turn proof to record. The request ledger holds only the digest; ConnectionCreated reads this row.
func RecordEvents ¶
func RecordHostRemoval ¶
func RecordKnowledgeProgress ¶
func RecordKnowledgeProgress(ctx context.Context, db *sql.Conn, id protocol.KnowledgeID, generation uint64, progress protocol.KnowledgeProgress) (bool, error)
RecordKnowledgeProgress stores the worker's progress for the generation it indexed. It reports whether the collection changed.
func RecoverCommands ¶
func RecoverCredentialRenewals ¶
RecoverCredentialRenewals never repeats an exchange whose response may have been lost. Its access token remains usable until expiry; explicit sign-in is needed afterward. Publish a new revision for the changed execution state.
func RecoverRuns ¶
func RefreshEventAccess ¶
func RefreshEventAccess(ctx context.Context, db *sql.Conn, event protocol.EventEnvelope) (protocol.EventEnvelope, error)
RefreshEventAccess rechecks buffered rows after another writer changes scope.
func RefreshTurnRoles ¶
func RegisterChildBackground ¶
func RegisterCommand ¶
func RegisterCreatedWorktree ¶
func RegisterCreatedWorktree(ctx context.Context, db *sql.Conn, value protocol.Worktree, adopt bool) (protocol.Worktree, []protocol.Event, error)
RegisterCreatedWorktree commits a verified external checkout. No filesystem action or native Git command runs on the storage writer.
func RegisterKnowledgeSemantic ¶
RegisterKnowledgeSemantic registers the semantic collections of every enabled package. It runs when the Node starts and after a package changes.
func RegisterLocalModel ¶
func RegisterLocalModel(ctx context.Context, db *sql.Conn, capabilities localmodels.Capabilities, definition protocol.ModelsDefinition) (protocol.Output, []protocol.Event, error)
RegisterLocalModel stores a validated definition under its content identity and returns that identity. Registering a known definition changes nothing.
func RegisterPromotedCommand ¶
func ReleaseBackground ¶
func ReleaseBackground(ctx context.Context, db *sql.Conn, turn protocol.TurnID, hold *protocol.ConversationBackgroundHold, suppress bool) ([]protocol.Event, error)
ReleaseBackground returns the results reserved for a turn that did not take them. The hold is why the turn did not. With suppress they are suppressed: they start no notice turn and join the user's next message, and the hold tells clients why. Without it only the results that were already suppressed take the hold, so none is left held without a reason.
func ReleaseChildren ¶
func RelocateProfile ¶
RelocateProfile rewrites the stored paths that point into the profile at original so they point into target, for a profile that is about to move.
func RememberLinkPeer ¶
func RemovePlugin ¶
func RemovePluginValue ¶
func RemovedArtifactOwners ¶
RemovedArtifactOwners lists the removed sessions that keep no artifact; their artifact directories hold nothing a conversation can read.
func ResolveMediaBinding ¶
func ResolveMediaBinding(ctx context.Context, db *sql.Conn, node protocol.NodeID, provider protocol.ConversationProvider, name string, session protocol.SessionID) (model.Binding, error)
ResolveMediaBinding binds a captured API-key provider to its current key.
func ResolvePluginInfo ¶
func ResolvePluginInfo(ctx context.Context, db *sql.Conn, reference protocol.PluginReference) (protocol.PluginInfo, error)
func ResolvePluginModel ¶
func ResolvePluginModel(ctx context.Context, db *sql.Conn, selected string, effort *protocol.Effort, base *protocol.SessionConfig) (protocol.ConversationProvider, protocol.SessionConfig, error)
func ResolvePluginStatusScope ¶
func ResolvePluginStatusScope(ctx context.Context, db *sql.Conn, scope protocol.PluginUiStatusScope) (protocol.PluginUiStatusScope, error)
func ResolvePluginViewInfo ¶
func ResolvePluginViewInfo(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, surface protocol.PluginDesktopSurface) (protocol.PluginInfo, error)
func ResolveSearchBinding ¶
func ResolveToolCommandStream ¶
func ResolveToolCommandStream(ctx context.Context, db *sql.Conn, caller protocol.NodeID, input protocol.CommandReadToolOutputPayload) (protocol.SessionID, protocol.RequestID, error)
ResolveToolCommandStream verifies the current invocation and exact visible canonical result. The Node pages the existing Process owner after this read.
func ResolveTurnAttachment ¶
func ResolveUser ¶
ResolveUser follows only stored merge relationships; request bodies cannot supply a principal or select another user's resource namespace.
func RetainedAttachments ¶
func RetireImportedPeerRoutes ¶
RetireImportedPeerRoutes removes only outbound access inherited from an old directory. Explicit pairing directions and provenance records remain intact.
func RevokeIdentityDevice ¶
func RuntimeCredentialEvent ¶
func SameKnowledgeStored ¶
func SameKnowledgeStored(left, right KnowledgeStored) bool
SameKnowledgeStored compares the identity an indexing pass or a citation read captured with the current collection.
func SaveBackupSettings ¶
func SaveBackupSettings(ctx context.Context, db *sql.Conn, input protocol.BackupUpdate, timestamp int64) (protocol.BackupSettings, []protocol.Event, error)
SaveBackupSettings stores the destinations, credentials and schedule, and registers the Node's own scheduled export.
func SaveCodeIndexSettings ¶
func SaveCodeIndexSettings(ctx context.Context, db *sql.Conn, input protocol.CodeIndexSettings, expected uint64) (protocol.CodeIndexSettings, error)
SaveCodeIndexSettings replaces the settings when both the edited value and the stored one carry the expected revision.
func SaveDefaults ¶
func SaveDefaults(ctx context.Context, db *sql.Conn, node protocol.NodeID, input protocol.Defaults) (protocol.Defaults, error)
SaveDefaults replaces only the active user's default session configuration.
func SaveHooks ¶
func SaveHooks(ctx context.Context, db *sql.Conn, input protocol.HooksSettings, expected uint64) (protocol.HooksSettings, error)
func SaveLocalModelSettings ¶
func SaveLocalModelSettings(ctx context.Context, db *sql.Conn, settings protocol.ModelsLocalSettings) (protocol.Output, []protocol.Event, error)
SaveLocalModelSettings replaces the settings at their expected revision. Every selected model must be registered for its kind.
func SaveNetworkSelection ¶
func SaveOAuthRegistration ¶
func SavePluginMCP ¶
func SavePluginMCP(ctx context.Context, db *sql.Conn, input protocol.CommandSavePluginMcpPayload, declared protocol.PluginMcpConfiguration) (protocol.PluginInfo, error)
func SavePluginSettings ¶
func SavePythonSettings ¶
func SaveResourceCatalogSource ¶
func SaveResourceCatalogSource(ctx context.Context, db *sql.Conn, entry protocol.NodeID, source protocol.ResourceSource) error
SaveResourceCatalogSource publishes a complete directory version. Callers retain the previous version while snapshot pages are incomplete or a source is temporarily unavailable; absence means deletion only in a complete read.
func SaveSandboxSettings ¶
func SaveSandboxSettings(ctx context.Context, db *sql.Conn, input protocol.SandboxSettings) (protocol.SandboxSettings, error)
func SaveSearchSettings ¶
func SaveStandaloneMCPSettings ¶
func SaveStandaloneMCPSettings(ctx context.Context, db *sql.Conn, info protocol.PluginInfo, secrets map[string]protocol.PluginSettingsSecretUpdate, configuration protocol.PluginMcpConfiguration) (protocol.PluginInfo, error)
func SaveTerminal ¶
func SaveTerminalSettings ¶
func SaveTerminalSettings(ctx context.Context, db *sql.Conn, input protocol.TerminalSettings) (protocol.TerminalSettings, []protocol.Event, error)
SaveTerminalSettings stores the default shell and environment of new terminals. The shell is resolved on this Node, so it must be absolute here.
func ScheduleBackground ¶
func SearchPluginValues ¶
func SearchPluginValues(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, query protocol.PluginStorageSearch) (protocol.PluginStorageSearchPage, error)
func SelectSessionRoles ¶
func SelectSessionRoles(ctx context.Context, db *sql.Conn, node protocol.NodeID, previous protocol.RoleSnapshot, references []protocol.RoleReference) (protocol.RoleSnapshot, error)
func SetLinkDirection ¶
func SetLinkTrust ¶
func SetPluginEnabled ¶
func SetPluginMCPAllowed ¶
func SetPluginMCPAllowed(ctx context.Context, db *sql.Conn, input protocol.CommandSetPluginMcpAllowedPayload) (protocol.PluginInfo, error)
func SetPluginPinned ¶
func SetRunCredentialWait ¶
func SetRunCredentialWait(ctx context.Context, db *sql.Conn, node protocol.NodeID, turn protocol.TurnID, waiting *protocol.ConversationRunWaiting) ([]protocol.Event, error)
SetRunCredentialWait changes only the running turn's projection; its capture, canonical records and already completed effects remain untouched.
func SettleStoppedChildren ¶
func SettleStoppedChildren(ctx context.Context, db *sql.Conn, now time.Time) ([]protocol.Event, error)
SettleStoppedChildren finishes the queued children a controller stopped. stop_turn leaves such a run cancelled without a finish time; finishing it here closes its completion record and refreshes its parent. The store is the source, so a stopped child is settled whether or not the Runtime still holds its owner.
func StallCommand ¶
func StallCommand(ctx context.Context, db *sql.Conn, stalled process.Stalled, now time.Time) ([]protocol.Event, bool, error)
StallCommand records at most one silent period for a follow-up command. The command itself stays running until it finishes.
func StartConnectorLogin ¶
func StartSessionProvider ¶
func StartSessionProvider(ctx context.Context, db *sql.Conn, draft protocol.ConversationStart) (protocol.ProviderID, error)
func StopChild ¶ added in v0.2.4
func StopChild(ctx context.Context, db *sql.Conn, parent protocol.TurnID, child protocol.SessionID, now time.Time) (protocol.ConversationRun, []protocol.Event, error)
StopChild stops the current execution of a child the parent turn's conversation owns, on the same path as a controller's stop_turn: the request is recorded for stop_reason. A child that is not queued or running is returned unchanged.
func SupportsAgentCommand ¶
func SupportsFilesCommand ¶
func SupportsProviderCommand ¶
func SupportsTeamCommand ¶
func SupportsTeamRead ¶
func UserFromContext ¶
UserFromContext returns only the principal already verified by Node.
func ValidAgentProgress ¶
func ValidAgentProgress(value protocol.ConversationProgress) bool
ValidAgentProgress reports whether a progress snapshot is non-empty and within the 64 KiB text budget.
func ValidateConnectionTrust ¶
func ValidateConnectionTrust(ctx context.Context, db *sql.Conn, turn protocol.TurnID, binding *ApprovalBinding, trust protocol.SshTrust) error
ValidateConnectionTrust accepts host-key consent only inside an approval of a captured SSH run or transfer, for the profile exactly as saved now and a key it does not already trust.
func ValidateMCPElicitation ¶
func ValidatePluginStatusStates ¶
func ValidatePluginStatusStates(info protocol.PluginInfo, value json.RawMessage) ([]protocol.PluginUiState, error)
func ValidateProjectDraft ¶
func ValidateProjectDraft(value protocol.ProjectsDraft) error
ValidateProjectDraft checks the request before native clone effects begin.
func ValidateRole ¶
func ValidateRole(role protocol.RoleProfile) error
ValidateRole reports what a role definition alone makes invalid. A caller that asks for approval of a definition checks it first.
func ValidateTeam ¶
func ValidateTeam(team protocol.TeamProfile) error
ValidateTeam reports what a team definition alone makes invalid, before its members and model are resolved against the catalog.
func ViewCodeIndexSettings ¶ added in v0.2.4
ViewCodeIndexSettings exposes only selections the requesting administrator can manage. Every user can still read whether the code tools are available.
func WithCapturedUser ¶
WithCapturedUser retains the immutable storage principal of admitted work. CurrentUser remains the canonical actor for authorization after a user merge.
func WithKnowledgePackage ¶
WithKnowledgePackage retains a package after the trusted resource entry point checked its origin. Its Turn and Session belong to the execution Node, so the storage Node reads the captured package instead of resolving foreign IDs.
func WithKnowledgeScope ¶
func WithKnowledgeScope(ctx context.Context, scope *protocol.ResourceScope) (context.Context, error)
WithKnowledgeScope checks the captured package identity before making it available to a local resource operation. Link caller and user verification belongs to the resource entry point and cannot be supplied in this payload.
func WithUser ¶
WithUser carries a Node-verified principal through admitted asynchronous work. A peer never supplies this value in its request body.
func WritePluginValue ¶
func WritePluginValue(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, key string, value json.RawMessage, expectedRevision uint64, index *protocol.PluginStorageIndex) (protocol.PluginStorageEntry, error)
Types ¶
type AgentGuidance ¶
type AgentGuidance struct {
Turn protocol.QueuedTurn
Message protocol.ConversationInput
}
type AgentHistorySource ¶
type AgentInstruction ¶
type AgentInvocation ¶
type AgentInvocation struct {
User protocol.User
StorageUser protocol.UserID
Hooks protocol.HooksSettings
Session protocol.Session
Worktree protocol.Worktree
Run protocol.ConversationRun
Turn protocol.QueuedTurn
Caller protocol.NodeID
Message protocol.ConversationInput
Provider *protocol.ConversationProvider
Secret *protocol.Secret
EffectiveCredential *protocol.CredentialRef
AuthorizationFailure *protocol.Fault
Instructions []AgentInstruction
CompactionPercent uint8
// Media holds the per-purpose model assignments frozen at admission.
Media MediaCapture
// Assistant is the declaration frozen by the turn's assistant binding.
Assistant *protocol.PluginConversationDeclaration
}
func ClaimChild ¶
func DelegateAgent ¶
func DelegatePrepared ¶
func DelegatePrepared(ctx context.Context, db *sql.Conn, node protocol.NodeID, parent protocol.TurnID, identity canonical.ToolIdentity, arguments json.RawMessage, selected *protocol.ConversationInput, ready, overlap bool, now time.Time) (AgentInvocation, []protocol.Event, error)
DelegatePrepared admits a child for a call whose executing arguments differ from the ones the model sent: a package tool bound to agents.delegate or agents.guide prepares them. identity stays the recorded call, which locates it in the conversation; arguments describe the child. overlap records the effective foreground mode, which a default can choose without an argument.
type AgentReviewChange ¶
type AgentReviewChange struct {
Session protocol.SessionID
Change protocol.ConversationChange
}
func ApplyReviewCommand ¶
func ApplyReviewCommand(ctx context.Context, db *sql.Conn, request protocol.Request, output protocol.Output, now time.Time) ([]AgentReviewChange, []protocol.Event, error)
ApplyReviewCommand runs inside the command transaction and returns feed effects to publish after COMMIT. It never owns another command or event ledger.
type AgentState ¶
type AgentState struct {
Session protocol.Session
// Records are shared with every state extended from this one: read-only.
Records []canonical.Record
Context canonical.Context
LoadedTools []string
Reviewed bool
// contains filtered or unexported fields
}
func ExtendAgentState ¶
func ExtendAgentState(ctx context.Context, db *sql.Conn, session protocol.SessionID, previous AgentState) (AgentState, int, error)
ExtendAgentState loads a session's state, decoding only the records appended after previous, and reports how many leading records it shares with it. History only grows within one history revision; after a rewind, or for another session, everything is loaded again.
func LoadAgentState ¶
type ApprovalBinding ¶
type ApprovalBinding struct {
Owner protocol.PluginReference `json:"owner"`
Tool string `json:"tool"`
Operation *protocol.ToolOperation `json:"operation"`
}
func (*ApprovalBinding) UnmarshalJSON ¶
func (v *ApprovalBinding) UnmarshalJSON(data []byte) error
type ArtifactRead ¶
type ArtifactRead struct {
Content protocol.ArtifactContent
Digest string
}
ArtifactRead captures immutable metadata for a resource-worker read. It owns no database connection and must be rechecked against the session after IO.
func CaptureArtifactRead ¶
type ArtifactWrite ¶
type ArtifactWrite struct {
Artifact protocol.ArtifactSummary
Previous *protocol.ArtifactSummary
HTML string
Warnings []string
Digest string
Request protocol.Request
}
type AutomaticChain ¶
AutomaticChain is a session's run of automatic turns since its last user input and the limit that run is held to.
func ReadAutomaticChain ¶
func ReadAutomaticChain(ctx context.Context, db *sql.Conn, session protocol.SessionID) (AutomaticChain, error)
ReadAutomaticChain counts the notice turns and package continuations that started since the session's last user input. Automatic turns that never started neither count nor reset; joined guidance is user input, and so is the request behind a continuation the user asked for, which is the first turn of its chain. The limit is the one the chain's latest continuation declared, or the default.
type BackgroundRecord ¶
type BackgroundRecord struct {
Task protocol.ConversationBackgroundTask `json:"task"`
FollowUp bool `json:"follow_up"`
StopObserved bool `json:"stop_observed,omitempty"`
Stdout *string `json:"stdout"`
Stderr *string `json:"stderr"`
StdoutBytes *uint64 `json:"stdout_bytes,omitempty"`
StderrBytes *uint64 `json:"stderr_bytes,omitempty"`
StdoutTruncated bool `json:"stdout_truncated,omitempty"`
StderrTruncated bool `json:"stderr_truncated,omitempty"`
Response *string `json:"response"`
ResponseBytes *uint64 `json:"response_bytes,omitempty"`
ElapsedMs *uint64 `json:"elapsed_ms"`
SilenceMs *uint64 `json:"silence_ms,omitempty"`
Sequence uint64 `json:"sequence"`
}
BackgroundRecord retains completion evidence independently of process handles. Background delivery consumes its follow-up flag through the same authoritative writer.
func (*BackgroundRecord) UnmarshalJSON ¶
func (record *BackgroundRecord) UnmarshalJSON(data []byte) error
type ChildState ¶
type Closed ¶
type Closed struct {
// contains filtered or unexported fields
}
Closed retains exclusive maintenance ownership until Reopen or Close.
type ConnectionAction ¶
type ConnectionAction struct {
Kind ConnectionActionKind
// SaveDatabase and SaveSsh.
DatabaseInput ConnectionDatabaseInput
SshInput ConnectionSshInput
// Browse and Query.
Database *string
ReadOnly bool
Sql string
RowLimit uint32
// Run and Transfer. Run defaults to 120 seconds; Query and Transfer
// require a value.
Command string
TimeoutMs *uint64
Path string
RemotePath string
Direction protocol.SshDirection
}
ConnectionAction is one captured tool request. Only the fields of its kind are read.
type ConnectionActionKind ¶
type ConnectionActionKind uint8
const ( ConnectionListDatabases ConnectionActionKind = iota ConnectionListSsh ConnectionSaveDatabase ConnectionSaveSsh ConnectionBrowse ConnectionQuery ConnectionRun ConnectionTransfer )
type ConnectionCatalog ¶
type ConnectionCatalog struct {
Bound *protocol.ConnectionResource
Databases []protocol.DatabaseProfile
Ssh []protocol.SshProfile
}
ConnectionCatalog is what one conversation may see of the saved database and SSH profiles. Credentials stay behind the Node workers.
func ReadConnectionCatalog ¶
func (ConnectionCatalog) Resources ¶
func (catalog ConnectionCatalog) Resources() []protocol.ConnectionResource
type ConnectionDatabaseInput ¶
type ConnectionDatabaseInput struct {
Connection *protocol.DatabaseID `json:"connection"`
ExpectedRevision *uint64 `json:"expected_revision"`
Name *string `json:"name"`
Engine *protocol.DatabaseEngine `json:"engine"`
Path *string `json:"path"`
Host *string `json:"host"`
Port *uint16 `json:"port"`
Username *string `json:"username"`
Database *string `json:"database"`
ReadOnly *bool `json:"read_only"`
}
ConnectionDatabaseInput is a conversation's edit of a database connection. It carries public configuration only; a stored password is preserved.
func (*ConnectionDatabaseInput) UnmarshalJSON ¶
func (value *ConnectionDatabaseInput) UnmarshalJSON(data []byte) error
type ConnectionInspection ¶
type ConnectionInspection struct {
Profile protocol.SshID
ExpectedRevision uint64
Key protocol.SshHostKey
Changed bool
}
ConnectionInspection is an unverified host key observed while a captured SSH operation connected.
type ConnectionSshInput ¶
type ConnectionSshInput struct {
Connection *protocol.SshID `json:"connection"`
ExpectedRevision *uint64 `json:"expected_revision"`
Name *string `json:"name"`
Host *string `json:"host"`
Port *uint16 `json:"port"`
Username *string `json:"username"`
Authentication *protocol.SshAuthentication `json:"authentication"`
Credential *protocol.SshCredential `json:"credential"`
KeyPath *string `json:"key_path"`
}
ConnectionSshInput is a conversation's edit of an SSH connection.
func (*ConnectionSshInput) UnmarshalJSON ¶
func (value *ConnectionSshInput) UnmarshalJSON(data []byte) error
type ConnectionStatus ¶
type ConnectionStatus struct {
Target protocol.ConnectionResource
MissingPassword bool
}
ConnectionStatus is one reachable target and whether its network database password is still missing.
func ConnectionStatuses ¶
func ConnectionStatuses(ctx context.Context, db *sql.Conn, turn protocol.TurnID, owner protocol.PluginReference, targets, captured []protocol.ConnectionResource) ([]ConnectionStatus, error)
ConnectionStatuses reports the targets the turn may reach, in request order. Targets outside the turn are omitted, not reported as faults.
type ConnectorBound ¶
type ConnectorBound struct {
Origin *protocol.PluginOrigin `json:"origin"`
Auth protocol.PluginConnectorAuth `json:"auth"`
Origins []string `json:"origins"`
Inject []protocol.PluginConnectorInjection `json:"inject"`
Targets map[string]protocol.PluginMcpDefinition `json:"targets"`
}
type ConnectorLoginCapture ¶
type ConnectorLoginCapture struct {
Attempt protocol.PluginConnectorAttempt
Package protocol.PluginInfo
Declaration protocol.PluginConnectorDeclaration
Previous uint64
Record ConnectorRecord
Input protocol.PluginConnectorInput
CLIIdentity *protocol.PluginConnectorIdentity // verified before the mutation is admitted
}
func PrepareConnectorConsent ¶
func PrepareConnectorConsent(ctx context.Context, db *sql.Conn, id protocol.PluginConnectorID, expected uint64) (ConnectorLoginCapture, error)
func PrepareConnectorLogin ¶
func PrepareConnectorLogin(ctx context.Context, db *sql.Conn, attempt protocol.RequestID, input protocol.CommandStartConnectorLoginPayload) (ConnectorLoginCapture, error)
type ConnectorRecord ¶
type ConnectorRecord struct {
ID protocol.PluginConnectorID `json:"id"`
Plugin string `json:"plugin"`
Connector string `json:"connector"`
Revision uint64 `json:"revision"`
AuthRevision uint64 `json:"auth_revision"`
Method protocol.PluginConnectorKind `json:"method"`
Enabled bool `json:"enabled"`
Fields map[string]string `json:"fields"`
Secrets map[string]protocol.Secret `json:"secrets"`
Grant *authorization.Issued `json:"grant"`
GrantRevision uint64 `json:"grant_revision"`
Identity *protocol.PluginConnectorIdentity `json:"identity"`
Bound *ConnectorBound `json:"bound"`
State protocol.PluginConnectorState `json:"state"`
CheckedAtMs *uint64 `json:"checked_at_ms"`
Login *protocol.RequestID `json:"login"`
}
func ConnectorAuthorization ¶
func ConnectorAuthorization(ctx context.Context, db *sql.Conn, reference protocol.PluginReference, connector string, selected *protocol.PluginConnectorID, turn *protocol.TurnID) (ConnectorRecord, protocol.PluginConnectorDeclaration, error)
func ReadConnectorRecord ¶
func ReadConnectorRecord(ctx context.Context, db *sql.Conn, id protocol.PluginConnectorID) (ConnectorRecord, error)
func SaveConnectorGrant ¶
func SaveConnectorGrant(ctx context.Context, db *sql.Conn, previous ConnectorRecord, grant authorization.Issued) (ConnectorRecord, error)
type Counter ¶
type Counter string
const ( CounterEvents Counter = "events" CounterPluginRecords Counter = "plugin_conversation_records" CounterAgentEvents Counter = "agent_events" CounterDispatchEvents Counter = "dispatch_events" CounterDispatchJobs Counter = "dispatch_jobs" CounterNotifications Counter = "notifications" CounterSessions Counter = "sessions" CounterTurns Counter = "turns" CounterCheckpoints Counter = "file_checkpoints" CounterArtifacts Counter = "artifacts" CounterBackground Counter = "agent_background" )
type CredentialRenewal ¶
type CredentialRenewal struct {
User protocol.User
Provider *protocol.ConversationProvider
Credential protocol.CredentialRef
Connection *ConnectorRecord
Declaration protocol.PluginConnectorDeclaration
Revision uint64
DueMs uint64
}
func ReadCredentialRenewals ¶
func ReadCredentialRenewals(ctx context.Context, db *sql.Conn, node protocol.NodeID) ([]CredentialRenewal, error)
ReadCredentialRenewals schedules currently used accounts owned here. A turn that has retained another account can renew it at its next model step.
type DatabaseBrowse ¶
type DatabaseBrowse struct {
Database *string
}
type DatabaseOperation ¶
type DatabaseOperation struct {
Profile protocol.DatabaseProfile
Password protocol.Secret
// Ssh is set only for an SSH-tunnelled profile.
Ssh *DatabaseTunnel
Query *DatabaseQuery
// Browse is set only for browse_database.
Browse *DatabaseBrowse
// Storage is the Node profile directory external SQLite must not access.
Storage string
}
DatabaseOperation is everything an external database operation needs after the storage lease is released. It carries secrets: never log, encode or return it to a controller.
func PrepareDatabase ¶
func PrepareDatabase(ctx context.Context, db *sql.Conn, storage string, command protocol.Command) (DatabaseOperation, error)
PrepareDatabase validates test_database, check_database, browse_database or query_database against the saved profile and reads its secret and tunnel material. Execute the returned operation outside the storage lease.
type DatabaseQuery ¶
type DatabaseTunnel ¶
type DatabaseTunnel struct {
Profile protocol.SshProfile
Credential protocol.SshCredential
}
type Exclusive ¶
type Exclusive struct {
// contains filtered or unexported fields
}
Exclusive drains existing reads and admitted writes and blocks new leases.
func (*Exclusive) Connection ¶
Connection is the writer's connection, which is idle while every lease is held.
func (*Exclusive) Pause ¶
Pause checkpoints and closes the database without releasing ownership between a read of its metadata and a copy of its files.
type Handle ¶
type Handle struct {
// contains filtered or unexported fields
}
Handle owns one file's writer and its independent read-only connection pool.
func OpenCodeIndex ¶
OpenCodeIndex opens one worktree's derived cache. The worktree owns the opening lock, so a recognized legacy cache can be rebuilt with no handles open and no other readers using its files.
type KnowledgeCapture ¶
type KnowledgeCapture struct {
ExternalPackage bool `json:"external_package,omitempty"`
Package *protocol.PluginReference `json:"package"`
Worktree *protocol.WorktreeID `json:"worktree"`
Session *protocol.SessionID `json:"session"`
User *protocol.UserID `json:"user,omitempty"`
Space string `json:"space,omitempty"`
Namespace string `json:"namespace,omitempty"`
}
KnowledgeCapture is the plugin scope a collection was created in.
type KnowledgeSource ¶
type KnowledgeSource struct {
Node *protocol.NodeID `json:"node,omitempty"`
Kind string `json:"kind"`
Worktree protocol.WorktreeID `json:"worktree"`
Path string `json:"path"`
Scope protocol.PluginStorageScope `json:"scope"`
Prefix string `json:"prefix"`
}
KnowledgeSource is the flat reading of a source union.
func ReadKnowledgeSource ¶
func ReadKnowledgeSource(source protocol.KnowledgeSource) KnowledgeSource
ReadKnowledgeSource flattens a validated source union.
type KnowledgeStoragePage ¶
type KnowledgeStoragePage struct {
Records []KnowledgeStorageRecord
After *string
}
KnowledgeStoragePage is one page of captured plugin values. After continues the scan; skipped keys still advance it.
func ReadKnowledgeStoragePage ¶
func ReadKnowledgeStoragePage(ctx context.Context, db *sql.Conn, stored KnowledgeStored, after *string, limit int) (KnowledgeStoragePage, error)
ReadKnowledgeStoragePage reads one page of the plugin values a storage collection indexes, in key order.
type KnowledgeStorageRecord ¶
type KnowledgeStorageRecord struct {
Key string
Revision uint64
Hash [32]byte
Title, Body string
Source protocol.PluginStorageSource
SourceRevision uint64
SourceHash [32]byte
Tags []string
}
KnowledgeStorageRecord is one plugin value captured as a knowledge source: the indexed entry and the value its text was read from.
func ReadKnowledgeStorageRecord ¶
func ReadKnowledgeStorageRecord(ctx context.Context, db *sql.Conn, stored KnowledgeStored, key string) (*KnowledgeStorageRecord, error)
ReadKnowledgeStorageRecord captures one plugin value of a storage collection, or nil when it no longer exists.
func (KnowledgeStorageRecord) Identity ¶
func (record KnowledgeStorageRecord) Identity() string
Identity is the source revision the index and citations carry. It changes with the entry, its index data and the text it points to.
type KnowledgeStored ¶
type KnowledgeStored struct {
Collection protocol.KnowledgeCollection `json:"collection"`
Capture KnowledgeCapture `json:"capture"`
Automatic bool `json:"automatic"`
}
KnowledgeStored is one durable collection with its captured scope. The retrieval index is derived from it.
func AllowedKnowledge ¶
func AllowedKnowledge(ctx context.Context, db *sql.Conn, request protocol.Request) ([]KnowledgeStored, error)
AllowedKnowledge returns the collections a request may read. Query plans intersect these durable grants before reading the derived index.
func ReadKnowledgeCatalog ¶
ReadKnowledgeCatalog reads every stored collection for the indexing worker.
func RemoveOrphanedKnowledge ¶
RemoveOrphanedKnowledge deletes the collections whose owner was removed and returns the remaining catalog. Their derived index goes with the next indexing pass. Registering the same worktree, project or package again does not bring a collection back.
type LocalModelCatalog ¶
type LocalModelCatalog struct {
Settings protocol.ModelsLocalSettings
Definitions map[string]*protocol.ModelsDefinition
}
LocalModelCatalog is the durable local model configuration: the settings and every pinned or registered definition by identity.
func ReadLocalModelCatalog ¶
ReadLocalModelCatalog reads the settings and joins registered definitions with the pinned builtins.
type MediaAssignment ¶
type MediaAssignment struct {
Model string `json:"model"`
// Provider is absent when the bound model could not run at admission. The
// purpose then has no model; it never falls back to another one.
Provider *protocol.ConversationProvider `json:"provider,omitempty"`
}
MediaAssignment is one purpose's binding as captured when a turn was admitted.
type MediaCapture ¶
type MediaCapture map[protocol.MediaKind]MediaAssignment
MediaCapture holds the assigned purposes only. An absent purpose follows the conversation model.
func CaptureMedia ¶
CaptureMedia freezes the per-purpose assignments for one admitted turn.
type Pinned ¶
type Pinned struct {
// contains filtered or unexported fields
}
Pinned is a read transaction that began under an exclusive lease and outlives it. It keeps one lease, so the database stays open until Close.
func (*Pinned) Connection ¶
Connection reads the pinned state.
type PluginValueRank ¶
PluginValueRank is one keyword hit of a semantic plan: the key and the revision it was ranked at.
type PreparedPaths ¶
PreparedPaths contains the observations and effects made outside SQL transactions: the canonical directory, and whether a project removal already closed one of the project's terminals.
func PreparePaths ¶
func PreparePaths(command protocol.Command) (PreparedPaths, error)
type ProjectRemoval ¶
type ProjectRemoval struct {
Terminals []protocol.TerminalInfo
Sessions []protocol.SessionID
}
ProjectRemoval lists what the Node closes before a removal is recorded.
func PlanProjectRemoval ¶
func PlanProjectRemoval(ctx context.Context, db *sql.Conn, expected protocol.Project) (ProjectRemoval, error)
PlanProjectRemoval validates a removal and lists the project's terminals that are not closed and its sessions, whose background commands stop. A stale or busy removal fails here, before anything is closed.
type ProviderLoginCapture ¶
type ProviderLoginCapture struct {
Attempt protocol.ConversationLoginAttempt
Provider protocol.ConversationProvider
Target providers.AccountTarget
}
func CaptureProviderLogin ¶
type ProviderRenewal ¶
type ProviderRenewal struct {
Capture ProviderLoginCapture
Credential protocol.CredentialID
Revision uint64
Grant providers.AccountGrant
}
func BeginProviderRenewal ¶
func BeginProviderRenewal(ctx context.Context, db *sql.Conn, node protocol.NodeID, provider protocol.ConversationProvider, reference protocol.CredentialRef, now time.Time) (*ProviderRenewal, error)
func BeginScheduledProviderRenewal ¶
func BeginScheduledProviderRenewal(ctx context.Context, db *sql.Conn, node protocol.NodeID, provider protocol.ConversationProvider, reference protocol.CredentialRef, now time.Time) (*ProviderRenewal, error)
BeginScheduledProviderRenewal rechecks selection in the write transaction that admits the refresh so a stale timer cannot renew a retired account.
type ProviderResourceCapture ¶
type ProviderResourceCapture struct {
Provider protocol.ConversationProvider
Endpoint protocol.PluginModelAuthEndpoint
Secret protocol.Secret
Credential protocol.Credential
}
func CaptureProviderResource ¶
func CaptureProviderResource(ctx context.Context, db *sql.Conn, node protocol.NodeID, caller protocol.PluginReference, id protocol.ProviderID, revision uint64, name string, mutation bool) (ProviderResourceCapture, error)
type ResolvedPluginSettings ¶
type ResolvedPluginSettings struct {
Values map[string]json.RawMessage
Secrets map[string]protocol.Secret
MCP json.RawMessage
MCPAllowed map[string]bool
MCPTargets map[string]string
}
func ResolvePluginSettings ¶
func ResolvePluginSettings(ctx context.Context, db *sql.Conn, reference protocol.PluginReference) (ResolvedPluginSettings, error)
type SemanticPlan ¶
type SemanticPlan struct {
Package protocol.PluginReference
Space string
Collections []KnowledgeStored
Keyword []PluginValueRank
Eligible map[string]bool
Embedding protocol.ModelsLocalChoice
}
SemanticPlan captures what one plugin storage search may rank: the package, its automatic collections, the keyword ranking and the keys whose text is indexed.
func PrepareSemanticSearch ¶
func PrepareSemanticSearch(ctx context.Context, db *sql.Conn, request protocol.Request) (SemanticPlan, error)
PrepareSemanticSearch captures the plan of one plugin storage search. A keyword search, or one without text, selects no collection.
type SemanticSelection ¶
type SemanticSelection struct {
Keys []string
Stamps []SemanticStamp
Mode protocol.KnowledgeMode
Indexing bool
}
SemanticSelection is the fused key order of one search.
type SemanticStamp ¶
type SemanticStamp struct {
Collection protocol.KnowledgeID
Key string
Revision string
}
SemanticStamp pins a semantic hit to the source revision it was indexed at.
type SessionLeftover ¶
SessionLeftover is the worktree a removed session leaves without a user.
func ReadSessionLeftovers ¶
func ReadSessionLeftovers(ctx context.Context, db *sql.Conn, sessions []protocol.SessionID) ([]SessionLeftover, error)
ReadSessionLeftovers reports, for each of sessions that is removed, the worktrees it used, now or in an earlier revision, that no remaining session uses or used. A main worktree and one whose removal is already recorded are never a leftover.
type SubagentListOptions ¶ added in v0.2.3
type SubagentPage ¶ added in v0.2.3
type SubagentPage struct {
Subagents []SubagentSummary `json:"subagents"`
NextBefore *string `json:"next_before"`
}
func ListSubagents ¶ added in v0.2.3
func ListSubagents(ctx context.Context, db *sql.Conn, parent protocol.TurnID, options SubagentListOptions) (SubagentPage, error)
ListSubagents pages by immutable session creation order, not by the execution currently selected for that session. Only its founding delegation grants a parent access; follow-ups across parent turns do not create new entries.
type SubagentSummary ¶ added in v0.2.3
type SubagentSummary struct {
Session protocol.SessionID `json:"session"`
Turn protocol.TurnID `json:"turn"`
Title string `json:"title,omitempty"`
Role *subagentRole `json:"role,omitempty"`
Status protocol.ConversationStatus `json:"status"`
Paused bool `json:"paused,omitempty"`
StopReason string `json:"stop_reason,omitempty"`
}
type TurnFacts ¶
type TurnFacts struct {
// Usage is the turn's own model usage plus that of the children it
// delegated; SessionUsage is the same for every turn of the session.
Usage TurnTokens
SessionUsage TurnTokens
// Running counts background work that will start a notice turn when it
// ends; Pending counts ended results no turn has taken yet.
Running int
Pending int
Chain AutomaticChain
}
TurnFacts is what a session's stored state says once a turn has ended. A package loop decides from it whether to continue, wait or pause.
func ReadTurnFacts ¶
func ReadTurnFacts(ctx context.Context, db *sql.Conn, session protocol.SessionID, turn protocol.TurnID) (TurnFacts, error)
ReadTurnFacts reads the facts of an ended turn in the caller's transaction. Usage follows the statistics selection: Sailry's own turns and the child turns delegated from them.
type TurnTokens ¶
type TurnTokens struct {
Input uint64 `json:"input"`
Output uint64 `json:"output"`
CachedInput uint64 `json:"cached_input"`
Reasoning uint64 `json:"reasoning"`
}
TurnTokens totals recorded model usage. Cached input and reasoning are parts of Input and Output, not additions to them.
type WorkspaceGitCapture ¶
WorkspaceGitCapture contains only durable resource identity. Filesystem and Git observations belong to the service after leaving the writer transaction.
func PrepareWorkspaceWorktreeRemoval ¶
func PrepareWorkspaceWorktreeRemoval(ctx context.Context, db *sql.Conn, id protocol.WorktreeID) (WorkspaceGitCapture, error)
func ReadWorkspaceGitCapture ¶
func ReadWorkspaceGitCapture(ctx context.Context, db *sql.Conn, id protocol.WorktreeID) (WorkspaceGitCapture, error)
Source Files
¶
- access.go
- activity.go
- agent_background_commands.go
- agent_background_delivery.go
- agent_background_records.go
- agent_blobs.go
- agent_commands.go
- agent_credential_wait.go
- agent_delegation.go
- agent_delegation_control.go
- agent_delegation_guidance.go
- agent_delegation_list.go
- agent_presentation.go
- agent_references.go
- agent_references_directory.go
- agent_references_projection.go
- agent_review.go
- agent_runs.go
- agent_state.go
- agent_statistics.go
- agent_statistics_context.go
- agent_statistics_observations.go
- agent_tasks.go
- agent_turn_facts.go
- agent_usage.go
- agent_usage_query.go
- approval_commands.go
- approval_rules.go
- artifacts_reads.go
- artifacts_write.go
- attachment_drafts.go
- attachments_metadata.go
- backup.go
- backup_settings.go
- backup_settings_restore.go
- checkpoints_diff.go
- checkpoints_records.go
- checkpoints_tool_detail.go
- code_index.go
- code_index_cache.go
- commands.go
- compaction.go
- configuration_cache.go
- configuration_follow.go
- configuration_follow_plugins.go
- configuration_users.go
- connection_agent.go
- connection_management.go
- connection_plugins.go
- connection_sessions.go
- connector_commands.go
- connector_consent.go
- connectors.go
- controller_login.go
- conversation_assets.go
- conversation_assets_markdown.go
- conversation_boundaries.go
- conversation_branches.go
- conversation_children.go
- conversation_history.go
- conversation_images.go
- conversation_plan.go
- conversation_projection.go
- conversation_reads.go
- conversation_settled.go
- conversation_sources.go
- conversation_tool_content.go
- conversation_tool_display.go
- conversation_tool_summary.go
- conversation_tools.go
- counter_validation.go
- credential_renewal_recovery.go
- credential_renewals.go
- database_credentials.go
- database_operations.go
- database_profiles.go
- defaults.go
- defaults_pending.go
- dispatch.go
- dispatch_capture.go
- dispatch_events.go
- dispatch_handlers.go
- dispatch_jobs.go
- dispatch_location.go
- dispatch_native.go
- dispatch_schedules.go
- dispatch_users.go
- driver.go
- driver_unix.go
- elicitation.go
- event_access.go
- features.go
- host_paths.go
- identity_captures.go
- identity_commands.go
- identity_directory.go
- identity_host_removals.go
- identity_legacy_direction.go
- identity_members.go
- identity_peers.go
- knowledge.go
- knowledge_collections.go
- knowledge_identity.go
- knowledge_semantic.go
- knowledge_sources.go
- knowledge_storage.go
- lease.go
- link_peers.go
- local_models.go
- media.go
- notifications.go
- notifications_system.go
- peer_identity.go
- personal_settings.go
- pinned.go
- plugin_activity.go
- plugin_authority.go
- plugin_cards.go
- plugin_cards_actions.go
- plugin_catalog_versions.go
- plugin_collection.go
- plugin_commands.go
- plugin_connection.go
- plugin_dispatch.go
- plugin_external_browser.go
- plugin_mcp.go
- plugin_message_command.go
- plugin_models.go
- plugin_plan.go
- plugin_session_scope.go
- plugin_status.go
- plugin_status_diagnostics.go
- plugin_terminals.go
- plugin_users.go
- plugin_versions.go
- plugin_views.go
- plugins_conversation.go
- plugins_inventory.go
- plugins_search.go
- plugins_settings.go
- plugins_values.go
- principal.go
- projects.go
- provider_catalog.go
- provider_commands.go
- provider_completion.go
- provider_credentials.go
- provider_discovery.go
- provider_login.go
- provider_login_commands.go
- provider_package_presets.go
- provider_presets.go
- provider_quota.go
- provider_resources.go
- provider_scores.go
- provider_users.go
- python.go
- question_commands.go
- queue_commands.go
- records.go
- resource_catalog.go
- roles.go
- runtime_credentials.go
- schema.go
- schema_definition.go
- schema_plan.go
- schemas.go
- search_settings.go
- session_assistants.go
- session_forwarding.go
- session_permissions.go
- session_removal.go
- session_roles.go
- session_workspaces.go
- sessions.go
- settings.go
- snapshot.go
- ssh_profiles.go
- ssh_trust.go
- storage_path.go
- system_settings.go
- team_settings.go
- terminal_settings.go
- terminals.go
- upgrades.go
- users.go
- validation.go
- workspace_approvals.go
- workspace_files_reads.go
- workspace_git_capture.go
- workspace_hooks_settings.go
- workspace_process_records.go
- workspace_process_sandbox.go
- workspace_projects_operations.go
- workspace_search_model.go
- workspace_web_settings.go
- writer.go