codex

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package codex provides the OpenAI Codex validation area adapter. It converts ValidationArea definitions to Codex prompt format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct{}

Adapter converts between canonical ValidationArea and Codex prompt format.

func (*Adapter) DefaultDir

func (a *Adapter) DefaultDir() string

DefaultDir returns the default directory name for Codex prompts.

func (*Adapter) FileExtension

func (a *Adapter) FileExtension() string

FileExtension returns the file extension for Codex prompts.

func (*Adapter) Marshal

func (a *Adapter) Marshal(area *core.ValidationArea) ([]byte, error)

Marshal converts canonical ValidationArea to Codex prompt Markdown bytes.

func (*Adapter) Name

func (a *Adapter) Name() string

Name returns the adapter identifier.

func (*Adapter) Parse

func (a *Adapter) Parse(data []byte) (*core.ValidationArea, error)

Parse converts Codex prompt Markdown bytes to canonical ValidationArea.

func (*Adapter) ReadFile

func (a *Adapter) ReadFile(path string) (*core.ValidationArea, error)

ReadFile reads a Codex prompt Markdown file and returns canonical ValidationArea.

func (*Adapter) WriteFile

func (a *Adapter) WriteFile(area *core.ValidationArea, path string) error

WriteFile writes canonical ValidationArea to a Codex prompt Markdown file.

Jump to

Keyboard shortcuts

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