diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6f784e7..bade2e9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,10 +34,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - - uses: actions/setup-node@v4 + # No registry-url here: it writes an .npmrc auth-token line with a + # placeholder value, and npm then authenticates with that instead of + # falling through to OIDC trusted publishing. + - uses: actions/setup-node@v7 with: node-version: 24 - registry-url: https://registry.npmjs.org # Trusted publishing needs npm 11.5.1 or newer. - run: npm install -g npm@latest - run: npm ci diff --git a/README.md b/README.md index b4f51ca..2b7f9b4 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,8 @@ only-cli works on any mostly-static website with no per-site setup: news sites, | --- | --- | --- | | Hacker News | news.ycombinator.com | `top`, `new`, `item `, `user ` | | Reddit | reddit.com (via old.reddit.com) | `sub `, `post `, `user `, `search ` | +| GitHub | github.com | `repo `, `user `, `search `, `trending`, `issues ` | +| LinkedIn | linkedin.com | `profile `, `company `, `jobs ` (public guest views) | | DuckDuckGo | duckduckgo.com | `search `, `lite ` | | Bing | bing.com | `search `, `news ` | diff --git a/clis/github.com.json b/clis/github.com.json new file mode 100644 index 0000000..23d38dc --- /dev/null +++ b/clis/github.com.json @@ -0,0 +1,10 @@ +{ + "domain": "github.com", + "commands": { + "repo": { "open": "https://github.com/{owner}/{repo}", "args": ["owner", "repo"] }, + "user": { "open": "https://github.com/{name}", "args": ["name"] }, + "search": { "open": "https://github.com/search?q={query}&type=repositories", "args": ["query"] }, + "trending": { "open": "https://github.com/trending" }, + "issues": { "open": "https://github.com/{owner}/{repo}/issues", "args": ["owner", "repo"] } + } +} diff --git a/clis/linkedin.com.json b/clis/linkedin.com.json new file mode 100644 index 0000000..1eb055b --- /dev/null +++ b/clis/linkedin.com.json @@ -0,0 +1,8 @@ +{ + "domain": "linkedin.com", + "commands": { + "profile": { "open": "https://www.linkedin.com/in/{name}", "args": ["name"] }, + "company": { "open": "https://www.linkedin.com/company/{name}", "args": ["name"] }, + "jobs": { "open": "https://www.linkedin.com/jobs/search?keywords={query}", "args": ["query"] } + } +} diff --git a/llms.txt b/llms.txt index 7e52b31..dc0ff2f 100644 --- a/llms.txt +++ b/llms.txt @@ -8,7 +8,7 @@ Key facts: - Commands: `oc open ` (compact view with numbered actions), `oc raw ` (whole page as markdown, `--html` for cleaned HTML), `oc --help` for the full surface - Default output budget is 500 tokens per page; `--budget ` adjusts it - Benchmarked at roughly 45x fewer tokens than reading raw HTML, with per-task numbers at https://github.com/only-cli/benchmarks -- Works on any mostly-static website; tuned shortcuts ship for Hacker News, Reddit, DuckDuckGo, and Bing +- Works on any mostly-static website; tuned shortcuts ship for Hacker News, Reddit, GitHub, LinkedIn (public guest views), DuckDuckGo, and Bing - Requests impersonate Chrome, so pages that block plain scripts often still work - Claude Code skill included: `npx skills add only-cli/oc` - No JavaScript rendering yet and no login sessions yet (both on the roadmap)