agenthookdefs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package agenthookdefs defines baum's local coding-agent plugin events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserDispatcher

func UserDispatcher(agent string, event string) string

UserDispatcher is the command in baum's marketplace plugins. Keep it stable because coding agents remember trust by the exact command string.

func ValidateUserWide

func ValidateUserWide(agent, event string) error

ValidateUserWide accepts only events shipped by baum's local plugins.

Types

type Placement

type Placement struct {
	Event     string
	HookEvent string
	Matcher   *string
	Timeout   int
	// Async runs the hook in the background (Claude Code's "async"), so a
	// hook that fires on every tool call never makes the agent wait for it.
	Async bool
}

func UserWidePlacement

func UserWidePlacement(agent, event string) (Placement, bool)

UserWidePlacement returns the placement of an agent's user-wide hook for an event.

type UserWide

type UserWide struct {
	Placements []Placement
}

UserWide describes the events a user-scoped marketplace plugin runs.

func LookupUserWide

func LookupUserWide(agent string) (UserWide, bool)

LookupUserWide returns an agent's user-wide hook settings. Only Claude Code and Codex have them.

Jump to

Keyboard shortcuts

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