"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
update cli-hub
yuhao2c8a7815a8a6
diff --git a/.github/scripts/generate_meta_skill.py b/.github/scripts/generate_meta_skill.pyindex 11fcfdf23..e6e0d2ec5 100644--- a/.github/scripts/generate_meta_skill.py+++ b/.github/scripts/generate_meta_skill.py@@ -1,5 +1,5 @@#!/usr/bin/env python3-"""Generate cli-hub-skill/SKILL.md from registry.json."""+"""Generate cli-hub-skill/SKILL.md from registry.json and public_registry.json."""import jsonfrom pathlib import Pathfrom collections import defaultdict@@ -7,27 +7,41 @@ from collections import defaultdictdef main():repo_root = Path(__file__).parent.parent.parentregistry_path = repo_root / 'registry.json'+ public_registry_path = repo_root / 'public_registry.json'output_path = repo_root / 'cli-hub-skill' / 'SKILL.md'with open(registry_path) as f:data = json.load(f)- # Group by category+ public_clis = []+ if public_registry_path.exists():+ with open(public_registry_path) as f:+ public_data = json.load(f)+ public_clis = public_data.get('clis', [])++ total_count = len(data['clis']) + len(public_clis)++ # Group harness CLIs by categoryby_category = defaultdict(list)for cli in data['clis']:by_category[cli['category']].append(cli)+ # Group public CLIs by category+ public_by_category = defaultdict(list)+ for cli in public_clis:+ public_by_category[cli['category']].append(cli)+lines = ["---","name: cli-anything-hub","description: >-",- f" Browse and install {len(data['clis'])}+ agent-native CLI tools for GUI software.",- " Covers image editing, 3D, video, audio, office, diagrams, AI, and more.",+ f" Browse and install {total_count}+ CLI tools for GUI software and popular platforms.",+ " Covers image editing, 3D, video, audio, office, diagrams, AI, communication, devops, and more.","---","","# CLI-Anything Hub","",- f"Agent-native stateful CLI interfaces for {len(data['clis'])} applications. All CLIs support `--json` output, REPL mode, and undo/redo.",+ f"Agent-native CLI interfaces for {total_count} applications — {len(data['clis'])} harness CLIs (stateful, `--json`, REPL) plus {len(public_clis)} public/third-party CLIs (npm, uv, brew, and more).","","## Quick Install","",@@ -41,13 +55,19 @@ def main():"# Install any CLI by name","cli-hub install gimp","cli-hub install blender",+ "cli-hub install generate-veo-video","","# Search by category or keyword","cli-hub search image",- "cli-hub search 3d",+ "cli-hub search ai",+ "",+ "# Launch an installed CLI",+ "cli-hub launch <name> [args...]","```","",- "## Available CLIs",+ "## CLI-Anything Harness CLIs",+ "",+ f"Stateful, agent-native wrappers for {len(data['clis'])} GUI applications. All support `--json` output, REPL mode, and undo/redo.",""]@@ -66,17 +86,43 @@ def main():lines.append("")+ lines.extend([+ "## Public & Third-Party CLIs",+ "",+ f"Official and community CLIs for popular platforms, managed via npm, uv, brew, and other installers. {len(public_clis)} CLIs available.",+ ""+ ])++ for category in sorted(public_by_category.keys()):+ clis = public_by_category[category]+ lines.append(f"### {category.title()}")+ lines.append("")+ lines.append("| Name | Description | Entry Point | Install |")+ lines.append("|------|-------------|-------------|---------|")++ for cli in sorted(clis, key=lambda x: x['name']):+ name = cli['display_name']+ desc = cli['description']+ entry = f"`{cli['entry_point']}`"+ install = f"`cli-hub install {cli['name']}`"+ lines.append(f"| **{name}** | {desc} | {entry} | {install} |")++ lines.append("")+lines.extend(["## How It Works","",- "`cli-hub` is a lightweight wrapper around `pip`. When you run `cli-hub install gimp`,",- "it installs a separate Python package (`cli-anything-gimp`) with its own CLI entry point",- "(`cli-anything-gimp`). Each CLI is an independent pip package — `cli-hub` simply resolves",- "names from the registry and tracks installs.",+ "`cli-hub` is a unified package manager for both harness CLIs and public CLIs:",+ "",+ "- **Harness CLIs**: installed via `pip` as `cli-anything-<name>` packages",+ "- **npm CLIs**: installed via `npm install -g`",+ "- **uv CLIs**: installed via `uv tool install`",+ "- **brew/script CLIs**: installed via the tool's native installer",+ "- **bundled CLIs**: detected from PATH (pre-installed with the host app)","",- "## Usage Pattern",+ "## Harness CLI Usage Pattern","",- "All CLIs follow the same pattern:",+ "All harness CLIs follow the same pattern:","","```bash","# Interactive REPL",@@ -92,11 +138,10 @@ def main():"## For AI Agents","","1. Install the hub: `pip install cli-anything-hub`",- "2. Install the CLI you need: `cli-hub install <name>` (installs `cli-anything-<name>` pip package)",- "3. Run: `cli-anything-<name>` for REPL, or `cli-anything-<name> <command>` for one-shot",- "4. Read its full SKILL.md at the repo path shown in registry.json",- "5. Always use `--json` flag for machine-readable output",- "6. Check exit codes (0=success, non-zero=error)",+ "2. Install the CLI you need: `cli-hub install <name>`",+ "3. Run the CLI directly via its entry point, or use `cli-hub launch <name> [args...]`",+ "4. For harness CLIs: use `--json` flag for machine-readable output; check exit codes (0=success)",+ "5. Read each harness CLI's full SKILL.md at the repo path shown in registry.json","","## More Info","",@@ -107,7 +152,7 @@ def main():output_path.parent.mkdir(parents=True, exist_ok=True)output_path.write_text('\n'.join(lines) + '\n')- print(f"Generated meta-skill with {len(data['clis'])} CLIs at {output_path}")+ print(f"Generated meta-skill with {len(data['clis'])} harness CLIs + {len(public_clis)} public CLIs ({total_count} total) at {output_path}")if __name__ == '__main__':main()diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.ymlindex ceb4ac592..f47848ba8 100644--- a/.github/workflows/deploy-pages.yml+++ b/.github/workflows/deploy-pages.yml@@ -7,6 +7,7 @@ on:paths:- '*/agent-harness/**'- 'registry.json'+ - 'public_registry.json'- 'cli-hub/**'- 'docs/hub/**'- '.github/workflows/deploy-pages.yml'