Skip to content

DEV-1545: media dev docs — add V3 media guide (capture + upload)#286

Merged
inna-bieshulia merged 2 commits into
masterfrom
feat/DEV-1545-media-capture
Jul 8, 2026
Merged

DEV-1545: media dev docs — add V3 media guide (capture + upload)#286
inna-bieshulia merged 2 commits into
masterfrom
feat/DEV-1545-media-capture

Conversation

@farhantariq12b

Copy link
Copy Markdown
Contributor

JIRA

https://weboo.atlassian.net/browse/DEV-1545

Summary

Adds docs/API/v3/media.md as the fliplet-media V3 catalog entry, teaching the cross-platform flow for V3 AI-built apps: capture a photo → upload → display.

  • Fliplet.Media.capture() — take/pick a photo, web + native (paired with the api PR below)
  • Fliplet.Media.Files.upload() — store any file (incl. attached audio/video) and get a URL back
  • Display via getContents() (resize/convert) + Fliplet.Media.authenticate() (encrypted orgs)

Follows the barcode V3-doc pattern (per docs/CLAUDE.md "Dedicated V3 capability docs"):

  • API/fliplet-media.md set v3_relevant: false + exclude_from_v3_catalog: true, with a pointer to the V3 guide.
  • Content rule respected: the native-only Storage.* "download to devices" API and internals (parseSFC/evalModule/PrivateFiles) stay out of the V3 doc so the builder never emits them.

Files

  • new docs/API/v3/media.md — the V3 guide + catalog frontmatter
  • docs/API/fliplet-media.md — excluded from V3 catalog + V3 pointer
  • regenerated .well-known/* (llms.txt, llms-full.txt, llms-v3-libraries.json, agent-skills) + v3/capabilities.md

Testing

  • node bin/build-agent-indexes.mjs --strict green; catalog resolves fliplet-mediaAPI/v3/media.md, exactly 1 entry for the package (uniqueness holds).
  • npm run test:unit — 163/163 pass. Cross-links resolve.

Ship coupling

Do not merge/deploy ahead of the api PR that adds Fliplet.Media.capture() — otherwise the doc advertises a method that isn't live yet. Studio's fliplet-apis.json auto-regenerates from these docs post-merge (no studio change needed; camera preview permission already shipped by barcode #8634).

🤖 Generated with Claude Code

Adds docs/API/v3/media.md as the fliplet-media V3 catalog entry, teaching the
cross-platform flow: Fliplet.Media.capture() (photo, web + native) →
Fliplet.Media.Files.upload() → display via getContents()/authenticate().

Follows the barcode V3-doc pattern: the shared API/fliplet-media.md is set
v3_relevant: false + exclude_from_v3_catalog: true so the V3 doc is the sole
catalog entry (content rule — native-only Storage.* download API stays out of
the AI's view). Regenerated .well-known indexes + v3/capabilities.

Co-Authored-By: Claude <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploying fliplet-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5fcb7fb
Status: ✅  Deploy successful!
Preview URL: https://a2bafa1c.fliplet-cli.pages.dev
Branch Preview URL: https://feat-dev-1545-media-capture.fliplet-cli.pages.dev

View logs

Reflect that capture() downscales (maxWidth/maxHeight default 2048) and
re-encodes to WebP to minimize upload size; quality is WebP quality.

Co-Authored-By: Claude <noreply@anthropic.com>
@farhantariq12b
farhantariq12b marked this pull request as ready for review July 2, 2026 19:10
@inna-bieshulia
inna-bieshulia merged commit bc9ffdc into master Jul 8, 2026
3 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.

3 participants