@aiready/context-analyzer 0.21.10 → 0.21.12
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/.turbo/turbo-build.log +11 -11
- package/.turbo/turbo-test.log +28 -28
- package/dist/chunk-BW463GQB.mjs +1767 -0
- package/dist/chunk-CAX2MOUZ.mjs +1801 -0
- package/dist/chunk-J5TA3AZU.mjs +1795 -0
- package/dist/chunk-UXC6QUZ7.mjs +1801 -0
- package/dist/chunk-WTQJNY4U.mjs +1785 -0
- package/dist/chunk-XBFM2Z4O.mjs +1792 -0
- package/dist/cli.js +282 -220
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +3 -5
- package/dist/index.d.ts +3 -5
- package/dist/index.js +286 -224
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/__tests__/cluster-detector.test.ts +5 -8
- package/src/__tests__/fragmentation-coupling.test.ts +6 -3
- package/src/analyzer.ts +1 -224
- package/src/classifier.ts +11 -0
- package/src/cluster-detector.ts +22 -5
- package/src/heuristics.ts +150 -81
- package/src/mapper.ts +118 -0
- package/src/metrics.ts +13 -12
- package/src/orchestrator.ts +136 -0
- package/src/remediation.ts +5 -0
- package/src/types.ts +1 -0
package/src/remediation.ts
CHANGED
|
@@ -59,6 +59,11 @@ export function getClassificationRecommendations(
|
|
|
59
59
|
'Next.js App Router page detected - metadata/JSON-LD/component pattern is cohesive',
|
|
60
60
|
'Multiple exports (metadata, faqJsonLd, default) serve single page purpose',
|
|
61
61
|
];
|
|
62
|
+
case 'spoke-module':
|
|
63
|
+
return [
|
|
64
|
+
'Spoke module detected - intentional monorepo separation is good for modularity',
|
|
65
|
+
'Ensure this spoke only exports what is necessary for the hub or other spokes',
|
|
66
|
+
];
|
|
62
67
|
case 'mixed-concerns':
|
|
63
68
|
return [
|
|
64
69
|
'Consider splitting this file by domain',
|
package/src/types.ts
CHANGED
|
@@ -88,6 +88,7 @@ export type FileClassification =
|
|
|
88
88
|
| 'email-template' // Email templates/layouts with structural cohesion
|
|
89
89
|
| 'parser-file' // Parser/transformer files with single transformation purpose
|
|
90
90
|
| 'nextjs-page' // Next.js App Router page with SEO/structured data exports
|
|
91
|
+
| 'spoke-module' // Intentional monorepo spoke package file
|
|
91
92
|
| 'mixed-concerns' // Multiple domains, potential refactoring candidate
|
|
92
93
|
| 'unknown'; // Unable to classify
|
|
93
94
|
|