@aiready/core 0.23.20 → 0.23.22
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-REU6OUBT.mjs → chunk-DBOPSRBC.mjs} +47 -22
- package/dist/chunk-E55RNGGK.mjs +852 -0
- 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-SQHS6PFL.mjs → chunk-UYLH35LA.mjs} +47 -22
- package/dist/{chunk-ZB3EHHAG.mjs → chunk-WVNVC2PP.mjs} +90 -60
- package/dist/chunk-WYOW6O3P.mjs +114 -0
- package/dist/{chunk-RMH2TPAT.mjs → chunk-YRSSR4KN.mjs} +87 -59
- package/dist/client/index.d.mts +2 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +922 -0
- package/dist/client/index.mjs +104 -0
- 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-Ctl_0z6F.d.mts +1294 -0
- package/dist/client-Ctl_0z6F.d.ts +1294 -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-CYz0qxGB.d.mts → client-DcqGfDTt.d.mts} +90 -23
- package/dist/{client-CYz0qxGB.d.ts → client-DcqGfDTt.d.ts} +90 -23
- package/dist/{client-jGuH6TAG.d.mts → client-O8RvSRm0.d.mts} +18 -1
- package/dist/{client-jGuH6TAG.d.ts → client-O8RvSRm0.d.ts} +18 -1
- package/dist/client.d.mts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +47 -13
- package/dist/client.mjs +6 -4
- 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-Ctl_0z6F.d.mts +1294 -0
- package/dist/index-Ctl_0z6F.d.ts +1294 -0
- package/dist/index.d.mts +372 -165
- package/dist/index.d.ts +372 -165
- package/dist/index.js +3825 -3123
- package/dist/index.mjs +901 -2128
- 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 +6 -6
- package/dist/chunk-2Y6WZCES.mjs +0 -859
- package/dist/chunk-5SHLHMH7.mjs +0 -760
- package/dist/chunk-CGOS2J6T.mjs +0 -807
- package/dist/chunk-FMNCV4CC.mjs +0 -859
- package/dist/chunk-Q55AMEFV.mjs +0 -760
- package/dist/chunk-ST75O5C5.mjs +0 -859
- package/dist/chunk-TJXR2CHZ.mjs +0 -799
- 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-DLvFR2qA.d.mts +0 -1197
- package/dist/client-DLvFR2qA.d.ts +0 -1197
- package/dist/client-PFPdeo-z.d.mts +0 -1186
- package/dist/client-PFPdeo-z.d.ts +0 -1186
- package/dist/client-WVCAIWdJ.d.mts +0 -1192
- package/dist/client-WVCAIWdJ.d.ts +0 -1192
- package/dist/client-pYldIAg2.d.mts +0 -1209
- package/dist/client-pYldIAg2.d.ts +0 -1209
- package/dist/client-wk2fgk1q.d.mts +0 -1184
- package/dist/client-wk2fgk1q.d.ts +0 -1184
|
@@ -304,36 +304,84 @@ var COMMON_FINE_TUNING_OPTIONS = [
|
|
|
304
304
|
"showBreakdown"
|
|
305
305
|
];
|
|
306
306
|
|
|
307
|
-
// src/
|
|
308
|
-
var
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
".java": "java" /* Java */,
|
|
325
|
-
".go": "go" /* Go */,
|
|
326
|
-
".rs": "rust" /* Rust */,
|
|
327
|
-
".cs": "csharp" /* CSharp */
|
|
328
|
-
};
|
|
329
|
-
var ParseError = class extends Error {
|
|
330
|
-
constructor(message, filePath, loc) {
|
|
331
|
-
super(message);
|
|
332
|
-
this.filePath = filePath;
|
|
333
|
-
this.loc = loc;
|
|
334
|
-
this.name = "ParseError";
|
|
307
|
+
// src/utils/rating-helpers.ts
|
|
308
|
+
var ReadinessRating = /* @__PURE__ */ ((ReadinessRating2) => {
|
|
309
|
+
ReadinessRating2["Excellent"] = "Excellent";
|
|
310
|
+
ReadinessRating2["Good"] = "Good";
|
|
311
|
+
ReadinessRating2["Fair"] = "Fair";
|
|
312
|
+
ReadinessRating2["NeedsWork"] = "Needs Work";
|
|
313
|
+
ReadinessRating2["Critical"] = "Critical";
|
|
314
|
+
return ReadinessRating2;
|
|
315
|
+
})(ReadinessRating || {});
|
|
316
|
+
function getRatingMetadata(score) {
|
|
317
|
+
if (score >= 90) {
|
|
318
|
+
return {
|
|
319
|
+
label: "Excellent",
|
|
320
|
+
slug: "excellent",
|
|
321
|
+
emoji: "\u2705",
|
|
322
|
+
rating: "Excellent" /* Excellent */
|
|
323
|
+
};
|
|
335
324
|
}
|
|
336
|
-
|
|
325
|
+
if (score >= 75) {
|
|
326
|
+
return {
|
|
327
|
+
label: "Good",
|
|
328
|
+
slug: "good",
|
|
329
|
+
emoji: "\u{1F44D}",
|
|
330
|
+
rating: "Good" /* Good */
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
if (score >= 60) {
|
|
334
|
+
return {
|
|
335
|
+
label: "Fair",
|
|
336
|
+
slug: "fair",
|
|
337
|
+
emoji: "\u{1F44C}",
|
|
338
|
+
rating: "Fair" /* Fair */
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
if (score >= 40) {
|
|
342
|
+
return {
|
|
343
|
+
label: "Needs Work",
|
|
344
|
+
slug: "needs-work",
|
|
345
|
+
emoji: "\u{1F528}",
|
|
346
|
+
rating: "Needs Work" /* NeedsWork */
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
return {
|
|
350
|
+
label: "Critical",
|
|
351
|
+
slug: "critical",
|
|
352
|
+
emoji: "\u{1F6A8}",
|
|
353
|
+
rating: "Critical" /* Critical */
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
function getRatingLabel(score) {
|
|
357
|
+
return getRatingMetadata(score).label;
|
|
358
|
+
}
|
|
359
|
+
function getRatingSlug(score) {
|
|
360
|
+
return getRatingMetadata(score).slug;
|
|
361
|
+
}
|
|
362
|
+
function getRatingEmoji(score) {
|
|
363
|
+
return getRatingMetadata(score).emoji;
|
|
364
|
+
}
|
|
365
|
+
function getToolEmoji(score) {
|
|
366
|
+
return getRatingEmoji(score);
|
|
367
|
+
}
|
|
368
|
+
function getPriorityIcon(priority) {
|
|
369
|
+
switch (priority) {
|
|
370
|
+
case "critical":
|
|
371
|
+
return "\u{1F534}";
|
|
372
|
+
case "high":
|
|
373
|
+
return "\u{1F7E0}";
|
|
374
|
+
case "medium":
|
|
375
|
+
return "\u{1F7E1}";
|
|
376
|
+
case "low":
|
|
377
|
+
return "\u{1F535}";
|
|
378
|
+
default:
|
|
379
|
+
return "\u26AA";
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
function getRating(score) {
|
|
383
|
+
return getRatingMetadata(score).rating;
|
|
384
|
+
}
|
|
337
385
|
|
|
338
386
|
// src/scoring.ts
|
|
339
387
|
var RecommendationPriority = /* @__PURE__ */ ((RecommendationPriority2) => {
|
|
@@ -342,14 +390,6 @@ var RecommendationPriority = /* @__PURE__ */ ((RecommendationPriority2) => {
|
|
|
342
390
|
RecommendationPriority2["Low"] = "low";
|
|
343
391
|
return RecommendationPriority2;
|
|
344
392
|
})(RecommendationPriority || {});
|
|
345
|
-
var ReadinessRating = /* @__PURE__ */ ((ReadinessRating2) => {
|
|
346
|
-
ReadinessRating2["Excellent"] = "Excellent";
|
|
347
|
-
ReadinessRating2["Good"] = "Good";
|
|
348
|
-
ReadinessRating2["Fair"] = "Fair";
|
|
349
|
-
ReadinessRating2["NeedsWork"] = "Needs Work";
|
|
350
|
-
ReadinessRating2["Critical"] = "Critical";
|
|
351
|
-
return ReadinessRating2;
|
|
352
|
-
})(ReadinessRating || {});
|
|
353
393
|
var DEFAULT_TOOL_WEIGHTS = {
|
|
354
394
|
["pattern-detect" /* PatternDetect */]: 22,
|
|
355
395
|
["context-analyzer" /* ContextAnalyzer */]: 19,
|
|
@@ -510,8 +550,8 @@ function calculateOverallScore(toolOutputs, config, cliWeights) {
|
|
|
510
550
|
const rating = getRating(overall);
|
|
511
551
|
const formulaParts = Array.from(toolOutputs.entries()).map(
|
|
512
552
|
([name, output]) => {
|
|
513
|
-
const
|
|
514
|
-
return `(${output.score} \xD7 ${
|
|
553
|
+
const weight = weights.get(name) ?? 5;
|
|
554
|
+
return `(${output.score} \xD7 ${weight})`;
|
|
515
555
|
}
|
|
516
556
|
);
|
|
517
557
|
const formulaStr = `[${formulaParts.join(" + ")}] / ${totalWeight} = ${overall}`;
|
|
@@ -528,20 +568,6 @@ function calculateOverallScore(toolOutputs, config, cliWeights) {
|
|
|
528
568
|
}
|
|
529
569
|
};
|
|
530
570
|
}
|
|
531
|
-
function getRating(score) {
|
|
532
|
-
if (score >= 90) return "Excellent" /* Excellent */;
|
|
533
|
-
if (score >= 75) return "Good" /* Good */;
|
|
534
|
-
if (score >= 60) return "Fair" /* Fair */;
|
|
535
|
-
if (score >= 40) return "Needs Work" /* NeedsWork */;
|
|
536
|
-
return "Critical" /* Critical */;
|
|
537
|
-
}
|
|
538
|
-
function getRatingSlug(score) {
|
|
539
|
-
if (score >= 90) return "excellent";
|
|
540
|
-
if (score >= 75) return "good";
|
|
541
|
-
if (score >= 60) return "fair";
|
|
542
|
-
if (score >= 40) return "needs-work";
|
|
543
|
-
return "critical";
|
|
544
|
-
}
|
|
545
571
|
function getRatingWithContext(score, fileCount, modelTier = "standard") {
|
|
546
572
|
const threshold = getRecommendedThreshold(fileCount, modelTier);
|
|
547
573
|
const normalized = score - threshold + 70;
|
|
@@ -795,11 +821,15 @@ export {
|
|
|
795
821
|
GLOBAL_INFRA_OPTIONS,
|
|
796
822
|
GLOBAL_SCAN_OPTIONS,
|
|
797
823
|
COMMON_FINE_TUNING_OPTIONS,
|
|
798
|
-
Language,
|
|
799
|
-
LANGUAGE_EXTENSIONS,
|
|
800
|
-
ParseError,
|
|
801
|
-
RecommendationPriority,
|
|
802
824
|
ReadinessRating,
|
|
825
|
+
getRatingMetadata,
|
|
826
|
+
getRatingLabel,
|
|
827
|
+
getRatingSlug,
|
|
828
|
+
getRatingEmoji,
|
|
829
|
+
getToolEmoji,
|
|
830
|
+
getPriorityIcon,
|
|
831
|
+
getRating,
|
|
832
|
+
RecommendationPriority,
|
|
803
833
|
DEFAULT_TOOL_WEIGHTS,
|
|
804
834
|
TOOL_NAME_MAP,
|
|
805
835
|
ScoringProfile,
|
|
@@ -812,8 +842,6 @@ export {
|
|
|
812
842
|
getToolWeight,
|
|
813
843
|
parseWeightString,
|
|
814
844
|
calculateOverallScore,
|
|
815
|
-
getRating,
|
|
816
|
-
getRatingSlug,
|
|
817
845
|
getRatingWithContext,
|
|
818
846
|
getRatingDisplay,
|
|
819
847
|
formatScore,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { e as AIReadyConfig, o as AIReadyConfigSchema, i 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, j 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, g 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, f as TechnicalValueChain, k as TechnicalValueChainSummary, h 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 '../index-Ctl_0z6F.mjs';
|
|
2
|
+
import 'zod';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { e as AIReadyConfig, o as AIReadyConfigSchema, i 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, j 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, g 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, f as TechnicalValueChain, k as TechnicalValueChainSummary, h 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 '../index-Ctl_0z6F.js';
|
|
2
|
+
import 'zod';
|