/** @effect-diagnostics anyUnknownInErrorContext:off */ /** * INTERNAL — shared change-trigger and task-restart machinery for the floci * ECS dev providers ([FlociTaskProvider](./FlociTaskProvider.ts), * [FlociServiceProvider](./FlociServiceProvider.ts)). NOT exported from the * service `index.ts`. */ import * as ecs from "@distilled.cloud/aws/ecs"; import * as Effect from "effect/Effect"; import * as FileSystem from "effect/FileSystem"; import * as Path from "effect/Path"; import * as Stream from "effect/Stream"; import { type ImageSourceLike } from "../ECR/ImageSource.ts"; /** * A stream of "the image source changed" triggers for a props bag: * * - `main` — a `Bundle.watch` over the exact module graph the deploy * bundles (rebuild successes are the trigger; rebuild errors are logged * and swallowed); * - `context` — a debounced recursive `fs.watch` of the build context (and * the Dockerfile's directory when it lives outside the context); * - `image` (registry ref) / inline-dockerfile-only — nothing local to * watch: an empty stream. */ export declare const imageSourceTrigger: (options: { /** Logical id, for log prefixes. */ id: string; source: ImageSourceLike; isExternal: boolean | undefined; }) => Effect.Effect, import("effect/PlatformError").PlatformError, import("../../AlchemyContext.ts").AlchemyContext | import("../../Docker/Docker.ts").Docker | FileSystem.FileSystem | Path.Path>; /** * Restart every RUNNING task of `family` that is not yet on * `nextTaskDefinitionArn`: * * - **standalone** tasks (launched via `RunTask`, `startedBy` ≠ the service * scheduler) are stopped and re-run on the new revision in the same * cluster/launch type; * - **service-managed** tasks (`startedBy: "ecs-svc"` in floci) are only * stopped — the service scheduler relaunches them on the service's * current (freshly-updated) task definition. * * Bounded: one `listClusters` page, one `listTasks`/`describeTasks` round * per cluster. */ export declare const restartFamilyTasks: (options: { family: string; nextTaskDefinitionArn: string; /** Restart the service scheduler's tasks instead of standalone ones. */ serviceManaged: boolean; }) => Effect.Effect; //# sourceMappingURL=EcsDevWatch.d.ts.map