Skip to content

Add portable website artifact handoff - #95

Merged
chubes4 merged 5 commits into
mainfrom
feat/portable-artifact-handoff
Aug 26, 2026
Merged

Add portable website artifact handoff#95
chubes4 merged 5 commits into
mainfrom
feat/portable-artifact-handoff

Conversation

@chubes4

@chubes4 chubes4 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

This is the standalone handoff tracked by #92. Studio lifecycle and Static Site Importer orchestration remain outside this repository; Studio cutover and duplicate-package removal follow only after an immutable standalone release is available.

Source History

The original DLA-owned delta was developed in Automattic/studio#3952 by Chris Huber and reconciled onto #93 rather than copied over the standalone lifecycle work. Aagam Shah's follow-up commits from Automattic/studio#4674 and Automattic/studio#4675 retain his authorship, Claude Fable 5 co-authorship, and explicit links to the original Studio commits. Automattic/studio#4676 remains Studio-owned and was merged only into #3952.

Verification

  • npm run build
  • repeated build with git diff --exit-code to verify deterministic committed bundles
  • npm run test:package
  • npm test: 3018 passed, 1 todo; 296 files passed, 1 skipped
  • npm audit --omit=dev: 0 vulnerabilities
  • git diff --check excluding generated distribution files

AI Assistance

OpenAI gpt-5.6-sol via OpenCode audited the Studio and standalone histories, isolated and reconciled the DLA-owned delta with #93, diagnosed installed-package and CI failures, ported Aagam Shah's attributed commits, and ran the verification gates. Chris Huber reviewed and orchestrated the work.

chubes4 and others added 5 commits August 25, 2026 21:18
The media downloader fetched with no Accept header, so format-negotiating
CDNs (Wix, Squarespace, Cloudinary f_auto, imgix auto=format, Photon)
returned the legacy/original encoding. On a small Wix store the retina
variants came back as 1-7 MB PNGs instead of the ~10 KB AVIFs a browser
receives, the portable media set filled its 160 MiB budget, and the
artifact export failed against the 192 MiB compiler limit.

Send Chromium's image Accept header and name the downloaded file by the
negotiated content type when it differs from the URL extension.

Ported from Automattic/studio commit 48ec28ddd7db9c31a4cf9315c2b6ad76998f20a2.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The export selected portable media against its own 160 MiB cap without
knowing how many bytes the routes, captured render dependencies, and
reports already take. Reserve those staged files and give media only
what remains under the artifact limit, still capped at 160 MiB.

Media that does not fit remains external rather than failing the export.
The receipt reports the effective max_bytes and reserved_bytes, and
ExportCaptureOptions.limits allows bounded caller and test overrides.

Ported from Automattic/studio commit 174f11bb5e59549e32103d312735c8eab133a682.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Ported from Automattic/studio commit 52a7a65476a3542770e75e0453501173b8c94242.
@chubes4
chubes4 merged commit 4e0e3fa into main Aug 26, 2026
1 check passed
@chubes4
chubes4 deleted the feat/portable-artifact-handoff branch August 26, 2026 05:45
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