mirror of
https://github.com/morluto/rea
synced 2026-10-25 22:08:11 -04:00
d9660eb032
Join canonical owned command cleanup before releasing package verifier workspaces. Replace raw package command wrappers, the updater supervisor, WASM cleanup composite, and boolean-only retention with explicit capability ownership. Preserve selected environments, npm arguments, no-deadline calls, clean exit status, and distinct aggregate/per-stream output budgets. Exercise actual timeout descendants, cancellation, retained cleanup retry, and workspace admission.
20 lines
763 B
JavaScript
20 lines
763 B
JavaScript
import { json } from "./lib/verify-package-core.mjs";
|
|
|
|
/** Verify that an unknown --provider is rejected by the packaged CLI. */
|
|
export async function verifyUnknownProvider({ commands, cli, environment }) {
|
|
const unknownProviderExecution = await commands.runWithStatus(
|
|
cli,
|
|
["analyze", process.execPath, "--provider", "missing-provider", "--json"],
|
|
environment,
|
|
);
|
|
const unknownProvider = json(unknownProviderExecution.stdout);
|
|
if (
|
|
unknownProviderExecution.status !== 1 ||
|
|
unknownProvider.details?.selection_reason !== "unknown_provider" ||
|
|
unknownProvider.details?.requested_provider_id !== "missing-provider"
|
|
)
|
|
throw new Error(
|
|
`packaged CLI provider selection failed: ${JSON.stringify(unknownProvider)}`,
|
|
);
|
|
}
|