@shelltender/server
Version:
Server-side terminal session management for Shelltender
334 lines • 11.1 kB
TypeScript
import type { PatternConfig } from '@shelltender/core';
/**
* Common terminal output patterns for various use cases
*/
export declare const CommonPatterns: {
readonly build: {
readonly npmInstall: {
readonly name: "npm-install";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "NPM package management commands";
readonly options: {
readonly debounce: 100;
};
};
readonly npmScript: {
readonly name: "npm-script";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "NPM script execution";
readonly options: {
readonly debounce: 100;
};
};
readonly buildSuccess: {
readonly name: "build-success";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Successful build completion";
readonly options: {
readonly debounce: 500;
};
};
readonly buildFailure: {
readonly name: "build-failure";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Build failures";
readonly options: {
readonly debounce: 500;
};
};
readonly webpack: {
readonly name: "webpack-status";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Webpack compilation status";
readonly options: {
readonly debounce: 200;
};
};
};
readonly git: {
readonly command: {
readonly name: "git-command";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Git commands";
readonly options: {
readonly debounce: 100;
};
};
readonly branch: {
readonly name: "git-branch";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Git branch information";
readonly options: {
readonly debounce: 200;
};
};
readonly remote: {
readonly name: "git-remote";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Git remote URLs";
readonly options: {
readonly debounce: 200;
};
};
readonly conflict: {
readonly name: "git-conflict";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Git merge conflicts";
readonly options: {
readonly debounce: 100;
};
};
};
readonly testing: {
readonly jest: {
readonly name: "jest-results";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Jest test results";
readonly options: {
readonly debounce: 200;
};
};
readonly vitest: {
readonly name: "vitest-results";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Vitest test results";
readonly options: {
readonly debounce: 200;
};
};
readonly testFile: {
readonly name: "test-file";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Test file results";
readonly options: {
readonly debounce: 100;
};
};
readonly coverage: {
readonly name: "test-coverage";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Test coverage percentages";
readonly options: {
readonly debounce: 300;
};
};
};
readonly diagnostics: {
readonly error: {
readonly name: "error-generic";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Generic error messages";
readonly options: {
readonly debounce: 200;
};
};
readonly warning: {
readonly name: "warning-generic";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Generic warning messages";
readonly options: {
readonly debounce: 200;
};
};
readonly stackTrace: {
readonly name: "stack-trace";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "JavaScript stack traces";
readonly options: {
readonly debounce: 50;
};
};
readonly typeError: {
readonly name: "typescript-error";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "TypeScript compilation errors";
readonly options: {
readonly debounce: 100;
};
};
};
readonly system: {
readonly prompt: {
readonly name: "shell-prompt";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Shell prompt detection";
readonly options: {
readonly debounce: 0;
};
};
readonly command: {
readonly name: "shell-command";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Shell command execution";
readonly options: {
readonly debounce: 100;
};
};
readonly path: {
readonly name: "file-path";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "File paths (Unix and Windows)";
readonly options: {
readonly debounce: 200;
};
};
readonly port: {
readonly name: "port-binding";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Port binding messages";
readonly options: {
readonly debounce: 200;
};
};
};
readonly progress: {
readonly percentage: {
readonly name: "progress-percentage";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Percentage progress indicators";
readonly options: {
readonly debounce: 100;
};
};
readonly progressBar: {
readonly name: "progress-bar";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "ASCII progress bars";
readonly options: {
readonly debounce: 100;
};
};
readonly spinner: {
readonly name: "spinner";
readonly type: "string";
readonly pattern: readonly ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
readonly description: "Loading spinner characters";
readonly options: {
readonly debounce: 50;
};
};
readonly bytes: {
readonly name: "data-transfer";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Data transfer sizes";
readonly options: {
readonly debounce: 200;
};
};
};
readonly network: {
readonly url: {
readonly name: "url";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "HTTP/HTTPS URLs";
readonly options: {
readonly debounce: 200;
};
};
readonly ipAddress: {
readonly name: "ip-address";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "IPv4 addresses";
readonly options: {
readonly debounce: 200;
};
};
readonly httpStatus: {
readonly name: "http-status";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "HTTP status codes";
readonly options: {
readonly debounce: 100;
};
};
};
readonly docker: {
readonly command: {
readonly name: "docker-command";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Docker commands";
readonly options: {
readonly debounce: 100;
};
};
readonly imageId: {
readonly name: "docker-image";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Docker image IDs";
readonly options: {
readonly debounce: 200;
};
};
readonly container: {
readonly name: "docker-container";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Docker container IDs";
readonly options: {
readonly debounce: 200;
};
};
};
readonly packageManagers: {
readonly npmPackage: {
readonly name: "npm-package";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "NPM package operations";
readonly options: {
readonly debounce: 300;
};
};
readonly yarnPackage: {
readonly name: "yarn-package";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Yarn package operations";
readonly options: {
readonly debounce: 300;
};
};
readonly packageVersion: {
readonly name: "package-version";
readonly type: "regex";
readonly pattern: RegExp;
readonly description: "Package versions";
readonly options: {
readonly debounce: 200;
};
};
};
};
export declare function getAllPatterns(): PatternConfig[];
export declare function getPatternsByCategory(category: keyof typeof CommonPatterns): PatternConfig[];
export declare function searchPatterns(query: string): PatternConfig[];
//# sourceMappingURL=CommonPatterns.d.ts.map