pi-web-ui 0.114.0 → 0.114.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.
Files changed (195) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +187 -187
  3. package/README.zh-CN.md +227 -227
  4. package/README.zh-TW.md +227 -227
  5. package/bin/device-hub-cli.mjs +577 -577
  6. package/bin/frp-manager.mjs +1573 -1573
  7. package/bin/pi-device-hub.mjs +9 -9
  8. package/bin/pi-web-ui.mjs +4081 -4073
  9. package/deploy/nginx-subpath.conf +100 -100
  10. package/deploy/pi-web-ui.service +36 -36
  11. package/dist/server/agent-service.js +131 -55
  12. package/dist/server/attachments.js +51 -5
  13. package/dist/server/canvas/canvas-agent-tool.js +3 -3
  14. package/dist/server/canvas/canvas-cards.js +1 -1
  15. package/dist/server/canvas/canvas-orchestrator.js +3 -3
  16. package/dist/server/canvas/canvas-scheduled-task.js +45 -0
  17. package/dist/server/canvas/canvas-validation.js +1 -1
  18. package/dist/server/client-state.js +6 -2
  19. package/dist/server/compaction-instructions.js +8 -8
  20. package/dist/server/device-center/connector.js +33 -14
  21. package/dist/server/device-center/desktop-page.js +228 -228
  22. package/dist/server/device-center/hub-page.js +64 -64
  23. package/dist/server/device-center/hub.js +2 -1
  24. package/dist/server/device-center/local-hub.js +92 -0
  25. package/dist/server/device-center/local.js +60 -7
  26. package/dist/server/device-center/native-desktop/macos.js +190 -190
  27. package/dist/server/device-center/native-desktop/windows.js +116 -116
  28. package/dist/server/device-center/path-portal.js +1 -1
  29. package/dist/server/device-center/relay.js +45 -8
  30. package/dist/server/dispatch-domain-handlers.js +1 -0
  31. package/dist/server/dsh/dsh-agent-service.js +5 -1
  32. package/dist/server/dsh/runtime/cordis.yml +1 -1
  33. package/dist/server/dsh/runtime/custom-prompt.mjs +33 -33
  34. package/dist/server/dsh/runtime/goal-rpc.mjs +1309 -1309
  35. package/dist/server/dsh/runtime/launcher.mjs +235 -235
  36. package/dist/server/dsh/runtime/override.patch.yml +89 -89
  37. package/dist/server/dsh/runtime/runtime-root.mjs +405 -405
  38. package/dist/server/engine-probe.js +36 -6
  39. package/dist/server/eval-tool.js +135 -135
  40. package/dist/server/global-loader.js +40 -2
  41. package/dist/server/index.js +56 -32
  42. package/dist/server/patch-bash-process.js +125 -0
  43. package/dist/server/patch-tool.js +9 -9
  44. package/dist/server/patch-turn-end-boundary.js +3 -3
  45. package/dist/server/persona-chain.js +8 -8
  46. package/dist/server/plugins.js +26 -2
  47. package/dist/server/preset-fields.js +7 -0
  48. package/dist/server/preset-share.js +1 -0
  49. package/dist/server/prompt-templates.js +106 -0
  50. package/dist/server/protocol-version.js +1 -1
  51. package/dist/server/remote-ssh-service.js +39 -39
  52. package/dist/server/resolve-global-sdk.js +2 -0
  53. package/dist/server/schedule-agent-tool.js +39 -21
  54. package/dist/server/scheduler-tasks.js +45 -9
  55. package/dist/server/scm-commitmsg.js +10 -10
  56. package/dist/server/settings-service.js +6 -0
  57. package/dist/server/setup-page.js +620 -620
  58. package/dist/server/text-quote.js +9 -0
  59. package/dist/server/tool-manager.js +2 -1
  60. package/dist/server/universal/drivers/claude-code.js +5 -0
  61. package/dist/server/universal/drivers/codex.js +336 -0
  62. package/dist/server/universal/index.js +1 -0
  63. package/dist/server/universal/universal-attachments.js +24 -1
  64. package/dist/server/universal/universal-session.js +23 -0
  65. package/dist/server/vision-bridge.js +18 -18
  66. package/docs/device-center.md +148 -142
  67. package/docs/device-desktop.md +48 -48
  68. package/docs/dsh-engine.md +493 -493
  69. package/extensions/webui.ts +335 -335
  70. package/package.json +2 -2
  71. package/plugin-sdk/README.md +174 -174
  72. package/plugin-sdk/client-utils.mjs +279 -279
  73. package/plugin-sdk/import-check.mjs +210 -210
  74. package/plugin-sdk/index.d.ts +698 -698
  75. package/plugin-sdk/index.mjs +696 -696
  76. package/plugin-sdk/package.json +13 -13
  77. package/plugin-sdk/ssh-host-trust.mjs +225 -225
  78. package/plugins/catalog.json +10 -0
  79. package/themes/aetheris.css +501 -501
  80. package/themes/ayu-light.css +116 -116
  81. package/themes/bases/flow-base.css +1357 -1357
  82. package/themes/bases/obsidian-base.css +895 -895
  83. package/themes/bases/statusbar-flat-base.css +112 -112
  84. package/themes/bases/zhujian-base.css +688 -688
  85. package/themes/bases/zhupi-base.css +660 -660
  86. package/themes/catppuccin-latte.css +119 -119
  87. package/themes/catppuccin.css +116 -116
  88. package/themes/claude-code-dark.css +147 -147
  89. package/themes/codex.css +114 -114
  90. package/themes/cyberpunk.css +50 -50
  91. package/themes/dark-teal.css +264 -264
  92. package/themes/dazzle.css +38 -38
  93. package/themes/everforest-light.css +115 -115
  94. package/themes/flow-light.css +164 -164
  95. package/themes/flow.css +161 -161
  96. package/themes/geist.css +114 -114
  97. package/themes/gruvbox-light.css +115 -115
  98. package/themes/kanagawa-lotus.css +115 -115
  99. package/themes/md-preview.css +24 -24
  100. package/themes/mist.css +166 -166
  101. package/themes/nord.css +107 -107
  102. package/themes/one-dark.css +106 -106
  103. package/themes/paper.css +174 -174
  104. package/themes/rose-pine-dawn.css +114 -114
  105. package/themes/sakura.css +166 -166
  106. package/themes/solarized-light.css +114 -114
  107. package/themes/tokyo-night.css +115 -115
  108. package/themes/translucent.css +85 -85
  109. package/themes/transparent.css +116 -116
  110. package/themes/vs-code-dark.css +147 -147
  111. package/themes/wallpaper-flow.css +382 -382
  112. package/themes/wallpaper-obsidian.css +74 -74
  113. package/themes/white.css +164 -164
  114. package/themes/zhujian-dark.css +115 -115
  115. package/themes/zhujian.css +114 -114
  116. package/themes/zhupi-dark.css +115 -115
  117. package/themes/zhupi.css +114 -114
  118. package/web/dist/.build-assets.json +1 -1
  119. package/web/dist/assets/BgTasksModal-BcXJ20RO.js +1 -0
  120. package/web/dist/assets/BgTasksModal-DjQmiKnE.js +1 -0
  121. package/web/dist/assets/{CanvasStudio-BEJZE5BI.js → CanvasStudio-PI9pid0Y.js} +3 -3
  122. package/web/dist/assets/{CanvasStudio-CgUNHqos.js → CanvasStudio-nf5-HxLM.js} +3 -3
  123. package/web/dist/assets/DeviceCenter-CYttJw2a.js +3 -0
  124. package/web/dist/assets/DeviceCenter-DPe4sz74.js +3 -0
  125. package/web/dist/assets/DeviceGroups-D2rogxEN.js +1 -0
  126. package/web/dist/assets/Dropdown-ZLS04O8p.js +1 -0
  127. package/web/dist/assets/FilePreview-C9Ut4Lq6.js +2 -0
  128. package/web/dist/assets/FilePreview-CvK3ZzX5.js +2 -0
  129. package/web/dist/assets/GlobalSearchModal-C5e-OCw2.js +1 -0
  130. package/web/dist/assets/GlobalSearchModal-H7pFK2UC.js +1 -0
  131. package/web/dist/assets/GroupConversation-C2wNM0dQ.js +1 -0
  132. package/web/dist/assets/GroupConversation-ChN3TWQK.js +1 -0
  133. package/web/dist/assets/ModelConfigModal-DDZccDYt.js +2 -0
  134. package/web/dist/assets/PiSetupModal-DHbqfx8T.js +1 -0
  135. package/web/dist/assets/ProviderOAuthControls-C-MK36Dk.js +1 -0
  136. package/web/dist/assets/SCMPanel-buTGziDB.js +2 -0
  137. package/web/dist/assets/SCMPanel-kx-SCL2s.js +2 -0
  138. package/web/dist/assets/SettingsModal-BsUF8jqr.js +20 -0
  139. package/web/dist/assets/SettingsModal-D357Ky7P.js +20 -0
  140. package/web/dist/assets/{TerminalPanel-DL20uKgU.js → TerminalPanel-BBuM_Sez.js} +2 -2
  141. package/web/dist/assets/{TerminalPanel-D6cPRFei.js → TerminalPanel-D6x6xz8Q.js} +2 -2
  142. package/web/dist/assets/TuiOverlayModal-CdbGV3Za.js +1 -0
  143. package/web/dist/assets/TuiOverlayModal-d6x9u25n.js +1 -0
  144. package/web/dist/assets/app-globals-DcyO0UPi.js +1 -0
  145. package/web/dist/assets/{desktop-DPyTy4M3.js → desktop-YguLbrX1.js} +1 -1
  146. package/web/dist/assets/fi-DaSO0Q-m.js +325 -0
  147. package/web/dist/assets/index-BPvpea8t.js +85 -0
  148. package/web/dist/assets/index-D6u8xH0o.js +85 -0
  149. package/web/dist/assets/index-DDZMv6LO.css +1 -0
  150. package/web/dist/assets/{plugin-host-CqA4yW6w.js → plugin-host-BRBg6zmQ.js} +1 -1
  151. package/web/dist/assets/theme-DDl-Oy1b.js +1 -0
  152. package/web/dist/index.html +37 -36
  153. package/web/dist/sw.js +179 -179
  154. package/web/public/sw.js +179 -179
  155. package/dist/gh-comment-781.md +0 -5
  156. package/dist/server/device-center/local-page.js +0 -17
  157. package/dist/server/device-center/smoke-preview.js +0 -3
  158. package/dist/server/durable/durable-capabilities.js +0 -11
  159. package/dist/server/markers/builtins/services.js +0 -123
  160. package/dist/server/markers/builtins/todo.js +0 -189
  161. package/dist/server/markers-list-tool.js +0 -34
  162. package/dist/server/orchestrator.js +0 -109
  163. package/dist/server/system-prompt-soul.js +0 -41
  164. package/dist/server/univer-service.js +0 -448
  165. package/dist/server/universal/drivers/dsh-driver.js +0 -379
  166. package/dist/test-artifact.md +0 -9
  167. package/dist/test-preview-modal.md +0 -11
  168. package/dist/test-report.html +0 -20
  169. package/web/dist/assets/BgTasksModal-CS7UNzcw.js +0 -1
  170. package/web/dist/assets/BgTasksModal-Dk-tp78W.js +0 -1
  171. package/web/dist/assets/DeviceCenter-C8_CbxQ3.js +0 -3
  172. package/web/dist/assets/DeviceCenter-CVblvhNX.js +0 -3
  173. package/web/dist/assets/Dropdown-Oug0DDte.js +0 -1
  174. package/web/dist/assets/FilePreview-CvdX6nr6.js +0 -2
  175. package/web/dist/assets/FilePreview-kCZhfBAF.js +0 -2
  176. package/web/dist/assets/GlobalSearchModal-BLH63yYP.js +0 -1
  177. package/web/dist/assets/GlobalSearchModal-DAkvlvp6.js +0 -1
  178. package/web/dist/assets/GroupConversation-Cgo4xbpa.js +0 -1
  179. package/web/dist/assets/GroupConversation-DZ71jEi8.js +0 -1
  180. package/web/dist/assets/ModelConfigModal-BpWdFdQC.js +0 -2
  181. package/web/dist/assets/PiSetupModal-mkWPSxMj.js +0 -1
  182. package/web/dist/assets/ProviderOAuthControls-VK_jqXYS.js +0 -1
  183. package/web/dist/assets/SCMPanel-BP1TUT-V.js +0 -2
  184. package/web/dist/assets/SCMPanel-BscPm9kf.js +0 -2
  185. package/web/dist/assets/SettingsModal-C8UgMjVM.js +0 -20
  186. package/web/dist/assets/SettingsModal-VynB7jNb.js +0 -20
  187. package/web/dist/assets/TuiOverlayModal-Dst3BmT8.js +0 -1
  188. package/web/dist/assets/TuiOverlayModal-NCkpNtTp.js +0 -1
  189. package/web/dist/assets/UniversalPathPicker-CfQFc_c3.js +0 -1
  190. package/web/dist/assets/UniversalPathPicker-DwxwNcFw.js +0 -1
  191. package/web/dist/assets/app-globals-CnO6KlEM.js +0 -325
  192. package/web/dist/assets/index-CPgAH5q7.js +0 -83
  193. package/web/dist/assets/index-Cje8iugL.js +0 -83
  194. package/web/dist/assets/index-DnKeiDbj.css +0 -1
  195. package/web/dist/assets/theme-BqdAjEjF.js +0 -1
@@ -86,18 +86,26 @@ export function normalizeSchedulerInput(input, now = Date.now()) {
86
86
  }
87
87
  spec = String(ms);
88
88
  }
89
+ if (input.target !== undefined && input.target !== "conversation" && input.target !== "canvas") {
90
+ throw new SchedulerValidationError("invalid_target", "任务目标非法", "Invalid task target");
91
+ }
92
+ const graphId = String(input.graphId ?? "").trim();
93
+ const target = input.target ?? (graphId ? "canvas" : "conversation");
94
+ if (target === "canvas" && (!/^[A-Za-z0-9._-]{1,64}$/.test(graphId) || graphId === "." || graphId === "..")) {
95
+ throw new SchedulerValidationError("invalid_graph_id", "画布工程 id 非法或为空", "Invalid or missing canvas graph id");
96
+ }
89
97
  const prompt = String(input.prompt ?? "").trim();
90
- if (!prompt) {
98
+ if (!prompt && target === "conversation") {
91
99
  throw new SchedulerValidationError("empty_prompt", "触发指令(prompt)不能为空", "Trigger instruction (prompt) cannot be empty");
92
100
  }
93
101
  if (prompt.length > 8000) {
94
102
  throw new SchedulerValidationError("prompt_too_long", "触发指令超长(>8000 字),请裁剪后重试", "Trigger instruction too long (>8000 characters), please shorten and retry");
95
103
  }
96
- const model = String(input.model ?? "").trim();
104
+ const model = target === "canvas" ? "" : String(input.model ?? "").trim();
97
105
  if (model && !model.includes("/")) {
98
106
  throw new SchedulerValidationError("invalid_model", "模型格式非法(应为 provider/id)", "Invalid model format (expected provider/id)");
99
107
  }
100
- const thinkingLevel = String(input.thinkingLevel ?? "").trim();
108
+ const thinkingLevel = target === "canvas" ? "" : String(input.thinkingLevel ?? "").trim();
101
109
  const catchUp = input.catchUp === "once" ? "once" : "skip";
102
110
  const conversationId = String(input.conversationId ?? "")
103
111
  .trim()
@@ -109,6 +117,8 @@ export function normalizeSchedulerInput(input, now = Date.now()) {
109
117
  .slice(0, 1024);
110
118
  return {
111
119
  id,
120
+ target,
121
+ ...(target === "canvas" ? { graphId } : {}),
112
122
  name,
113
123
  description,
114
124
  cwd,
@@ -119,8 +129,8 @@ export function normalizeSchedulerInput(input, now = Date.now()) {
119
129
  model,
120
130
  thinkingLevel,
121
131
  catchUp,
122
- conversationId,
123
- sessionFile,
132
+ conversationId: target === "canvas" ? "" : conversationId,
133
+ sessionFile: target === "canvas" ? "" : sessionFile,
124
134
  oneShot: input.oneShot === true,
125
135
  createdAt: now,
126
136
  updatedAt: now,
@@ -175,6 +185,9 @@ function sanitizeHistory(v) {
175
185
  ok: rec.ok === true,
176
186
  durationMs: typeof rec.durationMs === "number" && Number.isFinite(rec.durationMs) ? rec.durationMs : 0,
177
187
  ...(typeof rec.conversationId === "string" && rec.conversationId ? { conversationId: rec.conversationId } : {}),
188
+ ...(rec.target === "canvas" || rec.target === "conversation" ? { target: rec.target } : {}),
189
+ ...(typeof rec.graphId === "string" && rec.graphId ? { graphId: rec.graphId.slice(0, 64) } : {}),
190
+ ...(typeof rec.runId === "string" && rec.runId ? { runId: rec.runId.slice(0, 128) } : {}),
178
191
  ...(typeof rec.error === "string" && rec.error ? { error: rec.error.slice(0, 500) } : {}),
179
192
  ...(rec.manual === true ? { manual: true } : {}),
180
193
  });
@@ -259,6 +272,8 @@ export class SchedulerStore {
259
272
  try {
260
273
  const task = normalizeSchedulerInput({
261
274
  id,
275
+ target: r.target,
276
+ graphId: r.graphId,
262
277
  name: r.name,
263
278
  description: r.description,
264
279
  cwd: r.cwd,
@@ -319,6 +334,8 @@ export class SchedulerStore {
319
334
  const history = sanitizeHistory(t.history);
320
335
  return {
321
336
  id: t.id,
337
+ target: t.target ?? "conversation",
338
+ ...(t.graphId ? { graphId: t.graphId } : {}),
322
339
  name: t.name,
323
340
  description: t.description,
324
341
  cwd: t.cwd,
@@ -348,15 +365,24 @@ export class SchedulerStore {
348
365
  * 字段显式出现(含空串)仍按全量语义覆盖。 */
349
366
  upsert(input) {
350
367
  const prev = this.tasks.get(String(input.id ?? "").trim());
351
- const task = normalizeSchedulerInput(input);
368
+ const task = normalizeSchedulerInput({
369
+ ...input,
370
+ ...(prev && input.target === undefined && input.graphId === undefined
371
+ ? { target: prev.target, graphId: prev.graphId }
372
+ : {}),
373
+ });
352
374
  if (prev) {
353
375
  task.createdAt = prev.createdAt;
354
376
  task.updatedAt = Date.now();
355
- if (input.conversationId === undefined && input.sessionFile === undefined) {
377
+ if (task.target !== "canvas" &&
378
+ prev.target !== "canvas" &&
379
+ input.conversationId === undefined &&
380
+ input.sessionFile === undefined) {
356
381
  task.conversationId = prev.conversationId;
357
382
  task.sessionFile = prev.sessionFile ?? "";
358
383
  }
359
384
  }
385
+ this.opts.validateTask?.(task);
360
386
  const history = prev?.history ? sanitizeHistory(prev.history) : [];
361
387
  this.save(new Map(this.tasks).set(task.id, { ...task, history }));
362
388
  // spec/cwd/开关变了 → 按现在重排下次触发
@@ -396,7 +422,7 @@ export class SchedulerStore {
396
422
  * 与历史)。无变化回 false(调用方免一次落盘+推送);未知任务回 false。 */
397
423
  rebind(id, binding) {
398
424
  const prev = this.tasks.get(id);
399
- if (!prev)
425
+ if (!prev || prev.target === "canvas")
400
426
  return false;
401
427
  const t = { ...prev };
402
428
  let dirty = false;
@@ -471,10 +497,15 @@ export class SchedulerStore {
471
497
  at: Date.now(),
472
498
  ok: result.ok,
473
499
  durationMs,
500
+ target: task.target ?? "conversation",
501
+ ...(task.graphId ? { graphId: task.graphId } : {}),
502
+ ...(result.runId ? { runId: result.runId } : {}),
474
503
  ...(result.conversationId ? { conversationId: result.conversationId } : {}),
475
504
  ...(result.error ? { error: result.error.slice(0, 500) } : {}),
476
505
  ...(manual ? { manual } : {}),
477
506
  });
507
+ if (task.oneShot)
508
+ this.remove(id);
478
509
  }
479
510
  catch (err) {
480
511
  result = {
@@ -488,7 +519,12 @@ export class SchedulerStore {
488
519
  // 仅推进内存调度,使用执行期间更新后的配置,不伪造成功历史。
489
520
  // 进程重启后仍可能补跑:本地记录与外部副作用不保证跨进程 exactly-once。
490
521
  const cur = this.tasks.get(id);
491
- if (cur && cur.enabled && !manual) {
522
+ if (cur && task.oneShot) {
523
+ // A failed history/removal write must not repeat an already attempted one-shot.
524
+ this.tasks.set(id, { ...cur, enabled: false });
525
+ this.nextFire.delete(id);
526
+ }
527
+ else if (cur && cur.enabled && !manual) {
492
528
  this.nextFire.set(id, computeNextFire(cur, Date.now()) ?? Date.now() + TICK_MS);
493
529
  }
494
530
  this.running.delete(id);
@@ -28,16 +28,16 @@ export const MAX_COMMITMSG_LEN = 200;
28
28
  /** File list cap inside the prompt (porcelain lines); the diffs carry the
29
29
  * details, the list is orientation only. */
30
30
  const MAX_FILE_LINES = 200;
31
- export const COMMITMSG_SYSTEM_PROMPT = `You write git commit messages. You receive the pending changes of a repository and output exactly one commit message: a single subject line.
32
-
33
- Rules:
34
- 1. Match the style, format and language of the repository's recent commit subjects when provided — conventional commits ("type(scope): summary"), prefixes, punctuation, language: copy what the repo actually does.
35
- 2. Describe what the change does at a glance (the user-facing effect), not a file-by-file listing.
36
- 3. The staged diff is the subject of the commit. Describe staged changes when any exist; otherwise describe the unstaged and untracked changes shown.
37
- 4. One line. No quotes, no markdown, no code fences, no "Commit message:" label, no explanation. Under 72 characters when the repository's language allows it (CJK text may naturally be shorter).
38
- 5. Never invent scope names, issue numbers or details not visible in the provided material.
39
- 6. If the repository has no commits yet, write the message in the language stated in the request.
40
-
31
+ export const COMMITMSG_SYSTEM_PROMPT = `You write git commit messages. You receive the pending changes of a repository and output exactly one commit message: a single subject line.
32
+
33
+ Rules:
34
+ 1. Match the style, format and language of the repository's recent commit subjects when provided — conventional commits ("type(scope): summary"), prefixes, punctuation, language: copy what the repo actually does.
35
+ 2. Describe what the change does at a glance (the user-facing effect), not a file-by-file listing.
36
+ 3. The staged diff is the subject of the commit. Describe staged changes when any exist; otherwise describe the unstaged and untracked changes shown.
37
+ 4. One line. No quotes, no markdown, no code fences, no "Commit message:" label, no explanation. Under 72 characters when the repository's language allows it (CJK text may naturally be shorter).
38
+ 5. Never invent scope names, issue numbers or details not visible in the provided material.
39
+ 6. If the repository has no commits yet, write the message in the language stated in the request.
40
+
41
41
  Output ONLY the subject line.`;
42
42
  /**
43
43
  * Assemble the effective system prompt from the settings-panel prefs (same
@@ -466,6 +466,7 @@ export class SettingsService {
466
466
  subagentDefaultModel: this.settings.subagentDefaultModel ?? null,
467
467
  subagentMaxDepth: this.settings.subagentMaxDepth ?? 0,
468
468
  questionPresentation: this.settings.questionPresentation ?? "queue",
469
+ toolApprovalPresentation: this.settings.toolApprovalPresentation ?? "all",
469
470
  questionTimeoutSeconds: this.settings.questionTimeoutSeconds ?? 240,
470
471
  subagentAutoWakeMaxTurns: this.settings.subagentAutoWakeMaxTurns ?? defaultSubagentAutoWakeMaxTurns(),
471
472
  steeringMode: this.settings.steeringMode,
@@ -756,6 +757,11 @@ export class SettingsService {
756
757
  throw new Error("Invalid questionnaire presentation");
757
758
  next.questionPresentation = partial.questionPresentation;
758
759
  }
760
+ if (partial.toolApprovalPresentation !== undefined) {
761
+ if (!["queue", "all", "manual"].includes(partial.toolApprovalPresentation))
762
+ throw new Error("Invalid tool approval presentation");
763
+ next.toolApprovalPresentation = partial.toolApprovalPresentation;
764
+ }
759
765
  if (partial.questionTimeoutSeconds !== undefined) {
760
766
  const seconds = partial.questionTimeoutSeconds;
761
767
  if (!Number.isSafeInteger(seconds) || seconds < 0 || seconds > 86400)