INNER CODE UNIT · TypeScript

boot

open-gitagent/clawless · src/main.ts:26

async function boot() {
  const template = await waitForTemplateSelection();

  // Hide picker, show loading status
  const picker = document.getElementById('template-picker');
  const status = document.getElementById('loading-status');
  const progressBar = status?.nextElementSibling as HTMLElement | null;
  if (picker) picker.style.display = 'none';
  if (status) status.style.display = '';
  if (progressBar) progressBar.style.display = '';

  const cc = new ClawContainer('#app', { template });
  cc.start().catch(console.error);

  // Expose SDK globally for console access and external scripts
  (window as any).clawcontainer = cc;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…