Skip to content

refactor: simplify codebase, fix release CI, consolidate tests#33

Merged
dkmnx merged 33 commits into
mainfrom
develop
May 14, 2026
Merged

refactor: simplify codebase, fix release CI, consolidate tests#33
dkmnx merged 33 commits into
mainfrom
develop

Conversation

@dkmnx
Copy link
Copy Markdown
Owner

@dkmnx dkmnx commented May 14, 2026

Changes

CI

  • Release workflow now extracts the versioned CHANGELOG section matching the git tag instead of relying on [Unreleased]
  • GoReleaser footer added for release artifacts

Refactor

  • Remove Windows ANSI platform detection (prompt_ansi.go, prompt_ansi_windows.go) — always emit color codes
  • Collapse migrateConfigFile sub-helpers (statOldConfig, readAndValidateConfig, etc.) into a single function
  • Inline root command execution, remove loadRootConfig/dispatchExecution indirection
  • Remove setup prompt injectable function variables, use tap directly
  • Remove unused helpers from cmd/util.go, cmd/update.go, cmd/harness.go, cmd/version.go
  • Add DecryptSecrets (string return) back alongside DecryptSecretsBytes
  • Expose ExecCommand in wrapper package

Tests

  • Consolidate coverage_config_test.go, coverage_env_test.go, test_helpers_test.go into coverage_test.go
  • Simplify setup_prompts_test.go — remove injectable tap function overrides
  • Update all tests to match refactored interfaces

Style

  • Add golangci-lint nlreturn exclusions for cmd and internal packages
  • Add funlen/cyclop exclusion for migrateConfigFile

Docs

  • Simplify AGENTS.md to essential project info

Stats

  • 42 files changed, 487 insertions, 1578 deletions
  • Net reduction: ~1100 lines

dkmnx and others added 30 commits April 25, 2026 23:55
…erage

fix(setup): swap validateConfiguredModel args to ValidateProviderModel
The previous awk extracted the first ## [ section, which is always
[Unreleased]. At release time this section is empty, producing blank
release notes.
@dkmnx dkmnx merged commit 0b3709d into main May 14, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant