pi

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinPath

func BinPath() string

func BuildArgs

func BuildArgs(cfg *PiConfig) []string

func BuildEnv

func BuildEnv(parent []string, dir string) []string

func ConfigDir

func ConfigDir() (string, error)

ConfigDir returns a stable, wingman-owned pi config directory (PI_CODING_AGENT_DIR). Unlike the launcher's ephemeral temp dir, this persists so pi sessions written under <dir>/sessions survive across runs and can be listed/loaded.

func Run

func Run(ctx context.Context, args []string, options *Options) error

func SessionsDir

func SessionsDir(configDir string) string

func WriteModels

func WriteModels(dir string, cfg *PiConfig) error

Types

type Options

type Options = external.Options

type PiConfig

type PiConfig struct {
	BaseURL   string
	AuthToken string

	Model  string
	Models []string
}

func NewConfig

func NewConfig(ctx context.Context, options *Options) (*PiConfig, error)

Jump to

Keyboard shortcuts

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