9 Commits

Author SHA1 Message Date
yuhao
aec2c13226 feat(preview): add preview trajectories and demos 2026-04-24 15:31:08 +00:00
yuhao
9b85f07fc9 feat(preview): add live preview protocol and motion demos 2026-04-24 15:31:08 +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
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
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
56c9610f76 update cli-hub; more public CLIs 2026-04-16 06:52:28 +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
e59b7ee367 launch cli-anything-hub pkg manager. 2026-04-10 15:43:51 +00:00