launcher

package
v0.260224.1130 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaudeCodeLauncher

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

ClaudeCodeLauncher handles Claude Code CLI execution

func NewClaudeCodeLauncher

func NewClaudeCodeLauncher() *ClaudeCodeLauncher

NewClaudeCodeLauncher creates a new Claude Code launcher

func (*ClaudeCodeLauncher) Execute

func (l *ClaudeCodeLauncher) Execute(ctx context.Context, prompt string, opts ExecuteOptions) (*Result, error)

Execute runs Claude Code with the given prompt

func (*ClaudeCodeLauncher) ExecuteWithTimeout

func (l *ClaudeCodeLauncher) ExecuteWithTimeout(ctx context.Context, prompt string, timeout time.Duration, opts ExecuteOptions) (*Result, error)

ExecuteWithTimeout runs Claude Code with a specific timeout

func (*ClaudeCodeLauncher) GetCLIInfo

func (l *ClaudeCodeLauncher) GetCLIInfo() map[string]string

GetCLIInfo returns information about available Claude Code CLI

func (*ClaudeCodeLauncher) IsAvailable

func (l *ClaudeCodeLauncher) IsAvailable() bool

IsAvailable checks if Claude Code CLI is available

func (*ClaudeCodeLauncher) SetCLIPath

func (l *ClaudeCodeLauncher) SetCLIPath(path string)

SetCLIPath sets an explicit CLI path

func (*ClaudeCodeLauncher) SetSkipPermissions

func (l *ClaudeCodeLauncher) SetSkipPermissions(enabled bool)

SetSkipPermissions enables or disables skip permissions mode

type ExecuteOptions

type ExecuteOptions struct {
	ProjectPath string
}

ExecuteOptions controls Claude Code execution

type Result

type Result struct {
	Output   string // Claude Code output
	ExitCode int    // Process exit code
	Error    string // Error message if failed
	Duration time.Duration
}

Result represents the result of a Claude Code execution

Jump to

Keyboard shortcuts

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