@hasna/skills 0.1.34 → 0.1.36

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/index.js CHANGED
@@ -1910,7 +1910,7 @@ var package_default;
1910
1910
  var init_package = __esm(() => {
1911
1911
  package_default = {
1912
1912
  name: "@hasna/skills",
1913
- version: "0.1.34",
1913
+ version: "0.1.36",
1914
1914
  description: "Skills library for AI coding agents",
1915
1915
  type: "module",
1916
1916
  bin: {
@@ -21290,16 +21290,16 @@ __export(exports_list, {
21290
21290
  import chalk3 from "chalk";
21291
21291
  function registerBrowse(parent) {
21292
21292
  parent.command("list").alias("ls").option("-c, --category <category>", "Filter by category").option("-p, --pinned", "Show only pinned skills", false).option("-t, --tags <tags>", "Filter by comma-separated tags (OR logic, case-insensitive)").option("--all", "Show the full skill registry instead of the default basic set", false).option("--remote", "Use remote registry from SKILLS_API_URL or config apiUrl", false).option("--json", "Output as JSON", false).option("--brief", "One line per skill: name \u2014 description [category]", false).option("--format <format>", "Output format: compact (names only) or csv (name,category,price,description)").action((options) => {
21293
- handleList(options).catch(handleBrowseError);
21293
+ return handleList(options).catch(handleBrowseError);
21294
21294
  });
21295
21295
  parent.command("search").alias("s").argument("<query>", "Search term").option("--json", "Output as JSON", false).option("--brief", "One line per skill: name \u2014 description [category]", false).option("--format <format>", "Output format: compact (names only) or csv (name,category,price,description)").option("-c, --category <category>", "Filter results by category").option("-t, --tags <tags>", "Filter results by comma-separated tags (OR logic, case-insensitive)").option("--all", "Search the full skill registry instead of the default basic set", false).option("--remote", "Use remote registry from SKILLS_API_URL or config apiUrl", false).description("Search for skills").action((query, options) => {
21296
- handleSearch(query, options).catch(handleBrowseError);
21296
+ return handleSearch(query, options).catch(handleBrowseError);
21297
21297
  });
21298
21298
  parent.command("categories").option("--json", "Output as JSON", false).option("--remote", "Use remote registry from SKILLS_API_URL or config apiUrl", false).description("List all categories").action((options) => {
21299
- handleCategories(options).catch(handleBrowseError);
21299
+ return handleCategories(options).catch(handleBrowseError);
21300
21300
  });
21301
21301
  parent.command("tags").option("--json", "Output as JSON", false).option("--remote", "Use remote registry from SKILLS_API_URL or config apiUrl", false).description("List all unique tags with counts").action((options) => {
21302
- handleTags(options).catch(handleBrowseError);
21302
+ return handleTags(options).catch(handleBrowseError);
21303
21303
  });
21304
21304
  }
21305
21305
  function formatBrief(skill) {
@@ -42333,6 +42333,9 @@ function requireHostedAuth(json2) {
42333
42333
  const config2 = getAuthConfig();
42334
42334
  if (config2)
42335
42335
  return config2;
42336
+ const apiKey = getApiKey();
42337
+ if (apiKey)
42338
+ return { apiKey };
42336
42339
  const message = "Not signed in. Run: skills auth login";
42337
42340
  if (json2)
42338
42341
  console.log(JSON.stringify({ error: message }));
package/bin/mcp.js CHANGED
@@ -21793,7 +21793,7 @@ class StdioServerTransport {
21793
21793
  // package.json
21794
21794
  var package_default = {
21795
21795
  name: "@hasna/skills",
21796
- version: "0.1.34",
21796
+ version: "0.1.36",
21797
21797
  description: "Skills library for AI coding agents",
21798
21798
  type: "module",
21799
21799
  bin: {
package/dist/index.js CHANGED
@@ -18031,7 +18031,7 @@ import { dirname as dirname3, relative as relative2 } from "path";
18031
18031
  // package.json
18032
18032
  var package_default = {
18033
18033
  name: "@hasna/skills",
18034
- version: "0.1.34",
18034
+ version: "0.1.36",
18035
18035
  description: "Skills library for AI coding agents",
18036
18036
  type: "module",
18037
18037
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/skills",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "description": "Skills library for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {