Repository navigation
feat: store listing media under media/<appId>/<version>/ - #3
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.media/<appId>/<version>/<file>next toentries/<appId>.json, e.g.media/@agentik/session-chat/0.1.1/thread.png. Entries point at them throughhttps://raw.githubusercontent.com/agentproto/apps/main/media/..., the default--media-base-urlofagentproto 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):media/**as well asentries/**;media/@scope/name/<version>/<file>.(png|jpg|jpeg|webp|svg);@agentproto/*stays reserved;validate.yml:--local-media https://raw.githubusercontent.com/agentproto/apps/main/=$PWD, socatalog verifyreads the PR's own media from the checkout. Format, size, alt text and listing limits are all checked before merge.media/and--local-media.Tests
check-pr.mjsagainst a scratch repo:agentproto: a media-only PR verifiesentries/@acme/notes.json; a PR adding an entry and media verifies both, with--local-media. YAML and bash syntax checked.Note:
check-pr.mjsruns 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-profileClaude Subs Agentik· modelclaude-opus-5-5· 308 in / 88.0k out · $62.3334 (daemon) · hostmac.home· cwdagentik-studio