codex

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	clients.BaseClient
}

Client implements the clients.Client interface for Codex

func NewClient

func NewClient() *Client

NewClient creates a new Codex client

func (*Client) EnsureAssetSupport

func (c *Client) EnsureAssetSupport(ctx context.Context, scope *clients.InstallScope) error

EnsureAssetSupport is a no-op for Codex since it loads skills natively.

func (*Client) GetAssetPath

func (c *Client) GetAssetPath(ctx context.Context, name string, assetType asset.Type, scope *clients.InstallScope) (string, error)

GetAssetPath returns the filesystem path to an installed asset

func (*Client) GetBootstrapOptions

func (c *Client) GetBootstrapOptions(ctx context.Context) []bootstrap.Option

GetBootstrapOptions returns bootstrap options for Codex. Note: Codex doesn't have a session-start hook, only agent-turn-complete via notify.

func (*Client) GetBootstrapPath

func (c *Client) GetBootstrapPath() string

GetBootstrapPath returns the path to Codex's config file.

func (*Client) GetVersion

func (c *Client) GetVersion() string

GetVersion returns the Codex version

func (*Client) InstallAssets

func (c *Client) InstallAssets(ctx context.Context, req clients.InstallRequest) (clients.InstallResponse, error)

InstallAssets installs assets to Codex using client-specific handlers

func (*Client) InstallBootstrap

func (c *Client) InstallBootstrap(ctx context.Context, opts []bootstrap.Option) error

InstallBootstrap installs Codex infrastructure (notify hooks and MCP servers)

func (*Client) IsInstalled

func (c *Client) IsInstalled() bool

IsInstalled checks if Codex is installed by checking for ~/.codex directory

func (*Client) ListAssets

func (c *Client) ListAssets(ctx context.Context, scope *clients.InstallScope) ([]clients.InstalledSkill, error)

ListAssets returns all installed skills for a given scope

func (*Client) ReadSkill

func (c *Client) ReadSkill(ctx context.Context, name string, scope *clients.InstallScope) (*clients.SkillContent, error)

ReadSkill reads the content of a specific skill by name

func (*Client) ScanInstalledAssets

func (c *Client) ScanInstalledAssets(ctx context.Context, scope *clients.InstallScope) ([]clients.InstalledAsset, error)

ScanInstalledAssets scans for unmanaged assets

func (*Client) ShouldInstall

func (c *Client) ShouldInstall(ctx context.Context) (bool, error)

ShouldInstall always returns true for Codex. Codex doesn't have a session-start hook, so no deduplication is needed.

func (*Client) UninstallAssets

func (c *Client) UninstallAssets(ctx context.Context, req clients.UninstallRequest) (clients.UninstallResponse, error)

UninstallAssets removes assets from Codex

func (*Client) UninstallBootstrap

func (c *Client) UninstallBootstrap(ctx context.Context, opts []bootstrap.Option) error

UninstallBootstrap removes Codex infrastructure

func (*Client) VerifyAssets

func (c *Client) VerifyAssets(ctx context.Context, assets []*lockfile.Asset, scope *clients.InstallScope) []clients.VerifyResult

VerifyAssets checks if assets are actually installed on the filesystem

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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