Skip to content

refactor(auth): relocate auth-profiles from src/agents/ to src/auth/#429

Merged
alexey-pelykh merged 1 commit intomainfrom
refactor/auth-relocate-auth-profiles
Mar 8, 2026
Merged

refactor(auth): relocate auth-profiles from src/agents/ to src/auth/#429
alexey-pelykh merged 1 commit intomainfrom
refactor/auth-relocate-auth-profiles

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Move src/agents/auth-profiles/ directory contents into src/auth/ (flattened)
  • Move barrel src/agents/auth-profiles.tssrc/auth/index.ts
  • Move provider-auth.ts, api-key-rotation.ts, auth-health.tssrc/auth/
  • Update all consumer imports, vi.mock() paths, and internal relative imports across ~45 files
  • On-disk storage path (~/.remoteclaw/agents/auth-profiles.json) intentionally unchanged — no migration needed

Pure import-path refactor with zero behavioral changes. All 10,153 tests pass.

Closes #419

Test plan

  • pnpm tsgo — no new type errors in src/
  • pnpm test — all 1,201 test files pass (10,153 tests, 0 failures)
  • No remaining references to old agents/auth-profiles paths (grep verified)

🤖 Generated with Claude Code

…419)

Move auth-profile modules out of the agent-specific scope into a
dedicated top-level src/auth/ directory, reflecting their middleware-wide
role in the unified auth architecture.

Moved files:
- src/agents/auth-profiles/ → src/auth/ (flattened)
- src/agents/auth-profiles.ts → src/auth/index.ts (barrel)
- src/agents/provider-auth.ts → src/auth/provider-auth.ts
- src/agents/api-key-rotation.ts → src/auth/api-key-rotation.ts
- src/agents/auth-health.ts → src/auth/auth-health.ts

All consumer imports, vi.mock() paths, and internal relative imports
updated. On-disk storage path unchanged. No behavioral changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) March 8, 2026 07:59
@alexey-pelykh alexey-pelykh merged commit c08a834 into main Mar 8, 2026
5 checks passed
@alexey-pelykh alexey-pelykh deleted the refactor/auth-relocate-auth-profiles branch March 8, 2026 08:06
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.

refactor(auth): relocate auth-profiles from src/agents/ to src/auth/

1 participant