Skip to content

fix: shared tool-count constant + vscode marketplace dedupe - #33

Merged
Railly merged 1 commit into
mainfrom
fix/tool-count-and-marketplace-dedupe
Jul 24, 2026
Merged

fix: shared tool-count constant + vscode marketplace dedupe#33
Railly merged 1 commit into
mainfrom
fix/tool-count-and-marketplace-dedupe

Conversation

@Railly

@Railly Railly commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Closes #27, closes #32.

#27 — tool count drift

The 12 tools number was hardcoded in README, layout.tsx, page.tsx, and drifted from the 18-entry tool-configs.ts (17 tools + the shared Global dir). This adds src/tools-meta.ts as the display source of truth (TOOL_NAMES, TOOL_COUNT = 17).

  • Web imports TOOL_COUNT. Next's turbopack.root pins the web package so it can't reach ../../src; a prebuild step (web/scripts/sync-tools-meta.ts, wired into dev/build) copies the constant into web/app/tools-meta.generated.ts (gitignored). Hero, OG, and description counts now track the code.
  • README can't import, so scripts/check-tool-count.ts greps it and a new ci.yml fails the PR on any count that isn't TOOL_COUNT.
  • Every stale 12 is now 17; the Supported tools table gains the 6 agents from feat: support 6 new agents matching skillkit's 14 connectors #28 (Cline, Roo, Kilo, Continue, OpenHands, Goose) and Windsurf's skills dir.

#32 — marketplace dedupe

vscode/src/rich-extension.ts (from the rescued 0.0.1 experiment) carried its own skills.sh search, install, uninstall, popular fetch, runner detection, and exec helpers, parallel to src/marketplace.ts. Those handlers now delegate to the shared exports (searchSkills, getPopularSkills, installSkillAsync, removeSkillAsync). The only rich-only logic kept is the disk-cache-with-background-refresh wrapper over getPopularSkills. Net -132 lines, one marketplace implementation for both frontends.

Not touched

#26 (Rules management) is a product feature needing UX shaping, not a dr​ive-by fix; left open.

Verification

  • plugin build + eslint clean
  • web builds; rendered output contains 17 everywhere and zero 12 tool references
  • check-tool-count.ts passes; ci.yml added
  • vscode tsc strict clean; shared marketplace functions return live data through the shim (20 popular, 30 search results with installed flags)
  • vsix reinstalled into VS Code and Cursor

Closes #27, #32.

#27 tool-count drift: adds src/tools-meta.ts as the single source of
truth for the display tool roster (TOOL_NAMES, TOOL_COUNT=17, excludes
the shared ~/.agents/skills Global directory). The web imports it
(synced into the web tree by a prebuild step, since Next's turbopack
root cannot reach ../../src), so hero, OG, and description counts move
with the code. README cannot import, so scripts/check-tool-count.ts
greps it and a new ci.yml fails the PR on mismatch. All the stale 12s
are now 17, and the Supported tools table gains the 6 agents from #28
plus Windsurf's skills dir.

#32 marketplace dedupe: rich-extension.ts carried its own skills.sh
search, install, uninstall, popular fetch, runner detection and exec
helpers. Those now delegate to src/marketplace (searchSkills,
getPopularSkills, installSkillAsync, removeSkillAsync); the only local
logic kept is the disk-cache-with-background-refresh wrapper over
getPopularSkills. Net -132 lines, one marketplace implementation.

Verified: plugin build + eslint clean; web builds and renders 17
everywhere (zero '12' in output); check-tool-count passes; vscode tsc
strict clean; shared marketplace functions return live data through
the shim (20 popular, 30 search results with installed flags); vsix
reinstalled into VS Code and Cursor.
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenfiles-web Ready Ready Preview, Comment Jul 24, 2026 6:14pm

@Railly
Railly merged commit 78870c3 into main Jul 24, 2026
4 checks passed
@Railly
Railly deleted the fix/tool-count-and-marketplace-dedupe branch July 24, 2026 18:14
Railly added a commit that referenced this pull request Jul 24, 2026
…OpenHands, Goose) (#34)

Bumps manifest, package, and versions.json to 0.8.0. Minor release:
since 0.7.5 the plugin gained six new agents and Windsurf's skills dir
(#28); the other merged PRs (#29-#31, #33) are the VS Code extension
and shared-constant work that don't change plugin runtime.

Tagging 0.8.0 triggers the release workflow (build + attestation +
GitHub release with main.js, manifest.json, styles.css).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vscode: deduplicate marketplace logic between rich-extension and src/marketplace chore: derive tool count from TOOL_CONFIGS instead of hardcoding it

1 participant