app

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 40 Imported by: 0

Documentation

Overview

Package app wires the rocketclaw runtime together.

Index

Constants

This section is empty.

Variables

View Source
var ErrControlUnavailable = errors.New("rocketclaw control socket unavailable")

ErrControlUnavailable reports that no RocketClaw server control socket accepted the CLI connection.

View Source
var ErrRestartRequested = errors.New("restart requested")

ErrRestartRequested indicates rocketclaw should exit so a supervisor can restart it.

Functions

func ControlSocketPath added in v0.0.12

func ControlSocketPath(cfg *config.Config) string

ControlSocketPath returns the selected runtime's local Unix control socket path.

func Run

func Run(ctx context.Context, cfg *config.Config, configPath string, logger *slog.Logger) error

Run starts rocketclaw and blocks until the context is canceled or a fatal error occurs.

func RunCLI added in v0.0.12

func RunCLI(ctx context.Context, cfg *config.Config, configPath string, logger *slog.Logger, options CLIOptions) error

RunCLI starts rocketclaw with an attached terminal CLI connector.

func RunControlClient added in v0.0.12

func RunControlClient(ctx context.Context, cfg *config.Config, options CLIOptions) error

RunControlClient attaches terminal CLI I/O to a running RocketClaw server control socket.

Types

type CLIOptions added in v0.0.12

type CLIOptions struct {
	In              io.Reader
	Out             io.Writer
	Agent           string
	ConversationID  string
	NewConversation bool
}

CLIOptions configures the terminal connector for RunCLI.

Jump to

Keyboard shortcuts

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