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.

476 B
Raw Blame
import '../auth/auth_session.dart';
import '../core/local_hostname.dart';
import 'direct_auth.dart';
import 'direct_auth_api.dart';

DirectAuth createViewerAuth({
  required AuthSession session,
  required DirectAuthApi api,
}) => DirectAuth(session: session, api: api);

/// A native build holds a Harness session in place of SSO tokens, named for this device
/// ([DirectAuthApi.harnessSessionLabel]).
String? viewerSessionLabel() => localHostnameOrNull() ?? 'Desktop app';