feat: prompts from workspace

This commit is contained in:
cogwheel0
2025-09-20 23:22:57 +05:30
parent 3db5a8b760
commit 33fbc31672
4 changed files with 557 additions and 10 deletions

View File

@@ -0,0 +1,12 @@
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:conduit/core/models/prompt.dart';
import 'package:conduit/core/services/prompts_service.dart';
final promptsListProvider = FutureProvider<List<Prompt>>((ref) async {
final promptsService = ref.watch(promptsServiceProvider);
if (promptsService == null) return const <Prompt>[];
return promptsService.getPrompts();
});
final activePromptCommandProvider = StateProvider<String?>((ref) => null);