@aiready/core 0.23.19 → 0.23.21
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/chunk-2N7ISIKE.mjs +158 -0
- package/dist/chunk-ARUIZO7M.mjs +297 -0
- package/dist/chunk-CYC5EGEI.mjs +297 -0
- package/dist/{chunk-ZB3EHHAG.mjs → chunk-DBOPSRBC.mjs} +88 -26
- package/dist/chunk-EZ7ECLAZ.mjs +299 -0
- package/dist/chunk-FNPULWG7.mjs +248 -0
- package/dist/chunk-FZTFKZUQ.mjs +250 -0
- package/dist/chunk-GTS642BQ.mjs +262 -0
- package/dist/chunk-IXPY5J4K.mjs +248 -0
- package/dist/chunk-JJQLYW6Z.mjs +111 -0
- package/dist/chunk-L6BKANJC.mjs +130 -0
- package/dist/chunk-LXEO5PG3.mjs +292 -0
- package/dist/chunk-LZHO636W.mjs +501 -0
- package/dist/chunk-MTK2IIDZ.mjs +262 -0
- package/dist/chunk-QDCQETSI.mjs +262 -0
- package/dist/chunk-QZNY7B2N.mjs +248 -0
- package/dist/chunk-RCZSMGCX.mjs +250 -0
- package/dist/chunk-SWZOT67M.mjs +250 -0
- package/dist/chunk-U3IY2CFC.mjs +36 -0
- package/dist/chunk-UBCM5Y6R.mjs +275 -0
- package/dist/chunk-UTCRW3N7.mjs +301 -0
- package/dist/{chunk-RMH2TPAT.mjs → chunk-UYLH35LA.mjs} +88 -26
- package/dist/{chunk-TJXR2CHZ.mjs → chunk-WVNVC2PP.mjs} +266 -213
- package/dist/chunk-WYOW6O3P.mjs +114 -0
- package/dist/{chunk-CGOS2J6T.mjs → chunk-YRSSR4KN.mjs} +260 -217
- package/dist/client-2xbeKnrg.d.mts +1291 -0
- package/dist/client-2xbeKnrg.d.ts +1291 -0
- package/dist/client-4HLAGzFg.d.mts +1291 -0
- package/dist/client-4HLAGzFg.d.ts +1291 -0
- package/dist/client-B4TQwNa7.d.mts +1290 -0
- package/dist/client-B4TQwNa7.d.ts +1290 -0
- package/dist/client-Bdi4ty0v.d.mts +1294 -0
- package/dist/client-Bdi4ty0v.d.ts +1294 -0
- package/dist/client-BsKpUH3H.d.mts +1339 -0
- package/dist/client-BsKpUH3H.d.ts +1339 -0
- package/dist/client-Bv1zOaWF.d.mts +1291 -0
- package/dist/client-Bv1zOaWF.d.ts +1291 -0
- package/dist/client-Bz9YJMIX.d.mts +1290 -0
- package/dist/client-Bz9YJMIX.d.ts +1290 -0
- package/dist/client-CBpzm34X.d.mts +1291 -0
- package/dist/client-CBpzm34X.d.ts +1291 -0
- package/dist/client-CNu_tCZZ.d.mts +1305 -0
- package/dist/client-CNu_tCZZ.d.ts +1305 -0
- package/dist/client-CmEvxxQu.d.mts +1339 -0
- package/dist/client-CmEvxxQu.d.ts +1339 -0
- package/dist/client-DGMAxkZc.d.mts +1339 -0
- package/dist/client-DGMAxkZc.d.ts +1339 -0
- package/dist/client-DZq-CqcD.d.mts +1292 -0
- package/dist/client-DZq-CqcD.d.ts +1292 -0
- package/dist/{client-WVCAIWdJ.d.mts → client-DcqGfDTt.d.mts} +318 -226
- package/dist/{client-WVCAIWdJ.d.ts → client-DcqGfDTt.d.ts} +318 -226
- package/dist/{client-DLvFR2qA.d.mts → client-O8RvSRm0.d.mts} +89 -25
- package/dist/{client-DLvFR2qA.d.ts → client-O8RvSRm0.d.ts} +89 -25
- package/dist/client.d.mts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +53 -27
- package/dist/client.mjs +6 -6
- package/dist/csharp-parser-4ZKCSX5B.mjs +9 -0
- package/dist/csharp-parser-5HKICCRR.mjs +9 -0
- package/dist/csharp-parser-JCKXIAJW.mjs +9 -0
- package/dist/go-parser-J4KIH4RG.mjs +9 -0
- package/dist/go-parser-TKXL3DVH.mjs +9 -0
- package/dist/go-parser-XOM232XZ.mjs +9 -0
- package/dist/index.d.mts +332 -54
- package/dist/index.d.ts +332 -54
- package/dist/index.js +3930 -3064
- package/dist/index.mjs +933 -2036
- package/dist/java-parser-3KHXOXRQ.mjs +9 -0
- package/dist/java-parser-MASGS4WB.mjs +9 -0
- package/dist/java-parser-T5LXD63J.mjs +9 -0
- package/dist/python-parser-FNFK2473.mjs +8 -0
- package/dist/typescript-parser-2GGNRNB5.mjs +7 -0
- package/dist/typescript-parser-3ENJ6C7H.mjs +7 -0
- package/dist/typescript-parser-4GI7DPSW.mjs +7 -0
- package/dist/typescript-parser-4H3HUBO4.mjs +7 -0
- package/dist/typescript-parser-K63IVZMF.mjs +7 -0
- package/dist/typescript-parser-ZJKROMQG.mjs +7 -0
- package/package.json +1 -1
- package/dist/chunk-5SHLHMH7.mjs +0 -760
- package/dist/chunk-Q55AMEFV.mjs +0 -760
- package/dist/client-BEoUYNLp.d.mts +0 -1191
- package/dist/client-BEoUYNLp.d.ts +0 -1191
- package/dist/client-BrIMPk89.d.mts +0 -1214
- package/dist/client-BrIMPk89.d.ts +0 -1214
- package/dist/client-C5BuGX4F.d.mts +0 -1205
- package/dist/client-C5BuGX4F.d.ts +0 -1205
- package/dist/client-CKcjnPXt.d.mts +0 -1214
- package/dist/client-CKcjnPXt.d.ts +0 -1214
- package/dist/client-CLulBnie.d.mts +0 -1182
- package/dist/client-CLulBnie.d.ts +0 -1182
- package/dist/client-CQwvp8ep.d.mts +0 -1182
- package/dist/client-CQwvp8ep.d.ts +0 -1182
- package/dist/client-PFPdeo-z.d.mts +0 -1186
- package/dist/client-PFPdeo-z.d.ts +0 -1186
- package/dist/client-wk2fgk1q.d.mts +0 -1184
- package/dist/client-wk2fgk1q.d.ts +0 -1184
|
@@ -64,8 +64,30 @@ interface TokenBudget {
|
|
|
64
64
|
/**
|
|
65
65
|
* Shared types for graph-based visualizations
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Base graph node compatible with d3-force simulation
|
|
69
|
+
*/
|
|
70
|
+
interface BaseGraphNode {
|
|
68
71
|
id: string;
|
|
72
|
+
x?: number;
|
|
73
|
+
y?: number;
|
|
74
|
+
vx?: number;
|
|
75
|
+
vy?: number;
|
|
76
|
+
fx?: number | null;
|
|
77
|
+
fy?: number | null;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Base graph link compatible with d3-force simulation
|
|
81
|
+
*/
|
|
82
|
+
interface BaseGraphLink {
|
|
83
|
+
source: string | BaseGraphNode;
|
|
84
|
+
target: string | BaseGraphNode;
|
|
85
|
+
index?: number;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Full graph node with all metadata
|
|
89
|
+
*/
|
|
90
|
+
interface GraphNode extends BaseGraphNode {
|
|
69
91
|
label: string;
|
|
70
92
|
path?: string;
|
|
71
93
|
size?: number;
|
|
@@ -73,8 +95,6 @@ interface GraphNode {
|
|
|
73
95
|
color?: string;
|
|
74
96
|
group?: string;
|
|
75
97
|
title?: string;
|
|
76
|
-
x?: number;
|
|
77
|
-
y?: number;
|
|
78
98
|
duplicates?: number;
|
|
79
99
|
tokenCost?: number;
|
|
80
100
|
severity?: string;
|
|
@@ -939,14 +959,9 @@ interface ParseStatistics {
|
|
|
939
959
|
}
|
|
940
960
|
|
|
941
961
|
/**
|
|
942
|
-
*
|
|
943
|
-
*
|
|
962
|
+
* Shared rating helper functions for scoring and display.
|
|
963
|
+
* Extracted to eliminate duplication between scoring.ts and CLI output modules.
|
|
944
964
|
*/
|
|
945
|
-
declare enum RecommendationPriority {
|
|
946
|
-
High = "high",
|
|
947
|
-
Medium = "medium",
|
|
948
|
-
Low = "low"
|
|
949
|
-
}
|
|
950
965
|
/**
|
|
951
966
|
* AI Readiness Rating categories.
|
|
952
967
|
* Provides a high-level qualitative assessment based on the numeric score.
|
|
@@ -958,6 +973,69 @@ declare enum ReadinessRating {
|
|
|
958
973
|
NeedsWork = "Needs Work",
|
|
959
974
|
Critical = "Critical"
|
|
960
975
|
}
|
|
976
|
+
/**
|
|
977
|
+
* Metadata for a given score range.
|
|
978
|
+
*/
|
|
979
|
+
interface RatingMetadata {
|
|
980
|
+
label: string;
|
|
981
|
+
slug: string;
|
|
982
|
+
emoji: string;
|
|
983
|
+
rating: ReadinessRating;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Get all metadata for a specific score.
|
|
987
|
+
* Unified to remove structural duplication.
|
|
988
|
+
*
|
|
989
|
+
* @param score The numerical AI readiness score (0-100)
|
|
990
|
+
* @returns Metadata object including label, slug, emoji, and rating category
|
|
991
|
+
*/
|
|
992
|
+
declare function getRatingMetadata(score: number): RatingMetadata;
|
|
993
|
+
/**
|
|
994
|
+
* Get rating label from score
|
|
995
|
+
* @param score The numerical AI readiness score (0-100)
|
|
996
|
+
* @returns Human-readable rating label
|
|
997
|
+
*/
|
|
998
|
+
declare function getRatingLabel(score: number): string;
|
|
999
|
+
/**
|
|
1000
|
+
* Get rating slug from score (URL-friendly)
|
|
1001
|
+
* @param score The numerical score
|
|
1002
|
+
* @returns A kebab-case string (e.g., 'excellent', 'needs-work')
|
|
1003
|
+
*/
|
|
1004
|
+
declare function getRatingSlug(score: number): string;
|
|
1005
|
+
/**
|
|
1006
|
+
* Get rating emoji from score
|
|
1007
|
+
* @param score The numerical score
|
|
1008
|
+
* @returns Emoji string for display
|
|
1009
|
+
*/
|
|
1010
|
+
declare function getRatingEmoji(score: number): string;
|
|
1011
|
+
/**
|
|
1012
|
+
* Get tool emoji from score (alias for getRatingEmoji)
|
|
1013
|
+
* @param score The numerical score
|
|
1014
|
+
* @returns Emoji string for display
|
|
1015
|
+
*/
|
|
1016
|
+
declare function getToolEmoji(score: number): string;
|
|
1017
|
+
/**
|
|
1018
|
+
* Get priority icon from priority level
|
|
1019
|
+
* @param priority Priority level string
|
|
1020
|
+
* @returns Emoji string for display
|
|
1021
|
+
*/
|
|
1022
|
+
declare function getPriorityIcon(priority: string): string;
|
|
1023
|
+
/**
|
|
1024
|
+
* Convert numeric score to ReadinessRating enum
|
|
1025
|
+
* @param score The numerical AI readiness score (0-100)
|
|
1026
|
+
* @returns The corresponding ReadinessRating category
|
|
1027
|
+
*/
|
|
1028
|
+
declare function getRating(score: number): ReadinessRating;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Priority levels for actionable recommendations.
|
|
1032
|
+
* Used to sort and display fixes for the user.
|
|
1033
|
+
*/
|
|
1034
|
+
declare enum RecommendationPriority {
|
|
1035
|
+
High = "high",
|
|
1036
|
+
Medium = "medium",
|
|
1037
|
+
Low = "low"
|
|
1038
|
+
}
|
|
961
1039
|
/**
|
|
962
1040
|
* Output structure for a single tool's scoring analysis.
|
|
963
1041
|
*/
|
|
@@ -1129,20 +1207,6 @@ declare function parseWeightString(weightStr?: string): Map<string, number>;
|
|
|
1129
1207
|
* @returns Consolidate ScoringResult including overall score and rating
|
|
1130
1208
|
*/
|
|
1131
1209
|
declare function calculateOverallScore(toolOutputs: Map<string, ToolScoringOutput>, config?: any, cliWeights?: Map<string, number>): ScoringResult;
|
|
1132
|
-
/**
|
|
1133
|
-
* Convert numeric score to qualitative rating category.
|
|
1134
|
-
*
|
|
1135
|
-
* @param score The numerical AI readiness score (0-100)
|
|
1136
|
-
* @returns The corresponding ReadinessRating category
|
|
1137
|
-
*/
|
|
1138
|
-
declare function getRating(score: number): ReadinessRating;
|
|
1139
|
-
/**
|
|
1140
|
-
* Get a URL-friendly slug representing the rating category.
|
|
1141
|
-
*
|
|
1142
|
-
* @param score The numerical score
|
|
1143
|
-
* @returns A kebab-case string (e.g., 'excellent', 'needs-work')
|
|
1144
|
-
*/
|
|
1145
|
-
declare function getRatingSlug(score: number): string;
|
|
1146
1210
|
/**
|
|
1147
1211
|
* Convert score to rating with project-size and model awareness.
|
|
1148
1212
|
*
|
|
@@ -1194,4 +1258,4 @@ declare function formatToolScore(output: ToolScoringOutput): string;
|
|
|
1194
1258
|
*/
|
|
1195
1259
|
declare function generateHTML(graph: GraphData): string;
|
|
1196
1260
|
|
|
1197
|
-
export { LeadSourceSchema as $, type AnalysisResult as A, type BusinessMetrics as B, type CostConfig as C, DEFAULT_TOOL_WEIGHTS as D, type ExportWithImports as E, type FileImport as F, GLOBAL_INFRA_OPTIONS as G, type GraphData as H, type Issue as I, type GraphEdge as J, type GraphIssueSeverity as K, type LanguageParser as L, type Metrics as M, type NamingConvention as N, type GraphMetadata as O, type ProductivityImpact as P, type GraphNode as Q, IssueSchema as R, type ScanOptions as S, ToolName as T, IssueType as U, IssueTypeSchema as V, LANGUAGE_EXTENSIONS as W, type LanguageConfig as X, type Lead as Y, LeadSchema as Z, LeadSource as _, type SpokeOutput as a, type LeadSubmission as a0, LeadSubmissionSchema as a1, type Location as a2, LocationSchema as a3, type ManagedAccount as a4, ManagedAccountSchema as a5, MetricsSchema as a6, ModelTier as a7, ModelTierSchema as a8, ParseError as a9,
|
|
1261
|
+
export { LeadSourceSchema as $, type AnalysisResult as A, type BusinessMetrics as B, type CostConfig as C, DEFAULT_TOOL_WEIGHTS as D, type ExportWithImports as E, type FileImport as F, GLOBAL_INFRA_OPTIONS as G, type GraphData as H, type Issue as I, type GraphEdge as J, type GraphIssueSeverity as K, type LanguageParser as L, type Metrics as M, type NamingConvention as N, type GraphMetadata as O, type ProductivityImpact as P, type GraphNode as Q, IssueSchema as R, type ScanOptions as S, ToolName as T, IssueType as U, IssueTypeSchema as V, LANGUAGE_EXTENSIONS as W, type LanguageConfig as X, type Lead as Y, LeadSchema as Z, LeadSource as _, type SpokeOutput as a, type LeadSubmission as a0, LeadSubmissionSchema as a1, type Location as a2, LocationSchema as a3, type ManagedAccount as a4, ManagedAccountSchema as a5, MetricsSchema as a6, ModelTier as a7, ModelTierSchema as a8, ParseError as a9, getRating as aA, getRatingDisplay as aB, getRatingEmoji as aC, getRatingLabel as aD, getRatingMetadata as aE, getRatingSlug as aF, getRatingWithContext as aG, getRecommendedThreshold as aH, getToolEmoji as aI, getToolWeight as aJ, normalizeToolName as aK, parseWeightString as aL, type BaseGraphLink as aM, type BaseGraphNode as aN, type ParseStatistics as aa, ReadinessRating as ab, RecommendationPriority as ac, SCORING_PROFILES as ad, SIZE_ADJUSTED_THRESHOLDS as ae, type ScanResult as af, type ScoringConfig as ag, ScoringProfile as ah, type ScoringResult as ai, SeveritySchema as aj, type SourceLocation as ak, type SourceRange as al, SpokeOutputSchema as am, type SpokeSummary as an, SpokeSummarySchema as ao, TOOL_NAME_MAP as ap, ToolNameSchema as aq, type ToolOutput as ar, type UnifiedReport as as, UnifiedReportSchema as at, calculateOverallScore as au, formatScore as av, formatToolScore as aw, generateHTML as ax, getPriorityIcon as ay, getProjectSizeTier as az, type ToolScoringOutput as b, type ToolOptions as c, Severity as d, type AIReadyConfig as e, type ModelContextTier as f, type TokenBudget as g, type AcceptancePrediction as h, type ComprehensionDifficulty as i, type TechnicalValueChainSummary as j, type TechnicalValueChain as k, Language as l, type ParseResult as m, type ExportInfo as n, AIReadyConfigSchema as o, type ASTNode as p, AnalysisResultSchema as q, AnalysisStatus as r, AnalysisStatusSchema as s, COMMON_FINE_TUNING_OPTIONS as t, CONTEXT_TIER_THRESHOLDS as u, type CommonASTNode as v, type Config as w, FRIENDLY_TOOL_NAMES as x, type FileContent as y, GLOBAL_SCAN_OPTIONS as z };
|
|
@@ -64,8 +64,30 @@ interface TokenBudget {
|
|
|
64
64
|
/**
|
|
65
65
|
* Shared types for graph-based visualizations
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Base graph node compatible with d3-force simulation
|
|
69
|
+
*/
|
|
70
|
+
interface BaseGraphNode {
|
|
68
71
|
id: string;
|
|
72
|
+
x?: number;
|
|
73
|
+
y?: number;
|
|
74
|
+
vx?: number;
|
|
75
|
+
vy?: number;
|
|
76
|
+
fx?: number | null;
|
|
77
|
+
fy?: number | null;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Base graph link compatible with d3-force simulation
|
|
81
|
+
*/
|
|
82
|
+
interface BaseGraphLink {
|
|
83
|
+
source: string | BaseGraphNode;
|
|
84
|
+
target: string | BaseGraphNode;
|
|
85
|
+
index?: number;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Full graph node with all metadata
|
|
89
|
+
*/
|
|
90
|
+
interface GraphNode extends BaseGraphNode {
|
|
69
91
|
label: string;
|
|
70
92
|
path?: string;
|
|
71
93
|
size?: number;
|
|
@@ -73,8 +95,6 @@ interface GraphNode {
|
|
|
73
95
|
color?: string;
|
|
74
96
|
group?: string;
|
|
75
97
|
title?: string;
|
|
76
|
-
x?: number;
|
|
77
|
-
y?: number;
|
|
78
98
|
duplicates?: number;
|
|
79
99
|
tokenCost?: number;
|
|
80
100
|
severity?: string;
|
|
@@ -939,14 +959,9 @@ interface ParseStatistics {
|
|
|
939
959
|
}
|
|
940
960
|
|
|
941
961
|
/**
|
|
942
|
-
*
|
|
943
|
-
*
|
|
962
|
+
* Shared rating helper functions for scoring and display.
|
|
963
|
+
* Extracted to eliminate duplication between scoring.ts and CLI output modules.
|
|
944
964
|
*/
|
|
945
|
-
declare enum RecommendationPriority {
|
|
946
|
-
High = "high",
|
|
947
|
-
Medium = "medium",
|
|
948
|
-
Low = "low"
|
|
949
|
-
}
|
|
950
965
|
/**
|
|
951
966
|
* AI Readiness Rating categories.
|
|
952
967
|
* Provides a high-level qualitative assessment based on the numeric score.
|
|
@@ -958,6 +973,69 @@ declare enum ReadinessRating {
|
|
|
958
973
|
NeedsWork = "Needs Work",
|
|
959
974
|
Critical = "Critical"
|
|
960
975
|
}
|
|
976
|
+
/**
|
|
977
|
+
* Metadata for a given score range.
|
|
978
|
+
*/
|
|
979
|
+
interface RatingMetadata {
|
|
980
|
+
label: string;
|
|
981
|
+
slug: string;
|
|
982
|
+
emoji: string;
|
|
983
|
+
rating: ReadinessRating;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Get all metadata for a specific score.
|
|
987
|
+
* Unified to remove structural duplication.
|
|
988
|
+
*
|
|
989
|
+
* @param score The numerical AI readiness score (0-100)
|
|
990
|
+
* @returns Metadata object including label, slug, emoji, and rating category
|
|
991
|
+
*/
|
|
992
|
+
declare function getRatingMetadata(score: number): RatingMetadata;
|
|
993
|
+
/**
|
|
994
|
+
* Get rating label from score
|
|
995
|
+
* @param score The numerical AI readiness score (0-100)
|
|
996
|
+
* @returns Human-readable rating label
|
|
997
|
+
*/
|
|
998
|
+
declare function getRatingLabel(score: number): string;
|
|
999
|
+
/**
|
|
1000
|
+
* Get rating slug from score (URL-friendly)
|
|
1001
|
+
* @param score The numerical score
|
|
1002
|
+
* @returns A kebab-case string (e.g., 'excellent', 'needs-work')
|
|
1003
|
+
*/
|
|
1004
|
+
declare function getRatingSlug(score: number): string;
|
|
1005
|
+
/**
|
|
1006
|
+
* Get rating emoji from score
|
|
1007
|
+
* @param score The numerical score
|
|
1008
|
+
* @returns Emoji string for display
|
|
1009
|
+
*/
|
|
1010
|
+
declare function getRatingEmoji(score: number): string;
|
|
1011
|
+
/**
|
|
1012
|
+
* Get tool emoji from score (alias for getRatingEmoji)
|
|
1013
|
+
* @param score The numerical score
|
|
1014
|
+
* @returns Emoji string for display
|
|
1015
|
+
*/
|
|
1016
|
+
declare function getToolEmoji(score: number): string;
|
|
1017
|
+
/**
|
|
1018
|
+
* Get priority icon from priority level
|
|
1019
|
+
* @param priority Priority level string
|
|
1020
|
+
* @returns Emoji string for display
|
|
1021
|
+
*/
|
|
1022
|
+
declare function getPriorityIcon(priority: string): string;
|
|
1023
|
+
/**
|
|
1024
|
+
* Convert numeric score to ReadinessRating enum
|
|
1025
|
+
* @param score The numerical AI readiness score (0-100)
|
|
1026
|
+
* @returns The corresponding ReadinessRating category
|
|
1027
|
+
*/
|
|
1028
|
+
declare function getRating(score: number): ReadinessRating;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Priority levels for actionable recommendations.
|
|
1032
|
+
* Used to sort and display fixes for the user.
|
|
1033
|
+
*/
|
|
1034
|
+
declare enum RecommendationPriority {
|
|
1035
|
+
High = "high",
|
|
1036
|
+
Medium = "medium",
|
|
1037
|
+
Low = "low"
|
|
1038
|
+
}
|
|
961
1039
|
/**
|
|
962
1040
|
* Output structure for a single tool's scoring analysis.
|
|
963
1041
|
*/
|
|
@@ -1129,20 +1207,6 @@ declare function parseWeightString(weightStr?: string): Map<string, number>;
|
|
|
1129
1207
|
* @returns Consolidate ScoringResult including overall score and rating
|
|
1130
1208
|
*/
|
|
1131
1209
|
declare function calculateOverallScore(toolOutputs: Map<string, ToolScoringOutput>, config?: any, cliWeights?: Map<string, number>): ScoringResult;
|
|
1132
|
-
/**
|
|
1133
|
-
* Convert numeric score to qualitative rating category.
|
|
1134
|
-
*
|
|
1135
|
-
* @param score The numerical AI readiness score (0-100)
|
|
1136
|
-
* @returns The corresponding ReadinessRating category
|
|
1137
|
-
*/
|
|
1138
|
-
declare function getRating(score: number): ReadinessRating;
|
|
1139
|
-
/**
|
|
1140
|
-
* Get a URL-friendly slug representing the rating category.
|
|
1141
|
-
*
|
|
1142
|
-
* @param score The numerical score
|
|
1143
|
-
* @returns A kebab-case string (e.g., 'excellent', 'needs-work')
|
|
1144
|
-
*/
|
|
1145
|
-
declare function getRatingSlug(score: number): string;
|
|
1146
1210
|
/**
|
|
1147
1211
|
* Convert score to rating with project-size and model awareness.
|
|
1148
1212
|
*
|
|
@@ -1194,4 +1258,4 @@ declare function formatToolScore(output: ToolScoringOutput): string;
|
|
|
1194
1258
|
*/
|
|
1195
1259
|
declare function generateHTML(graph: GraphData): string;
|
|
1196
1260
|
|
|
1197
|
-
export { LeadSourceSchema as $, type AnalysisResult as A, type BusinessMetrics as B, type CostConfig as C, DEFAULT_TOOL_WEIGHTS as D, type ExportWithImports as E, type FileImport as F, GLOBAL_INFRA_OPTIONS as G, type GraphData as H, type Issue as I, type GraphEdge as J, type GraphIssueSeverity as K, type LanguageParser as L, type Metrics as M, type NamingConvention as N, type GraphMetadata as O, type ProductivityImpact as P, type GraphNode as Q, IssueSchema as R, type ScanOptions as S, ToolName as T, IssueType as U, IssueTypeSchema as V, LANGUAGE_EXTENSIONS as W, type LanguageConfig as X, type Lead as Y, LeadSchema as Z, LeadSource as _, type SpokeOutput as a, type LeadSubmission as a0, LeadSubmissionSchema as a1, type Location as a2, LocationSchema as a3, type ManagedAccount as a4, ManagedAccountSchema as a5, MetricsSchema as a6, ModelTier as a7, ModelTierSchema as a8, ParseError as a9,
|
|
1261
|
+
export { LeadSourceSchema as $, type AnalysisResult as A, type BusinessMetrics as B, type CostConfig as C, DEFAULT_TOOL_WEIGHTS as D, type ExportWithImports as E, type FileImport as F, GLOBAL_INFRA_OPTIONS as G, type GraphData as H, type Issue as I, type GraphEdge as J, type GraphIssueSeverity as K, type LanguageParser as L, type Metrics as M, type NamingConvention as N, type GraphMetadata as O, type ProductivityImpact as P, type GraphNode as Q, IssueSchema as R, type ScanOptions as S, ToolName as T, IssueType as U, IssueTypeSchema as V, LANGUAGE_EXTENSIONS as W, type LanguageConfig as X, type Lead as Y, LeadSchema as Z, LeadSource as _, type SpokeOutput as a, type LeadSubmission as a0, LeadSubmissionSchema as a1, type Location as a2, LocationSchema as a3, type ManagedAccount as a4, ManagedAccountSchema as a5, MetricsSchema as a6, ModelTier as a7, ModelTierSchema as a8, ParseError as a9, getRating as aA, getRatingDisplay as aB, getRatingEmoji as aC, getRatingLabel as aD, getRatingMetadata as aE, getRatingSlug as aF, getRatingWithContext as aG, getRecommendedThreshold as aH, getToolEmoji as aI, getToolWeight as aJ, normalizeToolName as aK, parseWeightString as aL, type BaseGraphLink as aM, type BaseGraphNode as aN, type ParseStatistics as aa, ReadinessRating as ab, RecommendationPriority as ac, SCORING_PROFILES as ad, SIZE_ADJUSTED_THRESHOLDS as ae, type ScanResult as af, type ScoringConfig as ag, ScoringProfile as ah, type ScoringResult as ai, SeveritySchema as aj, type SourceLocation as ak, type SourceRange as al, SpokeOutputSchema as am, type SpokeSummary as an, SpokeSummarySchema as ao, TOOL_NAME_MAP as ap, ToolNameSchema as aq, type ToolOutput as ar, type UnifiedReport as as, UnifiedReportSchema as at, calculateOverallScore as au, formatScore as av, formatToolScore as aw, generateHTML as ax, getPriorityIcon as ay, getProjectSizeTier as az, type ToolScoringOutput as b, type ToolOptions as c, Severity as d, type AIReadyConfig as e, type ModelContextTier as f, type TokenBudget as g, type AcceptancePrediction as h, type ComprehensionDifficulty as i, type TechnicalValueChainSummary as j, type TechnicalValueChain as k, Language as l, type ParseResult as m, type ExportInfo as n, AIReadyConfigSchema as o, type ASTNode as p, AnalysisResultSchema as q, AnalysisStatus as r, AnalysisStatusSchema as s, COMMON_FINE_TUNING_OPTIONS as t, CONTEXT_TIER_THRESHOLDS as u, type CommonASTNode as v, type Config as w, FRIENDLY_TOOL_NAMES as x, type FileContent as y, GLOBAL_SCAN_OPTIONS as z };
|
package/dist/client.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as AIReadyConfig, o as AIReadyConfigSchema, h as AcceptancePrediction, A as AnalysisResult, q as AnalysisResultSchema, r as AnalysisStatus, s as AnalysisStatusSchema, B as BusinessMetrics, t as COMMON_FINE_TUNING_OPTIONS, u as CONTEXT_TIER_THRESHOLDS, v as CommonASTNode, i as ComprehensionDifficulty, w as Config, C as CostConfig, D as DEFAULT_TOOL_WEIGHTS, n as ExportInfo, x as FRIENDLY_TOOL_NAMES, y as FileContent, G as GLOBAL_INFRA_OPTIONS, z as GLOBAL_SCAN_OPTIONS, H as GraphData, J as GraphEdge, K as GraphIssueSeverity, O as GraphMetadata, Q as GraphNode, I as Issue, R as
|
|
1
|
+
export { e as AIReadyConfig, o as AIReadyConfigSchema, h as AcceptancePrediction, A as AnalysisResult, q as AnalysisResultSchema, r as AnalysisStatus, s as AnalysisStatusSchema, aN as BaseGraphLink, aO as BaseGraphNode, B as BusinessMetrics, t as COMMON_FINE_TUNING_OPTIONS, u as CONTEXT_TIER_THRESHOLDS, v as CommonASTNode, i as ComprehensionDifficulty, w as Config, C as CostConfig, D as DEFAULT_TOOL_WEIGHTS, n as ExportInfo, x as FRIENDLY_TOOL_NAMES, y as FileContent, G as GLOBAL_INFRA_OPTIONS, z as GLOBAL_SCAN_OPTIONS, H as GraphData, J as GraphEdge, K as GraphIssueSeverity, O as GraphMetadata, Q as GraphNode, I as Issue, R as IssueOverlay, U as IssueSchema, V as IssueType, W as IssueTypeSchema, X as LANGUAGE_EXTENSIONS, L as Language, Y as LanguageConfig, l as LanguageParser, Z as Lead, _ as LeadSchema, $ as LeadSource, a0 as LeadSourceSchema, a1 as LeadSubmission, a2 as LeadSubmissionSchema, a3 as Location, a4 as LocationSchema, M as Metrics, a7 as MetricsSchema, f as ModelContextTier, a8 as ModelTier, a9 as ModelTierSchema, N as NamingConvention, aa as ParseError, m as ParseResult, ab as ParseStatistics, P as ProductivityImpact, ad as RecommendationPriority, ae as SCORING_PROFILES, af as SIZE_ADJUSTED_THRESHOLDS, S as ScanOptions, ag as ScanResult, ah as ScoringConfig, ai as ScoringProfile, aj as ScoringResult, d as Severity, ak as SeveritySchema, d as SeverityType, al as SourceLocation, am as SourceRange, a as SpokeOutput, an as SpokeOutputSchema, ao as SpokeSummary, ap as SpokeSummarySchema, aq as TOOL_NAME_MAP, k as TechnicalValueChain, j as TechnicalValueChainSummary, g as TokenBudget, T as ToolName, ar as ToolNameSchema, c as ToolOptions, as as ToolOutput, b as ToolScoringOutput, at as UnifiedReport, au as UnifiedReportSchema, av as calculateOverallScore, aw as formatScore, ax as formatToolScore, ay as generateHTML, aA as getProjectSizeTier, aB as getRating, aC as getRatingDisplay, aG as getRatingSlug, aH as getRatingWithContext, aI as getRecommendedThreshold, aK as getToolWeight, aL as normalizeToolName, aM as parseWeightString } from './client-Bdi4ty0v.mjs';
|
|
2
2
|
import 'zod';
|
package/dist/client.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as AIReadyConfig, o as AIReadyConfigSchema, h as AcceptancePrediction, A as AnalysisResult, q as AnalysisResultSchema, r as AnalysisStatus, s as AnalysisStatusSchema, B as BusinessMetrics, t as COMMON_FINE_TUNING_OPTIONS, u as CONTEXT_TIER_THRESHOLDS, v as CommonASTNode, i as ComprehensionDifficulty, w as Config, C as CostConfig, D as DEFAULT_TOOL_WEIGHTS, n as ExportInfo, x as FRIENDLY_TOOL_NAMES, y as FileContent, G as GLOBAL_INFRA_OPTIONS, z as GLOBAL_SCAN_OPTIONS, H as GraphData, J as GraphEdge, K as GraphIssueSeverity, O as GraphMetadata, Q as GraphNode, I as Issue, R as
|
|
1
|
+
export { e as AIReadyConfig, o as AIReadyConfigSchema, h as AcceptancePrediction, A as AnalysisResult, q as AnalysisResultSchema, r as AnalysisStatus, s as AnalysisStatusSchema, aN as BaseGraphLink, aO as BaseGraphNode, B as BusinessMetrics, t as COMMON_FINE_TUNING_OPTIONS, u as CONTEXT_TIER_THRESHOLDS, v as CommonASTNode, i as ComprehensionDifficulty, w as Config, C as CostConfig, D as DEFAULT_TOOL_WEIGHTS, n as ExportInfo, x as FRIENDLY_TOOL_NAMES, y as FileContent, G as GLOBAL_INFRA_OPTIONS, z as GLOBAL_SCAN_OPTIONS, H as GraphData, J as GraphEdge, K as GraphIssueSeverity, O as GraphMetadata, Q as GraphNode, I as Issue, R as IssueOverlay, U as IssueSchema, V as IssueType, W as IssueTypeSchema, X as LANGUAGE_EXTENSIONS, L as Language, Y as LanguageConfig, l as LanguageParser, Z as Lead, _ as LeadSchema, $ as LeadSource, a0 as LeadSourceSchema, a1 as LeadSubmission, a2 as LeadSubmissionSchema, a3 as Location, a4 as LocationSchema, M as Metrics, a7 as MetricsSchema, f as ModelContextTier, a8 as ModelTier, a9 as ModelTierSchema, N as NamingConvention, aa as ParseError, m as ParseResult, ab as ParseStatistics, P as ProductivityImpact, ad as RecommendationPriority, ae as SCORING_PROFILES, af as SIZE_ADJUSTED_THRESHOLDS, S as ScanOptions, ag as ScanResult, ah as ScoringConfig, ai as ScoringProfile, aj as ScoringResult, d as Severity, ak as SeveritySchema, d as SeverityType, al as SourceLocation, am as SourceRange, a as SpokeOutput, an as SpokeOutputSchema, ao as SpokeSummary, ap as SpokeSummarySchema, aq as TOOL_NAME_MAP, k as TechnicalValueChain, j as TechnicalValueChainSummary, g as TokenBudget, T as ToolName, ar as ToolNameSchema, c as ToolOptions, as as ToolOutput, b as ToolScoringOutput, at as UnifiedReport, au as UnifiedReportSchema, av as calculateOverallScore, aw as formatScore, ax as formatToolScore, ay as generateHTML, aA as getProjectSizeTier, aB as getRating, aC as getRatingDisplay, aG as getRatingSlug, aH as getRatingWithContext, aI as getRecommendedThreshold, aK as getToolWeight, aL as normalizeToolName, aM as parseWeightString } from './client-Bdi4ty0v.js';
|
|
2
2
|
import 'zod';
|
package/dist/client.js
CHANGED
|
@@ -44,7 +44,6 @@ __export(client_exports, {
|
|
|
44
44
|
ModelTier: () => ModelTier,
|
|
45
45
|
ModelTierSchema: () => ModelTierSchema,
|
|
46
46
|
ParseError: () => ParseError,
|
|
47
|
-
ReadinessRating: () => ReadinessRating,
|
|
48
47
|
RecommendationPriority: () => RecommendationPriority,
|
|
49
48
|
SCORING_PROFILES: () => SCORING_PROFILES,
|
|
50
49
|
SIZE_ADJUSTED_THRESHOLDS: () => SIZE_ADJUSTED_THRESHOLDS,
|
|
@@ -410,21 +409,63 @@ var ParseError = class extends Error {
|
|
|
410
409
|
}
|
|
411
410
|
};
|
|
412
411
|
|
|
413
|
-
// src/
|
|
412
|
+
// src/utils/rating-helpers.ts
|
|
413
|
+
function getRatingMetadata(score) {
|
|
414
|
+
if (score >= 90) {
|
|
415
|
+
return {
|
|
416
|
+
label: "Excellent",
|
|
417
|
+
slug: "excellent",
|
|
418
|
+
emoji: "\u2705",
|
|
419
|
+
rating: "Excellent" /* Excellent */
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
if (score >= 75) {
|
|
423
|
+
return {
|
|
424
|
+
label: "Good",
|
|
425
|
+
slug: "good",
|
|
426
|
+
emoji: "\u{1F44D}",
|
|
427
|
+
rating: "Good" /* Good */
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
if (score >= 60) {
|
|
431
|
+
return {
|
|
432
|
+
label: "Fair",
|
|
433
|
+
slug: "fair",
|
|
434
|
+
emoji: "\u{1F44C}",
|
|
435
|
+
rating: "Fair" /* Fair */
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
if (score >= 40) {
|
|
439
|
+
return {
|
|
440
|
+
label: "Needs Work",
|
|
441
|
+
slug: "needs-work",
|
|
442
|
+
emoji: "\u{1F528}",
|
|
443
|
+
rating: "Needs Work" /* NeedsWork */
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
return {
|
|
447
|
+
label: "Critical",
|
|
448
|
+
slug: "critical",
|
|
449
|
+
emoji: "\u{1F6A8}",
|
|
450
|
+
rating: "Critical" /* Critical */
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
function getRatingSlug(score) {
|
|
454
|
+
return getRatingMetadata(score).slug;
|
|
455
|
+
}
|
|
456
|
+
function getRating(score) {
|
|
457
|
+
return getRatingMetadata(score).rating;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
// src/scoring-types.ts
|
|
414
461
|
var RecommendationPriority = /* @__PURE__ */ ((RecommendationPriority2) => {
|
|
415
462
|
RecommendationPriority2["High"] = "high";
|
|
416
463
|
RecommendationPriority2["Medium"] = "medium";
|
|
417
464
|
RecommendationPriority2["Low"] = "low";
|
|
418
465
|
return RecommendationPriority2;
|
|
419
466
|
})(RecommendationPriority || {});
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
ReadinessRating2["Good"] = "Good";
|
|
423
|
-
ReadinessRating2["Fair"] = "Fair";
|
|
424
|
-
ReadinessRating2["NeedsWork"] = "Needs Work";
|
|
425
|
-
ReadinessRating2["Critical"] = "Critical";
|
|
426
|
-
return ReadinessRating2;
|
|
427
|
-
})(ReadinessRating || {});
|
|
467
|
+
|
|
468
|
+
// src/scoring.ts
|
|
428
469
|
var DEFAULT_TOOL_WEIGHTS = {
|
|
429
470
|
["pattern-detect" /* PatternDetect */]: 22,
|
|
430
471
|
["context-analyzer" /* ContextAnalyzer */]: 19,
|
|
@@ -585,8 +626,8 @@ function calculateOverallScore(toolOutputs, config, cliWeights) {
|
|
|
585
626
|
const rating = getRating(overall);
|
|
586
627
|
const formulaParts = Array.from(toolOutputs.entries()).map(
|
|
587
628
|
([name, output]) => {
|
|
588
|
-
const
|
|
589
|
-
return `(${output.score} \xD7 ${
|
|
629
|
+
const weight = weights.get(name) ?? 5;
|
|
630
|
+
return `(${output.score} \xD7 ${weight})`;
|
|
590
631
|
}
|
|
591
632
|
);
|
|
592
633
|
const formulaStr = `[${formulaParts.join(" + ")}] / ${totalWeight} = ${overall}`;
|
|
@@ -603,20 +644,6 @@ function calculateOverallScore(toolOutputs, config, cliWeights) {
|
|
|
603
644
|
}
|
|
604
645
|
};
|
|
605
646
|
}
|
|
606
|
-
function getRating(score) {
|
|
607
|
-
if (score >= 90) return "Excellent" /* Excellent */;
|
|
608
|
-
if (score >= 75) return "Good" /* Good */;
|
|
609
|
-
if (score >= 60) return "Fair" /* Fair */;
|
|
610
|
-
if (score >= 40) return "Needs Work" /* NeedsWork */;
|
|
611
|
-
return "Critical" /* Critical */;
|
|
612
|
-
}
|
|
613
|
-
function getRatingSlug(score) {
|
|
614
|
-
if (score >= 90) return "excellent";
|
|
615
|
-
if (score >= 75) return "good";
|
|
616
|
-
if (score >= 60) return "fair";
|
|
617
|
-
if (score >= 40) return "needs-work";
|
|
618
|
-
return "critical";
|
|
619
|
-
}
|
|
620
647
|
function getRatingWithContext(score, fileCount, modelTier = "standard") {
|
|
621
648
|
const threshold = getRecommendedThreshold(fileCount, modelTier);
|
|
622
649
|
const normalized = score - threshold + 70;
|
|
@@ -867,7 +894,6 @@ function generateHTML(graph) {
|
|
|
867
894
|
ModelTier,
|
|
868
895
|
ModelTierSchema,
|
|
869
896
|
ParseError,
|
|
870
|
-
ReadinessRating,
|
|
871
897
|
RecommendationPriority,
|
|
872
898
|
SCORING_PROFILES,
|
|
873
899
|
SIZE_ADJUSTED_THRESHOLDS,
|
package/dist/client.mjs
CHANGED
|
@@ -12,8 +12,6 @@ import {
|
|
|
12
12
|
IssueSchema,
|
|
13
13
|
IssueType,
|
|
14
14
|
IssueTypeSchema,
|
|
15
|
-
LANGUAGE_EXTENSIONS,
|
|
16
|
-
Language,
|
|
17
15
|
LeadSchema,
|
|
18
16
|
LeadSource,
|
|
19
17
|
LeadSourceSchema,
|
|
@@ -22,8 +20,6 @@ import {
|
|
|
22
20
|
MetricsSchema,
|
|
23
21
|
ModelTier,
|
|
24
22
|
ModelTierSchema,
|
|
25
|
-
ParseError,
|
|
26
|
-
ReadinessRating,
|
|
27
23
|
RecommendationPriority,
|
|
28
24
|
SCORING_PROFILES,
|
|
29
25
|
SIZE_ADJUSTED_THRESHOLDS,
|
|
@@ -49,7 +45,12 @@ import {
|
|
|
49
45
|
getToolWeight,
|
|
50
46
|
normalizeToolName,
|
|
51
47
|
parseWeightString
|
|
52
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WVNVC2PP.mjs";
|
|
49
|
+
import {
|
|
50
|
+
LANGUAGE_EXTENSIONS,
|
|
51
|
+
Language,
|
|
52
|
+
ParseError
|
|
53
|
+
} from "./chunk-U3IY2CFC.mjs";
|
|
53
54
|
export {
|
|
54
55
|
AIReadyConfigSchema,
|
|
55
56
|
AnalysisResultSchema,
|
|
@@ -75,7 +76,6 @@ export {
|
|
|
75
76
|
ModelTier,
|
|
76
77
|
ModelTierSchema,
|
|
77
78
|
ParseError,
|
|
78
|
-
ReadinessRating,
|
|
79
79
|
RecommendationPriority,
|
|
80
80
|
SCORING_PROFILES,
|
|
81
81
|
SIZE_ADJUSTED_THRESHOLDS,
|