hookruntime

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeClaudeEvent

func DecodeClaudeEvent(input []byte, agentName string) (hook.Event, error)

func EncodeClaudeResult

func EncodeClaudeResult(hookEventName string, result hook.Result) ([]byte, error)

func Run

func Run(stdin io.Reader, stdout, stderr io.Writer, codec Codec, evaluate func(hook.Event) (hook.Result, error)) int

Types

type Codec

type Codec interface {
	DecodeHookEvent([]byte) (hook.Event, error)
	EncodeHookResult(hook.Event, hook.Result) ([]byte, error)
}

Jump to

Keyboard shortcuts

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