fix: bump version to 1.0.9.4, update changelog

This commit is contained in:
kitbyte
2026-07-22 00:03:38 +03:00
parent e7c7beb621
commit 643c8f8b62
38 changed files with 788 additions and 365 deletions
@@ -128,12 +128,14 @@ async function executeRemoteLaunchCommand(state, request) {
void syncGameStatus(state, true)
return buildCommandResponse(request, true)
} catch (error) {
state.log(
"warn",
"Remote trainer launch failed.",
error?.stack || String(error)
)
return buildCommandResponse(request, false, {
code: "launch_failed",
message:
error instanceof Error
? error.message
: "Failed to launch the trainer.",
message: "Failed to launch the trainer.",
})
}
}
@@ -171,12 +173,14 @@ async function executeRemoteStopCommand(state, request) {
clearTrainerSnapshot(state, REMOTE_STOP_EVENT, true)
return buildCommandResponse(request, true)
} catch (error) {
state.log(
"warn",
"Remote trainer stop failed.",
error?.stack || String(error)
)
return buildCommandResponse(request, false, {
code: "stop_failed",
message:
error instanceof Error
? error.message
: "Failed to stop the running trainer.",
message: "Failed to stop the running trainer.",
})
}
}
+3 -15
View File
@@ -1,7 +1,7 @@
import {
getWebpackRequire,
isRecord,
} from "./installed-apps-sync/runtime.js"
import { resolveQrRenderer as findWandQrRenderer } from "./remote-popup-cleanup/qr-renderer.js"
;(function installRemotePopupCleanup(WandEnhancer) {
if (globalThis.__wandRemotePopupCleanupInstalled) {
@@ -91,20 +91,8 @@ import {
return qrRenderer
}
const webpackRequire = getWebpackRequire()
for (const record of Object.values(webpackRequire?.c || {})) {
const exports = record?.exports
if (
isRecord(exports) &&
typeof exports.create === "function" &&
typeof exports.mo === "function"
) {
qrRenderer = exports.mo
return qrRenderer
}
}
return null
qrRenderer = findWandQrRenderer(getWebpackRequire())
return qrRenderer
}
const updateLinks = (remoteUrl) => {
@@ -0,0 +1,17 @@
import { isRecord } from "../installed-apps-sync/runtime.js"
const WAND_QR_RENDERER_EXPORT = "mo"
export function resolveQrRenderer(webpackRequire) {
for (const record of Object.values(webpackRequire?.c || {})) {
const exports = record?.exports
if (
isRecord(exports) &&
typeof exports[WAND_QR_RENDERER_EXPORT] === "function"
) {
return exports[WAND_QR_RENDERER_EXPORT]
}
}
return null
}