Skip to content

ELCODE Forge v0.6.0 - Git Hooks, Terminal UX Modernization & Zero-Install Distribution

Choose a tag to compare

@luksluki luksluki released this 21 Oct 03:56
· 74 commits to main since this release
8240823

ELCODE Forge (eforge) v0.6.0

Know your code. Ship with confidence.
"Software should feel like an instrument, not a compromise." — "Deterministic before generative."

We are proud to release ELCODE Forge v0.6.0, marking the complete delivery of Phase 6 (Git Hooks, Terminal UX Modernization & Zero-Install Distribution) under the ELCODE Studio Manifesto.

With v0.6.0, engineering teams gain native Git hooks with sub-200ms staged-diff scanning, a modernized terminal UX with rich ANSI themes and health score meters, and friction-free zero-install distribution via npx @elcode-forge/cli, standalone shell/PowerShell installers, and Homebrew tap.


Highlights in v0.6.0 (Phase 6 Completed)

1. Native Git Hooks Engine (Phase 6A, Epic #129)

  • Hooks Schema & Lifecycle (forge-core & forge-git):
    • Declarative Git hooks configuration via hooks block in eforge.config.yaml (pre-commit, pre-push, commit-msg).
    • Safe hook scripts installation into .git/hooks/ with automated backup of existing non-eforge hooks (.backup).
    • Multi-tier bypass detection supporting standard environment variables (EFORGE_SKIP_HOOKS=1, GIT_EXEC_PATH, --no-verify).
  • CLI Subcommand eforge hook (forge-cli):
    • eforge hook install [--hook-types pre-commit,pre-push,commit-msg]: Installs POSIX-compliant shell wrappers into the target Git repository.
    • eforge hook run <HOOK_TYPE> [--dry-run]: Executes fast pre-commit inspection or full pre-push scan.
    • eforge hook uninstall: Safely restores original user hooks from backups.
    • eforge hook status: Displays hook installation status and active lifecycle stages.
    • Sub-200ms staged-diff scanner filtering uncommitted/staged files against active declarative and built-in rules.

2. Terminal UX Modernization (Phase 6B, Epic #132)

  • TTY-Aware ANSI Theme & Score Meter (theme.rs):
    • Zero-dependency ANSI styling system automatically respecting NO_COLOR, non-TTY streams, and CI environments.
    • Visual 10-segment health score meter ([████████░░] 82/100) with color gradients reflecting repo health.
    • Consistent ELCODE brand badges, severity badges, confidence indicators, and actionable diagnostic boxes.
  • Rich Terminal Formatters (formatters/terminal.rs):
    • Milestone progress headers with microsecond-level timing and execution metrics.
    • Snippet evidence viewer with line numbering, file location links, and highlighted problematic tokens.
    • Structured summaries for eforge scan, eforge review, eforge rules list, and eforge doctor.

3. Zero-Install Distribution & Multi-Platform Delivery Suite (Phase 6C, Epic #135)

  • Zero-Install npm Package @elcode-forge/cli (packages/forge-cli-npm/):
    • Seamless npx @elcode-forge/cli scan execution without requiring a pre-installed Rust toolchain.
    • Dynamic platform and architecture resolution (Linux x86_64, macOS Apple Silicon / Intel, Windows x86_64).
    • SHA256 checksum verification against official release manifests and local caching in ~/.eforge/bin/.
  • Universal Installers & Package Registry Support:
    • Standalone POSIX script scripts/install.sh for Linux and macOS with custom --prefix support.
    • PowerShell script scripts/install.ps1 for Windows with automated User PATH registration.
    • Homebrew tap formula packaging/homebrew/eforge.rb for macOS / Linuxbrew users.
    • Direct binary installation via cargo-binstall configured in root Cargo.toml.
  • E2E Integration Testing & Documentation:
    • Comprehensive Git hooks integration test suite in crates/forge-cli/tests/hooks_e2e.rs.
    • Updated README.md with zero-install commands, hook setup guides, and cross-platform installation matrices.
    • Synchronized workspace version 0.6.0 across Rust crates and npm packages.

Verification & Self-Dogfooding

  • Test Suite: All automated unit and integration tests passing cleanly across the workspace.
  • Zero Linter Warnings: cargo fmt, cargo clippy --all-targets -- -D warnings, pnpm run check, pnpm run lint all exit code 0.
  • Self-Dogfooding Health Score: eforge doctor executes in <100ms with 0 warnings, and eforge scan passes with 100% compliance.