skills 1.1.4 → 1.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/cli.js +11 -7
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1430,18 +1430,22 @@ var WellKnownProvider = class {
1430
1430
  }
1431
1431
  /**
1432
1432
  * Get the source identifier for telemetry/storage.
1433
- * Includes the path if present (e.g., "wellknown/example.com/docs").
1433
+ * Returns the domain in owner/repo format: second-level-domain/top-level-domain.
1434
+ * e.g., "mintlify.com" → "mintlify/com", "lovable.dev" → "lovable/dev"
1435
+ * This matches the owner/repo pattern used by GitHub sources for consistency in the leaderboard.
1434
1436
  */
1435
1437
  getSourceIdentifier(url) {
1436
1438
  try {
1437
1439
  const parsed = new URL(url);
1438
- const basePath = parsed.pathname.replace(/\/$/, "").replace(/^\/?/, "");
1439
- if (basePath) {
1440
- return `wellknown/${parsed.hostname}/${basePath}`;
1440
+ const hostParts = parsed.hostname.split(".");
1441
+ if (hostParts.length >= 2) {
1442
+ const tld = hostParts[hostParts.length - 1];
1443
+ const sld = hostParts[hostParts.length - 2];
1444
+ return `${sld}/${tld}`;
1441
1445
  }
1442
- return `wellknown/${parsed.hostname}`;
1446
+ return parsed.hostname.replace(".", "/");
1443
1447
  } catch {
1444
- return "wellknown/unknown";
1448
+ return "unknown/unknown";
1445
1449
  }
1446
1450
  }
1447
1451
  /**
@@ -1591,7 +1595,7 @@ async function dismissPrompt(promptKey) {
1591
1595
  // package.json
1592
1596
  var package_default = {
1593
1597
  name: "skills",
1594
- version: "1.1.4",
1598
+ version: "1.1.5",
1595
1599
  description: "The open agent skills ecosystem",
1596
1600
  type: "module",
1597
1601
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skills",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "The open agent skills ecosystem",
5
5
  "type": "module",
6
6
  "bin": {