- Added a new task store in `src-react/stores/task.ts` to manage tasks and their statuses. - Implemented functions for creating, executing, and retrying tasks, along with handling task progress and completion. - Introduced persistence for tasks using IPC. - Created utility functions for normalizing room types and building subtasks. - Added a new CSS file for global styles in `src-react/styles.css`. - Created runtime types in `src-react/types/runtime.ts` and exported them. - Updated the main entry points for Vue and React applications to support dynamic framework loading. - Refactored chat model interfaces and utility functions into `src/shared/chat-model.ts`. - Updated TypeScript configuration to include paths for React components and types. - Enhanced Vite configuration to support both Vue and React frameworks.
53 lines
844 B
TypeScript
53 lines
844 B
TypeScript
export {
|
|
CONFIG_KEYS,
|
|
DEFAULT_LANGUAGE,
|
|
DEFAULT_THEME_MODE,
|
|
IPC_EVENTS,
|
|
WINDOW_NAMES,
|
|
} from './constants';
|
|
|
|
export {
|
|
hostApiFetch,
|
|
hostApiFetch as fetchFromHost,
|
|
hasHostApiBridge,
|
|
invokeIpc,
|
|
onIpc,
|
|
} from './host-api';
|
|
|
|
export {
|
|
gatewayRpc,
|
|
gatewayRpc as callGateway,
|
|
onGatewayEvent,
|
|
} from './gateway-client';
|
|
|
|
export {
|
|
applyThemeModeToDocument,
|
|
detectSystemTheme,
|
|
resolveAppliedTheme,
|
|
watchSystemTheme,
|
|
} from './theme';
|
|
|
|
export {
|
|
detectRuntimePlatform,
|
|
detectWindowName,
|
|
hasIpcBridge,
|
|
resolveWindowIdentity,
|
|
} from './runtime';
|
|
|
|
export type {
|
|
ConfigKey,
|
|
ConfigValueKey,
|
|
ConfigValueMap,
|
|
GatewayEvent,
|
|
HostApiResult,
|
|
IpcArgs,
|
|
IpcListener,
|
|
LanguageCode,
|
|
ResolvedThemeMode,
|
|
RuntimePlatform,
|
|
ThemeMode,
|
|
WindowApiBridge,
|
|
WindowIdentity,
|
|
WindowName,
|
|
} from '../types/runtime';
|