Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:50:12 +08:00
commit d16c5de665
29 changed files with 4788 additions and 0 deletions

23
hooks/utils/index.ts Normal file
View File

@@ -0,0 +1,23 @@
/**
* Hook Utilities
*
* Shared utilities for Claude Code command hooks.
* Includes input parsing, configuration loading, error handling, and runtime checks.
*/
export {
checkHookEnabled,
type HookConfig,
loadHookConfig,
} from './config-loader.js';
export {
checkPerformance,
formatError,
type HookInput,
parseStdin,
} from './hook-input.js';
export {
checkBunVersion,
ensureBunInstalled,
ensureToolsInstalled,
} from './runtime-check.js';