sessions

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodexLogin added in v0.6.0

type CodexLogin interface {
	Close() error
	Code() string
	Done() bool
	Err() error
	URL() string
}

type Deps

type Deps struct {
	AgentsStatus       func() (agents.State, error)
	Authenticated      func() (bool, error)
	ClaudeVersion      func() string
	CodexAuthenticated func() (bool, error)
	CodexInstalled     func() bool
	CodexVersion       func() string
	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
	StartCodexLogin    func() (CodexLogin, error)
	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, workdir ...string) (*Server, error)

func (*Server) Handler

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

func (*Server) Register added in v0.6.0

func (s *Server) Register(mux *http.ServeMux, includeRoot bool)

Jump to

Keyboard shortcuts

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