cli/pkg/agentic
Snider c615408700
Centralized Configuration Service Implementation (#319)
* feat: implement centralized configuration service using viper

This commit introduces a centralized configuration service in `pkg/config`
to reduce code duplication and provide a unified way to manage configuration
across the project.

Key changes:
- Refactored `pkg/config` to use `github.com/spf13/viper` as the backend.
- Implemented `core.Config` interface with support for layered resolution
  (defaults, files, environment variables).
- Added `LoadFile` to support merging multiple configuration files, with
  automatic type detection for YAML and .env files.
- Migrated `pkg/agentic`, `pkg/devops`, `pkg/build`, and `pkg/release`
  to use the new centralized service.
- Added `mapstructure` tags to configuration structs to support viper unmarshaling.
- Added comprehensive tests for the new configuration service features.

This addresses the recommendations from the Architecture & Design Pattern Audit.

* feat: implement centralized configuration service and address security alerts

- Introduced centralized configuration service in `pkg/config` using `viper`.
- Migrated major packages (`agentic`, `devops`, `build`, `release`) to the new service.
- Resolved merge conflicts with `dev` branch.
- Addressed CodeQL security alert by making UniFi TLS verification configurable.
- Fixed `go.mod` to ensure it is tidy and consistent with direct dependencies.
- Updated UniFi CLI to support TLS verification configuration.
2026-02-05 10:26:44 +00:00
..
prompts feat(framework): add core DI framework and improve dev commands 2026-01-30 09:02:16 +00:00
client.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
client_test.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
completion.go feat(errors): Unify errors and logging (#180) 2026-02-02 06:48:40 +00:00
completion_test.go fix(agentic): use context.TODO instead of nil Context (#94) 2026-02-01 15:58:26 +00:00
config.go Centralized Configuration Service Implementation (#319) 2026-02-05 10:26:44 +00:00
config_test.go feat: infrastructure packages and lint cleanup (#281) 2026-02-04 11:34:43 +00:00
context.go feat: wire release command, add tar.xz support, unified installers (#277) 2026-02-04 00:49:57 +00:00
context_test.go feat(agentic): add AI collaboration features 2026-01-28 20:04:45 +00:00
embed.go feat(framework): add core DI framework and improve dev commands 2026-01-30 09:02:16 +00:00
service.go Log all errors at handling point with contextual information (#321) 2026-02-05 07:52:25 +00:00
types.go feat(agentic): implement core-agentic API client 2026-01-28 19:58:41 +00:00