slopus--happy
98e40dac97
CLI Smoke Test / smoke-test-linux (20) (push) Has been cancelled
CLI Smoke Test / smoke-test-linux (24) (push) Has been cancelled
CLI Smoke Test / smoke-test-windows (20) (push) Has been cancelled
CLI Smoke Test / smoke-test-windows (24) (push) Has been cancelled
Expo App TypeScript typecheck / typecheck (push) Has been cancelled
37 行
839 B
TypeScript
37 行
839 B
TypeScript
import { anthropicPlugin } from './anthropic'
|
|
import { codexPlugin } from './codex'
|
|
import { happyPlugin } from './happy'
|
|
import { registerPlugin } from './host'
|
|
|
|
export type {
|
|
AuthState,
|
|
Capability,
|
|
LLMInferenceCapability,
|
|
ModelDescriptor,
|
|
Plugin,
|
|
PluginCategory,
|
|
} from './types'
|
|
export {
|
|
pluginHost,
|
|
pluginsAtom,
|
|
useInferenceModels,
|
|
usePlugin,
|
|
usePlugins,
|
|
} from './host'
|
|
|
|
let booted = false
|
|
|
|
/**
|
|
* Boot the plugin host once. Call this from the renderer entry point before
|
|
* the React app mounts so plugins are ready by the time UI subscribes.
|
|
*/
|
|
export async function bootPlugins(): Promise<void> {
|
|
if (booted) return
|
|
booted = true
|
|
await Promise.all([
|
|
registerPlugin(anthropicPlugin),
|
|
registerPlugin(codexPlugin),
|
|
registerPlugin(happyPlugin),
|
|
])
|
|
}
|