run

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package run implements the `kontext start` orchestrator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSettings

func GenerateSettings(sessionDir, kontextBinary, agentName string) (string, error)

GenerateSettings creates a Claude Code settings.json with Kontext hooks and returns the path to the generated file.

func Start

func Start(ctx context.Context, opts Options) error

Start is the main entry point for `kontext start`.

Types

type AgentExitError added in v0.4.0

type AgentExitError struct {
	Agent string
	Err   *exec.ExitError
}

AgentExitError reports an agent process that launched but exited unsuccessfully.

func (*AgentExitError) Error added in v0.4.0

func (e *AgentExitError) Error() string

func (*AgentExitError) ExitCode added in v0.4.0

func (e *AgentExitError) ExitCode() int

func (*AgentExitError) Unwrap added in v0.4.0

func (e *AgentExitError) Unwrap() error

type Options

type Options struct {
	Agent        string
	TemplateFile string
	IssuerURL    string
	ClientID     string
	Verbose      bool
	Args         []string
}

Options configures a kontext start run.

Jump to

Keyboard shortcuts

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