tarsserver

package
v0.31.136 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 72 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAPIAddr = "127.0.0.1:43180"
)

Exported defaults used by cmd/tars entry wiring. Keep this list minimal to avoid growing cmd<->server coupling.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, serveOpts ServeOptions, stdout, stderr io.Writer) error

Serve executes tars runtime directly with structured options.

Bootstrap order: load config first (panic on failure — there is no recoverable mode without a workspace config), derive the final logger config from CLI overrides + config values, then install the runtime logger exactly once. This avoids the previous two-phase setup where a CLI-only logger handle leaked when config values triggered a second setupRuntimeLogger call.

Types

type ServeOptions

type ServeOptions struct {
	ConfigPath   string
	WorkspaceDir string
	LogFile      string
	Verbose      bool
	ConfigCheck  bool
	APIAddr      string
}

ServeOptions configures Serve API execution without CLI argument parsing.

type ToolCallRecord added in v0.15.0

type ToolCallRecord struct {
	ToolName    string
	ToolCallID  string
	ToolArgs    string
	ToolResult  string
	ToolIsError bool
}

ToolCallRecord holds a tool invocation for transcript persistence.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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