@songsid/agend 2.4.0-beta.24 → 2.4.0-beta.25

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 (395) hide show
  1. package/README.md +1 -1
  2. package/README.zh-TW.md +1 -1
  3. package/dist/agend-home.js +5 -5
  4. package/dist/agend-home.js.map +1 -1
  5. package/dist/agent-endpoint.js +10 -0
  6. package/dist/agent-endpoint.js.map +1 -1
  7. package/dist/agent-workspace.d.ts +18 -2
  8. package/dist/agent-workspace.js +15 -4
  9. package/dist/agent-workspace.js.map +1 -1
  10. package/dist/backend/antigravity.js +8 -6
  11. package/dist/backend/antigravity.js.map +1 -1
  12. package/dist/backend/claude-code.js +17 -0
  13. package/dist/backend/claude-code.js.map +1 -1
  14. package/dist/backend/claude-usage-credits.d.ts +8 -0
  15. package/dist/backend/claude-usage-credits.js +121 -0
  16. package/dist/backend/claude-usage-credits.js.map +1 -0
  17. package/dist/backend/types.d.ts +30 -0
  18. package/dist/backend/types.js.map +1 -1
  19. package/dist/build-provenance.json +1 -1
  20. package/dist/channel/adapters/discord.js +7 -1
  21. package/dist/channel/adapters/discord.js.map +1 -1
  22. package/dist/channel/tool-router.js +1 -0
  23. package/dist/channel/tool-router.js.map +1 -1
  24. package/dist/cli-audited.js +9 -4
  25. package/dist/cli-audited.js.map +1 -1
  26. package/dist/cli.js +184 -21
  27. package/dist/cli.js.map +1 -1
  28. package/dist/config-validator.js +11 -1
  29. package/dist/config-validator.js.map +1 -1
  30. package/dist/config.js +2 -0
  31. package/dist/config.js.map +1 -1
  32. package/dist/contact-auth-store.d.ts +18 -0
  33. package/dist/contact-auth-store.js +55 -8
  34. package/dist/contact-auth-store.js.map +1 -1
  35. package/dist/contact-auth-types.d.ts +3 -0
  36. package/dist/contact-auth-types.js.map +1 -1
  37. package/dist/contact-change-proposals.d.ts +34 -0
  38. package/dist/contact-change-proposals.js +1 -1
  39. package/dist/contact-change-proposals.js.map +1 -1
  40. package/dist/cross-instance-notice.d.ts +1 -0
  41. package/dist/cross-instance-notice.js +9 -8
  42. package/dist/cross-instance-notice.js.map +1 -1
  43. package/dist/daemon.d.ts +35 -0
  44. package/dist/daemon.js +234 -19
  45. package/dist/daemon.js.map +1 -1
  46. package/dist/delivery-outbox.d.ts +42 -1
  47. package/dist/delivery-outbox.js +194 -20
  48. package/dist/delivery-outbox.js.map +1 -1
  49. package/dist/fleet-context.d.ts +8 -0
  50. package/dist/fleet-lock.d.ts +67 -2
  51. package/dist/fleet-lock.js +236 -2
  52. package/dist/fleet-lock.js.map +1 -1
  53. package/dist/fleet-manager.d.ts +163 -6
  54. package/dist/fleet-manager.js +1136 -75
  55. package/dist/fleet-manager.js.map +1 -1
  56. package/dist/fleet-windows-runtime.d.ts +20 -1
  57. package/dist/fleet-windows-runtime.js +98 -18
  58. package/dist/fleet-windows-runtime.js.map +1 -1
  59. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +7 -0
  60. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +14 -4
  61. package/dist/home-update-lock.d.ts +35 -0
  62. package/dist/home-update-lock.js +81 -0
  63. package/dist/home-update-lock.js.map +1 -0
  64. package/dist/hub/compose/member.d.ts +5 -1
  65. package/dist/hub/compose/member.js +9 -5
  66. package/dist/hub/compose/member.js.map +1 -1
  67. package/dist/hub/member/room-ask.d.ts +5 -0
  68. package/dist/hub/member/room-ask.js +43 -16
  69. package/dist/hub/member/room-ask.js.map +1 -1
  70. package/dist/hub/member/room-mention-feedback.d.ts +2 -0
  71. package/dist/hub/member/room-mention-feedback.js +1 -1
  72. package/dist/hub/member/room-mention-feedback.js.map +1 -1
  73. package/dist/hub/member/room-post-answers.d.ts +2 -0
  74. package/dist/hub/member/room-post-answers.js +1 -1
  75. package/dist/hub/member/room-post-answers.js.map +1 -1
  76. package/dist/hub/member/room-post.d.ts +5 -0
  77. package/dist/hub/member/room-post.js +4 -1
  78. package/dist/hub/member/room-post.js.map +1 -1
  79. package/dist/hub/member/updates.d.ts +7 -1
  80. package/dist/hub/member/updates.js +7 -1
  81. package/dist/hub/member/updates.js.map +1 -1
  82. package/dist/hub/representative.d.ts +7 -0
  83. package/dist/hub/representative.js +38 -5
  84. package/dist/hub/representative.js.map +1 -1
  85. package/dist/install-lock.d.ts +15 -1
  86. package/dist/install-lock.js +16 -8
  87. package/dist/install-lock.js.map +1 -1
  88. package/dist/install-ownership.d.ts +165 -0
  89. package/dist/install-ownership.js +404 -0
  90. package/dist/install-ownership.js.map +1 -0
  91. package/dist/instance-config-impact.js +2 -0
  92. package/dist/instance-config-impact.js.map +1 -1
  93. package/dist/instructions.d.ts +4 -0
  94. package/dist/instructions.js +4 -0
  95. package/dist/instructions.js.map +1 -1
  96. package/dist/local-pane-endpoint.d.ts +4 -1
  97. package/dist/local-pane-endpoint.js +12 -2
  98. package/dist/local-pane-endpoint.js.map +1 -1
  99. package/dist/locale.js +160 -4
  100. package/dist/locale.js.map +1 -1
  101. package/dist/native-agent-admission.d.ts +7 -0
  102. package/dist/native-agent-admission.js +46 -3
  103. package/dist/native-agent-admission.js.map +1 -1
  104. package/dist/native-mcp.d.ts +16 -1
  105. package/dist/native-mcp.js +38 -5
  106. package/dist/native-mcp.js.map +1 -1
  107. package/dist/native-pane-lifecycle.d.ts +9 -0
  108. package/dist/native-pane-lifecycle.js +23 -0
  109. package/dist/native-pane-lifecycle.js.map +1 -1
  110. package/dist/native-pane-manager.d.ts +19 -6
  111. package/dist/native-pane-manager.js +79 -4
  112. package/dist/native-pane-manager.js.map +1 -1
  113. package/dist/needs-you.d.ts +8 -0
  114. package/dist/needs-you.js +1 -0
  115. package/dist/needs-you.js.map +1 -1
  116. package/dist/outbound-handlers.d.ts +12 -0
  117. package/dist/outbound-handlers.js +30 -2
  118. package/dist/outbound-handlers.js.map +1 -1
  119. package/dist/package-preimage.js +4 -0
  120. package/dist/package-preimage.js.map +1 -1
  121. package/dist/pane-port.d.ts +1 -0
  122. package/dist/plist-args.d.ts +9 -0
  123. package/dist/plist-args.js +22 -0
  124. package/dist/plist-args.js.map +1 -0
  125. package/dist/public-preview.d.ts +4 -6
  126. package/dist/public-preview.js +5 -2
  127. package/dist/public-preview.js.map +1 -1
  128. package/dist/public-web-gateway.js +8 -3
  129. package/dist/public-web-gateway.js.map +1 -1
  130. package/dist/public-web-link.d.ts +13 -1
  131. package/dist/public-web-link.js +28 -1
  132. package/dist/public-web-link.js.map +1 -1
  133. package/dist/recover.cjs +2452 -0
  134. package/dist/remote-card-prompt.d.ts +6 -2
  135. package/dist/remote-card-prompt.js +12 -3
  136. package/dist/remote-card-prompt.js.map +1 -1
  137. package/dist/reply-draft.d.ts +12 -0
  138. package/dist/reply-draft.js +81 -0
  139. package/dist/reply-draft.js.map +1 -0
  140. package/dist/request-contact-api.d.ts +15 -0
  141. package/dist/request-contact-api.js +120 -0
  142. package/dist/request-contact-api.js.map +1 -0
  143. package/dist/request-contact-card.d.ts +36 -0
  144. package/dist/request-contact-card.js +206 -0
  145. package/dist/request-contact-card.js.map +1 -0
  146. package/dist/request-contact-gate.d.ts +79 -0
  147. package/dist/request-contact-gate.js +262 -0
  148. package/dist/request-contact-gate.js.map +1 -0
  149. package/dist/request-contact-native.d.ts +52 -0
  150. package/dist/request-contact-native.js +83 -0
  151. package/dist/request-contact-native.js.map +1 -0
  152. package/dist/request-contact-types.d.ts +86 -0
  153. package/dist/request-contact-types.js +7 -0
  154. package/dist/request-contact-types.js.map +1 -0
  155. package/dist/request-context-call-protocol.d.ts +12 -0
  156. package/dist/request-context-call-protocol.js +14 -0
  157. package/dist/request-context-call-protocol.js.map +1 -0
  158. package/dist/request-context-call.d.ts +22 -0
  159. package/dist/request-context-call.js +35 -0
  160. package/dist/request-context-call.js.map +1 -0
  161. package/dist/request-context-drain.d.ts +39 -0
  162. package/dist/request-context-drain.js +159 -0
  163. package/dist/request-context-drain.js.map +1 -0
  164. package/dist/request-context-fence.d.ts +28 -0
  165. package/dist/request-context-fence.js +58 -0
  166. package/dist/request-context-fence.js.map +1 -0
  167. package/dist/request-context-migration.d.ts +64 -0
  168. package/dist/request-context-migration.js +158 -0
  169. package/dist/request-context-migration.js.map +1 -0
  170. package/dist/request-context-pane.d.ts +25 -0
  171. package/dist/request-context-pane.js +48 -0
  172. package/dist/request-context-pane.js.map +1 -0
  173. package/dist/request-context-policy.d.ts +74 -0
  174. package/dist/request-context-policy.js +116 -0
  175. package/dist/request-context-policy.js.map +1 -0
  176. package/dist/request-context-recovery.d.ts +14 -0
  177. package/dist/request-context-recovery.js +56 -0
  178. package/dist/request-context-recovery.js.map +1 -0
  179. package/dist/request-context-relay.d.ts +19 -0
  180. package/dist/request-context-relay.js +63 -0
  181. package/dist/request-context-relay.js.map +1 -0
  182. package/dist/request-context-returns.d.ts +67 -0
  183. package/dist/request-context-returns.js +211 -0
  184. package/dist/request-context-returns.js.map +1 -0
  185. package/dist/request-context-store.d.ts +2 -1
  186. package/dist/request-context-store.js +8 -1
  187. package/dist/request-context-store.js.map +1 -1
  188. package/dist/request-context-turns.d.ts +99 -0
  189. package/dist/request-context-turns.js +215 -0
  190. package/dist/request-context-turns.js.map +1 -0
  191. package/dist/request-context-view.d.ts +33 -0
  192. package/dist/request-context-view.js +36 -0
  193. package/dist/request-context-view.js.map +1 -0
  194. package/dist/request-hub-context.d.ts +130 -0
  195. package/dist/request-hub-context.js +89 -0
  196. package/dist/request-hub-context.js.map +1 -0
  197. package/dist/request-hub-output.d.ts +11 -0
  198. package/dist/request-hub-output.js +21 -0
  199. package/dist/request-hub-output.js.map +1 -0
  200. package/dist/runtime-cli-install.js +13 -11
  201. package/dist/runtime-cli-install.js.map +1 -1
  202. package/dist/runtime-client.d.ts +2 -0
  203. package/dist/runtime-client.js +17 -4
  204. package/dist/runtime-client.js.map +1 -1
  205. package/dist/runtime-coordinator.d.ts +4 -1
  206. package/dist/runtime-coordinator.js +10 -3
  207. package/dist/runtime-coordinator.js.map +1 -1
  208. package/dist/runtime-pane-assets.d.ts +1 -1
  209. package/dist/runtime-pane-assets.js +1 -1
  210. package/dist/runtime-pane-assets.js.map +1 -1
  211. package/dist/runtime-pane-host.d.ts +3 -0
  212. package/dist/runtime-pane-host.js +39 -21
  213. package/dist/runtime-pane-host.js.map +1 -1
  214. package/dist/runtime-pane-link.d.ts +6 -2
  215. package/dist/runtime-pane-link.js +17 -4
  216. package/dist/runtime-pane-link.js.map +1 -1
  217. package/dist/runtime-pane-mcp-relay.d.ts +11 -1
  218. package/dist/runtime-pane-mcp-relay.js +69 -3
  219. package/dist/runtime-pane-mcp-relay.js.map +1 -1
  220. package/dist/runtime-pane-mcp.d.ts +28 -1
  221. package/dist/runtime-pane-mcp.js +92 -15
  222. package/dist/runtime-pane-mcp.js.map +1 -1
  223. package/dist/runtime-pane-port.d.ts +6 -0
  224. package/dist/runtime-pane-port.js +23 -4
  225. package/dist/runtime-pane-port.js.map +1 -1
  226. package/dist/runtime-pane-protocol.d.ts +4 -0
  227. package/dist/runtime-pane-protocol.js +11 -4
  228. package/dist/runtime-pane-protocol.js.map +1 -1
  229. package/dist/runtime-pane-service.d.ts +1 -0
  230. package/dist/runtime-pane-service.js +25 -9
  231. package/dist/runtime-pane-service.js.map +1 -1
  232. package/dist/runtime-pane-stdio-protocol.d.ts +4 -0
  233. package/dist/runtime-pane-stdio-protocol.js +12 -5
  234. package/dist/runtime-pane-stdio-protocol.js.map +1 -1
  235. package/dist/runtime-pane-stdio.js +5 -5
  236. package/dist/runtime-pane-stdio.js.map +1 -1
  237. package/dist/runtime-protocol.d.ts +3 -0
  238. package/dist/runtime-protocol.js.map +1 -1
  239. package/dist/scheduler/scheduler.d.ts +6 -0
  240. package/dist/scheduler/scheduler.js +19 -1
  241. package/dist/scheduler/scheduler.js.map +1 -1
  242. package/dist/scheduler/task-board.d.ts +4 -0
  243. package/dist/scheduler/task-board.js +6 -0
  244. package/dist/scheduler/task-board.js.map +1 -1
  245. package/dist/scheduler/types.d.ts +1 -1
  246. package/dist/service-activation.js +3 -13
  247. package/dist/service-activation.js.map +1 -1
  248. package/dist/service-lock.d.ts +28 -0
  249. package/dist/service-lock.js +85 -0
  250. package/dist/service-lock.js.map +1 -0
  251. package/dist/settings-api.d.ts +6 -0
  252. package/dist/settings-api.js +35 -0
  253. package/dist/settings-api.js.map +1 -1
  254. package/dist/settings-change.js +1 -1
  255. package/dist/settings-change.js.map +1 -1
  256. package/dist/state-lease.d.ts +24 -0
  257. package/dist/state-lease.js +103 -0
  258. package/dist/state-lease.js.map +1 -0
  259. package/dist/tmux-binary.js +1 -1
  260. package/dist/tmux-binary.js.map +1 -1
  261. package/dist/tool-receipt-output.d.ts +2 -0
  262. package/dist/topic-commands.js +21 -1
  263. package/dist/topic-commands.js.map +1 -1
  264. package/dist/transcript-monitor.js +3 -0
  265. package/dist/transcript-monitor.js.map +1 -1
  266. package/dist/tunnel/named-link-test.d.ts +27 -0
  267. package/dist/tunnel/named-link-test.js +41 -0
  268. package/dist/tunnel/named-link-test.js.map +1 -1
  269. package/dist/types.d.ts +7 -0
  270. package/dist/ui/chat-store.js +5 -4
  271. package/dist/ui/fleet-office-card.js +15 -2
  272. package/dist/ui/fleet-office-skin.js +33 -9
  273. package/dist/ui/fleet-office-zones.js +8 -3
  274. package/dist/ui/fleet-office.js +136 -18
  275. package/dist/ui/fleet-task-files.js +1 -1
  276. package/dist/ui/panel-chat.js +15 -2
  277. package/dist/ui/panel-needs.js +22 -2
  278. package/dist/ui/panel-settings.js +22 -8
  279. package/dist/ui/settings-preview-address.js +156 -0
  280. package/dist/ui/settings-registry.js +2 -0
  281. package/dist/ui/settings-strings.js +6 -6
  282. package/dist/ui/shared/app.css +76 -2
  283. package/dist/ui/shared/chat-strings.js +6 -2
  284. package/dist/ui/shared/chat-thread.js +7 -1
  285. package/dist/ui/shared/preview-panel.js +1 -1
  286. package/dist/ui/shared/preview.js +11 -2
  287. package/dist/ui/shared/tokens.css +18 -3
  288. package/dist/ui/shared/ui-confirm.js +5 -4
  289. package/dist/ui/shared/workspace.css +7 -0
  290. package/dist/ui/usage-credits-card.js +84 -0
  291. package/dist/ui/workspace-ignored-strings.js +16 -0
  292. package/dist/ui/workspace-panel.js +15 -6
  293. package/dist/update-card.d.ts +193 -0
  294. package/dist/update-card.js +620 -0
  295. package/dist/update-card.js.map +1 -0
  296. package/dist/update-dispatch.d.ts +16 -1
  297. package/dist/update-dispatch.js +12 -4
  298. package/dist/update-dispatch.js.map +1 -1
  299. package/dist/update-forward.d.ts +73 -0
  300. package/dist/update-forward.js +283 -0
  301. package/dist/update-forward.js.map +1 -0
  302. package/dist/update-idle.d.ts +1 -0
  303. package/dist/update-idle.js +12 -3
  304. package/dist/update-idle.js.map +1 -1
  305. package/dist/update-install.d.ts +2 -1
  306. package/dist/update-install.js +18 -10
  307. package/dist/update-install.js.map +1 -1
  308. package/dist/update-journal.d.ts +351 -0
  309. package/dist/update-journal.js +717 -0
  310. package/dist/update-journal.js.map +1 -0
  311. package/dist/update-launch.js +1 -1
  312. package/dist/update-launch.js.map +1 -1
  313. package/dist/update-npm-env.d.ts +45 -12
  314. package/dist/update-npm-env.js +48 -0
  315. package/dist/update-npm-env.js.map +1 -1
  316. package/dist/update-package-restore.d.ts +75 -0
  317. package/dist/update-package-restore.js +318 -0
  318. package/dist/update-package-restore.js.map +1 -0
  319. package/dist/update-quiescence.d.ts +192 -0
  320. package/dist/update-quiescence.js +330 -0
  321. package/dist/update-quiescence.js.map +1 -0
  322. package/dist/update-readiness-host.d.ts +61 -0
  323. package/dist/update-readiness-host.js +297 -0
  324. package/dist/update-readiness-host.js.map +1 -0
  325. package/dist/update-readiness.d.ts +83 -0
  326. package/dist/update-readiness.js +459 -0
  327. package/dist/update-readiness.js.map +1 -0
  328. package/dist/update-recovery/kit.d.ts +35 -0
  329. package/dist/update-recovery/kit.js +99 -0
  330. package/dist/update-recovery/kit.js.map +1 -0
  331. package/dist/update-recovery/pre-start.d.ts +34 -0
  332. package/dist/update-recovery/pre-start.js +103 -0
  333. package/dist/update-recovery/pre-start.js.map +1 -0
  334. package/dist/update-recovery/recover-main.d.ts +1 -0
  335. package/dist/update-recovery/recover-main.js +4 -0
  336. package/dist/update-recovery/recover-main.js.map +1 -0
  337. package/dist/update-recovery/recover.d.ts +22 -0
  338. package/dist/update-recovery/recover.js +124 -0
  339. package/dist/update-recovery/recover.js.map +1 -0
  340. package/dist/update-recovery/route.d.ts +53 -0
  341. package/dist/update-recovery/route.js +262 -0
  342. package/dist/update-recovery/route.js.map +1 -0
  343. package/dist/update-recovery/runner.d.ts +58 -0
  344. package/dist/update-recovery/runner.js +196 -0
  345. package/dist/update-recovery/runner.js.map +1 -0
  346. package/dist/update-recovery/service-manager.d.ts +39 -0
  347. package/dist/update-recovery/service-manager.js +57 -0
  348. package/dist/update-recovery/service-manager.js.map +1 -0
  349. package/dist/update-restore.d.ts +44 -0
  350. package/dist/update-restore.js +355 -0
  351. package/dist/update-restore.js.map +1 -0
  352. package/dist/update-retained.d.ts +38 -0
  353. package/dist/update-retained.js +91 -0
  354. package/dist/update-retained.js.map +1 -0
  355. package/dist/update-rollback.d.ts +74 -0
  356. package/dist/update-rollback.js +221 -0
  357. package/dist/update-rollback.js.map +1 -0
  358. package/dist/update-settings.d.ts +36 -0
  359. package/dist/update-settings.js +122 -0
  360. package/dist/update-settings.js.map +1 -0
  361. package/dist/update-snapshot-manifest.d.ts +32 -0
  362. package/dist/update-snapshot-manifest.js +65 -0
  363. package/dist/update-snapshot-manifest.js.map +1 -0
  364. package/dist/update-snapshot-scope.d.ts +67 -0
  365. package/dist/update-snapshot-scope.js +172 -0
  366. package/dist/update-snapshot-scope.js.map +1 -0
  367. package/dist/update-snapshot.d.ts +34 -0
  368. package/dist/update-snapshot.js +246 -0
  369. package/dist/update-snapshot.js.map +1 -0
  370. package/dist/update-writers.d.ts +71 -0
  371. package/dist/update-writers.js +235 -0
  372. package/dist/update-writers.js.map +1 -0
  373. package/dist/web-api.d.ts +3 -0
  374. package/dist/web-api.js +43 -8
  375. package/dist/web-api.js.map +1 -1
  376. package/dist/web-chat-history.d.ts +7 -0
  377. package/dist/web-chat-history.js +15 -0
  378. package/dist/web-chat-history.js.map +1 -1
  379. package/dist/web-preview.d.ts +5 -0
  380. package/dist/web-preview.js +1 -1
  381. package/dist/web-preview.js.map +1 -1
  382. package/dist/web-update.d.ts +6 -0
  383. package/dist/windows-agents.d.ts +12 -0
  384. package/dist/windows-agents.js +5 -0
  385. package/dist/windows-agents.js.map +1 -1
  386. package/launcher/agend +4 -1
  387. package/launcher/agend-agent +4 -1
  388. package/launcher/agend-install.cjs +16 -8
  389. package/launcher/install-admission.d.cts +8 -0
  390. package/launcher/npm-allow-scripts.cjs +72 -0
  391. package/launcher/npm-global-prefix.cjs +81 -0
  392. package/launcher/postinstall.cjs +9 -8
  393. package/launcher/runtime-select.cjs +8 -2
  394. package/package.json +3 -2
  395. package/scripts/preinstall-guard.cjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"named-link-test.js","sourceRoot":"","sources":["../../src/tunnel/named-link-test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,YAAY,EAAe,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,mBAAmB,EAAqD,MAAM,kBAAkB,CAAC;AAC1G,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,YAAY,EAAE,gBAAgB,EAAsB,MAAM,mBAAmB,CAAC;AAKvI,MAAM,CAAC,MAAM,gBAAgB,GAA6B,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AA0BzG,iHAAiH;AACjH,MAAM,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C,CAAC;QAClD,IAAI,GAAG,OAAO,CAAC;QACf,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,WAAW,QAAQ,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1I,OAAO,IAAI,CAAC,OAAO,EAAE,KAAyB,CAAC,CAAC;IAClD,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,IAAI,CAAC,IAAI,EAAE,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;IACnG,CAAC;YAAS,CAAC;QAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAAC,CAAC;AACnC,CAAC"}
package/dist/types.d.ts CHANGED
@@ -439,6 +439,8 @@ export interface WebConfig {
439
439
  tunnel_token_env?: string;
440
440
  origin_port?: number;
441
441
  auto_open?: boolean;
442
+ /** M-3814: a second hostname on the same named tunnel, routed to the preview port: the fixed link's previews. */
443
+ preview_hostname?: string;
442
444
  };
443
445
  /** Echo web chat to the owning fleet topic (default true); never ClassicBot rooms. */
444
446
  echo_to_channel?: boolean;
@@ -735,6 +737,11 @@ export interface FleetConfig {
735
737
  remote_runtime?: boolean;
736
738
  max_agents_per_machine?: number;
737
739
  };
740
+ /**
741
+ * M-3762: one update offer. `mode` auto-when-idle is stored and not acted on until Phase 5.
742
+ * `pause` days are 0 (Sunday) through 6. `pin` set means nothing is offered. `maxIdleWait` is hours (default 24).
743
+ */
744
+ updates?: import("./update-settings.js").UpdatesSettings;
738
745
  }
739
746
  /**
740
747
  * User-authored fleet.yaml before defaults are merged into instances.
@@ -9,6 +9,7 @@
9
9
  // navigation — it counts as use, as the old click did). Coming back to it reads nothing; the stream keeps it current.
10
10
  import "/assets/chat-render.js";
11
11
  import { createLiveAgentReplies } from "./chat-live-replies.js";
12
+ import { usageCreditsActions } from "./usage-credits-card.js";
12
13
  /** A message's identity on this page (ids restart with each fleet process; the boot makes them unique). */
13
14
  const msgKeyOf = (m) => `${m.boot}-${m.id}`;
14
15
 
@@ -236,7 +237,7 @@ export function createChatStore(deps) {
236
237
  // A prompt already held (being answered, or claimed from Needs you) keeps its busy/answered state: a repeat of it
237
238
  // only refreshes its text and buttons (#1463 review).
238
239
  if (!had) s.prompts[p.nonce] = { ...p, resolved: false, busy: false };
239
- else if (!had.resolved) Object.assign(had, { text: p.text, links: p.links, actions: p.actions, expiresAt: p.expiresAt });
240
+ else if (!had.resolved) Object.assign(had, { text: p.text, links: p.links, actions: p.actions, view: p.view, expiresAt: p.expiresAt });
240
241
  if (shown().has(p.instance)) changed(p.instance);
241
242
  else if (fresh) deps.toast(tf("chat.promptFor", p.instance, p.text), false);
242
243
  }
@@ -248,7 +249,7 @@ export function createChatStore(deps) {
248
249
  for (const p of list) {
249
250
  const had = s.prompts[p.nonce];
250
251
  if (!had) s.prompts[p.nonce] = { ...p, resolved: false, busy: false };
251
- else if (!had.resolved) Object.assign(had, { text: p.text, links: p.links, actions: p.actions, expiresAt: p.expiresAt });
252
+ else if (!had.resolved) Object.assign(had, { text: p.text, links: p.links, actions: p.actions, view: p.view, expiresAt: p.expiresAt });
252
253
  }
253
254
  for (const n of Object.keys(s.prompts)) if (!s.prompts[n].resolved && !open.has(n)) s.prompts[n].resolved = true;
254
255
  changed(null);
@@ -264,7 +265,7 @@ export function createChatStore(deps) {
264
265
  /** `text`: #2675 — the typed answer, for an action the prompt shows a text box for. */
265
266
  async function answerPrompt(p, action, text) {
266
267
  if (p.busy || p.resolved) return;
267
- const confirmation = p.actions?.find(a => a.id === action)?.confirmation;
268
+ const confirmation = (p.view && p.view.kind === "usage-credits" ? usageCreditsActions(p.view, p.actions) : p.actions)?.find(a => a.id === action)?.confirmation;
268
269
  p.busy = true; p.confirming = !!confirmation; changed(p.instance);
269
270
  if (confirmation) {
270
271
  const yes = deps.confirm ? await deps.confirm({ ...confirmation, danger: true }) : false;
@@ -291,7 +292,7 @@ export function createChatStore(deps) {
291
292
  function answerByNonce(item, action) {
292
293
  if (!item || typeof item.nonce !== "string") return Promise.resolve();
293
294
  let p = s.prompts[item.nonce];
294
- if (!p) p = s.prompts[item.nonce] = { instance: item.instance, nonce: item.nonce, text: item.text || item.detail || "", actions: item.actions || [], resolved: false, busy: false };
295
+ if (!p) p = s.prompts[item.nonce] = { instance: item.instance, nonce: item.nonce, text: item.text || item.detail || "", actions: item.actions || [], ...(item.view ? { view: item.view } : {}), resolved: false, busy: false };
295
296
  return answerPrompt(p, action);
296
297
  }
297
298
  /** A claim taken elsewhere before this store existed (Needs you, before Chat booted): held here from now on. */
@@ -32,15 +32,23 @@ register("ocard", {
32
32
  today: "Today", todayN: "{0} work tokens · {1} requests", firstSeen: "First seen", day: "Day {0}", now: "Now", nowLabel: "Now: ", find: "Find in office", chat: "Chat", pat: "Pat", feed: "Feed", tell: "Tell {0} (with their next message)", tellNote: "Off: only you see it. On: a line like “[Office] <your name> patted your head ×3” rides the next message they get anyway — it never wakes them.",
33
33
  chatWindow: "Open {0}’s chat in a new window",
34
34
  close: "Close", xp: "Progress to Lv {0}", rename: "Rename (only you see it)", renameField: "Name you see",
35
+ previewPose: "Preview pose", previewOff: "Off", replay: "Replay", poseOption: "{0} ({1})",
36
+ pose_idle: "Idle", pose_working: "Working", pose_paused: "Paused", pose_needs: "Needs a person", pose_walkDown: "Walk down", pose_walkUp: "Walk up",
37
+ pose_walkSide: "Walk sideways", pose_walkLeft: "Walk left", pose_eat: "Eat", pose_pat: "Patted", pose_dragged: "Dragged", pose_stand: "Card pose",
35
38
  },
36
39
  "zh-TW": {
37
40
  card: "{0} 的名片", level: "Lv {0}", work: "{0} 工作 token", estimated: "估算", toNext: "再 {0} 到 Lv {1}", office: "辦公室", model: "模型", backend: "後端",
38
41
  today: "今天", todayN: "{0} 工作 token · {1} 次請求", firstSeen: "首次出現", day: "第 {0} 天", now: "現在", nowLabel: "現在:", find: "在辦公室找它", chat: "聊天", pat: "摸頭", feed: "餵點心", tell: "讓 {0} 知道(隨下一則訊息)", tellNote: "關閉:只有你看得到。開啟:下一則本來就會送給它的訊息會附上一行,例如「[Office] <你的名字> patted your head ×3」,不會叫醒它。",
39
42
  chatWindow: "在新視窗開啟 {0} 的聊天",
40
43
  close: "關閉", xp: "升到 Lv {0} 的進度", rename: "改名(只有你看得到)", renameField: "你看到的名字",
44
+ previewPose: "預覽動作", previewOff: "關閉", replay: "重播", poseOption: "{0}({1})",
45
+ pose_idle: "閒置", pose_working: "工作", pose_paused: "暫停", pose_needs: "呼叫人", pose_walkDown: "向下走", pose_walkUp: "向上走",
46
+ pose_walkSide: "側著走", pose_walkLeft: "向左走", pose_eat: "吃點心", pose_pat: "被摸頭", pose_dragged: "被拖著", pose_stand: "名片站姿",
41
47
  },
42
48
  });
43
49
  const tc = (k, ...v) => t(`ocard.${k}`, ...v);
50
+ /** #4508 review: a pose's name in the viewer's language, with the strip key a pack author looks for ("Walk up (walkUp)"). */
51
+ export const poseName = (key) => { const k = `pose_${key}`, label = tc(k); return label && label !== `ocard.${k}` ? tc("poseOption", label, key) : key; };
44
52
 
45
53
  /** The days from `first` (YYYY-MM-DD, the fleet's zone) to today on this device's clock, counting the first as day 1. */
46
54
  export function dayOf(first, nowMs = Date.now()) {
@@ -352,7 +360,11 @@ function CardName({ name, rename }) {
352
360
  aria-label=${tc("rename")} title=${tc("rename")} onClick=${() => setEditing(true)}>✎</button></span>`;
353
361
  }
354
362
 
355
- export function OfficeCard({ model: m, avatar, sheet, place, onChat, onFind, onClose, onReact = null, tell = null, rename = null, packCard = null, picture = null, portrait = null, packScale = 2, action = null, photo = null }) {
363
+ export function OfficeCard({ model: m, avatar, sheet, place, onChat, onFind, onClose, onReact = null, tell = null, rename = null, preview = null, packCard = null, picture = null, portrait = null, packScale = 2, action = null, photo = null }) {
364
+ // #4504: a skin pack's pose preview (`preview` = { poses, pose, set, replay }): the person plays the picked pose in place.
365
+ const previewRow = preview ? html`<div key="preview" class="oo-card-preview"><label>${tc("previewPose")}
366
+ <select value=${preview.pose} onChange=${(e) => preview.set(e.target.value)}><option value="">${tc("previewOff")}</option>${preview.poses.map((p) => html`<option value=${p}>${poseName(p)}</option>`)}</select></label>
367
+ <button type="button" class="btn btn-sm oo-card-replay" disabled=${!preview.pose} onClick=${preview.replay}>${tc("replay")}</button></div>` : null;
356
368
  // `action`: one, or a list (M-3565: a Hub room's "@ it" and "Chat with it one-to-one"); the first is the primary button.
357
369
  const actions = Array.isArray(action) ? action.filter(Boolean) : action ? [action] : [];
358
370
  const actionButtons = actions.map((a, i) => html`<button key=${i} type="button" class=${`btn btn-sm ${i === 0 ? "btn-primary " : ""}oo-card-action`} title=${a.title || undefined} aria-label=${a.title || undefined} onClick=${a.run}>${a.label}</button>`);
@@ -482,6 +494,7 @@ export function OfficeCard({ model: m, avatar, sheet, place, onChat, onFind, onC
482
494
  ${m.now ? html`<div class="oo-card-now"><span class="muted">${tc("nowLabel")}</span>${m.now}</div>` : null}
483
495
  ${tell ? html`<label class="check oo-card-tell" title=${tc("tellNote")}><input type="checkbox" checked=${tell.on} onChange=${(e) => tell.set(e.target.checked)} />
484
496
  <span>${tc("tell", m.name)}</span></label>` : null}
497
+ ${previewRow}
485
498
  <div class="oo-card-actions">
486
499
  ${onReact ? html`<button type="button" class="btn btn-sm btn-ghost oo-card-pat" onClick=${() => onReact("pat")}>${tc("pat")}</button>
487
500
  <button type="button" class="btn btn-sm btn-ghost oo-card-feed" onClick=${() => onReact("feed")}>${tc("feed")}</button>` : null}
@@ -540,7 +553,7 @@ export function OfficeCard({ model: m, avatar, sheet, place, onChat, onFind, onC
540
553
  <span>${tc("tell", m.name)}</span></label>`;
541
554
  }
542
555
  if (sec === "actions") {
543
- return html`<div key="actions" class="oo-card-actions">
556
+ return html`${previewRow}<div key="actions" class="oo-card-actions">
544
557
  ${onReact ? html`<button type="button" class="btn btn-sm btn-ghost oo-card-pat" onClick=${() => onReact("pat")}>${tc("pat")}</button>
545
558
  <button type="button" class="btn btn-sm btn-ghost oo-card-feed" onClick=${() => onReact("feed")}>${tc("feed")}</button>` : null}
546
559
  ${onFind ? html`<button type="button" class="btn btn-sm btn-ghost oo-card-find" onClick=${onFind}>${tc("find")}</button>` : null}
@@ -38,7 +38,7 @@
38
38
  // @property {(look, at) => {x, y, w, h}} [charBox] zones: the box drawCharacter covers with the feet at `at`
39
39
  // ({ x, y, walking, heading }): what hover and click hit (fleet-office-zones.js personAt)
40
40
  // @property {(ctx, prop, ms, env) => void} drawProp a traffic item in the air: { kind, hue, x, y, t }
41
- // @property {(ctx, x, y, text, env, lift?, flip?) => void} drawBubble a speech bubble whose tail points at (x, y), its box `lift` px higher (`flip`: on the tail's left)
41
+ // @property {(ctx, x, y, text, env, lift?, flip?, fit?) => void} drawBubble a speech bubble whose tail points at (x, y), its box `lift` px higher (`flip`: on the tail's left)
42
42
  // @property {(env) => string} matte #2540: the colour around the scene (the Office fills the panel; the scene is 16:9)
43
43
  // @property {object|null} [backdrop] a pack's loaded background picture (the page samples its edges for the matte)
44
44
  // The desks layout's back and front layers change only when the fleet (or the zoom) does: the renderer keeps them as
@@ -343,29 +343,53 @@ const BUBBLE_FONT = "600 11px system-ui, sans-serif";
343
343
  /**
344
344
  * The box a speech bubble with its tail at (x, y) takes for `text` (its tail excluded): what drawBubble draws, and what
345
345
  * the Office places so no two overlap (#2431: two neighbours' bubbles covered each other on a phone).
346
+ * M-3743: `fit` { l, r, t, b } (the part of the scene on screen, in its units) keeps the box on screen, as a reply's is
347
+ * (#4406): slid along between l and r, still over its speaker (the tail's foot slides along its edge; the tail still points at the speaker);
348
+ * lowered (a shorter tail) when its top would pass t; under the head (`below`: its tail up) only when even that does not fit.
349
+ * Also returns `foot` (where the tail leaves the box: its left foot, the right one 5 px on) and `tail`, the box its tail
350
+ * covers from that foot to the speaker (#4474 review: a slid foot's tail is not the old strip under the speaker) — what the
351
+ * Office keeps clear of other bubbles and writes an area's name again over. Without `fit` both are as before.
346
352
  */
347
- export function bubbleBox(ctx, x, y, text, lift = 0, flip = false) {
353
+ export function bubbleBox(ctx, x, y, text, lift = 0, flip = false, fit = null) {
348
354
  ctx.save();
349
355
  ctx.font = BUBBLE_FONT;
350
356
  const t = fitText(ctx, text, 150), w = Math.ceil((ctx.measureText ? ctx.measureText(t).width : t.length * 6) + 14), h = 19;
351
357
  ctx.restore();
352
358
  // M-3722: `flip` puts the box on the tail's left (its tail still under it), for a call whose usual place covers a name.
353
- const bx = Math.round(flip ? x - w + 14 : x - 10), by = Math.round(y - h - 6 - lift);
354
- return { x: bx, y: by, w, h, text: t };
359
+ let bx = flip ? x - w + 14 : x - 10, by = y - h - 6 - lift, below = false;
360
+ if (fit) {
361
+ // Slid along, but always over its speaker's x (the tail's foot then slides along its edge, `foot`): a speaker
362
+ // in the margin or off screen keeps its bubble with it rather than one pinned to the edge.
363
+ if (Number.isFinite(fit.l) && Number.isFinite(fit.r)) bx = Math.max(x - w + 1, Math.min(x - 1, Math.max(fit.l, Math.min(bx, fit.r - w))));
364
+ if (Number.isFinite(fit.t) && by < fit.t) {
365
+ const lowest = y - h - 3, under = y + 6 + lift; // over the head with a 3 px tail; under it
366
+ if (fit.t <= lowest) by = fit.t;
367
+ else if (!Number.isFinite(fit.b) || under + h <= fit.b) { by = under; below = true; }
368
+ }
369
+ }
370
+ const box = { x: Math.round(bx), y: Math.round(by), w, h };
371
+ // The tail's foot: under the speaker, else as near as the box's corners allow; its box spans foot … foot + 5 and the speaker.
372
+ const foot = fit ? Math.max(box.x + 4, Math.min(x + 1, box.x + w - 9)) : x + 1;
373
+ const lo = Math.min(foot, x) - 1, hi = Math.max(foot + 5, x) + 2, top = below ? y : box.y + h, bottom = below ? box.y : y;
374
+ return { ...box, text: t, ...(below ? { below: true } : {}), foot, tail: { x: lo, y: top, w: hi - lo, h: Math.max(0, bottom - top) } };
355
375
  }
356
376
 
357
377
  /**
358
378
  * A speech bubble, its tail at (x, y): short words on light paper in either theme; `lift` raises the box (its tail
359
- * longer); `flip` (M-3722) draws the box on the tail's left.
379
+ * longer); `flip` (M-3722) draws the box on the tail's left; `fit` (M-3743, bubbleBox) keeps it on screen — under the
380
+ * head, its tail up, when there is no room over it.
360
381
  */
361
- function drawBubble(ctx, x, y, text, env, lift = 0, flip = false) {
382
+ function drawBubble(ctx, x, y, text, env, lift = 0, flip = false, fit = null) {
362
383
  if (!text) return;
363
- const { x: bx, y: by, w, h, text: t } = bubbleBox(ctx, x, y, text, lift, flip);
384
+ const { x: bx, y: by, w, h, text: t, below, foot: f } = bubbleBox(ctx, x, y, text, lift, flip, fit);
364
385
  ctx.save();
365
386
  ctx.font = BUBBLE_FONT;
366
387
  ctx.fillStyle = "#fffdf6"; ctx.strokeStyle = env.mode === "light" ? "rgba(0, 0, 0, 0.35)" : "rgba(0, 0, 0, 0.6)"; ctx.lineWidth = 1;
367
- ctx.beginPath(); ctx.moveTo(bx + 4, by); ctx.lineTo(bx + w - 4, by); ctx.lineTo(bx + w, by + 4); ctx.lineTo(bx + w, by + h - 4); ctx.lineTo(bx + w - 4, by + h);
368
- ctx.lineTo(x + 6, by + h); ctx.lineTo(x, y); ctx.lineTo(x + 1, by + h); ctx.lineTo(bx + 4, by + h); ctx.lineTo(bx, by + h - 4); ctx.lineTo(bx, by + 4); ctx.closePath();
388
+ ctx.beginPath(); ctx.moveTo(bx + 4, by);
389
+ if (below) { ctx.lineTo(f, by); ctx.lineTo(x, y); ctx.lineTo(f + 5, by); }
390
+ ctx.lineTo(bx + w - 4, by); ctx.lineTo(bx + w, by + 4); ctx.lineTo(bx + w, by + h - 4); ctx.lineTo(bx + w - 4, by + h);
391
+ if (!below) { ctx.lineTo(f + 5, by + h); ctx.lineTo(x, y); ctx.lineTo(f, by + h); }
392
+ ctx.lineTo(bx + 4, by + h); ctx.lineTo(bx, by + h - 4); ctx.lineTo(bx, by + 4); ctx.closePath();
369
393
  ctx.fill(); ctx.stroke();
370
394
  ctx.fillStyle = "#1d1d22"; ctx.textBaseline = "middle"; ctx.textAlign = "left";
371
395
  ctx.fillText(t, bx + 7, by + h / 2 + 0.5);
@@ -623,10 +623,15 @@ export function placeBubbles(items, lift = 22, blocked = [], soft = [], air = 0)
623
623
  const taken = [...blocked], out = [];
624
624
  const hit = (list, r) => list.some((t) => r.x < t.x + t.w && t.x < r.x + r.w && r.y < t.y + t.h && t.y < r.y + r.h);
625
625
  // M-3722: `flipBox` (the box on the tail's left) is a call's other side: tried before a call covers an area's name.
626
+ // M-3743: `boxAt(dy, flip)` (optional): the box as it is drawn at that spot — kept on screen, so not always `box` moved
627
+ // by dy — with its `tail` (the box the tail covers, from its foot to the speaker: a slid foot, or a box under its speaker,
628
+ // tail up), kept clear too; else the strip under the speaker, as before.
626
629
  const at = (it, dy, flip = false) => {
627
- const box = flip && it.flipBox ? it.flipBox : it.box;
628
- const r = { x: box.x, y: box.y + dy, w: box.w, h: box.h };
629
- return { r, t: it.tail ? { x: it.tail.x - 1, y: r.y + r.h, w: 9, h: Math.max(0, it.tail.y - (r.y + r.h)) } : null };
630
+ const box = flip && it.flipBox ? it.flipBox : it.box, got = typeof it.boxAt === "function" ? it.boxAt(dy, flip) : null;
631
+ const r = got ? { x: got.x, y: got.y, w: got.w, h: got.h } : { x: box.x, y: box.y + dy, w: box.w, h: box.h };
632
+ if (!it.tail) return { r, t: null };
633
+ if (got && got.tail) return { r, t: got.tail };
634
+ return { r, t: r.y > it.tail.y ? { x: it.tail.x - 1, y: it.tail.y, w: 9, h: r.y - it.tail.y } : { x: it.tail.x - 1, y: r.y + r.h, w: 9, h: Math.max(0, it.tail.y - (r.y + r.h)) } };
630
635
  };
631
636
  // M-3722: an area's name (`soft`) keeps a bubble's BOX off it; a tail may cross a name (the Office writes the name again
632
637
  // over it) — a caller standing at a name's height would otherwise always cover it.
@@ -228,6 +228,12 @@ const overlaps = (a, b) => a.x < b.x + b.w && b.x < a.x + a.w && a.y < b.y + b.h
228
228
  const figureBox = (sk, q) => (sk.charBox ? sk.charBox(q.look, q.at) : { x: q.at.x - 24, y: q.at.y - 52, w: 48, h: 66 });
229
229
  /** #2554: in All offices a tile's name tags show (always) from this many CSS px a unit up; below it on hover only. */
230
230
  export const TAG_MIN_K = 0.75;
231
+ /**
232
+ * M-3665: one office below this zoom (a phone's whole office, about 30 %: a 10 px tag is 3 px on the page) draws no
233
+ * name tags but the hovered, focused or found one: the names are read in the people row over the stage's foot and on
234
+ * a person's card. A desk's fit keeps them (the Fleet's 70 % and up; a Hub room's 60 %).
235
+ */
236
+ export const TAG_READ_K = 0.5;
231
237
  const PAN_KEYS = { ArrowLeft: [-1, 0], ArrowRight: [1, 0], ArrowUp: [0, -1], ArrowDown: [0, 1] };
232
238
  /** Typing: no single-key shortcut (the `f` of fullscreen) there. */
233
239
  const typing = (el) => !!el && (el.tagName === "INPUT" || el.tagName === "SELECT" || el.tagName === "TEXTAREA" || el.isContentEditable === true);
@@ -433,6 +439,32 @@ const GHOST_POSE = [["paused", "paused"], ["stopped", "paused"], ["working", "wo
433
439
  const BUBBLE_IN_AREA = 8;
434
440
  /** How faint Edit layout's figures are: seen through, yet readable over a busy picture (a dimmed person is 0.35). */
435
441
  const GHOST_ALPHA = 0.6;
442
+ /**
443
+ * M-3665: stopped — or, in a Hub room, an agent whose computer is offline — is not the same as paused, though both
444
+ * doze in the nap corner. A paused person is drawn as ever (its Zzz); a stopped one faded (OFF_ALPHA) with a small
445
+ * power-off mark beside it, on every style and every pack (the pack's own paused strip draws both).
446
+ */
447
+ const OFF_ALPHA = 0.45;
448
+ export const offLook = (look) => !!look && look.state === "stopped" && look.pose !== "away";
449
+ export function drawOffMark(ctx, x, y, env) {
450
+ const pal = (env && env.pal) || {}, r = 6;
451
+ ctx.save();
452
+ ctx.globalAlpha = 1;
453
+ ctx.fillStyle = pal.surface || "#2f2f2f"; ctx.strokeStyle = pal.text3 || "#bbbbbb"; ctx.lineWidth = 1.2;
454
+ ctx.beginPath(); ctx.arc(x, y, r + 2, 0, Math.PI * 2); ctx.fill(); ctx.stroke();
455
+ ctx.strokeStyle = pal.text2 || "#cfcfcf"; ctx.lineWidth = 1.6; ctx.lineCap = "round";
456
+ ctx.beginPath(); ctx.arc(x, y + 0.5, r - 2, -Math.PI / 2 + 0.75, Math.PI * 1.5 - 0.75); ctx.stroke(); // the power symbol's ring…
457
+ ctx.beginPath(); ctx.moveTo(x, y - r + 1); ctx.lineTo(x, y - 0.5); ctx.stroke(); // …and its bar
458
+ ctx.restore();
459
+ }
460
+ /** A person drawn by the skin; stopped (offline): faded, with the power-off mark at (mx, my). */
461
+ function drawPerson(ctx, sk, box, look, ms, env, mx, my, markScale = 1) {
462
+ if (!offLook(look)) { sk.drawCharacter(ctx, box, look, ms, env); return; }
463
+ ctx.save(); ctx.globalAlpha *= OFF_ALPHA; sk.drawCharacter(ctx, box, look, ms, env); ctx.restore();
464
+ // M-3665 (leader's check): zoomed out past TAG_READ_K the mark keeps its size at TAG_READ_K, centred where it was.
465
+ if (markScale === 1) { drawOffMark(ctx, mx, my, env); return; }
466
+ ctx.save(); ctx.translate(mx, my); ctx.scale(markScale, markScale); drawOffMark(ctx, 0, 0, env); ctx.restore();
467
+ }
436
468
  /** Edit layout's faint figures: one on each seat no one is on, { x, y, look } (the pack's default set; drawn at GHOST_ALPHA). */
437
469
  export function ghostsOf(pack, people = []) {
438
470
  const taken = (s) => people.some((q) => Math.abs(q.at.x - s.x) < 2 && Math.abs(q.at.y - s.y) < 2);
@@ -466,6 +498,18 @@ export function actLive(a, state, at = Date.now(), seen = null) {
466
498
  * (#4415: nothing keeps a caller from the Help desk; the ride resumes when the call is over). Working or a new turn do
467
499
  * not end it (it is where they choose to be); clearing it, a new office_set or its end do.
468
500
  */
501
+ /**
502
+ * #4504: what the card's pose preview offers — every pose a character set may draw, walking by direction. Here, not in
503
+ * fleet-office-pack.js: a tab opened before an upgrade may keep that module, and a named import it lacks would stop this
504
+ * one linking (#4505/#4508 review).
505
+ */
506
+ export const PREVIEW_POSES = ["idle", "working", "paused", "needs", "walkDown", "walkUp", "walkSide", "walkLeft", "eat", "pat", "dragged", "stand"];
507
+ const PREVIEW_HEADINGS = { walkDown: { dx: 0, dy: 1 }, walkUp: { dx: 0, dy: -1 }, walkSide: { dx: 1, dy: 0 }, walkLeft: { dx: -1, dy: 0 } };
508
+ /** A look showing `pose` in place (a walking direction walks on the spot); a set without that strip shows its own pose. */
509
+ export function previewLook(look, pose) {
510
+ const heading = PREVIEW_HEADINGS[pose];
511
+ return heading ? { ...look, pose: "walk", heading } : { ...look, pose, basePose: look.pose };
512
+ }
469
513
  export const rideLive = (a, state, at = Date.now()) => !!a && !!a.ride && at < a.until && !ASLEEP.has(state) && !CALLING.has(state);
470
514
  /** How far beside the person an agent going to them stands. */
471
515
  const ACT_BESIDE = 48;
@@ -536,6 +580,11 @@ export function officeBubbleAt(hits, x, y, minSize = 0) {
536
580
  export function drawPart(ctx, p, a, ox, oy, ms, still, hot, env, tagsOff = false, defer = null, bubbleHits = null) {
537
581
  const sk = p.skin;
538
582
  const ls = layerScale(a, p.L.width, p.L.height);
583
+ // M-3665: the view's CSS zoom (a is bitmap px a unit: the zoom × the device ratio, Prism #4423). Below TAG_READ_K what must
584
+ // stay readable is drawn larger: the offline mark readScale times (its size at TAG_READ_K), a caller's tag callerScale.
585
+ const zk = a / ((env && env.ratio) || 1), readScale = zk < TAG_READ_K ? TAG_READ_K / zk : 1;
586
+ // A caller's tag at its full size (1×: the leader's call, "who needs you at a glance"); other floors stay at TAG_READ_K.
587
+ const callerScale = zk < 1 ? 1 / zk : 1;
539
588
  // Zones zoomed in past the layers' budget (a big pack): the layer would be coarser than the screen and the picture,
540
589
  // so the background and foreground are drawn from their pictures instead (only the part on screen is rasterised).
541
590
  const direct = !!p.zones && ls < a - 1e-6;
@@ -666,10 +715,14 @@ export function drawPart(ctx, p, a, ox, oy, ms, still, hot, env, tagsOff = false
666
715
  // A pat shows the set's `pat` strip for one full pass of it (pat.until), each pat from frame 0; a set without one keeps its pose.
667
716
  const canPat = !q.at.walking && !canEat && ms > 0 && !!p.reacts && !CALLING.has(q.look.state) && !ASLEEP.has(q.look.state) && !q.look.night;
668
717
  const patted = canPat ? patLook(posed, p.reacts.get(q.look.name), t) : null;
669
- const look = q.at.walking ? { ...q.look, pose: "walk", heading: q.at.heading }
718
+ const look0 = q.at.walking ? { ...q.look, pose: "walk", heading: q.at.heading }
670
719
  : canEat ? { ...posed, pose: "eat", basePose: posed.pose }
671
720
  : patted || posed;
672
- sk.drawCharacter(ctx, box, look, ms, env);
721
+ // #4504: the card's pose preview (this viewer's own): the picked pose in place, from its first frame (`clip`:
722
+ // Replay starts it again). Never over a call: a caller shows that they call, preview or not.
723
+ const pv = p.preview && p.preview.current;
724
+ const look = pv && pv.name === q.look.name && !q.at.walking && !CALLING.has(q.look.state) ? { ...previewLook(posed, pv.pose), clip: `#${pv.t0}` } : look0;
725
+ drawPerson(ctx, sk, box, look, ms, env, q.at.x + 20, q.at.y - 34, readScale);
673
726
  if (canEat && eating.snackId && p.snacksById && sk.drawSnack) {
674
727
  const sdef = p.snacksById.get(eating.snackId);
675
728
  if (sdef && sdef.eat) sk.drawSnack(ctx, sdef.eat, Math.max(0, t - eating.t0), q.at.x, q.at.y, env);
@@ -705,8 +758,12 @@ export function drawPart(ctx, p, a, ox, oy, ms, still, hot, env, tagsOff = false
705
758
  const over = p.L.over || new Set();
706
759
  const pinned = (q) => q.d.key === hot || !!q.look.match;
707
760
  const crowded = (q) => over.has(q.d.area) && !pinned(q);
761
+ // M-3665 (leader's check): too far out to read (tagsOff true), a caller still says who they are on the map — their tag
762
+ // at its full size (1×), where they stand (the chip row below lists them too). Drawn after the tags, below.
763
+ const beaconOn = tagsOff === true && readScale > 1;
764
+ const beacon = (q) => beaconOn && CALLING.has(q.look.state);
708
765
  // A caller keeps their tag with names hidden (#4467 review): the Help desk always says who needs you.
709
- const tagged = (q) => pinned(q) || (tagsOff === "names" && CALLING.has(q.look.state)) || !(tagsOff || over.has(q.d.area));
766
+ const tagged = (q) => !beacon(q) && (pinned(q) || (tagsOff === "names" && CALLING.has(q.look.state)) || !(tagsOff || over.has(q.d.area)));
710
767
  // Names hidden: a caller's tag is their name only; the level stays hidden (the one hovered or found keeps it).
711
768
  const tagLook = (q) => (tagsOff === "names" && !pinned(q) && q.look.badge ? { ...q.look, badge: null } : q.look);
712
769
  const keep = [...titles.map((x) => x.box), ...(env.keepClear || [])];
@@ -748,6 +805,22 @@ export function drawPart(ctx, p, a, ox, oy, ms, still, hot, env, tagsOff = false
748
805
  const tagOrder = people.filter((q) => !(live.hidden.has(q.look.name) && q.look.name !== heldName) && tagged(q))
749
806
  .map((q, i) => ({ q, i, rank: pinned(q) ? 0 : q.at.walking ? 2 : 1 })).sort((x, y) => x.rank - y.rank || x.i - y.i);
750
807
  for (const { q, rank } of tagOrder) place(q.at.x, q.at.y, tagLook(q), FULL_TRIES, rank === 0);
808
+ // The callers' tags in that mode (above), as the tags are placed: the box scaled about where they stand so it reads at
809
+ // its full size, never under an open card, clear of the kept-clear controls and of each other (there, else a row
810
+ // lower), registered (bubbles keep off it); their level left out. None clear: left to their chip in the row.
811
+ if (beaconOn) for (const q of people) {
812
+ if (!CALLING.has(q.look.state) || live.hidden.has(q.look.name) || offView(q.at)) continue;
813
+ const k = callerScale, look = { ...q.look, badge: null }, sc = (b) => ({ x: q.at.x + (b.x - q.at.x) * k, y: q.at.y + (b.y - q.at.y) * k, w: b.w * k, h: b.h * k });
814
+ for (const dy of [0, TAG_ROW]) {
815
+ const box = sc(tagBox(ctx, q.at.x, q.at.y + dy, look.label, false, look.fit));
816
+ if (covered(box) || touches(box)) continue;
817
+ ctx.save(); ctx.transform(k, 0, 0, k, q.at.x * (1 - k), q.at.y * (1 - k));
818
+ sk.drawTag(ctx, q.at.x, q.at.y + dy, look, env, false);
819
+ ctx.restore();
820
+ tags.push(box); taken.push(box);
821
+ break;
822
+ }
823
+ }
751
824
  // A furniture item's own name (#2574: an NPC drawn as furniture), tagged like a person; none on a tile too small to read.
752
825
  // #2698: an item hiding its people carries their tags too, in one row at its tag point (its own first; each keeps
753
826
  // its place in the row while another's tag is left out), and their bubbles, over its picture. The tags drawn are
@@ -781,7 +854,7 @@ export function drawPart(ctx, p, a, ox, oy, ms, still, hot, env, tagsOff = false
781
854
  place(q.at.x, q.at.y, q.look, [[0, true], [COMPACT_ROW, true]]);
782
855
  }
783
856
  } else {
784
- for (const d of p.desks) { const look = p.looks.get(d.key); sk.drawCharacter(ctx, d, actPosed(p, look), ms, env); speakers.push({ look, x: d.x + 58, y: d.y + 12, area: p.roomOf.get(d.key) ?? null }); }
857
+ for (const d of p.desks) { const look = p.looks.get(d.key); drawPerson(ctx, sk, d, actPosed(p, look), ms, env, d.x + d.w - 14, d.y + 14, readScale); speakers.push({ look, x: d.x + 58, y: d.y + 12, area: p.roomOf.get(d.key) ?? null }); }
785
858
  blit(p.layers.front);
786
859
  // Tags left out of the layer: the hovered desk's front again, with its tag.
787
860
  const hd = tagsOff && hot ? p.desks.find((d) => d.key === hot) : null;
@@ -819,6 +892,11 @@ export function drawPart(ctx, p, a, ox, oy, ms, still, hot, env, tagsOff = false
819
892
  // Speech bubbles: a short line for the state, now and then (typed out; whole at once when still), placed so no two
820
893
  // overlap (placeBubbles; #2431).
821
894
  const bubbles = [], rp = p.reply, tSaid = Date.now(), replies = [];
895
+ // M-3743: the part of the scene on screen (the canvas, in this part's units, 8 bitmap px in): a bubble stays inside it,
896
+ // its tail still at the speaker (bubbleBox's `fit`; a speaker near an edge — a rider along the map's rim — had its
897
+ // bubble cut off). All offices: the whole canvas too (the bubbles are drawn after every tile, unclipped).
898
+ const cw = ctx.canvas && ctx.canvas.width, chh = ctx.canvas && ctx.canvas.height, edge = 8 / a;
899
+ const fit = cw > 0 && chh > 0 ? { l: -ox / a + edge, r: (cw - ox) / a - edge, t: -oy / a + edge, b: (chh - oy) / a - edge } : null;
822
900
  for (let sp of speakers) {
823
901
  if (sp.look.dim || sp.look.pose === "away") continue;
824
902
  // Talk "Over their head": a live reply, in full (wrapped), in place of the state's line.
@@ -840,9 +918,10 @@ export function drawPart(ctx, p, a, ox, oy, ms, still, hot, env, tagsOff = false
840
918
  // M-3533 R2c (Lumen): a room's own characters stand taller than the style's figures; their bubble stays inside the
841
919
  // area's box, as a figure's does (the Fleet's own office is unchanged).
842
920
  const ar = b && sk.ownCharacters && p.zones && sp.area != null ? p.L.areas && p.L.areas[sp.area] : null;
843
- if (ar && ar.rect) { const bx = bubbleBox(ctx, sp.x, sp.y, b.text), min = ar.rect.y + BUBBLE_IN_AREA; if (bx.y < min) sp = { ...sp, y: sp.y + (min - bx.y) }; }
921
+ if (ar && ar.rect) { const bx = bubbleBox(ctx, sp.x, sp.y, b.text, 0, false, fit), min = ar.rect.y + BUBBLE_IN_AREA; if (bx.y < min) sp = { ...sp, y: sp.y + (min - bx.y) }; }
844
922
  if (b) bubbles.push({ key: sp.look.name, area: sp.area, state: sp.look.state, calling: CALLING.has(sp.look.state), rank: own ? 0 : scText ? 1 : bubbleRank(sp.look.state), shown: b.shown, ...(raSays ? { keep: true } : {}),
845
- box: bubbleBox(ctx, sp.x, sp.y, b.text), ...(CALLING.has(sp.look.state) ? { flipBox: bubbleBox(ctx, sp.x, sp.y, b.text, 0, true) } : {}), tail: { x: sp.x, y: sp.y }, sp, b });
923
+ box: bubbleBox(ctx, sp.x, sp.y, b.text, 0, false, fit), ...(CALLING.has(sp.look.state) ? { flipBox: bubbleBox(ctx, sp.x, sp.y, b.text, 0, true, fit) } : {}), tail: { x: sp.x, y: sp.y }, sp, b,
924
+ boxAt: ((at) => (dy, flip) => bubbleBox(ctx, at.x, at.y, b.text, -dy, flip, fit))(sp) });
846
925
  }
847
926
  // A crowded area speaks less (thinBubbles: calls, then work, a few at most); no bubble covers a name tag. `defer`
848
927
  // (All offices): drawn after every tile, unclipped, so a bubble at a tile's edge is whole.
@@ -854,15 +933,26 @@ export function drawPart(ctx, p, a, ox, oy, ms, still, hot, env, tagsOff = false
854
933
  const inArea = (sp, text, dy, flip) => {
855
934
  const ar = sk.ownCharacters && p.zones && sp.area != null ? p.L.areas && p.L.areas[sp.area] : null;
856
935
  if (!ar || !ar.rect || !dy) return dy;
857
- const over = ar.rect.y + BUBBLE_IN_AREA - bubbleBox(ctx, sp.x, sp.y, text, -dy, flip).y;
936
+ const over = ar.rect.y + BUBBLE_IN_AREA - bubbleBox(ctx, sp.x, sp.y, text, -dy, flip, fit).y;
858
937
  return over > 0 ? Math.max(0, dy - over) : dy;
859
938
  };
860
- const say = () => { T(); const tails = []; for (const { sp, b, dy: lifted, flip = false } of placed) {
861
- const text = [...b.text].slice(0, b.shown).join(""), dy = inArea(sp, b.text, lifted, flip);
862
- sk.drawBubble(ctx, sp.x, sp.y, text, env, -dy, flip);
863
- if (text) { const box = bubbleBox(ctx, sp.x, sp.y, text, -dy, flip); tails.push({ x: sp.x - 1, y: box.y + box.h, w: 9, h: Math.max(0, sp.y - (box.y + box.h)) }); }
939
+ // The box a tail covers: the skin's own (from its foot to the speaker, M-3743), else the strip under the speaker (an older skin).
940
+ const tailOf = (sp, box) => box.tail || (box.below ? { x: sp.x - 1, y: sp.y, w: 9, h: Math.max(0, box.y - sp.y) } : { x: sp.x - 1, y: box.y + box.h, w: 9, h: Math.max(0, sp.y - (box.y + box.h)) });
941
+ // M-3743 (#4474 review): checked again where each is drawn (kept on screen, and in its area), in placing order: none over
942
+ // another's box or tail, or a name tag. A page still holding an older fleet-office-zones.js places `box` moved by dy (it
943
+ // knows no boxAt), and two boxes kept on screen could meet; with the current one this keeps every bubble it placed.
944
+ const shown = [], held = [...tags];
945
+ for (const it of placed) {
946
+ const flip = it.flip || false, dy = inArea(it.sp, it.b.text, it.dy, flip), box = bubbleBox(ctx, it.sp.x, it.sp.y, it.b.text, -dy, flip, fit), tl = tailOf(it.sp, box);
947
+ if (held.some((o) => overlaps(o, box) || overlaps(o, tl))) continue;
948
+ held.push(box, tl); shown.push({ ...it, dy, flip });
949
+ }
950
+ const say = () => { T(); const tails = []; for (const { sp, b, dy, flip } of shown) {
951
+ const text = [...b.text].slice(0, b.shown).join("");
952
+ sk.drawBubble(ctx, sp.x, sp.y, text, env, -dy, flip, fit);
953
+ if (text) tails.push(tailOf(sp, bubbleBox(ctx, sp.x, sp.y, text, -dy, flip, fit)));
864
954
  if (bubbleHits && text) {
865
- const box = bubbleBox(ctx, sp.x, sp.y, text, -dy, flip);
955
+ const box = bubbleBox(ctx, sp.x, sp.y, text, -dy, flip, fit);
866
956
  bubbleHits.push({ name: sp.look.name, box: { x: ox + box.x * a, y: oy + box.y * a, w: box.w * a, h: box.h * a } });
867
957
  }
868
958
  }
@@ -1125,6 +1215,15 @@ export function Office({ view: given, traffic, q = "", lease, onOpen, assetUrl,
1125
1215
  // M-3539: the phone's zone chips scroll sideways when they do not fit (English); a fade at the side there is more
1126
1216
  // (data-more-left / data-more-right) says so.
1127
1217
  const pillsRef = useRef(null);
1218
+ // M-3665 (leader's check): the zoomed-out name row scrolls sideways; while there is more, its edge fades (as the pills).
1219
+ const desksRef = useRef(null);
1220
+ const desksCue = () => {
1221
+ const e = desksRef.current;
1222
+ if (!e || typeof e.toggleAttribute !== "function") return;
1223
+ const more = e.scrollWidth - e.clientWidth;
1224
+ e.toggleAttribute("data-more-left", more > 1 && e.scrollLeft > 1);
1225
+ e.toggleAttribute("data-more-right", more > 1 && e.scrollLeft < more - 1);
1226
+ };
1128
1227
  const pillsCue = () => {
1129
1228
  const e = pillsRef.current;
1130
1229
  if (!e || typeof e.toggleAttribute !== "function") return;
@@ -1494,6 +1593,8 @@ export function Office({ view: given, traffic, q = "", lease, onOpen, assetUrl,
1494
1593
  // M-3547 / M-3556: off only for reduced motion — one line under Drag and pat in Display options says so (no override).
1495
1594
  const playStillOff = playOffForMotion({ on: playOn, still, zones, overview, layout: !!layout, shared }) && !carouselPick;
1496
1595
  const hold = useMemo(() => createHold(), []), reacts = useRef(new Map()), walkNow = useRef(null), holdTimer = useRef(null);
1596
+ // #4504: the card's pose preview — { name, pose, t0 } while one is picked (this viewer's own, never stored or sent).
1597
+ const preview = useRef(null), [, setPreviewRev] = useState(0);
1497
1598
  // M-3432 (#4255): custom snacks from the active skin pack (client-local, only when play is enabled).
1498
1599
  const snacks = useMemo(() => createSnacks(), []);
1499
1600
  const snackDragCtrl = useMemo(() => createSnackDrag(), []);
@@ -1660,6 +1761,11 @@ export function Office({ view: given, traffic, q = "", lease, onOpen, assetUrl,
1660
1761
  * the whole view on its data-k/x/y), the zoom's percentage, the overlay, the tooltip.
1661
1762
  */
1662
1763
  const mark = () => {
1764
+ // M-3665: too far out to read the name tags (TAG_READ_K) in one office, the stage says so: the people's names then
1765
+ // show as a row of chips over its foot (the CSS: a phone's whole office, or a desk zoomed out), each opening their card.
1766
+ // #4466 Hide names (data-names-off on the same element): the row keeps only the callers, as the tags do.
1767
+ if (ooRef.current && typeof ooRef.current.toggleAttribute === "function") ooRef.current.toggleAttribute("data-tags-off", !overview && view0().k < TAG_READ_K);
1768
+ desksCue();
1663
1769
  const v = view0(), m = miniViewRef.current;
1664
1770
  if (m) {
1665
1771
  const f = miniFrame(v, size, L.width, L.height);
@@ -1880,7 +1986,7 @@ export function Office({ view: given, traffic, q = "", lease, onOpen, assetUrl,
1880
1986
  const parts = tiles.map((tl, i) => ({ ...partOf(tl.L, tileLooks[i], tl.skin, tl.zones, tl.walkers, tl.flights), night, key: tl.key, prefix: tl.prefix, tile: arranged.tiles[i], ups: ups.current, levelsOn: !!(lv && lv.enabled), levels: wordsOf(tl.skin) }));
1881
1987
  scene.current = { ...base, overview: true, parts, lay: arranged };
1882
1988
  } else {
1883
- scene.current = { ...base, overview: false, part: { ...partOf(L, looks, skin, zones, walkers, flights), ghosts, night, mail, acts: actsHere, actSeen: actSeen.current, ups: ups.current, levelsOn: !!(lv && lv.enabled), levels: wordsOf(skin), reacts: reacts.current, riding: riders.riding,
1989
+ scene.current = { ...base, overview: false, part: { ...partOf(L, looks, skin, zones, walkers, flights), ghosts, night, mail, acts: actsHere, actSeen: actSeen.current, ups: ups.current, levelsOn: !!(lv && lv.enabled), levels: wordsOf(skin), reacts: reacts.current, preview, riding: riders.riding,
1884
1990
  hold: play ? hold : null, seatDrop: seatDropRef,
1885
1991
  snacks: play ? snacks : null, snacksById, ownArea, snackDrop: snackDropRef, onSnackClaim, onSnacksChanged: () => walkNow.current?.() } };
1886
1992
  }
@@ -1892,7 +1998,7 @@ export function Office({ view: given, traffic, q = "", lease, onOpen, assetUrl,
1892
1998
  const s = scene.current;
1893
1999
  if (!s) return false;
1894
2000
  placeCard();
1895
- const { ctx, BW, BH, env } = s;
2001
+ const { ctx, BW, BH } = s, env = { ...s.env, ratio: s.ratio }; // ratio: drawPart's CSS zoom is a / ratio (Prism #4423)
1896
2002
  s.bubbleHits = [];
1897
2003
  const seenClips = ms > 0 ? new Set() : null;
1898
2004
  const clocked = (prefix) => (seenClips
@@ -1914,7 +2020,8 @@ export function Office({ view: given, traffic, q = "", lease, onOpen, assetUrl,
1914
2020
  s.part.cover = r.width > 0 && r.height > 0 ? { x: (r.left - c.left) * s.ratio, y: (r.top - c.top) * s.ratio, w: r.width * s.ratio, h: r.height * s.ratio } : null;
1915
2021
  } else s.part.cover = null;
1916
2022
  const e0 = clocked(""), kc = keepClearOf(canvasRef.current, v);
1917
- const moved = drawPart(ctx, s.part, a, ox, oy, ms, still, tipNow.current, kc.length ? { ...e0, keepClear: kc } : e0, s.namesOff ? "names" : false, null, s.bubbleHits);
2023
+ // M-3665 (too far out to read: no tags) and #4466 (Hide names: callers keep theirs), as the All-offices tiles do.
2024
+ const moved = drawPart(ctx, s.part, a, ox, oy, ms, still, tipNow.current, kc.length ? { ...e0, keepClear: kc } : e0, v.k < TAG_READ_K || (s.namesOff ? "names" : false), null, s.bubbleHits);
1918
2025
  if (seenClips) clipClocks.current.prune(seenClips);
1919
2026
  return drawDialogue(ctx, s, ms) || moved;
1920
2027
  }
@@ -2080,6 +2187,8 @@ export function Office({ view: given, traffic, q = "", lease, onOpen, assetUrl,
2080
2187
  area: tl.zones ? areaName(d.area) : roomOf(tl.L, d), skin: tl.skin, look: lk && lk.get(d.key) })) : []; })
2081
2188
  : desksOf(L).map((d) => ({ key: d.key, node: d.node, box: d, office: null, dot: zones ? d.seat : { x: d.x + d.w / 2, y: d.y + d.h / 2 },
2082
2189
  area: zones ? areaName(d.area) : roomOf(L, d), skin, look: looks.get(d.key) }));
2190
+ // The name row's fade (desksCue) follows who is in it and how wide the stage is, as well as the zoom (mark).
2191
+ useEffect(() => { desksCue(); }, [people.length, size.w, namesOff]);
2083
2192
  // #2861: who the dialogue box may speak for — everyone drawn here (All offices: the first tile they are in), with what
2084
2193
  // draws them; null while it is off (draw() then draws nothing of it).
2085
2194
  replyRef.current = tmode === "bubble" ? { chat, draw: chatUi.drawReply, style: chatUi.replyStyle, pace: chatUi.readPace, read: readMode } : null;
@@ -2557,6 +2666,8 @@ export function Office({ view: given, traffic, q = "", lease, onOpen, assetUrl,
2557
2666
  cardDesk.current = cardOf ? { name: cardOf.node.name, state: cardOf.node.state, box: cardOf.box, walks: zones && !overview, skin: cardOf.skin } : null;
2558
2667
  useEffect(() => { if (card && !cardOf) setCard(null); }, [card, !!cardOf]);
2559
2668
  useEffect(() => { walkNow.current?.(); }, [cardOf ? cardOf.node.name : null]); // stop there now; walk again once it closes
2669
+ // A preview ends with its card, or when the card turns to someone else.
2670
+ useEffect(() => { if (preview.current && (!cardOf || preview.current.name !== cardOf.node.name)) { preview.current = null; setPreviewRev((x) => x + 1); loop.current?.wake(); } }, [cardOf ? cardOf.node.name : null]);
2560
2671
  const closeCard = () => {
2561
2672
  setCard(null);
2562
2673
  const from = cardFrom.current; cardFrom.current = null;
@@ -2737,7 +2848,8 @@ export function Office({ view: given, traffic, q = "", lease, onOpen, assetUrl,
2737
2848
  const displayMenu = (opener) => html`<div class=${`oo-display${roomGear ? " oo-display-zoom" : ""}`} ref=${displayRef}>${opener}
2738
2849
  ${dispOpen ? html`<div class="oo-display-pop" role="group" aria-label=${to("display")} ref=${fitPop}><h3 class="oo-display-h">${to("display")}</h3>
2739
2850
  <div class="oo-bar oo-display-list">${optionItems}</div></div>` : null}</div>`;
2740
- return html`<div class=${`oo${fs ? ` fs ${fs}` : ""}${compact ? " phone" : ""}${dockShown ? " has-dialogue" : ""}${sidePanel && !phone ? " ot-side" : ""}`} ref=${ooRef}>
2851
+ return html`<div class=${`oo${fs ? ` fs ${fs}` : ""}${compact ? " phone" : ""}${dockShown ? " has-dialogue" : ""}${sidePanel && !phone ? " ot-side" : ""}`} ref=${ooRef}
2852
+ data-names-off=${namesOff ? "" : undefined}>
2741
2853
  ${folded ? null : html`<div class="oo-bar oo-bar-row">
2742
2854
  <div class="oo-bar-scope">${scopeItems}</div>
2743
2855
  <div class="oo-bar-actions">${actionItems}
@@ -2802,16 +2914,22 @@ export function Office({ view: given, traffic, q = "", lease, onOpen, assetUrl,
2802
2914
  reacts.current.set(n, { kind, t0, ...(patSt ? { until: t0 + Math.max(PLAY.REACT_MS, stripDurationMs(patSt)) } : {}) });
2803
2915
  loop.current?.wake(); if (store.tellOn(n)) void store.tell(n, kind);
2804
2916
  } : null}
2917
+ preview=${zones && !overview && skin && skin.pack ? {
2918
+ poses: PREVIEW_POSES,
2919
+ pose: preview.current && preview.current.name === cardOf.node.name ? preview.current.pose : "",
2920
+ set: (pose) => { preview.current = pose ? { name: cardOf.node.name, pose, t0: now() } : null; setPreviewRev((x) => x + 1); loop.current?.wake(); },
2921
+ replay: () => { if (preview.current) { preview.current = { ...preview.current, t0: now() }; loop.current?.wake(); } },
2922
+ } : null}
2805
2923
  tell=${play ? { on: store.tellOn(cardOf.node.name), set: (v) => { store.saveTell(cardOf.node.name, v); setTellRev((x) => x + 1); } } : null}
2806
2924
  packCard=${cardOf.skin?.pack?.card || null}
2807
2925
  picture=${typeof cardOf.skin?.picture === "function" ? cardOf.skin.picture : null}
2808
2926
  portrait=${cardOf.skin?.pack ? portraitSrc(cardOf.skin.pack, { agent: cardOf.node.name, state: cardOf.node.state }) : null}
2809
2927
  packScale=${cardOf.skin?.pack?.scale || 2} action=${cardAction ? cardAction(cardOf.node.name) : null}
2810
2928
  photo=${cardPhoto ? cardPhoto(cardOf.node.name) : null} />` : null}
2811
- <ul class="oo-desks" aria-label=${to("desks")}>${people.map((d) => {
2929
+ <ul class="oo-desks" ref=${desksRef} onScroll=${desksCue} aria-label=${to("desks")}>${people.map((d) => {
2812
2930
  const nt = nodeText(d.node), cap = nowOf(d.node), where = d.office ? ` · ${d.office}` : "";
2813
2931
  const full = words ? `${nt.primary} — ${stateOf(d.node)}` : nt.full;
2814
- return html`<li key=${d.key}>${d.node.i
2932
+ return html`<li key=${d.key} data-call=${CALLING.has(d.node.state) ? "" : undefined}>${d.node.i
2815
2933
  ? html`<button type="button" class="oo-desk" data-name=${d.node.name} data-key=${d.key} data-slot=${Number.isInteger(d.box?.slot) ? d.box.slot : undefined} aria-label=${`${full}${where}${cap ? ` · ${cap}` : ""}.`} aria-haspopup="dialog"
2816
2934
  onFocus=${() => setTip(d.key)} onBlur=${() => setTip(null)} onClick=${() => { cardFrom.current = d.key; setCard((cur) => (cur === d.key ? null : d.key)); }}>${nt.primary}</button>`
2817
2935
  : html`<span class="oo-desk" data-name=${d.node.name} data-key=${d.key}>${full}</span>`}</li>`;