control

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package control exposes local diagnostics and narrow, reversible Codex setup.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHome

func DefaultHome() (string, error)

func Tools

func Tools() []map[string]any

Types

type Controller

type Controller struct {
	Home     string
	Endpoint string
	Client   *http.Client
}

func (Controller) Connect

func (c Controller) Connect(ctx context.Context, endpoint string) (codexconfig.Preview, error)

func (Controller) Preview

func (c Controller) Preview(endpoint string) (codexconfig.Preview, error)

func (Controller) Restore

func (c Controller) Restore() (bool, error)

func (Controller) ServeMCP

func (c Controller) ServeMCP(ctx context.Context, input io.Reader, output io.Writer) error

ServeMCP uses newline-delimited stdio JSON-RPC. Stdout contains protocol only; it never prints requests, authorization data, configuration bodies or prompts.

func (Controller) Status

func (c Controller) Status(ctx context.Context, endpoint string) (Status, error)

type Status

type Status struct {
	Endpoint    string               `json:"endpoint"`
	Ready       bool                 `json:"ready"`
	Version     string               `json:"version,omitempty"`
	MaxContinue int                  `json:"max_continue,omitempty"`
	Reason      string               `json:"reason,omitempty"`
	Routing     *codexconfig.Preview `json:"routing,omitempty"`
}

Jump to

Keyboard shortcuts

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