Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

1.1 KB
Raw Blame
import 'package:flutter/widgets.dart';

import 'screens/swarm_screen.dart';
import 'state/app_state.dart';
import 'ws/terminal_transport_plugin.dart';
import 'community/fork_host.dart';
import 'super_tabs/join_dialog.dart';
import 'super_tabs/message_link_host.dart';

/// The signed-in screen of a native build. A browser build compiles
/// `web/web_entry.dart` in its place (the conditional import in `main.dart`),
/// so native code never reaches `lib/web/`.
Widget authenticatedWorkspace(AppNotifier app) => CommunityForkHost(
  app: app,
  child: SwarmJoinHost(
    app: app,
    child: SwarmMessageLinkHost(
      app: app,
      child: SwarmScreen(notifier: app),
    ),
  ),
);

/// A native build's console is stderr, read only by a developer: it keeps every line.
void prepareConsole() {}

/// A native build draws nothing around its screens.
Widget appFrame(Widget app) => CommunityLinkHost(child: app);

/// A native build reaches machines through the local CLI, which carries its
/// own P2P transport (`remoteRelay.ts`): nothing to plug in here.
const TerminalTransportPluginFactory? terminalTransportPlugins = null;