SLOPSHOPPER

fnhook-fixture-untyped

Untyped function-hook fixture

new
A shopper browsing a rack in a slop shop
Source 1 files
hooks/register.ts 8 lines
1const ESCAPE_HATCH_TOOLS = new Set(["AskUserQuestion", "SendUserMessage"]);
2
3export const register = (on: any, _options: any) => {
4  on("classic.PreToolUse", { tool: "Read" }, async (_$: any, e: any, next: any) =>
5    ESCAPE_HATCH_TOOLS.has(e.tool) ? next(e) : next(e),
6  );
7};
8