Unified · Split
| @@ -59,7 +59,9 @@ · 58 unmodified lines | ||
| 59 | 59 | // package-graph cycles from test-only dependencies. |
| 60 | 60 | "files": [ |
| 61 | 61 | "packages/platform/sdk/src/executor.test.ts", |
| 62 | − "packages/platform/sdk/src/runtime/executor-runtime.test.ts" | |
| 62 | + "packages/platform/sdk/src/runtime/executor-runtime.test.ts", | |
| 63 | + "packages/platform/server/src/index.test.ts", | |
| 64 | + "packages/clients/react/src/index.test.tsx" | |
| 63 | 65 | ], |
| 64 | 66 | "rules": { |
| 65 | 67 | "executor-monorepo/no-cross-workspace-relative-imports": "off" |
| @@ -535,42 +535,6 @@ const startServerInBackground = (port: number) => · 534 unmodified lines | ||
| 535 | 535 | }), |
| 536 | 536 | ); |
| 537 | 537 | |
| 538 | −type LocalServerPidRecord = { | |
| 539 | − pid?: number; | |
| 540 | − port?: number; | |
| 541 | − host?: string; | |
| 542 | − baseUrl?: string; | |
| 543 | − startedAt?: number; | |
| 544 | − logFile?: string; | |
| 545 | −}; | |
| 546 | − | |
| 547 | −const readPidRecord = (): Effect.Effect< | |
| 548 | − LocalServerPidRecord | null, | |
| 549 | − never, | |
| 550 | − FileSystem.FileSystem | |
| 551 | −> => | |
| 552 | − Effect.gen(function* () { | |
| 553 | − const fs = yield* FileSystem.FileSystem; | |
| 554 | − const contents = yield* fs.readFileString(DEFAULT_SERVER_PID_FILE, "utf8").pipe( | |
| 555 | − Effect.catchAll(() => Effect.succeed<string | null>(null)), | |
| 556 | − ); | |
| 557 | − if (contents === null) { | |
| 558 | − return null; | |
| 559 | − } | |
| 560 | − | |
| 561 | − return JSON.parse(contents) as LocalServerPidRecord; | |
| 562 | − }).pipe(Effect.catchAll(() => Effect.succeed(null))); | |
| 563 | − | |
| 564 | −const isPidRunning = (pid: number): boolean => { | |
| 565 | − try { | |
| 566 | − process.kill(pid, 0); | |
| 567 | − return true; | |
| 568 | − } catch (error) { | |
| 569 | − return error instanceof Error && "code" in error && error.code === "EPERM"; | |
| 570 | − } | |
| 571 | −}; | |
| 572 | − | |
| 573 | − | |
| 574 | 538 | const readServerLogTail = ( |
| 575 | 539 | logFile: string = DEFAULT_SERVER_LOG_FILE, |
| 576 | 540 | maxLines: number = 40, |
| @@ -12,7 +12,6 @@ import { · 11 unmodified lines | ||
| 12 | 12 | } from "@executor/platform-sdk"; |
| 13 | 13 | import { |
| 14 | 14 | createExecutorEffect, |
| 15 | − type CreateExecutorEffectOptions, | |
| 16 | 15 | type ExecutorEffect, |
| 17 | 16 | } from "@executor/platform-sdk/effect"; |
| 18 | 17 | import type { |
| @@ -247,7 +246,6 @@ export const createLocalExecutorRepositoriesEffect = ( · 228 unmodified lines | ||
| 247 | 246 | workspaceContext, |
| 248 | 247 | fileSystem, |
| 249 | 248 | ); |
| 250 | − const loadedConfig = yield* workspaceConfigStore.load(); | |
| 251 | 249 | const pluginRegistry = runtimeOptions.pluginRegistry ?? emptyExecutorPluginRegistry(); |
| 252 | 250 | yield* provisionBuiltinSecretStores({ |
| 253 | 251 | executorState: executorStateStorage.executorState, |
| @@ -13,7 +13,6 @@ import type { · 12 unmodified lines | ||
| 13 | 13 | } from "./executions/contracts"; |
| 14 | 14 | import type { |
| 15 | 15 | BrowseSecretStorePayload, |
| 16 | − BrowseSecretStoreResult, | |
| 17 | 16 | CreateSecretPayload, |
| 18 | 17 | CreateSecretStorePayload, |
| 19 | 18 | CreateSecretResult, |
| @@ -9,7 +9,6 @@ import { · 8 unmodified lines | ||
| 9 | 9 | type DeleteSecretStoreResult, |
| 10 | 10 | type ImportSecretFromStorePayload, |
| 11 | 11 | type SecretStoreCapabilities, |
| 12 | − type SecretStore as SecretStoreContract, | |
| 13 | 12 | type UpdateSecretStorePayload, |
| 14 | 13 | } from "./contracts"; |
| 15 | 14 | import { |
| @@ -3,7 +3,6 @@ import * as Option from "effect/Option"; · 2 unmodified lines | ||
| 3 | 3 | |
| 4 | 4 | import { |
| 5 | 5 | SecretMaterialIdSchema, |
| 6 | − type SecretStore, | |
| 7 | 6 | } from "../schema"; |
| 8 | 7 | import { |
| 9 | 8 | type CreateSecretPayload, |
| @@ -13,7 +13,6 @@ import { · 12 unmodified lines | ||
| 13 | 13 | type Source as ExecutorSource, |
| 14 | 14 | type SecretMaterial, |
| 15 | 15 | type SecretMaterialPurpose, |
| 16 | − type SecretRef, | |
| 17 | 16 | type SecretStore, |
| 18 | 17 | } from "./schema"; |
| 19 | 18 | import type { |
| @@ -53,9 +53,6 @@ const ReadableLocalSourceArtifactSchema = Schema.Struct({ · 52 unmodified lines | ||
| 53 | 53 | snapshot: Schema.Unknown, |
| 54 | 54 | }); |
| 55 | 55 | |
| 56 | −type ReadableLocalSourceArtifact = | |
| 57 | − typeof ReadableLocalSourceArtifactSchema.Type; | |
| 58 | − | |
| 59 | 56 | const decodeReadableLocalSourceArtifactOption = Schema.decodeUnknownOption( |
| 60 | 57 | Schema.parseJson( |
| 61 | 58 | ReadableLocalSourceArtifactSchema, |
| @@ -3,8 +3,6 @@ import { · 2 unmodified lines | ||
| 3 | 3 | HttpApiBuilder, |
| 4 | 4 | } from "@effect/platform"; |
| 5 | 5 | import { |
| 6 | − ControlPlaneBadRequestError, | |
| 7 | − ControlPlaneForbiddenError, | |
| 8 | 6 | ControlPlaneStorageError, |
| 9 | 7 | type ExecutorHttpPlugin, |
| 10 | 8 | } from "@executor/platform-api"; |
| @@ -6,6 +6,8 @@ const MANUAL_OPENAPI_RULE_ALLOWED_PATH_SEGMENTS = [ · 5 unmodified lines | ||
| 6 | 6 | `${path.sep}packages${path.sep}platform${path.sep}sdk${path.sep}src${path.sep}runtime${path.sep}sources${path.sep}source-adapter-fixture-matrix.test.ts`, |
| 7 | 7 | `${path.sep}packages${path.sep}platform${path.sep}sdk${path.sep}src${path.sep}runtime${path.sep}sources${path.sep}source-discovery.test.ts`, |
| 8 | 8 | `${path.sep}packages${path.sep}platform${path.sep}sdk${path.sep}src${path.sep}runtime${path.sep}sources${path.sep}executor-tools.test.ts`, |
| 9 | + `${path.sep}packages${path.sep}platform${path.sep}sdk${path.sep}src${path.sep}runtime${path.sep}sources${path.sep}openapi-type-contract.test.ts`, | |
| 10 | + `${path.sep}plugins${path.sep}openapi${path.sep}sdk${path.sep}document.test.ts`, | |
| 9 | 11 | ]; |
| 10 | 12 | |
| 11 | 13 | const OPENAPI_MARKER_KEYS = new Set(["openapi", "swagger"]); |