"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
fix CLI-Hub
yuhao3e10b0ab2d86
diff --git a/.github/scripts/update_registry_dates.py b/.github/scripts/update_registry_dates.pyindex fb3eb7d47..efcbf0c6c 100644--- a/.github/scripts/update_registry_dates.py+++ b/.github/scripts/update_registry_dates.py@@ -1,25 +1,28 @@#!/usr/bin/env python3"""Update registry-dates.json with last modified dates from harness directories."""import json-import os+import subprocessfrom pathlib import Pathfrom datetime import datetimedef get_last_modified(harness_path):- """Get the most recent modification time from a harness directory."""- latest = 0- for root, _, files in os.walk(harness_path):- for file in files:- if file.endswith(('.py', '.md', '.txt', '.json')):- fpath = os.path.join(root, file)- mtime = os.path.getmtime(fpath)- latest = max(latest, mtime)- return datetime.fromtimestamp(latest).strftime('%Y-%m-%d') if latest else None+ """Get the most recent git commit date for files in a harness directory."""+ try:+ result = subprocess.run(+ ['git', 'log', '-1', '--format=%ct', '--', str(harness_path)],+ capture_output=True,+ text=True,+ check=True+ )+ timestamp = int(result.stdout.strip())+ return datetime.fromtimestamp(timestamp).strftime('%Y-%m-%d')+ except (subprocess.CalledProcessError, ValueError):+ return Nonedef main():repo_root = Path(__file__).parent.parent.parentregistry_path = repo_root / 'registry.json'- dates_path = repo_root / 'docs' / 'registry-dates.json'+ dates_path = repo_root / 'docs' / 'hub' / 'registry-dates.json'with open(registry_path) as f:data = json.load(f)diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.ymlindex 5ce302bdc..411b73505 100644--- a/.github/workflows/deploy-pages.yml+++ b/.github/workflows/deploy-pages.yml@@ -37,7 +37,7 @@ jobs:- name: Build with Jekylluses: actions/jekyll-build-pages@v1with:- source: ./docs+ source: ./docs/hubdestination: ./docs/_site- name: Upload artifactdiff --git a/docs/hub/index.html b/docs/hub/index.htmlindex 362f348d0..929d2a204 100644--- a/docs/hub/index.html+++ b/docs/hub/index.html@@ -135,17 +135,22 @@.search:focus { border-color: var(--accent); }.sort-select {- padding: 0.6rem 1rem;- background: var(--surface);+ padding: 0.6rem 2.5rem 0.6rem 1rem;+ background: var(--surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%238b949e" d="M6 9L2 5h8z"/></svg>') no-repeat right 0.75rem center;border: 1px solid var(--border);border-radius: 6px;color: var(--text);- font-size: 0.95rem;+ font-size: 0.9rem;outline: none;cursor: pointer;+ appearance: none;+ -webkit-appearance: none;+ -moz-appearance: none;+ min-width: 180px;}.sort-select:focus { border-color: var(--accent); }+ .sort-select:hover { border-color: var(--accent); }.filter-btn {padding: 0.45rem 0.85rem;