UNPKG

pastoralist

Version:

A tool to watch over node module resolutions and overrides

54 lines (53 loc) 3.37 kB
import type { SecurityProvider } from "../../../config"; import type { PromptChoice } from "../../../utils/prompts/types"; import type { TokenInfo } from "./types"; export declare const CONFIG_LOCATION_CHOICES: PromptChoice[]; export declare const CONFIG_FORMAT_CHOICES: PromptChoice[]; export declare const WORKSPACE_TYPE_CHOICES: PromptChoice[]; export declare const SECURITY_PROVIDER_CHOICES: PromptChoice[]; export declare const SEVERITY_THRESHOLD_CHOICES: PromptChoice[]; export declare const DEFAULT_WORKSPACE_PATHS = "packages/*/package.json"; export declare const WIZARD_TITLES: { readonly default: "initialization wizard"; readonly security: "security configuration wizard"; readonly workspace: "workspace configuration wizard"; }; export declare const EMPTY_TOKEN_INFO: TokenInfo; export declare const TOKEN_INFO_BY_PROVIDER: Partial<Record<SecurityProvider, TokenInfo>>; export declare const INIT_MESSAGES: { readonly welcome: "This wizard will help you set up your Pastoralist configuration."; readonly skipInfo: "You can skip any step by selecting the skip option."; readonly existingConfigWarning: "Existing Pastoralist configuration detected. Do you want to overwrite it?"; readonly existingFileWarning: (filename: string) => string; readonly configNotSaved: "Configuration not saved. File preserved."; readonly configSaved: (path: string) => string; readonly initCancelled: "Initialization cancelled. Your existing configuration is preserved."; readonly initComplete: "▪▫▪ Pastoralist initialization complete! ▪▫▪"; readonly packageJsonNotFound: "Error: package.json not found"; readonly tokenEnvironmentInfo: (envVar: string) => string; readonly tokenCreationInfo: (provider: string, url: string) => string; readonly tokenRequiredWarning: (provider: string) => string; readonly workspacesDetected: (workspaces: string[]) => string; readonly noWorkspacesDetected: "No workspaces detected in package.json."; readonly savingConfig: "Saving configuration..."; readonly nextSteps: "Next Steps:"; }; export declare const STEP_TITLES: { readonly configLocation: "Step 1: Configuration Location"; readonly workspace: "Step 2: Workspace Configuration"; readonly security: "Step 3: Security Configuration"; }; export declare const PROMPTS: { readonly configLocation: "Where would you like to store your Pastoralist configuration?"; readonly configFormat: "Choose a config file format:"; readonly setupWorkspaces: "Do you want to configure workspace dependencies?"; readonly workspaceType: "How would you like to configure workspace dependencies?"; readonly customWorkspacePaths: "Enter workspace paths (comma-separated glob patterns)"; readonly setupSecurity: "Do you want to enable security vulnerability scanning?"; readonly securityProvider: "Choose a security provider:"; readonly hasToken: (provider: string) => string; readonly securityInteractive: "Enable interactive mode for security fixes? (allows you to review/approve each fix)"; readonly securityAutoFix: "Enable auto-fix mode? (automatically applies security overrides without prompting)"; readonly severityThreshold: "What severity level should trigger alerts?"; readonly hasWorkspaceSecurityChecks: "Scan workspace packages for vulnerabilities?"; };