@samiyev/guardian
Version:
Research-backed code quality guardian for AI-assisted development. Detects hardcodes, secrets, circular deps, framework leaks, entity exposure, and 9 architecture violations. Enforces Clean Architecture/DDD principles. Works with GitHub Copilot, Cursor, W
189 lines • 5.87 kB
TypeScript
/**
* Suggestion keywords for hardcode detection
*/
export declare const SUGGESTION_KEYWORDS: {
readonly TIMEOUT: "timeout";
readonly RETRY: "retry";
readonly ATTEMPT: "attempt";
readonly LIMIT: "limit";
readonly MAX: "max";
readonly PORT: "port";
readonly DELAY: "delay";
readonly ERROR: "error";
readonly MESSAGE: "message";
readonly DEFAULT: "default";
readonly ENTITY: "entity";
readonly AGGREGATE: "aggregate";
readonly DOMAIN: "domain";
readonly CONFIG: "config";
readonly ENV: "env";
readonly HTTP: "http";
readonly TEST: "test";
readonly DESCRIBE: "describe";
readonly CONSOLE_LOG: "console.log";
readonly CONSOLE_ERROR: "console.error";
};
/**
* Context keywords for email detection
*/
export declare const EMAIL_CONTEXT_KEYWORDS: {
readonly ADMIN: "admin";
readonly SUPPORT: "support";
readonly NOREPLY: "noreply";
readonly NO_REPLY: "no-reply";
};
/**
* Context keywords for API key detection
*/
export declare const API_KEY_CONTEXT_KEYWORDS: {
readonly SECRET: "secret";
readonly PUBLIC: "public";
};
/**
* Context keywords for URL detection
*/
export declare const URL_CONTEXT_KEYWORDS: {
readonly API: "api";
readonly DATABASE: "database";
readonly DB: "db";
readonly MONGO: "mongo";
readonly POSTGRES: "postgres";
readonly PG: "pg";
};
/**
* Context keywords for IP address detection
*/
export declare const IP_CONTEXT_KEYWORDS: {
readonly SERVER: "server";
readonly REDIS: "redis";
};
/**
* Context keywords for file path detection
*/
export declare const FILE_PATH_CONTEXT_KEYWORDS: {
readonly LOG: "log";
readonly DATA: "data";
readonly TEMP: "temp";
};
/**
* Context keywords for date detection
*/
export declare const DATE_CONTEXT_KEYWORDS: {
readonly DEADLINE: "deadline";
readonly START: "start";
readonly END: "end";
readonly EXPIR: "expir";
};
/**
* Context keywords for UUID detection
*/
export declare const UUID_CONTEXT_KEYWORDS: {
readonly ID: "id";
readonly IDENTIFIER: "identifier";
readonly REQUEST: "request";
readonly SESSION: "session";
};
/**
* Context keywords for version detection
*/
export declare const VERSION_CONTEXT_KEYWORDS: {
readonly APP: "app";
};
/**
* Context keywords for color detection
*/
export declare const COLOR_CONTEXT_KEYWORDS: {
readonly PRIMARY: "primary";
readonly SECONDARY: "secondary";
readonly BACKGROUND: "background";
};
/**
* Context keywords for base64 detection
*/
export declare const BASE64_CONTEXT_KEYWORDS: {
readonly TOKEN: "token";
readonly KEY: "key";
};
/**
* Context keywords for config detection
*/
export declare const CONFIG_CONTEXT_KEYWORDS: {
readonly ENDPOINT: "endpoint";
readonly ROUTE: "route";
readonly CONNECTION: "connection";
};
/**
* Constant name templates
*/
export declare const CONSTANT_NAMES: {
readonly TIMEOUT_MS: "TIMEOUT_MS";
readonly MAX_RETRIES: "MAX_RETRIES";
readonly MAX_LIMIT: "MAX_LIMIT";
readonly DEFAULT_PORT: "DEFAULT_PORT";
readonly DELAY_MS: "DELAY_MS";
readonly API_BASE_URL: "API_BASE_URL";
readonly DEFAULT_PATH: "DEFAULT_PATH";
readonly DEFAULT_DOMAIN: "DEFAULT_DOMAIN";
readonly ERROR_MESSAGE: "ERROR_MESSAGE";
readonly DEFAULT_VALUE: "DEFAULT_VALUE";
readonly MAGIC_STRING: "MAGIC_STRING";
readonly MAGIC_NUMBER: "MAGIC_NUMBER";
readonly UNKNOWN_CONSTANT: "UNKNOWN_CONSTANT";
readonly ADMIN_EMAIL: "ADMIN_EMAIL";
readonly SUPPORT_EMAIL: "SUPPORT_EMAIL";
readonly NOREPLY_EMAIL: "NOREPLY_EMAIL";
readonly DEFAULT_EMAIL: "DEFAULT_EMAIL";
readonly API_SECRET_KEY: "API_SECRET_KEY";
readonly API_PUBLIC_KEY: "API_PUBLIC_KEY";
readonly API_KEY: "API_KEY";
readonly DATABASE_URL: "DATABASE_URL";
readonly MONGODB_CONNECTION_STRING: "MONGODB_CONNECTION_STRING";
readonly POSTGRES_URL: "POSTGRES_URL";
readonly BASE_URL: "BASE_URL";
readonly SERVER_IP: "SERVER_IP";
readonly DATABASE_HOST: "DATABASE_HOST";
readonly REDIS_HOST: "REDIS_HOST";
readonly HOST_IP: "HOST_IP";
readonly LOG_FILE_PATH: "LOG_FILE_PATH";
readonly CONFIG_FILE_PATH: "CONFIG_FILE_PATH";
readonly DATA_DIR_PATH: "DATA_DIR_PATH";
readonly TEMP_DIR_PATH: "TEMP_DIR_PATH";
readonly FILE_PATH: "FILE_PATH";
readonly DEADLINE: "DEADLINE";
readonly START_DATE: "START_DATE";
readonly END_DATE: "END_DATE";
readonly EXPIRATION_DATE: "EXPIRATION_DATE";
readonly DEFAULT_DATE: "DEFAULT_DATE";
readonly DEFAULT_ID: "DEFAULT_ID";
readonly REQUEST_ID: "REQUEST_ID";
readonly SESSION_ID: "SESSION_ID";
readonly UUID_CONSTANT: "UUID_CONSTANT";
readonly API_VERSION: "API_VERSION";
readonly APP_VERSION: "APP_VERSION";
readonly VERSION: "VERSION";
readonly PRIMARY_COLOR: "PRIMARY_COLOR";
readonly SECONDARY_COLOR: "SECONDARY_COLOR";
readonly BACKGROUND_COLOR: "BACKGROUND_COLOR";
readonly COLOR_CONSTANT: "COLOR_CONSTANT";
readonly MAC_ADDRESS: "MAC_ADDRESS";
readonly ENCODED_TOKEN: "ENCODED_TOKEN";
readonly ENCODED_KEY: "ENCODED_KEY";
readonly BASE64_VALUE: "BASE64_VALUE";
readonly API_ENDPOINT: "API_ENDPOINT";
readonly ROUTE_PATH: "ROUTE_PATH";
readonly CONNECTION_STRING: "CONNECTION_STRING";
readonly CONFIG_VALUE: "CONFIG_VALUE";
};
/**
* Location suggestions
*/
export declare const LOCATIONS: {
readonly SHARED_CONSTANTS: "shared/constants";
readonly DOMAIN_CONSTANTS: "domain/constants";
readonly INFRASTRUCTURE_CONFIG: "infrastructure/config";
readonly CONFIG_ENVIRONMENT: "src/config/environment.ts";
readonly CONFIG_CONTACTS: "src/config/contacts.ts";
readonly CONFIG_PATHS: "src/config/paths.ts";
readonly CONFIG_DATES: "src/config/dates.ts";
};
//# sourceMappingURL=Suggestions.d.ts.map