@agentskillshub/cli 0.2.4 → 0.2.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.
package/README.md CHANGED
@@ -37,7 +37,7 @@ Add `--json` to any of `search` / `audit` / `install` for machine-readable outpu
37
37
 
38
38
  ## How it works
39
39
 
40
- The catalog (~20K quality skills, stars ≥ 5) is a single static file (~1.7MB gzipped) served from the CDN. `ash` downloads it once, caches it at `~/.cache/agentskillshub/`, and refreshes every ~8h. **All searching is local** — fast, works offline, and puts zero load on the backend.
40
+ The catalog (~20K quality skills, stars ≥ 5) is a single static file (~1.7MB gzipped) served from the CDN. The CLI downloads it once, caches it at `~/.cache/agentskillshub/`, and checks for a newer index with a cheap 77B probe (re-downloading the full file only when it actually changed, so a freshly-deployed index reaches you within minutes). **All searching is local** — fast, works offline, and puts zero load on the backend.
41
41
 
42
42
  ## Security grades
43
43
 
package/SKILL.md CHANGED
@@ -7,7 +7,7 @@ description: Use when the user wants to find, evaluate, audit, or install an ope
7
7
 
8
8
  Discover → audit → install open-source AI agent skills and MCP servers without leaving the terminal. Backed by [AgentSkillsHub](https://agentskillshub.top): ~106K indexed skills, of which ~20K (stars ≥ 5) are in the searchable catalog, each carrying a **quality score** and a **security grade**.
9
9
 
10
- The catalog is a static index downloaded once and cached locally (`~/.cache/agentskillshub/`, refreshed every ~8h). Every search after the first is **instant, offline, and puts zero load on the Hub backend**.
10
+ The catalog is a static index downloaded once and cached locally (`~/.cache/agentskillshub/`), with a cheap 77B freshness probe that re-downloads only when the index actually changes. Every search after the first is **instant, offline, and puts zero load on the Hub backend**.
11
11
 
12
12
  ## When to use
13
13
 
package/bin/ash.mjs CHANGED
@@ -26,12 +26,18 @@ import { join } from "node:path";
26
26
  const BASE = process.env.AGENTSKILLSHUB_BASE || "https://agentskillshub.top";
27
27
  const META_URL = `${BASE}/search-index-meta.json`;
28
28
  const INDEX_URL = `${BASE}/search-index.json.gz`;
29
- const HUB_SKILL = (full) => `${BASE}/skill/${full}/`;
29
+ // ?ref=cli lets web analytics attribute clickthroughs that originate in the CLI
30
+ // (anonymous, no in-CLI telemetry). Query comes before any #audit fragment.
31
+ const HUB_SKILL = (full) => `${BASE}/skill/${full}/?ref=cli`;
30
32
 
31
33
  const CACHE_DIR = join(process.env.AGENTSKILLSHUB_CACHE || join(homedir(), ".cache", "agentskillshub"));
32
34
  const CACHE_INDEX = join(CACHE_DIR, "search-index.json");
33
35
  const CACHE_META = join(CACHE_DIR, "search-index-meta.json");
34
- const TTL_MS = 8 * 60 * 60 * 1000; // refresh at most every 8h (matches sync cadence)
36
+ // Within this window we serve the cached index without even probing the CDN.
37
+ // Kept short so a freshly-deployed index reaches users within minutes — the
38
+ // probe is a cheap 77B meta fetch; the 1.7MB index re-downloads only when
39
+ // generated_at actually changed.
40
+ const TTL_MS = 15 * 60 * 1000; // 15 min
35
41
 
36
42
  // security_grade → display
37
43
  const GRADE = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentskillshub/cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Search, audit, and install open-source AI agent skills & MCP servers from the terminal — security-graded, quality-scored.",
5
5
  "type": "module",
6
6
  "bin": {