The import was redundant since it's already re-exported directly. Fixes eslint no-unused-vars error in CI. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
/**
|
|
* IPC handlers index - register all handlers from main process.
|
|
*/
|
|
export { registerAgentIpcHandlers, cleanupAgent } from './agent.js'
|
|
export { registerSkillsIpcHandlers } from './skills.js'
|
|
export { registerHubIpcHandlers, cleanupHub, initializeHub, setupDeviceConfirmation } from './hub.js'
|
|
export { registerProfileIpcHandlers } from './profile.js'
|
|
|
|
import { registerAgentIpcHandlers, cleanupAgent } from './agent.js'
|
|
import { registerSkillsIpcHandlers } from './skills.js'
|
|
import { registerHubIpcHandlers, cleanupHub, initializeHub } from './hub.js'
|
|
import { registerProfileIpcHandlers } from './profile.js'
|
|
|
|
/**
|
|
* Register all IPC handlers.
|
|
* Call this in main.ts after app is ready.
|
|
*/
|
|
export function registerAllIpcHandlers(): void {
|
|
registerHubIpcHandlers()
|
|
registerAgentIpcHandlers()
|
|
registerSkillsIpcHandlers()
|
|
registerProfileIpcHandlers()
|
|
}
|
|
|
|
/**
|
|
* Initialize Hub and create default agent.
|
|
* Call this after IPC handlers are registered.
|
|
*/
|
|
export async function initializeApp(): Promise<void> {
|
|
console.log('[Desktop] Initializing app...')
|
|
await initializeHub()
|
|
console.log('[Desktop] App initialized')
|
|
}
|
|
|
|
/**
|
|
* Cleanup all resources.
|
|
* Call this before app quits.
|
|
*/
|
|
export function cleanupAll(): void {
|
|
cleanupHub()
|
|
cleanupAgent()
|
|
}
|