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
3333 } from "@executor-js/sdk";
3434
3535 import { fileSecretsPlugin } from "@executor-js/plugin-file-secrets";
36−import { googlePlugin } from "@executor-js/plugin-google";
36+import { googleCatalog, googleDiscoveryAdapter } from "@executor-js/plugin-google";
3737 import { graphqlPlugin } from "@executor-js/plugin-graphql";
3838 import { keychainPlugin } from "@executor-js/plugin-keychain";
3939 import { mcpPlugin } from "@executor-js/plugin-mcp";
4040 import { onepasswordPlugin } from "@executor-js/plugin-onepassword";
4141 import { openApiPlugin, variable } from "@executor-js/plugin-openapi";
42+import { microsoftCatalog, microsoftGraphAdapter } from "@executor-js/plugin-microsoft";
4243 import { workosVaultPlugin } from "@executor-js/plugin-workos-vault";
4344
4445 // ---------------------------------------------------------------------------
@@ -78,10 +79,12 @@ const plugins = [ · 33 unmodified lines
7879 // Integration plugins — these declare their own schemas (tables), register
7980 // integrations via their extension methods (`addSpec` / `addServer` /
8081 // `addIntegration`), and produce tools per connection.
81− googlePlugin(),
8282 graphqlPlugin(),
8383 mcpPlugin({ dangerouslyAllowStdioMCP: false }),
84− openApiPlugin(),
84+ openApiPlugin({
85+ presets: [...googleCatalog, ...microsoftCatalog],
86+ specFormats: [googleDiscoveryAdapter, microsoftGraphAdapter],
87+ }),
8588
8689 // workos-vault is a cloud-hosted credential provider. It would contribute a
8790 // "workos-vault" provider if credentials were available. We skip it here
@@ -418,7 +421,7 @@ const program = Effect.gen(function* () { · 330 unmodified lines
418421 console.log(" executor.fileSecrets.filePath: ", executor.fileSecrets.filePath);
419422
420423 // 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".
422425 // executor.onepassword.configure({ auth: { kind: "desktop-app", accountName: "..." }, vaultId: "..." });
423426
424427 // -------------------------------------------------------------------------