Showing the changes to plugins (4 of 36 files). Show all
Unified · Split
| @@ -7,7 +7,7 @@ import { · 6 unmodified lines | ||
| 7 | 7 | createSourceCatalogSyncResult, |
| 8 | 8 | } from "@executor/source-core"; |
| 9 | 9 | import type { |
| 10 | − LocalExecutorConfig, | |
| 10 | + ExecutorScopeConfig, | |
| 11 | 11 | Source, |
| 12 | 12 | } from "@executor/platform-sdk/schema"; |
| 13 | 13 | import { |
| @@ -17,8 +17,8 @@ import { · 3 unmodified lines | ||
| 17 | 17 | defineExecutorSourcePlugin, |
| 18 | 18 | } from "@executor/platform-sdk/plugins"; |
| 19 | 19 | import { |
| 20 | − createPluginLocalConfigEntrySchema, | |
| 21 | − pluginLocalConfigSourceFromConfig, | |
| 20 | + createPluginScopeConfigEntrySchema, | |
| 21 | + pluginScopeConfigSourceFromConfig, | |
| 22 | 22 | SecretMaterialDeleterService, |
| 23 | 23 | SecretMaterialResolverService, |
| 24 | 24 | SecretMaterialStorerService, |
| @@ -97,7 +97,7 @@ const decodeBatchSourceInput = Schema.decodeUnknownSync( · 72 unmodified lines | ||
| 97 | 97 | const decodeSession = Schema.decodeUnknownSync(GoogleDiscoveryOAuthSessionSchema); |
| 98 | 98 | const decodeProviderData = Schema.decodeUnknownSync(GoogleDiscoveryToolProviderDataSchema); |
| 99 | 99 | const decodeGoogleDiscoveryCurrentLocalConfigOption = Schema.decodeUnknownOption( |
| 100 | − createPluginLocalConfigEntrySchema({ | |
| 100 | + createPluginScopeConfigEntrySchema({ | |
| 101 | 101 | kind: GOOGLE_DISCOVERY_SOURCE_KIND, |
| 102 | 102 | config: GoogleDiscoveryStoredSourceDataSchema, |
| 103 | 103 | }), |
| @@ -563,7 +563,7 @@ const googleDiscoveryConnectInputFromAddInput = ( · 459 unmodified lines | ||
| 563 | 563 | |
| 564 | 564 | const googleDiscoveryStoredSourceDataFromLocalConfig = (input: { |
| 565 | 565 | config: unknown; |
| 566 | − loadedConfig: LocalExecutorConfig | null; | |
| 566 | + loadedConfig: ExecutorScopeConfig | null; | |
| 567 | 567 | }): GoogleDiscoveryStoredSourceData => { |
| 568 | 568 | const current = decodeGoogleDiscoveryCurrentLocalConfigOption(input.config); |
| 569 | 569 | if (Option.isSome(current)) { |
| @@ -629,9 +629,9 @@ export const googleDiscoverySdkPlugin = (options: { · 59 unmodified lines | ||
| 629 | 629 | } |
| 630 | 630 | }), |
| 631 | 631 | }, |
| 632 | − localConfig: { | |
| 632 | + scopeConfig: { | |
| 633 | 633 | toConfigSource: ({ source, stored }) => |
| 634 | − pluginLocalConfigSourceFromConfig({ | |
| 634 | + pluginScopeConfigSourceFromConfig({ | |
| 635 | 635 | source, |
| 636 | 636 | config: stored, |
| 637 | 637 | }), |
| @@ -12,7 +12,7 @@ import { · 11 unmodified lines | ||
| 12 | 12 | createSourceCatalogSyncResult, |
| 13 | 13 | } from "@executor/source-core"; |
| 14 | 14 | import type { |
| 15 | − LocalExecutorConfig, | |
| 15 | + ExecutorScopeConfig, | |
| 16 | 16 | Source, |
| 17 | 17 | } from "@executor/platform-sdk/schema"; |
| 18 | 18 | import { |
| @@ -23,8 +23,8 @@ import { · 4 unmodified lines | ||
| 23 | 23 | } from "@executor/platform-sdk/plugins"; |
| 24 | 24 | import { |
| 25 | 25 | SecretMaterialResolverService, |
| 26 | − createPluginLocalConfigEntrySchema, | |
| 27 | − pluginLocalConfigSourceFromConfig, | |
| 26 | + createPluginScopeConfigEntrySchema, | |
| 27 | + pluginScopeConfigSourceFromConfig, | |
| 28 | 28 | provideExecutorRuntime, |
| 29 | 29 | runtimeEffectError, |
| 30 | 30 | } from "@executor/platform-sdk/runtime"; |
| @@ -151,7 +151,7 @@ const asStringRecord = (value: unknown): Record<string, string> => · 120 unmodified lines | ||
| 151 | 151 | ); |
| 152 | 152 | |
| 153 | 153 | const decodeGraphqlCurrentLocalConfigOption = Schema.decodeUnknownOption( |
| 154 | − createPluginLocalConfigEntrySchema({ | |
| 154 | + createPluginScopeConfigEntrySchema({ | |
| 155 | 155 | kind: "graphql", |
| 156 | 156 | config: GraphqlStoredSourceDataSchema, |
| 157 | 157 | }), |
| @@ -336,7 +336,7 @@ const graphqlConnectInputFromAddInput = ( · 178 unmodified lines | ||
| 336 | 336 | |
| 337 | 337 | const graphqlStoredSourceDataFromLocalConfig = (input: { |
| 338 | 338 | config: unknown; |
| 339 | − loadedConfig: LocalExecutorConfig | null; | |
| 339 | + loadedConfig: ExecutorScopeConfig | null; | |
| 340 | 340 | }): GraphqlStoredSourceData => { |
| 341 | 341 | const current = decodeGraphqlCurrentLocalConfigOption(input.config); |
| 342 | 342 | if (Option.isSome(current)) { |
| @@ -397,9 +397,9 @@ export const graphqlSdkPlugin = (options: { · 54 unmodified lines | ||
| 397 | 397 | toConfig: ({ source, stored }) => |
| 398 | 398 | sourceConfigFromStored(source, normalizeStoredSourceData(stored)), |
| 399 | 399 | }, |
| 400 | − localConfig: { | |
| 400 | + scopeConfig: { | |
| 401 | 401 | toConfigSource: ({ source, stored }) => |
| 402 | − pluginLocalConfigSourceFromConfig({ | |
| 402 | + pluginScopeConfigSourceFromConfig({ | |
| 403 | 403 | source, |
| 404 | 404 | config: normalizeStoredSourceData(stored), |
| 405 | 405 | }), |
| @@ -31,8 +31,8 @@ import { · 30 unmodified lines | ||
| 31 | 31 | defineExecutorSourcePlugin, |
| 32 | 32 | } from "@executor/platform-sdk/plugins"; |
| 33 | 33 | import { |
| 34 | − createPluginLocalConfigEntrySchema, | |
| 35 | − pluginLocalConfigSourceFromConfig, | |
| 34 | + createPluginScopeConfigEntrySchema, | |
| 35 | + pluginScopeConfigSourceFromConfig, | |
| 36 | 36 | SecretMaterialDeleterService, |
| 37 | 37 | SecretMaterialResolverService, |
| 38 | 38 | SecretMaterialStorerService, |
| @@ -250,7 +250,7 @@ const normalizeStringArray = ( · 211 unmodified lines | ||
| 250 | 250 | }; |
| 251 | 251 | |
| 252 | 252 | const decodeMcpCurrentLocalConfigOption = Schema.decodeUnknownOption( |
| 253 | − createPluginLocalConfigEntrySchema({ | |
| 253 | + createPluginScopeConfigEntrySchema({ | |
| 254 | 254 | kind: "mcp", |
| 255 | 255 | config: McpStoredSourceDataSchema, |
| 256 | 256 | }), |
| @@ -720,9 +720,9 @@ export const mcpSdkPlugin = ( · 463 unmodified lines | ||
| 720 | 720 | } |
| 721 | 721 | }), |
| 722 | 722 | }, |
| 723 | − localConfig: { | |
| 723 | + scopeConfig: { | |
| 724 | 724 | toConfigSource: ({ source, stored }) => |
| 725 | − pluginLocalConfigSourceFromConfig({ | |
| 725 | + pluginScopeConfigSourceFromConfig({ | |
| 726 | 726 | source, |
| 727 | 727 | config: stored, |
| 728 | 728 | }), |
| @@ -8,7 +8,7 @@ import { · 7 unmodified lines | ||
| 8 | 8 | createSourceCatalogSyncResult, |
| 9 | 9 | } from "@executor/source-core"; |
| 10 | 10 | import type { |
| 11 | − LocalExecutorConfig, | |
| 11 | + ExecutorScopeConfig, | |
| 12 | 12 | Source, |
| 13 | 13 | } from "@executor/platform-sdk/schema"; |
| 14 | 14 | import { |
| @@ -18,9 +18,9 @@ import { · 3 unmodified lines | ||
| 18 | 18 | defineExecutorSourcePlugin, |
| 19 | 19 | } from "@executor/platform-sdk/plugins"; |
| 20 | 20 | import { |
| 21 | − createPluginLocalConfigEntrySchema, | |
| 21 | + createPluginScopeConfigEntrySchema, | |
| 22 | 22 | provideExecutorRuntime, |
| 23 | − pluginLocalConfigSourceFromConfig, | |
| 23 | + pluginScopeConfigSourceFromConfig, | |
| 24 | 24 | runtimeEffectError, |
| 25 | 25 | SecretMaterialResolverService, |
| 26 | 26 | } from "@executor/platform-sdk/runtime"; |
| @@ -157,7 +157,7 @@ const OpenApiLocalSourceConfigSchema = Schema.Struct({ · 130 unmodified lines | ||
| 157 | 157 | }); |
| 158 | 158 | |
| 159 | 159 | const decodeOpenApiCurrentLocalConfigOption = Schema.decodeUnknownOption( |
| 160 | − createPluginLocalConfigEntrySchema({ | |
| 160 | + createPluginScopeConfigEntrySchema({ | |
| 161 | 161 | kind: "openapi", |
| 162 | 162 | config: OpenApiLocalSourceConfigSchema, |
| 163 | 163 | }), |
| @@ -193,7 +193,7 @@ const configFromStoredSourceData = ( · 29 unmodified lines | ||
| 193 | 193 | |
| 194 | 194 | const openApiStoredSourceDataFromLocalConfig = (input: { |
| 195 | 195 | config: unknown; |
| 196 | − loadedConfig: LocalExecutorConfig | null; | |
| 196 | + loadedConfig: ExecutorScopeConfig | null; | |
| 197 | 197 | }): OpenApiStoredSourceData => { |
| 198 | 198 | const current = decodeOpenApiCurrentLocalConfigOption(input.config); |
| 199 | 199 | if (Option.isSome(current)) { |
| @@ -539,9 +539,9 @@ export const openApiSdkPlugin = ( · 339 unmodified lines | ||
| 539 | 539 | toConfig: ({ source, stored }) => |
| 540 | 540 | configFromStoredSourceData(source, normalizeStoredSourceData(stored)), |
| 541 | 541 | }, |
| 542 | − localConfig: { | |
| 542 | + scopeConfig: { | |
| 543 | 543 | toConfigSource: ({ source, stored }) => |
| 544 | − pluginLocalConfigSourceFromConfig({ | |
| 544 | + pluginScopeConfigSourceFromConfig({ | |
| 545 | 545 | source, |
| 546 | 546 | config: { |
| 547 | 547 | specUrl: stored.specUrl, |