api2cli 0.3.9 → 0.3.10

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 +4 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2524,11 +2524,13 @@ Examples:
2524
2524
  api2cli install typefully`).action(async (source, opts) => {
2525
2525
  let owner;
2526
2526
  let repo;
2527
+ let skillName = null;
2527
2528
  const parsed = parseGithubInput(source);
2528
2529
  if (parsed) {
2529
2530
  owner = parsed.owner;
2530
2531
  repo = parsed.repo;
2531
2532
  } else {
2533
+ skillName = source;
2532
2534
  console.log(`Looking up ${import_picocolors4.default.bold(source)} in registry...`);
2533
2535
  try {
2534
2536
  const res = await fetch(`${REGISTRY_API}/skills/${source}`);
@@ -2609,6 +2611,8 @@ ${import_picocolors4.default.bold("Installing")} ${import_picocolors4.default.cy
2609
2611
  console.log(` ${import_picocolors4.default.green("+")} Built`);
2610
2612
  addToPath(app, distDir);
2611
2613
  symlinkSkill(cliDir, appCli);
2614
+ const trackName = skillName ?? getAppName(repo);
2615
+ fetch(`${REGISTRY_API}/skills/${trackName}/download`, { method: "POST" }).catch(() => {});
2612
2616
  console.log(`
2613
2617
  ${import_picocolors4.default.green("\u2713")} Installed ${import_picocolors4.default.bold(appCli)}`);
2614
2618
  console.log(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api2cli",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Turn any REST API into a standardized, agent-ready CLI",
5
5
  "type": "module",
6
6
  "bin": {