mirror of
https://github.com/morluto/rea.git
synced 2026-11-13 18:22:42 +00:00
Require resource-owning provider ports to expose cleanup and migrate test adapters to delegate or explicitly close their own resources.
21 lines
618 B
TypeScript
21 lines
618 B
TypeScript
import type {
|
|
ExecutionOptions,
|
|
ProviderIdentity,
|
|
} from "../AnalysisProvider.js";
|
|
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
|
|
import type {
|
|
InspectPythonPycInput,
|
|
PythonPyc,
|
|
} from "../../domain/python/pythonPyc.js";
|
|
import type { Result } from "../../domain/result.js";
|
|
|
|
/** Stable read and CPython pyc decoding, independent of a disassembler session. */
|
|
export interface PythonPycPort {
|
|
readonly identity: ProviderIdentity;
|
|
close(): Promise<void>;
|
|
inspect(
|
|
input: InspectPythonPycInput,
|
|
options?: ExecutionOptions,
|
|
): Promise<Result<PythonPyc, AnalysisError>>;
|
|
}
|