Showing the changes to apps/cloud/src/engine/execution-stack.ts (1 of 41 files). Show all
Unified · Split
| @@ -63,21 +63,18 @@ const cloudPluginFactory = executorConfig.plugins as (deps: { · 62 unmodified lines | ||
| 63 | 63 | readonly clientId: string; |
| 64 | 64 | readonly apiUrl?: string; |
| 65 | 65 | }; |
| 66 | − readonly activeToolkitSlug?: string; | |
| 67 | 66 | }) => readonly AnyPlugin[]; |
| 68 | 67 | |
| 69 | 68 | // Fresh plugin instances per request, carrying the Worker env's WorkOS Vault |
| 70 | 69 | // credentials. Matches the old `createScopedExecutor`'s `orgPlugins()`. |
| 71 | 70 | export const CloudPluginsProvider: Layer.Layer<PluginsProvider> = Layer.succeed(PluginsProvider)({ |
| 72 | − plugins: (context) => | |
| 71 | + plugins: () => | |
| 73 | 72 | cloudPluginFactory({ |
| 74 | 73 | workosCredentials: { |
| 75 | 74 | apiKey: env.WORKOS_API_KEY, |
| 76 | 75 | clientId: env.WORKOS_CLIENT_ID, |
| 77 | 76 | apiUrl: env.WORKOS_API_URL, |
| 78 | 77 | }, |
| 79 | − activeToolkitSlug: | |
| 80 | − context?.mcpResource?.kind === "toolkit" ? context.mcpResource.slug : undefined, | |
| 81 | 78 | }), |
| 82 | 79 | }); |
| 83 | 80 | |