Context
Part of #415 Phase 5, item 16. After per-agent `auth` config (#421) replaces the legacy auth profile consumer patterns, several upstream auth-profile integration points become dead code.
Scope
Remove or simplify:
- `src/auto-reply/reply/directive-handling.auth.ts` — `/auth` directive handler (replaced by config-level `auth` field)
- `src/auto-reply/reply/commands-status.ts` — `resolveModelAuthLabel()` display (simplify to show `auth` config value)
- `src/auto-reply/status.ts` — `resolveModelAuthMode()` status display
- `src/auto-reply/reply/get-reply-run.ts` — session auth profile override logic
- `src/cron/isolated-agent/run.ts` — session auth profile override logic
- `src/agents/auth-profiles/session-override.ts` — per-session auth profile override system
- Session entry fields: `authProfileOverride`, `authProfileOverrideSource`
- Config/schema fields: `auth.profiles` (if distinct from the relocated auth store)
Keep: Core auth profile store (`src/auth/`), `resolveApiKeyForProvider`, rotation logic — these are actively used.
Verification
- All tests pass after removal
- No runtime imports from deleted paths
- Auth profile store still works for TTS, STT, and runtime injection
- `/auth` directive removal doesn't break command parsing (should return "unknown command" or similar)
Depends on
Related
Context
Part of #415 Phase 5, item 16. After per-agent `auth` config (#421) replaces the legacy auth profile consumer patterns, several upstream auth-profile integration points become dead code.
Scope
Remove or simplify:
Keep: Core auth profile store (`src/auth/`), `resolveApiKeyForProvider`, rotation logic — these are actively used.
Verification
Depends on
Related