Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions docs/hub/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,18 @@ <h3>Empower your agents &mdash; <span>install in one command</span></h3>
return CATEGORY_LABELS[cat] || cat.charAt(0).toUpperCase() + cat.slice(1);
}

function isAbsoluteUrl(url) {
return /^https?:\/\//i.test(url || '');
}

function skillHref(skillMd) {
return isAbsoluteUrl(skillMd) ? skillMd : `${REPO}/blob/main/${skillMd}`;
}

function sourceHref(c) {
return c.source_url || `${REPO}/tree/main/${c.name}/agent-harness`;
}

function buildFilters(categories) {
const container = document.getElementById('filters');
const allBtn = document.createElement('button');
Expand Down Expand Up @@ -1002,9 +1014,9 @@ <h3>Empower your agents &mdash; <span>install in one command</span></h3>
? `<div class="card-requires"><strong>Requires</strong> ${esc(c.requires)}</div>`
: '';
const skillLink = c.skill_md
? `<a href="${REPO}/blob/main/${c.skill_md}" target="_blank">Skill</a>`
? `<a href="${esc(skillHref(c.skill_md))}" target="_blank">Skill</a>`
: '';
const sourceLink = `<a href="${REPO}/tree/main/${c.name}/agent-harness" target="_blank">Source</a>`;
const sourceLink = `<a href="${esc(sourceHref(c))}" target="_blank">Source</a>`;
const titleHtml = c.homepage
? `<a href="${esc(c.homepage)}" target="_blank">${esc(c.display_name)}${EXTERNAL_LINK_SVG}</a>`
: esc(c.display_name);
Expand Down
15 changes: 15 additions & 0 deletions registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,21 @@
"category": "graphics",
"contributor": "rsasaki0109",
"contributor_url": "https://github.com/rsasaki0109"
},
{
"name": "hacker-feeds-cli",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep Hub source links pointing to an existing harness path

Hub cards generate the Source button from name as ${REPO}/tree/main/${c.name}/agent-harness (docs/hub/index.html:1007), but this new name has no matching directory in the repo (checked with rg --files | rg '^hacker-feeds-cli/', no matches). As a result, the Source link for this entry will be broken in production.

Useful? React with 👍 / 👎.

"display_name": "Hacker Feeds CLI",
"version": "1.0.0",
"description": "CLI for GitHub Trending, Hacker News, Reddit, Product Hunt, DEV.to, Lobsters, EchoJS, and V2EX feeds",
"requires": "Python 3.10+, Node.js (hf CLI)",
"homepage": "https://github.com/collectivewinca/hacker-feeds-cli",
"source_url": "https://github.com/collectivewinca/hacker-feeds-cli",
"install_cmd": "pip install git+https://github.com/collectivewinca/hacker-feeds-cli.git",
"entry_point": "cli-anything-hacker-feeds-cli",
"skill_md": "https://github.com/collectivewinca/hacker-feeds-cli/blob/main/cli_anything/hacker_feeds_cli/skills/SKILL.md",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Store skill_md as a repo-relative path

The hub renderer always builds the Skill URL as ${REPO}/blob/main/${c.skill_md} (docs/hub/index.html:1004-1005), so putting a full GitHub URL in skill_md creates an invalid double-prefixed link and the Skill button will 404 for this CLI. In registry.json, skill_md needs to stay repo-relative (as with other entries) or the frontend must be updated to detect absolute URLs.

Useful? React with 👍 / 👎.

"category": "search",
"contributor": "collectivewinca",
"contributor_url": "https://github.com/collectivewinca"
}
]
}
Loading