History

Remove google-discovery plugin from cloud app (#240)

Rhys Sullivan committed 7 months ago

Commit 80b4bd71 parent 75b696b9 files · +3 −40Browse files

Unified · Split

9 files
  1. apps/cloud/package.json +0 −1
  2. apps/cloud/src/api/layers.ts +0 −6
  3. apps/cloud/src/api/protected.ts +0 −2
  4. apps/cloud/src/routes/index.tsx +1 −7
  5. apps/cloud/src/routes/sources.$namespace.tsx +1 −7
  6. apps/cloud/src/routes/sources.add.$pluginKey.tsx +1 −7
  7. apps/cloud/src/services/executor.ts +0 −7
  8. apps/cloud/src/web/shell.tsx +0 −2
  9. bun.lock +0 −1
apps/cloud/package.json+0−1
@@ -28,7 +28,6 @@ · 27 unmodified lines
2828 "@executor/env": "workspace:*",
2929 "@executor/execution": "workspace:*",
3030 "@executor/host-mcp": "workspace:*",
31− "@executor/plugin-google-discovery": "workspace:*",
3231 "@executor/plugin-graphql": "workspace:*",
3332 "@executor/plugin-mcp": "workspace:*",
3433 "@executor/plugin-openapi": "workspace:*",
apps/cloud/src/api/layers.ts+0−6
@@ -5,10 +5,6 @@ import { CoreExecutorApi } from "@executor/api"; · 4 unmodified lines
55 import { CoreHandlers } from "@executor/api/server";
66 import { OpenApiGroup, OpenApiHandlers } from "@executor/plugin-openapi/api";
77 import { McpGroup, McpHandlers } from "@executor/plugin-mcp/api";
8−import {
9− GoogleDiscoveryGroup,
10− GoogleDiscoveryHandlers,
11−} from "@executor/plugin-google-discovery/api";
128 import { GraphqlGroup, GraphqlHandlers } from "@executor/plugin-graphql/api";
139
1410 import { OrgAuth } from "../auth/middleware";
@@ -27,7 +23,6 @@ import { OrgHandlers } from "../org/handlers"; · 12 unmodified lines
2723
2824 const ProtectedCloudApi = CoreExecutorApi.add(OpenApiGroup)
2925 .add(McpGroup)
30− .add(GoogleDiscoveryGroup)
3126 .add(GraphqlGroup)
3227 .middleware(OrgAuth);
3328
@@ -50,7 +45,6 @@ export const ProtectedCloudApiLive = HttpApiBuilder.api(ProtectedCloudApi).pipe( · 16 unmodified lines
5045 CoreHandlers,
5146 OpenApiHandlers,
5247 McpHandlers,
53− GoogleDiscoveryHandlers,
5448 GraphqlHandlers,
5549 OrgAuthLive,
5650 ),
apps/cloud/src/api/protected.ts+0−2
@@ -7,7 +7,6 @@ import { createExecutionEngine } from "@executor/execution"; · 6 unmodified lines
77 import { makeDynamicWorkerExecutor } from "@executor/runtime-dynamic-worker";
88 import { OpenApiExtensionService } from "@executor/plugin-openapi/api";
99 import { McpExtensionService } from "@executor/plugin-mcp/api";
10−import { GoogleDiscoveryExtensionService } from "@executor/plugin-google-discovery/api";
1110 import { GraphqlExtensionService } from "@executor/plugin-graphql/api";
1211
1312 import { authorizeOrganization } from "../auth/authorize-organization";
@@ -53,7 +52,6 @@ const createProtectedApp = (organizationId: string, organizationName: string) => · 39 unmodified lines
5352 Layer.succeed(ExecutionEngineService, engine),
5453 Layer.succeed(OpenApiExtensionService, executor.openapi),
5554 Layer.succeed(McpExtensionService, executor.mcp),
56− Layer.succeed(GoogleDiscoveryExtensionService, executor.googleDiscovery),
5755 Layer.succeed(GraphqlExtensionService, executor.graphql),
5856 );
5957
apps/cloud/src/routes/index.tsx+1−7
@@ -2,15 +2,9 @@ import { createFileRoute } from "@tanstack/react-router"; · 1 unmodified line
22 import { SourcesPage } from "@executor/react/pages/sources";
33 import { openApiSourcePlugin } from "@executor/plugin-openapi/react";
44 import { mcpSourcePlugin } from "@executor/plugin-mcp/react";
5−import { googleDiscoverySourcePlugin } from "@executor/plugin-google-discovery/react";
65 import { graphqlSourcePlugin } from "@executor/plugin-graphql/react";
76
8−const sourcePlugins = [
9− openApiSourcePlugin,
10− mcpSourcePlugin,
11− googleDiscoverySourcePlugin,
12− graphqlSourcePlugin,
13−];
7+const sourcePlugins = [openApiSourcePlugin, mcpSourcePlugin, graphqlSourcePlugin];
148
159 export const Route = createFileRoute("/")({
1610 component: () => <SourcesPage sourcePlugins={sourcePlugins} />,
apps/cloud/src/routes/sources.$namespace.tsx+1−7
@@ -2,15 +2,9 @@ import { createFileRoute } from "@tanstack/react-router"; · 1 unmodified line
22 import { SourceDetailPage } from "@executor/react/pages/source-detail";
33 import { openApiSourcePlugin } from "@executor/plugin-openapi/react";
44 import { mcpSourcePlugin } from "@executor/plugin-mcp/react";
5−import { googleDiscoverySourcePlugin } from "@executor/plugin-google-discovery/react";
65 import { graphqlSourcePlugin } from "@executor/plugin-graphql/react";
76
8−const sourcePlugins = [
9− openApiSourcePlugin,
10− mcpSourcePlugin,
11− googleDiscoverySourcePlugin,
12− graphqlSourcePlugin,
13−];
7+const sourcePlugins = [openApiSourcePlugin, mcpSourcePlugin, graphqlSourcePlugin];
148
159 export const Route = createFileRoute("/sources/$namespace")({
1610 component: () => {
apps/cloud/src/routes/sources.add.$pluginKey.tsx+1−7
@@ -3,15 +3,9 @@ import { createFileRoute } from "@tanstack/react-router"; · 2 unmodified lines
33 import { SourcesAddPage } from "@executor/react/pages/sources-add";
44 import { openApiSourcePlugin } from "@executor/plugin-openapi/react";
55 import { mcpSourcePlugin } from "@executor/plugin-mcp/react";
6−import { googleDiscoverySourcePlugin } from "@executor/plugin-google-discovery/react";
76 import { graphqlSourcePlugin } from "@executor/plugin-graphql/react";
87
9−const sourcePlugins = [
10− openApiSourcePlugin,
11− mcpSourcePlugin,
12− googleDiscoverySourcePlugin,
13− graphqlSourcePlugin,
14−];
8+const sourcePlugins = [openApiSourcePlugin, mcpSourcePlugin, graphqlSourcePlugin];
159
1610 const SearchParams = Schema.standardSchemaV1(
1711 Schema.Struct({
apps/cloud/src/services/executor.ts+0−7
@@ -8,10 +8,6 @@ import { ScopeId, createExecutor, makeInMemorySourceRegistry, scopeKv } from "@e · 7 unmodified lines
88 import { makePgKv, makePgPolicyEngine, makePgToolRegistry } from "@executor/storage-postgres";
99 import { openApiPlugin, makeKvOperationStore } from "@executor/plugin-openapi";
1010 import { mcpPlugin, makeKvBindingStore } from "@executor/plugin-mcp";
11−import {
12− googleDiscoveryPlugin,
13− makeKvBindingStore as makeKvGoogleDiscoveryBindingStore,
14−} from "@executor/plugin-google-discovery";
1511 import {
1612 graphqlPlugin,
1713 makeKvOperationStore as makeKvGraphqlOperationStore,
@@ -60,9 +56,6 @@ export const createOrgExecutor = ( · 42 unmodified lines
6056 mcpPlugin({
6157 bindingStore: makeKvBindingStore(kv, "mcp"),
6258 }),
63− googleDiscoveryPlugin({
64− bindingStore: makeKvGoogleDiscoveryBindingStore(kv, "google-discovery"),
65− }),
6659 graphqlPlugin({
6760 operationStore: makeKvGraphqlOperationStore(kv, "graphql"),
6861 }),
apps/cloud/src/web/shell.tsx+0−2
@@ -29,7 +29,6 @@ import { SourceFavicon } from "@executor/react/components/source-favicon"; · 28 unmodified lines
2929 import { CommandPalette } from "@executor/react/components/command-palette";
3030 import { openApiSourcePlugin } from "@executor/plugin-openapi/react";
3131 import { mcpSourcePlugin } from "@executor/plugin-mcp/react";
32−import { googleDiscoverySourcePlugin } from "@executor/plugin-google-discovery/react";
3332 import { graphqlSourcePlugin } from "@executor/plugin-graphql/react";
3433 import { AUTH_PATHS } from "../auth/api";
3534 import { organizationsAtom, switchOrganization, useAuth } from "./auth";
@@ -41,7 +40,6 @@ import { · 5 unmodified lines
4140 const sourcePlugins = [
4241 openApiSourcePlugin,
4342 mcpSourcePlugin,
44− googleDiscoverySourcePlugin,
4543 graphqlSourcePlugin,
4644 ];
4745
bun.lock+0−1
@@ -55,7 +55,6 @@ · 54 unmodified lines
5555 "@executor/env": "workspace:*",
5656 "@executor/execution": "workspace:*",
5757 "@executor/host-mcp": "workspace:*",
58− "@executor/plugin-google-discovery": "workspace:*",
5958 "@executor/plugin-graphql": "workspace:*",
6059 "@executor/plugin-mcp": "workspace:*",
6160 "@executor/plugin-openapi": "workspace:*",