mycontext-cli 2.0.2 → 2.0.3
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/agents/implementations/CodeGenSubAgent.d.ts.map +1 -1
- package/dist/agents/implementations/CodeGenSubAgent.js +69 -0
- package/dist/agents/implementations/CodeGenSubAgent.js.map +1 -1
- package/dist/agents/implementations/PromptConstructorAgent.d.ts.map +1 -1
- package/dist/agents/implementations/PromptConstructorAgent.js +23 -0
- package/dist/agents/implementations/PromptConstructorAgent.js.map +1 -1
- package/dist/cli.js +11 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/health-check.d.ts +28 -0
- package/dist/commands/health-check.d.ts.map +1 -0
- package/dist/commands/health-check.js +271 -0
- package/dist/commands/health-check.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/utils/NextJSProjectGenerator.d.ts +70 -0
- package/dist/utils/NextJSProjectGenerator.d.ts.map +1 -0
- package/dist/utils/NextJSProjectGenerator.js +811 -0
- package/dist/utils/NextJSProjectGenerator.js.map +1 -0
- package/dist/utils/NextJSProjectValidator.d.ts +103 -0
- package/dist/utils/NextJSProjectValidator.d.ts.map +1 -0
- package/dist/utils/NextJSProjectValidator.js +759 -0
- package/dist/utils/NextJSProjectValidator.js.map +1 -0
- package/dist/utils/PreCommandValidator.d.ts +77 -0
- package/dist/utils/PreCommandValidator.d.ts.map +1 -0
- package/dist/utils/PreCommandValidator.js +251 -0
- package/dist/utils/PreCommandValidator.js.map +1 -0
- package/dist/utils/ProjectHealthMonitor.d.ts +131 -0
- package/dist/utils/ProjectHealthMonitor.d.ts.map +1 -0
- package/dist/utils/ProjectHealthMonitor.js +454 -0
- package/dist/utils/ProjectHealthMonitor.js.map +1 -0
- package/dist/utils/ProjectInitializationSafeguards.d.ts +81 -0
- package/dist/utils/ProjectInitializationSafeguards.d.ts.map +1 -0
- package/dist/utils/ProjectInitializationSafeguards.js +620 -0
- package/dist/utils/ProjectInitializationSafeguards.js.map +1 -0
- package/dist/utils/ProjectStructureRepair.d.ts +110 -0
- package/dist/utils/ProjectStructureRepair.d.ts.map +1 -0
- package/dist/utils/ProjectStructureRepair.js +785 -0
- package/dist/utils/ProjectStructureRepair.js.map +1 -0
- package/dist/utils/ProjectStructureValidator.d.ts +128 -0
- package/dist/utils/ProjectStructureValidator.d.ts.map +1 -0
- package/dist/utils/ProjectStructureValidator.js +662 -0
- package/dist/utils/ProjectStructureValidator.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export interface RepairResult {
|
|
2
|
+
success: boolean;
|
|
3
|
+
repaired: number;
|
|
4
|
+
failed: number;
|
|
5
|
+
skipped: number;
|
|
6
|
+
errors: string[];
|
|
7
|
+
warnings: string[];
|
|
8
|
+
actions: RepairAction[];
|
|
9
|
+
}
|
|
10
|
+
export interface RepairAction {
|
|
11
|
+
type: "create" | "delete" | "move" | "update" | "fix";
|
|
12
|
+
description: string;
|
|
13
|
+
file?: string;
|
|
14
|
+
success: boolean;
|
|
15
|
+
error?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class ProjectStructureRepair {
|
|
18
|
+
private validator;
|
|
19
|
+
private projectRoot;
|
|
20
|
+
private backupEnabled;
|
|
21
|
+
private dryRun;
|
|
22
|
+
constructor(projectRoot?: string);
|
|
23
|
+
/**
|
|
24
|
+
* Comprehensive project structure repair
|
|
25
|
+
*/
|
|
26
|
+
repairProject(options?: {
|
|
27
|
+
dryRun?: boolean;
|
|
28
|
+
backup?: boolean;
|
|
29
|
+
force?: boolean;
|
|
30
|
+
verbose?: boolean;
|
|
31
|
+
}): Promise<RepairResult>;
|
|
32
|
+
/**
|
|
33
|
+
* Create backup of current project
|
|
34
|
+
*/
|
|
35
|
+
private createBackup;
|
|
36
|
+
/**
|
|
37
|
+
* Repair critical issues
|
|
38
|
+
*/
|
|
39
|
+
private repairCriticalIssues;
|
|
40
|
+
/**
|
|
41
|
+
* Repair high priority issues
|
|
42
|
+
*/
|
|
43
|
+
private repairHighPriorityIssues;
|
|
44
|
+
/**
|
|
45
|
+
* Repair medium priority issues
|
|
46
|
+
*/
|
|
47
|
+
private repairMediumPriorityIssues;
|
|
48
|
+
/**
|
|
49
|
+
* Repair low priority issues
|
|
50
|
+
*/
|
|
51
|
+
private repairLowPriorityIssues;
|
|
52
|
+
/**
|
|
53
|
+
* Repair a specific issue
|
|
54
|
+
*/
|
|
55
|
+
private repairIssue;
|
|
56
|
+
/**
|
|
57
|
+
* Repair multiple package.json files
|
|
58
|
+
*/
|
|
59
|
+
private repairMultiplePackageJson;
|
|
60
|
+
/**
|
|
61
|
+
* Repair nested node_modules directories
|
|
62
|
+
*/
|
|
63
|
+
private repairNestedNodeModules;
|
|
64
|
+
/**
|
|
65
|
+
* Repair multiple lock files
|
|
66
|
+
*/
|
|
67
|
+
private repairMultipleLockFiles;
|
|
68
|
+
/**
|
|
69
|
+
* Repair multiple build configurations
|
|
70
|
+
*/
|
|
71
|
+
private repairMultipleBuildConfigs;
|
|
72
|
+
/**
|
|
73
|
+
* Repair missing package.json
|
|
74
|
+
*/
|
|
75
|
+
private repairMissingPackageJson;
|
|
76
|
+
/**
|
|
77
|
+
* Repair missing lock file
|
|
78
|
+
*/
|
|
79
|
+
private repairMissingLockFile;
|
|
80
|
+
/**
|
|
81
|
+
* Repair missing TypeScript configuration
|
|
82
|
+
*/
|
|
83
|
+
private repairMissingTsConfig;
|
|
84
|
+
/**
|
|
85
|
+
* Repair missing build configuration
|
|
86
|
+
*/
|
|
87
|
+
private repairMissingBuildConfig;
|
|
88
|
+
/**
|
|
89
|
+
* Repair package manager configuration
|
|
90
|
+
*/
|
|
91
|
+
private repairPackageManager;
|
|
92
|
+
/**
|
|
93
|
+
* Optimize project structure
|
|
94
|
+
*/
|
|
95
|
+
private optimizeProjectStructure;
|
|
96
|
+
/**
|
|
97
|
+
* Perform final validation
|
|
98
|
+
*/
|
|
99
|
+
private performFinalValidation;
|
|
100
|
+
/**
|
|
101
|
+
* Helper methods
|
|
102
|
+
*/
|
|
103
|
+
private findFiles;
|
|
104
|
+
private findDirectories;
|
|
105
|
+
private generateDefaultPackageJson;
|
|
106
|
+
private generateDefaultTsConfig;
|
|
107
|
+
private generateDefaultNextConfig;
|
|
108
|
+
private generateGitignoreContent;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=ProjectStructureRepair.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectStructureRepair.d.ts","sourceRoot":"","sources":["../../src/utils/ProjectStructureRepair.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,sBAAsB;IACjC,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,MAAM,CAAkB;gBAEpB,WAAW,GAAE,MAAsB;IAK/C;;OAEG;IACG,aAAa,CAAC,OAAO,GAAE;QAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,OAAO,CAAC,EAAE,OAAO,CAAC;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