Conversation
Add /api/automation/* endpoints that allow external systems (CLI, agents, workflows) to interact with Dory without relying on the UI: - GET /api/automation/connections — list connections - GET /api/automation/schema — get database schema - POST /api/automation/query/execute — execute SQL - POST /api/automation/ai/ask — natural language data queries Auth supports both cookie sessions and Bearer tokens with x-organization-id header for org context. Also: - Skip dash/sentinel plugins when BETTER_AUTH_API_KEY is not set - Add unit tests (18) and E2E tests (10)
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Collaborator
Author
CI NoteThe 5 failing E2E tests are pre-existing flaky tests unrelated to this PR:
These tests also fail on the |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Closes #116
/api/automation/*endpoints for programmatic access to Dory without UI:GET /api/automation/connections— list database connectionsGET /api/automation/schema?connectionId=xxx— get database schemaPOST /api/automation/query/execute— execute SQL queriesPOST /api/automation/ai/ask— natural language data queries (AI generates & runs SQL)Authorization: Bearer <token>withx-organization-idheaderBETTER_AUTH_API_KEYis not set (fixes local/test environments)Usage
Test plan
npx tsx apps/web/scripts/tests/automation-api.test.ts)npx playwright test --config tests/e2e/playwright-automation.config.ts)