Commit Graph

6339 Commits (pwuts/open-2088-implement-new-agent-runs-page)

Author SHA1 Message Date
Reinier van der Leer 341e4ba1dd
fix card content spazzing on select/deselect 2025-01-21 12:15:23 +01:00
Reinier van der Leer 88e3deda85
clean up globals.css 2025-01-21 11:55:52 +01:00
Reinier van der Leer e3b39b4c95
make and use `agpt-card-selected` class 2025-01-21 11:29:54 +01:00
Reinier van der Leer 58eeee338c
fix run I/O blipping on refresh 2025-01-19 17:53:21 +01:00
Reinier van der Leer a862ba8754
fix agent run draft form input 2025-01-17 18:08:51 +01:00
Reinier van der Leer 3c96e83c91
make agent run card pointable 2025-01-17 17:59:03 +01:00
Reinier van der Leer 03bbfbc00e
redo view selection logic to fix glitches 2025-01-17 17:58:06 +01:00
Reinier van der Leer f547513207
fix ordering & propagation of node executions and I/O in `get_graph_execution` 2025-01-17 17:14:57 +01:00
Reinier van der Leer f9462bcf2a
dx(backend, libs): fix log spam 2025-01-17 16:31:22 +01:00
Reinier van der Leer 932a4e9a5d
fix view selection, I/O fetching, selection styling 2025-01-17 15:50:19 +01:00
Reinier van der Leer 19bbbc6833
dx: add frontend format step to `pre-commit` config 2025-01-17 15:31:05 +01:00
Reinier van der Leer 6229883cf1
EOD
- Added schedule view
- Added run draft view
- Separated run detail view, schedule view, and run draft view out as components
- Set violet/600 as theme accent color
- Added `agptui/Button` variant `accent`
- Made a bunch of buttons functional (mainly "Run" buttons)
2025-01-17 02:00:57 +01:00
Reinier van der Leer 694bdd9aa2
fix error on load when no runs yet 2025-01-16 23:57:06 +01:00
Reinier van der Leer c5b77e167f
Merge branch 'dev-library-v2' into pwuts/open-2088-implement-new-agent-runs-page 2025-01-16 18:52:09 +01:00
Reinier van der Leer aa33f6cacc
Merge branch 'pwuts/open-2314-fix-up-and-re-introduce-library-v2-back-end-work' into dev-library-v2 2025-01-16 18:51:33 +01:00
Reinier van der Leer 46473f5847
fix creation and test cleanup of (library) agents 2025-01-16 18:48:28 +01:00
Reinier van der Leer 88f236fe26
fix centering of login/signup dialogs 2025-01-16 18:12:51 +01:00
Reinier van der Leer e8e4a38b84
feat: loading and displaying run I/O 2025-01-16 17:31:25 +01:00
Reinier van der Leer ceffc64790
make output of `/graphs/{graph_id}/executions/{exec_id}` more complete 2025-01-16 16:05:03 +01:00
Reinier van der Leer ddbdbd712b
fix Agent Runs page layout; fix tailwind sizes 2025-01-16 13:41:12 +01:00
Reinier van der Leer 8c4741d3f9
fix navbar overflowing in sm/md layouts 2025-01-16 12:57:26 +01:00
Reinier van der Leer ba6454012c
fix `agptui/Button` variants styling
- delete `default` variant as duplicate of `outline`; make `outline` default
- add `agpt-rounded-card` global class -> use for `card` button variant
- remove size-specific styling from global component style
2025-01-15 20:28:59 +01:00
Reinier van der Leer fd3a5dd7a2
fix `agptui/Button` sizing 2025-01-15 17:59:54 +01:00
Reinier van der Leer 3950f418a6
add `TERMINATED` -> `stopped` to run status map 2025-01-15 11:20:56 +01:00
Reinier van der Leer c6a14d30eb
Merge branch 'dev-library-v2' into pwuts/open-2088-implement-new-agent-runs-page 2025-01-14 17:48:34 +01:00
Reinier van der Leer a8dc3ff222
make CI run on `dev-*` branches 2025-01-14 17:20:25 +01:00
Reinier van der Leer 6bec50c931
Merge branch 'pwuts/open-2314-fix-up-and-re-introduce-library-v2-back-end-work' into dev-library-v2 2025-01-14 17:17:34 +01:00
Reinier van der Leer 09bcb82126
make `graph_version` parameter on `execute_graph` endpoint optional 2025-01-14 16:15:54 +01:00
Reinier van der Leer 78b2afdcad
fix formatting of Pydantic errors in front end client 2025-01-14 15:57:54 +01:00
Reinier van der Leer 4780b0ad97
Merge remote-tracking branch 'origin/ntindle/reenable-tests' into pwuts/open-2276-add-ability-to-execute-store-agents-without-agent-ownership 2025-01-14 15:20:21 +01:00
Swifty 1ecc073bff
feature(backend): Add ability to execute store agents without agent ownership (#9179)
This PR enables the execution of store agents even if they are not owned
by the user. Key changes include handling store-listed agents in the
`get_graph` logic, improving execution flow, and ensuring
version-specific handling. These updates support more flexible agent
execution.

- **Graph Retrieval:** Updated `get_graph` to check store listings for
agents not owned by the user.
- **Version Handling:** Added `graph_version` to execution methods for
consistent version-specific execution.
- **Execution Flow:** Refactored `scheduler.py`, `rest_api.py`, and
other modules for clearer logic and better maintainability.
- **Testing:** Updated `test_manager.py` and other test cases to
validate execution of store-listed agents added test for accessing graph

---------

Co-authored-by: Reinier van der Leer <pwuts@agpt.co>
Co-authored-by: Zamil Majdy <zamil.majdy@agpt.co>
2025-01-14 15:19:38 +01:00
Reinier van der Leer a8ac41090e
refactor: Fix type checking on Prisma statements in `v2.library.db` 2025-01-13 23:32:52 +01:00
Reinier van der Leer 85180e1c6c
fix `update_agent_version_in_library` 2025-01-13 23:30:47 +01:00
Nicholas Tindle faf7a42086
fix: lint 2025-01-13 15:48:13 -06:00
Nicholas Tindle 81a137d852
fix: stop waiting for network to settle 2025-01-13 15:43:49 -06:00
Nicholas Tindle 8e82469ae9
feat: break apart the add blocks test 2025-01-13 15:37:09 -06:00
Nicholas Tindle 7ab94c919c
Merge remote-tracking branch 'origin/dev' into ntindle/reenable-tests 2025-01-13 13:37:47 -06:00
Nicholas Tindle a5b9dc6024
feat: tests 2025-01-13 13:34:39 -06:00
Nicholas Tindle 6aaed0aaec
Merge branch 'dev' into ntindle/reenable-tests 2025-01-13 12:40:46 -06:00
Aarushi fe84cbe566
Revert "feature(backend): Add ability to execute store agents without agent ownership" (#9263)
Reverts Significant-Gravitas/AutoGPT#9179

This PR is preventing the running of agents in dev.
2025-01-13 18:34:17 +00:00
Reinier van der Leer 700f2a3d4a
Merge branch 'pwuts/open-2309-fix-db-error-could-not-find-field-at' into pwuts/open-2314-fix-up-and-re-introduce-library-v2-back-end-work 2025-01-13 18:06:38 +01:00
Reinier van der Leer 577357d6a5
feat(backend): Library v2 Agents and Presets
This re-applies the following commits:
- fd6f28fa57
- 4b17cc9963
2025-01-13 18:00:11 +01:00
Aarushi 5618072375
fix(blocks/Exa): Fix exa contents block advanced toggle (#9255)
Toggling the advanced option on Exa Contents Block isn't working. It
throws a frontend error.

### Changes 🏗️

Remove Optional from ContentRetrievalSettings in exa/contents.py

### Checklist 📋

#### For code changes:
- [x ] I have clearly listed my changes in the PR description
- [ x] I have made a test plan
- [ x] I have tested my changes according to the test plan:
  <!-- Put your test plan here: -->
  - Add an ExaContentsBlock
  - Hit advanced


#### For configuration changes:
N/A
2025-01-13 16:35:14 +00:00
Reinier van der Leer 95b79abcfe
Revert broken Library v2 DB stuff of #9218, #9211 (#9256)
- **Revert "feature(platform): Implement library add, update, remove,
archive functionality (#9218)"**
- **Revert "feat(backend): Add Support for Managing Agent Presets with
Pagination and Soft Delete (#9211)"**

These PRs contain untested changes to DB functions and cause issues in
production.
2025-01-13 16:08:58 +01:00
Reinier van der Leer d07be7f19e
fix other DB calls in `v2.library.db` 2025-01-13 13:26:49 +01:00
Reinier van der Leer 3d21a12cf3
fix `library.db.update_agent_version_in_library(..)`
- Resolves #9250
2025-01-13 12:47:00 +01:00
Nicholas Tindle 0da8a3af69 Re-enable the tests in monitor.spec.ts and then ensure they pass
Enable the tests in `monitor.spec.ts`.

* Remove `test.describe.skip` to enable the tests.
* Ensure the tests are now running and passing successfully.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Significant-Gravitas/AutoGPT?shareId=XXXX-XXXX-XXXX-XXXX).
2025-01-12 17:11:56 -06:00
Swifty fd6f28fa57
feature(platform): Implement library add, update, remove, archive functionality (#9218)
### Changes 🏗️

1. **Core Features**:
   - Add agents to the user's library.
   - Update library agents (auto-update, favorite, archive, delete).
   - Paginate library agents and presets.
   - Execute graphs using presets.

2. **Refactoring**:
   - Replaced `UserAgent` with `LibraryAgent`.
   - Separated routes for agents and presets.

3. **Schema Changes**:
- Added `LibraryAgent` table with fields like `isArchived`, `isDeleted`,
etc.
   - Soft delete functionality for `AgentPreset`.

4. **Testing**:
   - Updated tests for `LibraryAgent` operations.
   - Added edge case tests for deletion, archiving, and pagination.

5. **Database Migrations**:
   - Migration to drop `UserAgent` and add `LibraryAgent`.
   - Added fields for soft deletion and auto-update.


Note this includes the changes from the following PR's to avoid merge
conflicts with them:

#9179 
#9211

---------

Co-authored-by: Reinier van der Leer <pwuts@agpt.co>
2025-01-10 13:02:53 +01:00
Swifty 4b17cc9963
feat(backend): Add Support for Managing Agent Presets with Pagination and Soft Delete (#9211)
#### Summary
- **New Models**: Added `LibraryAgentPreset`,
`LibraryAgentPresetResponse`, `Pagination`, and
`CreateLibraryAgentPresetRequest`.
- **Database Changes**:
  - Added `isDeleted` column in `AgentPreset` for soft delete.
  - CRUD operations for `AgentPreset`:
    - `get_presets` with pagination.
    - `get_preset` by ID.
    - `create_or_update_preset` for upsert.
    - `delete_preset` to soft delete.
- **API Routes**:
  - `GET /presets`: Fetch paginated presets.
  - `GET /presets/{preset_id}`: Fetch a single preset.
  - `POST /presets`: Create a preset.
  - `PUT /presets/{preset_id}`: Update a preset.
  - `DELETE /presets/{preset_id}`: Soft delete a preset.
- **Tests**:
  - Coverage for models, CRUD operations, and pagination.
- **Migration**:
  - Added `isDeleted` field to support soft delete.

#### Review Notes
- Validate migration scripts and test coverage.
- Ensure API aligns with project standards.

---------

Co-authored-by: Reinier van der Leer <pwuts@agpt.co>
2025-01-10 12:57:35 +01:00
Swifty 00bb7c67b3
feature(backend): Add ability to execute store agents without agent ownership (#9179)
### Description

This PR enables the execution of store agents even if they are not owned
by the user. Key changes include handling store-listed agents in the
`get_graph` logic, improving execution flow, and ensuring
version-specific handling. These updates support more flexible agent
execution.

### Changes 🏗️

- **Graph Retrieval:** Updated `get_graph` to check store listings for
agents not owned by the user.
- **Version Handling:** Added `graph_version` to execution methods for
consistent version-specific execution.
- **Execution Flow:** Refactored `scheduler.py`, `rest_api.py`, and
other modules for clearer logic and better maintainability.
- **Testing:** Updated `test_manager.py` and other test cases to
validate execution of store-listed agents added test for accessing graph

---------

Co-authored-by: Reinier van der Leer <pwuts@agpt.co>
Co-authored-by: Zamil Majdy <zamil.majdy@agpt.co>
2025-01-10 12:39:06 +01:00