mirror of
https://github.com/morluto/rea
synced 2026-10-26 06:16:17 -04:00
b955b825fc
Keep failed stable-read handles and WABT runtime roots under retryable resource scopes. Preserve cancellation causes and primary errors, close the same service instances bound to MCP tools, and consolidate CLI operation/cleanup projection. Validation: fast typecheck and lint, cached runtime build, docs checks, SDK schema validation, focused service and real-file cleanup tests, CLI cleanup regressions, and MCP lifecycle/shutdown workflows. Provider process fixtures simulate engine output; real WABT and Linux EVM execution are not established by this pass.
17 lines
594 B
TypeScript
17 lines
594 B
TypeScript
import type { AnalysisError } from "../domain/analysisErrorBase.js";
|
|
import type { Result } from "../domain/result.js";
|
|
import type {
|
|
SelectedWebScriptArtifacts,
|
|
SelectedWebScriptInput,
|
|
} from "../domain/webScriptArtifacts.js";
|
|
import type { ExecutionOptions } from "./AnalysisProvider.js";
|
|
|
|
/** Read the caller-selected capture export and verify the selected source identity. */
|
|
export interface WebScriptArtifactPort {
|
|
close?(): Promise<void>;
|
|
load(
|
|
input: SelectedWebScriptInput,
|
|
options?: ExecutionOptions,
|
|
): Promise<Result<SelectedWebScriptArtifacts, AnalysisError>>;
|
|
}
|