Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autogot 3 #8347

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/1.bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ body:
- type: markdown
attributes:
value: |
### ⚠️ Before you continue
"### ⚠️ Before you continue"
* Check out our [backlog], [roadmap] and join our [discord] to discuss what's going on
* If you need help, you can ask in the [discussions] section or in [#tech-support]
* **Thoroughly search the [existing issues] before creating a new one**
Expand Down Expand Up @@ -170,4 +170,5 @@ body:
⚠️ The error log may contain personal data given to AutoGPT by you in prompt or input as well as
any personal information that AutoGPT collected out of files during last run. Do not add the activity log if you are not comfortable with sharing it. ⚠️
validations:
required: false
required: true

36 changes: 36 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is a basic workflow to help you get started with Actions

name: Blank workflow

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the $default-branch branch
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
54 changes: 54 additions & 0 deletions .vscode/all-projects.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,59 @@
"prisma.prisma",
"qwtel.sqlite-viewer"
]
},
"launch": {
"configurations": [
{
"type": "pwa-msedge",
"name": "Launch Microsoft Edge",
"request": "launch",
"runtimeArgs": [
"--remote-debugging-port=9222"
],
"url": "https://thepathwaypioneer.com/",
"presentation": {
"hidden": true
}
},
{
"type": "pwa-msedge",
"name": "Launch Microsoft Edge in headless mode",
"request": "launch",
"runtimeArgs": [
"--headless",
"--remote-debugging-port=9222"
],
"url": "https://thepathwaypioneer.com/",
"presentation": {
"hidden": true
}
},
{
"type": "vscode-edge-devtools.debug",
"name": "Open Edge DevTools",
"request": "attach",
"url": "https://thepathwaypioneer.com/",
"presentation": {
"hidden": true
}
}
],
"compounds": [
{
"name": "Launch Edge Headless and attach DevTools",
"configurations": [
"Launch Microsoft Edge in headless mode",
"Open Edge DevTools"
]
},
{
"name": "Launch Edge and attach DevTools",
"configurations": [
"Launch Microsoft Edge",
"Open Edge DevTools"
]
}
]
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ https://github.com/user-attachments/assets/d04273a5-b36a-4a37-818e-f631ce72d603

This tutorial assumes you have Docker, VSCode, git and npm installed.

### 🧱 AutoGPT Frontend
### 🧱 **AutoGPT** Frontend

The AutoGPT frontend is where users interact with our powerful AI automation platform. It offers multiple ways to engage with and leverage our AI agents. This is the interface where you'll bring your AI automation ideas to life:

Expand Down
1 change: 1 addition & 0 deletions autogpt_platform/frontend/flutter
Submodule flutter added at 266318
4 changes: 3 additions & 1 deletion classic/frontend/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ void main() async {
}

class MyApp extends StatelessWidget {
const MyApp({super.key});

@override
Widget build(BuildContext context) {
final taskService = Provider.of<TaskService>(context, listen: false);
Expand All @@ -90,7 +92,7 @@ class MyApp extends StatelessWidget {
stream: FirebaseAuth.instance.authStateChanges(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return CircularProgressIndicator();
return const CircularProgressIndicator();
}
String hostname = Uri.base.host;

Expand Down
1 change: 1 addition & 0 deletions classic/frontend/lib/services/auth_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class AuthService {
print("Error during Google Sign-In: $e");
return null;
}
return null;
}

// Sign in with GitHub using redirect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class SharedPreferencesService {
static final SharedPreferencesService instance =
SharedPreferencesService._privateConstructor();

Future<SharedPreferences> _prefs = SharedPreferences.getInstance();
final Future<SharedPreferences> _prefs = SharedPreferences.getInstance();

/// Sets a boolean [value] for the given [key] in the shared preferences.
///
Expand Down
2 changes: 1 addition & 1 deletion classic/frontend/lib/viewmodels/chat_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class ChatViewModel with ChangeNotifier {
}

// Assign the chats list
if (chats.length > 0) {
if (chats.isNotEmpty) {
_chats = chats;
}

Expand Down
6 changes: 3 additions & 3 deletions classic/frontend/lib/viewmodels/task_queue_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ class TaskQueueViewModel extends ChangeNotifier {
node.id, skillTreeNodes, skillTreeEdges)
.where((child) => !visited.contains(child.id));

children.forEach((child) {
for (var child in children) {
visited.add(child.id);
stack.push(child);
});
}
} else {
stack
.pop(); // Remove the node if not all parents are visited, it will be re-added when its parents are visited
Expand Down Expand Up @@ -232,7 +232,7 @@ class TaskQueueViewModel extends ChangeNotifier {
benchmarkStatusMap[node] = successStatus
? BenchmarkTaskStatus.success
: BenchmarkTaskStatus.failure;
await Future.delayed(Duration(seconds: 1));
await Future.delayed(const Duration(seconds: 1));
notifyListeners();

testSuite.tests.add(task);
Expand Down
5 changes: 2 additions & 3 deletions classic/frontend/lib/views/chat/agent_message_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ class _AgentMessageTileState extends State<AgentMessageTile> {
bool containsMarkdown(String text) {
// Regular expression to detect Markdown patterns like headers, bold, links, etc.
final RegExp markdownPattern = RegExp(
r'(?:\*\*|__).*?(?:\*\*|__)|' + // Bold
r'(?:\*|_).*?(?:\*|_)|' + // Italic
r'(?:\*\*|__).*?(?:\*\*|__)|' r'(?:\*|_).*?(?:\*|_)|' + // Italic
r'\[.*?\]\(.*?\)|' + // Links
r'!\[.*?\]\(.*?\)|' + // Images
r'#{1,6}.*|' + // Headers
Expand Down Expand Up @@ -89,7 +88,7 @@ class _AgentMessageTileState extends State<AgentMessageTile> {
styleSheet: MarkdownStyleSheet.fromTheme(
Theme.of(context))
.copyWith(
blockquoteDecoration: BoxDecoration(
blockquoteDecoration: const BoxDecoration(
color: Colors
.black, // Background color for blockquotes
border: Border(
Expand Down
1 change: 0 additions & 1 deletion classic/frontend/lib/views/chat/chat_input_field.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:auto_gpt_flutter_client/viewmodels/chat_viewmodel.dart';
import 'package:auto_gpt_flutter_client/views/chat/continuous_mode_dialog.dart';
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';

class ChatInputField extends StatefulWidget {
// Callback to be triggered when the send button is pressed
Expand Down
2 changes: 2 additions & 0 deletions classic/frontend/lib/views/settings/api_base_url_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import 'package:provider/provider.dart';
class ApiBaseUrlField extends StatelessWidget {
final TextEditingController controller = TextEditingController();

ApiBaseUrlField({super.key});

@override
Widget build(BuildContext context) {
return Consumer<SettingsViewModel>(
Expand Down
2 changes: 1 addition & 1 deletion classic/frontend/lib/views/side_bar/side_bar_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class SideBarView extends StatelessWidget {
IconButton(
splashRadius: 0.1,
iconSize: 25,
icon: Icon(Icons.book,
icon: const Icon(Icons.book,
color: Color.fromRGBO(50, 120, 123, 1)),
onPressed: () => _launchURL(
'https://aiedge.medium.com/autogpt-forge-e3de53cc58ec'),
Expand Down
6 changes: 3 additions & 3 deletions classic/frontend/lib/views/skill_tree/tree_node_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class TreeNodeView extends StatefulWidget {
final SkillTreeNode node;
final bool selected;

TreeNodeView({required this.node, this.selected = false});
const TreeNodeView({super.key, required this.node, this.selected = false});

@override
_TreeNodeViewState createState() => _TreeNodeViewState();
Expand Down Expand Up @@ -61,10 +61,10 @@ class _TreeNodeViewState extends State<TreeNodeView> {
),
),
),
SizedBox(height: 4),
const SizedBox(height: 4),
Text(
widget.node.label,
style: TextStyle(fontSize: 12),
style: const TextStyle(fontSize: 12),
),
],
),
Expand Down
6 changes: 3 additions & 3 deletions classic/frontend/lib/views/task/new_task_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class NewTaskButton extends StatelessWidget {
onPressed: onPressed,
style: ButtonStyle(
// Set the button's background color
backgroundColor: MaterialStateProperty.all<Color>(Colors.white),
backgroundColor: WidgetStateProperty.all<Color>(Colors.white),
// Set the button's edge
side: MaterialStateProperty.all<BorderSide>(
side: WidgetStateProperty.all<BorderSide>(
const BorderSide(color: Colors.black, width: 0.5)),
// Set the button's shape with rounded corners
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
shape: WidgetStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
),
Expand Down
1 change: 1 addition & 0 deletions classic/frontend/lib/views/task/task_list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class TaskListTile extends StatelessWidget {
this.selected = false,
}) : super(key: key);

@override
Widget build(BuildContext context) {
// Determine the width of the TaskView
double taskViewWidth = MediaQuery.of(context).size.width;
Expand Down
4 changes: 2 additions & 2 deletions classic/frontend/lib/views/task/test_suite_detail_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class _TestSuiteDetailViewState extends State<TestSuiteDetailView> {
appBar: AppBar(
backgroundColor: Colors.grey,
foregroundColor: Colors.black,
title: Text("${widget.testSuite.timestamp}"),
title: Text(widget.testSuite.timestamp),
leading: IconButton(
icon: Icon(Icons.arrow_back),
icon: const Icon(Icons.arrow_back),
onPressed: () => widget.viewModel.deselectTestSuite(),
),
),
Expand Down
1 change: 1 addition & 0 deletions classic/frontend/lib/views/task/test_suite_list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class TestSuiteListTile extends StatelessWidget {
required this.onTap,
}) : super(key: key);

@override
Widget build(BuildContext context) {
// Determine the width of the TaskView
double taskViewWidth = MediaQuery.of(context).size.width;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ class LeaderboardSubmissionButton extends StatelessWidget {
final VoidCallback? onPressed;
final bool isDisabled;

LeaderboardSubmissionButton(
{required this.onPressed, this.isDisabled = false});
const LeaderboardSubmissionButton(
{super.key, required this.onPressed, this.isDisabled = false});

@override
Widget build(BuildContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class _LeaderboardSubmissionDialogState
),
),
),
SizedBox(width: 8),
const SizedBox(width: 8),
// Submit Button
SizedBox(
width: 106,
Expand Down
Loading
Loading