mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-10 06:45:28 -05:00
- feat(blocks): Add GitHub Pull Request Trigger block ## feat(platform): Add support for Webhook-triggered blocks - ⚠️ Add `PLATFORM_BASE_URL` setting - Add webhook config option and `BlockType.WEBHOOK` to `Block` - Add check to `Block.__init__` to enforce type and shape of webhook event filter - Add check to `Block.__init__` to enforce `payload` input on webhook blocks - Add check to `Block.__init__` to disable webhook blocks if `PLATFORM_BASE_URL` is not set - Add `Webhook` model + CRUD functions in `backend.data.integrations` to represent webhooks created by our system - Add `IntegrationWebhook` to DB schema + reference `AgentGraphNode.webhook_id` - Add `set_node_webhook(..)` in `backend.data.graph` - Add webhook-related endpoints: - `POST /integrations/{provider}/webhooks/{webhook_id}/ingress` endpoint, to receive webhook payloads, and for all associated nodes create graph executions - Add `Node.is_triggered_by_event_type(..)` helper method - `POST /integrations/{provider}/webhooks/{webhook_id}/ping` endpoint, to allow testing a webhook - Add `WebhookEvent` + pub/sub functions in `backend.data.integrations` - Add `backend.integrations.webhooks` module, including: - `graph_lifecycle_hooks`, e.g. `on_graph_activate(..)`, to handle corresponding webhook creation etc. - Add calls to these hooks in the graph create/update endpoints - `BaseWebhooksManager` + `GithubWebhooksManager` to handle creating + registering, removing + deregistering, and retrieving existing webhooks, and validating incoming payloads ## Other improvements - fix(blocks): Allow having an input and output pin with the same name - fix(blocks): Add tooltip with description in places where block inputs are rendered without `NodeHandle` - feat(blocks): Allow hiding inputs (e.g. `payload`) with `SchemaField(hidden=True)` - fix(frontend): Fix `MultiSelector` component styling - feat(frontend): Add `AlertDialog` UI component - feat(frontend): Add `NodeMultiSelectInput` component - feat(backend/data): Add `NodeModel` with `graph_id`, `graph_version`; `GraphModel` with `user_id` - Add `make_graph_model(..)` helper function in `backend.data.graph` - refactor(backend/data): Make `RedisEventQueue` generic and move to `backend.data.execution` - refactor(frontend): Deduplicate & clean up code for different block types in `generateInputHandles(..)` in `CustomNode` - dx(backend): Add `MissingConfigError`, `NeedConfirmation` exception --------- Co-authored-by: Zamil Majdy <zamil.majdy@agpt.co>
107 lines
3.7 KiB
JSON
107 lines
3.7 KiB
JSON
{
|
|
"name": "frontend",
|
|
"version": "0.3.3",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"dev:nosentry": "export NODE_ENV=development && export DISABLE_SENTRY=true && next dev",
|
|
"dev:test": "export NODE_ENV=test && next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint && prettier --check .",
|
|
"format": "prettier --write .",
|
|
"type-check": "tsc --noEmit",
|
|
"test": "playwright test",
|
|
"test-ui": "playwright test --ui",
|
|
"gentests": "playwright codegen http://localhost:3000",
|
|
"storybook": "storybook dev -p 6006",
|
|
"build-storybook": "storybook build",
|
|
"test-storybook": "test-storybook",
|
|
"test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"npm run build-storybook -- --quiet && npx http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && npm run test-storybook\""
|
|
},
|
|
"browserslist": [
|
|
"defaults"
|
|
],
|
|
"dependencies": {
|
|
"@faker-js/faker": "^9.2.0",
|
|
"@hookform/resolvers": "^3.9.1",
|
|
"@next/third-parties": "^15.0.3",
|
|
"@radix-ui/react-alert-dialog": "^1.1.2",
|
|
"@radix-ui/react-avatar": "^1.1.1",
|
|
"@radix-ui/react-checkbox": "^1.1.2",
|
|
"@radix-ui/react-collapsible": "^1.1.1",
|
|
"@radix-ui/react-context-menu": "^2.2.1",
|
|
"@radix-ui/react-dialog": "^1.1.2",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.2",
|
|
"@radix-ui/react-icons": "^1.3.2",
|
|
"@radix-ui/react-label": "^2.1.0",
|
|
"@radix-ui/react-popover": "^1.1.2",
|
|
"@radix-ui/react-radio-group": "^1.2.1",
|
|
"@radix-ui/react-scroll-area": "^1.2.1",
|
|
"@radix-ui/react-select": "^2.1.2",
|
|
"@radix-ui/react-separator": "^1.1.0",
|
|
"@radix-ui/react-slot": "^1.1.0",
|
|
"@radix-ui/react-switch": "^1.1.1",
|
|
"@radix-ui/react-toast": "^1.2.2",
|
|
"@radix-ui/react-tooltip": "^1.1.4",
|
|
"@sentry/nextjs": "^8",
|
|
"@supabase/ssr": "^0.5.2",
|
|
"@supabase/supabase-js": "^2.46.1",
|
|
"@tanstack/react-table": "^8.20.5",
|
|
"@xyflow/react": "^12.3.5",
|
|
"ajv": "^8.17.1",
|
|
"class-variance-authority": "^0.7.0",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "1.0.4",
|
|
"cookie": "1.0.1",
|
|
"date-fns": "^4.1.0",
|
|
"dotenv": "^16.4.5",
|
|
"elliptic": "6.6.1",
|
|
"lucide-react": "^0.460.0",
|
|
"moment": "^2.30.1",
|
|
"next": "^14.2.13",
|
|
"next-themes": "^0.4.3",
|
|
"react": "^18",
|
|
"react-day-picker": "^9.3.2",
|
|
"react-dom": "^18",
|
|
"react-hook-form": "^7.53.2",
|
|
"react-icons": "^5.3.0",
|
|
"react-markdown": "^9.0.1",
|
|
"react-modal": "^3.16.1",
|
|
"react-shepherd": "^6.1.4",
|
|
"recharts": "^2.13.3",
|
|
"tailwind-merge": "^2.5.4",
|
|
"tailwindcss-animate": "^1.0.7",
|
|
"uuid": "^11.0.3",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@chromatic-com/storybook": "^3.2.2",
|
|
"@playwright/test": "^1.48.2",
|
|
"@storybook/addon-essentials": "^8.4.2",
|
|
"@storybook/addon-interactions": "^8.4.2",
|
|
"@storybook/addon-links": "^8.4.2",
|
|
"@storybook/addon-onboarding": "^8.4.2",
|
|
"@storybook/blocks": "^8.4.2",
|
|
"@storybook/nextjs": "^8.4.2",
|
|
"@storybook/react": "^8.3.5",
|
|
"@storybook/test": "^8.3.5",
|
|
"@storybook/test-runner": "^0.19.1",
|
|
"@types/node": "^22.9.0",
|
|
"@types/react": "^18",
|
|
"@types/react-dom": "^18",
|
|
"@types/react-modal": "^3.16.3",
|
|
"concurrently": "^9.1.0",
|
|
"eslint": "^8",
|
|
"eslint-config-next": "15.0.3",
|
|
"eslint-plugin-storybook": "^0.11.0",
|
|
"postcss": "^8",
|
|
"prettier": "^3.3.3",
|
|
"prettier-plugin-tailwindcss": "^0.6.8",
|
|
"storybook": "^8.4.2",
|
|
"tailwindcss": "^3.4.14",
|
|
"typescript": "^5"
|
|
},
|
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
}
|