ai-agent-config 2.4.7 ā 2.4.9
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 +2 -5
- package/package.json +1 -1
- package/scripts/external-sync.js +2 -2
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 = "
|
|
12
|
+
const VERSION = require("../package.json").version;
|
|
13
13
|
|
|
14
14
|
// Get package root (one level up from bin/)
|
|
15
15
|
const PACKAGE_ROOT = path.join(__dirname, "..");
|
|
@@ -694,15 +694,12 @@ function update(args) {
|
|
|
694
694
|
console.log("\nš Updating skills from all sources...\n");
|
|
695
695
|
|
|
696
696
|
const options = {
|
|
697
|
-
force: false,
|
|
698
697
|
source: null,
|
|
699
698
|
skill: null,
|
|
700
699
|
};
|
|
701
700
|
|
|
702
701
|
for (let i = 0; i < args.length; i++) {
|
|
703
|
-
if (args[i] === "--
|
|
704
|
-
options.force = true;
|
|
705
|
-
} else if (args[i] === "--source" && args[i + 1]) {
|
|
702
|
+
if (args[i] === "--source" && args[i + 1]) {
|
|
706
703
|
options.source = args[++i];
|
|
707
704
|
} else if (args[i] === "--skill" && args[i + 1]) {
|
|
708
705
|
options.skill = args[++i];
|
package/package.json
CHANGED
package/scripts/external-sync.js
CHANGED
|
@@ -141,7 +141,7 @@ function addAttribution(skillPath, attribution) {
|
|
|
141
141
|
* Sync all external skills
|
|
142
142
|
*/
|
|
143
143
|
function syncAll(options = {}) {
|
|
144
|
-
const {
|
|
144
|
+
const { source = null, skill = null } = options;
|
|
145
145
|
|
|
146
146
|
console.log("\nš Syncing external skills...\n");
|
|
147
147
|
|
|
@@ -194,7 +194,7 @@ function syncAll(options = {}) {
|
|
|
194
194
|
const targetPath = path.join(targetDir, skillDef.name);
|
|
195
195
|
const excludePaths = skillDef.excludePaths || [];
|
|
196
196
|
|
|
197
|
-
const result = copySkill(sourcePath, targetPath,
|
|
197
|
+
const result = copySkill(sourcePath, targetPath, true, excludePaths);
|
|
198
198
|
|
|
199
199
|
if (result.copied) {
|
|
200
200
|
// Skip attribution to save tokens - attribution is already in external-skills.json
|