You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
β¦without-agent-ownership' of github.com:Significant-Gravitas/AutoGPT into swiftyos/open-2276-add-ability-to-execute-store-agents-without-agent-ownership
The updated graph access logic needs careful review to ensure proper authorization - it now checks both user ownership and store listing access but the logic flow could potentially have edge cases.
ifgraph.userId==user_id:
returnGraphModel.from_db(graph, for_export) ifgraphelseNone# If the graph is not owned by the user, we need to check if it's a store listing.ifnotversion:
version=graph.versionstore_listing_where: StoreListingWhereInput= {
"agentId": graph_id,
"agentVersion": version,
}
store_listing=awaitStoreListing.prisma().find_first(where=store_listing_where)
# If it does not belong to the user nor is not a store listing, return Noneifnotstore_listing:
returnNone# If it is a store listing, return the graph model
The preset execution endpoint merges preset inputs with node inputs without validation. Need to verify this doesn't allow overriding critical preset values.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes ποΈ
Core Features:
Refactoring:
UserAgent
withLibraryAgent
.Schema Changes:
LibraryAgent
table with fields likeisArchived
,isDeleted
, etc.AgentPreset
.Testing:
LibraryAgent
operations.Database Migrations:
UserAgent
and addLibraryAgent
.Note this includes the changes from the following PR's to avoid merge conflicts with them:
#9179
#9211