gateway

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 103 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultListenAddr = "localhost:8090"

DefaultListenAddr is the default gateway listen address.

View Source
const DefaultMCPProbeStaleAfter = 5 * time.Minute

DefaultMCPProbeStaleAfter bounds how long an MCP probe remains fresh.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, cfg Config) error

Serve starts the agent gateway HTTP server and blocks until shutdown.

Types

type Config

type Config struct {
	CodingGitHubClientID      string
	CodingGitHubClientSecret  string
	CodingGitHubEncryptionKey string
	Addr                      string
	PostgresDSN               string
	ExternalJWTJWKSURL        string
	ExternalJWTIssuer         string
	ExternalJWTAudience       string
	InternalK8sTokenAudience  string
	TargetOverride            string
	FilesystemTargetOverride  string
	AgentImage                string
	AgentTraceEndpoint        string
	OpenBaoAddr               string
	OpenBaoSecretMountPath    string
	OpenBaoK8sAuthRole        string
	OpenBaoK8sAuthMountPath   string
	OpenBaoK8sAuthTokenPath   string
	MCPProbeStaleAfter        time.Duration
	AllowedWebOrigins         []string
	SkillStore                skill.Config
}

Config describes how to start the gateway.

type Service

type Service struct {
	gatewayapi.Unimplemented
	// contains filtered or unexported fields
}

Service implements the agent gateway HTTP API.

func (*Service) AdoptCodingWorktree added in v0.22.0

func (s *Service) AdoptCodingWorktree(w http.ResponseWriter, r *http.Request, projectId string)

AdoptCodingWorktree registers only a freshly verified project worktree.

func (*Service) CreateAgent

func (s *Service) CreateAgent(w http.ResponseWriter, r *http.Request)

CreateAgent handles POST /api/agent.

func (*Service) CreateAgentDirectory

func (s *Service) CreateAgentDirectory(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath)

CreateAgentDirectory handles POST /api/agent/{agentName}/fs/directory.

func (*Service) CreateAgentFile

func (s *Service) CreateAgentFile(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath)

CreateAgentFile handles POST /api/agent/{agentName}/fs/file.

func (*Service) CreateCodingProject added in v0.22.0

func (s *Service) CreateCodingProject(w http.ResponseWriter, r *http.Request)

CreateCodingProject records a personal repository without provisioning a checkout.

func (*Service) CreateDashboard

CreateDashboard validates and stores an immutable dashboard definition.

func (*Service) CreateInferencePool

func (s *Service) CreateInferencePool(w http.ResponseWriter, r *http.Request, params gatewayapi.CreateInferencePoolParams)

CreateInferencePool handles POST /api/inference/pool.

func (*Service) CreateInferenceProvider

func (s *Service) CreateInferenceProvider(w http.ResponseWriter, r *http.Request, params gatewayapi.CreateInferenceProviderParams)

CreateInferenceProvider handles POST /api/inference/provider.

func (*Service) CreateInferenceProviderOAuthTicket

func (s *Service) CreateInferenceProviderOAuthTicket(w http.ResponseWriter, r *http.Request, params gatewayapi.CreateInferenceProviderOAuthTicketParams)

CreateInferenceProviderOAuthTicket handles POST /api/inference/provider/oauth-ticket.

func (*Service) CreateMCPConnection

func (s *Service) CreateMCPConnection(w http.ResponseWriter, r *http.Request, params gatewayapi.CreateMCPConnectionParams)

CreateMCPConnection handles POST /api/mcp-connection.

func (*Service) CreateSandbox

func (s *Service) CreateSandbox(w http.ResponseWriter, r *http.Request, params gatewayapi.CreateSandboxParams)

CreateSandbox handles POST /api/sandbox.

func (*Service) CreateSkill

func (s *Service) CreateSkill(w http.ResponseWriter, r *http.Request, params gatewayapi.CreateSkillParams)

CreateSkill handles POST /api/skill.

func (*Service) CreateWorkflow

func (s *Service) CreateWorkflow(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath)

CreateWorkflow handles POST /api/workflow/{agentName}.

func (*Service) CreateWorkflowRun

func (s *Service) CreateWorkflowRun(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName, scheduleName gatewayapi.WorkflowScheduleName)

CreateWorkflowRun handles POST /api/workflow/{agentName}/{workflowName}/schedule/{scheduleName}/run.

func (*Service) CreateWorkflowSchedule

func (s *Service) CreateWorkflowSchedule(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName)

CreateWorkflowSchedule handles POST /api/workflow/{agentName}/{workflowName}/schedule.

func (*Service) CreateWorkspace

func (s *Service) CreateWorkspace(w http.ResponseWriter, r *http.Request)

CreateWorkspace handles POST /api/workspace.

func (*Service) DeleteAgent

func (s *Service) DeleteAgent(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath)

DeleteAgent handles DELETE /api/agent/{agentName}.

func (*Service) DeleteAgentEntry

DeleteAgentEntry handles DELETE /api/agent/{agentName}/fs/entry.

func (*Service) DeleteAgentMutableSkills

func (s *Service) DeleteAgentMutableSkills(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, _ gatewayapi.DeleteAgentMutableSkillsParams)

DeleteAgentMutableSkills handles DELETE /api/agent/{agentName}/skill.

func (*Service) DeleteAgentShare

func (s *Service) DeleteAgentShare(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, shareID gatewayapi.AgentShareIDPath)

DeleteAgentShare handles DELETE /api/agent/{agentName}/share/{shareId}.

func (*Service) DeleteCodingProject added in v0.22.0

func (s *Service) DeleteCodingProject(w http.ResponseWriter, r *http.Request, projectId string)

DeleteCodingProject stops project work and removes its managed files on every agent.

func (*Service) DeleteDashboard

DeleteDashboard removes a dashboard definition and all stored data.

func (*Service) DeleteImmutableSkills

func (s *Service) DeleteImmutableSkills(w http.ResponseWriter, r *http.Request, params gatewayapi.DeleteImmutableSkillsParams)

DeleteImmutableSkills handles DELETE /api/skill.

func (*Service) DeleteInferencePool

DeleteInferencePool handles DELETE /api/inference/pool/{poolName}.

func (*Service) DeleteInferenceProvider

DeleteInferenceProvider handles DELETE /api/inference/provider/{providerName}.

func (*Service) DeleteMCPConnection

DeleteMCPConnection handles DELETE /api/mcp-connection/{name}.

func (*Service) DeleteSandbox

func (s *Service) DeleteSandbox(w http.ResponseWriter, r *http.Request, sandboxName gatewayapi.SandboxName, params gatewayapi.DeleteSandboxParams)

DeleteSandbox handles DELETE /api/sandbox/{sandboxName}.

func (*Service) DeleteSecret

func (s *Service) DeleteSecret(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath)

DeleteSecret handles POST /api/secret/{agentName}/delete.

func (*Service) DeleteSkill

func (s *Service) DeleteSkill(w http.ResponseWriter, r *http.Request, skillName gatewayapi.SkillNamePath, params gatewayapi.DeleteSkillParams)

DeleteSkill handles DELETE /api/skill/{skillName}.

func (*Service) DeleteWorkflowRun

func (s *Service) DeleteWorkflowRun(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName, runName gatewayapi.WorkflowRunName)

DeleteWorkflowRun handles DELETE /api/workflow/{agentName}/{workflowName}/run/{runName}.

func (*Service) DeleteWorkflowSchedule

func (s *Service) DeleteWorkflowSchedule(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName, scheduleName gatewayapi.WorkflowScheduleName)

DeleteWorkflowSchedule handles DELETE /api/workflow/{agentName}/{workflowName}/schedule/{scheduleName}.

func (*Service) DeleteWorkflows

func (s *Service) DeleteWorkflows(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath)

DeleteWorkflows handles DELETE /api/workflow/{agentName}.

func (*Service) EnsureTenant

func (s *Service) EnsureTenant(w http.ResponseWriter, r *http.Request)

EnsureTenant handles PUT /api/tenant.

func (*Service) ExportAgentMutableSkills

func (s *Service) ExportAgentMutableSkills(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, _ gatewayapi.ExportAgentMutableSkillsParams)

ExportAgentMutableSkills handles POST /api/agent/{agentName}/skill/export.

func (*Service) ExportImmutableSkills

func (s *Service) ExportImmutableSkills(w http.ResponseWriter, r *http.Request, params gatewayapi.ExportImmutableSkillsParams)

ExportImmutableSkills handles POST /api/skill/export.

func (*Service) GetAgentOwner

func (s *Service) GetAgentOwner(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath)

GetAgentOwner handles GET /api/agent/{agentName}/owner.

func (*Service) GetChatSessionPreference

func (s *Service) GetChatSessionPreference(w http.ResponseWriter, r *http.Request)

GetChatSessionPreference handles GET /api/chat-session-preference.

func (*Service) GetCodingOperation added in v0.22.0

func (s *Service) GetCodingOperation(w http.ResponseWriter, r *http.Request, operationId string)

GetCodingOperation reads a persisted result on any gateway replica.

func (*Service) GetCodingProject added in v0.22.0

func (s *Service) GetCodingProject(w http.ResponseWriter, r *http.Request, projectId string)

GetCodingProject includes threads only on agents the caller can use.

func (*Service) GetCodingThread added in v0.22.0

func (s *Service) GetCodingThread(w http.ResponseWriter, r *http.Request, agentName, sessionId string)

GetCodingThread returns a binding for a session on an accessible agent.

func (*Service) GetDashboard

GetDashboard returns one dashboard definition and its widget revisions.

func (*Service) GetEventTrailEvent

GetEventTrailEvent handles GET /api/event-trail-event/{eventId}.

func (*Service) GetInferencePool

GetInferencePool handles GET /api/inference/pool/{poolName}.

func (*Service) GetInferencePoolUsage

GetInferencePoolUsage handles GET /api/inference/pool/{poolName}/usage.

func (*Service) GetInferenceProvider

GetInferenceProvider handles GET /api/inference/provider/{providerName}.

func (*Service) GetInferenceProviderUsage

func (s *Service) GetInferenceProviderUsage(w http.ResponseWriter, r *http.Request, providerName gatewayapi.InferenceProviderNamePath, params gatewayapi.GetInferenceProviderUsageParams)

GetInferenceProviderUsage handles GET /api/inference/provider/{providerName}/usage.

func (*Service) GetMCPConnection

GetMCPConnection handles GET /api/mcp-connection/{name}.

func (*Service) GetMCPGraph

func (s *Service) GetMCPGraph(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, params gatewayapi.GetMCPGraphParams)

GetMCPGraph handles GET /api/lens/{agentName}/mcp/graph.

func (*Service) GetSkillReferences

func (s *Service) GetSkillReferences(w http.ResponseWriter, r *http.Request, skillName gatewayapi.SkillNamePath, params gatewayapi.GetSkillReferencesParams)

GetSkillReferences handles GET /api/skill/{skillName}/references.

func (*Service) GetSpanDetail

func (s *Service) GetSpanDetail(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, sessionID string, traceID gatewayapi.TraceID, spanID gatewayapi.SpanID)

GetSpanDetail handles GET /api/lens/{agentName}/{sessionID}/trace/{traceID}/span/{spanID}.

func (*Service) GetTenant

func (s *Service) GetTenant(w http.ResponseWriter, r *http.Request)

GetTenant handles GET /api/tenant.

func (*Service) GetWorkflow

func (s *Service) GetWorkflow(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName)

GetWorkflow handles GET /api/workflow/{agentName}/{workflowName}.

func (*Service) GetWorkflowRun

func (s *Service) GetWorkflowRun(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName, runName gatewayapi.WorkflowRunName)

GetWorkflowRun handles GET /api/workflow/{agentName}/{workflowName}/run/{runName}.

func (*Service) GetWorkspace

func (s *Service) GetWorkspace(w http.ResponseWriter, r *http.Request, workspaceID gatewayapi.WorkspaceIDPath)

GetWorkspace handles GET /api/workspace/{workspaceId}.

func (*Service) ImportImmutableSkills

func (s *Service) ImportImmutableSkills(w http.ResponseWriter, r *http.Request, params gatewayapi.ImportImmutableSkillsParams)

ImportImmutableSkills handles POST /api/skill/import.

func (*Service) ImportMutableSkills

func (s *Service) ImportMutableSkills(w http.ResponseWriter, r *http.Request, _ gatewayapi.ImportMutableSkillsParams)

ImportMutableSkills handles POST /api/agent/skill/import.

func (*Service) InvokeWorkflowWebhook

func (s *Service) InvokeWorkflowWebhook(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName, params gatewayapi.InvokeWorkflowWebhookParams)

InvokeWorkflowWebhook handles POST /api/workflow/{agentName}/{workflowName}/webhook.

func (*Service) ListAgentAccessTargets

func (s *Service) ListAgentAccessTargets(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath)

ListAgentAccessTargets handles GET /api/agent/{agentName}/access-targets.

func (*Service) ListAgentDashboards

func (s *Service) ListAgentDashboards(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, params gatewayapi.ListAgentDashboardsParams)

ListAgentDashboards lists dashboards owned by one Agent.

func (*Service) ListAgentMutableSkills

ListAgentMutableSkills handles GET /api/agent/{agentName}/skill.

func (*Service) ListAgentShares

func (s *Service) ListAgentShares(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, params gatewayapi.ListAgentSharesParams)

ListAgentShares lists grants and their capabilities for an agent.

func (*Service) ListAgentWorkflowSchedules

func (s *Service) ListAgentWorkflowSchedules(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, params gatewayapi.ListAgentWorkflowSchedulesParams)

ListAgentWorkflowSchedules handles GET /api/workflow/{agentName}/schedule.

func (*Service) ListAgents

func (s *Service) ListAgents(w http.ResponseWriter, r *http.Request, params gatewayapi.ListAgentsParams)

ListAgents handles GET /api/agent.

func (*Service) ListChatInputs added in v0.22.0

func (s *Service) ListChatInputs(w http.ResponseWriter, r *http.Request, agent string, session string)

ListChatInputs returns the shared queue and only the caller's recovered drafts.

func (*Service) ListChatSessions

func (s *Service) ListChatSessions(w http.ResponseWriter, r *http.Request, params gatewayapi.ListChatSessionsParams)

ListChatSessions handles GET /api/chat-session.

func (*Service) ListCodingOperations added in v0.22.0

func (s *Service) ListCodingOperations(w http.ResponseWriter, r *http.Request)

ListCodingOperations restores running and recent results after navigation.

func (*Service) ListCodingProjects added in v0.22.0

func (s *Service) ListCodingProjects(w http.ResponseWriter, r *http.Request)

ListCodingProjects lists only projects owned by the caller in this workspace.

func (*Service) ListCodingRefs added in v0.22.0

func (s *Service) ListCodingRefs(w http.ResponseWriter, r *http.Request, projectId string, params gatewayapi.ListCodingRefsParams)

ListCodingRefs serves cached repository discovery without waiting for GitHub.

func (*Service) ListCodingRepositories added in v0.22.0

func (s *Service) ListCodingRepositories(w http.ResponseWriter, r *http.Request, params gatewayapi.ListCodingRepositoriesParams)

ListCodingRepositories lists repositories using only the caller's installation access.

func (*Service) ListDashboardTableRows

ListDashboardTableRows returns one page of validated table rows.

func (*Service) ListDashboards

func (s *Service) ListDashboards(w http.ResponseWriter, r *http.Request, params gatewayapi.ListDashboardsParams)

ListDashboards lists dashboards visible in the selected Workspace.

func (*Service) ListEventTrailEvents

func (s *Service) ListEventTrailEvents(w http.ResponseWriter, r *http.Request, params gatewayapi.ListEventTrailEventsParams)

ListEventTrailEvents handles POST /api/event-trail-event.

func (*Service) ListFileObservability

func (s *Service) ListFileObservability(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, params gatewayapi.ListFileObservabilityParams)

ListFileObservability handles raw file events for one Agent.

func (*Service) ListFileObservabilitySummary

func (s *Service) ListFileObservabilitySummary(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, params gatewayapi.ListFileObservabilitySummaryParams)

ListFileObservabilitySummary handles aggregated file events for one Agent.

func (*Service) ListImmutableSkillSummaries

func (s *Service) ListImmutableSkillSummaries(w http.ResponseWriter, r *http.Request, params gatewayapi.ListImmutableSkillSummariesParams)

ListImmutableSkillSummaries handles GET /api/skill/summary.

func (*Service) ListImmutableSkillVersions

func (s *Service) ListImmutableSkillVersions(w http.ResponseWriter, r *http.Request, skillName gatewayapi.SkillNamePath, params gatewayapi.ListImmutableSkillVersionsParams)

ListImmutableSkillVersions handles GET /api/skill/{skillName}/version.

func (*Service) ListInferenceModelSuggestions

func (s *Service) ListInferenceModelSuggestions(w http.ResponseWriter, r *http.Request, catalogProvider string, params gatewayapi.ListInferenceModelSuggestionsParams)

ListInferenceModelSuggestions handles the provider model-catalog endpoint.

func (*Service) ListInferencePools

func (s *Service) ListInferencePools(w http.ResponseWriter, r *http.Request, params gatewayapi.ListInferencePoolsParams)

ListInferencePools handles GET /api/inference/pool.

func (*Service) ListInferenceProviderCatalog

func (s *Service) ListInferenceProviderCatalog(w http.ResponseWriter, r *http.Request, params gatewayapi.ListInferenceProviderCatalogParams)

ListInferenceProviderCatalog handles GET /api/inference/provider/catalog.

func (*Service) ListInferenceProviders

func (s *Service) ListInferenceProviders(w http.ResponseWriter, r *http.Request, params gatewayapi.ListInferenceProvidersParams)

ListInferenceProviders handles GET /api/inference/provider.

func (*Service) ListMCPConnections

func (s *Service) ListMCPConnections(w http.ResponseWriter, r *http.Request, params gatewayapi.ListMCPConnectionsParams)

ListMCPConnections handles GET /api/mcp-connection.

func (*Service) ListNetworkObservability

func (s *Service) ListNetworkObservability(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, params gatewayapi.ListNetworkObservabilityParams)

ListNetworkObservability handles raw network events for one Agent.

func (*Service) ListNetworkObservabilitySummary

func (s *Service) ListNetworkObservabilitySummary(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, params gatewayapi.ListNetworkObservabilitySummaryParams)

ListNetworkObservabilitySummary handles aggregated network events for one Agent.

func (*Service) ListProcessObservability

func (s *Service) ListProcessObservability(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, params gatewayapi.ListProcessObservabilityParams)

ListProcessObservability handles raw process events for one Agent.

func (*Service) ListProcessObservabilitySummary

func (s *Service) ListProcessObservabilitySummary(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, params gatewayapi.ListProcessObservabilitySummaryParams)

ListProcessObservabilitySummary handles aggregated process events for one Agent.

func (*Service) ListSandboxes

func (s *Service) ListSandboxes(w http.ResponseWriter, r *http.Request, params gatewayapi.ListSandboxesParams)

ListSandboxes handles GET /api/sandbox.

func (*Service) ListSecrets

func (s *Service) ListSecrets(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, params gatewayapi.ListSecretsParams)

ListSecrets handles GET /api/secret/{agentName}.

func (*Service) ListSkills

func (s *Service) ListSkills(w http.ResponseWriter, r *http.Request, params gatewayapi.ListSkillsParams)

ListSkills handles GET /api/skill.

func (*Service) ListSpans

func (s *Service) ListSpans(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, sessionID string, traceID gatewayapi.TraceID, params gatewayapi.ListSpansParams)

ListSpans handles GET /api/lens/{agentName}/{sessionID}/trace/{traceID}/span.

func (*Service) ListTraceSessions

func (s *Service) ListTraceSessions(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath, sessionID string, params gatewayapi.ListTraceSessionsParams)

ListTraceSessions handles GET /api/lens/{agentName}/{sessionID}/trace.

func (*Service) ListWorkflowRuns

func (s *Service) ListWorkflowRuns(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName, params gatewayapi.ListWorkflowRunsParams)

ListWorkflowRuns handles GET /api/workflow/{agentName}/{workflowName}/run.

func (*Service) ListWorkflowSchedules

func (s *Service) ListWorkflowSchedules(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName, params gatewayapi.ListWorkflowSchedulesParams)

ListWorkflowSchedules handles GET /api/workflow/{agentName}/{workflowName}/schedule.

func (*Service) ListWorkflowSummaries

func (s *Service) ListWorkflowSummaries(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath)

ListWorkflowSummaries handles GET /api/workflow/{agentName}.

func (*Service) ListWorkflowWebhookTriggers

func (s *Service) ListWorkflowWebhookTriggers(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, params gatewayapi.ListWorkflowWebhookTriggersParams)

ListWorkflowWebhookTriggers handles GET /api/workflow/{agentName}/webhook.

func (*Service) ListWorkspaceInheritedResources

func (s *Service) ListWorkspaceInheritedResources(w http.ResponseWriter, r *http.Request, workspaceID gatewayapi.WorkspaceIDPath, resourceType gatewayapi.InheritedResourceTypePath, params gatewayapi.ListWorkspaceInheritedResourcesParams)

ListWorkspaceInheritedResources handles GET /api/workspace/{workspaceId}/inherited-resource/{resourceType}.

func (*Service) ListWorkspaceMemberCandidates

func (s *Service) ListWorkspaceMemberCandidates(w http.ResponseWriter, r *http.Request)

ListWorkspaceMemberCandidates handles GET /api/workspace/member-candidate.

func (*Service) ListWorkspaces

func (s *Service) ListWorkspaces(w http.ResponseWriter, r *http.Request, params gatewayapi.ListWorkspacesParams)

ListWorkspaces handles GET /api/workspace.

func (*Service) PatchWorkflowRunNodeStatus

func (s *Service) PatchWorkflowRunNodeStatus(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName, runName gatewayapi.WorkflowRunName, nodeName gatewayapi.WorkflowNodeName)

PatchWorkflowRunNodeStatus handles PATCH /api/workflow/{agentName}/{workflowName}/run/{runName}/nodes/{nodeName}/status.

func (*Service) PatchWorkflowRunStatus

func (s *Service) PatchWorkflowRunStatus(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName, runName gatewayapi.WorkflowRunName)

PatchWorkflowRunStatus handles PATCH /api/workflow/{agentName}/{workflowName}/run/{runName}/status.

func (*Service) PrepareCodingCheckout added in v0.22.0

func (s *Service) PrepareCodingCheckout(w http.ResponseWriter, r *http.Request)

PrepareCodingCheckout prepares or reuses an owned checkout for native sessions.

func (*Service) PreviewImmutableSkillImport

func (s *Service) PreviewImmutableSkillImport(w http.ResponseWriter, r *http.Request, params gatewayapi.PreviewImmutableSkillImportParams)

PreviewImmutableSkillImport handles POST /api/skill/import/preview.

func (*Service) PreviewMutableSkillImport

func (s *Service) PreviewMutableSkillImport(w http.ResponseWriter, r *http.Request, _ gatewayapi.PreviewMutableSkillImportParams)

PreviewMutableSkillImport handles POST /api/agent/skill/import/preview.

func (*Service) PublishDashboardData

PublishDashboardData validates and stores one idempotent widget update.

func (*Service) PutSecret

PutSecret handles POST /api/secret/{agentName}.

func (*Service) QueryDashboard

QueryDashboard reads chart data for a dashboard over one time range.

func (*Service) ReadAgentFile

ReadAgentFile handles GET /api/agent/{agentName}/fs/file.

func (*Service) ReadAgentFileRaw

ReadAgentFileRaw handles GET /api/agent/{agentName}/fs/raw.

func (*Service) RefreshCodingRepository added in v0.22.0

func (s *Service) RefreshCodingRepository(w http.ResponseWriter, r *http.Request, projectId string, params gatewayapi.RefreshCodingRepositoryParams)

RefreshCodingRepository schedules a refresh without extending the UI request.

func (*Service) RefreshInferenceProviderModels

func (s *Service) RefreshInferenceProviderModels(w http.ResponseWriter, r *http.Request, providerName gatewayapi.InferenceProviderNamePath, params gatewayapi.RefreshInferenceProviderModelsParams)

RefreshInferenceProviderModels handles GET /api/inference/provider/{providerName}/models.

func (*Service) RenameAgentEntry

func (s *Service) RenameAgentEntry(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath)

RenameAgentEntry handles POST /api/agent/{agentName}/fs/rename.

func (*Service) RenameCodingProject added in v0.22.0

func (s *Service) RenameCodingProject(w http.ResponseWriter, r *http.Request, projectId string)

RenameCodingProject renames a project owned by the caller.

func (*Service) ReplaceWorkspaceInheritedResources

func (s *Service) ReplaceWorkspaceInheritedResources(w http.ResponseWriter, r *http.Request, workspaceID gatewayapi.WorkspaceIDPath, resourceType gatewayapi.InheritedResourceTypePath)

ReplaceWorkspaceInheritedResources handles PUT /api/workspace/{workspaceId}/inherited-resource/{resourceType}.

func (*Service) ResolveWorkspaceSlug

func (s *Service) ResolveWorkspaceSlug(w http.ResponseWriter, r *http.Request, workspaceSlug gatewayapi.WorkspaceSlugPath)

ResolveWorkspaceSlug handles GET /api/workspace/slug/{workspaceSlug}.

func (*Service) RetryWorkspace

func (s *Service) RetryWorkspace(w http.ResponseWriter, r *http.Request, workspaceID gatewayapi.WorkspaceIDPath)

RetryWorkspace handles POST /api/workspace/{workspaceId}/retry.

func (*Service) RunCodingGit added in v0.22.0

func (s *Service) RunCodingGit(w http.ResponseWriter, r *http.Request, worktreeId string)

RunCodingGit runs checkout operations under the project lock.

func (*Service) StartCodingOperation added in v0.22.0

func (s *Service) StartCodingOperation(w http.ResponseWriter, r *http.Request)

StartCodingOperation persists intent before returning; the browser does not own execution and resubmitting a lost response cannot repeat a remote write.

func (*Service) StatAgentFile

StatAgentFile handles GET /api/agent/{agentName}/fs/stat.

func (*Service) SubmitChatInput added in v0.22.0

func (s *Service) SubmitChatInput(w http.ResponseWriter, r *http.Request, agent string, session string)

SubmitChatInput durably records intent before acknowledging the composer.

func (*Service) SuggestCodingText added in v0.22.0

func (s *Service) SuggestCodingText(w http.ResponseWriter, r *http.Request, agentName, sessionId string)

SuggestCodingText drafts source-control text without tools or chat history.

func (*Service) TransferAgentOwner

func (s *Service) TransferAgentOwner(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath)

TransferAgentOwner handles PUT /api/agent/{agentName}/owner.

func (*Service) UpdateAgent

func (s *Service) UpdateAgent(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath)

UpdateAgent handles POST /api/agent/update/{agentName}.

func (*Service) UpdateChatInput added in v0.22.0

func (s *Service) UpdateChatInput(w http.ResponseWriter, r *http.Request, agent string, session string, id string)

UpdateChatInput removes or retries a message with authorship and revision checks.

func (*Service) UpdateChatSessionPreference

func (s *Service) UpdateChatSessionPreference(w http.ResponseWriter, r *http.Request)

UpdateChatSessionPreference handles PUT /api/chat-session-preference.

func (*Service) UpdateCodingProjectPreference added in v0.22.0

func (s *Service) UpdateCodingProjectPreference(w http.ResponseWriter, r *http.Request, projectId string)

UpdateCodingProjectPreference remembers the agent for this personal project.

func (*Service) UpdateInferencePool

UpdateInferencePool handles PUT /api/inference/pool/{poolName}.

func (*Service) UpdateInferenceProvider

UpdateInferenceProvider handles PUT /api/inference/provider/{providerName}.

func (*Service) UpdateSandbox

func (s *Service) UpdateSandbox(w http.ResponseWriter, r *http.Request, sandboxName gatewayapi.SandboxName, params gatewayapi.UpdateSandboxParams)

UpdateSandbox handles PUT /api/sandbox/{sandboxName}.

func (*Service) UpdateSkill

func (s *Service) UpdateSkill(w http.ResponseWriter, r *http.Request, skillName gatewayapi.SkillNamePath, params gatewayapi.UpdateSkillParams)

UpdateSkill handles PUT /api/skill/{skillName}.

func (*Service) UpdateWorkflowSchedule

func (s *Service) UpdateWorkflowSchedule(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName, scheduleName gatewayapi.WorkflowScheduleName)

UpdateWorkflowSchedule handles PUT /api/workflow/{agentName}/{workflowName}/schedule/{scheduleName}.

func (*Service) UpdateWorkspaceLifecycle

func (s *Service) UpdateWorkspaceLifecycle(w http.ResponseWriter, r *http.Request, workspaceID gatewayapi.WorkspaceIDPath)

UpdateWorkspaceLifecycle handles PATCH /api/workspace/{workspaceId}/lifecycle.

func (*Service) UpsertAgentShare

func (s *Service) UpsertAgentShare(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath)

UpsertAgentShare handles POST /api/agent/{agentName}/share.

func (*Service) WatchAgents

func (s *Service) WatchAgents(w http.ResponseWriter, r *http.Request)

WatchAgents handles POST /api/agent/watch.

func (*Service) WatchChatSessions

func (s *Service) WatchChatSessions(w http.ResponseWriter, r *http.Request)

WatchChatSessions handles GET /api/chat-session/watch.

func (*Service) WatchCoding added in v0.22.0

func (s *Service) WatchCoding(w http.ResponseWriter, r *http.Request)

WatchCoding sends invalidations; reconnecting readers obtain persisted state.

func (*Service) WatchInferencePools

func (s *Service) WatchInferencePools(w http.ResponseWriter, r *http.Request, params gatewayapi.WatchInferencePoolsParams)

WatchInferencePools handles POST /api/inference/pool/watch.

func (*Service) WatchInferenceProviders

func (s *Service) WatchInferenceProviders(w http.ResponseWriter, r *http.Request, params gatewayapi.WatchInferenceProvidersParams)

WatchInferenceProviders handles POST /api/inference/provider/watch.

func (*Service) WatchMCPConnections

func (s *Service) WatchMCPConnections(w http.ResponseWriter, r *http.Request, params gatewayapi.WatchMCPConnectionsParams)

WatchMCPConnections handles POST /api/mcp-connection/watch.

func (*Service) WatchSecrets

func (s *Service) WatchSecrets(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath)

WatchSecrets handles POST /api/secret/{agentName}/watch.

func (*Service) WatchWorkflowRuns

func (s *Service) WatchWorkflowRuns(w http.ResponseWriter, r *http.Request, agtName gatewayapi.AgentNamePath, workflowName gatewayapi.WorkflowName)

WatchWorkflowRuns handles POST /api/workflow/{agentName}/{workflowName}/run/watch.

func (*Service) WriteAgentFile

func (s *Service) WriteAgentFile(w http.ResponseWriter, r *http.Request, agentName gatewayapi.AgentNamePath)

WriteAgentFile handles PUT /api/agent/{agentName}/fs/file.

func (*Service) WriteAgentFileRaw

WriteAgentFileRaw handles PUT /api/agent/{agentName}/fs/raw.

Directories

Path Synopsis
dashboard
db
Package filesystem serves confined access to an agent workspace.
Package filesystem serves confined access to an agent workspace.
Package gatewayapi provides primitives to interact with the openapi HTTP API.
Package gatewayapi provides primitives to interact with the openapi HTTP API.
db

Jump to

Keyboard shortcuts

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