Skip to content

feat: store listing media under media/<appId>/<version>/ - #3

Merged
agentiknet merged 1 commit into
mainfrom
feat/listing-media
Oct 7, 2026
Merged

agentiknet merged 1 commit into
mainfrom
feat/listing-media

Conversation

@agentiknet

@agentiknet agentiknet commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

What

Store plan S5c, part 2: where the icon and screenshots of an app's page (agentproto.sh/apps/<slug>) live, and how CI checks them.

  • Layout: media/<appId>/<version>/<file> next to entries/<appId>.json, e.g. media/@agentik/session-chat/0.1.1/thread.png. Entries point at them through https://raw.githubusercontent.com/agentproto/apps/main/media/..., the default --media-base-url of agentproto app pack --release --entry (feat(catalog): store listing fields for app pages ts#1762). Third parties may host media elsewhere (any https URL).
  • scripts/check-pr.mjs (rule 5):
    • non-maintainers may touch media/** as well as entries/**;
    • a media path must be media/@scope/name/<version>/<file>.(png|jpg|jpeg|webp|svg);
    • changing an app's media needs that app's owners: the base entry's, or those of the entry the same PR adds;
    • @agentproto/* stays reserved;
    • files are capped at 1 MB.
  • validate.yml:
    • also verifies the entry of any app whose media changed;
    • passes --local-media https://raw.githubusercontent.com/agentproto/apps/main/=$PWD, so catalog verify reads the PR's own media from the checkout. Format, size, alt text and listing limits are all checked before merge.
    • The flag is only passed when the installed CLI supports it, so CI keeps working until the CLI release that ships it.
  • README: "Store page (listing)" section, publish steps mention media/ and --local-media.

Tests

  • check-pr.mjs against a scratch repo:
    • owner adds media: ok;
    • stranger: refused;
    • new entry + its media in one PR by the entry's owner: ok;
    • bad path: refused;
    • 1 000 001-byte file: refused.
  • The verify step run against a fake agentproto: a media-only PR verifies entries/@acme/notes.json; a PR adding an entry and media verifies both, with --local-media. YAML and bash syntax checked.

Note: check-pr.mjs runs from the base branch, so the media rules apply to PRs opened after this one is merged.


🤖 @agentproto-bot — PR · session sess_22604f4f (store-supervisor-s5-s7) · claude-code / subscription · auth-profile Claude Subs Agentik · model claude-opus-5-5 · 308 in / 88.0k out · $62.3334 (daemon) · host mac.home · cwd agentik-studio

An app's store page (agentproto.sh/apps/<slug>) shows its icon and
screenshots; their files live next to its entry, in
media/<appId>/<version>/. check-pr.mjs applies the entry's owners to its
media, restricts paths and formats, caps files at 1 MB. The validate
workflow also verifies the entry of any app whose media changed, and
passes --local-media so media added by the PR are checked before they
exist on main. README: Store page section.
@agentiknet
agentiknet merged commit bab7ea7 into main Oct 7, 2026
1 check 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