Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCodexExecutable ¶
func FindCodexExecutable() string
FindCodexExecutable prefers the client bundled with the desktop app, so Codex Switch speaks the same client version as the app it serves.
Types ¶
type EffectiveModelConfig ¶
type LocalReader ¶
func DefaultReader ¶
func DefaultReader() (*LocalReader, error)
func (LocalReader) ModelConfig ¶
func (r LocalReader) ModelConfig(ctx context.Context) (EffectiveModelConfig, error)
ModelConfig reads Codex's effective, layered model configuration with the official config/read call. ChatGPT.app owns its app-server over private stdio, so this starts a one-shot app-server with no listener, performs one read and stops it. An absent provider means the built-in OpenAI provider; a nil URL means that provider uses its standard endpoint.
func (LocalReader) TaskTitles ¶
TaskTitles names the requested tasks from the current Codex home. A task takes the name Codex gave it. A task Codex did not name, such as a codex exec run, is named by how it was started and its project, for example "codex exec · codex-switch". Codex's stored title is the prompt's first line for those runs, so it is never shown.