agyhooks

package
v0.175.0-rc.430 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package agyhooks checks agy's hooks.json against the shape agy accepts. agy (1.4.x) parses the whole file at once and drops every hook in it when any one entry is malformed, so one stale entry of someone else's leaves beekeeper's own PreInvocation and PreToolUse hooks unloaded: an agy worker then runs with no guard at all.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntryRejects

func EntryRejects(raw json.RawMessage) string

EntryRejects is why agy refuses the named hook entry raw, an object of event lists (or null) and optional enabled metadata, or "" when agy accepts it. Unknown fields are ignored. A tool event's items are matchers with optional hooks, a lifecycle event's items are command hooks, and every hook of type "command" (or of no type) names its command.

func Rejects

func Rejects(raw []byte) string

Rejects is why agy refuses the hooks.json raw as a whole, naming the first entry it rejects in file order, or "" when agy accepts every entry. An empty file holds no hooks and is accepted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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