
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@vibe-validate/extractors
Advanced tools
LLM-optimized error extractors for validation output.
file(line,col): error TSxxxx: message formatfile:line:col - severity message [rule] formatnpm install @vibe-validate/extractors
Auto-detects tool type from step name:
import { extractByStepName } from '@vibe-validate/extractors';
const result = extractByStepName('TypeScript Type Checking', tscOutput);
console.log(result.summary); // "3 type error(s), 0 warning(s)"
console.log(result.guidance); // "Type mismatch - check variable/parameter types"
console.log(result.cleanOutput); // Clean, formatted error list
console.log(result.errors); // Structured error array
Use direct extractors when:
Example: Using Jest extractor directly
import { extractJestErrors } from '@vibe-validate/extractors';
import { execSync } from 'child_process';
const jestOutput = execSync('npx jest --no-coverage').toString();
const result = extractJestErrors(jestOutput);
console.log(`Found ${result.errors.length} test failures`);
console.log(`Quality: ${result.metadata?.confidence}% confidence`);
result.errors.forEach(error => {
console.log(` ${error.file}:${error.line} - ${error.message}`);
});
All available extractors:
import {
// Test framework extractors
extractVitestErrors,
extractJestErrors,
extractMochaErrors,
extractJasmineErrors,
extractTAPErrors,
extractAvaErrors,
extractPlaywrightErrors,
extractJUnitErrors,
// Code quality extractors
extractTypeScriptErrors,
extractESLintErrors,
extractOpenAPIErrors,
// Fallback
extractGenericErrors
} from '@vibe-validate/extractors';
import { stripAnsiCodes, extractErrorLines } from '@vibe-validate/extractors';
const clean = stripAnsiCodes(colorfulOutput);
const errorLines = extractErrorLines(verboseOutput);
extractByStepName(stepName: string, output: string): ErrorExtractorResultSmart extractor with auto-detection.
Detection rules:
❯ marker or FAIL keywordFAIL or ● bullet pattern✘ [fail]: pattern✘ with .spec.ts references<?xml and contains <testsuite>interface FormattedError {
file?: string;
line?: number;
column?: number;
message: string;
code?: string;
severity?: 'error' | 'warning';
context?: string;
guidance?: string;
}
interface ExtractionMetadata {
confidence: number; // 0-100: Based on pattern match quality
completeness: number; // % of failures with file + line + message
issues: string[]; // Problems encountered during extraction
suggestions?: string[]; // For developerFeedback mode only
}
interface ErrorExtractorResult {
errors: FormattedError[]; // First 10 errors (structured)
summary: string; // Human-readable summary
totalCount: number; // Total error count
guidance?: string; // Actionable fixing guidance
cleanOutput: string; // Clean formatted output for YAML/JSON
metadata?: ExtractionMetadata; // Extraction quality metadata
}
cleanOutput ready for YAML/JSON state filesAgent-First: Designed for consumption by AI assistants (Claude Code, Cursor, etc.), not just humans.
Deterministic: Same input always produces same output (no timestamps, no randomness).
Minimal: Zero runtime dependencies, pure TypeScript.
MIT
FAQs
LLM-optimized error extractors for validation output
We found that @vibe-validate/extractors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.