@hasnatools/skills 0.1.3 → 0.1.5

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.
Files changed (2) hide show
  1. package/dist/index.js +40 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -20702,8 +20702,8 @@ async function getMarketplaceSkills(options) {
20702
20702
  const params = new URLSearchParams;
20703
20703
  if (options?.limit)
20704
20704
  params.set("limit", options.limit.toString());
20705
- if (options?.offset)
20706
- params.set("offset", options.offset.toString());
20705
+ if (options?.page)
20706
+ params.set("page", options.page.toString());
20707
20707
  if (options?.category)
20708
20708
  params.set("category", options.category);
20709
20709
  const query = params.toString();
@@ -21903,10 +21903,9 @@ async function marketplaceCommand(options = {}) {
21903
21903
  const spinner = ora("Fetching skills from marketplace...").start();
21904
21904
  const limit = options.limit || 20;
21905
21905
  const page = options.page || 1;
21906
- const offset = (page - 1) * limit;
21907
21906
  const result = await getMarketplaceSkills({
21908
21907
  limit,
21909
- offset,
21908
+ page,
21910
21909
  category: options.category
21911
21910
  });
21912
21911
  if (result.error || !result.data) {
@@ -21915,8 +21914,7 @@ async function marketplaceCommand(options = {}) {
21915
21914
  return;
21916
21915
  }
21917
21916
  const skills = result.data.skills;
21918
- const total = result.data.total;
21919
- const totalPages = Math.ceil(total / limit);
21917
+ const { total, totalPages } = result.data.pagination;
21920
21918
  spinner.stop();
21921
21919
  if (skills.length === 0) {
21922
21920
  console.log(source_default.dim("No skills found in marketplace"));
@@ -21950,6 +21948,32 @@ async function marketplaceCommand(options = {}) {
21950
21948
  console.log(source_default.dim(`Run ${source_default.cyan("skills search <query>")} to search for specific skills`));
21951
21949
  }
21952
21950
 
21951
+ // src/commands/feedback.ts
21952
+ var FEEDBACK_URL = "https://skills.md/feedback";
21953
+ var GITHUB_ISSUES_URL = "https://github.com/skillsmd/skills-md/issues";
21954
+ async function feedbackCommand(options = {}) {
21955
+ console.log();
21956
+ console.log(source_default.bold("We'd love to hear from you!"));
21957
+ console.log();
21958
+ if (options.bug) {
21959
+ console.log(source_default.dim("Opening GitHub Issues for bug reports..."));
21960
+ await open_default(GITHUB_ISSUES_URL);
21961
+ console.log(source_default.green("✓") + " Opened: " + source_default.cyan(GITHUB_ISSUES_URL));
21962
+ } else if (options.feature) {
21963
+ console.log(source_default.dim("Opening feedback page for feature requests..."));
21964
+ await open_default(FEEDBACK_URL);
21965
+ console.log(source_default.green("✓") + " Opened: " + source_default.cyan(FEEDBACK_URL));
21966
+ } else {
21967
+ console.log(" " + source_default.cyan("skills feedback --bug") + source_default.dim(" Report a bug on GitHub"));
21968
+ console.log(" " + source_default.cyan("skills feedback --feature") + source_default.dim(" Request a feature"));
21969
+ console.log();
21970
+ console.log(source_default.dim("Or open directly:"));
21971
+ console.log(" " + source_default.dim("Bugs: ") + source_default.cyan(GITHUB_ISSUES_URL));
21972
+ console.log(" " + source_default.dim("Feedback: ") + source_default.cyan(FEEDBACK_URL));
21973
+ }
21974
+ console.log();
21975
+ }
21976
+
21953
21977
  // src/index.ts
21954
21978
  var program2 = new Command;
21955
21979
  program2.name("skills").description("CLI for skills.md - AI Agent Skills Marketplace").version("0.1.0");
@@ -22025,6 +22049,12 @@ program2.command("logs <skill>").description("View execution logs for a skill").
22025
22049
  tail: parseInt(options.tail, 10)
22026
22050
  });
22027
22051
  });
22052
+ program2.command("feedback").description("Send feedback or report issues").option("-b, --bug", "Report a bug on GitHub").option("-f, --feature", "Request a new feature").action((options) => {
22053
+ feedbackCommand({
22054
+ bug: options.bug,
22055
+ feature: options.feature
22056
+ });
22057
+ });
22028
22058
  program2.addHelpText("after", `
22029
22059
  ${source_default.bold("Examples:")}
22030
22060
  ${source_default.dim("# Initialize in current project")}
@@ -22061,6 +22091,10 @@ ${source_default.bold("Examples:")}
22061
22091
  ${source_default.dim("# View logs for a skill")}
22062
22092
  $ skills logs code-review
22063
22093
 
22094
+ ${source_default.dim("# Send feedback or report bugs")}
22095
+ $ skills feedback
22096
+ $ skills feedback --bug
22097
+
22064
22098
  ${source_default.bold("Documentation:")}
22065
22099
  https://skills.md/docs
22066
22100
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasnatools/skills",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "CLI for skills.md - AI Agent Skills Marketplace",
5
5
  "type": "module",
6
6
  "bin": {