Files
openchamber/packages/web/src/api/index.ts
T

24 lines
950 B
TypeScript
Raw Normal View History

2025-12-07 19:32:53 +02:00
import type { RuntimeAPIs } from '@openchamber/ui/lib/api/types';
import { createWebTerminalAPI } from './terminal';
import { createWebGitAPI } from './git';
import { createWebFilesAPI } from './files';
import { createWebSettingsAPI } from './settings';
import { createWebPermissionsAPI } from './permissions';
import { createWebNotificationsAPI } from './notifications';
import { createWebToolsAPI } from './tools';
import { createWebPushAPI } from './push';
import { createWebGitHubAPI } from './github';
2025-12-07 19:32:53 +02:00
export const createWebAPIs = (): RuntimeAPIs => ({
2025-12-13 16:34:17 +02:00
runtime: { platform: 'web', isDesktop: false, isVSCode: false, label: 'web' },
2025-12-07 19:32:53 +02:00
terminal: createWebTerminalAPI(),
git: createWebGitAPI(),
files: createWebFilesAPI(),
settings: createWebSettingsAPI(),
permissions: createWebPermissionsAPI(),
notifications: createWebNotificationsAPI(),
github: createWebGitHubAPI(),
push: createWebPushAPI(),
2025-12-07 19:32:53 +02:00
tools: createWebToolsAPI(),
});