ai-agent-config 2.4.2 ā 2.4.4
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/cli.js +14 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -9,7 +9,7 @@ const platforms = require("../scripts/platforms");
|
|
|
9
9
|
const migration = require("../scripts/migration");
|
|
10
10
|
const externalSync = require("../scripts/external-sync");
|
|
11
11
|
|
|
12
|
-
const VERSION = "2.4.
|
|
12
|
+
const VERSION = "2.4.4";
|
|
13
13
|
|
|
14
14
|
// Get package root (one level up from bin/)
|
|
15
15
|
const PACKAGE_ROOT = path.join(__dirname, "..");
|
|
@@ -719,6 +719,19 @@ function update(args) {
|
|
|
719
719
|
if (result.failed > 0) {
|
|
720
720
|
console.log(` Failed: ${result.failed} source(s)`);
|
|
721
721
|
}
|
|
722
|
+
|
|
723
|
+
// Auto-push after successful sync
|
|
724
|
+
if (result.copied > 0) {
|
|
725
|
+
console.log("\nš¤ Auto-pushing synced skills to repository...\n");
|
|
726
|
+
const SyncManager = require("../scripts/sync-manager");
|
|
727
|
+
const syncManager = new SyncManager();
|
|
728
|
+
|
|
729
|
+
const skillNames = options.skill || "external skills";
|
|
730
|
+
const message = `chore: sync ${skillNames} from external sources`;
|
|
731
|
+
|
|
732
|
+
syncManager.push({ message });
|
|
733
|
+
}
|
|
734
|
+
|
|
722
735
|
console.log("");
|
|
723
736
|
} catch (error) {
|
|
724
737
|
console.error(`\nā Update failed: ${error.message}`);
|