key-screen-framework 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main/index.js CHANGED
@@ -298,8 +298,8 @@ function isReloadShortcut(input, platform = process.platform) {
298
298
  const SERIAL_BAUD_RATE = 115200;
299
299
  const REQUEST_TIMEOUT_MS = 500;
300
300
  const REQUEST_RETRY_LIMIT = 3;
301
- const HEARTBEAT_INTERVAL_MS = 1e4;
302
- const HEARTBEAT_TIMEOUT_MS = 22e3;
301
+ const HEARTBEAT_INTERVAL_MS = 2e3;
302
+ const HEARTBEAT_TIMEOUT_MS = 6e3;
303
303
  const knownErrorCodes = /* @__PURE__ */ new Set([
304
304
  "UNKNOWN_COMMAND",
305
305
  "INVALID_TARGET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "key-screen-framework",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Screen framework for Keyescape desktop projects.",
5
5
  "repository": {
6
6
  "type": "git",
package/renderer/index.js CHANGED
@@ -2508,7 +2508,7 @@ function AdminScreen({ gameState }) {
2508
2508
  value: arduinoDraft.serialHealthyTimeoutMs
2509
2509
  }
2510
2510
  ),
2511
- /* @__PURE__ */ jsx("span", { className: "text-[11px] leading-5 text-text-dim", children: "해당 시간동안 Serial 통신 실패시 키보드 제어 방식으로 변경됩니다." })
2511
+ /* @__PURE__ */ jsx("span", { className: "text-[11px] leading-5 text-text-dim", children: "해당 시간동안 Serial 통신 실패시 키보드 제어 방식으로 변경됩니다. 앱은 2초마다 연결을 확인하므로 4000 이상으로 두세요." })
2512
2512
  ] })
2513
2513
  ] }),
2514
2514
  /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border-soft bg-surface px-3 py-3", children: [
@@ -22,8 +22,8 @@ export type IncomingSerialMessage = {
22
22
  export declare const SERIAL_BAUD_RATE = 115200;
23
23
  export declare const REQUEST_TIMEOUT_MS = 500;
24
24
  export declare const REQUEST_RETRY_LIMIT = 3;
25
- export declare const HEARTBEAT_INTERVAL_MS = 10000;
26
- export declare const HEARTBEAT_TIMEOUT_MS = 22000;
25
+ export declare const HEARTBEAT_INTERVAL_MS = 2000;
26
+ export declare const HEARTBEAT_TIMEOUT_MS = 6000;
27
27
  export declare function buildOutgoingLine(command: ArduinoCommand): string;
28
28
  export declare function buildResponseLine(response: Pick<ArduinoResponse, 'ok' | 'target' | 'code'>): string;
29
29
  export declare function parseIncomingLine(rawLine: string): IncomingSerialMessage | null;