@kienha/anti-chaotic 1.0.6 → 1.0.7
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/bin/anti-chaotic.js +32 -0
- package/package.json +1 -1
package/bin/anti-chaotic.js
CHANGED
|
@@ -26,6 +26,22 @@ program
|
|
|
26
26
|
force: true,
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
+
// Cleanup deprecated files
|
|
30
|
+
const deprecatedFiles = [
|
|
31
|
+
"rules/documentation.md",
|
|
32
|
+
"workflows/docs-from-codebase.md",
|
|
33
|
+
"workflows/requirement-analysis.md",
|
|
34
|
+
"workflows/setup-codebase.md",
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
for (const file of deprecatedFiles) {
|
|
38
|
+
const filePath = path.join(targetAgentDir, file);
|
|
39
|
+
if (await fs.pathExists(filePath)) {
|
|
40
|
+
await fs.remove(filePath);
|
|
41
|
+
console.log(chalk.dim(` Removed legacy file: ${file}`));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
29
45
|
console.log(
|
|
30
46
|
chalk.green("✔ Successfully installed Anti-Chaotic Agent Kit."),
|
|
31
47
|
);
|
|
@@ -70,6 +86,22 @@ program
|
|
|
70
86
|
force: true,
|
|
71
87
|
});
|
|
72
88
|
|
|
89
|
+
// Cleanup deprecated files
|
|
90
|
+
const deprecatedFiles = [
|
|
91
|
+
"rules/documentation.md",
|
|
92
|
+
"workflows/docs-from-codebase.md",
|
|
93
|
+
"workflows/requirement-analysis.md",
|
|
94
|
+
"workflows/setup-codebase.md",
|
|
95
|
+
];
|
|
96
|
+
|
|
97
|
+
for (const file of deprecatedFiles) {
|
|
98
|
+
const filePath = path.join(targetAgentDir, file);
|
|
99
|
+
if (await fs.pathExists(filePath)) {
|
|
100
|
+
await fs.remove(filePath);
|
|
101
|
+
console.log(chalk.dim(` Removed legacy file: ${file}`));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
73
105
|
console.log(chalk.green("✔ Successfully updated .agent from GitHub."));
|
|
74
106
|
console.log(chalk.dim(` Location: ${targetAgentDir}`));
|
|
75
107
|
} catch (err) {
|