Versions in this module Expand all Collapse all v0 v0.0.10 Jul 2, 2026 Changes in this version + type Account struct + Email string + PlanType string + Type string + type Bridge struct + func NewBridge(lifecycle fx.Lifecycle, logger *slog.Logger) *Bridge + func (b *Bridge) CancelLogin(ctx context.Context, loginID string) error + func (b *Bridge) EnsureStarted(ctx context.Context) error + func (b *Bridge) InjectThreadItems(ctx context.Context, threadID string, items []map[string]any) error + func (b *Bridge) RecentDiagnosticSummary(limit int) string + func (b *Bridge) RecentEvents(limit int) []Event + func (b *Bridge) RecentStderr(limit int) []string + func (b *Bridge) Snapshot() Snapshot + func (b *Bridge) StartDeviceCodeLogin(ctx context.Context) (DeviceCodeLoginResult, error) + func (b *Bridge) StartThread(ctx context.Context, params ThreadStartParams) (ThreadStartResult, error) + func (b *Bridge) StartTurn(ctx context.Context, params TurnStartParams) (TurnStartResult, error) + func (b *Bridge) Stop(ctx context.Context) error + func (b *Bridge) Subscribe(ctx context.Context) <-chan Event + func (b *Bridge) Warmup() + type DeviceCodeLoginResult struct + LoginID string + UserCode string + VerificationURL string + type Event struct + Delta string + ItemID string + Method string + Payload json.RawMessage + Seq int64 + Source string + Summary string + ThreadID string + Time time.Time + TurnID string + type InitializeInfo struct + CodexHome string + PlatformFamily string + PlatformOS string + UserAgent string + type LoginState struct + LastError string + LoginID string + Pending bool + StartedAt time.Time + Type string + UserCode string + VerificationURL string + type Snapshot struct + Account *Account + AuthMethod string + Command string + CommandArgs []string + CommandCWD string + InitializeInfo InitializeInfo + Initialized bool + LastError string + LastExitAt time.Time + Login *LoginState + PID int + Ready bool + RequiresOpenAIAuth *bool + Running bool + StartedAt time.Time + Starting bool + Thread *ThreadState + Turn *TurnState + type ThreadStartParams struct + ApprovalPolicy string + CWD string + DeveloperInstructions string + Model string + ModelProvider string + SandboxType string + type ThreadStartResult struct + ApprovalPolicy string + CWD string + Model string + ModelProvider string + Sandbox string + ThreadID string + ThreadPreview string + type ThreadState struct + ApprovalPolicy string + CWD string + CreatedAt time.Time + ID string + Model string + ModelProvider string + Preview string + Sandbox string + UpdatedAt time.Time + type TurnStartParams struct + ApprovalPolicy string + CWD string + Effort string + Input []map[string]any + Model string + SandboxType string + Summary string + ThreadID string + type TurnStartResult struct + Status string + ThreadID string + TurnID string + type TurnState struct + Error string + ID string + Status string + ThreadID string + UpdatedAt time.Time