ai-agent-config 2.8.2 → 2.8.5
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 +2 -3
- package/bin/cli.js +11 -11
- package/package.json +2 -2
- package/scripts/installer.js +2 -2
package/README.md
CHANGED
|
@@ -32,11 +32,10 @@ ai-agent update
|
|
|
32
32
|
|
|
33
33
|
| Command | Description |
|
|
34
34
|
|---------|-------------|
|
|
35
|
-
| `init --repo <url>` | Initialize config
|
|
35
|
+
| `init --repo <url>` | Initialize config, clone repo, and install |
|
|
36
36
|
| `push [--message "msg"]` | Git push to your skills repo |
|
|
37
37
|
| `pull` | Git pull from repo + auto-install |
|
|
38
|
-
| `update` | Pull → sync external skills → push |
|
|
39
|
-
| `install` | Copy skills to platform directories |
|
|
38
|
+
| `update` | Pull → sync external skills → push → install |
|
|
40
39
|
| `list` | List installed skills |
|
|
41
40
|
| `platforms` | Show detected platforms |
|
|
42
41
|
| `uninstall` | Remove installed skills |
|
package/bin/cli.js
CHANGED
|
@@ -39,8 +39,7 @@ Usage: ai-agent <command> [options]
|
|
|
39
39
|
config reset Reset to default config
|
|
40
40
|
|
|
41
41
|
🔧 Installation & Sync:
|
|
42
|
-
|
|
43
|
-
update [opts] Update allskills from sources
|
|
42
|
+
update [opts] Update all skills from sources
|
|
44
43
|
list List installed skills
|
|
45
44
|
uninstall [opts] Uninstall skills from platforms
|
|
46
45
|
|
|
@@ -75,9 +74,6 @@ Usage: ai-agent <command> [options]
|
|
|
75
74
|
# Update all skills
|
|
76
75
|
ai-agent update
|
|
77
76
|
|
|
78
|
-
# Force reinstall all skills
|
|
79
|
-
ai-agent install --force
|
|
80
|
-
|
|
81
77
|
# Export your config to share with team
|
|
82
78
|
ai-agent config export my-config.json
|
|
83
79
|
|
|
@@ -232,6 +228,10 @@ function init(args) {
|
|
|
232
228
|
configManager.setConfigValue("repository.url", repoUrl);
|
|
233
229
|
configManager.setConfigValue("repository.local", localPath);
|
|
234
230
|
console.log("✅ Repository configured!\n");
|
|
231
|
+
|
|
232
|
+
// Auto-install after initial clone
|
|
233
|
+
console.log("📥 Auto-installing skills + MCP servers...\n");
|
|
234
|
+
install(["--force", "--no-sync"]);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
const detected = platforms.detectAll();
|
|
@@ -245,9 +245,8 @@ function init(args) {
|
|
|
245
245
|
console.log(" 1. ai-agent push # Push skills to repository");
|
|
246
246
|
console.log(" 2. ai-agent pull # Pull skills from repository");
|
|
247
247
|
} else {
|
|
248
|
-
console.log(" 1. ai-agent
|
|
249
|
-
console.log(" 2. ai-agent
|
|
250
|
-
console.log(" 3. ai-agent source add ... # Add custom sources");
|
|
248
|
+
console.log(" 1. ai-agent source add ... # Add custom sources");
|
|
249
|
+
console.log(" 2. ai-agent update # Update from sources");
|
|
251
250
|
}
|
|
252
251
|
console.log("");
|
|
253
252
|
}
|
|
@@ -736,6 +735,10 @@ function update(args) {
|
|
|
736
735
|
}
|
|
737
736
|
}
|
|
738
737
|
|
|
738
|
+
// 4. Auto-install
|
|
739
|
+
console.log("\n📥 Auto-installing skills + MCP servers...\n");
|
|
740
|
+
install(["--force", "--no-sync"]);
|
|
741
|
+
|
|
739
742
|
console.log("");
|
|
740
743
|
} catch (error) {
|
|
741
744
|
console.error(`\n❌ Update failed: ${error.message}`);
|
|
@@ -977,9 +980,6 @@ async function secretsSync() {
|
|
|
977
980
|
case "pull":
|
|
978
981
|
pull(args.slice(1));
|
|
979
982
|
break;
|
|
980
|
-
case "install":
|
|
981
|
-
install(args.slice(1));
|
|
982
|
-
break;
|
|
983
983
|
case "update":
|
|
984
984
|
update(args.slice(1));
|
|
985
985
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-agent-config",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.5",
|
|
4
4
|
"description": "Universal skill & workflow manager for AI coding assistants with bi-directional GitHub sync",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
"index.js",
|
|
52
52
|
"README.md"
|
|
53
53
|
]
|
|
54
|
-
}
|
|
54
|
+
}
|
package/scripts/installer.js
CHANGED
|
@@ -251,8 +251,8 @@ function installToPlatform(platform, options = {}) {
|
|
|
251
251
|
function install(options = {}) {
|
|
252
252
|
const { force = false, skill = null, sync = true } = options;
|
|
253
253
|
|
|
254
|
-
//
|
|
255
|
-
if (sync
|
|
254
|
+
// Always sync repo to get latest
|
|
255
|
+
if (sync) {
|
|
256
256
|
console.log("\n📦 Syncing skills from repository...");
|
|
257
257
|
if (!syncRepo()) {
|
|
258
258
|
throw new Error("Failed to sync repository. Check your internet connection.");
|