2026-10-07 16:03:37 +08:00
|
|
|
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
|
|
|
|
|
import type { JavaScriptRecoveryInput } from "../../domain/javascriptRecovery.js";
|
|
|
|
|
import type { Result } from "../../domain/result.js";
|
2026-10-07 12:46:13 +08:00
|
|
|
import type {
|
|
|
|
|
AnalysisExecution,
|
|
|
|
|
ExecutionOptions,
|
2026-10-07 16:03:37 +08:00
|
|
|
} from "../AnalysisProvider.js";
|
2026-10-07 12:46:13 +08:00
|
|
|
|
|
|
|
|
/** Typed boundary for upstream source recovery without exposing its protocol. */
|
|
|
|
|
export interface JavaScriptRecoveryPort {
|
|
|
|
|
recover(
|
|
|
|
|
input: JavaScriptRecoveryInput,
|
|
|
|
|
options?: ExecutionOptions,
|
|
|
|
|
): Promise<Result<AnalysisExecution, AnalysisError>>;
|
|
|
|
|
}
|