History

Enhance tool source support by adding GraphQL type integration

- Updated ToolSourceRecord and related interfaces to include "graphql" as a valid type. - Modified database mapping and service logic to accommodate GraphQL tool sources. - Enhanced API and UI components to support GraphQL endpoint configuration and validation. - Implemented GraphQL-specific logic for tool approval decisions and introspection handling.

Rhys Sullivan committed 9 months ago

Commit 82011a31 parent 0a932c89 files · +559 −58Browse files

Showing the changes to executor/apps/server/src/database.ts (1 of 9 files). Show all

Unified · Split

executor/apps/server/src/database.ts+2−2
@@ -106,7 +106,7 @@ function mapToolSourceRow(row: Record<string, unknown>): ToolSourceRecord { · 105 unmodified lines
106106 id: String(row.id),
107107 workspaceId: String(row.workspace_id),
108108 name: String(row.name),
109− type: String(row.type) as "mcp" | "openapi",
109+ type: String(row.type) as ToolSourceRecord["type"],
110110 config: parseMetadata(row.config_json),
111111 enabled: Number(row.enabled) === 1,
112112 createdAt: Number(row.created_at),
@@ -700,7 +700,7 @@ export class ExecutorDatabase { · 587 unmodified lines
700700 id?: string;
701701 workspaceId: string;
702702 name: string;
703− type: "mcp" | "openapi";
703+ type: ToolSourceRecord["type"];
704704 config: Record<string, unknown>;
705705 enabled?: boolean;
706706 }): ToolSourceRecord {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t