codex

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ClientName = "codex"

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct{}

Adapter implements Codex config translation for ~/.codex/config.toml. It preserves unknown file content and stores managed state in a comment block.

func (Adapter) Apply

func (a Adapter) Apply(current planner.ClientState, desired planner.ClientState) (planner.Plan, error)

Apply computes state diff from current to desired.

func (Adapter) Detect

func (a Adapter) Detect(workspace string) (string, error)

Detect resolves Codex config path.

func (Adapter) Name

func (a Adapter) Name() string

Name returns the adapter client name.

func (Adapter) Read

func (a Adapter) Read(path string) (planner.ClientState, error)

Read parses managed block first, then falls back to simple TOML section parsing.

func (Adapter) Validate

func (a Adapter) Validate(path string) error

Validate ensures file content can be read by this adapter.

func (Adapter) Write

func (a Adapter) Write(path string, desired planner.ClientState) error

Write writes desired state as real TOML [mcp_servers.X] sections and a managed comment block for mcpup state tracking.

Jump to

Keyboard shortcuts

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