adapter

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentAdapter

type AgentAdapter interface {
	Name() string
	Discover() ([]session.Session, error)
	ResumeCommand(s session.Session) *exec.Cmd
	NewCommand(opts NewSessionOptions) *exec.Cmd
	DeleteSession(s session.Session) error
	IsInstalled() bool
}

type ClaudeAdapter

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

func NewClaudeAdapter

func NewClaudeAdapter(sessionPath string) *ClaudeAdapter

func (*ClaudeAdapter) DeleteSession

func (a *ClaudeAdapter) DeleteSession(s session.Session) error

func (*ClaudeAdapter) Discover

func (a *ClaudeAdapter) Discover() ([]session.Session, error)

func (*ClaudeAdapter) IsInstalled

func (a *ClaudeAdapter) IsInstalled() bool

func (*ClaudeAdapter) Name

func (a *ClaudeAdapter) Name() string

func (*ClaudeAdapter) NewCommand

func (a *ClaudeAdapter) NewCommand(opts NewSessionOptions) *exec.Cmd

func (*ClaudeAdapter) ResumeCommand

func (a *ClaudeAdapter) ResumeCommand(s session.Session) *exec.Cmd

type NewSessionOptions

type NewSessionOptions struct {
	Dir    string
	Name   string
	Prompt string
}

type OpenCodeAdapter

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

func NewOpenCodeAdapter

func NewOpenCodeAdapter(sessionPath string) *OpenCodeAdapter

func (*OpenCodeAdapter) DeleteSession

func (a *OpenCodeAdapter) DeleteSession(s session.Session) error

func (*OpenCodeAdapter) Discover

func (a *OpenCodeAdapter) Discover() ([]session.Session, error)

func (*OpenCodeAdapter) IsInstalled

func (a *OpenCodeAdapter) IsInstalled() bool

func (*OpenCodeAdapter) Name

func (a *OpenCodeAdapter) Name() string

func (*OpenCodeAdapter) NewCommand

func (a *OpenCodeAdapter) NewCommand(opts NewSessionOptions) *exec.Cmd

func (*OpenCodeAdapter) ResumeCommand

func (a *OpenCodeAdapter) ResumeCommand(s session.Session) *exec.Cmd

Jump to

Keyboard shortcuts

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