Skip to content
Sarj Workspace Sync

execution/run-workflow

@sarj-ai/workspace-sync/execution/run-workflow ยท Source

import type { WorkspaceAlertPort } from "./alert-port.ts";
import type { WorkspaceExecutionBindings as WorkerEnv } from "./bindings.ts";
import { type WorkspaceDirectoryChangeLedgerHandle } from "./change-ledger.ts";
import type { WorkspaceDirectoryWorkflowParams, WorkspaceDirectoryWorkflowResult } from "./contracts.ts";
import type { TrycompPeopleSyncRuntime } from "./provider-runtime-ports.ts";
import type { WorkspaceRuntimeConfiguration } from "./runtime-configuration.ts";
import type { WorkspaceDirectoryRuntime } from "./runtime-contract.ts";
import type { WorkspaceDirectoryRuntimeOptions } from "./runtime.ts";
import { type WorkspaceDirectoryHistoryStep, type WorkspaceDirectoryLedgerChangeHandle, type WorkspaceDirectoryLifecycleStep } from "./workflow-ledger.ts";
import { type IWorkspaceScheduleHealthRepository } from "./workspace-schedule-health-repository.ts";
type WorkflowStep = WorkspaceDirectoryLifecycleStep & WorkspaceDirectoryHistoryStep;
export declare function beginScheduledExecution(step: WorkspaceDirectoryLifecycleStep, repository: Pick<IWorkspaceScheduleHealthRepository, "beginExecution" | "read">, params: WorkspaceDirectoryWorkflowParams, summaryHandle: WorkspaceDirectoryChangeLedgerHandle, ledgerHandles: ReadonlyMap<WorkspaceDirectoryWorkflowParams["plan"]["branches"][number]["branchId"], readonly WorkspaceDirectoryLedgerChangeHandle[]>): Promise<void>;
export declare function runWorkspaceDirectoryWorkflow(input: {
params: WorkspaceDirectoryWorkflowParams;
config: WorkspaceRuntimeConfiguration;
bindings: WorkerEnv;
step: WorkflowStep;
alerts(): WorkspaceAlertPort;
trycompRuntime(): TrycompPeopleSyncRuntime;
nonRetryableError(message: string): Error;
createRuntime(options: WorkspaceDirectoryRuntimeOptions): WorkspaceDirectoryRuntime;
}): Promise<WorkspaceDirectoryWorkflowResult>;
export {};