@principal-ai/codebase-composition 0.2.9 → 0.2.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/package.json +5 -4
- package/dist/adapters/NodeFileSystemAdapter.d.ts +0 -28
- package/dist/adapters/NodeFileSystemAdapter.d.ts.map +0 -1
- package/dist/adapters/NodeFileSystemAdapter.js +0 -128
- package/dist/adapters/NodeFileSystemAdapter.js.map +0 -1
- package/dist/helpers/QualityMetricsCalculator.d.ts +0 -46
- package/dist/helpers/QualityMetricsCalculator.d.ts.map +0 -1
- package/dist/helpers/QualityMetricsCalculator.js +0 -163
- package/dist/helpers/QualityMetricsCalculator.js.map +0 -1
- package/dist/helpers/packageLayerHelpers.d.ts +0 -30
- package/dist/helpers/packageLayerHelpers.d.ts.map +0 -1
- package/dist/helpers/packageLayerHelpers.js +0 -88
- package/dist/helpers/packageLayerHelpers.js.map +0 -1
- package/dist/index.d.ts +0 -11
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -14
- package/dist/index.js.map +0 -1
- package/dist/modules/DependencyLayerModule.d.ts +0 -44
- package/dist/modules/DependencyLayerModule.d.ts.map +0 -1
- package/dist/modules/DependencyLayerModule.js +0 -282
- package/dist/modules/DependencyLayerModule.js.map +0 -1
- package/dist/modules/FileSystemModule.d.ts +0 -30
- package/dist/modules/FileSystemModule.d.ts.map +0 -1
- package/dist/modules/FileSystemModule.js +0 -43
- package/dist/modules/FileSystemModule.js.map +0 -1
- package/dist/modules/FileTypeLayerModule.d.ts +0 -34
- package/dist/modules/FileTypeLayerModule.d.ts.map +0 -1
- package/dist/modules/FileTypeLayerModule.js +0 -165
- package/dist/modules/FileTypeLayerModule.js.map +0 -1
- package/dist/modules/FrameworkLayerModule.d.ts +0 -22
- package/dist/modules/FrameworkLayerModule.d.ts.map +0 -1
- package/dist/modules/FrameworkLayerModule.js +0 -384
- package/dist/modules/FrameworkLayerModule.js.map +0 -1
- package/dist/modules/PackageLayerModule.d.ts +0 -23
- package/dist/modules/PackageLayerModule.d.ts.map +0 -1
- package/dist/modules/PackageLayerModule.js +0 -775
- package/dist/modules/PackageLayerModule.js.map +0 -1
- package/dist/modules/TypeExtractionModule.d.ts +0 -37
- package/dist/modules/TypeExtractionModule.d.ts.map +0 -1
- package/dist/modules/TypeExtractionModule.js +0 -141
- package/dist/modules/TypeExtractionModule.js.map +0 -1
- package/dist/modules/VersionControlLayerModule.d.ts +0 -10
- package/dist/modules/VersionControlLayerModule.d.ts.map +0 -1
- package/dist/modules/VersionControlLayerModule.js +0 -26
- package/dist/modules/VersionControlLayerModule.js.map +0 -1
- package/dist/modules/__fixtures__/typescript-packages/complex-types/src/index.d.ts +0 -4
- package/dist/modules/__fixtures__/typescript-packages/complex-types/src/index.d.ts.map +0 -1
- package/dist/modules/__fixtures__/typescript-packages/complex-types/src/index.js +0 -3
- package/dist/modules/__fixtures__/typescript-packages/complex-types/src/index.js.map +0 -1
- package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/category.d.ts +0 -15
- package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/category.d.ts.map +0 -1
- package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/category.js +0 -2
- package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/category.js.map +0 -1
- package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/product.d.ts +0 -34
- package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/product.d.ts.map +0 -1
- package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/product.js +0 -19
- package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/product.js.map +0 -1
- package/dist/modules/__fixtures__/typescript-packages/simple-types/index.d.ts +0 -39
- package/dist/modules/__fixtures__/typescript-packages/simple-types/index.d.ts.map +0 -1
- package/dist/modules/__fixtures__/typescript-packages/simple-types/index.js +0 -36
- package/dist/modules/__fixtures__/typescript-packages/simple-types/index.js.map +0 -1
- package/dist/modules/extractors/TypeScriptExtractor.d.ts +0 -18
- package/dist/modules/extractors/TypeScriptExtractor.d.ts.map +0 -1
- package/dist/modules/extractors/TypeScriptExtractor.js +0 -322
- package/dist/modules/extractors/TypeScriptExtractor.js.map +0 -1
- package/dist/modules/index.d.ts +0 -13
- package/dist/modules/index.d.ts.map +0 -1
- package/dist/modules/index.js +0 -10
- package/dist/modules/index.js.map +0 -1
- package/dist/providers/GitVersionControlProvider.d.ts +0 -108
- package/dist/providers/GitVersionControlProvider.d.ts.map +0 -1
- package/dist/providers/GitVersionControlProvider.js +0 -375
- package/dist/providers/GitVersionControlProvider.js.map +0 -1
- package/dist/providers/PackageManagerApiProvider.d.ts +0 -78
- package/dist/providers/PackageManagerApiProvider.d.ts.map +0 -1
- package/dist/providers/PackageManagerApiProvider.js +0 -10
- package/dist/providers/PackageManagerApiProvider.js.map +0 -1
- package/dist/providers/index.d.ts +0 -4
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/index.js +0 -5
- package/dist/providers/index.js.map +0 -1
- package/dist/services/FilesystemService.d.ts +0 -59
- package/dist/services/FilesystemService.d.ts.map +0 -1
- package/dist/services/FilesystemService.js +0 -394
- package/dist/services/FilesystemService.js.map +0 -1
- package/dist/services/index.d.ts +0 -2
- package/dist/services/index.d.ts.map +0 -1
- package/dist/services/index.js +0 -3
- package/dist/services/index.js.map +0 -1
- package/dist/types/file-system.d.ts +0 -6
- package/dist/types/file-system.d.ts.map +0 -1
- package/dist/types/file-system.js +0 -6
- package/dist/types/file-system.js.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +0 -1
- package/dist/types/layer-types.d.ts +0 -205
- package/dist/types/layer-types.d.ts.map +0 -1
- package/dist/types/layer-types.js +0 -6
- package/dist/types/layer-types.js.map +0 -1
- package/dist/types/version-control-layer.d.ts +0 -53
- package/dist/types/version-control-layer.d.ts.map +0 -1
- package/dist/types/version-control-layer.js +0 -2
- package/dist/types/version-control-layer.js.map +0 -1
- package/dist/types/workspace-boundaries.d.ts +0 -17
- package/dist/types/workspace-boundaries.d.ts.map +0 -1
- package/dist/types/workspace-boundaries.js +0 -6
- package/dist/types/workspace-boundaries.js.map +0 -1
|
@@ -1,384 +0,0 @@
|
|
|
1
|
-
// Framework definitions with their identifying dependencies
|
|
2
|
-
const FRAMEWORK_DEFINITIONS = {
|
|
3
|
-
// UI Frameworks
|
|
4
|
-
react: {
|
|
5
|
-
name: 'React',
|
|
6
|
-
category: 'ui',
|
|
7
|
-
deps: ['react', 'react-dom'],
|
|
8
|
-
color: '#61DAFB',
|
|
9
|
-
icon: 'atom',
|
|
10
|
-
},
|
|
11
|
-
vue: {
|
|
12
|
-
name: 'Vue',
|
|
13
|
-
category: 'ui',
|
|
14
|
-
deps: ['vue'],
|
|
15
|
-
color: '#4FC08D',
|
|
16
|
-
icon: 'triangle',
|
|
17
|
-
},
|
|
18
|
-
angular: {
|
|
19
|
-
name: 'Angular',
|
|
20
|
-
category: 'ui',
|
|
21
|
-
deps: ['@angular/core'],
|
|
22
|
-
color: '#DD0031',
|
|
23
|
-
icon: 'hexagon',
|
|
24
|
-
},
|
|
25
|
-
svelte: {
|
|
26
|
-
name: 'Svelte',
|
|
27
|
-
category: 'ui',
|
|
28
|
-
deps: ['svelte'],
|
|
29
|
-
color: '#FF3E00',
|
|
30
|
-
icon: 'flame',
|
|
31
|
-
},
|
|
32
|
-
solid: {
|
|
33
|
-
name: 'Solid',
|
|
34
|
-
category: 'ui',
|
|
35
|
-
deps: ['solid-js'],
|
|
36
|
-
color: '#2C4F7C',
|
|
37
|
-
icon: 'box',
|
|
38
|
-
},
|
|
39
|
-
preact: {
|
|
40
|
-
name: 'Preact',
|
|
41
|
-
category: 'ui',
|
|
42
|
-
deps: ['preact'],
|
|
43
|
-
color: '#673AB8',
|
|
44
|
-
icon: 'feather',
|
|
45
|
-
},
|
|
46
|
-
// Backend Frameworks
|
|
47
|
-
express: {
|
|
48
|
-
name: 'Express',
|
|
49
|
-
category: 'backend',
|
|
50
|
-
deps: ['express'],
|
|
51
|
-
color: '#000000',
|
|
52
|
-
icon: 'train',
|
|
53
|
-
},
|
|
54
|
-
fastify: {
|
|
55
|
-
name: 'Fastify',
|
|
56
|
-
category: 'backend',
|
|
57
|
-
deps: ['fastify'],
|
|
58
|
-
color: '#000000',
|
|
59
|
-
icon: 'zap',
|
|
60
|
-
},
|
|
61
|
-
nestjs: {
|
|
62
|
-
name: 'NestJS',
|
|
63
|
-
category: 'backend',
|
|
64
|
-
deps: ['@nestjs/core'],
|
|
65
|
-
color: '#E0234E',
|
|
66
|
-
icon: 'cat',
|
|
67
|
-
},
|
|
68
|
-
koa: {
|
|
69
|
-
name: 'Koa',
|
|
70
|
-
category: 'backend',
|
|
71
|
-
deps: ['koa'],
|
|
72
|
-
color: '#33333D',
|
|
73
|
-
icon: 'cloud',
|
|
74
|
-
},
|
|
75
|
-
hapi: {
|
|
76
|
-
name: 'Hapi',
|
|
77
|
-
category: 'backend',
|
|
78
|
-
deps: ['@hapi/hapi', 'hapi'],
|
|
79
|
-
color: '#F07100',
|
|
80
|
-
icon: 'shield',
|
|
81
|
-
},
|
|
82
|
-
// Python Backend Frameworks
|
|
83
|
-
django: {
|
|
84
|
-
name: 'Django',
|
|
85
|
-
category: 'backend',
|
|
86
|
-
deps: ['django'],
|
|
87
|
-
color: '#092E20',
|
|
88
|
-
icon: 'layers',
|
|
89
|
-
},
|
|
90
|
-
flask: {
|
|
91
|
-
name: 'Flask',
|
|
92
|
-
category: 'backend',
|
|
93
|
-
deps: ['flask'],
|
|
94
|
-
color: '#000000',
|
|
95
|
-
icon: 'flask-conical',
|
|
96
|
-
},
|
|
97
|
-
fastapi: {
|
|
98
|
-
name: 'FastAPI',
|
|
99
|
-
category: 'backend',
|
|
100
|
-
deps: ['fastapi'],
|
|
101
|
-
color: '#009688',
|
|
102
|
-
icon: 'zap',
|
|
103
|
-
},
|
|
104
|
-
// Testing Frameworks
|
|
105
|
-
jest: {
|
|
106
|
-
name: 'Jest',
|
|
107
|
-
category: 'testing',
|
|
108
|
-
deps: ['jest'],
|
|
109
|
-
color: '#C21325',
|
|
110
|
-
icon: 'test-tube',
|
|
111
|
-
},
|
|
112
|
-
mocha: {
|
|
113
|
-
name: 'Mocha',
|
|
114
|
-
category: 'testing',
|
|
115
|
-
deps: ['mocha'],
|
|
116
|
-
color: '#8D6748',
|
|
117
|
-
icon: 'coffee',
|
|
118
|
-
},
|
|
119
|
-
vitest: {
|
|
120
|
-
name: 'Vitest',
|
|
121
|
-
category: 'testing',
|
|
122
|
-
deps: ['vitest'],
|
|
123
|
-
color: '#729B1B',
|
|
124
|
-
icon: 'flask-round',
|
|
125
|
-
},
|
|
126
|
-
cypress: {
|
|
127
|
-
name: 'Cypress',
|
|
128
|
-
category: 'testing',
|
|
129
|
-
deps: ['cypress'],
|
|
130
|
-
color: '#17202C',
|
|
131
|
-
icon: 'eye',
|
|
132
|
-
},
|
|
133
|
-
playwright: {
|
|
134
|
-
name: 'Playwright',
|
|
135
|
-
category: 'testing',
|
|
136
|
-
deps: ['@playwright/test', 'playwright'],
|
|
137
|
-
color: '#2EAD33',
|
|
138
|
-
icon: 'play',
|
|
139
|
-
},
|
|
140
|
-
pytest: {
|
|
141
|
-
name: 'Pytest',
|
|
142
|
-
category: 'testing',
|
|
143
|
-
deps: ['pytest'],
|
|
144
|
-
color: '#0A9EDC',
|
|
145
|
-
icon: 'check-circle',
|
|
146
|
-
},
|
|
147
|
-
// Build Tools
|
|
148
|
-
webpack: {
|
|
149
|
-
name: 'Webpack',
|
|
150
|
-
category: 'build',
|
|
151
|
-
deps: ['webpack'],
|
|
152
|
-
color: '#8DD6F9',
|
|
153
|
-
icon: 'package',
|
|
154
|
-
},
|
|
155
|
-
vite: {
|
|
156
|
-
name: 'Vite',
|
|
157
|
-
category: 'build',
|
|
158
|
-
deps: ['vite'],
|
|
159
|
-
color: '#646CFF',
|
|
160
|
-
icon: 'zap',
|
|
161
|
-
},
|
|
162
|
-
rollup: {
|
|
163
|
-
name: 'Rollup',
|
|
164
|
-
category: 'build',
|
|
165
|
-
deps: ['rollup'],
|
|
166
|
-
color: '#FF6533',
|
|
167
|
-
icon: 'package-2',
|
|
168
|
-
},
|
|
169
|
-
parcel: {
|
|
170
|
-
name: 'Parcel',
|
|
171
|
-
category: 'build',
|
|
172
|
-
deps: ['parcel'],
|
|
173
|
-
color: '#E7BF7E',
|
|
174
|
-
icon: 'package',
|
|
175
|
-
},
|
|
176
|
-
esbuild: {
|
|
177
|
-
name: 'ESBuild',
|
|
178
|
-
category: 'build',
|
|
179
|
-
deps: ['esbuild'],
|
|
180
|
-
color: '#FFCF00',
|
|
181
|
-
icon: 'cpu',
|
|
182
|
-
},
|
|
183
|
-
// Styling
|
|
184
|
-
tailwind: {
|
|
185
|
-
name: 'Tailwind CSS',
|
|
186
|
-
category: 'styling',
|
|
187
|
-
deps: ['tailwindcss'],
|
|
188
|
-
color: '#06B6D4',
|
|
189
|
-
icon: 'wind',
|
|
190
|
-
},
|
|
191
|
-
styledComponents: {
|
|
192
|
-
name: 'Styled Components',
|
|
193
|
-
category: 'styling',
|
|
194
|
-
deps: ['styled-components'],
|
|
195
|
-
color: '#DB7093',
|
|
196
|
-
icon: 'palette',
|
|
197
|
-
},
|
|
198
|
-
emotion: {
|
|
199
|
-
name: 'Emotion',
|
|
200
|
-
category: 'styling',
|
|
201
|
-
deps: ['@emotion/react', '@emotion/styled'],
|
|
202
|
-
color: '#D36AC7',
|
|
203
|
-
icon: 'heart',
|
|
204
|
-
},
|
|
205
|
-
sass: {
|
|
206
|
-
name: 'Sass/SCSS',
|
|
207
|
-
category: 'styling',
|
|
208
|
-
deps: ['sass', 'node-sass'],
|
|
209
|
-
color: '#CC6699',
|
|
210
|
-
icon: 'palette',
|
|
211
|
-
},
|
|
212
|
-
};
|
|
213
|
-
// Common Python frameworks that might not be in package.json format
|
|
214
|
-
const PYTHON_FRAMEWORKS = new Set([
|
|
215
|
-
'django',
|
|
216
|
-
'flask',
|
|
217
|
-
'fastapi',
|
|
218
|
-
'pyramid',
|
|
219
|
-
'tornado',
|
|
220
|
-
'aiohttp',
|
|
221
|
-
'bottle',
|
|
222
|
-
'cherrypy',
|
|
223
|
-
'falcon',
|
|
224
|
-
'sanic',
|
|
225
|
-
]);
|
|
226
|
-
export class FrameworkLayerModule {
|
|
227
|
-
/**
|
|
228
|
-
* Detect frameworks from package layers
|
|
229
|
-
*/
|
|
230
|
-
detectFrameworks(packageLayers) {
|
|
231
|
-
const frameworkMap = new Map();
|
|
232
|
-
// Check each package for framework dependencies
|
|
233
|
-
packageLayers.forEach(packageLayer => {
|
|
234
|
-
const allDeps = {
|
|
235
|
-
...packageLayer.packageData.dependencies,
|
|
236
|
-
...packageLayer.packageData.devDependencies,
|
|
237
|
-
...packageLayer.packageData.peerDependencies,
|
|
238
|
-
};
|
|
239
|
-
// Check each framework definition
|
|
240
|
-
Object.entries(FRAMEWORK_DEFINITIONS).forEach(([key, framework]) => {
|
|
241
|
-
const hasFramework = framework.deps.some(dep => dep in allDeps);
|
|
242
|
-
if (hasFramework) {
|
|
243
|
-
if (!frameworkMap.has(key)) {
|
|
244
|
-
frameworkMap.set(key, {
|
|
245
|
-
definition: framework,
|
|
246
|
-
usedBy: new Set(),
|
|
247
|
-
packagePaths: new Set(),
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
const entry = frameworkMap.get(key);
|
|
251
|
-
entry.usedBy.add(packageLayer.packageData.name);
|
|
252
|
-
entry.packagePaths.add(packageLayer.packageData.path);
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
// Check for Python frameworks in dependencies
|
|
256
|
-
if (packageLayer.type === 'python') {
|
|
257
|
-
Object.keys(allDeps).forEach(dep => {
|
|
258
|
-
const depLower = dep.toLowerCase();
|
|
259
|
-
if (PYTHON_FRAMEWORKS.has(depLower)) {
|
|
260
|
-
// Find if we have a definition for this
|
|
261
|
-
const definitionEntry = Object.entries(FRAMEWORK_DEFINITIONS).find(([_, def]) => def.name.toLowerCase() === depLower);
|
|
262
|
-
if (definitionEntry) {
|
|
263
|
-
const [key, definition] = definitionEntry;
|
|
264
|
-
if (!frameworkMap.has(key)) {
|
|
265
|
-
frameworkMap.set(key, {
|
|
266
|
-
definition,
|
|
267
|
-
usedBy: new Set(),
|
|
268
|
-
packagePaths: new Set(),
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
const entry = frameworkMap.get(key);
|
|
272
|
-
entry.usedBy.add(packageLayer.packageData.name);
|
|
273
|
-
entry.packagePaths.add(packageLayer.packageData.path);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
// Convert to FrameworkLayer array
|
|
280
|
-
return Array.from(frameworkMap.entries()).map(([key, entry]) => {
|
|
281
|
-
const { definition, usedBy, packagePaths } = entry;
|
|
282
|
-
// Create file sets for framework detection
|
|
283
|
-
const depFileSets = packagePaths.size > 0
|
|
284
|
-
? [
|
|
285
|
-
{
|
|
286
|
-
id: `framework-deps-${key}`,
|
|
287
|
-
name: `${definition.name} dependencies`,
|
|
288
|
-
patterns: Array.from(packagePaths).map(path => ({
|
|
289
|
-
type: 'exact',
|
|
290
|
-
pattern: path === '.' ? 'package.json' : `${path}/package.json`,
|
|
291
|
-
description: `Package manifest containing ${definition.name} dependencies`,
|
|
292
|
-
})),
|
|
293
|
-
matchedFiles: Array.from(packagePaths).map(path => path === '.' ? 'package.json' : `${path}/package.json`),
|
|
294
|
-
fileCount: packagePaths.size,
|
|
295
|
-
},
|
|
296
|
-
]
|
|
297
|
-
: [];
|
|
298
|
-
const layer = {
|
|
299
|
-
id: `framework-${key}`,
|
|
300
|
-
name: definition.name,
|
|
301
|
-
type: 'framework',
|
|
302
|
-
enabled: true,
|
|
303
|
-
derivedFrom: {
|
|
304
|
-
fileSets: depFileSets,
|
|
305
|
-
derivationType: 'content',
|
|
306
|
-
description: `${definition.name} framework detected from package dependencies`,
|
|
307
|
-
contentExtraction: {
|
|
308
|
-
method: 'parse',
|
|
309
|
-
parser: {
|
|
310
|
-
format: 'json',
|
|
311
|
-
paths: definition.deps
|
|
312
|
-
.map(dep => `dependencies.${dep}`)
|
|
313
|
-
.concat(definition.deps.map(dep => `devDependencies.${dep}`))
|
|
314
|
-
.concat(definition.deps.map(dep => `peerDependencies.${dep}`)),
|
|
315
|
-
},
|
|
316
|
-
},
|
|
317
|
-
},
|
|
318
|
-
frameworkData: {
|
|
319
|
-
name: definition.name,
|
|
320
|
-
category: definition.category,
|
|
321
|
-
usedBy: Array.from(usedBy),
|
|
322
|
-
},
|
|
323
|
-
color: definition.color,
|
|
324
|
-
icon: definition.icon,
|
|
325
|
-
pillar: definition.category === 'testing'
|
|
326
|
-
? 'validation'
|
|
327
|
-
: definition.category === 'build'
|
|
328
|
-
? 'foundationHealth'
|
|
329
|
-
: 'viewLayers',
|
|
330
|
-
};
|
|
331
|
-
return layer;
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* Get framework compatibility information
|
|
336
|
-
*/
|
|
337
|
-
analyzeCompatibility(frameworks) {
|
|
338
|
-
const compatibility = {
|
|
339
|
-
conflicts: [],
|
|
340
|
-
recommendations: [],
|
|
341
|
-
};
|
|
342
|
-
// Check for multiple UI frameworks
|
|
343
|
-
const uiFrameworks = frameworks.filter(f => f.frameworkData.category === 'ui');
|
|
344
|
-
if (uiFrameworks.length > 1) {
|
|
345
|
-
// Check if they're used in the same packages
|
|
346
|
-
for (let i = 0; i < uiFrameworks.length - 1; i++) {
|
|
347
|
-
for (let j = i + 1; j < uiFrameworks.length; j++) {
|
|
348
|
-
const sharedPackages = uiFrameworks[i].frameworkData.usedBy.filter((pkg) => uiFrameworks[j].frameworkData.usedBy.includes(pkg));
|
|
349
|
-
if (sharedPackages.length > 0) {
|
|
350
|
-
compatibility.conflicts.push({
|
|
351
|
-
framework1: uiFrameworks[i].name,
|
|
352
|
-
framework2: uiFrameworks[j].name,
|
|
353
|
-
reason: `Both UI frameworks found in: ${sharedPackages.join(', ')}`,
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
if (uiFrameworks.length > 2) {
|
|
359
|
-
compatibility.recommendations.push({
|
|
360
|
-
message: `${uiFrameworks.length} UI frameworks detected. Consider consolidating to reduce complexity.`,
|
|
361
|
-
severity: 'warning',
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
// Check for multiple backend frameworks
|
|
366
|
-
const backendFrameworks = frameworks.filter(f => f.frameworkData.category === 'backend');
|
|
367
|
-
if (backendFrameworks.length > 2) {
|
|
368
|
-
compatibility.recommendations.push({
|
|
369
|
-
message: `Multiple backend frameworks detected: ${backendFrameworks.map(f => f.name).join(', ')}`,
|
|
370
|
-
severity: 'info',
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
// Check for missing testing frameworks
|
|
374
|
-
const hasTestingFramework = frameworks.some(f => f.frameworkData.category === 'testing');
|
|
375
|
-
if (!hasTestingFramework && frameworks.length > 0) {
|
|
376
|
-
compatibility.recommendations.push({
|
|
377
|
-
message: 'No testing framework detected. Consider adding Jest, Vitest, or another testing solution.',
|
|
378
|
-
severity: 'info',
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
return compatibility;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
//# sourceMappingURL=FrameworkLayerModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FrameworkLayerModule.js","sourceRoot":"","sources":["../../src/modules/FrameworkLayerModule.ts"],"names":[],"mappings":"AAUA,4DAA4D;AAC5D,MAAM,qBAAqB,GAAwC;IACjE,gBAAgB;IAChB,KAAK,EAAE;QACL,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC;QAC5B,KAAK,EAAE,SAAS;QAChB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C,EAAE,CAAC;YAClD,aAAa,CAAC,eAAe,CAAC,IAAI,CAAC;gBACjC,OAAO,EACL,2FAA2F;gBAC7F,QAAQ,EAAE,MAAM;aACjB,CAAC,CAAC;QACL,CAAC;QAED,OAAO,aAAa,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { FileTree } from '@principal-ai/repository-abstraction';
|
|
2
|
-
import { PackageLayer } from '../types/layer-types';
|
|
3
|
-
import { WorkspaceBoundary } from '../types/workspace-boundaries';
|
|
4
|
-
export declare class PackageLayerModule {
|
|
5
|
-
private parsers;
|
|
6
|
-
/**
|
|
7
|
-
* Extract package information from the file tree
|
|
8
|
-
* @param fileTree - The file tree to analyze
|
|
9
|
-
* @param fileReader - Optional function to read file contents. If not provided, manifest detection only.
|
|
10
|
-
*/
|
|
11
|
-
discoverPackages(fileTree: FileTree, fileReader?: (path: string) => Promise<string>): Promise<PackageLayer[]>;
|
|
12
|
-
/**
|
|
13
|
-
* Create package layers from workspace boundaries (backwards compatibility)
|
|
14
|
-
*/
|
|
15
|
-
createPackageLayersFromBoundaries(boundaries: WorkspaceBoundary[]): PackageLayer[];
|
|
16
|
-
private isLockFile;
|
|
17
|
-
private resolveWorkspaceRelationships;
|
|
18
|
-
/**
|
|
19
|
-
* Create a minimal manifest for when file content isn't available
|
|
20
|
-
*/
|
|
21
|
-
private createMinimalManifest;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=PackageLayerModule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PackageLayerModule.d.ts","sourceRoot":"","sources":["../../src/modules/PackageLayerModule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAuC,MAAM,sBAAsB,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAgrBlE,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,OAAO,CAIb;IAEF;;;;OAIG;IACG,gBAAgB,CACpB,QAAQ,EAAE,QAAQ,EAClB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,GAC7C,OAAO,CAAC,YAAY,EAAE,CAAC;IAmK1B;;OAEG;IACH,iCAAiC,CAAC,UAAU,EAAE,iBAAiB,EAAE,GAAG,YAAY,EAAE;IAgDlF,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,6BAA6B;IAwBrC;;OAEG;IACH,OAAO,CAAC,qBAAqB;CA2B9B"}
|