agent-ecosystem/.husky/pre-commit
iliya b41cf9fad2 feat: add getTaskComment functionality and enhance pre-commit script
- Introduced a new function `getTaskComment` to retrieve a specific comment from a task, including relevant task details.
- Updated the task store to support direct file reads for tasks that match canonical UUIDs.
- Added a new server tool for fetching task comments, enhancing the API capabilities.
- Modified the pre-commit script to improve environment setup and ensure lint-staged runs correctly.
2026-03-20 13:45:14 +02:00

14 lines
459 B
Bash
Executable file

#!/usr/bin/env sh
cd "$(dirname "$0")/.." || exit 1
# Git/IDE hooks often get a minimal PATH — Node lives outside it.
export PATH="$HOME/.local/share/mise/shims:$HOME/.volta/bin:/opt/homebrew/bin:/usr/local/bin:$HOME/.linuxbrew/bin:$PATH"
if [ -z "${NODE_SKIP_NVM:-}" ] && [ -f "$HOME/.nvm/nvm.sh" ]; then
NVM_DIR="${NVM_DIR:-$HOME/.nvm}"
export NVM_DIR
# shellcheck source=/dev/null
. "$HOME/.nvm/nvm.sh"
fi
exec ./node_modules/.bin/lint-staged