agent-skills-standard 2.7.0 → 2.7.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/dist/index.js CHANGED
@@ -50,7 +50,7 @@ let crypto = require("crypto");
50
50
  crypto = __toESM(crypto);
51
51
  var package_default = {
52
52
  name: "agent-skills-standard",
53
- version: "2.7.0",
53
+ version: "2.7.1",
54
54
  description: "A CLI to manage and sync AI agent skills standard for Cursor, Claude, Copilot, Windsurf, and more.",
55
55
  main: "dist/index.js",
56
56
  bin: {
@@ -7289,7 +7289,7 @@ var SyncService = class {
7289
7289
  githubService;
7290
7290
  skillSyncService;
7291
7291
  workflowSyncService;
7292
- specialistSyncService = new SpecialistSyncService();
7292
+ specialistSyncService;
7293
7293
  gitService = new GitService();
7294
7294
  lockfileService = new LockfileService();
7295
7295
  writer = new PassthroughWriter(process.cwd());
@@ -7310,6 +7310,7 @@ var SyncService = class {
7310
7310
  this.githubService = githubService;
7311
7311
  this.skillSyncService = new SkillSyncService(githubService);
7312
7312
  this.workflowSyncService = new WorkflowSyncService(githubService);
7313
+ this.specialistSyncService = new SpecialistSyncService(githubService);
7313
7314
  }
7314
7315
  async reconcileConfig(config, projectDeps) {
7315
7316
  const reenabled = this.configService.reconcileDependencies(config, projectDeps);
@@ -9026,6 +9027,7 @@ var SyncCommand = class {
9026
9027
  }
9027
9028
  for (const warning of resolvedRefs.warnings) console.log(picocolors.default.yellow(warning));
9028
9029
  const updates = await this.syncService.checkForUpdates(config);
9030
+ let refsChanged = false;
9029
9031
  if (updates && Object.keys(updates).length > 0) {
9030
9032
  if (options.dryRun) {
9031
9033
  if (!options.json) for (const [cat, ref] of Object.entries(updates)) console.log(picocolors.default.gray(` (dry-run) would offer: ${cat} -> ${ref}`));
@@ -9048,14 +9050,22 @@ var SyncCommand = class {
9048
9050
  }])).update;
9049
9051
  }
9050
9052
  if (update) {
9051
- for (const [cat, ref] of Object.entries(updates)) if (cat === "workflows") config.workflows_ref = ref;
9052
- else if (cat === "specialists") config.specialists_ref = ref;
9053
- else if (config.skills[cat]) config.skills[cat].ref = ref;
9053
+ for (const [cat, ref] of Object.entries(updates)) if (cat === "workflows") {
9054
+ config.workflows_ref = ref;
9055
+ refsChanged = true;
9056
+ } else if (cat === "specialists") {
9057
+ config.specialists_ref = ref;
9058
+ refsChanged = true;
9059
+ } else if (config.skills[cat]) {
9060
+ config.skills[cat].ref = ref;
9061
+ refsChanged = true;
9062
+ }
9054
9063
  await this.configService.saveConfig(config);
9055
9064
  console.log(picocolors.default.green("✅ .skillsrc updated."));
9056
9065
  } else console.log(picocolors.default.cyan("ℹ️ Skipping version updates, staying on pinned refs."));
9057
9066
  }
9058
9067
  }
9068
+ if (refsChanged) await this.syncService.resolvePins(config);
9059
9069
  if (!options.json) console.log(picocolors.default.cyan(`🚀 Syncing skills from ${config.registry}...`));
9060
9070
  await this.syncService.beginInstall(config, {
9061
9071
  dryRun: Boolean(options.dryRun),