codexidentity

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package codexidentity defines the Codex wire identity owned by CCL.

Keep these values independent from CLIProxyAPI: a CPA dependency update must never silently change how CCL identifies its Codex Responses requests.

Index

Constants

View Source
const (
	// ClientVersion is the Codex protocol baseline implemented by CCL. Update it
	// deliberately when validating CCL against a newer Codex client protocol.
	ClientVersion = "0.147.0"
	Originator    = "codex_cli_rs"
)

Variables

This section is empty.

Functions

func ApplyClientHeaders

func ApplyClientHeaders(headers http.Header)

ApplyClientHeaders adds the identity shared by Codex model-catalog and Responses requests.

func ApplyTurnHeaders

func ApplyTurnHeaders(headers http.Header, sessionID, threadID, windowID string)

ApplyTurnHeaders adds the request-scoped identity used by Codex Responses.

func UserAgent

func UserAgent() string

UserAgent mirrors the public Codex CLI wire format without depending on an installed Codex binary or CPA's release-specific constants.

Types

This section is empty.

Jump to

Keyboard shortcuts

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