Skip to content

Add env package for testable environment variable access#3

Merged
JAORMX merged 1 commit intomainfrom
add-env-package
Feb 2, 2026
Merged

Add env package for testable environment variable access#3
JAORMX merged 1 commit intomainfrom
add-env-package

Conversation

@JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Feb 2, 2026

Summary

  • Graduate the env package from toolhive as the first Tier 1 package per THV-0032 RFC
  • Provides Reader interface for dependency injection and testing isolation
  • Includes OSReader implementation using standard library os package
  • Includes generated mock for testing

Test plan

  • task lint passes
  • task license-check passes
  • task test passes with race detection

Notes

This is the first package graduation to toolhive-core. The env package was chosen because:

  • Zero dependencies on ToolHive internals
  • Uses only standard library (os package)
  • Already well-tested
  • Simple, focused API surface

🤖 Generated with Claude Code

Graduate the env package from toolhive to toolhive-core as the first
Tier 1 package per THV-0032 RFC. This package provides:

- Reader interface for environment variable access
- OSReader implementation using the standard os package
- Mock implementation for testing

The package has zero dependencies on ToolHive internals and uses only
the standard library, making it ideal for the first graduation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@JAORMX JAORMX merged commit 8b56914 into main Feb 2, 2026
5 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.

2 participants