@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.
Files changed (109) hide show
  1. package/package.json +5 -4
  2. package/dist/adapters/NodeFileSystemAdapter.d.ts +0 -28
  3. package/dist/adapters/NodeFileSystemAdapter.d.ts.map +0 -1
  4. package/dist/adapters/NodeFileSystemAdapter.js +0 -128
  5. package/dist/adapters/NodeFileSystemAdapter.js.map +0 -1
  6. package/dist/helpers/QualityMetricsCalculator.d.ts +0 -46
  7. package/dist/helpers/QualityMetricsCalculator.d.ts.map +0 -1
  8. package/dist/helpers/QualityMetricsCalculator.js +0 -163
  9. package/dist/helpers/QualityMetricsCalculator.js.map +0 -1
  10. package/dist/helpers/packageLayerHelpers.d.ts +0 -30
  11. package/dist/helpers/packageLayerHelpers.d.ts.map +0 -1
  12. package/dist/helpers/packageLayerHelpers.js +0 -88
  13. package/dist/helpers/packageLayerHelpers.js.map +0 -1
  14. package/dist/index.d.ts +0 -11
  15. package/dist/index.d.ts.map +0 -1
  16. package/dist/index.js +0 -14
  17. package/dist/index.js.map +0 -1
  18. package/dist/modules/DependencyLayerModule.d.ts +0 -44
  19. package/dist/modules/DependencyLayerModule.d.ts.map +0 -1
  20. package/dist/modules/DependencyLayerModule.js +0 -282
  21. package/dist/modules/DependencyLayerModule.js.map +0 -1
  22. package/dist/modules/FileSystemModule.d.ts +0 -30
  23. package/dist/modules/FileSystemModule.d.ts.map +0 -1
  24. package/dist/modules/FileSystemModule.js +0 -43
  25. package/dist/modules/FileSystemModule.js.map +0 -1
  26. package/dist/modules/FileTypeLayerModule.d.ts +0 -34
  27. package/dist/modules/FileTypeLayerModule.d.ts.map +0 -1
  28. package/dist/modules/FileTypeLayerModule.js +0 -165
  29. package/dist/modules/FileTypeLayerModule.js.map +0 -1
  30. package/dist/modules/FrameworkLayerModule.d.ts +0 -22
  31. package/dist/modules/FrameworkLayerModule.d.ts.map +0 -1
  32. package/dist/modules/FrameworkLayerModule.js +0 -384
  33. package/dist/modules/FrameworkLayerModule.js.map +0 -1
  34. package/dist/modules/PackageLayerModule.d.ts +0 -23
  35. package/dist/modules/PackageLayerModule.d.ts.map +0 -1
  36. package/dist/modules/PackageLayerModule.js +0 -775
  37. package/dist/modules/PackageLayerModule.js.map +0 -1
  38. package/dist/modules/TypeExtractionModule.d.ts +0 -37
  39. package/dist/modules/TypeExtractionModule.d.ts.map +0 -1
  40. package/dist/modules/TypeExtractionModule.js +0 -141
  41. package/dist/modules/TypeExtractionModule.js.map +0 -1
  42. package/dist/modules/VersionControlLayerModule.d.ts +0 -10
  43. package/dist/modules/VersionControlLayerModule.d.ts.map +0 -1
  44. package/dist/modules/VersionControlLayerModule.js +0 -26
  45. package/dist/modules/VersionControlLayerModule.js.map +0 -1
  46. package/dist/modules/__fixtures__/typescript-packages/complex-types/src/index.d.ts +0 -4
  47. package/dist/modules/__fixtures__/typescript-packages/complex-types/src/index.d.ts.map +0 -1
  48. package/dist/modules/__fixtures__/typescript-packages/complex-types/src/index.js +0 -3
  49. package/dist/modules/__fixtures__/typescript-packages/complex-types/src/index.js.map +0 -1
  50. package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/category.d.ts +0 -15
  51. package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/category.d.ts.map +0 -1
  52. package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/category.js +0 -2
  53. package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/category.js.map +0 -1
  54. package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/product.d.ts +0 -34
  55. package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/product.d.ts.map +0 -1
  56. package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/product.js +0 -19
  57. package/dist/modules/__fixtures__/typescript-packages/complex-types/src/models/product.js.map +0 -1
  58. package/dist/modules/__fixtures__/typescript-packages/simple-types/index.d.ts +0 -39
  59. package/dist/modules/__fixtures__/typescript-packages/simple-types/index.d.ts.map +0 -1
  60. package/dist/modules/__fixtures__/typescript-packages/simple-types/index.js +0 -36
  61. package/dist/modules/__fixtures__/typescript-packages/simple-types/index.js.map +0 -1
  62. package/dist/modules/extractors/TypeScriptExtractor.d.ts +0 -18
  63. package/dist/modules/extractors/TypeScriptExtractor.d.ts.map +0 -1
  64. package/dist/modules/extractors/TypeScriptExtractor.js +0 -322
  65. package/dist/modules/extractors/TypeScriptExtractor.js.map +0 -1
  66. package/dist/modules/index.d.ts +0 -13
  67. package/dist/modules/index.d.ts.map +0 -1
  68. package/dist/modules/index.js +0 -10
  69. package/dist/modules/index.js.map +0 -1
  70. package/dist/providers/GitVersionControlProvider.d.ts +0 -108
  71. package/dist/providers/GitVersionControlProvider.d.ts.map +0 -1
  72. package/dist/providers/GitVersionControlProvider.js +0 -375
  73. package/dist/providers/GitVersionControlProvider.js.map +0 -1
  74. package/dist/providers/PackageManagerApiProvider.d.ts +0 -78
  75. package/dist/providers/PackageManagerApiProvider.d.ts.map +0 -1
  76. package/dist/providers/PackageManagerApiProvider.js +0 -10
  77. package/dist/providers/PackageManagerApiProvider.js.map +0 -1
  78. package/dist/providers/index.d.ts +0 -4
  79. package/dist/providers/index.d.ts.map +0 -1
  80. package/dist/providers/index.js +0 -5
  81. package/dist/providers/index.js.map +0 -1
  82. package/dist/services/FilesystemService.d.ts +0 -59
  83. package/dist/services/FilesystemService.d.ts.map +0 -1
  84. package/dist/services/FilesystemService.js +0 -394
  85. package/dist/services/FilesystemService.js.map +0 -1
  86. package/dist/services/index.d.ts +0 -2
  87. package/dist/services/index.d.ts.map +0 -1
  88. package/dist/services/index.js +0 -3
  89. package/dist/services/index.js.map +0 -1
  90. package/dist/types/file-system.d.ts +0 -6
  91. package/dist/types/file-system.d.ts.map +0 -1
  92. package/dist/types/file-system.js +0 -6
  93. package/dist/types/file-system.js.map +0 -1
  94. package/dist/types/index.d.ts +0 -4
  95. package/dist/types/index.d.ts.map +0 -1
  96. package/dist/types/index.js +0 -2
  97. package/dist/types/index.js.map +0 -1
  98. package/dist/types/layer-types.d.ts +0 -205
  99. package/dist/types/layer-types.d.ts.map +0 -1
  100. package/dist/types/layer-types.js +0 -6
  101. package/dist/types/layer-types.js.map +0 -1
  102. package/dist/types/version-control-layer.d.ts +0 -53
  103. package/dist/types/version-control-layer.d.ts.map +0 -1
  104. package/dist/types/version-control-layer.js +0 -2
  105. package/dist/types/version-control-layer.js.map +0 -1
  106. package/dist/types/workspace-boundaries.d.ts +0 -17
  107. package/dist/types/workspace-boundaries.d.ts.map +0 -1
  108. package/dist/types/workspace-boundaries.js +0 -6
  109. package/dist/types/workspace-boundaries.js.map +0 -1
@@ -1,282 +0,0 @@
1
- export class DependencyLayerModule {
2
- /**
3
- * Create dependency layers from package layers
4
- */
5
- createDependencyLayers(packageLayers) {
6
- const dependencyMap = new Map();
7
- // Collect all dependencies from all packages
8
- packageLayers.forEach(packageLayer => {
9
- const { dependencies, devDependencies, peerDependencies } = packageLayer.packageData;
10
- const packageName = packageLayer.packageData.name;
11
- const packagePath = packageLayer.packageData.path;
12
- // Process production dependencies
13
- Object.entries(dependencies).forEach(([depName, version]) => {
14
- this.addDependency(dependencyMap, depName, version, packageName, packagePath, 'prod');
15
- });
16
- // Process dev dependencies
17
- Object.entries(devDependencies).forEach(([depName, version]) => {
18
- this.addDependency(dependencyMap, depName, version, packageName, packagePath, 'dev');
19
- });
20
- // Process peer dependencies
21
- Object.entries(peerDependencies).forEach(([depName, version]) => {
22
- this.addDependency(dependencyMap, depName, version, packageName, packagePath, 'peer');
23
- });
24
- });
25
- // Convert to DependencyLayer array
26
- const dependencyLayers = [];
27
- dependencyMap.forEach((depInfo, depName) => {
28
- // For each unique version of this dependency
29
- depInfo.versions.forEach((packageNames, version) => {
30
- const declaredIn = Array.from(packageNames);
31
- const isDev = declaredIn.every(pkg => depInfo.isDev.has(pkg));
32
- const isPeer = declaredIn.some(pkg => depInfo.isPeer.has(pkg));
33
- // Create file patterns for all package.json files that declare this dependency
34
- const patterns = declaredIn.map(pkgName => {
35
- const path = depInfo.packagePaths.get(pkgName) || '.';
36
- return {
37
- type: 'exact',
38
- pattern: path === '.' ? 'package.json' : `${path}/package.json`,
39
- description: `${pkgName} package manifest`,
40
- };
41
- });
42
- // Create the source file set
43
- const sourceFileSet = {
44
- id: `dep-source-${depName}-${version}`,
45
- name: 'Package manifests',
46
- patterns,
47
- matchedFiles: patterns.map(p => p.pattern),
48
- fileCount: patterns.length,
49
- };
50
- // Determine the dependency type for the ID
51
- const depType = isPeer ? 'peer' : isDev ? 'dev' : 'prod';
52
- const layer = {
53
- id: `dependency-${depType}-${depName}-${version.replace(/[^a-zA-Z0-9]/g, '-')}`,
54
- name: depName,
55
- type: 'dependency',
56
- enabled: false, // Dependencies are not enabled by default
57
- derivedFrom: {
58
- fileSets: [sourceFileSet],
59
- derivationType: 'content',
60
- description: `${depName}@${version} ${isPeer ? 'peer ' : ''}${isDev ? 'dev ' : ''}dependency`,
61
- contentExtraction: {
62
- method: 'parse',
63
- parser: {
64
- format: 'json',
65
- paths: this.getJsonPaths(depName, isDev, isPeer, declaredIn, depInfo),
66
- },
67
- },
68
- },
69
- dependencyData: {
70
- name: depName,
71
- version,
72
- isDev,
73
- isPeer,
74
- declaredIn: declaredIn.map(pkgName => {
75
- // Find the package layer ID
76
- const packageLayer = packageLayers.find(p => p.packageData.name === pkgName);
77
- return packageLayer?.id || `package-${pkgName}`;
78
- }),
79
- sourceFile: sourceFileSet,
80
- },
81
- color: this.getDependencyColor(depName, isDev, isPeer),
82
- icon: this.getDependencyIcon(depName),
83
- pillar: 'foundationHealth',
84
- };
85
- dependencyLayers.push(layer);
86
- });
87
- });
88
- // Sort by dependency name and version
89
- return dependencyLayers.sort((a, b) => {
90
- const nameCompare = a.name.localeCompare(b.name);
91
- if (nameCompare !== 0)
92
- return nameCompare;
93
- return a.dependencyData.version.localeCompare(b.dependencyData.version);
94
- });
95
- }
96
- /**
97
- * Add a dependency to the map
98
- */
99
- addDependency(dependencyMap, depName, version, packageName, packagePath, type) {
100
- if (!dependencyMap.has(depName)) {
101
- dependencyMap.set(depName, {
102
- name: depName,
103
- versions: new Map(),
104
- isDev: new Set(),
105
- isPeer: new Set(),
106
- isProd: new Set(),
107
- packagePaths: new Map(),
108
- });
109
- }
110
- const depInfo = dependencyMap.get(depName);
111
- // Add version
112
- if (!depInfo.versions.has(version)) {
113
- depInfo.versions.set(version, new Set());
114
- }
115
- depInfo.versions.get(version).add(packageName);
116
- // Track package path
117
- depInfo.packagePaths.set(packageName, packagePath);
118
- // Track dependency type
119
- if (type === 'dev') {
120
- depInfo.isDev.add(packageName);
121
- }
122
- else if (type === 'peer') {
123
- depInfo.isPeer.add(packageName);
124
- }
125
- else {
126
- depInfo.isProd.add(packageName);
127
- }
128
- }
129
- /**
130
- * Get JSON paths for content extraction
131
- */
132
- getJsonPaths(depName, isDev, isPeer, declaredIn, depInfo) {
133
- const paths = [];
134
- declaredIn.forEach(pkgName => {
135
- if (depInfo.isProd.has(pkgName)) {
136
- paths.push(`dependencies.${depName}`);
137
- }
138
- if (depInfo.isDev.has(pkgName)) {
139
- paths.push(`devDependencies.${depName}`);
140
- }
141
- if (depInfo.isPeer.has(pkgName)) {
142
- paths.push(`peerDependencies.${depName}`);
143
- }
144
- });
145
- return paths;
146
- }
147
- /**
148
- * Get color for dependency based on type and name
149
- */
150
- getDependencyColor(name, isDev, isPeer) {
151
- // Special colors for common dependencies
152
- const specialColors = {
153
- react: '#61DAFB',
154
- 'react-dom': '#61DAFB',
155
- vue: '#4FC08D',
156
- angular: '#DD0031',
157
- typescript: '#3178C6',
158
- webpack: '#8DD6F9',
159
- vite: '#646CFF',
160
- jest: '#C21325',
161
- eslint: '#4B32C3',
162
- prettier: '#F7B93E',
163
- lodash: '#3492FF',
164
- axios: '#5A29E4',
165
- express: '#000000',
166
- next: '#000000',
167
- tailwindcss: '#06B6D4',
168
- };
169
- if (specialColors[name]) {
170
- return specialColors[name];
171
- }
172
- // Default colors by type
173
- if (isPeer)
174
- return '#FF6B6B'; // Red for peer deps
175
- if (isDev)
176
- return '#FFA94D'; // Orange for dev deps
177
- return '#40C057'; // Green for production deps
178
- }
179
- /**
180
- * Get icon for dependency based on its name/type
181
- */
182
- getDependencyIcon(name) {
183
- // Special icons for common dependency types
184
- if (name.includes('react'))
185
- return 'atom';
186
- if (name.includes('vue'))
187
- return 'triangle';
188
- if (name.includes('angular'))
189
- return 'hexagon';
190
- if (name.includes('test') || name.includes('jest') || name.includes('mocha'))
191
- return 'test-tube';
192
- if (name.includes('lint') || name.includes('eslint'))
193
- return 'check-circle';
194
- if (name.includes('prettier'))
195
- return 'palette';
196
- if (name.includes('webpack') || name.includes('rollup') || name.includes('parcel'))
197
- return 'package';
198
- if (name.includes('vite') || name.includes('esbuild'))
199
- return 'zap';
200
- if (name.includes('typescript') || name.includes('ts-'))
201
- return 'file-code';
202
- if (name.includes('css') || name.includes('style'))
203
- return 'palette';
204
- if (name.includes('axios') || name.includes('fetch'))
205
- return 'download';
206
- if (name.includes('express') || name.includes('koa') || name.includes('fastify'))
207
- return 'server';
208
- if (name.includes('database') || name.includes('mongo') || name.includes('postgres'))
209
- return 'database';
210
- if (name.includes('auth') || name.includes('jwt'))
211
- return 'lock';
212
- if (name.includes('log') || name.includes('winston') || name.includes('pino'))
213
- return 'file-text';
214
- if (name.includes('cli') || name.includes('commander'))
215
- return 'terminal';
216
- if (name.includes('crypto') || name.includes('bcrypt'))
217
- return 'shield';
218
- // Default icon
219
- return 'package-2';
220
- }
221
- /**
222
- * Analyze dependency health and conflicts
223
- */
224
- analyzeDependencyHealth(dependencyLayers) {
225
- const health = {
226
- duplicates: [],
227
- outdated: [],
228
- security: [],
229
- };
230
- // Group by dependency name
231
- const depGroups = new Map();
232
- dependencyLayers.forEach(layer => {
233
- const name = layer.dependencyData.name;
234
- if (!depGroups.has(name)) {
235
- depGroups.set(name, []);
236
- }
237
- depGroups.get(name).push(layer);
238
- });
239
- // Check for duplicates (multiple versions)
240
- depGroups.forEach((layers, name) => {
241
- if (layers.length > 1) {
242
- const versions = new Set();
243
- const packages = {};
244
- layers.forEach(layer => {
245
- versions.add(layer.dependencyData.version);
246
- // Get package names from declaredIn
247
- layer.dependencyData.declaredIn.forEach((layerId) => {
248
- // Extract package name from layer ID (e.g., "package-node-root" -> "root")
249
- const pkgName = layerId.replace(/^package-[^-]+-/, '');
250
- packages[pkgName] = layer.dependencyData.version;
251
- });
252
- });
253
- if (versions.size > 1) {
254
- health.duplicates.push({
255
- name,
256
- versions: Array.from(versions),
257
- packages,
258
- });
259
- }
260
- }
261
- });
262
- // Check for known security issues (simplified)
263
- const knownIssues = {
264
- minimist: {
265
- severity: 'high',
266
- issue: 'Prototype pollution vulnerability in versions < 1.2.6',
267
- },
268
- lodash: { severity: 'medium', issue: 'Multiple vulnerabilities in versions < 4.17.21' },
269
- 'node-fetch': { severity: 'high', issue: 'Denial of service in versions < 2.6.7' },
270
- };
271
- depGroups.forEach((layers, name) => {
272
- if (knownIssues[name]) {
273
- health.security.push({
274
- name,
275
- ...knownIssues[name],
276
- });
277
- }
278
- });
279
- return health;
280
- }
281
- }
282
- //# sourceMappingURL=DependencyLayerModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DependencyLayerModule.js","sourceRoot":"","sources":["../../src/modules/DependencyLayerModule.ts"],"names":[],"mappings":"AAWA,MAAM,OAAO,qBAAqB;IAChC;;OAEG;IACH,sBAAsB,CAAC,aAA6B;QAClD,MAAM,aAAa,GAAG,IAAI,GAAG,EAA0B,CAAC;QAExD,6CAA6C;QAC7C,aAAa,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACnC,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,GAAG,YAAY,CAAC,WAAW,CAAC;YACrF,MAAM,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC;YAClD,MAAM,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC;Y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AC,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;oBACnD,CAAC,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEH,IAAI,QAAQ,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;oBACtB,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC;wBACrB,IAAI;wBACJ,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;wBAC9B,QAAQ;qBACT,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,+CAA+C;QAC/C,MAAM,WAAW,GAA2E;YAC1F,QAAQ,EAAE;gBACR,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,uDAAuD;aAC/D;YACD,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,gDAAgD,EAAE;YACvF,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,uCAAuC,EAAE;SACnF,CAAC;QAEF,SAAS,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE;YACjC,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;gBACtB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;oBACnB,IAAI;oBACJ,GAAG,WAAW,CAAC,IAAI,CAAC;iBACrB,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -1,30 +0,0 @@
1
- import { FileTree } from '@principal-ai/repository-abstraction';
2
- import { FileSystemFilterLayer, BaseLayer } from '../types';
3
- export interface FileSystemModuleConfig {
4
- directoryPath: string;
5
- buildFileSystemTree: (path: string, filters?: FileSystemFilterLayer[]) => Promise<FileTree>;
6
- }
7
- export interface FileSystemLoadResult {
8
- fileSystemTree: FileTree;
9
- filterLayers: FileSystemFilterLayer[];
10
- warningLayers: BaseLayer[];
11
- }
12
- /**
13
- * Module responsible for loading and filtering the filesystem tree
14
- * Now simplified to use globby-based filtering
15
- */
16
- export declare class FileSystemModule {
17
- private config;
18
- constructor(config: FileSystemModuleConfig);
19
- /**
20
- * Load the filesystem tree using globby-based filtering
21
- */
22
- loadFileSystemTree(): Promise<FileSystemLoadResult>;
23
- /**
24
- * Get all package.json files from the filesystem tree
25
- */
26
- getPackageJsonFiles(fileSystemTree: FileTree): Array<{
27
- path: string;
28
- }>;
29
- }
30
- //# sourceMappingURL=FileSystemModule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileSystemModule.d.ts","sourceRoot":"","sources":["../../src/modules/FileSystemModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,EAAE,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC7F;AAED,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,QAAQ,CAAC;IACzB,YAAY,EAAE,qBAAqB,EAAE,CAAC;IACtC,aAAa,EAAE,SAAS,EAAE,CAAC;CAC5B;AAED;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAyB;gBAE3B,MAAM,EAAE,sBAAsB;IAI1C;;OAEG;IACG,kBAAkB,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAwBzD;;OAEG;IACH,mBAAmB,CAAC,cAAc,EAAE,QAAQ,GAAG,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CASvE"}
@@ -1,43 +0,0 @@
1
- /**
2
- * Module responsible for loading and filtering the filesystem tree
3
- * Now simplified to use globby-based filtering
4
- */
5
- export class FileSystemModule {
6
- config;
7
- constructor(config) {
8
- this.config = config;
9
- }
10
- /**
11
- * Load the filesystem tree using globby-based filtering
12
- */
13
- async loadFileSystemTree() {
14
- const { directoryPath, buildFileSystemTree } = this.config;
15
- if (!directoryPath || !buildFileSystemTree) {
16
- throw new Error('Directory path and buildFileSystemTree function are required');
17
- }
18
- console.log('[FileSystemModule] Loading filesystem tree with globby...');
19
- // Build filesystem tree (adapters handle .gitignore filtering via globby)
20
- const fileSystemTree = await buildFileSystemTree(directoryPath, []);
21
- console.log('[FileSystemModule] Tree loaded:', {
22
- totalFiles: fileSystemTree?.allFiles?.length || 0,
23
- totalDirectories: fileSystemTree?.allDirectories?.length || 0,
24
- });
25
- return {
26
- fileSystemTree,
27
- filterLayers: [], // No filter layers - globby handles everything
28
- warningLayers: [],
29
- };
30
- }
31
- /**
32
- * Get all package.json files from the filesystem tree
33
- */
34
- getPackageJsonFiles(fileSystemTree) {
35
- if (!fileSystemTree?.allFiles) {
36
- return [];
37
- }
38
- return fileSystemTree.allFiles
39
- .filter(file => file.path?.endsWith('package.json'))
40
- .map(file => ({ path: file.path }));
41
- }
42
- }
43
- //# sourceMappingURL=FileSystemModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileSystemModule.js","sourceRoot":"","sources":["../../src/modules/FileSystemModule.ts"],"names":[],"mappings":"AAcA;;;GAGG;AACH,MAAM,OAAO,gBAAgB;IACnB,MAAM,CAAyB;IAEvC,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,kBAAkB;QACtB,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC;QAE3D,IAAI,CAAC,aAAa,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC3C,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAClF,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,2DAA2D,CAAC,CAAC;QAEzE,0EAA0E;QAC1E,MAAM,cAAc,GAAG,MAAM,mBAAmB,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QAEpE,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE;YAC7C,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;YACjD,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;SAC9D,CAAC,CAAC;QAEH,OAAO;YACL,cAAc;YACd,YAAY,EAAE,EAAE,EAAE,+CAA+C;YACjE,aAAa,EAAE,EAAE;SAClB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,mBAAmB,CAAC,cAAwB;QAC1C,IAAI,CAAC,cAAc,EAAE,QAAQ,EAAE,CAAC;YAC9B,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,cAAc,CAAC,QAAQ;aAC3B,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;aACnD,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAK,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC;CACF"}
@@ -1,34 +0,0 @@
1
- import { FileTree } from '@principal-ai/repository-abstraction';
2
- import { BaseLayer } from '../types/layer-types';
3
- export interface FileTypeInfo {
4
- extension: string;
5
- name: string;
6
- count: number;
7
- files: string[];
8
- color: string;
9
- icon: string;
10
- category?: string;
11
- }
12
- export declare class FileTypeLayerModule {
13
- /**
14
- * Extract file type information from the file tree
15
- */
16
- extractFileTypes(fileTree: FileTree): FileTypeInfo[];
17
- /**
18
- * Create BaseLayer objects from file type information
19
- */
20
- createFileTypeLayers(fileTypes: FileTypeInfo[]): BaseLayer[];
21
- /**
22
- * Get file extension from filename
23
- */
24
- private getFileExtension;
25
- /**
26
- * Check if a path should be ignored
27
- */
28
- private shouldIgnorePath;
29
- /**
30
- * Create file type layers from a file tree
31
- */
32
- processFileTree(fileTree: FileTree): Promise<BaseLayer[]>;
33
- }
34
- //# sourceMappingURL=FileTypeLayerModule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileTypeLayerModule.d.ts","sourceRoot":"","sources":["../../src/modules/FileTypeLayerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAW,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA8DD,qBAAa,mBAAmB;IAC9B;;OAEG;IACH,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,YAAY,EAAE;IA2CpD;;OAEG;IACH,oBAAoB,CAAC,SAAS,EAAE,YAAY,EAAE,GAAG,SAAS,EAAE;IAmC5D;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAQxB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAmBxB;;OAEG;IACG,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;CAIhE"}
@@ -1,165 +0,0 @@
1
- // File type definitions with colors and lucide icon names
2
- const FILE_TYPE_CONFIG = {
3
- '.ts': { name: 'TypeScript', color: '#3178c6', icon: 'file-code', category: 'source' },
4
- '.tsx': { name: 'TypeScript React', color: '#61dafb', icon: 'file-code-2', category: 'source' },
5
- '.js': { name: 'JavaScript', color: '#f7df1e', icon: 'file-text', category: 'source' },
6
- '.jsx': { name: 'JavaScript React', color: '#61dafb', icon: 'file-code-2', category: 'source' },
7
- '.py': { name: 'Python', color: '#3776ab', icon: 'file-code', category: 'source' },
8
- '.java': { name: 'Java', color: '#007396', icon: 'coffee', category: 'source' },
9
- '.go': { name: 'Go', color: '#00add8', icon: 'file-code', category: 'source' },
10
- '.rs': { name: 'Rust', color: '#dea584', icon: 'file-code', category: 'source' },
11
- '.cpp': { name: 'C++', color: '#00599c', icon: 'cpu', category: 'source' },
12
- '.c': { name: 'C', color: '#555555', icon: 'cpu', category: 'source' },
13
- '.cs': { name: 'C#', color: '#239120', icon: 'file-code', category: 'source' },
14
- '.php': { name: 'PHP', color: '#777bb4', icon: 'file-code', category: 'source' },
15
- '.rb': { name: 'Ruby', color: '#cc342d', icon: 'gem', category: 'source' },
16
- '.swift': { name: 'Swift', color: '#fa7343', icon: 'zap', category: 'source' },
17
- '.kt': { name: 'Kotlin', color: '#7f52ff', icon: 'file-code', category: 'source' },
18
- '.vue': { name: 'Vue', color: '#4fc08d', icon: 'triangle', category: 'source' },
19
- '.svelte': { name: 'Svelte', color: '#ff3e00', icon: 'flame', category: 'source' },
20
- // Config files
21
- '.json': { name: 'JSON', color: '#90a4ae', icon: 'file-json', category: 'config' },
22
- '.yaml': { name: 'YAML', color: '#cb171e', icon: 'file-text', category: 'config' },
23
- '.yml': { name: 'YAML', color: '#cb171e', icon: 'file-text', category: 'config' },
24
- '.toml': { name: 'TOML', color: '#9c4121', icon: 'settings', category: 'config' },
25
- '.xml': { name: 'XML', color: '#0060ac', icon: 'code', category: 'config' },
26
- // Documentation
27
- '.md': { name: 'Markdown', color: '#083fa1', icon: 'file-text', category: 'docs' },
28
- '.mdx': { name: 'MDX', color: '#fcb32c', icon: 'file-text', category: 'docs' },
29
- '.txt': { name: 'Text', color: '#666666', icon: 'file-text', category: 'docs' },
30
- // Styles
31
- '.css': { name: 'CSS', color: '#1572b6', icon: 'palette', category: 'styles' },
32
- '.scss': { name: 'SCSS', color: '#cc6699', icon: 'palette', category: 'styles' },
33
- '.sass': { name: 'Sass', color: '#cc6699', icon: 'palette', category: 'styles' },
34
- '.less': { name: 'Less', color: '#1d365d', icon: 'palette', category: 'styles' },
35
- // Other
36
- '.html': { name: 'HTML', color: '#e34c26', icon: 'globe', category: 'markup' },
37
- '.svg': { name: 'SVG', color: '#ffb13b', icon: 'image', category: 'assets' },
38
- '.png': { name: 'PNG', color: '#00bcd4', icon: 'image', category: 'assets' },
39
- '.jpg': { name: 'JPEG', color: '#00bcd4', icon: 'image', category: 'assets' },
40
- '.jpeg': { name: 'JPEG', color: '#00bcd4', icon: 'image', category: 'assets' },
41
- '.gif': { name: 'GIF', color: '#00bcd4', icon: 'image', category: 'assets' },
42
- '.sh': { name: 'Shell', color: '#4eaa25', icon: 'terminal', category: 'scripts' },
43
- '.bat': { name: 'Batch', color: '#4d4d4d', icon: 'terminal', category: 'scripts' },
44
- '.ps1': { name: 'PowerShell', color: '#012456', icon: 'terminal', category: 'scripts' },
45
- };
46
- // Default config for unknown file types
47
- const DEFAULT_FILE_TYPE = {
48
- color: '#9e9e9e',
49
- icon: 'file',
50
- category: 'other',
51
- };
52
- export class FileTypeLayerModule {
53
- /**
54
- * Extract file type information from the file tree
55
- */
56
- extractFileTypes(fileTree) {
57
- const fileTypeMap = new Map();
58
- if (!fileTree.allFiles) {
59
- return [];
60
- }
61
- // Group files by extension
62
- for (const file of fileTree.allFiles) {
63
- const extension = this.getFileExtension(file.name);
64
- if (!extension)
65
- continue;
66
- const filePath = file.relativePath || file.path;
67
- // Skip common ignored paths
68
- if (this.shouldIgnorePath(filePath))
69
- continue;
70
- if (!fileTypeMap.has(extension)) {
71
- const config = FILE_TYPE_CONFIG[extension] || {
72
- name: extension.toUpperCase().replace('.', ''),
73
- ...DEFAULT_FILE_TYPE,
74
- };
75
- fileTypeMap.set(extension, {
76
- extension,
77
- name: config.name,
78
- count: 0,
79
- files: [],
80
- color: config.color,
81
- icon: config.icon,
82
- category: config.category,
83
- });
84
- }
85
- const typeInfo = fileTypeMap.get(extension);
86
- typeInfo.count++;
87
- typeInfo.files.push(filePath);
88
- }
89
- // Convert to array and sort by count
90
- return Array.from(fileTypeMap.values()).sort((a, b) => b.count - a.count);
91
- }
92
- /**
93
- * Create BaseLayer objects from file type information
94
- */
95
- createFileTypeLayers(fileTypes) {
96
- return fileTypes.map(fileType => {
97
- const fileSet = {
98
- id: `files-${fileType.extension}`,
99
- name: `${fileType.name} files`,
100
- patterns: [
101
- {
102
- type: 'glob',
103
- pattern: `**/*${fileType.extension}`,
104
- description: `All ${fileType.extension} files`,
105
- },
106
- ],
107
- matchedFiles: fileType.files,
108
- fileCount: fileType.count,
109
- };
110
- const layer = {
111
- id: `file-type-${fileType.extension}`,
112
- name: fileType.name,
113
- type: 'file-type',
114
- enabled: false,
115
- derivedFrom: {
116
- fileSets: [fileSet],
117
- derivationType: 'presence',
118
- description: `Files with ${fileType.extension} extension`,
119
- },
120
- color: fileType.color,
121
- icon: fileType.icon,
122
- pillar: 'viewLayers',
123
- };
124
- return layer;
125
- });
126
- }
127
- /**
128
- * Get file extension from filename
129
- */
130
- getFileExtension(filename) {
131
- const lastDot = filename.lastIndexOf('.');
132
- if (lastDot === -1 || lastDot === filename.length - 1) {
133
- return '';
134
- }
135
- return filename.slice(lastDot).toLowerCase();
136
- }
137
- /**
138
- * Check if a path should be ignored
139
- */
140
- shouldIgnorePath(path) {
141
- const ignoredPaths = [
142
- 'node_modules',
143
- '.git',
144
- 'dist',
145
- 'build',
146
- 'coverage',
147
- '.next',
148
- '.nuxt',
149
- 'target',
150
- '__pycache__',
151
- '.pytest_cache',
152
- '.vscode',
153
- '.idea',
154
- ];
155
- return ignoredPaths.some(ignored => path.includes(ignored));
156
- }
157
- /**
158
- * Create file type layers from a file tree
159
- */
160
- async processFileTree(fileTree) {
161
- const fileTypes = this.extractFileTypes(fileTree);
162
- return this.createFileTypeLayers(fileTypes);
163
- }
164
- }
165
- //# sourceMappingURL=FileTypeLayerModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileTypeLayerModule.js","sourceRoot":"","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AAC;IAED;;OAEG;IACK,gBAAgB,CAAC,QAAgB;QACvC,MAAM,OAAO,GAAG,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC1C,IAAI,OAAO,KAAK,CAAC,CAAC,IAAI,OAAO,KAAK,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtD,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,OAAO,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IAC/C,CAAC;IAED;;OAEG;IACK,gBAAgB,CAAC,IAAY;QACnC,MAAM,YAAY,GAAG;YACnB,cAAc;YACd,MAAM;YACN,MAAM;YACN,OAAO;YACP,UAAU;YACV,OAAO;YACP,OAAO;YACP,QAAQ;YACR,aAAa;YACb,eAAe;YACf,SAAS;YACT,OAAO;SACR,CAAC;QAEF,OAAO,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe,CAAC,QAAkB;QACtC,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAClD,OAAO,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAC9C,CAAC;CACF"}
@@ -1,22 +0,0 @@
1
- import { FrameworkLayer, PackageLayer } from '../types/layer-types';
2
- export declare class FrameworkLayerModule {
3
- /**
4
- * Detect frameworks from package layers
5
- */
6
- detectFrameworks(packageLayers: PackageLayer[]): FrameworkLayer[];
7
- /**
8
- * Get framework compatibility information
9
- */
10
- analyzeCompatibility(frameworks: FrameworkLayer[]): {
11
- conflicts: Array<{
12
- framework1: string;
13
- framework2: string;
14
- reason: string;
15
- }>;
16
- recommendations: Array<{
17
- message: string;
18
- severity: 'info' | 'warning';
19
- }>;
20
- };
21
- }
22
- //# sourceMappingURL=FrameworkLayerModule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FrameworkLayerModule.d.ts","sourceRoot":"","sources":["../../src/modules/FrameworkLayerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAW,MAAM,sBAAsB,CAAC;AAkP7E,qBAAa,oBAAoB;IAC/B;;OAEG;IACH,gBAAgB,CAAC,aAAa,EAAE,YAAY,EAAE,GAAG,cAAc,EAAE;IAiIjE;;OAEG;IACH,oBAAoB,CAAC,UAAU,EAAE,cAAc,EAAE,GAAG;QAClD,SAAS,EAAE,KAAK,CAAC;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC7E,eAAe,EAAE,KAAK,CAAC;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;SAAE,CAAC,CAAC;KAC3E;CAuDF"}