@aiready/core 0.21.8 → 0.21.10
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-3YI4IS3D.mjs +583 -0
- package/dist/chunk-XKK7YHPX.mjs +601 -0
- package/dist/client.d.mts +46 -2
- package/dist/client.d.ts +46 -2
- package/dist/client.js +21 -1
- package/dist/client.mjs +3 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -222,6 +222,7 @@ declare const SpokeOutputSchema: z.ZodObject<{
|
|
|
222
222
|
toolName: z.ZodString;
|
|
223
223
|
version: z.ZodOptional<z.ZodString>;
|
|
224
224
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
225
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
225
226
|
}, z.core.$catchall<z.ZodAny>>>;
|
|
226
227
|
}, z.core.$strip>;
|
|
227
228
|
type SpokeOutput = z.infer<typeof SpokeOutputSchema>;
|
|
@@ -431,6 +432,10 @@ interface ScanOptions {
|
|
|
431
432
|
onProgress?: (processed: number, total: number, message: string) => void;
|
|
432
433
|
includeTests?: boolean;
|
|
433
434
|
}
|
|
435
|
+
/**
|
|
436
|
+
* Global options that should not be repeated in tool-specific audit logs
|
|
437
|
+
*/
|
|
438
|
+
declare const GLOBAL_SCAN_OPTIONS: string[];
|
|
434
439
|
interface AIReadyConfig {
|
|
435
440
|
scan?: {
|
|
436
441
|
include?: string[];
|
|
@@ -464,13 +469,52 @@ interface AIReadyConfig {
|
|
|
464
469
|
domainPatterns?: string[];
|
|
465
470
|
pathDomainMap?: Record<string, string>;
|
|
466
471
|
};
|
|
467
|
-
|
|
472
|
+
[ToolName.NamingConsistency]?: {
|
|
468
473
|
enabled?: boolean;
|
|
469
474
|
scoreWeight?: number;
|
|
470
475
|
acceptedAbbreviations?: string[];
|
|
471
476
|
shortWords?: string[];
|
|
472
477
|
disableChecks?: ('single-letter' | 'abbreviation' | 'convention-mix' | 'unclear' | 'poor-naming')[];
|
|
473
478
|
};
|
|
479
|
+
[ToolName.AiSignalClarity]?: {
|
|
480
|
+
enabled?: boolean;
|
|
481
|
+
scoreWeight?: number;
|
|
482
|
+
checkMagicLiterals?: boolean;
|
|
483
|
+
checkBooleanTraps?: boolean;
|
|
484
|
+
checkAmbiguousNames?: boolean;
|
|
485
|
+
checkUndocumentedExports?: boolean;
|
|
486
|
+
checkImplicitSideEffects?: boolean;
|
|
487
|
+
checkDeepCallbacks?: boolean;
|
|
488
|
+
minSeverity?: string;
|
|
489
|
+
};
|
|
490
|
+
[ToolName.AgentGrounding]?: {
|
|
491
|
+
enabled?: boolean;
|
|
492
|
+
scoreWeight?: number;
|
|
493
|
+
maxRecommendedDepth?: number;
|
|
494
|
+
readmeStaleDays?: number;
|
|
495
|
+
additionalVagueNames?: string[];
|
|
496
|
+
};
|
|
497
|
+
[ToolName.TestabilityIndex]?: {
|
|
498
|
+
enabled?: boolean;
|
|
499
|
+
scoreWeight?: number;
|
|
500
|
+
minCoverageRatio?: number;
|
|
501
|
+
testPatterns?: string[];
|
|
502
|
+
};
|
|
503
|
+
[ToolName.DocDrift]?: {
|
|
504
|
+
enabled?: boolean;
|
|
505
|
+
scoreWeight?: number;
|
|
506
|
+
maxCommits?: number;
|
|
507
|
+
staleMonths?: number;
|
|
508
|
+
};
|
|
509
|
+
[ToolName.DependencyHealth]?: {
|
|
510
|
+
enabled?: boolean;
|
|
511
|
+
scoreWeight?: number;
|
|
512
|
+
trainingCutoffYear?: number;
|
|
513
|
+
};
|
|
514
|
+
[ToolName.ChangeAmplification]?: {
|
|
515
|
+
enabled?: boolean;
|
|
516
|
+
scoreWeight?: number;
|
|
517
|
+
};
|
|
474
518
|
[toolName: string]: {
|
|
475
519
|
enabled?: boolean;
|
|
476
520
|
scoreWeight?: number;
|
|
@@ -879,4 +923,4 @@ declare function formatToolScore(output: ToolScoringOutput): string;
|
|
|
879
923
|
*/
|
|
880
924
|
declare function generateHTML(graph: GraphData): string;
|
|
881
925
|
|
|
882
|
-
export { type AIReadyConfig, type AcceptancePrediction, type AnalysisResult, AnalysisResultSchema, AnalysisStatus, AnalysisStatusSchema, type BusinessReport, CONTEXT_TIER_THRESHOLDS, type CommonASTNode, type ComprehensionDifficulty, type CostConfig, DEFAULT_TOOL_WEIGHTS, type ExportInfo, FRIENDLY_TOOL_NAMES, type GraphData, type GraphEdge, type GraphIssueSeverity, type GraphMetadata, type GraphNode, type ImportInfo, type Issue, IssueSchema, IssueType, IssueTypeSchema, LANGUAGE_EXTENSIONS, Language, type LanguageConfig, type LanguageParser, type Location, LocationSchema, type Metrics, MetricsSchema, type ModelContextTier, ModelTier, ModelTierSchema, type NamingConvention, ParseError, type ParseResult, type ParseStatistics, type ProductivityImpact, type Report, SIZE_ADJUSTED_THRESHOLDS, type ScanOptions, type ScoringConfig, type ScoringResult, Severity, SeveritySchema, type SourceLocation, type SourceRange, type SpokeOutput, SpokeOutputSchema, type SpokeSummary, SpokeSummarySchema, TOOL_NAME_MAP, type TechnicalValueChain, type TechnicalValueChainSummary, type TokenBudget, ToolName, ToolNameSchema, type ToolScoringOutput, type UnifiedReport, UnifiedReportSchema, calculateOverallScore, formatScore, formatToolScore, generateHTML, getProjectSizeTier, getRating, getRatingDisplay, getRatingWithContext, getRecommendedThreshold, getToolWeight, normalizeToolName, parseWeightString };
|
|
926
|
+
export { type AIReadyConfig, type AcceptancePrediction, type AnalysisResult, AnalysisResultSchema, AnalysisStatus, AnalysisStatusSchema, type BusinessReport, CONTEXT_TIER_THRESHOLDS, type CommonASTNode, type ComprehensionDifficulty, type CostConfig, DEFAULT_TOOL_WEIGHTS, type ExportInfo, FRIENDLY_TOOL_NAMES, GLOBAL_SCAN_OPTIONS, type GraphData, type GraphEdge, type GraphIssueSeverity, type GraphMetadata, type GraphNode, type ImportInfo, type Issue, IssueSchema, IssueType, IssueTypeSchema, LANGUAGE_EXTENSIONS, Language, type LanguageConfig, type LanguageParser, type Location, LocationSchema, type Metrics, MetricsSchema, type ModelContextTier, ModelTier, ModelTierSchema, type NamingConvention, ParseError, type ParseResult, type ParseStatistics, type ProductivityImpact, type Report, SIZE_ADJUSTED_THRESHOLDS, type ScanOptions, type ScoringConfig, type ScoringResult, Severity, SeveritySchema, type SourceLocation, type SourceRange, type SpokeOutput, SpokeOutputSchema, type SpokeSummary, SpokeSummarySchema, TOOL_NAME_MAP, type TechnicalValueChain, type TechnicalValueChainSummary, type TokenBudget, ToolName, ToolNameSchema, type ToolScoringOutput, type UnifiedReport, UnifiedReportSchema, calculateOverallScore, formatScore, formatToolScore, generateHTML, getProjectSizeTier, getRating, getRatingDisplay, getRatingWithContext, getRecommendedThreshold, getToolWeight, normalizeToolName, parseWeightString };
|
package/dist/client.js
CHANGED
|
@@ -26,6 +26,7 @@ __export(client_exports, {
|
|
|
26
26
|
CONTEXT_TIER_THRESHOLDS: () => CONTEXT_TIER_THRESHOLDS,
|
|
27
27
|
DEFAULT_TOOL_WEIGHTS: () => DEFAULT_TOOL_WEIGHTS,
|
|
28
28
|
FRIENDLY_TOOL_NAMES: () => FRIENDLY_TOOL_NAMES,
|
|
29
|
+
GLOBAL_SCAN_OPTIONS: () => GLOBAL_SCAN_OPTIONS,
|
|
29
30
|
IssueSchema: () => IssueSchema,
|
|
30
31
|
IssueType: () => IssueType,
|
|
31
32
|
IssueTypeSchema: () => IssueTypeSchema,
|
|
@@ -191,7 +192,8 @@ var SpokeOutputSchema = import_zod.z.object({
|
|
|
191
192
|
metadata: import_zod.z.object({
|
|
192
193
|
toolName: import_zod.z.string(),
|
|
193
194
|
version: import_zod.z.string().optional(),
|
|
194
|
-
timestamp: import_zod.z.string().optional()
|
|
195
|
+
timestamp: import_zod.z.string().optional(),
|
|
196
|
+
config: import_zod.z.any().optional()
|
|
195
197
|
}).catchall(import_zod.z.any()).optional()
|
|
196
198
|
});
|
|
197
199
|
var UnifiedReportSchema = import_zod.z.object({
|
|
@@ -215,6 +217,23 @@ var UnifiedReportSchema = import_zod.z.object({
|
|
|
215
217
|
}).optional()
|
|
216
218
|
}).catchall(import_zod.z.any());
|
|
217
219
|
|
|
220
|
+
// src/types.ts
|
|
221
|
+
var GLOBAL_SCAN_OPTIONS = [
|
|
222
|
+
"rootDir",
|
|
223
|
+
"tools",
|
|
224
|
+
"toolConfigs",
|
|
225
|
+
"include",
|
|
226
|
+
"exclude",
|
|
227
|
+
"onProgress",
|
|
228
|
+
"progressCallback",
|
|
229
|
+
"includeTests",
|
|
230
|
+
"useSmartDefaults",
|
|
231
|
+
"maxDepth",
|
|
232
|
+
"streamResults",
|
|
233
|
+
"batchSize",
|
|
234
|
+
"costConfig"
|
|
235
|
+
];
|
|
236
|
+
|
|
218
237
|
// src/types/language.ts
|
|
219
238
|
var Language = /* @__PURE__ */ ((Language2) => {
|
|
220
239
|
Language2["TypeScript"] = "typescript";
|
|
@@ -610,6 +629,7 @@ function generateHTML(graph) {
|
|
|
610
629
|
CONTEXT_TIER_THRESHOLDS,
|
|
611
630
|
DEFAULT_TOOL_WEIGHTS,
|
|
612
631
|
FRIENDLY_TOOL_NAMES,
|
|
632
|
+
GLOBAL_SCAN_OPTIONS,
|
|
613
633
|
IssueSchema,
|
|
614
634
|
IssueType,
|
|
615
635
|
IssueTypeSchema,
|
package/dist/client.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
CONTEXT_TIER_THRESHOLDS,
|
|
6
6
|
DEFAULT_TOOL_WEIGHTS,
|
|
7
7
|
FRIENDLY_TOOL_NAMES,
|
|
8
|
+
GLOBAL_SCAN_OPTIONS,
|
|
8
9
|
IssueSchema,
|
|
9
10
|
IssueType,
|
|
10
11
|
IssueTypeSchema,
|
|
@@ -36,7 +37,7 @@ import {
|
|
|
36
37
|
getToolWeight,
|
|
37
38
|
normalizeToolName,
|
|
38
39
|
parseWeightString
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-XKK7YHPX.mjs";
|
|
40
41
|
export {
|
|
41
42
|
AnalysisResultSchema,
|
|
42
43
|
AnalysisStatus,
|
|
@@ -44,6 +45,7 @@ export {
|
|
|
44
45
|
CONTEXT_TIER_THRESHOLDS,
|
|
45
46
|
DEFAULT_TOOL_WEIGHTS,
|
|
46
47
|
FRIENDLY_TOOL_NAMES,
|
|
48
|
+
GLOBAL_SCAN_OPTIONS,
|
|
47
49
|
IssueSchema,
|
|
48
50
|
IssueType,
|
|
49
51
|
IssueTypeSchema,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ToolName, ScanOptions, SpokeOutput, ToolScoringOutput, AIReadyConfig, ModelContextTier, CostConfig, TokenBudget, ProductivityImpact, AcceptancePrediction, ComprehensionDifficulty, TechnicalValueChainSummary, TechnicalValueChain, LanguageParser, Language, ParseResult, NamingConvention } from './client.mjs';
|
|
2
|
-
export { AnalysisResult, AnalysisResultSchema, AnalysisStatus, AnalysisStatusSchema, BusinessReport, CONTEXT_TIER_THRESHOLDS, CommonASTNode, DEFAULT_TOOL_WEIGHTS, ExportInfo, FRIENDLY_TOOL_NAMES, GraphData, GraphEdge, GraphIssueSeverity, GraphMetadata, GraphNode, ImportInfo, Issue, IssueSchema, IssueType, IssueTypeSchema, LANGUAGE_EXTENSIONS, LanguageConfig, Location, LocationSchema, Metrics, MetricsSchema, ModelTier, ModelTierSchema, ParseError, ParseStatistics, Report, SIZE_ADJUSTED_THRESHOLDS, ScoringConfig, ScoringResult, Severity, SeveritySchema, SourceLocation, SourceRange, SpokeOutputSchema, SpokeSummary, SpokeSummarySchema, TOOL_NAME_MAP, ToolNameSchema, UnifiedReport, UnifiedReportSchema, calculateOverallScore, formatScore, formatToolScore, generateHTML, getProjectSizeTier, getRating, getRatingDisplay, getRatingWithContext, getRecommendedThreshold, getToolWeight, normalizeToolName, parseWeightString } from './client.mjs';
|
|
2
|
+
export { AnalysisResult, AnalysisResultSchema, AnalysisStatus, AnalysisStatusSchema, BusinessReport, CONTEXT_TIER_THRESHOLDS, CommonASTNode, DEFAULT_TOOL_WEIGHTS, ExportInfo, FRIENDLY_TOOL_NAMES, GLOBAL_SCAN_OPTIONS, GraphData, GraphEdge, GraphIssueSeverity, GraphMetadata, GraphNode, ImportInfo, Issue, IssueSchema, IssueType, IssueTypeSchema, LANGUAGE_EXTENSIONS, LanguageConfig, Location, LocationSchema, Metrics, MetricsSchema, ModelTier, ModelTierSchema, ParseError, ParseStatistics, Report, SIZE_ADJUSTED_THRESHOLDS, ScoringConfig, ScoringResult, Severity, SeveritySchema, SourceLocation, SourceRange, SpokeOutputSchema, SpokeSummary, SpokeSummarySchema, TOOL_NAME_MAP, ToolNameSchema, UnifiedReport, UnifiedReportSchema, calculateOverallScore, formatScore, formatToolScore, generateHTML, getProjectSizeTier, getRating, getRatingDisplay, getRatingWithContext, getRecommendedThreshold, getToolWeight, normalizeToolName, parseWeightString } from './client.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ToolName, ScanOptions, SpokeOutput, ToolScoringOutput, AIReadyConfig, ModelContextTier, CostConfig, TokenBudget, ProductivityImpact, AcceptancePrediction, ComprehensionDifficulty, TechnicalValueChainSummary, TechnicalValueChain, LanguageParser, Language, ParseResult, NamingConvention } from './client.js';
|
|
2
|
-
export { AnalysisResult, AnalysisResultSchema, AnalysisStatus, AnalysisStatusSchema, BusinessReport, CONTEXT_TIER_THRESHOLDS, CommonASTNode, DEFAULT_TOOL_WEIGHTS, ExportInfo, FRIENDLY_TOOL_NAMES, GraphData, GraphEdge, GraphIssueSeverity, GraphMetadata, GraphNode, ImportInfo, Issue, IssueSchema, IssueType, IssueTypeSchema, LANGUAGE_EXTENSIONS, LanguageConfig, Location, LocationSchema, Metrics, MetricsSchema, ModelTier, ModelTierSchema, ParseError, ParseStatistics, Report, SIZE_ADJUSTED_THRESHOLDS, ScoringConfig, ScoringResult, Severity, SeveritySchema, SourceLocation, SourceRange, SpokeOutputSchema, SpokeSummary, SpokeSummarySchema, TOOL_NAME_MAP, ToolNameSchema, UnifiedReport, UnifiedReportSchema, calculateOverallScore, formatScore, formatToolScore, generateHTML, getProjectSizeTier, getRating, getRatingDisplay, getRatingWithContext, getRecommendedThreshold, getToolWeight, normalizeToolName, parseWeightString } from './client.js';
|
|
2
|
+
export { AnalysisResult, AnalysisResultSchema, AnalysisStatus, AnalysisStatusSchema, BusinessReport, CONTEXT_TIER_THRESHOLDS, CommonASTNode, DEFAULT_TOOL_WEIGHTS, ExportInfo, FRIENDLY_TOOL_NAMES, GLOBAL_SCAN_OPTIONS, GraphData, GraphEdge, GraphIssueSeverity, GraphMetadata, GraphNode, ImportInfo, Issue, IssueSchema, IssueType, IssueTypeSchema, LANGUAGE_EXTENSIONS, LanguageConfig, Location, LocationSchema, Metrics, MetricsSchema, ModelTier, ModelTierSchema, ParseError, ParseStatistics, Report, SIZE_ADJUSTED_THRESHOLDS, ScoringConfig, ScoringResult, Severity, SeveritySchema, SourceLocation, SourceRange, SpokeOutputSchema, SpokeSummary, SpokeSummarySchema, TOOL_NAME_MAP, ToolNameSchema, UnifiedReport, UnifiedReportSchema, calculateOverallScore, formatScore, formatToolScore, generateHTML, getProjectSizeTier, getRating, getRatingDisplay, getRatingWithContext, getRecommendedThreshold, getToolWeight, normalizeToolName, parseWeightString } from './client.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.js
CHANGED
|
@@ -38,6 +38,7 @@ __export(index_exports, {
|
|
|
38
38
|
DEFAULT_EXCLUDE: () => DEFAULT_EXCLUDE,
|
|
39
39
|
DEFAULT_TOOL_WEIGHTS: () => DEFAULT_TOOL_WEIGHTS,
|
|
40
40
|
FRIENDLY_TOOL_NAMES: () => FRIENDLY_TOOL_NAMES,
|
|
41
|
+
GLOBAL_SCAN_OPTIONS: () => GLOBAL_SCAN_OPTIONS,
|
|
41
42
|
IssueSchema: () => IssueSchema,
|
|
42
43
|
IssueType: () => IssueType,
|
|
43
44
|
IssueTypeSchema: () => IssueTypeSchema,
|
|
@@ -272,7 +273,8 @@ var SpokeOutputSchema = import_zod.z.object({
|
|
|
272
273
|
metadata: import_zod.z.object({
|
|
273
274
|
toolName: import_zod.z.string(),
|
|
274
275
|
version: import_zod.z.string().optional(),
|
|
275
|
-
timestamp: import_zod.z.string().optional()
|
|
276
|
+
timestamp: import_zod.z.string().optional(),
|
|
277
|
+
config: import_zod.z.any().optional()
|
|
276
278
|
}).catchall(import_zod.z.any()).optional()
|
|
277
279
|
});
|
|
278
280
|
var UnifiedReportSchema = import_zod.z.object({
|
|
@@ -296,6 +298,23 @@ var UnifiedReportSchema = import_zod.z.object({
|
|
|
296
298
|
}).optional()
|
|
297
299
|
}).catchall(import_zod.z.any());
|
|
298
300
|
|
|
301
|
+
// src/types.ts
|
|
302
|
+
var GLOBAL_SCAN_OPTIONS = [
|
|
303
|
+
"rootDir",
|
|
304
|
+
"tools",
|
|
305
|
+
"toolConfigs",
|
|
306
|
+
"include",
|
|
307
|
+
"exclude",
|
|
308
|
+
"onProgress",
|
|
309
|
+
"progressCallback",
|
|
310
|
+
"includeTests",
|
|
311
|
+
"useSmartDefaults",
|
|
312
|
+
"maxDepth",
|
|
313
|
+
"streamResults",
|
|
314
|
+
"batchSize",
|
|
315
|
+
"costConfig"
|
|
316
|
+
];
|
|
317
|
+
|
|
299
318
|
// src/types/language.ts
|
|
300
319
|
var Language = /* @__PURE__ */ ((Language2) => {
|
|
301
320
|
Language2["TypeScript"] = "typescript";
|
|
@@ -3271,6 +3290,7 @@ function getRepoMetadata(directory) {
|
|
|
3271
3290
|
DEFAULT_EXCLUDE,
|
|
3272
3291
|
DEFAULT_TOOL_WEIGHTS,
|
|
3273
3292
|
FRIENDLY_TOOL_NAMES,
|
|
3293
|
+
GLOBAL_SCAN_OPTIONS,
|
|
3274
3294
|
IssueSchema,
|
|
3275
3295
|
IssueType,
|
|
3276
3296
|
IssueTypeSchema,
|
package/dist/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
CONTEXT_TIER_THRESHOLDS,
|
|
6
6
|
DEFAULT_TOOL_WEIGHTS,
|
|
7
7
|
FRIENDLY_TOOL_NAMES,
|
|
8
|
+
GLOBAL_SCAN_OPTIONS,
|
|
8
9
|
IssueSchema,
|
|
9
10
|
IssueType,
|
|
10
11
|
IssueTypeSchema,
|
|
@@ -36,7 +37,7 @@ import {
|
|
|
36
37
|
getToolWeight,
|
|
37
38
|
normalizeToolName,
|
|
38
39
|
parseWeightString
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-XKK7YHPX.mjs";
|
|
40
41
|
|
|
41
42
|
// src/types/contract.ts
|
|
42
43
|
function validateSpokeOutput(toolName, output) {
|
|
@@ -2624,6 +2625,7 @@ export {
|
|
|
2624
2625
|
DEFAULT_EXCLUDE,
|
|
2625
2626
|
DEFAULT_TOOL_WEIGHTS,
|
|
2626
2627
|
FRIENDLY_TOOL_NAMES,
|
|
2628
|
+
GLOBAL_SCAN_OPTIONS,
|
|
2627
2629
|
IssueSchema,
|
|
2628
2630
|
IssueType,
|
|
2629
2631
|
IssueTypeSchema,
|