Skip to content

refactor: vendor png codec#609

Merged
thymikee merged 3 commits into
mainfrom
codex/vendor-png-codec
May 28, 2026
Merged

refactor: vendor png codec#609
thymikee merged 3 commits into
mainfrom
codex/vendor-png-codec

Conversation

@thymikee
Copy link
Copy Markdown
Member

Summary

Replace the external pngjs runtime dependency with a local PNG codec used by screenshot diff, resize, and overlay paths.

The local codec preserves the existing PNG surface used in the repo, supports PNG filters, palette transparency, Adam7 interlace, CRC validation, and writes the 8-bit RGBA PNGs generated by agent-device. This removes pngjs and @types/pngjs from package metadata.

Touched files: 19. Scope stayed within PNG/screenshot utilities and tests.

Validation

Focused PNG/diff tests passed: pnpm exec vitest run --project unit src/utils/__tests__/png.test.ts src/utils/__tests__/screenshot-diff.test.ts src/daemon/__tests__/screenshot-overlay.test.ts src/daemon/__tests__/request-router-screenshot.test.ts src/__tests__/cli-diff.test.ts src/__tests__/runtime-diff-screenshot.test.ts.

Tooling passed with pnpm check:tooling.

Smoke tests passed outside the sandbox with pnpm test:smoke.

Manual iPhone 17 Pro Max simulator verification passed: captured baseline/current Settings screenshots, ran agent-device diff screenshot, and produced /private/tmp/agent-device-png-verify/diff.png with 6.08% differing pixels. The verification session was closed.

Full pnpm check:unit was attempted; the parallel suite hit an unrelated Android .aab install test timeout. Rerunning that exact test directly passed.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-05-28 15:54 UTC

@thymikee thymikee force-pushed the codex/vendor-png-codec branch from 2b8e704 to 9b0eb20 Compare May 28, 2026 15:46
@thymikee thymikee merged commit 0bbb06e into main May 28, 2026
18 checks passed
@thymikee thymikee deleted the codex/vendor-png-codec branch May 28, 2026 15:54
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