feat: implement Phase 5 system handlers (automation, power, recording)

- Implement window control, wallpaper reset, and power management.
- Add Aperture recording wrapper and displayplacer layout control.
- Add self-update logic stub for local/remote sources.
- Register and expose handlers via context bridge.
This commit is contained in:
Scott Idem
2026-01-30 11:34:53 -05:00
parent 3d7aa1ab92
commit fb8af70742
15 changed files with 803 additions and 15 deletions

View File

@@ -40,10 +40,10 @@ const path = __importStar(require("path"));
function expandPath(filePath) {
if (!filePath)
return filePath;
if (filePath.startsWith('[home]')) {
return path.join(os.homedir(), filePath.replace('[home]', ''));
}
return filePath;
// Resolve all instances of [home] and [tmp] using global regex
return filePath
.replace(/\[home\]/g, os.homedir())
.replace(/\[tmp\]/g, os.tmpdir());
}
function getHashedPath(cacheRoot, hash) {
const expandedRoot = expandPath(cacheRoot);