refactor!: simplify runtime tools and remove replay engines (#572)
* fix(hopper): report unavailable procedure body coverage * refactor!: simplify runtime tools and remove replay engines Keep direct inspection, capture, and comparison tools. Bind handlers to named contracts and let agents compose experiments with commands and local fixture servers. BREAKING CHANGE: Remove controlled replay, Node characterization, finite replay-machine, managed runtime planning, and redundant string-tracing tools. Retire process replay, shims, reactive scenarios, custom checkpoints, and active browser replay and origin-scope inputs.
This commit is contained in:
@@ -3,9 +3,7 @@ import { z } from "incur";
|
||||
import { compareManagedMemberPaths } from "../application/ManagedMemberComparisonService.js";
|
||||
import { verifyManagedNativeBoundariesEvidence } from "../application/ManagedNativeVerificationService.js";
|
||||
import { importManagedReconstructionEvidence } from "../application/ManagedReconstructionService.js";
|
||||
import { planManagedRuntimeCorrelationEvidence } from "../application/ManagedRuntimeCorrelationService.js";
|
||||
import { runProviderAnalysis } from "../application/DirectAnalysis.js";
|
||||
import { parseConfig } from "../config.js";
|
||||
import { parseCliJsonInput } from "../cliJsonInput.js";
|
||||
import { projectAnalysisError } from "../domain/errors.js";
|
||||
import { CLI_COMMANDS } from "../cliCommandNames.js";
|
||||
@@ -17,7 +15,6 @@ import { registerProjectManagedApplicationGraph } from "./managedProjectGraphCom
|
||||
export const registerManagedCommands = (
|
||||
cli: CliInstance,
|
||||
logger: Logger,
|
||||
environment: Readonly<Record<string, string | undefined>> = process.env,
|
||||
): void => {
|
||||
registerInspectManagedArtifact(cli, logger);
|
||||
registerInspectManagedMembers(cli, logger);
|
||||
@@ -25,7 +22,6 @@ export const registerManagedCommands = (
|
||||
registerCompareManagedMembers(cli, logger);
|
||||
registerImportManagedReconstruction(cli, logger);
|
||||
registerVerifyManagedNativeBoundaries(cli, logger);
|
||||
registerPlanManagedRuntimeCorrelation(cli, logger, environment);
|
||||
registerProjectManagedApplicationGraph(cli, logger);
|
||||
};
|
||||
|
||||
@@ -162,34 +158,3 @@ const registerVerifyManagedNativeBoundaries = (
|
||||
}),
|
||||
});
|
||||
};
|
||||
|
||||
const registerPlanManagedRuntimeCorrelation = (
|
||||
cli: CliInstance,
|
||||
logger: Logger,
|
||||
environment: Readonly<Record<string, string | undefined>> = process.env,
|
||||
): void => {
|
||||
cli.command(CLI_COMMANDS.planManagedRuntimeCorrelation, {
|
||||
description:
|
||||
"Plan a managed runtime-correlation request without probing or executing a runtime",
|
||||
args: z.object({
|
||||
inputJson: z
|
||||
.string()
|
||||
.describe("Inline managed runtime-correlation JSON or JSON file path"),
|
||||
}),
|
||||
run: ({ args }) =>
|
||||
logCliCommand(logger, "plan-managed-runtime-correlation", async () => {
|
||||
const input = await parseCliJsonInput(
|
||||
args.inputJson,
|
||||
"plan-managed-runtime-correlation",
|
||||
);
|
||||
if (!input.ok) return input.error;
|
||||
const config = parseConfig(environment);
|
||||
if (!config.ok) return projectAnalysisError(config.error);
|
||||
const result = await planManagedRuntimeCorrelationEvidence(
|
||||
{ configuration: () => config.value.managedRuntimeConfiguration },
|
||||
input.value,
|
||||
);
|
||||
return result.ok ? result.value : projectAnalysisError(result.error);
|
||||
}),
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user