generator-agent 1.0.11 → 1.0.13
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/install.js +13 -3
- package/package.json +1 -1
package/bin/install.js
CHANGED
|
@@ -24,9 +24,13 @@ function runInstall(targetRoot = process.cwd()) {
|
|
|
24
24
|
const foldersToCopy = ['.github', 'Generator_Patterns', 'Created_Generators'];
|
|
25
25
|
const filesToCopy = ['README.md'];
|
|
26
26
|
|
|
27
|
+
console.log(`[GeneratorAgent] Installing to: ${targetRoot}`);
|
|
28
|
+
console.log(`[GeneratorAgent] Package root: ${pkgRoot}`);
|
|
29
|
+
|
|
27
30
|
foldersToCopy.forEach(folder => {
|
|
28
31
|
const src = path.join(pkgRoot, folder);
|
|
29
32
|
const dest = path.join(targetRoot, folder);
|
|
33
|
+
console.log(`[GeneratorAgent] Copying ${src} to ${dest}`);
|
|
30
34
|
copyRecursive(src, dest);
|
|
31
35
|
});
|
|
32
36
|
|
|
@@ -34,18 +38,24 @@ function runInstall(targetRoot = process.cwd()) {
|
|
|
34
38
|
const src = path.join(pkgRoot, file);
|
|
35
39
|
const dest = path.join(targetRoot, file);
|
|
36
40
|
if (fs.existsSync(src)) {
|
|
41
|
+
console.log(`[GeneratorAgent] Copying file ${src} to ${dest}`);
|
|
37
42
|
fs.copyFileSync(src, dest);
|
|
38
43
|
}
|
|
39
44
|
});
|
|
40
45
|
|
|
41
|
-
// Delete the entire
|
|
46
|
+
// Delete the entire generator-agent package from node_modules after copying
|
|
42
47
|
try {
|
|
43
|
-
const nodeModulesPath = path.join(targetRoot, 'node_modules', '
|
|
48
|
+
const nodeModulesPath = path.join(targetRoot, 'node_modules', 'generator-agent');
|
|
49
|
+
console.log(`[GeneratorAgent] Attempting to remove: ${nodeModulesPath}`);
|
|
44
50
|
if (fs.existsSync(nodeModulesPath)) {
|
|
51
|
+
console.log(`[GeneratorAgent] Found generator-agent in node_modules, removing...`);
|
|
45
52
|
fs.rmSync(nodeModulesPath, { recursive: true, force: true });
|
|
53
|
+
console.log(`[GeneratorAgent] Successfully removed generator-agent from node_modules`);
|
|
54
|
+
} else {
|
|
55
|
+
console.log(`[GeneratorAgent] generator-agent not found in node_modules`);
|
|
46
56
|
}
|
|
47
57
|
} catch (err) {
|
|
48
|
-
console.log(
|
|
58
|
+
console.log(`[GeneratorAgent] Error removing package: ${err.message}`);
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
// eslint-disable-next-line no-console
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "generator-agent",
|
|
3
3
|
"displayName": "GeneratorAgent",
|
|
4
4
|
"description": "Custom agent that responds with greetings and follows specific instructions",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.13",
|
|
6
6
|
"publisher": "Ishwarya",
|
|
7
7
|
"author": "Ishwarya",
|
|
8
8
|
"license": "MIT",
|