@parseme/cli 0.0.3 → 0.0.4
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/README.md +163 -156
- package/dist/{cli.js → cli/cli.js} +59 -49
- package/dist/{prompt.d.ts → cli/prompt.d.ts} +0 -1
- package/dist/{prompt.js → cli/prompt.js} +0 -9
- package/dist/{analyzers → core/analyzers}/ast-analyzer.js +7 -6
- package/dist/{analyzers → core/analyzers}/framework-detector.d.ts +0 -3
- package/dist/{analyzers → core/analyzers}/framework-detector.js +0 -4
- package/dist/{analyzers → core/analyzers}/git-analyzer.d.ts +0 -3
- package/dist/{analyzers → core/analyzers}/git-analyzer.js +0 -4
- package/dist/{analyzers → core/analyzers}/pattern-detector.d.ts +0 -3
- package/dist/{analyzers → core/analyzers}/pattern-detector.js +52 -47
- package/dist/{analyzers → core/analyzers}/project-analyzer.d.ts +2 -0
- package/dist/{analyzers → core/analyzers}/project-analyzer.js +19 -5
- package/dist/core/config.d.ts +20 -0
- package/dist/{config.js → core/config.js} +80 -68
- package/dist/{builders → core}/context-builder.d.ts +3 -8
- package/dist/{builders → core}/context-builder.js +7 -84
- package/dist/{generator.d.ts → core/generator.d.ts} +0 -3
- package/dist/{generator.js → core/generator.js} +8 -13
- package/dist/core/types/analyzer-types.d.ts +39 -0
- package/dist/core/types/analyzer-types.js +2 -0
- package/dist/{config.d.ts → core/types/config-types.d.ts} +8 -15
- package/dist/core/types/config-types.js +2 -0
- package/dist/core/types/generator-types.d.ts +8 -0
- package/dist/core/types/generator-types.js +2 -0
- package/dist/core/types/index.d.ts +4 -0
- package/dist/core/types/index.js +5 -0
- package/dist/core/types/project-types.d.ts +30 -0
- package/dist/core/types/project-types.js +2 -0
- package/dist/core/types.d.ts +1 -0
- package/dist/core/types.js +2 -0
- package/dist/index.d.ts +3 -4
- package/dist/index.js +2 -2
- package/package.json +3 -4
- package/dist/types.d.ts +0 -84
- package/dist/types.js +0 -2
- /package/dist/{cli.d.ts → cli/cli.d.ts} +0 -0
- /package/dist/{analyzers → core/analyzers}/ast-analyzer.d.ts +0 -0
package/dist/types.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import type { ServiceInfo, ModelInfo, ConfigInfo, MiddlewareInfo, UtilityInfo } from './analyzers/pattern-detector.js';
|
|
2
|
-
export type { ServiceInfo, ModelInfo, ConfigInfo, MiddlewareInfo, UtilityInfo };
|
|
3
|
-
export interface GeneratorOptions {
|
|
4
|
-
rootDir?: string;
|
|
5
|
-
includeGitInfo?: boolean;
|
|
6
|
-
maxDepth?: number;
|
|
7
|
-
excludePatterns?: string[];
|
|
8
|
-
includePatterns?: string[];
|
|
9
|
-
}
|
|
10
|
-
export interface ProjectInfo {
|
|
11
|
-
name: string;
|
|
12
|
-
version?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
type: 'typescript' | 'javascript' | 'mixed';
|
|
15
|
-
category: ProjectCategory;
|
|
16
|
-
packageManager: 'npm' | 'yarn' | 'pnpm' | 'bun';
|
|
17
|
-
framework?: FrameworkInfo;
|
|
18
|
-
buildTool?: BuildToolInfo;
|
|
19
|
-
dependencies: Record<string, string>;
|
|
20
|
-
devDependencies: Record<string, string>;
|
|
21
|
-
scripts?: Record<string, string>;
|
|
22
|
-
entryPoints?: string[];
|
|
23
|
-
outputTargets?: string[];
|
|
24
|
-
}
|
|
25
|
-
export type ProjectCategory = 'backend-api' | 'frontend-web' | 'frontend-mobile' | 'npm-package' | 'monorepo' | 'cli-tool' | 'desktop-app' | 'fullstack' | 'unknown';
|
|
26
|
-
export interface BuildToolInfo {
|
|
27
|
-
name: string;
|
|
28
|
-
version?: string;
|
|
29
|
-
configFiles: string[];
|
|
30
|
-
features: string[];
|
|
31
|
-
}
|
|
32
|
-
export interface FrameworkInfo {
|
|
33
|
-
name: string;
|
|
34
|
-
version?: string;
|
|
35
|
-
features: string[];
|
|
36
|
-
routes?: RouteInfo[];
|
|
37
|
-
components?: ComponentInfo[];
|
|
38
|
-
}
|
|
39
|
-
export interface RouteInfo {
|
|
40
|
-
method: string;
|
|
41
|
-
path: string;
|
|
42
|
-
handler: string;
|
|
43
|
-
middleware?: string[];
|
|
44
|
-
file: string;
|
|
45
|
-
line: number;
|
|
46
|
-
}
|
|
47
|
-
export interface ComponentInfo {
|
|
48
|
-
name: string;
|
|
49
|
-
file: string;
|
|
50
|
-
line: number;
|
|
51
|
-
}
|
|
52
|
-
export interface FileAnalysis {
|
|
53
|
-
path: string;
|
|
54
|
-
type: 'route' | 'middleware' | 'model' | 'service' | 'utility' | 'config' | 'test' | 'component';
|
|
55
|
-
framework?: string;
|
|
56
|
-
exports: string[];
|
|
57
|
-
imports: string[];
|
|
58
|
-
functions: string[];
|
|
59
|
-
classes: string[];
|
|
60
|
-
routes?: RouteInfo[];
|
|
61
|
-
components?: ComponentInfo[];
|
|
62
|
-
services?: ServiceInfo[];
|
|
63
|
-
models?: ModelInfo[];
|
|
64
|
-
configs?: ConfigInfo[];
|
|
65
|
-
middleware?: MiddlewareInfo[];
|
|
66
|
-
utilities?: UtilityInfo[];
|
|
67
|
-
}
|
|
68
|
-
export interface ContextOutput {
|
|
69
|
-
parseme: string;
|
|
70
|
-
context?: {
|
|
71
|
-
structure: string;
|
|
72
|
-
routes: string;
|
|
73
|
-
dependencies: string;
|
|
74
|
-
[key: string]: string;
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
export interface GitInfo {
|
|
78
|
-
branch: string;
|
|
79
|
-
lastCommit: string;
|
|
80
|
-
changedFiles: string[];
|
|
81
|
-
status: 'clean' | 'dirty';
|
|
82
|
-
origin?: string;
|
|
83
|
-
diffStat?: string;
|
|
84
|
-
}
|
package/dist/types.js
DELETED
|
File without changes
|
|
File without changes
|