Skip to content
Merged
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
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- [ ] I started from `docs/listing.example.json` and followed the rules in [AGENTS.md](https://github.com/OpenRootdev/toolindex/blob/main/AGENTS.md)
- [ ] I did not edit `data/reviews.json` or `data/boosts.json`
- [ ] The file has no secrets, API keys, tracking or affiliate links
- [ ] Optional: screenshots or a demo GIF in `media`, with alt text
- [ ] Pricing, required accounts and telemetry are mentioned in `manual_setup` or `notes`

A maintainer checks the tool, adds the review and merges. Thank you for contributing!
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ A pull request is the preferred way to add a tool: it is the fastest to review,
| `notes` | yes | A list of extra facts such as pricing, limits, telemetry or privacy. Use `[]` for none. |
| `documentation` | no | Link to the docs. |
| `image` | no | `{"url": "https://…", "alt": "…", "source": "https://…"}` for a logo. |
| `media` | no | Up to 6 screenshots or demo GIFs: `[{"url": "https://…/demo.gif", "alt": "What it shows"}]`. Use public `https://` image links, such as files in your repository or release. A short demo GIF helps people see what the tool does. |
| `contents` | no | Counts such as `{"skills": 3, "mcp_tools": 5}`, or `"tools": ["name", …]`. |

### `distribution`
Expand Down
7 changes: 6 additions & 1 deletion backend/domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export const toolSchema = z.object({
name: plain(100, 2), summary: plain(300, 10), type: z.enum(TYPES), category: z.enum(CATEGORIES),
repository: webURL, version: plain(80, 1), license: plain(250, 1),
installation: plain(8000, 10), manualSetup: plain(4000).default(''), pricing: plain(1000).default(''),
imageUrl: optionalURL, imageAlt: plain(150).default(''), imageSource: optionalURL
imageUrl: optionalURL, imageAlt: plain(150).default(''), imageSource: optionalURL,
media: z.array(z.object({url: webURL, alt: plain(200, 3)}).strict()).max(6).default([])
}).strict().superRefine((v, ctx) => {
if (v.imageUrl && (!v.imageAlt || !v.imageSource)) ctx.addIssue({code: 'custom', message: 'Images need alt text and a source URL'});
});
Expand Down Expand Up @@ -130,9 +131,13 @@ export function domain(store, baseCatalog, origin) {
manual_setup: [row.data.manualSetup || 'None declared.'], pricing: row.data.pricing,
author: row.author, url: origin + '/tools/' + id + '/',
...(row.data.imageUrl ? {image: {url: row.data.imageUrl, alt: row.data.imageAlt, source: row.data.imageSource}} : {}),
...(row.data.media?.length ? {media: row.data.media} : {}),
review: {status: 'setup-reviewed', reviewed_at: nowISO().slice(0,10), evidence: message, built_with_harneloop: false},
publishedAt: published?.publishedAt || nowISO(), revision
});
// Queue an approval email. The address is looked up from Auth at send time, never stored here.
if (decision === 'publish') tx.set('mailOutbox', id + '-r' + revision, {kind: 'tool-approved', toolId: id, name: row.data.name,
ownerUid: row.ownerUid, url: origin + '/tools/' + id + '/', update: Boolean(published), status: 'pending', createdAt: nowISO()});
return row;
});
}
Expand Down
10 changes: 7 additions & 3 deletions backend/render.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading