Versions in this module Expand all Collapse all v0 v0.10.0 Oct 19, 2026 v0.0.0 Oct 16, 2026 Changes in this version + const AnthropicAPIURL + const DefaultPort + const WorkspaceFeedContentType + func AuthMiddleware(secret string, next http.Handler) http.Handler + func BuildRDPFile(host string, port int, username string, appProgram string) string + func DebugLoggingMiddleware(next http.Handler) http.Handler + func DefaultCredentialsPath() string + func EncodeFeed(cells []Cell, baseHost string, now time.Time) ([]byte, error) + func GenerateAPIKey() string + func GenerateIcon(title string, size int) ([]byte, error) + func GeneratePreview(title string, width, height int) ([]byte, error) + func GenerateSelfSignedCert(extraHosts ...string) (tls.Certificate, error) + func LoggingMiddleware(next http.Handler) http.Handler + func NewChatHandler(exec Executor, logPrompts bool, systemPromptFile, basePromptFile string) http.Handler + func NewModelsHandler(lookPath LookPathFunc, ac AnthropicClient) http.Handler + func NewResponseCancelHandler(store *JobStore) http.Handler + func NewResponseGetHandler(store *JobStore) http.Handler + func NewResponsesHandler(exec Executor, store *JobStore, logPrompts bool, ...) http.Handler + func NewSOAPReconnectStub() http.Handler + func ReadClaudeCredentials(path string) string + func WorkspaceRoutes(enum CellEnumerator, publicHost string, opts ...WorkspaceOpt) *http.ServeMux + type APIError struct + Error APIErrorBody + type APIErrorBody struct + Code string + Message string + Type string + type AnthropicClient interface + FetchModels func() ([]ModelInfo, error) + type Cell struct + AppProgram string + Host string + ID string + Port int + Title string + Type string + func MockResources() []Cell + type CellEnumerator interface + ListCells func() []Cell + type ChatChoice struct + FinishReason string + Index int + Message ChatMessage + type ChatMessage struct + Content string + Role string + type ChatRequest struct + Messages []ChatMessage + Model string + ReasoningEffort string + Stream bool + StreamOptions *ChatStreamOptions + type ChatResponse struct + Choices []ChatChoice + Created int64 + ID string + Model string + Object string + Usage ChatUsage + type ChatStreamChoice struct + Delta ChatStreamDelta + FinishReason *string + Index int + type ChatStreamChunk struct + Choices []ChatStreamChoice + Created int64 + ID string + Model string + Object string + Usage *ChatUsage + type ChatStreamDelta struct + Content string + Role string + type ChatStreamOptions struct + IncludeUsage bool + type ChatUsage struct + CompletionTokens int + PromptTokens int + TotalTokens int + type CompositeEnumerator struct + func NewCompositeEnumerator(sources ...CellEnumerator) *CompositeEnumerator + func (c *CompositeEnumerator) ListCells() []Cell + type DockerAPIClient interface + ContainerList func(ctx context.Context, options container.ListOptions) ([]container.Summary, error) + type DockerEnumerator struct + func NewDockerEnumerator() (*DockerEnumerator, error) + func (d *DockerEnumerator) ListCells() []Cell + type ExecOpts struct + Agent string + BasePromptFile string + Effort string + Model string + Prompt string + SystemPromptFile string + type ExecResult struct + ExitCode int + Stderr string + Stdout string + Usage Usage + type Executor interface + Run func(opts ExecOpts) ExecResult + type Folder struct + Name string + type Folders struct + Folder []Folder + type HealthResponse struct + BuildDate string + Commit string + Status string + Version string + VersionTag string + type HostingTerminalServer struct + ResourceFile ResourceFile + TerminalServerRef TerminalServerRef + type HostingTerminalServers struct + HTS []HostingTerminalServer + type IconElement struct + Dimensions string + FileType string + FileURL string + type Icons struct + Icon256 *IconElement + Icon32 *IconElement + IconRaw *IconElement + type Job struct + Cancel context.CancelFunc + CreatedAt time.Time + FinishedAt time.Time + ID string + Result *ResponsesObject + Status string + type JobStore struct + func NewJobStore() *JobStore + func (s *JobStore) Cancel(id string) (Job, bool) + func (s *JobStore) Complete(id string, status string, result *ResponsesObject) + func (s *JobStore) Create(id string, cancel context.CancelFunc) *Job + func (s *JobStore) Get(id string) (Job, bool) + func (s *JobStore) Sweep(now time.Time, ttl time.Duration) int + type LookPathFunc func(name string) (string, error) + type MockEnumerator struct + func NewMockEnumerator() *MockEnumerator + func (m *MockEnumerator) ListCells() []Cell + type ModelInfo struct + Created int64 + ID string + Object string + OwnedBy string + func DiscoverModels(lookPath LookPathFunc, ac AnthropicClient) []ModelInfo + func FetchAnthropicModels(baseURL, token string) ([]ModelInfo, error) + type ModelsResponse struct + Data []ModelInfo + Object string + type PTYExecOption func(*PTYExecutor) + type PTYExecutor struct + func NewPTYExecutor(bin string, opts ...PTYExecOption) *PTYExecutor + func (e *PTYExecutor) Close() error + func (e *PTYExecutor) Run(opts ExecOpts) ExecResult + type Publisher struct + Description string + ID string + LastUpdated string + Name string + Resources Resources + TerminalServers TerminalServers + type RealAnthropicClient struct + APIURL string + CredentialsPath string + func (c *RealAnthropicClient) FetchModels() ([]ModelInfo, error) + type Resource struct + Alias string + FileExtensions string + Folders Folders + HostingTerminalServers HostingTerminalServers + ID string + Icons Icons + LastUpdated string + ShowByDefault string + Title string + Type string + type ResourceCollection struct + PubDate string + Publisher Publisher + SchemaVersion string + SupportsReconnect string + XMLName xml.Name + type ResourceFile struct + FileExtension string + URL string + type Resources struct + Resource []Resource + type ResponsesError struct + Code string + Message string + type ResponsesIncompleteDetails struct + Reason string + type ResponsesInputTokensDetails struct + CachedTokens int + type ResponsesObject struct + CreatedAt int64 + Error *ResponsesError + ID string + IncompleteDetails *ResponsesIncompleteDetails + Instructions *string + Metadata map[string]string + Model string + Object string + Output []ResponsesOutputItem + OutputText string + ParallelToolCalls bool + PreviousResponseID *string + Reasoning *ResponsesReasoningConfig + Status string + Store bool + Temperature float64 + ToolChoice string + Tools []any + TopP float64 + Truncation string + Usage ResponsesUsage + User string + type ResponsesOutputContentPart struct + Annotations []any + Text string + Type string + type ResponsesOutputItem struct + Content []ResponsesOutputContentPart + ID string + Role string + Status string + Type string + type ResponsesOutputTokensDetails struct + ReasoningTokens int + type ResponsesReasoningConfig struct + Effort string + GenerateSummary string + Summary string + type ResponsesRequest struct + Background *bool + Include []string + Input json.RawMessage + Instructions string + MaxOutputTokens *int + Metadata json.RawMessage + Model string + ParallelToolCalls *bool + PreviousResponseID string + Reasoning *ResponsesReasoningConfig + ResponseFormat json.RawMessage + Store *bool + Stream bool + Temperature *float64 + Text json.RawMessage + ToolChoice json.RawMessage + Tools json.RawMessage + TopP *float64 + Truncation string + User string + type ResponsesUsage struct + InputTokens int + InputTokensDetails *ResponsesInputTokensDetails + OutputTokens int + OutputTokensDetails *ResponsesOutputTokensDetails + TotalTokens int + type Server struct + func NewServer(exec Executor, port int) *Server + func (s *Server) HTTPAddr() string + func (s *Server) SetAPIKey(key string) + func (s *Server) SetAnthropicClient(ac AnthropicClient) + func (s *Server) SetBasePromptFile(p string) + func (s *Server) SetDebug(v bool) + func (s *Server) SetLogPrompts(v bool) + func (s *Server) SetLookPath(fn LookPathFunc) + func (s *Server) SetSystemPromptFile(p string) + func (s *Server) SetTLS(v bool) + func (s *Server) SetWorkspace(enabled, mock bool, host string) + func (s *Server) Start(ctx context.Context) (addr string, errCh chan error) + type ShellExecutor struct + func (e *ShellExecutor) Run(opts ExecOpts) ExecResult + type StreamEvent struct + Delta string + Err error + Final *claudeJSONResult + Kind StreamEventKind + MessageID string + Model string + StopReason string + type StreamEventKind int + const StreamEventError + const StreamEventMessageStart + const StreamEventMessageStop + const StreamEventResult + const StreamEventTextDelta + type TerminalServer struct + ID string + LastUpdated string + Name string + type TerminalServerRef struct + Ref string + type TerminalServers struct + TS []TerminalServer + type Usage struct + CacheCreationInputTokens int + CacheReadInputTokens int + InputTokens int + OutputTokens int + TotalCostUSD float64 + type WorkspaceOpt func(*workspaceCfg) + func WithCertDER(der []byte) WorkspaceOpt