cockpit 1.1.0 copy "cockpit: ^1.1.0" to clipboard
cockpit: ^1.1.0 copied to clipboard

Host-side tooling for flutter_cockpit task execution and artifact handling.

example/main.dart

import 'dart:io';

import 'package:cockpit/cockpit.dart';

Future<void> main(List<String> args) async {
  final runner = CockpitCommandRunner();
  if (args.isNotEmpty) {
    exitCode = await runner.run(args);
    return;
  }

  stdout.writeln('Cockpit host tooling example');
  stdout.writeln('');
  stdout.writeln('Common AI-first commands:');
  stdout.writeln('  dart run cockpit list-targets');
  stdout.writeln(
    '  dart run cockpit launch-app --project-dir . --platform macos',
  );
  stdout.writeln('  dart run cockpit read-app --profile minimal');
  stdout.writeln('  dart run cockpit capture-screenshot --name acceptance');
  stdout.writeln('  dart run cockpit read-system-capabilities');
  stdout.writeln('  dart run cockpit serve-mcp');
  stdout.writeln('');
  stdout.writeln(
    'This example can also proxy arguments into CockpitCommandRunner:',
  );
  stdout.writeln('  dart run example/main.dart read-system-capabilities');
}
1
likes
150
points
100
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Host-side tooling for flutter_cockpit task execution and artifact handling.

Repository (GitHub)
View/report issues

Topics

#flutter #cli #tooling #ai #mcp

License

MIT (license)

Dependencies

args, collection, dart_mcp, file, flutter_cockpit, http, image, path, process, stream_channel, yaml

More

Packages that depend on cockpit