Skip to content

Split macOS desktop pet helpers to fix layer-lint size limit - #134

Merged
shaohaozhi286 merged 1 commit into
masterfrom
claude/split-desktop-pet-mac
Oct 15, 2026
Merged

shaohaozhi286 merged 1 commit into
masterfrom
claude/split-desktop-pet-mac

Conversation

@shaohaozhi286

Copy link
Copy Markdown
Collaborator

Fixes the red layer-lint (strict) on master after #132: desktop_pet_mac.mm was 1068 lines (R12 limit 1000). Helpers and the bridge shim move unchanged into desktop_pet_mac_support.hpp (923 + 172 lines). All seven layer-lint checks pass locally; test-classic-desktop-pets.mjs and test-desktop-office.mjs pass in macOS-bridge mode. The macOS host is not compiled locally.

desktop_pet_mac.mm grew past the 1000-line R12 limit with the companion-pet work, failing layer-lint on master. Move the WebView bridge shim, environment/locale helpers, scale preference IO, coordinate conversion and resize cursor into desktop_pet_mac_support.hpp (included only by the .mm); no behaviour change. The browser tests now read the shim from the new header.
@shaohaozhi286
shaohaozhi286 merged commit 89275bb into master Oct 15, 2026
4 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.

2 participants