skills 1.1.4 → 1.1.6

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 +16 -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.6",
1595
1599
  description: "The open agent skills ecosystem",
1596
1600
  type: "module",
1597
1601
  bin: {
@@ -2264,12 +2268,17 @@ async function handleWellKnownSkills(source, url, options, spinner2) {
2264
2268
  const successful = results.filter((r) => r.success);
2265
2269
  const failed = results.filter((r) => !r.success);
2266
2270
  const sourceIdentifier = wellKnownProvider.getSourceIdentifier(url);
2271
+ const skillFiles = {};
2272
+ for (const skill of selectedSkills) {
2273
+ skillFiles[skill.installName] = skill.sourceUrl;
2274
+ }
2267
2275
  track({
2268
2276
  event: "install",
2269
2277
  source: sourceIdentifier,
2270
2278
  skills: selectedSkills.map((s) => s.installName).join(","),
2271
2279
  agents: targetAgents.join(","),
2272
2280
  ...installGlobally && { global: "1" },
2281
+ skillFiles: JSON.stringify(skillFiles),
2273
2282
  sourceType: "well-known"
2274
2283
  });
2275
2284
  if (successful.length > 0 && installGlobally) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skills",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "The open agent skills ecosystem",
5
5
  "type": "module",
6
6
  "bin": {