Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

921 B
Raw Blame
import {
  renderAgentModals,
  renderConfirmDialogModals,
  renderDebugLogContainer,
} from '../../../ui/react-injects';

let workspace;
export async function setupModals(_workspace) {
  workspace = _workspace;

  // Ensure the container exists before rendering
  const container = document.getElementById('builder-deploy-modal-container');
  if (!container) {
    console.error('Modal container not found');
    return;
  }

  renderAgentModals({ rootID: 'builder-deploy-modal-container' });
  // Ensure the container exists before rendering
  const simpleModalContainer = document.getElementById('self-contained-builder-modals');
  if (!simpleModalContainer) {
    console.error('Modal container not found');
    return;
  }

  renderConfirmDialogModals({ rootID: 'self-contained-builder-modals' });
}

export function handleBuilderReactInjects() {
  renderDebugLogContainer({ rootID: 'debug-log-container-root' });
}