mirror of
https://github.com/k1tbyte/Wand-Enhancer.git
synced 2026-08-28 17:01:04 +00:00
13759b1db6
- reduce ASAR IO overhead with streamed archive reads, buffered copies, faster relative-path handling and placeholder integrity records - fix in-place app.asar.unpacked packing/extraction self-copy cases that caused locked-file failures - tighten JS patch discovery with candidate bundle filters and search hints - require prebuilt remote-panel dist artifacts and clean up embedded bridge/script packaging - add unified build entrypoints for PowerShell, cmd and bash and move native CMake output under .tmp - add release metadata validation, changelog section extraction, pre-commit hook and GitHub Actions validation/release pipelines - make CHANGELOG the source of truth for release notes and document the tag-driven release flow - add updater release notes UI with latest/full changelog loading and localize the new update strings - modularize bridge renderer scripts, add installed apps and game status sync, and support remote launch/stop commands - centralize bridge protocol, IPC and WebSocket constants and improve LAN IP selection for QR pairing - refactor remote panel controls/state enums, persist accent color, polish library/session UI and refresh assets
47 lines
1.6 KiB
JavaScript
47 lines
1.6 KiB
JavaScript
const KNOWN_CHEAT_TYPES = new Set(['slider', 'number', 'toggle', 'button', 'selection', 'scalar', 'incremental']);
|
|
|
|
const WS_OPCODE = Object.freeze({
|
|
TEXT: 1,
|
|
BINARY: 2,
|
|
CLOSE: 8,
|
|
PING: 9,
|
|
PONG: 10,
|
|
});
|
|
|
|
const IPC_CHANNEL = Object.freeze({
|
|
BIND_HANDLER: 'wand-remote-set-handler-bind',
|
|
COMMAND_REQUEST: 'wand-remote-command',
|
|
COMMAND_RESPONSE: 'wand-remote-command-response',
|
|
GAME_STATUS: 'wand-remote-game-status',
|
|
INSTALLED_APPS: 'wand-remote-installed-apps',
|
|
REMOTE_URL: 'wand-remote-url',
|
|
SET_VALUE: 'wand-remote-set-value',
|
|
TRAINER_SNAPSHOT: 'wand-remote-sync',
|
|
VALUE_CHANGED: 'wand-remote-value-changed',
|
|
});
|
|
|
|
module.exports = {
|
|
BRIDGE_LOG_FILE_NAME: 'wand-remote-bridge.log',
|
|
BRIDGE_PROTOCOL_VERSION: 1,
|
|
BRIDGE_SERVER_VERSION: '0.2.0-wand',
|
|
DEFAULT_REMOTE_HOST: '0.0.0.0',
|
|
DEFAULT_REMOTE_PORT: 3223,
|
|
IPC_CHANNEL,
|
|
KNOWN_CHEAT_TYPES,
|
|
PORT_SCAN_RANGE: 30,
|
|
REMOTE_ASSETS_PREFIX: '/remote/assets/',
|
|
REMOTE_BASE_PATH: '/remote/',
|
|
REMOTE_COMMAND_REQUEST_CHANNEL: IPC_CHANNEL.COMMAND_REQUEST,
|
|
REMOTE_COMMAND_RESPONSE_CHANNEL: IPC_CHANNEL.COMMAND_RESPONSE,
|
|
REMOTE_COMMAND_RESPONSE_TIMEOUT_MS: 15000,
|
|
REMOTE_GAME_STATUS_CHANNEL: IPC_CHANNEL.GAME_STATUS,
|
|
REMOTE_HEALTH_PATH: '/remote/api/health',
|
|
REMOTE_INSTALLED_APPS_API_PATH: '/remote/api/installed-apps',
|
|
REMOTE_INSTALLED_APPS_CHANNEL: IPC_CHANNEL.INSTALLED_APPS,
|
|
REMOTE_WS_PATH: '/remote/ws',
|
|
RENDERER_INJECTION_DELAYS_MS: Object.freeze([500, 2000]),
|
|
RENDERER_SCRIPT_API_VERSION: 1,
|
|
RENDERER_SCRIPTS_DIR: 'renderer-scripts',
|
|
WS_OPCODE,
|
|
};
|