perf(cli): decouple guided-workflows and comparison commands from applicationToolContracts (#13448)

* perf(cli): decouple guided-workflows and comparison commands from applicationToolContracts

* perf(cli): register comparison commands lazily and assert applicationToolContracts startup isolation
This commit is contained in:
morluto authored and GitHub committed 2026-11-22 15:53:39 +00:00
1 parent 07df0f1c04
commit edbb844e6b
11 files changed
+150 -108

No files matched your search

+2 -3
View File
@@ -1,7 +1,6 @@
import type { Logger } from "pino";
import type { CliInstance } from "./types.js";
import { APPLICATION_TOOL_CONTRACTS } from "../contracts/applicationToolContracts.js";
import { contractNamed } from "./contractCliDescription.js";
import { COMPARE_SOURCE_TO_BUNDLE_TOOL_CONTRACT } from "../contracts/sourceToBundleToolContract.js";
import { registerContractDocumentCommand } from "./contractCommand.js";
import {
evidenceBundleOption,
@@ -25,7 +24,7 @@ export const registerSourceToBundleCommand = (
registerContractDocumentCommand(
cli,
logger,
contractNamed(APPLICATION_TOOL_CONTRACTS, "compare_source_to_bundle"),
COMPARE_SOURCE_TO_BUNDLE_TOOL_CONTRACT,
{
description:
"Compare historical source (inline graph or reference {kind:file,path}) with authenticated application Evidence. Save the complete JSON to query with inspect-analysis-view.",