codex

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCustomJSON

func RegisterCustomJSON[T any](r *Registrar, eventName string, fn func(*T) *Response) error

RegisterCustomJSON registers an experimental future Codex hook whose payload is delivered as a JSON argv argument. The handler remains fully typed.

Types

type NotifyEvent

type NotifyEvent struct {
	Raw    json.RawMessage
	Client string
}

func (*NotifyEvent) RawJSON

func (e *NotifyEvent) RawJSON() json.RawMessage

type Registrar

type Registrar struct {
	// contains filtered or unexported fields
}

func NewRegistrar

func NewRegistrar(backend runtime.RegistrarBackend) *Registrar

func (*Registrar) OnNotify

func (r *Registrar) OnNotify(fn func(*NotifyEvent) *Response)

type Response

type Response struct{}

func Continue

func Continue() *Response

Jump to

Keyboard shortcuts

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