@promptbook/utils
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
22 lines (21 loc) • 1.21 kB
TypeScript
import { Command } from 'commander';
/**
* Retired aggregate option spellings and their canonical replacements, used only for migration diagnostics.
* @private shared CLI migration definitions for Coder execution
*/
export declare const LEGACY_CODER_CHECK_OPTIONS: readonly [readonly ["--test", "--check"], readonly ["--test-before", "--check-before"]];
/**
* Registers the shared project check command and rejects retired aggregate-test spellings.
* @private shared CLI registration for Coder execution
*/
export declare function addCoderCheckOptions(command: Command, isCheckBeforeSupported: boolean, description?: string): void;
/**
* Builds the same actionable migration diagnostic for registered and direct-script entrypoints.
* @private shared CLI diagnostic for Coder execution
*/
export declare function formatLegacyCoderCheckOptionError(legacyFlag: string, replacementFlag: string): string;
/**
* Normalizes shell command tokens without parsing a quoted command again or losing spaced argument boundaries.
* @private shared command normalization for Coder execution
*/
export declare function normalizeCheckCommandOption(value: string | ReadonlyArray<string> | undefined): string | undefined;