docs: add project documentation and improve robustness

- Add ARCHITECTURE.md, FAQ.md, LLM.md documentation
- Add LICENSE (MIT), CODE_OF_CONDUCT.md, PR template
- Add .editorconfig for consistent formatting
- Add check.sh script for validation
- Fix ESLint errors in hud-config.ts and settings-reader.ts
- Various test and component improvements

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jarrod Watts
2026-01-03 12:17:50 +11:00
parent 4b166e5e94
commit 36b2a09210
36 changed files with 1140 additions and 497 deletions

View File

@@ -26,22 +26,9 @@ REFRESH_FILE="$HUD_DIR/refresh.json"
rm -f "$EVENT_FIFO"
mkfifo "$EVENT_FIFO"
if [ ! -d "$PLUGIN_ROOT/tui/node_modules" ]; then
cd "$PLUGIN_ROOT/tui"
if command -v bun &> /dev/null; then
bun install --silent 2>/dev/null || true
elif command -v npm &> /dev/null; then
npm install --silent 2>/dev/null || true
fi
fi
if [ ! -f "$PLUGIN_ROOT/tui/dist/index.js" ]; then
cd "$PLUGIN_ROOT/tui"
if command -v bun &> /dev/null; then
bun run build 2>/dev/null || true
elif command -v npm &> /dev/null; then
npm run build 2>/dev/null || true
fi
echo "claude-hud build missing. Run 'bun install' and 'bun run build' in $PLUGIN_ROOT/tui." >&2
exit 1
fi
if command -v bun &> /dev/null; then