StructsΒ§
- Dialog
Busy πGuard
ConstantsΒ§
- HOOK_
DIALOG_ πALLOW - HOOK_
DIALOG_ πCANCEL - HOOK_
DIALOG_ πMAX_ BODY_ CHARS - HOOK_
DIALOG_ πMAX_ HOOKS_ SHOWN - HOOK_
DIALOG_ πPER_ HOOK_ CHARS
FunctionsΒ§
- confirm_
hooks_ πchange - format_
hooks_ πsummary - sanitize_
for_ πdialog - set_
hooks - Replace the active profileβs hook list, gated by a native confirmation dialog. The dialog shows the proposed hooks (with control characters sanitised) so the user can spot tampering.
- test_
hook - Run a single hook command once and return its captured stdout/stderr and
exit status, so the Settings βTestβ button can show the user what a
command does before they rely on it. Runs with a representative
$ENTRACTE_*env and a short timeout, off the async runtime since the capture blocks. No confirmation dialog: the user typed and triggered this command themselves β the dialog guards persisting hooks, not a transient user-initiated test.