Documentation
¶
Overview ¶
Package codexcompose is a self-contained, keyless one-shot text client for the command composer. It reuses the user's existing Codex / ChatGPT login (~/.codex/auth.json) and calls the Codex Responses endpoint. It deliberately does NOT plug into the streaming chat backend in this package — it's an isolated helper so it can't affect the interactive AI chat path.
The endpoint is undocumented/reverse-engineered and may change; callers must treat any error as non-fatal and surface structured status instead of secrets.
Index ¶
Constants ¶
View Source
const ( StatusReady = "ready" StatusLoginRequired = "loginrequired" StatusExpired = "expired" StatusRequestFailed = "requestfailed" StatusEmptyResponse = "emptyresponse" )
Variables ¶
This section is empty.
Functions ¶
func ComposeText ¶
ComposeText sends a one-shot prompt and returns the accumulated assistant text.
func IsAvailable ¶
func IsAvailable() bool
IsAvailable reports whether a usable Codex login is present.
Types ¶
Click to show internal directories.
Click to hide internal directories.