@deerdesign/deertools 1.2.8 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deerdesign/deertools",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -159,18 +159,22 @@ async function cmdSkillPush(dir, flags, out, err) {
159
159
  throw new Error(`Nie udało się opublikować skilla (${res.status}): ${res.data?.error || 'Błąd serwera'}`);
160
160
  }
161
161
 
162
- const skill = res.data.skill || {};
163
- const version = res.data.version || res.data.selected_version || {};
164
- const manifest = version.files_manifest || [];
162
+ const skill = res.data.skill || res.data || {};
163
+ const versionNum = res.data.pushed_version || res.data.version?.version || skill.latest_version;
164
+ const changelog = res.data.pushed_changelog || res.data.version?.changelog || versionNum;
165
+ const manifestCount = res.data.pushed_manifest_count !== undefined
166
+ ? res.data.pushed_manifest_count
167
+ : (res.data.version?.files_manifest?.length || 0);
168
+
165
169
  out(`\n✓ Pomyślnie opublikowano skill w DeerSkills Hub:`);
166
170
  out(` • Identyfikator: \x1b[1m${skill.full_slug || skill.slug}\x1b[0m`);
167
- out(` • Wersja: \x1b[32mv${version.version || skill.latest_version}\x1b[0m`);
168
- if (version.changelog) {
169
- out(` • Changelog: \x1b[33m${version.changelog}\x1b[0m`);
171
+ out(` • Wersja: \x1b[32mv${versionNum}\x1b[0m`);
172
+ if (changelog && changelog !== versionNum) {
173
+ out(` • Changelog: \x1b[33m${changelog}\x1b[0m`);
170
174
  }
171
- out(` • Paczka: ${manifest.length + 1} plików (SKILL.md + ${manifest.length} plików w podkatalogach)`);
175
+ out(` • Paczka: ${manifestCount + 1} plików (SKILL.md + ${manifestCount} plików w podkatalogach)`);
172
176
  out(` • Widoczność: ${skill.visibility || 'shared'}`);
173
- out(`\nAby zainstalować tę wersję w projekcie:\n \x1b[36mdeertools skill install ${skill.full_slug || skill.slug}@${version.version || skill.latest_version}\x1b[0m\n`);
177
+ out(`\nAby zainstalować tę wersję w projekcie:\n \x1b[36mdeertools skill install ${skill.full_slug || skill.slug}@${versionNum}\x1b[0m\n`);
174
178
  }
175
179
 
176
180
  async function cmdSkillVersions(slug, flags, out, err) {
package/src/skills-hub.js CHANGED
@@ -279,7 +279,13 @@ async function pushSkill(skillDir, { version = null, bump = 'patch', changelog =
279
279
  files_manifest: manifest,
280
280
  };
281
281
 
282
- return hubRequest('/skills/push', { method: 'POST', body });
282
+ const res = await hubRequest('/skills/push', { method: 'POST', body });
283
+ if (res.ok && res.data) {
284
+ res.data.pushed_version = targetVersion;
285
+ res.data.pushed_manifest_count = manifest.length;
286
+ res.data.pushed_changelog = finalChangelog;
287
+ }
288
+ return res;
283
289
  }
284
290
 
285
291
  async function listMcpServers() {