Skip to content

feat: make the catalog easy for AI agents to use - #8

Merged
brunobuddy merged 1 commit into
mainfrom
feat/copy-modal-agent-optimization
May 21, 2026
Merged

feat: make the catalog easy for AI agents to use#8
brunobuddy merged 1 commit into
mainfrom
feat/copy-modal-agent-optimization

Conversation

@brunobuddy

Copy link
Copy Markdown
Member

💭 Why

People are pasting the "How to use" guide into coding agents, and agents that hit the site had to scrape HTML. This gives them first-class ways to read the catalog.

✨ What changed

  • Copy button on the "How to use" modal copies the guide as Markdown (clipboard API, with an execCommand fallback).
  • /llms.txt and /llms-full.txt generated from the YAML catalog at build time, served in dev too.
  • WebMCP tools on navigator.modelContext: search_models, get_model_parameters, list_providers, list_parameters, get_usage_guide.
  • Structured data adds WebSite + SearchAction + Dataset next to the existing ItemList.
  • /?q= deep-links the search (backs the SearchAction); robots.txt and sitemap point at the new files; CORS on the .txt files.
  • Dev watcher fix: the dotfile-ignore regex matched the .paseo ancestor dir and silently disabled the whole watch. Scoped it to the basename and poll by default.

👤 For users

The "How to use" modal has a Copy button that yields paste-ready Markdown. Agents can read /llms.txt, /llms-full.txt, or call the in-page WebMCP tools instead of scraping.

📝 Notes

Adds tests/llms.test.ts. Build writes both .txt files into dist/. Set CHOKIDAR_USEPOLLING=false for native FS events on a normal local disk.

Add a Copy button to the "How to use" modal that yields the guide as
Markdown, plus agent-discovery surfaces so the catalog is usable without
scraping HTML.

- Copy button copies the usage guide as Markdown (clipboard + execCommand fallback)
- /llms.txt and /llms-full.txt generated from the YAML catalog at build time
- WebMCP tools on navigator.modelContext: search, model params, providers, parameters, usage guide
- Structured data: WebSite + SearchAction + Dataset alongside the ItemList
- /?q= deep-links search; robots.txt + sitemap point at the new files; CORS on the .txt files
- Fix dev watcher: scope dotfile-ignore to basename so a checkout under ~/.paseo no longer disables it; poll by default
@vercel

vercel Bot commented May 21, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
modelparameters-dev Ready Ready Preview May 21, 2026 9:57am

Request Review

@brunobuddy
brunobuddy merged commit 0d4dfab into main May 21, 2026
2 checks passed
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.

1 participant