Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
import type { ConnectionConfig } from '../runtime/types.js';
import type { ColorMode } from '../styles/color-mode.js';
export type HostBridgeResult = { ok: true } | { ok: false; code: 'UNSUPPORTED' | 'FAILED'; message: string };
export type HostNotification = {
title: string;
body: string;
threadId?: string;
runId?: string;
approvalId?: string;
};
export type BackgroundNotificationConfiguration =
| { enabled: false }
| { enabled: true };
export type DesktopPreferences = {
closeBehavior: 'hide' | 'quit';
telemetryEnabled: boolean;
};
export type DirectorySelectionPurpose = 'project' | 'default-project-root' | 'output-root';
export type ExternalNavigation = { navigate(url: string): void; close(): void };
export type HostWindowChrome = {
integratedTitleBar: true;
titleBarHeight: number;
trafficLightInset: number;
};
export type HostBridge = {
kind: 'browser' | 'desktop';
windowChrome?: HostWindowChrome;
authorizationReturnUrl?: string;
billingReturnUrl?: string;
prepareExternalNavigation?(): ExternalNavigation;
subscribeBillingReturn?(listener: (orderId?: string) => void): () => void;
readAppVersion?(): Promise<string>;
readConnectionConfig(): Promise<ConnectionConfig | null>;
openExternal(url: string): Promise<void>;
revealPath(path: string): Promise<HostBridgeResult>;
notify(message: HostNotification): Promise<void>;
configureBackgroundNotifications?(
configuration: BackgroundNotificationConfiguration
): Promise<HostBridgeResult>;
subscribeConnectionConfig?(
listener: (connection: ConnectionConfig | null) => void
): () => void;
restartRuntime?(): Promise<HostBridgeResult>;
selectCodexPath?(): Promise<HostBridgeResult>;
readDesktopPreferences?(): Promise<DesktopPreferences>;
updateDesktopPreferences?(
preferences: Partial<DesktopPreferences>
): Promise<DesktopPreferences>;
setWindowColorMode?(mode: ColorMode): Promise<void>;
controlWindow?(action: 'close' | 'minimize' | 'zoom'): Promise<void>;
selectProjectDirectory?(purpose?: DirectorySelectionPurpose): Promise<string | null>;
resolveDroppedFilePath?(file: File): string | null;
};