import {
APP_PASSWORD_SECRET,
APP_PASSWORD_SETUP_URL,
AUTH_HOST,
DEFAULT_AUTH_SERVICE,
DEFAULT_PUBLIC_APPVIEW,
HANDLE_STORAGE_KEY,
PDS_HOST_PATTERN,
} from './setup.ts'
/**
* Return Bluesky package discovery metadata: auth, exports, and safety notes.
*/
export default async function blueskyOverview() {
return {
package: '@kody/bluesky',
kodyId: 'bluesky',
auth: {
handleStorageKey: HANDLE_STORAGE_KEY,
appPasswordSecret: APP_PASSWORD_SECRET,
appPasswordSetupUrl: APP_PASSWORD_SETUP_URL,
hosts: [AUTH_HOST, PDS_HOST_PATTERN],
defaultAuthService: DEFAULT_AUTH_SERVICE,
defaultPublicAppview: DEFAULT_PUBLIC_APPVIEW,
},
safety:
'Write helpers dry-run unless confirm: true is provided after explicit user approval. dryRun: true never creates a session.',
forkNote:
'This listing is meant to be forked. Live @kody/bluesky packageStorage is the platform bucket, not yours.',
exports: [
'smoke-test',
'request',
'resolve-handle',
'get-profile',
'search-posts',
'get-author-feed',
'get-post-thread',
'list-notifications',
'create-post',
'delete-post',
'like-post',
'repost',
'follow',
'unfollow',
'default-handle',
],
}
}