"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
add more public CLIs; fully include skills for CLIs
yuhaob2d8b87aba1d
diff --git a/docs/hub/index-modern.html b/docs/hub/index-modern.htmlindex 0ba4b2a98..8b402aa5c 100644--- a/docs/hub/index-modern.html+++ b/docs/hub/index-modern.html@@ -1402,6 +1402,7 @@}.card-links a,+ .card-link-btn,.card-contributor a {display: inline-flex;align-items: center;@@ -1417,12 +1418,86 @@}.card-links a:hover,+ .card-link-btn:hover,.card-contributor a:hover {color: var(--text);border-color: var(--border-strong);background: rgba(255,255,255,0.08);}+ .card-link-btn {+ cursor: pointer;+ font: inherit;+ }++ .skill-popover {+ position: relative;+ display: inline-flex;+ align-items: center;+ }++ .skill-popover-panel {+ position: absolute;+ left: 0;+ top: calc(100% + 0.5rem);+ width: min(18.5rem, calc(100vw - 3rem));+ padding: 0.78rem;+ border-radius: 18px;+ border: 1px solid rgba(130, 149, 180, 0.34);+ background: rgba(251, 247, 239, 0.98);+ color: #1a2433;+ box-shadow: 0 22px 48px rgba(8, 16, 28, 0.22);+ opacity: 0;+ transform: translateY(-4px);+ pointer-events: none;+ transition: opacity 0.18s ease, transform 0.18s ease;+ z-index: 12;+ }++ .skill-popover.is-open .skill-popover-panel {+ opacity: 1;+ transform: translateY(0);+ pointer-events: auto;+ }++ .skill-popover-label {+ display: block;+ margin-bottom: 0.5rem;+ font-size: 0.66rem;+ font-weight: 700;+ letter-spacing: 0.16em;+ text-transform: uppercase;+ color: #67758c;+ }++ .skill-popover-panel code {+ display: block;+ padding: 0.62rem 0.68rem;+ border-radius: 14px;+ border: 1px solid rgba(130, 149, 180, 0.25);+ background: rgba(226, 232, 240, 0.5);+ color: #182130;+ font-family: 'IBM Plex Mono', monospace;+ font-size: 0.74rem;+ line-height: 1.6;+ white-space: pre-wrap;+ overflow-wrap: anywhere;+ word-break: break-word;+ }++ .skill-popover-copy {+ margin-top: 0.62rem;+ background: rgba(255,255,255,0.7);+ color: #314155;+ border-color: rgba(130, 149, 180, 0.3);+ }++ .skill-popover-copy:hover {+ color: #182130;+ border-color: rgba(49, 65, 85, 0.3);+ background: rgba(255,255,255,0.88);+ }+.community-badge {display: inline-flex;align-items: center;@@ -2287,13 +2362,38 @@grid.innerHTML = (deck === 'harness' ? filtered.map(renderHarnessCard) : filtered.map(renderPublicCard)).join('');}+ function isWebUrl(value) {+ return /^https?:\/\//i.test(value || '');+ }++ function isRepoSkillPath(value) {+ return !/\s/.test(value || '') && /(^\.{0,2}\/|\/|\.md$|\.txt$)/i.test(value || '');+ }++ function renderSkillAction(value) {+ if (!value) return '';+ if (isWebUrl(value)) {+ return '<a href="' + esc(value) + '" target="_blank">Skill</a>';+ }+ if (isRepoSkillPath(value)) {+ return '<a href="' + REPO + '/blob/main/' + esc(value) + '" target="_blank">Skill</a>';+ }+ return '' ++ '<span class="skill-popover">' ++ '<button class="card-link-btn skill-trigger" type="button" aria-expanded="false" data-skill-value="' + escAttr(value) + '">Skill</button>' ++ '<span class="skill-popover-panel">' ++ '<span class="skill-popover-label">Skill install</span>' ++ '<code>' + esc(value) + '</code>' ++ '<button class="card-copy-btn skill-popover-copy" type="button" data-copy-value="' + escAttr(value) + '">Copy</button>' ++ '</span>' ++ '</span>';+ }+function renderHarnessCard(c) {const requiresHtml = c.requires? '<div class="card-requires"><strong>Requires</strong> ' + esc(c.requires) + '</div>': '';- const skillLink = c.skill_md- ? '<a href="' + (c.skill_md.startsWith('http') ? c.skill_md : (REPO + '/blob/main/' + c.skill_md)) + '" target="_blank">Skill</a>'- : '';+ const skillLink = renderSkillAction(c.skill_md);const sourceLink = c.source_url? '<a href="' + esc(c.source_url) + '" target="_blank">Source</a>': '<a href="' + REPO + '/tree/main/' + c.name + '/agent-harness" target="_blank">Source</a>';@@ -2304,12 +2404,12 @@const isTeam = contributors.length === 1 && contributors[0].name === 'CLI-Anything-Team';const contributorHtml = contributors.length? '<div class="card-contributor">' +- contributors.map((ct) => '<a href="' + esc(ct.url) + '" target="_blank">' + esc(ct.name) + '</a>').join('') ++ contributors.map((ct) => '<a href="' + esc(ct.url) + '" target="_blank">' + esc(ct.name) + '</a>').join(', ') +(isTeam ? '' : '<span class="community-badge">Community</span>') +'</div>': '';const dateHtml = c.last_modified ? '<div class="card-date">Updated ' + esc(c.last_modified) + '</div>' : '';- const linksHtml = sourceLink + (skillLink ? skillLink : '');+ const linksHtml = sourceLink + skillLink;return `<article class="card card--harness">@@ -2362,11 +2462,12 @@const titleHtml = c.homepage? '<a href="' + esc(c.homepage) + '" target="_blank">' + esc(c.display_name) + EXTERNAL_LINK_SVG + '</a>': esc(c.display_name);+ const skillLink = renderSkillAction(c.skill_md);const sourceLink = c.source_url ? '<a href="' + esc(c.source_url) + '" target="_blank">Source</a>' : '';const contributors = c.contributors || [];const contributorHtml = contributors.length? '<div class="card-contributor">' +- contributors.map((ct) => '<a href="' + esc(ct.url) + '" target="_blank">' + esc(ct.name) + '</a>').join('') ++ contributors.map((ct) => '<a href="' + esc(ct.url) + '" target="_blank">' + esc(ct.name) + '</a>').join(', ') +'</div>': '';const directCmd = c.install_cmd || publicDirectCmd(c);@@ -2400,7 +2501,7 @@</div>${installBlock}<div class="card-footer">- <div class="card-links">${sourceLink}</div>+ <div class="card-links">${sourceLink}${skillLink}</div>${contributorHtml}</div></article>`;@@ -2416,6 +2517,20 @@});}+ function toggleSkillPopover(trigger) {+ const popover = trigger.closest('.skill-popover');+ if (!popover) return;+ const shouldOpen = !popover.classList.contains('is-open');+ document.querySelectorAll('.skill-popover.is-open').forEach((node) => {+ node.classList.remove('is-open');+ const btn = node.querySelector('.skill-trigger');+ if (btn) btn.setAttribute('aria-expanded', 'false');+ });+ if (!shouldOpen) return;+ popover.classList.add('is-open');+ trigger.setAttribute('aria-expanded', 'true');+ }+function esc(s) {if (!s) return '';const d = document.createElement('div');@@ -2423,6 +2538,48 @@return d.innerHTML;}+ function escAttr(s) {+ if (!s) return '';+ return String(s)+ .replace(/&/g, '&')+ .replace(/"/g, '"')+ .replace(/</g, '<')+ .replace(/>/g, '>');+ }++ document.addEventListener('click', (e) => {+ const copyBtn = e.target.closest('.skill-popover-copy');+ if (copyBtn) {+ e.preventDefault();+ e.stopPropagation();+ copyCmd(copyBtn, copyBtn.dataset.copyValue);+ return;+ }++ const trigger = e.target.closest('.skill-trigger');+ if (trigger) {+ e.preventDefault();+ e.stopPropagation();+ toggleSkillPopover(trigger);+ return;+ }++ document.querySelectorAll('.skill-popover.is-open').forEach((node) => {+ node.classList.remove('is-open');+ const btn = node.querySelector('.skill-trigger');+ if (btn) btn.setAttribute('aria-expanded', 'false');+ });+ });++ document.addEventListener('keydown', (e) => {+ if (e.key !== 'Escape') return;+ document.querySelectorAll('.skill-popover.is-open').forEach((node) => {+ node.classList.remove('is-open');+ const btn = node.querySelector('.skill-trigger');+ if (btn) btn.setAttribute('aria-expanded', 'false');+ });+ });+document.getElementById('search-harness').addEventListener('input', (e) => {deckState.harness.query = e.target.value;renderDeck('harness');diff --git a/docs/hub/index.html b/docs/hub/index.htmlindex 0b1597487..e2ac30086 100644--- a/docs/hub/index.html+++ b/docs/hub/index.html@@ -846,16 +846,93 @@gap: 0.6rem;font-size: 0.78rem;flex-wrap: wrap;+ align-items: center;}- .card-links a {+ .card-links a,+ .card-link-btn {color: var(--text-tertiary);text-decoration: none;font-weight: 500;transition: color 0.15s;}- .card-links a:hover { color: var(--text-secondary); }+ .card-link-btn {+ background: none;+ border: 0;+ cursor: pointer;+ font: inherit;+ padding: 0;+ }++ .card-links a:hover,+ .card-link-btn:hover { color: var(--text-secondary); }++ .skill-popover {+ position: relative;+ display: inline-flex;+ align-items: center;+ }++ .skill-popover-panel {+ position: absolute;+ left: 0;+ top: calc(100% + 0.45rem);+ width: min(18rem, calc(100vw - 3rem));+ padding: 0.7rem;+ border-radius: 10px;+ border: 1px solid rgba(148, 163, 184, 0.36);+ background: rgba(248, 250, 252, 0.98);+ color: #0f172a;+ box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24);+ opacity: 0;+ transform: translateY(-4px);+ pointer-events: none;+ transition: opacity 0.16s ease, transform 0.16s ease;+ z-index: 10;+ }++ .skill-popover.is-open .skill-popover-panel {+ opacity: 1;+ transform: translateY(0);+ pointer-events: auto;+ }++ .skill-popover-label {+ display: block;+ font-size: 0.64rem;+ font-weight: 700;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: #475569;+ margin-bottom: 0.45rem;+ }++ .skill-popover-panel code {+ display: block;+ font-size: 0.75rem;+ line-height: 1.55;+ white-space: pre-wrap;+ overflow-wrap: anywhere;+ word-break: break-word;+ font-family: 'JetBrains Mono', monospace;+ background: rgba(226, 232, 240, 0.7);+ border: 1px solid rgba(148, 163, 184, 0.3);+ border-radius: 8px;+ padding: 0.55rem 0.6rem;+ }++ .skill-popover-copy {+ margin-top: 0.55rem;+ color: #334155;+ border-color: rgba(100, 116, 139, 0.34);+ background: rgba(255, 255, 255, 0.72);+ }++ .skill-popover-copy:hover {+ color: #0f172a;+ border-color: rgba(51, 65, 85, 0.42);+ }.card-contributor {font-size: 0.75rem;@@ -1623,13 +1700,38 @@}}+ function isWebUrl(value) {+ return /^https?:\/\//i.test(value || '');+ }++ function isRepoSkillPath(value) {+ return !/\s/.test(value || '') && /(^\.{0,2}\/|\/|\.md$|\.txt$)/i.test(value || '');+ }++ function renderSkillAction(value) {+ if (!value) return '';+ if (isWebUrl(value)) {+ return `<a href="${esc(value)}" target="_blank">Skill</a>`;+ }+ if (isRepoSkillPath(value)) {+ return `<a href="${REPO}/blob/main/${esc(value)}" target="_blank">Skill</a>`;+ }+ return `+ <span class="skill-popover">+ <button class="card-link-btn skill-trigger" type="button" aria-expanded="false" data-skill-value="${escAttr(value)}">Skill</button>+ <span class="skill-popover-panel">+ <span class="skill-popover-label">Skill install</span>+ <code>${esc(value)}</code>+ <button class="card-copy-btn skill-popover-copy" type="button" data-copy-value="${escAttr(value)}">Copy</button>+ </span>+ </span>`;+ }+function renderHarnessCard(c) {const requiresHtml = c.requires? `<div class="card-requires"><strong>Requires</strong> ${esc(c.requires)}</div>`: '';- const skillLink = c.skill_md- ? `<a href="${c.skill_md.startsWith('http') ? c.skill_md : `${REPO}/blob/main/${c.skill_md}`}" target="_blank">Skill</a>`- : '';+ const skillLink = renderSkillAction(c.skill_md);const sourceLink = c.source_url? `<a href="${esc(c.source_url)}" target="_blank">Source</a>`: `<a href="${REPO}/tree/main/${c.name}/agent-harness" target="_blank">Source</a>`;@@ -1664,7 +1766,7 @@<button class="card-copy-btn" onclick="copyCmd(this, 'pip install cli-anything-hub && cli-hub install ${esc(c.name)}')">Copy</button></div><div class="card-footer">- <div class="card-links">${sourceLink}${skillLink ? ' · ' + skillLink : ''}</div>+ <div class="card-links">${sourceLink}${skillLink}</div>${contributorHtml}</div></div>`;@@ -1689,6 +1791,7 @@const titleHtml = c.homepage? `<a href="${esc(c.homepage)}" target="_blank">${esc(c.display_name)}${EXTERNAL_LINK_SVG}</a>`: esc(c.display_name);+ const skillLink = renderSkillAction(c.skill_md);const sourceLink = c.source_url? `<a href="${esc(c.source_url)}" target="_blank">Source</a>`: '';@@ -1729,7 +1832,7 @@${cliHubInstallHtml}${publicNotesHtml}<div class="card-footer">- <div class="card-links">${sourceLink}</div>+ <div class="card-links">${sourceLink}${skillLink}</div>${contributorHtml}</div></div>`;@@ -1742,6 +1845,20 @@});}+ function toggleSkillPopover(trigger) {+ const popover = trigger.closest('.skill-popover');+ if (!popover) return;+ const shouldOpen = !popover.classList.contains('is-open');+ document.querySelectorAll('.skill-popover.is-open').forEach((node) => {+ node.classList.remove('is-open');+ const btn = node.querySelector('.skill-trigger');+ if (btn) btn.setAttribute('aria-expanded', 'false');+ });+ if (!shouldOpen) return;+ popover.classList.add('is-open');+ trigger.setAttribute('aria-expanded', 'true');+ }+function esc(s) {if (!s) return '';const d = document.createElement('div');@@ -1749,6 +1866,48 @@return d.innerHTML;}+ function escAttr(s) {+ if (!s) return '';+ return String(s)+ .replace(/&/g, '&')+ .replace(/"/g, '"')+ .replace(/</g, '<')+ .replace(/>/g, '>');+ }++ document.addEventListener('click', (e) => {+ const copyBtn = e.target.closest('.skill-popover-copy');+ if (copyBtn) {+ e.preventDefault();+ e.stopPropagation();+ copyCmd(copyBtn, copyBtn.dataset.copyValue);+ return;+ }++ const trigger = e.target.closest('.skill-trigger');+ if (trigger) {+ e.preventDefault();+ e.stopPropagation();+ toggleSkillPopover(trigger);+ return;+ }++ document.querySelectorAll('.skill-popover.is-open').forEach((node) => {+ node.classList.remove('is-open');+ const btn = node.querySelector('.skill-trigger');+ if (btn) btn.setAttribute('aria-expanded', 'false');+ });+ });++ document.addEventListener('keydown', (e) => {+ if (e.key !== 'Escape') return;+ document.querySelectorAll('.skill-popover.is-open').forEach((node) => {+ node.classList.remove('is-open');+ const btn = node.querySelector('.skill-trigger');+ if (btn) btn.setAttribute('aria-expanded', 'false');+ });+ });+// Wire up search and sort for each deckdocument.getElementById('search-harness').addEventListener('input', (e) => {deckState.harness.query = e.target.value;diff --git a/public_registry.json b/public_registry.jsonindex d742682d1..2848116dc 100644--- a/public_registry.json+++ b/public_registry.json@@ -304,6 +304,7 @@"requires": "Python >= 3.10","homepage": "https://github.com/yanmingyu92/py4csr","source_url": "https://github.com/yanmingyu92/py4csr",+ "skill_md": "https://github.com/yanmingyu92/py4csr","package_manager": "pip","install_cmd": "pip install py4csr","entry_point": "tracecsr",