only-cli v0.1: turn websites into a compact CLI for AI agents

Generic distillation engine (no per-site adapters): fetch via impers
impersonating Chrome with a firefox-fingerprint retry, distill to an
interaction tree, render under a hard token budget with numbered action
handles. Raw mode emits markdown via turndown or cleaned HTML. Per-site
CLI definitions for HN, Reddit, Bing, DuckDuckGo. Offline test suite,
agent skill, OIDC publish workflow.
This commit is contained in:
only-cli
2026-08-18 09:01:41 -04:00
commit dcc0531ef3
18 changed files with 894 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
{
"name": "only-cli",
"version": "0.1.0",
"description": "Turn websites into a compact CLI so AI agents can browse without burning tokens.",
"type": "module",
"bin": {
"oc": "src/cli.js"
},
"files": [
"src",
"clis",
"skills"
],
"engines": {
"node": ">=20"
},
"scripts": {
"test": "node --test"
},
"keywords": [
"cli",
"ai-agents",
"web",
"scraping",
"tokens"
],
"author": "only-cli (https://github.com/only-cli)",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/only-cli/oc.git"
},
"homepage": "https://github.com/only-cli/oc#readme",
"bugs": {
"url": "https://github.com/only-cli/oc/issues"
},
"dependencies": {
"linkedom": "^0.18.12",
"turndown": "^7.2.4"
},
"optionalDependencies": {
"impers": "^0.1.0"
}
}