@itd2902/auggw 1.1.0 → 1.1.1
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/package.json +1 -1
- package/src/commands/fetch.js +12 -2
package/package.json
CHANGED
package/src/commands/fetch.js
CHANGED
|
@@ -48,6 +48,11 @@ function installToAugment(data) {
|
|
|
48
48
|
count++;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
for (const agent of data.agents || []) {
|
|
52
|
+
writeFile(path.join(baseDir, "agents", agent.name), agent.content);
|
|
53
|
+
count++;
|
|
54
|
+
}
|
|
55
|
+
|
|
51
56
|
return count;
|
|
52
57
|
}
|
|
53
58
|
|
|
@@ -65,6 +70,11 @@ function installToClaude(data) {
|
|
|
65
70
|
count++;
|
|
66
71
|
}
|
|
67
72
|
|
|
73
|
+
for (const agent of data.agents || []) {
|
|
74
|
+
writeFile(path.join(baseDir, "agents", agent.name), agent.content);
|
|
75
|
+
count++;
|
|
76
|
+
}
|
|
77
|
+
|
|
68
78
|
return count;
|
|
69
79
|
}
|
|
70
80
|
|
|
@@ -84,14 +94,14 @@ async function fetchPrompts() {
|
|
|
84
94
|
console.log("\n⏳ Fetching prompts from server...");
|
|
85
95
|
const data = await apiRequest("GET", "/api/prompts");
|
|
86
96
|
|
|
87
|
-
const totalItems = data.commands.length + data.skills.length;
|
|
97
|
+
const totalItems = data.commands.length + data.skills.length + (data.agents || []).length;
|
|
88
98
|
if (totalItems === 0) {
|
|
89
99
|
console.log("ℹ️ Không có prompts nào trên server.");
|
|
90
100
|
return;
|
|
91
101
|
}
|
|
92
102
|
|
|
93
103
|
console.log(
|
|
94
|
-
` Found: ${data.commands.length} command(s), ${data.skills.length} skill(s)\n`,
|
|
104
|
+
` Found: ${data.commands.length} command(s), ${data.skills.length} skill(s), ${(data.agents || []).length} agent(s)\n`,
|
|
95
105
|
);
|
|
96
106
|
|
|
97
107
|
if (choice === "1" || choice === "3") {
|