fix(cli): use top-level import for Orchestrator types

Inline import() in implements clause is not valid TypeScript.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-23 13:39:16 -04:00
parent 78d5274a53
commit 9e0410ca41
+3 -2
View File
@@ -12,6 +12,7 @@ import path from 'node:path';
import { setTimeout as sleep } from 'node:timers/promises'; import { setTimeout as sleep } from 'node:timers/promises';
import { fileURLToPath } from 'node:url'; import { fileURLToPath } from 'node:url';
import { getMode } from './mode.js'; import { getMode } from './mode.js';
import type { Orchestrator, WorkerHandle, WorkerOptions as OrchestratorWorkerOptions } from './orchestrator.js';
const __dirname = path.dirname(fileURLToPath(import.meta.url)); const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -295,14 +296,14 @@ export function listRunningWorkers(): string {
* Adapter class wrapping plain functions into the Orchestrator interface * Adapter class wrapping plain functions into the Orchestrator interface
* used by the Hightower backend abstraction layer. * used by the Hightower backend abstraction layer.
*/ */
export class DockerOrchestrator implements import('./orchestrator.js').Orchestrator { export class DockerOrchestrator implements Orchestrator {
ensureInfra(): Promise<void> { ensureInfra(): Promise<void> {
return ensureInfra(); return ensureInfra();
} }
ensureImage(version: string): void { ensureImage(version: string): void {
return ensureImage(version); return ensureImage(version);
} }
spawnWorker(opts: import('./orchestrator.js').WorkerOptions): import('./orchestrator.js').WorkerHandle { spawnWorker(opts: OrchestratorWorkerOptions): WorkerHandle {
const proc = spawnWorker(opts as WorkerOptions); const proc = spawnWorker(opts as WorkerOptions);
return { return {
onError(cb: (err: Error) => void) { onError(cb: (err: Error) => void) {