Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.84 KB

File metadata and controls

37 lines (30 loc) · 1.84 KB

AI TODO

Current Session Tasks - setupmgr Refactoring (2026-02-06)

Context

Refactoring setupmgr _setup* install functions to use unified helpers. 76/134 functions already refactored (57%). Added messaging consolidation + claude native installer.

Completed

  • Added __message_installed_ok() and __message_installed_failed() helpers
  • Consolidated messaging in __install_from_binary, __install_from_archive, __install_from_npm, __execute_npm
  • Removed redundant prints from __install_to_system_bin, __move_extracted_file
  • Added __setup_claude() native binary installer
  • Analyzed all 134 _setup* functions and categorized into tiers
  • Tier 1: Cleaned up minikube (removed unused var), httpie already fine
  • Tier 2: Converted btop to __install_from_archive (43 lines → 3)
  • Tier 2: Applied messaging helpers to bottom, nushell, watchexec, miller
  • Applied __message_installed_ok/__message_installed_failed across ~50 functions
  • Fixed typo "hase been installed" in kubectl
  • Replaced pipx-specific failure messages with standard helper
  • Syntax check passed (bash -n bin/setupmgr)
  • Updated COMMIT_MESS with all changes

Notes for Future Sessions

Tier 2 functions NOT fully converted (have version comparison logic):

  • bottom, nushell, watchexec, miller, age, tig, entr, helix, helm, broot, packer, golang, zed, lapce
  • These use __compare_versions/__save_version which __install_from_archive doesn't support
  • Would need to add version-aware mode to helpers for full conversion

Tier 3 functions left as-is (complex custom logic):

  • Systemd services: traefik, caddy, webhookd, localai
  • Git clone: lua, asdf, gvm, nvm, rvm, rbenv
  • Curl scripts: rustup, distrobox, dotnet, devbox, nix, nodejs, fnm
  • Desktop apps: zed, lapce, antigravity
  • Other: powershell, jekyll, pipx, minio, garage, plandex, ollama