Skip to content

refactor: rename oc-go-cc to routatic-proxy and update configurations#81

Merged
samueltuyizere merged 2 commits into
mainfrom
migrating-to-routatic
Jun 19, 2026
Merged

refactor: rename oc-go-cc to routatic-proxy and update configurations#81
samueltuyizere merged 2 commits into
mainfrom
migrating-to-routatic

Conversation

@samueltuyizere

Copy link
Copy Markdown
Collaborator
  • Updated configuration keys in config.example.json to use ROUTATIC_PROXY_API_KEY.
  • Changed module name in go.mod from oc-go-cc to github.com/routatic/proxy.
  • Refactored import paths in internal/client, internal/config, internal/handlers, internal/router, and internal/token packages to reflect new module name.
  • Added support for legacy environment variables in config loader.
  • Updated autostart functionality to reference routatic-proxy.
  • Adjusted paths for configuration and cache directories to use routatic-proxy.
  • Modified e2e test script to accommodate new binary name and configuration.
  • Updated health check responses to reflect new service name.

- Updated configuration keys in config.example.json to use ROUTATIC_PROXY_API_KEY.
- Changed module name in go.mod from oc-go-cc to github.com/routatic/proxy.
- Refactored import paths in internal/client, internal/config, internal/handlers, internal/router, and internal/token packages to reflect new module name.
- Added support for legacy environment variables in config loader.
- Updated autostart functionality to reference routatic-proxy.
- Adjusted paths for configuration and cache directories to use routatic-proxy.
- Modified e2e test script to accommodate new binary name and configuration.
- Updated health check responses to reflect new service name.
@samueltuyizere samueltuyizere self-assigned this Jun 19, 2026
@kilo-code-bot

kilo-code-bot Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Code Review Roast 🔥

Verdict: No Issues Found | Recommendation: Merge

Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything.

This rename PR is more thorough than most codebases' actual features. Every single reference to oc-go-cc gets updated with graceful fallbacks to legacy env vars and config paths. The envValue() function in internal/config/loader.go handles bidirectional mapping correctly — you can use either ${ROUTATIC_PROXY_API_KEY} or ${OC_GO_CC_API_KEY} in config files and it just works.

🏆 Best part: The backward compatibility strategy is actually sane. Legacy config paths, env vars, and even binary names all gracefully fall back. Users won't even notice the rename unless they want to.

📊 Overall: Like finding a unicorn in production — I didn't think clean rename PRs existed anymore, but here we are. All 20+ files updated consistently without breaking anything. The Go module path change followed by comprehensive import fixes across all packages is textbook perfect.

Files Reviewed (71 files)
  • cmd/routatic-proxy/main.go - renamed from cmd/oc-go-cc/main.go, adds CLI alias
  • internal/config/loader.go - config path resolution with legacy fallbacks
  • internal/config/loader_test.go - tests for legacy env var precedence
  • internal/config/env_test.go - new test for ROUTATIC_PROXY_* isolation
  • internal/daemon/paths.go - FindBinary falls back to oc-go-cc alias
  • internal/server/server.go - log message rename
  • scripts/e2e-test.sh - env var fallback in shell script
  • INSTALLATION.md, README.md, MODELS.md, TROUBLESHOOTING.md - docs updates
  • configs/config.example.json - env placeholder update
  • go.mod - module path change
  • All Go files with import path updates

Reviewed by laguna-m.1-20260312:free · 1,814,649 tokens

@samueltuyizere samueltuyizere merged commit 35940e2 into main Jun 19, 2026
3 checks passed
@samueltuyizere samueltuyizere deleted the migrating-to-routatic branch June 19, 2026 06:41
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