You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(sdk-core): remove @atproto/xrpc import to eliminate build warning
Define FetchHandler type locally instead of importing from @atproto/xrpc
to avoid TypeScript warning about missing type declarations during build.
The type definition is simple and stable, so local definition is preferred.
Implement ConfigurableAgent for proper multi-server routing
6
+
7
+
This release introduces the `ConfigurableAgent` class that enables proper routing of AT Protocol requests to different servers (PDS, SDS, or custom instances) while maintaining OAuth authentication from a single session.
8
+
9
+
**Breaking Changes:**
10
+
- Repository now uses `ConfigurableAgent` internally instead of standard `Agent`
11
+
- This fixes the issue where invalid `agent.service` and `agent.api.xrpc.uri` property assignments were causing TypeScript errors
12
+
13
+
**New Features:**
14
+
-`ConfigurableAgent` class exported from `@hypercerts-org/sdk-core`
15
+
- Support for simultaneous connections to multiple SDS instances with one OAuth session
16
+
- Proper request routing based on configured service URL rather than session defaults
- Replace all `any` types in test files with proper type annotations
21
+
- Eliminate build warnings from missing type declarations
22
+
23
+
**Architecture:**
24
+
The new routing system wraps the OAuth session's fetch handler to prepend the target server URL, ensuring requests go to the intended destination while maintaining full authentication (DPoP, access tokens, etc.). This enables use cases like:
0 commit comments