Commit Graph

2 Commits

Author SHA1 Message Date
Kit Langton c45fbb3d45 refactor(state): namespace InstanceState, use Map for pending
- Convert InstanceState to namespace export pattern
- Change pending OAuth state from Record to Map for type-safe lookups
2026-03-12 20:31:15 -04:00
Kit Langton 395a9580bd refactor(state): replace ScopedState with InstanceState
Replace the generic ScopedState (keyed by caller-provided root) with
InstanceState that hardcodes Instance.directory and integrates with
the instance dispose/reload lifecycle via a global task registry.

- Parallelize State + InstanceState disposal in reload/dispose
- Use Effect's Record.map and Struct.pick in auth-service
- Flatten nested Effect.gen in OAuth callback flow
- Add docstrings to ProviderAuthService interface
- Add State and InstanceState tests
2026-03-12 16:33:50 -04:00