History

Move Google and Microsoft onto the OpenAPI plugin (#1366)

* Add openapi provider catalog design notes * Add OpenAPI spec format adapter support * Add Google and Microsoft spec format adapters * Preserve streaming spec format refresh * Move provider add surfaces into catalog presets * Fix provider catalog health checks * Fix Google Directory health check args * Format design notes * Add openapi provider service split migration * Fix service split blob migration * Read all provider operation rows for the migration plan * Assign provider operations by fresh-add spec ownership * Fix Microsoft service split ownership * Map singular mail folder and users profile segments * Seed add form identity from the catalog preset name * Use OIDC id token for OAuth identity labels * Handle OAuth health without probes * Canonicalize Microsoft scopes and decode JWT claims as UTF-8 * Update lockfile for provider package dependency changes * Package provider service split migration * Retarget orphan guardrail policies as dormant rows in the cloud runner * Retarget orphan approve policies too * Fold provider catalogs into openapi

Rhys Sullivan committed 4 months ago

Commit 55a24631 parent 93b000a148 files · +8259 −6034Browse files

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

Unified · Split

examples/all-plugins/src/main.ts+13−4
@@ -33,12 +33,19 @@ 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 {
37+ googleCatalog,
38+ googleDiscoveryAdapter,
39+} from "@executor-js/plugin-openapi/providers/google";
3740 import { graphqlPlugin } from "@executor-js/plugin-graphql";
3841 import { keychainPlugin } from "@executor-js/plugin-keychain";
3942 import { mcpPlugin } from "@executor-js/plugin-mcp";
4043 import { onepasswordPlugin } from "@executor-js/plugin-onepassword";
4144 import { openApiPlugin, variable } from "@executor-js/plugin-openapi";
45+import {
46+ microsoftCatalog,
47+ microsoftGraphAdapter,
48+} from "@executor-js/plugin-openapi/providers/microsoft";
4249 import { workosVaultPlugin } from "@executor-js/plugin-workos-vault";
4350
4451 // ---------------------------------------------------------------------------
@@ -78,10 +85,12 @@ const plugins = [ · 33 unmodified lines
7885 // Integration plugins — these declare their own schemas (tables), register
7986 // integrations via their extension methods (`addSpec` / `addServer` /
8087 // `addIntegration`), and produce tools per connection.
81− googlePlugin(),
8288 graphqlPlugin(),
8389 mcpPlugin({ dangerouslyAllowStdioMCP: false }),
84− openApiPlugin(),
90+ openApiPlugin({
91+ presets: [...googleCatalog, ...microsoftCatalog],
92+ specFormats: [googleDiscoveryAdapter, microsoftGraphAdapter],
93+ }),
8594
8695 // workos-vault is a cloud-hosted credential provider. It would contribute a
8796 // "workos-vault" provider if credentials were available. We skip it here
@@ -418,7 +427,7 @@ const program = Effect.gen(function* () { · 330 unmodified lines
418427 console.log(" executor.fileSecrets.filePath: ", executor.fileSecrets.filePath);
419428
420429 // executor.mcp.addServer({ transport: "remote", name: "...", endpoint: "...", slug: "..." });
421− // executor.google.addBundle({ urls: ["..."], slug: "google" });
430+ // Google catalog rows are added through executor.openapi.addSpec with specFormat "google-discovery".
422431 // executor.onepassword.configure({ auth: { kind: "desktop-app", accountName: "..." }, vaultId: "..." });
423432
424433 // -------------------------------------------------------------------------