feat: add first-run runtime initialization
This commit is contained in:
@@ -44,6 +44,7 @@ import {
|
||||
import { updateSkillConfig, getSkillConfig, getAllSkillConfigs } from '../utils/skill-config';
|
||||
import { whatsAppLoginManager } from '../utils/whatsapp-login';
|
||||
import { getProviderConfig } from '../utils/provider-registry';
|
||||
import { getYinianInitializationStatus, initializeYinianRuntime } from '../utils/yinian-initializer';
|
||||
import { deviceOAuthManager, OAuthProviderType } from '../utils/device-oauth';
|
||||
import { browserOAuthManager, type BrowserOAuthProviderType } from '../utils/browser-oauth';
|
||||
import { applyProxySettings } from './proxy';
|
||||
@@ -98,6 +99,9 @@ export function registerIpcHandlers(
|
||||
// OpenClaw handlers
|
||||
registerOpenClawHandlers(gatewayManager);
|
||||
|
||||
// YINIAN first-run initialization
|
||||
registerYinianSetupHandlers();
|
||||
|
||||
// Provider handlers
|
||||
registerProviderHandlers(gatewayManager);
|
||||
|
||||
@@ -144,6 +148,11 @@ export function registerIpcHandlers(
|
||||
registerFileHandlers();
|
||||
}
|
||||
|
||||
function registerYinianSetupHandlers(): void {
|
||||
ipcMain.handle('yinian:setup:status', async () => getYinianInitializationStatus());
|
||||
ipcMain.handle('yinian:setup:initialize', async () => initializeYinianRuntime());
|
||||
}
|
||||
|
||||
function registerUnifiedRequestHandlers(gatewayManager: GatewayManager): void {
|
||||
const providerService = getProviderService();
|
||||
const handleProxySettingsChange = async () => {
|
||||
|
||||
Reference in New Issue
Block a user