sessions

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	AgentsStatus       func() (agents.State, error)
	Authenticated      func() (bool, error)
	Configure          func() error
	Configured         func() (bool, error)
	Install            func() error
	Installed          func() bool
	ListSessions       func() []*claudecode.Session
	ListSubdirs        func(dir string) ([]string, error)
	SessionLastMessage func(id string) string
	SessionQR          func(id string) ([]byte, error)
	SlugForPrompt      func(prompt string) string
	StartLogin         func() (Login, error)
	StartSession       func(name, dir, prompt string) (*claudecode.Session, error)
	StopSession        func(id string) error
}

func DefaultDeps

func DefaultDeps() Deps

type Login

type Login interface {
	Close() error
	SubmitCode(code string) error
	URL() string
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(deps Deps) (*Server, error)

func (*Server) Handler

func (s *Server) Handler() http.Handler

Jump to

Keyboard shortcuts

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