Skip to main content

Module trigger

Module trigger 

Source
Expand description

Trigger pattern matching for git commit/push.

Design: [docs/design.md §6]. The regex is a Rust port of fallow’s POSIX ERE pattern, compiled once via OnceLock. Edge cases the regex deliberately misses (bash -c "git push", eval "git commit", GIT_DIR=… git commit, aliases like gp) are documented in design §6 and treated as non-goals for v0.1; klasp gates honest agents, not adversarial ones.

Structs§

Trigger
Stateless namespace for trigger classification. The regex itself is held in a process-wide OnceLock.

Enums§

GitEvent
The git event a tool-call command was classified as.