Unified · Split
| @@ -40,7 +40,6 @@ · 39 unmodified lines | |||
| 40 | "@executor/executor-mcp": "workspace:*", | 40 | "@executor/executor-mcp": "workspace:*", |
| 41 | "@executor/plugin-google-discovery-sdk": "workspace:*", | 41 | "@executor/plugin-google-discovery-sdk": "workspace:*", |
| 42 | "@executor/plugin-graphql-sdk": "workspace:*", | 42 | "@executor/plugin-graphql-sdk": "workspace:*", |
| 43 | "@executor/plugin-internal-sdk": "workspace:*", | ||
| 44 | "@executor/plugin-mcp-sdk": "workspace:*", | 43 | "@executor/plugin-mcp-sdk": "workspace:*", |
| 45 | "@executor/plugin-openapi-sdk": "workspace:*", | 44 | "@executor/plugin-openapi-sdk": "workspace:*", |
| 46 | "@executor/platform-api": "workspace:*", | 45 | "@executor/platform-api": "workspace:*", |
| @@ -20,9 +20,6 @@ import { · 19 unmodified lines | |||
| 20 | import { | 20 | import { |
| 21 | graphqlSdkPlugin, | 21 | graphqlSdkPlugin, |
| 22 | } from "@executor/plugin-graphql-sdk"; | 22 | } from "@executor/plugin-graphql-sdk"; |
| 23 | import { | ||
| 24 | internalSdkPlugin, | ||
| 25 | } from "@executor/plugin-internal-sdk"; | ||
| 26 | import { | 23 | import { |
| 27 | mcpSdkPlugin, | 24 | mcpSdkPlugin, |
| 28 | } from "@executor/plugin-mcp-sdk"; | 25 | } from "@executor/plugin-mcp-sdk"; |
| @@ -305,7 +302,6 @@ const loadRunWorkflowText = (): Effect.Effect<string, Error, never> => · 276 unmodified lines | |||
| 305 | localDataDir: DEFAULT_LOCAL_DATA_DIR, | 302 | localDataDir: DEFAULT_LOCAL_DATA_DIR, |
| 306 | }), | 303 | }), |
| 307 | plugins: [ | 304 | plugins: [ |
| 308 | internalSdkPlugin(), | ||
| 309 | graphqlSdkPlugin({ | 305 | graphqlSdkPlugin({ |
| 310 | storage: createFileGraphqlSourceStorage({ | 306 | storage: createFileGraphqlSourceStorage({ |
| 311 | rootDir: `${DEFAULT_LOCAL_DATA_DIR}/plugins/graphql/sources`, | 307 | rootDir: `${DEFAULT_LOCAL_DATA_DIR}/plugins/graphql/sources`, |
| @@ -46,19 +46,10 @@ export function DefaultSourceIcon({ · 45 unmodified lines | |||
| 46 | }) { | 46 | }) { |
| 47 | const base = cn("shrink-0", className); | 47 | const base = cn("shrink-0", className); |
| 48 | 48 | ||
| 49 | switch (kind) { | 49 | return ( |
| 50 | case "internal": | 50 | <svg viewBox="0 0 16 16" fill="none" className={base}> |
| 51 | return ( | 51 | <rect x="2.5" y="2.5" width="11" height="11" rx="2" stroke="currentColor" strokeWidth="1.2" /> |
| 52 | <svg viewBox="0 0 16 16" fill="none" className={base}> | 52 | <path d="M5 6h6M5 8h4M5 10h3" stroke="currentColor" strokeWidth="1.1" strokeLinecap="round" /> |
| 53 | <path d="M8 2v12M4 6l4-4 4 4M4 10l4 4 4-4" stroke="currentColor" strokeWidth="1.2" strokeLinecap="round" strokeLinejoin="round" /> | 53 | </svg> |
| 54 | </svg> | 54 | ); |
| 55 | ); | ||
| 56 | default: | ||
| 57 | return ( | ||
| 58 | <svg viewBox="0 0 16 16" fill="none" className={base}> | ||
| 59 | <rect x="2.5" y="2.5" width="11" height="11" rx="2" stroke="currentColor" strokeWidth="1.2" /> | ||
| 60 | <path d="M5 6h6M5 8h4M5 10h3" stroke="currentColor" strokeWidth="1.1" strokeLinecap="round" /> | ||
| 61 | </svg> | ||
| 62 | ); | ||
| 63 | } | ||
| 64 | } | 55 | } |
| @@ -18,7 +18,7 @@ · 17 unmodified lines | |||
| 18 | }, | 18 | }, |
| 19 | "apps/executor": { | 19 | "apps/executor": { |
| 20 | "name": "executor", | 20 | "name": "executor", |
| 21 | "version": "1.2.5", | 21 | "version": "1.2.6", |
| 22 | "bin": { | 22 | "bin": { |
| 23 | "executor": "bin/executor", | 23 | "executor": "bin/executor", |
| 24 | }, | 24 | }, |
| @@ -33,7 +33,6 @@ · 8 unmodified lines | |||
| 33 | "@executor/platform-sdk-file": "workspace:*", | 33 | "@executor/platform-sdk-file": "workspace:*", |
| 34 | "@executor/plugin-google-discovery-sdk": "workspace:*", | 34 | "@executor/plugin-google-discovery-sdk": "workspace:*", |
| 35 | "@executor/plugin-graphql-sdk": "workspace:*", | 35 | "@executor/plugin-graphql-sdk": "workspace:*", |
| 36 | "@executor/plugin-internal-sdk": "workspace:*", | ||
| 37 | "@executor/plugin-mcp-sdk": "workspace:*", | 36 | "@executor/plugin-mcp-sdk": "workspace:*", |
| 38 | "@executor/plugin-openapi-sdk": "workspace:*", | 37 | "@executor/plugin-openapi-sdk": "workspace:*", |
| 39 | "@executor/server": "workspace:*", | 38 | "@executor/server": "workspace:*", |
| @@ -373,7 +372,6 @@ · 333 unmodified lines | |||
| 373 | "@executor/plugin-graphql-http": "workspace:*", | 372 | "@executor/plugin-graphql-http": "workspace:*", |
| 374 | "@executor/plugin-graphql-sdk": "workspace:*", | 373 | "@executor/plugin-graphql-sdk": "workspace:*", |
| 375 | "@executor/plugin-graphql-shared": "workspace:*", | 374 | "@executor/plugin-graphql-shared": "workspace:*", |
| 376 | "@executor/plugin-internal-sdk": "workspace:*", | ||
| 377 | "@executor/plugin-mcp-http": "workspace:*", | 375 | "@executor/plugin-mcp-http": "workspace:*", |
| 378 | "@executor/plugin-mcp-sdk": "workspace:*", | 376 | "@executor/plugin-mcp-sdk": "workspace:*", |
| 379 | "@executor/plugin-mcp-shared": "workspace:*", | 377 | "@executor/plugin-mcp-shared": "workspace:*", |
| @@ -527,19 +525,6 @@ · 147 unmodified lines | |||
| 527 | "bun-types": "catalog:", | 525 | "bun-types": "catalog:", |
| 528 | }, | 526 | }, |
| 529 | }, | 527 | }, |
| 530 | "plugins/internal/sdk": { | ||
| 531 | "name": "@executor/plugin-internal-sdk", | ||
| 532 | "version": "0.0.0", | ||
| 533 | "dependencies": { | ||
| 534 | "@executor/platform-sdk": "workspace:*", | ||
| 535 | "@executor/source-core": "workspace:*", | ||
| 536 | "effect": "catalog:", | ||
| 537 | }, | ||
| 538 | "devDependencies": { | ||
| 539 | "@types/node": "catalog:", | ||
| 540 | "bun-types": "catalog:", | ||
| 541 | }, | ||
| 542 | }, | ||
| 543 | "plugins/mcp/http": { | 528 | "plugins/mcp/http": { |
| 544 | "name": "@executor/plugin-mcp-http", | 529 | "name": "@executor/plugin-mcp-http", |
| 545 | "version": "0.0.0", | 530 | "version": "0.0.0", |
| @@ -905,8 +890,6 @@ · 359 unmodified lines | |||
| 905 | 890 | ||
| 906 | "@executor/plugin-graphql-shared": ["@executor/plugin-graphql-shared@workspace:plugins/graphql/shared"], | 891 | "@executor/plugin-graphql-shared": ["@executor/plugin-graphql-shared@workspace:plugins/graphql/shared"], |
| 907 | 892 | ||
| 908 | "@executor/plugin-internal-sdk": ["@executor/plugin-internal-sdk@workspace:plugins/internal/sdk"], | ||
| 909 | |||
| 910 | "@executor/plugin-mcp-http": ["@executor/plugin-mcp-http@workspace:plugins/mcp/http"], | 893 | "@executor/plugin-mcp-http": ["@executor/plugin-mcp-http@workspace:plugins/mcp/http"], |
| 911 | 894 | ||
| 912 | "@executor/plugin-mcp-react": ["@executor/plugin-mcp-react@workspace:plugins/mcp/react"], | 895 | "@executor/plugin-mcp-react": ["@executor/plugin-mcp-react@workspace:plugins/mcp/react"], |
| @@ -131,9 +131,5 @@ export const registerExecutorSdkPlugins = ( · 130 unmodified lines | |||
| 131 | sourceConnectors: [...sourceConnectors.values()], | 131 | sourceConnectors: [...sourceConnectors.values()], |
| 132 | getSourcePlugin, | 132 | getSourcePlugin, |
| 133 | getSourcePluginForSource, | 133 | getSourcePluginForSource, |
| 134 | sourcePluginCatalogKind: (kind: string): SourceCatalogKind => | ||
| 135 | getSourcePlugin(kind).catalogKind, | ||
| 136 | isInternalSourcePluginKind: (kind: string): boolean => | ||
| 137 | getSourcePlugin(kind).catalogKind === "internal", | ||
| 138 | }; | 134 | }; |
| 139 | }; | 135 | }; |
| @@ -10,9 +10,6 @@ import { · 9 unmodified lines | |||
| 10 | import { | 10 | import { |
| 11 | SourceArtifactStore, | 11 | SourceArtifactStore, |
| 12 | } from "../../scope/storage"; | 12 | } from "../../scope/storage"; |
| 13 | import { | ||
| 14 | getSourcePluginForSource, | ||
| 15 | } from "../../sources/source-plugins"; | ||
| 16 | import { | 13 | import { |
| 17 | RuntimeSourceStoreService, | 14 | RuntimeSourceStoreService, |
| 18 | } from "../../sources/source-store"; | 15 | } from "../../sources/source-store"; |
| @@ -22,8 +19,7 @@ import { · 3 unmodified lines | |||
| 22 | 19 | ||
| 23 | const shouldReconcileSource = (source: Source): boolean => | 20 | const shouldReconcileSource = (source: Source): boolean => |
| 24 | source.enabled | 21 | source.enabled |
| 25 | && source.status === "connected" | 22 | && source.status === "connected"; |
| 26 | && getSourcePluginForSource(source).catalogKind !== "internal"; | ||
| 27 | 23 | ||
| 28 | export const reconcileMissingSourceCatalogArtifacts = (input: { | 24 | export const reconcileMissingSourceCatalogArtifacts = (input: { |
| 29 | scopeId: ScopeId; | 25 | scopeId: ScopeId; |
| @@ -36,8 +36,7 @@ import { · 35 unmodified lines | |||
| 36 | 36 | ||
| 37 | const shouldIndexSource = (source: Source): boolean => | 37 | const shouldIndexSource = (source: Source): boolean => |
| 38 | source.enabled | 38 | source.enabled |
| 39 | && source.status === "connected" | 39 | && source.status === "connected"; |
| 40 | && getSourcePluginForSource(source).catalogKind !== "internal"; | ||
| 41 | 40 | ||
| 42 | type RuntimeSourceCatalogSyncDeps = { | 41 | type RuntimeSourceCatalogSyncDeps = { |
| 43 | runtimeLocalScope: RuntimeLocalScopeState; | 42 | runtimeLocalScope: RuntimeLocalScopeState; |
| @@ -119,8 +119,6 @@ export { · 118 unmodified lines | |||
| 119 | hasRegisteredExternalSourcePlugins, | 119 | hasRegisteredExternalSourcePlugins, |
| 120 | getSourcePlugin, | 120 | getSourcePlugin, |
| 121 | getSourcePluginForSource, | 121 | getSourcePluginForSource, |
| 122 | sourcePluginCatalogKind, | ||
| 123 | isInternalSourcePluginKind, | ||
| 124 | } from "./sources/source-plugins"; | 122 | } from "./sources/source-plugins"; |
| 125 | 123 | ||
| 126 | export type ExecutorRuntimeOptions = { | 124 | export type ExecutorRuntimeOptions = { |
| @@ -24,10 +24,6 @@ export const getSourcePlugin = (kind: string) => registry.getSourcePlugin(kind); · 23 unmodified lines | |||
| 24 | export const getSourcePluginForSource = ( | 24 | export const getSourcePluginForSource = ( |
| 25 | source: Parameters<typeof registry.getSourcePluginForSource>[0], | 25 | source: Parameters<typeof registry.getSourcePluginForSource>[0], |
| 26 | ) => registry.getSourcePluginForSource(source); | 26 | ) => registry.getSourcePluginForSource(source); |
| 27 | export const sourcePluginCatalogKind = (kind: string) => | ||
| 28 | registry.sourcePluginCatalogKind(kind); | ||
| 29 | export const isInternalSourcePluginKind = (kind: string) => | ||
| 30 | registry.isInternalSourcePluginKind(kind); | ||
| 31 | 27 | ||
| 32 | export const hasRegisteredExternalSourcePlugins = () => | 28 | export const hasRegisteredExternalSourcePlugins = () => |
| 33 | configuredSourcePlugins.length > 0; | 29 | configuredSourcePlugins.length > 0; |
| @@ -10,10 +10,7 @@ import { · 9 unmodified lines | |||
| 10 | SourceCatalogRevisionIdSchema, | 10 | SourceCatalogRevisionIdSchema, |
| 11 | } from "../ids"; | 11 | } from "../ids"; |
| 12 | 12 | ||
| 13 | export const SourceCatalogKindSchema = Schema.Literal( | 13 | export const SourceCatalogKindSchema = Schema.Literal("imported"); |
| 14 | "imported", | ||
| 15 | "internal", | ||
| 16 | ); | ||
| 17 | 14 | ||
| 18 | export const SourceCatalogPluginKeySchema = Schema.String; | 15 | export const SourceCatalogPluginKeySchema = Schema.String; |
| 19 | 16 | ||
| @@ -15,7 +15,6 @@ · 14 unmodified lines | |||
| 15 | "@effect/platform": "catalog:", | 15 | "@effect/platform": "catalog:", |
| 16 | "@effect/platform-node": "catalog:", | 16 | "@effect/platform-node": "catalog:", |
| 17 | "@executor/executor-mcp": "workspace:*", | 17 | "@executor/executor-mcp": "workspace:*", |
| 18 | "@executor/plugin-internal-sdk": "workspace:*", | ||
| 19 | "@executor/plugin-google-discovery-http": "workspace:*", | 18 | "@executor/plugin-google-discovery-http": "workspace:*", |
| 20 | "@executor/plugin-google-discovery-shared": "workspace:*", | 19 | "@executor/plugin-google-discovery-shared": "workspace:*", |
| 21 | "@executor/plugin-google-discovery-sdk": "workspace:*", | 20 | "@executor/plugin-google-discovery-sdk": "workspace:*", |
| @@ -8,7 +8,6 @@ import { dirname, extname, resolve } from "node:path"; · 7 unmodified lines | |||
| 8 | import { Readable } from "node:stream"; | 8 | import { Readable } from "node:stream"; |
| 9 | import { FileSystem, HttpApiBuilder, HttpServer } from "@effect/platform"; | 9 | import { FileSystem, HttpApiBuilder, HttpServer } from "@effect/platform"; |
| 10 | import { NodeFileSystem } from "@effect/platform-node"; | 10 | import { NodeFileSystem } from "@effect/platform-node"; |
| 11 | import { internalSdkPlugin } from "@executor/plugin-internal-sdk"; | ||
| 12 | import { googleDiscoveryHttpPlugin } from "@executor/plugin-google-discovery-http"; | 11 | import { googleDiscoveryHttpPlugin } from "@executor/plugin-google-discovery-http"; |
| 13 | import { googleDiscoverySdkPlugin } from "@executor/plugin-google-discovery-sdk"; | 12 | import { googleDiscoverySdkPlugin } from "@executor/plugin-google-discovery-sdk"; |
| 14 | import { graphqlHttpPlugin } from "@executor/plugin-graphql-http"; | 13 | import { graphqlHttpPlugin } from "@executor/plugin-graphql-http"; |
| @@ -155,7 +154,6 @@ const createExecutorRuntime = ( · 140 unmodified lines | |||
| 155 | localDataDir, | 154 | localDataDir, |
| 156 | }), | 155 | }), |
| 157 | plugins: [ | 156 | plugins: [ |
| 158 | internalSdkPlugin(), | ||
| 159 | graphqlSdkPlugin({ | 157 | graphqlSdkPlugin({ |
| 160 | storage: createFileGraphqlSourceStorage({ | 158 | storage: createFileGraphqlSourceStorage({ |
| 161 | rootDir: resolve(localDataDir, "plugins", "graphql", "sources"), | 159 | rootDir: resolve(localDataDir, "plugins", "graphql", "sources"), |
| @@ -7,10 +7,7 @@ export const SecretRefSchema = Schema.Struct({ · 6 unmodified lines | |||
| 7 | 7 | ||
| 8 | export const CredentialSlotSchema = Schema.Literal("runtime", "import"); | 8 | export const CredentialSlotSchema = Schema.Literal("runtime", "import"); |
| 9 | 9 | ||
| 10 | export const SourceCatalogKindSchema = Schema.Literal( | 10 | export const SourceCatalogKindSchema = Schema.Literal("imported"); |
| 11 | "imported", | ||
| 12 | "internal", | ||
| 13 | ); | ||
| 14 | 11 | ||
| 15 | export const SourceKindSchema = Schema.String; | 12 | export const SourceKindSchema = Schema.String; |
| 16 | 13 | ||
| @@ -1,43 +0,0 @@ | |||
| 1 | import * as Effect from "effect/Effect"; | ||
| 2 | |||
| 3 | import { | ||
| 4 | createCatalogImportMetadata, | ||
| 5 | createSourceCatalogSyncResult, | ||
| 6 | } from "@executor/source-core"; | ||
| 7 | import type { ExecutorSdkPlugin } from "@executor/platform-sdk/plugins"; | ||
| 8 | |||
| 9 | export const internalSdkPlugin = (): ExecutorSdkPlugin<"internal"> => ({ | ||
| 10 | key: "internal", | ||
| 11 | sources: [ | ||
| 12 | { | ||
| 13 | kind: "internal", | ||
| 14 | displayName: "Internal", | ||
| 15 | catalogKind: "internal", | ||
| 16 | catalogIdentity: ({ source }) => ({ | ||
| 17 | kind: "internal", | ||
| 18 | sourceId: source.id, | ||
| 19 | }), | ||
| 20 | getIrModel: ({ source }) => | ||
| 21 | Effect.succeed( | ||
| 22 | createSourceCatalogSyncResult({ | ||
| 23 | fragment: { | ||
| 24 | version: "ir.v1.fragment", | ||
| 25 | }, | ||
| 26 | importMetadata: { | ||
| 27 | ...createCatalogImportMetadata({ | ||
| 28 | source, | ||
| 29 | pluginKey: "internal", | ||
| 30 | }), | ||
| 31 | importerVersion: "ir.v1.internal", | ||
| 32 | sourceConfigHash: "internal", | ||
| 33 | }, | ||
| 34 | sourceHash: null, | ||
| 35 | }), | ||
| 36 | ), | ||
| 37 | invoke: () => | ||
| 38 | Effect.fail( | ||
| 39 | new Error("Internal sources do not support persisted plugin invocation"), | ||
| 40 | ), | ||
| 41 | }, | ||
| 42 | ], | ||
| 43 | }); | ||
| @@ -1,24 +0,0 @@ | |||
| 1 | { | ||
| 2 | "name": "@executor/plugin-internal-sdk", | ||
| 3 | "private": true, | ||
| 4 | "type": "module", | ||
| 5 | "exports": { | ||
| 6 | ".": "./index.ts" | ||
| 7 | }, | ||
| 8 | "files": [ | ||
| 9 | "*.ts" | ||
| 10 | ], | ||
| 11 | "scripts": { | ||
| 12 | "typecheck": "bunx tsc --noEmit -p tsconfig.json" | ||
| 13 | }, | ||
| 14 | "dependencies": { | ||
| 15 | "@executor/platform-sdk": "workspace:*", | ||
| 16 | "@executor/source-core": "workspace:*", | ||
| 17 | "effect": "catalog:" | ||
| 18 | }, | ||
| 19 | "devDependencies": { | ||
| 20 | "@types/node": "catalog:", | ||
| 21 | "bun-types": "catalog:" | ||
| 22 | }, | ||
| 23 | "version": "0.0.0" | ||
| 24 | } | ||
| @@ -1,13 +0,0 @@ | |||
| 1 | { | ||
| 2 | "compilerOptions": { | ||
| 3 | "target": "ES2022", | ||
| 4 | "module": "ESNext", | ||
| 5 | "moduleResolution": "Bundler", | ||
| 6 | "strict": true, | ||
| 7 | "skipLibCheck": true, | ||
| 8 | "noEmit": true, | ||
| 9 | "lib": ["ES2022", "DOM"], | ||
| 10 | "types": ["bun-types", "node"] | ||
| 11 | }, | ||
| 12 | "include": ["*.ts"] | ||
| 13 | } | ||