mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-13 16:25:05 -05:00
- Resolves #9716 - Builds on the work done in #9627 ### Changes 🏗️ - Remove `safeCopyGraph`; export directly from backend instead - Explicitly name sanitization functions for *importing* graphs; move to `@/lib/autogpt-server-api/utils` - Amend `BackendAPI.getGraph(..)` to delete `.user_id` if `for_export == true` Out-of-scope improvements: - Add missing `user_id` to frontend `Graph` types - Add `UserID` branded type for `User.id` + all `user_id` properties ### 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: - Create and configure an agent with the Publish To Medium block, a block that uses credentials, and a webhook trigger - Go to `/monitoring` and click the agent you just created - [x] -> "Export" button should work - [x] -> Exported file contains no credentials or secrets - [x] -> Exported file contains no user IDs - [x] -> Exported file contains no webhook IDs