@aiready/core 0.23.4 → 0.23.6
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-NGHT7JOG.mjs → chunk-Q55AMEFV.mjs} +63 -0
- package/dist/{client-D-cn9ydj.d.mts → client-CKcjnPXt.d.mts} +79 -1
- package/dist/{client-D-cn9ydj.d.ts → client-CKcjnPXt.d.ts} +79 -1
- package/dist/client.d.mts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +66 -0
- package/dist/client.mjs +9 -1
- package/dist/index.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +159 -21
- package/dist/index.mjs +102 -22
- package/package.json +1 -1
- package/dist/__tests__/parser-factory.test.d.ts +0 -5
- package/dist/__tests__/parser-factory.test.d.ts.map +0 -1
- package/dist/__tests__/parser-factory.test.js +0 -70
- package/dist/__tests__/parser-factory.test.js.map +0 -1
- package/dist/__tests__/python-parser.test.d.ts +0 -5
- package/dist/__tests__/python-parser.test.d.ts.map +0 -1
- package/dist/__tests__/python-parser.test.js +0 -194
- package/dist/__tests__/python-parser.test.js.map +0 -1
- package/dist/__tests__/scoring.test.d.ts +0 -2
- package/dist/__tests__/scoring.test.d.ts.map +0 -1
- package/dist/__tests__/scoring.test.js +0 -197
- package/dist/__tests__/scoring.test.js.map +0 -1
- package/dist/chunk-3YI4IS3D.mjs +0 -601
- package/dist/chunk-5HIXDC3X.mjs +0 -716
- package/dist/chunk-5V3L53AE.mjs +0 -805
- package/dist/chunk-CKVKHN3G.mjs +0 -660
- package/dist/chunk-COHIBX3Q.mjs +0 -635
- package/dist/chunk-CWRCDSKZ.mjs +0 -417
- package/dist/chunk-D3D3NCRR.mjs +0 -556
- package/dist/chunk-HCFYP7UD.mjs +0 -805
- package/dist/chunk-HFLFBA6F.mjs +0 -417
- package/dist/chunk-HKSARRCD.mjs +0 -365
- package/dist/chunk-JJ5JL5FX.mjs +0 -417
- package/dist/chunk-KDSTXVLQ.mjs +0 -724
- package/dist/chunk-KI7XORTN.mjs +0 -417
- package/dist/chunk-LTMHFNFK.mjs +0 -690
- package/dist/chunk-LTNXTXRI.mjs +0 -659
- package/dist/chunk-M22BXHBR.mjs +0 -805
- package/dist/chunk-MH3A3LX6.mjs +0 -615
- package/dist/chunk-OQ6IGDXG.mjs +0 -553
- package/dist/chunk-QAFB3HXQ.mjs +0 -590
- package/dist/chunk-QQBKXHLU.mjs +0 -678
- package/dist/chunk-RDHYGES7.mjs +0 -678
- package/dist/chunk-SWTDBVYJ.mjs +0 -660
- package/dist/chunk-UIWL5JQB.mjs +0 -417
- package/dist/chunk-UQGI67WR.mjs +0 -417
- package/dist/chunk-UTZOO4XO.mjs +0 -553
- package/dist/chunk-X4F46I5L.mjs +0 -635
- package/dist/chunk-XKK7YHPX.mjs +0 -619
- package/dist/chunk-YCA4FTEK.mjs +0 -600
- package/dist/chunk-ZSZRRTJM.mjs +0 -719
- package/dist/client-BgmiMoil.d.mts +0 -1344
- package/dist/client-BgmiMoil.d.ts +0 -1344
- package/dist/client-BxGrPuuN.d.mts +0 -1191
- package/dist/client-BxGrPuuN.d.ts +0 -1191
- package/dist/client-D9seCH4K.d.mts +0 -1334
- package/dist/client-D9seCH4K.d.ts +0 -1334
- package/dist/client-DIXIh7rw.d.mts +0 -1193
- package/dist/client-DIXIh7rw.d.ts +0 -1193
- package/dist/client-DVHXWOHw.d.mts +0 -1245
- package/dist/client-DVHXWOHw.d.ts +0 -1245
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/parsers/parser-factory.d.ts +0 -69
- package/dist/parsers/parser-factory.d.ts.map +0 -1
- package/dist/parsers/parser-factory.js +0 -116
- package/dist/parsers/parser-factory.js.map +0 -1
- package/dist/parsers/python-parser.d.ts +0 -47
- package/dist/parsers/python-parser.d.ts.map +0 -1
- package/dist/parsers/python-parser.js +0 -243
- package/dist/parsers/python-parser.js.map +0 -1
- package/dist/parsers/typescript-parser.d.ts +0 -22
- package/dist/parsers/typescript-parser.d.ts.map +0 -1
- package/dist/parsers/typescript-parser.js +0 -242
- package/dist/parsers/typescript-parser.js.map +0 -1
- package/dist/scoring.d.ts +0 -120
- package/dist/scoring.d.ts.map +0 -1
- package/dist/scoring.js +0 -197
- package/dist/scoring.js.map +0 -1
- package/dist/types/language.d.ts +0 -172
- package/dist/types/language.d.ts.map +0 -1
- package/dist/types/language.js +0 -45
- package/dist/types/language.js.map +0 -1
- package/dist/types.d.ts +0 -122
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/utils/ast-parser.d.ts +0 -59
- package/dist/utils/ast-parser.d.ts.map +0 -1
- package/dist/utils/ast-parser.js +0 -213
- package/dist/utils/ast-parser.js.map +0 -1
- package/dist/utils/cli-helpers.d.ts +0 -54
- package/dist/utils/cli-helpers.d.ts.map +0 -1
- package/dist/utils/cli-helpers.js +0 -78
- package/dist/utils/cli-helpers.js.map +0 -1
- package/dist/utils/config.d.ts +0 -9
- package/dist/utils/config.d.ts.map +0 -1
- package/dist/utils/config.js +0 -80
- package/dist/utils/config.js.map +0 -1
- package/dist/utils/file-scanner.d.ts +0 -16
- package/dist/utils/file-scanner.d.ts.map +0 -1
- package/dist/utils/file-scanner.js +0 -104
- package/dist/utils/file-scanner.js.map +0 -1
- package/dist/utils/metrics.d.ts +0 -6
- package/dist/utils/metrics.d.ts.map +0 -1
- package/dist/utils/metrics.js +0 -8
- package/dist/utils/metrics.js.map +0 -1
|
@@ -159,6 +159,64 @@ var UnifiedReportSchema = z.object({
|
|
|
159
159
|
}).optional()
|
|
160
160
|
}).catchall(z.any());
|
|
161
161
|
|
|
162
|
+
// src/types/business.ts
|
|
163
|
+
import { z as z2 } from "zod";
|
|
164
|
+
var LeadSource = /* @__PURE__ */ ((LeadSource2) => {
|
|
165
|
+
LeadSource2["ClawMoreHero"] = "clawmore-hero";
|
|
166
|
+
LeadSource2["ClawMoreWaitlist"] = "clawmore-waitlist";
|
|
167
|
+
LeadSource2["ClawMoreBeta"] = "clawmore-beta";
|
|
168
|
+
LeadSource2["AiReadyPlatform"] = "aiready-platform";
|
|
169
|
+
return LeadSource2;
|
|
170
|
+
})(LeadSource || {});
|
|
171
|
+
var LeadSourceSchema = z2.nativeEnum(LeadSource);
|
|
172
|
+
var LeadSchema = z2.object({
|
|
173
|
+
id: z2.string(),
|
|
174
|
+
email: z2.string().email(),
|
|
175
|
+
name: z2.string().min(1),
|
|
176
|
+
interest: z2.string().default("General"),
|
|
177
|
+
notes: z2.string().optional(),
|
|
178
|
+
timestamp: z2.string().datetime(),
|
|
179
|
+
source: LeadSourceSchema,
|
|
180
|
+
status: z2.enum(["new", "contacted", "qualified", "converted", "archived"]).default("new")
|
|
181
|
+
});
|
|
182
|
+
var LeadSubmissionSchema = LeadSchema.omit({
|
|
183
|
+
id: true,
|
|
184
|
+
timestamp: true,
|
|
185
|
+
status: true
|
|
186
|
+
});
|
|
187
|
+
var ManagedAccountSchema = z2.object({
|
|
188
|
+
id: z2.string(),
|
|
189
|
+
// Internal UUID
|
|
190
|
+
accountId: z2.string(),
|
|
191
|
+
// AWS Account ID
|
|
192
|
+
userId: z2.string(),
|
|
193
|
+
// Owner (caopengau@gmail.com)
|
|
194
|
+
stripeSubscriptionId: z2.string(),
|
|
195
|
+
// AI Token Management
|
|
196
|
+
tokenStrategy: z2.enum(["managed", "byok"]).default("managed"),
|
|
197
|
+
byokConfig: z2.object({
|
|
198
|
+
openaiKey: z2.string().optional(),
|
|
199
|
+
anthropicKey: z2.string().optional(),
|
|
200
|
+
openrouterKey: z2.string().optional()
|
|
201
|
+
}).optional(),
|
|
202
|
+
// Financials (in cents)
|
|
203
|
+
baseFeeCents: z2.number().default(2900),
|
|
204
|
+
includedComputeCents: z2.number().default(1500),
|
|
205
|
+
// $15.00 AWS included
|
|
206
|
+
includedTokenCents: z2.number().default(500),
|
|
207
|
+
// $5.00 Managed Tokens included
|
|
208
|
+
// Pre-paid Balance (credits)
|
|
209
|
+
prepaidTokenBalanceCents: z2.number().default(0),
|
|
210
|
+
// Users buy these in $10 packs
|
|
211
|
+
currentMonthlyTokenSpendCents: z2.number().default(0),
|
|
212
|
+
// Governance
|
|
213
|
+
status: z2.enum(["provisioning", "active", "warning", "quarantined", "suspended"]).default("provisioning"),
|
|
214
|
+
lastCostSyncAt: z2.string().datetime().optional(),
|
|
215
|
+
region: z2.string().default("ap-southeast-2"),
|
|
216
|
+
// Alerting thresholds (percentage of includedComputeCents)
|
|
217
|
+
alertThresholds: z2.array(z2.number()).default([50, 80, 100, 150])
|
|
218
|
+
});
|
|
219
|
+
|
|
162
220
|
// src/types.ts
|
|
163
221
|
var GLOBAL_INFRA_OPTIONS = [
|
|
164
222
|
"rootDir",
|
|
@@ -667,6 +725,11 @@ export {
|
|
|
667
725
|
SpokeSummarySchema,
|
|
668
726
|
SpokeOutputSchema,
|
|
669
727
|
UnifiedReportSchema,
|
|
728
|
+
LeadSource,
|
|
729
|
+
LeadSourceSchema,
|
|
730
|
+
LeadSchema,
|
|
731
|
+
LeadSubmissionSchema,
|
|
732
|
+
ManagedAccountSchema,
|
|
670
733
|
GLOBAL_INFRA_OPTIONS,
|
|
671
734
|
GLOBAL_SCAN_OPTIONS,
|
|
672
735
|
COMMON_FINE_TUNING_OPTIONS,
|
|
@@ -401,6 +401,83 @@ interface GraphData {
|
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
+
/**
|
|
405
|
+
* Lead Source identifiers.
|
|
406
|
+
*/
|
|
407
|
+
declare enum LeadSource {
|
|
408
|
+
ClawMoreHero = "clawmore-hero",
|
|
409
|
+
ClawMoreWaitlist = "clawmore-waitlist",
|
|
410
|
+
ClawMoreBeta = "clawmore-beta",
|
|
411
|
+
AiReadyPlatform = "aiready-platform"
|
|
412
|
+
}
|
|
413
|
+
/** Zod schema for LeadSource enum */
|
|
414
|
+
declare const LeadSourceSchema: z.ZodEnum<typeof LeadSource>;
|
|
415
|
+
/**
|
|
416
|
+
* Business Lead schema for waitlists and beta signups.
|
|
417
|
+
*/
|
|
418
|
+
declare const LeadSchema: z.ZodObject<{
|
|
419
|
+
id: z.ZodString;
|
|
420
|
+
email: z.ZodString;
|
|
421
|
+
name: z.ZodString;
|
|
422
|
+
interest: z.ZodDefault<z.ZodString>;
|
|
423
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
424
|
+
timestamp: z.ZodString;
|
|
425
|
+
source: z.ZodEnum<typeof LeadSource>;
|
|
426
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
427
|
+
new: "new";
|
|
428
|
+
contacted: "contacted";
|
|
429
|
+
qualified: "qualified";
|
|
430
|
+
converted: "converted";
|
|
431
|
+
archived: "archived";
|
|
432
|
+
}>>;
|
|
433
|
+
}, z.core.$strip>;
|
|
434
|
+
type Lead = z.infer<typeof LeadSchema>;
|
|
435
|
+
/**
|
|
436
|
+
* Lead Submission (input from form)
|
|
437
|
+
*/
|
|
438
|
+
declare const LeadSubmissionSchema: z.ZodObject<{
|
|
439
|
+
source: z.ZodEnum<typeof LeadSource>;
|
|
440
|
+
email: z.ZodString;
|
|
441
|
+
name: z.ZodString;
|
|
442
|
+
interest: z.ZodDefault<z.ZodString>;
|
|
443
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
444
|
+
}, z.core.$strip>;
|
|
445
|
+
type LeadSubmission = z.infer<typeof LeadSubmissionSchema>;
|
|
446
|
+
/**
|
|
447
|
+
* Managed AWS Account metadata for the Account Vending Machine.
|
|
448
|
+
*/
|
|
449
|
+
declare const ManagedAccountSchema: z.ZodObject<{
|
|
450
|
+
id: z.ZodString;
|
|
451
|
+
accountId: z.ZodString;
|
|
452
|
+
userId: z.ZodString;
|
|
453
|
+
stripeSubscriptionId: z.ZodString;
|
|
454
|
+
tokenStrategy: z.ZodDefault<z.ZodEnum<{
|
|
455
|
+
managed: "managed";
|
|
456
|
+
byok: "byok";
|
|
457
|
+
}>>;
|
|
458
|
+
byokConfig: z.ZodOptional<z.ZodObject<{
|
|
459
|
+
openaiKey: z.ZodOptional<z.ZodString>;
|
|
460
|
+
anthropicKey: z.ZodOptional<z.ZodString>;
|
|
461
|
+
openrouterKey: z.ZodOptional<z.ZodString>;
|
|
462
|
+
}, z.core.$strip>>;
|
|
463
|
+
baseFeeCents: z.ZodDefault<z.ZodNumber>;
|
|
464
|
+
includedComputeCents: z.ZodDefault<z.ZodNumber>;
|
|
465
|
+
includedTokenCents: z.ZodDefault<z.ZodNumber>;
|
|
466
|
+
prepaidTokenBalanceCents: z.ZodDefault<z.ZodNumber>;
|
|
467
|
+
currentMonthlyTokenSpendCents: z.ZodDefault<z.ZodNumber>;
|
|
468
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
469
|
+
provisioning: "provisioning";
|
|
470
|
+
active: "active";
|
|
471
|
+
warning: "warning";
|
|
472
|
+
quarantined: "quarantined";
|
|
473
|
+
suspended: "suspended";
|
|
474
|
+
}>>;
|
|
475
|
+
lastCostSyncAt: z.ZodOptional<z.ZodString>;
|
|
476
|
+
region: z.ZodDefault<z.ZodString>;
|
|
477
|
+
alertThresholds: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
478
|
+
}, z.core.$strip>;
|
|
479
|
+
type ManagedAccount = z.infer<typeof ManagedAccountSchema>;
|
|
480
|
+
|
|
404
481
|
/**
|
|
405
482
|
* AI readiness configuration
|
|
406
483
|
*/
|
|
@@ -745,6 +822,7 @@ interface ExportInfo {
|
|
|
745
822
|
documentation?: {
|
|
746
823
|
content: string;
|
|
747
824
|
type: 'jsdoc' | 'docstring' | 'comment' | 'xml-doc';
|
|
825
|
+
loc?: SourceRange;
|
|
748
826
|
isStale?: boolean;
|
|
749
827
|
};
|
|
750
828
|
}
|
|
@@ -1133,4 +1211,4 @@ declare function formatToolScore(output: ToolScoringOutput): string;
|
|
|
1133
1211
|
*/
|
|
1134
1212
|
declare function generateHTML(graph: GraphData): string;
|
|
1135
1213
|
|
|
1136
|
-
export {
|
|
1214
|
+
export { LeadSubmissionSchema 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 GraphMetadata as H, type ImportInfo as I, type GraphNode as J, type Issue as K, type LanguageParser as L, type ModelContextTier as M, type NamingConvention as N, IssueSchema as O, type ProductivityImpact as P, IssueType as Q, IssueTypeSchema as R, type ScanOptions as S, ToolName as T, LANGUAGE_EXTENSIONS as U, type LanguageConfig as V, type Lead as W, LeadSchema as X, LeadSource as Y, LeadSourceSchema as Z, type LeadSubmission as _, type SpokeOutput as a, type Location as a0, LocationSchema as a1, type ManagedAccount as a2, ManagedAccountSchema as a3, type Metrics as a4, MetricsSchema as a5, ModelTier as a6, ModelTierSchema as a7, ParseError as a8, type ParseStatistics as a9, getRatingDisplay as aA, getRatingSlug as aB, getRatingWithContext as aC, getRecommendedThreshold as aD, getToolWeight as aE, normalizeToolName as aF, parseWeightString as aG, ReadinessRating as aa, RecommendationPriority as ab, SCORING_PROFILES as ac, SIZE_ADJUSTED_THRESHOLDS as ad, type ScanResult as ae, type ScoringConfig as af, ScoringProfile as ag, type ScoringResult as ah, SeveritySchema as ai, type SourceLocation as aj, type SourceRange as ak, SpokeOutputSchema as al, type SpokeSummary as am, SpokeSummarySchema as an, TOOL_NAME_MAP as ao, ToolNameSchema as ap, type ToolOptions 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, getProjectSizeTier as ay, getRating as az, type ToolScoringOutput as b, Severity as c, type ASTNode as d, type AIReadyConfig as e, type TokenBudget as f, type AcceptancePrediction as g, type ComprehensionDifficulty as h, type TechnicalValueChainSummary as i, type TechnicalValueChain as j, Language as k, type ExportInfo as l, type ParseResult as m, AnalysisResultSchema as n, AnalysisStatus as o, AnalysisStatusSchema as p, COMMON_FINE_TUNING_OPTIONS as q, CONTEXT_TIER_THRESHOLDS as r, type CommonASTNode as s, type Config as t, FRIENDLY_TOOL_NAMES as u, type FileContent as v, GLOBAL_SCAN_OPTIONS as w, type GraphData as x, type GraphEdge as y, type GraphIssueSeverity as z };
|
|
@@ -401,6 +401,83 @@ interface GraphData {
|
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
+
/**
|
|
405
|
+
* Lead Source identifiers.
|
|
406
|
+
*/
|
|
407
|
+
declare enum LeadSource {
|
|
408
|
+
ClawMoreHero = "clawmore-hero",
|
|
409
|
+
ClawMoreWaitlist = "clawmore-waitlist",
|
|
410
|
+
ClawMoreBeta = "clawmore-beta",
|
|
411
|
+
AiReadyPlatform = "aiready-platform"
|
|
412
|
+
}
|
|
413
|
+
/** Zod schema for LeadSource enum */
|
|
414
|
+
declare const LeadSourceSchema: z.ZodEnum<typeof LeadSource>;
|
|
415
|
+
/**
|
|
416
|
+
* Business Lead schema for waitlists and beta signups.
|
|
417
|
+
*/
|
|
418
|
+
declare const LeadSchema: z.ZodObject<{
|
|
419
|
+
id: z.ZodString;
|
|
420
|
+
email: z.ZodString;
|
|
421
|
+
name: z.ZodString;
|
|
422
|
+
interest: z.ZodDefault<z.ZodString>;
|
|
423
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
424
|
+
timestamp: z.ZodString;
|
|
425
|
+
source: z.ZodEnum<typeof LeadSource>;
|
|
426
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
427
|
+
new: "new";
|
|
428
|
+
contacted: "contacted";
|
|
429
|
+
qualified: "qualified";
|
|
430
|
+
converted: "converted";
|
|
431
|
+
archived: "archived";
|
|
432
|
+
}>>;
|
|
433
|
+
}, z.core.$strip>;
|
|
434
|
+
type Lead = z.infer<typeof LeadSchema>;
|
|
435
|
+
/**
|
|
436
|
+
* Lead Submission (input from form)
|
|
437
|
+
*/
|
|
438
|
+
declare const LeadSubmissionSchema: z.ZodObject<{
|
|
439
|
+
source: z.ZodEnum<typeof LeadSource>;
|
|
440
|
+
email: z.ZodString;
|
|
441
|
+
name: z.ZodString;
|
|
442
|
+
interest: z.ZodDefault<z.ZodString>;
|
|
443
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
444
|
+
}, z.core.$strip>;
|
|
445
|
+
type LeadSubmission = z.infer<typeof LeadSubmissionSchema>;
|
|
446
|
+
/**
|
|
447
|
+
* Managed AWS Account metadata for the Account Vending Machine.
|
|
448
|
+
*/
|
|
449
|
+
declare const ManagedAccountSchema: z.ZodObject<{
|
|
450
|
+
id: z.ZodString;
|
|
451
|
+
accountId: z.ZodString;
|
|
452
|
+
userId: z.ZodString;
|
|
453
|
+
stripeSubscriptionId: z.ZodString;
|
|
454
|
+
tokenStrategy: z.ZodDefault<z.ZodEnum<{
|
|
455
|
+
managed: "managed";
|
|
456
|
+
byok: "byok";
|
|
457
|
+
}>>;
|
|
458
|
+
byokConfig: z.ZodOptional<z.ZodObject<{
|
|
459
|
+
openaiKey: z.ZodOptional<z.ZodString>;
|
|
460
|
+
anthropicKey: z.ZodOptional<z.ZodString>;
|
|
461
|
+
openrouterKey: z.ZodOptional<z.ZodString>;
|
|
462
|
+
}, z.core.$strip>>;
|
|
463
|
+
baseFeeCents: z.ZodDefault<z.ZodNumber>;
|
|
464
|
+
includedComputeCents: z.ZodDefault<z.ZodNumber>;
|
|
465
|
+
includedTokenCents: z.ZodDefault<z.ZodNumber>;
|
|
466
|
+
prepaidTokenBalanceCents: z.ZodDefault<z.ZodNumber>;
|
|
467
|
+
currentMonthlyTokenSpendCents: z.ZodDefault<z.ZodNumber>;
|
|
468
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
469
|
+
provisioning: "provisioning";
|
|
470
|
+
active: "active";
|
|
471
|
+
warning: "warning";
|
|
472
|
+
quarantined: "quarantined";
|
|
473
|
+
suspended: "suspended";
|
|
474
|
+
}>>;
|
|
475
|
+
lastCostSyncAt: z.ZodOptional<z.ZodString>;
|
|
476
|
+
region: z.ZodDefault<z.ZodString>;
|
|
477
|
+
alertThresholds: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
478
|
+
}, z.core.$strip>;
|
|
479
|
+
type ManagedAccount = z.infer<typeof ManagedAccountSchema>;
|
|
480
|
+
|
|
404
481
|
/**
|
|
405
482
|
* AI readiness configuration
|
|
406
483
|
*/
|
|
@@ -745,6 +822,7 @@ interface ExportInfo {
|
|
|
745
822
|
documentation?: {
|
|
746
823
|
content: string;
|
|
747
824
|
type: 'jsdoc' | 'docstring' | 'comment' | 'xml-doc';
|
|
825
|
+
loc?: SourceRange;
|
|
748
826
|
isStale?: boolean;
|
|
749
827
|
};
|
|
750
828
|
}
|
|
@@ -1133,4 +1211,4 @@ declare function formatToolScore(output: ToolScoringOutput): string;
|
|
|
1133
1211
|
*/
|
|
1134
1212
|
declare function generateHTML(graph: GraphData): string;
|
|
1135
1213
|
|
|
1136
|
-
export {
|
|
1214
|
+
export { LeadSubmissionSchema 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 GraphMetadata as H, type ImportInfo as I, type GraphNode as J, type Issue as K, type LanguageParser as L, type ModelContextTier as M, type NamingConvention as N, IssueSchema as O, type ProductivityImpact as P, IssueType as Q, IssueTypeSchema as R, type ScanOptions as S, ToolName as T, LANGUAGE_EXTENSIONS as U, type LanguageConfig as V, type Lead as W, LeadSchema as X, LeadSource as Y, LeadSourceSchema as Z, type LeadSubmission as _, type SpokeOutput as a, type Location as a0, LocationSchema as a1, type ManagedAccount as a2, ManagedAccountSchema as a3, type Metrics as a4, MetricsSchema as a5, ModelTier as a6, ModelTierSchema as a7, ParseError as a8, type ParseStatistics as a9, getRatingDisplay as aA, getRatingSlug as aB, getRatingWithContext as aC, getRecommendedThreshold as aD, getToolWeight as aE, normalizeToolName as aF, parseWeightString as aG, ReadinessRating as aa, RecommendationPriority as ab, SCORING_PROFILES as ac, SIZE_ADJUSTED_THRESHOLDS as ad, type ScanResult as ae, type ScoringConfig as af, ScoringProfile as ag, type ScoringResult as ah, SeveritySchema as ai, type SourceLocation as aj, type SourceRange as ak, SpokeOutputSchema as al, type SpokeSummary as am, SpokeSummarySchema as an, TOOL_NAME_MAP as ao, ToolNameSchema as ap, type ToolOptions 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, getProjectSizeTier as ay, getRating as az, type ToolScoringOutput as b, Severity as c, type ASTNode as d, type AIReadyConfig as e, type TokenBudget as f, type AcceptancePrediction as g, type ComprehensionDifficulty as h, type TechnicalValueChainSummary as i, type TechnicalValueChain as j, Language as k, type ExportInfo as l, type ParseResult as m, AnalysisResultSchema as n, AnalysisStatus as o, AnalysisStatusSchema as p, COMMON_FINE_TUNING_OPTIONS as q, CONTEXT_TIER_THRESHOLDS as r, type CommonASTNode as s, type Config as t, FRIENDLY_TOOL_NAMES as u, type FileContent as v, GLOBAL_SCAN_OPTIONS as w, type GraphData as x, type GraphEdge as y, type GraphIssueSeverity as z };
|
package/dist/client.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as AIReadyConfig, g as AcceptancePrediction, A as AnalysisResult, o as AnalysisStatus, B as BusinessMetrics, q as COMMON_FINE_TUNING_OPTIONS, r as CONTEXT_TIER_THRESHOLDS, s as CommonASTNode, h as ComprehensionDifficulty, t as Config, C as CostConfig, D as DEFAULT_TOOL_WEIGHTS, l as ExportInfo, u as FRIENDLY_TOOL_NAMES, v as FileContent, G as GLOBAL_INFRA_OPTIONS, w as GLOBAL_SCAN_OPTIONS, x as GraphData, y as GraphEdge, z as GraphIssueSeverity, H as GraphMetadata, J as GraphNode, I as ImportInfo, K as Issue, Q as IssueType, U as LANGUAGE_EXTENSIONS, k as Language, V as LanguageConfig, L as LanguageParser, W as
|
|
1
|
+
export { e as AIReadyConfig, g as AcceptancePrediction, A as AnalysisResult, o as AnalysisStatus, B as BusinessMetrics, q as COMMON_FINE_TUNING_OPTIONS, r as CONTEXT_TIER_THRESHOLDS, s as CommonASTNode, h as ComprehensionDifficulty, t as Config, C as CostConfig, D as DEFAULT_TOOL_WEIGHTS, l as ExportInfo, u as FRIENDLY_TOOL_NAMES, v as FileContent, G as GLOBAL_INFRA_OPTIONS, w as GLOBAL_SCAN_OPTIONS, x as GraphData, y as GraphEdge, z as GraphIssueSeverity, H as GraphMetadata, J as GraphNode, I as ImportInfo, K as Issue, Q as IssueType, U as LANGUAGE_EXTENSIONS, k as Language, V as LanguageConfig, L as LanguageParser, W as Lead, X as LeadSchema, Y as LeadSource, Z as LeadSourceSchema, _ as LeadSubmission, $ as LeadSubmissionSchema, a0 as Location, a4 as Metrics, M as ModelContextTier, N as NamingConvention, a8 as ParseError, m as ParseResult, a9 as ParseStatistics, P as ProductivityImpact, aa as ReadinessRating, ab as RecommendationPriority, ac as SCORING_PROFILES, ad as SIZE_ADJUSTED_THRESHOLDS, S as ScanOptions, ae as ScanResult, af as ScoringConfig, ag as ScoringProfile, ah as ScoringResult, c as Severity, c as SeverityType, aj as SourceLocation, ak as SourceRange, a as SpokeOutput, ao as TOOL_NAME_MAP, j as TechnicalValueChain, i as TechnicalValueChainSummary, f as TokenBudget, T as ToolName, aq as ToolOptions, ar as ToolOutput, b as ToolScoringOutput, as as UnifiedReport, at as UnifiedReportSchema, au as calculateOverallScore, av as formatScore, aw as formatToolScore, ax as generateHTML, ay as getProjectSizeTier, az as getRating, aA as getRatingDisplay, aB as getRatingSlug, aC as getRatingWithContext, aD as getRecommendedThreshold, aE as getToolWeight, aF as normalizeToolName, aG as parseWeightString } from './client-CKcjnPXt.mjs';
|
|
2
2
|
import 'zod';
|
package/dist/client.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as AIReadyConfig, g as AcceptancePrediction, A as AnalysisResult, o as AnalysisStatus, B as BusinessMetrics, q as COMMON_FINE_TUNING_OPTIONS, r as CONTEXT_TIER_THRESHOLDS, s as CommonASTNode, h as ComprehensionDifficulty, t as Config, C as CostConfig, D as DEFAULT_TOOL_WEIGHTS, l as ExportInfo, u as FRIENDLY_TOOL_NAMES, v as FileContent, G as GLOBAL_INFRA_OPTIONS, w as GLOBAL_SCAN_OPTIONS, x as GraphData, y as GraphEdge, z as GraphIssueSeverity, H as GraphMetadata, J as GraphNode, I as ImportInfo, K as Issue, Q as IssueType, U as LANGUAGE_EXTENSIONS, k as Language, V as LanguageConfig, L as LanguageParser, W as
|
|
1
|
+
export { e as AIReadyConfig, g as AcceptancePrediction, A as AnalysisResult, o as AnalysisStatus, B as BusinessMetrics, q as COMMON_FINE_TUNING_OPTIONS, r as CONTEXT_TIER_THRESHOLDS, s as CommonASTNode, h as ComprehensionDifficulty, t as Config, C as CostConfig, D as DEFAULT_TOOL_WEIGHTS, l as ExportInfo, u as FRIENDLY_TOOL_NAMES, v as FileContent, G as GLOBAL_INFRA_OPTIONS, w as GLOBAL_SCAN_OPTIONS, x as GraphData, y as GraphEdge, z as GraphIssueSeverity, H as GraphMetadata, J as GraphNode, I as ImportInfo, K as Issue, Q as IssueType, U as LANGUAGE_EXTENSIONS, k as Language, V as LanguageConfig, L as LanguageParser, W as Lead, X as LeadSchema, Y as LeadSource, Z as LeadSourceSchema, _ as LeadSubmission, $ as LeadSubmissionSchema, a0 as Location, a4 as Metrics, M as ModelContextTier, N as NamingConvention, a8 as ParseError, m as ParseResult, a9 as ParseStatistics, P as ProductivityImpact, aa as ReadinessRating, ab as RecommendationPriority, ac as SCORING_PROFILES, ad as SIZE_ADJUSTED_THRESHOLDS, S as ScanOptions, ae as ScanResult, af as ScoringConfig, ag as ScoringProfile, ah as ScoringResult, c as Severity, c as SeverityType, aj as SourceLocation, ak as SourceRange, a as SpokeOutput, ao as TOOL_NAME_MAP, j as TechnicalValueChain, i as TechnicalValueChainSummary, f as TokenBudget, T as ToolName, aq as ToolOptions, ar as ToolOutput, b as ToolScoringOutput, as as UnifiedReport, at as UnifiedReportSchema, au as calculateOverallScore, av as formatScore, aw as formatToolScore, ax as generateHTML, ay as getProjectSizeTier, az as getRating, aA as getRatingDisplay, aB as getRatingSlug, aC as getRatingWithContext, aD as getRecommendedThreshold, aE as getToolWeight, aF as normalizeToolName, aG as parseWeightString } from './client-CKcjnPXt.js';
|
|
2
2
|
import 'zod';
|
package/dist/client.js
CHANGED
|
@@ -30,6 +30,10 @@ __export(client_exports, {
|
|
|
30
30
|
IssueType: () => IssueType,
|
|
31
31
|
LANGUAGE_EXTENSIONS: () => LANGUAGE_EXTENSIONS,
|
|
32
32
|
Language: () => Language,
|
|
33
|
+
LeadSchema: () => LeadSchema,
|
|
34
|
+
LeadSource: () => LeadSource,
|
|
35
|
+
LeadSourceSchema: () => LeadSourceSchema,
|
|
36
|
+
LeadSubmissionSchema: () => LeadSubmissionSchema,
|
|
33
37
|
ParseError: () => ParseError,
|
|
34
38
|
ReadinessRating: () => ReadinessRating,
|
|
35
39
|
RecommendationPriority: () => RecommendationPriority,
|
|
@@ -217,6 +221,64 @@ var UnifiedReportSchema = import_zod.z.object({
|
|
|
217
221
|
}).optional()
|
|
218
222
|
}).catchall(import_zod.z.any());
|
|
219
223
|
|
|
224
|
+
// src/types/business.ts
|
|
225
|
+
var import_zod2 = require("zod");
|
|
226
|
+
var LeadSource = /* @__PURE__ */ ((LeadSource2) => {
|
|
227
|
+
LeadSource2["ClawMoreHero"] = "clawmore-hero";
|
|
228
|
+
LeadSource2["ClawMoreWaitlist"] = "clawmore-waitlist";
|
|
229
|
+
LeadSource2["ClawMoreBeta"] = "clawmore-beta";
|
|
230
|
+
LeadSource2["AiReadyPlatform"] = "aiready-platform";
|
|
231
|
+
return LeadSource2;
|
|
232
|
+
})(LeadSource || {});
|
|
233
|
+
var LeadSourceSchema = import_zod2.z.nativeEnum(LeadSource);
|
|
234
|
+
var LeadSchema = import_zod2.z.object({
|
|
235
|
+
id: import_zod2.z.string(),
|
|
236
|
+
email: import_zod2.z.string().email(),
|
|
237
|
+
name: import_zod2.z.string().min(1),
|
|
238
|
+
interest: import_zod2.z.string().default("General"),
|
|
239
|
+
notes: import_zod2.z.string().optional(),
|
|
240
|
+
timestamp: import_zod2.z.string().datetime(),
|
|
241
|
+
source: LeadSourceSchema,
|
|
242
|
+
status: import_zod2.z.enum(["new", "contacted", "qualified", "converted", "archived"]).default("new")
|
|
243
|
+
});
|
|
244
|
+
var LeadSubmissionSchema = LeadSchema.omit({
|
|
245
|
+
id: true,
|
|
246
|
+
timestamp: true,
|
|
247
|
+
status: true
|
|
248
|
+
});
|
|
249
|
+
var ManagedAccountSchema = import_zod2.z.object({
|
|
250
|
+
id: import_zod2.z.string(),
|
|
251
|
+
// Internal UUID
|
|
252
|
+
accountId: import_zod2.z.string(),
|
|
253
|
+
// AWS Account ID
|
|
254
|
+
userId: import_zod2.z.string(),
|
|
255
|
+
// Owner (caopengau@gmail.com)
|
|
256
|
+
stripeSubscriptionId: import_zod2.z.string(),
|
|
257
|
+
// AI Token Management
|
|
258
|
+
tokenStrategy: import_zod2.z.enum(["managed", "byok"]).default("managed"),
|
|
259
|
+
byokConfig: import_zod2.z.object({
|
|
260
|
+
openaiKey: import_zod2.z.string().optional(),
|
|
261
|
+
anthropicKey: import_zod2.z.string().optional(),
|
|
262
|
+
openrouterKey: import_zod2.z.string().optional()
|
|
263
|
+
}).optional(),
|
|
264
|
+
// Financials (in cents)
|
|
265
|
+
baseFeeCents: import_zod2.z.number().default(2900),
|
|
266
|
+
includedComputeCents: import_zod2.z.number().default(1500),
|
|
267
|
+
// $15.00 AWS included
|
|
268
|
+
includedTokenCents: import_zod2.z.number().default(500),
|
|
269
|
+
// $5.00 Managed Tokens included
|
|
270
|
+
// Pre-paid Balance (credits)
|
|
271
|
+
prepaidTokenBalanceCents: import_zod2.z.number().default(0),
|
|
272
|
+
// Users buy these in $10 packs
|
|
273
|
+
currentMonthlyTokenSpendCents: import_zod2.z.number().default(0),
|
|
274
|
+
// Governance
|
|
275
|
+
status: import_zod2.z.enum(["provisioning", "active", "warning", "quarantined", "suspended"]).default("provisioning"),
|
|
276
|
+
lastCostSyncAt: import_zod2.z.string().datetime().optional(),
|
|
277
|
+
region: import_zod2.z.string().default("ap-southeast-2"),
|
|
278
|
+
// Alerting thresholds (percentage of includedComputeCents)
|
|
279
|
+
alertThresholds: import_zod2.z.array(import_zod2.z.number()).default([50, 80, 100, 150])
|
|
280
|
+
});
|
|
281
|
+
|
|
220
282
|
// src/types.ts
|
|
221
283
|
var GLOBAL_INFRA_OPTIONS = [
|
|
222
284
|
"rootDir",
|
|
@@ -717,6 +779,10 @@ function generateHTML(graph) {
|
|
|
717
779
|
IssueType,
|
|
718
780
|
LANGUAGE_EXTENSIONS,
|
|
719
781
|
Language,
|
|
782
|
+
LeadSchema,
|
|
783
|
+
LeadSource,
|
|
784
|
+
LeadSourceSchema,
|
|
785
|
+
LeadSubmissionSchema,
|
|
720
786
|
ParseError,
|
|
721
787
|
ReadinessRating,
|
|
722
788
|
RecommendationPriority,
|
package/dist/client.mjs
CHANGED
|
@@ -9,6 +9,10 @@ import {
|
|
|
9
9
|
IssueType,
|
|
10
10
|
LANGUAGE_EXTENSIONS,
|
|
11
11
|
Language,
|
|
12
|
+
LeadSchema,
|
|
13
|
+
LeadSource,
|
|
14
|
+
LeadSourceSchema,
|
|
15
|
+
LeadSubmissionSchema,
|
|
12
16
|
ParseError,
|
|
13
17
|
ReadinessRating,
|
|
14
18
|
RecommendationPriority,
|
|
@@ -32,7 +36,7 @@ import {
|
|
|
32
36
|
getToolWeight,
|
|
33
37
|
normalizeToolName,
|
|
34
38
|
parseWeightString
|
|
35
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-Q55AMEFV.mjs";
|
|
36
40
|
export {
|
|
37
41
|
AnalysisStatus,
|
|
38
42
|
COMMON_FINE_TUNING_OPTIONS,
|
|
@@ -44,6 +48,10 @@ export {
|
|
|
44
48
|
IssueType,
|
|
45
49
|
LANGUAGE_EXTENSIONS,
|
|
46
50
|
Language,
|
|
51
|
+
LeadSchema,
|
|
52
|
+
LeadSource,
|
|
53
|
+
LeadSourceSchema,
|
|
54
|
+
LeadSubmissionSchema,
|
|
47
55
|
ParseError,
|
|
48
56
|
ReadinessRating,
|
|
49
57
|
RecommendationPriority,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolName, S as ScanOptions, a as SpokeOutput, b as ToolScoringOutput, c as Severity, A as AnalysisResult, E as ExportWithImports, d as ASTNode, F as FileImport, e as AIReadyConfig, M as ModelContextTier, C as CostConfig, f as TokenBudget, P as ProductivityImpact, g as AcceptancePrediction, h as ComprehensionDifficulty, i as TechnicalValueChainSummary, j as TechnicalValueChain, L as LanguageParser, k as Language, l as ExportInfo, m as ParseResult, N as NamingConvention, I as ImportInfo } from './client-
|
|
2
|
-
export { n as AnalysisResultSchema, o as AnalysisStatus, p as AnalysisStatusSchema, B as BusinessMetrics, q as COMMON_FINE_TUNING_OPTIONS, r as CONTEXT_TIER_THRESHOLDS, s as CommonASTNode, t as Config, D as DEFAULT_TOOL_WEIGHTS, u as FRIENDLY_TOOL_NAMES, v as FileContent, G as GLOBAL_INFRA_OPTIONS, w as GLOBAL_SCAN_OPTIONS, x as GraphData, y as GraphEdge, z as GraphIssueSeverity, H as GraphMetadata, J as GraphNode, K as Issue, O as IssueSchema, Q as IssueType, R as IssueTypeSchema, U as LANGUAGE_EXTENSIONS, V as LanguageConfig, W as
|
|
1
|
+
import { T as ToolName, S as ScanOptions, a as SpokeOutput, b as ToolScoringOutput, c as Severity, A as AnalysisResult, E as ExportWithImports, d as ASTNode, F as FileImport, e as AIReadyConfig, M as ModelContextTier, C as CostConfig, f as TokenBudget, P as ProductivityImpact, g as AcceptancePrediction, h as ComprehensionDifficulty, i as TechnicalValueChainSummary, j as TechnicalValueChain, L as LanguageParser, k as Language, l as ExportInfo, m as ParseResult, N as NamingConvention, I as ImportInfo } from './client-CKcjnPXt.mjs';
|
|
2
|
+
export { n as AnalysisResultSchema, o as AnalysisStatus, p as AnalysisStatusSchema, B as BusinessMetrics, q as COMMON_FINE_TUNING_OPTIONS, r as CONTEXT_TIER_THRESHOLDS, s as CommonASTNode, t as Config, D as DEFAULT_TOOL_WEIGHTS, u as FRIENDLY_TOOL_NAMES, v as FileContent, G as GLOBAL_INFRA_OPTIONS, w as GLOBAL_SCAN_OPTIONS, x as GraphData, y as GraphEdge, z as GraphIssueSeverity, H as GraphMetadata, J as GraphNode, K as Issue, O as IssueSchema, Q as IssueType, R as IssueTypeSchema, U as LANGUAGE_EXTENSIONS, V as LanguageConfig, W as Lead, X as LeadSchema, Y as LeadSource, Z as LeadSourceSchema, _ as LeadSubmission, $ as LeadSubmissionSchema, a0 as Location, a1 as LocationSchema, a2 as ManagedAccount, a3 as ManagedAccountSchema, a4 as Metrics, a5 as MetricsSchema, a6 as ModelTier, a7 as ModelTierSchema, a8 as ParseError, a9 as ParseStatistics, aa as ReadinessRating, ab as RecommendationPriority, ac as SCORING_PROFILES, ad as SIZE_ADJUSTED_THRESHOLDS, ae as ScanResult, af as ScoringConfig, ag as ScoringProfile, ah as ScoringResult, ai as SeveritySchema, aj as SourceLocation, ak as SourceRange, al as SpokeOutputSchema, am as SpokeSummary, an as SpokeSummarySchema, ao as TOOL_NAME_MAP, ap as ToolNameSchema, aq as ToolOptions, ar as ToolOutput, as as UnifiedReport, at as UnifiedReportSchema, au as calculateOverallScore, av as formatScore, aw as formatToolScore, ax as generateHTML, ay as getProjectSizeTier, az as getRating, aA as getRatingDisplay, aB as getRatingSlug, aC as getRatingWithContext, aD as getRecommendedThreshold, aE as getToolWeight, aF as normalizeToolName, aG as parseWeightString } from './client-CKcjnPXt.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import * as Parser from 'web-tree-sitter';
|
|
5
5
|
import { TSESTree } from '@typescript-eslint/typescript-estree';
|
|
@@ -1096,14 +1096,22 @@ interface DocDriftRisk {
|
|
|
1096
1096
|
uncommentedExports: number;
|
|
1097
1097
|
outdatedComments: number;
|
|
1098
1098
|
undocumentedComplexity: number;
|
|
1099
|
+
actualDrift: number;
|
|
1099
1100
|
};
|
|
1100
1101
|
recommendations: string[];
|
|
1101
1102
|
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Calculate the documentation drift risk score based on various metrics.
|
|
1105
|
+
*
|
|
1106
|
+
* @param params - The raw metrics for doc-drift analysis
|
|
1107
|
+
* @returns The calculated risk score and recommendations
|
|
1108
|
+
*/
|
|
1102
1109
|
declare function calculateDocDrift(params: {
|
|
1103
1110
|
uncommentedExports: number;
|
|
1104
1111
|
totalExports: number;
|
|
1105
1112
|
outdatedComments: number;
|
|
1106
1113
|
undocumentedComplexity: number;
|
|
1114
|
+
actualDrift: number;
|
|
1107
1115
|
}): DocDriftRisk;
|
|
1108
1116
|
|
|
1109
1117
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolName, S as ScanOptions, a as SpokeOutput, b as ToolScoringOutput, c as Severity, A as AnalysisResult, E as ExportWithImports, d as ASTNode, F as FileImport, e as AIReadyConfig, M as ModelContextTier, C as CostConfig, f as TokenBudget, P as ProductivityImpact, g as AcceptancePrediction, h as ComprehensionDifficulty, i as TechnicalValueChainSummary, j as TechnicalValueChain, L as LanguageParser, k as Language, l as ExportInfo, m as ParseResult, N as NamingConvention, I as ImportInfo } from './client-
|
|
2
|
-
export { n as AnalysisResultSchema, o as AnalysisStatus, p as AnalysisStatusSchema, B as BusinessMetrics, q as COMMON_FINE_TUNING_OPTIONS, r as CONTEXT_TIER_THRESHOLDS, s as CommonASTNode, t as Config, D as DEFAULT_TOOL_WEIGHTS, u as FRIENDLY_TOOL_NAMES, v as FileContent, G as GLOBAL_INFRA_OPTIONS, w as GLOBAL_SCAN_OPTIONS, x as GraphData, y as GraphEdge, z as GraphIssueSeverity, H as GraphMetadata, J as GraphNode, K as Issue, O as IssueSchema, Q as IssueType, R as IssueTypeSchema, U as LANGUAGE_EXTENSIONS, V as LanguageConfig, W as
|
|
1
|
+
import { T as ToolName, S as ScanOptions, a as SpokeOutput, b as ToolScoringOutput, c as Severity, A as AnalysisResult, E as ExportWithImports, d as ASTNode, F as FileImport, e as AIReadyConfig, M as ModelContextTier, C as CostConfig, f as TokenBudget, P as ProductivityImpact, g as AcceptancePrediction, h as ComprehensionDifficulty, i as TechnicalValueChainSummary, j as TechnicalValueChain, L as LanguageParser, k as Language, l as ExportInfo, m as ParseResult, N as NamingConvention, I as ImportInfo } from './client-CKcjnPXt.js';
|
|
2
|
+
export { n as AnalysisResultSchema, o as AnalysisStatus, p as AnalysisStatusSchema, B as BusinessMetrics, q as COMMON_FINE_TUNING_OPTIONS, r as CONTEXT_TIER_THRESHOLDS, s as CommonASTNode, t as Config, D as DEFAULT_TOOL_WEIGHTS, u as FRIENDLY_TOOL_NAMES, v as FileContent, G as GLOBAL_INFRA_OPTIONS, w as GLOBAL_SCAN_OPTIONS, x as GraphData, y as GraphEdge, z as GraphIssueSeverity, H as GraphMetadata, J as GraphNode, K as Issue, O as IssueSchema, Q as IssueType, R as IssueTypeSchema, U as LANGUAGE_EXTENSIONS, V as LanguageConfig, W as Lead, X as LeadSchema, Y as LeadSource, Z as LeadSourceSchema, _ as LeadSubmission, $ as LeadSubmissionSchema, a0 as Location, a1 as LocationSchema, a2 as ManagedAccount, a3 as ManagedAccountSchema, a4 as Metrics, a5 as MetricsSchema, a6 as ModelTier, a7 as ModelTierSchema, a8 as ParseError, a9 as ParseStatistics, aa as ReadinessRating, ab as RecommendationPriority, ac as SCORING_PROFILES, ad as SIZE_ADJUSTED_THRESHOLDS, ae as ScanResult, af as ScoringConfig, ag as ScoringProfile, ah as ScoringResult, ai as SeveritySchema, aj as SourceLocation, ak as SourceRange, al as SpokeOutputSchema, am as SpokeSummary, an as SpokeSummarySchema, ao as TOOL_NAME_MAP, ap as ToolNameSchema, aq as ToolOptions, ar as ToolOutput, as as UnifiedReport, at as UnifiedReportSchema, au as calculateOverallScore, av as formatScore, aw as formatToolScore, ax as generateHTML, ay as getProjectSizeTier, az as getRating, aA as getRatingDisplay, aB as getRatingSlug, aC as getRatingWithContext, aD as getRecommendedThreshold, aE as getToolWeight, aF as normalizeToolName, aG as parseWeightString } from './client-CKcjnPXt.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import * as Parser from 'web-tree-sitter';
|
|
5
5
|
import { TSESTree } from '@typescript-eslint/typescript-estree';
|
|
@@ -1096,14 +1096,22 @@ interface DocDriftRisk {
|
|
|
1096
1096
|
uncommentedExports: number;
|
|
1097
1097
|
outdatedComments: number;
|
|
1098
1098
|
undocumentedComplexity: number;
|
|
1099
|
+
actualDrift: number;
|
|
1099
1100
|
};
|
|
1100
1101
|
recommendations: string[];
|
|
1101
1102
|
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Calculate the documentation drift risk score based on various metrics.
|
|
1105
|
+
*
|
|
1106
|
+
* @param params - The raw metrics for doc-drift analysis
|
|
1107
|
+
* @returns The calculated risk score and recommendations
|
|
1108
|
+
*/
|
|
1102
1109
|
declare function calculateDocDrift(params: {
|
|
1103
1110
|
uncommentedExports: number;
|
|
1104
1111
|
totalExports: number;
|
|
1105
1112
|
outdatedComments: number;
|
|
1106
1113
|
undocumentedComplexity: number;
|
|
1114
|
+
actualDrift: number;
|
|
1107
1115
|
}): DocDriftRisk;
|
|
1108
1116
|
|
|
1109
1117
|
/**
|