docs: update README and CLAUDE.md for v2 statusline

- Rewrite README for statusline architecture
- Update CLAUDE.md with new data flow and structure
- Remove obsolete v1 docs (TROUBLESHOOTING, CONTRIBUTING, etc.)
- Clean up .husky/pre-commit for new structure

🤖 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 14:29:58 +11:00
parent 26a3e984e4
commit 9672eea781
22 changed files with 152 additions and 1865 deletions

View File

@@ -1,87 +0,0 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
bun: [latest, 1.1.30]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ matrix.bun }}
- name: Install dependencies
working-directory: tui
run: bun install --frozen-lockfile
- name: Lint
working-directory: tui
run: bun run lint
- name: Type check
working-directory: tui
run: bun run typecheck
- name: Test
working-directory: tui
run: bun test
- name: Snapshot guard
run: git diff --exit-code
- name: Build
working-directory: tui
run: bun run build
validate-plugin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check plugin.json exists
run: test -f .claude-plugin/plugin.json
- name: Check hooks.json exists
run: test -f hooks/hooks.json
- name: Check scripts are executable
run: |
test -x scripts/session-start.sh
test -x scripts/capture-event.sh
test -x scripts/cleanup.sh
- name: Validate JSON files
run: |
jq . .claude-plugin/plugin.json > /dev/null
jq . hooks/hooks.json > /dev/null
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
working-directory: tui
run: bun install --frozen-lockfile
- name: Dependency audit
working-directory: tui
run: bun run audit

View File

@@ -1,33 +0,0 @@
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
working-directory: tui
run: bun install --frozen-lockfile
- name: Build TUI
working-directory: tui
run: bun run build
- name: Package artifact
run: tar -czf claude-hud-tui.tar.gz tui/dist tui/package.json
- name: Release artifact
uses: softprops/action-gh-release@v2
with:
files: claude-hud-tui.tar.gz