34 Commits

Author SHA1 Message Date
yuhao
1bb1010de4 fix(hub): compact footer analytics 2026-04-28 17:37:05 +00:00
yuhao
1adc020169 fix(hub): fetch footer analytics once per load 2026-04-28 16:42:12 +00:00
yuhao
ab2556360f Fix analytics 2026-04-24 10:15:28 +00:00
yuhao
4a2e21e3f7 feat(analytics): flatten cli-install/uninstall events, add cli-launch, merge live Umami+PostHog
CLI side (bumped to 0.2.3 so it ships to PyPI):
- track_install / track_uninstall: drop ":{cli_name}" suffix; event names
  become static "cli-install" / "cli-uninstall" with CLI name moved to
  properties.cli. Keeps PostHog's event catalog flat and makes breakdowns
  by CLI a simple property filter.
- Add track_launch(cli_name) firing "cli-launch" from `cli-hub launch <name>`,
  so we have a real usage signal distinct from install intent.
- Tests updated to match the flat event names; new test for cli-launch.

Web side:
- Replace frozen BASELINE_STATS + PostHog-increment flow with a live
  merge of two sources fetched every 60s:
    * PostHog HogQL (via Cloudflare Worker, allow-listed query) —
      counts visit-human/agent, cli-hub call split, and both flattened
      and legacy-colon-prefixed cli-install/cli-uninstall, plus cli-launch.
    * Umami events/series (via same Worker, new /umami/events endpoint)
      for pre-migration events that PostHog never saw.
  BASELINE_STATS survives as last-resort fallback only.
- cli_hub_total now aggregates cli-hub call + cli-install + cli-uninstall
  + cli-launch so the footer's "cli-hub" number reflects end-to-end
  activity; human/agent split stays tied to cli-hub call only because
  Umami install events don't carry is_agent.
2026-04-24 09:08:10 +00:00
yuhao
0a047cb8bc feat(analytics): route footer PostHog query through Cloudflare Worker proxy, bump cli-hub to 0.2.2
- docs/hub/index.html, index-modern.html: drop inline PostHog personal key
  and direct us.posthog.com call; fetch from analytics.clianything.cc
  (Cloudflare Worker at ~/clianything-analytics-worker) which holds the
  scoped query:read key as a Worker secret. Key can no longer be harvested
  or auto-revoked by secret scanning.
- cli-hub 0.2.1 -> 0.2.2 so the PostHog migration from 8cae111 actually
  ships to PyPI (0.2.1 on PyPI still contains the old Umami code, which is
  why cli-hub events from real users are under-represented).
2026-04-24 08:45:50 +00:00
yuhao
412754f216 feat(hub): fetch live analytics from PostHog in-browser, drop static snapshot
- Page now runs a HogQL countIf query directly against PostHog on load
  and every 60s, using a read-only personal API key scoped to query:read
  on project 393992. Numbers are baseline (Umami cutover) + live increment.
- Remove the static snapshot pipeline: delete
  .github/scripts/update_hub_analytics_stats.py,
  docs/hub/analytics-stats.json, and the Generate hub analytics stats step
  and path trigger in deploy-pages.yml.
- Drop the JS static-fallback branch that read analytics-stats.json.
2026-04-23 16:42:10 +00:00
yuhao
8cae111a48 feat(cli-hub): migrate analytics to PostHog, add stats pipeline and refined footer
- Switch cli-hub analytics client from Umami to PostHog (us.i.posthog.com),
  with agent/human classification derived from env vars and parent-process
  names, and persistent analytics id at ~/.cli-hub/.analytics_id.
- Add daily deploy-pages step running .github/scripts/update_hub_analytics_stats.py
  to pull PostHog totals into docs/hub/analytics-stats.json.
- Redesign docs/hub footer analytics panel (index.html + index-modern.html)
  as a compact Apple/OpenAI-style card: live eyebrow, total, 2px ratio bar,
  and inline Human/Agent split with percentages computed client-side.
- Expand cli-hub tests to cover the new analytics context fields and
  provider switch.
2026-04-23 16:27:14 +00:00
yuhao
42fc5c096d update cli-hub 2026-04-18 16:57:25 +00:00
yuhao
30ef367815 unifying skills via npx skills; update cli-hub 2026-04-18 11:50:34 +00:00
yuhao
99f92f0525 WIP transfer root-skills and hub updates 2026-04-18 10:12:58 +00:00
yuhao
7e61df72e9 improve CLI-Hub 2026-04-17 17:27:04 +00:00
yuhao
cc8da1f901 correct visit counts merging 2026-04-17 17:16:35 +00:00
yuhao
b2d8b87aba add more public CLIs; fully include skills for CLIs 2026-04-17 15:58:12 +00:00
yuhao
d1ba665bb2 improve cli-hub 2026-04-15 17:56:44 +00:00
yuhao
92db509b23 **CLI-Hub** updated to **v0.2.0** — the PyPI package now supports public CLIs from multiple install sources (pip, npm, brew, bundled/system tools), backed by a new public_registry.json. The Hub frontend was redesigned with separate **CLI-Anything CLIs** and **Public CLIs** decks, and live end-to-end checks now cover real install, update, and uninstall flows across both pip and npm packages. 2026-04-15 17:06:06 +00:00
yuhao
df55322d33 update registry.json; welcome outer repo contributions 2026-04-13 09:04:52 +00:00
Yuhao
fed86fe727 Merge pull request #201 from PiaoyangGuohai1/update-zotero-v0.3.3
feat(zotero): update registry to v0.4.1 — standalone repo with 52 MCP tools
2026-04-13 16:31:31 +08:00
yuhao
58b928935c feat(hub): support remote URLs in skill_md registry field
The hub previously always prepended the monorepo base URL to skill_md
values, breaking links for CLIs that moved to standalone repos. Now
absolute URLs (starting with "http") are passed through directly.

Also restores the zotero skill_md link pointing to its standalone repo.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 08:29:21 +00:00
yuhao
a0825ba832 update SKILL.md generation and distribution. 2026-04-10 17:03:40 +00:00
yuhao
e59b7ee367 launch cli-anything-hub pkg manager. 2026-04-10 15:43:51 +00:00
yuhao
69dea56a61 improve frontend 2026-04-06 13:42:02 +00:00
yuhao
901b745d7e update CLI-Hub 2026-03-30 14:26:21 +00:00
yuhao
664cdc6c72 upgrade CLI-Hub 2026-03-30 09:49:27 +00:00
yuhao
8e78de43ca update frontend 2026-03-24 11:32:01 +00:00
yuhao
09668189cf update frontend about cli-hub-skill 2026-03-24 11:17:00 +00:00
yuhao
bb512aba44 fix cli-hub-skill 2026-03-23 17:17:40 +00:00
yuhao
513c6f1970 fix cli-hub-skill 2026-03-23 17:05:48 +00:00
yuhao
c104e1f050 refine cli-hub-skill 2026-03-23 17:00:15 +00:00
yuhao
2aad6c310b refine cli-hub-skill 2026-03-23 16:55:55 +00:00
yuhao
24e2919af6 refine cli-hub-skill 2026-03-23 16:51:51 +00:00
yuhao
3e10b0ab2d fix CLI-Hub 2026-03-22 09:36:34 +00:00
yuhao
b8b21ffe43 update CLI-Hub 2026-03-22 09:21:50 +00:00
yuhao
341a4dc088 include authors on CLI-Hub 2026-03-18 17:27:31 +00:00
yuhao
bae4e0ffda launching CLI-Hub 2026-03-17 15:39:45 +00:00