hook

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package hook implements the "codex hook" subcommand tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	SessionStart      sessionStartCmd      `cmd:"session-start" help:"Inject context when a Codex session begins or resumes."`
	SubagentStart     subagentStartCmd     `cmd:"subagent-start" help:"Inject context when a Codex subagent starts."`
	PreToolUse        preToolUseCmd        `cmd:"pre-tool-use" help:"Inspect supported tool calls before execution."`
	PermissionRequest permissionRequestCmd `cmd:"permission-request" help:"Allow, deny, or decline Codex approval requests."`
	PostToolUse       postToolUseCmd       `cmd:"post-tool-use" help:"Inspect supported tool calls after execution."`
	PreCompact        preCompactCmd        `cmd:"pre-compact" help:"React before Codex compacts the conversation."`
	PostCompact       postCompactCmd       `cmd:"post-compact" help:"React after Codex compacts the conversation."`
	UserPromptSubmit  userPromptSubmitCmd  `cmd:"user-prompt-submit" help:"Validate or annotate user prompts before processing."`
	SubagentStop      subagentStopCmd      `cmd:"subagent-stop" help:"Allow or continue Codex subagent termination."`
	Stop              stopCmd              `cmd:"stop" help:"Allow or continue Codex turn completion."`
}

Cmd is the Kong command group for "scut codex hook".

Jump to

Keyboard shortcuts

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