@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 +1 -1
- package/src/skill-commands.js +12 -8
- package/src/skills-hub.js +7 -1
package/package.json
CHANGED
package/src/skill-commands.js
CHANGED
|
@@ -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
|
|
164
|
-
const
|
|
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${
|
|
168
|
-
if (
|
|
169
|
-
out(` • Changelog: \x1b[33m${
|
|
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: ${
|
|
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}@${
|
|
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
|
-
|
|
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() {
|