History

Move provider add surfaces into catalog presets

Rhys Sullivan committed 4 months ago

Commit 4bf0e871 parent d94baf575 files · +747 −4956Browse files

Showing the changes to examples/all-plugins/src (1 of 75 files). Show all

Unified · Split

examples/all-plugins/src/main.ts+7−4
@@ -33,12 +33,13 @@ import { · 32 unmodified lines
33} from "@executor-js/sdk";33} from "@executor-js/sdk";
34 34
35import { fileSecretsPlugin } from "@executor-js/plugin-file-secrets";35import { fileSecretsPlugin } from "@executor-js/plugin-file-secrets";
36import { googlePlugin } from "@executor-js/plugin-google";36import { googleCatalog, googleDiscoveryAdapter } from "@executor-js/plugin-google";
37import { graphqlPlugin } from "@executor-js/plugin-graphql";37import { graphqlPlugin } from "@executor-js/plugin-graphql";
38import { keychainPlugin } from "@executor-js/plugin-keychain";38import { keychainPlugin } from "@executor-js/plugin-keychain";
39import { mcpPlugin } from "@executor-js/plugin-mcp";39import { mcpPlugin } from "@executor-js/plugin-mcp";
40import { onepasswordPlugin } from "@executor-js/plugin-onepassword";40import { onepasswordPlugin } from "@executor-js/plugin-onepassword";
41import { openApiPlugin, variable } from "@executor-js/plugin-openapi";41import { openApiPlugin, variable } from "@executor-js/plugin-openapi";
42import { microsoftCatalog, microsoftGraphAdapter } from "@executor-js/plugin-microsoft";
42import { workosVaultPlugin } from "@executor-js/plugin-workos-vault";43import { workosVaultPlugin } from "@executor-js/plugin-workos-vault";
43 44
44// ---------------------------------------------------------------------------45// ---------------------------------------------------------------------------
@@ -78,10 +79,12 @@ const plugins = [ · 33 unmodified lines
78 // Integration plugins — these declare their own schemas (tables), register79 // Integration plugins — these declare their own schemas (tables), register
79 // integrations via their extension methods (`addSpec` / `addServer` /80 // integrations via their extension methods (`addSpec` / `addServer` /
80 // `addIntegration`), and produce tools per connection.81 // `addIntegration`), and produce tools per connection.
81 googlePlugin(),
82 graphqlPlugin(),82 graphqlPlugin(),
83 mcpPlugin({ dangerouslyAllowStdioMCP: false }),83 mcpPlugin({ dangerouslyAllowStdioMCP: false }),
84 openApiPlugin(),84 openApiPlugin({
85 presets: [...googleCatalog, ...microsoftCatalog],
86 specFormats: [googleDiscoveryAdapter, microsoftGraphAdapter],
87 }),
85 88
86 // workos-vault is a cloud-hosted credential provider. It would contribute a89 // workos-vault is a cloud-hosted credential provider. It would contribute a
87 // "workos-vault" provider if credentials were available. We skip it here90 // "workos-vault" provider if credentials were available. We skip it here
@@ -418,7 +421,7 @@ const program = Effect.gen(function* () { · 330 unmodified lines
418 console.log(" executor.fileSecrets.filePath: ", executor.fileSecrets.filePath);421 console.log(" executor.fileSecrets.filePath: ", executor.fileSecrets.filePath);
419 422
420 // executor.mcp.addServer({ transport: "remote", name: "...", endpoint: "...", slug: "..." });423 // executor.mcp.addServer({ transport: "remote", name: "...", endpoint: "...", slug: "..." });
421 // executor.google.addBundle({ urls: ["..."], slug: "google" });424 // Google catalog rows are added through executor.openapi.addSpec with specFormat "google-discovery".
422 // executor.onepassword.configure({ auth: { kind: "desktop-app", accountName: "..." }, vaultId: "..." });425 // executor.onepassword.configure({ auth: { kind: "desktop-app", accountName: "..." }, vaultId: "..." });
423 426
424 // -------------------------------------------------------------------------427 // -------------------------------------------------------------------------