Release v0.1.6 2026-07-12

This commit is contained in:
Warren H
2026-07-12 23:20:15 -04:00
parent 35553c18dd
commit 122f159b94
55 changed files with 2229 additions and 587 deletions
+11 -4
View File
@@ -77,11 +77,11 @@ export function BottomDisplayApp() {
const sentControllerIds = new Set<string>();
let controllerSequence = 0;
let receivingControllerEcho = false;
let latestMovement = { x: 0, y: 0 };
let latestMovement = { moveX: 0, moveY: 0, lookX: 0, lookY: 0 };
const movementPublisher = createRateLimitedPublisher(() => {
channel.postMessage({
type: "controller-motion",
movement: { x: latestMovement.x, y: latestMovement.y },
movement: { ...latestMovement },
} satisfies DualScreenMessage);
}, CONTROLLER_MOTION_SYNC_INTERVAL_MS);
const announceReady = () => channel.postMessage({ type: "companion-ready" } satisfies DualScreenMessage);
@@ -94,6 +94,7 @@ export function BottomDisplayApp() {
if (!isControllerDispatchActive()) channel.postMessage({ type: "frontend-command", command } satisfies DualScreenMessage);
};
useFrontendStore.setState({
restoreSession: () => Promise.resolve(false),
signIn: (username, password) => {
postFrontend({ name: "signIn", username, password });
return Promise.resolve(false);
@@ -113,8 +114,14 @@ export function BottomDisplayApp() {
playSlot: (slotId) => postFrontend({ name: "playSlot", slotId }),
deleteSlot: (slotId) => postFrontend({ name: "deleteSlot", slotId }),
copySlot: (sourceId, targetId) => postFrontend({ name: "copySlot", sourceId, targetId }),
uploadSlot: (slotId) => postFrontend({ name: "uploadSlot", slotId }),
downloadSlot: (slotId) => postFrontend({ name: "downloadSlot", slotId }),
uploadSlot: (slotId) => {
postFrontend({ name: "uploadSlot", slotId });
return Promise.resolve();
},
downloadSlot: (slotId) => {
postFrontend({ name: "downloadSlot", slotId });
return Promise.resolve();
},
selectMode: (mode) => postFrontend({ name: "selectMode", mode }),
selectBoss: (bossId) => postFrontend({ name: "selectBoss", bossId }),
selectDifficulty: (difficultySlug) => postFrontend({ name: "selectDifficulty", difficultySlug }),