@aiready/core 0.21.15 → 0.21.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +64 -1
- package/dist/index.d.ts +64 -1
- package/dist/index.js +689 -14
- package/dist/index.mjs +687 -15
- package/package.json +4 -1
package/dist/index.d.mts
CHANGED
|
@@ -514,6 +514,69 @@ declare class PythonParser implements LanguageParser {
|
|
|
514
514
|
private extractExportsRegex;
|
|
515
515
|
}
|
|
516
516
|
|
|
517
|
+
/**
|
|
518
|
+
* Java Parser implementation using tree-sitter
|
|
519
|
+
*/
|
|
520
|
+
declare class JavaParser implements LanguageParser {
|
|
521
|
+
readonly language = Language.Java;
|
|
522
|
+
readonly extensions: string[];
|
|
523
|
+
private parser;
|
|
524
|
+
private initialized;
|
|
525
|
+
/**
|
|
526
|
+
* Initialize the tree-sitter parser
|
|
527
|
+
*/
|
|
528
|
+
initialize(): Promise<void>;
|
|
529
|
+
parse(code: string, filePath: string): ParseResult;
|
|
530
|
+
private extractImportsAST;
|
|
531
|
+
private extractExportsAST;
|
|
532
|
+
private getModifiers;
|
|
533
|
+
private extractSubExports;
|
|
534
|
+
private extractParameters;
|
|
535
|
+
getNamingConventions(): NamingConvention;
|
|
536
|
+
canHandle(filePath: string): boolean;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* C# Parser implementation using tree-sitter
|
|
541
|
+
*/
|
|
542
|
+
declare class CSharpParser implements LanguageParser {
|
|
543
|
+
readonly language = Language.CSharp;
|
|
544
|
+
readonly extensions: string[];
|
|
545
|
+
private parser;
|
|
546
|
+
private initialized;
|
|
547
|
+
/**
|
|
548
|
+
* Initialize the tree-sitter parser
|
|
549
|
+
*/
|
|
550
|
+
initialize(): Promise<void>;
|
|
551
|
+
parse(code: string, filePath: string): ParseResult;
|
|
552
|
+
private extractImportsAST;
|
|
553
|
+
private extractExportsAST;
|
|
554
|
+
private getModifiers;
|
|
555
|
+
private extractParameters;
|
|
556
|
+
getNamingConventions(): NamingConvention;
|
|
557
|
+
canHandle(filePath: string): boolean;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Go Parser implementation using tree-sitter
|
|
562
|
+
*/
|
|
563
|
+
declare class GoParser implements LanguageParser {
|
|
564
|
+
readonly language = Language.Go;
|
|
565
|
+
readonly extensions: string[];
|
|
566
|
+
private parser;
|
|
567
|
+
private initialized;
|
|
568
|
+
/**
|
|
569
|
+
* Initialize the tree-sitter parser
|
|
570
|
+
*/
|
|
571
|
+
initialize(): Promise<void>;
|
|
572
|
+
parse(code: string, filePath: string): ParseResult;
|
|
573
|
+
private extractImportsAST;
|
|
574
|
+
private extractExportsAST;
|
|
575
|
+
private extractParameters;
|
|
576
|
+
getNamingConventions(): NamingConvention;
|
|
577
|
+
canHandle(filePath: string): boolean;
|
|
578
|
+
}
|
|
579
|
+
|
|
517
580
|
/**
|
|
518
581
|
* Cognitive Load Metrics
|
|
519
582
|
* Measures how much mental effort is required for an AI to understand a file.
|
|
@@ -845,4 +908,4 @@ declare function getRepoMetadata(directory: string): {
|
|
|
845
908
|
author?: string;
|
|
846
909
|
};
|
|
847
910
|
|
|
848
|
-
export { AIReadyConfig, type ASTNode, AcceptancePrediction, type AgentGroundingScore, type AiSignalClarity, type AiSignalClaritySignal, type CLIOptions, type ChangeAmplificationScore, type CognitiveLoad, ComprehensionDifficulty, type ConceptCohesion, CostConfig, DEFAULT_COST_CONFIG, DEFAULT_EXCLUDE, type DependencyHealthScore, type DocDriftRisk, type ExportWithImports, type FileImport, type FileWithDomain, type KnowledgeConcentrationRisk, Language, LanguageParser, type LoadFactor, MODEL_PRICING_PRESETS, ModelContextTier, type ModelPricingPreset, NamingConvention, ParseResult, ParserFactory, type PatternEntropy, ProductivityImpact, PythonParser, SEVERITY_TIME_ESTIMATES, ScanOptions, type ScoreHistoryEntry, type ScoreTrend, type SemanticDistance, SpokeOutput, type TechnicalDebtInterest, TechnicalValueChain, TechnicalValueChainSummary, type TestabilityIndex, TokenBudget, ToolName, type ToolProvider, ToolRegistry, ToolScoringOutput, TypeScriptParser, VAGUE_FILE_NAMES, calculateAgentGrounding, calculateAiSignalClarity, calculateBusinessROI, calculateChangeAmplification, calculateCognitiveLoad, calculateComprehensionDifficulty, calculateConceptCohesion, calculateDebtInterest, calculateDependencyHealth, calculateDocDrift, calculateExtendedFutureProofScore, calculateFutureProofScore, calculateImportSimilarity, calculateKnowledgeConcentration, calculateMonthlyCost, calculatePatternEntropy, calculateProductivityImpact, calculateSemanticDistance, calculateTechnicalValueChain, calculateTestabilityIndex, calculateTokenBudget, clearHistory, emitProgress, estimateCostFromBudget, estimateTokens, exportHistory, extractFunctions, extractImports, formatAcceptanceRate, formatCost, formatHours, generateValueChain, getElapsedTime, getFileCommitTimestamps, getFileExtension, getHistorySummary, getLineRangeLastModifiedCached, getModelPreset, getParser, getRepoMetadata, getSafetyIcon, getScoreBar, getSeverityColor, getSupportedLanguages, handleCLIError, handleJSONOutput, initializeParsers, isFileSupported, isSourceFile, loadConfig, loadMergedConfig, loadScoreHistory, mergeConfigWithDefaults, parseCode, parseFileExports, predictAcceptanceRate, readFileContent, resolveOutputPath, saveScoreEntry, scanEntries, scanFiles, validateSpokeOutput, validateWithSchema };
|
|
911
|
+
export { AIReadyConfig, type ASTNode, AcceptancePrediction, type AgentGroundingScore, type AiSignalClarity, type AiSignalClaritySignal, type CLIOptions, CSharpParser, type ChangeAmplificationScore, type CognitiveLoad, ComprehensionDifficulty, type ConceptCohesion, CostConfig, DEFAULT_COST_CONFIG, DEFAULT_EXCLUDE, type DependencyHealthScore, type DocDriftRisk, type ExportWithImports, type FileImport, type FileWithDomain, GoParser, JavaParser, type KnowledgeConcentrationRisk, Language, LanguageParser, type LoadFactor, MODEL_PRICING_PRESETS, ModelContextTier, type ModelPricingPreset, NamingConvention, ParseResult, ParserFactory, type PatternEntropy, ProductivityImpact, PythonParser, SEVERITY_TIME_ESTIMATES, ScanOptions, type ScoreHistoryEntry, type ScoreTrend, type SemanticDistance, SpokeOutput, type TechnicalDebtInterest, TechnicalValueChain, TechnicalValueChainSummary, type TestabilityIndex, TokenBudget, ToolName, type ToolProvider, ToolRegistry, ToolScoringOutput, TypeScriptParser, VAGUE_FILE_NAMES, calculateAgentGrounding, calculateAiSignalClarity, calculateBusinessROI, calculateChangeAmplification, calculateCognitiveLoad, calculateComprehensionDifficulty, calculateConceptCohesion, calculateDebtInterest, calculateDependencyHealth, calculateDocDrift, calculateExtendedFutureProofScore, calculateFutureProofScore, calculateImportSimilarity, calculateKnowledgeConcentration, calculateMonthlyCost, calculatePatternEntropy, calculateProductivityImpact, calculateSemanticDistance, calculateTechnicalValueChain, calculateTestabilityIndex, calculateTokenBudget, clearHistory, emitProgress, estimateCostFromBudget, estimateTokens, exportHistory, extractFunctions, extractImports, formatAcceptanceRate, formatCost, formatHours, generateValueChain, getElapsedTime, getFileCommitTimestamps, getFileExtension, getHistorySummary, getLineRangeLastModifiedCached, getModelPreset, getParser, getRepoMetadata, getSafetyIcon, getScoreBar, getSeverityColor, getSupportedLanguages, handleCLIError, handleJSONOutput, initializeParsers, isFileSupported, isSourceFile, loadConfig, loadMergedConfig, loadScoreHistory, mergeConfigWithDefaults, parseCode, parseFileExports, predictAcceptanceRate, readFileContent, resolveOutputPath, saveScoreEntry, scanEntries, scanFiles, validateSpokeOutput, validateWithSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -514,6 +514,69 @@ declare class PythonParser implements LanguageParser {
|
|
|
514
514
|
private extractExportsRegex;
|
|
515
515
|
}
|
|
516
516
|
|
|
517
|
+
/**
|
|
518
|
+
* Java Parser implementation using tree-sitter
|
|
519
|
+
*/
|
|
520
|
+
declare class JavaParser implements LanguageParser {
|
|
521
|
+
readonly language = Language.Java;
|
|
522
|
+
readonly extensions: string[];
|
|
523
|
+
private parser;
|
|
524
|
+
private initialized;
|
|
525
|
+
/**
|
|
526
|
+
* Initialize the tree-sitter parser
|
|
527
|
+
*/
|
|
528
|
+
initialize(): Promise<void>;
|
|
529
|
+
parse(code: string, filePath: string): ParseResult;
|
|
530
|
+
private extractImportsAST;
|
|
531
|
+
private extractExportsAST;
|
|
532
|
+
private getModifiers;
|
|
533
|
+
private extractSubExports;
|
|
534
|
+
private extractParameters;
|
|
535
|
+
getNamingConventions(): NamingConvention;
|
|
536
|
+
canHandle(filePath: string): boolean;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* C# Parser implementation using tree-sitter
|
|
541
|
+
*/
|
|
542
|
+
declare class CSharpParser implements LanguageParser {
|
|
543
|
+
readonly language = Language.CSharp;
|
|
544
|
+
readonly extensions: string[];
|
|
545
|
+
private parser;
|
|
546
|
+
private initialized;
|
|
547
|
+
/**
|
|
548
|
+
* Initialize the tree-sitter parser
|
|
549
|
+
*/
|
|
550
|
+
initialize(): Promise<void>;
|
|
551
|
+
parse(code: string, filePath: string): ParseResult;
|
|
552
|
+
private extractImportsAST;
|
|
553
|
+
private extractExportsAST;
|
|
554
|
+
private getModifiers;
|
|
555
|
+
private extractParameters;
|
|
556
|
+
getNamingConventions(): NamingConvention;
|
|
557
|
+
canHandle(filePath: string): boolean;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Go Parser implementation using tree-sitter
|
|
562
|
+
*/
|
|
563
|
+
declare class GoParser implements LanguageParser {
|
|
564
|
+
readonly language = Language.Go;
|
|
565
|
+
readonly extensions: string[];
|
|
566
|
+
private parser;
|
|
567
|
+
private initialized;
|
|
568
|
+
/**
|
|
569
|
+
* Initialize the tree-sitter parser
|
|
570
|
+
*/
|
|
571
|
+
initialize(): Promise<void>;
|
|
572
|
+
parse(code: string, filePath: string): ParseResult;
|
|
573
|
+
private extractImportsAST;
|
|
574
|
+
private extractExportsAST;
|
|
575
|
+
private extractParameters;
|
|
576
|
+
getNamingConventions(): NamingConvention;
|
|
577
|
+
canHandle(filePath: string): boolean;
|
|
578
|
+
}
|
|
579
|
+
|
|
517
580
|
/**
|
|
518
581
|
* Cognitive Load Metrics
|
|
519
582
|
* Measures how much mental effort is required for an AI to understand a file.
|
|
@@ -845,4 +908,4 @@ declare function getRepoMetadata(directory: string): {
|
|
|
845
908
|
author?: string;
|
|
846
909
|
};
|
|
847
910
|
|
|
848
|
-
export { AIReadyConfig, type ASTNode, AcceptancePrediction, type AgentGroundingScore, type AiSignalClarity, type AiSignalClaritySignal, type CLIOptions, type ChangeAmplificationScore, type CognitiveLoad, ComprehensionDifficulty, type ConceptCohesion, CostConfig, DEFAULT_COST_CONFIG, DEFAULT_EXCLUDE, type DependencyHealthScore, type DocDriftRisk, type ExportWithImports, type FileImport, type FileWithDomain, type KnowledgeConcentrationRisk, Language, LanguageParser, type LoadFactor, MODEL_PRICING_PRESETS, ModelContextTier, type ModelPricingPreset, NamingConvention, ParseResult, ParserFactory, type PatternEntropy, ProductivityImpact, PythonParser, SEVERITY_TIME_ESTIMATES, ScanOptions, type ScoreHistoryEntry, type ScoreTrend, type SemanticDistance, SpokeOutput, type TechnicalDebtInterest, TechnicalValueChain, TechnicalValueChainSummary, type TestabilityIndex, TokenBudget, ToolName, type ToolProvider, ToolRegistry, ToolScoringOutput, TypeScriptParser, VAGUE_FILE_NAMES, calculateAgentGrounding, calculateAiSignalClarity, calculateBusinessROI, calculateChangeAmplification, calculateCognitiveLoad, calculateComprehensionDifficulty, calculateConceptCohesion, calculateDebtInterest, calculateDependencyHealth, calculateDocDrift, calculateExtendedFutureProofScore, calculateFutureProofScore, calculateImportSimilarity, calculateKnowledgeConcentration, calculateMonthlyCost, calculatePatternEntropy, calculateProductivityImpact, calculateSemanticDistance, calculateTechnicalValueChain, calculateTestabilityIndex, calculateTokenBudget, clearHistory, emitProgress, estimateCostFromBudget, estimateTokens, exportHistory, extractFunctions, extractImports, formatAcceptanceRate, formatCost, formatHours, generateValueChain, getElapsedTime, getFileCommitTimestamps, getFileExtension, getHistorySummary, getLineRangeLastModifiedCached, getModelPreset, getParser, getRepoMetadata, getSafetyIcon, getScoreBar, getSeverityColor, getSupportedLanguages, handleCLIError, handleJSONOutput, initializeParsers, isFileSupported, isSourceFile, loadConfig, loadMergedConfig, loadScoreHistory, mergeConfigWithDefaults, parseCode, parseFileExports, predictAcceptanceRate, readFileContent, resolveOutputPath, saveScoreEntry, scanEntries, scanFiles, validateSpokeOutput, validateWithSchema };
|
|
911
|
+
export { AIReadyConfig, type ASTNode, AcceptancePrediction, type AgentGroundingScore, type AiSignalClarity, type AiSignalClaritySignal, type CLIOptions, CSharpParser, type ChangeAmplificationScore, type CognitiveLoad, ComprehensionDifficulty, type ConceptCohesion, CostConfig, DEFAULT_COST_CONFIG, DEFAULT_EXCLUDE, type DependencyHealthScore, type DocDriftRisk, type ExportWithImports, type FileImport, type FileWithDomain, GoParser, JavaParser, type KnowledgeConcentrationRisk, Language, LanguageParser, type LoadFactor, MODEL_PRICING_PRESETS, ModelContextTier, type ModelPricingPreset, NamingConvention, ParseResult, ParserFactory, type PatternEntropy, ProductivityImpact, PythonParser, SEVERITY_TIME_ESTIMATES, ScanOptions, type ScoreHistoryEntry, type ScoreTrend, type SemanticDistance, SpokeOutput, type TechnicalDebtInterest, TechnicalValueChain, TechnicalValueChainSummary, type TestabilityIndex, TokenBudget, ToolName, type ToolProvider, ToolRegistry, ToolScoringOutput, TypeScriptParser, VAGUE_FILE_NAMES, calculateAgentGrounding, calculateAiSignalClarity, calculateBusinessROI, calculateChangeAmplification, calculateCognitiveLoad, calculateComprehensionDifficulty, calculateConceptCohesion, calculateDebtInterest, calculateDependencyHealth, calculateDocDrift, calculateExtendedFutureProofScore, calculateFutureProofScore, calculateImportSimilarity, calculateKnowledgeConcentration, calculateMonthlyCost, calculatePatternEntropy, calculateProductivityImpact, calculateSemanticDistance, calculateTechnicalValueChain, calculateTestabilityIndex, calculateTokenBudget, clearHistory, emitProgress, estimateCostFromBudget, estimateTokens, exportHistory, extractFunctions, extractImports, formatAcceptanceRate, formatCost, formatHours, generateValueChain, getElapsedTime, getFileCommitTimestamps, getFileExtension, getHistorySummary, getLineRangeLastModifiedCached, getModelPreset, getParser, getRepoMetadata, getSafetyIcon, getScoreBar, getSeverityColor, getSupportedLanguages, handleCLIError, handleJSONOutput, initializeParsers, isFileSupported, isSourceFile, loadConfig, loadMergedConfig, loadScoreHistory, mergeConfigWithDefaults, parseCode, parseFileExports, predictAcceptanceRate, readFileContent, resolveOutputPath, saveScoreEntry, scanEntries, scanFiles, validateSpokeOutput, validateWithSchema };
|