finish phase 3: type-only codemod and zero non-bridge @atproto/api imports
Task 8: codemod repointed 150 namespace-type files to #/lexicons (AppBskyFeedDefs.PostView -> app.bsky.feed.defs.PostView, .Record -> .Main) plus ~105 hand-fixed consumers (composer/video state, DebugMod, Profile, onboarding, dialogs). DM_SERVICE_HEADERS deleted; last chat call sites on the chat client. RichText.tsx flipped to SDK-only. Remaining @atproto/api importers: the three session bridge files, the deliberate dual-world matcher in lib/xrpc-error.ts, and test fixtures. toLex boundary casts are TODO(phase4)-tagged for bridge removal. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {Agent} from '@atproto/api'
|
||||
import {Client} from '@atproto/lex-client'
|
||||
|
||||
import {device} from '#/storage'
|
||||
import {BridgeAgent} from './session-core'
|
||||
|
||||
export const BR_LABELER = 'did:plc:ekitcvx7uwnauoqy5oest3hm' // Brazil
|
||||
export const DE_LABELER = 'did:plc:r55ow3tocux5kafs5dq445fy' // Germany
|
||||
@@ -90,9 +90,9 @@ export function configureAdditionalModerationAuthorities() {
|
||||
* static - so both emit identical global `atproto-accept-labelers` headers.
|
||||
*/
|
||||
const appLabelers = Array.from(
|
||||
new Set([...Agent.appLabelers, ...additionalLabelers]),
|
||||
new Set([...BridgeAgent.appLabelers, ...additionalLabelers]),
|
||||
)
|
||||
|
||||
Client.configure({appLabelers: appLabelers as `did:${string}:${string}`[]})
|
||||
Agent.configure({appLabelers})
|
||||
BridgeAgent.configure({appLabelers})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user