run

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 29 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 GenerateLocalSettings added in v0.7.0

func GenerateLocalSettings(sessionDir, kontextBinary, agentName, socketPath, mode string) (string, error)

GenerateLocalSettings creates a Claude Code settings.json that connects hooks to the wrapper-owned local runtime socket.

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 preserves the historical managed-session entry point.

func StartLocal added in v0.7.0

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

StartLocal launches an agent with a wrapper-owned local runtime.

func StartManaged added in v0.7.0

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

StartManaged launches an agent with a hosted managed Kontext session.

func VerifyBlockingHookSettings added in v0.6.0

func VerifyBlockingHookSettings(settingsPath, kontextBinary, agentName string) error

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