Skip to content

feat(media-use): core infrastructure — manifest, cache, adopt, probe#1682

Merged
miguel-heygen merged 2 commits into
mainfrom
media-use/1-core-infra
Jun 25, 2026
Merged

feat(media-use): core infrastructure — manifest, cache, adopt, probe#1682
miguel-heygen merged 2 commits into
mainfrom
media-use/1-core-infra

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

Brief description of the change.

Why

Why is this change needed?

How

How was this implemented? Any notable design decisions?

Test plan

How was this tested?

  • Unit tests added/updated
  • Manual testing performed
  • Documentation updated (if applicable)

Foundation for media-use — the media resolution layer for HyperFrames.

- manifest.mjs: JSONL read/write/find for .media/manifest.jsonl
- index-gen.mjs: regenerate agent-readable index.md from manifest
- cache.mjs: content-addressed global cache at ~/.media/ (SHA-256, sentinel)
- freeze.mjs: download URL or copy local file to .media/
- probe.mjs: extract duration/dimensions via ffprobe
- adopt.mjs: scan assets/ directory, register existing files with metadata
- 19 passing tests (manifest round-trip, cache, promote, index generation)
Comment thread skills/media-use/scripts/lib/freeze.mjs Dismissed
Format adopt/cache/probe/manifest.test (CI oxfmt --check gate).
Cap freezeUrl downloads at 256MB so a hostile/runaway URL can't fill
the disk (addresses CodeQL #670: network data written to file).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@miguel-heygen miguel-heygen merged commit 73f6d3e into main Jun 25, 2026
51 checks passed
@miguel-heygen miguel-heygen deleted the media-use/1-core-infra branch June 25, 2026 00:28
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.

2 participants