* handle google auth * fix lint * fix auto login button type * update i18 language + userprofilemenu position * minor api rename for consistency
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
/**
|
|
* Web Extensions Package
|
|
* Contains browser-compatible extensions for Jan AI
|
|
*/
|
|
|
|
import type { WebExtensionRegistry } from './types'
|
|
|
|
export { default as ConversationalExtensionWeb } from './conversational-web'
|
|
export { default as JanProviderWeb } from './jan-provider-web'
|
|
export { default as MCPExtensionWeb } from './mcp-web'
|
|
|
|
// Re-export auth functionality
|
|
export {
|
|
JanAuthService,
|
|
getSharedAuthService,
|
|
AUTH_STORAGE_KEYS,
|
|
AUTH_EVENTS,
|
|
AUTH_BROADCAST_CHANNEL,
|
|
} from './shared/auth'
|
|
|
|
// Re-export types
|
|
export type {
|
|
WebExtensionRegistry,
|
|
WebExtensionModule,
|
|
WebExtensionName,
|
|
WebExtensionLoader,
|
|
ConversationalWebModule,
|
|
JanProviderWebModule,
|
|
MCPWebModule,
|
|
} from './types'
|
|
|
|
// Re-export auth types
|
|
export type {
|
|
User,
|
|
AuthTokens,
|
|
AuthProvider,
|
|
AuthProviderRegistry,
|
|
ProviderType,
|
|
} from './shared/auth'
|
|
|
|
// Extension registry for dynamic loading
|
|
export const WEB_EXTENSIONS: WebExtensionRegistry = {
|
|
'conversational-web': () => import('./conversational-web'),
|
|
'jan-provider-web': () => import('./jan-provider-web'),
|
|
'mcp-web': () => import('./mcp-web'),
|
|
}
|