cli/pkg/i18n
Snider f6bd5d0c7b
Add configuration documentation to README (#304)
* docs: add configuration documentation to README

Added a new 'Configuration' section to README.md as per the
Documentation Audit Report (PR #209).

Included:
- Default configuration file location (~/.core/config.yaml)
- Configuration file format (YAML) with examples
- Layered configuration resolution order
- Environment variable mapping for config overrides (CORE_CONFIG_*)
- Common environment variables (CORE_DAEMON, NO_COLOR, MCP_ADDR, etc.)

* docs: add configuration documentation and fix CI/CD auto-merge

README.md:
- Added comprehensive 'Configuration' section as per audit report #209.
- Documented file format, location, and layered resolution order.
- Provided environment variable mapping rules and common examples.

.github/workflows/auto-merge.yml:
- Replaced broken reusable workflow with a local implementation.
- Added actions/checkout step to provide necessary Git context.
- Fixed 'not a git repository' error by providing explicit repo context
  to the 'gh' CLI via the -R flag.
- Maintained existing bot trust and author association logic.

pkg/io/local/client.go:
- Fixed code formatting to ensure QA checks pass.

* docs: update environment variable description and fix merge conflict

- Refined the description of environment variable mapping to be more accurate,
  clarifying that the prefix is stripped before conversion.
- Resolved merge conflict in .github/workflows/auto-merge.yml.
- Maintained the local auto-merge implementation to ensure Git context
  for the 'gh' CLI.

* docs: configuration documentation, security fixes, and CI improvements

README.md:
- Added comprehensive 'Configuration' section as per audit report #209.
- Documented file format, location, and layered resolution order.
- Provided environment variable mapping rules and common examples.
- Added documentation for UniFi configuration options.

.github/workflows/auto-merge.yml:
- Replaced broken reusable workflow with a local implementation.
- Added actions/checkout step to provide necessary Git context.
- Fixed 'not a git repository' error by providing explicit repo context
  to the 'gh' CLI via the -R flag.

pkg/unifi:
- Fixed security vulnerability (CodeQL) by making TLS verification
  configurable instead of always skipped.
- Added 'unifi.insecure' config key and UNIFI_INSECURE env var.
- Updated New and NewFromConfig signatures to handle insecure flag.

internal/cmd/unifi:
- Added --insecure flag to 'config' command to skip TLS verification.
- Updated all UniFi subcommands to support the new configuration logic.

pkg/io/local/client.go:
- Fixed code formatting to ensure QA checks pass.

* docs: configuration documentation, tests, and CI/CD fixes

README.md:
- Added comprehensive 'Configuration' section as per audit report #209.
- Documented file format, location, and layered resolution order.
- Provided environment variable mapping rules and common examples.
- Documented UniFi configuration options.

pkg/unifi:
- Fixed security vulnerability by making TLS verification configurable.
- Added pkg/unifi/config_test.go and pkg/unifi/client_test.go to provide
  unit test coverage for new and existing logic (satisfying Codecov).

.github/workflows/auto-merge.yml:
- Added actions/checkout@v4 to provide the required Git context for the
  'gh' CLI, fixing 'not a git repository' errors.

pkg/framework/core/core.go:
- Fixed compilation errors in Workspace() and Crypt() methods due to
  upstream changes in MustServiceFor() return signature.
- Added necessary error handling to pkg/workspace/service.go.

These changes ensure that the project documentation is up-to-date and that
the CI/CD pipeline is stable and secure.
2026-02-05 10:56:49 +00:00
..
locales Remove StrictHostKeyChecking=no from SSH commands (#315) 2026-02-05 07:09:34 +00:00
compose.go feat(i18n): add options pattern and NewWithLoader constructor 2026-01-30 18:47:11 +00:00
compose_data_test.go refactor(i18n): rename intents_test.go to compose_data_test.go 2026-01-30 16:52:30 +00:00
compose_test.go Add configuration documentation to README (#304) 2026-02-05 10:56:49 +00:00
context.go refactor(i18n): implement extensible handler chain architecture 2026-01-30 18:42:41 +00:00
context_test.go refactor(i18n): implement extensible handler chain architecture 2026-01-30 18:42:41 +00:00
debug.go docs(i18n): clarify Set* behaviour and fix CurrentLanguage default 2026-01-30 18:11:03 +00:00
grammar.go fix(i18n): address remaining code review issues 2026-01-30 19:10:28 +00:00
grammar_test.go refactor(i18n): consistent empty input handling and add doc comment 2026-01-30 18:15:28 +00:00
handler.go feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
handler_test.go refactor(i18n): implement extensible handler chain architecture 2026-01-30 18:42:41 +00:00
hooks.go feat(i18n): add RegisterLocales for package locale registration 2026-01-30 20:51:32 +00:00
i18n.go refactor(i18n): implement extensible handler chain architecture 2026-01-30 18:42:41 +00:00
i18n_test.go Add configuration documentation to README (#304) 2026-02-05 10:56:49 +00:00
interface_test.go refactor(i18n): remove C() and move intents to test-only 2026-01-30 16:50:08 +00:00
language.go refactor(i18n): final code standards cleanup 2026-01-30 18:08:33 +00:00
language_test.go feat(i18n): add Phase 4 extended language support 2026-01-30 12:55:41 +00:00
loader.go feat(i18n): expand CLI translations and fix noun form detection 2026-02-01 07:39:49 +00:00
loader_test.go refactor(i18n): implement extensible handler chain architecture 2026-01-30 18:42:41 +00:00
localise.go docs(i18n): clarify Set* behaviour and fix CurrentLanguage default 2026-01-30 18:11:03 +00:00
mode_test.go fix(i18n): address thread-safety issues from code review 2026-01-30 19:02:30 +00:00
numbers.go refactor(i18n): consolidate types into interfaces.go 2026-01-30 17:24:24 +00:00
numbers_test.go refactor(i18n): remove legacy i18n.{format} shortcuts 2026-01-30 17:34:45 +00:00
service.go feat(i18n): add RegisterLocales for package locale registration 2026-01-30 20:51:32 +00:00
time.go feat(i18n): add localized time formatting helpers 2026-01-30 14:44:42 +00:00
time_test.go refactor(i18n): remove legacy i18n.{format} shortcuts 2026-01-30 17:34:45 +00:00
transform.go fix(i18n): address remaining code review issues 2026-01-30 19:10:28 +00:00
types.go Add configuration documentation to README (#304) 2026-02-05 10:56:49 +00:00