ht-skills 0.2.11 → 0.2.12
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/lib/cli.js +12 -1
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -1805,6 +1805,14 @@ async function cmdPublish(flags, deps = {}) {
|
|
|
1805
1805
|
preview_token: preview.preview_token,
|
|
1806
1806
|
archive_name: archiveName,
|
|
1807
1807
|
};
|
|
1808
|
+
const skillSlug = String(
|
|
1809
|
+
result.publication?.slug
|
|
1810
|
+
|| result.publication?.manifest?.slug
|
|
1811
|
+
|| preview.manifest?.slug
|
|
1812
|
+
|| "",
|
|
1813
|
+
).trim();
|
|
1814
|
+
const skillUrl = skillSlug ? `${registry}/skills/${encodeURIComponent(skillSlug)}` : null;
|
|
1815
|
+
summaryPayload.skill_url = skillUrl;
|
|
1808
1816
|
|
|
1809
1817
|
if (ui) {
|
|
1810
1818
|
ui.note(
|
|
@@ -1813,11 +1821,14 @@ async function cmdPublish(flags, deps = {}) {
|
|
|
1813
1821
|
`${colorize("Submission", "muted")}: ${result.submission_id || "-"}`,
|
|
1814
1822
|
`${colorize("Preview", "muted")}: ${preview.preview_token}`,
|
|
1815
1823
|
`${colorize("Access", "muted")}: ${summaryPayload.visibility || visibility}`,
|
|
1824
|
+
skillUrl ? `${colorize("Skill URL", "muted")}: ${skillUrl}` : "",
|
|
1816
1825
|
].join("\n"),
|
|
1817
1826
|
"Published",
|
|
1818
1827
|
);
|
|
1819
1828
|
setFlowMessage(`Submitted ${archiveName} for review`);
|
|
1820
|
-
ui.outro(
|
|
1829
|
+
ui.outro(skillUrl
|
|
1830
|
+
? `Submitted ${ui.pc.cyan(archiveName)} for review. Skill URL: ${skillUrl}`
|
|
1831
|
+
: `Submitted ${ui.pc.cyan(archiveName)} for review.`);
|
|
1821
1832
|
} else {
|
|
1822
1833
|
log(JSON.stringify(summaryPayload, null, 2));
|
|
1823
1834
|
}
|