mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 10:49:49 +08:00
refactor: Move AutoFixService, RequestApplyService, PromptBuilder, and UrlEnvService to core services
- Deleted old implementations of AutoFixService, RequestApplyService, PromptBuilder, and UrlEnvService from the chat feature. - Introduced new implementations of AutoFixService, RequestApplyService, PromptBuilder, and UrlEnvService in the core services directory. - Updated import paths to reflect the new structure. - Ensured all functionalities remain intact after the refactor.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import 'package:apidash_core/apidash_core.dart';
|
||||
import 'package:apidash/models/models.dart';
|
||||
|
||||
import '../../models/chat_models.dart';
|
||||
import '../../../features/chat/models/chat_models.dart';
|
||||
import 'request_apply_service.dart';
|
||||
|
||||
class AutoFixService {
|
||||
@@ -2,7 +2,7 @@ import 'dart:convert';
|
||||
|
||||
import 'package:apidash_core/apidash_core.dart';
|
||||
|
||||
import '../../models/chat_models.dart';
|
||||
import '../../../features/chat/models/chat_models.dart';
|
||||
import '../base/url_env_service.dart';
|
||||
|
||||
class ApplyResult {
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'package:apidash/models/models.dart';
|
||||
import 'package:apidash/dashbot/core/constants/dashbot_prompts.dart' as dash;
|
||||
|
||||
import '../../models/chat_models.dart';
|
||||
import '../../../features/chat/models/chat_models.dart';
|
||||
|
||||
class PromptBuilder {
|
||||
String buildSystemPrompt(
|
||||
@@ -1,9 +1,9 @@
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
import '../services/agent/prompt_builder.dart';
|
||||
import '../services/base/url_env_service.dart';
|
||||
import '../services/actions/auto_fix_service.dart';
|
||||
import '../services/actions/request_apply_service.dart';
|
||||
import '../../../core/services/agent/prompt_builder.dart';
|
||||
import '../../../core/services/base/url_env_service.dart';
|
||||
import '../../../core/services/actions/auto_fix_service.dart';
|
||||
import '../../../core/services/actions/request_apply_service.dart';
|
||||
import '../../../../providers/providers.dart';
|
||||
import 'package:apidash_core/apidash_core.dart';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user