INNER CODE UNIT · TypeScript

exec

Aident-AI/open-cuak · apps/extension/src/scripts/service-worker/index.ts:22

const exec = async () => {
  await ALogger.genInit('placeholder', ExecutionEnvironment.EXTENSION_SERVICE_WORKER); // TODO: set the extension session id for realtime channel
  await loadConfigJson();

  ALogger.debug({ context: 'start to load service worker', stack: 'ServiceWorker' });

  // These requires to be the first in order to properly listen to chrome events (e.g. chrome.runtime, chrome.contextMenus, chrome.commands, chrome.action, etc)
  ExtensionEntryPointService.start();

  await BroadcastService.start();
  await ActiveTabService.start();
  await Promise.all([
    ActiveTabLifecycleWorkerService.start(),
    AppSettingsService.start(),
    InteractableService.start(),
    InterpreterService.start(),
    RRReplayerWorkerService.start(),
    ServiceWorkerMessageHandler.start(),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…