Conversation
Introduce user pet ("чубрик") support: create <userData>/pets, normalize/seed sprites and add pet-image utilities. Add IPC handlers (cuckoo-pets-list, cuckoo-pets-open-folder, cuckoo-pets-import) and expose APIs in preload. Add settings keys (petMode, petRatioX, petRatioY, petSize, petId, petDebugMode) and settings-tab UI for listing/importing/selecting pets and toggling debug. Implement DOM pet renderer (draggable/resizable, docked/center modes, hotkeys F8/F9/F10/F11) in src/preload/dom/pet.js. Minor preload and IPC cleanups and i18n strings for pet UI. New files: src/main/pet-image.js, src/preload/dom/pet.js; modified settings-store, main/index, main/ipc, preload files and settings tab.
Introduce pet ("chubrik") support and a configurable JS execution timeout. Added built-in pet assets (src/ui/pets) and seeded them into userData on first run. Extended bot settings with a Pets page, dynamic pet listing, enum helper, and related i18n keys. Added jsTimeoutSec default to settings-store and a settings-tab UI (validation + save) to control the JS timeout. JsRunner now reads the timeout from settings (getRunDeadlineMs, clamped to min/max) and exports related helpers. Minor logging/error handling added for robustness.
Add petEnabled setting and wiring so settings changes (from TG-bot or other windows) are pushed to UI. Bots: add i18n labels, settings item and _notifySettingsChanged to broadcast 'cuckoo-settings-changed'. Main: default petEnabled = true. Preload: expose onSettingsChanged API. UI: background module listens and reapplies visuals; pet module respects petEnabled, adds setEnabled and reacts to setting patches; settings-tab adds checkbox to toggle and persist petEnabled. Includes minor formatting/refactor cleanups.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.