Add the Flutter video editing application with project management, media import, timeline editing, preview, AI assistance, diagnostics and settings. Include shared UI and native host packages, platform runners, application tests and release tooling. Provide usage and contribution guides, the MIT license and third-party notices. Exclude local credentials, build outputs and validation data.
19 lines
616 B
Dart
19 lines
616 B
Dart
import 'dart:io';
|
|
|
|
import 'package:cutdex_agent/cutdex_agent.dart';
|
|
import 'package:cutdex_agent/io.dart';
|
|
import 'package:path/path.dart' as p;
|
|
import 'package:path_provider/path_provider.dart';
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
|
|
part 'agent_session_store.g.dart';
|
|
|
|
/// Owns the durable Agent checkpoint journal for the lifetime of the app.
|
|
@Riverpod(keepAlive: true)
|
|
FutureOr<SessionStore> agentSessionStore(Ref ref) async {
|
|
final support = await getApplicationSupportDirectory();
|
|
return FileSessionStore(
|
|
Directory(p.join(support.path, 'Cutdex', 'Agent', 'Sessions')),
|
|
);
|
|
}
|