@aiready/core 0.24.19 → 0.24.20

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.
Files changed (39) hide show
  1. package/dist/chunk-3NEZ5M7Y.mjs +385 -340
  2. package/dist/chunk-5IVDH26E.mjs +142 -88
  3. package/dist/chunk-BE52N7T2.mjs +892 -0
  4. package/dist/chunk-GQMKSUA4.mjs +381 -336
  5. package/dist/chunk-LRM26BOB.mjs +381 -336
  6. package/dist/chunk-MOM3IXCA.mjs +146 -91
  7. package/dist/chunk-OT6FOHL4.mjs +144 -88
  8. package/dist/chunk-OVWWYI75.mjs +307 -0
  9. package/dist/chunk-U3IY2CFC.mjs +18 -22
  10. package/dist/chunk-WPFXQH5F.mjs +307 -0
  11. package/dist/chunk-WUDUSXUE.mjs +366 -0
  12. package/dist/chunk-YQATXOKD.mjs +36 -0
  13. package/dist/chunk-YVPVNRFQ.mjs +937 -0
  14. package/dist/client/index.mjs +2 -2
  15. package/dist/csharp-parser-JE5MWHQS.mjs +9 -0
  16. package/dist/csharp-parser-XW7WHE77.mjs +5 -9
  17. package/dist/go-parser-KTG4CGF5.mjs +5 -9
  18. package/dist/go-parser-T7PR6WJI.mjs +9 -0
  19. package/dist/index-CcP12wb-.d.mts +996 -693
  20. package/dist/index-CcP12wb-.d.ts +996 -693
  21. package/dist/index-DGbarGnr.d.mts +996 -693
  22. package/dist/index-DGbarGnr.d.ts +996 -693
  23. package/dist/index-slasaNzr.d.mts +998 -695
  24. package/dist/index-slasaNzr.d.ts +998 -695
  25. package/dist/index.d.mts +32 -1
  26. package/dist/index.d.ts +32 -1
  27. package/dist/index.js +35 -2
  28. package/dist/index.mjs +41 -9
  29. package/dist/java-parser-EOKMGQ6B.mjs +5 -9
  30. package/dist/java-parser-WGOXKULP.mjs +9 -0
  31. package/dist/python-parser-7NCR7VCQ.mjs +8 -0
  32. package/dist/python-parser-BCI7JVLF.mjs +4 -8
  33. package/dist/typescript-parser-3KYGSSY5.mjs +3 -0
  34. package/dist/typescript-parser-4BA4VYAF.mjs +3 -7
  35. package/dist/typescript-parser-FOUPHVFI.mjs +3 -7
  36. package/dist/typescript-parser-G3TSNR7O.mjs +7 -0
  37. package/dist/typescript-parser-RMNCTHRD.mjs +3 -7
  38. package/dist/typescript-parser-WALISXF4.mjs +7 -0
  39. package/package.json +11 -10
package/dist/index.d.mts CHANGED
@@ -29,6 +29,37 @@ interface CodeBlock {
29
29
  hash?: string;
30
30
  }
31
31
 
32
+ /**
33
+ * Shared AWS Infrastructure Constants
34
+ */
35
+ declare const AWS_CONSTANTS: {
36
+ readonly REGIONS: {
37
+ readonly DEFAULT: "ap-southeast-2";
38
+ };
39
+ readonly IAM: {
40
+ readonly ROLES: {
41
+ readonly ORG_ACCESS: "OrganizationAccountAccessRole";
42
+ readonly GITHUB_ACTIONS: "ClawMore-GitHub-Actions-Role";
43
+ };
44
+ readonly POLICIES: {
45
+ readonly VERSION: "2012-10-17";
46
+ readonly DEPLOY_NAME: "ClawMore-Serverless-Deploy-Policy";
47
+ };
48
+ readonly ACTIONS: {
49
+ readonly ASSUME_ROLE: "sts:AssumeRole";
50
+ readonly ASSUME_ROLE_WEB: "sts:AssumeRoleWithWebIdentity";
51
+ readonly GET_CALLER_IDENTITY: "sts:GetCallerIdentity";
52
+ };
53
+ };
54
+ readonly OIDC: {
55
+ readonly GITHUB_URL: "https://token.actions.githubusercontent.com";
56
+ readonly GITHUB_PROVIDER: "token.actions.githubusercontent.com";
57
+ readonly AUDIENCE: "sts.amazonaws.com";
58
+ readonly THUMBPRINTS: readonly ["6938fd4d98bab03faadb97b34396831e3780aea1", "1c58a3a8518e8759bf075b76b750d4f2df264fcd"];
59
+ };
60
+ };
61
+ type AwsRegion = typeof AWS_CONSTANTS.REGIONS.DEFAULT;
62
+
32
63
  /**
33
64
  * Spoke-to-Hub Contract Definitions
34
65
  * This file defines the expected JSON structure for tool outputs to ensure
@@ -2166,4 +2197,4 @@ declare function withErrorHandling<T>(operation: () => Promise<T>, context?: str
2166
2197
  error: string;
2167
2198
  }>;
2168
2199
 
2169
- export { AIReadyConfig, AcceptancePrediction, type AgentGroundingScore, type AiSignalClarity, type AiSignalClaritySignal, AnalysisResult, type CLIOptions, CSharpParser, type ChangeAmplificationScore, type CodeBlock, type CognitiveLoad, ComprehensionDifficulty, type ConceptCohesion, type ConfigProvider, CostConfig, DEFAULT_COST_CONFIG, DEFAULT_EXCLUDE, DIContainer, DI_TOKENS, type DependencyHealthScore, type DocDriftRisk, ExportInfo, ExportWithImports, type Factory, FileImport, type FileSystem, type FileTestability, type FileWithDomain, GoParser, type HtmlReportSection, Issue, type JSONOutputParams, JavaParser, type KnowledgeConcentrationRisk, Language, LanguageParser, type LoadFactor, type Logger, MODEL_PRICING_PRESETS, Metrics, ModelContextTier, type ModelPricingPreset, NamingConvention, ParseResult, ParserFactory, type PatternEntropy, ProductivityImpact, type ProviderFactoryConfig, PythonParser, type ReportOptions, SEVERITY_TIME_ESTIMATES, ScanOptions, type ScoreHistoryEntry, type ScoreTrend, type SemanticDistance, Severity, Severity as SeverityType, SpokeOutput, type StandardReportData, type StandardScoringParams, type StatCard, TEST_PATTERNS, type TableConfig, type TechnicalDebtInterest, TechnicalValueChain, TechnicalValueChainSummary, type TestabilityIndex, type Token, TokenBudget, ToolName, ToolOptions, type ToolProvider, ToolRegistry, ToolScoringOutput, TypeScriptParser, VAGUE_FILE_NAMES, buildFactorsFromDimensions, buildSimpleProviderScore, buildSpokeOutput, buildStandardToolScore, calculateAgentGrounding, calculateAiSignalClarity, calculateBusinessROI, calculateChangeAmplification, calculateCognitiveLoad, calculateComprehensionDifficulty, calculateConceptCohesion, calculateDebtInterest, calculateDependencyHealth, calculateDetailedTokenROI, calculateDocDrift, calculateExtendedFutureProofScore, calculateFutureProofScore, calculateHeuristicConfidence, calculateImportSimilarity, calculateKnowledgeConcentration, calculateMonthlyCost, calculatePatternEntropy, calculateProductivityImpact, calculateSemanticDistance, calculateStringSimilarity, calculateTechnicalValueChain, calculateTestabilityIndex, calculateTokenBudget, clearHistory, createErrorResponse, createProvider, createStandardCommand, createStandardProgressCallback, defaultImplementations, detectTestFramework, displayStandardConsoleReport, emitAnnotation, emitIssuesAsAnnotations, emitProgress, ensureDir, estimateCostFromBudget, estimateTokens, executeSpokeCli, exportHistory, extractCodeBlocks, filterBySeverity, findLatestReport, findLatestScanReport, formatAcceptanceRate, formatCost, formatHours, formatStandardCliResult, formatStandardReport, generateCompleteReport, generateIssueSummary, generateReportFooter, generateReportHead, generateReportHero, generateStandardHtmlReport, generateStatCards, generateTable, generateValueChain, getElapsedTime, getErrorMessage, getFileCommitTimestamps, getFileExtension, getFilesByPattern, getHistorySummary, getLineRangeLastModifiedCached, getModelPreset, getParser, getRepoMetadata, getReportTimestamp, getSafetyIcon, getScoreBar, getScoreColor, getSeverityBadge, getSeverityColor, getSeverityEnum, getSeverityLabel, getSeverityLevel, getSeverityValue, getSupportedLanguages, getTerminalDivider, getWasmPath, globalContainer, groupIssuesByFile, handleCLIError, handleJSONOutput, handleStandardJSONOutput, inferPatternType, initTreeSitter, initializeParsers, isBuildArtifact, isFileSupported, isIgnorableSourceFile, isSourceFile, isTestFile, loadConfig, loadMergedConfig, loadScoreHistory, mergeConfigWithDefaults, normalizeAnalysisResult, normalizeIssue, normalizeMetrics, normalizeSeverity, normalizeSpokeOutput, parseFileExports, predictAcceptanceRate, prepareActionConfig, printTerminalHeader, readFileContent, resolveOutputFormat, resolveOutputPath, runBatchAnalysis, runStandardCliAction, saveScoreEntry, scanEntries, scanFiles, setupParser, severityToAnnotationLevel, toErrorMessage, validateSpokeOutput, validateWithSchema, withErrorHandling, wrapInCard };
2200
+ export { AIReadyConfig, AWS_CONSTANTS, AcceptancePrediction, type AgentGroundingScore, type AiSignalClarity, type AiSignalClaritySignal, AnalysisResult, type AwsRegion, type CLIOptions, CSharpParser, type ChangeAmplificationScore, type CodeBlock, type CognitiveLoad, ComprehensionDifficulty, type ConceptCohesion, type ConfigProvider, CostConfig, DEFAULT_COST_CONFIG, DEFAULT_EXCLUDE, DIContainer, DI_TOKENS, type DependencyHealthScore, type DocDriftRisk, ExportInfo, ExportWithImports, type Factory, FileImport, type FileSystem, type FileTestability, type FileWithDomain, GoParser, type HtmlReportSection, Issue, type JSONOutputParams, JavaParser, type KnowledgeConcentrationRisk, Language, LanguageParser, type LoadFactor, type Logger, MODEL_PRICING_PRESETS, Metrics, ModelContextTier, type ModelPricingPreset, NamingConvention, ParseResult, ParserFactory, type PatternEntropy, ProductivityImpact, type ProviderFactoryConfig, PythonParser, type ReportOptions, SEVERITY_TIME_ESTIMATES, ScanOptions, type ScoreHistoryEntry, type ScoreTrend, type SemanticDistance, Severity, Severity as SeverityType, SpokeOutput, type StandardReportData, type StandardScoringParams, type StatCard, TEST_PATTERNS, type TableConfig, type TechnicalDebtInterest, TechnicalValueChain, TechnicalValueChainSummary, type TestabilityIndex, type Token, TokenBudget, ToolName, ToolOptions, type ToolProvider, ToolRegistry, ToolScoringOutput, TypeScriptParser, VAGUE_FILE_NAMES, buildFactorsFromDimensions, buildSimpleProviderScore, buildSpokeOutput, buildStandardToolScore, calculateAgentGrounding, calculateAiSignalClarity, calculateBusinessROI, calculateChangeAmplification, calculateCognitiveLoad, calculateComprehensionDifficulty, calculateConceptCohesion, calculateDebtInterest, calculateDependencyHealth, calculateDetailedTokenROI, calculateDocDrift, calculateExtendedFutureProofScore, calculateFutureProofScore, calculateHeuristicConfidence, calculateImportSimilarity, calculateKnowledgeConcentration, calculateMonthlyCost, calculatePatternEntropy, calculateProductivityImpact, calculateSemanticDistance, calculateStringSimilarity, calculateTechnicalValueChain, calculateTestabilityIndex, calculateTokenBudget, clearHistory, createErrorResponse, createProvider, createStandardCommand, createStandardProgressCallback, defaultImplementations, detectTestFramework, displayStandardConsoleReport, emitAnnotation, emitIssuesAsAnnotations, emitProgress, ensureDir, estimateCostFromBudget, estimateTokens, executeSpokeCli, exportHistory, extractCodeBlocks, filterBySeverity, findLatestReport, findLatestScanReport, formatAcceptanceRate, formatCost, formatHours, formatStandardCliResult, formatStandardReport, generateCompleteReport, generateIssueSummary, generateReportFooter, generateReportHead, generateReportHero, generateStandardHtmlReport, generateStatCards, generateTable, generateValueChain, getElapsedTime, getErrorMessage, getFileCommitTimestamps, getFileExtension, getFilesByPattern, getHistorySummary, getLineRangeLastModifiedCached, getModelPreset, getParser, getRepoMetadata, getReportTimestamp, getSafetyIcon, getScoreBar, getScoreColor, getSeverityBadge, getSeverityColor, getSeverityEnum, getSeverityLabel, getSeverityLevel, getSeverityValue, getSupportedLanguages, getTerminalDivider, getWasmPath, globalContainer, groupIssuesByFile, handleCLIError, handleJSONOutput, handleStandardJSONOutput, inferPatternType, initTreeSitter, initializeParsers, isBuildArtifact, isFileSupported, isIgnorableSourceFile, isSourceFile, isTestFile, loadConfig, loadMergedConfig, loadScoreHistory, mergeConfigWithDefaults, normalizeAnalysisResult, normalizeIssue, normalizeMetrics, normalizeSeverity, normalizeSpokeOutput, parseFileExports, predictAcceptanceRate, prepareActionConfig, printTerminalHeader, readFileContent, resolveOutputFormat, resolveOutputPath, runBatchAnalysis, runStandardCliAction, saveScoreEntry, scanEntries, scanFiles, setupParser, severityToAnnotationLevel, toErrorMessage, validateSpokeOutput, validateWithSchema, withErrorHandling, wrapInCard };
package/dist/index.d.ts CHANGED
@@ -29,6 +29,37 @@ interface CodeBlock {
29
29
  hash?: string;
30
30
  }
31
31
 
32
+ /**
33
+ * Shared AWS Infrastructure Constants
34
+ */
35
+ declare const AWS_CONSTANTS: {
36
+ readonly REGIONS: {
37
+ readonly DEFAULT: "ap-southeast-2";
38
+ };
39
+ readonly IAM: {
40
+ readonly ROLES: {
41
+ readonly ORG_ACCESS: "OrganizationAccountAccessRole";
42
+ readonly GITHUB_ACTIONS: "ClawMore-GitHub-Actions-Role";
43
+ };
44
+ readonly POLICIES: {
45
+ readonly VERSION: "2012-10-17";
46
+ readonly DEPLOY_NAME: "ClawMore-Serverless-Deploy-Policy";
47
+ };
48
+ readonly ACTIONS: {
49
+ readonly ASSUME_ROLE: "sts:AssumeRole";
50
+ readonly ASSUME_ROLE_WEB: "sts:AssumeRoleWithWebIdentity";
51
+ readonly GET_CALLER_IDENTITY: "sts:GetCallerIdentity";
52
+ };
53
+ };
54
+ readonly OIDC: {
55
+ readonly GITHUB_URL: "https://token.actions.githubusercontent.com";
56
+ readonly GITHUB_PROVIDER: "token.actions.githubusercontent.com";
57
+ readonly AUDIENCE: "sts.amazonaws.com";
58
+ readonly THUMBPRINTS: readonly ["6938fd4d98bab03faadb97b34396831e3780aea1", "1c58a3a8518e8759bf075b76b750d4f2df264fcd"];
59
+ };
60
+ };
61
+ type AwsRegion = typeof AWS_CONSTANTS.REGIONS.DEFAULT;
62
+
32
63
  /**
33
64
  * Spoke-to-Hub Contract Definitions
34
65
  * This file defines the expected JSON structure for tool outputs to ensure
@@ -2166,4 +2197,4 @@ declare function withErrorHandling<T>(operation: () => Promise<T>, context?: str
2166
2197
  error: string;
2167
2198
  }>;
2168
2199
 
2169
- export { AIReadyConfig, AcceptancePrediction, type AgentGroundingScore, type AiSignalClarity, type AiSignalClaritySignal, AnalysisResult, type CLIOptions, CSharpParser, type ChangeAmplificationScore, type CodeBlock, type CognitiveLoad, ComprehensionDifficulty, type ConceptCohesion, type ConfigProvider, CostConfig, DEFAULT_COST_CONFIG, DEFAULT_EXCLUDE, DIContainer, DI_TOKENS, type DependencyHealthScore, type DocDriftRisk, ExportInfo, ExportWithImports, type Factory, FileImport, type FileSystem, type FileTestability, type FileWithDomain, GoParser, type HtmlReportSection, Issue, type JSONOutputParams, JavaParser, type KnowledgeConcentrationRisk, Language, LanguageParser, type LoadFactor, type Logger, MODEL_PRICING_PRESETS, Metrics, ModelContextTier, type ModelPricingPreset, NamingConvention, ParseResult, ParserFactory, type PatternEntropy, ProductivityImpact, type ProviderFactoryConfig, PythonParser, type ReportOptions, SEVERITY_TIME_ESTIMATES, ScanOptions, type ScoreHistoryEntry, type ScoreTrend, type SemanticDistance, Severity, Severity as SeverityType, SpokeOutput, type StandardReportData, type StandardScoringParams, type StatCard, TEST_PATTERNS, type TableConfig, type TechnicalDebtInterest, TechnicalValueChain, TechnicalValueChainSummary, type TestabilityIndex, type Token, TokenBudget, ToolName, ToolOptions, type ToolProvider, ToolRegistry, ToolScoringOutput, TypeScriptParser, VAGUE_FILE_NAMES, buildFactorsFromDimensions, buildSimpleProviderScore, buildSpokeOutput, buildStandardToolScore, calculateAgentGrounding, calculateAiSignalClarity, calculateBusinessROI, calculateChangeAmplification, calculateCognitiveLoad, calculateComprehensionDifficulty, calculateConceptCohesion, calculateDebtInterest, calculateDependencyHealth, calculateDetailedTokenROI, calculateDocDrift, calculateExtendedFutureProofScore, calculateFutureProofScore, calculateHeuristicConfidence, calculateImportSimilarity, calculateKnowledgeConcentration, calculateMonthlyCost, calculatePatternEntropy, calculateProductivityImpact, calculateSemanticDistance, calculateStringSimilarity, calculateTechnicalValueChain, calculateTestabilityIndex, calculateTokenBudget, clearHistory, createErrorResponse, createProvider, createStandardCommand, createStandardProgressCallback, defaultImplementations, detectTestFramework, displayStandardConsoleReport, emitAnnotation, emitIssuesAsAnnotations, emitProgress, ensureDir, estimateCostFromBudget, estimateTokens, executeSpokeCli, exportHistory, extractCodeBlocks, filterBySeverity, findLatestReport, findLatestScanReport, formatAcceptanceRate, formatCost, formatHours, formatStandardCliResult, formatStandardReport, generateCompleteReport, generateIssueSummary, generateReportFooter, generateReportHead, generateReportHero, generateStandardHtmlReport, generateStatCards, generateTable, generateValueChain, getElapsedTime, getErrorMessage, getFileCommitTimestamps, getFileExtension, getFilesByPattern, getHistorySummary, getLineRangeLastModifiedCached, getModelPreset, getParser, getRepoMetadata, getReportTimestamp, getSafetyIcon, getScoreBar, getScoreColor, getSeverityBadge, getSeverityColor, getSeverityEnum, getSeverityLabel, getSeverityLevel, getSeverityValue, getSupportedLanguages, getTerminalDivider, getWasmPath, globalContainer, groupIssuesByFile, handleCLIError, handleJSONOutput, handleStandardJSONOutput, inferPatternType, initTreeSitter, initializeParsers, isBuildArtifact, isFileSupported, isIgnorableSourceFile, isSourceFile, isTestFile, loadConfig, loadMergedConfig, loadScoreHistory, mergeConfigWithDefaults, normalizeAnalysisResult, normalizeIssue, normalizeMetrics, normalizeSeverity, normalizeSpokeOutput, parseFileExports, predictAcceptanceRate, prepareActionConfig, printTerminalHeader, readFileContent, resolveOutputFormat, resolveOutputPath, runBatchAnalysis, runStandardCliAction, saveScoreEntry, scanEntries, scanFiles, setupParser, severityToAnnotationLevel, toErrorMessage, validateSpokeOutput, validateWithSchema, withErrorHandling, wrapInCard };
2200
+ export { AIReadyConfig, AWS_CONSTANTS, AcceptancePrediction, type AgentGroundingScore, type AiSignalClarity, type AiSignalClaritySignal, AnalysisResult, type AwsRegion, type CLIOptions, CSharpParser, type ChangeAmplificationScore, type CodeBlock, type CognitiveLoad, ComprehensionDifficulty, type ConceptCohesion, type ConfigProvider, CostConfig, DEFAULT_COST_CONFIG, DEFAULT_EXCLUDE, DIContainer, DI_TOKENS, type DependencyHealthScore, type DocDriftRisk, ExportInfo, ExportWithImports, type Factory, FileImport, type FileSystem, type FileTestability, type FileWithDomain, GoParser, type HtmlReportSection, Issue, type JSONOutputParams, JavaParser, type KnowledgeConcentrationRisk, Language, LanguageParser, type LoadFactor, type Logger, MODEL_PRICING_PRESETS, Metrics, ModelContextTier, type ModelPricingPreset, NamingConvention, ParseResult, ParserFactory, type PatternEntropy, ProductivityImpact, type ProviderFactoryConfig, PythonParser, type ReportOptions, SEVERITY_TIME_ESTIMATES, ScanOptions, type ScoreHistoryEntry, type ScoreTrend, type SemanticDistance, Severity, Severity as SeverityType, SpokeOutput, type StandardReportData, type StandardScoringParams, type StatCard, TEST_PATTERNS, type TableConfig, type TechnicalDebtInterest, TechnicalValueChain, TechnicalValueChainSummary, type TestabilityIndex, type Token, TokenBudget, ToolName, ToolOptions, type ToolProvider, ToolRegistry, ToolScoringOutput, TypeScriptParser, VAGUE_FILE_NAMES, buildFactorsFromDimensions, buildSimpleProviderScore, buildSpokeOutput, buildStandardToolScore, calculateAgentGrounding, calculateAiSignalClarity, calculateBusinessROI, calculateChangeAmplification, calculateCognitiveLoad, calculateComprehensionDifficulty, calculateConceptCohesion, calculateDebtInterest, calculateDependencyHealth, calculateDetailedTokenROI, calculateDocDrift, calculateExtendedFutureProofScore, calculateFutureProofScore, calculateHeuristicConfidence, calculateImportSimilarity, calculateKnowledgeConcentration, calculateMonthlyCost, calculatePatternEntropy, calculateProductivityImpact, calculateSemanticDistance, calculateStringSimilarity, calculateTechnicalValueChain, calculateTestabilityIndex, calculateTokenBudget, clearHistory, createErrorResponse, createProvider, createStandardCommand, createStandardProgressCallback, defaultImplementations, detectTestFramework, displayStandardConsoleReport, emitAnnotation, emitIssuesAsAnnotations, emitProgress, ensureDir, estimateCostFromBudget, estimateTokens, executeSpokeCli, exportHistory, extractCodeBlocks, filterBySeverity, findLatestReport, findLatestScanReport, formatAcceptanceRate, formatCost, formatHours, formatStandardCliResult, formatStandardReport, generateCompleteReport, generateIssueSummary, generateReportFooter, generateReportHead, generateReportHero, generateStandardHtmlReport, generateStatCards, generateTable, generateValueChain, getElapsedTime, getErrorMessage, getFileCommitTimestamps, getFileExtension, getFilesByPattern, getHistorySummary, getLineRangeLastModifiedCached, getModelPreset, getParser, getRepoMetadata, getReportTimestamp, getSafetyIcon, getScoreBar, getScoreColor, getSeverityBadge, getSeverityColor, getSeverityEnum, getSeverityLabel, getSeverityLevel, getSeverityValue, getSupportedLanguages, getTerminalDivider, getWasmPath, globalContainer, groupIssuesByFile, handleCLIError, handleJSONOutput, handleStandardJSONOutput, inferPatternType, initTreeSitter, initializeParsers, isBuildArtifact, isFileSupported, isIgnorableSourceFile, isSourceFile, isTestFile, loadConfig, loadMergedConfig, loadScoreHistory, mergeConfigWithDefaults, normalizeAnalysisResult, normalizeIssue, normalizeMetrics, normalizeSeverity, normalizeSpokeOutput, parseFileExports, predictAcceptanceRate, prepareActionConfig, printTerminalHeader, readFileContent, resolveOutputFormat, resolveOutputPath, runBatchAnalysis, runStandardCliAction, saveScoreEntry, scanEntries, scanFiles, setupParser, severityToAnnotationLevel, toErrorMessage, validateSpokeOutput, validateWithSchema, withErrorHandling, wrapInCard };
package/dist/index.js CHANGED
@@ -358,14 +358,14 @@ var init_typescript_parser = __esm({
358
358
  const sn = node.type === "ExportNamedDeclaration" && node.declaration ? node.declaration : node.type === "ExportDefaultDeclaration" ? node.declaration : node;
359
359
  if (!sn) return false;
360
360
  if (sn.type === "VariableDeclaration" && sn.kind === "const") return true;
361
- if (sn.type === "FunctionDeclaration" || sn.type === "MethodDefinition") {
361
+ if (sn.type === "FunctionDeclaration" || sn.type === "TSDeclareFunction" || sn.type === "MethodDefinition") {
362
362
  const body = sn.type === "MethodDefinition" ? sn.value.body : sn.body;
363
363
  if (body && body.type === "BlockStatement") {
364
364
  const bodyContent = JSON.stringify(
365
365
  body,
366
366
  (_, v) => typeof v === "bigint" ? v.toString() : v
367
367
  );
368
- if (bodyContent.includes('"name":"console"') || bodyContent.includes('"name":"process"') || bodyContent.includes('"name":"fs"') || bodyContent.includes('"name":"fetch"') || bodyContent.includes('"name":"axios"')) {
368
+ if (bodyContent.includes('"name":"console"') || bodyContent.includes('"name":"process"') || bodyContent.includes('"name":"fs"') || bodyContent.includes('"name":"global"') || bodyContent.includes('"name":"window"') || bodyContent.includes('"name":"fetch"') || bodyContent.includes('"name":"axios"')) {
369
369
  return false;
370
370
  }
371
371
  return true;
@@ -2027,6 +2027,7 @@ var init_go_parser = __esm({
2027
2027
  var index_exports = {};
2028
2028
  __export(index_exports, {
2029
2029
  AIReadyConfigSchema: () => AIReadyConfigSchema,
2030
+ AWS_CONSTANTS: () => AWS_CONSTANTS,
2030
2031
  AnalysisResultSchema: () => AnalysisResultSchema,
2031
2032
  AnalysisStatus: () => AnalysisStatus,
2032
2033
  AnalysisStatusSchema: () => AnalysisStatusSchema,
@@ -2535,6 +2536,37 @@ var COMMON_FINE_TUNING_OPTIONS = [
2535
2536
  "showBreakdown"
2536
2537
  ];
2537
2538
 
2539
+ // src/constants/aws.ts
2540
+ var AWS_CONSTANTS = {
2541
+ REGIONS: {
2542
+ DEFAULT: "ap-southeast-2"
2543
+ },
2544
+ IAM: {
2545
+ ROLES: {
2546
+ ORG_ACCESS: "OrganizationAccountAccessRole",
2547
+ GITHUB_ACTIONS: "ClawMore-GitHub-Actions-Role"
2548
+ },
2549
+ POLICIES: {
2550
+ VERSION: "2012-10-17",
2551
+ DEPLOY_NAME: "ClawMore-Serverless-Deploy-Policy"
2552
+ },
2553
+ ACTIONS: {
2554
+ ASSUME_ROLE: "sts:AssumeRole",
2555
+ ASSUME_ROLE_WEB: "sts:AssumeRoleWithWebIdentity",
2556
+ GET_CALLER_IDENTITY: "sts:GetCallerIdentity"
2557
+ }
2558
+ },
2559
+ OIDC: {
2560
+ GITHUB_URL: "https://token.actions.githubusercontent.com",
2561
+ GITHUB_PROVIDER: "token.actions.githubusercontent.com",
2562
+ AUDIENCE: "sts.amazonaws.com",
2563
+ THUMBPRINTS: [
2564
+ "6938fd4d98bab03faadb97b34396831e3780aea1",
2565
+ "1c58a3a8518e8759bf075b76b750d4f2df264fcd"
2566
+ ]
2567
+ }
2568
+ };
2569
+
2538
2570
  // src/index.ts
2539
2571
  init_language();
2540
2572
 
@@ -6891,6 +6923,7 @@ async function withErrorHandling(operation, context) {
6891
6923
  // Annotate the CommonJS export names for ESM import in node:
6892
6924
  0 && (module.exports = {
6893
6925
  AIReadyConfigSchema,
6926
+ AWS_CONSTANTS,
6894
6927
  AnalysisResultSchema,
6895
6928
  AnalysisStatus,
6896
6929
  AnalysisStatusSchema,
package/dist/index.mjs CHANGED
@@ -52,10 +52,10 @@ import {
52
52
  getToolWeight,
53
53
  normalizeToolName,
54
54
  parseWeightString
55
- } from "./chunk-3NEZ5M7Y.mjs";
55
+ } from "./chunk-BE52N7T2.mjs";
56
56
  import {
57
57
  TypeScriptParser
58
- } from "./chunk-MOM3IXCA.mjs";
58
+ } from "./chunk-WPFXQH5F.mjs";
59
59
  import {
60
60
  PythonParser
61
61
  } from "./chunk-QY5YG2AZ.mjs";
@@ -78,7 +78,38 @@ import {
78
78
  LANGUAGE_EXTENSIONS,
79
79
  Language,
80
80
  ParseError
81
- } from "./chunk-U3IY2CFC.mjs";
81
+ } from "./chunk-YQATXOKD.mjs";
82
+
83
+ // src/constants/aws.ts
84
+ var AWS_CONSTANTS = {
85
+ REGIONS: {
86
+ DEFAULT: "ap-southeast-2"
87
+ },
88
+ IAM: {
89
+ ROLES: {
90
+ ORG_ACCESS: "OrganizationAccountAccessRole",
91
+ GITHUB_ACTIONS: "ClawMore-GitHub-Actions-Role"
92
+ },
93
+ POLICIES: {
94
+ VERSION: "2012-10-17",
95
+ DEPLOY_NAME: "ClawMore-Serverless-Deploy-Policy"
96
+ },
97
+ ACTIONS: {
98
+ ASSUME_ROLE: "sts:AssumeRole",
99
+ ASSUME_ROLE_WEB: "sts:AssumeRoleWithWebIdentity",
100
+ GET_CALLER_IDENTITY: "sts:GetCallerIdentity"
101
+ }
102
+ },
103
+ OIDC: {
104
+ GITHUB_URL: "https://token.actions.githubusercontent.com",
105
+ GITHUB_PROVIDER: "token.actions.githubusercontent.com",
106
+ AUDIENCE: "sts.amazonaws.com",
107
+ THUMBPRINTS: [
108
+ "6938fd4d98bab03faadb97b34396831e3780aea1",
109
+ "1c58a3a8518e8759bf075b76b750d4f2df264fcd"
110
+ ]
111
+ }
112
+ };
82
113
 
83
114
  // src/utils/normalization.ts
84
115
  function normalizeIssue(raw) {
@@ -923,27 +954,27 @@ var ParserFactory = class _ParserFactory {
923
954
  Object.entries(LANGUAGE_EXTENSIONS).map(([ext, lang]) => [ext, lang])
924
955
  );
925
956
  this.registerLazyParser("typescript" /* TypeScript */, async () => {
926
- const { TypeScriptParser: TypeScriptParser2 } = await import("./typescript-parser-FOUPHVFI.mjs");
957
+ const { TypeScriptParser: TypeScriptParser2 } = await import("./typescript-parser-WALISXF4.mjs");
927
958
  return new TypeScriptParser2();
928
959
  });
929
960
  this.registerLazyParser("javascript" /* JavaScript */, async () => {
930
- const { TypeScriptParser: TypeScriptParser2 } = await import("./typescript-parser-FOUPHVFI.mjs");
961
+ const { TypeScriptParser: TypeScriptParser2 } = await import("./typescript-parser-WALISXF4.mjs");
931
962
  return new TypeScriptParser2();
932
963
  });
933
964
  this.registerLazyParser("python" /* Python */, async () => {
934
- const { PythonParser: PythonParser2 } = await import("./python-parser-BCI7JVLF.mjs");
965
+ const { PythonParser: PythonParser2 } = await import("./python-parser-7NCR7VCQ.mjs");
935
966
  return new PythonParser2();
936
967
  });
937
968
  this.registerLazyParser("java" /* Java */, async () => {
938
- const { JavaParser: JavaParser2 } = await import("./java-parser-EOKMGQ6B.mjs");
969
+ const { JavaParser: JavaParser2 } = await import("./java-parser-WGOXKULP.mjs");
939
970
  return new JavaParser2();
940
971
  });
941
972
  this.registerLazyParser("csharp" /* CSharp */, async () => {
942
- const { CSharpParser: CSharpParser2 } = await import("./csharp-parser-XW7WHE77.mjs");
973
+ const { CSharpParser: CSharpParser2 } = await import("./csharp-parser-JE5MWHQS.mjs");
943
974
  return new CSharpParser2();
944
975
  });
945
976
  this.registerLazyParser("go" /* Go */, async () => {
946
- const { GoParser: GoParser2 } = await import("./go-parser-KTG4CGF5.mjs");
977
+ const { GoParser: GoParser2 } = await import("./go-parser-T7PR6WJI.mjs");
947
978
  return new GoParser2();
948
979
  });
949
980
  }
@@ -3898,6 +3929,7 @@ async function withErrorHandling(operation, context) {
3898
3929
  }
3899
3930
  export {
3900
3931
  AIReadyConfigSchema,
3932
+ AWS_CONSTANTS,
3901
3933
  AnalysisResultSchema,
3902
3934
  AnalysisStatus,
3903
3935
  AnalysisStatusSchema,
@@ -1,9 +1,5 @@
1
- import {
2
- JavaParser
3
- } from "./chunk-6T5O7OAY.mjs";
4
- import "./chunk-3D3I5K5W.mjs";
5
- import "./chunk-2N7ISIKE.mjs";
6
- import "./chunk-U3IY2CFC.mjs";
7
- export {
8
- JavaParser
9
- };
1
+ import { JavaParser } from './chunk-6T5O7OAY.mjs';
2
+ import './chunk-3D3I5K5W.mjs';
3
+ import './chunk-2N7ISIKE.mjs';
4
+ import './chunk-U3IY2CFC.mjs';
5
+ export { JavaParser };
@@ -0,0 +1,9 @@
1
+ import {
2
+ JavaParser
3
+ } from "./chunk-6T5O7OAY.mjs";
4
+ import "./chunk-3D3I5K5W.mjs";
5
+ import "./chunk-2N7ISIKE.mjs";
6
+ import "./chunk-YQATXOKD.mjs";
7
+ export {
8
+ JavaParser
9
+ };
@@ -0,0 +1,8 @@
1
+ import {
2
+ PythonParser
3
+ } from "./chunk-QY5YG2AZ.mjs";
4
+ import "./chunk-2N7ISIKE.mjs";
5
+ import "./chunk-YQATXOKD.mjs";
6
+ export {
7
+ PythonParser
8
+ };
@@ -1,8 +1,4 @@
1
- import {
2
- PythonParser
3
- } from "./chunk-QY5YG2AZ.mjs";
4
- import "./chunk-2N7ISIKE.mjs";
5
- import "./chunk-U3IY2CFC.mjs";
6
- export {
7
- PythonParser
8
- };
1
+ import { PythonParser } from './chunk-QY5YG2AZ.mjs';
2
+ import './chunk-2N7ISIKE.mjs';
3
+ import './chunk-U3IY2CFC.mjs';
4
+ export { PythonParser };
@@ -0,0 +1,3 @@
1
+ import { TypeScriptParser } from './chunk-WUDUSXUE.mjs';
2
+ import './chunk-U3IY2CFC.mjs';
3
+ export { TypeScriptParser };
@@ -1,7 +1,3 @@
1
- import {
2
- TypeScriptParser
3
- } from "./chunk-5IVDH26E.mjs";
4
- import "./chunk-U3IY2CFC.mjs";
5
- export {
6
- TypeScriptParser
7
- };
1
+ import { TypeScriptParser } from './chunk-5IVDH26E.mjs';
2
+ import './chunk-U3IY2CFC.mjs';
3
+ export { TypeScriptParser };
@@ -1,7 +1,3 @@
1
- import {
2
- TypeScriptParser
3
- } from "./chunk-MOM3IXCA.mjs";
4
- import "./chunk-U3IY2CFC.mjs";
5
- export {
6
- TypeScriptParser
7
- };
1
+ import { TypeScriptParser } from './chunk-MOM3IXCA.mjs';
2
+ import './chunk-U3IY2CFC.mjs';
3
+ export { TypeScriptParser };
@@ -0,0 +1,7 @@
1
+ import {
2
+ TypeScriptParser
3
+ } from "./chunk-OVWWYI75.mjs";
4
+ import "./chunk-YQATXOKD.mjs";
5
+ export {
6
+ TypeScriptParser
7
+ };
@@ -1,7 +1,3 @@
1
- import {
2
- TypeScriptParser
3
- } from "./chunk-OT6FOHL4.mjs";
4
- import "./chunk-U3IY2CFC.mjs";
5
- export {
6
- TypeScriptParser
7
- };
1
+ import { TypeScriptParser } from './chunk-OT6FOHL4.mjs';
2
+ import './chunk-U3IY2CFC.mjs';
3
+ export { TypeScriptParser };
@@ -0,0 +1,7 @@
1
+ import {
2
+ TypeScriptParser
3
+ } from "./chunk-WPFXQH5F.mjs";
4
+ import "./chunk-YQATXOKD.mjs";
5
+ export {
6
+ TypeScriptParser
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/core",
3
- "version": "0.24.19",
3
+ "version": "0.24.20",
4
4
  "description": "Shared utilities for AIReady analysis tools",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -39,28 +39,29 @@
39
39
  "CONTRIBUTING.md"
40
40
  ],
41
41
  "devDependencies": {
42
- "eslint": "^10.0.0",
43
- "tsup": "^8.3.5"
42
+ "eslint": "^10.2.0",
43
+ "tsup": "^8.5.1"
44
44
  },
45
45
  "dependencies": {
46
- "@typescript-eslint/parser": "^8.53.0",
47
- "@typescript-eslint/typescript-estree": "^8.53.0",
46
+ "@typescript-eslint/parser": "^8.58.0",
47
+ "@typescript-eslint/typescript-estree": "^8.58.0",
48
48
  "@unit-mesh/treesitter-artifacts": "^1.7.7",
49
- "chalk": "^5.4.1",
49
+ "chalk": "^5.6.2",
50
50
  "commander": "^14.0.3",
51
- "glob": "^13.0.0",
52
- "ignore": "^7.0.0",
51
+ "glob": "^13.0.6",
52
+ "ignore": "^7.0.5",
53
53
  "tree-sitter-java": "^0.23.5",
54
54
  "tree-sitter-python": "^0.25.0",
55
55
  "tree-sitter-wasms": "^0.1.13",
56
- "typescript": "^5.9.3",
57
- "web-tree-sitter": "^0.26.6",
56
+ "typescript": "^6.0.2",
57
+ "web-tree-sitter": "^0.26.8",
58
58
  "zod": "^4.3.6"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "tsup src/index.ts src/client/index.ts --format cjs,esm --dts",
62
62
  "dev": "tsup src/index.ts src/client/index.ts --format cjs,esm --watch",
63
63
  "test": "vitest run --hookTimeout=30000",
64
+ "test:coverage": "vitest run --coverage",
64
65
  "lint": "eslint src",
65
66
  "clean": "rm -rf dist",
66
67
  "release": "pnpm build && pnpm publish --no-git-checks",